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 the Resource.
def wHJl(YKHO): return '{}<id={},parent={}>'.format(YKHO.type, YKHO.id, YKHO.parent)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return f'< Resource: res_id = {YKHO.res_id},\\n user_id = {YKHO.user_id},\\n event_id = {YKHO.event_id},\\n name = {YKHO.name} >'", "def Eorv(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.ge...
[ "0.84225136", "0.7584722", "0.7509599", "0.73124504", "0.72905004", "0.7289485", "0.72118884", "0.72118884", "0.72118884", "0.72118884", "0.7163867", "0.7111243", "0.70969236", "0.7056436", "0.7056436", "0.70470077", "0.700231", "0.6998401", "0.6976719", "0.6973089", "0.69695...
0.0
-1
Add plugin to list of plugins. Will be added if it has the attribute I'm bound to.
def QQzD(YKHO, t0qN, pOv4): iked = getattr(t0qN, pOv4, None) if iked is not None: YKHO.plugins.append((t0qN, iked))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QQzD(YKHO, t0qN):\n t0qN.enabled = True\n t0qN.on_associated(YKHO)\n YKHO._plugins.append(t0qN)", "def H2v5(YKHO, suyw):\n IgXg = ['ThreadPlugin', 'WebPlugin']\n BpRX = Hy7s.path.splitext(suyw)[0]\n KZ52 = __import__(BpRX)\n for VlDb in dir(KZ52):\n if VlDb.startswith('__') or VlD...
[ "0.7471967", "0.6736364", "0.6716225", "0.66219944", "0.65033865", "0.6469508", "0.6438361", "0.64352196", "0.63902766", "0.6381172", "0.6371926", "0.636308", "0.6360982", "0.6338639", "0.63114876", "0.6310372", "0.6309454", "0.62908906", "0.6236135", "0.6229015", "0.61918515...
0.7149613
1
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.8641601", "0.85101396", "0.7854588", "0.77447397", "0.7712095", "0.7697975", "0.7660445", "0.76389617", "0.76230335", "0.7608357", "0.7608357", "0.7608357", "0.7607762", "0.7600412", "0.75866044", "0.7583521", "0.75721645", "0.7569367", "0.7540305", "0.7540305", "0.7528848...
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
Returns all the data that should be saved in the snapshot for this iteration.
def ZHlS(YKHO, WRKq, C57J): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rwel(YKHO):\n return {'data': YKHO.data}", "def fFGI(YKHO):\n return YKHO.data", "def ChRH(YKHO):\n return YKHO.data", "def syxr(YKHO):\n return YKHO.stored_values", "def QVrV(YKHO):\n return list(YKHO.buffer)", "def eGRE(YKHO):\n axon = []\n ZLJ_ = YKHO._get_columns()\n for M...
[ "0.8010504", "0.7239132", "0.70867455", "0.68902826", "0.68895143", "0.6886976", "0.6877497", "0.6876663", "0.68002653", "0.67527443", "0.6725879", "0.668927", "0.6684174", "0.6670592", "0.66577756", "0.66426075", "0.6622999", "0.661463", "0.66077095", "0.6607513", "0.6606949...
0.0
-1
Returns the amount of cash.
def KWPq(YKHO): return YKHO.__ibConnection.getCash()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wjRY(YKHO):\n return YKHO.money", "def ZXl_(YKHO):\n return YKHO.cf_amount", "def KWPq(YKHO, VIXL='USD'):\n YKHO.requestAccountUpdate()\n YKHO.__accUpdateLock.acquire()\n VoIp = None\n H9pc = False\n while not H9pc:\n try:\n VoIp = float(YKHO.__accountValues[YKHO.__ac...
[ "0.764799", "0.748949", "0.7309823", "0.7263511", "0.7251731", "0.71660036", "0.7154308", "0.7111382", "0.7100977", "0.70944357", "0.70596284", "0.7053769", "0.70461744", "0.6992051", "0.69912887", "0.69562364", "0.69381464", "0.6932679", "0.6925319", "0.68930393", "0.6882800...
0.78590536
0
Get the channel collection by one of its ``child_channel_oid``.
def UxFn(YKHO, tmKJ: ObjectId): return YKHO.find_one_casted({DoaR.ChildChannelOids.key: tmKJ})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTrz(YKHO, Jyyj, BWXx):\n return hEDH.KeyMileChannelCollection(YKHO._conn, P8oC.get_sub_resource_path_by(YKHO, 'channels'), params={Jyyj: BWXx}).find_by_field_value(Jyyj, BWXx)", "def z7PK(YKHO):\n return YKHO", "def Pe1p(Emd4, LOJ7):\n xMux = eAis(Emd4)\n for YwkQ in xMux:\n if YwkQ.cha...
[ "0.6547586", "0.64547414", "0.6310989", "0.61473536", "0.6146621", "0.6080932", "0.60785496", "0.60700035", "0.6042328", "0.6027666", "0.6026262", "0.6011329", "0.60095286", "0.6006449", "0.59916717", "0.5944245", "0.5944245", "0.5909179", "0.58787817", "0.5862694", "0.582644...
0.8751132
0
Encode the categorical variables.
def RJ7S(YKHO, jQ3Z, ziMw=[]): D1DB = jQ3Z.select_dtypes(include=['object', 'category']) PFwc = D1DB.shape[1] vSJJ = rLdf.DataFrame(index=jQ3Z.index) jQ3Z = jQ3Z.drop(D1DB.columns, axis=1) if len(ziMw) == 0: ziMw = PFwc * [False] for YRbF in range(PFwc): WKvO = D1DB[D1DB.columns[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjAA(YKHO):\n LJE9 = ZvG6.LabelEncoder()\n LJE9.fit(YKHO.data['Type'])\n YKHO.data['Type'] = LJE9.transform(YKHO.data['Type'])\n LJE9.fit(YKHO.data['Source'])\n YKHO.data['Source'] = LJE9.transform(YKHO.data['Source'])\n LJE9.fit(YKHO.data['Status'])\n YKHO.data['Status'] = LJE9.transform(...
[ "0.77878374", "0.7387394", "0.7359869", "0.7201353", "0.71515226", "0.71232754", "0.7098619", "0.70873785", "0.69908375", "0.6893579", "0.68765575", "0.6849139", "0.678989", "0.67806256", "0.674076", "0.6705315", "0.6670119", "0.65630484", "0.64773285", "0.6450266", "0.641612...
0.72473425
3
Binary labeling depending on a specific threshold.
def Ffz0(YKHO, WKvO, Hw9C): if isinstance(Hw9C, list): BB38 = 1 * WKvO.isin(Hw9C) else: BB38 = 1 * (WKvO > Hw9C) return BB38
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rDFg(YKHO, WKvO, gwAu=None, **B2fa):\n hlel = YKHO(WKvO, **B2fa)\n if YKHO.classification_type == 'multi':\n Crrw = BfDw.prob2label(hlel)\n elif YKHO.classification_type == 'binary':\n Crrw = oyIN.where(hlel >= gwAu, 1, 0)\n return Crrw", "def R6mc(PjQx, gwAu):\n mTWI = []\n f...
[ "0.76401913", "0.7461036", "0.7316532", "0.7232501", "0.71677417", "0.7063838", "0.7025598", "0.7016482", "0.69842815", "0.6910118", "0.6848085", "0.6805996", "0.6803413", "0.6799366", "0.67818075", "0.6757368", "0.6729238", "0.6723431", "0.6646779", "0.663107", "0.66281676",...
0.0
-1
Load augmented image with output shape (w, h). Default arguments return non augmented image of shape (w, h). To apply a fixed transform (color augmentation) specify transform (color_vec). To generate a random augmentation specify aug_params and sigma.
def Q8uh(IznC, yzQ0, MKlR, PyNT=GPtr.no_augmentation_params, SZFh=None, WTkW=0.0, YkCN=None): VXjJ = DZ0a(IznC) if SZFh is None: VXjJ = jT0y(VXjJ, augmentation_params=PyNT, target_shape=(yzQ0, MKlR)) else: VXjJ = Os5c(VXjJ, tform_augment=SZFh, target_shape=(yzQ0, MKlR)) oyIN.subtract(VXj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EPhu(LNo8, pChn, v__7=128):\n LNo8 = hnIv.fromarray(oyIN.uint8(LNo8))\n if pChn:\n if tuKI.random() < 0.5:\n LNo8 = vuvg.hflip(LNo8)\n if tuKI.random() < 0.5:\n LNo8 = vuvg.vflip(LNo8)\n LNo8 = vuvg.center_crop(LNo8, int(0.8 * LNo8.size[0]))\n aGFF = tuKI...
[ "0.6499237", "0.64484954", "0.623124", "0.6058014", "0.6013211", "0.6003169", "0.5989082", "0.5987233", "0.59695846", "0.59328693", "0.59235024", "0.59223664", "0.59188354", "0.59086627", "0.5904417", "0.58923465", "0.58649886", "0.5848767", "0.5838595", "0.58329195", "0.5804...
0.8154518
0
Returns the number of times the target occurs in the list. If the target is not in the list at all, returns zero.
def UHFx(rwFM, pan_): ewCu = 0 VyRZ = rwFM while VyRZ != None: if VyRZ['data'] == pan_: ewCu += 1 VyRZ = VyRZ['next'] return ewCu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def df64(IqQl, pan_):\n UHFx = 0\n for LihS in IqQl:\n if LihS == pan_:\n UHFx += 1\n return UHFx", "def joZK(IqQl, pan_):\n ILP8 = Vrw5(IqQl, pan_, WKue.FIRST)\n FHeM = Vrw5(IqQl, pan_, WKue.LAST)\n if ILP8 == -1 or FHeM == -1:\n return 0\n return FHeM - ILP8 + 1", ...
[ "0.8116922", "0.7150177", "0.69497555", "0.6886534", "0.68527216", "0.6621189", "0.6602846", "0.65783983", "0.64520365", "0.64153993", "0.6385686", "0.63450754", "0.6343325", "0.6340002", "0.6268704", "0.625512", "0.62413806", "0.6235548", "0.6151451", "0.61401343", "0.613291...
0.6865766
4
Value iterator for parent regardless of meta.collapse_not_indexed
def ACnF(YKHO): return YKHO._parent.itervalues()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n return iter(YKHO._parent)", "def J4Nn(YKHO) -> bDy6[h2j7]:\n if isinstance(YKHO.item, hKpc):\n _AKB = YKHO.get_parent(YKHO.item.elem)\n else:\n _AKB = YKHO.get_parent(YKHO.item)\n if _AKB is not None:\n jGRS = (YKHO.item, YKHO.axis)\n YKHO.axis = 'parent'...
[ "0.7208575", "0.71569806", "0.69131833", "0.69131833", "0.69131833", "0.6811635", "0.6768415", "0.6738316", "0.6670465", "0.6645281", "0.6645281", "0.6633863", "0.65289885", "0.6518737", "0.649614", "0.6449519", "0.64483255", "0.64393324", "0.643223", "0.6428111", "0.64271384...
0.0
-1
Returns a tuple of (features (x), target (y), metadata (m)) for an input array of indices (idx).
def G0mA(or8S, EcVT, fuBA, e5kH=None): SLsv = EcVT.iloc[or8S, :].reset_index(drop=True) CjQX = oyIN.squeeze(fuBA.iloc[or8S, :]).reset_index(drop=True) if e5kH is not None: c5Em = e5kH.iloc[or8S, :].reset_index(drop=True) else: e5kH = None return (SLsv, CjQX, c5Em)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, or8S):\n WKvO = YKHO.get_input(or8S)\n LVAh = YKHO.get_target(or8S)\n r8hN = YKHO.get_metadata(or8S)\n return (WKvO, LVAh, r8hN)", "def OP2O(YKHO, or8S: int) -> AzJI[ImMB, ImMB]:\n nPrm = ht2j.from_numpy(YKHO.features[or8S].astype(oyIN.float32))\n UXqs = YKHO.labels[or8S]\n re...
[ "0.71541566", "0.6661055", "0.6636421", "0.64211714", "0.6371358", "0.6368704", "0.63262767", "0.61925155", "0.61669827", "0.6122539", "0.60875773", "0.6052988", "0.6041656", "0.60370743", "0.6035256", "0.60281044", "0.6018544", "0.6007054", "0.6006539", "0.60011953", "0.5991...
0.0
-1
Testing if the grid shape matches the inputs.
def Pce5(OgIU): assert OgIU.grid.number_of_node_rows == PsXg[0] assert OgIU.grid.number_of_node_columns == PsXg[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r3RQ(YKHO, Elif):\n return YKHO.shape == Elif.shape and YKHO.size == Elif.size", "def _Q3d(YKHO, ROpF: tf.TensorShape) -> bool:\n return YKHO.shape.as_list() == ROpF.as_list()", "def GfdN(YKHO):\n if not YKHO.W_in.shape == (YKHO.Nr, YKHO.Nu + 1):\n return False\n elif not YKHO.W.shape ==...
[ "0.7415953", "0.69944674", "0.6970795", "0.688554", "0.68038034", "0.6757437", "0.673996", "0.67253006", "0.67149854", "0.66874915", "0.66562897", "0.66504157", "0.6649415", "0.6634142", "0.6630239", "0.6621692", "0.6612341", "0.6611819", "0.65977526", "0.6588052", "0.6578676...
0.69427705
3
GIVEN a User model WHEN a new User is created THEN check the email, hashed password and role fields are defined correctly
def F3wO(r85e): assert r85e.email == 'test@test.com' assert r85e.username == 'test_username' assert r85e.password != 'test_password' assert r85e.type_id == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCCo(YKHO):\n D3lj = 'test@gmail.com'\n IznC = 'test'\n dW_5 = 'user'\n ecw6 = '08031231233'\n jTXt = 'testingPass123'\n CBIr = egNl().objects.create_user(IznC, dW_5, ecw6, D3lj, jTXt)\n YKHO.assertEqual(CBIr.email, D3lj)\n YKHO.assertEqual(CBIr.first_name, IznC)\n YKHO.assertEqual(C...
[ "0.71947104", "0.7157778", "0.71101755", "0.71069145", "0.70664996", "0.7046195", "0.7032599", "0.70238006", "0.70082486", "0.7003878", "0.69950336", "0.6976724", "0.69765943", "0.6972094", "0.696596", "0.6965487", "0.6965194", "0.6960505", "0.69528884", "0.69437414", "0.6943...
0.0
-1
This test checks if the function read_triangle works correctly with some correct input.
def xamx(YKHO): with tAr4('1 2\n1 2\n1 2\n'), aOG7(): YKHO.assertEqual(RsDR(), [1.0, 2.0, 1.0, 2.0, 1.0, 2.0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zTBE(YKHO):\n with tAr4('\\n1 2\\n1 2\\n1 2\\n'), aOG7():\n YKHO.assertEqual(RsDR(), [1.0, 2.0, 1.0, 2.0, 1.0, 2.0])", "def U6KJ(YKHO):\n with tAr4('1 2 3\\n1 2\\n1 2\\n1 2\\n'), aOG7():\n YKHO.assertEqual(RsDR(), [1.0, 2.0, 1.0, 2.0, 1.0, 2.0])", "def Z6f8(YKHO):\n with tAr4('1 a\\n...
[ "0.72692645", "0.72043866", "0.71326256", "0.7039257", "0.70248383", "0.69983524", "0.6962613", "0.6960579", "0.6938174", "0.6930617", "0.6905686", "0.68240076", "0.6783551", "0.67738837", "0.6764645", "0.67387605", "0.67256594", "0.6724927", "0.6707326", "0.6685511", "0.6674...
0.7320726
0
This test checks if the function read_triangle works correctly assuming that user entered coordinates with the wrong type for the first vertex.
def Z6f8(YKHO): with tAr4('1 a\n1 2\n1 2\n1 2\n'), aOG7(): YKHO.assertEqual(RsDR(), [1.0, 2.0, 1.0, 2.0, 1.0, 2.0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6KJ(YKHO):\n with tAr4('1 2 3\\n1 2\\n1 2\\n1 2\\n'), aOG7():\n YKHO.assertEqual(RsDR(), [1.0, 2.0, 1.0, 2.0, 1.0, 2.0])", "def zTBE(YKHO):\n with tAr4('\\n1 2\\n1 2\\n1 2\\n'), aOG7():\n YKHO.assertEqual(RsDR(), [1.0, 2.0, 1.0, 2.0, 1.0, 2.0])", "def Jcp_(YKHO):\n with YKHO.assertR...
[ "0.72034997", "0.71983504", "0.6847508", "0.6830603", "0.6714868", "0.6635789", "0.65773624", "0.6553712", "0.6510066", "0.6485362", "0.6460373", "0.6459694", "0.64557976", "0.6452887", "0.64462674", "0.6419217", "0.6397725", "0.6396185", "0.6375763", "0.63492", "0.63487256",...
0.6957181
2
This test checks if the function read_triangle works correctly assuming that user entered to few coordinates for the first vertex.
def zTBE(YKHO): with tAr4('\n1 2\n1 2\n1 2\n'), aOG7(): YKHO.assertEqual(RsDR(), [1.0, 2.0, 1.0, 2.0, 1.0, 2.0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6KJ(YKHO):\n with tAr4('1 2 3\\n1 2\\n1 2\\n1 2\\n'), aOG7():\n YKHO.assertEqual(RsDR(), [1.0, 2.0, 1.0, 2.0, 1.0, 2.0])", "def xamx(YKHO):\n with tAr4('1 2\\n1 2\\n1 2\\n'), aOG7():\n YKHO.assertEqual(RsDR(), [1.0, 2.0, 1.0, 2.0, 1.0, 2.0])", "def BnoK(YKHO, YPTS):\n with Po4F('src...
[ "0.73456854", "0.695911", "0.6867318", "0.68027365", "0.6689007", "0.6680836", "0.6637311", "0.64942026", "0.64923334", "0.64499956", "0.6437063", "0.64256227", "0.64101183", "0.64030915", "0.63544905", "0.6323143", "0.63199395", "0.6316016", "0.6315981", "0.6301892", "0.6299...
0.7422675
0
Remove html tags from a string
def JZhs(l5Ny): import re x0SS = re.compile('<.*?>') return re.sub(x0SS, '', l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)", "def Iw0V(vIwR):\n return ZbWC.sub('<[^>]*?>', ' ', vIwR)", "def gg3k(input):\n p8Nh = ZbWC.compile('<.*?>')\n Bopb = ZbWC.sub(p8Nh, '', input)\n return Bopb", "def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return Zb...
[ "0.86815035", "0.85845494", "0.8547164", "0.8528413", "0.84839606", "0.84403396", "0.84221727", "0.84221727", "0.84218365", "0.83305824", "0.83305824", "0.83305824", "0.8295757", "0.82903194", "0.8277659", "0.82659954", "0.8257645", "0.82211536", "0.8206369", "0.8150789", "0....
0.8354987
9
Test case for list_all_response_descriptor_machines_proxy_proxy_resource_spaces
def puBC(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xIMc(YKHO):\n pass", "def Qt9a(YKHO):\n pass", "def Njc2(YKHO):\n pass", "def DT6G(YKHO):\n pass", "def Hrer(YKHO):\n pass", "def muW3(YKHO):\n pass", "def l_vu(YKHO):\n pass", "def FBfb(YKHO):\n pass", "def EJfN(YKHO):\n pass", "def BPR6(YKHO):\n pass", "def f...
[ "0.8575236", "0.8556443", "0.83925986", "0.8357237", "0.82530016", "0.7100813", "0.7098141", "0.70305496", "0.69128346", "0.68886065", "0.5639735", "0.5364058", "0.5342427", "0.53042525", "0.5257816", "0.5188212", "0.5169916", "0.51535326", "0.5130219", "0.5129309", "0.508826...
0.9458576
0
Updates a user password The API is typically used within an HTML `update password page `_ as present in the default theme.
def NpNj(YKHO, QePW, *qIxc, **B2fa): KAOR = YKHO.get_object() ZMzz = YKHO.get_serializer(KAOR, data=QePW.data) ZMzz.is_valid(raise_exception=True) jTXt = ZMzz.validated_data['password'] uGpu = ZMzz.validated_data.get('new_password') if uGpu: if jNXN(ZMzz.instance): gThz(ZMzz....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def skPK(YKHO, CBIr=None):\n if YKHO._uuid is None:\n raise Alw1('must save BonitaUser before updating it')\n if YKHO.is_unchanged:\n return\n bD7m = '/identityAPI/updateUserPassword'\n nPrm = dict()\n nPrm['userUUID'] = YKHO.uuid\n nPrm['password'] = YKHO.password\n CdGE.get_ins...
[ "0.78983825", "0.7757054", "0.7720797", "0.77110213", "0.7596804", "0.75711423", "0.7557788", "0.7449489", "0.7441862", "0.743697", "0.7428947", "0.74014395", "0.7384751", "0.73797584", "0.73749524", "0.7372439", "0.73648804", "0.73521227", "0.73090225", "0.72837234", "0.7282...
0.68028617
83
HRNetV2W30 model from 'Deep HighResolution Representation Learning for Visual Recognition,'
def HGjF(**B2fa): return S3Gy(version='w30', model_name='hrnetv2_w30', **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LClM():\n C3ST = ileL()\n C3ST.add(Zlsf(lambda WKvO: WKvO / 255.0 - 0.5421, input_shape=(160, 320, 3)))\n C3ST.add(Ym4f(cropping=((60, 20), (0, 0))))\n C3ST.add(yHwh(filters=3, kernel_size=(5, 5), strides=(1, 2), padding='valid', activation='relu'))\n C3ST.add(yHwh(filters=24, kernel_size=(5, 5)...
[ "0.63943315", "0.6337392", "0.63340724", "0.63240033", "0.6303671", "0.62674046", "0.6239278", "0.6203755", "0.61813736", "0.6175142", "0.6162221", "0.6143794", "0.6122849", "0.6115155", "0.60792774", "0.60482585", "0.60441816", "0.6040985", "0.6022678", "0.6012263", "0.60057...
0.5954611
27
HRNetV2W44 model from 'Deep HighResolution Representation Learning for Visual Recognition,'
def ffip(**B2fa): return S3Gy(version='w44', model_name='hrnetv2_w44', **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YrZb(TVTK=uGEl, H2v2=Md1g, rb7a=Jtw_):\n g4y1 = fhcK.Input((TVTK, H2v2, rb7a))\n dg7v = fhcK.Conv2D(16, (3, 3), activation='relu', kernel_initializer='he_normal', padding='same')(g4y1)\n dg7v = fhcK.Dropout(0.1)(dg7v)\n dg7v = fhcK.Conv2D(16, (3, 3), activation='relu', kernel_initializer='he_normal...
[ "0.61663073", "0.6166273", "0.61572826", "0.6144723", "0.6129182", "0.6128847", "0.6069059", "0.60689783", "0.6067856", "0.60570765", "0.60380673", "0.6031181", "0.6011193", "0.5965963", "0.59585655", "0.59420145", "0.59234005", "0.59228015", "0.59044915", "0.5889635", "0.588...
0.6249388
0
Return the database OID of this object. This is not persistent, nor is it unique across the database.
def KV99(YKHO): return YKHO.getDbRecord().getColumnValue(BZTt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KV99(YKHO):\n return YKHO.__getDbRecord().getColumnValue(BZTt)", "def frCE(YKHO) -> int:\n return YKHO.model.get_id()", "def ZcVd(YKHO):\n return YKHO.id", "def frCE(YKHO):\n return YKHO._db_id", "def frCE(YKHO):\n return YKHO.db_id", "def ZcVd(YKHO):\n if YKHO.oid_field_ob:\n ...
[ "0.81756276", "0.7928823", "0.7876188", "0.76278996", "0.75524944", "0.73644567", "0.72581154", "0.72300464", "0.72294086", "0.7226132", "0.7190713", "0.7190713", "0.7150833", "0.71197134", "0.709346", "0.70258874", "0.7009493", "0.69616073", "0.69516253", "0.69516253", "0.69...
0.81612355
1
Return the name of the species this record is for.
def bJXD(YKHO): return YKHO.getDbRecord().getColumnValue(ztqo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oMqC(YKHO) -> str:\n return YKHO._species", "def oMqC(AIu6) -> str:\n return lRPl.species(Z0bF(AIu6))", "def oMqC(YKHO):\n return YKHO._metadata['species']", "def chrb(YKHO, G1Hx):\n return YKHO._spnames[G1Hx]", "def oMqC(YKHO):\n return YKHO._sec._species()", "def Ickn(YKHO):\n ret...
[ "0.8305869", "0.81213933", "0.7807338", "0.7716778", "0.7323601", "0.7322251", "0.7319249", "0.7317806", "0.73110694", "0.730252", "0.71632934", "0.7079006", "0.70369536", "0.6958597", "0.6865851", "0.6852151", "0.670678", "0.6699505", "0.66758037", "0.6642736", "0.6642736", ...
0.827842
1
Return the full path of this record from the root of the tree.
def fwGe(YKHO): return YKHO.getDbRecord().getColumnValue(MkNf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO):\n if YKHO._path:\n return YKHO._path\n snrK = [YKHO.name]\n _AKB = YKHO.parent\n while _AKB and (not _AKB.isroot()):\n snrK.append(_AKB.name)\n _AKB = YKHO.parent\n YKHO._path = snrK[1:][::-1]\n return YKHO._path", "def pmON(YKHO):\n _AKB = YKHO._parent\n...
[ "0.77021885", "0.7499631", "0.74882174", "0.74010456", "0.7312188", "0.73056906", "0.72764605", "0.7236935", "0.7219696", "0.7179066", "0.71660656", "0.7159155", "0.7159155", "0.71270436", "0.7114325", "0.70779216", "0.70571727", "0.7056263", "0.7014624", "0.70073634", "0.699...
0.721001
9
Return the full path of this record from the root of the tree.
def SIr2(YKHO): return YKHO.getDbRecord().getColumnValue(L2pX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO):\n if YKHO._path:\n return YKHO._path\n snrK = [YKHO.name]\n _AKB = YKHO.parent\n while _AKB and (not _AKB.isroot()):\n snrK.append(_AKB.name)\n _AKB = YKHO.parent\n YKHO._path = snrK[1:][::-1]\n return YKHO._path", "def pmON(YKHO):\n _AKB = YKHO._parent\n...
[ "0.77021885", "0.7499631", "0.74882174", "0.74010456", "0.7312188", "0.73056906", "0.72764605", "0.7236935", "0.7219696", "0.721001", "0.7179066", "0.71660656", "0.7159155", "0.7159155", "0.71270436", "0.7114325", "0.70779216", "0.70571727", "0.7056263", "0.7014624", "0.70073...
0.0
-1
Return the full path of this record from the root of the tree.
def kCmC(YKHO): return YKHO.getDbRecord().getColumnValue(VoxY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO):\n if YKHO._path:\n return YKHO._path\n snrK = [YKHO.name]\n _AKB = YKHO.parent\n while _AKB and (not _AKB.isroot()):\n snrK.append(_AKB.name)\n _AKB = YKHO.parent\n YKHO._path = snrK[1:][::-1]\n return YKHO._path", "def pmON(YKHO):\n _AKB = YKHO._parent\n...
[ "0.77021885", "0.7499631", "0.74882174", "0.74010456", "0.7312188", "0.73056906", "0.72764605", "0.7236935", "0.7219696", "0.721001", "0.7179066", "0.71660656", "0.7159155", "0.7159155", "0.71270436", "0.7114325", "0.70779216", "0.70571727", "0.7056263", "0.7014624", "0.70073...
0.0
-1
Return True if this is the primary path to this node; return False if this record's path to this node goes through a group node. Note that this does not indicate if the current node is a group or not, but rather if the current node is below a group in this record's path. Thus the primary path to a group node will retur...
def KG__(YKHO): return YKHO.getDbRecord().getColumnValue(IdOG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tfFq(YKHO):\n return YKHO.primary_path and YKHO.current_path == YKHO.primary_path", "def tfFq(YKHO):\n return YKHO.current_path == YKHO.primary_path", "def YZNA(YKHO):\n return YKHO.parent._is_primary_mapper()", "def eVmN(YKHO, UopV):\n _AKB = YKHO.parent\n while _AKB:\n if isinstan...
[ "0.6945812", "0.6865136", "0.6202634", "0.6136312", "0.6130009", "0.60415584", "0.6024242", "0.60159373", "0.5979112", "0.59707713", "0.5968196", "0.5944751", "0.59326386", "0.592156", "0.59040284", "0.5887898", "0.588071", "0.5800466", "0.57816386", "0.5778445", "0.5777659",...
0.656112
2
Return the AND_PART_OF record with the given OID. Returns None if no record with that OID exists.
def tiMX(AsUO): qJWj = 'where ' + BZTt + ' = ' + gKAm.formatSqlValue(AsUO) return gKAm.selectOne(ED7W, qJWj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xqax(YKHO, ZcVd):\n SQ3m = ZcVd.as_tuple()\n y0cW, mWFP = YKHO._resolver.match(SQ3m)\n if mWFP is None:\n return YKHO._resolve_from_mibs(ZcVd)\n J3uN = SQ3m[len(y0cW):]\n DbJ4 = YKHO._resolve_tag_index(J3uN, name=mWFP)\n return qkq7(name=mWFP, indexes=DbJ4)", "def jOkL(YKHO):\n if...
[ "0.49195465", "0.4677315", "0.4669144", "0.46517166", "0.45755118", "0.45367795", "0.45319214", "0.4515677", "0.44697207", "0.44284278", "0.44284278", "0.43349022", "0.4321181", "0.42903268", "0.42748585", "0.42697713", "0.42509657", "0.4248699", "0.42261457", "0.42109683", "...
0.47261056
1
Return the unique ID of the entity.
def ShR8(YKHO): return YKHO._unique_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')", "def ShR8(YKHO):\n return YKHO._carson_entity.unique_entity_id", "def g2g3(YKHO) -> int:\n return qe4Y.get(YKHO, 'entity_id')", "def g2g3(YKHO) -> str:\n return YKHO._entity_id", "def g2g3(YKHO):\n return YKHO._entity_id", ...
[ "0.8951693", "0.8461176", "0.82503587", "0.81678724", "0.803804", "0.803804", "0.803804", "0.8008701", "0.8008701", "0.79024035", "0.78994805", "0.78994805", "0.78994805", "0.78994805", "0.78994805", "0.7802192", "0.77846414", "0.7760201", "0.7739086", "0.7739086", "0.7739086...
0.7673256
30
Return the state of the entity.
def QTBn(YKHO): return YKHO._state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO) -> uLKX[None, str, int, float]:\n return YKHO._entity.get(N4T2)", "def QTBn(YKHO):\n return YKHO.get_state()", "def GBfH(YKHO):\n return YKHO.state", "def QTBn(YKHO):\n return YKHO._get_state()", "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state"...
[ "0.8337619", "0.7702563", "0.7638512", "0.7633944", "0.7620094", "0.7620094", "0.7620094", "0.7612864", "0.7605297", "0.7602402", "0.75564414", "0.75564414", "0.75564414", "0.75564414", "0.75564414", "0.75564414", "0.75564414", "0.7532665", "0.7522079", "0.7522079", "0.749583...
0.72769153
73
List of available input sources.
def oOdw(YKHO): return YKHO._source_list
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oOdw(YKHO) -> x1iM[str]:\n if YKHO.mysources:\n return YKHO.mysources\n return YKHO._get_list('SI')", "def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')", "def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')", "def w1o0(YKHO):...
[ "0.765328", "0.76203656", "0.76203656", "0.7598599", "0.745293", "0.745293", "0.74438626", "0.74329925", "0.73871773", "0.7371998", "0.7325716", "0.7312083", "0.7304809", "0.7294203", "0.7252239", "0.7170494", "0.71214986", "0.70619494", "0.70545626", "0.70545626", "0.7051095...
0.68896466
31
Boolean if volume is currently muted.
def qHHI(YKHO): return YKHO._muted
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHHI(YKHO):\n return YKHO.device.get_muted()", "def qHHI(YKHO):\n return YKHO._volume.muted", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n return YKHO._player_variables.get('muted', '0') == '1'", "def qHHI(YKHO):\n return YKHO._volume_muted", "def qHHI(YKHO):\n return ...
[ "0.89479625", "0.8912609", "0.88687724", "0.8857336", "0.88423115", "0.8840626", "0.8806076", "0.88016236", "0.87876433", "0.8767073", "0.8750962", "0.8665265", "0.8185604", "0.806479", "0.7917085", "0.77053595", "0.72996104", "0.71457285", "0.7016041", "0.69064784", "0.68272...
0.8876313
3
Title of current playing media. Used to show TV channel info.
def _0LT(YKHO): en4D = None if YKHO._channel_name is not None: if YKHO._channel_number is not None: en4D = '{0!s}: {1}'.format(YKHO._channel_number.lstrip('0'), YKHO._channel_name) else: en4D = YKHO._channel_name return YKHO._convert_title_to_label(en4D)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0LT(YKHO):\n return YKHO._player_dev.current_title", "def _0LT(YKHO):\n return YKHO._channel if YKHO._channel is not None else YKHO._title", "def _0LT(YKHO):\n return YKHO.device.get_media_title()", "def _0LT(YKHO):\n en4D = None\n if YKHO._channel_name is not None:\n en4D = YKHO._...
[ "0.88183904", "0.85866594", "0.8545095", "0.853747", "0.853476", "0.8479746", "0.8258185", "0.82260984", "0.82018447", "0.8142555", "0.81391317", "0.81391317", "0.8139072", "0.8135413", "0.811976", "0.8021554", "0.8007753", "0.7992851", "0.7992824", "0.79046905", "0.7891887",...
0.84846675
5
Return the device class of the media player.
def rM2U(YKHO): return YKHO._device_class
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return eeT9", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO) -> str | None:\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._device_class", "def rM2U(YKHO):\n return YKHO._handle('device_class')", "def rM2U(YKHO):\n return YKHO._sensor.get(...
[ "0.7864342", "0.7852028", "0.7832393", "0.78287053", "0.78082097", "0.77758884", "0.7770902", "0.77664334", "0.77664334", "0.77664334", "0.77617455", "0.7741773", "0.76899725", "0.766198", "0.76448", "0.7642421", "0.7555238", "0.7555238", "0.7555238", "0.7511921", "0.7496349"...
0.78239167
7
Send media pause command to media player. Will pause TV when TV tuner is on.
async def media_pause(YKHO): YKHO._playing = False if YKHO._program_media_type == 'tv' or YKHO._program_name is not None: await YKHO.hass.async_add_executor_job(YKHO._braviarc.media_tvpause) else: await YKHO.hass.async_add_executor_job(YKHO._braviarc.media_pause)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXYK(YKHO):\n YKHO.send_media_passthrough_cmd(u_nz.CMD_MEDIA_PAUSE, YKHO.sec_ad)", "def MG0H(YKHO):\n YKHO._playing = False\n if YKHO._program_media_type == 'tv' or YKHO._program_name is not None:\n YKHO._braviarc.media_tvpause()\n else:\n YKHO._braviarc.media_pause()", "def Nakq(...
[ "0.788277", "0.78524303", "0.77040756", "0.7577021", "0.75647676", "0.7560707", "0.75244576", "0.7510385", "0.74428153", "0.7419796", "0.73548466", "0.72925556", "0.72800684", "0.7270089", "0.72573024", "0.7239752", "0.7225398", "0.72053826", "0.7189474", "0.71494454", "0.709...
0.7687933
3
The name of the sensor.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.__data__.get('sensorName')", "def mWFP(YKHO) -> str:\n return YKHO._type.sensor_name", "def HgDy(YKHO):\n return YKHO.get('sensorname')", "def mWFP(YKHO):\n return f'{YKHO._device.name} {YKHO._sensor_type['name']}'", "def mWFP(YKHO):\n return f'{YKHO._name_prefi...
[ "0.9301746", "0.91144353", "0.9024268", "0.89791334", "0.89722496", "0.87868196", "0.87586284", "0.8691079", "0.85240436", "0.84953105", "0.84953105", "0.8280613", "0.82651377", "0.7895004", "0.7894015", "0.7867041", "0.786219", "0.781744", "0.77850014", "0.77452654", "0.7699...
0.0
-1
Adds an item at the end of Linked list.
def AtWC(YKHO, ZfUD): Q6kx = o7DN(ZfUD) if YKHO.isEmpty(): YKHO.first = YKHO.last = Q6kx else: jvSB = YKHO.first while jvSB.next: jvSB = jvSB.next jvSB.next = Q6kx YKHO.last = Q6kx YKHO._size += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, ZfUD):\n \"\"\" Insert item at end of list as new node. \"\"\"\n 'Create a new node item'\n gPx9 = nAWG(ZfUD)\n \" \\n if there isn't a head make it the head otherwise\\n append to the end of the list\\n \"\n if YKHO._head is None or YKHO._size == 0:\n YKHO...
[ "0.8082466", "0.7937457", "0.77790797", "0.77606285", "0.7758951", "0.77476954", "0.76889354", "0.7669995", "0.766956", "0.76399314", "0.7623643", "0.7618032", "0.7612823", "0.760325", "0.7595189", "0.7587137", "0.7583444", "0.75537425", "0.7546338", "0.74596494", "0.745708",...
0.80434436
1
Adds an item at the start of Linked list.
def uZPd(YKHO, ZfUD): Q6kx = o7DN(ZfUD) if YKHO.isEmpty(): YKHO.first = YKHO.last = Q6kx else: jvSB = YKHO.first YKHO.first = Q6kx Q6kx.next = jvSB YKHO._size += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _lBS(YKHO, ZfUD):\n ycBG = o7DN(ZfUD)\n ycBG.setNext(YKHO.head)\n YKHO.head = ycBG", "def qIuc(YKHO, ZfUD):\n assert ZfUD is not None\n Esd_ = o7DN(ZfUD)\n if YKHO.is_empty():\n YKHO.head = Esd_\n YKHO.tail = Esd_\n else:\n Esd_.next = YKHO.head\n YKHO.head = ...
[ "0.79471064", "0.7897409", "0.779478", "0.771289", "0.7702073", "0.7672807", "0.7632971", "0.7603793", "0.7603793", "0.7592075", "0.7580163", "0.75709", "0.75655985", "0.7534851", "0.7517974", "0.75041795", "0.74913305", "0.74768776", "0.7470576", "0.7464998", "0.7458843", ...
0.7779847
3
Removed the last item of linked list.
def O40u(YKHO): if YKHO.first: jvSB = YKHO.first while jvSB.next: if jvSB.next == YKHO.last: break jvSB = jvSB.next jvSB.next = None YKHO.last = jvSB YKHO._size -= 1 else: return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qeks(YKHO):\n if YKHO.size == 0:\n return None\n XVAW = YKHO.last.val\n if YKHO.size == 1:\n YKHO.head = None\n YKHO.last = None\n else:\n YKHO.last = YKHO.last.prev_link\n YKHO.last.next_link = None\n YKHO.size -= 1\n return XVAW", "def SBf0(aPd6):\n d...
[ "0.8290485", "0.81461704", "0.81437635", "0.7990447", "0.7965874", "0.7922517", "0.78977394", "0.7767318", "0.77317303", "0.76557213", "0.7588725", "0.7564407", "0.75102574", "0.7485256", "0.74756986", "0.7450309", "0.74428403", "0.7440033", "0.74375254", "0.7395448", "0.7393...
0.7908531
6
Return length of linked list i.e. number of nodes >>> linked_list = LinkedList() >>> len(linked_list) 0 >>> linked_list.addLast("tail") >>> len(linked_list) 1 >>> linked_list.addFirst("head") >>> len(linked_list) 2 >>> linked_list.removeLast() >>> len(linked_list) 1 >>> linked_list.removeFirst() >>> len(linked_list) 0
def szAg(YKHO): return YKHO._size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n return YKHO.size", "def AQWC(YKHO):\n Q6kx = YKHO.head\n UHFx = 0\n while Q6kx:\n UHFx += 1\n Q6kx = Q6kx.next\n return UHFx", "def szAg(YKHO):\n u54L = 0\n if YKHO.head is not None:\n aCLL = YKHO.head\n u54L = 1\n while aCLL.pointer_nex...
[ "0.834054", "0.8208974", "0.81541485", "0.81213474", "0.8083972", "0.80712104", "0.80195653", "0.8015368", "0.80151564", "0.79931647", "0.79899305", "0.7982836", "0.7976362", "0.7947354", "0.79429907", "0.79403806", "0.79247093", "0.78970206", "0.7890055", "0.7861308", "0.785...
0.0
-1
Returns the size of Linked list.
def zNig(YKHO): return YKHO._size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AQWC(YKHO):\n Q6kx = YKHO.head\n UHFx = 0\n while Q6kx:\n UHFx += 1\n Q6kx = Q6kx.next\n return UHFx", "def zNig(YKHO):\n THsq = YKHO.head\n sL7f = 0\n while THsq is not None:\n sL7f = sL7f + 1\n THsq = THsq.next\n return sL7f", "def ROXe(YKHO):\n zNig...
[ "0.8891329", "0.86799145", "0.86696285", "0.8579926", "0.8554795", "0.8533006", "0.8519215", "0.85014516", "0.8477248", "0.8459884", "0.84460354", "0.8429761", "0.840502", "0.83932847", "0.8391306", "0.83909804", "0.83909804", "0.8372856", "0.83574045", "0.83437157", "0.83394...
0.0
-1
Returns the url to access a detail record for this movie.
def hlzF(YKHO): return gxEw('movie-detail', args=[str(YKHO.id)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a1QU(YKHO):\n return gxEw('flicks.videos.details', kwargs={'video_id': YKHO.id})", "def IxeK(YKHO):\n return gxEw(YKHO._meta.db_table + '-detail', args=[YKHO.pk])", "def iLuo(YKHO):\n raise NotImplementedError('Please define a detail_url fixture')", "def wO9D(YKHO):\n return YKHO.movie_url", ...
[ "0.70866084", "0.7024478", "0.69550705", "0.6941233", "0.68142897", "0.6620634", "0.6537085", "0.64865136", "0.64339125", "0.64280415", "0.6358727", "0.6316733", "0.6306758", "0.6284386", "0.62826145", "0.6281196", "0.62432754", "0.62416273", "0.623689", "0.62315696", "0.6201...
0.7218679
0
String for representing the Model object.
def zAg0(YKHO): return f'{YKHO.id} ({YKHO.movie.title})'
{ "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 oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--...
[ "0.81885296", "0.8092215", "0.79587615", "0.7848622", "0.7839469", "0.76655394", "0.75757945", "0.75660306", "0.7560155", "0.7548143", "0.7483473", "0.7464744", "0.74516714", "0.74516714", "0.74475425", "0.74459755", "0.74459755", "0.74459755", "0.74117213", "0.74064744", "0....
0.0
-1
String for representing the Model object.
def zAg0(YKHO): return f'{YKHO.last_name}, {YKHO.first_name}'
{ "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 oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--...
[ "0.81885296", "0.8092215", "0.79587615", "0.7848622", "0.7839469", "0.76655394", "0.75757945", "0.75660306", "0.7560155", "0.7548143", "0.7483473", "0.7464744", "0.74516714", "0.74516714", "0.74475425", "0.74459755", "0.74459755", "0.74459755", "0.74117213", "0.74064744", "0....
0.0
-1
Find the offset that optimizes the correlation of the Gaussian with the reference image.
def bnFD(YKHO, Jw7X=0.0, eUWA=0.0): nJ9F = XTiz.array([Jw7X, eUWA]) WgYu = Zxt2.optimize.minimize(YKHO.func, nJ9F, args=(-1.0,), method='Newton-CG', jac=YKHO.jacobian, hess=YKHO.hessian, options={'xtol': 0.001, 'disp': False}) if not WgYu.success and (not WgYu.status == 2): print('Maximization faile...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vSfN(o4D3, ajwV):\n o4D3 = o4D3 - o4D3.mean()\n ajwV = ajwV - ajwV.mean()\n brh6 = len(ajwV)\n zqxI = brh6 // 2\n B6bW = oyIN.convolve(o4D3.astype('float32'), ajwV[::-1].astype('float32'))\n B6bW[:zqxI] = -1e+30\n B6bW[-zqxI:] = -1e+30\n vgXP = B6bW.argmax() - len(o4D3)\n return vgXP...
[ "0.6385927", "0.6129947", "0.5984068", "0.5954688", "0.5944053", "0.58538294", "0.56652427", "0.5635631", "0.55799353", "0.55780035", "0.55649936", "0.55342793", "0.55094284", "0.5507641", "0.5495656", "0.547365", "0.54687685", "0.5460225", "0.54573375", "0.5449616", "0.54484...
0.0
-1
Find the offset that optimizes the correlation of the Gaussian with the reference image.
def bnFD(YKHO, Jw7X=0.0, eUWA=0.0): nJ9F = XTiz.array([Jw7X, eUWA]) WgYu = Zxt2.optimize.minimize(YKHO.func, nJ9F, args=(-1.0,), method='Newton-CG', jac=YKHO.jacobian, hess=YKHO.hessian, options={'xtol': 0.001, 'disp': False}) if not WgYu.success and (not WgYu.status == 2): print('Maximization faile...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vSfN(o4D3, ajwV):\n o4D3 = o4D3 - o4D3.mean()\n ajwV = ajwV - ajwV.mean()\n brh6 = len(ajwV)\n zqxI = brh6 // 2\n B6bW = oyIN.convolve(o4D3.astype('float32'), ajwV[::-1].astype('float32'))\n B6bW[:zqxI] = -1e+30\n B6bW[-zqxI:] = -1e+30\n vgXP = B6bW.argmax() - len(o4D3)\n return vgXP...
[ "0.6385927", "0.6129947", "0.5984068", "0.5954688", "0.5944053", "0.58538294", "0.56652427", "0.5635631", "0.55799353", "0.55780035", "0.55649936", "0.55342793", "0.55094284", "0.5507641", "0.5495656", "0.547365", "0.54687685", "0.5460225", "0.54573375", "0.5449616", "0.54484...
0.0
-1
Dilating image's contours. kn is the dimensions of kernel
def kWhb(LNo8, Wn1Y, YRbF): fkwY = oyIN.ones((Wn1Y, Wn1Y), oyIN.uint8) ivFb = XC5k.dilate(LNo8, fkwY, YRbF) return ivFb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ivFb(VXjJ, WZcn):\n ivFb = jbYn.dilate(VXjJ, WZcn, iterations=1)\n return ivFb", "def TkxC(YKHO, VXjJ):\n Cd_s = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HSV)\n Cd_s = XC5k.inRange(Cd_s, (90, 100, 0), (135, 255, 255))\n Cd_s = XC5k.medianBlur(Cd_s, 3)\n Cd_s = XC5k.erode(Cd_s, oyIN.ones((3, 3), o...
[ "0.6534968", "0.6131572", "0.59243155", "0.59144455", "0.5815507", "0.58036083", "0.5802092", "0.57358754", "0.5690369", "0.5689312", "0.568606", "0.56844497", "0.56680906", "0.56578183", "0.565066", "0.56325597", "0.5590313", "0.5589758", "0.55343205", "0.5520695", "0.552003...
0.6769672
0
Initialize the centroids based on the dataset.
def I0yo(YKHO, EcVT): YKHO.centroids = oyIN.random.permutation(EcVT)[0:YKHO.n_centroids] return YKHO.centroids
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OkFN(YKHO):\n \"\"\"@brief Initialization of centroids\n depends on self.options['km_init']\n \"\"\"\n ZP6F = []\n ewCu = 0\n d6pt = 0\n if YKHO.options['km_init'].lower() == 'first':\n while ewCu != YKHO.K:\n EmMj = False\n e3Fk = YKHO.X[d6pt].tolist()...
[ "0.7520675", "0.75149214", "0.7496059", "0.7495763", "0.7449188", "0.7358531", "0.73165584", "0.72519404", "0.72130805", "0.71597886", "0.7156821", "0.7137444", "0.7102602", "0.7072423", "0.7026513", "0.70185345", "0.7013681", "0.69904685", "0.69741386", "0.69673175", "0.6959...
0.7172456
9
Find the closest centroid. Returns the centroid index and the distance between the sample and the centroid.
def Aced(YKHO, WKvO): TaUL = [oyIN.linalg.norm(WKvO - Z9rn) for Z9rn in YKHO.centroids] loXw = min(TaUL) z90t = TaUL.index(loXw) return (z90t, loXw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GYE6(YKHO):\n YKHO.distances = YKHO.get_distance()\n return oyIN.argmin(YKHO.distances, axis=1)", "def HTQe(WKvO, e6ux):\n e6ux = e6ux[:, oyIN.newaxis]\n TaUL = X9ZV(e6ux - WKvO)\n Mu8T = oyIN.argmin(TaUL, axis=0)\n return Mu8T", "def z3Eq(YKHO, sFIs):\n if not YKHO.is_centroid:\n ...
[ "0.8137867", "0.7716719", "0.74610746", "0.7442038", "0.7357331", "0.73571074", "0.7353483", "0.73329544", "0.72742885", "0.7224673", "0.718895", "0.6966603", "0.696568", "0.6914089", "0.6890866", "0.685928", "0.68590826", "0.68473536", "0.68047905", "0.67228687", "0.67110366...
0.8021317
1
Compute the gaussian kernel on a 1D vector.
def Hn2G(WKvO): ltnu = oyIN.power(AifU(WKvO, WKvO), 2) return oyIN.exp(-ltnu / 2.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VU7a(EcVT, WTkW):\n return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(EcVT, WTkW):\n return oyIN.exp(-EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(Emd4, WKvO, epBp, WTkW):\n return oyIN.exp(-oyIN.dot(WKvO - epBp, WKvO - epBp) / (2 * WTkW ** 2))", "def A0pO(WTkW=1):\n qoqK = oyIN...
[ "0.7443758", "0.7442585", "0.7378097", "0.7366889", "0.7341245", "0.7253333", "0.7173502", "0.7156554", "0.71531326", "0.7133891", "0.7132218", "0.7117383", "0.7107568", "0.7098905", "0.7073521", "0.7072273", "0.70386076", "0.7000259", "0.69753885", "0.69615304", "0.6953362",...
0.7598783
0
Init a Laplace noise variable.
def U_3Q(LTIa): w4rS = oyIN.random.rand(1) return oyIN.random.laplace(0, w4rS, (LTIa, 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f29b(YKHO, Q6kx, _hZ2):\n assert _hZ2 > 0\n ARTs = oyIN.random.laplace(loc=0, scale=1 / _hZ2)\n Q6kx.data.noised_pop = Q6kx.data.unnoised_pop + ARTs\n Q6kx.data.noise = ARTs\n Q6kx.data.noise_type = 'laplacian'", "def FIMM(YKHO, k78t: float, BYBV: float=1) -> None:\n if k78t <= 0:\n ...
[ "0.61698186", "0.5994415", "0.598052", "0.5963388", "0.5928771", "0.5908512", "0.5892347", "0.57928437", "0.57454544", "0.5731243", "0.57234627", "0.5660415", "0.5644496", "0.562767", "0.5623598", "0.55512124", "0.5533613", "0.55066836", "0.5498986", "0.54973227", "0.54965025...
0.59897417
2
Ensure we can create a new invoice object with strange alphabets, Chinese, Greek, Japanese, Icelandic and Russian.
def NT5n(YKHO): bD7m = '/v1/invoice/' nPrm = {'first_name': '正體字/繁體字', 'last_name': 'Πλἀτων', 'address': '日本語', 'country': 'þæöðáó', 'email': 'русский язык', 'date': '2014-03-14', 'currency': 'BTC', 'items': [{'description': 'BTC', 'amount': 2500}, {'description': 'BTC', 'amount': 4500}]} geh0 = YKHO.client...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ibns(YKHO):\n Pcn2 = _znt()\n paSp = E7I2()\n with YKHO.assertRaises(H5G2):\n Pcn2.status = u'é'.encode('latin')\n with YKHO.assertRaises(H5G2):\n Pcn2.tcmscaseid = u'é'.encode('latin')\n with YKHO.assertRaises(H5G2):\n Pcn2.title = u'é'.encode('latin')\n with YKHO.assert...
[ "0.6459428", "0.6173114", "0.608106", "0.6006496", "0.59494007", "0.5927335", "0.59074736", "0.5861062", "0.5850676", "0.5826898", "0.58246505", "0.58149713", "0.5804398", "0.57981414", "0.57815564", "0.57815146", "0.57743555", "0.57622755", "0.5725003", "0.56908965", "0.5689...
0.5809874
12
Return entity specific state attributes.
def TzCU(YKHO) -> dict: return dict(YKHO._attrs, **{c02z: YKHO.vehicle.status.gps_heading})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzCU(YKHO) -> GySg[str, ImMB] | None:\n return YKHO.entity_description.attr_fn(YKHO.coordinator.data)", "def upgy(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._entity.get(VogU, {})", "def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5e...
[ "0.77880514", "0.7753825", "0.7723497", "0.75742304", "0.7506973", "0.74901575", "0.74901575", "0.7486428", "0.7486428", "0.7417578", "0.7388287", "0.7388287", "0.7388287", "0.73793864", "0.7336377", "0.73197085", "0.7298241", "0.72695273", "0.7248613", "0.72151804", "0.72151...
0.0
-1
Return latitude value of the device.
def _UuI(YKHO) -> float | None: return YKHO.vehicle.status.gps_position[0] if YKHO.vehicle.is_vehicle_tracking_enabled else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _UuI(YKHO):\n return YKHO._device.position['x']", "def _UuI(YKHO) -> float:\n return float(YKHO._mp_dict['lat'])", "def _UuI(YKHO):\n return YKHO._gps.latitude", "def _UuI(YKHO):\n return YKHO._vehicle.location.get('latitude')", "def _UuI(YKHO):\n QnmL = YKHO._lat_lon[0]\n return QnmL...
[ "0.84948385", "0.8280237", "0.8276124", "0.82405204", "0.82343274", "0.8184037", "0.8183589", "0.8171833", "0.8096438", "0.8073491", "0.80702454", "0.80673325", "0.8048899", "0.8045055", "0.8042021", "0.8042021", "0.8042021", "0.8042021", "0.80388033", "0.80256957", "0.802569...
0.74854434
48
Return longitude value of the device.
def fopC(YKHO) -> float | None: return YKHO.vehicle.status.gps_position[1] if YKHO.vehicle.is_vehicle_tracking_enabled else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fopC(YKHO):\n return YKHO._device.position['y']", "def fopC(YKHO):\n return YKHO._gps.longitude", "def fopC(YKHO):\n return YKHO['lon']", "def fopC(YKHO):\n return YKHO._vehicle.location.get('longitude')", "def fopC(YKHO) -> float:\n return float(YKHO._mp_dict['lon'])", "def fopC(YKHO)...
[ "0.8808105", "0.86225194", "0.85961634", "0.8595835", "0.8593382", "0.8564958", "0.8549394", "0.8498284", "0.84899974", "0.8462357", "0.8425351", "0.8421351", "0.8421351", "0.8421351", "0.8421351", "0.8421351", "0.84195507", "0.8419155", "0.8419155", "0.8419155", "0.8416904",...
0.8025021
35
Return the source type, eg gps or router, of the device.
def zEt5(YKHO) -> GVaG['gps']: return MqPP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zEt5(YKHO):\n return YKHO._data.get('source_type', MqPP)", "def zEt5(YKHO):\n return YKHO.entity.attributes.get(i6p8, Z4Pi)", "def zEt5(YKHO) -> n_JI:\n return n_JI.GPS", "def zEt5(YKHO) -> n_JI:\n return n_JI.GPS", "def zEt5(YKHO) -> n_JI:\n return n_JI.GPS", "def zEt5(YKHO):\n ret...
[ "0.84455025", "0.82527125", "0.8094676", "0.8094676", "0.8094676", "0.79860157", "0.79860157", "0.79860157", "0.79516566", "0.79516566", "0.7566773", "0.7566773", "0.7566773", "0.7349769", "0.7278647", "0.7264269", "0.72256124", "0.72256124", "0.72256124", "0.7214051", "0.721...
0.7211432
23
This function takes in a batch and a tokenizer and outputs encoded batch
def kLcZ(Wc9F, b0j5, wzH_): return b0j5.encode_plus(Wc9F, None, add_special_tokens=True, max_length=wzH_, pad_to_max_length=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __TK(Wc9F):\n return b0j5(Wc9F['text'], max_length=80, truncation=True, padding='max_length')", "def __TK(Wc9F, b0j5, G8d9, JY_U=False):\n SrRs = []\n for l5Ny in Wc9F:\n y5wJ = ht2j.tensor(b0j5.encode(l5Ny))[:G8d9]\n SrRs.append(y5wJ)\n ApRq = ht2j.nn.utils.rnn.pad_sequence(SrRs, b...
[ "0.7996587", "0.75590754", "0.6954529", "0.68160063", "0.6799693", "0.6762047", "0.6745272", "0.67146385", "0.6642287", "0.6597616", "0.65879303", "0.65598994", "0.6528371", "0.652283", "0.65215164", "0.6516713", "0.6430833", "0.6430833", "0.6430833", "0.64023316", "0.6332992...
0.70827615
2
Initialize predefined model. OLD KERAS MODEL model = Sequential() model.add(Dense(220, input_shape=(self.memory.n_inputs,), kernel_initializer='normal', activation='relu')) model.add(Dense(160, kernel_initializer='normal', activation='relu')) model.add(Dropout(0.2)) model.add(Dense(130, kernel_initializer='normal', act...
def S_RZ(YKHO): YKHO.sess = ZylS.Session() print('[*] Initializing model...') vHnr = ZylS.placeholder(shape=[None, YKHO.memory.n_inputs], dtype=oyIN.float32) x2Jh = ZylS.placeholder(shape=[None, YKHO.memory.n_states], dtype=oyIN.float32) EzAT = ZylS.layers.dense(inputs=vHnr, units=220, activation=Zy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gv23(YKHO):\n C3ST = bdPE.Sequential()\n C3ST.add(bdPE.layers.Dense(64, input_dim=YKHO.ob_dim, activation='relu'))\n C3ST.add(bdPE.layers.Dense(64, activation='relu'))\n C3ST.add(bdPE.layers.Dense(YKHO.ac_dim, activation='linear'))\n C3ST.compile(loss='mse', optimizer=bdPE.optimizers.Adam(lr=YKH...
[ "0.77122384", "0.73934615", "0.7387649", "0.73542106", "0.7330014", "0.7303521", "0.72559", "0.7216462", "0.71606743", "0.71212363", "0.71062535", "0.70868134", "0.70855486", "0.7063391", "0.70601755", "0.7059373", "0.7050831", "0.7021623", "0.70093507", "0.7007394", "0.70052...
0.7355446
3
After training, load different models and plot time history of their predictions so one can visually compare them.
def df9e(YKHO): pbTU = ['/initial_model.h5', '/final_model.h5'] GjdW = YKHO.memory.val_data['data_in'] ogmQ = GjdW[:, 0:YKHO.memory.n_states] nEVf = GjdW[:, -YKHO.memory.n_controls] d3gB = YKHO.memory.val_data_size ogmQ = ogmQ.reshape(d3gB, YKHO.memory.n_states) nEVf = nEVf.reshape(d3gB, YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qSo0(YKHO, PT4g):\n if not YKHO.loaded_trained:\n raise ValueError('Train or load a model beforehand')\n if YKHO.history is None:\n raise ValueError('History unavailable')\n print(YKHO.history.history.keys())\n LZpg, FgGO = QrM1.subplots(2, 2)\n FgGO[0, 0].plot(YKHO.history...
[ "0.7139861", "0.7000385", "0.6969613", "0.69155675", "0.687029", "0.68636763", "0.6816129", "0.68155926", "0.6812322", "0.67949426", "0.67812335", "0.67515653", "0.6734401", "0.672864", "0.66877127", "0.66685057", "0.6651231", "0.658138", "0.65765566", "0.6570767", "0.656115"...
0.67854565
10
Compute the output of a 3layer neural network.
def lu_y(uD85: Tensor, eiBr: Tensor, kYGz: Tensor, krgz: Tensor, ftz7: Tensor) -> AzJI[llWB, llWB]: huI_ = eiBr @ uD85 + kYGz i8nr = ht2j.sigmoid(huI_) nuXX = krgz @ i8nr + ftz7 vo6s = ht2j.sigmoid(nuXX) return (i8nr, vo6s)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVVj(WKvO, _LFN=8):\n ZylS.summary.image('input', WKvO, max_outputs=3)\n Ep8u = int(WKvO._shape[0])\n jHsn = int(WKvO._shape[1])\n pvd3 = int(WKvO._shape[2])\n WyJz = int(WKvO._shape[3])\n QjTD = int(WKvO._shape[4])\n print(' * Input: size of image: %d %d %d %d' % (jHsn, pvd3, WyJz, QjTD))...
[ "0.7052354", "0.68491817", "0.6562661", "0.65094924", "0.6483906", "0.6415593", "0.64076144", "0.63119507", "0.62857795", "0.62693554", "0.6248127", "0.62448806", "0.6218661", "0.62065107", "0.6205299", "0.61867523", "0.6161216", "0.61355233", "0.6134237", "0.6123674", "0.611...
0.0
-1
Computes the mean and standard deviation from the training set's data
def Oall(YKHO, xIA4, zBu_): K4sN = xIA4['tasks']['u'].shape[0] bPNP = oyIN.stack([xIA4['tasks']['p'][:int(K4sN * zBu_)], xIA4['tasks']['T'][:int(K4sN * zBu_)], xIA4['tasks']['u'][:int(K4sN * zBu_)], xIA4['tasks']['w'][:int(K4sN * zBu_)]], axis=0) bPNP = bPNP.transpose(1, 0, 3, 2) JBMS = oyIN.mean(bPNP, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ssCJ(CBaX, eQ2E=10):\n Ep8u = 200\n q4aw = 200\n zZQH = []\n zcOp = []\n for YRbF in range(eQ2E):\n B9EC = []\n NdnM = []\n CBaX.rewind('train')\n bGrB, J1hN = CBaX.get_batch(Ep8u, q4aw, 'train')\n while J1hN is not None:\n B9EC.append(J1hN.reshape(-...
[ "0.7756079", "0.76765174", "0.75914454", "0.75148904", "0.74557817", "0.74102694", "0.73912287", "0.73123753", "0.73076636", "0.72814745", "0.71802485", "0.7176498", "0.7173638", "0.71500236", "0.7135686", "0.7132349", "0.7116499", "0.7088921", "0.70801425", "0.707649", "0.70...
0.0
-1
Creates request with specified fields. This method only creates request, but isn't getting it's state from storage. Use self.refresh_states on a batch of requests to get their states from storage.
def d9vn(YKHO, bD7m, NKcE=b'GET', MOPg=None, ku7L=None, e5kH=None, TBsA=b''): return YKHO._manager.create_request(bD7m, method=NKcE, headers=MOPg, cookies=ku7L, meta=e5kH, body=TBsA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO):\n YKHO.state.request_create(YKHO)", "def eLpg(YKHO):\n YKHO.state.request_create(YKHO)", "def d9vn(YKHO, aJRv, **B2fa):\n raise NotImplementedError()", "def gQLE():\n phGJ = str(qxeD.uuid4())[:8]\n cSZI = 'On going'\n wXV8 = DEf7(key_name=phGJ, reqid=phGJ, reqstatus=cSZI)\n ...
[ "0.71458644", "0.71458644", "0.6793719", "0.6400728", "0.6291533", "0.62125957", "0.61517507", "0.604452", "0.59952563", "0.5986304", "0.5986248", "0.5986248", "0.5986248", "0.5986248", "0.5986248", "0.5986248", "0.5986248", "0.5986248", "0.5986248", "0.5986248", "0.5986248",...
0.0
-1
Create a plane by an origin and normal vector.
def glfv(y4fz, imdf): if not isinstance(y4fz, PvyL): y4fz = PvyL(y4fz) if not isinstance(imdf, lNLu): imdf = lNLu(imdf, y4fz) Rxrt = WHx2([1.0, 0.0, 0.0], imdf.vxyz) if BJ1H(Rxrt, Rxrt) > 0.0: MHxz = lNLu(WHx2(Rxrt, imdf.vxyz), y4fz) Rxrt = lNLu(Rxrt, y4fz) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mlz2(hLRM, mhAC, NkBi=None):\n hLRM = BDQe.coerce3dpoint(hLRM, True)\n mhAC = BDQe.coerce3dvector(mhAC, True)\n RBVb = rSBT.Geometry.Plane(hLRM, mhAC)\n if NkBi:\n NkBi = BDQe.coerce3dvector(NkBi, True)\n NkBi = rSBT.Geometry.Vector3d(NkBi)\n NkBi.Unitize()\n i4e5 = rSBT...
[ "0.8046178", "0.7348474", "0.7228811", "0.7204514", "0.7089458", "0.69416213", "0.6667597", "0.6636401", "0.6603359", "0.6592179", "0.65599257", "0.648893", "0.64714754", "0.64634556", "0.6426611", "0.6409525", "0.63741297", "0.63450104", "0.63434845", "0.63331056", "0.630758...
0.7454948
1
returns lower bound on the remaining cost.
def DztE(YKHO, f7Dd): br5V = f7Dd - YKHO._group.getUtility() _xn0 = 0 kbGe = [(YKHO._group.getCostOf(WKvO) / YKHO._group.getUtilityOf(WKvO), WKvO) for WKvO in YKHO._candidates] QZno(kbGe) while br5V > 0 and len(kbGe) > 0: d29v, Ty9i = z94O(kbGe) f7Dd = min(br5V, YKHO._group.getUtilit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IDsK(YKHO) -> float:\n return YKHO._lb", "def mlSU(YKHO):\n return YKHO._best_bound", "def nsZV(rrLg):\n Ae2G = 0.0\n for Jmqu, N4Jv in rrLg.nodes(data=True):\n nSvu = [(cHk7, -1.0 * rrLg.edge[Jmqu][cHk7]['weight']) for cHk7 in rrLg.neighbors(Jmqu) if -1.0 * rrLg.edge[Jmqu][cHk7]['weight...
[ "0.7350237", "0.70420957", "0.7025319", "0.68919337", "0.6775119", "0.66615766", "0.65805787", "0.6563193", "0.6512841", "0.64902914", "0.64743495", "0.6441762", "0.6435638", "0.6417904", "0.6410326", "0.6355224", "0.631367", "0.6289139", "0.62673724", "0.6266758", "0.6238023...
0.0
-1
A simple script for making random passwords, WITHOUT 1,l,O,0. Because those characters are hard to tell the difference between in some fonts.
def K6Fz(p8ii): return ''.join([Acvy(vIwR.letters + vIwR.digits) for YRbF in range(1, p8ii)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NlX3():\n Erfi = list(f'{vIwR.ascii_letters}{vIwR.digits}{vIwR.punctuation[0:25]}')\n tuKI.shuffle(Erfi)\n LLH_ = tuKI.choices(Erfi, k=tuKI.randint(9, 13))\n return ''.join(LLH_)", "def BSw2():\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in range(8)))", "def Nl...
[ "0.82364935", "0.80320936", "0.80022633", "0.7904008", "0.7845507", "0.78417987", "0.78363955", "0.7824465", "0.77829164", "0.777705", "0.77670175", "0.7761925", "0.7735928", "0.77293766", "0.7707789", "0.77019715", "0.7698288", "0.7688641", "0.7639847", "0.76388395", "0.7620...
0.7199814
76
A simple script for making random passwords, WITHOUT 1,l,O,0. Because those characters are hard to tell the difference between in some fonts.
def lHN5(): return K6Fz(6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NlX3():\n Erfi = list(f'{vIwR.ascii_letters}{vIwR.digits}{vIwR.punctuation[0:25]}')\n tuKI.shuffle(Erfi)\n LLH_ = tuKI.choices(Erfi, k=tuKI.randint(9, 13))\n return ''.join(LLH_)", "def BSw2():\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in range(8)))", "def Nl...
[ "0.823532", "0.8031233", "0.800123", "0.7903147", "0.7844673", "0.7841538", "0.7835617", "0.78239274", "0.7781575", "0.7775378", "0.77662504", "0.7761585", "0.773529", "0.7727751", "0.7706413", "0.77008337", "0.7698069", "0.76882195", "0.7638889", "0.7637891", "0.76199764", ...
0.0
-1
Returns a list of all model instances sorted by create date.
def all(YKHO): return super(Q77N, YKHO).all().order_by('-created')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n return YKHO.model.objects.order_by('-date')", "def DLGb():\n return sorted(QVOl.keys())", "def LUo9(YKHO, BEic=None):\n return YKHO.get_model().objects.all().order_by('time_created')", "def lM31(YKHO):\n return YKHO.model.objects.all()", "def PbUO(wOed):\n return wOed.objec...
[ "0.67494655", "0.6738869", "0.666455", "0.66535044", "0.64108163", "0.64030963", "0.6345967", "0.63149804", "0.6294682", "0.6288981", "0.6285299", "0.6274356", "0.62702525", "0.6241852", "0.6199042", "0.61916685", "0.61815006", "0.61356276", "0.6132522", "0.6110776", "0.61003...
0.6520074
4
Creates instance of Activity class.
def eLpg(YKHO, ebWO, MCsb, Ghho=None, zLJZ=None): hGN5 = '' if Ghho: hGN5 = '{} {} {}'.format(mv1M.objects.get(id=ebWO), Ghho, mv1M.objects.get(id=MCsb)) elif zLJZ: hGN5 = zLJZ return super(Q77N, YKHO).create(creator_id=ebWO, target_id=MCsb, content=hGN5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc):\n VQ6Z = qG0X.new_Activity(*qIxc)\n try:\n YKHO.this.append(VQ6Z)\n except ONrU.Exception:\n YKHO.this = VQ6Z", "def eiba(YKHO, NBjn, mWFP, bEWw='UserTask'):\n nPrm = {'name': mWFP, 'process': NBjn, 'activity_class': bEWw}\n Mkmy = YKHO._request('POST', YKHO._b...
[ "0.68183196", "0.6573294", "0.6539226", "0.65005624", "0.6409823", "0.6178845", "0.6053439", "0.6029891", "0.60264957", "0.60226285", "0.59873253", "0.59068596", "0.58711123", "0.5792625", "0.5729789", "0.5606114", "0.5590433", "0.55715674", "0.55683833", "0.55355835", "0.552...
0.0
-1
Computes the magnitude of a tensor
def FOSW(k0lF): return oyIN.sqrt(PGCv(k0lF, k0lF))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(YKHO):\n return (YKHO.u ** 2 + YKHO.v ** 2) ** 0.5", "def YXbZ(iArr):\n return tk5Y(oyIN.sum(oyIN.square(iArr)), 2)", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2 + YKHO.w ** 2)", "def YXb...
[ "0.6868485", "0.67512774", "0.6642117", "0.6632676", "0.6574064", "0.64999443", "0.6486059", "0.6466028", "0.6462037", "0.6418949", "0.6344336", "0.6329811", "0.6324667", "0.63171226", "0.63171226", "0.6258266", "0.6227744", "0.622598", "0.621903", "0.6207978", "0.6201726", ...
0.60853714
34
Compute phi value at time step dt
def tm2r(YKHO): szJ_, aPd6, JRYC = YKHO.params XOMu = YKHO.state[1][YKHO.time_elapsed - 1] ssT9 = YKHO.state[0][YKHO.time_elapsed - 1] UVMH = YKHO.state[0][YKHO.time_elapsed] dXPy = XOMu + JRYC * (aPd6 / (0.5 * (UVMH + ssT9)) ** 2) return dXPy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVnq(a1PO):\n or8S = a1PO > 0\n yvT9 = oyIN.empty(a1PO.size, dtype=oyIN.float)\n yvT9[or8S] = 1.0 / (1 + oyIN.exp(-a1PO[or8S]))\n SW8N = oyIN.exp(a1PO[~or8S])\n yvT9[~or8S] = SW8N / (1.0 + SW8N)\n return yvT9", "def sS4j(ITS7, wW3z, jmzt):\n return oyIN.cos(wW3z * (ITS7 - jmzt))", "def...
[ "0.76299393", "0.7306523", "0.7218657", "0.70940334", "0.7091364", "0.6975743", "0.6948158", "0.6946033", "0.69316757", "0.6881911", "0.68601525", "0.6830019", "0.68145055", "0.6771051", "0.6770525", "0.67589897", "0.67583984", "0.67582905", "0.6737049", "0.672942", "0.672903...
0.7155463
3
Function for calculating Rb as a function of Rp. DePaolo's (2011) 'Model 2', described in Section 4.1. Varies Rb as a function of Rp0.5 below a critical value (Rb0)
def uwfs(KFyH, P74P=6e-07): DTe0 = oyIN.full(KFyH.shape, P74P) QyVM = KFyH < P74P SRYB = KFyH[QyVM] ** 0.5 SRYB /= SRYB.max() SRYB *= P74P DTe0[QyVM] = SRYB return DTe0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cR9W(Mkmy):\n tTpl = 1200\n SxVy = kLQb(-(tTpl * Mkmy) ** 2)\n return SxVy", "def obYF(Ty9i, ZylS, caJb, GoxI, oZuG=1.025):\n TRdr = HqMt(GoxI, ZylS, caJb)\n Bn27 = OUXb(Ty9i, ZylS, caJb, GoxI)\n return 0.11 * epAf.exp(-3 * TRdr ** (-2)) * Bn27 ** 3 * GoxI ** 1.5 * oZuG * 9.81 / (1 + Bn27 *...
[ "0.72727317", "0.67702234", "0.676322", "0.662477", "0.627484", "0.6266208", "0.6211684", "0.6173338", "0.61566687", "0.61417013", "0.6129119", "0.6124493", "0.6103019", "0.61004704", "0.60895526", "0.60870904", "0.6058489", "0.60340095", "0.60335946", "0.6022408", "0.6013783...
0.7471824
0
Return the bool values for a string. The string is case insensitive.
def hkBj(wEf2): yhd5 = wEf2.lower() if yhd5 not in B10i: raise KeyError(f'key [{wEf2}] not exists') return B10i[yhd5]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M0mR(vIwR: str):\n if vIwR.lower() == 'true':\n return (True, True)\n elif vIwR.lower() == 'false':\n return (False, True)\n else:\n return (False, False)", "def NHHh(vIwR):\n return vIwR.casefold() in ['true', 't', 'yes', 'y']", "def NHHh(vIwR):\n return vIwR.casefold()...
[ "0.73868394", "0.7332951", "0.7195439", "0.7130518", "0.71198493", "0.70726204", "0.70726204", "0.70726204", "0.70726204", "0.7048198", "0.70085365", "0.69661623", "0.69386095", "0.6922474", "0.6882147", "0.6794124", "0.67697465", "0.67539585", "0.6746437", "0.67452294", "0.6...
0.6764462
17
Convert seconds to time string.
def s_ip(E3oo): if E3oo > 24 * 60 * 60: raise vTrA(f'The timestamp is greater than a day') if E3oo < 1: raise vTrA(f'The timestamp is lower than one second') lcOE = E3oo % 60 a1rZ = E3oo // 60 % 60 eRPr = f'{a1rZ:02d}m' if a1rZ > 0 else '' aDU6 = E3oo // 60 // 60 Wave = f'{aD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reXX(YKHO, C6wh):\n r8hN, KCHu = divmod(C6wh, 60)\n MKlR, r8hN = divmod(r8hN, 60)\n l5Ny = '%d hours %02d mins %02d seconds' % (MKlR, r8hN, KCHu)\n return l5Ny", "def ct8j(C6wh):\n return str(fCoM(seconds=C6wh))", "def e0QB(YKHO, C6wh):\n O66n = C6wh / 60\n Wave = O66n / 60\n Sm0u =...
[ "0.82690555", "0.8242856", "0.8223195", "0.812248", "0.7988858", "0.79665905", "0.78055227", "0.78055227", "0.77157986", "0.7674469", "0.7648931", "0.76439667", "0.7618495", "0.7616871", "0.75839365", "0.75822246", "0.7572116", "0.75399244", "0.7529812", "0.75285864", "0.7471...
0.0
-1
Computes the probabilistic L2 norm bound after stochastic quantization. The procedure of stochastic quantization can increase the norm of the vector. This function computes a probabilistic L2 norm bound after the quantization
def Lw4Y(ZiOP, KMvS, UqYS, tpio): ZiOP = ZylS.convert_to_tensor(ZiOP) CkYf = ZylS.cast(ZiOP, ZylS.float32) KMvS = ZylS.cast(KMvS, ZylS.float32) VqjD = ZylS.cast(KMvS, ZylS.float64) tpio = ZylS.cast(tpio, ZylS.float64) UqYS = ZylS.cast(UqYS, ZylS.float32) vwJn = ZylS.cast(ZylS.sqrt(tpio) * Vq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KNe7(he6J, SGf8):\n return oyIN.sqrt(SGf8 * oyIN.sum(oyIN.square(he6J)))", "def KtDG(iArr):\n return (iArr ** 2).sum()", "def KtDG(eHNT, Xk2t):\n return PZyS(zQMB(RqD8(eHNT) ** 2, Xk2t))", "def wsvu(input, XP5J=2.0, tpio=1, SGf8=1e-12):\n return input / input.norm(XP5J, tpio).clamp(min=SGf8)....
[ "0.66019446", "0.64625484", "0.6281286", "0.6279853", "0.6241455", "0.62279123", "0.6187837", "0.6086502", "0.608231", "0.60130847", "0.6012004", "0.6006368", "0.5993542", "0.59848976", "0.5975688", "0.59625185", "0.59191036", "0.59081876", "0.59052795", "0.5898398", "0.58896...
0.5838154
24
Get the "best" requirements file we can find
def bTVV(qIxc=None): if qIxc and qIxc.input_filename: return [qIxc.input_filename] ckRy = [] for njyT in gCuF.REQUIREMENTS_SOURCE_GLOBS: ckRy.extend(SC2F.glob(njyT)) return ckRy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KAl6(qi10=3):\n YRbF = 0\n for Z9rn, bGrB, bGrB in vpVd(Hy7s.getcwd()):\n YRbF += 1\n if YRbF < qi10:\n Mkmy = Hy7s.path.join(Z9rn, 'requirements.txt')\n if Hy7s.path.isfile(Mkmy):\n return Mkmy\n raise RuntimeError('No requirements.txt found!')", "...
[ "0.746871", "0.73606896", "0.71619624", "0.69944525", "0.68214214", "0.6819265", "0.67738426", "0.6747495", "0.67240644", "0.66630316", "0.66417056", "0.6633675", "0.66075754", "0.65863895", "0.6572631", "0.65364647", "0.652123", "0.64971566", "0.6491856", "0.6477229", "0.646...
0.0
-1
Set __not_jsonable to a new list
def j3MH(YKHO, qIxc: List[str]) -> None: YKHO.__not_jsonable = qIxc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f8ur(YKHO, *qIxc) -> None:\n YKHO.__not_jsonable += qIxc", "def RlP7(YKHO, *qIxc) -> None:\n for bTKY in qIxc:\n try:\n YKHO.__not_jsonable.remove(bTKY)\n except ValueError:\n pass", "def Gip8(YKHO, QePW, nPrm):\n return nPrm", "def Vk95():\n return _g32.as...
[ "0.7069433", "0.6173416", "0.57280123", "0.570883", "0.5611729", "0.5608014", "0.55836564", "0.5557697", "0.5515965", "0.5512088", "0.54139954", "0.5410488", "0.54102296", "0.5396682", "0.5368832", "0.53411317", "0.5306374", "0.5304209", "0.5298462", "0.5294199", "0.5274678",...
0.74483
0
Registers the given `tqdm` instance with `pandas.core.groupby.DataFrameGroupBy.progress_apply`.
def Zu5c(Cs5C, **QWjP): from tqdm import TqdmDeprecationWarning if isinstance(Cs5C, type) or getattr(Cs5C, '__name__', '').startswith('tqdm_'): TqdmDeprecationWarning('Please use `tqdm.pandas(...)` instead of `tqdm_pandas(tqdm, ...)`.', fp_write=getattr(QWjP.get('file', None), 'write', HwRy.stderr.write...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qeAa():\n with qmLP.catch_warnings():\n qmLP.simplefilter('ignore')\n PRqg.pandas()", "def PRqg(OxJJ, **B2fa):\n for G1Hx, Ty9i in GT4R().items():\n B2fa.setdefault(G1Hx, Ty9i)\n if type(OxJJ) is int:\n OxJJ, wjRY = (range(OxJJ), OxJJ)\n elif type(OxJJ) is float:\n ...
[ "0.68272066", "0.6107997", "0.6064634", "0.6003725", "0.58622855", "0.5835367", "0.58002234", "0.57804704", "0.5735148", "0.5708642", "0.5669503", "0.5654152", "0.5621137", "0.5554558", "0.5549321", "0.5500928", "0.54683584", "0.5457355", "0.5376507", "0.530778", "0.53010476"...
0.6230548
1
The individual receives preventive treatment. If the individual is currently infected, infection vanishes with probability pt_efficacy. The efficacy parameter represents a combined rate of adherence and treatment efficacy. Return the date of prevented activation, which is the date of TB activation in the event that the...
def WUok(YKHO, NArs, ITS7=0, DdAx=False): fb5i = None if YKHO.ltbi: nyyK = tuKI.binomial(n=1, p=NArs['pt_efficacy']) if nyyK == 1: YKHO.ltbi = False if 'activation' in YKHO.programmed.keys(): if not DdAx or (DdAx and ITS7 + NArs['pt_delay_due_to_tst'] <= Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qtS3(YKHO, Bs9q, DdAx=False):\n YKHO.n_pt_provided += 1.0\n v30H = jth9.copy(YKHO.individuals[Bs9q].ltbi)\n fb5i = YKHO.individuals[Bs9q].get_preventive_treatment(YKHO.params, time=YKHO.time, delayed=DdAx)\n if fb5i is not None:\n YKHO.programmed_events['activation'][fb5i] = [A07C for A07C i...
[ "0.562379", "0.5621158", "0.5408835", "0.53098166", "0.53018796", "0.52959794", "0.5222923", "0.5212907", "0.51870483", "0.5178434", "0.5149622", "0.5146863", "0.5136529", "0.5135993", "0.50638425", "0.5043317", "0.50360525", "0.501968", "0.49954227", "0.4986751", "0.49862552...
0.6793983
0
Calculate the length of the two corpora. The length of the pred corpus is just the sum of lengths, the length of the gold corpus is the sum of the lengths of a single gold selected from a set of golds. This single gold is selected to be the length that is closest to the pred lengths (in the event of ties select the sho...
def _x3P(aTLP: HypothesisCorpus, YLQk: ReferenceCorpus) -> AzJI[int, int]: BEW_ = 0 N1zE = 0 for nvEb, T4t1 in zip(aTLP, YLQk): BEW_ += len(nvEb) N1zE += s4ms(len(nvEb), T4t1) return (BEW_, N1zE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mUvA(EAww, lcCo):\n TswJ = HwRy.maxint\n if EAww is None or lcCo is None:\n return 0.0\n if EAww == lcCo:\n TswJ = 0.0\n else:\n gYSa = set([str(WKvO.name()) for WKvO in EAww.lemmas()])\n uYO1 = set([str(WKvO.name()) for WKvO in lcCo.lemmas()])\n if len(gYSa.inter...
[ "0.70092094", "0.67927855", "0.67747694", "0.61889714", "0.61735255", "0.6075767", "0.6059184", "0.6048889", "0.60419905", "0.602751", "0.6022414", "0.5986536", "0.59744793", "0.5926423", "0.5918346", "0.5887454", "0.5878084", "0.5863144", "0.5858969", "0.5851401", "0.5851401...
0.7870787
0
Returns bool result of less than or equal
def TPjt(YKHO, Elif): return YKHO.__lt__(Elif) or YKHO.__eq__(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fbcx(gdXy, DWMs):\n if gdXy < DWMs:\n return True\n else:\n return False", "def RnJD(YKHO, WKvO, LVAh):\n return WKvO <= LVAh", "def jmxi(LFlW, _tIi):\n return LFlW >= _tIi and LFlW != _tIi", "def L4lH(nPrm):\n return gxfo(qkSJ.less_equal, nPrm)", "def oGeE(YKHO, qIxc):\n ...
[ "0.71323144", "0.7092577", "0.70286644", "0.7025547", "0.69580364", "0.69278806", "0.6926058", "0.6913906", "0.68838984", "0.6823684", "0.6797966", "0.6789936", "0.67713684", "0.6727766", "0.6723961", "0.6723961", "0.6696715", "0.6696514", "0.66934913", "0.6683747", "0.667916...
0.0
-1
Ensure that an incorrect num_dimensions_out parameter triggers an exception
def otl3(YKHO): with YKHO.assertRaises(ValueError): YKHO.scmds.run(YKHO.test_matrix, num_dimensions_out=YKHO.test_matrix.shape[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fz8m(YKHO):\n if YKHO._get_dimensions() not in ((1, 1), (1, 2), (2, 1)):\n tO9_ = '(Input, Output) dimensions must be one of %s, %s, or %s.' % ((1, 1), (2, 1), (1, 2))\n raise ValueError(tO9_)", "def xWsN(YKHO):\n with YKHO.assertRaises(ValueError):\n YKHO.nystrom.run(YKHO.test_mat...
[ "0.7473333", "0.71916467", "0.6716418", "0.6698028", "0.6663398", "0.6657554", "0.66400254", "0.6586387", "0.6581233", "0.65656507", "0.65244687", "0.64722854", "0.64608085", "0.6459475", "0.6437838", "0.64321756", "0.6411864", "0.63970464", "0.63893664", "0.63841635", "0.636...
0.70827574
2
Create a cell with convolution.
def pK_f(uvt8): VmPb = riCw(uvt8) def pnbx(uvt8): MxXY = o7DN('N1') for LzUd in uvt8: MxXY.add_op(Edhj(VmPb.graph, LzUd, MxXY)) cWFu = o7DN('N2') cWFu.add_op(lTlC(filter_size=5, num_filters=2)) XkN1 = n3Kt() XkN1.add_node(MxXY) XkN1.add_node(c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PP1s(YKHO, WKvO, mM8X, gqUV, _FNQ, dvgN='same', FEri=(1, 1), e5sz=False):\n WKvO = Ofph(mM8X, (gqUV, _FNQ), strides=FEri, padding=dvgN, use_bias=e5sz)(WKvO)\n WKvO = GVKG(axis=YKHO._channel_axis, scale=False)(WKvO)\n WKvO = MroH('relu')(WKvO)\n return WKvO", "def KAJx(YKHO, JD6i, WKvO, DbyF):\n ...
[ "0.6525755", "0.6468704", "0.6436475", "0.6370647", "0.6348373", "0.6281767", "0.6281767", "0.626727", "0.6259123", "0.6259123", "0.6259123", "0.62374884", "0.621381", "0.621381", "0.621381", "0.6206385", "0.6201149", "0.620073", "0.61935866", "0.61840403", "0.613617", "0.6...
0.6408739
3
Creates a hashed password from a raw password
def ikbr(jTXt: str) -> str: return gKfP('sha256', jTXt.encode('utf-8'), gCuF.SECRET_KEY.encode('utf-8'), 10000).hex()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Veoc(Ud05: str) -> str:\n return N7bY.hash(Ud05)", "def DH7l(Emd4, jTXt: str) -> str:\n return jf1V.hash(jTXt)", "def vT87(Ud05):\n ADdS = RHmZ.new()\n NTfD = ADdS.read(64).encode('hex')\n MdCJ = mNtT.PBKDF2(Ud05, NTfD, dkLen=YqhJ, count=ByTS).encode('hex')\n return '%s:%s' % (NTfD, MdCJ)...
[ "0.8231463", "0.768139", "0.76516956", "0.75065535", "0.74929106", "0.74603486", "0.72335446", "0.7172674", "0.7153654", "0.71502334", "0.712963", "0.71209556", "0.7118017", "0.7087303", "0.7086467", "0.70624155", "0.70405865", "0.7031175", "0.6992258", "0.6978163", "0.697798...
0.0
-1
Return a list from a ConfigParser option. By default, split on a comma and strip whitespaces.
def nBVR(MTKo, VWe_=',', gLiZ=None): return [yOAJ.strip(gLiZ) for yOAJ in MTKo.split(VWe_)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d_VV(YKHO, XLMv, MTKo, SAEY=','):\n jLrs = YKHO.get_opt(XLMv, MTKo)\n return [WKvO.strip() for WKvO in jLrs.split(SAEY)]", "def nBVR(MTKo, VWe_=',', gLiZ=None):\n return [yOAJ.strip(gLiZ) for yOAJ in MTKo.split(VWe_)]", "def r9oS(mGP6, MTKo):\n V_D6 = None\n if isinstance(mGP6, exCv):\n ...
[ "0.7894367", "0.77692485", "0.71172786", "0.7059709", "0.7034744", "0.7008559", "0.6974874", "0.6878203", "0.68367356", "0.6795329", "0.6778572", "0.6711222", "0.6697339", "0.6693857", "0.6649594", "0.66400576", "0.6634072", "0.6613669", "0.659869", "0.65636003", "0.65598106"...
0.7776113
1
Projects a matrix on the set of symmetric positive semidefinite matrices.
def tInL(k0lF): yzQ0, KkY2 = oyIN.linalg.eigh(aDi_(k0lF)) return KkY2 @ oyIN.diag(yzQ0.clip(min=0)) @ KkY2.T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cxIl(E3D9):\n assert oyIN.any(oyIN.isnan(E3D9.data)) == False\n assert oyIN.any(oyIN.isinf(E3D9.data)) == False\n return lqeT(eNpP(E3D9))", "def An7Z(vb7U):\n for rdlD in range(len(vb7U)):\n for fvDH in range(rdlD):\n vb7U[fvDH, rdlD] = vb7U[rdlD, fvDH]", "def FqY_(E3D9, XAqm=...
[ "0.6365831", "0.626968", "0.60060346", "0.5975774", "0.5951372", "0.5823715", "0.58110756", "0.5783926", "0.5711822", "0.5702676", "0.57001513", "0.569795", "0.56792635", "0.56740326", "0.56562513", "0.5612257", "0.5583417", "0.5575145", "0.5572977", "0.5562578", "0.5534152",...
0.576492
8
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(dYO4, YKHO).__init__(*qIxc, **c_sp) if YKHO.max_distance is None: YKHO.max_distance = 0 if YKHO.radar_power is None: YKHO.radar_power = 0 if YKHO.output_type is None: YKHO.output_type = IUNw.msg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.816538", "0.7719171", "0.7719171", "0.76516104", "0.75724137", "0.75432366", "0.7484913", "0.7469414", "0.74577504", "0.7445371", "0.74442285", "0.74324846", "0.7415032", "0.7408192", "0.7391657", "0.7374661", "0.73622555", "0.7324867", "0.7323442", "0.7323442", "0.7323442...
0.0
-1
set allow domains for the spider.
def BJN6(YKHO, taO0): taO0 = YKHO.__check_is_list_or_can_convert2list(taO0, 'domain_list') YKHO.__allow_domain = taO0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JUQP(YKHO, JUQP):\n YKHO._allow_subdomains = JUQP", "def xxKZ(YKHO):\n return YKHO._access_allow_domains", "def zEgx(YKHO, zEgx):\n YKHO._domains = zEgx", "def zEgx(YKHO, zEgx):\n YKHO._domains = zEgx", "def jKS7(YKHO, jKS7):\n YKHO._allow_hosts = jKS7", "def LcMU(YKHO, zrIJ, RNgT=None...
[ "0.66179085", "0.65740055", "0.65721565", "0.65721565", "0.64273244", "0.64042044", "0.6383081", "0.62711364", "0.61692685", "0.61374295", "0.6131684", "0.61222947", "0.61099946", "0.61056495", "0.6093801", "0.6029929", "0.5975016", "0.5921622", "0.5906454", "0.58982384", "0....
0.7281721
0
The Insights query API key.
def rJDA(YKHO): return YKHO._api_key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cVJl():\n Fv2L = GPtr.load_from_env()\n return {'api_key': Fv2L['API_KEY']}", "def rJDA(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'api_key')", "def rJDA(YKHO) -> str:\n return qe4Y.get(YKHO, 'api_key')", "def t10t(YKHO):\n return YKHO._connection.x_api_key", "def rJDA(YKHO) -> st...
[ "0.72930986", "0.7092916", "0.70298964", "0.7023568", "0.6986443", "0.6986443", "0.68597215", "0.6832749", "0.6821706", "0.66606075", "0.6595666", "0.65614897", "0.6509016", "0.6506817", "0.64937574", "0.64715177", "0.64537734", "0.64179134", "0.6381721", "0.6339395", "0.6333...
0.6857329
7
Set the Insights query API key.
def rJDA(YKHO, rJDA): YKHO._api_key = rJDA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H5ew(YKHO, H5ew):\n if H5ew:\n YKHO._api_key = H5ew\n return YKHO", "def Dma5(YKHO, H5ew: str) -> None:\n YKHO._api_key = H5ew", "def Dma5(H5ew: str):\n Hy7s.environ['QCWARE_API_KEY'] = H5ew", "def Dma5(YKHO, rJDA: str):\n YKHO.api_key = rJDA", "def nJFf(YKHO, rJDA):\n if not r...
[ "0.6681828", "0.6664149", "0.6621963", "0.64620054", "0.640911", "0.6352856", "0.633613", "0.61357206", "0.61285204", "0.61190253", "0.61190253", "0.61190253", "0.6065038", "0.6053635", "0.60360754", "0.5989122", "0.59183955", "0.59166795", "0.5765163", "0.5737608", "0.571329...
0.6206384
7
Set the account region (EU or US). By default the region is set to US.
def zn0c(YKHO, zn0c: str): YKHO._region = zn0c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BbA_(YKHO, zn0c):\n YKHO.region = zn0c", "def BbA_(bjSJ: str):\n MeMr.set_region(bjSJ)", "def z92l(YKHO, zn0c):\n if zn0c is None:\n raise 'Region not set.'\n elif zn0c == 'all':\n YKHO.regions = []\n for YRbF in iVGz.client('ec2', region_name=YKHO.default_region).describe_...
[ "0.77634066", "0.73995405", "0.7210492", "0.7199599", "0.7030023", "0.7030023", "0.7030023", "0.7030023", "0.7030023", "0.7030023", "0.7030023", "0.68356776", "0.6830198", "0.66114116", "0.6542278", "0.6517685", "0.65158564", "0.6497195", "0.6481526", "0.64736736", "0.6415357...
0.7498717
1
The maximum duration of all gates in this `GateSet`. Note that other GateSets can still occur before the end of this duration provided that no gates overlap in time.
def WbTE(YKHO): return YKHO.durations.peekitem(-1)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dIJQ(YKHO):\n return YKHO._max_duration", "def B2uj(YKHO):\n return YKHO._all_time_max", "def dIJQ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'max_duration')", "def WbTE(YKHO):\n if YKHO._duration:\n return YKHO._duration\n YKHO._duration = 0\n cblq = None\n for AU8u in YKHO....
[ "0.7041154", "0.6372023", "0.62127286", "0.6155601", "0.6155181", "0.6119221", "0.6050123", "0.6014577", "0.6010241", "0.5972421", "0.5971617", "0.59697264", "0.5904026", "0.5812104", "0.5788794", "0.5759147", "0.5745174", "0.5728727", "0.5692872", "0.5678423", "0.5678423", ...
0.0
-1
Computes the distance between two embeddings. The distance is a float number. The closest the distance (nearest to 0), the most likely to belong to the same face. Generally it can be considered that a distance over 1.0 might indicate that the faces are from different persons.
def Wxsq(YKHO, IooU, mWw1): return YKHO.get_embeddings_distances(IooU, [mWw1])[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xS18(jzdc, Fg_i):\n assert jzdc.shape == Fg_i.shape, 'Vectors must have equal dimension'\n Ayfi = 1 - ht2j.dot(jzdc, Fg_i) / (ht2j.linalg.norm(jzdc) * ht2j.linalg.norm(Fg_i))\n return Ayfi", "def Ayfi(jzdc, Fg_i):\n return XTiz.linalg.norm(jzdc - Fg_i)", "def V5o3(A7fy, tmiS):\n if len(A7fy)...
[ "0.7461515", "0.7307942", "0.710046", "0.7047018", "0.703409", "0.70099825", "0.7009615", "0.69895345", "0.6986723", "0.6982384", "0.69458413", "0.6928948", "0.69266546", "0.691301", "0.6880199", "0.6879633", "0.6847951", "0.68345994", "0.683324", "0.68285245", "0.68184024", ...
0.7614905
0
Computes the distances between an embedding and a list of embeddings. This method is optimal for processing a comparison against multiple embeddings, rather than going in a loop one by one.
def HZiK(YKHO, rqlu, KDYO): global NUMPY_AVAILABLE if hRO7: Aofo = [rqlu - zhTA for zhTA in KDYO] else: nPrm = {'who': str(rqlu), 'subjects': [str(wjQX) for wjQX in KDYO]} hkxX = YKHO._request('PUT', data=qQXR.dumps(nPrm))['distances'] Aofo = [float(wEf2) for wEf2 in hkxX] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C4Nn(Zrfd, RwwU, Ayfi=sOE8):\n assert Zrfd.shape == RwwU.shape\n TaUL = oyIN.zeros((Zrfd.shape[0], Zrfd.shape[0]))\n for pZYi in range(Zrfd.shape[0]):\n for zVcM in range(Zrfd.shape[0]):\n TaUL[pZYi, zVcM] = Ayfi(Zrfd[pZYi, :], RwwU[zVcM, :])\n return TaUL", "def gtUs(KTQ3, lRRB...
[ "0.7130489", "0.7054321", "0.701567", "0.69933194", "0.6850622", "0.67272466", "0.6697496", "0.66881245", "0.6668963", "0.6609642", "0.65929055", "0.6493142", "0.6489287", "0.64699394", "0.6396229", "0.63466763", "0.63070047", "0.6287487", "0.6241676", "0.6220781", "0.6148947...
0.75406736
0
It returns the union of an iterable of empty sets
def TTx7(dojh): return set.union(*list(dojh) + [set()])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def APZC(OxJJ):\n WhY1 = iter(OxJJ)\n w_Eq = next(WhY1, set())\n return set.union(w_Eq, *WhY1)", "def b65I(*lNWu):\n return so93(lNWu)", "def b65I(*qIxc: iter):\n Nneu = list(qIxc)\n Aofo = set(Nneu.pop(Nneu.index(max(qIxc, key=len))))\n for YRbF in Nneu:\n for r845 in YRbF:\n ...
[ "0.7923519", "0.7891847", "0.7744874", "0.77117103", "0.7523972", "0.74679196", "0.74330163", "0.74037194", "0.73871255", "0.7361194", "0.73450166", "0.73061466", "0.7275228", "0.72730875", "0.7257036", "0.72261846", "0.72261846", "0.72261846", "0.72261846", "0.72261846", "0....
0.8720352
0
Asserts that all the templates from the admin page were used.
def MFUt(YKHO, geh0): YKHO.assertGSoCTemplatesUsed(geh0) YKHO.assertTemplateUsed(geh0, 'modules/gsoc/admin/base.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HBaw(YKHO, geh0):\n YKHO.assertAdminBaseTemplatesUsed(geh0)\n YKHO.assertTemplateUsed(geh0, 'soc/dashboard/base.html')", "def QHE9(YKHO, geh0):\n YKHO.assertAdminBaseTemplatesUsed(geh0)", "def AUtZ(YKHO):\n Iaaf = {PtXs.INDEX_TMP: PtXs.INDEX_URL, PtXs.GROUP_TMP: PtXs.GROUP_URL, PtXs.NEW_POST_TM...
[ "0.7382015", "0.7275455", "0.71399015", "0.70849615", "0.70146495", "0.69546145", "0.6928536", "0.6927197", "0.6877027", "0.68602073", "0.67402166", "0.6724725", "0.6713591", "0.67062294", "0.6691581", "0.6651659", "0.66472346", "0.66225195", "0.66037184", "0.65977293", "0.65...
0.7922034
0
Asserts that all the templates to render a dashboard were used.
def HBaw(YKHO, geh0): YKHO.assertAdminBaseTemplatesUsed(geh0) YKHO.assertTemplateUsed(geh0, 'soc/dashboard/base.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dRey(YKHO):\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/create_view.html')\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/form.html')\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/search_form.html')\n YKHO.assertTemplateUsed(YKHO.response, 'base.html')", "def dRey(YKHO):\n YKHO.asser...
[ "0.7073595", "0.70643115", "0.7049789", "0.704243", "0.704056", "0.69894713", "0.6748204", "0.6738808", "0.67163074", "0.66745996", "0.666415", "0.6660363", "0.6651158", "0.66466725", "0.6643253", "0.6636806", "0.66365296", "0.66292727", "0.6629085", "0.6628266", "0.66006297"...
0.8228685
0
Asserts that all the templates to render user actions were used.
def QHE9(YKHO, geh0): YKHO.assertAdminBaseTemplatesUsed(geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dRey(YKHO):\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/update_view.html')\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/form.html')\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/search_form.html')\n YKHO.assertTemplateUsed(YKHO.response, 'base.html')", "def dRey(YKHO):\n YKHO.asser...
[ "0.70974123", "0.7080902", "0.69588244", "0.6952988", "0.69087374", "0.6681946", "0.6673793", "0.66374624", "0.66139233", "0.6610289", "0.6584258", "0.65568835", "0.65110606", "0.65105134", "0.6438247", "0.64000016", "0.63962173", "0.6352549", "0.6345767", "0.63140774", "0.63...
0.8040044
0
Asserts that all templates from the lookup profile page were used and all contexts were passed
def H8EF(YKHO, geh0): YKHO.assertIn('base_layout', geh0.context) YKHO.assertResponseOK(geh0) YKHO.assertGSoCTemplatesUsed(geh0) YKHO.assertEqual(geh0.context['base_layout'], 'modules/gsoc/base.html') YKHO.assertTemplateUsed(geh0, 'modules/gsoc/admin/lookup.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def koKv(YKHO, geh0):\n YKHO.assertGSoCTemplatesUsed(geh0)\n YKHO.assertTemplateUsed(geh0, 'v2/modules/gsoc/profile_show/base.html')\n YKHO.assertTemplateUsed(geh0, 'v2/modules/gsoc/_readonly_template.html')", "def AUtZ(YKHO):\n Iaaf = {PtXs.INDEX_TMP: PtXs.INDEX_URL, PtXs.GROUP_TMP: PtXs.GROUP_URL, ...
[ "0.66526634", "0.66059256", "0.65999025", "0.65589774", "0.64550567", "0.6453225", "0.6448605", "0.63242644", "0.62885845", "0.6267821", "0.62614167", "0.6244334", "0.6242211", "0.6241115", "0.62363225", "0.62110764", "0.6207252", "0.62065744", "0.6206003", "0.62028307", "0.6...
0.6987429
0