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
Test to confirm that we are copying the email address from a found contact
def TfZG(YKHO): YKHO.new_contact.save_contact() U2Av.copy_email('0712345678') YKHO.assertEqual(YKHO.new_contact.email, wUvD.paste())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TfZG(YKHO):\n YKHO.new_contact.save_contact()\n U2Av.copy_email(254719702373)\n YKHO.assertEqual(YKHO.new_contact.email, wUvD.paste())", "def TfZG(YKHO):\n YKHO.new_credential.save_credential()\n V8yT.copy_email('Chris')\n YKHO.assertEqual(YKHO.new_credential.email, wUvD.paste())", "def d...
[ "0.83343744", "0.7601879", "0.6900183", "0.6812739", "0.6561415", "0.6468561", "0.6455767", "0.64429235", "0.6356866", "0.6320259", "0.62970245", "0.62465024", "0.6236399", "0.6219535", "0.6197941", "0.6197167", "0.6179059", "0.6178218", "0.61507607", "0.6110539", "0.60834587...
0.7637972
1
undraw the arrow and draw a new one for the current values of angle and velocity.
def gCKv(YKHO): YKHO.arrow.undraw() ZYCo = PvyL(YKHO.vel * YhSR(YKHO.angle), YKHO.vel * YUNn(YKHO.angle)) YKHO.arrow = NTRO(PvyL(0, 0), ZYCo).draw(YKHO.win) YKHO.arrow.setArrow('last') YKHO.arrow.setWidth(3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCKv(YKHO):\n YKHO.arrow.undraw()\n ZYCo = PvyL(YKHO.vel * YhSR(YKHO.angle), YKHO.vel * YUNn(YKHO.angle))\n YKHO.arrow = NTRO(PvyL(0, 0), ZYCo).draw(YKHO.win)\n YKHO.arrow.setArrow('last')\n YKHO.arrow.setWidth(3)", "def uHdL(YKHO):\n rMLb = [YRbF - r845 for YRbF, r845 in zip(YKHO.end_x, YK...
[ "0.77334005", "0.65644336", "0.6287359", "0.6213265", "0.61974335", "0.6153086", "0.5998839", "0.5908423", "0.5908423", "0.59016716", "0.5891196", "0.58837223", "0.5872633", "0.5846972", "0.58233887", "0.5820985", "0.5800393", "0.57933944", "0.5788004", "0.5777631", "0.575778...
0.7731802
1
return the current x coordinate of the shot's center
def jSnl(YKHO): return YKHO.proj.getX()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YH9x(YKHO):\n return YKHO.rect.x", "def vAgg(YKHO):\n return YKHO.position.x", "def FKsd(YKHO):\n return YKHO.left + YKHO.width / 2", "def YH9x(YKHO):\n return YKHO.actual_coordinates[0]", "def nIKw(YKHO):\n return YKHO.posX", "def nIKw(YKHO):\n return YKHO._collision_rect.x + 14", ...
[ "0.8170842", "0.79965454", "0.7950228", "0.78056806", "0.7790852", "0.7761694", "0.7672446", "0.7604114", "0.75850916", "0.7479844", "0.74445426", "0.7407246", "0.74059206", "0.7337172", "0.7303859", "0.727023", "0.7150097", "0.71477306", "0.71369725", "0.71034396", "0.704470...
0.65873474
50
return the current y coordinate of the shot's center
def bDS1(YKHO): return YKHO.proj.getY()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def boAb(YKHO):\n return YKHO.rect.y", "def BBTF(YKHO):\n return YKHO.position.y", "def LVAh(YKHO):\n return YKHO.position.y", "def boAb(YKHO):\n return YKHO.actual_coordinates[1]", "def yDCK(YKHO):\n return YKHO._collision_rect.y + 25", "def yDCK(YKHO):\n return YKHO.posY", "def yDCK...
[ "0.7937652", "0.7730214", "0.76843345", "0.76624733", "0.7574403", "0.7466444", "0.7450869", "0.7435911", "0.7431255", "0.73885834", "0.7357961", "0.73478985", "0.7332926", "0.7316668", "0.7212563", "0.71838593", "0.7172444", "0.7161277", "0.7153415", "0.7126375", "0.71033573...
0.68248624
30
Returns the expected test configurations for the default datastore defined in the Test Config as dbaas_datastore.
def sQ_d(): Gbhs = X8Rg.get('dbaas_datastore', None) WhUl = X8Rg.get(Gbhs, {}) return WhUl.get('configurations', {})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jtjw(o_gm):\n KAOR = l85q.dbaas.instances.get(o_gm)\n jYzT = KAOR.datastore['type']\n WhUl = X8Rg.get(jYzT, {})\n return WhUl.get('configurations', {})", "def DP_P(YKHO):\n pRGk = YKHO.expected_default_datastore_configs()\n hkxX = qQXR.dumps(pRGk.get('valid_values'))\n pwKE = qQXR.loads(...
[ "0.778061", "0.63270247", "0.6234825", "0.6132579", "0.5991797", "0.5882307", "0.58755237", "0.58285725", "0.58114976", "0.5798612", "0.5786422", "0.5751315", "0.57506293", "0.57444537", "0.5743285", "0.5723634", "0.5672421", "0.56719977", "0.566023", "0.5647218", "0.5636959"...
0.9044427
0
urljoin replaces base_url's path if endpoints start with with /
def yZUl(YKHO): for w2IS in YKHO.client.user.endpoints.values(): assert not w2IS.startswith('/')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDhU(P8oC, *pmON):\n return Pusg(LIzS, pmON, P8oC)", "def TDhU(Emd4, P8oC, Os4s):\n if P8oC and (not P8oC.endswith('/')):\n P8oC = P8oC + '/'\n return TDhU(P8oC, str(Os4s))", "def TDhU(Emd4, P8oC, Os4s):\n if P8oC and (not P8oC.endswith('/')):\n P8oC = P8oC + '/'\n return TDhU(...
[ "0.82374907", "0.8162815", "0.81212187", "0.79887116", "0.7946308", "0.79049665", "0.78104043", "0.76742834", "0.7556705", "0.7537379", "0.7511424", "0.7474246", "0.74705774", "0.74505424", "0.7418653", "0.7378205", "0.737034", "0.7370095", "0.7353267", "0.72845113", "0.72163...
0.63997936
44
Make sure the name field is correct
def gXWN(YKHO): Jyyj = YKHO.record.find("field[@name='name']") YKHO.assertEqual(Jyyj.text, 'GUH-ADT', 'Incorrect Name Field')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _KJZ(YKHO):\n pass", "def fD1j(YKHO):\n YKHO.assertIn('name', YKHO.fields)", "def ZQ_2(YKHO):\n with YKHO.assertRaises(sUXu):\n KCyC('_id')", "def Gw8C(YKHO):\n try:\n KCyC('_identifier')\n except sUXu:\n YKHO.fail('Field name raised ValidationError unexpectedly')", ...
[ "0.80483794", "0.76999706", "0.75463855", "0.7521705", "0.7409506", "0.7372538", "0.7320282", "0.71896374", "0.7162188", "0.71472406", "0.71424186", "0.7107738", "0.7054699", "0.70347553", "0.7023951", "0.69843197", "0.6968333", "0.6964454", "0.69297624", "0.6903072", "0.6881...
0.73358804
6
Fetch organization details from the API.
def a2Xs(YKHO, Nsqo=None): bo34.debug('Fetching org details from API...') iQG7 = {} if Nsqo is None: Nsqo = YKHO._all_page_names(without_namespace=True) for QAIN in Nsqo: Wxnj = YKHO._code_by_name(QAIN) if Wxnj is None: continue nPrm = YKHO._data_by_code(Wxnj)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zPWF(wbiw):\n return npru(kym7, wbiw)", "def GCTr(YKHO):\n pass", "def rdhS(YKHO):\n pass", "def Jjte(YKHO):\n pass", "def PI_r(YKHO, id: str) -> dict[str, ImMB]:\n NArs = {}\n return YKHO.client.get(YKHO._url(id), params=NArs)", "async def get_organization(QePW: Request, QAIN: str)...
[ "0.82742935", "0.7215253", "0.71555364", "0.71401477", "0.70368063", "0.6870949", "0.6747574", "0.67154455", "0.6695743", "0.66767126", "0.66356957", "0.6629043", "0.65509844", "0.6486175", "0.64638036", "0.64497346", "0.64293605", "0.6352869", "0.6321579", "0.62873846", "0.6...
0.7452373
1
Retrieves the total amount of cart items for a given cart.
def KpBD(YKHO): KpBD = 0 for hHJw in YKHO.get_cart_items(): KpBD += hHJw.total_price return KpBD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T99Y(JkXK):\n woFC = w21X.objects.filter(cart_id=JkXK)\n WROz = [hHJw.total() for hHJw in woFC]\n return sum(WROz)", "def HgrY(QePW):\n i4W8 = SOnQ.Decimal('0.00')\n Oyzs = RzzL(QePW)\n for ZfUD in Oyzs:\n i4W8 += ZfUD.product.price * ZfUD.quantity\n return i4W8", "def vrmj(YKHO...
[ "0.78944373", "0.7428659", "0.74166524", "0.7226727", "0.6956555", "0.66739833", "0.6626357", "0.6577171", "0.65215605", "0.6469818", "0.64654446", "0.644342", "0.6432942", "0.6390239", "0.6378628", "0.62492317", "0.6200687", "0.6190806", "0.61329013", "0.6089602", "0.6088345...
0.7810109
1
Yield successive chunks from iterable of length size.
def ChZT(OxJJ, zNig): for YRbF in range(0, len(OxJJ), zNig): yield OxJJ[YRbF:YRbF + zNig]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(oHE7, zNig):\n for d6pt in range(0, len(oHE7), zNig):\n yield oHE7[d6pt:d6pt + zNig]", "def WaSS(OxJJ, zNig):\n WhY1 = iter(OxJJ)\n while True:\n yOAJ = tuple(Hs6x.islice(WhY1, zNig))\n if len(yOAJ) == 0:\n break\n yield yOAJ", "def eHxA(OxJJ: Iterable, ...
[ "0.8773219", "0.8520928", "0.8467599", "0.841324", "0.8410151", "0.8247795", "0.8213483", "0.8210779", "0.810383", "0.8072789", "0.8064006", "0.80410075", "0.7970535", "0.79383165", "0.79333675", "0.7927991", "0.7896404", "0.7862617", "0.77980405", "0.7778066", "0.7762152", ...
0.8812423
2
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in Ni9Y(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.80388075", "0.7924573", "0.79226995", "0.788447", "0.7877021", "0.781505", "0.7764907", "0.77549165", "0.7743869", "0.7731126", "0.77281487", "0.77241385", "0.77024275", "0.7688614", "0.7688614", "0.7663561", "0.7656419", "0.76552874", "0.76552874", "0.76452404", "0.764524...
0.0
-1
Validates if each elements contain the previous and their are equal
def A2Ul(P2Mq): for d6pt, XkN1 in enumerate(P2Mq): if d6pt == 0: continue if XkN1.previous_hash != jGTY(P2Mq[d6pt - 1]): return False if not KEhN.valid_proof(XkN1.transactions[:-1], XkN1.previous_hash, XkN1.proof): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tMyo(fUYa):\n assert len(fUYa) > 0\n return all((WKvO == fUYa[0] for WKvO in fUYa[1:]))", "def GfdN():\n for jzdc in vC9B:\n for Fg_i in vC9B:\n assert not (Fg_i in Rn_t[jzdc] and jzdc in Rn_t[Fg_i])", "def qqkn(DumB):\n return all((WKvO == DumB[0] for WKvO in DumB))", "def ...
[ "0.67529505", "0.6488937", "0.642974", "0.6424669", "0.6401508", "0.63954824", "0.63903385", "0.6365632", "0.6273884", "0.62532556", "0.6236504", "0.61716396", "0.612882", "0.6124451", "0.61181426", "0.61021763", "0.61009073", "0.6067597", "0.60629946", "0.60506934", "0.60454...
0.0
-1
Probability of an random event theta given current state s.
def RFPT(q7In, vexM): if vexM == 0: return 0.3333 elif q7In == 0: return 0.25 elif q7In == 1: return 0.25 else: return 0.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L7BV(YKHO, KCHu):\n return YKHO._starting_state_distribution.pdf(KCHu)", "def hUTb(QTBn):\n XP5J = zRFr(QTBn['text'], QTBn['char_to_ix'], QTBn['frequency_statistics'], QTBn['transition_matrix'])\n return XP5J", "def eexa(YKHO, QTBn, XeOP, rxHc):\n return YKHO.get_next_states(QTBn, XeOP).get(rxH...
[ "0.67219484", "0.6633048", "0.6455988", "0.64483786", "0.6309092", "0.6300978", "0.62985826", "0.6290623", "0.62792915", "0.62534195", "0.62534195", "0.62534195", "0.62534195", "0.62534195", "0.6252587", "0.62439626", "0.623991", "0.62372935", "0.62270015", "0.62248063", "0.6...
0.579814
59
Convert a URL to IDN notation
def cBpZ(bD7m): SQ3m = list(uRlK.parse.urlsplit(bD7m)) try: SQ3m[1].encode('ascii') except UnicodeEncodeError: KcEq = SQ3m[1].rsplit(':', 1) UYmb = [] bIwZ = '' if len(KcEq) == 2: bIwZ = KcEq.pop() for MKlR in KcEq[0].split('.'): UYmb.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLzr(bD7m):\n return bD7m[bD7m.index(y0cW):].rstrip(lU_C).rstrip(f6Kw)", "def WqiH(j8eK):\n if isinstance(j8eK, QMSQ):\n ht58, GbKX, pmON, xDcj, vBtp = KVWQ.urlsplit(j8eK)\n GbKX = GbKX.encode('idna')\n j8eK = KVWQ.urlunsplit((ht58, GbKX, pmON, xDcj, vBtp))\n j8eK = ''.join(...
[ "0.7021145", "0.65356356", "0.6437324", "0.6412383", "0.6395479", "0.6311997", "0.61961514", "0.6158848", "0.61555415", "0.6119481", "0.6110008", "0.61025923", "0.60946435", "0.6066466", "0.6030167", "0.6021279", "0.6020139", "0.6007491", "0.60052556", "0.5983566", "0.5945938...
0.8388875
0
Return comments tree by entity or root comment
async def get_comments_tree(QePW): pQGt = QePW.match_info.get('comment_id') if pQGt: pQGt = int(pQGt) J_Es = SaCD.create_by_parent(pQGt) else: zXgc = QePW.match_info.get('entity_type') if not zXgc: return jA2G.HTTPBadRequest(reason='Entity params error!') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_DF(zXgc, g2g3, bmAU=False):\n return SaCD(entity_type=zXgc, entity_id=g2g3, only_roots=bmAU)", "async def fetch(YKHO, w2B8, B2Dn=None, b8V6=None, uca8=None):\n Pe9W = 'SELECT\\n comm.id,\\n to_json(created_dt) as created_dt,\\n entity_type,\\n ...
[ "0.65842324", "0.63664144", "0.63229674", "0.6065913", "0.6050549", "0.6045573", "0.60114443", "0.5975179", "0.5946544", "0.58939505", "0.587878", "0.58299065", "0.58249295", "0.5780401", "0.57469136", "0.5738545", "0.57361287", "0.57340264", "0.5731925", "0.5722351", "0.5712...
0.7140785
0
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.80388075", "0.7924573", "0.79226995", "0.788447", "0.7877021", "0.781505", "0.7764907", "0.77549165", "0.7743869", "0.7731126", "0.77281487", "0.77241385", "0.77024275", "0.7688614", "0.7688614", "0.7663561", "0.7656419", "0.76552874", "0.76552874", "0.76452404", "0.764524...
0.7448291
79
This fn prints and plots the confusion matrix. Normalization can be applied by setting 'normalize=True'.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, KndY, rotation=45) QrM1.yticks(wIWT, KndY) if NkkI: Bcwd = Bcwd.astype...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.79747516", "0.7972701", "0.7916397", "0.78010035", "0.77952605", "0.7757487", "0.7756975", "0.775108", "0.77393556", "0.7737718", "0.7737082", "0.7719532", "0.7714036", "0.7700674", "0.7696943", "0.7685643", "0.76693594", "0.76639557", "0.766282", "0.766219", "0.7659201", ...
0.767042
16
Returns True if the coord is in Part or any of its children. May be a better idea to call the get_part_containing function instead though, which returns the lowest level Part that contains the coord (none of its children contain the coord, but the Part does)
def sjXf(YKHO, BHsk): return 0 <= BHsk[0] - YKHO.position[0] < YKHO.size[0] and 0 <= BHsk[1] - YKHO.position[1] < YKHO.size[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K2dw(YKHO, BHsk):\n for G1Hx, aUGN in YKHO.children.items():\n if aUGN.ignore:\n continue\n if aUGN.contains(BHsk):\n return aUGN.get_part_containing(BHsk)\n return YKHO", "def tKq3(YKHO, BHsk):\n for jDK_ in range(3):\n if BHsk[jDK_] < YKHO.mins[jDK_] or B...
[ "0.75447255", "0.6645123", "0.66114485", "0.6500257", "0.6442654", "0.64163774", "0.6345653", "0.63166255", "0.61932963", "0.6176176", "0.6176057", "0.61623186", "0.61566186", "0.6145891", "0.6117253", "0.60773057", "0.60773057", "0.6069949", "0.6057143", "0.6003461", "0.5990...
0.7134822
1
Returns a duplicate of the profile instance.
def LHwl(YKHO): LHwl = SYRW() for YRbF in YKHO.__dict__: if type(getattr(YKHO, YRbF)) is dict: setattr(LHwl, YRbF, getattr(YKHO, YRbF).copy()) else: setattr(LHwl, YRbF, getattr(YKHO, YRbF)) return LHwl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return REFe(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(dict(YKHO))", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def wEmu(YKHO):\n return u_j2(YKHO)", "def j3D5(YKHO) -> SYRW:\n return SYRW(**{**YKHO.profile,...
[ "0.65038234", "0.6457992", "0.6320341", "0.6320341", "0.6286995", "0.62803096", "0.6278374", "0.62589824", "0.6257265", "0.62398297", "0.62353045", "0.6209959", "0.6207495", "0.61983556", "0.61954135", "0.61781174", "0.61590487", "0.6154005", "0.6154005", "0.6154005", "0.6138...
0.81918967
0
Writes a dictionary to an xml file in the form of etc. attribute_name>The name of the dictonary attribute to write. xmlwriter>The xml writer to write with. write_empty>A bool of whether to write empty values to the xml file. Default is don't write them.
def mCyj(YKHO, _j8X, ZUCj, R3sF=False): if _j8X in ('IllegalCharacters', 'Months'): R3sF = True cmPJ = getattr(YKHO, _j8X) ZUCj.WriteStartElement(_j8X) for H5ew in cmPJ: if cmPJ[H5ew] or R3sF: ZUCj.WriteStartElement('Item') ZUCj.WriteStartAttribute('Name') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IOYL(_RR0, pan_, dict):\n hrfs = '\\t\\t<Target>%s</Target>\\n' % (IguF(pan_),)\n for H5ew in dict.keys():\n _RR0.write('\\t<AVU>\\n')\n _RR0.write(hrfs)\n _RR0.write('\\t\\t<Attribute>%s</Attribute>\\n' % (IguF(H5ew),))\n _RR0.write('\\t\\t<Value>%s</Value>\\n' % (IguF(dict[H...
[ "0.6729531", "0.65415585", "0.6262941", "0.6016264", "0.5983849", "0.5939113", "0.58700234", "0.58539236", "0.5813194", "0.5684836", "0.56377923", "0.56335074", "0.5623472", "0.56098765", "0.55822074", "0.5524061", "0.5433924", "0.5403624", "0.5400973", "0.53912425", "0.53563...
0.80239266
0
This function returns the softmax value for the given input
def N93T(EcVT): if len(EcVT) > 1: zZ15 = oyIN.exp(EcVT) Mitz = oyIN.sum(oyIN.exp(EcVT)) U5bT = zZ15 / Mitz print(f'The softmax result on the given input {U5bT}') return U5bT else: raise ValueError('Sorry, lenght of the list should be more than one')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)", "def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)", "def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum()", "def N93T(WKvO):\n pass\n O48W = oyIN.exp(WK...
[ "0.85517555", "0.85172", "0.85039085", "0.85021806", "0.8486158", "0.8471101", "0.84642345", "0.84226495", "0.84178317", "0.84178317", "0.84136945", "0.84076935", "0.83944535", "0.8392644", "0.8392644", "0.8392644", "0.8392644", "0.8392644", "0.8392644", "0.8392644", "0.83926...
0.0
-1
This function returns the softmax derivative value for the given input
def V51J(WKvO): vf2_ = VVyp(N93T, WKvO, dx=1e-09) return vf2_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V51J(Nk6w):\n return None", "def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum(axis=0)", "def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum(axis=0)", "def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.expand_dims(oyIN.max(WKvO,...
[ "0.78823423", "0.7861486", "0.7818649", "0.78063107", "0.7801125", "0.7801125", "0.7801125", "0.7801125", "0.77747434", "0.7771414", "0.7755482", "0.7754241", "0.76962405", "0.7687193", "0.7682934", "0.76776224", "0.76399696", "0.7632133", "0.7632133", "0.76276577", "0.762613...
0.8873611
0
Construct a layernorm module in the TF style (epsilon inside the square root).
def FIMM(YKHO, wjbX, SGf8=1e-12): super(b9m4, YKHO).__init__() YKHO.weight = U78l.Parameter(ht2j.ones(wjbX)) YKHO.bias = U78l.Parameter(ht2j.zeros(wjbX)) YKHO.variance_epsilon = SGf8 YKHO.bias.data.zero_() YKHO.weight.data.fill_(1.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D__v(uMfm, lGE9, ZylS, SGf8, IBR4, KMvS, nMvt):\n eHNT = lambda LVAh, a1PO: KMvS * LVAh * (1 - LVAh / nMvt)\n fuBA = _o7n(uMfm, lGE9, ZylS, SGf8, eHNT, IBR4)\n return fuBA", "def V0YA(uMfm, lGE9, ZylS, SGf8, IBR4, KMvS):\n eHNT = lambda LVAh, a1PO: KMvS * LVAh\n fuBA = _o7n(uMfm, lGE9, ZylS, S...
[ "0.62754345", "0.60140204", "0.5792275", "0.57416606", "0.55366963", "0.55194634", "0.54221153", "0.5412391", "0.5388891", "0.53688395", "0.5351537", "0.5287469", "0.5258017", "0.5232318", "0.5227428", "0.52260095", "0.5220578", "0.5220438", "0.5192999", "0.5192457", "0.51924...
0.0
-1
Return categorical dqn loss.
def vFZn(YKHO, gGnb: Dict[str, np.ndarray], KMvS: float) -> ht2j.Tensor: begE = YKHO.device QTBn = ht2j.FloatTensor(gGnb['obs']).permute(0, 3, 1, 2).to(begE) rxHc = ht2j.FloatTensor(gGnb['next_obs']).permute(0, 3, 1, 2).to(begE) XeOP = ht2j.LongTensor(gGnb['acts']).to(begE) vOGg = ht2j.FloatTensor(g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L8kW(YKHO):\n return DA54.get_loss(loss_key=YKHO.loss_key, output_name=YKHO.args.output_name)", "def KsZl(YKHO, BFeB, Crrw):\n return ZylS.keras.losses.sparse_categorical_crossentropy(Crrw, BFeB)", "def Trm1(Y8eF, aMgO):\n NszA = ZylS.keras.losses.categorical_crossentropy(Y8eF, aMgO, from_logits=T...
[ "0.68605304", "0.67149806", "0.6686219", "0.6592555", "0.64848787", "0.6320027", "0.6248912", "0.6234563", "0.62179315", "0.62094903", "0.6202983", "0.6202983", "0.6185646", "0.6164023", "0.6157712", "0.61265653", "0.61004794", "0.6093955", "0.6060213", "0.6043495", "0.602176...
0.0
-1
Given a complex folder path with multiple embedded slashes, check that the code tries to make the folder and returns the path with a single trailing '/' appended only if required
def uf7U(YKHO, Ut7A): Ut7A.return_value = True FAmx = lgTw() pmON = '/c/o/m/p/l/e/x_p/a/t/h/' Ggta = pmON YKHO.assertEqual(Ggta, FAmx.make_output_folder(output_folder=pmON), "Should get back '" + Ggta + "' for an output folder specified as '" + pmON + "'") YKHO.assertTrue(Ut7A.called_once_with(p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwYF(ESvo):\n if ESvo[-1] != '/':\n ESvo += '/'\n return ESvo", "def _Mmu(YKHO):\n aEqx = 'hello' + EOaO.directory_separator + 'world' + EOaO.directory_separator\n n5sN = wjbk('/hello/world').fix_path()\n YKHO.assertEqual(aEqx, n5sN)\n n5sN = wjbk('\\\\hello\\\\world').fix_path()\n ...
[ "0.7249269", "0.6797798", "0.6691372", "0.6648862", "0.6491748", "0.6453401", "0.6421338", "0.63004524", "0.62997335", "0.6285595", "0.62594306", "0.6247562", "0.62401736", "0.62397146", "0.6239207", "0.6219014", "0.62041944", "0.61918926", "0.6191478", "0.61791414", "0.61717...
0.6893744
1
Returns the base name of the specified file name, of the specified type. A bare=True keyword argument specifies that prefixes and suffixes shouldn't be applied.
def Sjoc(YKHO, mWFP, type=None, **YSA3): if not YSA3.get('bare'): if type == YKHO.EXECUTABLE: mWFP = mWFP + YKHO._exe elif type == YKHO.STATIC_LIB: mWFP = YKHO.lib_ + mWFP + YKHO._lib elif type == YKHO.SHARED_LIB: mWFP = YKHO.dll_ + mWFP + YKHO._dll re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z7rK(aPr_, Hghu=None):\n return '{}.{}'.format(aPr_, CBZq.get(Hghu, None))", "def a2jN(YKHO):\n return '.'.join(Qumu.basename(YKHO.file_name).split('.')[:-1])", "def npTL(IznC):\n return Hy7s.path.splitext(IznC.split('\\\\')[-1])[0]", "def a2jN(pmON):\n return Hy7s.path.basename(pmON)", "de...
[ "0.7135192", "0.6425883", "0.63058126", "0.62789595", "0.61583006", "0.615667", "0.61490166", "0.60626936", "0.59788233", "0.59788233", "0.59788233", "0.59684837", "0.5965139", "0.59572744", "0.5927984", "0.59277415", "0.5919521", "0.59044087", "0.5902169", "0.5895096", "0.58...
0.76263374
0
Returns an appropriate TestGyp instance for a specified GYP format.
def Vyt2(*qIxc, **YSA3): format = YSA3.pop('format', Hy7s.environ.get('TESTGYP_FORMAT')) if format != 'ninja': raise Exception('unknown format %r' % format) return u1lf(*qIxc, **YSA3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kED_(bbbM):\n if bbbM == PUs1.CHROME:\n xAU6 = cSpz.ChromeOptions()\n xAU6.add_argument('headless')\n if PUs1.HEADLESS_MODE:\n return cSpz.Chrome(options=xAU6)\n else:\n return cSpz.Chrome()\n elif bbbM == PUs1.FIREFOX:\n xAU6 = lE6K()\n xAU...
[ "0.48283198", "0.4679778", "0.46405205", "0.46262017", "0.4596164", "0.4575837", "0.45242107", "0.45190325", "0.449273", "0.44799712", "0.44797117", "0.44374356", "0.4432995", "0.43943155", "0.4385032", "0.43449232", "0.43261662", "0.43182468", "0.43172392", "0.4313307", "0.4...
0.7641839
0
Control whether mosek should wait for an available license if no license is available. putlicensewait(self,licwait_)
def smyx(YKHO, Qxwg): Ylbp = TW1v.MSK_XX_putlicensewait(YKHO.__nativep, Qxwg) if Ylbp != 0: raise xxyF(piss(Ylbp), Otor.getcodedesc(piss(Ylbp))[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def smyx(YKHO, Qxwg):\n Ylbp = YKHO.__obj.putlicensewait(Qxwg)\n if Ylbp != 0:\n raise xxyF(piss(Ylbp), '')", "def license(YKHO, license):\n YKHO._license = license", "def lUm6():\n tO9_, jGRS = ('', True)\n try:\n N5MO(5)\n if Oa1e.platform == 'android':\n N5MO(3...
[ "0.8608505", "0.61256635", "0.6123673", "0.5970834", "0.5939061", "0.58548045", "0.5833694", "0.5822022", "0.57427907", "0.5724147", "0.56733525", "0.5650425", "0.5636824", "0.5599726", "0.5547277", "0.5536273", "0.5516888", "0.5485797", "0.5453408", "0.5441463", "0.5418717",...
0.84320354
1
Computes the inner product of two vectors. dot(self,n_,x_,y_)
def BJ1H(YKHO, xVVI, A3mO, ijL8): Ola_ = xVVI if xVVI > 0 and A3mO is not None and (len(A3mO) != xVVI): raise ValueError('Array argument x is not long enough: Is %d, expected %d' % (len(A3mO), xVVI)) if A3mO is None: raise ValueError('Argument x cannot be None') if A3mO is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yYJc(WKvO, LVAh):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(WKvO, LVAh)))", "def QLUs(WKvO, LVAh):\n if len(WKvO) != len(LVAh):\n raise ValueError('vector lengths differ')\n else:\n return sum([WKvO[YRbF] * LVAh[YRbF] for YRbF in range(len(WKvO))])", "def BJ1H(WKvO, LVAh):\n ...
[ "0.7724258", "0.7549486", "0.7496103", "0.7352206", "0.732253", "0.73218113", "0.73188835", "0.72784954", "0.7264976", "0.7238966", "0.72267455", "0.72038215", "0.7178318", "0.7174941", "0.7155059", "0.71423924", "0.7082818", "0.70600927", "0.70422834", "0.7040143", "0.703703...
0.67537916
42
Performs a rankk update of a symmetric matrix. syrk(self,uplo_,trans_,n_,k_,alpha_,a_,beta_,c_)
def TPlA(YKHO, RtY1, PiLl, xVVI, xPYE, mbX2, NRKk, Pu26, ZOT4): hQBj = xVVI * xPYE if xVVI * xPYE > 0 and NRKk is not None and (len(NRKk) != xVVI * xPYE): raise ValueError('Array argument a is not long enough: Is %d, expected %d' % (len(NRKk), xVVI * xPYE)) if NRKk is None: raise ValueError(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TPlA(YKHO, RtY1, PiLl, xVVI, xPYE, mbX2, jzdc, Pu26, Z9rn):\n if not isinstance(RtY1, iA7y):\n raise TypeError('Argument uplo has wrong type')\n if not isinstance(PiLl, l7uB):\n raise TypeError('Argument trans has wrong type')\n if jzdc is None:\n raise TypeError('Invalid type for...
[ "0.7740319", "0.5345925", "0.5307275", "0.5296073", "0.51972955", "0.51492083", "0.51247174", "0.5056189", "0.50554264", "0.5031491", "0.5031491", "0.50260574", "0.50148124", "0.49368647", "0.4909689", "0.48912278", "0.4885631", "0.48802838", "0.47982484", "0.4793419", "0.478...
0.6716742
1
Appends semidefinite variables to the problem. appendbarvars(self,dim_)
def wkTG(YKHO, zNAw): tWD2 = None if tWD2 is None: tWD2 = len(zNAw) elif tWD2 != len(zNAw): raise IndexError('Inconsistent length of array dim') if zNAw is None: raise ValueError('Argument dim cannot be None') if zNAw is None: raise ValueError('Argument dim may not be...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkTG(YKHO, tpio):\n tWD2 = None\n if tWD2 is None:\n tWD2 = len(tpio)\n elif tWD2 != len(tpio):\n raise IndexError('Inconsistent length of array dim')\n if tWD2 is None:\n tWD2 = 0\n if tpio is None:\n raise TypeError('Invalid type for argument dim')\n if tpio is N...
[ "0.8159918", "0.55441445", "0.53684646", "0.533822", "0.5304417", "0.5274865", "0.51826805", "0.51651216", "0.5160413", "0.5143895", "0.5126579", "0.49842018", "0.49332213", "0.4922936", "0.48779106", "0.47955328", "0.47735283", "0.47632688", "0.47520563", "0.47460842", "0.47...
0.80840147
1
Changes the bounds for one constraint. chgconbound(self,i_,lower_,finite_,value_)
def dYmx(YKHO, WzQg, vqYq, UdZj, Q4D5): Ylbp = TW1v.MSK_XX_chgconbound(YKHO.__nativep, WzQg, vqYq, UdZj, Q4D5) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dYmx(YKHO, WzQg, vqYq, UdZj, Q4D5):\n Ylbp = YKHO.__obj.chgconbound(WzQg, vqYq, UdZj, Q4D5)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def cwsT(YKHO, a0nL, WzQg, vqYq, UdZj, Q4D5):\n if not isinstance(a0nL, j77T):\n raise TypeError...
[ "0.9179256", "0.7916872", "0.7376792", "0.7195413", "0.6016417", "0.6004763", "0.5817389", "0.5724509", "0.5707932", "0.56736284", "0.5642968", "0.5613745", "0.5549648", "0.5543372", "0.55391896", "0.5501184", "0.5480884", "0.5466385", "0.5455747", "0.54376006", "0.543686", ...
0.8795833
1
Obtains a sequence of columns from the coefficient matrix. getacolslice(self,first_,last_,ptrb_,ptre_,sub_,val_)
def dMde(YKHO, MQmb, gzNA, xKmA, pgSy, JBgN, BaWg): MJCv = YKHO.getacolslicenumnz(MQmb, gzNA) ZbSv = gzNA - MQmb if gzNA - MQmb > 0 and xKmA is not None and (len(xKmA) != gzNA - MQmb): raise ValueError('Array argument ptrb is not long enough: Is %d, expected %d' % (len(xKmA), gzNA - MQmb)) if is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iNBj(YKHO, MQmb, gzNA, xKmA, pgSy, agsr, ikvO):\n if xKmA is None:\n raise ValueError('Argument ptrb cannot be None')\n if xKmA is None:\n raise ValueError('Argument ptrb may not be None')\n if isinstance(xKmA, XTiz.ndarray) and xKmA.dtype is XTiz.dtype(XTiz.int64) and xKmA.flags.contigu...
[ "0.68298435", "0.68189096", "0.6633351", "0.6410343", "0.635861", "0.62143683", "0.59577066", "0.58845204", "0.5850808", "0.5840428", "0.5830795", "0.5818751", "0.5787353", "0.5729822", "0.57094395", "0.5652637", "0.5626832", "0.5602785", "0.557522", "0.55677515", "0.5536629"...
0.8195238
0
Obtains all objective coefficients. getc(self,c_)
def aS53(YKHO, ZOT4): YiSd = YKHO.getnumvar() if YKHO.getnumvar() > 0 and ZOT4 is not None and (len(ZOT4) != YKHO.getnumvar()): raise ValueError('Array argument c is not long enough: Is %d, expected %d' % (len(ZOT4), YKHO.getnumvar())) if isinstance(ZOT4, XTiz.ndarray) and (not ZOT4.flags.writeable)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FN88(YKHO):\n return YKHO.__coefficients", "def FN88(YKHO):\n raise NotImplementedError", "def FN88(YKHO):\n return YKHO.coef_['x']", "def FN88(YKHO):\n return YKHO._coefficients", "def FN88(YKHO):\n return YKHO._coefficients", "def FeaT(o4D3, ajwV, rNcn, si3g, skBL, Sb1k, tV6D, Mbre):...
[ "0.65427005", "0.63974696", "0.63769525", "0.635677", "0.635677", "0.625591", "0.62489706", "0.6245763", "0.6245763", "0.61773825", "0.61445075", "0.612955", "0.6082035", "0.60051066", "0.5921834", "0.5798229", "0.57925135", "0.5790028", "0.57677597", "0.5748355", "0.56996524...
0.61323375
11
Obtains the fixed term in the objective. getcfix(self)
def LVHK(YKHO): ItUv = gk2W.c_double() Ylbp = TW1v.MSK_XX_getcfix(YKHO.__nativep, gk2W.byref(ItUv)) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) ItUv = ItUv.value hi83 = ItUv return hi83
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVHK(YKHO):\n Ylbp, vfD5 = YKHO.__obj.getcfix()\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n hi83 = vfD5\n return hi83", "def _f9X(YKHO):\n return YKHO.lEq", "def Uijz(YKHO):\n return YKHO.__CFL", "def Y2eJ(YKHO):\n return YK...
[ "0.7102011", "0.69387436", "0.61814743", "0.61706793", "0.6118419", "0.6102831", "0.60178024", "0.59100634", "0.58950984", "0.5895022", "0.5848309", "0.58352464", "0.5788822", "0.5725575", "0.57214016", "0.56842697", "0.56441844", "0.56353074", "0.56272084", "0.56272084", "0....
0.723974
0
Obtains the maximum number variables allowed. getmaxnumvar(self)
def wJCR(YKHO): yOq9 = gk2W.c_int32() Ylbp = TW1v.MSK_XX_getmaxnumvar(YKHO.__nativep, gk2W.byref(yOq9)) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) yOq9 = yOq9.value buFy = yOq9 return buFy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wJCR(YKHO):\n Ylbp, vfD5 = YKHO.__obj.getmaxnumvar()\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n buFy = vfD5\n return buFy", "def scYR(YKHO):\n Ylbp, vfD5 = YKHO.__obj.getmaxnumbarvar()\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__...
[ "0.91340536", "0.8637792", "0.7974361", "0.7505648", "0.7296605", "0.7150658", "0.7150658", "0.70268613", "0.698536", "0.6970442", "0.6931399", "0.69260097", "0.6923727", "0.6923727", "0.68803716", "0.6879021", "0.6849884", "0.68469465", "0.6821696", "0.6783697", "0.6712363",...
0.8318064
2
Obtains the name of a semidefinite variable. getbarvarname(self,i_)
def cd0C(YKHO, WzQg): k4lq = 1 + YKHO.getbarvarnamelen(WzQg) LO7q = (gk2W.c_char * k4lq)() Ylbp = TW1v.MSK_XX_getbarvarname(YKHO.__nativep, WzQg, k4lq, LO7q) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) cBJA = LO7q.value.decode('utf-8', errors='re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cd0C(YKHO, WzQg):\n k4lq = 1 + YKHO.getbarvarnamelen(WzQg)\n CLqe = qw7D.array('b', [0] * k4lq)\n Vgd2 = memoryview(CLqe)\n Ylbp, vfD5 = YKHO.__obj.getbarvarname(WzQg, k4lq, Vgd2)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n gKq4 = vf...
[ "0.83525527", "0.7066876", "0.70244217", "0.6815771", "0.6767695", "0.6751615", "0.6699136", "0.6654075", "0.660367", "0.6567873", "0.65562636", "0.652688", "0.63431066", "0.6170237", "0.61540467", "0.6131156", "0.5982232", "0.59685725", "0.592272", "0.59037554", "0.5895002",...
0.8312654
1
Sets the name of a constraint. putconname(self,i_,name_)
def g4YJ(YKHO, WzQg, LO7q): if isinstance(LO7q, QMSQ): LO7q = LO7q.encode('utf-8', errors='replace') Ylbp = TW1v.MSK_XX_putconname(YKHO.__nativep, WzQg, LO7q) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g4YJ(YKHO, WzQg, LO7q):\n Ylbp = YKHO.__obj.putconname(WzQg, LO7q)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def XRc5(YKHO, FijD, LO7q):\n Ylbp = YKHO.__obj.putconename(FijD, LO7q)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlaste...
[ "0.8193894", "0.7109492", "0.6670976", "0.66550237", "0.6557067", "0.6499532", "0.64980155", "0.6484204", "0.6475017", "0.6475017", "0.64716566", "0.64716566", "0.64716566", "0.64716566", "0.64716566", "0.64367193", "0.64367193", "0.64250505", "0.64250505", "0.64250505", "0.6...
0.7829893
1
Sets the name of a variable. putvarname(self,j_,name_)
def _Ciu(YKHO, FijD, LO7q): if isinstance(LO7q, QMSQ): LO7q = LO7q.encode('utf-8', errors='replace') Ylbp = TW1v.MSK_XX_putvarname(YKHO.__nativep, FijD, LO7q) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Ciu(YKHO, FijD, LO7q):\n Ylbp = YKHO.__obj.putvarname(FijD, LO7q)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def YFgN(YKHO, FijD, LO7q):\n Ylbp = YKHO.__obj.putbarvarname(FijD, LO7q)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlas...
[ "0.8883954", "0.7846457", "0.7583609", "0.7371796", "0.6804934", "0.6749491", "0.6718", "0.6678017", "0.6662674", "0.66056114", "0.66056114", "0.6533437", "0.65012705", "0.65012705", "0.6494305", "0.64568096", "0.64568096", "0.6420372", "0.64115626", "0.64104736", "0.6387735"...
0.8425244
1
Sets the name of a cone. putconename(self,j_,name_)
def XRc5(YKHO, FijD, LO7q): if isinstance(LO7q, QMSQ): LO7q = LO7q.encode('utf-8', errors='replace') Ylbp = TW1v.MSK_XX_putconename(YKHO.__nativep, FijD, LO7q) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XRc5(YKHO, FijD, LO7q):\n Ylbp = YKHO.__obj.putconename(FijD, LO7q)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def g4YJ(YKHO, WzQg, LO7q):\n Ylbp = YKHO.__obj.putconname(WzQg, LO7q)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlaste...
[ "0.8515966", "0.77436495", "0.7510013", "0.6582177", "0.6530854", "0.6465643", "0.64578557", "0.64150274", "0.63634545", "0.63573754", "0.63573754", "0.6346879", "0.6346033", "0.6333818", "0.6333818", "0.6333818", "0.6333818", "0.6326524", "0.6326524", "0.6326524", "0.6326524...
0.7865969
1
Sets the name of a semidefinite variable. putbarvarname(self,j_,name_)
def YFgN(YKHO, FijD, LO7q): if isinstance(LO7q, QMSQ): LO7q = LO7q.encode('utf-8', errors='replace') Ylbp = TW1v.MSK_XX_putbarvarname(YKHO.__nativep, FijD, LO7q) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YFgN(YKHO, FijD, LO7q):\n Ylbp = YKHO.__obj.putbarvarname(FijD, LO7q)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def _Ciu(YKHO, FijD, LO7q):\n Ylbp = YKHO.__obj.putvarname(FijD, LO7q)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlas...
[ "0.8725043", "0.78685296", "0.73790705", "0.63185453", "0.62304795", "0.61820215", "0.6175833", "0.60793555", "0.60779697", "0.6025984", "0.5947061", "0.5932117", "0.58367765", "0.58295", "0.58150184", "0.5744822", "0.57223016", "0.5708944", "0.5708944", "0.57083535", "0.5683...
0.83028346
1
Obtains the number of cones. getnumcone(self)
def cHyg(YKHO): S4mS = gk2W.c_int32() Ylbp = TW1v.MSK_XX_getnumcone(YKHO.__nativep, gk2W.byref(S4mS)) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) S4mS = S4mS.value tkAY = S4mS return tkAY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cHyg(YKHO):\n Ylbp, vfD5 = YKHO.__obj.getnumcone()\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n tkAY = vfD5\n return tkAY", "def nvFs(YKHO):\n return YKHO._shape_count(YNXW.cone)", "def J0hm(YKHO):\n Ylbp, vfD5 = YKHO.__obj.getmax...
[ "0.9106919", "0.81965643", "0.7543785", "0.7437887", "0.69181544", "0.67456555", "0.67095584", "0.65884423", "0.65678185", "0.6465956", "0.64427835", "0.64152044", "0.6377484", "0.6377402", "0.63385695", "0.62976825", "0.62972224", "0.62365496", "0.62121636", "0.6148317", "0....
0.8135312
2
Obtains the number of members in a cone. getnumconemem(self,k_)
def l5bE(YKHO, xPYE): Wk_J = gk2W.c_int32() Ylbp = TW1v.MSK_XX_getnumconemem(YKHO.__nativep, xPYE, gk2W.byref(Wk_J)) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) Wk_J = Wk_J.value t78I = Wk_J return t78I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5bE(YKHO, xPYE):\n Ylbp, vfD5 = YKHO.__obj.getnumconemem(xPYE)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n t78I = vfD5\n return t78I", "def ZgZo(YKHO, xPYE):\n CiA3 = gk2W.c_int32()\n Xpop = gk2W.c_double()\n Wk_J = gk2W.c_int3...
[ "0.87193775", "0.65474", "0.63329744", "0.6301218", "0.6256797", "0.60519123", "0.60468775", "0.6043543", "0.6008538", "0.6007757", "0.5989896", "0.5959924", "0.59045166", "0.58832043", "0.5873087", "0.5872675", "0.58704096", "0.58684206", "0.5850679", "0.5849518", "0.5849518...
0.79310596
1
Obtains maximum number of symmetric matrix variables for which space is currently preallocated. getmaxnumbarvar(self)
def scYR(YKHO): Kko7 = gk2W.c_int32() Ylbp = TW1v.MSK_XX_getmaxnumbarvar(YKHO.__nativep, gk2W.byref(Kko7)) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) Kko7 = Kko7.value cWoF = Kko7 return cWoF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def scYR(YKHO):\n Ylbp, vfD5 = YKHO.__obj.getmaxnumbarvar()\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n cWoF = vfD5\n return cWoF", "def wJCR(YKHO):\n Ylbp, vfD5 = YKHO.__obj.getmaxnumvar()\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__...
[ "0.8353058", "0.7625918", "0.7178526", "0.7173014", "0.6900788", "0.67549825", "0.67534035", "0.6604703", "0.65953386", "0.65564364", "0.6491961", "0.6491961", "0.64415246", "0.6377342", "0.6367016", "0.6346783", "0.63250744", "0.63224643", "0.6280085", "0.623158", "0.6207333...
0.7973662
1
Obtains the problem type. getprobtype(self)
def fqCX(YKHO): fzT3 = gk2W.c_int32() Ylbp = TW1v.MSK_XX_getprobtype(YKHO.__nativep, gk2W.byref(fzT3)) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) qNxy = Shhd(fzT3.value) return qNxy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fqCX(YKHO):\n Ylbp, vfD5 = YKHO.__obj.getprobtype()\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n qNxy = vfD5\n qNxy = Shhd(qNxy)\n return qNxy", "def krYj(YKHO):\n return YKHO.prob_type", "def krYj(YKHO):\n return YKHO.prob_typ...
[ "0.9006907", "0.85797167", "0.85797167", "0.85797167", "0.85797167", "0.85797167", "0.75342023", "0.64539766", "0.6302305", "0.6269259", "0.6167121", "0.6167121", "0.6167121", "0.6167121", "0.6167121", "0.6167121", "0.6167121", "0.6167121", "0.6167121", "0.6167121", "0.616712...
0.81917536
6
Obtains the status keys for the scalar variables. getskx(self,whichsol_,skx_)
def wB3_(YKHO, QVZg, s9Dc): x1hT = YKHO.getnumvar() if YKHO.getnumvar() > 0 and s9Dc is not None and (len(s9Dc) != YKHO.getnumvar()): raise ValueError('Array argument skx is not long enough: Is %d, expected %d' % (len(s9Dc), YKHO.getnumvar())) if isinstance(s9Dc, XTiz.ndarray) and (not s9Dc.flags.wr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wB3_(YKHO, QVZg, wg3y):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n k9O9 = False\n if wg3y is None:\n s9Dc = None\n else:\n try:\n s9Dc = memoryview(wg3y)\n except TypeError:\n try:\n tx5Y ...
[ "0.78065765", "0.63683814", "0.62353045", "0.6215446", "0.61820394", "0.61591494", "0.6133144", "0.61062807", "0.6047507", "0.59702194", "0.5943474", "0.5915708", "0.580595", "0.5664523", "0.5435939", "0.53950316", "0.5300313", "0.52181596", "0.51550823", "0.51532644", "0.510...
0.78649473
0
Obtains the y vector for a solution. gety(self,whichsol_,y_)
def zq0d(YKHO, QVZg, ijL8): HHC0 = YKHO.getnumcon() if YKHO.getnumcon() > 0 and ijL8 is not None and (len(ijL8) != YKHO.getnumcon()): raise ValueError('Array argument y is not long enough: Is %d, expected %d' % (len(ijL8), YKHO.getnumcon())) if isinstance(ijL8, XTiz.ndarray) and (not ijL8.flags.writ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zq0d(YKHO, QVZg, LVAh):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if LVAh is None:\n raise TypeError('Invalid type for argument y')\n bcNL = False\n if LVAh is None:\n ijL8 = None\n else:\n try:\n ijL8 = memory...
[ "0.8433188", "0.7439271", "0.72740275", "0.7210725", "0.7059704", "0.70467824", "0.7036395", "0.69869375", "0.6916276", "0.6868019", "0.686457", "0.686457", "0.686457", "0.686457", "0.686457", "0.686457", "0.686457", "0.686457", "0.686457", "0.686457", "0.6860071", "0.68104...
0.8305004
1
Obtains a slice of the slc vector for a solution. getslcslice(self,whichsol_,first_,last_,slc_)
def wCeu(YKHO, QVZg, MQmb, gzNA, LHqk): WZNX = gzNA - MQmb if gzNA - MQmb > 0 and LHqk is not None and (len(LHqk) != gzNA - MQmb): raise ValueError('Array argument slc is not long enough: Is %d, expected %d' % (len(LHqk), gzNA - MQmb)) if isinstance(LHqk, XTiz.ndarray) and (not LHqk.flags.writeable)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wCeu(YKHO, QVZg, MQmb, gzNA, AfXr):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n WK3l = False\n if AfXr is None:\n LHqk = None\n else:\n try:\n LHqk = memoryview(AfXr)\n except TypeError:\n try:\n ...
[ "0.89666843", "0.7970776", "0.78357977", "0.7790351", "0.776608", "0.7743089", "0.7721771", "0.76019967", "0.75482076", "0.7174418", "0.6999907", "0.6974384", "0.6937394", "0.68553096", "0.677563", "0.6760067", "0.67554903", "0.6729202", "0.67274904", "0.6555274", "0.65497065...
0.8908974
1
Sets the y vector for a solution. puty(self,whichsol_,y_)
def IDQe(YKHO, QVZg, ijL8): HHC0 = YKHO.getnumcon() if YKHO.getnumcon() > 0 and ijL8 is not None and (len(ijL8) != YKHO.getnumcon()): raise ValueError('Array argument y is not long enough: Is %d, expected %d' % (len(ijL8), YKHO.getnumcon())) if ijL8 is None: raise ValueError('Argument y cann...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IDQe(YKHO, QVZg, LVAh):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if LVAh is None:\n raise TypeError('Invalid type for argument y')\n if LVAh is None:\n ijL8 = None\n else:\n try:\n ijL8 = memoryview(LVAh)\n ...
[ "0.8003171", "0.73679346", "0.7363532", "0.7336165", "0.72183335", "0.7205905", "0.71375144", "0.71375144", "0.71099883", "0.7101774", "0.7048544", "0.69963944", "0.69963944", "0.69483393", "0.69331676", "0.6927535", "0.6890241", "0.6728458", "0.6610014", "0.6607487", "0.6497...
0.7967985
1
Sets the slc vector for a solution. putslc(self,whichsol_,slc_)
def Pi5r(YKHO, QVZg, LHqk): WZNX = YKHO.getnumcon() if YKHO.getnumcon() > 0 and LHqk is not None and (len(LHqk) != YKHO.getnumcon()): raise ValueError('Array argument slc is not long enough: Is %d, expected %d' % (len(LHqk), YKHO.getnumcon())) if LHqk is None: raise ValueError('Argument slc ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pi5r(YKHO, QVZg, AfXr):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if AfXr is None:\n raise TypeError('Invalid type for argument slc')\n if AfXr is None:\n LHqk = None\n else:\n try:\n LHqk = memoryview(AfXr)\n ...
[ "0.81765276", "0.71909016", "0.70336485", "0.6900895", "0.6891917", "0.65892226", "0.6535961", "0.6420544", "0.6415206", "0.62880546", "0.62139344", "0.5922277", "0.5874246", "0.58729297", "0.5872463", "0.57787675", "0.5756639", "0.56310564", "0.5614232", "0.5538193", "0.5517...
0.8158033
1
Sets the slx vector for a solution. putslx(self,whichsol_,slx_)
def mgrL(YKHO, QVZg, jGJf): ISrL = YKHO.getnumvar() if YKHO.getnumvar() > 0 and jGJf is not None and (len(jGJf) != YKHO.getnumvar()): raise ValueError('Array argument slx is not long enough: Is %d, expected %d' % (len(jGJf), YKHO.getnumvar())) if jGJf is None: raise ValueError('Argument slx ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mgrL(YKHO, QVZg, ME6O):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if ME6O is None:\n raise TypeError('Invalid type for argument slx')\n if ME6O is None:\n jGJf = None\n else:\n try:\n jGJf = memoryview(ME6O)\n ...
[ "0.84727997", "0.757701", "0.734609", "0.70459515", "0.69720054", "0.6686734", "0.6545576", "0.6458134", "0.63578767", "0.6129842", "0.6112239", "0.60045344", "0.5910696", "0.59034264", "0.58935696", "0.58419704", "0.5817452", "0.58091056", "0.57681745", "0.57624376", "0.5740...
0.82795686
1
Sets the snx vector for a solution. putsnx(self,whichsol_,sux_)
def uelW(YKHO, QVZg, BgPF): KpEy = YKHO.getnumvar() if YKHO.getnumvar() > 0 and BgPF is not None and (len(BgPF) != YKHO.getnumvar()): raise ValueError('Array argument sux is not long enough: Is %d, expected %d' % (len(BgPF), YKHO.getnumvar())) if BgPF is None: raise ValueError('Argument sux ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uelW(YKHO, QVZg, v6VK):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if v6VK is None:\n raise TypeError('Invalid type for argument sux')\n if v6VK is None:\n BgPF = None\n else:\n try:\n BgPF = memoryview(v6VK)\n ...
[ "0.8124215", "0.7021743", "0.6980632", "0.6966811", "0.6813222", "0.6800751", "0.67092973", "0.66968876", "0.66748786", "0.6496435", "0.63811874", "0.6318186", "0.62490666", "0.5961369", "0.59006256", "0.58907515", "0.57933617", "0.57347393", "0.5712153", "0.56779563", "0.562...
0.80041677
1
Sets the status keys for a slice of the constraints. putskcslice(self,whichsol_,first_,last_,skc_)
def wFE4(YKHO, QVZg, MQmb, gzNA, JO0D): hOvL = gzNA - MQmb if gzNA - MQmb > 0 and JO0D is not None and (len(JO0D) != gzNA - MQmb): raise ValueError('Array argument skc is not long enough: Is %d, expected %d' % (len(JO0D), gzNA - MQmb)) if JO0D is not None: VunM = (gk2W.c_int32 * len(JO0D))(*...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wFE4(YKHO, QVZg, MQmb, gzNA, GkVV):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if GkVV is None:\n JO0D = None\n else:\n try:\n JO0D = memoryview(GkVV)\n except TypeError:\n try:\n WY_G = qw7D...
[ "0.79454774", "0.75047725", "0.7407678", "0.7173813", "0.7109814", "0.69620323", "0.688445", "0.6570131", "0.65653163", "0.644008", "0.64193016", "0.63047063", "0.6149271", "0.61239773", "0.60884666", "0.60470337", "0.6041082", "0.6021966", "0.6010248", "0.59961426", "0.59598...
0.80113786
0
Sets the status keys for a slice of the variables. putskxslice(self,whichsol_,first_,last_,skx_)
def l9AZ(YKHO, QVZg, MQmb, gzNA, s9Dc): x1hT = gzNA - MQmb if gzNA - MQmb > 0 and s9Dc is not None and (len(s9Dc) != gzNA - MQmb): raise ValueError('Array argument skx is not long enough: Is %d, expected %d' % (len(s9Dc), gzNA - MQmb)) if s9Dc is None: raise ValueError('Argument skx cannot b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l9AZ(YKHO, QVZg, MQmb, gzNA, wg3y):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if wg3y is None:\n raise TypeError('Invalid type for argument skx')\n if wg3y is None:\n s9Dc = None\n else:\n try:\n s9Dc = memoryview...
[ "0.78931737", "0.7580194", "0.75786614", "0.70705414", "0.6861257", "0.6841048", "0.6743091", "0.65563947", "0.6522296", "0.64854133", "0.64648354", "0.6417967", "0.64111745", "0.6388277", "0.6313509", "0.6206941", "0.61367166", "0.60655457", "0.60014707", "0.5933573", "0.589...
0.79880005
0
Sets a slice of the slc vector for a solution. putslcslice(self,whichsol_,first_,last_,slc_)
def tIsp(YKHO, QVZg, MQmb, gzNA, LHqk): WZNX = gzNA - MQmb if gzNA - MQmb > 0 and LHqk is not None and (len(LHqk) != gzNA - MQmb): raise ValueError('Array argument slc is not long enough: Is %d, expected %d' % (len(LHqk), gzNA - MQmb)) if LHqk is None: raise ValueError('Argument slc cannot b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tIsp(YKHO, QVZg, MQmb, gzNA, AfXr):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if AfXr is None:\n raise TypeError('Invalid type for argument slc')\n if AfXr is None:\n LHqk = None\n else:\n try:\n LHqk = memoryview...
[ "0.8701502", "0.8133429", "0.806384", "0.76658696", "0.7658473", "0.7546955", "0.74436045", "0.7409827", "0.7223596", "0.6984172", "0.6980541", "0.6971406", "0.69320714", "0.6919073", "0.68930155", "0.68504506", "0.6744624", "0.65483", "0.65033495", "0.6489441", "0.63791984",...
0.86964875
1
Sets a slice of the suc vector for a solution. putsucslice(self,whichsol_,first_,last_,suc_)
def Tokn(YKHO, QVZg, MQmb, gzNA, VDcL): SHVL = gzNA - MQmb if gzNA - MQmb > 0 and VDcL is not None and (len(VDcL) != gzNA - MQmb): raise ValueError('Array argument suc is not long enough: Is %d, expected %d' % (len(VDcL), gzNA - MQmb)) if VDcL is None: raise ValueError('Argument suc cannot b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tokn(YKHO, QVZg, MQmb, gzNA, f2c8):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if f2c8 is None:\n raise TypeError('Invalid type for argument suc')\n if f2c8 is None:\n VDcL = None\n else:\n try:\n VDcL = memoryview...
[ "0.85092914", "0.79236835", "0.7901774", "0.710677", "0.6811282", "0.6809746", "0.67143184", "0.66562814", "0.6645037", "0.6538894", "0.650998", "0.64967585", "0.63445026", "0.63221073", "0.6295248", "0.61873865", "0.6112312", "0.6103999", "0.61039084", "0.606613", "0.5948238...
0.8509022
1
Sets a slice of the slx vector for a solution. putslxslice(self,whichsol_,first_,last_,slx_)
def ECeY(YKHO, QVZg, MQmb, gzNA, jGJf): ISrL = gzNA - MQmb if gzNA - MQmb > 0 and jGJf is not None and (len(jGJf) != gzNA - MQmb): raise ValueError('Array argument slx is not long enough: Is %d, expected %d' % (len(jGJf), gzNA - MQmb)) if jGJf is None: raise ValueError('Argument slx cannot b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ECeY(YKHO, QVZg, MQmb, gzNA, ME6O):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if ME6O is None:\n raise TypeError('Invalid type for argument slx')\n if ME6O is None:\n jGJf = None\n else:\n try:\n jGJf = memoryview...
[ "0.87658566", "0.8256838", "0.82101905", "0.7792551", "0.76803", "0.7590878", "0.754748", "0.73802775", "0.73302394", "0.73208", "0.7255603", "0.7252787", "0.72040206", "0.7198659", "0.71512777", "0.7144093", "0.7055716", "0.70355844", "0.7016022", "0.6608226", "0.6572912", ...
0.8742748
1
Sets a slice of the sux vector for a solution. putsuxslice(self,whichsol_,first_,last_,sux_)
def YszW(YKHO, QVZg, MQmb, gzNA, BgPF): KpEy = gzNA - MQmb if gzNA - MQmb > 0 and BgPF is not None and (len(BgPF) != gzNA - MQmb): raise ValueError('Array argument sux is not long enough: Is %d, expected %d' % (len(BgPF), gzNA - MQmb)) if BgPF is None: raise ValueError('Argument sux cannot b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YszW(YKHO, QVZg, MQmb, gzNA, v6VK):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if v6VK is None:\n raise TypeError('Invalid type for argument sux')\n if v6VK is None:\n BgPF = None\n else:\n try:\n BgPF = memoryview...
[ "0.8508719", "0.83340466", "0.8057801", "0.69197226", "0.6710496", "0.64897186", "0.6475755", "0.6451187", "0.6406239", "0.6389337", "0.6378048", "0.63440204", "0.63357335", "0.63132656", "0.62359446", "0.62201715", "0.6173615", "0.616365", "0.61357236", "0.6130329", "0.61110...
0.83344233
1
Sets a slice of the snx vector for a solution. putsnxslice(self,whichsol_,first_,last_,snx_)
def PEm3(YKHO, QVZg, MQmb, gzNA, M9K2): vCjv = gzNA - MQmb if gzNA - MQmb > 0 and M9K2 is not None and (len(M9K2) != gzNA - MQmb): raise ValueError('Array argument snx is not long enough: Is %d, expected %d' % (len(M9K2), gzNA - MQmb)) if M9K2 is None: raise ValueError('Argument snx cannot b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PEm3(YKHO, QVZg, MQmb, gzNA, FLHu):\n if not isinstance(QVZg, Depx):\n raise TypeError('Argument whichsol has wrong type')\n if FLHu is None:\n raise TypeError('Invalid type for argument snx')\n if FLHu is None:\n M9K2 = None\n else:\n try:\n M9K2 = memoryview...
[ "0.85671264", "0.805008", "0.79371846", "0.79229695", "0.7840644", "0.7586533", "0.75405127", "0.7280455", "0.7215171", "0.6978972", "0.6911959", "0.67005694", "0.66865796", "0.6662985", "0.66343945", "0.662925", "0.6617821", "0.66010696", "0.65472627", "0.6508029", "0.645928...
0.86426115
0
Obtains the length the task name. gettasknamelen(self)
def Kpsd(YKHO): aAh7 = gk2W.c_int32() Ylbp = TW1v.MSK_XX_gettasknamelen(YKHO.__nativep, gk2W.byref(aAh7)) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) aAh7 = aAh7.value UD4Z = aAh7 return UD4Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kpsd(YKHO):\n Ylbp, vfD5 = YKHO.__obj.gettasknamelen()\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n UD4Z = vfD5\n return UD4Z", "def ATKD(YKHO):\n eZS8 = 1 + YKHO.gettasknamelen()\n _XkS = (gk2W.c_char * eZS8)()\n Ylbp = TW1v.MSK...
[ "0.8965651", "0.7397242", "0.72126365", "0.667672", "0.6508015", "0.6390483", "0.6323408", "0.62874895", "0.61902267", "0.61406875", "0.61028075", "0.61009693", "0.61009693", "0.60868466", "0.58861375", "0.58722395", "0.58384854", "0.5818338", "0.5761852", "0.5759502", "0.575...
0.88484406
1
Obtains the task name. gettaskname(self)
def ATKD(YKHO): eZS8 = 1 + YKHO.gettasknamelen() _XkS = (gk2W.c_char * eZS8)() Ylbp = TW1v.MSK_XX_gettaskname(YKHO.__nativep, eZS8, _XkS) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) PmES = _XkS.value.decode('utf-8', errors='replace') return P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIK_(YKHO):\n return YKHO._taskName", "def VsgD(YKHO) -> str:\n return YKHO._task_name", "def VsgD(YKHO):\n pass", "def D5gV(YKHO) -> str:\n return YKHO._task", "def ATKD(YKHO):\n eZS8 = 1 + YKHO.gettasknamelen()\n WptY = qw7D.array('b', [0] * eZS8)\n NWW5 = memoryview(WptY)\n Y...
[ "0.9225546", "0.9222605", "0.8905019", "0.80700994", "0.7833355", "0.7788377", "0.7711659", "0.7691786", "0.7691786", "0.7611951", "0.7544766", "0.7498057", "0.74122566", "0.73614204", "0.7213984", "0.7192169", "0.71578455", "0.7126896", "0.7096741", "0.70961493", "0.7053906"...
0.7600426
10
Sets the objective sense. putobjsense(self,sense_)
def fHKQ(YKHO, ch_Z): Ylbp = TW1v.MSK_XX_putobjsense(YKHO.__nativep, ch_Z) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHKQ(YKHO, ch_Z):\n if not isinstance(ch_Z, H_rx):\n raise TypeError('Argument sense has wrong type')\n Ylbp = YKHO.__obj.putobjsense(ch_Z)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def rV9r(YKHO, rV9r):\n YKHO._objective = rV9...
[ "0.79471225", "0.52841735", "0.5171148", "0.5096876", "0.50680315", "0.48795915", "0.48363435", "0.48355487", "0.48335677", "0.48176384", "0.47935885", "0.47814864", "0.4768401", "0.47334376", "0.4723602", "0.469889", "0.46933207", "0.46930823", "0.4692844", "0.46748367", "0....
0.75217026
1
Changes one element in barc. putbarcj(self,j_,sub_,weights_)
def cT2S(YKHO, FijD, JBgN, EezN): tWD2 = None if tWD2 is None: tWD2 = len(JBgN) elif tWD2 != len(JBgN): raise IndexError('Inconsistent length of array sub') if tWD2 is None: tWD2 = len(EezN) elif tWD2 != len(EezN): raise IndexError('Inconsistent length of array weight...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cT2S(YKHO, FijD, finE, _mSQ):\n tWD2 = None\n if tWD2 is None:\n tWD2 = len(finE)\n elif tWD2 != len(finE):\n raise IndexError('Inconsistent length of array sub')\n if tWD2 is None:\n tWD2 = len(_mSQ)\n elif tWD2 != len(_mSQ):\n raise IndexError('Inconsistent length o...
[ "0.8175987", "0.73748964", "0.7216971", "0.62823015", "0.62727207", "0.6010744", "0.58721524", "0.5819966", "0.57759297", "0.5744071", "0.56815547", "0.5676308", "0.55539197", "0.54821527", "0.53647524", "0.53490466", "0.52245176", "0.52084583", "0.5198786", "0.5183286", "0.5...
0.77634215
1
Sets the number of preallocated conic constraints in the optimization task. putmaxnumcone(self,maxnumcone_)
def JEJM(YKHO, vPNu): Ylbp = TW1v.MSK_XX_putmaxnumcone(YKHO.__nativep, vPNu) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JEJM(YKHO, vPNu):\n Ylbp = YKHO.__obj.putmaxnumcone(vPNu)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def L0Mi(YKHO, CwxV):\n Ylbp = YKHO.__obj.putmaxnumcon(CwxV)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n ...
[ "0.7859737", "0.687435", "0.6576984", "0.6516009", "0.6250021", "0.5742838", "0.57224095", "0.5664653", "0.5662323", "0.5644606", "0.5565795", "0.55509084", "0.55272174", "0.54718906", "0.5445443", "0.54382503", "0.5431226", "0.5375135", "0.53488725", "0.5343298", "0.5334908"...
0.76632214
1
Sets the number of preallocated symmetric matrix variables. putmaxnumbarvar(self,maxnumbarvar_)
def BCXj(YKHO, Kko7): Ylbp = TW1v.MSK_XX_putmaxnumbarvar(YKHO.__nativep, Kko7) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BCXj(YKHO, Kko7):\n Ylbp = YKHO.__obj.putmaxnumbarvar(Kko7)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def Ewqb(YKHO, yOq9):\n Ylbp = YKHO.__obj.putmaxnumvar(yOq9)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n ...
[ "0.7951648", "0.6959753", "0.6795598", "0.65727705", "0.6438065", "0.6048308", "0.5996996", "0.5852882", "0.5841968", "0.5822205", "0.5682764", "0.5667983", "0.5649398", "0.5640302", "0.5615086", "0.56006753", "0.55580956", "0.5552524", "0.5495012", "0.54564613", "0.5411751",...
0.78251684
1
Replaces one coefficient in the quadratic term in the objective. putqobjij(self,i_,j_,qoij_)
def hGi3(YKHO, WzQg, FijD, iqBa): Ylbp = TW1v.MSK_XX_putqobjij(YKHO.__nativep, WzQg, FijD, iqBa) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hGi3(YKHO, WzQg, FijD, iqBa):\n Ylbp = YKHO.__obj.putqobjij(WzQg, FijD, iqBa)\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def ApVU(YKHO, WzQg, FijD):\n Ylbp, vfD5 = YKHO.__obj.getqobjij(WzQg, FijD)\n if Ylbp != 0:\n Aofo, tO9_ = ...
[ "0.8022443", "0.67813957", "0.659472", "0.62387276", "0.6219436", "0.61874425", "0.6092477", "0.6030711", "0.6007447", "0.58423615", "0.58029187", "0.5546479", "0.5543163", "0.54854363", "0.54592514", "0.54140776", "0.5403207", "0.54002947", "0.537518", "0.5340782", "0.533449...
0.78803056
1
Load task data from a string in JSON format. readjsonstring(self,data_)
def j0GX(YKHO, KQOt): if isinstance(KQOt, QMSQ): KQOt = KQOt.encode('utf-8', errors='replace') Ylbp = TW1v.MSK_XX_readjsonstring(YKHO.__nativep, KQOt) if Ylbp != 0: bGrB, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uYrM(YKHO, qBwD):\n try:\n nPrm = qQXR.loads(qBwD)\n except qQXR.JSONDecodeError:\n nPrm = Nhuv.data_generator(qBwD.splitlines())\n nPrm = Nhuv.read_json(data_generator=nPrm, selected_columns=YKHO.selected_keys, read_in_string=False)\n return nPrm", "def uikv(YKHO, nP0Q: str):\n...
[ "0.7473371", "0.73492724", "0.70103645", "0.6908961", "0.67095613", "0.66338253", "0.6541871", "0.65246135", "0.6445135", "0.643727", "0.6423963", "0.6287553", "0.6281268", "0.62648505", "0.6253007", "0.62117", "0.6190784", "0.61543965", "0.6138435", "0.6130036", "0.6093991",...
0.6714592
4
Returns True if this type is used in an optional argument. bool
def TAwy(YKHO): raise Bx6I.NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYSX(YKHO) -> bool:\n return False", "def TAwy(Emd4) -> bool:\n return Emd4.optional", "def cUK7(YKHO, kN9s):\n return YKHO._NameComponents(kN9s) in YKHO._optional_types", "def d1xY(d7pR: Any) -> bool:\n return True", "def paOf(YKHO) -> bool:\n if YKHO.is_optional:\n return YKHO.i...
[ "0.7237668", "0.72037935", "0.709011", "0.69880986", "0.66822135", "0.66811407", "0.66736525", "0.6660319", "0.65815026", "0.65815026", "0.65815026", "0.65815026", "0.65815026", "0.65815026", "0.6533586", "0.64503354", "0.64380187", "0.6419174", "0.6419174", "0.6419174", "0.6...
0.6169652
62
Returns True if this type is used in a variadic argument. bool
def U0Mk(YKHO): raise Bx6I.NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U0Mk(YKHO):\n if YKHO.is_function() and YKHO.args:\n return YKHO.args[-1].endswith('...')\n return False", "def XCEP(qIxc):\n for d7pR in vars(qIxc):\n if getattr(qIxc, d7pR):\n return True\n return False", "def UkEL(JfyU):\n if JfyU in bOYF:\n return False\n ...
[ "0.7789966", "0.6522471", "0.6384409", "0.6294994", "0.6294994", "0.62792814", "0.6124202", "0.6067434", "0.60662395", "0.6052541", "0.60394627", "0.60286164", "0.59856653", "0.59645915", "0.59602636", "0.5950267", "0.59254897", "0.5895693", "0.5832743", "0.5820968", "0.57882...
0.7150723
1
Returns True if |self| is a BooleanType. bool
def ODtP(YKHO): raise Bx6I.NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sp_5(YKHO):\n ANfV = YKHO._call('is_bool')\n return ANfV.yes", "def SDZP(YKHO):\n return _VfD.ASTNode_isBoolean(YKHO)", "def WhGw(YKHO):\n return YKHO.as_type(bool)", "def eRwN(YKHO):\n return bool(YKHO._value)", "def eRwN(YKHO):\n return YKHO is wxy6", "def Sp_5(YKHO):\n return ...
[ "0.81790584", "0.79737103", "0.79040664", "0.75805515", "0.75393873", "0.7524598", "0.75197995", "0.7460989", "0.74104637", "0.72200793", "0.72200793", "0.71395105", "0.7098527", "0.70766455", "0.7033548", "0.7030978", "0.7024969", "0.6913013", "0.68852055", "0.68579674", "0....
0.7735801
3
Returns True if |self| is an ObjectType. bool
def Xwjr(YKHO): raise Bx6I.NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def osAN(YKHO, hgiF):\n return hgiF in VLRj.Object.Get()", "def e8zD(YKHO, YEnM):\n return isinstance(YEnM, YKHO.type_)", "def qIoX(YKHO, vcaS):\n if not isinstance(vcaS, str):\n raise TypeError('object_type must be a string.')\n return vcaS in YKHO.model_map['object']", "def RH_m(YKHO, YE...
[ "0.7290644", "0.6918381", "0.6855239", "0.681674", "0.6812159", "0.66543907", "0.664714", "0.65621924", "0.65621924", "0.65621924", "0.65621924", "0.65621924", "0.6510388", "0.64790374", "0.64409184", "0.6381249", "0.63387465", "0.6333009", "0.62965983", "0.62965983", "0.6294...
0.73837817
0
Returns True if |self| is an InterfaceType. bool
def uruw(YKHO): raise Bx6I.NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0LU(YKHO, nUeQ, YRbF):\n MZML = YKHO.get_doc_str(nUeQ, YRbF)\n D3KC = None\n for zFiD in MZML:\n if 'class type: interface' in zFiD:\n D3KC = 'interface'\n if YKHO.is_cls(nUeQ, YRbF) and D3KC == 'interface':\n return True\n return False", "def USiV(YKHO):\n return ...
[ "0.7116907", "0.69529134", "0.6768456", "0.65538967", "0.6530441", "0.6227138", "0.61110246", "0.6041694", "0.60142016", "0.59563255", "0.58967304", "0.5890976", "0.588442", "0.58537626", "0.5843988", "0.579155", "0.5761401", "0.5754417", "0.5736469", "0.5722448", "0.5722448"...
0.7915525
0
Returns True if |self| is an EnumerationType. bool
def GyBX(YKHO): raise Bx6I.NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AshC(YKHO):\n return YKHO.is_complex and (not YKHO.is_class)", "def AshC(YKHO):\n return False", "def eRwN(YKHO):\n raise ValueError('never bool enums')", "def AshC(RjIW):\n return isinstance(RjIW, uPxI.Enum) or (isinstance(RjIW, uPxI.Field) and RjIW.enum_type)", "def Wply(YEnM: Any) -> boo...
[ "0.75733083", "0.7569544", "0.6962072", "0.6221248", "0.593877", "0.5817571", "0.5783149", "0.57705", "0.57169104", "0.5677263", "0.56612563", "0.56568766", "0.5621548", "0.5560102", "0.55483013", "0.5544188", "0.5514909", "0.5514909", "0.5502364", "0.5480135", "0.5452716", ...
0.7311989
2
Returns True if |self| is a NullableType. bool
def C8QJ(YKHO): raise Bx6I.NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fXcx(YKHO) -> bool:\n return YKHO.__nullable", "def sdEz(YKHO):\n return YKHO._is_nullable", "def sdEz(YKHO) -> bool:\n pass", "def beMp(YKHO):\n if YKHO.isPrimaryKey():\n return False\n else:\n return YKHO._nullable", "def uYVM(YKHO):\n return YKHO.value is None", "de...
[ "0.8178933", "0.7918046", "0.79070556", "0.76075095", "0.69676435", "0.6672594", "0.65094495", "0.6502415", "0.647941", "0.6284314", "0.6273103", "0.62613225", "0.62450457", "0.6224936", "0.6208757", "0.6208757", "0.6208757", "0.6208757", "0.6208757", "0.6177551", "0.61642456...
0.72613966
4
Returns True if |self| is a RecordType. bool
def MzOC(YKHO): raise Bx6I.NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gMSS(YKHO, xrk2=None):\n if xrk2 is None:\n raise Mw1j()\n return False", "def Pnv4(YKHO, zhMb=None):\n if zhMb is None:\n raise Mw1j()\n return False", "def CK20(BWXx):\n return isinstance(BWXx, Ky4Y)", "def bPqk(YKHO):\n return YKHO._isrecording", "def zxOx(Emd4, oTFV)...
[ "0.657329", "0.6553393", "0.6409709", "0.6220432", "0.6149315", "0.6113821", "0.61134356", "0.6092015", "0.603679", "0.5925932", "0.58947814", "0.5886511", "0.5882126", "0.5842346", "0.58168924", "0.5733191", "0.57082087", "0.5686609", "0.5648512", "0.56156236", "0.56152785",...
0.79121345
0
Returns True if |self| is a UnionType. bool
def t2Cd(YKHO): raise Bx6I.NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aOHe(kmUU: Type) -> bool:\n return Wkq0(kmUU) is uLKX", "def AD5J(kN9s):\n if not LJf3(kN9s):\n return False\n K93d = HbaL.get_declaration(kN9s)\n return K93d.class_type == Qgmf.CLASS_TYPES.UNION", "def ByBQ(HRJ_):\n if HRJ_ is uLKX:\n return True\n try:\n return HRJ_...
[ "0.8105555", "0.7861087", "0.7817273", "0.7705603", "0.7646727", "0.7483963", "0.7477847", "0.74555516", "0.69131905", "0.6808421", "0.65584767", "0.58904076", "0.5881067", "0.570471", "0.56558865", "0.56558865", "0.5652963", "0.562509", "0.5571252", "0.5558063", "0.5529574",...
0.81638217
0
Returns the enumeration that |self| points if |self| is an EnumerationType. Enumeration
def XJAX(YKHO): raise Bx6I.NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQ1Y(YKHO):\n raise NotImplementedError", "def type(YKHO):\n if YKHO.__type is None:\n KNtt = Ncah(YKHO.__type_name, YKHO.message_definition())\n if not (KNtt is not bHD7 and isinstance(KNtt, type) and issubclass(KNtt, bHD7)):\n raise nJQM('Invalid enum type: %s' % KNtt)\n ...
[ "0.6754995", "0.6505485", "0.6498391", "0.64226437", "0.64147794", "0.6215564", "0.62026507", "0.6193123", "0.6181149", "0.61001414", "0.6067181", "0.5867183", "0.5742926", "0.5690248", "0.5673847", "0.55770445", "0.55766934", "0.55766934", "0.5558914", "0.5537204", "0.550784...
0.6433254
3
Calculate derivative of f at x ...
def VVyp(eHNT, WKvO, _hZ2=1e-10): A3mO = WKvO + _hZ2 BWXx = (eHNT(A3mO) - eHNT(WKvO)) / _hZ2 return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VVyp(JfyU: Callable, WKvO: float, RA_F: float) -> float:\n return (JfyU(WKvO + RA_F) - JfyU(WKvO - RA_F)) / (2.0 * RA_F)", "def MC1R(WKvO):\n return VVyp(zfS_, WKvO, dx=1e-06)", "def LyOx(WKvO):\n return VVyp(MC1R, WKvO, dx=1e-06)", "def LyOx(WKvO):\n return VVyp(MC1R, WKvO, dx=1e-06)", "de...
[ "0.8399586", "0.8368309", "0.8243807", "0.8243807", "0.80135554", "0.76355505", "0.76177835", "0.759907", "0.75759", "0.7549782", "0.7521599", "0.7458555", "0.7403107", "0.7348985", "0.7286614", "0.72405046", "0.7226039", "0.72241956", "0.7214791", "0.7148547", "0.70950574", ...
0.822914
4
Updates relu activation functions so that 1 stores output in forward pass 2 imputes zero for gradient values that are less than zero
def drfk(YKHO): def XVC9(yR_P, g6LF, EYyA): """ If there is a negative gradient, change it to zero """ nWP1 = YKHO.forward_relu_outputs[-1] nWP1[nWP1 > 0] = 1 e1d4 = nWP1 * ht2j.clamp(g6LF[0], min=0.0) del YKHO.forward_relu_outputs[-1] return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drfk(YKHO):\n\n def XVC9(yR_P, g6LF, EYyA):\n \"\"\"\n If there is a negative gradient, change it to zero\n \"\"\"\n nWP1 = YKHO.forward_relu_outputs[-1]\n nWP1[nWP1 > 0] = 1\n e1d4 = nWP1 * ht2j.clamp(g6LF[0], min=0.0)\n del YKHO.forward_relu_outputs[-1]\n ...
[ "0.71002835", "0.7058546", "0.7051403", "0.7016013", "0.6980029", "0.6936653", "0.6891817", "0.68849665", "0.68542355", "0.67622566", "0.6736303", "0.66012645", "0.65662277", "0.656202", "0.6528573", "0.64789206", "0.6472497", "0.6466472", "0.64646626", "0.64496136", "0.64196...
0.6970306
5
The function converts the quaternion vector to a rotation matrix
def E9zH(cJsZ, hbUd, BzON, iv7Q) -> oyIN: CYO9 = 2 * (cJsZ * cJsZ + hbUd * hbUd) - 1 BgWB = 2 * (hbUd * BzON - cJsZ * iv7Q) LpGM = 2 * (hbUd * iv7Q + cJsZ * BzON) WM11 = 2 * (hbUd * BzON + cJsZ * iv7Q) Kri1 = 2 * (cJsZ * cJsZ + BzON * BzON) - 1 sUwq = 2 * (BzON * iv7Q - cJsZ * hbUd) PbH9 = 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9zH(slpS):\n RyRt, jylo, SInE, D_A6 = slpS\n AyER, rAHv, gZUC, ux4C = oyIN.square(slpS)\n CkYf = rAHv + gZUC + ux4C + AyER\n bULF = oyIN.zeros((3, 3))\n bULF[0, 0] = (+rAHv - gZUC - ux4C + AyER) / CkYf\n bULF[1, 1] = (-rAHv + gZUC - ux4C + AyER) / CkYf\n bULF[2, 2] = (-rAHv - gZUC + ux4C ...
[ "0.75867957", "0.74146473", "0.73953855", "0.72882676", "0.7253188", "0.72290003", "0.71538144", "0.71532506", "0.7126588", "0.7108177", "0.7099389", "0.70787674", "0.7061855", "0.7034862", "0.7003994", "0.70023286", "0.6997477", "0.697881", "0.69561833", "0.69520205", "0.693...
0.683938
25
The function converts rotation matrix to quaternion vector
def Np0o(bULF: np) -> object: QXb_ = epAf.sqrt(bULF[0][0] ** 2 + bULF[1][0] ** 2) J5o2 = QXb_ < 10 ** (-6) if not J5o2: xTkQ = epAf.atan2(bULF[1][0], bULF[0][0]) H2HG = epAf.atan2(-bULF[2][0], QXb_) rKSe = epAf.atan2(bULF[2][1], bULF[2][2]) else: xTkQ = epAf.atan2(-bULF[1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Np0o(bULF):\n zgsA = oyIN.trace(bULF)\n if zgsA > 0:\n o4sw = oyIN.sqrt(zgsA + 1) * 2\n RyRt = 0.25 * o4sw\n jylo = (bULF[2, 1] - bULF[1, 2]) / o4sw\n SInE = (bULF[0, 2] - bULF[2, 0]) / o4sw\n D_A6 = (bULF[1, 0] - bULF[0, 1]) / o4sw\n return oyIN.asarray([RyRt, j...
[ "0.76806", "0.75808585", "0.757304", "0.7515583", "0.7400028", "0.7371076", "0.72685283", "0.72596556", "0.722488", "0.71143645", "0.70881724", "0.7081711", "0.70517707", "0.7031683", "0.70243925", "0.7013156", "0.70124847", "0.7006788", "0.69838303", "0.69710416", "0.6961587...
0.7486031
4
Retrieves a location using this LocationProvider. Should be overwritten in specialisations of this class.
def hbd3(YKHO): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hbd3(YKHO) -> FYrf.Location:\n return FYrf.Location.get(region=YKHO, name=YKHO.name, deleted=False)", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.__location", "def yQve(YKHO):\n return ovw8.Location(itemID=YKHO.locati...
[ "0.7753154", "0.76495415", "0.7630321", "0.7557997", "0.75226474", "0.74665785", "0.7435566", "0.74313676", "0.73154056", "0.7309289", "0.72279537", "0.7225498", "0.7192612", "0.7192612", "0.71177167", "0.7008181", "0.69932073", "0.69932073", "0.6984769", "0.69491065", "0.693...
0.68752146
23
Given data about a Collection returned by any blockstore REST API, convert it to a Collection instance.
def UdKU(nPrm): return LRdN(uuid=S7kj(nPrm['uuid']), title=nPrm['title'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def opd7(YKHO, xUwc, QePW, PNq_, MP2k, CeMw):\n w8ES = YKHO.content_negotiation(QePW, PNq_, YKHO.ValueTypes)\n if w8ES is None:\n return YKHO.odata_error(QePW, PNq_, MP2k, 'Not Acceptable', 'xml, json or plain text formats supported', 406)\n if w8ES == 'application/json':\n nPrm = '{\"d\":%s...
[ "0.6577779", "0.6343278", "0.6237831", "0.6221495", "0.6207642", "0.6203012", "0.6195551", "0.6181388", "0.6098431", "0.6020433", "0.60099417", "0.5990563", "0.5976519", "0.5969405", "0.5889118", "0.58554935", "0.58416325", "0.5817092", "0.5749313", "0.57408684", "0.57094455"...
0.71289414
0
Retrieve metadata about the specified draft.
def ZlGD(nNZH, Tdfi): wHSX = LcE4(nNZH) try: return ki9V(wHSX.drafts[Tdfi]) except KeyError: geh0 = wcXs('post', Ms2Z('drafts'), json={'bundle_uuid': str(nNZH), 'name': Tdfi}) return ki9V(S7kj(geh0['uuid']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, P0UU):\n return YKHO._invoke('get', {'draft_id': P0UU})", "def NMoC(YKHO, FeDH, PcW4, P0UU):\n Csk6 = ZmZT.get(PcW4, user=c5ow)\n return Csk6.type.marshal_draft(Csk6.get_draft(P0UU))", "def oUlR(YKHO, mWFP):\n return YKHO.metadata.get(mWFP)", "def CzF_(YKHO) -> H1ja:\n Kz8N = YK...
[ "0.6504005", "0.60097516", "0.57217854", "0.5682793", "0.5668223", "0.5561862", "0.5507919", "0.54667366", "0.5463275", "0.54286134", "0.5427839", "0.54156", "0.5385616", "0.5367478", "0.5338896", "0.5338896", "0.5327211", "0.53266174", "0.53234196", "0.5313462", "0.52506757"...
0.0
-1
Get a dict of all the files in the specified bundle. Returns a dict where the keys are the paths (strings) and the values are BundleFile or DraftFile tuples.
def WMQ8(nNZH, cECY=None): wHSX = LcE4(nNZH) if cECY and cECY in wHSX.drafts: YFJV = wHSX.drafts[cECY] return ki9V(YFJV).files elif not wHSX.latest_version: return {} else: return {OBAU.path: OBAU for OBAU in fpn3(nNZH, wHSX.latest_version)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ibgb(nNZH, cECY=None):\n return WMQ8(nNZH, cECY).values()", "def fpn3(nNZH, pNGv):\n if pNGv == 0:\n return []\n bFMd = WL71(nNZH, pNGv)\n return [QEQN(path=pmON, **ElnE) for pmON, ElnE in bFMd['snapshot']['files'].items()]", "def VVOP(YKHO, B5hb):\n with YKHO._conn.begin():\n ...
[ "0.7790072", "0.64431036", "0.63394016", "0.63182753", "0.630003", "0.62759304", "0.6194732", "0.6178175", "0.61479455", "0.6144583", "0.6076846", "0.60737944", "0.6040074", "0.5976576", "0.59606755", "0.5862239", "0.5857732", "0.58249676", "0.5790602", "0.5765096", "0.576296...
0.8014129
0
Initialize the weights of the model. The weights are initialized to small random values and the biases to zero. Weights are stored in the variable dictionary named self.params.
def sTi3(YKHO, Gzv5, NVEz=0.01): YKHO.params = {} wjbX = YKHO.hidden_size jTqs = YKHO.num_classes CLda = YKHO.num_layers YKHO.params['W1'] = oyIN.random.randn(Gzv5, YKHO.hidden_size) * NVEz YKHO.params['b1'] = oyIN.zeros(YKHO.hidden_size) YKHO.params['W2'] = oyIN.random.randn(YKHO.hidden_siz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8Xp(YKHO):\n nIVP = 1.0 / epAf.sqrt(YKHO.weight.data.size(1))\n YKHO.weight.data.uniform_(-nIVP, nIVP)\n if YKHO.bias is not None:\n YKHO.bias.data.uniform_(-nIVP, nIVP)", "def vB93(C3ST):\n ...", "def vB93(YKHO):\n YKHO.w = oyIN.random.randn(YKHO.D) / oyIN.sqrt(YKHO.D)", "def vB93...
[ "0.84454", "0.83300084", "0.83285135", "0.8306398", "0.81789726", "0.8172356", "0.81278425", "0.80801696", "0.80633783", "0.8052339", "0.8016938", "0.8014385", "0.7996117", "0.7978683", "0.7978683", "0.7978683", "0.79736733", "0.791141", "0.791141", "0.7864369", "0.7859745", ...
0.7425541
56
Computes the backward pass for a sigmoid activation function.
def m9vT(YKHO, gEpz, wyyA): yvT9 = wyyA RVQ8 = gEpz * yvT9 * (1 - yvT9) return RVQ8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m9vT(zYcP, wyyA):\n Jw7X, WKvO = (None, wyyA)\n eHNT = lambda WKvO: 1 / (1 + oyIN.exp(-WKvO))\n MCGS = eHNT(WKvO)\n Jw7X = oyIN.multiply(MCGS, 1 - MCGS)\n Jw7X = oyIN.multiply(Jw7X, zYcP)\n return Jw7X", "def m9vT(LQ6K, Nk6w):\n Nf0X = m1Hg(Nk6w) * (1 - m1Hg(Nk6w))\n return LQ6K * Nf0...
[ "0.7805891", "0.76624775", "0.75691813", "0.7389613", "0.72973096", "0.72793454", "0.72200996", "0.72104853", "0.72072583", "0.7176278", "0.7166796", "0.71486557", "0.712793", "0.7086538", "0.7080874", "0.70740503", "0.7072516", "0.70650476", "0.7015476", "0.70073223", "0.698...
0.7265221
6
Compute the softmax function for each row of the input x.
def N93T(YKHO, WKvO): _lLg = oyIN.mean(WKvO, axis=1) WKvO = (WKvO.T - _lLg).T Nij0 = oyIN.exp(WKvO) nIO9 = oyIN.sum(oyIN.exp(WKvO), axis=1) BFeB = (Nij0.T / nIO9).T return BFeB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, WKvO):\n yvT9 = oyIN.zeros(WKvO.shape)\n for YRbF in range(WKvO.shape[0]):\n IA3S = WKvO[YRbF] - oyIN.max(WKvO[YRbF])\n yvT9[YRbF] = oyIN.exp(IA3S) / oyIN.sum(oyIN.exp(IA3S), axis=0)\n return yvT9", "def N93T(WKvO: npt.NDArray) -> eQHC.NDArray:\n Z5xZ = oyIN.max(WKvO, axi...
[ "0.8561103", "0.8524938", "0.8485795", "0.84788704", "0.84645116", "0.84644413", "0.84097195", "0.8395736", "0.8390502", "0.8372838", "0.8333905", "0.8323554", "0.8323105", "0.8323105", "0.8323105", "0.8323105", "0.8323105", "0.8323105", "0.8323105", "0.8323105", "0.8309577",...
0.8095466
48
Computes the forward pass of a rectified linear unit (ReLU).
def wN5Y(YKHO, WKvO): yvT9 = oyIN.array(WKvO, copy=True) yvT9[yvT9 <= 0] = 0 wyyA = WKvO return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wN5Y(WKvO):\n yvT9 = WKvO\n yvT9[yvT9 < 0] = 0\n return yvT9", "def wN5Y(WKvO):\n yvT9 = None\n yvT9 = WKvO.copy()\n yvT9[WKvO <= 0] = 0\n wyyA = WKvO\n return (yvT9, wyyA)", "def wN5Y(WKvO):\n yvT9 = None\n yvT9 = oyIN.where(WKvO <= 0, 0, WKvO)\n pass\n wyyA = WKvO\n ...
[ "0.6923425", "0.6670239", "0.6663412", "0.6650045", "0.6630312", "0.65392053", "0.64895386", "0.648836", "0.64600945", "0.6429588", "0.6399773", "0.63981783", "0.63528794", "0.63357466", "0.63077855", "0.62966233", "0.6285175", "0.6278084", "0.62459034", "0.62427825", "0.6203...
0.67316556
1
Computes the backward pass for a layer of rectified linear units (ReLUs).
def PPFh(YKHO, gEpz, wyyA): WKvO = wyyA WKvO = oyIN.array(WKvO, copy=True) WKvO[WKvO <= 0] = 0 WKvO[WKvO > 0] = 1 cf5c = gEpz * WKvO return cf5c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZD5u(OaeV, pwN3):\n N77f, lQ3t, P6bq, OCi3 = OaeV.saved_tensors\n begE = P6bq.device\n SGf8 = 1e-10\n Ro40, = ht2j.autograd.grad(N77f, P6bq, only_inputs=True, retain_graph=True)\n WKvO = (P6bq - SGf8 * Ro40).data\n OCi3 = OCi3.data\n vUCF = r3uf(oyIN.array([ZhTu.tv1_1d(CAzz, SGf8 * OCi3) f...
[ "0.6948249", "0.6898323", "0.6847992", "0.6847992", "0.68477255", "0.68407637", "0.68200904", "0.6768128", "0.67572653", "0.67565167", "0.67562467", "0.6743265", "0.67394495", "0.6715497", "0.67090523", "0.67006433", "0.669643", "0.669643", "0.66886026", "0.6666757", "0.66667...
0.70406467
0
Given gradient, will update the layer weights
def x2Fr(YKHO, MyUA, C5TJ): if not YKHO.trainable: return MyUA = oyIN.squeeze(MyUA) C5TJ = oyIN.squeeze(C5TJ) if len(YKHO.params) == 2: YKHO.params = (YKHO.params[0] + MyUA, YKHO.params[1] + C5TJ) else: YKHO.params = (YKHO.params[0] + MyUA, YKHO.params[1] + C5TJ) + YKHO.param...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QSh2(YKHO, ICX2):\n yzQ0 = HwRy.modules[YKHO.shared_mem_name].__dict__['w']\n yzQ0 -= YKHO.learning_rate * ICX2", "def MyUA(YKHO, EcVT, fuBA, b0Ix):\n vtNT = YKHO.calculate_gradients(EcVT, fuBA)\n YKHO.weights[0] = YKHO.weights[0] - b0Ix * vtNT['dW1']\n YKHO.weights[1] = YKHO.weights[1] - b0Ix...
[ "0.7662058", "0.756946", "0.7527331", "0.73841107", "0.7367387", "0.72501403", "0.7238229", "0.7204643", "0.71658003", "0.7152769", "0.71068096", "0.7099971", "0.70949143", "0.7080805", "0.70684385", "0.70570195", "0.70487124", "0.70160997", "0.6927363", "0.6914079", "0.68777...
0.6196009
100
Return the first_name plus the last_name, with a space in between.
def xpqj(YKHO): eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name) return eHMM.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f", "def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f", "def kaIN(c9ua, zp3f):\n eHMM = c9ua + '' + zp3f\n return eHMM.title()", "def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name", "def xpqj(YKHO):\n return YKHO.first_name + ' ...
[ "0.83418363", "0.82269484", "0.8099016", "0.80672693", "0.8052289", "0.80440307", "0.7993753", "0.7992884", "0.7992884", "0.7992884", "0.79781276", "0.79624933", "0.7956748", "0.79396284", "0.7936353", "0.79332894", "0.79148924", "0.79008836", "0.7892486", "0.7869447", "0.785...
0.7785872
54
Override equality operator for testing primer objects
def xa14(YKHO, Elif): return YKHO.seq == Elif.seq and YKHO.aligned_index == Elif.aligned_index and (YKHO.unaligned_index == Elif.unaligned_index) and (YKHO.numeric_seq == Elif.numeric_seq) and (YKHO.upstream_regions == Elif.upstream_regions) and (YKHO.downstream_regions == Elif.downstream_regions) and (YKHO.labels ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n pass", "def xa14(YKHO, Elif):\n pass", "def xa14(YKHO, OCky):\n if any([YKHO[YRbF] != OCky[YRbF] for YRbF in range(9)]):\n return False\n return True", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", ...
[ "0.72263765", "0.72263765", "0.71889865", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147", "0.71733147"...
0.0
-1
returns max number of missed seqs to be above threshold
def oCPS(qBRB, YAwl): return int(float(1 - qBRB) * YAwl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YrIy(Q6uT):\n OVtm = 0\n Jm1s = [Q6uT.count(ZfUD) for ZfUD in Q6uT]\n try:\n OVtm = max(Jm1s)\n except ValueError:\n 'arg is an empty sequence'\n return OVtm", "def _tQc(gwAu, hkxX):\n mLGw = sum([1 for exwG in hkxX if exwG > gwAu])\n return mLGw", "def MQ89(wEsz):\n H...
[ "0.63247347", "0.6317331", "0.6310057", "0.6004469", "0.5953126", "0.5931313", "0.59071994", "0.5869132", "0.5867101", "0.5866491", "0.5832915", "0.5804919", "0.5800774", "0.5782871", "0.57597333", "0.5745662", "0.5734066", "0.57165194", "0.571367", "0.56970453", "0.5675978",...
0.60113037
3
Generate random int `n` such that `0 <= n <= prime`.
def Gzv6(YKHO, tlxW): return tuKI.randint(0, tlxW) % YKHO.prime
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T1qg(exwG):\n assert exwG > 3\n G1Hx = int(gNuL(exwG))\n r8hN = exwG - 1\n Csk6 = 0\n while r8hN % 2 == 0:\n r8hN //= 2\n Csk6 += 1\n for bGrB in range(G1Hx):\n jzdc = ajWY(2, exwG - 2)\n WKvO = pow(jzdc, r8hN, exwG)\n if WKvO == 1 or WKvO == exwG - 1:\n ...
[ "0.7877164", "0.7752492", "0.76700974", "0.7575768", "0.73313224", "0.7323237", "0.7304841", "0.7234368", "0.7212159", "0.718724", "0.7154295", "0.710153", "0.70722497", "0.7051513", "0.704767", "0.7031115", "0.70165616", "0.7007428", "0.69956565", "0.6977279", "0.6942", "0...
0.0
-1
Add last splitting llh to subtree llh. Assumes delta_min and lam are the same for both a_node and b_node
def dmGt(YKHO, x0oK, ZPxQ): cO4Q = 0 eAs5 = 0 cO4Q = YKHO.momentum[x0oK][0] ** 2 - oyIN.linalg.norm(YKHO.momentum[x0oK][1:]) ** 2 eAs5 = YKHO.momentum[ZPxQ][0] ** 2 - oyIN.linalg.norm(YKHO.momentum[ZPxQ][1:]) ** 2 G9jH.debug(f' t_l ={cO4Q}') G9jH.debug(f' t_R ={eAs5}') G9jH.debug(f' p_l ={YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pI_d(YKHO, Q6kx):\n Q6kx.value = -YKHO.shrinkage * Q6kx.sum_gradients / (Q6kx.sum_hessians + YKHO.splitter.l2_regularization)\n YKHO.finalized_leaves.append(Q6kx)", "def VBQp(YKHO, Q6kx):\n Q6kx.split_info = YKHO.splitter.find_node_split(Q6kx.sample_indices, Q6kx.histograms, Q6kx.sum_gradients, Q6kx...
[ "0.55932456", "0.55510145", "0.54642284", "0.5366041", "0.5326848", "0.5302723", "0.5289726", "0.51891357", "0.51791817", "0.5175469", "0.5147306", "0.5121746", "0.5092955", "0.5072795", "0.50273865", "0.50056016", "0.49869534", "0.49738866", "0.49672574", "0.49655488", "0.49...
0.48502734
34
Return the given string as a native string in the given encoding.
def i9jF(exwG, tZ2K='ISO-8859-1'): if isinstance(exwG, jKi7.text_type): return exwG.encode(tZ2K) return exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rnOh(vIwR, tZ2K='ascii'):\n if isinstance(vIwR, str):\n yvT9 = vIwR\n else:\n yvT9 = vIwR.decode(tZ2K)\n return yvT9", "def HkMn(KCHu, tZ2K='latin-1', UAju='strict'):\n if isinstance(KCHu, g9qP):\n return KCHu.encode(tZ2K, UAju)\n return str(KCHu)", "def HkMn(KCHu, tZ2K=...
[ "0.8789175", "0.79968244", "0.7674134", "0.7387134", "0.7373827", "0.72284156", "0.7190662", "0.7112319", "0.7099836", "0.70713055", "0.6986353", "0.6885627", "0.6806217", "0.66796917", "0.66330653", "0.6579638", "0.65549314", "0.6536207", "0.6463338", "0.6441715", "0.6439027...
0.6085863
44
Shutdown connection and socket.
def hqgk(YKHO): YKHO.factory.reactor.removeReader(YKHO) YKHO.factory.connections.discard(YKHO) YKHO.socket.close() YKHO.socket = None YKHO.factory = None if YKHO.read_scheduled is not None: YKHO.read_scheduled.cancel() YKHO.read_scheduled = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hqgk(YKHO):\n YKHO.sock.close()", "def hqgk(YKHO):\n YKHO.socket.close()\n YKHO.socket_state.close()", "def hqgk(YKHO):\n YKHO.connected = False\n YKHO.protocol.send_message(YKHO.sock, '__!shutdown__')\n nPrm = YKHO.protocol.recover_message(YKHO.sock)\n YKHO.sock.close()\n YKHO.sock...
[ "0.8116628", "0.8094799", "0.8060814", "0.79759955", "0.78641194", "0.7841892", "0.7702921", "0.7702643", "0.7657929", "0.7616718", "0.7593503", "0.749319", "0.74762684", "0.7362442", "0.7351249", "0.73482984", "0.7346527", "0.73362386", "0.7329469", "0.73156035", "0.73146766...
0.6914994
69
returns an instance for tracking max value
def max(): return r0hN(int.__lt__)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qfB5(YKHO):\n raise NotImplementedError('This is an abstract method and needs to be implemented in derived classes.')", "def ZWqN(YKHO):\n return YKHO._maximum", "def qQji(YKHO, object):\n return YKHO.maximum", "def YClg(YKHO):\n if hasattr(YKHO, '_maximum_value'):\n return YKHO._maxim...
[ "0.801089", "0.79525405", "0.78954244", "0.7758301", "0.7726418", "0.76395977", "0.762583", "0.7622539", "0.76116127", "0.7597168", "0.75255555", "0.74806607", "0.74806607", "0.7441403", "0.7303434", "0.7303434", "0.7265719", "0.7265719", "0.7265719", "0.7265719", "0.7265719"...
0.6979214
35
Convert an image from LAB color space to XYZ color space
def qFds(LNo8: tf.Tensor) -> ZylS.Tensor: vC9B, jzdc, Fg_i = ZylS.unstack(LNo8, axis=-1) DIi8 = (vC9B + 16) / 116 w7_P = jzdc / 500 + DIi8 p9ny = DIi8 - Fg_i / 200 w7_P = ZylS.where(ZylS.pow(w7_P, 3) > 0.008856, ZylS.pow(w7_P, 3), (w7_P - 16 / 116) / 7.787) DIi8 = ZylS.where(ZylS.pow(DIi8, 3) > ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ut4u(J3tW, *qIxc, **B2fa):\n l5i_ = J3tW.get_illuminant_xyz()\n aiVP = (J3tW.lab_l + 16.0) / 116.0\n mvR3 = J3tW.lab_a / 500.0 + aiVP\n qCCG = aiVP - J3tW.lab_b / 200.0\n if epAf.pow(aiVP, 3) > Xysb.CIE_E:\n aiVP = epAf.pow(aiVP, 3)\n else:\n aiVP = (aiVP - 16.0 / 116.0) / 7.787...
[ "0.72538626", "0.6935359", "0.6835545", "0.6804529", "0.6711759", "0.66599464", "0.6521106", "0.64231324", "0.6351376", "0.63161516", "0.62939584", "0.62429935", "0.6191677", "0.6155172", "0.6133433", "0.60679656", "0.605217", "0.600619", "0.6003839", "0.5994653", "0.5972754"...
0.72095025
1