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
Instantiate a missing parameters error.
def FIMM(YKHO, t5VW: str) -> None: super().__init__(f'Missing command-line parameters: {t5VW}. ' + 'Run `heat-desalination --help` for more information.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, SK6d, PDB4):\n YKHO.reason = \"InputError: {0} can't have value, {1}.\".format(SK6d, PDB4)", "def K8b8(YKHO):\n YKHO.factory = RMSS(jOK9, [ksaE()])\n YKHO.assertRaises(tW8l, YKHO.factory.load, None)", "def FIMM(YKHO, P1dF=''):\n VAT6.__init__(YKHO, P1dF)", "def FIMM(YKHO, LwG6):\n ...
[ "0.73662543", "0.72117937", "0.715173", "0.7049231", "0.6996911", "0.6978595", "0.6821229", "0.6799556", "0.67974985", "0.67903477", "0.6727977", "0.6709444", "0.6694236", "0.6694236", "0.6694236", "0.6607968", "0.6588784", "0.658151", "0.6575528", "0.6533298", "0.6498056", ...
0.606691
70
Create an instance of the openvz connection.
def FIMM(YKHO, V0Zo, SKnd=False): super(VdRn, YKHO).__init__(V0Zo) YKHO.resource_manager = fjcQ(V0Zo) YKHO.host_stats = dict() YKHO._initiator = None YKHO.host = None YKHO.read_only = SKnd YKHO.vif_driver = mCgp.import_object(SAs9.ovz_vif_driver) VNv_.execute('mkdir', '-p', SAs9.ovz_lock...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n S0MI.debug('OpenStackInterface init')\n YKHO._nova_client = GP1_.get_nova_client()", "def FIMM(YKHO, **YSA3):\n YKHO.username = YSA3['username']\n YKHO.password = YSA3['password']\n YKHO.root_passwd = YSA3['root_password']\n YKHO.look_for_key = YSA3['look_for_key']\n YKHO.p...
[ "0.6217026", "0.6215549", "0.5891735", "0.57968986", "0.57460684", "0.5723442", "0.57118213", "0.5708852", "0.57052386", "0.5685043", "0.5629362", "0.55899954", "0.55381966", "0.5522106", "0.5521264", "0.5511376", "0.5506216", "0.5497289", "0.54940706", "0.5484845", "0.548058...
0.6596088
0
Poll for unconfirmed resizes.
def dS0Q(YKHO, KlQf): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pckA(YKHO):\n YKHO.manager.confirm_resize(YKHO)", "def pckA(YKHO, N5z6):\n YKHO._action('confirmResize', N5z6)", "def rjFv(YKHO, qIxc):\n YKHO._find_server(qIxc.server).confirm_resize()", "def XQ8E(YKHO):\n Yw_3 = YKHO._image_count()\n JXH8 = YKHO._script_count()\n s2_O = YKHO._styleshe...
[ "0.6060073", "0.5633845", "0.56213576", "0.54957587", "0.5419826", "0.54190975", "0.540658", "0.5391169", "0.5313343", "0.5282218", "0.5282218", "0.5282218", "0.5282218", "0.5282218", "0.5282218", "0.5282218", "0.5282218", "0.5282218", "0.5282218", "0.5282218", "0.5282218", ...
0.7460262
0
Update agent on the specified instance. The first parameter is an instance of nova.compute.service.Instance, and so the instance is being specified as instance.name. The second parameter is the URL of the agent to be fetched and updated on the instance; the third is the md5 hash of the file for verification purposes.
def qHC8(YKHO, KAOR, bD7m, ZIgK): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, ILdH, DpZH, bD7m, ZIgK, CAwQ=True, **B2fa):\n TBsA = {'para': {'version': DpZH, 'url': bD7m, 'md5hash': ZIgK}}\n if CAwQ:\n return YKHO._put('/os-agents/%s' % ILdH, TBsA, 'agent', **B2fa)\n else:\n return YKHO._put('/os-agents/%s' % ILdH, TBsA, **B2fa)", "def uYsE(YKHO, KAOR...
[ "0.69459784", "0.5689411", "0.5632998", "0.55648804", "0.55380285", "0.5479398", "0.5422056", "0.52845675", "0.52247393", "0.52232176", "0.52186096", "0.5089221", "0.5086385", "0.50803524", "0.5078282", "0.5075888", "0.50746214", "0.505378", "0.505051", "0.50315636", "0.50245...
0.7580385
0
Return a dummy request with the dbsession attached to it.
def Jqe8(QcP0): return fiHr(dbsession=QcP0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fiHr(ouvA):\n gE0D = kO5c.DummyRequest(dbsession=ouvA)\n return gE0D", "def fiHr(ouvA):\n return kO5c.DummyRequest(dbsession=ouvA)", "def fiHr(ouvA):\n return kO5c.DummyRequest(dbsession=ouvA)", "def fiHr(ouvA):\n return kO5c.DummyRequest(dbsession=ouvA)", "def fiHr(ouvA):\n return kO...
[ "0.9006767", "0.8896162", "0.8896162", "0.8896162", "0.8896162", "0.8896162", "0.8783888", "0.7422695", "0.7200158", "0.690847", "0.6773136", "0.63400286", "0.62097204", "0.61687696", "0.6097871", "0.6080759", "0.6003166", "0.59779215", "0.59598565", "0.5895591", "0.5888064",...
0.84492373
7
Return a dummy request with empty payload the dbsession attached.
def dF4J(QcP0): return fiHr(dbsession=QcP0, post={})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fiHr(ouvA):\n return kO5c.DummyRequest(dbsession=ouvA)", "def fiHr(ouvA):\n return kO5c.DummyRequest(dbsession=ouvA)", "def fiHr(ouvA):\n return kO5c.DummyRequest(dbsession=ouvA)", "def fiHr(ouvA):\n return kO5c.DummyRequest(dbsession=ouvA)", "def fiHr(ouvA):\n return kO5c.DummyRequest(d...
[ "0.8488198", "0.8488198", "0.8488198", "0.8488198", "0.8488198", "0.84309417", "0.84217286", "0.76140493", "0.7329709", "0.6606654", "0.6387511", "0.63585925", "0.60719824", "0.60663694", "0.6044377", "0.6016326", "0.58292663", "0.57594603", "0.5755104", "0.5724922", "0.56773...
0.7081289
9
Test that TabularOutputFormatter rejects unknown formats.
def NoUL(): uaPq = Vr7O() with trZe.raises(ValueError): uaPq.format_name = 'foobar' with trZe.raises(ValueError): uaPq.format_output((), (), format_name='foobar')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RWCC():\n nPrm = [['1', None], ['2', 'Sam'], ['3', 'Joe']]\n MOPg = ['id', 'name']\n aEqx = q1HU(' +----+------+\\n | id | name |\\n +----+------+\\n | 1 | N/A |\\n | 2 | Sam |\\n | 3 | Joe |\\n +----+------+')\n assert aEqx == KGNQ(nPrm, MOPg,...
[ "0.71767753", "0.7017182", "0.6671472", "0.6654288", "0.6630967", "0.66022813", "0.6581534", "0.65736663", "0.65710646", "0.6545058", "0.6525362", "0.6488659", "0.64629817", "0.64147", "0.6411709", "0.6399093", "0.6396876", "0.6380847", "0.6378061", "0.6375375", "0.6363077", ...
0.8259596
0
Check to see if string is an validlyformatted web url.
def fMiF(vIwR): assert isinstance(vIwR, exCv) ys3h = uRlK.parse.urlparse(vIwR) return (ys3h.scheme.lower() == 'http' or ys3h.scheme.lower() == 'https') and ys3h.netloc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yaqE(KCHu):\n try:\n KSw8(KCHu)\n return True\n except sUXu:\n return False", "def fyGI(pPAA: str) -> bool:\n try:\n Aofo = KVWQ(pPAA)\n return all([Aofo.scheme in ['http', 'https'], Aofo.netloc and (not ZbWC.findall('\\\\s', Aofo.netloc)), not ZbWC.findall('\\\\s'...
[ "0.8087881", "0.8075846", "0.78079206", "0.7673806", "0.7664702", "0.7599059", "0.7552102", "0.75438505", "0.7520086", "0.75013846", "0.7459289", "0.736977", "0.73443127", "0.73119146", "0.728144", "0.727819", "0.7270427", "0.7253677", "0.72530746", "0.72526973", "0.7245334",...
0.7538403
8
Check to see if string is a valid local file path.
def iquz(vIwR): assert isinstance(vIwR, exCv) return Hy7s.path.isfile(vIwR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FWzQ(vIwR: str) -> bool:\n if not isinstance(vIwR, str):\n return False\n if not v8KV(vIwR):\n return False\n if vIwR.lower().startswith(('http://', 'https://', 'ftp://', 'sftp://', 's3://', 'hdfs://', 'gs://')):\n return False\n if Hy7s.path.isabs(vIwR):\n return False\...
[ "0.74350786", "0.7370982", "0.7280168", "0.71596307", "0.6960506", "0.6885687", "0.6869814", "0.6854735", "0.68344826", "0.68115455", "0.67395663", "0.66925055", "0.6687579", "0.6683061", "0.6633424", "0.6632563", "0.66084105", "0.65964735", "0.65964735", "0.65547454", "0.653...
0.8205601
0
Return a fresh iterator.
def Vs4Q(YKHO): return YKHO.generator(*YKHO.args, **YKHO.kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n YKHO.rewind()\n return YKHO", "def Vs4Q(YKHO):\n return YKHO.iter_from(0)", "def Vs4Q(YKHO):\n YKHO.iterator = 0\n return YKHO", "def Vs4Q(YKHO):\n YKHO.iterator = 0\n return YKHO", "def Vs4Q(YKHO):\n return YKHO()", "def Vs4Q(YKHO):\n YKHO._check_closed()\n ...
[ "0.6813847", "0.6644748", "0.66221124", "0.66221124", "0.65206295", "0.64608115", "0.63305646", "0.6293697", "0.6283382", "0.62789595", "0.62766457", "0.62455386", "0.6237532", "0.6229469", "0.62222785", "0.62209964", "0.6207881", "0.61953825", "0.6171148", "0.61632067", "0.6...
0.0
-1
Builds the EmbeddingNF network composed of a pretrained_model and a normalization flow module.
def ccRX(YKHO, hR_b, __n6, v8sj, Zwn2=None, IBpl='none', Yizt=None, gQ_J=None, ZBWy=None, YcPL=True, begE='cuda'): YKHO.net_name = hR_b YKHO.net = pnBP(hR_b, __n6, embedding_size=Zwn2, pretrained_model=v8sj, embedding_reduction=IBpl, flow_type=Yizt, update_embedding=False, coupling_hidden_size=gQ_J, coupling_nu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def es6m(YKHO):\n YKHO.conv1 = U78l.Conv2d(1, 8, 3, 1, padding=1)\n YKHO.conv2 = U78l.Conv2d(8, 8, 3, 2, padding=1)\n YKHO.conv3 = U78l.Conv2d(8, 16, 3, 1, padding=1)\n YKHO.conv4 = U78l.Conv2d(16, 16, 3, 2, padding=1)\n YKHO.conv5 = U78l.Conv2d(16, 24, 3, 1, padding=1)\n YKHO.conv6 = U78l.Conv2d...
[ "0.66515243", "0.6470889", "0.6443289", "0.64414304", "0.64074814", "0.6398128", "0.6389077", "0.63434404", "0.63378376", "0.63174677", "0.62721324", "0.6261346", "0.6260595", "0.62543637", "0.62281656", "0.6226273", "0.6213963", "0.6203112", "0.61963654", "0.6194858", "0.618...
0.0
-1
Test to make sure we don't match base64 strings which don't decode to ASCII
def qgM5(YKHO): YKHO.paste.body = 'VGhpcyBzdHJpbmcgY29udGFpbnMgYSBub24tYXNjaWkgY2hhcmFjdGVyOiDCpA==' YKHO.assertFalse(YKHO.analyzer.match(YKHO.paste)) YKHO.paste.body = 'zpfDiM67zrvOuCDPicOWzpPOu8OQ' YKHO.assertFalse(YKHO.analyzer.match(YKHO.paste)) YKHO.paste.body = 'wro=' YKHO.assertFalse(YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VM1P(X80K, KCHu):\n vqg1 = ZbWC.compile('^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$')\n X80K.assertTrue(vqg1.match(KCHu))", "def lK2I(YKHO):\n rSDZ = D1NJ(None, decode=True)\n YKHO.paste.body = 'SGVsbG8gV29ybGQ='\n YKHO.assertEqual('Hello World', rSDZ.match(YKHO.paste)[0]...
[ "0.7752303", "0.75620675", "0.7468745", "0.73991907", "0.73962533", "0.71270937", "0.705271", "0.7049989", "0.703494", "0.70106673", "0.6994833", "0.69657207", "0.6942095", "0.68713826", "0.68688077", "0.6718898", "0.6711112", "0.6689955", "0.6681047", "0.666926", "0.6668313"...
0.8064727
0
Quote string if it is a literal.
def GwWQ(VN2L: Union[str, List[str], Any]) -> ImMB: j76n, VN2L = P85s(VN2L) if not j76n: return VN2L if isinstance(VN2L, str): return HDLy(VN2L) if isinstance(VN2L, list): return [HDLy(UYjQ) for UYjQ in VN2L] return VN2L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MP3a(str: 'str to psql quote') -> 'quote_literal(str)':\n U5bT = str\n return U5bT\n if type(str) is type(''):\n U5bT = \"'{}'\".format(str)\n return U5bT", "def edjR(BWXx):\n if isinstance(BWXx, (str, QMSQ)):\n return '\"{}\"'.format(BWXx)\n return BWXx", "def HDLy(VN2L: st...
[ "0.7427672", "0.72987217", "0.72825956", "0.72136647", "0.7145299", "0.71012425", "0.70891154", "0.70551467", "0.70238453", "0.6994664", "0.6930252", "0.69285065", "0.69208974", "0.69119495", "0.6901564", "0.68783617", "0.6872338", "0.6855168", "0.677551", "0.6743679", "0.674...
0.69200903
13
Check if literal string.
def P85s(VN2L: Union[Dict[str, Any], Any]) -> AzJI[bool, ImMB]: if isinstance(VN2L, dict) and 'literal' in VN2L: return (True, VN2L['literal']) return (False, VN2L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gg3d(YKHO, BWXx):\n if BWXx in YKHO.string_literal_values:\n return True\n return YKHO.contains('\"{}\"'.format(ZbWC.escape(BWXx)))", "def UjfH(YKHO, str):\n return False", "def idST(YKHO):\n return YKHO.type == 'const char*' or YKHO.type == 'char*' or YKHO.type == 'const GLchar*' or (YK...
[ "0.780498", "0.7276044", "0.7165574", "0.71480864", "0.69814265", "0.696586", "0.6902568", "0.6889368", "0.68833995", "0.68833995", "0.68653446", "0.68532926", "0.68141097", "0.678144", "0.6780218", "0.67743343", "0.67649245", "0.67605513", "0.6759215", "0.6738799", "0.673223...
0.649566
34
Quote a string, if not already quoted.
def HDLy(VN2L: str) -> str: if VN2L.startswith("'") and VN2L.endswith("'"): return VN2L return f"'{VN2L}'"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NCC9(YKHO, vIwR):\n return \"'\" + vIwR + \"'\" if vIwR else ''", "def EbkT(vIwR, aj0M=True):\n if aj0M:\n return '\"' + vIwR + '\"'\n else:\n return \"'\" + vIwR + \"'\"", "def NCC9(vIwR):\n return \"'%s'\" % vIwR", "def ad1m(KCHu: str):\n if not KCHu:\n return '\"\"'...
[ "0.76100343", "0.7584106", "0.72240937", "0.71474016", "0.71015155", "0.6970072", "0.69569933", "0.6871241", "0.6868117", "0.6866575", "0.6858434", "0.6799919", "0.67851466", "0.6756692", "0.6699779", "0.66902494", "0.6640847", "0.66098773", "0.65868944", "0.65853834", "0.657...
0.62397915
35
Replace unquoted doublequotes with singlequotes.
def JVG9(Pe9W: str) -> str: return ZbWC.sub('(?<![\\\\])\\"', "'", Pe9W)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BNZ8(KCHu):\n return Htlk.sub('\"', KCHu)", "def FGYw(YKHO, BWXx):\n return BWXx.replace(\"''\", \"'\")", "def yQkN(vIwR: str) -> str:\n return xXxc.sub('\"', vIwR)", "def OCZt(l5Ny):\n l5Ny = l5Ny.replace('&quot;', '\"')\n l5Ny = l5Ny.replace(Ey5j, '&quot')\n return l5Ny", "def Z9SD(...
[ "0.8061255", "0.7514866", "0.74759156", "0.7421225", "0.7352187", "0.72762805", "0.7266052", "0.72434974", "0.7230409", "0.7230409", "0.7208485", "0.71773064", "0.7173125", "0.71393347", "0.7076921", "0.7076726", "0.7075059", "0.7051378", "0.7028949", "0.69979316", "0.6981628...
0.72871774
5
Convert a string to a Decimal for use in WbQuantity. None value is returned as is.
def RRIs(BWXx): if isinstance(BWXx, ZjSO): return BWXx elif BWXx is None: return None return ZjSO(str(BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CrSS(dB4v):\n return NCqB.atof(dB4v)", "def h97m(YKHO) -> ZjSO:\n return ZjSO(YKHO.value_string)", "def uly6(BWXx):\n hlel = None\n if BWXx is not None:\n hlel = ZjSO(BWXx)\n return hlel", "def Przj(Emd4, UX5e):\n if UX5e:\n XKkI = [Npgh for Npgh in UX5e if Npgh.isnumeric(...
[ "0.6913974", "0.6746078", "0.6539415", "0.6462946", "0.6413633", "0.63594645", "0.63300484", "0.630351", "0.6295658", "0.62646586", "0.6263417", "0.6222796", "0.6212171", "0.6209557", "0.61624384", "0.61573195", "0.6136377", "0.6097213", "0.6039269", "0.60176754", "0.60041136...
0.54462117
71
Convenience function to grab the $SQ_MODEL_FILE environment variable.
def wIqq(ZFGq=None): if ZFGq is None: ZFGq = Hy7s.environ.get('SQ_MODEL_FILE') if ZFGq is None: tO9_ = 'Pass sqmodel_fname or set $SQ_MODEL_FILE environment variable!' RKD7.critical(tO9_) raise ValueError(tO9_) return ZFGq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XVgY(EYMK=None):\n if EYMK is None:\n EYMK = Hy7s.environ.get('QN_MODEL_FILE')\n if EYMK is None:\n tO9_ = 'Pass qnmodel_fname or set $QN_MODEL_FILE environment variable!'\n RKD7.critical(tO9_)\n raise ValueError(tO9_)\n return EYMK", "def oLG2(A18S):\n ...
[ "0.7449713", "0.61825144", "0.590835", "0.57245696", "0.5708247", "0.5670391", "0.56692535", "0.5603668", "0.55916864", "0.5575734", "0.5551495", "0.55501413", "0.5492042", "0.5481237", "0.5456327", "0.5445642", "0.54267883", "0.53456384", "0.5338958", "0.5331616", "0.5327152...
0.84724575
0
Convenience function for loading the SQUEzE model file.
def KLrh(A18S): from squeze.common_functions import load_json from squeze.model import Model C3ST = Model.from_json(load_json(A18S)) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(Ux0P):\n pass", "def uyMl(Ux0P):\n raise NotImplementedError()", "def uyMl(YKHO, gIsw):\n raise NotImplementedError", "def uyMl(ytgA: str):\n raise NotImplementedError", "def uyMl(Ux0P: str):\n return tyeH(Ux0P)", "def tyeH(YKHO, SkYi: Path) -> None:\n pass", "def uyMl(YKHO, ...
[ "0.73129183", "0.7158163", "0.7025469", "0.69630194", "0.69078755", "0.689058", "0.6836894", "0.6833313", "0.68259627", "0.6819537", "0.6813242", "0.67999107", "0.6788112", "0.6775075", "0.6773525", "0.6762381", "0.673673", "0.6715577", "0.6715577", "0.66728896", "0.6670271",...
0.6951357
4
Get arguments for specified program
def qElm(YPqY): if YPqY == 'species': qIxc = Jz66() elif YPqY == 'genes': qIxc = uo4r() elif YPqY == 'snps': qIxc = wL6f() else: HwRy.exit("\nError: Unrecognized program: '%s'\n" % YPqY) f7Dd.add_executables(qIxc) return qIxc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H8ns():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('-p', '--path', type=str, default=Fq9h, help='Path to the images for recognition')\n wvEv.add_argument('-e', '--evaluation', action='store_true', default=False, help='The program will start evaluation')\n return wvEv.parse_args()", "def j...
[ "0.7343196", "0.70567083", "0.70211625", "0.6969495", "0.69598675", "0.6950627", "0.69416946", "0.6929243", "0.68863755", "0.688508", "0.6858485", "0.6828949", "0.6826146", "0.68125653", "0.67932343", "0.6769464", "0.6746139", "0.67452407", "0.67369443", "0.6727583", "0.67222...
0.8358507
0
parse the arguments and set the model configuration parameters
def SOq6(wvEv): Fv2L = wvEv.parse_args() if Fv2L.select_ipu != 'AUTO': Fv2L.select_ipu = int(Fv2L.select_ipu) T2nK(Fv2L) Fv2L.samples_per_device = int(Fv2L.batch_size / Fv2L.replication_factor) return Fv2L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, **nPrm: Any) -> None:\n for d7pR in nPrm['arguments']:\n BWXx = nPrm['arguments'][d7pR]\n if isinstance(BWXx, (tuple, list)):\n for p6S0, LihS in enumerate(BWXx):\n nPrm['arguments'][d7pR][p6S0] = YKHO._parse_if_model_config_entry(LihS)\n else:\n ...
[ "0.72264916", "0.6903645", "0.6821765", "0.6820155", "0.6801853", "0.6771736", "0.67242813", "0.67216617", "0.6699879", "0.6670661", "0.66539043", "0.66031134", "0.65757996", "0.65617734", "0.65390164", "0.6538493", "0.64779204", "0.647657", "0.64663905", "0.64661384", "0.646...
0.0
-1
Expects f an increasing function and return eta in [eta_min, eta_max] s.t. |f(eta)| <= tol (or the best solution after max_iter iterations
def JsRW(r7kI, a5gD, eHNT, yJiH=1e-06, SYxB=1000): LSh8 = eHNT(r7kI) CN9P = eHNT(a5gD) while LSh8 > 0 or CN9P < 0: u54L = a5gD - r7kI if LSh8 > 0: a5gD = r7kI r7kI = r7kI - 2 * u54L if CN9P < 0: r7kI = a5gD a5gD = a5gD + 2 * u54L ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(jzdc, yJiH):\n exwG = 8\n FYKK = OOX3(jzdc, exwG)\n xF1o = OOX3(jzdc, 2 * exwG)\n while abs((xF1o - FYKK) / FYKK) >= yJiH:\n exwG *= 2\n FYKK = xF1o\n xF1o = OOX3(jzdc, 2 * exwG)\n return xF1o", "def dfHy(eHNT, nJ9F, yJiH):\n while abs((o4D3 := eHNT(nJ9F)) - nJ9F) ...
[ "0.67312694", "0.6725855", "0.6493532", "0.64510393", "0.6371114", "0.629331", "0.62771976", "0.62291026", "0.62229794", "0.61998683", "0.61915123", "0.60863215", "0.6084326", "0.6039438", "0.6030086", "0.6027163", "0.60227835", "0.60155004", "0.598041", "0.5953478", "0.59440...
0.7889923
0
Ensure POSTing form over JWT auth with correct credentials passes and does not require CSRF
def m2N0(YKHO): eOtH = yuk6(YKHO.user, zel7) Jpbe = 'JWT {0}'.format(eOtH) geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) CBIr = mv1M.objects.get(service_user__id=YKHO.user.service_user.id) YKHO.assertEq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GHoj(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'})\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)\n YKHO.assertEqual(geh0['WWW-Authenticate'], 'JWT realm=\"api\"')", "def GHoj(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'})\n YK...
[ "0.783946", "0.783946", "0.7835582", "0.71776944", "0.71717566", "0.7088305", "0.70616007", "0.6956604", "0.6956604", "0.685557", "0.68430895", "0.6839144", "0.6776859", "0.67745835", "0.67467624", "0.672851", "0.672804", "0.6711609", "0.667742", "0.6675877", "0.6658954", "...
0.76128274
3
Ensure POSTing JSON over JWT auth with correct credentials passes and does not require CSRF
def SPmS(YKHO): eOtH = yuk6(YKHO.user, zel7) Jpbe = 'JWT {0}'.format(eOtH) geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) CBIr = mv1M.objects.get(service_user__id=YKHO.user.service_user.id) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SPmS(YKHO):\n pB3N = BfDw.jwt_payload_handler(YKHO.user)\n eOtH = BfDw.jwt_encode_handler(pB3N)\n Jpbe = 'JWT {0}'.format(eOtH)\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def ...
[ "0.8120373", "0.8021045", "0.8021045", "0.77807426", "0.7502721", "0.7502721", "0.7466462", "0.7373945", "0.7309311", "0.7257113", "0.71768075", "0.71768075", "0.7173138", "0.71691567", "0.7112597", "0.70878303", "0.7016854", "0.6959964", "0.6954344", "0.6949869", "0.6946205"...
0.7711051
4
Ensure POSTing form over JWT auth with correct credentials passes and does not require CSRF
def fcaH(YKHO): PObu = str(kxTZ()) eOtH = FY8R(PObu, zel7) Jpbe = 'JWT {0}'.format(eOtH) geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) CBIr = mv1M.objects.get(service_user__id=PObu) YKHO.assertEqual...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GHoj(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'})\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)\n YKHO.assertEqual(geh0['WWW-Authenticate'], 'JWT realm=\"api\"')", "def GHoj(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'})\n YK...
[ "0.78387696", "0.78387696", "0.7832937", "0.7610789", "0.71762335", "0.71726483", "0.70884156", "0.7062296", "0.6954771", "0.6954771", "0.6856986", "0.6844495", "0.68377244", "0.6779114", "0.67752624", "0.6745176", "0.6725032", "0.6712582", "0.66775626", "0.6677039", "0.66596...
0.6726114
16
Ensure POSTing JSON over JWT auth with correct credentials passes and does not require CSRF
def XMfG(YKHO): PObu = str(kxTZ()) eOtH = FY8R(PObu, zel7) Jpbe = 'JWT {0}'.format(eOtH) geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) CBIr = mv1M.objects.get(service_user__id=PObu) Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SPmS(YKHO):\n pB3N = BfDw.jwt_payload_handler(YKHO.user)\n eOtH = BfDw.jwt_encode_handler(pB3N)\n Jpbe = 'JWT {0}'.format(eOtH)\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def ...
[ "0.8120562", "0.8021661", "0.8021661", "0.77793616", "0.7710829", "0.7502652", "0.7502652", "0.746694", "0.7374266", "0.73083186", "0.7258293", "0.7177985", "0.7177985", "0.7172139", "0.7168419", "0.7112568", "0.7087537", "0.7016489", "0.69608766", "0.69545174", "0.6945998", ...
0.69500756
20
Ensure POSTing form over JWT auth without correct credentials fails
def GHoj(YKHO): geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED) YKHO.assertEqual(geh0['WWW-Authenticate'], 'JWT realm="api"')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BUa1(YKHO):\n eOtH = yuk6(YKHO.user, zel7, override={'aud': 'asldkfjalskdjf'})\n Jpbe = 'JWT {0}'.format(eOtH)\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe)\n tO9_ = 'Incorrect authentication credentials.'\n YKHO.assertEqual(geh0.data['detail'], tO9_)\n...
[ "0.78059936", "0.7768155", "0.7585353", "0.7572655", "0.7572655", "0.746659", "0.7423922", "0.71394914", "0.7081548", "0.7031602", "0.7031602", "0.6970126", "0.6883668", "0.68817574", "0.6867539", "0.685841", "0.6841181", "0.6830352", "0.6825719", "0.6815178", "0.6808884", ...
0.8252436
0
Ensure POSTing json over JWT auth without correct credentials fails
def SJ0B(YKHO): geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED) YKHO.assertEqual(geh0['WWW-Authenticate'], 'JWT realm="api"')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SPmS(YKHO):\n pB3N = BfDw.jwt_payload_handler(YKHO.user)\n eOtH = BfDw.jwt_encode_handler(pB3N)\n Jpbe = 'JWT {0}'.format(eOtH)\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def ...
[ "0.8075983", "0.7797287", "0.7797287", "0.7724155", "0.7721057", "0.7718931", "0.76252335", "0.76252335", "0.7509085", "0.7416089", "0.7416089", "0.7411893", "0.7353579", "0.73303604", "0.7291761", "0.72852236", "0.72663146", "0.71749675", "0.7171247", "0.7150663", "0.7142036...
0.8428044
0
Ensure POSTing over JWT auth without credentials fails
def ADJ6(YKHO): Jpbe = 'JWT' geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json') tO9_ = 'Invalid Authorization header. No credentials provided.' YKHO.assertEqual(geh0.data['detail'], tO9_) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SJ0B(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)\n YKHO.assertEqual(geh0['WWW-Authenticate'], 'JWT realm=\"api\"')", "def SJ0B(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'exa...
[ "0.8289764", "0.8289764", "0.8136468", "0.8136468", "0.7904865", "0.7816047", "0.7816047", "0.7742653", "0.77122587", "0.7563427", "0.7499946", "0.7499946", "0.7494299", "0.73951626", "0.7348506", "0.7348506", "0.7337106", "0.7277625", "0.72317845", "0.7229615", "0.7218205", ...
0.76416457
9
Ensure POSTing over JWT auth without correct credentials fails
def MfJy(YKHO): Jpbe = 'JWT abc abc' geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json') tO9_ = 'Invalid Authorization header. Credentials string should not contain spaces.' YKHO.assertEqual(geh0.data['detail'], tO9_) YKHO.assertEqual(geh0.status_cod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SJ0B(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)\n YKHO.assertEqual(geh0['WWW-Authenticate'], 'JWT realm=\"api\"')", "def SJ0B(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'exa...
[ "0.82025707", "0.82025707", "0.8070769", "0.8070769", "0.78892905", "0.7763823", "0.7763823", "0.7659532", "0.7622337", "0.75995874", "0.7576486", "0.74440944", "0.74440944", "0.7430963", "0.7430963", "0.73572725", "0.73305625", "0.72955304", "0.7218824", "0.71952987", "0.717...
0.7303675
17
Ensure POSTing over JWT auth with invalid token fails
def Nodx(YKHO): Jpbe = 'JWT abc123' geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json') tO9_ = 'Error decoding signature.' YKHO.assertEqual(geh0.data['detail'], tO9_) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED) YKHO.assertEqual...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BUa1(YKHO):\n pB3N = dict(email=None)\n eOtH = BfDw.jwt_encode_handler(pB3N)\n Jpbe = 'JWT {0}'.format(eOtH)\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe)\n tO9_ = 'Invalid payload.'\n YKHO.assertEqual(geh0.data['detail'], tO9_)\n YKHO.assertEqual...
[ "0.8174194", "0.81603366", "0.804143", "0.804143", "0.7968202", "0.7968202", "0.7952872", "0.78278506", "0.7799434", "0.7650824", "0.75694734", "0.7501532", "0.7501532", "0.74780107", "0.74780107", "0.7423418", "0.7393209", "0.7380822", "0.7380822", "0.7310118", "0.7179725", ...
0.8207309
0
Ensure POSTing over JWT auth with invalid token fails
def rIuV(YKHO): P6bm.JWT_MAX_VALID_INTERVAL = 1 eOtH = yuk6(YKHO.user, zel7, override={'exp': qcWV.utcnow() + fCoM(1)}) Jpbe = 'JWT {0}'.format(eOtH) geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json') tO9_ = 'Incorrect authentication credentials.' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nodx(YKHO):\n Jpbe = 'JWT abc123'\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json')\n tO9_ = 'Error decoding signature.'\n YKHO.assertEqual(geh0.data['detail'], tO9_)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)\n YKHO....
[ "0.8207309", "0.8207309", "0.8174194", "0.81603366", "0.804143", "0.804143", "0.7968202", "0.7968202", "0.7952872", "0.78278506", "0.7799434", "0.75694734", "0.7501532", "0.7501532", "0.74780107", "0.74780107", "0.7423418", "0.7393209", "0.7380822", "0.7380822", "0.7310118", ...
0.7650824
11
Ensure POSTing json over JWT auth with invalid payload fails
def BUa1(YKHO): eOtH = yuk6(YKHO.user, zel7, override={'aud': 'asldkfjalskdjf'}) Jpbe = 'JWT {0}'.format(eOtH) geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe) tO9_ = 'Incorrect authentication credentials.' YKHO.assertEqual(geh0.data['detail'], tO9_) YKHO.as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SJ0B(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)\n YKHO.assertEqual(geh0['WWW-Authenticate'], 'JWT realm=\"api\"')", "def SJ0B(YKHO):\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'exa...
[ "0.8223117", "0.8223117", "0.8141336", "0.7736751", "0.77150244", "0.77150244", "0.7647862", "0.7647862", "0.74802953", "0.74543154", "0.74543154", "0.7367126", "0.7234958", "0.72339183", "0.71326345", "0.7118872", "0.7075283", "0.7068715", "0.7068715", "0.7065871", "0.704260...
0.7903779
3
Ensure using a different setting for `JWT_AUTH_HEADER_PREFIX` and with correct credentials passes.
def O_EX(YKHO): P6bm.JWT_AUTH_HEADER_PREFIX = 'Bearer' eOtH = yuk6(YKHO.user, zel7) Jpbe = 'Bearer {0}'.format(eOtH) geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) P6bm.JWT_AUTH_HEADER_PRE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O_EX(YKHO):\n widx.JWT_AUTH_HEADER_PREFIX = 'Bearer'\n pB3N = BfDw.jwt_payload_handler(YKHO.user)\n eOtH = BfDw.jwt_encode_handler(pB3N)\n Jpbe = 'Bearer {0}'.format(eOtH)\n geh0 = YKHO.csrf_client.post('/jwt/', {'example': 'example'}, HTTP_AUTHORIZATION=Jpbe, format='json')\n YKHO.assertEqua...
[ "0.8259344", "0.7809636", "0.78016764", "0.6685717", "0.662132", "0.6550615", "0.6483712", "0.6437483", "0.6427612", "0.6427612", "0.6383686", "0.63379216", "0.60669404", "0.6065914", "0.605936", "0.60451436", "0.6041303", "0.60119945", "0.5986084", "0.5978674", "0.5973542", ...
0.82446355
1
Calculates the KLDivergence between each combination of groups.
def KiEr(gGnb, MsXz, geeb, IK0l, qcoj): yvTG = {} for YRbF, Osv6 in enumerate(geeb): yvTG[Osv6] = Ri6R(MsXz[Osv6], IK0l[YRbF].apply(lambda WKvO: WKvO[:qcoj])) TwXY = {Osv6: {} for Osv6 in geeb} for YRbF, SO2l in enumerate(geeb): zjyu = Ri6R(gGnb[SO2l], IK0l[YRbF].apply(lambda WKvO: WKvO[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jjAn():\n oyIN.random.seed(12345)\n XaIe = oyIN.random.rand(200, 2)\n Ylbp = [KGJO.kl_divergence(XaIe, oyIN.random.rand(200, 2)) for bGrB in range(1000)]\n assert abs(oyIN.mean(Ylbp)) < 0.2\n XaIe += 3\n D0IF = [KGJO.kl_divergence(XaIe, oyIN.random.rand(200, 2)) for bGrB in range(1000)]\n ...
[ "0.74979764", "0.7411479", "0.71304005", "0.7104609", "0.7082949", "0.7071027", "0.7048083", "0.69923323", "0.6921658", "0.69070446", "0.6902805", "0.68876", "0.6884747", "0.6861079", "0.6849456", "0.6775618", "0.67620623", "0.6714984", "0.6703842", "0.6692192", "0.6678397", ...
0.65444183
30
Gets the mean and std of the average crossentropy per run for each window.
def d_W7(PBoD, sgw9, Yw9t): B9EC = wIXT(PBoD, sgw9, Yw9t).mean(axis=1) NdnM = wIXT(PBoD, sgw9, Yw9t).std(axis=1) return (B9EC, NdnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E4yO(YKHO):\n MVVZ = []\n for tk5Y, bGrB, RRlC in Hy7s.walk(Hy7s.path.join(YKHO.data_path)):\n for mWFP in RRlC:\n if mWFP.endswith('.jpeg'):\n MVVZ.append(Hy7s.path.join(tk5Y, mWFP))\n tuKI.shuffle(MVVZ)\n MVVZ = MVVZ[:A90d.preprocess_sample_size]\n Ylkb = 64\n ...
[ "0.6738573", "0.6730188", "0.67072326", "0.6657908", "0.66348255", "0.6602854", "0.6600679", "0.6600679", "0.6600679", "0.65493095", "0.652207", "0.6482794", "0.6477446", "0.6469551", "0.63872945", "0.63854325", "0.6342042", "0.63320845", "0.6328804", "0.6314871", "0.63093495...
0.65934795
9
Gets the means for each window and each run. Creates a matrix with a column per run and a row per window.
def wIXT(bNiP, KNEa, NtVk): B9EC = [] for YRbF, VJLQ in enumerate(bNiP): MqWa = {KnxT: VJLQ[KNEa][NtVk][KnxT].mean() for KnxT in VJLQ[KNEa][NtVk]} B9EC.append(MqWa) B9EC = rLdf.DataFrame(B9EC).T return B9EC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XM04(w_5H: npt.NDArray[T]) -> eQHC.NDArray[Kt_s]:\n SiHG = w_5H.shape[1]\n lsmZ = oyIN.full(w_5H[0, :1, ...].shape, fill_value=oyIN.nan)\n DBi9 = SiHG - 1\n Sk_F = []\n for YRbF in range(SiHG):\n h3Aq = oyIN.repeat(lsmZ, YRbF, axis=0)\n DOuq = oyIN.repeat(lsmZ, DBi9 - YRbF, axis=0)...
[ "0.74069905", "0.67786735", "0.67786735", "0.67786735", "0.6580095", "0.6550962", "0.65260375", "0.65081", "0.6502191", "0.6400238", "0.63597405", "0.63189083", "0.63189083", "0.63189083", "0.63189083", "0.6284682", "0.6246245", "0.6211056", "0.6167054", "0.6131702", "0.61298...
0.7147956
1
TestIndex | all urls match the json baseUrls
def aSnr(YKHO): YKHO.route_check('Index')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGLt(YKHO):\n with YKHO.app as Z9rn:\n _hkX = Z9rn.get('http://127.0.0.1:5000/api/v1/')\n YKHO.assertEqual(_hkX.status_code, 200)", "def zZL5(YKHO):\n geh0 = YKHO.client.get(gxEw('news_index'))\n YKHO.failUnlessEqual(geh0.status_code, 200)", "def hDnz(YKHO):\n pass", "def hDnz(Y...
[ "0.68232983", "0.6774282", "0.6716141", "0.66415375", "0.66335183", "0.65950096", "0.65202516", "0.65071625", "0.6465294", "0.64572304", "0.6432191", "0.6430887", "0.6406032", "0.6380144", "0.6378903", "0.63709414", "0.6370019", "0.6369675", "0.6355443", "0.6343488", "0.63329...
0.58552265
96
Return a formatted string representation of this Set.
def zAg0(YKHO): DumB = ['({!r})'.format(ZfUD) for ZfUD in YKHO.data.keys()] return '[{}]'.format(' -> '.join(DumB))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n sjXb = ['{}'.format(repr(G1Hx)) for G1Hx in YKHO.set.keys()]\n return '{' + ', '.join(sjXb) + '}'", "def zAg0(YKHO):\n w6rL = ''\n if YKHO._length == 0:\n w6rL = 'set([])'\n else:\n w6rL = 'set(['\n for YRbF in range(YKHO._length):\n if YRbF != YKH...
[ "0.8275446", "0.81701624", "0.78100854", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", "0.7678496", ...
0.0
-1
Return a string representation of this Set.
def CL8_(YKHO): return 'Set({!r})'.format(YKHO.data.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n w6rL = ''\n if YKHO._length == 0:\n w6rL = 'set([])'\n else:\n w6rL = 'set(['\n for YRbF in range(YKHO._length):\n if YRbF != YKHO._length - 1:\n w6rL = w6rL + repr(YKHO._array[YRbF]) + ','\n else:\n w6rL = w6rL + r...
[ "0.8367679", "0.8230742", "0.79744554", "0.78935164", "0.77822715", "0.77763605", "0.77237666", "0.76944053", "0.7692059", "0.7689179", "0.76867217", "0.7683037", "0.7683037", "0.76690876", "0.76690876", "0.7655444", "0.76529115", "0.7624858", "0.7610942", "0.7601137", "0.760...
0.0
-1
Returns a new set that is the intersection of this set and other_set
def iQin(YKHO, twyM): iQin = fHNa() wfQS = YKHO if YKHO.length() >= twyM.length() else twyM g2pi = YKHO if YKHO.length() < twyM.length() else twyM for U6D_ in wfQS.data.keys(): if g2pi.contains(U6D_): iQin.add(U6D_) return iQin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XMlP(YKHO, Elif):\n iQin = GfHp()\n for YRbF in YKHO.vals:\n if YRbF in Elif.vals:\n iQin.insert(YRbF)\n return iQin", "def iQin(YKHO, twyM):\n RE7Y = fHNa()\n if YKHO.count > twyM.count:\n print(twyM.elements.keys())\n for U6D_ in twyM.elements.keys():\n ...
[ "0.8376774", "0.83726144", "0.8184208", "0.8131935", "0.80984247", "0.8041807", "0.78959554", "0.78639203", "0.78501326", "0.77108455", "0.763831", "0.7636702", "0.76191056", "0.7613768", "0.7571935", "0.7570095", "0.75689995", "0.7566392", "0.75376916", "0.75273705", "0.7517...
0.8559072
0
Returns a new set that is the difference of this set and other_set
def by6d(YKHO, twyM): by6d = fHNa() for U6D_ in YKHO.data.keys(): if twyM.contains(U6D_) == False: by6d.add(U6D_) return by6d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def by6d(YKHO, twyM):\n RE7Y = fHNa(YKHO.elements.keys())\n for H5ew in YKHO.elements.keys():\n if twyM.contains(H5ew):\n RE7Y.remove(H5ew)\n return RE7Y", "def by6d(YKHO, Elif):\n if isinstance(Elif, fHNa):\n Hvhu = fHNa()\n for LihS in YKHO:\n if LihS not ...
[ "0.8753966", "0.87479955", "0.8702411", "0.84307146", "0.8233176", "0.8150632", "0.8122846", "0.8067118", "0.7985655", "0.79742056", "0.78053683", "0.7731214", "0.7724065", "0.7692184", "0.75744283", "0.7562613", "0.75254154", "0.7469991", "0.7450231", "0.74469644", "0.737089...
0.86866975
3
Returns a boolean indicating whether other_set is a subset of this set
def sASB(YKHO, twyM): if twyM.length() < YKHO.length(): return False for U6D_ in YKHO.data.keys(): if not twyM.contains(U6D_): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sASB(YKHO, twyM):\n KGys = 0\n for U6D_ in YKHO.items:\n if twyM.contains(U6D_):\n KGys += 1\n continue\n else:\n return False\n if KGys == YKHO.size and KGys <= twyM.size:\n return True\n else:\n return False", "def sASB(YKHO, twyM):\n...
[ "0.88661194", "0.88385993", "0.88385993", "0.88330907", "0.84709096", "0.84608734", "0.81744444", "0.81203574", "0.81203574", "0.8048298", "0.8043049", "0.8034527", "0.8030531", "0.79722977", "0.7969569", "0.7942389", "0.78772134", "0.7761139", "0.7718431", "0.7715315", "0.77...
0.9030145
0
The sqlalchemy engine made from sqlalchemy.create_engine
def eHpk(YKHO): if not YKHO.__engine: YKHO.__engine = YKHO.__create_engine(bD7m, **YKHO.__kwargs) return YKHO.__engine
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSwy():\n global engine\n if eHpk is None:\n yIVm.bind = eHpk = _9Kn('sqlalchemy')", "def eHpk() -> RyuO.engine.Engine:\n return RyuO.create_engine('sqlite://')", "def PWOV():\n i_Aq.metadata.create_all(eHpk)\n return eHpk", "def WSwy(Zu8l=None):\n GPtr = gTTK(Zu8l)\n j8eK = G...
[ "0.83588934", "0.83539796", "0.82498276", "0.8057271", "0.79962623", "0.7776006", "0.77141184", "0.76976824", "0.7663576", "0.7663115", "0.7648683", "0.75833005", "0.75739974", "0.75446606", "0.7540388", "0.75343096", "0.74977696", "0.74934196", "0.7489246", "0.74888355", "0....
0.0
-1
>>> get_number_in_str("good456sdg78") ['456', '78']
def yPmh(str): kUBT = ZbWC.search('\\d+[\\.]?\\d+', str) return kUBT.group() if kUBT else 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Twhg(str):\n qw7D = ZbWC.findall('[0-9]+', str)\n wEf2 = qw7D[0]\n return wEf2", "def uUFo(str):\n aO51 = []\n for geyT in str:\n if ord(geyT) >= 48 and ord(geyT) <= 57:\n aO51.append(geyT)\n return int(''.join(aO51))", "def DxOv(vIwR):\n return int(''.join(filter(str...
[ "0.7875952", "0.7654705", "0.7556087", "0.7444906", "0.7341066", "0.71788365", "0.71697307", "0.71481276", "0.7055468", "0.70010704", "0.6984737", "0.6864554", "0.68579334", "0.68205076", "0.6802412", "0.6789141", "0.6753696", "0.67348397", "0.6700622", "0.6692012", "0.664921...
0.810781
0
>>> trim_str("1, 2 3") '1,23'
def krX_(str): return ZbWC.sub("[\\'\\x00-\\x1F\\x80-\\xFF]+", '', str.strip())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O358(str):\n vIwR = ZbWC.sub('^\\\\s*', '', str)\n vIwR = ZbWC.sub('$\\\\s*', '', vIwR)\n return vIwR", "def O358(vIwR: str) -> str:\n return ZbWC.sub('^\\\\s*|\\\\s*$', '', vIwR)", "def O358(BWXx):\n return BWXx.strip()", "def O358(KCHu):\n Ylbp = ''\n for YRbF in range(len(KCHu)):\...
[ "0.7034878", "0.67328125", "0.66428703", "0.6593937", "0.6549144", "0.65052986", "0.6504003", "0.64233756", "0.639573", "0.63783133", "0.63437635", "0.63155663", "0.6290977", "0.62659377", "0.62358576", "0.6211008", "0.6179151", "0.6148028", "0.6077425", "0.6067677", "0.60662...
0.63567907
10
Decorator for views only meant to be accesible to account owners
def ne3s(LfXz=None): def mrMx(LpBI): @zaGL(LpBI, assigned=OZfl(LpBI)) def hJoh(QePW, *qIxc, **B2fa): CBIr = QePW.user if not QePW.user.is_authenticated(): return LpBI(QePW, *qIxc, **B2fa) ZrNc = tHSi.objects.filter(owner=CBIr) if not ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pzd4(JfyU):\n\n def h3Xc(*qIxc, **B2fa):\n if not c5ow.is_authenticated or not c5ow.is_admin:\n return {'message': 'You are not privilaged to perform this action.'}\n return JfyU(*qIxc, **B2fa)\n return h3Xc", "def XRr9(JfyU):\n\n @zaGL(JfyU)\n def Nlkd(*qIxc, **B2fa):\n ...
[ "0.7310259", "0.7174365", "0.7021472", "0.7017951", "0.70114475", "0.7006984", "0.6983387", "0.69826484", "0.6967327", "0.69651574", "0.69477177", "0.69246477", "0.6910112", "0.6907084", "0.6882675", "0.68750876", "0.6865329", "0.685448", "0.6839579", "0.68303764", "0.6818145...
0.7487881
0
this function creates a 2d list containing random letters
def czRM(): ZRxh = tuKI.randomize_board() return ZRxh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ldAM(YKHO):\n for WKvO in range(YKHO.SIZE):\n YKHO.letters.append([])\n for LVAh in range(YKHO.SIZE):\n YKHO.letters[WKvO].append(Q3Wl((WKvO, LVAh)))", "def WMxl():\n KoG3 = []\n jjgj = 0\n while jjgj < 9:\n if jjgj % 3 == 0:\n KoG3.append([])\n K...
[ "0.7565569", "0.74933714", "0.7364682", "0.7273894", "0.7266006", "0.7260794", "0.7248277", "0.7000877", "0.7000877", "0.679282", "0.65941435", "0.6571501", "0.6533665", "0.6487006", "0.64377964", "0.6435381", "0.64283156", "0.64225864", "0.6417203", "0.64156425", "0.63705903...
0.7317443
3
Set this functions eval method to return func(x). Where func is the function provided as input.
def FIMM(YKHO, JfyU): YKHO._function = JfyU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CDOO(YKHO, WKvO):\n return YKHO.func(WKvO)", "def P_ch(YKHO, JfyU):\n return JfyU", "def hb1X(YKHO, H6oC):\n YKHO.eval_func = H6oC", "def pN2J(YKHO, EcVT):\n fuBA = EcVT\n return fuBA", "def iPRZ(YKHO, JfyU):\n Ra7F = JfyU.func_name.split('_get_')[1]\n\n def pXh7(YEnM, BWXx):\n ...
[ "0.71345276", "0.70995665", "0.7061234", "0.6778859", "0.6775065", "0.67707294", "0.67490035", "0.66574883", "0.6637658", "0.65888095", "0.6563912", "0.6555627", "0.65549326", "0.6553132", "0.6532949", "0.65329", "0.64914185", "0.6475152", "0.64687055", "0.6464087", "0.644641...
0.0
-1
Return an instance of Function whose eval method returns self.eval + func_or_num.
def FOdN(YKHO, KQTj): if isinstance(KQTj, f_8k): def dcxj(mLGw): return YKHO.eval(mLGw) + KQTj.eval(mLGw) elif isinstance(KQTj, KUXB): def dcxj(mLGw): return YKHO.eval(mLGw) + KQTj else: raise TypeError('unsupported operand type for +. Functions c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, KQTj):\n if isinstance(KQTj, KUXB):\n return YKHO.eval(KQTj)\n elif isinstance(KQTj, f_8k):\n\n def JfyU(mLGw):\n return YKHO.eval(KQTj(mLGw))\n return f_8k(JfyU)\n else:\n raise TypeError('can only call a function on a real number or another function....
[ "0.8135663", "0.75759107", "0.70974517", "0.6875225", "0.6800169", "0.6732995", "0.66126305", "0.66039264", "0.6378473", "0.6330334", "0.6314218", "0.6306545", "0.63035935", "0.6298394", "0.62777674", "0.62625957", "0.6251186", "0.6241244", "0.6217875", "0.62175345", "0.61986...
0.7977567
1
Return an instance of Function whose eval method returns self.eval func_or_num.
def qjfR(YKHO, KQTj): if isinstance(KQTj, f_8k): def ACH0(mLGw): return YKHO.eval(mLGw) - KQTj.eval(mLGw) elif isinstance(KQTj, KUXB): def ACH0(mLGw): return YKHO.eval(mLGw) - KQTj else: raise TypeError('unsupported operand type for -. Functions c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, KQTj):\n if isinstance(KQTj, KUXB):\n return YKHO.eval(KQTj)\n elif isinstance(KQTj, f_8k):\n\n def JfyU(mLGw):\n return YKHO.eval(KQTj(mLGw))\n return f_8k(JfyU)\n else:\n raise TypeError('can only call a function on a real number or another function....
[ "0.836974", "0.767746", "0.7119283", "0.7080392", "0.6976108", "0.6747011", "0.66410697", "0.6565144", "0.6463763", "0.6456528", "0.64079255", "0.63924885", "0.63924885", "0.63187826", "0.62497914", "0.62414384", "0.6220193", "0.62112415", "0.6191772", "0.6189556", "0.6148706...
0.7054388
4
Return an instance of Function whose eval method is self.eval func_or_num.
def E_tF(YKHO, KQTj): if isinstance(KQTj, f_8k): def YEX8(mLGw): return YKHO.eval(mLGw) * KQTj.eval(mLGw) elif isinstance(KQTj, KUXB): def YEX8(mLGw): return YKHO.eval(mLGw) * KQTj else: raise TypeError('unsupported operand type for *. Functions c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, KQTj):\n if isinstance(KQTj, KUXB):\n return YKHO.eval(KQTj)\n elif isinstance(KQTj, f_8k):\n\n def JfyU(mLGw):\n return YKHO.eval(KQTj(mLGw))\n return f_8k(JfyU)\n else:\n raise TypeError('can only call a function on a real number or another function....
[ "0.8488908", "0.7504026", "0.7202525", "0.7116068", "0.706317", "0.67449254", "0.65662456", "0.6537529", "0.64608836", "0.6411596", "0.64064485", "0.64064485", "0.6191453", "0.6186925", "0.61301035", "0.61152023", "0.61040753", "0.60995847", "0.60605913", "0.60547197", "0.600...
0.71414495
3
Return an instance of Function whose eval method is self.eval / func_or_num.
def HVh8(YKHO, KQTj): if isinstance(KQTj, f_8k): def jneV(mLGw): if KQTj.eval(mLGw) == 0: return float('nan') return YKHO.eval(mLGw) / KQTj.eval(mLGw) elif isinstance(KQTj, KUXB): if KQTj == 0: def jneV(mLGw): return float('na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, KQTj):\n if isinstance(KQTj, KUXB):\n return YKHO.eval(KQTj)\n elif isinstance(KQTj, f_8k):\n\n def JfyU(mLGw):\n return YKHO.eval(KQTj(mLGw))\n return f_8k(JfyU)\n else:\n raise TypeError('can only call a function on a real number or another function....
[ "0.82245934", "0.73690856", "0.70420355", "0.6967541", "0.69603807", "0.6881695", "0.68314785", "0.6810732", "0.6700829", "0.65320265", "0.64137095", "0.6319676", "0.6315418", "0.63143057", "0.6308041", "0.6279013", "0.6276747", "0.6241038", "0.62067044", "0.6192928", "0.6168...
0.6849869
6
Return an instance of Function whose eval method is self.eval^func_or_num.
def JYo6(YKHO, KQTj): if isinstance(KQTj, f_8k): def naF9(mLGw): return YKHO.eval(mLGw) ** KQTj.eval(mLGw) elif isinstance(KQTj, KUXB): def naF9(mLGw): return YKHO.eval(mLGw) ** KQTj else: raise TypeError('unsupported operand type for **. Function...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, KQTj):\n if isinstance(KQTj, KUXB):\n return YKHO.eval(KQTj)\n elif isinstance(KQTj, f_8k):\n\n def JfyU(mLGw):\n return YKHO.eval(KQTj(mLGw))\n return f_8k(JfyU)\n else:\n raise TypeError('can only call a function on a real number or another function....
[ "0.8204421", "0.7427944", "0.7275151", "0.7272475", "0.72296923", "0.70512086", "0.6841842", "0.6675841", "0.6610227", "0.65046626", "0.64439553", "0.64229816", "0.64001286", "0.6338492", "0.6309197", "0.63012", "0.6277863", "0.62455547", "0.6185733", "0.61701953", "0.6157250...
0.78008735
1
Returns the value of the called object of obj is a callable, otherwise the plain object. Returns None if obj is None. >>> obj = None >>> _plain_or_callable(obj) >>> stmt = 'select from sys.nodes' >>> _plain_or_callable(stmt) 'select from sys.nodes'
def u2mj(YEnM): return YEnM() if callable(YEnM) else YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qlq6(YEnM):\n if not callable(YEnM):\n raise dnUl('Object {0!r} is not callable.'.format(YEnM))\n return YEnM", "def VBj0(YEnM):\n if hasattr(ONrU, 'callable'):\n qlq6 = callable(YEnM)\n else:\n qlq6 = hasattr(YEnM, '__call__')\n return qlq6", "def nFSj(YEnM, Zc6P):\n ...
[ "0.69358826", "0.69347066", "0.6904089", "0.69025964", "0.6580435", "0.6577555", "0.6341173", "0.62344885", "0.6222193", "0.6195022", "0.60829914", "0.60378855", "0.60219747", "0.60055375", "0.5987144", "0.5950472", "0.59141505", "0.5880738", "0.5839701", "0.5799792", "0.5719...
0.8137609
0
Checks whether all stores are balanced over time.
def x2xH(exwG): F1m0 = exwG.stores hGop = F1m0.index if hGop.empty: return uuEx = exwG.snapshots Z9rn = 'Store' oaOd = exwG.pnl(Z9rn) Dagl = KiM7(exwG.snapshot_weightings.stores[uuEx], hGop) BXJT = (1 - s46z(exwG, Z9rn, 'standing_loss', uuEx)).pow(Dagl) yKcO = oaOd.e.iloc[-1]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oC5F(YKHO):\n if YKHO._sell_orders.is_empty() or YKHO._buy_orders.is_empty():\n return\n XJNX, UzGY = YKHO._buy_orders.max()\n gXa0, U1Yx = YKHO._sell_orders.min()\n DpyC = 0\n if UzGY >= U1Yx:\n if XJNX >= gXa0:\n YKHO._sell_orders.remove_min()\n DpyC = gXa0\...
[ "0.6752518", "0.65046626", "0.6439751", "0.6218353", "0.6198314", "0.61772627", "0.6125871", "0.6121589", "0.6062474", "0.60518324", "0.6003513", "0.59814006", "0.5965764", "0.59159625", "0.5894426", "0.5884176", "0.58768696", "0.5855883", "0.5834259", "0.58063585", "0.580033...
0.0
-1
Creates a Pandas DatetimeIndex based on a column having time information.
def Zd0r(jQ3Z, r1Ih): jQ3Z = jQ3Z.sort_values(by=r1Ih) jQ3Z = jQ3Z.reset_index(drop=True) jQ3Z['time'] = rLdf.to_datetime(jQ3Z[r1Ih]) jQ3Z = jQ3Z.set_index(rLdf.DatetimeIndex(jQ3Z['time'])) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EchZ(nPrm, iVRZ):\n nPrm[iVRZ] = rLdf.DatetimeIndex(nPrm[iVRZ])\n nPrm.set_index(iVRZ, inplace=True)\n return nPrm", "def d6pt(YKHO) -> rLdf.DatetimeIndex:\n yKcO = YKHO.starttime()\n VIPT = YKHO.frames()\n KIaA = YKHO.clk()\n WXkz = [yKcO + qcWV.timedelta(seconds=YRbF * KIaA) for YRbF i...
[ "0.6767004", "0.6741744", "0.65879744", "0.63916206", "0.6110011", "0.6049574", "0.59788525", "0.5916651", "0.58845794", "0.5882199", "0.585104", "0.5837803", "0.58290076", "0.5792217", "0.57695407", "0.5762052", "0.5713322", "0.56388414", "0.56161225", "0.5529949", "0.550285...
0.8014233
0
Helper function to normalize the values of a column to scale 0.01.0. If 'sum_column' is passed, the values will be normalized according that column.
def OrIz(jQ3Z, AZ40, zjnJ, pDqm=None): jQ3Z = jQ3Z.copy() for zZcM, pan_ in zip(AZ40, zjnJ): if not pDqm: sSHf = jQ3Z[zZcM].sum() else: sSHf = jQ3Z[pDqm].sum() jQ3Z.loc[jQ3Z.index, pan_] = jQ3Z[zZcM] / sSHf return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SvbG(jQ3Z, AAHb):\n jQ3Z[AAHb] = jQ3Z[AAHb] / sum(jQ3Z[AAHb])", "def SvbG(jQ3Z, fvDH):\n kpLf = jQ3Z[fvDH].min()\n JCoA = jQ3Z[fvDH].max()\n return (jQ3Z[fvDH] - kpLf) / (JCoA - kpLf)", "def NkkI(iVRZ):\n return (iVRZ - oyIN.mean(iVRZ)) / oyIN.std(iVRZ)", "def XGue(hxoQ, OciN='Y Range'):\n...
[ "0.76659405", "0.7161874", "0.70065254", "0.66745853", "0.6540509", "0.6530638", "0.6472953", "0.644364", "0.6389352", "0.63756233", "0.63579243", "0.6324219", "0.6321269", "0.6320062", "0.6301638", "0.6293551", "0.6277783", "0.627139", "0.625295", "0.62522966", "0.6171733", ...
0.646928
7
Helper functino to calculate Pearson and Spearman correlations
def XJVK(jQ3Z, iIDh, C0Wu): VLmp, J7uV = pRq9(jQ3Z[iIDh], jQ3Z[C0Wu]) KrcL, PPTj = mLyZ(jQ3Z[iIDh], jQ3Z[C0Wu]) return (VLmp, J7uV, KrcL, PPTj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VaRB(WKvO, LVAh):\n import scipy.stats as eQSh\n return eQSh.pearsonr(WKvO, LVAh)", "def A1dO(WKvO, LVAh):\n Mkmy, qpV3 = eQSh.pearsonr(WKvO, LVAh)\n return (Mkmy, qpV3)", "def WUHg(YKHO):\n E0fg = 1e-60\n if YKHO.d1.N != YKHO.d2.N:\n YKHO.prob = -1.0\n else:\n JLY_ = Pus...
[ "0.8067236", "0.7979757", "0.7840511", "0.77994466", "0.7764408", "0.76969564", "0.76859736", "0.7631244", "0.76266867", "0.76125556", "0.7559051", "0.7500476", "0.7484713", "0.74815685", "0.7463305", "0.745304", "0.745172", "0.7421568", "0.7414854", "0.74092233", "0.7389092"...
0.765656
7
Helper function to create autocorrelation plots for specified columns
def UU07(nPrm, ZLJ_=['Official', 'Instagram', 'Twitter', 'Flickr']): for fvDH in ZLJ_: SfWw(nPrm[fvDH])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WN7Z(YKHO, bySB):\n \"\"\"\n :param features: pandas Dataframe, it represents the features that will be analyzed \n \"\"\"\n pass", "def SfWw(jQ3Z: DataFrame) -> zoLL.Graph:\n exwG = len(jQ3Z)\n nPrm = oyIN.asarray(jQ3Z)\n JBMS = oyIN.mean(nPrm)\n Ngpo = oyIN.sum((nPrm - JBMS)...
[ "0.7481639", "0.73974305", "0.70370716", "0.6979052", "0.6974999", "0.6671487", "0.65500903", "0.65328044", "0.63820314", "0.6370363", "0.6282286", "0.623582", "0.6228431", "0.6212556", "0.61416185", "0.613952", "0.6124692", "0.60935", "0.60935", "0.6069651", "0.60321265", ...
0.88127655
0
Split dataframe equally to chunks.
def Qqzl(jQ3Z, ztRo): if len(jQ3Z) >= ztRo: return oyIN.array_split(jQ3Z, len(jQ3Z) // ztRo) else: return [jQ3Z]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zv6i(jQ3Z, ztRo=10000):\n ocVn = 0\n while ocVn < len(jQ3Z):\n yield jQ3Z.iloc[ocVn:ocVn + ztRo]\n ocVn += ztRo", "def jtx2(YKHO, jQ3Z):\n HN6s = jQ3Z.shape[0]\n ztRo = min(HN6s, YKHO.api_limit - 1)\n eHxA = [jQ3Z.loc[jQ3Z.index[YRbF:YRbF + ztRo]].copy() for YRbF in range(0, HN6s...
[ "0.83088183", "0.82598525", "0.79264134", "0.78223574", "0.7637773", "0.7576227", "0.7403403", "0.73395497", "0.71992576", "0.7151651", "0.7139595", "0.70499796", "0.69866204", "0.6912602", "0.6903883", "0.6800694", "0.6760541", "0.67135006", "0.6672586", "0.6672522", "0.6648...
0.7131961
11
Run migrations in 'online' mode. In this scenario we need to create an Engine and associate a connection with the context.
def uCwR(): RcTn = DY7K() for mWFP, ETu_ in RcTn.items(): eHpk = ETu_['engine'] ETu_['connection'] = w2B8 = eHpk.connect() if HlAt: ETu_['transaction'] = w2B8.begin_twophase() else: ETu_['transaction'] = w2B8.begin() try: for mWFP, ETu_ in RcTn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uCwR():\n raise NotImplementedError('Please specify engine connectivity here')\n if isinstance(eHpk, cGGv):\n UzPC = eHpk.connect()\n else:\n raise Exception('Expected engine instance got %s instead' % type(eHpk))\n QpfX.configure(connection=UzPC, target_metadata=sa00)\n try:\n ...
[ "0.85386014", "0.8353335", "0.82873154", "0.8183897", "0.80899787", "0.79811233", "0.79267067", "0.787414", "0.78671193", "0.7858809", "0.7845303", "0.7845303", "0.78266424", "0.7763385", "0.7762429", "0.7741282", "0.77300453", "0.7714461", "0.7583551", "0.7469888", "0.744711...
0.7710292
18
Find the contours of an image and return an array of them sorted by increasing perimeter size.
def r7rX(f4IJ, _hZ2=None): f4IJ, Iowl, gEYm = XC5k.findContours(f4IJ, XC5k.RETR_TREE, XC5k.CHAIN_APPROX_SIMPLE) Iowl = sorted(Iowl, key=XC5k.contourArea, reverse=True) msM8 = [] _hfn = [] for iLki in Iowl: cDmO = XC5k.arcLength(iLki, closed=False) d6pt = Ce1H.bisect(_hfn, cDmO) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ksu7(LNo8):\n Yjcv, Iowl, gEYm = XC5k.findContours(LNo8, XC5k.RETR_TREE, XC5k.CHAIN_APPROX_SIMPLE)\n Iowl = [r9Hf for r9Hf in Iowl if len(r9Hf) > 1]\n return Iowl", "def qwfl(YKHO, knl1):\n bGrB, Z3J6 = XC5k.threshold(YKHO.img, thresh=knl1, maxval=255, type=XC5k.THRESH_BINARY)\n if XC5k.__vers...
[ "0.7633694", "0.7559439", "0.7423818", "0.7422264", "0.7252186", "0.72463167", "0.72284776", "0.7179254", "0.71510834", "0.708259", "0.70503986", "0.70496327", "0.7046883", "0.70450324", "0.70241624", "0.6977141", "0.69158906", "0.68591034", "0.6826599", "0.6825038", "0.67665...
0.0
-1
Given a line in the form x0, y0, x1, y1, this function will return the x value the horizontal line y2 intersects
def LO4K(nJ9F, nxyw, o4D3, si3g, skBL): try: VMex = float(si3g - nxyw) / float(o4D3 - nJ9F) ya19 = float(skBL - nxyw) / VMex except: ya19 = 0 ajwV = ya19 + nJ9F return int(ajwV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XMlP(cnXz, Ijzj):\n if cnXz.slope - Ijzj.slope == 0:\n return None\n Jity = (Ijzj.intercept - cnXz.intercept) / (cnXz.slope - Ijzj.slope)\n TWQQ = cnXz.slope * Jity + cnXz.intercept\n return PvyL(Jity, TWQQ)", "def nMIm(Nqlg, LVAh=0):\n return (Nqlg[:, 0, 0] - LVAh * oyIN.sin(Nqlg[:, 0,...
[ "0.8166592", "0.7897081", "0.78224176", "0.7812868", "0.7797485", "0.77454346", "0.7638491", "0.75972265", "0.75972265", "0.75972265", "0.7572404", "0.7561353", "0.7527702", "0.7527702", "0.7500683", "0.7429008", "0.74089426", "0.739859", "0.7396635", "0.7394282", "0.73298377...
0.6813106
60
Removes persistent data from the datastore after running tests.
def tBIc(YKHO): YKHO.user.delete() YKHO.project_owner.delete() YKHO.project.delete() YKHO.app.delete() YKHO.token.delete()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _NQr():\n Z7L0.datastore_interface.clear_datastore()", "def tBIc(YKHO):\n NCls.session.close()\n NCls.drop_all()", "def NdQt(YKHO):\n pass", "def q2Y7():\n P4t4 = LUif(PSrQ)\n VygP = P4t4.app_context()\n VygP.push()\n NCls.create_all()\n NCls.session.remove()\n NCls.drop_all...
[ "0.7431451", "0.72717303", "0.72117853", "0.71563", "0.7087649", "0.7004866", "0.7004757", "0.69790375", "0.69788253", "0.6968076", "0.6954555", "0.6943388", "0.6935376", "0.6933427", "0.69252867", "0.69252867", "0.69179153", "0.6894589", "0.6894315", "0.6876806", "0.6876806"...
0.0
-1
Remove html tags from a string
def JZhs(l5Ny): import re x0SS = re.compile('<.*?>') return re.sub(x0SS, '', l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)", "def Iw0V(vIwR):\n return ZbWC.sub('<[^>]*?>', ' ', vIwR)", "def gg3k(input):\n p8Nh = ZbWC.compile('<.*?>')\n Bopb = ZbWC.sub(p8Nh, '', input)\n return Bopb", "def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return Zb...
[ "0.86815035", "0.85845494", "0.8547164", "0.8528413", "0.84839606", "0.84403396", "0.84221727", "0.84221727", "0.84218365", "0.83305824", "0.83305824", "0.83305824", "0.8295757", "0.82903194", "0.8277659", "0.82659954", "0.8257645", "0.82211536", "0.8206369", "0.8150789", "0....
0.8354987
10
Get operation descriptors that have descriptor_handle as OperationTarget.
def kx6S(YKHO, ATQd: str, **zrcT: Any) -> list[YAdL]: ISgI = YKHO.get_operation_descriptors() JTrL = [grhQ for grhQ in ISgI if grhQ.OperationTarget == ATQd] for H5ew, BWXx in zrcT.items(): JTrL = [khtY for khtY in JTrL if getattr(khtY, H5ew) == BWXx] return JTrL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tU9c(YKHO):\n return YKHO._relationship.get('target_operations', {})", "def qSCM(YKHO) -> list[ksob]:\n TlDD = YKHO.data_model.pm_names\n Aofo = []\n for PGEZ in (TlDD.SetValueOperationDescriptor, TlDD.SetStringOperationDescriptor, TlDD.ActivateOperationDescriptor, TlDD.SetContextStateOperationDe...
[ "0.6030803", "0.5983729", "0.5801879", "0.5246689", "0.5182126", "0.51245904", "0.5091612", "0.5078201", "0.5064648", "0.5057855", "0.5038167", "0.50303334", "0.501554", "0.49218392", "0.49209738", "0.49209738", "0.49209738", "0.49209738", "0.49199706", "0.4899976", "0.489644...
0.75498605
0
Adds configurations from a YAML file on the given path.
def r0Uf(YKHO, qaEx: str): try: jv9P = YKHO._read_file('configuration', qaEx) YKHO._parse_configuration_yaml_str(configuration_yaml_str=jv9P, file_path=qaEx) except Exception as e: YKHO._logs.error(f'Could not add configuration from file path {qaEx}', exception=tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(YKHO, pmON):\n with open(pmON) as wOb_:\n YKHO._config = eJb6.load(wOb_)", "def OswW(YKHO, lqQH):\n if lqQH and Hy7s.path.isfile(lqQH):\n with open(lqQH) as dzb4:\n YKHO.__merge(eJb6.load(dzb4.read()))", "def fOck(pmON):\n with open(pmON) as eHNT:\n DumB = eJb6...
[ "0.7617968", "0.7568633", "0.7530695", "0.7467656", "0.7344268", "0.72876656", "0.7280247", "0.72624063", "0.7176664", "0.7176664", "0.71704644", "0.7139514", "0.71069694", "0.7067676", "0.6981318", "0.6978728", "0.6958324", "0.69436795", "0.69436795", "0.69384634", "0.693658...
0.7908827
0
Adds configurations from a YAML formatted string. Parameter file_path is optional and can be used to get the location of the log/error in the logs.
def J8jP(YKHO, mlL6: str, qaEx: str='yaml string'): try: YKHO._parse_configuration_yaml_str(configuration_yaml_str=mlL6, file_path=qaEx) except Exception as e: YKHO._logs.error('Could not add environment configurations from string', exception=tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r0Uf(YKHO, qaEx: str):\n try:\n jv9P = YKHO._read_file('configuration', qaEx)\n YKHO._parse_configuration_yaml_str(configuration_yaml_str=jv9P, file_path=qaEx)\n except Exception as e:\n YKHO._logs.error(f'Could not add configuration from file path {qaEx}', exception=tTpl)", "def p...
[ "0.74732167", "0.67869943", "0.66130453", "0.65819186", "0.65551144", "0.65183824", "0.65092856", "0.648907", "0.64887667", "0.6483451", "0.6424926", "0.63538915", "0.6339127", "0.63065606", "0.6300094", "0.6299382", "0.6253521", "0.6228303", "0.6205154", "0.6191119", "0.6172...
0.7571381
0
Pass a spark_session to the scan. Only required in case of PySpark scans.
def mxi4(YKHO, YSLL, Oew3: str='spark_df'): try: YKHO._configuration.add_spark_session(data_source_name=Oew3, spark_session=YSLL) except Exception as e: YKHO._logs.error(f'Could not add environment spark session for data_source {Oew3}', exception=tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bwvU(JfyU, Fv2L={}):\n A7td()\n WTqv(Fv2L)\n fMs9(Fv2L)\n U5bT = JfyU(XGYN)\n unT4(U5bT)\n return U5bT", "def Yu9h():\n return lBG2.builder.appName('Sales processor').master('local[*]').getOrCreate()", "def eOfA(Emd4):\n Emd4.spark = lBG2.builder.appName('ALS Recommendation Engine')...
[ "0.6812523", "0.64144325", "0.63839424", "0.62578416", "0.61784375", "0.61784375", "0.6159269", "0.6148496", "0.6144923", "0.6135602", "0.6122194", "0.612119", "0.6117408", "0.61162764", "0.6106291", "0.61008114", "0.6098874", "0.6097294", "0.6095877", "0.6095877", "0.6095877...
0.5891697
53
Return a list of all user applications. Returns
def J72S(): ckRy = (GkAb('~/.local/share/applications/').expanduser(), GkAb('/usr/local/share/applications/')) XLL2 = {} for pmON in ckRy: for qaEx in pmON.glob('*.desktop'): mWFP = qaEx.stem XLL2[mWFP] = qaEx return XLL2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wAGx(YKHO):\n return obBa.do_call(YKHO.modelserver, YKHO.modelport, 'listapps', {'modelname': YKHO.modelname, 'user': YKHO.user, 'password': YKHO.password})", "def FzDK(YKHO):\n return YKHO._get_request(YKHO.baseurl + '/5.0/getapplist.do')", "def FzDK(YKHO):\n return YKHO._get_request(YKHO.baseurl...
[ "0.79025865", "0.7870682", "0.7870682", "0.78468287", "0.78052604", "0.7739873", "0.7725254", "0.7707679", "0.7664141", "0.76570284", "0.7585083", "0.7475826", "0.7472433", "0.744379", "0.74433917", "0.74433917", "0.7434516", "0.73851806", "0.7371724", "0.73698807", "0.735449...
0.6699175
52
Load config files. For a given model, a set of 'global' default configs will first be loaded from [default_configs_dir]/defaults, and will then be updated with any values specified in datasetspecific config files found in [default_configs_dir]/dataset_name, if they exist. Finally, these configs will be updated with any...
def oOia(DMw4: str='pvae', j3aw: Optional[str]=None, AKvf: Optional[str]=None, VOVy: Optional[str]=None, yLsB: Optional[str]=None, wrkX: Optional[str]=None, rFUX: str='configs') -> AzJI[cuzp[str, ImMB], cuzp[str, ImMB], cuzp[str, ImMB], cuzp[str, ImMB], cuzp[str, ImMB]]: eWiF = Hy7s.path.join(rFUX, 'defaults', f'mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BLx6(YKHO):\n if len(YKHO._labels) == 0:\n raise M9sJ('labels')\n ItMU = iQWf()\n jvwH = aM_N.load_cfg(open(YKHO.cfg_path))\n xUE2 = ItMU.merge_from_file(rA0C.get_config_file(jvwH.pop('MODEL_CFG')))\n ItMU.merge_from_other_cfg(jvwH)\n Hy7s.makedirs(ItMU.OUTPUT_DIR, exist_ok=True)\n ...
[ "0.6691639", "0.6365957", "0.620494", "0.6187829", "0.61311114", "0.6103652", "0.6103475", "0.6060918", "0.6036154", "0.60159105", "0.59673226", "0.5942559", "0.594182", "0.5934359", "0.592634", "0.587402", "0.58669496", "0.58350646", "0.58178097", "0.5805786", "0.58049494", ...
0.73086005
0
Return a scaled down image based on a maximum perimeter `m`. The original image is returned if `m` is None or if the image is smaller.
def TwCk(VXjJ, r8hN): jtcR = sum(VXjJ.shape[:2]) if r8hN and jtcR > r8hN: lO3O = float(r8hN) / jtcR VXjJ = XC5k.resize(VXjJ, None, fx=lO3O, fy=lO3O) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fCfU(VXjJ, kvoN):\n MKlR, yzQ0 = VXjJ.shape[:2]\n if MKlR > kvoN or yzQ0 > kvoN:\n return fCfU(XC5k.pyrDown(VXjJ), kvoN)\n else:\n return VXjJ", "def l5Iv(hOiy):\n return imIE(hOiy, min(hOiy.size), min(hOiy.size))", "def RqpP(VXjJ, exwG, r8hN):\n o8mw = oyIN.zeros((exwG, r8hN, ...
[ "0.6802926", "0.63446456", "0.61782414", "0.6161881", "0.61297476", "0.6123033", "0.61107695", "0.60864383", "0.60849106", "0.6078831", "0.60557544", "0.5998837", "0.5980762", "0.5968636", "0.59366286", "0.5909717", "0.58922803", "0.58827776", "0.57927424", "0.5790868", "0.57...
0.83699316
0
Return a generator which yields data in chunks.
def fWQr(rVmU: FileIO, Z1S6: int=4096) -> iu5r[bytes]: for yOAJ in iter(lambda: rVmU.read(Z1S6), b''): yield yOAJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aNpr(YKHO, ztRo=dVY5):\n otbn = YKHO.calculate_chunks_number()\n for YRbF in range(otbn):\n nPrm = YKHO.file.read(ztRo)\n yield nPrm", "def gBT0(YKHO):\n if YKHO.data is not None and YKHO.chunks is not None:\n for exwG in range(0, len(YKHO.data) + 1, len(YKHO.data) // YKHO.chunk...
[ "0.81007266", "0.77813154", "0.7723619", "0.766215", "0.7649626", "0.7642785", "0.7508298", "0.7502847", "0.7415704", "0.7406766", "0.7272016", "0.72684896", "0.72319466", "0.72297174", "0.72234285", "0.72200966", "0.71565956", "0.71175873", "0.70938575", "0.70844954", "0.707...
0.6691234
53
Test SignUpNormal checks sign up with valid credentials
def HkAj(YKHO): Ozko = jlHz(YKHO.driver) Ozko.click_signin_link() Ozko.click_signup_link() D3lj = Ozko.get_random_email() Ozko.set_credential(D3lj, *CSZu.SIGNUP_EMAIL_FIELD) Ozko.set_credential('555555', *CSZu.SIGNUP_PASSWORD_FIELD) Ozko.set_credential('555555', *CSZu.SIGNUP_PASSWORD_CONFIRM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VrlW(YKHO):\n YKHO.assertEqual(FYrf.SUCCESS, YKHO.users.sign_up('userA', 'myPassword', 'myPassword', 'userA@gmail.com'))", "def Io6H(YKHO):\n YKHO.assertEqual(FYrf.FAILURE, YKHO.users.sign_up('', '', '', 'both_blank@gmail.com'))", "def vEWC(YKHO):\n YKHO.assertEqual(FYrf.FAILURE, YKHO.users.sign_u...
[ "0.80911076", "0.8089022", "0.7970483", "0.7902398", "0.77945775", "0.77551216", "0.77541137", "0.77479064", "0.76950854", "0.7689518", "0.7673825", "0.7576819", "0.75637805", "0.75556225", "0.75526917", "0.75488555", "0.75457203", "0.75435346", "0.7537146", "0.75140464", "0....
0.72678
37
Forward input latent vector x through the network.
def KVH6(YKHO, WKvO: torch.Tensor) -> ht2j.Tensor: WKvO = YKHO.pixelwise_norm(WKvO) WKvO = YKHO.z_to_image(WKvO) WKvO = WKvO.view(-1, YKHO.scale_depths[0], 4, 4) WKvO = YKHO.pixelwise_norm(WKvO) for gEmA in YKHO.scale_layers[:-1]: WKvO = gEmA(WKvO) WKvO = YKHO._skip_connect(WKvO, YKHO.sc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO: T.Tensor):\n pass", "def KVH6(YKHO, WKvO):\n return YKHO.net.forward(WKvO)", "def KVH6(YKHO, WKvO):\n WKvO = YKHO.model.forward(WKvO)\n return WKvO", "def KVH6(YKHO, WKvO):\n ...", "def KVH6(YKHO, WKvO: Tensor) -> llWB:\n rlvg = WKvO\n WKvO = YKHO.normalization(WKv...
[ "0.8283739", "0.81861496", "0.7998511", "0.79557484", "0.79494464", "0.793921", "0.7886746", "0.78867096", "0.783584", "0.783584", "0.7777724", "0.77740175", "0.7753382", "0.77499455", "0.7749908", "0.7746895", "0.774489", "0.77401954", "0.77086234", "0.77086234", "0.77078843...
0.0
-1
Create a block of convolution layers with activations and norms.
def cxer(YKHO, DYuh: int, tYiq: int) -> U78l.Module: return U78l.Sequential(YKHO.upsample, RaQk(in_channels=DYuh, out_channels=tYiq, kernel_size=3, padding=1), YKHO.lrely, YKHO.pixelwise_norm, RaQk(in_channels=tYiq, out_channels=tYiq, kernel_size=3, padding=1), YKHO.lrely, YKHO.pixelwise_norm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQG_(NArs):\n\n def mBtZ(g4y1, LT6S=True, PJWX=False):\n \"\"\"Convolution Block Builder\"\"\"\n if PJWX:\n print(' {}: Creating convolution{} block w/ kernel size {}, stride {}, and {} filters. Norm={}'.format(NArs['name'], ' (Transpose)' if NArs['is_transpose'] else '', NArs['ker...
[ "0.78587836", "0.78316706", "0.7787829", "0.7787829", "0.7787829", "0.752808", "0.75219935", "0.7493596", "0.74884546", "0.7486717", "0.7486717", "0.7486717", "0.7486717", "0.7486717", "0.7486717", "0.7486717", "0.7468293", "0.7464276", "0.74329555", "0.7395841", "0.7382483",...
0.0
-1
Create a block of convolution layers with activations and norms.
def cxer(YKHO, NSBW: int, Ka96: int) -> U78l.Module: return U78l.Sequential(RaQk(in_channels=NSBW, out_channels=NSBW, kernel_size=3, padding=1), YKHO.lrely, RaQk(in_channels=NSBW, out_channels=Ka96, kernel_size=3, padding=1), YKHO.lrely, YKHO.downsample)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQG_(NArs):\n\n def mBtZ(g4y1, LT6S=True, PJWX=False):\n \"\"\"Convolution Block Builder\"\"\"\n if PJWX:\n print(' {}: Creating convolution{} block w/ kernel size {}, stride {}, and {} filters. Norm={}'.format(NArs['name'], ' (Transpose)' if NArs['is_transpose'] else '', NArs['ker...
[ "0.7858692", "0.7831188", "0.7787861", "0.7787861", "0.7787861", "0.75282", "0.7522868", "0.7492742", "0.74875414", "0.748725", "0.748725", "0.748725", "0.748725", "0.748725", "0.748725", "0.748725", "0.74683726", "0.7464718", "0.74335235", "0.7394608", "0.7383127", "0.7360...
0.0
-1
Function to fill the column business_type in df according to the types associated with different business categories.
def pe_G(YKHO): print('LOG: [Preprocessing Engine] Filling business types.') ZNiN = YKHO._ip_dataframe.copy() for d6pt, rdlD in ZNiN.iterrows(): WBmJ = rdlD['categories'] if len(WBmJ) == 0: continue KAhC = None BJsk = set(WBmJ) & set(q94q) if len(BJsk) != ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gQI0(YKHO):\n print('LOG: [Preprocessing Engine] Generating business types map.')\n DqnU = {}\n for G1Hx in q94q:\n DqnU[G1Hx] = []\n DqnU['Restaurants'] = ['Food']\n for d6pt, rdlD in YKHO._ip_dataframe.iterrows():\n VJUP = rdlD['categories']\n b3Ib = False\n U7BO = ...
[ "0.6446999", "0.6195626", "0.58750576", "0.5763935", "0.56170106", "0.55745333", "0.55368406", "0.55274653", "0.55232", "0.54657894", "0.54634553", "0.54316777", "0.5423687", "0.53804153", "0.5374304", "0.5373474", "0.5333809", "0.5333048", "0.5319726", "0.52400565", "0.52391...
0.7994529
0
Indicate whether the session has been closed.
def msNV(YKHO) -> bool: return YKHO._closed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W5SF(YKHO):\n return YKHO._state == YKHO.STATE_CLOSING", "def SEEh(YKHO):\n return not YKHO.is_open()", "def msNV(YKHO):\n return YKHO._state == YKHO.STATE_CLOSED", "def SEEh(YKHO):\n return YKHO._is_state(Cy2T)", "def SEEh(YKHO):\n return YKHO.connection is None", "def SEEh(YKHO):\n ...
[ "0.77257806", "0.7650337", "0.7638511", "0.76280123", "0.7604992", "0.7604992", "0.7604504", "0.7591087", "0.75647414", "0.7555144", "0.7551629", "0.755158", "0.75332165", "0.7526312", "0.750881", "0.7458823", "0.7458823", "0.74570334", "0.74554646", "0.74179846", "0.73513615...
0.73078096
31
Convert semver string `revision` to a tuple of integers
def BvuR(XkTm): return tuple(map(int, XkTm.split('.')))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aFFl(frmn):\n fUpG = []\n for KCHu in frmn.split('.'):\n try:\n fUpG.append(int(KCHu))\n except ValueError:\n fUpG.append(KCHu)\n return tuple(fUpG)", "def BvuR(YKHO, IexU):\n AdfU = ZbWC.split('\\\\D', IexU)\n BHGE = []\n for KCHu in AdfU:\n try:\...
[ "0.75740236", "0.754201", "0.75095487", "0.7470955", "0.7453287", "0.74346536", "0.7354045", "0.7344745", "0.7246606", "0.7226218", "0.71567035", "0.7136785", "0.71292144", "0.71055174", "0.70745283", "0.7072897", "0.7017058", "0.69936454", "0.69137526", "0.6907253", "0.68935...
0.8445872
0
Calculates the Weighted Running Average of a sequence over the last N values using the specified weighing_funciton.
def niom(dy_H, ywwl, tsn2=None): if not tsn2: tsn2 = lambda WKvO: 1 ZBv3 = [] for P2GO in range(len(dy_H)): sum = 0 ciZM = 0 for gDyN in range(ywwl): if P2GO - gDyN < 0: break sum += dy_H[P2GO - gDyN] * tsn2(gDyN) ciZM += ts...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jyvQ(KnxT):\n UzNu = 0.0\n for WKvO in KnxT:\n UzNu += WKvO\n if len(KnxT) > 0:\n return UzNu / len(KnxT)\n return -1", "def XBfN(YKHO, yMhW, _mSQ, SZFh=lambda WKvO: WKvO):\n nPrm = list(map(SZFh, YKHO[-yMhW:]))\n _mSQ = _mSQ[-len(nPrm):]\n return rfOc(nPrm, weights=_mSQ)",...
[ "0.6210524", "0.6095435", "0.6087008", "0.5993331", "0.5963756", "0.58902365", "0.584144", "0.584144", "0.584144", "0.584144", "0.58348995", "0.5832919", "0.5825927", "0.58098376", "0.57899666", "0.577026", "0.5756382", "0.5730467", "0.56984556", "0.56903666", "0.56720066", ...
0.74719137
0
Shape a reward value that has been obtained. Reward shaping entails the calculation of time steps at which returns should be updated along with the weighted reward for each. This function applies exponential discounting based on the value of gamma specified in the current agent (i.e., the traditional reward shaping app...
def _HTf(YKHO, vOGg: Reward, GB7w: int, T3WQ: int) -> cuzp[int, float]: fIzt = {a1PO: YKHO.gamma ** (T3WQ - a1PO) * vOGg.r for a1PO in range(GB7w, T3WQ + 1)} return fIzt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xb50(YKHO, KMvS=0.99):\n A3Vt = YKHO.rolling_returns_batch[-1]\n E3D9 = YKHO.rolling_mean_batch[-1]\n cAlv = YKHO.rolling_dev_batch[-1]\n for YRbF in range(YKHO.num_steps):\n jFFD = YKHO.rew_batch[YRbF]\n _ins = YKHO.done_batch[YRbF]\n urcG = YKHO.eps_steps_batch[YRbF]\n ...
[ "0.7228667", "0.65088034", "0.6395141", "0.62760395", "0.6257843", "0.61914843", "0.6169325", "0.6169325", "0.6169325", "0.61559576", "0.6130939", "0.6130124", "0.6116542", "0.6110943", "0.60911965", "0.5993311", "0.5956786", "0.5949319", "0.5949319", "0.5949319", "0.5945067"...
0.60936576
14
Reset the agent for a new run.
def l6Pm(YKHO, QTBn: MdpState): super().reset_for_new_run(QTBn) YKHO.pi.reset_for_new_run(QTBn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n raise NotImplementedError('Agent must implement reset method.')", "def VWYQ(YKHO):\n for YWSi in YKHO.agent_buffer():\n YWSi.reset_agent()\n YKHO.time = 0\n YKHO.steps = 0", "def SiRx(YKHO):\n for YWSi in YKHO.agents:\n YWSi.reset()", "def SiRx(YKHO):\n for Y...
[ "0.78800184", "0.7694274", "0.75727534", "0.75727534", "0.75727534", "0.75727534", "0.75490725", "0.74019194", "0.73769367", "0.7239481", "0.7225995", "0.71871644", "0.7146933", "0.7119355", "0.71064615", "0.70862085", "0.70702", "0.7020209", "0.701789", "0.70177525", "0.6995...
0.0
-1
Return an iterator over all subsets of size in the list sizes. Each call to the iterator returns a tuple.
def bYsD(QJkK, maxY): IrPK = [Zo0i(QJkK, KCHu) for KCHu in maxY] return zhES.chain(*IrPK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wCK1(YKHO, zNig=None, qonS=0, E0wO=None):\n if zNig is not None:\n qonS = E0wO = zNig\n elif E0wO is None:\n E0wO = len(YKHO)\n ZT17 = list(YKHO.keys())\n for PCpl in Hs6x.product(*(PtV4(0, YKHO[G1Hx]) for G1Hx in ZT17)):\n if qonS <= sum(PCpl) <= E0wO:\n yield NbZb....
[ "0.7263787", "0.6938767", "0.6712576", "0.6683495", "0.65588087", "0.6408462", "0.63824236", "0.6373839", "0.6347201", "0.63452214", "0.63412976", "0.63388634", "0.6323448", "0.63155514", "0.6240758", "0.62291497", "0.62261415", "0.6219424", "0.6218742", "0.6182737", "0.61783...
0.7584411
0
List files in the specified folder which have the specified extensions. Do not traverse subfolders.
def rxuq(xtX7, CBZq): hKNL = [Hy7s.path.join(xtX7, '*' + aTqo) for aTqo in CBZq] _PsJ = [] for XYbJ in hKNL: DVdk = SC2F.glob(XYbJ) _PsJ.extend(DVdk) return _PsJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q79m(xtX7, Fst3):\n IgJl = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))\n cfbQ = SC2F.glob(Hy7s.path.join(IgJl, xtX7, '*.{}'.format(Fst3)))\n return cfbQ", "def Q79m(xtX7, Fst3):\n IgJl = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))\n cfbQ = SC2F.glob(Hy7s.path.join(IgJl, xtX7, '*.{}'.format(Fst...
[ "0.7879494", "0.7879494", "0.77934", "0.7680287", "0.7631542", "0.75890106", "0.75872326", "0.75007", "0.7410262", "0.7346936", "0.7329767", "0.7325075", "0.73248255", "0.7301517", "0.7261312", "0.72589505", "0.72440124", "0.7220995", "0.719598", "0.71708345", "0.7134493", ...
0.75897396
5
Name of the data quality element for which quality is reported.
def qt2O(YKHO) -> nx8J: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.element.Name", "def mWFP(YKHO):\n return YKHO.measure[YKHO]", "def mWFP(YKHO) -> h8nf[str]:\n if not YKHO.dimensions:\n return None\n return YKHO.dimensions[0].name", "def mWFP(YKHO):\n return YKHO.qualdecl.name", "def NDHI(C8Km):\n if C8Km < V13v:\n ...
[ "0.6885729", "0.68451965", "0.67206204", "0.6633625", "0.6532872", "0.652916", "0.6527204", "0.6515946", "0.6488578", "0.6487266", "0.64577055", "0.6451364", "0.6431479", "0.6417989", "0.6406972", "0.6399734", "0.639513", "0.63883436", "0.63572574", "0.6346139", "0.6340226", ...
0.6250949
30
Get the current state of the SmartPlug.
def QTBn(YKHO): Ylbp = YKHO.__post_xml(YKHO.__xml_cmd('get', '')) if Ylbp != 'ON' and Ylbp != 'OFF': raise Exception('Failed to communicate with SmartPlug') return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_state(YKHO):\n geh0 = await YKHO._get_volumio_msg('getState')\n return geh0.copy()", "def NMoC(YKHO):\n return YKHO.state", "def GBfH():\n Blrn.acquire()\n KCHu = zTEz.state\n Blrn.release()\n return KCHu", "def ja6o(YKHO):\n with YKHO.__state_lock:\n return YKHO....
[ "0.7337742", "0.7320611", "0.73001784", "0.72373396", "0.7189871", "0.71644306", "0.7161381", "0.7151655", "0.71426356", "0.71426356", "0.71426356", "0.71426356", "0.71426356", "0.71426356", "0.71426356", "0.71426356", "0.71426356", "0.71426356", "0.71426356", "0.71426356", "...
0.8073263
0
Merge two network dictionaries
def o_f1(FNmj: typing.Dict, gNIt: typing.Dict) -> laHg.Dict: for H5ew in FNmj: FNmj[H5ew].update(gNIt[H5ew]) return FNmj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yQxF(YKHO, WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(YKHO, WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(YKHO, WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(WKvO, LVAh):\n ...
[ "0.73698944", "0.7341801", "0.7316611", "0.72977144", "0.72020495", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", "0.7071462", ...
0.68357384
27
Gets the list of polarizations for each sicd. Returns Tuple[str]
def D9Zq(YKHO): return tuple((ylYA.get_processed_polarization() for ylYA in YKHO.get_sicds_as_tuple()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oz2U(YKHO) -> x1iM[M8A2]:\n return [M8A2(Ty9i) for Ty9i in YKHO.item.properties.get(bx5Z)]", "def oz2U(YKHO):\n return oyIN.array(YKHO._polarizations)", "def JSmP(YKHO) -> AzJI[x1iM[str], x1iM[ZQ5O]]:\n\n def g_2H(pGMM):\n KQvF = YKHO._find_main('./productComponents/imageData[@layerIndex=\"...
[ "0.64413875", "0.6203571", "0.6173156", "0.59990335", "0.5814353", "0.5779236", "0.55652314", "0.55474705", "0.5522647", "0.5522647", "0.5467513", "0.54433364", "0.54347664", "0.5401479", "0.53496146", "0.5282792", "0.5228736", "0.5216756", "0.5207407", "0.5183485", "0.516759...
0.81935865
0
initializes attribute checker and num moves
def FIMM(YKHO, ZUyI): assert ZUyI == 'X' or ZUyI == 'O' YKHO.checker = ZUyI YKHO.num_moves = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._moves = {}\n YKHO._atom_guess = {}", "def FIMM(YKHO, oLdq):\n YKHO._moves = oLdq", "def FIMM(YKHO):\n YKHO.stop = 0\n YKHO.moves = []", "def FIMM(YKHO):\n iBIi = dxAK.new_board()\n YKHO.mf = SdXZ()\n oLdq = YKHO.mf.find_all_turns('O', iBIi, 0)\n YKHO.initial...
[ "0.6613021", "0.65067655", "0.6441613", "0.63986874", "0.63360447", "0.63263506", "0.6193799", "0.61916745", "0.6184482", "0.6179526", "0.6177654", "0.6173503", "0.6162239", "0.6156115", "0.6154112", "0.61522675", "0.6086912", "0.6077975", "0.60763425", "0.60599995", "0.60541...
0.7133673
0
Get current length of sequence contained in Segment.
def R8e4(YKHO): return YKHO._segmentSize
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n u54L = 0.0\n for pG0V in YKHO.list_segments:\n u54L += pG0V.length\n return u54L", "def u54L(YKHO):\n VytY = YKHO.asSegments()\n u54L = 0\n for KCHu in VytY:\n u54L += KCHu.length\n return u54L", "def u54L(YKHO):\n if YKHO._internal_data_invalid:\n ...
[ "0.8145744", "0.7913957", "0.7850304", "0.7765315", "0.7726756", "0.75779754", "0.7445508", "0.74345416", "0.7418597", "0.7365075", "0.7325331", "0.7321467", "0.7263033", "0.72076696", "0.71913165", "0.7189631", "0.7141229", "0.7126739", "0.7110883", "0.7110883", "0.7110883",...
0.69543654
44
Returns normalized file name with forward slashes.
def Bsrk(mWFP: str) -> str: return uD7E(pmON.normpath(mWFP).replace('\\', '/'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KCN7(FYKK):\n return FYKK.replace('\\\\', '/')", "def oaWZ(Pf49):\n Pf49 = Pf49.replace('\\\\', '/')\n return Pf49", "def s5sT(Ux0P):\n return Hy7s.path.normcase(Hy7s.path.realpath(Ux0P))", "def rqJL(YKHO):\n return Hy7s.path.abspath(YKHO._filename).replace('\\\\', '/')", "def NkkI(Ux0P)...
[ "0.8579479", "0.7624918", "0.74597913", "0.73984045", "0.73802286", "0.7350205", "0.72800565", "0.7258179", "0.7257075", "0.72320503", "0.7194322", "0.7180946", "0.7170898", "0.71608466", "0.7136207", "0.7113252", "0.7078977", "0.7057655", "0.7052409", "0.70334125", "0.699907...
0.0
-1
Inits variables needed to be initialised each time we reset at the start of an episode.
def Omha(YKHO): YKHO.gazebo.unpauseSim() YKHO.ExecuteTakeoff(altitude=0.8) YKHO.cumulated_reward = 0.0 fHfo = YKHO.current_gt_pose.position YKHO.prev_dist_des_point = YKHO.get_dist_des_point(fHfo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R_vc(YKHO):\n YKHO._episode_reward = 0\n YKHO._episode_length = 0\n YKHO._episode_time = ITS7.time()\n YKHO._terminal = False\n YKHO._success = False\n YKHO._fail = False\n YKHO._unity_updated = False", "def oBa3(YKHO):\n YKHO.last_state = YKHO.pool.map(pg6r, YKHO.env)\n YKHO.episo...
[ "0.7884775", "0.77279615", "0.757912", "0.7546047", "0.75283754", "0.75021106", "0.7495019", "0.7441416", "0.74339724", "0.7404604", "0.7404604", "0.7404086", "0.7334032", "0.7231973", "0.71831983", "0.7105232", "0.70828027", "0.7035482", "0.70283276", "0.7022575", "0.6984786...
0.0
-1
Test whether the ``shaped`` is 1dimensional.
def s_rM(S9Ti: Shaped) -> bool: return hasattr(S9Ti, 'ndim') and getattr(S9Ti, 'ndim') == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cpfl(jzdc):\n return jzdc.ndim == 1", "def RNm2(S9Ti: Shaped) -> bool:\n return hasattr(S9Ti, 'ndim') and getattr(S9Ti, 'ndim') == 2", "def s_rM(YKHO):\n return True", "def sIWk(nPrm):\n return nPrm.shape[0] == oyIN.size(nPrm)", "def i7bu(epBp):\n if type(epBp) is not ht2j.Tensor:\n ...
[ "0.779034", "0.7755927", "0.7460248", "0.7388054", "0.7174785", "0.7151216", "0.7072731", "0.70329773", "0.7021087", "0.70202994", "0.6934506", "0.6915312", "0.6772439", "0.67287177", "0.67263484", "0.66166335", "0.6604679", "0.65983564", "0.65451676", "0.6413782", "0.6384958...
0.89711654
0
Test whether the ``shaped`` is 2dimensional.
def RNm2(S9Ti: Shaped) -> bool: return hasattr(S9Ti, 'ndim') and getattr(S9Ti, 'ndim') == 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bu_Z(YKHO) -> bool:\n return YKHO.ndim == 2", "def RNm2(YKHO):\n return False", "def RNm2(YKHO):\n return YKHO._type <= 0", "def s_rM(S9Ti: Shaped) -> bool:\n return hasattr(S9Ti, 'ndim') and getattr(S9Ti, 'ndim') == 1", "def Wqqk(YKHO) -> bool:\n return YKHO.n_vertices == 3", "def AXA...
[ "0.8073013", "0.8071659", "0.7827194", "0.75564253", "0.75493234", "0.7170871", "0.7048512", "0.67321104", "0.6613228", "0.6521278", "0.65032595", "0.6357925", "0.6319696", "0.6286959", "0.6245049", "0.6235864", "0.6217219", "0.6192611", "0.61784804", "0.614841", "0.6116863",...
0.91033524
0
Return whether the ``vector`` is contiguous in memory. This is only ``True`` for a dense vector.
def QOYL(iArr: Vector) -> bool: if isinstance(iArr, (rLdf.DataFrame, rLdf.Series, rLdf.core.indexes.base.Index)): iArr = iArr.values if isinstance(iArr, rLdf.core.arrays.categorical.Categorical): iArr = oyIN.array(iArr) A0RF = pMeo(iArr) if A0RF is None: return False return A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PKvG(YKHO):\n return YKHO._array.strides[1] // YKHO._array.itemsize == 1", "def QOYL(YKHO):\n return False", "def PKvG(YKHO):\n pass", "def Auqn(WKvO) -> bool:\n return 1 <= len(WKvO.shape) <= 2", "def HzBD(YKHO):\n return PsOK.is_c_contiguous(YKHO.ai_)", "def xtKo(YKHO):\n return n...
[ "0.73966604", "0.69402844", "0.66128206", "0.6539245", "0.6463367", "0.63816476", "0.62228966", "0.6195681", "0.6098621", "0.6004052", "0.5908597", "0.58266", "0.57440597", "0.5740612", "0.57293814", "0.5716613", "0.57103735", "0.56853503", "0.5673314", "0.5646041", "0.563973...
0.82360834
0
Assert that some data is in canonical format. For numpy matrices or vectors, this means the data is contiguous (for matrices, in either rowmajor or columnmajor order). For sparse matrices, it means the data is in COO format, or compressed (CSC or CSR format), with sorted indices and no duplicates. In general, we'd like...
def DrQS(S9Ti: Shaped) -> None: assert hasattr(S9Ti, 'ndim'), 'non-canonical shaped data: has no ndim attribute' if s_rM(S9Ti): RRSq = QOYL(S9Ti) assert RRSq, 'non-canonical vector: non-contiguous 1D data' return assert RNm2(S9Ti) SppC: aLMY = S9Ti o7sj = vdmu(SppC) if o7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ylhG(S9Ti: Shaped) -> bool:\n if not hasattr(S9Ti, 'ndim'):\n return False\n if s_rM(S9Ti):\n return QOYL(S9Ti)\n assert RNm2(S9Ti)\n SppC: aLMY = S9Ti\n o7sj = vdmu(SppC)\n if o7sj is None:\n return bOqw(SppC) is not None\n if o7sj.getformat() not in ('coo', 'csr', 'c...
[ "0.63255674", "0.5825862", "0.5783601", "0.5644585", "0.54958826", "0.5484552", "0.5406288", "0.5406288", "0.52843916", "0.52344877", "0.5207767", "0.5179427", "0.5136941", "0.5124327", "0.50769895", "0.5074076", "0.50662166", "0.5020752", "0.50117236", "0.5010896", "0.500329...
0.68180466
0
Return whether the data is in canonical format. For numpy matrices or vectors, this means the data is contiguous (for matrices, in either rowmajor or columnmajor order). For sparse matrices, it means the data is in COO format, or compressed (CSC or CSR format), with sorted indices and no duplicates. In general, we'd li...
def ylhG(S9Ti: Shaped) -> bool: if not hasattr(S9Ti, 'ndim'): return False if s_rM(S9Ti): return QOYL(S9Ti) assert RNm2(S9Ti) SppC: aLMY = S9Ti o7sj = vdmu(SppC) if o7sj is None: return bOqw(SppC) is not None if o7sj.getformat() not in ('coo', 'csr', 'csc'): r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DrQS(S9Ti: Shaped) -> None:\n assert hasattr(S9Ti, 'ndim'), 'non-canonical shaped data: has no ndim attribute'\n if s_rM(S9Ti):\n RRSq = QOYL(S9Ti)\n assert RRSq, 'non-canonical vector: non-contiguous 1D data'\n return\n assert RNm2(S9Ti)\n SppC: aLMY = S9Ti\n o7sj = vdmu(Sp...
[ "0.6758195", "0.61830914", "0.60694456", "0.5725069", "0.5725069", "0.5695369", "0.56211585", "0.56175756", "0.5578268", "0.5567012", "0.5560727", "0.55446565", "0.54795283", "0.54793525", "0.54586524", "0.53870815", "0.5340245", "0.5264093", "0.52420306", "0.5230884", "0.522...
0.7293547
0
Returns dict of raw materials and list of crafting commands for Malmo
def foER(YKHO, ht7m, UHFx=1): zKHR, wQcs = YKHO._ingredients_helper(ht7m, UHFx) wQcs.reverse() for uBMr in zKHR: zKHR[uBMr] = epAf.ceil(zKHR[uBMr]) return (zKHR, wQcs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LSZ7(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'materials')", "def LSZ7(YKHO) -> bdIy['outputs.MaterialResponse']:\n return qe4Y.get(YKHO, 'materials')", "def Cjp0():\n LSZ7 = dict()\n for C13M in iqPE.Material.objects():\n LSZ7[str(C13M.material_name)] = dict()\n LSZ7[str(C13M....
[ "0.6560835", "0.63637906", "0.6276872", "0.6237443", "0.62296546", "0.60931635", "0.607826", "0.59841406", "0.5928899", "0.59039754", "0.588331", "0.58462983", "0.5838375", "0.5820273", "0.5780303", "0.57695603", "0.5753849", "0.57458645", "0.5737638", "0.57293725", "0.567664...
0.0
-1