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
Provides an interface between the attributes of the particle and special names that indicate components of Cartesian3DVectors (like px and vy) and also E.
def vGD0(YKHO, K_Sa): if hasattr(YKHO, K_Sa): BWXx = getattr(YKHO, K_Sa) if not isinstance(BWXx, qjM9): return BWXx if K_Sa == 'E': return YKHO.getEnergy() LF1Z = K_Sa.replace('p', '') iPMy = K_Sa.replace('v', '') if K_Sa.startswith('p') and LF1Z in ['x', 'y', 'z'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def il4J(*qIxc, xC3W: Union[AnyStr, bool]='', wyyA: bool=True, HEWd: Union[float, bool]=0.0, UHFx: bool=True, zZST: bool=True, MLMv: bool=True, xExD: float=0.0, qFju: Union[float, List[float], bool]=0.0, nGP8: Union[float, bool]=0.0, Fmqg: Union[List[float, float, float], List[List[float, float, float]], bool]=Non...
[ "0.69919753", "0.6405855", "0.62593144", "0.61442405", "0.61225903", "0.6092437", "0.60041267", "0.6002357", "0.59736216", "0.5897076", "0.58307093", "0.5758628", "0.5707094", "0.56946874", "0.56833655", "0.5604477", "0.55983365", "0.55983365", "0.55954325", "0.5576338", "0.5...
0.61414677
4
Method checks to see if the passed in table name string exists in the current database. It returns True if it exists, False if it does not.
def wthm(YKHO, dkEj): D1Eo = 'SELECT count(*) FROM sqlite_master' lgHt = "type='table' AND name='{}';".format(dkEj) YKHO.cursor.execute('{} WHERE {}'.format(D1Eo, lgHt)) return YKHO.cursor.fetchone()[0] == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n2Bh(YKHO, GTA_):\n if YKHO.__dbfile is None:\n return False\n N1p7 = YKHO._conn.cursor()\n N1p7.execute(\"SELECT name FROM sqlite_master WHERE type='table' ORDER BY name\")\n xU0C = [a1PO[0] for a1PO in N1p7.fetchall()]\n return GTA_ in xU0C", "def n2Bh(YKHO, GTA_):\n n2Bh = YKHO.qu...
[ "0.83923465", "0.82972556", "0.8278821", "0.8274654", "0.82192963", "0.8217764", "0.8186757", "0.8178282", "0.8156295", "0.8109164", "0.8107967", "0.80721045", "0.80646104", "0.8026469", "0.802129", "0.80188996", "0.80120194", "0.80039436", "0.80017114", "0.7960525", "0.79349...
0.7938891
20
Method is used to close the datbase connection.
def DDI8(YKHO): YKHO.connection.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n YKHO.connection.close()", "def ngVb(YKHO):\n YKHO.conn.close()", "def DDI8(YKHO):\n YKHO.conn.close()", "def DDI8(YKHO):\n YKHO.conn.close()", "def DDI8(YKHO):\n YKHO.conn.close()", "def DDI8(YKHO):\n if YKHO._dbopen:\n YKHO._dbcon.close()", "def DDI8(YKHO):\n...
[ "0.76934767", "0.7693177", "0.76594555", "0.76594555", "0.76594555", "0.7659069", "0.76558864", "0.76259303", "0.7590795", "0.7583945", "0.75826347", "0.7569925", "0.75540674", "0.75540674", "0.7544967", "0.75250846", "0.747603", "0.7474878", "0.74587214", "0.7453189", "0.744...
0.74739313
23
Given two object's attributes, if they are equivalent, return valueEquivalent object, else return None.
def tVwH(SOYA, BzZr, N4Jv, RL4V, n2qr): eWMe = SOYA.index_by_type(PZUD) for Q3Ge in eWMe: Mkmy = Q3Ge.relationship id_0 = Mkmy.obj_list a5Jp = Mkmy.attr_list if BzZr in id_0 and RL4V in id_0 and (N4Jv in a5Jp) and (n2qr in a5Jp): return Q3Ge return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return Elif is not None and YKHO.name == Elif.name and (YKHO.type is Elif.type) and dict.__eq__(YKHO.attrs, Elif.attrs)", "def T0rY(YKHO, Elif):\n return id(YKHO) == id(Elif)", "def xa14(YKHO, Elif):\n return YKHO.value == Elif or YKHO.value == Elif.value", "def xa14(YKHO, El...
[ "0.5685698", "0.5675666", "0.5655813", "0.5637368", "0.56083894", "0.5590845", "0.55894345", "0.55642265", "0.5532535", "0.54979646", "0.54707646", "0.54639596", "0.5456215", "0.54445344", "0.5434761", "0.54320115", "0.54219925", "0.53839636", "0.5355038", "0.5354938", "0.534...
0.6405555
0
inserts a new Node into the correct sorted position in the list
def No4q(YKHO, BWXx): if YKHO.__head is None: YKHO.__head = o7DN(BWXx, None) elif BWXx < YKHO.__head.data: YKHO.__head = o7DN(BWXx, YKHO.__head) else: exwG = YKHO.__head while exwG.next_node is not None and exwG.next_node.data <= BWXx: exwG = exwG.next_node ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def No4q(YKHO, BWXx):\n BdN0 = o7DN(BWXx)\n if YKHO.__head is None:\n YKHO.__head = BdN0\n return\n DpUl = YKHO.__head\n if BdN0.data < DpUl.data:\n BdN0.next_node = YKHO.__head\n YKHO.__head = BdN0\n return\n while DpUl.next_node is not None and BdN0.data > DpUl.n...
[ "0.78369576", "0.7744504", "0.7545904", "0.71255237", "0.70642745", "0.7023171", "0.6979266", "0.6962061", "0.69382703", "0.69353247", "0.6934543", "0.6922758", "0.6913487", "0.6889499", "0.68763757", "0.68518615", "0.68382025", "0.6819735", "0.6807978", "0.6803154", "0.67937...
0.7756591
1
Create a Flask application using the app factory pattern.
def LUif(sCKU=None): P4t4 = L2w0(__name__, instance_relative_config=True) P4t4.config.from_object('config.settings') P4t4.config.from_pyfile('settings.py', silent=True) if sCKU: P4t4.config.update(sCKU) CBZq(P4t4) @P4t4.before_first_request def JawI(): cuiw['email'] = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object('app.configs.config')\n P4t4.config.from_object('app.configs.settings')\n return P4t4", "def LUif(GPtr=PSrQ):\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(GPtr)\n NCls.init_app(P4t4)\n nNXP.init_app(P4t4)\n fHeP.init_ap...
[ "0.8629991", "0.8587432", "0.8567094", "0.8560846", "0.8548992", "0.8533256", "0.8532855", "0.85154873", "0.8468547", "0.84618294", "0.84501874", "0.8400496", "0.83925307", "0.8380182", "0.8366697", "0.8356823", "0.8333603", "0.83313555", "0.8325678", "0.8316702", "0.8298241"...
0.7829071
69
Improves default OpenCV imshow method by adding the possibility to correctly visualize small images without them being stretched. This is accomplished by adding a border around the image.
def r2sP(_6KP, LNo8, xxp5=(0, 0, 0)): zHMF = 400 FCOB = 50 if len(LNo8.shape) == 2: H2v2, TVTK = LNo8.shape elif len(LNo8.shape) == 3: H2v2, TVTK, bGrB = LNo8.shape else: raise ValueError('Invalid image: wrong shape') if TVTK < zHMF: D5cA = (zHMF - TVTK) / 2 e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t9Ic(LNo8):\n QrM1.imshow(LNo8)\n QrM1.axis('off')\n QrM1.axis('image')\n QrM1.tight_layout(pad=0)", "def WjA1(VXjJ):\n QrM1.figure(figsize=(10, 4))\n QrM1.imshow(VXjJ)\n QrM1.show()", "def hfyW(VXjJ, VsCC=400, leAC='hoge'):\n ROpF = VXjJ.shape\n dMYj = ROpF[0] / ROpF[1]\n _YG...
[ "0.70863444", "0.70714533", "0.6992935", "0.69540083", "0.68937224", "0.68658483", "0.66895604", "0.66291314", "0.6627189", "0.65255374", "0.6474028", "0.6418489", "0.63437307", "0.6293873", "0.6281903", "0.6276204", "0.6274199", "0.6251514", "0.62197226", "0.6217757", "0.621...
0.69175327
4
Xavier initialization of network weights
def xyz5(ROpF, si3H=1): gqRb = -si3H * oyIN.sqrt(1.0 / oyIN.sum(ROpF)) ODP9 = si3H * oyIN.sqrt(1.0 / oyIN.sum(ROpF)) return ZylS.random_uniform(ROpF, minval=gqRb, maxval=ODP9, dtype=ZylS.float32)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dGkD(YKHO):\n U78l.init.xavier_normal_(YKHO.out.weight)", "def i7WW(YKHO):\n xyz5(YKHO.output_proj, distribution='uniform', bias=0.0)", "def AUlE(YKHO):\n YKHO.weights = [oyIN.random.uniform(-1 / PZyS(jlJz), 1 / PZyS(jlJz)) for jlJz, _Llj in zip(YKHO.sizes[:-1], YKHO.sizes[1:])]\n YKHO.biases =...
[ "0.8129632", "0.8015472", "0.7956181", "0.7529412", "0.7290586", "0.717985", "0.7132147", "0.69870454", "0.69868577", "0.69820243", "0.6976076", "0.6973984", "0.6950588", "0.6943784", "0.6942138", "0.69342655", "0.69187987", "0.69155324", "0.69155324", "0.69155324", "0.690602...
0.0
-1
Get absolute path to resource, works for dev and for PyInstaller
def JFat(YKHO, t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep", "def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join...
[ "0.8369681", "0.8280762", "0.82485825", "0.813948", "0.81143844", "0.8098669", "0.8094155", "0.8079872", "0.80678046", "0.80674845", "0.8062606", "0.8062606", "0.8062606", "0.8062606", "0.8062606", "0.8062606", "0.8062606", "0.80572", "0.80545497", "0.8044992", "0.8044992", ...
0.78708136
44
Returns only the published items in the current queryset.
def Aoiw(YKHO): return YKHO.filter(status='P')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wc3e(YKHO):\n return super(aN06, YKHO).get_query_set().filter(is_published=True)", "def uk7g(YKHO) -> eBH2[ZYvt]:\n return T97t.objects.filter(published__lt=rIAI.now()).order_by('-published')", "def LUo9(YKHO, BEic=None):\n return YKHO.get_model().published.all()", "def LUo9(YKHO, BEic=None):\n ...
[ "0.81438744", "0.74145734", "0.7291102", "0.7291102", "0.72220045", "0.70331186", "0.69521487", "0.69521487", "0.68891364", "0.6855959", "0.6855959", "0.6768951", "0.6750259", "0.66901994", "0.66622055", "0.664425", "0.66379416", "0.65942293", "0.65942293", "0.65942293", "0.6...
0.72986066
2
Returns only the items marked as DRAFT in the current queryset.
def Thi7(YKHO): return YKHO.filter(status='D')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B3YN(YKHO, SR0I, mWFP, BWXx):\n if oOc6(BWXx):\n return SR0I.filter(quantity__lte=0)\n else:\n return SR0I.exclude(quantity__lte=0)", "def k66M(YKHO):\n OUEC = {'awardsearch__latest_transaction__isnull': True, 'date_signed__isnull': True, 'total_obligation__isnull': True}\n return s...
[ "0.5909098", "0.5792004", "0.5494555", "0.5467982", "0.5406529", "0.53282803", "0.5287305", "0.5213981", "0.52133185", "0.5204236", "0.51955587", "0.5119305", "0.5100358", "0.5100358", "0.5060742", "0.5060468", "0.5059339", "0.5052783", "0.50426376", "0.5017745", "0.5008243",...
0.56377304
2
Returns a list with the countries from the database
def AlaH(YKHO): return YKHO.__getColumnData(OUqj, 'country')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TBEy(Emd4) -> list[str]:\n with Emd4.cursor() as DpUl:\n DpUl.execute('SELECT country_code FROM countries;')\n return list((rdlD[0] for rdlD in DpUl.fetchall()))", "def TBEy():\n dixj = NCls.session.query(Fr3P.to_country.distinct().label('to_country'))\n vxW9 = [rdlD.to_country for rdl...
[ "0.85628647", "0.8101554", "0.7953373", "0.7906936", "0.762694", "0.74032", "0.73778915", "0.72730756", "0.72724813", "0.7005522", "0.6980284", "0.6805332", "0.6681277", "0.6641916", "0.6639538", "0.66072136", "0.66072136", "0.6593001", "0.6559602", "0.65143824", "0.65030825"...
0.7606515
5
Get an mturk client for usage with mturk_utils
def SGLh(YKHO, dmH9: str) -> ImMB: return YKHO.datastore.get_client_for_requester(dmH9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxbw():\n return i9zE(DbMD, authkey='strumamor')", "def bxbw(YKHO):\n return YKHO.client", "def QtIL():\n nonlocal client\n if not x0hE:\n x0hE = ndlg.Twitter(onZO)\n return x0hE", "def bxbw():\n x0hE = zyll.Client(client_id=TafS)\n return x0hE", "def bxbw(MYjm, QDug, zn0c='...
[ "0.62090933", "0.6118014", "0.6089065", "0.6075879", "0.5911714", "0.58852077", "0.58716124", "0.58710784", "0.58672416", "0.58672416", "0.5771589", "0.57349956", "0.56708616", "0.5649908", "0.559883", "0.55752206", "0.5573978", "0.555764", "0.5534941", "0.5528498", "0.552448...
0.5781972
10
Return the path to the `wrap_crowd_source.js` file for this provider to be deployed to the server
def DXTV(Emd4): return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'wrap_crowd_source.js')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO):\n return Hy7s.path.join(BX_Q, YKHO.filename)", "def pmON(YKHO) -> str:\n return YKHO.src + '/'", "def eX9u():\n return RkCj.resource_filename('linkedin.mobster.har.visualization.js', None)", "def neIg():\n tAcK = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.dirname...
[ "0.6506409", "0.64245355", "0.6378719", "0.62935174", "0.6221082", "0.62140304", "0.621297", "0.62058437", "0.62000644", "0.6144617", "0.61140627", "0.6102424", "0.60733247", "0.6052207", "0.6030184", "0.5986458", "0.5984777", "0.59069264", "0.5870313", "0.5858279", "0.584577...
0.8392228
0
Return the quadratic form preserved by the orthogonal group.
def ZN3z(YKHO): from sage.matrix.constructor import identity_matrix r8hN = identity_matrix(YKHO.base_ring(), YKHO.degree()) r8hN.set_immutable() return r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZN3z(YKHO):\n r8hN = YKHO.gap().InvariantQuadraticForm()['matrix'].matrix()\n r8hN.set_immutable()\n return r8hN", "def OhQG(YKHO):\n return YKHO.basis2grid(oyIN.eye(YKHO.nb), axis=0)", "def T8ck(YKHO):\n YKHO.dualEigenmatrix()", "def qoUb(tpio):\n oyIN.random.seed(103)\n T8ck = HHfl...
[ "0.6096417", "0.56024075", "0.55070233", "0.5403502", "0.5311804", "0.5298959", "0.5238195", "0.5185676", "0.5149036", "0.5116379", "0.51027095", "0.5101817", "0.50973207", "0.50780195", "0.50576276", "0.50555134", "0.505467", "0.5054126", "0.50283444", "0.5016813", "0.500739...
0.608305
1
Return the quadratic form preserved by the orthogonal group.
def ZN3z(YKHO): r8hN = YKHO.gap().InvariantQuadraticForm()['matrix'].matrix() r8hN.set_immutable() return r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZN3z(YKHO):\n from sage.matrix.constructor import identity_matrix\n r8hN = identity_matrix(YKHO.base_ring(), YKHO.degree())\n r8hN.set_immutable()\n return r8hN", "def OhQG(YKHO):\n return YKHO.basis2grid(oyIN.eye(YKHO.nb), axis=0)", "def T8ck(YKHO):\n YKHO.dualEigenmatrix()", "def qoUb...
[ "0.6080858", "0.5600769", "0.550645", "0.5401144", "0.5314119", "0.53019667", "0.5246059", "0.51906383", "0.51455516", "0.5117674", "0.5107267", "0.51031226", "0.5094862", "0.50805855", "0.50642264", "0.50582856", "0.5055545", "0.5054465", "0.5027284", "0.5016461", "0.5003758...
0.60962576
0
Yield successive nsized chunks from arr.
def eHxA(ezWE, exwG): for YRbF in range(0, len(ezWE), exwG): yield ezWE[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(ezWE, exwG):\n for YRbF in range(0, len(ezWE), exwG):\n yield ezWE[YRbF:YRbF + exwG]", "def tOBQ(ezWE, zNig: int):\n for YRbF in range(0, len(ezWE), zNig):\n yield ezWE[YRbF:YRbF + zNig]", "def eHxA(qw7D, zNig: int):\n for YRbF in range(0, len(qw7D), zNig):\n yield qw7D[Y...
[ "0.8175373", "0.7678264", "0.7453133", "0.71820194", "0.7092048", "0.708483", "0.70187324", "0.6972917", "0.69657755", "0.6954322", "0.694991", "0.6949137", "0.6945697", "0.67928576", "0.67697114", "0.6767295", "0.67591834", "0.6755951", "0.6751896", "0.6748143", "0.6748143",...
0.8161355
1
Sigmoid scaled to logarithm of maximum sales scaled by 20%.
def WrZX(WKvO): return ZylS.nn.sigmoid(WKvO) * ZylS.math.log(Yblw) * 1.2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X2PU(WKvO):\n return -RKD7(1 / WKvO - 1)", "def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + tTpl ** (-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + r8hN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 - naF9(tTpl, -WKvO))", "def m1Hg(WKvO):\n ret...
[ "0.7279069", "0.7055931", "0.70535105", "0.7038796", "0.70300955", "0.702078", "0.7003955", "0.6995886", "0.6995886", "0.6995886", "0.6995886", "0.6995886", "0.6995886", "0.69868886", "0.69819033", "0.69805765", "0.6973958", "0.6969267", "0.6968753", "0.6966772", "0.69632316"...
0.8239424
0
Get months and days until the next birthday. Approximate, as it does not count specific month durations, but approximates to the nearest 30 days
def Iqj6(Kb0M, yo7_): try: HDT_ = Kb0M.replace(year=yo7_.year) except ValueError: HDT_ = Kb0M.replace(day=28, year=yo7_.year) if HDT_ < yo7_: try: HDT_ = Kb0M.replace(year=yo7_.year + 1) except ValueError: HDT_ = Kb0M.replace(day=28, year=yo7_.year + 1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kci2(YKHO):\n CK9p = (qcWV.date(1996, 4, 1), qcWV.date(1996, 5, 1))\n hlel = YKHO.expander._get_next_days(*CK9p)\n aEqx = 30\n n5sN = (hlel[-1] - hlel[0]).days\n YKHO.assertEqual(aEqx, n5sN)", "def rmrb(lO87, x0eS, CjKC):\n if x0eS == 12 and CjKC == 30:\n sWyl, xD8K, Scik = (lO87 + 1...
[ "0.6288889", "0.60788447", "0.60556895", "0.5999455", "0.5990442", "0.5966739", "0.59565675", "0.59494776", "0.5947355", "0.5923941", "0.5923883", "0.5864053", "0.58600646", "0.58422095", "0.5839163", "0.5800275", "0.57847387", "0.57738745", "0.5772187", "0.5763912", "0.57611...
0.67215574
0
returns the new position of the camera, and never moves beyond the boundaries.
def QdZT(YKHO): brV5 = YKHO.__pos[0] + YKHO.__speed[0] yuPi = YKHO.__pos[1] + YKHO.__speed[1] oSiD = 0 BvMs = RjR0 - zMH2 voqw = 0 gM5V = uF9H - vkJL if brV5 < oSiD: brV5 = oSiD if brV5 > BvMs: brV5 = BvMs if yuPi < voqw: yuPi = voqw if yuPi > gM5V: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def igcO(YKHO):\n return ITC7(TAm4(YKHO.camera, YKHO.camera.position, invert=True), TAm4(YKHO.camera, YKHO.camera.focal_point, invert=True), YKHO.camera.up)", "def nfPp(YKHO):\n shtX = _qLf(YKHO.data['poses']['marker'])\n bD__ = _qLf(shtX)\n bD__.pose.position.x += 0.6\n bD__.pose.position.z += 0....
[ "0.7439344", "0.70752126", "0.6709478", "0.6644974", "0.6638568", "0.6428228", "0.6418587", "0.63851464", "0.6370127", "0.6293537", "0.62235427", "0.6212449", "0.61700857", "0.6145567", "0.61447865", "0.6073914", "0.6051704", "0.6033434", "0.60299134", "0.6029275", "0.5996692...
0.0
-1
Create a mat3 from three vec3 by taking them as columns.
def PmQw(eHNT: vec3, vC9B: vec3, P6bq: vec3) -> oLsf: return oLsf(eHNT[0], vC9B[0], P6bq[0], eHNT[1], vC9B[1], P6bq[1], eHNT[2], vC9B[2], P6bq[2])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BiYG(YKHO):\n MRLX, eJY7, Kd7Q, Tm7K, _zTI, Algd, BaTS, xOQL, lg4w, e42p, s2DS, zEvH, EXpf, Mv4x, N41D, LlaE = YKHO.mlist\n return x1sY(MRLX, eJY7, Kd7Q, _zTI, Algd, BaTS, lg4w, e42p, s2DS)", "def e290(WKvO, LVAh, epBp):\n return oyIN.array([WKvO, LVAh, epBp], dtype=float)", "def e290(WKvO, LVAh, ...
[ "0.69429797", "0.67079175", "0.6656125", "0.64689475", "0.6413699", "0.6411789", "0.6236136", "0.61622447", "0.61589396", "0.6035048", "0.6026264", "0.6024904", "0.6005236", "0.6000067", "0.5996003", "0.59812057", "0.5907016", "0.58996314", "0.58707803", "0.5864417", "0.58078...
0.805996
0
Allows us to fetch the undisputed hero of the trilogy, R2D2.
def toV7(tk5Y, TDvd, xgXB): if xgXB == 5: return IgtQ return kweV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def toV7(YKHO, qxeD, _epf):\n if _epf == DB1d.BULK:\n return NyHp(YKHO.api_key, qxeD)\n elif _epf == DB1d.GENERAL_CLUCK:\n return hEQa(YKHO.api_key, qxeD)\n elif _epf == DB1d.CAKE_MONSTER:\n return Iw_k(YKHO.api_key, qxeD)\n elif _epf == DB1d.BOTMON:\n return rOMJ(YKHO.api_k...
[ "0.58030725", "0.56142896", "0.50956094", "0.4873844", "0.48610187", "0.48471308", "0.4828985", "0.47979692", "0.47733366", "0.4772596", "0.47679102", "0.47579518", "0.47457954", "0.47345772", "0.47205684", "0.4719958", "0.4691983", "0.46911335", "0.4688468", "0.46847045", "0...
0.5789425
1
Imports a JSON file and returns a Python dictionary
def pHYE(WJHQ) -> dict: if not Hy7s.path.exists(WJHQ): raise Exception(f"Specified file '{WJHQ}' does not exist") with open(WJHQ) as rVmU: return qQXR.load(rVmU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V9dS(YKHO) -> dict:\n with open(YKHO.path, encoding='utf8') as wM3v:\n return qQXR.load(wM3v)", "def X8KK(t6ue) -> dict:\n try:\n with open(t6ue, 'r') as eHNT:\n zgjV = qQXR.load(eHNT)\n return zgjV\n except Exception as error:\n print(f'Error: importJSON({t6ue...
[ "0.85891896", "0.8294126", "0.7883314", "0.78677744", "0.7862479", "0.7810096", "0.773051", "0.7715923", "0.7708804", "0.7706261", "0.7698648", "0.7689351", "0.7685956", "0.76815856", "0.76681316", "0.76516634", "0.76461405", "0.7635216", "0.76350874", "0.7632074", "0.7598816...
0.0
-1
Imports and parses a JSON file and returns a decrypted JSON dictionary
def d_GI(YKHO, WJHQ) -> dict: GPtr = YKHO.import_secrets_file(WJHQ) YKHO.traverse_and_decrypt(GPtr) return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V9dS(YKHO) -> dict:\n with open(YKHO.path, encoding='utf8') as wM3v:\n return qQXR.load(wM3v)", "def PSj2(nUeQ: str) -> cuzp[str, cuzp[str, cuzp[str, str]]]:\n if Hy7s.path.exists(nUeQ):\n with open(nUeQ, 'r') as eZ_W:\n return qQXR.load(eZ_W)\n else:\n print('Invalid...
[ "0.7496803", "0.72200453", "0.7114453", "0.7054943", "0.70100874", "0.6946409", "0.69438595", "0.6932254", "0.6931001", "0.6927639", "0.6910518", "0.69079775", "0.69079775", "0.6903936", "0.68912214", "0.6884152", "0.68780774", "0.6877773", "0.68740386", "0.6871525", "0.68643...
0.0
-1
View function for home page of site.
def d6pt(QePW): llaM = oPx1.objects.all() llaM = llaM[0:4] HB_L = WCpz.objects.all().count() n_Tu = M87a.objects.all() B373 = n_Tu[0:4] return _1tc(QePW, 'index.html', context={'projects': llaM, 'press': HB_L, 'services': B373})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')", "def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')", "def kZiy(QePW):\n return _1tc(QePW, 'home.html')", "def C_QL(QePW):\n return _1tc(QePW, 'core/homepage.html')", "def C_QL(QePW):\n return SGJU('h1ds_core/homepage.html'...
[ "0.8493426", "0.84268916", "0.83415145", "0.83306193", "0.82976943", "0.8295291", "0.8276345", "0.82545686", "0.82155704", "0.8132563", "0.81246215", "0.81224865", "0.8121264", "0.81049734", "0.8098485", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0.80935514", "0...
0.0
-1
Get or set max_frame_skip.
def oFkJ(YKHO): return YKHO._max_frame_skip
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S2wq(YKHO):\n if not YKHO.frame_skipping_allowed:\n return 0\n EdbX = YKHO.frame_rate_ctrl_sup >> 1 & 7\n if EdbX == 0:\n return -1\n return EdbX * 0.5", "def Xlho(YKHO):\n return 8", "def fGXe(YKHO):\n return YKHO._capture_limit", "def hcKj(YKHO):\n return YKHO.__num_t...
[ "0.6708408", "0.6518767", "0.6184949", "0.58162093", "0.5772068", "0.5741289", "0.57290554", "0.5702153", "0.56506157", "0.5638185", "0.5628019", "0.56244713", "0.5580224", "0.5580224", "0.5577683", "0.55365443", "0.55287576", "0.5512605", "0.5510468", "0.5507034", "0.5507034...
0.8373689
0
Set window caption for both Pygame clock and GameClock.
def vKYR(): if kYMG: a9eO.display.set_caption('Loop=Pygame Kill=%s MaxFPS=%d Runtime:[FPS=%d Balls=%d]' % (dlrF, lvK8, bM3Q.get_fps(), len(FRhP))) else: a9eO.display.set_caption(' '.join(('Loop=GameClock Tab:[TPS=%d MaxFPS=%d] Predict=%s Wait=%s Kill=%s', 'Runtime:[FPS=%d UPS=%d Balls=%d]')) % (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vKYR(YKHO, leAC=None, _G4g=None):\n a9eO.display.set_caption(leAC if leAC is not None else 'Game')\n if _G4g is not None:\n a9eO.display.set_icon(YKHO.__manager.get_image(_G4g))", "def dgF0(YKHO):\n rPXJ = '{} - FPS: {:.2f}'\n KzVY = rPXJ.format(Un5w.CAPTION, YKHO.clock.get_fps())\n g74...
[ "0.7012242", "0.6379176", "0.6298891", "0.6189515", "0.6189515", "0.61771625", "0.6154267", "0.61143386", "0.6017634", "0.593406", "0.5787212", "0.57735145", "0.5733958", "0.57310814", "0.5718029", "0.5701014", "0.57004046", "0.56815714", "0.56677616", "0.56650573", "0.564746...
0.78642577
0
Batch generator, yields slice indices
def nJ0e(WZrJ): global num_batches, args, ds_sizes for Fg_i in range(PmAP[WZrJ]): U5h4 = Fg_i * qIxc.batch_size qYbV = (Fg_i + 1) * qIxc.batch_size if Fg_i == PmAP[WZrJ] - 1: qYbV = _Knj[WZrJ] yield (U5h4, qYbV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n Wc9F = []\n for yu4z in range(YKHO.episode_num):\n KndY = ht2j.randperm(len(YKHO.idx_list))[:YKHO.way_num]\n for Z9rn in KndY:\n k52S = YKHO.idx_list[Z9rn.item()]\n oeNL = ht2j.randperm(k52S.size(0))[:YKHO.image_num]\n Wc9F.append(k52S[oeNL])\n...
[ "0.7030558", "0.699595", "0.69298756", "0.68601197", "0.6832218", "0.6795262", "0.6717477", "0.6661854", "0.65953773", "0.65926987", "0.654558", "0.6481695", "0.64709574", "0.644917", "0.6448157", "0.644437", "0.643661", "0.64290035", "0.64193326", "0.64193326", "0.64183414",...
0.0
-1
Test case for the validate_str_substitution function when there are too many specifiers for a multiple values.
def BW8N(YKHO): rPXJ = '{0} too {1} many {2}' w73T = 2 tO9_ = 'The number of "{}" specifiers in the formatter exceeds the number of source fields.' with jKi7.assertRaisesRegex(YKHO, sUXu, tO9_): ZDz3(rPXJ, w73T)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SeAO(YKHO):\n rPXJ = '{0} too few {1}'\n w73T = 3\n tO9_ = 'The formatter contains too few \"{}\" specifiers for the number of source fields.'\n with jKi7.assertRaisesRegex(YKHO, sUXu, tO9_):\n ZDz3(rPXJ, w73T)", "def r4cm(YKHO):\n rPXJ = '{0} one too many {1}'\n w73T = 1\n tO9_ =...
[ "0.77387667", "0.704363", "0.70252943", "0.6271981", "0.6192022", "0.6164257", "0.60407287", "0.60207987", "0.5852523", "0.58169687", "0.57305413", "0.5712452", "0.5707186", "0.57060534", "0.5697903", "0.56634915", "0.5498339", "0.549623", "0.54948443", "0.5450721", "0.544724...
0.75915784
1
Test case for a field name with a space.
def Zx0Z(YKHO): with YKHO.assertRaises(sUXu): KCyC('user id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gXWN(YKHO):\n Jyyj = YKHO.record.find(\"field[@name='name']\")\n YKHO.assertEqual(Jyyj.text, 'GUH-ADT', 'Incorrect Name Field')", "def Zx0Z(YKHO):\n with YKHO.assertRaises(sUXu):\n PpMx('http log')", "def Gw8C(YKHO):\n try:\n KCyC('_identifier')\n except sUXu:\n YKHO.fai...
[ "0.70056397", "0.67619824", "0.6710414", "0.6692096", "0.66895425", "0.6589791", "0.6458364", "0.64133483", "0.6384269", "0.6309959", "0.6281411", "0.6173597", "0.61537987", "0.6149685", "0.61195415", "0.6065407", "0.60509354", "0.60304695", "0.5992413", "0.5987188", "0.59464...
0.7365769
0
Test case for a valid field name.
def B_8I(YKHO): try: KCyC('good_field_name') except sUXu: YKHO.fail('Field name raised ValidationError unexpectedly')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gw8C(YKHO):\n try:\n KCyC('_identifier')\n except sUXu:\n YKHO.fail('Field name raised ValidationError unexpectedly')", "def ZQ_2(YKHO):\n with YKHO.assertRaises(sUXu):\n KCyC('_id')", "def fD1j(YKHO):\n YKHO.assertIn('name', YKHO.fields)", "def TQOf(vXX7):\n NDyv.asse...
[ "0.8004557", "0.7859619", "0.7581208", "0.7289784", "0.7268989", "0.71208143", "0.70402896", "0.6968805", "0.6939666", "0.69157976", "0.6897933", "0.6821266", "0.6778675", "0.675043", "0.66696423", "0.66601723", "0.66555065", "0.6599102", "0.6596775", "0.6596287", "0.65885437...
0.6981006
7
Test case for an invalid file type.
def HT9M(YKHO): ksDV = FM6F() ksDV.name = 'bad_file_name.pem.jar' with YKHO.assertRaises(sUXu): Fu2C(ksDV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cGeH(QCyC):\n tZbo(QCyC, exc_message='Wrong suffix')", "def K2VT(YKHO):\n return YKHO._tag == 'file_type_error'", "def xWBV(YKHO):\n assert YKHO.filekind in YKHO.obs_package.FILEKINDS, 'Invalid filekind ' + repr(YKHO.filekind) + ' in ' + repr(YKHO.filename)", "def UmHe(YKHO):\n Ux0P = 'somena...
[ "0.77751774", "0.77320075", "0.76051164", "0.73831254", "0.729394", "0.726827", "0.7230198", "0.720948", "0.7105418", "0.7041137", "0.70369047", "0.7023472", "0.6942793", "0.69416946", "0.69330204", "0.691751", "0.68991613", "0.6882623", "0.6814948", "0.6789643", "0.67172736"...
0.0
-1
Estimate the discretization error for a given solution. The discretization error could be the error w.r.t. the analytical solution of the given problem or the model reduction error w.r.t. a corresponding highdimensional |Discretization|.
def bbTD(YKHO, KkY2, yGTL=None): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pZS7(MKlR, rVnq, PJWX=True):\n F16R = 1.25\n Xwm_ = 0.95\n aV02 = 3.05\n yx92 = max(abs(rVnq[1] - rVnq[0]), abs(rVnq[2] - rVnq[1]), abs(rVnq[2] - rVnq[0]))\n KuY3 = MKlR[1] / MKlR[0]\n ha76 = MKlR[2] / MKlR[1]\n Fgtw = rVnq[1] - rVnq[0]\n qYhk = rVnq[2] - rVnq[1]\n P1dF = {}\n if ...
[ "0.627564", "0.5707004", "0.5562071", "0.5482781", "0.5396282", "0.53853613", "0.5310517", "0.5307367", "0.53047454", "0.5276714", "0.5242953", "0.5207475", "0.51973164", "0.5190131", "0.518041", "0.5155854", "0.5143549", "0.51388776", "0.5138767", "0.51260996", "0.5121044", ...
0.0
-1
save_json(NAME) save json as NAME
def U1ai(YKHO, nUeQ): with open(nUeQ, 'w', encoding='utf8') as eHNT: qQXR.dump(YKHO, eHNT, ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ssY8(YKHO, dOj8):\n with open(dOj8, 'w') as _RR0:\n qQXR.dump(YKHO.pet_file, _RR0)\n YKHO.pet_file_name = dOj8", "def U1ai(ix6T, pmON, mWFP):\n if 'txt' not in mWFP:\n mWFP += '.json'\n with open(Hy7s.path.join(pmON, mWFP), 'w') as wM3v:\n qQXR.dump(ix6T, wM3v)", "def u...
[ "0.8079377", "0.79723835", "0.77595055", "0.7578833", "0.7560741", "0.7484027", "0.7448826", "0.73992825", "0.7389294", "0.73578846", "0.7246028", "0.72265", "0.72163373", "0.72155607", "0.71672624", "0.7108248", "0.7074579", "0.70703423", "0.7061496", "0.70600367", "0.702755...
0.67047083
56
Renders the home page.
def kZiy(QePW): assert isinstance(QePW, eu5F) XHmJ = jYEv.GetCurrentWeather() QpfX = {'title': 'Heretic Family', 'Year': qcWV.now().year, 'Temp_String': XHmJ.temperature, 'FeelsLike': XHmJ.feelslike, 'Weather_Icon': XHmJ.iconurl, 'IconName': XHmJ.iconname, 'ObservationLocation_Full': XHmJ.stationid.observat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZ...
[ "0.85574406", "0.853399", "0.8351404", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.827363", "...
0.0
-1
If given an integer, get the human EnsemblRelease object for that Ensembl version. If given a string, return latest EnsemblRelease which has an equivalent reference. If the given name is a UCSC genome (e.g. hg19) then convert it to the equivalent Ensembl reference (e.g. GRCh37). If given a PyEnsembl Genome, simply use ...
def KU9v(G5f7): H52S = False if isinstance(G5f7, N7AY): l5nL = G5f7 elif iUPF(G5f7): l5nL = MFXi(G5f7) elif X7_c(G5f7): l5nL, H52S = cCrx(G5f7) else: raise TypeError('Expected genome to be an int, string, or pyensembl.Genome instance, got %s : %s' % (str(G5f7), type(G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cCrx(FzrA):\n H52S = False\n FzrA = HQr4(FzrA)\n if x6YL(FzrA):\n if FzrA not in rJMV:\n raise ValueError(\"Unrecognized UCSC reference name '%s'\" % FzrA)\n FzrA = rJMV[FzrA]\n H52S = True\n l5nL = c8AE(FzrA)\n return (l5nL, H52S)", "def kaPv(YKHO, mWFP: str, D...
[ "0.6439983", "0.5448234", "0.52595913", "0.48241457", "0.48233008", "0.47625998", "0.47586852", "0.473882", "0.47120637", "0.4677732", "0.467509", "0.4669614", "0.46572727", "0.4632468", "0.4614374", "0.4588308", "0.4553197", "0.4529159", "0.4483664", "0.44710606", "0.4470605...
0.58101034
1
Home page with auth links.
def kZiy(QePW): if QePW.user.is_authenticated(): return igJ6("{0} <a href='/accounts/logout'>exit</a>".format(QePW.user)) else: return igJ6("<a href='/login/vk-oauth2/'>login with VK</a>")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(QePW):\n if QePW.user.is_authenticated:\n return Yd7Q('home')\n return Yd7Q('login')", "def C_QL():\n if Oa1e.user:\n return vKnz(f'/user/{Oa1e.user.id}')\n else:\n return vKnz('/landing')", "def kZiy(QePW):\n if QePW.user.is_authenticated:\n return vKnz('/st...
[ "0.7620997", "0.757061", "0.7545057", "0.75089806", "0.7498317", "0.74462444", "0.74266213", "0.73984593", "0.7378062", "0.7289403", "0.7249242", "0.7248388", "0.72273856", "0.7214283", "0.7200972", "0.7195424", "0.71573", "0.7152052", "0.7133126", "0.7122047", "0.7100568", ...
0.7823744
0
Home page with auth links.
def Qmsu(QePW): if QePW.user.is_authenticated(): return igJ6("{0} <a href='/accounts/logout'>exit</a>".format(QePW.user)) else: return igJ6("<a href='/login/facebook/?next=https://chepolina.pythonanywhere.com/'>login with Facebook</a>")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n if QePW.user.is_authenticated():\n return igJ6(\"{0} <a href='/accounts/logout'>exit</a>\".format(QePW.user))\n else:\n return igJ6(\"<a href='/login/vk-oauth2/'>login with VK</a>\")", "def d6pt(QePW):\n if QePW.user.is_authenticated:\n return Yd7Q('home')\n ret...
[ "0.7823744", "0.7620997", "0.757061", "0.7545057", "0.75089806", "0.7498317", "0.74462444", "0.74266213", "0.73984593", "0.7378062", "0.7289403", "0.7249242", "0.7248388", "0.72273856", "0.7214283", "0.7200972", "0.7195424", "0.71573", "0.7152052", "0.7133126", "0.7122047", ...
0.7061074
22
Saves model and training parameters at '{checkpoint_dir}/last_checkpoint.pytorch'. If is_best==True saves '{checkpoint_dir}/best_checkpoint.pytorch' as well.
def IRyE(QTBn, xWf0, bPTx, bo34=None): def xgtA(Ol8d): if bo34 is not None: bo34.info(Ol8d) if not Hy7s.path.exists(bPTx): xgtA(f'Checkpoint directory does not exists. Creating {bPTx}') Hy7s.mkdir(bPTx) zoqO = Hy7s.path.join(bPTx, f'epoch{QTBn['epoch']}_checkpoint.pytorc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t4X7(YKHO, qtWj, xWf0=False):\n JACg = type(YKHO.model).__name__\n QTBn = {'arch': JACg, 'epoch': qtWj, 'state_dict': YKHO.model.state_dict(), 'optimizer': YKHO.optimizer.state_dict(), 'config': YKHO.config}\n Ux0P = str(YKHO.checkpoint_dir / 'checkpoint-epoch{}.pth'.format(qtWj))\n ht2j.save(QTBn,...
[ "0.8560058", "0.84478235", "0.84433365", "0.84393", "0.8236336", "0.8221738", "0.8211303", "0.8210968", "0.81995684", "0.8180039", "0.81656176", "0.8162459", "0.813964", "0.8074217", "0.80320376", "0.8005862", "0.79756457", "0.797337", "0.79720265", "0.7961165", "0.7862326", ...
0.806235
14
Defines specification for the dataflow type that will be managed in Pipeline Manager.
def AyQV(Ziit: Dict[str, Node]=None, NG42: Dict[str, Dict]=None) -> AzJI[cuzp[str, o7DN], cuzp[str, cuzp]]: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ChDU(Emd4):\n zxay = super(ihBb, Emd4).getInputSpecification()\n JF9q = ViNN.parameterInputFactory('dataFilename', contentType=wHUo.StringType)\n JF9q.addParam('type', wHUo.StringType, True)\n zxay.addSub(JF9q)\n return zxay", "def mINS(YKHO) -> h8nf[qe4Y.Input['AssetModelDataTypeSpec']]:\n ...
[ "0.61493516", "0.61357504", "0.6109861", "0.6057048", "0.6022401", "0.59787", "0.59637356", "0.5783145", "0.56910044", "0.56606996", "0.56378406", "0.56321895", "0.5570197", "0.5563179", "0.555496", "0.55389154", "0.55381036", "0.5518952", "0.5509683", "0.55075073", "0.549833...
0.0
-1
This function concatenates two dictionaries.
def Ooby(pKnb, fJ4o): with ZylS.name_scope('concat_batch'): if 'y' in pKnb and isinstance(pKnb['y'], ZylS.Tensor): return {'x': ZylS.concat([pKnb['x'], fJ4o['x']], axis=0), 'y': ZylS.concat([pKnb['y'], fJ4o['y']], axis=0)} else: return {'x': ZylS.concat([pKnb['x'], fJ4o['x']]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rudf(AjzU, _sQW):\n if AjzU is None:\n return _sQW\n if _sQW is None:\n return AjzU\n else:\n assert set(AjzU.keys()) == set(_sQW.keys())\n return {G1Hx: oyIN.concatenate([AjzU[G1Hx], _sQW[G1Hx]], axis=0) for G1Hx in AjzU}", "def xq_t(ydgu, pZWG):\n pass", "def X_GB(...
[ "0.8238723", "0.82264555", "0.8129423", "0.8108462", "0.8108462", "0.78634924", "0.785589", "0.7854571", "0.7802969", "0.7745862", "0.7745862", "0.7745862", "0.7745862", "0.7745862", "0.7745862", "0.7745862", "0.7745862", "0.77315646", "0.76827085", "0.7563227", "0.7563227", ...
0.0
-1
Return the output of the specified layer for input `x`. `layer` is specified by layer index (between 0 and `nb_layers 1`) or by name. The number of layers can be determined by counting the results returned by calling `layer_names`. This function is not supported for this detector.
def VNmP(YKHO, WKvO: np.ndarray, gEmA: Union[int, str], Ep8u: int, lBC3: bool=False) -> oyIN.ndarray: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HWpb(C3ST, WbAn, lzjZ=None, mgU1=None, gEmA=None, HQBm=0):\n CAar(lzjZ, mgU1, gEmA)\n gEmA = RY3r(C3ST, lzjZ, mgU1)\n if A797:\n boDn = nMvt.function([C3ST.input], [gEmA.output])\n else:\n boDn = nMvt.function([C3ST.input, nMvt.learning_phase()], [gEmA.output])\n return boDn([WbAn,...
[ "0.6524441", "0.6197736", "0.6030136", "0.59972733", "0.5923338", "0.5923338", "0.5888904", "0.5882687", "0.5862411", "0.5853007", "0.58437616", "0.57841027", "0.5766418", "0.5766418", "0.5738731", "0.57326937", "0.57088745", "0.5701298", "0.56855685", "0.56625485", "0.565098...
0.0
-1
Merges edges e1 and e2 together. An edge is a sequence where the first two elements are [source, target]. An edge may have additional elements.
def vGZu(TP50, fHZS): assert nPfC(TP50, fHZS) return [TP50[0], fHZS[1], None]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, hQHm, jlSq):\n pass", "def rz7z(YKHO, i4Va: Node, rUTj: Node):\n YKHO.__add_edge(i4Va, rUTj)\n YKHO.__add_edge(rUTj, i4Va)", "def tTpl(zZcM, zr3f):\n D70y = H7Nv.Edge(zZcM, zr3f)\n pNZh.add_edge(D70y)", "def BDQw(YKHO, pNZh):\n pNZh.add_node('source')\n pNZh.add_node('targ...
[ "0.65857697", "0.6536037", "0.64098305", "0.63119984", "0.6236003", "0.6228107", "0.61946976", "0.61817974", "0.6142903", "0.61362994", "0.6070242", "0.60662323", "0.60038453", "0.5995417", "0.59614384", "0.59572506", "0.5942834", "0.5903284", "0.5892013", "0.58893585", "0.58...
0.76180565
0
Computes the real distance between two vertices, given their vertex IDs.
def R6s2(YKHO, hQHm, jlSq): return BfDw.real_distance(YKHO.node_locations[hQHm], YKHO.node_locations[jlSq])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(hQHm, jlSq):\n return YXbZ(*wncN(jlSq, hQHm))", "def Q1Zj(YKHO, lSjb, v8Fa):\n return PZyS(sum([(float(hQHm) - float(jlSq)) ** 2 for hQHm, jlSq in zip(lSjb, v8Fa)]))", "def pImw(hQHm: vect2d, jlSq: vect2d) -> float:\n Csk6 = ((jlSq.x - hQHm.x) ** 2 + (jlSq.y - hQHm.y) ** 2) ** 0.5\n return...
[ "0.6689806", "0.6653809", "0.66066384", "0.6561086", "0.6508852", "0.65006506", "0.6498293", "0.6445875", "0.64357215", "0.64178735", "0.638211", "0.6373817", "0.63566583", "0.63436407", "0.63207", "0.63198066", "0.63142335", "0.6303946", "0.6285145", "0.62819755", "0.6276703...
0.7256061
0
Returns a list of dictionaries containing the attributes of each vertex.
def QFnx(YKHO): return (['lon', 'lat', 'speed', 'heading'], [{'speed': YKHO.node_speed_limit[Ty9i], 'lon': YKHO.node_locations[Ty9i][0], 'lat': YKHO.node_locations[Ty9i][1], 'heading': YKHO.node_heading[Ty9i]} for Ty9i in YKHO.graph.vertices()])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MQXZ(YKHO):\n return list(YKHO.vertices.keys())", "def EBww(YKHO):\n return list(YKHO.vertices.keys())", "def TA6f(YKHO):\n return list(YKHO.graph_dict.keys())", "def iXlf(YKHO):\n return list(YKHO.graph_dict.keys())", "def iXlf(YKHO):\n return list(YKHO.__graph_dict.keys())", "def iXl...
[ "0.7173167", "0.70198685", "0.6987175", "0.68630767", "0.68467695", "0.6823045", "0.67938685", "0.67938685", "0.67938685", "0.6745322", "0.67419744", "0.67080706", "0.6677524", "0.6659934", "0.6604973", "0.6591036", "0.6533811", "0.65335304", "0.6531588", "0.64844906", "0.644...
0.0
-1
Caclulate distance between two lat lons in NM
def jDSb(igSk, GgQG, TGuP, tk0B): XnUN = (TGuP - igSk) * fcGX kPqh = (epAf.cos(igSk * Wskb) + epAf.cos(TGuP * Wskb)) * (tk0B - GgQG) * (Apnr / 2) Ayfi = epAf.sqrt(XnUN ** 2 + kPqh ** 2) return Ayfi * Ow6D
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eve5(igSk, GgQG, TGuP, tk0B):\n return PZ77.WGS84.Inverse(igSk, GgQG, TGuP, tk0B)['s12']", "def zG70(igSk, GgQG, TGuP, tk0B):\n upem = epAf.radians(igSk)\n WMf6 = epAf.radians(TGuP)\n HJJp = epAf.radians(TGuP - igSk)\n rJfn = epAf.radians(tk0B - GgQG)\n jzdc = epAf.sin(HJJp / 2) ** 2 + epAf...
[ "0.7470505", "0.7318639", "0.72677976", "0.7265814", "0.72458845", "0.72337663", "0.72066087", "0.71915007", "0.71915007", "0.71915007", "0.71915007", "0.71915007", "0.7188688", "0.7186311", "0.7182924", "0.71657574", "0.7155414", "0.71550226", "0.715047", "0.7138319", "0.712...
0.7105262
22
Adds an edge to a graph. It also updates the vertex and edge indices.
def F1KG(YKHO, D70y): ipkb = D70y.startVertex Fd7E = D70y.endVertex xQLO = ipkb.vertexNumber gV1P = Fd7E.vertexNumber oROG = YKHO.vertexIndex _47g = YKHO.parentIndex fc2P = YKHO.parentEdgeIndex if xQLO == gV1P: raise LN2N(xQLO, gV1P, fZAh.noSelfLoops) try: _47g[xQLO]....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, D70y):\n if YKHO.has_edge(D70y) == 0:\n YKHO.__graph_dict[D70y[0]].append(D70y[1])", "def F1KG(YKHO, tTpl):\n Ty9i = tTpl.either()\n yzQ0 = tTpl.other(Ty9i)\n YKHO._validateVertex(Ty9i)\n YKHO._validateVertex(yzQ0)\n YKHO._adj[Ty9i].add(tTpl)\n YKHO._adj[yzQ0].add(tTpl)...
[ "0.7931591", "0.7710648", "0.765884", "0.7640651", "0.7638104", "0.76042837", "0.7584622", "0.75763017", "0.7558737", "0.7516333", "0.7502787", "0.7501524", "0.7441771", "0.7436214", "0.74305826", "0.73736656", "0.73678005", "0.73582536", "0.7196776", "0.7183749", "0.7175221"...
0.7184071
19
Adds a vertex. Should be used with care vertexNumber Vertex number of vertex to be added
def wfin(YKHO, Swjy): try: YKHO.vertexIndex[Swjy] raise IRDu(Swjy, fZAh.vertexAlreadyExists) except KeyError: YKHO.vertexIndex[Swjy] = Yegm(Swjy) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n raise NotImplementedError", "def ohmD(YKHO, oqUi):\n pass", "def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[rJkO.name] = rJkO", "def ohmD(YKHO, SLBp):\n if isinstance(SLBp, Yegm):\n YKHO.vertices.append(SLBp)\n return\n raise TypeError('Is n...
[ "0.8566502", "0.8523629", "0.83188754", "0.8200118", "0.8128653", "0.800311", "0.79475987", "0.782539", "0.78067344", "0.77300024", "0.77215284", "0.7704437", "0.76251054", "0.75979304", "0.75907624", "0.7584836", "0.75778896", "0.7523712", "0.7489197", "0.74780303", "0.74146...
0.8199532
4
Get all graph edges edgeIndex Dictionary of edges, indexed by edge number
def xC8f(YKHO): return YKHO.edgeIndex
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q6O9(yvY1):\n Csk6 = {Lnes: YRbF for YRbF, Lnes in enumerate(yvY1.nodes)}\n return Csk6", "def m6nj(pNZh):\n return tuple(pNZh.edges())", "def slAD(YKHO):\n return enumerate(YKHO.edges)", "def slAD(YKHO):\n return list(map(lambda tTpl: (YKHO.edges.index(tTpl), tTpl), YKHO.eligible_edges))"...
[ "0.71351886", "0.7115467", "0.7056002", "0.690152", "0.6852002", "0.68138236", "0.6796628", "0.6732841", "0.67086375", "0.67066216", "0.6702431", "0.668753", "0.6638807", "0.6626828", "0.6621127", "0.66192484", "0.6605798", "0.6580035", "0.6560157", "0.6544798", "0.6537302", ...
0.69350237
3
Get all graph vertices vertexIndex Dictionary of vertices, indexed by vertex number
def Sn5j(YKHO): return YKHO.vertexIndex
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A69S(YKHO):\n return YKHO.vertexIndex.keys()", "def SwAy(lgI3, pNZh):\n CIH_ = list()\n for SLBp in lgI3:\n CIH_.append(pNZh.vs.find(name=SLBp).index)\n return CIH_", "def rNyF(YKHO):\n return YKHO.vertList.keys()", "def GP7x(YKHO, SLBp):\n return YKHO[SLBp].keys()", "def iXlf(...
[ "0.81264883", "0.74522066", "0.7378788", "0.7355847", "0.73054576", "0.7292257", "0.7225575", "0.72073984", "0.71973234", "0.71973234", "0.71973234", "0.714475", "0.71303815", "0.70494425", "0.7038835", "0.70384014", "0.70047694", "0.6988673", "0.6975936", "0.6909543", "0.685...
0.7104188
13
Get all graph vertex numbers an array consisting of all the vertices numbers
def A69S(YKHO): return YKHO.vertexIndex.keys()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXlf(YKHO):\n return list(YKHO.__graph.values())", "def iXlf(YKHO):\n return list(YKHO._graph)", "def iXlf(YKHO):\n return list(YKHO.graph_dict.keys())", "def EBww(YKHO):\n return YKHO.graph.keys()", "def iXlf(YKHO):\n return list(YKHO.__graph_dict.keys())", "def EBww(YKHO):\n hlel ...
[ "0.7608723", "0.7587752", "0.7485285", "0.7477596", "0.7420833", "0.7383841", "0.73785895", "0.73764884", "0.73764884", "0.73764884", "0.73442924", "0.7276738", "0.7180534", "0.7058785", "0.7030377", "0.6955908", "0.69398487", "0.6928327", "0.6922639", "0.69173735", "0.690185...
0.779428
0
Get the last edge number __lastEdgeNumber the last edge number assigned to edges.
def RLBE(YKHO): return YKHO.__lastEdgeNumber
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PD5z(YKHO):\n return YKHO._edge", "def FHeM(YKHO) -> int:\n return YKHO._last_index", "def pFG5(YKHO):\n return YKHO._array[YKHO._size - 1]", "def qfB5(YKHO):\n return YKHO.max[-1]", "def PYyG(YKHO):\n return YKHO._frame_number", "def xVIE(YKHO):\n return YKHO.visited_positions[-1]"...
[ "0.7556472", "0.6783178", "0.6715328", "0.66097325", "0.6586115", "0.65181774", "0.65079015", "0.64952546", "0.6433164", "0.6431386", "0.6372128", "0.6369549", "0.6354774", "0.6353139", "0.63428015", "0.6339895", "0.63355786", "0.62993526", "0.6290487", "0.6267261", "0.626365...
0.8791472
0
Overriden this method to add media namespace(needed because we added media tags)
def UiSy(YKHO): return {u'version': YKHO._version, u'xmlns:media': u'http://search.yahoo.com/mrss/', 'xmlns:atom': u'http://www.w3.org/2005/Atom'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A8pN(YKHO):\n YKHO.set_property('processing_type', 'media')", "def jxM6(YKHO):\n return True", "def eZkP(YKHO, mWFP, mIJV, SeRH, IhDR, Zc6P='', MiYv=None, NAnm=None):\n raise NotImplementedError", "def nXg4(YKHO):\n pass", "def mJ1C(YKHO, object):\n if object.media is not None:\n ...
[ "0.62332565", "0.6003843", "0.5945977", "0.58772814", "0.5708445", "0.5647985", "0.5641738", "0.5593008", "0.5593008", "0.5569203", "0.55206114", "0.5439861", "0.543839", "0.54310626", "0.54095936", "0.54014105", "0.5384686", "0.53386885", "0.53309345", "0.525692", "0.5239419...
0.0
-1
Convenience function to report start of the day
def e6lh(p6zu): ITS7 = qcWV.fromtimestamp(p6zu) print('---- {} ({}) ----'.format(ITS7, p6zu))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def meSR(YKHO):\n return YKHO.datetime_start", "def Kx9c(YKHO):\n return qcWV.date(2016, 1, 4)", "def N7sD(YKHO):\n return YKHO.ddmmyyyy(YKHO.rowTime.start)", "def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')", "def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')", "de...
[ "0.75035185", "0.7324098", "0.71959496", "0.7061483", "0.7061483", "0.696112", "0.6929423", "0.69252634", "0.6868955", "0.68662024", "0.68507046", "0.68214434", "0.68214434", "0.68214434", "0.68214434", "0.6817186", "0.68047047", "0.6784255", "0.6782483", "0.6782483", "0.6766...
0.0
-1
Root view of the package index, handle incoming actions from distutils or redirect to a more user friendly view
def tk5Y(QePW, SrMt=None, **B2fa): if QePW.method == 'POST': if QePW.META['CONTENT_TYPE'] == 'text/xml': RKD7.debug('XMLRPC request received') return yzHK(QePW) RKD7.debug('Distutils request received') rz2t(QePW) XeOP = QePW.POST.get(':action', '') else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(YKHO):\n return TvZl('main/index.html')", "def d6pt():\n print('This is the root of the app, should have something better')\n return 'Root, this is where some front end would go on a server'", "def d6pt():\n pass", "def d6pt():\n return 'This is root!!!!'", "def d6pt():\n return ...
[ "0.6674808", "0.6664821", "0.6583092", "0.6525493", "0.65066767", "0.646967", "0.63950604", "0.63758546", "0.63500893", "0.6338224", "0.6326445", "0.6326445", "0.631983", "0.63187796", "0.63164634", "0.63074344", "0.6295102", "0.6282723", "0.6271082", "0.6254746", "0.6254746"...
0.66448176
2
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None mWFP = cmPJ.get('name') g8Rv = PBvq.models.scheduling_model.SchedulingModel.from_dictionary(cmPJ.get('scheduling')) if cmPJ.get('scheduling') else None lUK_ = PBvq.models.bandwidth_model.BandwidthModel.from_dictionary(cmPJ.get('bandwidth')) if c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.83181584", "0.8168118", "0.8168118", "0.8089047", "0.79787344", "0.7949278", "0.79231393", "0.7898951", "0.78923255", "0.788838", "0.7882321", "0.7882212", "0.7876749", "0.78585315", "0.7836853", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407",...
0.8118749
3
Detect LF or CRLF newlines in a string by looking at the end of the first line
def Lixp(vIwR: str) -> str: E06m = vIwR.find('\n') if E06m > 0 and vIwR[E06m - 1] == '\r': return '\r\n' return '\n'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v4ae(Jxqz, ReER=None):\n if ReER is None:\n ReER = '\\n' if Jxqz and Jxqz[-1].endswith('\\n') else ''\n return ReER", "def ILPy(zFiD):\n return zFiD == ''", "def Ium1(zFiD) -> bool:\n if zFiD and ('\\r' in zFiD or '\\n' in zFiD):\n return True\n return False", "def now1(vIwR)...
[ "0.7394444", "0.68073046", "0.6609574", "0.625732", "0.6152909", "0.61358434", "0.60357213", "0.59975314", "0.5993197", "0.58893144", "0.58762205", "0.5856547", "0.585503", "0.58519197", "0.5804647", "0.58043027", "0.5777561", "0.57619953", "0.5737633", "0.5732159", "0.570855...
0.7932517
0
Join a list of lines back, adding a linefeed after each line This is the reverse of ``str.splitlines()``.
def tbzO(Nqlg: Iterable[str], wN2A: str='\n') -> str: return ''.join((f'{zFiD}{wN2A}' for zFiD in Nqlg))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAMR(_CS_):\n aL6S = [vIwR.splitlines() for vIwR in _CS_]\n return '\\n'.join((''.join(Nqlg) for Nqlg in zip(*aL6S)))", "def zAMR(yv6U):\n yvT9 = ''\n for zFiD in yv6U:\n if zFiD.startswith('[') and zFiD.endswith(']'):\n yvT9 = f'{yvT9}\\n{zFiD}\\n'\n elif yvT9.endswith('...
[ "0.68668073", "0.6618031", "0.6415966", "0.6370114", "0.6345548", "0.6344231", "0.6172707", "0.60735846", "0.60735846", "0.5951289", "0.59325594", "0.5896327", "0.5874852", "0.58594126", "0.58511895", "0.5841074", "0.5720319", "0.5712678", "0.56969863", "0.5684662", "0.566502...
0.76907945
0
Returns the index of a column.
def f1pu(YKHO, z0q4: str) -> int: return YKHO._column_indices[z0q4]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn7Z(YKHO, iVRZ):\n return YKHO.columns.index(iVRZ)", "def BgJs(YKHO, fvDH):\n try:\n return int(fvDH)\n except:\n return ord(fvDH) - ord('a')", "def BgJs(YKHO, fvDH):\n try:\n return int(fvDH)\n except:\n return ord(fvDH) - ord('a')", "def f1pu(YKHO, vt_q):\n ...
[ "0.8619392", "0.8429728", "0.84154207", "0.83312255", "0.80317616", "0.76882744", "0.75399107", "0.74809426", "0.7480255", "0.7480255", "0.7480255", "0.7480255", "0.7480255", "0.7480255", "0.7480255", "0.7480255", "0.7480255", "0.7480255", "0.7480255", "0.7480255", "0.7480255...
0.8449339
1
Returns a new column group schema with properly recased member names.
def E1_M(YEnM: ColumnGroupSchema, F9uB: Mapping[str, str]) -> zOfq: if isinstance(YEnM, str): return F9uB[YEnM.casefold()] if isinstance(YEnM, g760.abc.Mapping): return {H5ew: E1_M(BWXx, F9uB) for H5ew, BWXx in YEnM.items()} return [E1_M(BWXx, F9uB) for BWXx in YEnM]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hUoe(YKHO):\n\n class TestModel(wOed):\n id = ZLJ_.UUID(primary_key=True, default=lambda: kxTZ())\n l5Ny = ZLJ_.Text()\n assert mDi0.column_family_name(include_keyspace=False) == 'test_model'", "def HXOv(YKHO):\n TNuv = '{}*'\n aEqx = list(YKHO.df.columns) + list((TNuv.format(eHNT) ...
[ "0.5103442", "0.5068711", "0.5054673", "0.5048149", "0.5021421", "0.49743184", "0.49688938", "0.49561247", "0.49495164", "0.4924085", "0.49119753", "0.48623934", "0.48522207", "0.4816956", "0.47880214", "0.4778498", "0.47763094", "0.47636637", "0.4746027", "0.47379166", "0.47...
0.5384115
0
Return a list of column groups that match the given column names.
def aQio(Txl5: Iterable[str]) -> x1iM[jY7h]: izhJ = {mWFP.casefold(): mWFP for mWFP in Txl5} rr8X = [] for uOe2 in CEbQ: try: ooO_ = E1_M(uOe2.schema, izhJ) except KeyError: continue rr8X.append(jY7h(uOe2.alias, ooO_)) for IXI_ in uOe2.member_names(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n4LV(YKHO, ZLJ_):\n Aofo = []\n for iVRZ in ZLJ_:\n if YKHO.match(iVRZ):\n Aofo.append(iVRZ)\n return Aofo", "def brPk(ZLJ_: Collection[str], ORED: Iterable[ColumnGroupRule]) -> x1iM[uLKX[jY7h, str]]:\n haDI = {mWFP: d6pt for d6pt, mWFP in enumerate(ZLJ_)}\n vyXl = ((min((haD...
[ "0.7152319", "0.62195057", "0.620709", "0.6017562", "0.59982556", "0.59308577", "0.581594", "0.5789305", "0.57864106", "0.57861966", "0.57049054", "0.5701381", "0.56945986", "0.5563272", "0.5550737", "0.55381936", "0.54624593", "0.5457094", "0.54433465", "0.541781", "0.541461...
0.77742374
0
Increase the indentation level by one
def MnRD(YKHO, EAdr=1): YKHO._level += EAdr YKHO.leader = YKHO._indenter * YKHO._level return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W4Fr(YKHO):\n YKHO._indentlist.append(YKHO._curindent)\n if not YKHO._equalsigns[-1]:\n YKHO._curindent = YKHO._curindent + YKHO._indent", "def r91G(YKHO) -> None:\n YKHO._parent_node.increase_code_indent()", "def MnRD(YKHO):\n YKHO.indent_level += YKHO.INDENT_STEP", "def MnRD(YKHO):\n...
[ "0.8237046", "0.79159904", "0.78635204", "0.78635204", "0.7170532", "0.687158", "0.6782295", "0.6777727", "0.67730385", "0.6723844", "0.6679106", "0.65906405", "0.6579315", "0.6548523", "0.6477567", "0.64704555", "0.64276993", "0.63955116", "0.6369951", "0.63511485", "0.63365...
0.75003016
4
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, KndY, rotation=45) QrM1.yticks(wIWT, KndY) if NkkI: Bcwd = Bcwd.astype...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8195649", "0.8095532", "0.803007", "0.8019817", "0.7994959", "0.7991904", "0.79818887", "0.79766536", "0.7961735", "0.7957412", "0.79385704", "0.7935568", "0.79352015", "0.7932079", "0.79270303", "0.7925357", "0.79243845", "0.7923781", "0.792341", "0.79226786", "0.7918532"...
0.0
-1
Test function to check equality of two SciPy Compressed Sparse Row (CSR) matrices.
def puZa(YKHO): V1Y9 = o7sj.csr_matrix(([1.0], ([0], [0])), shape=(2, 2)) MZo8 = o7sj.csr_matrix(([1.0], ([0], [0])), shape=(2, 2)) w_fa = o7sj.csr_matrix(([1.0], ([1], [0])), shape=(2, 2)) YKHO.assertEqual(bd8P._csr_matrix_equal(V1Y9, MZo8), True) YKHO.assertEqual(bd8P._csr_matrix_equal(V1Y9, w_fa)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qTV6(YKHO):\n WKvO, wmYl, KCHu = YKHO.create_testdata()\n D5gV = Z1Dr()\n GfdN = D5gV.check_sparse(WKvO)\n YKHO.assertEqual(oyIN.all(GfdN == WKvO), True)\n GfdN = D5gV.check_sparse(KCHu)\n YKHO.assertIsInstance(GfdN, oyIN.ndarray)\n YKHO.assertEqual(oyIN.all(GfdN == KCHu.todense()), True)"...
[ "0.75255007", "0.70881766", "0.6936769", "0.6748501", "0.6725134", "0.6625221", "0.6262431", "0.62476075", "0.6242845", "0.6235576", "0.6234698", "0.6216757", "0.617656", "0.6069728", "0.6065661", "0.6020067", "0.5997353", "0.59542704", "0.5946027", "0.59227175", "0.5916793",...
0.8238183
0
Test instantiation of DecayData objects.
def y6Sl(YKHO): nPrm = bd8P.DecayData('icrp107', load_sympy=False) YKHO.assertEqual(nPrm.dataset, 'icrp107') YKHO.assertEqual(nPrm.hldata[0][0], 100.5) YKHO.assertEqual(nPrm.hldata[0][1], 'd') YKHO.assertEqual(nPrm.hldata[-1][0], 12.32) YKHO.assertEqual(nPrm.hldata[-1][1], 'y') YKHO.assertEq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def as4H(YKHO):\n cLDV = n5ZY(YKHO.params)\n assert cLDV.pdb == YKHO.params.input.pdb\n assert cLDV.mtz == YKHO.params.input.mtz\n YKHO.assertIsInstance(cLDV.xrs, qwm6.xray.structure)\n YKHO.assertIsInstance(cLDV.inputs, Mdrk.utils.process_command_line_args)\n YKHO.assertIsInstance(cLDV.crystal_g...
[ "0.67739683", "0.6569035", "0.6552307", "0.64942336", "0.6327415", "0.62917715", "0.62742186", "0.6183184", "0.6181641", "0.6171357", "0.61660767", "0.6160217", "0.61252683", "0.61206543", "0.611989", "0.60632426", "0.6022004", "0.60123825", "0.6011048", "0.5974161", "0.59692...
0.6696012
1
Creates a full URL for provided REST endpoint
def rMt5(Hs_L: str, zrIJ: str=r9jE.DEFAULT_DOMAIN) -> str: return r9jE.FTX_BASE_URL + Hs_L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzyR(YKHO, w2IS):\n return YKHO.base_url + YKHO.api_path + w2IS.strip('/')", "def LDjU(YKHO, w2IS):\n nNXP = '(?P<resource_name>%s)/(?P<endpoint>%s)%s$' % (YKHO._meta.resource_name, w2IS, NGmD())\n w2IS = w2IS.replace('/', '_')\n return bD7m(nNXP, YKHO.wrap_view(w2IS), name='api_%s' % w2IS)", "...
[ "0.8243008", "0.7940678", "0.7839511", "0.7784653", "0.7773007", "0.7571946", "0.7517695", "0.74843836", "0.7477074", "0.71473217", "0.71329594", "0.700247", "0.69765604", "0.6937978", "0.68577546", "0.68577546", "0.68535316", "0.6826645", "0.6775876", "0.67483515", "0.671751...
0.722862
9
Return the total number of items in stock.
def CI7C(YKHO): return YKHO.stock_level_records.aggregate(FYrf.Sum('stock_level'))['stock_level__sum']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jvc1(YKHO):\n return len(YKHO.DoS)", "def mTYt(YKHO):\n mTYt = 0\n for zFiD in YKHO.lines.all():\n mTYt += zFiD.quantity\n return mTYt", "def XK3U(YKHO):\n UHFx = 0\n for z1Rg in YKHO.order_lst:\n UHFx += z1Rg.count()\n return UHFx", "def cTRz(YKHO):\n return NCls.se...
[ "0.7388547", "0.7379074", "0.7302415", "0.7249715", "0.71613944", "0.7151938", "0.7118709", "0.7084765", "0.7064341", "0.70529896", "0.7047173", "0.6938453", "0.6902857", "0.6891417", "0.68682635", "0.68492645", "0.6829879", "0.6824458", "0.6810021", "0.67641544", "0.6744819"...
0.7622305
0
Return the total number of items in stock.
def rFX1(YKHO): return YKHO.stock_level_records.aggregate(FYrf.Sum('stock_value'))['stock_value__sum']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CI7C(YKHO):\n return YKHO.stock_level_records.aggregate(FYrf.Sum('stock_level'))['stock_level__sum']", "def Jvc1(YKHO):\n return len(YKHO.DoS)", "def mTYt(YKHO):\n mTYt = 0\n for zFiD in YKHO.lines.all():\n mTYt += zFiD.quantity\n return mTYt", "def XK3U(YKHO):\n UHFx = 0\n fo...
[ "0.76232326", "0.7390424", "0.7380012", "0.7304414", "0.72493184", "0.7163424", "0.7153582", "0.71206063", "0.7087765", "0.7064969", "0.7055602", "0.7045999", "0.6940769", "0.69043976", "0.68898976", "0.6872859", "0.6847202", "0.68326193", "0.68248373", "0.6814781", "0.676685...
0.0
-1
Set the stock value attribute.
def xkzz(YKHO, *qIxc, **B2fa): YKHO.stock_value = YKHO.purchase_price * YKHO.stock_level super().save(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j6Nn(YKHO):\n raise NotImplementedError", "def BWXx(YKHO, BWXx):\n YKHO.set_data(BWXx)", "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def j6Nn(YKHO, WKvO):\n YKHO._value = WKvO", "def j6Nn(Y...
[ "0.69734466", "0.696847", "0.68452173", "0.68452173", "0.68452173", "0.67967826", "0.67967826", "0.6740443", "0.67321837", "0.67065233", "0.6690324", "0.66863203", "0.66863203", "0.66863203", "0.66863203", "0.66863203", "0.66863203", "0.6581731", "0.65605265", "0.6555424", "0...
0.6415544
30
Search for user groups.
def wTNf(YKHO, V_D6=None, vexM=None): NArs = {} if V_D6: NArs.update({'f': V_D6}) Voci = 1 bNfU = 1 wjRY = 2 if vexM: NArs['q'] = vexM while Voci * bNfU < wjRY: _hkX = YKHO.sonarqube.make_call('get', HdU2, **NArs) geh0 = _hkX.json() Voci = geh0['paging...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gnHa(D3lj):\n return [Oa1e['name'] for Oa1e in moMn.find({'users': D3lj})]", "def kmCY(uJjO, QePW):\n U5bT = GhOX.query(mv1M).filter_by(user_id=uJjO).all()\n if len(U5bT) == 0:\n return None\n CBIr = U5bT[0]\n moMn = [WKvO.group_name for WKvO in CBIr.groups]\n return moMn", "def Mj...
[ "0.73511565", "0.7229867", "0.69564825", "0.6768786", "0.67485344", "0.66775644", "0.6652841", "0.6642174", "0.6529533", "0.65077156", "0.649436", "0.64233947", "0.6402569", "0.63738227", "0.63667256", "0.63541615", "0.63374853", "0.6292058", "0.62379146", "0.62174886", "0.62...
0.723609
1
Delete a group. The default groups cannot be deleted.
def y0XA(YKHO, IXKo): NArs = {'name': IXKo} YKHO.sonarqube.make_call('post', Pp61, **NArs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y0XA(YKHO, uOe2):\n raise NotImplementedError('delete_group')", "def rOFc(u0KH):\n cQ68.deleteGroup(u0KH)", "def y0XA(YKHO, IXKo):\n NArs = {'GroupName': IXKo}\n return YKHO.get_response('DeleteGroup', NArs)", "def y0XA(N0q9, hE03):\n uOe2 = FYrf.UserGroup.get_by_id(int(hE03))\n uOe2.de...
[ "0.85996777", "0.8159453", "0.8094092", "0.8003237", "0.7968093", "0.79495174", "0.7904916", "0.78762573", "0.78659636", "0.7856635", "0.7844608", "0.7742248", "0.7673185", "0.76722735", "0.7644875", "0.75909734", "0.75873613", "0.7455524", "0.7453251", "0.7440715", "0.740857...
0.7488563
17
generic safe_load wrapper for yaml archive
def f9B0(IznC: str) -> dict: try: with open(IznC, 'r') as eHNT: al3W = eJb6.safe_load(eHNT) except IOError as e: print(f'Cannot open YAML file {IznC}') print(f'IOError: {tTpl}') return al3W
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UEZb(zZcM):\n if not isinstance(zZcM, str):\n try:\n IcOY = zZcM.name\n except AttributeError:\n IcOY = '<yaml stringio>'\n zZcM = zZcM.read()\n else:\n IcOY = '<yaml string>'\n try:\n return eJb6.safe_load(zZcM)\n except eJb6.YAMLError:\n ...
[ "0.6901544", "0.68751246", "0.6811836", "0.6714929", "0.65805846", "0.64860374", "0.64731103", "0.6400237", "0.6396996", "0.6364283", "0.6343225", "0.6317528", "0.6310397", "0.6309815", "0.627029", "0.6269992", "0.6267566", "0.6227912", "0.6218515", "0.62127984", "0.6194398",...
0.5706396
67
Get listing of all possible platform combinations matching current platform.
def dMKx(): bfAi = p96P(LFjr) uws4 = bxlM U5bT = [bfAi] while True: U5bT += [uws4, bfAi + '-' + uws4] uws4 = kwD6(uws4) if not uws4: break return sorted(U5bT, reverse=True) + ['default']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n else:\n return YKHO.platform.split(':')", "def kNho():\n return i3kb", "def Ly17(YKHO, a9EH):\n raise NotImplemented", "def xp7s(YKHO):\n return YKHO.do_rpc('list_platforms')", "def i3kb(YKHO) -> ImMB:\n return epI...
[ "0.75622964", "0.7488366", "0.73613954", "0.73313236", "0.70974034", "0.7095553", "0.68632317", "0.6859219", "0.6778722", "0.66186064", "0.6585389", "0.6424543", "0.6370951", "0.6341034", "0.6313573", "0.6301878", "0.6198991", "0.6172565", "0.6147571", "0.6089287", "0.6066857...
0.7619742
0
Get name of this.
def W0tD(YKHO): return YKHO.__name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO):\n return YKHO.__name", "def W0tD(YKHO):\n return YKHO.__name", "def W0tD(YKHO):\n return YKHO.__name", "def W0tD(YKHO):\n return YKHO.__name", "def W0tD(YKHO):\n return YKHO.__name", "def W0tD(YKHO):\n return YKHO.__name", "def W0tD(YKHO):\n return YKHO.__name", "...
[ "0.8951983", "0.8944317", "0.8875192", "0.8875192", "0.8875192", "0.8853432", "0.8853432", "0.8853432", "0.8853432", "0.8840195", "0.8840195", "0.8840195", "0.8840195", "0.8840195", "0.8840195", "0.8840195", "0.88327646", "0.8828548", "0.88084143", "0.87896115", "0.87753177",...
0.8720406
34
Get size of this.
def jiw9(YKHO): return YKHO.__size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jiw9(YKHO) -> int:\n return YKHO.__size", "def jiw9(YKHO):\n return YKHO.__size", "def DP0p(YKHO):\n return YKHO.__size", "def jiw9(YKHO):\n return YKHO.__size", "def jiw9(YKHO):\n return YKHO.__size", "def D6x4(YKHO):\n return YKHO.__size", "def jiw9(YKHO):\n return YKHO._size...
[ "0.9127883", "0.9068546", "0.90625155", "0.90456945", "0.90456945", "0.89912534", "0.8973999", "0.8956639", "0.8939666", "0.8939666", "0.8939666", "0.8939666", "0.8939666", "0.8937572", "0.8937572", "0.8937572", "0.8922063", "0.8922063", "0.88883835", "0.88623357", "0.8858647...
0.8919639
18
Tell if this is reconstructable.
def r8nx(YKHO, ooby): if YKHO.__name: return False if YKHO.__label_pre: return False if YKHO.__label_post and (not ooby): return False if '' != YKHO.__desc: return False if -1 != YKHO.__original_size: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbJf(YKHO):\n return YKHO._can_retransform", "def FUeM(YKHO):\n return YKHO._can_redefine", "def DaOh(YKHO):\n return _VfD.Reaction_isSetReversible(YKHO)", "def czCD(YKHO):\n if YKHO.gun_interface:\n return YKHO.gun_interface.is_reloading()\n return False", "def DYf1(YKHO) -> bool...
[ "0.6744048", "0.66146284", "0.6188276", "0.57828975", "0.5694032", "0.5631945", "0.557074", "0.5546739", "0.55337346", "0.5440852", "0.54309857", "0.5416869", "0.5373752", "0.5332476", "0.53195643", "0.5305508", "0.52682155", "0.52674127", "0.52559596", "0.52428925", "0.52333...
0.6559855
2
Get cumulative size of data.
def zNig(YKHO): U5bT = 0 for P2GO in YKHO.__data: U5bT += int(P2GO.get_size()) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return len(YKHO.cumulative_length)", "def H4X_(YKHO):\n return sum([Rv0k for Rv0k in YKHO.iterate()])", "def jiw9(YKHO):\n cIMq = 0\n for wOb_ in YKHO.__streams.values():\n cIMq += HwRy.getsizeof(wOb_)\n for zgsA in wOb_:\n cIMq += HwRy.getsizeof(zgsA)\n ...
[ "0.7311951", "0.69841903", "0.69333625", "0.6806765", "0.67907125", "0.66829747", "0.66719043", "0.667019", "0.6664927", "0.6657343", "0.6629253", "0.66140056", "0.66115147", "0.6600715", "0.65852046", "0.6567605", "0.65446043", "0.653561", "0.651902", "0.651902", "0.651902",...
0.71465605
1
Get function prototype for given symbol.
def oCvf(YKHO): GMBl = '' if YKHO.__name[:2] == 'gl': GMBl = 'DNLOAD_APIENTRY ' NArs = 'void' if YKHO.__parameters: NArs = ', '.join(YKHO.__parameters) return '(%s (%s*)(%s))' % (YKHO.__returntype, GMBl, NArs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XGFy(YKHO, o61b):\n if o61b in list(YKHO.dict.keys()) and YKHO.dict[o61b]['type'] == 'func':\n return YKHO.dict[o61b]\n return None", "def YGfo(l5Ny):\n r8hN = uYV4.match(l5Ny)\n if not r8hN:\n raise ValueError('Invalid function name for export prototype')\n KCHu = r8hN.start(0)\...
[ "0.6904165", "0.6144968", "0.56690747", "0.56596625", "0.54507565", "0.5377261", "0.53632045", "0.53068024", "0.5263871", "0.52638155", "0.51988244", "0.51778233", "0.5152622", "0.5146418", "0.51227", "0.51007426", "0.51006484", "0.50757515", "0.50592107", "0.5056987", "0.503...
0.0
-1
Get indentation for given level.
def qxAv(khtY): U5bT = '' for P2GO in range(khtY): U5bT += ' ' return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c31X(YKHO):\n return YKHO.options.indentation_char * sum(YKHO._indentation_levels)", "def spvT(YKHO, ABDL):\n return", "def MnRD(str, ABDL):\n if ABDL == 0:\n return str\n return '\\n'.join(('\\t' * ABDL + zFiD for zFiD in str.splitlines()))", "def MnRD(YKHO, nrx0=0):\n return (YKHO...
[ "0.65550226", "0.6416344", "0.6308598", "0.61756605", "0.6079057", "0.5995147", "0.5980143", "0.59340185", "0.59190285", "0.5891826", "0.5825542", "0.57668513", "0.56207246", "0.56166", "0.56153184", "0.5561847", "0.55430686", "0.55430686", "0.55430686", "0.55430686", "0.5539...
0.49400732
70
Serialize a single boolean.
def Kjk7(YKHO, Fg_i): YKHO._buf.push(IRcz.pack(Fg_i))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OunJ(YKHO, _J6_: bool) -> None:\n YKHO.write(bytearray([bool(_J6_)]))", "def iPo2(YKHO, BWXx: bool):\n YKHO.writeByte(1 if BWXx else 0)", "def PqVx(YKHO, Fg_i: bool) -> None:\n YKHO.buffer += BlNT.pack('<?', Fg_i)", "def Ux3a(YKHO, wEf2):\n YKHO.__writeValue(YKHO.boolFormat, wEf2)", "def Wh...
[ "0.77929187", "0.76032776", "0.7370491", "0.7330124", "0.72378254", "0.71882665", "0.7108701", "0.71003276", "0.70521367", "0.7029195", "0.6907123", "0.6870375", "0.68519986", "0.67760545", "0.6765555", "0.6760042", "0.6709866", "0.66931534", "0.66845185", "0.66162974", "0.66...
0.6348585
35
Deserialize a single boolean.
def qqUT(YKHO): try: nPrm, exwG = YKHO._buf.pop(Iwz8) if exwG != Iwz8: raise LN1R('There is not enough data left.') return bool(IRcz.unpack(nPrm)[0]) except qxCL as e: raise LN1R('Data is not a valid boolean: {0}'.format(tTpl))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n5rA(BWXx, **B2fa):\n try:\n if isinstance(BWXx, str) and BWXx.lower() in ['true', 'yes', 'on']:\n return True\n elif isinstance(BWXx, str) and BWXx.lower() in ['false', 'no', 'off']:\n return False\n return bool(BWXx)\n except:\n raise TypeError('Unable ...
[ "0.79400104", "0.74832255", "0.7224446", "0.7112827", "0.6987627", "0.6961213", "0.68758327", "0.68499094", "0.6832832", "0.6799196", "0.67943746", "0.67744946", "0.6773111", "0.66822505", "0.6674439", "0.666423", "0.6651678", "0.66023916", "0.6597125", "0.6585264", "0.657865...
0.70406437
4
Deserialize a single float.
def d2Xj(YKHO): try: nPrm, exwG = YKHO._buf.pop(Tyvl) if exwG != Tyvl: raise LN1R('There is not enough data left.') return bOWE.unpack(nPrm)[0] except qxCL as e: raise LN1R('Data is not a valid float: {0}'.format(tTpl))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wUR_(YKHO):\n return YKHO._packers['f'].unpack(YKHO.read(4))[0]", "def WAaG(YKHO) -> float:\n return YKHO._unpack('!f', 4)", "def wUR_(wOb_, xfKA=None, n22K=None):\n return MZ6z('<f', wOb_.read(4))[0]", "def Z0xv(YKHO):\n from petstore_api.model import banana\n PAau = d4y1.OpenApiResponse(...
[ "0.74769074", "0.7387994", "0.7351711", "0.6980962", "0.6840877", "0.67874324", "0.67615104", "0.6487746", "0.64785", "0.6448749", "0.64223176", "0.6356875", "0.63376343", "0.6331015", "0.6319609", "0.63133174", "0.63013625", "0.6262091", "0.6233303", "0.6209672", "0.6181696"...
0.72874576
3
Internally used method to get a part of the message as string.
def nAXj(YKHO, u54L): U6D_, exwG = YKHO._buf.pop(u54L) if exwG != u54L: raise LN1R('There is not enough data left.') return U6D_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ol8d(YKHO) -> str:\n return YKHO.fields.get('msg', YKHO.raw_string)", "def S_Qd(YKHO):\n return YKHO.__message", "def Eair(YKHO):\n return YKHO.msg", "def dL4c():\n return Ol8d", "def Ol8d(YKHO):\n return YKHO._message", "def tO9_(YKHO):\n return YKHO.message", "def EqIj(YKHO):\n ...
[ "0.69575095", "0.6956784", "0.69352585", "0.69030523", "0.6879262", "0.6869154", "0.68218803", "0.670414", "0.670414", "0.6696315", "0.6696315", "0.6696315", "0.6696315", "0.6696315", "0.6696315", "0.6686749", "0.6643288", "0.6643288", "0.6643288", "0.6643288", "0.6643288", ...
0.0
-1
Get the FIFO containing the remaining data.
def swND(YKHO): return YKHO._buf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CXwi(YKHO):\n while True:\n qv1X = (yield YKHO.r_in_pipe.get())\n yield YKHO.wait_sys_clks(YKHO.read_latency)\n if len(YKHO.items) > 0:\n nPrm = YKHO.items[0]\n YKHO.items = YKHO.items[1:]\n else:\n (print >> HwRy.stderr, 'ERROR: FIFO pop_sm: atte...
[ "0.66020125", "0.636941", "0.6243222", "0.6241263", "0.62131983", "0.61683995", "0.61492604", "0.6086427", "0.6028599", "0.60279167", "0.59935087", "0.5981691", "0.592324", "0.5900166", "0.5897246", "0.5897135", "0.58534783", "0.58517134", "0.58464026", "0.5846327", "0.583631...
0.7588719
0
Throws InventoryError if parameters.kapitan.vars.target is not set, or target does not have a corresponding yaml file in inventory_path
def L7xm(Rauy, UK6x, tieN): bo34.debug('validating target name matches the name of yml file %s', Rauy) try: XNHl = UK6x['vars']['target'] except KeyError: rhwM = f'Target missing: target "{Rauy}" is missing parameters.kapitan.vars.target\nThis parameter should be set to the target name' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xz6E():\n DQkc(Exception, CS5l.load, VnUg)", "def uTPF():\n E_fH = {'schema': 'avalon-core:config-1.0'}\n D82u = {'schema': 'avalon-core:inventory-1.0'}\n DQkc(uPxI.ValidationError, CS5l.save, name=YKHO._project['name'], config=E_fH, inventory=D82u)", "def W_NT(Zmpw, UXEK):\n try:\n z...
[ "0.59209937", "0.58351403", "0.5828817", "0.5822175", "0.5749177", "0.53923494", "0.5376362", "0.5310131", "0.5305096", "0.5227773", "0.52149165", "0.5206028", "0.5184792", "0.5184778", "0.5163969", "0.51631105", "0.5145897", "0.5138561", "0.5133494", "0.5131321", "0.51094306...
0.5682999
5
Return whether this rule can return meaningful result, given the `options` dict. If some options are missing, then rule shouldn't be matched against, and this function returns False.
def qYWI(YKHO, xAU6=None): if YKHO.is_comment: return False if YKHO.is_html_rule: return False xAU6 = xAU6 or {} sjXb = set(xAU6.keys()) if not sjXb.issuperset(YKHO._options_keys): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_C4(xAU6):\n tHQV = False\n for MTKo in xAU6:\n if MTKo.get('correct') is True:\n tHQV = True\n if not tHQV:\n return Z9rn('error_need_correct')", "def SGVO(Cwut):\n f0tD = sAdl(Cwut)\n WbTE = EdTY(Cwut)\n wPXb = m7L9(Cwut)\n if f0tD > bwjd or WbTE > qMvn or wPX...
[ "0.7036239", "0.6364745", "0.630673", "0.62812024", "0.62683153", "0.6259693", "0.6234793", "0.6227847", "0.60607165", "0.60000026", "0.589558", "0.5893934", "0.58001876", "0.5755991", "0.5750212", "0.56371593", "0.5628357", "0.5605693", "0.55971205", "0.55375344", "0.5512098...
0.7264887
0
Return if ``url``/``options`` are matched by rules defined by ``general_re``, ``domain_required_rules`` and ``rules_with_options``. ``general_re`` is a compiled regex for rules without options.
def hLSd(YKHO, bD7m, xAU6, YJZQ, myMx, nLKr): if YJZQ and YJZQ.search(bD7m): return True c_NS = [] if 'domain' in xAU6 and myMx: TyYs = xAU6['domain'] for zrIJ in iPTr(TyYs): if zrIJ in myMx: c_NS.extend(myMx[zrIJ]) c_NS.extend(nLKr) if YKHO.skip_u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uB_a(YKHO, bD7m, xAU6=None):\n xAU6 = xAU6 or {}\n for XgI3 in YKHO.options:\n if XgI3 == 'match-case':\n continue\n if XgI3 not in xAU6:\n raise ValueError('Rule requires option %s' % XgI3)\n if XgI3 == 'domain':\n if not YKHO._domain_matches(xAU6['d...
[ "0.7129203", "0.6051058", "0.59464043", "0.5634629", "0.54661834", "0.5397589", "0.52203137", "0.51650745", "0.51156276", "0.5050364", "0.503326", "0.50111085", "0.49953815", "0.49490905", "0.49296597", "0.4923371", "0.4901476", "0.48993343", "0.4895032", "0.48770002", "0.486...
0.8040253
0
Test for instantiation of the ``EventCategory`` model.
def dDgf(YKHO): ZDM3 = k2c4() YKHO.assertTrue(ZDM3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CW30(YKHO):\n YKHO.assertTrue(qZuN.objects.exists())", "def XnPT(YKHO):\n pass", "def r9GV():\n from .scripts.initializedb import create_cat_object\n nQVG = create_cat_object('a', 'b', 'c', 'c')\n assert isinstance(nQVG, qZuN)", "def IHFO(YKHO):\n nPrm = YKHO.data1\n YKHO.assertTrue(...
[ "0.6978919", "0.6868121", "0.6853159", "0.65846586", "0.6305626", "0.6129511", "0.61253476", "0.6032864", "0.6030713", "0.6030447", "0.6020336", "0.60164493", "0.5996522", "0.59632874", "0.59564805", "0.59418356", "0.59381324", "0.59206843", "0.5914982", "0.5893996", "0.58798...
0.84762317
0
Test for instantiation of the ``Occurrence`` model.
def dDgf(YKHO): h5lY = WKue() YKHO.assertTrue(h5lY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q77f(YKHO):\n h5lY = YKHO.event._create_occurrence(wzkt())\n YKHO.assertEqual(type(h5lY), WKue, msg='Method ``_create_occurrence`` did not output the right type.')", "def v6w4(YKHO):\n WKue()", "def q77f(YKHO):\n pass", "def vXQM(YKHO):\n pass", "def NYlk(YKHO):\n return YKHO.create_t...
[ "0.7281463", "0.7146957", "0.6939361", "0.6078205", "0.60280645", "0.5968112", "0.5939474", "0.5871335", "0.58672935", "0.58392227", "0.5837775", "0.5699185", "0.5650896", "0.561712", "0.5564759", "0.5489304", "0.5464864", "0.5424573", "0.54069865", "0.53881294", "0.53848237"...
0.78691727
0
Generate a filename based on the given parameters.
def fxz1(YKHO, aPr_, sWmO=None, ZI14=None, gnjM=True, YBcr='.mif'): if aPr_ == '': tO9_ = 'Unable to generate filename for command %s. ' % YKHO.cmd tO9_ += 'basename is not set!' raise ValueError(tO9_) if sWmO is None: sWmO = Hy7s.getcwd() if gnjM: if ZI14: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P9WV(WOrs, MC83, *qIxc):\n Ux0P = []\n Ux0P.append(WOrs)\n Ux0P.append(MC83)\n for ZfUD in qIxc:\n Ux0P.append(ZfUD)\n Ux0P.append(qcWV.datetime.now().isoformat(timespec='microseconds'))\n Ux0P = '_'.join(Ux0P)\n return Ux0P", "def pcWg(Ux0P: str) -> str:\n return f...
[ "0.76038855", "0.74714875", "0.7428159", "0.74156386", "0.737633", "0.72863644", "0.7268317", "0.72336495", "0.72164226", "0.72159445", "0.7191817", "0.717569", "0.7169469", "0.70664084", "0.70464534", "0.7040761", "0.70302564", "0.7018421", "0.6987019", "0.6985401", "0.69444...
0.6561952
44
Generate a filename based on the given parameters.
def fxz1(YKHO, aPr_, sWmO=None, ZI14=None, gnjM=True, YBcr='.mif'): if aPr_ == '': tO9_ = 'Unable to generate filename for command %s. ' % YKHO.cmd tO9_ += 'basename is not set!' raise ValueError(tO9_) if sWmO is None: sWmO = Hy7s.getcwd() if gnjM: if ZI14: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P9WV(WOrs, MC83, *qIxc):\n Ux0P = []\n Ux0P.append(WOrs)\n Ux0P.append(MC83)\n for ZfUD in qIxc:\n Ux0P.append(ZfUD)\n Ux0P.append(qcWV.datetime.now().isoformat(timespec='microseconds'))\n Ux0P = '_'.join(Ux0P)\n return Ux0P", "def pcWg(Ux0P: str) -> str:\n return f...
[ "0.76042557", "0.74721336", "0.7428368", "0.74158543", "0.7377124", "0.72866356", "0.72689134", "0.72342443", "0.7217181", "0.72163254", "0.71925366", "0.7176111", "0.71697724", "0.7066605", "0.70470846", "0.7041149", "0.7030538", "0.701924", "0.6987508", "0.6985752", "0.6944...
0.65627617
43
Sort tweets by popularity. Tweets must be sorted in descending order. A tweet is more popular than the other if it has more retweets. If the retweets are even, the newer tweet is the more popular one. >Tweet1 has 10 retweets. >Tweet2 has 30 retweets. >30 is bigger than 10 > tweet2 is the more popular one.
def P5dc(aWDa: list) -> list: tI00 = sorted(aWDa, key=lambda WKvO: (WKvO.retweets, -WKvO.time), reverse=True) return tI00
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P5ef(aWDa: list) -> list:\n IFGB = {}\n mXDZ = '#\\\\w+'\n for Mau6 in aWDa:\n OtEj = ZbWC.findall(mXDZ, Mau6.content)\n if not OtEj:\n continue\n else:\n for ZsLl in OtEj:\n IFGB.setdefault(ZsLl, []).append(Mau6.retweets)\n print(IFGB)\n ...
[ "0.72086954", "0.6634835", "0.6537147", "0.6512715", "0.638781", "0.61812156", "0.6161245", "0.61347455", "0.60856587", "0.60808486", "0.6046317", "0.6040352", "0.6021192", "0.59636885", "0.5714501", "0.5635846", "0.56224364", "0.55373555", "0.55107176", "0.5509282", "0.54656...
0.81967425
0
Calculate the context vector and attention distribution from the decoder state.
def Fq_l(vkAz, vFZ1=None): with jj4W.variable_scope('Question_Attention'): QHji = z8o0(vkAz, cshM, True) QHji = ZylS.expand_dims(ZylS.expand_dims(QHji, 1), 1) if M2Ar and vFZ1 is not None: IjoX = rXs0.conv2d(vFZ1, LmjY, [1, 1, 1, 1], 'SAME') tTpl = qkSJ.reduce_sum(kpU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v2uf(YKHO, vkAz, vFZ1=None):\n with ZylS.variable_scope('attention_compute'):\n je7f = 2 * YKHO.hidden_dim\n Ep8u = ZylS.shape(YKHO.encoder_states)[0]\n TYj5 = ZylS.expand_dims(YKHO.encoder_states, axis=2)\n cshM = je7f\n ZTDW = ZylS.get_variable('W_h', [1, 1, je7f, cshM])...
[ "0.6434249", "0.6233957", "0.61137545", "0.60123605", "0.59904397", "0.5962933", "0.5948498", "0.5918534", "0.58688605", "0.58655345", "0.5805446", "0.5757829", "0.57023203", "0.5693168", "0.5652662", "0.56198937", "0.55608445", "0.55564976", "0.55499417", "0.5531495", "0.550...
0.5155466
36
Calculate the context vector and attention distribution from the decoder state.
def hDHz(vkAz, VEIT, vFZ1=None): with jj4W.variable_scope('Review_Attention'): QHji = z8o0(vkAz, cshM, True) QHji = ZylS.expand_dims(ZylS.expand_dims(QHji, 1), 1) if M2Ar and vFZ1 is not None: IjoX = rXs0.conv2d(vFZ1, ZU3r, [1, 1, 1, 1], 'SAME') tTpl = qkSJ.reduce_sum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v2uf(YKHO, vkAz, vFZ1=None):\n with ZylS.variable_scope('attention_compute'):\n je7f = 2 * YKHO.hidden_dim\n Ep8u = ZylS.shape(YKHO.encoder_states)[0]\n TYj5 = ZylS.expand_dims(YKHO.encoder_states, axis=2)\n cshM = je7f\n ZTDW = ZylS.get_variable('W_h', [1, 1, je7f, cshM])...
[ "0.64342564", "0.623488", "0.6114128", "0.60125464", "0.59909666", "0.5965301", "0.5948194", "0.59192175", "0.5869493", "0.5865634", "0.5805824", "0.5757865", "0.5702304", "0.5691548", "0.56203043", "0.5561481", "0.55568236", "0.5550382", "0.5530452", "0.5506292", "0.54951066...
0.5653915
14
Take softmax of e then apply enc_padding_mask and renormalize
def z_cW(tTpl, Mi3O): tdld = rXs0.softmax(tTpl) + 1e-08 tdld *= Mi3O NxZs = ZylS.reduce_sum(tdld, axis=1) return tdld / ZylS.reshape(NxZs, [-1, 1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.expand_dims(oyIN.max(WKvO, axis=-1), axis=-1))\n return uw5A / oyIN.expand_dims(uw5A.sum(axis=-1), axis=-1)", "def TOcf(epBp):\n return N93T(epBp)", "def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)", "def N93T(Nk6w):\n ...
[ "0.66436917", "0.6544238", "0.64621603", "0.6389953", "0.63802594", "0.63618845", "0.6348898", "0.632555", "0.63057154", "0.6304174", "0.6293008", "0.6290128", "0.6290128", "0.62895083", "0.62895083", "0.6287029", "0.6287029", "0.62851834", "0.6263683", "0.6261414", "0.625115...
0.6041341
90
Initializes all of the checkers, sets the appropriate checkers as enabled/disabled, and returns a list of checker objects
def vGij(j7Fh, JQ3C, zVRD, VUIS, gXMO, eipZ, dmja=True): for HAk6 in eipZ: try: Cqok = ANWz.util.spec_from_file_location('custom_checkers', HAk6) ZUyI = ANWz.util.module_from_spec(Cqok) Cqok.loader.exec_module(ZUyI) bo34.write_to_main(f'Loaded custom checker f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _qBi(GPtr):\n IUhR = []\n if 'checkers' in GPtr:\n for tlai, jIdT in GPtr['checkers'].iteritems():\n if tlai in xODG:\n b32v = None\n if type(jIdT) == list:\n b32v = jIdT\n else:\n b32v = [jIdT]\n ...
[ "0.6699315", "0.6395436", "0.63412344", "0.60727763", "0.56841475", "0.55224925", "0.55192196", "0.5488269", "0.5434302", "0.54231703", "0.54006433", "0.5392882", "0.5381138", "0.5368976", "0.5326031", "0.5325076", "0.5321039", "0.5291186", "0.52409154", "0.5226855", "0.52060...
0.691162
0
Add audio into video
def mylR(VsKE: Union[str, Path], knCC: Union[str, Path], OLPi: [str, Path]) -> GkAb: oUZx = 'ffmpeg -loglevel warning -y -i "{}" -i "{}" -c:v copy -c:a copy -shortest {}'.format(knCC.as_posix(), VsKE.as_posix(), OLPi.as_posix()) SRIv(oUZx) return OLPi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vGZu(knCC, VsKE):\n lmHl = Gw5u(knCC)\n n7Gn = v7Yv(VsKE)\n pb1_ = lmHl.set_audio(n7Gn)\n pb1_.write_videofile(knCC[:-10] + '.mp4')\n Hy7s.remove(knCC)\n Hy7s.remove(VsKE)\n lmHl.close()\n n7Gn.close()", "def jtkM():\n vJPk = LzDi.VideoClip(VRZp, duration=13.0)\n vJPk.write_vide...
[ "0.6910271", "0.67769235", "0.6389155", "0.6350832", "0.6250503", "0.6208691", "0.6035442", "0.6025434", "0.59924924", "0.5967374", "0.5936128", "0.58909", "0.5874258", "0.5863902", "0.5850794", "0.5841139", "0.58296484", "0.57920176", "0.57917464", "0.57635725", "0.5748044",...
0.7074231
0
RNN decoder with attention for the sequencetosequence model. In this context "attention" means that, during decoding, the RNN can look up information in the additional tensor attention_states, and it does this by focusing on a few entries from the tensor.
def ov6y(Nmec, jXEC, VmPb, a6Jb=None, yDqo=None, rrBf=None): if not Nmec: raise ValueError('Must provide at least 1 input to attention decoder.') if a6Jb is None: a6Jb = VmPb.output_size with jj4W.variable_scope(rrBf or 'TemporalAttn', dtype=yDqo) as rrBf: yDqo = rrBf.dtype E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e3gM(Nmec, W9gz, VmPb, T69X, jXEC, rrBf=None):\n with ZylS.variable_scope(rrBf or 'rnn_decoder'):\n print('rnn_decoder_with_attention started...')\n QTBn = W9gz\n bGrB, wjbX = QTBn.get_shape().as_list()\n G9kF = jXEC\n Ep8u, NXmX, bGrB = jXEC.get_shape().as_list()\n ...
[ "0.6773182", "0.6564511", "0.6561908", "0.6376276", "0.63077044", "0.6283391", "0.6223468", "0.62045705", "0.6160511", "0.6138831", "0.6120125", "0.61135036", "0.6056597", "0.605465", "0.5925291", "0.59229475", "0.59167665", "0.5900185", "0.5874088", "0.58464354", "0.58195466...
0.6350812
4
Put attention masks on hidden using hidden_features and query.
def v2uf(xDcj, YPaw): if pf_1.is_sequence(xDcj): GPHi = pf_1.flatten(xDcj) xDcj = _WqI.concat(GPHi, 1) iDtE = qkSJ.matmul(xDcj, yzQ0) + Fg_i iDtE = _WqI.reshape(iDtE, [-1, 1, 1, je7f]) KCHu = qkSJ.reduce_sum(Ty9i * qkSJ.tanh(HqPd + iDtE), [2, 3]) UqYS = rXs0.softmax(KCHu, name='beta_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OM0x(YKHO, Zode, ZHfW):\n ZHfW = ZHfW.unsqueeze(-1).expand_as(Zode)\n XHim = Zode[ZHfW].contiguous().view(-1, Zode.size(-1))\n return XHim", "def It5M(Zode, ZHfW):\n if len(ZHfW) != 0:\n Zode[:, ZHfW, :] = 0\n return Zode", "def qfox(xDcj, _p7a, rwr1, wjbX, Q1bM=False, hC9O=1, wyyA=No...
[ "0.65520513", "0.6279056", "0.59793246", "0.592145", "0.59021497", "0.5858487", "0.58122665", "0.57702357", "0.5737185", "0.5702718", "0.56893426", "0.56797564", "0.56737244", "0.558707", "0.55822736", "0.5555634", "0.554214", "0.55337656", "0.54494065", "0.54184794", "0.5418...
0.6114558
2
Initialize input parameters for the atmospheric simulation.
def QX0c(YKHO): if not YKHO.opsim_visits: YKHO.readOpsimData() YKHO.npoints = len(YKHO.opsim_visits) YKHO.mjds = YKHO.opsim_visits[0]['expMJD'] YKHO.mjde = YKHO.opsim_visits[-1]['expMJD']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3te(YKHO):\n YKHO.input_raster.enabled = True\n YKHO.approach.enabled = True\n YKHO.predefined_pattern.enabled = False\n YKHO.predefined_pattern.value = 'Mexican Hat wavelet'\n YKHO.pattern_workspace.enabled = False\n YKHO.point_matrix_size.enabled = False\n YKHO.point_matrix_size.value =...
[ "0.7224466", "0.7123327", "0.6966959", "0.6875013", "0.678513", "0.66819763", "0.66784626", "0.66745144", "0.6629842", "0.6624583", "0.66185343", "0.6594805", "0.65763736", "0.6572434", "0.65524334", "0.65504616", "0.6494172", "0.6492695", "0.64819425", "0.64684516", "0.64559...
0.0
-1