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
Converts a string in scientific notation format to a float in regular format
def v2Y2(exwG): if 'e' in exwG: w520 = float(exwG[exwG.find('e') + 1:]) FGW3 = float(exwG[:exwG.find('-') - 1]) FGW3 *= 10 ** w520 return FGW3 return exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AjPn(YKHO, KCHu: str) -> float:\n return int(KCHu[:-1]) / 1000000000.0 if KCHu.endswith('n') else float(KCHu[:-1])", "def rKve(vIwR):\n if vIwR.strip() == '':\n return 0.0\n if '.' in vIwR:\n slrR = vIwR.split('.')\n return float(slrR[0] + '.' + slrR[1].replace('-', 'e-').replac...
[ "0.7992028", "0.7631141", "0.7486856", "0.74595267", "0.7453234", "0.74226296", "0.7370093", "0.7352414", "0.7284855", "0.7278769", "0.72506315", "0.7243346", "0.7219503", "0.7211098", "0.7196211", "0.719186", "0.7183101", "0.7158389", "0.71015143", "0.70598835", "0.6937231",...
0.7549512
2
Add a command prefix to a guild.
async def process_prefix_add_remove(lSCo: disnake.Guild, y0cW: str, OaeV: commands.Context=None, C7_8: AppCmdInter=None, PRPF=None, H2v5=False): await jWdI(lSCo) lSCo = await Ows6.get(lSCo.id) if H2v5: await lSCo.add_prefix(y0cW) tO9_ = f'{y0cW.lower()} has been added as a command prefix for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def prefix(YKHO, OaeV, y0cW):\n if y0cW.strip() == '':\n raise Bx6I.Warning('Prefix cannot be empty.')\n if y0cW.startswith(' '):\n raise Bx6I.Warning('Prefix cannot start with a space.')\n if len(y0cW) > 32:\n raise Bx6I.Warning('Prefix cannot be over 32 characters.')\n y0cW...
[ "0.7765609", "0.7438157", "0.7337754", "0.72621065", "0.71957946", "0.7084846", "0.7023182", "0.7022211", "0.6995119", "0.6882482", "0.68795705", "0.68495554", "0.68444985", "0.6843278", "0.683003", "0.6727373", "0.6712273", "0.6662263", "0.66496396", "0.64985317", "0.6413639...
0.7127585
5
Add a reaction role.
async def process_add_reaction_role(uJjO, JBZA, OaeV=None, C7_8=None, PRPF=None): CBIr = await mv1M.get(uJjO) LlEE = await rcBA(C7_8, ephemeral=True) tTee = oPjl.ui.View(timeout=None) tTee.add_item(gVAM(JBZA)) await WdaX(key='choose_roles', user=CBIr, view=tTee, ephemeral=True, response_deferred=LlE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def rolemenu_add_role(YKHO, rLs8: discord.Interaction, mWFP: str, LmAn: discord.Role, JUOb: str=None, JBZA: str=None):\n A97Q = await YKHO.db.find_one({'guild_id': rLs8.guild.id, 'name': mWFP})\n if not A97Q:\n return await rLs8.response.send_message('No role menu with that name exists.', epheme...
[ "0.74878365", "0.7185206", "0.7157245", "0.71171796", "0.70440525", "0.7006333", "0.6889938", "0.68790966", "0.6827275", "0.6738522", "0.67022955", "0.6666086", "0.6641454", "0.662785", "0.6625806", "0.66136146", "0.6613041", "0.66006094", "0.65936184", "0.6589437", "0.656451...
0.6762945
9
Read image using its path. Default value is grayscale, and image is read by YCbCr format as the paper said.
def cE34(pmON, E4ec=True): if E4ec: return Zxt2.misc.imread(pmON, flatten=True, mode='YCbCr').astype(oyIN.float) else: return Zxt2.misc.imread(pmON, mode='YCbCr').astype(oyIN.float)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cE34(pmON, E4ec=True):\n if E4ec:\n return Zxt2.misc.imread(pmON, flatten=True, mode='YCbCr').astype(oyIN.float)\n else:\n return Zxt2.misc.imread(pmON, mode='YCbCr').astype(oyIN.float)", "def cE34(pmON, E4ec=True):\n if E4ec:\n return Zxt2.misc.imread(pmON, flatten=True, mode='...
[ "0.778447", "0.77261835", "0.7638995", "0.75208247", "0.74676746", "0.74573797", "0.7367039", "0.722754", "0.721408", "0.72122663", "0.71996546", "0.7183188", "0.70761466", "0.7057287", "0.7026387", "0.70155853", "0.6943071", "0.6942862", "0.69331473", "0.689974", "0.6891293"...
0.7768587
1
Dynamically generate options for resource group form field based on the user's selection for Environment. This method requires the user to set the resource_group parameter as dependent on environment.
def qIis(o7hq=None, **B2fa): if o7hq is None: return [] sEAN = zAej.objects.get(id=o7hq) if oyBz: P2jf = sEAN.custom_field_options.filter(field__name='resource_group_arm') return [a9Hh.str_value for a9Hh in P2jf] else: uL0C = sEAN.resource_handler.cast() moMn = uL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m9NC(uOe2=None, **B2fa):\n QUTX = zAej.objects.filter(resource_handler__resource_technology__name='Google Cloud Platform').select_related('resource_handler')\n if uOe2:\n xjmt = [sEAN.id for sEAN in uOe2.get_available_environments()]\n QUTX = QUTX.filter(id__in=xjmt)\n return [(sEAN.id, ...
[ "0.6358487", "0.5937777", "0.55043066", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", "0.54691523", ...
0.6859024
0
Deserialize datetime object into string form for JSON processing.
def tOfJ(BWXx): if BWXx is None: return None return [BWXx.strftime('%Y-%m-%d'), BWXx.strftime('%H:%M:%S')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JW5R(YKHO, YEnM):\n if isinstance(YEnM, qcWV.datetime):\n return YEnM.isoformat()\n raise TypeError('Type not serializable')", "def LAQU(YEnM):\n if isinstance(YEnM, qcWV):\n Pt6R = YEnM.isoformat()\n return Pt6R\n raise TypeError('{} is not JSON serializable.'.format(YEnM))"...
[ "0.69946605", "0.69832784", "0.6899136", "0.6865027", "0.6813981", "0.6750276", "0.6649766", "0.6633779", "0.65959406", "0.6547565", "0.65440494", "0.6539357", "0.6486496", "0.6480947", "0.64407444", "0.63945824", "0.6365423", "0.63568634", "0.6337701", "0.6311433", "0.629324...
0.5694063
78
Check if the number is a valid VAT number.
def SGVO(FGW3): try: return bool(xzCw(FGW3)) except sUXu: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T5bl(YKHO, LgWg, QpfX=None):\n if QpfX is None:\n QpfX = {}\n if ZbWC.search('^[VJEGP][0-9]{9}$', LgWg):\n return True\n if ZbWC.search('^([VE][0-9]{1,8}|[D][0-9]{9})$', LgWg):\n return True\n return False", "def xzCw(FGW3):\n FGW3 = Xbam(FGW3)\n if not WI8G(FGW3):\n ...
[ "0.7379781", "0.6621894", "0.6477692", "0.63953686", "0.63700813", "0.62227714", "0.61494124", "0.6116051", "0.6068463", "0.6062278", "0.59390646", "0.59321815", "0.59058887", "0.5884056", "0.5859397", "0.5822421", "0.57948935", "0.57851166", "0.57792175", "0.57780504", "0.57...
0.5905346
18
Render website's home page.
def kZiy(): return TvZl('home.html', form=None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home_page.html')", "def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')", "def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')", "def C_QL():\n ...
[ "0.8724249", "0.85791856", "0.850329", "0.84860355", "0.84612614", "0.84362435", "0.8429879", "0.8419578", "0.8396612", "0.8396612", "0.8374868", "0.8356488", "0.8350785", "0.8340763", "0.8340763", "0.83374727", "0.83374727", "0.83374727", "0.83374727", "0.83374727", "0.83374...
0.766131
100
Render the website's about page.
def vsuQ(): return TvZl('about.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')", "def vsuQ():\n return TvZl...
[ "0.87910306", "0.8698105", "0.86404276", "0.86124563", "0.8490408", "0.84784615", "0.8467779", "0.84352976", "0.84289914", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242...
0.8325753
34
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def PYz4(geh0): geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1' geh0.headers['Cache-Control'] = 'public, max-age=0' return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0", "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0", "def PY...
[ "0.82239413", "0.8223081", "0.8223081", "0.8223081", "0.8223081", "0.8196386", "0.8113264", "0.8087198", "0.7973406", "0.7866322", "0.76620805", "0.7237988", "0.71606845", "0.7153763", "0.7153763", "0.7151734", "0.7151734", "0.714256", "0.7137825", "0.71290123", "0.71290123",...
0.8163827
24
Connect a datacenter to this endpoint. An endpoint can only be connected to a single datacenter.
def sdsa(YKHO, Bc4p): YKHO.compute.dc = Bc4p for cfQG in YKHO.openstack_endpoints.values(): cfQG.manage = YKHO.manage G9jH.info('Connected DC(%s) to API endpoint %s(%s:%d)' % (Bc4p.label, YKHO.__class__.__name__, YKHO.ip, YKHO.port))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NVIQ(YKHO, scOn):\n YKHO.manage.net = scOn\n YKHO.compute.nets[YKHO.manage.floating_network.id] = YKHO.manage.floating_network\n G9jH.info('Connected DCNetwork to API endpoint %s(%s:%d)' % (YKHO.__class__.__name__, YKHO.ip, YKHO.port))", "def Ykhp(YKHO, G1wx: str, LIAQ: list[str]=None, nMQK: str | N...
[ "0.68350774", "0.59132737", "0.5732963", "0.57322764", "0.57078254", "0.5706639", "0.5680314", "0.5666111", "0.5593733", "0.5567479", "0.5567184", "0.55639863", "0.55574876", "0.55011344", "0.5458151", "0.54542726", "0.54163355", "0.540785", "0.5394772", "0.53901094", "0.5384...
0.7805443
0
Creates a random string that contains numbers and letters. The size is a random number between 10 and 30
def SD1x(yokr: float): LvGM = str(vIwR.ascii_letters + vIwR.digits) tuKI.seed(yokr) exwG = tuKI.randint(10, 30) return ''.join(tuKI.sample(LvGM, exwG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mkg7(zNig, gLiZ=vIwR.ascii_uppercase + vIwR.digits):\n return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig)))", "def omrF(zNig):\n return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for WKvO in range(zNig)))", "def eHHU(YKHO, zNig, gLiZ=None):\n return ''.join((tuKI.choice(gLiZ or ...
[ "0.85948324", "0.8484244", "0.82903683", "0.82625693", "0.8126156", "0.80316836", "0.79779726", "0.7961973", "0.7956126", "0.79325324", "0.7896901", "0.786111", "0.7832646", "0.77807236", "0.7778246", "0.7766766", "0.77627265", "0.7751188", "0.7735884", "0.77282315", "0.77124...
0.0
-1
return True if |val| is a JSON primitive, False otherwise
def eQqy(wEf2): j0D9 = [int, float, str, bool] for x9nG in j0D9: if isinstance(wEf2, x9nG): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eowh(nPrm):\n try:\n qQXR.loads(nPrm)\n return True\n except ValueError:\n return False", "def eHEG(YKHO):\n return True if YKHO.json_field_type else False", "def bAkp(YKHO, input):\n try:\n qQXR.dumps(input)\n return True\n except (TypeError, OverflowError...
[ "0.7477848", "0.7366013", "0.71818185", "0.7161975", "0.71473515", "0.6835757", "0.6831207", "0.6791649", "0.6643828", "0.6610344", "0.659999", "0.6569066", "0.6519001", "0.64818954", "0.6448922", "0.6446701", "0.6365501", "0.63478434", "0.6347386", "0.6273909", "0.62731177",...
0.6882537
5
return True if |wildcard| string matches |s| string. A valid wildcard
def uhkt(KCHu, DwPX): DwPX = DwPX.strip() XYbJ = ZbWC.compile('\\*(:(?P<type>\\w+))?$') r8hN = XYbJ.match(DwPX) if r8hN: if r8hN.group('type'): Axt6 = globals()['__builtins__'] Axt6 = {G1Hx: Ty9i for G1Hx, Ty9i in Axt6.items() if G1Hx in ['str', 'int', 'float', 'bool']} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def An3h(YKHO, HlGW, vIwR):\n HlGW = ZbWC.sub('\\\\*+', '*', HlGW)\n kUBT = True\n if HlGW.count('*') == 0:\n if HlGW == vIwR:\n return True\n else:\n return False\n rmyT = HlGW.split('*')\n yKcO = ''\n Os4s = ''\n if not HlGW.startswith('*'):\n yKcO ...
[ "0.715021", "0.67261773", "0.6713398", "0.6707344", "0.6571823", "0.6482795", "0.6318864", "0.6266622", "0.623342", "0.6226286", "0.6225357", "0.61540484", "0.61485624", "0.6146087", "0.61196405", "0.59138566", "0.59130514", "0.5899484", "0.58328605", "0.5817263", "0.5811018"...
0.76775545
0
return True if dict |d| is in one of the dicts in |dicts|, False otherwise. |dicts| is obviously just a list of dictionaries. Legal elements in the dictionaries are the typical primitives (int, float, bool, str), lists, and dicts.
def nQcH(Csk6, fgcx): for Sw3p in fgcx: if hp1l._is_in_dict(Csk6, Sw3p): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tHkx(Csk6, N7pL):\n for G1Hx, Ty9i in Csk6.items():\n if G1Hx not in N7pL:\n return False\n elif hp1l._is_primitive(Ty9i):\n if not hp1l._is_in_prim(Ty9i, N7pL[G1Hx]):\n return False\n elif hp1l._is_list(Ty9i):\n if not hp1l._is_in_list(Ty...
[ "0.64084905", "0.60281664", "0.5984001", "0.5980985", "0.59457546", "0.5872692", "0.57876366", "0.57641065", "0.5747921", "0.57217395", "0.5614708", "0.5484641", "0.54599655", "0.53625906", "0.5358206", "0.5351264", "0.533104", "0.53166837", "0.5306886", "0.5287404", "0.52817...
0.8241347
0
return True if all elements in list |l| is in one of the lists contained in |valid_l|, False otherwise. Legal elements in the lists are the typical primitives (int, float, bool, str), lists, and dicts.
def MjwC(vC9B, bhAx): for LihS in vC9B: if hp1l._is_primitive(LihS): if not hp1l._is_in_prim(LihS, bhAx): return False elif hp1l._is_list(LihS): NyrG = [vC9B for vC9B in bhAx if isinstance(vC9B, list)] if not hp1l._is_sublist_in_one_of_lists(LihS, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgZG(vC9B, bhAx):\n if not hp1l._is_in_list(vC9B, bhAx):\n raise j6oP()", "def RV7P(zGwJ: Union[int, List[int]], F7Zb: Union[int, List[int]]) -> bool:\n if isinstance(zGwJ, int):\n zGwJ = [zGwJ]\n if isinstance(F7Zb, int):\n return F7Zb in zGwJ\n else:\n for ZfUD in F7...
[ "0.7000915", "0.6149883", "0.61312413", "0.6082698", "0.59904224", "0.5970148", "0.5934717", "0.5885762", "0.5882798", "0.5851436", "0.5785513", "0.5773051", "0.57016706", "0.5689442", "0.56725544", "0.5652237", "0.5626126", "0.56227636", "0.5618623", "0.56080157", "0.5601694...
0.7949676
0
return True if dict |d| has all keys in dict |valid_d|. False otherwise.
def zzMA(Csk6, N7pL): for G1Hx, Ty9i in N7pL.items(): if G1Hx not in Csk6: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tHkx(Csk6, N7pL):\n for G1Hx, Ty9i in Csk6.items():\n if G1Hx not in N7pL:\n return False\n elif hp1l._is_primitive(Ty9i):\n if not hp1l._is_in_prim(Ty9i, N7pL[G1Hx]):\n return False\n elif hp1l._is_list(Ty9i):\n if not hp1l._is_in_list(Ty...
[ "0.7827297", "0.680757", "0.66193026", "0.6566625", "0.6357033", "0.62774754", "0.6261642", "0.6259637", "0.6217635", "0.62153924", "0.6203975", "0.6185486", "0.6110884", "0.6004363", "0.5946864", "0.58883274", "0.57816666", "0.5731112", "0.5690174", "0.56880385", "0.56877536...
0.87729234
0
Test the `reverse` kwarg.
def Xb1w(YKHO): ix7N = [Ni9Y(4, 0, -1), Ni9Y(7, 0, -1), Ni9Y(3, 6, -1)] NaW5(sorted(Pusg(list.__add__, [list(WhY1) for WhY1 in ix7N]), reverse=True), list(X8fE(*ix7N, reverse=True)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JRpX(YKHO):\n return not bool(YKHO._reverse_callback())", "def Gl1t(o5Dc):\n global is_reverse\n zgtW = o5Dc", "def prho(YKHO):\n if YKHO.sortingReverse.lower() in ['1', 'yes', 'true', 'on']:\n YKHO.assertTrue(YKHO.config.sortingReverse)\n elif YKHO.sortingReverse.lower() in ['0', 'no...
[ "0.73392296", "0.68163896", "0.6537939", "0.6523438", "0.63412285", "0.6307833", "0.6299878", "0.6275159", "0.61790586", "0.613202", "0.6116976", "0.60824007", "0.6046022", "0.5983002", "0.5976699", "0.5970638", "0.594553", "0.59288", "0.59192276", "0.58404404", "0.574365", ...
0.0
-1
Used to generate a batch with images when training/testing/validating our Keras model.
def BbHL(YKHO, A6kl, LT6S, Ep8u=16): Yw_3, PWKZ, W5Bd, IoKf = ([], [], [], []) while True: for or8S in A6kl: a70H = YKHO.df.iloc[or8S] ZJe_ = a70H['age'] zAVU = a70H['race_id'] EE3v = a70H['gender_id'] nUeQ = a70H['file'] Xn71 = YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pBCb(C3ST, Ep8u, Zwka=False):\n if C3ST == 'cnn':\n Ekag = True\n else:\n Ekag = False\n LNo8 = EM5V(test_data=Zwka, as_image=Ekag)\n UXqs = S00G(test_data=Zwka)\n cTeY, ovYi = ZylS.train.batch([LNo8, UXqs], batch_size=Ep8u, num_threads=1, capacity=Ep8u * 8)\n return (cTeY, ZylS...
[ "0.75774246", "0.74922997", "0.74519485", "0.73910856", "0.7325273", "0.71627367", "0.71103084", "0.7077549", "0.7029831", "0.70131713", "0.70102745", "0.6954216", "0.6947352", "0.6941008", "0.69298536", "0.69187367", "0.69123995", "0.6905738", "0.6889662", "0.6868008", "0.68...
0.72434276
5
Creates an object from the specified configuration dictionary.
def AY7g(GPtr, B2Jz=None, qIxc=None, B2fa=None): try: Emd4, qIxc, B2fa = dI1X(GPtr, 'class', B2Jz, qIxc, B2fa) return Emd4(*qIxc, **B2fa) except Exception as e: raise Exception('Could not create object\n{}'.format(qQXR.dumps(GPtr, indent=4)), tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MSOc(GPtr: dict):\n pass", "def MSOc(Emd4, GPtr):\n return Emd4(**GPtr)", "def MSOc(Emd4, GPtr):\n return Emd4(**GPtr)", "def MSOc(Emd4, GPtr: Dict):\n Ylbp = Emd4()\n Ylbp.validate_config(GPtr)\n for G1Hx, Ty9i in GPtr.items():\n assert G1Hx in Ylbp.__dict__, f'Unknown key: {G1H...
[ "0.7576743", "0.7491255", "0.7491255", "0.74420494", "0.7376429", "0.7341104", "0.73334914", "0.7317437", "0.7207449", "0.71187824", "0.7053521", "0.7053521", "0.7012224", "0.70090747", "0.70010585", "0.6958523", "0.6938643", "0.6925775", "0.6907422", "0.6886036", "0.68261015...
0.0
-1
Creates a zeroparameter function from the specified configuration dictionary.
def D9mz(GPtr, B2Jz=None, qIxc=None, B2fa=None): try: MCGS, qIxc, B2fa = dI1X(GPtr, 'function', B2Jz, qIxc, B2fa) return YLnl(MCGS, *qIxc, **B2fa) except Exception as e: raise Exception('Could not create function\n{}'.format(qQXR.dumps(GPtr, indent=4)), tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MSOc(JfyU):\n\n def mrMx(Ux0P):\n with open(Ux0P, 'r') as uiVx:\n GPtr = qQXR.load(uiVx)\n return JfyU(**GPtr)\n return mrMx", "def zEpY(Emd4, TcPZ):\n if Oa8f.is_str(TcPZ):\n try:\n JfyU = eval(TcPZ)\n except:\n PgcV = 'cls.build_pfunc('\...
[ "0.5940637", "0.5463128", "0.5432406", "0.52039313", "0.51201224", "0.50930494", "0.50807434", "0.5038867", "0.50207514", "0.4972701", "0.49464762", "0.4940924", "0.49071813", "0.49036568", "0.4877582", "0.48682946", "0.48465356", "0.48246568", "0.47884876", "0.478831", "0.47...
0.4542732
46
Return 404 if page not found
def m7kB(tTpl): return (TvZl('404.html'), 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7kB(tTpl):\n return ('Sorry, nothing at this URL.', 404)", "def m7kB(tTpl):\n return ('Sorry, nothing at this URL.', 404)", "def m7kB(tTpl):\n return ('Sorry, nothing at this URL.', 404)", "def m7kB(tTpl):\n return ('Sorry, nothing at this URL.', 404)", "def m7kB(tTpl):\n return ('Sorry...
[ "0.84974337", "0.84974337", "0.84974337", "0.84974337", "0.84974337", "0.84974337", "0.84974337", "0.8477702", "0.8477702", "0.8477702", "0.8477702", "0.8477702", "0.8477702", "0.8477702", "0.8477702", "0.8476172", "0.8475856", "0.84114265", "0.84114265", "0.83721465", "0.834...
0.84348255
17
Loads a frozen inference graph
def u5xv(YKHO, Rn65): pNZh = ZylS.Graph() with pNZh.as_default(): QPEZ = ZylS.GraphDef() with ZylS.gfile.GFile(Rn65, 'rb') as hOYR: fHkp = hOYR.read() QPEZ.ParseFromString(fHkp) ZylS.import_graph_def(QPEZ, name='') return pNZh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TyRR(jVhj, pNZh=None, cuiw=None):\n from diplomacy_research.utils.tensorflow import tf, tf_logging\n if not Hy7s.path.exists(jVhj):\n S0MI.error('The frozen graph %s does not exist.', jVhj)\n raise FileNotFoundError()\n pNZh = tf.Graph() if pNZh is None else pNZh\n with pNZh.as_defaul...
[ "0.7145618", "0.71300054", "0.6952633", "0.64996564", "0.6480352", "0.64554673", "0.6437847", "0.6419772", "0.6419772", "0.63925844", "0.638914", "0.63779676", "0.6364601", "0.6306616", "0.6300151", "0.627973", "0.6269959", "0.6266776", "0.6258529", "0.62003803", "0.6152927",...
0.60292816
29
Return boxes with a confidence >= `min_score`
def EUsT(YKHO, AjsF, oUSw, cCrA, KndY): exwG = len(KndY) DNs0 = [] for YRbF in range(exwG): if cCrA[YRbF] >= AjsF: DNs0.append(YRbF) F29b = oUSw[DNs0, ...] ox7g = cCrA[DNs0, ...] ADUU = KndY[DNs0, ...] return (F29b, ox7g, ADUU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Urop(YKHO, AjsF, oUSw, cCrA, KndY):\n exwG = len(KndY)\n DNs0 = []\n for YRbF in range(exwG):\n if cCrA[YRbF] >= AjsF:\n DNs0.append(YRbF)\n F29b = oUSw[DNs0, ...]\n ox7g = cCrA[DNs0, ...]\n ADUU = KndY[DNs0, ...]\n return (F29b, ox7g, ADUU)", "def Urop(AjsF, oUSw, cCrA...
[ "0.7317321", "0.72886777", "0.72492224", "0.72279024", "0.6647105", "0.6314491", "0.63112724", "0.61915874", "0.6165219", "0.61569124", "0.6156313", "0.61135215", "0.6062302", "0.5995685", "0.59620845", "0.5960607", "0.5950879", "0.59485", "0.5940718", "0.5940718", "0.5936835...
0.72855526
2
Draw bounding boxes on the image
def A952(YKHO, LNo8, oUSw, KndY, dGrG=4): for YRbF in range(len(oUSw)): JyK9, LFlW, tlxW, _tIi = oUSw[YRbF, ...] V8Gh = int(KndY[YRbF]) - 1 qfpW = YKHO.COLOR_LIST[V8Gh] XC5k.rectangle(LNo8, (LFlW, tlxW), (_tIi, JyK9), color=qfpW, thickness=dGrG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sGG5(YKHO, QMAG):\n VXjJ = jbYn.imread(QMAG, jbYn.IMREAD_ANYDEPTH)\n c8oy = oyIN.zeros((VXjJ.shape[0], VXjJ.shape[1], 3), dtype=oyIN.uint8)\n kcwm, BWz1 = oyIN.unique(VXjJ, return_counts=True)\n for Zmen in kcwm:\n if Zmen == 0:\n continue\n YKHO.get_instance_bounding_box(V...
[ "0.80207103", "0.7730494", "0.7663894", "0.75815976", "0.75812364", "0.7569874", "0.7564505", "0.7560773", "0.74707085", "0.74676245", "0.7462541", "0.7429634", "0.7386207", "0.73359627", "0.73075604", "0.73066705", "0.73026776", "0.72940755", "0.7275691", "0.72722554", "0.72...
0.6929667
41
Locates the specified datafiles and returns the matches in a data_files compatible format. source is the root of the source data tree. Use '' or '.' for current directory. target is the root of the target data tree. Use '' or '.' for the distribution directory. patterns is a sequence of globpatterns for the files you w...
def gsgR(JZXy, pan_, b6H_): if SC2F.has_magic(JZXy) or SC2F.has_magic(pan_): raise ValueError('Magic not allowed in src, target') U5bT = {} for mXDZ in b6H_: mXDZ = Hy7s.path.join(JZXy, mXDZ) for Ux0P in SC2F.glob(mXDZ): if Hy7s.path.isfile(Ux0P): XnGB = H...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def URg3(YKHO, BuvW, wJQv=None, **CPmi):\n del wJQv\n return ZWbl.NestedMap(data=ZylS.constant(BuvW))", "def hBS3(YPaw: BuildStep, b6H_: List[str], pan_: str=None) -> None:\n RKD7 = YPaw.get_logger()\n if pan_:\n RKD7(f'Copying files into build folder under {pan_}')\n else:\n RKD7('C...
[ "0.61576617", "0.6129363", "0.5919765", "0.5905183", "0.58921427", "0.5833857", "0.58126956", "0.5732098", "0.5684496", "0.5594679", "0.558987", "0.5580824", "0.5559924", "0.55368453", "0.5534052", "0.5506687", "0.53464913", "0.52918094", "0.5241423", "0.52367634", "0.5205368...
0.7973076
0
Yield successive nsized chunks from lst.
def eHxA(yv6U, exwG): for YRbF in range(0, len(yv6U), exwG): yield yv6U[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield...
[ "0.83071756", "0.81939614", "0.81910837", "0.81910837", "0.8190213", "0.81267184", "0.81218547", "0.81218547", "0.80773693", "0.80526286", "0.80526286", "0.80526286", "0.80526286", "0.80526286", "0.80042696", "0.7871678", "0.7845623", "0.7828392", "0.7827006", "0.78138447", "...
0.80533457
22
Returns a list of (hash, string, indices)tuples.
def xHYJ(YKHO, NHFG): V22M = {} d6pt = 0 f39K = 0 zFiD = NHFG.readline() while zFiD != []: zFiD = zFiD[0].translate(ou7C).decode(jvya) if not rc4Z % 15000: print(zFiD) for GIN8 in zFiD.split(' '): d6pt += len(GIN8) + 1 if GIN8 == '': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DzXR(YKHO, WKvO):\n bS0K = []\n for mynN in YKHO.hash_functions:\n ubOo = []\n for dXQC, quIC in zip(YKHO.config.index_specs, mynN):\n ubOo.append(dXQC.distribution.get_index(quIC(WKvO)))\n bS0K.append(tuple(ubOo))\n return bS0K", "def FkPn(YKHO):\n LX1L = list()\n...
[ "0.7082873", "0.6868651", "0.6675677", "0.6668114", "0.66508657", "0.6611046", "0.6400265", "0.6339773", "0.630122", "0.6298387", "0.6250481", "0.6225739", "0.61895305", "0.6184987", "0.6110571", "0.6100887", "0.60534286", "0.6052246", "0.59962", "0.5987231", "0.5984801", "...
0.0
-1
Symmetric decorrelation i.e. W < (W W.T) ^{1/2} W
def akDY(XcU5): KCHu, P6bq = aJJu.eigh(oyIN.dot(XcU5, XcU5.T)) KCHu = oyIN.clip(KCHu, a_min=oyIN.finfo(XcU5.dtype).tiny, a_max=None) return oyIN.linalg.multi_dot([P6bq * (1.0 / oyIN.sqrt(KCHu)), P6bq.T, XcU5])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZBiM(yzQ0, XcU5, r845):\n yzQ0 -= oyIN.linalg.multi_dot([yzQ0, XcU5[:r845].T, XcU5[:r845]])\n return yzQ0", "def Dh96(Vhxs):\n sWvo = Vhxs[:-1] + [Vhxs[-1]] + Vhxs[:-1][::-1]\n lk9W = [0.5] * (len(Vhxs) - 1) + [1.0] + [0.5] * (len(Vhxs) - 1)\n return nqqn(lk9W, sWvo)", "def qoHs(WKvO):\n ...
[ "0.68297875", "0.58642405", "0.5714483", "0.56672794", "0.56156206", "0.55587417", "0.5539916", "0.55214864", "0.54957104", "0.548836", "0.54881096", "0.5487721", "0.54838127", "0.54819167", "0.5476712", "0.54497755", "0.54356843", "0.5432515", "0.5406844", "0.53943413", "0.5...
0.7474815
0
Instantiates a finite grid. The limits are specified as a list of tuples of (low, high) values, one for each grid vector.
def FIMM(YKHO, hLRM, wd8R, c5uu): assert len(wd8R) == len(c5uu) rApN.__init__(YKHO, hLRM, wd8R) YKHO._Limits = c5uu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cs6h(_5kW, FI5R, Fu7O):\n pgzQ = int((FI5R - _5kW) / Fu7O + 1)\n BUEg = Uee5(_5kW, FI5R, pgzQ)\n return BUEg", "def Lm0U(jk7u, rTQi, YPaw):\n MEXo = oyIN.arange(jk7u[0], jk7u[1], YPaw)\n OV1s = oyIN.arange(rTQi[0], rTQi[1], YPaw)\n return (MEXo, OV1s)", "def R0O3(nPrm=None, BQGg=-5, bYzl=...
[ "0.6845707", "0.68128675", "0.6641913", "0.6626282", "0.64288163", "0.63951415", "0.63662404", "0.6347766", "0.63329864", "0.63275075", "0.63241917", "0.63241917", "0.6310568", "0.6308185", "0.6199303", "0.6160781", "0.61287147", "0.60951614", "0.60779905", "0.6064125", "0.60...
0.6917152
0
Given the image and label directories, returns a structured list. Input
def yF_T(YKHO, mlch, J7Vl): nPrm = [] for VXjJ, nuuJ in zip(SC2F(mlch + '/*.jpg'), SC2F(J7Vl + '/*.txt')): Xn71 = oyIN.array(hnIv.open(VXjJ)) Xn71 = C40E(Xn71, YKHO.core_config.num_colors) xvIQ = open(nuuJ, encoding='utf-8') ei4T = YKHO._get_objects(xvIQ) XQBX = SXPu(ei4T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Twxh():\n eZHh = []\n _qPY = []\n for tk5Y, AQSv, RRlC in Hy7s.walk(GPtr['PathToData'], topdown=False):\n for eHNT in RRlC:\n YBcr = Hy7s.path.splitext(eHNT)[-1].lower()\n if YBcr in GPtr['ValidImageFileExtensions']:\n eZHh.append(Hy7s.path.join(tk5Y, eHNT))...
[ "0.7479282", "0.7249914", "0.7160709", "0.714454", "0.71018004", "0.7090322", "0.70697165", "0.70690686", "0.70348674", "0.7027988", "0.6997225", "0.697528", "0.69314796", "0.69178325", "0.6863838", "0.6839108", "0.68099934", "0.68062544", "0.679291", "0.6754475", "0.6735565"...
0.61880404
58
Creates a business_report object from the dict TypedDict
def eLpg(qCaA: dict) -> MRQS: dhFz = MRQS() NCls.session.add(dhFz) NCls.session.commit() return dhFz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, BiR6):\n return Xlpl.from_dict(data_class=Emd4, data=BiR6)", "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n tH2j = cmPJ.get('consumerId')\n daV2 = cmPJ.get('consumerSsn')\n dmH9 = cmPJ.get('requesterName')\n gTi_ = cmPJ.get('requestId')\...
[ "0.6308779", "0.6164453", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", "0.60887873", ...
0.0
-1
Get the SDGraphObjectFrame color
def KGGj(YKHO): Abm8 = HR9v() ZSvt = YKHO.mAPIContext.SDGraphObjectFrame_getColor(YKHO.mHandle, gk2W.byref(Abm8)) if ZSvt != ll8f.NoError.value: if ZSvt == ll8f.NoErrorOutputParamNotSet.value: return None raise UvM_(ll8f(ZSvt)) return Abm8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lj5r(YKHO, object):\n return YKHO.graph_color_", "def mvpM(YKHO):\n return YKHO.__color", "def mvpM(YKHO):\n return YKHO.__color", "def mvpM(YKHO):\n return YKHO.__color", "def mvpM(YKHO):\n return YKHO.__color", "def KGGj(YKHO):\n return YKHO.color", "def PICn(YKHO):\n return ...
[ "0.76436764", "0.713944", "0.713944", "0.713944", "0.713944", "0.7060627", "0.7057942", "0.70264846", "0.7010687", "0.6968809", "0.6927457", "0.69249076", "0.68727857", "0.6870275", "0.6870275", "0.68354243", "0.68354243", "0.68354243", "0.6835348", "0.6824584", "0.6767909", ...
0.765588
0
Test importing invalid config.
async def test_import_invalid(ajET): HwLH = A2b9(True) FTdA(ajET) with XVHP(HwLH): Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': n2g6}, data=od4K) assert Aofo['type'] == P8Nx assert Aofo['reason'] == 'connection' HwLH.get_supported_methods.assert_calle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlNS(YKHO):\n with YKHO.assertRaises(rqaQ):\n iK5T('TEST_SETTING')", "def C7Ke(YKHO):\n with YKHO.assertRaises(rqaQ):\n iK5T('TEST_SETTING')", "def ZnPK(to2x):\n with trZe.raises(RuntimeError, match='Error reading config.yml'):\n NxqL.get_config(to2x)", "def kBrp(YKHO):\n ...
[ "0.8125269", "0.7789621", "0.7702107", "0.7402622", "0.7298733", "0.7276576", "0.72535616", "0.72371185", "0.7185777", "0.71790737", "0.71636087", "0.7097692", "0.7054157", "0.7015094", "0.7012981", "0.70097905", "0.6971956", "0.6935524", "0.69273", "0.6926781", "0.68988734",...
0.71278507
11
Splits document text into a list of sentences, given some model.
def bGHV(l5Ny: str, DMw4: str) -> a1PO.List[str]: Rhv4 = [] mO76 = [] fkHK = HPrH.from_type(DMw4) if isinstance(l5Ny, list): Rhv4, mO76 = list(zip(*map(fkHK.tokenize, l5Ny))) elif isinstance(l5Ny, str): Rhv4, mO76 = fkHK.tokenize(l5Ny) return (Rhv4, mO76)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(l5Ny):\n A97Q = K9NE(l5Ny)\n Rhv4 = [WKvO.text_with_ws for WKvO in A97Q.sents]\n return Rhv4", "def Y2KJ(l5Ny):\n return l5Ny.split('.')", "def JHW8(YKHO, l5Ny):\n return UQZR(l5Ny)", "def c0FK(YKHO, l5Ny):\n assert isinstance(l5Ny, str)\n l5Ny = l5Ny.replace('\\n', '')\n if ...
[ "0.7736216", "0.7252213", "0.7082826", "0.70524997", "0.6805155", "0.67981815", "0.6738876", "0.6737422", "0.67177343", "0.6689931", "0.666789", "0.66164446", "0.65894055", "0.6582415", "0.6578306", "0.655155", "0.65042615", "0.6432492", "0.641784", "0.638252", "0.638045", ...
0.75723946
1
Find the closest intersection to the origin, by Manahattan distance, of two Wires.
def RZB_(YKHO, Elif: Wire) -> AzJI[XvuT, int]: iQin = sorted(YKHO.intersect(Elif), key=lambda WKvO: YKHO.ORIGIN.dist(WKvO.location))[0] return (iQin, YKHO.ORIGIN.dist(iQin.location))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PjNT(_67D):\n fkzP = list(map(lambda yzQ0: qIU0(yzQ0), _67D))\n _5DZ = fkzP[0]\n for KCHu in fkzP[1:]:\n _5DZ.intersection_update(KCHu)\n SLBz = (0, 0)\n TaUL = list(map(lambda Z9rn: wnQG(SLBz, Z9rn), _5DZ))\n return min(TaUL)", "def k8xn(WNI2, ACIU):\n pass", "def Ayfi(_67D) ->...
[ "0.73668647", "0.71624225", "0.6995059", "0.688957", "0.6259799", "0.6222615", "0.6161806", "0.6148054", "0.5992006", "0.5981919", "0.5977006", "0.59560627", "0.59306633", "0.59270483", "0.59255", "0.5852488", "0.58326423", "0.5826113", "0.58249897", "0.5812551", "0.5808463",...
0.78951204
0
Shows a specific plane within 3D data.
def dyGZ(jDK_, kEC0, iMGt='gray', leAC=None): jDK_.imshow(kEC0, cmap=iMGt) jDK_.set_xticks([]) jDK_.set_yticks([]) if leAC: jDK_.set_title(leAC) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ctsk(V4se, RPT1, Yixg, EhSX):\n epBp = (V4se[0] * (EhSX[0] - RPT1) + V4se[1] * (EhSX[1] - Yixg)) / V4se[2] + EhSX[2]\n return epBp", "def kEC0(YKHO):\n from lsst.analysis import utils\n return utils.fitplane(YKHO.points, YKHO.z)", "def L_vz(YKHO, cTRz, GQNi, LdzP):\n GQNi = int(GQNi)\n Ld...
[ "0.6780227", "0.666365", "0.6577502", "0.6563549", "0.63409144", "0.624834", "0.6219757", "0.6199828", "0.6173089", "0.6126187", "0.6115501", "0.6100461", "0.6099733", "0.6040154", "0.6024716", "0.6006487", "0.5987519", "0.59277785", "0.5921929", "0.5920941", "0.5902615", "...
0.67553663
1
Return the current container ID.
def sUW7(): with open('/proc/self/cgroup', 'rt') as a68g: for zFiD in a68g.readlines(): return ZbWC.sub('^docker-', '', ZbWC.sub('\\.scope$', '', ZbWC.sub('^.*\\/', '', zFiD.strip())))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KCib(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'container_id')", "def vttM(YKHO):\n return YKHO._container", "def KCib(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'container_id')", "def LxGA(YKHO):\n return YKHO.client.containers.get(YKHO.container).id", "def KCib...
[ "0.86177015", "0.85974866", "0.822979", "0.81850547", "0.7676669", "0.7595466", "0.7591976", "0.7085673", "0.69835997", "0.69442016", "0.69008535", "0.6894379", "0.6839231", "0.68319935", "0.6813734", "0.6774681", "0.67729616", "0.66315556", "0.6575164", "0.6575164", "0.65332...
0.80170023
4
A helper method that, given a valid faceValue, will update the die's currentValue and value to match the passed faceValue.
def IPqq(YKHO, Eael): if Eael in kQ7Y.ANGRY_VALUES: YKHO.currentValue = Eael YKHO.value = kQ7Y.ANGRY_VALUES[Eael]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mUiZ(YKHO, BWXx):\n YKHO.face = BWXx", "def mUiZ(YKHO, BWXx):\n YKHO.face = BWXx", "def MAom(YKHO):\n cDLz = YKHO.new_die.roll()\n if cDLz == YKHO.new_die.currentValue:\n YKHO.assertTrue(True, 'currentValue {} matches the rolled value'.format(YKHO.new_die.currentValue))\n return",...
[ "0.568083", "0.568083", "0.5458344", "0.54526615", "0.52289414", "0.5217452", "0.5184717", "0.5160611", "0.51151603", "0.511195", "0.50905704", "0.506557", "0.50020486", "0.49880826", "0.49478003", "0.49093857", "0.4904442", "0.48498568", "0.48484898", "0.4839955", "0.4830702...
0.81279725
0
Generate N RGB colors for cmap.
def C6M2(ywwl, iMGt='Set1', NKcE='matplotlib', boLu=False, ht58='rgb', PJWX='info'): wmdW(verbose=PJWX) LOx4 = 4 if boLu else 3 if NKcE == 'seaborn': uuEx = KbZY() F4JO = uuEx.color_palette(iMGt, ywwl) else: try: P8oC = I8kJ.colormaps[iMGt] except: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IDo1(exwG, em8M='tab20'):\n wkkz = QrM1.get_cmap(em8M)\n vi7w = len(wkkz.colors)\n return [wkkz(YRbF % vi7w) for YRbF in range(exwG)]", "def tRp2(exwG):\n wnTo = QrM1.cm.get_cmap('hsv', exwG + 1)\n Jw9H = [wnTo(YRbF + 1)[:3] for YRbF in range(exwG)]\n tuKI.shuffle(Jw9H)\n iMGt = (oyIN.ar...
[ "0.8178953", "0.77302057", "0.76631385", "0.76402104", "0.73800164", "0.7310844", "0.72412497", "0.72399986", "0.70891625", "0.70848805", "0.705759", "0.6974212", "0.69218963", "0.6902083", "0.68446606", "0.6824279", "0.6822179", "0.68052876", "0.6770785", "0.67608047", "0.66...
0.6841107
15
Convert RGB colorrange to hex.
def MiUz(Jw9H, boLu=False): if isinstance(Jw9H, list): Jw9H = oyIN.array(Jw9H) if len(Jw9H.shape) == 1: Jw9H = oyIN.array([Jw9H]) if not boLu: Jw9H = Jw9H[:, 0:3] RPex = list(map(lambda WKvO: I8kJ.colors.to_hex(WKvO, keep_alpha=boLu), Jw9H)) return oyIN.array(RPex)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xR3V(d7Eb: Iterable[int]) -> str:\n return ''.join(list(map(lambda WKvO: hex(abs(WKvO))[2:].zfill(2), d7Eb))[::-1])", "def vowe(Emd4, Mkmy, Oa1e, Fg_i):\n return '#%02x%02x%02x' % (int(Mkmy), int(Oa1e), int(Fg_i))", "def MiUz(Emd4, d7Eb):\n if not type(d7Eb) == tuple or not all((255 >= Ty9i >= 0 f...
[ "0.7687512", "0.7467669", "0.74484754", "0.7410516", "0.7389656", "0.7368666", "0.7366835", "0.73552287", "0.73433214", "0.73162735", "0.7264452", "0.7255768", "0.7255768", "0.7255768", "0.7242387", "0.7229792", "0.72228086", "0.7195485", "0.71832603", "0.7121302", "0.7120350...
0.6617863
51
Convert hex colorrange to RGBA.
def pmnU(Jw9H): if 'str' in str(type(Jw9H)): Jw9H = oyIN.array([Jw9H]) SzgO = list(map(lambda WKvO: I8kJ.colors.to_rgba(WKvO), Jw9H)) return oyIN.array(SzgO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hDYY(MKlR, Cwt5):\n return tuple([int(MKlR.lstrip('#')[YRbF:YRbF + 2], 16) for YRbF in (0, 2, 4)] + [Cwt5])", "def MA8O(oykL):\n RKD7.debug('Converting all rgba to hexadecimal color values.')\n njyT = ZbWC.compile('rgb\\\\s*\\\\(\\\\s*([0-9,\\\\s]+)\\\\s*\\\\)')\n kUBT = njyT.search(oykL)\n wh...
[ "0.74167764", "0.70776886", "0.6812988", "0.6806883", "0.66850585", "0.66562873", "0.66246355", "0.66192836", "0.6602443", "0.6597313", "0.6596636", "0.65546227", "0.65298957", "0.6514845", "0.6510283", "0.65088314", "0.64748806", "0.6454721", "0.6445255", "0.64353675", "0.64...
0.71970624
1
Generate colors from input list. This function creates unique colors based on the input list y and the cmap. When the gradient hex color is defined, such as '000000', a gradient coloring space is created between two colors. The start color of the particular y, using the cmap and The end color is the defined gradient, s...
def UyjI(LVAh, EcVT=None, iMGt='Set1', ICX2=None, NKcE='matplotlib', ht58='rgb', LZP1='per_class', PJWX='info'): wmdW(verbose=PJWX) LVAh = oyIN.array(LVAh) vk7y = oyIN.unique(LVAh) qUpr = C6M2(len(vk7y), cmap=iMGt, method=NKcE, scheme=ht58, verbose=PJWX) u2Wg = dict(zip(vk7y, qUpr)) ve1F = oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ju_N():\n Jw9H = []\n YPaw = 10\n for Z5Q9, jlxe in zip(range(255, -YPaw, -YPaw), range(0, 255, YPaw)):\n Jw9H.append({'red': Z5Q9, 'green': jlxe, 'blue': 0})\n for jlxe, pPPK in zip(range(255, -YPaw, -YPaw), range(0, 255, YPaw)):\n Jw9H.append({'red': 0, 'green': jlxe, 'blue': pPPK})...
[ "0.69815975", "0.6241875", "0.608826", "0.6028528", "0.5951059", "0.58788097", "0.58780885", "0.58316827", "0.5818387", "0.5781078", "0.56648606", "0.5645055", "0.5637384", "0.56352425", "0.56185704", "0.55861217", "0.5581655", "0.5577476", "0.5556196", "0.5546131", "0.554457...
0.7146094
0
Return a gradient list of (n) colors between two hex colors. start_hex and finish_hex should be the full sixdigit color string, inlcuding the number sign ("FFFFFF")
def faKA(SGZs, HQnY='#FFFFFF', exwG=10): if HQnY == 'opaque': HQnY = SGZs KCHu = e1jK(SGZs) eHNT = e1jK(HQnY) F0Dp = [KCHu] for a1PO in range(1, exwG): Coim = [int(KCHu[r845] + float(a1PO) / (exwG - 1) * (eHNT[r845] - KCHu[r845])) for r845 in range(3)] F0Dp.append(Coim) l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ju_N():\n Jw9H = []\n YPaw = 10\n for Z5Q9, jlxe in zip(range(255, -YPaw, -YPaw), range(0, 255, YPaw)):\n Jw9H.append({'red': Z5Q9, 'green': jlxe, 'blue': 0})\n for jlxe, pPPK in zip(range(255, -YPaw, -YPaw), range(0, 255, YPaw)):\n Jw9H.append({'red': 0, 'green': jlxe, 'blue': pPPK})...
[ "0.7464628", "0.730974", "0.6747355", "0.64438266", "0.6420821", "0.6330026", "0.6233631", "0.61494654", "0.614863", "0.60044503", "0.5992193", "0.5977377", "0.59677243", "0.5953647", "0.5910034", "0.590775", "0.59075046", "0.58731186", "0.58708364", "0.586321", "0.5853994", ...
0.7984741
0
Set gradient on density color. This function determines the density of the data and adds a transparency column. If samples are in dense areas, transparency values are towards 1 (visible), whereas isn nonedense areas, the transparency values are towards 0 (not visible).
def A275(EcVT, Okqi, Crrw, LZP1='per_class', R9Va=False, PJWX='info'): wmdW(verbose=PJWX) if Crrw is None: Crrw = oyIN.repeat(0, EcVT.shape[0]) from scipy.stats import gaussian_kde j1GP = oyIN.unique(Crrw) if Okqi.shape[1] <= 3: Okqi = oyIN.c_[Okqi, oyIN.ones(Okqi.shape[0])] JusK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uf5Z(ZEXG):\n UAhT = ZEXG.isel(z=0) * 0.0 + 1.0\n grrk = ZEXG.differentiate('z')\n PWCI = grrk.interp(z=oyIN.arange(0, grrk.z.max(), 2.5))\n TlFL = PWCI.where(PWCI > 0.02, other=99999)\n NwM8 = TlFL.argmin(dim='z', skipna=True)\n ELLE = PWCI.z[NwM8] * UAhT\n return ELLE", "def Uf5Z(ZEXG)...
[ "0.57073355", "0.57073355", "0.56205153", "0.5285244", "0.52843755", "0.5108466", "0.5072132", "0.50284564", "0.49939755", "0.49933887", "0.49889076", "0.4987362", "0.4982678", "0.4981954", "0.49721134", "0.49690628", "0.49479908", "0.49206397", "0.4919995", "0.49167046", "0....
0.65256983
0
Yield all filenames in a path.
def s8To(pmON, ucBt=False): for eHNT in Hy7s.listdir(pmON): if eHNT[0] == '.': continue zOGz = Hy7s.path.join(pmON, eHNT) if ucBt is False: if Hy7s.path.isfile(zOGz): if Hy7s.path.getsize(zOGz) != 0: yield zOGz else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yFkH(pmON):\n if Hy7s.path.isfile(pmON):\n yield pmON\n elif Hy7s.path.isdir(pmON):\n for pGQh, bGrB, iumf in Hy7s.walk(pmON):\n for eHNT in iumf:\n yield Hy7s.path.join(pGQh, eHNT)\n else:\n raise RuntimeError('Path %s is invalid' % pmON)", "def tljZ(p...
[ "0.8316498", "0.8162758", "0.7978636", "0.77177733", "0.7645544", "0.7496099", "0.7371728", "0.73671514", "0.7325709", "0.7240269", "0.72048444", "0.71422756", "0.7079702", "0.707557", "0.70674306", "0.70605344", "0.6950866", "0.69340396", "0.6924985", "0.6914971", "0.6914575...
0.0
-1
Tests that createElementNS calls are filtered properly
def fEh8(): assert not G7P5('\n var x = "foo";\n x.createElementNS();\n x.createElementNS("foo");\n x.createElementNS("foo", "bar");\n ').failed() assert G7P5('\n var x = "foo";\n x.createElementNS("foo", "script");\n ').failed() assert G7P5('\n var x = "foo";\n x.createElement...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kr5U():\n assert not G7P5('\\n var x = \"foo\";\\n x.createElement();\\n x.createElement(\"foo\");\\n ').failed()\n assert G7P5('\\n var x = \"foo\";\\n x.createElement(\"script\");\\n ').failed()\n assert G7P5('\\n var x = \"foo\";\\n x.createElement(bar);\\n ').failed()...
[ "0.6553644", "0.5767339", "0.56110704", "0.5496338", "0.5460686", "0.5308755", "0.52212656", "0.5208479", "0.5199475", "0.5189086", "0.5153285", "0.51497877", "0.5131236", "0.51135963", "0.51049906", "0.50972146", "0.5070891", "0.50700235", "0.50475746", "0.5033134", "0.50266...
0.7780457
0
Test that `.openDialog(bar)` throws doesn't throw an error where `bar` is a dirty object.
def VZjB(YKHO): YKHO.run_script('\n foo.openDialog(bar)\n ') YKHO.assert_notices()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zRcY(YKHO):\n YKHO.run_script('\\n foo.openDialog(\"foo\")\\n foo.openDialog(\"chrome://foo/bar\")\\n ')\n YKHO.assert_silent()", "def Fmol(YKHO):\n YKHO.createWrongSettingsFile()\n return YKHO.assertRaises(oqPY, U0hF)", "def IY3_(YKHO):\n with Po4F('cauldron.steptest.su...
[ "0.664462", "0.6096759", "0.5865762", "0.56994104", "0.5670863", "0.5574597", "0.5482802", "0.54300237", "0.5427492", "0.53748256", "0.5308122", "0.52538544", "0.5234245", "0.52235", "0.5222695", "0.52182746", "0.52126163", "0.5170296", "0.516994", "0.51174134", "0.5110923", ...
0.63953465
1
Returns the time (total sum of timesteps) since the last reset.
def ITS7(YKHO) -> float: return YKHO.sim_scene.data.time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xOZo(YKHO):\n return YKHO.step / (YKHO.max_step + int(YKHO.include))", "def xOZo(YKHO) -> float:\n return YKHO.t", "def NMoC(YKHO):\n if YKHO.running:\n return YKHO.accumulated_time + g74T.time.get_ticks() - YKHO.start_time\n else:\n return YKHO.accumulated_time", "def m7L9(YKHO...
[ "0.7168588", "0.71211964", "0.70225096", "0.6981281", "0.69380325", "0.69172233", "0.6909712", "0.68915546", "0.6887088", "0.68044907", "0.6802243", "0.6790637", "0.67853886", "0.67688805", "0.6760488", "0.67461056", "0.67229843", "0.6677072", "0.6672788", "0.6668022", "0.666...
0.6420324
42
Returns the initial states for the given groups.
def ppZx(YKHO, moMn: Union[str, Sequence[str]]) -> uLKX[x1cL, bdIy[x1cL]]: if isinstance(moMn, str): b32v = [YKHO.get_config(moMn)] else: b32v = [YKHO.get_config(mWFP) for mWFP in moMn] wspz = [] for GPtr in b32v: QTBn = x1cL() if GPtr.qpos_indices is None: ws...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WdFN(YKHO):\n raise NotImplementedError()", "def EcOR(YKHO):\n return YKHO._initial_states", "def EcOR(YKHO):\n return list(YKHO.iter_initial_states())", "def J5wX(YKHO):\n return YKHO.states('Initial = YES')", "def CUis(YKHO, b32v: Sequence[RobotGroupConfig]) -> bdIy[x1cL]:\n wspz = []\...
[ "0.6517598", "0.63916826", "0.61768365", "0.61699396", "0.6043793", "0.59128195", "0.5887704", "0.58768594", "0.58085155", "0.58085155", "0.58085155", "0.58085155", "0.58085155", "0.58085155", "0.58085155", "0.58085155", "0.58085155", "0.58085155", "0.58085155", "0.58085155", ...
0.7757164
0
Sets the robot joints to the given states.
def SMI8(YKHO, SWZM: Sequence[Tuple[RobotGroupConfig, RobotState]]): for GPtr, QTBn in SWZM: if GPtr.qpos_indices is None: continue if QTBn.qpos is not None: YKHO.sim_scene.data.qpos[GPtr.qpos_indices] = QTBn.qpos if QTBn.qvel is not None: YKHO.sim_scene.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u9Oy(YKHO, ytH6: List[str], dQgj: List[float]=None, p8Jz: List[float]=None) -> l1oh:\n assert all([r845 in YKHO.joints.names for r845 in ytH6]), 'all values of joints must also be in self.joints'\n if dQgj is not None:\n assert type(dQgj) is list\n assert all([type(XP5J) is float for XP5J i...
[ "0.7340826", "0.6836892", "0.6627433", "0.6219958", "0.6123465", "0.59864044", "0.5968934", "0.59389764", "0.5932464", "0.590818", "0.58539706", "0.5794332", "0.57893485", "0.57693374", "0.57496977", "0.5736451", "0.57093275", "0.56946826", "0.56944317", "0.5574347", "0.55688...
0.51125777
52
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, bw0V): 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.84568954", "0.83923674", "0.81447554", "0.81407183", "0.81326675", "0.80941343", "0.8092415", "0.8092415", "0.8092415", "0.8085536", "0.8085536", "0.8076502", "0.8076502", "0.8066026" ]
0.0
-1
Create optimizer learning rate scheduler based on config.
def t8Q7(ONRr, K0do, gyJe): hc6Z = None oHll = ONRr.WhichOneof('learning_rate') if oHll == 'multi_phase': GPtr = ONRr.multi_phase fjOJ = [] tDMp = [] for lepg in GPtr.phases: fjOJ.append((lepg.start, lepg.lambda_func)) tDMp.append((lepg.start, lepg.mom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GVec(K0do, GPtr):\n return ht2j.optim.lr_scheduler.StepLR(K0do, step_size=5, gamma=0.9)", "def Cc7Y(GmcC, K0do, gyJe):\n ulZ5 = GmcC.WhichOneof('optimizer')\n if ulZ5 == 'rms_prop_optimizer':\n GPtr = GmcC.rms_prop_optimizer\n hc6Z = t8Q7(GPtr.learning_rate, K0do, total_step=gyJe)\n ...
[ "0.8004487", "0.7996875", "0.79782903", "0.7639045", "0.73738545", "0.7332055", "0.7301991", "0.7300177", "0.7256197", "0.7231383", "0.71939045", "0.7167134", "0.7102816", "0.7095163", "0.7091584", "0.7080664", "0.70553064", "0.69863945", "0.69457966", "0.69298434", "0.692465...
0.75770074
4
Normalizes string, converts to lowercase, removes nonalpha characters, and converts spaces to hyphens. From Django's "django/template/defaultfilters.py".
def bez7(BWXx): import unicodedata if not isinstance(BWXx, QMSQ): BWXx = QMSQ(BWXx) BWXx = unicodedata.normalize('NFKD', BWXx).encode('ascii', 'ignore') BWXx = QMSQ(ch2f.sub('', BWXx).strip().lower()) return yAuF.sub('-', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSeI(str):\n Ylbp = str.lower()\n return Ylbp.replace(' ', '-')", "def NkkI(KCHu):\n KCHu = gGbk(KCHu)\n KCHu = tBJW(KCHu)\n KCHu = KCHu.lower()\n return KCHu", "def aSeI(vIwR):\n RI88 = vIwR.lower()\n RI88 = ZbWC.sub('[^\\\\w\\\\s]', '', RI88)\n RI88 = ZbWC.sub('\\\\s+', '_', RI...
[ "0.8050005", "0.7715769", "0.7337892", "0.7264596", "0.7262135", "0.7178926", "0.7171534", "0.714335", "0.71391594", "0.70830053", "0.7070548", "0.70457333", "0.70426863", "0.70101064", "0.70101064", "0.6989748", "0.69828415", "0.69823", "0.69683266", "0.69340587", "0.6910592...
0.6851728
28
Find the next empty square in the board.
def KEVi(YKHO): for Mkmy, rdlD in enumerate(YKHO._board): for Z9rn, VmPb in enumerate(rdlD): if VmPb is None: return (Mkmy, Z9rn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def anoq(YKHO):\n for rdlD in range(len(YKHO.grid)):\n for fvDH in range(len(YKHO.grid[0])):\n if YKHO.grid[rdlD][fvDH] == 0:\n return (rdlD, fvDH)\n return None", "def NEYy(iBIi):\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[0])):\n if ...
[ "0.771726", "0.76045936", "0.759847", "0.74498457", "0.72153336", "0.70994276", "0.6846962", "0.67881215", "0.67627925", "0.67542005", "0.6752573", "0.6666043", "0.6641799", "0.66194654", "0.6548566", "0.6522966", "0.6478559", "0.64705473", "0.6379805", "0.63471836", "0.63375...
0.7049689
6
Create the test server application instance.
def LUif(YKHO): vFZ1.process_startup() P4t4 = V7VL() Q9xH = 'http://{}:{}/wd/hub'.format(Hy7s.environ.get('{{ cookiecutter.project_slug|upper }}_SELENIUM_HOST', 'chrome'), Hy7s.environ.get('{{ cookiecutter.project_slug|upper }}_SELENIUM_PORT', '4444')) YKHO.browser = wNEQ(command_executor=Q9xH, desired_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif(zmu8=None):\n P4t4 = L2w0(__name__, instance_relative_config=True)\n P4t4.config.from_mapping(SECRET_KEY=Hy7s.environ.get('FLASK_SECRET_KEY', 'dev'), SQLALCHEMY_DATABASE_URI=Hy7s.environ.get('FLASK_SQLALCHEMY_DATABASE_URI'), SQLALCHEMY_TRACK_MODIFICATIONS=False)\n if zmu8 is None:\n P4t4.c...
[ "0.7417531", "0.73058623", "0.7296637", "0.7289872", "0.72620034", "0.72145504", "0.71641845", "0.7141066", "0.7107825", "0.71020865", "0.7096506", "0.70654595", "0.70639825", "0.704083", "0.70407116", "0.7004533", "0.6990313", "0.6979766", "0.69694114", "0.6966402", "0.69436...
0.7206358
6
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY=[], NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): QrM1.figure() if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') QrM1.imshow(Bcwd, i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194366", "0.8095442", "0.8029135", "0.8019134", "0.7993755", "0.7991176", "0.79808146", "0.79755133", "0.79609716", "0.7956584", "0.79375756", "0.79346216", "0.79343396", "0.7931212", "0.7926087", "0.7924503", "0.7923946", "0.79228765", "0.79227114", "0.7921956", "0.79178...
0.7835582
61
test attrs of City when created
def LTQ8(YKHO): j5sA = cKBo() YKHO.assertEqual(j5sA.name, '') YKHO.assertEqual(cKBo.name, '') YKHO.assertEqual(j5sA.state_id, '') YKHO.assertEqual(cKBo.state_id, '') YKHO.assertIn('id', j5sA.__dict__) YKHO.assertIn('created_at', j5sA.to_dict()) YKHO.assertIn('updated_at', j5sA.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PNy_(YKHO):\n YKHO.assertTrue(hasattr(YKHO.city, 'name'))\n YKHO.assertTrue(hasattr(YKHO.city, 'state_id'))", "def wrJC(YKHO):\n xldu = cKBo()\n xldu.name = 'Hawaii'\n YKHO.assertEqual(xldu.name, 'Hawaii')\n xldu.state_id = '<3'\n YKHO.assertEqual(xldu.state_id, '<3')\n YKHO.assertEqu...
[ "0.79669297", "0.7755154", "0.76454324", "0.75021863", "0.7164923", "0.7156203", "0.70737207", "0.70595056", "0.70520234", "0.6963021", "0.69118476", "0.69103384", "0.67882353", "0.67593557", "0.67574525", "0.6731778", "0.6674009", "0.66470456", "0.6544833", "0.6540936", "0.6...
0.76267827
3
Get the points to estimate head pose sideways
def JlYW(LNo8, mmBf, U3qI, hkak): wnCy = 1 clyA = 0 guFL = LNo8.shape[1] sMZu = guFL * 2 wEf2 = [wnCy, clyA, guFL, sMZu] CXua = EOEC(LNo8, mmBf, U3qI, hkak, wEf2) LVAh = (CXua[5] + CXua[8]) // 2 WKvO = CXua[2] return (WKvO, LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def psLd(YKHO):\n return Oa1e.points_from_probe(YKHO)", "def VZTV(YKHO, LNo8):\n \"\"\"\n image- rgb image \n return:-\n pts - list of 2d pose landmarks as img coords\n image- rgb image on which the 2d pose landmarks are drawn\n \"\"\"\n y5bX = []\n bWaE = XC5k.cvtC...
[ "0.6658804", "0.6222457", "0.6192936", "0.615454", "0.61042935", "0.60609454", "0.6035024", "0.6020878", "0.60114807", "0.59733033", "0.5970817", "0.59246963", "0.58942825", "0.58829874", "0.5882882", "0.5877781", "0.58656156", "0.58611846", "0.58332133", "0.5820129", "0.5814...
0.6316923
1
Return the urgency override state.
def _eBp(AcPe): aBu8 = LEXu.getEntity(yW7C.LOG_REVIEW_REST_URL, 'notable_editing', namespace=yW7C.DEFAULT_NAMESPACE, owner=yW7C.DEFAULT_OWNER, count=-1, sessionKey=AcPe) if 'allow_urgency_override' in aBu8: return x0IH.util.normalizeBoolean(aBu8['allow_urgency_override']) else: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q6af(YKHO):\n try:\n DUXs = YKHO.raw_time_to_resolve\n except:\n DUXs = 666\n FB3x = 'normal'\n if DUXs < 1:\n FB3x = 'critical'\n elif DUXs < 2:\n FB3x = 'warning'\n return FB3x", "def spvT(YKHO) -> int:\n return YKHO.rstate.level()", "def d7Ia(YKHO):\n ...
[ "0.7169567", "0.555879", "0.5551994", "0.5436678", "0.5436553", "0.5412196", "0.5387082", "0.5367364", "0.5339496", "0.5331872", "0.53277886", "0.5325559", "0.5320186", "0.5314916", "0.5301885", "0.52887714", "0.52858543", "0.5284677", "0.5282586", "0.5275696", "0.5273975", ...
0.588646
1
Returns the status ID of the default systemwide review status.
def jd3Y(AcPe): bo34.debug('Getting the default status') mKea = LEXu.getEntities(yW7C.REVIEW_STATUSES_REST_URL, namespace=yW7C.DEFAULT_NAMESPACE, owner=yW7C.DEFAULT_OWNER, sessionKey=AcPe, count=-1) for mJH4 in mKea: Bqxy = mKea[mJH4] if 'disabled' in Bqxy: lbi2 = x0IH.util.norma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q08J(YKHO):\n return YKHO.bot_data_file['bot_status']['defaultStatus']", "def Ajjb(YKHO):\n if not hasattr(YKHO, 'credential_review'):\n jGRS = 'Awaiting review'\n elif YKHO.credential_review.status <= 20:\n jGRS = 'Awaiting review'\n elif YKHO.credential_review.status == 30:\n ...
[ "0.68067926", "0.6296829", "0.60826635", "0.60303974", "0.5814972", "0.5710746", "0.5666026", "0.56644005", "0.5596166", "0.5588872", "0.5538899", "0.5532661", "0.5532661", "0.5532661", "0.5532661", "0.5532661", "0.5532661", "0.5532661", "0.5532661", "0.5532661", "0.5516928",...
0.7114933
0
Build a URI template using the url_key and constants from the API definition found in const.py
def Rhpb(GTNd: str) -> RNQx: SHpp = ''.join([Dn70['base'], Dn70[GTNd]]) Lyvp = RNQx(SHpp) return Lyvp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dmzC(P4t4, **B2fa):\n assert len(B2fa) == 1\n w2IS = B2fa.keys()[0]\n SGPK = B2fa.values()[0]\n for bD7m in P4t4.url_map.iter_rules():\n if bD7m.endpoint == w2IS:\n break\n else:\n return ''\n Oa8f = bD7m.rule\n for xqoZ, m1Oc in SGPK.items():\n Oa8f = Oa8f....
[ "0.709884", "0.6977214", "0.67404443", "0.66753805", "0.662737", "0.6527455", "0.64493567", "0.642962", "0.6384027", "0.63768953", "0.63635385", "0.63031346", "0.63031346", "0.6255533", "0.6241023", "0.62348884", "0.6225104", "0.6216448", "0.6147686", "0.6134802", "0.6097601"...
0.8198724
0
Function to initialize test case data.
def HhAw(): o0Dy = [] mUln = 1 xovp = 'auto-resiliency-pif-001' j_ax = 'https://jira.opnfv.org/browse/AUTO-9' o0Dy.append(_znt(mUln, xovp, j_ax)) mUln = 2 xovp = 'auto-resiliency-pif-002' j_ax = 'https://jira.opnfv.org/browse/AUTO-10' o0Dy.append(_znt(mUln, xovp, j_ax)) mUln = 3 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izSt(Emd4):\n BJsk.initialize_empty_volunteer()", "def FCbF(YKHO):\n YKHO.dataset = eis1()", "def izSt(Emd4):\n tOFR.run()", "def izSt(Emd4):\n tOFR.run()", "def izSt(Emd4):\n tOFR.run()", "def izSt(Emd4):\n tOFR.run()", "def INkk(YKHO, Zwka: list=None):\n print('[dataset]: usi...
[ "0.76128685", "0.75372815", "0.7513062", "0.7513062", "0.7513062", "0.7513062", "0.72867423", "0.72227305", "0.72166383", "0.71077645", "0.70698", "0.7060812", "0.68932444", "0.68592334", "0.6827512", "0.6818365", "0.68055", "0.6784938", "0.6728202", "0.6699266", "0.6694796",...
0.6497204
48
Function to initialize test definition data.
def vwGx(): Xsm4 = [] A01S = 5 WRfF = 'VM failure impact on virtual firewall (vFW VNF)' xAtE = 5 LpMw = 5 snHz = [1] zcDj = [2] jD7f = [2] lkri = ['pwd', 'kubectl describe pods --include-uninitialized=false'] xIju = ['data1', 'data2'] r_Q1 = 5 Xsm4.append(j_u9(A01S, WRfF,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def INkk(YKHO, Zwka: list=None):\n print('[dataset]: using test setup ...')\n YKHO.vocabulary = ['empty']\n YKHO.eval_dataset = RwLm(data_path=YKHO.dev_path, mode=YKHO.in_mode, task=YKHO.task, tokenizer=YKHO.tokenizer, vocab='bert', test=True)\n return", "def izSt(Emd4):\n BJsk.initialize_empty_vo...
[ "0.7206878", "0.69830936", "0.69170666", "0.6905432", "0.68886626", "0.68886626", "0.68886626", "0.68886626", "0.6804058", "0.6760746", "0.67286724", "0.6666416", "0.6661453", "0.66520184", "0.6634772", "0.66281074", "0.6593501", "0.6591871", "0.657064", "0.6567946", "0.65450...
0.7271976
0
Function to initialize recipient data.
def eMyV(): wRnk = [] zR7L = 1 cKON = 'OpenStack on Arm pod' m_K6 = 'controller resolves to one of the CTL VMs' oaui = '' lB_6 = '172.16.10.10' V_KM = '' kpHy = 'ali' _vPY = 'baba' xYVG = 'ssh-rsa k7fjsnEFzESfg6phg' ZaZO = 'UNH IOL 172.16.0.0/22' wRnk.append(lZLc(zR7L, cK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, SDM0, OakE, U4ZT='', TBsA='', HvcO='localhost'):\n if isinstance(OakE, M9Gz):\n YKHO.toaddrs = [WKvO.strip() for WKvO in OakE.split(',') if WKvO]\n else:\n YKHO.toaddrs = OakE\n YKHO.fromaddr = SDM0\n YKHO.subject = U4ZT\n YKHO.body = TBsA\n YKHO.smtphost = HvcO", "...
[ "0.6428627", "0.64235", "0.62196666", "0.6182053", "0.61726594", "0.6099804", "0.5981679", "0.59092396", "0.5873928", "0.5860588", "0.58200073", "0.5800448", "0.58002824", "0.57671815", "0.57571095", "0.5746232", "0.5722598", "0.5720659", "0.57187426", "0.5717267", "0.5710726...
0.6166087
5
Saves parameters to json file
def xkzz(YKHO, RsFk): with open(RsFk, 'w') as eHNT: qQXR.dump(YKHO.__dict__, eHNT, indent=4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U1ai(YKHO, pmON=None):\n if pmON is None:\n pmON = YKHO.parampath\n NArs = {str(H5ew): str(BWXx) for H5ew, BWXx in YKHO.__dict__.items()}\n with open(Hy7s.path.join(pmON, f'params_{YKHO.mode}.json'), 'w') as eHNT:\n qQXR.dump(NArs, eHNT)", "def TDTa(YKHO):\n try:\n with open(...
[ "0.82312053", "0.8181947", "0.8057166", "0.7808885", "0.77812463", "0.775106", "0.7710382", "0.7706769", "0.76148814", "0.75990826", "0.7574917", "0.75643057", "0.7448175", "0.7373087", "0.7341731", "0.7261098", "0.719621", "0.7154501", "0.714766", "0.7143015", "0.71297264", ...
0.6701761
64
Compute the restricted attention using kaldi position encoding.
def H1Jm(wnQ_, NArs): BWXx = wnQ_['value'] H5ew = wnQ_['key'] xDcj = wnQ_['query'] Ep8u, u54L, rj3F = BWXx.shape hC9O = NArs.sann_num_heads _8mq = NArs.sann_restricted_context_size uvXa = int((_8mq - 1) / 2) BWXx = oyIN.transpose(oyIN.reshape(BWXx, (Ep8u, u54L, hC9O, rj3F / hC9O)), [0, 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BR3M(YKHO, EcVT):\n if YKHO.bn:\n gEmA = 16\n else:\n gEmA = 14\n g4y1 = [nMvt.learning_phase()] + [YKHO.model.inputs[0]]\n w7eN = nMvt.function(g4y1, [YKHO.model.layers[gEmA].output])\n return w7eN([0] + [EcVT])", "def v2uf(YKHO, X52B, DMAy, Xamm, tsWk: int, hfjP: int, Y9ns=None...
[ "0.6223233", "0.6138006", "0.6051119", "0.60232174", "0.60205334", "0.5843146", "0.5834027", "0.57716316", "0.57679117", "0.56381214", "0.5616626", "0.5609945", "0.5591088", "0.5589141", "0.5581806", "0.5557133", "0.55491656", "0.553368", "0.5524424", "0.551581", "0.55075306"...
0.5936036
5
Overwritten setter functions to convert the time_struct into a real timestamp.
def cOuk(YKHO, rvsq): YKHO.startTime = iVVu(rvsq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _3fI(YKHO, a1PO):\n YKHO.date.UpdateStructTime(a1PO)\n YKHO.time.UpdateStructTime(a1PO)", "def E3oo(YKHO, BWXx):\n BWXx = gnPz.parse_valid_date(BWXx)\n YKHO._set_attr('timestamp', BWXx)", "def _3fI(YKHO, a1PO):\n if not YKHO.Complete():\n raise NM2W('UpdateStructTime requires a comple...
[ "0.66382796", "0.65591556", "0.64815944", "0.6390295", "0.6382825", "0.63617474", "0.6329803", "0.63273144", "0.63211745", "0.63090664", "0.6307001", "0.6288048", "0.62831414", "0.62622255", "0.6251193", "0.62397015", "0.6201132", "0.61923033", "0.618849", "0.61747265", "0.61...
0.0
-1
Overwritten setter functions to convert the time_struct into a real timestamp.
def y8aX(YKHO, R04N): YKHO.stopTime = iVVu(R04N)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _3fI(YKHO, a1PO):\n YKHO.date.UpdateStructTime(a1PO)\n YKHO.time.UpdateStructTime(a1PO)", "def E3oo(YKHO, BWXx):\n BWXx = gnPz.parse_valid_date(BWXx)\n YKHO._set_attr('timestamp', BWXx)", "def _3fI(YKHO, a1PO):\n if not YKHO.Complete():\n raise NM2W('UpdateStructTime requires a comple...
[ "0.66382796", "0.65591556", "0.64815944", "0.6390295", "0.6382825", "0.63617474", "0.6329803", "0.63273144", "0.63211745", "0.63090664", "0.6307001", "0.6288048", "0.62831414", "0.62622255", "0.6251193", "0.62397015", "0.6201132", "0.61923033", "0.618849", "0.61747265", "0.61...
0.0
-1
Return True if entity has to be polled for state. We overwrite coordinator property default setting because we need to poll to avoid the effect that after changing switch state it is immediately set to prev state. The async_update method here do nothing because the real update is performed by coordinator.
def KZ_I(YKHO) -> bool: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO):\n if YKHO.is_update_locked():\n return YKHO.graceful_state\n if YKHO._state['action'] == 1 and YKHO._state['state'] == 2:\n return True\n return False", "async def async_update(YKHO) -> None:\n K43E = [YKHO.hass.states.get(WKvO) for WKvO in YKHO._entity_ids]\n wspz: l...
[ "0.6846774", "0.6731269", "0.66712904", "0.66300744", "0.6437781", "0.6404045", "0.6392167", "0.6353482", "0.63164604", "0.6313499", "0.6303177", "0.6263767", "0.62205803", "0.6157645", "0.61570364", "0.6144633", "0.61069655", "0.61067325", "0.6105299", "0.61030585", "0.60936...
0.60423785
66
Get current switch state
def exYf(YKHO): if YKHO.entity_description.value_fn is not None: return YKHO.entity_description.value_fn(YKHO._wrap_device) if YKHO._api.state: RDhP = YKHO.entity_description.key return YKHO._api.state.device_features.get(RDhP) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n return YKHO.controller.get_state()", "def c0mt(YKHO):\n return YKHO._current_state", "def c0mt(YKHO):\n return YKHO.game.get_current_state()", "def QTBn(YKHO) -> bool:\n return YKHO.get_state(YKHO.entity_ids['switch'])", "def NPYU(YKHO):\n return xi8C.input(cJBG)", "def j...
[ "0.74889183", "0.73827314", "0.73482925", "0.7328623", "0.7303987", "0.72895473", "0.72895473", "0.7262649", "0.72144073", "0.72110635", "0.71496564", "0.7141653", "0.71394473", "0.71338475", "0.7104394", "0.7095693", "0.70940304", "0.70775414", "0.7067311", "0.7067311", "0.7...
0.7429907
1
Takes a List of Tensors and returns a List of mask Tensor with 1 if the input was all zeros (on dimension 2) and 0 otherwise. This is used in the Attention layer to mask the padding observations.
def izUG(MMe4: List[torch.Tensor]) -> x1iM[ht2j.Tensor]: with ht2j.no_grad(): if n5O1.is_exporting(): with qmLP.catch_warnings(): qmLP.simplefilter('ignore') MMe4 = [ht2j.transpose(W061, 2, 1).reshape(-1, W061.shape[1].item(), W061.shape[2].item()) for W061 in MMe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Toiy(Pha6):\n SfnJ = []\n for Q6uT in Pha6:\n SfnJ.append([float(YRbF > 0) for YRbF in Q6uT])\n return SfnJ", "def Pm89(g4y1, fRI8=0):\n ZHfW = ZylS.cast(ZylS.equal(g4y1, fRI8), 'float32')\n ZHfW = ZHfW[:, ZylS.newaxis, ZylS.newaxis, :]\n return ZHfW", "def TaYf(WKvO):\n ZHfW = ...
[ "0.7192867", "0.68340164", "0.6609743", "0.651477", "0.64316094", "0.63892573", "0.62922674", "0.6264108", "0.6230588", "0.62144625", "0.61776084", "0.61677283", "0.61438", "0.6140973", "0.61276275", "0.611358", "0.6040983", "0.6023705", "0.6021974", "0.60033125", "0.59760505...
0.684822
1
Constructs a ResidualSelfAttention module.
def FIMM(YKHO, Zwn2: int, PFYf: Optional[int]=None, hC9O: int=4): super().__init__() YKHO.max_num_ent: h8nf[int] = None if PFYf is not None: YKHO.max_num_ent = PFYf YKHO.attention = vKQ5(num_heads=hC9O, embedding_size=Zwn2) YKHO.fc_q = NQCf(Zwn2, Zwn2, kernel_init=zHNM.Normal, kernel_gain=(0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, mL4f=True, yFFn=True):\n super(tdCr, YKHO).__init__()\n iJKf = OwNx(pretrained=mL4f)\n if yFFn:\n for gEmA in iJKf.parameters():\n gEmA.requires_grad = False\n YKHO.conv1 = iJKf.conv1\n YKHO.bn1 = iJKf.bn1\n YKHO.relu = iJKf.relu\n YKHO.maxpool = iJKf.maxpool\n...
[ "0.5621225", "0.544435", "0.53626496", "0.5334829", "0.5327962", "0.5268676", "0.523798", "0.5227105", "0.5201277", "0.5181055", "0.5148044", "0.51474625", "0.5142541", "0.5127878", "0.5121603", "0.51125926", "0.5108721", "0.5103974", "0.50641334", "0.50507617", "0.50487804",...
0.0
-1
Calculate the cumulative sums of all values.
def ZH6R(YKHO): sJrm = 'cdo -timcumsum' eSpU(sJrm, YKHO, output='ensemble')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ncqH(fUYa):\n _3JK = 0\n for WKvO in fUYa:\n _3JK += WKvO\n yield _3JK", "def _3JK(YKHO):\n return YKHO._lift(lambda Z9rn: Z9rn.cumsum)", "def IJGg(WKvO):\n wjRY = 0\n sum = []\n for mLGw in WKvO:\n wjRY += mLGw\n sum.append(wjRY)\n return sum", "def IJGg(...
[ "0.76194537", "0.75675356", "0.7451289", "0.7389407", "0.7123383", "0.70414937", "0.7039762", "0.69669527", "0.69507825", "0.69205093", "0.69205093", "0.69205093", "0.6823596", "0.68017983", "0.67675036", "0.672222", "0.6675939", "0.6646776", "0.6646776", "0.6646776", "0.6630...
0.66462934
20
Call f on each item in seq, calling inter() in between.
def D0oL(C7_8, eHNT, Q6uT): Q6uT = iter(Q6uT) try: eHNT(next(Q6uT)) except StopIteration: pass else: for WKvO in Q6uT: C7_8() eHNT(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aWuw(eHNT, yv6U: list) -> list:\n U5bT = []\n for _pUq in yv6U:\n U5bT.append(eHNT(_pUq))\n return U5bT", "def P5kR(BWXx, Q6uT):\n Q6uT = iter(Q6uT)\n try:\n yield next(Q6uT)\n except StopIteration:\n return\n for ZfUD in Q6uT:\n yield BWXx\n yield ZfUD...
[ "0.61680573", "0.6034688", "0.6013112", "0.5890083", "0.5763176", "0.5744706", "0.5691687", "0.5686545", "0.56322396", "0.5617056", "0.5564194", "0.55386853", "0.55105126", "0.5491585", "0.5479231", "0.5478667", "0.5475974", "0.54754245", "0.5453396", "0.5437749", "0.5408432"...
0.77389354
0
Update the graph by redrawing the internal texture data.
def aNqy(YKHO, OeYL: float): if YKHO.sprite_lists is None or len(YKHO.sprite_lists) == 0: return JJdK = YKHO.sprite_lists[0] if not jIOH.timings_enabled(): with JJdK.atlas.render_into(YKHO.minimap_texture, projection=YKHO.proj) as _CpO: _CpO.clear(color=(0, 0, 0, 255)) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uJvF(YKHO) -> None:\n YKHO._clear_drawing()\n YKHO.draw_graph(graph=YKHO.graph, axes=YKHO.subplot)\n YKHO.draw_graph(graph=YKHO.graph2, axes=YKHO.subplot2)\n YKHO.draw_mappings(YKHO.mapping)", "def ovlq(YKHO, **B2fa):\n YKHO.current_graph.redraw()", "def uJvF(YKHO) -> None:\n YKHO._clear_...
[ "0.73301584", "0.7203513", "0.7171285", "0.7122468", "0.6981086", "0.682984", "0.6811901", "0.6716891", "0.66613007", "0.65672034", "0.6497443", "0.6478494", "0.6450372", "0.64425576", "0.63823295", "0.6361715", "0.6361715", "0.63509274", "0.634727", "0.6336588", "0.6336588",...
0.6214974
28
Remove selected items from the tree. Because data is stored separately also need to deal with it, but deleting the matching items from the data list and updating all of the data indexes is a bit of a headache, so just make them empty.
def pj0Y(SYsl, J_Es): DumB = J_Es.selectedItems() for ZfUD in DumB: if ZfUD.listIndex: SYsl.ui.workingDataTree.dataItems[ZfUD.listIndex] = [] jgqr.delete(ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dtsK(YKHO):\n if not YKHO.tree_widget.selectedItems():\n YKHO.configuration_widgets.logger.warning('Nothing has been selected. Please select an item and try again.')\n return\n MR8E = YKHO.tree_widget.selectedItems()\n tk5Y = YKHO.tree_widget.invisibleRootItem()\n [(ZfUD.parent() or t...
[ "0.72222024", "0.67945594", "0.6788877", "0.6749571", "0.66043264", "0.6599819", "0.65675104", "0.6546712", "0.6505644", "0.634928", "0.6347942", "0.6327042", "0.632324", "0.63223594", "0.62746567", "0.6272785", "0.6232611", "0.6196286", "0.61239", "0.6118763", "0.6097092", ...
0.72647107
0
Helper function to convert SPARQL results into a Pandas data frame.
def TpEZ(xDcj, zVa7='https://query.wikidata.org/sparql'): wV3n = Fyco(zVa7) wV3n.setQuery(xDcj) wV3n.setReturnFormat(nC76) Aofo = wV3n.query() cHEd = qQXR.load(Aofo.response) WfCS = cHEd['head']['vars'] yvT9 = [] for rdlD in cHEd['results']['bindings']: ZfUD = [] for Z9rn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TpEZ(zVa7, xDcj):\n wV3n = Fyco(zVa7)\n wV3n.setQuery(xDcj)\n wV3n.setReturnFormat(nC76)\n Aofo = wV3n.query()\n cHEd = qQXR.load(Aofo.response)\n WfCS = cHEd['head']['vars']\n yvT9 = []\n for rdlD in cHEd['results']['bindings']:\n ZfUD = []\n for Z9rn in WfCS:\n ...
[ "0.7584528", "0.7129623", "0.7129623", "0.711426", "0.7094009", "0.7050637", "0.70471936", "0.6952182", "0.6945529", "0.6940668", "0.6868899", "0.6827423", "0.6801506", "0.6724016", "0.67137694", "0.6685681", "0.6672927", "0.6663773", "0.66266656", "0.6613739", "0.6602476", ...
0.7614764
0
Return the piece's horizontal position. Property is used here so we only compute position once when needed.
def WKvO(YKHO): if YKHO._x is None: YKHO.compute_coordinates() return YKHO._x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fcr6(YKHO, dQgj):\n pass", "def Fcr6(YKHO, WKvO, LVAh):\n return YKHO._board[LVAh]", "def H4hf(YKHO):\n return YKHO._horizontal", "def vAgg(YKHO):\n return YKHO.position.x", "def YH9x(YKHO):\n return YKHO.rect.x", "def bM2s(YKHO):\n return YKHO._horiz_center", "def bM2s(YKHO):\n ...
[ "0.7555169", "0.71737736", "0.68906856", "0.67113984", "0.66651046", "0.6657736", "0.6657736", "0.66271603", "0.6555104", "0.6521626", "0.64567375", "0.63844174", "0.6338153", "0.6338153", "0.6300035", "0.6295312", "0.6227775", "0.6223017", "0.62109965", "0.620136", "0.615026...
0.0
-1
Return the piece's vertical position. Property is used here so we only compute position once when needed.
def LVAh(YKHO): if YKHO._y is None: YKHO.compute_coordinates() return YKHO._y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def boAb(YKHO):\n return YKHO.rect.y", "def BBTF(YKHO):\n return YKHO.position.y", "def yDCK(YKHO):\n return YKHO.posY", "def CU0i(YKHO):\n return YKHO.__pos_y", "def boAb(YKHO):\n return YKHO.actual_coordinates[1]", "def LVAh(YKHO):\n return YKHO.position.y", "def HQQh(YKHO):\n re...
[ "0.72299945", "0.71392894", "0.70769536", "0.69982135", "0.6946308", "0.69392604", "0.67431444", "0.6726614", "0.6718979", "0.67096394", "0.668686", "0.66658616", "0.6653479", "0.6539394", "0.65354824", "0.6437881", "0.6415131", "0.6410589", "0.6389794", "0.63825667", "0.6372...
0.0
-1
Return the minimum value.
def Kx2j(YKHO) -> float: return aXpi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VmUT(YKHO):\n return YKHO._minimum", "def XcNI(YKHO):\n return YKHO.min", "def XcNI(YKHO):\n return YKHO.min", "def min(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'min')", "def min(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'min')", "def PgG6(YKHO):\n if hasattr(YKHO, ...
[ "0.87291557", "0.8631156", "0.8631156", "0.85999566", "0.85999566", "0.85038835", "0.8491322", "0.8482031", "0.8466204", "0.8466204", "0.8432562", "0.8430932", "0.8430932", "0.8421418", "0.8405366", "0.8311868", "0.82909995", "0.8286746", "0.8284653", "0.8281578", "0.8255062"...
0.8165567
22
Return the maximum value.
def X4Qf(YKHO) -> float: return l_wm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BfFQ(YKHO):\n bQ6z = max(YKHO.values)\n return bQ6z", "def ZWqN(YKHO):\n return YKHO._maximum", "def qfB5(YKHO):\n return YKHO._max", "def qfB5(YKHO):\n return YKHO.max[-1]", "def YClg(YKHO):\n if hasattr(YKHO, '_maximum_value'):\n return YKHO._maximum_value\n return None", ...
[ "0.8933136", "0.88841957", "0.87473977", "0.861131", "0.8606676", "0.85935724", "0.8586842", "0.8532539", "0.8532539", "0.8495911", "0.8495911", "0.8488697", "0.8487578", "0.8399635", "0.83845997", "0.836424", "0.83359325", "0.8262177", "0.8261219", "0.8261219", "0.8256761", ...
0.8079731
31
Return Name of device.
def mWFP(YKHO): return f'{ueYb(YKHO._data, 0, YKHO._name)}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO.device.name()", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name']", "def yxaP(YKHO) -> h8nf[str]:\...
[ "0.891022", "0.891022", "0.891022", "0.8865886", "0.87226844", "0.8687004", "0.8687004", "0.8627558", "0.8609878", "0.8509157", "0.8509157", "0.8476352", "0.84732556", "0.8449398", "0.8261127", "0.8234234", "0.8221397", "0.81503457", "0.81250376", "0.8083982", "0.79021084", ...
0.8831564
4
Return device specific attributes.
def GWuV(YKHO): return {'name': ueYb(YKHO._data, 0), 'identifiers': {(Sugg, Sph8(YKHO._data, 0))}, 'manufacturer': YhHo, 'model': YKHO._data.wiserhub.system.product_type, 'sw_version': YKHO._data.wiserhub.system.firmware_version, 'via_device': (Sugg, YKHO._data.wiserhub.system.name)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def azoT(YKHO, jf3N=0):\n return lDLs.Device(jf3N).get_attributes()", "def GWuV(YKHO) -> h8nf[cuzp[str, ImMB]]:\n return {r2U0: YKHO.name, 'identifiers': {(Sugg, YKHO._device.device_id)}}", "def R1i3(YKHO):\n o8Kj = {PlJk: v7XK, XwgO: YKHO.unique_id}\n return o8Kj", "def jjN6(YKHO, begE: str) -> ...
[ "0.80724686", "0.7450437", "0.742771", "0.7409806", "0.7293218", "0.72523683", "0.72523683", "0.719905", "0.7175151", "0.7155777", "0.7155777", "0.71476424", "0.7145971", "0.71375567", "0.7095317", "0.7051197", "0.703671", "0.7035435", "0.7017325", "0.7013673", "0.70050514", ...
0.6574845
83
Return the minimum value.
def Kx2j(YKHO) -> float: return -9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VmUT(YKHO):\n return YKHO._minimum", "def XcNI(YKHO):\n return YKHO.min", "def XcNI(YKHO):\n return YKHO.min", "def min(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'min')", "def min(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'min')", "def PgG6(YKHO):\n if hasattr(YKHO, ...
[ "0.87291557", "0.8631156", "0.8631156", "0.85999566", "0.85999566", "0.85038835", "0.8491322", "0.8482031", "0.8466204", "0.8466204", "0.8432562", "0.8430932", "0.8430932", "0.8421418", "0.8405366", "0.8311868", "0.82909995", "0.8286746", "0.8284653", "0.8281578", "0.8255062"...
0.7826625
38
Return the maximum value.
def X4Qf(YKHO) -> float: return 9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BfFQ(YKHO):\n bQ6z = max(YKHO.values)\n return bQ6z", "def ZWqN(YKHO):\n return YKHO._maximum", "def qfB5(YKHO):\n return YKHO._max", "def qfB5(YKHO):\n return YKHO.max[-1]", "def YClg(YKHO):\n if hasattr(YKHO, '_maximum_value'):\n return YKHO._maximum_value\n return None", ...
[ "0.8933136", "0.88841957", "0.87473977", "0.861131", "0.8606676", "0.85935724", "0.8586842", "0.8532539", "0.8532539", "0.8495911", "0.8495911", "0.8488697", "0.8487578", "0.8399635", "0.83845997", "0.836424", "0.83359325", "0.8262177", "0.8261219", "0.8261219", "0.8256761", ...
0.7767184
55
Return Name of device.
def mWFP(YKHO): return f'{ueYb(YKHO._data, YKHO._actuator.id)} Floor Temp Offset'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO.device.name()", "def mWFP(YKHO):\n return f'{ueYb(YKHO._data, 0, YKHO._name)}'", "def mWFP(YKHO):\n return YKHO.device....
[ "0.891022", "0.891022", "0.891022", "0.8865886", "0.8831564", "0.87226844", "0.8687004", "0.8687004", "0.8627558", "0.8609878", "0.8509157", "0.8509157", "0.8476352", "0.84732556", "0.8449398", "0.8261127", "0.8234234", "0.8221397", "0.81503457", "0.81250376", "0.8083982", ...
0.0
-1
Return device specific attributes.
def GWuV(YKHO): return {'name': ueYb(YKHO._data, YKHO._actuator.id), 'identifiers': {(Sugg, Sph8(YKHO._data, YKHO._actuator.id))}, 'via_device': (Sugg, YKHO._data.wiserhub.system.name)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def azoT(YKHO, jf3N=0):\n return lDLs.Device(jf3N).get_attributes()", "def GWuV(YKHO) -> h8nf[cuzp[str, ImMB]]:\n return {r2U0: YKHO.name, 'identifiers': {(Sugg, YKHO._device.device_id)}}", "def R1i3(YKHO):\n o8Kj = {PlJk: v7XK, XwgO: YKHO.unique_id}\n return o8Kj", "def jjN6(YKHO, begE: str) -> ...
[ "0.80724686", "0.7450437", "0.742771", "0.7409806", "0.7293218", "0.72523683", "0.72523683", "0.719905", "0.7175151", "0.7155777", "0.7155777", "0.71476424", "0.7145971", "0.71375567", "0.7095317", "0.7051197", "0.703671", "0.7035435", "0.7017325", "0.7013673", "0.70050514", ...
0.6660786
72
Generate center offset for crop window
def HK1Q(LNo8, JZXy=(218, 178, 3), pan_=128): H2v2, TVTK, YwkQ = JZXy LY6y = oyIN.ceil((H2v2 - pan_) / 2).astype(int) B3RG = oyIN.ceil((TVTK - pan_) / 2).astype(int) return LNo8[LY6y:LY6y + pan_, B3RG:B3RG + pan_, :]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgjH(YKHO):\n xruD = (YKHO.maxz - YKHO.minz) / 2\n return (YKHO.minx + YKHO.width / 2, YKHO.miny + YKHO.height / 2, xruD)", "def QPfM(YKHO):\n YKHO.x = sGMQ * YKHO.col + sGMQ // 2\n YKHO.y = sGMQ * YKHO.row + sGMQ // 2", "def hgjH(YKHO):\n return YKHO._lower + 0.5 * (YKHO._upper - YKHO._lowe...
[ "0.6784088", "0.6756137", "0.6714128", "0.6631258", "0.6611774", "0.6609801", "0.6596732", "0.6587204", "0.6557443", "0.6556682", "0.6531438", "0.6452741", "0.64465266", "0.64361143", "0.6413167", "0.6385451", "0.63821167", "0.6377177", "0.6372448", "0.6344084", "0.6343337", ...
0.6065056
52
Get string with the sim's config_params, inputs, and outputs for the model
def LNug(YKHO): RKD7 = '[FMU Validator] The set of configuration_parameters, inputs, and outputs defined is the following:\n' RKD7 += '\n{}: {}'.format('Sim Config Params -- Brain Config ', YKHO.sim_config_params) RKD7 += '\n{}: {}'.format('Sim Inputs -- Brain Actions ', YKHO.sim_input...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AEHk(ZGE9, qIxc):\n if ZGE9 == 'Tacotron2':\n dyeT = dict(mask_padding=qIxc.mask_padding, n_mel_channels=qIxc.n_mel_channels, n_symbols=qIxc.n_symbols, symbols_embedding_dim=qIxc.symbols_embedding_dim, encoder_kernel_size=qIxc.encoder_kernel_size, encoder_n_convolutions=qIxc.encoder_n_convolutions, e...
[ "0.63613605", "0.6227064", "0.6027238", "0.6021502", "0.59806687", "0.59724784", "0.58838063", "0.5799649", "0.5774296", "0.57192713", "0.5702105", "0.57006687", "0.568292", "0.56661975", "0.5660352", "0.5649805", "0.56424356", "0.56185853", "0.56185603", "0.5617623", "0.5615...
0.737774
0
Initialize model in the sequential manner required.
def Gv23(YKHO, M538=None): YKHO._is_initialized = True YKHO.fmu.instantiate() YKHO.fmu.reset() YKHO.fmu.setupExperiment(startTime=YKHO.start_time) if M538 is not None: YKHO._apply_config(M538) YKHO.fmu.enterInitializationMode() YKHO.fmu.exitInitializationMode() return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gv23(YKHO):\n pass", "def fPO8(YKHO):\n pass", "def uIcm(YKHO, C3ST):\n pass", "def uIcm(YKHO):\n na1r.info('Initializing Model.')\n YKHO.model = YKHO.convert(df=YKHO.training_df)\n if YKHO.bootstraps is not None:\n na1r.info('Bootstrapping Data.')\n YKHO.bootstrap_data()"...
[ "0.7742976", "0.7590463", "0.759012", "0.74840647", "0.7275883", "0.70921814", "0.6888844", "0.68874913", "0.68849003", "0.6871453", "0.68196464", "0.6760278", "0.67510974", "0.6709929", "0.66639215", "0.6652089", "0.6573573", "0.6572885", "0.6565885", "0.6531906", "0.6519555...
0.6732077
13
Get var indices for each (valid) var name provided in list. If none are provided, all outputs are returned.
def M6_7(YKHO, KwLj: List=None): YKHO._model_has_been_initialized('get_states') if KwLj is None: KwLj = YKHO.sim_outputs elif not len(KwLj) > 0: KwLj = YKHO.sim_outputs UUvl = YKHO._get_variables(KwLj) if not len(UUvl.keys()) > 0: print('[get_states] No valid state names have...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DTNZ(YKHO, ja3b: List):\n if type(ja3b) is not type([]):\n print('[_var_names_to_indices] Provided input is not of type list.')\n return []\n Cm5u = []\n paut = []\n for mWFP in ja3b:\n if mWFP not in YKHO.vars_to_idx.keys():\n print(\"[_var_names_to_indices] Invalid...
[ "0.7106208", "0.6794905", "0.6497141", "0.6025208", "0.5968013", "0.5913243", "0.5865424", "0.5832427", "0.57964826", "0.57409185", "0.5729248", "0.57017255", "0.5681039", "0.5604614", "0.5604506", "0.5603223", "0.5594183", "0.55620307", "0.5516843", "0.54871476", "0.5463308"...
0.0
-1
Get a list of all variables in the sim (removing duplicates, if any). Note, list is kept the same from first time this method is called.
def TlxQ(YKHO): if hasattr(YKHO, 'all_var_names'): return YKHO.all_var_names _J3D = [] _J3D.extend(YKHO.sim_config_params) _J3D.extend(YKHO.sim_inputs) _J3D.extend(YKHO.sim_outputs) _J3D.extend(YKHO.sim_other_vars) jRzh = [_J3D[YRbF] for YRbF in range(len(_J3D)) if _J3D[YRbF] not in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lSnF(YKHO):\n return []", "def lSnF(YKHO):\n yvT9 = []\n for YRbF in YKHO.items:\n yvT9 += YRbF.get_all_variables()\n return yvT9", "def lSnF(YKHO):\n yvT9 = []\n for YRbF in YKHO.items:\n yvT9 += YRbF.get_all_variables()\n return yvT9", "def lSnF(YKHO):\n yvT9 = []\...
[ "0.7587621", "0.74283415", "0.74283415", "0.74283415", "0.74034715", "0.73497486", "0.73163354", "0.71726215", "0.7025907", "0.6996247", "0.6937989", "0.6923813", "0.67796665", "0.6772739", "0.67677814", "0.67526543", "0.6719864", "0.6713113", "0.6711427", "0.67106885", "0.66...
0.7627399
0
Get var indices for each (valid) var name provided in list.
def sMR7(YKHO, KwLj: List=None): YKHO._model_has_been_initialized('_get_variables') if KwLj is None: return {} elif not len(KwLj) > 0: return {} hW6o, ua1H = YKHO._var_names_to_indices(KwLj) if not len(hW6o) > 0: return {} NRK2 = dict(zip(ua1H, YKHO.fmu.getReal(hW6o))) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIvi(Ty9i):\n mWFP = Ty9i.varName\n _0VL = mWFP[2:].split(',')\n YRbF, r845 = (int(_0VL[0]), int(_0VL[1]))\n return (YRbF, r845)", "def DTNZ(YKHO, ja3b: List):\n if type(ja3b) is not type([]):\n print('[_var_names_to_indices] Provided input is not of type list.')\n return []\n ...
[ "0.7444971", "0.7400322", "0.6825618", "0.61766595", "0.6171719", "0.6141269", "0.604002", "0.6002675", "0.5954537", "0.58911085", "0.5872941", "0.5856526", "0.5843315", "0.58359766", "0.57936394", "0.579151", "0.5744204", "0.5717505", "0.57010794", "0.56933683", "0.5685582",...
0.0
-1
Get var indices for each var name provided in list.
def DTNZ(YKHO, ja3b: List): if type(ja3b) is not type([]): print('[_var_names_to_indices] Provided input is not of type list.') return [] Cm5u = [] paut = [] for mWFP in ja3b: if mWFP not in YKHO.vars_to_idx.keys(): print("[_var_names_to_indices] Invalid variable name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIvi(Ty9i):\n mWFP = Ty9i.varName\n _0VL = mWFP[2:].split(',')\n YRbF, r845 = (int(_0VL[0]), int(_0VL[1]))\n return (YRbF, r845)", "def d6pt(YKHO, kc1W):\n return [YKHO._variables.index(Ty9i) for Ty9i in kc1W]", "def vars(YKHO):\n return [RELP(YRbF, YKHO.dims[YRbF]) for YRbF in range(YKHO...
[ "0.74116653", "0.6916294", "0.61451054", "0.611666", "0.59596854", "0.5946558", "0.5905192", "0.5892637", "0.58531195", "0.5848885", "0.5842754", "0.5840236", "0.58368546", "0.5804591", "0.5756725", "0.5740407", "0.57103246", "0.56983846", "0.56811184", "0.5670195", "0.565843...
0.72467065
1
Modify the specified group defaults.
def GPtr(YJXy): zIV1 = [] jeGQ = [] CYSX = ['-cc', '-ckv', '-CSEP', '-CSV', '-g', '-H', '-h', '-NV', '-ok', '-r', '-s', '-V', '-VC', '-v', '-x509', '-xA'] if YJXy['retrieve_options']: return zIV1 + jeGQ + CYSX BGqR = uno7(YJXy, zIV1, jeGQ, CYSX, key_map=d5fj) geh0 = G4JS(YJXy, '/server/c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G_hU(YKHO, **YSA3):\n uOe2 = YSA3.pop('group', None)\n for z1Rg, Ty9i in YSA3.items():\n YKHO.cfg_fixture.set_default(z1Rg, Ty9i, group=uOe2)", "def k3FF(YKHO):\n muwo = YKHO.getDefaultGroupContainer(_name='defaults', diff_command=YKHO.general.diff_command, cia_rpc_server=YKHO.general.cia_rpc...
[ "0.7184848", "0.6596516", "0.6438077", "0.6252312", "0.6243312", "0.6232612", "0.62150013", "0.59281456", "0.59254956", "0.59022254", "0.589668", "0.587396", "0.58705354", "0.58090675", "0.58086026", "0.5792662", "0.5790622", "0.5790524", "0.5772414", "0.5770209", "0.57333934...
0.0
-1
Gets the current team's score from the API
def Dbzs(YKHO): for BH3N in YKHO._get_live_games(): ceEK = [WKvO['abbreviation'] for d6pt, WKvO in BH3N['teams'].items()] if YKHO.team in ceEK: return int(BH3N['scores'][YKHO.team])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1kx(YKHO):\n return YKHO.client.call('GET', YKHO.name + 'score')", "def vNP6(nPrm):\n return p1kx", "def hckV(YKHO):\n return YKHO.score", "def lZRP(YKHO):\n return YKHO.score", "def hckV(YKHO):\n return YKHO.score", "def hckV(YKHO):\n return YKHO.score", "def hckV(YKHO):\n re...
[ "0.7527059", "0.72310585", "0.6813954", "0.681293", "0.675793", "0.675793", "0.675793", "0.66784096", "0.66253316", "0.6584562", "0.6568987", "0.6539687", "0.6478145", "0.6478145", "0.6478145", "0.64599675", "0.6432476", "0.63932824", "0.63802594", "0.6361858", "0.6353685", ...
0.7543717
0
Determines if two polarized photons are identical (same energy, direction and polarization).
def xa14(YKHO, SkC9): if (YKHO.energy() == SkC9.energy() and YKHO.unitDirectionVector() == SkC9.unitDirectionVector()) and YKHO._Esigma.complexAmplitude() == SkC9._Esigma.complexAmplitude() and (YKHO._Epi.complexAmplitude() == SkC9._Epi.complexAmplitude()): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sxSj(YKHO, Elif):\n if YKHO.angles != Elif.angles:\n return False\n e2AD = YKHO.perimeter() / Elif.perimeter()\n for YRbF in range(len(YKHO.lengths)):\n if YKHO.lengths[YRbF] / Elif.lengths[YRbF] != e2AD:\n return False\n return True", "def q3C6(YKHO, Elif) -> bool:\n ...
[ "0.68101615", "0.6614083", "0.65789586", "0.64757085", "0.64612556", "0.6421079", "0.6401745", "0.63870627", "0.63730395", "0.6364115", "0.6333348", "0.6290905", "0.6201502", "0.6198665", "0.6136013", "0.6116805", "0.6093822", "0.6086045", "0.60715705", "0.606903", "0.6060494...
0.5732779
84
Determines if two polarized photons are not identical (same energy, direction and polarization).
def Vdqg(YKHO, SkC9): return not YKHO == SkC9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sxSj(YKHO, Elif):\n if YKHO.angles != Elif.angles:\n return False\n e2AD = YKHO.perimeter() / Elif.perimeter()\n for YRbF in range(len(YKHO.lengths)):\n if YKHO.lengths[YRbF] / Elif.lengths[YRbF] != e2AD:\n return False\n return True", "def Vdqg(YKHO, Elif):\n return Y...
[ "0.67724645", "0.6738176", "0.65756047", "0.6330637", "0.63286847", "0.6316591", "0.63129854", "0.6303219", "0.62443715", "0.62213105", "0.61847687", "0.61709136", "0.6159082", "0.61590666", "0.6127881", "0.6122283", "0.60869306", "0.607861", "0.6044467", "0.6021837", "0.6010...
0.0
-1