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
Return True if `self` and `other` are the same object.
def xa14(YKHO, Elif): return hasattr(Elif, 'code_data') and Elif.code_data == YKHO.code_data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kJ0s(YKHO, Elif):\n return YKHO is Elif", "def xa14(YKHO, Elif: object) -> bool:\n return YKHO is Elif", "def kJ0s(YKHO, Elif):\n return type(YKHO) is type(Elif)", "def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)", "def xa14(YKHO, Elif):\n return YKHO is Elif", "def xa14(YKHO, Elif):...
[ "0.8677003", "0.8506248", "0.84482914", "0.830938", "0.82876307", "0.8256801", "0.8256801", "0.8256801", "0.81982976", "0.818804", "0.81828374", "0.8180329", "0.8164267", "0.8164267", "0.8164267", "0.8164267", "0.8164267", "0.8164267", "0.8164267", "0.8164267", "0.8164267", ...
0.0
-1
Initialize a new Nvim instance. This method is moduleprivate. Also worth pointing out that as insane as this __init__ is, we still never defined the script context that any plugins would potentially need.
def FIMM(YKHO, cuiw: Session, LOJ7: int, yIVm: Dict[Any, Any], SnBA: Dict[int, Any]=None, x8I_: Optional[bool]=True, enFh=None): YKHO.error = yVc3 YKHO._err_cb = HwRy.stderr.write if enFh is None else enFh YKHO.session = cuiw if YKHO.session is None: YKHO.session = ML1S(YKHO) YKHO.channel_id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, GxR8=None):\n YKHO.nvim = GxR8 if GxR8 is not None else Kqxv.from_session(YKHO)\n U34r('install import hook/path')\n HwRy.path_hooks.append(YKHO.hook)\n HwRy.path.append(GxR8.VIM_SPECIAL_PATH)\n YKHO.hook = eWKh(GxR8)\n import types\n exec('import sys', globals(), locals())\n ...
[ "0.72115535", "0.6533685", "0.64895314", "0.6478582", "0.64722556", "0.64164704", "0.6346634", "0.6324982", "0.6309263", "0.62768155", "0.6274767", "0.6251675", "0.6238677", "0.61093175", "0.61026883", "0.6102386", "0.60931134", "0.60891813", "0.6081459", "0.6072593", "0.6051...
0.6260258
11
Test inequality of Buffers. Necessary for Python 2 compatibility. We never defined eq? If I define eq, I'll need to define hash. Otherwise hash returns nothing. Oh shit we should add reduce so we can pickle these things. Awh shit this is gonna get complicated.
def Vdqg(YKHO, Elif): return not YKHO.__eq__(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yl4N(YKHO):\n\n class Bacon(Mkmy.Serializable):\n\n def FIMM(YKHO, LCjD, a8Ig):\n YKHO.spam = LCjD\n YKHO.eggs = a8Ig\n jzdc = aMQt(1, 2)\n Fg_i = aMQt(1, 3)\n YKHO.assertFalse(jzdc == Fg_i)", "def Ef6G(YKHO):\n jzdc = Xzgq(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n...
[ "0.6589576", "0.65052485", "0.6415454", "0.6356899", "0.6315978", "0.6294838", "0.62799525", "0.6226839", "0.6190443", "0.613991", "0.6127957", "0.6123673", "0.6121078", "0.6121078", "0.6110222", "0.6110222", "0.6105258", "0.6105258", "0.6103343", "0.6103343", "0.60986537", ...
0.0
-1
Initialize a RemoteApi with object and api prefix.
def FIMM(YKHO, YEnM, _OVD='nvim_'): YKHO._obj = YEnM YKHO._api_prefix = _OVD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def INeU(g89h: dict, K8MZ: Namespace=None):\n if c5dE.api is None:\n c5dE.api_options = g89h.copy()\n c5dE.api = v067(g89h)\n c5dE.cmd_args = K8MZ", "def FIMM(YKHO) -> None:\n YKHO.api = fyIx()", "def FIMM(YKHO, nNXP):\n YKHO.api = nNXP", "def FIMM(YKHO, rkpa):\n YKHO.api_ver...
[ "0.7110546", "0.6731175", "0.66951585", "0.65795", "0.652404", "0.64837754", "0.6426162", "0.6426162", "0.64216566", "0.6411594", "0.6392642", "0.6338392", "0.6319814", "0.62911236", "0.62911236", "0.62911236", "0.62911236", "0.62911236", "0.62911236", "0.624339", "0.62427396...
0.7492496
0
Return a map value by key.
def OP2O(YKHO, H5ew): try: return YKHO._get(H5ew) except yVc3 as exc: raise sl_g(BQDi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fo50(dict, H5ew):\n return dict[H5ew]", "def _oqe(YKHO, H5ew):\n for G1Hx, Ty9i in YKHO._map:\n if H5ew == G1Hx:\n return Ty9i\n return None", "def Zmkp(YKHO, H5ew):\n d6pt = YKHO.find_index(H5ew)\n if d6pt is not None:\n return YKHO._map_entries[d6pt].value\n els...
[ "0.7786248", "0.74088556", "0.7357368", "0.7274237", "0.7092801", "0.70132", "0.69215196", "0.68762076", "0.6858593", "0.68569654", "0.6817665", "0.67987394", "0.6793886", "0.6791098", "0.6784238", "0.6751329", "0.6751329", "0.67317176", "0.67134875", "0.66932225", "0.6692990...
0.0
-1
Return an iterator for the sequence.
def Vs4Q(YKHO): DumB = YKHO._fetch() for ZfUD in DumB: yield ZfUD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UDAb(YKHO):\n if YKHO.pos is not None:\n E_nZ(YKHO.iterator, n=YKHO.step)\n YKHO.pos += YKHO.step + 1\n else:\n E_nZ(YKHO.iterator, n=YKHO.start)\n YKHO.pos = YKHO.start + 1\n try:\n l81M = next(YKHO.iterator)\n while l81M.id == '':\n YKHO.n_skipped...
[ "0.7773096", "0.76065546", "0.72980905", "0.6938454", "0.67701757", "0.6759676", "0.6688644", "0.665781", "0.66512877", "0.66512877", "0.6640655", "0.66219807", "0.6589442", "0.6582868", "0.65464664", "0.6540544", "0.652028", "0.6519213", "0.6515027", "0.6493311", "0.6493123"...
0.0
-1
Initialize the Response instance.
def FIMM(YKHO, ZNx2, gTi_): YKHO._msgpack_stream = ZNx2 YKHO._request_id = gTi_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def diAb():\n oGir()", "def FIMM(YKHO):\n YKHO.response = {'message': '', 'result': {}}", "def FIMM(YKHO):\n YKHO.response = {'message': '', 'result': {}}", "def FIMM(YKHO):\n YKHO.response = {'message': '', 'result': {}}", "def FIMM(YKHO):\n YKHO.response = {'message': '', 'result': {}}", ...
[ "0.85482824", "0.8200882", "0.8200882", "0.8200882", "0.8200882", "0.8011582", "0.78610384", "0.7739203", "0.77280515", "0.7647992", "0.76152825", "0.7610091", "0.7477998", "0.7438753", "0.7406599", "0.7360637", "0.73471636", "0.7325259", "0.72958106", "0.726246", "0.72449845...
0.0
-1
Normalizes Tensor to range [0.5, 0.5]. Scales a Tensor uniformly to fit within [0.5, 0.5]^n. Additionally, each dimension is shifted to be centred around [0]^n i.e. the origin, in a way that data extends the same distance in positive and negative direction. In other words, the mean between maximum and minimum value of ...
def mIKx(vhpA): assert len(vhpA.shape) == 3 kvoN = qkSJ.reduce_max(vhpA, axis=1, keepdims=True) QzZ7 = qkSJ.reduce_min(vhpA, axis=1, keepdims=True) uLpt = qkSJ.subtract(kvoN, QzZ7) Rtl7 = qkSJ.reduce_max(uLpt, axis=2, keepdims=True) Fpus = qkSJ.divide(vhpA - QzZ7 - uLpt / 2, Rtl7) def r0lV(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(WKvO):\n return WKvO / ZylS.sqrt(ZylS.reduce_sum(WKvO ** 2, axis=-1, keep_dims=True) + 1e-06)", "def NkkI(WKvO, tpio, V46T=1e-05):\n WKvO = ht2j.clamp(WKvO, min=V46T)\n AXJc = WKvO / WKvO.sum(dim=tpio, keepdim=True)\n return AXJc", "def zYio(WKvO):\n JBMS, SRYB = ZylS.nn.moments(WKvO, a...
[ "0.6480214", "0.64400244", "0.64248675", "0.6374221", "0.6365028", "0.63634914", "0.62249136", "0.6216753", "0.62059724", "0.61986", "0.6163273", "0.614506", "0.61364293", "0.61354864", "0.6131735", "0.61206424", "0.61132157", "0.6112247", "0.61013114", "0.60723907", "0.60718...
0.60294634
30
Returns spline appromation (slope & yintercept) for given x and y values
def gVxR(fiGP, vNbQ): NmYP = ZylS.divide(ZylS.subtract(vNbQ[1:], vNbQ[:-1]), ZylS.subtract(fiGP[1:], fiGP[:-1])) NmYP = ZylS.concat([NmYP, ZylS.expand_dims(NmYP[-1], axis=0)], axis=0, name='ms') lHmx = ZylS.subtract(vNbQ, ZylS.multiply(NmYP, fiGP), name='bs') return (NmYP, lHmx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BF4U(WKvO, LVAh, VMex):\n return LVAh - VMex * WKvO", "def Dee1(LVAh):\n LVAh = XTiz.ravel(LVAh)\n Xkrd = LVAh.shape[0]\n WKvO = XTiz.arange(1, Xkrd + 1)\n k0lF = XTiz.zeros((Xkrd, 2))\n k0lF[:, 0] = 1.0\n k0lF[:, 1] = WKvO\n return Zxt2.linalg.lstsq(k0lF, LVAh)[0][1]", "def GW6u(WK...
[ "0.7316788", "0.72446465", "0.7208556", "0.7181677", "0.7123203", "0.7109182", "0.7079016", "0.7006258", "0.69869864", "0.69733167", "0.69733167", "0.69275445", "0.6918424", "0.69071996", "0.6899273", "0.67913264", "0.67683005", "0.6764076", "0.67631656", "0.6757417", "0.6753...
0.0
-1
Fourier basis, hardcoded to order 3 for now
def y10j(YKHO, W061): he6J = qw7D(W061) he6J = he6J * mM0K he6J = qw7D([[YhSR(Ty9i), YhSR(2 * Ty9i), YhSR(3 * Ty9i), YhSR(4 * Ty9i), YhSR(5 * Ty9i)] for Ty9i in he6J]) _x49 = VNqG(YKHO.featureNum) _x49[0] = 1 for YRbF in range(0, YKHO.stateDim): _x49[YKHO.porder * YRbF + 1:YKHO.porder * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D8MD(YKHO):\n a1PO = YKHO.axis\n LVAh = YKHO.data\n if isinstance(a1PO, qupb):\n yzQ0 = a1PO.get_FrequencyAxis()\n if a1PO.atype == 'complete':\n fuBA = a1PO.length * XTiz.fft.fftshift(XTiz.fft.ifft(XTiz.fft.fftshift(LVAh))) * a1PO.step\n elif a1PO.atype == 'upper-half'...
[ "0.74019027", "0.7242557", "0.72332376", "0.70575994", "0.696283", "0.6956839", "0.6910116", "0.68887305", "0.68556947", "0.6853436", "0.6819045", "0.68164563", "0.6744188", "0.6744188", "0.6729535", "0.6692145", "0.66812444", "0.666316", "0.6617924", "0.6583583", "0.65835696...
0.67910224
12
encodes valid json as a jwt
def kLcZ(YKHO, lCQT: dict, eJTR: str) -> str: if eJTR == 'refresh': return hHYi(lCQT, YKHO._refresh_secret, algorithm='HS256').decode('utf-8') elif eJTR == 'access': return hHYi(lCQT, YKHO._access_secret, algorithm='HS256').decode('utf-8') raise ValueError('token kind must be either refresh ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLcZ(nPrm):\n return DvJO.encode(nPrm, P4t4.config['JWT_SECRET'], algorithm=P4t4.config['JWT_ALGORITHM'])", "def kLcZ(pB3N, ayp1=w8hR):\n ww2x(pB3N, claims=ayp1)\n return CZDQ(pB3N, gCuF.SECRET_KEY)", "def kLcZ(pB3N: dict, ayp1: Sequence[str]=w8hR) -> str:\n ww2x(pB3N, claims=ayp1)\n return ...
[ "0.7485074", "0.732751", "0.7220505", "0.7194796", "0.7159284", "0.6986943", "0.6956028", "0.69046015", "0.6889136", "0.6883191", "0.6876206", "0.6876203", "0.6876203", "0.6858474", "0.6856629", "0.68387336", "0.68330353", "0.68185383", "0.6815096", "0.67755735", "0.6773898",...
0.6479613
39
decodes jwt into json(python dict)
def x8I_(YKHO, eOtH: str, eJTR: str) -> dict: if eJTR == 'refresh': return uPlZ(eOtH.replace('Bearer ', '').encode('utf-8'), YKHO._refresh_secret, algorithms=['HS256']) if eJTR == 'access': return uPlZ(eOtH.replace('Bearer ', '').encode('utf-8'), YKHO._access_secret, algorithms=['HS256']) ra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yXnH(qv1X, ihSY):\n return DvJO.decode(ihSY, qv1X.settings.get('giriasecret', 'galado'))", "def uPlZ(QePW):\n Jpbe = QePW.authorization[1]\n return DvJO.decode(Jpbe, key=XmI_, options={'verify_aud': False})", "def uPlZ(QePW):\n WBPg = QePW.headers.get('Authorization')\n rxBR = WBPg.split(' '...
[ "0.75278604", "0.74602556", "0.7454068", "0.73670745", "0.7164088", "0.7116752", "0.7105042", "0.70022315", "0.6986969", "0.6981265", "0.69749826", "0.6944828", "0.6910776", "0.6886659", "0.68490165", "0.6832748", "0.68034965", "0.6757888", "0.674667", "0.6735917", "0.6704561...
0.6063685
91
function introduces distinct learning parameters, gamma and alpha_c, for confidencebased updates
def FIMM(YKHO, Cwt5=0.1, UqYS=1, nS5C=0.1, KMvS=0.1, JYao=5): super().__init__(alpha=Cwt5, beta=UqYS, nbandits=JYao) YKHO.alpha_c = nS5C YKHO.gamma = KMvS YKHO.conf_values = oyIN.full(YKHO.nbandits, 0, float) YKHO.conf_PE = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M0ln(YKHO):\n if YKHO.params['decay_exploration']:\n YKHO.params['alpha'] = YKHO.params['init_alpha'] / (1.0 + YKHO._step_counter / 2000000)\n YKHO.params['epsilon'] = YKHO.params['init_epsilon'] / (1.0 + YKHO._step_counter / 2000000)", "def M0ln(YKHO):\n if YKHO.params['decay_exploration...
[ "0.68954855", "0.68954855", "0.67904896", "0.67035663", "0.6694008", "0.6493818", "0.6475452", "0.64460033", "0.64392906", "0.64153594", "0.64107096", "0.63761866", "0.6320582", "0.631549", "0.62985945", "0.62799907", "0.6277948", "0.62635237", "0.62458956", "0.6238049", "0.6...
0.0
-1
return first duplicate string in list string_list if found, otherwise return empty list
def eVqU(kcsq): lRtJ = [WKvO for WKvO in kcsq if kcsq.count(WKvO) > 1] if lRtJ: lRtJ = lRtJ[0:len(lRtJ) / 2] return lRtJ else: return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vaOw(kcsq):\n Cbp4 = []\n for GIN8 in kcsq:\n if GIN8 not in Cbp4:\n Cbp4.append(GIN8)\n return Cbp4", "def lmHJ(IqQl):\n for YRbF in range(len(IqQl)):\n for r845 in range(YRbF + 1, len(IqQl)):\n if IqQl[YRbF] == IqQl[r845]:\n return IqQl[YRbF]",...
[ "0.7194857", "0.70430994", "0.7026745", "0.6776471", "0.67581826", "0.6718376", "0.6633245", "0.65787154", "0.65503734", "0.6525517", "0.6421982", "0.6368915", "0.63639814", "0.63415986", "0.6334506", "0.62481415", "0.62396574", "0.6216436", "0.62150276", "0.6205493", "0.6197...
0.7483252
0
Creates a random tensor of size [shape] under the Rademacher distribution (P(x=1) == P(x=1) == 0.5)
def uNmH(ROpF): _5ZH, s71p = KCQP.__version__.split('.')[:2] if int(_5ZH) == 0 and int(s71p) < 11: return KCQP.math.random_rademacher(ROpF) else: return KCQP.random.rademacher(ROpF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AKbe(zNig):\n RW31 = ht2j.rand(zNig)\n return RW31", "def NQcI(ROpF, yDqo, yokr):\n F_hp = ZylS.random.stateless_uniform(shape=ROpF, seed=yokr)\n return ZylS.cast(ZylS.sign(F_hp - 0.5), yDqo)", "def SpGD(exwG, r8hN):\n return ht2j.tensor(oyIN.random.rand(exwG, r8hN))", "def DbxN(zNig):\n ...
[ "0.69349474", "0.68411535", "0.6821537", "0.68098074", "0.67297703", "0.671323", "0.66633123", "0.6640407", "0.6635911", "0.6604767", "0.65022385", "0.6480019", "0.6463265", "0.64621836", "0.64408886", "0.6402019", "0.6385277", "0.6324169", "0.628285", "0.6263754", "0.62602",...
0.6321025
18
Return the player's current charisma
def Ijqi(YKHO): zFiD = YKHO._content()[-2] kUBT = ZbWC.search('Ch:(\\d+)', zFiD) if kUBT is not None: return int(kUBT.groups()[0]) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WlBs(YKHO):\n if YKHO.dark_turn:\n return 'd'\n else:\n return 'w'", "def mCd_(YKHO):\n return YKHO.current_player", "def vevC(YKHO):\n return YKHO.PLAYERS[YKHO.TURN % len(YKHO.PLAYERS)]", "async def char_info(YKHO, OaeV, u46J: str):\n print(u46J)\n hcXw = YKHO.session.que...
[ "0.66513646", "0.6490812", "0.6431772", "0.6388627", "0.6301473", "0.62642974", "0.62642974", "0.62589616", "0.62423", "0.62322533", "0.621791", "0.61865085", "0.61865085", "0.6174614", "0.61679536", "0.6129964", "0.6112777", "0.6105061", "0.60988045", "0.60532343", "0.605280...
0.55761576
67
Create a Action. type must be one of the TYPE_ constants. amount must be the amount of the action. For a raise, it must be the total bet. all_in must be True if this represents an allin.
def FIMM(YKHO, type, Z5kt=0, JsO4=False): YKHO.type = type YKHO.amount = Z5kt YKHO.all_in = JsO4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nULr(Emd4, Z5kt, JsO4=False):\n return eax5(Emd4.TYPE_ANTE, amount=Z5kt, all_in=JsO4)", "def nfhH(Emd4, Z5kt, JsO4=False):\n return eax5(Emd4.TYPE_BET, amount=Z5kt, all_in=JsO4)", "def DtUo(Emd4, Z5kt, JsO4=False):\n return eax5(Emd4.TYPE_BLIND, amount=Z5kt, all_in=JsO4)", "def SWO5(Emd4, Z5kt):...
[ "0.73078877", "0.72614235", "0.63459224", "0.6100775", "0.59211785", "0.58027047", "0.5689203", "0.5646985", "0.5624119", "0.5408793", "0.535005", "0.534876", "0.5348632", "0.53223056", "0.5260405", "0.52232593", "0.52206767", "0.5220148", "0.5218765", "0.5115985", "0.5105265...
0.64548177
2
Create a new call request
def KsOu(Emd4, Z5kt, D0lh=None): return pXLB(type=Emd4.CALL_REQUEST, amount=Z5kt, raise_amount=D0lh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HXwd(YKHO, MOPg, QpfX, pB3N):\n return j0PZ(MOPg, QpfX, pB3N)", "def d9vn(YKHO, MgI3, *qIxc, **B2fa):\n return wcXs(MgI3, *qIxc, **B2fa)", "def pXPL(YKHO, NKcE, *NArs):\n return YKHO._send('createRequest', NKcE, NArs)", "def d9vn(YKHO, nPrm, NKcE):\n raise NotImplementedError", "def d9vn(YK...
[ "0.75642765", "0.71811503", "0.6831495", "0.6823618", "0.67318183", "0.6674545", "0.6667444", "0.65148884", "0.64476454", "0.6415023", "0.6415023", "0.63850105", "0.63850105", "0.63850105", "0.63850105", "0.63850105", "0.63850105", "0.63850105", "0.63850105", "0.63850105", "0...
0.7131423
2
get dataloaders of training set and test set of cifar10 from torchvision apis
def pYAW(qIxc): NkkI = Ymkf.Normalize((0.4914, 0.4822, 0.4465), (0.247, 0.2435, 0.2616)) dOxh = Ymkf.Compose([Ymkf.RandomCrop(32, padding=4), Ymkf.RandomHorizontalFlip(), Ymkf.ToTensor(), NkkI]) _Mkn = Ymkf.Compose([Ymkf.ToTensor(), NkkI]) B2fa = {'num_workers': 0, 'pin_memory': True} nIKz = TTda.da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DFwI(qIxc):\n EPL3 = TTda.datasets.CIFAR10(qIxc.data_path, train=True, transform=Ymkf.ToTensor(), download=True)\n qby3 = TTda.datasets.CIFAR10(qIxc.data_path, train=False, transform=Ymkf.ToTensor(), download=True)\n Z52_, CrgN, Z0Wl = hLYa(EPL3, qIxc.label_num, 10000)\n print('Dataset: CIFAR10')\n...
[ "0.7600137", "0.75438464", "0.72161263", "0.67086947", "0.66643935", "0.66514826", "0.66219527", "0.6602264", "0.6500664", "0.6465192", "0.6460251", "0.6423757", "0.6396929", "0.6338157", "0.632468", "0.6317897", "0.62970406", "0.6295153", "0.6288524", "0.62740546", "0.626566...
0.7186153
3
Returns the currently set URL.
def hKhs(YKHO): return YKHO.currentUrl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKhs(YKHO):\n return YKHO.__state.url", "def negx(YKHO):\n return YKHO._url", "def hKhs(YKHO):\n return YKHO.__url", "def hKhs(YKHO):\n return YKHO.url", "def hKhs(YKHO):\n return YKHO.url", "def hKhs(YKHO):\n return YKHO.url", "def hKhs(YKHO) -> str:\n return YKHO.__url", "d...
[ "0.8176634", "0.8176172", "0.813061", "0.8023407", "0.8023407", "0.7992517", "0.7978178", "0.7971393", "0.794453", "0.79300547", "0.79300547", "0.7924568", "0.79071915", "0.78912544", "0.78912544", "0.78912544", "0.78912544", "0.78912544", "0.7865169", "0.7861296", "0.7823501...
0.8276932
0
Sets the ca_name of this Certificate.
def vg0E(YKHO, vg0E): YKHO._ca_name = vg0E
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MN3X(YKHO, MN3X):\n YKHO._certificate_name = MN3X", "def vYzt(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'ca_certificate_name')", "def vYzt(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'ca_certificate_name')", "def Yd_9(YKHO, Yd_9):\n YKHO._ca_cert_file = Yd_9", "def...
[ "0.72082275", "0.64990973", "0.64990973", "0.64207536", "0.63625395", "0.63625395", "0.634537", "0.63033324", "0.63033324", "0.62763417", "0.6270371", "0.62106836", "0.6200281", "0.6050794", "0.6050794", "0.60095286", "0.595926", "0.5941225", "0.58967537", "0.5884371", "0.588...
0.8861177
0
Sets the latest_valid of this Certificate.
def wRCs(YKHO, wRCs): YKHO._latest_valid = wRCs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deVW(YKHO, deVW):\n YKHO._valid = deVW", "def J93I(YKHO, J93I):\n YKHO._validity = J93I", "def J93I(YKHO, J93I):\n YKHO._validity = J93I", "def wkSS(YKHO, deVW):\n YKHO.valid = deVW\n return True", "def iDxA(YKHO, iDxA):\n YKHO._date_valid = iDxA", "def fsbt(YKHO, fsbt):\n YKHO._...
[ "0.6494158", "0.6473555", "0.64123917", "0.62231374", "0.6162358", "0.601685", "0.59612924", "0.5778092", "0.57604206", "0.5757746", "0.5692794", "0.5681053", "0.5681053", "0.5681053", "0.5681053", "0.5681053", "0.56109154", "0.5605868", "0.5594815", "0.5594815", "0.55943656"...
0.83854544
0
Sets the valid_start of this Certificate.
def LYZB(YKHO, LYZB): YKHO._valid_start = LYZB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ruu7(YKHO, Ruu7):\n YKHO._start_point = Ruu7", "def v9zl(YKHO, yKcO):\n YKHO.start = yKcO", "def AVeu(YKHO, VWKG):\n YKHO.actual_start = VWKG", "def ulfd(YKHO, ulfd):\n YKHO._start_position = ulfd", "def kepv(YKHO, kepv):\n YKHO._start_date = YKHO.check_date(kepv, 'start_date')\n YKHO...
[ "0.6508199", "0.63798594", "0.6216348", "0.62062234", "0.61301726", "0.61046857", "0.61046857", "0.61046857", "0.60878557", "0.60878557", "0.6082755", "0.60561156", "0.6036781", "0.6036781", "0.6036781", "0.6036781", "0.6036781", "0.6036781", "0.6036781", "0.6036781", "0.6036...
0.82676345
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Find the best suited serializer for the given type.
def fieS(YKHO, vF49): if vF49 in YKHO._serializers: return YKHO._serializers[vF49] Ro5k = vF49.__mro__[1] return YKHO._find_serializer(Ro5k)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tfnj(YKHO, xDew, soVO):\n return xDew.serializer_by_type(sql_type=YKHO.type, collation=soVO)", "def EWh9(Emd4, n0X3):\n try:\n return Emd4._poly_type_serializer_map[n0X3]\n except KeyError:\n raise NotImplementedError(f'No polymorphic serializer has been found for type {n0X3}')", "de...
[ "0.71634233", "0.70439", "0.6686842", "0.6672144", "0.6432312", "0.6305396", "0.6259841", "0.6243764", "0.6234068", "0.61369985", "0.5956336", "0.5942433", "0.59399706", "0.5932094", "0.59232384", "0.58965987", "0.5804275", "0.5793479", "0.5790786", "0.5743895", "0.5677641", ...
0.75390786
0
Establishes the empty dict, and then the key counter which preserves the order in which numbers were entered into the array.
def FIMM(YKHO, VECZ): YKHO.entries = VECZ YKHO.db = {'nonzero': [], 'zero': []} YKHO.key_counter = 1 YKHO.storage_helper(VECZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.nums_dict = {}\n YKHO.count = 0", "def BCj6(qw7D: iter(int, int)) -> dict[int, int]:\n Op6c = {}\n for tTpl in qw7D:\n if tTpl in Op6c:\n Op6c[tTpl] += 1\n else:\n Op6c[tTpl] = 1\n return Op6c", "def fqP0():\n XVm0 = {}\n for YRbF ...
[ "0.67535305", "0.6466263", "0.6445666", "0.6390094", "0.6326316", "0.63190615", "0.62508225", "0.62423575", "0.62225085", "0.6206624", "0.6148352", "0.61475444", "0.6117236", "0.6115409", "0.6096055", "0.6090129", "0.60729086", "0.6066026", "0.6065458", "0.60206574", "0.60038...
0.57069767
57
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: UksD: CTgR[lq_8] = ajET.data[Sugg] return await UksD.async_unload_entry(bTKY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)", "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()...
[ "0.70418245", "0.69975436", "0.69197667", "0.69024074", "0.6896897", "0.6870464", "0.6840728", "0.67911863", "0.67835754", "0.6782968", "0.6776581", "0.67688036", "0.6737991", "0.6730449", "0.6713354", "0.67085946", "0.6664857", "0.66411716", "0.6637687", "0.66157013", "0.660...
0.0
-1
Return the entity state.
def QTBn(YKHO) -> str | None: if YKHO.__last_pressed is None: return None return YKHO.__last_pressed.isoformat()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO) -> uLKX[None, str, int, float]:\n return YKHO._entity.get(N4T2)", "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state", "def QTBn(YKHO):\n return YKHO.get_state()", "de...
[ "0.80657554", "0.75860316", "0.7496843", "0.7496843", "0.7496843", "0.74929595", "0.74630487", "0.7458172", "0.7426287", "0.7360967", "0.7360967", "0.735431", "0.73509854", "0.73462176", "0.73462176", "0.73462176", "0.73462176", "0.73462176", "0.73462176", "0.73462176", "0.73...
0.0
-1
This will return the QApplication instance if one is available, otherwise it will create one
def v5Ci(*qIxc, **B2fa): NJZa = uaAZ.QtWidgets.QApplication.instance() if not NJZa: NJZa = uaAZ.QtWidgets.QApplication([]) return NJZa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q85x():\n global qtapp\n p4_k = x5x0.QApplication.instance()\n if p4_k is None:\n lqpE = x5x0.QApplication(HwRy.argv)\n else:\n lqpE = p4_k\n return lqpE", "def heOE():\n P4t4 = CsJA.QApplication.instance()\n if not P4t4:\n P4t4 = CsJA.QApplication([])\n return P4...
[ "0.8327259", "0.83153236", "0.8219549", "0.8137179", "0.7955392", "0.75738627", "0.7419113", "0.7268877", "0.70084286", "0.69891274", "0.6944978", "0.69035614", "0.67880905", "0.6570748", "0.65275604", "0.6481031", "0.64750934", "0.64414024", "0.6400761", "0.6378116", "0.6338...
0.82728386
2
Update and return an existing `Snippet` instance, given the validated data.
def QdZT(YKHO, KAOR, vGfb): KAOR.name = vGfb.get('name', KAOR.name) KAOR.version = vGfb.get('version', KAOR.version) KAOR.save() return KAOR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n KAOR.comments = vGfb.get('comments', KAOR.comments)\n KAOR.description = vGfb.get('description', KAOR.description)\n KAOR.save()\n return KAOR", "def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n...
[ "0.67801327", "0.6660324", "0.6660324", "0.6655712", "0.6640556", "0.652205", "0.652205", "0.6509049", "0.64857805", "0.6471242", "0.642812", "0.629971", "0.6291086", "0.6275658", "0.6201591", "0.61365765", "0.6096549", "0.60716563", "0.6052537", "0.6051132", "0.60097694", ...
0.5499455
59
Returns a WSGI application configured for the given services.
def WTdB(B373, TnNy=H6V6.DEFAULT_REGISTRY_PATH, dsE5=False, GPtr=None): AvyM = RnDf(B373, registry_path=TnNy) return vj5u.WSGIApplication(routes=AvyM, debug=dsE5, config=GPtr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mJn7() -> L2w0:\n P4t4 = LUif()\n return P4t4", "def P4t4(*qIxc, **YSA3):\n Kgis()\n return zLeE(*qIxc, **YSA3)", "def WTdB():\n yhTH(P4t4)\n return P4t4", "def kxbT(m0ry: str, muwo: dict) -> oimG.Router:\n m0ry = t09H(m0ry)\n DWkG = lHnK.get_loader(m0ry)\n return DWkG.get_wsgi...
[ "0.7356435", "0.69678295", "0.67829216", "0.66875154", "0.6680213", "0.6638048", "0.6532513", "0.65158933", "0.6501115", "0.6491769", "0.64420676", "0.64329803", "0.6422825", "0.64127123", "0.637067", "0.6344116", "0.63415617", "0.6264397", "0.6256732", "0.6255497", "0.624576...
0.7696184
0
Gets a user, this will match GET /api/usrers/ requests, as specified in urls.py
def GKJL(YKHO, QePW, *qIxc, **B2fa): try: id = B2fa.get('pk') if id: CBIr = mv1M.objects.get(pk=id, is_active=True) else: CBIr = mv1M.objects.all() ZMzz = YKHO.serializer_class(CBIr) return oGir(ZMzz.data, status=jGRS.HTTP_200_OK) except mv1M.DoesN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(CBIr):\n return NMoC('/users/' + CBIr)", "def NMoC(YKHO, uJjO):\n print('Received GET on resource /users/<user_id>')\n if uJjO.isdigit():\n dpuW = TKWP(uJjO)\n print(dpuW)\n return dpuW\n else:\n return eTsH(400, 'Invalid input for user_id in url')", "async def ...
[ "0.78992784", "0.7617052", "0.742269", "0.7394216", "0.73890954", "0.73497903", "0.7314152", "0.72925764", "0.72053784", "0.7203568", "0.71772563", "0.7175996", "0.7067469", "0.70661134", "0.7039514", "0.7009321", "0.6999546", "0.6993258", "0.69881535", "0.69727695", "0.69679...
0.6941303
24
Total baseline purchase cost, without accounting for design , pressure, and material factors [USD].
def OhcP(YKHO): return sum(YKHO.baseline_purchase_costs.values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OhcP(YKHO) -> float:\n return sum(YKHO.baseline_purchase_costs.values())", "def O57d(YKHO) -> float:\n return sum(YKHO.purchase_costs.values())", "def B72K() -> float:\n LZiP = float(x0hE.get_asset_balance(asset=s2VM)['free'])\n Wqyi = LZiP * float(x0hE.get_orderbook_ticker(**WKvO)['bidPrice'])...
[ "0.8253096", "0.7042911", "0.6999093", "0.69671416", "0.6913512", "0.6764413", "0.6764413", "0.6764413", "0.6764413", "0.6764413", "0.6764413", "0.6764413", "0.6717634", "0.6656901", "0.6621571", "0.6609147", "0.6606677", "0.6576103", "0.6530323", "0.6529009", "0.6496012", ...
0.82108724
1
Total purchase cost [USD].
def O57d(YKHO): return sum(YKHO.purchase_costs.values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O57d(YKHO) -> float:\n return sum(YKHO.purchase_costs.values())", "def enKk(YKHO):\n wjRY = 0\n xryH = YKHO.get_items()\n for ZfUD in xryH:\n hI0L, Z5kt = xryH[ZfUD]\n wjRY += hI0L * Z5kt\n return wjRY", "def wjRY(YKHO):\n return YKHO.__amt * YKHO.__price", "def Kk0Q(YKHO)...
[ "0.81685716", "0.77352095", "0.75283426", "0.74318165", "0.74128777", "0.74057955", "0.73956025", "0.73025894", "0.729079", "0.7288057", "0.72846556", "0.72819525", "0.7261184", "0.7261184", "0.7261184", "0.7261184", "0.7261184", "0.7261184", "0.7261184", "0.7223575", "0.7207...
0.8022436
1
Total installed equipment cost [USD].
def MEAk(YKHO): return sum(YKHO.installed_costs.values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def enKk(YKHO):\n wjRY = 0\n xryH = YKHO.get_items()\n for ZfUD in xryH:\n hI0L, Z5kt = xryH[ZfUD]\n wjRY += hI0L * Z5kt\n return wjRY", "def Yecq(YKHO):\n wjRY = 0.0\n for BWXx in YKHO.apiCosts.values():\n wjRY += BWXx\n return wjRY", "def MEAk(YKHO) -> float:\n re...
[ "0.76740813", "0.742692", "0.73526", "0.7293864", "0.7256561", "0.7240601", "0.72300243", "0.7228689", "0.72127384", "0.7200826", "0.7190302", "0.71807003", "0.71445966", "0.7138069", "0.71199006", "0.7102713", "0.7077749", "0.7061228", "0.706113", "0.7044583", "0.70417094", ...
0.7258045
4
Molar fractions going in [kmol/hr].
def QAEb(YKHO): return YKHO._mol_in / YKHO.F_mol_in
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ay1R(tTpl):\n return tTpl / _bIs / (tTpl / _bIs + (1 - tTpl) / wbHy)", "def cgWl(YKHO):\n akib = 0.0\n for _pUq, ZTpY in YKHO.formula_dict.items():\n akib += ZTpY * 4 * oyIN.pi * YKHO.covalent_radius[_pUq] ** 3 / 3\n return 6.023e+23 * akib * 1e-30", "def YM5J(N9D1):\n IMgK = jRZH(N9D...
[ "0.6779624", "0.6609304", "0.6244318", "0.61617845", "0.61611915", "0.60507154", "0.6050331", "0.6046329", "0.60316294", "0.602213", "0.600385", "0.59880006", "0.5976045", "0.5938774", "0.5921597", "0.5913646", "0.5912011", "0.5900937", "0.5896599", "0.58963", "0.5895048", ...
0.0
-1
Net volumetric flow going out [m3/hr].
def Eu0f(YKHO): return sum(YKHO.vol_out)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BymW(P9SZ, XEri):\n P9SZ.reset()\n HJBP = XEri['sdf']\n UtL5 = XEri['fluid']\n y9kB = XEri['gravity']\n RVAS = XEri['waterLevel']\n ytZy = XEri['smoothing']\n FBXM = UtL5['air']['rho']\n L68u = UtL5['water']['rho']\n A7og = UtL5['air']['mu']\n I7xd = UtL5['water']['mu']\n rdfI ...
[ "0.59712285", "0.591495", "0.56169987", "0.5540761", "0.552967", "0.54976594", "0.5472735", "0.54330826", "0.5396804", "0.53661585", "0.5362924", "0.5343131", "0.5292778", "0.5276094", "0.5273419", "0.5237572", "0.5234133", "0.52308726", "0.52306557", "0.5226792", "0.5223108"...
0.0
-1
Checks whether the value is a floatingpoint number.
def fjph(BWXx): return bool(ZbWC.findall('^[-+]?\\d+\\.?\\d*$', BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SH_w(BWXx):\n try:\n float(BWXx)\n return True\n except Exception:\n return False", "def SH_w(BWXx):\n try:\n float(BWXx)\n return True\n except ValueError:\n return False", "def NLLz(YKHO, BWXx):\n try:\n float(BWXx)\n except ValueError:\n...
[ "0.86817575", "0.8678477", "0.8622213", "0.86191314", "0.86126065", "0.86126065", "0.86126065", "0.86126065", "0.8505515", "0.849189", "0.8371778", "0.8367339", "0.83428025", "0.83303267", "0.8329724", "0.83068365", "0.8254414", "0.82517725", "0.82104826", "0.81645757", "0.80...
0.7366261
63
Set the parameters of the problem The problem comes with a matrix that is initialized randomly, to ensure reproducible results, set your seed before creating the object i.e., np.random.seed(seed)
def FIMM(YKHO, mnXd=5, ExEH=5, yGTL=0.5): super(q37C, YKHO).__init__(mnXd, ExEH) YKHO._x_opt = (0.75 - 0.25) * oyIN.random.random(YKHO._D_x) + 0.25 YKHO._y_opt = (0.75 - 0.25) * oyIN.random.random(YKHO._D_y) + 0.25 YKHO._M = (0.1 + 0.1) * oyIN.random.random((YKHO._D_x, YKHO._D_y)) - 0.1 YKHO._half_m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n oyIN.random.seed(1)", "def e3of():\n oyIN.random.seed(1223)", "def FCbF(YKHO):\n oyIN.random.seed(42)\n YKHO.n, YKHO.D = (12, 3)\n YKHO.X = oyIN.random.randn(YKHO.n, YKHO.D)", "def FCbF(YKHO):\n oyIN.random.seed(0)", "def e3of(yokr):\n oyIN.random.seed(yokr)", "def ...
[ "0.7166015", "0.7141877", "0.710793", "0.70585567", "0.69130456", "0.6801308", "0.6788604", "0.6660462", "0.66282964", "0.66170126", "0.66079515", "0.65714115", "0.65703547", "0.65411586", "0.6522474", "0.65171146", "0.6504774", "0.6441267", "0.64280474", "0.64246947", "0.642...
0.0
-1
Filter the list of 'entities', including only those that are at most 'max_distance' away from the 'target'. If exclude is set, that value will be filtered from the 'entities' list no matter what.
def ovjO(MMe4, pan_, aq_o, DNHh=None): if DNHh: MMe4 = [LEXu for LEXu in MMe4 if LEXu != DNHh] xU5A = zip(MMe4, No3r(pan_, MMe4)) return [LEXu for LEXu, iArr in xU5A if iArr.length() <= aq_o]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WGB9(MMe4: List[Entity_T], IHqq: Optional[FrozenSet[str]], vIsK: Optional[FrozenSet[str]]) -> fHNa[EY3s]:\n return set(filter(lambda tTpl: slTm(tTpl, IHqq) and (not NU_e(tTpl, vIsK)), [EY3s(tTpl) for tTpl in MMe4]))", "def LHQL(YKHO, d4cH: List[Dict], qoqK: int=5) -> x1iM[cuzp]:\n t252 = YKHO.adset_str...
[ "0.56227195", "0.5263668", "0.518734", "0.51731515", "0.51709837", "0.51543397", "0.51381767", "0.50946957", "0.5088334", "0.50798035", "0.50129217", "0.4974709", "0.49244168", "0.48564187", "0.48296434", "0.48281294", "0.48212034", "0.48086783", "0.47979105", "0.4796576", "0...
0.82035136
0
Resets the state of the environment, returning an initial observation.
def SiRx(YKHO, UfwV): YKHO._info = [] YKHO._step = 0 YKHO._path_length = 0 YKHO._is_terminal = False YKHO.initial_conditions = UfwV YKHO._action = oyIN.array([0] * (6 * YKHO.c_num_peds)) YKHO._first_step = True bt3k = YKHO.initial_conditions[3 * YKHO.c_num_peds] JG_u = YKHO.initial_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO, **B2fa):\n rNYq = YKHO.env.reset(**B2fa)\n YKHO.randomize()\n return rNYq", "def SiRx(YKHO):\n QTBn = YKHO.sample()\n if QTBn is None:\n return YKHO.env.reset()\n else:\n if YKHO.need_xml:\n QTBn, QToG = QTBn\n YKHO.env.reset_from_xml_string(QT...
[ "0.8130608", "0.80573934", "0.8044419", "0.7961364", "0.7925673", "0.78045917", "0.78045917", "0.78045917", "0.78045917", "0.78045917", "0.7793032", "0.77781624", "0.776638", "0.77204686", "0.7681352", "0.7575828", "0.7573232", "0.7551488", "0.7548552", "0.75335723", "0.75274...
0.0
-1
Returns whether the current state is in the goal set. Checks to see if any pedestrian's position violates both the `min_dist_x` and `min_dist_y` constraints. Returns bool True if current state is in goal set.
def YieI(YKHO): pImw = YKHO._peds[:, 2:4] - YKHO._car[2:4] if oyIN.any(oyIN.all(oyIN.less_equal(abs(pImw), YKHO.c_min_dist), axis=1)) and YKHO._car[0] > 0.5: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M1ye(YKHO):\n eRbz = [YKHO.maze_dim / 2 - 1, YKHO.maze_dim / 2]\n if not (YKHO.state.pos[0] in eRbz and YKHO.state.pos[1] in eRbz):\n return False\n return True", "def r0FL(YKHO, QTBn):\n rdlD, fvDH = QTBn.getLocation()\n if rdlD == YKHO.goalRow and fvDH == YKHO.goalCol:\n return...
[ "0.7581351", "0.7180998", "0.707839", "0.7042718", "0.7042579", "0.7027726", "0.6947923", "0.6927558", "0.68796265", "0.6853456", "0.68388397", "0.68251646", "0.68140644", "0.67998874", "0.6784009", "0.6776209", "0.6771769", "0.66924477", "0.6682114", "0.66545564", "0.66523",...
0.0
-1
Executes the updateParameters operation on the server. Updates the current STP parameters on the specified bridge MSTI. updateParameters(async_operation=bool)bool
def nwc0(YKHO, *qIxc, **B2fa): pB3N = {'Arg1': YKHO.href} for YRbF in range(len(qIxc)): pB3N['Arg%s' % (YRbF + 2)] = qIxc[YRbF] for ZfUD in B2fa.items(): pB3N[ZfUD[0]] = ZfUD[1] return YKHO._execute('updateParameters', payload=pB3N, response_object=None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ug5g(YKHO, t4zh, LHoy=None):\n return YKHO.node_manager.execute_async_upi_function('net', 'set_parameters_net', LHoy, t4zh)", "def NkS1(YKHO, t4zh, LHoy=None):\n return YKHO.node_manager.execute_upi_function('net', 'set_parameters_net', LHoy, t4zh)", "async def async_update_data():\n try:\n ...
[ "0.70123714", "0.5720212", "0.55060965", "0.54623824", "0.5442612", "0.54278547", "0.53758466", "0.53758466", "0.53758466", "0.53758466", "0.5365285", "0.53185976", "0.53185976", "0.53185976", "0.53185976", "0.53185976", "0.53185976", "0.53185976", "0.53185976", "0.53185976", ...
0.0
-1
Gets a collection of `InputExample`s for the train set.
def rNg5(YKHO, h_xa): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def vGUt(YKHO):\n return x3i3.get_train_inputs(YKHO)", "def rNg5(YKHO):\n return YKHO.dataset.get_train_examples()", "def rNg5(YKHO):\n return YKHO.get_dialog_examples('train')", "def rNg5(YKHO):\n return YKHO.get_dialog_examples('...
[ "0.81951743", "0.760114", "0.74244404", "0.7340222", "0.7340222", "0.7215933", "0.71737236", "0.71737236", "0.6989413", "0.6848554", "0.66177475", "0.65863574", "0.6586135", "0.65694183", "0.6561308", "0.6561308", "0.65018874", "0.6441707", "0.64212453", "0.64110005", "0.6381...
0.6250443
35
Gets a collection of `InputExample`s for the dev set.
def JdXm(YKHO, h_xa): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JdXm(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def syTc(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def JdXm(YKHO):\n return YKHO.dataset.get_dev_examples()", "def rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def Zo7w(YKHO):\n gMbG = YKHO.api.get(YKHO.result...
[ "0.80899024", "0.71504563", "0.70351374", "0.6909079", "0.67522305", "0.6676925", "0.6550554", "0.6550554", "0.64557886", "0.64557886", "0.64255226", "0.64255226", "0.6423698", "0.6423698", "0.6352287", "0.6290681", "0.6288263", "0.6257267", "0.62408787", "0.6229795", "0.6212...
0.5992822
42
Gets the list of labels for this data set.
def Te1x(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Te1x(YKHO):\n return YKHO.label_list", "def Crrw(YKHO) -> x1iM[str]:\n return YKHO._labels", "def Te1x(YKHO):\n Crrw = []\n for UXqs in YKHO.instance.labels:\n Crrw.append(UXqs.name)\n return Crrw", "def Crrw():\n return list(uzmd)", "def Te1x(YKHO):\n return YKHO._labels", ...
[ "0.8794412", "0.87205255", "0.86998755", "0.8548415", "0.8487407", "0.84719014", "0.84676677", "0.8461291", "0.8438787", "0.8438787", "0.8438787", "0.8438787", "0.8438787", "0.8411189", "0.83837056", "0.8366874", "0.83655906", "0.83244914", "0.83244914", "0.8267663", "0.82676...
0.78928244
49
Reads a tab separated value file.
def sYUC(Emd4, eZ_W, jaFg=None): with open(eZ_W, 'r') as eHNT: N5Pj = m6_J.reader(eHNT, delimiter='\t', quotechar=jaFg) Nqlg = [] for zFiD in N5Pj: Nqlg.append(zFiD) return Nqlg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zHv1(pmON):\n with open(pmON, 'r') as eHNT:\n return list(m6_J.DictReader(eHNT, delimiter='\\t'))", "def sYUC(Emd4, eZ_W, jaFg=None):\n return _rvh(eZ_W)", "def iboE(YKHO):\n rsAY = [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]\n O4Hj = '1\\t2\\t3\\n4\\t5\\t6\\n7\\t8\\t9'\n pmON...
[ "0.70737004", "0.7028278", "0.68697673", "0.6847422", "0.6838464", "0.6838464", "0.6838464", "0.6838464", "0.68270725", "0.6821829", "0.6821829", "0.6821829", "0.6795045", "0.6789502", "0.67819524", "0.6755904", "0.6752967", "0.6729939", "0.67247856", "0.6711635", "0.6710559"...
0.669134
27
Returns randomly constructed strings of given `length`, default length 15.
def Q_QB(u54L=15): dzye = '' YRbF = 0 while YRbF < u54L: if tuKI.randint(0, 1): dzye += chr(tuKI.randint(97, 122)) else: dzye += str(tuKI.randint(1, 9)) YRbF += 1 return dzye
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MiNk(u54L):\n gLiZ = vIwR.ascii_lowercase + vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(u54L)))", "def BWvy(u54L):\n return ''.join(tuKI.choices(vIwR.ascii_uppercase + vIwR.digits + vIwR.ascii_lowercase, k=u54L))", "def BWvy(u54L: int=20) -> str:\n m...
[ "0.8237296", "0.8161285", "0.8138435", "0.81242377", "0.8121622", "0.8112619", "0.8099192", "0.80831754", "0.8041513", "0.80123967", "0.7970784", "0.7946033", "0.794287", "0.79349995", "0.7925287", "0.7925101", "0.79179144", "0.7909779", "0.7906946", "0.78898484", "0.7888967"...
0.74308455
93
Method used to get to know which positions from the dataset are the targets for this experiments
def N9wz(YKHO, nPrm): if oUls.ENCODER_MODEL_TYPE in ['forward', 'action_prediction', 'stdim', 'ETE_inverse_model']: zqYi = [] for YRbF in range(2): XS4q = [] for XNHl in oUls.TARGETS: XS4q.append(nPrm[XNHl][YRbF]) zqYi.append(ht2j.cat(XS4q, 1)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x6A0(YKHO):\n return YKHO.trainset.targets", "def x6A0(YKHO) -> x1iM[x1iM[h8nf[float]]]:\n return [YKHO._dataset[d6pt].targets() for d6pt in YKHO._sampler]", "def x6A0(YKHO) -> x1iM[x1iM[h8nf[float]]]:\n return [YKHO._dataset[d6pt].targets() for d6pt in YKHO._sampler]", "def vQad(YKHO):\n ret...
[ "0.7603318", "0.7263381", "0.7263381", "0.7203851", "0.71837604", "0.71170545", "0.705915", "0.7016724", "0.6983037", "0.6963546", "0.6880204", "0.6865099", "0.68587136", "0.6782605", "0.6760558", "0.6757661", "0.6750423", "0.6730189", "0.6711462", "0.6711462", "0.6711462", ...
0.6637334
25
Method used to get to know which positions from the dataset are the targets for this experiments
def Enjc(YKHO, nPrm, type=None): XS4q = [] if type is not None: for XNHl in oUls.AFFORDANCES_TARGETS[type]: XS4q.append(nPrm[XNHl]) else: for XNHl in oUls.AFFORDANCES_TARGETS: XS4q.append(nPrm[XNHl]) return ht2j.cat(XS4q, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x6A0(YKHO):\n return YKHO.trainset.targets", "def x6A0(YKHO) -> x1iM[x1iM[h8nf[float]]]:\n return [YKHO._dataset[d6pt].targets() for d6pt in YKHO._sampler]", "def x6A0(YKHO) -> x1iM[x1iM[h8nf[float]]]:\n return [YKHO._dataset[d6pt].targets() for d6pt in YKHO._sampler]", "def vQad(YKHO):\n ret...
[ "0.7602507", "0.726184", "0.726184", "0.72054046", "0.71826756", "0.71180487", "0.7058232", "0.7015671", "0.69840336", "0.69624585", "0.6879303", "0.68642783", "0.68584085", "0.67823315", "0.67583996", "0.6757037", "0.67516744", "0.6730132", "0.6710536", "0.6710536", "0.67105...
0.0
-1
Method used to get to know which positions from the dataset are the targets for this experiments
def TKN7(YKHO, nPrm): XS4q = [] for XNHl in oUls.TARGETS_AUX: XS4q.append(nPrm[XNHl]) return ht2j.cat(XS4q, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x6A0(YKHO):\n return YKHO.trainset.targets", "def x6A0(YKHO) -> x1iM[x1iM[h8nf[float]]]:\n return [YKHO._dataset[d6pt].targets() for d6pt in YKHO._sampler]", "def x6A0(YKHO) -> x1iM[x1iM[h8nf[float]]]:\n return [YKHO._dataset[d6pt].targets() for d6pt in YKHO._sampler]", "def vQad(YKHO):\n ret...
[ "0.7602507", "0.726184", "0.726184", "0.72054046", "0.71826756", "0.71180487", "0.7058232", "0.7015671", "0.69840336", "0.69624585", "0.6879303", "0.68642783", "0.68584085", "0.67823315", "0.67583996", "0.6757037", "0.67516744", "0.6730132", "0.6710536", "0.6710536", "0.67105...
0.0
-1
Method used to get to know which positions from the dataset are the targets for this experiments
def OaVW(YKHO, nPrm): if oUls.ENCODER_MODEL_TYPE in ['forward', 'action_prediction', 'stdim', 'ETE_inverse_model'] and oUls.PROCESS_NAME in ['train_encoder']: vt2W = [] for YRbF in range(2): wKSC = [] for dvBq in oUls.COMMANDS: wKSC.append(nPrm[dvBq][YRbF]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x6A0(YKHO):\n return YKHO.trainset.targets", "def x6A0(YKHO) -> x1iM[x1iM[h8nf[float]]]:\n return [YKHO._dataset[d6pt].targets() for d6pt in YKHO._sampler]", "def x6A0(YKHO) -> x1iM[x1iM[h8nf[float]]]:\n return [YKHO._dataset[d6pt].targets() for d6pt in YKHO._sampler]", "def vQad(YKHO):\n ret...
[ "0.7602507", "0.726184", "0.726184", "0.72054046", "0.71826756", "0.71180487", "0.7058232", "0.7015671", "0.69840336", "0.69624585", "0.6879303", "0.68642783", "0.68584085", "0.67823315", "0.67583996", "0.6757037", "0.67516744", "0.6730132", "0.6710536", "0.6710536", "0.67105...
0.0
-1
Test client for the base application fixture.
def d4y1(zL8W): with zL8W.test_client() as x0hE: yield x0hE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0hE(YKHO):\n yield P4t4.test_client()", "def x0hE(P4t4):\n return NxUR(P4t4)", "def x0hE(P4t4):\n return kO5c.TestClient(P4t4)", "def x0hE(P4t4):\n return kO5c.TestClient(P4t4)", "def x0hE(P4t4):\n udfG = NxUR(P4t4)\n return udfG", "def FCbF(YKHO):\n YKHO.client = yPQU.test_clie...
[ "0.804741", "0.8013616", "0.7919713", "0.7919713", "0.7870406", "0.7772972", "0.7757563", "0.77408075", "0.77408075", "0.77408075", "0.77408075", "0.77408075", "0.77408075", "0.77408075", "0.77408075", "0.77408075", "0.77408075", "0.77408075", "0.77408075", "0.77408075", "0.7...
0.77382714
20
Return boolean mask for elements in list_of_elements that belong to any of the specified types.
def LOPV(Emd4, rnIm, SnBA): Ew2Z = {'bpm': 'BPM', 'magnet': 'M', 'arc_bpm': 'BPM.*\\.0*(1[5-9]|[2-9]\\d|[1-9]\\d{2,})[RL]'} Onck = [Yrvv for Yrvv in SnBA if Yrvv not in Ew2Z] if len(Onck): raise TypeError("Unknown element(s): '{:s}'".format(str(Onck))) dy_H = rLdf.Series(rnIm) ZHfW = dy_H.st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def any(eHNT, yv6U):\n return fR_9.any(map(eHNT, yv6U))", "def DDx7(FYKK, UqER, **B2fa):\n mgvg = []\n for U6D_ in UqER:\n if FYKK(U6D_, **B2fa):\n mgvg.append(U6D_)\n return mgvg", "def npm_(Emd4, SnBA: Sequence[Type], mpLQ: str) -> bool:\n if mpLQ in (yYkB.ELEMENT, yYkB.ELEME...
[ "0.60102546", "0.5938566", "0.5812269", "0.5807334", "0.5788369", "0.5782397", "0.57697344", "0.573065", "0.57130617", "0.5700892", "0.56601536", "0.5644282", "0.556759", "0.5496161", "0.54939437", "0.5493641", "0.547652", "0.54720545", "0.5469601", "0.5457005", "0.54356617",...
0.72325635
0
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None SoMb = cmPJ.get('downtimeEventId') vQEI = fPb2.RFC3339DateTime.from_value(cmPJ.get('timestampStart')).datetime if cmPJ.get('timestampStart') else None w7Os = fPb2.RFC3339DateTime.from_value(cmPJ.get('timestampEnd')).datetime if cmPJ.get('timesta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
True if configuration obj handles all options of this class. Use this method rather than isinstance(obj, cls) to test if a configuration object handles the options of cls (is_configuration is handled specially for results of merge which may handle the options of unrelated configuration classes).
def KJVi(Emd4, YEnM): return isinstance(YEnM, sZBw) and YEnM._is_configuration(Emd4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tRkY(Emd4, GPtr):\n return isinstance(GPtr, type) and issubclass(GPtr, Emd4.root)", "def WD0B(YKHO, **B2fa):\n if not YKHO._isKeyDict(_l='config', **B2fa):\n return False\n if not YKHO._isEObject(_o=B2fa['config']):\n return False\n return YKHO._isClass(_o=B2fa['config'], _cn='EConf...
[ "0.6542651", "0.63050705", "0.6210416", "0.6111614", "0.58452606", "0.5822544", "0.575761", "0.5731031", "0.57073987", "0.5569859", "0.5547494", "0.55369645", "0.55101836", "0.54909974", "0.54852706", "0.54729354", "0.5446966", "0.5441963", "0.5440344", "0.53938705", "0.53826...
0.7960662
0
Get the combined state of the wrapped RPCs. This mimics the UserRPC.state property. If all wrapped RPCs have the same state, that state is returned; otherwise, RUNNING is returned (which here really means 'neither fish nor flesh').
def QTBn(YKHO): nEeK = Q48T.RPC.FINISHING ekgN = Q48T.RPC.IDLE for lTaB in YKHO.__rpcs: nEeK = min(nEeK, lTaB.state) ekgN = max(ekgN, lTaB.state) if nEeK == ekgN: return nEeK return Q48T.RPC.RUNNING
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hCWZ(YKHO):\n if not YKHO._process.is_alive():\n raise RuntimeError('Worker has terminated')\n if not YKHO._pending:\n return KpDk.PENDING\n if YKHO._result is None:\n try:\n YKHO._result = YKHO._from_slave.get(block=False)\n except rWmY:\n return KpDk...
[ "0.60187215", "0.59957474", "0.593725", "0.5892056", "0.58757323", "0.58395964", "0.582878", "0.582321", "0.57630426", "0.5754048", "0.57508594", "0.57476896", "0.5738289", "0.5733977", "0.57321614", "0.5714641", "0.57054806", "0.5702564", "0.56937885", "0.56801116", "0.56801...
0.74255997
0
The default configuration used by this connection.
def GPtr(YKHO): return YKHO.__config
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UiCc(YKHO):\n return {}", "def d8Ew(YKHO):\n return {'queue': DhCK, 'nodes': 1, 'ppn': qioa, 'walltime': UH__, 'notify': Ld5G, 'email': DLGy}", "def yDgW(YKHO):\n GPtr = super(J1cp, YKHO).get_default_config()\n GPtr.update({'host': '127.0.0.1', 'port': 4242, 'timeout': 5, 'tags': '', 'prefix': ...
[ "0.83180934", "0.8044264", "0.80243796", "0.8012812", "0.797621", "0.7925394", "0.78471446", "0.78158736", "0.77252007", "0.7662564", "0.7638035", "0.7617716", "0.75853735", "0.7575872", "0.755159", "0.75166804", "0.7462885", "0.73859", "0.73617965", "0.73587877", "0.7357865"...
0.0
-1
Return (a copy of) the list of currently pending RPCs.
def DaB1(YKHO): return set(YKHO.__pending_rpcs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lJu4(YKHO):\n return list(YKHO.queue)", "def fQ47(YKHO):\n return list(YKHO.__rpcs)", "def RpfE(YKHO):\n wyyA = stjD.Cache()\n wyyA.open(None)\n p3O7 = []\n for H5ew in wyyA.keys():\n B5hb = wyyA[H5ew]\n if B5hb.is_upgradable:\n p3O7.append(B5hb)\n return p3O7"...
[ "0.7383776", "0.72119606", "0.6735517", "0.670375", "0.6474506", "0.63345677", "0.6219354", "0.6201085", "0.61707276", "0.6147776", "0.6101052", "0.60985994", "0.6061089", "0.6030169", "0.601098", "0.5995561", "0.5991366", "0.5989543", "0.5967234", "0.5955258", "0.59521544", ...
0.84190226
0
Converts an apiproxy.ApplicationError to an error in datastore_errors.
def sW4d(XObx): return sTUr(XObx.application_error, XObx.error_detail)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HiRl(YKHO, P1dF):\n if P1dF.code == 500:\n nPrm = P1dF.read()\n try:\n nPrm = HjBM.loads(nPrm)\n except:\n raise Exception('Unexpected remote error: %s' % nPrm)\n nPrm['HTTPErrorCode'] = P1dF.code\n nPrm = HjBM.dumps(nPrm)\n raise fEna(nPrm)\n ...
[ "0.59190875", "0.59090126", "0.5857211", "0.5768079", "0.5745016", "0.5726925", "0.56503296", "0.55660963", "0.54282355", "0.54282355", "0.5380805", "0.535692", "0.53477365", "0.5302153", "0.5299017", "0.5296879", "0.5292358", "0.52900535", "0.52900535", "0.52900535", "0.5290...
0.75288755
0
Creates an instance of this client using the provided credentials file.
def eWUZ(Emd4, Ux0P: str, *qIxc, **B2fa): return Kr5M.from_service_account_file.__func__(PV0x, Ux0P, *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adK6(Emd4, *, bD7m: str, NtEF: Union[str, StrStorage], jTXt: Union[str, StrStorage], emKz: Optional[FileTransfer]=None) -> i9zE:\n return i9zE(client=WX3b.from_credentials(url=bD7m, username=NtEF, password=jTXt), file_transfer=emKz)", "def vuB2(Nu1S=None, QpfX=None, mwuo=None, MYjm=None, QDug=None, NtEF=N...
[ "0.7249915", "0.7053171", "0.68975395", "0.68081045", "0.6802571", "0.6738844", "0.67199385", "0.6675532", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6646984", "0.6643617", "0.66432035",...
0.64499605
27
r"""Gets the resource representation for a cluster in a project.
async def get_cluster(YKHO, QePW: Optional[Union[clusters.GetClusterRequest, dict]]=None, *, ekCf: Optional[str]=None, zn0c: Optional[str]=None, c0yN: Optional[str]=None, ZFzw: OptionalRetry=uMLX.method.DEFAULT, vYBr: Union[float, object]=uMLX.method.DEFAULT, yIVm: Sequence[Tuple[str, str]]=()) -> qC6E.Cluster: RRH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A9IH(YKHO):\n return YKHO.client().clusters.get(YKHO.resource_id)", "def iBC6(YKHO, hKn5):\n yj7c = YKHO._get_obj([ty0B.ClusterComputeResource], hKn5)\n return yj7c", "def iBC6(YKHO, hKn5):\n return YKHO._get(Wa1Y.ClusterDetail, hKn5)", "def ADRS(YKHO, QpfX, hKn5, OyNt=False):\n return YKH...
[ "0.7328871", "0.6867667", "0.66979015", "0.6684893", "0.6684434", "0.66594243", "0.66594243", "0.6577402", "0.64805555", "0.64588314", "0.6426237", "0.63617367", "0.63527596", "0.63196033", "0.63052857", "0.63040304", "0.62467754", "0.6243396", "0.62292284", "0.6226672", "0.6...
0.0
-1
r"""Gets the latest state of a longrunning operation.
async def get_operation(YKHO, QePW: Optional[operations_pb2.GetOperationRequest]=None, *, ZFzw: OptionalRetry=uMLX.method.DEFAULT, vYBr: Union[float, object]=uMLX.method.DEFAULT, yIVm: Sequence[Tuple[str, str]]=()) -> s1LG.Operation: if isinstance(QePW, dict): QePW = s1LG.GetOperationRequest(**QePW) lTa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hM3b(YKHO):\n return YKHO._last_op_state", "def hCWZ(YKHO):\n if not YKHO._process.is_alive():\n raise RuntimeError('Worker has terminated')\n if not YKHO._pending:\n return KpDk.PENDING\n if YKHO._result is None:\n try:\n YKHO._result = YKHO._from_slave.get(block=...
[ "0.694494", "0.6688509", "0.64085007", "0.6395157", "0.6390043", "0.6340663", "0.62446904", "0.62081194", "0.6106903", "0.6101333", "0.5965259", "0.5947878", "0.5947878", "0.5947878", "0.5947878", "0.5947878", "0.5947878", "0.5947878", "0.5947878", "0.5947878", "0.5947878", ...
0.0
-1
Calculates the iou for batched prediction and ground truth boxes.
def rDR8(YKHO, TdCN: torch.Tensor, v7iA: torch.Tensor) -> ht2j.Tensor: bo34.info('Calculating batch iou...') bo34.debug(f'pred_boxes: {TdCN}{TdCN.shape},\ngt_boxes: {v7iA}{v7iA.shape}') RjuK = [] for YRbF in range(TdCN.shape[0]): ifWG = TdCN[YRbF] UTQc = v7iA[YRbF] RjuK.append(WH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VPYF(xnQT, LdDn):\n o4D3 = float(xnQT[0])\n si3g = float(xnQT[1])\n dtS8 = float(xnQT[2] - xnQT[0])\n Uk87 = float(xnQT[3] - xnQT[1])\n ajwV = float(LdDn[0])\n skBL = float(LdDn[1])\n IOG9 = float(LdDn[2] - LdDn[0])\n rj3P = float(LdDn[3] - LdDn[1])\n yEOf = max(o4D3 + dtS8, ajwV + I...
[ "0.7296272", "0.7237336", "0.7226209", "0.72255313", "0.7181989", "0.7131218", "0.70554763", "0.67763704", "0.67332584", "0.66121566", "0.660134", "0.6576139", "0.6554826", "0.65369797", "0.6520756", "0.65076655", "0.6497817", "0.64930934", "0.64535224", "0.64502996", "0.6437...
0.77146196
0
Calculates iou from boxes in corner representation and uses non maximum suppression to get the best fitting boxes.
def bII0(YKHO, aTLP: Union[list, tuple], v7iA: torch.Tensor, HpDL: torch.Tensor, Lcjv: float=0.6, ukiz: float=0.4) -> list: bo34.info('Calculation iou nms from corners...') bo34.debug(f'preds: {aTLP}\ngt_boxes: {v7iA}{v7iA.shape}') if isinstance(aTLP, tuple): aTLP = list(aTLP) v3AR = sSOq(aTLP[3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aOkw(FlUN, oUSw):\n ab__ = (FlUN[2] - FlUN[0] + 1) * (FlUN[3] - FlUN[1] + 1)\n f0tD = (oUSw[:, 2] - oUSw[:, 0] + 1) * (oUSw[:, 3] - oUSw[:, 1] + 1)\n frsW = oyIN.maximum(FlUN[0], oUSw[:, 0])\n TdlV = oyIN.maximum(FlUN[1], oUSw[:, 1])\n yjMy = oyIN.minimum(FlUN[2], oUSw[:, 2])\n YvNL = oyIN.mi...
[ "0.77003926", "0.75013965", "0.74525523", "0.74289584", "0.7343577", "0.73280776", "0.7318063", "0.7318063", "0.7318063", "0.7318063", "0.7318063", "0.7318063", "0.7291132", "0.72885984", "0.727997", "0.7264229", "0.71464", "0.7094794", "0.70945495", "0.70677257", "0.70398337...
0.6716791
46
Gaussian Linear Uniform Inference of mean under uniform prior.
def FIMM(YKHO, tpio: int=10, zDH7: float=1.0, I_DJ: float=0.1): super().__init__(dim_parameters=tpio, dim_data=tpio, name=GkAb(xAKo).parent.name, name_display='Gaussian Linear Uniform', num_observations=10, num_posterior_samples=10000, num_reference_posterior_samples=10000, num_simulations=[100, 1000, 10000, 100000...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khi9(WKvO, JBMS, WTkW):\n return -0.5 * (((WKvO - JBMS) / WTkW) ** 2 + oyIN.log(2 * oyIN.pi * WTkW ** 2))", "def IAWS(JBMS, SAMx, WKvO):\n return 1 / (oyIN.sqrt(2 * oyIN.pi) * SAMx) * oyIN.e ** (-0.5 * (float(WKvO - JBMS) / SAMx) ** 2)", "def IAWS(WKvO, JBMS, SRYB):\n return oyIN.exp(-0.5 * (oyIN....
[ "0.7818864", "0.75560004", "0.7451622", "0.7451622", "0.7295223", "0.72360665", "0.7231074", "0.72107035", "0.71876097", "0.7182216", "0.71523917", "0.71282923", "0.7123626", "0.71165735", "0.7084577", "0.7075641", "0.70664334", "0.7065029", "0.70570844", "0.7010681", "0.7006...
0.0
-1
returns the selected project
def _75l(wFs9): import xml.etree.ElementTree as GXnK J_Es = GXnK.parse(wFs9) tk5Y = J_Es.getroot() print('Projects in ' + wFs9) llaM = [] for YRbF, bNKA in enumerate(tk5Y.findall('project')): llaM.append(bNKA) print(YRbF, end=' ') print('. ' + bNKA.get('name')) print(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OKWb(YKHO):\n bNKA = YKHO.projectCombobox.currentText()\n return str(bNKA)", "def XYGq(YKHO):\n return YKHO.projectCombobox.currentText()", "def _F5X(YKHO):\n return YKHO.projectCombobox.currentText()", "def bNKA(YKHO):\n return capf.cli.command.get_project(YKHO.home)", "def YsXL():\n ...
[ "0.8447385", "0.84092903", "0.79888964", "0.7594653", "0.7575073", "0.75705165", "0.75546664", "0.7547839", "0.7515858", "0.7436789", "0.7423", "0.7417224", "0.7408646", "0.73417395", "0.73417395", "0.73417395", "0.73417395", "0.73417395", "0.73417395", "0.73417395", "0.73417...
0.73241764
74
Build a simple vocabulary wrapper.
def ZFlL(qQXR, gwAu): N8JC = JFM0(qQXR) ewCu = mBkc() A07C = N8JC.anns.keys() for YRbF, id in enumerate(A07C): KzVY = str(N8JC.anns[id]['caption']) s2mk = Dhdw.tokenize.word_tokenize(KzVY.lower()) ewCu.update(s2mk) if (YRbF + 1) % 1000 == 0: print('[{}/{}] Tok...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZFlL():\n CtWL = yH2p()\n CtWL.add_word('<pad>')\n CtWL.add_word('<start>')\n CtWL.add_word('<end>')\n CtWL.add_word('<unk>')\n BHGE = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']\n for yzQ0 in BHGE:\n CtWL.add_word(yzQ0)\n V22M = ['this', 'is'...
[ "0.7756604", "0.7306368", "0.6995895", "0.695528", "0.68046856", "0.6750246", "0.66967887", "0.6639309", "0.6631574", "0.6631451", "0.661886", "0.6585043", "0.64524925", "0.6449931", "0.64329624", "0.6401368", "0.63828623", "0.6370929", "0.634009", "0.6338847", "0.6336633", ...
0.58266664
70
Description Initializes google cloud big query client to query FHIR data.
def FIMM(YKHO): YKHO.cl = x0hE()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.bq_client = slhS.Client(project='cpb100-213205')\n YKHO.storage_client = S8SU.Client(project='cpb100-213205')\n return", "def FIMM(YKHO, JWce=None, Vt89=None):\n YKHO._bq_client = slhS.Client(project=JWce, credentials=Vt89)", "def FIMM(YKHO):\n if 'GOOGLE_APPLICATION_CREDE...
[ "0.75207096", "0.730289", "0.72828186", "0.7248382", "0.6997247", "0.67873394", "0.65775967", "0.6429808", "0.6428761", "0.630196", "0.6251319", "0.6234788", "0.62037987", "0.6198511", "0.6187859", "0.61399424", "0.6093525", "0.6086943", "0.6085134", "0.60505426", "0.60098773...
0.5519321
62
Get the ith element from the dotbracket representation.
def OP2O(YKHO, YRbF): return YKHO.struct[YRbF]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dkyZ(YKHO):\n return YKHO.struct", "def TDfI(YKHO, nPrm: Sequence[int]) -> int:\n try:\n return nPrm.index(1)\n except ValueError:\n return len(nPrm)", "def Q7me(YKHO, YRbF):\n return YKHO.parts()[YRbF]", "def ed1k(YKHO, exwG: int) -> int:\n pass", "def U6D_(YKHO, YRbF):\n ...
[ "0.6588497", "0.6059574", "0.6052052", "0.5974613", "0.5865698", "0.58000726", "0.58000726", "0.57785195", "0.57532746", "0.5740264", "0.5730993", "0.57255346", "0.57089275", "0.57089275", "0.57089275", "0.57065266", "0.5690135", "0.5648326", "0.56445515", "0.56268847", "0.56...
0.5686088
17
Return the dotbracket representation of self.
def zAg0(YKHO): return YKHO.struct
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pu3C(YKHO):\n Xf84 = YKHO.to_pair_table()\n return eAu_(Xf84)", "def dkyZ(YKHO):\n return YKHO.struct", "def BJ1H(YKHO) -> str:\n return YKHO.value", "def BoO6(YKHO):\n return YKHO._dot", "def NYZi(YKHO) -> str:\n return YKHO._dot_str", "def BoO6(YKHO):\n return YKHO.Dot", "def...
[ "0.81786805", "0.8047119", "0.7593616", "0.7210671", "0.7203824", "0.71315765", "0.70889765", "0.7074687", "0.69436973", "0.69102216", "0.6897698", "0.6879332", "0.68208635", "0.6716832", "0.65986156", "0.64091086", "0.6315063", "0.631119", "0.629339", "0.62529814", "0.613780...
0.0
-1
Get a service that communicates to a Google API.
def TdFo(s32t, clva, rrBf, HDHj): print('Connecting to Google Tag Manger Service...') wvEv = j1Jz.ArgumentParser(formatter_class=j1Jz.RawDescriptionHelpFormatter, parents=[bWeC.argparser]) JbyC = wvEv.parse_args([]) _uqo = x0hE.flow_from_clientsecrets(HDHj, scope=rrBf, message=bWeC.message_if_missing(HD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVwF(YKHO):\n if m1bP.credentials is None:\n YKHO.login()\n return Cc7Y(YKHO.api_name, YKHO.api_version, http=m1bP.credentials.authorize(OBHh.Http()))", "def rVwF(Vt89=TNQQ()):\n return XHf1.discovery.build('gmail', 'v1', credentials=Vt89)", "def rVwF(YKHO):\n rpgP = YKHO._authorize()\n ...
[ "0.81331724", "0.7797189", "0.7621788", "0.72408867", "0.72299516", "0.6962392", "0.69258857", "0.68660104", "0.68016315", "0.6793303", "0.6754377", "0.67022604", "0.6699552", "0.66956437", "0.6691635", "0.668709", "0.66623724", "0.66619825", "0.66610235", "0.6636943", "0.663...
0.720503
5
Constructs the radius r
def FIMM(YKHO, Mkmy): YKHO.r = Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Mkmy=1, WKvO=0, LVAh=0):\n super().__init__(WKvO, LVAh)\n YKHO.radius = Mkmy", "def FIMM(YKHO, r1VO):\n YKHO.radius = r1VO", "def FIMM(YKHO, r1VO):\n YKHO.radius = r1VO", "def FIMM(YKHO, r1VO):\n YKHO.radius = float(r1VO)", "def HRUp(YKHO):\n pass", "def FIMM(YKHO, r1VO):...
[ "0.7620165", "0.75380373", "0.75380373", "0.75186306", "0.74182534", "0.73923504", "0.7317141", "0.72869503", "0.7259252", "0.7162351", "0.7143035", "0.71322453", "0.7110365", "0.70564324", "0.70439017", "0.702935", "0.702935", "0.70033795", "0.69980067", "0.69975424", "0.698...
0.0
-1
Computes area of circle
def f0tD(YKHO): return mM0K * YKHO.r ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bjvh(Mkmy):\n return mM0K * Mkmy * Mkmy", "def LA4l(Mkmy):\n return epAf.pi * Mkmy * Mkmy", "def yX2h(r1VO):\n return mM0K * r1VO * r1VO", "def yX2h(Mkmy):\n return mM0K * Mkmy ** 2", "def yX2h(r1VO):\n return mM0K * r1VO ** 2", "def UdRN(r1VO):\n f0tD = epAf.pi * r1VO ** 2\n ret...
[ "0.86048687", "0.85910827", "0.8553585", "0.84785694", "0.8452323", "0.84488416", "0.84162074", "0.8366743", "0.836189", "0.8340867", "0.8338655", "0.82959807", "0.8289612", "0.82647854", "0.8223284", "0.82030845", "0.81902456", "0.81395054", "0.81380904", "0.81182957", "0.81...
0.7617202
46
Gets the epsilon contribution of a given state for a desired hamiltonian
def io9X(YKHO, KCHu, jeg1, C7Ls, tjUW, Oa10): ywwl = len(KCHu) if C7Ls == 'transverse ising': IIvr = 0 for YRbF in range(ywwl): if YRbF == ywwl - 1: IIvr += KCHu[0] * KCHu[YRbF] else: IIvr += KCHu[YRbF] * KCHu[YRbF + 1] IgI9 = 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FmPH(YKHO, QTBn, XeOP):\n if oyIN.sum(YKHO.n[QTBn][XeOP]) > 0:\n return oyIN.sqrt((2 * oyIN.log(oyIN.power(2, YKHO.nS) - 2) - oyIN.log(T5ZY)) / oyIN.sum(YKHO.n[QTBn][XeOP]))\n return 1", "def rglp(YKHO, QTBn: State) -> eax5:\n if tuKI.random() < YKHO.epsilon:\n return YKHO.choose_unifo...
[ "0.7013174", "0.68625414", "0.68507475", "0.6794132", "0.6759818", "0.67124254", "0.67093515", "0.6678032", "0.6674348", "0.66473585", "0.66376424", "0.66362816", "0.66362673", "0.66021967", "0.6590523", "0.6589525", "0.6587844", "0.65816927", "0.6548001", "0.64929855", "0.64...
0.6574748
18
Normalize the index in case it is a numpy integer or boolean array.
def FGRV(YRbF): if isinstance(YRbF, oyIN.ndarray): if YRbF.dtype == bool: YRbF = tuple((r845.tolist() for r845 in YRbF.nonzero())) elif YRbF.dtype == int: YRbF = YRbF.tolist() return YRbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gpzU(YKHO, ezWE):\n CFt0 = oyIN.where(ezWE > 0)[0]\n if len(CFt0) > 0:\n vELP = min(ezWE.min(), ezWE[CFt0].min())\n PtQX = ezWE[CFt0].max()\n by6d = PtQX - vELP\n ezWE[CFt0] = (ezWE[CFt0] - vELP) / by6d\n return ezWE", "def ubzb(QpfX, mBtZ, EsHr, or8S):\n if isinstance...
[ "0.67452955", "0.6555586", "0.6462701", "0.62377805", "0.60739625", "0.6011369", "0.5978488", "0.5957418", "0.59527355", "0.58873475", "0.58742344", "0.5858984", "0.5804981", "0.57613236", "0.57584953", "0.57121706", "0.5712034", "0.5702354", "0.56891835", "0.5688237", "0.567...
0.7403658
0
Search for duplicate items in all collections. Examples >>> duplicate_items([1, 2], [3]) set()
def vR2X(*g760): xFUr = set() PwWw = set() for ZfUD in PWgb(g760): if ZfUD in PwWw: xFUr.add(ZfUD) else: PwWw.add(ZfUD) return xFUr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kxx8(DumB):\n BWz1 = mBkc(DumB)\n return set((WKvO for WKvO in DumB if BWz1[WKvO] > 1))", "def xFUr(UqER: Iterable) -> fHNa:\n KCHu = set()\n return set((U6D_ for U6D_ in UqER if U6D_ in KCHu or KCHu.add(U6D_)))", "def crpa(OxJJ):\n return [G1Hx for G1Hx, Ty9i in mBkc(OxJJ).items() if Ty9i >...
[ "0.7924091", "0.70659125", "0.69172215", "0.678992", "0.67547107", "0.66538924", "0.66398484", "0.6620489", "0.65812165", "0.6521655", "0.64487976", "0.64382344", "0.64193916", "0.6419186", "0.64032423", "0.64023036", "0.6400784", "0.6394975", "0.63747275", "0.63669366", "0.6...
0.79151624
1
Convenience function to freeze a passed torch parameter. Used by ``skorch.callbacks.Freezer``
def t8ji(xqoZ): xqoZ.requires_grad = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def teR8(xqoZ):\n xqoZ.requires_grad = True", "def FiJ9(*qIxc, **B2fa):\n pass", "def vKfT(yR_P: nn.Module, wYTH: Optional[bool]=True, OXzC: Optional[bool]=True):\n U9sJ = (U78l.BatchNorm1d, U78l.BatchNorm2d, U78l.BatchNorm3d, U78l.SyncBatchNorm)\n if wYTH is not None:\n for xqoZ in yR_P.par...
[ "0.71058124", "0.664142", "0.6637086", "0.6465753", "0.63571286", "0.62810785", "0.62542796", "0.6236197", "0.622596", "0.61987644", "0.61987644", "0.6127103", "0.6081143", "0.6073027", "0.6053056", "0.6048517", "0.6026774", "0.6026774", "0.6023865", "0.6013218", "0.5985339",...
0.7478546
0
Determine the location to map loaded data (e.g., weights) for a given target device (e.g. 'cuda').
def Pa2y(l3zO, r40D='cpu'): if l3zO is None: l3zO = r40D O6p0 = ht2j.device(l3zO) if O6p0.type == 'cuda' and (not ht2j.cuda.is_available()): qmLP.warn('Requested to load data to CUDA but no CUDA devices are available. Loading on device "{}" instead.'.format(r40D), _p6I) O6p0 = ht2j.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jMSC(YKHO):\n return '%s/%s' % (YKHO.config_dir, YKHO._device_map_file)", "def jDKX(YKHO, Cljj, YBcr):\n return Hy7s.path.join(YKHO.dataPath(), YBcr, '{0}_{1}.{2}'.format(Cljj.var('mapType'), Cljj.var('udim'), YBcr))", "def VeaS(begE=None):\n if begE is None:\n begE = 'cuda' if ht2j.cuda.is...
[ "0.5832561", "0.5819478", "0.55901283", "0.55438715", "0.5529187", "0.55042905", "0.5403207", "0.538747", "0.5328654", "0.5326628", "0.53228605", "0.5322363", "0.5308018", "0.52872443", "0.5266782", "0.52487946", "0.52452534", "0.5245065", "0.5218351", "0.52180576", "0.521093...
0.8053601
0
Create a 2d probability array from a 1d vector This is needed because by convention, even for binary classification problems, sklearn expects 2 probabilities to be returned per row, one for class 0 and one for class 1.
def IrZv(JxU2): BNgt = ht2j.stack((1 - JxU2, JxU2), 1) return BNgt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kXox(TUaW):\n mriV = sum(TUaW)\n return [tygn / mriV for tygn in TUaW]", "def ASeI(BFeB):\n return oyIN.array([[1 - XP5J, XP5J] for XP5J in BFeB])", "def Ajxi(YKHO, nPrm):\n if nPrm.ndim == 1:\n return oyIN.array(YKHO.predict_probability(nPrm))\n elif nPrm.ndim == 2:\n return o...
[ "0.6526064", "0.64397055", "0.6353981", "0.6194573", "0.61862767", "0.6094624", "0.6094624", "0.5981656", "0.58763653", "0.58701396", "0.58611166", "0.58553374", "0.5845352", "0.57753044", "0.5744189", "0.57253677", "0.5725193", "0.5723077", "0.5718654", "0.57164663", "0.5710...
0.6665316
0
Transform 1dim logits to valid y_proba Sigmoid is applied to x to transform it to probabilities. Then concatenate the probabilities with 1 these probabilities to return a correctly formed ``y_proba``. This is required for sklearn, which expects probabilities to be 2d arrays whose sum along axis 1 is 1.0.
def G7TO(WKvO): JxU2 = ht2j.sigmoid(WKvO) return IrZv(JxU2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KR85(YKHO, EcVT):\n ZxJs = oyIN.zeros((EcVT.shape[0], 2))\n ZxJs[:, 1] = rh78(oyIN.dot(EcVT, YKHO.coef_) + YKHO.intercept_)\n ZxJs[:, 0] = 1 - ZxJs[:, 1]\n return ZxJs", "def KR85(YKHO, EcVT):\n WvFA = YKHO.clf.predict_proba(EcVT)\n BNgt = WvFA[0]\n for WKvO in WvFA[1:]:\n if WKvO...
[ "0.756243", "0.7387263", "0.73034286", "0.7233195", "0.7220652", "0.71793103", "0.7120679", "0.71094686", "0.7071392", "0.70527947", "0.70171577", "0.70161104", "0.70008737", "0.69942355", "0.6984613", "0.6948506", "0.69476753", "0.69252014", "0.6920837", "0.69200253", "0.691...
0.0
-1
Assert that a and b are withing atol of each other. If a and b differ by more than warnatol, raise FloatingPointError, else just emit a warning.
def oFWr(jzdc, Fg_i, rU28=1e-12, E4N8=100, U34r=None): NSNl = AczZ(jzdc) oewy = AczZ(Fg_i) if NSNl and (not oewy) or (not NSNl and oewy): raise ValueError('trying to compare a sequence and non-sequence: a=%r b=%r' % (jzdc, Fg_i)) LcA7 = F9Cg() D9cM = LcA7.asarray(jzdc) bBVO = LcA7.asarra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SjMt(jzdc, Fg_i, U34r=None):\n oFWr(jzdc, Fg_i, atol=0, warn=0, info=U34r)", "def GQ6q(YKHO, jzdc, Fg_i, rU28=1e-08, tO9_=None):\n Ayfi = YKHO.distance(jzdc, Fg_i)\n if tO9_ is None:\n tO9_ = ''\n if Ayfi > rU28:\n tO9_ += '\\nThe two points should be the same:\\n'\n tO9_ += ...
[ "0.70343316", "0.6866164", "0.6694169", "0.6609247", "0.65937394", "0.65678996", "0.6439204", "0.6430593", "0.6363564", "0.6291883", "0.62639123", "0.62400496", "0.6213923", "0.6213923", "0.6205373", "0.620407", "0.61837626", "0.6131567", "0.612457", "0.611322", "0.61083245",...
0.7322269
0
Adds a graph node of subtype CommentNode to the graph.
def a7gr(YKHO, id, aM_I): if YKHO.graph.FindNodeById(id): id += str(tuKI.randint(1, 9999)) a1PO, vC9B, yzQ0, MKlR = (tuKI.randint(0, 100), tuKI.randint(0, 100), 200, 100) Q6kx = XCkI(id, a1PO, vC9B, yzQ0, MKlR, comment=aM_I) Q6kx = YKHO.graph.AddNode(Q6kx) return Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PU3S(YKHO, sLqe):\n YKHO.comments.append(sLqe)", "def ktLQ(YKHO, Q6kx: Comment) -> None:\n YKHO._check_comment_spaces(Q6kx)\n YKHO.generic_visit(Q6kx)", "def rkaj(pNZh, tO9_, QWcs, j8eK):\n bUuA = IrEr()\n pNZh.add((H7JB, JNEb[QWcs], bUuA))\n pNZh.add((bUuA, M4Yk['onURI'], j8eK))\n pNZ...
[ "0.64569896", "0.6431162", "0.6420859", "0.6253339", "0.6242185", "0.6145264", "0.61451596", "0.6139464", "0.60619825", "0.6028297", "0.601422", "0.5995944", "0.58767015", "0.5856799", "0.5845816", "0.57723284", "0.5769084", "0.5753983", "0.57499397", "0.5743762", "0.57381135...
0.71142685
0
Sets the name of this PlaceOfDelivery.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP=''):\n YKHO.set_property('name', mWFP)", "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", ...
[ "0.7471002", "0.7448576", "0.7433564", "0.74263924", "0.74263924", "0.74263924", "0.74263924", "0.74263924", "0.74263924", "0.74263924", "0.74263924", "0.7375826", "0.7373819", "0.7373819", "0.7373819", "0.7373819", "0.7373819", "0.7373819", "0.7373819", "0.73573685", "0.7357...
0.69727117
84
Sets the code of this PlaceOfDelivery.
def Wxnj(YKHO, Wxnj): YKHO._code = Wxnj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xGo7(YKHO, Wxnj):\n YKHO.code = Wxnj", "def xGo7(YKHO, Wxnj):\n YKHO.__code = Wxnj", "def Wxnj(YKHO, Wxnj: int):\n YKHO._code = Wxnj", "def xGo7(YKHO, Wxnj):\n YKHO.proto.code = Wxnj", "def kztS(YKHO, Wxnj):\n YKHO._code = YKHO._validate_code(Wxnj)", "def Wxnj(YKHO, Wxnj):\n if Wxnj...
[ "0.78115755", "0.7766408", "0.75200254", "0.74736905", "0.7294452", "0.72801596", "0.70139503", "0.7009216", "0.695217", "0.69427603", "0.69427603", "0.69427603", "0.69427603", "0.69427603", "0.69090575", "0.6890106", "0.6890106", "0.6890106", "0.6890106", "0.6890106", "0.685...
0.7656099
3
Sets the register_code of this PlaceOfDelivery.
def CBBk(YKHO, CBBk): YKHO._register_code = CBBk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xGo7(YKHO, Wxnj):\n YKHO.code = Wxnj", "def xGo7(YKHO, Wxnj):\n YKHO.__code = Wxnj", "def Wxnj(YKHO, Wxnj):\n YKHO._code = Wxnj", "def Wxnj(YKHO, Wxnj):\n YKHO._code = Wxnj", "def Wxnj(YKHO, Wxnj):\n YKHO._code = Wxnj", "def Wxnj(YKHO, Wxnj):\n YKHO._code = Wxnj", "def Wxnj(YKHO, ...
[ "0.69503355", "0.6902291", "0.6727885", "0.6727885", "0.6727885", "0.6727885", "0.6727885", "0.6727885", "0.6727885", "0.6727885", "0.6727885", "0.6727885", "0.6727885", "0.6644118", "0.6613452", "0.6548969", "0.6446675", "0.64266944", "0.6419133", "0.637218", "0.635476", "...
0.80039996
0
Sets the address of this PlaceOfDelivery.
def UTX6(YKHO, UTX6): YKHO._address = UTX6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ce3W(YKHO, UTX6):\n YKHO.address = UTX6", "def Ce3W(YKHO, UTX6):\n YKHO.address = UTX6", "def Ce3W(YKHO, UTX6):\n YKHO.address = UTX6", "def HSdK(YKHO, rRzo):\n YKHO.address = rRzo", "def Ce3W(YKHO, DbMD):\n YKHO.__address = DbMD", "def HSdK(YKHO, UTX6: str):\n YKHO.__address = UTX6...
[ "0.78630954", "0.78630954", "0.78630954", "0.77626127", "0.7580465", "0.75251865", "0.7355641", "0.73042613", "0.7271472", "0.7271472", "0.7271472", "0.7259531", "0.7259531", "0.7259531", "0.7259531", "0.7201674", "0.717669", "0.71184546", "0.7075516", "0.69984084", "0.699791...
0.7293274
9
Sets the coordinates of this PlaceOfDelivery.
def W0Eb(YKHO, W0Eb): YKHO._coordinates = W0Eb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HSzC(YKHO, W0Eb):\n pass", "def HSzC(YKHO, W0Eb):\n YKHO.set_latitude_points(W0Eb[0])\n YKHO.set_longitude_points(W0Eb[1])", "def HSzC(YKHO, W0Eb):\n YKHO._coordinates = W0Eb\n YKHO._window.simulation_child.update_simulation(YKHO._coordinates)\n return", "def f1l8(YKHO, jNOo):\n YKHO...
[ "0.74673176", "0.7035203", "0.6917518", "0.68501025", "0.6843905", "0.6843038", "0.6808527", "0.67820257", "0.6734755", "0.6714055", "0.65384394", "0.64662045", "0.6396455", "0.62390745", "0.6224548", "0.6220832", "0.6172553", "0.6113883", "0.6112528", "0.6050145", "0.6035662...
0.73399645
1
Sets the open_times of this PlaceOfDelivery.
def b260(YKHO, b260): YKHO._open_times = b260
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmmK(YKHO, cmmK):\n YKHO._open_hour = cmmK", "def O9w5(YKHO, O9w5):\n YKHO._open_minute = O9w5", "def nf4s(YKHO, nf4s):\n YKHO._at_times = nf4s", "def ryp4(YKHO, ryp4):\n YKHO._open_price = ryp4", "def ig4w():\n global opentime\n global closetime\n b6Gq.every().day.at(DrKc).do(kz5O...
[ "0.62123215", "0.58269906", "0.58189946", "0.55745804", "0.54424846", "0.5405936", "0.536414", "0.53596294", "0.530731", "0.5289917", "0.5282844", "0.52257335", "0.5200733", "0.5193319", "0.5080182", "0.5032358", "0.49822846", "0.49495244", "0.48800635", "0.48209548", "0.4814...
0.8544307
0
Sets the is_active of this PlaceOfDelivery.
def ksfB(YKHO, ksfB): YKHO._is_active = ksfB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLjN(YKHO, ksfB):\n dict.__setitem__(YKHO, bHSV, ksfB)", "def ksfB(YKHO, ksfB):\n if ksfB is None:\n raise ValueError('Invalid value for `is_active`, must not be `None`')\n YKHO._is_active = ksfB", "def ksfB(YKHO, ksfB):\n YKHO._is_active = ksfB", "def WZHJ(YKHO, WZHJ):\n if WZHJ is...
[ "0.77080846", "0.76740897", "0.7617481", "0.7335931", "0.7289943", "0.72409576", "0.72409576", "0.72409576", "0.72409576", "0.72409576", "0.72409576", "0.72409576", "0.72409576", "0.7124967", "0.71139956", "0.71139956", "0.7006929", "0.6951256", "0.6941528", "0.6933957", "0.6...
0.77283293
0
Sets the preferred_certificates of this PlaceOfDelivery.
def Ny1v(YKHO, Ny1v): YKHO._preferred_certificates = Ny1v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rJsJ(YKHO, rJsJ):\n YKHO._preferred = rJsJ", "def rJsJ(YKHO, rJsJ: bool):\n YKHO._preferred = rJsJ", "def TeFf(YKHO, TeFf):\n YKHO._preferred_currency = TeFf", "def HDor(YKHO, HDor):\n YKHO._preferred_organization = HDor", "def MLiY(YKHO, MLiY):\n YKHO._preferred_language = MLiY", "def...
[ "0.65392166", "0.6401967", "0.6090417", "0.57686245", "0.57560104", "0.5703074", "0.54309237", "0.52346027", "0.52223057", "0.5167855", "0.5110319", "0.49433166", "0.4847651", "0.48046848", "0.4782947", "0.47359216", "0.47099975", "0.46728894", "0.46652305", "0.46350783", "0....
0.8770489
0
Sets the contact_person of this PlaceOfDelivery.
def JKRR(YKHO, JKRR): YKHO._contact_person = JKRR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JKRR(YKHO, JKRR):\n if JKRR is not None and len(JKRR) > 255:\n raise ValueError('Invalid value for `contact_person`, length must be less than or equal to `255`')\n if JKRR is not None and len(JKRR) < 1:\n raise ValueError('Invalid value for `contact_person`, length must be greater than or e...
[ "0.7414782", "0.7042956", "0.7042956", "0.7042956", "0.7012591", "0.70099974", "0.69433904", "0.6860873", "0.66603386", "0.6509962", "0.6425836", "0.63734376", "0.6262603", "0.6262603", "0.6262603", "0.6262603", "0.6186815", "0.6186815", "0.615011", "0.60777014", "0.60777014"...
0.82330877
0
Sets the waybill_authorizations of this PlaceOfDelivery.
def rJTL(YKHO, rJTL): YKHO._waybill_authorizations = rJTL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yiMi(YKHO, yiMi):\n YKHO._authorities = yiMi", "def oia9(YKHO, oia9):\n YKHO._approvers = oia9", "def BG6e(YKHO, BG6e):\n YKHO._business_amenities = BG6e", "def J2Gx(YKHO, J2Gx):\n YKHO._authored_by = J2Gx", "def g_5r(YKHO, r3IU):\n for NKcE in r3IU:\n YKHO.set_rpc_authorizations(...
[ "0.5572411", "0.5373742", "0.53604066", "0.53309757", "0.5216877", "0.5189829", "0.5095306", "0.5095306", "0.5013327", "0.49722183", "0.491904", "0.48846477", "0.48547822", "0.4826572", "0.48140246", "0.47946548", "0.47900635", "0.4786507", "0.47827387", "0.47474948", "0.4704...
0.84075373
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, vLV0): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
If the form is valid, save the associated model and finish the task.
def lwXz(YKHO, *qIxc, **B2fa): super(zI3h, YKHO).form_valid(*qIxc, **B2fa) YKHO.activation_done(*qIxc, **B2fa) return Yd7Q(YKHO.get_success_url())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O_ar(YKHO):\n if YKHO.form.is_valid():\n YKHO.form.save()\n return Yd7Q(YKHO.get_success_url())", "def O_ar(YKHO):\n if YKHO.form.is_valid():\n YKHO.form.save()\n return Yd7Q(YKHO.get_success_url())", "def lwXz(YKHO, L03z):\n from metabase.tasks import async_create_stat...
[ "0.7747806", "0.7649968", "0.7385944", "0.7246613", "0.7014582", "0.69777197", "0.69777197", "0.69667166", "0.69653636", "0.6945759", "0.6934209", "0.68485975", "0.67928785", "0.667462", "0.6673668", "0.6673668", "0.6640567", "0.6640567", "0.6640567", "0.6640567", "0.66308045...
0.6311243
49
Check whether the given pathname points to an existing file.
def Nz4g(YKHO, uvd8): return YKHO.test('test', '-f', uvd8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUeQ(uvd8):\n return Hy7s.path.isfile(uvd8) if uvd8 else False", "def cw5c(qaEx: pathlib.Path) -> bool:\n try:\n return qaEx.exists()\n except OSError:\n return False", "def EFYe(uvd8):\n return Hy7s.path.isfile(uvd8) if uvd8 else False", "def poxP(pmON):\n return EFYe(pmON)"...
[ "0.7861116", "0.7776162", "0.77237934", "0.77169484", "0.77062196", "0.77031016", "0.77025676", "0.76596034", "0.76403517", "0.7634004", "0.76031387", "0.7602521", "0.7587943", "0.7501994", "0.7499335", "0.74985474", "0.7495711", "0.74755645", "0.7472466", "0.7442377", "0.743...
0.74606216
19
Return the display name of this sensor.
def mWFP(YKHO): return YKHO._obj.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQNS(YKHO):\n if YKHO._display_prefix:\n return YKHO._display_prefix + YKHO._sensor_key\n else:\n return YKHO._sensor_key", "def mWFP(YKHO):\n return f'{YKHO._device.name} {YKHO._sensor_type['name']}'", "def y0hN(YKHO) -> str:\n return YKHO.get_hardware_state()['display_name']", ...
[ "0.8773674", "0.852747", "0.85128516", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "0.8368911", "...
0.0
-1
Return the polling state.
def KZ_I(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def poll_and_get_state(YKHO):\n await eqv8(YKHO.hass, 60)\n QTBn = YKHO.hass.states.get(YKHO.entity_id)\n assert QTBn is not None\n return QTBn", "def ja6o(YKHO):\n IOKn = YKHO._alarm()\n return IOKn.state", "def lUir(YKHO):\n if YKHO.db_connection.poll() == CBZq.POLL_OK:\n aB...
[ "0.7293356", "0.7084267", "0.7076358", "0.70510584", "0.7025789", "0.6984706", "0.69791013", "0.69772166", "0.69690984", "0.6961726", "0.694051", "0.6920858", "0.6912413", "0.6905527", "0.68835574", "0.6876464", "0.6865388", "0.6865246", "0.6862717", "0.6855354", "0.6841702",...
0.0
-1