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
Support convenient keyword arguments and change the default boxplot style. Important This function wraps `~matplotlib.axes.Axes.boxplot`.
def ZOAv(YKHO, *qIxc, JBMS=None, B9EC=None, LGJQ=True, lKb2=None, tzbc=None, skyf=None, ZSG5=None, qfpW=None, YY_u=None, VBdF=None, kwb6=None, aQ2p=None, ufAa=None, dTt9=None, wlDS=None, ucbT=None, sHmD=None, GT7Y=None, PktX=None, c7KZ=None, RWp7=None, n7oh=None, axWi=None, royv=None, kTL8=None, GfLp=None, dYBG=None, R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yER9(aNZO, WKvO, LVAh, P1dF, r2gD, Qzoi, kTL8='magenta'):\n I0M6 = {'color': kTL8, 'linewidth': 2}\n plHX = {'color': 'black', 'linestyle': '-'}\n W7B7 = {'color': 'black', 'linestyle': '-'}\n dCyh = {'color': 'black', 'linestyle': '-'}\n uLCq = {'color': 'black', 'marker': 'x'}\n aNZO.boxplo...
[ "0.70661396", "0.6717219", "0.6572081", "0.64261633", "0.6353482", "0.6249762", "0.6122135", "0.60474485", "0.60449153", "0.60111177", "0.59860617", "0.5971718", "0.59685916", "0.5964264", "0.5922844", "0.592033", "0.58533245", "0.58428067", "0.5830291", "0.58027494", "0.5772...
0.70291525
1
Determine if an object is a valid instance of a given GeoJSON type. Right now this is only used with the Feature GeoJSON type but this will be expanded.
def Ymol(YEnM: dict, nLHM: str) -> bool: try: QF7s = next((a1PO + '.json' for a1PO in IFI9 if a1PO.lower() == nLHM.lower())) except StopIteration: raise aJyw(f'Specified geojson_type ({nLHM}) does not match a supported GeoJSON type.') Ux0P = yt7q / QF7s with open(Ux0P, 'r') as zZcM: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e8zD(YKHO, YEnM):\n return isinstance(YEnM, YKHO.type_)", "def WUsn(YEnM: Any) -> bool:\n return type(YEnM).__name__ == 'type'", "def YB0o(Jold, a9EH=zR2c.ANDROID):\n if a9EH == zR2c.ANDROID:\n return Jold.obj_type in tA4a.keys()\n else:\n assert False, 'Wrong Platform'", "def K...
[ "0.7187538", "0.6600167", "0.65878046", "0.6538357", "0.6481669", "0.64806205", "0.6463608", "0.64477694", "0.64189196", "0.63908225", "0.6362091", "0.6348353", "0.63475704", "0.630314", "0.62129635", "0.62125003", "0.61813396", "0.6166474", "0.61458623", "0.6129726", "0.6123...
0.8293936
0
This is a factory function for creating the correct profile class
def UsdN(mWFP, C9U5): QAlD = {'time': Kmii, 'streq': LV2Q, 'domain': Nlmb, 'use': qFe1} return QAlD[mWFP](C9U5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nPrm=None, **YSA3):\n\n def j_F6(O4Fb):\n from solariat_bottle.db.user_profiles.social_profile import DELIMITER, TwitterProfile, FacebookProfile\n oeNL = QMSQ(O4Fb).rfind(DELIMITER) + 1\n if oeNL == 0:\n return YKHO.__class__\n a9EH = None\n try:\n ...
[ "0.6842044", "0.67778605", "0.66458404", "0.6508503", "0.6463637", "0.63409054", "0.633302", "0.6195569", "0.61947244", "0.6172852", "0.61552906", "0.6130558", "0.6116768", "0.6093168", "0.6080638", "0.6045534", "0.6033012", "0.6008745", "0.6008745", "0.6007816", "0.6001435",...
0.5924465
33
Update a datasource connection based on id.
def mj1Q(UzPC, id, TBsA, tf1m=None): bD7m = f'{UzPC.base_url}/api/datasources/connections/{id}' for Aege in TBsA['operationList']: oZLy(Aege, '/datasourceLogin', '/databaseLoginId') geh0 = UzPC.session.patch(url=bD7m, json=TBsA) if not geh0.ok: if tf1m is None: tf1m = f'Error...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VOhe(UzPC, id, TBsA, tf1m=None):\n bD7m = f'{UzPC.base_url}/api/datasources/{id}'\n for Aege in TBsA['operationList']:\n Aege = oZLy(Aege, '/datasourceConnection', '/databaseConnectionId')\n Aege = oZLy(Aege, '/primaryDatasource', '/databasePrimaryDatasourceId')\n Aege = oZLy(Aege, '...
[ "0.6917262", "0.5575786", "0.54998964", "0.5476718", "0.52564263", "0.52509683", "0.52483374", "0.52230465", "0.51892686", "0.51857996", "0.51718533", "0.5149414", "0.51482207", "0.5143557", "0.51340216", "0.51308256", "0.51249486", "0.5115287", "0.5109345", "0.5092116", "0.5...
0.7393521
0
Method to return the indexes of the children link ids of a given link index.
def mBXv(YKHO, V317): bS0K = [] for YRbF in range(len(txDd.InfoPopulator.LINK_PARENT_CHILD_RELATION)): if V317 == txDd.InfoPopulator.LINK_PARENT_CHILD_RELATION[YRbF][0]: bS0K.append(YKHO.get_link_index(txDd.InfoPopulator.LINK_PARENT_CHILD_RELATION[YRbF][1])) return bS0K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVJu(YKHO, HFkI: int) -> x1iM[int]:\n pSDG = HFkI * 2\n DgkF = pSDG + 1\n l3FH = pSDG + 2\n return [DgkF, l3FH]", "def Q39W(YKHO):\n return YKHO._children_ids", "def nXyG(or8S: int):\n return (2 * or8S + 1, 2 * or8S + 2)", "def pNo4(YKHO, d6pt):\n _0VL = []\n if len(YKHO.adjacency...
[ "0.7037743", "0.6621831", "0.6541017", "0.6464701", "0.62523526", "0.61869526", "0.61356086", "0.6060696", "0.60183406", "0.5937082", "0.5887544", "0.5866574", "0.5838167", "0.5837109", "0.57871544", "0.5764572", "0.56717837", "0.5665025", "0.56470746", "0.56073725", "0.55945...
0.867098
0
Renders the application home page
def kZiy(QePW): G9jH.info(QePW.POST) CBIr = QePW.user MjXI = 'allowed' if CBIr.is_authenticated() else '' if not MjXI: return SGJU('intro.html', locals(), context_instance=K1Ja(QePW)) return Yd7Q('/groups/')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZ...
[ "0.865591", "0.85281825", "0.8400584", "0.8330568", "0.8330568", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "0.8322108", "...
0.0
-1
Renders the groups home
def moMn(QePW): moMn = zNu8.objects.all() CBIr = QePW.user MjXI = 'allowed' if CBIr.is_authenticated() else '' xfXF = False basH = I54q() return SGJU('home.html', locals())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n uOe2 = cQ68.objects.random()\n return SGJU('group.html', locals(), context_instance=K1Ja(QePW))", "def BMoK(QePW, l3QB):\n CBIr = QePW.user\n uOe2 = zNu8.objects.get(slug=l3QB)\n MjXI = ''\n if not uOe2:\n raise uhgT(\"Can't find a group with the slug: %s\" % l3QB)\n ...
[ "0.7267726", "0.6881474", "0.6773615", "0.64007443", "0.6372308", "0.6366702", "0.6312354", "0.630933", "0.6249941", "0.62382644", "0.6216164", "0.62087464", "0.6160828", "0.61308545", "0.61278707", "0.61278707", "0.6117747", "0.6117747", "0.6117747", "0.6117747", "0.6117747"...
0.6666453
3
Homepage of a group, displaying the group's description & active content.
def BMoK(QePW, l3QB): CBIr = QePW.user uOe2 = zNu8.objects.get(slug=l3QB) MjXI = '' if not uOe2: raise uhgT("Can't find a group with the slug: %s" % l3QB) else: nM44 = OXs6(CBIr, uOe2) if nM44 != 3 and nM44 != 'Not logged in': MjXI = 'allowed' xDcj = uOe2.miss...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n uOe2 = cQ68.objects.random()\n return SGJU('group.html', locals(), context_instance=K1Ja(QePW))", "def nUHY(YKHO, uOe2):\n YKHO._current_group = uOe2", "def RMFp():\n return TvZl('home/a_homepage.html', title='Homepage Admin')", "def b8V_(YKHO, cuiw: Session) -> None:\n fRFN ...
[ "0.6771717", "0.64504755", "0.6240646", "0.6039981", "0.60061455", "0.5985877", "0.59748685", "0.59410596", "0.58859944", "0.5858548", "0.58177614", "0.5777301", "0.57494056", "0.57359445", "0.5731679", "0.5668256", "0.566821", "0.5665454", "0.56565124", "0.5637726", "0.56297...
0.70152926
0
Returns a date string in the TXF format, which is MM/DD/YYYY.
def GX6r(_c1T): return _c1T.strftime('%m/%d/%Y')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Scb1(YKHO, a1PO):\n return ITS7.strftime('%m/%d/%Y', ITS7.gmtime(float(a1PO)))", "def _c1T() -> str:\n return qcWV.strftime(qcWV.today(), uQMc)", "def JvEs(_c1T):\n CjKC = _c1T.day\n x0eS = _c1T.month\n lO87 = _c1T.year\n quSE = str(x0eS) + '/'\n quSE += str(CjKC) + '/'\n quSE += st...
[ "0.7233908", "0.7114718", "0.70269245", "0.6768055", "0.67452437", "0.67276955", "0.6631584", "0.65468127", "0.6497827", "0.6423727", "0.63926196", "0.6388991", "0.63318235", "0.6328677", "0.63170004", "0.6294702", "0.62929684", "0.6290279", "0.62850285", "0.6275938", "0.6244...
0.8131406
0
Sets the data_source_name of this ReportFilterConnection.
def Oew3(YKHO, Oew3): YKHO._data_source_name = Oew3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wfSW(YKHO, UBGL):\n YKHO.data_source = UBGL", "def IXao(YKHO, IXao):\n YKHO._data_source_display_name = IXao", "def xUuB(YKHO, KoHv):\n YKHO.source = KoHv", "def GMlU(YKHO, m5Tx):\n YKHO._default_DataSource = YKHO._get_obj_from_str(m5Tx)\n print('Setting default DataSource to {} version {}...
[ "0.70039153", "0.68002874", "0.6757543", "0.63783085", "0.6329608", "0.61506903", "0.60687876", "0.6038596", "0.6005333", "0.5926186", "0.57952255", "0.57683146", "0.5733289", "0.56510305", "0.55500877", "0.5538222", "0.54760617", "0.5471781", "0.54453117", "0.5435626", "0.54...
0.8401654
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, DJDh): 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.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
return the number of ways to change any given amount. Available coins are also passed as argument to the function. >>> count_change(10, [1, 5]) 3 >>> count_change(10, [1, 2]) 6 >>> count_change(100, [1, 5, 10, 25, 50]) 292 >>> count_change(200, [1, 2, 5, 10, 20, 50, 100, 200]) 73682
def fr1p(Z5kt, waMw): if Z5kt == 0: return 1 elif waMw == []: return 0 else: UHFx = 0 exwG = Z5kt / waMw[0] for YRbF in range(exwG + 1): nZuS = waMw[0] * YRbF UHFx += fr1p(Z5kt - nZuS, waMw[1:]) return UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fr1p(Z5kt):\n xAU6 = [2 ** YRbF for YRbF in range(Z5kt + 1) if 2 ** YRbF <= Z5kt]\n xAU6 = sorted(xAU6, reverse=True)\n u54L = len(xAU6)\n\n def B0gN(j_GF, YRbF, xAU6, u54L):\n if YRbF >= u54L:\n return 0\n if j_GF == 0:\n return 1\n elif j_GF < 0:\n ...
[ "0.7798518", "0.7776868", "0.76432", "0.7214048", "0.7172765", "0.71469384", "0.6809384", "0.67461157", "0.6378696", "0.6347909", "0.6276754", "0.61886907", "0.6129294", "0.6061304", "0.5978411", "0.58619744", "0.5760776", "0.5733221", "0.5596031", "0.5583245", "0.55715746", ...
0.7586695
3
Test the email for a new user is normalized
def saHt(YKHO): D3lj = 'test@TEST.com' CBIr = egNl().objects.create_user(email=D3lj, password=YKHO.test_user_pass, name=YKHO.test_user_name) YKHO.assertEqual(CBIr.email, D3lj.lower())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def saHt(YKHO):\n D3lj = 'test@GOOGLE.COM'\n CBIr = egNl().objects.create_user(D3lj, '212ds')\n YKHO.assertEqual(CBIr.email, D3lj.lower())", "def H6gL(YKHO):\n D3lj = 'test@RANDOMEMAIL.org'\n CBIr = egNl().objects.create_user(D3lj, password='password')\n YKHO.assertEqual(CBIr.email, D3lj.lower(...
[ "0.79984254", "0.7997281", "0.79201037", "0.78920823", "0.78920823", "0.78920823", "0.7871696", "0.78619236", "0.785927", "0.7858499", "0.7844939", "0.7773778", "0.7771046", "0.7745209", "0.7744957", "0.7702127", "0.75698525", "0.75344014", "0.74174696", "0.7257744", "0.71476...
0.7853585
10
Test creating user with no email raises error
def V97d(YKHO): with YKHO.assertRaises(ValueError): egNl().objects.create_user(email=None, password=YKHO.test_user_pass, name=YKHO.test_user_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q5xs(YKHO):\n with trZe.raises(ValueError) as wrFM:\n biYH.objects._create_user(None, None, False, False)\n YKHO.assertIn('email must be set', str(wrFM.value))", "def hhyC(YKHO):\n with YKHO.assertRaises(ValueError):\n egNl().objects.create_user(None, 'Test1234')", "def FfRJ(YKHO):\n...
[ "0.90313256", "0.8963383", "0.8736711", "0.8736247", "0.87256855", "0.8717645", "0.87146974", "0.87146974", "0.87146974", "0.87146974", "0.87146974", "0.87053293", "0.87032956", "0.8700956", "0.869592", "0.86902976", "0.8681168", "0.86709315", "0.8597593", "0.85930586", "0.85...
0.8557775
21
Return an RGB colour array of the value placed on a linear colour gradient. The argument value should be a number between zero and one. The start and end colours can either be strings or RGB colour arrays.
def faKA(BWXx, yKcO, Os4s, VdAn=None): if isinstance(yKcO, str): if VdAn == None: try: yKcO = skDs(yKcO) except: yKcO = ylyf(yKcO) elif VdAn == 'molmol': yKcO = skDs(yKcO) elif VdAn == 'x11': yKcO = ylyf(yKcO) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E6Bu(YKHO, gkPT, TdZE, exwG):\n d9im = [gkPT]\n for a1PO in range(1, exwG):\n JWJh = [int(gkPT[r845] + float(a1PO) / (exwG - 1) * (TdZE[r845] - gkPT[r845])) for r845 in range(3)]\n d9im.append(JWJh)\n return d9im", "def faKA(SGZs, HQnY='#FFFFFF', exwG=10):\n if HQnY == 'opaque':\n ...
[ "0.6797874", "0.64000934", "0.62669384", "0.6248822", "0.61992866", "0.6170552", "0.59006846", "0.5836825", "0.5718993", "0.5718993", "0.5718993", "0.5718993", "0.57020015", "0.5634084", "0.5573756", "0.55539155", "0.5540418", "0.5517445", "0.5508028", "0.54978454", "0.545114...
0.81829035
0
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key
def NMoC(YKHO, G1Hx: int) -> int: YRbF = G1Hx % YKHO.capacity DpUl = YKHO.data[YRbF] while DpUl: if DpUl.pair[0] == G1Hx: return DpUl.pair[1] else: DpUl = DpUl.next return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew: int) -> int:\n if H5ew not in YKHO.map:\n return -1\n return YKHO.map[H5ew]", "def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap.keys():\n return YKHO.hashmap[H5ew]\n else:\n return -1", "def NMoC(YKHO, H5ew: int) -> int:\n lWrn = H5ew % 37\n ...
[ "0.80042744", "0.7910075", "0.7629806", "0.7565862", "0.75574356", "0.7530217", "0.75266016", "0.7493717", "0.7374892", "0.72957647", "0.72944045", "0.7222471", "0.7217407", "0.718173", "0.7178819", "0.7163424", "0.6981922", "0.6929469", "0.6786084", "0.6757723", "0.67340237"...
0.0
-1
Removes lines with '' keyword and removes parts, like $ab24b, from words
def Rr_b(Ol8d): SxY3 = [] for zFiD in Ol8d.split('\n'): if '<generated>' in zFiD.lower(): continue if waqs(zFiD) or lJ9G(zFiD): continue for o61b in ['\\$', '@']: EFLa = set() for r8hN in ZbWC.finditer('%s+(.+?)\\b' % o61b, zFiD): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0SS(GIN8):\n GIN8 = GIN8.lower()\n di0c = ['of', 'and', 'to', 'at', 'in', '@']\n GIN8 = ZbWC.sub('[\\\\&/\\\\-\\\\(\\\\)\\\\|\\\\@,\\\\]\\\\[]+', ' ', GIN8)\n for O8cl in di0c:\n mXDZ = '\\\\b' + O8cl + '\\\\b'\n mXDZ = ZbWC.compile(mXDZ)\n GIN8 = ZbWC.sub(mXDZ, '', GIN8)\n ...
[ "0.6548206", "0.6403611", "0.6256447", "0.6228192", "0.6182673", "0.61396646", "0.6102278", "0.6072348", "0.6037634", "0.6030601", "0.6030601", "0.6030601", "0.6030601", "0.6030601", "0.6030601", "0.59951806", "0.594404", "0.59264064", "0.5916763", "0.5906881", "0.5902903", ...
0.0
-1
Updates the boundary condition of pressure based on the flow field.
def WSmE(YKHO, wspz: FlowFieldMap, pb9w: FlowFieldMap): JyR5 = [[None, None], [None, None], [None, None]] qRFD = ['u', 'v', 'w'] qizI = (YKHO._params.dx, YKHO._params.dy, YKHO._params.dz) def nVop(eHNT, tpio): """Computes the diffusion term in a specific dimension.""" Sjs1 = (lambda eHN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, P6KM='global', iPqd='True', xqoZ='None'):\n if P6KM == 'inside':\n super(szL4, YKHO).update('conditions', iPqd, 'None')\n YKHO.on = False\n YKHO.applyTo = 'inside'\n else:\n super(szL4, YKHO).update(P6KM, iPqd, 'None')", "def ve_K(YKHO, WbAn):\n NGHN = {'foam:0...
[ "0.59902203", "0.58896095", "0.58589864", "0.58041596", "0.5701504", "0.5700715", "0.5629401", "0.55757767", "0.552746", "0.54171693", "0.5392108", "0.53157026", "0.52962834", "0.52475595", "0.5196572", "0.51666063", "0.51650226", "0.5154833", "0.51129824", "0.507854", "0.505...
0.5516662
9
Computes the diffusion term at walls.
def jjFk(VU_J: tf.Tensor, zZaI: tf.Tensor, CMi7: tf.Tensor) -> ZylS.Tensor: return VU_J * (4.0 / 3.0 * zZaI + 1.0 / 3.0 * CMi7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1qM(YKHO):\n rVnq = H4yH.ones(YKHO.image_red.shape)\n if len(YKHO.mask_id[0]) > 0:\n rVnq[YKHO.mask_id] = 0\n YKHO.wall_distance = MUoY.distance(rVnq, dx=YKHO.pixel_size)\n Ro40 = H4yH.gradient(YKHO.wall_distance, edge_order=2)\n ozxp = Ro40[1] / YKHO.pixel_size\n qDYc...
[ "0.66568696", "0.6012638", "0.56698394", "0.56135094", "0.553084", "0.5471315", "0.5401082", "0.5390548", "0.53496104", "0.5349468", "0.53459954", "0.5319868", "0.5314257", "0.5308811", "0.5250063", "0.5243277", "0.52415586", "0.52352196", "0.5232406", "0.52219284", "0.521995...
0.0
-1
Init linked list object with optioanl itterable.
def FIMM(YKHO, OxJJ=None): YKHO.head = None YKHO.iterable = OxJJ if OxJJ is not None: try: for YRbF in OxJJ: YKHO.insert(YRbF) except TypeError: print('value is not an interable')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, DbxN):\n YKHO.stepforward = int(DbxN)\n YKHO.data = ia5I()", "def FIMM(YKHO, yv6U=[]):\n YKHO.__length = 0\n YKHO.__head = None\n for tTpl in yv6U:\n YKHO.add(tTpl)", "def FIMM(YKHO, mcM9: object):\n YKHO.current_node = mcM9._head", "def FIMM(YKHO, aBwG=None):\n try...
[ "0.66827315", "0.6606495", "0.65991396", "0.65904737", "0.6537204", "0.6537204", "0.64759624", "0.6452128", "0.6452128", "0.6452128", "0.64513457", "0.64356077", "0.6431038", "0.6423537", "0.64079875", "0.64079875", "0.64079875", "0.64079875", "0.64079875", "0.64079875", "0.6...
0.0
-1
Insert new node at head of list.
def JPHp(YKHO, wEf2): Esd_ = o7DN(wEf2) Esd_.next = YKHO.head YKHO.head = Esd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZi3(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.head = Msxl(nPrm)\n else:\n ycBG = YKHO.head\n YKHO.head = Msxl(nPrm)\n YKHO.head.next = ycBG", "def _m17(YKHO, nPrm):\n Q6kx = o7DN(nPrm)\n if YKHO.is_empty():\n YKHO.head = Q6kx\n else:\n Q6kx.next = Y...
[ "0.7990548", "0.78612727", "0.750257", "0.74800813", "0.7466171", "0.74588954", "0.7441015", "0.74356997", "0.7426098", "0.73962426", "0.73894817", "0.7388376", "0.73828065", "0.7376425", "0.7363219", "0.73528856", "0.73235005", "0.7303536", "0.728345", "0.7266461", "0.726568...
0.70561796
33
Return converted to UTC.
def h6AV(NBcv, O3lX='%m/%d/%Y %I:%M:%S %p'): NBcv = aA6B(NBcv) SjQe = yl4j.tzutc() t79W = yl4j.tzlocal() FVwh = NBcv.generation_time FVwh = FVwh.replace(tzinfo=SjQe) _ow4 = FVwh.astimezone(t79W) return _ow4.strftime(O3lX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h5YN(YKHO):\n return YKHO._utc", "def IFrW(YKHO, _c1T):\n if _c1T.tzinfo is not None:\n _c1T = _c1T.astimezone(YKHO.tz_utc)\n else:\n _c1T = _c1T.replace(tzinfo=YKHO.tz_local)\n _c1T = _c1T.astimezone(YKHO.tz_utc)\n return _c1T", "def QkJD(_c1T):\n return _c1T + (qcWV.ut...
[ "0.7237011", "0.72318196", "0.69607633", "0.69415265", "0.6914583", "0.67269593", "0.6687664", "0.6680496", "0.6631392", "0.6629553", "0.661339", "0.65730214", "0.65478396", "0.65169936", "0.6507937", "0.6506579", "0.6502555", "0.6496025", "0.6490228", "0.64823437", "0.643121...
0.0
-1
Timeseries binning (w/overlapping windows).
def kAtl(WKvO, LVAh, BQGg=None, bYzl=None, Jw7X=1 / 12.0, KnxT=3 / 12.0, pTn1=False, BjRM=False): if BQGg is None: BQGg = oyIN.nanmin(WKvO) if bYzl is None: bYzl = oyIN.nanmax(WKvO) paSp = oyIN.arange(BQGg, bYzl, Jw7X) Pyrc = [(xTkX, xTkX + KnxT) for xTkX in paSp] ywwl = len(Pyrc) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wSfk(NYq0, cntZ, XVAW, nkck):\n ihOW = []\n fkmE = range(cntZ, int(XVAW) + int(XVAW) % nkck, nkck)\n for EjUF in NYq0:\n rxHD = []\n BKXG = EjUF[0]\n YRbF = 0\n for nkck in fkmE:\n G1Hx = 0\n while BKXG < nkck:\n YRbF += 1\n ...
[ "0.7328357", "0.7048977", "0.66366595", "0.66277015", "0.6603396", "0.6476304", "0.6432733", "0.64197123", "0.6341331", "0.6329092", "0.63268715", "0.62762606", "0.61979806", "0.61776334", "0.61697716", "0.6157338", "0.61491776", "0.613122", "0.61219186", "0.61166567", "0.609...
0.6728555
2
Adjust the parameter validator range based on the dac resolution. The dac's of the IVVI have a finite resolution. If the validator range min and max values are not values the dac's can actually have, then it can occur that a set command results in the dac's going to a value just outside the validator range. Adjusting t...
def QEtW(YKHO, xqoZ): if not isinstance(xqoZ.vals, cRTq): raise Exception('Only the Numbers validator is supported.') kpLf = xqoZ.vals._min_value JCoA = xqoZ.vals._max_value anoD = YKHO.round_dac(kpLf, xqoZ.name) MhMd = YKHO.round_dac(JCoA, xqoZ.name) xqoZ.vals = cRTq(anoD, MhMd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YW7o(YKHO, dgIT, bQ6z):\n YKHO.out_min = dgIT\n YKHO.out_max = bQ6z\n if YKHO.out_min > YKHO.out_max:\n print('set_output_limits(): min must be smaller than max.')\n YKHO.iterm = YKHO.clip_to_output_limits(YKHO.iterm)\n YKHO.output = YKHO.clip_to_output_limits(YKHO.output)", "def aeg6(Y...
[ "0.6407683", "0.61399066", "0.60842466", "0.6050281", "0.60262334", "0.5997609", "0.5955112", "0.5934583", "0.5894086", "0.58611035", "0.5822199", "0.58186823", "0.5766734", "0.57579446", "0.57494354", "0.5724898", "0.5713188", "0.5711295", "0.56835717", "0.5676955", "0.56657...
0.7090329
0
Create a coordinate dimension feed that correctly incorperates partial batches.
def FIMM(YKHO, Da2o: CoordinateFeed, LWyt=10): YKHO.num_parallel_calls = ZylS.convert_to_tensor(LWyt, ZylS.int32) YKHO.coord_feed = Da2o YKHO.dim_feed = YKHO.coord_feed.feed.map(YKHO.correct_dims, num_parallel_calls=YKHO.num_parallel_calls) YKHO.feed = YKHO.dim_feed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SqOW(WKvO):\n return WKvO.view(1, WKvO.size()[0], WKvO.size()[1], WKvO.size()[2])", "def Cw1M(YKHO, EcVT):\n ywwl = ZylS.shape(EcVT)[0]\n YBiy = ZylS.reduce_prod(YKHO.coord_feed.dims[1:])\n return ZylS.concat([[ZylS.math.floordiv(ywwl, YBiy)], YKHO.coord_feed.dims[1:]], axis=0)", "def FIMM(YKHO...
[ "0.63455623", "0.6150244", "0.6049258", "0.59853786", "0.57852656", "0.57556283", "0.5726321", "0.5698989", "0.5675836", "0.56741816", "0.5671982", "0.56666076", "0.56292367", "0.55923486", "0.5589679", "0.5556767", "0.5554053", "0.555086", "0.5530958", "0.55226696", "0.55159...
0.6581349
0
Set axes for the diagram. All data will be plotted in these axes.
def xJuz(YKHO, aNZO): YKHO.ax = aNZO aNZO.grid() csat = YKHO.ylabel if YKHO.yunit: csat += ' [' + YKHO.yunit + ']' aNZO.set_ylabel(csat) AI8B = YKHO.xlabel if YKHO.xunit: AI8B += ' [' + YKHO.xunit + ']' aNZO.set_xlabel(AI8B)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DWKM(MPlV, VoLU, IICq, jk7u, rTQi, Fatx, ZxUn, Dy_V):\n MPlV.set_xlabel(VoLU)\n MPlV.set_ylabel(IICq)\n MPlV.set_xscale(Fatx)\n MPlV.set_yscale(ZxUn)\n MPlV.set_xlim(jk7u)\n MPlV.set_ylim(rTQi)\n if Dy_V:\n MPlV.legend(Dy_V)\n MPlV.grid()", "def DWKM(MPlV, VoLU, IICq, jk7u, rTQ...
[ "0.77359694", "0.77359694", "0.77359694", "0.76407284", "0.7521462", "0.73066485", "0.7247325", "0.71703887", "0.6859074", "0.67967325", "0.67759585", "0.67585105", "0.6744162", "0.6675193", "0.6644966", "0.6560692", "0.65567523", "0.6531188", "0.65248716", "0.6468362", "0.64...
0.7144131
8
Customizes the output of a quaternion as a tuple given a particular representation. Since all quaternions 'look the same', the q_type after the tuple tries to summarize how this quaternions came into being. Quiet turns off printing the q_type.
def zAg0(YKHO, LpOW: bool=True) -> str: jopa = YKHO.q_type if LpOW: jopa = '' vIwR = '' if YKHO.representation == '': vIwR = f'({YKHO.t}, {YKHO.x}, {YKHO.y}, {YKHO.z}) {jopa}' elif YKHO.representation == 'polar': sWfS = YKHO.txyz_2_representation('polar') vIwR = f'({s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return 'Quaternion({}, {}, {}, {})'.format(repr(YKHO.q[0]), repr(YKHO.q[1]), repr(YKHO.q[2]), repr(YKHO.q[3]))", "def kLcZ(YKHO):\n RBKS = ''.join(YKHO.type)\n sg5m = [YKHO.hydrophobicity, YKHO.polarity, YKHO.volume, YKHO.rsa, YKHO.q3]\n return (RBKS, tuple((XP5J for XP5J in sg5m)))...
[ "0.6524928", "0.64062375", "0.6283876", "0.61663806", "0.59474236", "0.5882001", "0.5708939", "0.56912714", "0.5656753", "0.56407225", "0.5631747", "0.5555115", "0.5553596", "0.5544212", "0.5521067", "0.5462875", "0.5461042", "0.5458273", "0.5426453", "0.5407121", "0.5382408"...
0.6303258
2
Figures out if a quaternion has any symbolic terms.
def yHAN(YKHO: Q) -> bool: bQsF = False if hasattr(YKHO.t, 'free_symbols') or hasattr(YKHO.x, 'free_symbols') or hasattr(YKHO.y, 'free_symbols') or hasattr(YKHO.z, 'free_symbols'): bQsF = True return bQsF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rCjm(YKHO) -> bool:\n return True", "def rCjm(YKHO):\n return True", "def WJxh(YKHO):\n return YKHO._type == 'quantitative'", "def Q4CI(OXAZ):\n return OXAZ.amp.has(P6bq)", "def gwh9(YKHO):\n RcIz = YKHO.add_is_approximation()\n return Kt_s.sum(Kt_s.exp(RcIz))", "def qwLa(YKHO):\n ...
[ "0.6043409", "0.6011447", "0.5764965", "0.568501", "0.5570009", "0.55281055", "0.55281055", "0.55233943", "0.55019015", "0.5499581", "0.54727083", "0.5467233", "0.546152", "0.545237", "0.54388046", "0.54303145", "0.5427237", "0.538874", "0.53866243", "0.5382736", "0.53798455"...
0.72237664
0
Set all quaternion series bra form.
def kSri(YKHO: Qss) -> XjbB: kdAY = [] for umWR in YKHO.qss: kdAY.append(umWR.bra()) return XjbB(kdAY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GrSa(YKHO):\n if YKHO.model == 'ER':\n YKHO.qmat = oyIN.array([[-YKHO.alpha, YKHO.alpha], [YKHO.alpha, -YKHO.alpha]])\n elif YKHO.model == 'ARD':\n YKHO.qmat = oyIN.array([[-YKHO.alpha, YKHO.alpha], [YKHO.beta, -YKHO.beta]])\n else:\n raise Exception(\"model must be specified as e...
[ "0.61410964", "0.5715195", "0.55923265", "0.5495401", "0.54597956", "0.5422661", "0.5381698", "0.5291765", "0.52527124", "0.5252584", "0.5251618", "0.5242818", "0.52161485", "0.5211967", "0.5201752", "0.5196765", "0.5196118", "0.5180949", "0.5176742", "0.5175206", "0.51435053...
0.0
-1
Set all the quaterion series to ket form.
def h_27(YKHO: Qss) -> XjbB: kdAY = [] for umWR in YKHO.qss: kdAY.append(umWR.ket()) return XjbB(kdAY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ySFK(YKHO: Qs) -> jOsr:\n if YKHO.qs_type == 'ket':\n return YKHO\n ySFK = x0IZ(_qLf(YKHO))\n ySFK.rows = YKHO.dim\n ySFK.columns = 1\n ySFK.qs_type = 'ket' if YKHO.dim > 1 else 'scalar_q'\n return ySFK", "def cAX8(YKHO):\n if YKHO.measure == 'Q':\n qmLP.warn('Parameters ar...
[ "0.6680758", "0.55697674", "0.5437599", "0.54181635", "0.53981864", "0.5367952", "0.5313734", "0.528576", "0.5276949", "0.52114594", "0.5194057", "0.5194057", "0.5180754", "0.51418716", "0.5138399", "0.5121381", "0.5104161", "0.50895226", "0.5085692", "0.5074917", "0.503624",...
0.58236873
1
Utility to transform quaternion series functions to a quaternion function.
def gik9(JfyU: FunctionType, uipa: Qs) -> T8ck: hAEw = JfyU(uipa) if hAEw.qs_type != 'scalar_q': raise Exception(f'Oops, does not evaluate to a scalar: {hAEw}') return hAEw.qs[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rkUe(vexM):\n WKvO, LVAh, epBp, yzQ0 = vexM\n yjMy = 2 * WKvO * WKvO\n YvNL = 2 * LVAh * LVAh\n CyjD = 2 * epBp * epBp\n n8rh = 2 * WKvO * LVAh\n bxgg = 2 * yzQ0 * epBp\n gxoQ = 2 * epBp * WKvO\n xQlz = 2 * yzQ0 * LVAh\n meEN = 2 * LVAh * epBp\n tQe1 = 2 * yzQ0 * WKvO\n zNiy = ...
[ "0.65554875", "0.6296953", "0.6283742", "0.6170736", "0.6120653", "0.60778403", "0.5983986", "0.5957472", "0.59477943", "0.5895493", "0.58823514", "0.58788633", "0.58645964", "0.58453166", "0.5819475", "0.57913166", "0.57682115", "0.5766263", "0.5760604", "0.5745013", "0.5726...
0.5444301
53
Utility to transform quaternion series functions to a quaternion function.
def JMaI(JfyU: FunctionType, uipa: Qs, IiMd: Qs) -> T8ck: hAEw = JfyU(uipa, IiMd) if hAEw.qs_type != 'scalar_q': raise Exception(f'Oops, does not evaluate to a scalar: {hAEw}') return hAEw.qs[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rkUe(vexM):\n WKvO, LVAh, epBp, yzQ0 = vexM\n yjMy = 2 * WKvO * WKvO\n YvNL = 2 * LVAh * LVAh\n CyjD = 2 * epBp * epBp\n n8rh = 2 * WKvO * LVAh\n bxgg = 2 * yzQ0 * epBp\n gxoQ = 2 * epBp * WKvO\n xQlz = 2 * yzQ0 * LVAh\n meEN = 2 * LVAh * epBp\n tQe1 = 2 * yzQ0 * WKvO\n zNiy = ...
[ "0.65554875", "0.6296953", "0.6283742", "0.6170736", "0.6120653", "0.60778403", "0.5983986", "0.5957472", "0.59477943", "0.5895493", "0.58823514", "0.58788633", "0.58645964", "0.58453166", "0.5819475", "0.57913166", "0.57682115", "0.5766263", "0.5760604", "0.5745013", "0.5726...
0.5408319
58
Returns the scalar_q part of a quaternion as a quaternion. $ \rm{scalar_q(q)} = (q + q^)/2 = (t, 0) $
def S5Lz(uipa: Q) -> T8ck: U1o_ = f'scalar_q({uipa.q_type})' KCHu = T8ck([uipa.t, 0, 0, 0], q_type=U1o_, representation=uipa.representation) return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pAVs(vexM):\n jzdc = vexM[0, 0]\n Fg_i = vexM[0, 1]\n Z9rn = vexM[0, 2]\n Csk6 = vexM[0, 3]\n GrNE = jzdc * oyIN.identity(4)\n ZyKO = Fg_i * oyIN.array([[0, 1, 0, 0], [-1, 0, 0, 0], [0, 0, 0, -1], [0, 0, 1, 0]])\n keQN = Z9rn * oyIN.array([[0, 0, 1, 0], [0, 0, 0, 1], [-1, 0, 0, 0], [0, -1,...
[ "0.717215", "0.71252763", "0.7085677", "0.68149334", "0.6790606", "0.67434067", "0.6703528", "0.6591438", "0.65540475", "0.63793147", "0.62942255", "0.62499434", "0.6232498", "0.6217254", "0.6167394", "0.61596555", "0.61083883", "0.6020081", "0.60105115", "0.59995216", "0.599...
0.767325
0
Return a zero quaternion. $ q\_0() = 0 = (0, 0) $
def cJsZ(jopa: str='0', TcPZ: str='') -> T8ck: return T8ck([0, 0, 0, 0], q_type=jopa, representation=TcPZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sbx9() -> R5H8:\n return R5H8(0, oyIN.array([0, 0, 0]))", "def KVQN(CI4F):\n from .cy.qobjevo import QobjEvo\n if isinstance(CI4F, QobjEvo):\n CI4F = CI4F(0)\n return lNmN(BdPz.zeros_like(CI4F.data), dims=CI4F.dims, type=CI4F.type, superrep=CI4F.superrep, isherm=True, isunitary=False, copy...
[ "0.857457", "0.7198851", "0.6935834", "0.6877154", "0.6855088", "0.6625694", "0.6423152", "0.64208454", "0.6408899", "0.631035", "0.6303581", "0.6267747", "0.62498343", "0.62418693", "0.6224846", "0.62101185", "0.6110579", "0.60706556", "0.60494864", "0.6038135", "0.602128", ...
0.7035556
2
Return a realvalued quaternion multiplied by n. $ q\_1(n) = n = (n, 0) $
def hbUd(exwG: float=1.0, jopa: str='1', TcPZ: str='') -> T8ck: return T8ck([exwG, 0, 0, 0], q_type=jopa, representation=TcPZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pAVs(vexM):\n jzdc = vexM[0, 0]\n Fg_i = vexM[0, 1]\n Z9rn = vexM[0, 2]\n Csk6 = vexM[0, 3]\n GrNE = jzdc * oyIN.identity(4)\n ZyKO = Fg_i * oyIN.array([[0, 1, 0, 0], [-1, 0, 0, 0], [0, 0, 0, -1], [0, 0, 1, 0]])\n keQN = Z9rn * oyIN.array([[0, 0, 1, 0], [0, 0, 0, 1], [-1, 0, 0, 0], [0, -1,...
[ "0.7521747", "0.6882829", "0.6801781", "0.66688246", "0.6667387", "0.6613043", "0.65514314", "0.6518592", "0.65183645", "0.64424217", "0.64181757", "0.6355957", "0.63497275", "0.63067836", "0.6286795", "0.62692976", "0.62481505", "0.6223839", "0.6215716", "0.6203606", "0.6170...
0.6954427
1
Return a quaternion with $ i n $. $ q\_i(n) = n i = (0, n i) $
def H7g6(exwG: float=1.0, jopa: str='i', TcPZ: str='') -> T8ck: return T8ck([0, exwG, 0, 0], q_type=jopa, representation=TcPZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pAVs(vexM):\n jzdc = vexM[0, 0]\n Fg_i = vexM[0, 1]\n Z9rn = vexM[0, 2]\n Csk6 = vexM[0, 3]\n GrNE = jzdc * oyIN.identity(4)\n ZyKO = Fg_i * oyIN.array([[0, 1, 0, 0], [-1, 0, 0, 0], [0, 0, 0, -1], [0, 0, 1, 0]])\n keQN = Z9rn * oyIN.array([[0, 0, 1, 0], [0, 0, 0, 1], [-1, 0, 0, 0], [0, -1,...
[ "0.7798379", "0.7256524", "0.71169364", "0.6974901", "0.69720376", "0.69220084", "0.69177634", "0.69116133", "0.6846539", "0.6837501", "0.6780964", "0.6780964", "0.67560273", "0.6707586", "0.66808885", "0.6651122", "0.66359764", "0.66078216", "0.6581401", "0.6517365", "0.6496...
0.6898428
8
Return a quaternion with $ j n $. $ q\_j(n) = n j = (0, n j) $
def oZeo(exwG: float=1.0, jopa: str='j', TcPZ: str='') -> T8ck: return T8ck([0, 0, exwG, 0], q_type=jopa, representation=TcPZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pAVs(vexM):\n jzdc = vexM[0, 0]\n Fg_i = vexM[0, 1]\n Z9rn = vexM[0, 2]\n Csk6 = vexM[0, 3]\n GrNE = jzdc * oyIN.identity(4)\n ZyKO = Fg_i * oyIN.array([[0, 1, 0, 0], [-1, 0, 0, 0], [0, 0, 0, -1], [0, 0, 1, 0]])\n keQN = Z9rn * oyIN.array([[0, 0, 1, 0], [0, 0, 0, 1], [-1, 0, 0, 0], [0, -1,...
[ "0.74863", "0.69811416", "0.694357", "0.6844857", "0.6835749", "0.6835749", "0.6830955", "0.6802375", "0.675877", "0.67521226", "0.67171556", "0.6712101", "0.6684766", "0.66334873", "0.66085315", "0.6608401", "0.660655", "0.65806353", "0.6553026", "0.6525411", "0.65198517", ...
0.6998271
1
Tests if q1 and q_2 quaternions are close to equal. If vector_q is set to False, will compare only the scalar_q. If scalar_q is set to False, will compare 3vectors. $ q.equal(q\_2) = q == q\_2 = True $
def InF8(uipa: Q, IiMd: Q, hAEw: bool=True, iArr: bool=True) -> bool: uipa.check_representations(IiMd) bQnC, Uo7G, AOrQ, WVes = (H4yH.expand(uipa.t), H4yH.expand(uipa.x), H4yH.expand(uipa.y), H4yH.expand(uipa.z)) ZGl3, R1ed, qoh6, Inom = (H4yH.expand(IiMd.t), H4yH.expand(IiMd.x), H4yH.expand(IiMd.y), H4yH.e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dU1C(cJsZ, hbUd):\n cJsZ = XTiz.array(cJsZ)\n hbUd = XTiz.array(hbUd)\n return XTiz.allclose(cJsZ, hbUd) or XTiz.allclose(cJsZ, -hbUd)", "def JY89(hbUd, BzON):\n hbUd = oyIN.asarray(hbUd)\n if oyIN.dot(hbUd, BzON) < 0:\n hbUd = -1 * hbUd\n gkE3 = hbUd * oyIN.array([1.0, -1.0, -1.0, -...
[ "0.76702076", "0.682529", "0.67538345", "0.6682755", "0.66737276", "0.65974015", "0.6562964", "0.6520759", "0.6492502", "0.6410654", "0.64059484", "0.6389305", "0.6345217", "0.6300591", "0.6252963", "0.62419194", "0.621168", "0.6203158", "0.6201494", "0.61856306", "0.6184245"...
0.82517725
0
All products, commuting and anticommuting products as a dictionary. For internal use.
def gwiS(uipa: Q, IiMd: Q) -> cuzp: YsEx = uLbm(uipa, IiMd) YsEx.update(ATy2(uipa, IiMd)) return YsEx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwIN(Ldyl):\n DuqQ = ''\n Gsrf = {}\n try:\n if Ldyl and Ldyl[0].get('source') == 'greedy':\n for Lx3t in Ldyl:\n H5ew = Lx3t['name']\n Gsrf[H5ew] = Gsrf.get(H5ew, {})\n Gsrf[H5ew].setdefault('products', []).append(H5ew)\n G...
[ "0.71844846", "0.68288", "0.67625904", "0.660549", "0.65869725", "0.6579608", "0.6419453", "0.6417805", "0.64040154", "0.62374485", "0.61897355", "0.6128711", "0.60962653", "0.6074124", "0.6065237", "0.60371697", "0.6031735", "0.6006508", "0.5995897", "0.59792846", "0.5974384...
0.76783925
0
Given a quaternion series, returns an orthonormal basis.
def PmpU(YKHO: Qs) -> jOsr: NGrg = YKHO.qs.pop(0).normalize(epAf.sqrt(1 / YKHO.dim)) sSrx = [NGrg] for vexM in YKHO.qs: TuAq = Lx3t(_tTC(vexM), NGrg) EDOq = NkkI(WH_7(vexM, TuAq), epAf.sqrt(1 / YKHO.dim)) sSrx.append(EDOq) NGrg = EDOq return jOsr(sSrx, qs_type=YKHO.qs_typ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmDi(slpS):\n CkYf = oyIN.linalg.norm(slpS)\n slpS[1:] = -1.0 * slpS[1:]\n return slpS / CkYf", "def ZC6y(slpS):\n vexM = XTiz.array(slpS, dtype=XTiz.float64, copy=True)\n XTiz.negative(vexM[1:], vexM[1:])\n return vexM / XTiz.dot(vexM, vexM)", "def pAVs(vexM):\n jzdc = vexM[0, 0]\n ...
[ "0.6208364", "0.6161251", "0.60390615", "0.58623403", "0.58344173", "0.5829891", "0.5811015", "0.5793587", "0.5782253", "0.57772124", "0.57660985", "0.5697357", "0.5688721", "0.5680396", "0.5614574", "0.5610573", "0.55925995", "0.5582461", "0.55633867", "0.5558345", "0.550302...
0.58097345
7
The absolute value of the vector_q, the square root of the norm_squared of the vector_q. $ q.abs_of_vector() = \sqrt{(q\_1 q\_1^)(q\_1 q\_1^)/4} = (\sqrt{R.R}, 0) $
def Tho3(uipa: Q) -> T8ck: U1o_ = f'|V({uipa.q_type})|' EKeu = eAEC(uipa) rZmI = EKeu.t ** (1 / 2) EKeu.t = rZmI EKeu.representation = uipa.representation EKeu.q_type = U1o_ return EKeu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eAEC(uipa: Q):\n U1o_ = f'|V({uipa.q_type})|²'\n uBsn = uLbm(uipa, uipa)\n DQ3Z = T8ck(q_type=U1o_, representation=uipa.representation)\n DQ3Z.t = uBsn['xx+yy+zz']\n return DQ3Z", "def b3Gc(Ty9i):\n return epAf.sqrt(Lzxs(Ty9i))", "def CkYf(iArr):\n Aofo = 0\n for epBp in range(len(i...
[ "0.7167906", "0.6757346", "0.6741619", "0.66816074", "0.6628338", "0.66203743", "0.6553449", "0.6508252", "0.64899415", "0.6487914", "0.64693314", "0.6375257", "0.63640314", "0.6312741", "0.6304442", "0.62795985", "0.62677765", "0.62397444", "0.62322617", "0.62240183", "0.621...
0.7865251
0
Forms the quaternion product for each state. The details for handling the variety of cases for lengths of rows, states, and operators makes this code the most complex in this library.
def Ldyl(uipa: Qs, IiMd: Qs, eJTR: str='', gxEw: bool=False) -> jOsr: SY6l = _qLf(uipa) GKKR = _qLf(IiMd) GjLa, jPND = (jOsr(), jOsr()) if uipa.rows == IiMd.rows and uipa.columns == IiMd.columns or 'scalar_q' in [uipa.qs_type, IiMd.qs_type]: if uipa.columns == 1: jPND = GKKR ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pAVs(vexM):\n jzdc = vexM[0, 0]\n Fg_i = vexM[0, 1]\n Z9rn = vexM[0, 2]\n Csk6 = vexM[0, 3]\n GrNE = jzdc * oyIN.identity(4)\n ZyKO = Fg_i * oyIN.array([[0, 1, 0, 0], [-1, 0, 0, 0], [0, 0, 0, -1], [0, 0, 1, 0]])\n keQN = Z9rn * oyIN.array([[0, 0, 1, 0], [0, 0, 0, 1], [-1, 0, 0, 0], [0, -1,...
[ "0.62322927", "0.6051086", "0.6051086", "0.6009166", "0.60064405", "0.5782727", "0.56831545", "0.5682501", "0.5617213", "0.56117606", "0.5596163", "0.5593366", "0.55868787", "0.5558347", "0.5546437", "0.5527421", "0.5494381", "0.54865175", "0.54483265", "0.5425174", "0.539799...
0.52673453
37
The method for doing a rotation in 3D space discovered by Rodrigues in the 1840s used a quaternion triple product. After Minkowski characterized Einstein's work in special relativity as a 4D rotation, efforts were made to do the same with one quaternion triple product. Two people were able to do the trick with complexv...
def DAK0(uipa: Q, MKlR: Q, PJWX=False) -> T8ck: uipa.check_representations(MKlR) U1o_ = f'{uipa.q_type}rotation/boost' if not MKlR.is_symbolic(): if not epAf.isclose(MKlR.t, 0) and (not InF8(cJsZ(), CVRu(MKlR))) or InF8(MKlR, cJsZ()): if not epAf.isclose(Fyji(MKlR).t, 1): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def suG_(_Jov):\n KUEC = _Jov[0] * _Jov[1]\n L9IC = _Jov[0] * _Jov[2]\n WKkj = _Jov[0] * _Jov[3]\n Kt7F = _Jov[1] * _Jov[1]\n Bj_T = _Jov[1] * _Jov[2]\n aRJ9 = _Jov[1] * _Jov[3]\n mqaY = _Jov[2] * _Jov[2]\n Nswz = _Jov[2] * _Jov[3]\n bb80 = _Jov[3] * _Jov[3]\n DWJ0 = oyIN.zeros((3, 3)...
[ "0.75289774", "0.71448755", "0.70329356", "0.69880587", "0.6938521", "0.68504506", "0.68383646", "0.6833967", "0.66445416", "0.6613585", "0.66107804", "0.6602442", "0.6582722", "0.6577267", "0.6550019", "0.6540202", "0.6508703", "0.65000266", "0.64974034", "0.648309", "0.6475...
0.0
-1
Given 2 quaternions, creates a new quaternion to do a rotation in the triple triple quaternion function by using a normalized cross product. To assure that repeated calls cover the sphere, multiply by a random factor.
def Otor(uipa: Q, IiMd: Q) -> T8ck: uipa.check_representations(IiMd) if not epAf.isclose(uipa.t, IiMd.t): raise ValueError(f'Oops, to be a rotation, the first values must be the same: {uipa.t} != {IiMd.t}') if not epAf.isclose(Rzog(uipa).t, Rzog(IiMd).t): raise ValueError(f'Oops, the norm sq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _x4t():\n t3eI = oyIN.random.RandomState(1)\n for bGrB in range(5):\n Ty9i = zTi3.random_vector(t3eI)\n vexM = zTi3.random_quaternion(t3eI)\n Ive_ = oyIN.hstack(((0.0,), Ty9i))\n SO0N = zTi3.concatenate_quaternions(vexM, zTi3.concatenate_quaternions(Ive_, zTi3.q_conj(vexM)))[1...
[ "0.70592076", "0.6883676", "0.6820069", "0.6783644", "0.67098737", "0.67028195", "0.66328484", "0.6582449", "0.65420824", "0.64483", "0.6422524", "0.64155704", "0.6331616", "0.6327634", "0.63138086", "0.62226886", "0.6184733", "0.617074", "0.6156372", "0.6147959", "0.6127897"...
0.61131823
21
Given 2 quaternions, creates a new quaternion to do a boost/rotation using the triple triple quaternion product by using the scalar_q of an even product to form (cosh(x), i sinh(x)). $ next_boost(q, q_2) = q q\_2 + q\_2 q
def c8he(uipa: Q, IiMd: Q) -> T8ck: uipa.check_representations(IiMd) if not (uipa.t >= 1.0 and IiMd.t >= 1.0): raise ValueError(f'Oops, to be a boost, the first values must both be greater than one: {uipa.t}, {IiMd.t}') if not epAf.isclose(Fyji(uipa).t, Fyji(IiMd).t): raise ValueError(f'Oop...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DAK0(uipa: Q, MKlR: Q, PJWX=False) -> T8ck:\n uipa.check_representations(MKlR)\n U1o_ = f'{uipa.q_type}rotation/boost'\n if not MKlR.is_symbolic():\n if not epAf.isclose(MKlR.t, 0) and (not InF8(cJsZ(), CVRu(MKlR))) or InF8(MKlR, cJsZ()):\n if not epAf.isclose(Fyji(MKlR).t, 1):\n ...
[ "0.72395223", "0.6804851", "0.6801011", "0.6698621", "0.666588", "0.662718", "0.6601146", "0.6484366", "0.63255465", "0.62989676", "0.61446613", "0.6105331", "0.60643524", "0.5894326", "0.5886501", "0.58668226", "0.58362406", "0.573688", "0.5671994", "0.56676805", "0.5632296"...
0.6805635
1
Returns all permutations as a quaternion series. Can be made unique.
def SB_d(uipa: Q) -> jOsr: dixj = [] for IuXB in Hs6x.permutations('txyz'): dixj.append(cZDQ(uipa, perm=IuXB)) return jOsr(dixj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gfN7(YKHO, NKcE: str='chiaverini', **YSA3) -> oyIN.ndarray:\n return YKHO.to_quaternion(method=NKcE, **YSA3)", "def pAVs(vexM):\n jzdc = vexM[0, 0]\n Fg_i = vexM[0, 1]\n Z9rn = vexM[0, 2]\n Csk6 = vexM[0, 3]\n GrNE = jzdc * oyIN.identity(4)\n ZyKO = Fg_i * oyIN.array([[0, 1, 0, 0], [-1, ...
[ "0.62859166", "0.6236495", "0.61805236", "0.6156702", "0.6146067", "0.605096", "0.6009002", "0.5941925", "0.5940175", "0.59393823", "0.5923452", "0.58531964", "0.5847137", "0.58404344", "0.5831987", "0.5807379", "0.5807379", "0.5800481", "0.5800481", "0.5767766", "0.5738827",...
0.63913
0
Shift an observation based on a dimensionless GM/c^2 dR.
def RAKj(uipa: Q, JkcJ, jXAv='exp'): U1o_ = f'{uipa.q_type} gshift' if jXAv == 'exp': v6bc = H4yH.exp(JkcJ) elif jXAv == 'minimal': v6bc = 1 + 2 * JkcJ + 2 * JkcJ ** 2 else: print("g_form not defined, should be 'exp' or 'minimal': {}".format(jXAv)) return uipa OsQy = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DkWr(YKHO, SG6Y, tpio, DkWr):\n return SG6Y.roll(**{tpio: DkWr})", "def DkWr(YKHO, Oa1e, Csk6, exwG):\n return (Oa1e[exwG:] + Oa1e[:exwG], Csk6[exwG:] + Csk6[:exwG])", "def DkWr(YKHO, oxOY):\n XP5J = oyIN.array(YKHO.GetPosition())\n YKHO.SetPosition(XP5J + oxOY)\n return YKHO", "def m5re(Y...
[ "0.6679757", "0.6243065", "0.6199622", "0.59737504", "0.58980966", "0.587591", "0.58522874", "0.5799389", "0.5778618", "0.57204634", "0.57198524", "0.5691801", "0.5676666", "0.56053025", "0.55712456", "0.5566595", "0.5487443", "0.5487311", "0.54213893", "0.5420869", "0.538255...
0.0
-1
Take the exponential of a quaternion. $ q.exp() = (\exp(t) \cos(|R|, \exp(t) \sin(|R|) R/|R|) $
def kLQb(uipa: Q) -> T8ck: U1o_ = f'exp({uipa.q_type})' XBju = Tho3(uipa) cGyw = epAf.exp(uipa.t) if XBju.t == 0: return T8ck([cGyw, 0, 0, 0], q_type=U1o_, representation=uipa.representation) zH1t = epAf.cos(XBju.t) wR9z = epAf.sin(XBju.t) G1Hx = cGyw * wR9z / XBju.t _whA = T8ck(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLQb(Emd4, vexM):\n D1sU = 1e-17\n gZcO = oyIN.linalg.norm(vexM.vector)\n he6J = vexM.vector\n if gZcO > D1sU:\n he6J = he6J / gZcO\n YXbZ = kLQb(vexM.scalar)\n return R5H8(scalar=YXbZ * YhSR(gZcO), vector=YXbZ * YUNn(gZcO) * he6J)", "def kLQb(vexM):\n YA9R = caa_(vexM[:, :3])\n ...
[ "0.81771994", "0.7597778", "0.72476107", "0.71873426", "0.7081528", "0.70164", "0.6970375", "0.65774494", "0.65312207", "0.65231395", "0.6463936", "0.6382586", "0.6357746", "0.6302652", "0.6239572", "0.6238405", "0.6204436", "0.6194309", "0.61632216", "0.6157842", "0.6126599"...
0.7778536
1
Tests if a series is Hermitian.
def JZnz(uipa: Qs) -> bool: u84f = OZFX(uipa, uipa.rows, uipa.columns) return aPi6(uipa, u84f)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LzOH(YKHO, SGf8=0):\n return (YKHO - YKHO.hc()).absmax() <= SGf8", "def LzOH(YKHO):\n return YKHO.args[0].is_hermitian()", "def LzOH(YKHO):\n return False", "def nAbR(YKHO):\n tmeI = True\n for h7pq in YKHO.IndList():\n T8ck = tuple((-WKvO for WKvO in h7pq))\n EcVT = YKHO[h7p...
[ "0.6984844", "0.69657934", "0.6958487", "0.66933256", "0.61677265", "0.6133391", "0.6120859", "0.6048154", "0.60093164", "0.5919004", "0.58672166", "0.58102256", "0.574486", "0.57302445", "0.57079214", "0.56296575", "0.56296575", "0.5525307", "0.55209273", "0.5507452", "0.542...
0.6721774
3
Make a state dim dim with q or qs along the 'diagonal'. Always returns an operator.
def IjIm(uipa: Qs, tpio: int) -> jOsr: lh0N = [] if len(uipa.qs) == 1: gc9P = [uipa.qs[0]] * tpio elif len(uipa.qs) == tpio: gc9P = uipa.qs elif uipa.qs is None: raise ValueError('Oops, the qs here is None.') else: raise ValueError('Oops, need the length to be equal t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IjIm(Csk6, jDK_=0):\n assert Csk6.ndim == 1\n exwG = Csk6.shape[0]\n WXkz = lambda WKvO: Csk6 * WKvO\n uPnQ = lambda WKvO: eeRW(Csk6) * WKvO\n WXkz, uPnQ = v3T1(WXkz, uPnQ, jDK_)\n return uS0y(times=WXkz, trans=uPnQ, shape=(exwG, exwG))", "def sskq(ivq9, gQVb=None, Htse=None, ROpF=None, *, ...
[ "0.59706414", "0.5862557", "0.5807918", "0.5789221", "0.56782097", "0.5673857", "0.5599533", "0.55487275", "0.54673314", "0.5379068", "0.53330135", "0.53220415", "0.5314008", "0.5264948", "0.52278036", "0.5189053", "0.51831144", "0.517409", "0.5139516", "0.51315624", "0.51173...
0.64012635
0
Return the trace as a scalar_q quaternion series.
def zgsA(uipa: Qs) -> jOsr: if uipa.rows != uipa.columns: raise ValueError(f'Oops, not a square quaternion series: {uipa.rows}/{uipa.columns}') else: yKIT = uipa.qs[0] for YRbF in range(1, uipa.rows): yKIT = H2v5(yKIT, uipa.qs[YRbF * (uipa.rows + 1)]) return jOsr([yKIT])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pAVs(vexM):\n jzdc = vexM[0, 0]\n Fg_i = vexM[0, 1]\n Z9rn = vexM[0, 2]\n Csk6 = vexM[0, 3]\n GrNE = jzdc * oyIN.identity(4)\n ZyKO = Fg_i * oyIN.array([[0, 1, 0, 0], [-1, 0, 0, 0], [0, 0, 0, -1], [0, 0, 1, 0]])\n keQN = Z9rn * oyIN.array([[0, 0, 1, 0], [0, 0, 0, 1], [-1, 0, 0, 0], [0, -1,...
[ "0.6993904", "0.68892056", "0.68086374", "0.67782146", "0.6755165", "0.6257342", "0.6237571", "0.61933625", "0.61874753", "0.6073178", "0.60701495", "0.60665095", "0.6051848", "0.6041605", "0.6040673", "0.6040085", "0.60359335", "0.6033472", "0.6027379", "0.5964323", "0.59337...
0.6756054
4
Puts a zero in one or more of the four places.
def a5GF(uipa: Q, a1PO: bool=False, WKvO: bool=False, LVAh: bool=False, epBp: bool=False) -> T8ck: WhhQ = _qLf(uipa) if a1PO: WhhQ.t = 0 if WKvO: WhhQ.x = 0 if LVAh: WhhQ.y = 0 if epBp: WhhQ.z = 0 return WhhQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yU8h(UI4D, VNqG, LFlW=True):\n for YRbF in range(VNqG):\n if LFlW:\n UI4D = '0' + UI4D\n else:\n UI4D = UI4D + '0'\n return UI4D", "def pXTc(DD6W):\n return '0' * (5 - len(DD6W)) + DD6W", "def pXTc(DD6W):\n return '0' * (5 - len(DD6W)) + DD6W", "def pXTc(YR...
[ "0.6647017", "0.6278069", "0.6278069", "0.6237634", "0.60879666", "0.6086591", "0.6069621", "0.6059842", "0.6047781", "0.60457253", "0.600575", "0.6000682", "0.59299487", "0.5881821", "0.584906", "0.5836479", "0.58116835", "0.58069575", "0.57998055", "0.5799315", "0.57892287"...
0.0
-1
One quaternion cannot tell a story. generate_QQs provides a general way to create a quaternion series given a function and two other quaternions/functions. The function is applied to each subsequent value of the function. If q_1 or q_2 is itself a function, it will be called each time. This function was written for the...
def oyMQ(JfyU, uipa: Union[Q, Qs, FunctionType], IiMd: Union[Q, Qs, FunctionType], tpio: int=10, awwQ: str='ket') -> jOsr: if type(uipa) == T8ck and type(IiMd) == T8ck: kdAY = [JfyU(uipa, IiMd)] for bGrB in range(tpio - 1): kdAY.append(JfyU(kdAY[-1], IiMd)) elif type(uipa) == T8ck an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eg_n(JfyU: FunctionType, uipa: Union[Q, Qs, FunctionType], tpio: int=10, awwQ: str='ket') -> jOsr:\n if type(uipa) == T8ck:\n kdAY = [JfyU(uipa)]\n for bGrB in range(tpio - 1):\n kdAY.append(JfyU(kdAY[-1]))\n elif type(uipa) == jOsr:\n kdAY = uipa.qs\n elif type(uipa) =...
[ "0.72977334", "0.7151165", "0.70990133", "0.6716457", "0.65685415", "0.64292264", "0.6414638", "0.63871956", "0.6379296", "0.6345492", "0.62507963", "0.6236191", "0.62279254", "0.6103509", "0.6085932", "0.6056096", "0.5960466", "0.5949796", "0.5913844", "0.58967113", "0.58898...
0.7726626
0
Map get_scaling_factor to an iterable of Pyomo components, and get the minimum scaling factor.
def H6No(AdfU, WmM4=1, pEH_=True, oICI=None): return LcC0(AdfU, default=WmM4, warning=pEH_, func=min, hint=oICI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LcC0(AdfU, WmM4=1, pEH_=False, JfyU=min, oICI=None):\n return JfyU(map(lambda WKvO: lAp7(WKvO, default=WmM4, warning=pEH_, hint=oICI), AdfU))", "def bzEC(o7K5, SnCn):\n if SnCn is not None:\n return o7K5.map(f_vect=ql7k.scale(factor=SnCn)).map(f=ql7k.bound_value(lb=1))\n return o7K5", "def ...
[ "0.66975385", "0.62198126", "0.61575323", "0.5954587", "0.5935592", "0.5853562", "0.5813986", "0.5813986", "0.5610619", "0.5591579", "0.55654174", "0.55492085", "0.5508268", "0.54814416", "0.54364556", "0.54269034", "0.54132116", "0.53932166", "0.5385479", "0.5347045", "0.534...
0.71901256
0
Checks whether a scaling factor exists for a component, sets the scaling factor if it doesn't exist, then returns the scaling factor on the component (which is the default value if it wasn't set originally).
def vHUV(Z9rn, WmM4, pEH_=False, AJ5d=False, oICI=None): if Z9rn.is_indexed(): raise AttributeError(f'Ambiguous which scaling factor to return for indexed component {Z9rn.name}.') UH90 = lAp7(Z9rn, warning=pEH_, exception=AJ5d, hint=oICI) if UH90 is None: UH90 = WmM4 yEQ0(Z9rn, UH90,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lAp7(Z9rn, WmM4=None, pEH_=False, AJ5d=False, oICI=None):\n try:\n UH90 = Z9rn.parent_block().scaling_factor[Z9rn]\n except (AttributeError, KeyError):\n if not isinstance(Z9rn, (mRbB.Param, iRKQ)):\n if oICI is None:\n MKlR = ''\n else:\n ...
[ "0.6981034", "0.6870924", "0.68532175", "0.6702471", "0.6652382", "0.6164827", "0.61411226", "0.60545605", "0.5901884", "0.5896981", "0.5881751", "0.5827386", "0.58061856", "0.58061117", "0.5799844", "0.5764372", "0.5727742", "0.56283545", "0.55919677", "0.55786616", "0.55406...
0.7231372
0
Get the condition number of the scaled or unscaled Jacobian matrix of a model.
def i54f(r8hN=None, k8L3=True, T4Wy=None, mI3e=False, LFEP=None): if LFEP is None: LFEP, K9NE = HiAf(r8hN, k8L3) LFEP = LFEP.tocsc() if LFEP.shape[0] != LFEP.shape[1] and (not mI3e): PurT.warning('Nonsquare Jacobian using pseudo inverse') mI3e = True if not mI3e: iKA3 = r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BM_c(YKHO):\n chmV = oyIN.linalg.eig(oyIN.matmul(YKHO.x.swapaxes(-2, -1), YKHO.x))[0]\n return oyIN.sqrt(chmV.max(axis=1) / chmV.min(axis=1))", "def Z6Bj(YKHO):\n return YKHO._condition_number", "def fOmo(C3ST):\n return C3ST.coefs.shape[0]", "def MikQ(YKHO):\n YADJ = 0\n for zZRI in YK...
[ "0.6870535", "0.62093955", "0.554546", "0.5533118", "0.54135406", "0.53102195", "0.5264093", "0.5191693", "0.5119608", "0.51145804", "0.50887513", "0.5083704", "0.5067496", "0.50660807", "0.5054505", "0.50435746", "0.50100577", "0.50001043", "0.4989965", "0.49897817", "0.4987...
0.5331519
5
Returns the length of the representation data.
def szAg(YKHO): return YKHO._vector.degree()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO) -> int:\n if YKHO.serialize_data:\n return len(YKHO.data_address)\n else:\n return len(YKHO.data_infos)", "def nWMf(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return...
[ "0.84285057", "0.84224397", "0.8306152", "0.8306152", "0.8306152", "0.8246603", "0.8228574", "0.81836927", "0.8140855", "0.80608314", "0.80348", "0.80348", "0.80348", "0.8022426", "0.8022426", "0.8007244", "0.79690796", "0.7964973", "0.7964973", "0.7964973", "0.7964973", "0...
0.0
-1
Compare two representation objects They are equal if and only if they define the same vertex/ray/line or inequality/equation in the ambient space, regardless of the polyhedron that they belong to.
def Aicm(YKHO, Elif): if not isinstance(Elif, tF40): return -1 return eHkp(type(YKHO), type(Elif)) or eHkp(YKHO._vector, Elif._vector)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if YKHO.__class__ != Elif.__class__:\n return False\n return YKHO.mesh == Elif.mesh and sqqd.equal(YKHO.shape, Elif.shape).all() and (YKHO.domain == Elif.domain)", "def xa14(YKHO, Elif):\n return YKHO.vertices == Elif.vertices and YKHO.weight == Elif.weight", "def xa14(Y...
[ "0.70931184", "0.707725", "0.6997339", "0.693597", "0.6831588", "0.67984223", "0.6754586", "0.6686086", "0.66633564", "0.66520786", "0.66215545", "0.6593427", "0.65858656", "0.6584871", "0.6561854", "0.6545514", "0.6541163", "0.6522954", "0.6516866", "0.6471603", "0.64689296"...
0.650891
19
r""" Returns the coefficient vector `A` in `A\vec{x}+b`.
def k0lF(YKHO): return YKHO._A
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PmJa(YKHO):\n return oyIN.dot(YKHO.mmi, oyIN.dot(YKHO.mmatrix.T, YKHO.bvec))", "def GTTg(nJ9F, nxyw, o4D3, si3g):\n return -(si3g - nxyw) / (o4D3 - nJ9F)", "def JMlB(Cwt5, Ty9i, jzdc, Fg_i):\n return [Cwt5 * Ty9i[0], Cwt5 * Ty9i[0] * jzdc + Fg_i]", "def lE3i(nJ9F, nxyw, o4D3, si3g):\n return ...
[ "0.6487584", "0.6200551", "0.61877954", "0.60225594", "0.5954652", "0.59371483", "0.5923177", "0.58879757", "0.5877291", "0.5840082", "0.58288395", "0.580525", "0.5791447", "0.5781102", "0.57738835", "0.57735187", "0.5767798", "0.5755862", "0.57530284", "0.5749266", "0.573391...
0.0
-1
r""" Returns the constant `b` in `A\vec{x}+b`.
def Fg_i(YKHO): return YKHO._b
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzY3(B2C8):\n return B2C8 + 'x'", "def EWVv(WKvO, Fg_i):\n xS9P = 0\n for YRbF in enumerate(Fg_i):\n xS9P += YRbF[1] * WKvO ** YRbF[0]\n return xS9P", "def re0C(YKHO):\n return (YKHO.b_plus_bstar / YKHO.n_pos + YKHO.b_minus_bstar / YKHO.n_neg) / 2", "def mmAt(YKHO, WKvO):\n retur...
[ "0.60010844", "0.5991505", "0.59718937", "0.59611386", "0.58366007", "0.57271534", "0.5716266", "0.5657437", "0.56378216", "0.5630788", "0.56223536", "0.56185055", "0.55930847", "0.55581474", "0.55565435", "0.55104935", "0.5507975", "0.5502621", "0.5496439", "0.548395", "0.54...
0.0
-1
Returns a generator for the incident Hrepresentation objects, that is, the vertices/rays/lines satisfying the (in)equality.
def xDh8(YKHO): tclk = YKHO.polyhedron().incidence_matrix() for cAlv in YKHO.polyhedron().Vrep_generator(): if tclk[cAlv.index(), YKHO.index()] == 1: yield cAlv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ps5G(YKHO):\n for C7Ls in YKHO.Hrepresentation():\n if C7Ls.is_inequality():\n yield C7Ls", "def xDh8(YKHO):\n tclk = YKHO.polyhedron().incidence_matrix()\n for C7Ls in YKHO.polyhedron().Hrep_generator():\n if tclk[YKHO.index(), C7Ls.index()] == 1:\n yield C7Ls", ...
[ "0.7777177", "0.7013645", "0.7013645", "0.6560997", "0.63826954", "0.5790397", "0.5778307", "0.5750455", "0.5736811", "0.5733838", "0.5695189", "0.56856066", "0.56191826", "0.55779564", "0.55004585", "0.5490121", "0.54790866", "0.54151535", "0.5406401", "0.5406401", "0.537942...
0.6664428
3
Returns True since this is, by construction, an inequality.
def rUyq(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return YKHO <= Elif and YKHO >= Elif", "def xa14(YKHO, Elif):\n return abs(YKHO - Elif) < 1e-09", "def xa14(YKHO, Elif: 'LTL'):\n if YKHO.formula == Elif.formula:\n return True\n Hi53 = YKHO >= Elif\n kgJr = YKHO <= Elif\n return Hi53 and kgJr", "def xa14(YKHO...
[ "0.73918694", "0.7246016", "0.71810424", "0.7138526", "0.7128823", "0.70941985", "0.69961643", "0.6971562", "0.6922299", "0.6922299", "0.6914022", "0.6906384", "0.6903671", "0.6885709", "0.68856484", "0.6867292", "0.68635046", "0.6863378", "0.6847223", "0.6829796", "0.6824519...
0.0
-1
Tests whether the halfspace (including its boundary) defined by the inequality contains the given vertex/ray/line.
def sjXf(YKHO, Ijh2): try: if Ijh2.is_vector(): return YKHO.polyhedron()._is_nonneg(YKHO.eval(Ijh2)) except AttributeError: pass if Ijh2.is_line(): return YKHO.polyhedron()._is_zero(YKHO.eval(Ijh2)) else: return YKHO.polyhedron()._is_nonneg(YKHO.eval(Ijh2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, zFiD):\n return abs(1 - oyIN.dot(vg0C.unitvec(YKHO.vec), vg0C.unitvec(zFiD.vec))) < 10 * UI67", "def HhQ7(YKHO, WKvO, LVAh):\n return min(WKvO, LVAh) > 0 and WKvO <= YKHO.width and (LVAh <= YKHO.height)", "def mi1R(YKHO, Ty9i):\n exwG = YKHO.normalVect()\n return exwG.dotProduct(iArr...
[ "0.6536128", "0.6496033", "0.6494047", "0.6335195", "0.6320186", "0.6274402", "0.62453073", "0.6225817", "0.621746", "0.6181447", "0.613335", "0.613335", "0.612196", "0.61027455", "0.61023873", "0.6089343", "0.60530204", "0.6048497", "0.6034406", "0.6032514", "0.6025317", "...
0.0
-1
Tests whether the interior of the halfspace (excluding its boundary) defined by the inequality contains the given vertex/ray/line.
def y080(YKHO, Ijh2): try: if Ijh2.is_vector(): return YKHO.polyhedron()._is_positive(YKHO.eval(Ijh2)) except AttributeError: pass if Ijh2.is_line(): return YKHO.polyhedron()._is_zero(YKHO.eval(Ijh2)) elif Ijh2.is_vertex(): return YKHO.polyhedron()._is_positiv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y080(YKHO, Ijh2):\n try:\n if Ijh2.is_vector():\n return YKHO.polyhedron()._is_positive(YKHO.eval(Ijh2))\n except AttributeError:\n pass\n if Ijh2.is_line():\n return YKHO.polyhedron()._is_zero(YKHO.eval(Ijh2))\n elif Ijh2.is_vertex():\n return YKHO.polyhedron...
[ "0.6856249", "0.68367535", "0.6756498", "0.6495758", "0.63621867", "0.63452864", "0.63452864", "0.6317414", "0.6298225", "0.6240851", "0.6224518", "0.6204938", "0.60850036", "0.60743046", "0.60278106", "0.60268193", "0.60267866", "0.59926176", "0.59926176", "0.5988038", "0.59...
0.67429256
3
A string representation of this object.
def aRbh(YKHO): KCHu = 'An equation ' NNGZ = not YKHO.A().is_zero() if NNGZ: KCHu += repr(YKHO.A()) + ' x ' if YKHO.b() >= 0: if NNGZ: KCHu += '+' else: KCHu += '-' if NNGZ: KCHu += ' ' KCHu += repr(abs(YKHO.b())) + ' == 0' return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n return str(YKHO)", "def Napc(YKHO):\n return str(YKHO)", "def CZBi(YKHO):\n return YKHO.__repr__()", "def yLCI(YKHO):\n return YKHO.__str__()", "def zAg0(YKHO):\n return str(YKHO.serialize())", "def wHJl(YKHO) -> str:\n return str(YKHO.as_dict())", "def Sa1R(YKHO) ->...
[ "0.8800803", "0.87775826", "0.87286794", "0.86172676", "0.8576114", "0.85605913", "0.85497683", "0.8507315", "0.8507315", "0.8507315", "0.8507315", "0.8507315", "0.8507315", "0.8507315", "0.8507315", "0.8507315", "0.8507315", "0.8507315", "0.8507315", "0.8507315", "0.8507315"...
0.0
-1
Tests whether the interior of the halfspace (excluding its boundary) defined by the inequality contains the given vertex/ray/line.
def y080(YKHO, Ijh2): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y080(YKHO, Ijh2):\n try:\n if Ijh2.is_vector():\n return YKHO.polyhedron()._is_positive(YKHO.eval(Ijh2))\n except AttributeError:\n pass\n if Ijh2.is_line():\n return YKHO.polyhedron()._is_zero(YKHO.eval(Ijh2))\n elif Ijh2.is_vertex():\n return YKHO.polyhedron...
[ "0.6856249", "0.68367535", "0.6756498", "0.67429256", "0.6495758", "0.63621867", "0.63452864", "0.63452864", "0.6317414", "0.6298225", "0.6240851", "0.6224518", "0.6204938", "0.60850036", "0.60743046", "0.60278106", "0.60268193", "0.60267866", "0.5988038", "0.5979449", "0.597...
0.59926176
18
Returns True if the object is a line of the Vrepresentation. This method is overridden by the corresponding method in the derived class Line.
def SpWX(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SpWX(YKHO):\n return True", "def SpWX(YKHO):\n return True", "def Bsr6(YKHO):\n return YKHO.width == 0 and YKHO.height > 1 or (YKHO.height == 0 and YKHO.width > 1)", "def Bsr6(YKHO):\n return YKHO.width == 0 and YKHO.height > 1 or (YKHO.height == 0 and YKHO.width > 1)", "def SpWX(YKHO):\n ...
[ "0.7388121", "0.7388121", "0.73410785", "0.73410785", "0.7011581", "0.6722692", "0.6676307", "0.6624805", "0.6534737", "0.6346986", "0.63411146", "0.63411146", "0.6264687", "0.6248591", "0.6223669", "0.61652696", "0.61327696", "0.6091249", "0.60201836", "0.6014802", "0.601480...
0.7129625
4
Tests if this object is a ray. Always True by construction.
def Fw3E(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fw3E(YKHO):\n return False", "def Fw3E(YKHO):\n return False", "def E2W6(YKHO, spHt):\n WiOR = YKHO._sympy_plane.intersection(spHt.sympy_line)[0]\n if 'x' in YKHO._name:\n if YKHO._within_y_bounds(WiOR.y) and YKHO._within_z_bounds(WiOR.z):\n return (True, oyIN.array(map(float,...
[ "0.76152766", "0.7405027", "0.62074465", "0.62074393", "0.6090226", "0.5951388", "0.5738135", "0.56904054", "0.5686524", "0.55778086", "0.55746454", "0.55088705", "0.54987615", "0.54564613", "0.5426838", "0.5402613", "0.54001117", "0.5375659", "0.53559256", "0.53277266", "0.5...
0.7633362
0
Return homogeneous coordinates for this ray. Since a ray is given by a direction, this is the vector with a 0 appended.
def oVd_(YKHO, rYQz=None): Ty9i = list(YKHO._vector) + [0] return iArr(rYQz or YKHO._base_ring, Ty9i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iArr(YKHO) -> lNLu:\n return YKHO._normal * YKHO._distance_from_origin", "def HBfW(YKHO):\n len = YKHO.length\n return lNLu(YKHO.x / len, YKHO.y / len)", "def NkkI(YKHO):\n return lNLu(YKHO.args + []) / YKHO.magnitude()", "def XSoh(YKHO):\n len = YKHO.length()\n if len == 0.0:\n ...
[ "0.674088", "0.6487137", "0.636597", "0.6308724", "0.6288384", "0.6276714", "0.6189621", "0.6166267", "0.6141056", "0.6134772", "0.6127229", "0.60706735", "0.6064615", "0.6059691", "0.60559094", "0.6054334", "0.60053873", "0.6002481", "0.5974752", "0.59605396", "0.5948805", ...
0.6078393
11
Return homogeneous coordinates for this line. Since a line is given by a direction, this is the vector with a 0 appended.
def oVd_(YKHO, rYQz=None): Ty9i = list(YKHO._vector) + [0] return iArr(rYQz or YKHO._base_ring, Ty9i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ny3o(YKHO):\n assert len(YKHO.xcoords) == 2\n q_cO = YKHO.xcoords[1] - YKHO.xcoords[0]\n ggF6 = YKHO.zcoords[1] - YKHO.zcoords[0]\n he6J = oyIN.hstack((q_cO, ggF6))\n return he6J", "def kaK1(zFiD):\n X3qZ, ZYCo = zFiD\n X3qZ = oyIN.array(X3qZ).reshape(2)\n ZYCo = oyIN.array(ZYCo).resh...
[ "0.7026541", "0.65598226", "0.64231944", "0.6282823", "0.6254565", "0.61447936", "0.6099765", "0.60990334", "0.60587686", "0.60543925", "0.60395837", "0.5987114", "0.59836656", "0.5914958", "0.59121704", "0.590353", "0.59023505", "0.58962023", "0.58874446", "0.588617", "0.588...
0.0
-1
Composes output model name from parameters (e.g., epoch, dim)
def XVzd(YKHO, NArs, xtX7=None): xtX7 = xtX7 or YKHO.output_dir y0cW = Hy7s.path.basename(NArs['graph']) mWFP = '_'.join(['{}-{}'.format(G1Hx, Ty9i) for G1Hx, Ty9i in sorted(NArs.items()) if G1Hx not in ['graph']]) ZGE9 = '-'.join([y0cW, mWFP]) eHMM = Hy7s.path.join(xtX7, ZGE9) return eHMM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TbE8(mWFP, Ep8u, b0Ix, qtWj):\n pmON = 'model_{0}_bs{1}_lr{2}_epoch{3}'.format(mWFP, Ep8u, b0Ix, qtWj)\n return pmON", "def Ry74(YKHO):\n wzkt = qcWV.datetime.now()\n mWFP = '%s_%s_%s_%s_%s_%s' % (wzkt.day, wzkt.month, 'rnn', YKHO._controller_type, YKHO._num_layers, YKHO._layer_size)\n if YKHO...
[ "0.74429864", "0.72057253", "0.69994664", "0.6677099", "0.6649023", "0.6631111", "0.6569316", "0.6394026", "0.6380789", "0.6289959", "0.62626195", "0.6258919", "0.6252059", "0.6244986", "0.62184376", "0.6157125", "0.6134587", "0.6129205", "0.6097231", "0.6021453", "0.5972881"...
0.7108442
2
Return full command as a string.
def ZwIE(YKHO, vT7J=False): CWD_ = YKHO.normspace(Hy7s.path.join(YKHO.radbinPath, 'vwrays')) XdzP = YKHO.vwraysParameters.toRadString() km5V = YKHO.viewFile.toRadString() yHDI = '-vf %s' % YKHO.normspace(km5V) if km5V else '' XmF6 = '> %s' % YKHO.outputFile if YKHO.outputFile else '' rJoV = YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N2an(YKHO):\n return '%s %s' % (YKHO.locCmdID, YKHO.cmdStr)", "def oUZx(YKHO) -> str:\n HCmI = ''\n if YKHO.argv:\n HCmI = YKHO.argv[0]\n return HCmI", "def yLCI(YKHO):\n return YKHO.command()", "def ihEb(YKHO) -> str:\n if YKHO.command and YKHO.args:\n eEZP = f'{YKHO.comm...
[ "0.7929019", "0.76947993", "0.75896114", "0.73736864", "0.72241807", "0.7209419", "0.71863997", "0.70160794", "0.70093304", "0.7002492", "0.6999356", "0.6935535", "0.68380296", "0.6802123", "0.6795638", "0.6779141", "0.67695796", "0.67394435", "0.67380077", "0.6728414", "0.67...
0.0
-1
Return or set the opacity unit distance. This is the unit distance on which the scalar opacity transfer function is defined. By default this is 1.0, meaning that over a distance of 1.0 units, a given opacity (from the transfer function) is accumulated. This is adjusted for the actual sampling distance during rendering.
def NP3O(YKHO) -> float: return YKHO.GetScalarOpacityUnitDistance()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _BoG(YKHO):\n return YKHO._distancefactor", "def N5D3(YKHO):\n return YKHO._distance.to('m').value", "def BCp6(YKHO):\n return YKHO._opacity", "def BCp6(YKHO):\n if YKHO.isIsolateHidden():\n return 0.1\n BCp6 = super(xn4r, YKHO).opacity()\n gEmA = YKHO.layer()\n if gEmA:\n ...
[ "0.6021545", "0.60052586", "0.59463155", "0.59113526", "0.5679345", "0.56293315", "0.55702055", "0.55371463", "0.55226016", "0.55165875", "0.54744136", "0.54594374", "0.5451639", "0.54311574", "0.54164565", "0.5378316", "0.537608", "0.5356985", "0.5351597", "0.534961", "0.530...
0.83455896
0
Return the zero 'c' of a monotonically increasing or decreasing function f. p1 is an estimate of where the zero might be. d is the accuracy of the zero.
def CbDj(eHNT, EBgd, Csk6): if EBgd > 10: EBgd = 0.5 Z9rn = EBgd - eHNT(EBgd) * Csk6 / (eHNT(EBgd + Csk6) - eHNT(EBgd)) if Z9rn < 0: Z9rn = -Z9rn global n_of_zeros if S3Pv > 8: print('Go linear') return K3On(eHNT, Csk6, Z9rn, Csk6) S3Pv += 1 print('#', S3Pv, '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L1d9(XP5J, eHNT, Z9rn):\n Th_T = XP5J * oyIN.log(Z9rn * eHNT + 1) + (1 - XP5J) * oyIN.log(1 - eHNT)\n return Th_T", "def IExn(eHNT, Csk6=0):\n return vZ_W(nu4s(eHNT) - Csk6)", "def CbDj(eHNT, jQ3Z):\n\n def CiO1(WKvO):\n return Tbdk(eHNT(WKvO), 0)\n return Lbti(eYgL(eHNT, jQ3Z), CiO1)...
[ "0.6610811", "0.6511553", "0.63952225", "0.632142", "0.62610245", "0.6245834", "0.62457925", "0.6188658", "0.6177814", "0.6125175", "0.61160517", "0.6085673", "0.6080162", "0.60407656", "0.59930676", "0.59856665", "0.5980398", "0.5951933", "0.5947896", "0.59473944", "0.590243...
0.7543794
0
Returns the maximum value of the slider
def qfB5(YKHO): return YKHO._max
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BfFQ(YKHO):\n bQ6z = max(YKHO.values)\n return bQ6z", "def max(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'max')", "def max(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'max')", "def bQ6z(YKHO) -> uLKX[int, float]:\n return YKHO.right_boundary['value']", "def BfFQ(YKHO):\n ...
[ "0.7829588", "0.7669991", "0.7669991", "0.76484126", "0.76390016", "0.7621435", "0.7591141", "0.7559055", "0.75529355", "0.7534582", "0.7522369", "0.75211614", "0.748256", "0.7479021", "0.7422845", "0.73591536", "0.7324688", "0.7324688", "0.73149556", "0.7268559", "0.72485715...
0.75088876
12
The minium value allowed for the spinner widget Default value is 0
def min(YKHO): return YKHO._min
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XAdv(YKHO):\n YKHO._level_gen.minimum_length = YKHO._minimum_length_spinbox.value()\n YKHO._refresh_view()", "def XaWZ(YKHO):\n return YKHO.MIN_VALUE", "def yFd9(YKHO, dgIT):\n YKHO.MinValue = dgIT", "def yFd9(YKHO, dgIT):\n YKHO.MinValue = dgIT", "def NJEP(YKHO, wEf2):\n YKHO.minVal ...
[ "0.7130366", "0.6803748", "0.6700968", "0.6700968", "0.6543529", "0.6510713", "0.64939106", "0.6387477", "0.6387477", "0.6372935", "0.63195014", "0.62872", "0.6282415", "0.61994827", "0.6196452", "0.6196452", "0.6185861", "0.6183966", "0.6182906", "0.6182906", "0.6164927", ...
0.59388626
37
The maximum value of spinner widget. Once it is reached, the number will not increment anymore Default value is 100
def max(YKHO): return YKHO._max
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qGyI(YKHO, BWXx: int):\n YKHO.ui.progress.setMaximum(BWXx)", "def jw1Y(YKHO):\n YKHO._level_gen.maximum_length = YKHO._maximum_length_spinbox.value()\n YKHO._refresh_view()", "def pB5E(YKHO, PtQX):\n pass", "def Bu0a(YKHO, bQ6z):\n YKHO.MaxValue = bQ6z", "def Bu0a(YKHO, bQ6z):\n YKHO....
[ "0.6864508", "0.683982", "0.66321975", "0.66049486", "0.66049486", "0.64841473", "0.64389175", "0.63920945", "0.63920945", "0.6389086", "0.62657475", "0.6238493", "0.61642694", "0.61586636", "0.61361337", "0.6113973", "0.6109282", "0.60782576", "0.6014228", "0.5979747", "0.59...
0.5521722
70
Removing every second byte (zero bytes)
def fgcG(KaGP): return KaGP[1::2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ukIh(str):\n if str[-2] == '0':\n return str[:-2] + str[-1]\n else:\n return str", "def P60c(LaVg: bytes) -> bytes:\n if b'\\x00' in LaVg:\n return LaVg[:LaVg.find(b'\\x00')]\n else:\n return LaVg", "def nEHr(RBbh):\n BHp9 = ''\n vZa6 = 1\n Csk6 = 0\n for...
[ "0.6938106", "0.64974314", "0.6294952", "0.61731875", "0.599833", "0.5949248", "0.59282553", "0.59173125", "0.59087926", "0.583918", "0.58099204", "0.5802338", "0.57768404", "0.56720996", "0.56127536", "0.5595838", "0.5573313", "0.5526444", "0.5514258", "0.55090463", "0.55073...
0.0
-1
Return the path to the scratch dir that we build within.
def sO0m(): NHbe = Hy7s.path.join(rsxK(), 'target', 'compat-check') if not Hy7s.path.exists(NHbe): Hy7s.makedirs(NHbe) return NHbe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sO0m():\n try:\n return Hy7s.environ['_CONDOR_SCRATCH_DIR']\n except KeyError:\n return gbPf.gettempdir()", "def OoHa():\n TLI7 = Hy7s.path.join(P8LW, 'scratch')\n if Hy7s.path.isdir(TLI7):\n RDuA.rmtree(TLI7)\n cYu8 = Hy7s.path.join(TLI7, 'packages')\n Hy7s.makedirs(cY...
[ "0.7874509", "0.73542386", "0.7059514", "0.7011762", "0.69112", "0.6793722", "0.67156285", "0.67156285", "0.6668115", "0.66560936", "0.66535676", "0.6635887", "0.65948665", "0.6582831", "0.65750045", "0.657494", "0.6558456", "0.65521234", "0.65447366", "0.6519347", "0.6516594...
0.81557745
0
Return a list of jars within 'path' to be checked for compatibility.
def yk2n(pmON): buuR = set(CD35(['find', pmON, '-type', 'f', '-name', '*.jar']).splitlines()) return [r845 for r845 in buuR if '-tests' not in r845 and '-sources' not in r845 and ('-with-dependencies' not in r845)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DOuB(YKHO, pmON):\n if not pmON:\n return []\n pmON = Hy7s.path.normpath(pmON).replace('\\\\', '/')\n from stalker import Repository\n ZDRx = Repository.to_os_independent_path(pmON)\n bo34.debug('os_independent_path: %s' % ZDRx)\n from stalker import Version\n from stalker.db.sessio...
[ "0.65349346", "0.59373873", "0.591069", "0.5896378", "0.58784753", "0.58418304", "0.58042943", "0.5770394", "0.5747154", "0.5720439", "0.5700362", "0.56951386", "0.56943995", "0.56462574", "0.56116563", "0.5605039", "0.560152", "0.55683714", "0.5562325", "0.55297786", "0.5518...
0.76639944
0
Iterate through a dictionary of data and convert all unicode to ascii. This method was taken from stackoverflow.com/questions/9590382/forcingpythonjsonmoduletoworkwithascii
def U6wf(nPrm): ASsu = lambda WKvO: WKvO.encode('ascii') if isinstance(WKvO, str) else WKvO return dict((list(map(ASsu, q2Xo)) for q2Xo in list(nPrm.items())))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vl_n(nPrm):\n if isinstance(nPrm, QMSQ):\n return nPrm.encode('utf-8')\n elif isinstance(nPrm, list):\n return [Vl_n(YRbF) for YRbF in nPrm]\n elif isinstance(nPrm, dict):\n return {Vl_n(YRbF): Vl_n(nPrm[YRbF]) for YRbF in nPrm}\n return nPrm", "def vrQC(Op6c, tZ2K):\n for...
[ "0.6858892", "0.6737289", "0.6659699", "0.6389398", "0.6347448", "0.63167745", "0.6223812", "0.6054062", "0.60408324", "0.60205984", "0.5995308", "0.5964103", "0.59601754", "0.59434044", "0.58674103", "0.5853518", "0.5828692", "0.5798811", "0.57858664", "0.5754281", "0.573376...
0.71262044
0
Concert velocities from a cartesian system to proper motions and radial velocities
def gIOM(YKHO, WKvO='x', LVAh='y', epBp='z', zTvC='vx', YtJp='vy', tYeL='vz', KCol='vr', mLKc='pm_long', bhJl='pm_lat', Ayfi=None, LpaZ=False): jQ3Z = YKHO.df if LpaZ else YKHO.df.copy() if Ayfi is None: Ayfi = 'sqrt({x}**2+{y}**2+{z}**2)'.format(**locals()) G1Hx = 4.74057 jQ3Z.add_variable('k',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l0Ib(oeNL, y917):\n q7In = oeNL[:, 1]\n KCol = y917[:, 0]\n JtCr = y917[:, 1]\n tYeL = y917[:, 2]\n zTvC = KCol * oyIN.cos(q7In) - JtCr * oyIN.sin(q7In)\n YtJp = KCol * oyIN.sin(q7In) + JtCr * oyIN.cos(q7In)\n tYeL = tYeL\n return oyIN.dstack((zTvC, YtJp, tYeL))[0]", "def ozhP(YKHO):\...
[ "0.70039296", "0.6899888", "0.6809417", "0.6808413", "0.67012864", "0.6659838", "0.66525424", "0.6649446", "0.6543619", "0.6489814", "0.6444669", "0.63781625", "0.6373441", "0.6368298", "0.6353544", "0.6345697", "0.6301086", "0.6227903", "0.62184757", "0.6198961", "0.61959374...
0.0
-1
Get a partitioner for VariableScope to keep shards below `max_shard_bytes`. This partitioner will shard a Variable along one axis, attempting to keep the maximum shard size below `max_shard_bytes`. In practice, this is not always possible when sharding along only one axis. When this happens, this axis is sharded as muc...
def Pfnl(UBYC, jDK_=0, UJPG=16, mdR4=None): if UBYC < 1 or UJPG < 1: raise ValueError(f'Both max_shard_bytes and bytes_per_string_element must be positive. Currently, max_shard_bytes is {UBYC} andbytes_per_string_element is {UJPG}') if mdR4 and mdR4 < 1: raise ValueError('max_shards must be posi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kyY9(xo4a=1, jDK_=0, sCz5=256 << 10, UJPG=16):\n\n def AkJj(ROpF, yDqo):\n \"\"\"Partitioner that partitions list for a variable of given shape and type.\n\n Ex: Consider partitioning a variable of type float32 with\n shape=[1024, 1024].\n If `max_partitions` >= 16, this function would r...
[ "0.6623838", "0.62530106", "0.55201674", "0.54448503", "0.54448503", "0.51812786", "0.51736367", "0.5124417", "0.50946194", "0.50946194", "0.5030613", "0.502311", "0.4902142", "0.4855417", "0.48331273", "0.48274654", "0.47569272", "0.47569272", "0.475025", "0.4748533", "0.474...
0.7404629
0
Partitioner to specify a fixed number of shards along given axis. (TF2) This API is deprecated in TF2. In TF2, partitioner is no longer part of the variable declaration via `tf.Variable`. [ParameterServer Training]
def TLKA(frCB, jDK_=0): def AkJj(ROpF, **Z6u0): se0r = [1] * len(ROpF) se0r[jDK_] = min(frCB, ROpF.dims[jDK_].value) return se0r return AkJj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pfnl(UBYC, jDK_=0, UJPG=16, mdR4=None):\n if UBYC < 1 or UJPG < 1:\n raise ValueError(f'Both max_shard_bytes and bytes_per_string_element must be positive. Currently, max_shard_bytes is {UBYC} andbytes_per_string_element is {UJPG}')\n if mdR4 and mdR4 < 1:\n raise ValueError('max_shards mus...
[ "0.71160024", "0.67230225", "0.6004104", "0.5983609", "0.59258485", "0.58372605", "0.5734408", "0.573386", "0.5602343", "0.55887496", "0.5442609", "0.5370742", "0.5343927", "0.53321606", "0.5325889", "0.5325063", "0.5304298", "0.5288746", "0.5276637", "0.52260876", "0.5221612...
0.7204223
0
Create a list of partitioned variables according to the given `slicing`. Currently only one dimension of the full variable can be sliced, and the full variable can be reconstructed by the concatenation of the returned list along that dimension.
def GjKQ(ROpF, sL6f, MuED, yDqo=m1c7.float32, XJsN=True, g760=None, mWFP=None, CJGY=None): if len(ROpF) != len(sL6f): raise ValueError(f"The 'shape' and 'slicing' of a partitioned Variable must have the length: shape: {ROpF}, slicing: {sL6f}") if len(ROpF) < 1: raise ValueError(f'A partitioned V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GjKQ(ROpF, sL6f, MuED, yDqo=m1c7.float32, XJsN=True, g760=None, mWFP=None, CJGY=None):\n if len(ROpF) != len(sL6f):\n raise ValueError(\"The 'shape' and 'slicing' of a partitioned Variable must have the length: shape: %s, slicing: %s\" % (ROpF, sL6f))\n if len(ROpF) < 1:\n raise ValueError(...
[ "0.7369694", "0.6652528", "0.6155973", "0.6029614", "0.5984155", "0.58837646", "0.5727084", "0.55970305", "0.5594166", "0.5577348", "0.5574835", "0.5553544", "0.5545915", "0.5538713", "0.55150485", "0.5483339", "0.54592234", "0.54355204", "0.54292035", "0.5406725", "0.5389529...
0.7401687
0
Compute dx for flagging
def zw1_(nPrm): TifC = oyIN.abs(oyIN.diff(nPrm)) TifC = oyIN.concatenate(([0], TifC)) return TifC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OqFb(YKHO, EcVT):\n return 2 * EcVT[0] - 2", "def thKP(YKHO, EcVT):\n return 3 * EcVT[1] ** 2", "def ygXV(m0HX, EcVT):\n assert EcVT.shape[1] == 1\n ssN5 = EcVT.copy()\n ezlb = EcVT.copy()\n SGf8 = -0.005\n ezlb[IGtT] = ezlb[IGtT] + SGf8\n ssN5[m0HX.nX:m0HX.nXY] = m0HX.F(ssN5[m0HX.i...
[ "0.72657746", "0.7074264", "0.6892348", "0.6787691", "0.66890955", "0.66700083", "0.66700083", "0.6585489", "0.6524985", "0.6377786", "0.63741904", "0.6366356", "0.6341531", "0.6331538", "0.6305693", "0.6293501", "0.62756294", "0.6210766", "0.6206867", "0.619658", "0.61815155...
0.0
-1
Improve the target expression using enumerative synthesis. This function is a generator that yields increasingly better and better versions of the input expression `target`. Notes on internals of this algorithm follow.
def Lbti(pan_: Exp, QpfX: Context, MKWS: Exp=Kt_s, bklV=NMNV, MDDt: [Exp]=(), _73Q: [{str: object}]=(), bJS_: CostModel=None): print('call to improve:') print('improve(\n target={target!r},\n context={context!r},\n assumptions={assumptions!r},\n stop_callback={stop_callback!r},\n ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tsfy(YKHO, pan_):\n pan_ = pan_.view(-1)\n zB1j = [pan_.clone()]\n swxm = []\n for YRbF in range(len(YKHO.cutoff) - 1):\n ZHfW = pan_.ge(YKHO.cutoff[YRbF]).mul(pan_.lt(YKHO.cutoff[YRbF + 1]))\n zB1j[0][ZHfW] = YKHO.cutoff[0] + YRbF - YKHO.buggy_offset\n if ZHfW.any():\n ...
[ "0.56272966", "0.5393609", "0.5156889", "0.51452154", "0.51155734", "0.5058315", "0.5033971", "0.5019287", "0.49965423", "0.49884284", "0.49804744", "0.49685565", "0.49530372", "0.49343356", "0.49212715", "0.4912529", "0.4912529", "0.48951694", "0.4859037", "0.48559305", "0.4...
0.5878677
0
Checks if lifespan is exceeded.
def ypGT(YKHO): return YKHO.age > YKHO.lifespan
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTMO(YKHO):\n return int(ITS7.time()) - YKHO.start_time >= YKHO.length", "def onjh(YKHO):\n if YKHO.stopwatch.check_time() > YKHO.duration:\n YKHO.stopwatch.start()\n YKHO.num_processed_this_interval = 0\n return False\n return YKHO.num_processed_this_interval >= YKHO.max_per_in...
[ "0.70351404", "0.669618", "0.63818836", "0.6239733", "0.62282693", "0.6061441", "0.60462666", "0.5959913", "0.5946756", "0.590665", "0.58828735", "0.5848977", "0.5845199", "0.5825435", "0.5808674", "0.58052486", "0.5772699", "0.57675785", "0.5744262", "0.573884", "0.56843007"...
0.5926406
9
Take argmax of m along dimension 1 and apply RGB colorcode on it
def n6r6(r8hN, iMGt=QrM1.cm.viridis): tjUW, C7Ls, XcU5, V6IE = U78l.shape_as_list(r8hN) bi2a = ZylS.arg_max(r8hN, dimension=-1) Jw9H = sep_.make_colors(V6IE, cmap=iMGt) Jw9H = Jw9H.astype(oyIN.float32) Jw9H = ZylS.convert_to_tensor(Jw9H) mvIf = ZylS.one_hot(bi2a, V6IE, axis=-1) NVth = ZylS.e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m9sF(VXjJ: np.ndarray):\n tjUW, yvY1, A3Vt = XC5k.split(VXjJ)\n E3D9 = oyIN.maximum(oyIN.maximum(A3Vt, yvY1), tjUW)\n A3Vt[A3Vt < E3D9] = 0\n yvY1[yvY1 < E3D9] = 0\n tjUW[tjUW < E3D9] = 0\n return XC5k.merge([tjUW, yvY1, A3Vt])", "def cggJ(zZcM, zr3f):\n Fg_i, Oa1e, Mkmy = XC5k.split(zZc...
[ "0.64958453", "0.6463115", "0.6354029", "0.61667645", "0.6148527", "0.61483264", "0.61133534", "0.59769547", "0.5865522", "0.58518404", "0.58318317", "0.58041954", "0.5783557", "0.5643267", "0.56404704", "0.5563725", "0.5552524", "0.5498227", "0.54946125", "0.5484113", "0.546...
0.8083214
0
Get tables for this database It's common to want the Tables for a Database but the two models are separated by a Schema. This property aims to simply that lookup.
def xU0C(YKHO): return TQJD.objects.filter(schema__database=YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SwKF(YKHO):\n return YKHO.dbNames", "def xU0C(YKHO) -> list:\n return YKHO.list_tables()", "def d_72(YKHO, wnys):\n pass", "def xU0C(YKHO):\n Aofo = YKHO.execute(YKHO.commands.get_tables(YKHO.name))\n return [WKvO[0] for WKvO in Aofo]", "def KSLV(YKHO) -> list:\n\n def CtMU(**B2fa):\n...
[ "0.74762964", "0.73759145", "0.73195535", "0.7315017", "0.7290738", "0.7186329", "0.7167253", "0.71611804", "0.7102203", "0.7065968", "0.70065594", "0.6973729", "0.6953535", "0.6931115", "0.69180757", "0.6884369", "0.67897344", "0.6778243", "0.67766654", "0.67132795", "0.6707...
0.866739
0
Create and save a user with the given username, email, and password.
def xWi2(YKHO, D3lj, jTXt, **wdCM): if not D3lj: raise ValueError('The given email must be set') D3lj = YKHO.normalize_email(D3lj) DpZH = moxu.objects.latest() CBIr = YKHO.model(email=D3lj, current_version=DpZH, **wdCM) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se...
[ "0.85967624", "0.8440654", "0.84264034", "0.8423257", "0.84063315", "0.8393488", "0.83878005", "0.8341707", "0.8334409", "0.8332718", "0.83224976", "0.8288854", "0.82819235", "0.827502", "0.8269521", "0.8267577", "0.81637603", "0.8159258", "0.8158126", "0.81423306", "0.813671...
0.0
-1
Returns a list containing all existing neighbors of a node. coord must be a valid coordinate i.e. self.check_coord(coord).
def A_IW(YKHO, BHsk): if not YKHO.check_coord(BHsk): raise ValueError('Invalid coordinates') WKvO, LVAh = BHsk exwG = [(WKvO + 1, LVAh), (WKvO - 1, LVAh), (WKvO, LVAh + 1), (WKvO, LVAh - 1)] U5bT = [Z9rn for Z9rn in exwG if YKHO.check_coord(Z9rn)] return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sCyY(YKHO, BHsk):\n A_IW = []\n for nZuS in YKHO._changes:\n enLY = oyIN.array(BHsk) + nZuS\n if oyIN.logical_or(oyIN.any(enLY < 0), oyIN.any(enLY >= YKHO._grid_shape)):\n continue\n A_IW.append(tuple(enLY))\n return A_IW", "def A_IW(YKHO, Q6kx):\n return list(YKHO...
[ "0.8222512", "0.76888615", "0.75152946", "0.73720956", "0.72651494", "0.72308403", "0.7219055", "0.71015745", "0.69940096", "0.68836075", "0.68689543", "0.6854589", "0.68392444", "0.6829193", "0.6784378", "0.6774989", "0.676525", "0.6743326", "0.6721076", "0.670196", "0.66932...
0.84127307
0
Returns a list of near enemies that can be attacked without having to move.
def LETA(YKHO, Fp3l=None, BHsk=None): if not Fp3l: Fp3l = YKHO.curr_unit if not BHsk: BHsk = Fp3l.coord mnKh, v_h6 = Fp3l.get_weapon_range() f0tD = YKHO.area(BHsk, v_h6, mnKh) Ap1L = [] for P6bq in f0tD: oI3N = YKHO.get_unit(P6bq) if oI3N and YKHO.units_manager.ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FDkg(YKHO, Ov5A):\n X3lK = []\n for JjEH in YKHO.getOpponents(Ov5A):\n iwoe = Ov5A.getAgentState(JjEH)\n if not iwoe.isPacman and iwoe.scaredTimer == 0:\n g6Bv = Ov5A.getAgentPosition(JjEH)\n if g6Bv != None:\n X3lK.append(JjEH)\n return X3lK", "def...
[ "0.6828104", "0.6395965", "0.6236478", "0.6126563", "0.6104321", "0.6073693", "0.6032627", "0.5877156", "0.5864982", "0.5864709", "0.5852008", "0.5828249", "0.5810124", "0.5792871", "0.5772731", "0.57411236", "0.5739932", "0.5738728", "0.57237536", "0.56916803", "0.56865", ...
0.6751573
1
Returns the number of rows. Returns
def NwL4(YKHO): if YKHO._is_vertex_frame(): return YKHO.__graph__.summary()['num_vertices'] elif YKHO._is_edge_frame(): return YKHO.__graph__.summary()['num_edges']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWGE(YKHO) -> int:\n ...", "def NwL4(YKHO):\n return len(YKHO.rows)", "def NwL4(YKHO):\n return len(YKHO.rows)", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def _1Ox(YKHO):\n return YKHO._num_rows", "def SWGE(YKHO):\n ret...
[ "0.917233", "0.88776004", "0.8820168", "0.8808889", "0.8808889", "0.8763773", "0.8707073", "0.86238533", "0.85704553", "0.85265195", "0.85248595", "0.8512828", "0.84496826", "0.84472466", "0.84370935", "0.83640385", "0.8261872", "0.8242015", "0.82058614", "0.819792", "0.81144...
0.76942885
41
Splits data into train/val/test subsets of a given size
def Qb89(WKvO: np.array, LVAh: np.array, NI2E: float=0.2, HI29: float=0.2, t3eI: int=None) -> x1iM[AzJI[oyIN.array]]: nzV8, BVu8, OJCd, PdIf = bHtP(WKvO, LVAh, test_size=NI2E, random_state=t3eI) nzV8, HzBr, OJCd, Cnwh = bHtP(nzV8, OJCd, test_size=HI29, random_state=t3eI) return ((nzV8, OJCd), (HzBr, Cnwh), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FJfc(YKHO, NI2E=0.2):\n YKHO.training_data, YKHO.test_data, YKHO.training_labels, YKHO.test_labels = bHtP(YKHO.training_data, YKHO.training_labels, test_size=NI2E)", "def Qb89(__n6, NI2E=0.5):\n fVgT = oyIN.random.RandomState(seed=721).permutation(__n6)\n XxFT = fVgT[:int(len(__n6) * (1 - NI2E)), :]...
[ "0.7967489", "0.7794083", "0.7695253", "0.7665634", "0.76424474", "0.7634289", "0.7623757", "0.7606727", "0.76020706", "0.75711954", "0.75218487", "0.7456067", "0.7451648", "0.74393195", "0.74052787", "0.7391813", "0.7373566", "0.7341726", "0.73327416", "0.73000014", "0.72996...
0.72409403
28
Returns activation method by a given name
def etcC(mWFP: str) -> ImMB: na_E = {'elu': U78l.ELU, 'hardshrink': U78l.Hardshrink, 'hardtanh': U78l.Hardtanh, 'leakyrelu': U78l.LeakyReLU, 'logsigmoid': U78l.LogSigmoid, 'prelu': U78l.PReLU, 'relu': U78l.ReLU, 'relu6': U78l.ReLU6, 'rrelu': U78l.RReLU, 'selu': U78l.SELU, 'sigmoid': U78l.Sigmoid, 'softplus': U78l.S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qUJm(mWFP):\n if mWFP not in yCWN.keys():\n raise ValueError(f'{mWFP} is not a valid activation function.')\n return yCWN[mWFP]", "def b914(mWFP: Optional[str]):\n if mWFP in (None, 'linear'):\n return lambda WKvO: WKvO\n elif mWFP in ('sigmoid', 'tanh'):\n return getattr(ht2...
[ "0.78163666", "0.7420318", "0.6877094", "0.6787138", "0.6785763", "0.6588628", "0.6580236", "0.65554845", "0.64501065", "0.6449193", "0.64339244", "0.64263684", "0.64145476", "0.6408341", "0.63686883", "0.63588804", "0.63510966", "0.6338946", "0.6334626", "0.63136685", "0.630...
0.82283616
0
Get the drag force (x) provided by the landing gear
def Cf2v(YKHO): return 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jmm7(YKHO):\n return YKHO.Direction['x']", "def y9kB():\n Oa1e = Wqa4.gravity()\n return SZ2k(Oa1e[0], Oa1e[1], Oa1e[2])", "def Jd9X(YKHO):\n return YKHO.angvel.getX()", "def aY1t(YKHO):\n return YKHO.xvelocity", "def gXIM(YKHO):\n return YKHO.x", "def M5FH(KCHu):\n Mkmy = oyIN.l...
[ "0.6040731", "0.6020275", "0.60098517", "0.5933948", "0.5931478", "0.592996", "0.5922517", "0.59075683", "0.58817333", "0.58535206", "0.58410996", "0.58165467", "0.580162", "0.58009326", "0.57819986", "0.57819986", "0.5774227", "0.5736978", "0.5700994", "0.56988096", "0.56982...
0.6939582
0
Return a Version object from value.
def Wo8L(BWXx): if not isinstance(BWXx, moxu): BWXx = moxu.from_string(BWXx) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, BWXx: str) -> None:\n try:\n lxAM, r05e = YKHO.split('v', 1)\n YKHO.arxiv_id = vd32(lxAM)\n YKHO.version = int(r05e)\n except ValueError as e:\n raise ValueError(f'Not a valid version identifier: {BWXx}') from tTpl", "def N1Ya(Emd4) -> 'VersionStructure':\n wit...
[ "0.6354353", "0.6041936", "0.5958568", "0.592619", "0.58279985", "0.5767163", "0.5762127", "0.57187676", "0.5702731", "0.5698203", "0.5663772", "0.5656859", "0.56500906", "0.56151485", "0.55053675", "0.5493389", "0.54900426", "0.5461932", "0.5460508", "0.5460174", "0.5433595"...
0.752234
0
Return the digit prefix from a list of characters.
def ddUx(SIyd): BWXx = 0 while SIyd and SIyd[0].isdigit(): BWXx = BWXx * 10 + int(SIyd.pop(0)) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bw4M(SIyd):\n y0cW = []\n while SIyd and (not SIyd[0].isdigit()):\n y0cW.append(SIyd.pop(0))\n return y0cW", "def tX49(KCHu):\n hlel = ''\n for YRbF in range(len(KCHu) + 1):\n H2v5 = KCHu[0:YRbF]\n hlel += H2v5\n return hlel", "def GfgB(HZeM: str) -> x1iM[int]:\n m...
[ "0.78587323", "0.67651623", "0.6760233", "0.66336036", "0.65106934", "0.6476999", "0.6258126", "0.62505066", "0.6086174", "0.60779506", "0.5976031", "0.5954396", "0.5935519", "0.59206545", "0.5833455", "0.5797259", "0.57922006", "0.57849747", "0.5730795", "0.5724486", "0.5715...
0.77311194
1