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
Creates a fully connected nn layer. The layer is initialized with random numbers from normal distribution.
def Ioxh(input, flTz, PbVp): yzQ0 = ZylS.Variable(ZylS.truncated_normal([flTz, PbVp], stddev=0.1)) Fg_i = ZylS.Variable(ZylS.truncated_normal([PbVp], stddev=0.1), name='bias') return ZylS.nn.relu(ZylS.matmul(input, yzQ0) + Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BiWL(PhLZ: int, uK2T: int, TVTK: int=16, rb7a: int=4) -> kG6P.networks.NN:\n eHNT = Zxma.fullyConnectedNN([PhLZ] + rb7a * [TVTK] + [uK2T], act=u_ln.tanhActivation())\n return eHNT", "def r8IF(k3l6, I07O):\n _mSQ = ZylS.Variable(ZylS.random_normal([k3l6.shape[1].value, I07O], stddev=0.1))\n oug5 =...
[ "0.65838283", "0.64536804", "0.6241156", "0.6200363", "0.6200363", "0.6200363", "0.6164746", "0.6160886", "0.613335", "0.61173534", "0.6109451", "0.6079118", "0.6062221", "0.60093826", "0.60090894", "0.5995305", "0.5961215", "0.5957275", "0.59463173", "0.59338635", "0.5900377...
0.0
-1
Assert that two lists of L{Project}s are equal.
def tEU6(YKHO, bgKU, lpWD): YKHO.assertEqual(len(bgKU), len(lpWD)) bgKU = sorted(bgKU, key=seET.attrgetter('directory')) lpWD = sorted(lpWD, key=seET.attrgetter('directory')) for gEVc, aEqx in zip(bgKU, lpWD): YKHO.assertEqual(gEVc.directory, aEqx.directory)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tEU6(YKHO, bgKU, lpWD):\n YKHO.assertEqual(len(bgKU), len(lpWD))\n bgKU = sorted(bgKU, key=seET.attrgetter('directory'))\n lpWD = sorted(lpWD, key=seET.attrgetter('directory'))\n for gEVc, aEqx in zip(bgKU, lpWD):\n YKHO.assertEqual(gEVc.directory, aEqx.directory)", "def GY1z(YKHO):\n a...
[ "0.7359227", "0.73328876", "0.6994209", "0.696267", "0.69351625", "0.65774673", "0.65192145", "0.65192145", "0.6508537", "0.6452453", "0.6420661", "0.6392122", "0.63602877", "0.6321427", "0.6298714", "0.6287265", "0.62575305", "0.62445533", "0.6238674", "0.62175125", "0.61552...
0.73238105
2
L{NewsBuilder._today} returns today's date in YYYYMMDD form.
def JuE3(YKHO): YKHO.assertEquals(YKHO.builder._today(), _c1T.today().strftime('%Y-%m-%d'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeyU() -> str:\n return qcWV.now().strftime('%Y-%m-%d')", "def kKWq() -> qcWV.date:\n return qcWV.today().date()", "def yFTO():\n return _c1T.today()", "def yo7_(YKHO):\n return qcWV.date.today().isoformat()", "def WE8u():\n return JRYC.date.today().strftime('%B %d, %Y')", "def gVTZ() ...
[ "0.8440958", "0.82832986", "0.8239", "0.81939584", "0.81907797", "0.8088009", "0.7958119", "0.79346824", "0.7927932", "0.7870749", "0.7866216", "0.7842673", "0.77180356", "0.7711714", "0.77079123", "0.76718366", "0.7618882", "0.7522119", "0.7519648", "0.7518403", "0.74870956"...
0.7404429
21
L{NewsBuilder._changeVersions} gets the release date for a given version of a project as a string.
def pZYo(YKHO): mBtZ = fkmr() mBtZ._today = lambda: '2009-12-01' bNKA = YKHO.createFakeTwistedProject() mBtZ.buildAll(bNKA) aIk2 = moxu('TEMPLATE', 7, 7, 14) hKn2 = bNKA.child('topfiles').child('NEWS') mBtZ._changeNewsVersion(hKn2, 'Core', moxu('twisted', 1, 2, 3), aIk2, '2010-01-01') WC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(DpZH=wx3I, _c1T=naCA):\n return 'JoMRS v{} Modular Rigging System | last update {}'.format('.'.join([YRbF for YRbF in DpZH]), '/'.join([WKvO for WKvO in _c1T]))", "def PcGl(DpZH, a1Ac):\n zbDt = DpZH.split('.')\n zbDt[-1] = a1Ac\n return '.'.join(zbDt)", "def xhfZ():\n return ErH1.sub(N...
[ "0.65968317", "0.64388627", "0.63052136", "0.61849445", "0.6169329", "0.6135379", "0.60916495", "0.6046848", "0.6036391", "0.6031029", "0.5974384", "0.59587777", "0.595306", "0.58617705", "0.5846427", "0.5839148", "0.5838535", "0.58280134", "0.58069897", "0.58003837", "0.5797...
0.5346981
71
Gets the mcc of this PlmnId.
def yaJB(YKHO): return YKHO._mcc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U_fg(YKHO):\n return YKHO['cmid']", "def dZWX(YKHO):\n raise NotImplementedError", "def u2RM(YKHO):\n return YKHO.mcc3id", "def u2RM(YKHO):\n return YKHO.mcc3id", "def u2RM(YKHO):\n return YKHO.mcc3id", "def u2RM(YKHO):\n return YKHO.mcc3id", "def TeZt(YKHO):\n return YKHO._mnc...
[ "0.728196", "0.7034053", "0.6948093", "0.6948093", "0.6948093", "0.6948093", "0.69142497", "0.6790559", "0.6696211", "0.6696211", "0.6696211", "0.6696211", "0.65415114", "0.6532205", "0.65096843", "0.649239", "0.6450314", "0.64094085", "0.63972324", "0.6307852", "0.6227797", ...
0.8369424
0
Sets the mcc of this PlmnId.
def yaJB(YKHO, yaJB): if yaJB is None: raise ValueError('Invalid value for `mcc`, must not be `None`') if yaJB is not None and (not ZbWC.search('^\\d{3}$', yaJB)): raise ValueError('Invalid value for `mcc`, must be a follow pattern or equal to `/^\\d{3}$/`') YKHO._mcc = yaJB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yaJB(YKHO):\n return YKHO._mcc", "def FIMM(YKHO, yaJB=None, TeZt=None):\n YKHO.openapi_types = {'mcc': str, 'mnc': str}\n YKHO.attribute_map = {'mcc': 'mcc', 'mnc': 'mnc'}\n YKHO._mcc = yaJB\n YKHO._mnc = TeZt", "def TeZt(YKHO, TeZt):\n if TeZt is None:\n raise ValueError('Invalid ...
[ "0.6285387", "0.606716", "0.59180474", "0.56803393", "0.56803393", "0.5513417", "0.54811925", "0.53776187", "0.5370556", "0.5262815", "0.5262815", "0.5262815", "0.5262815", "0.5220506", "0.52132547", "0.52022827", "0.5159226", "0.5147124", "0.5119479", "0.5119479", "0.5119479...
0.7213802
0
Gets the mnc of this PlmnId.
def TeZt(YKHO): return YKHO._mnc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dZWX(YKHO):\n raise NotImplementedError", "def U_fg(YKHO):\n return YKHO['cmid']", "def dZWX(YKHO):\n return '{0:d}000'.format(YKHO.z)", "def yaJB(YKHO):\n return YKHO._mcc", "def dZWX(YKHO):\n epBp, jzdc = (YKHO.z, YKHO.a)\n if epBp == 95 and jzdc == 242:\n if YKHO.state != 1:...
[ "0.74033445", "0.68260247", "0.6694582", "0.6648079", "0.6566111", "0.6261092", "0.6249055", "0.6249055", "0.6249055", "0.6249055", "0.62347484", "0.617528", "0.60628474", "0.60331774", "0.59423983", "0.59423983", "0.58387274", "0.5833314", "0.57913786", "0.57879454", "0.5728...
0.81993204
0
Sets the mnc of this PlmnId.
def TeZt(YKHO, TeZt): if TeZt is None: raise ValueError('Invalid value for `mnc`, must not be `None`') if TeZt is not None and (not ZbWC.search('^\\d{2,3}$', TeZt)): raise ValueError('Invalid value for `mnc`, must be a follow pattern or equal to `/^\\d{2,3}$/`') YKHO._mnc = TeZt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TeZt(YKHO):\n return YKHO._mnc", "def FIMM(YKHO, yaJB=None, TeZt=None):\n YKHO.openapi_types = {'mcc': str, 'mnc': str}\n YKHO.attribute_map = {'mcc': 'mcc', 'mnc': 'mnc'}\n YKHO._mcc = yaJB\n YKHO._mnc = TeZt", "def yaJB(YKHO, yaJB):\n if yaJB is None:\n raise ValueError('Invalid ...
[ "0.62061363", "0.5720771", "0.5542143", "0.5532331", "0.5532331", "0.552551", "0.5312673", "0.52811646", "0.5231023", "0.51675767", "0.5107128", "0.50956124", "0.4996401", "0.49920717", "0.4988115", "0.49680015", "0.49680015", "0.4951965", "0.494844", "0.4929445", "0.4903124"...
0.73868823
0
Return Flask test client that is configured for testing. Testing configuration should be placed in `tests/.env` file.
def x0hE(): from csuibot import app app.config['TESTING'] = True return app.test_client()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0hE(P4t4: Flask) -> QRbk:\n return P4t4.test_client()", "def x0hE():\n return P4t4.test_client()", "def K8Vx():\n P4t4 = Nd3k(UpIo.api_server, gCuF.TestingConfig)\n return P4t4.test_client()", "def x0hE(P4t4):\n return P4t4.test_client()", "def x0hE(P4t4):\n return P4t4.test_client()...
[ "0.82063615", "0.7843259", "0.7725718", "0.7572749", "0.7572749", "0.7572749", "0.7572749", "0.7572749", "0.7572749", "0.7572749", "0.7572749", "0.7572749", "0.75372267", "0.7523216", "0.7498469", "0.7451521", "0.7451521", "0.73919874", "0.73548245", "0.73514926", "0.7217295"...
0.7443915
17
r""" Return the maximal trace for semi definite forms, which are considered to be below this precision.
def KjaX(YKHO): return 2 * YKHO.index() // 3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uUcB():\n return -3.8918287373004357", "def GnqZ(YKHO):\n pjeW = set()\n for G1Hx in YKHO.get_fd_part_j(YKHO.id):\n kT9x = (YKHO.degree(G1Hx) - YKHO.degree(YKHO.id)) % 6\n pjeW.add(kT9x)\n if not pjeW <= {0, 1}:\n return YKHO.get_prp_j(YKHO.id)\n else:\n gnXU = uwaB...
[ "0.5811232", "0.5618018", "0.55806446", "0.55423427", "0.5493342", "0.547986", "0.5454903", "0.54544437", "0.5442834", "0.53105986", "0.529677", "0.529616", "0.52954596", "0.5290553", "0.52738386", "0.52718884", "0.52689016", "0.5250481", "0.524353", "0.522934", "0.52152437",...
0.0
-1
Takes an option named argument ``queryset`` as the base queryset used in the ``get_queryset`` method.
def FIMM(YKHO, *qIxc, **B2fa): YKHO.queryset = B2fa.pop('queryset', None) super(lcdI, YKHO).__init__(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n assert YKHO.queryset is not None, \"'%s' should either include a `queryset` attribute, or override the `get_queryset()` method.\" % YKHO.__class__.__name__\n SR0I = YKHO.queryset\n if isinstance(SR0I, ZYvt):\n SR0I = SR0I.all()\n return SR0I", "def k66M(YKHO):\n if YKHO.qu...
[ "0.7078679", "0.69924366", "0.6932436", "0.68967795", "0.6876814", "0.68474334", "0.6781993", "0.67646444", "0.6708174", "0.6708174", "0.6624345", "0.661172", "0.6554527", "0.64866805", "0.64866805", "0.637765", "0.63491666", "0.63331366", "0.6332388", "0.6257969", "0.6216849...
0.6358767
16
If the form was initialized with a queryset, this method returns that queryset. Otherwise it returns ``Model.objects.all()`` for whatever model was defined for the form.
def k66M(YKHO): if YKHO.queryset is None: return YKHO.model.objects.all() return YKHO.queryset
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n if YKHO.queryset is not None:\n SR0I = YKHO.queryset\n if hasattr(SR0I, '_clone'):\n SR0I = SR0I._clone()\n elif YKHO.model is not None:\n SR0I = YKHO.model._default_manager.all()\n else:\n raise rqaQ(\"'%s' must define 'queryset' or 'model'\" % YKH...
[ "0.7936899", "0.7876319", "0.77187526", "0.76707315", "0.749273", "0.73866355", "0.726711", "0.7254133", "0.7253884", "0.7056347", "0.694931", "0.68266034", "0.67965055", "0.6784161", "0.6777045", "0.6724608", "0.6724608", "0.67002565", "0.66747195", "0.66747195", "0.66678715...
0.7751719
2
Returns an ordered queryset, sorted based on the values submitted in the sort parameter.
def k66M(YKHO): umWR = super(OD9w, YKHO).get_queryset() umWR = YKHO.pre_sort(umWR) if not YKHO.is_valid(): return umWR zS5u = YKHO.cleaned_data.get('sort', []) DeLa = [] for BA9O in zS5u: xqoZ = YKHO.HEADERS[abs(BA9O) - 1]['column'] if BA9O < 0: xqoZ = '-' + x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAfe(YKHO, umWR):\n return umWR", "def mJZc(YKHO, umWR):\n QePW = YKHO.request\n try:\n bsXP = int(QePW.REQUEST.get('iSortingCols', 0))\n except ValueError:\n bsXP = 0\n T4Wy = []\n wIkb = YKHO.get_order_columns()\n for YRbF in range(bsXP):\n try:\n Trwo =...
[ "0.7736099", "0.75997627", "0.74764633", "0.74379766", "0.72574294", "0.7254057", "0.7078339", "0.7053527", "0.7005069", "0.68938166", "0.6891692", "0.68695945", "0.68547904", "0.68325645", "0.6824646", "0.67742336", "0.67532146", "0.6700546", "0.6673186", "0.66535544", "0.66...
0.78090596
0
Helper function for CsvForm class that retrieves a value from an object described by a djangostyle query path. The value can be a model field, property method, foreign key field, or instance method on the model.
def YWC_(YEnM, pmON): pmON = pmON.split('__', 1) hGI9 = pmON[0] if YEnM is None: return None if len(pmON) == 1: hkS8 = _E_k(YEnM, hGI9) if isinstance(hkS8, FYrf.Model): return QMSQ(hkS8) elif hasattr(hkS8, '__call__'): return hkS8() else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, QePW, P4t4, C3ST, oeXr, *qIxc, **B2fa):\n wOed = XLL2.get_model(P4t4, C3ST)\n Jyyj = rd9l(wOed, oeXr)[-1]\n umWR = YKHO.get_queryset(wOed, oeXr)\n if Jyyj.is_relation:\n dixj = YKHO.get_relation_choices(Jyyj, umWR, oeXr)\n if YKHO.q:\n dixj = dixj.filter(**{'pk':...
[ "0.64917433", "0.6085007", "0.60781825", "0.5982327", "0.59347993", "0.5859937", "0.57110614", "0.57110614", "0.57110614", "0.57110614", "0.57110614", "0.57110614", "0.57110614", "0.57110614", "0.57110614", "0.57110614", "0.57110614", "0.57110614", "0.57110614", "0.57110614", ...
0.6950882
0
Returns the objects in the form's current queryset as csv content.
def VMxj(YKHO): if not hasattr(YKHO, 'CSV_COLUMNS'): raise NotImplementedError('Child classes of CsvForm must implement the CSV_COLUMNS constant') kUd4 = [YRbF['column'] for YRbF in YKHO.CSV_COLUMNS] dXXr = [YRbF['title'].encode('utf-8') for YRbF in YKHO.CSV_COLUMNS] fEXb = [] for YEnM in YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sIxo(YKHO):\n fEXb = []\n Sno3 = []\n MOPg = YKHO.queryset.model.csv_headers.copy()\n if hasattr(YKHO.queryset.model, 'get_custom_fields'):\n for dCAY in YKHO.queryset.model().get_custom_fields():\n MOPg.append(dCAY.name)\n Sno3.append(dCAY.name)\n fEXb.append(','.jo...
[ "0.7850295", "0.7681796", "0.75288653", "0.7510355", "0.7337889", "0.73138684", "0.68725055", "0.6434539", "0.6412522", "0.6195746", "0.6081931", "0.6030229", "0.6027381", "0.59883904", "0.5977921", "0.59635276", "0.5957708", "0.59288156", "0.5900067", "0.5867559", "0.5813132...
0.7058413
6
Get the column that is the argument number in the sequence.
def VP_u(YKHO, A9s_): return YKHO.columns[A9s_]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iVRZ(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'column')", "def iVRZ(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'column')", "def iVRZ(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'column')", "def iVRZ(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'column')", "def iVR...
[ "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7567843", "0.7546979", "0.7053613", "0.69885933", "0.69619435", "0.6897609", "0.6857228", ...
0.5603892
93
Get the column bundle associated with this data source.
def SyN9(YKHO): raise NotImplementedError('Implement this')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CUXk(YKHO):\n return _VfD.SBasePlugin_getColumn(YKHO)", "def CUXk(YKHO):\n return _VfD.SBase_getColumn(YKHO)", "def nga2(YKHO, iVRZ):\n return YKHO._source.columns.get_loc(YKHO._dataframe.columns[iVRZ])", "def iVRZ(YKHO):\n return YKHO['column']", "def iBd8(YKHO, mWFP):\n return YKHO.col...
[ "0.66047144", "0.629552", "0.6238524", "0.6187327", "0.61378264", "0.61298835", "0.6079711", "0.6035194", "0.59662366", "0.59021765", "0.5896817", "0.5889622", "0.58879983", "0.5880965", "0.58738106", "0.58111835", "0.5803687", "0.5770644", "0.57428133", "0.5730934", "0.57268...
0.7764243
0
Close this data source.
def EM8p(YKHO): raise NotImplementedError('Implement this')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fb0s(YKHO):\n YKHO.ds_reader = None\n YKHO.ds_table = None\n YKHO.ds_file = None", "def DDI8(YKHO):\n YKHO.data.close()", "def DDI8(YKHO):\n YKHO.ix.close()", "def DDI8(YKHO):\n YKHO._ds = None\n YKHO._schema = None", "def DDI8(YKHO):\n YKHO._ds = None\n YKHO._schema = None",...
[ "0.77661043", "0.75543904", "0.74022055", "0.71808314", "0.71808314", "0.6735405", "0.67009634", "0.670018", "0.670018", "0.6689567", "0.6688277", "0.66845614", "0.6675374", "0.66414756", "0.6638702", "0.6628197", "0.66208875", "0.66024727", "0.65947205", "0.65922314", "0.658...
0.0
-1
validates the given filename value
def dgm9(YKHO, H5ew, Ux0P): if Ux0P is None: raise TypeError('FileLink.filename can not be None') if not isinstance(Ux0P, (str, QMSQ)): raise TypeError('FileLink.filename should be a str or unicode, not %s' % Ux0P.__class__.__name__) return Ux0P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EHAC(YKHO, AesY):\n raise NotImplementedError", "def uK_a(Ux0P):\n if s5Gc(Ux0P):\n raise ValueError('%r not a filename' % Ux0P)", "def ghfI(Ux0P):\n xEDR = True\n if Ux0P[0] == '.' or Ux0P[0] == '_' or (not (Ux0P.split('.')[-1] == 'txt' or Ux0P.split('.')[-1] == 'csv')):\n xEDR =...
[ "0.7689872", "0.7598142", "0.75814885", "0.75314397", "0.7428798", "0.7382082", "0.73750144", "0.7344815", "0.73321706", "0.72921723", "0.7247949", "0.7233608", "0.71933174", "0.71806496", "0.7172675", "0.71544874", "0.70951825", "0.7055731", "0.70520896", "0.7042163", "0.703...
0.7609433
1
Return taxirides pandas dataframe.
def eshk(pmON, brer=None): kes1 = lambda fvDH: rLdf.to_datetime(fvDH, format='%m/%d/%Y %I:%M:%S %p') uly6 = lambda WKvO: SOnQ.Decimal('{:.2f}'.format(round(float(WKvO), 2))) Qcqh = ['fare_amount', 'extra', 'mta_tax', 'tip_amount', 'tolls_amount', 'improvement_surcharge', 'total_amount'] hZAA = dict(((iV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IBOy(YKHO):\n WfCS = list(YKHO._taxa.keys())\n WfCS.remove('uid')\n WfCS.remove('object')\n jQ3Z = hxoQ(YKHO._taxa, columns=WfCS, index=YKHO._taxa['uid'])\n jQ3Z.index.name = 'uid'\n return jQ3Z", "def o4pG(YKHO):\n nPrm = YKHO.load_data()\n d0Qf, AYWY = YKHO.get_user_and_item_ids(nPr...
[ "0.7665801", "0.5815429", "0.57725686", "0.57136816", "0.56967413", "0.5624629", "0.5622868", "0.5621966", "0.56008077", "0.55986047", "0.559678", "0.5579322", "0.5550897", "0.55386984", "0.5530808", "0.55189556", "0.54842484", "0.5482448", "0.547334", "0.5470035", "0.5466266...
0.6802421
1
Generates a pie chart, representing the last 5000 messages in the specified channel.
async def chatchart(YKHO, OaeV, YwkQ: Optional[discord.TextChannel]=None, yEHD: int=5000): if YwkQ is None: YwkQ = OaeV.channel if YwkQ.permissions_for(OaeV.message.author).read_messages is False: return await OaeV.send("You're not allowed to access that channel.") if YwkQ.permissions_for(Oa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def serverchart(YKHO, OaeV: commands.Context, yEHD: int=1000):\n if yEHD < 5:\n return await OaeV.send(\"Don't be silly.\")\n SS7a = []\n tAbP = await YKHO.config.guild(OaeV.guild).channel_deny()\n for YwkQ in OaeV.guild.text_channels:\n YwkQ: ZOrr.TextChannel\n if YwkQ.id in...
[ "0.5835213", "0.5779543", "0.5589654", "0.5564116", "0.55611694", "0.54764813", "0.54701215", "0.54608804", "0.5432896", "0.52753663", "0.52004474", "0.515726", "0.5109461", "0.5087616", "0.50271916", "0.5006948", "0.4982323", "0.49795395", "0.49745178", "0.4963208", "0.49226...
0.6006158
0
Set points that will be used to calculate displacements. If `points` is None and a `method` has aready been set on this `pyIDI` instance, the `method` object's `get_point` is used to get methodappropriate points.
def ivA1(YKHO, LTIa=None, NKcE=None, **B2fa): if LTIa is None: if not hasattr(YKHO, 'method'): if NKcE is not None: YKHO.set_method(NKcE) else: raise ValueError('Invalid arguments. Please input points, or set the IDI method first.') YKHO.method...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrAN(YKHO, LTIa):\n YKHO.points = LTIa", "def JDH3(YKHO, LTIa):\n pass", "def ivA1(YKHO, wEf2=None):\n YKHO._points = YKHO.nx * YKHO.ny * YKHO.nz", "def ivA1(YKHO, LTIa):\n YKHO.slmm = i2ml()\n YKHO.front = YKHO.length - 1\n YKHO.rear = None\n YKHO.add_points(LTIa)", "def HR2k(YKHO...
[ "0.63826764", "0.6375824", "0.61529124", "0.60980785", "0.6075058", "0.6013995", "0.5982021", "0.59295905", "0.57785976", "0.5703592", "0.56461304", "0.56232435", "0.5589645", "0.5560915", "0.5560007", "0.5551836", "0.5551836", "0.5549659", "0.5546624", "0.5546528", "0.553917...
0.8024203
0
Matches the first repeater in the string and removes it. Does not touch the repeaters after the first match.
def fe1P(YKHO, KCHu: str) -> str: return YKHO._repeater_count_regexp.sub('', KCHu, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XxRj(YKHO, KCHu: str) -> str:\n while YKHO._color_and_repeater_regexp.search(KCHu):\n KCHu = YKHO._insert_reset_char(KCHu)\n KCHu = YKHO._match_and_remove_repeater(KCHu)\n return KCHu", "def ebj1(l5Ny):\n return S0mm.replace_repeating_characters(l5Ny, '$1')", "def Pmur(YKHO, l5Ny):\n...
[ "0.671037", "0.6227007", "0.59823185", "0.58933026", "0.55559707", "0.5478481", "0.54069", "0.53969634", "0.538384", "0.5281415", "0.5246729", "0.5229812", "0.52234834", "0.52061564", "0.51480293", "0.5137465", "0.5136164", "0.5125606", "0.5119636", "0.5118939", "0.5106384", ...
0.7853476
0
Append item to end of linked list.
def SStx(YKHO, nPrm): Esd_ = o7DN(nPrm) if YKHO.head is None: YKHO.head = Esd_ return pFG5 = YKHO.head while pFG5.next: pFG5 = pFG5.next pFG5.next = Esd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, ZfUD):\n exwG = o7DN(ZfUD)\n jvSB = YKHO.head\n if jvSB is None:\n YKHO.head = exwG\n else:\n while jvSB.get_next() is not None:\n jvSB = jvSB.get_next()\n jvSB.set_next(exwG)", "def SStx(YKHO, ZfUD):\n X1Cd = o7DN(ZfUD)\n YKHO.tail.next = X1Cd\n ...
[ "0.8266678", "0.81806177", "0.79883355", "0.78563845", "0.7603289", "0.7556654", "0.7541728", "0.7522274", "0.7452091", "0.7426839", "0.73605233", "0.7339325", "0.7310235", "0.7292294", "0.7286239", "0.7257267", "0.721313", "0.7201036", "0.7191494", "0.7177629", "0.7172214", ...
0.69840044
43
Function that returns the index page and all its data
def d6pt(): YbRl = a79v('entertainment') lOfm = a79v('fashion') leAC = 'Vnews' return TvZl('index.html', title=leAC, fashion=lOfm, entertainment=YbRl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return {'page': 'index'}", "def b8V_():\n B2Dn = xhTS()\n DumB = UlWi(B2Dn)\n SV4W = CDCC()\n QpfX = {'current_page': B2Dn, 'total_pages': SV4W, 'items': DumB}\n return TvZl('index.html', **QpfX)", "def d6pt():\n return dict()", "def d6pt():\n return TvZl('index.html')",...
[ "0.85199696", "0.76600766", "0.74465674", "0.73561424", "0.7331338", "0.73275995", "0.73263806", "0.7221385", "0.7212406", "0.72095037", "0.71808803", "0.7171474", "0.7171474", "0.7171474", "0.71706176", "0.71339273", "0.7121554", "0.71199703", "0.71142286", "0.7103472", "0.7...
0.0
-1
Selects the parents randomly. Later, these parents will mate to produce the offspring.
def Jmdb(YKHO, wkbQ, PODZ): if YKHO.gene_type_single == True: ACnF = XTiz.empty((PODZ, YKHO.population.shape[1]), dtype=YKHO.gene_type[0]) else: ACnF = XTiz.empty((PODZ, YKHO.population.shape[1]), dtype=object) ai_V = XTiz.random.randint(low=0.0, high=wkbQ.shape[0], size=PODZ) for ye3m i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7fK(YKHO, CHNM):\n tuKI.shuffle(CHNM)\n return CHNM", "def Qiny(YKHO):\n YKHO.parents = []\n for aOck in range(0, int(YKHO.population_size * 0.6)):\n while True:\n if aOck < int(YKHO.population_size * 6 / 15):\n _AKB = tuKI.choice(YKHO.best_districts)\n ...
[ "0.75552964", "0.74631226", "0.73463005", "0.70745945", "0.6897127", "0.6814762", "0.67624736", "0.6756805", "0.6739713", "0.6707115", "0.6419159", "0.6378802", "0.632511", "0.63050073", "0.62330586", "0.6223498", "0.6220056", "0.62200254", "0.62165505", "0.6209252", "0.61756...
0.6385169
11
Returns a list of keys sorted by their values. Keys with the highest values will appear first. >>> a = Counter() >>> a['first'] = 2 >>> a['second'] = 4 >>> a['third'] = 1 >>> a.sortedKeys() ['second', 'third', 'first']
def GnuM(YKHO): qWex = YKHO.items() qk7K = lambda WKvO, LVAh: Zihr(LVAh[1] - WKvO[1]) qWex.sort(cmp=qk7K) return [WKvO[0] for WKvO in qWex]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GnuM(YKHO):\n qWex = list(YKHO.items())\n\n def qk7K(WKvO, LVAh):\n return Zihr(LVAh[1] - WKvO[1])\n qWex.sort(cmp=qk7K)\n return [WKvO[0] for WKvO in qWex]", "def X_7r(YKHO):\n sjXb = YKHO.data.keys()\n sjXb.sort(key=lambda WKvO: -len(YKHO[WKvO]))\n return sjXb", "def sjXb(YKHO...
[ "0.76473737", "0.7400908", "0.7173844", "0.7133614", "0.7077604", "0.69163054", "0.68053555", "0.6681926", "0.665005", "0.6550057", "0.64845437", "0.64467335", "0.6422366", "0.6420075", "0.63758653", "0.6201112", "0.61731327", "0.6018685", "0.6015968", "0.5956273", "0.5913844...
0.7506466
1
Returns the sum of counts for all keys.
def J2DP(YKHO): return sum(YKHO.values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pcsc(UHFx):\n return sum(UHFx.values())", "def ydVG(YKHO):\n return YKHO.datacounts + YKHO.bkgdcounts", "def DUZc(mWFP, H5ew):\n wjRY = 0\n xDcj = AuHm.all().filter('name = ', mWFP).filter('reference_key = ', H5ew)\n for ewCu in xDcj:\n wjRY += ewCu.count\n return wjRY", "def o1t...
[ "0.718206", "0.6880847", "0.6810029", "0.6695799", "0.66415733", "0.663198", "0.65938187", "0.65352434", "0.6529951", "0.6481646", "0.6461681", "0.642291", "0.64196306", "0.64196306", "0.63727325", "0.6367173", "0.63383484", "0.63346845", "0.63323027", "0.63252246", "0.632522...
0.7338761
2
Get the reaction type designation from the reaction class.
def cM24(orzZ): return orzZ[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WbpT(orzZ):\n return lT9B.get(orzZ, None)", "def G1Gj(YKHO):\n return _VfD.Reaction_getTypeCode(YKHO)", "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO) -> str:\n return YKHO.type", "def FRul(YKHO):\n return YKHO._type_obj", "def FRul(YKH...
[ "0.6328494", "0.6257245", "0.62447095", "0.62447095", "0.62003934", "0.6142866", "0.60968935", "0.60956967", "0.60956967", "0.6057968", "0.60093075", "0.60093075", "0.60093075", "0.60093075", "0.60093075", "0.60093075", "0.60093075", "0.60093075", "0.60093075", "0.60093075", ...
0.62529427
2
Keep pushing characters on to a stack till a ")" is collected. Once it is collected we keep popping from the stack till a "(" is obtained. We then pop the sign which is either the next top of the stack or we take it as a "+" We open the brackets and push the result on top of the stack again Finally, pop all the charact...
def MhEZ(lsX7): vexM = [] for WKvO in lsX7: if WKvO != ')': vexM.append(WKvO) else: rDkS = '' while vexM: Z9rn = vexM.pop() if Z9rn == '(': if len(vexM) and (vexM[-1] == '+' or vexM[-1] == '-'): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def btDz(Jwtf):\n hlel = ''\n Maem = ''\n IYpI = {'*': 100, '/': 90, '+': 80, '-': 70, '(': 60, ')': 50}\n for Z9rn in Jwtf:\n if Z9rn.isdigit():\n hlel += Z9rn\n elif Z9rn in {'+', '-', '*', '/'}:\n while len(Maem) > 0 and Maem[-1] != '(' and (IYpI[Maem[-1]] > IYpI[...
[ "0.70811635", "0.70106375", "0.6971359", "0.6862161", "0.683258", "0.6787613", "0.6772963", "0.6729979", "0.66971433", "0.6673992", "0.6663553", "0.66268504", "0.66172343", "0.6616178", "0.660237", "0.65735954", "0.6501266", "0.64648277", "0.6433687", "0.6400735", "0.63920915...
0.76580936
0
Initialisation of profiles superclass Initialises the quantities used in the class
def FIMM(YKHO): YKHO.rho = [] YKHO.te = [] YKHO.ti = [] YKHO.ne = [] YKHO.ni = [] YKHO.ni1 = [] YKHO.ni2 = [] YKHO.ni3 = [] YKHO.vtor = [] YKHO.zeff = [] YKHO.nion = 1 YKHO.Z = [] YKHO.A = [] YKHO.coll_mode = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MB1u(YKHO):\n YKHO._profiles = {G1Hx: oyIN.zeros((len(YKHO.hybrid_time_index), len(YKHO.hybrid_meta)), dtype=oyIN.float32) for G1Hx in RPAo}", "def FIMM(YKHO, p8Jz, Y3jO, Qm3o, XSoh, tZwq, **c_sp):\n assert 'variables' not in c_sp, 'variables parameter is useless.'\n super(n0se, YKHO).__init__(varia...
[ "0.63501114", "0.6295864", "0.6253771", "0.6251196", "0.6221176", "0.6209591", "0.61729836", "0.61729836", "0.61729836", "0.6148173", "0.6135914", "0.6117318", "0.6099664", "0.6097138", "0.60441494", "0.6032268", "0.6014388", "0.5963317", "0.595801", "0.59539086", "0.59500736...
0.0
-1
Create a Resource or subclass thereof from a dictionary. The new Resource's rkey and location must be handed in explicitly. The difference between this and simply intializing a Resource object is that from_dict will introspect the attrs passed in and create whatever kind of Resource matches attrs['kind'] so for example...
def jG8h(Emd4: Type[R], Wvog: str, Rci7: str, pIty: Optional[str], o8Kj: Dict) -> A3Vt: VKgL = HwRy.modules['ambassador'] u8IT: eBH2[A3Vt] = getattr(VKgL, o8Kj['kind'], None) if not u8IT: u8IT = getattr(VKgL, 'AC' + o8Kj['kind'], Emd4) return u8IT(Wvog, location=Rci7, serialization=pIty, **o8Kj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, tbx9: Dict) -> 'Resource':\n qIxc = {}\n if 'attributes' in tbx9:\n qIxc['attributes'] = [URbA.from_dict(WKvO) for WKvO in tbx9.get('attributes')]\n return Emd4(**qIxc)", "def FXIs(Emd4: Type[R], Elif: R, Wvog: Optional[str]=None, Rci7: Optional[str]=None, eJTR: Optional[str]=None,...
[ "0.743612", "0.67693067", "0.66140085", "0.6573382", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0.634552", "0....
0.7918301
0
Create a Resource from a YAML serialization. The new Resource's rkey and location must be handed in explicitly, and of course in this case the serialization is mandatory. Raises an exception if the serialization is not parseable.
def OXMy(Emd4: Type[R], Wvog: str, Rci7: str, pIty: str) -> A3Vt: o8Kj = JVxb(pIty) return Emd4.from_dict(Wvog, Rci7, pIty, o8Kj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'BotoError':\n BWXx = DWkG.construct_mapping(Q6kx, deep=True)\n return Emd4(BWXx)", "def OXMy(Emd4, Fg_i):\n return Emd4.from_dict(eJb6.safe_load(Fg_i))", "def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'ToJson':\n try:\n BWXx = DW...
[ "0.65293074", "0.643999", "0.6372699", "0.6233396", "0.617768", "0.6132939", "0.612246", "0.6100841", "0.60873455", "0.6014488", "0.6005695", "0.5897076", "0.58631533", "0.5861946", "0.5842951", "0.5787686", "0.57846904", "0.571654", "0.57030666", "0.55484045", "0.55461496", ...
0.81506383
0
Initialise a pySlip instance. parent reference to parent object tile_dir the root tile directory start_level initial tile level to start at min_level the minimum tile level to use max_level the maximum tile level to use kwargs keyword args for Panel
def FIMM(YKHO, _AKB, xzwO=None, jR8c=None, QwYr=None, f0fZ=None, **B2fa): lnPd.Panel.__init__(YKHO, parent=_AKB, id=lnPd.ID_ANY, **B2fa) YKHO.SetBackgroundColour(sgwJ.BackgroundColour) YKHO.tiles = sgwJ.Tiles(xzwO) YKHO.max_level = f0fZ if f0fZ is None: YKHO.max_level = YKHO.tiles.max_level ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, xzwO):\n YKHO.tile_dir = xzwO\n nY9q = Hy7s.path.join(xzwO, YKHO.TileInfoFilename)\n try:\n Gcbu = open(nY9q, 'rb')\n YKHO.extent, YKHO.tile_size, YKHO.sea_colour, YKHO.land_colour = t2lc.load(Gcbu)\n Gcbu.close()\n except IOError:\n tO9_ = \"'%s' doesn't appe...
[ "0.6360639", "0.5965736", "0.59497225", "0.5935533", "0.58347094", "0.5803722", "0.5768731", "0.57167184", "0.5711916", "0.5694782", "0.5654527", "0.56288", "0.56206685", "0.5583578", "0.55427796", "0.55426157", "0.5508138", "0.5458691", "0.5453321", "0.5442195", "0.54406834"...
0.78247696
0
Hide a layer. id the layer id
def o0Dx(YKHO, id): YKHO.layer_mapping[id].visible = False YKHO.Refresh()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Afoa(id):\n if type(id) is int:\n Oa1e.hide(Oa1e.database[id])\n else:\n wl2N = _ym5(OXYv[id])\n Oa1e.hide(Oa1e.database[wl2N])", "def Afoa(id):\n if type(id) is int:\n Oa1e.hide(Oa1e.database[id])\n else:\n wl2N = _ym5(OXYv[id])\n Oa1e.hide(Oa1e.database...
[ "0.7394393", "0.7385488", "0.7109449", "0.6853672", "0.6661525", "0.6339119", "0.62931347", "0.62590903", "0.59546", "0.59103674", "0.5825434", "0.58110154", "0.57821417", "0.57198274", "0.5709647", "0.5689238", "0.56711596", "0.5668008", "0.5644972", "0.5644972", "0.56433225...
0.8886411
0
weighted correlation with default ddof assumes variables in columns and observations in rows
def wLQD(YKHO): return YKHO.cov / YKHO.std / YKHO.std[:, None]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NxJr(WKvO, LVAh, tpio=None, _mSQ=None, b_FU=True):\n ZuCc = WKvO.notnull() & LVAh.notnull()\n WKvO = WKvO.where(ZuCc)\n LVAh = LVAh.where(ZuCc)\n M6pt = GehU(WKvO, LVAh, tpio, _mSQ)\n UUZ1 = oyIN.sqrt(GehU(WKvO, WKvO, tpio, _mSQ) * GehU(LVAh, LVAh, tpio, _mSQ))\n mFow = M6pt / UUZ1\n if b_...
[ "0.6441923", "0.59898734", "0.56081176", "0.5598199", "0.5492722", "0.5452093", "0.541864", "0.541643", "0.5397263", "0.5379481", "0.5352804", "0.5308242", "0.5305181", "0.5288513", "0.5279307", "0.5258209", "0.5258209", "0.52478284", "0.5243936", "0.52372", "0.5221937", "0...
0.47563192
87
Compute quantiles for a weighted sample.
def aM62(YKHO, BFeB, FFEL=True): import pandas as rLdf BFeB = oyIN.asarray(BFeB) BFeB = oyIN.atleast_1d(BFeB) if YKHO.data.ndim == 1: _xn0 = YKHO._quantile(YKHO.data, BFeB) if FFEL: _xn0 = rLdf.Series(_xn0, index=BFeB) else: _xn0 = [] for he6J in YKHO.data...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yMVI(hkxX, o7bE, xF06=None, _goN=False, aCdt=False):\n hkxX = oyIN.array(hkxX)\n o7bE = oyIN.array(o7bE)\n if xF06 is None:\n xF06 = oyIN.ones(len(hkxX))\n xF06 = oyIN.array(xF06)\n assert oyIN.all(o7bE >= 0) and oyIN.all(o7bE <= 1), 'quantiles should be in [0, 1]'\n if not _goN:\n ...
[ "0.75085753", "0.74910057", "0.7471163", "0.7471163", "0.71036875", "0.70795774", "0.6928313", "0.6904284", "0.6439687", "0.6395362", "0.6281827", "0.62393016", "0.62376153", "0.62263536", "0.61690843", "0.61224836", "0.61220604", "0.60915524", "0.6080542", "0.6055984", "0.60...
0.0
-1
Testing success add to wallet.
async def test_success(YKHO, w2B8, o6ol, Fj9n): Z5kt = ZjSO(2.5) wpUv = await CWY8(w2B8, wallet_id=o6ol[1], amount=Z5kt) assert wpUv == Z5kt + Fj9n['balance']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I1eX(YKHO):\n pass", "def jgue(YKHO):\n pass", "async def test_success(YKHO, w2B8, o6ol, Fj9n):\n Z5kt = ZjSO('0.1')\n wpUv = await GAc4(w2B8, wallet_id=o6ol[1], amount=Z5kt)\n assert wpUv == Fj9n['balance'] - Z5kt", "def NOWL(YKHO):\n pass", "def rZw3(YKHO):\n YKHO.protocol.addSuc...
[ "0.7667904", "0.74661136", "0.7026578", "0.6733449", "0.6726548", "0.65997297", "0.6407913", "0.6288156", "0.6239645", "0.6176022", "0.61644983", "0.6164274", "0.613371", "0.6124592", "0.6099608", "0.60589296", "0.6030545", "0.6020666", "0.60066026", "0.5994878", "0.59700376"...
0.80333555
0
Testing success add to wallet.
async def test_success(YKHO, w2B8, o6ol, Fj9n): Z5kt = ZjSO('0.1') wpUv = await GAc4(w2B8, wallet_id=o6ol[1], amount=Z5kt) assert wpUv == Fj9n['balance'] - Z5kt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_success(YKHO, w2B8, o6ol, Fj9n):\n Z5kt = ZjSO(2.5)\n wpUv = await CWY8(w2B8, wallet_id=o6ol[1], amount=Z5kt)\n assert wpUv == Z5kt + Fj9n['balance']", "def I1eX(YKHO):\n pass", "def jgue(YKHO):\n pass", "def NOWL(YKHO):\n pass", "def rZw3(YKHO):\n YKHO.protocol.addSucce...
[ "0.8034115", "0.7668974", "0.7466641", "0.6734877", "0.672624", "0.6600258", "0.6408301", "0.6289291", "0.6240422", "0.6176132", "0.6163817", "0.6163189", "0.6134905", "0.61240226", "0.60996693", "0.6059342", "0.603162", "0.6020867", "0.6007446", "0.5993692", "0.59702635", ...
0.7028044
3
Test to update existing song
def UNrV(): BEU9 = {'artist': 'Heng', 'song': 'I can do all things', 'genre': 'Hip-Hop', 'lyrics': 'Like Steph said I can do all things In...', 'year': VzRq(), 'timestamp': ItX3()} SCPA(BEU9) pTkB = 'Like Steph said I can do all things In...' In6_ = 'Heng' Ckxl = 'I can do all things' QRIA = nV4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l_lS(YKHO):\n YKHO.login_client('test_user', 'testing')\n geh0 = YKHO.make_a_request(kind='put', id=2, data=YKHO.valid_data)\n YKHO.assertEqual(geh0.data, YKHO.valid_data)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n geh0 = YKHO.make_a_request(kind='put', id=3, data=YKHO.invalid_data...
[ "0.7944716", "0.7883418", "0.743463", "0.69309306", "0.6862517", "0.6846239", "0.6846239", "0.6846239", "0.6838062", "0.6805066", "0.6755024", "0.673743", "0.6719135", "0.66186804", "0.6610433", "0.65483487", "0.65441066", "0.6534617", "0.6534026", "0.6530974", "0.6527355", ...
0.8028702
0
List all courses that are registered on eventex
def T24L(QePW, rPXJ='core/list_course.html'): geh0 = {'morning': CQpO.objects.at_morning(), 'afternoon': CQpO.objects.at_afternoon()} return EEdX(QePW, rPXJ, geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tYAy(QePW):\n sDlr = CQpO.objects.all()\n sDlr = [dict(course_name=Z9rn.course_name, course_code=Z9rn.course_code, course_year=Z9rn.year, course_url='/course/%s/' % Z9rn.course_code.lower()) for Z9rn in sDlr]\n geh0 = {'courses': sDlr}\n return SGJU('all_courses.json', geh0, mimetype='application/j...
[ "0.70941615", "0.6950283", "0.686628", "0.67610705", "0.67441595", "0.671117", "0.6684754", "0.666783", "0.66610575", "0.6631861", "0.6559467", "0.6553202", "0.65302134", "0.64756036", "0.64633054", "0.6425861", "0.6413465", "0.62762314", "0.6250935", "0.62244254", "0.6208607...
0.70996803
0
Checks validity of supplied doi. If whitespace is True (default False), allows supplied doi to contain whitespace.
def tiTV(YKHO, RHKR, FcoE=False): _ACG = _Q6N(RHKR, whitespace=False) if _ACG is None: raise w8UM('Supplied DOI "%s" fails doi check' % RHKR) return RHKR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGVO(YKHO, RHKR):\n RHKR = YKHO.normalise(RHKR, include_prefix=True)\n if RHKR is None or kUBT('^doi:10\\\\..+/.+$', RHKR) is None:\n return False\n else:\n if not RHKR in YKHO._data or YKHO._data[RHKR] is None:\n return YKHO.__doi_exists(RHKR)\n return YKHO._data[RHKR]...
[ "0.6077393", "0.5479238", "0.5447448", "0.54218566", "0.52605265", "0.5221199", "0.5212951", "0.5185334", "0.50733185", "0.50124353", "0.50094277", "0.4966431", "0.49488258", "0.49428543", "0.49054754", "0.49045965", "0.48856467", "0.48710638", "0.4866625", "0.4843063", "0.48...
0.75467116
0
Test index route when upload service has an error.
def qXOo(YKHO, AZgw): x0hE = mJn7.application.test_client(AZgw) bD7m = '/' pwxd = G4JS.HTTPError(AZgw.Mock(status=404), 'not found') AZgw.patch('wsgi._retryable', side_effect=pwxd) geh0 = x0hE.get(bD7m) hlel = {'message': 'upload-service not operational', 'status': 'Error', 'version': mJn7.VERSI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jJoI(YKHO, AZgw):\n x0hE = mJn7.application.test_client(AZgw)\n bD7m = '/'\n geh0 = x0hE.get(bD7m)\n hlel = {'message': 'upload-service not operational', 'status': 'Error', 'version': mJn7.VERSION}\n assert geh0.get_json() == hlel\n assert geh0.status_code == 500", "def Q9RF(YKHO):\n geh...
[ "0.7071677", "0.67416227", "0.64081436", "0.63842356", "0.6374016", "0.63328224", "0.6332343", "0.63275504", "0.6312531", "0.62103826", "0.6199679", "0.6196392", "0.6135647", "0.6134511", "0.61217135", "0.6101505", "0.60789794", "0.6055757", "0.6021531", "0.6019487", "0.60096...
0.69953835
1
Test index route when upload service is absent.
def jJoI(YKHO, AZgw): x0hE = mJn7.application.test_client(AZgw) bD7m = '/' geh0 = x0hE.get(bD7m) hlel = {'message': 'upload-service not operational', 'status': 'Error', 'version': mJn7.VERSION} assert geh0.get_json() == hlel assert geh0.status_code == 500
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q9RF(YKHO):\n geh0 = YKHO.client.get('localhost:8000')\n YKHO.assertEqual(geh0.status_code, 404)", "def Fdgk(YKHO):\n QePW = I_ZY.message.Request()\n QePW.method = 'GET'\n QePW.uri = '/testnoindex/'\n QePW.set_header('Host', 'localhost:{}'.format(MRXx))\n QePW.set_header('Connection', 'c...
[ "0.67005056", "0.66597116", "0.6420942", "0.6270383", "0.62585324", "0.62503916", "0.6243407", "0.6241023", "0.62369686", "0.62307173", "0.61476785", "0.61234355", "0.60746855", "0.6065247", "0.60375744", "0.6006061", "0.5925443", "0.5916495", "0.59100264", "0.59082246", "0.5...
0.7783082
0
Load an image given it's file path (numpy ndarray of dimension n_images x height x width x n_channels)
def DZ0a(qaEx): return hnIv.open(qaEx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(pmON):\n print('path', pmON)\n print(GkAb(pmON).is_file())\n if GkAb(pmON).is_file():\n VXjJ = LNo8.imread(pmON)\n print(f'Loading image of dimensions {VXjJ.shape[0]} x {VXjJ.shape[1]}')\n return oyIN.array(VXjJ)\n raise FileNotFoundError", "def JghP(pmON: str) -> oyIN.n...
[ "0.8146869", "0.79818004", "0.7778522", "0.7608338", "0.7573117", "0.7570187", "0.75691617", "0.74936146", "0.74797475", "0.74283546", "0.7387448", "0.7343644", "0.72848815", "0.7283993", "0.72809917", "0.7209921", "0.7206979", "0.7206979", "0.7197862", "0.718841", "0.7142359...
0.73602027
11
Plots some images (useful when working in notebooks)
def nUHY(Yw_3, ENFq=True, wgBO=False): if ENFq: Yw_3 = oyIN.concatenate([bAXH(VXjJ) for VXjJ in Yw_3], axis=1) return nUHY([Yw_3], concat=False, return_plots=wgBO) else: mNgJ = [] for VXjJ in Yw_3: LZpg = QrM1.figure(figsize=(15, 7)) mNgJ.append(LZpg) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rzaM(**Yw_3):\n exwG = len(Yw_3)\n QrM1.figure(figsize=(16, 5))\n for YRbF, (mWFP, LNo8) in enumerate(Yw_3.items()):\n QrM1.subplot(1, exwG, YRbF + 1)\n QrM1.xticks([])\n QrM1.yticks([])\n QrM1.title(' '.join(mWFP.split('_')).title())\n QrM1.imshow(LNo8)\n QrM1.sh...
[ "0.7933343", "0.766327", "0.766327", "0.766327", "0.74573267", "0.7414237", "0.7354884", "0.724112", "0.71944755", "0.71898305", "0.71785593", "0.7174218", "0.7174218", "0.7174218", "0.71459705", "0.71425194", "0.71261764", "0.71213293", "0.70681906", "0.7001811", "0.6984117"...
0.6688345
58
Apply contrast limited adaptive histogram equalization (CLAHE) to an input image
def tE7U(VXjJ, Ymrb=2.0, OGS0=(8, 8)): ROpF = VXjJ.shape if len(ROpF) > 2 and ROpF[2] == 1: VXjJ = VXjJ.reshape(ROpF[:2]) assert VXjJ.dtype == oyIN.uint8, '0 to 255 uint8 for pixel values are expected' assert len(VXjJ.shape) == 2, 'only on one channel' cnG0 = XC5k.createCLAHE(clipLimit=Ymrb,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _SKm(VXjJ):\n cnG0 = XC5k.createCLAHE(clipLimit=3.0, tileGridSize=(8, 8))\n ogYM = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2LAB)\n vC9B, jzdc, Fg_i = XC5k.split(ogYM)\n V70B = cnG0.apply(vC9B)\n ogYM = XC5k.merge((V70B, jzdc, Fg_i))\n _YGI = XC5k.cvtColor(ogYM, XC5k.COLOR_LAB2BGR)\n return _YGI"...
[ "0.81869", "0.7743078", "0.72423345", "0.7236002", "0.6930185", "0.68155605", "0.65591663", "0.6471757", "0.64632344", "0.64152837", "0.6378416", "0.62844145", "0.62634516", "0.62104905", "0.6105494", "0.6066735", "0.6019525", "0.6017419", "0.59927285", "0.5922594", "0.591380...
0.6722255
6
Return the module version for a given Agent version. >>> mods = [GoModule("."), GoModule("pkg/util/log")] >>> [mod.__version("7.27.0") for mod in mods] ["v7.27.0", "v0.27.0"]
def tOAk(YKHO, WhAq): if YKHO.path == '.': return 'v' + WhAq return 'v0' + WhAq[1:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yn5R(LCet):\n VlDb = __import__(LCet)\n return getattr(VlDb, '__version__', getattr(VlDb, 'VERSION', None))", "def kaPv():\n _sAX = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'renamer', '_version.py')\n with open(_sAX) as E_iM:\n exec(E_iM.read())\n return locals()['__version__']", "def ...
[ "0.66018605", "0.6547241", "0.6420678", "0.6420557", "0.63419193", "0.6315831", "0.6312832", "0.62013525", "0.61989623", "0.60789406", "0.6076399", "0.6044218", "0.6042582", "0.6026852", "0.60208166", "0.6011533", "0.6000099", "0.59501934", "0.59453845", "0.5916846", "0.59168...
0.63332415
5
Return the absolute path of the Go module.
def Zg0d(YKHO): return Hy7s.path.abspath(YKHO.path)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MJH2():\n return Hy7s.path.dirname(QMSQ(xAKo, HwRy.getfilesystemencoding()))", "def H5Mn():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))", "def WJI7(yR_P):\n return oAb3.Path(Hy7s.path.dirname(Hy7s.path.abspath(tq_1.getfile(yR_P))))", "def _iRa(YKHO):\n return YKHO.full_path() + '/go....
[ "0.80166584", "0.7908224", "0.77740574", "0.7750319", "0.7653624", "0.7587882", "0.7520737", "0.7441956", "0.73321056", "0.725379", "0.71816033", "0.71192634", "0.71102333", "0.7065501", "0.7063331", "0.70627683", "0.7054323", "0.7010632", "0.6996409", "0.6991925", "0.6959183...
0.64160764
69
Return the absolute path of the Go module go.mod file.
def _iRa(YKHO): return YKHO.full_path() + '/go.mod'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MJH2():\n return Hy7s.path.dirname(QMSQ(xAKo, HwRy.getfilesystemencoding()))", "def H5Mn():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))", "def MJH2():\n from sys import path\n from os import getcwd\n from os.path import basename, exists\n from inspect import getmodulename, getfil...
[ "0.75294846", "0.7493527", "0.7483199", "0.72785497", "0.7249449", "0.7074034", "0.7021906", "0.7014036", "0.69773954", "0.6876765", "0.6860117", "0.6858643", "0.67778265", "0.67518437", "0.67333883", "0.67214864", "0.6716913", "0.6644459", "0.6628152", "0.65870345", "0.64627...
0.8614053
0
Compute attention for 2dimensional queries (batch x hidden).
def VW6s(YKHO, xDcj, sjXb, hkxX, ZHfW=None): xDcj = xDcj.unsqueeze(1) RKO5, _mSQ = YKHO.forward_3d(xDcj, sjXb, hkxX, mask=ZHfW) RKO5 = RKO5.squeeze(1) _mSQ = _mSQ.squeeze(1) return (RKO5, _mSQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v2uf(xDcj, YPaw):\n if pf_1.is_sequence(xDcj):\n GPHi = pf_1.flatten(xDcj)\n xDcj = _WqI.concat(GPHi, 1)\n iDtE = qkSJ.matmul(xDcj, yzQ0) + Fg_i\n iDtE = _WqI.reshape(iDtE, [-1, 1, 1, je7f])\n KCHu = qkSJ.reduce_sum(Ty9i * qkSJ.tanh(HqPd + iDtE), [2, 3])\n UqYS = rXs0.softmax(KCHu,...
[ "0.7771222", "0.7114242", "0.70485926", "0.6950163", "0.66308886", "0.6578838", "0.6548845", "0.6464339", "0.64113617", "0.63293755", "0.6302551", "0.62915266", "0.6268303", "0.62190884", "0.6216596", "0.6211071", "0.62042516", "0.6155263", "0.60527354", "0.59789556", "0.5966...
0.0
-1
Compute attention for 3dimensional input (batch x step x hidden).
def B8GW(YKHO, xDcj, sjXb, hkxX, ZHfW=None): tjUW = xDcj.shape[0] V5Fy = YKHO._hidden_size // YKHO._num_head EeTk = YKHO.linear_Q(xDcj) if YKHO.relative_posmatrix is not None: Bjxj = xDcj.shape[1] W8O1 = sjXb.shape[1] oeNL = ht2j.arange(W8O1).repeat(Bjxj, 1) Suae = oeNL -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TTPo(YKHO, g4y1):\n c3Oi = nMvt.batch_dot(x=g4y1, y=nMvt.permute_dimensions(g4y1, pattern=(0, 2, 1)))\n return nMvt.permute_dimensions(c3Oi, (0, 2, 1))", "def v2uf(xDcj, YPaw):\n if pf_1.is_sequence(xDcj):\n GPHi = pf_1.flatten(xDcj)\n xDcj = _WqI.concat(GPHi, 1)\n iDtE = qkSJ.matmu...
[ "0.7259609", "0.70202136", "0.67105246", "0.65564626", "0.6397242", "0.6347776", "0.62830824", "0.6262901", "0.62333703", "0.6227883", "0.61883694", "0.6182892", "0.6170554", "0.6159105", "0.61478716", "0.61472255", "0.6076734", "0.60606", "0.6054937", "0.6027124", "0.6022023...
0.0
-1
Test that turning off `spatial_squeeze` changes the output shape. Also try setting different values for `dropout_keep_prob` and snt.BatchNorm `is_training`.
def _sGN(YKHO): FVer = Avmm.InceptionI3d(num_classes=oySj, spatial_squeeze=False, final_endpoint='Predictions') pKvt = ZylS.placeholder(ZylS.float32, [None, 64, RG1n, RG1n, 3]) N6Z1, roD5 = FVer(pKvt, is_training=False, dropout_keep_prob=1.0) ZCRR = ZylS.global_variables_initializer() with ZylS.Sess...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rXF7(YKHO):\n FVer = Avmm.InceptionI3d(num_classes=oySj, final_endpoint='Predictions')\n pKvt = ZylS.placeholder(ZylS.float32, [None, 64, RG1n, RG1n, 3])\n N6Z1, roD5 = FVer(pKvt, is_training=True, dropout_keep_prob=0.5)\n ZCRR = ZylS.global_variables_initializer()\n with ZylS.Session() as cb_Q:...
[ "0.68306565", "0.6178674", "0.6161824", "0.6145363", "0.6087118", "0.6051122", "0.6043302", "0.6040517", "0.60268104", "0.60052943", "0.5978523", "0.5959493", "0.5949557", "0.5931597", "0.592495", "0.58656013", "0.58514225", "0.5845749", "0.5822011", "0.5788778", "0.57682407"...
0.70255846
0
Returns the number of attributes in the data set.
def z2mi(YKHO): return YKHO.numAttributes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hw5h(YKHO) -> int:\n return YKHO._num_attributes", "def z2mi(YKHO):\n return len(YKHO._attributes)", "def z2mi(YKHO):\n return _VfD.XMLAttributes_getNumAttributes(YKHO)", "def e6cK(YKHO):\n U5bT = L3iJ.xmlTextReaderAttributeCount(YKHO._o)\n return U5bT", "def NlDI(YKHO):\n return _VfD...
[ "0.846202", "0.8095692", "0.75625193", "0.7485791", "0.74504465", "0.72663426", "0.726516", "0.71674794", "0.69731325", "0.6937061", "0.6928069", "0.6926428", "0.6899551", "0.6893666", "0.689213", "0.68915886", "0.68915886", "0.68462926", "0.6811813", "0.67925686", "0.6791973...
0.82214403
1
Calculates inverval in seconds between two datetime.time objects.
def VOlW(yKcO, Os4s): return dgz_(Os4s) - dgz_(yKcO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C61p(t0fp: Time, nEj9: Time) -> float:\n bMNS = t0fp.sec - nEj9.sec\n tow4 = t0fp.nanosec - nEj9.nanosec\n JRYC = bMNS + tow4 / 10 ** 9\n return JRYC", "def uKkN(YKHO, Elif):\n if not isinstance(Elif, qcWV):\n SnBA = (type(Elif), qcWV)\n raise TypeError('Type mismatch: %s not ins...
[ "0.7365684", "0.72946465", "0.72879434", "0.7151525", "0.7107327", "0.6918762", "0.6803006", "0.680009", "0.67707527", "0.672666", "0.6667754", "0.66074747", "0.65792024", "0.6552553", "0.6552553", "0.65494645", "0.6527671", "0.65218365", "0.65097123", "0.6490022", "0.6484557...
0.7037316
5
Calculate seconds of worked days in month.
def Arzg(kpxX): lO87, x0eS = kpxX _c1T = qcWV(lO87, x0eS, GRk0.monthrange(lO87, x0eS)[1]) return sum([1 for WKvO in Ni9Y(1, _c1T.day) if qcWV(lO87, x0eS, WKvO).weekday() < 5]) * (60 * 60 * 8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CpwC(Sm0u):\n return int(Sm0u * 86400)", "def Ri7a(ITS7):\n return int(ITS7 / 86400)", "def vhrV(YKHO):\n return GRk0.monthrange(YKHO.year, YKHO.month)[1]", "def D_Ix(YKHO):\n return int(YKHO._shifted_time / 86400)", "def ap1K(yKcO, Os4s):\n jFwo = Os4s - yKcO\n cpvk = int(jFwo / 60)\...
[ "0.6509216", "0.6270076", "0.62632626", "0.6155513", "0.612984", "0.61108404", "0.6108658", "0.6061195", "0.60405797", "0.6038891", "0.60180604", "0.58791983", "0.58727103", "0.58680207", "0.586754", "0.5789541", "0.5762172", "0.5760224", "0.5755207", "0.5730819", "0.56684434...
0.0
-1
sets tab with to 4 spaces, std everywhere
def s44w(YKHO, hVLt, *qIxc): hVLt.insert(lYML.INSERT, ' ' * 4) return 'break'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xg1X(YKHO):\n YKHO._write('\\t')", "def jZfC(YKHO):\n if YKHO.tab:\n return '\\t'\n return ''", "def jJ5Z(Wxnj):\n for YRbF, zFiD in enumerate(Wxnj):\n Wxnj[YRbF] = ' ' * 4 + zFiD\n return Wxnj", "def Xg1X(YKHO):\n YKHO.write(YKHO.ASCII_TAB)\n YKHO._column = YKHO._colum...
[ "0.7873234", "0.7302737", "0.72136486", "0.7207288", "0.7128487", "0.6939038", "0.6784599", "0.6670579", "0.66588163", "0.64802307", "0.6468251", "0.64467114", "0.64314663", "0.63625544", "0.63554513", "0.6349103", "0.63080907", "0.6293214", "0.6272492", "0.62159073", "0.6215...
0.7399885
1
hides the output console
def dKgI(YKHO, QvKD, GQdd): QvKD.pack_forget() GQdd.pack_forget()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Afoa(YKHO) -> None:\n HKKS = YKHO._spin_thread and YKHO._spin_thread.is_alive()\n if YKHO._hide_spin is None:\n raise RuntimeError('hide_spin is None')\n if HKKS and (not YKHO._hide_spin.is_set()):\n with YKHO._stdout_lock:\n YKHO._hide_spin.set()\n YKHO._clear_line...
[ "0.739349", "0.73313683", "0.7318921", "0.7196621", "0.71079767", "0.7082714", "0.6987291", "0.69280136", "0.6760157", "0.6747856", "0.6693398", "0.66793716", "0.6619533", "0.66136855", "0.65344995", "0.65285915", "0.65070796", "0.6379064", "0.6377341", "0.636664", "0.6364515...
0.6278526
27
adds words to trie
def MY5o(YKHO, QvKD, hVLt, Ae2G, *qIxc): global FLAG giUo = 1 QvKD.pack_forget() hVLt.edit_separator() Mkmy = hVLt.get('1.0', lYML.END) Mkmy = map(str, Mkmy.split()) if not wg0u.contains(Mkmy[-1]): wg0u.insert(YKHO.remove_punc(Mkmy[-1]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e0k0(YKHO, GIN8):\n AsCw = YKHO.root\n for G1Hx in GIN8:\n if G1Hx in AsCw.child:\n AsCw = AsCw.child[G1Hx]\n else:\n AsCw.child[G1Hx] = ep_x()\n AsCw = AsCw.child[G1Hx]\n AsCw.isEnd = True", "def e0k0(YKHO, GIN8):\n DpUl = YKHO.root\n for Z9rn in...
[ "0.833775", "0.8337518", "0.8281062", "0.8241015", "0.82100433", "0.8204306", "0.81782717", "0.815861", "0.8121535", "0.80776346", "0.79693544", "0.78432727", "0.7790806", "0.7790502", "0.7787745", "0.77787876", "0.77285063", "0.77069306", "0.7706347", "0.7693062", "0.7691399...
0.0
-1
Acquire a buffer of a particular size. If we've got one in cache, returns it.
def AXe8(b7hB): if b7hB <= G0yF.MAX_BUILDER_SIZE: Fg_i = G0yF.buf if Fg_i is not None: if b7hB <= len(Fg_i): G0yF.buf = None Fg_i[0] = 0 return Fg_i return OUx2.new(f'unsigned char[{b7hB}]')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def osDh(YKHO, zNig, sJDd=True):\n Voci = int(epAf.ceil(zNig / YKHO._page_size))\n zNig = Voci * YKHO._page_size\n yKcO = None\n lY0q = 0\n jMN5 = ''\n while True:\n YKHO._locker.acquire()\n try:\n yKcO = YKHO._allocator.malloc_page(Voci)\n QkC8 = str(YKHO._all...
[ "0.5736923", "0.5689424", "0.5452159", "0.5403151", "0.5398184", "0.5396522", "0.53699315", "0.5344922", "0.52944624", "0.5278125", "0.5264344", "0.52607244", "0.5254927", "0.5236071", "0.523054", "0.52267474", "0.51858824", "0.5182913", "0.5182913", "0.5115811", "0.5110459",...
0.61803746
0
Return whether or not given value is a valid URL.
def yaqE(BWXx): njyT = ZbWC.compile('^(?:http|ftp)s?://(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\.)+(?:[A-Z]{2,6}\\.?|[A-Z0-9-]{2,}\\.?)|localhost|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\[?[A-F0-9]*:[A-F0-9:]+\\]?)(?::\\d+)?(?:/?|[/?]\\S+)$', ZbWC.IGNORECASE) Aofo = njyT.match(BWXx) return bool(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jr1t(BWXx):\n deVW = _FIc.url(BWXx)\n if deVW != True:\n return False", "def jr1t(BWXx):\n deVW = _FIc.url(BWXx)\n if deVW is not True:\n return False", "def MVVt(BWXx):\n BWXx = BWXx.strip()\n if ' ' in BWXx:\n return False\n return bool(Jm6u.match(BWXx))", "def...
[ "0.8945292", "0.89336956", "0.86363506", "0.833403", "0.80891055", "0.8016021", "0.8013145", "0.7976426", "0.7971342", "0.79660726", "0.79437566", "0.7933303", "0.7930985", "0.78874505", "0.7847995", "0.7791371", "0.77582973", "0.7752336", "0.7704198", "0.7695279", "0.7681015...
0.8542149
3
This test should fetch empty cart contents. This test should assert that cart is indeed empty. Also, this test should assert the response code. Which should equal to `200`.
def uXHw(x0hE): raise NotImplemented('Acceptance test failed')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RSDi(YKHO):\n geh0 = YKHO.client.get(YKHO.SHOP_CART_URL)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, 'Your shopping cart is empty.')\n YKHO.assertQuerysetEqual(geh0.context['contents'], [])", "def Wvt2(YKHO):\n wyrL = YKHO.fill_session_cart()\n geh0 = YKHO.client.g...
[ "0.86692333", "0.83612365", "0.81460863", "0.7857268", "0.77408904", "0.75758094", "0.72323555", "0.7111639", "0.6991345", "0.68820786", "0.6834001", "0.67459446", "0.67302716", "0.6667395", "0.6650811", "0.66039854", "0.6566601", "0.6550943", "0.6540767", "0.6537925", "0.652...
0.8059633
3
Returns a data reader of input test data.
def ACLa(YKHO, YoK1, n9OW): ZFNp = [] for bGrB in range(YoK1): g4y1 = {} for mWFP, ROpF in n9OW.items(): g4y1.update({mWFP: oyIN.random.randint(-1, 2, ROpF).astype(oyIN.float32)}) ZFNp.extend([g4y1]) WCTy = Xj2Z(ZFNp) return WCTy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qRim(mWFP, m5Tx=None, yKcO=None, Os4s=None, T0bq=3, zXYK=0.001, cuiw=None, MYjm=None):\n if m5Tx == 'yahoo':\n return k2Bd(symbols=mWFP, start=yKcO, end=Os4s, adjust_price=False, chunksize=25, retry_count=T0bq, pause=zXYK, session=cuiw).read()\n elif m5Tx == 'yahoo-actions':\n return Pvmb(s...
[ "0.64664453", "0.62711567", "0.6268117", "0.62235665", "0.6124419", "0.6077513", "0.6057523", "0.6039861", "0.60373574", "0.59895915", "0.5920952", "0.5863684", "0.58293986", "0.5804447", "0.5798207", "0.57708186", "0.5710802", "0.5684713", "0.5612126", "0.56068283", "0.56005...
0.57777774
15
Constructs an ONNX model containing a single ConvTranspose node, and saves the model to the specified output path.
def YZe9(YKHO, rVZL): FRUf = B0gN.make_tensor_value_info('input', V2As.FLOAT, [1, 1, 7, 7]) aIXl = B0gN.make_tensor_value_info('output', V2As.FLOAT, [1, 1, 8, 8]) kMD5 = B0gN.make_tensor('weight', V2As.FLOAT, [1, 1, 2, 2], [1.0, 1.0, 1.0, 1.0]) LHFl = B0gN.make_tensor('bias', V2As.FLOAT, [1], [0.17]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLcZ(YKHO, C3ST: nn.Module, CrBO: torch.Tensor):\n bGrB, pmON = gbPf.mkstemp()\n try:\n ht2j.onnx.export(C3ST, CrBO, pmON, verbose=True)\n with open(pmON, 'rb') as Gcbu:\n RZTx = Gcbu.read()\n except Exception as e:\n RZTx = None\n print(f'Error occurred: {tTpl}\...
[ "0.6432265", "0.6071627", "0.6050657", "0.5938958", "0.5919945", "0.5811057", "0.57478637", "0.56945294", "0.5687591", "0.56267476", "0.55953103", "0.5580114", "0.557387", "0.5570985", "0.5559052", "0.55586994", "0.55422646", "0.5495592", "0.5473051", "0.54601747", "0.536238"...
0.81432015
0
Find the spacing for a row number
def lrMp(YKHO, rdlD, mJZc, gpgb): return gpgb / (len(mJZc[rdlD]) + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uNZg(YKHO) -> tuple:\n bEXe = [zFiD[0] * (YKHO.get_picture().get_size()[0] / 2) + zFiD[1] for zFiD in YKHO.lines]\n eFr6 = sorted([bEXe[YRbF] - bEXe[YRbF - 1] for YRbF in range(1, len(bEXe))])\n hTGX = eFr6[len(eFr6) // 2]\n return hTGX", "def u8ss(YKHO, C5WR, E99n):\n return 0", "def s7DX(Y...
[ "0.69096696", "0.6384748", "0.6254906", "0.60232013", "0.5978723", "0.5932838", "0.58801854", "0.58661723", "0.58081794", "0.57250667", "0.5710119", "0.5703703", "0.56816995", "0.56480587", "0.5641308", "0.5635114", "0.56308746", "0.56238216", "0.56198883", "0.56056", "0.5604...
0.76282686
0
Get the input layers in order
def _Tny(YKHO, fKMN): return [lzjZ for lzjZ in YKHO.input_bank_order if lzjZ in fKMN]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vKhw(YKHO):\n return YKHO._layers", "def Schy(YKHO, gEmA):\n if YKHO._is_functional_model(YKHO.model):\n ThE1 = gEmA['inbound_nodes']\n return [qoLw[0] for qoLw in ThE1[0]]\n else:\n fhcK = YKHO._config['layers']\n YRbF = fhcK.index(gEmA)\n if YRbF == 0:\n ...
[ "0.7197633", "0.69969034", "0.6969171", "0.68873334", "0.6871849", "0.6864357", "0.67285705", "0.66489995", "0.66415143", "0.65711105", "0.6509601", "0.6439614", "0.6404326", "0.6333879", "0.63297206", "0.6326694", "0.63065046", "0.625705", "0.6254661", "0.62529874", "0.62281...
0.72805643
0
Initializes the blocks at the discrete grid of blocks, representatives of the character.
def vt72(YKHO): u54L = YKHO.physics.len_blocks mawX = x7Ls(lNLu(YKHO.rpos.x, YKHO.rpos.y), lNLu(YKHO.rpos.x + u54L, YKHO.rpos.y + u54L)) YKHO.rects.append(mawX) YKHO.physics.add_block(mawX, YKHO.stype)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vt72(YKHO):\n u54L = YKHO.physics.len_blocks\n mawX = x7Ls(YKHO.rpos, YKHO.rpos + lNLu(u54L, u54L))\n YKHO.rects.append(mawX)\n YKHO.physics.add_block(mawX, 'bomberman')", "def qLsZ(YKHO) -> None:\n for YRbF in range(YKHO.grid_size[0]):\n for r845 in range(YKHO.grid_size[1]):\n ...
[ "0.70875365", "0.7000485", "0.68156326", "0.6767118", "0.6639368", "0.66042787", "0.6536832", "0.63887024", "0.6330122", "0.62875104", "0.62067527", "0.6200331", "0.61686856", "0.61663455", "0.61608684", "0.6135693", "0.6131745", "0.6130611", "0.6124941", "0.6099519", "0.6098...
0.69526136
2
Test that when user unchecks some of the scopes the token is issued with the checked scopes only.
def KjaF(YKHO): YKHO._create_user('anna', '123456') vHfN = YKHO._create_capability('Capability A', []) WdaF = YKHO._create_capability('Capability B', []) SCWY = YKHO._create_application('an app', grant_type=m36K.GRANT_AUTHORIZATION_CODE, redirect_uris='http://example.it') SCWY.scope.add(vHfN, WdaF) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjwJ(YKHO):\n YKHO.basic_login()\n TMwk = YKHO.cassette_name('remove_scopes')\n with YKHO.recorder.use_cassette(TMwk):\n Jpbe = YKHO.gh.authorize(username=YKHO.user, password=YKHO.password, scopes=['gist', 'user', 'public_repo'], note='testing github3.py')\n assert isinstance(Jpbe, N2Yd....
[ "0.6450823", "0.6244965", "0.6242748", "0.6150639", "0.60488254", "0.5905029", "0.5891297", "0.5836062", "0.5710077", "0.56743044", "0.56611335", "0.56488514", "0.5634179", "0.5590344", "0.5577032", "0.54995817", "0.5486316", "0.5469917", "0.544634", "0.54316676", "0.5406259"...
0.6108017
4
Test authorization related to different, beneficiary "share_demographic_scopes", application.require_demographic_scopes, and requested scopes values. The "VIEW_OAUTH2_SCOPES_TEST_CASES" dictionary of test cases for the different values is used.
def ofIB(YKHO): YKHO._create_user('anna', '123456') SCWY = YKHO._create_application('an app', grant_type=m36K.GRANT_AUTHORIZATION_CODE, redirect_uris='http://example.it') vHfN = YKHO._create_capability('Capability A', []) WdaF = YKHO._create_capability('Capability B', []) SCWY.scope.add(vHfN, WdaF) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F5kl(YKHO):\n VbKG = T58V()\n YKHO.client.login(VbKG.email)\n YKHO.assertTrue(H_F0(VbKG))\n YKHO.assertFalse(YyKC(VbKG))\n _IkS = [gxEw('wl_applications:enter_conditions', args=[YKHO.application.pk]), gxEw('wl_applications:enter_conditions_assessor', args=[YKHO.application.pk, YKHO.assessment.pk...
[ "0.61260533", "0.59650105", "0.59547234", "0.5871457", "0.57039833", "0.5693247", "0.5666599", "0.5623782", "0.5566544", "0.5537858", "0.5505194", "0.54915684", "0.5468904", "0.546036", "0.5449884", "0.5425313", "0.53948027", "0.5386263", "0.53741294", "0.53556746", "0.534894...
0.7729871
0
Return a list of campaigns.
def NMoC(YKHO): xDcj = Glze.query return (roPg(Glze.__tablename__, xDcj, YKHO.schema), qed_.OK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rx1_(YKHO, **B2fa) -> PQ7K:\n return YKHO._request(B2fa.pop('path'), params=B2fa)", "def YA1h(YKHO, qoqK=0, vgXP=0):\n bo34.info('Function call: get_list_of_campaigns')\n return YKHO.__handle_result(YKHO.__send_request('campaigns', 'GET', {'limit': qoqK or 0, 'offset': vgXP or 0}))", "def tUhU(YKH...
[ "0.8337779", "0.82184273", "0.802648", "0.7846518", "0.78249216", "0.7703851", "0.7462576", "0.73897094", "0.72668624", "0.7219239", "0.71732503", "0.7154105", "0.66930544", "0.66249907", "0.6618477", "0.64489293", "0.62438524", "0.62408686", "0.62371016", "0.61986697", "0.61...
0.69809026
12
Return the campaign with the given id. The id in this case is the mailchimp id for the campaign.
def NMoC(YKHO, _j1c): j4i0 = Glze.query.filter_by(mailchimp_id=_j1c).first() if j4i0 is None: return ({'message': 'Campaign could not be found.'}, qed_.NOT_FOUND) return (YKHO.schema.dump(j4i0), qed_.OK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xeky(YKHO, _j1c: str) -> dict:\n return YKHO.http_request('GET', f'/campaign/{_j1c}')", "def Ri_V(YKHO, id):\n bo34.info('Function call: get_campaign_info from: {}'.format(id))\n return YKHO.__handle_error('Empty campaign id') if not id else YKHO.__handle_result(YKHO.__send_request('campaigns/{}'.fo...
[ "0.81772023", "0.7734692", "0.7314094", "0.7238", "0.7116823", "0.7004171", "0.69258183", "0.6845276", "0.6778696", "0.65816367", "0.65385413", "0.6459682", "0.624268", "0.622983", "0.6138636", "0.60859853", "0.59823877", "0.59127486", "0.58494455", "0.58261406", "0.5817465",...
0.7899279
1
Gets the id of this CallListItem.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def ht7m(YKHO):\n return YKHO._item_id", "def id(YKHO) -> ...
[ "0.66965383", "0.66965383", "0.66965383", "0.66965383", "0.66965383", "0.66965383", "0.66951835", "0.66813904", "0.66813904", "0.66813904", "0.66813904", "0.66813904", "0.66813904", "0.66813904", "0.66813904", "0.66813904", "0.66813904", "0.66813904", "0.66813904", "0.66813904"...
0.6610813
90
Sets the id of this CallListItem.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.__id = id", "def ekm0(YKHO, id):\n YKHO._id = id\n return YKHO.callRemote('setID', id)", "def id(YKHO, id):\n if id is None:\...
[ "0.70275354", "0.7002776", "0.68936", "0.68798953", "0.6758317", "0.6626925", "0.6626925", "0.6626925", "0.65732664", "0.6535122", "0.6535122", "0.6535122", "0.6535122", "0.6535122", "0.6535122", "0.6535122", "0.6535122", "0.6535122", "0.6535122", "0.6535122", "0.6535122", ...
0.6425514
51
Gets the ticket_id of this CallListItem.
def cZez(YKHO): return YKHO._ticket_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tl1c(YKHO):\n return YKHO._thread_id", "def b2mu(YKHO):\n return YKHO._team_id", "def IleC(YKHO):\n R9RA = JvwA.Hashids(salt=YKHO.config.idSalt, alphabet=YKHO.config.idAlphabet, min_length=YKHO.config.idMinLength)\n if YKHO.parsed['X-Jicket-HashID'] is not None:\n YKHO.tickethash = YKHO....
[ "0.58206487", "0.5809294", "0.5651373", "0.5638327", "0.5601449", "0.5556359", "0.5525525", "0.5525525", "0.5525525", "0.5525525", "0.5525525", "0.5525525", "0.5525525", "0.5525525", "0.5525525", "0.5525525", "0.5525525", "0.5525525", "0.5525525", "0.5525525", "0.5525525", ...
0.76246595
0
Sets the ticket_id of this CallListItem.
def cZez(YKHO, cZez): YKHO._ticket_id = cZez
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4O0(YKHO, YXSb: str) -> None:\n na1r.info(f'Setting ticket to {YXSb}')\n YKHO.ticket = YXSb", "def cZez(YKHO):\n return YKHO._ticket_id", "def b2mu(YKHO, b2mu):\n YKHO._team_id = b2mu", "def b2mu(YKHO, b2mu):\n YKHO._team_id = b2mu", "def b2mu(YKHO, b2mu):\n YKHO._team_id = b2mu", ...
[ "0.67271", "0.6194996", "0.5853419", "0.5853419", "0.5853419", "0.5853419", "0.58381265", "0.58381265", "0.58381265", "0.5419474", "0.5419474", "0.54041475", "0.5318585", "0.5286626", "0.5234258", "0.52304024", "0.522067", "0.520685", "0.5187011", "0.5141225", "0.51128846", ...
0.78924155
0
Gets the type of this CallListItem. I incoming, O outgoing, T internal
def type(YKHO): return YKHO._type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YwLH(YKHO):\n return YKHO.type", "def jAyP(YKHO, ZfUD):\n return ZfUD.GetType()", "def YwLH(YKHO):\n return YKHO.type_", "def YwLH(YKHO):\n return YKHO.type", "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO):\n return YKHO.type", "def YwLH(YKHO):\n return YKHO._type", "d...
[ "0.6867277", "0.68127507", "0.6795744", "0.6773241", "0.6771774", "0.6771774", "0.67694676", "0.6757262", "0.67342013", "0.67342013", "0.6701821", "0.6685534", "0.6601195", "0.6601195", "0.6514379", "0.6485629", "0.64425886", "0.6348494", "0.6319774", "0.63032454", "0.6297438...
0.6497407
27
Sets the type of this CallListItem. I incoming, O outgoing, T internal
def type(YKHO, type): BbPm = ['I', 'O', 'T'] if type not in BbPm: raise ValueError('Invalid value for `type`, must be one of {0}'.format(BbPm)) YKHO._type = type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TG_K(YKHO, type):\n YKHO.type = type", "def TG_K(YKHO, type):\n YKHO.type = type", "def TG_K(YKHO, type):\n YKHO._type = type", "def Q7_x(YKHO, YsUp):\n YKHO._type = YsUp", "def type(YKHO, type):\n YKHO._type = type", "def type(YKHO, type):\n YKHO._type = type", "def type(YKHO, ty...
[ "0.7076085", "0.7076085", "0.69701076", "0.6866162", "0.6830501", "0.6830501", "0.6791703", "0.6791703", "0.6791703", "0.6791703", "0.6791703", "0.6791703", "0.6791703", "0.6791703", "0.6791703", "0.6791703", "0.6791703", "0.6791703", "0.6791703", "0.6791703", "0.6791703", ...
0.6271223
44
Gets the from_number of this CallListItem.
def ezkL(YKHO): return YKHO._from_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jtrH(YKHO):\n return YKHO.get_parameter.get('from')", "def SDM0(YKHO):\n return YKHO._from", "def jtrH(YKHO, nPrm):\n HZHS = nPrm['from'][0]\n return HZHS", "def eKGX(YKHO):\n eKGX = -1\n try:\n if YKHO.lnk.type == DfJG.CHARSPAN:\n eKGX = YKHO.lnk.data[0]\n except A...
[ "0.65277725", "0.61697054", "0.6097581", "0.58500445", "0.56161535", "0.55913126", "0.55899906", "0.55899906", "0.55899906", "0.55599827", "0.5530862", "0.54601836", "0.5451157", "0.53867257", "0.53566575", "0.53566575", "0.53566575", "0.5326995", "0.5300137", "0.52618486", "...
0.6132567
2
Sets the from_number of this CallListItem.
def ezkL(YKHO, ezkL): YKHO._from_number = ezkL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def haVx(YKHO, haVx):\n if haVx is None:\n raise ValueError('Invalid value for `_from`, must not be `None`')\n YKHO.__from = haVx", "def ljfJ(YKHO, ljfJ):\n YKHO._date_from = ljfJ", "def mhv2(YKHO, mhv2):\n YKHO._token_id_from = mhv2", "def JT5y(YKHO, JT5y: 'str'):\n YKHO._attrs['fromNa...
[ "0.64902705", "0.63472265", "0.61758995", "0.6079123", "0.6079123", "0.6059055", "0.6059055", "0.6059055", "0.6059055", "0.6001933", "0.59535944", "0.56794274", "0.5661566", "0.5525257", "0.54113543", "0.54113543", "0.54113543", "0.54113543", "0.536335", "0.5362561", "0.53401...
0.7612102
0
Gets the from_name of this CallListItem.
def JT5y(YKHO): return YKHO._from_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JT5y(YKHO) -> 'str':\n return YKHO._attrs.get('fromName')", "def JT5y(YKHO) -> 'str':\n return YKHO._attrs.get('fromName')", "def JT5y(YKHO):\n return YKHO.getattr('from_name')", "def jtrH(YKHO):\n return YKHO.get_parameter.get('from')", "def ifCF(YKHO):\n return YKHO.getattr('from')", ...
[ "0.73137546", "0.73137546", "0.68412054", "0.65898836", "0.61578804", "0.61086017", "0.6094609", "0.6094609", "0.6094609", "0.6002164", "0.59960425", "0.59960425", "0.59687537", "0.5885989", "0.5883376", "0.57759666", "0.57759666", "0.57759666", "0.5707007", "0.5676105", "0.5...
0.6725211
3
Sets the from_name of this CallListItem.
def JT5y(YKHO, JT5y): YKHO._from_name = JT5y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JT5y(YKHO, JT5y: 'str'):\n YKHO._attrs['fromName'] = JT5y", "def JT5y(YKHO, JT5y: 'str'):\n YKHO._attrs['fromName'] = JT5y", "def haVx(YKHO, haVx):\n if haVx is None:\n raise ValueError('Invalid value for `_from`, must not be `None`')\n YKHO.__from = haVx", "def Dbo5(YKHO, icTz):\n ...
[ "0.78088856", "0.78088856", "0.6536223", "0.64234585", "0.6289965", "0.6217999", "0.6217999", "0.6217999", "0.6217999", "0.61273193", "0.61273193", "0.58992255", "0.585353", "0.58121794", "0.577343", "0.5620639", "0.5591383", "0.5461444", "0.5441158", "0.53775233", "0.5312694...
0.76628995
2
Gets the to_number of this CallListItem.
def plSv(YKHO): return YKHO._to_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiDz(YKHO, nPrm):\n Br5Q = nPrm['to'][0]\n return Br5Q", "def SiDz(YKHO):\n return YKHO.get_parameter('to')", "def Ljn1(YKHO) -> Ug4N:\n return YKHO._transport_call_sequence_number", "def JSoq(YKHO):\n return YKHO._phone_number", "def D7lp(YKHO):\n return YKHO._bill_to", "def FGW3(Y...
[ "0.63942033", "0.63177234", "0.6094486", "0.59933895", "0.5960944", "0.5931038", "0.5836664", "0.582135", "0.5653289", "0.5622817", "0.5575106", "0.55303836", "0.55275184", "0.54932183", "0.54932183", "0.54932183", "0.5464536", "0.54602724", "0.54514515", "0.5424262", "0.5416...
0.47821584
70
Gets the to_name of this CallListItem.
def yZiV(YKHO): return YKHO._to_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n mWFP = YKHO.__telegram_info.message.from_user.name\n return mWFP[0].upper() + mWFP[1:]", "def bKAt(YKHO) -> str:\n return qe4Y.get(YKHO, 'contact_name')", "def SiDz(YKHO):\n return YKHO.get_parameter('to')", "def zAg0(YKHO):\n return YKHO.receiver_name", "def zAg0(YKHO):\n ...
[ "0.6330516", "0.630748", "0.6202558", "0.6124209", "0.6124209", "0.6104552", "0.6037653", "0.5997362", "0.59755284", "0.59741443", "0.5965222", "0.59368575", "0.59270173", "0.5890599", "0.5865212", "0.5822439", "0.5819699", "0.5819699", "0.5808778", "0.5808778", "0.57872623",...
0.6500618
0
Gets the via_number of this CallListItem.
def plT3(YKHO): return YKHO._via_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JSoq(YKHO):\n return YKHO._phone_number", "def Ljn1(YKHO) -> Ug4N:\n return YKHO._transport_call_sequence_number", "def FGW3(YKHO):\n return str(YKHO._phone)", "def bWtk(YKHO):\n return YKHO._phone", "def bWtk(YKHO):\n return YKHO._phone", "def bWtk(YKHO):\n return YKHO._phone", "...
[ "0.60675365", "0.5854985", "0.57744956", "0.5732639", "0.5732639", "0.5732639", "0.57245046", "0.5723318", "0.55629283", "0.55443054", "0.55060726", "0.548749", "0.5459082", "0.5436846", "0.5431167", "0.5426473", "0.5360146", "0.5348311", "0.53114325", "0.5300232", "0.5295063...
0.6369222
0
Gets the date_created of this CallListItem.
def JjkJ(YKHO): return YKHO._date_created
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a0GP(YKHO):\n return YKHO._created_date", "def a0GP(YKHO):\n return YKHO._created_date", "def JjkJ(YKHO) -> qcWV:\n return YKHO._date_created", "def JjkJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'date_created')", "def sNKb(YKHO):\n return str(YKHO.datecreated)", "def qL1h(YKHO) -> str:\n ...
[ "0.78299934", "0.78299934", "0.777951", "0.7599143", "0.7549592", "0.7330967", "0.72599846", "0.7246369", "0.7224562", "0.7224562", "0.7224562", "0.714797", "0.70896244", "0.7082229", "0.7082229", "0.70676786", "0.7039554", "0.70296186", "0.70048314", "0.697786", "0.697786", ...
0.78931427
1
Gets the date_answered of this CallListItem.
def b_0O(YKHO): return YKHO._date_answered
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b_0O(YKHO, b_0O):\n YKHO._date_answered = b_0O", "def slWZ(YKHO):\n return YKHO.date", "def slWZ(YKHO):\n return YKHO.date", "def slWZ(YKHO):\n return YKHO.date", "def slWZ(YKHO):\n return YKHO.date", "def _c1T(YKHO):\n return YKHO._date", "def _c1T(YKHO):\n return YKHO._date",...
[ "0.6941474", "0.59940416", "0.59940416", "0.59940416", "0.59940416", "0.5990774", "0.5960328", "0.5960328", "0.5960328", "0.59554875", "0.5916211", "0.58603734", "0.58173716", "0.559049", "0.5579556", "0.55514914", "0.55514914", "0.55514914", "0.55182767", "0.54777294", "0.54...
0.8389939
0
Sets the date_answered of this CallListItem.
def b_0O(YKHO, b_0O): YKHO._date_answered = b_0O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b_0O(YKHO):\n return YKHO._date_answered", "def ZbYP(YKHO, ZbYP):\n YKHO._selected_date = ZbYP", "def wjGx(YKHO, _c1T):\n YKHO.date = _c1T\n return", "def wjGx(YKHO, _c1T):\n YKHO.date = _c1T", "def _c1T(YKHO, _c1T):\n YKHO._date = _c1T", "def _c1T(YKHO, _c1T):\n YKHO._date = _c1...
[ "0.7169455", "0.6099093", "0.6096052", "0.60948527", "0.5960784", "0.59458643", "0.59458643", "0.59458643", "0.59458643", "0.59458643", "0.5860938", "0.5848481", "0.58026487", "0.577827", "0.577827", "0.57484233", "0.5743357", "0.5725496", "0.5725496", "0.5712484", "0.5703133...
0.88456696
0
Gets the date_finished of this CallListItem.
def ft6r(YKHO): return YKHO._date_finished
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MsbF(YKHO):\n return qcWV.datetime.fromtimestamp(YKHO.fields['doneDate'])", "def ft6r(YKHO, ft6r):\n YKHO._date_finished = ft6r", "def lSz9(YKHO):\n return YKHO._time_finished", "def iMnd(YKHO):\n return YKHO.get_t_sect()['datetime_finish']", "def uMv2(YKHO, uMv2):\n YKHO._datefinished =...
[ "0.63933814", "0.6381637", "0.634343", "0.62661165", "0.6139178", "0.6018496", "0.59918374", "0.59918374", "0.59918374", "0.5857004", "0.5857004", "0.58326346", "0.5799961", "0.5768983", "0.5745926", "0.5641909", "0.5601877", "0.5601877", "0.5579959", "0.5557416", "0.553273",...
0.802348
0
Returns true if both objects are equal
def xa14(YKHO, Elif): return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.7961088", "0.7961088", "0.79433626", "0.79303336", "0.7926563", "0.7897525", "0.78826123", "0.78826123", "0.78806067", "0.7872423", "0.7868354", "0.78668815", "0.7825702", "0.7819993", "0.78162885", "0.78078854", "0.78068...
0.79670393
44
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 if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8456063", "0.83918154", "0.8144437", "0.8140196", "0.8132038", "0.8093834", "0.80918837", "0.80918837", "0.80918837", "0.80852824", "0.80852824", "0.807626", "0.807626", "0.80657643" ]
0.0
-1
The name of the resource.
def mWFP(YKHO) -> str: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YJsY(YKHO):\n return YKHO._resource_name", "def mWFP(YKHO):\n return YKHO.raw_resource['name']", "def mWFP(YKHO):\n return YKHO.resource['metadata']['name']", "def kFeU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_name')", "def kFeU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'r...
[ "0.8797532", "0.8770644", "0.8469626", "0.8306927", "0.8306927", "0.8075097", "0.8075097", "0.8075097", "0.8075097", "0.8075097", "0.77082634", "0.76422197" ]
0.0
-1
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.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.76253724", "0.7464884", "0.7464884", "0.7464884", "0.7464884", "0.7464884", "0.7355461", "0...
0.78685683
19
The type of the resource.
def type(YKHO) -> str: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(Emd4):\n pass", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]...
[ "0.8790311", "0.8584338", "0.8584338", "0.8426086", "0.8426086", "0.8426086", "0.8426086", "0.8426086", "0.822566", "0.7959503", "0.7784566", "0.77579516", "0.7718755", "0.7687279", "0.7682253", "0.7670671", "0.76512825", "0.76381993", "0.763588", "0.7635162", "0.7618553", ...
0.7832202
47
Tests whether ``put_terms_of_service_url_into`` is working as intended.
def Zxfr(): for CK9p, muwo, sGEu in ((None, False, {}), ('https://orindance.party/', False, {'terms_of_service_url': 'https://orindance.party/'})): nPrm = YUaY(CK9p, {}, muwo) Qg87.assert_eq(nPrm, sGEu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xlwL(YKHO):\n if not YKHO.url:\n return\n geh0 = YKHO.client.put(YKHO.url, {}, format='json')\n YKHO.assertIn(geh0.status_code, [jGRS.HTTP_405_METHOD_NOT_ALLOWED, jGRS.HTTP_401_UNAUTHORIZED])", "def MatL(YKHO, HK29, xAU6):\n bD7m = YKHO._getURL(HK29, xAU6)\n Oz1B = xAU6['System']\n y...
[ "0.58874404", "0.58609647", "0.5741624", "0.5713708", "0.5700164", "0.5573783", "0.5559801", "0.55180854", "0.5492193", "0.5470215", "0.5457328", "0.54038733", "0.54013985", "0.53937185", "0.53834164", "0.53681314", "0.53631926", "0.53623325", "0.53622884", "0.5342906", "0.53...
0.805514
0
Return True if ptvsd is enabled.
def dsE5(YKHO) -> bool: return YKHO._data[YvB7]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izAW(YKHO):\n return bool(gTEQ('PrlSrvCfg_IsVtdSupported', YKHO.handle))", "def n30Z(YKHO):\n return bool(gTEQ('PrlVmDev_IsEnabled', YKHO.handle))", "def GYIs(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enable_tpu')", "def Kmul(YKHO):\n Mkmy = YKHO.cli('show spanning-tree config')\n return boo...
[ "0.70406586", "0.6777216", "0.6489988", "0.6423801", "0.6340392", "0.6263748", "0.62279993", "0.6220572", "0.6220572", "0.6150328", "0.6132302", "0.6123662", "0.6046996", "0.6022004", "0.6021632", "0.6003074", "0.6003074", "0.6003074", "0.6003074", "0.6003074", "0.6003074", ...
0.0
-1
Set system log level.
def G9jH(YKHO, BWXx: LogLevel) -> None: YKHO._data[jcI9] = BWXx YKHO.modify_log_level()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pcXt(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['logLevel'] = BWXx", "def aQ22(YKHO, ABDL):\n if ABDL == 'info':\n ABDL = G9jH.INFO\n if ABDL == 'debug':\n ABDL = G9jH.DEBUG\n if ABDL == 'error':\n ABDL = G9jH.ERROR\n YKHO._log.setLevel(ABDL)", "def ABDL(YKHO, wiAm)...
[ "0.7574005", "0.74587125", "0.74230707", "0.73990035", "0.7301315", "0.72857887", "0.727972", "0.7241539", "0.7182793", "0.71713084", "0.7165455", "0.71012807", "0.7087825", "0.7064343", "0.70207053", "0.69004536", "0.6897497", "0.6874428", "0.68666625", "0.6852083", "0.68448...
0.650471
36
Return Supervisor data path.
def uy4l(YKHO) -> GkAb: return odKQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i0XC(YKHO):\n raise NotImplementedError", "def TNBq():\n return '..' + Hy7s.sep + 'data' + Hy7s.sep", "def s8df():\n return fHZh[m1hO]", "def YCtt(YKHO):\n return ''", "def FYJz(YKHO) -> GkAb:\n return YKHO.path_supervisor / FO7Z", "def pKv0(YKHO) -> GkAb:\n return YKHO.path_supervi...
[ "0.7532984", "0.7464877", "0.7355922", "0.73048973", "0.7245151", "0.7244039", "0.72311586", "0.7162154", "0.7159068", "0.7000519", "0.69675845", "0.69675714", "0.6962142", "0.6959504", "0.6942586", "0.69159347", "0.69159347", "0.6897409", "0.68914384", "0.680368", "0.6721985...
0.7971628
0
Return Supervisor data path external for Docker.
def R3s0(YKHO) -> PKXz: return PKXz(Hy7s.environ[UGWk])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s8df(mWFP):\n Rf_J = open('config.json').read()\n nPrm = qQXR.loads(Rf_J)\n return Hy7s.path.expanduser(nPrm[mWFP]['data_path'])", "def viRI(YKHO):\n return bt5O.format(o9hJ)", "def TNBq():\n return '..' + Hy7s.sep + 'data' + Hy7s.sep", "def s8df():\n return Hy7s.getcwd() + '/data/'", ...
[ "0.6503076", "0.64918864", "0.6384072", "0.6381124", "0.63731563", "0.6308543", "0.6271308", "0.618402", "0.6174797", "0.6159042", "0.6155917", "0.6141418", "0.6132674", "0.6118175", "0.6113413", "0.60775036", "0.6072097", "0.60714626", "0.6051642", "0.6043977", "0.60285205",...
0.6351083
5
Return config path inside supervisor.
def KlRK(YKHO) -> GkAb: return YKHO.path_supervisor / bt5O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)", "def lTtI():\n return gzes(gCuF.PROJECT_DIR, 'conf', 'eoxserver.conf')", "def S673(GPtr):\n XLMv = GPtr.sections()[0]\n return GkAb(GPtr.get(XLMv, 'path')).expanduser().absolute()", "def Pu3K():\n global args, ConfigPathDefault\n if qIxc.co...
[ "0.73482144", "0.71827084", "0.7102637", "0.7015559", "0.70092297", "0.6979841", "0.69114286", "0.69023687", "0.68887746", "0.681355", "0.6752051", "0.67507976", "0.673824", "0.67243755", "0.6689632", "0.6686329", "0.6685923", "0.66779625", "0.6664221", "0.6628404", "0.662286...
0.65045613
24
Return root Addon data folder.
def FYJz(YKHO) -> GkAb: return YKHO.path_supervisor / FO7Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lCFC():\n return '../data/'", "def xe5l():\n return GkAb(wk5E.config['USER_DIR']) / 'data'", "def uRIH(YKHO):\n return YKHO.get_raw('data_directory')", "def wR32():\n PSbX = './MedData/'\n if not Hy7s.path.isdir(PSbX):\n Hy7s.makedirs(PSbX)\n return PSbX", "def kxHp(YKHO):\n ...
[ "0.7804759", "0.780448", "0.7762616", "0.7634224", "0.7586334", "0.75666666", "0.7536979", "0.75168467", "0.74836075", "0.7480287", "0.7440785", "0.74113214", "0.74068487", "0.73966765", "0.7325237", "0.7311329", "0.7287202", "0.7281683", "0.7267615", "0.7258434", "0.7258434"...
0.7104662
28