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
Place window in the center
def hgjH(YKHO): jOpO = YKHO.frameGeometry() m90y = YIq1().availableGeometry().center() jOpO.moveCenter(m90y) YKHO.move(jOpO.topLeft())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgjH(KnxT):\n KnxT.update_idletasks()\n k_Ti = KnxT.winfo_screenwidth()\n fsQy = KnxT.winfo_screenheight()\n zNig = tuple((int(bGrB) for bGrB in KnxT.geometry().split('+')[0].split('x')))\n WKvO = k_Ti / 2 - 7 * zNig[0] / 13\n LVAh = fsQy / 2 - 6 * zNig[1] / 11\n KnxT.geometry('+%d+%d' % (...
[ "0.8567128", "0.85024303", "0.8464421", "0.84617096", "0.84302706", "0.8382075", "0.8266172", "0.8266172", "0.8252376", "0.824533", "0.82151645", "0.8206994", "0.8178875", "0.8173722", "0.81081045", "0.7824105", "0.77829343", "0.77399594", "0.7640785", "0.75704765", "0.755284...
0.75510895
22
Return true if the partner is a company of Venezuela and if the address is for billing.
def ueDe(YKHO, KBgZ, PObu, A07C, QpfX={}): Chbx = YKHO.browse(KBgZ, PObu, A07C[0]) if Chbx.vat and Chbx.vat[:2].upper() == 'VE' and (not Chbx.parent_id): Ylbp = Chbx.type == 'invoice' if Ylbp: return True else: return False else: return True return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def icPK(YKHO):\n with ud61(_e3U):\n irix(YKHO.session, 'magento.res.partner', YKHO.backend_id, '9999256')\n KBgZ, PObu = (YKHO.cr, YKHO.uid)\n zcdA = YKHO.model.search(KBgZ, PObu, [('magento_id', '=', '9999256'), ('backend_id', '=', YKHO.backend_id)])\n YKHO.assertEqual(len(zcdA), 1)\n g0hy ...
[ "0.64225984", "0.5880995", "0.5770649", "0.54706657", "0.54565704", "0.5432842", "0.5421194", "0.5385996", "0.5361571", "0.53515327", "0.5336194", "0.53298014", "0.5324306", "0.5320534", "0.5290754", "0.5233072", "0.52117115", "0.5191587", "0.5189317", "0.51889455", "0.518126...
0.6763416
0
Add a scatter layer to the plot.
def Su1O(YKHO, mWFP: str, nPrm: Union[Dict, DataFrame], J8oL: Dict={'x': 'x', 'y': 'y', 'z': 'z', 'c': 'c', 'cs': 'cs', 's': 's', 'labels': 'labels', 'knn': 'knn'}, MYQr: Union[str, Colormap, List[str], List[Colormap]]='plasma', cgsT: str='sphere', F2CZ: float=1.0, _ewb: float=100.0, ZBwM: float=0.0, Z8n6: Union[float,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Su1O(YKHO, H6go, rcrN, w9U5, Jw9H, VoLU, IICq):\n YKHO._fig.add_trace(iEax.Scatter(x=H6go, y=rcrN, customdata=list(zip(list(map(round, rcrN)), list(map(round, H6go)))), hovertemplate='<b>%{text}</b><br><br>' + '{}'.format(IICq) + ': <b>%{customdata[0]}</b><br>' + '{}'.format(VoLU) + ': <b>%{customdata[1]}</...
[ "0.7423165", "0.70377296", "0.70074224", "0.6882518", "0.68074137", "0.67303896", "0.66975695", "0.6628986", "0.66263103", "0.65437603", "0.6464539", "0.64587677", "0.64487344", "0.6414746", "0.6404708", "0.6380886", "0.6355635", "0.6289637", "0.6271495", "0.6247744", "0.6219...
0.6965788
3
Expands list to a given length by repeating the last element.
def pv_y(vC9B: List, u54L: int, a4X8: Any=None, IUYa: bool=False) -> x1iM: if IUYa: vC9B.extend([None] * (u54L - len(vC9B))) elif a4X8 is not None: vC9B.extend([a4X8] * (u54L - len(vC9B))) else: vC9B.extend([vC9B[-1]] * (u54L - len(vC9B))) return vC9B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vn2c(jvCr: str, u54L: int) -> str:\n return (jvCr * (int(u54L / len(jvCr)) + 1))[:u54L]", "def W5mt(WKvO, exwG):\n if isinstance(WKvO, list):\n assert len(WKvO) == exwG\n return WKvO\n else:\n return [WKvO] * exwG", "def W5mt(YKHO, WKvO):\n if isinstance(WKvO, list):\n ...
[ "0.6530027", "0.6479355", "0.6395996", "0.63587534", "0.63503283", "0.6309707", "0.60246617", "0.60153556", "0.60088956", "0.6005765", "0.59902346", "0.5989824", "0.5986422", "0.5936696", "0.5935092", "0.59313923", "0.58559996", "0.57862985", "0.5766684", "0.57540005", "0.571...
0.6572616
0
Create an Nbin discrete colormap from the specified input map.
def HX90(QR6r: int, j9kp: str) -> cdpT: P8oC = QrM1.cm.get_cmap(j9kp) F4JO = P8oC(oyIN.linspace(0, 1, QR6r)) em8M = P8oC.name + str(QR6r) return P8oC.from_list(em8M, F4JO, QR6r)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name + str(ywwl)\n return P8oC.from_list(em8M, F4JO, ywwl)", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name ...
[ "0.7159033", "0.70954204", "0.6879464", "0.68688786", "0.68688786", "0.68688786", "0.6841091", "0.6833796", "0.6833796", "0.6833796", "0.6833796", "0.68284047", "0.67690647", "0.64135927", "0.6409393", "0.63383853", "0.62679404", "0.61792123", "0.61204034", "0.60956866", "0.6...
0.6547902
13
Parses a file path for the filename without extension
def unpH(pmON): hOYR, YBcr, bGrB = pmON.strip().split('/')[-1].partition('.crf') if not hOYR or YBcr != '.crf': AIkQ = 'Co-Reference Input file' P1dF = 'has incorrect file type' raise fNTv('Error: %s %s' % (AIkQ, P1dF)) return hOYR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TtVT(qaEx: str) -> str:\n qaEx.replace(' ', '')\n if qaEx.count('.') != 1:\n print('1: File path is incorrect. Must be only one dot.')\n return ''\n sdCG, J3uN = Hy7s.path.split(qaEx)\n if len(J3uN) == 0:\n print('1: File name no exist')\n return ''\n gIsw, Va2z = Hy7...
[ "0.79582274", "0.74939543", "0.745596", "0.7301274", "0.7280725", "0.72184706", "0.71821123", "0.71479803", "0.713628", "0.71271676", "0.70775926", "0.6985749", "0.6955249", "0.689269", "0.6864224", "0.6849331", "0.68431664", "0.6839789", "0.6823109", "0.6817119", "0.6753566"...
0.0
-1
Decorator made to modify httpresponse to make it no_cache
def Nlgd(JfyU): def hNfN(Ym16, *qIxc, **B2fa): Ym16.set_header('Cache-Control', 'no-cache, no-store, must-revalidate') Ym16.set_header('Pragma', 'no-cache') Ym16.set_header('Expires', 0) return JfyU(Ym16, *qIxc, **B2fa) return hNfN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vmtv(geh0):\n geh0.headers['Cache-Control'] = 'no-store, no-cache, must-revalidate, max-age=0'\n return geh0", "def tk9Z(SzLu):\n\n @zaGL(SzLu)\n def h3Xc(*qIxc, **B2fa):\n geh0 = SzLu(*qIxc, **B2fa)\n hzjs(geh0, no_cache=True, no_store=True, must_revalidate=True, max_age=0)\n ...
[ "0.772778", "0.76854485", "0.76565826", "0.76418483", "0.76222116", "0.75058895", "0.74772286", "0.73034936", "0.7259936", "0.7172666", "0.7167789", "0.7120886", "0.7120886", "0.7116576", "0.7113894", "0.7081053", "0.7081053", "0.70741594", "0.7072083", "0.706583", "0.706583"...
0.759568
5
Tests partial household update (PATCH).
def fz4D(YKHO): pB3N = {'name': 'Test Household Changed'} Ylbp = YKHO.client.patch(vRZk(YKHO.user.household.id), pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ni9D(YKHO):\n MzZt = as18.create(id=22)\n nPrm = {'name': 'Joe'}\n YKHO.assertNotEqual(MzZt.name, nPrm['name'])\n geh0 = YKHO.unath_client.patch(gxEw('doctor-detail', args=[22]), data=nPrm)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)\n geh0 = YKHO.client.patch(gxEw('docto...
[ "0.7666297", "0.75013214", "0.74215907", "0.74196345", "0.7171165", "0.7092046", "0.70738345", "0.7062594", "0.70270765", "0.697513", "0.69419473", "0.69234407", "0.6922964", "0.6921961", "0.6884168", "0.68591523", "0.68510014", "0.68203735", "0.68069667", "0.67753834", "0.67...
0.8145228
0
Return the graph's output node.
def COi9(YKHO) -> UZic: return YKHO.output_node
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VoVl(YKHO, bIwZ: int):\n return YKHO._output_nodes_map[bIwZ]", "def hlel(YKHO, mWFP: str) -> kZw_.types.NodeSocket:\n return YKHO.outputs[mWFP]", "def LI2u(YKHO, **B2fa):\n with ZylS.variable_scope(YKHO.layer_scope):\n return YKHO.out", "def MrSv(YKHO):\n WKvO, LVAh = YKHO.input_nodes\...
[ "0.7194285", "0.70183927", "0.68669474", "0.68612355", "0.6664335", "0.662465", "0.6592259", "0.6579076", "0.6542078", "0.65351874", "0.64692736", "0.64676654", "0.64674354", "0.6466835", "0.6466835", "0.6458526", "0.64372426", "0.64298177", "0.64298177", "0.6406894", "0.6400...
0.8847338
0
Shorten a text by removing some words
def cll5(l5Ny): sWfS = {' *health *center': '', ' *health *ceanter': '', ' +H[./]*C': '', ' *health *post': '', ' *heslth *post': '', ' *Haelth *Post': '', ' *Health *Poat': '', ' *hospital': '', ' +h[./]*p': '', ' {2,}': ''} return Pusg(lambda jzdc, aoD7: ZbWC.sub(*aoD7, jzdc, flags=ZbWC.I), sWfS.items(), l5Ny...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RfHw(l5Ny):\n return ' '.join([GIN8 for GIN8 in str(l5Ny).split() if len(GIN8) <= 12])", "def QrZ9(KCHu, XPB5=False):\n U5bT = KCHu.lower()\n U5bT = ZbWC.sub('[^a-z ]', ' ', U5bT)\n U5bT = ZbWC.sub(' +', ' ', U5bT).strip()\n U5bT = ZbWC.sub('see more occupations related to this (activity|skill...
[ "0.754411", "0.70054746", "0.69109786", "0.68561035", "0.6840428", "0.6837422", "0.6827039", "0.681135", "0.6794401", "0.6753814", "0.67442745", "0.67388463", "0.673773", "0.6735952", "0.67079693", "0.6705054", "0.6690209", "0.66851795", "0.6684263", "0.6684263", "0.6684263",...
0.6878296
3
Freeze layers in model that starts with keyworks in keys.
def M8o4(C3ST, sjXb: Tuple=()): for H5ew in sjXb: for mWFP, xqoZ in C3ST.named_parameters(): if mWFP.startswith(H5ew): xqoZ.requires_grad = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mb_4(C3ST, sjXb: Tuple=()):\n for H5ew in sjXb:\n for mWFP, xqoZ in C3ST.named_parameters():\n if mWFP.startswith(H5ew):\n xqoZ.requires_grad = True", "def _Q32(YKHO):\n for gEmA in YKHO.encoder.layers[:YKHO.freeze_layers]:\n gEmA.trainable = False", "def FiJ9(...
[ "0.7178372", "0.6921216", "0.6415622", "0.62904936", "0.62353384", "0.6068036", "0.6021634", "0.6007621", "0.5946701", "0.5911531", "0.5711682", "0.56931865", "0.5566724", "0.554358", "0.5513546", "0.5485273", "0.5382348", "0.53695166", "0.5330946", "0.52211714", "0.5193284",...
0.7042381
1
Pad framewise_output to the same length as input frames. The pad value is the same as the value of the last frame.
def h5dP(MNYq, K3Do): hVLt = MNYq[:, -1:, :].repeat(1, K3Do - MNYq.shape[1], 1) 'tensor for padding' hlel = ht2j.cat((MNYq, hVLt), dim=1) '(batch_size, frames_num, classes_num)' return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h5dP(MNYq, K3Do):\n hVLt = MNYq[:, -1:, :].repeat(1, K3Do - MNYq.shape[1], 1)\n 'tensor for padding'\n hlel = ht2j.cat((MNYq, hVLt), dim=1)\n '(batch_size, frames_num, classes_num)'\n return hlel", "def h5dP(MNYq: torch.Tensor, K3Do: int):\n hlel = vuvg.interpolate(MNYq.unsqueeze(1), size=(...
[ "0.8212459", "0.79470396", "0.79470396", "0.6778081", "0.67006975", "0.65746564", "0.64275515", "0.63629305", "0.61833864", "0.60432905", "0.59761566", "0.59708476", "0.59547937", "0.59079987", "0.5904667", "0.57852376", "0.57253283", "0.57252175", "0.5716326", "0.5687589", "...
0.8229493
0
Initialize a Linear or Convolutional layer.
def yYlq(gEmA, NKcE='xavier_uniform'): if NKcE == 'xavier_uniform': U78l.init.xavier_uniform_(gEmA.weight) elif NKcE == 'xavier_normal': U78l.init.xavier_normal_(gEmA.weight) elif NKcE == 'kaiming_uniform': U78l.init.kaiming_uniform_(gEmA.weight) elif NKcE == 'kaiming_normal': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yYlq(gEmA):\n if gEmA.weight.ndimension() == 4:\n _LFN, Ya2q, H2v2, TVTK = gEmA.weight.size()\n exwG = Ya2q * H2v2 * TVTK\n elif gEmA.weight.ndimension() == 2:\n _LFN, exwG = gEmA.weight.size()\n M1Jx = epAf.sqrt(2.0 / exwG)\n NXpY = M1Jx * epAf.sqrt(3.0)\n gEmA.weight.data....
[ "0.71585476", "0.6946555", "0.675435", "0.67083526", "0.6665737", "0.665054", "0.66405225", "0.66383994", "0.6587422", "0.6569476", "0.65386915", "0.6534945", "0.6534624", "0.65278125", "0.6458321", "0.6450799", "0.6441936", "0.64249116", "0.6423872", "0.6368915", "0.63685584...
0.6360222
22
Initialize a Batchnorm layer.
def uHk4(tF9S): tF9S.bias.data.fill_(0.0) tF9S.weight.data.fill_(1.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oivd(r8hN, WYQd=3):\n exwG = WYQd ** 2 * r8hN.num_features\n r8hN.weight.data.normal_(0, epAf.sqrt(2.0 / exwG))\n r8hN.bias.data.zero_()", "def feYC(r8hN, WYQd=3, M1Zr=0.025):\n exwG = WYQd ** 2 * r8hN.num_features\n r8hN.weight.data.normal_(0, epAf.sqrt(2.0 / exwG))\n r8hN.weight.data[(r8h...
[ "0.7382624", "0.71817577", "0.7181327", "0.6949718", "0.67419326", "0.6725722", "0.66990584", "0.66967344", "0.66012853", "0.65898055", "0.65177745", "0.64865506", "0.6468668", "0.64600116", "0.6428001", "0.64219517", "0.6387554", "0.63616383", "0.6357548", "0.635414", "0.632...
0.0
-1
Initialize a GRU layer.
def qxa7(unC1): def OnRM(vhpA, SRKJ): u54L, XNhq = vhpA.shape IddF = u54L // len(SRKJ) for YRbF, yOVV in enumerate(SRKJ): yOVV(vhpA[YRbF * IddF:(YRbF + 1) * IddF, :]) def D7hS(vhpA): IddF = U78l.init._calculate_correct_fan(vhpA, 'fan_in') U78l.init.uniform_(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LXM1(YKHO, cuu0):\n return S14z.LayerNormGRUCell(cuu0, w_initializer=YKHO.uniform_initializer, u_initializer=ZnqD, b_initializer=ZylS.constant_initializer(0.0))", "def FIMM(YKHO, zi3C, wjbX, CLda=1, Q1b5=False, hr1G=0, **B2fa):\n super(zSjz, YKHO).__init__('gru', zi3C, wjbX, CLda, Q1b5, hr1G, **B2fa)",...
[ "0.7252236", "0.7059616", "0.6728527", "0.6430717", "0.618836", "0.6159024", "0.6158076", "0.60903364", "0.60604477", "0.60214305", "0.5960684", "0.58830017", "0.5880977", "0.58735985", "0.58609617", "0.584497", "0.5838443", "0.58121777", "0.57988244", "0.57898915", "0.578371...
0.67205757
3
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7796294", "0.7760558", "0.7759004", "0.77567077", "0.76577055", "0.76577055", "0.76577055", "0.76577055", "0.7585655", "0.743143", "0.7407772", "0.73941606", "0.7358175", "0.73174125", "0.72689486", "0.72623265", "0.72614294", "0.7256868", "0.723019", "0.7214918", "0.72017...
0.70900273
59
Return a BugState that contains copies of all this BugState's columns, except for id.
def jth9(YKHO): B2fa = {} for fvDH in YKHO.__table__.columns: if fvDH.name == 'id': continue B2fa[fvDH.name] = getattr(YKHO, fvDH.name) return rvBp(**B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return wHLO([Mkmy[:] for Mkmy in YKHO.values], empty_loc=YKHO.empty_loc)", "def k8jS(YKHO):\n Csk6 = jth9.copy(YKHO.__dict__)\n del Csk6['_room_table_model']\n del Csk6['_socket_table_model']\n del Csk6['_fuse_table_model']\n del Csk6['_fuse_tree_item_model']\n del Csk6['_i...
[ "0.61550415", "0.5906562", "0.5851271", "0.58279526", "0.5817731", "0.57595706", "0.572862", "0.56799626", "0.5663411", "0.5656835", "0.5614034", "0.5604049", "0.56018364", "0.5596687", "0.5553168", "0.5540622", "0.5499134", "0.5487032", "0.5481828", "0.54746485", "0.5465456"...
0.8369509
0
Test default product price being 10.
def MBCD(YKHO): QRFO = msfn('Test Product') YKHO.assertEqual(QRFO.price, 10)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MBCD(YKHO):\n QRFO = msfn('Test Product')\n YKHO.assertEqual(QRFO.price, 10)", "def MBCD(YKHO):\n QRFO = Lx3t('Test Product')\n YKHO.assertEqual(QRFO.price, 10)\n YKHO.assertEqual(QRFO.weight, 20)", "def MBCD(YKHO):\n QRFO = msfn('Test Product')\n YKHO.assertEqual(QRFO.price, 10)\n ...
[ "0.87333673", "0.8610413", "0.8580199", "0.7287374", "0.72686666", "0.72686666", "0.72686666", "0.72686666", "0.72686666", "0.72686666", "0.7263497", "0.717852", "0.6858057", "0.6813622", "0.67408824", "0.67408824", "0.6709257", "0.6688696", "0.66599596", "0.6654696", "0.6654...
0.8738257
10
INTERNAL USE ONLY Get the rule in the KB that is the same as the rule argument
def Gegv(YKHO, eD8c): for k0nO in YKHO.rules: if eD8c == k0nO: return k0nO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tOYM(YKHO, *qIxc):\n return _VfD.Model_getRule(YKHO, *qIxc)", "def odII(YKHO):\n return YKHO.__rule_", "def eD8c(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'rule')", "def eD8c(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'rule')", "def eD8c(YKHO) -> qe4Y.Input[str]:\n return ...
[ "0.7259204", "0.6979758", "0.69061136", "0.69061136", "0.69061136", "0.6762193", "0.6750241", "0.6723889", "0.6723889", "0.6723889", "0.6723889", "0.6723889", "0.6723889", "0.6723889", "0.6401456", "0.63561714", "0.632328", "0.6286141", "0.62767315", "0.6198468", "0.6169003",...
0.792611
1
Determine if messages relate to an interesting player event.
def bwoB(YKHO, tO9_): SDt1 = False pB3N = tO9_['PlaySessionStateNotification'][0] JkXK = pB3N['sessionKey'] QTBn = pB3N['state'] _Tjk = pB3N['key'] dQgj = pB3N['viewOffset'] if JkXK not in YKHO.players: YKHO.players[JkXK] = mt95(JkXK, QTBn, _Tjk, dQgj) vzeF.debug('New session...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vCqq(tvqc):\n type = tvqc.get('type')\n if type and type == 'message' and (not tvqc.get('user') == fboz):\n if F0OH(tvqc):\n return True\n l5Ny = tvqc.get('text')\n if type and type == 'message' and l5Ny.startswith('@td '):\n return True\n if type and typ...
[ "0.6210864", "0.6153555", "0.60879445", "0.58971024", "0.5894941", "0.5893265", "0.58475083", "0.5827336", "0.58197004", "0.5745475", "0.56848234", "0.5638238", "0.56264895", "0.55878943", "0.5570386", "0.55053484", "0.5479546", "0.54735374", "0.54557586", "0.5410123", "0.540...
0.5536133
15
Close the listening websocket.
async def listen(YKHO): YKHO.failed_attempts = 0 while YKHO.state != e_s7: await YKHO.running()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO) -> None:\n if YKHO.websocket:\n YKHO.websocket.stop()", "def DDI8(YKHO) -> None:\n vzeF.info('Shutting down connections to deCONZ.')\n if YKHO.websocket:\n YKHO.websocket.stop()", "def ul7O(YKHO):\n YKHO._open = False\n YKHO._stat.websocket_stream_close += 1\n YKH...
[ "0.8121525", "0.7491793", "0.74682635", "0.72983366", "0.72825557", "0.7261847", "0.7117253", "0.7086678", "0.7083865", "0.70827514", "0.7042622", "0.70255095", "0.70202106", "0.69946456", "0.69773626", "0.6940371", "0.6940371", "0.6940371", "0.6940371", "0.6940371", "0.69403...
0.0
-1
Close the listening websocket.
def DDI8(YKHO): YKHO.state = e_s7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO) -> None:\n if YKHO.websocket:\n YKHO.websocket.stop()", "def DDI8(YKHO) -> None:\n vzeF.info('Shutting down connections to deCONZ.')\n if YKHO.websocket:\n YKHO.websocket.stop()", "def ul7O(YKHO):\n YKHO._open = False\n YKHO._stat.websocket_stream_close += 1\n YKH...
[ "0.8121525", "0.7491793", "0.74682635", "0.72983366", "0.72825557", "0.7261847", "0.7117253", "0.7086678", "0.7083865", "0.70827514", "0.7042622", "0.70255095", "0.70202106", "0.69946456", "0.69773626", "0.6940371", "0.6940371", "0.6940371", "0.6940371", "0.6940371", "0.69403...
0.0
-1
Determines wether an atom is prochiral and determines the atom's side if necessary.
def pPmP(YKHO): for WhQ6 in YKHO.invarioms: WhQ6.get_prochirality() WhQ6.invariom.get_prochirality()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yfj9(YKHO, HEZd):\n if HEZd == 'U':\n return YKHO.z() == 1\n if HEZd == 'D':\n return YKHO.z() == -1\n if HEZd == 'F':\n return YKHO.y() == -1\n if HEZd == 'B':\n return YKHO.y() == 1\n if HEZd == 'R':\n return YKHO.x() == 1\n if HEZd == 'L':\n return...
[ "0.5870851", "0.549886", "0.54745865", "0.54745865", "0.54745865", "0.5240374", "0.52023584", "0.51951754", "0.51806056", "0.5163453", "0.5118514", "0.5108549", "0.5107531", "0.5101734", "0.5089172", "0.50881255", "0.50782305", "0.5074325", "0.50729144", "0.50729144", "0.5033...
0.6024382
0
Links all atoms in 'exp' to their invarioms.
def lcys(YKHO): for T83C in YKHO['exp'].atoms: if T83C.isTolerated(): continue for Nd1R in YKHO[T83C.model_compound.name].atoms: dKc3 = T83C.get_active_invariom() if dKc3 in Nd1R.invarioms.keys(): T83C.set_invariom_atom(Nd1R) Nd1R.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mgFW(YKHO):\n for YRbF in YKHO.name:\n YKHO.str_in.append(YRbF.get())\n for YRbF in YKHO.comb:\n YKHO.act.append(YRbF.current())\n YKHO.destroy()", "def xSBA(YKHO):\n RR8p = []\n KgtG = []\n for asBq in YKHO.values():\n RR8p += [WhQ6 for WhQ6 in asBq.atoms]\n Kgt...
[ "0.541973", "0.53397936", "0.5284878", "0.49863306", "0.49830613", "0.4794765", "0.47942436", "0.47504792", "0.46436095", "0.4643061", "0.4632869", "0.4616352", "0.46023867", "0.45933336", "0.45813257", "0.45780787", "0.45734018", "0.45569727", "0.45248002", "0.44818586", "0....
0.73596907
0
Add two dictionaries together, return new dictionary. if key in B already exists in A, do not override. None destructive.
def _QBH(jzdc, Fg_i): jbXL = jth9.deepcopy(jzdc) for H5ew, wEf2 in Fg_i.iteritems(): if H5ew not in jbXL: jbXL[H5ew] = wEf2 return jbXL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roQF(jzdc, Fg_i):\n TDnD = oRi_(list)\n iwF4(jzdc, TDnD)\n iwF4(Fg_i, TDnD)\n return TDnD", "def vGZu(jzdc: dict, Fg_i: dict) -> dict:\n return kvsE(jzdc, Fg_i)", "def yQxF(YKHO, WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def IlPd(YKHO, mfEH, eRCc, ucv_...
[ "0.7166191", "0.7126028", "0.7118499", "0.70914936", "0.70337975", "0.70064807", "0.69760185", "0.69561565", "0.6943505", "0.6943505", "0.6943505", "0.6943505", "0.6943505", "0.6943505", "0.6943505", "0.6943505", "0.6943324", "0.6938591", "0.6845912", "0.68164074", "0.6814673...
0.7173503
0
Convert dictionary into data frame and tokenize inputs given queries.
def w3GI(nPrm, l633, b0j5): tyNF = rLdf.DataFrame.from_dict(nPrm) g4y1 = b0j5(table=tyNF, queries=l633, truncation=True, padding=True, return_tensors='pt').to(begE) return (tyNF, g4y1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FpoK(xDcj):\n jQ3Z = rLdf.DataFrame(data=list(Hs6x.product([0, 1], repeat=len(xDcj.variables))), columns=xDcj.variables)\n jQ3Z['p'] = xDcj.values.flatten()\n return jQ3Z", "def qlMd(Wb73):\n return hxoQ({u'tag': [ZfUD[0] for ZfUD in Wb73.items()], u'value': [ZfUD[1] for ZfUD in Wb73.items()]})",...
[ "0.61354715", "0.6041458", "0.5932817", "0.5880666", "0.58784735", "0.58620197", "0.57131207", "0.57031405", "0.56906503", "0.5584784", "0.5552426", "0.5551126", "0.54895955", "0.54824334", "0.5455758", "0.5451413", "0.5435663", "0.5399078", "0.5368841", "0.5356269", "0.53465...
0.70211875
0
Given a person's name, returns the person's initials (uppercase)
def NPVu(jeLr): RqgG = '' QWQX = jeLr.split() print(QWQX) for YRbF in QWQX: RqgG = RqgG + YRbF[0].upper() return RqgG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NPVu(mWFP, Lrae=True):\n if Lrae:\n return mWFP[0:1].upper()\n return mWFP[0:1]", "def xWjI(eHMM):\n if eHMM is not None and len(eHMM) > 0:\n return ''.join([KCHu[0] for KCHu in eHMM.split(' ')]).upper()\n else:\n return ''", "def NPVu(jeLr):\n ZWCE = jeLr.split()\n R...
[ "0.8512483", "0.83186287", "0.776669", "0.77114457", "0.75733525", "0.75212145", "0.7251313", "0.7233688", "0.7215348", "0.70606756", "0.701801", "0.6998534", "0.6986747", "0.69570524", "0.6946686", "0.6927703", "0.6927571", "0.6919062", "0.68892944", "0.6880017", "0.6832559"...
0.7597779
4
Derivative of the sigmoid function.
def hj5n(epBp): return m1Hg(epBp) * (1 - m1Hg(epBp))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZml(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n return WKvO * (1.0 - WKvO)", "def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n ox...
[ "0.84754366", "0.8450928", "0.8396931", "0.83485264", "0.83485264", "0.8298343", "0.80539966", "0.7753385", "0.77070266", "0.7498153", "0.7464916", "0.7454039", "0.7401582", "0.7385017", "0.73829913", "0.7346935", "0.7321687", "0.73094004", "0.7192053", "0.7113881", "0.709236...
0.0
-1
Adds the two variants together. Present this assumes mostly flat dictionaries.
def fqai(hQHm: dict, jlSq: dict) -> cuzp[str, ImMB]: LFlW = set(hQHm.keys()).difference(jlSq.keys()) _tIi = set(jlSq.keys()).difference(hQHm.keys()) HMCV = set(hQHm.keys()) & set(jlSq.keys()) if '__migrator' in jlSq: mJZc = jlSq['__migrator'].get('ordering', {}) oPhP = jlSq['__migrator']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CaoY(YKHO, Elif):\n if not isinstance(Elif, dict):\n tO9_ = 'Can not concatenate Dict and {}'.format(type(Elif))\n raise TypeError(tO9_)\n for H5ew, wEf2 in Elif.items():\n if H5ew in YKHO:\n YKHO._append_key(H5ew, wEf2)\n else:\n YKHO[H5ew] = wEf2\n r...
[ "0.71016604", "0.6687375", "0.6671997", "0.6645548", "0.65807945", "0.6534333", "0.6532504", "0.6514086", "0.642365", "0.63931966", "0.6333451", "0.632827", "0.631578", "0.63134897", "0.63060707", "0.6288282", "0.6281028", "0.624485", "0.6204847", "0.6193211", "0.6169858", ...
0.71381205
0
Return a json list of stations from the dataset.
def Oj45(): i_Um = cuiw.query(dGpz.station, dGpz.name).all() uMau = [] for rdlD in i_Um: oD9Q = {} oD9Q['station'] = rdlD.station oD9Q['name'] = rdlD.name uMau.append(oD9Q) return pz3A(uMau)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _TQ3():\n cuiw = DMju(eHpk)\n dixj = cuiw.query(njvh.name).all()\n cuiw.close()\n Oj45 = list(oyIN.ravel(dixj))\n return pz3A(Oj45)", "def Oj45():\n IeOM = cuiw.query(Ny6I.station).distinct().all()\n E1r2 = list(oyIN.ravel(IeOM))\n return pz3A(E1r2)", "def Oj45():\n cuiw = DMju(e...
[ "0.87404066", "0.8714156", "0.87127185", "0.8378763", "0.8345637", "0.8322411", "0.83219725", "0.830175", "0.82886815", "0.82878584", "0.8273292", "0.826582", "0.8256972", "0.82500017", "0.82434344", "0.82219756", "0.8208606", "0.8134151", "0.8126946", "0.8099855", "0.8089563...
0.83640033
4
Return a json list of Temperature Observations (tobs) for the previous year
def LurG(): glEG = cuiw.query(uxYy.tobs).all() return pz3A(glEG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ydEi():\n cuiw = DMju(eHpk)\n dixj = cuiw.query(Ny6I.tobs).filter(Ny6I.date >= '2016-08-23').all()\n cuiw.close()\n xYVR = list(oyIN.ravel(dixj))\n return pz3A(xYVR)", "def E5G1():\n GnQ4 = cuiw.query(Ny6I.date).order_by(Ny6I.date.desc()).first()\n aMMZ = JRYC.datetime.strptime(GnQ4[0], ...
[ "0.7804016", "0.77074", "0.76585793", "0.7623904", "0.74057007", "0.73627263", "0.73342705", "0.7327496", "0.72380286", "0.71261024", "0.70932883", "0.705637", "0.7048202", "0.69966257", "0.6834264", "0.6800696", "0.6793342", "0.671503", "0.66767067", "0.665408", "0.6603448",...
0.8164726
0
The reference to the NetworkSecurityGroup resource.
def gLpe(YKHO) -> h8nf['outputs.NetworkSecurityGroupResponse']: return qe4Y.get(YKHO, 'network_security_group')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ANtU(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'security_group')", "def fEOc(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'security_group_id')", "def fEOc(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'security_group_id')", "def fEOc(YKHO) -> qe4Y.Output[str]:\n return ...
[ "0.61486256", "0.5980633", "0.5980633", "0.5957386", "0.5957386", "0.58578396", "0.5758829", "0.5758829", "0.5742902", "0.5718561", "0.5653038", "0.56506914", "0.5594251", "0.55926985", "0.55347663", "0.55164385", "0.54995966", "0.54956484", "0.548954", "0.54870534", "0.54159...
0.7118084
0
The provisioning state of the subnet resource.
def mX_9(YKHO) -> str: return qe4Y.get(YKHO, 'provisioning_state')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')", "def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')", "def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')", "def mX_9(YKHO) -> qe4Y.Output[str]:\n retu...
[ "0.67684704", "0.67684704", "0.67684704", "0.67684704", "0.67684704", "0.67684704", "0.67684704", "0.67684704", "0.67684704", "0.67684704", "0.67684704", "0.67684704", "0.67684704", "0.6683957", "0.66709733", "0.66709733", "0.66709733", "0.66709733", "0.66709733", "0.6391554", ...
0.7032925
22
The reference to the RouteTable resource.
def oZaD(YKHO) -> h8nf['outputs.RouteTableResponse']: return qe4Y.get(YKHO, 'route_table')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fknb(YKHO):\n return YKHO._route_table_id", "def vwxP(YKHO) -> 'outputs.TableReferenceResponse':\n return qe4Y.get(YKHO, 'table_reference')", "def GCT4(YKHO):\n return YKHO._table_ref", "def tyNF(YKHO):\n return YKHO.reference.table", "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Option...
[ "0.7157897", "0.7102249", "0.657457", "0.6428238", "0.61176395", "0.6112945", "0.60934347", "0.60783446", "0.604512", "0.58873767", "0.5856369", "0.576922", "0.576922", "0.5754943", "0.5753837", "0.57489276", "0.57415915", "0.57415915", "0.57292205", "0.5700971", "0.5676525",...
0.7583651
0
An array of references to services injecting into this subnet.
def sodt(YKHO) -> bdIy['outputs.ServiceAssociationLinkResponse']: return qe4Y.get(YKHO, 'service_association_links')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B373(YKHO) -> x1iM[M87a]:\n return YKHO._services", "def ttkl(YKHO):\n return list(YKHO.services.values())", "def NoQ3(YKHO):\n pass", "def DK0z(YKHO):\n return YKHO._exposed_services", "def B373(YKHO):\n return B373.Services(YKHO)", "def ttkl(YKHO):\n return eWrP()", "def ttkl(YK...
[ "0.69540715", "0.6888438", "0.6811714", "0.667893", "0.66445446", "0.6623339", "0.654235", "0.65156436", "0.6514715", "0.64905757", "0.6485338", "0.6464627", "0.6460175", "0.6454752", "0.6425197", "0.6400359", "0.6368166", "0.6368166", "0.6311541", "0.6169567", "0.61588264", ...
0.0
-1
Gets the specified subnet by virtual network and resource group.
def vgaU(lHli: Optional[str]=None, TRLE: Optional[str]=None, UkFk: Optional[str]=None, PAOI: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> xEY_: rYZf = dict() rYZf['expand'] = lHli rYZf['resourceGroupName'] = TRLE rYZf['subnetName'] = UkFk rYZf['virtualNetworkName'] = PAOI VK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VWZy(YKHO) -> qe4Y.Output[h8nf['outputs.ResourceIdResponse']]:\n return qe4Y.get(YKHO, 'subnet')", "def U50y(Jpbe=None, **B2fa):\n tH0x = ljHy(Jpbe)\n B2fa = vDRh(**B2fa)\n return tH0x.get_subnet(**B2fa)", "def VWZy(YKHO) -> h8nf[qe4Y.Input['ResourceIdArgs']]:\n return qe4Y.get(YKHO, 'subnet...
[ "0.7312933", "0.7148066", "0.710691", "0.70535386", "0.70116264", "0.68666935", "0.68608004", "0.6636804", "0.65658665", "0.6514931", "0.6431516", "0.6405462", "0.6330611", "0.63169676", "0.63135105", "0.6246402", "0.6246402", "0.6231587", "0.6222032", "0.6215549", "0.6205137...
0.7260748
1
Gets the specified subnet by virtual network and resource group.
def v4Jg(lHli: Optional[pulumi.Input[Optional[str]]]=None, TRLE: Optional[pulumi.Input[str]]=None, UkFk: Optional[pulumi.Input[str]]=None, PAOI: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[r_yG]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VWZy(YKHO) -> qe4Y.Output[h8nf['outputs.ResourceIdResponse']]:\n return qe4Y.get(YKHO, 'subnet')", "def vgaU(lHli: Optional[str]=None, TRLE: Optional[str]=None, UkFk: Optional[str]=None, PAOI: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> xEY_:\n rYZf = dict()\n rYZf['expand'] = ...
[ "0.7312933", "0.7260748", "0.7148066", "0.710691", "0.70535386", "0.70116264", "0.68608004", "0.6636804", "0.65658665", "0.6514931", "0.6431516", "0.6405462", "0.6330611", "0.63169676", "0.63135105", "0.6246402", "0.6246402", "0.6231587", "0.6222032", "0.6215549", "0.6205137"...
0.68666935
6
x.__nonzero__() x != 0
def ebnO(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ebnO(YKHO):\n for tTpl in YKHO:\n if tTpl != 0:\n return True\n return False", "def ebnO(YKHO):\n return YKHO.value.__nonzero__()", "def ebnO(YKHO):\n return YKHO.__nonzero", "def ebnO(YKHO):\n return YKHO.__nonzero", "def ebnO(YKHO):\n return not YKHO.as_point == (0...
[ "0.77507436", "0.76362675", "0.74977964", "0.74977964", "0.749715", "0.7277969", "0.71057385", "0.70980686", "0.7076215", "0.7038673", "0.7013006", "0.69773006", "0.6971467", "0.69356734", "0.6927782", "0.6920768", "0.690163", "0.6892301", "0.6864851", "0.6852248", "0.6836008...
0.61815006
80
Mask NaN values with zeros
def uMFd(vhpA): return ZylS.select(ZylS.is_nan(vhpA), ZylS.zeros(ZylS.shape(vhpA), dtype=ZylS.float32), vhpA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ydjc(YKHO, ZHfW):\n YKHO.spec[ZHfW == 0] = oyIN.nan", "def X0LS(WKvO):\n WKvO[WKvO == -999] = oyIN.nan\n return WKvO", "def HnT8(YKHO):\n ZHfW = oyIN.array(YKHO.array, dtype=oyIN.float32)\n ZHfW[ZHfW == 0] = oyIN.nan\n return ZHfW", "def zJ0G(jzdc, BWXx):\n return peS3(jzdc, oyIN.isn...
[ "0.7398997", "0.70181227", "0.67289853", "0.67160285", "0.66584706", "0.663829", "0.6621543", "0.648719", "0.6482023", "0.6394199", "0.639174", "0.6380966", "0.6357234", "0.63541216", "0.6345087", "0.63363355", "0.6298042", "0.6294285", "0.62942195", "0.628689", "0.6263663", ...
0.5737042
82
determine whether any shells or missiles have left the world
def ivGM(YKHO): for YRbF, NTDk in enumerate(YKHO.missile_list): if NTDk.out_of_bounds(YKHO.world): del YKHO.missile_list[YRbF] YKHO.gameevents.add('bounds_remove', 'missile') for YRbF, cbwj in enumerate(YKHO.shell_list): if cbwj.out_of_bounds(YKHO.world): del ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rGd5(YKHO):\n _j4m = False\n for YEnM in YKHO.world_state.objects:\n _j4m = _j4m or YEnM.lost\n return _j4m", "def ejjD(YKHO):\n return kEoh not in YKHO.get_game() and YKHO.get_game().count(giUo) == len(YKHO.get_pokemon_location)", "def b8Nm(YKHO):\n for mrj1 in YKHO.pieces:\n ...
[ "0.65513104", "0.6476485", "0.6369261", "0.63377595", "0.6258784", "0.62471265", "0.6170603", "0.61283165", "0.6101203", "0.6066138", "0.60542715", "0.60477644", "0.60332453", "0.601886", "0.6017714", "0.59443873", "0.5941525", "0.5938948", "0.59236884", "0.59152216", "0.5913...
0.6539798
1
Join voice channel and force bypass restrictions.
async def joinForce(YKHO, OaeV): print('joining') YwkQ = OaeV.author.voice.channel await YwkQ.connect()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def _join(YKHO, OaeV: commands.Context):\n yFgu = OaeV.author.voice.channel\n if OaeV.voice_state.voice:\n await OaeV.voice_state.voice.move_to(yFgu)\n return\n OaeV.voice_state.voice = await yFgu.connect()\n await OaeV.message.add_reaction('✅')", "async def _join(YKHO, OaeV: comm...
[ "0.65273523", "0.64909756", "0.6384299", "0.63237643", "0.63054657", "0.629726", "0.6260496", "0.6193694", "0.6179695", "0.6000898", "0.59756815", "0.5892782", "0.5876597", "0.58530897", "0.58495593", "0.5795379", "0.5727061", "0.5699195", "0.5642094", "0.56312084", "0.562480...
0.7571166
0
Leave voice channel and force bypass restrictions.
async def leaveForce(YKHO, OaeV): await OaeV.voice_client.disconnect()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def leave(YKHO, OaeV):\n if OaeV.guild.voice_client:\n await OaeV.guild.voice_client.disconnect()\n await OaeV.send('Left voice channel.')\n else:\n await OaeV.message.add_reaction('😕')\n await OaeV.send('Not in a voice channel.')", "async def leave(YKHO, OaeV):\n if O...
[ "0.6632035", "0.6447251", "0.6378872", "0.6358157", "0.633189", "0.62692326", "0.62692326", "0.62486273", "0.6211148", "0.62077534", "0.6200669", "0.61999506", "0.61754453", "0.6170025", "0.615867", "0.6107641", "0.6105342", "0.6103549", "0.60168636", "0.60027325", "0.5995111...
0.74256724
0
a test suite for various sqlalchemy engines.
def gjPf(eHpk, zVa7, V3AY, MauX): ko3c = Fn5U() ko3c.writer = M2oM() Qvk3(eHpk, ko3c, service=zVa7) yKcO = ITS7.time() @QZXY.contextmanager def jqi5(): try: w2B8 = eHpk.connect() yield w2B8 finally: w2B8.close() with jqi5() as w2B8: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jrq6(YKHO):\n GPtr = {'url': 'sqlite://', 'connect_args': {'check_same_thread': 'false', 'poolclass': 'pool.StaticPool'}}\n eHpk = YKHO.configurator.setup_engine(GPtr)\n YKHO.assertIsNotNone(eHpk)", "def BcqH(KUr9=True):\n\n def rQtZ(Emd4):\n \"\"\"Decorator that creates additional RELDB-e...
[ "0.7081772", "0.6789211", "0.66292816", "0.6622976", "0.65551203", "0.65252316", "0.64673615", "0.6427165", "0.6364955", "0.63483185", "0.63366", "0.6330665", "0.63108355", "0.62966716", "0.6260598", "0.62586844", "0.62571675", "0.62506086", "0.6246006", "0.62316394", "0.6223...
0.7062062
1
Set float precision and trim precision zeros.
def aKct(eHNT, XP5J=0): vIwR = str(SOnQ.Decimal(eHNT).quantize(SOnQ.Decimal('0.' + '0' * XP5J if XP5J > 0 else '0'), SOnQ.ROUND_HALF_UP)) r8hN = ezS_.match(vIwR) if r8hN: vIwR = r8hN.group('keep') if r8hN.group('keep2'): vIwR += r8hN.group('keep2') return vIwR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oYtw(YKHO, rhd_):\n YKHO.__precision = YKHO.parent().monoid().filter(rhd_)", "def oYtw(YKHO, rhd_):\n YKHO.__precision = YKHO.parent().action().filter(rhd_)", "def aBlt(YKHO, rhd_):\n if rhd_ <= 0:\n print('Precision must be positive')\n else:\n YKHO.precision = rhd_\n YKHO...
[ "0.70414263", "0.68680453", "0.67523", "0.65524995", "0.64943695", "0.6418701", "0.63790375", "0.63697594", "0.63184303", "0.6310227", "0.6310227", "0.62819654", "0.6269115", "0.6236121", "0.6229502", "0.6188425", "0.6167546", "0.6121999", "0.61019456", "0.609147", "0.609147"...
0.5861475
27
Returns starting state of the board.
def W9gz(): return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rEkR(YKHO):\n return oyIN.zeros(YKHO.board_size, dtype=oyIN.int8)", "def rEkR():\n return H66R.Board()", "def jKlz(YKHO):\n return (YKHO.startingPosition, (False, False, False, False))", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(Y...
[ "0.8081514", "0.7890486", "0.7534929", "0.72789717", "0.72789717", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", ...
0.0
-1
Returns player who has the next turn on a board.
def oyg0(iBIi): pNz6 = sum([list.count(EcVT) for list in iBIi]) tmr9 = sum([list.count(LTX_) for list in iBIi]) if pNz6 == tmr9: return EcVT else: return LTX_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zia_(iBIi, UwI3):\n RUgX = VlLD.opponent(UwI3)\n if VlLD.any_legal_move(RUgX, iBIi):\n return RUgX\n elif VlLD.any_legal_move(UwI3, iBIi):\n return UwI3\n return None", "def Zia_(YKHO, iBIi, UwI3):\n RUgX = YKHO.opponent(UwI3)\n iiQJ = YKHO.any_legal_move(RUgX, iBIi)\n v5zX...
[ "0.7910981", "0.7522231", "0.74202156", "0.73700017", "0.7195211", "0.6975818", "0.6961524", "0.6925103", "0.6919324", "0.6899665", "0.6847661", "0.68389785", "0.6838656", "0.6825226", "0.6774813", "0.6774813", "0.6769727", "0.671182", "0.67078507", "0.6656021", "0.66138667",...
0.0
-1
Returns the optimal action for the current player on the board.
def SR1K(iBIi): if f9TP(iBIi): return None qieF = xASv(iBIi) if oyg0(iBIi) == EcVT: YppF = -epAf.inf for XeOP in qieF: IMtQ = kpLf(Aofo(iBIi, XeOP)) if IMtQ > YppF: YppF = IMtQ enxE = XeOP else: dzQX = epAf.inf ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction", "def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0,...
[ "0.7766856", "0.76323676", "0.75855315", "0.75175256", "0.74667144", "0.7460485", "0.74263537", "0.7416421", "0.73943585", "0.7375846", "0.7333894", "0.73147565", "0.7306611", "0.7284639", "0.72650313", "0.72650313", "0.7250975", "0.72331834", "0.7203267", "0.71732694", "0.71...
0.75285065
3
This approach is better than the previous one as it does not use extra space. We keep track of two variables as references, maxlevel and sum. maxLevel refers to the highest level reached so far. sum is the total sum of the right view uptil that level. We traverse right child first, so as we go down the level we obtain ...
def kcV0(tk5Y, ABDL=0, DGSI=None, sum=None): if tk5Y == None: return 0 if DGSI == None: DGSI = [-1] sum = [0] if DGSI[0] < ABDL: sum[0] += tk5Y.data DGSI[0] = ABDL kcV0(tk5Y.right, ABDL + 1, DGSI, sum) kcV0(tk5Y.left, ABDL + 1, DGSI, sum) if ABDL == 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TUpx(YKHO):\n DBTp = [YKHO]\n Yolv = []\n iA3C = 0\n YAIB = -HwRy.maxsize\n while DBTp:\n Iuo4 = DBTp.pop(0)\n if Iuo4.left:\n Yolv.append(Iuo4.left)\n if Iuo4.right:\n Yolv.append(Iuo4.right)\n if not DBTp:\n iZ_H = 0\n for...
[ "0.77163315", "0.7626254", "0.71954876", "0.71082497", "0.67971444", "0.6661522", "0.6630408", "0.6460394", "0.6457264", "0.6445148", "0.63855803", "0.6293592", "0.6274472", "0.6199291", "0.61836684", "0.6112749", "0.6057289", "0.6044596", "0.5873906", "0.5860754", "0.5838793...
0.78315043
0
Return value of top element without removing from stack
def tlxW(YKHO) -> object: return YKHO._data[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tlxW(E5BI):\n if N0mo(E5BI):\n raise IndexError('Stack is empty!')\n else:\n return E5BI.top.value", "def tlxW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Stack is empty')\n return YKHO._head._element", "def tlxW(YKHO):\n if YKHO.stack == []:\n return None\n ret...
[ "0.83318007", "0.81100655", "0.80892026", "0.8075631", "0.80618685", "0.79362243", "0.7916097", "0.7908167", "0.78884083", "0.78880435", "0.7872301", "0.7866546", "0.7832417", "0.7830693", "0.77820283", "0.778126", "0.7778161", "0.77772", "0.7749871", "0.7746659", "0.77423126...
0.71825653
67
Initialize empty queue based on Python list
def FIMM(YKHO): YKHO._data = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hWEK():\n return g5js(0, None, None)", "def FIMM(YKHO):\n YKHO.queue = []\n YKHO.queue.append(g5js())\n YKHO.queue.append(g5js())\n YKHO.tag = 0", "def FIMM(YKHO) -> None:\n YKHO._queue = []", "def FIMM(YKHO):\n YKHO._queue_items = []", "def FIMM(YKHO, RqgG=[]):\n YKHO.the_queue...
[ "0.76686674", "0.75461084", "0.74717855", "0.7373376", "0.7352881", "0.7327719", "0.7327719", "0.7323243", "0.7320393", "0.7320393", "0.7320393", "0.7320393", "0.7320393", "0.731801", "0.731801", "0.7256335", "0.7252858", "0.72324866", "0.7214158", "0.71929574", "0.71722823",...
0.0
-1
Return True if the queue is empty, return False otherwise
def FBfn(YKHO): return len(YKHO._data) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return YKHO.queue == []", "def lsmZ(YKHO) -> bool:\n if YKHO.queue is not None and len(YKHO.queue) > 0:\n print('len > 0')\n return False\n else:\n print('len = 0')\n return True", "def lsmZ(YKHO) -> bool:\n if YKHO.queue.empty():\n return True\n...
[ "0.9123533", "0.9076229", "0.90322787", "0.900755", "0.900755", "0.89948964", "0.8985214", "0.89755434", "0.890774", "0.8907057", "0.8879381", "0.8855857", "0.8773003", "0.8752333", "0.8752333", "0.8737812", "0.87300223", "0.8718975", "0.8668069", "0.8608854", "0.8599517", ...
0.0
-1
Returns value stored in root node. If tree is empty, method should return None.
def g8tW(YKHO) -> object: if YKHO.root is None: return None return YKHO.root.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bjex(YKHO):\n return YKHO.__root.get_value()", "def g8tW(YKHO) -> object:\n if YKHO.root is None:\n return None\n return YKHO.root.value", "def tk5Y(J_Es):\n return J_Es[0]", "def T8Mw(tk5Y, mWFP):\n Q6kx = tk5Y.find(mWFP)\n if not Q6kx:\n return None\n elif len(Q6kx.te...
[ "0.7818051", "0.76613665", "0.697164", "0.69265217", "0.6892464", "0.67330015", "0.67122906", "0.6711037", "0.66726214", "0.6565201", "0.65605605", "0.65474355", "0.65456116", "0.65299207", "0.65149134", "0.6508499", "0.6508499", "0.64951956", "0.6463805", "0.644734", "0.6443...
0.80032796
0
Counts and returns number of leaves that have no children
def ARYw(YKHO) -> int: if YKHO.root is None: return 0 return YKHO.count_helper(YKHO.root)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W8Ya(YKHO) -> int:\n if YKHO.children == []:\n return 1\n else:\n return sum([WKvO.leaf_count() for WKvO in YKHO.children])", "def ARYw(YKHO) -> int:\n if YKHO.root is None:\n return 0\n return YKHO.count_leaves_helper(YKHO.root)", "def QEud(YKHO):\n r9Hf = 0\n if YKH...
[ "0.8165063", "0.78673524", "0.7788163", "0.778297", "0.7632432", "0.7617847", "0.750201", "0.7460292", "0.74360925", "0.739089", "0.7314105", "0.73054016", "0.73023474", "0.7238135", "0.72338337", "0.72271705", "0.7028478", "0.69378364", "0.69237834", "0.68958", "0.68908614",...
0.80410475
1
Gets the mute status. Returns bool True if mute, False otherwise
def KkzS(YKHO) -> bool: return bool(YKHO.audio_mixer.getmute()[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KiJy(YKHO):\n return sqQp(YKHO.get(J1jo, 'GetMute')['mute'])", "def qHHI(YKHO):\n return YKHO._mute", "def qHHI(YKHO):\n return YKHO._state.get('mute', None)", "async def get_mute(YKHO) -> bool:\n return await YKHO._pytheos.api.player.get_mute(YKHO.id)", "def Trfs(YKHO, lCeJ=0):\n _hkX =...
[ "0.8447197", "0.7853023", "0.7816177", "0.7786548", "0.7637117", "0.7604124", "0.7589401", "0.75716776", "0.75716776", "0.75716776", "0.7493464", "0.7490551", "0.74009085", "0.7386506", "0.7377441", "0.7263709", "0.70131826", "0.66592157", "0.65496236", "0.64843935", "0.64833...
0.82508844
1
Sets the mute status.
def KkzS(YKHO, BWXx: bool) -> None: YKHO.audio_mixer.setmute(BWXx) YKHO.update_status()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KkzS(YKHO, jGRS=None):\n if jGRS is None:\n jGRS = not YKHO.status.volume_muted\n YKHO._socket_client.receiver_controller.set_volume_muted(jGRS)", "def KkzS(YKHO, jGRS=None):\n if jGRS is not None:\n aevO = jGRS\n else:\n aevO = not jGRS.volume_muted\n YKHO._socket_client....
[ "0.8213331", "0.8133731", "0.7935711", "0.77839756", "0.7704363", "0.7645187", "0.7585236", "0.75776887", "0.7526588", "0.7472934", "0.7441385", "0.7388262", "0.72046673", "0.71678656", "0.71228534", "0.71199274", "0.71054775", "0.7046623", "0.69437826", "0.68207675", "0.6712...
0.8073841
2
Stops the MQTT client and disconnects from the broker.
def JCyR(YKHO) -> None: YKHO.mqttc.disconnect()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCyR(YKHO):\n if YKHO._connected:\n YKHO._client.loop_stop()\n YKHO._client.disconnect()\n YKHO._connected = False\n bo34.info('Connection with MQTT Broker closed.')", "def aMNf(YKHO):\n if YKHO.mqtt:\n bo34.debug('Disconnecting from MQTT server')\n YKHO.mqtt.d...
[ "0.8587642", "0.8142177", "0.75698906", "0.7143907", "0.7085005", "0.70632106", "0.70489585", "0.70416576", "0.70375", "0.7019846", "0.6991122", "0.6919724", "0.69057995", "0.6826272", "0.67882514", "0.6742181", "0.66949403", "0.6682151", "0.66718763", "0.6662771", "0.6651615...
0.84184134
1
This method generates possible antecedents per span which survived the pruning stage. This procedure is `generic across the batch`. The reason this is the case is that each span in a batch can be coreferent with any previous span, but here we are computing the possible `indices` of these spans. So, regardless of the ba...
def DLKf(FQVE: int, m4W8: int, begE: int) -> AzJI[ht2j.IntTensor, ht2j.IntTensor, ht2j.FloatTensor]: OnAJ = gnPz.get_range_vector(FQVE, begE).unsqueeze(1) bzMk = (gnPz.get_range_vector(m4W8, begE) + 1).unsqueeze(0) EPuh = OnAJ - bzMk jzyK = (EPuh >= 0).float().unsqueeze(0).log() v70Q = vuvg.relu(EPu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def seug(OHZl: torch.IntTensor, Pa77: torch.IntTensor):\n kJyq = OHZl.expand_as(Pa77)\n n2S4 = (kJyq == Pa77).float()\n B_Un = (kJyq >= 0).float()\n WNtZ = n2S4 * B_Un\n O5vM = (1 - WNtZ).prod(-1, keepdim=True)\n swq0 = ht2j.cat([O5vM, WNtZ], -1)\n return swq0", "def seug(OHZl: torch.IntTens...
[ "0.5550315", "0.5550315", "0.5550315", "0.55373615", "0.54277706", "0.53765005", "0.5212551", "0.5188417", "0.50354105", "0.49841648", "0.48158422", "0.4804906", "0.4739883", "0.46752444", "0.4641308", "0.4580102", "0.45601207", "0.45601207", "0.45328763", "0.4526556", "0.449...
0.7365419
0
Computes scores for every pair of spans. Additionally, a dummy label is included, representing the decision that the span is not coreferent with anything. For the dummy label, the score is always zero. For the true antecedent spans, the score consists of the pairwise antecedent score and the unary mention scores for th...
def RB8r(YKHO, LZ1K: torch.FloatTensor, cih5: torch.FloatTensor, KDJK: torch.FloatTensor, OCBG: torch.FloatTensor) -> ht2j.FloatTensor: hVqC = YKHO._antecedent_scorer(YKHO._antecedent_feedforward(LZ1K)).squeeze(-1) hVqC += cih5 + KDJK hVqC += OCBG ROpF = [hVqC.size(0), hVqC.size(1), 1] rR9r = hVqC.n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CD7O(w75t: List[Rationale], nvEb: List[Rationale]) -> zAv0:\n w75t = set(w75t)\n nvEb = set(nvEb)\n uZgO = len(w75t & nvEb) / len(nvEb)\n BSWQ = len(w75t & nvEb) / len(w75t)\n ex5O = wNgU(uZgO, BSWQ)\n MKvn = qiBE(p=uZgO, r=BSWQ, f1=ex5O)\n iRTH = IAxn(w75t)\n Nc6r = IAxn(nvEb)\n ZZ7...
[ "0.5453524", "0.5400239", "0.5400239", "0.5400239", "0.52683854", "0.5257503", "0.52395684", "0.5198675", "0.5167986", "0.51665837", "0.50992566", "0.5077719", "0.50511426", "0.5045459", "0.49581084", "0.49569833", "0.4945379", "0.49450028", "0.49203286", "0.49163902", "0.490...
0.4830466
30
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: G9jH.error(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.781944", "0.78191537", "0.77588147", "0.765886", "0.7652143", "0.76489365", "0.7648256", "0.764653", "0.76100934", "0.7571346", "0.73623234", "0.73535985", "0.73304003", "0.7310247", "0.7161862", "0.71146256", "0.70968693", "0.7060428", "0.7051806", "0.7022448", "0.7007857...
0.76814914
3
Generate a list of atom/mass pairs from the simulated atoms
def c7cK(ZWCE, _mSQ): kcwm = set(ZWCE) KCHu = '%BLOCK SPECIES_MASS\n' KCHu += '\n'.join(['%s\t%f' % (WhQ6, _mSQ[WhQ6]) for WhQ6 in kcwm]) KCHu += '\n%ENDBLOCK SPECIES_MASS' return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mfQf(N9D1):\n return oyIN.array([jzdc.GetMass() for jzdc in N9D1.GetAtoms()])", "def RR8p(YKHO):\n print('processing [ atoms ]')\n WKvO = '[ atoms ]\\n; nr type resnr residu atom cgnr charge mass\\n'\n lCUU = 0.0\n FMLJ = '{nr:6d} {type} 1 {residu} {atom} 1 {charge:14.11f} {mass:7...
[ "0.68541485", "0.65910625", "0.65002006", "0.61934286", "0.6192636", "0.6169197", "0.61452055", "0.6101165", "0.609247", "0.60858977", "0.60666937", "0.6063567", "0.605046", "0.6009178", "0.5998994", "0.59909105", "0.59579784", "0.593843", "0.5935961", "0.59214455", "0.592000...
0.0
-1
Reads file into list while stripping away whitespace characters.
def hfK9(Ux0P): with open(Ux0P) as nUeQ: Nqlg = [zFiD.strip() for zFiD in nUeQ] return Nqlg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kBCW(XZ1i):\n return [zFiD.strip('\\n').strip('\\r') for zFiD in open(XZ1i)]", "def edtm(IznC):\n with open(IznC) as nVrR:\n DumB = [zFiD.strip() for zFiD in nVrR]\n return DumB", "def B8jK(gIsw):\n vJOV = open(gIsw)\n return list(map(lambda KCHu: KCHu.strip(), vJOV.readlines()))", ...
[ "0.74934196", "0.7424236", "0.7420702", "0.74188954", "0.7405871", "0.73877203", "0.73588467", "0.7320326", "0.72669894", "0.7251389", "0.7246783", "0.7238401", "0.72242737", "0.7196502", "0.7049605", "0.7029878", "0.70210415", "0.6946796", "0.6941492", "0.6857922", "0.681489...
0.6392644
46
Return distance between two lat/lon points in km
def vc_0(EBgd: Point, HpuQ: Point) -> float: return round(jLKC.distance.distance((EBgd.y, EBgd.x), (HpuQ.y, HpuQ.x)).km, 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eve5(igSk, GgQG, TGuP, tk0B):\n return PZ77.WGS84.Inverse(igSk, GgQG, TGuP, tk0B)['s12']", "def fv48(OZyw, vrGf, BcHw, AV9l):\n C4B3 = GeVo((OZyw, vrGf), (BcHw, AV9l), unit='km')\n return C4B3", "def NDTY(igSk, GgQG, TGuP, tk0B):\n GgQG, igSk, tk0B, TGuP = map(epAf.radians, [GgQG, igSk, tk0B, T...
[ "0.82663375", "0.8180022", "0.8157151", "0.81110376", "0.8090879", "0.80200475", "0.7986167", "0.7943484", "0.79287034", "0.7920262", "0.7909124", "0.7908051", "0.7874297", "0.78456", "0.7843081", "0.7830177", "0.7800571", "0.77906597", "0.7754079", "0.77297395", "0.7717442",...
0.7498413
35
returns the number of points/rows in the data set.
def TZ5s(YKHO): DbyF = YKHO.data.shape return DbyF[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NYFn(YKHO):\n return YKHO.data.shape[1]", "def KR0Q(YKHO):\n if YKHO.data_reduced:\n return len(YKHO.data_reduced[0])\n else:\n return 0", "def RTy5(YKHO):\n BLg0 = YKHO.df.shape\n DR2N = BLg0[0]\n return DR2N", "def SAv9(YKHO):\n try:\n D1HL = len(YKHO.x)\n ...
[ "0.80856127", "0.80212545", "0.8007088", "0.7975629", "0.79718477", "0.7858655", "0.7828387", "0.7727079", "0.7684411", "0.7568434", "0.75577956", "0.75539523", "0.75380296", "0.75021416", "0.749834", "0.74500316", "0.74453664", "0.74453664", "0.74282986", "0.7414466", "0.739...
0.8029127
1
create a readable data table for html page
def EnrH(): for OotI in range(0, 10): for Q6kx in range(0, 4): nUeQ = 'ccd' + str(OotI) + '_' + str(Q6kx) apum = h_xa + nUeQ _RR0 = olSb + 'Data/' + nUeQ eHNT = open(apum, 'r') nPrm = [zFiD.strip() for zFiD in eHNT.readlines()] eHNT.clo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mehO(YKHO):\n B2Dn = '<!DOCTYPE html>\\n <!doctype html>\\n <html lang=\"en\">\\n <head>\\n <meta charset=\"utf-8\">\\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\\n </head>\\n </html>\\n <hea...
[ "0.6946965", "0.69299895", "0.6771338", "0.67320246", "0.6715655", "0.66717064", "0.6652968", "0.66163486", "0.6607926", "0.6547731", "0.6515936", "0.6514979", "0.6513547", "0.64986885", "0.643394", "0.64201856", "0.6418552", "0.64144164", "0.63896674", "0.6388682", "0.636090...
0.6723795
4
Calculates the number of days since 111900 (the Excel Epoch)
def pN_n(): pJCq = qcWV.date(1900, 1, 1) _WcY = qcWV.datetime.today().date() RA_F = _WcY - pJCq return RA_F.days
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LJp6(CjKC, x0eS, lO87):\n Csk6 = qcWV(int(lO87), int(x0eS), int(CjKC))\n qtWj = qcWV.utcfromtimestamp(0)\n return (Csk6 - qtWj).days", "def Ri7a(ITS7):\n return int(ITS7 / 86400)", "def IMJE(_c1T):\n g75m = _c1T - qtWj\n return g75m.days * 86400 + g75m.seconds + float(g75m.microseconds) /...
[ "0.7083012", "0.70454645", "0.6994901", "0.6972299", "0.6954758", "0.6954758", "0.69342244", "0.6863395", "0.67731464", "0.670872", "0.6632939", "0.6544763", "0.6531819", "0.6528415", "0.65174526", "0.6493381", "0.64617276", "0.6439297", "0.63977396", "0.63881654", "0.635627"...
0.8354966
0
>>> string_chopped_to_float('hello75494758test', 'hello', 'test') 75494758.0 >>> string_chopped_to_float('hello1test', 'hello', 'test') 1.0
def g9xy(NPoT, Jx0Y, X08P): NPoT = str(NPoT) return float(pWvJ(cTN8(NPoT, Jx0Y), X08P))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BQ6F(vIwR):\n try:\n return float(vIwR.strip())\n except:\n return 0", "def luh1(vIwR):\n iwUh = '0.' + vIwR[:-1]\n return float(iwUh)", "def AjPn(YKHO, KCHu: str) -> float:\n return int(KCHu[:-1]) / 1000000000.0 if KCHu.endswith('n') else float(KCHu[:-1])", "def fqum(KCHu):\...
[ "0.76202214", "0.7513479", "0.73897016", "0.7269182", "0.7262404", "0.71777946", "0.715664", "0.7013713", "0.69565153", "0.6954011", "0.6907948", "0.68754464", "0.6867221", "0.6840515", "0.68281454", "0.6768567", "0.6767471", "0.6719723", "0.67103374", "0.6662983", "0.6615891...
0.8501997
0
Get connection of the script parameter's db. If there is no script parameter, default db is local.
def lxP0(eYQB=None): if eYQB is None: eYQB = pJLC() if eYQB not in nj7q.keys(): raise EnvironmentError('{} is not in engine_pool. Please check your script parameters.'.format(eYQB)) return nj7q[eYQB].connect()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGod():\n if not hasattr(Oa1e, 'sql_db'):\n Oa1e.sql_db = _uJw()\n return Oa1e.sql_db", "def GGod():\n if 'db' not in Oa1e:\n KcEq = wk5E.config['HOST']\n _M9w = wk5E.config['DATABASE']\n NArs = \"dbname='{}' user=root\".format(_M9w)\n Oa1e.db = ehoX.connect(NArs)\...
[ "0.72661835", "0.7213039", "0.7167934", "0.71468794", "0.7121477", "0.69964993", "0.698836", "0.69833606", "0.6968781", "0.6957994", "0.6933347", "0.6916411", "0.6877128", "0.6862319", "0.68241996", "0.6813471", "0.6771486", "0.6760717", "0.67594606", "0.674768", "0.67476124"...
0.0
-1
Varialbe type that automatically choose cpu or cuda
def I9Cv(WKvO, _6Ge=False): if isinstance(WKvO, list): for G1Hx in WKvO: if ht2j.cuda.is_available(): G1Hx = G1Hx.cuda() G1Hx = ht2j.tensor(G1Hx, requires_grad=_6Ge) else: if ht2j.cuda.is_available(): WKvO = WKvO.cuda() WKvO = ht2j.tens...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xw1V(sva5):\n return ht2j.device('cuda' if ht2j.cuda.is_available() and sva5.gpu == 1 else 'cpu')", "def UpaS(u3wG: int) -> object:\n if u3wG >= 1 and ht2j.cuda.is_available():\n na1r.info('\\n CUDA is available! using GPU...')\n return ht2j.device('cuda')\n else:\n na1r.info('\...
[ "0.68364257", "0.67880046", "0.6779072", "0.67483586", "0.6691501", "0.66721827", "0.66627854", "0.6655084", "0.6613398", "0.655558", "0.6480205", "0.6446704", "0.6443538", "0.64345646", "0.6369032", "0.6369032", "0.6338733", "0.631449", "0.6293746", "0.62697166", "0.6269074"...
0.0
-1
Append list of n elements in list of n lists
def nPmj(iHrl, X1zw): for YRbF, jzdc in enumerate(iHrl): X1zw[YRbF].append(jzdc) return X1zw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iyBd(YKHO, TEEK, exwG):\n if len(TEEK) <= 0:\n return []\n if len(TEEK) <= exwG:\n return [TEEK]\n U5bT = []\n _NmG = []\n UHFx = 0\n for ZfUD in TEEK:\n UHFx = UHFx + 1\n _NmG.append(ZfUD)\n if UHFx % exwG == 0:\n U5bT.append(_NmG)\n _...
[ "0.6807706", "0.6706362", "0.66457474", "0.663961", "0.65851057", "0.65645623", "0.6520212", "0.64464223", "0.6407452", "0.6399652", "0.6395309", "0.63260823", "0.63258517", "0.630658", "0.6291918", "0.6277825", "0.6277825", "0.62566686", "0.6253813", "0.62466097", "0.6241607...
0.0
-1
Splits the given data by the given cluster assignments.
def Qb89(Tura, qC6E): if qC6E is None: return {0: Tura} return {G1Hx: Tura.loc[qC6E.index[qC6E == G1Hx]] for G1Hx in qC6E.unique()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def boW5(nPrm, Crrw, Qrt_):\n return ([KCHu[Qrt_] for KCHu in nPrm], Crrw[Qrt_])", "def Qrt_(YKHO, nPrm, Crrw):\n return YKHO.kfold.split(Crrw)", "def Qrt_(YKHO, nPrm, Crrw):\n raise Exception('Not implmented')", "def jgLX(YKHO):\n return [{'split': X3eO.DatasetSplit.TRAIN, 'shards': 799}, {'spli...
[ "0.5998715", "0.58617157", "0.5804616", "0.5778629", "0.5770824", "0.57205516", "0.5692267", "0.5632453", "0.5593713", "0.5591811", "0.5513163", "0.5492773", "0.5449953", "0.54481894", "0.54481894", "0.541212", "0.53947717", "0.5391424", "0.53894734", "0.53755146", "0.5373107...
0.62756664
0
Copies the model parameters of one net to another.
def SoUk(cb_Q, EhKz, J0q5): dc6C(cb_Q, EhKz.scope, J0q5.scope)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xtb4(xGvx, Rxbv):\n for SIgb, xqoZ in zip(Rxbv.parameters(), xGvx.parameters()):\n SIgb.data.copy_(xqoZ.data)", "def y5Gm(K2kL, ZpWk):\n for YRbF, r845 in zip(K2kL.trainable_weights, ZpWk.trainable_weights):\n r845.assign(YRbF)", "def K4Sp(cb_Q):\n Fzlc = [a1PO for a1PO in ZylS.train...
[ "0.7798005", "0.71947426", "0.6970523", "0.6810422", "0.6723942", "0.6572565", "0.65657896", "0.652187", "0.6497664", "0.63801336", "0.63801336", "0.63792497", "0.63616174", "0.6232208", "0.6214631", "0.62068164", "0.61581165", "0.61567116", "0.61458546", "0.61458546", "0.614...
0.8102487
0
Given xmin and xmean, calculate xmax.
def JAP1(YKHO, BQGg, eBzg): YKHO.xmin = BQGg YKHO.xmax = eBzg + 0.01 for YRbF in Hs6x.count(): YKHO.norm = YKHO._integrate(YKHO.xmax) - YKHO._integrate(YKHO.xmin) y8Pc = YKHO.mean() RA_F = eBzg - y8Pc if RA_F < YKHO.tol: break YKHO.xmax += RA_F if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cMNy(YKHO, bYzl, eBzg):\n YKHO.xmin = eBzg - 0.01\n YKHO.xmax = bYzl\n for YRbF in Hs6x.count():\n YKHO.norm = YKHO._integrate(YKHO.xmax) - YKHO._integrate(YKHO.xmin)\n y8Pc = YKHO.mean()\n RA_F = -y8Pc + eBzg\n if abs(RA_F) < YKHO.tol:\n break\n YKHO.xmin...
[ "0.7159941", "0.6644928", "0.6595465", "0.6282393", "0.6058324", "0.6008358", "0.598642", "0.5981668", "0.59622645", "0.59518296", "0.589675", "0.5775744", "0.5768364", "0.573387", "0.5666532", "0.56613404", "0.5658492", "0.55588865", "0.5554085", "0.5546216", "0.55198145", ...
0.7543527
0
Given xmax and xmean, calculate xmin.
def cMNy(YKHO, bYzl, eBzg): YKHO.xmin = eBzg - 0.01 YKHO.xmax = bYzl for YRbF in Hs6x.count(): YKHO.norm = YKHO._integrate(YKHO.xmax) - YKHO._integrate(YKHO.xmin) y8Pc = YKHO.mean() RA_F = -y8Pc + eBzg if abs(RA_F) < YKHO.tol: break YKHO.xmin += RA_F ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGS6(YKHO):\n return YKHO.__xmin", "def vELP(YKHO, BQGg=None, bYzl=None, h3cg=None, Z3uP=None, nJ9F=()):\n if BQGg is None:\n BQGg = YKHO.xminmax()[0]\n if bYzl is None:\n bYzl = YKHO.xminmax()[1]\n if YKHO.xminmax():\n BQGg = max(BQGg, YKHO.xminmax()[0])\n bYzl = min(...
[ "0.65930706", "0.6441789", "0.6427979", "0.6360444", "0.6352979", "0.634569", "0.6193621", "0.61772054", "0.6101645", "0.6027506", "0.60104257", "0.58738685", "0.5823002", "0.5815513", "0.57013637", "0.5684938", "0.56506073", "0.56309605", "0.5604591", "0.5601875", "0.5589556...
0.793842
0
Returns the path containing IO data files used in testing.
def dWy5(): return gzes(h0TV, 'database.p')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eitm():\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'data') + Hy7s.path.sep)", "def s8df():\n return Hy7s.getcwd() + '/data/'", "def WLhE(YKHO):\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'data')", "def s8df():\n import rospkg\n CMTZ = rospkg...
[ "0.7840756", "0.76914006", "0.76356053", "0.76124007", "0.7558167", "0.7454095", "0.7225511", "0.7212256", "0.71260905", "0.71198773", "0.7093126", "0.7014291", "0.70042723", "0.69772965", "0.69591296", "0.6958929", "0.68563145", "0.68220174", "0.67919135", "0.678343", "0.672...
0.0
-1
Returns the URL for marking this task as completed.
def q154(YKHO): return nKyW('complete', id=YKHO.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bD7m(YKHO):\n w2IS = 'taskinfo?taskID=%d' % YKHO.id\n return Qumu.join(YKHO.connection.weburl, w2IS)", "def syr6(YKHO, YEnM):\n QePW = YKHO.context.get('request')\n return gxEw('task-detail', args=[YEnM.id], request=QePW)", "def rdfC(YKHO):\n return gxEw('thank_you_for_your_order')", "def ...
[ "0.67253566", "0.6233988", "0.59180653", "0.5902739", "0.58974993", "0.5888213", "0.58599114", "0.58551264", "0.5851763", "0.58509356", "0.58509356", "0.5793037", "0.57874066", "0.57840174", "0.57840174", "0.5769833", "0.576545", "0.5763912", "0.57438934", "0.5731111", "0.573...
0.73656243
0
Deserialize a serialized value to a model instance. If the parent schema is transient, create a new (transient) instance. Otherwise, attempt to find an existing instance in the database.
def vodS(YKHO, BWXx, *qIxc, **B2fa): if not isinstance(BWXx, dict): if len(YKHO.related_keys) != 1: sjXb = [QWcs.key for QWcs in YKHO.related_keys] raise YKHO.make_error('invalid', value=BWXx, keys=sjXb) BWXx = {YKHO.related_keys[0].key: BWXx} if YKHO.transient: r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n5rA(YKHO, BWXx, **B2fa):\n B2fa.update({'trusted': B2fa.get('trusted', False)})\n if YKHO.deserializer is not None:\n return YKHO.deserializer(BWXx, **B2fa)\n if BWXx is None:\n return None\n if issubclass(YKHO.instance_class, vTMR):\n return YKHO.instance_class.deserialize(BW...
[ "0.66955453", "0.66205436", "0.6339031", "0.6127864", "0.5938254", "0.58837366", "0.58773464", "0.58529365", "0.57516885", "0.56784666", "0.5618999", "0.5596128", "0.55882066", "0.5542467", "0.5535758", "0.5521772", "0.5444111", "0.5418266", "0.54116184", "0.54016405", "0.539...
0.68193334
0
Find duplicate number in nums. Given a list of nums with, at most, one duplicate, return the duplicate. If there is no duplicate, return None >>> find_the_duplicate([1, 2, 1, 4, 3, 12]) 1 >>> find_the_duplicate([6, 1, 9, 5, 3, 4, 9]) 9 >>> find_the_duplicate([2, 1, 3, 4]) is None True
def i1wt(xYvp): PwWw = set() for mLGw in xYvp: if mLGw in PwWw: return mLGw PwWw.add(mLGw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q5Wb(YKHO, xYvp: List[int]) -> int:\n if not xYvp:\n return False\n if len(xYvp) == 1:\n return xYvp[0]\n azXi = set()\n for YRbF in xYvp:\n if YRbF not in azXi:\n azXi.add(YRbF)\n else:\n azXi.remove(YRbF)\n return azXi.pop()", "def n_0g(YKHO,...
[ "0.72007155", "0.71849084", "0.7120184", "0.6819626", "0.67981535", "0.6700376", "0.6495514", "0.64611137", "0.6423958", "0.6412791", "0.64043427", "0.6378339", "0.6245624", "0.6185543", "0.60564303", "0.602177", "0.59826195", "0.5961004", "0.5892497", "0.5873059", "0.5866645...
0.8059625
0
Generate and return the top k sequences using beam search.
def nxUj(C3ST, Yw_3, baHf, AHWe=20, E_bs=False, W6sQ=False, TGyp=False, tkSW=None, m0k3=None): baHf = min(baHf, C3ST.decoder.vocab_size - 1) tFj2 = baHf qzxX = C3ST.encoder(Yw_3) if C3ST.encoder else Yw_3 sVBj = qzxX.size(1) vFtC = qzxX.size()[-1] qzxX = qzxX.view(1, -1, vFtC) qzxX = qzxX.ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EV3a(C3ST, Yw_3, baHf, UBMY, TGyp=False):\n tFj2 = baHf\n qzxX = C3ST.encoder(Yw_3)\n vFtC = qzxX.size()[-1]\n qzxX = qzxX.view(1, -1, vFtC)\n qzxX = qzxX.expand(baHf, qzxX.size(1), vFtC)\n tOOi = ht2j.full((baHf, 1), C3ST.decoder.word_map[tmOr], dtype=ht2j.int64, device=begE)\n dD3p = ht2...
[ "0.65656865", "0.6552478", "0.6415597", "0.6274722", "0.623385", "0.6221493", "0.62093025", "0.6181028", "0.616216", "0.6150922", "0.61144024", "0.60654044", "0.6062551", "0.60465956", "0.60432655", "0.60311055", "0.5972269", "0.5971957", "0.59668124", "0.5930692", "0.5930684...
0.53288436
85
Generate and return the top k sequences using beam search.
def tGiH(C3ST, Yw_3, baHf, AHWe=20, E_bs=False, W6sQ=False, TGyp=False, tkSW=None, m0k3=None): baHf = min(baHf, C3ST.decoder.vocab_size - 1) tFj2 = baHf qzxX = C3ST.encoder(Yw_3) if C3ST.encoder else Yw_3 sVBj = qzxX.size(1) vFtC = qzxX.size()[-1] qzxX = qzxX.view(1, -1, vFtC) qzxX = qzxX.ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EV3a(C3ST, Yw_3, baHf, UBMY, TGyp=False):\n tFj2 = baHf\n qzxX = C3ST.encoder(Yw_3)\n vFtC = qzxX.size()[-1]\n qzxX = qzxX.view(1, -1, vFtC)\n qzxX = qzxX.expand(baHf, qzxX.size(1), vFtC)\n tOOi = ht2j.full((baHf, 1), C3ST.decoder.word_map[tmOr], dtype=ht2j.int64, device=begE)\n dD3p = ht2...
[ "0.65656865", "0.6552478", "0.6415597", "0.6274722", "0.623385", "0.6221493", "0.62093025", "0.6181028", "0.616216", "0.6150922", "0.61144024", "0.60654044", "0.6062551", "0.60465956", "0.60432655", "0.60311055", "0.5972269", "0.5971957", "0.59668124", "0.5930692", "0.5930684...
0.57292604
33
Generate and return the top k sequences using beam search.
def NdEv(C3ST, Yw_3, baHf, AHWe=20, E_bs=False, W6sQ=False, TGyp=False): baHf = min(baHf, C3ST.decoder.vocab_size - 1) tFj2 = baHf qzxX = C3ST.encoder(Yw_3) if C3ST.encoder else Yw_3 WpXz, aHI7 = qzxX pmAy = WpXz.repeat(baHf, 1, 1, 1) DhOW = aHI7.repeat(baHf, 1) qzxX = (pmAy, DhOW) tOOi ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EV3a(C3ST, Yw_3, baHf, UBMY, TGyp=False):\n tFj2 = baHf\n qzxX = C3ST.encoder(Yw_3)\n vFtC = qzxX.size()[-1]\n qzxX = qzxX.view(1, -1, vFtC)\n qzxX = qzxX.expand(baHf, qzxX.size(1), vFtC)\n tOOi = ht2j.full((baHf, 1), C3ST.decoder.word_map[tmOr], dtype=ht2j.int64, device=begE)\n dD3p = ht2...
[ "0.65656865", "0.6552478", "0.6415597", "0.6274722", "0.623385", "0.6221493", "0.62093025", "0.6181028", "0.616216", "0.6150922", "0.61144024", "0.60654044", "0.6062551", "0.60465956", "0.60432655", "0.60311055", "0.5972269", "0.5971957", "0.59668124", "0.5930692", "0.5930684...
0.0
-1
Generate and return the top k sequences using beam search.
def Zppt(C3ST, Yw_3, baHf, AHWe=20, E_bs=False, W6sQ=False, TGyp=False): baHf = min(baHf, C3ST.decoder.vocab_size - 1) tFj2 = baHf qzxX = C3ST.encoder(Yw_3) if C3ST.encoder else Yw_3 WpXz, aHI7 = qzxX pmAy = WpXz.repeat(baHf, 1, 1, 1) DhOW = aHI7.repeat(baHf, 1) qzxX = (pmAy, DhOW) tOOi ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EV3a(C3ST, Yw_3, baHf, UBMY, TGyp=False):\n tFj2 = baHf\n qzxX = C3ST.encoder(Yw_3)\n vFtC = qzxX.size()[-1]\n qzxX = qzxX.view(1, -1, vFtC)\n qzxX = qzxX.expand(baHf, qzxX.size(1), vFtC)\n tOOi = ht2j.full((baHf, 1), C3ST.decoder.word_map[tmOr], dtype=ht2j.int64, device=begE)\n dD3p = ht2...
[ "0.65654874", "0.6553514", "0.6415881", "0.6275166", "0.6232991", "0.62214494", "0.6210223", "0.6180671", "0.61631125", "0.61527216", "0.61141413", "0.6064397", "0.6064363", "0.60454917", "0.6043098", "0.6031024", "0.59727436", "0.5971462", "0.5966295", "0.59308416", "0.59297...
0.54398453
68
pads the string on the left side by adding the add string to the left as many times as necessary such that the output is "[add,]string"
def w4WW(vIwR, u54L: int, H2v5: str) -> str: ifZj = vIwR while len(ifZj) < u54L: ifZj = H2v5 + ifZj return ifZj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CTeo(hkWs, dDGN=0):\n u54L = max((len(str(KCHu)) for KCHu in hkWs)) + dDGN\n\n def hVLt(vIwR):\n vIwR = str(vIwR)\n dvgN = max(0, u54L - len(vIwR))\n return vIwR + dvgN * ' '\n return hVLt", "def pWy_(aWuw: str) -> str:\n return aWuw.ljust(3, 'X')", "def yU8h(UI4D, VNqG, LF...
[ "0.67100894", "0.6707976", "0.6621261", "0.6557144", "0.64166796", "0.6376291", "0.63675404", "0.63523495", "0.6338037", "0.6326726", "0.62968856", "0.62506044", "0.6153734", "0.6096829", "0.60582674", "0.6022688", "0.6016048", "0.6015064", "0.60114783", "0.5928853", "0.58942...
0.75408876
0
extract words from the text with the filters given above.
def pAmU(l5Ny: str, D5Gr: Union[str, List[str]]) -> x1iM[str]: gndP = dict(((Z9rn, ' ') for Z9rn in D5Gr)) DIeq = golO.get_string_from_translate_dict(l5Ny.lower(), gndP) return [GIN8 for GIN8 in DIeq.split(' ') if len(GIN8) > 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V22M(YKHO, l5Ny):\n return ZbWC.findall('\\\\w+', l5Ny)", "def JgZ3(YKHO):\n str = YKHO.text.lower()\n V22M = ZbWC.sub('[?|—|:|\"|,|\\\\.\\\\n|\\\\.|\\\\s|\\\\n|\\\\t|\\\\v|\\\\f|\\\\r]+', '*', str)\n YKHO.word_list = V22M.split('*')", "def GMXA(YKHO, l5Ny):\n JbyC = ZbWC.UNICODE if HwRy.ver...
[ "0.71811485", "0.7146654", "0.7123673", "0.7050718", "0.7026393", "0.6935126", "0.68902266", "0.68653965", "0.68196225", "0.67737347", "0.6772545", "0.6758144", "0.66683286", "0.6657706", "0.66109127", "0.66083884", "0.65960807", "0.6518513", "0.6510654", "0.6507925", "0.6492...
0.7547689
0
returns the number of days in the given month
def khZ7(x0eS: str, lO87: str='2018') -> int: cPU3 = int(x0eS) if cPU3 in YpIO: return 31 if cPU3 in KiuC: return 30 if cPU3 == 2: if p1CF(lO87): return 29 return 28 raise ValueError('Invalid month given')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vhrV(lO87, x0eS):\n qE0M = wTnG(lO87, x0eS)[1]\n return qE0M", "def Y6l4(lO87=2019, x0eS=1):\n return wTnG(lO87, x0eS)[1]", "def vhrV(x0eS):\n if x0eS == 'February':\n return 28\n elif x0eS == 'September' or x0eS == 'April' or x0eS == 'June' or (x0eS == 'November'):\n return 30...
[ "0.88597596", "0.8626046", "0.8502665", "0.84765655", "0.83865124", "0.8349229", "0.8330723", "0.8287386", "0.81686455", "0.81686455", "0.81686455", "0.81276786", "0.8111175", "0.810017", "0.80028033", "0.8001812", "0.7972805", "0.79387033", "0.7853251", "0.7822184", "0.76781...
0.789016
18
Function to shoot bullets and to move them across the screen
def wCPi(Q4vv, WFC2, xFSv): EcVT, fuBA, o3wa, OPAq, GyEv, SUbQ = (0, 1, 2, 3, 4, 5) iZGK, COUb, PN7J = (4, 5, 6) iMYM, P7t_ = (4, 5) for mcl6 in Q4vv: if mcl6[PN7J] == 1 and mcl6[iZGK] == 1: mcl6[COUb] += 1 if mcl6[COUb] == 180: mcl6[COUb] = 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hiPt(YKHO):\n GBVa(YKHO.birb.rect.x + 75, YKHO.birb.rect.y + 35, YKHO)", "def ZSQN(YKHO):\n YBnT = GBVa(YKHO.rect.centerx, YKHO.rect.top)\n __bO.add(YBnT)", "def ZSQN(YKHO):\n if YKHO.direction == 'left':\n YKHO.__temp_bullet = GBVa(YKHO.position, 60)\n elif YKHO.direction == 'forward...
[ "0.84421605", "0.81402844", "0.7963889", "0.7887334", "0.76961386", "0.76789296", "0.7568323", "0.747291", "0.74393404", "0.7431883", "0.7305799", "0.7304005", "0.72682786", "0.7255767", "0.7225746", "0.72253543", "0.71468955", "0.7126322", "0.6979595", "0.688353", "0.688353"...
0.802486
2
Turns an array into a tuple.
def yfia(jzdc): return tuple(jzdc.reshape(1, -1)[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SfwG(YKHO, ezWE):\n try:\n return tuple((YKHO.totuple(YRbF) for YRbF in ezWE))\n except TypeError:\n return ezWE", "def ag9v(*qIxc):\n return tuple(qIxc)", "def ms7G(A1WH: np.ndarray) -> AzJI[oyIN.ndarray, oyIN.ndarray]:\n hkxX = oyIN.zeros(A1WH.shape)\n iW7i = oyIN.zeros(A1WH....
[ "0.740222", "0.7205401", "0.7028237", "0.68840843", "0.6856533", "0.66772735", "0.6635185", "0.6635185", "0.6626691", "0.6501668", "0.6481281", "0.6428507", "0.6392776", "0.6385211", "0.6264097", "0.6256837", "0.6186616", "0.6184272", "0.61623657", "0.61484647", "0.61317927",...
0.8194976
0
Equalizes the provided data with the provided labels.
def Tg_M(CTRE, j_ag): XOOk = j_ag[oyIN.where(CTRE == 1)[0]] pHXX = j_ag[oyIN.where(CTRE == 2)[0]] wzH_ = min(len(XOOk), len(pHXX)) XOOk = XOOk[0:wzH_] pHXX = pHXX[0:wzH_] ezWE = oyIN.concatenate((XOOk, pHXX)) kYGz = oyIN.ones((wzH_, 1)) * 0 ftz7 = oyIN.ones((wzH_, 1)) * 1 DaSi = oyIN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WgYu(YKHO, nPrm: np.array, Crrw: np.array):\n raise NotImplementedError", "def SHww(YKHO, gMbG):\n raise NotImplementedError", "def BkuM(nPrm, Crrw):\n or8S = oyIN.arange(len(Crrw))\n oyIN.random.shuffle(or8S)\n return (nPrm[or8S], Crrw[or8S])", "def OhNh(YKHO):\n nPrm = qw7D([[1], [2],...
[ "0.60097593", "0.5801564", "0.5799009", "0.57169294", "0.56686497", "0.56124026", "0.55428267", "0.5529858", "0.5524994", "0.5492298", "0.5490576", "0.5490576", "0.5490576", "0.54689044", "0.54631615", "0.5447162", "0.54461753", "0.54271036", "0.54227924", "0.541604", "0.5413...
0.73087734
0
Encode dict to JSON to a jwt
def CZDQ(zEKB, ljay, k2s1): tf1m = None yTVD = None KGvk = jZ4I.literal_eval(zEKB) if ljay: if k2s1: MOPg = jZ4I.literal_eval(k2s1) try: 'Encode with secret and headers' yTVD = DvJO.encode(KGvk, ljay, algorithm='HS256', headers=MOPg) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UIwr(pB3N):\n P5hY = P4t4.config['SECRET_KEY']\n yTVD = DvJO.encode(pB3N, P5hY, algorithm='HS256')\n return yTVD.decode()", "def rJp2(pB3N):\n return DvJO.encode(pB3N, widx.JWT_SECRET_KEY, widx.JWT_ALGORITHM).decode('utf-8')", "async def encode(YKHO, pB3N: dict) -> str:\n KNvb = YKHO.duratio...
[ "0.7072988", "0.694318", "0.689193", "0.6871679", "0.6630255", "0.6597355", "0.6589429", "0.6561992", "0.6384505", "0.63051885", "0.6285888", "0.6216534", "0.61586", "0.6154031", "0.61018187", "0.6074345", "0.604879", "0.6044337", "0.60385233", "0.60378087", "0.6029763", "0...
0.6842189
4
Returns the number density of galaxies in steradian
def NjDV(YKHO): return YKHO._gals_per_arcmin2 * nvHk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InLe(WKvO, eJTR='geopotential'):\n oZuG = tyNF(WKvO, eJTR)[3]\n return oZuG", "def InLe(YKHO):\n return YKHO.count_ones() / float(YKHO.xspan * YKHO.yspan)", "def InLe(YKHO):\n return YKHO.get_density()", "def InLe(YKHO):\n return 0.001 * YKHO.molar_mass * YKHO.pressure / (K6Rf * YKHO.tempe...
[ "0.6724538", "0.66881645", "0.6492747", "0.640632", "0.63921267", "0.63454807", "0.6334077", "0.62923026", "0.62590057", "0.6251652", "0.6251652", "0.6251652", "0.62420094", "0.6223578", "0.6205007", "0.6187691", "0.61759925", "0.6175906", "0.6171758", "0.6164977", "0.6159223...
0.60808486
24
Differentiate CDF [From Wolfram] d/dx((d(x^(z) + y^(z) 1)^(1/z))/(dy)) = (1/z 1) z (x^(z 1)) y^(z 1) (x^(z) + y^(z) 1)^(1/z 2)
def kzAT(YKHO, EcVT): assert EcVT.shape[1] == 2 Nk6w = EcVT[:, 0] ** (-YKHO.theta) + EcVT[:, 1] ** (-YKHO.theta) - 1.0 U5bT = ht2j.zeros_like(Nk6w) U5bT[Nk6w > 0] = (-1 / YKHO.theta - 1.0) * YKHO.theta * -EcVT[Nk6w > 0, 0] ** (-YKHO.theta - 1) * EcVT[Nk6w > 0, 1] ** (-YKHO.theta - 1) * (EcVT[Nk6w > 0, 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pDT2(YKHO, epBp):\n jzdc = YKHO.g(epBp)\n return jzdc * (1 - jzdc)", "def Z9rn(TifC: np.ndarray, YMHw: np.ndarray) -> oyIN.ndarray:\n return oyIN.abs(YMHw[0, :] * TifC[1, :] - TifC[0, :] * YMHw[1, :]) / (TifC[0, :] ** 2 + TifC[1, :] ** 2) ** 1.5", "def Bc4p(epBp, MKlR=0.7, fp5t=0.7, lSrm=0.3, _XDy...
[ "0.6978494", "0.68921065", "0.68568516", "0.6839228", "0.6716509", "0.6667386", "0.6666124", "0.6645432", "0.66361296", "0.6630833", "0.6623895", "0.6620779", "0.65850985", "0.65729505", "0.65701413", "0.6551642", "0.6549312", "0.6545368", "0.6456673", "0.6442279", "0.6433359...
0.0
-1
Tests whether ``ApplicationCommandOptionMetadataNested.copy`` works as intended.
def Jd5y(): xAU6 = [jmPK('nue', 'nue', L9kB.string), jmPK('seija', 'seija', L9kB.integer)] ZPW4 = FElv(options=xAU6) jth9 = ZPW4.copy() I0LM(jth9) Qg87.assert_is_not(ZPW4, jth9) Qg87.assert_eq(ZPW4, jth9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pHIp():\n xAU6 = [jmPK('nue', 'nue', L9kB.string), jmPK('seija', 'seija', L9kB.integer)]\n ZPW4 = FElv(options=xAU6)\n jth9 = ZPW4.copy_with()\n I0LM(jth9)\n Qg87.assert_is_not(ZPW4, jth9)\n Qg87.assert_eq(ZPW4, jth9)", "def Vifi():\n Khs0 = [jmPK('nue', 'nue', L9kB.string), jmPK('seija'...
[ "0.82652885", "0.79703516", "0.780934", "0.75012493", "0.6400259", "0.5888461", "0.5698658", "0.5678107", "0.55697507", "0.548862", "0.5454601", "0.5418766", "0.541613", "0.53691906", "0.5353441", "0.5324269", "0.530283", "0.5283179", "0.52616227", "0.5254519", "0.5235558", ...
0.853201
0
Tests whether ``ApplicationCommandOptionMetadataNested.copy_with_keyword_parameters`` works as intended.
def _ksn(): xAU6 = [jmPK('nue', 'nue', L9kB.string), jmPK('seija', 'seija', L9kB.integer)] ZPW4 = FElv(options=xAU6) jth9 = ZPW4.copy_with_keyword_parameters({}) I0LM(jth9) Qg87.assert_is_not(ZPW4, jth9) Qg87.assert_eq(ZPW4, jth9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ymue():\n Khs0 = [jmPK('nue', 'nue', L9kB.string), jmPK('seija', 'seija', L9kB.integer)]\n Ek76 = [jmPK('aya', 'ayaya', L9kB.float), jmPK('momiji', 'awoo', L9kB.user)]\n ZPW4 = FElv(options=Khs0)\n jth9 = ZPW4.copy_with_keyword_parameters({'options': Ek76})\n I0LM(jth9)\n Qg87.assert_is_not(Z...
[ "0.84156406", "0.64966935", "0.64326566", "0.6406456", "0.6285689", "0.57689905", "0.5185993", "0.51273936", "0.5105928", "0.50947016", "0.49798912", "0.49645314", "0.49302363", "0.49265942", "0.49123338", "0.49068585", "0.49034593", "0.48958218", "0.48899037", "0.4866531", "...
0.8621432
0
Tests whether ``ApplicationCommandOptionMetadataNested.copy_with_keyword_parameters`` works as intended.
def ymue(): Khs0 = [jmPK('nue', 'nue', L9kB.string), jmPK('seija', 'seija', L9kB.integer)] Ek76 = [jmPK('aya', 'ayaya', L9kB.float), jmPK('momiji', 'awoo', L9kB.user)] ZPW4 = FElv(options=Khs0) jth9 = ZPW4.copy_with_keyword_parameters({'options': Ek76}) I0LM(jth9) Qg87.assert_is_not(ZPW4, jth9) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ksn():\n xAU6 = [jmPK('nue', 'nue', L9kB.string), jmPK('seija', 'seija', L9kB.integer)]\n ZPW4 = FElv(options=xAU6)\n jth9 = ZPW4.copy_with_keyword_parameters({})\n I0LM(jth9)\n Qg87.assert_is_not(ZPW4, jth9)\n Qg87.assert_eq(ZPW4, jth9)", "def Jd5y():\n xAU6 = [jmPK('nue', 'nue', L9kB....
[ "0.8621432", "0.64966935", "0.64326566", "0.6406456", "0.6285689", "0.57689905", "0.5185993", "0.51273936", "0.5105928", "0.50947016", "0.49798912", "0.49645314", "0.49302363", "0.49265942", "0.49123338", "0.49068585", "0.49034593", "0.48958218", "0.48899037", "0.4866531", "0...
0.84156406
1
Convert a JSON representation into ListValue message.
def aeCF(YKHO, BWXx, Ol8d, pmON): if not isinstance(BWXx, list): raise _OuM('ListValue must be in [] which is {0} at {1}'.format(BWXx, pmON)) Ol8d.ClearField('values') for d6pt, ZfUD in enumerate(BWXx): YKHO._ConvertValueMessage(ZfUD, Ol8d.values.add(), '{0}[{1}]'.format(pmON, d6pt))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CHKK(YKHO, Ol8d):\n return [YKHO._ValueMessageToJsonObject(BWXx) for BWXx in Ol8d.values]", "def WOxh(YKHO, BWXx):\n if isinstance(BWXx, (dict, list)):\n return BWXx\n try:\n return qQXR.loads(BWXx)\n except ValueError:\n raise sUXu('Invalid JSON')", "def TNIG(YEnM: JsonInp...
[ "0.6948909", "0.6379288", "0.63605946", "0.6299422", "0.60831195", "0.60798275", "0.6069047", "0.5996719", "0.59340507", "0.59220725", "0.5827064", "0.5789415", "0.5709988", "0.569617", "0.5695142", "0.5669852", "0.5651025", "0.56476074", "0.56385607", "0.5634746", "0.5622930...
0.66147846
1
Convert an floating point number.
def FCVc(BWXx, Jyyj): if isinstance(BWXx, float): if epAf.isnan(BWXx): raise _OuM('Couldn\'t parse NaN, use quoted "NaN" instead') if epAf.isinf(BWXx): if BWXx > 0: raise _OuM('Couldn\'t parse Infinity or value too large, use quoted "Infinity" instead') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hGcZ(mLGw):\n try:\n mLGw = float(mLGw)\n return mLGw\n except (TypeError, ValueError, ArithmeticError):\n print('num cannot convert float')", "def gBe3(FGW3):\n try:\n return float(FGW3)\n except:\n return None", "def YKt2(BWXx):\n if isinstance(BWXx, byte...
[ "0.73543054", "0.72737646", "0.69768596", "0.68857676", "0.6842184", "0.6825797", "0.6803527", "0.67960054", "0.67713785", "0.67083603", "0.6685174", "0.6672326", "0.6530435", "0.6522776", "0.6509801", "0.645332", "0.64362097", "0.63992417", "0.6383451", "0.6377443", "0.63508...
0.68836313
4
Returns the x,y coordinates. Convert_to may be set to 'deg' or 'rad' for convenience.
def WrSe(YKHO, yNdq=False): if yNdq == 'rad': return (YKHO.x * 3.14159 / 180.0, YKHO.y * 3.14159 / 180.0) elif yNdq == 'deg': return (YKHO.x / 3.14159 * 180.0, YKHO.y / 3.14159 * 180.0) else: return (YKHO.x, YKHO.y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lEZU(YKHO, Xlvp, nfKA):\n if Xlvp not in range(YKHO.SIZE ** 2) or nfKA not in range(YKHO.SIZE ** 2):\n raise IndexError\n return (Xlvp // YKHO.SIZE, nfKA // YKHO.SIZE, Xlvp % YKHO.SIZE, nfKA % YKHO.SIZE)", "def Qa5U(YKHO):\n gk1y, ZCtM, iEqR = emgX.match(str(YKHO.ra)).groups()\n gk1y = int...
[ "0.64772433", "0.6372282", "0.6323273", "0.6280135", "0.622272", "0.6203903", "0.6132433", "0.61041605", "0.5989822", "0.59877276", "0.5943679", "0.59110785", "0.58790195", "0.58544147", "0.5844347", "0.58369446", "0.5829917", "0.5824859", "0.58105505", "0.58014715", "0.57902...
0.86445534
0
Return horizontal coordinate lists.
def qc7j(YKHO, ucxv=None): WKvO, LVAh = YKHO.vertices.vectors()[:2] if ucxv is not None and ucxv != YKHO.crs: WKvO, LVAh = HXvt((WKvO, LVAh), YKHO.crs, ucxv) return (WKvO, LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xrbk(WKvO, LVAh):\n a_7t = []\n if WKvO < 10:\n K2Yc = '0%d' % WKvO\n else:\n K2Yc = '%d' % WKvO\n if WKvO < 11:\n BRML = '0%d' % (WKvO - 1)\n else:\n BRML = '%d' % (WKvO - 1)\n if WKvO < 9:\n OGQ4 = '0%d' % (WKvO + 1)\n else:\n OGQ4 = '%d' % (WKvO...
[ "0.69605684", "0.65772927", "0.6456706", "0.6360796", "0.63079804", "0.629713", "0.62905097", "0.6247557", "0.6173838", "0.61535394", "0.6132974", "0.61020243", "0.60734004", "0.6065855", "0.6031467", "0.60191536", "0.60091174", "0.6005235", "0.5970228", "0.5965719", "0.59499...
0.57894325
32
Return vertices as an array.
def EBww(YKHO, ucxv=None): if ucxv is None or ucxv is YKHO.crs: return oyIN.array(YKHO.vertices) else: iXlf = [HXvt(Ty9i[:2], YKHO.crs, ucxv) for Ty9i in YKHO.vertices] return oyIN.array(iXlf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXlf(YKHO):\n try:\n return YKHO._vertices\n except:\n YKHO._vertices = [list(WKvO) for WKvO in YKHO.vertex_generator()]\n return YKHO._vertices", "def iXlf(YKHO) -> list[PvyL]:\n jzdc = PvyL(YKHO.array[..., 0, :], copy=False)\n Fg_i = PvyL(YKHO.array[..., 1, :], copy=False)\...
[ "0.7801905", "0.7706065", "0.7648946", "0.7648946", "0.7616571", "0.75711554", "0.746684", "0.7422286", "0.73918563", "0.7391455", "0.73860365", "0.73344654", "0.7330475", "0.7306448", "0.72132766", "0.7119052", "0.70518327", "0.7031308", "0.70257485", "0.7008367", "0.6925559...
0.71639323
15
Return a subset defined by indices.
def ddlI(YKHO, DNs0): iXlf = [YKHO.vertices[YRbF] for YRbF in DNs0] if hasattr(YKHO, 'data'): nPrm = TQJD(data=[YKHO.data._data[YRbF] for YRbF in DNs0], fields=YKHO.data.fields) return type(YKHO)(iXlf, properties=YKHO.properties, data=nPrm, crs=YKHO.crs) else: return type(YKHO)(iXlf,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X10C(YKHO, _0VL):\n return YKHO.extract_inds(_0VL)", "def vcn7(__n6, HLuM):\n _0VL = []\n for M2hS in HLuM:\n _0VL += __n6.get_article_indices(M2hS)\n return g9it(__n6, _0VL)", "def hcIl(WKvO, _0VL):\n return WKvO[_0VL]", "def pPmm(bS0K, vhpA):\n tpio = len(bS0K.shape)\n asser...
[ "0.88829166", "0.77078664", "0.74076796", "0.6919496", "0.6835811", "0.6803598", "0.666489", "0.64892817", "0.6437027", "0.6402139", "0.63902104", "0.6389309", "0.6382078", "0.6334556", "0.63263947", "0.6319853", "0.62865925", "0.62761927", "0.62483144", "0.6241995", "0.62119...
0.6556756
7
Returns an generator of adjacent line segments as coordinate tuples.
def DHQS(YKHO): return ((YKHO.vertices[YRbF], YKHO.vertices[YRbF + 1]) for YRbF in range(len(YKHO.vertices) - 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DHQS(YKHO):\n return ((YKHO.vertices[YRbF - 1], YKHO.vertices[YRbF]) for YRbF in range(len(YKHO.vertices)))", "def Nqlg(YKHO):\n for q2Xo in kgDL(YKHO.points):\n yield NTRO(q2Xo, shape=YKHO)", "def sJl3():\n yield (0, 0)\n EI5i = 0\n WKvO = 1\n LVAh = 0\n while True:\n EI...
[ "0.69940746", "0.6738684", "0.6601939", "0.6345121", "0.6317297", "0.623271", "0.6204825", "0.61664194", "0.6116063", "0.60578525", "0.60418737", "0.59932834", "0.59818065", "0.5974203", "0.5936784", "0.5908802", "0.5903839", "0.58623254", "0.58488476", "0.58351547", "0.58173...
0.7113118
0