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
Convert extension name to path the path does not include the file extension
def eQEo(mWFP): return mWFP.replace('.', Hy7s.path.sep)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hS0h(pmON):\n return Hy7s.path.splitext(pmON)[0]", "def v8KV(pmON: Union[str, List[str]]) -> str:\n if isinstance(pmON, str):\n pmON = [pmON]\n bGrB, Fst3 = Hy7s.path.splitext(pmON[0])\n return Fst3.lower()[1:]", "def JbZQ(YKHO, pmON):\n nUeQ = gLx5(pmON.lower())\n if len(nUeQ):\n ...
[ "0.79984164", "0.7904448", "0.7853162", "0.76853186", "0.76634383", "0.75991124", "0.75981456", "0.7597577", "0.75126916", "0.74778694", "0.7467894", "0.7467894", "0.7467826", "0.7439746", "0.74311876", "0.7405113", "0.74039716", "0.73941064", "0.73685014", "0.73623425", "0.7...
0.85099185
0
Return the command instance registered for the given command name.
def o6OM(YKHO, yROD): return YKHO._commands_registry.retrieve(yROD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HNzd(Emd4, mWFP):\n return Emd4.registered_commands[mWFP]", "def SWuT(Asoz: str) -> TkY7:\n try:\n oUZx = TkY7[Asoz]\n except KeyError:\n raise i15K(f'Unknown command name: {Asoz}') from None\n return oUZx", "def oUZx(YKHO, mWFP):\n return YKHO.commands[mWFP]", "def zTot(YKHO...
[ "0.8778787", "0.8344625", "0.8242334", "0.78669405", "0.78132796", "0.7671424", "0.7551448", "0.7547468", "0.7364453", "0.7354084", "0.7273623", "0.72527796", "0.7202671", "0.7200704", "0.71867555", "0.71740735", "0.7123274", "0.7121945", "0.7015964", "0.6963129", "0.6963096"...
0.8501911
1
Retrieve all pre hooks instances defined in given modules list. This should be used to find prehooks defined through the hook.pre_. This works by looking for all WrappedCommand instances in the modules.
def I6TU(KZ52, yROD): PK_T = [] for yR_P in KZ52: PK_T.extend([eHNT for eHNT in vars(yR_P).values() if isinstance(eHNT, KZjV) and eHNT.cmd_name == yROD]) return PK_T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W3Vj(KZ52):\n dBkI = []\n for yR_P in KZ52:\n dBkI.extend([eHNT for eHNT in vars(yR_P).values() if isinstance(eHNT, an7g)])\n return dBkI", "def n2m9(KZ52):\n wQcs = []\n for yR_P in KZ52:\n wQcs.extend([eHNT for eHNT in vars(yR_P).values() if isinstance(eHNT, oANA)])\n return...
[ "0.69254947", "0.6913865", "0.65838236", "0.64845747", "0.62664574", "0.59398896", "0.58364886", "0.5655316", "0.56100523", "0.5541405", "0.54906523", "0.5490176", "0.5477002", "0.5445075", "0.5385722", "0.5367268", "0.5351752", "0.5347165", "0.53441405", "0.5305065", "0.5293...
0.8385887
0
Retrieve all post hooks instances defined in given modules list. This should be used to find prehooks defined through the hook.pre_. This works by looking for all WrappedCommand instances in the modules.
def eJBc(KZ52, yROD): WFWM = [] for yR_P in KZ52: WFWM.extend([eHNT for eHNT in vars(yR_P).values() if isinstance(eHNT, BhNd) and eHNT.cmd_name == yROD]) return WFWM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I6TU(KZ52, yROD):\n PK_T = []\n for yR_P in KZ52:\n PK_T.extend([eHNT for eHNT in vars(yR_P).values() if isinstance(eHNT, KZjV) and eHNT.cmd_name == yROD])\n return PK_T", "def n2m9(KZ52):\n wQcs = []\n for yR_P in KZ52:\n wQcs.extend([eHNT for eHNT in vars(yR_P).values() if isin...
[ "0.6870609", "0.682181", "0.6655333", "0.6528059", "0.6396974", "0.63498557", "0.6281081", "0.5808531", "0.56597495", "0.56484467", "0.5538372", "0.5305284", "0.52581", "0.5210924", "0.5185951", "0.51803267", "0.51123184", "0.51086754", "0.5105632", "0.50819117", "0.50819117"...
0.8404152
0
Retrieve all startup hook instances defined in given modules list. This should be used to find hooks defined through the hook.startup.
def W3Vj(KZ52): dBkI = [] for yR_P in KZ52: dBkI.extend([eHNT for eHNT in vars(yR_P).values() if isinstance(eHNT, an7g)]) return dBkI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KC1V(KZ52):\n dBkI = []\n for yR_P in KZ52:\n dBkI.extend([eHNT for eHNT in vars(yR_P).values() if isinstance(eHNT, EySZ)])\n return dBkI", "def I6TU(KZ52, yROD):\n PK_T = []\n for yR_P in KZ52:\n PK_T.extend([eHNT for eHNT in vars(yR_P).values() if isinstance(eHNT, KZjV) and eHN...
[ "0.7275964", "0.71730757", "0.67888105", "0.6530597", "0.6429679", "0.6140993", "0.61191297", "0.60928476", "0.6051919", "0.59554166", "0.59248495", "0.59015757", "0.5835552", "0.5827967", "0.58022517", "0.5800928", "0.57943445", "0.57845217", "0.5776109", "0.5773654", "0.572...
0.83811826
0
Return true if the object is a class.
def as9g(object): if HwRy.version_info[0] < 3: return isinstance(object, SnBA.ClassType) or hasattr(object, '__bases__') else: return isinstance(object, type) or hasattr(object, '__bases__')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LJf3(YKHO) -> bool:\n return tq_1.isclass(YKHO.obj)", "def RQUV(YEnM):\n from types import ClassType\n return isinstance(object, (type, ClassType))", "def LJf3(Emd4):\n return as9g(Emd4)", "def as9g(YEnM):\n return isinstance(YEnM, type)", "def iU5b(YEnM):\n try:\n return as9g(...
[ "0.9046394", "0.8783699", "0.855043", "0.8532411", "0.8330688", "0.8263488", "0.81607616", "0.80375916", "0.8029271", "0.8029271", "0.8029271", "0.8029271", "0.8023714", "0.801599", "0.79671115", "0.79671115", "0.79671115", "0.79671115", "0.79671115", "0.79671115", "0.7967111...
0.8611615
2
Return true if the object is a userdefined function.
def CKBl(object): return isinstance(object, SnBA.FunctionType)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVKq(YKHO) -> bool:\n return tq_1.isfunction(YKHO.obj)", "def rVKq(YEnM):\n J_Zw = hasattr(YEnM, '__call__')\n return J_Zw", "def rVKq(YEnM):\n return isinstance(YEnM, L6UG)", "def Pi45(YEnM):\n return tq_1.isfunction(YEnM)", "def VBj0(YEnM):\n return hasattr(YEnM, '__call__')", "de...
[ "0.813973", "0.8031586", "0.788207", "0.7730417", "0.75281006", "0.7414048", "0.7311492", "0.7246735", "0.72461784", "0.72386307", "0.7229898", "0.7198791", "0.7187666", "0.7187134", "0.7098233", "0.70821357", "0.7016697", "0.7005791", "0.694318", "0.6838689", "0.680425", "...
0.78763723
3
Return the module name for a given file, or None.
def JcXq(pmON): U34r = k7X3(pmON) if U34r: return U34r[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ivvY(Ux0P):\n return Hy7s.path.splitext(Hy7s.path.split(Ux0P)[1])[0]", "def CJW_(qaEx):\n gIsw = pmON.basename(qaEx)\n or8S = gIsw.index('.')\n return gIsw[:or8S]", "def AItA(Ux0P):\n return '.'.join(S1zJ(Ux0P).split(Hy7s.path.sep)[2:]).replace('.pyi', '').replace('.__init__', '')", "def i...
[ "0.8171306", "0.77485603", "0.7669457", "0.7240902", "0.7240902", "0.7240902", "0.7240902", "0.7240902", "0.7201239", "0.71034634", "0.7080058", "0.6918756", "0.6905186", "0.690381", "0.68952024", "0.6874248", "0.68627", "0.6787469", "0.67665017", "0.6759056", "0.6676455", ...
0.7109194
9
Return the perfile header as a string.
def Fu0p(YKHO): JRYC = YKHO.date_time ph5q = JRYC[0] - 1980 << 9 | JRYC[1] << 5 | JRYC[2] PfE2 = JRYC[3] << 11 | JRYC[4] << 5 | JRYC[5] // 2 if YKHO.flag_bits & 8: zXJc = UnsC = mfF2 = 0 else: zXJc = YKHO.CRC UnsC = YKHO.compress_size mfF2 = YKHO.file_size dDGN = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TGp9(YKHO) -> str:\n o8Kj = ''\n bn1r = {'bgcolor': YKHO.HEADER_BGCOLOR, 'width': YKHO.HEADER_MIN_WIDTH, 'cellpadding': YKHO.HEADER_CELL_PADDING}\n for G1Hx, Ty9i in bn1r.items():\n o8Kj += f'{G1Hx}=\"{Ty9i}\" '\n return YKHO.HEADER_TPLT.format(attrs=o8Kj, field_name=YKHO.tablename.capitaliz...
[ "0.7643664", "0.74256194", "0.73297", "0.7152664", "0.71386904", "0.71261173", "0.70456904", "0.7042149", "0.70412827", "0.70364934", "0.70341927", "0.7010782", "0.69836086", "0.69370276", "0.6930196", "0.69281214", "0.692565", "0.6917854", "0.6872908", "0.6872908", "0.687290...
0.6631088
45
Set default password for encrypted files.
def zZft(YKHO, zN5h): YKHO.pwd = zN5h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _gfm(YKHO, _gfm):\n YKHO._default_password = _gfm", "def G3s8(GPtr, mWFP):\n WWy5 = U1Hd(GPtr, mWFP)\n gLiZ = vIwR.ascii_letters + vIwR.digits\n u54L = GPtr.passlength\n jTXt = ''.join((tuKI.choice(gLiZ) for YRbF in range(u54L)))\n with open(WWy5, 'w') as Gcbu:\n Gcbu.write(jTXt)\n ...
[ "0.74792", "0.7094865", "0.70758504", "0.6773124", "0.6747723", "0.67250866", "0.6716765", "0.6633612", "0.6613374", "0.65831435", "0.6580861", "0.6578385", "0.6558663", "0.6552936", "0.65139174", "0.6461164", "0.6436886", "0.6348711", "0.6348711", "0.63350326", "0.6315488", ...
0.68554914
3
Create a NormalizedVersion instance from a version string. s {str} The version string. error_on_huge_major_num {bool} Whether to consider an apparent use of a year or full date as the major version number an error. Default True. One of the observed patterns on PyPI before the introduction of `NormalizedVersion` was ver...
def FIMM(YKHO, KCHu, IDvj=True): YKHO.is_final = True YKHO._parse(KCHu, IDvj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gs92(YKHO, KCHu, IDvj=True):\n kUBT = Xvqj.search(KCHu)\n if not kUBT:\n raise v92D(KCHu)\n moMn = kUBT.groupdict()\n SQ3m = []\n XkN1 = YKHO._parse_numdots(moMn['version'], KCHu, False, 2)\n RI5q = moMn.get('extraversion')\n if RI5q not in ('', None):\n XkN1 += YKHO._parse_n...
[ "0.7107433", "0.6714245", "0.6585872", "0.6520609", "0.64277726", "0.63749194", "0.62661827", "0.6225411", "0.61957157", "0.6163767", "0.6091521", "0.60844475", "0.6058149", "0.60501826", "0.6043768", "0.60256344", "0.5981966", "0.59554327", "0.59323925", "0.5896217", "0.5864...
0.6917923
1
Parse 'N.N.N' sequences, return a list of ints. s {str} 'N.N.N...' sequence to be parsed full_ver_str {str} The full version string from which this comes. Used for error strings. drop_trailing_zeros {bool} Whether to drop trailing zeros from the returned list. Default True. pad_zeros_length {int} The length to which to...
def HWku(YKHO, KCHu, jVh8, BZrO=True, cr23=0): xYvp = [] for exwG in KCHu.split('.'): if len(exwG) > 1 and exwG[0] == '0': raise v92D("cannot have leading zero in version number segment: '%s' in %r" % (exwG, jVh8)) xYvp.append(int(exwG)) if BZrO: while xYvp and xYvp[-1] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BvuR(DpZH: str) -> tuple:\n SQ3m = DpZH.split('.')\n v3uw = 3 - len(SQ3m)\n return tuple(map(int, SQ3m + ['0'] * v3uw))", "def BvuR(KCHu):\n SQ3m = []\n for Q7me in rn9A(KCHu.lower()):\n if Q7me.startswith('*'):\n if Q7me < '*final':\n while SQ3m and SQ3m[-1] =...
[ "0.61040497", "0.5884201", "0.57783085", "0.5640119", "0.5566501", "0.55213773", "0.54669225", "0.5465679", "0.5431359", "0.5428997", "0.5428125", "0.54079396", "0.5383995", "0.5278409", "0.5168482", "0.51140594", "0.5090927", "0.5067008", "0.5045555", "0.50389564", "0.503273...
0.82765853
0
Suggest a normalized version close to the given version string. If you have a version string that isn't rational (i.e. NormalizedVersion doesn't like it) then you might be able to get an equivalent (or close) rational version from this function. This does a number of simple normalizations to the given string, based on ...
def lYge(KCHu): try: Mu8M(KCHu) return KCHu except v92D: pass H0q3 = KCHu.lower() for zXzD, RqeO in (('-alpha', 'a'), ('-beta', 'b'), ('alpha', 'a'), ('beta', 'b'), ('rc', 'c'), ('-final', ''), ('-pre', 'c'), ('-release', ''), ('.release', ''), ('-stable', ''), ('+', '.'), ('_', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I2vM(DpZH: Union[Version, str]) -> str:\n if isinstance(DpZH, str):\n try:\n U5Jc = moxu(DpZH)\n except MjcU:\n return DpZH\n else:\n U5Jc = DpZH\n SQ3m = []\n if U5Jc.epoch != 0:\n SQ3m.append(f'{U5Jc.epoch}!')\n SQ3m.append(ZbWC.sub('(\\\\.0)+$...
[ "0.66568375", "0.648985", "0.6401009", "0.6352596", "0.63376325", "0.6243225", "0.62157345", "0.62136537", "0.61475", "0.6114113", "0.59825075", "0.5937628", "0.59303266", "0.58633995", "0.58232623", "0.5793052", "0.5740361", "0.5736614", "0.5699086", "0.56924623", "0.5688785...
0.7800616
0
Return an ASCIIonly JSON representation of a Python string
def iGZj(KCHu): if isinstance(KCHu, str) and HAIz.search(KCHu) is not None: KCHu = KCHu.decode('utf-8') def qx_G(kUBT): KCHu = kUBT.group(0) try: return I0A5[KCHu] except KeyError: exwG = ord(KCHu) if exwG < 65536: return '\\u%...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dC0v(vIwR, m5r4='application/octet-stream'):\n try:\n vIwR = vIwR.decode('utf-8')\n qQXR.dumps(vIwR)\n return vIwR\n except (ValueError, TypeError):\n return b''.join([b'data:', m5r4.encode('utf-8'), b';base64,', WR89.b64encode(vIwR)]).decode('utf-8')", "def npHv(KCHu):\n ...
[ "0.7595443", "0.75040936", "0.7364817", "0.73568475", "0.7339759", "0.7295651", "0.71945006", "0.70916265", "0.7070629", "0.7017924", "0.70114946", "0.6992761", "0.69585735", "0.69281405", "0.69281405", "0.68956417", "0.68935555", "0.6828969", "0.6804453", "0.67824614", "0.67...
0.0
-1
Get the underlying function of a bound method.
def alSV(iked): return getattr(iked, O0go)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IZHR(Emd4, Si4S):\n iked = getattr(Emd4, j2uZ)\n return getattr(iked, 'im_func', iked)", "def Cbam(YKHO):\n uCe9 = YKHO._callable_ref()\n if not uCe9:\n return None\n if not YKHO._class_inst_ref:\n return uCe9\n cztq = YKHO._class_inst_ref()\n if not cztq:\n return N...
[ "0.7262819", "0.7253394", "0.6815959", "0.66971016", "0.65979993", "0.6597292", "0.65698797", "0.648674", "0.64618576", "0.63542855", "0.62290454", "0.61653316", "0.6147491", "0.61454546", "0.6136758", "0.6126806", "0.6071142", "0.6034311", "0.60207844", "0.6020113", "0.60181...
0.72198695
2
Return the virtual environment prefix if running python is "virtualized" (i.e. run inside virtualenv), None otherwise.
def V_Ou(): try: hPYv = HwRy.real_prefix except AttributeError: return None else: if hPYv != HwRy.prefix: return khtY.normpath(HwRy.prefix) else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rdAP():\n return Hy7s.path.basename(HwRy.prefix) if mkPU() else None", "def o7BH():\n if hasattr(HwRy, 'real_prefix'):\n return HwRy.prefix\n if hasattr(HwRy, 'base_prefix') and HwRy.base_prefix != HwRy.prefix:\n return HwRy.prefix\n if 'conda' in HwRy.prefix:\n return HwRy.p...
[ "0.84483933", "0.83114684", "0.7935734", "0.7440339", "0.7398855", "0.73427874", "0.73341787", "0.72373027", "0.7192448", "0.7143875", "0.70904434", "0.70488995", "0.70416343", "0.69798297", "0.6917413", "0.6916451", "0.6849333", "0.6840254", "0.6762483", "0.6743599", "0.6712...
0.853237
0
Split a path into its components. If the path is absolute, the first value of the returned list will be '/', or the drive letter for platforms where it is applicable. Example >>> explode_path("/Users/joe") ["/", "Users", "joe"]
def AgY6(pmON): U5bT = [] Csk6, XP5J = khtY.splitdrive(pmON) while XP5J: sdCG, J3uN = khtY.split(XP5J) if sdCG == XP5J: U5bT.append(sdCG) break if J3uN: U5bT.append(J3uN) XP5J = sdCG if Csk6: U5bT.append(Csk6) return U5bT[::...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eQ8x(pmON):\n return pmON.lstrip(Hy7s.sep).rstrip(Hy7s.sep).split(Hy7s.sep)", "def KkWy(YKHO, pmON):\n if pmON[0] != Hy7s.path.sep:\n raise ValueError('%s is not a valid path', pmON)\n pmON = pmON[len(Hy7s.path.sep):]\n if Hy7s.path.sep in pmON:\n return pmON.split(Hy7s.path.sep, 1)...
[ "0.79355323", "0.78957653", "0.7833992", "0.78202397", "0.778164", "0.77744365", "0.751111", "0.7475734", "0.74582833", "0.7447509", "0.72678393", "0.71987", "0.7197555", "0.7197555", "0.71846336", "0.7167687", "0.7154364", "0.71377736", "0.7119941", "0.7071525", "0.70340496"...
0.7837971
2
Renders the main blog page
def hqip(YKHO, G3U_, _1Cp='', YXxD=''): DvSP = NCls.GqlQuery('SELECT * FROM BlogEntry ORDER BY created DESC') Tj1O = NCls.GqlQuery('SELECT * FROM Comment ORDER BY created DESC') return YKHO.render('front.html', blog_entries=DvSP, user_id=G3U_, err_post_id=_1Cp, err_msg=YXxD, comments=Tj1O)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ntlQ():\n return TvZl('BlogPost.html')", "def b8V_(YKHO):\n mrVf = wHLq.all().order('-created')\n YKHO.response.out.write(rPXJ.render('blog/templates/index.html', {'articles': mrVf}))", "def A8Sk():\n return TvZl('main/about_this_blog.html', title='About This Blog')", "def Eh6n():\n return...
[ "0.8316119", "0.80918634", "0.7955614", "0.7718338", "0.7707344", "0.76692593", "0.76402885", "0.76033497", "0.7578249", "0.7529108", "0.7508788", "0.74786955", "0.74753684", "0.74707735", "0.7388909", "0.7382737", "0.7337211", "0.730826", "0.73014015", "0.72965807", "0.71798...
0.6604078
57
| The list of bonds within this complex
def T2Cp(YKHO): for kUkU in YKHO.residues: for W0I0 in kUkU.bonds: yield W0I0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T2Cp(YKHO):\n return iter(YKHO._bonds)", "def _Oly(YKHO):\n return Y_Uk.get_bonds(YKHO)", "def _Oly(YKHO):\n kNqL = YKHO.get_ligand_in_rdkit()\n T2Cp = x84j(kNqL)\n return T2Cp", "def T2Cp(YKHO):\n for W0I0 in YKHO._bonds:\n yield W0I0", "def T2Cp(YKHO):\n return (W0I0 for W...
[ "0.81215113", "0.778484", "0.75332093", "0.7511724", "0.7332012", "0.7258845", "0.7251893", "0.707231", "0.70080245", "0.68939924", "0.67015404", "0.6700799", "0.64558685", "0.6449446", "0.644529", "0.64229405", "0.63160515", "0.6278076", "0.6249129", "0.6156374", "0.61482424...
0.7329141
5
3x3 convolution with padding
def Myly(UUZO, sYyA, _0fC=1): if _0fC == 1: return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False) if _0fC == 2: return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=2, bias=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())", "def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)", "def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,...
[ "0.78404945", "0.7541354", "0.753996", "0.7491138", "0.7434801", "0.74207747", "0.73415834", "0.7320252", "0.7299599", "0.7287539", "0.72799367", "0.72799367", "0.7257735", "0.7226928", "0.72204214", "0.7214909", "0.7214909", "0.7210775", "0.7198222", "0.71639067", "0.7161914...
0.0
-1
Normalize all values in the array between 0 and 1
def n4XC(qw7D): return (qw7D - qw7D.min()) / (qw7D.max() - qw7D.min())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n4XC(qw7D):\n return (qw7D - qw7D.min()) / (qw7D.max() - qw7D.min())", "def NkkI(ezWE):\n return ezWE / oyIN.mean(ezWE)", "def NkkI(qw7D):\n vZBV = oyIN.sum(qw7D)\n for YRbF in range(0, len(qw7D)):\n qw7D[YRbF] = qw7D[YRbF] / vZBV\n return qw7D", "def NkkI(qw7D):\n qw7D -= qw7D.m...
[ "0.8375123", "0.8352421", "0.8332647", "0.8311871", "0.82457936", "0.8230752", "0.8154172", "0.8138561", "0.8099276", "0.80575293", "0.8042622", "0.80138135", "0.7969062", "0.7964322", "0.79175353", "0.7862815", "0.78509045", "0.782595", "0.77988446", "0.776462", "0.77507514"...
0.84187967
0
True iff the `other` has the same ranges of this.
def xa14(YKHO, Elif): return YKHO.premises == Elif.premises and YKHO.consequence == Elif.consequence
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if not isinstance(Elif, AVsp):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def GGkd(YKHO, Elif):\n return YKHO.start <= Elif.start and YKHO.end >= Elif.end and (not YKHO == Elif)", "def PZIW(YKHO, Elif):\n return YKHO.max.x > Elif.min.x and YKHO.min.x < ...
[ "0.76251066", "0.7509332", "0.74659103", "0.7429198", "0.7340093", "0.7322976", "0.7316734", "0.7311318", "0.73075926", "0.73022", "0.7296449", "0.7296449", "0.7278103", "0.7240792", "0.72218055", "0.72026366", "0.7165273", "0.7165269", "0.7149442", "0.7149442", "0.7149314", ...
0.0
-1
Setup the global logging settings
def tqPq(YKHO): for DCgT in G9jH.root.handlers[:]: G9jH.root.removeHandler(DCgT) L1ND = G9jH.DEBUG if YKHO.config.is_logging_debug_enabled() else G9jH.INFO if YKHO.config.is_logging_enabled(): JyWZ = YKHO.config.get_log_filepath() jmHs = JRYC.now().isoformat() NOSE = jmHs.rep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EsWC(YKHO):\n from olympia.lib.log_settings_base import log_configure\n log_configure()", "def VdIj():\n G9jH.config.dictConfig(GPtr)", "def tqPq():\n G9jH.config.fileConfig('config/logging.conf')", "def tqPq(YKHO):\n if YKHO.debug:\n G9jH.basicConfig(level=G9jH.DEBUG)", "def tqPq...
[ "0.8339501", "0.82292235", "0.81548095", "0.7984211", "0.79276955", "0.7885257", "0.7855275", "0.7853047", "0.7800576", "0.7800576", "0.7798611", "0.779081", "0.77880454", "0.7713295", "0.7692062", "0.7684307", "0.7683259", "0.76432085", "0.76281416", "0.76203233", "0.7611889...
0.8218137
2
Return observation of current player.
def Y5NT(YKHO): y0cW = YKHO._player_prefixes[YKHO._player] if y0cW + YKHO._rgb_observation in YKHO._observation_names: return YKHO._env.observation(y0cW + YKHO._rgb_observation) elif YKHO._rgb_observation in YKHO._observation_names: return YKHO._env.observation(YKHO._rgb_observation) rai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nAM4(YKHO):\n return YKHO.players[YKHO.current_player]", "def mCd_(YKHO):\n return YKHO.current_player", "def nAM4(YKHO):\n return YKHO.player", "def nAM4(YKHO):\n return YKHO.player", "def mCd_(YKHO):\n return YKHO.__player", "def GFCh(YKHO):\n return YKHO.player", "def oyg0(YKHO...
[ "0.73589706", "0.72987646", "0.72528696", "0.72528696", "0.7218338", "0.7137524", "0.71348274", "0.70866233", "0.70866233", "0.70866233", "0.70866233", "0.70866233", "0.70836926", "0.70747244", "0.70483595", "0.70483595", "0.70067227", "0.69593036", "0.69402623", "0.6934699", ...
0.74172527
0
Draw a scene in the canvas. scene_left, scene_top, scene_right, and scene_bottom contain the extent in pixels of the region where the scene should be drawn.
def TLLg(g_NO, vW9P, jpBX, ZDI_, hhfR): iCcK = vW9P + 500 bsp0 = jpBX + 250 x7yD = 150 fBhd(g_NO, 0, 350) NvgT(g_NO, 0, 0) z8OK(g_NO, iCcK, bsp0, x7yD) z8OK(g_NO, iCcK - 200, bsp0, x7yD) z8OK(g_NO, iCcK - 75, bsp0, x7yD) z8OK(g_NO, iCcK - 100, bsp0 + 10, x7yD) z8OK(g_NO, iCcK + 1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TLLg(g_NO, vW9P, jpBX, ZDI_, hhfR):\n pRhA = vW9P - 150\n ZnbF = jpBX - 150\n pN0F = vW9P + 150\n lP2S = jpBX + 150\n wUAA = 1\n CcP5 = 1\n cfVq = 1\n LeXw = 1\n XaAN = vW9P\n qsuT = hhfR / 4 * 3\n O9SQ = ZDI_\n v1ql = hhfR\n gpJP = vW9P\n OARN = hhfR / 4 * 3\n UziW...
[ "0.70553154", "0.6868152", "0.6682746", "0.61504614", "0.61242896", "0.604762", "0.5982231", "0.59357345", "0.5897759", "0.5751872", "0.57460684", "0.5745135", "0.56769264", "0.5647739", "0.5612068", "0.55852276", "0.5571919", "0.556889", "0.5547926", "0.553221", "0.5529077",...
0.70669043
0
Test that we can determine if an object is iterable.
def qEgM(): assert aese.is_iterable('test') is True assert aese.is_iterable([1, 2, 3]) is True assert aese.is_iterable({}) is True assert aese.is_iterable(0) is False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfZ5(YEnM):\n return isinstance(YEnM, iu5r)", "def GfZ5(Nx7B):\n try:\n iter(Nx7B)\n return True\n except:\n return False", "def GfZ5(YEnM):\n try:\n iter(YEnM)\n except TypeError:\n return False\n else:\n return True", "def GfZ5(YEnM):\n try...
[ "0.8737177", "0.8561554", "0.8552727", "0.85505533", "0.8526694", "0.8502645", "0.8500397", "0.8479295", "0.8475749", "0.84708273", "0.84618795", "0.8429008", "0.83920914", "0.83920914", "0.83599967", "0.83276916", "0.83246785", "0.83214486", "0.82847327", "0.82803947", "0.82...
0.7901609
33
cosine of angle, in degrees
def dzI3(rOAz): return epAf.cos(YYbj * rOAz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dzI3(YylR):\n assert type(YylR) == int or type(YylR) == float\n return epAf.cos(epAf.radians(YylR))", "def dzI3(YylR):\n Ylbp = oyIN.cos(oyIN.radians(YylR))\n return Ylbp", "def dzI3(YylR):\n Ylbp = oyIN.cos(oyIN.radians(YylR))\n return Ylbp", "def tFNH(Emd4, _IXK):\n return epAf.cos...
[ "0.8251767", "0.818567", "0.818567", "0.80248404", "0.79596806", "0.7926693", "0.7904884", "0.78953016", "0.7877448", "0.7864948", "0.7837796", "0.7810578", "0.7775513", "0.7773028", "0.7717909", "0.7695302", "0.76735914", "0.7658334", "0.7615556", "0.75453335", "0.7454853", ...
0.7477022
20
arccosine of x, in degrees
def V7vq(WKvO): return Nb4S * epAf.acos(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D4LM(WKvO):\n if WKvO < -1:\n return xlPy.arccos(-1)\n if WKvO > 1:\n return xlPy.arccos(1)\n else:\n return xlPy.arccos(WKvO)", "def fH9s(YKHO, WKvO):\n raise NotImplementedError", "def avIK(WKvO):\n return epAf.cos(WKvO)", "def ZXjj(kKsp):\n return fH9s(kKsp)", ...
[ "0.82242614", "0.80810636", "0.8039156", "0.8015114", "0.7965138", "0.79495066", "0.7920682", "0.79193455", "0.7885288", "0.78737736", "0.77372813", "0.7654593", "0.7635791", "0.75593436", "0.7542138", "0.75181574", "0.7507786", "0.7502163", "0.7500736", "0.74632573", "0.7394...
0.69820005
41
Returns 1 if x < 0, 1 otherwise
def Zihr(WKvO): abs(WKvO) if WKvO < 0: return -1 else: return 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(WKvO: float) -> int:\n if WKvO < 0:\n return -1\n elif WKvO < 1:\n return 0\n else:\n return 1", "def Zihr(WKvO):\n return -1 if WKvO < 0 else 1", "def Zihr(WKvO):\n return 1 if WKvO > 0 else 0", "def h3bk(WKvO):\n return WKvO * (WKvO > 0.0)", "def h3bk(WKvO)...
[ "0.8156477", "0.7831693", "0.77817816", "0.76679295", "0.76679295", "0.763561", "0.7619522", "0.75812674", "0.75530064", "0.75347257", "0.74742293", "0.74576247", "0.74528646", "0.742661", "0.7409551", "0.7349553", "0.7303171", "0.7299697", "0.7285889", "0.72842085", "0.72561...
0.7173748
26
Returns the magnitude of vector a
def Trjk(jzdc): Y0b1 = 0 for d_Ba in jzdc: Y0b1 += d_Ba * d_Ba return epAf.sqrt(Y0b1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(iArr):\n return tk5Y(oyIN.sum(oyIN.square(iArr)), 2)", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def YXbZ(iArr):\n return epAf.sqrt(sum([iArr[YRbF] ** 2 for YRbF in range(len(iArr))]))", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def Y...
[ "0.8414354", "0.82706016", "0.82384044", "0.81607765", "0.8053132", "0.7716931", "0.76566446", "0.7640457", "0.7639689", "0.7578405", "0.751839", "0.74575347", "0.73984015", "0.73318744", "0.7308353", "0.72828776", "0.7196233", "0.71798444", "0.7155669", "0.7101879", "0.70790...
0.7555825
10
Plots a grid of ramdom sampled images
def jUD3(jQ3Z, ARTs=None, usx6=5, ZLJ_=5, wytA=(8, 8)): if not issubclass(type(ARTs), K8LQ) and ARTs is not None: raise ValueError('noise is not of valid type Noise') LZpg = QrM1.figure(figsize=wytA) mvm2 = usx6 * ZLJ_ for YRbF, (or8S, rdlD) in enumerate(jQ3Z.sample(mvm2).iterrows()): pm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW1D(YKHO):\n DbyF = (10, 10)\n wytA = (10, 10)\n cDK5 = 100\n EcVT, bGrB = YKHO.generate_generator_prediction_samples(cDK5)\n YKHO.grid_plot(EcVT, dimensions=DbyF, figsize=wytA)", "def kj9G(gGnb):\n LZpg = QrM1.figure(figsize=(8, 8))\n i912 = Klo7.GridSpec(10, 1)\n i912.update(wspace...
[ "0.7446601", "0.7220527", "0.7056319", "0.6976066", "0.69242835", "0.6922109", "0.68671083", "0.6845929", "0.67894554", "0.6781239", "0.67295", "0.67195827", "0.67026234", "0.6692535", "0.66824055", "0.6672075", "0.6652808", "0.66441286", "0.6630079", "0.65805113", "0.6576684...
0.0
-1
Plots a grid of image from an image list
def NDFl(Yw_3, usx6, ZLJ_, wytA=(8, 8)): LZpg = QrM1.figure(figsize=wytA) for YRbF, VXjJ in enumerate(Yw_3): LZpg.add_subplot(usx6, ZLJ_, YRbF + 1) QrM1.imshow(VXjJ, cmap=QrM1.cm.gray) QrM1.axis('off') QrM1.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U0xK(Khnv, mWFP):\n wK7l = 9\n LZpg, MPlV = QrM1.subplots(wK7l, wK7l)\n LZpg.subplots_adjust(hspace=0.5, wspace=0.5)\n for YRbF, aNZO in enumerate(MPlV.flat):\n if YRbF >= len(Khnv):\n break\n aNZO.imshow(Khnv[YRbF])\n aNZO.set_xticks([])\n aNZO.set_yticks([])...
[ "0.8049861", "0.8026962", "0.770838", "0.75578797", "0.7522936", "0.7521451", "0.75080764", "0.74945486", "0.748154", "0.748154", "0.748154", "0.748154", "0.7478031", "0.7458213", "0.7436604", "0.73843753", "0.7381646", "0.7371568", "0.7367944", "0.73350453", "0.7328971", "...
0.85044837
0
Plots model's loss cuver
def Qwuk(FLXQ): QrM1.plot(FLXQ.history['loss']) QrM1.plot(FLXQ.history['val_loss']) QrM1.title('model loss') QrM1.ylabel('loss') QrM1.xlabel('epoch') QrM1.legend(['train', 'val'], loc='upper left') QrM1.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AQtZ(YKHO):\n QrM1.plot(YKHO.losses)\n QrM1.xlabel('epochs')\n QrM1.ylabel('Loss')\n QrM1.show()", "def Ysuu(N8L0):\n WKvO = [YRbF for YRbF in range(len(N8L0))]\n QrM1.plot(WKvO, N8L0)\n QrM1.title('Loss per batch')\n QrM1.xlabel('Batch')\n QrM1.ylabel('Loss')\n QrM1.show()", ...
[ "0.70332944", "0.70192", "0.70144486", "0.69879425", "0.6935591", "0.68971395", "0.6872228", "0.68457663", "0.6830203", "0.67945594", "0.67686415", "0.6729173", "0.66682404", "0.662857", "0.6618175", "0.6514279", "0.64965415", "0.6495061", "0.6486355", "0.64823353", "0.647547...
0.69138956
5
Attaches a bundle object
def X6a1(YKHO, wHSX): if not isinstance(wHSX, hXNB): raise J4VN('BlueprintBundle object passed to attach_bundle must be of type {0}'.format(hXNB)) elif len(wHSX.blueprints) == 0: raise KAyM('Bundles must contain at least one flask.Blueprint') elif YKHO._bundle_exists(wHSX.path): rais...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHSX(YKHO, wHSX):\n YKHO._bundle = wHSX", "def kJOu(VQ6Z, twVI):\n if hasattr(VQ6Z, 'lcBundle'):\n VQ6Z.lcBundle.append(twVI)\n else:\n VQ6Z.setBundleFlag(True)\n VQ6Z.lcBundle = [twVI]", "def tnzA(YKHO):\n tnzA = wHSX.Bundle(YKHO.screen)\n YKHO.currentBundle = tnzA", ...
[ "0.77181", "0.7600456", "0.67722094", "0.6585325", "0.65190184", "0.6516557", "0.6509172", "0.63615155", "0.63537973", "0.6326941", "0.6247678", "0.62126565", "0.603794", "0.5928098", "0.5855932", "0.5849285", "0.5846344", "0.58379275", "0.5693657", "0.5692607", "0.5685604", ...
0.71990126
2
Sets the B1 pressure sensor.
def OKsK(YKHO, BWXx): YKHO.__pressure_a2 = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BfdA(YKHO, BWXx):\n YKHO.__pressure_b1 = BWXx", "def wZXj(YKHO, BWXx):\n YKHO.__pressure_status_b1 = BWXx", "def nsxm(YKHO, BWXx):\n YKHO.__pressure_a1 = BWXx", "def BfdA(YKHO):\n return YKHO.__pressure_b1", "def xfng(YKHO, BWXx):\n YKHO.__pressure_b2 = BWXx", "def okQh(YKHO, BWXx):\n ...
[ "0.8788659", "0.7971305", "0.7662926", "0.75575966", "0.70720094", "0.6977461", "0.67360836", "0.66375786", "0.6480722", "0.64041334", "0.6386063", "0.63381726", "0.6050527", "0.6050527", "0.60453886", "0.6020989", "0.60045826", "0.5950563", "0.5868836", "0.5824328", "0.56869...
0.6185728
12
Sets the B1 pressure sensor.
def BfdA(YKHO, BWXx): YKHO.__pressure_b1 = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wZXj(YKHO, BWXx):\n YKHO.__pressure_status_b1 = BWXx", "def nsxm(YKHO, BWXx):\n YKHO.__pressure_a1 = BWXx", "def BfdA(YKHO):\n return YKHO.__pressure_b1", "def xfng(YKHO, BWXx):\n YKHO.__pressure_b2 = BWXx", "def okQh(YKHO, BWXx):\n YKHO.__pressure_status_a1 = BWXx", "def wZXj(YKHO):\n...
[ "0.7970358", "0.7662901", "0.75555557", "0.7070024", "0.69777954", "0.6734262", "0.6636193", "0.6477748", "0.6401158", "0.63886523", "0.6337507", "0.6184974", "0.6050871", "0.6050871", "0.6044263", "0.60239816", "0.60069406", "0.59481037", "0.5869505", "0.5824147", "0.5689942...
0.8787302
0
Returns the value of the B2 pressure sensor.
def xfng(YKHO): return YKHO.__pressure_b2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xfng(YKHO, BWXx):\n YKHO.__pressure_b2 = BWXx", "def NPTb(YKHO):\n return YKHO.__pressure_status_b2", "def OKsK(YKHO):\n return YKHO.__pressure_a2", "def EDGR(YKHO):\n jGRS = XtFw.MPL3115A2_ReadByte(O6qs)\n if jGRS & 1 << MOfU == 0:\n XtFw.MPL3115A2_ToggleOneShot()\n PE7u = XtFw....
[ "0.79281646", "0.7722109", "0.76337314", "0.72518563", "0.71145153", "0.7050327", "0.6969809", "0.6828554", "0.6819635", "0.6761603", "0.6761603", "0.67483", "0.66795635", "0.6674815", "0.6606076", "0.6584395", "0.65597177", "0.6520269", "0.64645773", "0.64383954", "0.6352477...
0.8654809
0
Sets the B2 pressure sensor.
def xfng(YKHO, BWXx): YKHO.__pressure_b2 = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NPTb(YKHO, BWXx):\n YKHO.__pressure_status_b2 = BWXx", "def OKsK(YKHO, BWXx):\n YKHO.__pressure_a2 = BWXx", "def xfng(YKHO):\n return YKHO.__pressure_b2", "def BfdA(YKHO, BWXx):\n YKHO.__pressure_b1 = BWXx", "def GtYT(YKHO, BWXx):\n YKHO.__pressure_status_a2 = BWXx", "def NPTb(YKHO):\n...
[ "0.7905554", "0.76826006", "0.74639124", "0.68960893", "0.68683213", "0.65791744", "0.64807194", "0.6339234", "0.62537", "0.6173194", "0.6084729", "0.6065166", "0.6010871", "0.599332", "0.59785527", "0.59739435", "0.5960365", "0.5948691", "0.59078294", "0.58801925", "0.587662...
0.8792988
0
Returns the current connected state.
def gela(YKHO): return YKHO.__connected
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cMf8(YKHO):\n return YKHO.__hub_state", "def gela(YKHO):\n return YKHO._connected", "def gela(YKHO):\n return YKHO._connected", "def ja6o(YKHO):\n return YKHO.cur_nodes", "def ja6o(YKHO):\n return YKHO.cur_node", "def c0mt(YKHO):\n return YKHO.__current_state", "def Z48N(YKHO):\n ...
[ "0.779519", "0.74369454", "0.74369454", "0.7377041", "0.7277514", "0.72715616", "0.72029036", "0.7195854", "0.71895844", "0.71665317", "0.71601063", "0.7123469", "0.7123469", "0.712081", "0.71085143", "0.7075855", "0.7075451", "0.70578563", "0.70462924", "0.7045324", "0.70453...
0.75004214
1
Creates Tensorflow graph model
def mIH9(YKHO): YKHO.generate_placeholders() JnVq = [] for bGrB in range(YKHO.num_layers): VmPb = ZylS.contrib.rnn.LSTMCell(YKHO.num_hidden, state_is_tuple=True) VmPb = ZylS.contrib.rnn.DropoutWrapper(VmPb, output_keep_prob=YKHO.dropout_placeholder) JnVq.append(VmPb) E5BI = ZylS....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zgmU(YKHO):\n with qJi5.FastGFile(YKHO.model_path, 'rb') as eHNT:\n r8JX = ZylS.GraphDef()\n r8JX.ParseFromString(eHNT.read())\n bGrB = ZylS.import_graph_def(r8JX, name='')", "def zgmU():\n with ZylS.gfile.FastGFile(h2O5, 'rb') as eHNT:\n r8JX = ZylS.GraphDef()\n r8JX...
[ "0.8240859", "0.8099945", "0.8099945", "0.80191785", "0.80005234", "0.7889798", "0.7868108", "0.7795559", "0.7789043", "0.7780146", "0.77489203", "0.76786083", "0.76786083", "0.76635456", "0.76617855", "0.76250327", "0.7590092", "0.7431238", "0.73800975", "0.735439", "0.73348...
0.0
-1
returns a copy of the passed instance.
def GGKY(_yCA): Wq02 = [pOqt.name for pOqt in _yCA._meta.fields] lDtL = {mWFP: getattr(_yCA, mWFP) for mWFP in Wq02} return _yCA.__class__(**lDtL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YK...
[ "0.8498827", "0.8498827", "0.8498827", "0.8498827", "0.8498827", "0.8475271", "0.83422416", "0.83422416", "0.83422416", "0.83422416", "0.83422416", "0.83364034", "0.8312524", "0.8299797", "0.8225388", "0.8225388", "0.8225388", "0.8225388", "0.8205844", "0.81678456", "0.816050...
0.0
-1
Initialize our exception instance with our class level message.
def FIMM(YKHO, Ol8d=None): if Ol8d is None: if YKHO.message is None: Ol8d = YKHO.__class__.__name__ else: Ol8d = YKHO.message super(fEna, YKHO).__init__(Ol8d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d, *qIxc, **B2fa):\n Exception.__init__(YKHO, *qIxc, **B2fa)\n YKHO.msg = Ol8d", "def FIMM(YKHO, Ol8d):\n Exception.__init__(YKHO, Ol8d)", "def FIMM(YKHO, Ol8d):\n Exception.__init__(YKHO, Ol8d)", "def FIMM(YKHO, Ol8d):\n Exception.__init__(YKHO, Ol8d)", "def FIMM(YKHO, Ol8...
[ "0.82382596", "0.7821305", "0.7821305", "0.7821305", "0.7821305", "0.7637942", "0.7620972", "0.7582832", "0.7503169", "0.7417296", "0.73903257", "0.73903257", "0.738331", "0.73595405", "0.7354137", "0.7286101", "0.72790873", "0.7245721", "0.7230217", "0.7206258", "0.7200045",...
0.6608076
76
Initialize our Timeout exception. This takes an optional keywordonly argument of ``original_exception``.
def FIMM(YKHO, Ol8d=None, **B2fa): YKHO.original_exception = B2fa.pop('exception', None) super(Grbl, YKHO).__init__(Ol8d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, pWYt):\n YKHO.__dict__.update(pWYt.__dict__)\n YKHO.originalException = pWYt", "def FIMM(YKHO, Dq8G: Exception) -> None:\n super().__init__(str(Dq8G))\n YKHO.original_error: Exception = Dq8G", "def FIMM(YKHO, f2RH: int, G112: Optional[str]=None, gTi_: Optional[str]=None) -> None:\n ...
[ "0.67054665", "0.6466469", "0.6384689", "0.6301422", "0.62933767", "0.6081728", "0.60107636", "0.5619497", "0.5599039", "0.553112", "0.5495684", "0.5473358", "0.5456993", "0.54301673", "0.5393758", "0.53781086", "0.5374395", "0.53683656", "0.5366148", "0.5347436", "0.53292197...
0.7807335
0
Produce possibly shuffled indices and labels.
def bb6j(Ep8u, eAYh, EuoY, AIZ9): VyGp = Ep8u * eAYh q9b1 = int(EuoY * VyGp) rw6h = ZylS.random.shuffle(ZylS.cast(q9b1 * [1] + (VyGp - q9b1) * [0], ZylS.int32)) _0VL = ZylS.sort(PraB(VyGp, AIZ9)[:, :5], axis=1) _0VL = dG8Q(_0VL) yzXZ = ZylS.where(ZylS.less_equal(ZylS.random.uniform((VyGp, 1)), 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hXNa(YKHO):\n YKHO.indices = YKHO._generate_indices()", "def BkuM(YKHO):\n Yw_3 = YKHO.images[:]\n Crrw = YKHO.labels[:]\n YKHO.images = []\n YKHO.labels = []\n or8S = oyIN.random.permutation(len(Crrw))\n for YRbF in or8S:\n YKHO.images.append(Yw_3[YRbF])\n YKHO.labels.appe...
[ "0.68983436", "0.68742603", "0.6868397", "0.6862222", "0.6862222", "0.68276983", "0.6763582", "0.6749252", "0.6721616", "0.665756", "0.665756", "0.665756", "0.665756", "0.665756", "0.665756", "0.66380155", "0.66263664", "0.64835495", "0.6416603", "0.641277", "0.63977265", "...
0.67412513
8
Converts a onehot tensor output from an argmax / argmin function to a tensor containing indices from the input tensor from which the result of the argmax / argmin was obtained.
def auzG(vhpA, tpio, c_Zo): if tpio is None: Aofo = vhpA.flatten() Aofo = Aofo * ht2j.tensor([YRbF for YRbF in range(vhpA.nelement())]) return Aofo.sum() else: zNig = [1] * vhpA.dim() zNig[tpio] = vhpA.size(tpio) Aofo = vhpA * ht2j.tensor([YRbF for YRbF in range(v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D5oS(oUTG):\n return '%0*d' % (gpkm, 10 ** (gpkm - oUTG - 1))", "def _rLv(cHmM: List) -> x1iM:\n _0VL = []\n for KLLm in cHmM:\n _0VL.append(q1NN(KLLm))\n return _0VL", "def hFjq(LVAh):\n _0VL = oyIN.zeros(LVAh.shape[1])\n NI4b.set_trace()\n return _0VL", "def kj8B(_0VL, bKPk)...
[ "0.68641084", "0.6826206", "0.6674903", "0.66616064", "0.66549283", "0.65425444", "0.6491099", "0.64337766", "0.6408474", "0.64073515", "0.6389614", "0.6389614", "0.6386142", "0.6363506", "0.6325414", "0.6319191", "0.6286033", "0.6272589", "0.62657255", "0.6246267", "0.624561...
0.6648753
5
Returns a representation of the tensor useful for debugging.
def wHJl(YKHO): from crypten.debug import debug_mode weUZ = YKHO.share cVwz = YKHO._tensor.get_plain_text() if debug_mode() else 'HIDDEN' Lbt7 = YKHO.ptype repr = f'MPCTensor(\n\t_tensor={weUZ}\n\tplain_text={cVwz}\n\tptype={Lbt7}\n)' return repr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return f'Tensor<shape={YKHO.shape}, dtype={YKHO.dtype}>'", "def wHJl(YKHO):\n from crypten.debug import debug_mode\n if not hasattr(YKHO, '_tensor'):\n return 'MPCTensor(None)'\n weUZ = YKHO.share\n cVwz = YKHO._tensor.get_plain_text() if debug_mode() else 'HIDDEN'\n Lb...
[ "0.8158141", "0.7476679", "0.74191594", "0.74191594", "0.741042", "0.73395264", "0.73385733", "0.7142563", "0.70376164", "0.70044124", "0.7001827", "0.68902576", "0.683275", "0.6825515", "0.6804844", "0.6758064", "0.6741983", "0.6738291", "0.66238034", "0.6597359", "0.6573807...
0.7305477
7
Returns self > y
def _ger(YKHO, LVAh): return (-YKHO + LVAh)._ltz()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhDa(YKHO, LVAh):\n return 1 - YKHO.lt(LVAh)", "def dZ8a(YKHO, WKvO, LVAh):\n return WKvO > LVAh", "def cIT_(YKHO, LVAh):\n return YKHO.ge(LVAh) - YKHO.gt(LVAh)", "def xeeX(YKHO, WKvO, LVAh):\n return WKvO >= LVAh", "def jmxi(YKHO, Elif):\n return YKHO.value > Elif.value", "def jmxi(YK...
[ "0.7983921", "0.78609574", "0.780958", "0.7699273", "0.76325893", "0.76325893", "0.76325893", "0.7621113", "0.7586958", "0.7461655", "0.7452814", "0.74371976", "0.742474", "0.7403559", "0.73541605", "0.73201925", "0.7290416", "0.7266788", "0.7266788", "0.7261112", "0.725325",...
0.806911
0
Returns self < y
def D5g7(YKHO, LVAh): return (YKHO - LVAh)._ltz()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JWbp(YKHO, Elif):\n if YKHO.y != Elif.y:\n return YKHO.y < Elif.y\n return YKHO.x < Elif.x", "def rhDa(YKHO, LVAh):\n return 1 - YKHO.lt(LVAh)", "def JWbp(YKHO, Elif):\n return YKHO.x < Elif.x", "def TPjt(YKHO, Elif):\n return YKHO <= Elif", "def sklG(YKHO, WKvO, LVAh):\n retur...
[ "0.8070893", "0.79926145", "0.7857722", "0.7553175", "0.7540892", "0.75100523", "0.7508378", "0.7502365", "0.7487147", "0.74700934", "0.74650216", "0.74618644", "0.746117", "0.7448192", "0.74409324", "0.7440417", "0.7409533", "0.74072933", "0.74072933", "0.74051595", "0.73867...
0.7531908
5
Returns self != y
def d_5N(YKHO, LVAh): return 1 - YKHO.eq(LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, LVAh):\n return YKHO.value == LVAh", "def Vdqg(YKHO, Elif):\n return YKHO.x != Elif.x or YKHO.y == Elif.y", "def hVgE(YKHO, WKvO, LVAh):\n return WKvO != LVAh", "def Vdqg(YKHO, Elif):\n return YKHO._w != Elif._w", "def Vdqg(YKHO, Elif):\n return not YKHO._coords == Elif._coord...
[ "0.88512576", "0.80547523", "0.79290044", "0.7570778", "0.7564896", "0.7551645", "0.7534923", "0.75348485", "0.7533767", "0.7527158", "0.75196064", "0.7484249", "0.7484249", "0.7483195", "0.7483195", "0.7483195", "0.7483195", "0.7483195", "0.7466759", "0.74646467", "0.7464568...
0.787721
3
Compute a Rectified Linear function on the input tensor.
def QZir(YKHO): return YKHO * (1 - YKHO._ltz(scale=False))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ItmW(YKHO, yzQ0, JfyU):\n cGyo = vuvg.relu(yzQ0)\n q7RX = yzQ0 - cGyo\n nkWj = JfyU(YKHO.vmin, cGyo) + JfyU(YKHO.vmax, q7RX)\n uk0H = JfyU(YKHO.vmax, cGyo) + JfyU(YKHO.vmin, q7RX)\n return uP6B(ht2j.min(nkWj, uk0H), ht2j.max(nkWj, uk0H), YKHO.loss)", "def m2Zb(YKHO, g4y1):\n return vuvg.lin...
[ "0.6419759", "0.6157245", "0.59364855", "0.59364855", "0.58554226", "0.58299947", "0.57918245", "0.57832736", "0.5780489", "0.57287353", "0.57259876", "0.57215625", "0.57195604", "0.57096016", "0.5706122", "0.5696943", "0.5586628", "0.55764043", "0.55636746", "0.55395156", "0...
0.0
-1
Returns 1 for all elements that have the highest value in the appropriate dimension of the tensor.
def QBoZ(YKHO, tpio=None): tpio = -1 if tpio is None else tpio k3C5 = YKHO.size(tpio) if YKHO.size(tpio) > 1 else 2 jzdc = YKHO.expand(k3C5 - 1, *YKHO.size()) Fg_i = mtc6.mpc.stack([YKHO.roll(YRbF + 1, dims=tpio) for YRbF in range(k3C5 - 1)]) Aofo = (jzdc >= Fg_i).sum(dim=0) return Aofo >= k3C5 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sWET(vhpA, jDK_=2):\n return ZylS.argmax(ZylS.cast(ZylS.greater(vhpA, 0), ZylS.int64), axis=jDK_)", "def q1NN(vhpA, tpio):\n pass", "def q1NN(WKvO):\n return ht2j.max(WKvO, dim=1)[1]", "def max(YKHO, tpio=None):\n return 0.0", "def JiQr(LFlW: Tensor, _tIi: [Tensor, numbers.Number]):\n re...
[ "0.7023283", "0.67179656", "0.6568368", "0.64126927", "0.6269096", "0.6234576", "0.6168871", "0.6125504", "0.6119115", "0.6116857", "0.6083893", "0.6070893", "0.6054485", "0.604908", "0.6010674", "0.60055554", "0.60055554", "0.6001529", "0.59982556", "0.59925723", "0.59914494...
0.57315695
66
Returns the indices of the minimum value of all elements in the `input` tensor.
def WHwV(YKHO, tpio=None, c_Zo=False, KLLm=False): return (-YKHO).argmax(dim=tpio, keepdim=c_Zo, one_hot=KLLm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hYtw(YKHO):\n uYq_ = YKHO.__d.min()\n qoiF = oyIN.argwhere(YKHO.__d == uYq_)\n LUkp, uy6C = (0, 0)\n for P2GO in range(len(qoiF)):\n LUkp, uy6C = qoiF[P2GO]\n if LUkp < uy6C:\n break\n if LUkp == uy6C:\n print('ERROR')\n return (YKHO.__key_map[LUkp], YKHO.__key...
[ "0.65337133", "0.6523578", "0.6507366", "0.643115", "0.638942", "0.63774323", "0.62980574", "0.62833893", "0.62722164", "0.6271169", "0.62608695", "0.61949974", "0.6191033", "0.6167572", "0.6141738", "0.6124927", "0.61146986", "0.60920304", "0.60920304", "0.60859", "0.6049698...
0.0
-1
Returns the maximum value of all elements in the input tensor.
def max(YKHO, tpio=None, c_Zo=False, KLLm=False): if tpio is None: I8P9 = YKHO.argmax(one_hot=True) KMf_ = YKHO.mul(I8P9).sum() return KMf_ else: I8P9 = YKHO.argmax(dim=tpio, one_hot=True) KMf_ = (YKHO * I8P9).sum(dim=tpio, keepdim=c_Zo) if KLLm: retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q1NN(WKvO):\n return ht2j.max(WKvO, dim=1)[1]", "def z0v6(cRc2):\n return AC6O('max', cRc2)", "def max(pKvt: Tensor, jDK_: Optional[Union[int, Sequence[int]]]=None, JsoO: bool=False) -> llWB:\n return pKvt.max(axis=jDK_, keepdims=JsoO)", "def JiQr(LFlW: Tensor, _tIi: [Tensor, numbers.Number]):\n...
[ "0.7741306", "0.76529574", "0.74654686", "0.74278307", "0.73775005", "0.7347654", "0.72676945", "0.72455704", "0.7239203", "0.7225085", "0.7198457", "0.71616626", "0.71294343", "0.7114392", "0.7100124", "0.70888096", "0.70877737", "0.7085006", "0.7072516", "0.70693153", "0.70...
0.0
-1
Returns the minimum value of all elements in the input tensor.
def min(YKHO, tpio=None, c_Zo=False, KLLm=False): Aofo = (-YKHO).max(dim=tpio, keepdim=c_Zo, one_hot=KLLm) if tpio is None: return -Aofo else: return (-Aofo[0], Aofo[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bq3i(cRc2):\n return AC6O('min', cRc2)", "def RpKt(LFlW: Tensor, _tIi: [Tensor, numbers.Number]):\n return vELP(LFlW, _tIi)", "def min(pKvt: Tensor, jDK_: Optional[Union[int, Sequence[int]]]=None, JsoO: bool=False) -> llWB:\n return pKvt.min(axis=jDK_, keepdims=JsoO)", "def prT1(WKvO: Tensor, jD...
[ "0.7714285", "0.7466125", "0.7454773", "0.73840845", "0.7368035", "0.73286843", "0.73191756", "0.72819054", "0.7188913", "0.71700233", "0.7169013", "0.7126195", "0.71057045", "0.7094149", "0.70757633", "0.706669", "0.7048432", "0.7012972", "0.7000646", "0.6885081", "0.6881613...
0.0
-1
Compute the softmax of a tensor's elements along a given dimension
def N93T(YKHO, tpio, **B2fa): if YKHO.dim() == 0: assert tpio == 0, 'Improper dim argument' return reUQ(ht2j.ones(())) if YKHO.size(tpio) == 1: return reUQ(ht2j.ones(YKHO.size())) KbIe = YKHO.max(tpio, keepdim=True)[0] KeL5 = YKHO - KbIe M6pt = KeL5.exp() yiPb = M6pt.sum(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(input, tpio=-1):\n return U78l.Softmax(axis=tpio)(input)", "def N93T(input, jDK_=1):\n zi3C = input.size()\n JOH3 = input.transpose(jDK_, len(zi3C) - 1)\n yDJ7 = JOH3.size()\n AT86 = JOH3.contiguous().view(-1, yDJ7[-1])\n J5je = vuvg.softmax(AT86)\n h65i = J5je.view(*yDJ7)\n retu...
[ "0.8337089", "0.8276164", "0.8219471", "0.80970234", "0.8096766", "0.8085937", "0.8083775", "0.8041191", "0.8034442", "0.7997262", "0.79785585", "0.7965337", "0.7958772", "0.7941535", "0.7901249", "0.78532284", "0.78398293", "0.7836443", "0.781525", "0.7809893", "0.78025424",...
0.7544067
46
Applies a softmax followed by a logarithm. While mathematically equivalent to log(softmax(x)), doing these two operations separately is slower, and numerically unstable. This function uses an alternative formulation to compute the output and gradient correctly.
def h_oU(YKHO, tpio, **B2fa): if YKHO.dim() == 0: assert tpio == 0, 'Improper dim argument' return reUQ(ht2j.zeros(())) if YKHO.size(tpio) == 1: return reUQ(ht2j.zeros(YKHO.size())) KbIe = YKHO.max(tpio, keepdim=True)[0] KeL5 = YKHO - KbIe nvN2 = KeL5.exp().sum(tpio, keepdim=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cKa6(FRUf):\n return FRUf - a4Lo(FRUf, reduction_indices=0, keep_dims=True)", "def N93T(KeL5):\n nwEM = oyIN.exp(KeL5)\n return nwEM / oyIN.sum(nwEM, axis=1, keepdims=True)", "def h_oU(WKvO):\n Cyn0 = WKvO - WKvO.max(1, keepdims=True)\n return Cyn0 - Kt_s.log(Kt_s.sum(Kt_s.exp(Cyn0), axis=1,...
[ "0.7969251", "0.79374003", "0.79346466", "0.7846711", "0.77661574", "0.7732798", "0.7732798", "0.7732798", "0.7732798", "0.7732798", "0.7732798", "0.7732798", "0.7732798", "0.7693884", "0.7689293", "0.76516825", "0.7567093", "0.75635237", "0.7553306", "0.7528798", "0.75161123...
0.0
-1
Writes all values from the tensor `src` into `self` at the indices specified in the `index` tensor. For each value in `src`, its output index is specified by its index in `src` for `dimension != dim` and by the corresponding value in `index` for `dimension = dim`.
def LuyN(YKHO, tpio, d6pt, zZcM): if ht2j.is_tensor(zZcM): zZcM = reUQ(zZcM) assert isinstance(zZcM, reUQ), 'Unrecognized scatter src type: %s' % type(zZcM) YKHO.share.scatter_(tpio, d6pt, zZcM.share) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CrCh(YKHO, tpio, d6pt, vhpA):\n pass", "def t2ia(nPrm, d6pt, BWXx):\n Vhxs = dMRA(nPrm, d6pt, BWXx, ZcXX.SET_ITEM_BY_ONE_TENSOR)\n d6pt = vuvg.expand_dims(d6pt, -1)\n return V6IE.TensorScatterUpdate()(nPrm, d6pt, Vhxs)", "def OP2O(YKHO, d6pt):\n return (YKHO.input_tensor[d6pt], YKHO.output_t...
[ "0.65373456", "0.58918625", "0.5730898", "0.56428134", "0.56272686", "0.55410117", "0.5524527", "0.55189264", "0.5449009", "0.540606", "0.54018164", "0.53315574", "0.5288473", "0.52517605", "0.5223403", "0.52178013", "0.51616126", "0.5161175", "0.5161175", "0.5151862", "0.513...
0.55869156
5
Create a dictionary of servers and their backends.
def obNW(YKHO) -> cuzp[int, fHNa]: HwSA = {} for QePW in YKHO.load_balancer.all_requests: for D7Dj in QePW.port_mapping.keys(): zVa7: set = HwSA.setdefault(D7Dj, set()) zVa7.update(Hs6x.product(QePW.backends, QePW.port_mapping.values())) return HwSA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rB7g(Emd4) -> cuzp[str, IQ9R]:\n ...", "def HwSA(YKHO) -> cuzp[str, R6kj]:\n GPtr = {}\n for vbQv, N5z6 in YKHO.config['servers'].items():\n LCUA = N5z6['channels']\n if isinstance(LCUA, str):\n xMux = [LCUA]\n else:\n xMux = LCUA\n GPtr[vbQv] = R6kj...
[ "0.70628846", "0.6903586", "0.65801716", "0.65723246", "0.644523", "0.630716", "0.6272059", "0.62514615", "0.6090445", "0.60889137", "0.608572", "0.6061596", "0.6058933", "0.5983928", "0.59721285", "0.5961683", "0.5922246", "0.5919912", "0.5912296", "0.5886084", "0.58567214",...
0.7525893
0
Retrieve a list of bind addresses for the current unit.
def KnJ7(YKHO, nMQK=True, vted=True): Aofo = Yn3K.check_output(['ip', '-j', '-br', 'addr', 'show', 'scope', 'global'], text=True, timeout=25) mNzK = ('lxdbr', 'flannel', 'cni', 'virbr', 'docker') Fx_q = {4} if nMQK else set() Fx_q.add(6) if vted else None Mnxw = [] for rRzo in qQXR.loads(Aofo.st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v87O(YKHO) -> x1iM[dzsr]:\n return [YKHO.unserialize_bind(_E99, f_nL) for _E99, f_nL in YKHO.redis.hgetall(IXw5).items()]", "def pmnM(YKHO):\n return dict((XZBf.pair for XZBf in YKHO.mount))", "def WqOk(YKHO, QdZT=True):\n if QdZT:\n YKHO.__update_addr_list()\n return YKHO.__server_addr_...
[ "0.69458866", "0.66373676", "0.64497906", "0.6412015", "0.6405021", "0.6398527", "0.6305611", "0.6274816", "0.6266141", "0.6239089", "0.6238194", "0.6200607", "0.6200607", "0.6197767", "0.6186519", "0.61743367", "0.61617917", "0.61184293", "0.60826963", "0.60826963", "0.60826...
0.6867785
1
Test creating an app with invalid props
def FQqd(YKHO, e831): JMg3 = qWWx(e831[2]) with trZe.raises(ValueError): JMg3.add_bundled_app(8050, 'dash 1', '12345' * 100, 'python app.py') with trZe.raises(ValueError): JMg3.add_bundled_app(8050, 'dash 1', 'a demo dash app', 'python app.py' * 100)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g5pL(YKHO):\n pass", "def VQGc(YKHO):\n P4t4 = J0CD.create_dash_app()\n YKHO.assertTrue(P4t4.config['supress_callback_exceptions'])", "def zmu8():\n assert not LUif().testing\n assert LUif({'TESTING': True}).testing", "def CcBF(YKHO):\n YKHO.assertIs(YKHO.test_app, YKHO.test_instance.ap...
[ "0.75338024", "0.7067721", "0.6917732", "0.67057735", "0.6699933", "0.66527605", "0.66110194", "0.66052955", "0.65738356", "0.65271086", "0.6519731", "0.6483135", "0.64415836", "0.6441207", "0.6438202", "0.643454", "0.64046", "0.6381993", "0.63764167", "0.6346463", "0.6342962...
0.7910061
0
Parse a ``Disk`` from its dict representation.
def jG8h(Emd4, Csk6: dict) -> 'Disk': return Emd4(**Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(nPrm: dict):\n return cAzV(label=nPrm.get('label', ''), path=nPrm.get('path', ''), free=nPrm.get('freeSpace', 0), total=nPrm.get('totalSpace', 0))", "def xDQm(Ilgn):\n hHld = ZbWC.search('(\\\\w+) \\\\((\\\\d+)\\\\)(?: -> (.+))?', Ilgn)\n mWFP = hHld.group(1)\n upAO = int(hHld.group(2))\n ...
[ "0.68330646", "0.6640542", "0.6075783", "0.57503164", "0.57238805", "0.5719859", "0.55841464", "0.55265075", "0.54549885", "0.5397023", "0.5389189", "0.5367886", "0.5336753", "0.53316104", "0.5329676", "0.532322", "0.5316544", "0.5308243", "0.5305514", "0.5285009", "0.5270215...
0.7051781
0
Initializes a job object. Normally, this function wouldn't be invoked directly. It is instead used by ``JobClient`` when getting the data from ``query``.
def FIMM(YKHO, *, oUZx: str, poLx: float, npfx: float, qxeD: UUID, mWFP: str, _FOV: int, M9Af: timedelta, jGRS: Status, QTBn: State, Ey19: int, SeBG: str, Zp5x: int, GCv8: datetime, CBIr: str, ZaUd: Optional[Executor]=None, zGKt: Optional[AbstractContainer]=None, sEHj: Optional[bool]=None, m6mJ: Optional[timedelta]=Non...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, rjee, dDE6=None):\n bo34.log(CoUW, '@Job - Job initialization')\n if dDE6 is None:\n dDE6 = n9ir(rjee)\n elif not isinstance(dDE6, n9ir):\n raise Exception('Unknown JobState type: %s.' % type(dDE6))\n elif dDE6.id != rjee:\n raise Exception('Inconsistent job IDs: %s ...
[ "0.75851446", "0.7541957", "0.74684113", "0.72976214", "0.7187297", "0.71529454", "0.71299523", "0.7059419", "0.6891981", "0.68316174", "0.67778486", "0.6756647", "0.67132723", "0.66587293", "0.662901", "0.66264415", "0.65833044", "0.6509532", "0.65042835", "0.6495281", "0.64...
0.0
-1
Set a new password.
def G3s8(YKHO, B2fa): YKHO.logger.debug('Updating password') try: VpKb = [('username', X7_c), ('password', X7_c)] NtEF, jTXt = k192(VpKb, B2fa) YKHO._set_password(NtEF, jTXt) return VnBe() except y_cq as ex: return JJAp('%s' % aTqo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G3s8(YKHO, jTXt):\n D2Lq(jTXt)", "def G3s8(YKHO, jTXt):\n D2Lq(jTXt)", "def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h", "def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h", "def PnS7(YKHO, jTXt):\n YKHO.password = jTXt", "def jTXt(YKHO, BWXx):\n YKHO._password = BWXx", "def jTXt(YKHO, BWXx):\n ...
[ "0.88217926", "0.8739781", "0.8681986", "0.86367387", "0.8440424", "0.84269536", "0.84269536", "0.84176874", "0.8412373", "0.83941305", "0.838502", "0.8369204", "0.8310982", "0.82947564", "0.8272242", "0.8262113", "0.8259104", "0.8259104", "0.8249157", "0.82256407", "0.821918...
0.0
-1
Predicts unpostprocessed tensors from input tensor. This function takes an input batch of images and runs it through the forward pass of the network to yield "raw" unpostprocessed predictions. If `first_stage_only` is True, this function only returns first stage RPN predictions (unpostprocessed). Otherwise it returns b...
def YEmv(YKHO, wka9): Td3O, dY4L, fvwE, lNai = YKHO._extract_rpn_feature_maps(wka9) XS9O, xjLe = YKHO._predict_rpn_proposals(Td3O) XKi2 = ZylS.to_float(ZylS.stack([0, 0, lNai[1], lNai[2]])) if YKHO._is_training: XS9O, xjLe, fvwE = YKHO._remove_invalid_anchors_and_predictions(XS9O, xjLe, fvwE, XK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, wka9):\n with Fz20.arg_scope([Fz20.conv2d, Fz20.fully_connected], activation_fn=ZylS.nn.relu):\n Zxma = wka9\n Zxma = Fz20.repeat(Zxma, 2, Fz20.conv2d, 32, [3, 3], scope='conv1')\n Zxma = Fz20.max_pool2d(Zxma, [2, 2], scope='pool1')\n Zxma = Fz20.repeat(Zxma, 2, Fz20.c...
[ "0.6060077", "0.5889319", "0.5798094", "0.5580354", "0.5577655", "0.5572719", "0.55582094", "0.55390656", "0.5517289", "0.5500582", "0.5499538", "0.5481721", "0.5466733", "0.5430646", "0.5429197", "0.542899", "0.5427631", "0.5406097", "0.53844917", "0.5374547", "0.53710437", ...
0.6578988
0
return a list of ReST strings for this node and its children
def cfuW(YKHO): return [YKHO.text()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nOFp(YKHO):\n AdfU = []\n if YKHO.LOG_CHILDREN_COUNT:\n AdfU.extend(YKHO._log_str_count_children())\n if YKHO.LOG_CHILDREN_EXPAND:\n AdfU.extend(YKHO._log_str_expand_children())\n return AdfU", "def iAA8(YKHO, Q6kx):\n jzdc = []\n if Q6kx.text is not None:\n jzdc.append...
[ "0.6989453", "0.69721967", "0.69338727", "0.67710125", "0.6617086", "0.65994364", "0.654755", "0.65113825", "0.65059555", "0.64610696", "0.6422541", "0.6391094", "0.6378849", "0.6343375", "0.63376546", "0.63328665", "0.63247126", "0.6318327", "0.6317441", "0.6298041", "0.6269...
0.0
-1
Formats an ensembl gene identifier to drop the version number. E.g., ENSG00000002822.15 > ENSG00000002822
def Nq8V(Ilxn): return Ilxn.split('.')[0].upper()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s8Ah(DpZH):\n if DpZH.startswith('.'):\n DpZH = '-1' + DpZH\n DpZH = DpZH.replace('_rc', '.')\n return DpZH", "def VGJm(DpZH):\n if not DpZH:\n return DpZH\n if DpZH.startswith('-'):\n return DpZH\n return ''.join(['-', DpZH])", "def qkaS(suPh: Dict[str, int]) -> str:...
[ "0.66835934", "0.65306133", "0.6376583", "0.6367323", "0.63004446", "0.6296872", "0.6192918", "0.61469907", "0.6070141", "0.6012161", "0.59845185", "0.59767264", "0.5974098", "0.5877123", "0.5851125", "0.584221", "0.5826083", "0.5801632", "0.57791674", "0.5766752", "0.5757121...
0.6578556
1
Return the state attributes.
def R1i3(YKHO): return YKHO._attributes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._state_attrs", "def upgy(YKHO):\n nPrm = {}\n return nPrm", "def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT", "def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat...
[ "0.9143806", "0.8802095", "0.8796065", "0.85617536", "0.84979665", "0.84979665", "0.84034306", "0.838496", "0.8384177", "0.836618", "0.836618", "0.836618", "0.836618", "0.836618", "0.8365354", "0.8365354", "0.8365354", "0.83578205", "0.8335189", "0.8335189", "0.8335189", "0...
0.82867026
28
Return whether the episode should terminate. Terminate if the robot has collided more than self.max_collisions_allowed times
def G_Si(YKHO, D5gV, sEAN): _ins = sEAN.collision_step > YKHO.max_collisions_allowed nyyK = False return (_ins, nyyK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p_P9(YKHO):\n lH8Q = YKHO.any_collision() or YKHO.check_at_beacon()\n return lH8Q", "def LxRL(YKHO) -> bool:\n return YKHO.current_M - YKHO.current_i <= len(YKHO.current_episode)", "def ZMx3(YKHO):\n if YKHO._never_terminate:\n return False\n F6hh = YKHO.convert_to_leg_model(YKHO.mini...
[ "0.71161485", "0.7029463", "0.6715117", "0.6645943", "0.65910757", "0.65764016", "0.6432977", "0.63451487", "0.6343027", "0.6320102", "0.62710226", "0.62559444", "0.6240485", "0.6239613", "0.62350166", "0.6232312", "0.6183011", "0.6171265", "0.61453336", "0.6109257", "0.60880...
0.66756296
3
Print a json representation of the result This method could store the result in an instance attribute for retrieval later
def d0Qf(YKHO, Aofo, **B2fa): KcEq = Aofo._host print(qQXR.dumps({KcEq.name: Aofo._result}, indent=4))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ChRH(YKHO, Aofo):\n CgYo(Aofo)", "def s0u9(dixj: List[Base]) -> None:\n if hasattr(dixj[0], 'to_json'):\n nPrm = [AIu6.to_json(join=False) for AIu6 in dixj]\n else:\n nPrm = dixj\n if HwRy.stdout.isatty():\n TgYk().print(E4gJ(qQXR.dumps(nPrm, indent=4), 'json', word_wrap=True...
[ "0.76108086", "0.7332086", "0.7238088", "0.7223889", "0.7223413", "0.7223413", "0.72209334", "0.72066426", "0.72066426", "0.72066426", "0.719118", "0.71883523", "0.71784234", "0.71784234", "0.71784234", "0.71784234", "0.7165805", "0.71512544", "0.71344405", "0.70699984", "0.7...
0.0
-1
Returns pvalues scanned for the values of the parameters of interest in the null hypothesis.
def Bhly(YKHO): return YKHO.calculator.pvalue(YKHO.poinull, qtilde=YKHO.qtilde, onesided=False)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hkxX(YKHO):\n return [WKvO[2] for WKvO in YKHO.pq if WKvO[2] is not None]", "def qELT(YKHO):\n if YKHO._p_values is None:\n raise ValueError('No p-values defined.')\n else:\n return YKHO._p_values", "def qELT(YKHO):\n return [a1PO.p_value for a1PO in YKHO.tests]", "def zXBR(YKj2...
[ "0.66115093", "0.62744457", "0.6264735", "0.6193225", "0.6160485", "0.60494167", "0.60494167", "0.59633934", "0.5944127", "0.59307426", "0.5914285", "0.5888191", "0.5888191", "0.58789605", "0.58251786", "0.58112544", "0.5808717", "0.5748441", "0.5729054", "0.5725862", "0.5722...
0.6011716
7
Returns the confidence level on the parameter of interest.
def VOlW(YKHO, Cwt5=0.32, fBx4=1): gVqI = YKHO.poinull gEVc = YKHO.calculator.bestfit.params[gVqI.parameter]['value'] if min(YKHO.pvalues()) > Cwt5: tO9_ = f'The minimum of the scanned p-values is {min(YKHO.pvalues())} which is larger than the' tO9_ += f' confidence level alpha = {Cwt5}. Try...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def la9G(YKHO) -> float:\n return YKHO.__confidence", "def la9G(YKHO) -> float:\n return qe4Y.get(YKHO, 'confidence')", "def la9G(YKHO) -> float:\n return qe4Y.get(YKHO, 'confidence')", "def la9G(YKHO) -> float:\n return qe4Y.get(YKHO, 'confidence')", "def la9G(YKHO) -> float:\n return qe4Y....
[ "0.79565895", "0.79348654", "0.79348654", "0.79348654", "0.79348654", "0.7703459", "0.75728846", "0.75269943", "0.75269943", "0.75269943", "0.75269943", "0.7502821", "0.7483679", "0.7483679", "0.7483679", "0.7483679", "0.72874075", "0.6921505", "0.68993837", "0.68173546", "0....
0.0
-1
Maps gender from Lookit v1 to current gender, assuming "other or prefer not to answer" mapping to na
def ESBK(EE3v): BRcs = {'male': 'm', 'female': 'f', 'other or prefer not to answer': 'na'} return BRcs.get(EE3v, '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T2ys(IoKf):\n IoKf[IoKf == 'Male'] = 1\n IoKf[IoKf == 'Female'] = 0\n return IoKf", "def ob9Z(EE3v):\n if EE3v == 'male':\n return 1\n elif EE3v == 'female':\n return 2\n elif EE3v == 'other':\n return 3", "def KXs5(nPrm):\n gjRD = {0: 'F', 1: 'M', 2: 'O', oyIN.nan...
[ "0.7561367", "0.72590685", "0.7072021", "0.7016112", "0.68897456", "0.6844539", "0.6838131", "0.6796661", "0.6745124", "0.6739962", "0.66941875", "0.66835904", "0.66828656", "0.6632017", "0.6596145", "0.65446186", "0.65090656", "0.64934963", "0.64788616", "0.64425874", "0.642...
0.7171905
2
Get data loader as specified in arguments.
def JWbQ(qIxc): return getattr(getattr(hxDW, qIxc.data_loader.lower()), qIxc.data_loader)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SELc(qIxc):\n return TkJ2(qIxc.dataset, qIxc)", "def JWbQ(GPtr):\n NfxU = GPtr['data_loader']['type']\n if NfxU == 'MnistDataLoader':\n return MtYJ(GPtr)\n elif NfxU == 'ImageDataLoader':\n return i5_J(GPtr)\n else:\n raise NotImplementedError(f'Loader {NfxU} not implement...
[ "0.7703676", "0.75186545", "0.7401052", "0.7191554", "0.6975496", "0.69315135", "0.6911815", "0.6901994", "0.6893556", "0.68763083", "0.6828028", "0.67971635", "0.6782393", "0.6755106", "0.6743666", "0.67382354", "0.6726738", "0.6718515", "0.6712243", "0.670403", "0.66905457"...
0.8593887
0
Get model as specified in arguments.
def YrZb(CtWL, qIxc): return getattr(getattr(FYrf, qIxc.model.lower()), qIxc.model)(CtWL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YrZb(YKHO, *SGPK, **B2fa):\n pass", "def YrZb(PXIK, *qIxc, **B2fa):\n global _models\n return QVOl.get(PXIK, *qIxc, **B2fa)", "def YrZb(ZGE9=None):\n return cpvk()", "def _8gI(C3ST, **B2fa):\n xDcj = Qj6z(C3ST).filter_by(**B2fa)\n Ylbp = xDcj.one()\n return Ylbp", "def YrZb(YKHO, Z...
[ "0.8165535", "0.8008852", "0.77584195", "0.77001446", "0.7674377", "0.764964", "0.7577265", "0.7572739", "0.7555491", "0.7483399", "0.74397314", "0.7385356", "0.736377", "0.7344452", "0.7320484", "0.730217", "0.72875094", "0.7202369", "0.71899104", "0.71899104", "0.71899104",...
0.79160315
2
Plots the training curve for a model run.
def Wwmp(xC3W, Pnha, K0me): exwG = len(Pnha) QrM1.title('Train vs Validation {}'.format(xC3W)) QrM1.plot(range(exwG), Pnha, label='Train') QrM1.plot(range(exwG), K0me, label='Validation') QrM1.xlabel('Epoch') QrM1.ylabel(xC3W) QrM1.legend(loc='best') QrM1.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h1HA(YKHO, QzFq):\n QrM1.style.use('ggplot')\n QrM1.figure()\n QrM1.plot(QzFq.history['loss'], label='train_loss')\n QrM1.plot(QzFq.history['val_loss'], label='val_loss')\n QrM1.plot(QzFq.history['accuracy'], label='train_acc')\n QrM1.plot(QzFq.history['val_accuracy'], label='val_acc')\n Q...
[ "0.75888085", "0.7562111", "0.7536216", "0.7511713", "0.7465623", "0.73575103", "0.73041224", "0.7291996", "0.7267647", "0.726173", "0.7257498", "0.72329015", "0.71772355", "0.71190673", "0.70969754", "0.70411056", "0.69507515", "0.6901195", "0.6894526", "0.6880946", "0.68730...
0.0
-1
Creates the dataset loaders
def nczq(YKHO, I355, hurX, lCFC, qIxc): bo34.info('Loading data from: ' + lCFC) pgPm = Hy7s.path.join(lCFC, YKHO.args.train_subdir) SNEx = Hy7s.path.join(lCFC, YKHO.args.eval_subdir) KVi0([YKHO.args.exclude_unlabeled, YKHO.args.labeled_batch_size]) __n6 = TTda.datasets.ImageFolder(pgPm, I355) if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pYAW(YKHO):\n print('Creating data loaders')\n GNhF = Ymkf.Compose([Ymkf.RandomRotation(30), Ymkf.RandomResizedCrop(224), Ymkf.RandomHorizontalFlip(), Ymkf.ToTensor(), Ymkf.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])\n r1sB = gMbG.ImageFolder(YKHO._train_dir, transform=GNhF)\n xt5_ = ...
[ "0.7923223", "0.7874805", "0.7812947", "0.7742817", "0.7723198", "0.7693518", "0.76842624", "0.76194835", "0.7556426", "0.75261205", "0.7516515", "0.74750674", "0.74675643", "0.7455594", "0.743111", "0.7372696", "0.73131216", "0.730512", "0.72736907", "0.7271219", "0.72679895...
0.74460113
14
Implements the exponential moving average of the student weights
def i713(YKHO, C3ST, fbfK, Cwt5, Aak1): Cwt5 = min(1 - 1 / (Aak1 + 1), Cwt5) for rjJD, xqoZ in zip(fbfK.parameters(), C3ST.parameters()): rjJD.data.mul_(Cwt5).add_(1 - Cwt5, xqoZ.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIP3(YKHO, dy_H, Cwt5):\n _mSQ = oyIN.array([(1 - Cwt5) ** YRbF for YRbF in range(YKHO.window)])\n return (dy_H.ix[-YKHO.window:] * _mSQ).sum()", "def rIP3(YKHO, yMhW, Cwt5, SZFh=lambda WKvO: WKvO):\n yMhW = min(yMhW, len(YKHO))\n _mSQ = [(1 - Cwt5) ** YRbF for YRbF in list(range(yMhW))[::-1]]\n ...
[ "0.7280006", "0.71741444", "0.7086196", "0.70276785", "0.69271857", "0.6715195", "0.67052346", "0.6701305", "0.669215", "0.66849476", "0.66646874", "0.6627052", "0.66023976", "0.65924287", "0.65772504", "0.6557393", "0.6549641", "0.6418862", "0.64107174", "0.63883907", "0.637...
0.0
-1
Computes the precision for the specified values of k
def Bu0Z(YKHO, hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) TCmz = max(pan_.ne(KWw7).sum(), 1e-08) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003144", "0.7974792", "0.7973687", "0.7941219", "0.78642184", "0.78039354", "0.7707838", "0.76216906", "0.7593254", "0.7561343", "0.7520396", "0.74301255", "0.7412324", "0.7375929", "0.73746765", "0.7321523", "0.7254618", "0.72368574", "0.7228014", "0.72044694", "0.713748...
0.0
-1
Returns a list of the job IDs for all active XDAQ processes. This is given as array of tuples that list the job ID and the pid for each process. These are in the tuple as "jid" and "pid" respectively.
def ayMj(KcEq='127.0.0.1', bIwZ=9999): fviZ = KcEq + ':' + str(bIwZ) UzPC = B3z0.HTTPConnection(fviZ) UzPC.request('GET', '/urn:xdaq-application:lid=10/', {}, {}) geh0 = UzPC.getresponse() if geh0.status != 200: UzPC.close() raise Exception('Unable to send soap message because: ' + s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s9pl(YKHO):\n return YKHO._get_attr_list(YKHO.data, key='job_id')", "def UdKU():\n return A8h7(tq_1().active(), 'processing')", "def rrG8(LC9z):\n jGRS = LC9z.job_manager.jobiface.get_job_id_list()\n FcE5 = jGRS['jobid_list']\n return FcE5", "def L7z3(YKHO) -> x1iM[int]:\n return sorted...
[ "0.73592", "0.7034451", "0.697076", "0.68932575", "0.6881818", "0.6799768", "0.6666744", "0.6572043", "0.65182644", "0.6368317", "0.6338155", "0.62204045", "0.6196966", "0.6185278", "0.6184246", "0.61752045", "0.61710465", "0.61378515", "0.61290854", "0.6106154", "0.61016005"...
0.6330518
11
Add a node to the way.
def g5gD(YKHO, Q6kx): YKHO.nodes.append(Q6kx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)", "def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)", "def H2v5(YKHO, Q6kx):\n pass", "def H2v5(YKHO, Q6kx):\n pass", "def g5gD(YKHO, Q6kx):\n YKHO.nodes.add(Q6kx)", "def g5gD(YKHO, Q6kx):\n raise NotImplementedError", "def g5gD(YKHO, Q6k...
[ "0.83925796", "0.83925796", "0.83757246", "0.83757246", "0.8375034", "0.8357672", "0.83322996", "0.8295969", "0.8285967", "0.8249406", "0.8240753", "0.813609", "0.81158495", "0.81081706", "0.80504304", "0.8050325", "0.8047931", "0.79916", "0.7969282", "0.7814939", "0.7807045"...
0.84376943
0
Adds a member (a node, way or other relation) to the relation.
def BfpQ(YKHO, _u2c, LmAn): YKHO.members.append((_u2c, LmAn))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BfpQ(YKHO, mS46):\n raise NotImplementedError", "def BfpQ(YKHO, mS46):\n YKHO.members.append(mS46)\n YKHO._nmembers += 1", "def BfpQ(YKHO, mS46):\n mS46.set_parent(YKHO)\n YKHO._group_members.append(mS46)", "def BfpQ(YKHO, mS46):\n if mS46.uid in YKHO.members:\n return False\n ...
[ "0.80074686", "0.78146154", "0.7687531", "0.7548284", "0.7489786", "0.7450831", "0.7381656", "0.7030975", "0.6999644", "0.69666564", "0.6963328", "0.69269896", "0.69204694", "0.6918724", "0.67631704", "0.6687314", "0.6616487", "0.65586597", "0.64684075", "0.6464168", "0.64512...
0.69436663
11
Creates an empty relation, assigns it an ID one less than the current lowest ID, adds it to the collection, and returns it.
def SFJl(YKHO): YKHO._lowest_id -= 1 Y2gl = BybM(YKHO._lowest_id) YKHO.add(Y2gl) return Y2gl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._relations = {}\n YKHO._lowest_id = -1", "def H2v5(YKHO, koMu):\n YKHO._relations[koMu.osm_id] = koMu\n if int(koMu.osm_id) < YKHO._lowest_id:\n YKHO._lowest_id = int(koMu.osm_id)", "def gxtb(YKHO) -> None:\n if YKHO.url_id is None:\n YKHO.url_id = EfUA(JfyU....
[ "0.67752004", "0.66947865", "0.58106005", "0.5458519", "0.5329832", "0.5291003", "0.5291003", "0.5270037", "0.5056954", "0.505377", "0.5050043", "0.49089673", "0.48822755", "0.48810008", "0.4844778", "0.48120233", "0.48056665", "0.4800134", "0.47876462", "0.47772586", "0.4736...
0.7619559
0
Convert an OSM relation to a list of Shapely polygons.
def JVc4(koMu): Nqlg = [] for mS46 in koMu.members: GU4x = mS46[0] LTIa = [] for Q6kx in GU4x.nodes: LTIa.append((float(Q6kx.lon), float(Q6kx.lat))) Nqlg.append(tuple(LTIa)) return list(TNqH(Nqlg))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fjvN(YKHO, Fw8z=None):\n if Fw8z is None:\n Fw8z = YKHO\n from matplotlib.patches import Polygon\n UT57 = []\n for r845 in range(Fw8z.n_elements):\n Ziit = Fw8z.element_table[r845]\n A4Zt = oyIN.empty([len(Ziit), 2])\n for YRbF in range(len(Ziit)):\n kUuO = Zi...
[ "0.6756996", "0.66781455", "0.63922614", "0.63635087", "0.63616073", "0.62926143", "0.6212484", "0.62007564", "0.6187622", "0.61872554", "0.6180136", "0.61664176", "0.60114396", "0.6009228", "0.59946865", "0.59880096", "0.59851426", "0.5974658", "0.59641844", "0.59290045", "0...
0.7745358
0
Add a donation to the history of a particular donor.
def olhM(mWFP, Z5kt): for bTKY in XbHb: if mWFP == bTKY[0]: YhIM = [float(Z5kt)] bTKY[1] += YhIM break
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OOWi(YKHO, OOWi):\n YKHO.donations.append(OOWi)", "def SStx(YKHO, OOWi):\n YKHO.donation_list.append(OOWi)", "def hoW5(YKHO, dgtG):\n YKHO._donors.append(dgtG)", "def VtQ7(YKHO, OOWi):\n if type(YKHO.donations) != list:\n YKHO.donations = []\n YKHO.donations.append(OOWi)", "def Vt...
[ "0.7820602", "0.7598143", "0.7584746", "0.75497127", "0.7401273", "0.72972333", "0.72952205", "0.7226644", "0.7175232", "0.7172215", "0.71440953", "0.7106075", "0.70316404", "0.702449", "0.70069975", "0.7005817", "0.6949906", "0.6908784", "0.6878179", "0.6877566", "0.6868208"...
0.6354565
45
Tokenizes a string by splitting on nonword characters.
def wr3U(l5Ny): return oCpR.findall(l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dFss(KCHu):\n return ZbWC.split('\\\\W', KCHu)", "def VKfn(vIwR):\n return filter(None, ZbWC.split(qImb, vIwR.lower()))", "def wr3U(_dZy):\n return [WKvO.strip() for WKvO in ZbWC.split('(\\\\W+)?', _dZy) if WKvO.strip()]", "def wr3U(l5Ny):\n V22M = ZbWC.split('\\\\P{L}+', l5Ny)\n V22M.remo...
[ "0.8280654", "0.81052154", "0.8010906", "0.79897815", "0.7983102", "0.79027903", "0.7884837", "0.7855123", "0.78166264", "0.7808947", "0.7801373", "0.7607115", "0.7552704", "0.7552704", "0.7552704", "0.7552704", "0.74953085", "0.74610656", "0.7457667", "0.74235815", "0.740509...
0.0
-1
sample patches from input images input_shape should be a square number
def veVQ(XBs2, GhuM, Uj5B): rPxP = XBs2.shape[0] TVTK = XBs2.shape[1] H2v2 = XBs2.shape[2] ohfT = oyIN.zeros((Uj5B, GhuM)) HEZd = int(epAf.sqrt(GhuM)) for YRbF in range(Uj5B): N_Xa = tuKI.randint(0, rPxP - 1) fswS = tuKI.randint(0, TVTK - HEZd) lDTh = tuKI.randint(0, H2v2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kP4f(Yw_3, gPX6=(8, 8), exwG=10000, QsrP=True):\n Csk6 = gPX6[0] * gPX6[1]\n ohfT = oyIN.zeros((Csk6, exwG))\n zqwW = NTTJ(Yw_3, QsrP)\n N8OZ = []\n for xKOL in zqwW:\n N8OZ.append(xKOL.shape)\n BT5q = oyIN.random.randint(0, len(zqwW), exwG)\n PKex = oyIN.random.rand(exwG)\n sqlD...
[ "0.73859704", "0.7296397", "0.7236684", "0.7236333", "0.7013791", "0.6784185", "0.67552197", "0.673539", "0.6440175", "0.6372823", "0.6346292", "0.629008", "0.6286403", "0.62368375", "0.62323576", "0.62006277", "0.616181", "0.610726", "0.6085783", "0.60519534", "0.60395974", ...
0.8531697
0
relu activation original map should be a 2d np array
def QQIR(Nj6z): Nj6z[Nj6z < 0] = 0 return Nj6z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bxc4(EtC4):\n return ZylS.nn.relu(EtC4)", "def QZir(WKvO):\n return u2Ve.relu(WKvO)", "def yfY2(i92A, gEmA, lzjZ, cH4_):\n return Bxc4(gZ8A(i92A, gEmA, lzjZ, cH4_))", "def QZir(bySB, mWFP=None, **B2fa):\n return NhUL.relu(bySB, name=mWFP, **B2fa)", "def Bxc4(YKHO):\n EcVT = YKHO._input_n...
[ "0.65077835", "0.6492528", "0.6408789", "0.6357673", "0.6319239", "0.6301226", "0.62952286", "0.6266132", "0.62223476", "0.6145999", "0.6145999", "0.6145999", "0.6133793", "0.6115476", "0.608565", "0.60403186", "0.6038619", "0.5993189", "0.59815985", "0.59812057", "0.5946961"...
0.5999291
17
"dec x" Decrements the content of the register x by one.
def GJwm(qIxc: list, xXBZ: dict): qdlc = 1 mWFP = 'DecrementValue' if HApE(mWFP, len(qIxc), qdlc): return False gr_i = qIxc[0] if rMu8(mWFP, xXBZ, gr_i): return False return {gr_i: xXBZ[gr_i] - 1}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iSjc(WKvO):\n return WKvO - 1", "def TRpo(YKHO):\n with YKHO.lock:\n YKHO.val.value -= 1\n YKHO.decval.value += 1", "def iSjc(YKHO, *qIxc):\n return YKHO._incdec(*qIxc, step=-1)", "def TRpo(YKHO, RddF):\n return YKHO.increment(-RddF)", "def JUul(YKHO):\n dJGG = YKHO.getRegi...
[ "0.7398423", "0.6931631", "0.6830803", "0.6687702", "0.6444665", "0.6423813", "0.6282699", "0.61024374", "0.60813004", "0.60367674", "0.5985948", "0.59813535", "0.5973968", "0.5973968", "0.5973968", "0.597051", "0.59467983", "0.5938457", "0.58593285", "0.5812441", "0.58115405...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83939064", "0.83558416", "0.8296191", "0.8133439", "0.81156427", "0.810097", "0.81001526", "0.8099001", "0.8099001", "0.80936444", "0.80936444", "0.80936444", "0.80936444", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80677134", "0.80598736", "0...
0.0
-1
Close the connection of the module. Must include ``module.disconnect()`` at the end of the code so that module can close connection properly.
def f06n(YKHO): ITS7.sleep(1) if YKHO.debug: print('[*] Disconnecting...') YKHO.__stop_thread = True ITS7.sleep(1) YKHO.ser.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n o6LD(YKHO.dev_id)\n wNOv(YKHO.dev_id)", "def DDI8(YKHO):\n YKHO._conn.disconnect()", "def DDI8(YKHO):\n YKHO._conn.disconnect()", "def DDI8(YKHO):\n YKHO._connection.disconnect()\n YKHO._connected = False", "def DDI8(YKHO) -> None:\n if YKHO.conn:\n RKD7.debug(...
[ "0.75433654", "0.74342614", "0.74342614", "0.7368651", "0.7326731", "0.7319768", "0.72910213", "0.7279393", "0.7277002", "0.7266359", "0.72465336", "0.7207475", "0.7202569", "0.7179953", "0.71587306", "0.7150831", "0.7142274", "0.7139615", "0.71395254", "0.71395254", "0.71239...
0.0
-1
Get ID of the connected module.
def unpH(YKHO): oUZx, id = YKHO._manual_send_receive(YKHO.p2m.set_type(0).set_command(129).set_data([]).encode(), YKHO.id_len + 6) return id[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EQ4g(YKHO) -> str:\n return f'{YKHO.module_name}:{YKHO.chassis_number()}-{YKHO.slot_number()}'", "def KWhP(YKHO):\n return YKHO.__connectedmodule", "def kPh3(YKHO):\n raise NotImplementedError", "def yR_P(YKHO):\n return YKHO._detid[0]", "def unpH(YKHO):\n return YKHO.server.get_id()", ...
[ "0.7245473", "0.7177425", "0.70156115", "0.6953186", "0.6843656", "0.6807302", "0.67814684", "0.6709964", "0.6604247", "0.659785", "0.6546182", "0.6546182", "0.65108865", "0.6502037", "0.6500705", "0.6472419", "0.64579064", "0.64408326", "0.6439354", "0.6439354", "0.6439354",...
0.6620407
9
Sets the parent of this AttachmentRequest.
def _AKB(YKHO, _AKB): if _AKB is None: raise ValueError('Invalid value for `parent`, must not be `None`') YKHO._parent = _AKB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB", "def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB", "def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB", "def _AKB(YKHO, _AKB):\n if _AKB is None:\n raise ValueError('Invalid value for `parent`, must not be `None`')\n YKHO._parent = _AKB", "def _AKB(...
[ "0.7413414", "0.7413414", "0.7413414", "0.7382279", "0.7357967", "0.7357967", "0.7357967", "0.7357967", "0.7357967", "0.7357967", "0.7357967", "0.7357967", "0.7357967", "0.7352138", "0.73332703", "0.73249745", "0.72918814", "0.72918814", "0.7276518", "0.72694236", "0.7191776"...
0.72333366
20
Sets the name of this AttachmentRequest.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gAZd(YKHO, gAZd):\n YKHO._attachment_name = gAZd", "def zPdd(YKHO, mWFP):\n YKHO._name = mWFP", "def zPdd(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def ...
[ "0.76328593", "0.72308385", "0.72308385", "0.72273904", "0.71966857", "0.71966857", "0.71966857", "0.71966857", "0.71966857", "0.71966857", "0.71966857", "0.71966857", "0.7176343", "0.7176343", "0.7176343", "0.7151344", "0.71191305", "0.70869416", "0.7061985", "0.70457363", "...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83939064", "0.83558416", "0.8296191", "0.8133439", "0.81156427", "0.810097", "0.81001526", "0.8099001", "0.8099001", "0.80936444", "0.80936444", "0.80936444", "0.80936444", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80677134", "0.80598736", "0...
0.0
-1
gets the Most Common Gender
def TjgJ(): eTBF = HPPC() DC16 = eTBF.get_all_patients() BDTI = {} ca5f = -1 eB_n = '' for lhUb in DC16: EE3v = lhUb.gender fBFa = -1 d6lf = '' if EE3v not in BDTI: BDTI[EE3v] = 1 fBFa = 1 d6lf = EE3v else: B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LMVv(UrXw):\n geyy, MyYB = hr4K(UrXw)\n ANfV = 'Equal' if geyy == MyYB else 'Male' if geyy > MyYB else 'Female'\n return ANfV", "def G_5r():\n eTBF = HPPC()\n DC16 = eTBF.get_all_patients()\n BDTI = {}\n ca5f = -1\n eB_n = ''\n for lhUb in DC16:\n KZFN = str(lhUb.get_extensi...
[ "0.704583", "0.6775073", "0.66573733", "0.65197366", "0.64664775", "0.6371696", "0.629165", "0.62782234", "0.626872", "0.6146001", "0.6120527", "0.61012197", "0.60778975", "0.6071829", "0.6023232", "0.60093063", "0.60092187", "0.6008529", "0.5994288", "0.5959262", "0.591091",...
0.80637884
0
gets the Most Common Ethnicity
def G_5r(): eTBF = HPPC() DC16 = eTBF.get_all_patients() BDTI = {} ca5f = -1 eB_n = '' for lhUb in DC16: KZFN = str(lhUb.get_extension('us-core-ethnicity')) fBFa = -1 d6lf = '' if KZFN not in BDTI: BDTI[KZFN] = 1 fBFa = 1 d6lf =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nRKU():\n eTBF = HPPC()\n DC16 = eTBF.get_all_patients()\n BDTI = {}\n ca5f = -1\n eB_n = ''\n for lhUb in DC16:\n zAVU = str(lhUb.get_extension('us-core-race'))\n fBFa = -1\n d6lf = ''\n if zAVU not in BDTI:\n BDTI[zAVU] = 1\n fBFa = 1\n ...
[ "0.652703", "0.64061034", "0.62727165", "0.61561686", "0.60841715", "0.60530764", "0.5980351", "0.5943379", "0.5852934", "0.5827077", "0.5788514", "0.5787468", "0.57781297", "0.57618535", "0.5749167", "0.57447225", "0.57077193", "0.5706978", "0.56856513", "0.5666303", "0.5664...
0.80627096
0
Adjusts weights by a reward or punishment value based on whether or not the value was accepted as an improvement.
def lm9l(SHTU, WKvO, LVAh, XeOP, Hhz4): for YRbF in range(SsZj): if YRbF == XeOP: SHTU[WKvO][LVAh][YRbF] += A5w8 if Hhz4 else B3lX SHTU[WKvO][LVAh][YRbF] = 0 if SHTU[WKvO][LVAh][YRbF] < 0 else SHTU[WKvO][LVAh][YRbF] SHTU[WKvO][LVAh][YRbF] = 1000 if SHTU[WKvO][LVAh][YRbF] > 1000 e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lnr9(YKHO, QTBn, XeOP, vOGg):\n gc9P = YKHO.get_qvalues(QTBn)\n YxxW = vOGg + YKHO.discount * gc9P.max()\n RA_F = gc9P[YKHO.act2ind[XeOP]]\n YKHO.weights[YKHO.act2ind[XeOP], :] += YKHO.lr * (YxxW - RA_F) * YKHO.get_features(QTBn)", "def e6J4(YKHO, Q6kx, j6Rr):\n YKHO._weights[Q6kx] = j6Rr", ...
[ "0.67586994", "0.67009085", "0.6597371", "0.6581878", "0.6574055", "0.6540488", "0.65015936", "0.6501439", "0.6490702", "0.64867914", "0.6482229", "0.6455168", "0.64393246", "0.6437299", "0.6399357", "0.6396704", "0.63902843", "0.63859475", "0.6377265", "0.6363018", "0.635723...
0.7118414
0
This function calculates the total distance traveled for a given path.
def p8Is(PsCT): JmjM = 0 for YRbF in range(len(PsCT) - 1): JmjM += Ayfi(PsCT[YRbF][EcVT], PsCT[YRbF][fuBA], PsCT[YRbF + 1][EcVT], PsCT[YRbF + 1][fuBA]) return JmjM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ciom(YKHO, pmON):\n sSN_ = 0\n for Q6kx in pmON[1:]:\n sSN_ += YKHO.dists[Q6kx][Q6kx - 1]\n return sSN_", "def sSN_(YKHO, pmON) -> float:\n sSN_ = 0\n for YRbF in range(YKHO.num_points):\n Os4s = YRbF + 1 if YRbF < YKHO.num_points - 1 else 0\n sSN_ += YKHO.distances[pmON[Y...
[ "0.7672893", "0.757294", "0.7532922", "0.74970967", "0.73706985", "0.72821176", "0.72530067", "0.6865231", "0.6817817", "0.6695118", "0.66839856", "0.66755605", "0.6632064", "0.6632064", "0.6626437", "0.66122127", "0.65624493", "0.654344", "0.6542245", "0.65263855", "0.652201...
0.6839102
8