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
gives a formatted timestamp, useful for longer analyses
def E3oo(): return qcWV.now().strftime('%H:%M:%S %m-%d')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pqi0():\n import time\n return str(time.strftime('%a %d %b %Y %I:%M:%S %p'))", "def saqZ():\n HVay = ITS7.time()\n _PYT = repr(HVay).split('.')[1]\n return ITS7.strftime('%Y-%m-%d-%H-%M-%S-{}'.format(_PYT), ITS7.gmtime(HVay))", "def E3oo():\n return qcWV.utcnow().strftime('%F %T')", "de...
[ "0.8038685", "0.80155486", "0.79429066", "0.7932328", "0.7925151", "0.78806007", "0.7856388", "0.78220636", "0.78073436", "0.7796272", "0.7789196", "0.77795273", "0.77354836", "0.7732207", "0.7729519", "0.76911116", "0.7683758", "0.76836175", "0.76213574", "0.7598116", "0.754...
0.7882292
5
Get the model name.
def ZGE9(YKHO) -> str: return 'mock-model-name'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZGE9(YKHO) -> str:\n return YKHO._model_name", "def TbE8(YKHO) -> str:\n return YKHO._get_string(wLjv.Prop_RenderModelName_String)", "def TbE8(YKHO) -> str:\n raise NotImplementedError", "def ZGE9(YKHO):\n YqMg = YKHO.get_setting_definition(YKHO.key, **YKHO.get_kwargs())\n return YqMg.get(...
[ "0.88881665", "0.883052", "0.87915975", "0.84520155", "0.8416848", "0.8376444", "0.83522457", "0.8329777", "0.82505643", "0.8224384", "0.81623787", "0.80150056", "0.7973438", "0.78287315", "0.77966535", "0.77646977", "0.7711224", "0.76936203", "0.76847035", "0.76512337", "0.7...
0.7388494
26
Get the device type.
def DS1x(YKHO) -> str: return 'urn:schemas-upnp-org:device:InternetGatewayDevice:1'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DS1x(YKHO):\n return YKHO._meta['device_type']", "def DS1x(YKHO):\n return YKHO._device_type", "def DS1x(YKHO):\n return cFqH.devtype2str[YKHO.device_typeid]", "def DS1x(YKHO):\n return cFqH.devtype2str[YKHO.device_typeid]", "def DS1x(YKHO):\n return YKHO._device_type", "def DS1x(YKHO)...
[ "0.873117", "0.87166053", "0.86315507", "0.86315507", "0.8574871", "0.8475947", "0.8429184", "0.82709247", "0.82565933", "0.82565933", "0.82565933", "0.82303095", "0.8115598", "0.8061328", "0.8059209", "0.80492264", "0.7943201", "0.79121757", "0.78333235", "0.7829751", "0.782...
0.72745216
44
Takes a diagonal matrix converts it to it's full form
def gMiR(gP40, h_GY): exwG = len(gP40) SppC = oyIN.ndarray(shape=(exwG, exwG)) for YRbF in range(exwG): for r845 in range(len(gP40[YRbF])): SppC[YRbF][r845] = 100 - 100 * gP40[YRbF][r845] / h_GY SppC[r845][YRbF] = 100 - 100 * gP40[YRbF][r845] / h_GY if YRbF == r84...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IjIm(SppC):\n if H4yH.sparse.issparse(SppC):\n A2lD = oyIN.array(SppC.diagonal())\n else:\n A2lD = oyIN.diagonal(SppC).copy()\n return A2lD", "def WyUJ(SppC):\n bfKS = ZylS.reduce_sum(SppC, 1)\n IjIm = ZylS.diag(bfKS, name='diagonal')\n return IjIm", "def Fe7R(vb7U):\n re...
[ "0.6925748", "0.67492604", "0.654779", "0.647712", "0.6455163", "0.6417544", "0.64102775", "0.6368405", "0.6294395", "0.6290919", "0.6213763", "0.61852396", "0.61554545", "0.61394686", "0.6138866", "0.607023", "0.60410553", "0.6021352", "0.6013913", "0.6009137", "0.60088104",...
0.553977
63
Renders the home page.
def kZiy(): return TvZl('index.html', title='Home Page', year=qcWV.now().year)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZ...
[ "0.85574406", "0.853399", "0.8351404", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.827363", "...
0.8061255
42
Renders the about page.
def vsuQ(): return TvZl('about.html', title='About', year=qcWV.now().year, message='Your application description page.')
{ "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 wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85651284", "0.85034347", "0.844895", "0.84050864", "0.8394327", "0.82936406", "0.82678735", "0.82434386", "0.8239326", "0.8224289", "0.8208038", "0.820477", "0.81737614", "0.81729555", "0.8096616", "0.8050326", "0.8050326", "0.8050326", "0.8050326", "0.8050326", "0.8050326...
0.827099
17
Renders the about page.
def nPrm(): return TvZl('data.html', title='Data', year=qcWV.now().year, img_tichonet='/static/pics/tichonet.png', message='Your application description page.')
{ "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 wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85650355", "0.85034525", "0.84489655", "0.84044397", "0.8394454", "0.82935613", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82680845",...
0.0
-1
Renders the about page.
def iPbU(): h14N = XLdq() hRcM = BKpb() jQ3Z = rLdf.read_csv(pmON.join(pmON.dirname(xAKo), 'static/Data/injuries_2010-2020.csv')) ZQk4 = '' if QePW.method == 'POST': if QePW.form['action'] == 'Expand' and h14N.validate_on_submit(): ZQk4 = jQ3Z.to_html(classes='table table-hover')...
{ "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 wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85650355", "0.85034525", "0.84489655", "0.84044397", "0.8394454", "0.82935613", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82680845",...
0.0
-1
Renders the about page.
def IPy5(): return TvZl('Gallery.html', title='The to 8 NBA players right now', year=qcWV.now().year, message='')
{ "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 wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85650355", "0.85034525", "0.84489655", "0.84044397", "0.8394454", "0.82935613", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82680845",...
0.0
-1
Create a gNMI GetRequest.
def jxrn(CppO, ckRy, NtEF, jTXt): if NtEF: return CppO.Get(GOCl.GetRequest(path=[ckRy], encoding='JSON_IETF'), metadata=[('username', NtEF), ('password', jTXt)]) return CppO.Get(GOCl.GetRequest(path=[ckRy], encoding='JSON_IETF'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pXPL(YKHO):\n YKHO.get_bmc_website()\n YKHO.__createChangeRequest = lNnX(YKHO.browser)\n YKHO.__createChangeRequest.createNCR()", "def qv1X():\n return VNUm()", "def qJoj(YKHO):\n return VNUm()", "def CEeV(bD7m, NArs):\n QePW = G4JS.get(bD7m, params=NArs)\n return QePW", "def BbI3(...
[ "0.6275348", "0.6039188", "0.5644295", "0.5601162", "0.55611426", "0.5554668", "0.55537415", "0.55537415", "0.55537415", "0.55537415", "0.55537415", "0.55537415", "0.55537415", "0.55537415", "0.55537415", "0.55537415", "0.55537415", "0.55537415", "0.55537415", "0.55537415", "...
0.0
-1
VGG 19layer model (configuration "E")
def A9hJ(mL4f=False, **B2fa): C3ST = Jkpw(AaDq(_Fei['E']), **B2fa) if mL4f: C3ST.load_state_dict(rA0C.load_url(mDCG['vgg19'])) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pFT6():\n GhuM = (256, 256, 3)\n MYHg = bdPE.applications.VGG19(include_top=False, input_shape=GhuM, weights='imagenet')\n bySB = MYHg.get_layer(index=9).output\n C3ST = bdPE.Model(inputs=[MYHg.inputs], outputs=[bySB])\n return C3ST", "def AndN(mL4f=False, **B2fa):\n if mL4f:\n B2fa[...
[ "0.7938028", "0.7352684", "0.7322909", "0.731347", "0.72912514", "0.72898996", "0.7235066", "0.72287446", "0.7197585", "0.71894604", "0.7084843", "0.707336", "0.7058049", "0.7026087", "0.7002693", "0.69967985", "0.69944525", "0.69195586", "0.6903537", "0.68565315", "0.6850008...
0.0
-1
Drop `None` valued keys from an object.
def V945(z1Rg): if isinstance(z1Rg, (dict, GySg)): return {G1Hx: V945(Ty9i) for G1Hx, Ty9i in z1Rg.items() if Ty9i is not None} elif isinstance(z1Rg, list): return [V945(Ty9i) for Ty9i in z1Rg if Ty9i is not None] elif isinstance(z1Rg, set): return {V945(Ty9i) for Ty9i in z1Rg if Ty9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WQvl(YEnM: dict):\n return kWBb(YEnM, visit=lambda pmON, H5ew, BWXx: H5ew is not None and BWXx is not None)", "def Mu8L(YEnM: dict) -> dict:\n return {G1Hx: Ty9i for G1Hx, Ty9i in YEnM.items() if Ty9i is not None}", "def pIoS(fj4m):\n return {G1Hx: Ty9i for G1Hx, Ty9i in fj4m.items() if Ty9i is no...
[ "0.82257617", "0.7622132", "0.7455038", "0.7318793", "0.7178498", "0.71008503", "0.6978789", "0.69149274", "0.68529075", "0.68520445", "0.6845486", "0.68321306", "0.6754147", "0.674078", "0.6731009", "0.671434", "0.6638371", "0.66069853", "0.6593238", "0.6582964", "0.653182",...
0.7540454
2
updates the learning rate using inverse time decay
def b0Ix(qtWj): return Cwt5 / (1 + f9Ey * qtWj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return", "def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return", "def fggk(YKHO):\n YKHO.scheduler.step(YKHO.clock.epoch)", "def TfYV(Cw...
[ "0.7914394", "0.7914394", "0.7600384", "0.7560176", "0.7499523", "0.74376434", "0.7421272", "0.74188656", "0.73709327", "0.7334627", "0.73209643", "0.7318579", "0.7294742", "0.7198275", "0.7148807", "0.71447504", "0.7119928", "0.70642436", "0.69671065", "0.68856674", "0.68773...
0.679231
28
Returns the ManagementForm instance for this FormSet.
def SW4j(YKHO): if YKHO.is_bound: L03z = KuOU(YKHO.data, auto_id=YKHO.auto_id, prefix=YKHO.prefix) if not L03z.is_valid(): raise sUXu('ManagementForm data is missing or has been tampered with') else: L03z = KuOU(auto_id=YKHO.auto_id, prefix=YKHO.prefix, initial={floL: YKHO.to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YVCp(YKHO):\n if YKHO.is_bound:\n L03z = wGQZ(YKHO.data, auto_id=YKHO.auto_id, prefix=YKHO.prefix)\n if not L03z.is_valid():\n raise sUXu('ManagementForm data is missing or has been tampered with')\n else:\n L03z = wGQZ(auto_id=YKHO.auto_id, prefix=YKHO.prefix, initial={fl...
[ "0.7361065", "0.6664403", "0.6664403", "0.6357645", "0.622903", "0.619828", "0.6129273", "0.6124485", "0.61211973", "0.6112333", "0.6099777", "0.60755575", "0.5937113", "0.58789", "0.5841554", "0.575287", "0.5716436", "0.56436545", "0.5578003", "0.555524", "0.55537564", "0....
0.7139378
1
Returns whether the scene contains an image pixmap.
def djEK(YKHO): return YKHO._image is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def djEK(YKHO):\n if YKHO.getImage():\n return True\n return False", "def WKzz(YKHO):\n return hasattr(YKHO, '_image') and YKHO._image is not None", "def Ll1g(YKHO):\n if YKHO.isPng:\n return True\n return Ki12(YKHO.path.replace(YKHO.extension, '.png')).exists", "def PyG8(YKHO):\...
[ "0.7148394", "0.69063604", "0.6811348", "0.6708111", "0.6708111", "0.66627085", "0.63021797", "0.6208606", "0.61569035", "0.613535", "0.6075283", "0.6071318", "0.59205896", "0.59165484", "0.5906985", "0.58777034", "0.5860418", "0.581497", "0.5773688", "0.5759203", "0.57401556...
0.7086305
1
Removes the current image pixmap from the scene if it exists.
def F17Z(YKHO): if YKHO.hasImage(): YKHO.scene.removeItem(YKHO._image) YKHO._image = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F17Z(YKHO):\n if YKHO.hasImage():\n YKHO.scene.removeItem(YKHO._pixmapHandle)\n YKHO._pixmapHandle = None\n YKHO.zoom = -1\n YKHO.scene.clear()", "def O3s2(YKHO):\n del YKHO.scene, YKHO.imgPixmapItem", "def X8gu(YKHO):\n YKHO.scene.clear()\n YKHO.image.fill(uaAZ.colo...
[ "0.79136795", "0.7713988", "0.67695427", "0.6741188", "0.6572793", "0.65437007", "0.64187896", "0.63136613", "0.61855835", "0.61837137", "0.61759114", "0.61759114", "0.61453015", "0.61429083", "0.6075483", "0.6035884", "0.6033798", "0.5917658", "0.59154296", "0.5910521", "0.5...
0.7800114
1
Returns the scene's current image pixmap as a QPixmap, or else None if no image exists.
def _gO8(YKHO): if YKHO.hasImage(): return YKHO._image.pixmap() return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _gO8(YKHO):\n if YKHO.hasImage():\n return YKHO._pixmapHandle.pixmap()\n return None", "def LNo8(YKHO):\n if YKHO.hasImage():\n return YKHO._pixmapHandle.pixmap().toImage()\n return None", "def LNo8(YKHO):\n if YKHO.hasImage():\n return YKHO._image.pixmap().toImage()\n ...
[ "0.7835423", "0.75290245", "0.74141395", "0.67934173", "0.6428947", "0.61595285", "0.6098856", "0.58280176", "0.5742987", "0.5732158", "0.5682366", "0.56738436", "0.5643078", "0.56390196", "0.5633685", "0.5633685", "0.5633685", "0.56182927", "0.5591214", "0.5585604", "0.55093...
0.79953897
0
Returns the scene's current image pixmap as a QImage, or else None if no image exists.
def LNo8(YKHO): if YKHO.hasImage(): return YKHO._image.pixmap().toImage() return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _gO8(YKHO):\n if YKHO.hasImage():\n return YKHO._image.pixmap()\n return None", "def LNo8(YKHO):\n if YKHO.hasImage():\n return YKHO._pixmapHandle.pixmap().toImage()\n return None", "def _gO8(YKHO):\n if YKHO.hasImage():\n return YKHO._pixmapHandle.pixmap()\n return N...
[ "0.75357985", "0.7390828", "0.7325522", "0.63724256", "0.63046825", "0.60485345", "0.5909091", "0.58557355", "0.58035487", "0.5761733", "0.57425255", "0.5711291", "0.5696588", "0.5677836", "0.5676707", "0.5676707", "0.5676707", "0.5646885", "0.5624013", "0.5589218", "0.557353...
0.7408162
1
Returns the pString that results from iterating this lsystem. Computes it, if needed.
def GR6Y(YKHO): if YKHO.resultPString == None: YKHO.resultPString = YKHO.iterate() return YKHO.resultPString
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z8rk(dGPN, iter):\n qZxb = OPlu(dGPN)\n eD8c = tOYM(dGPN, 0)\n o61b = eD8c[0]\n m1Oc = eD8c[1]\n for YRbF in range(iter):\n qZxb = qZxb.replace(o61b, m1Oc)\n return qZxb", "def SnfU(YKHO):\n return (YKHO.loop_level + 1) * ' ' + ','.join(map(str, YKHO.get_list()))", "def zAg0(YKH...
[ "0.6028617", "0.59457964", "0.58593225", "0.57503265", "0.57239276", "0.5717773", "0.5690348", "0.56889313", "0.56804085", "0.56782484", "0.5660313", "0.5655957", "0.56339836", "0.5624231", "0.5619703", "0.56152797", "0.56096286", "0.5604201", "0.5588711", "0.5579955", "0.553...
0.7823306
0
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def AOzf(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + nMvt.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '...
[ "0.76044506", "0.74481285", "0.74049824", "0.7280345", "0.7208418", "0.71655464", "0.7157273", "0.7144908", "0.7144908", "0.7144908", "0.7144908", "0.7144908", "0.7144908", "0.7131389", "0.710048", "0.7065451", "0.7064196", "0.70623666", "0.70623666", "0.70623666", "0.7062366...
0.70967406
31
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def rhd_(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + nMvt.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU...
[ "0.74888414", "0.7288112", "0.71588355", "0.7152657", "0.70652217", "0.69849795", "0.6964874", "0.69532984", "0.69120836", "0.6833932", "0.681686", "0.6808751", "0.68043625", "0.68043625", "0.68043625", "0.68043625", "0.68043625", "0.68043625", "0.6785024", "0.6756936", "0.67...
0.67543876
45
Adds a symbol to the set of symbols of the Machine. Sets the blank symbol only if it is not already set.
def Ao4_(YKHO, o61b, eXeU=False): YKHO._symbols.add(o61b) try: assert YKHO._blank_symbol == None or not eXeU if eXeU: YKHO._blank_symbol = o61b except: raise Exception(f"Machine got blank symbol '{o61b}' which is already set to '{YKHO._blank_symbol}'")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, o61b, BWXx):\n if o61b in YKHO.symbol_map:\n raise ValueError(f'symbol {o61b} already exists in map.')\n YKHO.symbol_map[o61b] = BWXx", "def VpWv(YKHO, o61b):\n YKHO.symbols_list.append(o61b)\n YKHO.symbols_list.sort()", "def RDvM(YKHO, id, o61b):\n sEAN = YKHO\n if id i...
[ "0.737178", "0.71844953", "0.6879582", "0.6751897", "0.6693627", "0.66602457", "0.66042966", "0.65442795", "0.6537731", "0.6475653", "0.6472118", "0.6463029", "0.63761586", "0.63514227", "0.6310761", "0.6297593", "0.62926525", "0.62787044", "0.622642", "0.62097865", "0.619931...
0.8360916
0
Adds a transition to the set of transitions of the Machine.
def fyK_(YKHO, DghZ, uZqp, Zf2s, XSoh, rxHc): YKHO._set_symbol(uZqp) YKHO._set_symbol(Zf2s) YKHO._set_state(DghZ) YKHO._set_state(rxHc) if YKHO._transitions.get(DghZ) is None: YKHO._transitions[DghZ] = {} YKHO._transitions[DghZ][uZqp] = (Zf2s, XSoh, rxHc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nr0q(YKHO, **B2fa):\n OZkM = {G1Hx: [Ty9i] for G1Hx, Ty9i in B2fa.items()}\n YKHO.add_transitions(**OZkM)", "def iHMa(YKHO, q6H1, i6Zq, dyRQ):\n if not YKHO.currentState:\n raise ValueError('StateMachine already Started - cannot add new transitions')\n YKHO._states.append((q6H1, i6Zq, dyRQ...
[ "0.7282933", "0.7242774", "0.7242774", "0.69885457", "0.6903377", "0.68745124", "0.6802694", "0.67786336", "0.6741184", "0.6670267", "0.65890056", "0.65890056", "0.64939916", "0.6307099", "0.6150025", "0.6098735", "0.60669607", "0.60570806", "0.60542333", "0.6012345", "0.5991...
0.49933103
69
Renders basic application layout
def d6pt(QePW): NArs = WEf_(QePW) EngI = xlK2.get_active() NArs['top_competition_id'] = EngI.id NArs['minify_js'] = gCuF.MINIFY_JS NArs['first_page_text'] = '' GPtr = PSrQ.objects.all() if GPtr.count() > 0: NArs['first_page_text'] = GPtr[0].first_page_text return _1tc(QePW, 'base...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_():\n return TvZl('index.html', title='Home', heading='Dublin Bus')", "def b8V_():\n return TvZl('main.html')", "def b8V_():\n return TvZl('main.html')", "def Ozko():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html', title='PanOS Bootstrap Utility')", "def iLD8...
[ "0.7066787", "0.6931911", "0.6931911", "0.6863343", "0.68569344", "0.6825769", "0.67722845", "0.6768591", "0.67603266", "0.6751819", "0.6751819", "0.6748155", "0.6736636", "0.67295665", "0.6681644", "0.6681644", "0.66804475", "0.66610783", "0.6634673", "0.6634673", "0.6634673...
0.0
-1
Return the current projects.
def PKRp(YKHO): llaM = [] for bNKA in YKHO.server.projects: llaM.append({'id': BfDw.slugify(bNKA), 'name': bNKA}) geh0.content_type = 'application/json' return qQXR.dumps(llaM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PKRp(YKHO):\n return Fv2L.projects", "def llaM(YKHO):\n return XP5J.Projects(YKHO)", "def Pnw4(YKHO):\n return YKHO.__projects", "def PKRp(YKHO):\n return YKHO.http_call('get', url=f'{YKHO.base_url}/projects').json()", "def PKRp(YKHO):\n Ylbp = YKHO.conn.cursor().execute('SELECT * FROM p...
[ "0.8724896", "0.83391625", "0.8327239", "0.8324768", "0.8268606", "0.80907303", "0.80517626", "0.7972364", "0.7922078", "0.7869921", "0.7847794", "0.78318465", "0.7809198", "0.77894056", "0.7730232", "0.7721734", "0.76871973", "0.766436", "0.7609134", "0.7579387", "0.7574908"...
0.7339555
31
Return the list of states of this plugin.
def HEpx(YKHO, ekCf, aTxY): from geoffrey.data import datakey wjLZ = datakey(project=ekCf, plugin=aTxY) geh0.content_type = 'application/json' return BfDw.jsonencoder.encode([KCHu.serializable() for KCHu in YKHO.server.hub.get_states(wjLZ)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qYvF(YKHO):\n return YKHO.states", "def zZgD(YKHO) -> x1iM[YrBT]:\n return YKHO.__STATES__", "def By99(YKHO):\n return [LihS.getstate() for LihS in YKHO]", "def fqm3(YKHO):\n return YKHO._states", "def OMAa(YKHO) -> bdIy[Mj14]:\n pass", "def wspz(YKHO) -> eBH2[ImMB]:\n return []", ...
[ "0.82501197", "0.77690196", "0.76578045", "0.7560449", "0.75386643", "0.75329566", "0.75040877", "0.74932325", "0.735629", "0.71534085", "0.704421", "0.70064116", "0.6995536", "0.69708186", "0.69600093", "0.6959018", "0.69525653", "0.69230497", "0.6873112", "0.6865247", "0.68...
0.6934388
17
Serve index.html redered with jinja2.
def d6pt(YKHO): return {'projects': [XP5J for XP5J in YKHO.server.projects.values()]}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(pmON):\n return TvZl('main.jinja2.html')", "def d6pt():\n return P4t4.send_static_file('index.html')", "def d6pt():\n return P4t4.send_static_file('index.html')", "def d6pt():\n return (TvZl('index.html'), 200)", "def d6pt():\n return (TvZl('index.html'), 200)", "def d6pt():\n ...
[ "0.84246004", "0.8272775", "0.82501537", "0.8228777", "0.81703055", "0.81307155", "0.8094319", "0.80637187", "0.80637187", "0.80637187", "0.80637187", "0.80637187", "0.80637187", "0.80637187", "0.80637187", "0.80637187", "0.80637187", "0.80637187", "0.80637187", "0.80637187", ...
0.0
-1
Serve project.html redered with jinja2.
def bNKA(YKHO, ekCf): try: return {'project': YKHO.server.projects[ekCf]} except KeyError: raise VrQA(404, 'Unknown project')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return TvZl('project.html')", "def d6pt(pmON):\n return TvZl('main.jinja2.html')", "def d6pt():\n return TvZl('home.jinja2')", "def b8V_():\n return TvZl('index.html')", "def b8V_():\n return TvZl('index.html')", "def iXC1():\n return TvZl('index.html')", "def rgkM(qv1X,...
[ "0.76853174", "0.75702834", "0.7240784", "0.6982168", "0.6982168", "0.6910416", "0.6821985", "0.6790587", "0.67658055", "0.67555386", "0.6735233", "0.6735233", "0.67199844", "0.67199844", "0.6713254", "0.66706204", "0.6651341", "0.6625179", "0.65809524", "0.65652275", "0.6559...
0.0
-1
Create a nicely formatted HTML representation of a singular or list of substitutions.
def N6HC(zbDt: Union[SubstituteTerm, List[SubstituteTerm]]): l5Ny = '' if isinstance(zbDt, _ghI): HSKp = str(zbDt) for zFiD in HSKp.split('\n'): l5Ny += DfCi.escape(zFiD) + DfCi('<br />') l5Ny += DfCi('<br />') return l5Ny for OXAZ in zbDt: HSKp = str(OXAZ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n a1PO = GSRe('\\n <h4>$title</h4>\\n $imgs\\n $footnotes\\n <hr/>')\n return a1PO.substitute({'title': YKHO.title, 'imgs': YKHO.render_images(), 'footnotes': YKHO.render_footnotes()})", "def _1tc(YKHO, mWFP, BWXx, o8Kj=None, mrPm=()):\n YKHO.n...
[ "0.581361", "0.5800976", "0.57761186", "0.5666923", "0.5624687", "0.5621324", "0.5601476", "0.5572784", "0.5540061", "0.5529508", "0.5505106", "0.5487089", "0.5471752", "0.5471752", "0.5471752", "0.5471752", "0.54387504", "0.54198366", "0.53992283", "0.5394507", "0.53875756",...
0.7432605
0
Compare equality of this value with another. The types must match.
def cIT_(YKHO: _TT, Elif: _TT) -> bool: if type(YKHO) != type(Elif): raise TypeError('Types do not match') return YKHO.value_in_units(YKHO.default_prefix) == Elif.value_in_units(YKHO.default_prefix)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return YKHO.type == Elif.type and YKHO.value == Elif.value", "def xa14(YKHO, Elif):\n return YKHO.type == Elif.type and YKHO.value == Elif.value", "def l_QA(YKHO, Elif):\n return True", "def xa14(YKHO, Elif):\n return YKHO.value == Elif.value", "def xa14(YKHO, Elif):\n ...
[ "0.8487615", "0.83492357", "0.8080564", "0.7810967", "0.77573514", "0.7740007", "0.7690485", "0.76048404", "0.7589608", "0.75584024", "0.7516329", "0.7493757", "0.7493757", "0.74235433", "0.74088377", "0.73990095", "0.73897755", "0.73827124", "0.7343608", "0.73415744", "0.734...
0.72294253
37
Compare equality of this value with another. The types must match.
def xa14(YKHO: _TT, Elif: object) -> bool: return YKHO.eq(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return YKHO.type == Elif.type and YKHO.value == Elif.value", "def xa14(YKHO, Elif):\n return YKHO.type == Elif.type and YKHO.value == Elif.value", "def l_QA(YKHO, Elif):\n return True", "def xa14(YKHO, Elif):\n return YKHO.value == Elif.value", "def xa14(YKHO, Elif):\n ...
[ "0.8489497", "0.83508813", "0.80812824", "0.7813282", "0.7759384", "0.77418506", "0.7691519", "0.76061225", "0.75919235", "0.7560689", "0.7518358", "0.7496791", "0.7496791", "0.7426171", "0.7410996", "0.7399769", "0.7391777", "0.7384996", "0.73464406", "0.73430836", "0.734204...
0.7189852
43
Compare inequality of this value with another. The types must match.
def d_5N(YKHO: _TT, Elif: _TT) -> bool: if type(YKHO) != type(Elif): raise TypeError('Types do not match') return not YKHO.eq(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return YKHO.type != Elif.type or YKHO.value != Elif.value", "def xa14(YKHO, Elif):\n return int.__ne__(YKHO, Elif)", "def Vdqg(YKHO, Elif):\n return kUu4(YKHO, Elif)", "def Vdqg(YKHO, Elif):\n return int.__eq__(YKHO, Elif)", "def Vdqg(YKHO, Elif):\n return YKHO.dtype ...
[ "0.7789724", "0.7358024", "0.73365855", "0.7321399", "0.73185587", "0.72969794", "0.726275", "0.7210425", "0.71830374", "0.7177267", "0.7163777", "0.7156712", "0.7136913", "0.71352273", "0.71352273", "0.7127493", "0.71195805", "0.7101706", "0.7090631", "0.707465", "0.70697814...
0.74639887
1
Compare inequality of this value with another. The types must match.
def Vdqg(YKHO: _TT, Elif: object) -> bool: return YKHO.ne(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return YKHO.type != Elif.type or YKHO.value != Elif.value", "def d_5N(YKHO: _TT, Elif: _TT) -> bool:\n if type(YKHO) != type(Elif):\n raise TypeError('Types do not match')\n return not YKHO.eq(Elif)", "def xa14(YKHO, Elif):\n return int.__ne__(YKHO, Elif)", "def Vdq...
[ "0.7789724", "0.74639887", "0.7358024", "0.73365855", "0.7321399", "0.73185587", "0.72969794", "0.726275", "0.7210425", "0.71830374", "0.7177267", "0.7163777", "0.7156712", "0.7136913", "0.71352273", "0.71352273", "0.7127493", "0.71195805", "0.7101706", "0.7090631", "0.707465...
0.0
-1
Check if self is less than other. The types must match.
def JWbp(YKHO: _TT, Elif: _TT) -> bool: if type(YKHO) != type(Elif): raise TypeError('Types do not match') return YKHO.value < Elif.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JWbp(YKHO, Elif):\n return YKHO.lessThan(Elif)", "def JWbp(YKHO, Elif):\n return YKHO._comparator.compare_measurements(YKHO, Elif) == 1", "def JWbp(YKHO, Elif: Any) -> bool:\n if isinstance(Elif, WnaT):\n return float(YKHO) < Elif.to(YKHO.units)\n return float(YKHO) < Elif", "def JWbp(...
[ "0.8177419", "0.79188776", "0.79169124", "0.7903571", "0.78901744", "0.7861724", "0.78578293", "0.7849604", "0.7845744", "0.78049344", "0.78003174", "0.78003174", "0.77952206", "0.77952206", "0.7792081", "0.7786218", "0.7763305", "0.77572745", "0.77443147", "0.7683894", "0.76...
0.82047075
0
Check if self is less than or equal to other. The types must match.
def TPjt(YKHO: _TT, Elif: _TT) -> bool: if type(YKHO) != type(Elif): raise TypeError('Types do not match') return YKHO.value <= Elif.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zcf_(YKHO: _TT, Elif: _TT) -> bool:\n if type(YKHO) != type(Elif):\n raise TypeError('Types do not match')\n return YKHO.value >= Elif.value", "def JWbp(YKHO: _TT, Elif: _TT) -> bool:\n if type(YKHO) != type(Elif):\n raise TypeError('Types do not match')\n return YKHO.value < Elif.v...
[ "0.8269749", "0.8156888", "0.7959218", "0.782644", "0.77851874", "0.77851874", "0.77802277", "0.7744213", "0.770726", "0.76717806", "0.7658956", "0.7649101", "0.76487803", "0.76363945", "0.76281005", "0.76281005", "0.76222974", "0.7605231", "0.76008826", "0.7593185", "0.75652...
0.8232501
1
Add other and self. The types must match.
def FOdN(YKHO: _TT, Elif: _TT) -> Kt5e: if type(YKHO) != type(Elif): raise TypeError('Types do not match') return type(YKHO)(str(YKHO.value + Elif.value), '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOdN(YKHO, Elif):\n raise NotImplementedError('Implement this if needed')", "def Qw6N(YKHO, Elif):\n raise NotImplementedError('{} does not support addition'.format(type(YKHO)))", "def FOdN(YKHO, Elif):\n raise NotImplementedError", "def FOdN(YKHO, Elif):\n raise NotImplementedError", "def ...
[ "0.84498745", "0.84130085", "0.8263157", "0.8263157", "0.8167373", "0.81477696", "0.81411535", "0.81411535", "0.8125277", "0.8097161", "0.80855507", "0.80210125", "0.80131054", "0.8011747", "0.7838893", "0.7798971", "0.7747998", "0.7718135", "0.77049744", "0.77047026", "0.765...
0.76568204
21
Default is plain degrees Celsius (e.g. "25" > "25 C").
def yK8Q(YKHO) -> str: return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fQib(ycBG):\n ET99 = (ycBG - 32) * 5 / 9\n return ET99", "def GMoH(_IXK):\n return (_IXK - 32) * (5 / 9)", "def YEUD(YKHO):\n try:\n YKHO.root.ids.fahrenheit_input.hint_text = 'Enter amount in Fahrenheit'\n YKHO.root.ids.celsius_input.text = '{:.2f}'.format((float(YKHO.root.ids.fa...
[ "0.7114742", "0.70627195", "0.7028331", "0.70053196", "0.69676816", "0.6908136", "0.68408805", "0.6737831", "0.670488", "0.6697212", "0.6691799", "0.66807866", "0.66803306", "0.6575728", "0.657497", "0.65448105", "0.65448105", "0.65448105", "0.65448105", "0.65448105", "0.6544...
0.0
-1
The role definition name.
def mWFP(YKHO) -> str: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eZyY(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_definition_id')", "def eZyY(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_definition_id')", "def LmAn(YKHO) -> str:\n assert YKHO.data is not None\n return YKHO.data['role']['name']", "def eZyY(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.ge...
[ "0.7743742", "0.7743742", "0.7698516", "0.7415485", "0.72732705", "0.7130731", "0.7030387", "0.6917913", "0.688072", "0.67929935", "0.6619846", "0.6619846", "0.65851176", "0.65649706", "0.6559848", "0.6522246", "0.64689267", "0.64689267", "0.64689267", "0.6463127", "0.6463127...
0.0
-1
The role definition type.
def type(YKHO) -> str: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LmAn(YKHO):\n P4Fy(YKHO, 'role', \"Use attribute 'construct_type' instead\")", "def eZyY(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_definition_id')", "def eZyY(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_definition_id')", "def eYpX(YKHO, LmAn):\n return None", "def eZyY(YKHO) -> qe4Y.Outpu...
[ "0.6698811", "0.6515991", "0.6515991", "0.64343756", "0.6321531", "0.62716305", "0.6129937", "0.6101933", "0.6066323", "0.60542077", "0.60542077", "0.60542077", "0.6051389", "0.60352767", "0.6028405", "0.6020705", "0.59910566", "0.5984608", "0.5984608", "0.5984608", "0.598460...
0.0
-1
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(lQmb, YKHO).__init__(*qIxc, **c_sp) if YKHO.sysid is None: YKHO.sysid = 0 if YKHO.compid is None: YKHO.compid = 0 if YKHO.limits_state is None: YKHO.limits_state = 0 if YKHO.last_trigger...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.7794013", "0.7718835", "0.7718835", "0.7685622", "0.76249295", "0.7561895", "0.74385226", "0.74156964", "0.73515606", "0.7307414", "0.72803426", "0.7237456", "0.72262406", "0.7222833", "0.7222833", "0.7218459", "0.72099864", "0.72099864", "0.72099864", "0.72099864", "0.720...
0.0
-1
Generate and return a healthcheck response.
def _R5j(YKHO, QePW): dhRN = jJ65 tO9_ = YKHO.make_response('OK') if YKHO.redirector.active_node_ip_port is None: dhRN = _7y7 tO9_ = YKHO.make_response('No Active Vault') QePW.setResponseCode(dhRN, message=tO9_) QePW.setHeader('Content-Type', 'application/json') if YKHO.redirecto...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hFFi(YKHO):\n return gnPz.create_response(output='OK')", "def _R5j():\n return Yxsy(pz3A(status=200, message='Healthy'), jGRS.HTTP_200_OK)", "def OYWx():\n return ('', 200)", "def YDR7():\n return ('', 200)", "def OYWx():\n P4t4.logger.info('Health Check!')\n return oGir('All Good!', ...
[ "0.802485", "0.77074367", "0.7512624", "0.7500844", "0.7327958", "0.7084402", "0.705349", "0.69670343", "0.6913111", "0.68223006", "0.6725334", "0.67168075", "0.6697383", "0.6569488", "0.6566781", "0.6561923", "0.64547014", "0.6334859", "0.6329124", "0.63058436", "0.6282877",...
0.58168834
48
Return num_items many items of seq, spread evenly. If seq is shorter than num_items, include all items. Otherwise, include first and last items and spread evenly in between. (If num_items is 1, only include first item.)
def NFUi(Q6uT, mTYt): if len(Q6uT) <= mTYt: return Q6uT if mTYt == 1: return [Q6uT[0]] Rf07 = (len(Q6uT) - 1) / float(mTYt - 1) TMYW = [YRbF * Rf07 for YRbF in range(mTYt)] return [Q6uT[int(round(d6pt))] for d6pt in TMYW]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zj7q(aWuw, mLGw):\n u54L = float(len(aWuw))\n for YRbF in range(mLGw):\n yield aWuw[int(oyIN.ceil(YRbF * u54L / mLGw))]", "def Zj7q(aWuw, mLGw):\n u54L = float(len(aWuw))\n for YRbF in range(mLGw):\n yield aWuw[int(lO1m(YRbF * u54L / mLGw))]", "def yOAJ(zNig, Q6uT):\n if not is...
[ "0.6699766", "0.66776925", "0.64731294", "0.6373739", "0.6299112", "0.6218917", "0.61767405", "0.6134805", "0.6121701", "0.6070096", "0.6070043", "0.6037862", "0.59886056", "0.59750354", "0.59304655", "0.5926504", "0.59138757", "0.5903377", "0.59028697", "0.5899408", "0.58725...
0.71883833
0
Creates mapping key = word, value = row index
def ziFn(YKHO, C13M): V22M = YKHO._normalize_words(C13M.words) yTXi = frozenset(V22M) return dict(((GIN8, or8S) for or8S, GIN8 in enumerate(yTXi)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sOI3(l5Ny: Iterable) -> cuzp[str, x1iM[AzJI[int, int]]]:\n d6pt = oRi_(list)\n for Q82t, zFiD in enumerate(l5Ny, 1):\n for kUBT in uZsy.finditer(zFiD):\n GIN8 = kUBT.group()\n hodm = kUBT.start() + 1\n Rci7 = (Q82t, hodm)\n d6pt[GIN8].append(Rci7)\n r...
[ "0.7159948", "0.6949987", "0.66246754", "0.66195613", "0.6606184", "0.6294764", "0.62644446", "0.61882865", "0.61626875", "0.6162056", "0.6147786", "0.6146079", "0.6131257", "0.61265624", "0.6122289", "0.6063121", "0.60443723", "0.60232854", "0.59934974", "0.596981", "0.59339...
0.57246023
36
Test if n is prime, with witness a. Output True if n is prime, False otherwise
def DWB2(exwG, jzdc): hlel = tynx(jzdc, exwG - 1, exwG) if hlel == 1: bYRn('prime') return True bYRn('composite') return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T1qg(jzdc):\n return all((jzdc % YRbF for YRbF in Ni9Y(2, jzdc)))", "def FBNJ(exwG):\n return T1qg(exwG)", "def FBNJ(exwG):\n return T1qg(exwG)", "def pZ6m(exwG):\n if q0b5[exwG]:\n return True\n else:\n return False", "def T1qg(exwG):\n return kU5Q(exwG)", "def JVAb(E...
[ "0.7837422", "0.77885544", "0.7740405", "0.76765877", "0.7637204", "0.75215995", "0.75006753", "0.74756145", "0.7446736", "0.74348235", "0.7434485", "0.7431155", "0.74153996", "0.7403929", "0.7353826", "0.73335487", "0.731264", "0.73082674", "0.73048615", "0.7267132", "0.7265...
0.70814806
55
Speedily computes a^x (mod n)
def yBDY(jzdc, WKvO, exwG): tEh9 = AluO(WKvO) bYRn('{} = [{}]_2'.format(str(WKvO), tEh9)) OtqY = [jzdc % exwG] bYRn('{}^(2^0) = {}^1 = {} \\equiv {}'.format(jzdc, jzdc, jzdc, jzdc % exwG)) YRbF = 1 while YRbF < len(tEh9): bYRn('{}^{{ {}^{} }} = {}^{{ {} }} = {}^{{ {} }} * {}^{{ {} }} = {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OFek(jzdc, exwG, r8hN):\n Aofo = 1\n BWXx = jzdc\n naF9 = exwG\n while naF9 > 0:\n if naF9 % 2 == 1:\n Aofo = Aofo * BWXx\n Aofo %= r8hN\n BWXx = BWXx * BWXx\n BWXx %= r8hN\n naF9 = naF9 // 2\n return Aofo", "def Fm15(jzdc, exwG, VlDb):\n if...
[ "0.79421157", "0.7464723", "0.73651356", "0.7330644", "0.73195386", "0.7313797", "0.72905034", "0.7276198", "0.7246754", "0.7216778", "0.72006136", "0.71849555", "0.71495146", "0.70580775", "0.70481366", "0.7007317", "0.6999108", "0.69729644", "0.6950965", "0.69267964", "0.69...
0.7604963
1
Returns a list of the file's full filespaths from the passed directory.
def JMfG(dir: str): MVVZ = [f'{dir}/{nUeQ}' for nUeQ in U9eF(dir) if EFYe(gzes(dir, nUeQ))] return MVVZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fv66(YKHO, AGPF):\n VoQp = [Hy7s.path.join(AGPF, xtX7) for xtX7 in Hy7s.listdir(AGPF) if not xtX7.startswith('.')]\n CNwg = [[Hy7s.path.join(rNxu, X2qJ) for X2qJ in Hy7s.listdir(rNxu)] for rNxu in VoQp]\n return CNwg", "def ZQnd(AGPF):\n xXFf = []\n for tk5Y, uRGD, RRlC in Hy7s.walk(AGPF):\n ...
[ "0.82656676", "0.8022355", "0.80130976", "0.7965983", "0.7958262", "0.79399973", "0.7929841", "0.7923375", "0.78915095", "0.78915095", "0.78915095", "0.7870893", "0.77364165", "0.76328206", "0.76297075", "0.76133543", "0.7523412", "0.7522805", "0.74846363", "0.74801105", "0.7...
0.7711428
13
Registers a route using Flask's route() method. Depends on make_route() to set attributes, so calling function nests this function after make_route().
def gr_i(P4t4, FYKK): @xBlr.wraps(FYKK) def J3Ay(**B2fa): """ :param kwargs: str, id of existing entry :return: dict or exception """ return FYKK(P4t4.config, **B2fa) P4t4.route(*FYKK.route_args, **FYKK.route_kwargs)(J3Ay)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZQy4(YKHO, PsCT, P4t4):\n assert PsCT not in YKHO.routes\n YKHO.routes[PsCT] = P4t4", "def jbgU(YKHO, PsCT: Route, vQLm: str, na_E: typing.Iterable[str]=('GET',)):\n PsCT.routing_url = vQLm\n PsCT.methods = na_E\n YKHO.routes.append(PsCT)\n PsCT.bp = YKHO\n return PsCT", "def PsCT(YKHO...
[ "0.79209733", "0.7192723", "0.71093345", "0.71085656", "0.6970921", "0.6878834", "0.6854651", "0.6851344", "0.68498003", "0.6847353", "0.682385", "0.68175274", "0.6793829", "0.67623925", "0.6709542", "0.66622424", "0.66376895", "0.6614897", "0.6593398", "0.6571527", "0.655145...
0.6497629
22
! Gets the transformation matrix from dh parameters.
def XVls(jzdc, Cwt5, Csk6, q7In): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yL2c(YKHO):\n ecEc = oyIN.array([oyIN.cos(YKHO.theta), -oyIN.sin(YKHO.theta) * oyIN.cos(YKHO.alpha), oyIN.sin(YKHO.theta) * oyIN.sin(YKHO.alpha), YKHO.a * oyIN.cos(YKHO.theta)])\n znzI = oyIN.array([oyIN.sin(YKHO.theta), oyIN.cos(YKHO.theta) * oyIN.cos(YKHO.alpha), -oyIN.cos(YKHO.theta) * oyIN.sin(YKHO.a...
[ "0.7223759", "0.7196637", "0.6873913", "0.673187", "0.6503569", "0.6426385", "0.6411647", "0.6405354", "0.6387804", "0.6387804", "0.63843906", "0.6356444", "0.63466644", "0.6344464", "0.6341292", "0.63363296", "0.6311011", "0.6265211", "0.6264327", "0.62036526", "0.6183622", ...
0.6528768
4
gti_data = np.array([ [0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0], [0, 0, 5, 5, 5, 5, 5, 5, 0, 0, 0], [0, 0, 5, 5, 5, 5, 5, 5, 2, 2, 2], [0, 0, 5, 5, 5, 5, 5, 5, 2, 2, 2], [0, 5, 5, 5, 5, 5, 5, 5, 2, 2, 2], [0, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0], [0, 5, 5, 5, 5, 5, 5, 5, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 3,...
def X6_l(GnBi, vsfG): D7Gk = oyIN.full(GnBi.shape, dtype=oyIN.uint8, fill_value=gF2o) WZcn = oyIN.ones((3, 3)) for UXqs, N8lh, eF90, q47t in o1VH(GnBi): hVLt = 1 MX3a = XC5k.copyMakeBorder(N8lh, hVLt, hVLt, hVLt, hVLt, XC5k.BORDER_CONSTANT, value=0) _gRY = XC5k.erode(MX3a, WZcn, iter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tait(VXjJ, WZcn=(5, 5), OnWS=1):\n jbXL = qWz7(VXjJ)\n G1Hx = oyIN.ones(WZcn, oyIN.uint8)\n JR2b = XC5k.erode(jbXL, G1Hx, iterations=OnWS)\n return JR2b", "def Tait(LNo8, Ot1W=(5, 5)):\n WZcn = oyIN.ones(Ot1W, oyIN.uint8)\n LNo8 = XC5k.erode(LNo8, WZcn)\n return LNo8", "def Tait(LNo8, ...
[ "0.6813081", "0.6655335", "0.6655335", "0.6326385", "0.62629443", "0.6173644", "0.616028", "0.60584724", "0.6048696", "0.60176474", "0.6009464", "0.5972192", "0.59574443", "0.5947122", "0.59254193", "0.5881773", "0.58735096", "0.58453214", "0.5690558", "0.5689311", "0.5658610...
0.55255014
35
Tests the ``to_python()`` method. It should return ``None`` (if ``None`` given), the object if ``MultiLingualTextStructure``, or the object converted to ``MultiLingualTextStructure`` otherwise.
def oMSC(YKHO): Jyyj = qeTX() YKHO.assertEqual(None, Jyyj.to_python(None), 'to_python of None should always return None.') hGN5 = qQXR.dumps({'nb': 'test-nb', 'en': 'test-en'}) g8x2 = asY0(hGN5, use_default_for_empty=True) YKHO.assertEqual(g8x2, Jyyj.to_python(g8x2), 'to_python of a MultiLingualText...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XjaA(YKHO):\n Jyyj = qeTX()\n KDgG = Jyyj.from_db_value(None, None, None)\n YKHO.assertEqual(asY0, type(KDgG), 'from_db_value should always be of type MultiLingualTextStructure')\n YKHO.assertEqual(str(KDgG), '')\n EIOw = Jyyj.from_db_value('test', None, None)\n YKHO.assertEqual(asY0, type(EI...
[ "0.57009166", "0.56299824", "0.55680037", "0.5488348", "0.5338049", "0.53207386", "0.5283834", "0.51322764", "0.5092174", "0.50363445", "0.5033038", "0.502039", "0.4997337", "0.49939436", "0.49646625", "0.4963914", "0.4873973", "0.4870973", "0.48417282", "0.48417282", "0.4840...
0.8195778
0
Sets the derived_item_categories of this DestinyDefinitionsDestinyItemPreviewBlockDefinition.
def k8AQ(YKHO, k8AQ): YKHO._derived_item_categories = k8AQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LeZt(YKHO, LeZt):\n YKHO._categories = LeZt", "def f7fk(YKHO):\n YKHO.category.fill_tab_categories(YKHO.list_categories, YKHO.mycursor, YKHO.my_database)", "def ewN0(YKHO):\n super(ddlj, YKHO).on_category()\n gDIu = YKHO.tw_category.selectedItems() or []\n if gDIu:\n if hasattr(gDIu[0...
[ "0.42504486", "0.41763225", "0.41738588", "0.4147597", "0.4145194", "0.41436017", "0.41436017", "0.41436017", "0.41436017", "0.41305125", "0.41266572", "0.41144997", "0.40753424", "0.40561587", "0.38878268", "0.38473186", "0.3840825", "0.38260534", "0.38147235", "0.37995836", ...
0.7910564
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, rzge): 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
aux auf to make '100__a' out of ['100','','','a']
def LnNm(i1Fz): TZ9E = '' for a1PO in i1Fz: if a1PO == '': a1PO = '_' TZ9E = TZ9E + a1PO return TZ9E
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iVIQ(WKvO):\n return [vAu5(LVAh) for LVAh in WKvO]", "def x0SS(jzdc):\n Fg_i = jzdc.lower()\n Z9rn = ZbWC.sub('[^A-Za-z0-9]+', ' ', Fg_i).split()\n return Z9rn", "def Obvw() -> x1iM[str]:\n return ['A_1', 'A_2', 'A_3']", "def cll5(Ldyl, Jyyj):\n BDwY = []\n for XP5J in Ldyl:\n ...
[ "0.626513", "0.5933304", "0.5747301", "0.5679641", "0.55706316", "0.54705375", "0.5390125", "0.53830534", "0.536347", "0.53619814", "0.5348391", "0.53348833", "0.53115875", "0.5304542", "0.5290489", "0.5288956", "0.52829987", "0.5279524", "0.5274321", "0.52679646", "0.5253277...
0.48427668
75
Check username is valid or not
def mxq9(YKHO, NtEF): if YKHO.username_regex.search(NtEF) is not None: print('Correct username') return True else: print('Wrong username') return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L5TJ(P6bq):\n return P6bq and lUx9.match(P6bq)", "def PgZC(MlDp):\n return lUx9.match(MlDp)", "def Gt2s(YKHO, NtEF):\n gVaL = '^[a-zA-Z]{3,}$'\n return ZbWC.match(gVaL, NtEF)", "def Z3WL(NtEF):\n MBVI = 3\n eQSh = 'valid'\n if len(NtEF) < MBVI:\n eQSh = 'invalid'\n elif ZbW...
[ "0.8540924", "0.84600514", "0.8454873", "0.8400678", "0.8395739", "0.8378274", "0.835083", "0.8337027", "0.833407", "0.8324205", "0.8316021", "0.8305803", "0.8281563", "0.82359076", "0.8227417", "0.81931025", "0.81915444", "0.81847", "0.8122291", "0.8110087", "0.8095193", "...
0.8756299
0
Check password is valid or not
def tWk5(YKHO, jTXt): if YKHO.password_regex.search(jTXt) is not None: print('Correct password') return True else: print('Wrong password') return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SqNO(YKHO):\n RnXU = wsY0(''.join(['x' * int(YKHO.app.config['MAX_PWD_LEN'])]))\n UpdD(None, RnXU)", "def EoXa(jTXt):\n pass", "def tg18(nPrm):\n if 'password' not in nPrm:\n return False\n jTXt = nPrm['password']\n if len(jTXt) < 4 or len(jTXt) > 16:\n return False\n ret...
[ "0.8513757", "0.8485963", "0.8283479", "0.8146151", "0.8137212", "0.8133873", "0.8050052", "0.80201", "0.80132633", "0.79668003", "0.79447955", "0.7942233", "0.7933791", "0.7915177", "0.7904527", "0.7900205", "0.7898659", "0.78936994", "0.7889744", "0.78833944", "0.78769594",...
0.84296614
2
x1, y1 = p1 x2, y2 = p2 return abs(x1 x2) + abs(y1 y2)
def MKlR(EBgd, HpuQ): o4D3, si3g = EBgd ajwV, skBL = HpuQ Jw7X = abs(o4D3 - ajwV) eUWA = abs(si3g - skBL) Csk6 = 1 _sQW = 1 MKlR = Csk6 * (Jw7X + eUWA) + (_sQW - 2 * Csk6) * min(Jw7X, eUWA) return MKlR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dy5h(EBgd, HpuQ):\n o4D3, si3g = EBgd\n ajwV, skBL = HpuQ\n return ((o4D3 - ajwV) * (o4D3 - ajwV) + (si3g - skBL) * (si3g - skBL)) ** 0.5", "def H2v5(YKHO, EBgd, HpuQ):\n if EBgd is None:\n return HpuQ\n if HpuQ is None:\n return EBgd\n o4D3, si3g = EBgd\n ajwV, skBL = HpuQ...
[ "0.7514179", "0.74884844", "0.7328659", "0.73015", "0.72653985", "0.7218041", "0.7197124", "0.7157154", "0.71298754", "0.70463127", "0.69635034", "0.69025075", "0.6884231", "0.6866224", "0.67430687", "0.66654086", "0.66528803", "0.6624981", "0.6623209", "0.66115046", "0.66099...
0.0
-1
This slot's unique ID, as it appears in the deck definition. This can be used to look up slot details in the deck definition. This is preferred over `.value` or `.__str__()` for explicitness.
def id(YKHO) -> str: return YKHO.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oQ6W(YKHO):\n if YKHO.__slot in KuQI.SLOTS:\n return YKHO.__slot\n else:\n raise ValueError('Bad slot number !')", "def ShR8(YKHO) -> str:\n return YKHO.get_unique_id(wallet=YKHO.wallet_id, nonce=YKHO.nonce)", "def ShR8(YKHO):\n return kWKo.ax25_pdu_unpacker_sptr_unique_id(YKHO)",...
[ "0.699074", "0.6705826", "0.66845423", "0.66596943", "0.665877", "0.66267174", "0.65879273", "0.6586923", "0.65740407", "0.652181", "0.6519821", "0.6513885", "0.65122163", "0.6506125", "0.6506125", "0.6482951", "0.6482902", "0.6473385", "0.6457439", "0.6447112", "0.6447112", ...
0.68129075
1
Validate that the email is not already in use.
def YBiq(YKHO): try: CBIr = mv1M.objects.get(email__iexact=YKHO.cleaned_data['email']) except mv1M.DoesNotExist: return YKHO.cleaned_data['email'] raise H6V6.ValidationError(bGrB('A user with that email already exists.'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bt7w(YKHO, D3lj):\n if D3lj.data != c5ow.email:\n CBIr = mv1M.query.filter_by(email=D3lj.data).first()\n if CBIr:\n raise sUXu('That email already exists. Please choose another email.')", "def YBiq(YKHO):\n Ys3F = mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email'])\n ...
[ "0.7937491", "0.78997964", "0.78647095", "0.77658063", "0.77507335", "0.7686202", "0.76505077", "0.76505077", "0.7643141", "0.7542166", "0.7531488", "0.7512208", "0.749662", "0.7476814", "0.7466274", "0.74633485", "0.74148434", "0.73954046", "0.738715", "0.73804814", "0.73739...
0.6915044
42
Build the Deck Loader for the test
def FCbF(YKHO): YKHO.items = [1, 2, 3, 4, 5] GhK6 = ay17() [GhK6.addItem(ZfUD, 1) for ZfUD in YKHO.items] YKHO.deckLoader = eeOa(GhK6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RuZU(GPtr):\n W7C9 = [Kt_s.Resize((256, 128)), Kt_s.RandomHorizontalFlip(), Kt_s.ToTensor(), Kt_s.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])]\n W7C9 = Kt_s.Compose(W7C9)\n aLdE = [Kt_s.Resize((256, 128)), Kt_s.ToTensor(), Kt_s.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])]\n aLdE =...
[ "0.6564545", "0.6360634", "0.63571835", "0.6323059", "0.6245681", "0.62319267", "0.6199012", "0.6186175", "0.6131993", "0.6125377", "0.61228716", "0.6109008", "0.61022186", "0.61013734", "0.60801584", "0.60114074", "0.60013574", "0.5962817", "0.5953434", "0.59507775", "0.5913...
0.62608194
4
Test that the deck is created properly
def qxzd(YKHO): nf_0 = YKHO.deckLoader.loadDeck() YKHO.assertTrue(all([ZfUD in nf_0 for ZfUD in YKHO.items]), 'Each item in the deck initializer should be in the deck')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QPBY(YKHO):\n kfQt = F1Hz('5', 's')\n emci = QHsX()\n nf_0 = emci.get_deck()\n YKHO.assertEquals(str(kfQt), str(nf_0[4]))", "def ltUN():\n pass", "def YHp_(YKHO):\n nIV7 = SAR3(deck_name='Test Deck Name')\n YKHO.assertEqual(FWUo.deck.Deck, type(nIV7))", "def KWiG(YKHO):\n pass", ...
[ "0.78386056", "0.78181976", "0.7817289", "0.7801003", "0.75754887", "0.75214285", "0.7520781", "0.7493928", "0.74697274", "0.7254102", "0.72316784", "0.7188871", "0.7113905", "0.7106764", "0.7088169", "0.7034932", "0.698655", "0.6961691", "0.69396377", "0.6931241", "0.6816131...
0.791016
0
Return whether or not there are previous pages from the currently displayed page.
def bFdH(YKHO): return YKHO.page > 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bFdH(YKHO):\n return YKHO.current_page > 1", "def HdMg(YKHO):\n return YKHO.page > 1", "def HdMg(YKHO):\n return YKHO.page > 1", "def bFdH(YKHO) -> bool:\n return YKHO.published_before().count() != 0", "def DWos(YKHO):\n if not YKHO.is_paginated:\n raise zdwF('The response is not ...
[ "0.882928", "0.85812926", "0.85812926", "0.7818793", "0.757213", "0.74441236", "0.72574216", "0.70782685", "0.69289106", "0.68758", "0.6799423", "0.6752267", "0.66575694", "0.66365916", "0.66365916", "0.66365916", "0.65581673", "0.6478808", "0.6467624", "0.6420017", "0.641290...
0.87382364
1
Calculate NDCG. The function assumes, we already sorted everything in the order of decreasing scores.
def nrOS(YKHO, zcYj, gatc): fTAW = YKHO._dcg(sorted(gatc.values(), reverse=True)) return YKHO._dcg(zcYj) / fTAW if fTAW > 0 else 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pHfF(toXj, fdMZ=10):\n OiNR = x2PR(sorted(toXj, reverse=True), fdMZ)\n if OiNR == 0:\n return 0.0\n return x2PR(toXj, fdMZ) / OiNR", "def B5VY(cCrA, FMQW=oyIN.log2):\n cCrA = oyIN.nan_to_num(cCrA)\n HRrY = oyIN.arange(1, len(cCrA) + 1)\n QkbE = FMQW(HRrY)\n oyIN.maximum(QkbE, 1, o...
[ "0.7706102", "0.7589097", "0.7228468", "0.7171138", "0.7094153", "0.7087854", "0.7068036", "0.70546424", "0.69466734", "0.67094135", "0.67041653", "0.66926247", "0.6691362", "0.66396123", "0.66211337", "0.65662634", "0.6523564", "0.6415667", "0.64123493", "0.6379668", "0.6338...
0.5376932
52
It's a slot which is called when the setting button is pressed This method opens the file manager and if a directory or a file is chosen, it fills edit lines
def t7Ko(YKHO): vC92 = YKHO.sender() if vC92 == YKHO.mapsDirectoryButton: TwE8, bGrB = lZdW.getOpenFileName(YKHO, caption='Открыть', directory='/', filter='Image files (*.jpg *.JPG *.png *.jpeg *.bmp') if TwE8: YKHO.mapsDirectoryLine.setText(TwE8) elif vC92 == YKHO.troopsDirector...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w5aM(YKHO):\n EY3W = x5x0.QFileDialog.getOpenFileName(YKHO, u'打开文件', '/')\n if EY3W[0]:\n YKHO.File1_lineEdit.setText(EY3W[0])\n else:\n x5x0.QMessageBox.warning(YKHO, u'警告', u'请选择输入文件')", "def gnNs(YKHO):\n Tq9Y()\n YKHO.fileDialog = eA0O.QFileDialog(YKHO.parent)\n YKHO.fileD...
[ "0.7056106", "0.69966835", "0.68940663", "0.68738866", "0.6866713", "0.6858465", "0.6858465", "0.685267", "0.6840944", "0.6735564", "0.67051214", "0.6688198", "0.668139", "0.66708505", "0.6670207", "0.66078514", "0.6606934", "0.6594669", "0.657698", "0.65762657", "0.65483475"...
0.7185551
0
Loads a json file if it nonempty.
def HGRb(nUeQ: IO[AnyStr]) -> k95d: if Hy7s.path.getsize(nUeQ.name) > 0: return laHg.cast(k95d, qQXR.load(nUeQ)) return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AXOg(YKHO):\n if YKHO.file_path.exists():\n with open(YKHO.file_path) as hOYR:\n YKHO.data = qQXR.load(hOYR)", "def KrsJ(YKHO, nUeQ, nSsf=None):\n if Hy7s.path.isfile(nUeQ) and Hy7s.path.getsize(nUeQ):\n with open(nUeQ, 'r', encoding='utf-8') as eHNT:\n return qQXR.l...
[ "0.762835", "0.7599969", "0.75057316", "0.7405254", "0.72807854", "0.72572", "0.71229345", "0.70612323", "0.7041013", "0.69666064", "0.6953141", "0.693393", "0.692284", "0.68644524", "0.68295234", "0.6816347", "0.6786634", "0.6776473", "0.67584807", "0.6753719", "0.6745626", ...
0.6703026
23
Gets what column matches which language.
def AgiL(ZLJ_, YgMu): T4Wy = [] for DuqQ in YgMu: YRbF = 0 for fvDH in ZLJ_: if fvDH == DuqQ: T4Wy.append(YRbF) YRbF += 1 if len(T4Wy) != len(YgMu): print('Either missing a language or have a duplicate\n') return T4Wy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iBd8(YKHO, zYnp):\n Z9rn = zYnp\n if isinstance(Z9rn, g760.Hashable) and Z9rn in YKHO.column_labels:\n return YKHO[Z9rn]\n else:\n assert len(Z9rn) == YKHO.num_rows, 'column length mismatch'\n return Z9rn", "def SyG7(YKHO, or8S):\n return YKHO.text[YKHO._fwf.column_slices[or8...
[ "0.62636393", "0.61789846", "0.6152711", "0.60966796", "0.6089271", "0.6004885", "0.59756434", "0.5966933", "0.59179723", "0.59012645", "0.58697855", "0.5680194", "0.5678792", "0.5676237", "0.56437963", "0.5629243", "0.56290823", "0.56186384", "0.5599697", "0.559922", "0.5598...
0.0
-1
The pathname of the directory containing the unpacked source distribution. This is the directory that contains a ``setup.py``
def gSTA(YKHO): return YKHO.pip_requirement.source_dir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p3ri():\n return Hy7s.path.dirname(xAKo)", "def MfYP():\n return GkAb(xAKo).parent", "def sP2q(YKHO):\n return QMOX.get_install_dir(YKHO) + '/madgraph5/src'", "def sP2q(YKHO):\n return QMOX.get_install_dir(YKHO) + '/madgraph4/src'", "def rBl9(YKHO):\n import mewlo\n pmON = Hy7s.path.d...
[ "0.7882261", "0.78249943", "0.7451742", "0.74421036", "0.73956454", "0.73768854", "0.7256142", "0.7101482", "0.70624197", "0.7059278", "0.694501", "0.6943025", "0.6912458", "0.68570054", "0.6847402", "0.68168926", "0.6816051", "0.6813868", "0.6797789", "0.6795502", "0.6794880...
0.7516564
2
``True`` when the requirement is already installed, ``False`` otherwise.
def YvGL(YKHO): return bool(YKHO.pip_requirement.satisfied_by)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YvGL(YKHO):\n return not YKHO.dont_install", "def tiVn(WtIe, xAU6, yN0b=None):\n if 'path' in xAU6:\n return False\n if not yN0b:\n yN0b = RkCj.WorkingSet(HwRy.path)\n try:\n yN0b.require(WtIe)\n except RkCj.ResolutionError:\n return False\n else:\n return...
[ "0.77823555", "0.7527283", "0.7521783", "0.7446945", "0.7324295", "0.72457904", "0.721714", "0.71614337", "0.706286", "0.70098406", "0.69969386", "0.69896317", "0.69786394", "0.69777703", "0.6964472", "0.6922492", "0.69222534", "0.6917151", "0.69150466", "0.69119006", "0.6896...
0.79604423
0
Takes a dataframe of processed eviction data and predictions from an ARIMAX model at the month level, as well as the number of months into the future to predict.
def iVky(AEeb, Hmee, WTqr): oT0D = PUjB(AEeb, Hmee) gqqR = rLdf.DataFrame(oyIN.random.randn(1, 4), columns=['zip_predicted', 'zip_code', 'perc_of_month', 'month_year']) for x0eS in range(WTqr): xu3F = oyIN.asarray([Hmee.iloc[x0eS]['predicted_evictions']] * oT0D.shape[0]) RE8X = oyIN.asarray(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LcHy(VJv0, H96n, WTqr, zqvd):\n X2zX = rLdf.DataFrame(oyIN.random.randn(1, 2), columns=['month_year', 'predicted_evictions'])\n wzkt = qcWV.datetime.now()\n C3ST = ZgWQ.ARIMAX(data=VJv0, formula='Eviction_Notice~1+CASANF0URN', ar=2, ma=2)\n C3ST.fit()\n uN02 = C3ST.predict(h=WTqr, oos_data=H96n)...
[ "0.79838103", "0.7393525", "0.725368", "0.69809437", "0.6334739", "0.63147026", "0.6194552", "0.6134306", "0.6121274", "0.6016633", "0.601663", "0.5980682", "0.5806225", "0.57996064", "0.5768583", "0.57633406", "0.5728102", "0.5712658", "0.5658473", "0.5626327", "0.56168824",...
0.6652185
4
takes the original tweet text and returns the preprocessed texts.
def NvQE(Mau6: str): a1PO = Mau6.lower() a1PO = ZbWC.sub(f8eG, ' <URL> ', a1PO) a1PO = a1PO.replace('\n', '') a1PO = a1PO.replace('#', ' <HASHTAG> ') a1PO = ZbWC.sub(CiNH, ' <USER> ', a1PO) a1PO = ZbWC.sub(_zHk, ' <EMOTICON> ', a1PO) a1PO = ZbWC.sub(ejzT, ' <EMOJI> ', a1PO) a1PO = ZbWC.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biH0(YKHO, l5Ny):\n return l5Ny", "def biH0(YKHO, l5Ny):\n return biH0.get_tokens(l5Ny)", "def Oi1e(aWDa):\n aWDa = BP2x(aWDa)\n aWDa = om8j(aWDa)\n aWDa = ev3m(aWDa)\n aWDa = yri_(aWDa)\n aWDa = JMEZ(aWDa)\n return aWDa", "def UU3F(YKHO, X2Fn=True, pC3l='delete'):\n KSfM = []\...
[ "0.7566967", "0.7467431", "0.738912", "0.730991", "0.722519", "0.7110993", "0.70971894", "0.7094896", "0.70701337", "0.6990219", "0.69773144", "0.6968755", "0.6935003", "0.68867147", "0.6803225", "0.6801379", "0.6793875", "0.67900354", "0.6776054", "0.6768327", "0.67605615", ...
0.63083714
57
convert the birthyears of a certain range to the center point. This is to reduce the number of classes when doing a classification model over regression on age
def JjNR(xEOs): xEOs = int(xEOs) if 1940 <= xEOs <= 1955: return 1947 elif 1956 <= xEOs <= 1969: return 1963 elif 1970 <= xEOs <= 1980: return 1975 elif 1981 <= xEOs <= 1989: return 1985 elif 1990 <= xEOs <= 1999: return 1994
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cald(lO87=None):\n if lO87 is None:\n print('Please enter the year to assign class to them')\n try:\n a1PO = qcWV.datetime.today()\n Fg_i = qcWV.datetime.strptime(str(lO87), '%Y')\n jzdc = (a1PO - Fg_i).days / 365\n jzdc = int(jzdc)\n if jzdc < 10 or jzdc > 80:\n...
[ "0.5999794", "0.59221816", "0.5844322", "0.5806519", "0.57929456", "0.5738596", "0.56947285", "0.5682877", "0.56782824", "0.56642705", "0.56635046", "0.5658976", "0.56326574", "0.56149614", "0.5565969", "0.5530023", "0.5472231", "0.546988", "0.54366285", "0.5412874", "0.54118...
0.5842931
4
Center the ava on the screen.
def qxRG(YKHO): YKHO.rect.midbottom = YKHO.screen_rect.midbottom YKHO.x = float(YKHO.rect.x)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tqpl(YKHO):\n YKHO.rect.midbottom = YKHO.screen_rect.midbottom\n YKHO.x, YKHO.y = (float(YKHO.rect.x), float(YKHO.rect.y))", "def hgjH(YKHO):\n YKHO.root.update_idletasks()\n yzQ0 = YKHO.root.winfo_screenwidth()\n MKlR = YKHO.root.winfo_screenheight()\n zNig = tuple((int(bGrB) for bGrB in Y...
[ "0.7571731", "0.7510738", "0.7266956", "0.72459733", "0.7204455", "0.70775634", "0.70301646", "0.68635684", "0.68635684", "0.6860699", "0.6833622", "0.6829853", "0.6808482", "0.6786134", "0.67701036", "0.6770095", "0.6681063", "0.66643727", "0.66643727", "0.66412467", "0.6638...
0.8325066
0
add a line to a SVG group
def gPci(YKHO, dUXF, tI1R, ewBz, **dDGN): super(qq9a, YKHO).addToGroup(tI1R, ewBz, **dDGN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bON4(HWHP, _AKB, _Cnz):\n rCEz = {'style': Ui8G.formatStyle(_Cnz), lmJC.addNS('label', 'inkscape'): 'line', 'd': KtTH(HWHP, False)}\n lmJC.etree.SubElement(_AKB, lmJC.addNS('path', 'svg'), rCEz)", "def H2v5(YKHO, NN85: Drawing) -> None:\n pass", "def Y2no(YKHO):\n K6GQ = cFlk('g')\n ABDL = Y...
[ "0.6765925", "0.6018009", "0.5968184", "0.5929282", "0.59292215", "0.58818865", "0.5871255", "0.58446777", "0.58432126", "0.5815739", "0.5812686", "0.57987815", "0.57962376", "0.57535255", "0.575127", "0.57409406", "0.571864", "0.56766874", "0.56713814", "0.5660027", "0.56500...
0.7344968
0
Return True if user is in the group, False otherwise.
def KbQy(CBIr, uOe2): if type(uOe2) is not cQ68: raise ValueError('Not a valid group') if type(CBIr) is not str: raise ValueError('Not a valid user') BaHi = BlJI(CBIr, uOe2) if BaHi == '': return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KbQy(CBIr, uOe2):\n DW23 = uOe2.get_users()\n if CBIr in DW23:\n return True\n return False", "def H4UC(CBIr, IXKo):\n return FLA7(CBIr.id, IXKo)", "def KbQy(CBIr, uOe2):\n if CBIr == uOe2.get_name():\n return True\n elif CBIr in uOe2.get_users():\n return True\n e...
[ "0.8791304", "0.84474826", "0.8253319", "0.81782854", "0.8154014", "0.80775934", "0.8077066", "0.7917411", "0.79046553", "0.78879106", "0.7874985", "0.78737533", "0.7837497", "0.7784908", "0.7714273", "0.7684502", "0.76652265", "0.7655611", "0.7571193", "0.7561973", "0.737242...
0.7991211
7
Return True if the number it was passed is an odd number. Return False if the number it was passed is an even number.
def kYZq(FGW3): return FGW3 % 2 != 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kYZq(FGW3: int) -> bool:\n return FGW3 % 2 != 0", "def kYZq(FGW3):\n return FGW3 % 2 == 1", "def kYZq(exwG):\n if exwG % 2:\n return True\n else:\n return False", "def kYZq(WKvO):\n return WKvO % 2 != 0", "def W9Go(exwG):\n if type(exwG) != int:\n return False\n ...
[ "0.8910139", "0.88778764", "0.86567736", "0.85502493", "0.84932417", "0.8464938", "0.84520775", "0.8422581", "0.83795774", "0.835107", "0.8337976", "0.83243823", "0.8289874", "0.8273915", "0.8243354", "0.82220197", "0.8118846", "0.8059153", "0.79635155", "0.7933069", "0.79226...
0.8937428
0
Reads data from dataframe data containing path to images in column 'path' and, in case of dataframe, also containing artist name, technique name, and period of creation for given artist. In case of content images we have only the 'path' column.
def IWA_(YKHO, dO7C, Ep8u=1): KUeP = [] for bGrB in range(Ep8u): LNo8 = Zxt2.misc.imread(name=tuKI.choice(YKHO.dataset), mode='RGB') if max(LNo8.shape) > 1800.0: LNo8 = Zxt2.misc.imresize(LNo8, size=1800.0 / max(LNo8.shape)) if max(LNo8.shape) < 800: Cwt5 = 800.0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DOjJ(jQ3Z, pmON, TkH6, H2e1=False):\n EcVT, LVAh = ([], [])\n for YRbF, ZfUD in jQ3Z.iterrows():\n if H2e1 == True:\n print('i={} {} {}\\n'.format(YRbF, pmON + ZfUD[0], pmON + ZfUD[1]))\n VXjJ = xDSY.imread(pmON + ZfUD[0])\n VXjJ = SZFh.resize(VXjJ, TkH6, mode='constant')\...
[ "0.648307", "0.6394734", "0.6227284", "0.6157809", "0.6129117", "0.57942325", "0.57618886", "0.57390696", "0.57257617", "0.56972086", "0.5583221", "0.55744785", "0.5561718", "0.5538594", "0.5533018", "0.5451843", "0.5438273", "0.5414525", "0.53982335", "0.53951627", "0.539413...
0.0
-1
Finds the smallest item in a list starting at a given index
def XcNI(yKcO, yVA2): vELP = yKcO for r845 in range(yKcO, len(yVA2)): if yVA2[vELP].value > yVA2[r845].value: vELP = r845 return vELP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XcNI(list):\n return Qpvm(list, -1)", "def k9Va(list):\n _iAN = 0\n YrMr = list[0]\n for d6pt, FGW3 in enumerate(list):\n if FGW3 < YrMr:\n _iAN = d6pt\n YrMr = FGW3\n del list[_iAN]\n return YrMr", "def eJqX(aPd6, YRbF):\n dYpS = YRbF\n for r845 in rang...
[ "0.80789644", "0.7943173", "0.7936158", "0.78641474", "0.7806867", "0.77677035", "0.75502586", "0.74800456", "0.7433551", "0.741327", "0.7316826", "0.72551984", "0.7238463", "0.72347677", "0.72340626", "0.71827656", "0.7154592", "0.70994294", "0.7073256", "0.7060353", "0.7023...
0.69554347
24
Generate a presigned URL to share an S3 object
def G3tP(l7rj, tB6k, N850=3600): kZdy = iVGz.client('s3') try: geh0 = kZdy.generate_presigned_url('get_object', Params={'Bucket': l7rj, 'Key': tB6k}, ExpiresIn=N850) except nheh as e: print(tTpl) return None return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G3tP(l7rj, tB6k):\n bo34 = G9jH.getLogger('SimpleReplayLogger')\n kZdy = iVGz.client('s3')\n try:\n geh0 = kZdy.generate_presigned_url('get_object', Params={'Bucket': l7rj, 'Key': tB6k}, ExpiresIn=604800)\n except nheh as e:\n bo34.error(f'Unable to generate presigned url for object {...
[ "0.7818953", "0.7756839", "0.7680877", "0.7658545", "0.7651632", "0.76490694", "0.7647379", "0.7646296", "0.7609004", "0.75697136", "0.7361706", "0.7353515", "0.73297143", "0.73094666", "0.7162048", "0.7113277", "0.70949465", "0.70596546", "0.70513654", "0.7022255", "0.700629...
0.7818621
1
Given a tree, produces only its leaf nodes
def ACLz(J_Es): if isinstance(J_Es[1], str): return [J_Es[1]] if isinstance(J_Es[1], r1MW): return [J_Es[1]] KCHu = [] for LOks in J_Es[1]: KCHu += ACLz(LOks) return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JqV7(J_Es: tree_mod.Tree):\n if isinstance(J_Es, hAyn.Tree):\n return hAyn.Tree(J_Es.label(), [JqV7(aUGN) for aUGN in J_Es])\n else:\n return hAyn.Tree(J_Es, [])", "def K3B_(J_Es):\n for LOks in J_Es.subtrees(filter=lambda a1PO: a1PO.node == 'NP'):\n yield LOks.leaves()", "def...
[ "0.71870345", "0.71196705", "0.70777303", "0.6974671", "0.6940172", "0.6906725", "0.6819521", "0.6795652", "0.67752254", "0.6758936", "0.6746931", "0.66662055", "0.6664883", "0.66517955", "0.66445225", "0.6579895", "0.6549478", "0.6466321", "0.646349", "0.6460313", "0.6414969...
0.6141357
39
Get a nested named attribute from an object by a `.` separated name. rgetattr(x, 'y.z') is equivalent to getattr(getattr(x, 'y'), 'z') and x.y.z.
def P3cx(JWBa: object, n_Rt: str, *qIxc) -> ImMB: def gDr3(JWBa, n_Rt): return getattr(JWBa, n_Rt, *qIxc) return Pusg(gDr3, [JWBa] + n_Rt.split('.'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V7T1(YEnM, mWFP):\n N06i = mWFP.count('.')\n if N06i == 0:\n return getattr(YEnM, mWFP)\n else:\n cntZ, wOmD = mWFP.split('.', 1)\n return V7T1(getattr(YEnM, cntZ), wOmD)", "def dBJA(YEnM, hkS8):\n return Pusg(getattr, hkS8.split('.'), YEnM)", "def dBJA(YEnM, hkS8):\n fo...
[ "0.81038344", "0.7947371", "0.7722779", "0.75723994", "0.75492746", "0.73875433", "0.7224347", "0.71812946", "0.7162733", "0.6960191", "0.6960191", "0.6921507", "0.6830315", "0.6812168", "0.679382", "0.6680367", "0.6502294", "0.64958435", "0.6349795", "0.63452977", "0.6267382...
0.7539796
5
Estimates total number of combinations. This does not account for the permutations of "forced" characters, so the real number of combinations will be higher than this estimate.
def IAEL(YKHO): lORp = 0.0 E6VQ = 1.0 for gLiZ in YKHO.categories: E6VQ *= len(gLiZ) lORp += len(gLiZ) E6VQ *= lORp ** (YKHO.length - len(YKHO.categories)) return E6VQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LvlL(YKHO) -> int:\n awnO = epAf.factorial(len(YKHO._word))\n for Ty9i in YKHO._char_counts.values():\n if Ty9i > 1:\n awnO /= epAf.factorial(Ty9i)\n return awnO", "def xEmM(BWXx):\n if len(BWXx) == len(set(BWXx)):\n return TFEx(len(BWXx))\n x1Sz = {}\n for hcXw in ...
[ "0.7253553", "0.66454095", "0.6605841", "0.6605841", "0.6418367", "0.63323903", "0.6286042", "0.626837", "0.61481637", "0.61261785", "0.61043525", "0.6093982", "0.6053244", "0.6052588", "0.60336816", "0.6016115", "0.59903944", "0.5989238", "0.5986413", "0.59780264", "0.594201...
0.7635501
0
Gets the user's color based on the highest role with a color
def aKyf(CBIr: discord.Member, lSCo: discord.Guild) -> ZOrr.Colour: if lSCo is None: return ZOrr.Colour.default() mS46 = lSCo.get_member(CBIr.id) if mS46 is not None: return mS46.colour return ZOrr.Colour.default()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qfpW(YKHO):\n pbEc = YKHO.role_ids\n if pbEc is not None:\n for LmAn in sorted((JQ9Q(d9OY) for d9OY in YKHO.role_ids), reverse=True):\n qfpW = LmAn.color\n if qfpW:\n return qfpW\n return HRmL()", "def BgOs(pNZh, Q6kx):\n return max(y9_3(pNZh, Q6kx))", ...
[ "0.72899514", "0.63540584", "0.63388276", "0.6273984", "0.6127805", "0.6099515", "0.6074041", "0.5978563", "0.5909255", "0.5873021", "0.57682693", "0.57585555", "0.57545954", "0.57352877", "0.57330096", "0.5710368", "0.56947976", "0.5676722", "0.5676663", "0.5672378", "0.5671...
0.5847438
10
Checks if the current command context is limited to lite mode. If the guild is in the lite_guilds list, the context is in lite mode. If the guild is in private message, and the message author is in at least ONE guild that is not in lite_guilds, then context is not lite
def nNf_(OaeV: commands.Context) -> bool: if F0OH(OaeV.message.channel): for Oa1e in OaeV.bot.get_user_guilds(OaeV.message.author.id): if Oa1e.id not in GPtr.lite_servers: return False else: return OaeV.message.guild in GPtr.lite_servers
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qb62():\n\n async def check(OaeV):\n if OaeV.guild:\n return True\n await OaeV.send('This command is only available in servers!')\n return False\n return wQcs.check(GfdN)", "def _Pcy():\n\n def GfdN(OaeV):\n if not isinstance(OaeV.channel, (ZOrr.abc.GuildChanne...
[ "0.5691053", "0.5537149", "0.53771347", "0.5297926", "0.5295333", "0.527921", "0.52316976", "0.51805806", "0.51805806", "0.51479936", "0.51479936", "0.51479936", "0.5136715", "0.5086459", "0.50851494", "0.50851494", "0.50851494", "0.50693166", "0.50535107", "0.50369704", "0.4...
0.74545246
0
generates the tracks.csv file
def TyHz(YKHO, v9Lt): Qk3N = YKHO.outdir + '/tracks.csv' gv2B = Hy7s.dup(1) HwRy.stdout.flush() Hy7s.close(1) Hy7s.open(Qk3N, Hy7s.O_WRONLY | Hy7s.O_CREAT) v9Lt.printallTruths() HwRy.stdout.flush() Hy7s.close(1) Hy7s.dup(gv2B) Hy7s.close(gv2B)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RJyq(YKHO) -> None:\n lE8j = ['Followers', 'Time']\n with open(YKHO.graphfile, 'w') as sne9:\n WJI9 = m6_J.writer(sne9)\n WJI9.writerow(lE8j)\n sne9.close()", "def rl5L(YKHO, nbB1):\n for d6pt, A6b2 in enumerate(YKHO._tracks):\n nbB1.writerow(A6b2.properties)\n for...
[ "0.69881463", "0.6790697", "0.655824", "0.64800984", "0.6437634", "0.63966143", "0.6372148", "0.63682956", "0.6363678", "0.63325256", "0.6321618", "0.6250655", "0.6243557", "0.62408864", "0.623884", "0.6227081", "0.62265164", "0.6221201", "0.6196985", "0.6186828", "0.61633295...
0.59437996
46
Show homepage with map
def C_QL(): return TvZl('home_map.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n r8hN = nkvf()\n return TvZl('index.html')", "def VWvz():\n r8hN = nkvf()\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html', title='Find places on a map!')", "def kZiy():\n return TvZl('pages/index.html', form=WMy7(), gmapskey=P4t4.config['GOOGLE_API_KEY'])"...
[ "0.8233349", "0.7650102", "0.74863607", "0.71886957", "0.7183427", "0.70794034", "0.69313073", "0.67315274", "0.6701228", "0.6691717", "0.6683785", "0.6635678", "0.6629475", "0.66146296", "0.66142416", "0.6591016", "0.657642", "0.65759116", "0.65759116", "0.654038", "0.653809...
0.8362454
0
Return a SQLAlchemy session.
def KfiN(): return oCsa(FJ3D(autocommit=False, autoflush=False, bind=eHpk))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KfiN():\n cuiw = oCsa(FJ3D(bind=eHpk))\n return cuiw", "def KfiN(YKHO):\n B2fa = YKHO._get_database_specific_session_args()\n f57V = zPjx.sessionmaker(bind=YKHO._engine, expire_on_commit=False, **B2fa)\n NGRy = zPjx.scoped_session(f57V)\n return NGRy", "def GNxX(YKHO):\n QFHT = FJ3D(bi...
[ "0.8613249", "0.8455852", "0.82382464", "0.81438994", "0.80603933", "0.8053609", "0.7956509", "0.7910294", "0.7899938", "0.7893864", "0.7799984", "0.7765756", "0.7758646", "0.7723484", "0.7690281", "0.76200527", "0.76080185", "0.7596541", "0.75943327", "0.7565893", "0.755834"...
0.8555524
1
Register an aggregate with this repository. Once an aggregate is registered with the repository, the aggregate is retrievable from the repository via _aggregate_with_id(), _aggregates_with_ids(), and _extant_aggregate_ids()
def Bk1u(YKHO, tEeD): if not isinstance(tEeD, YKHO._aggregate_root_entity_class()): raise TypeError('{!r} is not of type {} therefore cannot be store in a {}'.format(tEeD, YKHO._aggregate_root_entity_class().__name__, YKHO.__class__.__name__)) YKHO._track(tEeD) YKHO._intern(tEeD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IbA7(YKHO, eHNT: dd.Aggregation, mWFP: str, SGPK: List[Tuple[str, type]], _h7H: type, qx_G: bool=False):\n YKHO._register_callable(eHNT, mWFP, aggregation=True, parameters=SGPK, return_type=_h7H, replace=qx_G)", "def JvPb(YKHO, g2g3):\n try:\n LEXu = YKHO._instance(g2g3)\n except ValueError:\...
[ "0.6493154", "0.6390233", "0.5721717", "0.5695466", "0.5640757", "0.5489287", "0.5478946", "0.5319596", "0.5287735", "0.5268721", "0.52365905", "0.5200469", "0.5123038", "0.5114808", "0.51092464", "0.50671554", "0.5062453", "0.49744803", "0.4961004", "0.4954799", "0.49456868"...
0.65265906
0
Return with boolen if the object is an instance of the class
def plAK(YEnM, J9Xy): return type(YEnM) == J9Xy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tdku(YKHO, KAOR):\n if isinstance(KAOR, pJRj):\n return bool(KAOR.isKindOfClass(YKHO))\n else:\n return False", "def NC32(object):\n if not hasattr(object, '__class__'):\n return False\n if MP1F(object.__class__):\n return False\n return True", "def vvva(YKHO, vGa...
[ "0.81178784", "0.80528265", "0.79027194", "0.77327365", "0.7720832", "0.7706594", "0.76211834", "0.7617837", "0.7615193", "0.75302887", "0.75302887", "0.7526448", "0.7510782", "0.7493831", "0.74901634", "0.74751526", "0.74582803", "0.74582803", "0.74582803", "0.74582803", "0....
0.6968852
58
Lists all of the secrets that are stored by Secrets Manager in the AWS account. To list the versions currently stored for a specific secret, use ListSecretVersionIds . The encrypted fields ``SecretString`` and ``SecretBinary`` are not included in the output. To get that information, call the GetSecretValue operation.
def gNCY(YKHO, xTyj: int=None, aSFH: str=None) -> cuzp: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def list_secrets(YKHO):\n pass", "def zNmq(Emd4, *, u5Co):\n return u5Co.list_secrets()['SecretList']", "def XRZh(x0hE: KeyVaultClient, qIxc: dict[str, Any]) -> lLRR:\n uNem = qIxc['vault_name']\n qoqK = LEeV(qIxc.get('limit')) or Az6F\n vgXP = LEeV(qIxc.get('offset')) or veUr\n geh0 = ...
[ "0.8024093", "0.78251266", "0.7289144", "0.7109478", "0.70714676", "0.6983011", "0.69202316", "0.68090004", "0.6796193", "0.6637247", "0.6608851", "0.65818655", "0.6547432", "0.6445355", "0.64339757", "0.63733447", "0.6365531", "0.63488114", "0.6301166", "0.6298797", "0.62746...
0.69495285
6
Returns the default config (see parent class for full docstring).
def yDgW() -> cuzp[I2jr, ImMB]: return {llSB: {tc7y: [], uHj8: [], f'{pn44}_{uHj8}': []}, Q0Le: {tc7y: 128, uHj8: 128, f'{pn44}_{uHj8}': 128, RDMT: 20, WQTL: 20, f'{pn44}_{WQTL}': 20, TmJM: 20, YC8e: 20, PQyt: 20}, PKy8: {tc7y: 128, uHj8: 128, f'{pn44}_{uHj8}': 128}, dVpi: 50, dF7U: {tc7y: 128, uHj8: 128, f'{pn44}_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDgW(YKHO):\n return GPtr.read(oAb3.Path(xAKo).parent / 'ext.conf')", "def WmM4(Emd4) -> 'Config':\n wvEv: enR0.ConfigParser = enR0.ConfigParser()\n wvEv.read_dict(dict(wpwatcher=PSrQ.DEFAULT_CONFIG))\n return Emd4.fromparser(wvEv)", "def vkHq(Emd4):\n return IYZS", "def yDgW():\n from ...
[ "0.857237", "0.8296643", "0.8086456", "0.7969869", "0.7921342", "0.78670275", "0.7778315", "0.7736277", "0.771808", "0.761196", "0.7611108", "0.7588063", "0.7546006", "0.75447714", "0.7536708", "0.7524585", "0.7514965", "0.7514965", "0.7502165", "0.7352819", "0.7343861", "0...
0.0
-1
Loads a policy from the storage (see parent class for full docstring).
def tyeH(Emd4, GPtr: Dict[Text, Any], bD9D: ModelStorage, Eorv: Resource, exVD: ExecutionContext, **B2fa: Any) -> yFUA: try: with bD9D.read_from(Eorv) as uqvc: return Emd4._load(uqvc, GPtr, bD9D, Eorv, exVD) except ValueError: bo34.debug(f"Failed to load {Emd4.__class__.__name__} fro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZZch(YKHO, CBrb, Edrf):\n if not Hy7s.path.exists(CBrb):\n return {}\n try:\n with open(CBrb) as eHNT:\n return qQXR.load(eHNT)\n except (IOError, ValueError) as err:\n tO9_ = 'ERROR: loading course policy from {0}'.format(CBrb)\n Edrf(tO9_)\n RKD7.warning...
[ "0.7527114", "0.6853302", "0.6738557", "0.67252105", "0.62512743", "0.6236352", "0.6154913", "0.61448526", "0.61282647", "0.6120836", "0.6100583", "0.60317343", "0.5986494", "0.5941951", "0.59372", "0.5917416", "0.5890665", "0.5828857", "0.57957846", "0.57303697", "0.572185",...
0.66870177
4
Test that the Crossref Events DAG has the correct structure.
def Qupv(YKHO): aUfT = D_Bl().make_dag() YKHO.assert_dag_structure({'check_dependencies': ['check_releases'], 'check_releases': ['download'], 'download': ['upload_downloaded'], 'upload_downloaded': ['extract'], 'extract': ['transform'], 'transform': ['upload_transformed'], 'upload_transformed': ['bq_load_partit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qupv(YKHO):\n Awhg = JUVT(name=YKHO.organisation_name)\n aUfT = tjUp(Awhg, accounts=None).make_dag()\n YKHO.assert_dag_structure({'check_dependencies': ['list_release_info'], 'list_release_info': ['move_files_to_in_progress'], 'move_files_to_in_progress': ['download'], 'download': ['upload_downloaded'...
[ "0.680294", "0.6669853", "0.63210905", "0.6311622", "0.6105268", "0.60811025", "0.60449713", "0.6024524", "0.6015868", "0.5979063", "0.596869", "0.5906138", "0.5839312", "0.583271", "0.58317727", "0.583064", "0.5763963", "0.5728018", "0.572314", "0.5720221", "0.57139593", "...
0.6582648
2
Compute the IoUs between bounding boxes.
def VQ3Z(Bsc6, IUcw): Bsc6 = oyIN.array(Bsc6, oyIN.float32) IUcw = oyIN.array(IUcw, oyIN.float32) hzH7 = oyIN.maximum(Bsc6[:, 0], IUcw[:, 0]) eUGk = oyIN.minimum(Bsc6[:, 0] + Bsc6[:, 2] - 1, IUcw[:, 0] + IUcw[:, 2] - 1) qki8 = oyIN.maximum(eUGk - hzH7 + 1, oyIN.zeros_like(Bsc6[:, 0])) iwjC = oyI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m4_N(FlUN, oUSw):\n ab__ = (FlUN[2] - FlUN[0]) * (FlUN[3] - FlUN[1])\n f0tD = (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])\n frsW = oyIN.maximum(FlUN[0], oUSw[:, 0])\n TdlV = oyIN.maximum(FlUN[1], oUSw[:, 1])\n yjMy = oyIN.minimum(FlUN[2], oUSw[:, 2])\n YvNL = oyIN.minimum(FlUN[3], o...
[ "0.79760545", "0.7360302", "0.73063666", "0.7305902", "0.72878903", "0.72744477", "0.695732", "0.695732", "0.6948172", "0.69370276", "0.69283444", "0.69266987", "0.69141793", "0.6910099", "0.6884505", "0.6847904", "0.68431014", "0.6842791", "0.682574", "0.6824961", "0.6815399...
0.688465
14
Unparameterize bounding boxes with respect to anchors. Namely, (ty,tx,th,tw)>(y,x,h,w).
def RSnp(a1PO, qvIa, naMS=None): a1PO = oyIN.array(a1PO, oyIN.float32) qvIa = oyIN.array(qvIa, oyIN.float32) fxo8 = a1PO[:, :2] * qvIa[:, 2:] + qvIa[:, :2] qEJV = oyIN.exp(a1PO[:, 2:]) * qvIa[:, 2:] c8oy = oyIN.concatenate((fxo8, qEJV), axis=1) if naMS != None: c8oy = z2i3(c8oy, naMS) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NiXb(cviu):\n with ZylS.variable_scope('bbox_transform_inv') as rrBf:\n BQGg = cviu[..., 0]\n h3cg = cviu[..., 1]\n bYzl = cviu[..., 2]\n Z3uP = cviu[..., 3]\n yzQ0 = bYzl - BQGg + 1.0\n MKlR = Z3uP - h3cg + 1.0\n Y_rN = oyIN.stack([BQGg + 0.5 * yzQ0, h3cg + ...
[ "0.65151864", "0.6448961", "0.6441325", "0.64217514", "0.6378641", "0.6352084", "0.6197559", "0.61599165", "0.61406326", "0.6111988", "0.60997486", "0.60890275", "0.6063085", "0.6047759", "0.6045166", "0.60417753", "0.59831274", "0.5976186", "0.5973511", "0.59560215", "0.5952...
0.7801747
0
Enlarge bounding boxes by the given factor (without changing their centers).
def cORC(c8oy, naMS, aM8h=1.5): c8oy = oyIN.array(c8oy, oyIN.float32) exwG = c8oy.shape[0] if exwG == 0: return c8oy C7Ls = c8oy[:, 2] * aM8h XcU5 = c8oy[:, 3] * aM8h fuBA = c8oy[:, 0] - c8oy[:, 2] * (aM8h * 0.5 - 0.5) EcVT = c8oy[:, 1] - c8oy[:, 3] * (aM8h * 0.5 - 0.5) fuBA = oy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def krIl(Xn71, zNig):\n Llmz = [zNig[YRbF] / Xn71.shape[YRbF] for YRbF in range(2)]\n eHNT = oyIN.min(Llmz)\n if eHNT < 1.0:\n return ADNf(Xn71, eHNT)\n else:\n return Xn71", "def Uvkd(oUSw, NXpY):\n fql_ = (oUSw[:, 2] - oUSw[:, 0]) * 0.5\n x2TV = (oUSw[:, 3] - oUSw[:, 1]) * 0.5\n...
[ "0.6589286", "0.6390398", "0.63020176", "0.627091", "0.61904466", "0.61847234", "0.61352766", "0.6132406", "0.6007678", "0.60033876", "0.60017043", "0.59644324", "0.59606093", "0.5915594", "0.5887303", "0.5867812", "0.5867812", "0.5864122", "0.5853104", "0.58528006", "0.58093...
0.66979355
0
Get a discord server given server id
def fiXC(YKHO, rxBR, uJjO=None): YKHO.headers['Authorization'] = f'Bearer {rxBR}' CBIr = YKHO.http_client.get(f'{YKHO.api_endpoint}/users/@me', YKHO.headers) return f'{CBIr['username']}#{CBIr['discriminator']}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IxWS(YKHO, id):\n return YKHO.__servers.get_server(id)", "def N5z6(YKHO, QOGf):\n geh0 = YKHO._request('GET', [l912, QOGf])\n if geh0.status_code != 200:\n G9jH.error('Error server id::{}'.format(geh0.text))\n return None\n return CNEH().parse_response(xxJx, geh0)", "def IxWS(YKHO...
[ "0.7825828", "0.72106886", "0.7038349", "0.7023757", "0.7018549", "0.6773648", "0.66922504", "0.6597605", "0.6390267", "0.6101905", "0.60674965", "0.6005366", "0.5994605", "0.5986066", "0.5951594", "0.59417343", "0.59400356", "0.5926643", "0.5905813", "0.5848212", "0.58428794...
0.0
-1
Get a discord server given server id
async def get_guild(YKHO, NPt0) -> Ows6: lSCo = await YKHO.client.fetch_guild(NPt0) return lSCo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IxWS(YKHO, id):\n return YKHO.__servers.get_server(id)", "def N5z6(YKHO, QOGf):\n geh0 = YKHO._request('GET', [l912, QOGf])\n if geh0.status_code != 200:\n G9jH.error('Error server id::{}'.format(geh0.text))\n return None\n return CNEH().parse_response(xxJx, geh0)", "def IxWS(YKHO...
[ "0.78256756", "0.7210775", "0.70365936", "0.7023663", "0.701742", "0.6772921", "0.66907614", "0.6596807", "0.6389004", "0.6100305", "0.60650533", "0.6006278", "0.5992732", "0.5985209", "0.594971", "0.5941801", "0.59379864", "0.59259915", "0.5905143", "0.5842343", "0.58112395"...
0.584765
19
Get project channel name given project_channel_id using the channel associated with the discord invite url. invite should always be valid.
async def get_project_channel_name(YKHO, HUs2: WorkspaceEntity): await YKHO.client.login(Hy7s.environ['DISCORD_BOT_TOKEN'], bot=YKHO.is_bot) R5yJ = '' try: YwkQ = await YKHO.get_channel(HUs2.project_channel_id) except pgG1 as error: YKHO.logger.critical(f'discord {YKHO.get_project_channe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def select_project_channel_id(YKHO, HUs2: WorkspaceEntity, **B2fa):\n LOJ7 = ''\n BBzi = B2fa['invite_url'].rsplit('/', 1)[1]\n J5jR = YKHO.http_client.get(f'{YKHO.api_endpoint}/invites/{BBzi}', YKHO.headers)\n if J5jR['code'] == 10006:\n await YKHO.client.login(Hy7s.environ['DISCORD_BOT_T...
[ "0.71972173", "0.6902223", "0.64741087", "0.6457699", "0.63657844", "0.6195817", "0.61137605", "0.60998803", "0.60551804", "0.5953863", "0.58828175", "0.58753836", "0.57890105", "0.577792", "0.57777005", "0.57777005", "0.57777005", "0.57777005", "0.57777005", "0.57777005", "0...
0.6246572
5
Is the queue empty?
def FBfn(YKHO): return YKHO.first is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def lsmZ(YKHO):\n return YKHO.queue == []...
[ "0.92399496", "0.91864026", "0.91690904", "0.91690904", "0.91463965", "0.9136749", "0.90828764", "0.9066083", "0.9037413", "0.89759874", "0.8937634", "0.89152354", "0.89133626", "0.89084613", "0.88834363", "0.8876832", "0.88767827", "0.88767827", "0.88154984", "0.8768162", "0...
0.0
-1
Return the item least recently added to the queue. Does not modify the queue.
def T7C_(YKHO): if YKHO.is_empty(): raise ValueError('Queue underflow') return YKHO.first.item
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tlxW(YKHO):\n if not YKHO.queue:\n return None\n return YKHO.queue[0]", "def tlxW(YKHO):\n return YKHO.queue[0]", "def tlxW(YKHO):\n while not YKHO.queue[YKHO.tag].empty():\n ycBG = YKHO.queue[YKHO.tag].get()\n YKHO.queue[1 - YKHO.tag].put(ycBG)\n YKHO.tag = 1 - YKHO.tag...
[ "0.77313817", "0.7498477", "0.74331325", "0.7371703", "0.73413575", "0.73413575", "0.73301995", "0.7303269", "0.7290673", "0.7280591", "0.72582644", "0.72500014", "0.7247659", "0.72432554", "0.72195494", "0.7189716", "0.7187241", "0.71836096", "0.71619004", "0.7147872", "0.71...
0.71401
21