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
Test formatting of exception into humanreadable format
def Z4SY(YKHO): def EBap(UHFx=3): if UHFx <= 1: raise Exception('Test Exception') EBap(UHFx - 1) tO9_ = '' try: EBap() except Exception as e: tO9_ = V1sk.format_exception(tTpl) YKHO.assertIn('Test Exception', tO9_) YKHO.assertEqual(2, tO9_.count('rais...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LJIU(YKHO):\n NArs = {'parameter': 'value'}\n try:\n raise ykia(**NArs)\n except ykia as ex:\n tO9_ = ykia.fmt.format(**NArs)\n YKHO.assertEqual(tO9_, str(aTqo))", "def zAzQ(YKHO, XObx, QOe9):\n zXzD = super(tA6_, YKHO)._exc_info_to_string(XObx, QOe9)\n bGrB, BQDi, bGrB = ...
[ "0.7300948", "0.7135011", "0.71286196", "0.70266867", "0.6791393", "0.67771685", "0.6742132", "0.67355853", "0.67179817", "0.6671669", "0.66638535", "0.6615665", "0.6560643", "0.6547606", "0.6536781", "0.65232354", "0.65230525", "0.6498636", "0.64734787", "0.6459794", "0.6449...
0.6907401
4
The size of the room in world coordinates.
def ey9h(YKHO) -> oyIN.ndarray: return YKHO.room[:, 1] - YKHO.room[:, 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aDYX(YKHO) -> int:\n return YKHO._world_size", "def OZRt() -> int:\n return zaAz().world_size", "def OZRt(YKHO) -> lJMi:\n if YKHO._world is None:\n return (0, 0)\n return (YKHO._world.get_width(), YKHO._world.get_height())", "def jiw9():\n if pImw.is_available() and pImw.is_initial...
[ "0.8248827", "0.76704496", "0.7641236", "0.7506451", "0.7455417", "0.7449496", "0.72678775", "0.7107625", "0.7107625", "0.7106726", "0.7104494", "0.7035082", "0.7033831", "0.70164025", "0.70031196", "0.7000379", "0.6990478", "0.6975454", "0.69701165", "0.69701165", "0.6970116...
0.7542325
3
Return true if the tree contains the given symbol. This is intended only for testing.
def sjXf(YKHO, o61b=None, BWXx=None): def ue_N(exwG): OfLP = o61b is None or exwG.symbol == o61b Y8jZ = BWXx is None or exwG.value == BWXx return OfLP and Y8jZ for Q6kx in YKHO.walk(): if ue_N(Q6kx): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjXf(YKHO, o61b):\n if o61b in YKHO.symbol_table:\n return True\n else:\n return False", "def sjXf(YKHO, o61b) -> bool:\n return True if o61b in YKHO.symtable.keys() else False", "def szOC(YKHO, o61b):\n return o61b in YKHO.symbolDict", "def sjXf(YKHO, o61b):\n return o61b in...
[ "0.8355327", "0.8242088", "0.81937087", "0.8184254", "0.7817678", "0.7793932", "0.7751894", "0.76994526", "0.7662391", "0.7201551", "0.70591044", "0.6998064", "0.6881341", "0.6866224", "0.6719736", "0.66816676", "0.66052955", "0.658569", "0.6579923", "0.6513787", "0.65013367"...
0.74084044
10
Get number of sides
def En0e(YKHO): return YKHO.attrs.sides
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZDT(YKHO):\n return YKHO._n_sides", "def ymGK(YKHO):\n return YKHO.sides", "def BA7i(YKHO):\n return YKHO._sides", "def BA7i(YKHO):\n return YKHO._sides", "def Svbo(YKHO):\n UHFx = 0\n for HEZd in YKHO.sides:\n if HEZd.isBlank():\n UHFx += 1\n return UHFx", "de...
[ "0.84889257", "0.84724444", "0.7431894", "0.7431894", "0.7393547", "0.7393547", "0.735491", "0.73391443", "0.73242974", "0.7324107", "0.72632045", "0.72632045", "0.7183815", "0.71537817", "0.7143055", "0.71029145", "0.7073526", "0.7060673", "0.70200396", "0.6926065", "0.67810...
0.6910789
20
Returns True if an environment is currently loaded into the class.
def sSEV(YKHO): return YKHO.env is not None and YKHO.scenario is not None and (YKHO.world is not None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAYn(YKHO):\n return YKHO.name in HwRy.modules", "def qPgS(YKHO):\n return YKHO.status == TSp9.LOADED", "def sAYn(YKHO):\n return bool(YKHO.inspect())", "def sAYn(YKHO):\n return bool(YKHO.inspect())", "def GikI(YKHO) -> bool:\n return qe4Y.get(YKHO, 'environment')", "def GikI(YKHO) ->...
[ "0.7465583", "0.720469", "0.71304625", "0.71304625", "0.7073303", "0.7073303", "0.7073303", "0.690699", "0.6869268", "0.68491405", "0.68021", "0.6783459", "0.6750965", "0.6705544", "0.6651672", "0.66404754", "0.66156423", "0.6571588", "0.6566883", "0.65328574", "0.6525606", ...
0.7608528
0
>>> n = None >>> o = typing.Optional[int] >>> l = typing.List[int] >>> d = typing.Dict[int,str] >>> t3 = typing.Tuple[int,str,float] >>> t1 = typing.Tuple[int] >>> x=is_list >>> x(n), x(o),x(l), x(d), x(t3), x(t1) (False, False, True, False, False, False) >>>
def Lm1b(a1PO, qIxc=None): return cb_p(laHg.List, a1PO, qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lgDw(aDxC, vy92):\n vC9B, a1PO = vy92\n vC9B.append(None)\n qIxc = a1PO.__args__\n if qIxc and qIxc[0] not in (ImMB, QMSQ, str, h8nf):\n with cR0t(TypeError):\n aDxC.structure(vC9B, a1PO)\n EsPC = h8nf[qIxc[0]]\n a1PO.__args__ = (EsPC,)\n DwRD = aDxC.structure(vC9B, a1PO)...
[ "0.6170087", "0.5822746", "0.5822746", "0.5818217", "0.5721561", "0.57070804", "0.5531557", "0.5498225", "0.5493133", "0.5434409", "0.5403798", "0.5366787", "0.5336064", "0.53358215", "0.53165513", "0.5291274", "0.5272398", "0.5260449", "0.52545583", "0.524919", "0.5248953", ...
0.55728483
6
>>> is_classvar(typing.ClassVar[int]) True >>> is_classvar(int) False
def XUqg(a1PO): return wkRU(a1PO) and str(a1PO).startswith('typing.ClassVar[')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XUqg(YKHO) -> bool:\n if Wkq0(YKHO.annotation) is _DvC:\n return True\n else:\n return False", "def PgFW(ICn2: Type) -> bool:\n return isinstance(ICn2, tnwy)", "def eHU9(SRYB, KndY):\n for CQwJ in KndY:\n if isinstance(SRYB, CQwJ):\n return True\n return False...
[ "0.8040323", "0.7012028", "0.69837624", "0.6848506", "0.6646456", "0.66405016", "0.6630695", "0.65271175", "0.6503591", "0.650359", "0.644743", "0.6388386", "0.6388386", "0.6318016", "0.6253452", "0.6184682", "0.6177452", "0.61456037", "0.61456037", "0.61261654", "0.61238396"...
0.90697175
0
Compute number of insertions deletions, and substitutions for an optimal alignment. There may be more than one, in which case we disfavor substitution. >>> print levenshtein_ids('sitting', 'kitten') (1, 0, 2) >>> print levenshtein_ids('banat', 'banap') (0, 0, 1) >>> print levenshtein_ids('Saturday', 'Sunday') (2, 0, 1)
def IJEk(k0lF, tjUW, xBQY=1, bXUn=1, Ljbb=1): if len(k0lF) == len(tjUW) and k0lF == tjUW: return (0, 0, 0) if len(tjUW) > len(k0lF): k0lF, tjUW = (tjUW, k0lF) if len(k0lF) == 0: return len(tjUW) else: return Ffia(k0lF, tjUW, xBQY, bXUn, Ljbb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ffia(k0lF, tjUW, xBQY, bXUn, Ljbb):\n lWPh = qKJ5(k0lF, tjUW, xBQY, bXUn, Ljbb)\n YRbF = len(k0lF)\n r845 = len(tjUW)\n ML6y = 0\n _wi4 = 0\n YW1M = 0\n while True:\n if YRbF > 0:\n if r845 > 0:\n if lWPh[YRbF - 1][r845] <= lWPh[YRbF][r845 - 1]:\n ...
[ "0.70041394", "0.6755131", "0.65459865", "0.63127583", "0.62442714", "0.62167776", "0.6096809", "0.6075543", "0.60691553", "0.605396", "0.6025866", "0.6025555", "0.6018814", "0.5983171", "0.5959272", "0.5917267", "0.5907461", "0.58835584", "0.58802104", "0.5870639", "0.586587...
0.68691134
1
Count the max number of location candidates / tokens / sentences in the dataset. This is just an auxiliary function and is not actually used in the model, because all instances are padded to the longest sequence in the certain batch, rather than the whole dataset.
def Py0a(): def UlWi(wM3v): global max_num_candidates global max_num_tokens global max_num_sents nPrm = qQXR.load(open(wM3v, 'r', encoding='utf-8')) print('number of instances: ', len(nPrm)) for KAOR in nPrm: b9k4 = KAOR['total_loc_candidates'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uceS(YKHO):\n return max([len(WKvO) for WKvO in YKHO.labels])", "def btFh(YKHO):\n UHFx = 0\n\n def Rk5C(yAmx, CtWL, KLk8, H_so, UHFx):\n DumB = yAmx.strip().split()\n if len(DumB) > KLk8:\n KLk8 = len(DumB)\n H_so = DumB\n for GIN8 in DumB:\n if...
[ "0.6502114", "0.6329165", "0.6267212", "0.6183902", "0.6176618", "0.61443335", "0.61442876", "0.61133796", "0.610826", "0.6092906", "0.6030444", "0.59908885", "0.5987685", "0.598715", "0.59851706", "0.59807515", "0.59628284", "0.5961866", "0.5950246", "0.5950246", "0.59497905...
0.6813665
0
Remove padded elements from a list
def watX(JZXy: List[int], KHPh: int) -> x1iM[int]: return [WKvO for WKvO in JZXy if WKvO != KHPh]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YGrC(YKHO, id_0):\n H5Km = []\n H5Km.extend(id_0)\n while len(H5Km) < S8xo:\n H5Km.append(None)\n return H5Km", "def RDmC(list):\n try:\n while 1:\n list.remove('')\n except ValueError:\n return list", "def _3qc(list, CTeo, u54L):\n xpKn = []\n for Zf...
[ "0.71543866", "0.6945378", "0.6917403", "0.68105245", "0.6798756", "0.6685858", "0.6596632", "0.65377164", "0.65291303", "0.64601785", "0.6453862", "0.6428026", "0.63785577", "0.6377106", "0.63331974", "0.6297665", "0.62153393", "0.6201132", "0.61972797", "0.61946714", "0.618...
0.73317885
0
Wraps a passed object into a list in case it has not been a list, tuple before. Returns an empty list in case ``obj`` is None.
def YYDj(YEnM): if YEnM is None: return [] return YEnM if isinstance(YEnM, (list, tuple)) else [YEnM]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FKMq(YEnM: List) -> x1iM:\n if not isinstance(YEnM, list):\n return [YEnM]\n return YEnM", "def YYDj(YEnM):\n if isinstance(YEnM, list):\n return YEnM\n elif isinstance(YEnM, tuple):\n return list(YEnM)\n else:\n return [YEnM]", "def MdLO(YEnM):\n if YEnM is No...
[ "0.8271448", "0.8246364", "0.8121286", "0.8121286", "0.8054853", "0.8050054", "0.8041001", "0.80409384", "0.8001884", "0.80009264", "0.7902823", "0.7853765", "0.77528846", "0.76109284", "0.7500853", "0.74989736", "0.7450837", "0.7429211", "0.72008365", "0.71704626", "0.716118...
0.8522278
0
Returns area of the rectangle
def f0tD(YKHO): return YKHO.width * YKHO.height
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGjA(u54L, TVTK):\n f0tD = u54L * TVTK\n return f0tD", "def sAdl(mawX: np.ndarray) -> float:\n Jw7X = mawX[2] - mawX[0]\n eUWA = mawX[3] - mawX[1]\n return Jw7X * eUWA", "def f0tD(YKHO):\n f0tD = YKHO.__width * YKHO.__height\n return f0tD", "def X8lI(u54L, TVTK):\n return u54L * T...
[ "0.8304269", "0.828367", "0.8259972", "0.82456875", "0.8210207", "0.8198093", "0.81436324", "0.813016", "0.81151104", "0.81151104", "0.81064725", "0.8105732", "0.80883014", "0.80733347", "0.8066786", "0.8066786", "0.8066786", "0.8066786", "0.80664253", "0.80664253", "0.806473...
0.7963728
52
Return action object stored under some key, or None, if such key doesn't point to any existing action.
def NMoC(YKHO, H5ew) -> h8nf[dict]: return YKHO.actions.get(H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMEM(XeOP):\n xASv = {'+': H2v5, '-': wncN, '*': wTxu}\n if XeOP in xASv.keys():\n return xASv[XeOP]\n elif XeOP not in xASv.keys():\n return None", "def AMEM(mWFP):\n mWFP = mWFP.lower().strip()\n for XeOP in Irwn:\n if XeOP.name == mWFP:\n return XeOP\n ret...
[ "0.738879", "0.721748", "0.71855664", "0.71705043", "0.71653247", "0.7148614", "0.71313494", "0.70233214", "0.6923403", "0.6895756", "0.67743206", "0.6760522", "0.6753731", "0.6722896", "0.67221683", "0.67221683", "0.66860074", "0.6679471", "0.6675648", "0.66746634", "0.66746...
0.7501822
0
Extend a 1D signal using a given boundary mode. Like numpy.pad but supports all PyWavelets boundary modes.
def hVLt(WKvO, UaUs, Tuqy): if oyIN.isscalar(UaUs): UaUs = (UaUs, UaUs) if WKvO.ndim > 1: raise ValueError('This padding function is only for 1D signals.') if Tuqy in ['symmetric', 'reflect']: fsgT = oyIN.pad(WKvO, UaUs, mode=Tuqy) elif Tuqy in ['periodic', 'periodization']: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AeBf(YKHO, Jw7X, eUWA, Tuqy='edge'):\n YKHO._array = oyIN.pad(YKHO.load().array(), ((eUWA, eUWA), (Jw7X, Jw7X), (0, 0)) if YKHO.load().array().ndim == 3 else ((eUWA, eUWA), (Jw7X, Jw7X)), mode=Tuqy)\n return YKHO", "def AeBf(YKHO, Jw7X, eUWA, Tuqy='edge'):\n YKHO._array = oyIN.pad(YKHO.load().array(...
[ "0.6050211", "0.6050211", "0.5763747", "0.5763747", "0.5706989", "0.56497246", "0.56383055", "0.55688137", "0.5537465", "0.55040705", "0.54473436", "0.5372961", "0.53558564", "0.53514636", "0.5254042", "0.52455616", "0.52446085", "0.5238844", "0.51411057", "0.5131585", "0.513...
0.5957768
2
return a list of column where the missing value % is sup to val
def siRz(bOBl, wEf2=0.8): if wEf2 > 1: raise ValueError('val should be inf to 1') gwAu = len(bOBl) * wEf2 ex31 = [YRbF for YRbF, WKvO in bOBl.isnull().sum().iteritems() if WKvO >= gwAu] return ex31
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ydHz(nPrm):\n _YcI = oyIN.product(nPrm.shape)\n _5Jw = nPrm.isnull().sum().sum()\n VqNy = _5Jw / _YcI * 100\n print('====================================')\n print('Percentage of missing value in the dataset is :', '%.2f' % round(VqNy, 2), '%')\n print('\\n=====Missing Values per coloumn=====...
[ "0.6612605", "0.6236616", "0.6215464", "0.6176908", "0.60663134", "0.60621387", "0.6049203", "0.5982962", "0.5924189", "0.5910449", "0.59017926", "0.5889623", "0.5868742", "0.5865143", "0.5752624", "0.5751578", "0.5738028", "0.57050836", "0.5699977", "0.56344277", "0.5619649"...
0.5230258
49
Get a cached value related to this Blockstore bundle/draft.
def NMoC(YKHO, dkLD, WmM4=None): assert isinstance(dkLD, (list, tuple)) UG18 = vRT6(YKHO.bundle_uuid, YKHO.draft_name, dkLD) return wyyA.get(UG18, WmM4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n if YKHO._value is None:\n YKHO._value = YKHO._load()\n return YKHO._value", "def BWXx(YKHO):\n if YKHO._value is None:\n YKHO._value = YKHO._compute_value()\n return YKHO._value", "def T_mo(YKHO):\n return YKHO.cache", "def CdCN(YKHO):\n if YKHO._data is None...
[ "0.6804469", "0.67980003", "0.6712031", "0.66410077", "0.65647435", "0.64933896", "0.6459655", "0.6375833", "0.63641226", "0.63295984", "0.6325507", "0.63181216", "0.6316174", "0.63028675", "0.6297587", "0.62945735", "0.62894624", "0.6280991", "0.6273322", "0.627106", "0.6262...
0.5781476
95
Clear the cache for the specified bundle or draft. This doesn't actually delete keys from the cache, but if the bundle or draft has been modified, this will ensure we use the latest version number, which will change the key prefix used by this cache, causing the old version's keys to become unaddressable and eventually...
def Y7Bk(YKHO): LeuP = 'bundle_version:{}:{}'.format(YKHO.bundle_uuid, YKHO.draft_name or '') wyyA.delete(LeuP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ORNU(PZrZ):\n sjXb = [H5ew for H5ew in wyyA.cache._cache.keys() if H5ew.startswith(PZrZ)]\n wyyA.delete_many(*sjXb)", "def ORNU(YKHO, LEXu=None):\n if LEXu:\n YKHO.cache[LEXu] = {}\n else:\n YKHO.cache = {}", "def ORNU(YKHO):\n YKHO._cache = {}", "def ORNU(YKHO):\n YKHO._c...
[ "0.58159435", "0.57479215", "0.5722258", "0.5722258", "0.57052225", "0.5704886", "0.5700328", "0.5659139", "0.5638613", "0.56125176", "0.5611641", "0.5579283", "0.55616295", "0.555111", "0.5530558", "0.55153847", "0.5513604", "0.5500648", "0.54963", "0.54939985", "0.54912937"...
0.79125744
0
Get the current version number of the specified bundle/draft. If a draft is specified, the update timestamp is used in lieu of a version number.
def PUKb(nNZH, Tdfi=None): LeuP = 'bundle_version:{}:{}'.format(nNZH, Tdfi or '') DpZH = wyyA.get(LeuP) if DpZH is not None: return DpZH else: DpZH = 0 nIVV = AXsh.get_bundle(nNZH) if Tdfi: YFJV = nIVV.drafts.get(Tdfi) if YFJV: nGA0 = AXsh.get_draft(YF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xhfZ(YKHO, mLGw=None):\n return YKHO.version.getVersion(mLGw)", "def k3_d(YKHO):\n id = YKHO.getId()\n FGW3 = id.replace('version_', '')\n return FGW3", "def XkTm(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'revision')", "def XkTm(YKHO) -> int:\n return qe4Y.get(YKHO, 'revision')", "d...
[ "0.65848887", "0.65541846", "0.6493364", "0.6487969", "0.6460647", "0.645113", "0.6395199", "0.6395199", "0.638278", "0.6350362", "0.6350362", "0.63255155", "0.63171846", "0.6309439", "0.6307497", "0.629953", "0.62785226", "0.6276582", "0.6274515", "0.62490165", "0.6241278", ...
0.80891997
0
Initialize the parameters for the multilayer perceptron
def FIMM(YKHO, xlLU, input, _GPj, _LFN, ECMu, qzBL, jXxl, cJwN, AQ_D): eFKZ = hLIC(rng=xlLU, input=input, vocab_size=jXxl, embedding_dimensionality=cJwN, no_embeddings=AQ_D, embeddings=None, activation=ECMu) YKHO.hidden_layers = [eFKZ] Jq9v = eFKZ.n_out pK4Y = eFKZ.output for V06R in _GPj: Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K55i(YKHO):\n YKHO.params = {}\n aPd6 = len(YKHO.layer_dims)\n x4xj = 0.1\n for vC9B in range(1, aPd6):\n MY1T = YKHO.layer_dims[vC9B - 1]\n Fmaf = YKHO.layer_dims[vC9B]\n YKHO.params['W%d' % vC9B] = oyIN.random.randn(MY1T, Fmaf) * x4xj\n assert YKHO.params['W%d' % vC9B]...
[ "0.7563101", "0.74202055", "0.7398131", "0.72895753", "0.7242624", "0.7229054", "0.7199435", "0.7182269", "0.7100938", "0.7088025", "0.70841914", "0.7071097", "0.7049927", "0.70496297", "0.7013583", "0.7010965", "0.6990473", "0.69857866", "0.6983007", "0.6979044", "0.6926819"...
0.0
-1
Return a float representing the number of errors in the minibatch over the total number of examples of the minibatch ; zero one loss over the size of the minibatch
def UAju(YKHO, LVAh): if LVAh.ndim != YKHO.y_pred.ndim: raise TypeError('y should have the same shape as self.y_pred', ('y', LVAh.type, 'y_pred', YKHO.y_pred.type)) if LVAh.dtype.startswith('int'): return Kt_s.mean(Kt_s.neq(YKHO.y_pred, LVAh)) else: raise NotImplementedError('Input o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D_X7(YKHO, HC_i, N77f=None):\n S4QH = 0\n for ajbO, Ei_1 in HC_i:\n DBcx = YKHO.fprop(ajbO)\n if N77f == None:\n S4QH += YKHO.layers[-1].error(Ei_1)\n else:\n S4QH += N77f(DBcx, Ei_1)\n return S4QH", "def vaCT(hlel, UXqs):\n bGrB, PjQx = hlel[0].max(1)\n...
[ "0.67932737", "0.66004866", "0.65850407", "0.647758", "0.64163053", "0.6401963", "0.6350729", "0.6339244", "0.6300028", "0.62360996", "0.6173386", "0.615948", "0.6142651", "0.6137665", "0.61066514", "0.60964704", "0.6093265", "0.60886717", "0.6076848", "0.6076779", "0.6075817...
0.0
-1
Returns the instance in human readable form
def zAg0(YKHO): return 'Name: %s\nCode: %s\ntoEuroRate: %s\nfromEuroRate: %s' % (YKHO.Name, YKHO.Code, YKHO.toEuroRate, YKHO.fromEuroRate)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.human_format()", "def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)", "def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)", "def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)", "def zAg0(YKHO):\n ...
[ "0.7854478", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "0.7716782", "...
0.0
-1
Turns the Bluetooth off the android bt garget device.
def Tq0x(YKHO): YKHO.log.info('Turns off the bluetooth') return YKHO.sl4a.bluetoothToggleState(False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zWP7(YKHO):\n return sIxm([YKHO.android_devices[0]])", "def Z_rv(YKHO):\n if YKHO._android:\n YKHO._braviarc.turn_off_command()\n else:\n YKHO._braviarc.turn_off()\n YKHO._state = iKVK", "def rcNM(YKHO):\n YKHO.lcd.backlight = False", "def kgL5(YKHO):\n YKHO.log.info('Fact...
[ "0.75762504", "0.7504485", "0.7090567", "0.70638776", "0.69655037", "0.6963354", "0.69324774", "0.6928736", "0.6913264", "0.68990684", "0.68325347", "0.68299866", "0.68261814", "0.6802242", "0.6796564", "0.6768744", "0.6765149", "0.6751489", "0.6750963", "0.6749038", "0.67436...
0.7865872
0
Stops all services for the pri_ad device.
def W3dL(YKHO): YKHO.log.info('Stops all services on the android bt target device') YKHO._ad.services.stop_all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCyR(YKHO):\n for zVa7 in YKHO._services:\n zVa7.kill()", "def gikg(YKHO):\n if YKHO.adb_logcat_process:\n YKHO.stopAdbLogcat()\n YKHO.stopVtsAgent()\n if YKHO.hal:\n YKHO.hal.CleanUp()", "def vAfD(YKHO):\n for kLw8, rqxJ in YKHO._pool.get_all().items():\n rqxJ['i...
[ "0.74118227", "0.722034", "0.71942204", "0.7135326", "0.7135326", "0.7024593", "0.6987117", "0.6845109", "0.6784851", "0.67468315", "0.6484118", "0.6483349", "0.63108265", "0.6249393", "0.6209968", "0.6194108", "0.6044185", "0.60293514", "0.60272795", "0.6001744", "0.599107",...
0.7619481
0
Stops media browser service for avrcp.
def ocfo(YKHO): if YKHO.is_avrcp_ready(): YKHO.log.info('Stops avrcp connection') YKHO.sec_ad.sl4a.bluetoothMediaPhoneSL4AMBSStop() YKHO.avrcp_ready = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aegW(YKHO):\n YKHO._playing = False\n YKHO._braviarc.media_stop()", "def JCyR(YKHO):\n YKHO.media_player.stop()", "async def async_media_stop(YKHO):\n await YKHO.aftv.back()", "async def async_media_stop(YKHO) -> None:\n await YKHO._client.stop()", "def aegW(YKHO):\n YKHO.hass.service...
[ "0.7473006", "0.7430486", "0.73977804", "0.7098539", "0.70402193", "0.6981776", "0.69526297", "0.6912888", "0.67317903", "0.664897", "0.66380787", "0.6592201", "0.6531843", "0.6523861", "0.652114", "0.64978045", "0.64892733", "0.6478264", "0.6435868", "0.6433139", "0.64196813...
0.6560938
12
Return the part of area represented by the white pixels in division, in mask and in image
def LG8C(Yh91: int, WTET: int, v96j): ocOf, yvrg = FFNu(v96j) MS76 = yvrg / (yvrg + ocOf) * 100 sRl2 = yvrg / WTET * 100 um0m = yvrg / (Yh91 + WTET) * 100 return (MS76, sRl2, um0m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V329():\n PQrP = Xxy1.openImage(Othb.getAbsolutePath())\n D8Ke = PQrP.getProcessor().duplicate()\n DHgS = ZHfW(D8Ke, 1, D8Ke.maxValue())\n DHgS.show()\n N8j_ = sqX5(DHgS.getProcessor())\n zv4J = f0tD(DHgS.getProcessor())\n print(N8j_)\n print(zv4J)\n print(N8j_ / zv4J)\n PQrP = Xx...
[ "0.6878601", "0.663619", "0.66006815", "0.65384454", "0.65156066", "0.6445999", "0.642703", "0.64257604", "0.64032257", "0.6379512", "0.63791716", "0.63609374", "0.63141555", "0.6298173", "0.6237972", "0.62097824", "0.61940724", "0.61771244", "0.6142868", "0.61361694", "0.613...
0.63112354
13
Return the value associated with the given key.
def NMoC(YKHO, H5ew: str): H5ew, n8sw = YKHO._process_key(H5ew) for _a0Q in range(YKHO.size): if YKHO.key_list[n8sw] is not None and YKHO.key_list[n8sw][0] == H5ew: return YKHO.value_list[n8sw] else: n8sw = YKHO._increment_hash(n8sw) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, H5ew):\n return YKHO[H5ew]", "def Zmkp(YKHO, H5ew):\n return YKHO[H5ew]", "def NMoC(YKHO, H5ew):\n if YKHO.is_key(H5ew):\n YRbF = YKHO.hash_fun(H5ew)\n return YKHO.values[YRbF]", "def fo50(dict, H5ew):\n return dict[H5ew]", "def NMoC(YKHO, H5ew):\n nPrm, H5ew = Y...
[ "0.8761733", "0.8761733", "0.8120385", "0.8116258", "0.80800015", "0.80748516", "0.8073295", "0.8019088", "0.7946236", "0.7914049", "0.78930354", "0.78730065", "0.7869459", "0.78401756", "0.7816977", "0.7800465", "0.7720167", "0.77131975", "0.7711945", "0.76445895", "0.764286...
0.71592146
85
Flattens a nested list. >>> flatten_list([[1, 2, [3, 4]], [5, 6], 7]) >>> [1, 2, 3, 4, 5, 6, 7]
def GarA(KayY, qnkS=None): if qnkS is None: qnkS = list() for ZfUD in KayY: if isinstance(ZfUD, list): GarA(ZfUD, flattened=qnkS) else: qnkS.append(ZfUD) return qnkS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GarA(lu1l):\n return [ZfUD for XuXy in lu1l for ZfUD in XuXy]", "def GarA(QnQt):\n rm8o = []\n for BDwY in QnQt:\n if isinstance(BDwY, list):\n rm8o.extend(GarA(BDwY))\n else:\n rm8o.append(BDwY)\n return rm8o", "def GarA(IHXE):\n return [ZfUD for XuXy in ...
[ "0.8351051", "0.8263986", "0.8253921", "0.7973619", "0.7952291", "0.79183817", "0.7896003", "0.78779644", "0.7831734", "0.78093505", "0.77707225", "0.7742133", "0.7712855", "0.7708256", "0.77036446", "0.76786584", "0.7664525", "0.76503086", "0.7647068", "0.7634215", "0.763361...
0.8365616
0
Test that the returned cube's metadata matches the template cube.
def DkME(YKHO): Aofo = yjvs().process(YKHO.location_parameter_values, YKHO.scale_parameter_values, YKHO.template_cube) YKHO.assertTrue(Aofo.metadata == YKHO.template_cube.metadata) YKHO.assertTrue(Aofo.name() == YKHO.template_cube.name())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sC1M(YKHO):\n tk32 = YKHO.cube.copy()\n yjvs()._check_template_cube(tk32)\n YKHO.assertEqual(tk32, YKHO.cube)", "def rjJT(QePW, tk32, B2fa, PEg9):\n PEg9 = QePW.getfixturevalue(PEg9)\n t0qN = BsDF(**B2fa)\n for bGrB in range(2):\n Aofo = t0qN.process(tk32)\n assert isinstance(...
[ "0.73571754", "0.66784424", "0.6315076", "0.60662794", "0.60662794", "0.6033461", "0.6029162", "0.6005071", "0.6000567", "0.5963257", "0.5957753", "0.5932786", "0.59022224", "0.587528", "0.5845541", "0.57407665", "0.5699014", "0.56708276", "0.5660348", "0.5655563", "0.5617794...
0.8351718
0
Test that the returned cube does not contain data from the template cube.
def zgph(YKHO): YKHO.template_cube.data = oyIN.ones((3, 3, 3)) Aofo = yjvs().process(YKHO.location_parameter_values, YKHO.scale_parameter_values, YKHO.template_cube) YKHO.assertTrue((Aofo.data != YKHO.template_cube.data).all())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sC1M(YKHO):\n tk32 = YKHO.cube.copy()\n yjvs()._check_template_cube(tk32)\n YKHO.assertEqual(tk32, YKHO.cube)", "def r2PQ(YKHO):\n C2M6 = YKHO._GetCubeMesh('UnassignedCube')\n YKHO._AssertMeshDisplayColorAndOpacity(C2M6)\n C2M6 = YKHO._GetCubeMesh('ShadingGroupNoShader')\n YKHO._AssertMe...
[ "0.7179977", "0.6710977", "0.66817456", "0.62707734", "0.6269527", "0.60273606", "0.5990044", "0.59559715", "0.595439", "0.5952901", "0.5934714", "0.58997464", "0.58781886", "0.5863367", "0.5861798", "0.58092195", "0.57933474", "0.5756735", "0.5747653", "0.5715824", "0.567082...
0.776581
0
Serializes this instance to a Python dictionary.
def MNRr(YKHO): hlel = jth9.deepcopy(YKHO.__dict__) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO) -> dict:\n pass", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def sS6L(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO) -> dict:\n return YKHO.__data__", "def _fYl(YKHO) -> cuzp[str, ImMB]:\n return B4us(YKHO)", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(Y...
[ "0.8867926", "0.8861291", "0.8325109", "0.8323158", "0.8313032", "0.8288802", "0.8288802", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8251281", "0.8234439", "0.8234439", "0.8216978", "...
0.0
-1
Wraps the core BERT model as a keras.Model.
def suj8(i5Cy, qV0r=None, OIWs=None, GPtr=None, mWFP=None, JHly=ZylS.float32): WoPN = nH1G(config=GPtr, float_type=JHly, name=mWFP) o4Jx = WoPN(i5Cy, qV0r, OIWs) LCW7 = ZylS.keras.Model(inputs=[i5Cy, qV0r, OIWs], outputs=o4Jx) return LCW7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LCW7(eyvQ=True):\n G8d9 = vPBo.max_len\n i5Cy = ZylS.keras.layers.Input(shape=(G8d9,), dtype=ZylS.int32, name='input_word_ids')\n qV0r = ZylS.keras.layers.Input(shape=(G8d9,), dtype=ZylS.int32, name='input_mask')\n Uszf = ZylS.keras.layers.Input(shape=(G8d9,), dtype=ZylS.int32, name='all_segment_id...
[ "0.7458707", "0.6917315", "0.6829759", "0.67969024", "0.6776293", "0.67245823", "0.6694195", "0.6656382", "0.6635954", "0.66216505", "0.6485405", "0.64528906", "0.64494455", "0.64391565", "0.6423952", "0.6408876", "0.64072317", "0.6397073", "0.6382244", "0.63810956", "0.63764...
0.6865777
2
Wraps the core BERT model as a keras.Model.
def QT2D(i5Cy, qV0r=None, OIWs=None, BkS2=None, q67w=None, qJ7f=None, JHly=ZylS.float32): _MNi = DBIe(bert_layer=q67w, task_list=qJ7f) o4Jx = _MNi(i5Cy, qV0r, OIWs, BkS2) Yq8C = ZylS.keras.Model(inputs={'input_word_ids': i5Cy, 'input_mmask': qV0r, 'input_type_ids': OIWs, 'task_idx': BkS2}, outputs=o4Jx) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LCW7(eyvQ=True):\n G8d9 = vPBo.max_len\n i5Cy = ZylS.keras.layers.Input(shape=(G8d9,), dtype=ZylS.int32, name='input_word_ids')\n qV0r = ZylS.keras.layers.Input(shape=(G8d9,), dtype=ZylS.int32, name='input_mask')\n Uszf = ZylS.keras.layers.Input(shape=(G8d9,), dtype=ZylS.int32, name='all_segment_id...
[ "0.74599123", "0.6918477", "0.68674725", "0.6830459", "0.679688", "0.67763245", "0.67256516", "0.66923946", "0.6655271", "0.6635956", "0.66204315", "0.6486159", "0.64518553", "0.6449729", "0.64388376", "0.6424719", "0.640988", "0.64077014", "0.63984156", "0.6383156", "0.63831...
0.0
-1
Transforms a text into a list of sentences.
def zup5(l5Ny): bHH0 = [] if type(l5Ny) == list: for zFiD in l5Ny: if not type(zFiD) == str: raise Exception('We only accept strings or lists of strings.') Rhv4 = zup5(zFiD) bHH0 += Rhv4 return bHH0 Nqlg = l5Ny.split('\n') for zFiD in N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZQ83(l5Ny: str) -> x1iM[str]:\n A97Q = K9NE(l5Ny)\n jkqZ = list()\n for yAmx in A97Q.sents:\n jkqZ.append(yAmx.text)\n return jkqZ", "def bIM4(l5Ny):\n Rhv4 = [_dZy for _dZy in aNQH(l5Ny)]\n return Rhv4", "def Rhv4(l5Ny):\n mEJO = njyT.sub('\\\\s*\\\\n+', '. ', l5Ny)\n return...
[ "0.8710877", "0.85047364", "0.8372852", "0.8283203", "0.824003", "0.81259066", "0.8103799", "0.7945319", "0.79170144", "0.78813916", "0.78624576", "0.77825266", "0.77825266", "0.77611744", "0.77531105", "0.7718401", "0.7704464", "0.7689586", "0.76849866", "0.7658449", "0.7633...
0.8694515
1
Tests the / route
def zSjQ(YKHO): from mongofinance.views import home_view U34r = home_view(YKHO.request) YKHO.assertEquals(U34r, {})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rpBe(YKHO):\n im04 = YKHO.app.get('/test')\n YKHO.assertEqual(im04.status_code, 200)\n print('Routing Test : OK')", "def aSnr(YKHO):\n YKHO.route_check('Index')", "def kN0f(YKHO):\n QePW = vJMg()\n YKHO.assertEqual(QePW.route_path('home'), '/')\n YKHO.assertEqual(QePW.route_path('about...
[ "0.81574696", "0.79792553", "0.76413304", "0.7600641", "0.75266856", "0.75266856", "0.7514078", "0.75110507", "0.74295807", "0.7427729", "0.7416064", "0.73696667", "0.73673564", "0.7366572", "0.73560774", "0.7346574", "0.732917", "0.73170584", "0.7312636", "0.730857", "0.7262...
0.0
-1
Returns the aligned and not bound indices of str1, str2
def h7gn(Y0Fj, Pb4f): FvDA = [] B8Wk = [] LVOL = [] jrZ7 = [] for YRbF in range(0, len(Y0Fj)): if Y0Fj[YRbF] != '-': LVOL.append(YRbF) else: FvDA.append(YRbF) for YRbF in range(0, len(Pb4f)): if Pb4f[YRbF] != '-': jrZ7.append(YRbF) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KnDZ(Y0Fj, Pb4f):\n yKcO = 0\n qoqK = min(len(Y0Fj), len(Pb4f))\n while yKcO < qoqK and Y0Fj[yKcO] == Pb4f[yKcO]:\n yKcO += 1\n Os4s = -1\n qoqK = qoqK - yKcO\n while -Os4s <= qoqK and Y0Fj[Os4s] == Pb4f[Os4s]:\n Os4s -= 1\n return (yKcO, Os4s + 1)", "def GLab(zxIH, GR10):\...
[ "0.6695614", "0.6620844", "0.6535311", "0.6488178", "0.6485252", "0.6430039", "0.61674947", "0.6112737", "0.6102281", "0.60883147", "0.60218817", "0.5970473", "0.59551686", "0.5925054", "0.59163576", "0.5912682", "0.5903178", "0.5898236", "0.589558", "0.58889216", "0.5877199"...
0.77719057
0
Return data in ndarray. Called through numpy.array. Examples >>> import numpy as np >>> from nipy.testing import funcfile >>> from nipy.core.api import ImageList >>> from nipy.io.api import load_image >>> funcim = load_image(funcfile) >>> ilist = ImageList(funcim) >>> np.asarray(ilist).shape (20, 2, 20, 20)
def uzII(YKHO): return oyIN.asarray([oyIN.asarray(Xn71) for Xn71 in YKHO.list])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pVO6(LNo8):\n return oyIN.asarray(LNo8.data, dtype=oyIN.uint8).reshape((LNo8.height, LNo8.width, 3))[:, :, (2, 1, 0)]", "def yHIf(LNo8):\n if type(LNo8) == hnIv.Image:\n LNo8 = oyIN.asarray(LNo8)\n assert type(LNo8) == oyIN.ndarray, '{} is wrong type'.format(LNo8)\n return LNo8", "def Zh...
[ "0.7241941", "0.69834775", "0.6860993", "0.6793582", "0.67088044", "0.66914064", "0.6678512", "0.6677319", "0.6645898", "0.6602069", "0.6559466", "0.65413123", "0.65336454", "0.65201986", "0.65044487", "0.6488867", "0.6488591", "0.64864224", "0.6486233", "0.64816815", "0.6479...
0.6880509
2
Normalise a value to within a positive and negative range
def y2uz(BWXx, Nn2F): C8Kx = {'lat': 90, 'lon': 180} try: Zkyd = C8Kx[Nn2F] BWXx %= [-1, 1][BWXx > 0] * Zkyd * 2 except KeyError: Zkyd = Nn2F if abs(BWXx) > Zkyd: return BWXx % ([1, -1][BWXx > 0] * Zkyd) else: return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r0lV(BWXx, bQ6z, dgIT):\n return BWXx * (bQ6z - dgIT) + dgIT", "def lgZ7(BWXx, range):\n return (BWXx - range) / range", "def jnV4(YKHO, BWXx, dgIT, bQ6z):\n return (BWXx - dgIT) / (bQ6z - dgIT) * 2 - 1", "def r0lV(BWXx, bKEy, o6jZ):\n return (BWXx + 1) / 2.0 * (o6jZ - bKEy) + bKEy", "def N...
[ "0.80631423", "0.79832286", "0.7959698", "0.79442525", "0.7891065", "0.78251", "0.7761634", "0.77345914", "0.7713311", "0.7677688", "0.7614665", "0.75699496", "0.7541993", "0.7502897", "0.74998236", "0.74960184", "0.74706113", "0.74428564", "0.7422527", "0.73994315", "0.73825...
0.7392295
20
Names of columns in the resulting table.
def ZLJ_(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Txl5(Emd4):\n return Emd4.__table__.columns.keys()", "def NKcn(YKHO) -> x1iM[str]:\n return YKHO.result_set.colnames()", "def Txl5(YKHO):\n return YKHO.implementation.col_names", "def CSa0(Emd4):\n return set(Emd4.__table__.c.keys())", "def iDDg(YKHO):\n return YKHO.columns", "def KQJ9...
[ "0.8373703", "0.8320893", "0.82917166", "0.82713175", "0.8221825", "0.81756455", "0.8149034", "0.813516", "0.8132211", "0.8118925", "0.81149226", "0.81045437", "0.8060164", "0.80210745", "0.7992258", "0.7981559", "0.79771274", "0.7952865", "0.7943289", "0.79374295", "0.792141...
0.7348803
70
Names of columns in the resulting table.
def ZLJ_(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Txl5(Emd4):\n return Emd4.__table__.columns.keys()", "def NKcn(YKHO) -> x1iM[str]:\n return YKHO.result_set.colnames()", "def Txl5(YKHO):\n return YKHO.implementation.col_names", "def CSa0(Emd4):\n return set(Emd4.__table__.c.keys())", "def iDDg(YKHO):\n return YKHO.columns", "def KQJ9...
[ "0.83746594", "0.83214015", "0.8292749", "0.8272801", "0.8221977", "0.81764936", "0.81495297", "0.81359", "0.81321275", "0.812006", "0.8116338", "0.8105615", "0.8061657", "0.8021671", "0.79931295", "0.79815716", "0.7978763", "0.7953079", "0.79437214", "0.79387903", "0.7921833...
0.73495823
70
Tests admin/auth/user url in admin panel
def bWRG(YKHO): geh0 = YKHO.client.get('/admin/auth/user/') YKHO.assertIn('Users', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PL9f(YKHO):\n geh0 = YKHO.connect_admin_user_fixture()\n geh0 = YKHO.testapp.get('/tools/user/1/show', status=200)\n YKHO.assertEqual(geh0.request.path, '/tools/user/1/show')\n YKHO.assertTrue('admin' in geh0.body.replace('\\n', ''))", "def fFR8(YKHO):\n YKHO.client.force_login(YKHO.superuser)...
[ "0.7781746", "0.7547423", "0.75325507", "0.7478615", "0.74310374", "0.7383705", "0.7361381", "0.7361381", "0.7361381", "0.73521054", "0.73279995", "0.7299131", "0.72742254", "0.7257895", "0.7236293", "0.7233166", "0.72236913", "0.72152424", "0.7186378", "0.71797025", "0.71793...
0.7888165
0
Tests admin/auth/group url in admin panel
def SoJ0(YKHO): geh0 = YKHO.client.get('/admin/auth/group/') YKHO.assertIn('Groups', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y6kH(YKHO):\n cQ68.objects.create(name='test1')\n cQ68.objects.create(name='test2')\n U5bT = YKHO.client.get(gxEw('admin:groups'))\n YKHO.assertEqual(U5bT.status_code, Yd7Q.status_code)", "def Ee9T(YKHO):\n geh0 = YKHO.client.get('/admin/')\n YKHO.assertIn('Authentication and Authorization'...
[ "0.71955645", "0.71113646", "0.7017187", "0.69782525", "0.6971541", "0.6966139", "0.6936507", "0.686911", "0.6859601", "0.68510044", "0.6740505", "0.67336375", "0.6731876", "0.6678301", "0.6635073", "0.66136503", "0.66136503", "0.66136503", "0.6580839", "0.65713084", "0.65698...
0.8022261
0
Tests admin/sites/site/ url in admin panel
def FUPP(YKHO): geh0 = YKHO.client.get('/admin/sites/site/') YKHO.assertIn('Sites', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpfS(YKHO):\n YKHO.assertContains(gCuF.SITE_URL)", "def yu40(YKHO):\n geh0 = YKHO.client.get(nKyW('admin'))\n YKHO.assertEqual(geh0.status_code, 200)", "def bHda(YKHO):\n bD7m = gxEw('admin:index')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, 302)\n Rci7, Vo9x = ...
[ "0.7517038", "0.72281647", "0.700075", "0.6995482", "0.6834374", "0.68288916", "0.6649144", "0.660494", "0.6577847", "0.65485144", "0.65293944", "0.6507528", "0.6485178", "0.6481413", "0.6451717", "0.642114", "0.637616", "0.6371237", "0.63662547", "0.63599473", "0.63389623", ...
0.7989001
0
Tests admin/bloglets/category/ url in admin panel
def b9lc(YKHO): geh0 = YKHO.client.get('/admin/bloglets/category/') YKHO.assertIn('Categories', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XS6l(YKHO):\n nPrm = YKHO.data1\n geh0 = YKHO.client.post(gxEw('store:category_list', args=[nPrm.slug]))\n YKHO.assertEqual(geh0.status_code, 200)", "def mXTx(YKHO):\n geh0 = YKHO.client.get('/admin/products/categories/')\n YKHO.assertIn('Categories', geh0.content)", "def uaoQ(gCuF, NCls):\n...
[ "0.726952", "0.7197438", "0.7077216", "0.69991225", "0.6984811", "0.6933652", "0.6910421", "0.6888023", "0.68675965", "0.678854", "0.6692504", "0.6692124", "0.6610249", "0.6590422", "0.6546665", "0.6486454", "0.6455895", "0.64411145", "0.6420328", "0.6410739", "0.63902843", ...
0.81276536
0
Tests admin/customers/testimonial/ url in admin panel
def DxA3(YKHO): geh0 = YKHO.client.get('/admin/customers/testimonial/') YKHO.assertIn('Testimonials', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yu40(YKHO):\n geh0 = YKHO.client.get(nKyW('admin'))\n YKHO.assertEqual(geh0.status_code, 200)", "def Ee9T(YKHO):\n bD7m = gxEw('admin:{app_label}_{model_name}_changelist'.format(app_label=tKz9, model_name=ZGE9))\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, 200, 'GET {url...
[ "0.68348765", "0.6753788", "0.66637385", "0.6640476", "0.66048133", "0.6532357", "0.6529223", "0.6510921", "0.6434897", "0.63863677", "0.6369814", "0.6369587", "0.6369291", "0.63645726", "0.6325025", "0.6302392", "0.6285013", "0.6277073", "0.62146676", "0.62062436", "0.618637...
0.80206394
0
Tests admin/orders/importedorder/ url in admin panel
def l91r(YKHO): geh0 = YKHO.client.get('/admin/orders/importedorder/') YKHO.assertIn('Imported orders', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rIv(YKHO):\n geh0 = YKHO.client.get('/admin/orders/order/')\n YKHO.assertIn('Orders', geh0.content)", "def LOcV(YKHO):\n _hkX = YKHO.specific_order()\n YKHO.assertEqual(_hkX.status_code, 200)", "def KxmH(YKHO):\n bD7m = gxEw('order-list')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEq...
[ "0.70915514", "0.6604821", "0.6411567", "0.63236225", "0.6308414", "0.62641436", "0.6234228", "0.61638564", "0.6064495", "0.6040319", "0.5989485", "0.5989485", "0.5982819", "0.5947099", "0.5942463", "0.5884267", "0.5882863", "0.5833377", "0.57647234", "0.5762953", "0.57507277...
0.82155687
0
Tests admin/orders/order/ url in admin panel
def _rIv(YKHO): geh0 = YKHO.client.get('/admin/orders/order/') YKHO.assertIn('Orders', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LOcV(YKHO):\n _hkX = YKHO.specific_order()\n YKHO.assertEqual(_hkX.status_code, 200)", "def l91r(YKHO):\n geh0 = YKHO.client.get('/admin/orders/importedorder/')\n YKHO.assertIn('Imported orders', geh0.content)", "def Ee9T(YKHO):\n bD7m = gxEw('admin:{app_label}_{model_name}_changelist'.forma...
[ "0.70799065", "0.7045354", "0.70323056", "0.6961367", "0.6845319", "0.6757703", "0.6678549", "0.6629461", "0.6627422", "0.66216063", "0.65763503", "0.6565272", "0.6531469", "0.65283704", "0.6486406", "0.6428624", "0.64133346", "0.64008677", "0.6400808", "0.6393158", "0.636679...
0.7794503
0
Tests admin/products/choicecategory/ url in admin panel
def Rba5(YKHO): geh0 = YKHO.client.get('/admin/products/choicecategory/') YKHO.assertIn('choicecategory', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qJ_B(YKHO):\n geh0 = YKHO.client.get('/admin/products/choice/')\n YKHO.assertIn('choices', geh0.content)", "def mXTx(YKHO):\n geh0 = YKHO.client.get('/admin/products/categories/')\n YKHO.assertIn('Categories', geh0.content)", "def b9lc(YKHO):\n geh0 = YKHO.client.get('/admin/bloglets/categor...
[ "0.7336069", "0.7092919", "0.7011321", "0.6880384", "0.68356353", "0.6832944", "0.67874205", "0.67201775", "0.6514526", "0.64768463", "0.6469551", "0.64496064", "0.64224386", "0.63837165", "0.6326297", "0.6290079", "0.62762034", "0.6252123", "0.6230563", "0.6200129", "0.61719...
0.800003
0
Tests admin/products/prodopt/ url in admin panel
def jyma(YKHO): geh0 = YKHO.client.get('/admin/products/prodopt/') YKHO.assertEqual(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SIcE(YKHO):\n geh0 = YKHO.client.get(nKyW('products'))\n YKHO.assertEqual(geh0.status_code, 200)", "def w0od(YKHO):\n geh0 = YKHO.client.get('/admin/products/product/')\n YKHO.assertIn('Products', geh0.content)", "def vzRD(YKHO):\n nPrm = YKHO.data1\n bD7m = gxEw('store:product_details', ...
[ "0.7368289", "0.73517734", "0.7269775", "0.69774187", "0.68840194", "0.67390823", "0.67132664", "0.6703028", "0.664027", "0.6632372", "0.66258913", "0.6584654", "0.6568263", "0.65612626", "0.65478724", "0.6523453", "0.6504383", "0.6501009", "0.6475626", "0.64665693", "0.64657...
0.84139156
0
Tests admin/products/choice/ url in admin panel
def qJ_B(YKHO): geh0 = YKHO.client.get('/admin/products/choice/') YKHO.assertIn('choices', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dFRe(YKHO):\n geh0 = YKHO.client.get('/admin/products/option/')\n YKHO.assertIn('Options', geh0.content)", "def Rba5(YKHO):\n geh0 = YKHO.client.get('/admin/products/choicecategory/')\n YKHO.assertIn('choicecategory', geh0.content)", "def w0od(YKHO):\n geh0 = YKHO.client.get('/admin/products...
[ "0.7277238", "0.7252745", "0.7230563", "0.72078353", "0.6973813", "0.6876427", "0.66593194", "0.6608137", "0.65497", "0.6543371", "0.6510564", "0.648194", "0.64591795", "0.64218754", "0.6403234", "0.63558495", "0.6303524", "0.6303074", "0.627513", "0.6261355", "0.6256131", ...
0.7722646
0
Tests admin/products/option/ url in admin panel
def dFRe(YKHO): geh0 = YKHO.client.get('/admin/products/option/') YKHO.assertIn('Options', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jyma(YKHO):\n geh0 = YKHO.client.get('/admin/products/prodopt/')\n YKHO.assertEqual(geh0.status_code, 200)", "def w0od(YKHO):\n geh0 = YKHO.client.get('/admin/products/product/')\n YKHO.assertIn('Products', geh0.content)", "def yu40(YKHO):\n geh0 = YKHO.client.get(nKyW('admin'))\n YKHO.as...
[ "0.72118783", "0.7027425", "0.6777109", "0.6746201", "0.67098755", "0.6701067", "0.66519684", "0.6542539", "0.65170735", "0.6482214", "0.6390333", "0.636929", "0.6297916", "0.620355", "0.61905855", "0.6161834", "0.6153092", "0.6150244", "0.6146337", "0.6142287", "0.612316", ...
0.7797008
0
Tests admin/products/product/ url in admin panel
def w0od(YKHO): geh0 = YKHO.client.get('/admin/products/product/') YKHO.assertIn('Products', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SIcE(YKHO):\n geh0 = YKHO.client.get(nKyW('products'))\n YKHO.assertEqual(geh0.status_code, 200)", "def jyma(YKHO):\n geh0 = YKHO.client.get('/admin/products/prodopt/')\n YKHO.assertEqual(geh0.status_code, 200)", "def vzRD(YKHO):\n nPrm = YKHO.data1\n bD7m = gxEw('store:product_details', ...
[ "0.755093", "0.7546905", "0.7472872", "0.7233882", "0.7012352", "0.69601977", "0.6926939", "0.6907868", "0.6893812", "0.686748", "0.68337387", "0.6826196", "0.6817697", "0.67859846", "0.6770419", "0.67500466", "0.67389804", "0.67188424", "0.66958773", "0.6690053", "0.6672751"...
0.78187543
0
Tests admin/catax/catax/ url in admin panel
def Ze1u(YKHO): geh0 = YKHO.client.get('/admin/catax/catax/') YKHO.assertIn('CA Taxes', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yu40(YKHO):\n geh0 = YKHO.client.get(nKyW('admin'))\n YKHO.assertEqual(geh0.status_code, 200)", "def Ee9T(YKHO):\n bD7m = gxEw('admin:{app_label}_{model_name}_changelist'.format(app_label=tKz9, model_name=ZGE9))\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, 200, 'GET {url...
[ "0.69880813", "0.69823706", "0.67080575", "0.66163427", "0.6553928", "0.6522483", "0.6521917", "0.6514895", "0.64832896", "0.6460565", "0.6457809", "0.6452064", "0.64454556", "0.6427257", "0.6410947", "0.6403238", "0.6366522", "0.63472766", "0.6311062", "0.6309507", "0.627894...
0.7912337
0
Tests admin/email_extras/key/ url in admin panel
def Lv8e(YKHO): geh0 = YKHO.client.get('/admin/email_extras/key/') YKHO.assertIn('Keys', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YnEh(YKHO):\n cpYK.send(recipients=['test@example.com'], headers={'foo': 'bar'})\n D3lj = GPrQ.objects.latest('id')\n geh0 = YKHO.client.get(gxEw('admin:post_office_email_change', args=[D3lj.id]))\n YKHO.assertEqual(geh0.status_code, 200)", "def Zdoa(YKHO):\n geh0 = YKHO.client.get('/admin/ema...
[ "0.65345365", "0.63846976", "0.62998295", "0.6284347", "0.61763513", "0.61220145", "0.60638463", "0.60599864", "0.6015613", "0.5962574", "0.5954365", "0.59536767", "0.5948857", "0.586703", "0.58250797", "0.57975733", "0.5790327", "0.5752091", "0.5752091", "0.5752091", "0.5752...
0.7561478
0
Tests admin/taggit/tag/ url in admin panel
def MPop(YKHO): geh0 = YKHO.client.get('/admin/taggit/tag/') YKHO.assertIn('Tags', geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cZao(YKHO):\n dlsR = SYRW.objects.first()\n frqi = GSRe('{% load hello %}{% edit_link object %}')\n xdLd = cFqH({'object': dlsR})\n kN9s = DDS9.objects.get_for_model(dlsR.__class__)\n UdPk = gxEw('admin:%s_%s_change' % (kN9s.app_label, kN9s.model), args=(dlsR.id,))\n HeNO = frqi.render(xdLd)\...
[ "0.73765707", "0.7212182", "0.70731497", "0.68220377", "0.6626076", "0.6614644", "0.65500575", "0.65220195", "0.64206386", "0.6406954", "0.63808763", "0.63770545", "0.6253506", "0.62390345", "0.6176179", "0.61612064", "0.6080349", "0.607948", "0.6078452", "0.60605776", "0.605...
0.7941334
0
Retrieve centroid of triangle mesh
def G0Yq(YKHO) -> SoA4: a6kv = 1.0 / float(len(YKHO.vertices)) hgjH = SoA4(0, 0, 0) for UqpO in YKHO.vertices: hgjH[0] += UqpO[0] * a6kv hgjH[1] += UqpO[1] * a6kv hgjH[2] += UqpO[2] * a6kv return hgjH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e6ux(tXIo):\n \"\"\"Starts with centroid being at 0,0\"\"\"\n HPHZ = [0, 0]\n for SLBp in tXIo:\n HPHZ[0] += SLBp[0]\n HPHZ[1] += SLBp[1]\n HPHZ[0] /= 3.0\n HPHZ[1] /= 3.0\n return HPHZ", "def G0Yq(nXnc):\n e6ux = oyIN.array([oyIN.average(nXnc[:, 0]), oyIN.average(nXnc[:, 1...
[ "0.79795367", "0.7897607", "0.787263", "0.7789741", "0.766282", "0.7457121", "0.7434676", "0.7336631", "0.724877", "0.7242976", "0.721025", "0.7166916", "0.71398216", "0.7093485", "0.709257", "0.70828074", "0.70532775", "0.7046449", "0.7010219", "0.6979245", "0.6978567", "0...
0.7339162
7
Retrieve Surface area of the triangle mesh (area of all triangles)
def ivpi(YKHO) -> float: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def B7Mv(DG1Q):\n if isinstance(DG1Q, E5ty.FaceVertexMesh):\n print('A FaceVertex Mesh')\n Aofo = 0.0\n for RpU_ in DG1Q.faces:\n hQHm, jlSq, bUZ8 = RpU_\n Aofo += 0.5 * abs(oyIN.linalg.norm(oyIN.cr...
[ "0.80521923", "0.79188854", "0.7767242", "0.7721339", "0.75810826", "0.7484857", "0.7459237", "0.7324509", "0.71777135", "0.7173524", "0.7167521", "0.71235436", "0.7098849", "0.7040109", "0.70303243", "0.70105016", "0.6990217", "0.6989212", "0.6931827", "0.6920727", "0.687233...
0.6968117
18
Initialization method, which sets the logger instance name and logging level. Note that due to the support of the loggers ancestor descendant hierarchy the names with the dots are supposed to indicate such relation as logger 'parent.child.grandchild' is descendant of 'parent.child', which is descendant of 'parent' logg...
def FIMM(YKHO, IULY, ABDL=G9jH.DEBUG): YKHO.__dict__['_logger'] = G9jH.getLogger(IULY) YKHO._logger.setLevel(ABDL) YKHO.addHandler(G9jH.NullHandler()) YKHO.console = G9jH.StreamHandler() YKHO.console.setLevel(G9jH.INFO) YKHO._setFormatNoLineCode() YKHO.enableConsoleLogging()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sc2V(YKHO, mWFP=None, ABDL=None, _AKB=None):\n ABDL = 'DEBUG' if ABDL is None else ABDL\n mWFP = YKHO.__class__.__name__ if mWFP is None else mWFP\n if _AKB is None:\n YKHO.logger = G9jH.getLogger(mWFP)\n else:\n YKHO.logger = G9jH.getLogger(_AKB).getChild(mWFP)\n YKHO.logger.setLe...
[ "0.76268315", "0.73803395", "0.71589524", "0.71276045", "0.7071487", "0.69885314", "0.69840217", "0.69634205", "0.6884788", "0.68329704", "0.67848533", "0.67826134", "0.67686194", "0.6752783", "0.6746299", "0.6734974", "0.6734315", "0.6726102", "0.67213774", "0.67213774", "0....
0.66488826
32
Method to change the logging level of the handler for the logging into the console. Basically, an alias for self.console.setLevel(level).
def ZkQk(YKHO, ABDL): YKHO.console.setLevel(ABDL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aQ22(ABDL):\n hoIb(level=ABDL)", "def dJqR(YKHO, wiAm):\n YKHO.__CONSOLE_HANDLER = G9jH.StreamHandler(HwRy.stdout)\n YKHO.__CONSOLE_HANDLER.setLevel(wiAm)", "def eJmI(YKHO, ABDL):\n if not YKHO._console:\n Npgh = G9jH.StreamHandler()\n Npgh.setLevel(YKHO.__level(ABDL))\n Np...
[ "0.7985048", "0.7880784", "0.7878571", "0.78285956", "0.76453984", "0.76453984", "0.75658023", "0.7518323", "0.75175387", "0.74701303", "0.74119437", "0.73971856", "0.73898435", "0.73591644", "0.7327328", "0.7290425", "0.7285498", "0.72842443", "0.726523", "0.72595894", "0.72...
0.8374575
0
Initialization method, which sets the logger instance name, logging level and log file (even if the logging into a file is suppressed). Note that due to the support of the loggers ancestor descendant hierarchy the names with the dots are supposed to indicate such relation as logger 'parent.child.grandchild' is descenda...
def FIMM(YKHO, IULY, UijJ=False, A2Hy=None, ABDL=G9jH.DEBUG): if A2Hy is None: YKHO.log_file = '{}_{}.log'.format(qcWV.datetime.now().strftime('%Y-%m-%d %H_%M_%S'), IULY) else: YKHO.log_file = str(A2Hy) if UijJ: YKHO.file_logging = G9jH.FileHandler(YKHO.log_file, mode='w', delay=Fals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, b9xm: str):\n YKHO.log_name = b9xm\n YKHO._logger = None", "def FIMM(YKHO, Ux0P, Tuqy='a'):\n G9jH.Handler.__init__(YKHO)\n YKHO.filename = Hy7s.path.abspath(Ux0P)\n YKHO.mode = Tuqy", "def FIMM(YKHO, gIsw, bo34=G9jH):\n YKHO.file_name = gIsw\n YKHO.logger = bo34", "def FI...
[ "0.7637806", "0.7482297", "0.73396623", "0.7320716", "0.7318091", "0.72490543", "0.7205999", "0.71864164", "0.7153855", "0.71305877", "0.71235627", "0.71210665", "0.71032417", "0.7084806", "0.70817614", "0.70464146", "0.7034304", "0.70274603", "0.7026866", "0.7014911", "0.701...
0.7548935
1
Method to enable logging into a file. If the logging into the file was not enabled upon instantiation of the class, a log file is created; otherwise the existing log file is 'reused'. If optional file name is not passed during instantiation of the class, it is defined automatically from the date and time of instantiati...
def fJ_P(YKHO): if isinstance(YKHO.file_logging, G9jH.NullHandler): Bwei = YKHO.file_logging.level YKHO._logger.removeHandler(YKHO.file_logging) del YKHO.file_logging YKHO.file_logging = G9jH.FileHandler(YKHO.log_file, mode='w', delay=False) YKHO.file_logging.setLevel(Bwei) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6e1(YKHO):\n if YKHO.runpath is None:\n raise RuntimeError('Need to set up runpath before configuring logger')\n if YKHO.cfg.file_log_level is None:\n YKHO.logger.debug('Not enabling file logging')\n else:\n YKHO._file_log_handler = bo34.configure_file_logger(YKHO.cfg.file_log_le...
[ "0.71049476", "0.6997265", "0.6917516", "0.6892313", "0.68790084", "0.6868628", "0.6759771", "0.6694042", "0.6691838", "0.6668315", "0.6662421", "0.66472197", "0.664354", "0.66311747", "0.6628717", "0.66265935", "0.66086835", "0.6564718", "0.65388584", "0.6535605", "0.6516898...
0.75052106
0
Method to change the logging level of the handler for the logging into a file. Basically, an alias for self.file_logging.setLevel(level).
def jRm_(YKHO, ABDL): YKHO.file_logging.setLevel(ABDL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fJ_P(YKHO):\n if isinstance(YKHO.file_logging, G9jH.NullHandler):\n Bwei = YKHO.file_logging.level\n YKHO._logger.removeHandler(YKHO.file_logging)\n del YKHO.file_logging\n YKHO.file_logging = G9jH.FileHandler(YKHO.log_file, mode='w', delay=False)\n YKHO.file_logging.setLe...
[ "0.7350321", "0.7243612", "0.72213405", "0.70984584", "0.7023057", "0.68965125", "0.68965125", "0.687694", "0.6845924", "0.6815532", "0.6802088", "0.6793666", "0.6775078", "0.67727035", "0.6754815", "0.6745866", "0.6718639", "0.6718022", "0.67089546", "0.6694047", "0.6688767"...
0.8465053
0
Method to change the active log file. If logging to a file was disabled this method automatically enables it. Otherwise, the log file used before is closed, and the new log file is created. If optional file name is not passed, it is defined automatically from the current date and time as well as the 'name' of the logge...
def y_ou(YKHO, A2Hy=None): Bwei = YKHO.file_logging.level if A2Hy is None: YKHO.log_file = '{}_{}.log'.format(qcWV.datetime.now().strftime('%Y-%m-%d %H_%M_%S'), YKHO.name) else: YKHO.log_file = str(A2Hy) YKHO.file_logging.close() YKHO._logger.removeHandler(YKHO.file_logging) del ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XXPS(YKHO, mWFP=None):\n YKHO.disable()\n YKHO.LOG_FILE_NAME = mWFP\n if YKHO.LOG_FILE_NAME:\n try:\n YKHO.logfile = open(YKHO.LOG_FILE_NAME, 'a+')\n YKHO.LOG_TO_FILE = True\n except None:\n print(\"WARNING: Could not open log file '%s'\" % mWFP)", "def...
[ "0.8193351", "0.77977335", "0.699655", "0.6991474", "0.68638796", "0.68212026", "0.67702514", "0.67114526", "0.67093635", "0.6704716", "0.66490513", "0.6576273", "0.6534643", "0.65298307", "0.64754295", "0.6458867", "0.64151144", "0.64069927", "0.62606114", "0.62399334", "0.6...
0.745622
2
Generate a grid for an area with SW and NE corners.
def FIMM(YKHO, EBIM: Tuple[float, float], Aejc: Tuple[float, float], rxHD: str): print(f'Generating grid from {Aejc} to {EBIM}') YKHO.lat_upper = EBIM[0] YKHO.lon_upper = EBIM[1] YKHO.lat_lower = Aejc[0] YKHO.lon_lower = Aejc[1] YKHO.activity = rxHD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q00m(YKHO):\n for zn0c in YKHO._geo_reference:\n XtSr = YKHO._geo_reference[zn0c]['west']\n MtsV = YKHO._geo_reference[zn0c]['north']\n YKHO._r_0, YKHO._s_0 = YKHO._proj_calc.get_grid_coordinates(XtSr, MtsV)\n oJXT, Zmbv = YKHO._proj_calc.get_longitude_latitude(YKHO._r_0, YKHO._s...
[ "0.71434647", "0.7004737", "0.68278843", "0.6783872", "0.6774763", "0.6735607", "0.6712277", "0.6708888", "0.6679763", "0.6671215", "0.66221756", "0.66221756", "0.66217583", "0.66053474", "0.6594245", "0.65565485", "0.6552161", "0.6551749", "0.6539318", "0.6518572", "0.651429...
0.0
-1
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None KZ2j = None if cmPJ.get('appJobUidList') != None: KZ2j = list() for g8x2 in cmPJ.get('appJobUidList'): KZ2j.append(qRGs.models.universal_id.UniversalId.from_dictionary(g8x2)) AmvP = cmPJ.get('cloudDomainId') dQ9r ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.8371138", "0.8334741", "0.8214326", "0.8169405", "0.8169405", "0.8147263", "0.80518186", "0.8028713", "0.8012647", "0.797861", "0.79210013", "0.79179746", "0.79171103", "0.7911904", "0.79054826", "0.78999585", "0.78963107", "0.7885213", "0.78755313", "0.7853558", "0.785355...
0.0
-1
Scopes associated to the team.
def uC2a(YKHO, jGRS: Optional[ScopeStatus]=None, **B2fa) -> x1iM['Scope']: return YKHO._client.scopes(team=YKHO.id, status=jGRS, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uC2a(YKHO):\n pass", "def GKWL(YKHO):\n return YKHO._create_scopes()", "def GKWL(YKHO):\n return YKHO._create_scopes()", "def GKWL(YKHO) -> wFpA[str]:\n if bySB.has('organizations:team-roles', YKHO.organizationmember.organization):\n return YKHO.organizationmember.organization.get_scop...
[ "0.6764565", "0.6619183", "0.6619183", "0.647628", "0.6221263", "0.6216333", "0.62003857", "0.6172327", "0.60616183", "0.604264", "0.5960748", "0.5960748", "0.5960748", "0.5871941", "0.5871941", "0.5871941", "0.5826644", "0.5807352", "0.58034664", "0.5788263", "0.5788199", ...
0.6490495
3
Returns the absolute error of two numbers.
def Qr0R(nvEb, u_ln): return abs(nvEb - u_ln)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(jzdc, Fg_i):\n jzdc, Fg_i = cmIQ(jzdc, Fg_i)\n return oyIN.sqrt(((jzdc - Fg_i) ** 2).mean()) / (oyIN.max(Fg_i) - oyIN.min(Fg_i))", "def crkg(WKvO, LVAh):\n return oyIN.max(oyIN.abs(WKvO - LVAh) / oyIN.maximum(1e-08, oyIN.abs(WKvO) + oyIN.abs(LVAh)))", "def W4jA(jzdc, Fg_i):\n return oyIN.m...
[ "0.75758785", "0.7439109", "0.7439036", "0.7187164", "0.71621054", "0.7150863", "0.7138354", "0.7104935", "0.7000356", "0.6912167", "0.6774246", "0.6729387", "0.6712646", "0.6668637", "0.6650634", "0.66490394", "0.66101396", "0.6582422", "0.654113", "0.6537405", "0.65146816",...
0.69548094
9
Subtracts mean and divides by standard deviation.
def awBS(vhpA, eQSh): return (vhpA - eQSh[0]) / eQSh[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LHfy(BWXx, JBMS, ifkm):\n return (BWXx - JBMS) / ifkm", "def RSc0(YKHO):\n return YKHO.variance ** 0.5", "def upUS(YKHO):\n JBMS = YKHO.Mean()\n M1Jx = 0.0\n for WKvO in YKHO.samples:\n M1Jx = M1Jx + epAf.pow(WKvO - JBMS, 2)\n M1Jx = M1Jx / (len(YKHO.samples) - 1)\n M1Jx = epAf....
[ "0.7316101", "0.72351205", "0.7222862", "0.7192542", "0.71324354", "0.71307164", "0.7096547", "0.7093701", "0.70286417", "0.7027687", "0.70173115", "0.7006056", "0.698827", "0.69860744", "0.69685864", "0.69519037", "0.69333166", "0.69280064", "0.6911441", "0.690967", "0.69009...
0.0
-1
Inverse function of affine_transform. Multiplies by stddev and adds mean.
def PnS2(vhpA, eQSh): return vhpA * eQSh[1] + eQSh[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bcW2(VXjJ, JBMS, M1Jx):\n return VXjJ * M1Jx + JBMS", "def NkkI(VXjJ, JBMS, M1Jx):\n return (VXjJ - JBMS) / M1Jx", "def bcW2(YKHO, VXjJ):\n return VXjJ * YKHO.std + YKHO.mean", "def NkkI(YKHO, VXjJ):\n return (VXjJ - YKHO.mean) / YKHO.std", "def hKRt(YKHO, EcVT):\n mrZR(YKHO, 'mean_')\n ...
[ "0.70199114", "0.69578534", "0.6858665", "0.681269", "0.6727897", "0.6685837", "0.666503", "0.66371447", "0.659794", "0.6533278", "0.6523504", "0.6517075", "0.64938647", "0.6471325", "0.6464277", "0.64530396", "0.6377499", "0.63672334", "0.63579834", "0.6352284", "0.6351105",...
0.0
-1
Creates a sequential model with the same number of nodes in each hidden layer.
def LQs7(Gzv5, EDoJ, SGPK): fhcK = [ht2j.nn.Linear(Gzv5, SGPK['hidden_nodes']), ht2j.nn.ReLU()] for YRbF in range(SGPK['hidden_layers']): fhcK.append(ht2j.nn.Linear(SGPK['hidden_nodes'], SGPK['hidden_nodes'])) fhcK.append(ht2j.nn.ReLU()) fhcK.append(ht2j.nn.Linear(SGPK['hidden_nodes'], EDoJ)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQs7(V06R=1, YDYE='relu', K0do='adam', RG9Q='glorot_uniform', tspZ=3, rYO3=30):\n XTiz.random.seed(23456)\n ZylS.random.set_seed(123)\n AHm_ = [fhcK.Flatten(input_shape=[co3n, 1])]\n for gEmA in range(V06R):\n AHm_.append(fhcK.Dense(rYO3, activation=YDYE, kernel_initializer=RG9Q))\n AHm_....
[ "0.7204184", "0.7070553", "0.6951653", "0.69377357", "0.69306904", "0.6907902", "0.68674546", "0.6848573", "0.68464994", "0.6844993", "0.68425983", "0.68350613", "0.6809452", "0.6806396", "0.6783789", "0.67785114", "0.67652017", "0.67367506", "0.67301595", "0.6718666", "0.669...
0.67911416
14
Test that given a valid NuGet package response, it can be parsed properly by implementing a parser for the NuGet registry format.
def JZP8(YKHO): nqEK = ZIbf() geh0 = BfDw.load_json_fixture('nuget_pkg.json') n5sN = nqEK.parse_response(geh0) aEqx = {'name': 'Newtonsoft.Json', 'description': 'Json.NET is a popular high-performance JSON framework for .NET', 'license': 'https://raw.github.com/JamesNK/Newtonsoft.Json/master/LICENSE.md'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UYXp(YKHO):\n aEqx = {'name': 'Newtonsoft.Json', 'description': 'Json.NET is a popular high-performance JSON framework for .NET', 'license': 'https://raw.github.com/JamesNK/Newtonsoft.Json/master/LICENSE.md', 'source_repo': '', 'homepage': 'https://www.newtonsoft.com/json', 'package_page': 'https://www.nuge...
[ "0.6812079", "0.62255114", "0.60409725", "0.5993718", "0.59926766", "0.58200824", "0.57668203", "0.57261974", "0.57123554", "0.5657753", "0.56221765", "0.5585166", "0.5571365", "0.5566171", "0.5537475", "0.5520279", "0.55163556", "0.5516127", "0.5470556", "0.5466106", "0.5450...
0.8204576
0
Create a bullet object at the ship's current position
def FIMM(YKHO, Vjhr, C7MP): super(GBVa, YKHO).__init__() YKHO.screen = Vjhr YKHO.rect = a9eO.Rect(0, 0, 20, 5) YKHO.rect.centerx = C7MP.rect.centerx YKHO.rect.top = C7MP.rect.top YKHO.x = YKHO.rect.x YKHO.color = (60, 60, 60) YKHO.speed_factor = 3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Vjhr, C7MP):\n super(GBVa, YKHO).__init__()\n YKHO.screen = Vjhr\n YKHO.rect = a9eO.Rect(0, 0, C7MP.bullet_width, C7MP.bullet_height)\n YKHO.rect.centerx = C7MP.rect.centerx\n YKHO.rect.top = C7MP.rect.top\n YKHO.y = float(YKHO.rect.y)\n YKHO.color = C7MP.bullet_color\n YKHO....
[ "0.78071225", "0.7796238", "0.75934166", "0.75880647", "0.75725526", "0.7535321", "0.75288343", "0.7396274", "0.7382208", "0.7339373", "0.7322111", "0.7262557", "0.7234305", "0.7167433", "0.7142409", "0.71400166", "0.71309954", "0.71144277", "0.71104294", "0.70838416", "0.706...
0.786572
0
Draw the bullet to the screen.
def izLs(YKHO): a9eO.draw.rect(YKHO.screen, YKHO.color, YKHO.rect)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izLs(YKHO):\n a9eO.draw.rect(YKHO.screen, YKHO.colour, YKHO.rect)", "def izLs(YKHO):\n a9eO.draw.rect(YKHO.game.getScreen(), YKHO.color, YKHO.rect)", "def izLs(YKHO):\n a9eO.draw.rect(YKHO.screen, YKHO.color, YKHO.rect)", "def izLs(YKHO):\n a9eO.draw.rect(YKHO.screen, YKHO.color, YKHO.rect)",...
[ "0.8973608", "0.8950017", "0.8937828", "0.8937828", "0.8937828", "0.8914429", "0.89079666", "0.89079666", "0.8853253", "0.88503546", "0.84783286", "0.84783286", "0.84783286", "0.84783286", "0.82228124", "0.82213396", "0.76354957", "0.7630168", "0.7510382", "0.74616414", "0.74...
0.8960696
3
Get a specific user by their ID.
def bt8D(uJjO: int): if Oa1e.user.id != uJjO and (not Oa1e.user.is_admin()): wk5E.logger.warning(f'User {Oa1e.user.id} tried to access {uJjO} but was denied' + ' due to not having admin privileges') raise _VIH(f'User {Oa1e.user.email} does not have sufficient authorisation') h18y = zVa7.get_user...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(id):\n return mv1M.query.get(id)", "def bt8D(uJjO):\n return NCls.get(uJjO, None)", "def g971(id):\n return mv1M.query.get(int(id))", "def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)", "def TKWP(uJjO):\n CBIr = mv1M.objects.get_or_404(id=uJjO)\n return CBIr", "def ...
[ "0.856313", "0.85033166", "0.8497883", "0.8497751", "0.8417506", "0.8388347", "0.8386967", "0.8376634", "0.8364916", "0.8361195", "0.834499", "0.834499", "0.8338781", "0.8338653", "0.8312104", "0.8308269", "0.82960296", "0.82673454", "0.82400525", "0.82161677", "0.8211672", ...
0.7976168
45
Test it support a variety of temperatures.
def uWgR(YKHO, LCXB): eJb6 = cCOh() lt9K = eJb6.load(open('tests/fixtures/conf/richer-settings.yaml')) LCXB.return_value = lt9K nPrm = {'zone': 'Kitchen', 'schedule': [{'days': 'mon-fri', 'periods': [{'mode': 'very-cold', 'start': '08:00', 'end': '09:00'}, {'mode': 'cold', 'start': '09:00', 'end': '10:0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d8Ef(Tfg2):\n yDvq = Tfg2\n aoB2 = yDvq.temperatures()\n U34r = yDvq.info()\n vFpV.check_TemperatureInfoList(aoB2, [U34r])", "def N__I(Oa1e, a1PO):\n assert ovGo(Oa1e) == a1PO", "def NqRg(YKHO):\n pass", "def OAIL(YKHO):\n H6SK = XTiz.array([200, 400, 600, 800, 1000, 1200, 1400, 1600...
[ "0.7651951", "0.71726656", "0.71701825", "0.7127119", "0.7127119", "0.71168", "0.70924807", "0.70924807", "0.7088167", "0.7088167", "0.6976838", "0.6894045", "0.67137563", "0.6710293", "0.6653501", "0.6645409", "0.6629532", "0.6613862", "0.66117245", "0.66009057", "0.65927625...
0.6015511
59
Path to a file that must exist.
def pmON(vIwR): if not Hy7s.path.exists(vIwR): raise ValueError() return vIwR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pgyv(BWXx: str) -> GkAb:\n pmON = GkAb(BWXx)\n if not pmON.exists():\n raise W66h('{} does not exist'.format(pmON))\n if not pmON.is_file():\n raise W66h('{} is not a file'.format(pmON))\n return pmON.absolute()", "def lLgP(pmON):\n if not Hy7s.path.isfile(pmON):\n raise j...
[ "0.7477559", "0.7288247", "0.72281855", "0.72275317", "0.71707755", "0.7059458", "0.7042013", "0.6985802", "0.6981868", "0.69265974", "0.69096845", "0.69090813", "0.69090813", "0.6881919", "0.68790805", "0.68502134", "0.68456906", "0.6832879", "0.68325937", "0.68176913", "0.6...
0.64392585
62
Return the edge index of the edge closest to the center of gravity of the network.
def fFlK(YKHO): jNOo = oyIN.array([0.5 * (oyIN.array(YKHO.G.node[P6bq]['pos']) + oyIN.array(YKHO.G.node[Ty9i]['pos'])) for P6bq, Ty9i in YKHO.G.edges_iter()]) gKSi = jNOo.mean(axis=0) eFr6 = oyIN.linalg.norm(jNOo - gKSi, axis=1) return oyIN.argmax(eFr6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QNg3(YKHO) -> int:\n yfx6 = oyIN.apply_along_axis(YKHO.calc_distance, axis=1, arr=YKHO.weights)\n return oyIN.argmin(yfx6)", "def whXX(YKHO, WKvO, LVAh):\n G1Hx = -1\n WiZd = XTiz.inf\n for vC9B in range(len(YKHO.edges)):\n gzVs = YKHO.edgeDist2(WKvO, LVAh, vC9B)\n if gzVs < WiZd...
[ "0.7038831", "0.6421949", "0.6364742", "0.6347662", "0.62976557", "0.6253021", "0.61930126", "0.6137295", "0.61060125", "0.608135", "0.6046475", "0.598202", "0.597101", "0.595832", "0.59406435", "0.5940134", "0.5935682", "0.5923213", "0.5922898", "0.5920332", "0.5920332", "...
0.7209381
0
Returns the l1 lattice neighbor distance. When noidy, then query until gathered elements > k. Only considers adjacent cells.
def xDcj(YKHO, z1Rg, G1Hx, IBFA=0, qHDB=True, KHnY=3): bV9P = PqXj(YKHO, z1Rg, KHnY) R04k = YKHO.discretizer.transform(z1Rg.reshape(1, -1)).astype(int)[0] XnqC = YKHO.query_cell_frequency(R04k) + YKHO.rnd_generator.laplace(scale=IBFA) pImw = 0 YRbF = 0 while XnqC < G1Hx: YRbF = YRbF + 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rB_B(YKHO):\n myQS = HFk3(n_neighbors=YKHO.k + 1, algorithm='ball_tree')\n TaUL, _0VL = myQS.fit(YKHO.points).kneighbors(YKHO.points)\n Htse = oyIN.abs(YKHO.points - YKHO.points[_0VL[:, -1], :]) / 2\n return Htse", "def z1UU(nPrm, G1Hx):\n dUr3 = IyN9(nPrm)\n CLQW = oyIN.argpartition(dUr3, ...
[ "0.6553407", "0.6492334", "0.6400987", "0.6230906", "0.61714876", "0.6147961", "0.61366886", "0.6115217", "0.61096114", "0.60860825", "0.6085433", "0.60853034", "0.60851294", "0.60743195", "0.6073119", "0.6072325", "0.6040712", "0.60174304", "0.60126084", "0.6010495", "0.5999...
0.641781
2
Get information for train / test data set split for debugging / accountability reasons.
def pEkJ(cC56, sAoX): wCmJ = rLdf.DataFrame([{'Name': 'Train Set', 'Count': len(cC56)}, {'Name': 'Test Set', 'Count': len(sAoX)}]) wCmJ = wCmJ[['Name', 'Count']] return wCmJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t8yq(YKHO):\n YKHO._train_test_split()\n return (YKHO.train_c, YKHO.test_c, YKHO.train_h, YKHO.test_h, YKHO.train_l, YKHO.test_l, YKHO.train_v, YKHO.test_v)", "def jgLX(YKHO):\n return [{'split': X3eO.DatasetSplit.TRAIN, 'shards': 9}, {'split': X3eO.DatasetSplit.EVAL, 'shards': 1}]", "def jgLX(YKH...
[ "0.7328693", "0.69146067", "0.69146067", "0.69070166", "0.6872814", "0.6846439", "0.68426996", "0.67977947", "0.664867", "0.6626213", "0.6559404", "0.6511841", "0.64955163", "0.6491302", "0.64738274", "0.642194", "0.6387527", "0.6365561", "0.632953", "0.6327469", "0.6326933",...
0.7049055
1
Send messages to all connected clients, except itself and some others.
def iJtT(YKHO, Ol8d, Bx6I=None, R89g=False): if Bx6I is None: Bx6I = [] if not R89g: Bx6I.append(YKHO.session.session_id) for JkXK, cuiw in YKHO.handler.server.sessions.iteritems(): if JkXK not in Bx6I: YKHO._write(Ol8d, cuiw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zLGZ(YKHO, tO9_):\n for Z9rn in YKHO.client_list:\n Z9rn.send_msg(tO9_)", "def Z9Sj(YKHO, Ol8d):\n for Z9rn in list(YKHO.factory.clients.keys()):\n Z9rn.send_to_client(Ol8d, Z9rn)", "def Bitx(YKHO):\n YKHO.__isSendingMessages = True\n Ol8d = YKHO.__getNextMessage()\n while Ol8d...
[ "0.7926386", "0.78730637", "0.77648866", "0.7722716", "0.7616486", "0.7176858", "0.7150414", "0.70755", "0.70462376", "0.7007425", "0.7003809", "0.6983416", "0.69695437", "0.69391793", "0.68447196", "0.68349534", "0.6777202", "0.67665756", "0.6695814", "0.66896445", "0.667414...
0.0
-1
other_user is not a friend if he's not in user["friends"]; that is, if he's not_the_same as all the people in the user["friends"]
def hU88(CBIr, g_7i): return all((Rw1g(hERe, g_7i) for hERe in CBIr['friends']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hU88(CBIr, g_7i):\n return all((Rw1g(hERe, g_7i) for hERe in CBIr['friends']))", "def XA5b(YKHO):\n FfRj = YKHO.user_2.profile\n YKHO.assertNotIn(YKHO.user_1.profile, FfRj.friends.all())", "def Rw1g(CBIr, g_7i):\n return CBIr['id'] is not g_7i['id']", "def Rw1g(CBIr, g_7i):\n return CBIr['...
[ "0.8810008", "0.7416683", "0.6995059", "0.6942544", "0.6942544", "0.6942544", "0.6852505", "0.679278", "0.6746603", "0.6629067", "0.64724004", "0.640761", "0.6267965", "0.617709", "0.6132073", "0.60627747", "0.6046041", "0.5977605", "0.59685093", "0.59584326", "0.5948541", ...
0.89588034
0
Area using determinant method.
def a1HB(hQHm, jlSq, bUZ8): jzdc = jlSq[0] - hQHm[0] Fg_i = bUZ8[0] - hQHm[0] Z9rn = jlSq[1] - hQHm[1] Csk6 = bUZ8[1] - hQHm[1] return abs(jzdc * Csk6 - Fg_i * Z9rn) / 2.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aw0V(YKHO):\n pass", "def Aw0V(YKHO):\n jzdc = epAf.sqrt(sum((YKHO.coords[1, :] - YKHO.coords[0, :]) ** 2))\n Fg_i = epAf.sqrt(sum((YKHO.coords[2, :] - YKHO.coords[1, :]) ** 2))\n YKHO.area = jzdc * Fg_i", "def f0tD(YKHO):\n return epAf.sqrt(3) / 4 * YKHO.sl ** 2", "def f0tD(YKHO):\n he...
[ "0.72974485", "0.70496005", "0.7037578", "0.7024991", "0.6939652", "0.69308937", "0.69249547", "0.6918129", "0.68824947", "0.68547785", "0.6847378", "0.6818686", "0.68095434", "0.68041176", "0.6802935", "0.67966163", "0.67935836", "0.67899376", "0.6760838", "0.6731153", "0.67...
0.0
-1
Returns True if G has a path from source to target.
def cmBw(yvY1, JZXy, pan_): return vkmp(algo='sssp_has_path')(yvY1, JZXy, pan_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmBw(yvY1, JZXy, pan_):\n try:\n H4yH = jHsn.shortest_path(yvY1, JZXy, pan_)\n except jHsn.NetworkXNoPath:\n return False\n return True", "def cmBw(YKHO, Os4s):\n if YKHO.from_.get(Os4s):\n return True\n return False", "def cmBw(pNZh, JZXy, e1vZ, azXi=[]):\n if None i...
[ "0.859046", "0.72951597", "0.726513", "0.70123285", "0.6953801", "0.6921261", "0.6876266", "0.6875912", "0.6875912", "0.6875912", "0.66669786", "0.6665281", "0.66555154", "0.66242146", "0.6577957", "0.6538497", "0.65300936", "0.6526911", "0.6474156", "0.6465572", "0.6446807",...
0.7571272
1
edges in a breadthfirstsearch starting at source.
def ooVl(yvY1, JZXy, TksD=None): OaeV = vkmp(algo='bfs_generic')(yvY1, JZXy, TksD, format='edges') return OaeV.to_numpy('r', axis=0).tolist()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Asu7(pNZh, JZXy, A_IW):\n gGq6 = [JZXy]\n azXi = set([JZXy])\n while gGq6:\n Q6kx = gGq6.pop(0)\n for AAbN in A_IW(Q6kx):\n if AAbN not in azXi:\n yield AAbN\n gGq6.append(AAbN)\n azXi.add(AAbN)", "def h7Hy(YKHO, JZXy: Optional[st...
[ "0.74229556", "0.7408843", "0.7335912", "0.704054", "0.6798703", "0.67458415", "0.6700874", "0.668292", "0.6652846", "0.6621709", "0.6613861", "0.6611893", "0.6603688", "0.6586275", "0.65816945", "0.65775615", "0.65756685", "0.6569027", "0.6556193", "0.65264004", "0.6523145",...
0.6764579
5
Adds a new vertex into the graph.
def ohmD(YKHO, SLBp): Ty9i = Yegm(SLBp) YKHO._vertices[SLBp] = Ty9i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)", "def ohmD(YKHO, SLBp=Yegm()):\n YKHO.vertices.append(SLBp)", "def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[rJkO.name] = rJkO", "def ohmD(YKHO, Ty9i):\n pass", "def ohmD(YKHO, SLBp: Vertex) -> 'Graph':\n if YKHO.__vgraph:\n...
[ "0.86856496", "0.8524388", "0.8496507", "0.8482075", "0.8414899", "0.8391134", "0.8371503", "0.8290661", "0.82860154", "0.82860154", "0.81915647", "0.815865", "0.8103304", "0.80986756", "0.8056639", "0.8041778", "0.79864013", "0.79772484", "0.7967403", "0.796689", "0.79653496...
0.8576011
3
Get all the vertices of the directed Graph.
def EBww(YKHO): iXlf = YKHO._vertices.keys() iXlf.sort() return iXlf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBww(YKHO):\n hlel = []\n for H5ew in YKHO._graph.keys():\n hlel.append(H5ew)\n return hlel", "def iXlf(pNZh):\n return rrLg.vertices(pNZh)", "def EBww(YKHO):\n ts4V = YKHO.graph.vertexCount()\n return (YKHO.graph.vertex(YRbF) for YRbF in Ni9Y(0, ts4V))", "def iXlf(YKHO):\n re...
[ "0.8383959", "0.82188666", "0.81532407", "0.8059463", "0.8059463", "0.8021927", "0.8021927", "0.8021927", "0.8021927", "0.8021927", "0.8000903", "0.7916177", "0.78907233", "0.780964", "0.7774773", "0.7734395", "0.7704053", "0.7684679", "0.7655851", "0.7647962", "0.7642095", ...
0.7239913
49
Converts normalized value pair to pixel coordinates.
def jsWQ(ED6E: float, qxBQ: float, Kmi0: int, l5eN: int) -> uLKX[None, AzJI[int, int]]: def r8Qk(BWXx: float) -> bool: return (BWXx > 0 or epAf.isclose(0, BWXx)) and (BWXx < 1 or epAf.isclose(1, BWXx)) if not (r8Qk(ED6E) and r8Qk(qxBQ)): return None wtvW = min(epAf.floor(ED6E * Kmi0), Kmi0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jsWQ(ED6E: float, qxBQ: float, Kmi0: int, l5eN: int) -> uLKX[None, AzJI[int, int]]:\n\n def r8Qk(BWXx: float) -> bool:\n return (BWXx > 0 or epAf.isclose(0, BWXx)) and (BWXx < 1 or epAf.isclose(1, BWXx))\n if not (r8Qk(ED6E) and r8Qk(qxBQ)):\n max(0, ED6E * Kmi0)\n return None\n w...
[ "0.6528748", "0.622388", "0.622038", "0.61184555", "0.61099565", "0.60460204", "0.6026842", "0.60020196", "0.5986883", "0.59671646", "0.5962167", "0.59103036", "0.5904595", "0.5897092", "0.5894029", "0.58890355", "0.58863837", "0.5871359", "0.5850363", "0.5847334", "0.5843062...
0.6520276
1
Get number of total time steps (or best guess if adaptive).
def n4N8(YKHO): a1PO = 0.0 Xlun = 0 d6pt = 0 while a1PO <= YKHO.totalTimeN: a1PO += YKHO.steps[d6pt] d6pt += 1 if d6pt >= len(YKHO.steps): if YKHO.loopSteps: d6pt = 0 else: d6pt -= 1 Xlun += 1 if Xlun <= 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T94y():\n L4bz = 26\n return L4bz", "def tQCs(YKHO) -> int:\n return int(oyIN.ceil(YKHO.duration / YKHO.timestep)) + 1", "def rafw(YKHO):\n return YKHO.numSteps", "def iFRJ(YKHO):\n Xlun, cJR8, xDM2 = YKHO.inquire(ddeq)\n return Xlun", "def LudG(YKHO) -> int:\n return len(YKHO._tim...
[ "0.80983657", "0.8057111", "0.78496474", "0.78036696", "0.75516826", "0.740482", "0.73787", "0.73702663", "0.7347995", "0.7256041", "0.7256041", "0.72473484", "0.715844", "0.7134739", "0.7133642", "0.7096456", "0.70646334", "0.7059438", "0.7056858", "0.70483905", "0.70452875"...
0.84542644
0
checks if there are four discs following each other on the same column
def YPqS(YKHO): PpaS = (None, ()) for WKvO in range(dVi8): for LVAh in range(Wl2e): if WKvO + 3 < dVi8 and YKHO.board[WKvO][LVAh] == YKHO.board[WKvO + 1][LVAh] == YKHO.board[WKvO + 2][LVAh] == YKHO.board[WKvO + 3][LVAh] != nxLL: PpaS = (YKHO.board[WKvO][LVAh], ((WKvO, LVAh), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iEoG(YKHO, Uqbu):\n for IWON in Uqbu:\n CbAm = 0\n sWUC = None\n for j5sR in IWON:\n if j5sR == sWUC and j5sR != ' ':\n CbAm += 1\n else:\n sWUC = j5sR\n CbAm = 1\n if CbAm >= 4:\n return (True,...
[ "0.72707677", "0.7232244", "0.6883341", "0.66508615", "0.6637081", "0.6557483", "0.6533532", "0.6498485", "0.64309275", "0.63763905", "0.63666403", "0.63655", "0.6320895", "0.6285865", "0.6269307", "0.62469935", "0.62428963", "0.62300014", "0.6224893", "0.62160134", "0.617646...
0.0
-1
Get a valid path referring to a given filename in the project directory.
def F3hs(pmON): if TU_L: return TU_L + Hy7s.path.sep + pmON else: return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GkAb(Ux0P):\n if Ux0P.startswith('/'):\n Ux0P = Ux0P[1:]\n return Hy7s.path.join(TUwC(), Ux0P)", "def n8un(Emd4, Ux0P):\n if not Hy7s.path.isabs(Ux0P):\n Ux0P = Hy7s.path.join(Emd4.cwd, Ux0P)\n return Ux0P", "def E0XI(Ux0P):\n return '{}/{}'.format(Hy7s.path.dirname(Hy7s.path.a...
[ "0.8036429", "0.79600143", "0.7925482", "0.77641827", "0.7761055", "0.77117926", "0.7632126", "0.7503991", "0.74812025", "0.74803555", "0.7422146", "0.74026597", "0.7383976", "0.73380065", "0.7324458", "0.72970456", "0.727835", "0.7261013", "0.72498", "0.7234743", "0.7199355"...
0.6646275
94
Initialize SlackClient to invoke slack api's
def hKAN(YKHO): YKHO.api_token = Hy7s.environ.get('SLACK_BOT_API_TOKEN') if YKHO.api_token is False: RKD7.error('Please setup SLACK_BOT_API_TOKEN env var') return False try: YKHO.slack_client = Du3i(YKHO.api_token) except Exception as e: RKD7.error('SlackClient() %s' % tT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.client = mE3u.WebClient(token='YOUR TOKEN')", "def O68y(YKHO):\n LArH = Hy7s.environ['SLACK_TOKEN']\n return Du3i(LArH)", "def FIMM(YKHO):\n LArH = Hy7s.environ['SLACK_BOT_TOKEN']\n YKHO.slack = Du3i(LArH)\n YKHO.bot_id = YKHO._get_bot_id()", "def S_7q():\n Sa_m = ...
[ "0.8282601", "0.8020905", "0.79446775", "0.7634753", "0.74611753", "0.7236024", "0.6927151", "0.6898881", "0.6886397", "0.68737924", "0.68072945", "0.6762285", "0.67274547", "0.6575978", "0.64996356", "0.64835864", "0.63432145", "0.6342034", "0.6326233", "0.63236254", "0.6281...
0.74237263
5
Creates the hidden layers in the network
def MHEM(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C5Rt(YKHO, YDYE, BKEM, yokr=7053, _U7A=False):\n YKHO.layers = []\n if _U7A:\n YKHO.layers.append(d1az(YKHO.n_inputs, YKHO.n_outputs, BKEM, yokr))\n else:\n YKHO.layers.append(d1az(YKHO.n_inputs, int(YKHO.neurons[0]), YDYE, yokr))\n for YRbF in range(len(YKHO.neurons) - 1):\n ...
[ "0.7515395", "0.7508481", "0.73939514", "0.7328703", "0.7261279", "0.72420937", "0.72366726", "0.71778786", "0.7155075", "0.70530474", "0.6957329", "0.69510275", "0.68732756", "0.6834576", "0.6818998", "0.68158436", "0.67979735", "0.6784676", "0.6762458", "0.670065", "0.66949...
0.8571128
0
Creates the batch norm layers in the network
def qlQ2(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gJFC(g4y1, LT6S, rrBf, C9B4, okEi, wH3T='NHWC'):\n okEi = okEi if okEi is not None else 0.9\n return ZylS.contrib.layers.batch_norm(g4y1, center=True, scale=True, is_training=LT6S, decay=okEi, updates_collections=None, scope=rrBf, data_format=wH3T)", "def Tn3D(YKHO):\n YKHO.decoder = ZylS.contrib.la...
[ "0.7520487", "0.74563205", "0.7431256", "0.7379152", "0.7378252", "0.7353276", "0.7291869", "0.728749", "0.7270672", "0.72695833", "0.724749", "0.7233257", "0.716884", "0.71669203", "0.7154471", "0.71471316", "0.7120449", "0.7113166", "0.707196", "0.707196", "0.7042935", "0...
0.8549601
0
Creates the dropout layers in the network
def MKgL(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IyPL(YKHO, sMyr):\n lzjZ = 'dropout' + str(YKHO.size)\n YKHO.layers.append(lzjZ)\n YKHO.push_back(i86e(sMyr, lzjZ))", "def fH_T(THkp, exwG, YDYE, sMyr):\n DbxN = ZylS.contrib.layers.variance_scaling_initializer(mode='FAN_AVG')\n lQ3t = ZylS.layers.Dropout(sMyr)\n gEmA = ZylS.layers.Dense(un...
[ "0.7084876", "0.6977115", "0.69433206", "0.67696357", "0.6686333", "0.6556897", "0.654707", "0.6545496", "0.64788663", "0.64593846", "0.6429818", "0.6425567", "0.6424422", "0.6414289", "0.63992876", "0.63936025", "0.63676906", "0.63431656", "0.63283366", "0.6307288", "0.63055...
0.8383916
0
Checks that user input for hidden_units is valid
def aeiQ(YKHO): assert isinstance(YKHO.layers_info, list), 'hidden_units must be a list' Z6uX = 'neurons must be a list of integers' lXqR = 'Every element of hidden_units must be 1 or higher' G8Ev = 'The number of output activations provided should match the number of output layers' for vNnt in YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yENa(YKHO, rYO3):\n if rYO3 in YKHO._available_units:\n return\n YKHO._err('Unknown units.', rYO3)", "def mREI(YKHO, X39M):\n for pLcG in eK7y(X39M):\n if pLcG not in sWIo.values():\n tO9_ = 'Unit <{}> not defined'.format(pLcG)\n raise ValueError(tO9_)", "def Lp...
[ "0.6288016", "0.6223489", "0.6151631", "0.6119121", "0.61149126", "0.61103785", "0.6015337", "0.5961373", "0.5960065", "0.58753556", "0.5860026", "0.5852713", "0.5821255", "0.57000196", "0.5687963", "0.56788206", "0.5675411", "0.5618137", "0.55917877", "0.55867875", "0.557293...
0.0
-1
Checks that user input for timesteps_to_output is valid
def PuT3(YKHO): assert YKHO.timesteps_to_output in ['all', 'last']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ytR_(YKHO, T5xE, mGH0):\n if (mGH0 - T5xE) % YKHO.simTimeStepInMin != 0:\n raise OWDt('Time period from %d to %d is not is not in multiple simulation time steps %d' % (T5xE, mGH0, YKHO.simTimeStepInMin))", "def vmQm(YKHO, T5xE, mGH0):\n if mGH0 - T5xE != YKHO.simTimeStepInMin:\n raise OWD...
[ "0.6838316", "0.6506714", "0.64229417", "0.62877035", "0.628576", "0.6278844", "0.6240195", "0.60623485", "0.6061841", "0.6032946", "0.59811825", "0.5965827", "0.5923202", "0.589925", "0.5896402", "0.5884044", "0.5880176", "0.5844994", "0.58338296", "0.5818479", "0.5806886", ...
0.8262227
0
Calculate GAN loss for the discriminator
def Vwc0(YKHO, Zr3k, wWvP, n9UN): EhEJ = Zr3k(wWvP) aPrI = YKHO.criterionGAN(EhEJ, True) K3La = Zr3k(n9UN.detach()) aySp = YKHO.criterionGAN(K3La, False) if YKHO.opt.gan_mode == 'wgangp': EOv5, NfqM = UziS.cal_gradient_penalty(Zr3k, wWvP, n9UN, YKHO.device) EOv5.backward(retain_graph...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MQYF(iMxe):\n if iMxe:\n N77f = xt2q(YNTO, uf3V)\n else:\n N77f = ZylS.add(xt2q(NcZM, PB_6), xt2q(1 - YNTO, AyLV), name=PhI6)\n return N77f", "def AOC4(Oa1e, Csk6, Yw_3, i63c, **B2fa):\n WKvO = Oa1e(i63c, **B2fa)\n tTpl = ZylS.random.uniform([ZylS.shape(Yw_3)[0], 1, 1, 1])\n f...
[ "0.7656528", "0.7500776", "0.7443934", "0.7375168", "0.73524827", "0.7344937", "0.72886795", "0.72307914", "0.71859646", "0.7184881", "0.71775943", "0.71699685", "0.716676", "0.7160415", "0.7133836", "0.7129042", "0.7095958", "0.7080802", "0.7058385", "0.7031051", "0.7012525"...
0.64033765
79
Calculate GAN loss for discriminator D_A
def wt4I(YKHO): YKHO.loss_D_basic_A, YKHO.score_acc_D_A = YKHO.backward_D_basic(YKHO.netD_A, YKHO.real_B, YKHO.fake_B) YKHO.loss_D_A = YKHO.loss_D_basic_A YKHO.loss_D_A.backward()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOC4(Oa1e, Csk6, Yw_3, i63c, **B2fa):\n WKvO = Oa1e(i63c, **B2fa)\n tTpl = ZylS.random.uniform([ZylS.shape(Yw_3)[0], 1, 1, 1])\n fsgT = tTpl * Yw_3 + (1 - tTpl) * WKvO\n return ZylS.reduce_mean(Csk6(WKvO, **B2fa) - Csk6(Yw_3, **B2fa) + 10 * EOv5(Csk6, fsgT, **B2fa))", "def UNWu(YKHO):\n n9UN =...
[ "0.7676818", "0.7425566", "0.73438025", "0.71770453", "0.71120685", "0.7105938", "0.7066937", "0.69975936", "0.6992658", "0.6953445", "0.6922646", "0.69198966", "0.6910758", "0.6905211", "0.68841326", "0.6876274", "0.67683095", "0.67597836", "0.6759627", "0.67572826", "0.6752...
0.0
-1
Calculate GAN loss for discriminator D_B
def yTS4(YKHO): YKHO.loss_D_basic_B, YKHO.score_acc_D_B = YKHO.backward_D_basic(YKHO.netD_B, YKHO.real_A, YKHO.fake_A) YKHO.loss_D_B = YKHO.loss_D_basic_B YKHO.loss_D_B.backward()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOC4(Oa1e, Csk6, Yw_3, i63c, **B2fa):\n WKvO = Oa1e(i63c, **B2fa)\n tTpl = ZylS.random.uniform([ZylS.shape(Yw_3)[0], 1, 1, 1])\n fsgT = tTpl * Yw_3 + (1 - tTpl) * WKvO\n return ZylS.reduce_mean(Csk6(WKvO, **B2fa) - Csk6(Yw_3, **B2fa) + 10 * EOv5(Csk6, fsgT, **B2fa))", "def UNWu(YKHO):\n n9UN =...
[ "0.75243795", "0.75206923", "0.7370823", "0.72708637", "0.71517277", "0.7135187", "0.7111511", "0.7109423", "0.70592624", "0.7056486", "0.70357126", "0.70346004", "0.70125276", "0.6980655", "0.6940843", "0.69319797", "0.6922009", "0.68949836", "0.6875787", "0.6840528", "0.684...
0.0
-1
Regularized logistic regression using gradient descent
def wnl5(LVAh, UShr, w4rS, Iuqe, ABAq, KMvS): LVAh = oyIN.expand_dims(LVAh, axis=1) yzQ0 = Iuqe FuCR = 0 for KjSY in range(ABAq): N77f = v0i9(LVAh, UShr, yzQ0) + w4rS * oyIN.squeeze(yzQ0.T.dot(yzQ0)) if abs(FuCR - N77f) < 1e-05: break if oyIN.isnan(N77f): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DPms(EcVT, LVAh, JkES, zD1g, r8hN, q7In, Vg51, C4BY=0.0, tspZ='constant', lGE9=1.0, n2Q1=10):\n for qtWj in range(JkES):\n for YRbF in range(zD1g):\n Ok5R = oyIN.random.randint(zD1g)\n Y7fn = EcVT[Ok5R * r8hN:Ok5R * r8hN + r8hN]\n O5iP = LVAh[Ok5R * r8hN:Ok5R * r8hN +...
[ "0.7696268", "0.75742286", "0.755146", "0.75286835", "0.751166", "0.747797", "0.7440375", "0.74362546", "0.74249476", "0.73931104", "0.73929596", "0.7366838", "0.73227125", "0.7299138", "0.7293358", "0.72903943", "0.7280093", "0.7278532", "0.7276183", "0.72717416", "0.7269068...
0.719215
31
The type of this node. This corresponds to the underlying AST class name.
def type(YKHO): if not hasattr(YKHO, '_type'): YKHO._type = YKHO.NodeType.fromASTClass(YKHO.astNode.__class__) return YKHO._type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YwLH(YKHO):\n return Um9M(YKHO)", "def _2sc(YKHO):\n if hasattr(YKHO, '_m_class_name'):\n return YKHO._m_class_name if hasattr(YKHO, '_m_class_name') else None\n YKHO._m_class_name = YKHO._root.type_ids[YKHO.class_idx].type_name\n return YKHO._m_class_name if hasattr(YKHO, '_m_class_name')...
[ "0.8049444", "0.7769077", "0.7769077", "0.77316874", "0.77316874", "0.7586181", "0.7559664", "0.7538721", "0.75018024", "0.74440265", "0.7402759", "0.73999417", "0.73715425", "0.73715425", "0.73715425", "0.7349984", "0.73478734", "0.73478734", "0.73406774", "0.7335125", "0.73...
0.8375834
0