query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Create indexes for onehot encoding of words in files
def rygB(L059=3): FAy1 = {} for ZfUD in nPrm + bPNP: l5Ny = ZfUD[1] for GIN8 in l5Ny.split(): if GIN8 not in FAy1: FAy1[GIN8] = 1 else: FAy1[GIN8] += 1 for ZfUD in nPrm + bPNP: l5Ny = ZfUD[1] for GIN8 in l5Ny.split(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h_Mo(eZ_W):\n with open(eZ_W, 'rb') as eHNT:\n nPrm = t2lc.load(eHNT)\n UrXw = [U6D_ for yv6U in nPrm for U6D_ in yv6U]\n KCHu = rLdf.Series(UrXw)\n aFAW = rLdf.get_dummies(KCHu)\n iYuW = list(aFAW.columns.values)\n aFAW = aFAW.as_matrix()\n d6pt = [int(oyIN.nonzero(rdlD)[0][0]) for...
[ "0.72269934", "0.7172977", "0.7092878", "0.70140094", "0.7006177", "0.6958129", "0.68929094", "0.6883725", "0.6753405", "0.67459834", "0.67108166", "0.6661835", "0.665553", "0.66527253", "0.66040045", "0.6597337", "0.6596344", "0.6595", "0.6594075", "0.6575801", "0.6546179", ...
0.0
-1
Computes an infinite sequence of primes through the use of a generator implementation of the Sieve of Eratosthenes. Borrowed from the wonderful people at code.activestate.com/recipes/117119sieveoferatosthenes/
def DzI6(): lWPh = {} vexM = 2 while True: if vexM not in lWPh: yield vexM lWPh[vexM * vexM] = [vexM] else: for XP5J in lWPh[vexM]: lWPh.setdefault(XP5J + vexM, []).append(XP5J) del lWPh[vexM] vexM += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I71t():\n yield 2\n yield 3\n yield 5\n yield 7\n yield 11\n yield 13\n hnFq = I71t()\n XP5J = next(hnFq) and next(hnFq)\n vexM, KwQv, exwG = (XP5J ** 2, {}, 13)\n while True:\n if exwG not in KwQv:\n if exwG < vexM:\n yield exwG\n else:...
[ "0.83578223", "0.81487036", "0.8138148", "0.7929372", "0.7893939", "0.77904487", "0.77848935", "0.7755452", "0.7732324", "0.77205414", "0.7703441", "0.7658516", "0.76568085", "0.7623791", "0.7592315", "0.75796866", "0.75740105", "0.753913", "0.7522949", "0.7459578", "0.744593...
0.69955885
66
Gets and returns an item from the internal cache by it's snowflake ID.
def NMoC(YKHO, id: Snowflake, /) -> Kt_s: return YKHO._cache.get(id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jRq6(Emd4, id):\n return Emd4.key_from_id(id).get()", "def NMoC(YKHO, id):\n if YKHO.doCache:\n if YKHO.cullCount > YKHO.cullFrequency:\n YKHO.cullCount = 0\n YKHO.cull()\n else:\n YKHO.cullCount = YKHO.cullCount + 1\n try:\n return YKHO....
[ "0.7315915", "0.72866637", "0.7269372", "0.7242421", "0.7050781", "0.70455027", "0.6973896", "0.697253", "0.69702214", "0.694793", "0.68642706", "0.68439615", "0.68351185", "0.68262", "0.67697126", "0.6720317", "0.6718022", "0.67034566", "0.6692049", "0.66629595", "0.6661424"...
0.8026195
0
Creates a copy of this class with a subset of the cache.
def vcn7(YKHO: C, lgNN: Callable[[T], bool], /) -> Nq1b: MRYu = {G1Hx: Ty9i for G1Hx, Ty9i in YKHO._cache.items() if lgNN(Ty9i)} return YKHO.__class__(YKHO._connection, MRYu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wyyA(YKHO):\n return YKHO.clone_into(ZYvt(YKHO._document, YKHO._collection))", "def jth9(YKHO):\n im04 = YKHO.__class__(YKHO.capacity)\n im04._mapping.update(YKHO._mapping)\n im04._queue = MUE7(YKHO._queue)\n return im04", "def jth9(YKHO):\n im04 = YKHO.__class__(YKHO.capacity)\n im04....
[ "0.6939524", "0.6550392", "0.654782", "0.6534213", "0.6472008", "0.62854147", "0.62833065", "0.6229477", "0.6223459", "0.6220969", "0.6195568", "0.61904126", "0.61669326", "0.61634743", "0.6158601", "0.6143378", "0.6138477", "0.6135931", "0.61336267", "0.6117604", "0.6114685"...
0.7280943
0
Takes a strictly increasing sorted list of elements and returns a binary search tree of minimum height.
def xp77(UqER): if not UqER: return None exwG = len(UqER) YRbF = exwG // 2 LFlW = UqER[:YRbF] x1fj = UqER[YRbF] _tIi = UqER[YRbF + 1:] assert len(LFlW) < len(UqER) assert len(_tIi) < len(UqER) return o7DN(x1fj, xp77(LFlW), xp77(_tIi))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YdNH(pNZh, yKcO):\n assert isinstance(pNZh, GzlH)\n J_Es = oRi_(list)\n J_Es[yKcO] = []\n gGCN = []\n bh_y = yKcO\n while len(J_Es) < len(pNZh):\n bo34.info('Last vert added to tree: %s', bh_y)\n QUCT = [(upAO, e2gD, bh_y) for e2gD, upAO in pNZh.adjacents(bh_y) if e2gD not in J_...
[ "0.65309733", "0.6473371", "0.6431506", "0.63332176", "0.6307613", "0.625414", "0.6249561", "0.61998856", "0.617361", "0.61666155", "0.61448807", "0.6090278", "0.60862947", "0.6045032", "0.6034795", "0.60296524", "0.6029423", "0.60141003", "0.60083413", "0.5987497", "0.598538...
0.5415918
82
Split list into n parts and return data with parts like rows
def tkQ_(jzdc, exwG): print('List: ' + str(jzdc)) G1Hx, r8hN = divmod(len(jzdc), exwG) return qw7D([jzdc[YRbF * G1Hx + min(YRbF, r8hN):(YRbF + 1) * G1Hx + min(YRbF + 1, r8hN)] for YRbF in range(exwG)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zIio(list, exwG):\n return XTiz.array_split(list, exwG)", "def I7IE(BmST, exwG):\n for YRbF in range(0, len(BmST), exwG):\n yield BmST[YRbF:YRbF + exwG]", "def kzv7(ybN4, exwG):\n return list(eHxA(ybN4, exwG))", "def AyNP(YKHO, bCES, exwG):\n for YRbF in range(0, len(bCES), exwG):\n ...
[ "0.754144", "0.74188215", "0.7413014", "0.7387413", "0.738422", "0.729671", "0.729671", "0.7285388", "0.72652894", "0.72627485", "0.7256879", "0.72561777", "0.72556436", "0.72517174", "0.72503114", "0.724806", "0.7247358", "0.72430027", "0.7241031", "0.72404736", "0.7238796",...
0.0
-1
Compute the left Riemannian logarithm from the identity of the Lie group of tangent vector tangent_vec. The left Riemannian logarithm has a special role since the left Riemannian logarithm of the canonical metric parameterizes the points.
def x4I6(YKHO, AU8u): AU8u = YKHO.group.regularize(AU8u) Lpd8 = YKHO.inner_product_mat_at_identity GgJf = Zxt2.linalg.sqrtm(oyIN.linalg.inv(Lpd8)) assert GgJf.shape == (YKHO.group.dimension,) * 2 RKD7 = oyIN.matmul(AU8u, GgJf.transpose()) RKD7 = YKHO.group.regularize_tangent_vec_at_identity(tang...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hH3x(YKHO, OHwH):\n OHwH = YKHO.group.regularize_tangent_vec_at_identity(tangent_vec=OHwH, metric=YKHO)\n return OHwH", "def hH3x(YKHO, OHwH):\n OHwH = YKHO.group.regularize_tangent_vec_at_identity(tangent_vec=OHwH, metric=YKHO)\n I7uO = i912.linalg.sqrtm(YKHO.metric_mat_at_identity)\n vb7U = ...
[ "0.69090414", "0.6879861", "0.68659574", "0.6597157", "0.65606993", "0.57668316", "0.57668316", "0.5735649", "0.5692136", "0.5676209", "0.5626578", "0.5626578", "0.5625889", "0.5537116", "0.5536431", "0.55206627", "0.5518346", "0.55178845", "0.538265", "0.5373102", "0.5311081...
0.65373284
5
Returns the title used in the main menu. This is the menu_title. If this field is empty, the title is returned.
def mau3(YKHO): return YKHO.menu_title or YKHO.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Upwb(YKHO) -> str:\n return YKHO._menubar.get_title()", "def lxkz(YKHO):\n return YKHO.title", "def Upwb(YKHO):\n leAC = YKHO.title\n if not leAC and YKHO.parent_id:\n leAC = YKHO.parent.title\n return leAC", "def Upwb(YKHO):\n leAC = YKHO.title\n if not leAC and YKHO.parent_i...
[ "0.81092966", "0.7978455", "0.76564974", "0.7650326", "0.76306087", "0.7628504", "0.7620303", "0.75630736", "0.7560156", "0.7512034", "0.7497407", "0.74840224", "0.7470721", "0.7470721", "0.7468344", "0.7468344", "0.7468344", "0.7468344", "0.7468344", "0.7454685", "0.7449323"...
0.8804217
0
Compute softmax values for each sets of scores in z.
def N93T(epBp): return oyIN.exp(epBp) / oyIN.sum(oyIN.exp(epBp), axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(epBp):\n N93T = oyIN.zeros(epBp.shape)\n r8hN = epBp.shape[1]\n for YRbF in range(0, r8hN):\n nWuZ = epBp[:, YRbF]\n KCHu = oyIN.exp(nWuZ - oyIN.max(nWuZ))\n KCHu = KCHu / oyIN.sum(KCHu)\n N93T[:, YRbF] = KCHu\n return N93T", "def N93T(YKHO, epBp):\n epBp -= oy...
[ "0.78820777", "0.7773432", "0.7564709", "0.75099784", "0.74390066", "0.741088", "0.7389634", "0.73738873", "0.72743994", "0.72743994", "0.71785194", "0.71126586", "0.70671743", "0.7047631", "0.7009588", "0.70027953", "0.6981975", "0.6960711", "0.69185734", "0.69128793", "0.68...
0.73918587
6
Detaches the NICs on each endpoint and destroys the connection
def JtSR(YKHO): YKHO.detach_link(0) YKHO.detach_link(1) YKHO.clean_up()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eIRW(YKHO):\n YKHO._connection = None\n YKHO._addresses = []\n for Td1T in YKHO._receivers:\n Td1T.close()", "def QpKq(YKHO):\n for HwSA in YKHO._servers.values():\n for N5z6 in HwSA.values():\n N5z6.detach()", "def HySU(YKHO):\n YKHO.outbound_sockets.cleanup()", "...
[ "0.694762", "0.6682369", "0.65752107", "0.6512313", "0.64997596", "0.6475375", "0.6424602", "0.6414029", "0.640698", "0.63632226", "0.6284236", "0.6270835", "0.62503606", "0.6243162", "0.6219832", "0.6209753", "0.61952454", "0.617556", "0.6152083", "0.6152053", "0.61504865", ...
0.0
-1
Get timestamp difference in hours from supplied time. If start time is provided but not end time, the time difference will be after the start time. If end time is provided but not start time, the time difference will be before the end time. If neither start or end time are provided, or both are incorrectly provided, th...
def pd6o(SWox=None, C7pn=None, wRam=None): C61p = IhAk.ONE_HOUR * wRam if SWox and (not C7pn): C7pn = SWox + C61p elif C7pn and (not SWox): SWox = C7pn - C61p else: C7pn = int(round(ITS7.time() * 1000)) SWox = C7pn - C61p return (SWox, C7pn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OSiL(YKHO, C7pn: Optional[datetime]=None) -> fCoM:\n if C7pn is None:\n if YKHO.start_time is None or YKHO.lunch_duration is None or YKHO.end_time is None:\n qacp = fCoM()\n else:\n qacp = YKHO.end_time - YKHO.start_time\n qacp -= YKHO.lunch_duration\n ...
[ "0.7104351", "0.7078132", "0.7047371", "0.68848485", "0.6738044", "0.6633714", "0.6515943", "0.64565927", "0.6442305", "0.6304747", "0.6303344", "0.6256284", "0.62427205", "0.6226645", "0.61603814", "0.6116464", "0.6100306", "0.6090436", "0.6086271", "0.60769695", "0.6043954"...
0.74119145
0
Get the list of supported performance categories.
def j6Gz(YKHO, tCtb=None): tCtb = YKHO.array_id if not tCtb else tCtb geh0 = YKHO.get_request(category=IhAk.PERFORMANCE, resource_level=IhAk.ARRAY, resource_type=IhAk.HELP, resource_type_id=tCtb, resource=IhAk.CATEGORIES) return geh0.get('categoryName', list()) if geh0 else list()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mkJf(YKHO, g2g3):\n azoT = YKHO.entity_attributes(g2g3)\n return azoT.get(_gDl, [])", "def LeZt(YKHO) -> x1iM[str]:\n return [Z9rn.category for Z9rn in YKHO.classifications]", "def LQuW(YKHO):\n pass", "def OtNG():\n WPdU = Wmti('/poiproxy/describeServices')\n return qQXR.loads(WPdU)['c...
[ "0.68536496", "0.67452705", "0.6715841", "0.6636904", "0.66215855", "0.6596855", "0.65901977", "0.6587988", "0.6585935", "0.65801656", "0.6551113", "0.65500194", "0.6533686", "0.65197444", "0.65109116", "0.64958805", "0.6489086", "0.64745724", "0.64515245", "0.64431334", "0.6...
0.6673228
3
Get a list of performance threshold categories.
def jVnd(YKHO, tCtb=None): tCtb = tCtb if tCtb else YKHO.array_id LeZt = YKHO.get_request(category=IhAk.PERFORMANCE, resource_level=IhAk.THRESHOLD, resource_type=tCtb, resource=IhAk.CATEGORIES) return LeZt.get(IhAk.THRESH_CAT, list()) if LeZt else list()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vddh(YKHO, Ghho, tCtb=None):\n tCtb = tCtb if tCtb else YKHO.array_id\n return YKHO.get_request(category=IhAk.PERFORMANCE, resource_level=IhAk.THRESHOLD, resource_type=IhAk.LIST, resource_type_id=tCtb, resource=Ghho)", "def pA6q(YKHO, cSAc, gwAu=0.034):\n awgu = YKHO._get_job_category_scores(cSAc)\n...
[ "0.7008093", "0.6842491", "0.6617999", "0.6461721", "0.6375236", "0.6360783", "0.6224381", "0.6215998", "0.6215134", "0.61825126", "0.6170644", "0.61680627", "0.6104664", "0.6048309", "0.604625", "0.6026781", "0.5977963", "0.59649545", "0.5948207", "0.59468234", "0.5900794", ...
0.80085903
0
List active initiators for the given array by time range Only active initiators from within the specified time range are returned. If no time range is provided, start and end times from array level are used.
def rmPW(YKHO, tCtb=None, SWox=None, C7pn=None): tCtb = YKHO.array_id if not tCtb else tCtb SWox, C7pn = YKHO.format_time_input(category=IhAk.ARRAY, array_id=tCtb, start_time=SWox, end_time=C7pn) ZVgY = YKHO.get_performance_key_list(category=IhAk.INIT, array_id=tCtb, start_time=SWox, end_time=C7pn) retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IUHC(DHEY):\n vELP = oyIN.min(DHEY[:, 0])\n PtQX = oyIN.max(DHEY[:, -1])\n if PtQX - vELP < 0:\n u54L = PtQX + 52 - vELP + 1\n jtyf = oyIN.linspace(vELP, 52, 52 - vELP + 1)\n V70B = oyIN.linspace(1, PtQX, PtQX)\n vC9B = oyIN.hstack((jtyf, V70B))\n else:\n u54L = P...
[ "0.6104416", "0.571994", "0.56543", "0.5630404", "0.52603203", "0.52190644", "0.5211617", "0.5211333", "0.5200687", "0.5157094", "0.50985014", "0.50867045", "0.5078493", "0.50521696", "0.5051353", "0.50407434", "0.5027584", "0.49503702", "0.49493197", "0.49393204", "0.4903468...
0.54925996
4
Convenience function for uniformly mangling longer strings.
def nmns(KCHu, tcVG, exwG=1, XP5J=1, hOKX=[]): tkFq = '' for Z9rn in KCHu: tkFq += nIop(Z9rn, tcVG, exwG, XP5J, hOKX) return tkFq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DUr7(mWFP: str, wzH_: int=12) -> str:\n mWFP = str(mWFP)\n if len(mWFP) <= wzH_:\n return mWFP\n return f'{mWFP[:wzH_]}...'", "def QM_R(KCHu: str, KLk8: int=32):\n if len(KCHu) > KLk8:\n KCHu = KCHu[:KLk8 - 3] + '...'\n return KCHu", "def WG1H(l5Ny: str, BcCR: int=75) -> str:\n...
[ "0.7022527", "0.6793486", "0.671457", "0.6701227", "0.66469914", "0.66383785", "0.66042763", "0.6569895", "0.6563686", "0.64539427", "0.6427088", "0.6412794", "0.640746", "0.6368176", "0.6363928", "0.6362146", "0.6339886", "0.6294289", "0.6288945", "0.6250945", "0.6246294", ...
0.0
-1
Download the pretrained VGG19 model if it's not already downloaded
def BsfS(ScQf, gIsw, zXTs): if Hy7s.path.exists(gIsw): print('VGG-19 pre-trained model is ready') return print('Downloading the VGG pre-trained model. This might take a while ...') gIsw, bGrB = uRlK.request.urlretrieve(ScQf, gIsw) wTv1 = Hy7s.stat(gIsw) if wTv1.st_size == zXTs: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZzw(h_xa):\n uYIj = 'vgg.zip'\n VyBP = Hy7s.path.join(h_xa, 'vgg')\n ZC1y = [Hy7s.path.join(VyBP, 'variables/variables.data-00000-of-00001'), Hy7s.path.join(VyBP, 'variables/variables.index'), Hy7s.path.join(VyBP, 'saved_model.pb')]\n _1RP = [rN5T for rN5T in ZC1y if not Hy7s.path.exists(rN5T)]\n ...
[ "0.747536", "0.747536", "0.747536", "0.7448703", "0.7228166", "0.7155217", "0.7147023", "0.7147023", "0.6922119", "0.6819773", "0.6819773", "0.6808622", "0.6805455", "0.67187536", "0.667814", "0.66742903", "0.6649635", "0.66212094", "0.6614682", "0.65285254", "0.6522138", "...
0.6908198
9
Destructor Calls AMI_Close with handle to AMI model memory. This obviates the need for the user to call the AMI_Close function explicitly, and guards against memory leaks, during PyLab command prompt operation, by ensuring that AMI_Close gets called automagically when the model goes out of scope.
def fFx9(YKHO): if YKHO._ami_mem_handle: YKHO._amiClose(YKHO._ami_mem_handle)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n RKD7.info('Deallocation interaction start')\n YKHO._native._unsafe.FreeInteractionDetector(YKHO._interaction_handle)\n RKD7.info('Deallocation interaction end')", "def fFx9(YKHO):\n YKHO.close()\n if YKHO.matlab_engine:\n YKHO.matlab_engine.quit()", "def fFx9(YKHO):\n ...
[ "0.71918213", "0.7122698", "0.70432144", "0.69037753", "0.6877228", "0.6852157", "0.68401307", "0.68017995", "0.67904973", "0.6785076", "0.66972023", "0.66898817", "0.66844654", "0.667224", "0.6651029", "0.66243905", "0.6595225", "0.6594087", "0.65847814", "0.6577693", "0.657...
0.79033834
0
Fetch the answers to the given question IDs. We use the official API for this.
def GGKz(Zbp4): nNXP = F5_H('stackoverflow') for yOAJ in eHxA(Zbp4, size=100): OjYf = nNXP.fetch('questions/{ids}/answers', ids=yOAJ, filter='withbody')['items'] for y1iN in OjYf: yield X4qQ(y1iN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WLjJ(JVBp):\n return uend.check_for_content(X4qQ.read_all(NCls.cur, JVBp), 'There are no Answers for this question')", "def hcRF(YKHO, eOtH, OMpl):\n return YKHO.client.get('api/v1/answer/1', headers={'token': eOtH})", "def rRTz(YKHO, QePW, _sei=None):\n bAls = Iofl(Y4Gy, pk=_sei)\n rRTz = Y4Gy...
[ "0.7090694", "0.702049", "0.691424", "0.6908871", "0.6682176", "0.64986193", "0.6487196", "0.6444216", "0.6372152", "0.6340594", "0.61987215", "0.6177149", "0.6156593", "0.60984206", "0.6056984", "0.6051772", "0.59980536", "0.5978709", "0.595363", "0.5943463", "0.5935121", ...
0.7958502
0
If there is no user with the given ID, ``None`` should be returned.
def LXYC(ryCd, NCls): assert ryCd.get_user(None) is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dcTW(Emd4, _eu6):\n MC83 = Emd4.get_by_id(_eu6)\n return MC83", "def TKWP(YKHO, uJjO):\n try:\n return mv1M.objects.get(pk=uJjO)\n except mv1M.DoesNotExist:\n return None", "def TKWP(YKHO, uJjO):\n try:\n return mv1M.objects.get(pk=uJjO)\n except mv1M.DoesNotExist:\n ...
[ "0.81563634", "0.8001241", "0.8001241", "0.8001241", "0.79433364", "0.7890537", "0.78802985", "0.7831075", "0.77675134", "0.775902", "0.77264386", "0.76926064", "0.76926064", "0.76926064", "0.7649011", "0.7635836", "0.75871533", "0.7576481", "0.75685483", "0.7562679", "0.7520...
0.0
-1
test email in Users object
def UN1K(YKHO): cHyp = YJv1.objects.all() YKHO.assertEqual(cHyp[0].email, 'mmintttt@gmail.com')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHnx(YKHO):\n YKHO.email = YKHO.login_data['user']['email']\n D3lj = YKHO.email.__str__()\n YKHO.assertIn(D3lj, 'daniel@test.com')", "def daQg(YKHO):\n YKHO.assertEqual(YKHO.user_2.email, 'sally@example.com')", "def vBJl(YKHO):\n CBIr = lYUQ()\n YKHO.assertEqual(CBIr.get_email, 'example_u...
[ "0.7857968", "0.7832098", "0.7810737", "0.76676697", "0.7664914", "0.746818", "0.741755", "0.74076504", "0.7397826", "0.7323827", "0.7295383", "0.72940093", "0.728315", "0.7271847", "0.7265348", "0.723599", "0.7217081", "0.7196987", "0.71785367", "0.7178326", "0.71760035", ...
0.8019137
0
Sets the bucket_type_hash of this DestinyDefinitionsDestinyItemInventoryBlockDefinition.
def ZOpH(YKHO, ZOpH): YKHO._bucket_type_hash = ZOpH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T6o_(YKHO, T6o_):\n YKHO._recovery_bucket_type_hash = T6o_", "def KHO8(YKHO, KHO8):\n YKHO._bucket_hash = KHO8", "def jTYS(YKHO, jTYS):\n YKHO._tier_type_hash = jTYS", "def FVO4(YKHO, FVO4):\n YKHO._item_hash = FVO4", "def FVO4(YKHO, FVO4):\n YKHO._item_hash = FVO4", "def V31Y(YKHO, V3...
[ "0.6186217", "0.5809978", "0.57108945", "0.5540747", "0.5540747", "0.5371405", "0.5269363", "0.52245814", "0.5220835", "0.5165926", "0.50423425", "0.504067", "0.49778962", "0.4969589", "0.4969589", "0.49383143", "0.49305287", "0.49305287", "0.49103138", "0.4866673", "0.486398...
0.72835827
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86416155", "0.8510352", "0.78545547", "0.77443707", "0.77117187", "0.7697595", "0.76603293", "0.7638324", "0.76217484", "0.7607743", "0.7607743", "0.7607743", "0.76074046", "0.75997984", "0.7585864", "0.7583017", "0.75715595", "0.75687325", "0.7539626", "0.7539626", "0.752...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Get the Byte Array from the image.
def xrrh(YKHO): IOFD = YKHO.myImage.tobytes() return IOFD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vVXr(YKHO):\n if YKHO._imageArray is None:\n YKHO._readImageData()\n return YKHO._imageArray", "def lk5t(YKHO):\n geh0 = G4JS.get(YKHO.url)\n LNo8 = hnIv.open(aKaX(geh0.content)).resize((64, 64))\n VOC_ = oyIN.array(LNo8)\n return VOC_", "def y57E(YKHO, zyV2):\n IcBZ = xDSY.Byte...
[ "0.75267446", "0.7450409", "0.73040354", "0.7109189", "0.7062561", "0.70524305", "0.7051147", "0.70052457", "0.6940188", "0.6920667", "0.69186103", "0.68926436", "0.6882406", "0.6869462", "0.6826137", "0.68208474", "0.67909306", "0.677137", "0.6739349", "0.6714717", "0.670264...
0.7419645
2
Transform a given document to a list of tokens
def wr3U(YKHO, A97Q): S7_F = YKHO.build_doc_cleaner() IsXI = YKHO.build_tokenizer() A97Q = S7_F(A97Q) V22M = IsXI(A97Q) return V22M
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def thS1(A97Q: Doc) -> iu5r[_J2v]:\n for w2fL in A97Q:\n yield w2fL", "def pLB8(A97Q: Doc) -> x1iM[x1iM[str]]:\n if A97Q.is_sentenced:\n return [[eOtH.text for eOtH in _dZy] for _dZy in A97Q.sents]\n else:\n return [[eOtH.text for eOtH in A97Q]]", "def okGC(A97Q: SpacyDoc) -> x1iM...
[ "0.7816106", "0.77595824", "0.7528062", "0.7509173", "0.7402894", "0.73731565", "0.7327501", "0.72642475", "0.7258978", "0.72284013", "0.72258174", "0.7126507", "0.71126425", "0.71001786", "0.7087863", "0.7067292", "0.70597464", "0.70433235", "0.7027914", "0.70031565", "0.699...
0.72141904
11
Transform a given document to a list of tokens
def SZFh(YKHO, EcVT, vf0w=True): S7_F = YKHO.build_doc_cleaner() IsXI = YKHO.build_tokenizer() p2dk = YKHO.build_word_transformer() X0Yi = [] Pfcj = [] mJK_ = [] if vf0w: AQeB = None assert isinstance(EcVT, list), 'You should pass a list' for r8hN, A97Q in enumerate(E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def thS1(A97Q: Doc) -> iu5r[_J2v]:\n for w2fL in A97Q:\n yield w2fL", "def pLB8(A97Q: Doc) -> x1iM[x1iM[str]]:\n if A97Q.is_sentenced:\n return [[eOtH.text for eOtH in _dZy] for _dZy in A97Q.sents]\n else:\n return [[eOtH.text for eOtH in A97Q]]", "def okGC(A97Q: SpacyDoc) -> x1iM...
[ "0.7816123", "0.7759257", "0.7529095", "0.7508179", "0.74012864", "0.73724794", "0.7325706", "0.72639143", "0.7258443", "0.7228052", "0.7226267", "0.72132385", "0.7126072", "0.7112353", "0.7099403", "0.7087719", "0.7066672", "0.7060006", "0.70426244", "0.702759", "0.70041937"...
0.0
-1
Return the difference between wii average with current lam value and the target one
def FaEF(EhIg, map, pan_): map.set_lam(EhIg) _mSQ, T5L8 = wT46(map, 1) return T5L8 - pan_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M_GK(YKHO):\n return YKHO.average(YKHO.delta_mat)", "def i3ep(YKHO):\n N77f = ZylS.reduce_mean((YKHO.prediction - YKHO.target) ** 2)\n ZylS.summary.scalar('loss', N77f)\n return N77f", "def rwYl(LVAh, UShr, yzQ0):\n tTpl = LVAh - UShr.dot(yzQ0)\n return oyIN.mean(oyIN.abs(tTpl))", "def ...
[ "0.6503869", "0.64017284", "0.6389509", "0.6370084", "0.6353892", "0.6316552", "0.6295085", "0.62436503", "0.6182442", "0.61797494", "0.61558", "0.614427", "0.614427", "0.61088514", "0.6104137", "0.6082506", "0.6058183", "0.6047972", "0.60281825", "0.6022275", "0.6016391", ...
0.0
-1
Estimate the EBSDmap sigma value
def Fnai(map): Md2Z = oyIN.zeros((map.w, map.h)) fVeJ = map.patterns[map.pat_h5_path][0].shape[0] S6Fl = i2Ac('Compute sigma...', max=map.w * map.h) for YRbF in range(0, map.w): for r845 in range(0, map.h): VtCk = oyIN.nan for FxX7 in [-1, 0, 1]: for PCpl ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTkW(YKHO):\n return uPB4(YKHO._latitude._a, YKHO._latitude._b)[1]", "def cnUa(WKvO, owMf):\n znmT = 1 - owMf ** 2\n return oyIN.sqrt(WKvO[0] ** 2 + znmT * (WKvO[1] ** 2 + WKvO[2] ** 2))", "def BbRA(Csk6, kTwQ=0.25):\n return (Csk6 - 1) * MpoN(Csk6, kTwQ, 2) + MpoN(Csk6, kTwQ, 1)", "def WTkW(...
[ "0.7237331", "0.69289446", "0.68684137", "0.68544877", "0.68351376", "0.68141073", "0.6760006", "0.6755096", "0.67394286", "0.67361236", "0.67333263", "0.6680448", "0.66707355", "0.66707355", "0.6644988", "0.6636871", "0.6626815", "0.6617897", "0.6617897", "0.6611893", "0.660...
0.64791816
30
Filter queryset so that user's only have read access on objects they have created
def k66M(YKHO): umWR = super().get_queryset() if not YKHO.request.user.is_superuser: umWR = umWR.filter(user=YKHO.request.user) return umWR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fRXs(YKHO, SR0I):\n return SR0I.filter(owner=YKHO.request.user)", "def rNE0(YKHO):\n return super(MM7r, YKHO).get_queryset() if YKHO.has_acting_superuser else YKHO.get_auth_queryset(YKHO.auth_object)", "def k66M(YKHO) -> ZYvt:\n SR0I = super().get_queryset()\n CBIr = YKHO.request.user\n if C...
[ "0.7720119", "0.7238789", "0.7225376", "0.72193825", "0.7089052", "0.7008835", "0.70019126", "0.70019126", "0.69102854", "0.69097936", "0.6881436", "0.6864928", "0.68511313", "0.68511313", "0.68511313", "0.68511313", "0.68511313", "0.68511313", "0.68511313", "0.68511313", "0....
0.67946583
24
Uses get() to return an object or None if the object does not exist. klass may be a Model, Manager, or QuerySet object. All other passed arguments and keyword arguments are used in the get() query.
def rTS8(rV9y, *qIxc, **B2fa): SR0I = gWcE(rV9y) try: return SR0I.get(*qIxc, **B2fa) except SR0I.model.DoesNotExist: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rTS8(rV9y, *qIxc, **B2fa):\n SR0I = gWcE(rV9y)\n try:\n return SR0I.get(*qIxc, **B2fa)\n except SR0I.model.DoesNotExist:\n return None", "def GyR0(rV9y, *qIxc, **B2fa):\n SR0I = gWcE(rV9y)\n try:\n return SR0I.get(*qIxc, **B2fa)\n except SR0I.model.DoesNotExist:\n ...
[ "0.77018875", "0.7580355", "0.7580355", "0.7580355", "0.74767137", "0.7099703", "0.6831375", "0.65657544", "0.6540379", "0.65053666", "0.64794093", "0.6469859", "0.6409024", "0.6377965", "0.6337117", "0.6312969", "0.6299512", "0.6242034", "0.6194442", "0.61911225", "0.6131668...
0.7612162
1
Get only the one host with the special tag to find on it.
def E40B(YKHO): DLB7 = YKHO.added_hosts.copy() xGGY = [DLB7[0]] BWZt = f'{E1Yh}?tags=SPECIAL/tag=ToFind' KMCF = YKHO.get(BWZt, 200) YKHO._compare_responses(xGGY, KMCF, BWZt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eeuo(YKHO):\n DLB7 = YKHO.added_hosts.copy()\n xGGY = [DLB7[2]]\n BWZt = f'{E1Yh}?tags=key4=val4'\n KMCF = YKHO.get(BWZt, 200)\n YKHO._compare_responses(xGGY, KMCF, BWZt)", "def pkNq(YKHO):\n DLB7 = YKHO.added_hosts.copy()\n xGGY = [DLB7[2]]\n BWZt = f'{E1Yh}?tags=key5'\n KMCF = YK...
[ "0.6723634", "0.65465736", "0.63110244", "0.6280741", "0.62425894", "0.620266", "0.6200549", "0.6175223", "0.60512006", "0.59964186", "0.5983073", "0.5965636", "0.59284294", "0.5926609", "0.58662975", "0.58612686", "0.58524024", "0.58332896", "0.58208674", "0.5788026", "0.577...
0.73645604
0
Get only the one host with the special tag to find on it.
def mWFl(YKHO): DLB7 = YKHO.added_hosts.copy() xGGY = [DLB7[0], DLB7[1]] BWZt = f'{E1Yh}?tags=NS1/key1=val1&order_by=updated&order_how=ASC' KMCF = YKHO.get(BWZt, 200) YKHO._compare_responses(xGGY, KMCF, BWZt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E40B(YKHO):\n DLB7 = YKHO.added_hosts.copy()\n xGGY = [DLB7[0]]\n BWZt = f'{E1Yh}?tags=SPECIAL/tag=ToFind'\n KMCF = YKHO.get(BWZt, 200)\n YKHO._compare_responses(xGGY, KMCF, BWZt)", "def Eeuo(YKHO):\n DLB7 = YKHO.added_hosts.copy()\n xGGY = [DLB7[2]]\n BWZt = f'{E1Yh}?tags=key4=val4'\...
[ "0.7364826", "0.6724807", "0.6547643", "0.63120264", "0.6280928", "0.6242944", "0.62020594", "0.62007433", "0.6176009", "0.60513085", "0.59974253", "0.5983284", "0.5965628", "0.5928714", "0.5926576", "0.58672905", "0.58610994", "0.58535147", "0.5833027", "0.5820468", "0.57879...
0.5464354
50
Returns the list of nodes with the highest value (e.g. highest degree).
def fLdT(IpfY): Ox3e = [] eB_n = max(IpfY) for Q6kx in range(len(IpfY)): if IpfY[Q6kx] == eB_n: Ox3e.append(Q6kx) return Ox3e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K4pS(pNZh, _IXK):\n nCTO = sorted(_IXK.items(), key=seET.itemgetter(1), reverse=True)\n return nCTO[0][0]", "def kv_p(YKHO):\n if YKHO.is_empty():\n return\n if YKHO.is_leaf():\n return YKHO.keys[-1]\n else:\n return YKHO.children[-1].find_greatest()", "def HFJz(YKHO):\n...
[ "0.7177486", "0.70789635", "0.68896943", "0.68746305", "0.6868845", "0.6755337", "0.67235863", "0.6708787", "0.66998255", "0.6689272", "0.6689272", "0.66849446", "0.66306067", "0.6608827", "0.6595689", "0.6564953", "0.6563656", "0.6535187", "0.6526648", "0.6525416", "0.652095...
0.78913325
0
Cleans a single sentence
def QrZ9(l5Ny): l5Ny = l5Ny.translate(vIwR.punctuation) l5Ny = l5Ny.lower().split() ntLm = set(di0c.words('english')) l5Ny = [yzQ0 for yzQ0 in l5Ny if not yzQ0 in ntLm and len(yzQ0) >= 3] l5Ny = ' '.join(l5Ny) l5Ny = ZbWC.sub("[^A-Za-z0-9^,!.\\/'+-=]", ' ', l5Ny) l5Ny = ZbWC.sub("what's", 'w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JtYA(_dZy):\n _dZy = _dZy.replace('\\\\n', ' ')\n pC3l = list(vIwR.punctuation)\n FCJj = list(vIwR.punctuation)\n FCJj.remove('-')\n gYb3 = [FCJj[6], FCJj[-5]]\n sHKH = [WKvO for WKvO in FCJj if WKvO not in gYb3]\n EUA3 = ''.join(list(map(lambda WKvO: WKvO if WKvO not in gYb3 else '', _dZy...
[ "0.7425291", "0.74004203", "0.7361366", "0.719684", "0.71568114", "0.71401733", "0.7041351", "0.7029716", "0.70127755", "0.7009466", "0.6973459", "0.6972406", "0.6955873", "0.6954027", "0.6951536", "0.69418395", "0.694023", "0.6908198", "0.68956214", "0.6862653", "0.68545693"...
0.0
-1
Retrieve a list of votes for this poll
def ne5b(YKHO): return lFQG.objects.filter(poll=YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ne5b(YKHO, **B2fa):\n return YKHO._get_list('votes', **B2fa)", "def ne5b(YKHO) -> x1iM[int]:\n return YKHO._votes", "def ne5b(YKHO):\n return YKHO._votes", "def NMoC(YKHO):\n if _Kb1():\n QXoP.abort(403, 'Admin has no votes')\n return (ghvY(IxqR(Oa1e.current_user.votes), Wyiq), 200)...
[ "0.83583754", "0.75885504", "0.7419286", "0.73556215", "0.7347601", "0.709047", "0.6875297", "0.67700094", "0.64711946", "0.646746", "0.6465514", "0.6418873", "0.6341631", "0.6337609", "0.62909067", "0.62690187", "0.6231752", "0.61920565", "0.61784816", "0.6156489", "0.611965...
0.8265885
1
Return the total number of votes
def zeRw(YKHO): return YKHO.up_votes + YKHO.down_votes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zeRw(YKHO):\n a1PO = 0\n for Z9rn in YKHO.choice_set.all():\n a1PO += Z9rn.votes\n return a1PO", "def C3Q8(YKHO):\n return YKHO.candidates.select(FYKK.Sum(N3tN.vote_count)).scalar()", "def _uUq(YKHO) -> int:\n return YKHO.ups + YKHO.downs", "def pjP9(YKHO, YEnM):\n wjRY = sum([in...
[ "0.8431315", "0.82942754", "0.8250804", "0.7985434", "0.7943679", "0.776634", "0.76499623", "0.7646798", "0.75767314", "0.7509398", "0.74712497", "0.7306251", "0.7214308", "0.7184338", "0.71333385", "0.70999175", "0.70820063", "0.7061544", "0.70600325", "0.7059395", "0.704313...
0.8413829
1
Create and configure the app. Application factory. Any configuration, registration, and other setup the application needs will happen inside the function, then the application will be returned.
def LUif(zmu8=None): P4t4 = L2w0(__name__, instance_relative_config=True) P4t4.config.from_mapping(SECRET_KEY='dev', DATABASE=Hy7s.path.join(P4t4.instance_path, 'flask-test.db')) if zmu8 is None: P4t4.config.from_pyfile('config.py', silent=True) else: P4t4.config.from_mapping(zmu8) t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object('config')\n P4t4.config.setdefault('SQLALCHEMY_TRACK_MODIFICATIONS', True)\n JawI(P4t4)\n uX8k(P4t4)\n WeUq(P4t4)\n OZe6(P4t4)\n U1UA(P4t4)\n U3oc(P4t4)\n return P4t4", "def Dib3(kO5c=False):\n lEZe()\n EsWC(P4t4)\n...
[ "0.8302984", "0.82865965", "0.8256716", "0.8084992", "0.80527514", "0.8014355", "0.7989974", "0.7980162", "0.79666716", "0.78986824", "0.78973484", "0.7896913", "0.788074", "0.7874003", "0.78630286", "0.7833355", "0.7828135", "0.78226036", "0.78096414", "0.77941465", "0.77803...
0.0
-1
return all game ids where all questions are smaller then the given length
def fGYT(u54L): v7BA = list() for Bnkd in HGCR.get_game_ids(): SkC9 = True for vexM in HGCR.get_questions(Bnkd): if len(vexM.split()) > u54L: SkC9 = False break if SkC9: v7BA.append(Bnkd) return v7BA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QJWG(jWe2: List[str], Lx0h: int, BcCR: int) -> AzJI[x1iM[str], x1iM[str]]:\n Qnv5, jZIt = ([], [])\n for YRbF in range(0, len(jWe2), 2):\n xDcj = jWe2[YRbF]\n ANfV = jWe2[YRbF + 1]\n dgWg = len(xDcj.split())\n EC7t = len(ANfV.split())\n if Lx0h <= dgWg <= BcCR and Lx0h ...
[ "0.69458795", "0.63251483", "0.6042598", "0.58297426", "0.5623688", "0.5544231", "0.5522031", "0.5475556", "0.5456722", "0.544041", "0.5411264", "0.5404793", "0.5391557", "0.5377312", "0.53749245", "0.53736824", "0.53709346", "0.5358924", "0.5349607", "0.5330793", "0.5330173"...
0.83076626
0
Creates a StructuredTensor with a length 1 axis inserted at index `axis`. This is an implementation of tf.expand_dims for StructuredTensor. Note that the `axis` must be less than or equal to rank.
def wmvz(input, jDK_=None, mWFP=None, tpio=None): jDK_ = ni8q.deprecated_argument_lookup('axis', jDK_, 'dim', tpio) return v1JR(input, jDK_, name=mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v1JR(aevO, jDK_, mWFP=None):\n jDK_ = _WqI.get_positive_axis(jDK_, aevO.rank + 1, axis_name='axis', ndims_name='rank(st)')\n with IPme.name_scope(mWFP, 'ExpandDims', [aevO, jDK_]):\n EZMw = {G1Hx: _WqI.expand_dims(Ty9i, jDK_) for G1Hx, Ty9i in aevO._fields.items()}\n EZd9 = aevO.shape[:jDK_...
[ "0.7683152", "0.71568406", "0.7084707", "0.7036526", "0.6679413", "0.6465409", "0.6441615", "0.6164108", "0.6157065", "0.61478084", "0.61235535", "0.602206", "0.59448195", "0.5892798", "0.5863699", "0.5815112", "0.57635415", "0.575642", "0.57370466", "0.57258135", "0.5700286"...
0.6081355
11
Creates a StructuredTensor with a length 1 axis inserted at index `axis`. This is an implementation of tf.expand_dims for StructuredTensor. Note that the `axis` must be less than or equal to rank.
def KxAP(input, jDK_, mWFP=None): return v1JR(input, jDK_, name=mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v1JR(aevO, jDK_, mWFP=None):\n jDK_ = _WqI.get_positive_axis(jDK_, aevO.rank + 1, axis_name='axis', ndims_name='rank(st)')\n with IPme.name_scope(mWFP, 'ExpandDims', [aevO, jDK_]):\n EZMw = {G1Hx: _WqI.expand_dims(Ty9i, jDK_) for G1Hx, Ty9i in aevO._fields.items()}\n EZd9 = aevO.shape[:jDK_...
[ "0.7684786", "0.71589434", "0.70852965", "0.7036516", "0.6680052", "0.6467305", "0.6441865", "0.61671185", "0.61586124", "0.6149658", "0.61252964", "0.60827714", "0.5943449", "0.58920455", "0.5863254", "0.5813377", "0.576397", "0.5760076", "0.5735544", "0.572943", "0.569889",...
0.60234827
12
Creates a StructuredTensor with a length 1 axis inserted at index `axis`. This is an implementation of tf.expand_dims for StructuredTensor. Note that the `axis` must be less than or equal to rank.
def v1JR(aevO, jDK_, mWFP=None): jDK_ = _WqI.get_positive_axis(jDK_, aevO.rank + 1, axis_name='axis', ndims_name='rank(st)') with IPme.name_scope(mWFP, 'ExpandDims', [aevO, jDK_]): EZMw = {G1Hx: _WqI.expand_dims(Ty9i, jDK_) for G1Hx, Ty9i in aevO._fields.items()} EZd9 = aevO.shape[:jDK_] + (1,) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wmvz(ezWE: array_like, jDK_: int) -> KvM0:\n return oyIN.expand_dims(ezWE, axis=jDK_)", "def wmvz(vhpA, jDK_=None, qC1Y=1):\n vhpA = wVie(vhpA)\n UsDX = u54L(ROpF(vhpA))\n jDK_ = Q3Ge(UsDX == 0, lambda: 0, lambda: (UsDX + jDK_) % UsDX + (jDK_ < 0))\n EZd9 = ENFq((ROpF(vhpA)[:jDK_], [1] * qC1Y,...
[ "0.7157974", "0.7084311", "0.7035432", "0.6679998", "0.6466357", "0.6441813", "0.61652577", "0.61582524", "0.61489236", "0.6124665", "0.60822695", "0.6022692", "0.59440625", "0.5893173", "0.5863001", "0.5813108", "0.57624215", "0.5758643", "0.5734997", "0.5727661", "0.5698296...
0.7685486
0
Up sampling image by repeat.
def COiQ(LNo8, BURA, C2f8): H2v2, TVTK = LNo8.shape[:2] YTKZ = int(BURA / TVTK) jCkM = int(C2f8 / H2v2) return oyIN.repeat(oyIN.repeat(LNo8, YTKZ, axis=1), jCkM, axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vMFs(LNo8, ohsl):\n YVa6 = LNo8.repeat(ohsl, axis=0).repeat(ohsl, axis=1)\n return YVa6", "def ZQBP(VXjJ, Fg_i):\n sCAl = oyIN.repeat(VXjJ, Fg_i, axis=0)\n sCAl = oyIN.repeat(sCAl, Fg_i, axis=1)\n return sCAl", "def ZQBP(YKHO, exwG):\n YKHO._upsample(lambda Csk6: exwG)", "def ZQBP(WKvO,...
[ "0.72794056", "0.71945465", "0.7098383", "0.6986159", "0.69005436", "0.68402743", "0.6689414", "0.66454655", "0.65867966", "0.6569197", "0.6506216", "0.6501022", "0.64199656", "0.64081174", "0.63881034", "0.63412625", "0.6335447", "0.6324034", "0.6313086", "0.6249639", "0.622...
0.710286
2
Generic 404 handler which returns payload for JSON response
def IG0E(QePW): wV1L = KVWQ(QePW.path) Cp_c = f'Path {wV1L.path} does not exist!' return {'message': Cp_c}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dBGf(tTpl):\n return (pz3A({'error': 'Not found'}), 404)", "def Fu9i(bGrB: HTTPException) -> oGir:\n geh0 = Yxsy('')\n geh0.mimetype = 'application/json'\n geh0.status_code = 404\n return geh0", "def eJkH(XObx):\n return dict(err=XObx)", "def IdVU(Wehb):\n return Yxsy(pz3A({'error': ...
[ "0.77172494", "0.7668131", "0.75997156", "0.7583095", "0.7544334", "0.75372165", "0.7530257", "0.7512077", "0.74961394", "0.7493587", "0.7459517", "0.74555963", "0.74533886", "0.74394494", "0.7402718", "0.7378141", "0.7375467", "0.7363219", "0.7355798", "0.73416376", "0.73145...
0.0
-1
Index controller which returns an HTML string for the HTML response parser
def d6pt(QePW): Lul6 = _Ibt(KVWQ(QePW.path).query) IVwn = None if 'favoriteTree' in Lul6: IVwn = Lul6['favoriteTree'][0] if IVwn: _R2e = f"<html><head></head><body><h1>It's nice to know that your favorite tree is a {IVwn}</h1></body></html>" else: _R2e = f'<html><head></head>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return CfgF(open('index.html').read())", "def NMoC(YKHO):\n return YKHO.render2('index.html')", "def d6pt(YKHO):\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n bo34.info('Request@/index.htm...
[ "0.7695027", "0.7654022", "0.7652451", "0.75967765", "0.759337", "0.7587518", "0.7579033", "0.7562093", "0.7562093", "0.755522", "0.7554435", "0.7532374", "0.75119746", "0.75119746", "0.75119746", "0.75119746", "0.75119746", "0.75119746", "0.7511895", "0.7491528", "0.7490974"...
0.0
-1
Return a SQLAlchemy engine with Postgres connection parameters
def eHpk(): p9bx = GPtr['database'] if p9bx.get('password') is not None: bD7m = 'postgresql://{user}:{password}@{host}/{dbname}'.format(user=p9bx['user'], password=p9bx['password'], host=p9bx['host'], dbname=p9bx['dbname']) else: bD7m = 'postgresql://{user}@{host}/{dbname}'.format(user=p9bx[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWOV():\n bD7m = 'postgresql://{user}:{passwd}@{host}:{port}/{db}'.format(user=Hy7s.environ.get('POSTGRES_USER'), passwd=Hy7s.environ.get('POSTGRES_PASSWORD'), host=Hy7s.environ.get('PGHOST'), port=5432, db=Hy7s.environ.get('PGDATABASE'))\n eHpk = y2U9(bD7m)\n return eHpk", "def IAU5(Emd4, **NArs):\...
[ "0.8025275", "0.75875473", "0.7503483", "0.7459781", "0.7459781", "0.74392265", "0.74304336", "0.74304336", "0.74304336", "0.7429416", "0.7410182", "0.73774314", "0.7373696", "0.73524606", "0.73524606", "0.73524606", "0.7347002", "0.73098177", "0.730064", "0.7285413", "0.7262...
0.79583466
1
Compute the average lifetime of an Item
def f0Fn(C3ST): Aofo = 0 if not C3ST.item_schedule.agents_by_type[kLxY] == []: for ZfUD in C3ST.item_schedule.agents: Aofo = Aofo + ZfUD.lifetime return Aofo / len(C3ST.item_schedule.agents) else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hpKj(YKHO) -> int:\n return YKHO._average_lifespan", "def Q3N4():\n return 2", "def xZkv():\n return bBLp / Icon", "def nFpU(xRqF):\n _Bk3 = []\n for QyVM in xRqF:\n if QyVM['alive']:\n continue\n RZkk = dtWV(QyVM['birthday'])\n HvUb = dtWV(QyVM['death'])\n ...
[ "0.66631985", "0.65977335", "0.6332135", "0.6298668", "0.6247204", "0.6238585", "0.6188364", "0.6185804", "0.609824", "0.6096123", "0.60950994", "0.6085435", "0.6042324", "0.602177", "0.59941876", "0.59747356", "0.59650016", "0.59257764", "0.5921046", "0.5915338", "0.5892166"...
0.8129421
0
Yield one InstalledCompiler for each role filled by any compiler in this installation.
def Vs4Q(YKHO): for LmAn in eUWX.all(): try: yield YKHO.preferred(LmAn) except KeyError: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n yield YKHO.c\n yield YKHO.cxx\n yield YKHO.fortran\n return", "def eaSC(*qIxc):\n return IOEi.get_compilers(*qIxc)", "def r1Jg():\n CJNk = [bxSo.from_compiler_pair('/usr/bin/gcc', '/usr/bin/g++'), bxSo.from_compiler_pair('/usr/bin/clang', '/usr/bin/clang++')]\n for pTf5 i...
[ "0.58721286", "0.57269305", "0.56805414", "0.55405694", "0.5524076", "0.54330856", "0.5419188", "0.54053515", "0.5390169", "0.5388277", "0.53714305", "0.53232175", "0.52301323", "0.5148514", "0.5112144", "0.5096442", "0.5079586", "0.50375235", "0.50302595", "0.5022981", "0.49...
0.7085694
0
Converts column arguments to integers. Accepts columns in form of INT, or the range INTINT. Returns a list of one or more integers.
def Vltj(vIwR): iVRZ = vIwR.strip(',') if '-' in iVRZ: Kvnv = map(int, iVRZ.split('-')) if Kvnv[0] > Kvnv[1]: Kvnv[0] += 1 return [YRbF for YRbF in range(*Kvnv[::-1])][::-1] Kvnv[1] += 1 return [YRbF for YRbF in range(*Kvnv)] if ',' in iVRZ: ZL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MewW(*qIxc):\n return [int(d7pR) for d7pR in qIxc]", "def G4Fn(jQ3Z, ZLJ_):\n for fvDH in ZLJ_:\n jQ3Z[fvDH] = jQ3Z[fvDH].astype(int)\n return jQ3Z", "def BIjY(usx6=5):\n fvDH = []\n for bGrB in Ni9Y(usx6):\n rdlD = int(HwRy.stdin.readline())\n fvDH.append(rdlD)\n ret...
[ "0.7295677", "0.6765507", "0.65784687", "0.64002657", "0.64002657", "0.6374601", "0.61596644", "0.61471945", "0.61367476", "0.61269337", "0.6125479", "0.6080212", "0.60725987", "0.6067194", "0.6031035", "0.6030222", "0.6030222", "0.6006108", "0.60016644", "0.59881765", "0.597...
0.6836619
1
Returns the name and the type of the given class field. The cursor must be of kind CursorKind.FIELD_DECL
def SUF7(N1p7): type = None K3M_ = list(N1p7.get_children()) if len(K3M_) == 0: type = N1p7.type.spelling else: for EqBn in K3M_: if EqBn.kind == J9MF.cindex.CursorKind.TEMPLATE_REF: type = EqBn.spelling elif EqBn.kind == J9MF.cindex.CursorKind.TYP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z_V1(Jyyj):\n vF49 = Jyyj['type']\n if vF49 == 'string':\n return 'char *'\n if vF49 == 'integer':\n return 'int '\n if vF49 == 'object':\n return 'Cog{} *'.format(Jyyj['class'])\n if vF49 == 'enum':\n return 'Cog{} '.format(Jyyj['class'])\n raise ValueError('add a...
[ "0.71177524", "0.69595325", "0.6909577", "0.6679878", "0.6642574", "0.65652347", "0.65517205", "0.65302914", "0.6477832", "0.6383768", "0.6367175", "0.63042766", "0.6304021", "0.61722827", "0.6160708", "0.6060012", "0.60199654", "0.60199654", "0.60119355", "0.60030574", "0.59...
0.83025694
0
Build the Damage Delegate
def FCbF(YKHO): YKHO.target = gpvX() YKHO.delegate = W7fR(None, 0, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VBF_(YKHO):\n return W7fR(None, 50, 1)", "def FCbF(YKHO):\n qXxR = sqNn()\n qXxR.type = 'FIRE'\n YKHO.delegate = W7fR(qXxR, 0, 1)", "def eug9(YKHO):\n pass", "def FIMM(YKHO, mWFP, ZnpV, ZW1v):\n super().__init__()\n YKHO._name = mWFP\n YKHO._health = ZnpV\n YKHO._attack_dmg = Z...
[ "0.8286248", "0.66400385", "0.5812644", "0.573587", "0.5682258", "0.5663152", "0.56226784", "0.560913", "0.557727", "0.55105996", "0.5435111", "0.54180515", "0.5402878", "0.5353695", "0.5346177", "0.5326909", "0.5325143", "0.53047174", "0.529576", "0.529576", "0.52888817", ...
0.55023545
10
Test that 0 is normalized correctly
def sbx9(YKHO): a033 = 0 I2ct = YKHO.delegate.normalize(a033, YKHO.target) assert I2ct == 0, 'Should return zero'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lvMM(YKHO):\n YKHO.assertAlmostEqual(YKHO.quat_unnormalized.normalize().norm(), 1, places=5)", "def dPu6(YKHO):\n YKHO.assertEqual(pLcG.norm([0 for YRbF in range(10)]), 0.0, msg='Norm is not zero at zero')\n YKHO.assertEqual(pLcG.norm([-1 for YRbF in range(9)]), 3.0, msg='Norm is not 3.0 at {-1}^9')...
[ "0.752023", "0.728454", "0.72194695", "0.7206346", "0.71175146", "0.7027082", "0.69816834", "0.69642997", "0.6936382", "0.6908924", "0.69062454", "0.68593204", "0.6804658", "0.67911506", "0.6778579", "0.67504036", "0.669671", "0.6679692", "0.66691667", "0.66292834", "0.661220...
0.0
-1
Get the path for the migrate repository.
def yT70(p9bx='main'): global _REPOSITORY XNWQ = Hy7s.path.join('main', 'legacy_migrations') if p9bx == 'api': XNWQ = Hy7s.path.join('sqlalchemy', 'api_migrations', 'migrate_repo') pmON = Hy7s.path.join(Hy7s.path.abspath(Hy7s.path.dirname(xAKo)), XNWQ) assert Hy7s.path.exists(pmON) if nq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n3vd(YKHO) -> str:\n return YKHO.__get_path__('repos')", "def SkpD():\n global _REPOSITORY\n pmON = Hy7s.path.join(Hy7s.path.abspath(Hy7s.path.dirname(xAKo)), 'migrate_repo')\n assert Hy7s.path.exists(pmON)\n if nqE9 is None:\n nqE9 = mY2R(pmON)\n return nqE9", "def SkpD():\n gl...
[ "0.73012066", "0.70835567", "0.70570874", "0.7014124", "0.6958101", "0.6923065", "0.67973864", "0.67777944", "0.66905326", "0.65916204", "0.65873265", "0.65873265", "0.6575967", "0.6573392", "0.65634024", "0.6554335", "0.6541527", "0.65227467", "0.6520525", "0.6518835", "0.65...
0.6494463
22
What you'd label the xaxis. If this is an inline, it'd be xline.
def VoLU(YKHO): return 'x' if YKHO.dimensions[0] == 'i' else 'i'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkBi(YKHO):\n return YKHO['xaxis']", "def NkBi(YKHO):\n return YKHO.xvar", "def sGAa(UXqs=None):\n if UXqs is not None:\n global __X_AXIS_LABEL\n _fJc = UXqs\n else:\n return _fJc", "def VoLU(l5Ny, object=None):\n return MPlV(object, xlabel=l5Ny)", "def VoLU(YKHO, UX...
[ "0.7166247", "0.713159", "0.70925426", "0.708422", "0.70706975", "0.7021187", "0.6977308", "0.69698805", "0.69698685", "0.69539475", "0.6893725", "0.6891407", "0.68489736", "0.68435884", "0.6832136", "0.68120307", "0.6803464", "0.67759186", "0.66553205", "0.6610177", "0.65867...
0.73546433
0
Tests that a robot with an unknown `unitStatus` is setup correctly.
def qqJN(): import random import string viwr = '_' + ''.join(random.sample(string.ascii_letters, 3)) fQxG = K2Oi(data={**BtW3, 'unitStatus': viwr}) assert fQxG.status_code == viwr assert fQxG.status == I3sK.UNKNOWN assert fQxG.status.value is None assert fQxG.status.text == 'Unknown'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZcDW(YKHO):\n oCfW = YKHO.run_with_api(bETX())\n with YKHO.assertRaises(YNt_):\n YKHO.wait_for_initialization(oCfW)", "def xSu4(YKHO):\n for aevO in ['True', 'TRUE']:\n Q3Ge = jGRS.Condition({'status': aevO})\n YKHO.assertTrue(Q3Ge.status)\n for aevO in ['false', 'Unknown', '...
[ "0.7196548", "0.6493827", "0.6470832", "0.6470832", "0.64676666", "0.6427421", "0.64034015", "0.6392132", "0.6350282", "0.6306393", "0.6281681", "0.61905515", "0.61869", "0.6184643", "0.6184264", "0.6184153", "0.61057943", "0.6085853", "0.60607344", "0.6053107", "0.60344714",...
0.845309
0
Tests expected exceptions/responses for invalid commands.
async def test_invalid_commands(d1k_): fQxG = await MNZc(d1k_) with trZe.raises(ogA5): await fQxG.set_wait_time(12) assert await fQxG._dispatch_command('W12') is False assert d1k_.post.call_args.kwargs.get('json') == {'command': f'{RUYG._PREFIX}W12'} with trZe.raises(ogA5): await fQx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_invalid_command_or_action(BbfF, SVei, VIbH, _4qK):\n SVei.add(NL1K, '/commands', 'get', BbfF.Response(text=qQXR.dumps(VIbH), status=200, headers={'Content-Type': 'application/json; charset=utf-8'}))\n SVei.add(NL1K, '/commands', 'get', BbfF.Response(text=qQXR.dumps(VIbH), status=200, headers={...
[ "0.7665385", "0.7552049", "0.75091285", "0.7490155", "0.7464096", "0.73669595", "0.73499566", "0.7262778", "0.7217087", "0.7202944", "0.7199141", "0.7154892", "0.7145934", "0.7108223", "0.7023609", "0.7001928", "0.6973918", "0.696779", "0.69570476", "0.6934417", "0.6911719", ...
0.80843854
0
Create new item and return the new item object. This is a protected endpoint and requires valid jwt token.
def pkLJ(): La6v = Zul5() mWFP = QePW.form['name'] QCHd = oR8h(mWFP) JBZA = QePW.form['description'] Ghho = QePW.form['category'] if mWFP and Ghho and JBZA: if FME_(mWFP) or FME_(Ghho) or FME_(JBZA): return (pz3A({'error': 'Html and script injection is not allowed!'}), 422) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO):\n ZfUD = kLxY().from_dict(data=QePW.json)\n NCls.session.add(ZfUD)\n NCls.session.commit()\n return ZfUD", "def Wutj(YKHO, ZfUD):\n YKHO.lst.append(ZfUD)\n return (pz3A({'success': True, 'payload': ZfUD}), 201)", "def Wutj(YKHO, QpfX, pB3N):\n EKLL = RscF(**pB3N)\n w2IS ...
[ "0.7398376", "0.7168489", "0.7068144", "0.7018407", "0.6954572", "0.6898907", "0.68607897", "0.68550867", "0.6814357", "0.6779955", "0.6719672", "0.6627622", "0.6570038", "0.6565253", "0.6553082", "0.6539554", "0.64929885", "0.6486369", "0.64717096", "0.6462684", "0.6445392",...
0.7488981
0
The server has not found anything matching the RequestURI. No indication is given of whether the condition is temporary or permanent. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding addre...
def m7kB(P1dF): return (TvZl('page_not_found.html'), 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lruz(P1dF):\n return ('410 ' + umxJ + '\\n', 410)", "def H_q5(P1dF):\n return (TvZl('410.html'), 410)", "def yy28(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 410)", "def znGg(QePW, *qIxc, **B2fa):\n a1PO = rPXJ.loader.get_template('410.html')\n Z9rn = rPXJ.RequestContext(QePW,...
[ "0.7076014", "0.6809354", "0.65633285", "0.65501004", "0.6542297", "0.64700896", "0.6244886", "0.6161359", "0.6090758", "0.60472405", "0.5933457", "0.59139544", "0.5883418", "0.58230996", "0.5779148", "0.5773815", "0.5752752", "0.5730797", "0.5714992", "0.56965715", "0.569338...
0.0
-1
Return the lowest index of T at which the substring P begins (or else 1).
def PSm6(Kt_s, V6IE): exwG, r8hN = (len(Kt_s), len(V6IE)) if r8hN == 0: return 0 YIoF = X3LU(V6IE) r845 = 0 G1Hx = 0 while r845 < exwG: if Kt_s[r845] == V6IE[G1Hx]: if G1Hx == r8hN - 1: return r845 - r8hN + 1 r845 += 1 G1Hx += 1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NL94(DMbc, Npeo):\n for YRbF, KCHu in enumerate(DMbc):\n if Npeo in KCHu:\n return YRbF\n return -1", "def bEro(finE: str, oeNL: int):\n return oeNL - len(finE) + 1", "def YruF(KCHu, fUYa):\n njyT = '|'.join(map(ZbWC.escape, fUYa))\n r8hN = ZbWC.search(njyT, KCHu)\n if r...
[ "0.7173046", "0.68809974", "0.68057597", "0.66995734", "0.66143805", "0.658242", "0.65493566", "0.65131336", "0.64702266", "0.64355576", "0.6386284", "0.63178235", "0.6265156", "0.6264293", "0.62253743", "0.61960036", "0.61906844", "0.6152995", "0.61475295", "0.61309284", "0....
0.6702976
3
Replace np.nan of X with the corresponding value of X_hat
def aXab(YKHO, Z3Z3): EcVT = oyIN.copy(YKHO.X) for YRbF in range(YKHO.num_samples): for r845 in range(YKHO.num_features): if oyIN.isnan(EcVT[YRbF, r845]): EcVT[YRbF, r845] = Z3Z3[YRbF, r845] return EcVT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d38E():\n kbSb = oyIN.array(EcVT, dtype=oyIN.float64)\n kbSb[0, 1] = oyIN.nan\n D7Jk.LogisticRegression().fit(kbSb, OJuM)", "def RlXw(EcVT):\n PQrP = acJG(missing_values='NaN', strategy='mean', axis=0)\n PQrP = PQrP.fit(EcVT)\n tFvh = PQrP.transform(EcVT)\n return tFvh", "def GUw3(WKvO...
[ "0.68663895", "0.68297553", "0.68133336", "0.67626274", "0.65689796", "0.633202", "0.632862", "0.6275353", "0.6150832", "0.6033914", "0.6031673", "0.59071416", "0.5883093", "0.5862607", "0.5843628", "0.5816661", "0.58014804", "0.5777775", "0.5759914", "0.57486707", "0.5748123...
0.8679684
0
Initializes the object with a size and a textual description. Defines the value in the form of a bool list of a given size.
def FIMM(YKHO, zNig, JBZA: str=None): super(YWGK, YKHO).__init__(bool, (DXF_.range.BoolRange.instance() for IaaG in range(zNig)), JBZA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, zNig):\n YKHO.values = [False] * zNig\n YKHO.size = zNig", "def FIMM(YKHO, JBZA: str=None):\n super(VvRW, YKHO).__init__(bool, DXF_.range.BoolRange.instance(), JBZA)", "def FIMM(YKHO, zNig, muwo=None):\n super().__init__(zNig)\n YKHO._value_lists = dict()\n if muwo is not None:...
[ "0.7339822", "0.6226929", "0.60149556", "0.58881634", "0.5872928", "0.5869348", "0.5782044", "0.5766229", "0.5764187", "0.5629464", "0.5620673", "0.5619669", "0.56172425", "0.5617184", "0.5592654", "0.5587537", "0.5587041", "0.5587041", "0.5587041", "0.5587041", "0.5587041", ...
0.82220054
0
Wraps around Lambda handler functions for API Gateway events.
def DCgT(cfQO=None, Y8nQ=None): def mrMx(cfQO): def h3Xc(*qIxc, **B2fa): Oa1e.event = qIxc[0] Oa1e.context = qIxc[1] try: if Y8nQ: QKTv(Y8nQ) Ol8d, Wxnj = cfQO(*qIxc, **B2fa) except UvM_ as err: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfQO(tvqc: dict, QpfX) -> dict:\n pass", "def cfQO(tvqc, QpfX):\n return", "def cfQO(tvqc, QpfX):\n try:\n return AnCg(tvqc, QpfX)\n except Exception as e:\n bo34.error(str(tTpl))\n return QilH(status_code=qed_.BAD_REQUEST, response_body={'error': f'Error encountered - {str...
[ "0.7937843", "0.7831759", "0.7799896", "0.77897483", "0.77897483", "0.77897483", "0.73644346", "0.7305613", "0.7195262", "0.7186697", "0.7157095", "0.71417695", "0.71381617", "0.7121893", "0.71099555", "0.71045667", "0.7082274", "0.7064479", "0.70595294", "0.70477384", "0.702...
0.7389982
6
The threshold at which the isosurface is constructed from the 3D data.
def ABDL(YKHO): return YKHO._level
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gwAu(YKHO) -> float:\n return qe4Y.get(YKHO, 'threshold')", "def gwAu(YKHO) -> float:\n return qe4Y.get(YKHO, 'threshold')", "def gwAu(YKHO) -> float:\n return qe4Y.get(YKHO, 'threshold')", "def gwAu(YKHO) -> float:\n return qe4Y.get(YKHO, 'threshold')", "def gwAu(YKHO) -> float:\n retur...
[ "0.6586065", "0.6586065", "0.6586065", "0.6586065", "0.6586065", "0.6586065", "0.65339625", "0.6367912", "0.6362703", "0.63546145", "0.63546145", "0.63161606", "0.63161606", "0.6304443", "0.6229904", "0.6228184", "0.6206439", "0.6161436", "0.60800105", "0.60609317", "0.605678...
0.0
-1
This test checks if the signup view behaves as expected
def tuZt(YKHO): geh0 = YKHO.client.get(gxEw('signup')) YKHO.assertEquals(geh0.status_code, 200) YKHO.assertTemplateUsed(geh0, 'auth_form.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TMgz(YKHO):\n geh0 = YKHO.client.get(gxEw('userena_signup'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'userena/signup_form.html')\n YKHO.failUnless(isinstance(geh0.context['form'], H6V6.SignupForm))", "def XOuB(YKHO):\n pass", "def jKDB(YKHO):\n geh0 = YKH...
[ "0.86244583", "0.83416563", "0.8341146", "0.82079774", "0.80890185", "0.8033696", "0.80330646", "0.8013015", "0.7946484", "0.7937045", "0.788545", "0.7880604", "0.78681326", "0.7846385", "0.7768129", "0.77451617", "0.7711695", "0.77079076", "0.7681247", "0.7677699", "0.767268...
0.8459433
1
This test checks if the signup view behaves as expected if the user is already authenticated
def GUY5(YKHO): YKHO.client.force_login(YKHO.user) geh0 = YKHO.client.get(gxEw('signup')) YKHO.assertEquals(geh0.status_code, 302) YKHO.assertRedirects(geh0, gxEw('account'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RNsB(YKHO):\n YKHO.client.post(YKHO.url, YKHO.correct_data)\n lErg = mv1M.objects.all()[0]\n YKHO.assertTrue(lErg.is_authenticated)", "def tuZt(YKHO):\n geh0 = YKHO.client.get(gxEw('signup'))\n YKHO.assertEquals(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'auth_form.html')", "d...
[ "0.858659", "0.80723375", "0.80269825", "0.7992041", "0.78209686", "0.7816046", "0.7706746", "0.7681245", "0.76779544", "0.767725", "0.7643656", "0.7641039", "0.76372343", "0.759487", "0.7588897", "0.7536636", "0.75289786", "0.7527858", "0.75253", "0.75031585", "0.74960494", ...
0.7541162
15
This test checks if the signup view's POST creates a user if proper form data is sent though it
def Cpnn(YKHO): BGqR = {'first_name': 'test', 'last_name': 'user', 'email': 'form@test.com', 'password1': '123', 'password2': '123'} geh0 = YKHO.client.post(gxEw('signup'), BGqR) YKHO.assertEquals(geh0.status_code, 302) YKHO.assertRedirects(geh0, gxEw('index')) YKHO.assertIsInstance(Wqvn.objects.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K5F2(YKHO):\n bD7m = gxEw('user_signup')\n geh0 = YKHO.client.post(bD7m, YKHO.data.signup_data, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)\n YKHO.assertEqual(geh0.data['data']['first_name'], 'sanyat')", "def Q9l0(YKHO):\n pass", "def Qndk(YKHO):\n YKHO.clie...
[ "0.8394165", "0.8382427", "0.8281396", "0.82398605", "0.8230176", "0.8220848", "0.82194287", "0.8188113", "0.81789464", "0.8155023", "0.811044", "0.8102913", "0.8099452", "0.8090409", "0.8088981", "0.80825114", "0.806043", "0.80466706", "0.8021951", "0.8007579", "0.7986197", ...
0.8081881
16
This test checks if the login view behaves as expected
def NMu1(YKHO): geh0 = YKHO.client.get(gxEw('login')) YKHO.assertEquals(geh0.status_code, 200) YKHO.assertTemplateUsed(geh0, 'auth_form.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMu1(YKHO):\n geh0 = YKHO.client.get(nKyW('auth.login'))\n YKHO.assertEqual(geh0.status_code, 200)", "def NMu1(YKHO):\n geh0 = YKHO.client.get(gxEw('login'))\n YKHO.assertEquals(geh0.status_code, 200)", "def NMu1(YKHO):\n geh0 = YKHO.client.get(gxEw('login'))\n YKHO.assertTemplateUsed(geh...
[ "0.8868873", "0.8755004", "0.8630275", "0.86049145", "0.86049145", "0.8562106", "0.8562106", "0.8529156", "0.8481232", "0.8417554", "0.84156865", "0.8344668", "0.8333151", "0.8325573", "0.8306113", "0.8270782", "0.8267453", "0.8250721", "0.8249466", "0.82432175", "0.8241474",...
0.8859928
1
This test checks if the login view's POST behaves as expected and provides a good authenticated user
def UKFZ(YKHO): BGqR = {'username': YKHO.username, 'password': YKHO.password} geh0 = YKHO.client.post(gxEw('login'), BGqR) YKHO.assertEquals(geh0.status_code, 302) YKHO.assertIsInstance(geh0.wsgi_request.user, Wqvn) YKHO.assertEquals(str(geh0.wsgi_request.user), YKHO.username) YKHO.assertRedirec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wZ2m(YKHO):\n from anuket.views.root import login_view\n YKHO.dummy_user_fixture()\n QePW = vJMg()\n QePW.method = 'POST'\n QePW.params['form_submitted'] = u''\n QePW.params['username'] = u'username'\n QePW.params['password'] = u'password'\n geh0 = login_view(QePW)\n YKHO.assertEqual...
[ "0.8350665", "0.82902575", "0.829001", "0.826565", "0.8242018", "0.82400984", "0.82155246", "0.81706125", "0.815853", "0.8135801", "0.81084615", "0.8108424", "0.8094994", "0.80889654", "0.80815226", "0.8071982", "0.80422324", "0.80065316", "0.79983765", "0.79886675", "0.79826...
0.85047036
0
This test checks if the login view behaves as expected if the user is already authenticated
def aXuj(YKHO): YKHO.client.force_login(YKHO.user) geh0 = YKHO.client.get(gxEw('login')) YKHO.assertEquals(geh0.status_code, 302) YKHO.assertRedirects(geh0, gxEw('account'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYBb(YKHO):\n YKHO.client.login(username='samuel', password='testing')\n geh0 = YKHO.client.get(gxEw('login'), follow=True)\n YKHO.assertEquals(geh0.status_code, 200)\n YKHO.assertEquals(geh0.redirect_chain[0][0], '%s%s' % (g67r, gxEw('pub_latest')))", "def bRA7(YKHO):\n geh0 = YKHO.client.pos...
[ "0.8377305", "0.8374657", "0.83673143", "0.8366652", "0.83416986", "0.81417656", "0.8139614", "0.8120124", "0.8120006", "0.80388576", "0.8030847", "0.7999613", "0.79691905", "0.7937152", "0.79283565", "0.7923286", "0.79153323", "0.791406", "0.79088455", "0.79088455", "0.79017...
0.7991026
12
This test checks if the account view behaves as expected if the user is not authenticated
def Acm_(YKHO): geh0 = YKHO.client.get(gxEw('account')) YKHO.assertEquals(geh0.status_code, 302) YKHO.assertRedirects(geh0, gxEw('login'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOQl(YKHO):\n geh0 = YKHO.client.get(gxEw('accounts-detail', kwargs={'pk': YKHO.account.pk}))\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED, 'response does not has 401 status')", "def C1WJ(YKHO):\n CBIr = i9zE()\n geh0 = CBIr.get('/accounts/register/')\n YKHO.assertEqual(geh0...
[ "0.8120596", "0.81092554", "0.78787154", "0.7738761", "0.7716143", "0.7684502", "0.7684288", "0.765557", "0.7646042", "0.7621402", "0.7602618", "0.7588907", "0.7583918", "0.7582618", "0.75644326", "0.7545542", "0.7535705", "0.7502894", "0.74972796", "0.74961895", "0.74855953"...
0.80209047
2
This test checks if the logout behaves as expected if the user is not authenticated
def Xuy4(YKHO): geh0 = YKHO.client.get(gxEw('logout')) YKHO.assertEquals(geh0.status_code, 302) YKHO.assertRedirects(geh0, gxEw('index'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fF4T(YKHO):\n YKHO.client.login(username='testb', password='0000')\n geh0 = YKHO.client.get(gxEw('user_logout'))\n YKHO.assertEqual(geh0.context['user'].is_authenticated, False)", "def wcVf(YKHO):\n YKHO.client.login(username='test_user', password='test.test.test')\n YKHO.assertIn('_auth_user_...
[ "0.89070183", "0.8869826", "0.88621503", "0.875421", "0.87182045", "0.86805403", "0.86169904", "0.8560322", "0.85195714", "0.85154", "0.8509435", "0.84987926", "0.8460514", "0.84338814", "0.8422981", "0.84131366", "0.8412746", "0.83896613", "0.838317", "0.8354279", "0.8351276...
0.8316318
25
This test checks if the change_password view behaves as expected
def WJna(YKHO): YKHO.client.force_login(YKHO.user) geh0 = YKHO.client.get(gxEw('edit-password')) YKHO.assertEquals(geh0.status_code, 200) YKHO.assertTemplateUsed(geh0, 'auth_form.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GD_U(YKHO):\n pass", "def FLBD(YKHO):\n YKHO.client.login(username='testb', password='0000')\n geh0 = YKHO.client.get(gxEw('change_password'))\n YKHO.assertEqual(geh0.status_code, 200)\n geh0 = YKHO.client.post(gxEw('change_password'), data={'change_password': 'testb'})\n YKHO.assertEqual(g...
[ "0.8927867", "0.85654896", "0.85374945", "0.847671", "0.83503556", "0.83136964", "0.8291595", "0.82203406", "0.81741434", "0.817061", "0.8124009", "0.8111805", "0.7969261", "0.7967978", "0.79506594", "0.7927243", "0.79172957", "0.79041845", "0.7855833", "0.7851805", "0.784858...
0.88829374
1
This test checks if the change_password view behaves as expected if the user is not authenticated
def bEEa(YKHO): geh0 = YKHO.client.get(gxEw('edit-password')) YKHO.assertEquals(geh0.status_code, 302) YKHO.assertRedirects(geh0, gxEw('index'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJna(YKHO):\n YKHO.client.force_login(YKHO.user)\n geh0 = YKHO.client.get(gxEw('edit-password'))\n YKHO.assertEquals(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'auth_form.html')", "def F9gq(YKHO):\n YKHO.client.logout()\n geh0 = YKHO.client.put(YKHO.url, data=qQXR.dumps({'passwo...
[ "0.8460757", "0.83158946", "0.81715524", "0.8135021", "0.7992911", "0.79695714", "0.79662013", "0.7954375", "0.79488677", "0.7899552", "0.78817165", "0.7805271", "0.78032863", "0.7790666", "0.7788686", "0.77825594", "0.7771413", "0.7770037", "0.7766568", "0.7760468", "0.77138...
0.89408726
0
This test checks if the change_mail view behaves as expected if the user provides an invalid old password
def fey5(YKHO): geh0 = YKHO.client.post(gxEw('edit-password'), data={'old_password': 'WRONG_password', 'password1': 'new_password', 'password2': 'new_password'}) YKHO.assertRaises(sUXu) YKHO.assertEquals(geh0.status_code, 200) YKHO.assertTemplateUsed(geh0, 'auth_form.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bmwV(YKHO):\n geh0 = YKHO.client.post(gxEw('edit-mail'), data={'new_mail1': 'new@mail.com', 'new_mail2': 'new@mail.com', 'password': 'WRONG_password'})\n YKHO.assertRaises(sUXu)\n YKHO.assertEquals(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'auth_form.html')", "def ygHz(YKHO, oRxS):\n...
[ "0.8344743", "0.79770607", "0.79404706", "0.7869108", "0.7851373", "0.7740729", "0.7715281", "0.77119946", "0.7683384", "0.768197", "0.76818174", "0.767173", "0.76543826", "0.76280576", "0.7619251", "0.7608963", "0.76017696", "0.7547212", "0.7539076", "0.7504465", "0.7486869"...
0.80364
1
This test checks if the change_mail view behaves as expected
def FdHN(YKHO): YKHO.client.force_login(YKHO.user) geh0 = YKHO.client.get(gxEw('edit-mail')) YKHO.assertEquals(geh0.status_code, 200) YKHO.assertTemplateUsed(geh0, 'auth_form.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YnEh(YKHO):\n cpYK.send(recipients=['test@example.com'], headers={'foo': 'bar'})\n D3lj = GPrQ.objects.latest('id')\n geh0 = YKHO.client.get(gxEw('admin:post_office_email_change', args=[D3lj.id]))\n YKHO.assertEqual(geh0.status_code, 200)", "def _uky(YKHO):\n YKHO.client.login(username='testb'...
[ "0.79725313", "0.7869886", "0.75984114", "0.7408245", "0.738025", "0.7369339", "0.71323097", "0.7071306", "0.705142", "0.6915728", "0.6907548", "0.68479747", "0.68248296", "0.6756141", "0.6754849", "0.675449", "0.6743206", "0.6740035", "0.67396873", "0.6732279", "0.67212784",...
0.8448413
0
This test checks if the change_mail view behaves as expected if the user is not authenticated
def Zd0t(YKHO): geh0 = YKHO.client.get(gxEw('edit-mail')) YKHO.assertEquals(geh0.status_code, 302) YKHO.assertRedirects(geh0, gxEw('index'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FdHN(YKHO):\n YKHO.client.force_login(YKHO.user)\n geh0 = YKHO.client.get(gxEw('edit-mail'))\n YKHO.assertEquals(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'auth_form.html')", "def SwF4(YKHO):\n geh0 = YKHO.client.get(gxEw('edit_email'))\n YKHO.assertEqual(302, geh0.status_code)...
[ "0.8398472", "0.7984279", "0.75321436", "0.7375246", "0.73482037", "0.7195897", "0.719579", "0.70556784", "0.6971551", "0.69567525", "0.6929615", "0.6894541", "0.68550247", "0.68394345", "0.67907614", "0.67907614", "0.67907614", "0.67821723", "0.67821723", "0.67821723", "0.67...
0.8697507
0
This test checks if the change_mail view behaves as expected if the user provides an invalid password
def bmwV(YKHO): geh0 = YKHO.client.post(gxEw('edit-mail'), data={'new_mail1': 'new@mail.com', 'new_mail2': 'new@mail.com', 'password': 'WRONG_password'}) YKHO.assertRaises(sUXu) YKHO.assertEquals(geh0.status_code, 200) YKHO.assertTemplateUsed(geh0, 'auth_form.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KwQ4(YKHO):\n D3lj = 'email1'\n QePW = {'email': D3lj}\n geh0 = YKHO.mock_auth_server.send_mail(QePW)\n assert geh0.status_code == 200\n geh0 = YKHO.mock_auth_server.change_password({}, wcp8, D3lj)\n assert geh0.status_code == 400", "def FdHN(YKHO):\n YKHO.client.force_login(YKHO.user)\n...
[ "0.8002698", "0.7833518", "0.77644074", "0.77553487", "0.7723958", "0.7682653", "0.76799566", "0.76444244", "0.76040065", "0.7598723", "0.7580017", "0.7574086", "0.75323415", "0.752531", "0.7525114", "0.75000566", "0.74831665", "0.7455906", "0.7449342", "0.7447095", "0.744435...
0.8590765
0
Creates a upsampleandconvolution layer, with optional batch normalization.
def aJva(DYuh, tYiq, Ot1W, _0fC=2, dvgN=2, idFg=True): fhcK = [] if _0fC > 1: fhcK.append(U78l.Upsample(scale_factor=_0fC)) VZhH = U78l.Conv2d(in_channels=DYuh, out_channels=tYiq, kernel_size=Ot1W, stride=1, padding=dvgN, bias=False) fhcK.append(VZhH) if idFg: fhcK.append(U78l.BatchN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pane(oubr, F4O3, KUnM, fA6H=4, auSV='in_norm', lZHA=2):\n P6bq = wJ8e(size=lZHA, interpolation='bilinear')(oubr)\n P6bq = yHwh(KUnM, kernel_size=fA6H, strides=1, padding='same')(P6bq)\n if auSV == 'in_norm':\n P6bq = ZwFT()(P6bq)\n elif auSV == 'bn_norm':\n P6bq = GVKG()(P6bq)\n P6...
[ "0.6806855", "0.66416985", "0.66280985", "0.6610368", "0.66030353", "0.6601182", "0.657793", "0.6572261", "0.6548246", "0.6526431", "0.65074223", "0.6487041", "0.6471314", "0.64560944", "0.64366794", "0.6429647", "0.642419", "0.63522243", "0.6350078", "0.63457197", "0.6344429...
0.6379589
17
Creates a convolutional layer, with optional batch normalization.
def yIp6(DYuh, tYiq, Ot1W, _0fC=2, dvgN=2, idFg=True, Soes=False): fhcK = [] VZhH = U78l.Conv2d(in_channels=DYuh, out_channels=tYiq, kernel_size=Ot1W, stride=_0fC, padding=dvgN, bias=False) if Soes: VZhH.weight.data = ht2j.randn(tYiq, DYuh, Ot1W, Ot1W) * 0.001 fhcK.append(VZhH) if idFg: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H9_D(YKHO, g4y1, gt4n=16, Ot1W=3, FEri=1, YDYE='relu', zjgh=None, uNRR=True, RIw7=True, mWFP='conv'):\n if zjgh is None:\n yIp6 = lTlC(filters=gt4n, kernel_size=Ot1W, strides=FEri, padding='same', kernel_regularizer=None, name=mWFP)\n else:\n yIp6 = lTlC(filters=gt4n, kernel_size=Ot1W, stri...
[ "0.75907665", "0.71975243", "0.7183503", "0.7127687", "0.70796263", "0.70645875", "0.70602566", "0.70545983", "0.70427436", "0.70341706", "0.70234615", "0.69905835", "0.6972897", "0.69637436", "0.69515014", "0.6950976", "0.6929127", "0.692609", "0.6920791", "0.6894377", "0.68...
0.67603004
27
Check if all trees are really newick trees
def ldcl(YKHO): Jvah = [] for ouqz in YKHO.__nexus_ori.split('begin trees;')[1].split('end;')[0].split(';')[1:]: if ouqz.strip(): ouqz = _FlN(ouqz) ouqz = ouqz.strip() mkUQ, J_Es, A9bD = YKHO.__split_nexus_line(ouqz) if not tRZJ.checkNwk(J_Es.strip()): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y8Td(YKHO):\n return len(YKHO.get_all_node()) - 1 == YKHO.get_nb_linck()", "def y8Td(YKHO) -> bool:\n return YKHO.vertecies - 1 == YKHO.edges", "def y8Td(J_Es):\n if type(J_Es) != list or len(J_Es) < 1:\n return False\n for jehQ in GZiu(J_Es):\n if not y8Td(jehQ):\n ret...
[ "0.73561263", "0.7041526", "0.68732035", "0.68732035", "0.6809594", "0.6809594", "0.6809594", "0.6783433", "0.6783433", "0.66956234", "0.66552746", "0.66552746", "0.66552746", "0.6623114", "0.6623114", "0.6589406", "0.6546039", "0.65329033", "0.65201396", "0.64749837", "0.644...
0.0
-1
Function which calculates the area from given pressure
def k0lF(YKHO, V6IE): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lZzq(XP5J, vexM, Mkmy):\n if len(XP5J) == 2:\n XP5J.append(0)\n vexM.append(0)\n Mkmy.append(0)\n WKvO = []\n LVAh = []\n for YRbF in range(3):\n WKvO.append(vexM[YRbF] - XP5J[YRbF])\n LVAh.append(Mkmy[YRbF] - XP5J[YRbF])\n return 0.5 * ((WKvO[1] * LVAh[2] - WK...
[ "0.71916246", "0.7134358", "0.7112646", "0.71043444", "0.70680165", "0.70510936", "0.7006489", "0.697886", "0.6964136", "0.69612944", "0.6957646", "0.6937025", "0.68635195", "0.6828663", "0.68210375", "0.6769629", "0.6767929", "0.6758475", "0.6749888", "0.6732354", "0.6719515...
0.0
-1
Function which calculates the area from given pressure at certain node of the vessel
def krqz(YKHO, V6IE, Q6kx): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yd8O(SsnV):\n return mM0K * SsnV ** 2", "def f0tD(Mkmy):\n mM0K = 3.14\n return mM0K * (Mkmy * Mkmy)", "def f0tD(FlUN):\n return FlUN[2] * FlUN[3]", "def f0tD(FlUN):\n return float((FlUN[1][0] - FlUN[0][0]) * (FlUN[1][1] - FlUN[0][1]))", "def f0tD(FlUN):\n return (FlUN[2] - FlUN[0]) *...
[ "0.6621116", "0.6523956", "0.6508982", "0.64898515", "0.6426375", "0.6386553", "0.63847774", "0.6377646", "0.63708377", "0.6360343", "0.6318655", "0.6277701", "0.6245193", "0.6220211", "0.6193303", "0.6188592", "0.618177", "0.61776775", "0.6174791", "0.6174791", "0.6174791", ...
0.0
-1
Returns the covariance matrix from the correlations and errors.
def BJXV(scKD, z0xq, Aq9m, UAju): jzdc = oyIN.zeros((3, 3)) jzdc[0, 1] = scKD jzdc[0, 2] = z0xq jzdc[1, 2] = Aq9m w66O = jzdc + jzdc.T + oyIN.identity(3) S0Fi = oyIN.atleast_2d(UAju).T * w66O * UAju return S0Fi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PFC2(YKHO):\n if 'correlation' not in YKHO._paras.keys():\n print('correlation model has not been fitted yet!')\n return\n Kt_s = YKHO._corrs.shape[2]\n Csk6 = YKHO._corrs.shape[0]\n PFC2 = oyIN.empty([Csk6, Csk6, Kt_s])\n for YRbF in range(Kt_s):\n bSmD = YKHO._corrs[:, :, ...
[ "0.75475425", "0.71774864", "0.7166086", "0.7031981", "0.70173484", "0.6992843", "0.6984051", "0.69718325", "0.69347686", "0.6926706", "0.69078493", "0.6790892", "0.674579", "0.6714681", "0.6714681", "0.6629581", "0.65971714", "0.6590968", "0.65599614", "0.6549507", "0.654553...
0.7098777
3
Save the record to the database.
def xkzz(YKHO): NCls.session.commit()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO):\n YKHO.__session.commit()", "def xkzz(YKHO):\n YKHO.__session.commit()", "def xkzz(YKHO):\n YKHO.__session.commit()", "def xkzz(YKHO):\n YKHO.__session.commit()", "def xkzz(YKHO):\n YKHO.__session.commit()", "def xkzz(YKHO):\n YKHO.__session.commit()", "def xkzz(YKHO):...
[ "0.8106882", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333", "0.80745333",...
0.80954766
1
Return the argument parser for this program.
def dCXb(E0cB=None): wvEv = WDqQ(description='Convert CSV data to ICal format.') wvEv.add_argument('-d', '--dry-run', action='store_true', default=False, help='Do not make changes.') wvEv.add_argument('-v', '--verbose', action='store_true', default=False, help='Increase verbosity.') wvEv.add_argument('c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z0ba(YKHO, **B2fa):\n import argparse\n VqfF = argparse.ArgumentParser(prog=B2fa['argv0'], description=YKHO.summary)\n return VqfF", "def z0ba(YKHO):\n return ugSn.ArgParser(add_help=False)", "def z0ba(YKHO):\n return YKHO.get_base_arg_parser()", "def xuJu(YKHO):\n return YKHO.__argpars...
[ "0.8264506", "0.82505465", "0.8140173", "0.8048532", "0.7806552", "0.77315027", "0.7662527", "0.76495755", "0.76268524", "0.76207566", "0.75620884", "0.75470465", "0.7539516", "0.75222486", "0.7516272", "0.7481457", "0.7478911", "0.7478871", "0.7468928", "0.74477935", "0.7446...
0.0
-1
Register default symbolic function for `layer_norm`. Add support to layer_norm to ONNX.
def CW9k(*qIxc): return X4Bc(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pJKY(xuoV):\n if xuoV.__name__ in globals().keys() or xuoV.__name__.lower() in globals().keys():\n raise ValueError(f'Norm {xuoV.__name__} already exists. Choose another name.')\n globals().update({xuoV.__name__: xuoV})", "def _BYV(YKHO, **B2fa):\n vHnr = YKHO.input_layer if not YKHO.all_laye...
[ "0.6458372", "0.61631227", "0.60351247", "0.60257596", "0.6002667", "0.59901524", "0.5972723", "0.5964198", "0.5964198", "0.59047", "0.5880542", "0.5878328", "0.5878328", "0.5878328", "0.5878328", "0.5878328", "0.5863186", "0.5863186", "0.58604467", "0.5856225", "0.58552635",...
0.5132681
60
Method holds and returns tank material density, heat capacity, and thermal conductivity.
def uPd4(YKHO): global rho_wall, C_wall, k_wall qW5K = 2710.0 L5aP = 887.0 PixA = 150.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ovGo(YKHO):\n if YKHO.mass > 0:\n return YKHO.thermal_energy / (YKHO.mass * YKHO.specific_heat_capacity)\n else:\n return 0.0", "def F_gh(YKHO) -> P6bq.W / (P6bq.K * P6bq.m):\n ...", "def i9Yu(YKHO, ovGo=20):\n return YKHO.shape.getR(YKHO.material.thermalConductivity)", "def F_g...
[ "0.69646615", "0.674491", "0.66287607", "0.65840185", "0.6552485", "0.64541155", "0.6452064", "0.6326867", "0.63259983", "0.631101", "0.629706", "0.62821794", "0.62801284", "0.6269732", "0.6214826", "0.61959815", "0.6192865", "0.6188576", "0.61756474", "0.6168568", "0.6156201...
0.72596973
0
Method calculates and returns thermodynamic properties of N2O at the input temperature and pressure. Only valid for unsaturated conditions between the triple point and critical points. The maximum allowed temperature input is the critical temperature, if any temperature
def Agsn(YKHO, Kt_s, V6IE): Zsq_ = bA88.PhaseSI('P', V6IE, 'T', Kt_s, 'N2O') print('Phase :: {}'.format(Zsq_)) ZSpS = Kt_s / 309.52 L3eB = float(o6zB('C', 'T', Kt_s, 'P', V6IE, 'N2O')) oZuG = float(o6zB('D', 'T', Kt_s, 'P', V6IE, 'N2O')) UqYS = float(o6zB('ISOBARIC_EXPANSION_COEFFICIENT', 'T', K...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xL9q(YKHO, Kt_s, EcVT):\n if not 0 <= EcVT <= 1:\n raise ValueError('N2O_prop is only implemented for saturated mixtures')\n if Kt_s >= 309.52:\n print('Input Temperature is ABOVE Critical Temperature!')\n print('{:.2f}K will be set to 309.50K!'.format(Kt_s))\n Kt_s = 309.5\n ...
[ "0.68778026", "0.6119638", "0.60533977", "0.59582776", "0.5920956", "0.58548754", "0.5850973", "0.5839815", "0.5817158", "0.5812582", "0.5810702", "0.5798815", "0.5777532", "0.57600284", "0.5739256", "0.57239866", "0.57098854", "0.56798565", "0.56504786", "0.5630633", "0.5610...
0.60681117
2
Test a problem with kl_div.
def qXpd(YKHO): nzr_ = 50 TGgA = 10 HTbS = oyIN.random.RandomState(TGgA) w0fP = HTbS.uniform(0.0, 1.0, (nzr_, 1)) w0fP = w0fP / sum(w0fP) WBLW = U7YL.Parameter((nzr_, 1), nonneg=True) aZoC = U7YL.Variable((nzr_, 1)) GRmV = 0.0 for G1Hx in range(nzr_): GRmV += U7YL.kl_div(aZoC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jjAn():\n oyIN.random.seed(12345)\n XaIe = oyIN.random.rand(200, 2)\n Ylbp = [KGJO.kl_divergence(XaIe, oyIN.random.rand(200, 2)) for bGrB in range(1000)]\n assert abs(oyIN.mean(Ylbp)) < 0.2\n XaIe += 3\n D0IF = [KGJO.kl_divergence(XaIe, oyIN.random.rand(200, 2)) for bGrB in range(1000)]\n ...
[ "0.7740955", "0.7156376", "0.7121802", "0.6852113", "0.68216836", "0.67696625", "0.6618189", "0.6605482", "0.6507894", "0.6484865", "0.6482734", "0.64682555", "0.64640737", "0.6404083", "0.63920164", "0.63561374", "0.6347022", "0.63379467", "0.6320025", "0.62970054", "0.62970...
0.73597926
1
Returns the absolute location of ``path`` relative to ``root``. ``root`` is the path configured for this `StaticFileHandler` (in most cases the ``static_path`` `Application` setting). This class method may be overridden in subclasses. By default it returns a filesystem path, but other strings may be used as long as the...
def BpbB(Emd4, tk5Y, pmON): WQbV = Hy7s.path.abspath(Hy7s.path.join(tk5Y, pmON)) RKD7.gen_log.info('path:{}, absolute_path:{}'.format(pmON, WQbV)) return WQbV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BpbB(YKHO, tk5Y, pmON):\n Bcwd = YKHO.contents_manager\n if hasattr(Bcwd, 'get_absolute_path'):\n WQbV = Bcwd.get_absolute_path(pmON)\n else:\n WQbV = super(YKHO.__class__, YKHO).get_absolute_path(tk5Y, pmON)\n return WQbV", "def ibch(YKHO, pmON):\n return Hy7s.path.join(YKHO.roo...
[ "0.75460654", "0.703163", "0.68726957", "0.66053325", "0.6581881", "0.65690196", "0.6541015", "0.6443274", "0.6416607", "0.6398527", "0.6395462", "0.6350979", "0.6309145", "0.62691545", "0.6262258", "0.62352836", "0.62039477", "0.62021077", "0.6179466", "0.6149993", "0.614796...
0.7717655
0
Cap a number to ensure positivity
def euW5(YKHO, mLGw): if mLGw < 0: return (0, abs(mLGw)) else: return (mLGw, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzGo(exwG: float) -> float:\n Zihr = exwG / abs(exwG)\n if abs(exwG) > 1:\n return 1 * Zihr\n else:\n return exwG", "def vJPk(Ty9i):\n return 0 if Ty9i < 0.5 else 1", "def vJPk(WKvO):\n if WKvO >= 1:\n return 1\n if WKvO <= -1:\n return -1\n return WKvO", ...
[ "0.66779715", "0.6440941", "0.63967586", "0.63320374", "0.63097066", "0.6247076", "0.6237033", "0.618812", "0.610742", "0.6081091", "0.6065094", "0.6055564", "0.60179585", "0.5971493", "0.59694135", "0.59694135", "0.5947567", "0.5928196", "0.59016824", "0.59006894", "0.587115...
0.7113982
0
Calculate cosine similarity between two vectors. Larger value means closer distance
def X_iT(iArr): return epAf.sqrt(sum([tTpl * tTpl for tTpl in iArr]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gKk5(Emd4, OqEA, Yetk):\n return oyIN.dot(OqEA, Yetk) / (oyIN.linalg.norm(OqEA) * oyIN.linalg.norm(Yetk))", "def gKk5(hQHm, jlSq):\n return 1 - Catu.distance.cosine(hQHm, jlSq)", "def rHZK(OqEA, Yetk):\n return oyIN.sum(OqEA * Yetk) / oyIN.sqrt(oyIN.sum(OqEA ** 2) * oyIN.sum(Yetk ** 2))", "def g...
[ "0.89082575", "0.87807596", "0.8765071", "0.8757323", "0.8704458", "0.8663417", "0.86549795", "0.86195886", "0.8614586", "0.86102426", "0.85731614", "0.8546618", "0.85282755", "0.8495102", "0.84908754", "0.846458", "0.8446282", "0.835633", "0.8342108", "0.8335147", "0.8283703...
0.0
-1
Calculate cosine similarity between two vectors. Larger value means closer distance
def gKk5(UYjp, t3Xx): zgiF = oyIN.dot(UYjp, t3Xx) vg0C = zgiF / (X_iT(UYjp) * X_iT(t3Xx)) return vg0C
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gKk5(Emd4, OqEA, Yetk):\n return oyIN.dot(OqEA, Yetk) / (oyIN.linalg.norm(OqEA) * oyIN.linalg.norm(Yetk))", "def gKk5(hQHm, jlSq):\n return 1 - Catu.distance.cosine(hQHm, jlSq)", "def rHZK(OqEA, Yetk):\n return oyIN.sum(OqEA * Yetk) / oyIN.sqrt(oyIN.sum(OqEA ** 2) * oyIN.sum(Yetk ** 2))", "def g...
[ "0.89082575", "0.87807596", "0.8765071", "0.8757323", "0.8704458", "0.8663417", "0.86549795", "0.86195886", "0.8614586", "0.86102426", "0.85731614", "0.8546618", "0.85282755", "0.8495102", "0.84908754", "0.846458", "0.8446282", "0.835633", "0.8342108", "0.8335147", "0.8283499...
0.8283703
20
Apply moving average filter to data
def ZCKv(nPrm, yMhW): fHeP = [] zqxI = int((yMhW - 1) / 2) for exwG in range(len(nPrm)): yKcO = exwG - zqxI JCyR = yKcO + yMhW if yKcO < 0: yKcO = 0 elif JCyR > len(nPrm): JCyR = len(nPrm) fHeP.append(oyIN.mean(nPrm[yKcO:JCyR], axis=0)) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L5r1(wEf2, sYhB, _gQ_):\n xZF_ = (1 - _gQ_) * sYhB + _gQ_ * wEf2\n return xZF_", "def le3B(nPrm, KnxT):\n if KnxT == 1:\n return nPrm\n YRqq = []\n for YRbF in range(0, len(nPrm) - KnxT):\n mvm2 = oyIN.mean(nPrm[YRbF:YRbF + KnxT])\n YRqq.append(mvm2)\n return YRqq", "...
[ "0.78542423", "0.7571261", "0.7366148", "0.7348381", "0.7335369", "0.72769713", "0.72439563", "0.72439563", "0.72439563", "0.72439563", "0.7156547", "0.7155354", "0.70133585", "0.6997657", "0.69894314", "0.6939327", "0.69245493", "0.6919699", "0.6882149", "0.6879755", "0.6877...
0.6979015
15
trace of hat matrix
def yP3q(YKHO): return YKHO.hatmatrix_diag.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Umnm(jzdc):\n return oyIN.array([[0, -jzdc[2], jzdc[1]], [jzdc[2], 0, -jzdc[0]], [-jzdc[1], jzdc[0], 0]])", "def WTeJ(YKHO):\n return (YKHO.exog * YKHO.results.model.pinv_wexog.T).sum(1)", "def Umnm(WKvO):\n o4D3, ajwV, rNcn = WKvO\n return oyIN.array([[0, -rNcn, ajwV], [rNcn, 0, -o4D3], [-ajwV...
[ "0.6889055", "0.6733125", "0.65898085", "0.6480928", "0.6414644", "0.6368382", "0.635491", "0.63537055", "0.6243823", "0.6193966", "0.61677015", "0.6131412", "0.61186254", "0.6105459", "0.6102527", "0.5975236", "0.59461606", "0.5931159", "0.5920707", "0.5840832", "0.5745474",...
0.80912024
0
test, a function that takes an int parameter and returns a Boolean Assumes there exists an int, x, such that test(x) is True Returns an int, x, with the smallest absolute value such that test(x) is True In case of ties, return any one of them.
def XyOp(QOe9): YRbF = 0 while True: if QOe9(YRbF): return YRbF elif QOe9(-YRbF): return -YRbF else: YRbF += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XyOp(QOe9):\n WKvO = 0\n while True:\n if QOe9(WKvO):\n return WKvO\n if QOe9(-WKvO):\n return -WKvO\n WKvO += 1", "def XyOp(QOe9):\n fjjX = None\n for WKvO in range(-1000, 1000):\n try:\n if QOe9(WKvO):\n if not fjjX or ...
[ "0.7291673", "0.72495043", "0.6737499", "0.6697961", "0.66874444", "0.62251", "0.6087689", "0.6058267", "0.59605366", "0.59461087", "0.589299", "0.58708805", "0.580915", "0.57749426", "0.57685745", "0.57532895", "0.57171553", "0.5710129", "0.5690915", "0.56808156", "0.5663289...
0.65638626
5
Return the number of arguments of a function. If function is a member function of a class the self argument is not counted.
def GIZQ(m2Zb): import inspect qIxc = inspect.getfullargspec(m2Zb) iYWb = 0 if qIxc[0] is not None: iYWb += len(qIxc[0]) if 'self' in qIxc[0]: iYWb -= 1 if qIxc[1] is not None: iYWb += len(qIxc[1]) if qIxc[2] is not None: iYWb += len(qIxc[2]) retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lm4z(m2Zb):\n fctm = Zu_i(m2Zb)\n return len(fctm.args)", "def iYWb(eHNT):\n import inspect\n return len(inspect.getargspec(eHNT).args)", "def LvSd(vGaq):\n if not callable(vGaq):\n raise TypeError('should be callable')\n fctm = tq_1.getargspec(vGaq)\n if fctm.varargs is not Non...
[ "0.8411565", "0.7894882", "0.7680559", "0.758191", "0.7546277", "0.7486708", "0.7447148", "0.7318509", "0.73095864", "0.72532654", "0.7158524", "0.71125585", "0.7097571", "0.6972065", "0.6959153", "0.6954797", "0.6901258", "0.66932565", "0.66075003", "0.65766835", "0.65436995...
0.7958018
1
Retrieves the symbol with the given name from the symbol table, recursing upwards through parent symbol tables if it is not found in the current one.
def NMoC(YKHO, mWFP): if YKHO.entries.has_key(mWFP): return YKHO.entries[mWFP] elif YKHO.parent != None: return YKHO.parent.get(mWFP) else: return jZ4I.Type('error')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IFkU(YKHO, mWFP):\n for rmc3 in reversed(YKHO.symbols):\n if mWFP in rmc3:\n return rmc3[mWFP]\n return None", "def ccBJ(YKHO, mWFP):\n for YRbF in range(len(YKHO.symbols)):\n Csk6 = YKHO.symbols[YRbF][1]\n if Csk6.has_key(mWFP):\n return Csk6[mWFP]\n ra...
[ "0.7676115", "0.7529238", "0.73801893", "0.73465747", "0.7337479", "0.7309556", "0.72232425", "0.7164207", "0.7145717", "0.69683874", "0.6954903", "0.68479365", "0.6691473", "0.6690572", "0.6690572", "0.6690572", "0.6690572", "0.6689302", "0.6637782", "0.6517344", "0.6512442"...
0.5583373
68
Returns a tuple of the key (int piece code), restult from uci_to_1d_array_index, and move the piece was lost on. Detects when a piece is lost by counting the number of ones on the piece board mask and tracking the previous value.
def rGo9(iBIi: chess.Board, UHFx: int, WMeR: Dict[int, int], OfK8: bool) -> AzJI[int, int, int]: mKeG = (0, 0, 0) for H5ew, BWXx in WMeR.items(): Y8q7 = bin(iBIi.pieces_mask(H5ew, OfK8)).count('1') if Y8q7 < BWXx: mKeG = (H5ew, SqPg(iBIi.peek().uci()), UHFx) WMeR[H5ew] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W3GJ(YKHO, QTBn):\n for rdlD in QTBn:\n for YRbF in range(2):\n if rdlD[YRbF] != ' ' and rdlD[YRbF] == rdlD[YRbF + 1] == rdlD[YRbF + 2] == rdlD[YRbF + 3]:\n return 1 if rdlD[YRbF] == YKHO.my_piece else -1\n for fvDH in range(5):\n for YRbF in range(2):\n ...
[ "0.5752916", "0.5663796", "0.5553522", "0.551977", "0.551977", "0.5465349", "0.5442187", "0.5420017", "0.5332866", "0.5329629", "0.529409", "0.526709", "0.5244648", "0.5217476", "0.52044845", "0.51937044", "0.517292", "0.5164865", "0.5153528", "0.5148739", "0.51473325", "0....
0.6172853
0
Given a string of numbers find the sum and compare.
def sTzf(KCHu): m3_e = 0 sYbE = 0 lXgg = '' for Ko6S in KCHu: Csk6 = int(Ko6S) if Csk6 % 2 == 0: m3_e += Csk6 else: sYbE += Csk6 if m3_e > sYbE: lXgg = 'Even is greater than Odd' elif sYbE > m3_e: lXgg = 'Odd is greater than Even' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PEKc(vIwR: str) -> int:\n assert isinstance(vIwR, str), 'string must be a intager, not {}'.format(type(vIwR))\n nGz5 = 0\n njyT = '[0-9]+'\n wc5F = ZbWC.search(njyT, vIwR)\n while wc5F is not None:\n yKcO, Os4s = wc5F.span()\n if len(vIwR) == Os4s or (yKcO == 0 and ' ' == vIwR[Os4s...
[ "0.76104987", "0.7496596", "0.7332215", "0.7276831", "0.7220677", "0.7087848", "0.6962798", "0.69627535", "0.6852474", "0.6845279", "0.6835525", "0.68145716", "0.68145716", "0.6790226", "0.6790226", "0.6745596", "0.6743191", "0.6577126", "0.6485891", "0.647284", "0.64614165",...
0.0
-1
Given a samples set, summarizes the features for all samples in this set that are not in another set (i.e., are unique to the given sample set compared to the other set).
def FnNs(YKHO, hAkU: SampleSet, twyM: SampleSet) -> rLdf.DataFrame: ocWp = YKHO.summary(hAkU) JCfm = YKHO.summary(twyM) uzWY = ocWp.merge(JCfm, left_index=True, right_index=True, how='left', indicator=True, suffixes=('_x', '_y')) _C3g = {fvDH + '_x': fvDH for fvDH in YKHO.summary_columns} _oCq = uzW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kcwm(YKHO, oawl):\n vLm2 = []\n for GiNl in YKHO.sampleList:\n a1PO = oawl.taxonOf(GiNl['tax_name'])\n if not a1PO:\n vLm2 = [{'tax_name': GiNl['tax_name'], 'count_norm': GiNl['count_norm'], 'tax_rank': GiNl['tax_rank']}] + vLm2\n return _63t(vLm2)", "def FQJE(fuxk, t3Zq):\n...
[ "0.60903126", "0.5714922", "0.5643657", "0.56271267", "0.5622467", "0.5602994", "0.5562622", "0.5528396", "0.55237013", "0.5521835", "0.54850507", "0.5477182", "0.5462781", "0.5454223", "0.54471254", "0.5441226", "0.5440976", "0.54224664", "0.54080325", "0.53846353", "0.53699...
0.6611452
0