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
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Add a contributor to an album, both must previously exist
def m8z6(QePW, s5ru, NtEF): XCpd(s5ru, NtEF) geh0 = vKnz(gxEw('resource_contributoralbum', args=[s5ru, NtEF])) geh0['Cache-Control'] = 'no-cache' return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XCpd(s5ru, NtEF):\n XZxk = TbPK.get(NtEF)\n wphz = ZGCE.get(s5ru)\n ZZmB(slug=wphz.slug, username=XZxk.username).save()", "def j9TC(leAC, NtEF):\n wphz = ZGCE(title=leAC)\n wphz.save()\n ZZmB(slug=wphz.slug, username=NtEF).save()\n return wphz", "def SNlR(YKHO):\n YKHO.make_logged_i...
[ "0.8172555", "0.8138832", "0.67775625", "0.6776667", "0.6776667", "0.67488265", "0.6616014", "0.6616014", "0.6514214", "0.63199896", "0.6246017", "0.62146765", "0.61647505", "0.6102046", "0.6065137", "0.59808433", "0.597001", "0.59188163", "0.58729935", "0.5787753", "0.578684...
0.6852508
2
Join threads in interruptable fashion.
def NX7p(RcgH): for a1PO in RcgH: while a1PO.isAlive(): a1PO.join(5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nOzm(YKHO, vYBr=3):\n try:\n while YKHO.isAlive():\n YKHO.join(vYBr)\n except KeyboardInterrupt as e:\n bo34.debug('=> Thread interrupted. %s' % str(tTpl))\n YKHO.stop()\n while YKHO.isAlive():\n YKHO.join(vYBr)\n raise tTpl", "def Xm0y():\n f...
[ "0.74295706", "0.7147859", "0.68788135", "0.67604584", "0.6711964", "0.656749", "0.656749", "0.65602636", "0.64986634", "0.64871615", "0.6447385", "0.6379806", "0.6364601", "0.62655425", "0.623982", "0.6198028", "0.6190508", "0.60971475", "0.6081155", "0.60443103", "0.6017898...
0.6978895
2
Opens a file in a web browser. Currently, this is Firefox.
def QM3s(Ux0P): Yn3K.call(['firefox', Ux0P])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def open(bD7m):\n HywK.open(bD7m)", "def o4Te(nUeQ):\n HywK.open(Hy7s.path.dirname(XP5J['paths'][nUeQ]))", "def r46S(bD7m):\n import webbrowser\n webbrowser.open_new(bD7m)", "def ZWJt(pmON):\n if HwRy.platform == 'win32':\n Hy7s.startfile(pmON)\n elif HwRy.platform == 'darwin':\n ...
[ "0.7933018", "0.7920494", "0.763089", "0.7540221", "0.7540151", "0.745722", "0.74352425", "0.7400123", "0.7163637", "0.70732987", "0.7035451", "0.7004443", "0.695253", "0.6929847", "0.6912077", "0.6894626", "0.6887249", "0.68537515", "0.685038", "0.6838351", "0.6802436", "0...
0.83123845
0
Return memory usage in megabytes
def ZWI9(): _lEJ = {'total': 0, 'used': 0} K2d7 = Yn3K.Popen(['free', '-m'], shell=False, stdout=Yn3K.PIPE) K2d7.stdout.readline() Ae29 = K2d7.stdout.readline() _lEJ['total'] = Ae29.split()[1] _lEJ['used'] = Ae29.split()[2] return _lEJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QUO2():\n return NBjn.memory_info().rss / 1024.0 ** 2", "def ZGo4(YKHO):\n return YKHO.xlist('get-memsize')[1][0] * 1024", "def _p7a(YKHO):\n TlSc = YKHO.execCMD('free', '-m').split()\n l_Ir = int(TlSc[7]) / 1024.0\n F8LJ = int(TlSc[15]) / 1024.0\n Sd4T = int(F8LJ / (l_Ir / 100))\n ret...
[ "0.84867066", "0.8125943", "0.7982074", "0.7938811", "0.78391254", "0.78346366", "0.77809685", "0.7665587", "0.7592064", "0.755568", "0.7549222", "0.75286084", "0.7523369", "0.75167245", "0.7510788", "0.74807173", "0.7373739", "0.7359147", "0.73572904", "0.7353789", "0.734189...
0.7699577
7
This function computes the sum of all columns of S in the subbands enumerated in bands
def kAtl(o4sw, GkJn): tjUW = oyIN.zeros((o4sw.shape[0], len(GkJn)), dtype=o4sw.dtype) for YRbF, Fg_i in enumerate(GkJn): tjUW[:, YRbF] = oyIN.mean(o4sw[:, Fg_i[0]:Fg_i[1]], axis=1) return tjUW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def purI(Fyji):\n wjRY = 0", "def NDvt(YRbF, x6sh, Pyrc, Nq1b, xCbR):\n KCHu = Nq1b[YRbF][YRbF] * xCbR[YRbF] * xCbR[YRbF]\n for r845 in range(Pyrc[x6sh], Pyrc[x6sh + 1]):\n if YRbF != r845:\n KCHu += (Nq1b[YRbF][r845] + Nq1b[r845][YRbF]) * xCbR[YRbF] * xCbR[r845]\n return KCHu", "...
[ "0.61286545", "0.5809742", "0.57421285", "0.56989276", "0.55572236", "0.527795", "0.5246478", "0.52304775", "0.5209987", "0.5185994", "0.5155802", "0.5142566", "0.51219296", "0.5107681", "0.5098784", "0.5075655", "0.5073462", "0.5043631", "0.50435644", "0.50363743", "0.499349...
0.6641858
0
Returns the internal database ID for the specified account, or raises a method error if the account does not exist. By default the error raised is accountNotFound, but for example fromAccountNotFound can be specified instead. The result is cached within this Context object, so subsequent methods within the same request...
def QGAF(YKHO, Z31E: Id, P1dF: Type[exceptions.MethodError]=NKcE.AccountNotFound) -> int: try: Aofo = YKHO.account_cache[Z31E] except KeyError: Aofo = YKHO.connection.scalar(EfUA(FYrf.accounts.c.id).where(FYrf.accounts.c.account == Z31E)) if Aofo is None: raise P1dF().excepti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z31E(YKHO):\n return YKHO._account_id", "def Z31E(YKHO):\n return YKHO._account_id", "def Z31E(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'account_...
[ "0.6896955", "0.6856955", "0.6846792", "0.6846792", "0.6846792", "0.6846792", "0.6846792", "0.67648095", "0.6755262", "0.6755262", "0.6755262", "0.6755262", "0.6755262", "0.6755262", "0.6755262", "0.6755262", "0.6750158", "0.6750158", "0.6750158", "0.6750158", "0.6750158", ...
0.71925914
0
This method is deprecated. Please switch to AddFontSize.
def y4MB(mBtZ, ym0m): return phBm(mBtZ, ym0m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U4F2(YKHO, type, BWXx, wVCK):\n QrM1.rcParams['font.size'] = YKHO.old_size", "def hhRS(YKHO, hhRS):\n YKHO._font_size = hhRS", "def sDGT(YKHO, GAJY):\n YKHO.parent.setFontPointSize(GAJY)", "def DMw_(YKHO):\n YKHO.old_size = QrM1.rcParams['font.size']\n QrM1.rcParams['font.size'] = YKHO.siz...
[ "0.6722253", "0.66976494", "0.66833395", "0.65427226", "0.65307313", "0.65054584", "0.64322954", "0.640547", "0.6400757", "0.6348494", "0.63293123", "0.63181716", "0.6294438", "0.6252248", "0.6155835", "0.6110308", "0.6086611", "0.6048916", "0.60382533", "0.6015081", "0.60045...
0.71120906
0
Find a cluster by id.
def GyOE(YKHO, id): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GyOE(YKHO, id: str) -> ZjMU.Cluster:\n raise UAju.UnsupportedOperationError(\"Operation not supported for provider '{}'\".format(YKHO.provider_name))", "def vNjI(YKHO, id: str) -> ZjMU.KubernetesCluster:\n raise UAju.UnsupportedOperationError(\"Operation not supported for provider '{}'\".format(YKHO.pr...
[ "0.8516475", "0.80049926", "0.7087015", "0.6964663", "0.6952615", "0.67677695", "0.6584001", "0.6523775", "0.6490518", "0.64823717", "0.6398891", "0.6380067", "0.6297336", "0.6271734", "0.6266025", "0.623782", "0.6237797", "0.6187373", "0.6111801", "0.60111856", "0.59842736",...
0.89340335
0
Patches the given existing cluster.
def JBdm(YKHO, hKn5, *qIxc, **B2fa): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def URT9(YKHO, hKn5, NArs, *qIxc, **B2fa):\n raise NotImplementedError", "def JBdm(YKHO, hKn5: Union[dto.Cluster, str]) -> ZjMU.Cluster:\n raise UAju.UnsupportedOperationError(\"Operation not supported for provider '{}'\".format(YKHO.provider_name))", "def aoQE(YKHO, lo9Y=None, **B2fa):\n xDcj = []\n ...
[ "0.7301261", "0.72424144", "0.7034603", "0.67850757", "0.66086674", "0.65262", "0.6367799", "0.62241375", "0.61246735", "0.61168444", "0.61165214", "0.61026627", "0.6070133", "0.60488486", "0.6036106", "0.60135067", "0.5999134", "0.5995779", "0.5993081", "0.59780777", "0.5942...
0.80573153
0
Get a form object to edit existing comment.
def Nb_b(wvEv, eOtH): return zU5h.handle_token(wvEv, eOtH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VUOE(YKHO, pQGt):\n xUwc = zyrs('commenting', collection='Comment', runtime=YKHO._runtime)\n if not isinstance(pQGt, m0DR):\n raise UAju.InvalidArgument('the argument is not a valid OSID Id')\n if pQGt.get_identifier_namespace() != 'commenting.Comment' or pQGt.get_authority() != YKHO._authority...
[ "0.7332379", "0.7186614", "0.6487639", "0.6487639", "0.64237857", "0.6326282", "0.6266579", "0.6222158", "0.61974275", "0.61603373", "0.61504745", "0.6051601", "0.6019779", "0.60176647", "0.6005648", "0.6003206", "0.59885937", "0.5967026", "0.596454", "0.5959088", "0.5917037"...
0.72351706
1
If we notice carefully the magic numbers can be represented as 001, 010, 011, 100, 101, 110 etc, where 001 is 0pow(5,3) + 0pow(5,2) + 1pow(5,1). So basically we need to add powers of 5 for each bit set in given integer n.
def rlnY(exwG): XP5J = 1 Ylbp = 0 while exwG: XP5J *= 5 if exwG & 1: Ylbp += XP5J exwG = exwG >> 1 return Ylbp % 1000000007
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UOVU(exwG):\n eiCK = URnP()\n fZxG = _jM2(exwG, eiCK)\n STXI = 0\n while fZxG != STXI:\n exwG = exwG + 1\n STXI = _jM2(exwG, eiCK)\n return exwG", "def q9u2(exwG: int=2, Fo59: int=8) -> int:\n KKfN = 2 ** Fo59 - 1\n jTaY = 2 ** exwG - 1\n return KKfN - jTaY", "def xDdQ...
[ "0.70239437", "0.6873572", "0.6541305", "0.653378", "0.6499156", "0.6464163", "0.6437673", "0.6429246", "0.6392333", "0.6372429", "0.6359519", "0.6351279", "0.63073283", "0.6264014", "0.62581307", "0.6224274", "0.62193483", "0.6218898", "0.61820805", "0.61669207", "0.61329836...
0.6416178
8
shows the about page
def vsuQ(): return TvZl('about.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "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', year=qcWV.now().year, message='about page.')", "def vsuQ(YKHO) -> None:\n ...
[ "0.8322724", "0.8294785", "0.8253106", "0.8185688", "0.8175839", "0.8153685", "0.8147681", "0.81414753", "0.8137258", "0.8137258", "0.8137258", "0.8137258", "0.8137258", "0.8137258", "0.8137258", "0.8137258", "0.8137258", "0.8137258", "0.8137258", "0.8137258", "0.8137258", ...
0.78371966
42
Creates onject from JSON file
def EBvf(Ux0P): with open(Ux0P, 'r', encoding='utf-8') as eHNT: return qQXR.loads(eHNT.read())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGri(Emd4, Ux0P):\n with open(Hy7s.path.expanduser(Ux0P), encoding='utf-8') as eHNT:\n return qQXR.load(eHNT, object_hook=Ajl8)", "def dxSy(uRP3):\n with open(uRP3) as zgjV:\n Csk6 = qQXR.load(zgjV)\n return Csk6", "def al3G(nUeQ):\n with open(f'objects/{nUeQ}') as eHNT:\n ...
[ "0.68468267", "0.6835662", "0.6812941", "0.6794619", "0.67676336", "0.6761564", "0.674035", "0.6710905", "0.6704534", "0.6701569", "0.6692738", "0.66891265", "0.66891265", "0.66891265", "0.66715974", "0.6663714", "0.66381836", "0.6624826", "0.6588225", "0.6547052", "0.6542955...
0.0
-1
Convert the batch into `~numpy.ndarray`.
def iwLm(YKHO, neEK: Union[int, float, bool, Mapping[FieldName, Union[int, float, bool]]]=0) -> cuzp[LBaN, oyIN.ndarray]: if not YKHO: return {} NSNj = YKHO[0].keys() if isinstance(neEK, int): x23G = {mWFP: neEK for mWFP in NSNj} else: x23G = YWvJ(dict, neEK) ezWE = {} fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpbj(Emd4, nPrm):\n if isinstance(nPrm, oyIN.ndarray):\n return nPrm\n ezWE = oyIN.array(nPrm, dtype=oyIN.float)\n if len(ezWE.shape) == 1:\n ezWE = oyIN.reshape(ezWE, newshape=(1, ezWE.shape[0]))\n return ezWE", "def RLxn(YKHO):\n Hdfo(YKHO.indices is None, 'sparseTensor to ndar...
[ "0.70865816", "0.7072646", "0.70234174", "0.68471557", "0.6727446", "0.66903114", "0.66394794", "0.6599462", "0.6580095", "0.6571478", "0.6571478", "0.6537813", "0.64891195", "0.64687043", "0.6435728", "0.64313966", "0.64217615", "0.6415939", "0.6415014", "0.6385731", "0.6322...
0.0
-1
Sets the name of this LookmlModel.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP)...
[ "0.81434894", "0.81434894", "0.81434894", "0.81434894", "0.81434894", "0.8094832", "0.80865467", "0.80865467", "0.80741245", "0.8072738", "0.803953", "0.80141085", "0.79969496", "0.79477805", "0.78579646", "0.7815431", "0.7815431", "0.7779094", "0.777016", "0.77624816", "0.77...
0.0
-1
Sets the project_name of this LookmlModel.
def B5PH(YKHO, B5PH): YKHO._project_name = B5PH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B5PH(YKHO):\n pass", "def e5y4(mWFP):\n if not Bpvr():\n YXxD = 'Cannot connect to getML engine. Make sure the engine is running and you are logged in.'\n raise ConnectionRefusedError(YXxD)\n HCmI = dict()\n HCmI['type_'] = 'set_project'\n HCmI['name_'] = mWFP\n JZ1r.send(HCmI...
[ "0.6740167", "0.6665795", "0.6563864", "0.6535425", "0.6535425", "0.6446483", "0.6409307", "0.639926", "0.639926", "0.639926", "0.639926", "0.6360172", "0.6351864", "0.6311037", "0.6311037", "0.6311037", "0.6311037", "0.6311037", "0.6311037", "0.6294101", "0.6294101", "0.62...
0.8332016
0
Sets the allowed_db_connection_names of this LookmlModel.
def mN6y(YKHO, mN6y): YKHO._allowed_db_connection_names = mN6y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sswI(YKHO, sswI):\n YKHO._unlimited_db_connections = sswI", "def rODl(YKHO, siZ_: dict):\n YKHO._connections = siZ_", "def wnys(YKHO, wnys):\n YKHO._db_name = wnys", "def HOVn(Emd4, _M9w):\n setattr(Emd4, 'db', staticmethod(lambda: aGHv(_M9w)))", "async def set_db_name_field(YKHO, vtJM):\n ...
[ "0.54186165", "0.5402302", "0.52775025", "0.51868385", "0.5151055", "0.50407755", "0.5038318", "0.5038318", "0.4973511", "0.4841383", "0.48298216", "0.48288167", "0.48280817", "0.4807928", "0.47997272", "0.47955686", "0.47760764", "0.47637665", "0.47470066", "0.47418824", "0....
0.84809905
0
Sets the unlimited_db_connections of this LookmlModel.
def sswI(YKHO, sswI): YKHO._unlimited_db_connections = sswI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rODl(YKHO, siZ_: dict):\n YKHO._connections = siZ_", "def siZ_(YKHO, siZ_):\n YKHO._connections = siZ_", "def x1xv(ANdr=1):\n p2kF().connection_pool_kw.update(maxsize=ANdr)", "def sFFJ(YKHO, BWXx: bool) -> None:\n YKHO.__sql_many_state = BWXx", "def gjWg(YKHO):\n pass", "def AIIQ(YKHO,...
[ "0.6391495", "0.5845692", "0.57141256", "0.5335108", "0.53160673", "0.52661455", "0.50776064", "0.50737864", "0.5059958", "0.5051414", "0.49745542", "0.4950429", "0.4940998", "0.48531646", "0.48491666", "0.48464432", "0.4789518", "0.47782186", "0.47698888", "0.4757832", "0.47...
0.82052946
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, RGYz): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
A function that grabs the product price from the HTML
def S6MP(zGKt) -> str: try: Eqvh = zGKt.findAll('li', {'class': 'price-current'}) hI0L: str = Eqvh[0].strong.text + Eqvh[0].sup.text return hI0L except AttributeError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NXNA(YKHO):\n MOPg = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36'}\n geh0 = G4JS.get(YKHO.__product_URL, headers=MOPg)\n Z9JV = rKuS(geh0.content, 'html.parser')\n nUeQ = open('testproduct.html', 'wb')\n nUeQ...
[ "0.80328465", "0.7914236", "0.78290606", "0.7805007", "0.77693367", "0.7537709", "0.7530839", "0.7429701", "0.73702073", "0.7243046", "0.7133091", "0.7103641", "0.70387614", "0.70285374", "0.6943825", "0.69385177", "0.69286025", "0.69224656", "0.6834719", "0.68012935", "0.679...
0.77309954
5
Obtain CORE tokens representation of SHARES.
def DLA5(YKHO, iTlw): return iTlw * YKHO.core_per_share()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s2mk(YKHO):\n return YKHO.rpc.call(OMwV.AuthTokenList)['tokens']", "def thS1(YKHO):\n return YKHO.token_set", "def NT__(YKHO):\n tPoO = YKHO.social_auth.get()\n return tPoO.tokens", "def sxVV(YKHO):\n return YKHO.__token", "def thS1():\n return (ujeC, NNbr, LXUU, _MEt, uQsE, j5YR, mk5...
[ "0.5871609", "0.580688", "0.5800231", "0.57588893", "0.5749709", "0.5738398", "0.5613109", "0.5604132", "0.5604132", "0.5604132", "0.5550682", "0.54511863", "0.5448596", "0.5442768", "0.5413982", "0.54054683", "0.53965515", "0.5390883", "0.5379497", "0.5378322", "0.5340042", ...
0.5674259
6
Returns the `Tesseract` data directory.
def h_xa(): return viqz.datadir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(D40k), 'test', 'data')", "def xe5l():\n return GkAb(wk5E.config['USER_DIR']) / 'data'", "def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'data')", "def xe5l() -> str:\n Hy7s.makedirs(uQWv, exist_ok=True)\n re...
[ "0.76448804", "0.7639593", "0.76352966", "0.74847287", "0.7469684", "0.7457494", "0.74517596", "0.7444335", "0.7439173", "0.74350154", "0.73948795", "0.7331406", "0.7319101", "0.73113704", "0.72769004", "0.7273352", "0.72649", "0.72365075", "0.72303337", "0.7206199", "0.71937...
0.7340032
11
Sets the location of the `Tesseract` data directory. > `datadir` must be an absolute path. > If __`update_env`__ is set to `True`, the `TESSDATA_PREFIX` environment variable > will be set using __`datadir`__'s value.
def Jify(lCFC, wNUn=True): if Hy7s.path.isdir(lCFC): viqz.datadir = lCFC if wNUn: Hy7s.environ['TESSDATA_PREFIX'] = viqz.datadir else: uepG("set_data_dir: Invalid directory: '{0}'".format(lCFC))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xd_Z(pmON):\n if not Hy7s.path.exists(pmON):\n return False\n set('data_dir', pmON)\n return True", "def AX1_(YKHO, AGPF):\n if Hy7s.path.exists(AGPF):\n YKHO.__datadir = AGPF\n print(\"Datadir setted to '%s'\" % AGPF)\n else:\n raise ValueError('Incorrect file path...
[ "0.647037", "0.61713034", "0.61525774", "0.6124337", "0.6050886", "0.600749", "0.5957269", "0.5850514", "0.5835769", "0.58260477", "0.5772531", "0.5740875", "0.5675667", "0.56664276", "0.559436", "0.559062", "0.55575013", "0.5543692", "0.5503705", "0.54893255", "0.54893255", ...
0.8902281
0
Returns `True` if the Tesseract's process can be started.
def CJ8h(): return AJFN() is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTIh(YKHO):\n oUZx = 'ssh {0} -q -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \"pgrep httperf \"'.format(YKHO.client)\n if Yn3K.call(oUZx, stdout=Yn3K.PIPE, shell=True) == 0:\n return True\n else:\n return False", "def F4Wu(YKHO):\n try:\n Hy7s.kill(YKHO.pid, 0...
[ "0.683426", "0.6659646", "0.664215", "0.66304106", "0.66205186", "0.6531204", "0.6444244", "0.63473004", "0.63375735", "0.6322206", "0.63049763", "0.6294021", "0.62681305", "0.6257287", "0.62284034", "0.6211846", "0.6209572", "0.6179766", "0.61707443", "0.61653566", "0.611733...
0.74139994
0
Converts and return the given `boxes` data as a dictionary. > __`boxes_data`__ __mustn't__ contain a header row.
def Ey7k(PQgo): PQgo = '{0}\n{1}'.format('char left bottom right top page', PQgo) return frp0(PQgo, ' ')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUSw(YKHO) -> dict:\n return YKHO.data['boxes']", "def kjUB(YKHO) -> cuzp[int, cuzp]:\n uHbj = {}\n for d6pt, Zrha in enumerate(YKHO.root.iter('object')):\n uHbj[d6pt] = {'name': Zrha.find('name').text, 'xmin': int(Zrha.find('bndbox').find('xmin').text), 'ymin': int(Zrha.find('bndbox').find('...
[ "0.73349506", "0.72075146", "0.68534106", "0.6157017", "0.6093826", "0.5986783", "0.5955362", "0.5873474", "0.5858902", "0.58416843", "0.57529616", "0.5615851", "0.5520696", "0.5509232", "0.5506957", "0.54658693", "0.5447993", "0.54431355", "0.53976685", "0.5395545", "0.53726...
0.8204854
0
Returns the target language to generate thrift stubs for.
def rQow(YKHO, pan_): YKHO._check_target(pan_) return pan_.language or YKHO._default_language
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bmkt(T1WL):\n GPtr = _FKv.get_config(T1WL)\n return GPtr.get('language', 'c++')", "def qhnq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'generation_language')", "def Bs2l(YKHO):\n raise NotImplementedError", "def yvMR(YKHO) -> str:\n return YKHO.random.choice(Lgss)", "def aL...
[ "0.68053067", "0.6592986", "0.63031936", "0.6204076", "0.61973584", "0.6124299", "0.60094357", "0.60094357", "0.59851927", "0.58956754", "0.58512294", "0.5836906", "0.5821554", "0.57853127", "0.5764415", "0.56837124", "0.56798995", "0.56651574", "0.566388", "0.55879116", "0.5...
0.6762571
1
Haversine formula on sphere for higher precission on ellipsoid use the Vincenty formula
def Z9cH(iT5T, igSk, JSDM, TGuP): upem = epAf.radians(igSk) WMf6 = epAf.radians(TGuP) HJJp = epAf.radians(TGuP - igSk) LAWg = epAf.radians(JSDM - iT5T) k0lF = epAf.pow(epAf.sin(HJJp / 2), 2) + epAf.cos(upem) * epAf.cos(WMf6) * epAf.pow(epAf.sin(LAWg / 2), 2) return 2 * epAf.atan2(epAf.sqrt(k0lF)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CgaZ(pXZT, plM3, XOOk, KCHu):\n pXZT = oyIN.deg2rad(pXZT)\n plM3 = oyIN.deg2rad(plM3)\n XOOk = oyIN.deg2rad(XOOk)\n KCHu = oyIN.deg2rad(KCHu)\n vdar = oyIN.cos(plM3) * oyIN.sin(XOOk)\n _1qI = oyIN.sin(plM3) * oyIN.cos(KCHu) + oyIN.cos(plM3) * oyIN.sin(KCHu) * oyIN.cos(XOOk)\n Bvty = oyIN.s...
[ "0.69954294", "0.69346416", "0.682316", "0.6611303", "0.64426804", "0.63463235", "0.63390005", "0.633222", "0.6327156", "0.624788", "0.62468785", "0.6216645", "0.62075424", "0.6169854", "0.616569", "0.6154425", "0.61390156", "0.6133285", "0.6108595", "0.60780424", "0.60658544...
0.0
-1
the environment settings from the processes perpective, C{dict}
def HLSQ(Ii1o=1): try: Ii1o = int(Ii1o) except ValueError: raise TypeError('pid has to be an integer') sEAN = {} Pdzs = open('/proc/%s/environ' % Ii1o).read().split('\x00') for tTpl in Pdzs: G1Hx, bGrB, Ty9i = tTpl.partition('=') G1Hx, Ty9i = (G1Hx.strip(), Ty9i.strip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C4pr(YKHO):\n return dict(((ZfUD[0], ZfUD[1]) for ZfUD in [tTpl.split('=', 1) for tTpl in YKHO.env]))", "def E6J6(YKHO):\n sEAN = {}\n for G1Hx, Ty9i in Hy7s.environ.items():\n G1Hx = G1Hx.decode() if isinstance(G1Hx, bytes) else G1Hx\n Ty9i = Ty9i.decode() if isinstance(Ty9i, bytes) e...
[ "0.718508", "0.68794703", "0.6874064", "0.6855373", "0.6824463", "0.67537355", "0.66846347", "0.6677419", "0.6664762", "0.6663833", "0.66587687", "0.66257215", "0.66254795", "0.6573017", "0.6556915", "0.6537953", "0.6523665", "0.6515877", "0.6497401", "0.6468637", "0.64654106...
0.7048464
1
Return whether or not the given point is within the map boundaries
def RpOi(YKHO, HySl, BivE): return not (HySl < YKHO.origin[0] or HySl > YKHO.origin[0] + YKHO.n * YKHO.resolution or BivE < YKHO.origin[1] or (BivE > YKHO.origin[1] + YKHO.n * YKHO.resolution))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lyjE(YKHO, AU8u):\n return YKHO.upperleft[0] <= AU8u[0] <= YKHO.upperright[0] and YKHO.upperleft[1] <= AU8u[1] <= YKHO.bottomleft[1]", "def lyjE(YKHO, AU8u):\n return YKHO.upperleft[0] <= AU8u[0] <= YKHO.upperright[0] and YKHO.upperleft[1] <= AU8u[1] <= YKHO.bottomleft[1]", "def peGe(YKHO, AU8u):\n ...
[ "0.7987143", "0.7987143", "0.7729781", "0.77179474", "0.75761247", "0.7564899", "0.7471492", "0.7467558", "0.74525136", "0.7394972", "0.7375382", "0.73697674", "0.7348429", "0.73320854", "0.73303074", "0.73123896", "0.7300184", "0.7299072", "0.7272105", "0.72668654", "0.72182...
0.697793
35
Search a list and return the index if found. Returns 1 if target is not found.
def WqGN(hkxX: list, pan_: int) -> int: for YRbF in range(len(hkxX)): if pan_ == hkxX[YRbF]: return YRbF return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TrX4(list, pan_):\n for YRbF in range(0, len(list)):\n if list[YRbF] == pan_:\n return YRbF\n return None", "def kZXp(fUYa, pan_):\n for YRbF, Ty9i in enumerate(fUYa):\n if Ty9i == pan_:\n return YRbF\n return -1", "def M1i2(TgwQ):\n l6nu = M8nl.make_list(...
[ "0.8447624", "0.7417838", "0.7409857", "0.73781145", "0.73247", "0.72921276", "0.7283297", "0.7274945", "0.72310674", "0.7228766", "0.7145641", "0.7131", "0.7107914", "0.71019", "0.70933586", "0.70343786", "0.6999882", "0.6978816", "0.68754834", "0.68739086", "0.68529516", ...
0.7741828
1
Search a list and return the index if found. Returns 1 if target is not found.
def qDiG(hkxX: list, pan_: int) -> int: LSh8: int = 0 CN9P: int = len(hkxX) - 1 while LSh8 <= CN9P: x1fj: int = (LSh8 + CN9P) // 2 if pan_ == hkxX[x1fj]: return x1fj elif hkxX[x1fj] > pan_: CN9P = x1fj - 1 else: LSh8 = x1fj + 1 return -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TrX4(list, pan_):\n for YRbF in range(0, len(list)):\n if list[YRbF] == pan_:\n return YRbF\n return None", "def WqGN(hkxX: list, pan_: int) -> int:\n for YRbF in range(len(hkxX)):\n if pan_ == hkxX[YRbF]:\n return YRbF\n return -1", "def kZXp(fUYa, pan_):\n ...
[ "0.8448059", "0.7742417", "0.7418362", "0.74093527", "0.73779964", "0.732496", "0.7292039", "0.72828263", "0.7275577", "0.7232079", "0.7228574", "0.7145467", "0.71305627", "0.7107698", "0.71016955", "0.7093349", "0.7034138", "0.69996303", "0.6978775", "0.6876206", "0.6873684"...
0.6051626
71
Returns the hint associated with this widget.
def oICI(YKHO): return YKHO._urlEdit.hint()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7hD(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'open_with_hint')", "def stdZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'location_hint')", "def G1zt(bGrB):\n return {'best_hint': 'This is the best hint.', 'rand_hint_1': 'A random hint', 'rand_hint_2': 'Another random hint', 'answer': '42....
[ "0.661759", "0.6515099", "0.62544495", "0.6234342", "0.6205115", "0.61707467", "0.61353236", "0.5936446", "0.5921976", "0.5905496", "0.5902251", "0.5880721", "0.58197874", "0.58151376", "0.57911587", "0.5716246", "0.5640035", "0.56167537", "0.56085753", "0.5571308", "0.551909...
0.7135969
0
Sets the hint associated with this widget.
def canx(YKHO, oICI): YKHO._urlEdit.setHint(oICI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tEb3(YKHO, skeR):\n YKHO._label = skeR", "def pTMq(YKHO):\n YKHO.hints = YKHO.hints - 1", "def OmOS(YKHO, oICI):\n if oICI not in [YKHO.ORDER_FIRST, YKHO.ANCESTOR_FIRST, YKHO.FILTER_FIRST]:\n raise dnrQ.BadArgumentError('Query hint must be ORDER_FIRST, ANCESTOR_FIRST, or FILTER_FIRST.')\n ...
[ "0.61764085", "0.60664254", "0.60035425", "0.5677366", "0.5666896", "0.5626259", "0.55662453", "0.5512495", "0.5485984", "0.5334489", "0.5307591", "0.52387357", "0.5234253", "0.5221844", "0.52141905", "0.5191375", "0.51860595", "0.51696134", "0.51231265", "0.503788", "0.50328...
0.77436554
0
Sets the url for this widget to the inputed url.
def vWac(YKHO, bD7m): YKHO._urlEdit.setText(str(bD7m))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U2Rp(YKHO, bD7m):\n YKHO.url = bD7m", "def U2Rp(YKHO, bD7m):\n if bD7m is not None:\n YKHO.url = bD7m", "def U2Rp(YKHO, bD7m):\n YKHO.url = bD7m", "def U2Rp(YKHO, bD7m):\n YKHO.data['url'] = bD7m", "def vHyU(YKHO):\n YKHO.url = YKHO.geturl()", "def bD7m(YKHO, bD7m: str):\n YK...
[ "0.8465494", "0.83273196", "0.8215537", "0.8194674", "0.81919986", "0.7945045", "0.792966", "0.792966", "0.792966", "0.792966", "0.792966", "0.792966", "0.792966", "0.78585744", "0.78585744", "0.78585744", "0.73563415", "0.7195411", "0.70781684", "0.69121104", "0.6873997", ...
0.83152676
2
Add a new experience to memory.
def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins): tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins) YKHO.memory.append(tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wOcu(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins, YKHO.max_priority)\n YKHO.memory.append(tTpl)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n GsKL = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, GsKL):\n YK...
[ "0.79568833", "0.79042006", "0.78795445", "0.7577913", "0.7570969", "0.74478436", "0.7361023", "0.72697705", "0.721816", "0.71451885", "0.7106998", "0.7101183", "0.69837016", "0.68905056", "0.68842727", "0.6755663", "0.6712557", "0.6677425", "0.64961654", "0.6488678", "0.6486...
0.71984994
13
Return the current size of internal memory.
def szAg(YKHO): return len(YKHO.memory)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R8e4(YKHO) -> int:\n return len(YKHO.mem)", "def R8e4(YKHO):\n return YKHO.bf.memory()", "def ZGo4(YKHO):\n return YKHO.xlist('get-memsize')[1][0] * 1024", "def zNig(YKHO):\n zNig = 0\n zNig += YKHO.data.size * HwRy.getsizeof(YKHO.data)\n return zNig / 1024.0 / 1024.0 / 1024.0", "def ...
[ "0.8573752", "0.82169205", "0.8200361", "0.8087402", "0.8021614", "0.7890747", "0.78219426", "0.78017354", "0.77905464", "0.7758844", "0.77559924", "0.77559924", "0.775519", "0.77544576", "0.7733221", "0.7732168", "0.7720068", "0.77145016", "0.77092093", "0.77077913", "0.7697...
0.75127405
52
Read a scale factor. This may be a floatingpoint number, e.g. for converting power readings.
def rxZ3(FYKK): KCHu = BfDw.file_word(FYKK) try: exwG = int(KCHu, 0) except ValueError: exwG = float(KCHu) return exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CNeU(NXpY):\n return tjUW.pi / 2 / (2 * NXpY ** 2)", "def NXpY(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'scale')", "def RS7X():\n return 0.5", "def yw2u(aM8h):\n return 1 / tjUW.sqrt(4 * aM8h / tjUW.pi)", "def NXpY(YKHO):\n return YKHO.scale_factor / r9jE.AU", "def S0fF(YKHO):...
[ "0.7054534", "0.6894709", "0.6773414", "0.6724019", "0.6504467", "0.64945567", "0.6454414", "0.6446829", "0.6436149", "0.64263034", "0.6356029", "0.6348863", "0.63482416", "0.63423437", "0.63321286", "0.6292325", "0.6279853", "0.6247982", "0.6205369", "0.6192286", "0.61603004...
0.63083655
15
Determine whether a geometry is polygon/multipolygon.
def jVfM(TuoA): TuoA = TuoA.strip().upper() for xUun in J3jd: if TuoA.startswith(xUun) and len(TuoA) != len(xUun): return True continue return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qnz0(QLgk: Sequence, aQJ1: Sequence) -> bool:\n NQX1 = False\n NQX1 = all((OeSY(Jkam, aQJ1[1]) for Jkam in QLgk[1]))\n if not NQX1:\n return NQX1\n NQX1 = any((OeSY(Jkam, aQJ1[1], {'ignoreBoundary': True}) for Jkam in QLgk[1]))\n return NQX1", "def ZT1U(jzdc):\n return iQOg(jzdc) and...
[ "0.72029394", "0.70008504", "0.6951204", "0.6922578", "0.6881032", "0.6877516", "0.687233", "0.6664226", "0.65382344", "0.64402676", "0.642092", "0.6388441", "0.63800293", "0.6355816", "0.6345165", "0.62584347", "0.62494534", "0.6210741", "0.6177175", "0.61690366", "0.6137858...
0.5294952
83
Determine whether a geometry is curve types, like CURVEPOLYGON/MULTISURFACE/SURFACE.
def bmu_(TuoA): TuoA = TuoA.strip().upper() for vy4l in JkgG: if TuoA.startswith(vy4l): return True continue return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xO11(TuoA):\n TuoA = TuoA.strip().upper()\n for DzCN in JNG9:\n if TuoA.startswith(DzCN):\n return True\n continue\n return False", "def QdZB(gEmA: ogr.Layer) -> None:\n yzbB = gEmA.GetLayerDefn()\n gEmA.ResetReading()\n RDhP = gEmA.GetNextFeature()\n while RDhP ...
[ "0.7888874", "0.6682032", "0.6485352", "0.6381897", "0.63554496", "0.6241698", "0.6210336", "0.60134315", "0.6000302", "0.5997957", "0.5897315", "0.5796809", "0.5735795", "0.5591169", "0.5564868", "0.55087805", "0.5508492", "0.5504049", "0.5483914", "0.5463009", "0.54362524",...
0.56030655
13
Compare area of 2 geometry types.
def EX4_(srXT, SSDg): K7XF = _n93(srXT) zInG = _n93(SSDg) zRv5 = ZCqv.Area(ZCqv.Intersection(K7XF, zInG)) snZR = ZCqv.Area(K7XF) ZQ0F = ZCqv.Area(zInG) Aofo = QhFw(ZQ0F, snZR, zRv5, Du4e) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fVlU(YKHO):\n J1b4 = x7Ls(3, 2)\n YKHO.assertEqual(J1b4.area(), 6)\n CYjz = x7Ls(2, 10)\n YKHO.assertEqual(CYjz.area(), 20)\n bpa0 = x7Ls(10, 10)\n YKHO.assertEqual(bpa0.area(), 100)", "def fVlU(YKHO):\n mawX = x7Ls(30, 50, 130, 60)\n assert mawX.area == 100 * 10\n mawX = x7Ls(10.5...
[ "0.69165844", "0.6771447", "0.6616793", "0.6609005", "0.65951675", "0.6591154", "0.65173155", "0.65087074", "0.64811593", "0.6477908", "0.64222854", "0.6401226", "0.6319201", "0.6307683", "0.6278989", "0.6251286", "0.62340486", "0.62248814", "0.62171525", "0.61616844", "0.613...
0.8082194
0
Compare whether 2 geometries is 'equal'.
def bud2(GPtr, srXT, SSDg): if srXT.upper().endswith('EMPTY') and SSDg.upper().endswith('EMPTY'): return True if GPtr in QCnf: return MdPA(srXT, SSDg) < UoWZ if not GPtr in QCnf: K7XF = CstC.loads(srXT) zInG = CstC.loads(SSDg) Aofo = K7XF.equals_exact(zInG, QXXU) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oilP(YKHO, Elif, LL2J=1e-05, rU28=1e-08):\n BIi1 = ['x0', 'y0', 'dx', 'dy']\n Cwxx = ['nx', 'ny', 'origin']\n raTX = True\n for G1Hx in BIi1:\n raTX = raTX and oyIN.isclose(getattr(YKHO.corner_grid, G1Hx), getattr(Elif.corner_grid, G1Hx), rtol=LL2J, atol=rU28)\n for G1Hx in Cwxx:\n ...
[ "0.7094907", "0.70925534", "0.70572674", "0.7016994", "0.7012777", "0.699036", "0.6879245", "0.6866964", "0.6801648", "0.67706764", "0.67370194", "0.6723489", "0.67227083", "0.6719405", "0.6710909", "0.670257", "0.6689699", "0.6685945", "0.668558", "0.66633034", "0.66488564",...
0.66584814
20
Compare whether 2 geometrycollections is 'equal'.
def WMdL(GPtr, srXT, SSDg): if GPtr in QCnf: return MdPA(srXT, SSDg) < UoWZ if not GPtr in QCnf: K7XF = CstC.loads(srXT) zInG = CstC.loads(SSDg) Aofo = K7XF.equals(zInG) return Aofo return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pH3P(LWvH: List[np.ndarray], ovLg: List[np.ndarray]) -> bool:\n if len(LWvH) != len(ovLg):\n return False\n yk4i = LWvH - ovLg\n if oyIN.abs(oyIN.max(yk4i)) < ORQu:\n return True\n return False", "def xa14(YKHO, Elif: 'GatewayCollection') -> bool:\n if not isinstance(Elif, YKHO._...
[ "0.69091654", "0.68075687", "0.6800454", "0.67977756", "0.67872643", "0.67437285", "0.67410314", "0.672413", "0.6664351", "0.66252893", "0.66123503", "0.6572574", "0.65541077", "0.654343", "0.65280193", "0.65280193", "0.6519642", "0.651917", "0.64945406", "0.6492785", "0.6460...
0.7223753
0
Compare whether 2 geometries and their intersection is 'equal'.
def IfbT(srXT, SSDg, iCKW, HhCm): T1J4 = float(srXT) ZisD = float(SSDg) ZD_I = float(iCKW) return abs(T1J4 - ZisD) <= HhCm and abs(T1J4 - ZD_I) <= HhCm and (abs(ZisD - ZD_I) <= HhCm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ciB1(BzZr, RL4V):\n o4D3, si3g, s1k6, zhMh = BzZr.get_box()\n ajwV, skBL, xMw6, WL4f = RL4V.get_box()\n if ajwV + xMw6 - 1 < o4D3 or ajwV >= o4D3 + s1k6:\n return False\n if skBL + WL4f - 1 < si3g or skBL >= si3g + zhMh:\n return False\n return True", "def P10m(YKHO, Elif):\n ...
[ "0.7111413", "0.70493925", "0.68645746", "0.68594813", "0.6792225", "0.677465", "0.677109", "0.6721608", "0.6639272", "0.6590415", "0.6571525", "0.65494853", "0.6502445", "0.64740366", "0.64638644", "0.6438995", "0.6429389", "0.6425822", "0.63997346", "0.6391252", "0.6387845"...
0.0
-1
Compare whether 2 geometries and their intersection is 'equal', measure with relative.
def gKE7(EN79, bFmH, rrz_): T1J4 = float(EN79) ZisD = float(bFmH) return abs(T1J4 - ZisD) / abs(T1J4) <= rrz_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sriw(srXT, SSDg):\n K7XF = _n93(srXT)\n zInG = _n93(SSDg)\n zRv5 = ZCqv.Area(ZCqv.Intersection(K7XF, zInG))\n snZR = ZCqv.Area(K7XF)\n ZQ0F = ZCqv.Area(zInG)\n Aofo = QhFw(ZQ0F, snZR, zRv5, Du4e)\n return Aofo", "def V5ZO(srXT, SSDg):\n K7XF = _n93(srXT)\n zInG = _n93(SSDg)\n YC...
[ "0.70972633", "0.6916985", "0.6654482", "0.66120017", "0.65347", "0.6462911", "0.64468485", "0.6380087", "0.629138", "0.62781775", "0.6277099", "0.62368965", "0.6225484", "0.62107533", "0.6177368", "0.6158703", "0.61506146", "0.61255056", "0.6110729", "0.610103", "0.6094156",...
0.0
-1
Compare whether 2 geometries and their intersection is 'equal', measure with relative.
def QhFw(EN79, bFmH, vESg, rrz_): return gKE7(EN79, bFmH, rrz_) and gKE7(EN79, vESg, rrz_) and gKE7(bFmH, vESg, rrz_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sriw(srXT, SSDg):\n K7XF = _n93(srXT)\n zInG = _n93(SSDg)\n zRv5 = ZCqv.Area(ZCqv.Intersection(K7XF, zInG))\n snZR = ZCqv.Area(K7XF)\n ZQ0F = ZCqv.Area(zInG)\n Aofo = QhFw(ZQ0F, snZR, zRv5, Du4e)\n return Aofo", "def V5ZO(srXT, SSDg):\n K7XF = _n93(srXT)\n zInG = _n93(SSDg)\n YC...
[ "0.7097595", "0.6918924", "0.6655641", "0.66117334", "0.65374976", "0.64624953", "0.64464617", "0.6379857", "0.62917364", "0.6277179", "0.62768114", "0.62354904", "0.6226395", "0.6209696", "0.61761427", "0.61594754", "0.61502135", "0.6124798", "0.6111445", "0.61015993", "0.60...
0.5718311
83
Compare whether 2 curve geometries is 'equal'.
def V5ZO(srXT, SSDg): K7XF = _n93(srXT) zInG = _n93(SSDg) YCAO = ZCqv.Length(ZCqv.Intersection(K7XF, zInG)) OpQz = ZCqv.Length(K7XF) EGIt = ZCqv.Length(zInG) Aofo = QhFw(EGIt, OpQz, YCAO, UoWZ) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oilP(YKHO, Elif, LL2J=1e-05, rU28=1e-08):\n BIi1 = ['x0', 'y0', 'dx', 'dy']\n Cwxx = ['nx', 'ny', 'origin']\n raTX = True\n for G1Hx in BIi1:\n raTX = raTX and oyIN.isclose(getattr(YKHO.corner_grid, G1Hx), getattr(Elif.corner_grid, G1Hx), rtol=LL2J, atol=rU28)\n for G1Hx in Cwxx:\n ...
[ "0.682704", "0.67394716", "0.6681293", "0.6666702", "0.66638684", "0.66490424", "0.6630836", "0.6607531", "0.6598693", "0.65355104", "0.65225184", "0.6516983", "0.65034634", "0.6460942", "0.6443653", "0.6434982", "0.642313", "0.6423077", "0.64115363", "0.6397245", "0.6396407"...
0.74833715
0
Convert a string to float, if it's not a float value, return string to represent itself.
def _KVq(SkMm): if SkMm.lower() == 'true' or SkMm.lower() == 't': return True if SkMm.lower() == 'false' or SkMm.lower() == 'f': return False try: RCGI = float(SkMm) return RCGI except ValueError as ex: print(repr(aTqo)) return SkMm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NrMZ(KCHu):\n try:\n return float(KCHu)\n except:\n return KCHu", "def fqum(KCHu):\n try:\n eHNT = float(KCHu)\n return eHNT\n except ValueError:\n return None", "def hGcZ(KCHu):\n try:\n float(KCHu)\n return 'FLOAT'\n except:\n retu...
[ "0.83481985", "0.8317203", "0.82903135", "0.82346004", "0.8163415", "0.79856145", "0.79477423", "0.7849998", "0.7792402", "0.7702471", "0.764283", "0.7580635", "0.75717115", "0.75323564", "0.74134165", "0.7366255", "0.7359386", "0.73569125", "0.7332301", "0.7324874", "0.72403...
0.6531462
58
Creates a tf.estimator.Estimator for the Criteo classification task.
def bBeh(TXBi, NArs, GPtr): JnVv = XlZR(TXBi) return ZylS.estimator.Estimator(JnVv, model_dir=GPtr.model_dir, params=NArs, config=GPtr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nnze(YKHO):\n QjBU = ZylS.contrib.training.HParams(job_dir='test_dir', save_checkpoints_steps=1, keep_checkpoint_max=1, num_layers=2, dnn_dropout=0.7, dnn_optimizer='test_optimizer', linear_optimizer='test_optimizer', first_layer_size=10)\n BHCt = C3ST.create_estimator(QjBU)\n YKHO.assertIsInstance(BH...
[ "0.65736884", "0.6459212", "0.64518964", "0.6445745", "0.644354", "0.6375797", "0.6341873", "0.6303075", "0.6288743", "0.60840476", "0.6058722", "0.5958758", "0.59304744", "0.59095865", "0.58988893", "0.58928365", "0.5768626", "0.57535154", "0.5752959", "0.57507414", "0.57486...
0.60478264
11
Returns a sorted list of text fonts.
def rfKE(): IMwm = [u'acalc', u'acb', u'aco', u'acp'] all = QomL() jUiS = [] for eHNT in all: if eHNT == u'Series 60 ZDigi': continue for Fg_i in IMwm: try: if eHNT.lower().startswith(Fg_i) and eHNT[len(Fg_i)].isdigit(): break ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o5w0():\n jUiS = [eHNT.name for eHNT in I8kJ.font_manager.fontManager.ttflist]\n jUiS.append([eHNT.name for eHNT in I8kJ.font_manager.fontManager.afmlist])\n jUiS = sorted(list(set(jUiS[:-1])))\n return jUiS", "def o5w0(YKHO):\n FhPQ = YKHO.execute_shell(['figlet', '-I2'])\n jUiS = [Hy7s.pa...
[ "0.79203373", "0.75975627", "0.74923277", "0.7280089", "0.7266952", "0.6951139", "0.6929214", "0.6809537", "0.65878856", "0.645177", "0.64097315", "0.6324056", "0.6273209", "0.6161407", "0.6160687", "0.6150118", "0.6083486", "0.6083486", "0.60355866", "0.59985346", "0.5890237...
0.8360911
0
Constructor for Summoner objects
def FIMM(YKHO): YKHO.id = None YKHO.name = None YKHO.profile_icon_id = None YKHO.revision_date = None YKHO.level = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, u46J, pbPD, Rdq2):\n YKHO.name = u46J\n YKHO.number = pbPD\n YKHO.position = Rdq2", "def FIMM(YKHO):\n IUTf.__init__(YKHO)\n YKHO._client_type = ''\n YKHO._creatures = []\n YKHO._lost = False\n YKHO._name = 'Anonymous'\n YKHO._opponent = None\n YKHO._reason_lost = ''\...
[ "0.7002948", "0.6885052", "0.68535846", "0.67939246", "0.6772736", "0.6697201", "0.66512406", "0.6595096", "0.6593353", "0.6555667", "0.65447843", "0.6538176", "0.6534193", "0.6527768", "0.6513118", "0.6508787", "0.6505901", "0.6502642", "0.64767426", "0.64461696", "0.6426768...
0.73586863
0
The shard for the match associated with this asset.
def OWrw(YKHO): return YKHO._shard or YKHO._pubg.shard
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OWrw(YKHO):\n return YKHO._shard", "def OWrw(YKHO, OWrw: str) -> str:\n return YKHO.shards(OWrw)[OWrw]", "def tERM(YKHO) -> h8nf[int]:\n return YKHO.config_dict.get('marathon_shard', None)", "def mvI0(YKHO) -> qe4Y.Output[bdIy['outputs.ClusterShard']]:\n return qe4Y.get(YKHO, 'shards')", "d...
[ "0.7990601", "0.6882858", "0.65893555", "0.6370745", "0.62622166", "0.62407625", "0.6142102", "0.6039497", "0.5863014", "0.58602816", "0.58247614", "0.58125615", "0.5611366", "0.5542409", "0.55184513", "0.5517245", "0.5513182", "0.5500133", "0.5492229", "0.54443204", "0.54437...
0.7335801
1
utility to form the zeros for the waypoint matrix where not defined
def gC2w(OD9B, _MzK): for H5ew in OD9B.keys(): if OD9B[H5ew] is not None: sHFm = oyIN.shape(OD9B[H5ew]) if oyIN.size(sHFm) == 0: BoL4 = oyIN.reshape(OD9B[H5ew], (1, 1)) fvDH = 1 rdlD = 1 elif oyIN.size(sHFm) == 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fmpe(YKHO, usx6, WfCS):\n E3D9 = []\n while len(E3D9) < usx6:\n E3D9.append([])\n while len(E3D9[-1]) < WfCS:\n E3D9[-1].append(0.0)\n return E3D9", "def y1Us(YKHO, SppC: List[List[int]]) -> None:\n usx6, WfCS = (len(SppC), len(SppC[0]))\n BDYS = 1\n for YRbF in ran...
[ "0.65860206", "0.6534495", "0.64906275", "0.6473783", "0.64656425", "0.6422799", "0.6419863", "0.64058954", "0.6391419", "0.6381557", "0.6359175", "0.6357462", "0.63506055", "0.6347687", "0.634098", "0.6335771", "0.6328608", "0.63040364", "0.629257", "0.629046", "0.62892205",...
0.0
-1
Removes uneccessary words (noise) or in this case words that will bring our models to the worse case scenario
def f2gV(YKHO, Q5mJ): Q5mJ = [[eOtH for eOtH in A97Q if not eOtH.isnumeric()] for A97Q in Q5mJ] Q5mJ = [[eOtH for eOtH in A97Q if len(eOtH) > 1 and eOtH not in hwHU] for A97Q in Q5mJ] ZKzL = QKal(Q5mJ, min_count=20) for or8S in range(len(Q5mJ)): for eOtH in ZKzL[Q5mJ[or8S]]: if '_' i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W4mU(l5Ny):\n l5Ny = l5Ny.split()\n GIN8 = [GIN8 for GIN8 in l5Ny if GIN8 not in ['pertain', 'estimate', 'link', 'and', 'more', 'fetch', 'be', 'there', 'do', 'you', 'have', 'any', 'is', 'my', 'on', 'can', 'i', 'get', 'some', 'am', 'look', 'for', 'the', 'to', 'share', 'me', 'of', 'please', 'a', 'very', 'a...
[ "0.7709789", "0.7066685", "0.704916", "0.70323694", "0.702522", "0.70242274", "0.6978414", "0.6938854", "0.69256455", "0.6893404", "0.6856648", "0.68531317", "0.6847136", "0.6822239", "0.6819113", "0.680997", "0.67715293", "0.6758504", "0.6746686", "0.6740852", "0.67384934", ...
0.0
-1
Retrieve single user by user_id
def NMoC(YKHO, uJjO): return pz3A(mv1M.objects(user_id__exact=uJjO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def TKWP(YKHO, uJjO):\n j8eK = 'users/' + ...
[ "0.8679874", "0.86036724", "0.86036724", "0.86036724", "0.86036724", "0.8600261", "0.85471445", "0.8524966", "0.852111", "0.848765", "0.847361", "0.8471266", "0.8417174", "0.8322282", "0.82993853", "0.82962936", "0.8284257", "0.8250569", "0.82421017", "0.8237911", "0.82235414...
0.0
-1
Reinitialize all current conditions by querying the managed plumbing engine.
def WZLr(YKHO): if YKHO._plumb is not None and YKHO.current_step is not None: ITS7 = YKHO._plumb.time vIFi = YKHO._plumb.current_pressures() QTBn = {'time': ITS7, 'pressures': vIFi} for XEri, bGrB in YKHO.current_step.conditions: XEri.reinitialize(QTBn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jjsX(YKHO):\n YKHO.solver.pop()\n YKHO.solver.push()", "def AhyJ(YKHO):\n pass", "def hLfC(YKHO):\n if YKHO._plumb is not None and YKHO.current_step is not None:\n ITS7 = YKHO._plumb.time\n vIFi = YKHO._plumb.current_pressures()\n QTBn = {'time': ITS7, 'pressures': vIFi}\n ...
[ "0.67511904", "0.6440019", "0.6085579", "0.5955797", "0.5798823", "0.5726613", "0.5684762", "0.56458586", "0.5617931", "0.5559797", "0.55384314", "0.5535065", "0.55286676", "0.5515799", "0.5489002", "0.54856473", "0.54601055", "0.54493713", "0.54383904", "0.54343176", "0.5420...
0.77014667
0
Gets the median of a list of `values`
def KFgI(hkxX): lKXT = int(len(hkxX) / 2) if len(hkxX) % 2 == 0: BjRM = (hkxX[lKXT - 1] + hkxX[lKXT]) / 2 else: BjRM = hkxX[lKXT] return BjRM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BjRM(hkxX):\n lKXT = int(len(hkxX) / 2)\n if len(hkxX) % 2 == 0:\n BjRM = (hkxX[lKXT - 1] + hkxX[lKXT]) / 2\n else:\n BjRM = hkxX[lKXT]\n return BjRM", "def BjRM(hkxX):\n lKXT = int(len(hkxX) / 2)\n if len(hkxX) % 2 == 0:\n BjRM = (hkxX[lKXT - 1] + hkxX[lKXT]) / 2\n ...
[ "0.83553493", "0.8320773", "0.8221512", "0.8133533", "0.8071878", "0.78409564", "0.76371264", "0.75885296", "0.74441516", "0.741083", "0.718382", "0.71094555", "0.70965976", "0.702743", "0.6996409", "0.69004005", "0.68841726", "0.6878317", "0.6859416", "0.68488604", "0.682027...
0.8168769
3
Test tracks that had no match on Spotify.
def P3BM(YKHO): eKIi = [x9qt for x9qt, A6b2 in YKHO.ilibrary.tracks.iteritems() if A6b2.artists[0] == 'Taylor Swift'] for ZWKP in eKIi: YKHO.assertNotIn(ZWKP, [A6b2.i_id for A6b2 in YKHO.tracks])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def icjD(YKHO):\n dcxj, jGRS = YKHO.app.add_album([])\n YKHO.assertEqual(dcxj, False)\n YKHO.assertIn('No files', jGRS)\n YKHO.assertEqual(YKHO.get_album_count(), 0)", "def MoRj(YKHO):\n YKHO.assertEqual(YKHO.get_track_count(), 0)\n HqKa = SXEm.get_all_unassociated(YKHO.app.curs)\n YKHO.asse...
[ "0.7115361", "0.7030869", "0.7018613", "0.68461215", "0.68134826", "0.677911", "0.67133105", "0.6693357", "0.6673518", "0.6613481", "0.65948635", "0.6546225", "0.6501048", "0.64998555", "0.6478059", "0.6464242", "0.6413985", "0.6375597", "0.63656217", "0.6356694", "0.6342923"...
0.7899877
0
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep", "def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join...
[ "0.83695436", "0.8280479", "0.82485795", "0.8139178", "0.8114118", "0.80985415", "0.80940944", "0.80797124", "0.80677074", "0.80673695", "0.80569947", "0.80545217", "0.80448323", "0.80448323", "0.80448323", "0.80448323", "0.80448323", "0.80448323", "0.80448323", "0.80448323", ...
0.8062465
13
Constructor for TreeNode objects.
def FIMM(YKHO, WKvO=None): YKHO.v = WKvO YKHO.cl = None YKHO.cr = None return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.root = i8DB('')", "def FIMM(YKHO):\n YKHO.root = i8DB('')", "def FIMM(YKHO):\n YKHO.root = i8DB(None)", "def FIMM(YKHO, Z9rn):\n i8DB.__init__(YKHO)\n YKHO.c = Z9rn", "def FIMM(YKHO, vhyM=None):\n YKHO.root = vhyM", "def FIMM(YKHO):\n YKHO.root = i8DB('#')", ...
[ "0.8108362", "0.8108362", "0.80510664", "0.7995875", "0.7857959", "0.77767617", "0.76096493", "0.7608917", "0.75968015", "0.75060695", "0.7416862", "0.7405482", "0.7405482", "0.73914033", "0.7352291", "0.7305388", "0.72537965", "0.72537965", "0.7243767", "0.72123665", "0.7210...
0.0
-1
Return a point in the direction of the goal, that is distance away from start
def a7D2(YKHO, yKcO, xi3E, RHJb=2): if YKHO.planning_env.compute_distance(yKcO, YKHO.goal_config) < RHJb: return YKHO.goal_config Tuqy = 1 if Tuqy == 1: he6J = oyIN.array([xi3E[0] - yKcO[0], xi3E[1] - yKcO[1]]) if oyIN.linalg.norm(he6J) != 0: cG1O = he6J / oyIN.linalg.nor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x7zs(dXVx, XSoh, Ayfi):\n WKvO = cBIW(XSoh, Ayfi)\n return trJD(dXVx, WKvO)", "def y_oG(jvSB, xi3E):\n return DpX9.fromCell(jvSB).distanceTo(DpX9.fromCell(xi3E))", "def y_oG(jvSB, xi3E):\n return epAf.sqrt((jvSB[0] - xi3E[0]) ** 2 + (jvSB[1] - xi3E[1]) ** 2)", "def SxEG(YKHO, dQgj, xi3E):\n ...
[ "0.7263192", "0.70914197", "0.7077755", "0.7043159", "0.70124775", "0.6848783", "0.68483174", "0.6754525", "0.67367446", "0.6692805", "0.66923237", "0.66436154", "0.66000587", "0.6594549", "0.6594549", "0.6594549", "0.6583815", "0.65731794", "0.65434194", "0.65385026", "0.650...
0.6728221
9
The type of startPoint and endPoint are both Apoint
def _dv7(YKHO, dXVx, BvNZ): zFiD = YKHO.Space.AddLine(dXVx, BvNZ) return zFiD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QxQv(_9an, Os4s):\n try:\n _9an.get_midpoint()\n Os4s.get_midpoint()\n except AttributeError:\n return False\n return isinstance(_9an.get_midpoint(), type(Os4s.get_midpoint()))", "def rPMI(yKcO, Os4s):\n o4D3, si3g = yKcO.astuple()\n ajwV, skBL = Os4s.astuple()\n Jw7X =...
[ "0.63737124", "0.58355296", "0.5744403", "0.5739648", "0.5611249", "0.560081", "0.55754626", "0.55473876", "0.5480396", "0.54778105", "0.54730177", "0.54477584", "0.5432151", "0.5398801", "0.53956187", "0.53817874", "0.53817874", "0.536356", "0.53416574", "0.5339345", "0.5328...
0.50400436
47
Return string representation of the User.
def wHJl(YKHO): return '<User({0} {1})>'.format(YKHO.first_name, YKHO.last_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user_id) + ': ' + str(YKHO.user_name) ...
[ "0.80204374", "0.80204374", "0.80204374", "0.80204374", "0.80204374", "0.79963815", "0.79010034", "0.78993464", "0.7849589", "0.7805852", "0.7790258", "0.77716625", "0.77405465", "0.7725637", "0.7719646", "0.77193236", "0.7677248", "0.76671654", "0.7621111", "0.7618286", "0.7...
0.7590695
23
Redirects to '/' for React.
def o7Xd(): return vKnz('/')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vja_():\n return vKnz(nKyW(tajT, _external=True))", "def C_QL():\n return vKnz('index.html')", "def cqiV():\n return vKnz(nKyW('display_top'))", "def d6pt():\n return vKnz('/client/index.html')", "def d6pt():\n return vKnz(nKyW('home'))", "def NMoC(YKHO, QePW):\n return vKnz('http:/...
[ "0.68406916", "0.66070217", "0.64793056", "0.6467528", "0.64633787", "0.6451695", "0.64498746", "0.64498746", "0.6431607", "0.64271945", "0.6388806", "0.638211", "0.638211", "0.638211", "0.63774633", "0.6318395", "0.6318395", "0.61303633", "0.61268705", "0.6079922", "0.607503...
0.64293826
9
Returns a unicode string of the float f in scientific notation
def gMWX(WKvO, aHc2=4, Tuqy='eng'): WXkz = u'×' zUNZ = u'\u2009' U1ku = u'\u200a' CKxf = {u'-': u'⁻', u'0': u'⁰', u'1': u'¹', u'2': u'²', u'3': u'³', u'4': u'⁴', u'5': u'⁵', u'6': u'⁶', u'7': u'⁷', u'8': u'⁸', u'9': u'⁹'} tX49 = {-24: u'y', -21: u'z', -18: u'a', -15: u'f', -12: u'p', -9: u'n', -6: u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G7HL(BWXx):\n if abs(BWXx) < 1e-09 or abs(BWXx) > 9999000000.0:\n raise ValueError('value is too small or too big')\n UWZe = '{:>13.6e}'.format(BWXx).replace('e', '').replace('+0', '+').replace('-0', '-')\n if '+0' in UWZe:\n UWZe = UWZe.replace('+0', '-0')\n return UWZe", "def bZxL...
[ "0.741223", "0.7393204", "0.7084752", "0.69652367", "0.6941697", "0.6908427", "0.68731135", "0.6822854", "0.680802", "0.66980255", "0.6602326", "0.65827733", "0.65619725", "0.6514971", "0.6394553", "0.63863117", "0.6370054", "0.6353309", "0.63241047", "0.62823147", "0.6278941...
0.65549004
13
Remove query params from url.
def _1lG(bD7m: str, sjXb: List[str]) -> str: P6bq = KVWQ(bD7m) xDcj = _Ibt(P6bq.query, keep_blank_values=True) for H5ew in sjXb: xDcj.pop(H5ew, None) P6bq = P6bq._replace(query=QIYp(xDcj, True)) return Hfci(P6bq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QQ6h(YKHO, bD7m):\n return ''.join(bD7m.split('?')[:1])", "def pYVq(bD7m, _N6A):\n ht58, RYr6, pmON, R7S5, vBtp = NoPH(bD7m)\n o2VW = _Ibt(R7S5)\n o2VW.pop(_N6A, None)\n G7Vf = QIYp(o2VW, doseq=True)\n bD7m = izOI((ht58, RYr6, pmON, G7Vf, vBtp))\n return bD7m", "def MKos(YKHO, bD7m):\n...
[ "0.74262947", "0.73947424", "0.73772", "0.7178138", "0.70974606", "0.7031972", "0.6832554", "0.67748135", "0.67263204", "0.66971165", "0.66971165", "0.66083294", "0.6603337", "0.6602175", "0.6508045", "0.648584", "0.64378726", "0.6405395", "0.63618296", "0.63330454", "0.63227...
0.63810515
18
Initializes the target actor network parameters to be equal to the actor network parameters.
def b9bA(YKHO, cb_Q): cb_Q.run(YKHO.init_target_net_op)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, GhSF, vVLY, TcwO, igb0, klGB, Ep8u, KMvS, AOkR, W3qe, ARTs, CXwX, mwLZ):\n YKHO.agents_count = GhSF\n YKHO.state_size = vVLY\n YKHO.action_size = TcwO\n YKHO.seed = tuKI.seed(igb0)\n YKHO.gamma = KMvS\n YKHO.batch_size = Ep8u\n YKHO.actor_local = Zrzj(vVLY, TcwO, igb0, AOkR, W3q...
[ "0.68795633", "0.66666377", "0.65482813", "0.65352494", "0.64881486", "0.64176387", "0.64176387", "0.6396988", "0.6379652", "0.63649195", "0.63557506", "0.6322816", "0.625571", "0.62532794", "0.62394834", "0.6234573", "0.6157013", "0.60524565", "0.60516924", "0.6032544", "0.6...
0.6642051
2
A DataFrame of representing the result of the select query. The columns represent the variables selected in the query.
def nR6k(YKHO): PtOk = kJm3(initial_value=YKHO.sparql_result.decode('utf-8'), newline='\n') N5Pj = UlnO(PtOk) uPxI = JGNz(list(map(lambda eHNT: I0u1(eHNT, M9Gz()), N5Pj.fieldnames))) nPrm = list(map(lambda Csk6: [Csk6[eHNT] for eHNT in N5Pj.fieldnames], list(N5Pj))) return YKHO.spark.createDataFrame...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o4pG(YKHO) -> rLdf.DataFrame:\n return rLdf.DataFrame(YKHO.fetchall(), columns=YKHO.headers())", "def kTk2(xDcj):\n jQ3Z = rLdf.DataFrame(xDcj.all())\n jQ3Z.columns = [WKvO['name'] for WKvO in xDcj.column_descriptions]\n return jQ3Z", "def FpoK(xDcj):\n jQ3Z = rLdf.DataFrame(data=list(Hs6x.p...
[ "0.7230331", "0.70914006", "0.70416063", "0.6963313", "0.6932767", "0.6884644", "0.68565303", "0.68536127", "0.6831924", "0.67554104", "0.67497116", "0.6732183", "0.67120475", "0.66844964", "0.6670939", "0.6639539", "0.6619899", "0.66052437", "0.65703833", "0.6535148", "0.653...
0.6706322
13
Returns True if the file exists (and is more recent than other file, if given).
def poxP(gIsw, E3cO=None): if gIsw is None or len(gIsw) == 0: return False SSGf = Hy7s.path.exists(gIsw) if not SSGf: return False if not E3cO or gIsw == E3cO or (not Hy7s.path.exists(E3cO)): return True return Hy7s.path.getmtime(gIsw) > Hy7s.path.getmtime(E3cO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i9v7(jzdc: str, Fg_i: str) -> bool:\n if not Hy7s.path.exists(jzdc):\n return False\n if not Hy7s.path.exists(Fg_i):\n return True\n return Hy7s.path.getmtime(jzdc) >= Hy7s.path.getmtime(Fg_i)", "def Jk5Y(j6zS, FYKK):\n if not Hy7s.path.isfile(j6zS):\n P1dF(\"Dependency '{}' ...
[ "0.7733384", "0.77123404", "0.7630011", "0.7624326", "0.7501783", "0.7480417", "0.7347702", "0.73237956", "0.72982496", "0.71522486", "0.69876426", "0.69071954", "0.683656", "0.67223984", "0.6721324", "0.6690824", "0.658699", "0.65533054", "0.6496951", "0.64750165", "0.647011...
0.77571195
0
Get the file path where the parsed video is/will be stored.
def VIvY(qqDt: int, xgXB: int) -> str: return CcN2.detect() + '/' + WllS + 's' + str(qqDt) + 'e' + str(xgXB) + '.data'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def knCC(YKHO):\n return YKHO.file_path", "def knCC(YKHO):\n return YKHO.file_path", "def knCC(YKHO):\n return Hy7s.path.splitext(YKHO.file_path)[0]", "def Y5py():\n pmON = '{}/Downloads/Test_videos/BigBuckBunny.mp4'.format(Hy7s.environ['USERPROFILE'] if Hy7s.name == 'nt' else Hy7s.environ['HOME'...
[ "0.85231555", "0.85231555", "0.8235891", "0.7674073", "0.72091955", "0.7098715", "0.7097677", "0.70801026", "0.70344365", "0.69199836", "0.690058", "0.68986714", "0.68931055", "0.68681747", "0.6832103", "0.6819424", "0.6789256", "0.67562103", "0.67001826", "0.6696218", "0.668...
0.74255216
4
Get a list created by splitting the original list every nth element
def IVkc(aWuw, ztRo): return [aWuw[YRbF:YRbF + ztRo] for YRbF in range(0, len(aWuw), ztRo)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_Om(yv6U, exwG):\n return [yv6U[YRbF:YRbF + exwG] for YRbF in range(0, len(yv6U), exwG)]", "def nJNG(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def nJNG(vC9B, exwG):\n exwG *= 2\n yaRp = [vC9B[YRbF:YRbF + exwG] for YRbF in range(0, len(vC9B),...
[ "0.787494", "0.78545505", "0.7850438", "0.77798975", "0.7771513", "0.77320516", "0.77215755", "0.77149105", "0.76562124", "0.7651313", "0.7622942", "0.7583266", "0.74826866", "0.7478271", "0.7415005", "0.7401781", "0.73882306", "0.738319", "0.738081", "0.73632675", "0.7360445...
0.0
-1
Take an escaped string and return the unescaped bytes equivalent.
def qqdE(nPrm): if not isinstance(nPrm, str): raise ValueError('data must be str, but is {}'.format(nPrm.__class__.__name__)) return T_Uj.escape_decode(nPrm)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _sPD(KCHu: unicode) -> QMSQ:\n ...", "def erA2(vIwR):\n if not vIwR:\n vIwR.split\n return b''\n if isinstance(vIwR, str):\n vIwR = vIwR.encode('utf-8')\n UOVU = vIwR.split(b'%')\n if len(UOVU) == 1:\n return vIwR\n Ylbp = [UOVU[0]]\n SStx = Ylbp.append\n g...
[ "0.67220753", "0.6676036", "0.65465456", "0.6455765", "0.64344394", "0.636072", "0.62976956", "0.62214756", "0.6195873", "0.6176674", "0.6171069", "0.61613655", "0.6156362", "0.6111844", "0.61062294", "0.6104151", "0.60751057", "0.60701096", "0.6030536", "0.5999434", "0.59269...
0.6618639
2
Split a string of code into a [code, special area, code, special area, ..., code] list. For example, >>> split_special_areas( >>> "test / don't modify me / foo", >>> [r"/\\[\\s\\S]?\\/"]) (regex matching comments) ["test ", "/ don't modify me /", " foo"] "".join(split_special_areas(x, ...)) == x always holds true.
def jLVD(nPrm: str, bOkk: Iterable[str]): return ZbWC.split('({})'.format('|'.join(bOkk)), nPrm, flags=ZbWC.MULTILINE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(vIwR):\n qw7D = list(map(str, vIwR))\n EtF8 = []\n while qw7D:\n ZfUD = qw7D.pop(0)\n if ZfUD == '\\\\' and qw7D:\n EtF8.append(pYeB(qw7D.pop(0)))\n else:\n EtF8.append(ZfUD)\n QJFU = []\n while EtF8:\n ZfUD = EtF8.pop(0)\n if ZfUD ==...
[ "0.5259422", "0.5140174", "0.5116077", "0.5112465", "0.51049143", "0.50778687", "0.5018822", "0.49102008", "0.48966205", "0.4877502", "0.48298082", "0.4796882", "0.4787333", "0.47462273", "0.47404748", "0.47366232", "0.47345012", "0.4709167", "0.4676014", "0.4663034", "0.4652...
0.74224913
0
Check for a string at an address and return a UTF8 encoded byte array. If there is already data present at the address, use this to determine the string encoding. Otherwise use the datatype info passed in to determine the encoding. Check that the bytes at the address represent a valid string encoding that doesn't excee...
def p6Y5(YKHO, uXN1: unicode, Bhav: unicode, GsYu: unicode) -> RnTg.app.decompiler.DecompileCallback.StringData: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aa7Z(vIwR, UTX6, oVM8, tjxa, qoqK=None, ZKOD=qz8b, ehOX=None, nY0E=False, lK3W=False):\n if not qoqK is None and UTX6 > qoqK:\n return (None, None)\n eNCK = None\n yqIi = None\n bLxu = None\n PJWX('Trying with memcpy()')\n rRzo, eNCK = QfMO(vIwR, UTX6, oVM8, tjxa, qoqK, ZKOD, ehOX, nY0...
[ "0.53155714", "0.52981293", "0.5213753", "0.5135215", "0.5127046", "0.51104397", "0.5105791", "0.5099844", "0.5086397", "0.50706136", "0.499725", "0.49599066", "0.4952889", "0.49104223", "0.4891124", "0.4889233", "0.4887384", "0.4876069", "0.48680133", "0.48588645", "0.484833...
0.57434416
0
Returns a 2d gaussian function with the given parameters
def IAWS(H2v2, JPqE, fXzF, bF5a, Fk0k): bF5a = float(bF5a) Fk0k = float(Fk0k) return lambda WKvO, LVAh: H2v2 * oyIN.exp(-(((JPqE - WKvO) / bF5a) ** 2 + ((fXzF - LVAh) / Fk0k) ** 2) / 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kRI_(WKvO, LVAh, k0lF, WTkW, nJ9F):\n Nk6w = k0lF * oyIN.exp(-((WKvO - nJ9F[0]) ** 2 / (2 * WTkW[0] ** 2) + (LVAh - nJ9F[1]) ** 2 / (2 * WTkW[1] ** 2)))\n return Nk6w", "def kRI_(XP5J, WKvO, LVAh):\n WKvO = qw7D(WKvO, dtype=float).copy()\n LVAh = qw7D(LVAh, dtype=float).copy()\n XP5J = qw7D(XP...
[ "0.7324225", "0.7215325", "0.7173185", "0.70675343", "0.702932", "0.7028148", "0.686321", "0.6761602", "0.6750571", "0.6738603", "0.6702997", "0.66618747", "0.6621917", "0.65679467", "0.6567921", "0.65630645", "0.6557936", "0.65531415", "0.6545881", "0.6541525", "0.6510242", ...
0.7087846
5
Wrapper for a matrixvariate normal distribution with mean matrix M, column/left covariance matrix U and row/right covariance matrix V.
def QrZe(E3D9, KkY2, cAlv): return XTiz.random.multivariate_normal(E3D9.ravel(), oyIN.kron(cAlv, KkY2)).reshape(E3D9.shape)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, JBMS=None, PFC2=1):\n return wTGm(JBMS, PFC2)", "def Nn0_(JBMS, PFC2, zNig=None, xlLU=None):\n Ylbp = oyIN.atleast_1d(eQSh.multivariate_normal(mean=JBMS, cov=PFC2, allow_singular=True).rvs(size=zNig, random_state=xlLU))\n if zNig is not None:\n Ylbp = Ylbp.reshape(list(zNig) + [-1]...
[ "0.6991815", "0.6650995", "0.66411173", "0.65573484", "0.6537078", "0.650255", "0.64847136", "0.6455964", "0.63620806", "0.63019603", "0.62965226", "0.62950706", "0.6079157", "0.60671943", "0.60643196", "0.60547173", "0.6046039", "0.6045435", "0.60196877", "0.6017453", "0.600...
0.7643551
0
Produces a matrix useful for including a polynomial component of order 'order' in G for a DLM.
def TpM_(T4Wy): SppC = oyIN.identity(T4Wy) for YRbF in range(T4Wy - 1): SppC[YRbF, YRbF + 1] = 1 return SppC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ufCl(T4Wy, Sk_F):\n zNig = len(T4Wy)\n Oa1e = oyIN.zeros((zNig, zNig), dtype=oyIN.int)\n for YRbF, rdlD in enumerate(Oa1e):\n for r845, fvDH in enumerate(T4Wy):\n Oa1e[YRbF][r845] = Sk_F[YRbF][T4Wy[r845]]\n return Oa1e", "def KRLK(WKvO, LVAh, T4Wy=2):\n co3n = (T4Wy + 1) ** 2...
[ "0.7718904", "0.70684236", "0.670039", "0.62359166", "0.61884737", "0.6137331", "0.60008657", "0.5993289", "0.597499", "0.59245527", "0.5882654", "0.5836604", "0.5759323", "0.5654383", "0.56192493", "0.561696", "0.5611295", "0.5600098", "0.55963385", "0.5454992", "0.54461604"...
0.750896
1
Convert torch.Tensor to np.ndarray.
def WTDd(vhpA: torch.Tensor) -> oyIN.ndarray: return vhpA.detach().cpu().numpy() if vhpA.requires_grad else vhpA.cpu().numpy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bJO5(vhpA):\n return vhpA.detach().cpu().numpy()", "def WTDd(vhpA):\n raise NotImplementedError", "def WTDd(WKvO):\n if isinstance(WKvO, ht2j.Tensor):\n WKvO = WKvO.cpu().detach().numpy()\n return WKvO", "def RCjr(YuSI: torch.Tensor) -> oyIN.ndarray:\n return r3uf(YuSI).cpu().detach...
[ "0.87928337", "0.8669646", "0.8364229", "0.7886286", "0.7858516", "0.78459454", "0.7812589", "0.7611705", "0.75641793", "0.74913985", "0.740594", "0.7331686", "0.7305684", "0.73014843", "0.7247689", "0.72379434", "0.71137154", "0.7094674", "0.70865655", "0.70853114", "0.70853...
0.81380445
3
Determine if a string is a number.
def ye72(str): try: float(str) return True except ValueError as e: print(tTpl) try: zVCt.numeric(str) return True except (TypeError, ValueError) as e: print(tTpl) return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except ValueError:\n return False", "def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False", "def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except V...
[ "0.84806883", "0.8465859", "0.8432079", "0.8429942", "0.8400312", "0.8236704", "0.8220147", "0.8178517", "0.8178517", "0.8178517", "0.8160241", "0.8057642", "0.8054465", "0.8035937", "0.80095077", "0.79583895", "0.78929424", "0.77899206", "0.77663577", "0.77380216", "0.772265...
0.82054204
7
Compute euclidian distance between 2 points
def Ayfi(lCHq, ANJu): return epAf.sqrt(epAf.pow(lCHq[0] - ANJu[0], 2) + epAf.pow(lCHq[1] - ANJu[1], 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XouW(o4D3, si3g, ajwV, skBL):\n Ayfi = PZyS(pow(o4D3 - ajwV, 2) + pow(si3g - skBL, 2))\n return Ayfi", "def j3wi(ZbiE, CSPF, mOlj, ymxS):\n return PZyS((mOlj - ZbiE) ** 2 + (ymxS - CSPF) ** 2)", "def TNNJ(EBgd, HpuQ):\n return float(oyIN.linalg.norm(oyIN.array(EBgd) - oyIN.array(HpuQ)))", "de...
[ "0.86372054", "0.8209718", "0.8076259", "0.80592096", "0.7922613", "0.78931886", "0.7879183", "0.78760016", "0.78725135", "0.787059", "0.7801263", "0.7794017", "0.7744587", "0.7725364", "0.77234155", "0.7713019", "0.76902175", "0.7685397", "0.76832205", "0.7680615", "0.76502"...
0.7321107
61
Takes an LDAP timestamp and converts it to a datetime object
def nJzU(E3oo: float): from datetime import datetime, timedelta return datetime(1601, 1, 1) + timedelta(E3oo / 10000000)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbtj(E3oo):\n return qcWV.fromtimestamp(E3oo * 0.001, tz=rIAI.utc)", "def OLXh(E3oo: str) -> qcWV.datetime:\n if E3oo is None:\n return\n if E3oo.endswith('+00:00'):\n E3oo = E3oo[:-6]\n try:\n return qcWV.datetime.strptime(E3oo, '%Y-%m-%dT%H:%M:%S.%f')\n except ValueError...
[ "0.69570124", "0.6798226", "0.6788359", "0.6673895", "0.6667453", "0.66557354", "0.664417", "0.6633878", "0.6618822", "0.65907073", "0.65794194", "0.6566606", "0.65553665", "0.6494342", "0.64844996", "0.6453235", "0.64423996", "0.6424587", "0.64125794", "0.6380295", "0.637308...
0.83100456
0
Gets all files in a directory and returns them as a generator Optionally takes an extension and returns only files with that extension
def JMfG(dir, YBcr): import os for tk5Y, AQSv, RRlC in os.walk(dir): for nUeQ in RRlC: if nUeQ.split('.')[1].lower() == YBcr.lower() or not YBcr: QYhz = os.path.join(tk5Y, nUeQ) yield QYhz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dgSh(AGPF, Fst3):\n return (eHNT for eHNT in Hy7s.listdir(AGPF) if eHNT.endswith(Fst3) and Hy7s.path.isfile(Hy7s.path.join(AGPF, eHNT)))", "def rdoe(RNOq='./', Fst3='source'):\n from glob import glob\n return glob(RNOq + '/*.' + Fst3)", "def ZjdJ(YKHO, AGPF, ztnR):\n xhv7 = '{}**/*.{}' if YKHO....
[ "0.7587808", "0.74356925", "0.7359545", "0.73289007", "0.7299761", "0.7112189", "0.70964307", "0.7009721", "0.7002529", "0.69936913", "0.6981189", "0.69266367", "0.6907293", "0.6906844", "0.69042885", "0.690211", "0.688046", "0.6875419", "0.6874009", "0.68681043", "0.6844086"...
0.78696007
0
Onehot encode a matrix with samples in its rows and features in its columns. Columns share number of classes.
def zGX0(A3mO: ArrayLike) -> tuple[Hxf3, dict[str, int]]: WKvO: oyIN.ndarray = oyIN.copy(A3mO) if WKvO.ndim == 1: WKvO = WKvO[:, oyIN.newaxis] ROpF = WKvO.shape Lk3B = oyIN.any(rLdf.isna(WKvO)) if WKvO.dtype == object: WKvO = WKvO.astype(str) LeZt, cwhV = oyIN.unique(WKvO, return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(WKvO, jTqs, yDqo=oLG2.float32):\n return yOcR.nn.one_hot(WKvO, jTqs).astype(yDqo)", "def zGX0(WKvO, TFPw):\n return oyIN.eye(TFPw)[WKvO]", "def zGX0(fuBA, KndY):\n if type(KndY) is not int:\n return None\n if fuBA is None or type(fuBA) != oyIN.ndarray:\n return None\n for ...
[ "0.81431544", "0.8078312", "0.7979102", "0.7965783", "0.790906", "0.7873546", "0.78724784", "0.78724784", "0.7794382", "0.7780159", "0.773806", "0.77087766", "0.7708256", "0.769487", "0.76832706", "0.7667626", "0.76672274", "0.76662755", "0.7656931", "0.7624143", "0.76124936"...
0.7463399
37
Onehot encode a single value given an existing mapping.
def LRmF(J8oL: dict[str, int], BWXx: Optional[str]) -> Hxf3: SuF0 = oyIN.zeros((1, len(J8oL))) if not rLdf.isna(BWXx): Wxnj = J8oL[str(BWXx)] SuF0[0, Wxnj] = 1 return SuF0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpzK(YKHO, GIN8):\n GIN8 = YKHO.text_to_int(GIN8)\n GIN8 = iQnE(ht2j.tensor(GIN8))\n GIN8 = ht2j.nn.functional.one_hot(GIN8, len(YKHO.index_map))\n return GIN8.transpose(0, 1)", "def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r8...
[ "0.78757477", "0.78410596", "0.77623206", "0.7745399", "0.7715436", "0.7655086", "0.7651322", "0.76193875", "0.76150674", "0.757775", "0.75697935", "0.7514445", "0.74897856", "0.74132633", "0.73941153", "0.7384662", "0.73734295", "0.737268", "0.7364205", "0.73638296", "0.7352...
0.8763734
0
Sets an image's anchor point to its center
def qm02(LNo8): LNo8.anchor_x = LNo8.width / 2 LNo8.anchor_y = LNo8.height / 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def se5S(VXjJ):\n VXjJ.anchor_x = int(VXjJ.width / 2)\n VXjJ.anchor_y = int(VXjJ.height / 2)", "def qRCk(LNo8):\n LNo8.anchor_x = LNo8.height / 2\n LNo8.anchor_y = LNo8.height / 2", "def qm02(LNo8):\n LNo8.anchor_x = LNo8.width / 2\n LNo8.anchor_y = LNo8.height / 2", "def eWQa(LNo8, WKvO, L...
[ "0.90281963", "0.8889724", "0.83751583", "0.7735093", "0.6865935", "0.6865935", "0.6865935", "0.6598224", "0.6543568", "0.6492926", "0.64924777", "0.64914834", "0.6450042", "0.64482135", "0.6326582", "0.62869936", "0.62598854", "0.62326556", "0.61813617", "0.6158871", "0.6137...
0.84558606
2
Turns a list (seq) into a list of smaller lists len <= size, where only the last list will have len < size.
def ChZT(Q6uT: list, zNig: int) -> list: if isinstance(Q6uT, list) == False: raise ValueError('`seq` must be a list') return list((Q6uT[oeNL:oeNL + zNig] for oeNL in range(0, len(Q6uT), zNig)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q8Fb(input, zNig):\n zi3C = len(input)\n hUWX = zi3C // zNig\n QhHk = zi3C % zNig\n Aofo = []\n oHE7 = iter(input)\n for YRbF in range(zNig):\n Aofo.append([])\n for r845 in range(hUWX):\n Aofo[YRbF].append(next(oHE7))\n if QhHk:\n Aofo[YRbF].append(...
[ "0.7792886", "0.7583097", "0.7489251", "0.7420136", "0.73593587", "0.73382896", "0.73261523", "0.73095775", "0.7190314", "0.7104177", "0.7100655", "0.7095236", "0.7009843", "0.6979322", "0.6960295", "0.687287", "0.6866229", "0.68394846", "0.6810673", "0.6785111", "0.6721349",...
0.8156676
0
Annotate the queryset with ``number_of_published_feedbacksets``
def YWrT(YKHO): return YKHO.annotate(number_of_published_feedbacksets=FYrf.Count(FYrf.Case(FYrf.When(feedbackset__grading_published_datetime__isnull=False, then=1))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fewf(YKHO):\n Jhsc = FYrf.Q(FYrf.Q(cached_data__last_feedbackset=FYrf.F('cached_data__last_published_feedbackset')))\n return YKHO.annotate(annotated_is_corrected=FYrf.Count(FYrf.Case(FYrf.When(Jhsc, then=1))))", "def KOEG(YKHO):\n Jhsc = FYrf.Q(cached_data__last_feedbackset__grading_published_datet...
[ "0.6241891", "0.6162761", "0.612647", "0.6054583", "0.5876955", "0.5813578", "0.5635396", "0.55372936", "0.5529012", "0.5456611", "0.542744", "0.5423302", "0.5390988", "0.53699577", "0.52902174", "0.5274658", "0.52679217", "0.5255331", "0.5202402", "0.51720786", "0.511927", ...
0.8731602
0
Annotate the queryset with ``annotated_is_waiting_for_feedback``. Groups waiting for feedback is all groups where
def naXn(YKHO): wzkt = rIAI.now() Jhsc = FYrf.Q(cached_data__last_feedbackset__grading_published_datetime__isnull=True, cached_data__last_feedbackset__deadline_datetime__lt=wzkt) return YKHO.annotate(annotated_is_waiting_for_feedback=FYrf.Count(FYrf.Case(FYrf.When(Jhsc, then=1))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AHpt(YKHO):\n wzkt = rIAI.now()\n Jhsc = FYrf.Q(FYrf.Q(cached_data__last_feedbackset__grading_published_datetime__isnull=True) | FYrf.Q(cached_data__last_feedbackset__grading_published_datetime__isnull=False, cached_data__last_feedbackset__deadline_datetime__gte=wzkt)) & FYrf.Q(cached_data__last_feedback...
[ "0.66416025", "0.57109416", "0.5615562", "0.55359405", "0.51586306", "0.50935", "0.47668773", "0.47282854", "0.45111638", "0.44789162", "0.44469404", "0.44078752", "0.43912956", "0.4362576", "0.43571055", "0.43520662", "0.43323195", "0.43153945", "0.42924458", "0.4283329", "0...
0.7781642
0
Annotate the queryset with ``annotated_is_waiting_for_deliveries``. Groups waiting for deliveries is all groups where
def AHpt(YKHO): wzkt = rIAI.now() Jhsc = FYrf.Q(FYrf.Q(cached_data__last_feedbackset__grading_published_datetime__isnull=True) | FYrf.Q(cached_data__last_feedbackset__grading_published_datetime__isnull=False, cached_data__last_feedbackset__deadline_datetime__gte=wzkt)) & FYrf.Q(cached_data__last_feedbackset__de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def naXn(YKHO):\n wzkt = rIAI.now()\n Jhsc = FYrf.Q(cached_data__last_feedbackset__grading_published_datetime__isnull=True, cached_data__last_feedbackset__deadline_datetime__lt=wzkt)\n return YKHO.annotate(annotated_is_waiting_for_feedback=FYrf.Count(FYrf.Case(FYrf.When(Jhsc, then=1))))", "def A4iN(YKHO...
[ "0.636188", "0.5467847", "0.5259589", "0.49896196", "0.48864347", "0.48101753", "0.47321013", "0.4712756", "0.4699364", "0.46990243", "0.4670556", "0.4668696", "0.46457908", "0.46424592", "0.4638873", "0.45634142", "0.4505655", "0.44983035", "0.44358492", "0.44142082", "0.441...
0.77949655
0
Annotate the queryset with ``annotated_is_corrected``. Corrected groups is all groups where the last feedbackset is the same as the last published feedbackset. This means that this method annotates with the same logic
def fewf(YKHO): Jhsc = FYrf.Q(FYrf.Q(cached_data__last_feedbackset=FYrf.F('cached_data__last_published_feedbackset'))) return YKHO.annotate(annotated_is_corrected=FYrf.Count(FYrf.Case(FYrf.When(Jhsc, then=1))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TtIs(YKHO):\n return YKHO.cached_data.last_published_feedbackset_is_last_feedbackset", "def naXn(YKHO):\n wzkt = rIAI.now()\n Jhsc = FYrf.Q(cached_data__last_feedbackset__grading_published_datetime__isnull=True, cached_data__last_feedbackset__deadline_datetime__lt=wzkt)\n return YKHO.annotate(ann...
[ "0.5746616", "0.53334796", "0.51703966", "0.5131228", "0.51200956", "0.49407178", "0.49389604", "0.49074098", "0.48306704", "0.48254755", "0.47719547", "0.47653466", "0.47572133", "0.47415987", "0.4721871", "0.46469527", "0.4620674", "0.45998254", "0.45436025", "0.44854292", ...
0.7498719
0
Annotate the queryset with ``is_passing_grade``. ``is_passing_grade`` is ``True`` if the following is true
def R0nu(YKHO): return YKHO.annotate(is_passing_grade=FYrf.Count(FYrf.Case(FYrf.When(cached_data__last_published_feedbackset__isnull=False, cached_data__last_published_feedbackset__grading_points__gte=FYrf.F('parentnode__passing_grade_min_points'), then=1), default=FYrf.Value(None))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YHHs(YKHO, CO8m):\n ccKF.intField(YKHO.grade_intField, edit=True, value=CO8m['grade_value'])\n YKHO.update_subcategory('intField')\n if CO8m['grade_value'] is not '':\n ccKF.scrollField(YKHO.comments_text_field, edit=True, text=CO8m['comment_text'])\n YKHO.update_subcategory('comments_te...
[ "0.5995545", "0.53032815", "0.51084197", "0.506959", "0.4960031", "0.49054807", "0.48585275", "0.4833941", "0.48213074", "0.48007125", "0.47800314", "0.47686103", "0.47686103", "0.47634307", "0.46888748", "0.46597368", "0.4585901", "0.45417282", "0.44740984", "0.4469044", "0....
0.760103
0
Returns a QuerySet matching all AssignmentGroups where the given user is student.
def N2L1(Emd4, XnWo): return Sy9q.objects.filter(Emd4.q_is_candidate(XnWo))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXel(YKHO):\n if YKHO.is_superuser:\n return G8qb.objects.all()\n ptbr = T8ck(case_manager=YKHO)\n sblt = T8ck(enrollment__section__teacher=YKHO)\n dlDL = G8qb.objects.filter(sblt | ptbr)\n return dlDL", "def k66M(YKHO):\n CBIr = YKHO.request.user\n return CBIr.group_set.all()", ...
[ "0.60944504", "0.6058301", "0.5985827", "0.5879116", "0.5852799", "0.5801987", "0.57185704", "0.559262", "0.5571089", "0.5569297", "0.5542978", "0.55106735", "0.5505366", "0.5502392", "0.54324675", "0.5427524", "0.5398659", "0.5383785", "0.53642976", "0.5343562", "0.5342866",...
0.61185515
1
Get the anonymous displayname for this group.
def gaDd(YKHO, TMbP=None): if TMbP is None: TMbP = YKHO.assignment JFNs = [] for SkC9 in YKHO.candidates.all(): JFNs.append(str(SkC9.get_anonymous_name(assignment=TMbP))) if JFNs: return ', '.join(JFNs) else: return UhsG('core assignmentgroup', 'no students in group')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQNS(YKHO):\n return YKHO.settings['displayName']", "def qQNS(YKHO):\n return YKHO.properties.get('displayName', None)", "def qQNS(YKHO):\n if 'displayName' in YKHO._prop_dict:\n return YKHO._prop_dict['displayName']\n else:\n return None", "def qQNS(YKHO):\n if 'displayName'...
[ "0.74992424", "0.74468815", "0.7426055", "0.7426055", "0.7426055", "0.7426055", "0.7426055", "0.73345494", "0.71123296", "0.71061194", "0.71061194", "0.71061194", "0.7104129", "0.70770425", "0.7047298", "0.7047298", "0.7047298", "0.7047298", "0.7047298", "0.7047298", "0.70472...
0.7947346
0
A short displayname for the group. If the assignment is anonymous, we list the candidate IDs. If the group has a name, the name is used, else we fall back to a comma separated list of usernames. If the group has no name and no students, we use the ID.
def mxfZ(YKHO): return YKHO.get_short_displayname()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gaDd(YKHO, TMbP=None):\n if TMbP is None:\n TMbP = YKHO.assignment\n JFNs = []\n for SkC9 in YKHO.candidates.all():\n JFNs.append(str(SkC9.get_anonymous_name(assignment=TMbP)))\n if JFNs:\n return ', '.join(JFNs)\n else:\n return UhsG('core assignmentgroup', 'no stude...
[ "0.7948296", "0.6684177", "0.6370828", "0.6358396", "0.6309768", "0.61962223", "0.61941844", "0.6178053", "0.6150803", "0.6150803", "0.6095031", "0.60350853", "0.59816104", "0.59704864", "0.5907948", "0.58956707", "0.58673894", "0.5845144", "0.58423465", "0.58333063", "0.5832...
0.5529985
45
Get a string contaning the shortname of all examiners in the group separated by comma (``','``).
def t5e6(YKHO, g8rx=', '): qmLP.warn('deprecated', DeprecationWarning) l860 = [Oxm3.user.shortname for Oxm3 in YKHO.examiners.select_related('user')] l860.sort() return g8rx.join(l860)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1WK(xUwc):\n return ('[{}]'.format(', '.join(map(repr, moMn[exwG].entity_names))) if exwG in moMn else repr(exwG) for exwG in xUwc)", "def t5e6(YKHO):\n return u', '.join([P6bq.username for P6bq in YKHO.examiners.all()])", "def EVbu(YKHO):\n return ', '.join((cJnA.name for cJnA in YKHO.allergens....
[ "0.61967695", "0.61785257", "0.6165374", "0.61302996", "0.6028557", "0.59972143", "0.5992494", "0.59858793", "0.5962725", "0.5924417", "0.5915202", "0.5909044", "0.5886847", "0.58594227", "0.582712", "0.5817088", "0.575587", "0.5731914", "0.5687156", "0.5686465", "0.56674427"...
0.6358391
0
Returns ``True`` if this AssignmentGroup does not contain any deliveries.
def FBfn(YKHO): from .delivery import Delivery return Delivery.objects.filter(deadline__assignment_group=YKHO).count() == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WgQO(YKHO):\n from devilry.apps.core.models import Delivery\n from devilry.apps.core.models import Deadline\n if YKHO.assignment.is_electronic and YKHO.get_status() == 'waiting-for-feedback':\n return not Delivery.objects.filter(deadline__assignment_group=YKHO, deadline=Deadline.objects.filter(...
[ "0.6735427", "0.6497307", "0.63981503", "0.63849527", "0.6172128", "0.61249626", "0.60911006", "0.60464543", "0.5982698", "0.59305555", "0.5923261", "0.59223324", "0.59017694", "0.59017694", "0.59017694", "0.5888088", "0.5886479", "0.58774376", "0.5861332", "0.5843115", "0.58...
0.7579992
0
Returns ``True`` if the last feedbackset is published.
def TtIs(YKHO): return YKHO.cached_data.last_published_feedbackset_is_last_feedbackset
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MF15(YKHO) -> bool:\n return YKHO.published_after().count() != 0", "def FhQf(YKHO) -> bool:\n return YKHO.published and YKHO.published <= rIAI.now()", "def FhQf(YKHO):\n wzkt = rIAI.now()\n return wzkt >= YKHO.pub_date", "def bFdH(YKHO) -> bool:\n return YKHO.published_before().count() != ...
[ "0.7354891", "0.7104928", "0.69184667", "0.6914546", "0.688464", "0.68714714", "0.6863141", "0.664994", "0.6407359", "0.6332567", "0.6322119", "0.6319217", "0.62568265", "0.6135828", "0.6129512", "0.6125349", "0.60762244", "0.5992559", "0.5981163", "0.5961078", "0.5930414", ...
0.7249451
1
Density of the excess logreturn.
def InLe(YKHO, d7pR): JBMS = -YKHO.sigma ** 2 * YKHO.data['maturity'] M1Jx = YKHO.sigma * YKHO.data['maturity'] ** 0.5 return C5PG.norm(JBMS, M1Jx).pdf(d7pR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vMNq(YKHO):\n return YKHO.rho * epAf.log(YKHO.density)", "def InLe(YKHO):\n return YKHO.__density", "def InLe(YKHO):\n return YKHO.__density", "def InLe(YKHO):\n return YKHO.__density", "def InLe(YKHO, d7pR):\n return YKHO.gb2_density(oyIN.exp(d7pR)) * oyIN.exp(d7pR)", "def InLe(YKHO):...
[ "0.72120595", "0.68245167", "0.68245167", "0.68245167", "0.6793508", "0.6786592", "0.6729758", "0.6675245", "0.6600844", "0.65504026", "0.6527812", "0.6521712", "0.6504028", "0.6493991", "0.6492609", "0.6469018", "0.646606", "0.643575", "0.643467", "0.6415614", "0.6415313", ...
0.64329064
19
Density of the excess logreturn.
def InLe(YKHO, d7pR): yvT9 = 0 for upAO, JBMS, M1Jx in zip(YKHO.weights, YKHO.means, YKHO.stds): NXpY = M1Jx * YKHO.data['maturity'] ** 0.5 hksT = (JBMS - YKHO.data['riskfree']) * YKHO.data['maturity'] - NXpY ** 2 yvT9 += upAO * C5PG.norm(hksT, NXpY).pdf(d7pR) return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vMNq(YKHO):\n return YKHO.rho * epAf.log(YKHO.density)", "def InLe(YKHO):\n return YKHO.__density", "def InLe(YKHO):\n return YKHO.__density", "def InLe(YKHO):\n return YKHO.__density", "def InLe(YKHO, d7pR):\n return YKHO.gb2_density(oyIN.exp(d7pR)) * oyIN.exp(d7pR)", "def InLe(YKHO):...
[ "0.72120595", "0.68245167", "0.68245167", "0.68245167", "0.6793508", "0.6786592", "0.6729758", "0.6675245", "0.6600844", "0.65504026", "0.6527812", "0.6521712", "0.6504028", "0.6493991", "0.6492609", "0.6469018", "0.643575", "0.643467", "0.64329064", "0.6415614", "0.6415313",...
0.646606
16