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
Given a string object, regardless of type, returns a representation of that string in the native string type, encoding and decoding where necessary. This assumes ASCII unless told otherwise.
def rnOh(vIwR, tZ2K='ascii'): if isinstance(vIwR, str): yvT9 = vIwR else: yvT9 = vIwR.decode(tZ2K) return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C7Le(KCHu):\n if not isinstance(KCHu, str):\n return KCHu.decode('ascii', 'strict')\n return KCHu", "def Hh5E(KCHu):\n if jKi7.PY2 and isinstance(KCHu, jKi7.text_type):\n return KCHu.encode('ascii', 'ignore')\n elif jKi7.PY3 and isinstance(KCHu, jKi7.binary_type):\n return KC...
[ "0.76825947", "0.74697006", "0.74070233", "0.73792666", "0.73578906", "0.73205477", "0.71665096", "0.7136369", "0.6976668", "0.69382024", "0.69344807", "0.6859275", "0.6773821", "0.67531794", "0.6750167", "0.6700445", "0.66834134", "0.667559", "0.66700625", "0.66051435", "0.6...
0.78919077
0
When using the list() command (GET singular or batch), this is called to add any additional logic to the queryset or verify the user has access to the items being pulled.
def jm1o(YKHO, QePW, HwhU): return HwhU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n SR0I = super().get_queryset()\n return SR0I.available_for_user(YKHO.request.user)", "def k66M(YKHO, *qIxc, **B2fa):\n umWR = super().get_queryset(*qIxc, **B2fa)\n CBIr = YKHO.request.user\n if not CBIr.is_authenticated:\n return umWR.none()\n if YKHO.is_get and (not CBI...
[ "0.73047286", "0.7255619", "0.7098018", "0.708734", "0.7078743", "0.70605165", "0.70168155", "0.6955862", "0.6901173", "0.6875157", "0.6835958", "0.6746452", "0.6704133", "0.6704133", "0.66757494", "0.6645755", "0.6560318", "0.6521229", "0.6507598", "0.6484462", "0.6472457", ...
0.0
-1
Returns a sequence of tracks
def xLof(A6b2): vC9B = [] for A6b2 in ogcC.get_track(A6b2['artist'], A6b2['title']).get_similar(): A6b2 = A6b2.item vC9B.append({'artist': A6b2.get_artist().get_name(), 'title': A6b2.get_title()}) return vC9B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZEx(mLGw=1):\n pass", "def VEI5(YKHO):\n G9jH.info('getting tracks from 8tracks')\n WXSU = '7fe2e057bb81abf2248a06ecab027b8dc09e01d3'\n YKHO.info_var.set('\\n\\n Now playing 8Tracks Songs: \\n')\n nNXP = fyIx(api_key=WXSU)\n eUoe = nNXP.get_mixes(num_results=1)\n A6b2 = nNXP.start_playb...
[ "0.78148675", "0.694223", "0.68728083", "0.67171866", "0.65844595", "0.6505452", "0.6460934", "0.64313346", "0.6381539", "0.633947", "0.63382536", "0.6258346", "0.6213796", "0.62071747", "0.6192527", "0.61125255", "0.60862386", "0.60745597", "0.60670143", "0.60561", "0.604781...
0.5894415
27
Returns a sequence of tracks
def C0pN(h5p_, qoqK): vC9B = [] for A6b2 in ogcC.get_artist(h5p_).get_top_tracks(limit=qoqK): A6b2 = A6b2.item vC9B.append({'artist': A6b2.get_artist().get_name(), 'title': A6b2.get_title()}) return vC9B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZEx(mLGw=1):\n pass", "def VEI5(YKHO):\n G9jH.info('getting tracks from 8tracks')\n WXSU = '7fe2e057bb81abf2248a06ecab027b8dc09e01d3'\n YKHO.info_var.set('\\n\\n Now playing 8Tracks Songs: \\n')\n nNXP = fyIx(api_key=WXSU)\n eUoe = nNXP.get_mixes(num_results=1)\n A6b2 = nNXP.start_playb...
[ "0.78169715", "0.6944414", "0.6875316", "0.67187476", "0.65869004", "0.65069485", "0.64633286", "0.643163", "0.6383554", "0.63416183", "0.6341186", "0.62597686", "0.621545", "0.6209237", "0.61935276", "0.61146224", "0.60914814", "0.6078586", "0.60693836", "0.60581064", "0.604...
0.529543
93
Test expects failure due to blacklisted flavor In rules_murano_system.txt file are defined congress rules preventing deploy environment where instances have flavor property set to 'really.bad.flavor'.
def jo6z(YKHO): YKHO._check_deploy_failure(YKHO._create_test_app(flavor='really.bad.flavor', key='test-key'), 'bad flavor')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8uD():\n iXC1('chariot-me')\n DS7L()", "def eZb8(YKHO):\n YKHO.assertFalse(JvTe.check_fuzzer_build(Wdnm))", "def Odqo(_Cj7, gFLl, Ehsq, KTnm):\n KTnm.set_level(G9jH.DEBUG)\n uRCg = gFLl / 'charmcraft.yaml'\n uRCg.write_text(q1HU(' type: charm\\n bases:\\n ...
[ "0.60948056", "0.5961156", "0.5944623", "0.5851669", "0.5819456", "0.57601464", "0.5736138", "0.5707545", "0.5691066", "0.5633678", "0.56242937", "0.5618079", "0.5610208", "0.5607173", "0.55768085", "0.55684745", "0.5559717", "0.5548684", "0.5533213", "0.5532696", "0.55213386...
0.6831176
0
Create dictionary for query annotations.
def XgyP(YKHO): XgyP = {'date': YKHO.date_trunc('usage_start')} V_D6 = YKHO._mapper.provider_map.get('annotations') for f_vU, E5H6 in V_D6.items(): XgyP[f_vU] = vuvg(E5H6) if 'project' in YKHO.parameters.parameters.get('group_by', {}) or 'and:project' in YKHO.parameters.parameters.get('group_by'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UxF8(l633: List) -> x1iM:\n return [{'unannotated_text': xDcj.query.text, 'annotated_text': HTwy(xDcj), 'domain': xDcj.domain, 'intent': xDcj.intent} for xDcj in l633]", "def EmH1(QePW, CBIr):\n n10L = gnPz.user.userid_from_username(CBIr.username, QePW)\n return {'filtered': {'filter': {'term': {'us...
[ "0.6465399", "0.61611813", "0.60600257", "0.5904343", "0.5902068", "0.590205", "0.590205", "0.5836968", "0.5800371", "0.5723801", "0.57154983", "0.56440455", "0.56043994", "0.5598025", "0.55468184", "0.55292803", "0.5524905", "0.55039936", "0.5492002", "0.5472746", "0.5471667...
0.7450913
0
Add delta to the resultset using current month comparisons.
def JGrT(YKHO, jtDf, uxGy): rmOK, r1qt = YKHO._delta.split('__') for rdlD in jtDf: bky_ = ZjSO(rdlD.get(rmOK, 0)) - ZjSO(rdlD.get(r1qt, 0)) rdlD['delta_value'] = bky_ try: rdlD['delta_percent'] = rdlD.get(rmOK, 0) / rdlD.get(r1qt, 0) * 100 except (j8Cx, ZeroDivisionEr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fx7i(YKHO):\n bD7m = '?filter[time_scope_value]=-1&filter[resolution]=monthly&filter[limit]=1'\n o2VW = YKHO.mocked_query_params(bD7m, pSgW)\n DCgT = ZYFF(o2VW)\n DCgT._delta = 'usage__foo'\n w4U1 = DCgT._mapper.provider_map.get('tables').get('query')\n with LCjI(YKHO.tenant):\n xDcj =...
[ "0.6911801", "0.67617816", "0.6748516", "0.6522632", "0.5534764", "0.5299118", "0.5297844", "0.5280118", "0.52487004", "0.5185394", "0.51793647", "0.5177164", "0.5138675", "0.51066107", "0.510281", "0.5084717", "0.5060132", "0.5059068", "0.4990458", "0.49528804", "0.49410024"...
0.6476176
4
create bit array of value 1 and then shift it to the left i times.
def IT38(IWj_, YRbF): ZBaj = len(IWj_) if YRbF > ZBaj - 2: raise Exception('Shifting more than the length of the string') a0GJ = llJG('0b' + '0' * (ZBaj - 1) + bin(1)[2:]) return a0GJ.__ilshift__(YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szi_(YKHO):\n UOVU = oyIN.array(YKHO.image_bits)\n OtS8 = oyIN.repeat(UOVU, 3)\n return OtS8", "def fUYa(WKvO, YRbF):\n\n def tvXm(WKvO, KCHu):\n nEeK, ekgN = (WKvO % XcU5, WKvO // XcU5)\n nEeK = (nEeK << KCHu) % XcU5\n ekgN = (ekgN << KCHu) % XcU5\n return nEeK + XcU5...
[ "0.6527023", "0.63221556", "0.6297559", "0.6295933", "0.62751395", "0.6275082", "0.62474877", "0.62075615", "0.6151358", "0.61129326", "0.61057794", "0.60825115", "0.6041385", "0.59783757", "0.59783757", "0.5967097", "0.59642833", "0.5960934", "0.5939053", "0.59254754", "0.58...
0.68935513
0
Return the test binary path for the current host machine.
def WtDm(): return './Source/astcenc'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VjV0(YKHO):\n WxuP = 'test_hint_time'\n Qeo_ = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))\n c4Um = Hy7s.path.join(Qeo_, '.libs', WxuP)\n if not Hy7s.path.exists(c4Um):\n U6nA = Hy7s.path.dirname(Qeo_)\n ex_P = Hy7s.path.join(U6nA, 'build/integration/test/.libs', WxuP)\n if not...
[ "0.66496825", "0.664309", "0.651933", "0.6432318", "0.6427663", "0.6417282", "0.64005595", "0.6364901", "0.6341914", "0.6320428", "0.63140327", "0.6301264", "0.6294853", "0.6257356", "0.61920226", "0.6184713", "0.617299", "0.6161132", "0.61554354", "0.61389816", "0.61164176",...
0.7133221
0
Return the reference binary path for the current host machine.
def VF_l(): return './Binary/linux-x64/astcenc'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yeg3(YKHO):\n return YKHO._query_config()['binpath']", "def Yeg3(YKHO):\n return YKHO.__bin", "def dLv2():\n _bsB = uagh('where is the file located?')\n _bsB = Hy7s.path.abspath(_bsB)\n return _bsB", "def r3dl(YKHO):\n MJH2 = YKHO._filesystem.path_to_module(YKHO.__module__)\n kcc1 = ...
[ "0.69345254", "0.6899813", "0.6662372", "0.65941286", "0.6521972", "0.6514827", "0.6481966", "0.6477558", "0.64516836", "0.6426856", "0.6320538", "0.6292434", "0.62915134", "0.6254497", "0.62468845", "0.6244267", "0.62086916", "0.620309", "0.6201857", "0.61929256", "0.6183511...
0.76430035
0
Receives datetime instance and returns int total seconds
def uRcI(ITS7): if isinstance(ITS7, qcWV): return ITS7.second + ITS7.minute * 60 + ITS7.hour * 3600 else: raise Exception('{} is not a datetime instance'.format(yo7_))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C6wh(YKHO):\n Os4s = YKHO.end or rIAI.now()\n Aofo = Os4s - YKHO.start\n return Aofo.seconds", "def z59i():\n wj6w = qcWV.utcnow()\n nU14 = qcWV.combine(wj6w.date(), ITS7(0))\n RA_F = wj6w - nU14\n return RA_F.total_seconds()", "def C6wh(YKHO):\n return int(YKHO)", "def z0YJ(JRYC)...
[ "0.7671854", "0.7280136", "0.7271972", "0.72426414", "0.7234691", "0.72201884", "0.7209075", "0.720482", "0.71819377", "0.71104556", "0.7097988", "0.7084554", "0.6996194", "0.6975854", "0.69742554", "0.6966981", "0.69166523", "0.69087535", "0.6890244", "0.68871206", "0.688696...
0.716144
9
Check if today is startmonth day
def uvu3(yo7_): if isinstance(yo7_, qcWV): if yo7_.day == 1: return True return False else: raise Exception('{} is not a datetime instance'.format(yo7_))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def niXe(yo7_):\n if isinstance(yo7_, qcWV):\n if yo7_.day == 1 and yo7_.month == 1:\n return True\n elif yo7_.day == 1 and yo7_.month == 4:\n return True\n elif yo7_.day == 1 and yo7_.month == 7:\n return True\n elif yo7_.day == 1 and yo7_.month == 1...
[ "0.77674085", "0.7534008", "0.7300303", "0.6990338", "0.6985148", "0.6846361", "0.6837897", "0.6822636", "0.66718066", "0.66498154", "0.6513399", "0.64925903", "0.64514804", "0.642389", "0.63659245", "0.6348478", "0.6334379", "0.62953764", "0.62823486", "0.6198536", "0.619804...
0.85193604
0
Check if today is starttrimester day
def niXe(yo7_): if isinstance(yo7_, qcWV): if yo7_.day == 1 and yo7_.month == 1: return True elif yo7_.day == 1 and yo7_.month == 4: return True elif yo7_.day == 1 and yo7_.month == 7: return True elif yo7_.day == 1 and yo7_.month == 10: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s_Zy(YKHO, Ns3P, CjKC):\n if YKHO.schedule_keys[Ns3P][CjKC] == 1:\n return True\n else:\n return False", "def Hj3V(CjKC, yo7_):\n if isinstance(yo7_, qcWV):\n if yo7_.day == int(CjKC) and yo7_.month == 1:\n return True\n elif yo7_.day == int(CjKC) and yo7_.mont...
[ "0.7721896", "0.7540536", "0.7523071", "0.7160882", "0.70620686", "0.70235986", "0.6840922", "0.6716203", "0.6654683", "0.6642705", "0.6590663", "0.6561168", "0.6543597", "0.6485861", "0.6485861", "0.64852846", "0.64319086", "0.64193434", "0.6374264", "0.63574517", "0.6349544...
0.82390046
0
Check if today is specific day of month
def ZMfE(CjKC, yo7_): if isinstance(yo7_, qcWV): MIxD = int(CjKC) if yo7_.day == MIxD: return True return False else: raise Exception('{} is not a datetime instance'.format(yo7_))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hj3V(CjKC, yo7_):\n if isinstance(yo7_, qcWV):\n if yo7_.day == int(CjKC) and yo7_.month == 1:\n return True\n elif yo7_.day == int(CjKC) and yo7_.month == 4:\n return True\n elif yo7_.day == int(CjKC) and yo7_.month == 7:\n return True\n elif yo7...
[ "0.7484211", "0.7387048", "0.73675853", "0.7089258", "0.68247694", "0.67759037", "0.67383504", "0.66899437", "0.66522187", "0.66285676", "0.66056705", "0.6562509", "0.6521648", "0.6490237", "0.64706", "0.6446822", "0.64426076", "0.6435847", "0.63919866", "0.6370431", "0.63604...
0.819592
0
Check if the last send was in the same day, if yes return False
def LEdV(yo7_, CbF0): if isinstance(yo7_, qcWV): if CbF0 is not None: if yo7_.date() != CbF0.date(): return True return False return True else: raise Exception('{} is not a datetime instance'.format(yo7_))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RPp2(YKHO):\n yo7_ = qcWV.datetime.today()\n CjKC = qcWV.datetime.combine(YKHO.date, YKHO.start_time)\n return CjKC <= yo7_", "def Hks_(yKcO, Os4s, CbF0, wzkt):\n if CbF0 is not None:\n dz2l = wzkt\n uPyi = yKcO.split(':')\n kCjO = Os4s.split(':')\n kCjO = dz2l.replace...
[ "0.6761714", "0.6653484", "0.6468747", "0.6467761", "0.63432646", "0.6286878", "0.6253676", "0.62026536", "0.61785954", "0.6162367", "0.61585045", "0.6139138", "0.612036", "0.6094996", "0.6085233", "0.60778266", "0.6066203", "0.603894", "0.6008927", "0.59947425", "0.59779423"...
0.7925761
0
Path to the run directory.
def ebmv(YKHO, BWXx=None): if BWXx is not None: YKHO._run_dir = BWXx return YKHO._run_dir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sFi0():\n p0Uu = Hy7s.popen('git rev-parse --show-toplevel').read().strip()\n return Hy7s.path.join(p0Uu, Kl86)", "def YPNT(YKHO):\n pmON = HwRy.argv[0]\n if not Hy7s.path.isdir(pmON):\n pmON = Hy7s.path.dirname(pmON)\n if not pmON:\n return '.'\n return pmON", "def JsX5(YKH...
[ "0.7461507", "0.7391438", "0.73115975", "0.73115975", "0.7282091", "0.7241663", "0.7229003", "0.71999544", "0.7186624", "0.7178305", "0.7115261", "0.71051484", "0.7066216", "0.7032835", "0.7020495", "0.6990319", "0.69800454", "0.6973799", "0.6943994", "0.691811", "0.6914628",...
0.7162815
10
Split DataFrame or matrices into random train and test subsets
def bHtP(jQ3Z, ioaL=None, NI2E=0.2, hXNa=False, t3eI=None): a1PO = jQ3Z.sample(frac=1, random_state=t3eI).index if hXNa else jQ3Z.index if ioaL is None: a1PO = [a1PO[0:round(len(a1PO) * (1 - NI2E))].tolist(), a1PO[round(len(a1PO) * (1 - NI2E)):].tolist()] else: a1PO = ioaL[a1PO] YhDe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qb89(jQ3Z: pd.DataFrame):\n zNig = int(jQ3Z.shape[0] * 0.8)\n bS0K = oyIN.random.choice(jQ3Z.index, zNig, replace=False)\n XxFT = jQ3Z.loc[bS0K]\n t4zr = jQ3Z.loc[~jQ3Z.index.isin(bS0K)]\n return (XxFT, t4zr)", "def FJfc(jQ3Z, NI2E, yokr):\n co3n = oyIN.size(jQ3Z, 1)\n EcVT = jQ3Z.iloc[:...
[ "0.83450115", "0.7835442", "0.77892274", "0.7671971", "0.7632677", "0.75787514", "0.7569498", "0.7555203", "0.7534092", "0.75305897", "0.7396956", "0.7286583", "0.7267887", "0.7259169", "0.72253996", "0.7211722", "0.7205512", "0.7177795", "0.7177336", "0.7170283", "0.712934",...
0.68466926
53
Extends an existing dynaform. If any of dynainclude, dynaexclude or dynaproperties are not present, they are retrieved from dynaform (if present in it's Meta class). While it is rather useless to extend from a dynaform that does not have a Meta class, it is allowed, the resulting DynaForm is the same as if newDynaForm ...
def SUYP(ak7p, gaZg=None, Dp48=None, l7c4=None, SStx=False): e5kH = getattr(ak7p, 'Meta') OAmb = getattr(e5kH, 'model', None) ipi1 = getattr(e5kH, 'include', []) VxNk = getattr(e5kH, 'exclude', []) if not gaZg: gaZg = ipi1 ipi1 = [] if not Dp48: Dp48 = VxNk VxNk =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3jv(OAmb=None, df3X=None, gaZg=None, Dp48=None, l7c4=None):\n\n class DynaForm(df3X):\n \"\"\"The dynamically created Form class\n \"\"\"\n APAN = aFQo\n\n class Meta:\n \"\"\"Inner Meta class that defines some behavior for the form.\n \"\"\"\n C3ST = OAmb...
[ "0.6011206", "0.5576735", "0.48622766", "0.48534808", "0.46219403", "0.46149936", "0.45616913", "0.4548721", "0.45049348", "0.4479585", "0.4394802", "0.4387221", "0.4369661", "0.43617228", "0.43460262", "0.4330904", "0.4291084", "0.4277482", "0.42550665", "0.42485812", "0.423...
0.8671747
0
the 404 error case is tested
def Lth0(YKHO): _hkX = YKHO.client.get(gxEw('minerals:detail', kwargs={'name': 'nothing'})) YKHO.assertEqual(_hkX.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IvCS(YKHO):\n RBVb = YKHO.app.get('/this_should_not_exist', follow_redirects=True)\n assert b'404 error :(' in RBVb.data", "def ZQkg(YKHO):\n YKHO._error_test(ODk9.HTTPNotFound)", "def o3cf():\n return c1Bu(404)", "def v4ew(YKHO):\n bD7m = YKHO.baseurl + '/do-not-implement-this-page-it-is-...
[ "0.8255935", "0.8093764", "0.8065739", "0.8023106", "0.7973832", "0.7945598", "0.790912", "0.77482927", "0.77035487", "0.7651636", "0.7622957", "0.7609208", "0.7586827", "0.7565953", "0.75508404", "0.7545785", "0.7510848", "0.75077456", "0.75041103", "0.7503768", "0.74961543"...
0.0
-1
Add a list of additional tokens to the encoder. The additional tokens are indexed starting from the last index of the current vocabulary in the order of the `special_tokens` list.
def Wex3(YKHO, Nd03): if not Nd03: YKHO.special_tokens = {} YKHO.special_tokens_decoder = {} return YKHO.special_tokens = dict(((w2fL, len(YKHO.encoder) + YRbF) for YRbF, w2fL in enumerate(Nd03))) YKHO.special_tokens_decoder = {Ty9i: G1Hx for G1Hx, Ty9i in YKHO.special_tokens.items()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nZdk(C3ST, b0j5):\n pz36 = len(b0j5.encoder)\n SkrA = b0j5.add_special_tokens(G5Z0)\n if SkrA > 0:\n C3ST.resize_token_embeddings(new_num_tokens=pz36 + SkrA)", "def nZdk(C3ST, b0j5, EkDY=True):\n pz36 = len(b0j5)\n SkrA = b0j5.add_special_tokens(G5Z0)\n if SkrA > 0 and EkDY:\n ...
[ "0.7473028", "0.7036401", "0.6812366", "0.6457823", "0.6438591", "0.6424395", "0.6407748", "0.6330814", "0.5939789", "0.59315705", "0.5907322", "0.57830495", "0.57660943", "0.5765722", "0.57558626", "0.57191026", "0.5691086", "0.5513721", "0.5488577", "0.5485021", "0.5467534"...
0.6972036
2
Converts a sequence of tokens into ids using the vocab.
def wClh(YKHO, s2mk): A07C = [] if isinstance(s2mk, str): if s2mk in YKHO.special_tokens: return YKHO.special_tokens[s2mk] else: return YKHO.encoder.get(s2mk, YKHO.unk_id) for eOtH in s2mk: if eOtH in YKHO.special_tokens: A07C.append(YKHO.special_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C9fz(aWuw, CtWL):\n pass", "def I44O(yAmx, ED_H):\n return [ED_H.get(yzQ0, zxQc) for yzQ0 in yAmx.strip().split()]", "def TW0I(YKHO, CtWL):\n for wDWA in [YKHO.train_set, YKHO.dev_set, YKHO.test_set]:\n if wDWA is None:\n continue\n for mvm2 in wDWA:\n mvm2['que...
[ "0.7760125", "0.74963677", "0.7465171", "0.74226004", "0.73314273", "0.73061234", "0.7287909", "0.72748107", "0.7257345", "0.7237548", "0.7222457", "0.7209118", "0.7168923", "0.70928735", "0.68646646", "0.6838162", "0.6824125", "0.6781408", "0.67564845", "0.6729754", "0.67187...
0.70247203
14
Test that a complete subclass of CryptographicObject can be instantiated.
def as4H(YKHO): yp3N()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VDVO(YKHO):\n pass", "def as4H(YKHO):\n Ylbp = sLVX.Computer(1)\n kLQb = sLVX.Computer\n YKHO.assertIsInstance(Ylbp, kLQb)", "def ytKZ(YKHO):\n pLEr = 'dummy_system'\n GT6L = 'dummy.domain.com'\n CBIr = 'root'\n KaGP = 'somepwd'\n CBZq = {}\n RRP_ = jmo5.GuestLinux(pLEr, GT6L,...
[ "0.65006685", "0.6441401", "0.6394996", "0.6383331", "0.6383331", "0.6308297", "0.6172312", "0.6152583", "0.6124878", "0.611675", "0.6095418", "0.6082839", "0.60751", "0.6071222", "0.5994109", "0.59853834", "0.5985357", "0.59707654", "0.5942825", "0.5932657", "0.59250283", ...
0.75651866
0
Test that equality can be applied to a CryptographicObject.
def uq87(YKHO): Vo9x = yp3N() YKHO.assertTrue(Vo9x == Vo9x)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def up4I(YKHO):\n jzdc = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n Fg_i = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n YKHO.assertTrue(jzdc == Fg_i)\n YKHO.assertTrue(Fg_i == jzdc)", "def whu6(YKHO):\n pass", "def up4I(YKHO):\n jzdc = Gtel(hashing_algorithm=YK...
[ "0.70277303", "0.7000732", "0.6937103", "0.69115734", "0.6715484", "0.6583001", "0.65158", "0.64747053", "0.6401378", "0.63911974", "0.63908947", "0.63757825", "0.6372717", "0.6349561", "0.63456315", "0.6318303", "0.63091224", "0.6306089", "0.63023496", "0.63023496", "0.63023...
0.81553316
0
Test that inequality can be applied to a CryptographicObject.
def vdIi(YKHO): Vo9x = yp3N() YKHO.assertFalse(Vo9x != Vo9x)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HgjI(YKHO):\n FAmx = SoA4(1, 2, 3)\n YKHO.assertFalse(FAmx == iCFA(1, 2, 3, 4))\n YKHO.assertFalse(iCFA(1, 2, 3, 4) == FAmx)\n YKHO.assertTrue(FAmx != iCFA(1, 2, 3, 4))\n YKHO.assertTrue(iCFA(1, 2, 3, 4) != FAmx)", "def Ef6G(YKHO):\n jzdc = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataTyp...
[ "0.742624", "0.6941938", "0.69069123", "0.6877963", "0.682012", "0.6778467", "0.6776792", "0.67317206", "0.67226475", "0.6694408", "0.6687443", "0.6663873", "0.6629442", "0.6616907", "0.6570672", "0.6500002", "0.64829564", "0.64600354", "0.6404219", "0.638736", "0.6380576", ...
0.7311332
1
Sets the document_name of this ChosenDocumentType.
def dgIl(YKHO, dgIl): YKHO._document_name = dgIl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def goSK(YKHO, dgIl):\n YKHO.set_value_into_input_field(YKHO.document_name_locator, dgIl)", "def cWFH(YKHO, A97Q, mWFP):\n if not YKHO.doc_name_set:\n A97Q.name = mWFP\n YKHO.doc_name_set = True\n return True\n else:\n raise NIWX('Document::Name')", "def wkjW(YKHO, GtII):\n...
[ "0.7608966", "0.7119806", "0.6907448", "0.6275231", "0.61224365", "0.60764116", "0.60740906", "0.6050477", "0.6050477", "0.6031782", "0.60283804", "0.60193926", "0.60193926", "0.6008418", "0.6008418", "0.6008418", "0.6008418", "0.6008418", "0.6008284", "0.6008284", "0.6003224...
0.78492844
2
Sets the id of this ChosenDocumentType.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.__id = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._id = id", "def id...
[ "0.7058556", "0.6967648", "0.68639857", "0.6828551", "0.6828551", "0.6828551", "0.6828551", "0.6828551", "0.682071", "0.67935646" ]
0.0
-1
Sets the rfid_presence of this ChosenDocumentType.
def xnZk(YKHO, xnZk): YKHO._rfid_presence = xnZk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w8TK(YKHO, w8TK):\n YKHO._presence = w8TK", "def qgXp(YKHO):\n if YKHO.config.presence_model == 'permanent':\n YKHO.thin.presence = 'true'", "def oUAx(YKHO, w8TK):\n if YKHO.presence == w8TK:\n return True\n YKHO.get('SetPresenceV4', w8TK)\n geh0 = YKHO.send()\n Wxnj = YKHO....
[ "0.5314175", "0.5028032", "0.49593645", "0.4727353", "0.47209975", "0.4646469", "0.45388153", "0.45100293", "0.42970642", "0.42603353", "0.4236324", "0.42108715", "0.4207196", "0.4190377", "0.41543576", "0.41386065", "0.41164532", "0.41000557", "0.41000557", "0.40790913", "0....
0.75943595
0
Sets the fdsid_list of this ChosenDocumentType.
def Bj__(YKHO, Bj__): YKHO._fdsid_list = Bj__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GFjJ(YKHO, BWXx):\n return YKHO._set(detectLists=BWXx)", "def FY6p(YKHO, list):\n if list is None:\n WVQ5 = None\n else:\n WVQ5 = list._o\n L3iJ.xmlSetListDoc(WVQ5, YKHO._o)", "def Luvh(YKHO, Luvh):\n YKHO._selected_field_list = Luvh", "def FY6p(YKHO, A97Q):\n if A97Q is N...
[ "0.56980526", "0.5551058", "0.54733735", "0.53912944", "0.5286996", "0.52688754", "0.5115367", "0.5089448", "0.50852895", "0.5081734", "0.49569732", "0.49525592", "0.49525592", "0.49468395", "0.4934902", "0.4926602", "0.4910837", "0.48342586", "0.47735143", "0.47699958", "0.4...
0.79506814
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, wccr): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, wccr): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Converts 1d array to column vector
def XNol(WKvO): WKvO.shape = (1, WKvO.shape[0]) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JXX1(qw7D):\n return qw7D.reshape(-1, 1)", "def pywP(WKvO):\n WKvO = oyIN.atleast_1d(WKvO)\n return WKvO[:, None]", "def dtSL(WKvO):\n assert WKvO.ndim == 1\n return oLG2.expand_dims(WKvO, 1)", "def rzzK(qw7D):\n if qw7D.ndim != 1:\n raise ValueError('Array must be 1D')\n or8S...
[ "0.84671545", "0.80300206", "0.802524", "0.78122807", "0.709527", "0.6899797", "0.68092006", "0.6793547", "0.6788081", "0.6731769", "0.6491291", "0.64874524", "0.6401601", "0.6398951", "0.6381212", "0.63568366", "0.63144624", "0.6229336", "0.61914265", "0.61914265", "0.619142...
0.66716987
10
Generate a random string of fixed length
def TJC9(FVpJ=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def e7Tf(u54L):\n return ''.join((tuKI...
[ "0.8680464", "0.8573714", "0.85486245", "0.85297275", "0.85209286", "0.84331024", "0.8432044", "0.84157014", "0.84120053", "0.8389201", "0.8345882", "0.8343962", "0.83406156", "0.83348686", "0.83240855", "0.82986933", "0.82911193", "0.8281826", "0.82818025", "0.82811046", "0....
0.7761017
100
Converts vector of counts at each index to vector of indices.
def y13T(BWz1): Aofo = [] for YRbF, Z9rn in enumerate(BWz1): Aofo.append(VNqG(Z9rn, int) + YRbF) return MPiJ(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CuXq(input: torch.LongTensor) -> ht2j.LongTensor:\n return ht2j.repeat_interleave(ht2j.arange(input.size(0), device=input.device), input).long()", "def kfiC(xU3n):\n BWz1 = oyIN.zeros(xU3n.shape)\n for d6pt in xU3n:\n BWz1[d6pt] += 1\n return BWz1", "def K2GP(BWz1):\n return oyIN.hsta...
[ "0.70062447", "0.6942687", "0.6853809", "0.6773348", "0.66999876", "0.6447943", "0.63133955", "0.62436694", "0.61927336", "0.60750073", "0.60216826", "0.5999534", "0.59808105", "0.5980244", "0.59706396", "0.5962303", "0.596185", "0.5930667", "0.59017885", "0.5896326", "0.5878...
0.5845072
22
Converts vector of indices to counts of each index.
def BWz1(_0VL, Aofo=None): if Aofo is None: JCoA = _0VL.max() Aofo = VNqG(JCoA + 1) for YRbF in _0VL: Aofo[YRbF] += 1 return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kfiC(xU3n):\n BWz1 = oyIN.zeros(xU3n.shape)\n for d6pt in xU3n:\n BWz1[d6pt] += 1\n return BWz1", "def nLBp(wspz, Pyrc=16):\n BWz1 = oyIN.zeros((Pyrc, Pyrc))\n _0VL, J1c0 = oyIN.unique(wspz, return_counts=True, axis=0)\n _0VL = _0VL.astype(oyIN.int32)\n BWz1[_0VL[:, 0], _0VL[:, 1]...
[ "0.7217822", "0.6457897", "0.62358946", "0.6053968", "0.6019362", "0.59868187", "0.59312683", "0.5871194", "0.58578587", "0.5823663", "0.58084357", "0.5793666", "0.57912624", "0.5722364", "0.5703025", "0.5688481", "0.5682981", "0.5623394", "0.5623394", "0.5621437", "0.5618436...
0.70142394
1
Fraction of the sample that belongs to the most abundant species. Berger & Parker 1970, by way of SDRIV online help.
def WUro(BWz1): return BWz1.max() / float(BWz1.sum())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xokx(CHNM):\n return oyIN.average(oyIN.var(CHNM, axis=0))\n return oyIN.average(oyIN.std(CHNM, axis=0))\n return oyIN.average(oyIN.std(CHNM, axis=0) / ((YKHO.benchmarks.bound[1] - YKHO.benchmarks.bound[0]) / 2))", "def qCWK(YKHO):\n try:\n PtQX = max(YKHO.sample[YKHO.sample['masked'] == Fa...
[ "0.60289633", "0.5989476", "0.5975571", "0.5967715", "0.59288865", "0.5899165", "0.587771", "0.5860618", "0.58529943", "0.5844538", "0.5821821", "0.58162725", "0.5781736", "0.57713294", "0.5771269", "0.57666487", "0.57447904", "0.57414854", "0.5739806", "0.571243", "0.5705989...
0.64891404
0
Returns a JSON representing an error response.
def _Azh(Ol8d): return qQXR.dumps({'success': False, 'error': Ol8d})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sVBQ(Ol8d):\n return GtGV(isError=True, message=Ol8d)", "def ZO1g(P1dF, jGRS=400):\n geh0 = {'status': 'failed', 'error': P1dF}\n return zs78(geh0, status=400)", "def oKIV(tO9_: str) -> oGir:\n return pz3A({'success': False, 'error': tO9_})", "def LbBU(lYY4):\n return oGir(qQXR.dumps({'err...
[ "0.81485987", "0.80329454", "0.7923255", "0.7875635", "0.77363646", "0.77231735", "0.7710547", "0.7688032", "0.7618342", "0.7608276", "0.7570327", "0.75567764", "0.7543568", "0.7543568", "0.75201184", "0.7507895", "0.7481006", "0.74513465", "0.7448628", "0.7448276", "0.743086...
0.75457
12
Returns the path to run_isolated.py.
def ednp(YKHO): return YKHO.m.swarming_client.path.join('run_isolated.py')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FDL9(YKHO, Ux0P):\n return Hy7s.path.join(Hy7s.path.dirname(tq_1.getfile(HwRy._getframe(0))), Ux0P)", "def OyQC() -> str:\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))", "def VjV0():\n if hasattr(HwRy, 'frozen'):\n return Hy7s.path.dirname(HwRy.executable)\n else:\n return ...
[ "0.6935143", "0.6634698", "0.6447546", "0.637952", "0.63567185", "0.6326805", "0.6305902", "0.62329495", "0.6213217", "0.62101316", "0.6174481", "0.6167914", "0.6167573", "0.61457425", "0.60513157", "0.60503757", "0.60503757", "0.60492474", "0.6014892", "0.5995597", "0.597467...
0.90655893
0
return the utc string date in iso format without ms and TZ info
def l84F(YKHO): if YKHO.last_update: return YKHO.last_update.replace(microsecond=0, tzinfo=None).isoformat(' ') else: return 'Never updated'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tbVX(WdQ3):\n return WdQ3.isoformat()", "def Jv5M(YKHO, a1PO=None):\n if a1PO is None:\n a1PO = ITS7.time()\n jmHs = ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.localtime(a1PO))\n return jmHs", "def zzLp():\n h25_ = FXGE.UTC.localize(qcWV.datetime.utcnow())\n Xr02 = h25_.astimezone(uEV...
[ "0.77768815", "0.734065", "0.7176053", "0.71295995", "0.7072434", "0.7065012", "0.697127", "0.6892826", "0.68764484", "0.68615615", "0.68114245", "0.67730445", "0.67437345", "0.67238325", "0.669914", "0.6639058", "0.6627206", "0.66264224", "0.66180646", "0.6614407", "0.661400...
0.0
-1
return the utc string date in iso format without ms and TZ info
def BQPM(YKHO): if YKHO.cached_until: return YKHO.cached_until.replace(microsecond=0, tzinfo=None).isoformat(' ') else: return 'Unknown'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tbVX(WdQ3):\n return WdQ3.isoformat()", "def Jv5M(YKHO, a1PO=None):\n if a1PO is None:\n a1PO = ITS7.time()\n jmHs = ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.localtime(a1PO))\n return jmHs", "def zzLp():\n h25_ = FXGE.UTC.localize(qcWV.datetime.utcnow())\n Xr02 = h25_.astimezone(uEV...
[ "0.77775896", "0.73394394", "0.7175259", "0.71285397", "0.7073385", "0.70638937", "0.6970549", "0.68919635", "0.6874189", "0.68614024", "0.6812121", "0.6773667", "0.6742701", "0.67238003", "0.6698596", "0.6638403", "0.66287684", "0.6626727", "0.6616427", "0.66128683", "0.6611...
0.0
-1
Read json file relative to script path.
def CQ2n(YKHO, Ux0P): pmON = Hy7s.path.join(YKHO.script_path, Ux0P) try: with open(pmON) as nUeQ: return qQXR.load(nUeQ) except Exception as exception: print('Error parsing {}: {}'.format(pmON, str(AJ5d))) raise
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nwr9(pmON):\n with open(pmON) as wM3v:\n nPrm = qQXR.load(wM3v)\n return nPrm", "def PSj2(pmON):\n with open(pmON, 'r') as eHNT:\n return qQXR.load(eHNT)", "def Ueki(YKHO, VqRE, pGQh=None):\n try:\n with open(VqRE) as U50w:\n try:\n YKHO.json_dict ...
[ "0.7193864", "0.71574455", "0.7150226", "0.7128024", "0.7105681", "0.7038684", "0.7029771", "0.6983457", "0.69627136", "0.69555044", "0.6941781", "0.69336987", "0.6904255", "0.6896164", "0.687199", "0.6868762", "0.68459815", "0.6845667", "0.683009", "0.6828687", "0.68019944",...
0.75991535
0
Parse GL enum groups from XML.
def DT6r(YKHO): for tk5Y in YKHO.roots: for uOe2 in tk5Y.iter('group'): IXKo = uOe2.attrib.get('name', '') for qQ1Y in uOe2.iter('enum'): JxjF = qQ1Y.attrib.get('name', '') YKHO.group_to_enum_list[IXKo].append(JxjF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def btPJ(YKHO):\n for tk5Y in YKHO.roots:\n for aVkO in tk5Y.iter('enums'):\n jVHv = aVkO.attrib.get('group', '')\n UeG8 = aVkO.attrib.get('type', '')\n for qQ1Y in aVkO.iter('enum'):\n depL = qQ1Y.attrib['value']\n iid8 = gnPz.to_int(depL)\n...
[ "0.7044662", "0.5964326", "0.57122314", "0.5444964", "0.5001799", "0.49394402", "0.4927513", "0.4870068", "0.48300183", "0.48243234", "0.47604328", "0.47599226", "0.47426096", "0.47366259", "0.471619", "0.46546304", "0.46531627", "0.4631822", "0.46300843", "0.45849836", "0.45...
0.7929369
0
Add extra enums from EXTRA_ENUM_GROUPS.
def Lxkk(YKHO): for IXKo, uOe2 in Ys0o.items(): YKHO.used_enum_groups.add(IXKo) for qQ1Y in uOe2: YKHO.enum_list.append(qQ1Y) YKHO.group_to_enum_list[IXKo].append(qQ1Y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp_l(YKHO, FBy1):\n FBy1 = BfDw.listify(FBy1)\n for qQ1Y in FBy1:\n assert qQ1Y.name not in YKHO.enum_names, \"Enum with name '%s' is already present in '%s' bitfield!\" % (qQ1Y.name, YKHO.name)\n assert qQ1Y.value not in [qQ1Y.value for qQ1Y in YKHO], \"Enum with value '%d' is already pres...
[ "0.60970837", "0.586385", "0.5818526", "0.5816311", "0.5656249", "0.5406399", "0.5288602", "0.5239192", "0.5084099", "0.5069505", "0.5035586", "0.49236628", "0.49122676", "0.48666975", "0.48183146", "0.48031887", "0.4772997", "0.47669992", "0.4762568", "0.47582892", "0.475153...
0.8954793
0
Initializes variables for power dispatch for a given component and a given attribute.
def c7qo(exwG, uuEx, Z9rn, hkS8): if exwG.df(Z9rn).empty: return WZHJ = kUBb(exwG, Z9rn, uuEx) if exwG._multi_invest else None jNOo = [uuEx, exwG.df(Z9rn).index.rename(Z9rn)] exwG.model.add_variables(coords=jNOo, name=f'{Z9rn}-{hkS8}', mask=WZHJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, **B2fa):\n hFLg.__init__(YKHO, **B2fa)\n YKHO._stores = None\n YKHO._rate = None\n YKHO._initial_stored = None", "def FIMM(YKHO, azoT=None):\n YKHO.coil_combine_method = 'Siemens'\n YKHO.fids_to_average = 1\n YKHO.fid_left_shift = 0\n YKHO.gaussian_apodization = 2.0\n YK...
[ "0.6074827", "0.6015167", "0.59197325", "0.57863986", "0.5695947", "0.56740654", "0.55710286", "0.55388874", "0.55057156", "0.5490808", "0.5426918", "0.5426918", "0.5419718", "0.54162085", "0.53841", "0.53569806", "0.5339485", "0.53356683", "0.53163534", "0.53155214", "0.5315...
0.0
-1
Initializes variables for transmission losses.
def Gbw5(exwG, uuEx, Z9rn): if exwG.df(Z9rn).empty or Z9rn not in exwG.passive_branch_components: return WZHJ = kUBb(exwG, Z9rn, uuEx) if exwG._multi_invest else None jNOo = [uuEx, exwG.df(Z9rn).index.rename(Z9rn)] exwG.model.add_variables(0, coords=jNOo, name=f'{Z9rn}-loss', mask=WZHJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RnSz(YKHO):\n pass", "def RptN(YKHO):\n YKHO.state_changes_send_channel, YKHO.state_changes_receive_channel = lkEY.open_memory_channel(epAf.inf)\n YKHO._nursery = YKHO._nursery_manager = None", "def FIMM(YKHO):\n YKHO.__bus_dict = None\n YKHO.__passengers_dict = None\n YKHO.__global_messa...
[ "0.6990381", "0.65155005", "0.6514332", "0.6489483", "0.64660823", "0.6431584", "0.6427531", "0.6426392", "0.64237666", "0.6390504", "0.6359539", "0.630417", "0.63037413", "0.62936133", "0.62639964", "0.6252833", "0.62203383", "0.618838", "0.6177667", "0.61327124", "0.6112981...
0.0
-1
Using different Callbacks (definite in Callbacks.py) the learning rate schedule is set
def NVeZ(ztmt, hZjj): if ztmt.mode == 'poly': WvaV = W3pv(maxEpochs=ztmt.StepSize, initAlpha=ztmt.Lr, power=ztmt.factor) WvaV.plot(range(1, int(hZjj) + 1)) fqnS = WTXF(WvaV) elif ztmt.mode == 'cycle': fqnS = EEkO(step_size=ztmt.StepSize, mode=ztmt.cycle, gamma=ztmt.factor, base_l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P2oQ(Ep8u, X4Tl):\n gFjK = 5e-05\n hSVy = 1.25e-05 * X4Tl * Ep8u\n OtMv = 1e-05\n Btx4 = 5\n _sX_ = 5\n Qh2O = 0.8\n\n def nNhW(qtWj):\n if qtWj < Btx4:\n tspZ = (hSVy - gFjK) / Btx4 * qtWj + gFjK\n elif qtWj < Btx4 + _sX_:\n tspZ = hSVy\n else:\n...
[ "0.71758395", "0.70044523", "0.69092435", "0.6824272", "0.6791794", "0.6772398", "0.6727645", "0.6712389", "0.6682246", "0.6662408", "0.6649355", "0.6633659", "0.65613574", "0.65611106", "0.65438145", "0.6481285", "0.647498", "0.6471419", "0.6469883", "0.64695793", "0.6454348...
0.0
-1
our model has two convolution layers. Each convolution layer has a maxpooling layer. The second convolution layer has dropout applied to it. This method adds these two layers.
def hf54(YKHO): with ZylS.variable_scope('conv_layer_1'): a5X0 = ZylS.get_variable('filter1', dtype=ZylS.float32, shape=[YKHO.filter_size_1, YKHO.word_embeddings.shape[2], YKHO.out_channels_1]) cLlc = ZylS.nn.conv1d(YKHO.word_embeddings, filters=a5X0, stride=YKHO.strides_1, padding='SAME') c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V27X(WXL3, Z4uM=None, KSY_=1, dXu1=2, wiVd=2, dvgN='SAME', TSUJ=1, YDYE=AJea, hjCI=False, wDQ7=uJH4, YzyX=2, yN41=2, vVZz=2):\n ywwl, Nq1b, C7Ls, XcU5 = Z4uM.shape\n yzQ0 = nu0F(shape=(KSY_, Nq1b, dXu1, wiVd), transpose=False, nInputs=dXu1 * wiVd * Nq1b)\n Fg_i = nu0F(shape=(1, KSY_, 1, 1), transpose=...
[ "0.75036395", "0.716524", "0.70740813", "0.700538", "0.69718426", "0.6829985", "0.6760686", "0.67580193", "0.66849434", "0.666091", "0.6629891", "0.6619081", "0.6610454", "0.6590837", "0.6577832", "0.65343153", "0.652373", "0.6512504", "0.6510821", "0.6478652", "0.6471495", ...
0.75744385
0
Convert string to float, but also handles None and 'null'.
def jhGN(wEf2): if wEf2 is None: return None if str(wEf2) == 'null': return None return float(wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gBe3(KCHu):\n try:\n return float(KCHu)\n except TypeError:\n return None", "def fqum(KCHu):\n try:\n eHNT = float(KCHu)\n return eHNT\n except ValueError:\n return None", "def mTSZ(str):\n if not str:\n return None\n try:\n return float(st...
[ "0.85086167", "0.82970667", "0.8255398", "0.8055475", "0.8009049", "0.79424113", "0.7822859", "0.77312434", "0.7701687", "0.76599395", "0.7586672", "0.75611866", "0.7515104", "0.7503652", "0.7430676", "0.7361605", "0.73383075", "0.73019737", "0.7297088", "0.72904354", "0.7270...
0.7970725
5
Returns nodes as list
def AyQV(YKHO, BaUO=False, M4N3=False, ME9i=False, MHlX=False, nVUq=True, TzmZ=True, KRsL=False, mhAC=True, XdI7=True): eEku = [] RiZc = [] if mhAC: RiZc.append('normal') if XdI7: RiZc.append('appbase') if M4N3: RiZc.append('appbase-dev') if ME9i: RiZc.append('tes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vTxU(YKHO):\n return []", "def vTxU(YKHO):\n return [[Q6kx] for Q6kx in YKHO.graph.nodes]", "def eK7y(YKHO):\n Ziit = []\n Q6kx = YKHO.first_node\n while Q6kx:\n Ziit.append(Q6kx)\n Q6kx = Q6kx.next\n return Ziit", "def Ziit(YKHO):\n return [exwG for exwG in YKHO.iterno...
[ "0.8621583", "0.8409404", "0.83789057", "0.82941365", "0.82659495", "0.8037672", "0.80138576", "0.8001828", "0.8001828", "0.7922903", "0.78064555", "0.77212715", "0.7720067", "0.7720067", "0.771063", "0.7703488", "0.76930636", "0.7689961", "0.767528", "0.76691437", "0.7654724...
0.0
-1
setUp and tearDown are run for teach test
def FCbF(YKHO): YKHO.input_csv = Hy7s.path.join(Hy7s.path.dirname(xAKo), '___valid_input.csv') with open(YKHO.input_csv, 'wb') as SfKK: SfKK.write('\nGSE59813,GSM1446812;\nGSE61491,GSM1506106; GSM1506107;\n') wvEv = sTFi.get_parser() YKHO.temp_outdir = gbPf.mkdtemp() YKHO.options1 = wvEv.par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def F...
[ "0.8489375", "0.84717464", "0.84206253", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", "0.8416925", ...
0.0
-1
The year with the highest gross per movie
def kGg2(): jth9 = sV3k.copy() jth9['Gross Per Movie'] = jth9['Total Gross'] / jth9['Number of Movies'] lO87 = jth9.sort_values(['Gross Per Movie'], ascending=False).reset_index(drop=True).Year.loc[0] return ('highest_per_movie', lO87)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KUfj():\n jth9 = sV3k.copy()\n lO87 = jth9.sort_values(['Number of Movies', 'Year']).reset_index(drop=True).Year.loc[0]\n return ('yr_fewest_movies', lO87)", "def zSBx(nPrm: pd.DataFrame):\n nPrm['review_year'] = rLdf.to_datetime(nPrm['review_time'], unit='s').dt.year\n _tri = nPrm[['review_ov...
[ "0.73288196", "0.6960721", "0.6787786", "0.65035117", "0.6462938", "0.64448607", "0.6261294", "0.62173045", "0.6203082", "0.6161109", "0.6153471", "0.61173403", "0.60902816", "0.59842336", "0.59685653", "0.59647983", "0.5944049", "0.58445615", "0.5809048", "0.5784561", "0.575...
0.8599459
0
shoot the opponents fleet. It must be called alternatively for each of the player until anyone of Players fleet is completely destroyed.
def CZxB(YKHO, qv1X): BH3N = FYrf.BattleShip.getByUrlKey(qv1X.url_key) return BH3N.shoot(str(qv1X.player), str(qv1X.y) + str(qv1X.x - 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qXxR(YKHO, mpcx):\n rDY3 = list()\n FQV0 = list()\n pu3G = list()\n yV1s = list()\n for _epf in YKHO.heroes:\n if _epf.is_alive():\n rDY3.append(_epf)\n else:\n FQV0.append(_epf)\n for _epf in mpcx.heroes:\n if _epf.is_alive():\n pu3G.appe...
[ "0.6563822", "0.6430784", "0.63496816", "0.6174137", "0.61626023", "0.591999", "0.58899945", "0.58292824", "0.5810707", "0.58024395", "0.57633525", "0.57399064", "0.5736279", "0.57277113", "0.57236326", "0.569527", "0.5688177", "0.5667987", "0.5648462", "0.5639927", "0.561889...
0.5480669
47
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: yT1k = await ajET.config_entries.async_unload_platforms(bTKY, aprE) if yT1k: ajET.data[Sugg].pop(bTKY.entry_id) if not ajET.data[Sugg]: ajET.data.pop(Sugg) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k", "async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True", "async def async_unload_entry(ajET: HomeAssis...
[ "0.69729054", "0.688811", "0.6779906", "0.67475253", "0.6689114", "0.6657885", "0.66162664", "0.6603484", "0.65926456", "0.65596145", "0.6541213", "0.65076923", "0.65076923", "0.65076923", "0.65076923", "0.6497813", "0.6493226", "0.6486651", "0.6486651", "0.6486651", "0.64866...
0.6459737
30
add a new transition to the buffer
def H2v5(YKHO, _Jrn, XeOP, vOGg, VRgd, _ins): nPrm = (_Jrn, XeOP, vOGg, VRgd, _ins) if YKHO._next_idx >= len(YKHO._storage): YKHO._storage.append(nPrm) nvIL = None else: nvIL = YKHO._storage[YKHO._next_idx] YKHO._storage[YKHO._next_idx] = nPrm YKHO._next_idx = (YKHO._next...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OnZY(YKHO, OZkM):\n YKHO.buffer.append(OZkM)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.transition(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.buffer.append(tTpl)", "def H2v5(YKHO, OZkM: Tuple[np.ndarray, ...]) -> AzJI[ImMB, ...]:\n YKHO.n_step_buffer.append(OZkM)\n if len(YKHO....
[ "0.77596265", "0.7419274", "0.7304988", "0.7234456", "0.70836526", "0.70348704", "0.6973781", "0.68939126", "0.6768309", "0.6743578", "0.67420524", "0.6680733", "0.6604713", "0.65684104", "0.65420747", "0.6486401", "0.64780766", "0.6453972", "0.6449315", "0.6435826", "0.64216...
0.0
-1
add a new transition to the buffer
def H2v5(YKHO, _Jrn, XeOP, vOGg, VRgd, _ins): nPrm = (_Jrn, XeOP, vOGg, VRgd, _ins) Ey19 = tuKI.uniform(0, 1) if len(YKHO._storage) < YKHO._maxsize: _eVy.heappush(YKHO._storage, (Ey19, nPrm)) elif Ey19 > YKHO._storage[0][0]: _eVy.heapreplace(YKHO._storage, (Ey19, nPrm))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OnZY(YKHO, OZkM):\n YKHO.buffer.append(OZkM)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.transition(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.buffer.append(tTpl)", "def H2v5(YKHO, OZkM: Tuple[np.ndarray, ...]) -> AzJI[ImMB, ...]:\n YKHO.n_step_buffer.append(OZkM)\n if len(YKHO....
[ "0.77596265", "0.7419274", "0.7304988", "0.7234456", "0.70836526", "0.70348704", "0.6973781", "0.68939126", "0.6768309", "0.6743578", "0.67420524", "0.6680733", "0.6604713", "0.65684104", "0.65420747", "0.6486401", "0.64780766", "0.6453972", "0.6449315", "0.6435826", "0.64216...
0.0
-1
add a new transition to the both the fifo buffer and the reservoir buffer
def H2v5(YKHO, _Jrn, XeOP, vOGg, VRgd, _ins): if tuKI.uniform(0, 1) < YKHO.fifo_frac: YKHO.fifo_buffer.add(_Jrn, XeOP, vOGg, VRgd, _ins) else: YKHO.reservoir_buffer.add(_Jrn, XeOP, vOGg, VRgd, _ins)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, OZkM):\n XdF2 = w8ot(OZkM)\n for ZfUD in XdF2:\n YKHO.deque.append(ZfUD)", "def _jXH(YKHO, QTBn, XeOP, vOGg, rxHc):\n A9IP = [QTBn, XeOP, vOGg, rxHc]\n if len(YKHO.buffer) < YKHO.capacity:\n YKHO.buffer.append(None)\n YKHO.buffer[YKHO.position] = YKHO.transition(*A9IP)...
[ "0.67815495", "0.63464403", "0.6254327", "0.6234603", "0.6219062", "0.6214096", "0.6165611", "0.6128896", "0.6062362", "0.6031492", "0.5985832", "0.5909655", "0.5871509", "0.58675724", "0.5848985", "0.5817101", "0.57786167", "0.5777641", "0.57725704", "0.5690952", "0.5657907"...
0.7009381
0
add a new transition to the buffer
def H2v5(YKHO, _Jrn, XeOP, vOGg, VRgd, _ins): YKHO.count += 1 nPrm = (_Jrn, XeOP, vOGg, VRgd, _ins) YsFi = YKHO.buffers[0].add(*nPrm) for YRbF in range(1, YKHO.num_buffers): if YsFi == None: break if tuKI.uniform(0, 1) < YKHO.beta: YsFi = YKHO.buffers[YRbF].add(*Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OnZY(YKHO, OZkM):\n YKHO.buffer.append(OZkM)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.transition(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.buffer.append(tTpl)", "def H2v5(YKHO, OZkM: Tuple[np.ndarray, ...]) -> AzJI[ImMB, ...]:\n YKHO.n_step_buffer.append(OZkM)\n if len(YKHO....
[ "0.77588046", "0.7417499", "0.7302822", "0.7235182", "0.70817834", "0.7034866", "0.6974339", "0.68909377", "0.6765151", "0.6743873", "0.67414343", "0.66774404", "0.6604543", "0.6566156", "0.65441024", "0.64920175", "0.64779884", "0.6450471", "0.64482915", "0.64394164", "0.642...
0.0
-1
Create an empty trie.
def _csl(): ZOCz = etby() return ZOCz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _csl():\n from trie import Trie\n trie = Trie()\n return trie", "def whF1(_csl):\n assert _csl.root.children == {}\n assert _csl._size == 0", "def _Cha():\n ZOCz = etby()\n ZOCz.insert('hey')\n return ZOCz", "def FIMM(YKHO):\n YKHO.root = YKHO.TrieNode(None)", "def FIMM(YKHO)...
[ "0.8230706", "0.77392805", "0.7571804", "0.7424975", "0.73735195", "0.73735195", "0.73731816", "0.7307245", "0.72377187", "0.72262377", "0.71787477", "0.71580553", "0.7147745", "0.7142353", "0.71349156", "0.7131655", "0.7104453", "0.70892656", "0.70892656", "0.7070404", "0.70...
0.8391781
0
Create a full trie.
def _Cha(): ZOCz = etby() ZOCz.insert('hey') return ZOCz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _csl():\n ZOCz = etby()\n return ZOCz", "def euxn():\n from trie import Trie\n trie = Trie()\n trie.insert('bbbbbbb')\n trie.insert('bbb')\n trie.insert('lololololol')\n trie.insert('blololololol')\n return trie", "def _csl():\n from trie import Trie\n trie = Trie()\n re...
[ "0.7345377", "0.7323961", "0.72654074", "0.7221503", "0.6984365", "0.69774294", "0.69678795", "0.69590634", "0.6928978", "0.69205683", "0.69065535", "0.6885359", "0.6880337", "0.68720824", "0.68720824", "0.6832441", "0.6823224", "0.678609", "0.678609", "0.6743208", "0.6743208...
0.8118928
0
Test that you can create an empty trie.
def whF1(_csl): assert _csl.root.children == {} assert _csl._size == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _csl():\n ZOCz = etby()\n return ZOCz", "def _csl():\n from trie import Trie\n trie = Trie()\n return trie", "def bAqF():\n Q6kx = ep_x('h')\n assert Q6kx.value == 'h'\n assert Q6kx.children == {}", "def Ds3h():\n from trie import Node\n Pcn2 = Node()\n assert Pcn2.lookup...
[ "0.8196012", "0.81215835", "0.7809496", "0.7806996", "0.7718164", "0.7661335", "0.76395416", "0.75668114", "0.7549761", "0.7478465", "0.74649847", "0.74351084", "0.7414301", "0.7110109", "0.70072746", "0.696736", "0.69252527", "0.6917356", "0.69077295", "0.690067", "0.6895206...
0.8903007
0
Test that when you insert multiple words, the trie still works.
def XyGq(BDyC): assert BDyC.root.value is None assert 'o' in BDyC.root.children['h'].children.keys() assert 'e' in BDyC.root.children['h'].children.keys() assert 'y' and 'a' and ('l' in BDyC.root.children['h'].children['e'].children.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhvJ(_csl):\n _csl.insert('hey')\n assert _csl.size() == 1\n _csl.insert('hey')\n assert _csl.size() == 1", "def BZKX(_csl):\n _csl.insert('tool')\n _csl.remove('tool')\n assert _csl.contains('tool') is False", "def GpIT(_csl):\n _csl.insert('hello')\n _csl.insert('hello')\n a...
[ "0.78128386", "0.7326783", "0.7305232", "0.7227274", "0.72166604", "0.716746", "0.7124758", "0.70827895", "0.70675117", "0.7049298", "0.7036254", "0.70179945", "0.70084196", "0.69779724", "0.6969451", "0.69656616", "0.6959996", "0.6925087", "0.6915204", "0.69134575", "0.69095...
0.8502558
0
Test that insertion increases size with each node inserted.
def tp6k(_csl): _csl.insert('hey') assert _csl.size() == 1 _csl.insert('howdy') assert _csl.size() == 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bIJP(YKHO):\n mLGw = ajWY(60, 180)\n for YRbF in Ni9Y(mLGw):\n YKHO.s.insert(YRbF, None)\n YKHO.assertEqual(len(YKHO.s), mLGw)\n for YRbF in Ni9Y(mLGw):\n YKHO.s.insert(YRbF, None)\n YKHO.assertEqual(len(YKHO.s), mLGw)", "def R3RU(h0WW):\n h0WW.insert(6)\n assert h0WW.size(...
[ "0.74245894", "0.71504813", "0.7029587", "0.70265055", "0.6992194", "0.6916814", "0.689764", "0.6787405", "0.6659674", "0.66059434", "0.6590055", "0.65652645", "0.6536741", "0.65361303", "0.6497826", "0.6451675", "0.6374883", "0.6321842", "0.6312503", "0.6301499", "0.6282635"...
0.7106342
2
Test that you can remove a word and that word won't be in the trie.
def HTrR(BDyC): BDyC.remove('hello') assert BDyC.contains('hello') is False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BZKX(_csl):\n _csl.insert('tool')\n _csl.remove('tool')\n assert _csl.contains('tool') is False", "def x17p(BDyC):\n BDyC.remove('howdy')\n assert BDyC.contains('howdy') is False", "def cIaj(BDyC):\n BDyC.remove('howdy')\n assert BDyC.contains('hey') is True\n assert BDyC.contains('...
[ "0.8512736", "0.8271751", "0.8259157", "0.8206236", "0.78804654", "0.76772517", "0.74268067", "0.72782165", "0.71668535", "0.7012277", "0.68166244", "0.6758799", "0.6728426", "0.6699965", "0.6677232", "0.6676111", "0.6620871", "0.6579341", "0.65625083", "0.65607697", "0.64602...
0.82719713
1
Test that removing word with one bifurcation retains all other words.
def cIaj(BDyC): BDyC.remove('howdy') assert BDyC.contains('hey') is True assert BDyC.contains('hell') is True assert BDyC.contains('head') is True assert BDyC.contains('hello') is True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x17p(BDyC):\n BDyC.remove('howdy')\n assert BDyC.contains('howdy') is False", "def HTrR(BDyC):\n BDyC.remove('hello')\n assert BDyC.contains('hello') is False", "def z3UJ(BDyC):\n BDyC.remove('hell')\n assert BDyC.contains('hello') is True", "def mC0K(BDyC):\n BDyC.remove('hello')\n ...
[ "0.78765565", "0.72120506", "0.71086216", "0.685957", "0.66471756", "0.6390764", "0.6375158", "0.6331255", "0.63140166", "0.62521094", "0.6237919", "0.6228175", "0.6215612", "0.62028766", "0.61736137", "0.6172887", "0.6151073", "0.6109139", "0.6108014", "0.60991704", "0.60633...
0.79645926
0
Test that removing word that is part of a bigger word keeps big word.
def z3UJ(BDyC): BDyC.remove('hell') assert BDyC.contains('hello') is True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HTrR(BDyC):\n BDyC.remove('hello')\n assert BDyC.contains('hello') is False", "def mC0K(BDyC):\n BDyC.remove('hello')\n assert BDyC.contains('hey') is True\n assert BDyC.contains('hell') is True\n assert BDyC.contains('head') is True\n assert BDyC.contains('howdy') is True", "def cIaj(...
[ "0.7699288", "0.74591786", "0.7172749", "0.70858705", "0.6341019", "0.63058686", "0.62904996", "0.62871593", "0.6181052", "0.6054642", "0.60476005", "0.60089946", "0.59900707", "0.5944911", "0.5939216", "0.59132385", "0.5873297", "0.58701956", "0.5841264", "0.5839522", "0.580...
0.7688585
1
Test that traversal returns the whole trie when input is none or ' '.
def ZaDz(_Cha): assert list(_Cha.traversal()) == ['h', 'e', 'y'] assert list(_Cha.traversal('')) == ['h', 'e', 'y']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vei5(_Cha):\n _Cha.insert('hi')\n assert list(_Cha.traversal()) == ['h', 'e', 'y', 'i']\n assert list(_Cha.traversal('')) == ['h', 'e', 'y', 'i']", "def mvJv(_csl):\n assert list(_csl.traversal('hello')) == []", "def N4pc(_Cha):\n _Cha.insert('yo')\n assert list(_Cha.traversal('yo')) == [...
[ "0.7997135", "0.7956378", "0.7870996", "0.7620597", "0.75617135", "0.7302723", "0.71616876", "0.7155028", "0.7000671", "0.6965663", "0.6832685", "0.6703443", "0.6486497", "0.63177407", "0.6237987", "0.6213727", "0.61209595", "0.6057515", "0.605426", "0.60443014", "0.59543633"...
0.8201932
0
Test that traversal returns the whole trie when input is none or ' '.
def Vei5(_Cha): _Cha.insert('hi') assert list(_Cha.traversal()) == ['h', 'e', 'y', 'i'] assert list(_Cha.traversal('')) == ['h', 'e', 'y', 'i']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZaDz(_Cha):\n assert list(_Cha.traversal()) == ['h', 'e', 'y']\n assert list(_Cha.traversal('')) == ['h', 'e', 'y']", "def mvJv(_csl):\n assert list(_csl.traversal('hello')) == []", "def N4pc(_Cha):\n _Cha.insert('yo')\n assert list(_Cha.traversal('yo')) == []", "def o_b7(_Cha):\n asser...
[ "0.8202242", "0.7956839", "0.78706455", "0.76216495", "0.7562557", "0.7303095", "0.71636105", "0.7154459", "0.7002342", "0.69665736", "0.6833847", "0.67055494", "0.6487328", "0.63187987", "0.62359667", "0.62122196", "0.6120545", "0.60560375", "0.60528696", "0.6042741", "0.595...
0.7995527
1
Test that traversal returns nothing when input not in trie.
def pGAy(_Cha): assert list(_Cha.traversal('goodbye')) == []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def apYS(_csl):\n assert list(_csl.traversal()) == []", "def ZaDz(_Cha):\n assert list(_Cha.traversal()) == ['h', 'e', 'y']\n assert list(_Cha.traversal('')) == ['h', 'e', 'y']", "def mvJv(_csl):\n assert list(_csl.traversal('hello')) == []", "def Vei5(_Cha):\n _Cha.insert('hi')\n assert li...
[ "0.82014567", "0.8136907", "0.8132053", "0.7901772", "0.7807976", "0.7613533", "0.70074373", "0.6970098", "0.69277984", "0.68465346", "0.67914116", "0.6720323", "0.6664457", "0.6645412", "0.64837307", "0.6469199", "0.6448756", "0.6416063", "0.63846356", "0.6330381", "0.632434...
0.83601534
0
Test that traversal returns nothing when input == trie.
def o_b7(_Cha): assert list(_Cha.traversal('hey')) == []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pGAy(_Cha):\n assert list(_Cha.traversal('goodbye')) == []", "def ZaDz(_Cha):\n assert list(_Cha.traversal()) == ['h', 'e', 'y']\n assert list(_Cha.traversal('')) == ['h', 'e', 'y']", "def apYS(_csl):\n assert list(_csl.traversal()) == []", "def mvJv(_csl):\n assert list(_csl.traversal('he...
[ "0.8135248", "0.81053925", "0.80623966", "0.8009447", "0.7888802", "0.773793", "0.69882035", "0.693434", "0.68291754", "0.6728551", "0.6675065", "0.6645052", "0.6616828", "0.66139615", "0.64770585", "0.6409748", "0.63685673", "0.63551277", "0.6338793", "0.6289575", "0.6187775...
0.7471661
6
Test that traversal returns nothing when inserted input == trie.
def N4pc(_Cha): _Cha.insert('yo') assert list(_Cha.traversal('yo')) == []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vei5(_Cha):\n _Cha.insert('hi')\n assert list(_Cha.traversal()) == ['h', 'e', 'y', 'i']\n assert list(_Cha.traversal('')) == ['h', 'e', 'y', 'i']", "def pGAy(_Cha):\n assert list(_Cha.traversal('goodbye')) == []", "def apYS(_csl):\n assert list(_csl.traversal()) == []", "def mvJv(_csl):\n ...
[ "0.8233737", "0.79376614", "0.7906238", "0.780261", "0.777091", "0.7287093", "0.7258237", "0.7051923", "0.70194066", "0.69169176", "0.68171924", "0.6779414", "0.6718962", "0.6641939", "0.66342", "0.6467831", "0.64510965", "0.6434683", "0.6410059", "0.63895553", "0.63777006", ...
0.7898561
3
Color the node given its name.
def kSX7(Q6kx): p_z1 = fIK_() if p_z1 is not None: p_z1.colorNodeByName(Q6kx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UTLf(Q6kx):\n p_z1 = fIK_()\n if p_z1 is not None:\n p_z1.colorNode(Q6kx)", "def PICn(YKHO, Q6kx: Node) -> str:\n or8S = hash(Q6kx.get_kind_name()) % len(YKHO.colors_)\n return YKHO.colors_[or8S]", "def qfpW(mWFP):\n if mWFP not in Jw9H:\n raise ValueError('Bad color %s' % repr...
[ "0.7009091", "0.6522462", "0.6135791", "0.6123377", "0.6052353", "0.60097086", "0.5960722", "0.5885916", "0.58801985", "0.5791643", "0.57668203", "0.5743497", "0.5723728", "0.56933814", "0.5658884", "0.56463313", "0.5640387", "0.56351495", "0.56206757", "0.56176895", "0.56033...
0.7916316
0
Returns the total input size for this stage. This is only valid if the stage read data from a shuffle.
def Hdid(YKHO): JCIQ = sum([a1PO.remote_mb_read + a1PO.local_mb_read for a1PO in YKHO.tasks if a1PO.has_fetch]) JCIQ += sum([a1PO.input_mb for a1PO in YKHO.tasks]) return JCIQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zi3C(YKHO):\n return YKHO.env.input_size", "def TwHh(YKHO):\n return YKHO.embedding_size + YKHO.hidden_size", "def sECo(YKHO):\n return YKHO.nmos_size + YKHO.pmos_size", "def zNig(YKHO) -> h8nf[qe4Y.Input[float]]:\n return qe4Y.get(YKHO, 'size')", "def zi3C(YKHO) -> int:\n return YKHO._c...
[ "0.7427888", "0.7346966", "0.7344351", "0.7286139", "0.6996515", "0.6978404", "0.6962194", "0.69052255", "0.6842657", "0.6775047", "0.67652845", "0.67310387", "0.67310387", "0.67310387", "0.67274904", "0.67274904", "0.67157096", "0.671562", "0.6676925", "0.6651551", "0.665155...
0.0
-1
Returns the total output size for this stage. This is only valid if the output data was written for a shuffle.
def SEIJ(YKHO): g8v2 = sum([a1PO.shuffle_mb_written for a1PO in YKHO.tasks]) return g8v2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a6Jb(YKHO):\n return YKHO._output_size", "def a6Jb(YKHO):\n return YKHO._output_size", "def a6Jb(YKHO) -> int:\n return YKHO.out_sz", "def zNig(YKHO) -> qe4Y.Output[float]:\n return qe4Y.get(YKHO, 'size')", "def a6Jb(YKHO) -> int:\n return YKHO.output_dim", "def a6Jb(YKHO) -> int:\n ...
[ "0.7927941", "0.7927941", "0.771634", "0.7508722", "0.73909295", "0.72043544", "0.71275866", "0.6960922", "0.68636453", "0.6811561", "0.6773658", "0.6736633", "0.6709694", "0.66865265", "0.66707903", "0.6636977", "0.6636902", "0.6633736", "0.66218823", "0.6611975", "0.6557108...
0.8025761
0
Excludes any questions that aren't published yet.
def k66M(YKHO): return Y4Gy.objects.filter(pub_date__lte=rIAI.now())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n WlEx = Y4Gy.objects.filter(pub_date__lte=rIAI.now()).order_by('-pub_date')\n j28w = []\n for bAls in WlEx:\n if not bAls.choice_set.all().exists():\n j28w.append(bAls.id)\n return Y4Gy.objects.exclude(pk__in=j28w).filter(pub_date__lte=rIAI.now()).order_by('-pub_date'...
[ "0.6604021", "0.64446515", "0.6220697", "0.61680806", "0.61680806", "0.6099354", "0.6098479", "0.6081178", "0.6053914", "0.6050758", "0.59694785", "0.58919686", "0.58919686", "0.5888636", "0.5880843", "0.586779", "0.586779", "0.586779", "0.586779", "0.58673334", "0.5855172", ...
0.6209108
17
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def AOzf(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + nMvt.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '...
[ "0.7603752", "0.74474216", "0.7404044", "0.7280462", "0.7208341", "0.7164908", "0.7156751", "0.7130874", "0.71000224", "0.70961666", "0.70961666", "0.70961666", "0.70961666", "0.70961666", "0.70961666", "0.70961666", "0.70961666", "0.70961666", "0.70961666", "0.70961666", "0....
0.71443284
11
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def rhd_(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + nMvt.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU...
[ "0.74913025", "0.728889", "0.71595335", "0.7153832", "0.70662045", "0.6985961", "0.69664735", "0.69553095", "0.69133496", "0.68336445", "0.6818772", "0.6810098", "0.6786243", "0.6758142", "0.6758142", "0.6758142", "0.6758142", "0.6758142", "0.6758142", "0.6758142", "0.6758142...
0.68056715
14
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, qtWj): tspZ = qIxc.lr * 0.1 ** (qtWj // 30) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW", "def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L...
[ "0.79133433", "0.7907211", "0.7850508", "0.77755034", "0.7734465", "0.773158", "0.77232176", "0.7722336", "0.7719667", "0.7709295", "0.7693627", "0.76746327", "0.7665828", "0.7665828", "0.7665828", "0.7655531", "0.76423776", "0.76399475", "0.76379395", "0.76263064", "0.762507...
0.7580111
32
Remove stopwords and short words in texts in dataframe.
def cE4S(jQ3Z: pd.DataFrame, mlBN: str, di0c: Set[str], f8xD: int=3, kl5h: Optional[str]=None) -> rLdf.DataFrame: Rtcu = kl5h if kl5h is not None else mlBN jQ3Z[Rtcu] = jQ3Z[mlBN].apply(lambda l5Ny: ' '.join([GIN8 for GIN8 in l5Ny.split() if GIN8 not in di0c and len(GIN8) >= f8xD])) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXd6(jQ3Z):\n hwHU = ljiF['stopwords']\n jQ3Z['Without Stop Words'] = [' '.join([yzQ0 for yzQ0 in WKvO.lower().split() if yzQ0 not in hwHU]) for WKvO in jQ3Z['Tweets'].tolist()]\n Aofo = []\n jtyf = jQ3Z['Without Stop Words']\n for Mau6 in jtyf:\n Aofo.append(Mau6.split(' '))\n jQ3Z['W...
[ "0.79382974", "0.779954", "0.7680476", "0.76698786", "0.75832784", "0.7465699", "0.74531347", "0.72681636", "0.7264841", "0.723588", "0.7232364", "0.7166481", "0.71566296", "0.71369493", "0.7102331", "0.70946115", "0.7076461", "0.70419604", "0.70407236", "0.7025877", "0.70067...
0.79211307
1
Tokenize texts in dataframe.
def wr3U(jQ3Z: pd.DataFrame, mlBN: str, kl5h: str) -> rLdf.DataFrame: jQ3Z[kl5h] = jQ3Z[mlBN].apply(lambda iVRZ: ' '.join(D2u9(iVRZ, pattern='[\\s,.?!-:]+', gaps=True, discard_empty=True))) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(YKHO, jQ3Z: DataFrame, CDpb='text') -> hxoQ:\n z_aV = jQ3Z[CDpb]\n if YKHO.to_lower:\n z_aV = z_aV.apply(lambda l5Ny: l5Ny.lower())\n if YKHO.use_remove_punctuation:\n z_aV = z_aV.apply(lambda l5Ny: YKHO.remove_punctuation(l5Ny))\n jQ3Z['tokenized'] = z_aV.apply(lambda l5Ny: Dhdw...
[ "0.8168444", "0.79196864", "0.7657709", "0.73905814", "0.7212765", "0.7106539", "0.69510406", "0.693064", "0.68750554", "0.6835091", "0.6777537", "0.6768172", "0.67266744", "0.6695436", "0.667505", "0.6672369", "0.6656933", "0.6645189", "0.6590776", "0.6545479", "0.6533771", ...
0.75830597
3
helper attribute holding the standard test's data directory
def lCFC(Emd4): VlDb = HwRy.modules[Emd4.__module__] return BKva.join(BKva.dirname(BKva.abspath(VlDb.__file__)), 'data')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WLhE(YKHO):\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'data')", "def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'test', 'data')", "def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(D40k), 'test', 'data')", "def KExq():\n if apzJ.__calculated_dir_tes...
[ "0.8822668", "0.8480116", "0.8457253", "0.833946", "0.8126946", "0.8036975", "0.76918036", "0.7639481", "0.759455", "0.7580266", "0.75658065", "0.755238", "0.75303316", "0.7491178", "0.74830043", "0.7448365", "0.7444769", "0.7439788", "0.74315155", "0.74315155", "0.73500437",...
0.66180074
62
Allow a user to create a post
def CgNh(QePW): QpfX = K1Ja(QePW) if QePW.method == 'POST': L03z = L39s(QePW.POST, QePW.FILES) if L03z.is_valid(): L03z.save(commit=True) return vKnz(YPpA) else: L03z.errors L03z = L39s() return SGJU('blog/add_post.html', {'form': L03z}, QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ywL1(QePW):\n L03z = L39s(QePW.POST or None, QePW.FILES or None)\n if QePW.POST:\n if L03z.is_valid():\n KAOR = L03z.save(commit=False)\n KAOR.user = QePW.user\n KAOR.save()\n yEHD.success(QePW, 'Post created!')\n return Yd7Q(KAOR.get_absolute...
[ "0.77995807", "0.7707933", "0.76975834", "0.7584286", "0.748422", "0.74766344", "0.73922265", "0.7341689", "0.7336625", "0.7246598", "0.7205509", "0.7186319", "0.71615034", "0.71256626", "0.71069914", "0.7081613", "0.708097", "0.707806", "0.7077477", "0.7068825", "0.7066965",...
0.0
-1
Sets the xbrl_member of this CompanySharesOutstanding.
def Co5M(YKHO, Co5M): YKHO._xbrl_member = Co5M
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sDAN(YKHO, sDAN: object):\n YKHO._member_of = sDAN", "def FIMM(YKHO, jfT8=None, Co5M=None, oX7_=None, BnKX=None, Jr5E=None, d6Ds=None):\n YKHO._xbrl_axis = None\n YKHO._xbrl_member = None\n YKHO._title_of_security = None\n YKHO._trading_symbol = None\n YKHO._security_exchange_name = None\n ...
[ "0.5315446", "0.51163673", "0.50208473", "0.50178456", "0.496713", "0.48989674", "0.48514822", "0.48340034", "0.47946647", "0.47856298", "0.47497913", "0.47355002", "0.46961203", "0.46472278", "0.4643359", "0.4636568", "0.4612313", "0.46051726", "0.4583095", "0.45823118", "0....
0.7606827
0
Sets the title_of_security of this CompanySharesOutstanding.
def oX7_(YKHO, oX7_): YKHO._title_of_security = oX7_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TCmq(YKHO, TCmq):\n YKHO._authority_title = TCmq", "def h24y(YKHO, leAC):\n pass", "def xCyn(YKHO, leAC):\n YKHO.__title__ = leAC", "def xCyn(YKHO, leAC):\n YKHO._title = leAC", "def GYWE(YKHO, leAC):\n YKHO.__title = leAC", "def GYWE(YKHO, leAC):\n YKHO.__title = leAC", "def h24y...
[ "0.5582221", "0.553276", "0.5464426", "0.5426828", "0.5364334", "0.5364334", "0.53603905", "0.53464526", "0.53207034", "0.5317882", "0.53055894", "0.53044", "0.52914065", "0.52898365", "0.52885693", "0.52819943", "0.525425", "0.52389425", "0.52101356", "0.5170192", "0.5170192...
0.7989265
0
Sets the security_exchange_name of this CompanySharesOutstanding.
def Jr5E(YKHO, Jr5E): YKHO._security_exchange_name = Jr5E
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, BuWd):\n gTEQ('PrlShare_SetName', YKHO.handle, BuWd)", "def yHdk(YKHO, dQgO):\n YKHO.exchange = dQgO", "def y1r7(YKHO, y1r7):\n YKHO._payee_name = y1r7", "def yHdk(YKHO, dQgO):\n YKHO.pair.exchange = dQgO", "def FH16(YKHO, FH16):\n YKHO._committee_name = FH16", "def dQgO(YKH...
[ "0.59554976", "0.5699564", "0.5614428", "0.5570126", "0.54785377", "0.54163843", "0.53968006", "0.5334684", "0.5306025", "0.52800035", "0.52709365", "0.52241266", "0.51730824", "0.5159486", "0.51339614", "0.5122424", "0.51099145", "0.51099145", "0.51099145", "0.51099145", "0....
0.8049971
0
Sets the shares_outstanding of this CompanySharesOutstanding.
def d6Ds(YKHO, d6Ds): YKHO._shares_outstanding = d6Ds
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NXxt(YKHO, BWXx):\n YKHO.company_founded = BWXx", "def WFvW(YKHO):\n YKHO.nb_shares = YKHO.shares.count()\n YKHO.save()", "def sAUL(YKHO, sAUL):\n YKHO._fee_xtra_shares = sAUL", "def gbFR(YKHO, gbFR):\n if gbFR is None:\n raise ValueError('Invalid value for `manage_stock`, must not ...
[ "0.5172161", "0.5170245", "0.5081828", "0.49156207", "0.48746184", "0.48356825", "0.47940323", "0.4700569", "0.4609945", "0.45945835", "0.45829228", "0.45697272", "0.45413285", "0.45300502", "0.4512692", "0.45067695", "0.44998428", "0.44998428", "0.44998428", "0.44998428", "0...
0.845648
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, ctsL): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
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 if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.84560555", "0.83913696", "0.8143685", "0.81403786", "0.8131871", "0.8093231", "0.80915105", "0.80915105", "0.80915105", "0.8084564", "0.8084564", "0.8075547", "0.8075547", "0.8065006" ]
0.0
-1
part 1 of the common header for all webout html files
def NdRg(_RR0: TextIO, leAC: str, zJ1M: str='') -> None: _RR0.write('<!DOCTYPE HTML>\n') _RR0.write('<html lang="en">\n') _RR0.write(' <head>\n') _RR0.write(' <!-- Google tag (gtag.js) -->\n') _RR0.write(' <script async src="https://www.googletagmanager.com/gtag/js?id=G-94FNMMTWTQ"></script>\n') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LYlj(_RR0: TextIO, leAC: str, zJ1M: str='') -> None:\n NdRg(_RR0, leAC, indexpath=zJ1M)\n YVdH(_RR0, indexpath=zJ1M)", "def YVdH(_RR0: TextIO, zJ1M: str='', SdFl: bool=False) -> None:\n _RR0.write(' </head>\\n')\n _RR0.write('\\n')\n if SdFl:\n _RR0.write(' <body onload=\"initialize()...
[ "0.7310548", "0.72130895", "0.669063", "0.65561694", "0.6554252", "0.6477935", "0.629995", "0.624201", "0.62418926", "0.6185418", "0.61781824", "0.61258537", "0.6102721", "0.6068492", "0.6064652", "0.6023097", "0.588838", "0.58609045", "0.5840573", "0.5813871", "0.5789944", ...
0.72125494
2
part 2 of the common header for all webout html files
def YVdH(_RR0: TextIO, zJ1M: str='', SdFl: bool=False) -> None: _RR0.write(' </head>\n') _RR0.write('\n') if SdFl: _RR0.write(' <body onload="initialize()">\n') else: _RR0.write(' <body>\n') _RR0.write(' <div id="skip-links" role="complementary" aria-label="Skip links menu">') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LYlj(_RR0: TextIO, leAC: str, zJ1M: str='') -> None:\n NdRg(_RR0, leAC, indexpath=zJ1M)\n YVdH(_RR0, indexpath=zJ1M)", "def NdRg(_RR0: TextIO, leAC: str, zJ1M: str='') -> None:\n _RR0.write('<!DOCTYPE HTML>\\n')\n _RR0.write('<html lang=\"en\">\\n')\n _RR0.write(' <head>\\n')\n _RR0.write(...
[ "0.7142896", "0.71233875", "0.65526456", "0.65062773", "0.6347267", "0.62525314", "0.6225593", "0.6224267", "0.6071082", "0.60600173", "0.6051541", "0.5979848", "0.59549737", "0.59207064", "0.5842377", "0.5831878", "0.5824586", "0.5821843", "0.58054024", "0.5798344", "0.57776...
0.7155209
0
create a blank index.html file for webout directories to prevent browsers from listing containing files
def G_nS(IznC: str) -> None: with open(IznC, 'w') as _RR0: _RR0.write('<!DOCTYPE HTML>\n') _RR0.write('<html lang="en">\n') _RR0.write(' <head>\n') _RR0.write(' <meta charset="utf-8" />\n') _RR0.write(' <title>n/a</title>\n') _RR0.write(' <meta name="descrip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lblk(AeXe: str) -> None:\n if not Hy7s.path.exists(sQtD + AeXe):\n Hy7s.makedirs(sQtD + AeXe)\n G_nS(sQtD + AeXe + 'index.html')", "def q1Kg(YKHO):\n return open(Hy7s.path.join(YKHO.staticdir, 'index.html'))", "def tk5Y():\n return cs4A('../web/dist', 'index.html')", "def d6pt(YKHO):\n...
[ "0.743672", "0.69597656", "0.6934943", "0.68823487", "0.6802986", "0.6786042", "0.6658209", "0.6650924", "0.66362566", "0.6534041", "0.65273935", "0.65232056", "0.6492514", "0.6484433", "0.6479414", "0.6467111", "0.6467111", "0.64238346", "0.64203584", "0.6406822", "0.6402359...
0.66454756
8
function to clean up names so that variation such as punctuation does not prevent a match
def SREd(WKvO: str) -> str: WKvO = WKvO.replace(', var.', ' var.') if '{' in WKvO: WKvO = WKvO[:WKvO.find('{') - 1] return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SREd(KCHu):\n return ZbWC.sub('[\\\\W_]+', '', KCHu).lower()", "def rXSE(mWFP):\n mWFP = mWFP.lower()\n mWFP = mWFP.replace('.', '')\n mWFP = mWFP.replace('-', '')\n mWFP = mWFP.replace(\"'\", '')\n return mWFP", "def lZes(mWFP, LSh8=False):\n if CwDs.isna(mWFP):\n return None\n...
[ "0.7899415", "0.77751094", "0.77683455", "0.7733023", "0.7707101", "0.7527052", "0.7518962", "0.74160117", "0.7342701", "0.7309317", "0.728663", "0.7268865", "0.720183", "0.71331203", "0.7132378", "0.7074982", "0.7074801", "0.7074801", "0.7074801", "0.7031685", "0.7011743", ...
0.0
-1
Constructor. Initializes the internal key value to None.
def FIMM(YKHO, BWXx, z0q4=None, GTA_=None): if not z0q4 and isinstance(BWXx, SnBA.StringTypes) and (BWXx[0] in OUTc) and (BWXx.find(lwle) > 0): GTA_, z0q4, BWXx = YKHO.__parse_key(BWXx) elif z0q4.find('.') > 0: GTA_, z0q4 = z0q4.split('.') if not GTA_ or not z0q4: raise Noc2.ProofImp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._key = ''", "def FIMM(YKHO, H5ew=None):\n YKHO.key = H5ew", "def FIMM(Ro_8, *, H5ew: Optional[pulumi.Input[str]]=None, BWXx: Optional[pulumi.Input[str]]=None):\n if H5ew is not None:\n qe4Y.set(Ro_8, 'key', H5ew)\n if BWXx is not None:\n qe4Y.set(Ro_8, 'value', ...
[ "0.79701024", "0.7719548", "0.74980706", "0.7438545", "0.73498017", "0.733619", "0.7226178", "0.7217992", "0.7135386", "0.7135386", "0.7135386", "0.7135386", "0.7135386", "0.7135386", "0.7135386", "0.7135386", "0.7135386", "0.7135386", "0.7135386", "0.7135386", "0.7135386", ...
0.0
-1
String representation of the key. Each Key is represented by [type U][full_column]|[value].
def zAg0(YKHO): gjwY = YKHO.__guess_key_type() return '%s%s%s%s' % (gjwY, YKHO.getFullyQualifiedName(), lwle, YKHO.__key)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H5ew(YKHO) -> str:\n return '{}:{}.{}.{}'.format(YKHO.source, YKHO.db, YKHO.ed, YKHO.rec)", "def hiYX(YKHO, H5ew: Any) -> ImMB:\n if isinstance(H5ew, str):\n return H5ew\n if isinstance(H5ew, int):\n return list(YKHO._data_vars.keys())[H5ew]\n if isinstance(H5ew, slice):\n KC...
[ "0.7185751", "0.70761335", "0.7045239", "0.7011694", "0.7011694", "0.7009207", "0.69607264", "0.69163334", "0.68640375", "0.67905277", "0.6774116", "0.67433316", "0.673338", "0.669495", "0.669495", "0.6680772", "0.6667989", "0.660078", "0.65877926", "0.6544538", "0.65388435",...
0.80834216
0
The supercategories where this category is a member of any set of children. Note that all possible parents are returned, not "canonical" parents.
def ACnF(YKHO) -> set['HierarchicalCategory']: return YKHO.categorization.parents(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZlq(YKHO) -> set['HierarchicalCategory']:\n return YKHO.categorization.ancestors(YKHO)", "def afYC(YKHO) -> list[set['HierarchicalCategory']]:\n return YKHO.categorization.children(YKHO)", "def S9jH(YKHO) -> list[set['HierarchicalCategory']]:\n U5bT = []\n for afYC in YKHO.children:\n e...
[ "0.7293767", "0.72403806", "0.7221767", "0.7165426", "0.71166617", "0.6867782", "0.68392456", "0.6794149", "0.6618477", "0.6576405", "0.63923216", "0.633744", "0.6326134", "0.6319682", "0.62995994", "0.62809247", "0.6263329", "0.6213591", "0.6159876", "0.6127407", "0.610811",...
0.75217533
0
The sets of subcategories which are descendants of this category and do not have children themselves. Sets of children are chased separately, so each set of leaf children is selfsufficient to reconstruct this category (if the categorization allows reconstructing categories from their children, i.e. if total_sum is set)...
def S9jH(YKHO) -> list[set['HierarchicalCategory']]: U5bT = [] for afYC in YKHO.children: exwG = [] for aUGN in afYC: if aUGN.is_leaf: exwG.append([{aUGN}]) else: exwG.append(aUGN.leaf_children) U5bT += [set(Hs6x.chain(*WKvO)) for W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B5QF(YKHO) -> set['HierarchicalCategory']:\n return YKHO.categorization.descendants(YKHO)", "def afYC(YKHO) -> list[set['HierarchicalCategory']]:\n return YKHO.categorization.children(YKHO)", "def afYC(YKHO, ACia: typing.Union[str, HierarchicalCategory]) -> list[set[aiTn]]:\n if not isinstance(ACi...
[ "0.755007", "0.7032662", "0.69125843", "0.68902165", "0.6748703", "0.6741472", "0.66047186", "0.65718263", "0.6462812", "0.6384042", "0.63346934", "0.62835926", "0.6266729", "0.62290126", "0.6151169", "0.6140242", "0.6133421", "0.61323303", "0.6128564", "0.6061589", "0.605872...
0.74580395
1
The list of sets of direct children of the given category.
def afYC(YKHO, ACia: typing.Union[str, HierarchicalCategory]) -> list[set[aiTn]]: if not isinstance(ACia, aiTn): return YKHO.children(YKHO._all_codes_map[ACia]) sLdP = {} for bGrB, aUGN, BSpm in YKHO._graph.edges(ACia, 'set'): if BSpm not in sLdP: sLdP[BSpm] = [] sLdP[BSp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def afYC(YKHO) -> list[set['HierarchicalCategory']]:\n return YKHO.categorization.children(YKHO)", "def S9jH(YKHO, ACia: typing.Union[str, HierarchicalCategory]) -> list[set[aiTn]]:\n if not isinstance(ACia, aiTn):\n return YKHO.leaf_children(YKHO._all_codes_map[ACia])\n return ACia.leaf_children...
[ "0.75516796", "0.7268226", "0.6969757", "0.69614905", "0.695906", "0.67972845", "0.67608833", "0.654496", "0.63985157", "0.6372887", "0.63548315", "0.6350083", "0.6341693", "0.63257265", "0.6309417", "0.6273869", "0.62576276", "0.62097853", "0.61735904", "0.61674654", "0.6155...
0.8111073
0
Create Categorization or HierarchicalCategorization from a dict specification.
def glAV(Cqok: dict[str, typing.Any]) -> hbbT: if Cqok['hierarchical']: return U25J.from_spec(Cqok) else: return BY6w.from_spec(Cqok)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def glAV(Emd4: type[CategorizationT], Cqok: dict[str, typing.Any]) -> hbbT:\n if Cqok['hierarchical'] != Emd4.hierarchical:\n raise ValueError('Specification is for a non-hierarchical categorization, useCategorization.from_spec.')\n cV9T = qcWV.date.fromisoformat(Cqok['last_update'])\n return Emd4(...
[ "0.6915147", "0.6858981", "0.59756553", "0.5657054", "0.56551516", "0.55090696", "0.5499468", "0.5492386", "0.54117054", "0.53619766", "0.5347223", "0.53456694", "0.5313046", "0.53052735", "0.5289592", "0.5287172", "0.5284914", "0.52793205", "0.5270843", "0.5218367", "0.52167...
0.80054176
0
drawing the bullet and rotating it according to it's launcher
def nICu(YKHO): YKHO.radius = GBVa.side YKHO.angle += YKHO.boss.turretAngle YKHO.mass = GBVa.mass YKHO.vel = GBVa.vel LNo8 = a9eO.Surface((GBVa.side * 2, GBVa.side)) LNo8.fill((128, 128, 128)) a9eO.draw.rect(LNo8, (252, 65, 3), (0, 0, int(GBVa.side * 1.5), GBVa.side)) a9eO.draw.circle(LN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izLs(YKHO):\n YKHO.screen.blit(YKHO.image, YKHO.rect)", "def izLs(YKHO):\n YKHO.screen.blit(YKHO.image, YKHO.rect)", "def izLs(YKHO):\n a9eO.draw.rect(YKHO.screen, YKHO.colour, YKHO.rect)", "def izLs(YKHO):\n a9eO.draw.rect(YKHO.screen, YKHO.color, YKHO.rect)", "def izLs(YKHO):\n a9eO.dr...
[ "0.7293251", "0.7293251", "0.7245552", "0.71505433", "0.70313513", "0.69465584", "0.6935661", "0.69219995", "0.69159174", "0.69101745", "0.68442506", "0.67508835", "0.66921884", "0.66921884", "0.6603616", "0.6542815", "0.6507938", "0.6466501", "0.64383036", "0.6425846", "0.63...
0.5990294
57
Get all channel items for this channel.
def nDBw(YKHO, peBr='', CLkC=True, bbS9=True): B2Dn = 1 WonH = 50 yLbl = YKHO.request_channel_items(B2Dn, show_linked=CLkC, show_unlinked=bbS9, show_on_page=WonH, keyword=peBr) DumB = yLbl while len(yLbl) == WonH: B2Dn += 1 yLbl = YKHO.request_channel_items(B2Dn, keyword=peBr, show_l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tzNJ(YKHO):\n return YKHO.api.state['items']", "def pi1E(YKHO):\n return YKHO.__items", "def pi1E(YKHO):\n return YKHO._items[:]", "def all(YKHO):\n return YKHO.client.request_with_method(SKS9.LIST % YKHO.name)['items']", "def SR9I(YKHO) -> iu5r['MChannel']:\n for N5z6 in YKHO.servers.va...
[ "0.68368477", "0.68236643", "0.6649051", "0.6626947", "0.6585407", "0.6561852", "0.6453671", "0.64034814", "0.63789743", "0.63749206", "0.63717353", "0.6338891", "0.6327982", "0.6313627", "0.6307755", "0.6301804", "0.6286068", "0.6266928", "0.6260479", "0.62567854", "0.624577...
0.5790154
56
returns True if at least one service of this Role is still running
def EaVh(YKHO): for zVa7 in YKHO.__services.values(): if zVa7.is_alive(): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g6Hj():\n return all(['RUNNING' in zFiD or 'EXITED' in zFiD for zFiD in M1Al()])", "def O71t(YKHO):\n return not YKHO.service_currently_down and (not YKHO.service_recently_down)", "def c50q(YKHO):\n return len(YKHO.party.active_users())", "def WTIh(YKHO):\n return YKHO in d8qC", "def ksfB(Y...
[ "0.7420898", "0.7197685", "0.71518683", "0.7028626", "0.69956684", "0.69136214", "0.6843473", "0.6761129", "0.6666567", "0.6664707", "0.6662684", "0.66441935", "0.6605911", "0.6594392", "0.6587816", "0.65838486", "0.65452635", "0.6543974", "0.6527387", "0.6509514", "0.6477596...
0.7972044
0
Fetches secrets from Datastore and returns them as a list.
def R3Vg(): x0hE = EVcG.Client() xDcj = x0hE.query(kind='env_vars') LEXu = xDcj.fetch() FXSn = list(LEXu)[0] return FXSn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def list_secrets(YKHO):\n pass", "def CgB5():\n t0pv = cFt1.get_secret_value(SecretId=VYHS)\n FXSn = qQXR.loads(t0pv['SecretString'])\n return FXSn", "def FXSn(YKHO):\n return []", "def FXSn(YKHO):\n return YKHO._secrets_store", "def FXSn(YKHO):\n return YKHO._secrets", "def zN...
[ "0.8086684", "0.7478185", "0.72897476", "0.7256536", "0.71578765", "0.70649576", "0.6729046", "0.6623931", "0.6564589", "0.655233", "0.6418088", "0.64006025", "0.63814545", "0.63044786", "0.6236014", "0.6230588", "0.6158977", "0.61266756", "0.6121772", "0.60114855", "0.600639...
0.73549074
2