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
get user by email
def CYTf(YKHO, D3lj): try: CBIr = YKHO.db['users'].find_one({'email': str(D3lj)}) if CBIr: return CBIr else: return None except: print(wVCK.format_exc()) raise
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()", "def TKWP(Emd4, D3lj: str):\n for CBIr in Emd4.users:\n if CBIr.email == D3lj:\n return CBIr", "def CYTf(Emd4, D3lj):\n for hbFX in NCls.users:\n CBIr = NCls.users.get(hbFX)\n ...
[ "0.90280974", "0.887007", "0.8709322", "0.86355263", "0.8513016", "0.8495368", "0.84804416", "0.8472626", "0.846831", "0.846831", "0.8455897", "0.8452402", "0.8442538", "0.83961177", "0.83850724", "0.83806", "0.8373112", "0.8358204", "0.8348453", "0.8344973", "0.83349514", ...
0.84063214
13
Build the VGG 19 Model
def uSnS(d7Eb, CJGY): iORl = [103.939, 116.779, 123.68] with ZylS.variable_scope('VGG19', reuse=CJGY) as cmJd: SWox = ITS7.time() print('build model started') VZWK = d7Eb * 255.0 if ZylS.__version__ <= '0.11': Z5Q9, jlxe, pPPK = ZylS.split(3, 3, VZWK) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def euQt(YKHO):\n MYHg = dTM8(weights='imagenet')\n MYHg.outputs = [MYHg.layers[9].output]\n VXjJ = X6a0(shape=YKHO._output_shape)\n r13y = MYHg(VXjJ)\n return wOed(VXjJ, r13y)", "def pFT6():\n MYHg = dTM8(weights='imagenet')\n K0do = qhl4(0.0002, 0.5)\n MYHg.outputs = [MYHg.layers[9].out...
[ "0.83604014", "0.82984525", "0.82657367", "0.8239439", "0.81959367", "0.81643677", "0.8162194", "0.80859613", "0.8017521", "0.80014986", "0.7915084", "0.78603476", "0.7848634", "0.7828906", "0.782631", "0.7786344", "0.7765314", "0.7751816", "0.77391154", "0.7698512", "0.76869...
0.0
-1
Get the energy of a particle at a given position Energy is defined as the sum of all forces acting on a particle
def rWkO(YKHO, il4J, dQgj=None): if dQgj is None: dQgj = il4J.position ppON = HnbY(il4J.group) ppON.position = dQgj VYvU = 0 for X6Jp in YKHO._particles: if X6Jp == il4J: continue VYvU += YKHO._get_force(ppON, X6Jp) VYvU += YKHO._get_group_orphan_penalty(il4J....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yTGz(YKHO, BZ33, Jyyj):\n return BZ33.potential_energy_in_field(Jyyj)", "def VYvU(YKHO, dQgj, H0zq):\n Iy_q = -YKHO.log_likelihood_fn(dQgj)\n twLp = ZylS.reduce_sum(ZylS.square(H0zq) / 2, axis=0)\n wjRY = Iy_q + twLp\n return wjRY", "def Nndf(oeNL, y917, bMbF, yvY1):\n dpqZ = 0.5 * oyIN.s...
[ "0.7644504", "0.75992703", "0.7451528", "0.74297184", "0.73790175", "0.7371318", "0.7319674", "0.729551", "0.7270706", "0.7212919", "0.71701086", "0.71563345", "0.71531856", "0.7146825", "0.7085316", "0.70401156", "0.6991594", "0.6988078", "0.6973828", "0.6961742", "0.6933572...
0.8112986
0
Aggregate to year. Expects a clean DataFrame with the columns defined by key_cols.
def EwcD(jQ3Z): jQ3Z['year'] = jQ3Z['Hourly Load Data As Of'].dt.year Ktol = ['NERC Region', 'Master BA Name', 'Abbreviated PCA Name', 'eia_code', 'year'] jQ3Z = jQ3Z.groupby(Ktol, as_index=False).agg({'Load (MW)': 'sum'}) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q9Tc(jQ3Z, _MEB, c9El='Datetime'):\n Sm0u = sorted(list(set([YRbF[:10] for YRbF in jQ3Z[c9El].values])))\n Rb9k = jQ3Z.copy()\n Rb9k[c9El] = [YRbF[:10] for YRbF in Rb9k[c9El].values]\n Rb9k = Rb9k.set_index(c9El)\n nPrm = []\n for YRbF in Sm0u:\n wEf2 = []\n for r845 in Rb9k.col...
[ "0.6382035", "0.6366114", "0.6231334", "0.6165687", "0.6065069", "0.6060042", "0.56952673", "0.5677921", "0.562526", "0.560859", "0.5553993", "0.54637927", "0.53751624", "0.5347078", "0.53139627", "0.5291635", "0.5227966", "0.5227493", "0.5214688", "0.5211744", "0.51949775", ...
0.6764123
0
Loads a configuration from .ini file and returns as ConfigParser
def LgIG(NsdQ: str) -> kwpV: if NsdQ is None: raise ValueError(f'Please provide a valid filepath for config (received: {str(NsdQ)}).') if not GkAb(NsdQ).exists(): raise FileNotFoundError(f'Could not find config at path: {str(NsdQ)}') GPtr = kwpV() GPtr.read(str(NsdQ)) return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pCXw():\n GPtr = enR0.ConfigParser()\n GPtr.read(Hy7s.path.dirname(xAKo) + '/config.ini')\n return GPtr", "def a2Xi(Emd4, VqRE):\n with open(VqRE, 'r') as eHNT:\n NqAa = '[root]\\n' + eHNT.read()\n xCu_ = kwpV.RawConfigParser()\n xCu_.read_string(NqAa)\n return xCu_", "def GPtr(...
[ "0.83261615", "0.78408", "0.78123844", "0.7783757", "0.77183586", "0.75374997", "0.74841106", "0.7472347", "0.7433619", "0.74030316", "0.73807925", "0.7355037", "0.7317081", "0.7308208", "0.73038054", "0.72451967", "0.72238904", "0.7222495", "0.7180768", "0.7170305", "0.71568...
0.6679716
81
Can older notebooks be opened and automatically converted to the current nbformat?
def Gph9(YKHO): with YKHO.fopen('test2.ipynb', 'r') as eHNT: GPal = Ueki(eHNT, as_version=r7jK) IJ4N, cbKy = kaPv(GPal) YKHO.assertEqual(IJ4N, r7jK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XEpr(GPal):\n if GPal.nbformat != 3:\n return GPal\n GPal.nbformat = 2\n for VTcd in GPal.worksheets:\n for VmPb in VTcd.cells:\n if VmPb.cell_type == 'heading':\n qpoi(VmPb)\n elif VmPb.cell_type == 'raw':\n kplJ(VmPb)\n return GPal...
[ "0.71058375", "0.69904655", "0.6816008", "0.67050856", "0.6654819", "0.6632174", "0.66252655", "0.6526117", "0.6328674", "0.6317854", "0.63029563", "0.6278847", "0.6244638", "0.61795765", "0.6136149", "0.6093353", "0.60647696", "0.60594326", "0.60531145", "0.6052218", "0.6049...
0.5950041
25
Renders the home page.
def kZiy(): return TvZl('action.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86085397", "0.85661966", "0.8562984", "0.84564984", "0.8353822", "0.8353445", "0.832796", "0.83265287", "0.83265287", "0.8311966", "0.83088946", "0.83046836", "0.8296962", "0.82942903", "0.82942903", "0.82872546", "0.8279762", "0.8279762", "0.8279762", "0.8279762", "0.8279...
0.0
-1
Converts a rotation matrix to a quaternion Matlab port to python for evaluation purposes
def KMoI(A3Vt): J0p0 = A3Vt - A3Vt.T Mkmy = oyIN.zeros(3) Mkmy[0] = -J0p0[1, 2] Mkmy[1] = J0p0[0, 2] Mkmy[2] = -J0p0[0, 1] k4pm = oyIN.linalg.norm(Mkmy) / 2 TRVV = oyIN.divide(Mkmy, oyIN.linalg.norm(Mkmy) + oyIN.finfo(oyIN.float32).eps) fSLV = (oyIN.trace(A3Vt) - 1) / 2 q7In = oyIN.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r43z(SppC):\n vexM = XTiz.zeros(4)\n vexM[0] = 0.5 * XTiz.sqrt(1 + XTiz.trace(SppC))\n if XTiz.allclose(0.0, vexM[0], 1e-15, 1e-08) == False:\n vexM[1] = 1 / (4 * vexM[0]) * (SppC[2, 1] - SppC[1, 2])\n vexM[2] = 1 / (4 * vexM[0]) * (SppC[0, 2] - SppC[2, 0])\n vexM[3] = 1 / (4 * ve...
[ "0.8198164", "0.7920904", "0.7791674", "0.7703189", "0.7694552", "0.76754373", "0.76482", "0.7574469", "0.7561908", "0.75560343", "0.7499366", "0.74925977", "0.7464815", "0.7461283", "0.742966", "0.7427625", "0.7404361", "0.7401563", "0.7395504", "0.735464", "0.7324483", "0...
0.7744299
3
Pass the Expiry Date in dt format
def sqw1(YKHO, kLQb): CfID = str(kLQb.day) if len(CfID) == 1: CfID = '0' + CfID CfID = CfID + kLQb.strftime('%b').upper() YKHO.inside_folder = Hy7s.path.join(YKHO.path, CfID)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rG7T(YKHO):\n OBx7 = fCoM(days=gCuF.INVOICE_EXPIRATION_DAYS)\n return YKHO.date + OBx7", "def ad72(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'expiration_date')", "def rG7T(YKHO):\n OBx7 = fCoM(days=31)\n return YKHO.date + OBx7", "def CwgM(YKHO) -> h8nf[qe4Y.Input[str]]:\n retur...
[ "0.7251323", "0.7134283", "0.70242566", "0.69898915", "0.69898915", "0.69898915", "0.69484276", "0.67693335", "0.67216414", "0.67013484", "0.66500485", "0.6631189", "0.6631189", "0.6598404", "0.6598404", "0.6598404", "0.6582053", "0.65225047", "0.65166503", "0.6475263", "0.64...
0.6725838
8
String representation of a LocationEstimate.
def zAg0(YKHO): hksT = 'Location Estimate: lat_deg = {}\n'.format(YKHO._lat_deg) hksT += ' lat_min = {}\n'.format(YKHO._lat_min) hksT += ' long_deg = {}\n'.format(YKHO._long_deg) hksT += ' long_min = {}\n'.format(YKHO._long_min) hksT += ' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L2UI(YKHO):\n return '({}, {})'.format(YKHO.location_x, YKHO.location_y)", "def PrXH(YKHO):\n raise NotImplementedError", "def zAg0(YKHO):\n Ebev = ', '.join(['latitude_deg: ' + str(YKHO.latitude_deg), 'longitude_deg: ' + str(YKHO.longitude_deg), 'absolute_altitude_m: ' + str(YKHO.absolute_altitud...
[ "0.7340721", "0.7234452", "0.6751977", "0.6744946", "0.67308056", "0.66569483", "0.6602789", "0.65391314", "0.65124047", "0.6506418", "0.6461226", "0.638806", "0.6355665", "0.63534427", "0.63521224", "0.6349667", "0.63448226", "0.63273007", "0.63234854", "0.62981325", "0.6298...
0.8013396
0
String representation of a LocationEstimate.
def wHJl(YKHO): return str(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n hksT = 'Location Estimate: lat_deg = {}\\n'.format(YKHO._lat_deg)\n hksT += ' lat_min = {}\\n'.format(YKHO._lat_min)\n hksT += ' long_deg = {}\\n'.format(YKHO._long_deg)\n hksT += ' long_min = {}\\n'.format(YKHO._long_min)\n hks...
[ "0.8013396", "0.7340721", "0.7234452", "0.6751977", "0.6744946", "0.67308056", "0.66569483", "0.6602789", "0.65391314", "0.65124047", "0.6506418", "0.6461226", "0.638806", "0.6355665", "0.63534427", "0.63521224", "0.6349667", "0.63448226", "0.63273007", "0.63234854", "0.62981...
0.0
-1
Convert a raw gps object into a LocationEstimate.
def a_37(Emd4, MREb, upAO): if MREb is None: return None return Emd4(MREb._lat_deg, MREb._lat_min, MREb._long_deg, MREb._long_min, upAO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UYOP() -> float:\n pass", "def jG8h(Emd4, qHj0) -> 'Geolocation':\n return gnPz.deserialize_model(qHj0, Emd4)", "def nLI_(axMB: etree.Element) -> PvyL:\n return PvyL(**InTc(axMB).__dict__)", "def wvRs(Aofo):\n U5bT = {'_type': 'pos', '_stamp': Aofo['_stamp'], 'utc': Aofo['time_utc'], 'loc': {...
[ "0.5645364", "0.5505392", "0.5467677", "0.5425918", "0.5403334", "0.53937757", "0.53894603", "0.5358429", "0.5337484", "0.52932805", "0.5288541", "0.528853", "0.5210857", "0.5193291", "0.5189", "0.51661694", "0.51523", "0.51461875", "0.5144524", "0.51203597", "0.50968635", ...
0.63183653
0
Convert a raw sensor package object into a LocationEstimate.
def fZZI(Emd4, tnkR, upAO): if tnkR is None: return None return Emd4(tnkR._lat_deg, tnkR._lat_min, tnkR._long_deg, tnkR._long_min, upAO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a_37(Emd4, MREb, upAO):\n if MREb is None:\n return None\n return Emd4(MREb._lat_deg, MREb._lat_min, MREb._long_deg, MREb._long_min, upAO)", "def SxM_(YKHO, mvm2: SAMPLE, u3tA: AnnotationReport):\n xwDh = mvm2.get(xlRM, None)\n if xwDh is None:\n u3tA.add_message(f'No lat_long speci...
[ "0.54836226", "0.54537505", "0.5309429", "0.52789223", "0.5213289", "0.5160103", "0.5154354", "0.51233315", "0.5022079", "0.49777204", "0.49555153", "0.49417707", "0.49376738", "0.49347544", "0.49189886", "0.48901019", "0.48814714", "0.48703212", "0.48646963", "0.48546946", "...
0.58521384
0
Load image at path and square crop with optional augmentation.
def hM8o(QMAG, HLKd=224, awgW=False, kwsU=True, XdaT=None, Hl5t=True, OfK8=False): LNo8 = ZylS.io.read_file(QMAG) LNo8 = ZylS.image.decode_jpeg(LNo8, channels=3) LNo8 = ZylS.cast(LNo8, ZylS.float32) / 255.0 if awgW: LNo8 = rNWm(LNo8, size=HLKd, random_scales=XdaT, horizontal_flip=Hl5t, colour=Of...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(YKHO):\n YKHO.full_img = XC5k.imread(YKHO.file_path)\n tIZI = YKHO.bbox[0]\n yew5 = YKHO.bbox[1]\n r6em = tIZI + YKHO.bbox[2]\n rhTI = yew5 + YKHO.bbox[3]\n YKHO.crop_loc = [tIZI, yew5, r6em, rhTI]\n YKHO.cropped_img = YKHO.full_img[yew5:rhTI, tIZI:r6em]", "def EXr3(YKHO):\n mWFP...
[ "0.706587", "0.6728955", "0.63890886", "0.63822675", "0.6377482", "0.6357479", "0.6303814", "0.6256622", "0.62471557", "0.62184864", "0.62184864", "0.62080383", "0.61891496", "0.6160735", "0.61508757", "0.61201704", "0.611967", "0.60941684", "0.60658425", "0.6054967", "0.6042...
0.6036174
22
Create tf.Example message (protobuf) from an embedding array.
def sLC1(wjQX): RDhP = {'embed': ZylS.train.Feature(float_list=ZylS.train.FloatList(value=wjQX))} xKOQ = ZylS.train.Example(features=ZylS.train.Features(feature=RDhP)) return xKOQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r43C(xKOQ):\n gMDe = {'embed': ZylS.io.FixedLenSequenceFeature([], ZylS.float32, allow_missing=True)}\n return ZylS.io.parse_single_example(xKOQ, gMDe)", "def AAfm(AiRR, IKIW):\n sgFg = []\n nV7C = []\n v_U2 = AiRR.messages[0].tokens[1:-1]\n for nWi7, Ol8d in enumerate(AiRR.messages):\n ...
[ "0.73666704", "0.6346519", "0.61814934", "0.61296", "0.61123174", "0.5981063", "0.5965756", "0.596293", "0.59492934", "0.5925647", "0.5914812", "0.58643883", "0.585751", "0.58514047", "0.584091", "0.5835078", "0.582235", "0.58148277", "0.577627", "0.57512486", "0.57481563", ...
0.76256585
0
Parse a serialized tf.Example embedding with variable length.
def r43C(xKOQ): gMDe = {'embed': ZylS.io.FixedLenSequenceFeature([], ZylS.float32, allow_missing=True)} return ZylS.io.parse_single_example(xKOQ, gMDe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iPIP(lGjS):\n AgdR = ZylS.io.parse_example(serialized=[lGjS], features={G1Hx: ZylS.VarLenFeature(ZylS.int64) for G1Hx in sjXb})\n AgdR = {G1Hx: Ty9i.values for G1Hx, Ty9i in AgdR.items()}\n if Gbrs:\n AgdR = {G1Hx: Ty9i + Gbrs for G1Hx, Ty9i in AgdR.items()}\n if not EXBY:\n AgdR = {G...
[ "0.738231", "0.7358792", "0.72213805", "0.7217866", "0.72027725", "0.7198093", "0.71725255", "0.7084815", "0.708111", "0.70786464", "0.70433784", "0.69952077", "0.69617075", "0.69430417", "0.6808421", "0.6799936", "0.6795237", "0.67898023", "0.6784399", "0.67720336", "0.67639...
0.81992817
0
Return the list of all members of the guild (raiders, applicants and nonraiders)
def DgAC(YKHO): return YKHO.rosters['guild'].members
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def emcY(YKHO):\n return YKHO.rosters['guild'].full_members", "def DgAC(YKHO):\n for lSCo in YKHO.guilds:\n yield lSCo.members[YKHO.id]", "def Zj78(LRlk):\n DgAC = cuiw.query(b0pq).filter(b0pq.quotes.any(LX6y.guild_id == LRlk)).order_by(JfyU.lower(b0pq.display_name)).join(b0pq.top_role).all()\n...
[ "0.77216375", "0.7356999", "0.7351093", "0.732647", "0.7271784", "0.71145904", "0.68656737", "0.68480647", "0.67666173", "0.67180055", "0.67131793", "0.67127997", "0.67127997", "0.6694652", "0.66492647", "0.66386396", "0.6619632", "0.6609895", "0.66017985", "0.6601606", "0.65...
0.76310605
1
Calculate average with of the fibril through the given time values.
def TVTK(YKHO, ywwl=3): return oyIN.average(YKHO.trend(YKHO.yt_sub, ywwl)[1] - YKHO.trend(YKHO.yb_sub, ywwl)[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SVbK(YKHO, ITS7=[], rKMu=[]):\n for ROt1 in range(YKHO.parameters['Total minutes']):\n for CjKC in range(365):\n X4TX = ITS7[ROt1, CjKC, 0]\n if X4TX != 0:\n rKMu[ROt1, 0] += X4TX\n rKMu[ROt1, 1] += 1\n RTy5 = rKMu[ROt1, 1]\n _ek6 = rK...
[ "0.6760783", "0.6743325", "0.6694129", "0.6604182", "0.6565886", "0.6553073", "0.65028673", "0.6481182", "0.6438458", "0.642437", "0.6405234", "0.637557", "0.63436764", "0.6298024", "0.6296028", "0.6295934", "0.6284922", "0.6254215", "0.62045366", "0.61973757", "0.6177008", ...
0.0
-1
Conver file to pandas dataframe
def ZAQi(nW2s) -> rLdf.DataFrame: def dfqv(WKvO: str): return WKvO.strip().split() Mjw9 = {} with open(nW2s) as rprY: for SCkQ in map(dfqv, mNn_.islice(rprY, 0, None)): dl50, ppu4, BWXx = SCkQ if dl50 not in Mjw9: Mjw9[dl50] = {} Mjw9[dl50...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ffYS(nW2s):\n jQ3Z = rLdf.read_csv(nW2s, header=[0, 1])\n return jQ3Z", "def bOBl(Ux0P):\n nPrm = rLdf.read_csv(Ux0P)\n return nPrm", "def fIqG(Ux0P):\n nPrm = rLdf.read_csv(Ux0P)\n return nPrm", "def ZAQi(YKHO, Ux0P):\n jQ3Z = rLdf.read_csv(Ux0P, '\\t', header=None)\n return jQ3Z...
[ "0.77905136", "0.7576117", "0.756353", "0.7492667", "0.7474618", "0.7443317", "0.742001", "0.73652333", "0.72873545", "0.7286124", "0.72688043", "0.7254202", "0.7244461", "0.72034526", "0.71157426", "0.7081785", "0.7071004", "0.70449656", "0.70433396", "0.6975951", "0.6975459...
0.0
-1
If the vertex "vertex" is not in self.__graph_dict, a key "vertex" with an empty list as a value is added to the dictionary. Otherwise nothing has to be done.
def ohmD(YKHO, SLBp): if SLBp not in YKHO.__graph_dict: YKHO.__graph_dict[SLBp] = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n if not SLBp in YKHO.vertices():\n YKHO.__graph_dict[SLBp] = []", "def ohmD(YKHO, SLBp):\n if SLBp not in YKHO._graph_dict:\n YKHO._graph_dict[SLBp] = []", "def ohmD(YKHO, SLBp):\n if SLBp not in YKHO._graph_dict:\n YKHO._graph_dict[SLBp] = []", "def ohmD(...
[ "0.85510224", "0.8518203", "0.849929", "0.7785659", "0.76569885", "0.7627766", "0.7560533", "0.7535678", "0.7501819", "0.7438662", "0.7411431", "0.73954415", "0.7319987", "0.73022705", "0.72441405", "0.7243076", "0.72272503", "0.7220207", "0.71914244", "0.71730685", "0.709211...
0.8589392
1
Return an argparse option parser for this application. Subclasses may override this method to extend the parser with more global options.
def LX25(JBZA, DpZH, r0PU): wvEv = j1Jz.ArgumentParser(description=JBZA, add_help=False) wvEv.add_argument('--version', action='version', version=DpZH) wvEv.add_argument('-v', '--verbose', '--debug', action='count', dest='verbose_level', default=0, help='Increase verbosity of output and show tracebacks on e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z0ba(YKHO):\n return ugSn.ArgParser(add_help=False)", "def Y91A(YKHO) -> j1Jz.ArgumentParser:\n if YKHO.initialized:\n assert False, 'option class has already been initialized.'\n wvEv = j1Jz.ArgumentParser(formatter_class=j1Jz.ArgumentDefaultsHelpFormatter)\n wvEv = YKHO.initialize(wvEv)\...
[ "0.80151635", "0.7803788", "0.7653269", "0.762262", "0.75935465", "0.75012726", "0.73551875", "0.7347707", "0.7340022", "0.73259455", "0.72972673", "0.728938", "0.725006", "0.7232607", "0.72295004", "0.7217282", "0.7187898", "0.71832997", "0.7173409", "0.71697825", "0.7128103...
0.0
-1
Generate random string of size size
def X3mS(YKHO, zNig=6): gLiZ = vIwR.ascii_uppercase + vIwR.digits return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yMb3():\n return BWvy(tuKI.randint(1, P6m3))", "def TDq5(zNig):\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(zNig)))", "def Kq2p(zNig=16):\n UbQY = vIwR.ascii_letters + vIwR.digits\n return ''.join([tuKI.choice(UbQY) for bGrB in rang...
[ "0.8840616", "0.86962193", "0.86619586", "0.86395943", "0.860125", "0.85601634", "0.84882003", "0.84846413", "0.8458117", "0.82841593", "0.8269629", "0.82664263", "0.8239462", "0.82322365", "0.821917", "0.819726", "0.81727546", "0.81665206", "0.81482136", "0.80875325", "0.807...
0.8482101
8
Get the object model type of the node.
def KoQg(YKHO) -> str: yDln = YKHO.get_om_types() return yDln[0] if yDln else ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO):\n return YKHO.__node_type", "def PGEZ(YKHO):\n return YKHO._node_type", "def PGEZ(YKHO):\n return YKHO._node_type", "def m1GV(YKHO) -> cuzp[object, str]:\n return YKHO.type_by_node", "def DMw4(YKHO):\n return YKHO._model_type", "def DMw4(YKHO):\n return YKHO._model_type"...
[ "0.79005045", "0.7501021", "0.7501021", "0.74921006", "0.7469844", "0.7469844", "0.7466652", "0.74450326", "0.739241", "0.7299824", "0.7289405", "0.7289133", "0.7289133", "0.7289133", "0.7289133", "0.7289133", "0.7289133", "0.7289133", "0.7289133", "0.7289133", "0.7289133", ...
0.0
-1
Get the path to the parent node.
def _AKB(YKHO) -> 'OMPath': _AKB = pxov(YKHO._heir[0]) for F965 in YKHO._heir[1:]: _AKB.add_parent(F965) return _AKB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slOJ(YKHO):\n return GkAb(Hy7s.path.split(YKHO.get_absolute())[0])", "def NmVZ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'parent_path')", "def NmVZ(YKHO):\n if nwFT not in YKHO.__props:\n return None\n pmON = YKHO.__props[cCRt]\n assert pmON[-1] == '/'\n return pmON", "def Xn8b...
[ "0.85924757", "0.8590487", "0.83804834", "0.82646686", "0.8101189", "0.7984331", "0.7883187", "0.7851113", "0.78354263", "0.7760786", "0.7705682", "0.76722485", "0.76722485", "0.7597755", "0.7550993", "0.7550993", "0.7540168", "0.75288117", "0.7514145", "0.75121623", "0.75116...
0.0
-1
Get the length of the underlying dataset >>> length = len(dataset.astype('f8'))
def szAg(YKHO): return len(YKHO._dset)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def co7o(__n6):\n if v4V6(__n6):\n return Zd61(__n6)\n else:\n return None", "def u54L(YKHO) -> int:\n return YKHO._dataset.shape[0]", "def duBC(__n6):\n return dD7q(__n6).data_size", "def u54L(YKHO):\n return YKHO.__data.shape[0]", "def len(YKHO):\n with D8mT:\n ROpF...
[ "0.7839844", "0.7622936", "0.7569909", "0.75521994", "0.749372", "0.74461854", "0.7421441", "0.73430073", "0.73314327", "0.730375", "0.730375", "0.730375", "0.730375", "0.730375", "0.7295058", "0.7294926", "0.7274342", "0.7259729", "0.7253428", "0.7253428", "0.7253428", "0....
0.0
-1
Get the length of the underlying dataset >>> length = len(dataset.asstr())
def szAg(YKHO): return len(YKHO._dset)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n return YKHO.data.length()", "def szAg(YKHO) -> int:\n return len(YKHO._dataset)", "def szAg(YKHO) -> int:\n return len(YKHO.dataset)", "def co7o(__n6):\n if v4V6(__n6):\n return Zd61(__n6)\n else:\n return None", "def szAg(YKHO) -> int:\n return len(YKHO.ds...
[ "0.76732993", "0.76475", "0.76187354", "0.7612151", "0.7608462", "0.75855947", "0.75855947", "0.75855947", "0.75855947", "0.75855947", "0.7563104", "0.7556653", "0.7527077", "0.75065887", "0.7499264", "0.7496316", "0.74340296", "0.7424432", "0.74193245", "0.7394286", "0.73838...
0.0
-1
Get the length of the underlying dataset >>> length = len(dataset.fields(['x', 'y']))
def szAg(YKHO): return len(YKHO._dset)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO) -> int:\n return len(YKHO.ds)", "def co7o(__n6):\n if v4V6(__n6):\n return Zd61(__n6)\n else:\n return None", "def szAg(YKHO) -> int:\n return len(YKHO._dataset)", "def szAg(YKHO) -> int:\n return len(YKHO.dataset)", "def szAg(YKHO):\n return YKHO.dataset_size...
[ "0.75698286", "0.7545755", "0.75357205", "0.75084287", "0.7386255", "0.73688436", "0.7360723", "0.7360723", "0.7360723", "0.7360723", "0.7360723", "0.7307973", "0.73040414", "0.7303437", "0.7303437", "0.7303437", "0.7287558", "0.7261717", "0.72549427", "0.7217409", "0.7214510...
0.0
-1
Numpy dtype representing the datatype
def yDqo(YKHO): return YKHO.id.dtype
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qxps(YKHO):\n pass", "def SLLj(YKHO):\n return YKHO._dtype", "def yDqo(YKHO):\n return YKHO.value.dtype", "def yDqo(YKHO) -> SnBA.Dtype:\n return YKHO._dtype", "def yDqo(YKHO) -> eBH2[XTiz.dtype]:\n return YKHO._dtype", "def yDqo(YKHO) -> oyIN.dtype:\n return YKHO._converter.dtype",...
[ "0.8091677", "0.80438626", "0.8015031", "0.79857254", "0.7982856", "0.7979852", "0.7956006", "0.792272", "0.79097086", "0.79097086", "0.79097086", "0.79097086", "0.79097086", "0.7899125", "0.78897876", "0.7889257", "0.78881335", "0.78873444", "0.7880112", "0.7852138", "0.7848...
0.7263183
79
Get extent type for this dataset SIMPLE, SCALAR or NULL
def FwqW(YKHO): return YKHO.id.get_space().get_simple_extent_type()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xx9t(YKHO):\n return YKHO.datatype.getExtent()", "def xx9t(YKHO) -> h8nf[gXhI]:\n return None", "def xx9t(YKHO):\n raise NotImplementedError", "def WQwg(YKHO):\n if YKHO.extent_type == 'bounding_box':\n return ['bounding box', YKHO._spat_extent]\n elif YKHO.extent_type == 'polygon':...
[ "0.661112", "0.649806", "0.61904997", "0.6127393", "0.59887695", "0.59881884", "0.5976249", "0.5805357", "0.5805357", "0.5805319", "0.574903", "0.57478184", "0.5742296", "0.57175785", "0.57050127", "0.5636918", "0.56121725", "0.5598596", "0.5561505", "0.5533805", "0.5533805",...
0.81708264
0
The size of the first axis. TypeError if scalar. Limited to 232 on 32bit systems; Dataset.len() is preferred.
def szAg(YKHO): zNig = YKHO.len() if zNig > HwRy.maxsize: raise OverflowError("Value too big for Python's __len__; use Dataset.len() instead.") return zNig
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def len(YKHO):\n with D8mT:\n ROpF = YKHO.shape\n if len(ROpF) == 0:\n raise TypeError('Attempt to take len() of scalar dataset')\n return ROpF[0]", "def szAg(YKHO) -> int:\n return YKHO.data.shape[0]", "def szAg(YKHO) -> int:\n return YKHO.__data.shape[0]", "def szAg...
[ "0.79207325", "0.7803218", "0.7742201", "0.77054465", "0.77054465", "0.77054465", "0.7694788", "0.7664284", "0.7572056", "0.75589204", "0.7555722", "0.75481325", "0.7493252", "0.7482786", "0.7450771", "0.7430221", "0.7430221", "0.7430221", "0.7430221", "0.7430221", "0.7428606...
0.7166622
46
Create a Numpy array containing the whole dataset. DON'T THINK THIS MEANS DATASETS ARE INTERCHANGEABLE WITH ARRAYS. For one thing, you have to read the whole dataset every time this method is called.
def uzII(YKHO, yDqo=None): ezWE = XTiz.zeros(YKHO.shape, dtype=YKHO.dtype if yDqo is None else yDqo) if YKHO.size == 0: return ezWE YKHO.read_direct(ezWE) return ezWE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTDd(YKHO) -> XTiz.ndarray:\n with YKHO.to_dataset() as zZcM:\n qw7D = zZcM.read(1)\n return qw7D", "def qw7D(YKHO):\n return oyIN.copy(YKHO.dat.data_ro)", "def bJZH(YKHO):\n try:\n from numpy import array\n except ImportError:\n raise Exception('This method requires the...
[ "0.80926424", "0.7263133", "0.7251142", "0.7206383", "0.704514", "0.69587517", "0.6948272", "0.6915945", "0.6905589", "0.6905589", "0.68937683", "0.68752813", "0.6867031", "0.6858823", "0.6858806", "0.6836494", "0.6816296", "0.6815995", "0.6808001", "0.67629176", "0.6753912",...
0.74117345
1
Return ``True`` if this dataset is also a dimension scale. Return ``False`` otherwise.
def N_Wv(YKHO): return Hvdl.is_scale(YKHO._id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mIwn(__n6):\n return __n6.data.data.ndim == 1", "def mIwn(__n6):\n return __n6.data.data.ndim == 1", "def mIwn(__n6):\n return __n6.data.data.ndim == 1", "def mIwn(__n6):\n return __n6.data.data.ndim == 1", "def xtNt(YKHO, Csk6):\n Csk6 = '[%s]' % Csk6.strip(' []')\n return len(YKHO.d...
[ "0.70054835", "0.70054835", "0.70054835", "0.70054835", "0.69098157", "0.6908232", "0.6724566", "0.6724566", "0.6683406", "0.6676512", "0.6614009", "0.654758", "0.64729244", "0.6407631", "0.64075077", "0.6294933", "0.6282077", "0.6231299", "0.62304187", "0.62016445", "0.61846...
0.77085066
0
Get the title of the document. This is not the first heading but the title metadata.
def Upwb(YKHO): U6D_ = YKHO.get_element('//dc:title') if U6D_ is None: return None return U6D_.text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XIus(YKHO):\n if YKHO.xmlDoc.attributes.has_key('title'):\n return YKHO.xmlDoc.attributes['title'].value", "def EDnj(A97Q):\n Beie = A97Q.strip().split('\\n')\n leAC = Beie[0]\n return leAC", "def Upwb(YKHO):\n return YKHO.data['metadata']['title'].lower()", "def Upwb(YKHO):\n re...
[ "0.8014533", "0.79910505", "0.7981874", "0.7948207", "0.7875022", "0.78666127", "0.7802154", "0.77912617", "0.77912617", "0.77912617", "0.7787212", "0.7756834", "0.7756834", "0.7756834", "0.7756834", "0.7756834", "0.7756834", "0.7756834", "0.7756834", "0.7756834", "0.7756834"...
0.76986957
56
Get the last modified date of the document.
def z6F7(YKHO): U6D_ = YKHO.get_element('//dc:date') if U6D_ is None: return None p60L = U6D_.text return cJ1g.decode(p60L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CHQE(YKHO):\n return YKHO._last_modified_date", "def CHQE(YKHO):\n return YKHO._last_modified_date", "def GrKn(YKHO):\n return qcWV.datetime.strptime(YKHO.meta['modified'][:10], '%Y-%m-%d')", "def TO1Y(YKHO):\n return qcWV.fromtimestamp(YKHO._info.file.mtime)", "def TO1Y(YKHO):\n TO1Y = ...
[ "0.81297684", "0.81297684", "0.8122918", "0.81160223", "0.78926986", "0.7852192", "0.7815067", "0.7762923", "0.7762923", "0.7762923", "0.7759732", "0.7759732", "0.7759732", "0.7756945", "0.7756945", "0.7756945", "0.7756945", "0.77475023", "0.7730073", "0.77117574", "0.7701052...
0.6795117
93
Get the creation date of the document.
def I9Z5(YKHO): U6D_ = YKHO.get_element('//meta:creation-date') if U6D_ is None: return None d8PD = U6D_.text return cJ1g.decode(d8PD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I9Z5(YKHO):\n return aP4s(YKHO._get_info_node(), 'date')", "def JjkJ(C13M):\n return C13M[GPtr.DATE_CREATED] if GPtr.DATE_CREATED in C13M else qtWj()", "def xyTN(YKHO):\n return YKHO._creationdate", "def d8PD(YKHO) -> qcWV.date:\n return YKHO._creation_date", "def d8PD(YKHO) -> qcWV.date:\n...
[ "0.8401259", "0.8168972", "0.8079547", "0.8079181", "0.8079181", "0.7990622", "0.7930542", "0.78680134", "0.7822533", "0.7740695", "0.7704836", "0.7629803", "0.7621777", "0.76087826", "0.76087826", "0.7580003", "0.757559", "0.75559175", "0.7554691", "0.7554691", "0.7554691", ...
0.7920568
7
Get the first creator of the document.
def HIWA(YKHO): U6D_ = YKHO.get_element('//meta:initial-creator') if U6D_ is None: return None return U6D_.text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wyuj(YKHO):\n return YKHO._get_field('creator')", "def U36o(YKHO):\n U6D_ = YKHO.get_element('//dc:creator')\n if U6D_ is None:\n return None\n return U6D_.text", "def Wyuj(YKHO):\n return YKHO.content.get('creator')", "def Wyuj(YKHO):\n return YKHO.meta['creator']", "def LOJy(...
[ "0.78669786", "0.755888", "0.7554991", "0.75345474", "0.7504969", "0.732403", "0.72019225", "0.7108789", "0.7108789", "0.7108789", "0.7007848", "0.6931354", "0.69130427", "0.69130427", "0.69130427", "0.69130427", "0.69130427", "0.69130427", "0.69130427", "0.69130427", "0.6913...
0.68470794
36
Set the first creator of the document.
def GZ6w(YKHO, Wyuj): U6D_ = YKHO.get_element('//meta:initial-creator') if U6D_ is None: U6D_ = cFlk.from_tag('meta:initial-creator') YKHO.get_meta_body().append(U6D_) U6D_.text = Wyuj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hhGT(YKHO, Wyuj):\n YKHO._creator = Wyuj", "def wS9f(YKHO, Wyuj):\n U6D_ = YKHO.get_element('//dc:creator')\n if U6D_ is None:\n U6D_ = cFlk.from_tag('dc:creator')\n YKHO.get_meta_body().append(U6D_)\n U6D_.text = Wyuj", "def wS9f(YKHO, nPrm, **B2fa):\n if not nPrm.get('creator...
[ "0.7818029", "0.74706185", "0.7232341", "0.704622", "0.704622", "0.6965368", "0.68682146", "0.6819808", "0.67859894", "0.67790794", "0.6666188", "0.6605247", "0.66023326", "0.66023326", "0.66023326", "0.62937903", "0.6233547", "0.61945873", "0.61945873", "0.61945873", "0.6194...
0.7670258
1
Get the creator of the document.
def U36o(YKHO): U6D_ = YKHO.get_element('//dc:creator') if U6D_ is None: return None return U6D_.text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wyuj(YKHO):\n return YKHO._get_field('creator')", "def Wyuj(YKHO):\n return YKHO.meta['creator']", "def Wyuj(YKHO):\n return YKHO.content.get('creator')", "def Wyuj(YKHO) -> str:\n return qe4Y.get(YKHO, 'creator')", "def LOJy(YKHO):\n if not YKHO._creator:\n YKHO._creator = YKHO.m...
[ "0.8286612", "0.8095894", "0.80506843", "0.7822942", "0.7663753", "0.7618752", "0.7618752", "0.7618752", "0.7560415", "0.7343532", "0.7259237", "0.7259237", "0.7259237", "0.7259237", "0.7259237", "0.7259237", "0.7259237", "0.7259237", "0.7259237", "0.7259237", "0.7259237", ...
0.7757608
4
Return a list of instances with this name. The list may be empty..
def j_oG(mWFP, zn0c=None): if zn0c is None: zn0c = iVGz.session.Session().region_name if zn0c is None: raise ValueError('Error - no region identified') A1iq = iVGz.resource('ec2', region_name=zn0c) bUWH = list(A1iq.instances.filter(Filters=[{'Name': 'key-name', 'Values': [mWFP]}, {'Name'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y5NJ(YKHO):\n return []", "def lbzt(YKHO) -> x1iM[ec6H]:\n pass", "def y5NJ(YKHO):\n raise NotImplementedError()", "def list(YKHO, **YSA3):\n return YKHO.get_instances(YSA3)", "def bUWH(Emd4):\n return Emd4._instances.values() if Emd4._instances else []", "def bUWH(YKHO) -> x1iM[Kt_s]:...
[ "0.81292367", "0.8085736", "0.78268653", "0.76599294", "0.75519145", "0.75442713", "0.7474916", "0.74511325", "0.7403893", "0.7380017", "0.7363846", "0.7315463", "0.7278379", "0.7273585", "0.72306484", "0.7215199", "0.7199204", "0.7188598", "0.71820956", "0.7159802", "0.71425...
0.0
-1
Propagate the outputs back through the layer.
def fIbT(YKHO): oug5 = oyIN.ones((1, 1)) uuZc = oyIN.concatenate((YKHO.x, oug5), axis=1) aAxP = YKHO.activation_function.calc_d(YKHO.y) Z13M = uuZc.transpose() M13Z = YKHO.weights.transpose() YrPN = Z13M @ aAxP zgqt = YKHO.de_dy * YrPN YKHO.weights -= zgqt * YKHO.learning_rate for R5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c2Ky(YKHO, g4y1):\n YKHO.z2 = oyIN.dot(g4y1, YKHO.W1).astype(oyIN.float128)\n YKHO.a2 = oyIN.tanh(YKHO.z2)\n YKHO.z3 = oyIN.dot(YKHO.a2, YKHO.W2).astype(oyIN.float128)\n YKHO.prediction = YKHO.activate(YKHO.z3, YKHO.activation_function)", "def xtno(YKHO, gEmA, LzUd):\n if gEmA == 0:\n Y...
[ "0.7666844", "0.71460307", "0.71421695", "0.7086949", "0.70381653", "0.70195407", "0.6985236", "0.6945786", "0.6945786", "0.6938189", "0.6924807", "0.6881777", "0.6862693", "0.6848568", "0.68397987", "0.68391055", "0.68356454", "0.6820564", "0.67945045", "0.67831546", "0.6761...
0.0
-1
Tokenization/string cleaning for all datasets except for SST. Every dataset is lower cased except for TREC
def LNLQ(vIwR): vIwR = ZbWC.sub('[^A-Za-z0-9():,\\.!?\\t]', ' ', vIwR) vIwR = ZbWC.sub("\\'s", " 's", vIwR) vIwR = ZbWC.sub('e\\.g\\.,', ' ', vIwR) vIwR = ZbWC.sub('a\\.k\\.a\\.', ' ', vIwR) vIwR = ZbWC.sub('i\\.e\\.,', ' ', vIwR) vIwR = ZbWC.sub('i\\.e\\.', ' ', vIwR) vIwR = ZbWC.sub("\\'ve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KElI(__n6):\n if isinstance(__n6, list):\n return [str.lower(YRbF.replace(' ', '')) for YRbF in __n6]\n elif isinstance(__n6, str):\n return str.lower(__n6.replace(' ', ''))\n else:\n return ' '", "def TfmK(__n6, xhP4):\n b0j5 = Dhdw.tokenize.RegexpTokenizer('[a-zA-Z]+')\n ...
[ "0.7232461", "0.7112815", "0.6477625", "0.6458837", "0.64226055", "0.63894093", "0.6308797", "0.63004696", "0.6286305", "0.62492377", "0.6238718", "0.61979926", "0.6181888", "0.61780816", "0.6163284", "0.6150163", "0.61472195", "0.61409205", "0.6131853", "0.6130591", "0.61006...
0.0
-1
Computes rmse for an image regarding its true image
def K9sQ(dsZ8, H8uv): if oyIN.max(dsZ8) > 1: dsZ8 = dsZ8.astype(oyIN.float32) / 255 if oyIN.max(H8uv) > 1: H8uv = H8uv.astype(oyIN.float32) / 255 yk4i = dsZ8 - H8uv return oyIN.sqrt(oyIN.mean(oyIN.power(yk4i, 2)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CTjy(PjQx, aJu6):\n return ((PjQx - aJu6) ** 2).mean() ** 0.5", "def iAxY(QKdT: np.ndarray, T0Bo: np.ndarray):\n kgVk(QKdT, T0Bo, 'RMSE')\n doEc = []\n for YRbF in range(QKdT.shape[2]):\n r8hN = oyIN.mean((QKdT[:, :, YRbF] - T0Bo[:, :, YRbF]) ** 2)\n KCHu = oyIN.sqrt(r8hN)\n ...
[ "0.7278733", "0.7269195", "0.7038471", "0.6915569", "0.69067174", "0.6832327", "0.682208", "0.6800937", "0.67642224", "0.6743611", "0.6741441", "0.6727651", "0.67274904", "0.6712935", "0.6701547", "0.6700244", "0.66868407", "0.6682548", "0.6671991", "0.6668283", "0.6668283", ...
0.8107115
0
2d discrete cosine transform
def NHxq(VXjJ, a1PO=3): return fK8P(fK8P(VXjJ.T, type=a1PO).T, type=a1PO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ha4a(YKHO, SppC):\n ywwl = SppC.shape[0]\n Amm8 = oyIN.zeros(shape=(ywwl, ywwl), dtype=complex)\n for P6bq in range(ywwl):\n for Ty9i in range(ywwl):\n for YRbF in range(ywwl):\n for r845 in range(ywwl):\n Amm8[P6bq, Ty9i] += SppC[YRbF][r845] * YhSR(...
[ "0.7103793", "0.6937282", "0.6921894", "0.6749061", "0.67222446", "0.66261846", "0.66050845", "0.65980786", "0.6525959", "0.6519712", "0.6508406", "0.647304", "0.6446891", "0.6440817", "0.6380043", "0.6367901", "0.6340438", "0.6322794", "0.63182265", "0.6308501", "0.62904966"...
0.0
-1
Initialize a Connect Four board.
def FIMM(YKHO): YKHO.__rows = [[YKHO.EMPTY for bGrB in Ni9Y(YKHO.COLUMNS)] for bGrB in Ni9Y(YKHO.ROWS)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QAN4(YKHO):\n YKHO.connect4 = BfjT()\n YKHO.connect4.player_a = ':red_circle:'\n YKHO.connect4.player_b = ':black_circle:'\n YKHO.connect4.empty_block = ':white_square:'\n YKHO.connect4.build_new_board()", "def Ajns() -> yELo:\n iBIi = yELo(_qLf(gfmi.CONFIG))\n return iBIi", "def snA8(...
[ "0.7799566", "0.7466578", "0.7033984", "0.69640356", "0.69146466", "0.68473774", "0.68406945", "0.6780806", "0.6773478", "0.6736898", "0.6626651", "0.661583", "0.6603774", "0.65555304", "0.6523673", "0.6506726", "0.64993453", "0.6483617", "0.6466234", "0.64564055", "0.6451216...
0.0
-1
Initialize a ColumnOutOfBoundsError exception.
def FIMM(YKHO, iVRZ): super(H1Ot, YKHO).__init__() YKHO.column = iVRZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LIrc(Emd4, iVRZ):\n if not 0 <= iVRZ < Emd4.COLUMNS:\n raise H1Ot(iVRZ)", "def FIMM(YKHO, iVRZ):\n super(zUte, YKHO).__init__()\n YKHO.column = iVRZ", "def PBzd(YKHO):\n assert YKHO._colIdx < YKHO.northEast, 'Column index {} == North East Index {}'.format(YKHO._colIdx, YKHO.northEast)", ...
[ "0.7245015", "0.6300489", "0.6201053", "0.59449595", "0.5839931", "0.57227397", "0.5666805", "0.5579157", "0.5513497", "0.53577447", "0.533505", "0.52513057", "0.52308685", "0.5222676", "0.52092516", "0.52080184", "0.5187767", "0.51729614", "0.51695126", "0.5160312", "0.51536...
0.8201438
0
Fully qualified resource ID for the resource. Ex /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
def id(YKHO) -> str: return qe4Y.get(YKHO, 'id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')", "def PcW4(YKHO) -> str:\n return YKHO.__resource_id", "def PcW4(YKHO) -> qe4Y.Output[str]:\n retur...
[ "0.7654707", "0.7654707", "0.7654707", "0.7456593", "0.7365233", "0.7365233", "0.7365233", "0.7365233", "0.7365233", "0.73306054", "0.73306054", "0.73306054", "0.73306054", "0.73306054", "0.73306054", "0.7248139", "0.7210836", "0.7210836", "0.7210836", "0.7210836", "0.7210836...
0.0
-1
The provisioning state of the resource.
def mX_9(YKHO) -> str: return qe4Y.get(YKHO, 'provisioning_state')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')", "def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')", "def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')", "def mX_9(YKHO) -> qe4Y.Output[str]:\n retu...
[ "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014", "0.84886014"...
0.8577626
3
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
def type(YKHO) -> str: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n ...
[ "0.8202427", "0.8202427", "0.8202427", "0.8202427", "0.8202427", "0.8202427", "0.8202427", "0.8202427", "0.8202427", "0.8202427", "0.8202427", "0.8202427", "0.8202427", "0.8202427", "0.80973905", "0.79824674", "0.79824674", "0.79824674", "0.79824674", "0.79824674", "0.7982467...
0.66399056
75
Toggles whether or not solar system bodies appear on the map.
def ejXS(YKHO): if not len(YKHO.newmap.tarsource.split()) > 9: if YKHO.newmap.toggle_ephem == False: YKHO.newmap.toggle_ephem = True else: YKHO.newmap.toggle_ephem = False else: YKHO.newmap.toggle_ephem = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ah2p(YKHO):\n if YKHO.newmap.togglegrid == False:\n YKHO.newmap.togglegrid = True\n else:\n YKHO.newmap.togglegrid = False", "def TxuS(YKHO) -> bool:\n return YKHO.frame == aDVi", "def Q3fA(YKHO, hxy5=True):\n if not rKLW.IS_CLIENT:\n return\n for dQgj in YKHO._world:\n ...
[ "0.5679953", "0.5457891", "0.5413134", "0.5393179", "0.5349276", "0.53373235", "0.5312694", "0.53071797", "0.5294787", "0.5262011", "0.5241785", "0.51715654", "0.51515186", "0.51043385", "0.51042575", "0.51017255", "0.50973326", "0.5095581", "0.50894207", "0.5028727", "0.5027...
0.56598186
1
Return the maximum layer level.
def max(Emd4) -> 'LayerLevel': bctv = Emd4.levels() return bctv[max(bctv)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pJId(YKHO):\n return YKHO.get_or_default('max_level', 1)", "def PW9c(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'max_layers')", "def YXLx(YKHO):\n return YKHO.maxHidLayers", "def DGSI(YKHO):\n ABDL = 0\n for VmPb in YKHO._cells:\n XP5J = YKHO._pointer(VmPb)\n ABDL = max(ABDL...
[ "0.8505565", "0.78423864", "0.76553047", "0.7555047", "0.7366939", "0.7333735", "0.7333735", "0.728929", "0.7218972", "0.71709526", "0.7109675", "0.7101857", "0.7088784", "0.6979232", "0.6949752", "0.69235843", "0.6839038", "0.68232185", "0.68217564", "0.6818966", "0.68186903...
0.9012787
0
Calculate the dottedquad string representation of a long integer
def E8Jn(exwG): return GGmw.inet_ntoa(BlNT.pack('!L', exwG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RET5(YKHO, FGW3):\n return GGmw.inet_ntoa(BlNT.pack('<L', FGW3))", "def u8hB(gmTb):\n bytes = map(int, gmTb.split('.'))\n HNC5 = BlNT.pack('BBBB', *bytes)\n return str(BlNT.unpack('>L', HNC5)[0])", "def SMAU(exwG):\n Csk6 = 256 * 256 * 256\n vexM = []\n while Csk6 > 0:\n r8hN, e...
[ "0.74174494", "0.7096154", "0.702284", "0.68791366", "0.66432583", "0.65923744", "0.62087154", "0.60973775", "0.60973775", "0.60973775", "0.60973775", "0.60973775", "0.60973775", "0.5958071", "0.5904967", "0.58773685", "0.5876409", "0.585776", "0.5857198", "0.58427435", "0.58...
0.52175945
92
Sets the recipient_iban of this SingleMoneyTransferRecipientData.
def bGMp(YKHO, bGMp): YKHO._recipient_iban = bGMp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h5i3(YKHO, h5i3):\n YKHO._recipient_bic = h5i3", "def nG3o(YKHO, nG3o):\n if nG3o is None:\n raise ValueError('Invalid value for `recipient`, must not be `None`')\n YKHO._recipient = nG3o", "def wzCW(YKHO, wzCW):\n YKHO._recipient_id = wzCW", "def wzCW(YKHO, wzCW):\n YKHO._recipient...
[ "0.6904714", "0.6071148", "0.6039304", "0.6039304", "0.5650911", "0.53067636", "0.52971095", "0.5242613", "0.52309746", "0.51915693", "0.51775515", "0.5152909", "0.5152909", "0.5118667", "0.5077294", "0.5072227", "0.5072227", "0.5056659", "0.5046314", "0.50291705", "0.5018632...
0.85375345
0
Sets the recipient_bic of this SingleMoneyTransferRecipientData.
def h5i3(YKHO, h5i3): YKHO._recipient_bic = h5i3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGMp(YKHO, bGMp):\n YKHO._recipient_iban = bGMp", "def d3go(YKHO, d3go):\n YKHO._suburb = d3go", "def d3go(YKHO, d3go):\n YKHO._suburb = d3go", "def luEl(YKHO, luEl):\n YKHO._bcc = luEl", "def wzCW(YKHO, wzCW):\n YKHO._recipient_id = wzCW", "def wzCW(YKHO, wzCW):\n YKHO._recipient_i...
[ "0.6520157", "0.52477825", "0.52477825", "0.5243767", "0.5240494", "0.5240494", "0.5113891", "0.49567312", "0.49334162", "0.48710078", "0.48662895", "0.48619065", "0.48476171", "0.48190156", "0.48126006", "0.47773755", "0.47542018", "0.472248", "0.472248", "0.472248", "0.4707...
0.85050845
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
We can explicitly pass 'data_format' to inputs or common Notes If `data_format` is None, use a default value. `channels_first` might not work on CPU as some convolutional and pooling kernels are not implemented yet.
def WdWC(YKHO, C3ST, EG0B, nPIK, Rci7, wH3T): V9HL = wH3T or 'channels_last' __n6, dyeT = EG0B(data_format=V9HL) if wH3T: dyeT[Rci7 + '/data_format'] = wH3T GPtr = {'model_class': C3ST, 'model_config': dyeT} ydET = (nPIK << __n6).set_config(GPtr) Wc9F = ydET.next_batch(2, n_epochs=None) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JpWQ():\n global DIM1_AXIS\n global DIM2_AXIS\n global DIM3_AXIS\n global CHANNEL_AXIS\n if nMvt.image_data_format() == 'channels_last':\n CXUy = 1\n xVz4 = 2\n aH4i = 3\n BRSN = 4\n else:\n BRSN = 1\n CXUy = 2\n xVz4 = 3\n aH4i = 4", ...
[ "0.64721644", "0.6319792", "0.6303456", "0.61925143", "0.6180291", "0.57191163", "0.57087153", "0.55578583", "0.5529962", "0.55105466", "0.55015117", "0.54862463", "0.5462915", "0.5435241", "0.5423982", "0.54152673", "0.54084015", "0.5327386", "0.5308426", "0.5293801", "0.529...
0.5316865
18
Retrieve definitions of all of the pods.
def pi1E(YKHO, vexM=None, qoqK=None): if len(YKHO.pod_list) == 0: return [] return YKHO.pod_list
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uvbf():\n Mkmy = G4JS.get('http://localhost:8080/api/v1beta3/pods', verify=False)\n return pz3A(**Mkmy.json())", "async def get_pods(YKHO) -> x1iM[OTFp]:\n YKHO.logger.debug(f'getting pods for service \"{YKHO.name}\"')\n async with OTFp.preferred_client() as d4y1:\n TjzQ = YKHO.obj.spec.se...
[ "0.6694765", "0.6643623", "0.65328526", "0.65023744", "0.6449522", "0.64200115", "0.6382571", "0.6263374", "0.6167405", "0.6032578", "0.5987144", "0.5985695", "0.5896703", "0.58772236", "0.58772236", "0.57956874", "0.56971675", "0.5691639", "0.56673", "0.5580764", "0.55741584...
0.59015954
12
Send a delete request to the url provided
def PTpj(YKHO, bD7m): Fudf = '{0}/{1}'.format(YKHO.url, bD7m) return G4JS.delete(Fudf, headers=YKHO.togglHeaders, auth=YKHO.togglAuth)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gkm0(YKHO, bD7m):\n YKHO.client.delete(bD7m)", "def PTpj(YKHO, bD7m, **YSA3):\n return YKHO._do_request(method='DELETE', url=bD7m, **YSA3)", "def PTpj(bD7m, **B2fa):\n return QePW('DELETE', url=bD7m, **B2fa)", "def PTpj(bD7m, MOPg=None):\n return N0q9('delete', url=bD7m, headers=MOPg)", "de...
[ "0.89848703", "0.875167", "0.87134784", "0.8558651", "0.8479769", "0.83585453", "0.8328333", "0.831645", "0.8308461", "0.82556355", "0.8226821", "0.816076", "0.8127828", "0.80778223", "0.80645686", "0.805627", "0.7945698", "0.79326195", "0.7821993", "0.7800579", "0.7781457", ...
0.79195005
18
Generates a random string of length equal to the length parameter
def BWvy(u54L, HpTo=False): mrPm = vIwR.digits if HpTo else vIwR.ascii_uppercase + vIwR.digits return ''.join((tuKI.choice(mrPm) for bGrB in range(u54L)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))", "def MiNk(u54L):\n gLiZ = vIwR.ascii_lowercase + vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(u54L)))", "de...
[ "0.8957029", "0.88853306", "0.8876907", "0.88443154", "0.87386125", "0.87315315", "0.8730881", "0.87241095", "0.86965346", "0.8641322", "0.86380017", "0.8637709", "0.86335105", "0.8630145", "0.86245537", "0.8618738", "0.8618397", "0.86176825", "0.86150295", "0.86150295", "0.8...
0.803203
96
Generates a random "sensible" decimal for things like prices
def h8fO(): return ZjSO(tuKI.random() * 100).quantize(ZjSO('0.01'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ADdS():\n return ZjSO(str(tuKI.random()))", "def CS3C(YRbF, Csk6):\n return ZjSO('%d.%d' % (tuKI.randrange(YRbF + 1), tuKI.randrange(1000, Csk6 + 1)))", "def MBv2(YKHO):\n qTIv = ajWY(5, 9)\n if YKHO.current_date in range(0, 5) and YKHO.order_hour in range(8, 12):\n qTIv += 4.0\n retu...
[ "0.8502068", "0.8267117", "0.73748684", "0.72116", "0.7195549", "0.7139118", "0.70840734", "0.6947417", "0.6873836", "0.683521", "0.6755295", "0.67529947", "0.67129755", "0.66501284", "0.6615468", "0.6612703", "0.6605323", "0.6598919", "0.65935445", "0.6536871", "0.6499433", ...
0.8577559
0
Generate a json serialisable dictionary from the object Dates are changed to strings in ISO 8601 format. Lists children are recursively serialised. Dictionary values are recursively serialised, keys are left as is. Objects that implement __jsondict__ return the result of calling __jsondict__ on the object.
def Ly7_(YKHO, LoCu=True, K4AJ=True): return YKHO.__jsondict__(hide_none=LoCu, hide_empty=K4AJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bpko(YKHO):\n try:\n import __builtin__\n OSz_ = [a1PO for a1PO in __builtin__.__dict__.itervalues() if isinstance(a1PO, type)]\n except:\n import builtins\n OSz_ = [getattr(builtins, Csk6) for Csk6 in dir(builtins) if isinstance(getattr(builtins, Csk6), type)]\n\n def kIcX...
[ "0.735008", "0.7248887", "0.71400666", "0.7077949", "0.70136386", "0.6983182", "0.69763356", "0.695664", "0.6947663", "0.6943653", "0.6943269", "0.69301987", "0.6890422", "0.6871827", "0.68686", "0.6868543", "0.6864539", "0.68644035", "0.6847261", "0.6837702", "0.6837702", ...
0.0
-1
Losses can inject into the state too. useful for when a loss computation can be used by another loss. if this is true, the forward pass must return (loss, new_state). If false (the default), forward() only returns the loss value.
def U1Dn(YKHO) -> bool: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, QTBn: Tensor) -> llWB:\n bySB = YKHO.feature_layer(QTBn)\n hkxX = YKHO.value_layer(bySB)\n dN3z = YKHO.advantage_layer(bySB)\n XeOP = hkxX + (dN3z - dN3z.mean())\n return XeOP", "def KVH6(YKHO, QTBn):\n WKvO = vuvg.relu(YKHO.fc1(QTBn))\n WKvO = vuvg.relu(YKHO.fc2(WKvO))\n d...
[ "0.65989554", "0.6584501", "0.6455932", "0.6441423", "0.6435343", "0.64285696", "0.6352015", "0.6323255", "0.63047653", "0.62938654", "0.62761253", "0.6275447", "0.62695575", "0.6251588", "0.6251028", "0.62492245", "0.62411845", "0.62402254", "0.6230699", "0.62129223", "0.619...
0.0
-1
Applies an image mask. Only keeps the region of the image defined by the polygon formed from `vertices`. The rest of the image is set to black.
def mWKt(VXjJ, iXlf): ZHfW = oyIN.zeros_like(VXjJ) if len(VXjJ.shape) > 2: M9nc = VXjJ.shape[2] K43N = (255,) * M9nc else: K43N = 255 XC5k.fillPoly(ZHfW, iXlf, K43N) lVtf = XC5k.bitwise_and(VXjJ, ZHfW) return (lVtf, ZHfW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWKt(YKHO, VXjJ, iXlf):\n ZHfW = oyIN.zeros_like(VXjJ)\n if len(VXjJ.shape) > 2:\n M9nc = VXjJ.shape[2]\n K43N = (255,) * M9nc\n else:\n K43N = 255\n XC5k.fillPoly(ZHfW, iXlf, K43N)\n lVtf = XC5k.bitwise_and(VXjJ, ZHfW)\n return lVtf", "def mWKt(YKHO, VXjJ, iXlf):\n ...
[ "0.759888", "0.759888", "0.759888", "0.759888", "0.75630105", "0.75260025", "0.75105643", "0.7508535", "0.75024253", "0.7500738", "0.749719", "0.74461156", "0.7436003", "0.7421955", "0.7405154", "0.7405154", "0.7394225", "0.7394225", "0.7394225", "0.7394225", "0.7394225", "...
0.7277033
69
Test creation new user of type superuser
def HuqY(YKHO): CBIr = egNl().objects.create_superuser('admin@nahum.com', 'admin123') YKHO.assertTrue(CBIr.is_superuser) YKHO.assertTrue(CBIr.is_staff)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LqR1(YKHO):\n CBIr = egNl().objects.create_superuser('test@undeinveti.ro', 'test123')\n YKHO.assertTrue(CBIr.is_superuser)\n YKHO.assertTrue(CBIr.is_staff)", "def LqR1(YKHO):\n CBIr = egNl().objects.create_superuser('testsuper@gmail.com', 'test@123')\n YKHO.assertTrue(CBIr.is_superuser)\n Y...
[ "0.8584067", "0.8576074", "0.8481353", "0.84696317", "0.845556", "0.8433782", "0.8388577", "0.8355168", "0.8336345", "0.83344525", "0.83079153", "0.82826567", "0.8261281", "0.8238846", "0.8220224", "0.81376576", "0.8133113", "0.8109679", "0.8106902", "0.80936533", "0.80771065...
0.7903261
46
This function returns a JSONformatted list of the corpora stored in the database.
def Uj1v(QePW): rrSk = Dpwg.objects.filter(owner=QePW.user) KWS5 = IyFz.serialize('json', rrSk) return igJ6(KWS5, content_type='json')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vqhs(YKHO):\n jghC = {}\n for mS46 in YKHO.make_members(YKHO.resolver.getMetadata(), lang=None):\n DgAC = YKHO.make_members(YKHO.resolver.getMetadata(mS46['id']))\n for r8hN in DgAC:\n r8hN.update({'short_title': str(YKHO.resolver.getMetadata(r8hN['id']).metadata.get_single(YKHO....
[ "0.65775", "0.61601424", "0.6151573", "0.6089253", "0.608085", "0.6054432", "0.60031027", "0.5985954", "0.59646696", "0.59453666", "0.59442765", "0.5930731", "0.5895549", "0.5807133", "0.57728374", "0.5767008", "0.5753007", "0.5735746", "0.57323885", "0.5731758", "0.5729756",...
0.6546267
1
Operator to perform inequality comparison of a Uname object to another Uname object or a string. See the `__eq__` operator for a detailed description.
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif: 'User obj' or str):\n if type(Elif) == type(YKHO):\n return YKHO.name == Elif.name\n elif type(Elif) == str:\n return YKHO.name == Elif\n else:\n return False", "def Vdqg(YKHO, Elif):\n return YKHO.name != Elif.name", "def Vdqg(YKHO, Elif: str) -> bool:\n ...
[ "0.7036702", "0.696686", "0.6784041", "0.6784041", "0.67733204", "0.67311203", "0.66288066", "0.6585453", "0.6463238", "0.6388594", "0.6388479", "0.6377608", "0.6377608", "0.6377608", "0.6377608", "0.63536096", "0.6317712", "0.63147545", "0.6298145", "0.62784666", "0.62770236...
0.0
-1
Compare two ``Uname`` classes. This function is used like one might use ``__lt__``. However, if an invalid ``_lv_release`` indicated by a value of ``None``, ``False`` is returned. Since this behavior is not optimal for the the '<' comparison operator (raising an Error would probably be better) we'll keep it internal to...
def pPSt(YKHO, Elif): YTnP, X6Iq = YKHO._best_version(Elif) jQqH, B_eQ = YKHO._best_lv_release(Elif) if YTnP == X6Iq: U5bT = jQqH < B_eQ else: U5bT = YTnP < X6Iq return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JWbp(YKHO, Elif):\n if isinstance(Elif, U5O6):\n J1f6 = Elif\n else:\n J1f6 = U5O6.from_uname_str(Elif)\n YTnP, X6Iq = YKHO._best_version(J1f6)\n return YTnP < X6Iq or (YTnP == X6Iq and YKHO._lv_release < J1f6._lv_release)", "def jmxi(YKHO, Elif):\n if isinstance(Elif, U5O6):\n ...
[ "0.8191174", "0.75546163", "0.68864524", "0.6862737", "0.68331814", "0.6782676", "0.6782676", "0.670078", "0.65592295", "0.654708", "0.6478274", "0.6470081", "0.6453068", "0.6426553", "0.6426553", "0.63855803", "0.63756824", "0.6373602", "0.6358061", "0.63545436", "0.63425636...
0.64020723
15
Gets the table of this SingleTableMetadataSpec. Table name
def tyNF(YKHO): return YKHO._table
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyNF(YKHO) -> str:\n return qe4Y.get(YKHO, 'table')", "def tyNF(YKHO) -> str:\n return qe4Y.get(YKHO, 'table')", "def GTA_(YKHO) -> str:\n return qe4Y.get(YKHO, 'table_name')", "def GTA_(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'table_name')", "def LKuW(YKHO):\n if YKHO._table_...
[ "0.7987506", "0.7987506", "0.7983237", "0.7863317", "0.7836766", "0.78000724", "0.7780999", "0.77784824", "0.77784824", "0.774384", "0.774384", "0.773982", "0.773982", "0.773982", "0.773982", "0.773982", "0.773982", "0.773982", "0.773982", "0.7655001", "0.7655001", "0.76416...
0.71001285
54
Sets the table of this SingleTableMetadataSpec. Table name
def tyNF(YKHO, tyNF): if tyNF is not None and len(tyNF) > 128: raise ValueError('Invalid value for `table`, length must be less than or equal to `128`') if tyNF is not None and len(tyNF) < 1: raise ValueError('Invalid value for `table`, length must be greater than or equal to `1`') YKHO._tab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pcX2(YKHO, GTA_):\n YKHO.table = GTA_\n return YKHO", "def LMZm(YKHO, GTA_):\n FtY_.check_str(GTA_, 'table_name')\n YKHO.__table_name = GTA_\n return YKHO", "def LMZm(YKHO, GTA_):\n FtY_.check_str(GTA_, 'table_name')\n YKHO.__table_name = GTA_\n return YKHO", "def LMZm(YKHO, GTA_)...
[ "0.79159606", "0.7455296", "0.7455296", "0.7455296", "0.7455296", "0.7455296", "0.7453092", "0.74243194", "0.7285461", "0.7252644", "0.7252644", "0.690435", "0.6861015", "0.6857334", "0.6849096", "0.6813655", "0.6813655", "0.681259", "0.6806388", "0.68020535", "0.67924637", ...
0.6808537
18
Gets the table_type of this SingleTableMetadataSpec. Table type
def N8Lq(YKHO): return YKHO._table_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N8Lq(YKHO):\n return YKHO._properties.get('type')", "def N8Lq(YKHO):\n return YKHO._properties.get('type')", "def CZHH(YKHO):\n if not YKHO._tableType:\n if YKHO._tableTypeName:\n YKHO._tableType = B87S.instance().model(str(YKHO._tableTypeName))\n return YKHO._tableType", "d...
[ "0.82145965", "0.82145965", "0.7612461", "0.6739514", "0.66745085", "0.66224885", "0.6609545", "0.65572536", "0.6520982", "0.6356854", "0.6252916", "0.6140045", "0.6100122", "0.60966563", "0.60431916", "0.6006055", "0.5993617", "0.5993617", "0.5971724", "0.5967539", "0.594709...
0.8057321
2
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86416775", "0.8510436", "0.7853881", "0.7744098", "0.77114", "0.7697539", "0.7659996", "0.7637475", "0.76213473", "0.76074654", "0.7606779", "0.7606779", "0.7606779", "0.7598864", "0.7585116", "0.7582008", "0.75707483", "0.7567779", "0.7538827", "0.7538827", "0.7527744", ...
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
Returns the prediction errors based on euclidean distances for each test example. The prediction error for each test set example is the euclidean distance between the test set's position (ground truth) and the predicted position. A "position" is a pair of LONGITUDE and LATITUDE values, e.g. 7515.92, 4.86489e+06.
def sOE8(_pWN, Zzz6): Frx9 = _pWN.shape[0] j8VT = oyIN.sum((_pWN - Zzz6) ** 2, axis=1) ** 0.5 return j8VT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kmsa(N6Z1):\n UAju = []\n for GwxX, kLlX in zip(N6Z1['true_texts'], N6Z1['predicted_texts']):\n P1dF = Ayfi(GwxX, kLlX) / len(GwxX)\n UAju.append(P1dF)\n return oyIN.mean(UAju)", "def KjnH(YKHO, MoTw, wwJD):\n QhYY = N3vq.metrics.mean_absolute_error(YKHO.y_train, MoTw)\n w_ae = N...
[ "0.6571846", "0.64498323", "0.6108934", "0.60950416", "0.60906184", "0.5997662", "0.5988496", "0.59853655", "0.59805965", "0.59700644", "0.5893143", "0.586133", "0.5857371", "0.5843246", "0.5843246", "0.5831852", "0.5810541", "0.5802183", "0.5772069", "0.57586265", "0.5753619...
0.6804488
0
Create a paginator for an operation.
def oL8A(hTqE=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\...
[ "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.763663", "0.70473224", "0.67304605", "0.63789284", "0.6303207", "0.6228538", ...
0.7726015
10
Downloads a blob from the bucket.
def DPRZ(l7rj, JC20, AHTG): ntiA = S8SU.Client() WE7e = ntiA.bucket(l7rj) vxw0 = WE7e.blob(JC20) vxw0.download_to_filename(AHTG) print('Blob {} downloaded to {}.'.format(JC20, AHTG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n return vxw0", "def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n NRcB = xDSY.BytesIO()\n return vxw0.download_to_file(NRcB)", "def DPRZ(...
[ "0.81216", "0.7957541", "0.77650166", "0.76453996", "0.7630873", "0.7603773", "0.75344056", "0.7534157", "0.75023687", "0.7482801", "0.7474071", "0.7474071", "0.7474071", "0.7458533", "0.74574214", "0.74448717", "0.7425158", "0.7425142", "0.740443", "0.73784876", "0.7373136",...
0.7308122
27
Konstruktor, verbindet sich mit BYE.
def FIMM(YKHO): try: YKHO.s = GGmw.socket() YKHO.s.connect(('localhost', 1499)) except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L0lO(YKHO):\n pass", "def C2Ck(YKHO):\n pass", "def C2Ck(YKHO, *qIxc, **B2fa):\n pass", "def nrOS(YKHO):\n pass", "def nrOS(YKHO):\n pass", "def yrJ_(YKHO, *qIxc, **B2fa):\n pass", "def PCU8(YKHO, *qIxc, **B2fa):\n pass", "def PCU8(YKHO, *qIxc, **B2fa):\n pass", "def PCU...
[ "0.64806366", "0.62492687", "0.6249001", "0.6163495", "0.6163495", "0.6095747", "0.60413903", "0.60413903", "0.60413903", "0.60413903", "0.60413903", "0.60413903", "0.60413903", "0.60413903", "0.60413903", "0.60413903", "0.60413903", "0.60413903", "0.60413903", "0.60413903", ...
0.0
-1
will return the sorted array, and number of swaps
def Y3iJ(qw7D: list) -> tuple: e2IU = 0 for YRbF in range(len(qw7D)): u7iQ = 0 for r845 in range(len(qw7D) - 1): if qw7D[r845] > qw7D[r845 + 1]: qw7D[r845], qw7D[r845 + 1] = (qw7D[r845 + 1], qw7D[r845]) u7iQ += 1 e2IU += 1 if u7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iswo(ezWE):\n hDX3 = {BWXx: d6pt for d6pt, BWXx in enumerate(ezWE)}\n hMON = sorted(ezWE)\n u7iQ = 0\n for YRbF in reversed(hMON):\n uk3U = hDX3[YRbF]\n Mzur = hMON.index(YRbF)\n if uk3U != Mzur:\n ezWE[uk3U], ezWE[Mzur] = (ezWE[Mzur], ezWE[uk3U])\n u7iQ +...
[ "0.74756074", "0.7365631", "0.7157131", "0.70690084", "0.6833734", "0.66717184", "0.6668908", "0.655961", "0.6506672", "0.6470332", "0.6464963", "0.64624393", "0.64528894", "0.64511836", "0.63933116", "0.63926834", "0.63809896", "0.6373204", "0.63570166", "0.6348283", "0.6310...
0.694205
4
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Test when the http processor stage has the config option "Records for remaining statuses" set. To test this we force the URL to be a not available so we get a 404 response from the mock http server. The output should be one record containing the "Error Response Body Field" with the error message from the mock server.
def GgG7(PQER, hdzf, pu1N, Xws9): BLLA = {} if moxu(PQER.version) < moxu('4.4.0'): if Xws9: trZe.skip('Test skipped because oneRequestPerBatch option is only available from SDC 4.4.0 version') else: BLLA = {'one_request_per_batch': Xws9} FjTE = GLL2(vIwR.ascii_letters, 10) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x8OP(YKHO):\n btcf = YKHO.generate_access_token()\n krlr = YKHO.testing_client.get('/importer_status', headers=btcf)\n YKHO.assertEqual(krlr.status_code, 200)\n hyh_ = len(krlr.get_json())\n YKHO.assertEqual(hyh_, 0)", "def HcwU(YKHO):\n YKHO.check_valid_http_filter(['failure'], '| search (...
[ "0.68510437", "0.6847474", "0.67403424", "0.65953743", "0.65680856", "0.6549755", "0.65376765", "0.6536877", "0.6423473", "0.6382013", "0.63358366", "0.63141584", "0.62528235", "0.62515795", "0.62511915", "0.61776006", "0.61750543", "0.61714566", "0.61496115", "0.61459553", "...
0.0
-1
Test when the http processor stage has as a response an empty JSON.
def slyv(PQER, hdzf, pu1N, qPtP, Xws9): BLLA = {} if moxu(PQER.version) < moxu('4.4.0'): if Xws9: trZe.skip('Test skipped because oneRequestPerBatch option is only available from SDC 4.4.0 version') else: BLLA = {'one_request_per_batch': Xws9, 'request_data_format': 'TEXT'} G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLlL(KTnm, jzdc):\n KTnm.set_level(G9jH.INFO)\n nMul = 'no_response'\n rElr()\n nMul = ''\n assert True", "def lQZm(KTnm, jzdc):\n KTnm.set_level(G9jH.INFO)\n nMul = 'no_response_none'\n rElr()\n nMul = ''\n assert True", "def ZwuE(YKHO):\n\n def HeNO(QePW):\n YKHO.a...
[ "0.76110464", "0.73417777", "0.7154863", "0.7058972", "0.69922066", "0.6981863", "0.68480617", "0.67927414", "0.67925537", "0.670402", "0.6690824", "0.66890776", "0.66802305", "0.6673162", "0.6669432", "0.66607094", "0.6648684", "0.6542364", "0.65058917", "0.64898944", "0.648...
0.63026136
32
Test the error when the http processor stage has more than the allowed number of consecutive invalid oauth2 tokens (1 for now, but test is suitable for any number as we just mock infinite invalid tokens). There are similar tests for origin and destination.
def rKPG(PQER, hdzf, pu1N, ylGe, Xws9): UNNL = {'access_token': 'MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3', 'token_type': 'Bearer', 'expires_in': 100, 'refresh_token': 'IwOGYzYTlmM2YxOTQ5MGE3YmNmMDFkNTVk', 'scope': 'create'} qHUK = qQXR.dumps(UNNL) FjTE = GLL2(vIwR.ascii_letters, 10) wdXR = GLL2(vIwR.ascii_lett...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def leFe(YKHO):\n YKHO.assertFilterErrors({'start': 0, 'stop': ryja.MAX_INTERVAL + 1, 'seed': IHQl(YKHO.seed)}, {'stop': [ryja.CODE_INTERVAL_TOO_BIG]})", "def eBnO(YKHO, t1c9, wBBJ, KnxT, OeZe):\n KzJa, s2mk, N5MO = YKHO._fake_work('test', t1c9, wBBJ, KnxT, t1c9 * wBBJ * KnxT + 1)\n assert KzJa is False...
[ "0.67268085", "0.670241", "0.6364475", "0.6314277", "0.6300571", "0.62876236", "0.6283803", "0.6224157", "0.6157616", "0.6156247", "0.6152388", "0.61468345", "0.6141453", "0.6141453", "0.6118039", "0.6109709", "0.60824436", "0.60813403", "0.60777855", "0.6073311", "0.6068799"...
0.0
-1
Test that when there is a 204 response and the response body is null and the singleRequestPerBatch is true, the output record contains all the input records data as a string analogously with what happens when the singleRequestPerBatch option is set to false.
def oGPn(PQER, hdzf, pu1N): Jr4Z = 'result' jp3m = pu1N.mock() FjTE = GLL2(vIwR.ascii_letters, 10) jp3m.when(f'POST /{FjTE}').reply(status=204, body='', times=VMHe) try: MUQ1 = f'{jp3m.pretend_url}/{FjTE}' WPdU = [{'a': 'dummy1'}, {'b': 'dummy1'}, {'c': 'dummy1'}] mBtZ = PQER...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slyv(PQER, hdzf, pu1N, qPtP, Xws9):\n BLLA = {}\n if moxu(PQER.version) < moxu('4.4.0'):\n if Xws9:\n trZe.skip('Test skipped because oneRequestPerBatch option is only available from SDC 4.4.0 version')\n else:\n BLLA = {'one_request_per_batch': Xws9, 'request_data_format': 'T...
[ "0.66578746", "0.6402099", "0.62744415", "0.62168944", "0.6140222", "0.6124504", "0.6083924", "0.60128576", "0.5963134", "0.5941458", "0.5917675", "0.590353", "0.5784908", "0.5695687", "0.5637515", "0.5618842", "0.5599991", "0.55806506", "0.5571512", "0.55541044", "0.5552926"...
0.6935291
0
Test HTTP Lookup Processor for HTTP GET method that check out whether an existing record field is overwritten if specified as output field. It has no sense to test this with the one_request_per_batch option set since no input record is propagated. dev_raw_data_source >> http_client_processor >> wiretap
def Jh_E(PQER, hdzf, pu1N): Sxzb = {'A': 1, 'C': 2, 'G': 3, 'T': 4} AZHA = qQXR.dumps(Sxzb) Jr4Z = 'result' FjTE = GLL2(vIwR.ascii_letters, 10) jp3m = pu1N.mock() try: jp3m.when(f'GET /{FjTE}').reply(AZHA, times=VMHe) MUQ1 = f'{jp3m.pretend_url}/{FjTE}' mBtZ = PQER.get_pi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FTdw(PQER, hdzf, Xws9):\n BLLA = {}\n if moxu(PQER.version) < moxu('4.4.0'):\n if Xws9:\n trZe.skip('Test skipped because oneRequestPerBatch option is only available from SDC 4.4.0 version')\n else:\n BLLA = {'one_request_per_batch': Xws9}\n GTmC = dict(city='San Francisco'...
[ "0.6366276", "0.5940235", "0.58325005", "0.5804647", "0.57766855", "0.57045466", "0.5689546", "0.56300986", "0.55911475", "0.55097073", "0.54386115", "0.54179335", "0.5412953", "0.5408443", "0.5381428", "0.5375277", "0.53571546", "0.5350508", "0.53406763", "0.52909946", "0.52...
0.65897346
0
The unique id of the sensor.
def ShR8(YKHO): print(f'uniq: {YKHO._unique_id}') return YKHO._unique_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO):\n return YKHO._device.guid + YKHO._sensor_type['name']", "def ShR8(YKHO):\n return f'{YKHO._device.uuid}-SENSOR'", "def ShR8(YKHO) -> str:\n return '{}-{}'.format(YKHO.flume.device_id, YKHO.sensor_type)", "def ShR8(YKHO):\n return f'{YKHO._zehnder.unique_id}-{YKHO._sensor_type}'",...
[ "0.9080233", "0.8912013", "0.8718365", "0.8652806", "0.8604325", "0.86016124", "0.8571801", "0.85706145", "0.8520916", "0.8505435", "0.85016125", "0.85003865", "0.84737283", "0.84646076", "0.84458", "0.84375", "0.84375", "0.84195894", "0.8378268", "0.8350071", "0.8348057", ...
0.0
-1
Return the unit of measurement.
def b82i(YKHO): return z0X2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82...
[ "0.907914", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90429664", "0.90140283", "0.9006033", "0.8946556", "0.8946556", "0.8937156", "0.891861", "0.891861", "0.891861", "0.891861", "0.891861"...
0.0
-1
Get the cache backend Returns ~~~~~~~ Django cache backend
def sLwe(YKHO): if not hasattr(YKHO, '_cache_backend'): if hasattr(hbZn.core.cache, 'caches'): YKHO._cache_backend = hbZn.core.cache.caches[Fk5O] else: YKHO._cache_backend = hbZn.core.cache.get_cache(Fk5O) return YKHO._cache_backend
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JLXL():\n _OIP = '_cached_backend_instance'\n if not hasattr(JLXL, _OIP):\n setattr(JLXL, _OIP, oBqy()())\n return getattr(JLXL, _OIP)", "def T_mo():\n _OIP = getattr(gCuF, 'ORA2_FILEUPLOAD_CACHE_NAME', None)\n return hbZn.core.cache.caches['default']", "def T_mo(DDLl, **B2fa):\n t...
[ "0.8257329", "0.7869326", "0.7635954", "0.7502287", "0.7400786", "0.72149825", "0.7210742", "0.7146492", "0.7125945", "0.70428383", "0.68655604", "0.685423", "0.68365824", "0.6829434", "0.6828006", "0.68125325", "0.6794012", "0.6787418", "0.6783339", "0.678155", "0.678155", ...
0.8766485
0
Loads the model stored in the provided model_path. If using Ray Client, this will automatically handle loading the path on the server by using a Ray task.
def uyMl(uqvc): def gV5B(uqvc): vE1J = v4_w.Booster() vE1J.load_model(uqvc) return vE1J if spHt.util.client.ray.is_connected(): IPnH = spHt.remote(gV5B) IPnH = Tyot(IPnH) i2Jd = spHt.get(IPnH.remote(uqvc)) else: i2Jd = gV5B(uqvc) return i2Jd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O5RJ(YKHO, uqvc: str):\n pass", "def O5RJ(Emd4, uqvc):\n pass", "def uyMl(uqvc):\n C3ST = k6eJ.load(uqvc)\n return C3ST", "def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)", "def O5RJ(YKHO, uqvc: str) -> object:\n raise NotImplemented", "def uyMl(pmON):\n Ylbp = a_JQ.post_json('Mo...
[ "0.84266806", "0.8408776", "0.82685363", "0.8143628", "0.81190306", "0.8112341", "0.7951674", "0.7891638", "0.7856118", "0.777886", "0.7754972", "0.7752896", "0.77461904", "0.7741767", "0.77297777", "0.771816", "0.7667101", "0.7646702", "0.76194006", "0.76194006", "0.76194006...
0.730486
44
Create a recursive copy of the config. Each level of the Config is a new Config object, so modifying keys won't affect the original Config object. However, values are not deepcopied, and mutations can affect the original.
def jth9(YKHO) -> 'Config': AJ7R = PSrQ() for H5ew, BWXx in YKHO.items(): if isinstance(BWXx, PSrQ): BWXx = BWXx.copy() AJ7R[H5ew] = BWXx return AJ7R
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KH9Z(GPtr):\n if isinstance(GPtr, dict):\n return {G1Hx: KH9Z(Ty9i) for G1Hx, Ty9i in GPtr.items()}\n elif isinstance(GPtr, list):\n return [KH9Z(Ty9i) for Ty9i in GPtr]\n else:\n return _qLf(GPtr)", "def i3ak(YKHO):\n oCjH = PSrQ()\n oCjH.merge(YKHO)\n return oCjH", ...
[ "0.7433014", "0.7162465", "0.6681828", "0.6653391", "0.65495706", "0.63539857", "0.6204445", "0.6094502", "0.6076013", "0.6038724", "0.5946418", "0.5911721", "0.5899563", "0.58668375", "0.5842501", "0.5745743", "0.5741038", "0.5739418", "0.5652854", "0.56178355", "0.5605973",...
0.7389503
1
Helper function for transforming string env var values into typed values.
def PEJT(wEf2: str) -> uLKX[bool, int, float, str]: if wEf2.upper() == 'TRUE': return True elif wEf2.upper() == 'FALSE': return False try: Itec = HyPc(wEf2) return Itec except Exception: pass return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a8Pe(BWXx):\n\n def E6J6(ejss):\n SRYB = ejss.groups()[0]\n if SRYB not in Hy7s.environ:\n raise KeyError(SRYB)\n return Hy7s.environ[SRYB]\n\n def VnKZ(BWXx):\n if not isinstance(BWXx, exCv):\n return BWXx\n BWXx = BWXx.strip()\n if rkeG.ma...
[ "0.6865011", "0.675222", "0.6591938", "0.6507649", "0.644087", "0.6417128", "0.6351526", "0.634246", "0.6276858", "0.6254252", "0.62375027", "0.62313336", "0.6162158", "0.61370224", "0.6113682", "0.61065", "0.6064523", "0.6057802", "0.60564375", "0.6032771", "0.5937933", "0...
0.0
-1
Load a pretrained huggingface layoutaware document transformer backbone.
def FIMM(YKHO, y0cW: str, pkan: str='microsoft/layoutlmv3-base', jTqs: Optional[int]=0, YlIr: Optional[str]='cls', nQGT: Optional[bool]=False, Lykw: Optional[bool]=False, mL4f: Optional[bool]=True, nxjs: Optional[str]='hf_auto'): bo34.debug(f'initializing {pkan}') super().__init__(prefix=y0cW, checkpoint_name=p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4QU(YKHO):\n pass", "def Y4QU(Emd4, *qIxc, **YSA3):\n try:\n return Emd4.from_pretrained(*qIxc, **YSA3)\n except OSError as e:\n G9jH.warning('Caught OSError loading model: %s', tTpl)\n G9jH.warning('Re-trying to convert from PyTorch checkpoint (from_pt=True)')\n return ...
[ "0.6028372", "0.5884013", "0.5692237", "0.56555766", "0.5628655", "0.54785156", "0.53994447", "0.5376035", "0.5376035", "0.5375463", "0.53230834", "0.52764946", "0.52724016", "0.5251398", "0.5244842", "0.5243261", "0.5227796", "0.5225734", "0.5219243", "0.52029324", "0.519045...
0.0
-1
Returns an encrypted version of the user's password.
def FXH6(YKHO, jTXt): nPrm = {'password': jTXt} Ol8d = qQXR.dumps(nPrm).encode('utf-8') KUf6 = fj5c(YKHO.secret_key) return KUf6.encrypt(Ol8d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hNw5(YKHO):\n hNw5 = YKHO._authenticated_user_request(api_url='/api/security/encryptedPassword', request_type=YKHO._session.get)\n return hNw5", "def RTpb(YKHO, **B2fa):\n hLsl = YKHO._category + 'Get User Encrypted Password'\n pan_ = YKHO._prefix + 'encryptedPassword'\n return YKHO._request('...
[ "0.83512455", "0.78628546", "0.776657", "0.76537853", "0.7420471", "0.7420471", "0.7420471", "0.7420471", "0.73416656", "0.73245543", "0.7306281", "0.7299388", "0.728977", "0.7278988", "0.7260214", "0.7222241", "0.720527", "0.7201912", "0.71559453", "0.7143498", "0.71332335",...
0.7476551
4
Returns the name of the federated service for the auth system. If none, should return None.
def Y61M(YKHO): return YKHO.state.federated_service
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSEa(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'service_name')", "def PSBm(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'fhir_service_name')", "def bSEa(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO,...
[ "0.7186674", "0.7186674", "0.71566975", "0.6891464", "0.6891464", "0.6891464", "0.6891464", "0.6891464", "0.6891464", "0.6845459", "0.68448335", "0.68448335", "0.68448335", "0.68448335", "0.67827046", "0.67827046", "0.6770552", "0.67055315", "0.66923946", "0.66793203", "0.663...
0.77826244
0
Returns whether the user has a password set in the auth system.
def S60n(YKHO, NtEF): return YKHO.state.has_password_set(NtEF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O0v5(YKHO):\n return YKHO.__has_password", "def m9BR(YKHO):\n return YKHO._is_auth_password_set", "def WFo7(YKHO):\n return YKHO.properties.get('hasPassword', None)", "def JM9u(YKHO, jTXt) -> bool:\n return YKHO.user_password == jTXt", "def pHgv(YKHO):\n return XuW9(YKHO.password)", "d...
[ "0.8445242", "0.8275023", "0.81050456", "0.78851193", "0.7703798", "0.7703798", "0.76614726", "0.7619745", "0.7488214", "0.7436736", "0.7415751", "0.7403354", "0.7390179", "0.73741984", "0.7367402", "0.7366847", "0.73586345", "0.7344566", "0.73366946", "0.7330679", "0.7326418...
0.7473872
9
Returns a tuple containing the database user record linked to the given UserInformation pair and any error that occurred when trying to link the user. If `internal_create` is True, the caller is an internal user creation process (such as team syncing), and the "can a user be created" check will be bypassed.
def AZLf(YKHO, VCCg, _5Op=False): return YKHO.state.get_and_link_federated_user_info(VCCg, internal_create=_5Op)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S4dw(CBIr):\n XObx = []\n g_QH = []\n try:\n AroK = kuwC.userInfo.select(kuwC.userInfo.c.emailAddress == CBIr.emailAddress).execute().first()\n except:\n g_QH.append('User Already Exists check has Failed')\n if AroK is None:\n try:\n kuwC.con.execute(kuwC.userInfo...
[ "0.63409567", "0.6103549", "0.5950366", "0.5901487", "0.5876656", "0.58705395", "0.5850775", "0.578879", "0.57330054", "0.56755304", "0.56697917", "0.5633909", "0.56248695", "0.5591717", "0.55915284", "0.5581917", "0.5572839", "0.55714816", "0.55533576", "0.54820836", "0.5474...
0.72268856
0
Verifies that the given username and password credentials are valid and, if so, creates or links the database user to the federated identity.
def DrtL(YKHO, X2LT, jTXt, EuDU=False): if EuDU: EQx_ = YKHO._decrypt_user_password(jTXt) if EQx_ is None: if bySB.REQUIRE_ENCRYPTED_BASIC_AUTH: tO9_ = 'Client login with unencrypted passwords is disabled. Please generate an ' + 'encrypted password in the user admin panel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYUQ(NtEF, jTXt):\n Aofo = PXlE(jTXt)\n Wb_U('INSERT INTO Users (username,password_hash,salt) VALUES ((%s), (%s), (%s))', NtEF, Aofo['hash'], Aofo['salt'])\n return crRx(NtEF, jTXt)", "def qutR(NtEF, jTXt):\n if not (NtEF and jTXt):\n return False\n if RuwQ.get(NtEF) == jTXt:\n r...
[ "0.69898385", "0.694031", "0.6931888", "0.68459266", "0.6791652", "0.6702051", "0.66844606", "0.6669577", "0.6664542", "0.66419995", "0.6638217", "0.6636868", "0.6624081", "0.6622136", "0.6616957", "0.6604842", "0.65960884", "0.6595516", "0.65917075", "0.6590574", "0.65888107...
0.0
-1
Returns serializer class depending on action method
def l5oD(YKHO): if YKHO.action == 'list': return JH_r return sbDI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5oD(YKHO):\n return YKHO.serializers.get(YKHO.action, YKHO.serializers.get('default'))", "def l5oD(YKHO):\n try:\n return YKHO.serializer_action_classes[YKHO.action]\n except (KeyError, AttributeError):\n return super().get_serializer_class()", "def l5oD(YKHO):\n try:\n re...
[ "0.86669636", "0.8589692", "0.8523704", "0.8487667", "0.84148663", "0.84059733", "0.84059733", "0.8290298", "0.82773817", "0.82677895", "0.8262794", "0.82496595", "0.8245068", "0.8148599", "0.8133267", "0.8127011", "0.8103362", "0.8064221", "0.80107284", "0.8005719", "0.79964...
0.7768583
37
Get parameters for ``crop`` for a random sized crop.
def W6RH(VXjJ, NXpY=(0.25, 1.0), dMYj=(3.0 / 4.0, 4.0 / 3.0)): f0tD = VXjJ.size[0] * VXjJ.size[1] for I2mK in range(10): Cnb1 = tuKI.uniform(*NXpY) * f0tD pAIe = tuKI.uniform(*dMYj) yzQ0 = int(round(epAf.sqrt(Cnb1 * pAIe))) MKlR = int(round(epAf.sqrt(Cnb1 / pAIe))) if tuK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nK5W(zi3C=(350, 350), a6Jb=(256, 256)):\n yzQ0, MKlR = zi3C\n idx7, q53Q = a6Jb\n if yzQ0 == q53Q and MKlR == idx7:\n return (0, 0, MKlR, yzQ0)\n YRbF = tuKI.randint(20, MKlR - idx7 - 20)\n r845 = tuKI.randint(20, yzQ0 - q53Q - 20)\n return (YRbF, r845, idx7, q53Q)", "def W6RH(y7GR, ...
[ "0.73392546", "0.7274244", "0.70594156", "0.6667202", "0.6654976", "0.66332465", "0.65793574", "0.6413711", "0.6386458", "0.6360686", "0.63364094", "0.6299858", "0.62988204", "0.62520045", "0.6207111", "0.61734396", "0.61709017", "0.61682487", "0.6135253", "0.61332166", "0.60...
0.0
-1
Returns whether it is permissible to add extra HDUs to the end of the data list. False for DataCube.
def CpIA(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wPum(n8OE):\n return len(n8OE) > 1", "def U6ks(YKHO, poLx: dict) -> bool:\n if YKHO.capacity <= 0 or YKHO._frozen or YKHO.is_full:\n return False\n else:\n return True", "def jL7Y(YKHO) -> bool:\n return YKHO.index >= 2 ** 31", "def U6ks(YKHO, poLx: dict) -> bool:\n if YKHO.c...
[ "0.6623154", "0.6222408", "0.5906859", "0.5901769", "0.581323", "0.57655513", "0.57629246", "0.57629246", "0.57561153", "0.5736582", "0.5728699", "0.5678059", "0.5678059", "0.56774336", "0.5666216", "0.56538576", "0.56372654", "0.56167495", "0.5610068", "0.56009746", "0.55929...
0.7541753
0
Removes the current SQLAlchemy Session
def yi3Z(awRs): S8SU.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yi3Z(YKHO):\n YKHO.__orm.remove_session()", "def jQoW() -> None:\n if FEJ9.in_flask_request():\n Oa1e.session.remove()\n elif cuiw.session:\n cuiw.session.remove()\n cuiw.session = None\n else:\n print('No DB session found to clear!')", "def KyVt(AJ5d):\n S8SU.clo...
[ "0.893528", "0.80513334", "0.8028069", "0.77886176", "0.778511", "0.77359563", "0.76006186", "0.76006186", "0.76006186", "0.76006186", "0.76006186", "0.76006186", "0.76006186", "0.75250113", "0.75123554", "0.73653", "0.73249733", "0.73249733", "0.7304894", "0.72801787", "0.72...
0.0
-1