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
View to get all the places from the website francesinhas.com (from the REST API)
def cK63(QePW): B2Dn = QePW.GET.get('page', 1) bD7m = '{}{}?page={}'.format(gCuF.FRANCESINHAS_URL, gCuF.FRANCESINHAS_PLACES_API, B2Dn) geh0 = G4JS.get(bD7m) if geh0.status_code == 200: bo34.debug('Success response!') return jnRN(qQXR.loads(geh0.content)) return DbbF('Invalid Request ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vr9k():\n UzPC = lxP0()\n NXra = cK63(UzPC)\n if NXra:\n geh0 = QoH7(NXra)\n return (qQXR.dumps(geh0), 200)\n return ('', 404)", "def dL6B(accd):\n j5sA = S8SU.get('City', accd)\n NXra = []\n if j5sA is not None:\n for C6id in j5sA.places:\n NXra.append(C6...
[ "0.7036474", "0.6723559", "0.66925377", "0.66381353", "0.6588718", "0.65722936", "0.6561598", "0.6547405", "0.6472749", "0.644494", "0.6394007", "0.63621897", "0.6359758", "0.62557715", "0.619475", "0.6160071", "0.61510724", "0.61434895", "0.6120832", "0.6110069", "0.6068749"...
0.8056185
0
Sets up the electronegativities as values for the voxelization, for both protein and ligand.
def PaQ9(YKHO): UqER = set(YKHO.complex.getElements()) d_7T = {mWFP: U6D_(mWFP.capitalize()).en_pauling for mWFP in UqER} YKHO.protein.values = oyIN.array(list(EC_r((d_7T[mWFP] for mWFP in YKHO.protein.structure.getElements()), YKHO.protein.atoms_in_scope))).reshape((-1, 1)) YKHO.ligand.values = oyIN.ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, TFd6, Hn8f, sGOQ):\n YKHO.belief = 0.5\n YKHO.n_agents = sGOQ\n YKHO.p_AgivenE = TFd6\n YKHO.p_BgivenE = Hn8f\n YKHO.p_A = 0.5\n YKHO.p_B = 0.5\n YKHO.p_Agiven_notE = 2 * YKHO.p_A - YKHO.p_AgivenE\n YKHO.p_Bgiven_notE = 2 * YKHO.p_B - YKHO.p_BgivenE", "def DvSH():\n from...
[ "0.59810865", "0.57990694", "0.5644475", "0.56319064", "0.55967826", "0.5596257", "0.5575399", "0.5515191", "0.5486743", "0.54769", "0.5414961", "0.5347637", "0.5275452", "0.52594465", "0.5250862", "0.52387977", "0.52057916", "0.51933664", "0.51728445", "0.51489466", "0.51444...
0.0
-1
Normalize the energy maps to 01 range and split positive and negative maps.
def jnV4(YKHO): j08P = [-2.27475644, 411.150004, 4.01129569, 1.2813647, -0.37756078, -3.79981632] eprx = [-1.7244696, 0.59311066, 2.67294434, 0.40072521, -0.44943017, -2.00621753] YKHO.protein.image = oyIN.concatenate((YKHO.protein.image, YKHO.protein.image[..., 2:]), axis=-1) YKHO.ligand.image = oyIN.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y5YY(nPrm, FbzT, KsCx):\n return (nPrm - FbzT) / (KsCx - FbzT)", "def NCDp(hksT):\n EwbD = hksT.max()\n Vlf5 = hksT.min()\n if EwbD < oyIN.abs(Vlf5):\n return hksT / (2 * oyIN.abs(Vlf5))\n else:\n hksT[hksT == EwbD] = -EwbD\n return hksT / (2 * oyIN.abs(EwbD))", "def aSi...
[ "0.6282191", "0.6055569", "0.5997224", "0.5983373", "0.59545", "0.59437186", "0.58961594", "0.5891464", "0.58826315", "0.58165276", "0.5775032", "0.57445115", "0.5741959", "0.5705217", "0.5702336", "0.56980115", "0.56318486", "0.5613727", "0.5609217", "0.5589881", "0.5557351"...
0.52468204
90
Simple string representation of the object.
def wHJl(YKHO): KCHu = '%s\n' % YKHO.name KCHu += ' Status : %s\n' % YKHO.status KCHu += ' Count : %s\n' % YKHO.count KCHu += ' Resets : %s\n' % YKHO.number_count_resets KCHu += ' Updates: %s\n' % YKHO.number_updated return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO) -> str:\n return lSJJ(YKHO)", "def zAg0(YKHO):\n return YKHO.object_repr", "def zAg0(YKHO):\n return str(YKHO.serialize())", "def zAg0(YKHO):\n return YKHO.tostring()", "def Sa1R(YKHO):\n pass", "def Sa1R(YKHO):\n pass", "def zAg0(YKHO):\n return _RHq(YKHO)", "def ...
[ "0.8485131", "0.84695244", "0.8325936", "0.8290329", "0.8259579", "0.8259579", "0.82187015", "0.82187015", "0.8218214", "0.8187469", "0.8168029", "0.8167775", "0.81652087", "0.8137474", "0.8137474", "0.8137474", "0.81373245", "0.81350595", "0.81344897", "0.8112854", "0.811285...
0.0
-1
Test the rejection of a load that is not available. If a load is already dropped, it cannot be rejected.
def cOip(YKHO): geh0 = YKHO.client.post('/api/loads/3/reject/') YKHO.assertEqual(geh0.data, {'detail': 'Load already dropped'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Za0H(YKHO):\n geh0 = YKHO.client.get('/5/reject/')\n tyeH = jIQk.objects.get(pk=5)\n YKHO.assertEqual(geh0.status_code, 302)\n YKHO.assertTrue(jMIT.objects.get(pk=1) in tyeH.dropped_by.all())", "def Za0H(YKHO):\n geh0 = YKHO.client.post('/api/loads/1/reject/')\n YKHO.assertEqual(geh0.status...
[ "0.7548188", "0.7032063", "0.68349904", "0.64159137", "0.62723386", "0.60318136", "0.5958848", "0.58632153", "0.58156246", "0.5808785", "0.5764801", "0.5764801", "0.57585347", "0.57578003", "0.5746884", "0.57319057", "0.56897587", "0.56809497", "0.5645347", "0.5645347", "0.56...
0.80123615
0
Test the rejection of a load that is already accepted by the logged Carrier. If a load is already dropped, it can be rejected.
def UdUl(YKHO): geh0 = YKHO.client.post('/api/loads/2/reject/', format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cOip(YKHO):\n geh0 = YKHO.client.post('/api/loads/3/reject/')\n YKHO.assertEqual(geh0.data, {'detail': 'Load already dropped'})", "def Za0H(YKHO):\n geh0 = YKHO.client.get('/5/reject/')\n tyeH = jIQk.objects.get(pk=5)\n YKHO.assertEqual(geh0.status_code, 302)\n YKHO.assertTrue(jMIT.objects....
[ "0.79917896", "0.766959", "0.65881735", "0.61926126", "0.6191137", "0.6178111", "0.6178111", "0.6178111", "0.6178111", "0.59608126", "0.5946013", "0.57809544", "0.57809544", "0.57809544", "0.57809544", "0.57809544", "0.576086", "0.5759882", "0.57135934", "0.5702407", "0.56068...
0.63984936
3
Create and return a new `User` instance, given the validated data.
def eLpg(YKHO, vGfb): return mv1M.objects.create(**vGfb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO, vGfb):\n KAOR = mv1M()\n return YKHO.update(KAOR, vGfb)", "def eLpg(YKHO, vGfb):\n KAOR = mv1M()\n return YKHO.update(KAOR, vGfb)", "def eLpg(YKHO, vGfb):\n KAOR = mv1M()\n KAOR.first_name = vGfb.get('first_name')\n KAOR.last_name = vGfb.get('last_name')\n KAOR.username =...
[ "0.8553024", "0.8553024", "0.8532677", "0.8460643", "0.8454326", "0.84446377", "0.83626634", "0.8272866", "0.8218102", "0.819195", "0.81178164", "0.80819094", "0.8080367", "0.8064011", "0.80383664", "0.79827994", "0.79543614", "0.79525757", "0.7923714", "0.7921116", "0.790280...
0.8623659
1
KLDivergence between two univariate gaussian distributions
def zIzJ(YKHO, yGTL, iYXL): return -0.5 * ht2j.sum(1 - ht2j.pow(yGTL, 2) - ht2j.exp(iYXL) + iYXL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q1ax(azQ3, QgyP, K1Yq, oD27):\n q0Kk = WGTe(azQ3, QgyP)\n V1aF = WGTe(K1Yq, oD27)\n return ht2j.distributions.kl.kl_divergence(q0Kk, V1aF).sum(-1, keepdim=True)", "def dzAH(ZUyv: np.array, S_1T: np.array) -> float:\n qmLP.filterwarnings('ignore', category=RuntimeWarning)\n iArr = ZUyv * oyIN.l...
[ "0.78305125", "0.7282968", "0.7214178", "0.7145562", "0.7143812", "0.71427685", "0.7142679", "0.7083387", "0.7043973", "0.70347494", "0.7000261", "0.6985197", "0.697052", "0.69258386", "0.6895902", "0.68819517", "0.6881618", "0.6877523", "0.68726975", "0.687007", "0.68453294"...
0.0
-1
sqrt(sum_i sum_j (x_ij x_hat_ij)^2) pixelwise mean squared error! (sum requires to sum over one picture and the mean!)
def eibz(YKHO, CKZf, WKvO): return YKHO.mse_loss(CKZf, WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SDab(_qWP, PVPd, _mSQ, r1VO, JPqE, fXzF):\n Mkmy = oyIN.sqrt((JPqE - _qWP) ** 2 + (fXzF - PVPd) ** 2)\n return oyIN.average((Mkmy - r1VO) ** 2, weights=_mSQ)", "def FSiB(P1dF):\n return oyIN.square(oyIN.average(P1dF))", "def h7b7(VXjJ: Image, bf9h: Image) -> float:\n RExh = VXjJ.getNonZeroCoord...
[ "0.7189955", "0.70705193", "0.6990563", "0.6922504", "0.6883715", "0.68590236", "0.6786986", "0.6771353", "0.6764597", "0.67561823", "0.66049635", "0.6601155", "0.65833914", "0.65723205", "0.65192646", "0.65063256", "0.64903796", "0.64824766", "0.64815325", "0.6466621", "0.64...
0.0
-1
patch request, only updates fields provided in the request
def Po4F(YKHO, QePW, _sei=None): return oGir({'method': 'patch'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Po4F(YKHO, QePW, _sei=None):\n return oGir({'method': 'PATCH'})", "def Po4F(YKHO, QePW, *qIxc, **B2fa):\n return YKHO.update(QePW, *qIxc, **B2fa)", "def Po4F(YKHO, QePW: Request, *qIxc: tuple, **B2fa: dict) -> oGir:\n return YKHO.partial_update(QePW, *qIxc, **B2fa)", "def Po4F(YKHO, QePW: Reques...
[ "0.8088467", "0.77903336", "0.77809525", "0.77809525", "0.7606466", "0.75493276", "0.752171", "0.7474098", "0.7460596", "0.7447334", "0.7447205", "0.74172735", "0.74117374", "0.7398172", "0.7398172", "0.7398172", "0.7398172", "0.7398172", "0.7398172", "0.73784226", "0.7378422...
0.71722937
38
automatically sets the serializer to the correct profile, and allows for the organization to be set
def Wzk0(YKHO, ZMzz): ZMzz.save(trainer_profile=YKHO.request.user)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a9qP(YKHO, qIxc, **B2fa):\n if YKHO.is_update_model:\n cIuE = izt5\n else:\n cIuE = xc46\n return cIuE(qIxc, **B2fa)", "def sfya():\n if gCuF.PROFILE_SERIALIZER:\n return _2vT(gCuF.PROFILE_SERIALIZER)\n return pZCR", "def Wzk0(YKHO, ZMzz):\n ZMzz.save(user_profile=YKH...
[ "0.621938", "0.6151569", "0.6051132", "0.59743965", "0.5860701", "0.5860701", "0.5860701", "0.5860701", "0.5860701", "0.5860701", "0.5860701", "0.5860701", "0.5846933", "0.5846933", "0.5846933", "0.5846933", "0.5846933", "0.5842751", "0.5585995", "0.5579316", "0.556347", "0...
0.5477349
25
Resets train and val histories for the accuracy and the loss.
def iq9r(YKHO): YKHO.train_loss_history = [] YKHO.train_acc_history = [] YKHO.val_acc_history = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iq9r(YKHO):\n YKHO.train_loss_history = []\n YKHO.train_acc_history = []\n YKHO.val_acc_history = []\n YKHO.val_loss_history = []", "def iq9r(YKHO):\n YKHO.train_loss_history = []\n YKHO.train_acc_history = []\n YKHO.val_acc_history = []\n YKHO.val_loss_history = []", "def iq9r(YKHO...
[ "0.82515854", "0.82515854", "0.8184492", "0.81633496", "0.80255616", "0.8006382", "0.8000183", "0.78201044", "0.74090403", "0.7384535", "0.7334496", "0.73131657", "0.7284209", "0.7035528", "0.69799685", "0.6979461", "0.6942076", "0.69395524", "0.6881647", "0.6865475", "0.6846...
0.8269593
0
Computes the loss value for an input and label pair. It also computes accuracy and stores it to the attribute.
def nrOS(YKHO, WKvO, a1PO): YKHO.y = YKHO.predictor(WKvO) YKHO.loss = YKHO.lossfun(YKHO.y, a1PO) if YKHO.compute_accuracy: YKHO.accuracy = vjyh.accuracy(YKHO.y, a1PO) return YKHO.loss
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FZeT(nvEb, UXqs):\n return (nvEb - UXqs).abs().mean()", "def N77f(N6Z1, Crrw):\n with ZylS.variable_scope('loss'):\n return ZylS.losses.mean_squared_error(N6Z1, Crrw)", "def N2xz(YKHO, Crrw, sLS8):\n CqbS = ZylS.reduce_mean(ZylS.nn.softmax_cross_entropy_with_logits(labels=Crrw, logits=sLS8)...
[ "0.6917051", "0.67759925", "0.6677053", "0.66620797", "0.66283", "0.6611407", "0.6603793", "0.6603644", "0.6594989", "0.6550329", "0.6540624", "0.65334207", "0.6532297", "0.65213865", "0.6506962", "0.6502528", "0.6498891", "0.6493594", "0.6492618", "0.64836645", "0.64815825",...
0.0
-1
Iterate over the points in the grid. Returns
def Vs4Q(YKHO): for XP5J in YKHO.param_grid: DumB = sorted(XP5J.items()) if not DumB: yield {} else: sjXb, hkxX = zip(*DumB) for Ty9i in Lx3t(*hkxX): NArs = dict(zip(sjXb, Ty9i)) yield NArs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FQeX(YKHO):\n for YRbF, (FDPT, QnmL) in enumerate(zip(YKHO.activearrlon, YKHO.activearrlat)):\n yield (YKHO.activegpis[YRbF], FDPT, QnmL)", "def uHKh(YKHO):\n for b0rV in Ni9Y(YKHO.grid_w):\n for oDSd in Ni9Y(YKHO.grid_h):\n yield (b0rV, oDSd)", "def X73w(YKHO):\n for AU8u...
[ "0.7631696", "0.7460047", "0.7453365", "0.7309077", "0.72910506", "0.72859085", "0.7232103", "0.72282606", "0.71667075", "0.7164911", "0.71636516", "0.7156009", "0.7115472", "0.7097373", "0.7070706", "0.70408905", "0.70408905", "0.6892112", "0.6882134", "0.6882134", "0.687035...
0.0
-1
pysimm.system.System.set_charge Sets total charge of all Particle objects in System.particles
def Gl3t(YKHO): YKHO.charge = 0 for XP5J in YKHO.particles: YKHO.charge += XP5J.charge
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sVqY(YKHO):\n WJkG = 0.0\n for XP5J in YKHO.particles:\n WJkG += XP5J.charge\n if WJkG != 0:\n XP5J.charge -= WJkG\n YKHO.set_charge()", "def uXFn(YKHO):\n for WhQ6 in YKHO.atoms.values():\n WhQ6.charge = WhQ6.formal_charge\n WqQC.equilibrate(YKHO.atoms.values())", "d...
[ "0.7014141", "0.6777253", "0.65051746", "0.6324111", "0.62706906", "0.6199976", "0.6161359", "0.6124186", "0.60946095", "0.606759", "0.600556", "0.588725", "0.5794301", "0.5746848", "0.5663033", "0.56622547", "0.56519556", "0.56267035", "0.5623731", "0.5604767", "0.5604767", ...
0.8528458
0
pysimm.system.System.set_mm_dist Calculate molecular mass distribution (mainly for polymer systems). Sets System.mw, System.mn, and System.disperisty
def qQJ7(YKHO, Yo8G=None): if Yo8G is None or Yo8G == 'all': Yo8G = YKHO.molecules for r8hN in Yo8G: r8hN.set_mass() YKHO.mn = 0 YKHO.mw = 0 for r8hN in Yo8G: YKHO.mn += r8hN.mass YKHO.mw += pow(r8hN.mass, 2) YKHO.mw /= YKHO.mn YKHO.mn /= Yo8G.count YKHO.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r8hN(YKHO, r8hN):\n kTwQ = YKHO.nu\n YKHO.m1 = r8hN / 2.0 * (1 + oyIN.sqrt(1 - 4 * kTwQ))\n YKHO.m2 = r8hN / 2.0 * (1 - oyIN.sqrt(1 - 4 * kTwQ))", "def kQKO(YKHO, H549, NmYP, nSjA):\n YKHO.mw = H549\n YKHO.ms = NmYP\n YKHO.mrho = nSjA", "def cdyv(YKHO, r8hN):\n for r845 in range(YKHO.n...
[ "0.6099831", "0.6038468", "0.6025656", "0.59545135", "0.5933251", "0.5663466", "0.56311154", "0.5552004", "0.5507212", "0.5491898", "0.5449817", "0.54408646", "0.54274005", "0.5417315", "0.5404766", "0.54025227", "0.54020554", "0.53973633", "0.53219116", "0.5315823", "0.53154...
0.7706255
0
pysimm.system.read_yaml Interprets yaml file and creates pysimm.system.System object
def xRMc(jQJk, **B2fa): if Hy7s.path.isfile(jQJk): fGC9 = qQXR.loads(nUeQ(jQJk).read()) else: fGC9 = qQXR.loads(jQJk) KCHu = wk86() for G1Hx, Ty9i in fGC9.items(): if not isinstance(Ty9i, dict): setattr(KCHu, G1Hx, Ty9i) if isinstance(fGC9.get('dim'), dict): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9B0(YKHO, Ux0P):\n raise NotImplementedError()", "def jnN0(nUeQ):\n if not nUeQ:\n raise SystemExit('\\nError: No yaml file given!\\n')\n if issubclass(type(nUeQ), str):\n with open(nUeQ, 'r') as wOb_:\n return vLmg(wOb_)\n elif issubclass(type(nUeQ), xDSY.IOBase):\n ...
[ "0.6957529", "0.67153776", "0.66170096", "0.6565641", "0.6544917", "0.65343463", "0.6529718", "0.6498775", "0.6492145", "0.6485679", "0.64823234", "0.64787185", "0.64662313", "0.6444046", "0.644187", "0.6435757", "0.643302", "0.64177334", "0.64053655", "0.63985157", "0.637968...
0.69768643
0
Return true if entity is on.
def Debg(YKHO) -> bool: if YKHO._speed is None: return False return YKHO._speed != s3bR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO) -> bool:\n return YWvJ(bool, getattr(YKHO._device, YKHO.entity_description.key))", "def Debg(YKHO) -> bool:\n return YKHO.coordinator.data[YKHO.entity_description.key]", "def Debg(YKHO) -> bool:\n return YKHO.entity_description.value(YKHO.coordinator.data)", "def Debg(YKHO):\n if n...
[ "0.8739495", "0.84256566", "0.8347952", "0.82110447", "0.8205695", "0.81049025", "0.8056654", "0.8044029", "0.7926172", "0.792543", "0.7900141", "0.77641296", "0.7750356", "0.76881707", "0.76723933", "0.76495564", "0.7576786", "0.75579727", "0.75579727", "0.7523214", "0.74638...
0.0
-1
Construct the NN model only Keras support for now
def n8cN(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQs7():\n global model\n global nb_neurones\n global nb_layers\n C3ST = ileL()\n C3ST.add(l6ZH(nVwf, input_dim=200, activation='softmax'))\n for vC9B in range(O7Wv):\n C3ST.add(l6ZH(nVwf, activation='softmax'))\n C3ST.add(l6ZH(2, activation='softmax'))\n C3ST.compile(loss='catego...
[ "0.7818674", "0.78167593", "0.77359253", "0.77307314", "0.7682214", "0.76517516", "0.7635349", "0.76130724", "0.7605876", "0.76047957", "0.7604242", "0.7599895", "0.759713", "0.7591601", "0.75906664", "0.7572073", "0.75666046", "0.7561771", "0.75525475", "0.75500923", "0.7533...
0.0
-1
Load existing model to make plots or predictions
def uyMl(YKHO, SS9w=False): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl(YKHO):\n YKHO.model = uyMl(Hy7s.path.join('Savings', 'Saved Models', 'SimpleCharRNN'))", "def TMZa():\n global model\n apum = open('predictions', 'rb')\n N6Z1 = t2lc.load(apum)\n apum.close()", "def uyMl(Ux0P):\n pass", "def uyM...
[ "0.7577729", "0.7577729", "0.73393226", "0.73099405", "0.72782594", "0.7257768", "0.7257768", "0.7257768", "0.7257768", "0.7205391", "0.71506715", "0.7126547", "0.71192807", "0.71029514", "0.7089188", "0.70431095", "0.70299304", "0.7008737", "0.7006979", "0.6998124", "0.69891...
0.0
-1
Method adds a new vertex to the graph. Vertex names can be any string. If a vertex with the same name is already present in the graph, the method will do nothing.
def ohmD(YKHO, Ty9i: str) -> None: if Ty9i in YKHO.adj_list.keys(): return None else: YKHO.adj_list[Ty9i] = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[rJkO.name] = rJkO", "def ohmD(YKHO, eNH2):\n mWFP = YKHO.__get_name(eNH2)\n WNtM = {'fxns': [], 'api': 'neuron'}\n MR3S = {'fxn': 'addVertex', 'name': mWFP}\n C9U5 = YKHO.__get_properties(eNH2)\n MR3S['properties'] = C9U5\n WNtM['...
[ "0.842824", "0.7704158", "0.7609012", "0.7584368", "0.74857676", "0.74294376", "0.7396085", "0.7283597", "0.7266059", "0.7234523", "0.72081405", "0.7180634", "0.7140704", "0.71230626", "0.71219003", "0.71150184", "0.71150184", "0.7096018", "0.70871174", "0.7085842", "0.708584...
0.69888777
34
Method removes an edge between two vertices with the provided names. If either or both vertex names do not exist in the graph, or if there is no edge between them, the method will do nothing.
def iyca(YKHO, Ty9i: str, P6bq: str) -> None: ydfA = YKHO.adj_list.get(P6bq) VJDQ = YKHO.adj_list.get(Ty9i) if Ty9i not in YKHO.adj_list.keys() or P6bq not in YKHO.adj_list.keys(): return None elif Ty9i not in ydfA and P6bq not in VJDQ: return None else: ydfA.remove(Ty9i) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eik1(YKHO, i4Va, rUTj):\n pass", "def Eik1(YKHO, a1q_, ifh0):\n apzJ.abstract()", "def Qmvo(YKHO, KDjy: str, WZnQ: str) -> 'UndirectedGraph':\n if not YKHO.is_edge_exists(KDjy, WZnQ):\n raise Exception(f'Edge stc: {KDjy} dest: {WZnQ} does not exists, create it first')\n super().delete_ed...
[ "0.70195794", "0.6992729", "0.68316144", "0.6753865", "0.672801", "0.6640181", "0.662658", "0.66156745", "0.6603791", "0.6599688", "0.65277964", "0.6503012", "0.644719", "0.64229816", "0.6390217", "0.6318564", "0.6314863", "0.6295085", "0.6212197", "0.620645", "0.61911756", ...
0.5604394
68
Method removes a vertex with a given name and all edges that are incident to it from the graph. If the given vertex does not exist, the method will do nothing.
def AYvI(YKHO, Ty9i: str) -> None: if Ty9i in YKHO.adj_list.keys(): del YKHO.adj_list[Ty9i] for hkxX in YKHO.adj_list: v9CE = YKHO.adj_list.get(hkxX) for onTE in v9CE: if onTE == Ty9i: v9CE.remove(Ty9i) return None else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AYvI(YKHO, niHF: n):\n for Ty9i in YKHO.V():\n Ty9i.remove_connection(niHF)\n try:\n YKHO._graph.pop(niHF)\n except KeyError:\n pass", "def AYvI(YKHO, mWFP):\n del YKHO.vertices[mWFP]\n while YKHO._outgoing[mWFP]:\n YKHO.remove_edge(mWFP, next(iter(YKHO._outgoing[mW...
[ "0.86088145", "0.8120626", "0.78085566", "0.7807642", "0.7599661", "0.7432567", "0.7424199", "0.74155056", "0.74147224", "0.7280115", "0.72200865", "0.7190389", "0.71857905", "0.713803", "0.71308947", "0.7112081", "0.70801634", "0.7028617", "0.70168644", "0.68952155", "0.6848...
0.7081413
16
Method returns a list of vertices of the graph. The order of the vertices in the list does not matter.
def EBww(YKHO) -> []: tIAR = [] for hkxX in YKHO.adj_list.keys(): tIAR.append(hkxX) return tIAR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBww(YKHO):\n hlel = []\n for H5ew in YKHO._graph.keys():\n hlel.append(H5ew)\n return hlel", "def EBww(YKHO) -> []:\n list = []\n for YRbF in range(0, YKHO.v_count):\n list.append(YRbF)\n return list", "def EBww(YKHO) -> []:\n iXlf = []\n for WKvO in range(len(YKHO.ad...
[ "0.8464972", "0.84011734", "0.8324201", "0.8289189", "0.8283565", "0.8230825", "0.8226855", "0.82103896", "0.8197898", "0.81873876", "0.8179362", "0.8179362", "0.8167244", "0.81416804", "0.81416804", "0.81416804", "0.81416804", "0.81416804", "0.8141352", "0.80873847", "0.8087...
0.8493709
0
Method returns the number of connected components in the graph.
def nSuV(YKHO) -> int: WBdH = 0 v9CE = {} T5hu = [] d6pt = 0 ZVgY = YKHO.get_vertices() while d6pt < len(YKHO.get_vertices()): if ZVgY[d6pt] not in v9CE.keys(): T5hu.append(ZVgY[d6pt]) while len(T5hu) is not 0: BWXx = T5hu[0] T5hu.r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CBFI(YKHO):\n try:\n if not jHsn.is_directed(YKHO.g):\n BlLA = jHsn.number_connected_components(YKHO.g)\n return BlLA\n else:\n raise YMBX('SNA_DIRECTED_GRAPH_CANT_FIND_CONNECTED_COMPONENT')\n except YMBX:\n return 'SNA_DIRECTED_GRAPH_CANT_FIND_CONNEC...
[ "0.83223677", "0.8110956", "0.7993582", "0.79020405", "0.78487355", "0.7782388", "0.77051264", "0.76639235", "0.7613854", "0.7602131", "0.74911666", "0.7436572", "0.7433179", "0.7419136", "0.738532", "0.7377155", "0.7358691", "0.7349887", "0.73127425", "0.73043424", "0.730429...
0.8254699
1
Test directly getting the flight data
def wya1(YKHO): Aofo = mVxc.objects.get_flight_data([22]) YKHO.assertIsNotNone(Aofo) YKHO.assertIsInstance(Aofo, FYrf.QuerySet) YKHO.assertEqual(Aofo.exists(), True) YKHO.assertEqual(Aofo.count(), 100)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TJSP(YKHO):\n YKHO.assertEqual(YKHO.airline_dummy.get_flights_to('Paris'), [YKHO.f4])\n YKHO.assertEqual(YKHO.airline_dummy.get_flights_to('NowhereLand'), [])", "def q8W3(YKHO):\n YKHO.assertEqual(YKHO.airline_dummy.get_flights_for(Qrp8(29, 11, 2016, '00:00')), [YKHO.f])\n YKHO.assertEqual(YKHO.a...
[ "0.7433665", "0.737755", "0.72841024", "0.6929446", "0.6806962", "0.6774913", "0.6757988", "0.6744058", "0.6736202", "0.6735874", "0.6726935", "0.6716942", "0.6711092", "0.6680647", "0.6679839", "0.66485304", "0.6627817", "0.6602199", "0.6596795", "0.65738404", "0.6548238", ...
0.69466245
3
Test directly getting the flight data with bad flight ids
def d63C(YKHO): Aofo = mVxc.objects.get_flight_data([1]) YKHO.assertIsNotNone(Aofo) YKHO.assertIsInstance(Aofo, FYrf.QuerySet) YKHO.assertEqual(Aofo.count(), 0) YKHO.assertEqual(Aofo.exists(), False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UuCq(YKHO):\n geh0 = YKHO.client.post(gxEw('timeseries_flight_values_json'), {'model_name': 'xgds_timeseries.TimeSeriesExample', 'flight_ids': [55, 42]})\n YKHO.assertEqual(geh0.status_code, 204)", "def q8W3(YKHO):\n YKHO.assertEqual(YKHO.airline_dummy.get_flights_for(Qrp8(29, 11, 2016, '00:00')), [...
[ "0.728309", "0.72211975", "0.71638125", "0.6984225", "0.6951382", "0.6834038", "0.6802695", "0.678598", "0.6779525", "0.6624647", "0.66056514", "0.6531828", "0.652537", "0.6515165", "0.6513771", "0.6503756", "0.6459285", "0.63768035", "0.6361422", "0.63118356", "0.63055974", ...
0.8043195
0
True if both Categoricals have the same names in any order, else False.
def ZxWl(YKHO, Elif): if set(YKHO.names) == set(Elif.names): NIuP = True else: NIuP = False return NIuP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x91F(YKHO):\n t3Zk = qZuN(title='Test1')\n NSyJ = qZuN(title='Test2')\n YKHO.assertNotEqual(t3Zk, NSyJ)", "def YP6b(YKHO, Crrw):\n g057 = True\n for YRbF in range(1, len(YKHO.indexes)):\n XB3u = YKHO.indexes[YRbF - 1]\n qqiJ = YKHO.indexes[YRbF]\n if not Crrw[XB3u] == Crrw...
[ "0.6733286", "0.6720634", "0.6478495", "0.6385316", "0.6354254", "0.6303752", "0.6294457", "0.6285803", "0.6212671", "0.6170509", "0.61538124", "0.6141852", "0.61397296", "0.61179787", "0.6111725", "0.60938084", "0.60744846", "0.60520834", "0.60383075", "0.6033577", "0.599985...
0.66995806
2
Returna serializable dictionary representation of this Transaction.
def OKI1(YKHO): ez8O = {'type': YKHO.type, 'timestamp': YKHO.timestamp, 'id': YKHO.id, 'amount': YKHO.amount} return ez8O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n return {'name': YKHO.name, 'transactions': [Kh6j.to_dict() for Kh6j in YKHO._transactions]}", "def MNRr(YKHO: SignAndSubmit) -> cuzp[str, ImMB]:\n z21l = super().to_dict()\n del z21l['transaction']\n z21l['tx_json'] = YKHO.transaction.to_dict()\n return z21l", "def MNRr(YKHO):\...
[ "0.83824676", "0.8114368", "0.80655414", "0.79663086", "0.7925435", "0.7905235", "0.78828675", "0.7858431", "0.78462183", "0.772037", "0.7650974", "0.7619494", "0.75874823", "0.75874823", "0.75794834", "0.75775766", "0.7559062", "0.7545861", "0.7542548", "0.75421464", "0.7537...
0.81446105
1
Initialize restaurant_name an cuisine_type atributes
def FIMM(YKHO, zqv0, N4Ku): YKHO.restaurant_name = zqv0 YKHO.cuisine_type = N4Ku YKHO.number_served = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n YKHO.cuisine_type = N4Ku", "def FIMM(YKHO, zqv0, N4Ku):\n YKHO.name = zqv0.title()\n YKHO.type = N4Ku", "def FIMM(YKHO, zqv0, N4Ku):\n YKHO.name = zqv0\n YKHO.type = N4Ku", "def FIMM(YKHO, zqv0, N4Ku):\n YKHO.name = zqv0\n YK...
[ "0.85597175", "0.8494543", "0.848946", "0.83483446", "0.83123463", "0.8305219", "0.8305219", "0.8305219", "0.8305219", "0.8305219", "0.8305219", "0.8305219", "0.8305219", "0.8117166", "0.81151575", "0.8071709", "0.80003554", "0.80003554", "0.7998642", "0.7952119", "0.7783687"...
0.7658166
28
Load JSON formatted malware features. It can handle both a path to JSON file and a dictionary object.
def AXOg(YKHO, wM3v): if isinstance(wM3v, str): YKHO.json_path = wM3v with open(wM3v, 'r') as izxF: try: YKHO.report = qQXR.load(izxF) except ValueError as error: G9jH.error('Could not load file; {} is not a valid JSON file.'.format(izxF)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc9H():\n pass", "def tyeH(ytgA, **B2fa):\n return GDMi(qQXR.load(ytgA, **B2fa))", "def UobL(gIsw):\n yk4I = '{todo:\"todovalue\"}'\n U5bT = oxDC(yk4I)\n return U5bT", "def lc9H(RCkU):\n assert Hy7s.path.isfile(RCkU)\n with open(RCkU, 'r') as eHNT:\n bVvr = qQXR.load(eHNT)\n ...
[ "0.7099192", "0.67399985", "0.6667321", "0.66638863", "0.6547324", "0.6536573", "0.6529095", "0.65239316", "0.65154916", "0.6497017", "0.6473546", "0.64577", "0.6453757", "0.6433918", "0.64240205", "0.64214915", "0.6418665", "0.64029735", "0.6365326", "0.63646096", "0.6363209...
0.6215323
42
Return the config from a yaml file as a dictionary. Create one file if not existing, using example file as template.
def tgzD(xzSM=None, O6YR='bot'): if xzSM is None: _eiy = pmON.abspath(pmON.join(Hy7s.sep, pmON.dirname(xAKo), pmON.pardir, 'config')) xzSM = pmON.join(_eiy, '{}.config.yaml'.format(O6YR)) iR56 = pmON.join(_eiy, '{}.example.yaml'.format(O6YR)) try: with open(xzSM, 'rb') as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uh4y(nUeQ):\n return eJb6.load(open(nUeQ, 'r'))", "def Dodi(Ux0P):\n hGN5 = xDSY.open(Ux0P, 'r').read()\n return QO7O(hGN5).get('flask', {})", "def LgIG(Ux0P: str) -> cuzp[str, ImMB]:\n CAYp = eJb6.full_load(open(Ux0P, 'r'))\n return CAYp", "def FdzL(SFUd, dict={}):\n if SFUd.is_file():...
[ "0.7538983", "0.7424977", "0.73992354", "0.7392659", "0.7367293", "0.73481476", "0.7339735", "0.73275775", "0.7323955", "0.7296721", "0.7274425", "0.72733635", "0.7185675", "0.71781", "0.7166318", "0.71639764", "0.7130121", "0.71252173", "0.7123921", "0.7115855", "0.71150094"...
0.735921
5
Push element x to the back of queue.
def _jXH(YKHO, WKvO: int) -> None: YKHO.queue.append(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()", "def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)...
[ "0.86276776", "0.8477201", "0.84134173", "0.8279876", "0.8259532", "0.82020503", "0.8194025", "0.8144203", "0.8144203", "0.81034017", "0.81000787", "0.80943763", "0.8051951", "0.8051951", "0.80363864", "0.8033451", "0.79938155", "0.79581255", "0.7948218", "0.7944059", "0.7899...
0.78164643
23
Removes the element from in front of queue and returns that element.
def BEuN(YKHO) -> int: Etfb = [] while len(YKHO.queue) != 1: Etfb.append(YKHO.queue.pop()) Ylbp = YKHO.queue.pop() while len(Etfb) != 0: YKHO.queue.append(Etfb.pop()) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()", "def BEuN(YKHO):\n if len(...
[ "0.8555208", "0.8329611", "0.8140209", "0.80353963", "0.7919512", "0.78877646", "0.78820795", "0.780196", "0.7797515", "0.77468395", "0.7714662", "0.77106297", "0.769962", "0.7668309", "0.7663384", "0.76621133", "0.7645503", "0.7644162", "0.76402825", "0.76348937", "0.7621676...
0.0
-1
Get the front element.
def T7C_(YKHO) -> int: Etfb = [] while len(YKHO.queue) != 1: Etfb.append(YKHO.queue.pop()) Ylbp = YKHO.queue[-1] while len(Etfb) != 0: YKHO.queue.append(Etfb.pop()) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return YKHO.frontelem.elem", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]", "def TA6u(YKHO):\n return YKHO.storage[0]", "def VnzS(YKHO):\n return YKHO.head", "def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]", "def qnv...
[ "0.87835056", "0.83788836", "0.82574433", "0.80897844", "0.8012526", "0.7981897", "0.786668", "0.783555", "0.7815892", "0.77942365", "0.7735508", "0.769147", "0.76801795", "0.76465446", "0.7630563", "0.75877416", "0.7572392", "0.75053453", "0.74844474", "0.74813557", "0.74660...
0.0
-1
QuerySet for all objects for a particular model (either an instance or a class).
def bWDH(YKHO, C3ST): lY0q = DDS9.objects.get_for_model(C3ST) umWR = YKHO.get_queryset().filter(content_type=lY0q) if isinstance(C3ST, FYrf.Model): umWR = umWR.filter(object_id=ILZP(C3ST._get_pk_val())) return umWR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def all(Emd4) -> 'QuerySet<Meta.Model>':\n return Emd4.Meta.model.objects.all()", "def pi1E(Emd4) -> ZYvt:\n return Emd4.objects.all()", "def pi1E(Emd4) -> ZYvt:\n return Emd4.objects.all()", "def lM31(YKHO):\n return YKHO.model.objects.all()", "def all(Emd4) -> ZYvt:\n return ZYvt(Emd4)", ...
[ "0.79514104", "0.7714122", "0.7714122", "0.7574546", "0.74841094", "0.7439052", "0.7439052", "0.7408178", "0.7363192", "0.7309933", "0.72969604", "0.72969604", "0.72835654", "0.72726494", "0.72726494", "0.72586846", "0.72019446", "0.71730834", "0.7139627", "0.71118903", "0.70...
0.75433433
4
QuerySet for all models for particular content_type.
def f1Sd(YKHO, m5r4): return YKHO.get_queryset().filter(content_type=m5r4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n return DDS9.objects.all()", "def bWDH(YKHO, C3ST, m5r4=None, qpDA=None):\n if m5r4 is None:\n m5r4 = DDS9.objects.get_for_model(C3ST)\n umWR = YKHO.get_queryset().filter(assoc__content_type=m5r4)\n umWR = umWR.filter(depth__gt=1)\n if qpDA is not None:\n umWR = umWR...
[ "0.7773347", "0.75471693", "0.7347403", "0.7347403", "0.7340523", "0.7332541", "0.72665507", "0.72665507", "0.71278435", "0.70362127", "0.69718826", "0.68794346", "0.68780905", "0.6869173", "0.6856385", "0.6856385", "0.6824099", "0.6780636", "0.6776367", "0.6776367", "0.67643...
0.78636414
0
A function that reverses every word in a string of words.
def jjqZ(l5Ny): V22M = l5Ny.split(' ') g68O = [GIN8[::-1] for GIN8 in V22M] yAmx = ' '.join(g68O) return yAmx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jjqZ(vIwR: str) -> str:\n return ' '.join(vIwR.split()[::-1])", "def uRmS(vIwR):\n Beie = [GIN8 for GIN8 in vIwR.split(' ') if GIN8 != '']\n return ' '.join(Beie[::-1])", "def jjqZ(n_L_: str) -> str:\n return ' '.join(n_L_.split()[::-1])", "def K95S(LI6e):\n vwCE = LI6e.split(' ')\n for...
[ "0.7784359", "0.76983905", "0.76434404", "0.75623447", "0.75522685", "0.74955344", "0.74553066", "0.7417706", "0.73863727", "0.7357601", "0.7347824", "0.7342416", "0.7323451", "0.73039633", "0.72900015", "0.7277105", "0.7258682", "0.72141916", "0.720714", "0.71953213", "0.717...
0.76642245
2
Parses a quoted (either double or single quotes) string.
def tw_2(mWFP): aejF = MHJH | xtve mIy_.append(R2R7(aejF)) mIy_.append(aejF.setResultsName(mWFP))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wZHk(YKHO):\n if not YKHO.__consume_repeated_chars('\"', count=3):\n YKHO.__error('string literal not begun with triple quote')\n fE52 = YKHO.__scanner.position\n u54L = 0\n while True:\n if u54L >= YKHO.__scanner.characters_remaining:\n YKHO.__error('string literal not ter...
[ "0.73221856", "0.70890844", "0.69715255", "0.68046844", "0.68046844", "0.675596", "0.66945297", "0.66188765", "0.6560067", "0.6456167", "0.64467937", "0.64217484", "0.63882875", "0.6386862", "0.63285315", "0.63257086", "0.6313881", "0.62583166", "0.62380946", "0.6236883", "0....
0.0
-1
3x3 convolution with padding
def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1): return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=ivFb, groups=moMn, bias=False, dilation=ivFb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())", "def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)", "def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,...
[ "0.78404945", "0.7541354", "0.753996", "0.7491138", "0.7434801", "0.74207747", "0.73415834", "0.7320252", "0.7299599", "0.7287539", "0.72799367", "0.72799367", "0.7257735", "0.7226928", "0.72204214", "0.7214909", "0.7214909", "0.7210775", "0.7198222", "0.71639067", "0.7161914...
0.70922214
62
Constructs a ResNet18 model.
def J03w(mL4f=False, Eb4t=True, **B2fa): return CLgi('resnet18', em1m, [2, 2, 2, 2], mL4f, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v19q(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet18']))\n return C3ST", "def qUH4(mL4f=True, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['res...
[ "0.78036934", "0.73894507", "0.7378036", "0.73664284", "0.7342958", "0.73350024", "0.7325735", "0.7325735", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.7303929", "0.729254", ...
0.0
-1
We should not be able to create a course run page without a parent course.
def Xopo(YKHO): L03z = KrF0(data={'title': 'My title', 'languages': ['en']}) YKHO.assertFalse(L03z.is_valid()) YKHO.assertEqual(L03z.errors, {'course': ['This field is required.']})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d7ED(YKHO):\n wbiw = RIV7()\n GyRB(' Not the root courses page', 'richie/single_column.html', 'en')\n CBIr = NqOl(is_staff=True, is_superuser=True)\n L03z = l5RW(data={'title': 'My title', 'organization': wbiw.id}, wizard_language='en', wizard_user=CBIr, wizard_page=wbiw.extended_object)\n YKHO....
[ "0.7214108", "0.6932132", "0.67327875", "0.64510006", "0.6416858", "0.6284244", "0.6265869", "0.62655896", "0.62140423", "0.62052166", "0.6183744", "0.61742", "0.61694515", "0.6168693", "0.61665744", "0.6130459", "0.6128789", "0.610427", "0.60987586", "0.60671115", "0.6019447...
0.75830495
0
Sets the bucket_hash of this DestinyItemComponent.
def KHO8(YKHO, KHO8): YKHO._bucket_hash = KHO8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZOpH(YKHO, ZOpH):\n YKHO._bucket_type_hash = ZOpH", "def FVO4(YKHO, FVO4):\n YKHO._item_hash = FVO4", "def FVO4(YKHO, FVO4):\n YKHO._item_hash = FVO4", "def cMrz(YKHO, cMrz):\n YKHO._bucket_id = cMrz", "def WE7e(YKHO, WE7e):\n YKHO._bucket = WE7e", "def set(YKHO, H5ew, wEf2):\n Nzyw...
[ "0.6870044", "0.6585842", "0.6585842", "0.652072", "0.64906", "0.62052774", "0.6099175", "0.608856", "0.6066895", "0.6060569", "0.5996638", "0.5989809", "0.59794784", "0.5960713", "0.5928339", "0.5928339", "0.5928339", "0.5928339", "0.58237827", "0.57322824", "0.5668507", "...
0.79758567
0
Sets the expiration_date of this DestinyItemComponent.
def ad72(YKHO, ad72): YKHO._expiration_date = ad72
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxEx(YKHO, bxEx):\n YKHO._expiration_date_time = bxEx", "def ad72(YKHO, ad72):\n if ad72 is None:\n raise ValueError('Invalid value for `expiration_date`, must not be `None`')\n YKHO._expiration_date = ad72", "def HRHI(YKHO, ad72=None):\n if ad72 is not None:\n YKHO.expiration_dat...
[ "0.75591624", "0.7404325", "0.73159313", "0.720867", "0.720867", "0.7116015", "0.69326866", "0.69326866", "0.6897067", "0.68869185", "0.6747306", "0.6569857", "0.6565144", "0.65647966", "0.65647966", "0.6548312", "0.6535147", "0.64085054", "0.64085054", "0.64085054", "0.64085...
0.82132334
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
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
Lease machines from the Machine Provider.
def ktqq(G4JS): G9jH.info('Sending batched lease_machines request') return Zxma.json_request('%s/_ah/api/machine_provider/v1/batched_lease' % ve0o.get_instance_url(), method='POST', payload=BfDw.to_json_encodable({'requests': G4JS}), scopes=B_y6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NmAV(QePW):\n return Zxma.json_request('%s/_ah/api/machine_provider/v1/lease' % ve0o.get_instance_url(), method='POST', payload=BfDw.to_json_encodable(QePW), scopes=B_y6)", "def eIXr(YKHO, eIXr):\n YKHO._machines = eIXr", "def JAZh(KYID, LGfw):\n iRUl = []\n aeeF = KYID.request_count\n for b...
[ "0.6715199", "0.5869223", "0.57580405", "0.5680158", "0.56187665", "0.5597776", "0.5480137", "0.5440544", "0.54381955", "0.54313797", "0.5361142", "0.5329372", "0.5291417", "0.5286551", "0.52524227", "0.52492815", "0.5192711", "0.5155841", "0.50993925", "0.50316083", "0.50244...
0.6209757
1
Constructs a new AIPlayer object.
def FIMM(YKHO, ZUyI, DUHT, XHb1): assert ZUyI == 'X' or ZUyI == 'O' assert DUHT == 'LEFT' or DUHT == 'RIGHT' or DUHT == 'RANDOM' assert XHb1 >= 0 mVZ4.__init__(YKHO, ZUyI) YKHO.tiebreak = DUHT YKHO.lookahead = XHb1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fwuD(Emd4, mWFP, *qIxc, **B2fa):\n if mWFP in Emd4.allPlayers.keys():\n return Emd4.allPlayers[mWFP]\n oyg0 = super(N4F1, Emd4).__new__(Emd4)\n return oyg0", "def FIMM(YKHO, Iof_, bIwZ, gumV, PXMh='player1'):\n YKHO.IP = Iof_\n YKHO.port = bIwZ\n YKHO.default_name = PXMh\n YKHO.lo...
[ "0.6329614", "0.5846909", "0.5826312", "0.5725772", "0.57018834", "0.5683195", "0.55802363", "0.5536618", "0.5526728", "0.5525543", "0.5500714", "0.5456324", "0.5450833", "0.54429394", "0.54364836", "0.542447", "0.5418296", "0.54146665", "0.540906", "0.5377155", "0.5350075", ...
0.48859382
70
Gets or sets the compatibility mode (as defined by the KmlServerExtension.CompatibilityMode enumerator) for this service.
def m7zq(YKHO): return YKHO.CompatibilityMode(YKHO._get_prop_value(YKHO._COMPATIBILITY_MODE_KEY))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tuqy(YKHO):\n return SS0u(Uk2l(_e0h.serialboxSerializerGetMode, YKHO.__serializer))", "def Kfu_(YKHO):\n Tuqy = C5YH(YKHO.Constants.SystemType, YKHO.System.Mode)\n return Tuqy", "def XgPi(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'legacy_mode')", "def hRLm(YKHO):\n return YKHO._mode", ...
[ "0.5872499", "0.5789844", "0.57183295", "0.55213183", "0.54329324", "0.53883797", "0.5383095", "0.5380216", "0.53238344", "0.5278499", "0.5278499", "0.52676445", "0.5222981", "0.52009946", "0.5197743", "0.5197743", "0.5197743", "0.5197743", "0.5197743", "0.5197743", "0.519774...
0.7841705
0
Gets or sets the link name for the KML service.
def aNnT(YKHO): return YKHO._get_prop_value(YKHO._LINK_NAME_KEY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aNnT(YKHO) -> str:\n return qe4Y.get(YKHO, 'link_name')", "def mWFP(YKHO):\n return YKHO._kml['name']", "def QZnA(YKHO):\n if YKHO._kml['Link'] is None:\n YKHO._kml['Link'] = PRV_()\n return YKHO._kml['Link']", "def QZnA(YKHO):\n if YKHO._kml['Link'] is None:\n YKHO._kml['Lin...
[ "0.7273856", "0.67607015", "0.6559224", "0.6559224", "0.63963264", "0.60944664", "0.60710126", "0.5951001", "0.5865898", "0.5850869", "0.58470505", "0.58452046", "0.58452046", "0.58452046", "0.5819013", "0.58056897", "0.5800448", "0.5800448", "0.5800448", "0.5800448", "0.5789...
0.72676754
1
Gets or sets the link name for the KML service.
def QiKJ(YKHO): return YKHO._get_prop_value(YKHO._LINK_DESCRIPTION_KEY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aNnT(YKHO) -> str:\n return qe4Y.get(YKHO, 'link_name')", "def aNnT(YKHO):\n return YKHO._get_prop_value(YKHO._LINK_NAME_KEY)", "def mWFP(YKHO):\n return YKHO._kml['name']", "def QZnA(YKHO):\n if YKHO._kml['Link'] is None:\n YKHO._kml['Link'] = PRV_()\n return YKHO._kml['Link']", ...
[ "0.7273856", "0.72676754", "0.67607015", "0.6559224", "0.6559224", "0.63963264", "0.60944664", "0.60710126", "0.5951001", "0.5865898", "0.5850869", "0.58470505", "0.58452046", "0.58452046", "0.58452046", "0.5819013", "0.58056897", "0.5800448", "0.5800448", "0.5800448", "0.580...
0.0
-1
Gets or sets the minimum refresh period for the service. The minimum refresh period is the time wherein repeated requests for refresh from a client will be ignored.
def JlVp(YKHO): return YKHO._get_prop_value(YKHO._MIN_REFRESH_PERIOD_KEY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rB7E(YKHO) -> h8nf[float]:\n return YKHO._refresh_interval", "def mx_z(YKHO):\n return YKHO._min_service_pk_period", "def mx_z(YKHO, mx_z):\n YKHO._min_service_pk_period = mx_z", "def bP8J(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('MinimumRate')\n return YKHO._MinimumRate", "de...
[ "0.6225867", "0.62191075", "0.6054687", "0.5917751", "0.58821017", "0.5780579", "0.5628115", "0.5616372", "0.55451727", "0.546341", "0.54596764", "0.54414874", "0.5427812", "0.54103637", "0.5398635", "0.53738004", "0.5333174", "0.5333174", "0.5333174", "0.5333174", "0.5321215...
0.8280616
0
Gets or sets a value indicating whether or not to use the NetworkLinkControl tag. NetworkLinkControl allows server side control of client data requests.
def aFMb(YKHO): return YKHO._get_prop_value(YKHO._USE_NETWORK_LINK_CONTROL_TAG_KEY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVVj(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'network')", "def ET9T(YKHO) -> h8nf[qe4Y.Input['WebServerNetworkAccessControlArgs']]:\n return qe4Y.get(YKHO, 'web_server_network_access_control')", "def eVVj(YKHO) -> bool:\n return qe4Y.get(YKHO, 'network')", "def MhJR(YKHO):\n return bool(...
[ "0.58906007", "0.5846528", "0.5800781", "0.569253", "0.5660727", "0.5660727", "0.55760175", "0.54412836", "0.5414361", "0.5380502", "0.5312885", "0.5247452", "0.5198278", "0.5198278", "0.51966256", "0.517105", "0.51654315", "0.51168036", "0.5106948", "0.510573", "0.50827307",...
0.85582346
0
Returns True if all the required variables are contained in the forecast.
def G2jx(w3_3, Es0b): return all((Ty9i in w3_3 for Ty9i in Es0b.required_variables()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lZCI(YKHO):\n return bool(YKHO.names)", "def Fd4y(YKHO):\n for YRbF in range(9):\n for r845 in range(9):\n if YKHO.variables[YRbF][r845].value == 0:\n return False\n return True", "def lNWK(Emd4, QVeo: Union[TimeSeriesBlock, Dict[str, Any]]) -> bool:\n return Em...
[ "0.6769801", "0.64013547", "0.6370298", "0.6288989", "0.61707807", "0.6062287", "0.60271084", "0.6015605", "0.60122514", "0.601098", "0.59955454", "0.5979006", "0.59772676", "0.5968236", "0.59442097", "0.59386784", "0.5932783", "0.59157676", "0.5913663", "0.5912214", "0.59095...
0.7141854
0
Looks up a key, k, in lookup table, lut. If the key isn't found directly we try aliasing and removing whitespace. Returns the key that was used and the corresponding value in lut.
def ccBJ(G1Hx, R_ya, LIAQ=None): G1Hx = G1Hx.lower() if G1Hx in R_ya: return (G1Hx, R_ya[G1Hx]) G1Hx = DkMS(G1Hx, LIAQ) if G1Hx in R_ya: return (G1Hx, R_ya[G1Hx]) G1Hx = DkMS(ZbWC.sub('[_\\W]', '', G1Hx), LIAQ) if G1Hx in R_ya: return (G1Hx, R_ya[G1Hx]) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hBYE(nPrm, R_ya):\n if nPrm.dtype.kind not in ('i', 'u'):\n nPrm = nPrm.astype(int)\n return oyIN.take(R_ya, nPrm, axis=0, mode='clip')", "def vHQr(H5ew):\n tyNF = {'space': ' ', 'period': '.', 'comma': ',', 'colon': ':', 'dead_tilde': '~', 'dead_acute': '´', 'apostrophe': \"''\", 'dead_grave...
[ "0.5790212", "0.57640773", "0.5744858", "0.5726868", "0.5725066", "0.55551904", "0.55551904", "0.55551904", "0.55551904", "0.55551904", "0.55551904", "0.54593223", "0.5367778", "0.5339623", "0.52743196", "0.51701546", "0.5080941", "0.5075543", "0.50597817", "0.5042182", "0.50...
0.8672332
0
Decorates a function such that an exception is raised if the arg at index1 or index2 is not a matrix or if they to not have the same dimensions, and otherwise executes the function as usual.
def inPm(oZf4, YBiN): def mrMx(JfyU): @xBlr.wraps(JfyU) def xv2J(*qIxc): gpRq, MxXY = PLLA(qIxc[oZf4]) E43s, cWFu = PLLA(qIxc[YBiN]) if gpRq != E43s or MxXY != cWFu: tO9_ = 'Matrices must have same dimensions. Matrix 1 is %d x %d, but matrix 2 is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r1OK(oZf4, YBiN):\n\n def mrMx(JfyU):\n\n @xBlr.wraps(JfyU)\n def xv2J(*qIxc):\n gpRq, MxXY = PLLA(qIxc[oZf4])\n E43s, cWFu = PLLA(qIxc[YBiN])\n if MxXY != E43s:\n tO9_ = 'Matrices are not size-compatible. Matrix 1 has %s column(s), but matrix 2 ...
[ "0.77715576", "0.7027308", "0.5843708", "0.56774133", "0.5638364", "0.55978954", "0.5587468", "0.55462074", "0.5535616", "0.5494231", "0.5465967", "0.54551643", "0.5392403", "0.5392386", "0.53762436", "0.53567946", "0.53492576", "0.53492576", "0.53492576", "0.53492576", "0.53...
0.73027086
1
Decorates a function such that an exception is raised if the matrix arg at any of the supplied indices is not a matrix, and otherwise executes the function as usual.
def sciX(*v8w0): def mrMx(JfyU): @xBlr.wraps(JfyU) def xv2J(*qIxc): for fD9Y in v8w0: jzdc = qIxc[fD9Y] if not vsH2(jzdc): raise Htj4('Arg is not a matrix: %s' % repr(jzdc)) return JfyU(*qIxc) return xv2J retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r1OK(oZf4, YBiN):\n\n def mrMx(JfyU):\n\n @xBlr.wraps(JfyU)\n def xv2J(*qIxc):\n gpRq, MxXY = PLLA(qIxc[oZf4])\n E43s, cWFu = PLLA(qIxc[YBiN])\n if MxXY != E43s:\n tO9_ = 'Matrices are not size-compatible. Matrix 1 has %s column(s), but matrix 2 ...
[ "0.69421285", "0.6153648", "0.58751845", "0.58636075", "0.5787627", "0.57874286", "0.57150596", "0.5688114", "0.5685948", "0.5575633", "0.5560588", "0.54839915", "0.5469497", "0.5417195", "0.5389045", "0.5358583", "0.53314644", "0.5251508", "0.5250533", "0.52478844", "0.52443...
0.79113823
0
Calculates the dimensions of the given matrix, returning a pair consisting of the number of rows and the number of columns, raising an exception if any of the rows of the matrix have a different number of elements. >>> matrix_dimensions([]) (0, 0) >>> matrix_dimensions([[1,2,3]]) (1, 3) >>> matrix_dimensions([[1], [2],...
def PLLA(fHeP): r8hN = len(fHeP) if r8hN == 0: return (0, 0) exwG = len(fHeP[0]) for YRbF, rdlD in enumerate(fHeP): vC9B = len(rdlD) if exwG != vC9B: tO9_ = 'Matrix has rows of different length: row 0 has %d element(s) and row %d has %d element(s).' % (exwG, YRbF, vC9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oLuk(mWFP, SppC):\n try:\n usx6, WfCS = SppC.shape\n return (usx6, WfCS)\n except (AttributeError, TypeError):\n tmGe(mWFP)", "def BKhN(SppC):\n usx6 = len(SppC)\n if usx6 == 0:\n return [0, 0]\n WfCS = len(SppC[0])\n return [usx6, WfCS]", "def hv8s(k0lF):\n ...
[ "0.7672858", "0.76167285", "0.7407145", "0.7308994", "0.7083389", "0.706905", "0.6926241", "0.68786335", "0.68541116", "0.68309647", "0.6789572", "0.6756259", "0.67450184", "0.6691477", "0.6690832", "0.6632401", "0.65707535", "0.6570112", "0.65621024", "0.6526335", "0.6436895...
0.77650106
0
Determine whether the given matrix is a square matrix, with the same number of rows and columns. >>> matrix_is_square([]) True >>> matrix_is_square([[]]) False >>> matrix_is_square([[1,1], [2,2], [3,3]]) False >>> matrix_is_square([[1,2,3], [4,5,6], [7,8,9]]) True >>> matrix_is_square([[1], [1,2]])
def iLKf(fHeP): r8hN, exwG = PLLA(fHeP) return r8hN == exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XACd(khtY):\n vb7U = oyIN.array(khtY)\n ROpF = vb7U.shape\n return len(ROpF) == 2 and ROpF[0] == ROpF[1]", "def stdS():\n vb7U = oyIN.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])\n oyIN.testing.assert_equal(nap9(vb7U), True)", "def stdS():\n vb7U = oyIN.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]...
[ "0.7719933", "0.76317334", "0.76317334", "0.72593904", "0.7197387", "0.71460944", "0.70506525", "0.70243555", "0.70243555", "0.68520063", "0.6652484", "0.6625305", "0.6623675", "0.6592265", "0.6529827", "0.6510598", "0.6469784", "0.64647627", "0.6409418", "0.6399977", "0.6384...
0.8362665
0
Determine whether the given matrix is a diagonal matrix i.e., a square matrix with all nondiagonal entries equal to 0. >>> matrix_is_diagonal([]) True >>> matrix_is_diagonal([[0]]) True >>> matrix_is_diagonal([[0, 0], [0, 0], [0, 0]]) False >>> matrix_is_diagonal([[1, 0], [0, 2]]) True >>> matrix_is_diagonal([[1, 0], [...
def Pu5w(fHeP): if not iLKf(fHeP): return False for YRbF, rdlD in enumerate(fHeP): for r845, LihS in enumerate(rdlD): if YRbF != r845 and LihS != 0: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cUPz(E3D9):\n return oyIN.all(E3D9 == oyIN.diag(oyIN.diagonal(E3D9)))", "def jZwK(khtY):\n vb7U = oyIN.array(khtY)\n ROpF = vb7U.shape\n return len(ROpF) == 2 and ROpF[0] == 1", "def KAm0(YKHO, *qIxc):\n return gQS9.matrix_is_diagonal(YKHO, *qIxc)", "def _Aci(YKHO, E3D9: np.ndarray) -> boo...
[ "0.76189023", "0.7495248", "0.74620855", "0.7401928", "0.7396521", "0.7390646", "0.7157334", "0.7123943", "0.7113216", "0.70084625", "0.6993189", "0.69771504", "0.69771504", "0.69771504", "0.69595075", "0.6950639", "0.6901674", "0.68159837", "0.6762285", "0.6746972", "0.67140...
0.8364302
0
Determine whether the given matrix is a scalar matrix i.e., a diagonal matrix with all diagonal entries equal to each other. >>> matrix_is_scalar([]) True >>> matrix_is_scalar([[2]]) True >>> matrix_is_scalar([[3, 0], [0, 3]]) True >>> matrix_is_scalar([[3, 0], [1, 3]]) False
def OYBq(fHeP): if not iLKf(fHeP): return False elif len(fHeP) == 0: return True ihtN = fHeP[0][0] for YRbF, rdlD in enumerate(fHeP): for r845, LihS in enumerate(rdlD): if YRbF != r845 and LihS != 0 or (YRbF == r845 and LihS != ihtN): return False ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vj_1(YKHO):\n return list(YKHO.tensor.size()) == [1]", "def OjXW(Htse):\n return oyIN.prod(PWgb(Htse)) == 1", "def OjXW(EcVT) -> bool:\n return oyIN.issubdtype(type(EcVT), oyIN.number) or (ZylS.is_tensor(EcVT) and EcVT.shape == () and oyIN.issubdtype(type(EcVT.numpy()), oyIN.number))", "def X0q_...
[ "0.7103898", "0.70093775", "0.687669", "0.6732764", "0.6690166", "0.6657201", "0.6604577", "0.6548434", "0.6524546", "0.6485014", "0.63913935", "0.6374891", "0.6360606", "0.63348323", "0.6331401", "0.62847203", "0.6253925", "0.625311", "0.62373435", "0.6183867", "0.6181033", ...
0.8310259
0
Determine whether the given matrix is symmetric i.e., whether it is equal to its own transpose. >>> matrix_is_symmetric([[1, 0], [0, 1]]) True >>> matrix_is_symmetric([[0, 1], [1, 0]]) True >>> matrix_is_symmetric([[1, 2], [2, 0]]) True >>> matrix_is_symmetric([[1, 2], [1, 2]]) False >>> matrix_is_symmetric([[1, 3, 2],...
def CFDf(fHeP): return ebKv(fHeP, H2DR(fHeP))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xrBE(E3D9) -> bool:\n if KN5h(E3D9):\n return bgpN(E3D9, E3D9.T)\n else:\n return oyIN.allclose(E3D9, E3D9.T, 1e-06, 1e-06, equal_nan=True)", "def _Fwn(YKHO):\n if YKHO.matrix.array.compression == Xj7m.diagonal.moniker or YKHO.matrix.array.symmetry in (Xj7m.symmetryUpperToken, Xj7m.sym...
[ "0.822418", "0.8062364", "0.8060495", "0.79757005", "0.7928126", "0.7928126", "0.77109534", "0.7706104", "0.76776797", "0.7646597", "0.7608899", "0.75905174", "0.7417562", "0.7342373", "0.732209", "0.7158569", "0.7103366", "0.6937585", "0.6920368", "0.69068885", "0.68893325",...
0.8701327
0
Subtract the second matrix from the first, both of which must have the same number of rows and columns. >>> matrix_minus([[3, 4], [1, 2]], [[1, 1], [1, 1]]) [[2, 3], [0, 1]] >>> matrix_minus([[1,2]], [[3, 4]]), matrix_minus([[1,2]], [[3, 4]])[0] == vector_minus([1,2], [3,4]) ([[2, 2]], True) >>> matrix_minus([[1]], [[1...
def GawL(fHeP, RRSr): return K7hM(fHeP, RRSr, seET.sub)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tFba(YrCa, vAne):\n return XTiz.subtract(YrCa, vAne)", "def vAfp(gpRq, E43s):\n if not gpRq:\n vb7U = []\n return vb7U\n if len(gpRq) != len(E43s) or len(gpRq[0]) != len(E43s[0]):\n return 'Only matrices of the same size can be subtracted'\n else:\n vb7U = SppC(len(gpR...
[ "0.84919286", "0.76758546", "0.73708194", "0.7342529", "0.71848387", "0.7129099", "0.7075147", "0.703923", "0.68838197", "0.68675005", "0.6764363", "0.66516334", "0.6631694", "0.65162075", "0.65116245", "0.6498697", "0.6490364", "0.6482803", "0.64118576", "0.6401585", "0.6377...
0.7577257
2
Generate the transpose of the given m x n matrix, which is the n x m matrix with where each (i,j) element of the original matrix is the (j,i) element of the new matrix. >>> matrix_transpose([[1, 2], [3, 4], [5, 6]]) [[1, 3, 5], [2, 4, 6]] >>> matrix_transpose([]) [] >>> matrix_transpose([[]]) [] >>> matrix_transpose([[...
def H2DR(fHeP): r8hN, exwG = PLLA(fHeP) Z9rn = [[None] * r8hN for YRbF in range(exwG)] for YRbF in range(r8hN): for r845 in range(exwG): Z9rn[r845][YRbF] = fHeP[YRbF][r845] return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2DR(SppC):\n usx6 = len(SppC)\n ZLJ_ = len(SppC[0])\n l7uB = []\n for iVRZ in range(ZLJ_):\n Q9wQ = []\n for rdlD in range(usx6):\n Q9wQ.append(SppC[rdlD][iVRZ])\n l7uB.append(Q9wQ)\n return l7uB", "def V0t9(SppC):\n dIVP = len(SppC[0])\n Dmgy = len(SppC)...
[ "0.8416428", "0.8283837", "0.8169507", "0.8083259", "0.7983639", "0.79012966", "0.78927726", "0.7858704", "0.78469336", "0.7688984", "0.7636699", "0.75851184", "0.75745857", "0.75739", "0.75739", "0.7545079", "0.7538471", "0.7538471", "0.74963164", "0.74963164", "0.7458261", ...
0.74631095
20
Determine whether the two scalars are equal to accuracy of epsilon. >>> scalar_equal(0.9000000000000002, 0.9000000000000001) True >>> scalar_equal(1, 1) True >>> scalar_equal(1, 1.0) True >>> scalar_equal(1.0, 1.00000001) False
def fBoZ(j93S, Nqp_, SGf8=_hZ2): return abs(j93S - Nqp_) < SGf8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pIzM(k0lF, tjUW, _hZ2):\n if not isinstance(k0lF, (float, int)) or not isinstance(tjUW, (float, int)) or (not isinstance(_hZ2, (float, int))):\n raise Exception('support only scalar inputs')\n if abs(k0lF - tjUW) <= _hZ2:\n return True\n else:\n return False", "def InF8(jzdc, Fg...
[ "0.6746791", "0.6424304", "0.62693363", "0.62453645", "0.6127376", "0.6030388", "0.60102195", "0.5962553", "0.589751", "0.5859329", "0.58585894", "0.5847228", "0.5840619", "0.58403534", "0.5805042", "0.5763215", "0.57515514", "0.5722644", "0.5717567", "0.57100374", "0.5663850...
0.7999244
0
Subtract the second vector from the first vector. >>> vector_minus([2], [3]) [5] >>> vector_minus([1,2,3], [2,3,4]) [1, 1, 1]
def vEJa(P6bq, Ty9i): return kNoP(P6bq, Ty9i, seET.sub)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w82r(BZrQ, OhjO):\n _wyk(BZrQ, OhjO)\n return [BZrQ[YRbF] - OhjO[YRbF] for YRbF in range(len(BZrQ))]", "def w82r(hQHm, jlSq):\n if ROpF(hQHm) != ROpF(jlSq):\n raise Rhzo('You cannot subtract two vectors that are not the same length!')\n yJOC = [hQHm[WKvO] - jlSq[WKvO] for WKvO in range(len...
[ "0.8107234", "0.79338515", "0.79072", "0.78655684", "0.77652466", "0.7749725", "0.7671612", "0.7552761", "0.7552761", "0.75050545", "0.7486976", "0.7485679", "0.7483031", "0.7476068", "0.7436684", "0.7420276", "0.7414634", "0.7411604", "0.74077106", "0.7397309", "0.73762167",...
0.7869684
3
Calculate the distance between the two vectors, which is defined to be the norm of the difference between the vectors. >>> vector_distance([sqrt(2), 1, 1], [0, 2, 2]) 2.0 >>> vector_distance([0,1], [1,0]) 1.4142135623730951 >>> vector_distance([1,2], [3,1]) 4.123105625617661
def Re27(P6bq, Ty9i): return u5Ow(vEJa(P6bq, Ty9i))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Re27(jzdc, Fg_i):\n jzdc = oyIN.array(jzdc)\n Fg_i = oyIN.array(Fg_i)\n return oyIN.linalg.norm(jzdc - Fg_i)", "def ycqS(hQHm, jlSq):\n return oyIN.linalg.norm([YRbF - r845 for YRbF in hQHm for r845 in jlSq])", "def Ayfi(OqEA, Yetk):\n assert OqEA.shape == Yetk.shape, 'Vectors must have equa...
[ "0.84200364", "0.82900155", "0.82028353", "0.8151122", "0.8073723", "0.80732745", "0.7995546", "0.7986542", "0.7947097", "0.78091836", "0.7702027", "0.7641445", "0.7630324", "0.7617155", "0.7590708", "0.75720364", "0.75720364", "0.7560409", "0.7553631", "0.7553607", "0.749560...
0.77997434
10
Determine whether arg is a vector type (list or tuple).
def dYXs(P6bq): return isinstance(P6bq, (list, tuple))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nWTm(iArr):\n return isinstance(iArr, (list, oyIN.ndarray))", "def Auqn(YKHO, Ty9i):\n if not isinstance(Ty9i, list):\n return False\n return True", "def Auqn(input):\n return type(input) == hG8p", "def Auqn(jzdc: Union[_Vector, Any]) -> bool:\n return getattr(jzdc, '__vector__', Fa...
[ "0.78766596", "0.7875887", "0.77792263", "0.7483487", "0.7475847", "0.7426783", "0.70368266", "0.70162785", "0.69085956", "0.69053316", "0.68191403", "0.67833453", "0.6754717", "0.6748357", "0.6710745", "0.6577133", "0.6565552", "0.6539485", "0.6464563", "0.6445855", "0.64214...
0.84971464
0
Check that the username exists
def Z3WL(YKHO, BWXx): qzC2 = [P6bq.strip() for P6bq in BWXx.split(',')] CBIr = None T8iB = [] cqvs = [] for NtEF in qzC2: try: CBIr = mv1M.objects.get(username=NtEF) except mv1M.DoesNotExist: T8iB.append(NtEF) else: if not CBIr.is_active: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V7zm(NtEF):\n with gCuF(warn_only=True):\n return 'o such user' not in iXC1('id %s' % NtEF)", "def ulhh(YKHO, NtEF: str) -> bool:\n pass", "def LCZz(NtEF):\n DW23 = mv1M.DB.Table(P4t4.config['USERS'])\n geh0 = DW23.get_item(Key={'username': NtEF}, AttributesToGet=['username'])\n if ge...
[ "0.83693045", "0.8245625", "0.82246876", "0.81663483", "0.8165433", "0.8137735", "0.809844", "0.80947834", "0.8055291", "0.80518866", "0.8027854", "0.80178136", "0.80116946", "0.8011283", "0.79854906", "0.7982148", "0.7982148", "0.7924559", "0.79116917", "0.78943515", "0.7876...
0.0
-1
Gaussian kernel numpy array with given sigma and shape. The shape argument defaults to ceil(6sigma).
def IAWS(WTkW=0.5, ROpF=None): WTkW = max(abs(WTkW), 1e-10) if ROpF is None: ROpF = max(int(6 * WTkW + 0.5), 1) if not isinstance(ROpF, tuple): ROpF = (ROpF, ROpF) WKvO = oyIN.arange(-(ROpF[0] - 1) / 2.0, (ROpF[0] - 1) / 2.0 + 1e-08) LVAh = oyIN.arange(-(ROpF[1] - 1) / 2.0, (ROpF[1] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K7iO(ROpF=(3, 3), WTkW=0.5):\n r8hN, exwG = [(KG9w - 1.0) / 2.0 for KG9w in ROpF]\n LVAh, WKvO = oyIN.ogrid[-r8hN:r8hN + 1, -exwG:exwG + 1]\n MKlR = oyIN.exp(-(WKvO * WKvO + LVAh * LVAh) / (2.0 * WTkW * WTkW))\n MKlR[MKlR < oyIN.finfo(MKlR.dtype).eps * MKlR.max()] = 0\n MjEv = MKlR.sum()\n if...
[ "0.77482885", "0.74897397", "0.7469299", "0.7463669", "0.7307789", "0.7305782", "0.71777946", "0.70999295", "0.7097787", "0.7051997", "0.70169103", "0.70045877", "0.6984042", "0.69347286", "0.6919054", "0.68746185", "0.6868299", "0.68669236", "0.6865297", "0.6864193", "0.6856...
0.73289365
4
remove key values pairs where value is null, elastic cannot index these
def hnjQ(YKHO, pB3N): Kyn4 = dict(((H5ew, BWXx) for H5ew, BWXx in pB3N.items() if BWXx)) return Kyn4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WQvl(DmbV):\n ycBG = []\n for H5ew, BWXx in DmbV.items():\n if BWXx == None:\n ycBG.append(H5ew)\n for H5ew in ycBG:\n del DmbV[H5ew]\n return DmbV", "def xnx3(tbx9):\n return {G1Hx: Ty9i for G1Hx, Ty9i in list(tbx9.items()) if Ty9i is not None}", "def iNs_(Csk6: dic...
[ "0.6909492", "0.68874764", "0.6832706", "0.6808597", "0.6766248", "0.67354655", "0.6712303", "0.67055404", "0.6698024", "0.6697737", "0.66944", "0.6657121", "0.66558397", "0.6616109", "0.6616109", "0.6608293", "0.66067165", "0.659708", "0.6583899", "0.65366966", "0.6530355", ...
0.68367016
2
Function for calculating overlap and nonoverlap between two sets of boxes on a grid
def AbXo(YKHO, ANfV, mxlQ): FCxX = 0 if len(ANfV) > 0: ANfV, J2L8 = YKHO.removeOverlap(ANfV, []) FCxX = YKHO.getTotalArea(ANfV) v55A = 0 if len(mxlQ) > 0: mxlQ, CEqG = YKHO.removeOverlap(mxlQ, []) v55A = YKHO.getTotalArea(mxlQ) a1PO, WbLz = YKHO.removeOverlap(ANfV, mx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I7Mo(wGB6, QFOH):\n bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1])\n Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1])\n PZIW = ht2j.zeros((wGB6.shape[0], QFOH.shape[0])).to(wGB6.device)\n for YRbF in range(PZIW.shape[1]):\n IkxF = QFOH[YRbF]\n PZIW[:, YRbF] =...
[ "0.79262376", "0.77970517", "0.77774554", "0.7714747", "0.76867753", "0.7669246", "0.7669246", "0.7669246", "0.7669246", "0.7669246", "0.7669246", "0.7669246", "0.7669246", "0.7604002", "0.7578609", "0.739875", "0.73349035", "0.7215054", "0.7205902", "0.7193117", "0.7123294",...
0.0
-1
Function to take a box and reduce it to two new boxes that do not overlap with another given box. Also returns the area where the two given boxes overlapped.
def ITQk(YKHO, aC0l, BdN0, M_DK, Utsk): knvf = [] IkxF = [] if M_DK[0:4] == [1, 0, 0, 1]: IkxF = [[BdN0[0][0], aC0l[1][1]], BdN0[1].copy()] BdN0[1][1] = aC0l[1][1] elif M_DK[0:4] == [0, 1, 0, 1]: IkxF = [[BdN0[0][0], aC0l[1][1]], BdN0[1].copy()] BdN0[1][1] = aC0l[1][1] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yHH9(knvf, IkxF):\n yEOf = max(knvf[0] + knvf[2], IkxF[0] + IkxF[2])\n WcFg = min(knvf[0], IkxF[0])\n TVTK = knvf[2] + IkxF[2] - (yEOf - WcFg)\n MIMK = max(knvf[1] + knvf[3], IkxF[1] + IkxF[3])\n N5og = min(knvf[1], IkxF[1])\n H2v2 = knvf[3] + IkxF[3] - (MIMK - N5og)\n if TVTK <= 0 or H2v2...
[ "0.73342305", "0.73342305", "0.73210824", "0.72239786", "0.7176935", "0.70509744", "0.7019781", "0.69346964", "0.6892992", "0.68463224", "0.6842207", "0.6804738", "0.6789871", "0.67867327", "0.67775553", "0.6759004", "0.6746762", "0.6738441", "0.672723", "0.6704903", "0.67003...
0.0
-1
Returns the entry's title, converted to plaintext if needed, or ``None`` if no title is found.
def yNhs(bTKY): try: return FAL3(bTKY['title_detail']) except KeyError: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Upwb(AIu6):\n return AIu6.get('title', None)", "def Ae9c(m8z6):\n return vxCV(m8z6['data']['title'])", "def ztCy(YKHO):\n return None", "def Upwb(YKHO):\n return YKHO.title.get_text()", "def Upwb(YKHO) -> h8nf[str]:\n return YKHO.title", "def Upwb(YKHO):\n return aP4s(YKHO._get_info...
[ "0.72188383", "0.6951082", "0.6886831", "0.68316096", "0.68297815", "0.68226594", "0.67912865", "0.67760885", "0.6771888", "0.6771888", "0.6771888", "0.6771888", "0.6771888", "0.67676806", "0.6762454", "0.6733799", "0.6709865", "0.66796166", "0.66665894", "0.66513187", "0.664...
0.783221
0
Generates random player id
def ocSy(YKHO, mWFP): return 'uid-{uid}'.format(uid=HBct.sha1(mWFP.encode('utf-8')).hexdigest()[:8])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kn3U(YKHO):\n return MAoM()", "def ZsIR():\n return str(kxTZ())", "def E0La():\n return 10000 * MfZA()", "def Kn3U():\n return tuKI.randint(999, 99999)", "def IiL8():\n return int(epAf.floor(tuKI.random() * 500001))", "def Kn3U():\n return ''.join(tuKI.choices(vIwR.ascii_uppercase +...
[ "0.7854337", "0.7629113", "0.7569117", "0.75275874", "0.7368669", "0.734586", "0.7332645", "0.724678", "0.7196966", "0.7118418", "0.70959556", "0.707818", "0.7064181", "0.7035114", "0.70324486", "0.69911027", "0.6986302", "0.69798356", "0.6973268", "0.6965841", "0.696448", ...
0.0
-1
Set whether tool is licensed to execute.
def ku2f(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def riqM(YKHO):\n pass", "def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True", "def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava...
[ "0.6934165", "0.6712352", "0.6709214", "0.6699145", "0.6699145", "0.6699145", "0.6699145", "0.66979116", "0.66979116", "0.66979116", "0.6694129", "0.6668929", "0.6662326", "0.64707255", "0.64440554", "0.63952094", "0.63952094", "0.63952094", "0.63952094", "0.63952094", "0.639...
0.6334155
78
Get all model params as a list.
def bnhr(YKHO, C3ST: T.Optional[nn.Module]=None) -> Kt_s.List[ht2j.tensor]: if C3ST is None: C3ST = YKHO.model NArs = [] for or8S, gEmA in enumerate(C3ST.layers): if isinstance(gEmA, bTJW): NArs.append(gEmA.mean) elif isinstance(gEmA, U78l.Conv2d): NArs.append...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def snJh(YKHO):\n return [xqoZ['name'] for xqoZ in YKHO.get_params()]", "def W6RH(YKHO):\n return []", "def W6RH(YKHO):\n return YKHO.model.get_params()", "def knYa(YKHO):\n PiL5 = []\n for bGrB, xqoZ in YKHO.state_dict().items():\n PiL5.append(xqoZ.reshape(-1).cpu().numpy())\n retur...
[ "0.7966658", "0.7877135", "0.78641", "0.7858243", "0.76666075", "0.7610265", "0.7581067", "0.75562173", "0.75562173", "0.75562173", "0.7554833", "0.75460243", "0.74795234", "0.747306", "0.745757", "0.7405442", "0.7386409", "0.7386409", "0.7379838", "0.73665875", "0.73665875",...
0.0
-1
Get a user by a given email
def TKWP(D3lj: str) -> h8nf[mv1M]: CBIr = mv1M.query.filter_by(email=D3lj).first() return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()", "def TKWP(Emd4, D3lj: str):\n for CBIr in Emd4.users:\n if CBIr.email == D3lj:\n return CBIr", "def CYTf(Emd4, D3lj):\n for hbFX in NCls.users:\n CBIr = NCls.users.get(hbFX)\n ...
[ "0.90193427", "0.8815214", "0.87980545", "0.8745048", "0.8674676", "0.85957086", "0.85957086", "0.85889405", "0.85524166", "0.8551847", "0.85435545", "0.85425025", "0.8536783", "0.85029984", "0.8500926", "0.84903437", "0.84847164", "0.84770197", "0.84770197", "0.84770197", "0...
0.79583395
69
Test the strategy fails with an invalid subcommand
def OjRB(YKHO): _vpE = [YKHO.strategy, 'foo'] YKHO._test_shell_bad_or_empty_args(shell_args=_vpE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SFcM(YKHO):\n _vpE = [YKHO.strategy]\n YKHO._test_shell_bad_or_empty_args(shell_args=_vpE)", "def i4ak(YKHO, *bGrB):\n with YKHO.assertRaises(Yn3K.CalledProcessError):\n J7hE(['bad', 'command'], 'fake contents')", "def raw3(YKHO, UtZ8):\n UtZ8.return_value = True\n with YKHO.assertRai...
[ "0.76062214", "0.75833505", "0.7542366", "0.74365264", "0.7405851", "0.73794484", "0.73162246", "0.7289074", "0.72404754", "0.72218895", "0.7214706", "0.7211274", "0.7168109", "0.716372", "0.71078885", "0.71058804", "0.7022903", "0.70116365", "0.6930674", "0.6897364", "0.6891...
0.8353286
0
Convert a list of rows of StockUser to dict
def LBO6(zZcM): global __attrListStockUser U5bT = {} YRbF = 0 for hkS8 in pecU: U5bT[hkS8] = zZcM[YRbF] YRbF += 1 return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zo60(rdlD: Row) -> cuzp[str, ImMB]:\n return dict(username=rdlD.username, email=rdlD.email, last_login=rdlD.last_login)", "def iXdm(YKHO, rdlD):\n id = 'usr-' + str(rdlD['_id'])\n dP7V = rdlD['nickname']\n Kb0M = rdlD['birthday']\n CBIr = {'user_id': id, 'nickname': dP7V, 'birthday': Kb0M}\n ...
[ "0.702495", "0.67951", "0.6626265", "0.64776886", "0.63996756", "0.6384791", "0.6312607", "0.6303154", "0.62757504", "0.6275281", "0.6250898", "0.6169469", "0.61369675", "0.6126379", "0.6090553", "0.6089902", "0.6032749", "0.60313725", "0.6027557", "0.59697205", "0.5911761", ...
0.73536134
0
Tests that the spectra are being rebinned correctly.
def pg5o(YKHO): T7Ob = 10 BO04 = _nn5.Spectra('Test', T7Ob) BO04._energy_bins = 1000 BO04._radial_bins = 1000 BO04._time_bins = 10 BO04.calc_widths() UdbC = BO04._energy_width cfQU = BO04._radial_width YrAi = BO04._time_width for WMj5 in range(T7Ob): VYvU = tuKI.uniform(B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pg5o(YKHO):\n T7Ob = 10\n lqQH = 'echidna/config/spectra_example.yml'\n GPtr = t3nf.load_from_file(lqQH)\n BO04 = _nn5.Spectra('Test', T7Ob, GPtr)\n UdbC = BO04.get_config().get_par('energy_mc').get_width()\n cfQU = BO04.get_config().get_par('radial_mc').get_width()\n HmxX = BO04.get_confi...
[ "0.8187223", "0.69260955", "0.67297924", "0.6417328", "0.62299335", "0.6221572", "0.61380583", "0.6089458", "0.6066453", "0.60270983", "0.600512", "0.59963816", "0.59802556", "0.59671235", "0.5954028", "0.59213567", "0.59130156", "0.5906204", "0.5876331", "0.58750135", "0.587...
0.8306723
0
Tests that the spectra are being copied correctly.
def SgNZ(YKHO): T7Ob = 10 BO04 = _nn5.Spectra('Test', T7Ob) BO04._energy_bins = 250 BO04._radial_bins = 500 BO04._time_bins = 2 BO04._energy_low = 1.0 BO04._energy_high = 11.0 BO04._radial_low = 100.0 BO04._radial_high = 10100.0 BO04._time_low = 1.0 BO04._time_high = 11.0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def voMW(YKHO):\n return 'spec' in YKHO.type", "def voMW(YKHO):\n return 'spec' in YKHO.type", "def U339():\n dXni = yfqw().with_metadata({'precursor_mz': 1.0}).build()\n _owh = rEep(dXni)\n _owh.set('testfield', 'test')\n assert not dXni.get('testfield'), 'Expected input spectrum to remain u...
[ "0.7392772", "0.7392772", "0.6691746", "0.63531494", "0.63353354", "0.6244421", "0.6222558", "0.6207563", "0.6198343", "0.616266", "0.6128374", "0.61235917", "0.612029", "0.61011344", "0.60986537", "0.6092117", "0.6064029", "0.5994637", "0.5989334", "0.59477514", "0.592884", ...
0.8154289
0
Convert list of pandas DataFrame object to dict of arrays.
def EdJy(YKHO, V2dA, uxrk=1e+300): for IKSE in V2dA: uxrk = min(len(IKSE), uxrk) nPrm = {H5ew: [] for H5ew in V2dA[0]} bo34.debug(f'Downsampling to {uxrk} samples per posterior.') YKHO.samples_per_posterior = uxrk for IKSE in V2dA: ycBG = IKSE.sample(YKHO.samples_per_posterior) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nsyE(fAIy, ZWCE=[]):\n RREW = {}\n if len(fAIy) == 1 and (not fAIy[0].name) and (not ZWCE):\n ZWCE = ['pandas']\n ILP8 = fAIy[0].index\n if ILP8.is_all_dates():\n RREW['index'] = oyIN.arange(len(ILP8))\n else:\n RREW['index'] = oyIN.array(ILP8)\n for YRbF, M0rp in enumera...
[ "0.71842766", "0.71142304", "0.6908672", "0.6819053", "0.65118885", "0.64701706", "0.64701706", "0.6210452", "0.6155458", "0.6073432", "0.60545754", "0.60545754", "0.6047586", "0.60422474", "0.60385734", "0.6036968", "0.60050166", "0.59829587", "0.5926947", "0.58769524", "0.5...
0.0
-1
This function appends a feature array as a new row to an existing CSV file. If no file exists, one is created.
def M2G7(bySB, p15c): RJWI = str(p15c + 'Data.csv') GChh = kJm3() oyIN.savetxt(GChh, bySB, fmt='%.08f', delimiter=',') AX0y = open(RJWI, 'a') AX0y.write(GChh.getvalue()) AX0y.flush() AX0y.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uher(Ux0P, rdlD):\n for WKvO in range(len(rdlD)):\n if isinstance(rdlD[WKvO], list):\n raise Exception('This function accepts only a single row as input.')\n Zpaj = yLtf(Ux0P)\n if len(Zpaj[0]) != len(rdlD):\n raise Exception('This row does not have the same number of entries ...
[ "0.7235528", "0.6823757", "0.6682735", "0.6620106", "0.6600438", "0.6579373", "0.6539551", "0.6450615", "0.64465547", "0.64465547", "0.63894", "0.63642484", "0.63495344", "0.6348702", "0.6336522", "0.6285591", "0.6284181", "0.6263741", "0.61750364", "0.6158559", "0.6007103", ...
0.6441353
10
Remove and return an item from the queue Works exactly like the default get() call but adds type annotations for the returned value.
def NMoC(YKHO, XkN1: bool=True, vYBr: float=None) -> j9y_: return super().get(XkN1, vYBr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def he0F(YKHO) -> object:\n if not YKHO.items:\n raise IndexError('Queue is empty, cannot dequeue item')\n return YKHO.items.pop(0)", "def kSdD(YKHO) -> Kt_s:\n if YKHO.is_empty():\n raise nKJm('The Queue must not be empty')\n else:\n YKHO._size -= 1\n return YKHO._items.p...
[ "0.7220312", "0.71747816", "0.7151355", "0.7108501", "0.70899624", "0.70142215", "0.6990946", "0.6989411", "0.69489276", "0.69489276", "0.6944735", "0.6910174", "0.69087124", "0.6905363", "0.68934566", "0.68828356", "0.6877047", "0.68507177", "0.6849293", "0.68326473", "0.681...
0.0
-1
This function creates Theta matrix from nonuniform observation matrix
def oj0w(YKHO, XNpa, EPCS): QjPM = oyIN.sum(XNpa, axis=0) U_v7 = oyIN.arange(QjPM.size) U_v7 = U_v7[QjPM == 1] ukXx = EPCS[U_v7, :] return ukXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XKS_(YKHO):\n Nq1b = YKHO.diam / YKHO.n\n cbhz = oyIN.array([[1, 0], [Nq1b, 1]], dtype=float)\n setattr(YKHO, 'TR_mat', cbhz)\n return cbhz", "def o7dS(r8hN):\n jQ3Z = rLdf.DataFrame()\n jQ3Z['a11'] = 0.0\n jQ3Z['a12'] = (r8hN['t12'] - r8hN['t21']) / 2.0\n jQ3Z['a13'] = (r8hN['t13'] -...
[ "0.60888195", "0.59708965", "0.5893932", "0.58542144", "0.56939155", "0.5658069", "0.56506455", "0.56227064", "0.5612216", "0.56034815", "0.5576577", "0.5568027", "0.5535825", "0.55279094", "0.5523035", "0.5519845", "0.5519845", "0.54713523", "0.5452708", "0.54424083", "0.542...
0.54942393
17
Test if department() with GET return rendered department.html
def chNp(YKHO): im04 = YKHO.app.get('/department') assert im04._status_code == 200 assert im04.content_type == 'text/html; charset=utf-8' assert 'department' in im04.data.decode('utf-8').lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgkw(QePW):\n wzkt = qcWV.now()\n if wzkt.month <= 6:\n lO87 = wzkt.year - 1\n else:\n lO87 = wzkt.year\n q_fT = QePW.session.get('unicode')\n if not q_fT:\n return vKnz('index:choose_university')\n return _1tc(QePW, 'studyguide/choose_department.html', {'departments': NO...
[ "0.7223281", "0.7045198", "0.6578687", "0.65118724", "0.6361488", "0.63596916", "0.63524234", "0.63462216", "0.6270024", "0.62250763", "0.61946315", "0.60526466", "0.6043561", "0.59930784", "0.5970862", "0.59470457", "0.5941982", "0.59313124", "0.5901426", "0.5872176", "0.587...
0.7243086
0
Test if department_course() return departmentcourse.html with unvalid department name
def V0w3(YKHO): im04 = YKHO.app.get('/dept/AAAA/') assert im04._status_code == 302 assert im04.content_type == 'text/html; charset=utf-8' nPrm = im04.data.decode('utf-8').lower() assert 'department' in nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ThrU(YKHO):\n im04 = YKHO.app.get('/dept/COMS/')\n assert im04._status_code == 200\n assert im04.content_type == 'text/html; charset=utf-8'\n nPrm = im04.data.decode('utf-8').lower()\n assert 'department-course' in nPrm\n assert 'coms' in nPrm", "def chNp(YKHO):\n im04 = YKHO.app.get('/d...
[ "0.6886672", "0.6668972", "0.6364865", "0.6009967", "0.5930141", "0.5799809", "0.56314564", "0.562246", "0.5615582", "0.56055224", "0.55507755", "0.5547256", "0.55163145", "0.5487211", "0.54703486", "0.54561627", "0.5448506", "0.5444492", "0.542723", "0.541446", "0.54046524",...
0.6860352
1
Start the application and run the reactor.
def dxNi(YKHO): zVa7.IService(YKHO.application).privilegedStartService() P4t4.startApplication(YKHO.application, not YKHO.config['no_save']) P4t4.startApplication(MDQF.TimerService(0.1, lambda: None), 0) YKHO.startReactor(None, YKHO.oldstdout, YKHO.oldstderr) RKD7.msg('Server Shut Down.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yKcO(YKHO):\n YKHO.reactor.process_forever()", "def Q9jy(YKHO):\n if YKHO.reactor is None:\n C4uX.install()\n from twisted.internet import reactor\n YKHO.reactor = reactor\n else:\n reactor = YKHO.reactor\n reactor.callWhenRunning(YKHO.whenRunning)\n YKHO.log.info('...
[ "0.79407954", "0.78990227", "0.74865514", "0.74006057", "0.7300371", "0.7287043", "0.7262898", "0.7262898", "0.72269505", "0.7179094", "0.71472853", "0.7103657", "0.7016151", "0.6962881", "0.6946688", "0.6946688", "0.6936968", "0.6892688", "0.6889432", "0.6870702", "0.6859109...
0.0
-1
Renders the home page.
def kZiy(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86085397", "0.85661966", "0.8562984", "0.84564984", "0.8353822", "0.8353445", "0.832796", "0.83265287", "0.83265287", "0.8311966", "0.83088946", "0.83046836", "0.8296962", "0.82942903", "0.82942903", "0.82872546", "0.8279762", "0.8279762", "0.8279762", "0.8279762", "0.8279...
0.8119764
70
Renders the home page.
def erK4(): NtEF = cuiw['username'] nPrm = JDP8.query.filter_by(username=NtEF).first() if cuiw.get('logged_in'): cuiw.pop('username') cuiw['logged_in'] = False nPrm.is_auth = 0 NCls.session.commit() c5ow = False oLi7() cuiw.clear() return vKnz(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86085397", "0.85661966", "0.8562984", "0.84564984", "0.8353822", "0.8353445", "0.832796", "0.83265287", "0.83265287", "0.8311966", "0.83088946", "0.83046836", "0.8296962", "0.82942903", "0.82942903", "0.82872546", "0.8279762", "0.8279762", "0.8279762", "0.8279762", "0.8279...
0.0
-1
Starts the video display.
def yKcO(YKHO): if not YKHO.stopped: return super().start() a17A, = YKHO.sources YKHO.subscriptions = [a17A.output.subscribe(YKHO.process_frame)] YKHO.start_time = ITS7.time() while not YKHO.stopped: if YKHO.duration != -1 and ITS7.time() > YKHO.start_time + YKHO.duration: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNp2():\n global _video\n if VNil is None:\n VNil = CdM5()\n VNil.start()", "def bwqM(YKHO):\n if YKHO.initialized:\n bGrB, YKHO.cap = YKHO.video.read()\n YKHO.first_frame = YKHO.cap.copy()\n YKHO.initialized = False\n YKHO.MainWindow.velocity.setEnabled(True)\n ...
[ "0.7801891", "0.7441353", "0.73986894", "0.7104857", "0.70353884", "0.70261467", "0.6793164", "0.6745361", "0.67262536", "0.6681496", "0.66490954", "0.65807426", "0.6557981", "0.6536376", "0.6509664", "0.64948076", "0.64943844", "0.6487731", "0.6485554", "0.6447797", "0.64181...
0.6938827
6
Gauss weights for 2 point Gauss quadrature Returns
def gPYU(): return oyIN.ones(2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xga3(WKvO, o4D3, ajwV, s1k6, xMw6, XOOk, pHXX):\n return XOOk * oyIN.exp(-0.5 * ((WKvO - o4D3) / s1k6) ** 2) + pHXX * oyIN.exp(-0.5 * ((WKvO - ajwV) / xMw6) ** 2)", "def wE9c(WKvO, LVAh, yGTL, XXgC):\n return oyIN.exp(-1.0 * (((WKvO - yGTL[0]) ** 2.0 + (LVAh - yGTL[1]) ** 2.0) / (2.0 * oyIN.sqrt(XXgC *...
[ "0.73908883", "0.7007167", "0.6963827", "0.6945546", "0.6808295", "0.67947155", "0.6791359", "0.67675", "0.6670252", "0.6661203", "0.6642865", "0.6631617", "0.6606465", "0.6573705", "0.65573084", "0.65558463", "0.64905566", "0.647995", "0.64784795", "0.6470392", "0.64661", ...
0.7614618
0
Gauss coordinates for 2 point Gauss quadrature Returns
def SHIO(): return oyIN.array([-1.0, 1.0]) / i_OX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ocx5(XP5J, EcVT, fuBA):\n k0lF, nJ9F, nxyw, KCHu, Fg_i, UqXK, rLcl = XP5J\n Mkmy = IdsO(EcVT, fuBA, k0lF, nJ9F, nxyw, KCHu, Fg_i, UqXK, rLcl)\n return Mkmy", "def liMP(WKvO, LVAh, aTqo, V0zD, zTvC, YtJp):\n return oyIN.exp(-(WKvO - aTqo) ** 2 / (2 * zTvC ** 2) + -(LVAh - V0zD) ** 2 / (2 * YtJp **...
[ "0.75976735", "0.7460534", "0.73729986", "0.7273982", "0.7209277", "0.71841943", "0.711381", "0.6991544", "0.6981514", "0.6921465", "0.6916327", "0.6893654", "0.6869889", "0.68214834", "0.6779717", "0.67627585", "0.6706705", "0.6667214", "0.66403675", "0.66289455", "0.6594422...
0.7261269
4
Return the absolute path to a temp file.
def NcQN(): return gbPf.mktemp('.h5')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ssVF() -> str:\n return f'{EL0N()}{Hy7s.sep}temp{Hy7s.sep}'", "def v6ph(YKHO):\n return YKHO.file.name", "def v6ph(YKHO):\n return YKHO.file.name", "def LqWw(YKHO, Ux0P):\n return Hy7s.path.join(qBl2, Ux0P)", "def _pmj(YKHO, gbPf):\n MZf5 = ''\n for pmON in YKHO.temp_path:\n if...
[ "0.82832485", "0.8194544", "0.8194544", "0.8154566", "0.81180114", "0.7994787", "0.7888542", "0.783327", "0.7815533", "0.77323425", "0.7705178", "0.7692023", "0.76689667", "0.7640407", "0.7630073", "0.7629327", "0.7614407", "0.76016545", "0.75945026", "0.75941294", "0.756399"...
0.7062415
59
The full name of the person associated with the address.
def mWFP(YKHO): return YKHO._dict.get('name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jeLr(YKHO):\n m3Nh = YKHO.getCustomer()\n if m3Nh is None:\n return ''\n UTX6 = rOBp(m3Nh).getInvoiceAddress()\n if UTX6 is None:\n return ''\n return UTX6.lastname + ' ' + UTX6.firstname", "def XcAe(YKHO):\n return '{}, {}, {}, @({}, {})'.format(YKHO.town, YKHO.county, YKHO.i...
[ "0.8012167", "0.7674967", "0.7510913", "0.75026697", "0.7495507", "0.7495305", "0.7489765", "0.7479801", "0.7476645", "0.74757326", "0.7474597", "0.74547225", "0.7450939", "0.7449816", "0.74363047", "0.74363047", "0.7428268", "0.7427852", "0.7420971", "0.7417955", "0.7403355"...
0.0
-1
The zip/postalcode of the address.
def zip(YKHO): return YKHO._dict.get('zip')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DD6W(YKHO):\n return YKHO._zipcode", "def jLqg(YKHO):\n return YKHO._zip_code", "def jLqg(YKHO):\n return YKHO._zip_code", "def jLqg(YKHO):\n return YKHO._zip_code", "def jLqg(YKHO: object) -> str:\n return YKHO.__zip_code", "def kAHQ(YKHO):\n return YKHO._postal_code", "def kAHQ(...
[ "0.84326744", "0.83228016", "0.83228016", "0.83228016", "0.81717294", "0.81063163", "0.81063163", "0.81063163", "0.81063163", "0.8096451", "0.8061911", "0.79812473", "0.7929827", "0.79183733", "0.78420836", "0.7685778", "0.7548052", "0.7523019", "0.7523019", "0.74881136", "0....
0.0
-1
The first name of the person associated with the address.
def c9ua(YKHO): return YKHO._dict.get('first_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c9ua(YKHO) -> str:\n return qe4Y.get(YKHO, 'first_name')", "def c9ua(YKHO) -> str:\n return YKHO.name.title()", "def fz1W(YKHO) -> str:\n return YKHO.first_name", "def fz1W(YKHO):\n return YKHO._first_name", "def fz1W(YKHO):\n if YKHO.first_name == '':\n YKHO.get_lead_traveller()\...
[ "0.81109", "0.806109", "0.7965004", "0.7927496", "0.78932333", "0.78925514", "0.78925514", "0.78925514", "0.78925514", "0.78925514", "0.78925514", "0.7841722", "0.77939606", "0.77939606", "0.77939606", "0.77939606", "0.77939606", "0.77939606", "0.77939606", "0.77893007", "0.7...
0.79143065
4
The last name of the person associated with the address.
def zp3f(YKHO): return YKHO._dict.get('last_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zp3f(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_name')", "def CCKR(YKHO) -> str:\n return YKHO.last_name", "def CCKR(YKHO):\n return YKHO._last_name", "def CCKR(YKHO):\n return YKHO._last_name", "def CCKR(YKHO):\n return YKHO.last_name", "def zp3f(YKHO) -> str:\n return YKHO._last_...
[ "0.82330626", "0.8141514", "0.80839175", "0.80815524", "0.80526394", "0.80095196", "0.80095196", "0.80095196", "0.80095196", "0.80095196", "0.8005627", "0.7987159", "0.7987159", "0.7987159", "0.7987159", "0.7987159", "0.7987159", "0.7987159", "0.79779005", "0.79692066", "0.79...
0.80538315
4
The company of the person associated with the address.
def q9zX(YKHO): return YKHO._dict.get('company')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q9zX(YKHO) -> str:\n return qe4Y.get(YKHO, 'company')", "def q9zX(YKHO):\n return YKHO._company", "def q9zX(YKHO):\n return YKHO._company", "def q9zX(YKHO):\n return YKHO._company", "def q9zX(YKHO):\n return YKHO._company", "def q9zX(YKHO):\n return YKHO._company", "def q9zX(YKHO)...
[ "0.77297074", "0.76573384", "0.76573384", "0.76573384", "0.76573384", "0.76573384", "0.76573384", "0.76573384", "0.76573384", "0.71234447", "0.70688975", "0.6994072", "0.6979778", "0.6970455", "0.6969458", "0.6962462", "0.68778044", "0.68778044", "0.68778044", "0.68238056", "...
0.7868924
0