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
String representation of HashMap
def zAg0(YKHO) -> str: return 'scapacity of hash: {}, current size of hash: {}'.format(YKHO.capacity, YKHO.length)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n Ylbp = '{'\n for G1Hx in YKHO.keys():\n Ylbp += \" '\" + str(G1Hx) + \"':\" + str(YKHO[G1Hx]) + ','\n Ylbp = Ylbp[:-1] + ' }'\n return Ylbp", "def Rekt(YKHO) -> str:\n kcsq = []\n for H5ew, BWXx in YKHO.__dict__.items():\n if isinstance(BWXx, dict):\n ...
[ "0.73969597", "0.7382804", "0.73118407", "0.72339815", "0.71007025", "0.7078618", "0.7071905", "0.70162076", "0.6926971", "0.6917885", "0.6871455", "0.6868821", "0.68683535", "0.6868242", "0.6849327", "0.6827283", "0.6805755", "0.67866665", "0.6743823", "0.6734863", "0.672186...
0.0
-1
String representation of HashMap
def wHJl(YKHO) -> str: return 'capacity of hash: {}, current size of hash: {}'.format(YKHO.capacity, YKHO.length)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n Ylbp = '{'\n for G1Hx in YKHO.keys():\n Ylbp += \" '\" + str(G1Hx) + \"':\" + str(YKHO[G1Hx]) + ','\n Ylbp = Ylbp[:-1] + ' }'\n return Ylbp", "def Rekt(YKHO) -> str:\n kcsq = []\n for H5ew, BWXx in YKHO.__dict__.items():\n if isinstance(BWXx, dict):\n ...
[ "0.73969597", "0.7382804", "0.73118407", "0.72339815", "0.71007025", "0.7078618", "0.7071905", "0.70162076", "0.6926971", "0.6917885", "0.6871455", "0.6868821", "0.68683535", "0.6868242", "0.6849327", "0.6827283", "0.6805755", "0.67866665", "0.6743823", "0.6734863", "0.672186...
0.0
-1
Returns the unitary for this gate, see Unitary for more info.
def Tv3c(YKHO, NArs: Sequence[float]=[]) -> RPD1: YKHO.check_parameters(NArs) C7Ls = uYbU(NArs, YKHO.sigmav) rqDF = H4yH.linalg.expm(C7Ls) return RPD1(rqDF, check_arguments=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tv3c(YKHO, NArs: Sequence[float]=[]) -> RPD1:\n YKHO.check_parameters(NArs)\n if hasattr(YKHO, 'utry'):\n return YKHO.utry\n return YKHO.gate.get_unitary(NArs)", "def B73r(YKHO):\n return YKHO.unit", "def PXGI(YKHO):\n return YKHO._unit", "def PXGI(YKHO):\n return YKHO.__unit", ...
[ "0.73084533", "0.6853074", "0.6796897", "0.6787496", "0.67088467", "0.67088467", "0.64119154", "0.6364377", "0.63519824", "0.63118136", "0.63069683", "0.6300979", "0.62563705", "0.62363553", "0.62363553", "0.62363553", "0.62363553", "0.62363553", "0.62363553", "0.62363553", "...
0.0
-1
Returns the gradient for this gate, see Gate for more info.
def iDW5(YKHO, NArs: Sequence[float]=[]) -> oyIN.ndarray: YKHO.check_parameters(NArs) C7Ls = uYbU(NArs, YKHO.sigmav) bGrB, wD7x = Xiot(C7Ls, YKHO.sigmav) return wD7x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Plpn(YKHO):\n if YKHO._gradient is not None:\n return YKHO._gradient\n ICX2 = bWeC.flatten(bWeC.grads_of(YKHO._model.parameters()))\n YKHO._gradient = ICX2\n return ICX2", "def iDW5(YKHO):\n return YKHO._get_grad", "def Ro40(YKHO):\n return YKHO._grad", "def ICX2(YKHO):\n Aofo...
[ "0.8085759", "0.80038965", "0.77770317", "0.77462053", "0.77197397", "0.76745313", "0.7669742", "0.7668911", "0.75381553", "0.7504617", "0.74778986", "0.74767464", "0.7301407", "0.7287206", "0.7258881", "0.7254634", "0.71921414", "0.71770763", "0.71519166", "0.71435493", "0.7...
0.0
-1
Another moving average function. _i = sum_j=k^k x_i+j
def ZCKv(WKvO, WEZm=11): MBJx = 1.0 / float(WEZm) KnxT = oyIN.ones(WEZm) * MBJx Aofo = oyIN.convolve(WKvO, KnxT, 'valid') return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCKv(nPrm, UqYS):\n qqgr = 0\n Z5_B = []\n for YRbF in range(len(nPrm)):\n qqgr = qqgr * UqYS + (1 - UqYS) * nPrm[YRbF]\n Z5_B.append(qqgr / (1 - UqYS ** (YRbF + 1)))\n return Z5_B", "def ZCKv(jzdc, exwG=3):\n U5bT = oyIN.cumsum(jzdc, dtype=float)\n U5bT[exwG:] = U5bT[exwG:] -...
[ "0.71843755", "0.716615", "0.7143164", "0.7132354", "0.71248853", "0.70662874", "0.7041034", "0.70031595", "0.69867367", "0.69572216", "0.6957015", "0.6807443", "0.6807205", "0.6796927", "0.6651025", "0.66394615", "0.6610586", "0.6545233", "0.6524394", "0.6446204", "0.6386004...
0.6997602
8
Iterator to return one record at a time. Assigns payload and device metadata to the instance of SensorKitProtoFile
def ZAda(YKHO): nPrm = open(YKHO.data_file_path, 'rb') sayi = globals()['ProtoDefinition'].Payload() sayi.ParseFromString(nPrm.read()) YKHO.payload_metadata = sayi.payloadMetadata YKHO.device = sayi.device NSNj = [] for kULu in sayi.DESCRIPTOR.fields: vXX7 = kULu.name if kULu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TdDX(YKHO):\n wOb_ = YKHO.stream\n Tmbp = YKHO._sync_marker\n xfKA = YKHO.writer_schema\n n22K = YKHO.reader_schema\n if YKHO.codec == 'deflate':\n QjAC = t84C\n elif YKHO.codec == 'snappy':\n QjAC = b7tK\n else:\n QjAC = Tp5Y\n EiDN = aKaX()\n try:\n whil...
[ "0.6672943", "0.6447087", "0.6186513", "0.6181375", "0.6179146", "0.6148484", "0.60548794", "0.5995896", "0.587418", "0.58472407", "0.582769", "0.58241385", "0.5822537", "0.58175874", "0.58102715", "0.57757586", "0.5767108", "0.57566285", "0.574908", "0.573971", "0.5732266", ...
0.7334093
0
Create vector of spatial ycoordinate
def eXrR(YKHO): if YKHO.oy != 0: J9et = YKHO.oy iB6t = YKHO.self.ly + YKHO.oy else: J9et = YKHO.dy / 2 iB6t = YKHO.ly yqRF = '' for mLGw in oyIN.arange(J9et, iB6t, YKHO.dy): yqRF += str(mLGw) + ' ' return yqRF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bmPF(YKHO):\n return YKHO.y0 + oyIN.arange(YKHO.ny) * YKHO.dy", "def LVAh(YKHO):\n return YKHO.coords[1]", "def LVAh(YKHO):\n return YKHO._coords[1]", "def NqgO(YKHO):\n return YKHO._yvec", "def LVAh(YKHO) -> _ABP.FloatingValue:\n return IPme.GeoY(YKHO).to_expr()", "def yDCK(YKHO):\n ...
[ "0.7333083", "0.71942174", "0.7127296", "0.71029323", "0.69317174", "0.68536824", "0.68213683", "0.6779995", "0.6748052", "0.6704327", "0.6672681", "0.66487724", "0.6632838", "0.6632782", "0.66326797", "0.6626961", "0.6621542", "0.6605102", "0.6605102", "0.6605102", "0.660510...
0.7214166
1
Create a meshgrid representation of the grid
def gjNn(YKHO, QyVM='ij'): MZBS, yqRF, Q8CA = YKHO.vec() pR0J, kEOn, CCvT = oyIN.meshgrid(MZBS, yqRF, Q8CA, indexing=QyVM) return (pR0J, kEOn, CCvT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0O3(YKHO, jHsn, pvd3):\n XO4T = oyIN.arange(jHsn)\n Pyi2 = oyIN.arange(pvd3)\n yqRF, MZBS = oyIN.meshgrid(Pyi2, XO4T)\n Cs6h = oyIN.stack((yqRF, MZBS), axis=2)\n Cs6h = Cs6h.reshape(1, 1, pvd3, jHsn, 2)\n return Cs6h", "def rLO4(YKHO):\n WKvO = oyIN.linspace(YKHO.limits[0], YKHO.limits[...
[ "0.80851996", "0.79244447", "0.76786584", "0.76786584", "0.7657271", "0.7527732", "0.74811447", "0.7475076", "0.7420758", "0.74013096", "0.74013096", "0.736971", "0.7350516", "0.7346512", "0.73272777", "0.7322336", "0.7318078", "0.7318078", "0.7318078", "0.7318078", "0.723785...
0.6328292
76
Create a 2D meshgrid representation of the grid
def ZKpL(YKHO, QyVM='ij'): MZBS, yqRF, bGrB = YKHO.vec() pR0J, kEOn = oyIN.meshgrid(MZBS, yqRF, indexing=QyVM) return (pR0J, kEOn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0O3(YKHO, jHsn, pvd3):\n XO4T = oyIN.arange(jHsn)\n Pyi2 = oyIN.arange(pvd3)\n yqRF, MZBS = oyIN.meshgrid(Pyi2, XO4T)\n Cs6h = oyIN.stack((yqRF, MZBS), axis=2)\n Cs6h = Cs6h.reshape(1, 1, pvd3, jHsn, 2)\n return Cs6h", "def rLO4(YKHO):\n WKvO = oyIN.linspace(YKHO.limits[0], YKHO.limits[...
[ "0.8363773", "0.79592085", "0.77074903", "0.77074903", "0.76912636", "0.76912636", "0.7661321", "0.76565844", "0.7617566", "0.7603872", "0.76033956", "0.76033956", "0.76033956", "0.76033956", "0.7569078", "0.75537515", "0.7510543", "0.7491267", "0.74287635", "0.74131", "0.739...
0.6514651
55
Get x,y coordinates in a tuple
def BUQp(YKHO): fj5T, fRsR = YKHO.meshup2d() jNOo = oyIN.column_stack((fj5T.flatten(), fRsR.flatten())) return jNOo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0Eb(YKHO) -> AzJI[int, int]:\n return (YKHO.x, YKHO.y)", "def M_DK(YKHO) -> AzJI[float, float]:\n return (YKHO.x, YKHO.y)", "def M_DK(YKHO) -> AzJI[int, int]:\n return (YKHO._x, YKHO._y)", "def NMoC(YKHO):\n return (YKHO.x, YKHO.y)", "def W0Eb(YKHO) -> AzJI[float, float, float, float, floa...
[ "0.8051869", "0.80070484", "0.7868651", "0.7785271", "0.77273345", "0.75921357", "0.7576082", "0.75237995", "0.75237995", "0.74783134", "0.7463815", "0.7435307", "0.74250096", "0.73297495", "0.73278373", "0.73105294", "0.7269016", "0.72689795", "0.7261552", "0.724623", "0.721...
0.0
-1
Return the elapsed time taken to complete the trial.
def WbTE(YKHO): if YKHO.datetime_start and YKHO.datetime_complete: return YKHO.datetime_complete - YKHO.datetime_start else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g3G6(YKHO) -> float:\n return YKHO.time_stop - YKHO.time_start", "def N8Pq():\n global start_time\n return ITS7.time() - SWox", "def N8Pq(YKHO):\n return qcWV.datetime.now() - YKHO.start", "def JRmW(YKHO) -> float:\n vHj7 = qcWV.utcnow()\n yKcO = YKHO.start_time or vHj7\n Os4s = YKHO...
[ "0.76456666", "0.752926", "0.74266106", "0.7425949", "0.7407271", "0.73942703", "0.7316452", "0.7281836", "0.7265075", "0.72546345", "0.7215146", "0.72078353", "0.7193335", "0.71842283", "0.71714514", "0.7166046", "0.714372", "0.7141995", "0.71389806", "0.7117587", "0.7096246...
0.0
-1
Add a vertex to the graph.
def ohmD(YKHO, oqUi): YKHO.vertices[oqUi] = set()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n raise NotImplementedError", "def ohmD(YKHO, SLBp):\n if isinstance(SLBp, Yegm):\n YKHO.vertices.append(SLBp)\n return\n raise TypeError('Is not vertex instance!')", "def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[rJkO.name] = rJkO", "def ohmD(Y...
[ "0.87015903", "0.84329987", "0.8422056", "0.840923", "0.83646226", "0.8317027", "0.825337", "0.808519", "0.8081489", "0.8038682", "0.8035422", "0.78834563", "0.78711975", "0.7838118", "0.7838118", "0.77608305", "0.7757061", "0.77158874", "0.7711681", "0.76663774", "0.76616603...
0.7310487
35
Get all neighbors (edges) of a vertex.
def BTfj(YKHO, oqUi): if oqUi in YKHO.vertices: return YKHO.vertices[oqUi] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3gy(YKHO, SLBp):\n return list(YKHO.neighbor_in_iterator(SLBp))", "def YHRb(YKHO, SLBp):\n return list(YKHO.neighbor_out_iterator(SLBp))", "def qIRx(YKHO, SLBp):\n hlel = []\n if SLBp in YKHO.adjacency_list:\n for _Wdu in YKHO.adjacency_list[SLBp]:\n hlel.append([_Wdu.vertex....
[ "0.8147006", "0.78279907", "0.7812863", "0.7635039", "0.76201296", "0.7560235", "0.7391392", "0.7360321", "0.7331741", "0.7293987", "0.7293987", "0.7293987", "0.7293987", "0.7293987", "0.7293987", "0.7280387", "0.7163595", "0.7129881", "0.7085101", "0.7077671", "0.7035337", ...
0.64617395
52
Routes add_user_to_team request to ApplicationFacade of another user (to_manager)
def Rc04(YKHO, t1hT, fB4j): t1hT = mv1M.get_user_by_username(t1hT) p_z1 = mv1M.get_user_by_username(fB4j) YKHO.access_handler.check_add_user_to_team(t1hT, p_z1) p_z1.add_user_to_team(t1hT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLpx(n5lq, b2mu, uJjO):\n dZPi = r2Kd.query.get(b2mu)\n if dZPi is None:\n eTsH(404, 'team not found')\n if not (n5lq.has_permission('team.update.elevated') or (n5lq.has_permission('team.update') and dZPi.has_member(n5lq))):\n eTsH(403, 'insufficient permissions to add user to team')\n ...
[ "0.6874511", "0.677191", "0.6640521", "0.6562554", "0.6454202", "0.62877584", "0.61561483", "0.6138414", "0.6021417", "0.6015747", "0.5984722", "0.59716547", "0.59436655", "0.5843997", "0.5733098", "0.5713306", "0.5691408", "0.569047", "0.56469405", "0.550362", "0.5469829", ...
0.7722358
0
Bottleneck block for ResNet. If style is "pytorch", the stridetwo layer is the 3x3 conv layer, if it is "caffe", the stridetwo layer is the first 1x1 conv layer.
def FIMM(YKHO, hhGw, vRTu, _0fC=1, ivFb=1, myXy=None, _Cnz='pytorch', Ytun=False, lKGj=None, yfP4=dict(type='BN')): super(MF6R, YKHO).__init__() assert _Cnz in ['pytorch', 'caffe'] YKHO.inplanes = hhGw YKHO.planes = vRTu YKHO.stride = _0fC YKHO.dilation = ivFb YKHO.style = _Cnz YKHO.with...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RzcG(YKHO, g4y1, rb7a, MLcA, _0fC, mVUw=1, Bf31=None, rrBf=None):\n with jj4W.variable_scope(rrBf, 'bottleneck_v1', [g4y1]) as Sa_m:\n V2ar = BfDw.last_dimension(g4y1.get_shape(), min_rank=4)\n if rb7a == V2ar:\n PWHU = REBh.subsample(g4y1, _0fC, 'shortcut')\n else:\n ...
[ "0.7055745", "0.6868894", "0.6774563", "0.6602584", "0.64642286", "0.6374515", "0.62850827", "0.62419933", "0.61871433", "0.6150485", "0.6127702", "0.6127702", "0.60869473", "0.60658646", "0.6005607", "0.5982693", "0.59697086", "0.5961271", "0.5958031", "0.5958031", "0.595707...
0.6639166
3
Initialize the weights in backbone.
def vB93(YKHO, mL4f=None): if isinstance(mL4f, str): bo34 = UKxV() Nh79(YKHO, mL4f, strict=False, logger=bo34) elif mL4f is None: for r8hN in YKHO.modules(): if isinstance(r8hN, U78l.Conv2d): knri(r8hN) elif isinstance(r8hN, (_bh1, U78l.GroupNorm))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def C0Lv(YKHO):\n pass", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def vJuA(YKHO):\n raise NotImplementedError", "def vB93(C3ST):\n ...", "def Y7Gu(YKHO, _mSQ):\n YKHO.init_w = _mSQ", "def sTi3(YKHO...
[ "0.83809745", "0.83567804", "0.8318618", "0.80969334", "0.79236996", "0.79064524", "0.78415686", "0.76821744", "0.76756763", "0.7579746", "0.7504763", "0.75038546", "0.75038546", "0.75038546", "0.74933714", "0.7491974", "0.7485691", "0.7437889", "0.74249136", "0.7403326", "0....
0.0
-1
Computes the total number of holidays between the start and end dates
def ljVX(yKcO, Os4s): WYiC = {'new year holiday:': (1, 1), 'labor day holiday:': (5, 1), 'all saints day holiday:': (11, 1), 'christmas holiday:': (12, 25)} gd2z = {FPM2: 0 for FPM2 in WYiC.keys()} for FPM2 in WYiC.keys(): Hh3t = yKcO.year if (yKcO - qcWV.date(yKcO.year, *WYiC[FPM2])).days >...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usV8(yKcO, Os4s):\n return owAp(yKcO, Os4s) - ljVX(yKcO, Os4s)['total holidays:']", "def Klka(yKcO: date, Os4s: date) -> int:\n RA_F = Os4s - yKcO\n return RA_F.days + 1", "def MiJS(YKHO, kepv, KhBf, rhBO=[], l_9u=[5, 6]):\n Bmup = (KhBf - kepv).days + 1\n Q1vT, J38G = divmod(Bmup, 7)\n d...
[ "0.7925853", "0.72534883", "0.71697754", "0.71389604", "0.7121654", "0.6976317", "0.6880273", "0.68517286", "0.67994386", "0.66162187", "0.6600932", "0.6599427", "0.65229666", "0.64709324", "0.6416626", "0.64138246", "0.6283126", "0.62713355", "0.6221902", "0.617465", "0.6167...
0.81252795
0
Control whether mosek should wait for an available license if no license is available. putlicensewait(self,licwait_)
def smyx(YKHO, Qxwg): Ylbp = YKHO.__obj.putlicensewait(Qxwg) if Ylbp != 0: raise xxyF(piss(Ylbp), '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def smyx(YKHO, Qxwg):\n Ylbp = TW1v.MSK_XX_putlicensewait(YKHO.__nativep, Qxwg)\n if Ylbp != 0:\n raise xxyF(piss(Ylbp), Otor.getcodedesc(piss(Ylbp))[1])", "def lUm6():\n tO9_, jGRS = ('', True)\n try:\n N5MO(5)\n if Oa1e.platform == 'android':\n N5MO(3)\n '...
[ "0.8430193", "0.6124477", "0.6124088", "0.5969026", "0.59399414", "0.585453", "0.58310574", "0.5819503", "0.5743812", "0.57230073", "0.5673114", "0.5649755", "0.56356895", "0.5599235", "0.5545542", "0.5537507", "0.55170566", "0.5481851", "0.54529166", "0.54420036", "0.5417914...
0.86069447
0
Computes the inner product of two vectors. dot(self,n_,x,y)
def BJ1H(YKHO, xVVI, WKvO, LVAh): if WKvO is None: raise TypeError('Invalid type for argument x') if WKvO is None: A3mO = None else: try: A3mO = memoryview(WKvO) except TypeError: try: cEdl = qw7D.array('d', WKvO) except Typ...
{ "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.78908086", "0.7703501", "0.75874764", "0.7541884", "0.75255686", "0.7520059", "0.74970186", "0.7487115", "0.74395573", "0.74240917", "0.73870796", "0.7380625", "0.73609656", "0.73484606", "0.73424864", "0.72776973", "0.7258741", "0.72530854", "0.7223078", "0.7221579", "0.7...
0.72610885
16
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, jzdc, Pu26, Z9rn): if not isinstance(RtY1, iA7y): raise TypeError('Argument uplo has wrong type') if not isinstance(PiLl, l7uB): raise TypeError('Argument trans has wrong type') if jzdc is None: raise TypeError('Invalid type for argument a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TPlA(YKHO, RtY1, PiLl, xVVI, xPYE, mbX2, NRKk, Pu26, ZOT4):\n hQBj = xVVI * xPYE\n if xVVI * xPYE > 0 and NRKk is not None and (len(NRKk) != xVVI * xPYE):\n raise ValueError('Array argument a is not long enough: Is %d, expected %d' % (len(NRKk), xVVI * xPYE))\n if NRKk is None:\n raise V...
[ "0.67712295", "0.5318383", "0.52853566", "0.5274425", "0.5195702", "0.5142933", "0.51365656", "0.50324565", "0.502728", "0.502728", "0.50243443", "0.5021619", "0.495693", "0.49485558", "0.48802036", "0.4866401", "0.48614314", "0.4860556", "0.4807733", "0.48001644", "0.4781496...
0.7794454
0
Changes the bounds for one constraint. chgconbound(self,i_,lower_,finite_,value_)
def dYmx(YKHO, WzQg, vqYq, UdZj, Q4D5): Ylbp = YKHO.__obj.chgconbound(WzQg, vqYq, UdZj, Q4D5) if Ylbp != 0: Aofo, 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 = TW1v.MSK_XX_chgconbound(YKHO.__nativep, WzQg, vqYq, UdZj, Q4D5)\n if Ylbp != 0:\n bGrB, 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 ...
[ "0.87962055", "0.7915556", "0.7374655", "0.7193188", "0.6016495", "0.6003055", "0.5817122", "0.5724581", "0.57071257", "0.5674716", "0.56427246", "0.56145924", "0.5549266", "0.55412686", "0.5538162", "0.55004245", "0.5479595", "0.5465985", "0.54559875", "0.5438169", "0.543770...
0.9179632
0
Obtains all objective coefficients. getc(self,c)
def aS53(YKHO, Z9rn): kqGi = False if Z9rn is None: ZOT4 = None else: try: ZOT4 = memoryview(Z9rn) except TypeError: try: sJtm = qw7D.array('d', Z9rn) except TypeError: raise TypeError('Argument c has wrong type') ...
{ "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._coefficients", "def FN88(YKHO):\n return YKHO._coefficients", "def FN88(YKHO):\n return YKHO.coef_['x']", "def MyUP(YKHO):\n return YKHO.coefficients", "def My...
[ "0.66709536", "0.6564794", "0.6501379", "0.6501379", "0.6479863", "0.638523", "0.638523", "0.6315886", "0.6307558", "0.6105121", "0.6091317", "0.60873526", "0.60698646", "0.5979509", "0.59356976", "0.5863073", "0.5787421", "0.5751444", "0.57505965", "0.5711324", "0.5706123", ...
0.542105
34
Obtains the fixed term in the objective. getcfix(self)
def LVHK(YKHO): Ylbp, vfD5 = YKHO.__obj.getcfix() if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) hi83 = vfD5 return hi83
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVHK(YKHO):\n ItUv = gk2W.c_double()\n Ylbp = TW1v.MSK_XX_getcfix(YKHO.__nativep, gk2W.byref(ItUv))\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n ItUv = ItUv.value\n hi83 = ItUv\n return hi83", "def _f9X(YKHO):\n return YKHO.lEq",...
[ "0.72392535", "0.69383645", "0.6180273", "0.61721146", "0.6119554", "0.61034906", "0.60181254", "0.590948", "0.58965456", "0.5892888", "0.5847018", "0.58357286", "0.57893103", "0.57264996", "0.57217616", "0.5684293", "0.5644139", "0.56363136", "0.56273365", "0.56273365", "0.5...
0.71006364
1
Obtains the maximum number variables allowed. getmaxnumvar(self)
def wJCR(YKHO): Ylbp, vfD5 = YKHO.__obj.getmaxnumvar() if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) buFy = vfD5 return buFy
{ "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 yOq9 = gk2W.c_int32()\n Ylbp = TW1v.MSK_XX_getmaxnumvar(YKHO.__nativep, gk2W.byref(y...
[ "0.8638552", "0.8318876", "0.7975339", "0.75058955", "0.7293481", "0.71520394", "0.71520394", "0.7027731", "0.6982515", "0.69716805", "0.69318897", "0.6927233", "0.6925119", "0.6925119", "0.6882538", "0.68813956", "0.68506175", "0.68492895", "0.6819296", "0.67849064", "0.6708...
0.9134594
0
Obtains the name of a semidefinite variable. getbarvarname(self,i_)
def cd0C(YKHO, WzQg): k4lq = 1 + YKHO.getbarvarnamelen(WzQg) CLqe = qw7D.array('b', [0] * k4lq) Vgd2 = memoryview(CLqe) Ylbp, vfD5 = YKHO.__obj.getbarvarname(WzQg, k4lq, Vgd2) if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) gKq4 = vfD5 gKq4 =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cd0C(YKHO, WzQg):\n k4lq = 1 + YKHO.getbarvarnamelen(WzQg)\n LO7q = (gk2W.c_char * k4lq)()\n Ylbp = TW1v.MSK_XX_getbarvarname(YKHO.__nativep, WzQg, k4lq, LO7q)\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n cBJA = LO7q.value.decode('utf-8'...
[ "0.83124495", "0.70636773", "0.7021346", "0.6814069", "0.6768735", "0.6749503", "0.6696013", "0.6655233", "0.6600145", "0.65645903", "0.65538573", "0.65234154", "0.634015", "0.61727566", "0.6150951", "0.6128864", "0.597935", "0.5966808", "0.5926254", "0.5901665", "0.5890842",...
0.83518904
0
Sets the name of a constraint. putconname(self,i_,name_)
def g4YJ(YKHO, WzQg, LO7q): Ylbp = YKHO.__obj.putconname(WzQg, LO7q) if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g4YJ(YKHO, WzQg, LO7q):\n if isinstance(LO7q, QMSQ):\n LO7q = LO7q.encode('utf-8', errors='replace')\n Ylbp = TW1v.MSK_XX_putconname(YKHO.__nativep, WzQg, LO7q)\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def XRc5(YKHO, FijD, LO7q):...
[ "0.7829545", "0.7109529", "0.66708755", "0.66558343", "0.65581566", "0.6500634", "0.64994293", "0.6485172", "0.6476038", "0.6476038", "0.64725053", "0.64725053", "0.64725053", "0.64725053", "0.64725053", "0.64380765", "0.64380765", "0.6426416", "0.6426416", "0.6426416", "0.64...
0.8193527
0
Sets the name of a variable. putvarname(self,j_,name_)
def _Ciu(YKHO, FijD, LO7q): Ylbp = YKHO.__obj.putvarname(FijD, LO7q) if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Ciu(YKHO, FijD, LO7q):\n if isinstance(LO7q, QMSQ):\n LO7q = LO7q.encode('utf-8', errors='replace')\n Ylbp = TW1v.MSK_XX_putvarname(YKHO.__nativep, FijD, LO7q)\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def YFgN(YKHO, FijD, LO7q):...
[ "0.84260845", "0.7847339", "0.75843376", "0.7371363", "0.6805376", "0.6749658", "0.67184365", "0.6677941", "0.6664005", "0.6604637", "0.6604637", "0.65338516", "0.65015674", "0.65015674", "0.64961225", "0.6457167", "0.6457167", "0.6421323", "0.64125746", "0.6411722", "0.63882...
0.8884831
0
Sets the name of a cone. putconename(self,j_,name_)
def XRc5(YKHO, FijD, LO7q): Ylbp = YKHO.__obj.putconename(FijD, LO7q) if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XRc5(YKHO, FijD, LO7q):\n if isinstance(LO7q, QMSQ):\n LO7q = LO7q.encode('utf-8', errors='replace')\n Ylbp = TW1v.MSK_XX_putconename(YKHO.__nativep, FijD, LO7q)\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def g4YJ(YKHO, WzQg, LO7q)...
[ "0.7865969", "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.8515966
0
Sets the name of a semidefinite variable. putbarvarname(self,j_,name_)
def YFgN(YKHO, FijD, LO7q): Ylbp = YKHO.__obj.putbarvarname(FijD, LO7q) if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YFgN(YKHO, FijD, LO7q):\n if isinstance(LO7q, QMSQ):\n LO7q = LO7q.encode('utf-8', errors='replace')\n Ylbp = TW1v.MSK_XX_putbarvarname(YKHO.__nativep, FijD, LO7q)\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def _Ciu(YKHO, FijD, LO7...
[ "0.83027333", "0.7868955", "0.7379362", "0.63194853", "0.6231179", "0.61827314", "0.6176594", "0.607982", "0.607798", "0.60263175", "0.5947799", "0.59326524", "0.5837751", "0.5830235", "0.5815705", "0.574492", "0.57225835", "0.57101053", "0.570889", "0.570889", "0.56842077", ...
0.8724992
0
Obtains the number of cones. getnumcone(self)
def cHyg(YKHO): Ylbp, vfD5 = YKHO.__obj.getnumcone() if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) tkAY = vfD5 return tkAY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nvFs(YKHO):\n return YKHO._shape_count(YNXW.cone)", "def cHyg(YKHO):\n S4mS = gk2W.c_int32()\n Ylbp = TW1v.MSK_XX_getnumcone(YKHO.__nativep, gk2W.byref(S4mS))\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n S4mS = S4mS.value\n tkAY = S...
[ "0.81962085", "0.8135336", "0.75427234", "0.74378294", "0.69177985", "0.67452365", "0.67098516", "0.6589998", "0.65676737", "0.6466872", "0.64434046", "0.6414762", "0.63785934", "0.6378523", "0.63385296", "0.6297581", "0.62972945", "0.6237324", "0.6213397", "0.6148255", "0.61...
0.9106109
0
Obtains the number of members in a cone. getnumconemem(self,k_)
def l5bE(YKHO, xPYE): Ylbp, vfD5 = YKHO.__obj.getnumconemem(xPYE) if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) t78I = vfD5 return t78I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5bE(YKHO, xPYE):\n Wk_J = gk2W.c_int32()\n Ylbp = TW1v.MSK_XX_getnumconemem(YKHO.__nativep, xPYE, gk2W.byref(Wk_J))\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n Wk_J = Wk_J.value\n t78I = Wk_J\n return t78I", "def ZgZo(YKHO, xPYE):...
[ "0.7930638", "0.6547216", "0.6333205", "0.6301713", "0.62568665", "0.60509694", "0.6046145", "0.60436803", "0.6009492", "0.60091627", "0.5991287", "0.59608996", "0.5905592", "0.58840805", "0.58747464", "0.5874404", "0.58710396", "0.58700097", "0.58524823", "0.58503115", "0.58...
0.87194437
0
Obtains maximum number of symmetric matrix variables for which space is currently preallocated. getmaxnumbarvar(self)
def scYR(YKHO): Ylbp, vfD5 = YKHO.__obj.getmaxnumbarvar() if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) cWoF = vfD5 return cWoF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def scYR(YKHO):\n Kko7 = gk2W.c_int32()\n Ylbp = TW1v.MSK_XX_getmaxnumbarvar(YKHO.__nativep, gk2W.byref(Kko7))\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n Kko7 = Kko7.value\n cWoF = Kko7\n return cWoF", "def wJCR(YKHO):\n Ylbp, vfD5...
[ "0.7974102", "0.7626193", "0.7177821", "0.71738005", "0.6899728", "0.6754429", "0.6753096", "0.660486", "0.6596178", "0.65558964", "0.64927113", "0.64927113", "0.6441858", "0.63781196", "0.63643104", "0.63464445", "0.63263625", "0.6322328", "0.62782854", "0.62308466", "0.6208...
0.83529484
0
Obtains the problem type. getprobtype(self)
def fqCX(YKHO): Ylbp, vfD5 = YKHO.__obj.getprobtype() if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) qNxy = vfD5 qNxy = Shhd(qNxy) return qNxy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def krYj(YKHO):\n return YKHO.prob_type", "def krYj(YKHO):\n return YKHO.prob_type", "def krYj(YKHO):\n return YKHO.prob_type", "def krYj(YKHO):\n return YKHO.prob_type", "def krYj(YKHO):\n return YKHO.prob_type", "def fqCX(YKHO):\n fzT3 = gk2W.c_int32()\n Ylbp = TW1v.MSK_XX_getprobt...
[ "0.85797167", "0.85797167", "0.85797167", "0.85797167", "0.85797167", "0.81917536", "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.61671...
0.9006907
0
Obtains the status keys for the scalar variables. getskx(self,whichsol_,skx)
def wB3_(YKHO, QVZg, wg3y): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') k9O9 = False if wg3y is None: s9Dc = None else: try: s9Dc = memoryview(wg3y) except TypeError: try: tx5Y = qw7D.array('i'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wB3_(YKHO, QVZg, s9Dc):\n x1hT = YKHO.getnumvar()\n if YKHO.getnumvar() > 0 and s9Dc is not None and (len(s9Dc) != YKHO.getnumvar()):\n raise ValueError('Array argument skx is not long enough: Is %d, expected %d' % (len(s9Dc), YKHO.getnumvar()))\n if isinstance(s9Dc, XTiz.ndarray) and (not s9Dc...
[ "0.7796877", "0.63049835", "0.6158791", "0.6117627", "0.6097506", "0.6061638", "0.6033665", "0.60118854", "0.5955878", "0.58595866", "0.58246785", "0.5812363", "0.57521355", "0.5600206", "0.53672403", "0.5349376", "0.53143424", "0.51968336", "0.5149174", "0.51379985", "0.5118...
0.77266645
1
Obtains the y vector for a solution. gety(self,whichsol_,y)
def zq0d(YKHO, QVZg, LVAh): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if LVAh is None: raise TypeError('Invalid type for argument y') bcNL = False if LVAh is None: ijL8 = None else: try: ijL8 = memoryview(LVAh) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zq0d(YKHO, QVZg, ijL8):\n HHC0 = YKHO.getnumcon()\n if YKHO.getnumcon() > 0 and ijL8 is not None and (len(ijL8) != YKHO.getnumcon()):\n raise ValueError('Array argument y is not long enough: Is %d, expected %d' % (len(ijL8), YKHO.getnumcon()))\n if isinstance(ijL8, XTiz.ndarray) and (not ijL8.f...
[ "0.8300887", "0.7558555", "0.7407283", "0.7368878", "0.71877843", "0.71633005", "0.7134357", "0.7132734", "0.705018", "0.7029874", "0.7029874", "0.7029874", "0.7029874", "0.7029874", "0.7029874", "0.7029874", "0.7029874", "0.7029874", "0.7029874", "0.70239764", "0.69673294", ...
0.8433062
0
Obtains a slice of the slc vector for a solution. getslcslice(self,whichsol_,first_,last_,slc)
def wCeu(YKHO, QVZg, MQmb, gzNA, AfXr): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') WK3l = False if AfXr is None: LHqk = None else: try: LHqk = memoryview(AfXr) except TypeError: try: _Z9o = qw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wCeu(YKHO, QVZg, MQmb, gzNA, LHqk):\n WZNX = gzNA - MQmb\n if gzNA - MQmb > 0 and LHqk is not None and (len(LHqk) != gzNA - MQmb):\n raise ValueError('Array argument slc is not long enough: Is %d, expected %d' % (len(LHqk), gzNA - MQmb))\n if isinstance(LHqk, XTiz.ndarray) and (not LHqk.flags.w...
[ "0.8885943", "0.7903121", "0.77781576", "0.776827", "0.7719666", "0.7706315", "0.7673623", "0.7601376", "0.75609344", "0.70728725", "0.690385", "0.6900801", "0.68715274", "0.6797456", "0.6727579", "0.6720451", "0.67186975", "0.6667074", "0.6662807", "0.65105104", "0.6496517",...
0.8940289
0
Sets the y vector for a solution. puty(self,whichsol_,y)
def IDQe(YKHO, QVZg, LVAh): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if LVAh is None: raise TypeError('Invalid type for argument y') if LVAh is None: ijL8 = None else: try: ijL8 = memoryview(LVAh) except TypeEr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IDQe(YKHO, QVZg, ijL8):\n HHC0 = YKHO.getnumcon()\n if YKHO.getnumcon() > 0 and ijL8 is not None and (len(ijL8) != YKHO.getnumcon()):\n raise ValueError('Array argument y is not long enough: Is %d, expected %d' % (len(ijL8), YKHO.getnumcon()))\n if ijL8 is None:\n raise ValueError('Argum...
[ "0.7980786", "0.7467331", "0.7414117", "0.7341319", "0.73385406", "0.72822994", "0.72759205", "0.72759205", "0.72216535", "0.716188", "0.7105489", "0.7105489", "0.704032", "0.7025292", "0.69937927", "0.69311845", "0.6928499", "0.681751", "0.67185503", "0.67038804", "0.6585851...
0.798927
0
Sets the slc vector for a solution. putslc(self,whichsol_,slc)
def Pi5r(YKHO, QVZg, AfXr): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if AfXr is None: raise TypeError('Invalid type for argument slc') if AfXr is None: LHqk = None else: try: LHqk = memoryview(AfXr) except Type...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pi5r(YKHO, QVZg, LHqk):\n WZNX = YKHO.getnumcon()\n if YKHO.getnumcon() > 0 and LHqk is not None and (len(LHqk) != YKHO.getnumcon()):\n raise ValueError('Array argument slc is not long enough: Is %d, expected %d' % (len(LHqk), YKHO.getnumcon()))\n if LHqk is None:\n raise ValueError('Arg...
[ "0.80939215", "0.7127283", "0.6981142", "0.6874318", "0.68628615", "0.64437", "0.6415943", "0.6327982", "0.62976587", "0.61485314", "0.611149", "0.587014", "0.58528334", "0.57478553", "0.57347184", "0.5725949", "0.5603986", "0.5560089", "0.5529244", "0.54716456", "0.54550815"...
0.8102084
0
Sets the slx vector for a solution. putslx(self,whichsol_,slx)
def mgrL(YKHO, QVZg, ME6O): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if ME6O is None: raise TypeError('Invalid type for argument slx') if ME6O is None: jGJf = None else: try: jGJf = memoryview(ME6O) except Type...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mgrL(YKHO, QVZg, jGJf):\n ISrL = YKHO.getnumvar()\n if YKHO.getnumvar() > 0 and jGJf is not None and (len(jGJf) != YKHO.getnumvar()):\n raise ValueError('Array argument slx is not long enough: Is %d, expected %d' % (len(jGJf), YKHO.getnumvar()))\n if jGJf is None:\n raise ValueError('Arg...
[ "0.8227534", "0.75031966", "0.7294913", "0.70008105", "0.69223344", "0.6582627", "0.64496696", "0.63729155", "0.6279643", "0.6060753", "0.6051383", "0.5939722", "0.5937078", "0.5874649", "0.58557886", "0.5814396", "0.57694393", "0.5743312", "0.5736985", "0.571725", "0.5714966...
0.8406566
0
Sets the snx vector for a solution. putsnx(self,whichsol_,sux)
def uelW(YKHO, QVZg, v6VK): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if v6VK is None: raise TypeError('Invalid type for argument sux') if v6VK is None: BgPF = None else: try: BgPF = memoryview(v6VK) except Type...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uelW(YKHO, QVZg, BgPF):\n KpEy = YKHO.getnumvar()\n if YKHO.getnumvar() > 0 and BgPF is not None and (len(BgPF) != YKHO.getnumvar()):\n raise ValueError('Array argument sux is not long enough: Is %d, expected %d' % (len(BgPF), YKHO.getnumvar()))\n if BgPF is None:\n raise ValueError('Arg...
[ "0.79652536", "0.6977705", "0.69029534", "0.6840297", "0.6730063", "0.6700717", "0.66731846", "0.6651068", "0.6616195", "0.64797753", "0.62790495", "0.62466705", "0.6051568", "0.5944151", "0.58988196", "0.58134973", "0.58022714", "0.5754032", "0.5619595", "0.5616192", "0.5582...
0.80564487
0
Sets the status keys for a slice of the constraints. putskcslice(self,whichsol_,first_,last_,skc)
def wFE4(YKHO, QVZg, MQmb, gzNA, GkVV): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if GkVV is None: JO0D = None else: try: JO0D = memoryview(GkVV) except TypeError: try: WY_G = qw7D.array('i', GkV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wFE4(YKHO, QVZg, MQmb, gzNA, JO0D):\n hOvL = gzNA - MQmb\n if gzNA - MQmb > 0 and JO0D is not None and (len(JO0D) != gzNA - MQmb):\n raise ValueError('Array argument skc is not long enough: Is %d, expected %d' % (len(JO0D), gzNA - MQmb))\n if JO0D is not None:\n VunM = (gk2W.c_int32 * le...
[ "0.7878032", "0.7324264", "0.72055733", "0.70434856", "0.695358", "0.6820521", "0.6723412", "0.6392203", "0.6374772", "0.63110477", "0.6275647", "0.6228513", "0.6054086", "0.5991555", "0.59311754", "0.58947575", "0.58841753", "0.58709055", "0.5834223", "0.5812345", "0.5808716...
0.77862066
1
Sets the status keys for a slice of the variables. putskxslice(self,whichsol_,first_,last_,skx)
def l9AZ(YKHO, QVZg, MQmb, gzNA, wg3y): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if wg3y is None: raise TypeError('Invalid type for argument skx') if wg3y is None: s9Dc = None else: try: s9Dc = memoryview(wg3y) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l9AZ(YKHO, QVZg, MQmb, gzNA, s9Dc):\n x1hT = gzNA - MQmb\n if gzNA - MQmb > 0 and s9Dc is not None and (len(s9Dc) != gzNA - MQmb):\n raise ValueError('Array argument skx is not long enough: Is %d, expected %d' % (len(s9Dc), gzNA - MQmb))\n if s9Dc is None:\n raise ValueError('Argument sk...
[ "0.78635985", "0.7424604", "0.7405193", "0.6910344", "0.6705808", "0.66730547", "0.66334337", "0.63971466", "0.63536805", "0.63480496", "0.6341284", "0.62940514", "0.6269792", "0.62681013", "0.6214591", "0.607708", "0.60471714", "0.5982883", "0.58000416", "0.5797448", "0.5717...
0.7742946
1
Sets a slice of the slc vector for a solution. putslcslice(self,whichsol_,first_,last_,slc)
def tIsp(YKHO, QVZg, MQmb, gzNA, AfXr): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if AfXr is None: raise TypeError('Invalid type for argument slc') if AfXr is None: LHqk = None else: try: LHqk = memoryview(AfXr) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tIsp(YKHO, QVZg, MQmb, gzNA, LHqk):\n WZNX = gzNA - MQmb\n if gzNA - MQmb > 0 and LHqk is not None and (len(LHqk) != gzNA - MQmb):\n raise ValueError('Array argument slc is not long enough: Is %d, expected %d' % (len(LHqk), gzNA - MQmb))\n if LHqk is None:\n raise ValueError('Argument sl...
[ "0.8665271", "0.8028874", "0.79689276", "0.7586415", "0.7571979", "0.7481478", "0.7443932", "0.73685884", "0.7250818", "0.6873892", "0.6865921", "0.6845474", "0.68408936", "0.6835351", "0.6811375", "0.67149657", "0.6622215", "0.6455107", "0.6454194", "0.64446056", "0.62881243...
0.86664194
0
Sets a slice of the suc vector for a solution. putsucslice(self,whichsol_,first_,last_,suc)
def Tokn(YKHO, QVZg, MQmb, gzNA, f2c8): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if f2c8 is None: raise TypeError('Invalid type for argument suc') if f2c8 is None: VDcL = None else: try: VDcL = memoryview(f2c8) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tokn(YKHO, QVZg, MQmb, gzNA, VDcL):\n SHVL = gzNA - MQmb\n if gzNA - MQmb > 0 and VDcL is not None and (len(VDcL) != gzNA - MQmb):\n raise ValueError('Array argument suc is not long enough: Is %d, expected %d' % (len(VDcL), gzNA - MQmb))\n if VDcL is None:\n raise ValueError('Argument su...
[ "0.8458082", "0.78352803", "0.7823198", "0.697396", "0.66800994", "0.66672105", "0.6612828", "0.65653783", "0.65534025", "0.6473596", "0.6382252", "0.63652766", "0.63203996", "0.6249303", "0.6229676", "0.6119368", "0.6072003", "0.601853", "0.60000366", "0.5946613", "0.5850652...
0.8440238
1
Sets a slice of the slx vector for a solution. putslxslice(self,whichsol_,first_,last_,slx)
def ECeY(YKHO, QVZg, MQmb, gzNA, ME6O): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if ME6O is None: raise TypeError('Invalid type for argument slx') if ME6O is None: jGJf = None else: try: jGJf = memoryview(ME6O) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ECeY(YKHO, QVZg, MQmb, gzNA, jGJf):\n ISrL = gzNA - MQmb\n if gzNA - MQmb > 0 and jGJf is not None and (len(jGJf) != gzNA - MQmb):\n raise ValueError('Array argument slx is not long enough: Is %d, expected %d' % (len(jGJf), gzNA - MQmb))\n if jGJf is None:\n raise ValueError('Argument sl...
[ "0.86987597", "0.81707865", "0.8090086", "0.76664007", "0.7569977", "0.7491802", "0.7421092", "0.73564", "0.7310712", "0.72694886", "0.7246696", "0.71117413", "0.7088779", "0.7066789", "0.7048525", "0.70223415", "0.69794166", "0.69253093", "0.69242007", "0.64906347", "0.64746...
0.8702004
0
Sets a slice of the sux vector for a solution. putsuxslice(self,whichsol_,first_,last_,sux)
def YszW(YKHO, QVZg, MQmb, gzNA, v6VK): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if v6VK is None: raise TypeError('Invalid type for argument sux') if v6VK is None: BgPF = None else: try: BgPF = memoryview(v6VK) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YszW(YKHO, QVZg, MQmb, gzNA, BgPF):\n KpEy = gzNA - MQmb\n if gzNA - MQmb > 0 and BgPF is not None and (len(BgPF) != gzNA - MQmb):\n raise ValueError('Array argument sux is not long enough: Is %d, expected %d' % (len(BgPF), gzNA - MQmb))\n if BgPF is None:\n raise ValueError('Argument su...
[ "0.83270234", "0.8310678", "0.8062453", "0.68127537", "0.66257215", "0.6514107", "0.640519", "0.63978034", "0.63856447", "0.63657236", "0.6364191", "0.63023823", "0.6279157", "0.6227445", "0.6151261", "0.6146947", "0.6129155", "0.61140305", "0.60963166", "0.6054423", "0.60241...
0.8475651
0
Sets a slice of the snx vector for a solution. putsnxslice(self,whichsol_,first_,last_,snx)
def PEm3(YKHO, QVZg, MQmb, gzNA, FLHu): if not isinstance(QVZg, Depx): raise TypeError('Argument whichsol has wrong type') if FLHu is None: raise TypeError('Invalid type for argument snx') if FLHu is None: M9K2 = None else: try: M9K2 = memoryview(FLHu) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PEm3(YKHO, QVZg, MQmb, gzNA, M9K2):\n vCjv = gzNA - MQmb\n if gzNA - MQmb > 0 and M9K2 is not None and (len(M9K2) != gzNA - MQmb):\n raise ValueError('Array argument snx is not long enough: Is %d, expected %d' % (len(M9K2), gzNA - MQmb))\n if M9K2 is None:\n raise ValueError('Argument sn...
[ "0.85828114", "0.7945033", "0.7808164", "0.7766909", "0.77377814", "0.74767923", "0.7460703", "0.7104095", "0.70643973", "0.6853887", "0.6741942", "0.67371625", "0.6673794", "0.65873826", "0.6565678", "0.65549874", "0.6534593", "0.6502936", "0.64653575", "0.64384925", "0.6320...
0.8466408
1
Obtains the length the task name. gettasknamelen(self)
def Kpsd(YKHO): Ylbp, vfD5 = YKHO.__obj.gettasknamelen() if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) UD4Z = vfD5 return UD4Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kpsd(YKHO):\n aAh7 = gk2W.c_int32()\n Ylbp = TW1v.MSK_XX_gettasknamelen(YKHO.__nativep, gk2W.byref(aAh7))\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n aAh7 = aAh7.value\n UD4Z = aAh7\n return UD4Z", "def ATKD(YKHO):\n eZS8 = 1 + ...
[ "0.8848174", "0.7396339", "0.7211169", "0.66781706", "0.6509832", "0.638948", "0.63247794", "0.6289375", "0.6192284", "0.6141001", "0.61032224", "0.6098824", "0.6098824", "0.60865223", "0.58865136", "0.58703756", "0.58387864", "0.5816365", "0.5760647", "0.5759496", "0.5754741...
0.8965042
0
Obtains the task name. gettaskname(self)
def ATKD(YKHO): eZS8 = 1 + YKHO.gettasknamelen() WptY = qw7D.array('b', [0] * eZS8) NWW5 = memoryview(WptY) Ylbp, vfD5 = YKHO.__obj.gettaskname(eZS8, NWW5) if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_) _hb8 = vfD5 _hb8 = WptY.tobytes()[:-1]...
{ "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 JP0n(YKHO):\n F8yR = False\n while not F8yR:\n try:\n with open('current_taskname.txt', 'r') as eHNT:...
[ "0.9225649", "0.92226565", "0.890475", "0.80714345", "0.77892965", "0.7712749", "0.76918936", "0.76918936", "0.76128006", "0.760115", "0.7543221", "0.7498984", "0.7413234", "0.736176", "0.7214945", "0.71906304", "0.71588486", "0.712833", "0.7097375", "0.70958984", "0.705449",...
0.78340673
4
Get the positions of the nonzero elements in barc. getbarcsparsity(self,idxj)
def kM3_(YKHO, Xji4): MJCv = YKHO.getnumbarcnz() if Xji4 is None: raise TypeError('Invalid type for argument idxj') YE2C = False if Xji4 is None: H0Zp = None else: try: H0Zp = memoryview(Xji4) except TypeError: try: xpGp = qw7D....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kM3_(YKHO, H0Zp):\n MJCv = YKHO.getnumbarcnz()\n tRNo = gk2W.c_int64()\n Dtty = MJCv\n if MJCv > 0 and H0Zp is not None and (len(H0Zp) != MJCv):\n raise ValueError('Array argument idxj is not long enough: Is %d, expected %d' % (len(H0Zp), MJCv))\n if isinstance(H0Zp, XTiz.ndarray) and (no...
[ "0.7880039", "0.7069366", "0.69609344", "0.69448763", "0.68547386", "0.6244682", "0.624142", "0.5826277", "0.5707228", "0.56314456", "0.558511", "0.55000687", "0.54627365", "0.53390604", "0.53189814", "0.529206", "0.51894635", "0.5175475", "0.51474226", "0.5140838", "0.513782...
0.7875644
1
Sets the objective sense. putobjsense(self,sense_)
def fHKQ(YKHO, ch_Z): if not isinstance(ch_Z, H_rx): raise TypeError('Argument sense has wrong type') Ylbp = YKHO.__obj.putobjsense(ch_Z) if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHKQ(YKHO, ch_Z):\n Ylbp = TW1v.MSK_XX_putobjsense(YKHO.__nativep, ch_Z)\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)", "def rV9r(YKHO, rV9r):\n YKHO._objective = rV9r", "def WIl5(YKHO, Rg9E=None, **B2fa):\n if Rg9E:\n YKHO.objecti...
[ "0.7520607", "0.52856076", "0.51713824", "0.50965065", "0.50691324", "0.48808637", "0.48373786", "0.4836329", "0.4834191", "0.4817863", "0.47958386", "0.47829077", "0.47675174", "0.47340724", "0.4723223", "0.46988454", "0.46940908", "0.46940097", "0.46933573", "0.46758312", "...
0.79466873
0
Changes one element in barc. putbarcj(self,j_,sub,weights)
def cT2S(YKHO, FijD, finE, _mSQ): tWD2 = None if tWD2 is None: tWD2 = len(finE) elif tWD2 != len(finE): raise IndexError('Inconsistent length of array sub') if tWD2 is None: tWD2 = len(_mSQ) elif tWD2 != len(_mSQ): raise IndexError('Inconsistent length of array weight...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cT2S(YKHO, FijD, JBgN, EezN):\n tWD2 = None\n if tWD2 is None:\n tWD2 = len(JBgN)\n elif tWD2 != len(JBgN):\n raise IndexError('Inconsistent length of array sub')\n if tWD2 is None:\n tWD2 = len(EezN)\n elif tWD2 != len(EezN):\n raise IndexError('Inconsistent length o...
[ "0.76669323", "0.7315079", "0.71391314", "0.6202151", "0.60657674", "0.5813972", "0.5804683", "0.5798792", "0.5771986", "0.5744488", "0.5671224", "0.5516903", "0.55073386", "0.5496936", "0.5472952", "0.53638756", "0.5278725", "0.5263576", "0.5227484", "0.5184158", "0.51833236...
0.80895865
0
Sets the number of preallocated conic constraints in the optimization task. putmaxnumcone(self,maxnumcone_)
def JEJM(YKHO, vPNu): Ylbp = YKHO.__obj.putmaxnumcone(vPNu) if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JEJM(YKHO, vPNu):\n Ylbp = TW1v.MSK_XX_putmaxnumcone(YKHO.__nativep, vPNu)\n if Ylbp != 0:\n bGrB, 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.__getlasterro...
[ "0.76631105", "0.6873881", "0.6576481", "0.6515341", "0.6249171", "0.5743204", "0.57229555", "0.566485", "0.56632674", "0.56456995", "0.55652726", "0.55497414", "0.5527375", "0.54716325", "0.54450977", "0.543764", "0.5433045", "0.53766745", "0.53474724", "0.53441435", "0.5334...
0.78598285
0
Sets the number of preallocated symmetric matrix variables. putmaxnumbarvar(self,maxnumbarvar_)
def BCXj(YKHO, Kko7): Ylbp = YKHO.__obj.putmaxnumbarvar(Kko7) if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BCXj(YKHO, Kko7):\n Ylbp = TW1v.MSK_XX_putmaxnumbarvar(YKHO.__nativep, Kko7)\n if Ylbp != 0:\n bGrB, 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.__getlaster...
[ "0.78251684", "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.7951648
0
Replaces one coefficient in the quadratic term in the objective. putqobjij(self,i_,j_,qoij_)
def hGi3(YKHO, WzQg, FijD, iqBa): Ylbp = YKHO.__obj.putqobjij(WzQg, FijD, iqBa) if Ylbp != 0: Aofo, tO9_ = YKHO.__getlasterror(Ylbp) raise xxyF(piss(Ylbp), tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hGi3(YKHO, WzQg, FijD, iqBa):\n Ylbp = TW1v.MSK_XX_putqobjij(YKHO.__nativep, WzQg, FijD, iqBa)\n if Ylbp != 0:\n bGrB, 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 ...
[ "0.78803056", "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.53344...
0.8022443
0
Return {password} hashed with a random salt.
def HKzU(jTXt): p4k2 = './' + C1SZ + BHGE return inZ1.crypt(jTXt, ''.join(tuKI.sample(p4k2, 2)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ikbr(M56W, NTfD):\n return inZ1(M56W, '$6$%s' % NTfD)", "def kJBJ():\n return Hy7s.urandom(32)", "def qzFd(YKHO, jTXt):\n NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii')\n mNdd = HBct.pbkdf2_hmac('sha256', jTXt.encode('utf-8'), NTfD, 100000)\n mNdd = MRxC.hexlify(mNdd)\n ...
[ "0.785195", "0.7485919", "0.7229884", "0.7139252", "0.7042943", "0.70410484", "0.70328486", "0.69745654", "0.6972978", "0.6963016", "0.69494325", "0.6923372", "0.6914759", "0.6914759", "0.69035566", "0.69032335", "0.6849369", "0.6846902", "0.68391377", "0.6820383", "0.6793918...
0.72318745
2
Returns whether the Enum contains the given value
def sjXf(Emd4, BWXx): return BWXx in Emd4.values()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjXf(YKHO, BWXx):\n return BWXx in YKHO.values", "def OZnp(YKHO, BWXx):\n for wEf2 in hkxX():\n if wEf2 == BWXx or wEf2 == BWXx:\n return True\n return False", "def kxT9(XJAX, CXGd):\n try:\n XJAX(CXGd)\n except ValueError:\n return False\n return True", ...
[ "0.77123004", "0.72656065", "0.70571256", "0.7028384", "0.7001019", "0.6976045", "0.6976045", "0.6915918", "0.6735124", "0.67162323", "0.66731423", "0.66354334", "0.66343904", "0.6532867", "0.6506448", "0.64733434", "0.6471284", "0.63954747", "0.63917613", "0.6385912", "0.632...
0.76120925
1
For a given list of sentences, convert all sentences to a list of words. Optional is if we want to replace all names and digits with special joker characters so that they don't have a different meaning. We return a list of list of words where each word is in lower case.
def inZV(Rhv4, jO6E, pAsN=False): SWox = ITS7.time() print('SentencesCount={}, Message="Starting to convert sentences to lists of words"'.format(len(Rhv4))) udcZ = list() for yAmx in Rhv4: V22M = Htwi(yAmx) if pAsN: udcZ.append(V22M) else: udcZ.append([uY1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b558(YKHO, Rhv4):\n \"\"\"\n https://machinelearningmastery.com/clean-text-machine-learning-python/\n \"\"\"\n import string\n tyNF = str.maketrans('', '', string.punctuation)\n vwCE = []\n if type(Rhv4) == list:\n for yAmx in Rhv4:\n V22M = yAmx.split(' ')\n ...
[ "0.7843854", "0.7488675", "0.7488675", "0.74834925", "0.7450238", "0.72817487", "0.7251751", "0.7230152", "0.7098521", "0.70853525", "0.70543855", "0.7040246", "0.69851166", "0.6936858", "0.69340396", "0.6912219", "0.68851644", "0.6876494", "0.6874023", "0.6847757", "0.682465...
0.6810224
29
From a given string (text), extract sentences by using a Regex and return a list of sentences. A sentence is defined as a continuous flow of words between 2 punctuation signs. Logically, this is not a correct definition of a sentence. It was done like this because in a lot of cases where punctuation signs are present, ...
def f04G(l5Ny): CafP = ZbWC.findall(Pzkr, l5Ny) bHH0 = [WKvO.strip() for WKvO in CafP if WKvO is not ''] return bHH0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0FK(l5Ny):\n Rhv4 = Dhdw.sent_tokenize(l5Ny)\n return Rhv4", "def Rhv4(l5Ny, Fbzf=True):\n if Fbzf:\n KG9w = map(lambda Z9rn: Z9rn.strip(), sv42.split(l5Ny))\n else:\n raise NotImplemented('sentences with punct is not implemented')\n return KG9w", "def Rhv4(YKHO) -> x1iM[str]:...
[ "0.79939556", "0.7925823", "0.79061824", "0.787048", "0.78565335", "0.7849685", "0.78382206", "0.7568798", "0.7548214", "0.7383739", "0.7365318", "0.73031485", "0.72995585", "0.72606564", "0.7183229", "0.71747917", "0.71676517", "0.71676517", "0.71335554", "0.6990329", "0.692...
0.73375064
11
From a given sentence, extract a list of words using a regex and returns the list
def Htwi(yAmx): RLKa = ZbWC.findall(H_yU, yAmx) V22M = [WKvO.lower() for WKvO in RLKa if WKvO is not ''] return V22M
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xqzg(l5Ny):\n return ZbWC.findall('\\\\w+', l5Ny)", "def QLmL(yAmx: str) -> list:\n return [rNLf(GIN8) for GIN8 in yAmx.split()][:-1]", "def QjBH(A0cm):\n njyT = ZbWC.compile('([^\\\\d\\\\`\\\\~\\\\!\\\\@\\\\#\\\\$\\\\%\\\\^\\\\&\\\\*\\\\(\\\\)\\\\+\\\\=\\\\[\\\\{\\\\]\\\\}\\\\|\\\\\\\\\\\\\\'\\\\...
[ "0.73824656", "0.73613733", "0.73354656", "0.7329176", "0.7300523", "0.7278349", "0.72088933", "0.71624345", "0.70499563", "0.7004783", "0.6892251", "0.68916184", "0.68813795", "0.6872783", "0.6861082", "0.6854046", "0.68317294", "0.68259835", "0.6718483", "0.6714542", "0.670...
0.7182423
7
Get the absolute path relative from the users home directory.
def CBIr(pmON=None): if pmON: return '%s/%s' % (hIOi('~'), pmON) else: return hIOi('~')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SOoY(pmON):\n pmON = ZbWC.sub('~', Hy7s.environ['HOME'], str(pmON))\n if pmON[0] != '/':\n pmON = str(lWrn.pwd()).strip() + '/' + pmON\n return pmON", "def Z9ps(pmON):\n if '~' in pmON:\n return pmON.replace('~', hIOi('~'))\n else:\n return pmON", "def aG1h():\n retur...
[ "0.79745674", "0.7967853", "0.78495085", "0.7806317", "0.780348", "0.77588886", "0.77579105", "0.7545472", "0.7545435", "0.74873245", "0.7457176", "0.7137103", "0.7137103", "0.7135744", "0.71298516", "0.7122463", "0.7048174", "0.704382", "0.7042589", "0.6985595", "0.6984571",...
0.71705526
11
Computes the DCG for a given ranking.
def x2PR(YKHO, BCk_): return sum([(2 ** Mkmy - 1) / epAf.log(YRbF + 2, 2) for YRbF, Mkmy in enumerate(BCk_)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x2PR(toXj, fdMZ=10):\n toXj = oyIN.asarray(toXj)[:fdMZ]\n SKs8 = len(toXj)\n if SKs8 == 0:\n return 0.0\n bnZy = oyIN.log2(oyIN.arange(SKs8) + 2)\n return oyIN.sum(toXj / bnZy)", "def x2PR(YKHO, dGfB):\n return sum([(2 ** VLaI - 1) / epAf.log(fdMZ + 2, 2) for fdMZ, VLaI in enumerate(...
[ "0.71015334", "0.70199543", "0.68278605", "0.6297935", "0.6167642", "0.6159737", "0.6100069", "0.60535264", "0.60535264", "0.60441524", "0.5942948", "0.59037614", "0.58951026", "0.5890461", "0.5877349", "0.58557963", "0.58392525", "0.5831029", "0.58152866", "0.57738566", "0.5...
0.80949104
0
Get the full path to the project directory. The sitename is os.path.basename() fo the path.
def zHh0(YKHO): Emaa, RJsz = YKHO._FindKeyFiles() if Emaa is None: return None else: return Hy7s.path.dirname(Emaa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EL0N():\n qaEx = Hy7s.path.abspath(xAKo)\n jNha = Hy7s.path.join(Hy7s.path.dirname(qaEx), '..')\n return Hy7s.path.abspath(jNha)", "def TdjZ():\n return GkAb(gCuF.PROJECT_DIR)", "def GOQM(YKHO):\n return Hy7s.path.expanduser(YKHO.sqlfluff_config.get_section((YKHO.templater_selector, YKHO.nam...
[ "0.76835746", "0.7609278", "0.7565632", "0.7564937", "0.75076115", "0.75076115", "0.7460581", "0.7403331", "0.7370139", "0.7338093", "0.7278179", "0.7269134", "0.72575593", "0.71984255", "0.7181923", "0.7166557", "0.71590376", "0.7155332", "0.7155332", "0.7155332", "0.7155332...
0.6642871
55
Get a list of the app directories in the current project. Returns a list of the full path to the app directory. The app name is os.path.basename() of each path.
def H0BQ(YKHO): Emaa, RJsz = YKHO._FindKeyFiles() if Emaa is None: return None TLI7 = Hy7s.path.dirname(Emaa) RRlC = Hy7s.listdir(TLI7) JHf2 = [] for FYKK in RRlC: CCrh = Hy7s.path.join(TLI7, FYKK) if Hy7s.path.isdir(CCrh) and Hy7s.path.isfile(Hy7s.path.join(CCrh, 'models...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XeQ2():\n F9sO = [{'name': P4t4, 'dir': Hy7s.path.dirname(Hy7s.path.abspath(tF99(P4t4).__file__))} for P4t4 in gCuF.INSTALLED_APPS]\n return [P4t4 for P4t4 in F9sO if gCuF.BASE_DIR in P4t4['dir']]", "def MQDm(YKHO):\n YKHO._populate()\n qR7s = []\n for P4t4 in YKHO.get_apps():\n if hasa...
[ "0.77939665", "0.73979264", "0.72740537", "0.70311385", "0.68899965", "0.6566972", "0.65643966", "0.6475137", "0.646991", "0.6422327", "0.63913584", "0.63813317", "0.6374119", "0.6369508", "0.62916684", "0.6290896", "0.627292", "0.6270338", "0.6235929", "0.6227795", "0.619181...
0.77305305
1
Performs (inputs + shift) % vocab_size in the onehot space.
def wlSO(g4y1, DkWr): g4y1 = ht2j.stack((g4y1, ht2j.zeros_like(g4y1)), dim=-1) DkWr = ht2j.stack((DkWr, ht2j.zeros_like(DkWr)), dim=-1) mb_4 = ht2j.fft(g4y1, 1) TKVt = ht2j.fft(DkWr, 1) fMBQ = mb_4[..., 0] * TKVt[..., 0] - mb_4[..., 1] * TKVt[..., 1] v1kn = mb_4[..., 0] * TKVt[..., 1] + mb_4[......
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aFAW(g4y1, jTqs):\n Gyhe = g4y1.size(0)\n bITo = ht2j.zeros(Gyhe, jTqs)\n bITo.scatter_(1, g4y1.unsqueeze(1), 1.0)\n return bITo", "def KLLm(xrUD, jXxl=None, hVLt=False, wzH_=None):\n if jXxl is None:\n raise Exception(\"'vocab_size' arg is required.\")\n if hVLt:\n if wzH_ is...
[ "0.6625687", "0.6522718", "0.64381754", "0.6421956", "0.6420222", "0.6403999", "0.62599635", "0.62588215", "0.6248834", "0.62333953", "0.6146165", "0.61171454", "0.6112145", "0.60882616", "0.6079414", "0.6055295", "0.6053049", "0.6050454", "0.60179824", "0.6004405", "0.600012...
0.63782936
6
Performs (inputs + shift) % vocab_size in the onehot space.
def iZUJ(g4y1, DkWr): g4y1 = ZylS.cast(g4y1, ZylS.complex64) DkWr = ZylS.cast(DkWr, ZylS.complex64) mb_4 = ZylS.signal.fft(g4y1) TKVt = ZylS.signal.fft(DkWr) lzu6 = mb_4 * TKVt return (ZylS.math.real(ZylS.signal.ifft(lzu6)), lzu6, mb_4, TKVt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aFAW(g4y1, jTqs):\n Gyhe = g4y1.size(0)\n bITo = ht2j.zeros(Gyhe, jTqs)\n bITo.scatter_(1, g4y1.unsqueeze(1), 1.0)\n return bITo", "def KLLm(xrUD, jXxl=None, hVLt=False, wzH_=None):\n if jXxl is None:\n raise Exception(\"'vocab_size' arg is required.\")\n if hVLt:\n if wzH_ is...
[ "0.6628839", "0.6523513", "0.64391387", "0.6423872", "0.64209574", "0.64065593", "0.6380521", "0.6262665", "0.62580264", "0.6250413", "0.62356365", "0.6147972", "0.6119448", "0.6090384", "0.6080483", "0.60556436", "0.605519", "0.605154", "0.60198885", "0.600641", "0.60033774"...
0.61148727
13
Return the user's home directory.
def GwqS(YKHO, NtEF): return YKHO.user_table[NtEF]['home']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aG1h():\n return Hy7s.path.expanduser('~')", "def GwqS(YKHO) -> str:\n U5bT = Hy7s.path.expanduser('~')\n if not Hy7s.path.exists(U5bT):\n raise RuntimeError('The home directory does not exist.')\n return U5bT", "def vY8Y():\n try:\n AGPF = Hy7s.path.expanduser('~')\n except...
[ "0.893307", "0.88721424", "0.88705593", "0.886407", "0.8731782", "0.85772765", "0.85295665", "0.85295665", "0.8465337", "0.8290572", "0.82589376", "0.820919", "0.81753886", "0.8058806", "0.79158306", "0.7841633", "0.7787422", "0.7623524", "0.74783534", "0.72487456", "0.724365...
0.83210564
9
Whether the user has read permissions for obj (an absolute pathname of a file or a directory)
def UdTa(YKHO, NtEF, YEnM=None): return 'r' in YKHO.user_table[NtEF]['perm']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OoGh(Eorv):\n tse7 = Hy7s.stat(Eorv).st_mode\n return getattr(QmN4, 'S_IROTH') & tse7 > 0", "def OoGh(Eorv):\n tse7 = Hy7s.stat(Eorv).st_mode\n return getattr(QmN4, 'S_IROTH') & tse7 > 0", "def QnIB(YKHO, pmON):\n if LR7z(pmON):\n return uEDt(pmON, K_hu and ibYS and jYsa)\n else:\n...
[ "0.7149955", "0.7149955", "0.70938736", "0.6990295", "0.69801116", "0.69389063", "0.69380355", "0.69380355", "0.68666345", "0.6863203", "0.6834633", "0.67876285", "0.6740451", "0.673493", "0.673483", "0.6718482", "0.67093164", "0.66729295", "0.6671589", "0.6646158", "0.664228...
0.65625834
26
Close the dispatcher socket.
def DDI8(YKHO): YKHO.cmd_channel.debug('PassiveDTP.close()') pzyL.dispatcher.close(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n YKHO.context['socket'].close()", "def DDI8(YKHO):\n YKHO.socket.close()", "def DDI8(YKHO):\n YKHO.socket.close()", "def DDI8(YKHO):\n YKHO.socket.close()", "def DDI8(YKHO):\n YKHO.socket.close()", "def DDI8(YKHO):\n YKHO.socket.close()", "def DDI8(YKHO):\n YKHO.so...
[ "0.7848705", "0.7726064", "0.7726064", "0.7726064", "0.7726064", "0.7726064", "0.7726064", "0.7700651", "0.7669155", "0.76530904", "0.7632863", "0.7632863", "0.76012707", "0.75902194", "0.7560573", "0.7434389", "0.7321297", "0.7294117", "0.7286715", "0.72644", "0.7214975", ...
0.0
-1
Close the dispatcher socket.
def DDI8(YKHO): YKHO.cmd_channel.debug('ActiveDTP.close()') pzyL.dispatcher.close(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n YKHO.context['socket'].close()", "def DDI8(YKHO):\n YKHO.socket.close()", "def DDI8(YKHO):\n YKHO.socket.close()", "def DDI8(YKHO):\n YKHO.socket.close()", "def DDI8(YKHO):\n YKHO.socket.close()", "def DDI8(YKHO):\n YKHO.socket.close()", "def DDI8(YKHO):\n YKHO.so...
[ "0.7848705", "0.7726064", "0.7726064", "0.7726064", "0.7726064", "0.7726064", "0.7726064", "0.7700651", "0.7669155", "0.76530904", "0.7632863", "0.7632863", "0.76012707", "0.75902194", "0.7560573", "0.7434389", "0.7321297", "0.7294117", "0.7286715", "0.72644", "0.7214975", ...
0.0
-1
Initialize the DTPHandler instance, replacing asynchat's "simple producer" deque wrapper with a pure deque object.
def FIMM(YKHO, t2p_, Eg4V): pzyL.dispatcher.__init__(YKHO, t2p_) YKHO.producer_fifo = MUE7() YKHO.cmd_channel = Eg4V YKHO.file_obj = None YKHO.receive = False YKHO.transfer_finished = False YKHO.tot_bytes_sent = 0 YKHO.tot_bytes_received = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.deque = MUE7()", "def FIMM(YKHO):\n YKHO.queue = MUE7()", "def FIMM(YKHO):\n YKHO.queue = MUE7()", "def FIMM(YKHO):\n YKHO.queue = MUE7()", "def FIMM(YKHO):\n YKHO.queue = MUE7()", "def FIMM(YKHO):\n YKHO.q = MUE7()", "def FIMM(YKHO):\n YKHO.queue = MUE7()\n ...
[ "0.6298625", "0.6257873", "0.6257873", "0.6257873", "0.6257873", "0.6106297", "0.6059178", "0.6051605", "0.6043369", "0.60149276", "0.6001413", "0.5958562", "0.5939856", "0.5935468", "0.5929445", "0.5925022", "0.58833015", "0.58527035", "0.5844222", "0.58023155", "0.57953054"...
0.64715147
0
Check whether the path belongs to user's home directory. Expected argument is a "real" filesystem path. If path is a symbolic link it is resolved to check its real destination. Pathnames escaping from user's root directory are considered not valid.
def s7pp(YKHO, pmON): tk5Y = YKHO.realpath(YKHO.root) pmON = YKHO.realpath(pmON) if not YKHO.root.endswith(Hy7s.sep): tk5Y = YKHO.root + Hy7s.sep if not pmON.endswith(Hy7s.sep): pmON = pmON + Hy7s.sep if pmON[0:len(tk5Y)] == tk5Y: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hAdj(YKHO, kZiy, MC83, Oz1B, DHvX):\n if Oz1B:\n if kZiy:\n if Hy7s.path.exists(kZiy) and (not DHvX):\n raise Bx6I.BadArgumentError(bGrB(u'Specified directory {0} for system user {1} already exists. If you really want to use it, please use the --force argument.').format(htO2...
[ "0.71177983", "0.7048908", "0.7040957", "0.6963441", "0.6747281", "0.66532487", "0.6618474", "0.66068685", "0.65856624", "0.65571314", "0.6536434", "0.6516736", "0.6498955", "0.64894295", "0.6459149", "0.6441646", "0.64196706", "0.6412966", "0.637745", "0.6343931", "0.6334745...
0.57718456
48
Reinitialize user's current session.
def xydJ(YKHO, zFiD): YKHO.log('OK REIN. Flushing account information.') YKHO.flush_account() YKHO.respond('230 Ready for new user.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yUbG(YKHO):\n AY4k.Error.maybe_raise(_e0h.sp_session_relogin(YKHO._sp_session))", "def TVMN():\n cuiw.clear()\n cuiw.permanent = True", "def SiRx():\n if P4t4.config['SESSION_KEY'] in cuiw:\n cuiw.pop(P4t4.config['SESSION_KEY'])\n return vKnz(nKyW('home'))", "def seuz(YKHO):\n if...
[ "0.73114216", "0.70115596", "0.65970606", "0.6527118", "0.64791566", "0.64384454", "0.63787323", "0.628014", "0.6276127", "0.62758726", "0.62699926", "0.62674457", "0.62058717", "0.6175197", "0.6162526", "0.6159558", "0.6126029", "0.604522", "0.6030053", "0.59277743", "0.5923...
0.0
-1
Check if the user in the user.json file.
def GYAu(YKHO, D3lj): if not YKHO.um.check_file_exists('users.json'): return if D3lj not in YKHO.users: return CBIr = mv1M() CBIr.id = D3lj return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j1wc():\n with open(wM3v, 'r') as cJUo:\n nPrm = qQXR.load(cJUo)\n return nPrm['username'] == '' or nPrm['password'] == ''", "def BYM_(YKHO, CBIr):\n return False", "def GfdN():\n rNYK = QePW.args.get('username')\n if not rNYK:\n return pz3A(False)\n Dt_U = NCls.execute(...
[ "0.7748234", "0.7304994", "0.70522434", "0.7008959", "0.69846535", "0.6952139", "0.67624503", "0.6762297", "0.6752197", "0.67460907", "0.670604", "0.66726625", "0.66645384", "0.6638253", "0.6597192", "0.6584211", "0.6571729", "0.6549531", "0.6547135", "0.6542674", "0.6509126"...
0.0
-1
Return the number of rows.
def Gmep(YKHO) -> int: return len(YKHO.plaincolumns[0].values)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWGE(YKHO) -> int:\n ...", "def NwL4(YKHO):\n return len(YKHO.rows)", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def NwL4(YKHO):\n return len(YKHO.rows)", "def _1Ox(YKHO):\n return YKHO._num_rows", "def SWGE(YKHO):\n ret...
[ "0.9221344", "0.8939995", "0.8883343", "0.8883343", "0.8881884", "0.88316065", "0.8796254", "0.87434655", "0.8638738", "0.8571888", "0.8547149", "0.85056275", "0.8504988", "0.8499684", "0.84940827", "0.8438511", "0.8185211", "0.81843865", "0.81450695", "0.81191826", "0.811221...
0.8278957
16
Returns the number columns.
def OfOG(YKHO): return len(YKHO.plaincolumns)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q_Yq(YKHO):\n return YKHO._num_cols", "def ctMN(YKHO):\n return YKHO.__ncols", "def Fjx0(YKHO):\n return len(YKHO.__colsKey)", "def ceBG(YKHO):\n return YKHO.__cols", "def ulBT(YKHO):\n return len(YKHO.column_names())", "def XAF3(YKHO):\n return len(YKHO.columns)", "def FSKv(YKHO)...
[ "0.8479093", "0.8321676", "0.83161926", "0.81688076", "0.81617033", "0.81603026", "0.81361294", "0.81158787", "0.8098255", "0.8052948", "0.8027492", "0.8011963", "0.7991961", "0.7988968", "0.7957302", "0.7940329", "0.78685737", "0.7859736", "0.7843928", "0.78203475", "0.77553...
0.80597484
9
Converts test data table into a pandas dataframe.
def onUf(YKHO) -> rLdf.DataFrame: nPrm = {iVRZ.name: iVRZ.to_pandas() for iVRZ in YKHO.plaincolumns} return rLdf.DataFrame(nPrm, columns=YKHO.columns)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DBan(nPrm):\n TK2h = rLdf.DataFrame(nPrm)\n return TK2h", "def P75v(tyNF):\n i5jP = tyNF.rowCount()\n fHmP = tyNF.columnCount()\n if i5jP == 0:\n return None\n oqHb = []\n for YRbF in range(i5jP):\n ZfUD = tyNF.verticalHeaderItem(YRbF)\n if ZfUD is not None:\n ...
[ "0.7470056", "0.7357014", "0.72778505", "0.7176993", "0.7033917", "0.7017266", "0.67617035", "0.65868384", "0.6532865", "0.65319735", "0.6518283", "0.651351", "0.64821416", "0.64706", "0.64474356", "0.6439888", "0.6410859", "0.6402957", "0.6367853", "0.6367853", "0.63493586",...
0.6197717
33
Converts test data table into a pandas dataframe.
def VKUC(YKHO): from pyspark.sql import types DwRD = [iVRZ.to_pyspark() for iVRZ in YKHO.plaincolumns] V_D6, hkxX = zip(*DwRD) nPrm = list(zip(*hkxX)) uPxI = types.StructType(V_D6) from pyspark.sql import SparkSession ujem = SparkSession.builder.getOrCreate() return ujem.createDataFrame(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DBan(nPrm):\n TK2h = rLdf.DataFrame(nPrm)\n return TK2h", "def P75v(tyNF):\n i5jP = tyNF.rowCount()\n fHmP = tyNF.columnCount()\n if i5jP == 0:\n return None\n oqHb = []\n for YRbF in range(i5jP):\n ZfUD = tyNF.verticalHeaderItem(YRbF)\n if ZfUD is not None:\n ...
[ "0.7470056", "0.7357014", "0.72778505", "0.7176993", "0.7033917", "0.7017266", "0.67617035", "0.65868384", "0.6532865", "0.65319735", "0.6518283", "0.651351", "0.64821416", "0.64706", "0.64474356", "0.6439888", "0.6410859", "0.6402957", "0.6367853", "0.6367853", "0.63493586",...
0.0
-1
Check plaincolumns in regard to validity constraints. Raises ValueError in case of invalidity.
def oAi_(YKHO): if not isinstance(YKHO.plaincolumns, tuple): raise ValueError('PlainFrame was instantiated incorrectly. `plaincolumns` needs to be of type `tuple`. However, {} was encountered. Please use `PlainFrame.from_plain` instead for convenient instantiation and proper type casts.'.format(type(YKHO.pl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UOPu(nPrm: Sequence[Sequence], ZLJ_: Sequence[str], m1c7: Sequence[str], QYBQ: bool):\n if QYBQ:\n fgyz = {len(rdlD) for rdlD in nPrm}\n if len(fgyz) > 1:\n raise ValueError('Input data has varying number of values per row. Please check provided input data')\n fgyz.add(len(ZL...
[ "0.6761087", "0.6729761", "0.6513836", "0.6438157", "0.6385335", "0.63654524", "0.6263734", "0.62583905", "0.6255833", "0.6212334", "0.6211183", "0.62062204", "0.6201675", "0.61666995", "0.61343145", "0.6121989", "0.6118989", "0.61071795", "0.6073725", "0.60706", "0.6070016",...
0.80588007
0
Instantiate `PlainFrame` from ordered dict. Assumes keys to be column names with type annotations and values to be values.
def jG8h(Emd4, nPrm: 'collections.OrderedDict[str, Sequence]') -> 'PlainFrame': Wiwc, hkxX = zip(*nPrm.items()) ZLJ_, m1c7 = Emd4._parse_typed_columns(Wiwc) return Emd4.from_plain(data=hkxX, columns=ZLJ_, dtypes=m1c7, row_wise=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ez9c(dict, WfCS):\n T6S7 = []\n for G1Hx, Ty9i in dict.items():\n T6S7.append([G1Hx, Ty9i])\n jQ3Z = rLdf.DataFrame(T6S7, columns=WfCS)\n return jQ3Z", "def fIqG(YKHO, eKJ3, WfCS):\n uncH = rLdf.DataFrame.from_dict(eKJ3, orient='index', columns=WfCS)\n uncH = uncH.reset_index()\n ...
[ "0.63685435", "0.62464345", "0.6095923", "0.60642916", "0.6041559", "0.5951722", "0.5781031", "0.57471037", "0.57081604", "0.56951296", "0.56654984", "0.56471837", "0.56197417", "0.5537039", "0.54596746", "0.54495865", "0.54340917", "0.5428056", "0.54244924", "0.5409822", "0....
0.82753557
0
Converts PlainFrame into dictionary with key as typed columns and values as data. Returns
def MNRr(YKHO) -> 'collections.OrderedDict[str, tuple]': ZLJ_ = [(iVRZ.typed_column, iVRZ.values) for iVRZ in YKHO.plaincolumns] return g760.OrderedDict(ZLJ_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLv1(YKHO) -> dict:\n Ylbp = {}\n for _x49 in YKHO.data_features:\n Ylbp[_x49.key] = F5vI.typecast(_x49.dtype)\n return Ylbp", "def _fYl(YKHO):\n hkxX = {}\n for mWFP, fvDH in YKHO._columns.items():\n hkxX[mWFP] = fvDH.to_database(getattr(YKHO, mWFP, None))\n return hkxX", "...
[ "0.6954712", "0.62818605", "0.62708193", "0.6214804", "0.61942667", "0.61277246", "0.601162", "0.59994304", "0.5976457", "0.5975498", "0.5973699", "0.5925594", "0.5913598", "0.590992", "0.590216", "0.58729947", "0.5852472", "0.5852472", "0.5852472", "0.5852472", "0.58184606",...
0.6149699
5
Inspect all columns of dtype object and ensure no mixed dtypes are present. Raises type error otherwise. Ignores columns for which dtypes are already explicitly set.
def Uf64(YKHO, yuBP: TYPE_DSTR) -> gk6h: wly1 = {} for iVRZ in YKHO.df.columns: if iVRZ in yuBP: continue if EWQk.is_object_dtype(YKHO.df[iVRZ]): wly1[iVRZ] = YKHO.inspect_dtype_object(iVRZ) return wly1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uD99(nPrm):\n if all((nPrm[fvDH].dtypes == nPrm.dtypes[0] for fvDH in nPrm.columns)):\n if all((nPrm[fvDH].isnull().sum() == 0 for fvDH in nPrm.columns)):\n print('All columns have values of the correct type.')\n else:\n print('Bad result.')", "def JxlX(jQ3Z):\n e8t2('**Type...
[ "0.70867485", "0.68489903", "0.67461854", "0.6728249", "0.64754266", "0.645636", "0.63884103", "0.6336763", "0.6271342", "0.61969036", "0.6189384", "0.61450166", "0.6108982", "0.6063777", "0.60391325", "0.60314035", "0.60085917", "0.597513", "0.5947335", "0.5945935", "0.59280...
0.61040664
13
Get all dtypes for columns which have not been provided, yet. Assumes that columns of dtype object are not present. Raises type error otherwise.
def baUp(YKHO, yuBP: TYPE_DSTR) -> gk6h: BhKk = {} for iVRZ in YKHO.df.columns: if iVRZ in yuBP: continue BhKk[iVRZ] = YKHO.inspect_dtype(YKHO.df[iVRZ]) return BhKk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JxlX(jQ3Z):\n e8t2('**Type of every column in the data**')\n print('')\n print(jQ3Z.dtypes)", "def m1c7(YKHO) -> x1iM[str]:\n return [iVRZ.dtype for iVRZ in YKHO.plaincolumns]", "def r66a(YKHO, m1c7: TYPE_DTYPE_INPUT) -> gk6h:\n if isinstance(m1c7, list):\n if len(m1c7) != YKHO.df.sha...
[ "0.65239817", "0.6408806", "0.61233187", "0.6065816", "0.604482", "0.5963158", "0.59571636", "0.593806", "0.5936834", "0.58090985", "0.57966083", "0.57694626", "0.5765626", "0.57220525", "0.5674758", "0.56686723", "0.56302917", "0.5604693", "0.5604485", "0.5604228", "0.557179...
0.6124964
2
Inspect series of dtype object and ensure no mixed dtypes are present. Try to infer actual dtype after removing np.NaN distinguishing dtypes bool and str.
def PcxK(YKHO, iVRZ: str) -> str: dy_H = YKHO.df[iVRZ].dropna() try: yIp6 = rLdf.to_numeric(dy_H) return YKHO.inspect_dtype(yIp6) except ValueError: pass m1c7 = {type(WKvO) for WKvO in dy_H} if len(m1c7) > 1: raise TypeError('Column `{}` has mixed dtypes: {}. Currentl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _83z(dy_H: pd.Series) -> str:\n J8oL = {EWQk.is_bool_dtype: 'bool', EWQk.is_integer_dtype: 'int', EWQk.is_float_dtype: 'float', EWQk.is_datetime64_any_dtype: 'datetime'}\n for GfdN, Aofo in J8oL.items():\n if GfdN(dy_H):\n return Aofo\n raise TypeError(\"Type is not understand for co...
[ "0.70855945", "0.7065239", "0.6979094", "0.67403305", "0.6491286", "0.6475484", "0.6446953", "0.64218414", "0.64200073", "0.6314996", "0.6283848", "0.62426305", "0.62084246", "0.6199139", "0.6194982", "0.61911464", "0.61762136", "0.6094981", "0.60808", "0.60113406", "0.597092...
0.6623532
4
Get appropriate dtype of pandas series. Checks against bool, int, float and datetime. If dtype object is encountered, raises type error.
def _83z(dy_H: pd.Series) -> str: J8oL = {EWQk.is_bool_dtype: 'bool', EWQk.is_integer_dtype: 'int', EWQk.is_float_dtype: 'float', EWQk.is_datetime64_any_dtype: 'datetime'} for GfdN, Aofo in J8oL.items(): if GfdN(dy_H): return Aofo raise TypeError("Type is not understand for column '{}'. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EDdY(dy_H: pd.Series, yDqo: str) -> EL6K:\n GrP0 = {'bool': bool, 'int': int, 'float': float, 'str': str, 'datetime': lambda WKvO: rLdf.to_datetime(WKvO).to_pydatetime()}\n W_b1 = GrP0[yDqo]\n return [W_b1(WKvO) if not isinstance(WKvO, Bzco) else T2Pq for WKvO in dy_H]", "def TVLI(dy_H):\n if not...
[ "0.71820045", "0.7095558", "0.7025059", "0.67244714", "0.65434676", "0.6396191", "0.63210595", "0.6268763", "0.6195392", "0.6174257", "0.6168124", "0.6152117", "0.6139253", "0.61209184", "0.6077286", "0.6074643", "0.60624564", "0.5972227", "0.59623206", "0.59545696", "0.58716...
0.786083
0
Since pandas 0.24.0 exists `arrays.IntegerArray` which could be used as an nullable interger dtype. However, this is still experimental (0.25.3) and hence is not used yet.
def WIrv(YKHO) -> rLdf.Series: if YKHO.requires_nan: yDqo = 'float' else: yDqo = 'int' return YKHO._convert(dtype=yDqo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6Sx(YP8v):\n return aHYt(YP8v)", "def jTUJ(hkxX: Optional[Union[ArrayAttr, Sequence[Union[ArrayAttr, IntOrAttrList]]]]) -> OfVJ:\n if hkxX is None:\n return OfVJ.get([])\n if isinstance(hkxX, OfVJ):\n return hkxX\n if isinstance(hkxX, list):\n hkxX = [OfVJ.get([Wawa.get(E9L3...
[ "0.6449275", "0.62429845", "0.62327516", "0.60950404", "0.59707195", "0.59292316", "0.5907126", "0.59008235", "0.58847946", "0.5843335", "0.57713395", "0.5722363", "0.5695228", "0.56517184", "0.56418616", "0.5628159", "0.5601276", "0.55606514", "0.5557012", "0.5460305", "0.54...
0.55060124
19
Pandas timestamp values have to be created via `pd.to_datetime` and can't be casted via `astype`.
def s0e4(YKHO) -> rLdf.Series: dy_H = rLdf.to_datetime(YKHO.sanitized) dy_H.name = YKHO.parent.name return dy_H
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Elj9(YKHO, jQ3Z: DataFrame, y5HZ: str='ts') -> hxoQ:\n return jQ3Z.withColumn(y5HZ, (fvDH(y5HZ) / 1000).cast(NmwO()))", "def VnKZ(f4IJ):\n f4IJ = f4IJ.convert_objects(convert_numeric=True)\n for iVRZ in f4IJ:\n if iVRZ in Z9rn.dates:\n f4IJ[iVRZ] = f4IJ[iVRZ].astype('datetime64')\n...
[ "0.71113366", "0.6984713", "0.69662225", "0.6962683", "0.68888426", "0.6767642", "0.6694901", "0.66372114", "0.6523099", "0.6374327", "0.63732517", "0.6368356", "0.6327262", "0.632549", "0.62751055", "0.62132126", "0.61919034", "0.6164887", "0.6164303", "0.6136397", "0.612279...
0.58880985
29
Check for matching column names. Take column order into account if required.
def hQQ5(YKHO, Elif: 'PlainFrame', siwB: bool): if siwB: qQ1Y = enumerate(zip(YKHO.parent.columns, Elif.columns)) for or8S, (LFlW, _tIi) in qQ1Y: if LFlW != _tIi: raise AssertionError("Mismatching column names at index {}: left '{}' vs. right '{}'".format(or8S + 1, LFlW, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V0OA(jQ3Z: pd.DataFrame, ZWCE: typing.Sequence[str]) -> None:\n for aEqx in ZWCE:\n if aEqx not in jQ3Z.columns:\n raise ValueError(f\"'{aEqx}' column not found in input\")\n return", "def iGAZ(xIrQ, WB3H):\n FUBj = False\n GYaL = False\n G9jH.info('Checking column headers ar...
[ "0.76251984", "0.7195401", "0.709563", "0.7042353", "0.69941586", "0.6691781", "0.66475064", "0.66325456", "0.663073", "0.6598974", "0.6592288", "0.6592108", "0.6558971", "0.6541223", "0.65041465", "0.6478449", "0.6473228", "0.640525", "0.63871473", "0.6381296", "0.6322646", ...
0.6192432
27
Check for matching dtypes.
def kQqI(YKHO, Elif: 'PlainFrame'): go_b = {iVRZ.name: iVRZ.dtype for iVRZ in YKHO.parent.plaincolumns} BUaT = {iVRZ.name: iVRZ.dtype for iVRZ in Elif.plaincolumns} if go_b != BUaT: tO9_ = 'Mismatching types: ' for iVRZ, w0Ve in go_b.items(): dusu = BUaT[iVRZ] if w0Ve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sA5Z(wEHg):\n for YRbF in wEHg:\n if not wEHg.dtypes[1] == wEHg.dtypes[YRbF]:\n raise ValueError('Types do not match')", "def RIBY(YKHO):\n m1c7 = VIGk(with_complex=True)\n for k0pN, DQwO in enumerate(m1c7):\n for joNQ in m1c7[k0pN + 1:]:\n assert (DQwO == joNQ) =...
[ "0.80135894", "0.7234959", "0.68205154", "0.6746715", "0.67441595", "0.66658807", "0.6659452", "0.6638226", "0.66149473", "0.66130525", "0.6607592", "0.6601777", "0.65685874", "0.65441304", "0.6497217", "0.6473403", "0.64085436", "0.64021945", "0.63886726", "0.6349159", "0.63...
0.6849566
2
Set or change the operation name.
def m_Kn(YKHO, hTqE: str) -> 'Span': with YKHO.update_lock: YKHO.operation_name = hTqE return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m_Kn(YKHO, hTqE):\n return YKHO", "def WZrJ(YKHO, L15R=''):\n YKHO.name = L15R", "def mWFP(YKHO, Dokz: str) -> None:\n raise NotImplementedError()", "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.options['name'] = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name...
[ "0.7433442", "0.7001983", "0.67910045", "0.6782286", "0.67231905", "0.6708289", "0.6708289", "0.6684355", "0.6664667", "0.66417277", "0.6621219", "0.6621219", "0.6621219", "0.6621219", "0.6621219", "0.6613929", "0.6613929", "0.6613633", "0.6591319", "0.65641296", "0.6563096",...
0.72364527
1
close the database's connection
def DDI8(YKHO): YKHO.connect.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZlT(Emd4):\n NCls.close()", "def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None", "def DDI8(YKHO):\n RdPg.debug('DB -> close')\n YKHO.conn.close()", "def ngVb(AJ5d):\n NCls = p9bx()\n if NCls is not None:\n NCls.close()", "def D...
[ "0.8881403", "0.8559506", "0.8463414", "0.83629894", "0.83302844", "0.8282513", "0.82658875", "0.8225167", "0.8153175", "0.81202096", "0.8097706", "0.80866265", "0.80779445", "0.8049228", "0.803939", "0.80156606", "0.8003277", "0.80013746", "0.7982475", "0.7946808", "0.794660...
0.0
-1
Common asserts used for function check_bounds_column()
def UeKH(YKHO): BWXx = ROek.check_bounds_column(GPtr.NR_COLS - 1) YKHO.assertTrue(BWXx) BWXx = ROek.check_bounds_column(GPtr.NR_COLS) YKHO.assertFalse(BWXx) BWXx = ROek.check_bounds_column(GPtr.NR_COLS + 1) YKHO.assertFalse(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hQIn(YKHO):\n HxG4 = 'c'\n YKHO.assert_calc_bounds(HxG4)", "def T5as(YKHO):\n tpio = eOte('yolo', 'uniform', -3, 4)\n with trZe.raises(NotImplementedError):\n assert -3 in tpio", "def wIQT(YKHO):\n WBPg = ['SampleID', 'BarcodeSequence', 'LinkerPrimerSequence', 'Description']\n o0Go...
[ "0.74237484", "0.69838613", "0.6953942", "0.681433", "0.67596763", "0.6752799", "0.6680745", "0.66799754", "0.65971136", "0.6589417", "0.65089524", "0.6441844", "0.6408359", "0.6392604", "0.63723135", "0.63084906", "0.62712693", "0.6248684", "0.61748815", "0.6167", "0.6103051...
0.83791935
0
View for INSPIRE author new form review by a cataloger.
def NYmC(): viM7 = QePW.values.get('objectid', 0, type=int) if not viM7: eTsH(400) DTYz = inqO.get(viM7) L03z = nqZD(data=DTYz.extra_data['formdata'], is_review=True) OaeV = {'action': nKyW('.reviewhandler', objectid=viM7), 'name': 'authorUpdateForm', 'id': 'authorUpdateForm', 'objectid': vi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QkZF():\n viM7 = QePW.values.get('objectid', 0, type=int)\n if not viM7:\n eTsH(400)\n L03z = nqZD(formdata=QePW.form)\n jbn3 = qfgv()\n jbn3.visit(L03z)\n DTYz = inqO.get(viM7)\n DTYz.extra_data['approved'] = True\n DTYz.extra_data['ticket'] = QePW.form.get('ticket') == 'True'\n...
[ "0.6186342", "0.6019241", "0.5921319", "0.5894577", "0.5713364", "0.569221", "0.5633519", "0.5633519", "0.5633519", "0.5596706", "0.55956036", "0.5584584", "0.5584584", "0.55457455", "0.554146", "0.55128425", "0.550151", "0.5495999", "0.54383487", "0.5430356", "0.54087865", ...
0.75021577
0
Form handler when a cataloger accepts an author review.
def QkZF(): viM7 = QePW.values.get('objectid', 0, type=int) if not viM7: eTsH(400) L03z = nqZD(formdata=QePW.form) jbn3 = qfgv() jbn3.visit(L03z) DTYz = inqO.get(viM7) DTYz.extra_data['approved'] = True DTYz.extra_data['ticket'] = QePW.form.get('ticket') == 'True' DTYz.extra_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NYmC():\n viM7 = QePW.values.get('objectid', 0, type=int)\n if not viM7:\n eTsH(400)\n DTYz = inqO.get(viM7)\n L03z = nqZD(data=DTYz.extra_data['formdata'], is_review=True)\n OaeV = {'action': nKyW('.reviewhandler', objectid=viM7), 'name': 'authorUpdateForm', 'id': 'authorUpdateForm', 'ob...
[ "0.7060465", "0.629307", "0.629307", "0.6149655", "0.6149655", "0.6149655", "0.6120107", "0.6103637", "0.6026453", "0.60095066", "0.5672402", "0.5662186", "0.5639166", "0.5606529", "0.55910844", "0.5585579", "0.55271304", "0.55271304", "0.55214375", "0.5510191", "0.5484171", ...
0.7324554
0
Set the various initial parameters for the specified model
def kwFM(YKHO, BWaL=None, DX4_=None, KKIi=None): if len(YKHO.dG) > 0 and BWaL != None: assert len(YKHO.dG) == len(BWaL) if len(YKHO.dG) > 0 and DX4_ != None: assert len(YKHO.dG) == len(DX4_) if len(YKHO.dG) > 0 and KKIi != None: assert len(YKHO.dG) == len(KKIi) if BWaL != None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qhPr(C3ST: LogisticRegression):\n TFPw = 15\n ROaS = 33\n C3ST.classes_ = oyIN.array([YRbF for YRbF in range(15)])\n C3ST.coef_ = oyIN.zeros((TFPw, ROaS))\n if C3ST.fit_intercept:\n C3ST.intercept_ = oyIN.zeros((TFPw,))", "def qn5H(YKHO):\n YKHO.controller.set_new_model_test_input_pa...
[ "0.7503698", "0.74369335", "0.7389962", "0.72154593", "0.71639836", "0.71451163", "0.70785147", "0.70662534", "0.70307606", "0.6950158", "0.6889478", "0.686397", "0.68393457", "0.68064916", "0.6782626", "0.6708926", "0.6668387", "0.66682464", "0.6650155", "0.66411406", "0.657...
0.0
-1
Tests can not set unchanged artifacts path.
def TSMa(): DqEM = jth9.copy(fWUt.artifacts_path) assert DqEM is not None assert fWUt._contracts fWUt.set_artifacts_path(DqEM) assert fWUt.artifacts_path == DqEM assert fWUt._contracts
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7ff():\n DqEM = jth9.copy(fWUt.artifacts_path)\n assert DqEM is not None\n assert fWUt._contracts\n fWUt.set_artifacts_path('new path')\n assert fWUt.artifacts_path == 'new path'\n assert not fWUt._contracts", "def Ir81():\n DqEM = jth9.copy(fWUt.artifacts_path)\n assert DqEM is not ...
[ "0.70567626", "0.6995183", "0.623431", "0.6215728", "0.62038463", "0.60514677", "0.6049854", "0.6023675", "0.59698844", "0.59686464", "0.5953195", "0.5943441", "0.5891", "0.5854915", "0.5839878", "0.58333623", "0.58179164", "0.5816709", "0.580364", "0.58033425", "0.5800118", ...
0.7390868
0
Tests that a correct artifacts path can be set (happy flow).
def Y7ff(): DqEM = jth9.copy(fWUt.artifacts_path) assert DqEM is not None assert fWUt._contracts fWUt.set_artifacts_path('new path') assert fWUt.artifacts_path == 'new path' assert not fWUt._contracts
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lx8u(YKHO):\n pass", "def w2lt():\n z_es = GkAb(qf3c())\n vQxz = z_es / 'figures'\n vQxz.mkdir()\n rgaV = qqRc()\n sWmO = GkAb.cwd()\n Hy7s.chdir(vQxz)\n a0BP = rgaV / 'tests' / 'data' / 'drop.zip'\n Z4hz(a0BP)\n assert len(list(GkAb('.').rglob('*.png'))) == 1\n Hy7s.chdir(sW...
[ "0.6734806", "0.6585317", "0.63297534", "0.62533635", "0.6192594", "0.6092325", "0.60607845", "0.6028703", "0.6021184", "0.60106695", "0.5944625", "0.59431756", "0.59092385", "0.58946306", "0.58640033", "0.5832616", "0.58008415", "0.5799116", "0.57847387", "0.5770137", "0.574...
0.6141658
5
Tests setting of a DataTokenTemplate on a Contract.
def t4zr(): hLKG = fWUt.get('DataTokenTemplate') UTX6 = hLKG.address fWUt.set('second_name', hLKG) Aofo = fWUt._contracts['second_name'] assert len(Aofo) == 2 assert Aofo[0].address == UTX6 assert isinstance(Aofo[1], sLJg) EtKK = fWUt._contracts['second_name', UTX6] assert EtKK == Ao...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fxgi(tjNw):\n assert tjNw.user_params.get('template_parameter') is not None\n assert tjNw.meta['parameters']['dummy_parameter']['value'] == tjNw.user_params['template_parameter']", "def ty5D():\n YNTE = fWUt.get_concise_contract('DataTokenTemplate')\n assert isinstance(YNTE, sLJg)", "async def ...
[ "0.5199592", "0.51107925", "0.5046259", "0.4994357", "0.49763298", "0.49422327", "0.4907097", "0.48470324", "0.47955355", "0.47663856", "0.476633", "0.47482803", "0.47373295", "0.47278598", "0.4717996", "0.4717283", "0.4710187", "0.46833718", "0.46761113", "0.46761113", "0.46...
0.5985615
0
check if a class is the subclass of analyzer.fitters.fitter_base.Fit
def Sveh(Emd4: Type[Fit]) -> bool: try: if issubclass(Emd4, k6U6) and Emd4 is not k6U6: return True else: return False except TypeError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ji4n(Emd4, ysDD):\n return Emd4 is not ysDD and issubclass(Emd4, ysDD)", "def b_gB(YEnM, J9Xy):\n if type(YEnM) is not J9Xy:\n return issubclass(type(YEnM), J9Xy)\n else:\n return False", "def b_gB(YEnM, J9Xy):\n if issubclass(type(YEnM), J9Xy):\n if type(YEnM) is not J9Xy:...
[ "0.6576094", "0.6364645", "0.6303626", "0.6294872", "0.62884855", "0.62675166", "0.62474513", "0.6242943", "0.62300366", "0.62144125", "0.61947626", "0.61947626", "0.6180429", "0.61680543", "0.61600274", "0.61493444", "0.6127009", "0.6123876", "0.6121389", "0.6117836", "0.611...
0.86213636
0
Toggle the mic output (un)mute mic
def SwMi(YKHO, cCQQ, Gaon, JZXy): YKHO.storage.call.mute_toggle()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXxP(YKHO):\n YKHO._mute_toggle(YKHO.pulse_core.Get('org.PulseAudio.Core1', 'FallbackSink'))", "def bCEj(YKHO):\n YKHO._mute_toggle(YKHO.pulse_core.Get('org.PulseAudio.Core1', 'FallbackSource'))", "def acmm(bGrB):\n lGbz.unmute()", "def YxOQ(bGrB):\n lGbz.mute()", "def CrS3(Emd4) -> bool:\n...
[ "0.8066267", "0.727805", "0.71628326", "0.6953675", "0.68161976", "0.6781403", "0.6756041", "0.675276", "0.6629703", "0.6501688", "0.64002997", "0.63784355", "0.63501537", "0.63275814", "0.62751156", "0.62683904", "0.62608665", "0.62523144", "0.6239259", "0.621032", "0.620891...
0.7606264
1