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 |
|---|---|---|---|---|---|---|
First address in the subnet. | def cntZ(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'first') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R5Y5(VWZy):\n return VWZy + 1",
"def heBg(YKHO) -> RnTg.program.model.address.Address:\n ...",
"def PBFR(WU4D):\n VWZy = toOX(WU4D)\n if VWZy.num_addresses == 1:\n return str(VWZy)\n else:\n return '{}/{}'.format(next(VWZy.hosts()), VWZy.prefixlen)",
"def ZE3I(YKHO, VWZy):\n ... | [
"0.7560609",
"0.73897946",
"0.73761314",
"0.7347214",
"0.719955",
"0.7158844",
"0.7158844",
"0.7109089",
"0.6835173",
"0.6751197",
"0.6714544",
"0.67107767",
"0.67107767",
"0.6690194",
"0.668689",
"0.664321",
"0.664321",
"0.664321",
"0.664321",
"0.66317135",
"0.66303134",
"... | 0.0 | -1 |
The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method. | def VAz2(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'endpoint_status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def km9n(YKHO):\n return YKHO.GetEndpoint()",
"def ObLf(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'endpoint_monitor_status')",
"def ObLf(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'endpoint_monitor_status')",
"def wEZt(YKHO, w2IS):\n jGRS = {}\n YfpN = YKHO.get_devices(gCuF.HVAC_HOMEID)\n ... | [
"0.72293264",
"0.69589275",
"0.69589275",
"0.6915221",
"0.67561346",
"0.6642639",
"0.66329324",
"0.6625885",
"0.6607209",
"0.6607209",
"0.6605127",
"0.6605127",
"0.6605127",
"0.6605127",
"0.6582961",
"0.6581121",
"0.6571649",
"0.6571649",
"0.6553643",
"0.6551331",
"0.65478665... | 0.8101845 | 0 |
The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values. | def MYbm(YKHO) -> h8nf[bdIy[str]]:
return qe4Y.get(YKHO, 'geo_mapping') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BNxs(YKHO):\n return YKHO._request_obj(YKHO._urls['regions'], key='results')",
"def zQZR(YKHO):\n YKHO.logger.debug('regions()')\n return YKHO.backend.request('GET', 'regions')",
"def TBEy(YKHO):\n return YKHO._call(YKHO._urls['countries'], '')",
"def zQZR(YKHO) -> x1iM[str]:\n return ['ny... | [
"0.71253115",
"0.7038442",
"0.7004174",
"0.7001693",
"0.69876313",
"0.69876313",
"0.69649035",
"0.6732067",
"0.6716706",
"0.6716706",
"0.6631429",
"0.6608412",
"0.660056",
"0.660056",
"0.660056",
"0.660056",
"0.6555405",
"0.6555405",
"0.65360916",
"0.65279394",
"0.6513669",
... | 0.0 | -1 |
Fully qualified resource Id for the resource. Ex /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} | def id(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_id')",
"def PcW4(YKHO) -> qe4Y... | [
"0.705267",
"0.705267",
"0.705267",
"0.69748193",
"0.69748193",
"0.69748193",
"0.69748193",
"0.69748193",
"0.6918692",
"0.6878195",
"0.67144763",
"0.67144763",
"0.67144763",
"0.67144763",
"0.67144763",
"0.67144763",
"0.6714167",
"0.66413236",
"0.66413236",
"0.6640604",
"0.660... | 0.0 | -1 |
The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value. | def Ey19(YKHO) -> h8nf[float]:
return qe4Y.get(YKHO, 'priority') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ey19(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority')",
"def Ey19(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority')",
"def Ey19(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority')",
"def Ey19(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'priority')",
"def Ey19(YKHO) -> h8nf[... | [
"0.7214696",
"0.7214696",
"0.7214696",
"0.7214696",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
"0.72081286",
... | 0.72004366 | 26 |
The fullyqualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint. | def pan_(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'target') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UTX6(YKHO):\n return YKHO.endpoint.address",
"def vAkW(YKHO, w2IS: Optional[str]=None) -> str:\n if w2IS and w2IS not in YKHO.endpoints:\n raise AttributeError(\"Endpoint '{}' not found.\".format(w2IS))\n if w2IS:\n return YKHO._address + w2IS\n else:\n return YKHO._address",... | [
"0.76925397",
"0.7348165",
"0.7218526",
"0.7198484",
"0.7165849",
"0.70535415",
"0.7001909",
"0.7001909",
"0.7001909",
"0.7001909",
"0.69610184",
"0.69610184",
"0.6864343",
"0.68642485",
"0.68477225",
"0.68477225",
"0.68477225",
"0.68477225",
"0.68477225",
"0.68477225",
"0.68... | 0.0 | -1 |
The type of the resource. Ex Microsoft.Network/trafficManagerProfiles. | def type(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n ... | [
"0.7815755",
"0.7815755",
"0.7815755",
"0.7815755",
"0.7815755",
"0.7815755",
"0.7815755",
"0.7815755",
"0.7815755",
"0.7815755",
"0.7815755",
"0.7815755",
"0.7815755",
"0.7815755",
"0.7737514",
"0.7737514",
"0.77104515",
"0.77035815",
"0.7638061",
"0.7629171",
"0.7629171",
... | 0.0 | -1 |
Class containing endpoint monitoring settings in a Traffic Manager profile. | def FIMM(Ro_8, *, xSC3: Optional[Sequence['outputs.MonitorConfigResponseCustomHeaders']]=None, VI0J: Optional[Sequence['outputs.MonitorConfigResponseExpectedStatusCodeRanges']]=None, zlOR: Optional[float]=None, pmON: Optional[str]=None, bIwZ: Optional[float]=None, zBZz: Optional[str]=None, iquo: Optional[str]=None, E9x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MZhM(YKHO) -> laHg.Dict[str, laHg.Any]:\n return wk5E.config['SWORD_ENDPOINTS'][YKHO.pid_type]",
"def lMZ5(YKHO):\n return YKHO.endpoint",
"def Pp8v(QePW):\n from reactor.endpoint import EndpointConfig\n return EndpointConfig()",
"def n5rA(nPrm):\n g2zq = WW2C()\n g2zq._MonitoringProfil... | [
"0.5731381",
"0.56144804",
"0.5605184",
"0.54782975",
"0.5441168",
"0.5439166",
"0.54390633",
"0.54389447",
"0.54389447",
"0.53898734",
"0.5333016",
"0.5324476",
"0.5324476",
"0.5313078",
"0.5290471",
"0.528168",
"0.52808404",
"0.5278164",
"0.52720356",
"0.52720356",
"0.52704... | 0.0 | -1 |
The monitor interval for endpoints in this profile. This is the interval at which Traffic Manager will check the health of each endpoint in this profile. | def zlOR(YKHO) -> h8nf[float]:
return qe4Y.get(YKHO, 'interval_in_seconds') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vL0e(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'monitoring_interval')",
"def qx0f(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service_monitor_interval')",
"def VOlW(YKHO) -> gYcJ:\n return YKHO._interval",
"def LolU(YKHO):\n return YKHO._get_attribute('pollInterval')",
"def O... | [
"0.6877767",
"0.67470247",
"0.6500141",
"0.63950694",
"0.63718224",
"0.63718224",
"0.6353691",
"0.6343231",
"0.6323369",
"0.6319403",
"0.6319403",
"0.6319403",
"0.6319403",
"0.6319403",
"0.6319403",
"0.6319403",
"0.6319403",
"0.6319403",
"0.6319403",
"0.6319403",
"0.6319403",... | 0.0 | -1 |
The path relative to the endpoint domain name used to probe for endpoint health. | def pmON(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'path') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TXNx(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'health_check_path')",
"def xtev(YKHO, w2IS):\n return TDhU(YKHO.base_url, w2IS)",
"def TXNx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'health_check_path')",
"def j00h(YKHO) -> str:\n return wROM.clean_endpoint_for_naming(YKHO.get... | [
"0.7367399",
"0.6979354",
"0.6946825",
"0.67193073",
"0.66999066",
"0.66683495",
"0.66502386",
"0.66502386",
"0.66502386",
"0.66502386",
"0.66502386",
"0.66502386",
"0.66502386",
"0.66502386",
"0.66502386",
"0.66502386",
"0.6644983",
"0.66253954",
"0.6605055",
"0.65941006",
"... | 0.6308466 | 46 |
The identity that created the resource. | def tC0c(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'created_by') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _E99(YKHO):\n return YKHO._id",
"def _E99(YKHO) -> h8nf[qe4Y.Input['ResourceIdentityArgs']]:\n return qe4Y.get(YKHO, 'identity')",
"def _E99(YKHO) -> h8nf[qe4Y.Input['ResourceIdentityArgs']]:\n return qe4Y.get(YKHO, 'identity')",
"def _E99(YKHO):\n return YKHO._identity",
"def _E99(YKHO):\n... | [
"0.7843232",
"0.77704716",
"0.77704716",
"0.73647237",
"0.72918636",
"0.72405744",
"0.720839",
"0.7151771",
"0.713974",
"0.7068865",
"0.7068865",
"0.706653",
"0.704077",
"0.704077",
"0.704077",
"0.7016467",
"0.70125633",
"0.6995592",
"0.6965497",
"0.6965497",
"0.6960262",
"... | 0.0 | -1 |
The type of identity that created the resource. | def IM__(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'created_by_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO) -> h8nf[qe4Y.Input['ResourceIdentityType']]:\n return qe4Y.get(YKHO, 'type')",
"def type(YKHO) -> qe4Y.Input[uLKX[str, 'ResourceIdentityType']]:\n return qe4Y.get(YKHO, 'type')",
"def type(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'ResourceIdentityType']]]:\n return qe4Y.get(YKHO, 'type')",
... | [
"0.80184454",
"0.7972079",
"0.7768516",
"0.76645863",
"0.7625614",
"0.73793274",
"0.72017866",
"0.7081784",
"0.69903845",
"0.69852734",
"0.69852734",
"0.6944054",
"0.6918072",
"0.6907633",
"0.6907633",
"0.6907633",
"0.6907633",
"0.6907633",
"0.6907633",
"0.6907633",
"0.690763... | 0.6751919 | 31 |
The type of identity that last modified the resource. | def Talo(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'last_modified_at') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6O_(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'last_modified_by_type')",
"def V6O_(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'last_modified_by_type')",
"def V6O_(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'last_modified_by_type')",
"def V6O_(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, '... | [
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426",
"0.77267426"... | 0.6155746 | 88 |
The identity that last modified the resource. | def TM74(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'last_modified_by') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return YKHO.mtime",
"def TM74(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_modified_by')",
"def TM74(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_modified_by')",
"def TM74(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_modified_by')",
"def TM74(YKHO) -> str:\n return qe4Y.get(YKHO... | [
"0.76169413",
"0.7415523",
"0.7415523",
"0.7415523",
"0.7415523",
"0.7372433",
"0.73428905",
"0.73428905",
"0.7320304",
"0.7320304",
"0.7320304",
"0.71454936",
"0.71454936",
"0.71454936",
"0.71454936",
"0.71287775",
"0.71122986",
"0.7091997",
"0.7077446",
"0.70386225",
"0.699... | 0.70475525 | 19 |
The type of identity that last modified the resource. | def V6O_(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'last_modified_by_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kMPX(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_modified_time')",
"def kMPX(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_modified_time')",
"def kMPX(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_modified_time')",
"def TO1Y(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_modified')",
"def type(YKH... | [
"0.6575318",
"0.6575318",
"0.6575318",
"0.6528215",
"0.65214217",
"0.6509069",
"0.65038365",
"0.6493626",
"0.6487821",
"0.64729625",
"0.6455677",
"0.6444357",
"0.6416347",
"0.6416347",
"0.6416347",
"0.6416347",
"0.6391224",
"0.6390971",
"0.63890123",
"0.6375214",
"0.6335787",... | 0.77267426 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"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.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Returns a YYYYMMDDHH int representing the expiration time. | def t3BN():
iWzb = qcWV.datetime.utcnow() - qcWV.timedelta(seconds=IoNT)
return int(iWzb.strftime('%Y%m%d%H')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBx7(YKHO) -> str:\n return qe4Y.get(YKHO, 'expiration_time')",
"def OBx7(YKHO) -> str:\n return qe4Y.get(YKHO, 'expiration_time')",
"def OBx7(YKHO) -> float:\n return qe4Y.get(YKHO, 'expiration_time')",
"def OBx7(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'expiration_time')",
"def ... | [
"0.7880555",
"0.7880555",
"0.78397816",
"0.77106994",
"0.7603519",
"0.75939417",
"0.7476324",
"0.7438057",
"0.73815215",
"0.73273724",
"0.7281018",
"0.72641516",
"0.7264065",
"0.7264065",
"0.72571397",
"0.72358495",
"0.7202046",
"0.71458584",
"0.71458584",
"0.71458584",
"0.71... | 0.7910449 | 0 |
Returns True if either self._loop is not running, or we're currently executing on self._loop. In both cases, waiting for a future to be resolved on the loop would result in a deadlock. | def lICn(YKHO) -> bool:
if not YKHO._loop.is_running():
return True
veI6 = None
try:
veI6 = V7ok.get_event_loop()
except RuntimeError:
pass
return YKHO._loop == veI6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_tB(YKHO):\n return YKHO._is_loop",
"def HX9S(YKHO):\n return YKHO.event_loop is not None",
"def WTIh(YKHO):\n return YKHO._loop_implem is not None",
"def HX9S(YKHO):\n return not YKHO.done()",
"def fr_h(YKHO) -> bool:\n return YKHO._is_inside_loop",
"def ASje(YKHO):\n if YKHO._thr... | [
"0.72962004",
"0.724838",
"0.7183345",
"0.7113745",
"0.7081407",
"0.6994854",
"0.69938594",
"0.6948853",
"0.69453657",
"0.69184804",
"0.6905868",
"0.68730414",
"0.6869581",
"0.6869581",
"0.68620515",
"0.6832925",
"0.68307436",
"0.6792381",
"0.6778961",
"0.6777393",
"0.6758556... | 0.82825714 | 0 |
return a list of top K tweets based on their ranking from highest to lowest | def uhF6(dZY2, G1Hx=1):
CFWh = []
for or8S, (H5ew, BWXx) in enumerate(dZY2.items()):
if or8S == 2000:
break
elif or8S == G1Hx:
break
else:
CFWh.append((H5ew, BWXx))
return CFWh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F3b1(YKHO, uJjO, G1Hx=5, **B2fa):\n QpfX = None\n if 'context' in B2fa:\n QpfX = B2fa['context']\n elif 'timestamp' in B2fa:\n E3oo = B2fa['timestamp']\n QpfX = YKHO.ctxabs.retrieve_context(E3oo)\n nEME = YKHO.include_known\n if 'include_known' in B2fa:\n nEME = B2fa[... | [
"0.7029315",
"0.69360185",
"0.6847404",
"0.6766883",
"0.6690333",
"0.6643682",
"0.6639562",
"0.66295105",
"0.6586867",
"0.6545113",
"0.6540722",
"0.650937",
"0.64766794",
"0.64660984",
"0.6426451",
"0.6424484",
"0.64151233",
"0.639888",
"0.6395605",
"0.6384612",
"0.6381673",
... | 0.6238565 | 38 |
Apply the starlet transform to image. Coeffients are stored in | def SZFh(YKHO, Xn71, bf90=None):
jWa5, Q9GL = Xn71.shape
if YKHO.ns <= 1 or YKHO.nx != jWa5 or YKHO.ny != Q9GL:
YKHO.init_starlet(jWa5, Q9GL, nscale=0)
if bf90 is not None:
YKHO.name = bf90
YKHO.coef = fbdO(Xn71, YKHO.ns, YKHO.gen2, YKHO.bord, YKHO.nb_procs, True, YKHO.verb)
if YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def niyA(SZFh, LNo8, aC0l, GoGv='linear'):\n return SZFh.apply_to_image(LNo8, aC0l, GoGv)",
"def JEPG(YKHO, VXjJ: np.ndarray) -> oyIN.ndarray:\n return XC5k.warpAffine(VXjJ, YKHO.affine, YKHO.output_size, flags=XC5k.INTER_LINEAR)",
"def JEPG(YKHO, VXjJ: np.ndarray):\n pass",
"def wlGD(YKHO, LNo8, aC... | [
"0.6375223",
"0.6178721",
"0.61616904",
"0.61376035",
"0.6119758",
"0.61010504",
"0.60799915",
"0.6069095",
"0.5970953",
"0.5928057",
"0.59058946",
"0.5901365",
"0.58846056",
"0.5873628",
"0.58669287",
"0.58351177",
"0.58310306",
"0.578824",
"0.5781234",
"0.5775354",
"0.57717... | 0.66429895 | 0 |
Return a copy of a given scale of the decomposition. | def RS7X(YKHO, r845):
bi20 = oyIN.zeros((YKHO.nx, YKHO.ny))
bi20[:, :] = YKHO.coef[r845, :, :]
return bi20 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXpY(YKHO, KCHu=None):\n if KCHu is None:\n return oyIN.array(YKHO.GetScale())\n YKHO.SetScale(KCHu)\n return YKHO",
"def NXpY(YKHO):\n return opuJ(gk2W.pointer(YKHO._ptr.contents.scale))",
"def Lwtl(NXpY, tpio=4):\n assert tpio >= 2\n Ylbp = oyIN.identity(tpio, dtype=float)\n Y... | [
"0.6752871",
"0.674023",
"0.6718366",
"0.67050874",
"0.6692505",
"0.665029",
"0.66479534",
"0.664631",
"0.664631",
"0.664631",
"0.6605861",
"0.6605861",
"0.6524569",
"0.6502923",
"0.64915144",
"0.64780766",
"0.6410686",
"0.6393367",
"0.6377566",
"0.6351727",
"0.63389826",
"... | 0.6475503 | 16 |
Multiples the MDS matrix against a column vector generating one cell for our mix columns matrix | def dqm3(SppC: List[List[int]], fp4l: int, Mi_s: int, GOZd: bool) -> int:
hlel = 0
for f1pu, VmPb in enumerate(YkBA[Mi_s] if GOZd else MERG[Mi_s]):
ycBG = SppC[f1pu][fp4l]
hlel ^= H1u4(VmPb, ycBG)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t7q0(QTBn, SppC):\n hlel = ['0x' for WKvO in range(4)]\n for YRbF in range(4):\n for r845 in range(4):\n Fg_i = '0x00'\n for exwG in range(1, 5):\n jzdc = GoUf(Mivl(int(SppC[r845][exwG * 2:(exwG + 1) * 2], 16), int(QTBn[YRbF][exwG * 2:(exwG + 1) * 2], 16)), 2)\... | [
"0.6456518",
"0.62329155",
"0.6172226",
"0.6168244",
"0.5973525",
"0.5925135",
"0.5890464",
"0.588915",
"0.5857729",
"0.5842245",
"0.5839533",
"0.5763215",
"0.5761058",
"0.56949776",
"0.56763864",
"0.56184655",
"0.5612581",
"0.5585615",
"0.55817807",
"0.55500597",
"0.55412453... | 0.5038395 | 92 |
It is intended to return a list of layers containing list of neurons containg list of synapses weights | def OqPV(YKHO):
hlel = []
for gEmA in YKHO.neuron_layers_list:
ZTmp = []
for HgE9 in gEmA:
xlFA = []
for fa4u in HgE9.input_synapses:
xlFA.append(fa4u.weight)
ZTmp.append(xlFA)
hlel.append(ZTmp)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a5cZ(YKHO):\n for oHE7 in range(len(YKHO.neuron_layers_list) - 1):\n for gDFS in YKHO.neuron_layers_list[oHE7 + 1]:\n for JIG0 in YKHO.neuron_layers_list[oHE7]:\n _UI5 = CQLK.Synapse(_input=JIG0, _out=gDFS)\n gDFS.input_synapses.append(_UI5)\n J... | [
"0.7256542",
"0.70771223",
"0.68989813",
"0.68813527",
"0.6847329",
"0.67984295",
"0.67478585",
"0.67279106",
"0.6583342",
"0.6576341",
"0.657633",
"0.6567608",
"0.6548091",
"0.6536508",
"0.6493988",
"0.64781123",
"0.64457715",
"0.6421081",
"0.6412136",
"0.6407082",
"0.640441... | 0.71369886 | 1 |
Average obtained weight adjustements and adjust weights accordingly. Clear list of adjustement for next iteration | def Sw2c(YKHO):
for gEmA in YKHO.network.neuron_layers_list:
for HgE9 in gEmA:
for H1is in HgE9.input_synapses:
DE6H = sum(H1is.weight_adjustment) / len(H1is.weight_adjustment)
H1is.weight += DE6H
H1is.weight_adjustment = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.aanpassingWeights = []\n YKHO.calculate_deltaWeights()\n for YRbF in range(len(YKHO.aanpassingWeights)):\n YKHO.weights[YRbF] -= YKHO.aanpassingWeights[YRbF]\n YKHO.bias -= YKHO.calculate_deltaBias()",
"def wkoD(YKHO):\n for _x49, dUg8 in YKHO.weights.items():\n ... | [
"0.7629252",
"0.7597527",
"0.7517658",
"0.74654514",
"0.7450712",
"0.73005766",
"0.72822",
"0.72178054",
"0.71829164",
"0.71533406",
"0.714299",
"0.7123159",
"0.70732087",
"0.70732087",
"0.70638126",
"0.704235",
"0.704235",
"0.7033683",
"0.7026083",
"0.6986864",
"0.69669205",... | 0.80243975 | 0 |
If code is provided, set it as it is. If code's name is provided, select the code and set it. | def NYL4(YKHO, nZuS):
Wxnj = nZuS['value']
if Wxnj is None:
return None
if isinstance(Wxnj, str):
if Wxnj in YKHO.codes:
return YKHO.codes[Wxnj]
raise KeyError("No code named '{}' found in the AiiDA database.".format(Wxnj))
if isinstance(Wxnj, VKEj):
UXqs = YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xGo7(YKHO, Wxnj):\n YKHO.code = Wxnj",
"def xGo7(YKHO, Wxnj):\n YKHO.__code = Wxnj",
"def kztS(YKHO, Wxnj):\n YKHO._code = YKHO._validate_code(Wxnj)",
"def QvGq(YKHO, kmfd):\n YKHO._code_name = kmfd\n if YKHO._name is None:\n YKHO._name = YKHO._code_name",
"def pLUH(YKHO, sbHd):\n... | [
"0.7771632",
"0.7650373",
"0.75558937",
"0.7541153",
"0.7204417",
"0.7167883",
"0.7167883",
"0.7167883",
"0.7167883",
"0.7167883",
"0.7167883",
"0.7167883",
"0.7167883",
"0.7167883",
"0.7167883",
"0.7167883",
"0.7136652",
"0.7097982",
"0.7097982",
"0.7097982",
"0.7097982",
... | 0.58878446 | 76 |
Adds an edge to the graph with the appropriate data. | def VRzo(YKHO, F1TE, JZXy, pan_):
YKHO.graph.add_edge(JZXy, pan_, data=IBSb()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, tTpl):\n Ty9i, yzQ0 = (tTpl[0], tTpl[1])\n YKHO.data[Ty9i][yzQ0] = tTpl\n YKHO.data[yzQ0][Ty9i] = tTpl",
"def rz7z(YKHO, D70y):\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n aF0O, Br5Q = D70y\n YKHO.add_node(aF0O)\n... | [
"0.82292044",
"0.8223392",
"0.8223392",
"0.81839585",
"0.8059203",
"0.8009557",
"0.79096407",
"0.7880915",
"0.78630316",
"0.7844005",
"0.78403723",
"0.78347325",
"0.7833931",
"0.7814099",
"0.7803644",
"0.77946967",
"0.77885073",
"0.7788191",
"0.77833354",
"0.7744566",
"0.7741... | 0.0 | -1 |
Gets the dependencies with versions that are used and installed in the path. | def T3LY(YKHO):
Nz3q = set()
for tk5Y, AQSv, RRlC in Hy7s.walk(YKHO.path):
for nUeQ in RRlC:
if nUeQ.endswith('.py'):
qaEx = Hy7s.path.join(tk5Y, nUeQ)
Nz3q.update((WKvO.name.split('.')[0] for WKvO in xTwe(qaEx)))
cEzT = qHZg.utils.get_installed_distributi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UxtD(YKHO):\n fUpG = YKHO._pkg.CurrentVer\n if fUpG is None:\n return []\n return YKHO._getDependencies(fUpG)",
"def ZiBT(YKHO):\n qQWd = seuK.read_from_file(YKHO._deps_file)\n dixj = []\n for C2Rp in qQWd:\n try:\n dixj.append((YKHO._repo.get_tree(C2Rp.url, working... | [
"0.76049685",
"0.73530143",
"0.7266247",
"0.7232959",
"0.7052216",
"0.7039982",
"0.7010562",
"0.68767095",
"0.68767095",
"0.6841207",
"0.683467",
"0.6832897",
"0.680577",
"0.6782452",
"0.67628896",
"0.67584527",
"0.67257315",
"0.6721096",
"0.67161214",
"0.67130494",
"0.671304... | 0.68855643 | 7 |
Checks if we can set motion detection. | def MT9j(YKHO, ryQO, x4rM):
YKHO.blink.setup_system()
YKHO.test_urls = BIxO.BlinkURLHandler(YKHO.region_id)
aUDj = ZEyn.get_test_cameras(YKHO.test_urls.base_url)
for rSkA in aUDj:
YKHO.blink.cameras[rSkA].set_motion_detect(True)
YKHO.blink.refresh()
YKHO.assertEqual(YKHO.blink.ca... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZXRi(YKHO, f4IJ):\n return False",
"def GugQ(YKHO):\n YKHO.motionDetected = True",
"def Z5XF(YKHO):\n return YKHO._motion_status",
"def Z5XF(YKHO):\n return YKHO._device.params['CAMERA_PIR']",
"def Debg(YKHO) -> bool:\n return YKHO._device.motion_detected",
"async def async_enable_moti... | [
"0.7756598",
"0.7030671",
"0.6992005",
"0.6908012",
"0.6654446",
"0.6618812",
"0.66037744",
"0.6369669",
"0.6210583",
"0.62063265",
"0.6175271",
"0.59522533",
"0.59337854",
"0.5896836",
"0.58789617",
"0.58775777",
"0.5848224",
"0.5837834",
"0.5835101",
"0.5825733",
"0.5818911... | 0.60901177 | 11 |
Doing the linear activation and the forward activation in one step. | def Gb4f(XcU5, etIE, Fg_i, hYvg):
Nk6w = fXOP(XcU5, etIE, Fg_i)
k0lF = Q9YM(Nk6w, hYvg)
return k0lF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPkV(etIE, XcU5, Fg_i, YDYE):\n if YDYE == 'sigmoid':\n Nk6w, LGGw = dD1r(etIE, XcU5, Fg_i)\n k0lF, w80d = m1Hg(Nk6w)\n elif YDYE == 'relu':\n Nk6w, LGGw = dD1r(etIE, XcU5, Fg_i)\n k0lF, w80d = QZir(Nk6w)\n wyyA = (LGGw, w80d)\n return (k0lF, wyyA)",
"def PPkV(etIE, Xc... | [
"0.7856956",
"0.76851094",
"0.7664341",
"0.7656144",
"0.75088495",
"0.7489547",
"0.747529",
"0.747308",
"0.7454998",
"0.74500597",
"0.7449842",
"0.7433612",
"0.74106914",
"0.7383838",
"0.73829025",
"0.73778206",
"0.7373499",
"0.73729414",
"0.73500454",
"0.73448753",
"0.733437... | 0.71074724 | 46 |
It returns the value of the derivatives of the cost function respect to Y_hat, which is the same as A[L], i.e., the activation of the last layer considering we use the logistic regression function. | def lpww(U9zx, fuBA):
assert U9zx.shape == fuBA.shape, 'Dimensions of Y and Y_hat must be the same'
g4X0 = -fuBA / U9zx + (1 - fuBA) / (1 - U9zx)
return g4X0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Af4r(VJv0: np.ndarray, uN02: np.ndarray) -> float:\n r8hN = VJv0.shape[0]\n sSN_ = -1 / r8hN * (oyIN.dot(VJv0.T, oyIN.log(uN02)) + oyIN.dot((1 - VJv0).T, oyIN.log(1 - uN02)))\n return sSN_[0, 0]",
"def MU2M(q7In, EcVT, LVAh):\n r8hN = len(LVAh)\n MKlR = m1Hg(oyIN.dot(EcVT, q7In))\n Oa10 = (... | [
"0.79273075",
"0.76814395",
"0.7577207",
"0.7554208",
"0.7538122",
"0.7534947",
"0.7500606",
"0.74641055",
"0.7447215",
"0.7447123",
"0.7437311",
"0.7380925",
"0.73712313",
"0.7338859",
"0.73296034",
"0.72616",
"0.7245173",
"0.7235725",
"0.7199846",
"0.7189656",
"0.71815753",... | 0.80669 | 0 |
It does an iteration of the backpropagation algorithm in certain layer. It get dZ, dW, db and dA_prev. | def ejxw(LQ6K, Nk6w, hYvg, etIE, XcU5):
R5Nm = hIAD(LQ6K, Nk6w, hYvg)
HFON = YzUS(R5Nm, etIE)
NCls = nbnu(R5Nm)
wQ6z = VKn3(XcU5, R5Nm)
return (R5Nm, HFON, NCls, wQ6z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WVKq(YKHO, epBp, jzdc, Y8eF):\n RA_F = YKHO.loss.delta(Y8eF, jzdc[YKHO.n_layers])\n ncXl = TVu4(YKHO.w[YKHO.n_layers - 1])\n BBWi.backpropagation_updates_Cython(jzdc[YKHO.n_layers - 1], RA_F, ncXl.row, ncXl.col, ncXl.data)\n x2Fr = {YKHO.n_layers - 1: (ncXl.tocsr(), RA_F)}\n for YRbF in reversed... | [
"0.7548849",
"0.730434",
"0.7145424",
"0.7135842",
"0.7134015",
"0.71315557",
"0.71244013",
"0.71034575",
"0.7082844",
"0.7074497",
"0.70470625",
"0.7026367",
"0.70241815",
"0.7010747",
"0.7004843",
"0.69766766",
"0.6973895",
"0.6949881",
"0.69492966",
"0.6945916",
"0.6938484... | 0.78315985 | 0 |
Testing the POST reviewrequests//draft/diffs//files/ API gives Method Not Allowed | def uADL(YKHO):
lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)
OIkQ = YKHO.create_diffset(lnN1, draft=True)
YKHO.apiPost(fNSu(OIkQ, lnN1), expected_status=405) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JNMX(YKHO):\n lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)\n OIkQ = YKHO.create_diffset(lnN1, draft=True)\n A5j5 = YKHO.create_filediff(OIkQ)\n YKHO.apiPut(kbne(A5j5, lnN1), expected_status=405)",
"def vQCz(YKHO):\n lnN1 = YKHO.create_review_request(create_rep... | [
"0.75994325",
"0.7468829",
"0.7146528",
"0.70710456",
"0.69976455",
"0.69850254",
"0.67772424",
"0.65015334",
"0.64920324",
"0.6439707",
"0.64209026",
"0.64067894",
"0.6392067",
"0.63358974",
"0.6335414",
"0.63263416",
"0.63262707",
"0.6318085",
"0.63174033",
"0.6303615",
"0.... | 0.8228152 | 0 |
Testing the GET reviewrequests//draft/diffs//files/ API | def ykgQ(YKHO):
lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)
OIkQ = YKHO.create_diffset(lnN1, draft=True)
A5j5 = YKHO.create_filediff(OIkQ)
uDyx = YKHO.apiGet(fNSu(OIkQ, lnN1), expected_mimetype=PxI2)
YKHO.assertEqual(uDyx['stat'], 'ok')
YKHO.assertEqual(uDyx['f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ykgQ(YKHO):\n lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)\n OIkQ = YKHO.create_diffset(lnN1, draft=True)\n A5j5 = YKHO.create_filediff(OIkQ)\n uDyx = YKHO.apiGet(kbne(A5j5, lnN1), expected_mimetype=Vtlz)\n YKHO.assertEqual(uDyx['stat'], 'ok')\n YKHO.assertEq... | [
"0.8334235",
"0.7572166",
"0.7288864",
"0.7139302",
"0.7134345",
"0.7040942",
"0.6966558",
"0.69066817",
"0.69059706",
"0.6854428",
"0.6796311",
"0.67221236",
"0.670253",
"0.66977906",
"0.6694928",
"0.6637857",
"0.6627775",
"0.6606597",
"0.6601742",
"0.658841",
"0.65760946",
... | 0.85113275 | 0 |
Testing the GET reviewrequests//draft/diffs//files/ API with a local site | def oCwZ(YKHO):
CBIr = YKHO._login_user(local_site=True)
lnN1 = YKHO.create_review_request(create_repository=True, with_local_site=True, submitter=CBIr)
OIkQ = YKHO.create_diffset(lnN1, draft=True)
A5j5 = YKHO.create_filediff(OIkQ)
uDyx = YKHO.apiGet(fNSu(OIkQ, lnN1, YKHO.local_site_name), expected_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ykgQ(YKHO):\n lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)\n OIkQ = YKHO.create_diffset(lnN1, draft=True)\n A5j5 = YKHO.create_filediff(OIkQ)\n uDyx = YKHO.apiGet(fNSu(OIkQ, lnN1), expected_mimetype=PxI2)\n YKHO.assertEqual(uDyx['stat'], 'ok')\n YKHO.assertEq... | [
"0.79691565",
"0.78687274",
"0.7841134",
"0.73865396",
"0.73837316",
"0.73197556",
"0.71028125",
"0.68428093",
"0.6809614",
"0.6752269",
"0.6711138",
"0.6669583",
"0.6629475",
"0.66036665",
"0.6593412",
"0.6584786",
"0.65485626",
"0.65201396",
"0.65080297",
"0.6495772",
"0.64... | 0.8011311 | 0 |
Testing the GET reviewrequests//draft/diffs//files/ API without owner with Permission Denied error | def Fc_m(YKHO):
lnN1 = YKHO.create_review_request(create_repository=True)
YKHO.assertNotEqual(lnN1.submitter, YKHO.user)
OIkQ = YKHO.create_diffset(lnN1, draft=True)
YKHO.apiGet(fNSu(OIkQ, lnN1), expected_status=403) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fc_m(YKHO):\n lnN1 = YKHO.create_review_request(create_repository=True)\n YKHO.assertNotEqual(lnN1.submitter, YKHO.user)\n OIkQ = YKHO.create_diffset(lnN1, draft=True)\n A5j5 = YKHO.create_filediff(OIkQ)\n YKHO.apiGet(kbne(A5j5, lnN1), expected_status=403)",
"def DRRz(YKHO):\n lnN1 = YKHO.c... | [
"0.790833",
"0.7588636",
"0.7263037",
"0.7205188",
"0.7098398",
"0.69684315",
"0.69268525",
"0.6864816",
"0.6831274",
"0.68059427",
"0.6664636",
"0.66186047",
"0.6545956",
"0.646212",
"0.6454787",
"0.6388691",
"0.637147",
"0.637147",
"0.6362205",
"0.6350119",
"0.63421047",
... | 0.7998397 | 0 |
Testing the DELETE reviewrequests//draft/diffs//files// API gives Method Not Allowed | def vQCz(YKHO):
lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)
OIkQ = YKHO.create_diffset(lnN1, draft=True)
A5j5 = YKHO.create_filediff(OIkQ)
YKHO.apiDelete(kbne(A5j5, lnN1), expected_status=405) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uADL(YKHO):\n lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)\n OIkQ = YKHO.create_diffset(lnN1, draft=True)\n YKHO.apiPost(fNSu(OIkQ, lnN1), expected_status=405)",
"def JNMX(YKHO):\n lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)\n ... | [
"0.7627818",
"0.7385186",
"0.69148016",
"0.6763735",
"0.65974927",
"0.65714073",
"0.6518012",
"0.6484933",
"0.6467939",
"0.6413129",
"0.64116937",
"0.6400133",
"0.6257891",
"0.6233451",
"0.62086606",
"0.61770403",
"0.61689496",
"0.6139503",
"0.6127746",
"0.61197174",
"0.60804... | 0.8480428 | 0 |
Testing the GET reviewrequests//draft/diffs//files// API | def ykgQ(YKHO):
lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)
OIkQ = YKHO.create_diffset(lnN1, draft=True)
A5j5 = YKHO.create_filediff(OIkQ)
uDyx = YKHO.apiGet(kbne(A5j5, lnN1), expected_mimetype=Vtlz)
YKHO.assertEqual(uDyx['stat'], 'ok')
YKHO.assertEqual(uDyx['f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ykgQ(YKHO):\n lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)\n OIkQ = YKHO.create_diffset(lnN1, draft=True)\n A5j5 = YKHO.create_filediff(OIkQ)\n uDyx = YKHO.apiGet(fNSu(OIkQ, lnN1), expected_mimetype=PxI2)\n YKHO.assertEqual(uDyx['stat'], 'ok')\n YKHO.assertEq... | [
"0.84947187",
"0.7505673",
"0.71348244",
"0.7069242",
"0.70295036",
"0.6994046",
"0.69871026",
"0.6912835",
"0.6893347",
"0.68075824",
"0.6713791",
"0.6701259",
"0.67010766",
"0.666526",
"0.665972",
"0.66582644",
"0.66117525",
"0.65898764",
"0.6564639",
"0.6544371",
"0.646046... | 0.82808584 | 1 |
Testing the GET reviewrequests//draft/diffs//files// API with a local site | def oCwZ(YKHO):
CBIr = YKHO._login_user(local_site=True)
lnN1 = YKHO.create_review_request(create_repository=True, with_local_site=True, submitter=CBIr)
OIkQ = YKHO.create_diffset(lnN1, draft=True)
A5j5 = YKHO.create_filediff(OIkQ)
uDyx = YKHO.apiGet(kbne(A5j5, lnN1, YKHO.local_site_name), expected_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oCwZ(YKHO):\n CBIr = YKHO._login_user(local_site=True)\n lnN1 = YKHO.create_review_request(create_repository=True, with_local_site=True, submitter=CBIr)\n OIkQ = YKHO.create_diffset(lnN1, draft=True)\n A5j5 = YKHO.create_filediff(OIkQ)\n uDyx = YKHO.apiGet(fNSu(OIkQ, lnN1, YKHO.local_site_name),... | [
"0.8037926",
"0.8005149",
"0.7861549",
"0.74262106",
"0.7418398",
"0.73482025",
"0.7134731",
"0.6851904",
"0.68336123",
"0.6758722",
"0.6666811",
"0.66287416",
"0.6618375",
"0.6615262",
"0.66050076",
"0.65994173",
"0.65762514",
"0.65692145",
"0.6541799",
"0.6516672",
"0.64962... | 0.78849804 | 2 |
Testing the GET reviewrequests//draft/diffs//files// API with a local site and user not on the site | def AgPR(YKHO):
CBIr = YKHO._login_user(local_site=True)
lnN1 = YKHO.create_review_request(submitter=CBIr, create_repository=True, with_local_site=True)
OIkQ = YKHO.create_diffset(lnN1, draft=True)
A5j5 = YKHO.create_filediff(OIkQ)
CBIr = YKHO._login_user()
YKHO.apiGet(kbne(A5j5, lnN1, YKHO.loca... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oCwZ(YKHO):\n CBIr = YKHO._login_user(local_site=True)\n lnN1 = YKHO.create_review_request(create_repository=True, with_local_site=True, submitter=CBIr)\n OIkQ = YKHO.create_diffset(lnN1, draft=True)\n A5j5 = YKHO.create_filediff(OIkQ)\n uDyx = YKHO.apiGet(fNSu(OIkQ, lnN1, YKHO.local_site_name),... | [
"0.7796375",
"0.7686794",
"0.7673594",
"0.76675195",
"0.7574588",
"0.7301262",
"0.7028224",
"0.70241636",
"0.6985536",
"0.6957833",
"0.69514227",
"0.6848148",
"0.67953503",
"0.67258775",
"0.6721033",
"0.67122614",
"0.6597429",
"0.6552418",
"0.65432376",
"0.6516387",
"0.649124... | 0.76340663 | 4 |
Testing the GET reviewrequests//draft/diffs//files// API without owner with Permission Denied error | def Fc_m(YKHO):
lnN1 = YKHO.create_review_request(create_repository=True)
YKHO.assertNotEqual(lnN1.submitter, YKHO.user)
OIkQ = YKHO.create_diffset(lnN1, draft=True)
A5j5 = YKHO.create_filediff(OIkQ)
YKHO.apiGet(kbne(A5j5, lnN1), expected_status=403) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fc_m(YKHO):\n lnN1 = YKHO.create_review_request(create_repository=True)\n YKHO.assertNotEqual(lnN1.submitter, YKHO.user)\n OIkQ = YKHO.create_diffset(lnN1, draft=True)\n YKHO.apiGet(fNSu(OIkQ, lnN1), expected_status=403)",
"def DRRz(YKHO):\n lnN1 = YKHO.create_review_request(submitter=YKHO.use... | [
"0.8102196",
"0.76255125",
"0.72513646",
"0.7250536",
"0.7068506",
"0.7020401",
"0.6982664",
"0.6914911",
"0.6883104",
"0.6795325",
"0.6674934",
"0.6595969",
"0.6555825",
"0.6484834",
"0.6458164",
"0.63186646",
"0.62642914",
"0.62642914",
"0.6260776",
"0.623605",
"0.6233323",... | 0.80056745 | 1 |
Testing the PUT reviewrequests//draft/diffs//files// API gives Method Not Allowed | def JNMX(YKHO):
lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)
OIkQ = YKHO.create_diffset(lnN1, draft=True)
A5j5 = YKHO.create_filediff(OIkQ)
YKHO.apiPut(kbne(A5j5, lnN1), expected_status=405) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uADL(YKHO):\n lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)\n OIkQ = YKHO.create_diffset(lnN1, draft=True)\n YKHO.apiPost(fNSu(OIkQ, lnN1), expected_status=405)",
"def vQCz(YKHO):\n lnN1 = YKHO.create_review_request(create_repository=True, submitter=YKHO.user)\n ... | [
"0.75151485",
"0.71963376",
"0.66358614",
"0.65045005",
"0.6428163",
"0.6344212",
"0.62925464",
"0.62836796",
"0.62671024",
"0.61569685",
"0.6136852",
"0.61271864",
"0.61152554",
"0.6098316",
"0.604867",
"0.60262257",
"0.5986627",
"0.5979602",
"0.5956173",
"0.593406",
"0.5906... | 0.81675 | 0 |
Returns a given string in reverse order | def si9y(wEf2: str) -> str:
return wEf2[::-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o5Dc(vIwR):\n return vIwR[::-1]",
"def gxEw(KCHu):\n return KCHu[::-1]",
"def SIAB(l5Ny: str):\n return l5Ny[::-1]",
"def d7Cg(vIwR):\n print(vIwR[::-1])",
"def gxEw(KCHu):\n pass",
"def Zke2(YKHO, KCHu):\n return KCHu[::-1]",
"def iEWl(vIwR):\n return ''.join(reversed(vIwR))",... | [
"0.84264314",
"0.8216688",
"0.8123309",
"0.81184566",
"0.80310607",
"0.7976889",
"0.7940253",
"0.7904497",
"0.7860089",
"0.7813737",
"0.7810042",
"0.7800744",
"0.7791783",
"0.77700126",
"0.77525944",
"0.7747183",
"0.7742847",
"0.7719064",
"0.76488036",
"0.7645669",
"0.7643234... | 0.79558915 | 6 |
should return an object confirming the deleton should return status 200 | def hnM2(YKHO):
geh0 = YKHO.client.post(path='/tasks', json=YKHO.mockTaskWithTimes, content_type='application/json')
Bv0m = qQXR.loads(geh0.get_data(as_text=True))
_TKD = Bv0m['_id']['$oid']
geh0 = YKHO.client.post(path='/times/' + _TKD, json={'timestamp': 12345, 'amount': 666}, content_type='applicatio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1(YKHO):\n _hkX = {}\n return YKHO.response(200, **_hkX)",
"def KvvM():\n return zdcH({'status': 'OK'}, 200)",
"def NMoC(YKHO):\n return ('OK', 200)",
"def NMoC(YKHO):\n return ('OK', 200)",
"def NMoC(YKHO):\n return ({'status': \"I'm sexy and i know it\"}, 200)",
"def LeQ0():\n ... | [
"0.70409054",
"0.6683102",
"0.66826266",
"0.66826266",
"0.6646587",
"0.64859265",
"0.6451538",
"0.64501417",
"0.643807",
"0.6426431",
"0.6356508",
"0.6353039",
"0.63464737",
"0.62881714",
"0.62881714",
"0.62881714",
"0.62881714",
"0.62881714",
"0.62762684",
"0.62762684",
"0.6... | 0.0 | -1 |
Generate a new sequence with length of seq_generated_length | def dCtK(ad8h, Xpyl, yjCD, q4aw, K9Fg, ovGo):
HIh4 = ''
for YRbF in range(yjCD):
aWuw = oyIN.zeros((1, q4aw, len(K9Fg)))
for tdoI, hcXw in enumerate(Xpyl):
aWuw[0, tdoI, K9Fg[hcXw]] = 1
aTLP = ad8h.predict(aWuw, verbose=1)[0]
rYh9 = mvm2(preds=aTLP, temperatue=ovGo)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IK2L(YKHO, u54L, Wr3E):\n YKHO.sequence = [tuKI.randint(1, Wr3E) for exwG in range(u54L)]\n return YKHO.sequence",
"def TSCb(Q6uT, u54L):\n while len(Q6uT) <= u54L:\n D4CG, YPaw = (len(Q6uT), len(Q6uT) / 4)\n Q6uT += Q6uT[YPaw * 2:D4CG] + Q6uT[YPaw * 3:D4CG] + Q6uT[0:YPaw]\n return ... | [
"0.7575656",
"0.7147257",
"0.7076056",
"0.7006502",
"0.698329",
"0.69147766",
"0.68302655",
"0.67929333",
"0.6702444",
"0.6641613",
"0.6634158",
"0.6608878",
"0.65481466",
"0.65221035",
"0.64604545",
"0.64495057",
"0.6446276",
"0.64306605",
"0.6397527",
"0.6383068",
"0.634973... | 0.6907323 | 6 |
Constructor for the Study class. This initializes the fields specific to the Study class, and inherits from the Base class. | def FIMM(YKHO, *qIxc, **B2fa):
YKHO.logger = G9jH.getLogger(YKHO.__module__ + '.' + YKHO.__class__.__name__)
YKHO.logger.addHandler(G9jH.NullHandler())
YKHO._id = None
YKHO._version = None
YKHO._links = {}
YKHO._tags = []
YKHO._name = None
YKHO._description = None
YKHO._center = None... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, HjSO, KgVA, qpDA=None):\n if not (qpDA is None or isinstance(qpDA, str)):\n raise TypeError('site must be a string or None.')\n YKHO._site = qpDA\n super().__init__(subject_id=HjSO, study=KgVA)",
"def FIMM(YKHO, w1vn: str=None, yr07: datetime.datetime=None, ldel: str=None, tUCW: st... | [
"0.6706444",
"0.66453373",
"0.65530765",
"0.6377289",
"0.62973624",
"0.6296482",
"0.62852037",
"0.62663835",
"0.61709917",
"0.6168113",
"0.6162444",
"0.61497176",
"0.6122233",
"0.61170405",
"0.6081091",
"0.6071497",
"0.6066893",
"0.60552514",
"0.6037614",
"0.6021443",
"0.6019... | 0.76446575 | 0 |
Generates the raw JSON document for the current object. All required fields are filled into the JSON document, regardless of whether they are set or not. Any remaining fields are included only if they are set. This allows the user to visualize the JSON to ensure fields are set appropriately before saving. | def o1Fn(YKHO):
YKHO.logger.debug('In _get_raw_doc.')
KjNO = {'acl': {'read': ['all'], 'write': [SlOb.namespace]}, 'linkage': YKHO._links, 'ns': SlOb.namespace, 'node_type': 'study', 'meta': {'name': YKHO._name, 'description': YKHO._description, 'center': YKHO._center, 'contact': YKHO._contact, 'subtype': YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RNXi(YKHO):\n dhOI = {}\n for QWcs, hkxX in YKHO._properties.items():\n if getattr(YKHO, QWcs) is not None:\n if QWcs == '_custom_fields':\n dhOI.update(getattr(YKHO, QWcs))\n else:\n dhOI[hkxX['api_field']] = getattr(YKHO, QWcs)\n return qQXR... | [
"0.6716532",
"0.66992646",
"0.65266824",
"0.63921076",
"0.6261258",
"0.6244479",
"0.62007225",
"0.6173647",
"0.6162476",
"0.6160244",
"0.60439533",
"0.6023292",
"0.6010306",
"0.60023737",
"0.5960892",
"0.5960395",
"0.5953663",
"0.5934793",
"0.5923029",
"0.591267",
"0.5910066"... | 0.0 | -1 |
Deletes the current object (self) from the OSDF instance. If the object has not been saved previously (node ID is not set), then an error message will be logged stating the object was not deleted. If the ID is set, and exists in the OSDF instance, then the object will be deleted from the OSDF instance, and this object ... | def PTpj(YKHO):
YKHO.logger.debug('In delete.')
if YKHO._id is None:
YKHO.logger.warn('Attempt to delete a Study with no ID.')
raise Exception('Study does not have an ID.')
V6BW = YKHO._id
cuiw = p02J.get_session()
YKHO.logger.info('Got iHMP session.')
nyyK = False
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO):\n if not YKHO._ref:\n raise ValueError('Object has no reference id for deletion')\n if 'save' not in YKHO._supports:\n raise AssertionError('Can not save this object type')\n geh0 = YKHO._session.delete(YKHO._path)\n if geh0.status_code == 200:\n YKHO._ref = None\n ... | [
"0.7155118",
"0.6873873",
"0.6829934",
"0.67647415",
"0.67640203",
"0.6759619",
"0.67190105",
"0.67190105",
"0.67169213",
"0.67131734",
"0.67131734",
"0.67131734",
"0.67131734",
"0.67131734",
"0.67131734",
"0.6712284",
"0.6712284",
"0.6711753",
"0.6696383",
"0.6696383",
"0.66... | 0.0 | -1 |
Return iterator of all subjects that participate in this study. | def yTZm(YKHO):
YKHO.logger.debug('In subjects.')
qE0k = '"{}"[linkage.participates_in]'.format(YKHO.id)
xDcj = p02J.get_session().get_osdf().oql_query
for Tq3Z in UHFx(1):
Ylbp = xDcj(SlOb.namespace, qE0k, page=Tq3Z)
z0kJ = Ylbp['result_count']
for A97Q in Ylbp['results']:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yTZm(YKHO):\n return YKHO._subjects",
"def yTZm(YKHO):\n return YKHO._subjects",
"def ak0b(YKHO) -> bDy6:\n YKHO.print('\\nCreating subjects loader with', YKHO.num_workers, 'workers')\n jDqU = pVAc(YKHO.subjects_dataset, num_workers=YKHO.num_workers, collate_fn=lambda WKvO: WKvO[0], shuffle=YKH... | [
"0.7625883",
"0.7625883",
"0.7481444",
"0.74407595",
"0.7386862",
"0.73115593",
"0.72604495",
"0.72367877",
"0.7204191",
"0.7117121",
"0.7044302",
"0.7036328",
"0.6972385",
"0.6933328",
"0.6841337",
"0.6756593",
"0.67493725",
"0.67490053",
"0.67004234",
"0.66097236",
"0.65339... | 0.80952525 | 0 |
Returns all tags attached to a training dataset. !!! example ```python get feature store instance fs = ... get feature view instance feature_view = fs.get_feature_view(...) get tags list_tags = feature_view.get_tags() ``` Returns `Dict[str, obj]` of tags. Raises `hsfs.client.exceptions.RestAPIError` in case the backend... | def Qwli(YKHO):
return YKHO._feature_view_engine.get_tags(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y5bi(YKHO):\n bo34.info('List tags')\n return JKCy.Tag.list(YKHO).result()",
"def dJ1p(YKHO) -> 'outputs.TagsResponse':\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> 'outputs.TagsResponse':\n return qe4Y.get(YKHO, 'tags')",
"def list(YKHO):\n Vlb9 = {}\n return YKHO.master.call('... | [
"0.7757021",
"0.7547069",
"0.7547069",
"0.74791986",
"0.74600476",
"0.74181455",
"0.74169254",
"0.7359459",
"0.73206913",
"0.73196083",
"0.72855264",
"0.7230834",
"0.72306234",
"0.7189681",
"0.71852994",
"0.7141046",
"0.7069544",
"0.705542",
"0.7017649",
"0.7017649",
"0.70038... | 0.7188885 | 14 |
Get the parents of this feature view, based on explicit provenance. Parents are feature groups or external feature groups. These feature groups can be accessible, deleted or inaccessible. For deleted and inaccessible feature groups, only a minimal information is returned. Returns | def BHkH(YKHO):
return YKHO._feature_view_engine.get_parent_feature_groups(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ACnF(YKHO):\n if YKHO._parents is None:\n A07C = [ZfUD['id'] for ZfUD in YKHO.resolwe.api.data(YKHO.id).parents.get(fields='id')]\n if not A07C:\n return []\n YKHO._parents = YKHO.resolwe.data.filter(id__in=A07C)\n return YKHO._parents",
"def ACnF(YKHO):\n return YKHO... | [
"0.7083744",
"0.7062853",
"0.7062853",
"0.7062853",
"0.70541966",
"0.7047303",
"0.70438886",
"0.6999029",
"0.69405735",
"0.6922185",
"0.68838674",
"0.6878733",
"0.68635684",
"0.68374443",
"0.68097264",
"0.67945683",
"0.6684846",
"0.66782933",
"0.66252047",
"0.6608851",
"0.660... | 0.7844653 | 0 |
Get training data created by `feature_view.create_train_test_split` or `feature_view.train_test_split`. !!! example ```python get feature store instance fs = ... get feature view instance feature_view = fs.get_feature_view(...) get training data X_train, X_test, y_train, y_test = feature_view.get_train_test_split(train... | def OOGf(YKHO, kRcb, sl6J: Optional[Dict[Any, Any]]=None):
g75m, jQ3Z = YKHO._feature_view_engine.get_training_data(YKHO, sl6J, training_dataset_version=kRcb, splits=[kawM.TRAIN, kawM.TEST])
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gYI9(YKHO, kRcb, sl6J: Optional[Dict[Any, Any]]=None):\n g75m, jQ3Z = YKHO._feature_view_engine.get_training_data(YKHO, sl6J, training_dataset_version=kRcb, splits=[kawM.TRAIN, kawM.VALIDATION, kawM.TEST])\n return jQ3Z",
"def t8yq(YKHO):\n YKHO._train_test_split()\n return (YKHO.train_c, YKHO.te... | [
"0.7100793",
"0.69670486",
"0.6536331",
"0.6356018",
"0.6287269",
"0.62540764",
"0.6244644",
"0.6176076",
"0.6170582",
"0.61582315",
"0.6120515",
"0.6107966",
"0.60867995",
"0.6072395",
"0.6072181",
"0.6058151",
"0.6039187",
"0.5971821",
"0.59707487",
"0.5964052",
"0.5960469"... | 0.7509854 | 0 |
Returns all tags attached to a training dataset. !!! example ```python get feature store instance fs = ... get feature view instance feature_view = fs.get_feature_view(...) get a training dataset tags list_tags = feature_view.get_training_dataset_tags( training_dataset_version=1 ) ``` Returns `Dict[str, obj]` of tags. ... | def YPu1(YKHO, kRcb: int):
return YKHO._feature_view_engine.get_tags(YKHO, training_dataset_version=kRcb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y5bi(YKHO):\n bo34.info('List tags')\n return JKCy.Tag.list(YKHO).result()",
"def dJ1p(YKHO):\n YKHO._check_connection()\n if not YKHO._initial_data:\n YKHO.fetch_initial_data()\n return YKHO._tags.values()",
"def dJ1p(YKHO, gMbG=[x3i3.EXAC]):\n return YKHO.api.infoQuery().filterSo... | [
"0.68681395",
"0.6716991",
"0.6624874",
"0.6586385",
"0.65312994",
"0.65144",
"0.65144",
"0.65062267",
"0.64601755",
"0.644883",
"0.6394765",
"0.6326926",
"0.6314316",
"0.6296009",
"0.6282889",
"0.62724185",
"0.6263961",
"0.6263109",
"0.62307984",
"0.6161688",
"0.6158479",
... | 0.78143513 | 0 |
Name of the feature view. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JgKj(YKHO):\n return",
"def JgKj(YKHO) -> str:\n return qe4Y.get(YKHO, 'view_name')",
"def SPjK(YKHO):\n raise NotImplementedError('Method not implemented')",
"def JgKj(YKHO):\n return '{}:{}'.format(YKHO.model._meta.app_label, YKHO.url_name)",
"def CeDU(YKHO):\n return YKHO.title",
"d... | [
"0.84016556",
"0.8200698",
"0.7908235",
"0.7833615",
"0.7831975",
"0.779223",
"0.76866895",
"0.7616897",
"0.75100684",
"0.74750197",
"0.7473733",
"0.73829657",
"0.7333824",
"0.7209809",
"0.7151452",
"0.71452713",
"0.7058607",
"0.6944624",
"0.6870827",
"0.686364",
"0.6828517",... | 0.0 | -1 |
Close all open posters. | def fFx9(YKHO):
for maxk, u_MI in YKHO._poster_dict.items():
bo34.info('Killing poster %d for component %s' % (u_MI, maxk))
lHoM.finalize(u_MI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aDvc(YKHO):\n for fcLg in YKHO.fbs:\n fcLg.close()",
"def DDI8(YKHO):\n for dBuj in YKHO._pools.values():\n dBuj.close()",
"def HwY8(YKHO):\n YKHO.__closeOthers()\n YKHO.close()",
"def HuIG(YKHO):\n for hENg in YKHO.emulator_launchers.values():\n hENg._close()",
"def... | [
"0.76982576",
"0.7415758",
"0.74005735",
"0.73093504",
"0.71683025",
"0.71377337",
"0.7101251",
"0.7043691",
"0.7035124",
"0.7031327",
"0.702035",
"0.700233",
"0.6992361",
"0.698606",
"0.6930112",
"0.69166774",
"0.6904417",
"0.6900174",
"0.68926954",
"0.6879341",
"0.679121",
... | 0.63077873 | 68 |
Gets ``ClusterfuzzData`` from ``raw_crash_data``. | def vthX(YKHO, wGqC):
return qw9N(wGqC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vthX(YKHO, wGqC):\n return qw9N(wGqC, YKHO._get_repository, top_n_frames=YKHO.client_config['top_n'])",
"def Smz8(YKHO, vIMW):\n return AXP2.Get(vIMW)",
"def Smz8(YKHO, vIMW):\n return AXP2.Get(vIMW)",
"def Pv_x(YKHO, vIMW):\n return AXP2.Create(vIMW)",
"def Pv_x(YKHO, vIMW):\n return AX... | [
"0.88889205",
"0.5923614",
"0.5923614",
"0.532492",
"0.532492",
"0.5102869",
"0.49684545",
"0.48118415",
"0.47615114",
"0.4735103",
"0.46720102",
"0.46052906",
"0.46040845",
"0.4560891",
"0.4552795",
"0.45195836",
"0.44782686",
"0.44584182",
"0.44528842",
"0.44525027",
"0.444... | 0.9085372 | 0 |
Return user activity summary for 'cDate' format 'YYYYmmdd'. | async def get_user_summary(YKHO, Yd9P):
bD7m = yViK + 'usersummary-service/usersummary/daily/' + YKHO._display_name + '?calendarDate=' + Yd9P
bo34.debug('Requesting user summary with url: %s', bD7m)
geh0 = await YKHO._get_data(bD7m)
if geh0['privacyProtected'] is True:
bo34.debug('Session expire... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t07X(YKHO, Yd9P: str) -> cuzp[str, ImMB]:\n bD7m = f'{YKHO.garmin_connect_daily_summary_url}/{YKHO.display_name}'\n NArs = {'calendarDate': str(Yd9P)}\n bo34.debug('Requesting user summary')\n geh0 = YKHO.modern_rest_client.get(bD7m, params=NArs).json()\n if geh0['privacyProtected'] is True:\n ... | [
"0.70138043",
"0.6882273",
"0.60432774",
"0.560032",
"0.55961037",
"0.5482701",
"0.52549106",
"0.5221677",
"0.5191067",
"0.5183586",
"0.5174017",
"0.5169366",
"0.5159212",
"0.5148853",
"0.50566214",
"0.5052488",
"0.50515527",
"0.5035883",
"0.49536636",
"0.4944119",
"0.4928631... | 0.6922639 | 1 |
Converts True and False option strings to booleans. | def M0mR(MTKo):
if MTKo == 'True':
return True
elif MTKo == 'False':
return False
else:
raise ValueError('Options can only be True or False') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def likR(Ty9i):\n return Ty9i.lower() in ('yes', 'y', 'true', 't', '1')",
"def likR(Ty9i):\n return Ty9i.lower() in ('yes', 'y', 'true', 't', '1')",
"def oOc6(Ty9i):\n if Ty9i.lower() in ('yes', 'true', 't', 'y', '1'):\n return True\n elif Ty9i.lower() in ('no', 'false', 'f', 'n', '0'):\n ... | [
"0.76754093",
"0.76754093",
"0.76303154",
"0.76237047",
"0.7600686",
"0.75921726",
"0.7591536",
"0.7560272",
"0.75549006",
"0.75549006",
"0.75549006",
"0.75549006",
"0.7545737",
"0.7545737",
"0.7545737",
"0.7545737",
"0.7544789",
"0.7542327",
"0.75371057",
"0.75366604",
"0.75... | 0.8052191 | 0 |
Add a node to the graph | def GqAU(YKHO, Q6kx):
YKHO.nodes.append(Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5gD(YKHO, Q6kx):\n YKHO.graph[Q6kx]",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.add(Q6kx)",
"def Tq4U(YKHO):\n YKHO._graph.add_node(YKHO)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6k... | [
"0.9107565",
"0.8384603",
"0.8375563",
"0.8314864",
"0.8304677",
"0.8304677",
"0.8268356",
"0.81950754",
"0.81773895",
"0.81729645",
"0.8135381",
"0.813268",
"0.8099829",
"0.8092529",
"0.8071945",
"0.8071945",
"0.8069682",
"0.80472064",
"0.8027391",
"0.8013935",
"0.7994555",
... | 0.76260585 | 41 |
Check whether a node is in the graph | def sDch(YKHO, LTb8):
for Q6kx in YKHO.nodes:
if LTb8.coordinateX == Q6kx.coordinateX and LTb8.coordinateY == Q6kx.coordinateY:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nSOF(YKHO, AwDt: str) -> bool:\n return AwDt in YKHO.nodes",
"def Ierk(YKHO, Q6kx):\n if Q6kx in YKHO.graph:\n return True\n else:\n return False",
"def FYXB(YKHO, Q6kx):\n return Q6kx in YKHO.graph",
"def ux58(YKHO, Q6kx):\n if Q6kx not in YKHO._graph_dict:\n return F... | [
"0.8452019",
"0.8451881",
"0.8329522",
"0.8301333",
"0.807478",
"0.785645",
"0.7738133",
"0.7607154",
"0.7588653",
"0.7554765",
"0.75410855",
"0.7499687",
"0.7493759",
"0.74456966",
"0.74456966",
"0.7434855",
"0.74194074",
"0.74139506",
"0.7351644",
"0.7345119",
"0.72828424",... | 0.667448 | 64 |
Function that returns dataframe on county business patterns across different manufacturing industries, states, and years. | def tg1p(lO87, bTtD, QTBn='*'):
assert isinstance(lO87, int), 'Please only ask for available years and ensure the year entry is an integer'
assert isinstance(bTtD, str), 'Ensure the manufacturing sector is viable and a string.'
Mkmy = G4JS.get(f'https://api.census.gov/data/{lO87}/cbp?get=ESTAB,LFO,NAICS{lO8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X2vB(lO87, H5ew, QTBn='*', KrIv=False):\n assert isinstance(lO87, int), 'Years must be specified in full integer format, e.g. 2019'\n assert isinstance(QTBn, str), 'Please check the official US Census list for available state abbreviations, state must be a string'\n assert isinstance(KrIv, bool), 'Mak... | [
"0.61660826",
"0.5995336",
"0.5793508",
"0.5755193",
"0.5733033",
"0.56923854",
"0.5580193",
"0.5526828",
"0.5525443",
"0.5499445",
"0.54676247",
"0.5466978",
"0.54433244",
"0.5433773",
"0.5423837",
"0.53883606",
"0.53580064",
"0.53512615",
"0.53497",
"0.5333382",
"0.5317787"... | 0.7509512 | 0 |
r"""Calculate the fractional excess variance. This method accesses the the ``FLUX`` and ``FLUX_ERR`` columns from the lightcurve data. | def ejBS(YKHO):
shSu = YKHO['FLUX'].value.astype('float64')
L4Xy = YKHO['FLUX_ERR'].value.astype('float64')
nN2v = oyIN.mean(shSu)
KR0Q = len(shSu)
apfP = oyIN.sum((shSu - nN2v) ** 2) / (KR0Q - 1)
X3wY = oyIN.nansum(L4Xy ** 2) / KR0Q
csTs = oyIN.sqrt(oyIN.abs(apfP - X3wY)) / nN2v
HytL = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L4Xy(YKHO):\n return YKHO.norm_err * YKHO.flux_ref",
"def cHyb(YKHO):\n global mean\n return JBMS(YKHO._get_pow_diffs(2))",
"def gKE1(DEJz, jbZv):\n return oyIN.square(Gpg6(DEJz, jbZv))",
"def eyk1(YKHO):\n try:\n return YKHO.sum_of_squares / YKHO.count - YKHO.mean ** 2\n except:... | [
"0.66851544",
"0.6668989",
"0.6635502",
"0.657036",
"0.65671587",
"0.65136176",
"0.64748174",
"0.6374552",
"0.63682556",
"0.6363717",
"0.6336814",
"0.6332306",
"0.63241816",
"0.631694",
"0.62711924",
"0.62635714",
"0.62509793",
"0.62331355",
"0.62315065",
"0.61802083",
"0.617... | 0.6511875 | 6 |
Perform padding for the list of tensors. | def RnIX(fUYa: torch.Tensor, KHPh=0, tpio=0) -> ht2j.Tensor:
if tpio == 0:
return gc7n(fUYa, batch_first=True, padding_value=KHPh)
else:
fUYa = [WKvO.transpose(0, tpio) for WKvO in fUYa]
H5Km = gc7n(fUYa, batch_first=True, padding_value=KHPh)
return H5Km.transpose(1, tpio + 1).co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ybhY(nwEZ: torch.Tensor) -> ht2j.Tensor:\n H5Km = []\n eusk = 512\n for XuXy in nwEZ:\n loo_ = eusk - len(XuXy)\n if loo_ < 0:\n H5Km.append(XuXy[:eusk])\n else:\n H5Km.append(XuXy + [0] * loo_)\n assert all([len(eOtH) == 512 for eOtH in H5Km]), \"Padding ... | [
"0.76806515",
"0.6977156",
"0.6884726",
"0.68513745",
"0.68363655",
"0.67529845",
"0.6740048",
"0.6698692",
"0.66975325",
"0.66844565",
"0.66606754",
"0.663957",
"0.6637329",
"0.65845376",
"0.6550826",
"0.6548567",
"0.65439296",
"0.6530706",
"0.6526729",
"0.6525735",
"0.65209... | 0.7325937 | 1 |
Gather all gpu info based on DDP backend This function is supposed to be invoked in all subprocess. | def PHZv(Xf7E: int, NLVP: int=None) -> bdIy[int]:
if NLVP is None:
NLVP = pImw.get_world_size()
BSsj = ht2j.cuda.get_device_name(Xf7E)
vABA = ht2j.tensor(len(BSsj)).cuda(Xf7E)
pImw.all_reduce(vABA, op=pImw.ReduceOp.MAX)
vABA = vABA.cpu()
BSsj = BSsj + ' ' * (vABA - len(BSsj))
rzuk = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BSsj():\n return []",
"def p2z9():\n EpYW = []\n try:\n for wqL3 in lDLs.gpus:\n with wqL3:\n K2d7 = lDLs.current_context().get_memory_info()\n Oa1e = {'device_name': wqL3.name.decode('ASCII'), 'total_memory': K2d7[1] / 1048576, 'free_memory': K2d7[0] ... | [
"0.80087805",
"0.7088153",
"0.68186146",
"0.68125063",
"0.6742308",
"0.67010814",
"0.66496664",
"0.66419846",
"0.6632272",
"0.66230917",
"0.6605909",
"0.6568757",
"0.6523341",
"0.6507928",
"0.6504338",
"0.65038157",
"0.64888626",
"0.6482344",
"0.6466657",
"0.6390082",
"0.6390... | 0.6907498 | 2 |
Convert the BatchNormD in model to be sync Batch Norm such that it can sync across DDP processes. | def MAZc(C3ST: nn.Module) -> U78l.Module:
return U78l.SyncBatchNorm.convert_sync_batchnorm(C3ST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uNd1(YKHO, C3ST: nn.Module) -> U78l.Module:\n YKHO.logger.info('Distributed training is not used, all SyncBatchNorm (SyncBN) layers in the model will be automatically reverted to BatchNormXd layers if they are used.')\n C3ST = pH1I(C3ST)\n return C3ST",
"def GzNE(*qIxc, **B2fa):\n if CbyH.get_dev... | [
"0.7390722",
"0.69098574",
"0.6671176",
"0.6409117",
"0.61418164",
"0.6123032",
"0.6096358",
"0.6034696",
"0.6001747",
"0.5990272",
"0.5981402",
"0.5942021",
"0.59241337",
"0.58748037",
"0.5847796",
"0.57938844",
"0.57842004",
"0.578329",
"0.5764796",
"0.5722383",
"0.57207274... | 0.80585605 | 0 |
Test getting info about a module in the remote gitlab repo | def pubm(YKHO):
jR_s = ba27.modules.ModuleInfo(YKHO.pipeline_dir, 'fastqc', remote_url=Sust, branch=sx2b)
DXDk = jR_s.get_component_info()
eJmI = TgYk(record=True)
eJmI.print(DXDk)
hlel = eJmI.export_text()
assert 'Module: fastqc' in hlel
assert 'Inputs' in hlel
assert 'Outputs' in hlel
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def baR2(YKHO):\n jR_s = ba27.modules.ModuleInfo(YKHO.nfcore_modules, 'fastqc')\n jR_s.local = True\n DXDk = jR_s.get_component_info()\n eJmI = TgYk(record=True)\n eJmI.print(DXDk)\n hlel = eJmI.export_text()\n assert 'Module: fastqc' in hlel\n assert 'Inputs' in hlel\n assert 'Outputs' ... | [
"0.7633737",
"0.7518994",
"0.72542524",
"0.7020053",
"0.6967276",
"0.6824236",
"0.6619247",
"0.6602867",
"0.6474397",
"0.63256884",
"0.62848544",
"0.61935747",
"0.61285436",
"0.6123511",
"0.6075057",
"0.60426354",
"0.6026154",
"0.6012857",
"0.6010863",
"0.60014457",
"0.598836... | 0.8365778 | 0 |
Returns a boolean describing whether the requested light is 'ON'. | def xypM(YKHO, mWFP):
return YKHO._lights_io.get_signal_value(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def gqxB(YKHO) -> bool:\n return YKHO._lights_on",
"def Debg(YKHO):\n return YKHO._light.on",
"def Debg(YKHO):\n return YKHO._light_on",
"def xypM(YKHO):\n asva = YKHO.get_brightness\n Deb... | [
"0.88361746",
"0.88361746",
"0.8344086",
"0.82605773",
"0.8235729",
"0.81932634",
"0.81479293",
"0.7876077",
"0.77925026",
"0.7619758",
"0.75628465",
"0.75625455",
"0.75367826",
"0.7431436",
"0.7430013",
"0.74234277",
"0.7415883",
"0.7402034",
"0.739426",
"0.73788273",
"0.734... | 0.0 | -1 |
Closes the database again at the end of the request and store the session if neccessary. | def rYe1(geh0):
Hheh = HoHK(GPtr.SESSIONS_DIR)
if Oa1e.session.should_save:
Hheh.save(Oa1e.session)
cuiw['sid'] = Oa1e.session.sid
cuiw.permanent = True
P4t4.save_session(cuiw, geh0)
Oa1e.db.close()
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def db_session_middleware(QePW: Request, tLy4: tp.Callable) -> oGir:\n QePW.state.db = DMju()\n geh0 = await tLy4(QePW)\n QePW.state.db.close()\n return geh0",
"def rYe1(geh0):\n FYrf.DATABASE.close()\n cuiw.permanent = False\n Oa1e.db.close()\n return geh0\n return (pz3A({'data'... | [
"0.7343013",
"0.7294827",
"0.71838516",
"0.7152283",
"0.7017771",
"0.69958323",
"0.6972724",
"0.6929915",
"0.6922967",
"0.69145024",
"0.6904452",
"0.68858266",
"0.68446153",
"0.68376154",
"0.67883104",
"0.6764023",
"0.67618847",
"0.67613816",
"0.67572105",
"0.675533",
"0.6737... | 0.67379045 | 20 |
Get a JSONready representation of this Attachment. | def NMoC(YKHO):
s5jr = {}
if YKHO.content is not None:
s5jr['content'] = YKHO.content
if YKHO.type is not None:
s5jr['type'] = YKHO.type
if YKHO.filename is not None:
s5jr['filename'] = YKHO.filename
if YKHO.disposition is not None:
s5jr['disposition'] = YKHO.disposit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vd6X(YKHO):\n return qQXR.dumps(Hk7_(YKHO.messageobject))",
"def qQXR(YKHO):\n return qQXR.dumps(YKHO.convert())",
"def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def qQXR... | [
"0.7197183",
"0.7055574",
"0.7036038",
"0.7036038",
"0.7036038",
"0.7036038",
"0.7036038",
"0.7036038",
"0.7024759",
"0.70223194",
"0.70223194",
"0.70223194",
"0.70180696",
"0.6969763",
"0.6957573",
"0.6941672",
"0.69331133",
"0.68970835",
"0.6895358",
"0.6886827",
"0.6884186... | 0.7063667 | 1 |
Return the state attributes. | def TzCU(YKHO):
return YKHO._attributes | {
"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.81675684 | 54 |
Gets the id of this ExamResults. | def id(YKHO) -> int:
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO) -> int:\n return YKHO._hit.id",
"def id(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def id(YKHO) -> int:\n return YKHO._id",
"def wfbg(YKHO):\n return YKHO._id",
"def id(YK... | [
"0.68783617",
"0.66824406",
"0.66280913",
"0.66280913",
"0.66280913",
"0.6621789",
"0.66137505",
"0.66013503",
"0.66013503",
"0.66013503",
"0.66013503",
"0.66013503",
"0.66013503",
"0.66013503",
"0.66013503",
"0.66013503",
"0.66013503",
"0.66013503",
"0.66013503",
"0.66013503",... | 0.6622111 | 9 |
Gets the score of this ExamResults. | def p1kx(YKHO) -> int:
return YKHO._score | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vNP6(YKHO):\n return YKHO._score",
"def p1kx(YKHO):\n return YKHO._score",
"def p1kx(YKHO):\n return YKHO._score",
"def p1kx(YKHO):\n return YKHO._score",
"def p1kx(YKHO):\n return YKHO._score",
"def vNP6(YKHO):\n return YKHO._score",
"def p1kx(YKHO):\n return YKHO._score",
"... | [
"0.80567104",
"0.80412906",
"0.80412906",
"0.80412906",
"0.80412906",
"0.80201095",
"0.7997977",
"0.79428136",
"0.79409146",
"0.7925913",
"0.79191244",
"0.7914835",
"0.7914835",
"0.7909172",
"0.7876909",
"0.78427243",
"0.78427243",
"0.7824302",
"0.7800053",
"0.7735963",
"0.77... | 0.7896089 | 15 |
Gets the result_date of this ExamResults. | def ZqmL(YKHO) -> qcWV:
return YKHO._result_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZqmL(YKHO, ZqmL: datetime):\n YKHO._result_date = ZqmL",
"def i9Nm(YKHO) -> qcWV:\n return YKHO._query_date",
"def _c1T(YKHO):\n return YKHO._date",
"def _c1T(YKHO):\n return YKHO.__date",
"def _c1T(YKHO):\n return YKHO._date",
"def _c1T(YKHO):\n return YKHO._date",
"def _c1T(YKHO... | [
"0.6912208",
"0.64352894",
"0.6379673",
"0.6370959",
"0.63405335",
"0.6309203",
"0.6309203",
"0.6309203",
"0.6309203",
"0.6309203",
"0.6309203",
"0.6309203",
"0.63006514",
"0.62945163",
"0.62780946",
"0.62512445",
"0.6232082",
"0.62305826",
"0.6229623",
"0.6229623",
"0.622962... | 0.80899984 | 0 |
Sets the result_date of this ExamResults. | def ZqmL(YKHO, ZqmL: datetime):
YKHO._result_date = ZqmL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShEj(YKHO, Aofo):\n YKHO.__result = Aofo",
"def baRe(YKHO, baRe):\n YKHO._run_date = baRe",
"def gq4h(YKHO, _c1T):\n YKHO.__date = _c1T\n return YKHO",
"def n8O_(YKHO, n8O_):\n YKHO._evaluation_date = n8O_",
"def xJpF(YKHO, Aofo):\n try:\n from zcrmsdk.src.com.zoho.crm.api.bulk... | [
"0.6775239",
"0.66392785",
"0.66333145",
"0.66268176",
"0.6597657",
"0.6583103",
"0.6564796",
"0.64703584",
"0.64419585",
"0.6437897",
"0.64362633",
"0.64362633",
"0.64362633",
"0.64362633",
"0.64362633",
"0.64321935",
"0.6415903",
"0.6415903",
"0.6415903",
"0.6415903",
"0.64... | 0.8731699 | 0 |
Gets the _class of this ExamResults. | def PWg9(YKHO) -> cx0L:
return YKHO.__class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZvYj(YKHO):\n return YKHO._class",
"def PWg9(YKHO):\n return YKHO.__class",
"def D3KC(YKHO):\n return YKHO._class_type",
"def Pwv8(YKHO):\n return YKHO.__class__",
"def ZvYj(YKHO):\n return YKHO.__class__",
"def ZvYj(YKHO):\n return YKHO.__class__",
"def PWg9(YKHO) -> str:\n re... | [
"0.7435532",
"0.73815924",
"0.72710454",
"0.7138321",
"0.71311957",
"0.71311957",
"0.70798737",
"0.68913656",
"0.68913656",
"0.68913656",
"0.68913656",
"0.6868559",
"0.6763607",
"0.66237694",
"0.66237694",
"0.6589897",
"0.6561812",
"0.6539159",
"0.65251493",
"0.64421856",
"0.... | 0.72115904 | 3 |
Computes malahanobis distance of point x(1xD, D dimensions) from the distribution with means and covs | def VqCW(yGTL, o4sw, WKvO):
I_tc = oyIN.sqrt(oyIN.matmul(oyIN.matmul(WKvO - yGTL, oyIN.linalg.inv(o4sw)), oyIN.transpose(WKvO - yGTL)))
return I_tc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mVO0(hkxX: torch.Tensor, JBMS: torch.Tensor, UWLZ: torch.Tensor) -> ht2j.Tensor:\n assert hkxX.dim() == 2\n assert 1 <= JBMS.dim() <= 2\n assert len(UWLZ.shape) == 2\n assert hkxX.shape[1] == JBMS.shape[-1]\n assert JBMS.shape[-1] == UWLZ.shape[0]\n assert UWLZ.shape[0] == UWLZ.shape[1]\n ... | [
"0.690381",
"0.67236274",
"0.6511642",
"0.6398807",
"0.63520956",
"0.62972516",
"0.6281005",
"0.62558216",
"0.62487775",
"0.62429684",
"0.62317187",
"0.6199559",
"0.61989146",
"0.61702025",
"0.6161933",
"0.61453485",
"0.6133356",
"0.60795844",
"0.60728675",
"0.60701317",
"0.6... | 0.0 | -1 |
yields keys of self.meta | def Vs4Q(YKHO):
for H5ew in YKHO.meta.keys:
yield (H5ew, getattr(YKHO, H5ew)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sjXb(YKHO):\n for G1Hx in YKHO:\n yield G1Hx",
"def Vs4Q(Emd4):\n return Emd4._meta.iterkeys()",
"def sjXb(YKHO):\n for H5ew, bGrB in YKHO:\n yield H5ew",
"def Vs4Q(YKHO):\n yield from YKHO.keys()",
"def DumB(YKHO):\n for G1Hx in YKHO:\n yield (G1Hx, YKHO[G1Hx])",
... | [
"0.80043966",
"0.7994613",
"0.7971652",
"0.76701623",
"0.75871515",
"0.7543053",
"0.7533058",
"0.751026",
"0.7475238",
"0.74644375",
"0.74644375",
"0.74555016",
"0.7412315",
"0.73822427",
"0.73785824",
"0.7361132",
"0.73416555",
"0.73218954",
"0.731993",
"0.7308648",
"0.72966... | 0.82238555 | 0 |
Generates a random password | def IapX(zNig=14, gLiZ=vIwR.ascii_letters + vIwR.digits + vIwR.punctuation):
return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ikbr():\n return ''.join((jxbx().choice(tcl1 + BHGE) for bGrB in range(8)))",
"def ENfd(len=12):\n import random, string\n rmc3 = string.ascii_letters + string.digits\n QTBn = random.getstate()\n random.seed()\n Aofo = ''.join((random.choice(rmc3) for YRbF in range(len)))\n random.setsta... | [
"0.8797094",
"0.87887293",
"0.87391394",
"0.8646009",
"0.8574204",
"0.8557647",
"0.8532667",
"0.8531703",
"0.85249746",
"0.8500776",
"0.84023327",
"0.83986104",
"0.8388221",
"0.83383995",
"0.8290249",
"0.826117",
"0.8247649",
"0.8247384",
"0.82425135",
"0.8166628",
"0.8162387... | 0.7948791 | 42 |
Get a tower user by id | def jRq6(Emd4, uJjO):
return Emd4(**Emd4.res.get(id=uJjO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)",
"def CBIr(id):\n CBIr = AGPF.get_user(id=id)\n return CBIr",
"def bt8D(id):\n return 'do some magic!'",
"def TKWP(P4t4, id):\n Dvct = P4t4.model.session\n return Dvct.query(P4t4.model.User).get(P4t4.security.decode_id(id))",
"... | [
"0.7792405",
"0.7771908",
"0.7679225",
"0.7630842",
"0.7623141",
"0.7591768",
"0.7591662",
"0.75874025",
"0.7577649",
"0.7531598",
"0.7517261",
"0.7515347",
"0.751101",
"0.751101",
"0.7479862",
"0.7477438",
"0.7452612",
"0.739484",
"0.73893136",
"0.7384122",
"0.73704344",
"... | 0.0 | -1 |
List all team names matching a trigram, or all teams if trigram is None | def vv18(Emd4, _UTc):
for dZPi in Emd4.res.list(all_pages=True)['results']:
if _UTc is None or dZPi['name'].upper() == 'TEAM_' + _UTc.upper():
yield dZPi['name'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PHVu(n6R4):\n return list(Hs6x.chain(*[list(Dhdw.ngrams(kS0G, 3)) for H5ew in n6R4.keys() for kS0G in n6R4[H5ew]]))",
"def Ff4R(l5Ny, **YSA3):\n return pCSA(l5Ny, 3, **YSA3)",
"def S9iz(YKHO, INAj):\n Hevr = 1\n V22M = set()\n for ZKzL in INAj:\n if ZKzL in YKHO.bigrams:\n ... | [
"0.62828207",
"0.5918047",
"0.5903815",
"0.5875474",
"0.5747498",
"0.57442355",
"0.5660968",
"0.5656236",
"0.5639582",
"0.56367874",
"0.55492824",
"0.5510683",
"0.5502624",
"0.54998964",
"0.545875",
"0.54440176",
"0.5436699",
"0.5377453",
"0.5347942",
"0.5334997",
"0.53337455... | 0.82962835 | 0 |
Standard initialiser. 'raphaelElement' is the raphael element that we are wrapping. | def FIMM(YKHO, nOQD):
YKHO._element = nOQD
vZpI.__init__(YKHO, YKHO._element.node) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, nOQD):\n YKHO._element = nOQD\n YKHO.raphael_elements = []",
"def FIMM(YKHO, TVTK, H2v2):\n PY8A.__init__(YKHO)\n U6D_ = bG9K.createDiv()\n YKHO.setElement(U6D_)\n YKHO.setPixelSize(TVTK, H2v2)\n EcDW('\\n this._canvas = $wnd.Raphael(@{{element}}, @{{width}}, @{{heig... | [
"0.84440374",
"0.72540957",
"0.63625705",
"0.62623274",
"0.6164991",
"0.6151916",
"0.6091034",
"0.6085602",
"0.60684335",
"0.5849577",
"0.5810212",
"0.5801409",
"0.5774138",
"0.5733538",
"0.57308125",
"0.5693401",
"0.5682198",
"0.56760544",
"0.5660338",
"0.564597",
"0.5629816... | 0.8163522 | 1 |
Checks the validity of the mesh, or throws an AssertionError. | def xzCw(YKHO):
f4xV(YKHO.coords)
oC1g(YKHO.conn, len(YKHO.coords))
for Z9rn in YKHO.conn:
for YRbF in range(len(Z9rn)):
r845 = (YRbF + 1) % len(Z9rn)
assert oyIN.linalg.norm(YKHO.coords[Z9rn[YRbF]] - YKHO.coords[Z9rn[r845]]) > YKHO.eps
assert type(YKHO.labeled_sets) is l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lhne(YKHO):\n print('Mesh Checking\\n')\n print('---------------------------------------------------------------')\n nt_u = YKHO.getMeshdim()\n a7ZG = nt_u['xmin']\n EWje = nt_u['xmax']\n ZbH6 = nt_u['ymin']\n O6WV = nt_u['ymax']\n olrz = nt_u['zmin']\n QCZF = nt_u['zmax']\n bVKt ... | [
"0.7600807",
"0.7502478",
"0.7502478",
"0.68373835",
"0.6671362",
"0.64225125",
"0.6289284",
"0.6159265",
"0.6136298",
"0.6121207",
"0.60797155",
"0.6041675",
"0.60308856",
"0.6029492",
"0.60195947",
"0.5989208",
"0.59611934",
"0.59480304",
"0.59216136",
"0.59202623",
"0.5916... | 0.0 | -1 |
Computes, based on coords, the centroid of a cell with ID c | def uXnH(YKHO, Z9rn):
LTIa = oyIN.array([YKHO.coords[YRbF] for YRbF in YKHO.conn[Z9rn]])
return LTIa.mean(axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6ux(nPrm, WKvO, LVAh):\n g0Hx = oyIN.dot(WKvO, oyIN.sum(nPrm, axis=1))\n dlau = oyIN.dot(LVAh, oyIN.sum(nPrm, axis=0))\n wjRY = oyIN.sum(oyIN.sum(nPrm))\n return (g0Hx / wjRY, dlau / wjRY)",
"def e6ux(WKvO, LVAh, ezWE):\n WKvO = WKvO.flatten()\n LVAh = LVAh.flatten()\n jzdc = ezWE[WKvO,... | [
"0.7472233",
"0.736913",
"0.73273766",
"0.724983",
"0.720664",
"0.718187",
"0.718187",
"0.7105149",
"0.7085019",
"0.70501095",
"0.70358264",
"0.7019527",
"0.7007863",
"0.7006473",
"0.70047027",
"0.69729143",
"0.6959458",
"0.6957077",
"0.6957077",
"0.6944651",
"0.693805",
"0... | 0.8038384 | 0 |
Calculate surface mesh centroids. | def yHxN(YKHO, QjaM=False):
if QjaM or not hasattr(YKHO, '_centroids'):
YKHO._centroids = oyIN.array([YKHO.compute_centroid(Z9rn) for Z9rn in range(YKHO.num_cells())])
return YKHO._centroids | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6ux(YKHO, rR8k):\n global V\n cAlv = oyIN.array(rR8k.points)\n fvDH = len(cAlv)\n tKj3 = oyIN.array(rR8k.faces.reshape((-1, 4))[:, 1:4])\n yKcO = oyIN.array(rR8k.center)\n r5nj = yKcO[0]\n btSs = yKcO[1]\n YwuC = yKcO[2]\n yHxN = []\n vRDG = 0\n AeJt = 0\n dul5 = 0\n MlO... | [
"0.80911213",
"0.79637986",
"0.7425463",
"0.7368088",
"0.7284214",
"0.7274482",
"0.726439",
"0.7155073",
"0.71231663",
"0.702422",
"0.69663274",
"0.69562954",
"0.6944931",
"0.690651",
"0.68701196",
"0.6837466",
"0.6765099",
"0.6753752",
"0.67531013",
"0.67284817",
"0.6709064"... | 0.6973357 | 10 |
Checks the validity of the mesh, or throws an AssertionError. | def xzCw(YKHO):
f4xV(YKHO.coords, 3)
oC1g(YKHO.face_to_node_conn, len(YKHO.coords))
oC1g(YKHO.elem_to_face_conn, len(YKHO.face_to_node_conn))
assert type(YKHO.labeled_sets) is list
for Uqbu in YKHO.labeled_sets:
if Uqbu.entity == 'NODE':
zNig = YKHO.num_nodes()
elif Uqbu.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lhne(YKHO):\n print('Mesh Checking\\n')\n print('---------------------------------------------------------------')\n nt_u = YKHO.getMeshdim()\n a7ZG = nt_u['xmin']\n EWje = nt_u['xmax']\n ZbH6 = nt_u['ymin']\n O6WV = nt_u['ymax']\n olrz = nt_u['zmin']\n QCZF = nt_u['zmax']\n bVKt ... | [
"0.7600923",
"0.75027955",
"0.75027955",
"0.6837428",
"0.6671973",
"0.64227796",
"0.6288607",
"0.6158388",
"0.6135024",
"0.6122095",
"0.60796833",
"0.6042487",
"0.60318923",
"0.6027992",
"0.6020291",
"0.598814",
"0.596087",
"0.59461635",
"0.59220266",
"0.5919199",
"0.59166443... | 0.0 | -1 |
Function to generate lines connecting detected edges using Hough transform for a given image and specified threshold. Returns the pixel (X,Y) coordinates of the found lines | def pMXA(PSGR, Kt_s):
eElG = XC5k.imread(PSGR, XC5k.IMREAD_COLOR)
qWz7 = XC5k.cvtColor(eElG, XC5k.COLOR_BGR2GRAY)
mC4V = XC5k.Canny(qWz7, 50, 200)
Nqlg = XC5k.HoughLinesP(mC4V, 1, oyIN.pi / 180, Kt_s, minLineLength=10, maxLineGap=250)
for zFiD in Nqlg:
o4D3, si3g, ajwV, skBL = zFiD[0]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvnC(pId6, w72b, eRp8, gwAu):\n alQJ = oyIN.zeros((int(180 / eRp8), int(oyIN.linalg.norm(pId6.shape) / w72b)))\n qtIN = oyIN.array(oyIN.nonzero(pId6))\n for YRbF in range(qtIN.shape[1]):\n for q7In in range(0, 180, eRp8):\n Csk6 = int((qtIN[1][YRbF] * oyIN.cos(q7In * oyIN.pi / 180.0)... | [
"0.79532856",
"0.77703667",
"0.77039933",
"0.76707125",
"0.7631154",
"0.7609386",
"0.7596496",
"0.75859946",
"0.7570113",
"0.7557818",
"0.7546009",
"0.7544034",
"0.7544034",
"0.75391185",
"0.75314105",
"0.7518907",
"0.7518907",
"0.7518907",
"0.7518907",
"0.7518907",
"0.751890... | 0.7279482 | 50 |
Function to generate lines connecting detected edges using Hough transform for a given image array and specified threshold. Returns the pixel (X,Y) coordinates of the found lines | def tmr8(HWEd, UASs):
eElG = (HWEd * 255).astype(oyIN.uint8)
mC4V = XC5k.Canny(eElG, 50, 200)
Nqlg = None
ewCu = 0
while Nqlg is None:
Nqlg = XC5k.HoughLinesP(mC4V, 1, oyIN.pi / 180, UASs[ewCu], minLineLength=10, maxLineGap=250)
ewCu += 1
for zFiD in Nqlg:
o4D3, si3g, ajw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvnC(pId6, w72b, eRp8, gwAu):\n alQJ = oyIN.zeros((int(180 / eRp8), int(oyIN.linalg.norm(pId6.shape) / w72b)))\n qtIN = oyIN.array(oyIN.nonzero(pId6))\n for YRbF in range(qtIN.shape[1]):\n for q7In in range(0, 180, eRp8):\n Csk6 = int((qtIN[1][YRbF] * oyIN.cos(q7In * oyIN.pi / 180.0)... | [
"0.79023325",
"0.76134574",
"0.7602101",
"0.7557902",
"0.75523853",
"0.75420314",
"0.7516309",
"0.7516219",
"0.75103956",
"0.74821794",
"0.7480696",
"0.7480696",
"0.74698055",
"0.74658227",
"0.74656063",
"0.7457042",
"0.7442469",
"0.7442469",
"0.7442469",
"0.7442469",
"0.7442... | 0.65414596 | 76 |
Removes (destroy) bracket if its present | def pOtB(YKHO, AYWY):
if AYWY in YKHO.brackets:
gTqN = YKHO.brackets[AYWY]
if gTqN is not None and (not gTqN.destroyed):
gTqN.Close()
del YKHO.brackets[AYWY]
if AYWY in YKHO.updateBrackets:
del YKHO.updateBrackets[AYWY] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yeQR(zFiD):\n if zFiD.find('[') == 0 and zFiD.find(']') == len(zFiD) - 1:\n zFiD = zFiD[1:-1]\n return zFiD",
"def m7fG(YKHO, ARXy):\n if ARXy.startswith('['):\n ARXy = ARXy.replace('[', '', 1).replace(']', '', 1)\n return ARXy",
"def I8hg(VN2L):\n Aofo = VN2L.strip(mxSo)\n ... | [
"0.74668545",
"0.67098004",
"0.65892094",
"0.65573317",
"0.64497006",
"0.6425298",
"0.6411144",
"0.63930935",
"0.6360701",
"0.6182018",
"0.6155481",
"0.6150191",
"0.6137556",
"0.6057511",
"0.60279983",
"0.59943753",
"0.59838593",
"0.5957842",
"0.5956872",
"0.59079343",
"0.579... | 0.6445236 | 5 |
Given a slimItem, determine the displayName that should be used for a bracket. Return None if a name cannot be generated. | def o0Ef(YKHO, zppZ):
try:
y02X = k6aV.GetSlimItemName(zppZ)
except Exception as e:
if zppZ:
YKHO.LogException('Couldnt generate name for bracket, slimItem is not None')
else:
YKHO.LogException('Couldnt generate name for bracket, slimItem is None')
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Odsf(YKHO, flVV):\n if not flVV:\n return ''\n U5bT = YKHO.GetBracketName(flVV)\n if U5bT != '':\n return U5bT\n zppZ = vg0C.GetService('michelle').GetBallpark().slimItems.get(flVV, None)\n if zppZ is None:\n return ''\n return YKHO.GetDisplayNameForBracket(zppZ)",
"def... | [
"0.6711822",
"0.65747225",
"0.65747225",
"0.65747225",
"0.65747225",
"0.65747225",
"0.65747225",
"0.65747225",
"0.65747225",
"0.6513081",
"0.6513081",
"0.6513081",
"0.6513081",
"0.6513081",
"0.6513081",
"0.6513081",
"0.6513081",
"0.6513081",
"0.6513081",
"0.6513081",
"0.65130... | 0.8824062 | 0 |
Function to instantiate a fully convolutional residual network for line detection. | def vm1a(uUI9: Tuple[int, ...], oLRV: Tuple[int, ...]) -> U78l.Module:
d6tY = 1
gt4n = [8] * 14
_GHR = [7] * 14
asUQ = [3] * 4 + [7] * 10
jTqs = oLRV[-1]
class Model(U78l.Module):
def FIMM(YKHO):
super(wOed, YKHO).__init__()
fhcK = []
for YRbF in ran... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QufS(oubr, KUnM):\n Csk6 = yHwh(KUnM, kernel_size=(3, 3), strides=1, padding='same')(oubr)\n Csk6 = MroH('relu')(Csk6)\n Csk6 = yHwh(KUnM, kernel_size=(3, 3), strides=1, padding='same')(Csk6)\n Csk6 = MroH('relu')(Csk6)\n Csk6 = XVRe()([Csk6, oubr])\n return Csk6",
"def QufS(oubr, KUnM):\n ... | [
"0.65280014",
"0.6507482",
"0.6507482",
"0.65013224",
"0.6499352",
"0.6491265",
"0.641419",
"0.640576",
"0.6334048",
"0.63094157",
"0.6291084",
"0.6285852",
"0.6212434",
"0.61956084",
"0.6179674",
"0.6179674",
"0.6157436",
"0.61458427",
"0.61383504",
"0.6132806",
"0.6111874",... | 0.0 | -1 |
Creates and saves a User with the given email, date of birth and password. | def lYUQ(YKHO, Hxmi, jTXt=None, NtEF=''):
if not Hxmi:
raise ValueError('Users must have an Email Address')
CBIr = YKHO.model(email_address=YKHO.email_address, is_active=False)
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 xWi2(YKHO, D3lj, c9ua, zp3f, jTXt, **wdCM):\n D3lj = YKHO.normalize_em... | [
"0.839786",
"0.8241818",
"0.82206446",
"0.8133072",
"0.81110513",
"0.81065845",
"0.8087805",
"0.8083801",
"0.80767494",
"0.80756193",
"0.80704635",
"0.8064876",
"0.80614877",
"0.8059387",
"0.805926",
"0.80582577",
"0.8057111",
"0.8054821",
"0.8048667",
"0.8048392",
"0.8044811... | 0.0 | -1 |
Flask template is number odd or even | def R5I5():
return TvZl('7-states_list.html', slist=S8SU.all('State')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c7ov(exwG):\n try:\n exwG = int(exwG)\n if exwG % 2 == 0:\n KCHu = 'even'\n else:\n KCHu = 'odd'\n return TvZl('6-number_odd_or_even.html', n=exwG, s=KCHu)\n except:\n eTsH(404)",
"def R1n4(exwG):\n return TvZl('6-number_odd_or_even.html', n=e... | [
"0.77242714",
"0.7475102",
"0.7047485",
"0.64254177",
"0.63893807",
"0.6359564",
"0.6214368",
"0.62094826",
"0.62094826",
"0.61844313",
"0.617858",
"0.61771387",
"0.6176992",
"0.61761695",
"0.61761695",
"0.61761695",
"0.61761695",
"0.61486256",
"0.6147646",
"0.6141798",
"0.61... | 0.0 | -1 |
Generate either a random email or nothing. Randomly chooses a number between 1100 if that number is > weight, return None, else a random email. | def SXQp(mMbP: List[str], gcVA: int) -> uLKX[str, None]:
Acvy = ajWY(1, 100)
if Acvy > gcVA:
return None
else:
return dIGK(mMbP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj():\n NRcB = ['163', 'qq', 'gmail', 'yahoo']\n gLiZ = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.sample(gLiZ, 8)) + '@' + tuKI.sample(NRcB, 1)[0] + '.com'",
"def nKuf():\n return GLL2(tuKI.randint(6, 12)) + '@' + GLL2(tuKI.randint(4, 6)) + '.ca'",
"def xqUd():\n CBZq = ['com'... | [
"0.66084844",
"0.6605837",
"0.6382713",
"0.63675684",
"0.6329249",
"0.6300161",
"0.62345403",
"0.6131318",
"0.6115547",
"0.60464966",
"0.5993749",
"0.58795726",
"0.5854035",
"0.5794969",
"0.57566756",
"0.5729135",
"0.5675954",
"0.56704515",
"0.5643715",
"0.56381243",
"0.56372... | 0.81844294 | 0 |
Get the list of all the requests registered in the database. | def NMoC():
yKcO = ITS7.time()
Vz2l = sLps.objects
G4JS = qQXR.loads(Vz2l.to_json())
for G1Hx in range(len(G4JS)):
G4JS[G1Hx]['date'] = str(Vz2l[G1Hx]['date'])
G4JS[G1Hx]['destination'] = Vz2l[G1Hx]['destination'].name
G4JS[G1Hx]['origin'] = Vz2l[G1Hx]['origin'].name
Os4s = I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xCU0():\n return ouvA().query(VNUm).all()",
"def dKqp(YKHO):\n VT3I = 'SELECT * FROM requests'\n return YKHO.fetchAll(VT3I)",
"def UMnH(YKHO, qv1X):\n return YKHO.engine.get_list(qv1X.context, qv1X.context.tenant_id)",
"def UMnH(YKHO, qv1X):\n return YKHO.engine.get_list(qv1X.context, qv1X... | [
"0.84657055",
"0.8439335",
"0.7088494",
"0.7088494",
"0.7038263",
"0.7033321",
"0.7032358",
"0.6930192",
"0.68828976",
"0.6872104",
"0.6822534",
"0.6751058",
"0.6709634",
"0.6623788",
"0.65857375",
"0.6571014",
"0.6560123",
"0.6549522",
"0.6541383",
"0.65366894",
"0.65158415"... | 0.0 | -1 |
Input_fn using the tf.data input pipeline for CIFAR10 dataset. | def hbsH(NArs, Tuqy, h_xa, Ep8u, Zbwy=1):
def I3lW(Tuqy, h_xa):
"""Returns a list of filenames."""
if Tuqy == 'train':
return [Hy7s.path.join(h_xa, 'encoder.train.input'), Hy7s.path.join(h_xa, 'encoder.train.target'), Hy7s.path.join(h_xa, 'decoder.train.target')]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hbsH(h_xa, vcn7, frCB, Ep8u, Q9Ng=True, y4n2=0.0, j3aw='cifar10'):\n with ZylS.device('/cpu:0'):\n TjQB = vcn7 == 'train' and Q9Ng\n __n6 = q9sR.CifarDataSet(h_xa, frCB, vcn7, TjQB, y4n2, dataset=j3aw)\n L6EW, FSaV = __n6.make_batch(Ep8u)\n return (L6EW, FSaV)",
"def hbsH():\n ... | [
"0.7487104",
"0.70981944",
"0.7030556",
"0.699649",
"0.68820095",
"0.6861143",
"0.68129474",
"0.6807447",
"0.67344624",
"0.6700815",
"0.6690545",
"0.6684706",
"0.66715443",
"0.66657394",
"0.6660252",
"0.66594094",
"0.6642536",
"0.6635493",
"0.6635394",
"0.6628345",
"0.6625343... | 0.0 | -1 |
Helper function to parse commandline arguments Returns a parser to pull the arguments from | def yl6v():
wvEv = WDqQ(description='')
wvEv.add_argument('--exchange', help=f'Exchange to connect to. Currently supported exchanges: {e4cV}', metavar='EXCHANGE', action=sNt8, required=False, default=e4cV[0])
wvEv.add_argument('--config', help='File that contains API secrets and configuration information r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y8nX():\n wvEv = ugLM()\n return wvEv.parse_args()",
"def uvp4():\n wvEv = j1Jz.ArgumentParser(description='Take ')\n wvEv.add_argument('--rootDir', help='root directory for input csv files', default='.')\n wvEv.add_argument('--outDir', help='output directory for zipped csv files', default='.'... | [
"0.8138586",
"0.8061137",
"0.8058183",
"0.7959317",
"0.78920984",
"0.7822852",
"0.78186536",
"0.77861077",
"0.7775565",
"0.77720875",
"0.7740675",
"0.7738029",
"0.7703855",
"0.7696128",
"0.76903474",
"0.7683542",
"0.7682286",
"0.7680586",
"0.76429653",
"0.76416415",
"0.763890... | 0.0 | -1 |
Check the equality of the current RiemannSphere complex number with an other object | def xa14(YKHO, Elif):
if isinstance(Elif, CFPJ):
if YKHO.is_infinite():
return Elif.is_infinite()
return YKHO.real == Elif.real and YKHO.imaginary == Elif.imaginary and (YKHO.infinite == Elif.infinite)
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: 'Sphere') -> bool:\n if not YKHO.validate_sphere(Elif):\n return False\n if YKHO.radius != Elif.radius:\n return False\n return True",
"def wU_U(YKHO, Elif):\n if isinstance(Elif, CFPJ):\n if YKHO.is_infinite():\n return not Elif.is_infinite()\n ... | [
"0.73454213",
"0.7027161",
"0.675873",
"0.67001796",
"0.66896003",
"0.6667326",
"0.65692174",
"0.65661514",
"0.65450996",
"0.65159655",
"0.64454406",
"0.64202535",
"0.6409832",
"0.637637",
"0.6352267",
"0.6336451",
"0.633229",
"0.6328555",
"0.6317001",
"0.6302636",
"0.6241272... | 0.77631676 | 0 |
Check the non equality of the current RiemannSphere complex number with an other object | def wU_U(YKHO, Elif):
if isinstance(Elif, CFPJ):
if YKHO.is_infinite():
return not Elif.is_infinite()
return YKHO.real != Elif.real or YKHO.imaginary != Elif.imaginary or YKHO.infinite != Elif.infinite
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if isinstance(Elif, CFPJ):\n if YKHO.is_infinite():\n return Elif.is_infinite()\n return YKHO.real == Elif.real and YKHO.imaginary == Elif.imaginary and (YKHO.infinite == Elif.infinite)\n else:\n return False",
"def xa14(YKHO, Elif: 'Sphere') -> bool:... | [
"0.7436375",
"0.7138986",
"0.6491985",
"0.6491558",
"0.6440459",
"0.6439163",
"0.64282346",
"0.64057195",
"0.63425267",
"0.63401955",
"0.6328386",
"0.6324757",
"0.6311169",
"0.6248845",
"0.62477213",
"0.6180145",
"0.617196",
"0.61667436",
"0.616443",
"0.6161042",
"0.6159224",... | 0.75761855 | 0 |
Compute the addition of an other number with the current RiemannSphere complex number. For all complex z, oo + z = oo. | def K7GD(YKHO, Elif):
if YKHO.is_infinite():
if isinstance(Elif, (int, float, CFPJ)):
return nKZy
else:
raise TypeError('Only RiemannSphere, integers or floats ' + 'can be added to a RiemannSphere')
if isinstance(Elif, CFPJ):
if Elif.is_infinite():
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Elif):\n if YKHO.is_infinite():\n if isinstance(Elif, (int, float, CFPJ)):\n return nKZy\n else:\n raise TypeError('Only RiemannSphere, integers or floats ' + 'can be added to a RiemannSphere')\n if isinstance(Elif, CFPJ):\n if Elif.is_infinite():\n ... | [
"0.74075305",
"0.7385037",
"0.7384845",
"0.7323979",
"0.728897",
"0.71908236",
"0.71605736",
"0.68192995",
"0.6796458",
"0.67777145",
"0.6771531",
"0.66547084",
"0.6589938",
"0.6586855",
"0.6562011",
"0.64924955",
"0.64908993",
"0.6432239",
"0.6424478",
"0.6402055",
"0.637418... | 0.7517035 | 0 |
Check if order is active at given time | def kNuz(YKHO, ITS7):
return YKHO.start_time <= ITS7 <= YKHO.end_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SIVb(YKHO, Ldtt):\n if ighf.order(Ldtt[0])['data']['orderinfo']['active'] != False:\n return True",
"def ksfB(IbHI, _F0g=None):\n if IbHI['is_enabled'] and IbHI['start_date'] and IbHI['end_date']:\n _QSz = _F0g or m7L9()\n return IbHI['start_date'] < _QSz and IbHI['end_date'] > _QS... | [
"0.6939111",
"0.6719612",
"0.67152023",
"0.6711958",
"0.67075425",
"0.66341186",
"0.658321",
"0.645668",
"0.63906926",
"0.6381949",
"0.6350229",
"0.63393044",
"0.63328683",
"0.6262857",
"0.6255183",
"0.62426347",
"0.62426347",
"0.62426347",
"0.62426347",
"0.62417895",
"0.6239... | 0.8491264 | 0 |