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 |
|---|---|---|---|---|---|---|
List collections Display a list of existing collections. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def list(YKHO, **B2fa):
B2fa['_return_http_data_only'] = True
if B2fa.get('callback'):
return YKHO.list_with_http_info(**B2fa)
else:
nPrm = YKHO.list_with_http_info(**B2fa)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g760():\n g760 = FYrf.Collection.query.all()\n if not g760:\n eTsH(404)\n geh0 = {'collections': [Z9rn.dictionary() for Z9rn in g760]}\n return pz3A(geh0)",
"def g760(YKHO):\n YKHO.fetch_collections()\n return YKHO._collection_names",
"async def list_collections(YKHO):\n try:\n ... | [
"0.687399",
"0.6670072",
"0.65718067",
"0.6497074",
"0.6462622",
"0.6398085",
"0.6235848",
"0.61633456",
"0.6152709",
"0.5926859",
"0.5909252",
"0.5888537",
"0.57888347",
"0.57332945",
"0.5718907",
"0.5655634",
"0.559593",
"0.5558346",
"0.5372456",
"0.5315632",
"0.528751",
... | 0.0 | -1 |
List collections Display a list of existing collections. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def jszY(YKHO, **B2fa):
HhGF = []
HhGF.append('callback')
HhGF.append('_return_http_data_only')
HhGF.append('_preload_content')
HhGF.append('_request_timeout')
NArs = locals()
for H5ew, wEf2 in BVGD(NArs['kwargs']):
if H5ew not in HhGF:
raise TypeError("Got an unexpected ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g760():\n g760 = FYrf.Collection.query.all()\n if not g760:\n eTsH(404)\n geh0 = {'collections': [Z9rn.dictionary() for Z9rn in g760]}\n return pz3A(geh0)",
"def g760(YKHO):\n YKHO.fetch_collections()\n return YKHO._collection_names",
"async def list_collections(YKHO):\n try:\n ... | [
"0.68751884",
"0.6670905",
"0.6572735",
"0.64980125",
"0.63992363",
"0.6236276",
"0.61640674",
"0.6154084",
"0.59264326",
"0.59097755",
"0.5889103",
"0.57901573",
"0.5735336",
"0.5720144",
"0.565685",
"0.55974907",
"0.55583745",
"0.5374072",
"0.5315794",
"0.52878034",
"0.5251... | 0.6463537 | 4 |
List collection status Display status information about an existing collection. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def jGRS(YKHO, EZ2Z, **B2fa):
B2fa['_return_http_data_only'] = True
if B2fa.get('callback'):
return YKHO.status_with_http_info(EZ2Z, **B2fa)
else:
nPrm = YKHO.status_with_http_info(EZ2Z, **B2fa)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UKnT(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('data_collection_status'), B2fa)",
"def UfoT(YKHO, **B2fa):\n HhGF = []\n HhGF.append('callback')\n HhGF.append('_return_http_data_only')\n HhGF.append('_preload_content')\n HhGF.append('_request_timeout')\n NArs = l... | [
"0.7318824",
"0.7295206",
"0.7102955",
"0.65757906",
"0.648761",
"0.63682735",
"0.6271686",
"0.61010176",
"0.5650195",
"0.5554575",
"0.55134416",
"0.5458567",
"0.5368529",
"0.52405345",
"0.5231259",
"0.51703393",
"0.51604354",
"0.515305",
"0.5146796",
"0.514557",
"0.5134877",... | 0.7648862 | 0 |
List collection status Display status information about an existing collection. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def iXkP(YKHO, EZ2Z, **B2fa):
HhGF = ['collection_id']
HhGF.append('callback')
HhGF.append('_return_http_data_only')
HhGF.append('_preload_content')
HhGF.append('_request_timeout')
NArs = locals()
for H5ew, wEf2 in BVGD(NArs['kwargs']):
if H5ew not in HhGF:
raise TypeErro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO, EZ2Z, **B2fa):\n B2fa['_return_http_data_only'] = True\n if B2fa.get('callback'):\n return YKHO.status_with_http_info(EZ2Z, **B2fa)\n else:\n nPrm = YKHO.status_with_http_info(EZ2Z, **B2fa)\n return nPrm",
"def UKnT(YKHO, **B2fa):\n return YKHO.api_request(YKHO._ge... | [
"0.76498777",
"0.7320169",
"0.72965443",
"0.65744203",
"0.64882004",
"0.63670534",
"0.62746984",
"0.60993844",
"0.56501114",
"0.5556244",
"0.5510795",
"0.5457642",
"0.5371547",
"0.5237347",
"0.5229406",
"0.5170643",
"0.5160109",
"0.5157322",
"0.5149478",
"0.51472837",
"0.5138... | 0.7105015 | 3 |
Normalize all embedding vectors. | def NkkI(YKHO):
YKHO.desc += ', normalize'
YKHO._vecs /= oyIN.linalg.norm(YKHO._vecs, axis=1)[:, oyIN.newaxis]
YKHO.reindex() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO):\n YKHO._vectors = [iArr.normalized() for iArr in YKHO._vectors]",
"def eU3X(YKHO):\n YKHO.vectors /= oyIN.linalg.norm(YKHO.vectors, axis=1).reshape(-1, 1)\n for YRbF, iArr in enumerate(YKHO.real_vectors):\n iArr.set(YKHO.vectors[YRbF])",
"def NkkI(YKHO):\n YKHO.number_of_vect... | [
"0.83022803",
"0.8190909",
"0.76430595",
"0.7528466",
"0.7522329",
"0.7250075",
"0.7131215",
"0.70423526",
"0.70193696",
"0.70022327",
"0.69961923",
"0.69843614",
"0.68938184",
"0.6850721",
"0.68306935",
"0.68139774",
"0.6787083",
"0.6719784",
"0.67014503",
"0.67006713",
"0.6... | 0.7572883 | 3 |
Inits a community op for validation and processing. | def FIMM(YKHO, ehDb, _c1T):
YKHO.date = _c1T
YKHO.valid = False
YKHO.action = None
YKHO.op = None
YKHO.actor = ehDb
YKHO.actor_id = None
YKHO.community = None
YKHO.community_id = None
YKHO.account = None
YKHO.account_id = None
YKHO.permlink = None
YKHO.post_id = None
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, MCgj, l2wo, HttX, yxoB):\n YKHO.evo_conf = MCgj\n YKHO.net_conf = l2wo\n YKHO.obs_shape = HttX\n YKHO.action_shape = yxoB\n YKHO.n_agents = YKHO.evo_conf['n_agents']\n YKHO.p_mut_loc = YKHO.evo_conf['p_mut_loc']\n YKHO.k_p_mut = YKHO.evo_conf['k_p_mut']\n YKHO.minval = YKHO.e... | [
"0.5946777",
"0.58446604",
"0.5822245",
"0.5821072",
"0.5739244",
"0.5703562",
"0.5647407",
"0.5594654",
"0.5584765",
"0.5563906",
"0.5560737",
"0.55473965",
"0.5546222",
"0.5529387",
"0.5528188",
"0.5517544",
"0.5511102",
"0.55073804",
"0.5505127",
"0.5500903",
"0.54945",
... | 0.0 | -1 |
Get the environment variable that shows where a Rez package lives ondisk. | def loQ5(mWFP):
return 'REZ_{name}_ROOT'.format(name=mWFP.upper()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YkPL():\n return P1ba.GetEncodedValue(Hy7s.environ, 'PATH')",
"def pmON(YKHO):\n yQ5z = qpDA.getsitepackages()[0]\n return f'{yQ5z}/{MS8o}'",
"def fREG():\n return Hy7s.path.join(Hy7s.path.expanduser('~'))",
"def SwyF(YKHO):\n Hv5w = Hy7s.getenv('DISPASS_LABELFILE')\n Mbet = Hy7s.getenv... | [
"0.6655901",
"0.65827096",
"0.6528853",
"0.6505154",
"0.6501025",
"0.6441061",
"0.6440439",
"0.64317113",
"0.64275205",
"0.6423109",
"0.64148045",
"0.6382649",
"0.63643265",
"0.63437146",
"0.63311845",
"0.6327205",
"0.63137686",
"0.63108826",
"0.630365",
"0.6297852",
"0.62862... | 0.0 | -1 |
Computes the accuracy over the k top predictions for the specified values of k | def hf4H(YKHO, hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)",
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\... | [
"0.8330957",
"0.8284237",
"0.82376367",
"0.8229314",
"0.8219836",
"0.81859726",
"0.8184298",
"0.8174704",
"0.8170969",
"0.8169349",
"0.81659627",
"0.81640005",
"0.8163328",
"0.8161707",
"0.8161707",
"0.8161707",
"0.8161707",
"0.8161707",
"0.8161707",
"0.8161707",
"0.8161707",... | 0.0 | -1 |
Whether nonNone DB settings are set on this instance. | def kdSI(YKHO) -> bool:
return YKHO._db_settings is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X9ad(YKHO) -> qLab:\n if YKHO._db_settings is None:\n raise ValueError('No DB settings are set on this instance.')\n return mkTU(YKHO._db_settings)",
"def G1Ux():\n return getattr(gCuF, 'MICROSITE_CONFIGURATION', False)",
"def TVn8(YKHO) -> bool:\n return YKHO._in_smartctl_database",
"... | [
"0.8010844",
"0.6257641",
"0.61342895",
"0.6113809",
"0.6091597",
"0.60814935",
"0.6062348",
"0.60489297",
"0.6039835",
"0.60359865",
"0.5959397",
"0.5921009",
"0.5916373",
"0.5904241",
"0.5895474",
"0.5873816",
"0.5869111",
"0.5860813",
"0.58566284",
"0.5839428",
"0.58338577... | 0.86004394 | 0 |
Draws a straight line to pyglet window with the current stroke color and strokewidth. | def nCXl(YKHO, **B2fa):
nJ9F, nxyw = (float(YKHO.point_0.x), float(YKHO.point_0.y))
o4D3, si3g = (float(YKHO.point_1.x), float(YKHO.point_1.y))
Go06(IoLj)
FJPT(nJ9F, nxyw)
FJPT(o4D3, si3g)
Gvnf() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lXKT(qfpW, fE52, mB6j, TVTK=1):\n a9eO.draw.line(Vjhr, qfpW, fE52, mB6j, TVTK)",
"def b7rP(YKHO, zoIh, j4Sm, k4FL, xfDt, qfpW, LgWF):\n Nux_, NlBC = YKHO.w_to_d(zoIh, j4Sm)\n uXIu, JYBM = YKHO.w_to_d(k4FL, xfDt)\n YKHO.canvas.create_line(Nux_, NlBC, uXIu, JYBM, fill=qfpW, arrow=LgWF)",
"def _Yn... | [
"0.7118551",
"0.7040961",
"0.692802",
"0.69200665",
"0.6827558",
"0.6821803",
"0.67982286",
"0.6713829",
"0.66723406",
"0.6666433",
"0.6637436",
"0.65532446",
"0.6507654",
"0.6501411",
"0.64963406",
"0.6488183",
"0.6483741",
"0.64747334",
"0.6469857",
"0.6451863",
"0.64367175... | 0.6600538 | 11 |
Expects either limit and value or at least one of lower_limit or upper_limit. If limit and value are set lower_limit and upper_limit are ignored. | def FIMM(YKHO, qoqK: Limit=None, BWXx: Union[int, float]=None, ppsq: Union[int, float]=None, AbYn: Union[int, float]=None, Ebru: Band=None):
super().__init__()
YKHO.__band = Ebru
YKHO.__has_lower: bool = False
YKHO.__has_upper: bool = False
YKHO.__lower_limit: uLKX[int, float] = None
YKHO.__uppe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wrcd(YKHO, BWXx, fSEB, pBP4):\n if BWXx > pBP4:\n return pBP4\n elif BWXx < fSEB:\n return fSEB\n else:\n return BWXx",
"def rLcX(iqdh, ppsq, AbYn):\n if iqdh < ppsq:\n return ppsq\n elif iqdh > AbYn:\n return AbYn\n else:\n return iqdh",
"def u40... | [
"0.74107367",
"0.7370407",
"0.7243274",
"0.71609575",
"0.66584694",
"0.6617967",
"0.6563175",
"0.6437654",
"0.63925624",
"0.6381473",
"0.6375579",
"0.6371062",
"0.63150847",
"0.6292891",
"0.62810653",
"0.62739414",
"0.6271589",
"0.62288606",
"0.61238295",
"0.6119051",
"0.6085... | 0.69533974 | 4 |
Evaluates an ondiagonal 2nd derivative term | def slP6(ytgA, KaIg, ej8u, SGf8):
return (ytgA - 2.0 * KaIg + ej8u) / SGf8 ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N2oJ(YKHO, DePL, EcVT, pan_):\n pan_[0] += oyIN.sum(DePL)",
"def qQJX(YKHO, WKvO):\n r8hN = len(WKvO)\n AOlJ = oyIN.zeros((r8hN, YKHO.funcCount))\n for r845 in range(YKHO.funcCount):\n AOlJ[:, r845] = YKHO.functions[r845](WKvO)\n YRbF = YKHO.argcompare(AOlJ, axis=1)\n LVAh = AOlJ[oyI... | [
"0.63147616",
"0.6291587",
"0.6291587",
"0.6290171",
"0.6249235",
"0.62457573",
"0.6211949",
"0.6206728",
"0.61930454",
"0.6161145",
"0.61384857",
"0.61339617",
"0.61339617",
"0.6131549",
"0.61272603",
"0.61156124",
"0.61079675",
"0.60915077",
"0.603382",
"0.6026479",
"0.6016... | 0.0 | -1 |
Evaluates an offdiagonal 2nd derivative term | def DkPm(Y2Kn, pRPQ, OpYm, ppDE, IH8b, pmr2):
return (Y2Kn - pRPQ - OpYm + ppDE) / (4.0 * IH8b * pmr2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkkC(YKHO, nUHY=False):\n jQ3Z = [None]\n E6og = [None]\n for YRbF in range(0, len(YKHO.ans) - 1, 1):\n jQ3Z += [int((YKHO.ans[YRbF + 1][1] - YKHO.ans[YRbF][1]) / (YKHO.ans[YRbF + 1][0] - YKHO.ans[YRbF][0]))]\n for YRbF in range(1, len(YKHO.ans) - 1, 1):\n E6og += [int((jQ3Z[YRbF + 1]... | [
"0.6565482",
"0.64000416",
"0.63166684",
"0.63166684",
"0.62802076",
"0.62552905",
"0.62384117",
"0.6202465",
"0.6193154",
"0.6174099",
"0.61361754",
"0.6095791",
"0.60910845",
"0.608055",
"0.6074318",
"0.6015509",
"0.60114175",
"0.6006348",
"0.60008484",
"0.5968598",
"0.5966... | 0.0 | -1 |
Returns the derivative of output_name with respect to wrt. | def PkAj(YKHO, xYGm, ZDEf):
return YKHO.gradient[ZDEf][xYGm] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z8cU(YKHO, xYGm, ZDEf):\n return YKHO.hessian[ZDEf[0]][ZDEf[1]][xYGm]",
"def KvPY(mWFP: str):\n return DqCI[mWFP]",
"def eGBw(YKHO, WKvO, WbhW=None):\n return 2 * kLQb(-WKvO ** 2) / PZyS(mM0K)",
"def Plpn(YKHO, xYGm=None):\n return qw7D([YKHO.gradient[ZDEf][xYGm] for ZDEf in YKHO.param_names]... | [
"0.794627",
"0.6320714",
"0.6095984",
"0.60070467",
"0.5971002",
"0.5934078",
"0.58912855",
"0.57599115",
"0.5751379",
"0.57422125",
"0.5739002",
"0.57238007",
"0.5716149",
"0.5715266",
"0.5707183",
"0.56966895",
"0.56966895",
"0.56966895",
"0.56966895",
"0.56952906",
"0.5676... | 0.8644599 | 0 |
Retrieve the entities that are linked to this equipment. This is a convenience around the session find_entity method. | def BYCt(YKHO, Wp7L=None, qoqK=None, xuug=False, db6b=None):
Etmh = nCSC.dump_scalar(YKHO.id)
if Wp7L is None:
Wp7L = 'equipRef==%s' % Etmh
else:
Wp7L = '(equipRef==%s) and (%s)' % (Etmh, Wp7L)
return YKHO._session.find_entity(Wp7L, qoqK, xuug, db6b) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MMe4(YKHO):\n return YKHO._entities",
"def wvFU(YKHO):\n return iWsA.get_all()",
"def VeoF(YKHO):\n return list(YKHO._entities.values())",
"def VeoF(YKHO, jKpy):\n return YKHO.get(jKpy).entities",
"def VeoF():\n MMe4 = []\n Jok4 = ajET.data[Sugg][PhL6.entry_id]\n for LLc5 in Jok4.d... | [
"0.68776244",
"0.645709",
"0.6314943",
"0.6108176",
"0.6002822",
"0.59412587",
"0.5895537",
"0.58570576",
"0.5789227",
"0.57545155",
"0.5671522",
"0.5669392",
"0.55909073",
"0.55658805",
"0.548643",
"0.54675347",
"0.5464098",
"0.5456616",
"0.5394486",
"0.5380945",
"0.5379679"... | 0.5427879 | 18 |
Get the value of the indexth node in the linked list. If the index is invalid, return 1. | def NMoC(YKHO, d6pt: int) -> int:
Q6kx = YKHO.get_node(d6pt)
if Q6kx:
return Q6kx.val
else:
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, d6pt: int) -> int:\n r9Hf = 0\n DpUl = YKHO.head\n while DpUl != None:\n if r9Hf == d6pt:\n return DpUl.val\n DpUl = DpUl.next\n r9Hf += 1\n return -1",
"def NMoC(YKHO, d6pt):\n DpUl = YKHO.head\n while DpUl and d6pt > 0:\n DpUl = DpUl.next\... | [
"0.82228374",
"0.810132",
"0.798225",
"0.797223",
"0.7966857",
"0.7952263",
"0.7949584",
"0.7928148",
"0.79057187",
"0.78002805",
"0.7736932",
"0.77319723",
"0.7650963",
"0.75840414",
"0.7507434",
"0.74747777",
"0.7453931",
"0.7387386",
"0.7387386",
"0.7384746",
"0.73363584",... | 0.83084565 | 0 |
Add a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list. | def PgMl(YKHO, wEf2: int) -> None:
if YKHO.head:
FZqh = kMdz(wEf2, next_node=YKHO.head, prev_node=None)
YKHO.head.prev = FZqh
YKHO.head = FZqh
YKHO.node_count += 1
else:
YKHO.head = kMdz(wEf2)
YKHO.node_count += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, wEf2):\n Esd_ = o7DN(wEf2)\n Esd_.next = YKHO.head\n YKHO.head = Esd_",
"def PgMl(YKHO, wEf2):\n Q6kx = Msxl(wEf2)\n if YKHO.head == None:\n YKHO.head = Q6kx\n else:\n Q6kx.next = YKHO.head\n YKHO.head = Q6kx",
"def PgMl(YKHO, wEf2):\n jbXL = o7DN(wEf2)\... | [
"0.7890199",
"0.7812391",
"0.77156895",
"0.7667366",
"0.7633173",
"0.7596094",
"0.75860196",
"0.75715685",
"0.75026643",
"0.7480735",
"0.74631685",
"0.7429043",
"0.74087286",
"0.73821265",
"0.7349201",
"0.7349201",
"0.72856104",
"0.72476804",
"0.72358054",
"0.7174488",
"0.714... | 0.74938554 | 9 |
Append a node of value val to the last element of the linked list. | def oHxR(YKHO, wEf2: int) -> None:
"""node = self.head
if node:
while True:
if node.next:
node = node.next
else:
node.next = MyListNode(val,next_node=None,prev_node=node)
break
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SStx(YKHO, wEf2):\n Fv8N = YM8C(wEf2, previous_node=YKHO.tail)\n YKHO.tail.next_node = Fv8N\n YKHO.tail = Fv8N",
"def oHxR(YKHO, wEf2):\n if YKHO.head is None:\n YKHO.addAtHead(wEf2)\n else:\n Esd_ = o7DN(wEf2)\n ZbOB = YKHO.head\n while ZbOB.next is not None:\n ... | [
"0.80130863",
"0.79794717",
"0.78928936",
"0.7879162",
"0.7879162",
"0.7856019",
"0.7782996",
"0.7744707",
"0.77368987",
"0.7721728",
"0.76904315",
"0.7632201",
"0.76267153",
"0.7550089",
"0.7521708",
"0.74483246",
"0.7416057",
"0.73196465",
"0.72394246",
"0.7223336",
"0.7216... | 0.7530205 | 14 |
Add a node of value val before the indexth node in the linked list. If index equals to the length of linked list, the node will be appended to the end of linked list. If index is greater than the length, the node will not be inserted. | def taMJ(YKHO, d6pt: int, wEf2: int) -> None:
if 0 < d6pt < YKHO.node_count:
eeF1 = YKHO.get_node(d6pt - 1)
nLmh = eeF1.next
FZqh = kMdz(wEf2)
eeF1.next = FZqh
FZqh.next = nLmh
FZqh.prev = eeF1
nLmh.prev = FZqh
YKHO.node_count += 1
elif d6pt == 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def taMJ(YKHO, d6pt, wEf2):\n if d6pt < 0:\n Esd_ = Msxl(wEf2)\n Esd_.next = YKHO.head\n YKHO.head = Esd_\n if d6pt <= YKHO.length:\n THkp = None\n ZbOB = YKHO.head\n for YRbF in range(1, d6pt + 1):\n THkp = ZbOB\n ZbOB = ZbOB.next\n Esd_... | [
"0.80046964",
"0.79041296",
"0.78416246",
"0.78006274",
"0.77555406",
"0.77421355",
"0.77419406",
"0.77292615",
"0.7707864",
"0.7617294",
"0.7611701",
"0.7611701",
"0.75009197",
"0.7281883",
"0.720867",
"0.7153189",
"0.7090287",
"0.70244604",
"0.70220435",
"0.7016665",
"0.692... | 0.75959724 | 12 |
Plots a confusion matrix of the model predictions to evaluate accuracy | def LwSz(YKHO):
pTn1 = beib.from_learner(YKHO.learn)
pTn1.plot_confusion_matrix() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(mWFP, cpdv, Z5wO, H96n):\n LZpg, aNZO = QrM1.subplots()\n LZpg.tight_layout()\n Bcwd = YsYU(H96n, cpdv.predict(Z5wO), normalize='all')\n psLw(Bcwd, display_labels=['False', 'True']).plot(ax=aNZO)\n QrM1.title(mWFP)",
"def LwSz(aMgO, Y8eF, VV8l):\n LZpg = QrM1.figure(figsize=(8, 8))\n ... | [
"0.7954949",
"0.79269266",
"0.7894503",
"0.7827766",
"0.78108096",
"0.7801344",
"0.7790977",
"0.77880204",
"0.7729956",
"0.7723762",
"0.77151185",
"0.76916933",
"0.76525074",
"0.7649402",
"0.7639235",
"0.7628763",
"0.75990075",
"0.7597474",
"0.7595721",
"0.7591373",
"0.758781... | 0.8134829 | 0 |
Add app messages to context. | def yEHD(QePW):
OaeV = {}
yEHD = LnrL(QePW)
if yEHD:
OaeV['mesgs'] = yEHD
return OaeV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIoA(YKHO):\n pass",
"def u49L(YKHO):\n return YKHO.messages['app'].get()",
"def GmIz(YKHO, P4t4):\n if not hasattr(P4t4, 'extensions'):\n P4t4.extensions = {}\n P4t4.extensions['mixconn'] = YKHO\n P4t4.context_processor(lambda: {'mixconn': YKHO})\n YKHO.pool = IIs7()",
"def gUOX... | [
"0.6293802",
"0.59380424",
"0.5907387",
"0.5889862",
"0.5763125",
"0.5606945",
"0.56038916",
"0.5568187",
"0.556246",
"0.55386215",
"0.55042225",
"0.54550314",
"0.54425555",
"0.5426857",
"0.54005486",
"0.53776485",
"0.5357521",
"0.5357521",
"0.5357521",
"0.53525347",
"0.53438... | 0.6333382 | 0 |
Override the == operator | def xa14(YKHO, nGHW):
return int(YKHO) != nGHW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YK... | [
"0.8269872",
"0.8269872",
"0.8269872",
"0.8269872",
"0.8269872",
"0.8269872",
"0.8269872",
"0.8269872",
"0.8269872",
"0.8269872",
"0.8269872",
"0.8269062",
"0.8269062",
"0.8269062",
"0.8269062",
"0.8269062",
"0.8269062",
"0.8269062",
"0.8269062",
"0.8269062",
"0.8269062",
"... | 0.7525679 | 78 |
Override the != operator | def Vdqg(YKHO, nGHW):
return int(YKHO) == nGHW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return n... | [
"0.8577962",
"0.8519671",
"0.8512088",
"0.85000825",
"0.84777975",
"0.8471436",
"0.8471436",
"0.84658766",
"0.84658766",
"0.84611464",
"0.84611464",
"0.84611464",
"0.8452583",
"0.8452583",
"0.8452583",
"0.8452583",
"0.84486645",
"0.8438222",
"0.843811",
"0.84201473",
"0.84174... | 0.0 | -1 |
Returns True if the input array is zero (smaller than machine precision) everywhere. Useful for determining if tilt angle is zero everywhere (i.e. LFM file is in GSM coordinates). | def MhiS(YKHO, qw7D):
_hZ2 = XTiz.finfo(type(qw7D[0])).eps
Jmr3 = XTiz.less_equal(XTiz.abs(qw7D), _hZ2)
for Fg_i in Jmr3:
if not Fg_i:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UT6m(jzdc: float) -> bool:\n return oyIN.isclose(jzdc, 0.0, atol=1e-12, rtol=0.0)",
"def Witr(YKHO):\n for a1PO in YKHO:\n if a1PO != W_f1:\n return False\n return True",
"def p8as(BWXx: Union[float, np.ndarray]) -> uLKX[bool, oyIN.ndarray]:\n return abs(BWXx) < 1e-10",
"def... | [
"0.7329743",
"0.71980375",
"0.7180356",
"0.6959584",
"0.68835986",
"0.6858602",
"0.6843292",
"0.6754056",
"0.67275715",
"0.6671207",
"0.66645455",
"0.66500664",
"0.6643579",
"0.6640681",
"0.6592677",
"0.6558841",
"0.64952725",
"0.64739907",
"0.6471248",
"0.64580184",
"0.63760... | 0.7982687 | 0 |
Function that takes an image and slices it into multiple smaller images return in a numpy array | def ZwUB(VXjJ, TVTK, H2v2=None, Rf07=1):
if H2v2 is None:
H2v2 = TVTK
VXjJ = oyIN.array(VXjJ)
HN6s, co3n = (VXjJ.shape[0], VXjJ.shape[1])
a6Jb = pBSp((co3n - TVTK) / Rf07) * pBSp((HN6s - H2v2) / Rf07)
Ylbp = oyIN.zeros([H2v2, TVTK, a6Jb])
HjHK = oyIN.array([[1, 1], [1, H2v2], [TVTK, 1], ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rDPA(VXjJ):\n Ylbp = []\n for YRbF, IzhD in enumerate(VXjJ):\n Ylbp.append(IzhD)\n return Ylbp",
"def GB68():\n VXjJ = hnIv.open('flamingo.jpg')\n cyTZ = oyIN.array(VXjJ)\n TVTK, H2v2, rb7a = cyTZ.shape\n jJRQ = cyTZ[:, :, 0]\n FC_D = cyTZ[:, :, 1]\n Ludk = cyTZ[:, :, 2]\n ... | [
"0.7572069",
"0.72821856",
"0.7207373",
"0.68874985",
"0.67716527",
"0.6730279",
"0.6572376",
"0.64996713",
"0.64352185",
"0.6386494",
"0.6274756",
"0.62692267",
"0.62281674",
"0.6210625",
"0.62043405",
"0.62037164",
"0.6188291",
"0.6188291",
"0.6184772",
"0.6123642",
"0.6096... | 0.6509245 | 7 |
Convert a full, detailed profile into a more general summarized one using conversion table stored in the database | def lKMf(Gv0r, eG1L, ApdS=True):
zfYW = list(set(Gv0r['conversion'].values()))
hlel = {}
for a1PO in zfYW:
oW1e = [G1Hx for G1Hx in eG1L['data'] if G1Hx in Gv0r['conversion'] and Gv0r['conversion'][G1Hx] == a1PO]
ZuCc = []
for G1Hx, Ty9i in eG1L['data'].items():
if G1Hx i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3aK(QhXp):\n HpuQ = QhXp\n HpuQ['region'] = HpuQ['region'].astype('category')\n HpuQ['public'] = HpuQ['public'].astype('category')\n HpuQ['gender'] = HpuQ['gender'].astype('category')\n HpuQ['last_login'] = rLdf.to_datetime(HpuQ['last_login'])\n HpuQ['registration'] = rLdf.to_datetime(HpuQ['... | [
"0.611189",
"0.56424725",
"0.55239695",
"0.5443105",
"0.5416968",
"0.53870475",
"0.5322993",
"0.52558523",
"0.52462614",
"0.5241005",
"0.52230895",
"0.52125657",
"0.52013993",
"0.5186525",
"0.5165514",
"0.5153287",
"0.51437217",
"0.511586",
"0.50937396",
"0.50918144",
"0.5077... | 0.51387066 | 17 |
Returns True if the customer has not reached the checkout for the second time yet, False otherwise. | def ksfB(YKHO):
if YKHO.state[0] == 'checkout':
return False
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO):\n return YKHO.state_after != 'checkout'",
"def CZzx(YKHO):\n return YKHO._checkout_date is not None",
"def ksfB(YKHO):\n if YKHO.state != 'checkout':\n return True\n if YKHO.state == 'checkout':\n return False",
"def ksfB(YKHO):\n return YKHO.state != 'checkout'",... | [
"0.64943844",
"0.6471514",
"0.63238454",
"0.6076517",
"0.60423493",
"0.6021483",
"0.5993252",
"0.59383565",
"0.5879028",
"0.5874628",
"0.5846856",
"0.5832326",
"0.5771171",
"0.5763445",
"0.5666333",
"0.56604666",
"0.56538415",
"0.5634491",
"0.5615523",
"0.5596557",
"0.5588341... | 0.6362742 | 2 |
Returns selected="selected" if the option value matches field's default Used directly in widget templates | def Ml90(MTKo, Jyyj):
if Jyyj.attr.default and MTKo[0] == Jyyj.attr.default:
return ' selected="selected"'
else:
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OX_z(QePW):\n uPxI = TXoP.Structure()\n uPxI.add('mySelect', TXoP.Integer())\n xAU6 = [(1, 'a'), (2, 'b'), (3, 'c')]\n L03z = dsf8.Form(uPxI, 'form')\n L03z['mySelect'].widget = dsf8.SelectChoice(xAU6)\n L03z['mySelect'].default = 2\n return L03z",
"def ixzA(QePW):\n uPxI = TXoP.Struc... | [
"0.65975666",
"0.6416188",
"0.6191291",
"0.6049021",
"0.604218",
"0.5977653",
"0.597259",
"0.5937122",
"0.5825413",
"0.5796056",
"0.5770259",
"0.5767324",
"0.5749384",
"0.5735948",
"0.5734999",
"0.57267016",
"0.56422603",
"0.56007797",
"0.5600718",
"0.55645937",
"0.55640537",... | 0.84386253 | 0 |
Instanciate an API client | def n7oW(eOtH, DXni):
nNXP = ndlg.Twitter(auth=ndlg.OAuth(eOtH, DXni, BQAm, KiNl))
if not nNXP:
print('Authentication failed, try running the script one more time')
Hy7s.remove(wavy)
return None
return nNXP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d4y1() -> iJSR:\n return iJSR()",
"def FIMM(YKHO, V2fd=None, w_Ya=None, NKRf=None, clva=None, dsE5=False, kMyc=None):\n wOGa = y8cn(app_key=V2fd, app_sid=w_Ya, base_url=NKRf, api_version=clva, debug=dsE5, proxy=kMyc)\n YKHO.api_client = OxSd(wOGa)",
"def d4y1() -> iJSR:\n return iJSR()",
"def... | [
"0.7688457",
"0.76408595",
"0.76347566",
"0.7618678",
"0.7615188",
"0.75733507",
"0.75380224",
"0.7436252",
"0.7421815",
"0.72405326",
"0.722453",
"0.7191436",
"0.7185233",
"0.71746737",
"0.7174336",
"0.70632106",
"0.7032717",
"0.70269567",
"0.69906324",
"0.6939836",
"0.69269... | 0.0 | -1 |
edge detection using skimage canny | def o6ZL(VXjJ, eBpe):
mC4V = RDhP.canny(VXjJ, sigma=eBpe)
return mC4V | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U2EP(YKHO):\n YKHO.frame = jbYn.Canny(YKHO.frame, 100, 200)",
"def pqKg(YKHO, VXjJ):\n return XC5k.Canny(VXjJ, YKHO.low_threshold, YKHO.high_threshold)",
"def AbVF(LNo8, kVwb=100, JgLq=150):\n return XC5k.Canny(LNo8, kVwb, JgLq)",
"def Tr6s(VXjJ, ZHfW=None, WTkW=1.0, u3k0=None, slyz=None, dGrG=1... | [
"0.7585274",
"0.75431675",
"0.749728",
"0.7467745",
"0.74551463",
"0.7448235",
"0.7442619",
"0.7410827",
"0.7410827",
"0.7410827",
"0.7410827",
"0.7410827",
"0.7410827",
"0.7410827",
"0.7410827",
"0.7410827",
"0.7410827",
"0.7410827",
"0.7410827",
"0.7410827",
"0.7410827",
... | 0.66760707 | 35 |
An optional description of this resource. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YK... | [
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823"... | 0.0 | -1 |
Name of the resource. Provided by the client when the resource is created. The name must be 163 characters long, and comply with RFC1035. Specifically, the name must be 163 characters long and match the regular expression `az?` which means the first character must be a lowercase letter, and all following characters mus... | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJsY(YKHO, mWFP):\n return super(j68c, YKHO).get_resource_name('livekvtest{}'.format(mWFP))",
"def mWFP(YKHO):\n return YKHO.resource['metadata']['name']",
"def mWFP(YKHO):\n return YKHO.raw_resource['name']",
"def kFeU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_name')",
"def kFe... | [
"0.62733287",
"0.6190639",
"0.6170485",
"0.6089961",
"0.6089961",
"0.60240793",
"0.60240793",
"0.60240793",
"0.60240793",
"0.60240793",
"0.599506",
"0.5944701",
"0.5908471",
"0.5860821",
"0.5829856",
"0.5823604",
"0.5823604",
"0.5801978",
"0.5798875",
"0.5595935",
"0.5581064"... | 0.0 | -1 |
Creates a unique name beginning with the specified prefix. Conflicts with `name`. | def teP4(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name_prefix') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvHm(y0cW):\n ZI14 = TJgT()[:8]\n return '{0}_{1}'.format(y0cW, ZI14)",
"def Hjko(YKHO, mWFP):\n if ':' in mWFP:\n return mWFP\n return YKHO.prefix + ':' + mWFP",
"def wzWM(YKHO, mWFP: str) -> str:\n PXRd: str = mWFP.split('.', 1)[0]\n if YKHO.prefix == 'auto':\n return f'-{... | [
"0.8195386",
"0.7412632",
"0.7311378",
"0.7266671",
"0.72004753",
"0.7194196",
"0.71685916",
"0.704199",
"0.7006226",
"0.69408906",
"0.6851571",
"0.6812473",
"0.6740329",
"0.6735273",
"0.6682095",
"0.6674863",
"0.66349596",
"0.66146654",
"0.660699",
"0.65408987",
"0.6521067",... | 0.5849593 | 94 |
Creation timestamp in RFC3339 text format. | def OhEq(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'creation_timestamp') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XAPA(YKHO):\n return '%Y/%m/%d %I:%M:%S'.format(YKHO.creation_time)",
"def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')",
"def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')",
"def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')",
"def OhEq(YKHO) -> s... | [
"0.8173928",
"0.78463787",
"0.78463787",
"0.78463787",
"0.7843217",
"0.7843217",
"0.7843217",
"0.7641064",
"0.7421001",
"0.7421001",
"0.7421001",
"0.7421001",
"0.7421001",
"0.7421001",
"0.7421001",
"0.7421001",
"0.7421001",
"0.7421001",
"0.7421001",
"0.7421001",
"0.7421001",
... | 0.7116159 | 38 |
An optional description of this resource. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YK... | [
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856",
"0.77535856"... | 0.0 | -1 |
Expire time of the certificate in RFC3339 text format. | def e2iN(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'expire_time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')",
"def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')",
"def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')",
"def rECS(YKHO):\n LSCv = YKHO.getLatestValidCertification()\n if LSCv == None:\n return ''\n... | [
"0.73293155",
"0.73293155",
"0.73293155",
"0.71716243",
"0.70710856",
"0.70710856",
"0.69550985",
"0.66104823",
"0.6462175",
"0.6302252",
"0.62939817",
"0.62465584",
"0.62312704",
"0.613301",
"0.61103344",
"0.60917413",
"0.60483515",
"0.59664065",
"0.59664065",
"0.5936878",
"... | 0.6550289 | 9 |
Name of the resource. Provided by the client when the resource is created. The name must be 163 characters long, and comply with RFC1035. Specifically, the name must be 163 characters long and match the regular expression `az?` which means the first character must be a lowercase letter, and all following characters mus... | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJsY(YKHO, mWFP):\n return super(j68c, YKHO).get_resource_name('livekvtest{}'.format(mWFP))",
"def mWFP(YKHO):\n return YKHO.resource['metadata']['name']",
"def mWFP(YKHO):\n return YKHO.raw_resource['name']",
"def kFeU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_name')",
"def kFe... | [
"0.62737674",
"0.6191146",
"0.617125",
"0.6090576",
"0.6090576",
"0.60244405",
"0.60244405",
"0.60244405",
"0.60244405",
"0.60244405",
"0.5996516",
"0.5946341",
"0.59084123",
"0.58605087",
"0.5830729",
"0.58246714",
"0.58246714",
"0.5802521",
"0.5798447",
"0.55972546",
"0.558... | 0.0 | -1 |
Creates a unique name beginning with the specified prefix. Conflicts with `name`. | def teP4(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name_prefix') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvHm(y0cW):\n ZI14 = TJgT()[:8]\n return '{0}_{1}'.format(y0cW, ZI14)",
"def Hjko(YKHO, mWFP):\n if ':' in mWFP:\n return mWFP\n return YKHO.prefix + ':' + mWFP",
"def wzWM(YKHO, mWFP: str) -> str:\n PXRd: str = mWFP.split('.', 1)[0]\n if YKHO.prefix == 'auto':\n return f'-{... | [
"0.8195386",
"0.7412632",
"0.7311378",
"0.7266671",
"0.72004753",
"0.7194196",
"0.71685916",
"0.704199",
"0.7006226",
"0.69408906",
"0.6851571",
"0.6812473",
"0.6740329",
"0.6735273",
"0.6682095",
"0.6674863",
"0.66349596",
"0.66146654",
"0.660699",
"0.65408987",
"0.6521067",... | 0.5849593 | 93 |
Creation timestamp in RFC3339 text format. | def OhEq(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'creation_timestamp') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XAPA(YKHO):\n return '%Y/%m/%d %I:%M:%S'.format(YKHO.creation_time)",
"def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')",
"def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')",
"def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')",
"def OhEq(YKHO) -> s... | [
"0.81731606",
"0.784541",
"0.784541",
"0.784541",
"0.7841992",
"0.7841992",
"0.7841992",
"0.76399773",
"0.7419638",
"0.7419638",
"0.7419638",
"0.7419638",
"0.7419638",
"0.7419638",
"0.7419638",
"0.7419638",
"0.7419638",
"0.7419638",
"0.7419638",
"0.7419638",
"0.7419638",
"0... | 0.7400766 | 27 |
An optional description of this resource. | def JBZA(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'description')",
"def JBZA(YK... | [
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823",
"0.77533823"... | 0.0 | -1 |
Expire time of the certificate in RFC3339 text format. | def e2iN(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'expire_time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')",
"def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')",
"def e2iN(YKHO) -> str:\n return qe4Y.get(YKHO, 'expire_time')",
"def rECS(YKHO):\n LSCv = YKHO.getLatestValidCertification()\n if LSCv == None:\n return ''\n... | [
"0.7328243",
"0.7328243",
"0.7328243",
"0.71711046",
"0.69547725",
"0.66100824",
"0.6548652",
"0.6548652",
"0.6461065",
"0.63018787",
"0.6292543",
"0.62472194",
"0.6230739",
"0.6132218",
"0.611096",
"0.60904545",
"0.60512906",
"0.5966119",
"0.5966119",
"0.5936379",
"0.5919215... | 0.70698017 | 5 |
Name of the resource. Provided by the client when the resource is created. The name must be 163 characters long, and comply with RFC1035. Specifically, the name must be 163 characters long and match the regular expression `az?` which means the first character must be a lowercase letter, and all following characters mus... | def mWFP(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJsY(YKHO, mWFP):\n return super(j68c, YKHO).get_resource_name('livekvtest{}'.format(mWFP))",
"def mWFP(YKHO):\n return YKHO.resource['metadata']['name']",
"def mWFP(YKHO):\n return YKHO.raw_resource['name']",
"def kFeU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_name')",
"def kFe... | [
"0.62743795",
"0.6191303",
"0.61712724",
"0.6090316",
"0.6090316",
"0.6024405",
"0.6024405",
"0.6024405",
"0.6024405",
"0.6024405",
"0.59956753",
"0.59458935",
"0.5909366",
"0.5860528",
"0.58303773",
"0.582491",
"0.582491",
"0.5803337",
"0.5798448",
"0.55974835",
"0.5581133",... | 0.0 | -1 |
Creates a unique name beginning with the specified prefix. Conflicts with `name`. | def teP4(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'name_prefix') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvHm(y0cW):\n ZI14 = TJgT()[:8]\n return '{0}_{1}'.format(y0cW, ZI14)",
"def Hjko(YKHO, mWFP):\n if ':' in mWFP:\n return mWFP\n return YKHO.prefix + ':' + mWFP",
"def wzWM(YKHO, mWFP: str) -> str:\n PXRd: str = mWFP.split('.', 1)[0]\n if YKHO.prefix == 'auto':\n return f'-{... | [
"0.8196156",
"0.741393",
"0.73123384",
"0.726756",
"0.72011584",
"0.71964794",
"0.71705973",
"0.7043072",
"0.70082206",
"0.69417495",
"0.6853965",
"0.68137413",
"0.6742179",
"0.6736858",
"0.66841197",
"0.66773605",
"0.66360354",
"0.6615448",
"0.660757",
"0.6542703",
"0.652160... | 0.5883708 | 76 |
should set `model` to owner when instance is None | def JGsY(YKHO):
YKHO.assertEqual(YKHO.Test.foo.model, YKHO.Test) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n try:\n qsJ6 = L03z.instance.owner\n except FYrf.Application.owner.RelatedObjectDoesNotExist:\n L03z.instance.owner = QePW.user\n super().save_model(QePW, YEnM, L03z, nZuS)",
"def UJGz(YKHO, YEnM):\n YEnM.owner = YKHO.request.user",
"def gCH0(Y... | [
"0.7634998",
"0.67302233",
"0.66623086",
"0.66623086",
"0.66623086",
"0.64856637",
"0.64180213",
"0.64180213",
"0.64180213",
"0.64180213",
"0.63496315",
"0.6301929",
"0.62846565",
"0.62515026",
"0.62515026",
"0.62515026",
"0.62515026",
"0.6190546",
"0.61800027",
"0.6162175",
... | 0.7304472 | 1 |
Generate a weight variable of a given shape. | def LCSv(YKHO, ROpF, mWFP='', yDqo=ZylS.float32):
RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)
return ZylS.Variable(RqgG, dtype=yDqo, name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JJi2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.Variable(RqgG)",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF)\n return ZylS.Variable(RqgG)",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.get_variable('weight', initializ... | [
"0.8355896",
"0.82821894",
"0.82712024",
"0.8241647",
"0.8236564",
"0.8236564",
"0.8236564",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.8217846",
"0.82067746",
"0.8167463",
"0.... | 0.8145685 | 20 |
Generate a weight variable of a given shape. | def E9N2(YKHO, ROpF, mWFP='', yDqo=ZylS.float32):
RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)
return ZylS.Variable(RqgG, dtype=yDqo, name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JJi2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.Variable(RqgG)",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF)\n return ZylS.Variable(RqgG)",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.get_variable('weight', initializ... | [
"0.8355896",
"0.82821894",
"0.82712024",
"0.8241647",
"0.8236564",
"0.8236564",
"0.8236564",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.82341045",
"0.8217846",
"0.82067746",
"0.8167463",
"0.... | 0.79618084 | 24 |
Return a 2d convolution layer with full stride. | def b_zE(YKHO, WKvO, XcU5, mWFP=''):
return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='VALID', name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZ8A(YKHO, WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME')",
"def b_zE(WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME')",
"def b_zE(WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME')",
... | [
"0.751631",
"0.74794585",
"0.74794585",
"0.74736035",
"0.74505603",
"0.74505603",
"0.74505603",
"0.74505603",
"0.73997504",
"0.7391001",
"0.7386517",
"0.73344606",
"0.7302042",
"0.7262597",
"0.72488296",
"0.7228992",
"0.7227194",
"0.7226937",
"0.72096276",
"0.7184229",
"0.717... | 0.7236857 | 15 |
Gets the next trash day for a given date | def wahf(_c1T: str) -> str:
v27i = wvEv.parse(_c1T)
y0Xp = v27i.weekday()
if y0Xp < uuoF:
RA_F = uuoF - y0Xp
elif y0Xp == uuoF:
RA_F = 0
else:
RA_F = 7 - (y0Xp - uuoF)
GfLM = v27i + qcWV.timedelta(days=RA_F)
return GfLM.strftime('%Y-%m-%d') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Scik(_c1T):\n return _c1T + qcWV.timedelta(days=1)",
"def Scik(_c1T):\n return _c1T + qcWV.timedelta(days=1)",
"def H7rE(YKHO, CjKC):\n Scik = YKHO._trading_days.shift(-1)[CjKC]\n return Scik if not rLdf.isnull(Scik) else None",
"def xJKc(YKHO):\n pass",
"def GZxt(_c1T: str, rhBO: list) ... | [
"0.76969635",
"0.76969635",
"0.70977765",
"0.704082",
"0.66516757",
"0.6224729",
"0.6222216",
"0.61540645",
"0.6137545",
"0.6133715",
"0.6121568",
"0.59999067",
"0.59967107",
"0.59871405",
"0.59871405",
"0.5984374",
"0.58846253",
"0.58306783",
"0.579761",
"0.57365865",
"0.569... | 0.82727396 | 0 |
gets the next trash day taking holidays into consideration | def GZxt(_c1T: str, rhBO: list) -> dict:
fjN5 = wahf(_c1T)
ACTs = lQaN(fjN5)
HcuF = {'type': 'default', 'schedule': GRk0.day_name[uuoF]}
if FPM2.contains_holiday(ACTs):
QD8i = FPM2.get_holiday(ACTs)
Cvft = list(filter(lambda WnNA: WnNA['name'] == QD8i, rhBO))
if len(Cvft) > 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJKc(YKHO):\n pass",
"def wahf(_c1T: str) -> str:\n v27i = wvEv.parse(_c1T)\n y0Xp = v27i.weekday()\n if y0Xp < uuoF:\n RA_F = uuoF - y0Xp\n elif y0Xp == uuoF:\n RA_F = 0\n else:\n RA_F = 7 - (y0Xp - uuoF)\n GfLM = v27i + qcWV.timedelta(days=RA_F)\n return GfLM.st... | [
"0.70619345",
"0.69836265",
"0.69702566",
"0.6622131",
"0.64956003",
"0.6239636",
"0.6239636",
"0.6213379",
"0.61707443",
"0.61419547",
"0.61302257",
"0.61245453",
"0.6110192",
"0.6090458",
"0.6057315",
"0.60220957",
"0.6020746",
"0.60141313",
"0.5966333",
"0.5921652",
"0.590... | 0.7244827 | 0 |
Yield successive nsized chunks from lst. | def eHxA(yv6U, exwG):
for YRbF in range(0, len(yv6U), exwG):
yield yv6U[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield... | [
"0.83071756",
"0.81939614",
"0.81910837",
"0.81910837",
"0.8190213",
"0.81267184",
"0.80773693",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",... | 0.81218547 | 7 |
Return the device state attributes. | def TzCU(YKHO) -> dict[str, ImMB] | None:
return {'fault_code': YKHO._heater.status['fault_code']} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attrs",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._... | [
"0.93173087",
"0.9245708",
"0.92207897",
"0.92147964",
"0.92147964",
"0.9210798",
"0.9210798",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
... | 0.0 | -1 |
Get `Tokenizer` and `Model` for a model name. | def UIzw(ZGE9: str):
b0j5 = IeEP.from_pretrained(ZGE9)
C3ST = QCkz.from_pretrained(ZGE9)
C3ST.output_hidden_states = True
return (b0j5, C3ST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YrZb(C3ST):\n Uk9h = HCmI.get_object_list()\n if len(Uk9h) == 0:\n G9jH.parser_error('No models are opened.')\n return\n C3ST = C3ST.lower()\n if C3ST and C3ST in Uk9h:\n return C3ST\n if len(Uk9h) > 1:\n G9jH.parser_error('Please specify which model you want to use. ... | [
"0.7199492",
"0.7023352",
"0.6884367",
"0.68522125",
"0.68059415",
"0.679673",
"0.678864",
"0.67526037",
"0.6655757",
"0.6638868",
"0.6599854",
"0.655437",
"0.6554283",
"0.65510416",
"0.6477091",
"0.6466176",
"0.64611083",
"0.64491063",
"0.6438798",
"0.6429388",
"0.64275306",... | 0.7214922 | 0 |
Get parameters for a model, potentially excluding the embedding layer. | def ZJMU(C3ST: Module, nrhP: bool=True, DNHh: List[str]=['embed', 'decoder.', 'pooler.', 'shared.']) -> x1iM[XDS4]:
return [xqoZ for mWFP, xqoZ in C3ST.named_parameters() if (not nrhP or len(xqoZ.size()) == 2) and (not any((w1K0 in mWFP for w1K0 in DNHh)))] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ox7k(YKHO):\n BDvi = vars(YKHO).copy()\n XJnY = ['input_size', 'model', 'train_generator', 'val_generator', 'callbacks', 'save_to_dir', 'keras_logs_folder', 'samples_seen', 'params_filepath', 'session_number', 'params_file_name', 'weights_file_name', 'checkpoint_filename', 'curr_folder']\n for H5ew in... | [
"0.7674309",
"0.7436587",
"0.7294265",
"0.72044444",
"0.7090381",
"0.7038122",
"0.6839631",
"0.6745029",
"0.6744087",
"0.6740476",
"0.6725307",
"0.66457915",
"0.66193455",
"0.6599832",
"0.6596613",
"0.65812725",
"0.6551182",
"0.6549866",
"0.65431637",
"0.6536824",
"0.65232897... | 0.7238273 | 3 |
Get a list of parameters tied to the embedding layer. | def XP_F(C3ST) -> x1iM:
return [xqoZ for mWFP, xqoZ in C3ST.named_parameters() if 'embed' in mWFP] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGPK(YKHO):\n NArs = []\n for gEmA in (YKHO.conv1, YKHO.conv2, YKHO.conv3, YKHO.conv4, YKHO.dense1, YKHO.dense2):\n NArs += list(gEmA.parameters)\n return NArs",
"def W6RH(YKHO) -> ht2j.Tensor:\n NArs = []\n for _oWe in list(YKHO.net.parameters()):\n NArs.append(_oWe.view(-1))\n ... | [
"0.7535987",
"0.7381716",
"0.7132315",
"0.704354",
"0.7043289",
"0.7009622",
"0.7009622",
"0.70040184",
"0.6953776",
"0.691929",
"0.69050103",
"0.68977284",
"0.68977284",
"0.68977284",
"0.68977284",
"0.68977284",
"0.6875893",
"0.68742156",
"0.68739325",
"0.6872487",
"0.684921... | 0.78168494 | 0 |
Get dictionary of parameters partitioned by layer number. | def Ubwc(C3ST) -> cuzp:
fhcK = oRi_(list)
for mWFP, xqoZ in C3ST.named_parameters():
Zoh6 = mWFP.split('.')
if Zoh6[0] == 'encoder' and Zoh6[1] == 'block':
gEmA = int(Zoh6[2])
fhcK[gEmA].append(xqoZ)
return fhcK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fyex(YKHO):\n return dict(zip(YKHO.parameters_names(), YKHO.parameters_list))",
"def UNGO(gEmA):\n fhcK = DMcd(gEmA)\n NArs = sum([vC9B.get_params() for vC9B in fhcK], [])\n return BfDw.unique(NArs)",
"def Cxbh(YKHO):\n return YKHO.layer_params",
"def OqPV(YKHO):\n NArs = {'train_frac':... | [
"0.6692574",
"0.65567654",
"0.64245135",
"0.6398583",
"0.6372712",
"0.6344212",
"0.62882966",
"0.62654275",
"0.62573886",
"0.6213964",
"0.6201111",
"0.619871",
"0.6188635",
"0.61766535",
"0.6173816",
"0.6171546",
"0.61674243",
"0.6164119",
"0.6154546",
"0.6140772",
"0.6101595... | 0.70265716 | 0 |
Returns gaussian profile. 1/sqrt(2pi) / gamma exp((x/gamma)2 / 2) | def liMP(WKvO, KMvS):
return 1 / oyIN.sqrt(2 * oyIN.pi) / KMvS * oyIN.exp(-(WKvO / KMvS) ** 2 / 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def liMP(WKvO, nJ9F, KMvS):\n WTkW = KMvS / PZyS(2.0)\n k0lF = 1 / (WTkW * PZyS(2 * mM0K))\n return k0lF * kLQb(-0.5 * (WKvO - nJ9F) ** 2 / WTkW ** 2)",
"def IAWS(WKvO, yGTL, WTkW):\n return oyIN.exp(-(WKvO - yGTL) ** 2 / 2.0 / WTkW ** 2) / oyIN.sqrt(2.0 * oyIN.pi) / WTkW",
"def IAWS(WKvO, JBMS, WT... | [
"0.75206435",
"0.71392494",
"0.6998809",
"0.6952576",
"0.69341147",
"0.68784",
"0.679881",
"0.67568934",
"0.6733555",
"0.6725777",
"0.6718593",
"0.6709496",
"0.6703196",
"0.6626777",
"0.6625177",
"0.6618803",
"0.6614837",
"0.65624034",
"0.6553338",
"0.6513534",
"0.65014327",
... | 0.7844662 | 0 |
Plot a image grids of the dataset. If dataset is labeld it will generate one row of images per class and if it's unlabeled it will generate a bidimentional (almost square) grid of images sampled from dataset | def JREg(__n6, mLGw=10, hXNa=True, KndY='auto', wytA=None, GAJY=20, GNd5={'cmap': QrM1.cm.Greys_r}):
mvm2 = __n6[0]
if isinstance(mvm2, tuple) and len(mvm2) == 2:
kvtm = lhvZ(__n6, num=mLGw, shuffle=hXNa, classes=KndY)
mLGw = min(mLGw, max(map(len, kvtm.values())))
KndY = list(kvtm.keys(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U0xK(Yw_3, Crrw, HN6s, co3n, KP9C=None, oNZq=None, HKoa=False):\n LZpg, MPlV = QrM1.subplots(HN6s, co3n, figsize=(16, 2 * HN6s))\n for YRbF, aNZO in enumerate(MPlV.flat):\n if HKoa:\n aNZO.imshow(Yw_3[YRbF, :, :, 0], cmap='binary')\n else:\n aNZO.imshow(Yw_3[YRbF])\n ... | [
"0.7369182",
"0.7340669",
"0.73215216",
"0.722925",
"0.7174287",
"0.7159908",
"0.7060308",
"0.7036506",
"0.7008614",
"0.70057887",
"0.70050985",
"0.69809043",
"0.6962196",
"0.6962196",
"0.6871114",
"0.6860198",
"0.6790377",
"0.6773561",
"0.67644835",
"0.67433405",
"0.670146",... | 0.7943561 | 0 |
Translates a JSON dictionary into a corresponding grammar node, based on the 'type' entry. Returns 'dct' itself when 'dct' has no type entry or has an unrecognized type entry. We use Treesitter's conventions for representing a grammar in JSON form. | def o4Px(mIy_, i_PE, b86E, fK8P):
def rxxd(i_PE, mWFP, Q6kx):
if mWFP in i_PE:
return i_PE[mWFP]
i_PE[mWFP] = Q6kx
return Q6kx
Aofo = fK8P
if 'type' in fK8P:
JgZF = fK8P['type']
if isinstance(JgZF, str):
if JgZF == 'TOKEN':
Aof... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tHTF(fK8P):\n if len(fK8P) == 1:\n l87X, bGrB = fK8P.items()[0]\n n0y1 = l87X.strip('_')\n if n0y1 in SUVV:\n YEnM = SUVV[n0y1]()\n YEnM.__dict__ = fK8P[l87X]\n return YEnM\n return fK8P",
"def bTov(Csk6):\n if Csk6 is None:\n return None\... | [
"0.6035078",
"0.5538951",
"0.5173711",
"0.49358642",
"0.49114808",
"0.48749194",
"0.48417294",
"0.48001817",
"0.47498053",
"0.4648304",
"0.4629172",
"0.4613406",
"0.4605138",
"0.45951557",
"0.45777294",
"0.4507989",
"0.4484301",
"0.44649675",
"0.44622406",
"0.4459265",
"0.445... | 0.614961 | 0 |
Returns a new SymbolName, unique up to equivalence of its string name. | def UbpO(YKHO, hGN5):
return YKHO.register(vyVK(hGN5, reg=YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dmBm(YKHO, mWFP):\n if mWFP in YKHO.names:\n return YKHO.names[mWFP]\n else:\n BdN0 = YKHO.nameidx\n YKHO.names[mWFP] = BdN0\n YKHO.invnames[BdN0] = mWFP\n YKHO.nameidx += 1\n return BdN0",
"def Fi5r(vIwR):\n return 'USymbol' + z4am(vIwR, True)",
"def sTNK... | [
"0.66554004",
"0.66413283",
"0.6358413",
"0.5970123",
"0.59338284",
"0.59157276",
"0.59157133",
"0.5904528",
"0.58963996",
"0.5851957",
"0.5758179",
"0.56907475",
"0.55619925",
"0.5549361",
"0.5548271",
"0.55477536",
"0.5520622",
"0.5475762",
"0.5468113",
"0.5465598",
"0.5451... | 0.6105098 | 3 |
Returns the names of rules, in order, based on the preorder traversal starting from the LANGUAGE start node. Assumes the grammar is in canonical form | def Nl91(YKHO):
assert YKHO.is_canonical
azXi = set()
T8uQ = [T3wU]
Aofo = []
while len(T8uQ) > 0:
bzfn = []
for bKqw in T8uQ:
if bKqw in azXi:
continue
Aofo.append(bKqw)
azXi.add(bKqw)
eD8c = YKHO.rules[bKqw].as_contain... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lts4(YKHO):\n return YKHO.rules.keys()",
"def POsp(YKHO):\n if YKHO.scanner == NcQe:\n return sorted({Aofo['rule'] for Aofo in YKHO.results})\n if YKHO.scanner == JxSj and 'matchedRules' in YKHO.results:\n return YKHO.results['matchedRules']\n return []",
"def apmG(tk5Y):\n\n d... | [
"0.60005575",
"0.58476996",
"0.55949664",
"0.55783236",
"0.5526621",
"0.5481297",
"0.5413346",
"0.5225151",
"0.5198539",
"0.5161763",
"0.5130225",
"0.51194996",
"0.5093414",
"0.5093071",
"0.5053559",
"0.5044478",
"0.5043568",
"0.5019573",
"0.5008506",
"0.5006204",
"0.49716237... | 0.7482429 | 0 |
Returns whether or not this MPCFramework supports the given game | def QZmR(Emd4, BH3N: Game) -> bool:
return BH3N in Emd4.SUPPORTED_GAMES | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfg(Tuqy: int) -> bool:\n return Tuqy in ExtY\n pass",
"def pbT6(YKHO, BH3N):\n return True",
"def AtMG():\n return not isinstance(xp5R, Oim9)",
"def rRWB(YKHO):\n return a9EH.system().lower() in YKHO.platforms if YKHO.platforms else False",
"def WoGO(YKHO):\n return YKHO._get('game_... | [
"0.65107864",
"0.62987363",
"0.6131972",
"0.61076665",
"0.6079678",
"0.60238105",
"0.5971767",
"0.5921434",
"0.58807635",
"0.57579356",
"0.574543",
"0.57257944",
"0.57189626",
"0.5686974",
"0.5674633",
"0.5671523",
"0.56437093",
"0.5639276",
"0.56391764",
"0.5628202",
"0.5610... | 0.86261773 | 0 |
Return the top value of the stack without popping. | def T7C_(YKHO):
return YKHO.top.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlxW(E5BI):\n if N0mo(E5BI):\n raise IndexError('Stack is empty!')\n else:\n return E5BI.top.value",
"def tlxW(YKHO):\n if YKHO.stack == []:\n return None\n return YKHO.stack[-1]",
"def tlxW(YKHO):\n if YKHO.stack:\n return YKHO.stack[-1]\n raise ValueError",
... | [
"0.9050651",
"0.8435066",
"0.8398459",
"0.8373688",
"0.8304483",
"0.82895845",
"0.8283464",
"0.82824063",
"0.821702",
"0.8195804",
"0.81816",
"0.817463",
"0.817463",
"0.81669104",
"0.81545913",
"0.80897546",
"0.8059494",
"0.7987436",
"0.78667957",
"0.78505516",
"0.7848447",
... | 0.73281485 | 40 |
Specific to Starships. Both films and pilots parameters of the Starship responses will be a list of endpoints. If the system has not cached those values, this will replace the endpoints with actual values. Returns the title of films, and the name of pilots. | def hJOM(BWXx, H5ew):
hkxX = []
if H5ew in ['films', 'pilots'] and TRkq(BWXx):
for wEf2 in BWXx:
if H5ew == 'films':
hkxX.append(_lv4(wEf2)['title'])
if H5ew == 'pilots':
hkxX.append(_lv4(wEf2)['name'])
return hkxX
else:
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQSy(YKHO):\n Mkmy = G4JS.get(YKHO.base_url + f'/users/{YKHO.username}/ships', headers=YKHO.auth_header)\n return Mkmy.text",
"def sHYS(YKHO, o61b):\n Mkmy = G4JS.get(YKHO.base_url + f'/game/locations/{o61b}/ships', headers=YKHO.auth_header)\n return Mkmy.text",
"def OD9B(YKHO):\n return [uR... | [
"0.5181903",
"0.49881867",
"0.48190263",
"0.47933248",
"0.47418043",
"0.46728072",
"0.4665454",
"0.46339023",
"0.4620509",
"0.45402846",
"0.4529254",
"0.44990838",
"0.44728097",
"0.4446412",
"0.44434893",
"0.44434625",
"0.4437177",
"0.44347763",
"0.44176322",
"0.44082454",
"0... | 0.0 | -1 |
Returns the CODATA recommended value with unit of the requested physical constant. | def pzUp(H5ew: str, Dv8c: bool=False) -> iQnE:
from scipy.constants import pzUp as gwO_
BWXx, PXGI, ESzh = gwO_[H5ew]
qIxc = {'value': BWXx, 'unit': PXGI.replace(' ', '*')}
if Dv8c:
z2bo = ESzh
qIxc['variance'] = z2bo * z2bo
return QV0l(hAEw(**qIxc)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ebrv(YKHO):\n CN1M = 0\n if YKHO.is_clayey():\n CN1M = YKHO.qu(YKHO._data[r9ic.N60]) / 2\n return CN1M",
"def Jwjr(YKHO):\n return YKHO.diseq_coeff(standardize=True)",
"def kla9(FYrc, mfOM, L4Vo):\n QD0W = FYrc / mfOM\n ON9k = QD0W * L4Vo\n zmzb = QD0W - (FYrc + ON9k)\n retur... | [
"0.61868954",
"0.6132413",
"0.605815",
"0.58931077",
"0.589065",
"0.5814609",
"0.57374376",
"0.57374376",
"0.57374376",
"0.56209207",
"0.5611018",
"0.5611018",
"0.5607602",
"0.5553922",
"0.5553922",
"0.5543335",
"0.5538798",
"0.5506754",
"0.5497807",
"0.5469998",
"0.54668",
... | 0.51238084 | 61 |
Cleans the text into a form that works for processing by removing tabs and linefeeds, and punctuation is extended_alphabet = False, along with making the text uniformly lowercase and transforming it into asciicompatible characters. | def Yczo(YKHO, l5Ny):
if len(YKHO.alph) == 26:
l5Ny = finE('[\n\t ' + vIwR.punctuation + ']+?', '', l5Ny)
else:
l5Ny = finE('[\n\t]+?', '', l5Ny)
l5Ny = l5Ny.lower()
l5Ny = l5Ny.encode('ascii', 'ignore').decode()
return l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YMSp(YKHO, l5Ny):\n BdnV = ZbWC.sub('\\\\n+', '. ', l5Ny)\n BdnV = ZbWC.sub('\\\\t+', '. ', l5Ny)\n BdnV = ' '.join([GIN8 for GIN8 in BdnV.split() if YKHO.is_ascii(GIN8)])\n BdnV = ' '.join([GIN8 for GIN8 in BdnV.split() if not GIN8.startswith('@')])\n BdnV = ZbWC.sub('http\\\\S+', '', BdnV, fla... | [
"0.7089762",
"0.7030888",
"0.7011495",
"0.6901245",
"0.68705463",
"0.68348545",
"0.68348545",
"0.68334574",
"0.67861676",
"0.67735624",
"0.6761075",
"0.673244",
"0.6727343",
"0.6723118",
"0.6716831",
"0.67066026",
"0.6696384",
"0.6644331",
"0.6644331",
"0.6644331",
"0.6644331... | 0.7909278 | 0 |
Remove each element from `rng` for which `pred` evaluates to true by swapping them to the end of the sequence. The function returns the number of elements retained. | def TSyu(xlLU, nvEb):
r845 = 0
for YRbF, WKvO in enumerate(xlLU):
if nvEb(WKvO):
continue
if YRbF != r845:
xlLU[YRbF], xlLU[r845] = (xlLU[r845], xlLU[YRbF])
r845 += 1
return r845 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSdD(nvEb):\n\n def QQoq(YPaw):\n\n def pCA0(Mkmy=RVJO, WKvO=RVJO):\n if Mkmy is RVJO:\n return YPaw()\n if WKvO is RVJO:\n return YPaw(Mkmy)\n return YPaw(Mkmy, WKvO) if not nvEb(WKvO) else Mkmy\n return pCA0\n return QQoq",
... | [
"0.5970162",
"0.59182113",
"0.57885057",
"0.55329347",
"0.5454982",
"0.54516405",
"0.51788163",
"0.5175403",
"0.5148423",
"0.51355696",
"0.50446457",
"0.50325125",
"0.50101095",
"0.49965248",
"0.49878272",
"0.49708146",
"0.49496216",
"0.4939983",
"0.491285",
"0.48891592",
"0.... | 0.7627244 | 0 |
Returns a shallow copy of the container. | def jth9(YKHO):
return cPfN(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n o8Kj = {G1Hx: YKHO.__dict__[G1Hx].copy() for G1Hx in YKHO.containers}\n o8Kj.update({G1Hx: U7YL.deepcopy(YKHO.__dict__[G1Hx]) for G1Hx in YKHO.shared})\n return YKHO.__class__(**o8Kj)",
"def i3ak(YKHO):\n return W3i8(YKHO)",
"def jth9(YKHO):\n return AkZY.deepcopy(YKHO)",
"de... | [
"0.7788241",
"0.76535076",
"0.7606447",
"0.7604285",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.7549966",
"0.75445724",
... | 0.0 | -1 |
Yield key value pairs in sorted order. | def DumB(YKHO):
for H5ew in YKHO._sorted:
yield (H5ew, YKHO._map[H5ew]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n if YKHO._len_keys == 1:\n yield from YKHO._dict.keys()\n else:\n for H5ew in YKHO._dict.keys():\n yield tuple(sorted(list(H5ew)))",
"def Vs4Q(YKHO):\n for H5ew in sorted(YKHO.keys):\n yield (H5ew, YKHO[H5ew])",
"def Vs4Q(YKHO):\n for WKvO in sorted(... | [
"0.7231955",
"0.7230859",
"0.7198143",
"0.69616336",
"0.68760335",
"0.6718476",
"0.6356944",
"0.6347301",
"0.63008046",
"0.6227649",
"0.61887306",
"0.618329",
"0.61615235",
"0.6150183",
"0.6142618",
"0.6128285",
"0.6111235",
"0.6091085",
"0.60533196",
"0.60402775",
"0.6022792... | 0.7067611 | 3 |
Return a shallow copy the interval set. | def jth9(YKHO):
return zGgl(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return _izy(YKHO.__begin.copy(), YKHO.__end.copy())",
"def jth9(YKHO) -> 'RangeSet':\n return Ly3T(YKHO)",
"def jth9(YKHO):\n return wHLO([Mkmy[:] for Mkmy in YKHO.values], empty_loc=YKHO.empty_loc)",
"def jth9(YKHO):\n Mkmy = spPB()\n Mkmy.rewrites = YKHO.rewrites.copy()\n ... | [
"0.782539",
"0.73891133",
"0.6887479",
"0.67976564",
"0.6712033",
"0.66005105",
"0.64806855",
"0.6475658",
"0.6470166",
"0.6459816",
"0.6395403",
"0.6345681",
"0.63421625",
"0.6339084",
"0.6339084",
"0.6339084",
"0.6339084",
"0.6339084",
"0.6339084",
"0.6339084",
"0.6339084",... | 0.8764039 | 0 |
'132456' > [(1, 'path1.jpg'), (2, 'path2.jpg'), (3, 'path3.jpg')] | def i_TX(YKHO, e4JM):
IDBL, Wswm = next(((IDBL, IDBL.Matricule(e4JM).to('AmcStudentId')) for IDBL in YKHO.projects_by_serie.values() if IDBL.Matricule(e4JM).exists('AmcStudentId')))
return [(int(mLGw), Ux0P.replace('%PROJET', IDBL.path)) for mLGw, Ux0P in IDBL.dbs['capture'].execute('select page, src from captu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z9xr(pmON: str) -> list:\n return list((Hy7s.path.join(pmON, eHNT) for eHNT in Hy7s.listdir(pmON) if eHNT.endswith('.jpg')))",
"def cGUr(pmON):\n Aofo = []\n sdCG, J3uN = Hy7s.path.split(pmON)\n while J3uN != '':\n Aofo.insert(0, J3uN)\n sdCG, J3uN = Hy7s.path.split(sdCG)\n Aofo.... | [
"0.6150268",
"0.6139573",
"0.6003196",
"0.5991646",
"0.596883",
"0.5840479",
"0.58061945",
"0.57994175",
"0.57634705",
"0.5670809",
"0.5631022",
"0.5612925",
"0.56098044",
"0.5597413",
"0.55380136",
"0.5520958",
"0.5518147",
"0.5514622",
"0.5502538",
"0.5502388",
"0.550027",
... | 0.0 | -1 |
Initialize an ImageGenerator instance. | def FIMM(YKHO, WKvO, LVAh):
YKHO.x = oyIN.copy(WKvO)
YKHO.y = LVAh
YKHO.N, YKHO.height, YKHO.width, bGrB = WKvO.shape
YKHO.nPixelsTranslated = None
YKHO.rotDegree = None
YKHO.is_horizontal_flip = False
YKHO.is_vertical_flip = False
YKHO.is_add_noise = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, T9GY: bool=True):\n if not Hy7s.path.exists(PLuS):\n Hy7s.makedirs(PLuS)\n YKHO._manifest_factory = y0mx()\n YKHO._manifest_factory.set_base_prezi_uri(rker)\n YKHO._manifest_factory.set_base_prezi_dir(PLuS)\n YKHO._manifest_factory.set_base_image_uri(biF3)\n YKHO._manifest_f... | [
"0.66102874",
"0.6580374",
"0.6580374",
"0.6580374",
"0.6358682",
"0.623037",
"0.61523485",
"0.614599",
"0.61459565",
"0.61243206",
"0.612273",
"0.60627025",
"0.6054077",
"0.6020868",
"0.59752",
"0.59713435",
"0.5951723",
"0.5897793",
"0.5897079",
"0.5884362",
"0.5856622",
... | 0.58529454 | 21 |
Generator function to convert a PIL image to 16bit 565 RGB bytes. | def oIDR(LNo8):
lEHr = LNo8.convert('RGB').load()
TVTK, H2v2 = LNo8.size
for LVAh in range(H2v2):
for WKvO in range(TVTK):
Mkmy, Oa1e, Fg_i = lEHr[WKvO, LVAh]
qfpW = d7Eb(Mkmy, Oa1e, Fg_i)
yield (qfpW >> 8 & 255)
yield (qfpW & 255) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Poig(LNo8):\n yzQ0, MKlR = LNo8.size\n for LVAh in range(MKlR):\n for WKvO in range(yzQ0):\n BWXx = D2f5(LNo8.getpixel((WKvO, LVAh)))\n yield BWXx\n raise StopIteration",
"def h_5o(YKHO, yzQ0, MKlR, LNo8):\n qZ8S = epAf.ceil(yzQ0 / 8)\n IcBZ = bytearray()\n for ... | [
"0.620823",
"0.5748702",
"0.5568134",
"0.54716986",
"0.5466298",
"0.54249287",
"0.5348286",
"0.5305571",
"0.530067",
"0.5288059",
"0.5280445",
"0.52762127",
"0.5229831",
"0.5223723",
"0.5220092",
"0.51701254",
"0.51684964",
"0.51524526",
"0.51485884",
"0.5146951",
"0.5143614"... | 0.6660582 | 0 |
Clear the image buffer to the specified RGB color (default black). | def Y7Bk(YKHO, qfpW=(0, 0, 0)):
TVTK, H2v2 = YKHO.buffer.size
YKHO.buffer.putdata([qfpW] * (TVTK * H2v2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7Bk(YKHO, *qIxc):\n z13o = (0, 0, 0)\n if len(qIxc) == 0:\n OfK8 = z13o\n elif len(qIxc) == 1:\n OfK8 = qIxc[0]\n elif len(qIxc) == 3:\n OfK8 = qIxc\n else:\n raise ValueError('Pixel arguments must be given as (r, g, b) or r, g, b')\n YKHO.set_pixels([OfK8] * 64)"... | [
"0.74264044",
"0.7001992",
"0.68183446",
"0.67490363",
"0.6591455",
"0.64442015",
"0.6412805",
"0.6224743",
"0.62203544",
"0.62005705",
"0.6143208",
"0.5934447",
"0.5922529",
"0.58492565",
"0.5807059",
"0.5781866",
"0.5771528",
"0.5742031",
"0.5732281",
"0.5732281",
"0.572022... | 0.79759204 | 0 |
Return a PIL ImageDraw instance for 2D drawing on the image buffer. | def JmFt(YKHO):
return nuov.Draw(YKHO.buffer) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pBYm(Xn71, Tuqy=None):\n return nuov(Xn71)",
"def cMYb(YKHO):\n LNo8 = hnIv.new('1', (8, 16))\n JmFt = nuov.Draw(LNo8)\n for WKvO in Ni9Y(8):\n for LVAh in Ni9Y(16):\n JmFt.point((WKvO, LVAh), YKHO.get_pixel(WKvO, LVAh))\n return LNo8",
"def pBYm(*qIxc, **B2fa):\n return... | [
"0.6389655",
"0.57493675",
"0.5472395",
"0.5449045",
"0.54278857",
"0.5398147",
"0.5348836",
"0.53315246",
"0.5250177",
"0.5240005",
"0.5211034",
"0.516861",
"0.51537",
"0.5129788",
"0.51280314",
"0.50953037",
"0.5077803",
"0.502071",
"0.5018067",
"0.49811712",
"0.49748406",
... | 0.67710567 | 0 |
Path to the AGASC directory. This returns the ``AGASC_DIR`` environment variable if defined, otherwise ``$SKA/data/agasc``. | def n_CW():
if 'AGASC_DIR' in Hy7s.environ:
yvT9 = GkAb(Hy7s.environ['AGASC_DIR'])
else:
yvT9 = GkAb(Hy7s.environ['SKA'], 'data', 'agasc')
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TZHf():\n pmON = Hy7s.path.join(hnLW(), 'awg')\n Hy7s.makedirs(pmON, exist_ok=True)\n return pmON",
"def EKrq(YKHO):\n return khtY.join(YKHO.root_dir, 'fasta')",
"def nMFQ():\n return Hy7s.getenv('APACHESRC')",
"def zZJv():\n KfRp = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAK... | [
"0.6418201",
"0.61758137",
"0.6166837",
"0.6136397",
"0.59707874",
"0.5955374",
"0.582124",
"0.57593846",
"0.55971885",
"0.5539885",
"0.55095124",
"0.5486886",
"0.54800457",
"0.5461718",
"0.54264665",
"0.5392617",
"0.53507036",
"0.53011197",
"0.52564883",
"0.5245962",
"0.5216... | 0.8444948 | 0 |
Implement gradient descent using full value of the gradient. | def EWqU(EcVT, fuBA, _hZ2=1e-06, vC9B=1, Rf07=0.0001, wvmV=1000):
UqYS = oyIN.zeros(EcVT.shape[1])
for KCHu in range(wvmV):
pass
return UqYS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def beoA(YKHO, EcVT, LVAh, HasU, b0Ix, Ep8u):\n Z2LE = EcVT.shape[1]\n eAYh = EcVT.shape[0]\n LVAh = LVAh.reshape(eAYh, 1)\n XcU5 = oyIN.random.rand(Z2LE, 1)\n T6Gf = []\n for p6S0 in range(HasU):\n xAeC = oyIN.arange(0, len(EcVT))\n oyIN.random.shuffle(xAeC)\n EcVT = EcVT[xA... | [
"0.76011115",
"0.7493477",
"0.7356732",
"0.7341731",
"0.7323074",
"0.7304009",
"0.7295334",
"0.71896416",
"0.7178144",
"0.7173646",
"0.71432936",
"0.71413267",
"0.7133647",
"0.7102578",
"0.7095757",
"0.7084161",
"0.70731115",
"0.70658535",
"0.70337963",
"0.70021755",
"0.70001... | 0.7044809 | 18 |
Implement gradient descent using stochastic approximation of the gradient. | def FjY4(EcVT, fuBA, _hZ2=0.0001, vC9B=1, Rf07=0.01, wvmV=1000):
UqYS = oyIN.ones(EcVT.shape[1])
for KCHu in range(wvmV):
pass
return UqYS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EWqU(YKHO, EcVT, RHJb, yJiH, iter):\n aden = []\n tSJp = [EcVT]\n dfHy = 0\n BESI = aDi_.diff(YKHO.gdfunc)\n WKvO = aDi_.Symbol('x')\n BESI = aDi_.lambdify(WKvO, BESI)\n Xsfr = RHJb\n Wr3h = EcVT\n kNbz = Wr3h - Xsfr * BESI(Wr3h)\n tSJp.append(kNbz)\n for YRbF in range(iter):\n... | [
"0.7556287",
"0.7508106",
"0.7506085",
"0.75046176",
"0.74654555",
"0.74149",
"0.7373778",
"0.7299866",
"0.71730685",
"0.7159873",
"0.7131653",
"0.7109182",
"0.70791435",
"0.70521635",
"0.70216507",
"0.6963935",
"0.6935528",
"0.6903045",
"0.6898706",
"0.6883422",
"0.6876296",... | 0.7193556 | 8 |
Set value of the widget | def Uq4p(YKHO, BWXx):
YKHO._value = BWXx if BWXx is not None else _qLf(YKHO._default)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mokr(YKHO, BWXx):\n YKHO.setText(str(BWXx))",
"def j6Nn(YKHO, BWXx):\n if YKHO.notebook:\n YKHO.widget.value = BWXx\n elif hasattr(YKHO.widget, 'setValue'):\n YKHO.widget.setValue(BWXx)\n elif hasattr(YKHO.widget, 'setCurrentText'):\n YKHO.widget.setCurrentText(BWXx)\n eli... | [
"0.8263928",
"0.8263786",
"0.80649376",
"0.7906129",
"0.78084457",
"0.7661165",
"0.7550678",
"0.7547526",
"0.7527618",
"0.74979734",
"0.7495041",
"0.74928564",
"0.74928564",
"0.74928564",
"0.7449767",
"0.7374522",
"0.7352217",
"0.7297942",
"0.7292586",
"0.7270159",
"0.7268026... | 0.0 | -1 |
Get UID of the widget | def PObu(YKHO) -> str:
return YKHO._uid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PObu(YKHO):\n return gMdk(YKHO.tag('uid'))",
"def PObu(YKHO):\n return YKHO.__uid",
"def fRFe(YKHO):\n return YKHO._uid",
"def fRFe(YKHO):\n return YKHO._uid",
"def unpH(YKHO):\n return YKHO.uid",
"def PObu(YKHO):\n return YKHO._uid",
"def PObu(YKHO) -> str:\n return qe4Y.get(Y... | [
"0.7162705",
"0.70754755",
"0.7059123",
"0.7059123",
"0.69492716",
"0.68965566",
"0.6842303",
"0.6821234",
"0.67746645",
"0.67746645",
"0.67746645",
"0.6753258",
"0.6745724",
"0.6687966",
"0.668614",
"0.6642791",
"0.6642791",
"0.6588152",
"0.65770674",
"0.6452688",
"0.6425834... | 0.67902994 | 8 |
Get stack secrets from AWS Secrets Manager | def R3Vg(cuiw, rTi7):
_iYF = cuiw.client('secretsmanager')
FXSn = qQXR.loads(_iYF.get_secret_value(SecretId=rTi7)['SecretString'])
i26t = []
for H5ew, BWXx in FXSn.items():
Iohz = ['TABLE_NAME', 'DATATRUST_KEY', 'JWT_SECRET_KEY', 'DB_URL', 'RPC_PATH', 'LOG_LEVEL', 'CELERY_BROKER_URL', 'CELERY_RE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R3Vg(eOtH):\n try:\n return h9xa().userinfo(eOtH)['attributes'].get('secrets')\n except Oq9A as ke:\n bo34.error('Keycloak error: {0}').format(PYpn)\n raise Bx6I.TransferError\n except KeyError as ke:\n bo34.error('Secrects not found in token.')\n raise Bx6I.Transfer... | [
"0.687092",
"0.6862838",
"0.67613345",
"0.67612904",
"0.6738275",
"0.6707533",
"0.6665517",
"0.6653283",
"0.6589323",
"0.6560593",
"0.65263146",
"0.64855266",
"0.6449559",
"0.6406883",
"0.63925076",
"0.639028",
"0.6369368",
"0.63691497",
"0.6348001",
"0.6340888",
"0.6338398",... | 0.7030895 | 0 |
Take the block size and determine the block range for the subnet in question | def acIn(lZ4A, e9pC):
print('-' * 20 + ' find_block started')
K_dq = e9pC
XsnU = 0
QWlJ = {}
QWlJ[0] = K_dq
while XsnU < 255:
XsnU = XsnU + K_dq
QWlJ[XsnU] = XsnU + K_dq - 1
for H5ew in QWlJ.keys():
if lZ4A >= H5ew and lZ4A <= QWlJ[H5ew]:
hs57 = H5ew
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fYNv(GRZp):\n mrPm = {18: [2, 2, 2, 2], 34: [3, 4, 6, 3], 50: [3, 4, 6, 3], 101: [3, 4, 23, 3], 152: [3, 8, 36, 3], 200: [3, 24, 36, 3]}\n try:\n return mrPm[GRZp]\n except KeyError:\n XObx = 'Could not find layers for selected Resnet size.\\nSize received: {}; sizes allowed: {}.'.format... | [
"0.67389846",
"0.6703691",
"0.66716045",
"0.64908487",
"0.6447412",
"0.6374348",
"0.6291459",
"0.6086949",
"0.6078042",
"0.58520687",
"0.58262855",
"0.5826254",
"0.58185756",
"0.5774167",
"0.5772086",
"0.57550997",
"0.57529444",
"0.5722806",
"0.5673859",
"0.56660384",
"0.5660... | 0.66279286 | 3 |
/ Home (welcome msg) | def tk5Y():
if QePW.headers['Accept'] == 'application/json':
return ('Welcome\n\n', 200)
else:
return vKnz(nKyW('index')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return 'Hello!'",
"def kZiy():\n print('This is the root')\n return 'Manga root, this is where some front end would go on a server'",
"def kZiy():\n return 'hello, world'",
"def kZiy():\n return TvZl('index.html', title='Automation Center', year=qcWV.now().year, message='Welcome ... | [
"0.7886187",
"0.78705454",
"0.7813651",
"0.7776198",
"0.77555084",
"0.7721609",
"0.7721187",
"0.7576359",
"0.7569369",
"0.7485951",
"0.7485951",
"0.74841505",
"0.74787974",
"0.7476996",
"0.7475403",
"0.74575335",
"0.74482054",
"0.7435764",
"0.74253047",
"0.74192727",
"0.74190... | 0.0 | -1 |
/about Display about page | def vsuQ():
bo34.debug('[FLASKWEB /about]')
if QePW.headers['Accept'] == 'application/json':
return vKnz(nKyW('staticFile', filename='rest.txt'))
else:
return TvZl('about.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('/home/about.html')",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, me... | [
"0.82070446",
"0.82011676",
"0.8172304",
"0.8054953",
"0.80515885",
"0.79975355",
"0.7979664",
"0.7973242",
"0.7937197",
"0.7935347",
"0.79228884",
"0.79041106",
"0.79041106",
"0.79041106",
"0.79041106",
"0.79041106",
"0.79041106",
"0.79041106",
"0.79041106",
"0.79041106",
"0... | 0.0 | -1 |
Get the well to index mapping for the supplied layout | def yr93(YKHO, YLpv):
return {G1Hx: tuple(Ty9i) for G1Hx, Ty9i in YKHO['well2coord'][YKHO['layout_format'][YLpv]].items()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wFVb(YKHO, YLpv: str) -> dict:\n return {Ty9i: G1Hx for G1Hx, Ty9i in YKHO['well2index'][YKHO['layout_format'][YLpv]].items()}",
"def yZ59(YKHO, qmWM):\n pass",
"def Z6DC(YKHO):\n return {'kamada_kawai_layout': fqpX, 'fruchterman_reingold_layout': cw_2, 'spectral_layout': QNc_}",
"def zAtC(NKRf=... | [
"0.7496455",
"0.6372463",
"0.58999753",
"0.5649408",
"0.5591524",
"0.5395",
"0.5260546",
"0.5252853",
"0.52322894",
"0.5229908",
"0.5173371",
"0.5148311",
"0.5147562",
"0.5130854",
"0.5120828",
"0.5115123",
"0.51135224",
"0.51135224",
"0.510836",
"0.50952727",
"0.50927615",
... | 0.76162016 | 0 |
Merchant Benchmark This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def PPhx(YKHO, RZqj, **B2fa):
B2fa['_return_http_data_only'] = True
if B2fa.get('callback'):
return YKHO.postmerchant_benchmark_with_http_info(RZqj, **B2fa)
else:
nPrm = YKHO.postmerchant_benchmark_with_http_info(RZqj, **B2fa)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MYvB(YKHO, RZqj, **B2fa):\n HhGF = ['merchant_benchmarkpost_payload']\n HhGF.append('callback')\n HhGF.append('_return_http_data_only')\n HhGF.append('_preload_content')\n HhGF.append('_request_timeout')\n NArs = locals()\n for H5ew, wEf2 in BVGD(NArs['kwargs']):\n if H5ew not in Hh... | [
"0.6901482",
"0.57959634",
"0.5379906",
"0.50862104",
"0.5032575",
"0.4949778",
"0.49355474",
"0.478718",
"0.47678483",
"0.47242725",
"0.46478084",
"0.4641266",
"0.46314514",
"0.45942405",
"0.45714748",
"0.4453758",
"0.44234872",
"0.44184527",
"0.44178113",
"0.44111922",
"0.4... | 0.56433696 | 2 |
Merchant Benchmark This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def MYvB(YKHO, RZqj, **B2fa):
HhGF = ['merchant_benchmarkpost_payload']
HhGF.append('callback')
HhGF.append('_return_http_data_only')
HhGF.append('_preload_content')
HhGF.append('_request_timeout')
NArs = locals()
for H5ew, wEf2 in BVGD(NArs['kwargs']):
if H5ew not in HhGF:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T1WL(YKHO):\n bo34.info(YKHO.benchmark.__doc__)\n return YKHO.run(YKHO.benchmark_profile())",
"def PPhx(YKHO, RZqj, **B2fa):\n B2fa['_return_http_data_only'] = True\n if B2fa.get('callback'):\n return YKHO.postmerchant_benchmark_with_http_info(RZqj, **B2fa)\n else:\n nPrm = YKHO.... | [
"0.57964253",
"0.56427693",
"0.5378593",
"0.5085103",
"0.5032316",
"0.4949648",
"0.49344343",
"0.47874528",
"0.47683173",
"0.47250286",
"0.4648016",
"0.4639908",
"0.4631494",
"0.45932716",
"0.4573163",
"0.44536352",
"0.44227803",
"0.44188625",
"0.4417919",
"0.44099665",
"0.44... | 0.6901023 | 0 |
Accept a string that is a number that contains commas in it as input, and return as number as output. 1. if want to check that input is string type, if false print "Please enter a string" return boolean False value 2. else reassign x to a copy with replace method to change commas to underscores. This will allow python ... | def psFD(WKvO):
if type(WKvO) != str:
print('Please enter a string')
return False
else:
WKvO = float(WKvO.replace(',', ''))
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TquC(KCHu):\n KCHu = KCHu.replace(',', '')\n return int(KCHu)",
"def ye72(BWXx):\n try:\n float(BWXx.replace(',', ''))\n except ValueError:\n return False\n return True",
"def Ym1z(vIwR, hlel):\n vIwR = EQOQ(vIwR)\n if not vIwR[0].isdigit() and (not vIwR[1].isdigit()):\n ... | [
"0.6456841",
"0.62302864",
"0.6201075",
"0.60826397",
"0.60624504",
"0.6061707",
"0.5982972",
"0.5977725",
"0.5946921",
"0.59380096",
"0.5930463",
"0.588775",
"0.58409303",
"0.58380115",
"0.5825016",
"0.58159345",
"0.5809624",
"0.5802421",
"0.58023137",
"0.5790378",
"0.577046... | 0.7331774 | 0 |
Retrieves the SSH entry's passphrase (from the Keepass password field) >>> entry = KP_DB.find_entries_by_path('embedded_keys/id_rsa')[0] >>> ssh_entry = SshEntry(KP_DB,entry) >>> ssh_entry.passphrase.decode() == entry.password True | def G32E(YKHO):
jTXt = YKHO.entry.password
if jTXt:
return YKHO.entry.password.encode('UTF-8')
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s4XW(YKHO):\n x03U = aTOD.get_password(YKHO.keyring_service_name, 'private_key')\n if x03U is not None:\n return WR89.b64decode(x03U)\n else:\n return None",
"def G32E(jTXt):\n wzkt = int(ITS7.time())\n H5ew = hqsM(jTXt).hexdigest()\n A0cm = hqsM(str(wzkt) + H5ew).hexdigest()\... | [
"0.6186439",
"0.580254",
"0.5719748",
"0.57165724",
"0.5687516",
"0.5640266",
"0.55456614",
"0.5474176",
"0.5474158",
"0.5451181",
"0.5404241",
"0.54017514",
"0.5397471",
"0.5372742",
"0.5372742",
"0.537041",
"0.5367618",
"0.5357364",
"0.5343646",
"0.5339588",
"0.53367853",
... | 0.731931 | 0 |
Calculate the traffic concentration at the point (x, y). | def aLQ1(hlZM, krbJ, WKvO, LVAh, Jdcv):
XP5J = PvyL(WKvO, LVAh)
O8Y4, kZIt = LqSj(XP5J, hlZM)
if kZIt > 60:
return 'e1'
if kZIt < 3.5:
kZIt = 3.5
Y3YH = 0.62
ywwl = int(O8Y4['properties']['intensity'])
gCxj = float(O8Y4['properties']['f_cong'])
IKYO = float(O8Y4['properti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iIih(WKvO, LVAh):\n assert len(WKvO.shape) == 2 and WKvO.shape == LVAh.shape\n q9GX = oyIN.sqrt(oyIN.sum(oyIN.square(oyIN.diff(WKvO, axis=0)), axis=0) + 1e-09)\n zAdB = oyIN.sqrt(oyIN.sum(oyIN.square(oyIN.diff(LVAh, axis=0)), axis=0) + 1e-09)\n Csk6 = oyIN.sqrt(oyIN.sum(oyIN.square(WKvO - LVAh), ax... | [
"0.63421494",
"0.6219757",
"0.6176237",
"0.6103111",
"0.5964228",
"0.59570724",
"0.59099114",
"0.5883368",
"0.58019954",
"0.5774858",
"0.57275665",
"0.5700003",
"0.56933373",
"0.5689955",
"0.56575173",
"0.56562144",
"0.56527644",
"0.5638766",
"0.5619432",
"0.56060815",
"0.560... | 0.5707611 | 11 |
Round a number to n decimal places (same as 'rounddown' in excel). | def q_4u(exwG, phJ9=0):
pSDG = 10 ** phJ9
return int(exwG * pSDG) / pSDG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HlDX(exwG, rhd_):\n i0Uw = 0.5 if exwG >= 0 else -0.5\n return int(exwG / rhd_ + i0Uw) * rhd_",
"def GcNB(mLGw, exwG):\n mLGw = float(mLGw)\n mLGw = round(mLGw, exwG)\n return mLGw",
"def L9Vm(WKvO, exwG=8):\n exwG = 1 + exwG - int(oyIN.floor(oyIN.log10(abs(WKvO) + 0.1)))\n return roun... | [
"0.7621153",
"0.7491323",
"0.7403502",
"0.7221512",
"0.7186418",
"0.71188676",
"0.706864",
"0.7044281",
"0.6993371",
"0.69815147",
"0.69485044",
"0.6904951",
"0.6862087",
"0.6807377",
"0.6804079",
"0.67433345",
"0.67120963",
"0.66838527",
"0.6665037",
"0.6659999",
"0.66458374... | 0.75088334 | 1 |
Compute empirical cumulative distribution function values for one sample as input | def hzm0(YKHO, d6Md):
or8S = oyIN.searchsorted(YKHO.quantiles, d6Md, side='left')
if or8S >= YKHO.n - 1:
return or8S / YKHO.n
if oyIN.abs(d6Md - YKHO.quantiles[or8S - 1]) < oyIN.abs(d6Md - YKHO.quantiles[or8S]):
return (or8S - 1) / YKHO.n
else:
return or8S / YKHO.n | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHtf(YKHO, EcVT):\n raise NotImplementedError",
"def x1Q9(MzO8):\n return XTiz.cumsum(MzO8) - 0.5 * MzO8",
"def Zt0j(nJ9F, yzQ0=None):\n exwG = len(nJ9F)\n if yzQ0 is None:\n yzQ0 = oyIN.ones(exwG) / exwG\n else:\n yzQ0 = yzQ0 / oyIN.sum(yzQ0)\n XP5J = oyIN.cumsum(oyIN.r_[[0... | [
"0.7397517",
"0.70215935",
"0.6962007",
"0.68533665",
"0.6810133",
"0.6802023",
"0.67893445",
"0.67620194",
"0.66876876",
"0.6686204",
"0.66311973",
"0.6596355",
"0.659541",
"0.65828246",
"0.6574668",
"0.65650684",
"0.6555707",
"0.65441126",
"0.6542468",
"0.653091",
"0.652146... | 0.0 | -1 |
Compute empirical cumulative distribution function values for an array as input | def UkA1(YKHO, ezWE):
Ylbp = oyIN.zeros_like(ezWE)
for d6pt, BWXx in oyIN.ndenumerate(ezWE):
Ylbp[d6pt] = YKHO.calc(BWXx)
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zt0j(ezWE, **B2fa):\n \"\"\" arr is assumed to be a single dimension array \"\"\"\n iBUy = True\n F287 = False\n if 'issorted' in B2fa:\n iBUy = B2fa['issorted']\n if 'zdisp' in B2fa:\n F287 = B2fa['zdisp']\n if iBUy == False:\n ezWE.sort()\n exwG = float(len(ezWE))\n ... | [
"0.72021645",
"0.70709264",
"0.7043568",
"0.7021855",
"0.6992865",
"0.6975908",
"0.6858684",
"0.6761031",
"0.6702512",
"0.6680964",
"0.6610432",
"0.65475047",
"0.64706975",
"0.6442887",
"0.6425232",
"0.6404292",
"0.6349571",
"0.6334768",
"0.6333572",
"0.63296044",
"0.6327689"... | 0.64799535 | 12 |
Compute empirical cumulative distribution function values for one sample as input | def hzm0(YKHO, d6Md):
return oyIN.sum(YKHO.values <= d6Md) / YKHO.n | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHtf(YKHO, EcVT):\n raise NotImplementedError",
"def x1Q9(MzO8):\n return XTiz.cumsum(MzO8) - 0.5 * MzO8",
"def Zt0j(nJ9F, yzQ0=None):\n exwG = len(nJ9F)\n if yzQ0 is None:\n yzQ0 = oyIN.ones(exwG) / exwG\n else:\n yzQ0 = yzQ0 / oyIN.sum(yzQ0)\n XP5J = oyIN.cumsum(oyIN.r_[[0... | [
"0.739791",
"0.7022486",
"0.69615877",
"0.6851785",
"0.6809857",
"0.6801702",
"0.6791322",
"0.67625046",
"0.6689006",
"0.6686785",
"0.66317624",
"0.6597271",
"0.6596943",
"0.6582494",
"0.65751916",
"0.65666974",
"0.65557766",
"0.6545425",
"0.6542906",
"0.65301275",
"0.6522582... | 0.0 | -1 |
Compute empirical cumulative distribution function values for an array as input | def UkA1(YKHO, ezWE):
Ylbp = oyIN.zeros_like(ezWE)
for d6pt, BWXx in oyIN.ndenumerate(ezWE):
Ylbp[d6pt] = YKHO.calc(BWXx)
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zt0j(ezWE, **B2fa):\n \"\"\" arr is assumed to be a single dimension array \"\"\"\n iBUy = True\n F287 = False\n if 'issorted' in B2fa:\n iBUy = B2fa['issorted']\n if 'zdisp' in B2fa:\n F287 = B2fa['zdisp']\n if iBUy == False:\n ezWE.sort()\n exwG = float(len(ezWE))\n ... | [
"0.7201239",
"0.7069232",
"0.70435184",
"0.7019728",
"0.6992622",
"0.6974017",
"0.68579507",
"0.67597365",
"0.67012197",
"0.6678614",
"0.6608768",
"0.65473616",
"0.6469565",
"0.64429563",
"0.64256",
"0.6402631",
"0.6347513",
"0.63332605",
"0.633326",
"0.63282186",
"0.63270676... | 0.6479759 | 13 |
Basic HTTP auth decorator | def NtZr(eHNT):
def GDMi(QePW, *qIxc, **B2fa):
if QePW.META.get('HTTP_AUTHORIZATION', False):
oJ9c, Jpbe = QePW.META['HTTP_AUTHORIZATION'].split(' ')
Jpbe = WR89.b64decode(Jpbe)
NtEF, jTXt = Jpbe.split(':')
CBIr = NLCy(username=NtEF, password=jTXt)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mNmL(JfyU):\n\n @zaGL(JfyU)\n def xv2J(QePW, *qIxc, **B2fa):\n if QePW.META.has_key('HTTP_AUTHORIZATION'):\n try:\n pDK6, Jpbe = QePW.META['HTTP_AUTHORIZATION'].split(' ', 1)\n if pDK6.lower() == 'basic':\n Jpbe = Jpbe.strip().decode('bas... | [
"0.8461793",
"0.79010516",
"0.7828926",
"0.78109825",
"0.7766358",
"0.7603452",
"0.7481247",
"0.7302498",
"0.7254346",
"0.7246135",
"0.721293",
"0.7180321",
"0.7180321",
"0.7162722",
"0.7149473",
"0.71488553",
"0.71381325",
"0.7052642",
"0.70506674",
"0.7043808",
"0.6986596",... | 0.79767287 | 1 |
Record damage on this chunk. | def a033(YKHO, jNOo):
if YKHO.all_damaged:
return
WKvO, LVAh, epBp = jNOo
YKHO.damaged.add(jNOo)
if len(YKHO.damaged) > 176:
YKHO.all_damaged = True
YKHO.damaged.clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v1EV(YKHO, a033):\n YKHO.health -= a033",
"def a033(YKHO, a033):\n return YKHO.damage",
"def gHN0(YKHO, MBGy, yDqo=1):\n YKHO.game.hit_sound.play()\n dmjy = 100.0 / float(YKHO.defense)\n MBGy -= YKHO.absorbtion\n MBGy *= dmjy\n YKHO.hp[0] -= MBGy",
"def gHN0(YKHO, a033):\n qXxR = ... | [
"0.6881888",
"0.6878773",
"0.68268955",
"0.673835",
"0.6554855",
"0.6454833",
"0.644536",
"0.643693",
"0.63263965",
"0.6299233",
"0.6298182",
"0.62979186",
"0.6210596",
"0.62057006",
"0.61965513",
"0.6145803",
"0.6117639",
"0.60664845",
"0.60441244",
"0.60277826",
"0.60209",
... | 0.6006483 | 21 |
Stop the message bus. This bus may not be started again. Client threads blocked reading on the bus will return immediately with no message. | def JCyR(YKHO, vYBr=None):
with YKHO._lock:
if not YKHO.started:
return
YKHO.started = False
YKHO._logger.debug('Stopping MessageBus (%s) on endpoint %s', YKHO.busIdentity, YKHO._listeningEndpoint)
YKHO._messagesToSendQueue.put(DQGE)
YKHO._scheduleEvent(YKHO.eventType.Stopped... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.keep_running = False",
"def JCyR(YKHO) -> None:\n YKHO._stream.stop()",
"def p9Hy(YKHO):\n if YKHO.connected:\n YKHO.messenger.stop()\n YKHO.connected = False",
"def JCyR(YKHO):\n YKHO.stream.stop()\n YKHO.running = False",
"def JCyR(YKHO) -> None:\n Y... | [
"0.7468119",
"0.7179653",
"0.71201897",
"0.7048666",
"0.7034218",
"0.7004553",
"0.69817847",
"0.6973032",
"0.6940277",
"0.69327986",
"0.6923509",
"0.68819636",
"0.6865356",
"0.68459666",
"0.6816966",
"0.677514",
"0.6772402",
"0.67719364",
"0.6770047",
"0.6761974",
"0.6757493"... | 0.64135045 | 62 |
Forward pass of a full RNN, containing one or many single or bidirectional layers. Implemented for an abstract cell type. | def KVH6(YKHO, input: Union[Tensor, PackedSequence], ZXcG: Optional[Union[Tensor, Tuple[Tensor, Tensor]]]=None) -> AzJI[uLKX[llWB, qYto], uLKX[llWB, AzJI[llWB, llWB]]]:
kxuu = 2 if YKHO.bidirectional else 1
UZ3Y = isinstance(input, qYto)
if UZ3Y:
WbAn, oAzn, IUIM, oMQx = input
yDqo, begE = (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pftB(YKHO):\n ZylS.summary.image('image', tensor=ZylS.reshape(YKHO.x, (YKHO.batch_size, 28, 28, 1)), max_outputs=10)\n WKvO = YKHO.x\n MKlR = ZylS.nn.relu(fhcK.fully_connected(WKvO, num_outputs=YKHO.input_size // 2, activation_fn=None))\n YKHO.logits = fhcK.fully_connected(MKlR, num_outputs=10, act... | [
"0.64724463",
"0.6471909",
"0.6341677",
"0.6338651",
"0.6336419",
"0.6327723",
"0.6233987",
"0.62312984",
"0.6222129",
"0.6217563",
"0.62062126",
"0.6196325",
"0.6195106",
"0.6194396",
"0.6184599",
"0.6183137",
"0.617987",
"0.6168586",
"0.6159904",
"0.6144455",
"0.61414677",
... | 0.0 | -1 |
Forward pass of a single RNN layer (one direction). Implemented for an abstract cell type. | def xXRQ(YKHO, WKvO: Union[Tensor, PackedSequence], NgLN: Tensor, K5j2: Optional[Tensor], oAzn: Tensor, VmPb: DPRNNCellBase, BN_u: int, q4aw: int, UZ3Y: bool, zbmA: bool) -> AzJI[uLKX[llWB, x1iM[llWB]], llWB, llWB]:
if UZ3Y:
if zbmA:
WKvO = tuple(reversed(WKvO))
oAzn = oAzn.flip(0)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, pKvt):\n YKHO.rnn.flatten_parameters()\n RrI8, bGrB = YKHO.rnn(pKvt.transpose(1, -1))\n RrI8 = YKHO.dropout(RrI8)\n return RrI8.transpose(1, -1)",
"def jMXL(YKHO, WKvO):\n pass",
"def KVH6(YKHO, rNYq: Tensor) -> llWB:\n pass",
"def pftB(YKHO):\n ZylS.summary.image('image',... | [
"0.64538944",
"0.64123833",
"0.6403103",
"0.639455",
"0.6351451",
"0.6337982",
"0.6325215",
"0.63068134",
"0.62835765",
"0.6283454",
"0.6267648",
"0.6265044",
"0.62573594",
"0.62373537",
"0.62228364",
"0.6177547",
"0.6145351",
"0.614506",
"0.61440986",
"0.61334467",
"0.613231... | 0.0 | -1 |
File duration in sec | def O74l(YKHO):
if getattr(YKHO, '_duration_cache', None):
return YKHO._duration_cache
WbTE = Drlr(L6EP(M9e8(YKHO))).get('duration')
if not WbTE:
raise Exception(u'Not an audio file')
else:
WbTE = WbTE.seconds
YKHO._duration_cache = WbTE
return WbTE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbTE(qaEx):\n oUZx = ['ffprobe', '-show_entries', 'format=duration', '-i', qaEx]\n bCYe = H4yH.Popen(oUZx, stdout=H4yH.PIPE, stderr=H4yH.STDOUT)\n yvT9, P1dF = bCYe.communicate()\n cUbG = None if P1dF else KY0U.search(yvT9.decode('utf-8'))\n if cUbG is None:\n return 0\n u54L = float(c... | [
"0.73763436",
"0.7301986",
"0.71262586",
"0.7058381",
"0.7028466",
"0.7028466",
"0.70093304",
"0.6955006",
"0.68991596",
"0.6896644",
"0.6864266",
"0.6848633",
"0.682311",
"0.6816091",
"0.67986226",
"0.6766182",
"0.67458665",
"0.67339003",
"0.6714814",
"0.67144924",
"0.667723... | 0.6974663 | 7 |