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
Changes the visibility timeout of multiple messages. This is a batch version of `` ChangeMessageVisibility .`` The result of the action on each message is reported individually in the response. You can send up to 10 `` ChangeMessageVisibility `` requests with each ChangeMessageVisibilityBatch action.
def Biwt(Xk_R=None, g6S3=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Biwt(YKHO, Xk_R: str, g6S3: List) -> cuzp:\n pass", "def w29o(Xk_R=None, pZgR=None, ZmrP=None):\n pass", "def oH8m(YKHO, Tezm, Ol8d, akm7=0):\n YKHO._client.change_message_visibility(QueueUrl=Tezm, ReceiptHandle=Ol8d['ReceiptHandle'], VisibilityTimeout=akm7)", "def Y40G(YKHO, yEHD, GaqZ='primary...
[ "0.7058397", "0.6689693", "0.64614403", "0.63278246", "0.58296204", "0.55451196", "0.5198808", "0.5046309", "0.5046309", "0.5046309", "0.5046309", "0.5046309", "0.5046309", "0.5046309", "0.5046309", "0.5046309", "0.5046309", "0.5046309", "0.5046309", "0.5046309", "0.5046309",...
0.73455673
0
Create a paginator for an operation.
def oL8A(hTqE=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\...
[ "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.70472574", "0.67338336", "0.6382978",...
0.7726925
11
Returns the URL of an existing Amazon SQS queue. To access a queue that belongs to another AWS account, use the QueueOwnerAWSAccountId parameter to specify the account ID of the queue\'s owner. The queue\'s owner must grant you permission to access the queue. For more information about shared queue access, see `` AddPe...
def TysO(Stta=None, tXVF=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def akJw():\n vexM = pehk.get_queue_url(QueueName='DiningConciergeSQS').get('QueueUrl')\n return vexM", "def TysO(YKHO, Stta: str, tXVF: str=None) -> cuzp:\n pass", "def TysO(YKHO, Q64Y):\n try:\n geh0 = YKHO.client.get_queue_url(QueueName=Q64Y)\n except:\n geh0 = {}\n return ge...
[ "0.8032025", "0.7799939", "0.73420465", "0.71496356", "0.7115441", "0.7087041", "0.7087041", "0.6761117", "0.6728037", "0.6724997", "0.65592337", "0.65230155", "0.63672", "0.6333624", "0.62446123", "0.6203169", "0.61807036", "0.61689186", "0.6166048", "0.6037684", "0.60176384...
0.84231514
0
Delivers a message to the specified queue.
def WdaX(Xk_R=None, vC_4=None, a97W=None, pmTA=None, unVJ=None, Ru7V=None, GXn1=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gGq6(YKHO, gGq6, Ol8d):\n YKHO.client.send(gGq6, Ol8d.encode())", "def Q0Tj(YKHO, tO9_):\n YKHO.queue_deliver.put(tO9_)", "def qXSh(Ol8d, gGq6):\n a5v3.basic_publish(exchange='', routing_key=gGq6, body=str(Ol8d))", "def gGq6(YKHO, Ol8d, gGq6):\n raise NotImplementedError('Implement this metho...
[ "0.7435357", "0.73927176", "0.7313502", "0.71632755", "0.6632832", "0.6597864", "0.6597864", "0.65003157", "0.6485331", "0.6481583", "0.64557475", "0.6449865", "0.63641596", "0.63592666", "0.6292631", "0.62556386", "0.6233993", "0.61712116", "0.6160627", "0.6146523", "0.61296...
0.0
-1
Method to create Spark Context
def ziHU(): Fv2L = Mwml().setAppName(Mfgp).setMaster('local[4]').set('spark.executor.memory', '4g').set('spark.executor.cores', '4').set('spark.driver.cores', '2').set('spark.driver.memory', '2g') Sa_m = XYQe(conf=Fv2L) return Sa_m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lUHD():\n Fv2L = Mwml().setMaster('local').setAppName('Logistic Regression').set('spark.executor.memory', '1g')\n Sa_m = XYQe(conf=Fv2L)\n return Sa_m", "def lUHD():\n Fv2L = Mwml().setMaster('local').setAppName('Logistic Regression').set('spark.executor.memory', '1g')\n Sa_m = XYQe(conf=Fv2L)...
[ "0.8292832", "0.82891834", "0.8169698", "0.81421435", "0.79179615", "0.78066915", "0.77548444", "0.7651248", "0.75939417", "0.75374305", "0.7477022", "0.72942394", "0.72600156", "0.72587043", "0.721897", "0.71623325", "0.7117919", "0.7085795", "0.7069337", "0.70552593", "0.70...
0.8291777
1
Perform classlevel initialization after plugins have been loaded at startup. This occurs if a new linter plugin is added or reloaded after startup. Subclasses may override this to provide custom behavior, then they must call cls.initialize().
def PJ6G(Emd4): Emd4.initialize()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n7Z_(YKHO):\n YKHO._preloop_hooks = []\n YKHO._postloop_hooks = []\n YKHO._postparsing_hooks = []\n YKHO._precmd_hooks = []\n YKHO._postcmd_hooks = []\n YKHO._cmdfinalization_hooks = []", "def WduG():\n pass", "def WduG():\n pass", "def FIMM(YKHO):\n YKHO.plugins = {}\n bo34...
[ "0.7087333", "0.6944668", "0.6908028", "0.6718023", "0.6636559", "0.66167676", "0.6558593", "0.6465084", "0.6417515", "0.64164156", "0.63463193", "0.63204175", "0.6310975", "0.62088245", "0.62037706", "0.61945987", "0.6186482", "0.6146818", "0.61412984", "0.61362827", "0.6103...
0.0
-1
Returns the underlying Logger, with the `propagate` attribute set to the same value as `log_to_stdout`. For example, when `log_to_stdout = False`, we do not want the `DatasetLogger` to propagate up to the base Logger which writes to stdout. This is a workaround needed due to the DatasetLogger wrapper object not having ...
def fZx2(YKHO, Lpg1: bool=True) -> G9jH.Logger: if YKHO._logger is None: YKHO._logger = YKHO._initialize_logger() YKHO._logger.propagate = Lpg1 return YKHO._logger
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2(YKHO):\n return YKHO.logger", "def fZx2(YKHO):\n return YKHO.logger", "def bo34(YKHO) -> G9jH.Logger:\n return YKHO.__logger__", "def bo34(YKHO) -> Few0:\n return YKHO.agent.logger", "def fZx2():\n return S0MI", "def fZx2():\n return bo34", "def fZx2(YKHO):\n return YKHO._...
[ "0.66861933", "0.66861933", "0.66859305", "0.6671648", "0.66640496", "0.666032", "0.66489524", "0.66153187", "0.659488", "0.6529998", "0.6485437", "0.64574957", "0.6444371", "0.64253247", "0.6423947", "0.6410722", "0.6389522", "0.6356198", "0.63233167", "0.6303579", "0.630206...
0.78315765
0
Use shell32.GetCommandLineArgvW to get sys.argv as a list of unicode
def U5XW(): from ctypes import POINTER, byref, cdll, c_int, windll from ctypes.wintypes import LPCWSTR, LPWSTR f8Zg = cdll.kernel32.GetCommandLineW f8Zg.argtypes = [] f8Zg.restype = LPCWSTR oRES = windll.shell32.CommandLineToArgvW oRES.argtypes = [LPCWSTR, POINTER(c_int)] oRES.restype = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U5XW():\n f8Zg = gk2W.windll.kernel32.GetCommandLineW\n f8Zg.restype = gk2W.c_wchar_p\n HCmI = f8Zg()\n oRES = gk2W.windll.shell32.CommandLineToArgvW\n oRES.argtypes = [gk2W.c_wchar_p, gk2W.POINTER(gk2W.c_long)]\n oRES.restype = gk2W.POINTER(gk2W.c_wchar_p)\n o1uN = gk2W.c_int(0)\n E0cB...
[ "0.8574182", "0.77369136", "0.7168828", "0.67168266", "0.65324616", "0.65039605", "0.6487593", "0.648194", "0.6471019", "0.6436081", "0.64223015", "0.6237816", "0.6236865", "0.6224995", "0.62224066", "0.62179786", "0.61945826", "0.61907524", "0.6159589", "0.6155634", "0.61556...
0.87854815
0
Matches `id_tuple` to the list of tuples `exception_list`, which can contain wildcards (match any entry) and lists (match any entry that is in the list).
def HLM5(LU8G, uOcl): if any([len(a1PO) != len(uOcl) for a1PO in LU8G]): raise ValueError('Each tuple in `match_list` must have the same number of elements as `match_id`') aRcx = [] for OJy8 in LU8G: Owpj = [] for YRbF in range(len(OJy8)): GpZ1 = OJy8[YRbF] if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oyIo(scRe: List[Path], _s_K: str) -> x1iM[AzJI[str, GkAb]]:\n TQoi = [_Hxu(pmON) for pmON in scRe]\n return [(q9wQ, scRe[hksT]) for hksT, q9wQ in enumerate(TQoi) if not ZbWC.match(_s_K, q9wQ)]", "def EQ8I(YKHO, XgyP: List[Annotation]) -> x1iM[UvGt]:\n YKHO._annotations = set(XgyP)\n UAju = []\n ...
[ "0.54714644", "0.5272471", "0.5222895", "0.5182156", "0.51084024", "0.51058257", "0.50808954", "0.49067837", "0.4897606", "0.48900488", "0.48721126", "0.48218364", "0.48003906", "0.47507837", "0.4736772", "0.47131062", "0.46612412", "0.46607557", "0.46341747", "0.46339965", "...
0.5972225
0
Return the elapsed time in seconds.
def N8Pq(YKHO) -> float: return onpT.default_timer() - YKHO.start_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZjh(YKHO) -> float:\n return YKHO.current_time - YKHO.start_time", "def QZjh(YKHO) -> float:\n return YKHO.current_time_posix() - YKHO.start_time_posix()", "def BkQx(YKHO):\n RA_F = qcWV.now() - YKHO._started\n return RA_F.seconds + RA_F.microseconds / 1000000", "def z59i(YKHO):\n if YKHO...
[ "0.8556529", "0.8531031", "0.8366883", "0.8214428", "0.8187964", "0.8133391", "0.8087984", "0.80741525", "0.8066289", "0.8066048", "0.8037788", "0.8031399", "0.8006052", "0.79844606", "0.79606795", "0.79421574", "0.79145133", "0.790443", "0.78916895", "0.7860944", "0.7843443"...
0.8067675
8
ensure email is in the database
def Bt7w(YKHO, o8Kj, JZXy): CBIr = mv1M.objects.filter(email__iexact=o8Kj['email'], is_active=True) if CBIr: return o8Kj raise IyFz.ValidationError('Email address not verified for any user account')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bt7w(YKHO, D3lj):\n CBIr = mv1M.query.filter_by(email=D3lj.data).first()\n if CBIr:\n raise sUXu('Email already in use')", "def Bt7w(YKHO, D3lj):\n PGGO = mv1M.query.filter_by(email=D3lj.data.strip()).first()\n if PGGO:\n raise sUXu('Email is associated with another account. Please ...
[ "0.7680283", "0.7572695", "0.7528123", "0.75167274", "0.7482786", "0.74816173", "0.7435523", "0.74351746", "0.7432985", "0.7430783", "0.7390945", "0.7364744", "0.7341007", "0.7338267", "0.7329488", "0.730139", "0.730139", "0.730139", "0.72900516", "0.72806203", "0.7277635", ...
0.0
-1
Search for a Tweet node in the graph matching this status, and return it if it exists (otherwise None).
def aNkj(pNZh, jGRS): return pNZh.nodes.match('Tweet', tweet_id=jGRS.id).first()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQWV(rxEN, fjLt=False):\n if TLDQ.get(rxEN['id_str'], False):\n return TLDQ[rxEN['id_str']]\n else:\n rxEN['last_scraped'] = l8xu\n cLMB = {}\n for G1Hx in LQQP:\n if rxEN.get(G1Hx, False):\n cLMB[G1Hx] = xnln(rxEN[G1Hx])\n if fjLt:\n ...
[ "0.6784397", "0.6085425", "0.60607994", "0.59722984", "0.59466", "0.588487", "0.5829424", "0.57981783", "0.57486403", "0.5746485", "0.5729989", "0.56968766", "0.567553", "0.5675388", "0.5659999", "0.5636181", "0.5615328", "0.56138635", "0.56041884", "0.5590279", "0.5582002", ...
0.7801139
0
Turns a digit [char] in character representation from the number system with base [BASE] into an integer.
def GQEX(YKHO, hcXw): if hcXw.isdigit(): return ord(hcXw) - YKHO.__digit_offset elif 'A' <= hcXw <= 'Z': return ord(hcXw) - YKHO.__uppercase_offset elif 'a' <= hcXw <= 'z': return ord(hcXw) - YKHO.__lowercase_offset else: raise ValueError('%s is not a valid character' % h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FGW3(KCHu, P8oC=10):\n return kfgY(KCHu, base=P8oC, strip=1)", "def VZC1(mLGw, P8oC):\n U5bT = 0\n for Ko6S in mLGw:\n U5bT *= P8oC\n U5bT += int(Ko6S)\n return U5bT", "def kfgY(KCHu, P8oC=10, Nlxd=0, BHGE=None):\n assert P8oC > 1, 'invalid base {base}'.format(base=P8oC)\n i...
[ "0.7853553", "0.7423733", "0.74061245", "0.7236134", "0.722726", "0.7205399", "0.71923417", "0.7163034", "0.7094201", "0.70696974", "0.7056364", "0.7022406", "0.7012683", "0.6985186", "0.69847333", "0.69770473", "0.6969511", "0.69267774", "0.6925205", "0.6925205", "0.6925205"...
0.0
-1
Turns an integer [integer] into digit in base [BASE] as a character representation.
def v82b(YKHO, kAne): if kAne < 10: return chr(kAne + YKHO.__digit_offset) elif 10 <= kAne <= 35: return chr(kAne + YKHO.__uppercase_offset) elif 36 <= kAne < 62: return chr(kAne + YKHO.__lowercase_offset) else: raise ValueError('%d is not a valid integer in the range of ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def npVH(mLGw, P8oC):\n if mLGw <= 0:\n return '0'\n BHGE = []\n for YRbF in range(13, -1, -1):\n naF9 = P8oC ** YRbF\n BHGE.append(str(mLGw / naF9))\n mLGw %= naF9\n return ''.join(BHGE)", "def a8Pe(mLGw, P8oC):\n Ylbp = ''\n while mLGw > 0:\n Ylbp = vIwR.pri...
[ "0.79518974", "0.78665507", "0.7763499", "0.7717879", "0.76585", "0.7654565", "0.76422226", "0.76314807", "0.76133496", "0.7574311", "0.75692284", "0.75575656", "0.7553417", "0.75524694", "0.75104535", "0.7471844", "0.7468066", "0.7468066", "0.7468066", "0.74531144", "0.74288...
0.0
-1
Sum all epsilons over nodes in each level, divide by number of nodes on that level, then add the level epsilons together Or, better, take 1 node from each level and see its budget
def d67S(YKHO, _HmG: __NodeDict__) -> float: g49U = {} for ABDL, Ziit in _HmG.items(): eYwk = Ziit.map(lambda Q6kx: Q6kx.getEpsilon()) QJ28 = eYwk.take(1)[0] print('Checking budgets spent by each node on each level...') sbx9 = eYwk.map(lambda c3qt, SGf8=QJ28: abs(c3qt - SGf8)).re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kmu_(YKHO) -> float:\n return YKHO._leaf_sum", "def kmu_(YKHO) -> float:\n return YKHO._leaf_sum", "def b5cf(a1PO):\n return UXqs(a1PO) + sum([b5cf(Fg_i) for Fg_i in GZiu(a1PO)])", "def ZT7c(Q6kx):\n return sum(LLQv(Q6kx, 'cost'))", "def Whvy(h6dQ, yLAy):\n _NHN = list(yLAy)\n RJoW = ...
[ "0.6357852", "0.6357852", "0.63476616", "0.6320089", "0.62513316", "0.59424424", "0.59395987", "0.59122723", "0.5891413", "0.58818567", "0.5873738", "0.5872009", "0.58675975", "0.58629453", "0.5850738", "0.58408445", "0.5828795", "0.5821259", "0.58194464", "0.58193374", "0.58...
0.6783386
0
Returns a list of all field identifiers for the model.
def TnMw(Emd4): return [Jyyj['identifier'] for Jyyj in Emd4.fields]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zJN_(YKHO):\n ZWCE = []\n for Jyyj in YKHO.identity_fields.all():\n ZWCE.append(Jyyj.name)\n return ZWCE", "def C8hB(YKHO):\n ...", "def TnMw(YKHO):\n V_D6 = []\n for Jyyj in YKHO.identity_fields.all():\n V_D6.append(Jyyj.name, Jyyj.value, Jyyj.get_type_display())\n retur...
[ "0.8042708", "0.7736765", "0.75494504", "0.7502989", "0.7489007", "0.73358405", "0.72745174", "0.72701067", "0.7265723", "0.7264791", "0.7263814", "0.7220486", "0.72013754", "0.7201249", "0.72006196", "0.7136541", "0.71335775", "0.71335775", "0.7097872", "0.70795393", "0.7068...
0.80481625
0
Controls the retrieval of command line arguments using the argparse module.
def EmPl(): wvEv = j1Jz.ArgumentParser(description='Master script') wvEv.add_argument('config_filename', type=str, help='input filename for config file') return wvEv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fX90(YKHO):\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--list', action='store_true', default=True, help='List all LPARs (default: True)')\n wvEv.add_argument('--refresh-cache', action='store_true', default=False, help='Force refresh of cache by making API requests to HMC (default: False - use...
[ "0.7220943", "0.7164796", "0.71432287", "0.70747983", "0.70428854", "0.70125073", "0.6995467", "0.6995467", "0.6995467", "0.6995467", "0.69930047", "0.69754666", "0.6957677", "0.695475", "0.6953805", "0.6952518", "0.694831", "0.6948073", "0.69405764", "0.69405764", "0.6938877...
0.0
-1
Write projects_obj as a JSON file for a given year. Save the file under the dir_path directory, or under the default directory if none is given.
def uP8n(gJO4, Gxmv, eHKs=None): if eHKs: VqRE = Hy7s.path.join(eHKs, '{}.json'.format(gJO4)) else: VqRE = '../booklets_data/{}.json'.format(gJO4) with open(VqRE, 'w', encoding='utf-8') as eHNT: qQXR.dump(Gxmv, eHNT, ensure_ascii=False, indent=4, sort_keys=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyD2(Myu9, pmON, hlel):\n if Hy7s.path.isdir(Hy7s.path.join(pmON, 'outputs')):\n with open(Hy7s.path.join(pmON, 'outputs', Myu9 + '.json'), 'w') as eHNT:\n qQXR.dump(hlel, eHNT)\n else:\n Hy7s.mkdir(Hy7s.path.join(pmON, 'outputs'))\n with open(Hy7s.path.join(pmON, 'outputs...
[ "0.6102023", "0.600841", "0.59494364", "0.5937788", "0.5926102", "0.58951086", "0.58181655", "0.57373565", "0.5728026", "0.57055163", "0.5694577", "0.5659783", "0.56539494", "0.5625374", "0.56223637", "0.5612191", "0.5607119", "0.56016016", "0.55751836", "0.5573171", "0.55596...
0.823881
0
Transform coordinates from Geojson like to Gdal like
def XNgL(W0Eb, EsMT='epsg:4326', r6X3='epsg:32638'): qcMM = YsBu(init=EsMT) T8R1 = YsBu(init=r6X3) VMbZ = [] for ZMlM in W0Eb: V2lR = SZFh(qcMM, T8R1, ZMlM[0], ZMlM[1]) VMbZ.append(V2lR) return oyIN.array(VMbZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XWn3(j3Yh, WZxM, E6Cw):\n POXR = []\n if j3Yh['geometry']['type'] == 'LineString':\n for WKvO, LVAh in j3Yh['geometry']['coordinates']:\n o4D3, si3g = SZFh(WZxM, E6Cw, WKvO, LVAh)\n j3Yh['geometry']['coordinates'] = (o4D3, si3g)\n POXR.append([o4D3, si3g])\n ...
[ "0.7091953", "0.6791248", "0.65791446", "0.6565121", "0.6558314", "0.65002143", "0.6498119", "0.6469257", "0.64645815", "0.64572895", "0.6386714", "0.63340694", "0.6312158", "0.6312158", "0.6306266", "0.6294196", "0.6289457", "0.62805283", "0.6269391", "0.6268718", "0.6211763...
0.0
-1
Creates a new array from a literal sequence
def l1ap(YKHO, hkxX: List[ast.AST], iAIW: IType): u54L = len(hkxX) if u54L > 0: for BWXx in reversed(hkxX): YKHO.visit_to_generate(BWXx) YKHO.generator.convert_new_array(u54L, iAIW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d0P9(Emd4, hT1Q, yDqo=None, jth9=False):\n s2mk = None\n wtqJ = oyIN.full(len(hT1Q), ZMBF.NULL_OFFSET_VALUE, oyIN.int)\n Q3q4 = oyIN.full(len(hT1Q), ZMBF.NULL_OFFSET_VALUE, oyIN.int)\n YRbF = 0\n for KCHu in hT1Q:\n if not isinstance(KCHu, ZMBF):\n raise ValueError(f'Can only c...
[ "0.65679705", "0.6178396", "0.6167225", "0.6167225", "0.6144026", "0.6114054", "0.60718846", "0.6007153", "0.59491104", "0.59398997", "0.59064025", "0.583982", "0.57953334", "0.57936937", "0.57810396", "0.5771478", "0.57685894", "0.57453245", "0.5740723", "0.57162315", "0.571...
0.58811444
11
Return all nodes onnx names in this module.
def ts04(YKHO) -> list: U5bT = [] for bGrB, Q6kx in YKHO.node_structs: U5bT.append(Q6kx.onnx_name) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uhgE(YKHO) -> list:\n return YKHO.onnx_names_from_nodes + YKHO.onnx_names_from_submodules", "def RdSW(YKHO) -> bdIy[str]:\n return YKHO.__backend.get_nodes(True)", "def pirr(YKHO) -> bdIy[str]:\n return YKHO.__backend.get_internal_nodes(True)", "def cW0t(YKHO) -> list[eA6S]:\n return list(YKH...
[ "0.873004", "0.83465475", "0.7893137", "0.78553796", "0.7738955", "0.74610424", "0.74392897", "0.7408407", "0.73919034", "0.72521394", "0.72475976", "0.71962535", "0.7108088", "0.71006495", "0.70186937", "0.7016855", "0.7014927", "0.698624", "0.6985493", "0.6977037", "0.69615...
0.8794208
0
Return all nodes onnx names in submodules of this module.
def tTv6(YKHO) -> list: U5bT = [] for uV9Z in YKHO.module_structs: U5bT += uV9Z.onnx_names return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uhgE(YKHO) -> list:\n return YKHO.onnx_names_from_nodes + YKHO.onnx_names_from_submodules", "def ts04(YKHO) -> list:\n U5bT = []\n for bGrB, Q6kx in YKHO.node_structs:\n U5bT.append(Q6kx.onnx_name)\n return U5bT", "def RdSW(YKHO) -> bdIy[str]:\n return YKHO.__backend.get_nodes(True)",...
[ "0.8578146", "0.7697195", "0.74279135", "0.74159044", "0.70119506", "0.69643605", "0.68233234", "0.6714632", "0.6670229", "0.66538894", "0.6636463", "0.65949947", "0.65706253", "0.65592605", "0.65513617", "0.65416485", "0.6539841", "0.6512583", "0.6500114", "0.6488449", "0.64...
0.8456954
1
Register submodule outputs to this module's return.
def w_7a(YKHO, uV9Z): oA7i = uV9Z.get_returned_opt_var_name() kHij = uV9Z.ms_opt_var_name for lBrq, bGrB, Ts9Q in oA7i: YKHO.external_successor_local_returns_map[lBrq] = (kHij, Ts9Q)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DLO8(YKHO):\n return", "def RSdM(YKHO, hlel):\n pass", "def iqml(YKHO, *qIxc):\n return qG0X.ModuleDefinition_setOutput(YKHO, *qIxc)", "def znXL(YKHO):\n return YKHO._output_register", "def RSdM(YKHO, hlel: Output) -> KiuJ:\n YKHO.__outputs.append(hlel)\n for ZGum in hlel.codecs:\n ...
[ "0.68502", "0.64293337", "0.6259482", "0.6232439", "0.6158719", "0.60632837", "0.60608107", "0.60123765", "0.5943651", "0.5901107", "0.58979046", "0.58633083", "0.58407634", "0.58052385", "0.5753824", "0.5727403", "0.57030314", "0.56890357", "0.56890357", "0.56890357", "0.568...
0.76153696
0
Return all sprites, optionally filtering by a sprite type.
def NKbZ(YKHO, *SnBA): return [Jqc7 for Jqc7 in YKHO.sprites if Jqc7.get_type() in SnBA or not SnBA]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A2Py():\n return hiHA._obj_dict", "def EGkD(YKHO, oeNL, bJYl=True, *SnBA):\n return [Jqc7 for Jqc7 in YKHO.sprites if (oeNL == Jqc7.pos if bJYl else oeNL in Jqc7.cells_in()) and (Jqc7.get_type() in SnBA or not SnBA)]", "def qP20(YKHO):\n return list(YKHO.spritedict)", "def yHYg(Emd4, zjOO):\n ...
[ "0.63585246", "0.62842417", "0.59362584", "0.5899631", "0.5876988", "0.5846734", "0.58297896", "0.5779164", "0.5709191", "0.5699223", "0.56324697", "0.5617142", "0.5550069", "0.5487023", "0.5463311", "0.5458467", "0.54410344", "0.54158115", "0.54143727", "0.5376492", "0.53410...
0.8285691
0
Return all sprites at a given coordinate, optionally filtering by a type. If inside is true, return only the sprites that are entirely in that cell, rather than just touching it.
def EGkD(YKHO, oeNL, bJYl=True, *SnBA): return [Jqc7 for Jqc7 in YKHO.sprites if (oeNL == Jqc7.pos if bJYl else oeNL in Jqc7.cells_in()) and (Jqc7.get_type() in SnBA or not SnBA)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TlrJ(YKHO, oeNL, bJYl=True):\n return [Jqc7 for Jqc7 in YKHO.get_sprites_in(oeNL, bJYl) if YKHO.enemies.has(Jqc7)]", "def Kocv(YKHO, oeNL, bJYl=True):\n return [Jqc7 for Jqc7 in YKHO.get_sprites_in(oeNL, bJYl) if YKHO.movables.has(Jqc7)]", "def oSDt(YKHO, oeNL, bJYl=True):\n return [Jqc7 for Jqc7 ...
[ "0.65485996", "0.63230306", "0.62957335", "0.6173273", "0.58750564", "0.57221127", "0.56585747", "0.53455204", "0.5288256", "0.52345616", "0.52305424", "0.51166135", "0.5076275", "0.5017602", "0.5003289", "0.50026906", "0.4998125", "0.49870116", "0.498411", "0.49653447", "0.4...
0.7966524
0
Return all movable object sprites in a cell.
def Kocv(YKHO, oeNL, bJYl=True): return [Jqc7 for Jqc7 in YKHO.get_sprites_in(oeNL, bJYl) if YKHO.movables.has(Jqc7)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qP20(YKHO):\n return list(YKHO.spritedict)", "def A2Py():\n return hiHA._obj_dict", "def qP20(YKHO):\n return YKHO._sprites[:]", "def M35z(YKHO):\n ZZyX = []\n for mrj1 in YKHO.sprites.get_sprites_from_layer(0):\n if mrj1.square in YKHO.board.allowed_moves:\n ZZyX.append(...
[ "0.7270807", "0.71483684", "0.6925202", "0.6536538", "0.64536375", "0.62115777", "0.6139966", "0.61250746", "0.60472304", "0.6015489", "0.5974086", "0.5925669", "0.590619", "0.58908683", "0.5860649", "0.58553946", "0.5851524", "0.5839029", "0.5827773", "0.5813792", "0.5798052...
0.67105657
3
Return all enemy sprites in a cell.
def TlrJ(YKHO, oeNL, bJYl=True): return [Jqc7 for Jqc7 in YKHO.get_sprites_in(oeNL, bJYl) if YKHO.enemies.has(Jqc7)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHKv() -> x1iM[_Ldl]:\n return [YRbF for YRbF in vOPP if YRbF.__class__ == lUw0]", "def qP20(YKHO):\n return list(YKHO.spritedict)", "def fHKv(YKHO):\n Ylbp = []\n for P6bq in YKHO.state.units:\n if P6bq.team != YKHO.unit.team:\n Ylbp.append(P6bq)\n return Ylbp", "def dpD...
[ "0.71675223", "0.70001775", "0.6662033", "0.6603162", "0.6563985", "0.65219235", "0.6452178", "0.6320345", "0.6285736", "0.61371946", "0.61151516", "0.6096706", "0.60726863", "0.60147107", "0.60074645", "0.60010004", "0.5955105", "0.5942807", "0.5942807", "0.59346795", "0.586...
0.6792234
2
Return all solid sprites in a cell.
def Mess(YKHO, oeNL, bJYl=True): return [Jqc7 for Jqc7 in YKHO.get_sprites_in(oeNL, bJYl) if YKHO.solids.has(Jqc7)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qP20(YKHO):\n return list(YKHO.spritedict)", "def A2Py():\n return hiHA._obj_dict", "def qP20(YKHO):\n return YKHO._sprites[:]", "def Pxgy(YKHO, fvDH: int, rdlD: int, TVTK: int=uwaB.CELL_WIDTH, H2v2: int=uwaB.CELL_HEIGHT, NXpY=None) -> list:\n JJdK = []\n Jqc7 = a9eO.Surface([TVTK, H2v2])\...
[ "0.67005396", "0.64800274", "0.64145756", "0.63800377", "0.6126404", "0.6088809", "0.60095745", "0.5996952", "0.58889073", "0.5874093", "0.5851074", "0.58341396", "0.58300537", "0.58181953", "0.57698095", "0.57586586", "0.5734036", "0.5717067", "0.5696213", "0.5684018", "0.56...
0.6394208
3
Flatten a nested dictionary into a single dictionary. Nested keys are indexed with a dot. For example, d = {
def ZZKZ(Csk6): ZT17 = list(Csk6.keys()) for G1Hx in ZT17: Ty9i = Csk6[G1Hx] assert type(G1Hx) == str, 'cannot squish non-string keys' if type(Ty9i) != dict: continue f9G3 = ZZKZ(Ty9i) for Kxs4, HJX9 in f9G3.items(): Csk6[G1Hx + '.' + Kxs4] = HJX9 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(Csk6: dict):\n\n def nDBw(Csk6: dict, PZrZ=False):\n for H5ew, wEf2 in Csk6.items():\n if isinstance(wEf2, dict):\n if PZrZ:\n H5ew = PZrZ + '.' + H5ew\n nDBw(wEf2, H5ew)\n elif isinstance(wEf2, list):\n for YR...
[ "0.81979096", "0.80764145", "0.8008341", "0.79429686", "0.7882709", "0.7804157", "0.7797167", "0.76772064", "0.76591146", "0.7630043", "0.761969", "0.7593781", "0.75799775", "0.7558527", "0.75476944", "0.7486174", "0.74735284", "0.7461587", "0.7443787", "0.7375369", "0.736827...
0.0
-1
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None oQNl = cmPJ.get('badWordsList') kdTp = cmPJ.get('badWordsTotal') uOjI = cmPJ.get('censoredContent') fyuJ = cmPJ.get('isBad') return Emd4(oQNl, kdTp, uOjI, fyuJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.8371714", "0.8335875", "0.82145834", "0.8169174", "0.8169174", "0.8147531", "0.80523235", "0.8029144", "0.80132717", "0.7979015", "0.7921909", "0.79187274", "0.7918124", "0.791299", "0.79063207", "0.7900502", "0.7896764", "0.78855586", "0.7875955", "0.78541416", "0.7854141...
0.0
-1
Two instances are equal if they are the same type and all fields are equal.
def xa14(YKHO, Elif): return type(YKHO) is type(Elif) and all((getattr(YKHO, mWFP) == getattr(Elif, mWFP) for mWFP, bGrB in YKHO._fields()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YVqv(YKHO):\n z1Rg = YKHO.an_instance()\n assert z1Rg == z1Rg", "def w0ra(YKHO):\n jzdc = YKHO.an_instance()\n Fg_i = YKHO.an_instance()\n assert jzdc == Fg_i", "def l_QA(YKHO, Elif):\n return True", "def xa14(YKHO, Elif):\n return type(YKHO) == type(Elif)", "def xa14(YKHO, Elif):\...
[ "0.79390305", "0.78930974", "0.7867018", "0.77802086", "0.77802086", "0.77802086", "0.77802086", "0.77802086", "0.7718442", "0.766888", "0.7626981", "0.760339", "0.7555467", "0.75510484", "0.75270975", "0.7492185", "0.7492185", "0.7492185", "0.74885017", "0.74659574", "0.7457...
0.75141954
15
given a topic distrubtion represented as a dictionary and ndarray, return a dict of token => val mapping
def ObUC(cmPJ, zvI9): J8oL = {Ty9i: G1Hx for G1Hx, Ty9i in cmPJ.token2id.items()} AdpB = [] for rdlD in zvI9: rlUa = {} for YRbF, wEf2 in enumerate(rdlD): if wEf2 > 0: rlUa[J8oL[YRbF]] = int(wEf2) AdpB.append(rlUa) return AdpB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YQwq(CtWL, bySB, gATN):\n Bc4p = dict()\n for _x49, QTg7 in bySB.items():\n if CtWL.has_key(_x49):\n Bc4p[int(CtWL[_x49])] = QTg7\n if gATN:\n for _x49, wEf2 in gATN.items():\n if CtWL.has_key(_x49):\n Bc4p[int(CtWL[_x49])] = wEf2\n return Bc4p", ...
[ "0.59696484", "0.59187365", "0.5857687", "0.5836118", "0.5825178", "0.575381", "0.56988126", "0.5675711", "0.56728554", "0.5666224", "0.5660565", "0.56117135", "0.55878484", "0.5585894", "0.5538691", "0.55205923", "0.5501249", "0.5477427", "0.5460922", "0.5459997", "0.5427881...
0.74693865
0
Get logger from loguru.
def fZx2(GPtr): if not GPtr.get('log_enable'): return bo34 zeeE = None if GPtr.get('log_path'): zeeE = GPtr.get('log_path') if not zeeE: zeeE = gzes(GPtr.get('log_folder'), GPtr.get('log_file')) if not vtfo(TLI7(zeeE)): eviw(TLI7(zeeE)) B2fa = {} B2fa['level']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2():\n return bo34", "def XIAT():\n return G9jH.Logger(__name__)", "def fZx2():\n return S0MI", "def fZx2():\n return vzeF", "def XIAT():\n return G9jH.getLogger(GkAb(xAKo).resolve().name)", "def bo34():\n return bo34", "def fZx2(YKHO):\n pass", "def ypdq(Olai):\n globa...
[ "0.7681292", "0.7422493", "0.74106765", "0.7396831", "0.7356001", "0.73543763", "0.7311616", "0.7279732", "0.72788125", "0.72788125", "0.72673774", "0.72525173", "0.7247216", "0.72186923", "0.72159874", "0.71985024", "0.71985024", "0.71985024", "0.7195965", "0.7182647", "0.71...
0.0
-1
Sets the bfd_declare_dead_multiple of this EdgeHighAvailabilityProfile.
def uU5_(YKHO, uU5_): if uU5_ is not None and uU5_ > 16: raise ValueError('Invalid value for `bfd_declare_dead_multiple`, must be a value less than or equal to `16`') if uU5_ is not None and uU5_ < 2: raise ValueError('Invalid value for `bfd_declare_dead_multiple`, must be a value greater than o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, uU5_=3, PZQm=1000, N7o3=255):\n YKHO._bfd_declare_dead_multiple = None\n YKHO._bfd_probe_interval = None\n YKHO._bfd_allowed_hops = None\n YKHO.discriminator = None\n if uU5_ is not None:\n YKHO.bfd_declare_dead_multiple = uU5_\n if PZQm is not None:\n YKHO.bfd_probe_...
[ "0.670752", "0.5655", "0.56524056", "0.4908542", "0.47798914", "0.47445613", "0.46864763", "0.46843025", "0.46672478", "0.46454555", "0.44599038", "0.44349802", "0.44116938", "0.44116938", "0.44025022", "0.43997946", "0.43842658", "0.4382864", "0.43825895", "0.43701866", "0.4...
0.8295982
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83939064", "0.83558416", "0.8296191", "0.8133439", "0.81156427", "0.810097", "0.81001526", "0.8099001", "0.8099001", "0.80936444", "0.80936444", "0.80936444", "0.80936444", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80677134", "0.80598736", "0...
0.0
-1
Given a pandas Dataframe rows, map to the desired dict format
def YXiN(rdlD): return {'data_source': {'name': Z9pM, 'link': bD7m, 'properties': {'scenario': rdlD['source']}}, 'geo_component': {'scale': 'Country', 'identifier': {'id': rdlD['country'], 'type': 'alpha3'}}, 'date': qcWV.datetime(rdlD['year'], 1, 1).strftime('%Y-%m-%d'), 'emission': {'gas': XxFO[rdlD['gas']], 'val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N39f(bOBl):\n Nws4 = {H5ew: '' for H5ew in bOBl.columns.to_list()}\n xJd4 = []\n for d6pt, rdlD in bOBl.iterrows():\n nTIn = {H5ew: rdlD[H5ew] for H5ew in Nws4.keys()}\n xJd4.append(nTIn.copy())\n return xJd4", "def uhiK(rdlD) -> dict:\n Ylbp = {}\n for iVRZ in rdlD.keys():\n ...
[ "0.7151819", "0.710657", "0.70932704", "0.70835394", "0.7051686", "0.7047162", "0.6992968", "0.69658244", "0.6964276", "0.6943871", "0.6928966", "0.67713434", "0.67613053", "0.6727209", "0.6687192", "0.66850066", "0.66824126", "0.66680926", "0.66248345", "0.65634924", "0.6513...
0.6990001
7
Read JSON in a consistent way.
def tU6l(KCHu): return qQXR.loads(KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PSj2():\n pass", "def CQ2n(YKHO, WhwQ):\n with open(WhwQ) as eHNT:\n nPrm = qQXR.load(eHNT)\n eHNT.close()\n return nPrm", "def ZAQi():\n with open(nC76) as Vu7S:\n return qQXR.load(Vu7S)", "def WlK7(YKHO):\n FYKK = YKHO.fn\n if Hy7s.path.isfile(FYKK) and Hy7s.path.gets...
[ "0.8043401", "0.7401655", "0.72912997", "0.70468086", "0.70299625", "0.70181996", "0.6981072", "0.695834", "0.6913806", "0.6885068", "0.6872574", "0.68626684", "0.68464375", "0.68455505", "0.68324345", "0.67801505", "0.67166877", "0.6666055", "0.66498095", "0.663827", "0.6628...
0.0
-1
Return the directory, relative to the top of the source distribution, where package 'package' should be found (at least according to the 'package_dir' option, if any).
def MfYP(YKHO, B5hb): pmON = B5hb.split('.') if not YKHO.package_dir: if pmON: return Hy7s.path.join(*pmON) else: return '' else: J3uN = [] while pmON: try: AitI = YKHO.package_dir['.'.join(pmON)] except KeyError...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MfYP():\n return Hy7s.path.abspath(Hy7s.path.dirname(xAKo))", "def Cui_():\n Ux0P = SC2F(gzes(mkE9(), '*', aPr_(xAKo)))[0]\n return TLI7(Ux0P)", "def MfYP(JZXy):\n if JZXy.startswith('lib'):\n return Hy7s.path.join(JZXy[:4], JZXy)\n else:\n return Hy7s.path.join(JZXy[0], JZXy)"...
[ "0.8575911", "0.8146718", "0.7932069", "0.79000306", "0.77501696", "0.7682442", "0.7390388", "0.73252463", "0.73032516", "0.71494216", "0.71087307", "0.7054092", "0.70301265", "0.7011351", "0.6981778", "0.69581205", "0.69434553", "0.69434553", "0.69425684", "0.69417465", "0.6...
0.7763758
4
Shows the notifications of user.
def qqKw(YKHO, uJjO): return YKHO.collection.find({'recipient': uJjO})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nbQd(QePW):\n nPrm['my_profil'] = KbEW(QePW.user.id)\n nPrm['notifications'] = JbaM.objects.filter(for_who=QePW.user).order_by('-date')\n return _1tc(QePW, 'common/notifications.html', nPrm)", "async def shownotifs(OaeV):\n nPrm = YEEA.user_prefs(OaeV.message.author.id)\n if not nPrm:\n ...
[ "0.7325758", "0.7112988", "0.70360786", "0.7019079", "0.69254893", "0.6899276", "0.6690772", "0.6661144", "0.65019304", "0.6488733", "0.64620525", "0.6448742", "0.6364423", "0.6343212", "0.6342448", "0.6312349", "0.62975085", "0.6274994", "0.6259178", "0.6257891", "0.61919075...
0.0
-1
Root page for APIinterface.
def RVrZ(QePW, format=None): return oGir({'users': sh1l('user-list', request=QePW, format=format), 'posts': sh1l('post-list', request=QePW, format=format)})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt(YKHO, **B2fa):\n return YKHO.templatepage('API', methods=YKHO.methods, webapp=YKHO.config.application)", "def ISU9():\n return TvZl('api.html')", "def RVrZ(QePW, format=None):\n return oGir({'Welcome': 'Home!'})", "def nNXP():\n return TvZl('api.html')", "def d6pt():\n return 'Root'...
[ "0.7759324", "0.7673622", "0.7331324", "0.727529", "0.724091", "0.72073346", "0.70110226", "0.6996273", "0.6880181", "0.68581903", "0.68503326", "0.6839458", "0.68347496", "0.6824736", "0.6813228", "0.6806136", "0.6775093", "0.676505", "0.6760484", "0.6758701", "0.6727439", ...
0.0
-1
return set of GNode with all deps from this node (including self)
def vwFr(YKHO): if YKHO._all_deps is not None: return YKHO._all_deps pPvV = set() _ins = set() pPvV.add(YKHO) while pPvV: Q6kx = pPvV.pop() if Q6kx._all_deps: _ins.update(Q6kx._all_deps) else: pPvV.update((exwG for exwG in Q6kx.deps if exwG not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qmh8(YKHO):\n Ziit = oRi_(set)\n for a1PO, K0rm in enumerate(YKHO.G):\n for Q6kx in K0rm.nodes():\n Ziit[a1PO].add(Q6kx)\n return Ziit", "def udOv(YKHO):\n for kbO9 in YKHO._deps:\n for KEG7 in kbO9.all_possible_deps:\n yield KEG7\n yield kbO9", "def A...
[ "0.687819", "0.6851909", "0.68199855", "0.68024695", "0.67554927", "0.6693691", "0.6678509", "0.66404915", "0.662022", "0.66074383", "0.6587569", "0.6587569", "0.65727454", "0.6543521", "0.6505674", "0.6489126", "0.64764136", "0.6465591", "0.64527637", "0.6449651", "0.6443825...
0.76271963
0
Return a copy of the CCDData object.
def jth9(YKHO): return YKHO.__class__(YKHO, copy=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hTIe(YKHO):\n return YKHO._data.copy()", "def jth9(YKHO):\n return YKHO.data.copy()", "def jth9(YKHO):\n return XNC8(YKHO)", "def hTIe(YKHO):\n return YKHO._data[:]", "def jth9(YKHO):\n return YKHO.__class__(YKHO.data)", "def jth9(YKHO):\n return YKHO.__class__(YKHO.data.copy(), YKH...
[ "0.80177796", "0.7950457", "0.78104264", "0.7626948", "0.7475536", "0.73346823", "0.7286711", "0.72712785", "0.7195807", "0.7194461", "0.7179042", "0.7171231", "0.7161441", "0.71371", "0.70504653", "0.70479006", "0.7000687", "0.6997516", "0.69882035", "0.6975496", "0.69656754...
0.0
-1
Given a batched graph, unbatch and return a tensor.
def ffWL(Oa1e, QygJ: str): HcOV = XdHH.unbatch(Oa1e) Cptt = gc7n([Oa1e.ndata[QygJ] for Oa1e in HcOV]) Cptt = Cptt.transpose(0, 1).transpose(1, 2) return Cptt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rTQE(ooTa: tf.Tensor) -> YrBT[[ZylS.Tensor], ZylS.Tensor]:\n\n def qTHy(wEf2):\n EZd9 = ZylS.concat([ooTa, wEf2.shape.as_list()[-1:]], axis=0)\n if isinstance(wEf2, ZylS.SparseTensor):\n return ZylS.sparse_reshape(wEf2, EZd9)\n else:\n return ZylS.reshape(wEf2, EZd...
[ "0.65116316", "0.6380772", "0.61119926", "0.6064268", "0.6036503", "0.5838636", "0.58090305", "0.5787438", "0.5718447", "0.56940997", "0.5646906", "0.5636608", "0.56276757", "0.55605066", "0.55567694", "0.55567694", "0.55357426", "0.55073726", "0.54924595", "0.5479314", "0.54...
0.74473697
0
Collect text values from all instances of FRAMEID into a single list. Returns an empty list if there are no instances of FRAMEID with a text attribute.
def RpuO(YKHO, PoAV): try: return YKHO[PoAV].text except (KeyError, AttributeError): return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DCWn(OD_c):\n n4vB = []\n if OD_c[0]['type'] == 'header':\n yKcO = 1\n else:\n yKcO = 0\n for Op6c in OD_c[yKcO:]:\n if Op6c['text'] not in n4vB:\n n4vB.append(Op6c['text'])\n return n4vB", "def MiCj(YKHO) -> x1iM[str]:\n return [ZfUD.currentText() for ZfUD i...
[ "0.7171675", "0.6110742", "0.6000893", "0.6000893", "0.5888152", "0.5830393", "0.5826856", "0.5709248", "0.562841", "0.5580758", "0.5550456", "0.54883105", "0.54450524", "0.5390367", "0.53234065", "0.53234065", "0.53106844", "0.5286794", "0.52777606", "0.5255418", "0.52460283...
0.7567332
0
Tries to find a symbol in the local database. Currently, this method only returns message.Message instances, however, if may be extended in future to support other symbol types.
def UwNA(YKHO, o61b): return YKHO._classes[YKHO.pool.FindMessageTypeByName(o61b)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pZi9(YKHO, o61b):\n KTg0 = YKHO.default_header.getSymbolTableCommand()\n if KTg0 is None:\n return None\n zqKo = YKHO.default_header_offset + KTg0.symoff\n C9XP = YKHO.default_header_offset + KTg0.stroff\n AEpM = zqKo\n for YRbF in range(KTg0.nsyms):\n N10k = F169(YKHO.default_e...
[ "0.68042976", "0.67574817", "0.66271055", "0.65832174", "0.6577315", "0.6519039", "0.6508791", "0.6495204", "0.6444986", "0.63001144", "0.62455046", "0.6240431", "0.6229174", "0.6220067", "0.6133007", "0.61072505", "0.61033034", "0.6072973", "0.59990287", "0.5992941", "0.5989...
0.7031949
0
Returns an `argparse.ArgumentParser` instance containing trainingrelated arguments.
def CeeG() -> j1Jz.ArgumentParser: wvEv = j1Jz.ArgumentParser('Model Training', add_help=False) wvEv.add_argument('--epochs', type=int, default=100, help='Number of training epochs.') wvEv.add_argument('--batch_size', type=int, default=1024, help='Mini-batch size.') wvEv.add_argument('--num_workers', ty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eQO8() -> jFQi:\n wvEv = j1Jz.ArgumentParser(description='Fit and evaluate a model based on train-test datasets.')\n wvEv.add_argument('--outputs', help='the outputs directory', default='outputs')\n wvEv.add_argument('--model', help='the model file', default='model.pkl')\n return wvEv.parse_args()"...
[ "0.7835152", "0.775381", "0.75213295", "0.7494744", "0.7484533", "0.7456267", "0.74339086", "0.7410961", "0.74042517", "0.7404015", "0.73722523", "0.735617", "0.7353292", "0.7347934", "0.7343855", "0.73376715", "0.7314237", "0.72902757", "0.72899276", "0.7289341", "0.7284405"...
0.7635395
2
Returns an `argparse.ArgumentParser` instance containing loggingrelated arguments.
def Kl80() -> j1Jz.ArgumentParser: wvEv = j1Jz.ArgumentParser('Logging', add_help=False) wvEv.add_argument('--checkpoint_root', type=str, default='./checkpoints/', help='Top-level directory of checkpoints.') wvEv.add_argument('--save_every', type=int, default=100, help='Save model checkpoint every `save_eve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xuJu() -> j1Jz.ArgumentParser:\n wvEv = j1Jz.ArgumentParser('Log Arguments')\n wvEv.add_argument('--log_directory', type=str, default='./log', help='The name of the directory in which a log should be built')\n wvEv.add_argument('--print_log', action='store_true', help='Log message entries are printed ...
[ "0.8217157", "0.79669803", "0.72436506", "0.72284174", "0.7041932", "0.698721", "0.6959798", "0.69418573", "0.69327146", "0.69327146", "0.69327146", "0.69327146", "0.69327146", "0.692133", "0.6897093", "0.6897093", "0.6897093", "0.685246", "0.6850326", "0.6850326", "0.6784992...
0.7190265
4
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, qtWj): global lr tspZ = tspZ * 0.1 ** (qtWj // 30) for Lwm5 in K0do.state_dict()['param_groups']: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.7670354
29
Computes the precision for the specified values of k
def vjyh(aMgO, ibJh, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = ibJh.size(0) bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0) Ylbp.append(R2Dg.mul_(100....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003211", "0.79748034", "0.79735845", "0.7941222", "0.78642285", "0.7803938", "0.7707779", "0.7621563", "0.7593218", "0.75612706", "0.752028", "0.7430132", "0.74122673", "0.7375894", "0.7374447", "0.7321427", "0.7254542", "0.7236769", "0.72279894", "0.7204469", "0.7137302"...
0.0
-1
Calculate and return the moment of inertia tensor for the current geometry. If the coordinates are not at the center of mass, they are temporarily shifted there for the purposes of this calculation.
def pdQl(YKHO): pdhd = oyIN.zeros((3, 3), oyIN.float64) _3XM = YKHO.center_of_mass() for ft9X in range(YKHO.atomnumber): bMbF = YKHO.masses[ft9X] BHsk = YKHO.coords[ft9X] - _3XM pdhd[0, 0] += bMbF * (BHsk[1] * BHsk[1] + BHsk[2] * BHsk[2]) pdhd[1, 1] += bMbF * (BHsk[0] * BHsk[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhYA(YKHO):\n return J87D.compute_inertia_tensor(YKHO.traj)", "def Q1gQ(YKHO):\n return SQgp.sphere_inertia(mass=YKHO.volume, radius=YKHO.primitive.radius)", "def Q1gQ(YKHO):\n vhpA = SQgp.cylinder_inertia(mass=YKHO.volume, radius=YKHO.primitive.radius, height=YKHO.primitive.height, transform=YKHO...
[ "0.77864385", "0.7692587", "0.7664359", "0.7422992", "0.72208035", "0.7197855", "0.68926", "0.6856609", "0.68364155", "0.6770235", "0.6752182", "0.66656137", "0.66501415", "0.6529912", "0.6490837", "0.6396344", "0.63344395", "0.6245047", "0.62094235", "0.6186029", "0.61792004...
0.75974935
3
test for synchronously refreshing materialized view metadata test_refresh_table_metadata_for_materialized_views tests that materialized view metadata is refreshed when calling test_refresh_table_metatadata() with the materialized view name as the table. It creates a second cluster object with schema_event_refresh_windo...
def DkUP(YKHO): YKHO.session.execute('CREATE TABLE {0}.{1} (a int PRIMARY KEY, b text)'.format(YKHO.keyspace_name, YKHO.function_table_name)) mrUo = Jmac(schema_event_refresh_window=-1) mrUo.connect() try: YKHO.assertNotIn('mv1', mrUo.metadata.keyspaces[YKHO.keyspace_name].tables[YKHO.function_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjOG(YKHO):\n YKHO.assertIn('mv1', YKHO.cluster.metadata.keyspaces[YKHO.keyspace_name].views)\n YKHO.assertIn('mv1', YKHO.cluster.metadata.keyspaces[YKHO.keyspace_name].tables[YKHO.function_table_name].views)\n YKHO.assertEqual(YKHO.keyspace_name, YKHO.cluster.metadata.keyspaces[YKHO.keyspace_name].ta...
[ "0.7508255", "0.7295921", "0.7233548", "0.7211367", "0.71685976", "0.691303", "0.67056704", "0.66646194", "0.6548604", "0.6545596", "0.60178393", "0.59567666", "0.5937159", "0.59272665", "0.5878756", "0.57590026", "0.57512385", "0.57328886", "0.5659961", "0.56522614", "0.5560...
0.84367836
0
test for synchronously refreshing UDF metadata in keyspace test_refresh_user_function_metadata tests that UDF metadata in a keyspace is refreshed when calling refresh_user_function_metadata(). It creates a second cluster object with schema_event_refresh_window=1 such that schema refreshes are disabled for schema change...
def qGyH(YKHO): if YzSa < 4: raise DuvM.SkipTest('Protocol 4+ is required for UDFs, currently testing against {0}'.format(YzSa)) mrUo = Jmac(schema_event_refresh_window=-1) mrUo.connect() YKHO.assertEqual(mrUo.metadata.keyspaces[YKHO.keyspace_name].functions, {}) YKHO.session.execute("CREATE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BSYZ(YKHO):\n mrUo = Jmac(schema_event_refresh_window=-1)\n mrUo.connect()\n YKHO.assertNotIn('new_keyspace', mrUo.metadata.keyspaces)\n YKHO.session.execute(\"CREATE KEYSPACE new_keyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'}\")\n YKHO.assertNotIn('new_keyspa...
[ "0.7330918", "0.67878217", "0.67634416", "0.6739658", "0.64881116", "0.62568593", "0.60799253", "0.59617", "0.5555918", "0.54721665", "0.5449932", "0.538696", "0.5361783", "0.53459203", "0.5243621", "0.5085314", "0.50709105", "0.5015475", "0.4997657", "0.49627882", "0.4917622...
0.85706556
0
test for synchronously refreshing UDA metadata in keyspace test_refresh_user_aggregate_metadata tests that UDA metadata in a keyspace is refreshed when calling refresh_user_aggregate_metadata(). It creates a second cluster object with schema_event_refresh_window=1 such that schema refreshes are disabled for schema chan...
def W2xb(YKHO): if YzSa < 4: raise DuvM.SkipTest('Protocol 4+ is required for UDAs, currently testing against {0}'.format(YzSa)) mrUo = Jmac(schema_event_refresh_window=-1) mrUo.connect() YKHO.assertEqual(mrUo.metadata.keyspaces[YKHO.keyspace_name].aggregates, {}) YKHO.session.execute("CREAT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BSYZ(YKHO):\n mrUo = Jmac(schema_event_refresh_window=-1)\n mrUo.connect()\n YKHO.assertNotIn('new_keyspace', mrUo.metadata.keyspaces)\n YKHO.session.execute(\"CREATE KEYSPACE new_keyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'}\")\n YKHO.assertNotIn('new_keyspa...
[ "0.7412379", "0.7129996", "0.70196223", "0.6771064", "0.64924604", "0.6235562", "0.61614805", "0.60318214", "0.5591699", "0.5508596", "0.5441254", "0.54204816", "0.53540236", "0.533291", "0.5332224", "0.53051543", "0.5272049", "0.5210338", "0.51535785", "0.5091705", "0.508700...
0.80681866
0
Ensure cluster.metadata.get_replicas return correctly when not attached to keyspace
def Sb0V(YKHO): if Bxc3 is None: raise DuvM.SkipTest('the murmur3 extension is not available') hKn5 = Jmac() YKHO.assertEqual(hKn5.metadata.get_replicas('test3rf', 'key'), []) hKn5.connect('test3rf') YKHO.assertNotEqual(list(hKn5.metadata.get_replicas('test3rf', jKi7.b('key'))), []) KcEq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CNQA(YKHO, hKn5):\n YKHO.replica_connections = {}\n IBrW = {jzdc: vC9B for jzdc, vC9B in YKHO.postgresql.query(\"SELECT client_addr, pg_catalog.pg_{0}_{1}_diff(pg_catalog.pg_current_{0}_{1}(), COALESCE(replay_{1}, '0/0'))::bigint FROM pg_catalog.pg_stat_replication\".format(YKHO.postgresql.wal_name, YKHO...
[ "0.68348396", "0.6704838", "0.65743196", "0.6493668", "0.6492799", "0.64810216", "0.64810216", "0.64810216", "0.64810216", "0.64810216", "0.64810216", "0.64810216", "0.6450618", "0.6450618", "0.641421", "0.641421", "0.641421", "0.641421", "0.63491374", "0.63217086", "0.627749...
0.71314746
0
Test to verify that various initial conditions are correctly surfaced in various aggregate functions test_init_cond creates several different types of aggregates, and given various initial conditions it verifies that they correctly impact the aggregate's execution 2.6.0 PYTHON211 initial conditions are correctly evalua...
def cuAy(YKHO): Z9rn = Jmac(protocol_version=3) KCHu = Z9rn.connect(YKHO.keyspace_name) MnDN = UYOu() pwKE = range(4) for cEQZ in (-1, 0, 1): sB3G = MnDN.cql_encode_all_types(cEQZ) with YKHO.VerifiedAggregate(YKHO, **YKHO.make_aggregate_kwargs('sum_int', 'int', init_cond=sB3G)) as b4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OwwY():\n H7KE.initial_conditions(P6bq, MKlR, Gqn7)\n oyIN.testing.assert_equal(P6bq.prev, oyIN.zeros(pxQZ))\n lKXT = pxQZ // 2\n oyIN.testing.assert_equal(MKlR.prev[:lKXT], oyIN.zeros(lKXT))\n SjMt(MKlR.prev[lKXT], Gqn7)\n oyIN.testing.assert_equal(MKlR.prev[lKXT + 1:], oyIN.zeros(lKXT))", ...
[ "0.6294774", "0.62371624", "0.61690724", "0.6149109", "0.6131837", "0.60439706", "0.59263515", "0.58562595", "0.5839032", "0.5823129", "0.57718134", "0.576597", "0.5745714", "0.57391715", "0.5734496", "0.5728163", "0.5725584", "0.5724455", "0.5718843", "0.5708573", "0.5704114...
0.7496347
0
Strip comment from BeautifulSoup object.
def lvfG(Z9JV: BeautifulSoup): eHNT = Z9JV.find_all(text=lambda l5Ny: isinstance(l5Ny, jY1u)) for o36Q in eHNT: o36Q.extract(strip=True) return Z9JV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gU2l(J_Es: BeautifulSoup) -> None:\n Tj1O = J_Es.find_all(string=lambda l5Ny: isinstance(l5Ny, jY1u))\n for Z9rn in Tj1O:\n Z9rn.extract()", "def aY2U(YKHO):\n Tj1O = YKHO.soup.find_all(text=lambda l5Ny: isinstance(l5Ny, jY1u))\n [aM_I.extract() for aM_I in Tj1O]", "def dwCQ(_R2e):\n ...
[ "0.80752015", "0.76846015", "0.7330821", "0.7151722", "0.6994866", "0.6929789", "0.6874748", "0.6843609", "0.67995036", "0.6786679", "0.6752119", "0.67337924", "0.6671495", "0.6653579", "0.6610079", "0.6594005", "0.6583954", "0.6550521", "0.6537739", "0.6510208", "0.6459171",...
0.83662385
0
Strip certain tags (but not content) from a BeautifulSoup object.
def t5Yq(Z9JV: BeautifulSoup, *qIxc: str): if not qIxc: qIxc = ['a', 'code'] for d7pR in qIxc: eHNT = Z9JV.find_all(d7pR) for o36Q in eHNT: o36Q.unwrap() return Z9JV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dV7e(YKHO):\n [TZ9E.extract() for TZ9E in YKHO.soup.find_all(YKHO.tags)]", "def aAsi(_R2e):\n return ''.join(rKuS(_R2e).findAll(text=True))", "def aAsi(l5Ny):\n Z9JV = rKuS(l5Ny, 'html.parser')\n hvnH = Z9JV.get_text(separator=' ')\n return hvnH", "def aAsi(l5Ny: str) -> str:\n Z9JV = r...
[ "0.77873564", "0.77733725", "0.7711662", "0.75126547", "0.749827", "0.7455574", "0.74389565", "0.7346129", "0.73409116", "0.73016924", "0.72956014", "0.72858363", "0.727803", "0.72478235", "0.7239895", "0.7216926", "0.7214003", "0.7212759", "0.7202529", "0.7194048", "0.716271...
0.72045946
18
Remove edge between a and b, thus all the "a" occurence will be replaced by "b".
def DTxy(YKHO, jzdc, Fg_i): assert jzdc in YKHO.graph[Fg_i], "Can't pop edge - reference not found <{}>---<{}>".format(jzdc, Fg_i) assert Fg_i in YKHO.graph[jzdc], "Can't pop edge - reference not found <{}>---<{}>".format(Fg_i, jzdc) YKHO.remove_from_node(jzdc, Fg_i) YKHO.remove_from_node(Fg_i, jzdc) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iyca(YKHO, jzdc, Fg_i):\n assert YKHO.has_vertex(jzdc) and YKHO.has_vertex(Fg_i)\n assert YKHO.is_adjacent(jzdc, Fg_i)\n YKHO._edges[jzdc] = YKHO._edges[jzdc].difference(set([Fg_i]))\n YKHO._edges[Fg_i] = YKHO._edges[Fg_i].difference(set([jzdc]))\n if (jzdc, Fg_i) in YKHO._edge_values:\n ...
[ "0.78426725", "0.7327179", "0.69277024", "0.6897081", "0.68021715", "0.6768939", "0.6719624", "0.670321", "0.6678486", "0.6640553", "0.65982133", "0.6572203", "0.63636655", "0.6334926", "0.63289404", "0.632669", "0.632669", "0.6326294", "0.6258192", "0.62047464", "0.6152843",...
0.7316319
2
Returns a value in the range [0,1] where 0 is left, and 1 is right. If get_found_lines returns False, this data is invalid.
def yMey(YKHO): return YKHO.line_position
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gEGd(YKHO, pG0V):\n YRbF = lHmx.bisect(YKHO.line, pG0V)\n if YRbF > 1:\n return YKHO.line[YRbF - 2]\n else:\n return None", "def pmnP(YKHO, usx6):\n usx6 = list(usx6)\n for _5yy in YKHO.__markers:\n KCHu = _5yy['start']\n tTpl = _5yy['end']\n if YKHO._is_foun...
[ "0.590398", "0.5841839", "0.5840426", "0.56986326", "0.5642283", "0.56332743", "0.5608973", "0.55479217", "0.5521899", "0.5515629", "0.5442928", "0.5420921", "0.5420921", "0.54197264", "0.54197264", "0.5418625", "0.5418625", "0.54041874", "0.54041874", "0.540321", "0.540321",...
0.0
-1
Returns true if any line was found. If false, get_line_position is contains invalid data.
def axWI(YKHO): return YKHO.found_lines
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PUIZ(YKHO):\n return zLOZ(YKHO._board[0]) or zLOZ(YKHO._board[1]) or zLOZ(YKHO._board[2]) or zLOZ(YKHO._board[:, 0]) or zLOZ(YKHO._board[:, 1]) or zLOZ(YKHO._board[:, 2]) or zLOZ(YKHO._board.diagonal()) or zLOZ(oyIN.fliplr(YKHO._board).diagonal())", "def MUje(YKHO):\n return YKHO._lines is not None", ...
[ "0.74079204", "0.7098988", "0.70595", "0.70582616", "0.684272", "0.67822284", "0.67183673", "0.661757", "0.6607331", "0.6528439", "0.65099996", "0.64518327", "0.64470136", "0.64259195", "0.6422524", "0.6409319", "0.6409319", "0.6409319", "0.6409319", "0.6404637", "0.6383876",...
0.0
-1
Returns a string representation of self
def zAg0(YKHO): YKHO.vals.sort() Aofo = '' for tTpl in YKHO.vals: Aofo = Aofo + str(tTpl) + ',' return '{' + Aofo[:-1] + '}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(YKHO) -> str:\n return str(YKHO)", "def yLCI(YKHO) -> str:\n return YKHO.__str__()", "def yLCI(YKHO):\n return YKHO.__str__()", "def zAg0(YKHO):\n return YKHO.tostring()", "def yLCI(YKHO):\n return YKHO.__str__()", "def yLCI(YKHO):\n return str(YKHO)", "def yLCI(YKHO):\n r...
[ "0.8715373", "0.86874175", "0.8657731", "0.86282563", "0.8607078", "0.86059326", "0.86059326", "0.85728353", "0.85420215", "0.85304326", "0.85304326", "0.85304326", "0.85273063", "0.8517566", "0.8517566", "0.8517566", "0.8517566", "0.8517566", "0.8517566", "0.8517566", "0.851...
0.0
-1
Assumes other is an intSet Returns a new intSet containing elements that appear in both sets.
def XMlP(YKHO, Elif): H1_S = GfHp() for SRYB in YKHO.vals: if Elif.member(SRYB): H1_S.insert(SRYB) return H1_S
{ "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.78368455", "0.761677", "0.74935657", "0.74782586", "0.7392595", "0.7267185", "0.7175655", "0.7109728", "0.7094004", "0.70895565", "0.70851976", "0.7084275", "0.7044028", "0.7029841", "0.70234114", "0.7018657", "0.69931364", "0.6985486", "0.6956792", "0.6947261", "0.6929205...
0.69005996
23
Place an order depending on the verdict. Buy from exchange1 and sell to exchange 2 and vice versa.
def Npau(YKHO, Omcc): print(Omcc) print('placing order') s_lI = Omcc['buy'] w4wi = YKHO.exchange_manager.place_order(s_lI['exchange'], YKHO.bot.get_pair(), 'buy', YKHO.bot.get_amount()) if not w4wi['id']: raise Exception('Could not place BUY order. ' + w4wi['info']) KObW = Omcc['sell'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Npau(YKHO, Omcc):\n print(\"placing order with verdict: '\" + Omcc + \"'\")\n rBoi = YKHO.exchange_manager.place_order(YKHO.exchange, YKHO.bot.get_pair(), Omcc, YKHO.bot.get_amount())\n if not rBoi['id']:\n raise Exception('Could not place ' + Omcc + 'order. ' + rBoi['info'])\n YKHO.open_ord...
[ "0.758342", "0.65842515", "0.6579705", "0.6572916", "0.65662116", "0.65469223", "0.65218747", "0.6503358", "0.6491783", "0.6482935", "0.6415376", "0.63947904", "0.638296", "0.6362891", "0.6346393", "0.633013", "0.6319765", "0.6303434", "0.6265276", "0.62597877", "0.6249077", ...
0.8041297
0
Returns the indices (row, col) of all zero elements in the matrix. An element is considered to be zero if abs(value) <= 1e6
def VNqG(YKHO): return [(YRbF, r845) for YRbF, r845, BWXx in YKHO.get_values() if abs(BWXx) <= 1e-06]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def glTS(SppC: list) -> list:\n return [YRbF for YRbF, rdlD in enumerate(SppC) if not all(rdlD)]", "def XU23(YKHO, iBIi):\n for rdlD in range(iBIi.size):\n if 0 in iBIi.board[rdlD]:\n fvDH = iBIi.board[rdlD].index(0)\n return (rdlD, fvDH)\n return False", "def LpSr(E3D9):\...
[ "0.71309805", "0.694753", "0.68878263", "0.68829685", "0.6864468", "0.68540335", "0.6840689", "0.67771494", "0.67378145", "0.6720464", "0.66974014", "0.66944987", "0.66874665", "0.65817046", "0.65689546", "0.65379786", "0.6514267", "0.6451673", "0.6449002", "0.64228475", "0.6...
0.7152876
0
Convert TTC to triangular matrix
def q5w5(SVOE): for G1Hx in range(SVOE.shape[0]): e6QR = oyIN.diag(SVOE, G1Hx) if G1Hx == 0: BED_ = oyIN.ones((SVOE.shape[0], len(e6QR))) * oyIN.nan BED_[G1Hx, :len(e6QR)] = e6QR return BED_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yKIT(SppC):\n return SppC.tr()", "def aVWA(Nq1b):\n Kt_s = Nq1b / Nq1b.sum(axis=1)[:, oyIN.newaxis]\n return Kt_s", "def T1yB(nPrm) -> rLdf.Series:\n return nPum('t', nPrm)", "def Kt_s(YKHO):\n H2DR = []\n _G9Q = []\n for YRbF in range(YKHO.w):\n for r845 in range(YKHO.h):\n ...
[ "0.6712323", "0.657364", "0.6524225", "0.64600265", "0.6389883", "0.6324566", "0.6256476", "0.62143505", "0.62143505", "0.6210157", "0.6210157", "0.61979234", "0.6153536", "0.61050045", "0.60853606", "0.60564226", "0.6044466", "0.6034961", "0.59928083", "0.5956106", "0.595439...
0.7534388
0
Restores PyTorch models from models file given by path
def wBIE(YKHO, gXgy: str): TLI7, bGrB = Hy7s.path.split(Hy7s.path.abspath(xAKo)) gXgy = Hy7s.path.join(TLI7, gXgy) vauY = ht2j.load(gXgy) for G1Hx, Ty9i in YKHO.saveables.items(): Ty9i.load_state_dict(vauY[G1Hx].state_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(pmON):\n C3ST = ht2j.load(pmON)\n return C3ST", "def uyMl(YKHO, pmON):\n if Hy7s.path.exists(pmON):\n YKHO.model.load_state_dict(ht2j.load(pmON))\n YKHO.model.train()\n else:\n print('[Error]: The path to saved model does not exists')", "def oLG2(pmON):\n try:\n ...
[ "0.7451575", "0.7213405", "0.71975374", "0.7178921", "0.7127221", "0.71136814", "0.7083227", "0.70817494", "0.7053369", "0.7046719", "0.7041745", "0.7038857", "0.7029309", "0.70197797", "0.70190424", "0.70187384", "0.69957715", "0.69777703", "0.6969957", "0.69696647", "0.6936...
0.0
-1
from number(10base) to new base. Default to 62
def _dAZ(FGW3, ASFv=None): ASFv = ASFv or '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' P8oC = len(ASFv) Ylbp = [] YRbF = FGW3 while YRbF != 0: YRbF, wXAI = divmod(YRbF, P8oC) Ylbp.append(ASFv[wXAI]) return ''.join(reversed(Ylbp)) or '0'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uGJL(mLGw, LDUZ):\n bp7k = '0123456789ABCDEF'\n if mLGw % LDUZ == mLGw:\n return bp7k[mLGw]\n else:\n return uGJL(mLGw // LDUZ, LDUZ) + bp7k[mLGw % LDUZ]", "def npVH(mLGw, P8oC):\n if mLGw <= 0:\n return '0'\n BHGE = []\n for YRbF in range(13, -1, -1):\n naF9 = P...
[ "0.7565634", "0.7556281", "0.75412244", "0.7531077", "0.74989325", "0.74966586", "0.74893856", "0.74893856", "0.74893856", "0.7478281", "0.7466895", "0.7372513", "0.73675483", "0.7353804", "0.7342232", "0.73412097", "0.7327333", "0.72900563", "0.7286054", "0.7267018", "0.7217...
0.672978
51
Returns a list of query or POST arguments with the given name. We parse the query string and POST payload lazily, so this will be a slower operation on the first call.
def pi1E(YKHO, Iltc, HyJ9=None): if YKHO.charset: Iltc = Iltc.encode(YKHO.charset) if HyJ9 is None: HyJ9 = [] vRBi = YKHO.params.getall(Iltc) if vRBi is None or len(vRBi) == 0: return HyJ9 for YRbF in Ni9Y(len(vRBi)): if isinstance(vRBi[YRbF], SwjJ.FieldStorage): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gGZX(YKHO, mWFP: str) -> dict[str, ImMB] | None:\n ...", "def gGZX(YKHO, mWFP):\n raise NotImplementedError()", "def yxfR(YKHO, mWFP=None, WmM4=None):\n try:\n qv1X = KVWQ.parse_qs(YKHO.request.body)\n TBsA = {}\n for G1Hx in qv1X:\n TBsA[G1Hx] = qv1X[G1Hx][0]\n ...
[ "0.61118263", "0.6101256", "0.60494614", "0.59866905", "0.59585404", "0.5852583", "0.5815108", "0.5791336", "0.57644403", "0.57355446", "0.5730606", "0.56570303", "0.5592153", "0.5587542", "0.55499995", "0.5537512", "0.55060136", "0.55026734", "0.544543", "0.541093", "0.53487...
0.544363
19
Returns a list of the arguments provided in the query and/or POST. The return value is a list of strings.
def Ltpw(YKHO): return list(set(YKHO.params.keys()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rwTO(YKHO):\n sXPs = YKHO.request\n qIxc = sXPs.arguments()\n _hkX = {}\n for d7pR in qIxc:\n _hkX[d7pR] = repr(sXPs.get_all(d7pR))\n return _hkX", "def U5Ri(YKHO):\n return []", "def qIxc(YKHO):\n return list(YKHO.__args)", "def EIaR(YKHO):\n taqg = YKHO.q.getAll()\n U5...
[ "0.7474412", "0.7263546", "0.72558963", "0.7248815", "0.71832407", "0.7176676", "0.7150053", "0.714607", "0.70947486", "0.7060617", "0.70592904", "0.69104916", "0.6889578", "0.6848524", "0.68454236", "0.683986", "0.6838945", "0.6825531", "0.6796752", "0.6796752", "0.67856807"...
0.6776321
23
Returns a configuration value for a module.
def tgzD(YKHO, yR_P, H5ew=None, WmM4=object()): return YKHO.app.config.get_config(yR_P, key=H5ew, default=WmM4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, wOux):\n if YKHO.module is None or not hasattr(YKHO.module, wOux.setting_name):\n return wOux.value\n return getattr(YKHO.module, wOux.setting_name)", "def aIUm(YKHO):\n return YKHO.config['moduleContent']", "def yR_P(YKHO):\n return YKHO.maybe('moduleId', 'value')", "def eM...
[ "0.7568234", "0.7519012", "0.7129844", "0.7062632", "0.7032837", "0.68570703", "0.6756294", "0.6740839", "0.6649994", "0.66165835", "0.6616104", "0.65969723", "0.65349936", "0.64489883", "0.6429193", "0.6429193", "0.6429193", "0.6400834", "0.6377695", "0.6373535", "0.63702285...
0.7187219
2
Load in curvature values from the ?h.curv file.
def YbRX(YKHO): USYk = khtY.join(YKHO.data_path, 'surf', '%s.curv' % YKHO.hemi) YKHO.curv = j4hm.freesurfer.read_morph_data(USYk) YKHO.bin_curv = oyIN.array(YKHO.curv > 0, oyIN.int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rkdw(I11V):\n KnEh = open(I11V)\n for YRbF in range(3):\n KnEh.readline()\n Fg8X = []\n WKpV = []\n for zFiD in KnEh:\n zFiD = zFiD.split()\n Fg8X.append(float(zFiD[1]))\n WKpV.append(float(zFiD[2]))\n KnEh.close()\n Fg8X = oyIN.array(Fg8X, dtype=oyIN.float64)\n...
[ "0.72193956", "0.55907446", "0.5484832", "0.5456203", "0.544214", "0.5404196", "0.5395874", "0.53710425", "0.5363298", "0.53400964", "0.53094196", "0.52712417", "0.52702415", "0.5259436", "0.52133894", "0.5186454", "0.5130876", "0.51234466", "0.51109165", "0.51000834", "0.509...
0.8019345
0
Compute cross product between list of 3D vectors Much faster than np.cross() when the number of cross products becomes large (>500). This is because np.cross() methods become less memory efficient at this stage.
def Ebzu(WKvO, LVAh): assert WKvO.ndim == 2 assert LVAh.ndim == 2 assert WKvO.shape[1] == 3 assert LVAh.shape[1] == 3 assert (WKvO.shape[0] == 1 or LVAh.shape[0] == 1) or WKvO.shape[0] == LVAh.shape[0] if max([WKvO.shape[0], LVAh.shape[0]]) >= 500: return oyIN.c_[WKvO[:, 1] * LVAh[:, 2] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s2FW(jzdc, Fg_i):\n jzdc = oyIN.array(jzdc)\n Fg_i = oyIN.array(Fg_i)\n return list(oyIN.cross(jzdc, Fg_i))", "def dcUW(WKvO, LVAh):\n assert WKvO.shape[0] == 3\n assert LVAh.shape[0] == 3\n return oyIN.expand_dims(oyIN.cross(WKvO[:, 0], LVAh[:, 0]), axis=-1)", "def B4Ha(lSjb, v8Fa):\n ...
[ "0.73501164", "0.7136042", "0.7051223", "0.7045961", "0.7007344", "0.6966371", "0.69663393", "0.69637996", "0.69418275", "0.69032836", "0.6901255", "0.68993974", "0.6892809", "0.6880217", "0.68581796", "0.6815064", "0.6797505", "0.6785101", "0.6757498", "0.6747556", "0.672054...
0.7538576
0
Returns sparse matrix with edges as an adjacency matrix
def Nzgx(y_PJ): O9N6 = oyIN.max(y_PJ) + 1 ceXk = len(y_PJ) jzdc, Fg_i, Z9rn = y_PJ.T mC4V = o7sj.coo_matrix((oyIN.ones(ceXk), (jzdc, Fg_i)), shape=(O9N6, O9N6)) mC4V = mC4V + o7sj.coo_matrix((oyIN.ones(ceXk), (Fg_i, Z9rn)), shape=(O9N6, O9N6)) mC4V = mC4V + o7sj.coo_matrix((oyIN.ones(ceXk), (Z9r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I0pP(YKHO):\n EKkU = len(YKHO.nodes_map)\n DDBf = o7sj.dok_matrix((EKkU + 1, EKkU + 1), dtype=oyIN.bool)\n for _pUq in YKHO.elements:\n mC4V = _pUq.get_edges()\n for D70y in mC4V:\n DDBf[D70y[0], D70y[1]] = True\n DDBf[D70y[1], D70y[0]] = True\n return DDBf", "...
[ "0.7968156", "0.7821405", "0.77878773", "0.7722946", "0.7667189", "0.76043063", "0.75983113", "0.7562762", "0.75370634", "0.75269836", "0.7430164", "0.7430164", "0.7383958", "0.7354964", "0.7322363", "0.73133427", "0.73032695", "0.72778875", "0.72706366", "0.72635245", "0.724...
0.0
-1
Find out if the current session is expired Returns `bool` `True` if valid session (logged in)
def pVQk(YKHO) -> bool: AGIn = False Wzjh = Hy7s.path.join(YKHO.path_to_store, kvhE) if Hy7s.path.exists(Wzjh): with open(Wzjh, 'r') as eHNT: eOtH = qQXR.load(eHNT) rkQY = eOtH['expires_at'] wzkt = qcWV.now().timestamp() AGIn = rkQY > wzkt ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eRvD(YKHO):\n if YKHO.expiry_time:\n return YKHO.expiry_time <= rIAI.now()\n return False", "def xra4(YKHO, cuiw: Session) -> bool:\n RA_F = qcWV.datetime.now() - cuiw.timestamp\n return RA_F.total_seconds() > YKHO.expiry_seconds", "def CJbn(YKHO, MegF):\n if int(ITS7.time()) > MegF:\...
[ "0.8539972", "0.81097686", "0.79502726", "0.77622026", "0.7702627", "0.75847024", "0.75781345", "0.757195", "0.7571791", "0.7556236", "0.75150573", "0.75103635", "0.7508025", "0.74983424", "0.74673975", "0.7465939", "0.7460508", "0.74368274", "0.73685426", "0.73539037", "0.73...
0.6877201
74
Returns boolean based on if microsoft is asking to give app (Azure app) permission to access profile. Usually asks only if is first time running the client (on specific account) Returns `bool` `True` if is asking to give permission to app
def Xrr2(YKHO, GwPS: str) -> bool: return '/common/login' in GwPS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PVSl():\n return CmGq.User().IsAllowed('Rerun Operations STP', 'Application')", "def Gtwf(QePW: HttpRequest, SCWY: Application) -> bool:\n CBIr = QePW.user\n if CBIr.is_staff or CBIr.is_superuser:\n return True\n wfZ7 = yITd(QePW)\n if SCWY.company == wfZ7 and SCWY.user == CBIr and (SCW...
[ "0.67177874", "0.66043174", "0.65765375", "0.65050757", "0.6470232", "0.64646024", "0.6356797", "0.6341866", "0.6333767", "0.6333767", "0.6313158", "0.6261137", "0.6230881", "0.6226802", "0.6226802", "0.6225907", "0.6193036", "0.61909854", "0.6185155", "0.61111826", "0.610276...
0.6762643
0
Creates an user with the username 'admin'. If such a user already exists, resets it. The password is (re)set to 'admin'. The user becomes member of the group 'Admin'.
def K5lx(YKHO): _EYN = False try: dp9S = YKHO.get(username='admin') except rIt9: dp9S = YKHO.model(username='admin', last_name='Administrator') _EYN = True dp9S.default_password = 'admin' dp9S.password = D2Lq(dp9S.default_password) dp9S.save(skip_autoupdate=True) dp9S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x1U3() -> None:\n assert cuiw is not None, 'First init session with make_session()'\n assert gCuF.config\n DW23 = NCls.models.User.query().filter(NCls.models.User.group == uuUY.models.UserGroup.ADMIN)\n if not DW23.count():\n RKD7.debug('!' * 25 + f\"\\nCreating default admin user <{gCuF.con...
[ "0.80256283", "0.7885485", "0.77811503", "0.7745318", "0.7729077", "0.77171683", "0.7667419", "0.75600094", "0.7457012", "0.7428176", "0.74155027", "0.73945457", "0.7344123", "0.7311254", "0.72902507", "0.72615457", "0.72586745", "0.72540843", "0.7253968", "0.72493804", "0.72...
0.8369317
0
Generates a random passwort. Do not use l, o, I, O, 1 or 0.
def ikbr(YKHO): gLiZ = 'abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789' zNig = 8 return ''.join([Acvy(gLiZ) for YRbF in range(zNig)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RWJE():\n CIux.gen_rand_pass(20)", "def BSw2():\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in range(8)))", "def NlX3():\n Erfi = list(f'{vIwR.ascii_letters}{vIwR.digits}{vIwR.punctuation[0:25]}')\n tuKI.shuffle(Erfi)\n LLH_ = tuKI.choices(Erfi, k=tuKI.randint(...
[ "0.8344373", "0.8187153", "0.8180403", "0.81535697", "0.8127487", "0.81147516", "0.8100743", "0.8092444", "0.808518", "0.8006335", "0.8002203", "0.7967203", "0.79577214", "0.79123473", "0.7877614", "0.7829114", "0.7826605", "0.781545", "0.78139794", "0.77923405", "0.7782372",...
0.7773206
21
This method is closed. Do not use it but use openslides.utils.auth.has_perm.
def M1EP(YKHO, IuXB): raise RuntimeError('Do not use user.has_perm() but use openslides.utils.auth.has_perm')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjN5(YKHO):\n pass", "def qHTF(YKHO):\n pass", "def qHTF(YKHO, QePW, tTee):\n return True", "def qHTF(YKHO, QePW, tTee):\n return False", "def qHTF(YKHO, QePW, tTee):\n return False", "def qHTF(YKHO, QePW, tTee):\n return True", "def qHTF(YKHO, QePW, tTee):\n return True", "d...
[ "0.77998465", "0.7672812", "0.7223181", "0.7124714", "0.7124714", "0.7043785", "0.7043785", "0.7043785", "0.7043785", "0.7043785", "0.7037421", "0.70096165", "0.6976365", "0.69567615", "0.6925956", "0.6907476", "0.6906688", "0.6892149", "0.687847", "0.6868982", "0.6829205", ...
0.70563626
5
Returns the session auth hash of a user as attribute. Needed for the django rest framework.
def tTAe(YKHO): return YKHO.get_session_auth_hash()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t0x1(YKHO):\n CH5O = 'django.contrib.auth.models.AbstractBaseUser.get_session_auth_hash'\n return qAUk(CH5O, YKHO.password).hexdigest()", "def t0x1(YKHO):\n CH5O = 'django.contrib.auth.models.AbstractBaseUser.get_session_auth_hash'\n return qAUk(CH5O, YKHO.password).hexdigest()", "def t0x1(YKHO...
[ "0.7941511", "0.7941511", "0.7941511", "0.7213698", "0.6845549", "0.6799286", "0.6799286", "0.6799286", "0.6799286", "0.67216045", "0.67216045", "0.6698", "0.6659645", "0.6659645", "0.6659645", "0.6659645", "0.6626504", "0.6594384", "0.65550363", "0.64702517", "0.64702517", ...
0.7923102
3
Returns the normal queryset with all groups. In the background all permissions with the content types are prefetched from the database.
def XlsC(YKHO): return YKHO.get_queryset().select_related('group_ptr').prefetch_related(lUKL('permissions', queryset=CXiN.objects.select_related('content_type')))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XlsC(YKHO):\n return YKHO.get_queryset().prefetch_related(lUKL('groups', queryset=cQ68.objects.select_related('group_ptr').prefetch_related(lUKL('permissions', queryset=CXiN.objects.select_related('content_type')))))", "def Erfi(YEnM, awnO):\n C3ST = YEnM.__class__\n w0rQ = VJ23[C3ST]\n CB7y = '%...
[ "0.7940813", "0.68122315", "0.6809136", "0.67889017", "0.67512006", "0.6745391", "0.6613672", "0.64935744", "0.64115834", "0.6388724", "0.6271182", "0.6234456", "0.6228341", "0.62084067", "0.6205409", "0.61959267", "0.61806244", "0.6136263", "0.61361605", "0.6111139", "0.6084...
0.79801774
0
Returns the normal queryset with all personal notes. In the background all users are prefetched from the database.
def XlsC(YKHO): return YKHO.get_queryset().select_related('user')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n CBIr = YKHO.request.user\n return L_TV.objects.filter(owner=CBIr)", "def k66M(YKHO):\n return L_TV.objects.all()", "def BgrG(CBIr):\n FvVY = T97t.objects.filter(publisher=CBIr).order_by('-created_at')\n return FvVY", "def k66M(YKHO):\n tu9d = YKHO.queryset or YKHO.model.ob...
[ "0.7043406", "0.6545774", "0.64203614", "0.6326568", "0.6206092", "0.6162991", "0.61102813", "0.61019707", "0.6054474", "0.602588", "0.602058", "0.59991664", "0.5992074", "0.59909743", "0.59509206", "0.59500754", "0.5940579", "0.59316826", "0.5929399", "0.5920735", "0.5920735...
0.59075457
28
Given a number `num`, encode it as a binary string of length `size`, and pack it at the end of bitstream.
def N_IO(YKHO, mLGw, zNig): vIwR = bin(mLGw)[2:].zfill(zNig) for Ko6S in reversed(vIwR): if len(YKHO._bitstream) * 8 == YKHO._nbits: YKHO._bitstream.append(0) if Ko6S == '1': YKHO._bitstream[-1] |= 1 << YKHO._nbits % 8 YKHO._nbits += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z_YD(FGW3, zNig=G6Yh, aM8h=1):\n NrCO = Swre(FGW3 * aM8h)\n bytes = qw7D.array('B')\n for YRbF in range(zNig):\n bytes.append(0)\n while NrCO > 0 and YRbF >= 0:\n bytes[YRbF] = NrCO % 256\n NrCO /= 256\n YRbF -= 1\n return bytes.tostring()", "def kLcZ(nPrm, zNig=1):...
[ "0.72065496", "0.71092767", "0.6735015", "0.67069334", "0.6457449", "0.6351091", "0.6351091", "0.6245923", "0.61855346", "0.61395794", "0.61219275", "0.61053723", "0.60003245", "0.5958484", "0.58928543", "0.58864385", "0.5880287", "0.58801484", "0.58327013", "0.5827405", "0.5...
0.7549311
0
Gets a bucket reference for a Cloud Build.
def aBSI(d4y1, bNKA, WE7e): if WE7e: CO7Q = WE7e else: RKD7.debug('No bucket specified, retrieving default bucket.') CO7Q = d4y1.GetApplicationCodeBucket() if not CO7Q: raise Bx6I.DefaultBucketAccessError(bNKA) return vnyP.BucketReference(CO7Q)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def czD3(YKHO):\n return YKHO.gcs_client.get_bucket(bucket_name=YKHO.bucket)", "def czD3(pmON):\n from google.cloud import storage\n ntiA = storage.Client()\n l7rj, y0cW = (ZbWC.search('gs:\\\\/\\\\/([\\\\w.-]+)\\\\/(.+)', pmON).group(1), ZbWC.search('gs:\\\\/\\\\/([\\\\w.-]+)\\\\/(.+)', pmON).group(...
[ "0.70142496", "0.63914925", "0.63914925", "0.6388932", "0.6388932", "0.6388932", "0.6388932", "0.6388932", "0.6388932", "0.6388932", "0.63011795", "0.6282157", "0.628145", "0.62654793", "0.6265008", "0.62397206", "0.62325025", "0.62230957", "0.6211735", "0.6203328", "0.613104...
0.70908266
0
Converts an image to the grayscale version of the original image
def soe4(LNo8, _mSQ): H2v2, TVTK, YwkQ = LNo8.shape hlel = oyIN.zeros((H2v2, TVTK)) for MKlR in range(H2v2): for yzQ0 in range(TVTK): for Z9rn in range(YwkQ): hlel[MKlR, yzQ0] += LNo8[MKlR, yzQ0, Z9rn] * _mSQ[Z9rn] return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fppW(LNo8):\n if len(LNo8.shape) == 2:\n return LNo8\n return oyIN.dot(LNo8, [0.299, 0.587, 0.114])", "def Pl9M(VXjJ, UFp3):\n LNo8 = hnIv.open(VXjJ).convert('L')\n LNo8.save(UFp3)", "def IeP5(VXjJ):\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_RGB2GRAY)", "def mpHn(LNo8):\n return jb...
[ "0.8454265", "0.8262793", "0.81214225", "0.81119335", "0.81112975", "0.81054944", "0.80774707", "0.8040909", "0.8040909", "0.8020579", "0.79609966", "0.7930329", "0.78857803", "0.78836817", "0.7863599", "0.77674013", "0.7759729", "0.7759729", "0.7759729", "0.7759729", "0.7759...
0.0
-1
Remove Falsy values from list. Sees dicts with all Falsy values as Falsy.
def P6N5(Ty9i: list) -> list: if Ty9i: return list(filter(lambda YRbF: bool(YRbF) and (not isinstance(YRbF, dict) or any(YRbF.values())), Ty9i)) return Ty9i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xnx3(Csk6):\n return {G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items() if bool(Ty9i)}", "def xnx3(tbx9):\n return {G1Hx: Ty9i for G1Hx, Ty9i in list(tbx9.items()) if Ty9i is not None}", "def Cu5f(BZdj):\n guY0 = {}\n for H5ew, BWXx in BZdj.iteritems():\n if BWXx is not None:\n guY0[H...
[ "0.7387237", "0.6888212", "0.67284375", "0.65850765", "0.6525031", "0.6463719", "0.6417317", "0.6376162", "0.6327098", "0.62761337", "0.61751837", "0.61349297", "0.6132929", "0.6112582", "0.611029", "0.6105191", "0.60931826", "0.6079978", "0.6050103", "0.60425335", "0.6038458...
0.7276398
1
Provide a machinereadable representation of `self`.
def wHJl(YKHO): azoT = ((xC3W, getattr(YKHO, xC3W)) for xC3W in YKHO.__class__.__mapper__.columns.keys()) kgDL = ('{}={}'.format(xC3W, repr(BWXx)) for xC3W, BWXx in azoT if BWXx is not None) return '{}({})'.format(YKHO.__class__.__name__, ', '.join(kgDL))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return Napc(YKHO)", "def wHJl(YKHO):\n import cPickle\n try:\n return cPickle.dumps(YKHO)\n except cPickle.PicklingError as e:\n return str(YKHO)", "def wHJl(YKHO):\n return YKHO.toextern()", "def wHJl(YKHO):\n return f'{YKHO.__class__.__name__}({YKHO.encode(...
[ "0.71634007", "0.6951139", "0.69420725", "0.68959814", "0.68754745", "0.68488026", "0.68488026", "0.6774853", "0.676731", "0.676731", "0.676731", "0.676731", "0.676731", "0.676731", "0.6747557", "0.6746661", "0.67092806", "0.6698669", "0.6698669", "0.66842586", "0.6678721", ...
0.0
-1
Compare mask and the current, segmented, image. Take the absolute sum difference (L1) between the mask and segments.
def kUBT(ZHfW, VXjJ): SUko = oyIN.unique(VXjJ) KmmF = oyIN.array([oyIN.abs((VXjJ == P6bq).astype(int) - ZHfW.astype(int)).sum() for P6bq in SUko]) oeNL = oyIN.where(KmmF == oyIN.amin(KmmF)) oeNL = oyIN.amin(oeNL) vFVk = VXjJ == SUko[oeNL] return vFVk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pKzq(YKHO, rHYv, FuDy):\n h16r.open(rHYv)\n kpNW = h16r.getchunk()\n h16r.close()\n h16r.open(FuDy)\n ySsw = h16r.getchunk()\n h16r.close()\n yk4i = ySsw - kpNW\n return XTiz.all(yk4i == 0)", "def PDiD(PXIy: Array) -> HWEd:\n return oLG2.expand_dims(PXIy, -1) == oLG2.expand_dims(PX...
[ "0.66749436", "0.5895294", "0.58853585", "0.5806201", "0.5803171", "0.5797825", "0.5765913", "0.57256615", "0.5632117", "0.5582813", "0.5531641", "0.55261797", "0.5467049", "0.5449341", "0.5440202", "0.54298985", "0.54144156", "0.53955615", "0.5393968", "0.5372679", "0.534630...
0.55217284
12
Find the index of a key, if it exists.
def kS1Y(fK8P, H5ew): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aQzf(YKHO, H5ew):\n for YRbF in range(len(YKHO)):\n if YKHO._map_entries[YRbF].key == H5ew:\n return YRbF\n return None", "def d6pt(YKHO, H5ew):\n im04 = YKHO.find(H5ew)\n if im04 < 0:\n raise IndexError(H5ew)\n return H5ew", "def neBz(YKHO, H5ew):\n if isinstance...
[ "0.80422956", "0.7984358", "0.76790196", "0.74068004", "0.7377113", "0.7322106", "0.7295356", "0.72555846", "0.7223816", "0.71963716", "0.717904", "0.71758336", "0.7149408", "0.7121775", "0.71062744", "0.71020246", "0.7080909", "0.7066797", "0.69982135", "0.69472635", "0.6945...
0.7311981
6
Get the value associated with a key.
def NMoC(fK8P, H5ew): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, H5ew):\n return YKHO[H5ew]", "def Zmkp(YKHO, H5ew):\n return YKHO[H5ew]", "def NMoC(YKHO, H5ew):\n if YKHO.is_key(H5ew):\n YRbF = YKHO.hash_fun(H5ew)\n return YKHO.values[YRbF]", "def NMoC(YKHO, H5ew):\n nPrm, H5ew = YKHO._walk(H5ew)\n return nPrm[H5ew]", "def NM...
[ "0.8855143", "0.8855143", "0.8277582", "0.826154", "0.8173658", "0.8169335", "0.81556016", "0.8054988", "0.8031858", "0.79988474", "0.79714817", "0.7931629", "0.79134876", "0.7875604", "0.78726375", "0.78401613", "0.7817796", "0.7816967", "0.77873755", "0.7767326", "0.77508",...
0.0
-1
Returns the most recent expect match.
def kUBT(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lJi5(kUBT):\n return next((KCHu for KCHu in reversed(kUBT.groups()) if KCHu))", "def Ol0J(YKHO):\n return YKHO._unhandled_partial_matches.get()", "def HgOE(YKHO):\n return YKHO.latest()", "def OBSY(KCHu, Pisu, oeNL):\n BeKS = [r8hN for r8hN in Pisu.finditer(KCHu)]\n for YRbF in range(len(B...
[ "0.6837228", "0.6668237", "0.65013576", "0.6436932", "0.61591613", "0.6040886", "0.599794", "0.5993171", "0.5952313", "0.5923958", "0.5919532", "0.5919532", "0.58992606", "0.58963895", "0.5841641", "0.582337", "0.5800632", "0.5752714", "0.5728851", "0.57214785", "0.5718671", ...
0.0
-1
Retrieve this AppScale deployment's ID.
def aAYQ(Emd4, rdpC, VhAE): DXni = OMqC.get_secret_key(VhAE) YAq3 = VURP(rdpC, DXni) return YAq3.get_deployment_id()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biGm(YKHO) -> str:\n return qe4Y.get(YKHO, 'deployment_id')", "def biGm(YKHO) -> str:\n return qe4Y.get(YKHO, 'deployment_id')", "def id(YKHO):\n return YKHO.deployment_id", "def biGm(YKHO):\n return YKHO['deployment_id']", "def biGm(YKHO):\n return YKHO['deployment_id']", "def biGm(YK...
[ "0.8562746", "0.8562746", "0.8393648", "0.8365558", "0.8365558", "0.8297412", "0.76180845", "0.728947", "0.728947", "0.7123343", "0.69964594", "0.69793993", "0.69256", "0.6918308", "0.6886891", "0.6845908", "0.6831551", "0.682628", "0.682628", "0.682628", "0.6803319", "0.66...
0.7151454
9
Activation function for the gaussian competitive learning mechanism.
def ZLIm(YKHO, nPrm, Tclk, WTkW, bHVe=True, Hsbx=None): if bHVe: YKHO._weights = YKHO._weights + Tclk * (nPrm - YKHO._weights) else: QIhZ = DCqO(Hsbx, Tclk, YKHO._weights, WTkW) YKHO._weights = YKHO.weights + QIhZ * (nPrm - YKHO._weights)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rpSA(YKHO, WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def ECMu(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def YDYE(WKvO):\n return 1 / (1 + ht2j.exp(-WKvO))", "def _JV7(YKHO, input):\n if YKHO.activ_func == 'relu':\n return input > 0\n if YKHO.activ_func == 'sigmoid':\n retur...
[ "0.71693957", "0.71398574", "0.68477887", "0.68160325", "0.6799023", "0.67323464", "0.67323464", "0.6654325", "0.6652592", "0.66323507", "0.6558025", "0.6546835", "0.6517768", "0.650074", "0.64988893", "0.6460805", "0.64451724", "0.64303493", "0.6422602", "0.64174426", "0.641...
0.6495965
15
Computes average time between repeated transactions in days for each customer.
def gEvz(gQVK): _8eK = gQVK.groupby('customer_unique_id').count().sort_values(by='order_date', ascending=False) _8eK = _8eK[_8eK['order_date'] > 2] _8eK.reset_index(inplace=True) g26B = _8eK['customer_unique_id'].copy() dtEw = gQVK[['customer_unique_id', 'order_date']].copy() xRpH = {} for m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xZkv(YKHO, GYyL):\n qtWj = qcWV.utcfromtimestamp(0)\n oF7G = (GYyL[0] - qtWj).total_seconds()\n tOwQ = (GYyL[1] - qtWj).total_seconds()\n vkQN = (oF7G + tOwQ) / 2\n k_fU = qcWV.utcfromtimestamp(vkQN)\n return k_fU", "def cFPA(YKHO):\n UHFx = 0\n iGYZ = list()\n TX60 = list()\n f...
[ "0.64930904", "0.6300668", "0.62166125", "0.6167332", "0.5944054", "0.5909911", "0.58809066", "0.5868136", "0.58320516", "0.5831468", "0.58022684", "0.57949555", "0.5775453", "0.5762196", "0.57117856", "0.57046217", "0.5657895", "0.56429744", "0.5631131", "0.56255025", "0.559...
0.70501816
0
Construct a leaf for the itest tree.
def egtu(YKHO, AOLv, X5Sc, ZfUD, ht7m=None): return {'children': {}, 'type': AOLv, 'item': ZfUD, 'parent': X5Sc, 'lock': T6FA.Lock(), 'exec': gVez.CREATED, 'item_id': ht7m}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kjp6(nPrm):\n return UD_O(data=nPrm)", "def lMww(YKHO, UXqs):\n return o7DN(UXqs)", "def kjp6(YKHO):\n return YKHO([])", "def r4gc():\n nPrm: QHFi = QHFi('test/data/simple.txt')\n tk5Y: o7DN = nPrm.construct_tree()\n assert tk5Y.left.left.left.left == o7DN(1, 'r')", "def n_JI(YKHO, mL...
[ "0.79305404", "0.7219387", "0.7133104", "0.70685804", "0.7023399", "0.697354", "0.6742922", "0.6673498", "0.6633067", "0.6602026", "0.6563228", "0.6514421", "0.6470187", "0.6430914", "0.64024425", "0.6379866", "0.63560104", "0.630198", "0.6293952", "0.62860304", "0.6259429", ...
0.64160156
14
Get name of item.
def UfWZ(YKHO, mWFP): if len(mWFP) > rdXq: mWFP = mWFP[:rdXq - len(KY45)] + KY45 RKD7.warning(axPG('Test leaf ID was truncated to "{}" because of name size constrains on Report Portal'.format(mWFP))) return mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._item.name", "def zDRZ(YKHO):\n return YKHO._item_name", "def zDRZ(YKHO):\n return YKHO._item_name", "def mWFP(YKHO):\n return YKHO._name if YKHO._name is not None else YKHO._item.name", "def FBQU(YKHO):\n return YKHO.itemName", "def dvRm(ht7m, DpZH='v1.2'):\n...
[ "0.88448536", "0.8831469", "0.8831469", "0.88128066", "0.8585115", "0.8472399", "0.82494515", "0.8001828", "0.79187745", "0.7625252", "0.7545225", "0.7482385", "0.74612427", "0.74496925", "0.74469554", "0.7425352", "0.7418573", "0.7415523", "0.7415191", "0.74132335", "0.74132...
0.0
-1
Get description of item.
def FlzG(YKHO, WtAL): if isinstance(WtAL, (gZ1O, f_8k, awyi, kLxY)): if hasattr(WtAL, 'obj'): A97Q = WtAL.obj.__doc__ if A97Q is not None: return RZw2(A97Q) if isinstance(WtAL, fPR6): return WtAL.reportinfo()[2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VJoO(YKHO, ZfUD):\n return ZfUD.content", "def VJoO(YKHO, ZfUD):\n return ZfUD.text", "def VJoO(YKHO, ZfUD):\n return ZfUD.text", "def t5do(YKHO, **B2fa):\n ZfUD = B2fa.get('item')\n return ZfUD.name if ZfUD else ''", "def t5do(ZfUD):\n if 'content' in ZfUD and ZfUD.content:\n ...
[ "0.88854396", "0.8883327", "0.8883327", "0.87585855", "0.8482101", "0.8468857", "0.84675777", "0.8384408", "0.8361622", "0.8340826", "0.77367187", "0.76826966", "0.7681087", "0.76620686", "0.76620686", "0.76620686", "0.76620686", "0.76620686", "0.76620686", "0.76620686", "0.7...
0.8014938
10
Echoes the given string in the specified channel (say channel text).
def wJcu(tO9_): if tO9_.sender != gCuF.OWNER: return 'Since you are not my owner, I say nay.' try: YwkQ, Ol8d = tO9_.params.split(' ', 1) tO9_.bot.send(_e0h.irc.say(YwkQ, Ol8d)) except ValueError: return 'Incorrect format. Try #say channel text.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wJcu(YKHO, YwkQ, l5Ny):\n YKHO.sc.server.channels.find(YwkQ).send_message(l5Ny)", "def wJcu(YKHO, YwkQ, KCHu):\n YKHO.presenter.say(YwkQ, KCHu)", "async def say(YKHO, OaeV, YwkQ: TextChannel, *, l5Ny):\n await YwkQ.send(l5Ny)", "async def echo(YKHO, OaeV, YwkQ: discord.TextChannel, *, Ol8d: str)...
[ "0.7971481", "0.79078007", "0.7468177", "0.74039996", "0.703568", "0.7006215", "0.69980854", "0.6984279", "0.68969804", "0.6890206", "0.6851159", "0.67813826", "0.66798556", "0.6671852", "0.6663088", "0.6647198", "0.66032344", "0.65566677", "0.65155905", "0.64624923", "0.6441...
0.65582436
17
Add entry into the database
def NaHP(xZ2X): if IOct.config_status['login'] == 'N': print('You are not logged in.') return False else: w2B8 = IOct.config_status['db_obj'][0] fHmP = w2B8.cursor() try: fHmP.execute('INSERT INTO credentials (title, user, password, category, description, salt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def kW6C(YKHO):\n print('adding ' + YKHO.name + ' to persons.db')\n YE_N.insert(YKHO.name)", "def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def JPHp(YKHO):\n NCls.session.add(YKHO)\n NCls.session...
[ "0.7681036", "0.7618353", "0.75303763", "0.7500511", "0.7500511", "0.7500511", "0.74484086", "0.7441524", "0.7385107", "0.7357376", "0.7340024", "0.73061174", "0.71941245", "0.71941245", "0.71941245", "0.71762943", "0.71536773", "0.7147262", "0.7123706", "0.711566", "0.709711...
0.0
-1
List all unique column (e.g. categories, titles) in the database. Return as a list
def JUCn(C5eS): if IOct.config_status['login'] == 'N': print('You are not logged in.') return False else: w2B8 = IOct.config_status['db_obj'][0] fHmP = w2B8.cursor() try: if C5eS == 'category': fHmP.execute('SELECT DISTINCT category FROM creden...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZLJ_(YKHO):\n return [WKvO[0] for WKvO in YKHO.m80.db.cursor().execute('\\n SELECT DISTINCT(key) FROM metadata;\\n ').fetchall()]", "def NiwV(YKHO):\n return []", "def ZLJ_(YKHO) -> x1iM[str]:\n pass", "def WfCS(YKHO):\n yv6U = []\n iZr3 = 'SELECT column_name ' + ...
[ "0.7619842", "0.6899636", "0.6795401", "0.67784506", "0.67685944", "0.6703654", "0.6703654", "0.6669003", "0.66167474", "0.66092294", "0.6599575", "0.65535057", "0.6529836", "0.65257925", "0.6525171", "0.64827687", "0.6429903", "0.6429903", "0.6427176", "0.6407418", "0.640510...
0.0
-1