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
Compute the reward for the random baseline.
def LeQq(nPrm, iyYY, rJU4): se2i = oyIN.zeros(nPrm['pool_labels'].shape) for G1Hx in range(nPrm['pool'].shape[0]): eylH = oyIN.random.choice(range(pLB9), rJU4, replace=False) se2i[G1Hx, eylH] = 1 nPrm['mask'] = ht2j.Tensor(se2i) nPrm['pool'] = nPrm['pool'].cpu() aTLP = iyYY(nPrm).squ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wOT8(YKHO) -> float:\n raise NotImplementedError", "def hHjb(YKHO):\n QTBn = YKHO._getDroneStateVector(0)\n return -1 * oyIN.linalg.norm(oyIN.array([0, 0, 1]) - QTBn[0:3]) ** 2", "def vOGg(YKHO):\n YKHO.r = YKHO.calc_reward()", "def YncY(YKHO):\n raise NotImplementedError", "def ETra(YKH...
[ "0.7568446", "0.7526431", "0.74925613", "0.74302167", "0.73600733", "0.7301309", "0.72869855", "0.7275464", "0.7242347", "0.7228443", "0.72284293", "0.7214083", "0.7148026", "0.71467096", "0.71462196", "0.71457386", "0.7081519", "0.7080937", "0.7070637", "0.70407623", "0.7030...
0.0
-1
Assert that nginx responded to the request with status 200 and the expected app response body.
def gcns(YKHO, _hkX): YKHO.assertEqual(200, _hkX.status) YKHO.assertEqual(ey62, _hkX.read())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mZ03(YKHO):\n YKHO.assertEqual(KL4Y({l3V7: 200}), '200 : OK')", "def P4Wq(YKHO):\n Ylbp = YKHO.app.get('/.html')\n YKHO.assertEqual(Ylbp.status, '200 OK')", "def Z5ZI(YKHO):\n assert YKHO.response.status_code == 200", "def XD9p(YKHO):\n QePW = ZrWc.Request.blank('/')\n geh0 = QePW.get_r...
[ "0.71438956", "0.7077632", "0.70599437", "0.70328563", "0.70328563", "0.6997748", "0.6984789", "0.6930312", "0.69188887", "0.69154173", "0.689929", "0.689929", "0.68866867", "0.688086", "0.6874433", "0.6874433", "0.6874433", "0.68511397", "0.6841033", "0.6841033", "0.68372816...
0.739826
0
Assert that nginx responded to the request with status 200 and the expected healthcheck response body.
def ctUO(YKHO, _hkX): YKHO.assertEqual(200, _hkX.status) YKHO.assertEqual(nMuS, _hkX.read())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ze0G(x0hE):\n geh0 = x0hE.get('/health-check/')\n assert geh0.status_code == 200\n assert geh0.data.decode() == 'OK'", "def gFUG(YKHO):\n geh0 = YKHO.client.get('/healthcheck')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n nPrm = geh0.get_json()\n YKHO.assertEqual(nPrm['status...
[ "0.754631", "0.7480749", "0.7463815", "0.7454004", "0.74245024", "0.7329582", "0.7294655", "0.72114015", "0.7195177", "0.71387064", "0.7091648", "0.7059166", "0.7029792", "0.7018791", "0.7018791", "0.6999038", "0.6983435", "0.69787914", "0.6970199", "0.6951059", "0.6935185", ...
0.78700054
0
Assert that nginx rejected the request with a 403 Forbidden.
def O9eK(YKHO, _hkX): YKHO.assertEqual(403, _hkX.status) YKHO.assertIn('Forbidden', _hkX.read())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def suVl(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 403)", "def paCg(YKHO, geh0):\n YKHO.assertStatus(geh0, 403)", "def paCg(YKHO, geh0):\n YKHO.assertStatus(geh0, 403)", "def suVl(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 403)", "def TF4O(YKHO):\n pmON = '/api/'...
[ "0.76399714", "0.75909704", "0.75909704", "0.75678384", "0.7425847", "0.7287219", "0.7287219", "0.7287219", "0.7287219", "0.7287219", "0.7287219", "0.7287219", "0.7287219", "0.72269", "0.71786433", "0.7169322", "0.71223426", "0.71127427", "0.70734626", "0.70734626", "0.707346...
0.7518902
4
LOC setting overrides SRV or MAIN, and SRV overrides MAIN. If no iap_jwt_verify directives are present, no verification is performed.
def JPE8(YKHO): Qbjm = [None, True, False] YKHO.createIapStateFile() for b8V_ in Qbjm: for rS2x in Qbjm: for hksT in Qbjm: YKHO.createConfFile(b8V_, rS2x, hksT, beON, eKvs) YKHO.startNginx() BQKW = False if hksT == True: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CH3W(YKHO):\n YKHO.createConfFile(None, None, None, None, None, True)\n YKHO.createIapStateFile()\n YKHO.startNginx()\n YKHO.makeAndEvaluateStandardRequests(False)", "def FIMM(YKHO, P4t4, Amhj, y0cW=oF4F, **OVI7):\n super(wf_v, YKHO).__init__(P4t4, Amhj, prefix=y0cW, **OVI7)\n YKHO.__client...
[ "0.52329654", "0.51117724", "0.4855504", "0.480913", "0.47852364", "0.47180876", "0.47178674", "0.4691359", "0.46397525", "0.46159494", "0.46058017", "0.4586354", "0.45861474", "0.45510274", "0.45250857", "0.45170784", "0.45170784", "0.4506429", "0.44939965", "0.44865322", "0...
0.5958226
0
Compute softmax values for each sets of scores in x. Expecting numpy arrays
def N93T(WKvO, tpio=1): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO, tpio, keepdims=True)) return uw5A / uw5A.sum(axis=tpio, keepdims=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye", "def N93T(WKvO):\n j1LR = oyIN.exp(o...
[ "0.8096846", "0.7960578", "0.7960578", "0.78264916", "0.77373177", "0.7674858", "0.766998", "0.76572675", "0.76572675", "0.76572675", "0.76572675", "0.76572675", "0.76572675", "0.76572675", "0.7648207", "0.76350814", "0.7559045", "0.7505428", "0.750003", "0.74987984", "0.7490...
0.0
-1
Testea la no creacion de un token de usuario debido al uso de datos invalidos.
def yj75(YKHO): lYUQ(email='test@francorueta.com', password='test1234') Tejp = {'email': 'test@francorueta.com', 'password': 'test123'} Ylbp = YKHO.client.post(pEkX, Tejp) YKHO.assertNotIn('token', Ylbp.data) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yj75(YKHO):\n lYUQ(**BfDw.USER_PAYLOAD)\n Ylbp = YKHO.client.post(BfDw.TOKEN_URL, BfDw.USER_PAYLOAD_WRONG)\n YKHO.assertNotIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def YGLT(YKHO):\n pB3N = {'email': 'k@gmail.com', 'password': 'pass1232321PASS', ...
[ "0.7512822", "0.744606", "0.7428524", "0.7419123", "0.7403551", "0.7374977", "0.73689026", "0.73570037", "0.73408705", "0.7336276", "0.72890717", "0.72795177", "0.7270972", "0.72507674", "0.72482", "0.72461605", "0.7227806", "0.72244614", "0.7200701", "0.7196843", "0.71943265...
0.7456201
1
Testea que un email y password sean requeridos para crear un token.
def aAJY(YKHO): Ylbp = YKHO.client.post(pEkX, {'email': 'mal', 'password': ''}) YKHO.assertNotIn('token', Ylbp.data) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ss3i(YKHO):\n Tejp = {'email': 'test@francorueta.com', 'password': 'test1234'}\n lYUQ(**Tejp)\n Ylbp = YKHO.client.post(pEkX, Tejp)\n YKHO.assertIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)", "def EbEl(YKHO):\n nPrm = {'name': 'Moha', 'email': 'moha@django.c...
[ "0.7704823", "0.75895035", "0.7560625", "0.7543213", "0.751929", "0.7495627", "0.74764454", "0.7455984", "0.74400634", "0.743085", "0.739848", "0.73932934", "0.7373426", "0.7367601", "0.7363969", "0.7338783", "0.73344535", "0.7318311", "0.73156536", "0.73087716", "0.7298948",...
0.7087432
52
Returns a modified version of the nfa to implement the + operator
def qRT7(aWSQ): for YAq3 in aWSQ.get_accept_states(): YAq3.add_transition(aWSQ.start, None) return hSee(aWSQ.get_start_state())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOdN(YKHO, Elif):\n ntqr = YKHO\n ntqr += Elif\n return ntqr", "def jWLi(YKHO):\n return YKHO.star(True)", "def nugw(YKHO, *qIxc, **B2fa):\n pass", "def nugw(YKHO, *qIxc, **B2fa):\n pass", "def CaoY(YKHO, Elif):\n return YKHO + Elif", "def iAvM():\n\n def WEN3(WKvO):\n ...
[ "0.6709137", "0.6670449", "0.6631538", "0.6631538", "0.6569132", "0.6565403", "0.6558595", "0.65484864", "0.6542592", "0.6533587", "0.65201986", "0.6514126", "0.6511214", "0.6481466", "0.64768296", "0.6472774", "0.64655066", "0.64360166", "0.64292514", "0.6424159", "0.6396668...
0.6800834
0
Run batch normalization in finetuning mode it computes moving averages of mean and variance for evaluation during training, and normalizes the input using statistics
def iM7i(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vWKW(YKHO, input, Tuqy):\n H0zq = YKHO.momentum\n if Tuqy == 'train':\n Nc6L = oyIN.mean(input)\n QrBZ = oyIN.var(input)\n YKHO.running_mean = H0zq * YKHO.running_mean + (1 - H0zq) * Nc6L\n YKHO.running_var = H0zq * YKHO.running_var + (1 - H0zq) * QrBZ\n mbJQ = input - ...
[ "0.79088986", "0.7596061", "0.7318046", "0.73051965", "0.7189217", "0.714916", "0.71480966", "0.7144459", "0.7124108", "0.7124108", "0.7021312", "0.7018159", "0.7013041", "0.69914055", "0.69841546", "0.69811386", "0.6977818", "0.6964398", "0.6963043", "0.69571555", "0.6942776...
0.0
-1
A single Transformer decoder layer made of masked selfattention and feedforward.
def FIMM(YKHO, hfjP, Plq0, YmlD, hr1G): super(g9DD, YKHO).__init__() YKHO.masked_self_attention = Cbj5(hfjP, Plq0, hr1G) YKHO.dropout_1 = U78l.Dropout(hr1G) YKHO.attention_layer_norm = U78l.LayerNorm(hfjP) YKHO.ffn = KU8x(hfjP, YmlD) YKHO.dropout_2 = U78l.Dropout(hr1G) YKHO.ffn_layer_norm = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TxgO(Fu9e, qzxX, gZxq, f_6c, QjBU, wyyA=None, mWFP='decoder', rb1v=True):\n WKvO = Fu9e\n with ZylS.variable_scope(mWFP):\n for gEmA in range(QjBU.num_decoder_layers or QjBU.num_hidden_layers):\n lzjZ = 'layer_%d' % gEmA\n jLf6 = wyyA[lzjZ] if wyyA is not None else None\n ...
[ "0.7257275", "0.72117555", "0.6856575", "0.6800219", "0.6609591", "0.66060436", "0.65473384", "0.65104306", "0.65055597", "0.6376497", "0.63391215", "0.63357276", "0.6297946", "0.62960917", "0.6259462", "0.6222019", "0.6206206", "0.61949724", "0.6183297", "0.61752737", "0.616...
0.63451993
10
Initialize a Transformer decoder with N layers. Decoder selfattention layers are masked so that an attention head cannot attend to future words during training.
def FIMM(YKHO, KeVS, jXxl, hfjP, ZM6q, Plq0, hUTg, YmlD, hr1G): super(Rl4I, YKHO).__init__() YKHO.pad_index = KeVS YKHO.d_model = hfjP YKHO.embedding = U78l.Embedding(jXxl, hfjP) YKHO.pos_enc = qzR_(hfjP, ZM6q, dropout=hr1G) YKHO.layers = U78l.ModuleList([g9DD(hfjP, Plq0, YmlD, hr1G) for bGrB in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, wjbX, nrgn, QJWG, C7KW='relu', Ex_8=0.0, hWkV='dot_product', RPYT=0.0, G8hM=0.0, HuwX=1e-06, GeFH=False, zJ4l=True, mWFP=None):\n super(wOmx, YKHO).__init__(name=mWFP)\n YKHO._hidden_size = wjbX\n YKHO._num_attention_heads = nrgn\n YKHO._filter_size = QJWG\n YKHO._ffn_activation = C7K...
[ "0.71619016", "0.70936555", "0.70183027", "0.70078635", "0.683592", "0.66733205", "0.66328984", "0.6584317", "0.6524799", "0.6441244", "0.643644", "0.6411194", "0.6346401", "0.6294328", "0.62594384", "0.62568027", "0.62267834", "0.6205605", "0.6184104", "0.616663", "0.6166590...
0.67546266
5
DecoderOnly Transformer forward pass.
def KVH6(YKHO, input): hlel = YKHO.embedding(input) * epAf.sqrt(YKHO.d_model) hlel = YKHO.pos_enc(hlel) b7De = YKHO.padding_mask(input, YKHO.pad_index) VUxu = YKHO.subsequent_pos_mask(input).to(device=b7De.device) TaYf = b7De & VUxu for gEmA in YKHO.layers: hlel, v2uf = gEmA(hlel, TaYf) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yHm4(YKHO, nPrm: dict, I1b5: torch.Tensor, wGci: torch.Tensor=None):\n WKvO = YKHO.image_processor.forward(nPrm)\n Ep8u, tsWk = (WKvO.size(0), WKvO.size(1))\n WKvO = WKvO.view(Ep8u, tsWk, -1)\n WKvO = ht2j.nn.functional.elu(YKHO.linear(WKvO))\n gsSo = nPrm['action_index'][0]\n R8cc = YKHO.dec...
[ "0.67037463", "0.6503746", "0.6446606", "0.6444039", "0.6432788", "0.6354134", "0.633035", "0.6289816", "0.6226057", "0.6216075", "0.62126815", "0.6137953", "0.6110741", "0.61088085", "0.60837597", "0.60541594", "0.60204434", "0.59760517", "0.5972021", "0.5962123", "0.5958220...
0.0
-1
Counts number of model parameters.
def VgCS(C3ST): return sum((XP5J.numel() for XP5J in C3ST.parameters() if XP5J.requires_grad))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VgCS(C3ST):\n return sum((XP5J.numel() for XP5J in C3ST.parameters()))", "def eQ5t(C3ST):\n OrNq = oyIN.sum([oyIN.prod(XP5J.size()) for XP5J in C3ST.parameters()])\n return OrNq", "def eQ5t(C3ST):\n OrNq = oyIN.sum([oyIN.prod(XP5J.size()) for XP5J in C3ST.parameters()])\n return OrNq", "de...
[ "0.8774126", "0.868058", "0.868058", "0.8656637", "0.8623836", "0.85340995", "0.8441963", "0.8295195", "0.8143184", "0.81367147", "0.81006885", "0.80427516", "0.79700345", "0.79217774", "0.7885512", "0.7866531", "0.7812232", "0.7761891", "0.7741552", "0.7713009", "0.77112746"...
0.76124793
28
Create a new optimizer instance, given the parameter space, optimizer type, and potential optimizer options.
def eLpg(*, SNS7: ConfigSpace.ConfigurationSpace, ulZ5: OptimizerType=otSE, klzY: Optional[dict]=None, cb1U: SpaceAdapterType=nfWq.IDENTITY, of3h: Optional[dict]=None) -> Emqi: if of3h is None: of3h = {} if klzY is None: klzY = {} LPX9 = g9wn.create(parameter_space=SNS7, space_adapter_type=c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z2AK(YKHO):\n return YKHO.optimizer_class(YKHO)", "def Z2AK(NArs, b0Ix):\n TAnI = sqQC.Adam(learning_rate=b0Ix)\n K0do = TAnI.create(NArs)\n return K0do", "def eLpg(Emd4, K0do, Aak1, b0Ix=0.0007, dN9C=40.0):\n if isinstance(K0do, hCm3):\n Emd4.optimizer = K0do\n elif callable(K0do)...
[ "0.7025157", "0.6955059", "0.67453825", "0.673738", "0.6709575", "0.665156", "0.6635189", "0.66040576", "0.65808165", "0.6571751", "0.6552059", "0.6552059", "0.6515687", "0.6505919", "0.63834524", "0.6303807", "0.63016576", "0.6296857", "0.62689406", "0.62583077", "0.6244993"...
0.77874947
0
calculate term b in equation Cpl = aCpl + bCplT assumes first columns are sio2 al2o3 na2o k2o mgo cao only apply B terms on Al and K
def nfeg(YKHO, WKvO): _2mt = ht2j.exp(YKHO.out_thermo(YKHO.forward(WKvO))[:, 28:30]) yvT9 = _2mt[:, 0] * WKvO[:, 1] + _2mt[:, 1] * WKvO[:, 3] return ht2j.reshape(yvT9, (yvT9.shape[0], 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c9ir(sAQ0, UShr, WTjo):\n if UShr == 1:\n if WTjo == 1:\n if sAQ0 == 1:\n Z9rn = A3Vt.gamma(shape=350, scale=2.3)\n else:\n Z9rn = 805\n else:\n Z9rn = 0\n else:\n Z9rn = 0\n return Z9rn", "def MjDW(YKHO, Fg_i, jzdc)...
[ "0.6101586", "0.60364896", "0.5978405", "0.59771234", "0.5914839", "0.5914176", "0.5891178", "0.58691853", "0.5830062", "0.5743108", "0.57281905", "0.5721692", "0.5694394", "0.5673404", "0.5641529", "0.5621381", "0.56189936", "0.5614422", "0.56075823", "0.55634725", "0.555948...
0.6135708
0
coefficient of thermal expansion
def BX00(YKHO, WKvO): yvT9 = ht2j.exp(YKHO.out_thermo(YKHO.forward(WKvO))[:, 31]) return ht2j.reshape(yvT9, (yvT9.shape[0], 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F_gh(YKHO) -> P6bq.W / (P6bq.K * P6bq.m):\n ...", "def pOmI(VYvU, Cwt5, UqYS, KMvS):\n return 1 / (0.5 * (1 + Cwt5 * (oyIN.tanh((VYvU - UqYS) / KMvS) + 1)))", "def cvVH(Mx95, ovGo):\n p50C = _7uN.query(' param == @material ').query(' max_temp > @temperature >= min_temp ')\n ovGo = ovGo / 1000\n...
[ "0.68436325", "0.6687151", "0.66841406", "0.6579687", "0.65721655", "0.656308", "0.6549856", "0.6409738", "0.6395898", "0.63490015", "0.6317125", "0.62878734", "0.62851095", "0.6278118", "0.6273132", "0.6248117", "0.6248117", "0.6248117", "0.6248117", "0.6248117", "0.62413", ...
0.0
-1
B in free volume (CG) equation
def TyrB(YKHO, WKvO): return 0.5 * (12.0 - YKHO.a_cg(WKvO)) * (YKHO.tg(WKvO) - YKHO.to_cg(WKvO) + ht2j.sqrt((YKHO.tg(WKvO) - YKHO.to_cg(WKvO)) ** 2 + YKHO.c_cg(WKvO) * YKHO.tg(WKvO)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jxh2(qjHC, vC9B, Fg_i, a1PO):\n return qjHC / (vC9B * Fg_i * a1PO)", "def Dnnm(YKHO):\n return YKHO.b_B * YKHO.l + YKHO.c_B * YKHO.k", "def tjUW(YKHO) -> float:\n return YKHO.P + YKHO.G", "def bwfe(YKHO):\n return -YKHO.tau_cov.dot(YKHO.k)", "def sCMo(YKHO):\n return oyIN.linspace(YKHO.b...
[ "0.72728723", "0.69647086", "0.6918483", "0.68306917", "0.6689642", "0.6654962", "0.6632955", "0.6537045", "0.6528689", "0.6491814", "0.647773", "0.6454682", "0.6404726", "0.636302", "0.63395846", "0.6327296", "0.63182384", "0.6309969", "0.63086367", "0.62999386", "0.629883",...
0.67972827
4
B in VFT equation
def ml33(YKHO, WKvO): return (12.0 - YKHO.a_tvf(WKvO)) * (YKHO.tg(WKvO) - YKHO.c_tvf(WKvO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLnp(Ty9i, _RNt=160, UkX0=780, yzQ0=0.9):\n OpKk = PZyS(2 / mM0K) * Ty9i ** 2 * (yzQ0 / _RNt ** 3)\n itg4 = kLQb(-Ty9i ** 2 / (2 * _RNt ** 2))\n s404 = (1 - yzQ0) / UkX0 ** 3 * kLQb(-Ty9i ** 2 / (2 * UkX0 ** 2))\n return OpKk * itg4 + s404", "def okk9(XP5J, eHNT, QcCr, ETK8):\n Rbeh = (eHNT - ...
[ "0.7110304", "0.7104809", "0.7051242", "0.67444396", "0.6619247", "0.64992326", "0.6482906", "0.6448678", "0.64153546", "0.6410323", "0.6410323", "0.6389231", "0.6376407", "0.6357784", "0.6321768", "0.63013375", "0.6292483", "0.6287637", "0.6281307", "0.62771785", "0.6255054"...
0.7973858
0
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.8640854", "0.85093737", "0.785447", "0.7744496", "0.77114135", "0.7696879", "0.76601094", "0.7639409", "0.7623007", "0.7608497", "0.7608497", "0.7608497", "0.76073915", "0.7600974", "0.75863326", "0.75839657", "0.7572215", "0.7569474", "0.75403374", "0.75403374", "0.752854...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Convert string parameters to boolean
def kutS(YKHO): _gam = [('uses_specific_logfile', False)] for xqoZ, BWXx in _gam: if xqoZ in YKHO.cfg_wc: YKHO.cfg_wc[xqoZ] = YKHO.bool_parse(YKHO.cfg_wc[xqoZ]) else: YKHO.cfg_wc[xqoZ] = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def likR(Ty9i):\n return Ty9i.lower() in ('yes', 'y', 'true', 't', '1')", "def likR(Ty9i):\n return Ty9i.lower() in ('yes', 'y', 'true', 't', '1')", "def oOc6(Ty9i):\n if Ty9i.lower() in ('yes', 'true', 't', 'y', '1'):\n return True\n elif Ty9i.lower() in ('no', 'false', 'f', 'n', '0'):\n ...
[ "0.7673685", "0.7673685", "0.7663353", "0.765123", "0.7646897", "0.76372766", "0.76344967", "0.76158655", "0.75923884", "0.7575361", "0.7575361", "0.7575361", "0.7575361", "0.7575083", "0.757349", "0.7560121", "0.75574017", "0.75574017", "0.75574017", "0.75574017", "0.7555076...
0.0
-1
Return a copy of this ``Table`` associated with a different ``MetaData``.
def iGgZ(YKHO, yIVm, uPxI=None): try: if uPxI is None: uPxI = YKHO.schema H5ew = D0yH(YKHO.name, uPxI) return yIVm.tables[H5ew] except KeyError: qIxc = [] for Z9rn in YKHO.columns: qIxc.append(Z9rn.copy()) for Z9rn in YKHO.constraints: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n LHUR = PnAT(YKHO.n_rows, YKHO.n_cols)\n LHUR.transposed = jth9(YKHO.transposed)\n LHUR.progress_tracker = YKHO.progress_tracker.copy()\n return LHUR", "def GheS(v98b: Table, Dokz: str, QCSZ: bool=True) -> TQJD:\n cdLC = v98b.tometadata(v98b.metadata, name=Dokz)\n if QCSZ:\n ...
[ "0.6842984", "0.6401574", "0.6132977", "0.60735404", "0.59547466", "0.59397393", "0.59096354", "0.58476126", "0.5739444", "0.5727574", "0.5727574", "0.56141484", "0.55950415", "0.55918294", "0.55853516", "0.55853516", "0.55853516", "0.55531955", "0.5538053", "0.5514751", "0.5...
0.5389705
31
Create a copy of this ``Column``, unitialized. This is used in ``Table.tometadata``.
def jth9(YKHO): return OciN(YKHO.name, YKHO.type, YKHO.default, *[Z9rn.copy() for Z9rn in YKHO.constraints], key=YKHO.key, primary_key=YKHO.primary_key, nullable=YKHO.nullable, _is_oid=YKHO._is_oid, quote=YKHO.quote, index=YKHO.index)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _9K6(YKHO):\n return pGUH(YKHO._arr, metadata=YKHO.metadata, missing_id=YKHO._missing_id, substitute=False, weights=YKHO._weights)", "def ECBq(YKHO, tTee: bool=False) -> y4Na:\n QTBn = {}\n for G1Hx, Ty9i in YKHO.__dict__.items():\n if G1Hx == '_data' and tTee:\n QTBn[G1Hx] = Ty9i\...
[ "0.7428582", "0.7237542", "0.6981559", "0.6935215", "0.6747672", "0.6734109", "0.6703551", "0.6518912", "0.6420504", "0.64062846", "0.636892", "0.6349962", "0.6313104", "0.6280379", "0.6275733", "0.6178783", "0.61712706", "0.6153057", "0.614817", "0.6123022", "0.6105292", "...
0.7837443
0
Create a proxy for this column. This is a copy of this ``Column`` referenced by a different parent (such as an alias or select statement).
def DUf_(YKHO, t4HI, mWFP=None): VQaI = [w4Cq(eHNT._colspec) for eHNT in YKHO.foreign_keys] Z9rn = OciN(mWFP or YKHO.name, YKHO.type, YKHO.default, *VQaI, key=mWFP or YKHO.key, primary_key=YKHO.primary_key, nullable=YKHO.nullable, _is_oid=YKHO._is_oid, quote=YKHO.quote) Z9rn.table = t4HI Z9rn.proxies = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q70g(Emd4, _AKB, z0q4, lkvj):\n Aofo = Emd4()\n Aofo._parent = _AKB\n Aofo._column_name = z0q4\n Aofo._materializer = lkvj\n return Aofo", "def xHMM(YKHO, _AKB, z0q4):\n if YKHO._is_materialized:\n return CwDs.CategoricalDtype(YKHO.categories, ordered=YKHO._ordered)\n elif _AKB is...
[ "0.7380565", "0.72390646", "0.7101261", "0.5848176", "0.5819063", "0.58054847", "0.56764185", "0.56162566", "0.5602996", "0.55764204", "0.5562117", "0.5526346", "0.55071944", "0.5503833", "0.5429548", "0.5422716", "0.5395718", "0.53925174", "0.53905773", "0.53768367", "0.5372...
0.6952303
3
Construct a new ``ForeignKey`` object. column Can be a ``schema.Column`` object representing the relationship, or just its string name given as ``tablename.columnname``. schema can be specified as ``schema.tablename.columnname``. constraint Is the owning ``ForeignKeyConstraint`` object, if any. if not given, then a ``F...
def FIMM(YKHO, iVRZ, oVM8=None, ndfM=False, mWFP=None, tYcI=None, PneI=None, gJR3=None, ADwp=None): YKHO._colspec = iVRZ YKHO._column = None YKHO.constraint = oVM8 YKHO.use_alter = ndfM YKHO.name = mWFP YKHO.onupdate = tYcI YKHO.ondelete = PneI YKHO.deferrable = gJR3 YKHO.initially =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzNo(YKHO, H5ew, fvDH):\n cCAS = w4Cq(H5ew.get('ref_table') + '.' + H5ew.get('ref_column'), ondelete=H5ew.get('on_delete'), onupdate=H5ew.get('on_update'), name=H5ew.get('name'))\n return OciN(fvDH.get('name'), YKHO.get_type(fvDH.get('type'), fvDH.get('parameters'), unsigned=fvDH.get('unsigned')), cCAS, ...
[ "0.67073333", "0.6428012", "0.6315434", "0.61265844", "0.61129236", "0.6039926", "0.6039926", "0.6038313", "0.59180284", "0.580282", "0.5793912", "0.5788236", "0.5749997", "0.5749997", "0.5742705", "0.57356614", "0.55992275", "0.5513847", "0.5443172", "0.53175753", "0.5270882...
0.56092757
16
Produce a copy of this ForeignKey object.
def jth9(YKHO): return w4Cq(YKHO._get_colspec())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3ak(YKHO):\n jth9 = YKHO.__class__.objects.get(pk=YKHO.pk)\n jth9.id = None\n jth9.salt = qxeD.uuid4()\n jth9.public = False\n jth9.state = 'created'\n jth9.name = 'Copy of ' + jth9.name\n YOO0 = [eHNT.name for eHNT in YKHO._meta.model._meta.get_fields() if isinstance(eHNT, FYrf.ForeignKe...
[ "0.7181259", "0.6755582", "0.6618768", "0.65647316", "0.65641314", "0.6492373", "0.6476648", "0.6476648", "0.6476648", "0.6476648", "0.6476648", "0.6476648", "0.6476648", "0.6476648", "0.6476648", "0.6476648", "0.6476648", "0.6476648", "0.6476648", "0.6476648", "0.6476648", ...
0.8403142
0
Return True if the given table is referenced by this ``ForeignKey``.
def z3LN(YKHO, tyNF): return tyNF.corresponding_column(YKHO.column) is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RPa5(YKHO, tyNF):\n return YKHO._accessor.has_table(tyNF)", "def z3LN(YKHO, iVRZ):\n for VQaI in YKHO.foreign_keys:\n if VQaI.column is iVRZ:\n return True\n else:\n return False", "def RPa5(YKHO, k9X4):\n return k9X4 in YKHO.list_tables()", "def RPa5(YKHO, GTA_):\n ...
[ "0.72601473", "0.72466713", "0.70217884", "0.68537754", "0.6802244", "0.67270344", "0.6703736", "0.66855764", "0.6653899", "0.6573005", "0.64889216", "0.64346695", "0.641437", "0.63908505", "0.63824207", "0.6335667", "0.63352716", "0.62920725", "0.62787676", "0.62574077", "0....
0.7678669
0
An Engine or Connection to which this MetaData is bound. This property may be assigned an ``Engine`` or ``Connection``, or assigned a string or URL to automatically create a basic ``Engine`` for this bind with ``create_engine()``.
def XkiF(YKHO): return YKHO._bind
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ykhp(YKHO, XkiF, **B2fa):\n global URL\n if rOmR is None:\n from sqlalchemy.engine.url import rOmR\n if isinstance(XkiF, (exCv, rOmR)):\n try:\n eHpk = YKHO.__engines[XkiF]\n except KeyError:\n eHpk = i48E.create_engine(XkiF, **B2fa)\n XkiF = eHpk\n ...
[ "0.739494", "0.71490246", "0.7070561", "0.7024476", "0.68801814", "0.67339826", "0.67206", "0.67104673", "0.6689192", "0.6682443", "0.66613376", "0.66463363", "0.66263086", "0.6614612", "0.6606846", "0.6591768", "0.65633756", "0.65409386", "0.6538791", "0.6520068", "0.6519802...
0.0
-1
Bind to an Engine in the caller's thread. Use ``metadata.bind=`` or ``metadata.bind=``. bind A string, ``URL``, ``Engine`` or ``Connection`` instance. If a string or ``URL``, will be passed to ``create_engine()`` along with ``\kwargs`` to produce the engine which to connect to. Otherwise connects directly to the given ...
def Ykhp(YKHO, XkiF, **B2fa): global URL if rOmR is None: from sqlalchemy.engine.url import rOmR if isinstance(XkiF, (exCv, rOmR)): try: eHpk = YKHO.__engines[XkiF] except KeyError: eHpk = i48E.create_engine(XkiF, **B2fa) XkiF = eHpk YKHO._bind_to(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ykhp(YKHO, XkiF, **B2fa):\n global URL\n if rOmR is None:\n from sqlalchemy.engine.url import rOmR\n if isinstance(XkiF, (exCv, rOmR)):\n YKHO._bind = i48E.create_engine(XkiF, **B2fa)\n else:\n YKHO._bind = XkiF", "def EnKt(YKHO, XkiF):\n global URL\n if rOmR is None:\n...
[ "0.7632308", "0.69559705", "0.68762213", "0.6279035", "0.6188846", "0.6159471", "0.559313", "0.5436645", "0.5400899", "0.5399851", "0.5359147", "0.5249217", "0.5244605", "0.521805", "0.5214821", "0.5204131", "0.51676124", "0.51206857", "0.5101504", "0.50494653", "0.49848473",...
0.7910746
0
This function converts an amount of seconds into minutes, hours, etc.
def wjWp(C6wh, dbbf=2): D7KI = (('weeks', 604800), ('days', 86400), ('hours', 3600), ('minutes', 60), ('seconds', 1)) Aofo = [] for mWFP, UHFx in D7KI: BWXx = C6wh // UHFx if BWXx: C6wh -= BWXx * UHFx if BWXx == 1: mWFP = mWFP.rstrip('s') A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uWjq(C6wh):\n MKlR = C6wh // 3600\n r8hN = C6wh // 60 + 1 - MKlR * 60\n return str(MKlR) + 'h ' + str(r8hN) + 'm'", "def Sw_y(WXkz):\n return WXkz / 60.0", "def bG7X(C6wh):\n return C6wh // 60 - rbGV(C6wh) * 60", "def reXX(YKHO, C6wh):\n r8hN, KCHu = divmod(C6wh, 60)\n MKlR, r8hN = d...
[ "0.8067752", "0.780244", "0.7617023", "0.7583291", "0.7557838", "0.75559354", "0.75330055", "0.7529922", "0.75061375", "0.7483356", "0.74740946", "0.74688184", "0.7453256", "0.7452036", "0.74367756", "0.741496", "0.7370135", "0.73645383", "0.7361384", "0.7360739", "0.7356513"...
0.0
-1
Return the number of items in the priority queue.
def len(YKHO): return len(YKHO._data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO) -> int:\n return len(YKHO._priority_queue)", "def yAGA(YKHO) -> int:\n return qe4Y.get(YKHO, 'queue_count')", "def cPAc(YKHO):\n return len(YKHO.queue)", "def qiUe(YKHO):\n return J8uC.SBQueue_GetNumPendingItems(YKHO)", "def jBJp(YKHO) -> int:\n return len(YKHO.__queue)", "d...
[ "0.8038811", "0.75069225", "0.7394091", "0.73748565", "0.7289329", "0.7257381", "0.7211976", "0.7170347", "0.7166441", "0.7161154", "0.7118749", "0.70962137", "0.70950127", "0.7078744", "0.70683295", "0.7050239", "0.70467246", "0.70417297", "0.7037929", "0.70354545", "0.70344...
0.0
-1
Compute the needed redirection based of the objects attribute. Return a tuple (stdout,stderr) that can be used with popen.
def uyzB(YKHO, BcNg, _1qt): hlel = h5ye P1dF = h5ye if int(YKHO.file_redirect_stdout): YKHO.check_path(BcNg) hlel = open(BcNg, 'w') if YKHO.redirect_stderr_to_stdout: P1dF = rNIk elif int(YKHO.file_redirect_stderr): YKHO.check_path(_1qt) P1dF = open(_1qt, 'w')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTY6(C6id: str):\n if C6id == '@STDOUT':\n return HwRy.stdout\n if C6id == '@STDERR':\n return HwRy.stderr\n if C6id == '@NULL':\n return Yn3K.PIPE\n Aofo = open(C6id, 'w+')\n return Aofo", "def cpmj(LpOW):\n if Hy7s.getenv('NO_RUN_OUTPUT') == '1':\n if LpOW:\n ...
[ "0.59283555", "0.5694051", "0.5682454", "0.5612144", "0.5599747", "0.54412216", "0.54339784", "0.54339784", "0.54154974", "0.53591734", "0.53425646", "0.5324267", "0.52864563", "0.52782303", "0.527538", "0.52653265", "0.5264999", "0.5232006", "0.5224089", "0.5210284", "0.5203...
0.70756376
0
A function that check we use a path to file that is valid. We currently check that each directory and the file in the path are not too long.
def H4si(YKHO, XP5J): vC9B = [XP5J] while True: H4yH = Hy7s.path.split(vC9B[0]) if H4yH[0] == '': break if H4yH[1] == '': vC9B[0] = H4yH[0] break vC9B.append(H4yH[1]) vC9B[0] = H4yH[0] for _oWe in vC9B: if len(_oWe) > ZkLO: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H9F3(qaEx):\n rRe8 = None\n if len(qaEx) > 255 and oih4():\n rRe8 = 'File path'\n elif len(Hy7s.path.basename(qaEx)) > 255:\n rRe8 = 'Filename of'\n if rRe8:\n Ol8d = '{} {} is longer than 255 character which might cause an error while saving on disk'.format(rRe8, qaEx)\n ...
[ "0.7448452", "0.7439439", "0.73590577", "0.73400766", "0.730036", "0.720358", "0.7194113", "0.7154203", "0.714686", "0.7131553", "0.71235764", "0.71162105", "0.70487803", "0.70192957", "0.7018338", "0.70028347", "0.69653094", "0.6962157", "0.6962004", "0.6947322", "0.69205636...
0.759448
0
Returns a list of `InputExample`s of the data splits' dialogues.
def iH1v(YKHO, kMA8: str, JIS1: object, U1hP: bool): G9jH.info(f'Creating examples and slot relation list from the dialogues started...') d6Ga = [Hy7s.path.join(YKHO.data_dir, kMA8, 'dialogues_{:03d}.json'.format(YRbF)) for YRbF in YKHO._file_ranges[kMA8]] yaZN = sspT.load_dialogues(d6Ga) _73Q = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QceZ(YKHO, kMA8: str):\n _73Q = []\n Lmq3 = {'train': 'train', 'dev': 'train', 'test': 'test'}\n nfmX = YKHO.open_file('{}.tsv'.format(Lmq3[kMA8]))\n nfmX = nfmX[1:]\n SXrh = YKHO.open_file('{}_slots.tsv'.format(Lmq3[kMA8]))\n if kMA8 in ['train', 'dev']:\n d8cP = []\n HwWj = []...
[ "0.7448265", "0.7203686", "0.71295136", "0.6805284", "0.6805284", "0.659979", "0.64068294", "0.64068294", "0.6157241", "0.6157241", "0.598157", "0.5974214", "0.59460294", "0.5914803", "0.587634", "0.5859808", "0.5859808", "0.58511657", "0.58450145", "0.5832371", "0.5747221", ...
0.6004739
10
Constructor. Expects network number and transaction details, or message bytes.
def FIMM(YKHO, Uv0h: Optional[int]=None, H50M: Optional[TransactionInfo]=None, LaVg: Optional[bytearray]=None): _hvz = YKHO.HEADER_LENGTH + uwaB.NETWORK_NUM_LEN + uwaB.SID_LEN + lEJG.utils.crypto.SHA256_HASH_LEN + uwaB.UL_INT_SIZE_IN_BYTES + uwaB.CONTROL_FLAGS_LEN YKHO._network_num = None YKHO._tx_info = No...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, tO9_='', nqpF='', gQVK=None):\n YKHO.msg = tO9_\n YKHO.miner_address = nqpF\n assert gQVK is None or isinstance(gQVK, list)\n YKHO.transactions = gQVK or []", "def FIMM(YKHO, mGWX: bytes, bEAa: bytes, gQVK: list, OvMA: bytes):\n YKHO['network_identifier'] = OvMA\n YKHO['prev_hash...
[ "0.69292027", "0.6789146", "0.67266965", "0.6447075", "0.6411452", "0.64097244", "0.63811654", "0.6377149", "0.63705516", "0.6320447", "0.63077664", "0.62627375", "0.6218992", "0.6216967", "0.6208328", "0.6187767", "0.6170674", "0.6168498", "0.61658746", "0.6117265", "0.61037...
0.75030655
0
Returns the path of the project repository Uses the global REPOSITORY_NAME constant and searches through parent directories
def tGrp(): XP5J = GkAb(xAKo).absolute().parents for _AKB in XP5J: if _AKB.name == SKhk: return _AKB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n3vd(YKHO) -> str:\n return YKHO.__get_path__('repos')", "def CtHB() -> GkAb:\n return GkAb('.').absolute()", "def cl4h(YKHO, F3jJ):\n return Hy7s.path.join(OSdB, F3jJ.id)", "def PMCG(YKHO):\n jeLr = YKHO.FullName()\n if Hy7s.path.exists(jeLr):\n I7OS = Hy7s.path.dirname(jeLr)\n ...
[ "0.7777531", "0.7589745", "0.75340897", "0.74545556", "0.7317444", "0.72693217", "0.71926975", "0.717136", "0.7152102", "0.7147199", "0.71419096", "0.7124554", "0.7085184", "0.70783323", "0.703734", "0.69493", "0.68873715", "0.6841443", "0.6832867", "0.6820725", "0.6807984", ...
0.84740114
0
Returns a compact representation of all of the tags the task has.
def dJ1p(YKHO, D5gV, NArs={}, **xAU6): pmON = '/tasks/%s/tags' % D5gV return YKHO.client.get_collection(pmON, NArs, **xAU6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fyvx(YKHO, _TKD):\n return YKHO._asana('tasks/%d/tags' % _TKD)", "def dJ1p(YKHO):\n Mkmy = [QMSQ(a1PO) for a1PO in YKHO._tags]\n return Mkmy", "def DArK(YKHO):\n B6u7 = set()\n for kGvP, D5gV in YKHO.store_dict_id.items():\n for TZ9E in D5gV.tags:\n if TZ9E:\n ...
[ "0.73051596", "0.7125051", "0.7077217", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", "0.70710474", ...
0.6898015
36
returns the id of the opponent team to the team specified by team_id
def ctcM(YKHO, b2mu: str) -> str: return YKHO.team_ids[abs(YKHO.team_ids.index(b2mu) - 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b2mu(YKHO):\n return YKHO.c['team'].id", "def atio(Bwa6, LZbL):\n for oyg0 in Bwa6:\n if oyg0['id'] == LZbL:\n return oyg0['team']\n return None", "def iY7u():\n return nub5", "def yniN(YKHO):\n return YKHO.team_id", "def z9BA(YKHO, dZPi):\n YKHO.db_cursor.execute('S...
[ "0.76308966", "0.71961457", "0.71822613", "0.71118045", "0.70966846", "0.7049568", "0.70466185", "0.7021372", "0.6975638", "0.6924745", "0.68872255", "0.68872255", "0.687257", "0.687257", "0.687257", "0.68480223", "0.6803622", "0.66786754", "0.66409844", "0.6623307", "0.65847...
0.8171087
0
Returns the USB device identifier of the module. an integer corresponding to the USB device identifier of the module On failure, throws an exception or returns YModule.PRODUCTID_INVALID.
def yDN6(YKHO): if YKHO._productId == Vgk8.PRODUCTID_INVALID: if NA0M.YISERR(YKHO.load(NA0M.DefaultCacheValidity)): return Vgk8.PRODUCTID_INVALID return YKHO._productId
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x1Ij(YKHO):\n return YKHO.__device_info.product_id", "def h6e6(YKHO):\n return YKHO.wink.manufacturer_device_id()", "def CZNH(YKHO):\n return YKHO.usbVendorId", "def DJw5() -> str:\n pass", "def dRgG(YKHO):\n return YKHO.usbProductId", "def Mc9N(YKHO):\n return YKHO._read_register(h...
[ "0.68728554", "0.6844673", "0.67681503", "0.6697465", "0.6696938", "0.6675398", "0.66359425", "0.66215587", "0.6599008", "0.65707064", "0.6565419", "0.6565419", "0.6485045", "0.64329433", "0.64132094", "0.6411092", "0.63968575", "0.63878757", "0.6374509", "0.63470113", "0.634...
0.5818773
77
Sorts the array by checking the adjacent pairs. Using this algorithm, the elements at the end are sorted first. Loop though the array n times and check if any of the pairs need swapping. If there was no swap, then the array was sorted
def Y3iJ(ezWE): exwG = len(ezWE) HvJa = True while HvJa: HvJa = False for YRbF in range(exwG - 1): if ezWE[YRbF] > ezWE[YRbF + 1]: jM86(ezWE, YRbF, YRbF + 1) HvJa = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def smFW(ezWE: List[Tuple[int, int]]) -> x1iM[AzJI[int, int]]:\n exwG = len(ezWE)\n for dfHy in range(exwG):\n for or8S in range(0, exwG - 1):\n U6D_ = ezWE[or8S]\n NlZ_ = ezWE[or8S + 1]\n if NlZ_[0] < U6D_[0] or (NlZ_[0] == U6D_[0] and NlZ_[1] <= U6D_[1]):\n ...
[ "0.7497566", "0.7379936", "0.732289", "0.7262168", "0.70481664", "0.7028137", "0.6986262", "0.6983407", "0.69679016", "0.68829656", "0.68603355", "0.68544877", "0.6836302", "0.682041", "0.6763012", "0.672502", "0.6709889", "0.6707316", "0.6698269", "0.6697783", "0.66789204", ...
0.71830684
4
Draw the bullet if is on screen
def JmFt(YKHO, lXK9, mjNH): if YKHO.y in range(-200, mjNH): lXK9.blit(YKHO.img, (YKHO.x, YKHO.y))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izLs(YKHO):\n a9eO.draw.rect(YKHO.screen, YKHO.color, YKHO.rect)", "def izLs(YKHO):\n a9eO.draw.rect(YKHO.screen, YKHO.color, YKHO.rect)", "def izLs(YKHO):\n a9eO.draw.rect(YKHO.screen, YKHO.color, YKHO.rect)", "def izLs(YKHO):\n a9eO.draw.rect(YKHO.screen, YKHO.color, YKHO.rect)", "def izL...
[ "0.83667433", "0.83629906", "0.83629906", "0.83629906", "0.82754904", "0.82686967", "0.82686967", "0.82669896", "0.82235664", "0.8221153", "0.8221153", "0.8221153", "0.8221153", "0.8221153", "0.8221153", "0.8221153", "0.8221153", "0.8221153", "0.8221153", "0.8221153", "0.8216...
0.0
-1
Merge the items from ``ns_map`` with this protocol's prefix to namespace mapping.
def IpL0(pdzp): for OuW8, j8eK in pdzp.items(): smxy = YKHO.ns_map.get(OuW8, None) if smxy is None: YKHO.ns_map[OuW8] = j8eK elif smxy != j8eK: raise vt9U('Prefix ' + str(OuW8) + ' is used for multiple URIs.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQhE(YKHO, pdzp: Dict):\n for y0cW, j8eK in pdzp.items():\n YKHO.add(j8eK, y0cW or '')", "def pdzp(YKHO):\n return dict(((WKvO.name, WKvO.prefix) for WKvO in YKHO))", "def pdzp(YKHO) -> cuzp:\n if YKHO._ns_map is None:\n YKHO._ns_map = {y0cW or None: j8eK for j8eK, tX49 in sorted(YKH...
[ "0.7210451", "0.7015671", "0.68297744", "0.6622624", "0.6621719", "0.6478526", "0.6388099", "0.63415164", "0.6340409", "0.6127653", "0.60749376", "0.5950175", "0.59151256", "0.58558327", "0.571812", "0.5706489", "0.5675473", "0.5675331", "0.56213206", "0.5582106", "0.5573314"...
0.7161117
1
Determine the full path of an imported protocol file. Relative paths are resolved relative to base_path (the path to this protocol) by default. If this does not yield an existing file, they are resolved relative to the builtin library folder instead.
def OyQC(YKHO, XSj5, pmON): ddn9 = Hy7s.path.join(Hy7s.path.dirname(XSj5), pmON) if not Hy7s.path.isabs(pmON) and (not Hy7s.path.exists(ddn9)): xuBC = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), 'library') ddn9 = Hy7s.path.join(xuBC, pmON) return ddn9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rHmM(YKHO, uUa5: str) -> str:\n if Hy7s.path.isabs(uUa5):\n return uUa5\n pA9P = YKHO.current_filepath()\n if pA9P:\n BdWa = Hy7s.path.dirname(pA9P)\n else:\n BdWa = Hy7s.getcwd()\n return Hy7s.path.join(BdWa, uUa5)", "def NjQx(mWFP):\n return Hy7s.path.dirname(Hy7s.pat...
[ "0.6753838", "0.64450365", "0.60859734", "0.6081074", "0.6075465", "0.60531485", "0.60365874", "0.60127443", "0.5908558", "0.5897388", "0.58680946", "0.584686", "0.584686", "0.5840212", "0.5829122", "0.58163834", "0.5811891", "0.579727", "0.57937247", "0.5787277", "0.57041925...
0.60860294
2
Data normalization to (0,1).
def OEry(S9_d): nGz5 = sum(S9_d) return [_pUq / nGz5 for _pUq in S9_d]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnV4(YKHO, nPrm):\n if YKHO.clip:\n return nPrm.clip(0, 1)\n return oyIN.mod(nPrm, 1)", "def NkkI(nPrm):\n nPrm, mhts = nPrm\n nPrm = nPrm.astype(oyIN.float32)\n nPrm -= mhts[0]\n nPrm /= mhts[1]\n return nPrm", "def NkkI(nPrm):\n nPrm = nPrm / oyIN.max(nPrm)\n return nPrm...
[ "0.7975594", "0.7775581", "0.7674601", "0.7541126", "0.7530528", "0.75032365", "0.7471906", "0.74556434", "0.74355084", "0.7427569", "0.73989505", "0.7396168", "0.73592263", "0.734311", "0.7322618", "0.73058367", "0.72805715", "0.72781414", "0.7277799", "0.7276175", "0.725414...
0.0
-1
Some intelligence around how to grab from an xpath.
def B3oT(YKHO, MVlT, aPTa=False, Ko6S=False, OuqX=False): ZfUD = YKHO.response.xpath(MVlT).extract() if isinstance(ZfUD, list): ZfUD = [YKHO.remove_returns(YRbF) for YRbF in ZfUD if YKHO.remove_returns(YRbF)] if len(ZfUD) == 1 or aPTa: ZfUD = ZfUD[0] if isinstance(ZfUD, str): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xLY5(YKHO, laNn):\n if isinstance(laNn, QGpr.XPath):\n Aofo = laNn(YKHO._dataObject)\n else:\n Aofo = YKHO._dataObject.xpath(laNn, namespaces=YKHO._namespaces)\n return Aofo", "def cc_M(rjLE, laNn=''):\n Aofo = rjLE.xpath(laNn)\n return Aofo", "def neBz(YKHO, laNn):\n return...
[ "0.72016025", "0.6930151", "0.68636024", "0.67879736", "0.66980195", "0.6695254", "0.66230625", "0.6612198", "0.65858537", "0.6583561", "0.6572978", "0.6502347", "0.649878", "0.64925057", "0.64925057", "0.6443824", "0.6433991", "0.63450277", "0.6333343", "0.63220906", "0.6297...
0.68011767
3
Close the application after tests
def tBIc(YKHO): YKHO.app.kill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.app.kill()", "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)"...
[ "0.8269683", "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.7773383", "0.77526426", "0.7670811", "0.7670811", "0.7670811", "0.7580393", "0.75581354", "0.75570065", "0.7511754", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.73916316", "0.7389789"...
0.6784105
97
Close the application after tests
def tBIc(YKHO): YKHO.app.kill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.app.kill()", "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)"...
[ "0.8269683", "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.7773383", "0.77526426", "0.7670811", "0.7670811", "0.7670811", "0.7580393", "0.75581354", "0.75570065", "0.7511754", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.73916316", "0.7389789"...
0.6784105
98
Close the application after tests
def tBIc(YKHO): YKHO.dlg.send_message(hLGs.WM_CLOSE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.app.kill()", "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)"...
[ "0.8269683", "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.7773383", "0.77526426", "0.7670811", "0.7670811", "0.7670811", "0.7580393", "0.75581354", "0.75570065", "0.7511754", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.73916316", "0.7389789"...
0.6838627
80
Close the application after tests
def tBIc(YKHO): try: YKHO.dlg.close(0.5) except Exception: pass finally: YKHO.app.kill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.app.kill()", "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)"...
[ "0.8269683", "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.7773383", "0.77526426", "0.7670811", "0.7670811", "0.7670811", "0.7580393", "0.75581354", "0.75570065", "0.7511754", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.7389789", "0.7370458",...
0.73916316
19
Close the application after tests
def tBIc(YKHO): YKHO.app.kill() YKHO.app2.kill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.app.kill()", "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)"...
[ "0.8269683", "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.7773383", "0.77526426", "0.7670811", "0.7670811", "0.7670811", "0.7580393", "0.75581354", "0.75570065", "0.7511754", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.73916316", "0.7389789"...
0.7280495
25
Close the application after tests
def tBIc(YKHO): YKHO.app1.kill() YKHO.app2.kill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.app.kill()", "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)"...
[ "0.8269683", "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.7773383", "0.77526426", "0.7670811", "0.7670811", "0.7670811", "0.7580393", "0.75581354", "0.75570065", "0.7511754", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.73916316", "0.7389789"...
0.6827504
81
Close the application after tests
def tBIc(YKHO): try: YKHO.app.UntitledNotepad.menu_select('File->Exit') YKHO.app.Notepad["Do&n't Save"].click() YKHO.app.Notepad["Do&n't Save"].wait_not('visible') except Exception: pass finally: YKHO.app.kill() YKHO.app2.kill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.app.kill()", "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)"...
[ "0.8269683", "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.7773383", "0.77526426", "0.7670811", "0.7670811", "0.7670811", "0.7580393", "0.75581354", "0.75570065", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.73916316", "0.7389789", "0.7370458"...
0.7511754
14
Close the application after tests
def tBIc(YKHO): YKHO.app.kill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.app.kill()", "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)"...
[ "0.8269683", "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.7773383", "0.77526426", "0.7580393", "0.75581354", "0.75570065", "0.7511754", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.73916316", "0.7389789", "0.7370458", "0.7366069", "0.73377705...
0.7670811
10
Close the application after tests
def tBIc(YKHO): YKHO.app.kill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.app.kill()", "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)"...
[ "0.8269683", "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.7773383", "0.77526426", "0.7580393", "0.75581354", "0.75570065", "0.7511754", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.73916316", "0.7389789", "0.7370458", "0.7366069", "0.73377705...
0.7670811
8
Close the application after tests
def tBIc(YKHO): YKHO.dlg.close(0.5) YKHO.app.kill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.app.kill()", "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)"...
[ "0.8269683", "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.77526426", "0.7670811", "0.7670811", "0.7670811", "0.7580393", "0.75581354", "0.75570065", "0.7511754", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.73916316", "0.7389789", "0.7370458"...
0.7773383
6
Close the application after tests
def tBIc(YKHO): YKHO.app.kill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.app.kill()", "def vQKA(YKHO, P4t4):\n P4t4.init()\n Aofo = P4t4.close()\n assert Aofo is True", "def UiBq(YKHO):\n HwRy.exit()", "def KwsP(YKHO):\n HwRy.exit(0)", "def HYrH(YKHO):\n YKHO.driver.close_app()", "def HYrH():\n q22J(HwRy.argv).instance().exit(1)"...
[ "0.8269683", "0.826414", "0.8188644", "0.8162802", "0.80377954", "0.7831143", "0.7773383", "0.77526426", "0.7580393", "0.75581354", "0.75570065", "0.7511754", "0.7499259", "0.74791175", "0.7439725", "0.7411035", "0.73916316", "0.7389789", "0.7370458", "0.7366069", "0.73377705...
0.7670811
9
Return a titlecased version of the string, where words start with an uppercase character and the remaining characters are lowercase. Unlike `str.title()`, this function correctly handles apostrophes. >>> title_case("tHeY'rE bILl's frienDs.") "They're Bill's Friends."
def WSEy(KCHu, VZ3o=True): QzZI = w6G3 if VZ3o else ljox return qdX_.subn(QzZI, KCHu)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLSf(str):\n return OnYg(str, '_').replace('_', '')", "def hLSf(KCHu):\n return ' '.join((GIN8 if GIN8.isupper() or GIN8 in {'a', 'an', 'and', 'as', 'at', 'but', 'by', 'en', 'for', 'if', 'in', 'of', 'on', 'or', 'the', 'to', 'via', 'vs'} else GIN8.capitalize() for GIN8 in KCHu.split(' ')))", "def YUlO...
[ "0.8045953", "0.79445195", "0.7715511", "0.7706248", "0.76839733", "0.7657518", "0.76299673", "0.761062", "0.76034844", "0.75127876", "0.7452486", "0.744295", "0.74321616", "0.742821", "0.7418042", "0.73535883", "0.73216814", "0.7301759", "0.7301485", "0.7293753", "0.7278367"...
0.7733051
2
Splits the string at the camelcase boundaries, returning a list of its parts. >>> split_camel("splitCamelCaseString") ['split', 'camel', 'case', 'string'] >>> split_camel("InscrutableGenericsRelatedTypeError") ['inscrutable', 'generics', 'related', 'type', 'error'] >>> split_camel("EncodeURLComponent") ['encode', 'url'...
def bsDv(KCHu): yvT9 = [] w2fL = KCHu[0].lower() Jb5y = False for Z9rn in KCHu[1:]: gON0 = Z9rn.isupper() if Jb5y and (not gON0): yvT9.append(w2fL[:-1]) w2fL = w2fL[-1] + Z9rn.lower() elif gON0 and (not G2MX): yvT9.append(w2fL) w2fL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bsDv(KCHu: str) -> x1iM[str]:\n njyT = ZbWC.compile('[A-Z][^A-Z]*')\n return njyT.findall(KCHu)", "def Ljh_(s_ww):\n hHld = ZbWC.finditer('.+?(?:(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|$)', s_ww)\n return [r8hN.group(0) for r8hN in hHld]", "def bsDv(l5Ny):\n j93S = ZbWC.sub('(.)([A-Z][a...
[ "0.7759763", "0.7598659", "0.7260315", "0.72421175", "0.69921845", "0.6919055", "0.6881424", "0.64678115", "0.6434454", "0.64019763", "0.6214949", "0.6121679", "0.60770327", "0.5780204", "0.5737765", "0.5684472", "0.56790954", "0.56774807", "0.56470835", "0.563908", "0.562971...
0.7604375
1
REST API endpoint for any 404 page
def m7kB(tTpl): return (TvZl('404.html'), 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7kB(AJ5d=None):\n return (pz3A({'error': 'Not found'}), 404)", "def RQdI(QePW, *qIxc, **B2fa):\n nPrm = {'error': 'Page Not Found (404)'}\n return jnRN(eqVi(data=nPrm), status=jGRS.HTTP_404_NOT_FOUND)", "def m7kB(tTpl):\n return (pz3A(error=404, message='endpoint-does-not-exist'), 404)", "de...
[ "0.8043644", "0.80219793", "0.8020723", "0.80045307", "0.79407597", "0.79406554", "0.79313695", "0.79106724", "0.7816489", "0.7808355", "0.7807157", "0.7788302", "0.77696425", "0.77660966", "0.7758577", "0.77555496", "0.77348", "0.7706274", "0.7696975", "0.7664589", "0.766194...
0.7307349
56
Initialise the settings object, loading settings from the file at 'path'.
def FIMM(YKHO, pmON): YKHO._config = kwpV() YKHO._config.read(pmON) if not YKHO._config.has_section('server'): raise Zh6V('No server options set!') YKHO.servname = YKHO._config['server'].get('servname', GGmw.getfqdn()) D8Ke = YKHO._config['server'].get('listen_ip', '0.0.0.0') bIwZ = int(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, kf3C):\n YKHO.settings = XR0i(kf3C)", "def tyeH(Emd4, pmON) -> 'Settings':\n with pmON.open('rb') as nUeQ:\n return Emd4(bero.load(nUeQ))", "def DbxN(YKHO, pmON: str) -> l1oh:\n YKHO.config: cuzp[str, ImMB] = {}\n YKHO.config.update(YKHO._read_config(pmON))\n YKHO._trigger_...
[ "0.7564587", "0.7314327", "0.687939", "0.6879297", "0.68589383", "0.6848556", "0.68222415", "0.669805", "0.66918766", "0.663142", "0.66312796", "0.66182166", "0.6569118", "0.6525304", "0.6475241", "0.638201", "0.63610995", "0.6315773", "0.630979", "0.63051003", "0.6248242", ...
0.0
-1
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
def g4Yp(SRYB): with ZylS.name_scope('summaries'): JBMS = ZylS.reduce_mean(SRYB) ZylS.summary.scalar('mean', JBMS) with ZylS.name_scope('stddev'): z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS))) ZylS.summary.scalar('stddev', z2bo) ZylS.summary.scalar(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()", "def oxpy(YK...
[ "0.77372825", "0.76371294", "0.71553725", "0.70677304", "0.7010343", "0.70051324", "0.686583", "0.6790819", "0.6712101", "0.67020524", "0.6698547", "0.6653406", "0.6651963", "0.6647064", "0.66240656", "0.6604837", "0.6597623", "0.6582092", "0.6571837", "0.6538044", "0.6537941...
0.0
-1
Creates a new logger instance with given name if it does not exists, else retrives existing logger. Then it configures logging.Logger instance received with given level and handler.
def JWaN(mWFP=__name__, ABDL=None, DCgT=G9jH.StreamHandler()): try: DCgT.setFormatter(G9jH.Formatter(POtx)) except Exception: pass bo34 = G9jH.getLogger(mWFP) if not oeox.is_valid_log_level(ABDL): ABDL = w3nW aQ22(bo34, ABDL) dXGc(bo34, DCgT) bo34.log(Ke5A, LnQo.DEBUG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W1NK(YKHO, mWFP, ABDL, DXTu, T37t):\n if mWFP is None:\n mWFP = 'root' + str(len(YKHO.loggers))\n DXTu.setLevel(ABDL if ABDL is not None else YKHO.default_log_level)\n DXTu.setFormatter(YKHO.get_format(T37t))\n if mWFP in YKHO.loggers:\n ISDN = YKHO.get_logger(mWFP)\n ISDN.setL...
[ "0.76857376", "0.75949615", "0.759091", "0.75498056", "0.7447078", "0.74430925", "0.74298126", "0.74197555", "0.73259455", "0.72903174", "0.7289635", "0.72736776", "0.7229836", "0.7228604", "0.72250503", "0.72250503", "0.72250503", "0.72250503", "0.7224171", "0.72167957", "0....
0.7415246
8
Normalize vector to sum up to 1.
def IB7M(WKvO): qjcP = WKvO.sum() if qjcP == 0: raise ValueError('The sum of the array elements must not be zero.') else: return WKvO / qjcP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnV4(YKHO, he6J):\n Aofo = CkYf(he6J, 1)\n if Aofo == 0.0:\n return he6J\n return he6J / Aofo", "def NkkI(iArr):\n CkYf = oyIN.linalg.norm(iArr)\n if CkYf == 0:\n return iArr\n return iArr / CkYf", "def VDTB(Ty9i):\n return Ty9i / i1gc(Ty9i)", "def NkkI(iArr):\n retu...
[ "0.801736", "0.7965456", "0.7938462", "0.79256", "0.78548205", "0.7845317", "0.78223413", "0.78193897", "0.7815626", "0.77950525", "0.7790414", "0.77010196", "0.7679585", "0.7668997", "0.7657399", "0.7655996", "0.7654644", "0.7627185", "0.7623981", "0.76235175", "0.76139945",...
0.71648806
49
Gives the cartesian product of the passed `iterable`
def KPxj(OxJJ): return [OtsH(WKvO) for WKvO in WhY1.product(*OxJJ)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TJ3V(OxJJ):\n return [OtsH(WJzW(WKvO)) for WKvO in KPxj(OxJJ)]", "def tjFQ(*Sk_F):\n l3Te = [len(YRbF) for YRbF in Sk_F]\n vC9B = Lx3t(*l3Te)\n XP5J = Lx3t(*Sk_F)\n for YRbF, r845 in zip(vC9B, XP5J):\n yield (YRbF, r845)", "def E6VQ(OxJJ):\n jJNV = []\n for YRbF in range(1, len(...
[ "0.7718683", "0.7025764", "0.6933852", "0.6898461", "0.6858502", "0.684194", "0.67985606", "0.67361367", "0.6731417", "0.6685014", "0.6684388", "0.6677194", "0.6651833", "0.6649077", "0.6636564", "0.66300017", "0.66300017", "0.6619264", "0.657931", "0.6568112", "0.65255785", ...
0.83801836
0
Returns the resting state associated with this complex, if one exists.
def wNff(complex): cMkz = btzh[complex] i6mg = frozenset(cMkz) if i6mg not in bgpT: zkFN(cMkz) return bgpT[i6mg]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n if YKHO._state is not None:\n return YKHO._state\n return None", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO...
[ "0.60735995", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415", "0.60633415"...
0.76254576
0
Delete an order on flask server. Return 201 if success, 404 if failure.
def e3yu(YKHO, v7Vb): Ylbp = YKHO._r.delete(YKHO._URL, json=str(v7Vb)) if Ylbp.status_code == 404: return 404 else: return 201
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hh2n(YKHO):\n T4Wy = V2iS()\n pB3N = {'id': T4Wy.id}\n geh0 = YKHO.client.delete(RA4y, pB3N)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_204_NO_CONTENT)", "def Hh2n(YKHO):\n bD7m = gxEw('order-detail', kwargs={'pk': YKHO.order.id})\n geh0 = x0hE.delete(bD7m)", "def xSHO(YKHO, QePW, _se...
[ "0.7748925", "0.75540876", "0.75082695", "0.7494682", "0.7288984", "0.7224557", "0.7155085", "0.7109702", "0.7062728", "0.70149654", "0.6997305", "0.69597006", "0.6935586", "0.69023377", "0.6859669", "0.6810098", "0.6805702", "0.6801383", "0.67956245", "0.6788247", "0.6779554...
0.7302173
4
Returns web driver instance.
def aDzh(YKHO) -> cSpz: return YKHO._driver
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YqyH(Emd4):\n if Emd4.__web_driver is None:\n Mr0z.__read_parameters()\n return Emd4.__web_driver", "def aDzh(YKHO):\n if hasattr(gCuF, 'CRAWLABLE_PHANTOMJS_DEDICATED_MODE') and gCuF.CRAWLABLE_PHANTOMJS_DEDICATED_MODE:\n if not YKHO._web_driver:\n YKHO._web_driver = cdxT(por...
[ "0.79587823", "0.795059", "0.7945262", "0.7874136", "0.77540624", "0.7457858", "0.74519944", "0.74207926", "0.73755884", "0.73704636", "0.7278239", "0.71857923", "0.7176024", "0.7168988", "0.7135242", "0.712603", "0.7081718", "0.70693314", "0.7057078", "0.7057078", "0.7034719...
0.8281655
0
Test a native VxLAN network profile creation with invalid multicast address.
def OgLo(YKHO): nPrm = YKHO.get_test_network_profile_dict(segment_type='vxlan', multicast_ip_range='3.1.1.1-2.1.1.10', sub_type='native') RiVk = YKHO.new_create_request('network_profiles', nPrm) Ylbp = RiVk.get_response(YKHO.ext_api) YKHO.assertEqual(ZrWc.exc.HTTPBadRequest.code, Ylbp.status_int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ugkb(YKHO):\n nPrm = YKHO.get_test_network_profile_dict(segment_type='vxlan', multicast_ip_range='224.0.0.100-224.0.1.100', sub_type='native')\n RiVk = YKHO.new_create_request('network_profiles', nPrm)\n Ylbp = RiVk.get_response(YKHO.ext_api)\n YKHO.assertEqual(ZrWc.exc.HTTPBadRequest.code, Ylbp.st...
[ "0.8138404", "0.740535", "0.7032587", "0.69217783", "0.6843124", "0.6758033", "0.6754643", "0.6191464", "0.6186655", "0.607511", "0.6012117", "0.6008466", "0.59131104", "0.5826975", "0.5823312", "0.58126754", "0.58110523", "0.56985337", "0.5566596", "0.5522631", "0.5480712", ...
0.8290535
0
Test a shared native VxLAN network profile creation with no multicast address.
def eMVz(YKHO): nPrm = YKHO.get_test_network_profile_dict(segment_type='vxlan', sub_type='native') RiVk = YKHO.new_create_request('network_profiles', nPrm) Ylbp = RiVk.get_response(YKHO.ext_api) YKHO.assertEqual(ZrWc.exc.HTTPBadRequest.code, Ylbp.status_int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ugkb(YKHO):\n nPrm = YKHO.get_test_network_profile_dict(segment_type='vxlan', multicast_ip_range='224.0.0.100-224.0.1.100', sub_type='native')\n RiVk = YKHO.new_create_request('network_profiles', nPrm)\n Ylbp = RiVk.get_response(YKHO.ext_api)\n YKHO.assertEqual(ZrWc.exc.HTTPBadRequest.code, Ylbp.st...
[ "0.7848734", "0.76431483", "0.75379205", "0.7122305", "0.6963325", "0.6827757", "0.6772826", "0.67340577", "0.6569153", "0.65330875", "0.649115", "0.63540184", "0.6313126", "0.6251649", "0.5812004", "0.5776275", "0.5764884", "0.5746938", "0.5723795", "0.5713185", "0.5676958",...
0.78097093
1
Test a network profile create with invalid segment type.
def Jpeh(YKHO): nPrm = YKHO.get_test_network_profile_dict(segment_type='unknown_segment_type') RiVk = YKHO.new_create_request('network_profiles', nPrm) Ylbp = RiVk.get_response(YKHO.ext_api) YKHO.assertEqual(ZrWc.exc.HTTPBadRequest.code, Ylbp.status_int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XD_7(YKHO):\n nPrm = YKHO.get_test_network_profile_dict(segment_type='vxlan', multicast_ip_range='224.1.1.1-224.1.1.10', sub_type='native')\n nPrm['network_profile']['sub_type'] = 'unknown-sub-type'\n RiVk = YKHO.new_create_request('network_profiles', nPrm)\n Ylbp = RiVk.get_response(YKHO.ext_api)\...
[ "0.7604289", "0.75895244", "0.72359264", "0.70232046", "0.70210105", "0.6936594", "0.6842181", "0.68064", "0.6471252", "0.62811387", "0.6263695", "0.6241188", "0.60994667", "0.6065094", "0.6035281", "0.5980555", "0.597937", "0.5895563", "0.5877379", "0.57988787", "0.57870066"...
0.88116807
0
Test a network profile creation when the operation fails on VSM.
def h_sG(YKHO): nPrm = YKHO.get_test_network_profile_dict(segment_type='vxlan', sub_type='enhanced') cGPM = nPrm['network_profile']['name'] iC8j = TMAJ.MagicMock(side_effect=ixyj.VSMError(reason='Internal VSM error')) with TMAJ.patch(zI7c.__name__ + '.Client.create_network_segment_pool', iC8j): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jVcB(YKHO):\n nPrm = YKHO.get_test_network_profile_dict(segment_type='vxlan', sub_type='enhanced')\n cGPM = nPrm['network_profile']['name']\n iC8j = TMAJ.MagicMock(side_effect=ixyj.VSMConnectionFailed(reason='Connection to VSM lost'))\n with TMAJ.patch(zI7c.__name__ + '.Client.create_network_segmen...
[ "0.8715765", "0.6971208", "0.6919392", "0.6902055", "0.68677396", "0.68674767", "0.67067957", "0.66472113", "0.6608386", "0.64492947", "0.6413402", "0.63644224", "0.6357894", "0.6299211", "0.627976", "0.6255162", "0.6201909", "0.61664546", "0.6085077", "0.6044347", "0.5934070...
0.8793447
0
Test a network profile creation when the operation fails on VSM.
def jVcB(YKHO): nPrm = YKHO.get_test_network_profile_dict(segment_type='vxlan', sub_type='enhanced') cGPM = nPrm['network_profile']['name'] iC8j = TMAJ.MagicMock(side_effect=ixyj.VSMConnectionFailed(reason='Connection to VSM lost')) with TMAJ.patch(zI7c.__name__ + '.Client.create_network_segment_pool', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h_sG(YKHO):\n nPrm = YKHO.get_test_network_profile_dict(segment_type='vxlan', sub_type='enhanced')\n cGPM = nPrm['network_profile']['name']\n iC8j = TMAJ.MagicMock(side_effect=ixyj.VSMError(reason='Internal VSM error'))\n with TMAJ.patch(zI7c.__name__ + '.Client.create_network_segment_pool', iC8j):...
[ "0.8793447", "0.6971208", "0.6919392", "0.6902055", "0.68677396", "0.68674767", "0.67067957", "0.66472113", "0.6608386", "0.64492947", "0.6413402", "0.63644224", "0.6357894", "0.6299211", "0.627976", "0.6255162", "0.6201909", "0.61664546", "0.6085077", "0.6044347", "0.5934070...
0.8715765
1
Perform forward propagation of the head, then calculate loss and predictions from the features and data samples.
def eJ4m(YKHO, WKvO: Tuple[Tensor], ltiS: SampleList, rbMP: Optional[ConfigDict]=None) -> AzJI[dict, cZBH]: o4Jx = fHxK(ltiS) o3ef, bGrB, Bfa3 = o4Jx Wr8h = [gfbt.size()[-2:] for gfbt in WKvO] begE = WKvO[0].device Actr, I_D7 = YKHO.get_anchors(Wr8h, Bfa3, device=begE) if YKHO.adapt_cfg['type'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO):\n YKHO.fake, YKHO.latent_i, YKHO.latent_o = YKHO.netg(YKHO.input)\n YKHO.pred_real, YKHO.feat_real = YKHO.netd(YKHO.input)\n YKHO.pred_fake, YKHO.feat_fake = YKHO.netd(YKHO.fake.detach())", "def uLkJ(YKHO, input):\n YKHO.predict(input)", "def KVH6(YKHO):\n FRUf, YKHO.label_tensor...
[ "0.7178545", "0.7007066", "0.68838173", "0.68652034", "0.68513393", "0.68112", "0.6737381", "0.6732271", "0.66889966", "0.6661151", "0.6646681", "0.66418594", "0.66223454", "0.6593394", "0.6574813", "0.65708613", "0.65428567", "0.6532415", "0.65150994", "0.65076107", "0.65038...
0.0
-1
Perform forward propagation of the head, then calculate loss and predictions from the features and data samples.
def eJ4m(YKHO, WKvO: Tuple[Tensor], ltiS: SampleList, rbMP: Optional[ConfigDict]=None) -> AzJI[dict, cZBH]: o4Jx = fHxK(ltiS) o3ef, bGrB, Bfa3 = o4Jx Wr8h = [gfbt.size()[-2:] for gfbt in WKvO] begE = WKvO[0].device Actr, I_D7 = YKHO.stages[0].get_anchors(Wr8h, Bfa3, device=begE) N8L0 = dict() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO):\n YKHO.fake, YKHO.latent_i, YKHO.latent_o = YKHO.netg(YKHO.input)\n YKHO.pred_real, YKHO.feat_real = YKHO.netd(YKHO.input)\n YKHO.pred_fake, YKHO.feat_fake = YKHO.netd(YKHO.fake.detach())", "def uLkJ(YKHO, input):\n YKHO.predict(input)", "def KVH6(YKHO):\n FRUf, YKHO.label_tensor...
[ "0.7178545", "0.7007066", "0.68838173", "0.68652034", "0.68513393", "0.68112", "0.6737381", "0.6732271", "0.66889966", "0.6661151", "0.6646681", "0.66418594", "0.66223454", "0.6593394", "0.6574813", "0.65708613", "0.65428567", "0.6532415", "0.65150994", "0.65076107", "0.65038...
0.0
-1
Gets discriminator gradient penalty loss.
def NJmZ(YKHO, OIV_, WRZd, Nlnx, NArs): with ZylS.name_scope(name='{}/gradient_penalty'.format(YKHO.name)): _UPV = ZylS.random.uniform(shape=[OIV_.shape[0], 1, 1, 1], minval=0.0, maxval=1.0, dtype=ZylS.float32, name='random_uniform_num') b_MP('\nget_gradient_penalty_loss', 'random_uniform_num', _UPV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EOv5(nfgB, g4y1, **B2fa):\n with ZylS.GradientTape() as J4QZ:\n J4QZ.watch(g4y1)\n o4Jx = nfgB(g4y1, **B2fa)\n Ro40 = J4QZ.gradient(o4Jx, g4y1)\n Ro40 = ZylS.reshape(Ro40, [ZylS.shape(g4y1)[0], -1])\n return (ZylS.linalg.norm(Ro40, axis=1, ord=2) - 1.0) ** 2", "def AOC4(YKHO):\n ...
[ "0.72023046", "0.7112642", "0.69796866", "0.6828149", "0.6719463", "0.6706948", "0.66623354", "0.66034716", "0.6592146", "0.6583391", "0.6567774", "0.65655345", "0.65278566", "0.6510727", "0.6510727", "0.6509818", "0.64873916", "0.6430742", "0.64289117", "0.64273804", "0.6425...
0.649225
16
Linter gets correct paths on command line and outputs just changed lines We use ``echo`` as our "linter". It just adds the paths of each file to lint as an
def HOYO(FCN7, Ehsq, pVAQ, aTg6, ckRy, Rci7, Zqvr): InpQ = FCN7.add({'test.py': '1\n2\n'}, commit='Initial commit') InpQ['test.py'].write_bytes(b'one\n2\n') Ehsq.chdir(FCN7.root) twdW = f'echo {Rci7}' Eygp.run_linter(twdW, GkAb(FCN7.root), {GkAb(XP5J) for XP5J in ckRy}, xkNw('HEAD')) Aofo = pVAQ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l_yY():\n rtRw = Yn3K.check_output('git ls-files')\n if Lpna:\n rtRw = rtRw.decode()\n rtRw = [WKvO for WKvO in rtRw.split() if WKvO.endswith('.py')]\n rtRw = ' '.join(rtRw)\n lWrn('%s -m flake8 %s' % (a9Uf, rtRw), nolog=True)", "def Ais8(MVVZ):\n for qaEx in MVVZ:\n HCmI = 'p...
[ "0.6406525", "0.62964547", "0.6286156", "0.6240403", "0.6191055", "0.61868334", "0.6181396", "0.61644036", "0.6040419", "0.5994622", "0.59922016", "0.5931491", "0.5895522", "0.58840746", "0.5882439", "0.58721274", "0.5859126", "0.58304906", "0.58147657", "0.57813764", "0.5780...
0.6062404
8
List all APIs of an API Management instance.
def BMyy(x0hE, TRLE, bSEa, gB_9=None, tlxW=None, EdbX=None): if gB_9 is not None: gB_9 = "properties/displayName eq '%s'" % gB_9 return x0hE.api.list_by_service(TRLE, bSEa, filter=gB_9, skip=EdbX, top=tlxW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AnKi():\n dp9S = jpk3()\n return dp9S.list_apis()", "def naSK(x0hE, TRLE=None):\n if TRLE:\n return x0hE.api_management_service.list_by_resource_group(TRLE)\n return x0hE.api_management_service.list()", "def UZZP(x0hE, TRLE=None):\n if TRLE:\n return x0hE.api_management_service...
[ "0.8204319", "0.7366231", "0.7255472", "0.69239324", "0.6845375", "0.65903753", "0.6522693", "0.65171385", "0.6514699", "0.64982575", "0.6418539", "0.64058685", "0.63616294", "0.6339843", "0.629491", "0.6269088", "0.625688", "0.6184616", "0.61787695", "0.61787695", "0.6174850...
0.63921154
12
ChargingInformation a model defined in Swagger
def FIMM(YKHO, yv4B=None, kmYq=None): YKHO.swagger_types = {'primary_chf_address': _sz5, 'secondary_chf_address': _sz5} YKHO.attribute_map = {'primary_chf_address': 'primaryChfAddress', 'secondary_chf_address': 'secondaryChfAddress'} YKHO._primary_chf_address = yv4B YKHO._secondary_chf_address = kmYq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GWuV(YKHO) -> cuzp[str, any]:\n return {'identifiers': {(Sugg, YKHO.charger.id)}, 'name': YKHO.charger.name, 'manufacturer': 'Easee', 'model': 'Charging Robot'}", "def USK6(YKHO):\n return YKHO._charging_info", "def nalj(YKHO):\n return {'co2_concetration': {'type': 'gauge', 'unit': 'ppm', 'precis...
[ "0.63579357", "0.6199705", "0.5893306", "0.58850306", "0.5811464", "0.5800226", "0.57687324", "0.5726577", "0.5724265", "0.57040644", "0.56842715", "0.5676057", "0.56737465", "0.56720275", "0.5669222", "0.5669222", "0.5662077", "0.5646604", "0.5646604", "0.5646604", "0.563680...
0.0
-1
Gets the primary_chf_address of this ChargingInformation.
def yv4B(YKHO): return YKHO._primary_chf_address
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yv4B(YKHO, yv4B):\n if yv4B is None:\n raise ValueError('Invalid value for `primary_chf_address`, must not be `None`')\n YKHO._primary_chf_address = yv4B", "def kmYq(YKHO):\n return YKHO._secondary_chf_address", "def TYWI(YKHO) -> str:\n return YKHO._primary_telephone_number", "def GJ7...
[ "0.67949283", "0.6485796", "0.610689", "0.58620036", "0.5848402", "0.57946324", "0.57465774", "0.5736808", "0.5735824", "0.5687405", "0.56759864", "0.56759864", "0.5672949", "0.56656766", "0.5655209", "0.56486344", "0.5633829", "0.5610872", "0.5571419", "0.556244", "0.5558611...
0.8708736
0
Sets the primary_chf_address of this ChargingInformation.
def yv4B(YKHO, yv4B): if yv4B is None: raise ValueError('Invalid value for `primary_chf_address`, must not be `None`') YKHO._primary_chf_address = yv4B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yv4B(YKHO):\n return YKHO._primary_chf_address", "def vUXy(YKHO, vUXy):\n YKHO._primary_chromaticities = vUXy", "def OZ65(YKHO, OZ65):\n YKHO._primary = OZ65", "def jVrY(YKHO, jVrY: ConfigNodePropertyString):\n YKHO._primary_host = jVrY", "def TYWI(YKHO, TYWI: str):\n YKHO._primary_telep...
[ "0.70395595", "0.60897654", "0.60200554", "0.59631956", "0.58446145", "0.58431053", "0.5648892", "0.5638213", "0.5581625", "0.5404941", "0.536913", "0.536913", "0.5331368", "0.5282758", "0.525964", "0.52439487", "0.51909024", "0.5150823", "0.51451623", "0.51385796", "0.513857...
0.79319054
0
Gets the secondary_chf_address of this ChargingInformation.
def kmYq(YKHO): return YKHO._secondary_chf_address
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kmYq(YKHO, kmYq):\n if kmYq is None:\n raise ValueError('Invalid value for `secondary_chf_address`, must not be `None`')\n YKHO._secondary_chf_address = kmYq", "def yv4B(YKHO):\n return YKHO._primary_chf_address", "def Kyvr(YKHO):\n return YKHO.__cfp2", "def g9D5(YKHO):\n return YKH...
[ "0.70501214", "0.6137319", "0.58070666", "0.5627822", "0.55816895", "0.53883463", "0.53776574", "0.53097093", "0.5291309", "0.5256307", "0.5239068", "0.5237123", "0.52060354", "0.5194851", "0.5188469", "0.5187976", "0.51227057", "0.5115371", "0.51066446", "0.5088642", "0.5083...
0.87920016
0
Returns a dictionary mapping continents to their ID.
def RorI(): bLCe = {} with open('data/continent_mapping.csv', 'r', newline='') as eHNT: N5Pj = m6_J.reader(eHNT) for iIih, nlgp in N5Pj: bLCe[nlgp] = iIih return bLCe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sgG0(YKHO):\n Xe1g = dict()\n exwG = 0\n for oWrg in YKHO.iteritems():\n Xe1g[oWrg] = exwG\n exwG += 1\n return Xe1g", "def wsUr(YKHO):\n return {Z9rn.name: Z9rn for Z9rn in YKHO.contigs}", "def Mjwi(YKHO):\n return YKHO._ident.itervalues()", "def Mjwi(YKHO):\n return Y...
[ "0.6776287", "0.660914", "0.65000576", "0.65000576", "0.65000576", "0.65000576", "0.65000576", "0.63111615", "0.6268233", "0.6110202", "0.6058639", "0.5978404", "0.59610236", "0.5895919", "0.5850562", "0.58365697", "0.5820471", "0.5805921", "0.58026856", "0.5788855", "0.57812...
0.63598174
7
Returns the timestamp of the last usage of key. If key is not in the dictionary, returns None.
def gCfI(YKHO, H5ew): if H5ew in YKHO.timestamp_use: return YKHO.timestamp_use[H5ew] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qYwE(YKHO, H5ew: str) -> int:\n H5ew = YKHO.clean_key(H5ew)\n E3oo = int(YKHO.cache.get(f'{H5ew}:timer', 0))\n return E3oo", "def kcjK(YKHO):\n sjXb = list(YKHO.data.keys())\n return sorted(sjXb)[0]", "def s537(YKHO, H5ew):\n return YKHO.stats(H5ew)[0]", "def pxMU(eUNp: dict):\n IKIq...
[ "0.70567", "0.6907271", "0.66838264", "0.6633146", "0.6503417", "0.64842004", "0.6455427", "0.64092195", "0.6269661", "0.6259117", "0.6241709", "0.6222733", "0.62041116", "0.61939675", "0.61726964", "0.6156155", "0.61553293", "0.61553293", "0.61311513", "0.6091686", "0.608197...
0.6841865
2
Gets the name of the active Element of the Active class.
def lMho(YKHO) -> str: return YKHO.dss_obj.ActiveClassS(0, 0).decode('ascii')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L69z(YKHO):\n return YKHO.DSSCktElement.Name", "def dBTC(YKHO):\n return YKHO._bm.browser.switch_to.active_element", "def amz2(YKHO) -> str:\n return YKHO.dss_obj.ActiveClassS(2, 0).decode('ascii')", "def Q38V(YKHO):\n bo34.info('Active UI element is {0}'.format(YKHO.name))", "def W0tD(YKHO...
[ "0.7739289", "0.73016185", "0.712277", "0.69642705", "0.6824465", "0.6656836", "0.662797", "0.65884113", "0.644248", "0.6394051", "0.6328857", "0.6255794", "0.62305766", "0.6187282", "0.61545664", "0.61390495", "0.61378235", "0.61201787", "0.6101962", "0.6100545", "0.607013",...
0.7402552
1
Gets the name of the Parent Element of the Active class.
def dKXh(YKHO) -> str: return YKHO.dss_obj.ActiveClassS(3, 0).decode('ascii')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dx2i(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'parent_name')", "def dx2i(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'parent_name')", "def dx2i(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'parent_name')", "def dx2i(YKHO) -> h8nf[qe4Y.Input[str]]:\n retu...
[ "0.7225803", "0.7008756", "0.7008756", "0.7008756", "0.7008756", "0.7008756", "0.7008756", "0.69767374", "0.68271154", "0.68271154", "0.67413574", "0.6736134", "0.6705109", "0.6666775", "0.66216147", "0.6596724", "0.6574482", "0.6565137", "0.6541351", "0.65292495", "0.6507573...
0.7904638
0
calculates the ngram Bcumulative BLEU score for a sentence
def Be6n(z3LN, yAmx, exwG): RKT6 = len(yAmx) WSsO = len(z3LN) r1Ac = len(z3LN[0]) DDI8 = r1Ac sU5t = [[] for YRbF in range(exwG + 1)] for KjSY in range(1, exwG + 1): for YRbF in range(RKT6 - KjSY + 1): u8Mh = '' for r845 in range(KjSY): u8Mh = u8Mh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Be6n(z3LN, yAmx, exwG):\n\n def rhd_(z3LN, yAmx, exwG):\n \"\"\"\n Calculates the precision for n-gram BLEU score for a sentence\n parameters:\n references [list]:\n contains reference translations\n sentence [list]:\n contains the mod...
[ "0.76868814", "0.7326283", "0.7272352", "0.7251179", "0.7195989", "0.7188483", "0.71570516", "0.71276987", "0.7121129", "0.7118084", "0.7018249", "0.7008651", "0.70082486", "0.69834334", "0.6906163", "0.6880695", "0.6871692", "0.68651694", "0.68068224", "0.6711604", "0.671155...
0.627944
31
Calculate forward network activated signal
def KVH6(YKHO, input): YKHO.input = input YKHO.output = YKHO.nonlin(YKHO.input.dot(YKHO.weights) + YKHO.bias) return YKHO.output
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO):\n LVAh = YKHO.inbound_nodes[0].value\n jzdc = YKHO.inbound_nodes[1].value\n YKHO.m = YKHO.inbound_nodes[0].value.shape[0]\n YKHO.diff = LVAh - jzdc\n YKHO.value = oyIN.mean(YKHO.diff ** 2)", "def KVH6(YKHO):\n EcVT = YKHO.inbound_nodes[0].value\n XcU5 = YKHO.inbound_nodes[1]....
[ "0.67910916", "0.66272336", "0.6617233", "0.65503055", "0.6446848", "0.6399673", "0.6393465", "0.6393465", "0.6369888", "0.635727", "0.6309056", "0.62989014", "0.6285452", "0.6283055", "0.6232486", "0.62316054", "0.6230409", "0.62224936", "0.6207503", "0.61985826", "0.6183775...
0.0
-1
Update weights and biases of current layer
def QdZT(YKHO, Cwt5=0.1): YKHO.weights -= Cwt5 * YKHO.input.T.dot(YKHO.weight_output_delta) YKHO.bias -= Cwt5 * oyIN.mean(YKHO.bias, axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO):\n fhcK = [YKHO.input_layer] + YKHO.hidden_layers\n for gEmA in fhcK:\n fUYa = gEmA.xs\n i0Uw = YKHO.alpha * oyIN.dot(gEmA.deltas, fUYa.transpose())\n gEmA.weights = oyIN.add(gEmA.weights, i0Uw)", "def X6qn(YKHO, _mSQ, oug5, d6pt):\n YKHO.parameters[d6pt] = (_mSQ, oug...
[ "0.806316", "0.8047532", "0.7758172", "0.7741152", "0.77265954", "0.7712097", "0.76687247", "0.75546455", "0.75337636", "0.7483666", "0.7471032", "0.74311745", "0.7425707", "0.73880064", "0.7339576", "0.72791713", "0.7260181", "0.7220742", "0.719825", "0.71684545", "0.714577"...
0.7697086
6
Test score_to_rank_multi_target with micro averaging.
def IAKT(): qcYj(average=vnUd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Du9S():\n x6A0 = ht2j.as_tensor(data=[[0, 0], [0, 1], [1, 0]]).t()\n cCrA = ht2j.as_tensor(data=[[1.0, 2.0, 3.0, 4.0], [3.0, 2.0, 3.0, 4.0]])\n IJnX = ht2j.as_tensor(data=[2.0, 2.0, 2.5])\n H4Mu = re7v(scores=cCrA, targets=x6A0, average=vnUd)\n assert ht2j.allclose(H4Mu.expected_rank, IJnX)\n ...
[ "0.813125", "0.8121665", "0.64610136", "0.61898816", "0.6135741", "0.60224694", "0.59788615", "0.59632546", "0.59570885", "0.5941354", "0.59334487", "0.59282607", "0.5925992", "0.59221", "0.58657515", "0.5756201", "0.57058406", "0.569861", "0.56817096", "0.5670535", "0.565932...
0.9028174
0
Test score to rank with infinity scores.
def PX3s(): Ep8u = 2 _DCO = 7 sqvw = 5 cCrA = ht2j.full(size=(Ep8u, _DCO), fill_value=float('inf')) x6A0 = ht2j.stack([ht2j.randint(high=Ep8u, size=(sqvw,)), ht2j.randint(high=_DCO, size=(sqvw,))], dim=0) xvUt = re7v(scores=cCrA, targets=x6A0, average=DKw5) pt0p(xvUt, average=DKw5, num_entit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bi7H(BH3N, oyg0):\n if BH3N.is_loser(oyg0):\n return float('-inf')\n if BH3N.is_winner(oyg0):\n return float('inf')\n return 0.0", "def jXJh(YKHO, cCrA) -> None:\n assert ht2j.all(ht2j.isfinite(cCrA)).item()", "def HOnr(cCrA: List[float]) -> float:\n return 1.0 if sum(cCrA) == ...
[ "0.6888266", "0.6560109", "0.6411974", "0.61778915", "0.6130888", "0.60974693", "0.6060491", "0.60524064", "0.60524064", "0.6028951", "0.6028951", "0.59576327", "0.5945489", "0.59332186", "0.5873121", "0.58724624", "0.58615816", "0.5842524", "0.5841896", "0.58373487", "0.5836...
0.764179
0
Add two numbers. This definition is intended to be used with a multiprocessing pool for unit testing.
def Qw6N(jzdc: Real, Fg_i: Real): return jzdc + Fg_i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, jzdc, Fg_i):\n return jzdc + Fg_i", "def H2v5(B58t, XfrR):\n return B58t + XfrR", "def FOdN(YKHO, Elif):\n return Tkzb.__calculate(khtY.add, YKHO, Elif)", "def HEGj(jzdc, Fg_i):\n return jzdc + Fg_i", "def FOdN(YKHO, Elif):\n return zDdG(YKHO.value + Elif.value)", "def H2v5(...
[ "0.7554849", "0.7551358", "0.75176626", "0.74869806", "0.7457962", "0.74288934", "0.74271894", "0.74271894", "0.74271894", "0.73992217", "0.7396937", "0.73919886", "0.7371545", "0.7371226", "0.73599637", "0.73599637", "0.73599637", "0.73599637", "0.73599637", "0.73599637", "0...
0.7670827
0
This method transforms the given sequences into a pandas Dataframe. Also sequences that do not start at zero are extended with its inverse state
def o87x(jWe2): usx6 = [] or8S = -1 UUvl = dict() for aWuw in jWe2: or8S += 1 for Pp4i in aWuw: if not Pp4i in UUvl: UUvl[Pp4i] = [] Iyvc = aWuw[Pp4i] if Iyvc[0][1] != 0.0: if len(Iyvc) > 1: QTBn = Iy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xt1H(YKHO, jWe2):\n WOZF = set()\n gpqG = []\n for aWuw in jWe2:\n Sia0 = dict(aWuw)\n WOZF |= set(Sia0.keys())\n gpqG.append(Sia0)\n jQ3Z = rLdf.DataFrame.from_records(gpqG)\n if YKHO.fill_missing_values:\n jQ3Z = jQ3Z.fillna('MISSING_VALUE')\n for Z9rn in jQ3Z.co...
[ "0.7924308", "0.68577623", "0.6464475", "0.6248188", "0.6168362", "0.61259115", "0.61228025", "0.6075941", "0.6069441", "0.5851554", "0.58405316", "0.58371", "0.5812092", "0.5774896", "0.57557344", "0.5741091", "0.5718899", "0.5706601", "0.56955785", "0.56686515", "0.5666068"...
0.7872004
1
Determines if the given object is an iterable.
def GfZ5(YEnM) -> bool: return SsoZ(YEnM) is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfZ5(YEnM):\n return isinstance(YEnM, iu5r)", "def SytQ(YEnM):\n return isinstance(YEnM, g760.Iterable)", "def OxJJ(YKHO, YEnM):\n return isinstance(YEnM, iu5r)", "def GfZ5(YEnM):\n try:\n iter(YEnM)\n return True\n except TypeError:\n return False", "def GfZ5(YEnM):...
[ "0.88643354", "0.8646057", "0.853859", "0.84986717", "0.849762", "0.8438573", "0.84272337", "0.84229743", "0.84198236", "0.84198236", "0.8392478", "0.83854735", "0.83796006", "0.83595836", "0.8307477", "0.8285181", "0.82750887", "0.8263903", "0.8213883", "0.8208849", "0.81760...
0.81372243
22
Returns an iterator for the object if it's iterable, or None if it's not.
def SsoZ(YEnM) -> h8nf[bDy6]: try: return iter(YEnM) except Exception: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eX9v(YEnM):\n return not s_0d(YEnM) and [YEnM] or YEnM", "def OxJJ(YEnM):\n if hasattr(YEnM, '__getitem__'):\n if len(YEnM) > 0:\n return YEnM[0]\n else:\n return YEnM\n else:\n return YEnM", "def OxJJ(YEnM):\n if hasattr(YEnM, '__getitem__'):\n ...
[ "0.73709875", "0.7146435", "0.7146435", "0.7117188", "0.705927", "0.7040767", "0.68578684", "0.6855273", "0.6850185", "0.68448883", "0.6796078", "0.6779409", "0.6776176", "0.6767358", "0.6710446", "0.6703822", "0.6703822", "0.66863364", "0.66250473", "0.662199", "0.6592857", ...
0.8004811
0
Gets an iterator for the given iterable, which will flatten any iterable elements into the iterator output.
def PWgb(OxJJ: Iterable, rb7a: int=-1) -> bDy6: for U6D_ in OxJJ: ckR5 = SsoZ(U6D_) if ckR5 is None or rb7a == 0: yield U6D_ else: for V_cl in PWgb(ckR5, rb7a - 1): yield V_cl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(OxJJ):\n for YRbF in OxJJ:\n if isinstance(YRbF, g760.Iterable):\n for r845 in PWgb(YRbF):\n yield r845\n else:\n yield YRbF", "def MKPt(OxJJ):\n for DumB in OxJJ:\n for ZfUD in DumB:\n yield ZfUD", "def rg8H(OxJJ):\n\n clas...
[ "0.7758435", "0.76960826", "0.7425187", "0.7423936", "0.7336915", "0.72772187", "0.7249467", "0.72314924", "0.7087252", "0.70663077", "0.6911591", "0.6908825", "0.6894069", "0.6894069", "0.6888126", "0.68820107", "0.6698382", "0.6626909", "0.6609427", "0.6596538", "0.6537769"...
0.75425327
2
Returns the indices that are not in the given indices, up to the given size.
def iO84(_0VL: Iterable[int], zNig: int) -> bDy6[int]: YlZG = set(_0VL) for YRbF in range(zNig): if YRbF not in YlZG: yield YRbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LSEA(YKHO, *DNs0: int) -> x1iM[int]:\n Ikh1 = YKHO.size()[-1]\n assert len(DNs0) > 0 and all([0 <= YRbF < Ikh1 for YRbF in DNs0])\n assert len(set(DNs0)) == len(DNs0)\n wl6z = [YRbF for YRbF in range(Ikh1) if YRbF not in DNs0]\n assert len(wl6z) > 0\n return wl6z", "def o6hN(XgIF, Ep8u):\n ...
[ "0.68576723", "0.6849986", "0.62310654", "0.6036645", "0.60331476", "0.5801686", "0.57622546", "0.57622546", "0.5722407", "0.56981945", "0.5631201", "0.56092036", "0.5553059", "0.5549743", "0.55061907", "0.5503133", "0.5479807", "0.5429159", "0.54283607", "0.54150426", "0.538...
0.7084945
0
Finds the first value in an iterable to meet a given predicate.
def cntZ(OxJJ: Iterable[T], lgNN: Predicate[T]) -> AzJI[int, h8nf[Kt_s]]: for dfHy, BWXx in enumerate(OxJJ): if lgNN(BWXx): return (dfHy, BWXx) return (-1, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XjmE(OxJJ, lgNN):\n for TpU3 in OxJJ:\n if lgNN(TpU3):\n return TpU3", "def cntZ(lgNN, OxJJ):\n return next(filter(lgNN, OxJJ), None)", "def neBz(OxJJ: typing.Iterable, lgNN: typing.Callable):\n vC9B = rFRb(OxJJ, lgNN)\n return vC9B[0] if vC9B else None", "def neBz(OxJJ: Ite...
[ "0.86336535", "0.84753704", "0.84453714", "0.8368165", "0.8093207", "0.80438393", "0.80286676", "0.78971326", "0.7874678", "0.781536", "0.7802921", "0.77834356", "0.77590793", "0.76586", "0.7657085", "0.75558996", "0.7512501", "0.74558896", "0.7454792", "0.7441453", "0.734691...
0.86550933
0
Version of all which checks values against a predicate.
def Yw0j(OxJJ: Iterable[T], lgNN: Predicate[T]) -> bool: return all(map(lgNN, OxJJ))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f_ZH(lgNN, Q6uT):\n return all((lgNN(WKvO) for WKvO in Q6uT))", "def v9Bz(OxJJ, lgNN):\n return all((lgNN(WKvO) for WKvO in OxJJ))", "def all(YKHO, lgNN):\n for YRbF in YKHO.iterable:\n if not lgNN(YRbF):\n return False\n return True", "def GfdN(YKHO, lgNN, *hkxX):\n for ...
[ "0.6905677", "0.68089604", "0.66319495", "0.65352786", "0.645267", "0.6449542", "0.6448592", "0.6354815", "0.62874734", "0.62020946", "0.618196", "0.6158918", "0.6079701", "0.60676396", "0.6057859", "0.6050138", "0.60432035", "0.59553087", "0.5918553", "0.58904105", "0.588304...
0.6107329
12
Return a vehicle object that's name is string name, has constant velocity float CONSTANT_VELOCITY in m/s, lvl 1 heading change float L1_HEADING_CHANGE in rad/s, lvl 2 heading change L2_HEADING_CHANGE, Lvl 1 heading change per TIME_STEP of float L1_HEADING_CHANGE_PER_STEP in radians per step, level 2 heading change per ...
def FIMM(YKHO, mWFP, o2Jf, Nwpp, JO9q, Wkj2, f8cB, keCF, Y1n9): YKHO.name = mWFP YKHO.CONSTANT_VELOCITY = o2Jf YKHO.L1_HEADING_CHANGE = Nwpp YKHO.L1_HEADING_CHANGE_PER_STEP = Nwpp * Y1n9 YKHO.L1_CONTROL_CROSS_TRACK_VELOCITY = o2Jf * epAf.sin(YKHO.L1_HEADING_CHANGE_PER_STEP) YKHO.L1_CONTROL_ALONG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGIA(YKHO):\n QTBn = oyIN.zeros(YKHO._num_states)\n zE7s = By1I.vehicle.getIDList()\n for DDJ9 in zE7s:\n Gi4S = By1I.vehicle.getLanePosition(DDJ9)\n tpB1 = By1I.vehicle.getLaneID(DDJ9)\n Gi4S = 500 - Gi4S\n if Gi4S < 8:\n zBYF = 0\n elif Gi4S < 16:\n ...
[ "0.6154447", "0.6135385", "0.61130553", "0.5949314", "0.58673316", "0.58575517", "0.58317053", "0.58266807", "0.5825907", "0.5811647", "0.5810055", "0.57869923", "0.57805055", "0.56986713", "0.5685702", "0.5682256", "0.566293", "0.56465816", "0.5578029", "0.5554391", "0.55269...
0.70317936
0