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
Retrieves the path relative to the media folder for the jsnap name specified. Returns None if there is no such file with the specified name.abs
def VdDi(sCAn): if sCAn[-6:] != '.jsnap': sCAn += '.jsnap' try: Ij9j = yqQg.objects.get(data='tests/' + sCAn) except rIt9: raise ODt5("Unable to locate a Jsnap file with the name: '" + sCAn + "'") except YkSz: raise ODt5("Multiple entries for the specified Jsnap file name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gF25(ta1k):\n zOGz = Hy7s.path.dirname(xAKo)\n XNWQ = Hy7s.path.join(zOGz, '..', 'media', ta1k)\n return Hy7s.path.abspath(XNWQ)", "def NVxF(mWFP):\n Ux0P = Hy7s.path.abspath(Hy7s.path.join('.', 'journals', mWFP + '.jrl'))\n return Ux0P", "def Zg0d(YKHO):\n ESvo = pmON.join(YKHO.ctx.path_...
[ "0.7445365", "0.6729253", "0.63234425", "0.62477297", "0.6235858", "0.62314534", "0.60702384", "0.6038623", "0.5996774", "0.5975949", "0.5929348", "0.5917959", "0.58850116", "0.5880306", "0.5850443", "0.5847595", "0.5825806", "0.58115965", "0.57885534", "0.5743399", "0.573398...
0.766831
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.7374892", "0.73494405", "0.73194486", "0.7301892", "0.7301892", "0.7301892", "0.7301892", "0.7301892", "0.7301892", "0.7301892", "0.7301892", "0.7301892", "0.7301892", "0.7301892", "0.7301892", "0.7301892", "0.7301704", "0.7300591", "0.72966045", "0.72966045", "0.72966045"...
0.7161424
70
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.7096743", "0.6880364", "0.6871038", "0.68567646", "0.68537796", "0.6847104", "0.6847104", "0.6845744", "0.6845183", "0.6843754", "0.6830059", "0.6830059", "0.6830059", "0.6821449", "0.6818357", "0.68145937", "0.6813293", "0.68131137", "0.6810319", "0.68033844", "0.6803375"...
0.6785563
28
Limit view to superusers only.
def vMp3(m2Zb): def Ch18(QePW, *qIxc, **B2fa): if not QePW.user.is_superuser: raise wPvU return m2Zb(QePW, *qIxc, **B2fa) return Ch18
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ekto(tTee):\n\n @zaGL(tTee)\n def GDMi(QePW, *qIxc, **B2fa):\n \"\"\"\n Wrapper for view function. It check if user is a superuser. If not, raise a\n PermissionDenied exception\n\n :param request: web request\n :param args: package view function argument as a list\n ...
[ "0.71854675", "0.6801889", "0.67743677", "0.6767953", "0.67006874", "0.66151315", "0.6494239", "0.6485096", "0.6393534", "0.6379122", "0.6353926", "0.63284594", "0.62925655", "0.6276138", "0.62758654", "0.62590045", "0.62590045", "0.62590045", "0.6219395", "0.61967677", "0.61...
0.71243745
1
Replace panel for "form_fields" with panel pointing to the custom form field model.
def CNC4(): oMnB = [XYbJ('segment')] for BcQj in ZW99.content_panels: if isinstance(BcQj, lhUX) and BcQj.relation_name == 'form_fields': BcQj = lhUX('personalisable_form_fields', label=bGrB('personalisable form fields')) oMnB.append(BcQj) return oMnB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aL00(Emd4, ule9):\n zRdZ = Emd4._translation_options.fields\n sTju = []\n if ule9.field_name in zRdZ:\n for DuqQ in gCuF.LANGUAGES:\n KndY = ule9.classname\n if Emd4._is_orig_required(ule9.field_name) and DuqQ[0] == gCuF.LANGUAGE_CODE:\n if h2c0(ule9.field_n...
[ "0.6455191", "0.63549215", "0.61900324", "0.6168463", "0.6034191", "0.59887904", "0.5840133", "0.56522244", "0.5625714", "0.555984", "0.550159", "0.54880756", "0.54634243", "0.5436067", "0.53943855", "0.53435546", "0.53337616", "0.5327243", "0.5323787", "0.53098965", "0.52593...
0.5182143
26
Get form's form field's labels with segment names if there's one associated.
def yPwO(YKHO): i9s9 = [('username', bGrB('Username')), ('submit_time', bGrB('Submission Date'))] for Jyyj in YKHO.get_form_fields(): UXqs = Jyyj.admin_label if Jyyj.segment: UXqs = '{} ({})'.format(UXqs, Jyyj.segment.name) i9s9.append((Jyyj.clean_name, UXqs)) return i9s9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vAJH(YKHO):\n Csk6 = dict()\n for eHNT in YKHO._meta.fields:\n try:\n Csk6[eHNT.name] = YKHO._meta.get_field(eHNT.name).verbose_name\n except:\n pass\n return Csk6", "def Te1x(YKHO):\n Ylbp = []\n if YKHO._label:\n Ylbp.append(YKHO._label)\n if YKH...
[ "0.6611432", "0.6574277", "0.61375844", "0.60792243", "0.60619307", "0.5973666", "0.5911153", "0.5880645", "0.58740926", "0.58581483", "0.58581483", "0.58581483", "0.5849056", "0.58303934", "0.58234555", "0.5785736", "0.5785736", "0.5785736", "0.5785736", "0.5785736", "0.5785...
0.5814746
15
get json response and turn it into a dictionary
def jC0r(YKHO, geh0): YKHO.data = geh0.json()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CXY2(geh0):\n return qQXR.loads(qQXR.dumps(geh0.data))", "def qQXR(geh0):\n return _1kr(geh0.decode())", "def sb_w(geh0):\n return geh0.json()", "def c3ht(geh0):\n if isinstance(geh0.json, dict):\n return geh0.json\n return geh0.json()", "def qQXR(YKHO, geh0):\n return geh0.jso...
[ "0.8145632", "0.8016943", "0.7720559", "0.763296", "0.7613663", "0.76012814", "0.76012814", "0.7583568", "0.7580736", "0.7508519", "0.74842024", "0.74447525", "0.7435976", "0.73032635", "0.7281547", "0.7278174", "0.7248217", "0.7178418", "0.7178418", "0.71523964", "0.7119819"...
0.6790264
41
Takes a Slack token, a target username, and output of 'all' (True) or just 'shared' (False). Returns a list of channel names (not IDs).
def R8TK(eOtH, jYUE, ef_z): amBe = [] yVA2 = DKU5(eOtH) es2U = Ipyk(jYUE, yVA2) if es2U is None: raise Exception("Target user '%s' not found in channel list" % jYUE) kZLj = Fd76(eOtH) for qMjG in kZLj: gB9w, RbR6, n9_s = eFZl(eOtH, qMjG) if es2U not in n9_s: c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wtv2():\n eOtH = QePW.args.get('token')\n return PjZe(LJlj(eOtH))", "async def list(YKHO, OaeV):\n N5z6 = OaeV.message.server\n YwkQ = OaeV.message.channel\n CBIr = OaeV.message.author\n r50I = ZOrr.Embed(colour=CBIr.colour)\n r50I.set_author(name='Osu! Players Currently Tracked in {}'.f...
[ "0.6441483", "0.6198206", "0.611842", "0.59817225", "0.59720874", "0.59311104", "0.59103215", "0.58311594", "0.5823452", "0.5758677", "0.57281154", "0.5711744", "0.5697469", "0.568981", "0.5677633", "0.56663525", "0.56581193", "0.56415534", "0.5617666", "0.5608385", "0.555322...
0.7166421
0
Given an image, and the parameters to subsample the image with boxes, the function returns a list of bounding boxes which are predicted to have a vehicle.
def jwRR(VXjJ, GTOg, QDbH, NXpY, M_NZ, Y5YY, ENzu, Z29w, VTMH, KGZ2, gTPl, JK6U='YCrCb'): c8oy = [] VXjJ = VXjJ.astype(oyIN.float32) / 255 pOHn = VXjJ[GTOg:QDbH, :, :] lF6z = nNkg(pOHn, conv='RGB2' + JK6U) if NXpY != 1: uy83 = lF6z.shape lF6z = XC5k.resize(lF6z, (oyIN.int(uy83[1] / N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oNcH(LNo8, BFeB):\n o_lr = 32\n EcVT = 3\n gljz = (EcVT, EcVT)\n JOt9 = oyIN.ones(gljz, dtype=oyIN.uint8)\n hlel = oyIN.pad(LNo8, (gljz, gljz), 'constant')\n hlel = ivFb(hlel, structure=JOt9, iterations=1).astype(oyIN.uint8)\n hlel = hlel[EcVT:-EcVT, EcVT:-EcVT]\n Crrw, mLGw = UXqs(hlel...
[ "0.68212837", "0.67700994", "0.6438534", "0.6426411", "0.6413358", "0.6351647", "0.6323012", "0.631965", "0.631365", "0.63108355", "0.6303756", "0.6293155", "0.62625146", "0.6243375", "0.624198", "0.62408125", "0.6206826", "0.6171203", "0.6145126", "0.61409694", "0.6137897", ...
0.5820101
58
Create an LSTM layer with shared variable internal parameters.
def FIMM(YKHO, e9HV, g4y1, gqcO, H0q3, LqOz=None): lzjZ = e9HV.attrib['name'] assert len(g4y1) == 3 assert len(gqcO) == 3 YKHO.input = g4y1[0] YKHO.prev_h = g4y1[1] YKHO.prev_c = g4y1[2] Ya2q, bGrB = gqcO[0] CtlV, K_dq = gqcO[1] assert K_dq == gqcO[0][1] assert K_dq == gqcO[2][1]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, NArs: LSTMMiddlewareParameters):\n super(rqFd, YKHO).__init__(NArs)\n YKHO.number_of_lstm_cells = NArs.number_of_lstm_cells\n with YKHO.name_scope():\n YKHO.lstm = unC1.LSTM(hidden_size=YKHO.number_of_lstm_cells)", "def Dlga(YKHO):\n vHnr = G1Hx.layers.Input(shape=(YKHO.input_sh...
[ "0.69327796", "0.690659", "0.6857542", "0.67810005", "0.6748284", "0.6738357", "0.66900116", "0.6683134", "0.66828626", "0.6675463", "0.6657713", "0.66506904", "0.66056937", "0.6600543", "0.6591196", "0.6589372", "0.6578339", "0.65720767", "0.65628815", "0.65530497", "0.65344...
0.0
-1
Pulls apart the filename to make sure it is the right format. If it is, then the picture number is returned. If it is no, then False is returned.
def oKX7(YKHO, Ux0P, klql, YBcr): gsVD = len(klql) e3IO = len(YBcr) JXIt = len(Ux0P) - (e3IO + 1) p8LR = Ux0P[:gsVD] jQXU = Ux0P[gsVD:JXIt] ZAGD = Ux0P[JXIt:] if ZAGD != '.' + YBcr or p8LR != klql or (not jQXU.isdigit()): YKHO.logger.log('Found wrong format file in image folder: ' + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _o9o(Ux0P: str) -> int:\n if Ux0P == '':\n return 0\n else:\n gIsw = Ux0P.split('.')\n if gIsw[1] == 'png':\n return 1\n else:\n return 2", "def oKX7(YKHO, Ux0P, klql, YBcr):\n gsVD = len(klql)\n e3IO = len(YBcr)\n JXIt = len(Ux0P) - (e3IO + 1)...
[ "0.7410067", "0.722971", "0.6641832", "0.6468951", "0.64361143", "0.6420909", "0.6404071", "0.6380905", "0.63500696", "0.6336227", "0.6168766", "0.6126003", "0.6119985", "0.6091409", "0.6091393", "0.60839206", "0.60836476", "0.60663617", "0.60597473", "0.6046154", "0.60331285...
0.74276805
0
This method returns the inception_v3 model with custom TOP layers All layers except the TOP are frozen (i.e. cannot be trained)
def pwOp(tKig, ROaS=1024, K0do='rmsprop', GhuM=(299, 299, 3)): rvDU = dn_8(input_shape=GhuM, weights='imagenet', include_top=False) WKvO = rvDU.output WKvO = Pf_s(name='features_original')(WKvO) WKvO = l6ZH(ROaS, activation='relu', name='features')(WKvO) N6Z1 = l6ZH(tKig, activation=NArs.pred_activa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dn_8(YKHO):\n if YKHO.train:\n q1Of = Hy7s.path.join(YKHO.working_directory, 'inceptionv3_notop_model.h5')\n if not Hy7s.path.exists(q1Of):\n print('Downloading InceptionV3_Notop_weights...')\n bD7m = 'https://github.com/fchollet/deep-learning-models/releases/download/v0....
[ "0.7911625", "0.7244641", "0.7229597", "0.6978979", "0.6963838", "0.67626756", "0.66619706", "0.66207606", "0.65699166", "0.656911", "0.654419", "0.65032053", "0.64687955", "0.6428949", "0.64090556", "0.637147", "0.63489056", "0.631115", "0.6228603", "0.6124249", "0.610267", ...
0.6684298
6
This method opens, reads, cleans and saves a textual file.
def VMB2(YKHO, YXAG, Ls8p=None): if Ls8p == None: Ls8p = YXAG l5Ny = YKHO.read(YXAG, True) try: hlel = open(Ls8p, 'w') hlel.write(l5Ny) hlel.close() except IOError: return None return str(l5Ny.encode('utf-8'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lc1k(YKHO, VOY3):\n assert VOY3.lower().endswith('.txt'), 'Saved file must have the file extension *.txt'\n with open(VOY3, 'w+', encoding='utf-8') as nUeQ:\n nUeQ.write(YKHO.decoded_text)", "def cu2n(YKHO):\n U1Qf = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n Ux0P = lZdW.getOpenFileName(...
[ "0.6962093", "0.67148745", "0.6695799", "0.6694591", "0.6690623", "0.66566116", "0.6509304", "0.6477257", "0.64588994", "0.64231914", "0.6417972", "0.63652754", "0.6359094", "0.6350714", "0.6345233", "0.63004285", "0.6299653", "0.62802154", "0.6277546", "0.6265086", "0.625443...
0.6335259
15
Normalizes every geographic name (cities, states, countries, etc.)
def Rci7(YKHO, hksT, voQW=False): if type(hksT) is not QMSQ: hksT = QMSQ(str(hksT), encoding='utf-8') Aofo = u'' yOAJ = u'' for sZqf in hksT + ' ': if sZqf in NBqJ.loca_delim: if yOAJ in NBqJ.loca_prepos: Aofo += yOAJ else: try: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uD9m(mWFP):\n mWFP = mWFP.split(' - ')[0]\n mWFP = mWFP.upper().strip()\n mWFP = ''.join(filter(lambda WKvO: WKvO in vIwR.ascii_uppercase + ' ', mWFP))\n ZxtR = (('CENTERS', 'CENTER'), ('SERVICES', 'SERVICE'))\n kSdD = ('UNITED STATES', 'DEPARTMENT', 'OFFICE', 'COMMISSION', 'BUREAU', 'BOARD', 'A...
[ "0.6719473", "0.66396147", "0.6573091", "0.63630885", "0.63269216", "0.61974174", "0.61847216", "0.6183692", "0.6179182", "0.61768115", "0.6114733", "0.61034256", "0.6095546", "0.60465693", "0.6018319", "0.6003503", "0.59858125", "0.5967768", "0.59566337", "0.59478927", "0.59...
0.0
-1
Convert string beta_loss to float
def gjkY(vXL3): zUsR = {'frobenius': 2, 'kullback-leibler': 1, 'itakura-saito': 0} if isinstance(vXL3, str) and vXL3 in zUsR: vXL3 = zUsR[vXL3] return vXL3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gjkY(vXL3):\n zUsR = {'frobenius': 2, 'kullback-leibler': 1, 'itakura-saito': 0}\n if isinstance(vXL3, str) and vXL3 in zUsR:\n vXL3 = zUsR[vXL3]\n if not isinstance(vXL3, mSrU.Number):\n raise ValueError('Invalid beta_loss parameter: got %r instead of one of %r, or a float.' % (vXL3, zU...
[ "0.84084374", "0.614115", "0.59918153", "0.5944659", "0.5915016", "0.58819187", "0.58325434", "0.58251387", "0.58153874", "0.577902", "0.576254", "0.5726862", "0.57223994", "0.5699457", "0.56733197", "0.56584245", "0.5648302", "0.5627665", "0.561189", "0.558083", "0.5580529",...
0.8539317
0
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.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
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(M9PE, YKHO).__init__(*qIxc, **c_sp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8167532", "0.77219325", "0.77219325", "0.7654203", "0.75745815", "0.7546024", "0.7486399", "0.74713093", "0.745941", "0.7447673", "0.74459267", "0.74353653", "0.74162686", "0.7409403", "0.7392605", "0.7376858", "0.7364597", "0.732643", "0.7325172", "0.7325172", "0.7325172"...
0.0
-1
Construct a DataSet. one_hot arg is used only if fake_data is true. `dtype` can be either `uint8` to leave the input as `[0, 255]`, or `float32` to rescale into `[0, 1]`. Seed arg provides for convenient deterministic testing.
def FIMM(YKHO, Yw_3, Crrw, yDqo=m1c7.float32, yokr=None): JT8E, VO4B = igb0.get_seed(yokr) XTiz.random.seed(JT8E if yokr is None else VO4B) yDqo = m1c7.as_dtype(yDqo).base_dtype if yDqo not in (m1c7.uint8, m1c7.float32): raise TypeError('Invalid image dtype %r, expected uint8 or float32' % yDqo)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VDds(input, jTqs, begE='cuda'):\n if len(input.shape) < 4:\n input = input.unsqueeze(0).unsqueeze(0)\n ROpF = oyIN.array(input.shape)\n ROpF[1] = jTqs\n ROpF = tuple(ROpF)\n Aofo = ht2j.zeros(ROpF)\n Aofo = Aofo.scatter_(1, input.long(), 1)\n Aofo = Aofo.squeeze(0).cpu().numpy()\n ...
[ "0.6536353", "0.63927", "0.6323433", "0.628899", "0.6267954", "0.6252927", "0.6252927", "0.62305105", "0.6175641", "0.6157612", "0.61153847", "0.6101795", "0.6088349", "0.6078573", "0.6039345", "0.6036263", "0.60354865", "0.601183", "0.59979296", "0.59946144", "0.59790236", ...
0.0
-1
Get the adjacency of all document in this set.
def fyP7(YKHO) -> int: return YKHO._ref_doc.adjacency + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fyP7(YKHO):\n return YKHO.adj", "def fyP7(YKHO):\n return iter(YKHO._adj.items())", "def fyP7(YKHO):\n return iter(YKHO._adj.items())", "def fyP7(YKHO) -> B1ih:\n return YKHO.contents", "def fyP7(YKHO) -> B1ih:\n return YKHO.contents", "def fyP7(YKHO) -> B1ih:\n return YKHO.contents...
[ "0.7424008", "0.7073011", "0.7073011", "0.69217426", "0.69217426", "0.69217426", "0.6707376", "0.63735104", "0.63436365", "0.6323294", "0.626978", "0.6225789", "0.6216953", "0.6185213", "0.61528605", "0.61504966", "0.6141857", "0.612205", "0.60795265", "0.6056919", "0.5973189...
0.7194761
1
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI. This evaluation function is meant for use with adversarial search agents (not reflex agents).
def fHT3(rfNN): return rfNN.getScore()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)", "def fHT3(rfNN):\n return rfNN.getScore()", "def fHT3(rfNN: GameState):\n re...
[ "0.8076058", "0.8055088", "0.8055088", "0.79373604", "0.76789176", "0.76626223", "0.76444966", "0.7635568", "0.75950164", "0.75950164", "0.75950164", "0.75950164", "0.75950164", "0.75950164", "0.75950164", "0.75950164", "0.75950164", "0.75950164", "0.7503506", "0.7490438", "0...
0.75551474
28
fit the centroid of a 2D image square stamp of size (2hw+1,2hw+1) in a coordinate system centered on the stamp, i.e. the central pixel has coordinates = (0,0)
def DeIf(VwNh): qEJV = VwNh.shape[0] // 2 bTke = oyIN.arange(-qEJV, qEJV + 1) CkYf = oyIN.sum(VwNh) if CkYf <= 0: raise RuntimeError('sum of flux in stamp = {}'.format(CkYf)) g0Hx = oyIN.sum(bTke * oyIN.sum(VwNh, axis=0)) / CkYf dlau = oyIN.sum(bTke * oyIN.sum(VwNh, axis=1)) / CkYf m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TYc5(_avc):\n VXjJ = _avc.copy()\n VXjJ[VXjJ < 0] = 0.0\n FXpT, rMH_ = oyIN.indices(VXjJ.shape)\n i9Rn = oyIN.nansum(VXjJ)\n Wjb0 = oyIN.dot(oyIN.ravel(FXpT), oyIN.ravel(VXjJ)) / i9Rn\n KQji = oyIN.dot(oyIN.ravel(rMH_), oyIN.ravel(VXjJ)) / i9Rn\n return (Wjb0, KQji)", "def e6ux(YKHO):\n ...
[ "0.74959177", "0.7235627", "0.71651787", "0.7150662", "0.7098741", "0.70882", "0.7086443", "0.7056279", "0.7032501", "0.6958903", "0.69559544", "0.69511896", "0.69081736", "0.68847203", "0.6868625", "0.68080443", "0.6740255", "0.6739564", "0.6725898", "0.6706834", "0.67030644...
0.7440751
1
fit the centroid of a 2D image square stamp of size (2hw+1,2hw+1) in a coordinate system centered on the stamp, i.e. the central pixel has coordinates = (0,0)
def nNRa(VwNh, WTkW=1.0, ARTs=10.0): OAgx = VwNh.shape[0] MxXY = VwNh.shape[1] g0Hx = float(MxXY // 2) dlau = float(OAgx // 2) shSu = oyIN.sum(VwNh) VlDb = oyIN.zeros(VwNh.shape) mRWM = oyIN.zeros(VwNh.shape) jVRJ = oyIN.zeros(VwNh.shape) Ux9n = oyIN.tile(oyIN.arange(OAgx), (MxXY, 1)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TYc5(_avc):\n VXjJ = _avc.copy()\n VXjJ[VXjJ < 0] = 0.0\n FXpT, rMH_ = oyIN.indices(VXjJ.shape)\n i9Rn = oyIN.nansum(VXjJ)\n Wjb0 = oyIN.dot(oyIN.ravel(FXpT), oyIN.ravel(VXjJ)) / i9Rn\n KQji = oyIN.dot(oyIN.ravel(rMH_), oyIN.ravel(VXjJ)) / i9Rn\n return (Wjb0, KQji)", "def DeIf(VwNh):\n ...
[ "0.74961853", "0.74422395", "0.72380364", "0.71656215", "0.715173", "0.70993495", "0.708842", "0.7087121", "0.7056108", "0.7033501", "0.6960111", "0.69584215", "0.6952368", "0.6908612", "0.6885352", "0.68703866", "0.68100244", "0.67411447", "0.67407733", "0.67253166", "0.6707...
0.6072364
98
fit the centroid of a 2D image square stamp of size (2hw+1,2hw+1) in a coordinate system centered on the stamp, i.e. the central pixel has coordinates = (0,0)
def w6gv(VwNh, ARTs=10.0): return nNRa(VwNh, sigma=1, noise=ARTs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TYc5(_avc):\n VXjJ = _avc.copy()\n VXjJ[VXjJ < 0] = 0.0\n FXpT, rMH_ = oyIN.indices(VXjJ.shape)\n i9Rn = oyIN.nansum(VXjJ)\n Wjb0 = oyIN.dot(oyIN.ravel(FXpT), oyIN.ravel(VXjJ)) / i9Rn\n KQji = oyIN.dot(oyIN.ravel(rMH_), oyIN.ravel(VXjJ)) / i9Rn\n return (Wjb0, KQji)", "def DeIf(VwNh):\n ...
[ "0.74958956", "0.74408305", "0.72360545", "0.7165276", "0.71502316", "0.709808", "0.7087534", "0.7085764", "0.70320946", "0.69586086", "0.69573766", "0.695153", "0.69075155", "0.6884084", "0.68679774", "0.680878", "0.67392284", "0.67388475", "0.67246205", "0.67070436", "0.670...
0.70545137
8
Test that a request successfully retrieves data if a valid earnings history request is made.
def jk8O(YKHO): BRlT = YKHO.client.get_earnings_history('AAPL') with open('tests/fixtures/yh-responses/earnings-history.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jk8O(YKHO):\n aEqx = YKHO.mock_get.return_value.text\n nPrm = YKHO.client.get_earnings_history('MSFT')\n YKHO.assertEqual(nPrm, aEqx)", "def MVss(YKHO):\n print(f'\\nRunning test method {YKHO._testMethodName}\\n')\n SYlA = 'JNK'\n hLKG = YKHO.app.get_contract(SYlA)\n tHUz = True\n sB1...
[ "0.7138198", "0.68318605", "0.68017197", "0.67898256", "0.6760396", "0.6652474", "0.66311103", "0.65527076", "0.6515433", "0.6504378", "0.6479522", "0.6331917", "0.6304872", "0.63036585", "0.628694", "0.6279142", "0.62683123", "0.62679094", "0.6221985", "0.62176925", "0.62024...
0.7269907
0
Test that a request successfully retrieves data if a valid insider holders request is made.
def gAMg(YKHO): BRlT = YKHO.client.get_insider_holders('AAPL') with open('tests/fixtures/yh-responses/insider-holders.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gAMg(YKHO):\n aEqx = YKHO.mock_get.return_value.text\n nPrm = YKHO.client.get_insider_holders('MSFT')\n YKHO.assertEqual(nPrm, aEqx)", "def jGwY(YKHO):\n pass", "async def test_test_request_fetch_helper(YKHO):\n _hkX = await YKHO.fetch_signed('/', signing_key=QjVY)\n YKHO.assertResponseCo...
[ "0.65203303", "0.636889", "0.62625706", "0.61943376", "0.6109448", "0.608559", "0.60806686", "0.60716236", "0.6062794", "0.59953845", "0.5986456", "0.5981127", "0.59801507", "0.59762925", "0.5946468", "0.59308916", "0.59062254", "0.59016", "0.5894129", "0.5871717", "0.5864267...
0.6649517
0
Test that a request successfully retrieves data if a valid history request is made.
def StUe(YKHO): BRlT = YKHO.client.get_history('AAPL') with open('tests/fixtures/yh-responses/history.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eqas(YKHO, QePW):\n _iO9 = N3Yo(QePW)\n Xqgu = yWra(url=_iO9, save_history=True, certwarn=False)\n with trZe.warns() as AIu6:\n geh0 = Xqgu()\n assert geh0\n assert AIu6\n assert geh0 in Xqgu.HISTORY", "def yXs9(YKHO):\n bTKY = e59A.objects.first()\n pB3N = {'entry_id': bTKY.id...
[ "0.6879065", "0.67816234", "0.67357725", "0.66262454", "0.6590599", "0.6551848", "0.6517573", "0.64906275", "0.6484164", "0.6482624", "0.6425004", "0.6398852", "0.63502413", "0.62990546", "0.6278409", "0.62678", "0.6267054", "0.62463355", "0.62223065", "0.62007475", "0.618395...
0.67652017
2
Test that a request successfully retrieves data if a valid financial data request is made.
def fdQO(YKHO): BRlT = YKHO.client.get_financial_data('AAPL') with open('tests/fixtures/yh-responses/financial-data.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fdQO(YKHO):\n aEqx = YKHO.mock_get.return_value.text\n nPrm = YKHO.client.get_financial_data('MSFT')\n YKHO.assertEqual(nPrm, aEqx)", "def Wg_o(YKHO):\n aqR5 = {'monthlyDeposit': 1, 'initialDeposit': 1, 'interestRate': 2, 'interestPeriod': 12}\n QePW = ApZX.factory.post('/calculate/', qQXR.dum...
[ "0.7072807", "0.6949403", "0.6895972", "0.676631", "0.676376", "0.66350937", "0.6619987", "0.66184634", "0.65883815", "0.65877444", "0.6547203", "0.6459753", "0.64131486", "0.6411674", "0.64074975", "0.64051163", "0.6401788", "0.6339134", "0.6335376", "0.63277113", "0.6326675...
0.7073298
0
Test that a request successfully retrieves data if a valid cashflow statement request is made.
def AyWk(YKHO): BRlT = YKHO.client.get_cashflow_statement('AAPL') with open('tests/fixtures/yh-responses/cashflow-statement.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ATqJ(HrP9, rzku):\n assert False", "def Zwka(YKHO):\n hvq8._check_request_response_error({'a': 'b'})", "def TwPl(YKHO):\n EqBn = hvq8()\n Aofo = EqBn.get_mining_contracts()\n YKHO.assertGreater(len(Aofo), 0)", "def AyWk(YKHO):\n aEqx = YKHO.mock_get.return_value.text\n nPrm = YKHO.cl...
[ "0.67194647", "0.6556113", "0.6475926", "0.64500546", "0.6420161", "0.6389192", "0.6340512", "0.63002205", "0.62554383", "0.6217616", "0.6210336", "0.61878306", "0.616864", "0.61588997", "0.60778916", "0.6065444", "0.60538", "0.6049597", "0.60456824", "0.6029466", "0.6022841"...
0.66374725
1
Test that a request successfully retrieves data if a valid calendar events request is made.
def ns_9(YKHO): BRlT = YKHO.client.get_calendar_events('AAPL') with open('tests/fixtures/yh-responses/calendar-events.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cklY(jmr2):\n Aofo = tvqc.EventCalendarRequest().execute()\n assert isinstance(Aofo, wS1q)", "def d41K(YKHO):\n from pcolalug.views import calendar\n QePW = kO5c.DummyRequest()\n geh0 = calendar(QePW)\n YKHO.assertEqual(geh0, {})", "def ns_9(YKHO):\n aEqx = YKHO.mock_get.return_value.t...
[ "0.775088", "0.7368623", "0.7252415", "0.6941926", "0.6917463", "0.6762693", "0.6704388", "0.6692445", "0.6678525", "0.6637389", "0.66138184", "0.6556602", "0.6534503", "0.6511009", "0.6510743", "0.64948034", "0.6459139", "0.6431173", "0.64262706", "0.64183456", "0.6413032", ...
0.73050344
2
Test that a request successfully retrieves data if a valid earnings trend request is made.
def gKZR(YKHO): BRlT = YKHO.client.get_earnings_trend('AAPL') with open('tests/fixtures/yh-responses/earnings-trend.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RDzi(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.get('/api/revenue/abcdefgh')\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertEqual(geh0.status_code, 404)\n YKHO.assertIn('fail', nPrm['status'])", "def Nh6E(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.get(...
[ "0.69907147", "0.6939041", "0.6886419", "0.6883129", "0.67071813", "0.670619", "0.6685524", "0.6680036", "0.6572911", "0.64740956", "0.64568853", "0.64072704", "0.64055675", "0.64055663", "0.6379695", "0.6347919", "0.6322788", "0.6257363", "0.62107706", "0.6200326", "0.618874...
0.7084887
0
Test that a request successfully retrieves data if a valid key statistics request is made.
def GMzk(YKHO): BRlT = YKHO.client.get_key_statistics('AAPL') with open('tests/fixtures/yh-responses/key-statistics.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GMzk(YKHO):\n aEqx = YKHO.mock_get.return_value.text\n nPrm = YKHO.client.get_key_statistics('MSFT')\n YKHO.assertEqual(nPrm, aEqx)", "def Zwka(YKHO):\n hvq8._check_request_response_error({'a': 'b'})", "def inXb(YKHO, k3rO):\n with P4t4.test_client() as Z9rn:\n eqVi = Z9rn.get(k3rO)\n...
[ "0.69888425", "0.65407354", "0.629429", "0.6217365", "0.6088297", "0.6087937", "0.60812443", "0.60656536", "0.60236704", "0.59898806", "0.59689194", "0.59683496", "0.5925407", "0.5922162", "0.58999443", "0.5890621", "0.588466", "0.588466", "0.5882561", "0.58719933", "0.585980...
0.7118073
0
Test that a request successfully retrieves data if a valid income statement request is made.
def HFkq(YKHO): BRlT = YKHO.client.get_income_statement('AAPL') with open('tests/fixtures/yh-responses/income-statement.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_wR(YKHO):\n YKHO.assertEqual(0, 1)", "def wmnZ(YKHO):\n bD7m = 'http://127.0.0.1:5000/insurance/risk'\n nPrm = {'age': 40, 'dependents': 2, 'house': {'ownership_status': 'owned'}, 'income': 400000000, 'marital_status': 'married', 'risk_questions': [0, 1, 0], 'vehicle': {'year': 2018}}\n Ylbp = ...
[ "0.6527984", "0.6524883", "0.64681226", "0.6465277", "0.63791054", "0.6328591", "0.62840855", "0.6260094", "0.6255595", "0.62469083", "0.6244221", "0.62312543", "0.6225274", "0.618131", "0.6157305", "0.6156411", "0.61511654", "0.6148691", "0.61468774", "0.6139787", "0.6139467...
0.72218734
0
Test that a request successfully retrieves data if a valid earnings request is made.
def WVT_(YKHO): BRlT = YKHO.client.get_earnings('AAPL') with open('tests/fixtures/yh-responses/earnings.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WVT_(YKHO):\n aEqx = YKHO.mock_get.return_value.text\n nPrm = YKHO.client.get_earnings('MSFT')\n YKHO.assertEqual(nPrm, aEqx)", "def Nh6E(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.get('/api/revenue/abcdefgh?update=true')\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.as...
[ "0.70274717", "0.6726993", "0.672619", "0.66319", "0.65039843", "0.6498896", "0.6476896", "0.6418792", "0.63944227", "0.636232", "0.6348927", "0.632664", "0.63028073", "0.629291", "0.62711966", "0.6269762", "0.6261126", "0.6254583", "0.6248243", "0.62252474", "0.6222401", "...
0.7150819
0
Test that a request successfully retrieves data if a valid institution ownership request is made.
def s1r5(YKHO): BRlT = YKHO.client.get_institution_ownership('AAPL') with open('tests/fixtures/yh-responses/institution-ownership.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gb00(YKHO):\n QAIN = FYrf.Organization.objects.create(status='ok', name='test_claim_ownership ORG')\n Zxma = FYrf.Network.objects.create(status='ok', name='test_claim_ownership NET', asn=9000100, org=QAIN)\n QePW = YKHO.factory.post('/request-ownership', data={'id': QAIN.id})\n QePW.user = YKHO.use...
[ "0.7226013", "0.7180744", "0.7070394", "0.64567876", "0.6380088", "0.6364359", "0.63440454", "0.6333709", "0.6321133", "0.6311505", "0.6284022", "0.6220125", "0.618901", "0.61456776", "0.60888517", "0.6072125", "0.6040795", "0.60381705", "0.6000324", "0.5980405", "0.5979776",...
0.72285914
0
Test that a request successfully retrieves data if a valid recommendation trend request is made.
def vUwK(YKHO): BRlT = YKHO.client.get_recommendation_trend('AAPL') with open('tests/fixtures/yh-responses/recommendation-trend.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZXPU(YKHO):\n Z9rn = i9zE()\n print(Z9rn)\n geh0 = Z9rn.get('/api/recommendationsData')\n assert geh0.status_code is 200", "def vUwK(YKHO):\n aEqx = YKHO.mock_get.return_value.text\n nPrm = YKHO.client.get_recommendation_trend('MSFT')\n YKHO.assertEqual(nPrm, aEqx)", "def PHHM(YKHO):\n...
[ "0.66018957", "0.65888447", "0.65019315", "0.63856405", "0.62242544", "0.60253495", "0.5962727", "0.5961564", "0.5944276", "0.59401214", "0.5936357", "0.5933925", "0.5915208", "0.58740324", "0.5873766", "0.58612126", "0.58488864", "0.58203596", "0.5809573", "0.58044755", "0.5...
0.6630455
0
Test that a request successfully retrieves data if a valid balance sheet request is made.
def Eydh(YKHO): BRlT = YKHO.client.get_balance_sheet('AAPL') with open('tests/fixtures/yh-responses/balance-sheet.json', 'r') as eHNT: aGkG = eHNT.read() YKHO.assertEqual(aGkG, BRlT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ATqJ(HrP9, rzku):\n assert False", "def Eydh(YKHO):\n aEqx = YKHO.mock_get.return_value.text\n nPrm = YKHO.client.get_balance_sheet('MSFT')\n YKHO.assertEqual(nPrm, aEqx)", "def McNz(YKHO):\n UA2V = YKHO.app.get('/cashback/' + str(YKHO.CPF_VALIDO))\n YKHO.assertEqual(UA2V.status_code, jGR...
[ "0.68563545", "0.67314136", "0.66467464", "0.6587475", "0.65567476", "0.64540565", "0.6318877", "0.63163924", "0.6283297", "0.6272354", "0.6182461", "0.6176542", "0.61738205", "0.616657", "0.6160858", "0.6156578", "0.6135787", "0.6128317", "0.61246157", "0.6117162", "0.611163...
0.6870781
0
Create a vector with N BitVectors of size sz
def Ygq6(y0cW, Rv0k, ywwl): return [_3Nv('%s__%s' % (y0cW, YRbF), Rv0k) for YRbF in range(ywwl)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K6g9(CRLp: List[int], yDqo) -> x1iM[ZylS.Tensor]:\n vEv9 = []\n E0wO = CRLp[-1]\n for YRbF in range(len(CRLp)):\n pSfY = oyIN.ones(CRLp[YRbF])\n VNqG = oyIN.zeros(E0wO - CRLp[YRbF])\n vEv9.append(ZylS.convert_to_tensor(oyIN.concatenate([pSfY, VNqG], 0), dtype=yDqo))\n return vE...
[ "0.6551217", "0.63873506", "0.6109999", "0.6097679", "0.6093739", "0.59943837", "0.59618145", "0.59540987", "0.59540987", "0.5936685", "0.5908478", "0.5892284", "0.58170074", "0.5783598", "0.576682", "0.57471627", "0.56770945", "0.5670259", "0.5628227", "0.56264096", "0.56240...
0.63880783
1
Create a vector with N BitVectors of size sz
def iFoU(y0cW, Rv0k, ywwl): return [_3Nv('%s__%s' % (y0cW, YRbF), Rv0k) for YRbF in range(ywwl)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K6g9(CRLp: List[int], yDqo) -> x1iM[ZylS.Tensor]:\n vEv9 = []\n E0wO = CRLp[-1]\n for YRbF in range(len(CRLp)):\n pSfY = oyIN.ones(CRLp[YRbF])\n VNqG = oyIN.zeros(E0wO - CRLp[YRbF])\n vEv9.append(ZylS.convert_to_tensor(oyIN.concatenate([pSfY, VNqG], 0), dtype=yDqo))\n return vE...
[ "0.6550265", "0.6390079", "0.6390079", "0.63869995", "0.6110007", "0.60978955", "0.6092838", "0.59929925", "0.5961518", "0.5937492", "0.59085387", "0.58908844", "0.5817418", "0.5782655", "0.5766707", "0.5745522", "0.56749296", "0.5668263", "0.5627519", "0.5626499", "0.5623957...
0.59555095
9
Create onehot input to models from nucleotide sequence.
def QxYx(YKHO, kgDL): if len(kgDL) == 0: return [] vC9B = 2 * YKHO.context_nt + len(kgDL[0][1]) WKvO = oyIN.empty((len(kgDL), vC9B, 8), dtype='f') for YRbF, (yQtF, PRTk) in enumerate(kgDL): assert len(yQtF) == 2 * YKHO.context_nt + len(PRTk) CGdL = [] for oeNL in range(YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ouoL(Q6uT):\n dK3p = []\n for YRbF in range(Soiz):\n if YRbF < len(Q6uT):\n if Q6uT[YRbF] == 'A':\n dK3p.append([1, 0, 0, 0])\n elif Q6uT[YRbF] == 'T':\n dK3p.append([0, 1, 0, 0])\n elif Q6uT[YRbF] == 'G':\n dK3p.append(...
[ "0.7357713", "0.7272365", "0.7165878", "0.7158081", "0.71307737", "0.70884496", "0.70530266", "0.70345515", "0.7007948", "0.6956293", "0.6867252", "0.6859985", "0.6849514", "0.6848062", "0.6831275", "0.6830283", "0.6830283", "0.6811391", "0.67770714", "0.6766648", "0.67543054...
0.0
-1
Decrement a counter, optionally setting a value, tags and a sample rate. >>> statsd.decrement("files.remaining") >>> statsd.decrement("active.connections", 2)
def TRpo(YKHO, AcYW, BWXx=1, dJ1p=None, fQqb=None): cke0 = -BWXx if BWXx else BWXx YKHO._report(AcYW, 'c', cke0, dJ1p, fQqb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRpo(eQSh, fQqb=1):\n QdZT(eQSh, -1, fQqb)", "def TRpo(eQSh, fQqb=1, KcEq=None, bIwZ=0):\n jTS6.update_stats(eQSh, -1, fQqb, host=KcEq, port=bIwZ)", "def TRpo(YKHO, mWFP, BWXx=1, fQqb=1, dJ1p=None):\n H5ew, mWFP = YKHO.key_and_fqn(mWFP, dJ1p)\n if H5ew not in YKHO._metrics:\n AcYW = d_mb...
[ "0.7297458", "0.7108726", "0.7043725", "0.7041923", "0.6977672", "0.69088906", "0.6780849", "0.67193156", "0.66784036", "0.6528815", "0.64492595", "0.64233744", "0.64233744", "0.64233744", "0.6392968", "0.63599527", "0.61923987", "0.6151866", "0.603666", "0.5960417", "0.59115...
0.71465707
1
Returns whether the client should fill the container field. If DD_ENTITY_ID is set, we don't send the container ID If a userdefined container ID is provided, we don't ignore origin detection as dd.internal.entity_id is prioritized over the container field for backward compatibility. If DD_ENTITY_ID is not set, we try t...
def nprX(YKHO, KCib, EDG_, Xcu2): if not EDG_ or Xcu2 or KCib is not None: return False BWXx = Hy7s.environ.get(FDsC, '') return BWXx.lower() not in {'no', 'false', '0', 'n', 'off'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RAzK(YKHO, KCib, EDG_):\n if KCib:\n YKHO._container_id = KCib\n return\n if EDG_:\n try:\n N5Pj = sxpb()\n YKHO._container_id = N5Pj.container_id\n except Exception as e:\n RKD7.debug(\"Couldn't get container ID: %s\", str(tTpl))\n ...
[ "0.5686001", "0.5398281", "0.53904223", "0.52384853", "0.51979625", "0.5136389", "0.5068348", "0.5003956", "0.4936915", "0.48337", "0.48095927", "0.48036578", "0.4783274", "0.47238216", "0.46972698", "0.46907875", "0.46799904", "0.46574757", "0.46343118", "0.46266866", "0.462...
0.57042766
0
Convert text to lowercase, replace punctuation, remove words that are two character or less, and split the resulting string into a list. >>> __tokenize_text('hi. I am, a, sentence.') ['sentence']
def J5yb(l5Ny): l5Ny = l5Ny.lower() pC3l = ',.<>:;"\'~`@#^*()-_+=|\\/?!&' for XP5J in pC3l: l5Ny = l5Ny.replace(XP5J, ' ') V22M = l5Ny.split() Hvvh = [] for GIN8 in V22M: if len(GIN8) > 2: Hvvh.append(GIN8) return Hvvh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Baki(YKHO, l5Ny):\n PuKl = []\n for eOtH in dFss(l5Ny):\n eOtH = eOtH.lower()\n eOtH = ZbWC.sub('[^a-z]', '', eOtH)\n if eOtH:\n if eOtH not in YKHO.stop_words:\n if YKHO.stem:\n PuKl.append(YKHO.stemmer.stem(eOtH))\n else:\...
[ "0.8640414", "0.8600111", "0.8537676", "0.8480427", "0.8467766", "0.842007", "0.8396076", "0.83675975", "0.8367204", "0.8367073", "0.83488345", "0.8324299", "0.8296991", "0.8294034", "0.8254296", "0.82516116", "0.82426", "0.8200473", "0.8176934", "0.81647015", "0.8163674", ...
0.87794
0
Given a URL, check to see if there is an assocaited protocol. If not, set the protocol to HTTP and return the protocolised URL
def a3QE(bD7m): fO6c = ZbWC.compile('https?:{0,1}/{1,2}') U5Jc = KVWQ.urlparse(bD7m) if not U5Jc.scheme and (not fO6c.search(bD7m)): bD7m = 'http://{0}'.format(bD7m) return bD7m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UY4I(bD7m: str):\n U5Jc = KVWQ(bD7m)\n if U5Jc.scheme == '':\n return 'https://' + bD7m\n else:\n return bD7m", "def iquo(bD7m):\n return bD7m.split('://')[0]", "def K4tG(bD7m):\n G1wq('[+] Going with HTTP.')\n bD7m = Mzmb(bD7m, 'http')\n return bD7m", "def QxUh(bD7m: s...
[ "0.7740649", "0.7135976", "0.7094062", "0.7052572", "0.6962073", "0.6946557", "0.68577355", "0.67514706", "0.67230433", "0.6678001", "0.66520166", "0.6625295", "0.66034794", "0.6591693", "0.650311", "0.64325994", "0.6418559", "0.6383801", "0.636286", "0.6304327", "0.6285523",...
0.7541387
1
Predicts the value of y on the basis of given value of x.
def YEmv(YKHO, WKvO): return m1Hg(oyIN.matmul(WKvO, YKHO.w) + YKHO.c)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, LVAh):\n return YKHO.best_fit[0] * LVAh ** 2 + YKHO.best_fit[1] * LVAh + YKHO.best_fit[2]", "def YEmv(YKHO, WKvO):\n amiz = YKHO.model.predict(WKvO)\n return amiz", "def A8ep(YKHO, WKvO: float) -> float:\n r8hN = float(YKHO._model.coef_)\n Fg_i = float(YKHO._model.intercept_)\n ...
[ "0.81542575", "0.8105591", "0.80742276", "0.807319", "0.7957814", "0.7922542", "0.7919097", "0.79086024", "0.79007655", "0.7874922", "0.7862833", "0.78583664", "0.78583294", "0.78432924", "0.78097564", "0.7774002", "0.77717674", "0.7760407", "0.7739753", "0.77396023", "0.7734...
0.0
-1
Simple hello world MNIST workflow
def Hgh1(g4y1, NArs, **B2fa): print(f'{TifC.name}.my_workflow: Arguments: inputs {g4y1} params: {NArs}, **kwargs: {B2fa} ') iwlC = o2Vr(name='is_number') CA8L = [jQ3Z.text('Is this image a number'), jQ3Z.image(g4y1.get('mnist_image_url'))] ubm4 = [jQ3Z.exclusive_choice(choices=['yes', 'no'])] iwlC.p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UOFj():\n print('loading training images...')\n DoEl, HNgl, tA1o, Dowe = kPcd()\n tJaE = True\n if tJaE:\n uZq5 = 2000\n DoEl = DoEl[0:uZq5, :, :]\n HNgl = HNgl[0:uZq5]\n if tJaE:\n uZq5 = 500\n tA1o = tA1o[0:uZq5, :, :]\n Dowe = Dowe[0:uZq5]\n DoEl =...
[ "0.7380843", "0.7361987", "0.7336867", "0.7327215", "0.71528023", "0.7146686", "0.7049828", "0.70251393", "0.6950192", "0.6934818", "0.69268805", "0.68554395", "0.684844", "0.68197894", "0.679974", "0.6785463", "0.6781343", "0.6779862", "0.67784125", "0.6703599", "0.67032605"...
0.0
-1
Return install.json instance with "bad" file.
def DQ1R(YKHO, kvcN: str='app_bad_install_json', zv1n: str='tcpb'): FhiZ = YKHO.tcex_test_dir / 'app' / 'config' / 'apps' / zv1n / kvcN zZcM = FhiZ / 'install-template.json' zr3f = FhiZ / 'install.json' RDuA.copy2(zZcM, zr3f) UCso = FhiZ / 'install.json' try: return CH57(filename=UCso.na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nu6G(ckRy, HCmI):\n return [{'command': HCmI, 'file': eHNT, 'note': 'not found', 'success': False, 'error-messages': ['File unknown to git']} for eHNT in MdLO(ckRy)]", "def G7q0(YKHO):\n YKHO.F.ProductVersionFactory.create(product__name='Foo', version='1.0')\n YKHO.assertRaises(i15K, YKHO.call_comma...
[ "0.6031834", "0.5955119", "0.5727608", "0.5717661", "0.5695027", "0.5632323", "0.5599258", "0.5583594", "0.5550884", "0.5525097", "0.550143", "0.5497412", "0.54642665", "0.5452023", "0.54285145", "0.5410548", "0.5386802", "0.53518105", "0.53412956", "0.5339153", "0.5337581", ...
0.71980983
0
Retrieve the last alert time string from logfile
def LUXr(): sCx_ = '/home/' + CBIr + '/raspi-sump/logs/heartbeat_log' with open(sCx_, 'rt') as eHNT: vsnM = MUE7(m6_J.reader(eHNT), 1)[0] return vsnM[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MRcj(YKHO):\n m6Me = 'N/A'\n odyS = qcWV.datetime.min\n try:\n m6Me = YKHO.fh.read().strip()\n CbF0 = qcWV.datetime.strptime(m6Me, '%Y-%m-%dT%H:%M:%S')\n YKHO._logger.info('Read timestamp from the note. The last send was %s.', CbF0)\n return CbF0\n except (AttributeError...
[ "0.66166955", "0.6434332", "0.6369959", "0.63478994", "0.633198", "0.63165605", "0.6299436", "0.6289576", "0.6252535", "0.6241332", "0.623368", "0.6231437", "0.62260664", "0.6217417", "0.6215894", "0.62116444", "0.61768216", "0.6176391", "0.61685175", "0.6153353", "0.613356",...
0.7985957
0
Update and return an existing `Snippet` instance, given the validated data.
def QdZT(YKHO, KAOR, vGfb): KAOR.firstname = vGfb.get('firstname', KAOR.firstname) KAOR.middleInitial = vGfb.get('middleInitial', KAOR.middleInitial) KAOR.lastname = vGfb.get('lastname', KAOR.lastname) KAOR.gender = vGfb.get('gender', KAOR.gender) KAOR.dateOfBirth = vGfb.get('dateOfBirth', KAOR.date...
{ "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.60716563", "0.6052537", "0.6051132", "0.60097694", ...
0.52654845
87
Takes sudoku image as input and recognizes the digits present
def t8U_(VXjJ, C3ST, N0ky=(28, 28)): H2v2, TVTK = (VXjJ.shape[0], VXjJ.shape[1]) VXjJ = sAhN(VXjJ) VOC_ = oyIN.zeros((81, 28, 28, 1)) wVHx = [] UHFx = 0 try: if H2v2 > 10 and TVTK > 10: iTJh = oyIN.zeros([9, 9]) uAsP = oyIN.zeros([9, 9]) for YRbF in ra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a9iv(Xn71):\n jU5P = eCWE.Sharpness(Xn71)\n Xn71 = jU5P.enhance(3)\n vEPh = Xn71.load()\n ZLJ_, usx6 = Xn71.size\n for WKvO in range(ZLJ_):\n for LVAh in range(usx6):\n if oyIN.mean(vEPh[WKvO, LVAh]) > 130:\n vEPh[WKvO, LVAh] = eJVO\n else:\n ...
[ "0.68698907", "0.67717886", "0.66299003", "0.6597095", "0.6596785", "0.6567931", "0.65214145", "0.644473", "0.63235915", "0.62887394", "0.6273708", "0.62558645", "0.6198166", "0.61946285", "0.61908334", "0.61868834", "0.61834097", "0.6183132", "0.6148547", "0.61290324", "0.60...
0.64537793
7
View function for home page.
def d6pt(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'welcome.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def kZiy():\n ...
[ "0.8625329", "0.85137403", "0.8463694", "0.8460711", "0.8460711", "0.8456469", "0.8418747", "0.841086", "0.8406463", "0.83899724", "0.8368746", "0.8357867", "0.83424765", "0.8341691", "0.8336773", "0.8335151", "0.8325293", "0.8316922", "0.83099145", "0.83099145", "0.83099145"...
0.0
-1
Removes this section from the "base_section".
def kGbt(YKHO, XLMv): Jf3M = XLMv.slug O92W = YKHO.latest_version.base_section_slugs() if Jf3M in O92W: O92W.remove(Jf3M) YKHO.order_base_sections(O92W)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bect(YKHO, XLMv):\n try:\n del YKHO.config[XLMv.lower()]\n except:\n pass", "def bect(YKHO, mWFP):\n YKHO.subsections.pop(mWFP)", "def PTpj(YKHO) -> None:\n YKHO._parser.remove_section(YKHO._name)\n YKHO._initialize()", "def bect(YKHO, XLMv):\n if XLMv in list(YKHO.keys())...
[ "0.699536", "0.69296557", "0.67769575", "0.6759483", "0.65887755", "0.658577", "0.6573899", "0.6514032", "0.6496656", "0.63996166", "0.6326365", "0.62837815", "0.62482244", "0.61681026", "0.61604124", "0.60874826", "0.60726154", "0.6061734", "0.59262294", "0.5892903", "0.5828...
0.6355562
10
Displays details for a book
def KX1c(): xgok = QePW.args.get('gi') Ylbp = G4JS.get(f'https://www.googleapis.com/books/v1/volumes?q={xgok}&key={rJDA}') dixj = Ylbp.json() d4Dd = dixj['items'][0]['volumeInfo'] try: d4Dd['authors'] = ', '.join(d4Dd['authors']) except: d4Dd['authors'] = 'unknown' d4Dd['desc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K1DQ(QePW, ABua):\n jI4j = dl5x.objects.get(book_id=ABua)\n QpfX = {'book': jI4j}\n return _1tc(QePW, 'book_detail.html', context=QpfX)", "def uQXx(QePW, ABua):\n jI4j = Iofl(dl5x, pk=ABua)\n QpfX = {'book': jI4j}\n return _1tc(QePW, 'books/book_detail.html', QpfX)", "def uQXx(QePW, _sei=...
[ "0.80737245", "0.8015578", "0.7970883", "0.79329365", "0.7910372", "0.7734478", "0.75668067", "0.7506353", "0.7438594", "0.7289581", "0.7241171", "0.7165405", "0.7111745", "0.70538664", "0.7041904", "0.70363736", "0.70212114", "0.69426775", "0.69186217", "0.6904767", "0.68871...
0.74725735
8
Displays details for user
def mdNz(): uJjO = QePW.args.get('id') Yabc = mv1M.query.get(cuiw['user.id']) if uJjO == None: uJjO = cuiw['user.id'] CBIr = mv1M.query.get(uJjO) zXXY = set(Yabc.friends) G4JS = [] for mAB6 in Yabc.requests: if mAB6 not in zXXY: G4JS.append(mAB6) return TvZl('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LOzg():\n return TvZl('view_user_details.html')", "def LOzg():\n return TvZl('view_user_details.html')", "def M6NY():\n return mv1M.display_user_details()", "def nIH2(uJjO):\n CBIr = UXsa.get_user_by_id(uJjO)\n return TvZl('user_details.html', user=CBIr)", "def LOzg(uJjO):\n CBIr = UX...
[ "0.85701275", "0.85701275", "0.8549169", "0.81099015", "0.810659", "0.800543", "0.7945568", "0.79293925", "0.78979385", "0.78145695", "0.7748197", "0.7747284", "0.7746663", "0.7719746", "0.76870435", "0.768522", "0.76833993", "0.7629462", "0.7614249", "0.76114243", "0.7558503...
0.0
-1
Get COUNT expression for this table.
def UHFx(Emd4): return US4e.Expression('_COUNT', None, model=Emd4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sUaa(YKHO):\n return YKHO.session.query(JfyU.count('*')).select_from(YKHO.model)", "def sUaa(YKHO):\n return YKHO.session.query(JfyU.count('*')).select_from(YKHO.model)", "def UHFx(YKHO, tyNF, woks=''):\n return YKHO.lookup('count(*)', tyNF, woks)", "def UHFx(YKHO, tyNF, woks=''):\n return YK...
[ "0.7016787", "0.7016787", "0.69405484", "0.69405484", "0.6769832", "0.67640513", "0.67640513", "0.6725093", "0.6719805", "0.67176044", "0.6577598", "0.6576354", "0.65687823", "0.65615207", "0.6561165", "0.651236", "0.6438892", "0.64045256", "0.63842493", "0.63701", "0.63701",...
0.7809385
0
Renders the home page, with a list of all polls.
def kZiy(): return dict(title='Polls', year=qcWV.now().year, polls=F3jJ.get_polls())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html', side_data=WAUR())", "def d6pt():\n leAC = 'Home- Welcome'\n return TvZl('index.html')", "def kZiy():\n cepN = qzs1.find().sort('_id', -1)\n return TvZl('pages/home.html', stories=cepN)", "def kZiy():\n xDcj = QePW.args.get('query', default='')\n AwK...
[ "0.7155506", "0.6993183", "0.696722", "0.6966787", "0.69356704", "0.68508506", "0.68323976", "0.6829662", "0.6826492", "0.68244755", "0.6812865", "0.67965627", "0.67912376", "0.6754185", "0.67488474", "0.6729459", "0.6727131", "0.672344", "0.67124224", "0.6701166", "0.6685491...
0.72278684
0
Renders the contact page.
def Mxk0(): return dict(title='Contact', year=qcWV.now().year)
{ "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
Fetch column names from a table.
def rzUo(YKHO, tyNF): xDcj = f'\n PRAGMA table_info({tyNF})\n ' return [iVRZ['name'] for iVRZ in YKHO.__con.fetch(xDcj)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fgUY(YKHO, tyNF: str) -> [str]:\n YKHO.execute_command('PRAGMA table_info(' + tyNF + ');')\n return [WKvO[1] for WKvO in YKHO.cursor.fetchall()]", "def FSKv(YKHO, tyNF):\n YKHO.c.execute('show columns from ' + tyNF + ';')\n return YKHO.c.fetchall()", "def FSKv(YKHO, tyNF):\n Z9rn = YKHO.db.c...
[ "0.83344626", "0.81096315", "0.8067726", "0.8038583", "0.8006621", "0.7956433", "0.7940385", "0.79320943", "0.7899499", "0.7866398", "0.78570807", "0.7767768", "0.7700463", "0.76666397", "0.7661459", "0.7653794", "0.7616339", "0.76140374", "0.7603638", "0.76009506", "0.759986...
0.8396269
0
Defines a RankExpression, either replacing an existing definition or creating a new one.
def gols(YKHO, d1Tj, ncPz, I6St): mFd8 = ('define_rank_expression_response', 'define_rank_expression_result', 'rank_expression') NArs = {'DomainName': d1Tj, 'RankExpression.RankExpression': I6St, 'RankExpression.RankName': ncPz} return YKHO.get_response(mFd8, 'DefineRankExpression', NArs, verb='POST')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7S6(YKHO, Mkmy):\n YKHO.rank = Mkmy", "def fdMZ(YKHO, BWXx):\n assert isinstance(BWXx, (int, str))\n YKHO._rank = int(BWXx)", "def fdMZ(YKHO):\n raise NotImplementedError", "def UIq0(YKHO):\n WKvO = YKHO.regcount + 1\n VVMx = lambda WKvO: '%d%s' % (WKvO, 'tsnrhtdd'[(epAf.floor(WKvO / 1...
[ "0.65096223", "0.6163473", "0.60884005", "0.5898455", "0.5796457", "0.5738418", "0.57183385", "0.5708716", "0.5659184", "0.56072277", "0.5577573", "0.5538974", "0.54838586", "0.54786295", "0.5467196", "0.5447571", "0.54332376", "0.5431154", "0.54010075", "0.5367459", "0.53661...
0.796213
0
Extract a local variable from the current selection.
def b_eW(): qaEx, NUEI, xJw5, QZHG, KTXm = ofbv() XuY2 = A1q7('What name would you like for the local variable?') if XuY2: py4j.extractLocalVariable(qaEx, NUEI, xJw5, QZHG, KTXm, XuY2) FJ7f(qaEx, NUEI, xJw5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cb1_(*qIxc):\n return HpXt.get_local_var(*qIxc)", "def Ka7e(YKHO, *qIxc):\n return super().extract_variable(*qIxc).result()", "def OP2O(YKHO, SRYB):\n return YKHO.shell.interp.locals[SRYB]", "def xreU(YKHO, gLps):\n return EfUA(gLps)", "def LeTJ(mWFP):\n return V6Tj(mWFP).value", "def ...
[ "0.66595495", "0.6622482", "0.6500907", "0.6340566", "0.6305367", "0.6272658", "0.6235648", "0.6191857", "0.60429615", "0.60412693", "0.6004921", "0.6003039", "0.59582657", "0.59295905", "0.5919958", "0.5914791", "0.5906403", "0.58831435", "0.5823719", "0.58148384", "0.581483...
0.7717963
0
Return the index of the first occurence of substring in string that contains span_index. Or 1 if no such substring exists.
def YNnH(vIwR, Npeo, EfdS): NA_n = len(Npeo) yKcO = max(EfdS - NA_n, 0) OpCD = min(EfdS, len(vIwR) - NA_n) for YRbF in range(yKcO, OpCD + 1): bo34.debug("'%s'=='%s'?" % (vIwR[YRbF:YRbF + NA_n], Npeo)) RUSU = vIwR[YRbF:YRbF + NA_n] if RUSU == Npeo: bo34.debug("match: '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(YKHO, Npeo: str, yKcO: Optional[int]=None, Os4s: Optional[int]=None) -> int:\n d6pt: int = YKHO.string.index(Npeo, yKcO, Os4s)\n return d6pt", "def Hlr2(QOe9, KCHu):\n return KCHu.find(QOe9) + 1", "def EYT5(J_VL, pec_):\n d6pt: int = 0\n try:\n d6pt = int(pec_)\n if len(J_...
[ "0.64719415", "0.6380262", "0.616947", "0.616947", "0.615459", "0.61390865", "0.6129061", "0.6092197", "0.60915995", "0.60658133", "0.6029998", "0.6021308", "0.59768796", "0.59600335", "0.59518987", "0.59406704", "0.59181947", "0.5871015", "0.58611715", "0.583222", "0.5814377...
0.7007849
0
Renders the contact page.
def Mxk0(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'contact.html', context_instance=K1Ja(QePW, {'title': 'Who are we?', 'message': 'Learn about the men behind MeDOC and SHARPRISE', 'year': qcWV.now().year}))
{ "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.74879825
81
Renders the contact page.
def vsuQ(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'contact.html', context_instance=K1Ja(QePW, {'title': 'Who are we?', 'message': 'Learn about the men behind MeDOC and SHARPRISE', 'year': qcWV.now().year}))
{ "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
Get number sweep points for channel.
def YMTh(YKHO, YwkQ: int=1) -> int: return YKHO.query(f'SENSE{YwkQ:d}:SWEEP:POINTS?', container=int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YMTh(YKHO, YwkQ: int=1):\n return YKHO.query(f'SENSE{YwkQ:d}:SWEEP:POINTS?', container=int)", "def Xkrd(YKHO) -> int:\n return len(YKHO.source.get_sweep_axis())", "def owb6(YKHO):\n return YKHO.sweep_points", "def kHpv(YKHO, e_2d=-1):\n UZnQ = list(YKHO.get_sweep_dimension(e_2d).keys())\n ...
[ "0.8521184", "0.68209416", "0.658372", "0.6441755", "0.63659257", "0.6210919", "0.61910576", "0.618414", "0.618414", "0.6169003", "0.61453867", "0.6115334", "0.6105924", "0.6057129", "0.6057129", "0.60401005", "0.6024157", "0.60169756", "0.6015296", "0.5998134", "0.599236", ...
0.8379267
1
Get measurement correction state.
def DKi3(YKHO, YwkQ: int=1): return bool(YKHO.query(f'CALC{YwkQ}:CORR:STAT?', container=int))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n fwcO = YKHO.unit_of_measurement\n if fwcO in (hMVl, btpD):\n if YKHO._state is None:\n YKHO._state = 0\n return round(YKHO._state, 2)\n return YKHO._state", "def XoF1(YKHO):\n if YKHO._computed_observables['standard_state_correction'] is None:\n yeIS ...
[ "0.6797476", "0.6731082", "0.64657503", "0.64474845", "0.64257145", "0.63722926", "0.6368147", "0.633871", "0.6320503", "0.6286247", "0.6286247", "0.6253028", "0.6233782", "0.6198021", "0.6158739", "0.6138128", "0.6129187", "0.6129187", "0.6129187", "0.61235684", "0.6123268",...
0.71799064
0
Compute the gaussian function.
def yCnv(YKHO, xqoZ): YKHO.param = xqoZ wEf2 = xqoZ[2] * ywwl.exp(-0.5 * ((YKHO.l - xqoZ[0]) / xqoZ[1]) ** 2) return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(WKvO):\n return oyIN.exp(-WKvO ** 2)", "def IAWS(WKvO):\n return oyIN.exp(-(WKvO ** 2 / 2))", "def IAWS(WKvO: float) -> float:\n return oyIN.exp(-(WKvO ** 2 / 2))", "def IAWS(YKHO):\n return na_E.gaussian(YKHO.image, YKHO.params['intensity'])", "def IAWS(yGTL, WTkW, WKvO):\n return ...
[ "0.8352042", "0.8342434", "0.82459736", "0.8076006", "0.8018535", "0.7991701", "0.7975446", "0.7955136", "0.79212755", "0.7902504", "0.7871304", "0.78421247", "0.7828634", "0.7808585", "0.7784088", "0.7762166", "0.7761542", "0.7761542", "0.77511466", "0.77503246", "0.7720777"...
0.0
-1
Compute the gaussian function.
def yCnv(YKHO, xqoZ): YKHO.param = xqoZ Aqj7 = ywwl.reshape(xqoZ[YKHO.npar_cor:], (YKHO.npar_ind, YKHO.nslice)).T wEf2 = Aqj7[:, 4:5] * ywwl.exp(-0.5 * (((YKHO.x - Aqj7[:, 0:1]) / Aqj7[:, 2:3]) ** 2 + ((YKHO.y - Aqj7[:, 1:2]) / Aqj7[:, 3:4]) ** 2)) return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(WKvO):\n return oyIN.exp(-WKvO ** 2)", "def IAWS(WKvO):\n return oyIN.exp(-(WKvO ** 2 / 2))", "def IAWS(WKvO: float) -> float:\n return oyIN.exp(-(WKvO ** 2 / 2))", "def IAWS(YKHO):\n return na_E.gaussian(YKHO.image, YKHO.params['intensity'])", "def IAWS(yGTL, WTkW, WKvO):\n return ...
[ "0.8352042", "0.8342434", "0.82459736", "0.8076006", "0.8018535", "0.7991701", "0.7975446", "0.7955136", "0.79212755", "0.7902504", "0.7871304", "0.78421247", "0.7828634", "0.7808585", "0.7784088", "0.7762166", "0.7761542", "0.7761542", "0.77511466", "0.77503246", "0.7720777"...
0.0
-1
Compute the gaussian function.
def yCnv(YKHO, xqoZ): YKHO.param = xqoZ Aqj7 = ywwl.reshape(xqoZ, (YKHO.npar_ind, YKHO.nslice)).T HuaE = 1.4142135623730951 nY8p = (YKHO.x + YKHO.pix / 2 - Aqj7[:, 0:1]) / (HuaE * Aqj7[:, 2:3]) ABxN = (YKHO.x - YKHO.pix / 2 - Aqj7[:, 0:1]) / (HuaE * Aqj7[:, 2:3]) L81h = (YKHO.y + YKHO.pix / 2 - ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(WKvO):\n return oyIN.exp(-WKvO ** 2)", "def IAWS(WKvO):\n return oyIN.exp(-(WKvO ** 2 / 2))", "def IAWS(WKvO: float) -> float:\n return oyIN.exp(-(WKvO ** 2 / 2))", "def IAWS(YKHO):\n return na_E.gaussian(YKHO.image, YKHO.params['intensity'])", "def IAWS(yGTL, WTkW, WKvO):\n return ...
[ "0.8352042", "0.8342434", "0.82459736", "0.8076006", "0.8018535", "0.7991701", "0.7975446", "0.7955136", "0.79212755", "0.7902504", "0.7871304", "0.78421247", "0.7828634", "0.7808585", "0.7784088", "0.7762166", "0.7761542", "0.7761542", "0.77511466", "0.77503246", "0.7720777"...
0.0
-1
Adjusted parameter covariance matrix computed from approximated hessian (including or not hyperterm if any). Hessian is 2ndorder derivative matrix, numerically estimated from 1storder derivative vector. Nonfitted elements (lb=ub) should be removed prior to inversion.
def sapI(YKHO, xqoZ=None, bdbA=True): if xqoZ is None: xqoZ = YKHO.fitpar AN0w = lambda xqoZ: YKHO.objgrad(param=xqoZ, hyper=bdbA) ZqWh = xIRi(AN0w, xqoZ) ftQ2 = ~ywwl.array([_IwV == KGgp != None for _IwV, KGgp in YKHO.bounds]) ah6N = ftQ2.sum() jylP = ZqWh[ywwl.outer(ftQ2, ftQ2)].reshap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nm4d(YKHO, ExR0):\n tpio = len(ExR0)\n LtKP = oyIN.zeros((tpio, tpio))\n ZqWh = oyIN.zeros((tpio, tpio))\n for a1PO in range(YKHO.T):\n QRM3, z0Za = (YKHO.X[a1PO], YKHO.X_raw[a1PO])\n jzdc, LVAh = (z0Za[:, 1], z0Za[:, 2])\n S2RQ = YKHO.y[a1PO]\n for vC9B in range(YKHO.L)...
[ "0.6763161", "0.6759274", "0.659068", "0.6383188", "0.6282877", "0.624015", "0.62400734", "0.6237404", "0.62293464", "0.61718535", "0.61331815", "0.6026622", "0.60245043", "0.5990863", "0.5961794", "0.5926369", "0.59165156", "0.59012234", "0.58868676", "0.5881847", "0.5880778...
0.5970485
14
Return, if found, the model. The name should be "bundle.model" like "blog.Post". If the model cannot be found, a KeyError exception will be raised.
def YrZb(YKHO, ZGE9): return YKHO.data_connector.models[ZGE9]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YrZb(YKHO, ZGE9):\n from kalapy.db.model import ModelType\n if isinstance(ZGE9, ModelType):\n ZGE9 = ZGE9._meta.name\n assert ZGE9.count(':') == 1, 'Invalid model name format'\n B5hb, mWFP = ZGE9.split(':')\n vbQv = YKHO.model_alias.get(ZGE9.lower(), ZGE9.lower())\n try:\n retur...
[ "0.7979408", "0.7643994", "0.7553973", "0.75237304", "0.7505449", "0.7405726", "0.717558", "0.71299577", "0.7123616", "0.70577973", "0.70378524", "0.70314366", "0.7005012", "0.70017993", "0.6991541", "0.6979333", "0.6955313", "0.69483054", "0.69465345", "0.6940432", "0.691476...
0.7398679
6
Returns an observable sequence with a single notification, using the specified scheduler, else the immediate scheduler.
def DEgO(YKHO, IesV=None): f5t3 = YKHO IesV = IesV or UUni def FxIp(LiTy): def XeOP(IesV, QTBn): f5t3._accept_observable(LiTy) if f5t3.kind == 'N': LiTy.on_completed() return IesV.schedule(XeOP) return GFfw(FxIp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def phe9(IesV: abc.SchedulerBase) -> YrBT[[cBwQ[sb5H]], cBwQ[sb5H]]:\n from ._subscribeon import subscribe_on_\n return subscribe_on_(IesV)", "def ILs5(IesV: abc.SchedulerBase) -> YrBT[[cBwQ[sb5H]], cBwQ[sb5H]]:\n from ._observeon import observe_on_\n return observe_on_(IesV)", "def IesV(YKHO) -> h...
[ "0.6499394", "0.63753784", "0.5798496", "0.5672308", "0.55893445", "0.5567532", "0.55410284", "0.55001026", "0.55001026", "0.55001026", "0.55001026", "0.55001026", "0.55001026", "0.55001026", "0.55001026", "0.55001026", "0.5497813", "0.54878324", "0.54135567", "0.5386454", "0...
0.70440096
0
Convert an integer to a string containing commas every three digits. For example, 3000 becomes '3,000' and 45000 becomes '45,000'. This function is located in django.contrib.humanize
def CKfd(BWXx): zXzD = str(BWXx) BdN0 = ZbWC.sub('^(-?\\d+)(\\d{3})', '\\g<1>,\\g<2>', zXzD) if zXzD == BdN0: return BdN0 else: return CKfd(BdN0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ntxK(YKHO, QpfX, exwG):\n return ZbWC.sub('(\\\\d)(?=(\\\\d\\\\d\\\\d)+(?!\\\\d))', '\\\\1,', str(exwG))", "def yLAv(YKHO, FGW3: int) -> str:\n if int(FGW3) != FGW3:\n raise ValueError('Number should be integer')\n fktj = str(FGW3)\n hlel = ''\n for YRbF in range(len(fktj), -1, -3):\n ...
[ "0.7504245", "0.7438708", "0.74337167", "0.7414927", "0.7246429", "0.7236702", "0.7225043", "0.7026303", "0.6957495", "0.69547117", "0.69456965", "0.69286615", "0.68481785", "0.6842678", "0.68362254", "0.68362254", "0.6616661", "0.65878713", "0.6536312", "0.65240633", "0.6509...
0.688683
12
Pad count for convolutional layer when stride is one
def gfYF(eHNT): return (eHNT - 1) / 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jNvr(Ot1W, ivFb, _0fC):\n return (_0fC - 1 + ivFb * (Ot1W - 1)) // 2", "def jNvr(Ot1W, ivFb, _0fC):\n return (_0fC - 1 + ivFb * (Ot1W - 1)) // 2", "def Xl1a(FCPk, Ot1W, _0fC, ivFb=1, dvgN=0, TWfd=0):\n return epAf.floor((FCPk + 2 * dvgN - ivFb * (Ot1W - 1) - 1) / _0fC) + 1", "def RLHU(YKHO, yXjA...
[ "0.7128616", "0.7121191", "0.6855254", "0.68071294", "0.668881", "0.6684205", "0.66823965", "0.6633607", "0.6606685", "0.6547437", "0.6547026", "0.6531971", "0.6518682", "0.65027666", "0.6489791", "0.648878", "0.64464813", "0.64394265", "0.6438675", "0.6425426", "0.6407451", ...
0.6274447
36
It takes image as input,returns canny edge maps
def Etbf(p4m8): VqGG = jbYn.imread(p4m8, 1) VqGG = jbYn.GaussianBlur(VqGG, (3, 3), 0) vM_f = jbYn.cvtColor(VqGG, jbYn.COLOR_BGR2GRAY) Jr4J = jbYn.Canny(vM_f, 125, 200) return Jr4J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xD4o(UFp3):\n mC4V = XC5k.Canny(UFp3, 100, 200)\n return mC4V", "def D70y(VXjJ):\n LNo8 = XC5k.Canny(VXjJ, 100, 200)\n return LNo8", "def E9p8(YKHO):\n qLBR = XC5k.Canny(YKHO.image, 50, 240)\n return qLBR", "def xh1Z(YKHO, LNo8):\n if type(LNo8) == ht2j.Tensor:\n LNo8 = YKHO.t...
[ "0.77167904", "0.7679986", "0.7630922", "0.7495904", "0.7398914", "0.7395205", "0.7379878", "0.72024536", "0.7143716", "0.7123558", "0.7093117", "0.709064", "0.7055333", "0.70440125", "0.70381296", "0.7024329", "0.69485015", "0.6933587", "0.69314027", "0.69264346", "0.6926434...
0.747698
4
View function for home page of site
def d6pt(QePW): return _1tc(QePW, 'index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'welcome.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "d...
[ "0.8553112", "0.8394067", "0.8377579", "0.83610994", "0.83610994", "0.82983655", "0.82936215", "0.82816446", "0.82586265", "0.8258097", "0.82552826", "0.8253744", "0.82336736", "0.81822497", "0.81822497", "0.8180565", "0.8166844", "0.8166844", "0.8166844", "0.81657726", "0.81...
0.0
-1
Flattens a nested list. >>> flatten_list([ [1, 2, [3, 4] ], [5, 6], 7]) [1, 2, 3, 4, 5, 6, 7]
def GarA(jzdc, Aofo=None): if Aofo is None: Aofo = [] for WKvO in jzdc: if isinstance(WKvO, list): GarA(WKvO, Aofo) else: Aofo.append(WKvO) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GarA(lu1l):\n return [ZfUD for XuXy in lu1l for ZfUD in XuXy]", "def GarA(KayY, qnkS=None):\n if qnkS is None:\n qnkS = list()\n for ZfUD in KayY:\n if isinstance(ZfUD, list):\n GarA(ZfUD, flattened=qnkS)\n else:\n qnkS.append(ZfUD)\n return qnkS", "de...
[ "0.84742844", "0.84238046", "0.8378127", "0.83693343", "0.8071225", "0.80627316", "0.803315", "0.8025735", "0.7913751", "0.79052925", "0.7897085", "0.7853305", "0.7847575", "0.7846752", "0.7786792", "0.7762065", "0.7760963", "0.77239263", "0.77194345", "0.7710965", "0.7687897...
0.72416794
63
Get instance of class `LogUtil`.
def iSDi(): if aIF7._instance is None: aIF7._instance = object.__new__(aIF7) aIF7._logger = vzeF aIF7._init_logger() return aIF7._instance
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W8L9(YKHO) -> h8nf[Few0]:\n return YKHO.request_log.log", "def fZx2(Emd4):\n return G9jH.getLogger('.'.join([Emd4.__module__, Emd4.__name__]))", "def I45O(Emd4):\n import logging\n return logging.getLogger('{}.{}'.format('.'.join(Emd4.__module__.split('.', 2)[:2]), Emd4.__name__))", "def fZx2...
[ "0.6930276", "0.6888423", "0.6840767", "0.67769897", "0.66368616", "0.66259474", "0.6603759", "0.6578147", "0.6545897", "0.65347886", "0.6528565", "0.6503898", "0.6494743", "0.64495724", "0.64495724", "0.6430944", "0.6414124", "0.63985515", "0.63300085", "0.6313411", "0.62602...
0.8769266
0
Base Constructor. \n auth = Auth(username = 'testuser', password = 'testpassword', key = 'apikey', secret = 'apisecret') \n cityApi = CityService(auth)
def FIMM(YKHO, Jpbe): M87a.__init__(YKHO, 'city', Jpbe) YKHO.headers = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, NtEF, jTXt):\n YKHO.api = fyIx(NtEF, jTXt)", "def FIMM(YKHO):\n YKHO.key = nNXP['key']\n YKHO.secret = nNXP['secret']\n YKHO._host = nNXP['host']\n YKHO._auth = YKHO._authenticate()", "def FIMM(YKHO, rJDA, KpHr=None):\n YKHO.api_key = rJDA\n YKHO.user_auth_token = KpHr\n ...
[ "0.76694596", "0.7629897", "0.7265349", "0.7246967", "0.7217514", "0.71937335", "0.71130407", "0.6969386", "0.6969376", "0.69545364", "0.69490767", "0.69198483", "0.69198483", "0.69187385", "0.69132024", "0.69132024", "0.6896582", "0.68838847", "0.68827784", "0.6852749", "0.6...
0.8409014
0
Creates and saves a superuser with the given username, email and password.
def Zp54(YKHO, NtEF, D3lj, jTXt): CBIr = YKHO.create_user(username=NtEF, email=D3lj, password=jTXt) CBIr.is_admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(NtEF, D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save()\n return CBIr", "def Zp54(YKHO, D3lj, jTXt=None...
[ "0.83903164", "0.8249157", "0.8230921", "0.8218434", "0.82027936", "0.819859", "0.819859", "0.8175957", "0.8169039", "0.8128542", "0.81081104", "0.8090591", "0.80795807", "0.8067868", "0.8065074", "0.8057746", "0.80512464", "0.8048261", "0.80412513", "0.8025432", "0.80242485"...
0.8162181
9
draws some infos to the bottom of the screen.
def qAKg(YKHO): DRXE = 0 xy8w = 0 jL9A = 0 for f0el in YKHO.tanks: DRXE += len(f0el.bullet_mgr.bullets) if f0el.name == 'Player': xy8w = f0el.pos.astype('int32') if f0el.name == 'AI': jL9A = f0el.pos.astype('int32') LU8U = len(YKHO.obst_mgr.obstacles) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kWY2(YKHO):\n YKHO.win.fill(YKHO.c.WHITE)\n for l5Ny, H5ew, o9av in (('METAR-RasPi', 'title', EElO), ('Michael duPont', 'name', zSWB), ('michael@mdupont.com', 'email', zSWB), ('github.com/flyinactor91/METAR-RasPi', 'url', cypz)):\n AU8u = (YKHO.width / 2, YKHO.layout['info'][H5ew + '-y'])\n ...
[ "0.7610902", "0.6983472", "0.6861558", "0.6840374", "0.6790263", "0.6775107", "0.675746", "0.66875976", "0.6646766", "0.6619205", "0.6607193", "0.66038364", "0.65854275", "0.65821576", "0.6577516", "0.6565894", "0.6550301", "0.6528133", "0.6526582", "0.65206677", "0.65159744"...
0.0
-1
Adds a single node to the graph. The `name` is converted to a lower case string.
def g5gD(YKHO, mWFP): Q6kx = YKHO._norm(mWFP) if Q6kx in YKHO._outward: return Q6kx YKHO._outward.setdefault(Q6kx, set()) YKHO._inward.setdefault(Q6kx, set()) return Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g5gD(YKHO, mWFP):\n assert type(mWFP) == SnBA.StringType\n if mWFP in YKHO.nodes:\n tO9_ = \"A node with name '%s' already exists\" % (mWFP,)\n raise ValueError(tO9_)\n Esd_ = YKHO.nodes[mWFP] = o7DN(mWFP)\n YKHO.leaf_nodes.add(Esd_)\n YKHO.root_nodes.add(Esd_)\n return Esd_", ...
[ "0.7810345", "0.739651", "0.7205888", "0.71530044", "0.70298016", "0.7024747", "0.7017549", "0.6968891", "0.68645245", "0.6822375", "0.67953056", "0.67346", "0.6728888", "0.6711826", "0.6700944", "0.6637675", "0.6624086", "0.65002364", "0.64636797", "0.64357686", "0.6432201",...
0.7033776
4
Get the available products.
def gVVd(SCrs): bD7m = SCrs + '/products' RKD7.debug('Getting product list from %s' % bD7m) _hkX = G4JS.get(bD7m) M7Pw(_hkX) f8k7 = _hkX.json() return f8k7['products']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jPbW():\n dixj = []\n dixj = msfn.available()\n return Yxsy(pz3A([XP5J.serialize() for XP5J in dixj]), n6fA)", "def nOVP():\n G9jH.debug('Attempting to show all available products')\n qm8v = JyNF()\n with qm8v:\n NCls = qm8v.connection.HPNorton\n Ldyl = NCls['products']\n ...
[ "0.8459762", "0.8065561", "0.79602724", "0.7787965", "0.7718293", "0.76135004", "0.7595681", "0.7523046", "0.74367857", "0.73987156", "0.7355353", "0.73203766", "0.7312373", "0.72932863", "0.72774845", "0.72774845", "0.7268447", "0.7258818", "0.718458", "0.7177924", "0.717620...
0.6514584
71
Get all product categories for out product category drop down.
def QWjT(QePW): jvqk = SKOh.objects.all() return {'categories': jvqk}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNmM(YKHO):\n return msfn.objects().distinct('category')", "def LQuW(YKHO):\n YKHO.cursor.execute(YKHO.sql_select_cmds['select_categories'])\n return YKHO.cursor.fetchall()", "def ojta(YKHO):\n YKHO._api.get_product_categories(YKHO.id)", "def zG33(YKHO):\n return YKHO.categoryList", "def...
[ "0.76098335", "0.74038774", "0.7231212", "0.7200567", "0.703769", "0.703769", "0.7016005", "0.6915761", "0.6891623", "0.6857169", "0.6843569", "0.68121445", "0.67709404", "0.6758199", "0.6754189", "0.6753206", "0.6730941", "0.6730484", "0.66901696", "0.6689234", "0.6679164", ...
0.73213154
2
Trains separate model for each client and records client updates. It has the same inputs and return values as `train_multiple_clients` above, but parallelizes the training across multiple devices if available.
def NRzD(i5sd: FederatedData, zsrT: List[str], LHE2: ClientTrainer[T], zJYJ: T, RUHr: PRNGSequence, ZkCx: dataset_util.ClientDataHParams) -> bDy6[ImMB]: ZkCx = ZkCx._replace(drop_remainder=True) YRkB = [] bFZm = i5sd.preprocess(lambda oxOY: XAXe.preprocess_tf_dataset(oxOY, ZkCx)) for bGrB, S9ov in JB9A....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUkS(YKHO):\n Onn9 = YKHO.selected_clients\n v14D = len(Onn9)\n vFgZ = 0\n for ewCu, Z9rn in enumerate(Onn9, 1):\n \"\\n Note: this is a trick. and it's equal to clear the session of client\\n and make sure the graph has been re-initialized.\\n \"\n Um...
[ "0.7339394", "0.72259194", "0.71756935", "0.71422476", "0.70530427", "0.70026314", "0.69888306", "0.6915222", "0.6811546", "0.6786016", "0.67379236", "0.671306", "0.6695263", "0.66946924", "0.66818345", "0.65186626", "0.65167457", "0.64590555", "0.63902426", "0.63598245", "0....
0.7494918
0
Testing adding new entities with invalid form
def M_fe(YKHO): geh0 = YKHO.app.post('/departments/new') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) geh0 = YKHO.app.post('/employees/new') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MmBe(YKHO):\n geh0 = YKHO.app.post('/departments/new', data={'name': 'foo'})\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_302_FOUND)\n geh0 = YKHO.app.get('/departments/1')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n MsNh = {'name': 'foo', 'date_of_birth': '2010-01-01', 'salary': ...
[ "0.7431457", "0.7235195", "0.69562894", "0.6939063", "0.691941", "0.6916448", "0.6891253", "0.6854421", "0.6849419", "0.6813344", "0.6806311", "0.6805659", "0.67908233", "0.6746807", "0.67312205", "0.6718102", "0.67120284", "0.6700448", "0.66968507", "0.6690493", "0.668932", ...
0.81265765
0
Test get edit entity page with invalid index
def S71V(YKHO): geh0 = YKHO.app.get('/departments/edit/1') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND) geh0 = YKHO.app.get('/employees/edit/1') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q8mR(YKHO):\n geh0 = YKHO.client.get('{}?edit=1321'.format(YKHO.api_link))\n YKHO.assertEqual(geh0.status_code, 404)", "def d9fW(YKHO):\n geh0 = YKHO.client.get('{}?edit=dsa67d8sa68'.format(YKHO.api_link))\n YKHO.assertEqual(geh0.status_code, 404)", "def Q8mR(YKHO):\n geh0 = YKHO.client.post...
[ "0.7478603", "0.7407377", "0.7351134", "0.7320131", "0.7311103", "0.7220686", "0.7184537", "0.71578354", "0.7148359", "0.71007556", "0.70082724", "0.6994058", "0.6898376", "0.68537563", "0.68384784", "0.6820078", "0.67341566", "0.6715105", "0.6646355", "0.659892", "0.6593586"...
0.83814245
0
Test GET EACH '/api/v1/responses/'
def IKMy(YKHO): for H5ew in YKHO.responses_dict.keys(): im04 = YKHO.app.get(f'/api/v1/responses/{H5ew}') YKHO.assertEqual(im04.status_code, 200) YKHO.assertEqual(im04.get_json(), YKHO.responses_dict[H5ew]) YKHO.assertEqual(im04.get_json()['data'], YKHO.responses_dict[H5ew]['data']) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dc1q(YKHO):\n pass", "def ixGW(YKHO):\n pass", "def Gchn(d4y1):\n geh0 = d4y1.get('/get-test')\n assert geh0.url == '{base_url}/get-test'.format(base_url=zDeW)\n assert geh0.status_code == 200\n assert geh0.json() == {'Get-Test': 'A-OK'}", "def ykgQ(YKHO):\n YKHO.assertEqual(200, YKH...
[ "0.8563725", "0.73293245", "0.72555834", "0.714595", "0.714595", "0.714595", "0.7142149", "0.7134806", "0.711783", "0.70982444", "0.70982444", "0.70982444", "0.70982444", "0.70982444", "0.70816374", "0.7027926", "0.7027926", "0.7027926", "0.7027926", "0.7027926", "0.7027926",...
0.7850045
1
Test POST First Time '/api/v1/responses'
def XHKs(YKHO): YKHO.responses_dict = {} YKHO.test_post_responses() print("POST FIRST TIME '/api/v1/responses' : OK")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dc1q(YKHO):\n pass", "def qrWq(YKHO):\n pass", "def mTBH(YKHO):\n YKHO._seed_data()\n Bv0m = {'application_form_id': YKHO.form.id, 'is_submitted': True, 'answers': [{'question_id': YKHO.question.id, 'value': 'Answer 1'}, {'question_id': YKHO.question2.id, 'value': 'Hello world, this is the 2nd ...
[ "0.7398944", "0.7313551", "0.7186871", "0.71563524", "0.707824", "0.7032681", "0.69616723", "0.69616723", "0.6903603", "0.69035906", "0.688207", "0.6872347", "0.68627036", "0.686207", "0.681009", "0.6768704", "0.67044514", "0.66885155", "0.6686613", "0.66842836", "0.66827214"...
0.8844211
0
[read txt file into df]
def IXf6(YKHO, YosV: str, irhP: str) -> rLdf.DataFrame: CQwJ = zpfZ() jQ3Z = rLdf.read_csv(YosV, delimiter='\n', header=0) ycBG = [] OX9D = 0 vyb1 = len(jQ3Z) if vyb1 > 0: for or8S in range(vyb1): TdKO = jQ3Z.iloc[or8S].item().split(',') TdKO[-1] = YKHO.category_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y1jK(XvcI: str):\n LMLK = CwDs.read_table(XvcI, sep=' ', names=['info_id', 'feature_id', 'feature_val'])\n return LMLK", "def xx2o(YKHO):\n jQ3Z = rLdf.read_csv(YKHO.txtFilePath, header=0)\n return jQ3Z", "def XwjR(Ux0P):\n DbVC = []\n with open(Ux0P, 'r') as lO3O:\n Nqlg = lO3O.re...
[ "0.7857993", "0.76780003", "0.76226085", "0.7534405", "0.7501812", "0.74795663", "0.73871315", "0.7315249", "0.73003924", "0.7209808", "0.70892704", "0.70258313", "0.6949097", "0.692273", "0.68357986", "0.68187284", "0.68039984", "0.6780747", "0.6778994", "0.66852635", "0.665...
0.7451714
6
Assert that errors are raised when height is too low or too high
def r32H(): Gshx = el5c.h_min ur7t = el5c.h_max for JjQG in [Gshx, ur7t]: try: ONcO(JjQG) except ValueError: trZe.fail(f'ValueError for height {JjQG} m...') XH5w = [Gshx - 1, ur7t + 1, [1, 2, 3, Gshx - 1], [1, 2, 3, Gshx - 1, 50], [1, 2, 3, ur7t + 1], [1, 2, 3, ur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SHVu(YKHO):\n with YKHO.assertRaises(ValueError) as P1dF:\n x7Ls(1, -2, 3, 4, 5)\n YKHO.assertEqual(str(P1dF.exception), 'height must be > 0')", "def I_op(YKHO):\n with YKHO.assertRaises(ValueError):\n _UKz(2, -4)", "def RuRB(YKHO):\n with YKHO.assertRaisesRegex(ValueError, 'heigh...
[ "0.7747413", "0.7676001", "0.7616241", "0.75424343", "0.74529296", "0.74528015", "0.7432377", "0.738474", "0.73476017", "0.7297484", "0.72854245", "0.7238683", "0.722193", "0.71951145", "0.7187569", "0.7182849", "0.71818733", "0.712897", "0.7038416", "0.70232654", "0.6997811"...
0.7246217
11
returns list of hrd instances for specified app
def LxWX(YKHO, mWFP, zrIJ='jumpscale'): Ylbp = [] for KAOR in YKHO.getAppHRDInstanceNames(mWFP, zrIJ): Ylbp.append(YKHO.getAppInstanceHRD(mWFP, KAOR, zrIJ)) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y5NJ(YKHO):\n return YKHO.client._perform_json('GET', '/apps/%s/instances/' % YKHO.app_id)", "def P4t4(P4t4, Swre):\n KAOR, a4ZY = P4t4.split('/')\n if a4ZY == 'running':\n bUWH = EFVN(KAOR, OaeV['ws_api'])\n else:\n bUWH = yp4P(KAOR, a4ZY, OaeV['ws_api'])\n if not bUWH:\n ...
[ "0.698542", "0.6789811", "0.66544634", "0.6540599", "0.65276295", "0.6401083", "0.6370143", "0.6341376", "0.6335775", "0.6307574", "0.6274259", "0.61974716", "0.6177758", "0.61546594", "0.614409", "0.61435455", "0.61379546", "0.61209154", "0.61091506", "0.61044276", "0.606373...
0.7185837
0
Returns quoted PO term string, with special PO characters escaped
def NCC9(KCHu): assert '\\n' not in KCHu, "Translation terms may not include escaped newlines ('\\n'), please use only literal newlines! (in '%s')" % KCHu return '"%s"' % KCHu.replace('\\', '\\\\').replace('"', '\\"').replace('\n', '\\n"\n"')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l1zO(YKHO, Bpww):\n return Bpww.replace('\\\\', '\\\\\\\\').replace(\"'\", \"\\\\'\")", "def NCC9(mWFP):\n return '{Q}' + mWFP + '{Q}'", "def zAg0(YKHO):\n PrQl = u''\n PrQl = zH25.join([QMSQ(yzQ0) for yzQ0 in YKHO.words]) + UZ_3\n return PrQl", "def Nn8g(KCHu: str) -> str:\n return Inl...
[ "0.6264274", "0.6258726", "0.62534285", "0.6044125", "0.6027215", "0.60215646", "0.5996156", "0.59258413", "0.5924815", "0.58815163", "0.5867301", "0.58396965", "0.5834364", "0.58342767", "0.58287776", "0.58224404", "0.5820213", "0.58099824", "0.57947534", "0.5789495", "0.578...
0.6109371
3
Returns unquoted PO term string, with special PO characters unescaped
def rtow(str): return h29v.sub(ASxf, str[1:-1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l1zO(YKHO, Bpww):\n return Bpww.replace('\\\\', '\\\\\\\\').replace(\"'\", \"\\\\'\")", "def bBdp(eOtH):\n return eOtH[2].strip('\\'\"')", "def UUYa(aWuw: str) -> 'str, single char':\n U5bT = aWuw\n if len(aWuw) == 2 and aWuw[0] == '\\\\':\n U5bT = aWuw[1].translate(str.maketrans('-+x\\\...
[ "0.6189123", "0.59054863", "0.58917946", "0.58593047", "0.58590126", "0.5847838", "0.58416426", "0.58020896", "0.57787216", "0.57595086", "0.57329893", "0.5712077", "0.57058835", "0.56828475", "0.5621529", "0.56144226", "0.56131876", "0.56113553", "0.5602912", "0.55987144", "...
0.0
-1
On inherited classes, run our `setUp` method
def Baw8(Emd4): if Emd4 is not TBiK and Emd4.setUp is not TBiK.setUp: njsE = Emd4.setUp def DGSz(YKHO, *qIxc, **B2fa): TBiK.setUp(YKHO) return njsE(YKHO, *qIxc, **B2fa) Emd4.setUp = DGSz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n super(CG4g, YKHO).setUp()", "def FCbF(YKHO):\n pass", "def uTCA(YKHO):\n try:\n for i_Aq in YKHO.__class__.__bases__:\n try:\n super(i_Aq, YKHO).setUp()\n except AttributeError:\n pass\n except AttributeError:\n pas...
[ "0.81027853", "0.8065208", "0.8009998", "0.7973782", "0.7920763", "0.7920763", "0.7920763", "0.7897186", "0.78639096", "0.7814789", "0.77248406", "0.77248406", "0.77248406", "0.7709501", "0.7709501", "0.7709501", "0.7709501", "0.7709501", "0.7709501", "0.7709501", "0.769888",...
0.0
-1
Creates a new spec with the same properties, updating type.
def Kyq4(YKHO, b6vv): return YKHO.from_data({**YKHO._data, 'type': b6vv})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HunR(Cqok: BlockSpec, EhYO: str):\n return hkS8.evolve(Cqok, id=EhYO)", "def eLpg(YKHO, Cqok):\n return YKHO._invoke('create', {'spec': Cqok})", "def pSLt(OFgU, _o_1, mNpP, EntD):\n if _o_1 not in ['features', 'labels']:\n raise ValueError('We only support spec_type \"features\" or \"labels...
[ "0.6339069", "0.607651", "0.6058213", "0.60546", "0.60352623", "0.5826533", "0.57877296", "0.5769643", "0.5746867", "0.5745129", "0.5723956", "0.5710997", "0.56688905", "0.5606872", "0.5604129", "0.5600245", "0.55762553", "0.5555702", "0.5547488", "0.54877025", "0.5442283", ...
0.5376465
25
Returns the x, y coordinates of the player
def W0Eb(YKHO): jNOo = YKHO.player.locate() Ol8d = '你的坐标在: ({0},{1})'.format(jNOo[0], jNOo[1]) YKHO.interface.display(Ol8d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dQgj(YKHO):\n WKvO = YKHO.get_x()\n LVAh = YKHO.get_y()\n return (WKvO, LVAh)", "def eSMi(YKHO, Yh2b='ball'):\n WKvO = YKHO.superDict[Yh2b].positionx\n LVAh = YKHO.superDict[Yh2b].positiony\n return (WKvO, LVAh)", "def ajtt(YKHO):\n return (YKHO.x / 32, YKHO.y / 32, YKHO.z / 32)", "d...
[ "0.7617434", "0.7558907", "0.7553688", "0.7528318", "0.7528318", "0.7448457", "0.73779136", "0.737267", "0.73595005", "0.73583734", "0.7310588", "0.73087007", "0.72616833", "0.7252723", "0.7242153", "0.7241025", "0.7224419", "0.72120655", "0.72088903", "0.7166614", "0.7156164...
0.69914275
32
Removes any duplicated lists, which contain same elements in same order, within a list of lists.
def StJK(nwEZ): if type(nwEZ) == list and len(nwEZ) > 0 and (_uwh(nwEZ, list) == True): nwEZ.sort() HbfQ = list((nwEZ for nwEZ, bGrB in WhY1.groupby(nwEZ))) return HbfQ else: raise TypeError('remove_duplicated_lists_within_a_list_of_lists(list_of_lists): list_of_lists should be i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cXrt(e5Mv):\n bDFL = set(e5Mv)\n SIKZ = list(bDFL)\n return SIKZ", "def dDv2(qFa0):\n return [list(a1PO) for a1PO in set((tuple(U6D_) for U6D_ in qFa0))]", "def dDv2(yv6U):\n PwWw = set()\n aygV = PwWw.add\n return [ZfUD for ZfUD in yv6U if ZfUD not in PwWw and (not aygV(ZfUD))]", "d...
[ "0.76651204", "0.76591486", "0.76214194", "0.7514463", "0.7506641", "0.7472325", "0.7428615", "0.7344863", "0.7275044", "0.7272126", "0.7255869", "0.7202805", "0.7193424", "0.7188917", "0.7166187", "0.71378314", "0.7116562", "0.71034664", "0.70712024", "0.7044653", "0.7001826...
0.8379438
0
Merge unique elements from lists within a list.
def FnBq(nwEZ): if type(nwEZ) == list and len(nwEZ) > 0: if _uwh(nwEZ, list) == True: StJK(nwEZ) NA4w = list(nwEZ[0]) for JTgH in nwEZ[1:]: for tTpl in JTgH: if tTpl not in NA4w: NA4w.append(tTpl) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ihds(Uqbu):\n Ylbp = []\n for vC9B in Uqbu:\n Ylbp += vC9B\n return sorted(Ylbp)", "def vaOw(qnba: list) -> list:\n S06t = list()\n for Ghgm in qnba:\n if Ghgm not in S06t:\n S06t.append(Ghgm)\n return S06t", "def kcwm(IqQl):\n B6x2 = set(IqQl)\n vaOw = list...
[ "0.7227962", "0.7142051", "0.70948803", "0.70885", "0.7075347", "0.7053729", "0.70175886", "0.70074385", "0.7002629", "0.69554377", "0.6897336", "0.68972427", "0.6849303", "0.68156165", "0.6779933", "0.6776071", "0.67511326", "0.6729898", "0.6699187", "0.6644425", "0.6643637"...
0.7384648
0
Check if a list matches any of lists within a list.
def NVHR(nwEZ, yv6U): if ETZ5(nwEZ, yv6U) == []: return False else: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vhSh(IqQl, nwEZ):\n if type(IqQl) == oyIN.ndarray or type(nwEZ) == oyIN.ndarray:\n for vC9B in nwEZ:\n if oyIN.equal(IqQl, vC9B).all():\n return True\n else:\n for vC9B in nwEZ:\n if type(vC9B) == oyIN.ndarray:\n if oyIN.equal(IqQl, vC9B)....
[ "0.75658685", "0.7380442", "0.7297279", "0.72669584", "0.7234205", "0.71855193", "0.711185", "0.7046874", "0.70433074", "0.6997372", "0.69373405", "0.69225746", "0.691797", "0.68925124", "0.6821388", "0.6800408", "0.67630965", "0.6714447", "0.66742027", "0.6646614", "0.662779...
0.8297532
0
Show the survey question.
def tJx2(YKHO): print(bAls)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tJx2(YKHO):\n print(bAls)", "def tJx2(YKHO):\n print(YKHO.question)", "def tJx2(YKHO):\n print(YKHO.question)", "def tJx2(YKHO):\n print(YKHO.question)", "def Inv7() -> str:\n RzRl = {}\n return TvZl('survey/survey.html', **RzRl)", "def tJx2(id):\n if id != len(cuiw['responses'])...
[ "0.76042473", "0.74295026", "0.74295026", "0.74295026", "0.71798927", "0.7108199", "0.6935703", "0.68189627", "0.6611945", "0.6592445", "0.6518168", "0.6459955", "0.6456154", "0.6432756", "0.64242005", "0.64210474", "0.6407712", "0.63990486", "0.63984644", "0.6392154", "0.639...
0.7546717
1