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 |
|---|---|---|---|---|---|---|
Create a new FakeRequest. | def FIMM(YKHO, pB3N):
YKHO.payload = pB3N | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d9vn(NArs={}, pmON='/', NKcE='POST'):\n QePW = e9uV(pmON)\n QePW.method = NKcE\n QePW.args = NArs\n return QePW",
"def vrjI() -> b9AL:\n return b9AL()",
"def pXPL(QOe9, bD7m, MOPg=None):\n QePW = X5Wl(url=bD7m)\n if MOPg:\n QePW.headers = MOPg\n QOe9.record(QePW, X5Wl.getHttp... | [
"0.73175603",
"0.7217251",
"0.71283996",
"0.7102335",
"0.69908273",
"0.69307697",
"0.6744699",
"0.6716033",
"0.6707411",
"0.6690388",
"0.6652037",
"0.6641294",
"0.65867877",
"0.6542175",
"0.6535971",
"0.6518881",
"0.64871156",
"0.6450684",
"0.6338459",
"0.6326255",
"0.6318199... | 0.0 | -1 |
Create and return the client final message. | def xI69(YKHO):
return 'c=biws,r={},p={}'.format(YKHO.nonce, WR89.b64encode(YKHO.client_proof).decode()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jfL_(YKHO):\n Dfxc = YKHO.msg_type\n if Dfxc == 'PUBMSG':\n Dfxc = 'PRIVMSG'\n U5bT = '{} {}'.format(Dfxc, YKHO.target)\n if YKHO.content:\n U5bT += ' :{}'.format(YKHO.content)\n return U5bT + '\\r\\n'",
"def lGoC(YKHO, **B2fa):\n Ol8d = YKHO._builder.create_message(**B2fa)\n ... | [
"0.7200423",
"0.68963915",
"0.6847836",
"0.65430474",
"0.6453687",
"0.6336548",
"0.63121253",
"0.6258828",
"0.6250206",
"0.62453645",
"0.6231146",
"0.6203862",
"0.6164318",
"0.6156037",
"0.61532164",
"0.6137883",
"0.61344695",
"0.6063995",
"0.6045266",
"0.6025768",
"0.5957407... | 0.6773863 | 3 |
This setUp is in common for all the test cases below, and it's only execuded once We are ensuring all the entries are in the database. | def Baw8(Emd4):
Emd4.local_compounds = dQuu(Mso5)
Mkmy = vTOp(zDeW)
assert Mkmy.status_code == 204
Mkmy = NmhT(zDeW, Emd4.local_compounds)
assert Mkmy.status_code == 201 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n super(RF8w, YKHO).setUp()\n YKHO.db_set_up()",
"def FCbF(YKHO):\n YKHO.db_handler = uyvX(KWLJ.TABLE_NAME)\n YKHO.init_table()\n YKHO.items = {}\n YKHO.init_items()\n YKHO.populate_table()",
"def FCbF(YKHO):\n NCls.drop_all()\n NCls.create_all()",
"def FCbF(YKHO):\... | [
"0.8266936",
"0.8077561",
"0.80119467",
"0.79985225",
"0.79949707",
"0.78880525",
"0.7854587",
"0.7846121",
"0.7814978",
"0.779376",
"0.77839947",
"0.77683526",
"0.7748396",
"0.7708525",
"0.7704946",
"0.77044225",
"0.7699264",
"0.76699656",
"0.76596683",
"0.7651447",
"0.76277... | 0.0 | -1 |
Utility for converting time to a readable format | def TmWH(WbTE):
return tz8A.format_seconds(WbTE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EgnU():\n return ITS7.strftime('%A, %H:%M')",
"def Bc_l():\n return ITS7.strftime(ix3z)",
"def ct8j(YKHO, ITS7):\n TKQ0 = ITS7[0:2]\n cpvk = ITS7[2:4]\n KG9w = ITS7[4:]\n return '%s:%s:%s UTC' % (TKQ0, cpvk, KG9w)",
"def XrpE(S0TS):\n G9jH.debug('in_time = %s', S0TS)\n yvT9 = S0TS... | [
"0.79482764",
"0.7790982",
"0.7768226",
"0.77604693",
"0.76974124",
"0.76054263",
"0.75550926",
"0.7520432",
"0.7505294",
"0.74749476",
"0.7465713",
"0.73153657",
"0.73056006",
"0.72978073",
"0.7266752",
"0.7255068",
"0.7254812",
"0.7253192",
"0.7233307",
"0.72093713",
"0.713... | 0.0 | -1 |
Add a userdefined rule for processing | def a0cO(YKHO, HlGW, xASv):
uPab = xASv if hasattr(xASv, 'append') else [xASv]
YKHO._user_rules.append(jqxe(HlGW, uPab)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0cO(YKHO, eD8c):\n YKHO.rule.append(eD8c)",
"def a0cO(YKHO, eD8c):\n YKHO.rules.append(eD8c)",
"def a0cO(YKHO, eD8c) -> None:\n YKHO.add_rules([eD8c])",
"def a0cO(YKHO, eD8c: Rule):\n YKHO.rules.append(eD8c)",
"def a0cO(YKHO, eD8c):\n assert isinstance(eD8c, c4EF)\n YKHO.rule.append(... | [
"0.788966",
"0.7666368",
"0.7665126",
"0.74553794",
"0.7424087",
"0.7262521",
"0.71553975",
"0.7155152",
"0.70289135",
"0.6844776",
"0.68376344",
"0.6812977",
"0.6787777",
"0.6764527",
"0.67004496",
"0.6698899",
"0.6639478",
"0.66062474",
"0.6590142",
"0.6527615",
"0.6511653"... | 0.68808675 | 9 |
add item to beginning of deque | def byB9(YKHO, xqoZ):
if YKHO.size == YKHO.capacity:
YKHO.resize(2 * YKHO.size)
for bGrB in range(YKHO.arr):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rMGb(YKHO, nPrm):\n YKHO.deque.insert(0, nPrm)",
"def dZVG(YKHO, ZfUD):\n YKHO.items.insert(0, ZfUD)",
"def wbHw(YKHO, ZfUD):\n YKHO._items.insert(0, ZfUD)",
"def ZK_O(YKHO, ZfUD):\n YKHO.sentinel.insertAfter(ZfUD)\n YKHO.N += 1",
"def jvNa(YKHO, ZfUD):\n YKHO.items.insert(0, ZfUD)",
... | [
"0.7701063",
"0.7685327",
"0.7683865",
"0.7565719",
"0.7230589",
"0.720988",
"0.720988",
"0.7207769",
"0.71705633",
"0.7158093",
"0.71211654",
"0.70987415",
"0.7076816",
"0.7029194",
"0.6987425",
"0.69452715",
"0.6875677",
"0.6854924",
"0.6816049",
"0.6794837",
"0.67788875",
... | 0.6286526 | 55 |
Gets the force_pull of this V1CustomBuildStrategy. ForcePull describes if the controller should configure the build pod to always pull the images for the builder or only pull if it is not present locally | def JvGC(YKHO):
return YKHO._force_pull | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvGC(YKHO, JvGC):\n YKHO._force_pull = JvGC",
"def Rh9W(YKHO) -> YYU5:\n if not YKHO.image_pull_policy:\n bGrB, TZ9E = YKHO._get_image_and_tag()\n if TZ9E == 'latest' or not TZ9E:\n return YYU5.ALWAYS\n return YYU5.IF_NOT_PRESENT\n return YKHO.image_pull_policy",
"d... | [
"0.7006594",
"0.61882716",
"0.6007951",
"0.5567015",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.552425",
"0.... | 0.7259151 | 0 |
Gets the secrets of this V1CustomBuildStrategy. Secrets is a list of additional secrets that will be included in the build pod | def FXSn(YKHO):
return YKHO._secrets | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FXSn(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['SecretArgs']]]]:\n return qe4Y.get(YKHO, 'secrets')",
"def FXSn(YKHO):\n return []",
"def FXSn(YKHO):\n return YKHO._secrets_store",
"def OtvW(YKHO) -> h8nf[bdIy['outputs.DataBoxSecretResponse']]:\n return qe4Y.get(YKHO, 'pod_secrets')",
"def u... | [
"0.70832676",
"0.69684964",
"0.6773169",
"0.67016417",
"0.662107",
"0.6442236",
"0.63763225",
"0.63763225",
"0.6275013",
"0.61757606",
"0.6013842",
"0.5927664",
"0.5909263",
"0.5815483",
"0.57218266",
"0.5701877",
"0.56932366",
"0.5661639",
"0.5660847",
"0.5631284",
"0.557468... | 0.7129593 | 0 |
Gets the build_api_version of this V1CustomBuildStrategy. BuildAPIVersion is the requested API version for the Build object serialized and passed to the custom builder | def qjBf(YKHO):
return YKHO._build_api_version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(YKHO):\n return YKHO.api_version",
"def gBG2(YKHO):\n YKHO._update('getAPIVersion')\n return vp8q",
"def clva(YKHO):\n return YKHO._api_version",
"def clva(YKHO):\n return YKHO._api_version",
"def Q2ji(YKHO):\n return YKHO.connector.request('GET', '/app/webapiVersion')",
"def Q... | [
"0.64504695",
"0.6431397",
"0.6379104",
"0.62855005",
"0.62324035",
"0.6210222",
"0.6132111",
"0.6126697",
"0.6126697",
"0.6126697",
"0.6126697",
"0.6126697",
"0.60074884",
"0.60074884",
"0.60074884",
"0.60074884",
"0.60074884",
"0.60074884",
"0.60074884",
"0.60074884",
"0.60... | 0.74310917 | 0 |
Sets the build_api_version of this V1CustomBuildStrategy. BuildAPIVersion is the requested API version for the Build object serialized and passed to the custom builder | def qjBf(YKHO, qjBf):
YKHO._build_api_version = qjBf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjBf(YKHO):\n return YKHO._build_api_version",
"def q0xb(YKHO, q0xb):\n YKHO._builder_version = q0xb",
"def JuoO(YKHO, nNXP=None):\n return YKHO.version.set(api=nNXP)",
"def JVLC(YKHO, JVLC):\n YKHO._hxdp_build_version = JVLC",
"def EjLm(YKHO, EjLm):\n YKHO._system_api_version = EjLm",
... | [
"0.63503325",
"0.5667395",
"0.56616575",
"0.55100876",
"0.51271164",
"0.506362",
"0.50615346",
"0.50322396",
"0.49999204",
"0.496703",
"0.4929081",
"0.49075648",
"0.49068657",
"0.49051067",
"0.4883797",
"0.48580274",
"0.48178354",
"0.48059365",
"0.48026252",
"0.4757807",
"0.4... | 0.78767705 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.7961088",
"0.7961088",
"0.79433626",
"0.79303336",
"0.7926563",
"0.7897525",
"0.78826123",
"0.78826123",
"0.78806067",
"0.7872423",
"0.7868354",
"0.78668815",
"0.7825702",
"0.7819993",
"0.78162885",
"0.78078854",
"0.78068... | 0.79670393 | 39 |
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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
returns energy of spin at site i (which is set to S = len3 array) | def zo0m(YKHO, YRbF, o4sw):
d1Yd = (YRbF + 1) % YKHO.N
KrMP = (YRbF - 1) % YKHO.N
return -YKHO.J * oyIN.dot(imbu.get_spin_at_index(YKHO.s0, d1Yd) + imbu.get_spin_at_index(YKHO.s0, KrMP), o4sw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ocvr(bmS3, bLm4):\n j93S = Icsb(bLm4[0], bLm4[1])\n Nqp_ = Icsb(bLm4[2], bLm4[3])\n pGmv = Icsb(bLm4[4], bLm4[5])\n IiQ7 = Icsb(bLm4[6], bLm4[7])\n zWDi = {0: j93S, 1: Nqp_, 2: pGmv, 3: IiQ7}\n VYvU = 0\n for YRbF in range(0, 4):\n VYvU += Nq1b * zWDi[bmS3] @ zK6v[bmS3, YRbF] @ zWDi... | [
"0.6101109",
"0.5951018",
"0.5888443",
"0.5834395",
"0.5802993",
"0.5775375",
"0.57557124",
"0.57188636",
"0.5699719",
"0.56758624",
"0.5670992",
"0.5659201",
"0.5654406",
"0.56166524",
"0.56040317",
"0.5589373",
"0.5569809",
"0.55461323",
"0.55054134",
"0.5502522",
"0.547465... | 0.73400074 | 0 |
Appends an edge to the vertex if it does not exist yet. | def rz7z(YKHO, D70y: e.Edge) -> None:
if D70y not in YKHO.edges:
YKHO.edges.append(D70y)
YKHO.num_edges = YKHO.num_edges + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y):\n assert D70y not in YKHO.edges\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, hQHm, jlSq):\n if hQHm in YKHO.vertices and jlSq in YKHO.vertices:\n YKHO.vertices[hQHm].edges.add(jlSq)\n YKHO.vertices[jlSq].edges.add(hQHm)\n else:\n raise IndexError('That vertex... | [
"0.7604013",
"0.75487155",
"0.7484112",
"0.74597365",
"0.7453258",
"0.7448443",
"0.7413356",
"0.7392337",
"0.737835",
"0.7364973",
"0.73527324",
"0.73176026",
"0.724065",
"0.7232611",
"0.7220248",
"0.7186194",
"0.71579844",
"0.7151704",
"0.7141823",
"0.71259767",
"0.7100011",... | 0.75856924 | 1 |
Inits CHP_Mapper, letting the parent class take care of it. | def FIMM(YKHO, bD7m):
super(Xr9l, YKHO).__init__('CHP Incidents', bD7m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO._map = {}",
"def FIMM(YKHO, YAg3=None):\n if YAg3 is None:\n YAg3 = EypJ()\n YKHO.mapper = YAg3",
"def FIMM(YKHO, *, P8oC=None):\n YKHO._base = P8oC\n YKHO._map = {}",
"def FIMM(YKHO, _1kv=None):\n super().__init__()\n YKHO._create_new_mindmap_hierarchy()\n ... | [
"0.6665576",
"0.66312385",
"0.66086334",
"0.6604457",
"0.65957046",
"0.6554023",
"0.6551223",
"0.65042365",
"0.6489166",
"0.64539725",
"0.6397595",
"0.6386508",
"0.6290725",
"0.62713313",
"0.6267423",
"0.62620795",
"0.62028897",
"0.6193151",
"0.6169187",
"0.61271596",
"0.6085... | 0.0 | -1 |
checks whether a file is supported (usually based on file extension) | def lq30(Emd4, Poqf):
raise iI80('supports', Emd4.__name__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def swJp(Ux0P):\n return Hy7s.path.splitext(Ux0P)[-1].split('.')[-1].lower() in bNpf",
"def tSZB(YKHO):\n if YKHO._allowed_ext:\n if YKHO.get_ext() not in YKHO._allowed_ext:\n return False\n return True",
"def qdVJ(IznC):\n YBcr = pmON.splitext(IznC)[1]\n return YBcr in NexC",
... | [
"0.82368326",
"0.79529864",
"0.7812168",
"0.7802542",
"0.7618935",
"0.75671077",
"0.75449544",
"0.7434008",
"0.7433417",
"0.74324346",
"0.74261576",
"0.7421957",
"0.74171734",
"0.7410488",
"0.7370248",
"0.73522943",
"0.7348116",
"0.73415965",
"0.73415965",
"0.73415965",
"0.73... | 0.0 | -1 |
Authenticates us and returns the api.API. Authenticates users and apps in the self._credentials and returns the | def NLCy(YKHO) -> nNXP.API:
E6n9 = nNXP.API()
for Z9rn in YKHO._credentials:
JL98 = uXS6.OAuthHandler(Z9rn.consumer_key, Z9rn.consumer_secret)
JL98.set_access_token(Z9rn.access_token, Z9rn.access_secret)
cFlA = uXS6.AppAuthHandler(Z9rn.consumer_key, Z9rn.consumer_secret)
E6n9.app... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jpbe(YKHO):\n return YKHO.api(YKHO.token)",
"def NLCy(YKHO):\n Jpbe = q53Q.OAuthHandler(YKHO.consumer_key, YKHO.consumer_secret)\n Jpbe.set_access_token(YKHO.access_token, YKHO.access_secret)\n return q53Q.API(Jpbe)",
"def n7oW():\n rSTc = QePW.args.get('api_key', None)\n from flask impor... | [
"0.74522656",
"0.6943314",
"0.6670792",
"0.66693664",
"0.66318035",
"0.65263337",
"0.649108",
"0.64906216",
"0.64639795",
"0.64376366",
"0.64247215",
"0.64170045",
"0.63672036",
"0.635011",
"0.63299376",
"0.6298993",
"0.6226942",
"0.6226475",
"0.6204906",
"0.62011606",
"0.619... | 0.7257922 | 1 |
Returns the list of the projects on the server | def PKRp(YKHO):
return YKHO.http_call('get', url=f'{YKHO.base_url}/projects').json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PKRp(YKHO):\n Ylbp = YKHO.conn.cursor().execute('SELECT * FROM projects')\n return Ylbp.fetchall()",
"def PKRp(YKHO):\n llaM = []\n B2Dn = 1\n while not len(llaM) % 100:\n llaM += YKHO._get('/projects?{0}'.format(uRlK.urlencode({'per_page': 100, 'page': B2Dn})))\n if not llaM:\n ... | [
"0.8474279",
"0.8458842",
"0.84545606",
"0.84037936",
"0.82411945",
"0.82348156",
"0.81707937",
"0.8125155",
"0.81145376",
"0.81022495",
"0.8082807",
"0.79827887",
"0.7954017",
"0.79135674",
"0.7856712",
"0.7851414",
"0.7850082",
"0.7825641",
"0.780371",
"0.7790957",
"0.77847... | 0.86749756 | 0 |
Returns the drawing by searching for the `svg` or the `drawing_id`. | def xhMk(YKHO, O21m=None):
if not YKHO.drawings:
YKHO.get_drawings()
try:
return next((tLND for tLND in YKHO.drawings if tLND['drawing_id'] == O21m))
except StopIteration:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xhMk(YKHO, mWFP, d6pt):\n try:\n if mWFP not in YKHO._categories:\n mWFP = YKHO._category_mapping.get(mWFP, 'scorpion')\n if d6pt < 0 or d6pt >= 100 or (not isinstance(d6pt, int)):\n raise ValueError('index', d6pt, ';index must be integer >= 0 and < 100')\n dgrM = ... | [
"0.60212386",
"0.59713256",
"0.5715111",
"0.55603194",
"0.5494275",
"0.5105928",
"0.5105928",
"0.5070965",
"0.50424117",
"0.5032529",
"0.5021456",
"0.49840453",
"0.49535578",
"0.49262595",
"0.48082048",
"0.48070395",
"0.47645715",
"0.47435388",
"0.4707673",
"0.4657674",
"0.46... | 0.78873676 | 0 |
Takes a list of integers and zero pads it from the left with [0]s. | def fyIq(vC9B: List[int], exwG: int) -> x1iM[int]:
return [0] * (exwG - len(vC9B)) + vC9B | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPoI(YKHO, xYvp: List[int]) -> None:\n oeNL = 0\n for YRbF in xYvp:\n if YRbF == 0:\n continue\n else:\n xYvp[oeNL] = YRbF\n oeNL += 1\n xYvp[oeNL:] = [0] * (len(xYvp) - oeNL)",
"def P7Lu(list, BcCR, kjOt):\n eB5C = S5Za(list, maxlen=BcCR, padding=kj... | [
"0.75776315",
"0.7566504",
"0.75110173",
"0.7431826",
"0.7431059",
"0.73011357",
"0.7245347",
"0.724187",
"0.7241765",
"0.71731764",
"0.71466243",
"0.71301794",
"0.71148884",
"0.71142054",
"0.7096442",
"0.70867056",
"0.708499",
"0.7079688",
"0.70729375",
"0.7069374",
"0.70674... | 0.82894343 | 0 |
load data from json file | def UlWi():
AX0y = open('transactions.json', 'r')
nPrm = qQXR.load(AX0y)
gQVK = nPrm['transactions']
DumB = nPrm['items']
return (DumB, gQVK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y6Vs(YKHO, Ux0P):\n with open(Ux0P, 'r') as eHNT:\n YKHO.data = qQXR.load(eHNT, object_pairs_hook=U8Lr)",
"def AXOg(YKHO):\n if YKHO.file_path.exists():\n with open(YKHO.file_path) as hOYR:\n YKHO.data = qQXR.load(hOYR)",
"def UlWi(Ux0P):\n with open(Ux0P) as wM3v:\n ... | [
"0.8107666",
"0.7834338",
"0.78210264",
"0.7782435",
"0.77811277",
"0.77406526",
"0.77384186",
"0.7627601",
"0.7612073",
"0.75803113",
"0.7546987",
"0.75011784",
"0.74468184",
"0.7437525",
"0.7374603",
"0.7322796",
"0.732176",
"0.73216665",
"0.73144585",
"0.72868615",
"0.7271... | 0.0 | -1 |
Return the number table rows. | def A6_I(YKHO):
if YKHO.number_of_columns():
return YKHO._number_of_rows
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWGE(YKHO) -> int:\n ...",
"def SWGE(YKHO):\n return YKHO.__rows",
"def cR8f(YKHO) -> int:\n ...",
"def NwL4(YKHO) -> str:\n return qe4Y.get(YKHO, 'num_rows')",
"def DR2N(YKHO) -> int:\n return len(YKHO.rows)",
"def DR2N(YKHO) -> int:\n return len(YKHO.rows)",
"def zHs6(YKHO, tyNF... | [
"0.8687114",
"0.8353838",
"0.8256548",
"0.80447686",
"0.79965144",
"0.79965144",
"0.7925463",
"0.7915425",
"0.786233",
"0.78540987",
"0.78486884",
"0.7832166",
"0.7827024",
"0.7825267",
"0.78224266",
"0.78153557",
"0.7812026",
"0.7796706",
"0.77515095",
"0.76862335",
"0.76851... | 0.80342555 | 4 |
test a graph with zero vertices given | def hMlV(YKHO):
iXlf = []
sRwc = YKHO.context.frame.create(iXlf, YKHO.vertex_schema)
pNZh = YKHO.context.graph.create(sRwc, YKHO.doc_edge_frame)
Ylbp = pNZh.degree_centrality()
cn34 = Ylbp.to_pandas()
for d6pt, rdlD in cn34.iterrows():
YKHO.asertAlmostEqual(rdlD['degree_centrality'], 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bDEg(YKHO):\n yokr = 42\n yvY1 = nWLn(0, 10, yokr)\n SjMt(len(yvY1), 10)\n SjMt(sum((1 for bGrB in yvY1.edges())), 0)",
"def ZJbw(YKHO):\n YKHO.assertEquals(q6LM().dijkstras(YKHO.g11, 'a', 'b'), 'No vertex found in graph')",
"def gGOw(zwwc):\n Q8sd = ['land submarine', 'Portland Timbers',... | [
"0.7662234",
"0.7468911",
"0.7205087",
"0.719978",
"0.71543163",
"0.70582736",
"0.696471",
"0.6789812",
"0.67720497",
"0.67526853",
"0.6566185",
"0.6507636",
"0.6502867",
"0.64874274",
"0.6379047",
"0.6284049",
"0.6250289",
"0.6231617",
"0.62192005",
"0.6213751",
"0.62045664"... | 0.76254076 | 1 |
Set the rotation of the point of view. | def czNn(YKHO, XSoh=None, vP2v=None):
if XSoh is None:
XSoh = YKHO.direction
else:
assert len(XSoh) == 3
XSoh = XTiz.array(XSoh, copy=True, dtype=XTiz.float32)
XSoh /= XTiz.linalg.norm(XSoh)
if vP2v is None:
vP2v = YKHO.up
else:
assert len(vP2v) == 3
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f2Y2(YKHO, YylR=0.0):\n jDK_ = (0, 0, 1)\n anqW = YKHO.transform.pos\n u6Z5 = anqW + S8DJ.vec3(0, -40, 0)\n YKHO.transform.setPos(u6Z5)\n YKHO.transform.setRot(S8DJ.angleAxis(S8DJ.radians(YylR), S8DJ.vec3(jDK_)))\n YKHO.transform.setPos(anqW)",
"def E5Jd(YKHO, YylR):\n YKHO._rotation = Y... | [
"0.7661325",
"0.7340683",
"0.7338011",
"0.72786695",
"0.71370727",
"0.70414835",
"0.69523287",
"0.6748088",
"0.6656014",
"0.65957755",
"0.6576316",
"0.6533558",
"0.6529668",
"0.65239954",
"0.6485575",
"0.64770585",
"0.6473336",
"0.6473102",
"0.64004517",
"0.6390107",
"0.63888... | 0.0 | -1 |
Coordinates of the point of view as a numpy.ndarray of 3 float32. | def dQgj(YKHO):
return YKHO._position.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LTIa(YKHO):\n return YKHO._arr.T.ravel().view(dtype=[('x', YKHO.dtype), ('y', YKHO.dtype), ('z', YKHO.dtype)])",
"def W0Eb(YKHO):\n return oyIN.array([YKHO.x, YKHO.y])",
"def UqpO(YKHO) -> oyIN.ndarray:\n return oyIN.vstack((YKHO.x, YKHO.y, YKHO.z)).transpose()",
"def jNOo(YKHO):\n return oyI... | [
"0.7448454",
"0.7183838",
"0.7129984",
"0.7114555",
"0.7022504",
"0.69364476",
"0.68954456",
"0.68572676",
"0.6819143",
"0.68147635",
"0.6808464",
"0.6799408",
"0.6792076",
"0.67887616",
"0.67609465",
"0.67609465",
"0.67558694",
"0.67328596",
"0.6668634",
"0.6649002",
"0.6564... | 0.0 | -1 |
Vector pointing upward in the image plane (ndarray of 3 float32). | def vP2v(YKHO):
return YKHO._up.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vP2v(YKHO, WKvO, LVAh, epBp):\n YKHO.curr_up = lNLu([WKvO, LVAh, epBp])\n YKHO.ptr.up(WKvO, LVAh, epBp)",
"def umyf(YKHO):\n V9Fl = YKHO.MV\n V9Fl[:3, 1] = (0, 0, 1)\n V9Fl[2, 0] = 0\n V9Fl[2, 2] = 0\n jzdc = V9Fl[0, 0]\n Fg_i = oyIN.sqrt(1 - jzdc ** 2)\n if V9Fl[1, 0] < 0:\n ... | [
"0.686878",
"0.6711407",
"0.6711407",
"0.6404477",
"0.63681275",
"0.6295873",
"0.62082344",
"0.61488545",
"0.6147175",
"0.60988593",
"0.60740435",
"0.6047639",
"0.60165375",
"0.6008867",
"0.59943247",
"0.59048146",
"0.5901409",
"0.5897249",
"0.5878537",
"0.5875203",
"0.583904... | 0.0 | -1 |
Vector pointing towards the side of the image plane. ndarray of 3 float32 | def HEZd(YKHO):
return YKHO._side.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NFIp(he6J):\n return he6J / PZyS(BJ1H(he6J, he6J))",
"def UwsW(XP5J: np.ndarray, Ty9i: np.ndarray) -> ImMB:\n return XP5J[:3].dot(Ty9i) + XP5J[3]",
"def iArr(YKHO) -> lNLu:\n return YKHO._normal * YKHO._distance_from_origin",
"def En_H(YKHO):\n return MYYA(+YKHO.x, +YKHO.y, +YKHO.z, +YKHO.w)"... | [
"0.6715703",
"0.6617088",
"0.64729697",
"0.6462744",
"0.637154",
"0.622446",
"0.6204779",
"0.6190666",
"0.6138991",
"0.6136419",
"0.61094856",
"0.6102307",
"0.6086981",
"0.6076096",
"0.60495996",
"0.60133463",
"0.60122263",
"0.60081464",
"0.6006431",
"0.6003507",
"0.5993029",... | 0.0 | -1 |
Move the camera relative to the image plane. | def BZN_(YKHO, XSoh, YPaw=1.0):
if XSoh in ('up', 'down'):
iArr = YKHO.up * (1.0 if XSoh == 'up' else -1.0)
elif XSoh in ('left', 'right'):
iArr = YKHO.side * (1.0 if XSoh == 'right' else -1.0)
elif XSoh in ('forward', 'backward'):
iArr = YKHO.direction * (1.0 if XSoh == 'forward' el... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IRwR(YKHO, ZJUk):\n if type(ZJUk) is not q955:\n ZJUk = q955(ZJUk)\n YKHO.camCenter += ZJUk",
"def BZN_(YKHO):\n YKHO.center_x += YKHO._vx\n YKHO.center_y += YKHO._vy",
"def BZN_(YKHO):\n JRC0 = YKHO.__screen.SCREEN_MIN_X\n LChT = YKHO.__screen.SCREEN_MIN_Y\n nhBs = YKHO.__scree... | [
"0.7552061",
"0.71024525",
"0.6847155",
"0.6782502",
"0.65680116",
"0.6543754",
"0.6523516",
"0.6517082",
"0.65036064",
"0.649976",
"0.64792097",
"0.64664745",
"0.64553064",
"0.6425988",
"0.64002854",
"0.6391806",
"0.63523936",
"0.6348557",
"0.6323312",
"0.6317281",
"0.631268... | 0.0 | -1 |
Intrinsic camera parameters, i.e., projection matrix. | def twOO(YKHO):
return YKHO._intrinsic | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ml5B(YKHO) -> None:\n YKHO.world.camera.update(cam_base_pos=(0, -3, 0), cam_dist=1.2 * YKHO.world.env_dim, cam_yaw=0, cam_pitch=-60)",
"def fne7(YKHO):\n pass",
"def ml5B(YKHO) -> None:\n YKHO.world.camera.update(cam_base_pos=(3.0, 0, 2), cam_dist=2.5, cam_yaw=90, cam_pitch=-50)",
"def GZeS(YKHO... | [
"0.6608927",
"0.6415826",
"0.6352593",
"0.63487923",
"0.6285882",
"0.62111944",
"0.6143827",
"0.6135035",
"0.61305976",
"0.6057601",
"0.60454494",
"0.6035909",
"0.60180455",
"0.59766716",
"0.5972908",
"0.59583145",
"0.5938437",
"0.5934274",
"0.5934128",
"0.5894838",
"0.588596... | 0.0 | -1 |
Extrinsic camera parameters, i.e., position and orientation. | def CjYO(YKHO):
return YKHO._extrinsic | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e8If(YKHO):\n return YKHO.__exteriorOrientationParameters",
"def W4D3(YKHO):\n return (YKHO.camera.getHeight(), YKHO.camera.getWidth(), 4)",
"def V9LU(azoT):\n iq0b = CNYW()\n iq0b.header.frame_id = 'velodyne'\n iq0b.width = int(azoT['width'])\n iq0b.height = int(azoT['height'])\n iq0b... | [
"0.6276097",
"0.6250388",
"0.60907876",
"0.6072059",
"0.60546774",
"0.6052766",
"0.59104353",
"0.5843786",
"0.58264494",
"0.57727367",
"0.5733514",
"0.57252014",
"0.5713712",
"0.5703949",
"0.56366533",
"0.56118876",
"0.5606309",
"0.5593476",
"0.5582585",
"0.55586857",
"0.5553... | 0.54801553 | 26 |
this function is trying to reverse the last n characters from vals | def D9sQ(T6S7, exwG):
if len(T6S7) <= exwG:
return T6S7[::-1]
else:
gv2B = T6S7[0:len(T6S7) - exwG]
BdN0 = T6S7[-1:len(T6S7) - exwG - 1:-1]
return gv2B + BdN0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HZeU(exwG):\n return exwG[::-1]",
"def nkw2(exwG):\n return ''.join(reversed(exwG))",
"def o5Dc(exwG):\n return int(''.join(reversed(str(exwG))))",
"def HCSi(ywwl):\n if ywwl == 0 or ywwl == 1:\n return ''\n hlel = ''\n lvIt = len(str(ywwl))\n for YRbF in range(ywwl, 1, -1):\n... | [
"0.6828785",
"0.68280214",
"0.6512577",
"0.64922583",
"0.6467967",
"0.64595705",
"0.6435747",
"0.63816744",
"0.6349212",
"0.6285224",
"0.62807274",
"0.62592214",
"0.6258128",
"0.62575",
"0.6205536",
"0.619954",
"0.61921704",
"0.61921227",
"0.61821634",
"0.61806667",
"0.617063... | 0.77552915 | 0 |
Get a user by ID | def bt8D(uJjO: IntOrStr, **NArs) -> jnRN:
geh0 = NMoC(f'{JCgs}/users', ids=uJjO, allow_str_ids=True, **NArs)
dixj = geh0.json()['results']
if not dixj:
return {}
return DThu(dixj[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(YKHO, id):\n return YKHO.users.get(id)",
"def TKWP(id):\n pass",
"def NMoC(id):\n return mv1M.query.filter_by(id=id).first()",
"def KacQ(YKHO, id: int) -> auMM.bbUser:\n id = YKHO.validateID(id)\n return YKHO.users[id]",
"def JuUv(YKHO, id):\n for CBIr in YKHO.users:\n if ... | [
"0.8792969",
"0.87872624",
"0.86924756",
"0.853347",
"0.8445263",
"0.8433324",
"0.8417379",
"0.83611023",
"0.8316352",
"0.8262265",
"0.8258542",
"0.8255396",
"0.82451",
"0.8196948",
"0.819005",
"0.819005",
"0.819005",
"0.819005",
"0.8189882",
"0.8184195",
"0.81832767",
"0.8... | 0.0 | -1 |
Gets the platform_type of this ShowInstanceDetailResponse. | def AINo(YKHO):
return YKHO._platform_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z5O9(YKHO):\n return YKHO._platform",
"def a9EH(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'platform')",
"def HxZt(begE):\n try:\n yvT9 = begE.parse('show version')\n except Gx5Q:\n RKD7.info('Could not get device version information')\n return None\n return yvT9... | [
"0.6500356",
"0.6413572",
"0.6357047",
"0.631787",
"0.62189364",
"0.6166719",
"0.6138307",
"0.61155635",
"0.60626024",
"0.6050106",
"0.60287845",
"0.6019198",
"0.6004431",
"0.6004431",
"0.6004431",
"0.6004431",
"0.6004431",
"0.6004431",
"0.6004431",
"0.6004431",
"0.6004431",
... | 0.76110876 | 0 |
Sets the platform_type of this ShowInstanceDetailResponse. | def AINo(YKHO, AINo):
YKHO._platform_type = AINo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AINo(YKHO):\n return YKHO._platform_type",
"def a9EH(YKHO, a9EH):\n if a9EH is not None:\n if not isinstance(a9EH, jUrF):\n raise TypeError('Invalid type for `platform`, type has to be `string_types`')\n YKHO._platform = a9EH",
"def zqNI(YKHO):\n return None",
"def URUC(YKHO... | [
"0.60361105",
"0.6002751",
"0.55748445",
"0.5369716",
"0.52994025",
"0.5250543",
"0.5250543",
"0.52197665",
"0.51590115",
"0.5154099",
"0.5109442",
"0.50189734",
"0.50189734",
"0.50189734",
"0.50189734",
"0.50132906",
"0.5001434",
"0.49967003",
"0.4991788",
"0.49679396",
"0.4... | 0.7584566 | 0 |
Gets the status_detail of this ShowInstanceDetailResponse. | def MVCX(YKHO):
return YKHO._status_detail | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aeup(YKHO):\n return YKHO.status['health']['detail']",
"def tKVC(YKHO) -> str:\n return qe4Y.get(YKHO, 'detailed_status')",
"def tKVC(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'detailed_status')",
"def tKVC(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'detailed_status')",
"de... | [
"0.69682634",
"0.66956407",
"0.66443765",
"0.66443765",
"0.64564216",
"0.6339017",
"0.6339017",
"0.63274443",
"0.62666446",
"0.6244358",
"0.62004507",
"0.6188391",
"0.61865604",
"0.613004",
"0.6129157",
"0.61100185",
"0.61100185",
"0.61100185",
"0.60743433",
"0.60691595",
"0.... | 0.7964249 | 0 |
Sets the status_detail of this ShowInstanceDetailResponse. | def MVCX(YKHO, MVCX):
YKHO._status_detail = MVCX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MVCX(YKHO, MVCX):\n YKHO._status_detail = MVCX",
"def tKVC(YKHO, tKVC):\n YKHO._detailed_status = tKVC",
"def tZbN(YKHO, jGRS, iQG7=None):\n YKHO.onStatusSent(None, jGRS)",
"def jGRS(YKHO, jGRS):\n YKHO._set_property_(YKHO.STATUS, str(jGRS))",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS"... | [
"0.811624",
"0.7056993",
"0.6349227",
"0.61626244",
"0.61106753",
"0.61106753",
"0.61106753",
"0.6030321",
"0.6030321",
"0.602323",
"0.6022512",
"0.6022512",
"0.6022512",
"0.6022512",
"0.6022512",
"0.6022512",
"0.6022512",
"0.6022512",
"0.6022512",
"0.6022512",
"0.6022512",
... | 0.8050524 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, hT63):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Provide helpful representation when printed. | def wHJl(YKHO):
return '<User user_id=%s email=%s>' % (YKHO.user_id, YKHO.email) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)",
"def atpV(YKHO):\n return YKHO.des",
"def atpV(YKHO):\n return YKHO.des",
"def zAg0(YKHO):\n return YKHO.printable()",
"def T37n(YKHO):\n GGQD = 'Qubit ID: ' + str(YKHO.qubit_id) + ' '\n GGQD = GGQD + 'Outcome: ' + str(YKHO.outco... | [
"0.7529561",
"0.7511525",
"0.7511525",
"0.74975544",
"0.7394847",
"0.72965956",
"0.7293301",
"0.7226869",
"0.7225389",
"0.7205555",
"0.71771973",
"0.71743053",
"0.7146052",
"0.7134735",
"0.71325094",
"0.71289283",
"0.7126178",
"0.71148866",
"0.7109676",
"0.7082562",
"0.707800... | 0.0 | -1 |
Provide helpful representation when printed. | def wHJl(YKHO):
return '<Studio studio_id=%s name=%s>' % (YKHO.studio_id, YKHO.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)",
"def atpV(YKHO):\n return YKHO.des",
"def atpV(YKHO):\n return YKHO.des",
"def zAg0(YKHO):\n return YKHO.printable()",
"def T37n(YKHO):\n GGQD = 'Qubit ID: ' + str(YKHO.qubit_id) + ' '\n GGQD = GGQD + 'Outcome: ' + str(YKHO.outco... | [
"0.7529561",
"0.7511525",
"0.7511525",
"0.74975544",
"0.7394847",
"0.72965956",
"0.7293301",
"0.7226869",
"0.7225389",
"0.7205555",
"0.71771973",
"0.71743053",
"0.7146052",
"0.7134735",
"0.71325094",
"0.71289283",
"0.7126178",
"0.71148866",
"0.7109676",
"0.7082562",
"0.707800... | 0.0 | -1 |
Provide helpful representation when printed. | def wHJl(YKHO):
return '<Review review_id=%s user_id=%s studio_id=%s>' % (YKHO.review_id, YKHO.user_id, YKHO.studio_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)",
"def atpV(YKHO):\n return YKHO.des",
"def atpV(YKHO):\n return YKHO.des",
"def zAg0(YKHO):\n return YKHO.printable()",
"def T37n(YKHO):\n GGQD = 'Qubit ID: ' + str(YKHO.qubit_id) + ' '\n GGQD = GGQD + 'Outcome: ' + str(YKHO.outco... | [
"0.7529561",
"0.7511525",
"0.7511525",
"0.74975544",
"0.7394847",
"0.72965956",
"0.7293301",
"0.7226869",
"0.7225389",
"0.7205555",
"0.71771973",
"0.71743053",
"0.7146052",
"0.7134735",
"0.71325094",
"0.71289283",
"0.7126178",
"0.71148866",
"0.7109676",
"0.7082562",
"0.707800... | 0.0 | -1 |
Provide helpful representation when printed. | def wHJl(YKHO):
return '<Instructor instructor_id=%s name=%s>' % (YKHO.instructor_id, YKHO.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)",
"def atpV(YKHO):\n return YKHO.des",
"def atpV(YKHO):\n return YKHO.des",
"def zAg0(YKHO):\n return YKHO.printable()",
"def T37n(YKHO):\n GGQD = 'Qubit ID: ' + str(YKHO.qubit_id) + ' '\n GGQD = GGQD + 'Outcome: ' + str(YKHO.outco... | [
"0.7529561",
"0.7511525",
"0.7511525",
"0.74975544",
"0.7394847",
"0.72965956",
"0.7293301",
"0.7226869",
"0.7225389",
"0.7205555",
"0.71771973",
"0.71743053",
"0.7146052",
"0.7134735",
"0.71325094",
"0.71289283",
"0.7126178",
"0.71148866",
"0.7109676",
"0.7082562",
"0.707800... | 0.0 | -1 |
I think these are the equations for the x independent stresses from the base profile. | def yHB2(RPuz):
bbnS = VNqG(i6Zy, dtype='complex')
bbnS[ywwl * E3D9] += 1.0
d4bm = VNqG(i6Zy, dtype='complex')
d4bm = YZWC * BJ1H(ZeXY, RPuz)
Li6c = VNqG(i6Zy, dtype='complex')
Li6c = 2 * YZWC * YZWC * d4bm * d4bm
Li6c[ywwl * E3D9] += 1.0
return (Li6c, d4bm, bbnS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WKvO(YKHO):\n hkxX = YKHO._interpolate_table('x')\n hkxX += YKHO._corrections(('ortho_eop', p3QP.ortho_eop, 0, 1e-06), ('pmsdnut2', p3QP.pmsdnut2, 0, 1e-06))\n return hkxX",
"def WPSB(YKHO):\n return YKHO.glb[mCAj] / YKHO.glb[ErYW]",
"def x_Ml(YKHO):\n return YKHO.glb[qpPD['Zs']] / YKHO.glb[... | [
"0.622491",
"0.6161177",
"0.61303806",
"0.6074397",
"0.60576624",
"0.6016752",
"0.5977206",
"0.5931189",
"0.57652247",
"0.57440555",
"0.5720678",
"0.5685158",
"0.5685158",
"0.5679539",
"0.5673104",
"0.5639944",
"0.5633417",
"0.5627377",
"0.56228966",
"0.56037736",
"0.55917674... | 0.0 | -1 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj, qIxc):
"""Comes from pytorch demo"""
tspZ = qIxc.lr * 0.1 ** (qtWj // 30)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.7913536",
"0.7906521",
"0.7849834",
"0.777524",
"0.77338326",
"0.77306354",
"0.7722718",
"0.77224237",
"0.771982",
"0.77092624",
"0.7693604",
"0.76742035",
"0.7665748",
"0.7665748",
"0.7665748",
"0.7655329",
"0.76419765",
"0.76399755",
"0.7637868",
"0.7626077",
"0.76247585... | 0.7598349 | 26 |
Creates a new superuser | def Zp54(YKHO, D3lj, mWFP, jTXt):
CBIr = YKHO.create_user(D3lj, mWFP, jTXt)
CBIr.is_superuser = True
CBIr.is_staff = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvMu():\n D3lj = idDS('User E-Mail')\n JAPf = idDS('Confirm E-Mail')\n if not D3lj == JAPf:\n HwRy.exit('\\nCould not create user: E-Mail did not match')\n if not abGk.match(D3lj):\n HwRy.exit('\\nCould not create user: Invalid E-Mail addresss')\n jTXt = GgOB('User password')\n ... | [
"0.80412585",
"0.7921864",
"0.7915325",
"0.77885205",
"0.77613276",
"0.77593327",
"0.7739667",
"0.7705691",
"0.7691871",
"0.76866704",
"0.76856697",
"0.7680962",
"0.7672732",
"0.766203",
"0.76611584",
"0.7630425",
"0.7623007",
"0.7620972",
"0.7617647",
"0.7606459",
"0.7603212... | 0.77949375 | 3 |
Gets user full name | def xpqj(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.user.first_name.strip(), YKHO.user.last_name.strip())\n if len(eHMM.strip()) == 0:\n eHMM = YKHO.user.username\n return eHMM.strip()",
"def xpqj(YKHO):\n return YKHO.username",
"def xpqj(YKHO):\n return YKHO.username",
"def eHMM(YKHO):\n retur... | [
"0.87490374",
"0.8723116",
"0.8723116",
"0.87211084",
"0.8659905",
"0.8628989",
"0.86097383",
"0.8550003",
"0.850894",
"0.848014",
"0.82230866",
"0.8215219",
"0.81873226",
"0.81509435",
"0.813707",
"0.81305563",
"0.8096639",
"0.8095032",
"0.8094177",
"0.80926865",
"0.8076496"... | 0.7584439 | 94 |
Get name of VMware Storage Policy profile associated with the specified entities | def fBC0(VsQd, bf9h, mWFP):
zOP3 = VsQd.PbmQueryAssociatedProfile(bf9h)
if len(zOP3) > 0:
QhXp = VsQd.PbmRetrieveContent(profileIds=zOP3)
for z39Z in QhXp:
if z39Z.name == mWFP:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SIpL():\n import botocore.session\n return UveJ.session.get_session().full_config.get('profiles', {}).keys()",
"def hmAl(YKHO):\n return YKHO.options['policyname']",
"def hmAl(YKHO):\n return YKHO.options['policyname']",
"def CX3n(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'policy_name')"... | [
"0.5752688",
"0.5666046",
"0.56285954",
"0.5536714",
"0.5536714",
"0.55023414",
"0.54529655",
"0.5378374",
"0.53680223",
"0.53575444",
"0.5342156",
"0.53416854",
"0.53203946",
"0.53201973",
"0.5316135",
"0.52728826",
"0.52728826",
"0.52728826",
"0.52728826",
"0.52728826",
"0.... | 0.0 | -1 |
Return configuration form for apps. | def jlLB(YKHO, B7c0: str) -> gI3H:
wSM5 = {qjHC.Optional(cqqD, description={'suggested_value': YKHO._apps.get(B7c0, '')}): str}
if B7c0 == HMaF:
ufuS = qjHC.Schema({**wSM5, qjHC.Optional(MhLb): str})
else:
ufuS = qjHC.Schema({**wSM5, qjHC.Optional(RIMd, default=False): bool})
return YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wlMU():\n return TvZl('application-form.html')",
"def dHFh():\n return TvZl('application-form.html')",
"def FKcF():\n return TvZl('application-form.html')",
"def SCWY():\n return TvZl('application-form.html')",
"def dLQw(YKHO):\n return YKHO._app_conf['aiscalator']",
"def EcXW():\n ... | [
"0.74206626",
"0.6864017",
"0.6551376",
"0.6439755",
"0.6328698",
"0.6247581",
"0.612097",
"0.6112767",
"0.60953647",
"0.6049512",
"0.60375196",
"0.59740597",
"0.5951114",
"0.5906394",
"0.58915955",
"0.5882851",
"0.5864854",
"0.5863126",
"0.58575326",
"0.5796898",
"0.57661843... | 0.66284955 | 2 |
This function generates a 2D scatter plot given the inputs and their corresponding labels. Inputs with different classes are represented with different colours. | def LjYD(EcVT, LVAh):
assert len(EcVT.shape) == len(LVAh.shape) == 2, f'Input/output pairs must be 2D-arrays. X: {EcVT.shape}, y: {LVAh.shape}'
ywwl, lWPh = EcVT.shape
assert ywwl == LVAh.shape[0], f'Number of samples must match for input/output pairs. X: {ywwl}, y: {LVAh.shape[0]}'
assert lWPh == 2, f'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VE_a(cC56, VJv0, sAoX, H96n, DNAD, PHUN):\n Rtew = cC56[VJv0 == 0, :]\n jwjA = cC56[VJv0 == 1, :]\n Ksz3 = sAoX[H96n == 0, :]\n BBbk = sAoX[H96n == 1, :]\n LZpg, jzdc = QrM1.subplots(1, 2)\n LZpg.set_size_inches(11, 5)\n jzdc[0].scatter(Rtew[:, 0], Rtew[:, 1], color='green', label=DNAD)\n ... | [
"0.7380091",
"0.72378266",
"0.7031409",
"0.6989784",
"0.696256",
"0.6941738",
"0.69289213",
"0.68483156",
"0.6812628",
"0.680862",
"0.6766454",
"0.67389846",
"0.67186767",
"0.67063254",
"0.66660726",
"0.66634953",
"0.66431606",
"0.65923584",
"0.65541166",
"0.653203",
"0.65277... | 0.5982095 | 77 |
Splits a sentence. Returns an array of words. | def AjMb(yAmx):
V22M = []
YHNB = 0
u54L = len(yAmx)
V_8U = 0
while V_8U < u54L:
Npgh = ' '
while V_8U < u54L:
Npgh = yAmx[V_8U]
if Npgh > ' ':
break
V_8U += 1
if V_8U >= u54L:
break
if Npgh == '.' and tCt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q2Lj(YKHO, yAmx):\n return ZbWC.split(YKHO.word_split_pattern, yAmx)",
"def HPLn(Rhv4):\n return list(Rhv4.split(' '))",
"def AjMb(yAmx):\n Rhv4 = []\n lpha = Dhdw.sent_tokenize(yAmx)\n for KCHu in lpha:\n Rhv4.append(KCHu)\n return Rhv4",
"def AjMb(YKHO, yAmx):\n Eab6 = YKHO.... | [
"0.8394406",
"0.7914362",
"0.77626485",
"0.7696968",
"0.7639039",
"0.7639039",
"0.7607761",
"0.7486167",
"0.74568903",
"0.73574156",
"0.7305894",
"0.7191113",
"0.7157531",
"0.71538323",
"0.70700896",
"0.69762975",
"0.6963618",
"0.69454724",
"0.6908545",
"0.6825234",
"0.679260... | 0.73161775 | 10 |
Set a creator/P170 claim for an unknown creator. Allows for simple anonymous claims as well as more complex "in the manner of" etc. | def Q8fX(YKHO, GrWB, VikP, aC0l):
Suml = 'Q4233718'
iOv1 = BVQG.Statement(YKHO.wd.QtoItemPage(Suml))
if VikP:
iOv1.addQualifier(BVQG.Qualifier(P=VikP['P'], itis=VikP['itis']))
YKHO.wd.addNewClaim(u'P170', iOv1, GrWB, aC0l) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def msoQ(YKHO, GrWB, Aw2x, aC0l):\n pOH2 = YKHO.wd.QtoItemPage(Aw2x)\n YKHO.wd.addNewClaim(u'P170', BVQG.Statement(pOH2), GrWB, aC0l)",
"def Wyuj(YKHO, Wyuj):\n YKHO._creator = Wyuj",
"def Wyuj(YKHO, Wyuj):\n if Wyuj is None:\n raise ValueError('Invalid value for `creator`, must not be `None... | [
"0.72238004",
"0.6037545",
"0.5994627",
"0.59047586",
"0.59047586",
"0.59047586",
"0.5731607",
"0.56893694",
"0.527351",
"0.52653724",
"0.5229727",
"0.5189891",
"0.51533353",
"0.51364464",
"0.5135632",
"0.50766855",
"0.50457627",
"0.50236815",
"0.50152403",
"0.5010809",
"0.50... | 0.70400375 | 1 |
Set a creator/P170 claim for a known creator. | def msoQ(YKHO, GrWB, Aw2x, aC0l):
pOH2 = YKHO.wd.QtoItemPage(Aw2x)
YKHO.wd.addNewClaim(u'P170', BVQG.Statement(pOH2), GrWB, aC0l) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q8fX(YKHO, GrWB, VikP, aC0l):\n Suml = 'Q4233718'\n iOv1 = BVQG.Statement(YKHO.wd.QtoItemPage(Suml))\n if VikP:\n iOv1.addQualifier(BVQG.Qualifier(P=VikP['P'], itis=VikP['itis']))\n YKHO.wd.addNewClaim(u'P170', iOv1, GrWB, aC0l)",
"def Wyuj(YKHO, Wyuj):\n YKHO._creator = Wyuj",
"def W... | [
"0.66407",
"0.6478759",
"0.6437175",
"0.6437175",
"0.6437175",
"0.60733074",
"0.60618424",
"0.5639715",
"0.55911636",
"0.55337334",
"0.54880476",
"0.54795575",
"0.54784775",
"0.52961445",
"0.5265465",
"0.5250215",
"0.5235939",
"0.5224072",
"0.52082115",
"0.5203073",
"0.519699... | 0.76741564 | 0 |
Test that comparing a Commit to a number gives an error. | def zW69(YKHO):
with YKHO.assertRaises(TypeError):
YKHO.instance < 12 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def us7i(YKHO):\n YKHO.assertFalse(YKHO.instance < CbhI('f3ccd0b70fe758b539c28319735d9a6489c0fb10'))",
"def EGU3(YKHO):\n YKHO.assertTrue(YKHO.instance < CbhI('ede9c381daf318a87a58ed9607549132e150f145'))",
"def ZL_G(YKHO):\n pass",
"def M564(YKHO):\n YKHO.assertFalse(YKHO.instance == CbhI('f3ccd0... | [
"0.681696",
"0.6595572",
"0.64651245",
"0.6441211",
"0.61963636",
"0.6121472",
"0.6117242",
"0.60690445",
"0.6068011",
"0.6062101",
"0.6038362",
"0.600986",
"0.600986",
"0.59954476",
"0.5982048",
"0.5977618",
"0.5963366",
"0.5954761",
"0.59328043",
"0.59328043",
"0.59328043",... | 0.5552208 | 88 |
Test if a newer commit is not less then the instance. | def us7i(YKHO):
YKHO.assertFalse(YKHO.instance < CbhI('f3ccd0b70fe758b539c28319735d9a6489c0fb10')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EGU3(YKHO):\n YKHO.assertTrue(YKHO.instance < CbhI('ede9c381daf318a87a58ed9607549132e150f145'))",
"def HFd_(jzdc, Fg_i):\n return not uMEV(jzdc, Fg_i)",
"def uUF2(YKHO) -> bool:\n return YKHO._action == 'newer'",
"def HFd_(YKHO, E3oo):\n return YKHO._added < E3oo",
"def uMEV(jzdc, Fg_i):\n ... | [
"0.7746152",
"0.6399233",
"0.6245954",
"0.62316406",
"0.6211757",
"0.61369765",
"0.60966974",
"0.6093489",
"0.60454345",
"0.5971237",
"0.5944412",
"0.59143794",
"0.59143364",
"0.5904176",
"0.59009707",
"0.5880737",
"0.5877041",
"0.58610046",
"0.58382565",
"0.58244985",
"0.582... | 0.7683077 | 1 |
Reinitializes the weights of a given layer | def gbIn(YKHO, h7Vl):
kc1W = ZylS.contrib.framework.get_variables(h7Vl)
DbxN = ZylS.variables_initializer(kc1W)
YKHO.sess.run(DbxN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTi3(YKHO):\n ZylS.nest.map_structure(dIoi.WeightsInitializer.initialize_layer_or_model, YKHO._layer_nest)",
"def vB93(gEmA):\n lzjZ = gEmA.__class__.__name__\n if lzjZ.find('Conv') != -1:\n gEmA.weight.data.normal_(0.0, 0.02)\n elif lzjZ.find('BatchNorm') != -1:\n gEmA.weight.data.... | [
"0.77201146",
"0.7707208",
"0.76968217",
"0.7642865",
"0.75886583",
"0.7513413",
"0.75046635",
"0.745799",
"0.7447679",
"0.7416753",
"0.7395073",
"0.7389386",
"0.73675716",
"0.7324961",
"0.72788745",
"0.7222396",
"0.7214152",
"0.71888995",
"0.7171713",
"0.7171713",
"0.7151385... | 0.74599314 | 7 |
Compute the magnitude of the field. | def FOSW(Jyyj):
return oyIN.sqrt(oyIN.sum(Jyyj ** 2, axis=0, keepdims=True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return YKHO.real ** 2 + XTiz.inner(YKHO.pure, YKHO.pure)",
"def YXbZ(YKHO):\n return PZyS(YKHO.dot(YKHO))",
"def YXbZ(YKHO):\n return epAf.sqrt(Pusg(lambda WKvO, LVAh: WKvO + LVAh, [WKvO ** 2 for WKvO in YKHO.vector]))",
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y *... | [
"0.78958493",
"0.7819724",
"0.7622221",
"0.75933385",
"0.7461859",
"0.7372662",
"0.7372662",
"0.72682",
"0.7231113",
"0.69953483",
"0.69894916",
"0.6952739",
"0.6906011",
"0.6835235",
"0.683414",
"0.681529",
"0.67609596",
"0.675806",
"0.6703489",
"0.66821706",
"0.66479754",
... | 0.7085307 | 9 |
Compute the root mean square of the field. | def ii_g(Jyyj):
return oyIN.nanstd(Jyyj, axis=3, keepdims=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uXIl(hkxX):\n return fHeP.sqrt(p_07(hkxX))",
"def Ry2H(fUYa):\n y4m8 = fUYa ** 2\n YaTO = oyIN.sum(y4m8)\n ii_g = epAf.sqrt(len(fUYa) ** (-1) * YaTO)\n return ii_g",
"def S8vG(YKHO):\n KCHu = YKHO.sum()\n PYIQ = YKHO.flatten_shape(YKHO.shape)\n HBVb = zaZY.reduce(DjxU.mul, PYIQ, 1)\... | [
"0.7453015",
"0.71897036",
"0.6911831",
"0.67985654",
"0.67705065",
"0.6763532",
"0.67584527",
"0.6751884",
"0.67343915",
"0.6729531",
"0.6726054",
"0.66899604",
"0.6663132",
"0.66606396",
"0.6656032",
"0.6645968",
"0.6638511",
"0.6627513",
"0.6624689",
"0.66156745",
"0.65579... | 0.0 | -1 |
Compute the derivative of a field with respect to the xaxis. | def Gs82(Jyyj, NKcE=None):
if NKcE == None or NKcE == 'central':
nAB6 = Jyyj - Jyyj
nAB6[:, 1:-1] = (Jyyj[:, 2:] - Jyyj[:, :-2]) / Jyyj.dL / 2
nAB6[:, 0] = (Jyyj[:, 2] - 2 * Jyyj[:, 1] + Jyyj[:, 0]) / Jyyj.dL ** 2
nAB6[:, -1] = (Jyyj[:, -3] - 2 * Jyyj[:, -2] + Jyyj[:, -1]) / Jyyj.dL ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GVAm(YKHO, WKvO, LVAh):\n yqmv = YKHO.lowerBound(LVAh)\n zOxV = YKHO.func.derivativeX(WKvO - yqmv, LVAh)\n return zOxV",
"def lIt1(YKHO, WKvO: np.array) -> oyIN.array:\n pass",
"def GVAm(YKHO, WKvO, LVAh, epBp):\n yqmv = YKHO.lowerBound(LVAh)\n zOxV = YKHO.func.derivativeX(WKvO - yqmv, LV... | [
"0.7440254",
"0.7186431",
"0.70762146",
"0.6829919",
"0.6734729",
"0.6697652",
"0.66931677",
"0.6608272",
"0.6588263",
"0.6551362",
"0.6543324",
"0.6526889",
"0.6526889",
"0.6494436",
"0.64695245",
"0.64334613",
"0.64151376",
"0.6397129",
"0.63773316",
"0.6286732",
"0.6278945... | 0.66892534 | 7 |
Compute the derivative of a field with respect to the yaxis. | def lXfK(Jyyj, NKcE=None):
if NKcE == None or NKcE == 'central':
nAB6 = Jyyj - Jyyj
nAB6[:, :, 1:-1] = (Jyyj[:, :, 2:] - Jyyj[:, :, :-2]) / Jyyj.dL / 2
nAB6[:, :, 0] = (Jyyj[:, :, 2] - 2 * Jyyj[:, :, 1] + Jyyj[:, :, 0]) / Jyyj.dL ** 2
nAB6[:, :, -1] = (Jyyj[:, :, -3] - 2 * Jyyj[:, :,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mjQp(YKHO, LVAh):\n raise NotImplementedError()",
"def mjQp(YKHO, LVAh):\n return oyIN.dot(LVAh, oyIN.subtract(1.0, LVAh))",
"def j7TB(YKHO, WKvO, LVAh):\n yqmv, a40J = YKHO.lowerBound.eval_with_derivative(LVAh)\n mRiR = YKHO.func.derivativeY(WKvO - yqmv, LVAh) - a40J * YKHO.func.derivativeX(WK... | [
"0.75702286",
"0.7449167",
"0.7412104",
"0.72393024",
"0.70576465",
"0.69516337",
"0.66649383",
"0.66210926",
"0.6604702",
"0.6522235",
"0.6513144",
"0.6475875",
"0.64484954",
"0.63530046",
"0.6338029",
"0.63284683",
"0.62845695",
"0.6258141",
"0.6244466",
"0.62111884",
"0.61... | 0.6450686 | 12 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj):
tspZ = 0.001 * 0.1 ** (qtWj // 30)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.7913536",
"0.7906521",
"0.7849834",
"0.777524",
"0.77338326",
"0.77306354",
"0.7722718",
"0.77224237",
"0.771982",
"0.77092624",
"0.7693604",
"0.76742035",
"0.7665748",
"0.7665748",
"0.7665748",
"0.7655329",
"0.76419765",
"0.76399755",
"0.7637868",
"0.7626077",
"0.76247585... | 0.7621199 | 21 |
Returns the tpx labels for absolute values | def WpZT():
judR = ['tpx_all_abs', 'tpx_time_abs', 'tpx_duration_abs', 'tpx_set_abs', 'tpx_date_none_abs', 'tpx_date_full_abs', 'tpx_date_past_ref_abs', 'tpx_date_present_ref_abs', 'tpx_date_future_ref_abs']
return judR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ok1T():\n judR = WpZT()\n Zisc = bbiN()\n n_HW = K7VR()\n NVz_ = Ikxx()\n Crrw = jth9.copy(judR) + jth9.copy(Zisc) + jth9.copy(n_HW) + jth9.copy(NVz_)\n return Crrw",
"def Crrw(YKHO):\n return YKHO.label(YKHO.p_y_given_x)",
"def bbiN():\n Zisc = ['tpx_time_rel', 'tpx_duration_rel', ... | [
"0.6896252",
"0.6457872",
"0.62574464",
"0.61195236",
"0.6105629",
"0.6054358",
"0.60341495",
"0.5841535",
"0.58326703",
"0.58229655",
"0.5795569",
"0.5795569",
"0.5795569",
"0.5786497",
"0.5778579",
"0.57605565",
"0.5759446",
"0.5754277",
"0.5753458",
"0.5681255",
"0.5652885... | 0.7896187 | 0 |
Returns the tpx labels for proportional values | def K7VR():
n_HW = ['tpx_time_prop', 'tpx_duration_prop', 'tpx_set_prop', 'tpx_date_none_prop', 'tpx_date_full_prop', 'tpx_date_past_ref_prop', 'tpx_date_present_ref_prop', 'tpx_date_future_ref_prop']
return n_HW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ok1T():\n judR = WpZT()\n Zisc = bbiN()\n n_HW = K7VR()\n NVz_ = Ikxx()\n Crrw = jth9.copy(judR) + jth9.copy(Zisc) + jth9.copy(n_HW) + jth9.copy(NVz_)\n return Crrw",
"def Crrw(YKHO):\n return YKHO.label(YKHO.p_y_given_x)",
"def L7pN(YKHO):\n YKHO.labels = YKHO.labelingLVQ()\n fo... | [
"0.7370604",
"0.65740013",
"0.64317197",
"0.62459105",
"0.62047666",
"0.6136239",
"0.61158967",
"0.6086172",
"0.60789293",
"0.60454637",
"0.5983116",
"0.5980754",
"0.5890958",
"0.58616483",
"0.58392286",
"0.5824896",
"0.5799895",
"0.57981044",
"0.57965815",
"0.5789279",
"0.57... | 0.769221 | 0 |
Converts integer value into enumeration. | def wzqp(Emd4, BWXx: int) -> 'Enum':
if BWXx not in Emd4.tags():
raise ValueError(f'the following integer value is not defined within the enumeration: {str(BWXx)}')
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WOxh(YKHO, BWXx):\n if isinstance(BWXx, YKHO.enum_class):\n return BWXx\n BWXx = super(YKHO.__class__, YKHO).to_python(BWXx)\n if isinstance(BWXx, int):\n return YKHO.enum_class(BWXx)\n assert BWXx is None\n return None",
"def DB_h(YB8B: int, rYwg: cern.japc.value.EnumType) -> k7... | [
"0.68614554",
"0.6452594",
"0.6413445",
"0.6408221",
"0.6299187",
"0.62552184",
"0.61738443",
"0.6136661",
"0.6100885",
"0.60601926",
"0.6043841",
"0.60104376",
"0.59844506",
"0.5963049",
"0.5962964",
"0.59103715",
"0.59103715",
"0.5860371",
"0.58132535",
"0.57985497",
"0.579... | 0.79843813 | 0 |
Wrapper for dot product operation, in order to be compatible with both Theano and Tensorflow | def uYbU(WKvO, WZcn):
if nMvt.backend() == 'tensorflow':
return nMvt.squeeze(nMvt.dot(WKvO, nMvt.expand_dims(WZcn)), axis=-1)
else:
return nMvt.dot(WKvO, WZcn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKrh(n2Q1: torch.Tensor, SpII: torch.Tensor, PJWX: bool=False):\n assert n2Q1.size() == SpII.size(), 'Sizes for dot-product must match'\n return ohcp.dot_prod(n2Q1, SpII, PJWX)",
"def iVXA(jzdc, Fg_i):\n return oyIN.einsum('ijk,ikl->ijl', jzdc, Fg_i)",
"def BJ1H(jzdc, Fg_i):\n jzdc, Fg_i = (uM5... | [
"0.7651703",
"0.7612058",
"0.75893337",
"0.7534747",
"0.75176203",
"0.7497563",
"0.7466278",
"0.74372244",
"0.7428822",
"0.7417398",
"0.7380012",
"0.7374917",
"0.73432904",
"0.7331172",
"0.7310363",
"0.73097545",
"0.7274956",
"0.7270772",
"0.72633255",
"0.72409874",
"0.720415... | 0.7489667 | 9 |
Set's the plague's name. Leave blank to show the current name. | async def name(YKHO, OaeV, *, mWFP: str=None):
lKwY = await YKHO.config.plagueName()
if not mWFP:
Ol8d = f"The current plague's name is `{lKwY}`."
else:
await YKHO.config.plagueName.set(mWFP)
Ol8d = f"Set the current plague's name to `{mWFP}`."
await OaeV.send(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, L15R=''):\n YKHO.name = L15R",
"def Dokz(YKHO, Dokz):\n YKHO.name = Dokz",
"def lt1V(YKHO, mWFP):\n YKHO.__name = mWFP\n YKHO._window.chat_panel.place_name = mWFP\n YKHO.encode_message(action='NO', selected_name=mWFP)",
"def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP",
"def WZrJ... | [
"0.7628181",
"0.7382631",
"0.7328584",
"0.72631717",
"0.7243533",
"0.7239482",
"0.7239482",
"0.7120054",
"0.7120054",
"0.7120054",
"0.7120054",
"0.7120054",
"0.70931834",
"0.70257103",
"0.6998385",
"0.6998385",
"0.6988412",
"0.6978862",
"0.6973388",
"0.69595504",
"0.69595504"... | 0.82648855 | 0 |
Set the Plague Game infection rate. | async def rate(YKHO, OaeV: commands.Context, mVUw: hundred_int):
await YKHO.config.rate.set(mVUw)
await OaeV.send(f'The Plague Game rate has been set to {mVUw}%.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rp5a(YKHO):\n VOlW = YKHO.data.iloc[2, 0] - YKHO.data.iloc[1, 0]\n YKHO.rate = int(1 / VOlW)",
"def ZJGP(YKHO, T9qQ):\n pass",
"def HuEn(YKHO, mVUw):\n YKHO.recruit = int(oyIN.ceil(YKHO.INITIAL_POPULATION * mVUw))",
"def JzkK(YKHO):\n GfdN = ZbWC.search('[1-9][0-9]*', YKHO.ui.t_fps.text())... | [
"0.6537899",
"0.6476173",
"0.6194691",
"0.61277837",
"0.6122415",
"0.60193396",
"0.6016265",
"0.594481",
"0.58925945",
"0.58925945",
"0.58155185",
"0.5802125",
"0.5790754",
"0.56930536",
"0.56546116",
"0.56423604",
"0.56423604",
"0.5611345",
"0.55977356",
"0.559575",
"0.55957... | 0.73317456 | 0 |
Return true if user has access to the document. | def zKHw(YKHO, CBIr):
if YKHO.visibility == YKHO.PUBLIC:
return True
elif YKHO.visibility == YKHO.PRIVATE and YKHO.created_by == CBIr:
return True
elif YKHO.visibility in (YKHO.ORG_ONLY, YKHO.ORG_ONLY_NO_EXTERNAL):
if CBIr.external and YKHO.visibility == YKHO.ORG_ONLY_NO_EXTERNAL:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pn7U(YKHO):\n return YKHO.user_has_access(DW23.get_current_user())",
"def qHTF(YKHO, QePW, tTee):\n if QePW.method != 'POST':\n return True\n if 'privileged_access' not in QePW.data and 'document' in QePW.data:\n return False\n C13M = QePW.data['document']\n oEWO = QePW.data['pri... | [
"0.80368054",
"0.7762715",
"0.7668463",
"0.7591568",
"0.7519087",
"0.7514855",
"0.7510113",
"0.739244",
"0.73190254",
"0.726173",
"0.7239984",
"0.7184765",
"0.7182338",
"0.718063",
"0.7149214",
"0.7148742",
"0.71331215",
"0.71313983",
"0.7125082",
"0.7113898",
"0.7109396",
... | 0.7364114 | 8 |
Check `y` parameter for all transformers and adapt it if needed. | def T05j(YKHO, LVAh):
if LVAh is None:
raise ValueError('TSF transformers need to receive the time serie data as Y input.')
if not isinstance(LVAh, oyIN.ndarray):
LVAh = oyIN.array(LVAh)
if len(LVAh.shape) == 1:
LVAh = oyIN.array([LVAh])
return LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dSez(YKHO, EcVT, LVAh=...):\n ...",
"def dSez(YKHO, LVAh):\n YKHO.fit(LVAh)\n LVAh = YKHO.transform(LVAh)\n return LVAh",
"def dSez(YKHO, LVAh):\n return YKHO.fit(LVAh).transform(LVAh)",
"def Z3Po(YKHO, LVAh):\n nbok = super()._validate_y(LVAh)\n if isinstance(YKHO.sampling_strategy,... | [
"0.63571626",
"0.6329644",
"0.6256087",
"0.6239312",
"0.6186153",
"0.59435165",
"0.59435165",
"0.59166265",
"0.5913362",
"0.5913362",
"0.5907132",
"0.59030825",
"0.5894817",
"0.5869181",
"0.5860686",
"0.5860686",
"0.5849377",
"0.58461577",
"0.58354646",
"0.58160996",
"0.58151... | 0.5824808 | 19 |
Check `X` and `y` parameters for all transformers and adapt it if needed. | def M1JQ(YKHO, EcVT, LVAh):
LVAh = YKHO.check_consistent_y(LVAh)
EcVT = YKHO.check_consistent_X(EcVT)
return (EcVT, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dSez(YKHO, EcVT, LVAh=...):\n ...",
"def v53h(YKHO):\n assert all([hasattr(LAzb, 'fit') for LAzb in YKHO.transformer_list]), \"At least one transformer object is not compatible with 'fit' method.\"\n assert all([hasattr(LAzb, 'transform') for LAzb in YKHO.transformer_list]), \"At least one classifie... | [
"0.6721865",
"0.6456814",
"0.6238531",
"0.60539395",
"0.6052629",
"0.60452086",
"0.5953004",
"0.5923598",
"0.58932537",
"0.58851457",
"0.5880926",
"0.58474123",
"0.5804074",
"0.57910395",
"0.5766051",
"0.57233894",
"0.57233894",
"0.5717895",
"0.5717895",
"0.5714157",
"0.56982... | 0.0 | -1 |
Plot the estimated image after iteration q. | def ht9o(YKHO, LZpg, aNZO, vexM, iMGt=QrM1.cm.gray_r, Ew8X=True, n4wC=None):
if vexM == -1:
vexM = YKHO.N_itr - 1
try:
Ylbp = YKHO.image_ests[vexM]
except KeyError:
ydxT = YKHO.data['EM_data/{}/image_est'.format(vexM)].ravel()
Ylbp = hdzL(ydxT, YKHO.xs, YKHO.ys, YKHO.data['ds... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nMm0(YKHO, vexM, wytA=None):\n if vexM == -1:\n vexM = YKHO.N_itr - 1\n iCg1 = YKHO.data['EM_data/{}/time_steps'.format(vexM)]\n if wytA is None:\n wytA = (3.5, 5)\n LZpg, aNZO = QrM1.subplots(nrows=3, ncols=2, figsize=wytA)\n YKHO.plot_spikes(aNZO[1][0], iCg1 - 1, mode='ON')\n ... | [
"0.7050197",
"0.66024405",
"0.65898466",
"0.6437642",
"0.6433364",
"0.63560355",
"0.63489854",
"0.629037",
"0.62660635",
"0.6249372",
"0.62122965",
"0.6209293",
"0.6191247",
"0.61880225",
"0.6178075",
"0.6167758",
"0.6156939",
"0.61446995",
"0.61351365",
"0.6064277",
"0.60566... | 0.71788716 | 0 |
Plot the image with the neuron RF centers. | def Ip8G(YKHO, LZpg=None, aNZO=None, Dy_V=True, vexM=None, vqO2=0.5, iMGt=QrM1.cm.gray_r):
if LZpg is None:
LZpg, aNZO = QrM1.subplots(1, 1)
if vexM is None:
Jw7X, eUWA = (0.0, 0.0)
zuVY, wx6A = (YKHO.xr, YKHO.yr)
else:
Jw7X = YKHO.xr[vexM]
eUWA = YKHO.yr[vexM]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj9G(YKHO):\n YKHO.plotOfTF().plot()",
"def kj9G(YKHO):\n YKHO.plotsite()\n YKHO.plotbond()\n QrM1.show()",
"def kj9G(YKHO):\n YKHO.plotOfXray().plot()",
"def V6hz(YKHO):\n SNvb = YKHO.imageprepare(YKHO.image_path)\n NRS5 = YKHO.reshape_pixel_array(SNvb)\n QrM1.imshow(NRS5, interp... | [
"0.6807687",
"0.6468258",
"0.63203174",
"0.6291895",
"0.6288261",
"0.62856156",
"0.62714726",
"0.6244385",
"0.618934",
"0.61522084",
"0.61139596",
"0.6092988",
"0.6071771",
"0.6068946",
"0.6067372",
"0.60644674",
"0.60379404",
"0.60339534",
"0.6021741",
"0.60065997",
"0.60043... | 0.5786423 | 56 |
Eagerly load the training labels and data, reshaping data to have features in final dim. | def BtF1(YKHO, **B2fa):
if YKHO.mask_train:
NaUF = YKHO.add_mask()
nEB2 = {}
for H5ew, BWXx in B2fa.items():
if not YKHO.mask_train:
nEB2[H5ew] = BWXx.X_train.transpose('a', 'x', 'y', 'features').values
if YKHO.mask_train:
ycBG = BWXx.X_train.transpose('a', 'x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IWN0(S0S4, Ep8u):\n pmON, __n6 = X8Gn(training=True)\n nPrm = knSK.get_data(S0S4, dataset=__n6, path=pmON)\n bySB = [oyIN.array(WKvO[1]) for WKvO in nPrm]\n Crrw = oyIN.array([WKvO[0] for WKvO in nPrm])\n return F8Ht(bySB, Crrw, Ep8u)",
"def i9pi(YKHO):\n eK5b = LNo8.ImageDataGenerator()\n ... | [
"0.6668322",
"0.654929",
"0.65225536",
"0.6517502",
"0.6453421",
"0.6387107",
"0.63758844",
"0.6340945",
"0.6326373",
"0.629427",
"0.6278527",
"0.62583846",
"0.62561625",
"0.62543815",
"0.62326795",
"0.6217918",
"0.62119955",
"0.61870986",
"0.6181849",
"0.6149866",
"0.6145448... | 0.5989931 | 45 |
Retrain the compiled DL model, save the trained model, and save the history and metric information from training to ``self.dl_filedirectory``. | def BmWX(YKHO):
if YKHO.print_sequential:
print('Opening files...')
nPrm = YKHO.open_files()
if YKHO.print_sequential:
print('Generating training data and labels...')
ppBc, kkrV = YKHO.transpose_load_concat(**nPrm)
if YKHO.print_sequential:
print('Removing nans...')
ppBc,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n vauY = ht2j.load('model_lr_finder.pth.tar', map_location=YKHO.device)\n YKHO.model.load_state_dict(vauY['state_dict'])\n YKHO.optimizer.load_state_dict(vauY['optimizer'])\n YKHO.model.to(YKHO.device)\n YKHO.model.train()",
"def RnAA(YKHO, C3ST, nPrm, UXqs):\n FLXQ = C3ST.fit(x... | [
"0.67211753",
"0.6693274",
"0.6603331",
"0.6576942",
"0.647895",
"0.64555275",
"0.6449664",
"0.6387158",
"0.6311406",
"0.6302969",
"0.62941915",
"0.62839305",
"0.6272072",
"0.6254605",
"0.6252977",
"0.62327206",
"0.62091357",
"0.62080884",
"0.6155563",
"0.6139587",
"0.6128579... | 0.8312446 | 0 |
Mark a video as flagged. | def naBh(YKHO, DYeJ, Ji45=''):
print('flag_video needs implementation') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def naBh(YKHO, DYeJ, Ji45='Not supplied'):\n f6W2 = YKHO._video_library.get_video(DYeJ)\n if not f6W2:\n print('Cannot flag video: Video does not exist')\n return\n if f6W2.flag is not None:\n print('Cannot flag video: Video is already flagged')\n return\n f6W2.set_flag(Ji45... | [
"0.7585753",
"0.7543017",
"0.6934897",
"0.68738246",
"0.67508376",
"0.6579819",
"0.65071416",
"0.59914064",
"0.5956641",
"0.583062",
"0.5781579",
"0.5766682",
"0.57447886",
"0.57447886",
"0.57447886",
"0.57447886",
"0.56196725",
"0.5476563",
"0.54668385",
"0.53899056",
"0.535... | 0.7286989 | 3 |
Compute the output of the neural net given the input. The input has to be a ndarray of shape input_size or (input_size, N) where N is the batch_size. | def GvK6(YKHO, input):
for gEmA in YKHO.layers:
input = gEmA.compute(input)
return input | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SviG(YKHO, WbAn: np.ndarray) -> oyIN.ndarray:\n if WbAn.shape[0] != YKHO.input_layer_size:\n raise IndexError(f'Input data length is {WbAn.shape[0]}, must match length of input layer size {YKHO.input_layer_size}')\n Yuwc = oyIN.zeros(YKHO.hidden_layer_size, dtype=oyIN.float32)\n for G4DJ in ran... | [
"0.7471102",
"0.690292",
"0.65959746",
"0.6594167",
"0.655678",
"0.65384686",
"0.64864445",
"0.6464291",
"0.64630115",
"0.64605486",
"0.6455232",
"0.6454307",
"0.64344686",
"0.6419709",
"0.6382697",
"0.63661134",
"0.63661134",
"0.6358324",
"0.635055",
"0.63265884",
"0.6307754... | 0.6359508 | 17 |
Remove unwanted characters from filename. | def NVCy(YKHO, Ux0P):
return kSdD(Ux0P, YKHO.unwanted_chars_in_filenames) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VGqT(Ux0P):\n r3_g = [' ', ',', '+', '$', '_', '{', '}', '/', '&']\n FYKK = Ux0P\n for P9SZ in r3_g:\n FYKK = FYKK.replace(P9SZ, '')\n return FYKK",
"def mq9H(Ux0P):\n pj21 = {ord('?'): None, ord('*'): None, ord('/'): None, ord('\\\\'): None, ord(':'): None, ord('\"'): \"''\", ord('<'):... | [
"0.8398575",
"0.83859897",
"0.8350601",
"0.82670814",
"0.8205197",
"0.81188583",
"0.80649894",
"0.80484325",
"0.8015434",
"0.79582447",
"0.7895721",
"0.7838113",
"0.78226405",
"0.77994764",
"0.77861166",
"0.7675766",
"0.7651447",
"0.76467323",
"0.7586942",
"0.7478048",
"0.747... | 0.85275155 | 0 |
Close summary writer instance. | def fFx9(YKHO) -> None:
if YKHO.summary_writer is not None and isinstance(YKHO.summary_writer, x5pc):
YKHO.summary_writer.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO._closed = True\n YKHO._writer.close()",
"def DDI8(YKHO):\n YKHO.out_file.close()",
"def DDI8(YKHO):\n YKHO.file_out.close()",
"def DDI8(YKHO):\n if YKHO.__writer is not None:\n YKHO.__writer.close()",
"def DDI8(YKHO):\n YKHO.fout.close()",
"def DDI8(YKHO):\... | [
"0.6785186",
"0.6767773",
"0.66555554",
"0.6627166",
"0.6604468",
"0.6538984",
"0.6488689",
"0.6484089",
"0.64665776",
"0.64038444",
"0.6329559",
"0.6236305",
"0.6170235",
"0.6170235",
"0.6124325",
"0.6123393",
"0.6123393",
"0.61071444",
"0.6094225",
"0.6073233",
"0.60667455"... | 0.7943646 | 0 |
Extract the coordinates from a given object or explicitly given attrs The coordinates, latitude and longitude, are usually one point for the dataset, such as a mooring or a CTD cast, or a sequence of coordinates such as the alongtrack of a TSG. This function searches for the coordinates associated with a dataset. | def fcuU(YEnM, o8Kj=None, zDXA=None, _meG=None):
try:
return pDUl(YEnM, zDXA, _meG)
except LookupError:
pass
if o8Kj is not None:
try:
return pDUl(o8Kj, zDXA, _meG)
except LookupError:
pass
if hasattr(YEnM, 'attrs'):
try:
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mcvp(nPrm, id):\n return (nPrm[id]['lat'], nPrm[id]['lon'])",
"def bJlL(efw0: Iterable[GeoLocation]):\n return [(hksT['Latitude'], hksT['Longitude']) for hksT in efw0 if 'Latitude' in hksT and 'Longitude' in hksT]",
"def CyMj(YKHO, o8Kj):\n i8WE = ITS7.time()\n bo34.info('Rechunking coordinates... | [
"0.6373732",
"0.6198705",
"0.6006441",
"0.5999348",
"0.5999348",
"0.5923629",
"0.58764064",
"0.5726027",
"0.5660463",
"0.5617779",
"0.56094825",
"0.5589053",
"0.55710137",
"0.5530968",
"0.5509228",
"0.5503941",
"0.54544544",
"0.53860575",
"0.5365368",
"0.53450227",
"0.534449"... | 0.6902324 | 0 |
Limit variables in the plasma. | def hMcb(YKHO, sawX=100000000000.0, nVS2=1e+22, KRPk=0.001, Ys30=100.0):
YKHO.ne = oyIN.clip(YKHO.ne, sawX, nVS2)
YKHO.ni = oyIN.clip(YKHO.ni, sawX, nVS2)
YKHO.nn = oyIN.clip(YKHO.nn, sawX, nVS2)
YKHO.Te = oyIN.clip(YKHO.Te, KRPk, Ys30)
YKHO.Ti = oyIN.clip(YKHO.Ti, KRPk, Ys30) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qc8E(YKHO):\n CM1n = 'up99'\n X0pS = 'dn99'\n if YKHO.keywords.get('limit_type', '99per') == 'minmax':\n CM1n = 'max'\n X0pS = 'min'\n c5uu = {}\n X4io = False\n for IznC in SC2F.glob(Hy7s.path.join(YKHO.output_path, '*.nc')):\n with x3i3(IznC) as __n6:\n if 'M... | [
"0.5719771",
"0.5622539",
"0.5601838",
"0.55423576",
"0.551243",
"0.5498661",
"0.54273796",
"0.5407416",
"0.53361064",
"0.53361064",
"0.53361064",
"0.5289541",
"0.52448493",
"0.5229126",
"0.5220726",
"0.51361024",
"0.5129288",
"0.5123883",
"0.5099115",
"0.50677574",
"0.505175... | 0.6678111 | 0 |
Gets `freqscale` input of Klang. | def VO3O(YKHO):
d6pt = YKHO._ordered_input_names.index('freqscale')
return YKHO._inputs[d6pt] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xCb3():\n return UH90 / 2 / (Z2fh - 1)",
"def ZNLn(*qIxc, **B2fa):\n return nAU3.DC_GetUserScale(*qIxc, **B2fa)",
"def S0fF(YKHO):\n ...",
"def YFc_():\n AXMV = BfDw.run(XMeg).stdout.strip('\\n').replace(',', ' ')\n return AXMV",
"def Ope0(q8m3, zwEW, KaIg, Vb5F, kEjG):\n L1dM = 2 ** ... | [
"0.7665983",
"0.63172144",
"0.6219043",
"0.61471736",
"0.6142088",
"0.61237776",
"0.60949004",
"0.6057772",
"0.60247964",
"0.60243344",
"0.60016376",
"0.59972584",
"0.59762216",
"0.59656197",
"0.59504724",
"0.59082747",
"0.5897841",
"0.5895813",
"0.58680457",
"0.58477575",
"0... | 0.7947428 | 0 |
Init a Graph instance given edges. If edges are not given, init an empty graph. | def FIMM(YKHO, mC4V=None, Zh7o=False):
YKHO._graph = oRi_(dict)
YKHO._directed = Zh7o
if mC4V:
YKHO.add_edges(mC4V) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mC4V=None, Ziit=None, pNZh=None):\n YKHO.edges = mC4V\n YKHO.nodes = Ziit\n YKHO.graph = pNZh",
"def ZqyB(YKHO):\n YKHO.G = jHsn.Graph()\n YKHO.G.add_nodes_from([1, 2, 3, 4, 5])\n YKHO.G.add_edges_from([(1, 2), (2, 3), (2, 4), (2, 5), (3, 4), (4, 5)])",
"def GsUR(YKHO, Ziit, mC... | [
"0.7907357",
"0.6808131",
"0.67216235",
"0.6699312",
"0.6667479",
"0.66645825",
"0.6662588",
"0.6642915",
"0.66428787",
"0.6579253",
"0.65648687",
"0.6482207",
"0.6468058",
"0.64353323",
"0.6398501",
"0.63427716",
"0.6305664",
"0.6284647",
"0.6273636",
"0.6197751",
"0.6172768... | 0.7776141 | 1 |
Add directed or bidirected edge between node1 and node2. If the edge already exists, update the edge weight. | def H2v5(YKHO, i4Va, rUTj, upAO=1.0):
YKHO._graph[i4Va][rUTj] = upAO
if not YKHO._directed:
YKHO._graph[rUTj][i4Va] = upAO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, MxXY, cWFu, upAO=0):\n YKHO.add_node(MxXY)\n YKHO.add_node(cWFu)\n if cWFu in YKHO.node_dict[MxXY]:\n raise ValueError('Edge already exists')\n YKHO.node_dict[MxXY][cWFu] = upAO",
"def CiGh(YKHO, i4Va, rUTj, upAO=1):\n if i4Va and rUTj in YKHO._adjacency_list:\n YKHO._... | [
"0.86090434",
"0.8333767",
"0.8301639",
"0.828959",
"0.828264",
"0.81178445",
"0.80472666",
"0.8043774",
"0.8040117",
"0.7990929",
"0.7932589",
"0.7916668",
"0.78177065",
"0.7774829",
"0.77719915",
"0.7656922",
"0.7613943",
"0.76099795",
"0.7569731",
"0.7548905",
"0.75448614"... | 0.7621384 | 16 |
Return all nodes in the graph as a set. | def Ziit(YKHO):
Ziit = []
for H5ew, wEf2 in YKHO._graph.items():
Ziit.append(H5ew)
Ziit.extend([Ty9i for Ty9i in wEf2.keys() if Ty9i not in Ziit])
return set(Ziit) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO):\n return list(set(YKHO._graph.keys() + [WKvO for WKvO in Hs6x.chain.from_iterable(YKHO._graph.values())]))",
"def gcH_(YKHO):\n return set(YKHO.nodeset)",
"def Ziit(YKHO):\n return set(YKHO.values())",
"def AyQV(YKHO):\n vdGF = set()\n for BWXx in YKHO._name:\n vdGF.add(... | [
"0.8234579",
"0.8215675",
"0.79805046",
"0.77652586",
"0.76267713",
"0.7593721",
"0.7529319",
"0.74176335",
"0.7375266",
"0.73243386",
"0.73047864",
"0.72664815",
"0.7217121",
"0.721464",
"0.70989513",
"0.70616",
"0.70616",
"0.70489573",
"0.70397997",
"0.70312285",
"0.6972851... | 0.79107106 | 3 |
Return all adjacent nodes in the graph of a given node. If the node is not in the graph, an empty set will be returned. | def PXZw(YKHO, Q6kx):
l5ZH = set(YKHO._graph[Q6kx].keys())
if not l5ZH:
YKHO.remove(Q6kx, remove_edges_only=True)
return l5ZH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i3sr(YKHO, Q6kx: Node) -> fHNa[o7DN]:\n return YKHO._neighbors[Q6kx].copy()",
"def g43o(YKHO, Q6kx):\n vdGF = set()\n for d6pt, U6D_ in enumerate(YKHO._adjmatrix[YKHO._name.index(Q6kx)]):\n if U6D_:\n vdGF.add(YKHO._name[d6pt])\n return vdGF",
"def _oyN(YKHO, Q6kx):\n retur... | [
"0.74123037",
"0.7214495",
"0.69414246",
"0.68861103",
"0.67288274",
"0.6577851",
"0.65467346",
"0.653652",
"0.64346504",
"0.64225644",
"0.6359586",
"0.6329879",
"0.63194704",
"0.6310771",
"0.6307396",
"0.6286142",
"0.6253437",
"0.6240762",
"0.62090874",
"0.61901444",
"0.6162... | 0.79109585 | 0 |
Initialize a CNOTDihedral operator object. | def FIMM(YKHO, nPrm: CNOTDihedral | QuantumCircuit | Instruction | None=None, sogq: int | None=None, xzCw: bool=True):
if sogq:
YKHO._num_qubits = sogq
YKHO.poly = EjdR(YKHO._num_qubits)
YKHO.linear = oyIN.eye(YKHO._num_qubits, dtype=oyIN.int8)
YKHO.shift = oyIN.zeros(YKHO._num_qubit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, khtY, XQPR, VTEt):\n zskP.__init__(YKHO)\n YKHO.op = khtY\n YKHO.expression1 = XQPR\n YKHO.expression2 = VTEt",
"def AofD(YKHO, DPNn):\n if not isinstance(DPNn, (Rv0t, udu8)):\n raise eP6a('Input must be a QuantumCircuit or Instruction')\n LihS = Acbe(num_qubits=YKHO._num_... | [
"0.60210705",
"0.6009914",
"0.5863902",
"0.5861921",
"0.5859795",
"0.5831668",
"0.5749515",
"0.571036",
"0.570902",
"0.567959",
"0.565492",
"0.562223",
"0.5615621",
"0.5614811",
"0.561222",
"0.56040686",
"0.5602085",
"0.5577438",
"0.55564964",
"0.55553794",
"0.5530209",
"0.... | 0.6032015 | 0 |
Unique string identifier for operation type. | def mWFP(YKHO):
return 'cnotdihedral' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H_p6(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'operation_id')",
"def xlak(Emd4, khtY):\n return type(khtY).__name__",
"def MV0m(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'operation_type')",
"def ShR8(YKHO):\n return YKHO._type",
"def vdp_(YKHO):\n H_p6 = YKHO.yaml_parse... | [
"0.69974273",
"0.6985285",
"0.69820863",
"0.6894799",
"0.6811279",
"0.67129385",
"0.6630601",
"0.6598833",
"0.6596271",
"0.65912664",
"0.65765226",
"0.65315366",
"0.6509212",
"0.64632875",
"0.6416627",
"0.64048076",
"0.63964814",
"0.63964814",
"0.63964814",
"0.63964814",
"0.6... | 0.0 | -1 |
Apply a CX gate to this element. Left multiply the element by CX(i, j). | def DvUm(YKHO, YRbF, r845):
if not 0 <= YRbF < YKHO.num_qubits or not 0 <= r845 < YKHO.num_qubits:
raise eP6a('CX qubits are out of bounds.')
YKHO.linear[r845] = (YKHO.linear[YRbF] + YKHO.linear[r845]) % 2
YKHO.shift[r845] = (YKHO.shift[YRbF] + YKHO.shift[r845]) % 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UqrD(YKHO, cPnd):\n YKHO.apply_gate_operation(TSLW.ops.CX, cPnd)",
"def nrOS(YKHO, WKvO):\n if YKHO.dropout > 0:\n WKvO = ZsLl.dropout_op(WKvO, 1 - YKHO.dropout)\n WKvO = ZsLl.matmul_op(WKvO, YKHO.weight)\n tO9_ = WKvO + ZsLl.broadcastto_op(YKHO.bias, WKvO)\n WKvO = ZsLl.csrmm_op(YKHO.m... | [
"0.630172",
"0.55143523",
"0.5318893",
"0.52920705",
"0.5229278",
"0.52088296",
"0.5181431",
"0.51400846",
"0.5133389",
"0.51253676",
"0.5125028",
"0.5124258",
"0.50962716",
"0.50914264",
"0.50914264",
"0.50852555",
"0.5066616",
"0.50499827",
"0.50337887",
"0.50214434",
"0.49... | 0.55816364 | 1 |
Return a Gate instruction implementing the CNOTDihedral object. | def Gqga(YKHO):
return YKHO.to_circuit().to_gate() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return 'cnotdihedral'",
"def XP9h(YKHO):\n from qiskit.synthesis.cnotdihedral import synth_cnotdihedral_full\n return synth_cnotdihedral_full(YKHO)",
"def WarC(YKHO):\n return YKHO._gate_logic",
"def AofD(YKHO, DPNn):\n if not isinstance(DPNn, (Rv0t, udu8)):\n raise eP... | [
"0.654134",
"0.6159482",
"0.5539059",
"0.5284799",
"0.5219212",
"0.52119976",
"0.5167287",
"0.51612526",
"0.51273036",
"0.5092963",
"0.50870794",
"0.5044816",
"0.4981318",
"0.49812052",
"0.49448925",
"0.49229518",
"0.490348",
"0.49012855",
"0.48829442",
"0.48794165",
"0.48783... | 0.6277051 | 1 |
Convert to an Operator object. | def XGol(YKHO) -> uS0y:
return uS0y(YKHO.to_instruction()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ijrG(YKHO):\n raise NotImplementedError",
"def a8Pe(YKHO, seET: OperatorBase) -> wj6r:\n from ..evolutions.evolved_op import EvolvedOp\n if isinstance(seET, XUHl):\n if isinstance(seET, CwhJ) and all([isinstance(khtY, FYCB) for khtY in seET.oplist]):\n return YKHO.group_subops(seET... | [
"0.7314822",
"0.70962125",
"0.68901265",
"0.68216527",
"0.655981",
"0.6526954",
"0.6446311",
"0.6419526",
"0.62623423",
"0.6236161",
"0.6225145",
"0.61160827",
"0.60868067",
"0.59478796",
"0.5909923",
"0.58929354",
"0.5803807",
"0.5733097",
"0.56855446",
"0.5625735",
"0.56253... | 0.8329919 | 0 |
return abs path of module's directory | def IYmn(YKHO):
return Hy7s.path.join(YKHO._module.workspace, YKHO._module.module_cvspath) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MJH2():\n return Hy7s.path.dirname(QMSQ(xAKo, HwRy.getfilesystemencoding()))",
"def H5Mn():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))",
"def tXNQ(qaEx):\n return Hy7s.path.dirname(Hy7s.path.realpath(qaEx))",
"def WJI7(yR_P):\n return oAb3.Path(Hy7s.path.dirname(Hy7s.path.abspath(tq... | [
"0.8254426",
"0.8125783",
"0.80325514",
"0.7845504",
"0.78311765",
"0.7777206",
"0.7733997",
"0.77049303",
"0.7638604",
"0.7599676",
"0.7500204",
"0.7491217",
"0.74866754",
"0.7452219",
"0.74370754",
"0.7406202",
"0.74029994",
"0.73924786",
"0.7362808",
"0.73421204",
"0.73302... | 0.0 | -1 |
Compares EvalItem objects. Checks if self has less (or equal) genes, but better (or at least similar result). | def _WdZ(YKHO, Elif: 'EvalItem') -> bool:
return YKHO.size <= Elif.size and Elif.result <= YKHO.result | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V622(YKHO):\n if YKHO.__genes_test is None or YKHO.__fitness_test is None:\n raise ValueError('Test values should not be None.')\n if YKHO.__fitness_test < YKHO.__fitness:\n YKHO.genes = YKHO.__genes_test\n YKHO.__fitness = YKHO.__fitness_test\n YKHO.__genes_test = None\n ... | [
"0.60385275",
"0.6037134",
"0.5864756",
"0.5822088",
"0.57959324",
"0.57649183",
"0.5657762",
"0.56092143",
"0.5561726",
"0.5561385",
"0.55514026",
"0.5547464",
"0.55369115",
"0.5529964",
"0.5518938",
"0.5494191",
"0.5491489",
"0.5477876",
"0.5474787",
"0.54617405",
"0.545531... | 0.6976804 | 0 |
Extracts episodes list of a series. | def zxsq(m9uV, MBoS, KV1g=False, N7Do=None):
fOsy = G4JS.get(MBoS).text
Z9JV = rKuS(fOsy, 'lxml')
vo1p = ''
hEO5 = ''
rBjE = len(Z9JV.find(id='bySeason').find_all('option')) + 1
for qqDt in range(1, rBjE):
v8Ql = MBoS + '?season=' + str(qqDt)
fOsy = G4JS.get(v8Ql).text
Z9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KULu(YKHO):\n KULu = []\n for dy_H in YKHO.series:\n KULu.extend(dy_H.episodes)\n return KULu",
"def hFDr(YKHO):\n return [CcuX for CcuX in j2k1.objects.filter(series=YKHO)]",
"def KULu(YKHO):\n KULu = []\n for qqDt in YKHO.seasons:\n KULu.extend(qqDt.episodes)\n return K... | [
"0.8180665",
"0.77799803",
"0.764737",
"0.70763695",
"0.7039987",
"0.6979854",
"0.69421047",
"0.69209945",
"0.68453395",
"0.679682",
"0.6651206",
"0.65845966",
"0.6534319",
"0.6522302",
"0.6474611",
"0.6417491",
"0.6410377",
"0.6360032",
"0.62862295",
"0.62570786",
"0.6154105... | 0.5454541 | 75 |
Returns a copy of the open transactions list. | def l_VT(YKHO):
return YKHO.__open_transactions[:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gQVK(YKHO):\n return jth9.deepcopy(YKHO._transactions)",
"def gQVK(YKHO):\n return UShr.Transactions(YKHO)",
"def kiSh(YKHO):\n YKHO._update()\n with YKHO.all_tx_lock:\n rxTR = jth9.deepcopy(YKHO._all_transactions)\n return rxTR",
"def s4yv(YKHO):\n YKHO._update()\n with YKHO.... | [
"0.74073327",
"0.69930035",
"0.6982965",
"0.67889047",
"0.67787904",
"0.6553464",
"0.64532",
"0.6304627",
"0.62987214",
"0.6267927",
"0.6201191",
"0.61947536",
"0.61570275",
"0.61521894",
"0.6120035",
"0.6119235",
"0.61105096",
"0.59384155",
"0.59369034",
"0.5926564",
"0.5923... | 0.82025146 | 0 |
Returns a copy of the open chipsactions list. | def BCcp(YKHO):
return YKHO.__open_chipsactions[:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PESr(YKHO):\n return YKHO._chips",
"def c38Z(YKHO):\n assert not (YKHO._deleted and YKHO._new)\n sUWz = GsE6.now()\n t76p = []\n if YKHO._deleted:\n t76p.append({'action': wlcv, 'path': YKHO._chip_path(), 'value': {}, 'time': sUWz})\n elif YKHO._new:\n t76p.append({'action': b... | [
"0.63576806",
"0.62891483",
"0.6273887",
"0.62653565",
"0.6210261",
"0.5960292",
"0.5945517",
"0.5938602",
"0.59367687",
"0.5871798",
"0.5871798",
"0.58629596",
"0.5763202",
"0.5763202",
"0.5763202",
"0.57266444",
"0.5723594",
"0.5708961",
"0.5692077",
"0.5691463",
"0.5682342... | 0.8577128 | 0 |
Returns the last value of the current blockchain. | def POIE(YKHO):
if len(YKHO.__chain) < 1:
return None
return YKHO.__chain[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def POIE():\n return P2Mq[-1]",
"def CUs1():\n return P2Mq[-1]",
"def ryl4(YKHO):\n if len(YKHO.__chain) < 1:\n return None\n return YKHO.__chain[-1]",
"def POIE():\n if len(P2Mq) < 1:\n return None\n return P2Mq[-1]",
"def POIE():\n if len(P2Mq) < 1:\n return None... | [
"0.9384939",
"0.9372068",
"0.91123897",
"0.9008081",
"0.9004173",
"0.89812165",
"0.8174881",
"0.81667095",
"0.80762106",
"0.7772129",
"0.77565527",
"0.76207167",
"0.7565783",
"0.7550907",
"0.7512734",
"0.7454145",
"0.741592",
"0.7406254",
"0.73910964",
"0.73910964",
"0.737972... | 0.91086453 | 6 |
Return a list of all connected peer nodes. | def o5j8(YKHO):
return list(YKHO.__peer_nodes) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k1xm(YKHO):\n return YKHO.client.call('GET', YKHO.name + 'peer-list/all')",
"def ElQ0(YKHO):\n return YKHO.client.call('GET', YKHO.name + 'peer-list/reachable')",
"def aAQH(YKHO):\n return YKHO.ironic_client.node.list()",
"def qmh8(YKHO):\n return YKHO.nodes",
"def CDNe(YKHO):\n return Y... | [
"0.7392213",
"0.70041364",
"0.69801885",
"0.69239604",
"0.6883451",
"0.6803804",
"0.6792793",
"0.6770912",
"0.6726549",
"0.66532004",
"0.6605565",
"0.658651",
"0.6585198",
"0.65564847",
"0.6541461",
"0.6538914",
"0.6531504",
"0.653033",
"0.65255666",
"0.64994526",
"0.64958656... | 0.8496255 | 0 |
reshape an image and pad it while keeping the ratio. | def qv3v(LNo8: np.ndarray, SFa2: Union[List[int], Tuple[int]]):
GhuM = LNo8.shape[:2]
PlWA = float(SFa2[1]) / GhuM[1]
JOX7 = float(SFa2[0]) / GhuM[0]
dMYj = min(PlWA, JOX7)
XqwL = tuple([int(WKvO * dMYj) for WKvO in GhuM])
m2t4 = XC5k.resize(LNo8, (XqwL[1], XqwL[0]))
Ruav = SFa2[1] - XqwL[1]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vQP0(YKHO, VXjJ: ndarray, GUum: int=10) -> gyIm:\n YKHO.padded_img = oyIN.zeros((VXjJ.shape[0] + GUum * 2, VXjJ.shape[1] + GUum * 2))\n YKHO.padded_img[GUum:-GUum, GUum:-GUum] = VXjJ\n return YKHO.padded_img",
"def G315(YKHO, dixj):\n GTgG = YKHO.pad_val.get('img', 0)\n for H5ew in dixj.get('i... | [
"0.671313",
"0.65869385",
"0.65226316",
"0.64735305",
"0.6429868",
"0.6426964",
"0.63919014",
"0.63753116",
"0.6356884",
"0.63436484",
"0.63273036",
"0.6303279",
"0.62877494",
"0.6265354",
"0.62513965",
"0.62240124",
"0.6218474",
"0.61861354",
"0.6163912",
"0.61282444",
"0.61... | 0.73125803 | 0 |
Return the very original `Task` that this `Task` had overridden. If this task has been overridden multiple times, this will return the very first/original task. Return `self` if the task was not overridden | def qeMD(YKHO):
if hasattr(YKHO, 'orig'):
return YKHO.orig.root_orig
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D5gV(YKHO) -> rvDU.BaseTask:\n return YKHO._task",
"def WWS5():\n return n2K3[0] if len(n2K3) != 0 else None",
"def eJh7(YKHO):\n return YKHO._original",
"def eJh7(YKHO):\n return YKHO._original",
"def gRam(YKHO):\n YKHO.activeWindow().previousTask()",
"def IJBb(YKHO):\n return YKHO... | [
"0.64324754",
"0.60787785",
"0.59293354",
"0.59293354",
"0.57849663",
"0.5709106",
"0.57029593",
"0.5698762",
"0.5698762",
"0.5698762",
"0.5698762",
"0.5698762",
"0.56857145",
"0.5660207",
"0.5645483",
"0.56320506",
"0.5515284",
"0.5401499",
"0.5384192",
"0.53704864",
"0.5328... | 0.0 | -1 |
Constructor region the AWS region name bucket the S3 bucket name. The bucket gets created if it does not exist. keyPrefix the S3 key prefix to be used for each log export to S3, e.g., logs/ where is the name of the CloudFormation stack associated with the root template for a given deployment. The root stack name is uni... | def FIMM(YKHO, zn0c=None, WE7e=None, _dRp='logs', lLIo=None):
object.__init__(YKHO)
if not zn0c:
raise OuSo('The AWS region name must be provided.')
YKHO.region = zn0c
if not WE7e:
raise OuSo('The S3 bucket name for the exported logs must be provided.')
YKHO.bucket = WE7e
YKHO.ke... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, cFqg: Optional[str]=None, Iv71: Optional[str]=None):\n if cFqg is not None:\n qe4Y.set(Ro_8, 's3_bucket_name', cFqg)\n if Iv71 is not None:\n qe4Y.set(Ro_8, 's3_key_prefix', Iv71)",
"def DiQD(l7rj, n527, XmI_, zn0c=None):\n try:\n if zn0c is None:\n kZdy... | [
"0.6942516",
"0.6357444",
"0.61786485",
"0.6134088",
"0.6061361",
"0.60233086",
"0.5989732",
"0.5954416",
"0.5937549",
"0.5927632",
"0.586492",
"0.58465475",
"0.5837934",
"0.57873744",
"0.57865876",
"0.5766515",
"0.571961",
"0.56968075",
"0.5684547",
"0.56679547",
"0.56624395... | 0.80993795 | 0 |
Predict movement of game controler where is epsilon probability randomly move. | def z2mi(YKHO, nPrm, _hZ2):
crly = YKHO.model.predict(nPrm, batch_size=1)
BahE = oyIN.argmax(crly)
V4rn = oyIN.random.random()
if V4rn < _hZ2:
BahE = oyIN.random.randint(0, KPX9)
return (BahE, crly[0, BahE]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z2mi(YKHO, nPrm, _hZ2):\n crly = YKHO.model.predict(nPrm.reshape(1, 84, 84, hESH), batch_size=1)\n BahE = oyIN.argmax(crly)\n V4rn = oyIN.random.random()\n if V4rn < _hZ2:\n BahE = oyIN.random.randint(0, KPX9)\n return (BahE, crly[0, BahE])",
"def MLjQ(YKHO):\n YKHO.__steps += 1\n ... | [
"0.69462216",
"0.6196142",
"0.6062116",
"0.60579133",
"0.6046149",
"0.59867793",
"0.5935718",
"0.5925391",
"0.5916562",
"0.58774805",
"0.58399194",
"0.5835668",
"0.58135206",
"0.58135206",
"0.5780464",
"0.5778295",
"0.5770455",
"0.57525134",
"0.57474387",
"0.57465005",
"0.574... | 0.7030055 | 0 |