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
penalizes the l2 distance to the goal (almost linearly) and a small penalty for torques coming from actions
def Xaq_(YKHO, jzdc): bgro = YKHO._body_coord()[0] - YKHO.goal pImw = oyIN.sum(bgro ** 2) return -YKHO.cx * pImw / (oyIN.sqrt(pImw) + 1) - YKHO.cu * oyIN.sum(jzdc ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YiU0(YKHO):\n return 0", "def MKlR(YKHO, PISu, UGqn, exwG):\n sSN_ = ((PISu - YKHO.goal[0]) ** 2 + (UGqn - YKHO.goal[1]) ** 2) ** (1 / 2)\n return sSN_", "def y_oG(jvSB, xi3E):\n return epAf.sqrt((jvSB[0] - xi3E[0]) ** 2 + (jvSB[1] - xi3E[1]) ** 2)", "def JLIZ(pImw: float) -> float:\n pass...
[ "0.61494523", "0.6131153", "0.6119918", "0.60916823", "0.6055764", "0.6055536", "0.5966627", "0.58956623", "0.5894354", "0.58891404", "0.5873126", "0.5863123", "0.585692", "0.582269", "0.58090496", "0.57949734", "0.57556975", "0.57531273", "0.57396716", "0.570395", "0.5684955...
0.56220204
26
computes diag(v1) dot M dot diag(v2). returns np.ndarray with same dimensions as M
def Di9N(hQHm, E3D9, jlSq): return hQHm[:, None] * E3D9 * jlSq[None, :]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yYJc(hQHm, jlSq):\n return oyIN.dot(hQHm, jlSq)", "def A2lD(Ty9i, G1Hx=0):\n if not U6YZ(Ty9i):\n if not isinstance(Ty9i, vT81):\n pass\n else:\n return tyai(Ty9i, G1Hx)\n return iexu(XTiz.diag, Ty9i, G1Hx)", "def qhEX(jzdc, Fg_i):\n return oyIN.vdot(jzdc.rav...
[ "0.6502854", "0.6264067", "0.6235242", "0.6111132", "0.60820174", "0.6053548", "0.6019043", "0.60024", "0.59885395", "0.59714615", "0.5968381", "0.596071", "0.5959117", "0.59306157", "0.5902412", "0.5900423", "0.58945966", "0.58917797", "0.58533454", "0.58418703", "0.58413756...
0.64991665
1
Calculate the great circle distance between two points on the earth (specified in decimal degrees) using the haversince formula.
def H72a(KlJH, pucr): GgQG, igSk, tk0B, TGuP = map(Y_1E, [KlJH[0], KlJH[1], pucr[0], pucr[1]]) H91H = tk0B - GgQG n_9K = TGuP - igSk jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2 Z9rn = 2 * P099(PZyS(jzdc)) Mkmy = 6371 return Z9rn * Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6", "def T97B(GgQG, ...
[ "0.78193885", "0.7504675", "0.73117673", "0.7213777", "0.71165466", "0.7028012", "0.69869894", "0.6976003", "0.6975644", "0.69554234", "0.69376063", "0.69251305", "0.68931514", "0.68912673", "0.68764615", "0.6870195", "0.68657935", "0.68600315", "0.68593353", "0.68081456", "0...
0.0
-1
Return windows of indices into the flattened data. data[index_matrix[i]] returns the flattened window around the ith element.
def vkx7(KDwe, IJYZ): tAJA = oyIN.prod(KDwe) niQo = oyIN.prod(IJYZ) FlUN = oyIN.indices(IJYZ) iz53 = oyIN.zeros((tAJA, niQo), dtype=oyIN.int32) KIE5 = oyIN.unravel_index(oyIN.arange(tAJA), KDwe) vgXP = (oyIN.array(IJYZ) - 1) // 2 for YRbF, DkWr in enumerate(zip(*KIE5)): DkWr = oyIN.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tuEz(DKfu, eAYh, YcIA=1, yMhW=5):\n oaVB = 0\n Fa3J = []\n a0W6 = 0\n for YRbF in range(yMhW * 2 + 1):\n if DKfu - yMhW * YcIA + YRbF * YcIA >= 0 and DKfu - yMhW * YcIA + YRbF * YcIA < eAYh:\n Fa3J.append(DKfu - yMhW * YcIA + YRbF * YcIA)\n elif DKfu - yMhW * YcIA + YRbF * ...
[ "0.6340699", "0.5813027", "0.5748229", "0.56743836", "0.55570626", "0.55411845", "0.5432381", "0.5309236", "0.5209544", "0.52076346", "0.52067953", "0.52067953", "0.51609695", "0.51609695", "0.5154295", "0.5130914", "0.5128103", "0.50972", "0.5071069", "0.49966234", "0.499414...
0.6024071
1
Decorate tensorflow op graph building function with name_scope. Name defaults to function name.
def knwO(mWFP=None): def mrMx(m2Zb): @xBlr.wraps(m2Zb) def h3Xc(*qIxc, **B2fa): with ZylS.name_scope(mWFP or m2Zb.__name__): return m2Zb(*qIxc, **B2fa) return h3Xc return mrMx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HHLc(m2Zb):\n\n @zaGL(m2Zb)\n def h3Xc(*qIxc, **B2fa):\n with ZylS.name_scope(m2Zb.__name__):\n return m2Zb(*qIxc, **B2fa)\n return h3Xc", "def Cc7Y(YKHO, **B2fa):\n if not YKHO.built:\n with ZylS.name_scope(YKHO.name):\n YKHO._build(**B2fa)\n YKHO.built...
[ "0.6776843", "0.6052667", "0.6024638", "0.6017519", "0.5850662", "0.582437", "0.578642", "0.57745945", "0.5770974", "0.57384944", "0.57371694", "0.57050693", "0.56976104", "0.5680395", "0.5660873", "0.56570977", "0.5645926", "0.56300974", "0.55482644", "0.55344635", "0.551495...
0.78752005
0
Pad tensor by wrapping around at the borders.
def hVLt(WKvO, U6HL, x_5g): Ylbp = watX(ZylS.tile(WKvO, (1,) + (3,) * len(x_5g)), tuple((KCHu - XP5J for KCHu, XP5J in zip(U6HL, x_5g)))) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(vhpA):\n LkVj = ZylS.constant([[0, 0], [0, 10], [0, 0]])\n yvT9 = ZylS.pad(vhpA, LkVj, 'CONSTANT', constant_values=0)\n return yvT9", "def Xso3(input, zNig):\n nyWF = ZylS.concat([input[:, :, -zNig[1]:, :], input, input[:, :, 0:zNig[1], :]], 2)\n nyWF = ZylS.concat([nyWF[:, -zNig[0]:, :, ...
[ "0.7407109", "0.72784704", "0.7240538", "0.71440405", "0.71000195", "0.7090418", "0.7018738", "0.70085424", "0.6888799", "0.6858602", "0.6802423", "0.67736495", "0.6768315", "0.6739989", "0.6722971", "0.66809046", "0.66500527", "0.6607904", "0.6547321", "0.6516811", "0.651234...
0.6800257
11
Gather windows of tensor around centers. Uses wrapped padding.
def Ji0W(WKvO, eKGI, U6HL, IJYZ): yMhW = oyIN.prod(IJYZ) Ep8u = ZylS.shape(WKvO)[0] iz53 = ZylS.constant(vkx7(U6HL, IJYZ)) kvkZ = ZylS.range(Ep8u, dtype=ZylS.int32)[:, None] * ZylS.ones(yMhW, dtype=ZylS.int32)[None, :] _0VL = ZylS.stack((kvkZ, ZylS.gather(iz53, eKGI)), 2) return ZylS.gather_nd(W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FhQV(WKvO, eKGI, Vhxs, ZHfW, U6HL, IJYZ):\n yMhW = oyIN.prod(IJYZ)\n Ep8u = ZylS.shape(WKvO)[0]\n iz53 = ZylS.constant(vkx7(U6HL, IJYZ))\n kvkZ = ZylS.range(Ep8u, dtype=ZylS.int32)[:, None] * ZylS.ones(yMhW, dtype=ZylS.int32)[None, :]\n _0VL = ZylS.stack((kvkZ, ZylS.gather(iz53, eKGI)), 2)\n ...
[ "0.62628543", "0.6066326", "0.58352035", "0.56969947", "0.5685777", "0.5637248", "0.55407983", "0.553049", "0.54852927", "0.54782593", "0.5473007", "0.5462575", "0.5458505", "0.5457785", "0.5445776", "0.5361355", "0.5351152", "0.5341841", "0.53008586", "0.5300423", "0.5274436...
0.670488
0
Retrieve values of one or more nodes, returning as a flat dict. If you wish to perform some iteration over a representational hierarchy, use get_node_tree_values() instead. This is a convenience function for users who do not want to worry about node binding types or attributes and want to avoid the complexity of creati...
def vz7m(YKHO, RdSW, ZAFE=False, CwNu=False, Nlxd=None): return YKHO._get_nodes(RdSW, nostate=ZAFE, noconfig=CwNu, flat=True, values_only=True, strip=Nlxd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AyQV(YKHO, j8eK):\n Q6kx = YKHO.get(j8eK)\n zC9_ = {}\n for G1Hx, Ty9i in Q6kx.items():\n if isinstance(Ty9i, dict):\n zC9_[G1Hx] = Ty9i\n return zC9_", "def rjXZ(YKHO):\n return YKHO._nodes_dict.copy()", "def IZpx(YKHO) -> dict:\n return dict(YKHO._nodes)", "def Ziit(...
[ "0.65162987", "0.64842397", "0.622741", "0.6227282", "0.6058203", "0.6034385", "0.60253924", "0.60017234", "0.59756917", "0.5971337", "0.5971337", "0.5944662", "0.5852683", "0.5804935", "0.5787721", "0.57389414", "0.5735163", "0.5730506", "0.57078916", "0.5705613", "0.5700515...
0.6173875
4
Close the connection to the given Symphony appliance.
def DDI8(YKHO): YKHO._close() YKHO._closed = True YKHO._auth_error = YKHO._AUTH_ERROR_MESSAGES[0] YKHO.login_info = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n YKHO.session.close()", "def zml5(YKHO):\n print('closing connection...')\n YKHO.s.close()\n quit()", "def ngVb(YKHO):\n YKHO.session.close()", "def HWx7(nVrR):\n RBVb = v7iX(nVrR)\n NscF(RBVb)", "def yjPN(YKHO, nuPx):\n try:\n iG42 = YKHO._connections[nuPx][...
[ "0.6305688", "0.62818617", "0.6264187", "0.62350076", "0.6089671", "0.6085774", "0.60632676", "0.6014593", "0.59948784", "0.5965196", "0.59603965", "0.59587735", "0.59587735", "0.5953831", "0.59412336", "0.58943903", "0.58721703", "0.58693767", "0.5852582", "0.5844935", "0.58...
0.0
-1
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): dF1p = oyIN.vstack((Bcwd, Bcwd.sum(0, keepdims=True))) dF1p = oyIN.hstack((dF1p, dF1p.sum(1, keepdims=True))) _JVX = dF1p.copy() _JVX[:, -1] = 1.0 * Bcwd.max() * _JVX[:, -1] / dF1p.max() _JVX[-1, :-1] = 1.0 * Bcwd.max() *...
{ "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.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.0
-1
Tests conversion from a ProductModel instance to a dict.
def EgWP(): deLE = {'language': {'type': 'fixed', 'default': 'english'}, 'a': {'type': 'fixed', 'persisted': True}, 'b.c': {'type': 'fixed', 'persisted': True}, 'b.d.e': {'type': 'text', 'persisted': True}, 'b.d.f': {'type': 'numeric', 'persisted': True}} i_PC = tWW0(deLE) ILLk = {'a': 'foo', 'b': {'c': 'ba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DRu4(YKHO):\n HPQU = KcDH()\n wJ4v = KcDH()\n sX1J = HPQU.to_dict()\n YKHO.assertIsInstance(HPQU, KcDH)\n YKHO.assertEqual(type(HPQU).__name__, 'BaseModel')\n YKHO.assertEqual(sX1J['__class__'], 'BaseModel')\n YKHO.assertTrue(type(sX1J['__class__']), 'str')\n YKHO.assertTrue(type(sX1J['...
[ "0.69077003", "0.6868457", "0.68538004", "0.6642659", "0.66204894", "0.6545897", "0.6503946", "0.63067096", "0.6296218", "0.6277278", "0.6251176", "0.6238148", "0.61626965", "0.61544114", "0.6154392", "0.6132345", "0.6128953", "0.6077414", "0.60404193", "0.6033105", "0.599797...
0.6674117
3
Tests conversion from a dict to a ProductModel instance.
def rCOY(): deLE = {'language': {'type': 'fixed', 'default': 'english'}, 'a': {'type': 'fixed', 'persisted': True}, 'b.c': {'type': 'fixed', 'persisted': True}, 'b.d.e': {'type': 'text', 'persisted': True}, 'b.d.f': {'type': 'numeric', 'persisted': True}} i_PC = tWW0(deLE) TXQP = l5Ny.parse_text_to_stems('e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gwbn(YKHO):\n kYGz = KcDH()\n kYGz.name = 'Holberton'\n kYGz.my_number = 89\n VV5h = kYGz.to_dict()\n ftz7 = KcDH(**VV5h)\n YKHO.assertEqual(kYGz.my_number, ftz7.my_number)\n YKHO.assertEqual(kYGz.id, ftz7.id)\n YKHO.assertEqual(kYGz.name, ftz7.name)\n YKHO.assertEqual(kYGz.created_a...
[ "0.6527579", "0.64977103", "0.62672186", "0.610359", "0.60274994", "0.6020002", "0.5937814", "0.59310555", "0.5926014", "0.5909174", "0.5909174", "0.5909174", "0.5909174", "0.5909174", "0.5909174", "0.59031826", "0.5890253", "0.58854175", "0.58797616", "0.5858172", "0.5854472...
0.6796946
0
Test creating a category
def XnPT(YKHO): pB3N = {'name': 'Houses'} Ylbp = YKHO.client.post(AQX_, pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED) Ghho = qZuN.objects.get(id=Ylbp.data['id']) ZMzz = jd0z(Ghho) YKHO.assertEqual(ZMzz.data['name'], pB3N['name'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XnPT(YKHO):\n pass", "def XnPT(YKHO):\n Ylbp = YKHO.client().post('/categories/', data=YKHO.category)\n YKHO.assertEqual(Ylbp.status_code, 201)\n YKHO.assertIn('Stews', str(Ylbp.data))", "def osVu(YKHO):\n YKHO.signup('Bo', 'Theo', 'Bo_theo5@example.com', 'Bo1995', 'Bo1995')\n YKHO.login(...
[ "0.9343295", "0.8552518", "0.8478462", "0.83282495", "0.8315106", "0.8146321", "0.80606836", "0.80593735", "0.7993019", "0.7855543", "0.78443205", "0.77430016", "0.7732725", "0.7699715", "0.766738", "0.75508666", "0.7495234", "0.7481776", "0.74599594", "0.7453341", "0.7443559...
0.81414086
6
Test creating a category with invalid details
def VVd7(YKHO): Ylbp = YKHO.client.post(AQX_, {}) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEqual(Ylbp.data['errors']['name'][0], 'This field is required.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XnPT(YKHO):\n pass", "def kADc(YKHO):\n ZMzz = seJW(data=dict(name='service1', category=10), context=dict(project=YKHO.project))\n YKHO.assertFalse(ZMzz.is_valid())\n YKHO.assertEqual(ZMzz.errors['category'][0].code, 'does_not_exist')", "def fhTm(YKHO):\n Ghho = qQXR.dumps({'desc': 'Jamaican...
[ "0.82101303", "0.8041852", "0.791494", "0.78192854", "0.7700955", "0.76209366", "0.7575074", "0.7443271", "0.74368286", "0.7422457", "0.7414787", "0.74138415", "0.73887557", "0.73368895", "0.7318645", "0.7282309", "0.72419256", "0.722112", "0.71900594", "0.71621287", "0.71399...
0.87169325
0
Test create category with existing same name fails
def Cl4r(YKHO): hkDa() Ylbp = YKHO.client.post(AQX_, {'name': 'place'}) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEqual(Ylbp.data['errors']['name'][0], 'This field must be unique.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XnPT(YKHO):\n pass", "def LXOT(YKHO):\n geh0 = YKHO.client.post('/api/v1/categories', data=qQXR.dumps(Ghho[0]), content_type='application/json', headers=YKHO.admin_headers)\n YKHO.assertEqual(geh0.status_code, 409)\n YKHO.assertIn('category with name already exist', str(geh0.data))", "def XlPZ(...
[ "0.86326134", "0.81314254", "0.79928046", "0.785919", "0.78289926", "0.77278626", "0.7714236", "0.7689189", "0.76465833", "0.7560281", "0.7554323", "0.7551021", "0.7518037", "0.74838006", "0.7428445", "0.7390729", "0.73875856", "0.73158264", "0.7306888", "0.72817504", "0.7277...
0.83984613
1
Test updating a favorite thing with put
def MT4f(YKHO): Ghho = hkDa() bD7m = Ua71(Ghho.id) YKHO.client.put(bD7m, {'name': 'school'}) Ghho.refresh_from_db() YKHO.assertEqual(Ghho.name, 'school')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsIF(YKHO, JawI, xAWg):\n NArs = {'title': 'Category', 'description': n9UN.alphanumeric(100)}\n xAWg.update(**NArs)\n assert xAWg.title == NArs['title']\n assert xAWg.description == NArs['description']", "def E86n(YKHO):\n TBsA = '{ \"id\": 400, \"name\": \"item4\", \"content\": \"after test u...
[ "0.76762974", "0.69766474", "0.6795703", "0.6789508", "0.67558914", "0.66835445", "0.6680429", "0.6680045", "0.666597", "0.66503185", "0.66410255", "0.6604145", "0.6601007", "0.6593801", "0.6533169", "0.6530562", "0.6519915", "0.6517103", "0.6507051", "0.6496531", "0.6489638"...
0.0
-1
Test updating a category to existing name fails
def IYrR(YKHO): hkDa() Ghho = hkDa(name='House') bD7m = Ua71(Ghho.id) Ylbp = YKHO.client.put(bD7m, {'name': 'place'}) Ghho.refresh_from_db() YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEqual(Ylbp.data['errors']['name'][0], 'This field must be unique.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MT4f(YKHO):\n pass", "def IsIF(YKHO, JawI, Ghho):\n ipek = n9UN.alphanumeric()\n Ghho.update(name=ipek)\n assert Ghho.name == ipek", "def MT4f(YKHO):\n Ghho = hkDa()\n bD7m = Ua71(Ghho.id)\n YKHO.client.put(bD7m, {'name': 'school'})\n Ghho.refresh_from_db()\n YKHO.assertEqual(Ghh...
[ "0.8705725", "0.86055994", "0.8067761", "0.79751843", "0.7777514", "0.7758227", "0.7564963", "0.7562341", "0.7552205", "0.7283096", "0.72652644", "0.72646534", "0.7263289", "0.72263676", "0.7210747", "0.7179932", "0.7075194", "0.7023446", "0.7023264", "0.69821405", "0.6903937...
0.86579794
1
Initializes to count the number of null lists in a specific feature path. When required_paths is also passed, rows which are null for all of the required paths will not be counted as missing.
def FIMM(YKHO, pmON: types.FeaturePath, GG9f: Optional[Iterable[types.FeaturePath]]=None): YKHO._path = pmON if GG9f: YKHO._required_paths = tuple(sorted(GG9f)) else: YKHO._required_paths = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g0a5(YKHO):\n lTIZ = 0\n for WKvO in range(0, YKHO.tot_col):\n for LVAh in range(1, YKHO.tot_rows + 1):\n if YKHO.file_list[LVAh][WKvO].lower() == 'null':\n lTIZ += 1\n print('Total number of null fields: ' + str(lTIZ))\n dixj.append('Total number of null fields: ' ...
[ "0.57643074", "0.5636303", "0.56160426", "0.5423167", "0.53524774", "0.5331745", "0.5315419", "0.5221362", "0.5192976", "0.5125796", "0.5100069", "0.5041495", "0.5023727", "0.49956", "0.49956", "0.49719247", "0.49719247", "0.49719247", "0.49719247", "0.49430317", "0.4916951",...
0.57114744
1
Returns the count of missing values for this stats generator.
def c1EA(YKHO, alQJ: int) -> int: return alQJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RlXw(YKHO):\n RlXw = YKHO.data.isna().sum()\n if RlXw:\n BwEg = RlXw / YKHO.data.count()\n return f'N={RlXw},{round(BwEg, 2)}%'\n else:\n return 'no missing values'", "def T_Tn(YKHO):\n return YKHO.serie.isna().sum()", "def T_Tn(YKHO):\n RlXw = YKHO.df[YKHO.col_name].isn...
[ "0.7426406", "0.73884034", "0.7072214", "0.7021839", "0.6985721", "0.6931459", "0.68706846", "0.6811899", "0.66869324", "0.6537255", "0.6537255", "0.6530134", "0.6367661", "0.63586634", "0.63222903", "0.63145953", "0.62954384", "0.6267708", "0.62417835", "0.61460364", "0.6140...
0.0
-1
r""" Calculates the sum over all dimensions, except the first (batch dimension), and excluding the last n_dims. This function will ignore the first dimension and it will not aggregate over the last n_dims dimensions.
def Zbqz(vhpA: torch.Tensor, Lm6x: int) -> ht2j.Tensor: if vhpA.dim() == Lm6x + 1: return vhpA else: Htse = list(range(1, vhpA.dim() - Lm6x)) return vhpA.sum(dim=Htse)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dOk7(WKvO, P9o9=1):\n return WKvO.reshape(*WKvO.shape[:P9o9], -1).sum(-1)", "def D6g4(WKvO: Tensor) -> llWB:\n return ht2j.sum(WKvO, dim=0)", "def sum(YKHO, jDK_=None, JsoO=False):\n return vuvg.Sum.apply(YKHO, jDK_, JsoO)", "def YMv8(WKvO):\n SjMt(WKvO.ndim, 1)\n return oyIN.squeeze(oyIN....
[ "0.7724387", "0.63933766", "0.623022", "0.617324", "0.6025804", "0.59841615", "0.5975488", "0.59079736", "0.58502185", "0.58405554", "0.5831169", "0.5810228", "0.5778869", "0.5778869", "0.5761769", "0.57385844", "0.57123697", "0.57123697", "0.56297374", "0.561928", "0.5616455...
0.798387
0
Returns an User (ndb.Model) entity that the username points to. Raises an error if an entity is not found.
def W4qM(NtEF): CBIr = mv1M.query(mv1M.name == NtEF.title()).get() if not CBIr: raise wnQ_.NotFoundException('User {} does not exist!'.format(NtEF)) else: return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(NtEF):\n if ZoP8:\n return egNl().objects.get_by_natural_key(NtEF)\n else:\n return egNl().objects.get(username=NtEF)", "def NMoC(YKHO, NtEF):\n return mv1M.find_by_username_or_email(NtEF)", "def TKWP(NtEF):\n return YJv1.query.filter_by(username=NtEF).first()", "def TKWP(Y...
[ "0.74744946", "0.7447991", "0.7441669", "0.74183327", "0.74178565", "0.7414877", "0.73988956", "0.73629385", "0.7296302", "0.7227076", "0.7220234", "0.7170327", "0.7116797", "0.71012014", "0.7094964", "0.70818806", "0.70427954", "0.7037425", "0.696084", "0.6957107", "0.694782...
0.6353699
71
Returns an Player (ndb.Model) entity for a given username and game. First verify username and game entity are valid, raises error if not. Then returns the Player entity for the given user in the game. Raises an error if a Player is not found.
def KdoI(NtEF, BH3N): if not W4qM(NtEF): raise wnQ_.NotFoundException('{} does not exist!'.format(NtEF)) if not isinstance(BH3N, _apf): raise wnQ_.NotFoundException('Game not found') oyg0 = mVZ4.query(ancestor=BH3N.key).filter(mVZ4.name == NtEF.title()).get() if not oyg0: raise w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lVlK(NtEF):\n CBIr = mv1M.objects.get(username=NtEF)\n if CBIr.two_player_game_id != None:\n return (vEKu.objects.get(game_id=CBIr.two_player_game_id), 'two')\n if CBIr.four_player_game_id != None:\n return (j2Zk.objects.get(game_id=CBIr.four_player_game_id), 'four')\n return (None, N...
[ "0.65232056", "0.63248277", "0.6170685", "0.60794777", "0.59741324", "0.59616375", "0.5943671", "0.5908297", "0.5905852", "0.5870364", "0.5857468", "0.5836295", "0.5746015", "0.5728419", "0.57253647", "0.5602715", "0.55801475", "0.5562985", "0.55489415", "0.55399925", "0.5517...
0.8235693
0
Adds various cachedisabling headers to all responses returned by the application
def MS0M(P4t4): @P4t4.after_request def PYz4(Mkmy): Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate' Mkmy.headers['Pragma'] = 'no-cache' Mkmy.headers['Expires'] = '0' Mkmy.headers['Cache-Control'] = 'public, max-age=0' return Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYz4(geh0):\n geh0.cache_control.no_store = True\n return geh0", "def PYz4(geh0):\n geh0.cache_control.no_store = True\n return geh0", "def hNfN(YKHO):\n\n def rYe1(Mkmy: flask.Response):\n if 'Cache-Control' not in Mkmy.headers:\n Mkmy.headers['Cache-Control'] = 'no-store'...
[ "0.7553019", "0.7553019", "0.7549143", "0.75454265", "0.7496148", "0.74355614", "0.7409956", "0.740559", "0.7390607", "0.7339881", "0.7339881", "0.7303281", "0.7303281", "0.7303281", "0.7303281", "0.7303281", "0.7303281", "0.7303281", "0.7303281", "0.7303281", "0.7303281", ...
0.6854888
55
Test filtering hits and miss datasets.
def NRYX(YKHO): gMbG = [{'exists': True, 'name': 'DATASET1'}, {'exists': False, 'name': 'DATASET2'}] yht1 = IxFA('HIT', gMbG) f9Ro = IxFA('MISS', gMbG) all = IxFA('ALL', gMbG) JXPP = IxFA('NONE', gMbG) YKHO.assertEqual(yht1, [{'exists': True, 'name': 'DATASET1'}]) YKHO.assertEqual(f9Ro, [{'e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_fetch_filtered_dataset_call_misses(YKHO):\n dBuj = FMhU.CoroutineMock()\n dBuj.acquire().__aenter__.return_value = MAqI()\n TL4L = 'GRCh38'\n dQgj = (10, 20, None, None, None, None)\n q7V9 = 1\n aC0l = 'A'\n WRty = ('DUP', None)\n Vauv = await _Ete(dBuj, TL4L, dQgj, q7V9, aC0...
[ "0.6526705", "0.63991475", "0.6067365", "0.60468185", "0.5980538", "0.59720397", "0.59475845", "0.589787", "0.5843083", "0.58304274", "0.5800998", "0.57543606", "0.573433", "0.57284266", "0.5726334", "0.5716319", "0.5710886", "0.57061344", "0.57022065", "0.56984323", "0.56940...
0.730566
0
Test transform misses record.
def JsRH(YKHO): geh0 = {'referenceBases': '', 'alternateBases': '', 'variantType': '', 'frequency': 0, 'callCount': 0, 'sampleCount': 0, 'variantCount': 0, 'start': 0, 'end': 0, 'info': {'accessType': 'PUBLIC'}} AIu6 = Ky4Y('PUBLIC') Aofo = Q6FI(AIu6) YKHO.assertEqual(Aofo, geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMGC(YKHO, SZFh: Mapping) -> None:\n E9Ze = SZFh.get(bWwC.ID, '')\n if E9Ze == id(YKHO):\n return\n if E9Ze == bWwC.NONE:\n return\n ekW_ = SZFh.get(bWwC.CLASS_NAME, '')\n HbIg = SZFh.get(bWwC.EXTRA_INFO, {}).get('warn')\n if HbIg:\n qmLP.warn(HbIg)\n if ht2j.multiproc...
[ "0.6604709", "0.6437916", "0.6375894", "0.6232821", "0.5919303", "0.590823", "0.58788997", "0.58498996", "0.58181363", "0.57857037", "0.57830256", "0.57796776", "0.57594526", "0.5697106", "0.56866306", "0.5685778", "0.56558555", "0.5641226", "0.56247234", "0.5612856", "0.5603...
0.6836742
0
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): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') print(Bcwd) QrM1.imshow(Bcwd, interp...
{ "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.81922984", "0.80933887", "0.80272716", "0.8016492", "0.79913706", "0.79885876", "0.79777396", "0.79729784", "0.7958926", "0.7954523", "0.79347897", "0.7931899", "0.7931772", "0.7928666", "0.7923684", "0.7921764", "0.79213995", "0.7920191", "0.792016", "0.7919876", "0.79153...
0.7811767
99
Returns an iterator over the ngrams given a list of tokens
def HyjZ(s2mk, exwG=1): bNbJ = lambda YRbF: (geyT for r845, geyT in enumerate(s2mk) if r845 >= YRbF) TZMB = (bNbJ(YRbF) for YRbF in range(exwG)) OWd9 = zip(*TZMB) return OWd9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kiTG(s2mk, exwG=2):\n pCSA = zip(*(uOgj(uOe2, or8S, None) for or8S, uOe2 in enumerate(y54_(s2mk, exwG))))\n return pCSA", "def zxm6(s2mk, ercu, *, HSJD=False):\n if ercu <= 0:\n raise Exception('ngram size must be positive')\n if not HSJD:\n for Jnwu in range(len(s2mk)):\n ...
[ "0.73350906", "0.732948", "0.71909267", "0.7100118", "0.7063269", "0.69512093", "0.68591905", "0.6789865", "0.67402244", "0.6720318", "0.6680123", "0.6668854", "0.6627547", "0.6622774", "0.6584314", "0.65706635", "0.6560498", "0.6546228", "0.64868057", "0.6476503", "0.6459065...
0.68247813
7
Returns an itirator over all ngrams for n in range(ngramRange) given a list of tokens.
def IMwY(s2mk, JQoq=(1, 2)): return eNCK(*(HyjZ(s2mk, YRbF) for YRbF in range(*JQoq)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X9Px(DumB: List[str], fPyG=(1, 1)) -> jd6F[x1iM[str], ImMB, None]:\n pCSA = []\n XT48 = [(0, YRbF) for YRbF in range(fPyG[0], fPyG[1] + 1)]\n for Mkmy in XT48:\n pCSA += list(zip(*[DumB[r845:] for r845 in range(*Mkmy)]))\n Itkg = [' '.join(ZfUD) for ZfUD in pCSA]\n yield Itkg", "def kiT...
[ "0.77018356", "0.7479281", "0.74121964", "0.74022996", "0.7253089", "0.7199664", "0.7115451", "0.70956486", "0.708296", "0.70244306", "0.6999506", "0.6986396", "0.6947342", "0.6940619", "0.6927285", "0.6926673", "0.6888308", "0.68828356", "0.6871958", "0.682038", "0.6817774",...
0.8547429
0
Initialize an Evaluation object.
def FIMM(YKHO): YKHO._summary = {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, c2Yh, Tuqy, Ahgi=None, PJWX=1, **B2fa):\n YKHO.generator = c2Yh\n if Tuqy == 'recall':\n YKHO.evaluate = C_jd\n elif Tuqy == 'accuracy':\n YKHO.evaluate = wt3V\n elif Tuqy == 'mAP':\n YKHO.evaluate = fqs3\n else:\n raise ValueError('unsupported evaluation c...
[ "0.673257", "0.6675408", "0.6673282", "0.63719517", "0.63487226", "0.6341479", "0.621565", "0.61684275", "0.6149013", "0.61229223", "0.6117673", "0.60776865", "0.60776865", "0.60722077", "0.6053143", "0.6053143", "0.60521984", "0.60372925", "0.60231334", "0.59643507", "0.5964...
0.0
-1
Sets up this window with a simulator, a display and optionally a control widget.
def FIMM(YKHO, N6LA, W8mS, z5su=None, **B2fa): super(ZQ14, YKHO).__init__(**B2fa) YKHO.setAttribute(uaAZ.WA_DeleteOnClose) YKHO.simulator = N6LA YKHO.display = W8mS YKHO.control = z5su pczG = SQhP(YKHO) if YKHO.control is None: YKHO.control = uzep(YKHO.simulator, parent=pczG) LAO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AxRC(YKHO):\n s6np = '{}/display.json'.format(YKHO.settings_dir)\n with open(s6np) as wM3v:\n Q6ca = qQXR.load(wM3v)\n YKHO.win = BvEx.Window(**Q6ca)\n u0Zu = YKHO.win.fps()\n YKHO.frame_duration = 1.0 / u0Zu\n YKHO.mouse = tvqc.Mouse(visible=False, win=YKHO.win)", "def MG5I(YKHO):\n...
[ "0.68346995", "0.6504775", "0.6488538", "0.64603406", "0.6286316", "0.6179651", "0.61078423", "0.6093484", "0.60897326", "0.6019644", "0.6019345", "0.6001433", "0.599808", "0.59722495", "0.59695345", "0.59521645", "0.5940673", "0.59181553", "0.5897244", "0.5888673", "0.588575...
0.76192385
0
Get the authenticated userid for this request. When using HTTPSRPHMACAuth, this requires calculating the expected digest response using the user's nonce and password verifier, and comparing it to the response returned in the Authorization header.
def ITdw(YKHO, QePW): NArs = YKHO._get_auth_params(QePW) if NArs is None: return None if not YKHO._authenticate(QePW, NArs): return None NtEF = NArs['username'] if YKHO.groupfinder is not None: if YKHO.groupfinder(NtEF) is None: return None return NtEF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x3Ye(YKHO, QePW):\n em58 = QePW.headers.get('Authorization')\n if em58 is None:\n return None\n nLLh = _hNX(em58)\n if nLLh is None:\n raise BWoA.HTTPUnauthorized(headers={'WWW-Authenticate': 'Bearer realm=\"Weasyl\" error=\"invalid_token\"'})\n return nLLh.userid", "def x3Ye(YKH...
[ "0.7036967", "0.70048946", "0.67695534", "0.67280394", "0.6551004", "0.6241438", "0.6140925", "0.6096623", "0.60860455", "0.60304624", "0.6013703", "0.5983581", "0.59092814", "0.5870384", "0.58188313", "0.58152586", "0.5813406", "0.5809295", "0.5772613", "0.57415456", "0.5730...
0.6754592
3
Get the unauthenticated userid for this request. When using HTTPSRPHMACAuth, this involves looking in the HTTP Authorization header to find the reported username.
def x3Ye(YKHO, QePW): NArs = YKHO._get_auth_params(QePW) if NArs is None: return None return NArs.get('username')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x3Ye(YKHO, QePW):\n em58 = QePW.headers.get('Authorization')\n if em58 is None:\n return None\n nLLh = _hNX(em58)\n if nLLh is None:\n raise BWoA.HTTPUnauthorized(headers={'WWW-Authenticate': 'Bearer realm=\"Weasyl\" error=\"invalid_token\"'})\n return nLLh.userid", "def x3Ye(YKH...
[ "0.86458576", "0.86111814", "0.82587343", "0.81629455", "0.7881346", "0.71495134", "0.70761484", "0.6976793", "0.6847131", "0.6801054", "0.6793066", "0.67122", "0.6617604", "0.6589437", "0.6586149", "0.6583202", "0.65430385", "0.65210736", "0.6506743", "0.6506743", "0.6495544...
0.8799287
0
Obtain the password verifier data to use for the given user. This method returns a tuple (algorithm, salt, verifier) giving the necessary information to verify the user's password. If no information is available for the user then a tuple of Nones is returned.
def AjEI(YKHO, NtEF): if YKHO.get_verifier is not None: C0tB = YKHO.get_verifier(NtEF) if C0tB is not None and C0tB[0] is not None: return C0tB if YKHO.get_password is not None: jTXt = YKHO.get_password(NtEF) if jTXt is not None: E91_ = 'SRP-1024-SHA1' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tAkE(YKHO):\n raise NotImplementedError('get_verified_password')", "def tAkE(YKHO):\n return YKHO.controller.dbfilter.db.get('passwd/user-password-again')", "def EvfH() -> tuple:\n gFsc: dict = QePW.get_json()\n PObu: str = gFsc.get('uid')\n gZ75: str = gFsc.get('organization_id')\n jTXt:...
[ "0.6216303", "0.61528856", "0.59387445", "0.5666319", "0.548512", "0.54241", "0.5317666", "0.5284316", "0.52637374", "0.52235824", "0.5173144", "0.5169702", "0.51583606", "0.51457644", "0.5130701", "0.511049", "0.5103841", "0.50647473", "0.5032563", "0.5018214", "0.50169563",...
0.72366863
0
Creates a dictionarylike object representing the filesystem structure starting at the given root directory.
def oPyi(c9fe, Wutj=None, xIAp=dict, qDHI=None, Zpx1=None, BwZK=False, srzk=True, Zwrn=False, jYva=None): T_uI = xIAp() zYu4 = (lambda WKvO: WKvO) if jYva is None else jYva for tk5Y, yTbG, iIh5, iumf in GL6G(c9fe, include_root=BwZK, prune_empty=Zwrn, dirname_filter=qDHI, filename_filter=Zpx1): if yT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, TLI7, WY_n='r'):\n YKHO.name = TLI7\n YKHO.defmode = WY_n\n YKHO.items = []\n for YRbF in Hy7s.listdir(TLI7):\n if Hy7s.path.isdir(Hy7s.path.join(TLI7, YRbF)):\n YKHO.items.append(UD_O(Hy7s.path.join(TLI7, YRbF), WY_n))\n else:\n YKHO.items.append(open...
[ "0.6521569", "0.65162444", "0.6484279", "0.64037526", "0.6266439", "0.62654215", "0.6254696", "0.6253443", "0.62238693", "0.6207021", "0.6196134", "0.6184652", "0.6175318", "0.6164307", "0.6069025", "0.6048882", "0.6022305", "0.60057586", "0.60057586", "0.60057586", "0.600575...
0.7043223
0
Get a random element from the set.
def UIrZ(YKHO) -> int: if YKHO.data: return YKHO.data[tuKI.randrange(len(YKHO.data))] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UIrZ(YKHO):\n return YKHO.nums[tuKI.randint(0, len(YKHO.nums) - 1)]", "def UIrZ(YKHO):\n exwG = len(YKHO.keys)\n while exwG > 0:\n d6pt = tuKI.randint(0, exwG - 1)\n Ufrw = YKHO.keys[d6pt]\n if Ufrw in YKHO.ds:\n return Ufrw\n else:\n YKHO.keys[d6pt]...
[ "0.77060276", "0.738916", "0.7296881", "0.72187954", "0.6871744", "0.68453854", "0.68330806", "0.67740154", "0.67226046", "0.6703282", "0.6665089", "0.66356236", "0.66217655", "0.6612035", "0.66000897", "0.6567767", "0.6477719", "0.6462421", "0.64428514", "0.64162946", "0.640...
0.0
-1
Function that return the api key for the cleverbot api.
def tUS4(YKHO): H5ew = YKHO.bot_data_file['apiKeys']['cleverbot'] if YKHO.check_empty_key(H5ew): return H5ew else: print('ERROR GETTING THE CLEVERBOT KEY (get yours from https://www.cleverbot.com/api/)- ABORTING') quit(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rLF4(YKHO):\n bD7m = '{0}/{1}'.format(YKHO.get_url(), 'api_key')\n return (Xqgu.Request('GET', bD7m), gpan.parse_json)", "def p7gc():\n _Fei = R4f_()\n _Fei = _Fei['notifier']['telegram_bot']\n return _Fei.get('api_key')", "def rJDA(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'api_k...
[ "0.811822", "0.8109484", "0.79165703", "0.79165703", "0.79165703", "0.79165703", "0.7915356", "0.78725505", "0.78210324", "0.7732284", "0.77136934", "0.77110773", "0.7637436", "0.7619761", "0.75656086", "0.75656086", "0.75261956", "0.7480597", "0.74262774", "0.7424998", "0.73...
0.7482254
17
Function that return the api key for the hypixel api.
def EZj8(YKHO): H5ew = YKHO.bot_data_file['apiKeys']['hypixel'] if YKHO.check_empty_key(H5ew): return H5ew else: print('ERROR GETTING THE HYPIXEL KEY (get yours from https://api.hypixel.net/) - ABORTING') quit(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rLF4(YKHO):\n bD7m = '{0}/{1}'.format(YKHO.get_url(), 'api_key')\n return (Xqgu.Request('GET', bD7m), gpan.parse_json)", "def rJDA(YKHO):\n return YKHO._api_key", "def rJDA(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'api_key')", "def rJDA(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(...
[ "0.7882624", "0.7581468", "0.7505369", "0.7505369", "0.7505369", "0.7505369", "0.74702185", "0.7435706", "0.74057823", "0.7401957", "0.73333293", "0.73333293", "0.7320179", "0.7299802", "0.72601944", "0.7181773", "0.7115222", "0.711507", "0.71141195", "0.70895034", "0.7085272...
0.7944425
0
Apply the sigmoid function to a given vector z
def m1Hg(epBp): return 1 / (1 + XTiz.exp(epBp))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(epBp):\n return mFhB(epBp)", "def m1Hg(epBp):\n return 1 / (1 + oyIN.e ** (-epBp))", "def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))", "def m1Hg(epBp):\n return 1 / (1 + oyIN.exp(-1 * epBp))", "def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))", "def m1Hg(YKHO, epBp):...
[ "0.87852424", "0.87203354", "0.86295617", "0.8579101", "0.8548155", "0.85432875", "0.85228527", "0.8521811", "0.8492998", "0.84773827", "0.84757036", "0.8422963", "0.8413242", "0.840143", "0.83995837", "0.8386571", "0.8381562", "0.8380191", "0.834812", "0.8343984", "0.8340798...
0.8448596
11
Apply the derivative of the sigmoid function to a given vector z
def hj5n(epBp): FFMo = m1Hg(epBp) return FFMo * (1 - FFMo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZml(epBp):\n KCHu = 1.0 / (1.0 + oyIN.exp(-epBp))\n oxOY = KCHu * (1 - KCHu)\n return oxOY", "def c3pE(epBp):\n return epBp * (1 - epBp)", "def FdrC(YKHO, epBp):\n return oyIN.exp(-epBp) / (1 + oyIN.exp(-epBp)) ** 2", "def gAiz(epBp):\n ggF6 = oyIN.multiply(epBp, 1.0 - epBp)\n retur...
[ "0.845679", "0.8382699", "0.82087004", "0.81125015", "0.80461526", "0.8024078", "0.7924393", "0.791048", "0.79070383", "0.7734504", "0.77253765", "0.7725097", "0.7677215", "0.7675911", "0.76673025", "0.7663973", "0.7629547", "0.761612", "0.7605165", "0.7603668", "0.76017916",...
0.6418672
92
Construct all the parameters from its relationships with body size and temperature, using the normalizing constants and scaling exponent w
def i3Qt(NArs, L44W, FyKz, wA2l): yzQ0 = NArs['w'] rLdf = NArs['pd'] I2Si = NArs['pv'] AKcU = NArs['Er'] dgDF = NArs['Ek'] eLDV = NArs['ER'] i1TH = NArs['EC'] mzsL = NArs['EP'] LUPS = NArs['Eq1'] UNBC = NArs['Eq2'] jzdc = NArs['a'] Fg_i = NArs['b'] Z9rn = NArs['c'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8Xp(YKHO):\n for YRbF in range(1, len(YKHO.layer_dimensions)):\n yGTL = 0\n SRYB = 2 / YKHO.layer_dimensions[YRbF]\n WTkW = oyIN.sqrt(SRYB)\n qmhL = (YKHO.layer_dimensions[YRbF - 1], YKHO.layer_dimensions[YRbF])\n upAO = oyIN.random.normal(loc=yGTL, scale=WTkW, size=qmhL)...
[ "0.63872725", "0.6359708", "0.63504016", "0.6349889", "0.62771535", "0.6260182", "0.62050694", "0.61629844", "0.61521065", "0.61232364", "0.60978574", "0.60809964", "0.60663754", "0.6043746", "0.6043204", "0.60430783", "0.60391027", "0.60364896", "0.603379", "0.60298866", "0....
0.56011987
71
Returns the (x, y) position of the IR tracker in the camera reference plane.
def ThH6(YKHO, dsE5): Cd_s = XC5k.cvtColor(YKHO.frame, XC5k.COLOR_BGR2HSV) ZHfW = XC5k.inRange(Cd_s, YKHO.hueLower, YKHO.hueUpper) try: ZHfW = XC5k.inRange(Cd_s, YKHO.hueLower2, YKHO.hueUpper2) + ZHfW except AttributeError: pass ZHfW = XC5k.erode(ZHfW, None, iterations=2) ZHfW = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TwAD(YKHO):\n y82m = YKHO.chain.get_current_values()\n nu05, ZyN8 = YKHO._solver.forward_solve(y82m)\n return (nu05, ZyN8)", "def bo8r(YKHO):\n return YKHO._arm.get_linear_track_pos()", "def ceNl(YKHO):\n iZZG = YKHO.x_mc.current_position() / YKHO.steps_per_cm\n fh3X = YKHO.y_mc.current_p...
[ "0.6636195", "0.652415", "0.65058815", "0.6493314", "0.64832383", "0.6479564", "0.6456116", "0.6453457", "0.64308065", "0.6426223", "0.6411724", "0.63737077", "0.6317715", "0.63049656", "0.62969553", "0.6257294", "0.6256818", "0.6250686", "0.62020564", "0.62020564", "0.619684...
0.0
-1
Split a string on separator, ignoring ones escaped by backslashes.
def FbMn(vIwR, g8rx): Aofo = [] jvSB = '' EtF8 = False for hcXw in vIwR: if not EtF8: if hcXw == '\\': EtF8 = True continue elif hcXw == g8rx: Aofo.append(jvSB) jvSB = '' continue EtF8...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRnF(vIwR, VWe_=','):\n njyT = ZbWC.escape(VWe_) + '\\\\s*(?![^\\\\[\\\\]]*\\\\])(?![^()]*\\\\))'\n return ZbWC.split(njyT, vIwR)", "def yHbD(TDw3, vIwR, UHFx=0):\n assert len(TDw3) == 1\n PR2A = ZbWC.compile('(?<!\\\\\\\\)%s' % TDw3)\n Aofo = PR2A.split(vIwR, UHFx)\n return Aofo", "def l...
[ "0.7253181", "0.71445125", "0.7137215", "0.7121397", "0.7037666", "0.6960564", "0.68714076", "0.6836655", "0.67315274", "0.6703915", "0.6701192", "0.6682179", "0.66377485", "0.6558326", "0.6476721", "0.6373009", "0.6294557", "0.6292038", "0.6199906", "0.61823356", "0.6165287"...
0.8195037
0
X coordinate of the cartesian position.
def WKvO(YKHO): return YKHO._x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nIKw(YKHO):\n return YKHO.coords[0]", "def Aco_(YKHO):\n return YKHO.__pos_x", "def p5xg(YKHO):\n return YKHO.x_coord", "def vAgg(YKHO):\n return YKHO.position.x", "def WKvO(YKHO):\n return YKHO.coords[0]", "def nIKw(YKHO):\n return YKHO.posX", "def WKvO(YKHO):\n return YKHO._c...
[ "0.80998755", "0.8040294", "0.803745", "0.80215025", "0.8018538", "0.80019146", "0.7985554", "0.7981068", "0.786164", "0.78604984", "0.78149635", "0.7766205", "0.7683169", "0.76169026", "0.7551751", "0.75131196", "0.74211395", "0.73938507", "0.7351592", "0.73244274", "0.73244...
0.6679089
63
Y coordinate of the cartesian position.
def LVAh(YKHO): return YKHO._y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVAh(YKHO):\n return YKHO.coords[1]", "def yDCK(YKHO):\n return YKHO.coords[1]", "def LVAh(YKHO):\n return YKHO._coords[1]", "def bDS1(YKHO):\n return YKHO.position.getY()", "def BBTF(YKHO):\n return YKHO.position.y", "def bmPF(YKHO):\n return YKHO.y0 + oyIN.arange(YKHO.ny) * YKHO.d...
[ "0.82681483", "0.82525843", "0.82442576", "0.8238144", "0.82361335", "0.8225148", "0.820561", "0.8087116", "0.8035207", "0.80289924", "0.8012774", "0.79748297", "0.7971425", "0.7960988", "0.7960988", "0.7952861", "0.79017615", "0.78972137", "0.7876323", "0.78546315", "0.78546...
0.7362171
56
Test that User has attr first_name, and it's an empty string
def jXFZ(YKHO): CBIr = mv1M() YKHO.assertTrue(hasattr(CBIr, 'first_name')) YKHO.assertEqual(CBIr.first_name, '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hx_7(YKHO):\n YKHO.updated_data['first_name'] = ''\n YKHO.update_user()\n YKHO.assertEqual(YKHO.user.first_name, YKHO.updated_data['first_name'])", "def WTDH(YKHO):\n CBIr = mv1M()\n YKHO.assertTrue(hasattr(CBIr, 'last_name'))\n YKHO.assertEqual(CBIr.last_name, '')", "def R51M(YKHO):\n ...
[ "0.7791351", "0.77021265", "0.76935613", "0.75390244", "0.7298847", "0.7283681", "0.7144283", "0.71056646", "0.70899546", "0.7047616", "0.70143366", "0.7010477", "0.695369", "0.69226205", "0.68944967", "0.68793935", "0.6868432", "0.6830701", "0.67952096", "0.67564285", "0.671...
0.84504926
0
Return the API Youtube object.
def fCK_(): xAU6 = {} kZiy = Hy7s.path.expanduser('~') Xjil = Hy7s.path.join(kZiy, '.youtube-upload-credentials.json') wPyx = Hy7s.path.join(kZiy, '.client_secrets.json') Vt89 = Xjil dsE5('Using client secrets: {0}'.format(wPyx)) dsE5('Using credentials file: {0}'.format(Vt89)) AHUg = Jp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XL9m(YKHO):\n return YKHO._youtube", "def md9v(YKHO):\n Hy7s.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1'\n Zk9Q = 'youtube'\n clva = 'v3'\n CK6C = 'client_secret.json'\n uC2a = ['https://www.googleapis.com/auth/youtube.readonly']\n _uqo = bQzG.flow.InstalledAppFlow.from_client_secrets_f...
[ "0.7800044", "0.7103913", "0.7006781", "0.6539203", "0.6526153", "0.6515458", "0.62943244", "0.6238135", "0.6226493", "0.6218725", "0.6180336", "0.61586845", "0.6125841", "0.6111459", "0.60653925", "0.6030153", "0.590494", "0.5866446", "0.58460426", "0.5816294", "0.5787223", ...
0.63300043
6
This function takes a text file and creates 2 lists.
def PEaw(nUeQ): with open(nUeQ, 'r') as eHNT: U34r = eHNT.readline().split() uFUy = [] id = 1 kVrW = [] for YRbF in range(0, len(U34r)): uFUy.append(FlUN(float(U34r[YRbF]), id, 0, [])) id += 1 for zFiD in eHNT: V22M = zFiD.split() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hze7(a9K4):\n with open(a9K4, 'r') as vJOV:\n Nqlg = vJOV.readlines()\n Nqlg = [WKvO for WKvO in Nqlg if not (WKvO.strip() == '' or WKvO.strip()[0] == '#')]\n LSN5 = []\n GVLJ = []\n UbA0 = []\n WwJm = []\n for vC9B in Nqlg:\n ZGVd = ZbWC.split(',|;', vC9B.strip())\n L...
[ "0.67911035", "0.66548043", "0.64961046", "0.6493165", "0.64600074", "0.64349306", "0.6410033", "0.63810414", "0.6363333", "0.6291014", "0.6283217", "0.62821156", "0.6279652", "0.6277509", "0.6257828", "0.6207706", "0.6198657", "0.6173826", "0.61607474", "0.6135674", "0.61335...
0.0
-1
Sets the _date of this DayResult.
def dcJF(YKHO, dcJF: datetime): if dcJF is None: raise ValueError('Invalid value for `_date`, must not be `None`') YKHO.__date = dcJF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wjGx(YKHO, _c1T):\n YKHO.date = _c1T\n return", "def wjGx(YKHO, _c1T):\n YKHO.date = _c1T", "def _c1T(YKHO, _c1T):\n YKHO._date = _c1T", "def _c1T(YKHO, _c1T):\n YKHO._date = _c1T", "def _c1T(YKHO, _c1T):\n YKHO._date = _c1T", "def _c1T(YKHO, _c1T):\n YKHO._date = _c1T", "def _...
[ "0.8185898", "0.8131151", "0.7920227", "0.7893277", "0.7893277", "0.7893277", "0.7893277", "0.7893277", "0.777507", "0.777507", "0.777153", "0.76911235", "0.7654553", "0.73064077", "0.72493833", "0.71411484", "0.71303713", "0.71067226", "0.7089747", "0.7034327", "0.70337856",...
0.7484449
13
Gets the close of this DayResult.
def DDI8(YKHO) -> float: return YKHO._close
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OsL1(YKHO):\n return YKHO.get_parameter('close')", "def ODCB(YKHO):\n open = YKHO._data['open'][YKHO._offset]\n uziH = YKHO._data['close'][YKHO._offset]\n return open * (1.0 + uziH)", "def gbEw(YKHO):\n return YKHO.data.last('1D').close.iat[0]", "def nwl9(YKHO):\n open = YKHO._prices.op...
[ "0.70047885", "0.6986404", "0.69569314", "0.6932321", "0.6813832", "0.6720651", "0.6325208", "0.6018458", "0.59866065", "0.593251", "0.59102976", "0.5899073", "0.5899073", "0.5886629", "0.5814446", "0.57874507", "0.5785539", "0.5784856", "0.5756914", "0.5729316", "0.57240146"...
0.69106793
4
Gets the sma of this DayResult.
def ch6h(YKHO) -> float: return YKHO._sma
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D6t9(nPrm):\n if nPrm is None:\n raise HfEf('[!] Invalid data value')\n Aofo = AsBL.SMMA(nPrm)\n if Aofo is None:\n raise AG_L\n return Aofo", "def LZQd(nPrm):\n if nPrm is None:\n raise HfEf('[!] Invalid data value')\n Aofo = AsBL.SSMA(nPrm)\n if Aofo is None:\n ...
[ "0.6705078", "0.6702005", "0.63130915", "0.604633", "0.60253215", "0.5814726", "0.57309335", "0.55183524", "0.5501305", "0.54923886", "0.5349451", "0.53133947", "0.5306182", "0.5286874", "0.52662396", "0.52632236", "0.52127385", "0.519259", "0.51896226", "0.51849455", "0.5179...
0.68374413
0
Gets the ema of this DayResult.
def FwwX(YKHO) -> float: return YKHO._ema
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RVQU(YKHO):\n fLyv = YKHO.settings['emaFactor']\n GXUe = fLyv ** YKHO.vars['dt']\n if YKHO.vars['step'] == 0:\n FwwX = float('NaN')\n elif YKHO.vars['step'] == 1:\n FwwX = YKHO.vars['speed_trace'][1]\n else:\n FwwX = GXUe * YKHO.vars['ema_trace'][YKHO.vars['step'] - 1] + (1 ...
[ "0.6840555", "0.6328568", "0.6284632", "0.627982", "0.62528276", "0.61535186", "0.60896593", "0.60843945", "0.60232496", "0.60146594", "0.59870666", "0.59870666", "0.5979842", "0.59694964", "0.5923869", "0.5825421", "0.5755103", "0.5740356", "0.5740356", "0.5708852", "0.57063...
0.7366966
0
Gets the bb_bottom of this DayResult.
def _VYi(YKHO) -> float: return YKHO._bb_bottom
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def es2x(YKHO):\n return YKHO.__b", "def es2x(YKHO):\n return YKHO._bottom", "def es2x(YKHO):\n return YKHO._bottom", "def es2x(YKHO):\n return YKHO._bottom", "def es2x(YKHO):\n return YKHO.top + YKHO.height", "def es2x(YKHO):\n return YKHO.points['bottomRight'].y", "def es2x(YKHO):\n...
[ "0.7806876", "0.76377356", "0.7617096", "0.7505211", "0.7393419", "0.7244565", "0.7244565", "0.715929", "0.7107881", "0.68817294", "0.68652534", "0.68652534", "0.68652534", "0.68274355", "0.6763851", "0.6640081", "0.663842", "0.6610873", "0.66095287", "0.6604838", "0.6604838"...
0.84198266
0
Gets the rsi of this DayResult.
def gi43(YKHO) -> float: return YKHO._rsi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gi43(_c1T):\n return float(F0em['Technical Analysis: RSI'][_c1T]['RSI'])", "def IwnO(nPrm):\n if nPrm is None:\n raise HfEf('[!] Invalid data value')\n Aofo = AsBL.RSI(nPrm)\n if Aofo is None:\n raise AG_L\n return Aofo", "def exxs(nPrm):\n if nPrm is None:\n raise Hf...
[ "0.6533008", "0.6491186", "0.64453936", "0.5878729", "0.5777096", "0.57620794", "0.55363625", "0.5494498", "0.54942125", "0.54648906", "0.5421359", "0.5398907", "0.5377694", "0.53757167", "0.5293823", "0.52934027", "0.52746415", "0.52619094", "0.5248207", "0.5237654", "0.5224...
0.7123576
0
Gets the cci of this DayResult.
def bmfT(YKHO) -> float: return YKHO._cci
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hcbd(YKHO):\n return YKHO.__eci", "def xoy2(nPrm):\n if nPrm is None:\n raise HfEf('[!] Invalid data value')\n Aofo = AsBL.CCI(nPrm)\n if Aofo is None:\n raise AG_L\n return Aofo", "def g097(YKHO):\n return YKHO._get_attribute('crc')", "def Nr63(YKHO):\n return YKHO._ci...
[ "0.6295567", "0.60494006", "0.6025518", "0.59071356", "0.58969074", "0.5879198", "0.5815264", "0.5726353", "0.57141125", "0.5699751", "0.56982195", "0.56803477", "0.5542666", "0.5533924", "0.5509144", "0.55022794", "0.5486937", "0.54697", "0.5457986", "0.5443288", "0.5432931"...
0.6942836
0
Sets the holding of this DayResult.
def DQwx(YKHO, DQwx: float): if DQwx is None: raise ValueError('Invalid value for `holding`, must not be `None`') YKHO._holding = DQwx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJpF(YKHO, Aofo):\n if YKHO.done():\n raise PG6x(YKHO)\n YKHO._is_done = True\n YKHO._result = Aofo", "def cNUs(YKHO, BWXx):\n YKHO._result = BWXx\n YKHO._state = ZJ9k", "def xJpF(YKHO, Aofo):\n YKHO._result = Aofo\n YKHO._set_done()", "def Aofo(YKHO, Aofo):\n YKHO._result ...
[ "0.56218916", "0.5390519", "0.53825665", "0.53475934", "0.53475934", "0.5294301", "0.5291957", "0.5291957", "0.52891624", "0.5277973", "0.5272773", "0.5232683", "0.52119017", "0.52119017", "0.5198507", "0.51296836", "0.5100267", "0.50429964", "0.50369173", "0.50276613", "0.50...
0.5145805
15
Gets the cash of this DayResult.
def VoIp(YKHO) -> float: return YKHO._cash
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVrm(YKHO):\n return YKHO.cash", "def KWPq(YKHO) -> int:\n return YKHO.state[QICY]", "def b8G8(YKHO):\n return YKHO._cash", "def Dx5h(YKHO, abiq):\n YKHO.cash = abiq.price\n return YKHO.cash", "def IyYm(YKHO):\n _Jkf = UO6B(YKHO.user)\n return _Jkf.get_balance_amount()", "def h4a...
[ "0.7749279", "0.7357067", "0.67757225", "0.6665068", "0.6497363", "0.61889416", "0.6069715", "0.60297805", "0.5995536", "0.58673155", "0.5860459", "0.5763532", "0.5738253", "0.5658459", "0.5455791", "0.5452864", "0.5421678", "0.5414225", "0.54129237", "0.53891695", "0.5388189...
0.74906373
1
Sets the cash of this DayResult.
def VoIp(YKHO, VoIp: float): if VoIp is None: raise ValueError('Invalid value for `cash`, must not be `None`') YKHO._cash = VoIp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yvej(YKHO, VoIp):\n HVIF = YKHO.get_portfolio_object()\n if HVIF is not None:\n HVIF.cash += VoIp\n HVIF.initial_cash += VoIp", "def VoIp(YKHO) -> float:\n return YKHO._cash", "def Dx5h(YKHO, abiq):\n YKHO.cash = abiq.price\n return YKHO.cash", "def jYy3(YKHO, RA_F):\n YKH...
[ "0.7091743", "0.62326807", "0.61899394", "0.5963316", "0.589987", "0.57699627", "0.563683", "0.5482396", "0.5458104", "0.54136056", "0.52196425", "0.5144976", "0.514445", "0.5111715", "0.5092481", "0.5036379", "0.5026525", "0.5023056", "0.4954834", "0.4869902", "0.48422784", ...
0.66653264
1
Gets the value of this DayResult.
def BWXx(YKHO) -> float: return YKHO._value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UnfG(YKHO):\n return YKHO._value", "def UnfG(YKHO):\n return YKHO.value", "def UnfG(YKHO):\n return YKHO.value", "def BWXx(YKHO, CjKC='today'):\n assert CjKC == 'today' or isinstance(CjKC, _c1T), 'Error! You have to pass a datetime.date istance to the day parameter.'\n if CjKC == 'today':\...
[ "0.675377", "0.6725964", "0.668124", "0.66299087", "0.6615667", "0.65515864", "0.65515864", "0.65515864", "0.65227", "0.64704686", "0.64704686", "0.64704686", "0.64558023", "0.643882", "0.643882", "0.643882", "0.6432335", "0.64294297", "0.64294297", "0.64216006", "0.64216006"...
0.0
-1
Sets the value of this DayResult.
def BWXx(YKHO, BWXx: float): if BWXx is None: raise ValueError('Invalid value for `value`, must not be `None`') YKHO._value = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D_2f(YKHO, BWXx):\n super(tPGm, YKHO)._set_input('Day', BWXx)", "def p33c(YKHO, *qIxc):\n return _VfD.Date_setDay(YKHO, *qIxc)", "def CjKC(YKHO, CjKC):\n YKHO._day = CjKC", "def CjKC(YKHO, CjKC):\n YKHO._day = CjKC", "def xgBU(YKHO, *qIxc):\n return mJjH.Solver_SetResultValue(YKHO, *qIxc...
[ "0.63637984", "0.63153356", "0.6208888", "0.6208888", "0.61087126", "0.6082854", "0.60736036", "0.6015619", "0.5882843", "0.58578676", "0.5810654", "0.57990205", "0.57990205", "0.5792254", "0.5792254", "0.5790793", "0.5789273", "0.5759768", "0.5739839", "0.5724052", "0.572209...
0.0
-1
Finds haversin distance (distance along great circle) in miles between two points. Points are defined by latitude and longitude. Radius of the Earth is assumed to be the midpoint between radius at the equator and radius at the pole.
def mnBt(igSk, GgQG, TGuP, tk0B): Mkmy = 3956.545 igSk = oyIN.pi / 180 * igSk GgQG = oyIN.pi / 180 * GgQG TGuP = oyIN.pi / 180 * TGuP tk0B = oyIN.pi / 180 * tk0B Csk6 = 2 * Mkmy * oyIN.arcsin(oyIN.sqrt(oyIN.sin((TGuP - igSk) / 2) ** 2 + oyIN.cos(igSk) * oyIN.cos(TGuP) * oyIN.sin((tk0B - GgQG) / ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AUp_(lCHq, ANJu):\n import math\n\n def A3bL(_IXK):\n return _IXK * math.pi / 180\n ykU0 = 6371.0\n upem = A3bL(lCHq[0])\n WMf6 = A3bL(ANJu[0])\n br2l = A3bL(lCHq[0] - ANJu[0])\n ioV2 = A3bL(lCHq[1] - ANJu[1])\n jzdc = math.sin(0.5 * br2l) ** 2 + math.cos(upem) * math.cos(WMf6) *...
[ "0.7588945", "0.7577696", "0.7546375", "0.75156325", "0.7466122", "0.7366003", "0.7353541", "0.7352228", "0.7332006", "0.732501", "0.73147154", "0.7281115", "0.72754496", "0.72611326", "0.7260919", "0.72574294", "0.72478116", "0.72352916", "0.7215604", "0.7200017", "0.7196837...
0.7114394
33
Return the maximal timeUUID for the timestamp immediately preceding the timestamp of the timeUUID ``u``
def RqI8(P6bq): K5uO = x_JF(P6bq) return mxsr(K5uO - 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pWUc(P6bq):\n K5uO = x_JF(P6bq)\n return uJz4(K5uO + 1)", "def ITS7(YKHO, P6bq):\n return YKHO._ll_tree.get_time(P6bq)", "def nYpZ(YKHO, P6bq=T2Pq):\n Ziit = YKHO.preorder(P6bq)\n MjGx = P6bq == YKHO.virtual_root\n ITS7 = YKHO.tree_sequence.nodes_time\n if MjGx:\n ITS7 = oyIN.ap...
[ "0.6875454", "0.5700998", "0.5295624", "0.5286404", "0.5175484", "0.51728743", "0.51459426", "0.5110911", "0.5067966", "0.5053651", "0.49741986", "0.49545303", "0.49466422", "0.4941383", "0.4926041", "0.4910391", "0.49034923", "0.49031386", "0.48703253", "0.48479232", "0.4830...
0.78562325
0
Mutates a population. Selects the best n individuals (based on the selectionRate) to mutate (maybe they'll give us even better individuals!). After mutating an individual, it checks if we have an individual that is similar to the mutated one, if so, then try to mutate again, otherwise, we simply calculate its fitness a...
def FpZ1(YKHO, CHNM): for YRbF in range(int(epAf.ceil(YKHO.selectionRate * len(CHNM)))): ggXJ = YKHO.mutateIndividual(CHNM[YRbF]) while YKHO.isIndividualInPopulation(ggXJ, CHNM) == True: ggXJ = YKHO.mutateIndividual(CHNM[YRbF]) YKHO.calcIndividualFitness(ggXJ) CHNM.append...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gB1x(tuKI, CHNM, qIxc):\n QNRY = qIxc.setdefault('num_selected', 1)\n Y74R = len(CHNM)\n hlI9 = [YRbF for YRbF in range(Y74R)]\n aMtw = max(CHNM).fitness\n N5kp = min(CHNM).fitness\n if aMtw < N5kp:\n raise ValueError('Fitness proportionate selection is not valid for minimization.')\n ...
[ "0.69687045", "0.6867652", "0.68638057", "0.6850501", "0.6847528", "0.6783619", "0.6715495", "0.6658223", "0.6632159", "0.6594578", "0.65939194", "0.6568971", "0.6538658", "0.6468645", "0.64661646", "0.6450038", "0.64373183", "0.6428205", "0.64249825", "0.64058185", "0.639774...
0.7991917
0
Checks if an individual is in a population.
def bdhi(YKHO, DM04, CHNM): for YRbF in CHNM: if YRbF == DM04: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, CHNM):\n return YKHO.chromosome_list == CHNM.chromosome_list", "def nhu8():\n BEuN = REFe()\n assert len(BEuN.population) == Iwk2\n assert isinstance(BEuN.population[0], GkPB)", "def Syyr(YKHO, jrD8, w0Mt, SGJk, W1An):\n xJgB = {'population_size': jrD8, 'cell_number': w0Mt, 'micro...
[ "0.63011485", "0.5875469", "0.5873875", "0.5841512", "0.5733281", "0.5730178", "0.5723089", "0.5708155", "0.57066196", "0.5702802", "0.567919", "0.5665297", "0.56181157", "0.5569913", "0.55618745", "0.55400103", "0.5518681", "0.5490887", "0.5469354", "0.54638547", "0.5458895"...
0.8702243
0
Applies a directional scaling to a set of vectors. An example usage for this is to flatten a mesh against a single plane. Direction MUST be normalised prior to this call.
def rahy(F_On, XSoh, NXpY): """ scaling is defined as: [p'][1 + (k - 1)n.x^2, (k - 1)n.x n.y^2, (k - 1)n.x n.z ] S(n,k) = [q'][(k - 1)n.x n.y, 1 + (k - 1)n.y, (k - 1)n.y n.z ] [r'][(k - 1)n.x n.z, (k - 1)n.y n.z, 1 + (k - 1)n.z^2 ] where: v' is the resulting vector afte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uDEn(F_On, NXpY):\n SppC = XTiz.array([[NXpY[0], 0.0, 0.0], [0.0, NXpY[1], 0.0], [0.0, 0.0, NXpY[2]]])\n return XTiz.dot(F_On, SppC)", "def RKrU(F_On, eHNT):\n return [HvgP(iArr, eHNT) for iArr in F_On]", "def NkkI(YKHO):\n YKHO._vectors = [iArr.normalized() for iArr in YKHO._vectors]", "def ...
[ "0.6662197", "0.6507097", "0.61409515", "0.608848", "0.5960277", "0.59000295", "0.5844457", "0.5774308", "0.566719", "0.5564189", "0.545749", "0.5408552", "0.5405568", "0.5393711", "0.5342308", "0.5331461", "0.53202534", "0.53033173", "0.5275942", "0.52735925", "0.5238962", ...
0.72134334
0
Applies a 3 dimensional scale to a set of vectors.
def uDEn(F_On, NXpY): SppC = XTiz.array([[NXpY[0], 0.0, 0.0], [0.0, NXpY[1], 0.0], [0.0, 0.0, NXpY[2]]]) return XTiz.dot(F_On, SppC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RKrU(F_On, eHNT):\n return [HvgP(iArr, eHNT) for iArr in F_On]", "def uDEn(iXlf, NXpY=1.0):\n qvwj(iXlf)\n if type(NXpY) != float:\n raise ValueError\n for YRbF in range(len(iXlf)):\n Ty9i = iXlf[YRbF]\n rFua = [Ty9i[0] * NXpY, Ty9i[1] * NXpY, Ty9i[2] * NXpY]\n iXlf[YR...
[ "0.71041596", "0.6487279", "0.6485424", "0.64662945", "0.6345029", "0.6303627", "0.6060879", "0.6046138", "0.6014817", "0.59162086", "0.59115326", "0.5910346", "0.58851117", "0.5880268", "0.58379424", "0.58329576", "0.58122903", "0.5797459", "0.57912207", "0.5773743", "0.5767...
0.74894387
0
Sanitize a given string for use in LaTeX
def aSeI(KCHu): KCHu = KCHu.replace('_', '\\_') return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ziRe(aSQi):\n bD3d = aSQi.replace('\\\\\\\\%', '\\\\%').replace('\\\\\\\\', '\\\\tabularnewline').replace('\\\\$', '$').replace('\\\\_', '_').replace('ug/L', '\\\\si[per-mode=symbol]{\\\\micro\\\\gram\\\\per\\\\liter}').replace('\\\\textbackslashtimes', '\\\\times').replace('\\\\textbackslash', '').replace(...
[ "0.79070896", "0.7341153", "0.7003761", "0.6971657", "0.68508697", "0.68284774", "0.6824936", "0.68216455", "0.68206507", "0.68178976", "0.67470694", "0.6732892", "0.6716535", "0.67127985", "0.6710152", "0.670698", "0.6703582", "0.6703582", "0.67018497", "0.6690541", "0.66677...
0.6288298
66
Call after self.Q has converged to, on an infinite loop, get the current state and perform the action in that state with highest qvalue.
def ptVm(YKHO): while True: print('In execute_best_actions') KCHu = YKHO.get_state_num() t17M = YKHO.Q[KCHu] r8IL = oyIN.argmax(t17M) YKHO.apply_action(r8IL) while YKHO.reward == None: sQC5.sleep(0.5) print('Reward =', YKHO.reward) YKHO.rew...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7_U(YKHO):\n if YKHO.state.as_tuple() not in YKHO.qstore.q:\n YKHO.enum.enumerate_state(YKHO.state, YKHO.qstore.q)\n CE5G = YKHO.qstore.q[YKHO.state.as_tuple()]\n if oyIN.random.random() < YKHO.epsilon:\n XeOP = wHLO(*CE5G['actions'][oyIN.random.randint(len(CE5G['actions']))])\n else...
[ "0.7055279", "0.6744102", "0.671204", "0.67064065", "0.6705401", "0.668007", "0.6544516", "0.6539079", "0.6539079", "0.6531268", "0.6530377", "0.65045273", "0.64821327", "0.64717346", "0.64598113", "0.6458333", "0.64546317", "0.6418523", "0.6402537", "0.63667685", "0.6363638"...
0.67206407
2
Get a dictionary containing the total score for ``obj`` and the number of votes it's received. Thus, it can be used to calculate the best rated objects in a very simplified scale. This isn't a very good rating function right now, because an object that has got a lot of up and downvotes is a reflection of its popularity...
def hckV(YKHO, YEnM): m5r4 = DDS9.objects.get_for_model(YEnM) Aofo = YKHO.filter(content_type=m5r4, object_id=YEnM._get_pk_val()).aggregate(score=zphJ('vote'), num_votes=kbH2('vote')) if Aofo['score'] is None: Aofo['score'] = 0 Aofo['upvotes'] = YKHO.get_upvotes(YEnM) Aofo['downvotes'] = YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hckV(YKHO, YEnM):\n MkEV = DDS9.objects.get_for_model(YEnM)\n Aofo = YKHO.filter(object_id=YEnM._get_pk_val(), content_type=MkEV).extra(select={'score': 'COALESCE(SUM(vote), 0)', 'num_votes': 'COALESCE(COUNT(vote), 0)'}).values_list('score', 'num_votes')[0]\n return {'score': int(Aofo[0]), 'num_votes'...
[ "0.81031865", "0.79285175", "0.6855811", "0.67928356", "0.6763918", "0.6228135", "0.61716664", "0.59057057", "0.5784851", "0.5742161", "0.5692605", "0.5655364", "0.5652737", "0.56520414", "0.5641303", "0.5590621", "0.5585837", "0.5560485", "0.5549761", "0.55324996", "0.551647...
0.80732733
1
Get the top N scored objects for a given model. Yields (object, score) tuples.
def KQbM(YKHO, C3ST, qoqK=10, tsq2=False): m5r4 = DDS9.objects.get_for_model(C3ST) dixj = YKHO.filter(content_type=m5r4).values('object_id').annotate(score=zphJ('vote')) if tsq2: dixj = dixj.order_by('score') else: dixj = dixj.order_by('-score') _2sc = m5r4.model_class() ei4T = _...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KQbM(YKHO, wOed, qoqK=10, reversed=False):\n MkEV = DDS9.objects.get_for_model(wOed)\n xDcj = '\\n SELECT object_id, SUM(vote) as %s\\n FROM %s\\n WHERE content_type_id = %%s\\n GROUP BY object_id' % (UzPC.ops.quote_name('score'), UzPC.ops.quote_name(YKHO.model._meta.db_table)...
[ "0.6620148", "0.6568486", "0.6029523", "0.5966627", "0.5958777", "0.588728", "0.57843107", "0.57750875", "0.5712884", "0.5682572", "0.5677662", "0.5639743", "0.5635089", "0.5624442", "0.5623601", "0.55735147", "0.5531635", "0.5519599", "0.55086815", "0.5506289", "0.5492053", ...
0.7162024
0
Get the bottom (i.e. most negative) N scored objects for a given model. Yields (object, score) tuples.
def Asd8(YKHO, C3ST, qoqK): return YKHO.get_top(model=C3ST, limit=qoqK, reversed=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KQbM(YKHO, C3ST, qoqK=10, tsq2=False):\n m5r4 = DDS9.objects.get_for_model(C3ST)\n dixj = YKHO.filter(content_type=m5r4).values('object_id').annotate(score=zphJ('vote'))\n if tsq2:\n dixj = dixj.order_by('score')\n else:\n dixj = dixj.order_by('-score')\n _2sc = m5r4.model_class()\...
[ "0.6854979", "0.6772459", "0.6659615", "0.5919356", "0.5495765", "0.5441017", "0.5422967", "0.5374533", "0.533833", "0.5326259", "0.52904046", "0.52887124", "0.5285204", "0.5284337", "0.52065706", "0.5205698", "0.5190723", "0.5187864", "0.5182705", "0.5175455", "0.51667124", ...
0.541528
7
Returns a single randomly selected tweet.
def kGTM(XuYB): Mau6 = Acvy(XuYB) return Mau6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DCgT(tvqc, QpfX):\n n8Xq(tuKI.choice(BlUY))", "def DCgT(tvqc, QpfX):\n n8Xq(tuKI.choice(BlUY))", "def DCgT(tvqc, QpfX):\n n8Xq(tuKI.choice(BlUY))", "def I4ry():\n UHFx = tuKI.randint(70, 140)\n return ''.join([tuKI.choice(vIwR.letters) for YRbF in Ni9Y(UHFx)])", "def U9dg(YKHO, id):\n ...
[ "0.69579417", "0.69579417", "0.69258714", "0.6577981", "0.63306475", "0.6282631", "0.6218992", "0.6208195", "0.6181834", "0.6129136", "0.61065483", "0.60549045", "0.6049556", "0.60462", "0.6039426", "0.6018565", "0.5995151", "0.59862554", "0.59862554", "0.59862554", "0.597905...
0.7728843
0
Return number of unmerged commits.
def JR1N(YKHO): return int(YKHO.git.rev_list('--count', '{}..{}'.format(YKHO.base_branch, YKHO.topic_branch)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BSlM(pmON):\n NBjn = Yn3K.Popen(['git', 'shortlog', '-sn'], cwd=pmON, stdout=Yn3K.PIPE)\n zJsh, bGrB = NBjn.communicate()\n S4xi = zJsh.decode('ISO-8859-1')\n return len(S4xi.split('\\n'))", "def _z5B():\n if GLp5 is None:\n return Uafr('git rev-list {base_version}..HEAD --count'.format...
[ "0.6773051", "0.6740454", "0.6568362", "0.6104326", "0.60325164", "0.59609437", "0.5774543", "0.56423247", "0.56212234", "0.56212234", "0.5621026", "0.53949195", "0.5394291", "0.539106", "0.5321197", "0.5314997", "0.5308237", "0.5281387", "0.52706915", "0.52404267", "0.522989...
0.75320995
0
Get the timestamp of the current datetime (UTC+0).
def nOtw(PXGI: TimeUnit=r5MW.SECONDS) -> float: return p8ch.to_timestamp(p8ch.now(), PXGI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B1jW():\n return GRk0.timegm(wj6w().timetuple())", "def otuc():\n return int(round(ITS7.time() * 1000.0))", "def nX4v(YKHO) -> ITS7:\n return ITS7.time()", "def iFPm() -> int:\n return int(qcWV.datetime.now(qcWV.timezone.utc).timestamp() * 1000)", "def otuc() -> int:\n return azw4(qcWV.u...
[ "0.8128896", "0.7950068", "0.79068804", "0.7879169", "0.7803992", "0.779588", "0.762444", "0.7621025", "0.7606697", "0.75824934", "0.75821215", "0.75002515", "0.74046713", "0.73762214", "0.7365892", "0.73491395", "0.73374605", "0.7330938", "0.7327624", "0.73222387", "0.729858...
0.7030237
46
Get a datetime (UTC+0) from a given timestamp.
def gUmT(E3oo: float, PXGI: TimeUnit=r5MW.SECONDS) -> qcWV: UTxh: float = E3oo / 1000 ** int(PXGI) return qcWV.fromtimestamp(UTxh, tz=rIAI.utc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cxh3(Emd4, E3oo):\n return qcWV.datetime.utcfromtimestamp(E3oo)", "def gUmT(E3oo: float, pner: tzinfo=wyKz) -> qcWV:\n B8aT = qcWV.fromtimestamp(E3oo, tz=wyKz)\n return FPLx(B8aT, pner)", "def wbtj(E3oo):\n return qcWV.fromtimestamp(E3oo * 0.001, tz=rIAI.utc)", "def k_T9(E3oo: int) -> qcWV:\n...
[ "0.794051", "0.7511175", "0.74730664", "0.74206144", "0.73750776", "0.7223302", "0.7184576", "0.7102429", "0.7044664", "0.6915108", "0.68710554", "0.6802214", "0.67751104", "0.67445123", "0.67129403", "0.6673835", "0.6572541", "0.65684503", "0.65646917", "0.6556415", "0.65375...
0.70273954
9
Convert a datetime to a timestamp.
def Jj31(ppPa: datetime, PXGI: TimeUnit=r5MW.SECONDS) -> float: return ppPa.replace(tzinfo=rIAI.utc).timestamp() * 1000 ** int(PXGI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n99j(YKHO, JRYC):\n return ITS7.mktime(JRYC.timetuple())", "def aEIX(BWXx):\n if not isinstance(BWXx, qcWV.datetime):\n raise ValueError('Expecting datetime object, got %s instead' % type(BWXx).__name__)\n if BWXx.tzinfo is not None:\n raise ValueError('Only UTC datetime is supported')...
[ "0.78914905", "0.7560773", "0.74864686", "0.74651605", "0.7394036", "0.7391953", "0.73898655", "0.73102313", "0.71485525", "0.7114895", "0.702918", "0.70137656", "0.7007949", "0.6956953", "0.69367707", "0.68967223", "0.6878627", "0.6839798", "0.68312806", "0.6759354", "0.6743...
0.69854754
13
Make a friendly filename for the image using the group key.
def HsL2(H5ew, Fst3): H5ew = QMSQ(H5ew.strip()) return '{}.{}'.format(eIIt(H5ew), Fst3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r1Ht(YKHO, LNo8):\n return LNo8.replace('shub://', '').replace('/', '-') + '.simg'", "def eUc4(WTdP):\n WTdP = WTdP.lower()\n jUwZ = '^[a-z0-9][-a-z0-9]*$'\n QJ5B = '[_-]+'\n ts6y = ZbWC.sub(QJ5B, '-', WTdP)\n ts6y = ts6y.rstrip('-')\n if not ZbWC.match(jUwZ, ts6y):\n raise ValueE...
[ "0.73010015", "0.72769046", "0.6884829", "0.68747765", "0.68047935", "0.67867476", "0.6779212", "0.66346717", "0.6630774", "0.66114205", "0.6602075", "0.6564071", "0.65483004", "0.65046066", "0.6477566", "0.6474544", "0.6470609", "0.64491904", "0.6440801", "0.6429668", "0.639...
0.65414995
13
Makes all time series equal in length with no zeroes
def JEPm(IeOM): HLYT = {} MxDj = 5000 for KCHu in IeOM: ik35 = oyIN.loadtxt('station_fuelType/' + KCHu + '_P98', delimiter=',') HLYT[KCHu] = ik35[:, 1] while float(HLYT[KCHu][0]) == 0.0: HLYT[KCHu] = HLYT[KCHu][1:len(HLYT[KCHu])] if len(HLYT[KCHu]) < MxDj: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOVh(X05Z, Lt7L):\n Lm6x = len(X05Z.shape)\n xVmT = X05Z.shape[-1]\n if Lm6x > 1:\n YDR7 = X05Z.shape[:-1]\n lSCz = YDR7 + (Lt7L,)\n else:\n lSCz = Lt7L\n if xVmT < Lt7L:\n jbXL = X05Z\n X05Z = oyIN.zeros(lSCz, X05Z.dtype)\n X05Z[..., :xVmT] = jbXL\n ...
[ "0.64330965", "0.6358601", "0.62545437", "0.61888236", "0.592304", "0.5854874", "0.58504313", "0.58008087", "0.57790095", "0.57634085", "0.5755235", "0.566739", "0.5647303", "0.561315", "0.56029075", "0.55807287", "0.55233836", "0.54727113", "0.5463944", "0.5463054", "0.54624...
0.5254565
33
Compute the area of a geospatial value. Returns FloatingValue The area of `self`
def f0tD(YKHO) -> _ABP.FloatingValue: return IPme.GeoArea(YKHO).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO) -> float:\n raise NotImplementedError", "def f0tD(YKHO):\n if isinstance(YKHO.crs, xPYB):\n iOjJ = YKHO.crs.ellipsoid.a\n K5Zz = YKHO.crs.ellipsoid.b\n f0tD = 0.0\n if iOjJ == K5Zz:\n for pG0V in YKHO.segment_tuples:\n o4D3, si3g = pG0V[0...
[ "0.78390014", "0.7787656", "0.7762487", "0.771008", "0.7676024", "0.7494311", "0.73737156", "0.73681015", "0.7305198", "0.7286801", "0.72227156", "0.71913487", "0.7185521", "0.71353227", "0.71084666", "0.70956665", "0.7095528", "0.7091121", "0.7076087", "0.70625275", "0.70147...
0.89519435
0
Check if the geometry contains the `right`.
def sjXf(YKHO, _tIi: GeoSpatialValue) -> _ABP.BooleanValue: return IPme.GeoContains(YKHO, _tIi).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iaaz(YKHO, _tIi: GeoSpatialValue) -> _ABP.BooleanValue:\n return IPme.GeoContainsProperly(YKHO, _tIi).to_expr()", "def Hu5_(YKHO):\n return YKHO.right != None", "def Hu5_(YKHO):\n return YKHO.__right != None", "def IWqq(YKHO, d6pt):\n return YKHO._right(d6pt) < len(YKHO)", "def Hu5_(YKHO):\...
[ "0.74359876", "0.72793853", "0.7162032", "0.71313685", "0.7104263", "0.7080955", "0.7043116", "0.6947427", "0.6821204", "0.68029386", "0.67226464", "0.66499645", "0.6534325", "0.6515708", "0.6388527", "0.6320226", "0.6316371", "0.63119715", "0.6262486", "0.62425137", "0.62395...
0.7121149
4
Check if the first geometry is covered by the second one.
def eFGj(YKHO, _tIi: GeoSpatialValue) -> _ABP.BooleanValue: return IPme.GeoCoveredBy(YKHO, _tIi).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ciB1(BzZr, RL4V):\n o4D3, si3g, s1k6, zhMh = BzZr.get_box()\n ajwV, skBL, xMw6, WL4f = RL4V.get_box()\n if ajwV + xMw6 - 1 < o4D3 or ajwV >= o4D3 + s1k6:\n return False\n if skBL + WL4f - 1 < si3g or skBL >= si3g + zhMh:\n return False\n return True", "def ynEz(YKHO, Elif):\n ...
[ "0.71286327", "0.6942842", "0.67161864", "0.6662393", "0.6647419", "0.6625198", "0.66251576", "0.65791607", "0.65653855", "0.6551699", "0.6545251", "0.6545058", "0.6539811", "0.6536719", "0.650972", "0.65061027", "0.6498796", "0.6488622", "0.64678764", "0.6434204", "0.6415926...
0.0
-1
Check if `self` is entirely within `distance` from `right`.
def ztAk(YKHO, _tIi: GeoSpatialValue, Ayfi: ir.FloatingValue) -> _ABP.BooleanValue: return IPme.GeoDFullyWithin(YKHO, _tIi, Ayfi).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NyMC(YKHO, _tIi: GeoSpatialValue, Ayfi: ir.FloatingValue) -> _ABP.BooleanValue:\n return IPme.GeoDWithin(YKHO, _tIi, Ayfi).to_expr()", "def U69A(YKHO, AU8u, Ayfi):\n return all((Ayfi >= pG0V.shortest_distance_to(AU8u) for pG0V in YKHO.segments))", "def AJVa(YKHO, AU8u, Ayfi):\n return YKHO.distanc...
[ "0.7167458", "0.66897726", "0.65852267", "0.6398431", "0.631626", "0.6159795", "0.6069909", "0.60572755", "0.5953424", "0.59026295", "0.5893493", "0.5875279", "0.57910955", "0.5758687", "0.5736612", "0.57315516", "0.57160324", "0.5710056", "0.57049614", "0.57049614", "0.56849...
0.7242819
0
Check if `self` is partially within `distance` from `right`.
def NyMC(YKHO, _tIi: GeoSpatialValue, Ayfi: ir.FloatingValue) -> _ABP.BooleanValue: return IPme.GeoDWithin(YKHO, _tIi, Ayfi).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ztAk(YKHO, _tIi: GeoSpatialValue, Ayfi: ir.FloatingValue) -> _ABP.BooleanValue:\n return IPme.GeoDFullyWithin(YKHO, _tIi, Ayfi).to_expr()", "def U69A(YKHO, AU8u, Ayfi):\n return all((Ayfi >= pG0V.shortest_distance_to(AU8u) for pG0V in YKHO.segments))", "def AJVa(YKHO, AU8u, Ayfi):\n return YKHO.di...
[ "0.7420986", "0.6674265", "0.6413584", "0.61454713", "0.6127788", "0.5950731", "0.59127736", "0.5828475", "0.5825035", "0.5794298", "0.57647914", "0.56845057", "0.5664932", "0.5646242", "0.56445026", "0.5642126", "0.5579724", "0.5579724", "0.5560193", "0.55255526", "0.5500712...
0.7225795
1
Check if the geometries are equal.
def vwTt(YKHO, _tIi: GeoSpatialValue) -> _ABP.BooleanValue: return IPme.GeoEquals(YKHO, _tIi).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wuey(YKHO):\n pGmv = n294(curvature=1 / 5)\n for G1Hx in (0, -1, 1, 1.75, 0.325, 1 / 7, -1.75, -0.325, -1 / 7):\n j93S = n294(fake_curvature=G1Hx)\n Nqp_ = n294(fake_curvature=G1Hx)\n YKHO.assertTrue(j93S == Nqp_)\n YKHO.assertTrue(hash(j93S) == hash(Nqp_))\n YKHO.asser...
[ "0.66375434", "0.65882397", "0.6416813", "0.6374062", "0.6363448", "0.635945", "0.6321523", "0.62795717", "0.6271236", "0.6188196", "0.61446154", "0.6116885", "0.6116209", "0.610441", "0.60991853", "0.60832536", "0.6053294", "0.604458", "0.6042769", "0.6042236", "0.60419905",...
0.0
-1
Get the type of a geometry. Returns StringValue String representing the type of `self`.
def sSrO(YKHO) -> _ABP.StringValue: return IPme.GeoGeometryType(YKHO).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZMvW(YKHO):\n return YKHO.geometry_type", "def ZMvW(YKHO):\n return YKHO._geometry_type", "def Qy87(YKHO):\n return PX7E(slpE.ST_GeometryType, YKHO)", "def Qy87(YKHO):\n ...", "def Qp9O(type):\n return mJjH.GmatBase_GetObjectTypeString(type)", "def FRul(YKHO) -> str:\n return YKHO.t...
[ "0.76413125", "0.758172", "0.7331979", "0.711782", "0.69186944", "0.6886925", "0.6850519", "0.6850519", "0.68425244", "0.68053585", "0.67596257", "0.6710633", "0.6700815", "0.6681921", "0.6681921", "0.6681921", "0.66299194", "0.6629663", "0.6625415", "0.6621467", "0.65781057"...
0.82591885
0
Check if two geometries are equal and have the same point ordering. Returns true if the two geometries are equal and the coordinates are in the same order.
def HRLy(YKHO, _tIi: GeoSpatialValue) -> _ABP.BooleanValue: return IPme.GeoOrderingEquals(YKHO, _tIi).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n4Wc(jzdc: tuple, Fg_i: tuple) -> bool:\n return all(oyIN.array(jzdc) < oyIN.array(Fg_i))", "def WHxA(EBgd, HpuQ):\n if MTjI:\n j93S = BYPk.SpatialReference()\n j93S.ImportFromProj4(EBgd.srs)\n Nqp_ = BYPk.SpatialReference()\n Nqp_.ImportFromProj4(HpuQ.srs)\n return j...
[ "0.7220397", "0.71463054", "0.6850719", "0.6790405", "0.67355716", "0.6695321", "0.66638625", "0.66298896", "0.6626457", "0.66249317", "0.66158235", "0.6571864", "0.65682805", "0.65573114", "0.6546626", "0.6546626", "0.6533778", "0.6521973", "0.64543235", "0.6434683", "0.6373...
0.60856986
55
Compute the distance between two geospatial expressions.
def Ayfi(YKHO, _tIi: GeoSpatialValue) -> _ABP.FloatingValue: return IPme.GeoDistance(YKHO, _tIi).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(jzdc, Fg_i):\n return CgaZ((float(jzdc.longitude), float(jzdc.latitude)), (float(Fg_i.longitude), float(Fg_i.latitude))).km", "def Ayfi(YKHO, jzdc, Fg_i):\n \"\"\"R = 3963 # radius of Earth (miles)\n lat1, lon1 = math.radians(a[0]), math.radians(a[1])\n lat2, lon2 = math.radians(b[0...
[ "0.67492944", "0.67315775", "0.6720346", "0.66882116", "0.66505593", "0.6646785", "0.66209525", "0.6602943", "0.6596843", "0.65880513", "0.6574677", "0.6560092", "0.6550573", "0.6542965", "0.6534998", "0.65274507", "0.6516017", "0.64990103", "0.6498941", "0.648396", "0.647728...
0.6739062
1
Compute the length of a geospatial expression. Returns FloatingValue Length of `self`
def u54L(YKHO) -> _ABP.FloatingValue: return IPme.GeoLength(YKHO).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n return PX7E(slpE.ST_Length, YKHO)", "def pCBL(YKHO):\n return YKHO.geometry.length", "def u54L(YKHO) -> float:\n exwG = YKHO.geodesic.extrinsicDimension()\n pGCm = 1.0 / 3.0\n\n def Ayfi(WKvO, LVAh):\n CaXX = WKvO[:exwG]\n UNUO = YKHO.geodesic.integrate(CaXX, yNYn...
[ "0.759075", "0.75095755", "0.7373766", "0.73544824", "0.7261306", "0.7236807", "0.7201984", "0.70979667", "0.70661324", "0.7026694", "0.6963566", "0.6913003", "0.68597555", "0.684015", "0.6811498", "0.67878556", "0.677738", "0.6695058", "0.66927135", "0.6674483", "0.6637787",...
0.8851043
0
Returns the 2dimensional max distance between two geometries in projected units. If `self` and `right` are the same geometry the function will return the distance between the two vertices most far from each other in that geometry.
def aq_o(YKHO, _tIi: GeoSpatialValue) -> _ABP.FloatingValue: return IPme.GeoMaxDistance(YKHO, _tIi).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jDSb(YKHO, LFlW, _tIi):\n return epAf.fabs(_tIi - LFlW)", "def Ayfi(YKHO, _tIi: GeoSpatialValue) -> _ABP.FloatingValue:\n return IPme.GeoDistance(YKHO, _tIi).to_expr()", "def s7yO(YKHO, Elif: Geometry[Scalar]) -> sjOu:\n return YKHO._distance_to_point(Elif) if isinstance(Elif, PvyL) else X7Bf((YKH...
[ "0.7138382", "0.69984686", "0.62663174", "0.6188633", "0.61593235", "0.61498183", "0.61449254", "0.6134089", "0.6068625", "0.6057324", "0.6041501", "0.60340476", "0.6026349", "0.60073996", "0.5995334", "0.59545815", "0.5942099", "0.5938405", "0.59302366", "0.5925812", "0.5921...
0.7459676
0
Return the X coordinate of `self`, or NULL if not available. Input must be a point. Returns FloatingValue X coordinate of `self`
def WKvO(YKHO) -> _ABP.FloatingValue: return IPme.GeoX(YKHO).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WKvO(YKHO):\n return _VfD.Point_x(YKHO)", "def WKvO(YKHO):\n if YKHO._x is None:\n YKHO.compute_coordinates()\n return YKHO._x", "def vAgg(YKHO):\n return YKHO.position.x", "def nIKw(YKHO):\n return YKHO.coords[0]", "def YH9x(YKHO):\n return YKHO.actual_coordinates[0]", "def ...
[ "0.7814623", "0.78104514", "0.7591496", "0.7546243", "0.75261414", "0.7450409", "0.7361697", "0.7337589", "0.7337589", "0.7246292", "0.7211677", "0.7160209", "0.7126991", "0.7117762", "0.7105483", "0.70794123", "0.6926576", "0.69061804", "0.68926066", "0.68602324", "0.6833039...
0.7151541
12
Return the Y coordinate of `self`, or NULL if not available. Input must be a point. Returns FloatingValue Y coordinate of `self`
def LVAh(YKHO) -> _ABP.FloatingValue: return IPme.GeoY(YKHO).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVAh(YKHO):\n return _VfD.Point_y(YKHO)", "def bDS1(YKHO):\n LVAh = YKHO.getAttribute('y')\n eJTR = YKHO.getKind()\n YKHO._y = LVAh if eJTR == 'pie' else None\n return YKHO._y", "def LVAh(YKHO):\n if YKHO._y is None:\n YKHO.compute_coordinates()\n return YKHO._y", "def bDS1(YK...
[ "0.7559136", "0.7464621", "0.74579424", "0.74516743", "0.7447463", "0.74445784", "0.74270296", "0.74270296", "0.7409005", "0.73963886", "0.73947215", "0.7389522", "0.73710334", "0.7309924", "0.7270492", "0.7249949", "0.7202446", "0.7196194", "0.71444803", "0.71249986", "0.705...
0.6994527
23
Return the X minima of a geometry. Returns FloatingValue X minima
def wBZN(YKHO) -> _ABP.FloatingValue: return IPme.GeoXMin(YKHO).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wBZN(YKHO):\n return YKHO.get_min_value(YKHO.X_INDEX)", "def dpeR(YKHO):\n return YKHO.minx", "def btQX(*qIxc, **B2fa):\n return nAU3.DC_MinX(*qIxc, **B2fa)", "def M3_Q(YKHO):\n min = 1e+30\n qwA9 = None\n for YRbF in range(0, YKHO.GetN()):\n XP5J = (YnkN.Double(), YnkN.Double())...
[ "0.6936281", "0.68577117", "0.6676654", "0.65368813", "0.65021634", "0.64860624", "0.64765996", "0.6459425", "0.6271408", "0.62344307", "0.62138295", "0.62108153", "0.6197507", "0.6180147", "0.6161268", "0.60633", "0.6042033", "0.59815675", "0.59366107", "0.58715415", "0.5848...
0.75810975
0
Return the X maxima of a geometry. Returns FloatingValue X maxima
def re6M(YKHO) -> _ABP.FloatingValue: return IPme.GeoXMax(YKHO).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def re6M(YKHO):\n return YKHO.get_max_value(YKHO.X_INDEX)", "def EFA2(YKHO):\n return YKHO.xvar.minmax()", "def IuJa(YKHO):\n return YKHO.maxx", "def zt1J(YKHO):\n return YKHO.__maxx", "def kOkd(*qIxc, **B2fa):\n return nAU3.DC_MaxX(*qIxc, **B2fa)", "def O2Zy(YKHO):\n return max(YKHO.ge...
[ "0.70034647", "0.6844462", "0.68119204", "0.6744491", "0.66253954", "0.65137553", "0.6445284", "0.63773924", "0.6355037", "0.6352898", "0.634081", "0.6320554", "0.6241515", "0.61676", "0.60805666", "0.60124505", "0.59927404", "0.59921575", "0.5976097", "0.5970284", "0.5966874...
0.774601
0
Return the Y minima of a geometry. Returns FloatingValue Y minima
def KDmU(YKHO) -> _ABP.FloatingValue: return IPme.GeoYMin(YKHO).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DVXS(YKHO):\n return YKHO.yvar.minmax()", "def COt1(YKHO):\n min = 1e+30\n for YRbF in range(0, YKHO.GetN()):\n XP5J = (YnkN.Double(), YnkN.Double())\n YKHO.GetPoint(YRbF, XP5J[0], XP5J[1])\n if XP5J[1] < min:\n min = XP5J[1]\n return min", "def zQe_(YKHO):\n ...
[ "0.66017616", "0.6561854", "0.6507894", "0.6417266", "0.6388026", "0.6362979", "0.6347971", "0.6301745", "0.6212872", "0.6202674", "0.615909", "0.61345196", "0.61152333", "0.61130464", "0.6020709", "0.5908351", "0.579901", "0.57950985", "0.57829785", "0.5726", "0.5721702", ...
0.7229437
0
Return the first point of a `LINESTRING` geometry as a `POINT`. Return `NULL` if the input parameter is not a `LINESTRING` Returns PointValue Start point
def Ruu7(YKHO) -> Hjj_: return IPme.GeoStartPoint(YKHO).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x4Ew(ScAM, EcVT=0, daj9='last'):\n QnmL = None\n jz6R = None\n try:\n EcVT = round(EcVT)\n except Exception as e:\n raise TypeError('Please enter a number for the index of the point within the linestring (X)')\n if daj9 in ['last', 'ignore']:\n pass\n else:\n daj9 ...
[ "0.6900281", "0.6412776", "0.6308229", "0.6055818", "0.6031474", "0.5971331", "0.5921453", "0.5892484", "0.5889433", "0.58782244", "0.5713872", "0.5669867", "0.565784", "0.5622244", "0.56021214", "0.5563299", "0.55588895", "0.5468982", "0.5464776", "0.54572684", "0.5446547", ...
0.66960007
1
Return the last point of a `LINESTRING` geometry as a `POINT`. Return `NULL` if the input parameter is not a `LINESTRING` Returns PointValue End point
def eyHp(YKHO) -> Hjj_: return IPme.GeoEndPoint(YKHO).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x4Ew(ScAM, EcVT=0, daj9='last'):\n QnmL = None\n jz6R = None\n try:\n EcVT = round(EcVT)\n except Exception as e:\n raise TypeError('Please enter a number for the index of the point within the linestring (X)')\n if daj9 in ['last', 'ignore']:\n pass\n else:\n daj9 ...
[ "0.6676908", "0.5809005", "0.5783823", "0.56184757", "0.55974036", "0.55868995", "0.55476713", "0.55083495", "0.54330933", "0.5421323", "0.5405748", "0.5357882", "0.5356936", "0.5310009", "0.53001106", "0.5296828", "0.52810085", "0.5279905", "0.5247025", "0.52342033", "0.5233...
0.6394568
1
Check if the first geometry is completely inside of the second.
def eVmN(YKHO, _tIi: GeoSpatialValue) -> _ABP.BooleanValue: return IPme.GeoWithin(YKHO, _tIi).to_expr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ciB1(BzZr, RL4V):\n o4D3, si3g, s1k6, zhMh = BzZr.get_box()\n ajwV, skBL, xMw6, WL4f = RL4V.get_box()\n if ajwV + xMw6 - 1 < o4D3 or ajwV >= o4D3 + s1k6:\n return False\n if skBL + WL4f - 1 < si3g or skBL >= si3g + zhMh:\n return False\n return True", "def ynEz(YKHO, Elif):\n ...
[ "0.74680316", "0.7408429", "0.70452654", "0.69574714", "0.6937502", "0.6915073", "0.6837254", "0.67717266", "0.6763551", "0.67628014", "0.6729661", "0.6718734", "0.66913474", "0.6684846", "0.6656848", "0.66410434", "0.6634701", "0.6622003", "0.6588898", "0.6587663", "0.656007...
0.0
-1
Return the Courses that the given user is an instructor for. Returns a QuerySet.
def lXdL(CBIr): return CQpO.objects.filter(faculty_group__in=CBIr.groups.all())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def parS(CBIr, YPqY):\n S0j5 = [IihV.from_string(H5ew) for H5ew in MfiT(YPqY)]\n return BTFJ.objects.filter(user=CBIr, course_id__in=S0j5, mode__in=[YDl1.VERIFIED, YDl1.MASTERS, YDl1.EXECUTIVE_EDUCATION], is_active=True)", "def tM1p(YKHO, NtEF: str, eOtH: str) -> x1iM[cuzp[str, object]]:\n if not YKHO.v...
[ "0.6672383", "0.64765507", "0.63457346", "0.62248945", "0.5967342", "0.5896697", "0.58316165", "0.5775987", "0.5749575", "0.5679381", "0.5674233", "0.56352746", "0.5620008", "0.56027764", "0.55914146", "0.55296856", "0.5508865", "0.5476848", "0.5475611", "0.53797096", "0.5378...
0.7003235
0
Return True if the given user is a faculty member on any courses.
def BO_P(CBIr): return Zdi9.objects.filter(user=CBIr).exists() or lXdL(CBIr).exists()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BO_P():\n return osSi('uw_faculty')", "def gB9w(CBIr: User) -> bool:\n if not CBIr:\n raise TypeError('user should not be None')\n return CBIr.name.startswith('L')", "def FQ0G(GQfX, CBIr):\n if CBIr is None:\n return False\n if CBIr.is_authenticated():\n return BTFJ.is_e...
[ "0.8120491", "0.68026584", "0.67830014", "0.672673", "0.66688967", "0.6633363", "0.65973413", "0.65743434", "0.65683174", "0.65278286", "0.65211505", "0.65073335", "0.6498223", "0.64772063", "0.6369451", "0.6323724", "0.6298432", "0.6294453", "0.627507", "0.62634844", "0.6256...
0.8662211
0
Creates an email with no attachement.
def wrMe(vC92, nG3o, U4ZT, TBsA): Ol8d = D3lj.message.EmailMessage() Ol8d['From'] = vC92 Ol8d['To'] = nG3o Ol8d['Subject'] = U4ZT Ol8d.set_content(TBsA) return Ol8d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e8lw(jzNn='to_user@test1.com', ySj3='from_user@test2.com', U4ZT='This is a test email', TBsA='Almost empty text message', s5jr=None, BjiO=None, BG33=None):\n tO9_ = RgQk()\n tO9_['To'] = jzNn\n tO9_['From'] = ySj3\n tO9_['Subject'] = U4ZT\n tO9_.set_content(TBsA)\n if s5jr:\n with open...
[ "0.6983128", "0.65120506", "0.62612367", "0.622603", "0.61640054", "0.6127693", "0.59721655", "0.5970866", "0.5969491", "0.5878382", "0.5856451", "0.58348465", "0.5808649", "0.57627016", "0.5760926", "0.5755286", "0.57515126", "0.5740511", "0.5706194", "0.5683221", "0.5677282...
0.8021318
0
Convert bytes to str as utf8. sequence values (and keys) will also be converted.
def xrD7(nPrm): if isinstance(nPrm, bytes): return nPrm.decode('utf-8') if isinstance(nPrm, dict): return dict(map(xrD7, nPrm.items())) if isinstance(nPrm, tuple): return map(xrD7, nPrm) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xrD7(wEf2):\n if isinstance(wEf2, bytes):\n return str(wEf2, 'utf8')\n else:\n return wEf2", "def D6ho(KCHu, tZ2K='utf-8'):\n if isinstance(KCHu, bytes):\n return KCHu.decode(tZ2K)\n return KCHu", "def lMhD(KCHu):\n if isinstance(KCHu, (bytes, bytearray)):\n retur...
[ "0.7663456", "0.74210477", "0.7398085", "0.7320397", "0.730462", "0.730462", "0.7271459", "0.71937394", "0.7163248", "0.7121813", "0.7071599", "0.70502776", "0.70056546", "0.6998172", "0.689905", "0.68760955", "0.6803896", "0.6796925", "0.6780959", "0.67653143", "0.6710184", ...
0.73248
3