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
A helper function returning a set with all classes in the chalicelib.criteria submodules having a class attribute named active with value True.
def OFJr(YKHO, WwGR='chalicelib.criteria'): A2pR = ANWz.import_module(WwGR) wjLZ = [] nkYt = ['AwsIamValidateInspectorPolicy'] for DWkG, LCet, OZeO in M7QU.iter_modules(A2pR.__path__): for mWFP, Emd4 in tq_1.getmembers(ANWz.import_module(f'{A2pR.__name__}.{LCet}')): LJf3 = tq_1.iscla...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OyjP(rV9y):\n\n def B0gN(f2MT, Aofo):\n cWoj = f2MT.__subclasses__()\n if len(cWoj) > 0:\n Aofo.update(cWoj)\n for Rll0 in cWoj:\n B0gN(Rll0, Aofo)\n Aofo = set()\n B0gN(rV9y, Aofo)\n return Aofo", "def R6qy(rV9y: Type[Any]) -> fHNa[eBH2[ImMB]]:\...
[ "0.64174163", "0.624481", "0.6232418", "0.6224172", "0.6118825", "0.6087527", "0.6057207", "0.60432523", "0.60061234", "0.6005204", "0.6000656", "0.5978719", "0.5953947", "0.59382534", "0.5926417", "0.59034085", "0.59012455", "0.5888831", "0.5888831", "0.5887236", "0.5887236"...
0.6008712
8
Apply f to each of the elements in x using the specified number of parallel iterations.
def M_t2(eHNT, WKvO, yDqo=None, KWwB=10): if yDqo is None: yDqo = WKvO.dtype exwG = ZylS.shape(WKvO)[0] udYA = [ZylS.constant(0, exwG.dtype), ZylS.TensorArray(yDqo, size=exwG)] bGrB, AOlJ = ZylS.while_loop(lambda r845, bGrB: r845 < exwG, lambda r845, Aofo: (r845 + 1, Aofo.write(r845, eHNT(WKvO[r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X73w(eHNT, WKvO):\n return pD6w(wPFE(WKvO), lambda AOlJ, bGrB: eHNT(AOlJ))", "def X73w(eHNT, nJ9F):\n ohxs = eHNT(nJ9F)", "def BWcx(eHNT, Q6uT, EcAO=NAlt, db6b=None):\n Q3H5(EcAO)\n exwG = len(Q6uT)\n if exwG:\n if EcAO == 0:\n for qIxc in Q6uT:\n Aofo = dRO0...
[ "0.7182032", "0.6842469", "0.67089134", "0.6547885", "0.65472025", "0.6485368", "0.6467945", "0.6435455", "0.62800497", "0.62628365", "0.6236842", "0.6217167", "0.6216037", "0.62086093", "0.619237", "0.6177754", "0.61660695", "0.6151258", "0.6151258", "0.6144735", "0.61443007...
0.6478498
6
Normalizes inputs from 0255 to 01.
def hOhn(YKHO, lJYz): return lJYz / 255
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w5Mv(WKvO):\n return WKvO / 255.0", "def w5Mv(WKvO):\n return WKvO / 255.0", "def w5Mv(VXjJ):\n return VXjJ.astype(oyIN.float32) / 255", "def NkkI(BWXx):\n return min(BWXx, 255)", "def Q7gV(EcVT):\n EcVT = EcVT / 255.0\n return EcVT", "def NkkI(VXjJ):\n return oyIN.uint8((VXjJ - ...
[ "0.801566", "0.801566", "0.7271354", "0.71238965", "0.70323807", "0.6976042", "0.6904434", "0.69011885", "0.6886517", "0.68824494", "0.6882252", "0.680524", "0.67752796", "0.6759939", "0.6702111", "0.6662797", "0.6630686", "0.6628201", "0.6628201", "0.6590557", "0.6590557", ...
0.6688237
15
Initializes the Example, performing tokenization and truncation to produce the encoder, decoder and target sequences, which are stored in self.
def FIMM(YKHO, l3QS, Y9aV, CtWL): iKqG = CtWL.word2id(nPrm.START_DECODING) fqVG = CtWL.word2id(nPrm.STOP_DECODING) cacN = l3QS.split() if len(cacN) > GPtr.max_enc_steps: cacN = cacN[:GPtr.max_enc_steps] YKHO.enc_len = len(cacN) YKHO.article_len = YKHO.enc_len YKHO.enc_input = [CtWL.w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, AUCK, CtWL, Ep8u):\n YKHO.batch_size = Ep8u\n YKHO.pad_id = CtWL.word2id(nPrm.PAD_TOKEN)\n YKHO.init_encoder_seq(AUCK)\n YKHO.init_decoder_seq(AUCK)\n YKHO.store_orig_strings(AUCK)", "def FIMM(YKHO, AUCK, gCuF, CtWL):\n YKHO.pad_id = CtWL.word2id(z1QK)\n YKHO.init_encoder_seq(...
[ "0.735851", "0.72259456", "0.69864386", "0.6830707", "0.6742512", "0.66285604", "0.66021025", "0.65581554", "0.65308243", "0.648998", "0.64627314", "0.6455148", "0.64398634", "0.64345574", "0.6411531", "0.6358321", "0.6297065", "0.6294921", "0.62884545", "0.6267452", "0.62390...
0.5831486
100
Pad decoder input and target sequences with pad_id up to max_len. For handling batch_size article at the same time.
def cztc(YKHO, wzH_, Rdw3): while len(YKHO.dec_input) < wzH_: YKHO.dec_input.append(Rdw3) while len(YKHO.target) < wzH_: YKHO.target.append(Rdw3) while len(YKHO.original_abstract_sents_words_character_num) < wzH_: YKHO.original_abstract_sents_words_character_num.append(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cztc(YKHO, wzH_, Rdw3):\n while len(YKHO.dec_input) < wzH_:\n YKHO.dec_input.append(Rdw3)\n while len(YKHO.target) < wzH_:\n YKHO.target.append(Rdw3)", "def cztc(YKHO, wzH_, Rdw3):\n while len(YKHO.dec_input) < wzH_:\n YKHO.dec_input.append(Rdw3)\n while len(YKHO.target) < wz...
[ "0.80248517", "0.7987263", "0.7800007", "0.76192963", "0.76015365", "0.75487524", "0.7417247", "0.72123283", "0.71887946", "0.7160807", "0.7153244", "0.71334153", "0.7106083", "0.70529157", "0.7016332", "0.6999648", "0.6971566", "0.6970284", "0.6969694", "0.6954089", "0.68795...
0.8125703
0
Pad the encoder input sequence with pad_id up to max_len. For handling batch_size article at the same time.
def VT3p(YKHO, wzH_, Rdw3): while len(YKHO.enc_input) < wzH_: YKHO.enc_input.append(Rdw3) while len(YKHO.enc_input_extend_vocab) < wzH_: YKHO.enc_input_extend_vocab.append(Rdw3) while len(YKHO.original_article_words_character_num) < wzH_: YKHO.original_article_words_character_num.app...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VT3p(YKHO, wzH_, Rdw3):\n while len(YKHO.enc_input) < wzH_:\n YKHO.enc_input.append(Rdw3)\n while len(YKHO.enc_input_extend_vocab) < wzH_:\n YKHO.enc_input_extend_vocab.append(Rdw3)", "def VT3p(YKHO, wzH_, Rdw3):\n while len(YKHO.enc_input) < wzH_:\n YKHO.enc_input.append(Rdw3)\...
[ "0.8384591", "0.83395886", "0.7894299", "0.7554906", "0.74597645", "0.73230267", "0.7318769", "0.73127437", "0.72563875", "0.7227448", "0.7220912", "0.71938676", "0.7160977", "0.71231776", "0.7056022", "0.703408", "0.70295006", "0.6963619", "0.69202673", "0.69170046", "0.6853...
0.8566733
0
Return a MatrixGenerator for the matrix slice of this tensor which passes through index I along the given two axes.
def WRQ_(YKHO, pdhd, MPlV): assert len(MPlV) == 2 assert len(pdhd) == len(YKHO.shape) pdhd = list(pdhd) def _kBy(_0VL): _0VL = list(_0VL) for G1Hx in range(len(_0VL)): pdhd[MPlV[0]], pdhd[MPlV[1]] = _0VL[G1Hx] _0VL[G1Hx] = tuple(pdhd) return YKHO.compute_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oEnj(zNig, pdhd):\n assert len(zNig) == pdhd.size(0), 'Tensors should match dimensions'\n return ht2j.arange(0, QRFO(zNig), dtype=ht2j.long, device=pdhd.device).view(zNig)[tuple(pdhd)]", "def Cs6h(YKHO):\n y_HZ = map(range, YKHO.basis_shape)\n for lmam in WhY1.product(*y_HZ):\n yield lmam"...
[ "0.6046865", "0.5797865", "0.5683667", "0.5571155", "0.55652785", "0.5513392", "0.5512538", "0.5458377", "0.5439958", "0.54207605", "0.54155767", "0.5406282", "0.5404144", "0.53999346", "0.5360721", "0.5360721", "0.5360721", "0.53546864", "0.53370386", "0.5328266", "0.5313585...
0.72087836
0
Raise an error if request.user doesn't own the given comment.
def cRjp(YKHO, aM_I): Py_j = YKHO.request.user.userprofile if not aM_I.user_is_owner(Py_j): raise wPvU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b3KW(YKHO, CBIr=None, YPpA=None, pQGt=None):\n try:\n pQGt = int(pQGt)\n if CBIr.key == YPpA.comments[pQGt].userkey:\n return True\n else:\n return False\n except:\n return False", "def b3KW(m2Zb):\n\n def h3Xc(YKHO, G9zw, Ii1o):\n \"\"\"Wrapp...
[ "0.71524185", "0.659791", "0.6436175", "0.6187085", "0.61254555", "0.608358", "0.6018771", "0.589", "0.581653", "0.57807887", "0.5767088", "0.57329994", "0.5699021", "0.569147", "0.5684673", "0.5645891", "0.5622516", "0.56174725", "0.5599589", "0.5567433", "0.5546226", "0.5...
0.7849608
1
Ensure that the comment is owned by request.user.
def AMX5(YKHO, SR0I=None): aM_I = super(plBM, YKHO).get_object() YKHO.require_comment_owner(aM_I) return aM_I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cRjp(YKHO, aM_I):\n Py_j = YKHO.request.user.userprofile\n if not aM_I.user_is_owner(Py_j):\n raise wPvU", "def cRjp(YKHO, aM_I):\n Py_j = YKHO.request.user.userprofile\n if not aM_I.user_is_owner(Py_j):\n raise wPvU", "def ESKc(YKHO):\n YKHO.assertEqual(YKHO._comment.owner, YK...
[ "0.814776", "0.814776", "0.7495795", "0.67816776", "0.67515475", "0.669453", "0.6649895", "0.6637442", "0.6637442", "0.6562468", "0.64706534", "0.6447565", "0.64426315", "0.6303096", "0.62723583", "0.627223", "0.6257251", "0.62313884", "0.61945575", "0.6193772", "0.61833286",...
0.6152223
21
Raise an error if request.user doesn't own the given comment.
def cRjp(YKHO, aM_I): Py_j = YKHO.request.user.userprofile if not aM_I.user_is_owner(Py_j): raise wPvU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b3KW(YKHO, CBIr=None, YPpA=None, pQGt=None):\n try:\n pQGt = int(pQGt)\n if CBIr.key == YPpA.comments[pQGt].userkey:\n return True\n else:\n return False\n except:\n return False", "def b3KW(m2Zb):\n\n def h3Xc(YKHO, G9zw, Ii1o):\n \"\"\"Wrapp...
[ "0.71524185", "0.659791", "0.6436175", "0.6187085", "0.61254555", "0.608358", "0.6018771", "0.589", "0.581653", "0.57807887", "0.5767088", "0.57329994", "0.5699021", "0.569147", "0.5684673", "0.5645891", "0.5622516", "0.56174725", "0.5599589", "0.5567433", "0.5546226", "0.5...
0.7849608
0
Ensure that the comment is owned by request.user.
def AMX5(YKHO, SR0I=None): aM_I = super(YvkO, YKHO).get_object() YKHO.require_comment_owner(aM_I) return aM_I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cRjp(YKHO, aM_I):\n Py_j = YKHO.request.user.userprofile\n if not aM_I.user_is_owner(Py_j):\n raise wPvU", "def cRjp(YKHO, aM_I):\n Py_j = YKHO.request.user.userprofile\n if not aM_I.user_is_owner(Py_j):\n raise wPvU", "def ESKc(YKHO):\n YKHO.assertEqual(YKHO._comment.owner, YK...
[ "0.81458646", "0.81458646", "0.7494758", "0.6783655", "0.6750727", "0.66938365", "0.66485685", "0.66363275", "0.66363275", "0.65601385", "0.6469671", "0.6446004", "0.64412355", "0.63021135", "0.6269999", "0.62549025", "0.6229604", "0.6191418", "0.61911625", "0.61827767", "0.6...
0.62739664
14
Adds an item to the stock. If there is a stock that the item belongs in, the item will be placed in this stock. If no such stock exists, nothing will be done.
def hlZU(YKHO, ZfUD): for GitE in YKHO.stocks: if ZfUD.get_name() == GitE[0].get_name(): GitE[len(GitE)] = ZfUD return True raise KeyError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, ZfUD):\n YKHO.inventory.append(ZfUD)", "def GOHH(YKHO, ZfUD):\n YKHO.inventory.append(ZfUD)", "def s59z(YKHO, ZfUD):\n return YKHO.inventory.add_to_inventory(ZfUD)", "def hlZU(YKHO, ZfUD: Entity):\n YKHO.inventory.append(ZfUD)", "def H2v5(YKHO, ZfUD):\n YKHO.inventory[ZfUD.nam...
[ "0.75103", "0.7481321", "0.73993415", "0.73990554", "0.73549604", "0.7203947", "0.7151626", "0.71019155", "0.7087676", "0.708153", "0.70566", "0.70553315", "0.7022414", "0.7018467", "0.6990491", "0.69873065", "0.69747376", "0.6972642", "0.6972642", "0.69710314", "0.6927298", ...
0.7947543
0
(Private) Converts right ascension (RA) and declination (Dec) into Cartesian coordinates (x,y,z) assuming a radius = 1. The xaxis runs along a line of zero degrees Dec and RA, the yaxis along zero degrees Dec and 90 degrees RA, and the zaxis along 90 degrees Dec.
def dfx3(YKHO): YKHO.x = oyIN.cos(YKHO.Dec) * oyIN.cos(YKHO.RA) YKHO.y = oyIN.cos(YKHO.Dec) * oyIN.sin(YKHO.RA) YKHO.z = oyIN.sin(YKHO.Dec) return (YKHO.x, YKHO.y, YKHO.z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z6yk(YKHO, WKvO, LVAh, epBp):\n if isinstance(WKvO, oyIN.ndarray):\n QyVM = oyIN.argwhere((WKvO == 0.0) & (LVAh == 0.0) & (epBp == 0.0))\n if len(WKvO[QyVM]) > 0:\n raise ValueError('Cartesian coordinates are all zero!')\n elif isinstance(WKvO, float):\n if (WKvO == 0.0) &...
[ "0.77045786", "0.68974096", "0.6829381", "0.68156075", "0.6772145", "0.67055076", "0.6663965", "0.6630497", "0.66140556", "0.6601126", "0.6594173", "0.652087", "0.64881486", "0.6474414", "0.6469995", "0.63676065", "0.63656354", "0.63449174", "0.6341135", "0.6321789", "0.63047...
0.8068804
0
Sets the user's password always use this rather than directly
def G3s8(YKHO, Ud05): from random import random vRyL = 'sha1' NTfD = OMIw(vRyL, str(random()), str(random()))[:5] hash = OMIw(vRyL, NTfD, Ud05) YKHO.password = '%s$%s$%s' % (vRyL, NTfD, hash) YKHO.last_set_password = qcWV.datetime.now() YKHO.save() if not YKHO.is_staff: if YKHO.e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h", "def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h", "def m_qJ(YKHO, jTXt):\n YKHO._password = jTXt", "def G3s8(YKHO, jTXt):\n D2Lq(jTXt)", "def jTXt(YKHO, BWXx):\n if not BWXx:\n return\n YKHO._password = BWXx", "def PnS7(YKHO, jTXt):\n YKHO.pa...
[ "0.865082", "0.8584802", "0.8582035", "0.85085", "0.8451587", "0.841511", "0.8384355", "0.8371785", "0.8317585", "0.8240979", "0.81681883", "0.81333536", "0.81333536", "0.8120961", "0.81199265", "0.810584", "0.8078111", "0.8078111", "0.8078111", "0.8078111", "0.8078111", "0...
0.0
-1
Returns a User object from an id (User.id). Django's equivalent takes request, but taking an id instead leaves it up to the developer to store the id in any way they want (session, signed cookie, etc.)
def TKWP(n10L): if not n10L: return fCU0() return TkcJ().get_user(n10L) or fCU0()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(id: int) -> mv1M:\n return DQE7(mv1M, mv1M.id, id)", "def bt8D(id):\n return mv1M.query.get(id)", "def TKWP(Emd4, id):\n C3ST = Nc2H.query.filter_by(id=id).first()\n return Emd4.create_user_from_model(C3ST)", "def bt8D(id):\n return 'do some magic!'", "def TKWP(uJjO):\n CBIr = mv...
[ "0.8163708", "0.79415643", "0.78168434", "0.7804238", "0.77788794", "0.7740253", "0.771192", "0.76980436", "0.7696711", "0.7696711", "0.76905024", "0.76703537", "0.76663136", "0.764362", "0.76368123", "0.7592374", "0.7589645", "0.7556634", "0.7542255", "0.7536986", "0.7536728...
0.71539515
88
Returns a new instance with amount ant timestamp updated.
def sPBL(YKHO, E3oo, Z5kt): cLUt = YKHO._asdict() cLUt.update(timestamp=E3oo, amount=Z5kt) return NxuS(**cLUt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, WJkG, Z5kt):\n ahCL.__init__(YKHO)\n YKHO.datetime = qcWV.now()\n YKHO.charge = WJkG\n YKHO.amount = Z5kt\n YKHO.comment = None", "def i3ak(YKHO):\n ZMvH = k5OJ(YKHO.alpha, YKHO.beta)\n ZMvH.world = YKHO.world\n ZMvH.start = YKHO.start\n ZMvH.visited = YKHO.visited[:]\n ...
[ "0.5877464", "0.5829728", "0.57314426", "0.5721792", "0.57106847", "0.5677637", "0.56140745", "0.56121904", "0.55686754", "0.55664814", "0.5559271", "0.55331147", "0.55262554", "0.55228597", "0.5509296", "0.5502562", "0.5485147", "0.548028", "0.5468924", "0.54573315", "0.5446...
0.57636666
2
Get all the grids that the player can place a squre on. Get the list of import grids of player , in which a legal placement must cover at least one
def DGgf(YKHO, d6pt): QAeJ = YKHO.getLeftPiles(d6pt) iBIi = YKHO.data.boardData.deepCopy() cUDS = iBIi.asList(d6pt) gxAN = set() for AU8u in cUDS: for iArr in bCSY: oeNL = (AU8u[0] + iArr[0], AU8u[1] + iArr[1]) if oeNL[0] not in range(0, iBIi.size) or oeNL[1] not in r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NtHr(YKHO, VmPb):\n WKvO, LVAh = (VmPb[0], VmPb[1])\n sjXb = [(WKvO, LVAh - 1), (WKvO, LVAh + 1), (WKvO - 1, LVAh), (WKvO + 1, LVAh), (WKvO - 1, LVAh - 1), (WKvO - 1, LVAh + 1), (WKvO + 1, LVAh - 1), (WKvO + 1, LVAh + 1)]\n C9Q7 = []\n for H5ew in sjXb:\n if H5ew in YKHO.Gs:\n C9Q...
[ "0.61503536", "0.61047095", "0.6032316", "0.60091925", "0.5886848", "0.5862093", "0.58618516", "0.58353066", "0.58005905", "0.5778291", "0.5771254", "0.576876", "0.57583064", "0.5746288", "0.57291496", "0.56727296", "0.56676555", "0.56657964", "0.56535333", "0.5641942", "0.56...
0.6760992
0
Wrapper for inserting int64 features into Example proto.
def Oety(BWXx): if not isinstance(BWXx, list): BWXx = [BWXx] return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wgnv(PU1l, BZ2A, kAne):\n PU1l.features.feature[BZ2A].int64_list.value.append(kAne)", "def Oety(BWXx):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))", "def Oety(BWXx):\n BWXx = int(BWXx)\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))", ...
[ "0.7374559", "0.73496234", "0.73196983", "0.7302151", "0.7302151", "0.7302151", "0.7302151", "0.7302151", "0.7302151", "0.7302151", "0.7302151", "0.7302151", "0.7302151", "0.7302151", "0.7302151", "0.7302151", "0.73013365", "0.7301165", "0.72968256", "0.72968256", "0.72968256...
0.71616143
69
Wrapper for inserting an int64 FeatureList into a SequenceExample proto.
def ME98(hkxX): return ZylS.train.FeatureLists(feature=[Oety(Ty9i) for Ty9i in hkxX])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZjqL(BWXx: List[int]):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx))", "def Oety(BWXx):\n if not isinstance(BWXx, list):\n BWXx = [BWXx]\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx))", "def Oety(BWXx):\n if not isinstance(BWXx, list):...
[ "0.7041628", "0.681892", "0.6801538", "0.6797553", "0.6789113", "0.6789113", "0.6789113", "0.6789113", "0.6789113", "0.6789113", "0.6789113", "0.6789113", "0.6789113", "0.6789113", "0.67856914", "0.67856914", "0.67856914", "0.67856914", "0.67856914", "0.67856914", "0.67856914...
0.0
-1
Wrapper for inserting bytes features into Example proto.
def NhGy(BWXx): if not isinstance(BWXx, list): BWXx = [BWXx] return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mJtR(PU1l, BZ2A, I3mI):\n PU1l.features.feature[BZ2A].bytes_list.value.append(I3mI)", "def NhGy(BWXx):\n BWXx = BWXx.encode('utf8')\n return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=[BWXx]))", "def r2_2(BWXx):\n if isinstance(BWXx, jKi7.string_types):\n BWXx = jKi7.binary...
[ "0.70967346", "0.68787324", "0.6869317", "0.68549395", "0.6852209", "0.684546", "0.684546", "0.68439454", "0.68434113", "0.6842389", "0.68284506", "0.68284506", "0.68284506", "0.6820086", "0.6816939", "0.6813042", "0.6811964", "0.6811572", "0.68086994", "0.680173", "0.680173"...
0.6784001
29
Wrapper for inserting a bytes FeatureList into a SequenceExample proto.
def OQmN(hkxX): return ZylS.train.FeatureLists(feature=[NhGy(Ty9i) for Ty9i in hkxX])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slRC(BWXx):\n if not isinstance(BWXx, list):\n BWXx = [BWXx]\n return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=BWXx))", "def NhGy(BWXx):\n if not isinstance(BWXx, list):\n BWXx = [BWXx]\n return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=BWXx))", "def...
[ "0.68375206", "0.67710614", "0.67452854", "0.6743806", "0.6743806", "0.6743806", "0.6720359", "0.6720359", "0.67103857", "0.6685534", "0.6679055", "0.66739887", "0.66739887", "0.66739887", "0.66739887", "0.6656896", "0.6643613", "0.65965694", "0.65767723", "0.64953387", "0.64...
0.6207792
80
Wrapper for inserting a float FeatureList into a SequenceExample proto.
def t_i1(hkxX): return ZylS.train.FeatureList(feature=[bPiq(Ty9i) for Ty9i in hkxX])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prDu(lS0e: tf.train.SequenceExample, BWXx: Sequence[Sequence[float]], H5ew: str):\n for KCHu in BWXx:\n lS0e.feature_lists.feature_list.get_or_create(H5ew).feature.add().float_list.value[:] = KCHu", "def bPiq(BWXx):\n if not isinstance(BWXx, list):\n BWXx = [BWXx]\n return ZylS.train.F...
[ "0.76074624", "0.704021", "0.7028229", "0.7027157", "0.7015883", "0.7013288", "0.7013288", "0.7013288", "0.7013288", "0.7013288", "0.70045924", "0.70045924", "0.70045924", "0.70045924", "0.70045924", "0.6978118", "0.69607455", "0.694967", "0.6933443", "0.6923871", "0.6922423"...
0.668717
71
The parent resource that contains the logging bucket.
def wbiw(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'organization')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AKB(YKHO) -> PMvo:\n return YKHO._parent", "def _AKB(YKHO, Eorv):\n raise NotImplementedError('!')", "def _AKB(YKHO):\n wPdp = YKHO.links(ZQF7.PARENT, single=True)\n return wPdp[0].resource() if wPdp else None", "def ByGo(YKHO):\n return YKHO.parent", "def _AKB(YKHO):\n Ilxn = YKHO._...
[ "0.71278256", "0.7086928", "0.6943749", "0.68638664", "0.6855835", "0.6840459", "0.68338555", "0.6814102", "0.6814102", "0.6814102", "0.6814102", "0.6814102", "0.68133223", "0.68105465", "0.680066", "0.67657346", "0.67657346", "0.675258", "0.675258", "0.6726085", "0.67244047"...
0.0
-1
Load weights file if required by configuration
def SUd8(C3ST, GPtr): if not hasattr(GPtr, 'validation') or type(GPtr.validation.weights_file) != str: return print('Load weight file : ', GPtr.validation.weights_file) C3ST.load_weights(GPtr.validation.weights_file)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SUd8(YKHO):\n if YKHO.arg.weights:\n YKHO.fileio.load_weights(YKHO.model, YKHO.arg.weights, YKHO.arg.ignore_weights)", "def SUd8(YKHO, VqRE):\n raise NotImplementedError()", "def H_1o(YKHO):\n if YKHO.weights_path is not None:\n YKHO.logger.info('Loaded weights from \\n > {}'.format(...
[ "0.8234123", "0.7879488", "0.77736926", "0.76872754", "0.76776636", "0.7666311", "0.76527745", "0.76222235", "0.7502027", "0.7462256", "0.74554557", "0.7429232", "0.7418407", "0.7416909", "0.73775333", "0.7368657", "0.716334", "0.7163227", "0.715149", "0.715149", "0.7143295",...
0.7632079
7
Update and return an existing `Snippet` instance, given the validated data.
def QdZT(YKHO, KAOR, vGfb): KAOR.url = vGfb.get('url', KAOR.url) KAOR.save() return KAOR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n KAOR.comments = vGfb.get('comments', KAOR.comments)\n KAOR.description = vGfb.get('description', KAOR.description)\n KAOR.save()\n return KAOR", "def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n...
[ "0.67801327", "0.6660324", "0.6660324", "0.6655712", "0.6640556", "0.652205", "0.652205", "0.6509049", "0.64857805", "0.6471242", "0.642812", "0.629971", "0.6291086", "0.6275658", "0.6201591", "0.61365765", "0.6096549", "0.6052537", "0.6051132", "0.60097694", "0.596129", "0...
0.60716563
17
Takes a look at the course and finds out how many students (technically non internal office users) are enrolled in said course
def tZVO(YKHO): return YKHO.usercourserelationship_set.exclude(user__role__in=['I', 'O', 'C']).exclude(user__email__regex=YQbr).exclude(user__GuardianStudentRelation_student__guardian__email__regex=YQbr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ew4E(YKHO, GQfX):\n YKHO.course_inst_dict[GQfX] += 1", "def FffP(NCls):\n tqWW = VYSH(NCls)\n GS7L = [[YRbF[0], len(YRbF[1].split(','))] for YRbF in tqWW]\n return GS7L", "def A5XY(YKHO, YPqY):\n return YPqY.course_set.count()", "def sFjE(YKHO):\n moMn = cQ68.objects.filter(course=YKHO)...
[ "0.7431366", "0.7070747", "0.6841761", "0.68317616", "0.67177457", "0.6612189", "0.64993", "0.6470732", "0.6392701", "0.6338142", "0.633146", "0.63215274", "0.6258904", "0.624667", "0.6243086", "0.6192082", "0.6187303", "0.6161306", "0.61122864", "0.6044202", "0.60301715", ...
0.0
-1
Divides all elements of a matrix. Returns a new matrix (list of list). The result is rounded to 2 decimal places.
def TjXO(SppC, hFiK): if not isinstance(SppC, list) or len(SppC) == 0 or (not SppC[0]): raise TypeError('matrix must be a matrix (list of lists) ' + 'of integers/floats') for rdlD in SppC: if len(rdlD) is 0: raise TypeError('matrix must be a matrix (list of lists) ' + 'of integers/fl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TjXO(SppC, hFiK):\n P1dF = 'matrix must be a matrix (list of lists) of integers/floats'\n if len(SppC) == 0 or type(SppC) != list:\n raise TypeError(P1dF)\n for UHhk in SppC:\n if len(UHhk) != len(SppC[0]):\n raise TypeError('Each row of the matrix must have the same size')\n ...
[ "0.7346044", "0.73202515", "0.72970325", "0.7292744", "0.728085", "0.7272076", "0.7204765", "0.71560615", "0.7126212", "0.7119628", "0.7102783", "0.70869213", "0.70742095", "0.70640063", "0.7061711", "0.703986", "0.70364857", "0.70321757", "0.7030358", "0.70078874", "0.700127...
0.6987963
21
Returns the area of the Rectangle
def f0tD(YKHO): return YKHO.__width * YKHO.__height
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n f0tD = YKHO.__width * YKHO.__height\n return f0tD", "def jGjA(u54L, TVTK):\n f0tD = u54L * TVTK\n return f0tD", "def f0tD(YKHO):\n f0tD = YKHO.length * YKHO.width\n return f0tD", "def f0tD(YKHO):\n return YKHO.__height * YKHO.__width", "def f0tD(YKHO):\n return YKH...
[ "0.83874166", "0.82245284", "0.82236874", "0.8222107", "0.8222107", "0.82054824", "0.8149975", "0.8149975", "0.8149975", "0.8149975", "0.8147909", "0.8146333", "0.8146333", "0.81462955", "0.81376714", "0.81376714", "0.81376714", "0.81283325", "0.8111562", "0.8108319", "0.8090...
0.8116495
21
Selects the serializer class depending on action and authentication
def l5oD(YKHO): if YKHO.action == 'retrieve': CBIr = YKHO.request.user if CBIr.is_authenticated: return EGAC return Zokx else: return exIe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5oD(YKHO, XeOP=None):\n if XeOP is not None:\n return getattr(YKHO, '%s_serializer_class' % XeOP)\n else:\n return super(WbkH, YKHO).get_serializer_class()", "def l5oD(YKHO, XeOP=None):\n if XeOP is not None:\n return getattr(YKHO, '%s_serializer_class' % XeOP)\n else:\n ...
[ "0.80242276", "0.80242276", "0.8002612", "0.7976134", "0.7956708", "0.79463637", "0.7940488", "0.79379416", "0.7905675", "0.78562254", "0.7820016", "0.78100586", "0.7778895", "0.77571887", "0.77404314", "0.7720821", "0.7716325", "0.76789707", "0.76654595", "0.7618432", "0.759...
0.7872193
9
Filter queryset depending on the request query params category and author name.
def k66M(YKHO): SR0I = wHLq.objects.all().select_related('author') Ghho = YKHO.request.query_params.get('category') if Ghho is not None: SR0I = SR0I.filter(category=Ghho) taDc = YKHO.request.query_params.get('author') if taDc is not None: SR0I = SR0I.filter(author__name__exact=taDc) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n ei4T = super(DqSn, YKHO).get_queryset()\n if 'filter' in YKHO.request.GET:\n YKHO.filter = YKHO.request.GET['filter']\n if YKHO.filter:\n ei4T = ei4T.filter(author__contains=YKHO.filter)\n return ei4T", "def fRXs(YKHO, QePW, SR0I, tTee):\n dqnR = QePW.query_params.g...
[ "0.7295338", "0.6660617", "0.6496437", "0.6285831", "0.624402", "0.6235527", "0.6232981", "0.62222064", "0.6213068", "0.62064606", "0.6206155", "0.6198169", "0.61804587", "0.6155618", "0.60113066", "0.5998246", "0.5949098", "0.5941192", "0.59322923", "0.5918367", "0.5905918",...
0.77600276
0
Our main index view. Returns the top 20 ranked posts and paginates if necessary
def d6pt(YKHO, B2Dn=1): FvVY = kLxY.ranked_posts(B2Dn) return TvZl('item/list.html', items=FvVY, title='Home')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WqOD():\n m8z6 = T97t.query.order_by(T97t.created_at.desc()).limit(5)\n return TvZl('/home.html', post=m8z6)", "def d6pt(QePW):\n FvVY = f5si.objects.all().order_by('-created_ts')[:10]\n QpfX = {'title': 'Latest Posts', 'posts': FvVY}\n return _1tc(QePW, 'posts/index.html', QpfX)", "def d6pt...
[ "0.71415156", "0.6943117", "0.6600889", "0.6547698", "0.65191245", "0.64684105", "0.6457604", "0.64539635", "0.64525455", "0.644744", "0.63987494", "0.63765264", "0.63477075", "0.63116086", "0.6300467", "0.62626386", "0.62284535", "0.62186676", "0.6204874", "0.6184777", "0.61...
0.66179675
2
View for a singular page (similar to item view but uses title) Form is used to comment on that post or comment
def vJU2(YKHO, leAC): B2Dn = kLxY.find_by_title(leAC) kKo3 = YKHO._commentForm(QePW) return TvZl('item/item.html', item=B2Dn, form=kKo3, title=B2Dn.title)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tTee(QePW, s5ru):\n m8z6 = Iofl(T97t, slug=s5ru)\n L03z = rGVl()\n return _1tc(QePW, 'post/view.html', {'post': m8z6, 'form': L03z})", "def h0D3(leAC):\n m8z6 = Y4Gy.query.filter(Y4Gy.title == leAC).first()\n lPRY = xuln()\n return TvZl('main/question_details.html', post=m8z6, edit_form=lPR...
[ "0.70245177", "0.67253274", "0.6482361", "0.6464236", "0.6383054", "0.638077", "0.6380534", "0.63797796", "0.63768065", "0.63668525", "0.6342933", "0.6272839", "0.62310433", "0.6201731", "0.61686474", "0.6163107", "0.615565", "0.6131548", "0.6110934", "0.6095798", "0.6083183"...
0.6804625
1
Get the combined path of the subdir and the file name
def iBpv(YKHO): return YKHO._file_relpath
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RokW(YKHO) -> str:\n Desv = YKHO.abspath.split(Hy7s.path.sep)\n return Hy7s.path.sep.join(Desv[-2:])", "def OyQC(YKHO):\n nJNG = YKHO._filename.split('/')\n Kac1 = str('')\n for YRbF in range(len(nJNG) - 1):\n Kac1 += nJNG[YRbF] + '/'\n return Kac1", "def WYgf(YKHO):\n pmON = Hy...
[ "0.77837145", "0.75776523", "0.7499176", "0.74403745", "0.7398485", "0.738332", "0.729312", "0.72269726", "0.7202269", "0.7124291", "0.7067739", "0.70350856", "0.70350856", "0.7013607", "0.6964703", "0.6964703", "0.69552404", "0.69501424", "0.6934848", "0.69226587", "0.691233...
0.0
-1
Get the object name
def H6TY(YKHO): return YKHO._object_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B_QI(YKHO):\n return YKHO.obj_name", "def tB6k(YKHO):\n return YKHO._object_name.value", "def tB6k(YKHO):\n return YKHO._object_name", "def tB6k(YKHO):\n return YKHO._object_name", "def mWFP(YEnM):\n return type(YEnM).__name__", "def hRqW(YEnM):\n if hasattr(YEnM, '__name__'):\n ...
[ "0.90393317", "0.88214153", "0.87074745", "0.87074745", "0.87053245", "0.8547154", "0.8538755", "0.84889144", "0.84519356", "0.8447117", "0.8430351", "0.8430351", "0.8428806", "0.8428806", "0.8428806", "0.8428806", "0.8428806", "0.8348958", "0.8348958", "0.83355206", "0.83344...
0.87710243
2
function takes a json file and returns a pyton readable representation of its data.
def mUKk(nUeQ): with open(nUeQ, 'r') as eHNT: nPrm = qQXR.load(eHNT) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NC4D(nUeQ):\n with open(nUeQ, 'r') as apum:\n nPrm = qQXR.load(apum)\n return nPrm", "def dHJt(wM3v):\n with open(wM3v) as eHNT:\n zgjV = qQXR.load(eHNT)\n return zgjV", "def dftL(YKHO, Ux0P):\n return _XvE.byteify(qQXR.load(open(Hy7s.path.join(YKHO.src_dir, Ux0P))))", "def w...
[ "0.7830974", "0.7787196", "0.7768765", "0.77381116", "0.7553014", "0.7538992", "0.7528297", "0.75218284", "0.7508247", "0.75039566", "0.7469999", "0.74366605", "0.74314976", "0.7427945", "0.7423608", "0.7418159", "0.7415345", "0.740621", "0.73829585", "0.7380138", "0.7377392"...
0.0
-1
Returns the location of the Enso scripts folder.
def qFAq(YKHO): return Hy7s.path.expanduser(Edrf.getScriptsFolderName())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HkhS():\n return Hy7s.path.join(jRQh(), 'scripts')", "def Uweh(YKHO):\n return YKHO.get_file_dir('script')", "def VZuY():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'scripts')", "def HkhS():\n return oAb3.Path(xAKo).parent.parent", "def rlTN():\n return Hy7s.path.dirname(Hy7s.path....
[ "0.81587505", "0.8010721", "0.79568493", "0.79566526", "0.78484774", "0.7801798", "0.7801798", "0.7772783", "0.76802766", "0.7656624", "0.7615678", "0.76141083", "0.75868636", "0.7555554", "0.7295819", "0.72152275", "0.7196306", "0.7196306", "0.717236", "0.717236", "0.7070954...
0.7522438
14
Test that channels_listall is working correctly The list length should be 3 since there are 3 channels that user_1 is member of
def kIFH(): Elif.clear() sLQ1 = FOHO.auth_register('z1111111@ad.unsw.edu.au', 'Password123', 'First', 'Subject') ccSI = sLQ1['token'] z1dU = FOHO.auth_register('z2222222@ad.unsw.edu.au', 'Password222', 'Second', 'Subject') u2Ij = z1dU['token'] IaaG = U0TP.channels_create(ccSI, 'Channel_1', True)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i5rE(sLQ1, z1dU):\n qee6 = xMux.channels_create(sLQ1['token'], 'Channel_1', True)\n OOtb = xMux.channels_create(sLQ1['token'], 'Channel_2', True)\n XdCs = xMux.channels_create(sLQ1['token'], 'Channel_3', True)\n c77q = xMux.channels_create(z1dU['token'], 'Channel_4', True)\n rp6w = xMux.channels...
[ "0.84149987", "0.8242471", "0.8183496", "0.8112553", "0.7827572", "0.7636833", "0.7564454", "0.72272545", "0.71353215", "0.7121438", "0.6917431", "0.68167645", "0.67161745", "0.6619194", "0.66093993", "0.66078067", "0.65944964", "0.65914977", "0.6590317", "0.65493035", "0.645...
0.82878006
1
Test that the created channel has an identical name as given
def EUGi(FpnT): Elif.clear() q8Zk = FpnT[1] mWFP = FpnT[2] assert q8Zk['name'] == mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYKN(YKHO):\n Z9rn = DIz8(name='boots')\n dg7v = DIz8(name='boots')\n YKHO.assertEqual(Z9rn.identifier, dg7v.identifier)", "def EUGi(KdX4):\n qsJ6, sLQ1, q8Zk, mWFP = KdX4\n assert q8Zk['name'] == mWFP\n assert qsJ6['u_id'] in [mAB6['u_id'] for mAB6 in q8Zk['owner_members']]\n assert sLQ...
[ "0.76301104", "0.75468624", "0.7338134", "0.73204076", "0.7215384", "0.72041076", "0.71567726", "0.7057947", "0.70223254", "0.7019575", "0.69411147", "0.69057065", "0.6779211", "0.6776066", "0.6739474", "0.6712769", "0.6679617", "0.6624347", "0.66158706", "0.66136587", "0.658...
0.7864949
0
Test for AccessError if invalid token is put
def bCcC(): Elif.clear() mWFP = 'Channel1' C76K = True with trZe.raises(P1dF.AccessError): U0TP.channels_create('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6IiJ9.xHoCwEdcs3P9KwoIge-H_GW39f1IT3kECz_AhckQGVU', mWFP, C76K)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rJyF(YKHO, P1dF):\n YKHO.request_token()\n return 'Token refreshed. Please try again.'", "def wjco(YKHO):\n uJjO = dSPv.config('user_id')\n oBeo = YKHO.__class__.list_id\n Drzj = zVa7.get_request(GjSa, {u'user_id': uJjO, u'access_token': u'invalid token', u'list_id': oBeo})\n WKvO = YKHO.st...
[ "0.7214553", "0.71323806", "0.7125059", "0.69932055", "0.6945482", "0.6945255", "0.6918838", "0.69129145", "0.6861209", "0.68215597", "0.680194", "0.67878455", "0.6780183", "0.6769051", "0.6762782", "0.67607474", "0.67456895", "0.67215097", "0.6711153", "0.67096454", "0.66962...
0.0
-1
Test for InputError if the given name is > 20 Characters long
def _LFq(): Elif.clear() mWFP = 'abcdefghijklmnopqrstuv' C76K = True sLQ1 = FOHO.auth_register('z1111111@ad.unsw.edu.au', 'Password123', 'Testing', 'Subject') eOtH = sLQ1['token'] with trZe.raises(P1dF.InputError): U0TP.channels_create(eOtH, mWFP, C76K)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QNqz(YKHO, mWFP: str) -> bool:\n return len(mWFP) <= 30 and len(mWFP) != 0", "def KMR7(mWFP):\n if ZbWC.match('^[a-zA-Z0-9-_ .]{3,20}$', mWFP) != None:\n return mWFP\n else:\n raise ValueError()", "def WpLy(mWFP):\n if mWFP is not None and len(mWFP) > k2_T:\n tO9_ = bGrB('n...
[ "0.7865988", "0.78053176", "0.7713131", "0.7668077", "0.76486945", "0.7607372", "0.75382274", "0.7518672", "0.74299556", "0.733803", "0.7277013", "0.7269708", "0.72611725", "0.7251293", "0.7232738", "0.71940637", "0.7116417", "0.7111798", "0.7111798", "0.70930684", "0.7071391...
0.0
-1
Test for AccessError if invalid token is put
def kHwI(): Elif.clear() mWFP = 'Channel1' C76K = 'Somthing else' sLQ1 = FOHO.auth_register('z1111111@ad.unsw.edu.au', 'Password123', 'Testing', 'Subject') eOtH = sLQ1['token'] with trZe.raises(P1dF.InputError): U0TP.channels_create(eOtH, mWFP, C76K)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rJyF(YKHO, P1dF):\n YKHO.request_token()\n return 'Token refreshed. Please try again.'", "def wjco(YKHO):\n uJjO = dSPv.config('user_id')\n oBeo = YKHO.__class__.list_id\n Drzj = zVa7.get_request(GjSa, {u'user_id': uJjO, u'access_token': u'invalid token', u'list_id': oBeo})\n WKvO = YKHO.st...
[ "0.72134256", "0.7132787", "0.7124378", "0.6993723", "0.69461215", "0.6945192", "0.6919529", "0.6912459", "0.6861832", "0.68222547", "0.68022305", "0.6787817", "0.67812073", "0.6769048", "0.6763159", "0.67605215", "0.67452514", "0.67222106", "0.6711669", "0.67097163", "0.6695...
0.0
-1
Test that user login fails when wrong username is provided.
def VuxB(YKHO): gFsc = {'name': 'test', 'password': 'test', 'email': 'test@gmail.com', 'role': HSUm.USER.name, 'origin': h5Wp.INTERNAL.name} eH84 = {'username': 'wrong_user', 'password': 'test'} Ylbp = YKHO.client.post('/api/user/new', data=gFsc) Aofo = qQXR.loads(Ylbp.data.decode()) Ylbp = YKHO.cli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _r7T(YKHO):\n dsbO = mv1M.login('testuserbad', 'pass123')\n YKHO.assertFalse(dsbO)", "def uxth():\n baE4(VSpo, DQrD, 'badusername', '...')", "def cEkh(YKHO):\n YKHO.assertFalse(mv1M.authenticate('badusername', 'password'))", "def cEkh(YKHO):\n YKHO.assertFalse(mv1M.authenticate('tester22',...
[ "0.8877697", "0.8593169", "0.85041046", "0.8491014", "0.8424587", "0.84079564", "0.83776593", "0.8338246", "0.8325141", "0.8319846", "0.8318863", "0.83037865", "0.82998544", "0.8251127", "0.82385087", "0.8204474", "0.8201735", "0.8174932", "0.8168772", "0.81575966", "0.815740...
0.8251932
13
Test that user login fails when wrong password is provided.
def Kkhj(YKHO): gFsc = {'name': 'test', 'password': 'test', 'email': 'test@gmail.com', 'role': HSUm.USER.name, 'origin': h5Wp.INTERNAL.name} eH84 = {'username': 'test', 'password': 'wrong_pwd'} Ylbp = YKHO.client.post('/api/user/new', data=gFsc) Aofo = qQXR.loads(Ylbp.data.decode()) Ylbp = YKHO.clie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q8_E(YKHO):\n YKHO.user_signup()\n YKHO.user.password = 'my_fake_password'\n O_hj, JBvl = YKHO.user_login()\n YKHO.assertEqual(JBvl, 400)\n YKHO.assertEqual(O_hj['status'], 'error')", "def LK9P(YKHO):\n CBIr = mv1M()\n no2R = CBIr.add('user1', 'password')\n YKHO.assertEquals(mv1M.SUCC...
[ "0.8806382", "0.878097", "0.8758528", "0.8683891", "0.86407137", "0.86026955", "0.8589842", "0.856512", "0.85421234", "0.84739107", "0.84591603", "0.8451519", "0.84431505", "0.8432125", "0.8431919", "0.83953154", "0.837321", "0.83534735", "0.83489305", "0.8347324", "0.8346826...
0.8190248
31
Extracts the feature names from arbitrary sklearn models
def vAYu(C3ST, mWFP) -> x1iM[str]: if hasattr(C3ST, 'get_feature_names'): return C3ST.get_feature_names() elif hasattr(C3ST, 'n_clusters'): return [f'{mWFP}_{WKvO}' for WKvO in range(C3ST.n_clusters)] elif hasattr(C3ST, 'n_components'): return [f'{mWFP}_{WKvO}' for WKvO in range(C3ST...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def carQ(WKvO, C3ST):\n bySB = []\n mwtX = WKvO\n for YRbF, yR_P in enumerate(C3ST._modules.values()):\n NVSe = yR_P(mwtX)\n bySB.append(NVSe)\n mwtX = NVSe\n return bySB", "def BZ2A(YKHO, C3ST):\n raise NotImplementedError", "def o1a4(gGnb):\n if qIxc.model in ('rf', 'ml...
[ "0.68986213", "0.6743571", "0.66186416", "0.65451044", "0.6465975", "0.6437529", "0.6396245", "0.63640964", "0.63591444", "0.6356031", "0.6348711", "0.6339219", "0.6269616", "0.62556225", "0.6223048", "0.6221422", "0.6203911", "0.6202458", "0.61954707", "0.61938936", "0.61787...
0.750353
0
Yield a sqlalchemy session.
def bGrB(gCuF, **B2fa): gCuF = gCuF.copy() gCuF.update(B2fa) eHpk = PWOV(gCuF) f57V = Z6Du(eHpk) with Kh6j.manager: cuiw = qyxM(f57V, Kh6j.manager) yield cuiw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ouvA(NUw6):\n from h import db\n cuiw = db.Session(bind=NUw6)\n yield cuiw\n cuiw.close()", "def KfiN(**B2fa):\n cuiw = B0ll.Session(**B2fa)\n yield cuiw\n cuiw.close()", "def cuiw(NCls):\n DMju = oCsa(FJ3D(autocommit=False, autoflush=False, bind=NCls))\n i_Aq.query = DMju.query_...
[ "0.8239303", "0.8102646", "0.8065432", "0.7951898", "0.7815853", "0.7704707", "0.7678432", "0.7632137", "0.7582239", "0.7573812", "0.755281", "0.7526283", "0.74736017", "0.74712956", "0.743871", "0.7391882", "0.73842734", "0.73692894", "0.7355859", "0.73346084", "0.7326428", ...
0.0
-1
Clear the testdata related path.
def tBIc(YKHO): ghJw._TEST_PRJ_PATH1 = '' ghJw._TEST_PRJ_PATH2 = '' ghJw._TEST_PRJ_PATH3 = '' ghJw._TEST_PRJ_PATH4 = ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO) -> None:\n eH4Y = './test_data'\n if Hy7s.path.exists(eH4Y):\n RRlC = Hy7s.listdir('./test_data')\n for nUeQ in RRlC:\n Hy7s.remove(eH4Y + '/' + nUeQ)\n Hy7s.rmdir('./test_data/')", "def Qwg_(pmON=None):\n if pmON is None:\n pmON = xe5l()\n if Hy7...
[ "0.79211015", "0.77473897", "0.7644639", "0.75529176", "0.7547688", "0.7526512", "0.73568046", "0.73568046", "0.7314284", "0.72901756", "0.7288296", "0.7236908", "0.7224718", "0.7220836", "0.72086257", "0.71844894", "0.7183129", "0.71718216", "0.71506524", "0.7145506", "0.713...
0.0
-1
construct IncreseCollection store datas, include different situations for testing.
async def icoll_insert_data(Emd4, ukQo, rEQG='foo'): await ukQo.store(128, rEQG, {'bar': 1}) await ukQo.store(128, rEQG, {'bar': 0}) await ukQo.store(128, rEQG, {'bar': 1, 'apple': 1}) await ukQo.store(128, rEQG, {}) await ukQo.store(128, rEQG, {'apple': 1}) await ukQo.store(128, rEQG, {'bar': -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tik1(YKHO, tWsG):\n for tsYp in YKHO.data_to_collect['individuals']:\n if 'attribute' not in tsYp or tsYp['attribute'] is None:\n raise ValueError('Attribute is a required non-null parameter for data collection, please provide a valid agent attribute')\n print(YKHO.environment.agent...
[ "0.6583845", "0.6506065", "0.64771134", "0.6282705", "0.62649614", "0.620389", "0.616854", "0.616854", "0.6155082", "0.61435425", "0.6142855", "0.6115712", "0.6099588", "0.60666466", "0.6055711", "0.6038349", "0.59855914", "0.5962348", "0.5955245", "0.5949193", "0.5945201", ...
0.0
-1
Mute new member and send message with button
async def welcome(bGrB, Ol8d: Message): T9R3 = [f'{P6bq.mention}' for P6bq in Ol8d.new_chat_members] l5Ny = f'Welcome, {', '.join(T9R3)}\n**Are you human?**\nYou will be removed from this chat if you are not verified in 5 minutes' await Ol8d.chat.restrict_member(Ol8d.from_user.id, OSSx()) nteo = await O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def mute(OaeV, mS46: discord.Member):\n PR57 = await OaeV.guild.fetch_member(mS46.id)\n if mS46 == PR57:\n await mS46.edit(mute=True)\n Q1PJ = ZOrr.Embed(title='User Muted!', description=f'**{mS46}** was muted by **{OaeV.message.author}**!', color=ZOrr.Color.red())\n await OaeV.cha...
[ "0.74956673", "0.7360367", "0.7268478", "0.7173675", "0.7015425", "0.696332", "0.6962585", "0.6928029", "0.6911496", "0.6864884", "0.68537647", "0.67900026", "0.677969", "0.67542773", "0.67331916", "0.6723713", "0.67078435", "0.6700583", "0.6692726", "0.66622144", "0.6661098"...
0.6862206
10
Return value of 32bit signed int
def hgNn(YKHO) -> int: return YKHO._value_as(Hog7.INT32)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LY4g(WKvO):\n if WKvO > 4294967295:\n raise OverflowError\n if WKvO > 2147483647:\n WKvO = int(4294967296 - WKvO)\n if WKvO < 2147483648:\n return -WKvO\n else:\n return -2147483648\n return WKvO", "def Fuc_(exwG):\n if exwG < 0:\n exwG += ...
[ "0.7597088", "0.75318927", "0.75091445", "0.7396936", "0.72924924", "0.72870374", "0.720582", "0.71791196", "0.71726614", "0.71674764", "0.7121346", "0.7059037", "0.6865126", "0.68474364", "0.68407756", "0.683814", "0.67416507", "0.66748655", "0.66078645", "0.659068", "0.6550...
0.73045164
4
Return value of 64bit signed int
def asHF(YKHO) -> int: return YKHO._value_as(Hog7.INT64)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H74U(Ibqj):\n return ZYgz.TInt64_Sign(Ibqj)", "def wxJ4(YKHO):\n KCHu = YKHO._read(8)\n Fg_i = lambda YRbF: KCHu[YRbF]\n WKvO = Fg_i(0) | Fg_i(1) << 8 | Fg_i(2) << 16 | Fg_i(3) << 24 | Fg_i(4) << 32 | Fg_i(5) << 40 | Fg_i(6) << 48 | Fg_i(7) << 56\n if Fg_i(7) & 128 and WKvO > 0:\n WKvO ...
[ "0.74463886", "0.7289812", "0.72624797", "0.72040325", "0.7177835", "0.7012989", "0.7009945", "0.6868968", "0.6842174", "0.6838723", "0.66988856", "0.6692129", "0.6622598", "0.6580834", "0.6535067", "0.6525717", "0.6520283", "0.6505702", "0.6501417", "0.6477552", "0.6460851",...
0.720056
4
Gets all available moves and iterates through these to find the best move by calling the 'minimax' function.
def Jwcz(YKHO, iBIi, LtSS, rb7a): DQoW = -99999 APNk = None for BZN_ in YKHO.rules.get_all_possible_moves(iBIi, 'Black'): bfeQ = iBIi.get_testboard(BZN_[0], BZN_[1]) BWXx = max(DQoW, YKHO.minimax(bfeQ, float('-inf'), float('inf'), not LtSS, rb7a - 1)) if BWXx > DQoW: if n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SR1K(YKHO, Cs6h, rb7a, bDxq=True):\n if ITS7.clock() - YKHO.start_time > YKHO.TIMELIMIT:\n raise Grbl()\n oLdq = Cs6h.getAvailableMoves()\n if rb7a == 0 or not oLdq:\n return (YKHO.score(Cs6h), None)\n Qai7 = float('-inf') if bDxq else float('inf')\n DQoW = None\n for BZN_ in oL...
[ "0.7370987", "0.71786535", "0.7122799", "0.71054804", "0.709815", "0.7092626", "0.70273066", "0.7027048", "0.7022637", "0.7013955", "0.7008313", "0.69808054", "0.6978597", "0.69699556", "0.6965779", "0.69480336", "0.6945469", "0.69364476", "0.69348156", "0.6896032", "0.689291...
0.6571277
61
Broadcasts a message to all the clients.
def iJtT(tO9_, y0cW=''): for iG42 in Onn9: iG42.send(bytes(y0cW, 'utf8') + tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iJtT(tO9_):\n for x0hE in D74A:\n x0hE.send(tO9_)", "def iJtT(tO9_):\n for mWFP in Onn9:\n Onn9[mWFP].send(bytes(tO9_, 'utf8'))", "def wBki(tO9_):\n iJtT(tO9_)\n for x0hE in YJXy.LOBBY:\n x0hE.send(tO9_)", "def iJtT(tO9_):\n for iG42 in Onn9:\n print('sock', iG4...
[ "0.82788026", "0.80906296", "0.79221004", "0.78849614", "0.7863455", "0.7689409", "0.7600799", "0.75450814", "0.75362855", "0.75304943", "0.7479366", "0.74779105", "0.7453509", "0.7449087", "0.74008024", "0.73870194", "0.7377045", "0.7366334", "0.73518723", "0.7322387", "0.73...
0.74786234
11
Insert a value x into the tree in log(log(size)) time
def JPHp(YKHO, WKvO): if YKHO.min is None: YKHO.min = YKHO.max = WKvO return if WKvO < YKHO.min: YKHO.min, WKvO = (WKvO, YKHO.min) if WKvO > YKHO.max: YKHO.max = WKvO if YKHO.size <= 2: return YRbF = YKHO._high(WKvO) nEeK = YKHO._low(WKvO) if YKHO.clus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, WKvO, G1Hx: int):\n Ev_c = _Wmg(WKvO)\n YKHO.size += 1\n YKHO.A.append(Ev_c)\n YKHO.increase_key(YKHO.size - 1, G1Hx)", "def JPHp(YKHO, WKvO: float) -> None:\n if len(YKHO.queue) >= YKHO.n:\n LQyd = YKHO.queue.popleft()\n YKHO.tot_sum -= LQyd\n YKHO.queue.append(WKv...
[ "0.66026706", "0.6549063", "0.6213986", "0.6208463", "0.6200624", "0.61928517", "0.6181626", "0.61737895", "0.61601985", "0.61185825", "0.6118119", "0.61022437", "0.61011165", "0.6088885", "0.6086757", "0.605587", "0.60498136", "0.6018533", "0.6016448", "0.60137147", "0.60067...
0.59983695
22
Decorator for views that checks that the user is logged in and is a staff member, showing Forbidden response if not.
def kpAU(LpBI=None, _HK_=w9Un, XKMW='admin:login'): def mrMx(LpBI): @zaGL(LpBI, assigned=OZfl(LpBI)) def hJoh(QePW, *qIxc, **B2fa): CBIr = QePW.user if CBIr.is_active and CBIr.is_staff: return LpBI(QePW, *qIxc, **B2fa) return G2TX() retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pzd4(JfyU):\n\n def h3Xc(*qIxc, **B2fa):\n if not c5ow.is_authenticated or not c5ow.is_admin:\n return {'message': 'You are not privilaged to perform this action.'}\n return JfyU(*qIxc, **B2fa)\n return h3Xc", "def MgXm(eHNT):\n\n @zaGL(eHNT)\n def GDMi(*qIxc, **B2fa):\n ...
[ "0.7398323", "0.72807443", "0.727825", "0.7251772", "0.7188457", "0.7135328", "0.70487833", "0.70248973", "0.69980884", "0.6997096", "0.69457126", "0.69242716", "0.6856472", "0.68541914", "0.68447393", "0.6839759", "0.6809398", "0.68041813", "0.6800161", "0.6799125", "0.67960...
0.7591534
0
Adds new shirt to database. Unique id is given automatically.
def ajUc(mWFP: str, qfpW: str, zNig: str, Z5kt: int, hI0L: float): N1p7 = NCls.cursor() N1p7.execute('INSERT INTO shirt (name, color, size, amount, price)\n VALUES (?, ?, ?, ?, ?)\n ', [mWFP, qfpW, zNig, Z5kt, hI0L]) NCls.commit() return N1p7.lastrowid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO):\n bo34.info('Creating %s', YKHO.sku)\n YKHO.id = None\n NCls.session.add(YKHO)\n NCls.session.commit()", "def y8j0():\n f8ts = msfn(name='Toothpaste', price=179)\n cuiw.add(f8ts)\n cuiw.commit()", "def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "...
[ "0.7042628", "0.6675037", "0.6170363", "0.6151487", "0.61211616", "0.61211616", "0.61211616", "0.6117263", "0.60831976", "0.6080795", "0.607276", "0.5982232", "0.5965538", "0.59099317", "0.5861723", "0.586104", "0.5857038", "0.58410496", "0.5812634", "0.5780594", "0.5780225",...
0.7574539
0
Adds new shirt to database
def jIik(s4mp: int): N1p7 = NCls.cursor() N1p7.execute('DELETE FROM shirt\n WHERE id = ?\n ', [s4mp]) NCls.commit() return N1p7.rowcount
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ajUc(mWFP: str, qfpW: str, zNig: str, Z5kt: int, hI0L: float):\n N1p7 = NCls.cursor()\n N1p7.execute('INSERT INTO shirt (name, color, size, amount, price)\\n VALUES (?, ?, ?, ?, ?)\\n ', [mWFP, qfpW, zNig, Z5kt, hI0L])\n NCls.commit()\n return N1p7.lastrowid", ...
[ "0.761073", "0.6696386", "0.65825665", "0.62231624", "0.6198596", "0.6171209", "0.61455256", "0.614218", "0.614218", "0.614218", "0.61116064", "0.6090209", "0.60874", "0.6013201", "0.60041517", "0.5961683", "0.5956902", "0.59357387", "0.5926199", "0.5921067", "0.58902603", ...
0.0
-1
Tests that empty dict creates unusable filler item
def HoRY(): WtAL = SnBA.Item() WtAL.make({'type': {}}) assert WtAL.usable == SnBA.NotUsable, 'Failed to set empty string item to NotUsable'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XXph(YKHO):\n eJcr = {}\n EGs0 = {}\n YKHO.assertEqual(EGs0, X1Nz._copy_needed_items_from(eJcr))", "def Axzg():\n nPrm = {}\n with trZe.raises(ValueError):\n mMM9(others=nPrm)", "def lybV(YKHO):\n YKHO.validate_page_inclusions({})", "def BukI(YKHO):\n tpc6 = R1BL()\n for H5...
[ "0.73756945", "0.7341742", "0.72893465", "0.69337857", "0.6809818", "0.6745663", "0.674358", "0.6728314", "0.6699252", "0.669874", "0.66712135", "0.66576314", "0.66368", "0.66332626", "0.66109943", "0.6603854", "0.6592685", "0.65563357", "0.65510094", "0.6525173", "0.6510196"...
0.6078603
92
Function to compute softmax values for each sets of scores in x
def N93T(WKvO): return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=1, keepdims=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye", "def N93T(WKvO):\n j1LR = oyIN.exp(o...
[ "0.8193209", "0.81571543", "0.81571543", "0.78833926", "0.78692925", "0.78692925", "0.78692925", "0.78692925", "0.78692925", "0.78692925", "0.78692925", "0.78542924", "0.78497237", "0.7737333", "0.768256", "0.76359797", "0.7622667", "0.75799835", "0.7534652", "0.7513648", "0....
0.0
-1
If the form or formsets are invalid, rerender the context data with the datafilled form and formsets and errors.
def Bk5k(YKHO, L03z, hfF4, v8iL): return YKHO.render_to_response(YKHO.get_context_data(form=L03z, inlines=hfF4, ticket_forms=v8iL))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ee9W(YKHO, L03z, L5FL, rBGo):\n for dBAz in L5FL.values():\n if dBAz.errors[0]:\n yEHD.error(YKHO.request, dBAz.errors[0])\n return YKHO.render_to_response(YKHO.get_context_data(form=L03z, **L5FL))", "def ee9W(YKHO, L03z, **B2fa):\n QpfX = YKHO.get_context_data()\n QpfX['formset...
[ "0.77129406", "0.71491164", "0.6926235", "0.6853596", "0.6815004", "0.6767402", "0.6689948", "0.6670529", "0.66306514", "0.6452838", "0.64057326", "0.6292605", "0.6287763", "0.6269102", "0.6263461", "0.62175226", "0.61850154", "0.61529183", "0.61514264", "0.6117985", "0.61156...
0.6366549
11
Initialise the Client with a connection to ES
def FIMM(YKHO, UzPC, nWm_): YKHO.snapshots = [] UzPC.index = '_snapshot' YKHO.snapshots_url = VxL_(UzPC, type=nWm_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, d6pt, KcEq, bIwZ):\n YKHO.es = ARBB()\n YKHO.index = d6pt", "def FIMM(YKHO):\n YKHO.client = t4S7.Client(vPBo.quantum_connection_host, vPBo.quantum_connection_port, format='json', logger=na1r)", "def Pntg(YKHO):\n YKHO.client = i9zE()", "def us52(YKHO):\n try:\n kXUa = wx...
[ "0.74830693", "0.73106915", "0.7223911", "0.72052056", "0.7102484", "0.6936524", "0.6894866", "0.6865779", "0.67902875", "0.67791075", "0.67757744", "0.67324674", "0.6727029", "0.67210937", "0.67194194", "0.6685587", "0.6639798", "0.66385657", "0.6635413", "0.6635413", "0.663...
0.0
-1
Delete a snapshot from S3 storage
def msfW(YKHO, Rwel): _hkX = G4JS.delete(YKHO.snapshots_url + '/' + Rwel.name, timeout=600) return _hkX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def msfW(YKHO, Rwel):\n pass", "def msfW(YKHO, Rwel):\n pass", "def msfW(YKHO, Rwel):\n YKHO._try_execute('collie', 'vdi', 'delete', Rwel['volume_name'], '-s', Rwel['name'])", "def msfW(YKHO, Rwel):\n YKHO._try_execute('collie', 'vdi', 'delete', Rwel['volume_name'], '-s', Rwel['name'])", "def m...
[ "0.7783171", "0.77778715", "0.77303857", "0.77048653", "0.76642853", "0.76168007", "0.76089007", "0.75252646", "0.7516905", "0.74006444", "0.7374144", "0.73720336", "0.7323123", "0.7309633", "0.73063266", "0.72316426", "0.7202191", "0.71956235", "0.7142471", "0.71355486", "0....
0.776679
2
A string representation of the args passed to this validator. Used by `__repr__`.
def ZJKE(YKHO) -> str: return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n FiiE = []\n for exwG, a1PO, Ty9i in YKHO:\n if a1PO == GVbD.ARGUMENT:\n FiiE.append(repr(Ty9i))\n elif a1PO == GVbD.ARGUMENT_WITH_DEFAULT or a1PO == GVbD.KEYWORD_ONLY:\n FiiE.append('%s=%r' % (exwG, Ty9i))\n elif a1PO == GVbD.VARARG:\n F...
[ "0.76170754", "0.760405", "0.75148684", "0.74968857", "0.74504864", "0.74108434", "0.7290631", "0.71429545", "0.7137913", "0.7093873", "0.7077102", "0.7042292", "0.69790095", "0.69766074", "0.6927456", "0.68849343", "0.68464565", "0.6842702", "0.68184185", "0.6792542", "0.675...
0.7683177
0
Ensure license compatibility for Firecracker. For a list of currently allowed licenses checkout deny.toml in the root directory.
def yvr0(): QXuz = Hy7s.path.normpath(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), '../../../Cargo.toml')) BfDw.run_cmd('cargo deny --manifest-path {} check licenses'.format(QXuz))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTPb(Ehsq):\n assert lKyQ() is True", "def rPUp() -> None:\n Bbab('adding license text', lambda kZnE, l5Ny: kZnE + l5Ny if not l5Ny.startswith(kZnE) and l5Ny != kZnE[:-1] else None)", "def b8ld(lqQH):\n R0ms = mCW_(lqQH)\n tyNF = I9UN(CZP4)\n qmLP = []\n for sKYw in pBkC():\n KzJa ...
[ "0.68513596", "0.6776916", "0.6579333", "0.64659065", "0.6436985", "0.6329571", "0.621286", "0.6110427", "0.6102496", "0.6093954", "0.6082429", "0.6032284", "0.5965348", "0.59465086", "0.5912107", "0.5831521", "0.58239037", "0.5819431", "0.57824343", "0.5740478", "0.5719488",...
0.77946126
0
Plot the fingerprints (hash constellation) of a spectrogram's peaks.
def Md1s(WXkz, f8a3, nvaI=3, PRui=1, ko2I=10, aNZO=None): if aNZO is None: LZpg, aNZO = QrM1.subplots() TpFT = sorted(zip(WXkz, f8a3), key=lambda XP5J: XP5J[0]) for YRbF, (a1PO, eHNT) in enumerate(TpFT): JaA9 = 0 r845 = YRbF + 1 while r845 < len(TpFT) and JaA9 < nvaI: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zptQ():\n\n def EQTz():\n \"\"\"calculate where the stems of the spectrum peaks are going to be\"\"\"\n WKvO = XTiz.empty([2, YKHO.peaks.mz.size], dtype='float')\n LVAh = XTiz.empty_like(WKvO)\n for YRbF, xruD in enumerate(YKHO.peaks.mz):\n WKvO[0:2, YRbF] = [xruD, xru...
[ "0.6951252", "0.69257295", "0.6413593", "0.6402196", "0.63547236", "0.6324328", "0.6288349", "0.6284365", "0.6273413", "0.62673503", "0.6086214", "0.59722257", "0.5964495", "0.5959343", "0.59443414", "0.5885667", "0.5880386", "0.5877988", "0.58727735", "0.5866749", "0.5843695...
0.67448425
2
Initialize an instance of OutputSink.
def FIMM(YKHO): YKHO.__temp = None YKHO.__stdout = None YKHO.__stderr = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.__sink_cmd_output = LSFv()\n YKHO.__source_cmd_output = LSFv()", "def FIMM(YKHO, Q4Am: typing.TextIO) -> None:\n YKHO.output_stream = Q4Am", "def d07S(YKHO):\n YKHO._stream = V2aK(None, YKHO.config).setStream('output').setType(YKHO.message_type).build()", "def fDOI(YKHO, fD...
[ "0.6923893", "0.68343526", "0.6709786", "0.65937907", "0.65453917", "0.6492048", "0.63633186", "0.62470156", "0.62462556", "0.61448425", "0.61398196", "0.61370033", "0.61114997", "0.6083222", "0.60814816", "0.6069822", "0.6037556", "0.6029169", "0.5996462", "0.5945069", "0.59...
0.0
-1
Convert a string to bytes using iso88591 encoding.
def EFRn(KCHu): return KCHu.encode('iso-8859-1')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EFRn(vIwR):\n return vIwR.encode('iso-8859-1')", "def P2hG(vIwR):\n return vIwR.encode('utf-8')", "def i_l1(KCHu):\n return KCHu.encode('utf8')", "def Xtnk(input):\n Aofo = input.encode('latin-1')\n return Aofo", "def ZqkC(vIwR: str) -> bytes:\n return bytes(vIwR, encoding='utf-8')", ...
[ "0.8105109", "0.7470979", "0.73382586", "0.7120289", "0.70922667", "0.706991", "0.7041982", "0.69912285", "0.69307894", "0.6922438", "0.68662876", "0.6834895", "0.6813551", "0.6802636", "0.67798406", "0.67306834", "0.66971344", "0.6651564", "0.6637447", "0.6469073", "0.639898...
0.78600204
1
Get geometric center of all keypoints.
def WpV9(BR8K): _kXn = oyIN.sum(BR8K[:, 0, 0] * (BR8K[:, 0, 1] > 0)) xtm0 = oyIN.sum(BR8K[:, 1, 0] * (BR8K[:, 1, 1] > 0)) mLGw = float(oyIN.sum(BR8K[:, 0, 1])) return (oyIN.array([_kXn / mLGw, xtm0 / mLGw]), mLGw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgjH(YKHO):\n A4Ls = []\n for WKvO in YKHO.bounds:\n A4Ls.append((WKvO[1] + WKvO[0]) / 2)\n return A4Ls", "def cX4W(NgpY):\n e6ux = NgpY.Centroid()\n return [e6ux.GetY(), e6ux.GetX()]", "def dnA2(YKHO):\n return q3cQ(YKHO.data_points, metric_params={'global_constraint': 'sakoe_chib...
[ "0.72271675", "0.7214412", "0.70891094", "0.7079601", "0.7077322", "0.7054793", "0.70277804", "0.7025051", "0.70164", "0.70097166", "0.6991117", "0.6877969", "0.6840872", "0.68108624", "0.679496", "0.6778908", "0.67773205", "0.6760809", "0.67429364", "0.6731718", "0.6721022",...
0.66294277
38
Save the created_by and last_modified_by fields based on the current admin user.
def xkzz(YKHO, *qIxc, **B2fa): if not YKHO.instance.id: YKHO.instance.created_by = YKHO.user YKHO.instance.last_modified_by = YKHO.user return super(mgvc, YKHO).save(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n YEnM.created_by = QePW.user\n YEnM.updated_by = QePW.user\n YEnM.save()", "def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n if not nZuS:\n YEnM.created_by = QePW.user\n YEnM.save()", "def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n if nZuS:\n YEnM.up...
[ "0.76853245", "0.72582024", "0.7212917", "0.7073326", "0.7045892", "0.70118856", "0.70118856", "0.70118856", "0.7000671", "0.69743925", "0.696459", "0.69538283", "0.6891981", "0.6710482", "0.66777724", "0.66777724", "0.66424245", "0.65436983", "0.6533576", "0.65307397", "0.65...
0.7032679
5
1hot encodes a tensor
def fKLU(LVAh, jTqs): return oyIN.eye(jTqs, dtype='uint8')[LVAh]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(WKvO):\n return oyIN.eye(WKvO.max() + 1)[WKvO]", "def zGX0(WKvO):\n KLLm = []\n jzdc = oyIN.array([0, 0, 0, 0, 0, 0, 0, 0])\n jzdc[WKvO] = 1\n KLLm.append(jzdc)\n return oyIN.asarray(KLLm).astype('int32')", "def GpPk(or8S, tpio):\n ycBG = [0] * tpio\n ycBG[or8S] = 1\n return...
[ "0.8397239", "0.8342454", "0.82294697", "0.81629807", "0.8143967", "0.81028515", "0.809962", "0.8062199", "0.80533415", "0.8046785", "0.8038851", "0.8029096", "0.79069096", "0.7860194", "0.7850401", "0.7841131", "0.7838329", "0.78013283", "0.77874726", "0.7751093", "0.7746245...
0.0
-1
Collate batches of images together.
def QxcP(Wc9F): xkjI, x6A0 = list(zip(*Wc9F)) xkjI = ht2j.stack(xkjI) x6A0 = ht2j.LongTensor(x6A0) return (xkjI, x6A0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QxcP(YKHO, Wc9F):\n Yw_3 = list()\n oUSw = list()\n for Fg_i in Wc9F:\n Yw_3.append(Fg_i[0])\n oUSw.append(Fg_i[1])\n Yw_3 = ht2j.stack(Yw_3, dim=0)\n return (Yw_3, oUSw)", "def QxcP(YKHO, Wc9F):\n Yw_3 = list()\n oUSw = list()\n for Fg_i in Wc9F:\n Yw_3.append(Fg...
[ "0.7522333", "0.7522333", "0.7522333", "0.7491934", "0.7491934", "0.73198915", "0.7216377", "0.71135116", "0.709425", "0.70727104", "0.7052417", "0.70329714", "0.69888186", "0.6942286", "0.6931968", "0.682979", "0.682979", "0.6829113", "0.68093324", "0.6803848", "0.6771134", ...
0.6842026
15
Renders the home page.
def kZiy(): return TvZl('index.html', title='Home Page', year=qcWV.now().year)
{ "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
Renders the contact page.
def Mxk0(): return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='Frc Scouting Analyzer contact info (built by Asaf Soreq).')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85942996", "0.856412", "0.856412", "0.8553042", "0.84771496", "0.84180754", "0.84098697", "0.8347894", "0.8342256", "0.8328687", "0.82468224", "0.82289207", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.8...
0.80279577
33
Renders the contact page.
def qN7z(): return TvZl('photoalbum.html', title='Photo Album', year=qcWV.now().year, message='Photos of various things in the FIRST FRC program')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85942996", "0.856412", "0.856412", "0.8553042", "0.84771496", "0.84180754", "0.84098697", "0.8347894", "0.8342256", "0.8328687", "0.82468224", "0.82289207", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.8...
0.0
-1
Preparing image for transforming into numpy ndarray.
def KSOQ(VXjJ: PIL.Image.Image) -> None: if not isinstance(VXjJ, uGYG.Image.Image): raise TypeError('prepare_img_for_numpy: expected image of type PIL.Image.Image, got {0}'.format(type(VXjJ))) nGDi = VXjJ.convert('RGB') return nGDi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HdH7(LNo8: Image) -> oyIN.ndarray:\n if LNo8.mode != 'RGB':\n LNo8 = LNo8.convert('RGB')\n LNo8 = LNo8.resize((Md1g, uGEl))\n LNo8 = mCo1(LNo8)\n LNo8 = oyIN.expand_dims(LNo8, axis=0)\n LNo8 = LNo8 / 255.0\n return LNo8", "def biH0(YKHO, LNo8):\n return mCo1(LNo8, data_format=YKHO...
[ "0.7960661", "0.7457208", "0.7412004", "0.69384646", "0.69332176", "0.68319595", "0.6798407", "0.6781626", "0.6756397", "0.6728504", "0.6701019", "0.66965795", "0.66725445", "0.6669531", "0.66344845", "0.6618659", "0.6612683", "0.66119426", "0.65816385", "0.65699464", "0.6568...
0.7260076
3
Returns default set of subnet names exported for this model. First goes the one receiving input (input_example).
def vi8H(): return ['self']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Npkd(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'subnets')", "def Npkd(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'subnets')", "def Npkd(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'subnets')", "def Npkd(YKHO) -> h8n...
[ "0.6349517", "0.6349517", "0.6259584", "0.6259584", "0.6259584", "0.60537416", "0.6009", "0.5896635", "0.5896635", "0.5896635", "0.5896635", "0.58926016", "0.58926016", "0.58926016", "0.58926016", "0.58926016", "0.58926016", "0.5718528", "0.57006866", "0.57006866", "0.5696584...
0.59448653
7
The single qubit gate applied by the operation.
def ewpR(YKHO) -> AXKA.Gate: return YKHO._gate
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pfl4(YKHO):\n LZom = Rv0t(1)\n LZom.x(0)\n TkwI = XOH4(LZom)\n aLbr = vu7u(1)\n aLbr.add_gate('X', targets=[0])\n assert YKHO._compare_circuit(TkwI, aLbr)", "def wREM(oZuG, ewpR, XP5J, ywwl=1, oeNL=0):\n uTcP = ewpR * oZuG * ewpR.dag()\n uTcP = D1pa(uTcP, XP5J, ywwl, oeNL)\n return...
[ "0.6888785", "0.68147135", "0.6654016", "0.6615199", "0.6498613", "0.6478834", "0.64696234", "0.6450428", "0.6352595", "0.63274914", "0.6307721", "0.6214201", "0.620876", "0.6194799", "0.61848015", "0.6130343", "0.6104046", "0.60595167", "0.6031154", "0.5991528", "0.59880203"...
0.0
-1
Returns starting state of the board.
def W9gz(): return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO._start_state", "def Ee93():\n exwG = ahzX(mF_7, 5)\n r...
[ "0.8809184", "0.8809184", "0.8809184", "0.8809184", "0.8809184", "0.7431949", "0.7423412", "0.73259264", "0.7287433", "0.72796416", "0.72796416", "0.727574", "0.72462636", "0.7222877", "0.7222877", "0.7222877", "0.7222877", "0.7222877", "0.7222877", "0.7222877", "0.7222877", ...
0.0
-1
Returns set of all possible actions (i, j) available on the board.
def xASv(iBIi): xASv = set() for rdlD in range(3): for VmPb in range(3): if iBIi[rdlD][VmPb] == KAvf: xASv.add((rdlD, VmPb)) return xASv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xASv(iBIi):\n Ylbp = set()\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[0])):\n if iBIi[YRbF][r845] == KAvf:\n Ylbp.add((YRbF, r845))\n return Ylbp", "def xASv(YKHO):\n hksT = YKHO.locs[YKHO.player()]\n if hksT is None:\n return YKHO.libe...
[ "0.8078164", "0.7935423", "0.7917879", "0.7912585", "0.78729856", "0.7766741", "0.77509874", "0.77447766", "0.7738995", "0.7731153", "0.7730132", "0.7709082", "0.77006704", "0.76862395", "0.7676969", "0.76713663", "0.7665846", "0.7654127", "0.7642262", "0.7634384", "0.7632887...
0.7445791
38
Returns the winner of the game, if there is one.
def bHVe(iBIi): for rdlD in iBIi: if rdlD[0] == EcVT and rdlD[1] == EcVT and (rdlD[2] == EcVT): return EcVT elif rdlD[0] == LTX_ and rdlD[1] == LTX_ and (rdlD[2] == LTX_): return LTX_ for YRbF in range(3): if iBIi[0][YRbF] == EcVT and iBIi[1][YRbF] == EcVT and (iB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHVe(YKHO):\n if YKHO.done():\n return YKHO._winner\n else:\n return None", "def ND5o(YKHO):\n return YKHO.win_conditions()[0]", "def bHVe(YKHO):\n return YKHO.board.winner()", "def bHVe(YKHO):\n J2w6 = Bu_I.compute_winner_index(YKHO.result, YKHO.game)\n if J2w6 is False:\...
[ "0.84204966", "0.83580196", "0.8287178", "0.8198144", "0.8198144", "0.81681937", "0.81207126", "0.80583936", "0.79699", "0.79515594", "0.790912", "0.78947943", "0.7893781", "0.78881025", "0.78631395", "0.7850185", "0.7850148", "0.7831243", "0.78113747", "0.77694213", "0.77645...
0.0
-1
Returns 1 if X has won the game, 1 if O has won, 0 otherwise.
def f7Dd(iBIi): if bHVe(iBIi) == EcVT: return 1 elif bHVe(iBIi) == LTX_: return -1 else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hHs1(YKHO):\n return YKHO.winner() == YKHO.X_VAL", "def oyg0(iBIi):\n bHVe(iBIi)\n c8fa = 0\n Jszs = 0\n for YRbF in range(3):\n for r845 in range(3):\n if iBIi[YRbF][r845] == LTX_:\n Jszs += 1\n elif iBIi[YRbF][r845] == EcVT:\n c8fa +...
[ "0.77431494", "0.7665777", "0.7627669", "0.76235044", "0.74548364", "0.744333", "0.7343317", "0.73383707", "0.73096186", "0.7305894", "0.7282681", "0.7275687", "0.7244229", "0.72328174", "0.7207191", "0.7182036", "0.71798617", "0.71759605", "0.7175524", "0.7167598", "0.715218...
0.6856987
63
Build index.html for cherrypy Render the template and return the html file to be delivered to the browser
def d6pt(YKHO, U3hF=None): TCZ_ = YKHO.tplenv.get_template('index.html') Jm1s, pJpB = YKHO.get_alexa_items() fUBX = '\r\n' try: yYOu = YKHO.plugin._proto.log VeNa = '' for zFiD in yYOu: VeNa += str(zFiD) + '\n' except: VeNa = 'No Data available right now\n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_():\n return TvZl('index.html')", "def iDOr(YKHO):\n YKHO.response.headers['Content-Type'] = 'text/html'\n YKHO.response.out.write(sEMF)", "def _1tc():\n return TvZl('index.html')", "def b8V_():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt()...
[ "0.78035253", "0.772851", "0.77045476", "0.7692574", "0.7681318", "0.7661557", "0.7658659", "0.76480913", "0.763999", "0.763999", "0.763999", "0.763999", "0.763999", "0.763999", "0.763999", "0.763999", "0.763999", "0.763999", "0.763999", "0.763999", "0.763999", "0.763999", ...
0.0
-1
Accessor for carla actor.
def _Ufm(YKHO, QiwA): return YKHO.world.get_actor(QiwA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Ufm(YKHO):\n return YKHO.actor", "def w_9D(YKHO):\n return YKHO._actor", "def Zrzj(YKHO):\n return YKHO._actor", "def JgjC(YKHO, mWFP):\n return getattr(YKHO.actor, mWFP)", "def _Ufm(YKHO):\n return YKHO._vtk_actor", "def gNbh(YKHO, YRbF):\n return YKHO.actors[YRbF]", "def ehDb(Y...
[ "0.7621799", "0.75664055", "0.72253346", "0.71925694", "0.6843742", "0.6553208", "0.639541", "0.63286257", "0.62990874", "0.6277195", "0.625031", "0.61493164", "0.61493164", "0.6099837", "0.6043719", "0.60176873", "0.5983859", "0.5963635", "0.59592086", "0.5954225", "0.595242...
0.6274119
10
Get amount of time lock file has existed in seconds
def N_N1(YKHO): ZJe_ = fCoM(seconds=ITS7.time() - Hy7s.path.getmtime(YKHO.lock_dir_path)) return ZJe_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wDLS(gIsw):\n if not Hy7s.path.exists(gIsw):\n return -1\n return ITS7.time() - Hy7s.path.getmtime(gIsw)", "def wDLS(Ux0P):\n C6wh = int(ITS7.time() - Hy7s.path.getmtime(Ux0P))\n return qcWV.timedelta(seconds=C6wh)", "def FI1k(pmON):\n return Hy7s.path.getmtime(pmON)", "def BjIo(qaE...
[ "0.6983765", "0.68714166", "0.67971534", "0.6722525", "0.66707045", "0.6603313", "0.65919", "0.64128727", "0.6403512", "0.63266325", "0.6325767", "0.6319814", "0.6301067", "0.6297844", "0.62415975", "0.62305623", "0.6198194", "0.619383", "0.61895394", "0.61895394", "0.6178913...
0.7367292
0
Sets the device_type of this MeetingHistoryParticipantList.
def DS1x(YKHO, DS1x): BbPm = ['Carmel', 'WebRTC'] if DS1x not in BbPm: raise ValueError('Invalid value for `device_type` ({0}), must be one of {1}'.format(DS1x, BbPm)) YKHO._device_type = DS1x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DS1x(YKHO, DS1x):\n YKHO._device_type = DS1x", "def DS1x(YKHO, DS1x):\n YKHO._device_type = DS1x", "def DS1x(YKHO, DS1x):\n YKHO._device_type = DS1x", "def IPCV(YKHO, IPCV):\n YKHO._user_device_type = IPCV", "def WNcl(YKHO, DS1x):\n raise NotImplementedError('Not Implemented')", "def M...
[ "0.70785004", "0.70785004", "0.70785004", "0.63564944", "0.6334796", "0.5986264", "0.5954393", "0.5738407", "0.5431056", "0.5412068", "0.5304183", "0.528234", "0.5278163", "0.515575", "0.514993", "0.51236373", "0.51174504", "0.50843704", "0.5076715", "0.5076715", "0.5056414",...
0.6738217
3
Sets the email of this MeetingHistoryParticipantList.
def D3lj(YKHO, D3lj): YKHO._email = D3lj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lEeL(YKHO, D3lj):\n YKHO.__email = D3lj", "def srEc(YKHO, D3lj):\n YKHO.email = D3lj", "def lEeL(YKHO, D3lj: str):\n YKHO.__email = D3lj\n return YKHO", "def srEc(YKHO, D3lj=''):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n if D3lj is None:\n raise ValueError('Invalid value ...
[ "0.7215102", "0.72150755", "0.71816814", "0.718036", "0.7106645", "0.7106645", "0.70683044", "0.70492226", "0.6981735", "0.6981735", "0.6851745", "0.6851745", "0.6851745", "0.68425435", "0.68156064", "0.68001145", "0.68001145", "0.68001145", "0.68001145", "0.68001145", "0.674...
0.6949959
11
Sets the remote_address of this MeetingHistoryParticipantList.
def rqBh(YKHO, rqBh): YKHO._remote_address = rqBh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def paGG(YKHO, rqBh):\n raise NotImplementedError('Not Implemented')", "def NWyU(YKHO, NWyU):\n YKHO._remote_uuid = NWyU", "def bHMi(YKHO, bHMi):\n YKHO._remote_url = bHMi", "def y5Cv(YKHO, y5Cv):\n YKHO._remote = y5Cv", "def DMFF(YKHO, BWXx):\n YKHO.__socketConfig.setRemoteAddress(BWXx)\n ...
[ "0.70361835", "0.6752555", "0.6491203", "0.64684665", "0.61981064", "0.61713755", "0.61713755", "0.59867865", "0.5913992", "0.57308775", "0.55390304", "0.54769653", "0.5465529", "0.5391571", "0.5326494", "0.52569443", "0.52483064", "0.51777124", "0.51390463", "0.513416", "0.5...
0.7230615
0
Sets the is_moderator of this MeetingHistoryParticipantList.
def sTQF(YKHO, sTQF): YKHO._is_moderator = sTQF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTQF(YKHO):\n return YKHO.role == YKHO.PermissionChoice.MODERATOR", "def sTQF(YKHO):\n return False", "def Pesz(YKHO, yR7T: List[str]) -> None:\n for mWFP in yR7T:\n YKHO.add_user_role(mWFP, vg4R.ROLE_ID_MODERATOR)", "def aEVy(YKHO, aEVy):\n YKHO._is_moderator_less = aEVy", "def sTQF...
[ "0.64918554", "0.6416244", "0.6415648", "0.63430727", "0.62921673", "0.6282138", "0.61658704", "0.59536475", "0.5722379", "0.5695426", "0.5387534", "0.5360069", "0.52961046", "0.5259245", "0.49111214", "0.4872122", "0.48627463", "0.48388976", "0.4833099", "0.48323333", "0.480...
0.83831286
0
Sets the participant_guid of this MeetingHistoryParticipantList.
def fxzN(YKHO, fxzN): YKHO._participant_guid = fxzN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAlC(YKHO, zAlC):\n YKHO._participant = zAlC", "def zAlC(YKHO, zAlC):\n YKHO._participant = zAlC", "def vjuM(YKHO, vjuM):\n YKHO._meeting_guid = vjuM", "def zAlC(YKHO, zAlC: AllOfSyncVerificationParticipant):\n if zAlC is None:\n raise ValueError('Invalid value for `participant`, must ...
[ "0.62061197", "0.62061197", "0.6185309", "0.6047546", "0.5904985", "0.5689295", "0.5685143", "0.55549896", "0.55237895", "0.54951036", "0.5383444", "0.53235626", "0.53078556", "0.53078556", "0.53041977", "0.53041977", "0.53041977", "0.5248656", "0.50953305", "0.50380206", "0....
0.77948594
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
Use the ```predict_proba``` method to predict labels for data points.
def YEmv(YKHO, EcVT): BNgt = YKHO.predict_proba(EcVT, append_bias=True) return oyIN.greater(BNgt[:, 0], BNgt[:, 1]).astype(int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KR85(YKHO, EcVT):\n if YKHO.verbose:\n bo34('test', 'Predicting labels for %d samples' % EcVT.shape[0])\n return oyIN.array([YKHO.predict_label(mvm2) for mvm2 in EcVT])", "def KR85(YKHO, EcVT):\n pass", "def KR85(YKHO, EcVT):\n pass", "def KR85(YKHO, EcVT):\n pass", "def KR85(YKHO...
[ "0.8535726", "0.8499719", "0.8499719", "0.8499719", "0.8499719", "0.8499719", "0.83975077", "0.83807987", "0.83795327", "0.83679044", "0.8302", "0.82691205", "0.82618195", "0.82567143", "0.80997753", "0.80996644", "0.80932784", "0.806932", "0.80692226", "0.8051346", "0.803939...
0.0
-1
compute the relative predicted horizonal(x) coordinates Vc,Vw becuase we have fixed height 16 or 32, width is variable
def BVMe(qvIa, nhs9): VBET = (nhs9[:, 0] + nhs9[:, 2]) * 0.5 se5y = (qvIa[:, 0] + qvIa[:, 2]) * 0.5 XcU5 = nhs9[:, 2] - nhs9[:, 0] + 1.0 HueY = qvIa[:, 2] - qvIa[:, 0] + 1.0 eMWi = (VBET - se5y) / HueY EiI_ = oyIN.log(XcU5 / HueY) return oyIN.vstack((eMWi, EiI_)).transpose()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nhaS(YKHO) -> AzJI[float, float, float, float]:\n return (YKHO.l, YKHO.t, YKHO.w, YKHO.h)", "def yKGs(YKHO, WKvO, LVAh, yzQ0, MKlR):\n pAIe = YKHO.ann_info['image_size'][0] / YKHO.ann_info['image_size'][1]\n hgjH = oyIN.array([WKvO + yzQ0 * 0.5, LVAh + MKlR * 0.5], dtype=oyIN.float32)\n if not YK...
[ "0.6280743", "0.6253229", "0.60757774", "0.605634", "0.5933061", "0.57765436", "0.57765436", "0.57765436", "0.5771634", "0.5771634", "0.5771634", "0.576478", "0.5745369", "0.5745369", "0.5745369", "0.5745369", "0.5745369", "0.5732494", "0.57165587", "0.56894404", "0.5671133",...
0.0
-1
normalize the columns of the matrix B= normr(A) normalizes the row the dtype of A is float
def MRmH(I7o1): I7o1 = I7o1.reshape(1, -1) if I7o1.dtype != 'float': I7o1 = MF4b(I7o1, dtype=float) tjUW = (I7o1 - min(I7o1)) / (max(I7o1) - min(I7o1)) tjUW = XTiz.reshape(tjUW, -1) return tjUW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aB7J(k0lF):\n return k0lF / oyIN.linalg.norm(k0lF, axis=1)[:, None]", "def zdGZ(YKHO):\n for exwG, WKvO in enumerate(YKHO.A):\n r8o1 = sum(WKvO)\n for YRbF in range(len(WKvO)):\n if r8o1 != 0:\n YKHO.A[exwG][YRbF] = float(YKHO.A[exwG][YRbF]) / r8o1", "def NkkI(...
[ "0.7620052", "0.7305232", "0.72872204", "0.7079532", "0.69601923", "0.6931575", "0.69259804", "0.68851495", "0.6863701", "0.6852564", "0.68414164", "0.68008196", "0.6790365", "0.67661446", "0.67628676", "0.6745516", "0.6742598", "0.67330045", "0.6731875", "0.66116995", "0.661...
0.7494704
1
Takes a FilePath and returns a path string relative to the root
def kDm2(YKHO, AesY): if AesY == YKHO.root: return '/' return '/' + '/'.join(AesY.segmentsFrom(YKHO.root))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F28p(qaEx):\n return gzes(XaMH, qaEx)", "def ibch(YKHO, pmON):\n return Hy7s.path.join(YKHO.root_dir, pmON)", "def pmON(YKHO, qaEx):\n return gzes(YKHO._root, qaEx)", "def pmON(j6_k: str='') -> str:\n if VQ6Z.root_path is None:\n VQ6Z.root_path = GkAb(xAKo).resolve().parent.parent\n ...
[ "0.80586207", "0.78579974", "0.7699405", "0.764642", "0.7609505", "0.7609505", "0.75790364", "0.7557583", "0.7533874", "0.75171614", "0.7501109", "0.7498772", "0.7481056", "0.74788713", "0.74443215", "0.7400451", "0.7370615", "0.7369398", "0.7368223", "0.7367929", "0.7364363"...
0.7649276
3
Returns the path where the cache of this taxonomy should be written/located
def GLdC(gY90): aqKe = Hy7s.path.basename(gY90) _OIP = aqKe + '.db' BXLT = Hy7s.path.join(GPtr.CFG_CACHEDIR, 'bibclassify') return Hy7s.path.abspath(Hy7s.path.join(BXLT, _OIP))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gLDJ(YKHO) -> GkAb:\n return YKHO._cache_path", "def fEVd(YKHO) -> GkAb:\n return YKHO._get_cache_dir() / YKHO._create_file_name()", "def BXLT(YKHO):\n return YKHO.path('cache')", "def TfyK(YKHO):\n return YKHO._cache_directory", "def I7Lz(YKHO) -> GkAb:\n return GkAb(YKHO.directory)", ...
[ "0.809817", "0.7662481", "0.75743055", "0.74370646", "0.7431782", "0.74302", "0.73808026", "0.73137045", "0.73137045", "0.7262765", "0.72442853", "0.7241688", "0.7215939", "0.71309626", "0.7123172", "0.7109532", "0.7055957", "0.7044893", "0.7044893", "0.693749", "0.6918207", ...
0.6624765
34
Get the last modification date of the ontology.
def YnOA(bD7m): QePW = dTAH.Request(bD7m) QePW.get_method = lambda: 'HEAD' Z03N = Kf9k(QePW) JvEs = Z03N.headers['last-modified'] U5Jc = ITS7.strptime(JvEs, '%a, %d %b %Y %H:%M:%S %Z') return qcWV(*U5Jc[0:6])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CHQE(YKHO):\n return YKHO._last_modified_date", "def CHQE(YKHO):\n return YKHO._last_modified_date", "def GrKn(YKHO):\n return qcWV.datetime.strptime(YKHO.meta['modified'][:10], '%Y-%m-%d')", "def TO1Y(YKHO):\n return qcWV.fromtimestamp(YKHO._info.file.mtime)", "def lZqa(YKHO) -> qcWV:\n ...
[ "0.7637101", "0.7637101", "0.7490389", "0.7448959", "0.72831225", "0.72809184", "0.72717905", "0.7267957", "0.7267957", "0.7267957", "0.7267957", "0.7240017", "0.72094804", "0.7139545", "0.7136148", "0.7122051", "0.7115661", "0.7115661", "0.7115661", "0.710275", "0.7071267", ...
0.67939204
62
Checks if a concept is a regular expression.
def yd8u(vIwR): return vIwR[0] == '/' and vIwR[-1] == '/'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def agck(YKHO):\n return J8uC.SBTypeNameSpecifier_IsRegex(YKHO)", "def iDkC(YKHO):\n YKHO.assertFalse(YAv9(''))\n YKHO.assertFalse(YAv9('No punctuation'))\n YKHO.assertTrue(YAv9('.*'))\n YKHO.assertTrue(YAv9('bar?foo'))\n YKHO.assertTrue(YAv9('[a-z]+foo'))", "def iDkC(YKHO):\n YKHO.failUnl...
[ "0.7235407", "0.7163972", "0.69522446", "0.69138545", "0.6757439", "0.6750577", "0.656267", "0.65598524", "0.6472397", "0.6446948", "0.643635", "0.63807166", "0.6372842", "0.6336334", "0.623893", "0.62066865", "0.6184137", "0.6184137", "0.6176567", "0.61712724", "0.6123411", ...
0.6561643
7
Yield the factors of n in ascending order.
def Llmz(exwG): eEZP = XWfU(exwG) lO0M = list(filter(lambda G1Hx: exwG % G1Hx == 0, range(1, eEZP + 1))) orUM = [exwG // G1Hx for G1Hx in lO0M] if eEZP * eEZP == exwG: lO0M.pop() yield from lO0M yield from reversed(orUM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Llmz(exwG):\n return sorted((WKvO for SjLr in ([YRbF, exwG // YRbF] for YRbF in range(1, int(exwG ** 0.5) + 1) if exwG % YRbF == 0) for WKvO in SjLr))", "def Llmz(exwG):\n for XP5J in I71t(int(exwG ** 0.5) + 1):\n if XP5J * XP5J > exwG:\n break\n while not exwG % XP5J:\n ...
[ "0.88687974", "0.8709009", "0.8611961", "0.8595598", "0.8446788", "0.84447646", "0.8415133", "0.8320849", "0.8270332", "0.8248604", "0.8215839", "0.82088995", "0.81665367", "0.8077079", "0.80732", "0.80671465", "0.80671465", "0.80409145", "0.80388504", "0.7999218", "0.7995699...
0.8640107
2
Return a short string describing the speed with the given parameters. Conditions are dmaj >= dmin >= 0, dmaj > 0, period >= 1.
def Uiqm(MNAr, avsh, pQ4c): if MNAr > avsh > 0: M6pt = f'({MNAr},{avsh})' H0Xx = '' elif MNAr == avsh: M6pt = f'{MNAr}' if MNAr > 1 else '' H0Xx = 'd' else: M6pt = f'{MNAr}' if MNAr > 1 else '' H0Xx = 'o' UUZ1 = f'/{pQ4c}' if pQ4c > 1 else '' return f'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return 'Speed states (cm.s⁻¹): | X : {} | Y : {} | Z : {} |'.format(YKHO.x_speed, YKHO.y_speed, YKHO.z_speed)", "def ERGf(YKHO):\n return YKHO.get_string('getSpeed', [])", "def ERGf(YKHO):\n return YKHO.get_string('getSpeed', [])", "def fndD(YKHO):\n return 'Distances: %s\\nSpee...
[ "0.58964896", "0.58935827", "0.58935827", "0.5777564", "0.56272745", "0.5550177", "0.55223113", "0.547602", "0.5465276", "0.5460827", "0.54561967", "0.5454121", "0.54252005", "0.54247314", "0.5382242", "0.5344975", "0.5342806", "0.53298664", "0.5329022", "0.53280807", "0.5313...
0.7781543
0
Test check job status
def jMzU(YKHO): im04 = YKHO.app.post('/check_job_status/?PID=999999') assert 'finished' in im04.data im04 = YKHO.app.post('/check_job_status/?PID=1') assert 'currently running' in im04.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j4uH(YKHO):\n pass", "def GWyj(YKHO):\n oCfW = W7aK({'gas_payer': eBet, 'gas_payer_priv': SEKk}, Kz8N, hokg)\n oCfW.launch(Qv1X)\n R7S5 = [('address', oCfW.job_contract.address), ('gasPayer', eBet), ('gasPayerPrivate', SEKk)]\n geh0 = YKHO.client.open('/job/status', method='GET', query_string=...
[ "0.8005402", "0.77845955", "0.7704995", "0.75881094", "0.75635964", "0.7528309", "0.7467226", "0.74591166", "0.73577625", "0.7313026", "0.73073286", "0.72617656", "0.72617656", "0.7243689", "0.7232921", "0.72064674", "0.7196488", "0.7185945", "0.7181217", "0.71693236", "0.714...
0.85994905
0