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
Compute the softmax of each element along an axis of X.
def N93T(EcVT, q7In=1.0, jDK_=None): LVAh = oyIN.atleast_2d(EcVT) if jDK_ is None: jDK_ = next((r845[0] for r845 in enumerate(LVAh.shape) if r845[1] > 1)) LVAh = LVAh * float(q7In) LVAh = LVAh - oyIN.expand_dims(oyIN.max(LVAh, axis=jDK_), jDK_) LVAh = oyIN.exp(LVAh) GM4D = oyIN.expand_di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n WKvO = oyIN.transpose(WKvO)\n return oyIN.transpose(oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0))", "def N93T(WKvO):\n if WKvO.ndim == 1:\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum(axis=0)\n else:\n uw5A = oyIN.exp(WKvO.T - oyIN.max(W...
[ "0.85829306", "0.85623956", "0.8485314", "0.8471719", "0.8463859", "0.84578127", "0.8438464", "0.84282345", "0.8422317", "0.83954877", "0.8395339", "0.83913296", "0.83822906", "0.83557016", "0.8347192", "0.8332008", "0.83197165", "0.8319276", "0.8315076", "0.8313633", "0.8312...
0.0
-1
If parent is set to a any value, checks that there aren't any other products with their parent set to this one. Makes sure parent is not set to 'self' or a 'variant'.
def GAHn(YKHO): KAOR = getattr(YKHO, 'instance', None) nPrm = YKHO.cleaned_data.get('parent') if nPrm is not None: if KAOR is not None: if KAOR.is_group: raise H6V6.ValidationError(bGrB('Other products have set this product as their parent, you need to unassign or delete ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def avHo(YKHO, QEgb):\n if QEgb is YKHO.parent:\n return False\n return True", "def yZ3D(YKHO, JZXy):\n if JZXy.get(YKHO.parentKey) == 0:\n return True\n return False", "def qcGx(YKHO):\n YKHO._clean_0()\n if YKHO.has_stockrecords or YKHO.price:\n raise sUXu(bGrB(\"A pare...
[ "0.6881851", "0.6498262", "0.64273566", "0.63968295", "0.6246969", "0.6245793", "0.6241234", "0.62342656", "0.62098265", "0.61914283", "0.61757135", "0.61527646", "0.61305416", "0.6119311", "0.6057272", "0.59962505", "0.59945905", "0.5942973", "0.58870834", "0.58538747", "0.5...
0.72093344
0
Gets the string representation of this object.
def zAg0(YKHO): return 'observers: %s' % YKHO._observers
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(YKHO):\n return YKHO.__str__()", "def yLCI(YKHO):\n return YKHO.__str__()", "def yLCI(YKHO):\n return str(YKHO)", "def yLCI(YKHO):\n return str(YKHO)", "def MFu_(YKHO):\n return str(YKHO)", "def yLCI(YKHO) -> str:\n return YKHO.__str__()", "def gTzM(YKHO):\n return YKHO.__...
[ "0.8953792", "0.8913969", "0.8898083", "0.8898083", "0.87881434", "0.87768066", "0.8770726", "0.8753976", "0.8731296", "0.87003475", "0.8563481", "0.84724885", "0.84538734", "0.8444957", "0.8444957", "0.8444957", "0.8444957", "0.8444957", "0.8444957", "0.8444957", "0.8444957"...
0.0
-1
Gets the observers for this subject.
def bW23(YKHO): return YKHO._observers
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w_ft(YKHO):\n for bf9h in YKHO._observers:\n LiTy = bf9h()\n if LiTy is None:\n continue\n yield LiTy\n return", "def fPW4(YKHO):\n return YKHO._observables", "def fPW4(YKHO):\n return YKHO._observables", "def OyuV():\n return tuple(Wwl2)", "def OyuV():\n ...
[ "0.7203833", "0.71020705", "0.71020705", "0.6878478", "0.6878478", "0.6837296", "0.645211", "0.6349424", "0.6246732", "0.6246732", "0.6231037", "0.62160295", "0.61674404", "0.61665833", "0.614159", "0.599454", "0.59916186", "0.5935692", "0.58987015", "0.58975214", "0.5885693"...
0.87064546
0
query string with get params
def h5VM(YKHO): YKHO.conn.request('GET', '/httptest/dir2/page.html?arg1=value&arg2=value') Mkmy = YKHO.conn.getresponse() nPrm = Mkmy.read() u54L = Mkmy.getheader('Content-Length') YKHO.assertEqual(int(Mkmy.status), 200) YKHO.assertEqual(int(u54L), 38) YKHO.assertEqual(len(nPrm), 38) YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sYT1(YKHO, NArs):\n NArs.update(YKHO.additional_params)\n return '?%s' % '&'.join(['%s=%s' % (xqoZ, BWXx) for xqoZ, BWXx in NArs.items()])", "def sYT1(NArs) -> str:\n if not NArs:\n return ''\n return '?' + '&'.join([str(G1Hx) + '=' + str(Ty9i) for G1Hx, Ty9i in NArs.items()])", "def Xvc...
[ "0.80021", "0.7764425", "0.758681", "0.75784296", "0.74931055", "0.74320865", "0.7416659", "0.73319864", "0.72492397", "0.71734154", "0.71655005", "0.71429014", "0.7119696", "0.7118836", "0.70987296", "0.70749885", "0.7068878", "0.704202", "0.703894", "0.7019996", "0.70054966...
0.0
-1
Tests that the right template is used to the view.
def H3gk(YKHO, WjZ_, qm1k): YKHO.client.login(username='super_user', password='p@55words') geh0 = YKHO.client.get(WjZ_) YKHO.assertTemplateUsed(geh0, qm1k)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M2AZ(YKHO):\n geh0 = YKHO.client.get(gxEw(YKHO.urlpat_name))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'rango/about.html')", "def M2AZ(YKHO):\n geh0 = YKHO.client.get(gxEw(YKHO.urlpat_name))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(...
[ "0.81161785", "0.8093388", "0.8070695", "0.7973764", "0.7907441", "0.7844727", "0.7817115", "0.781443", "0.78061604", "0.7802574", "0.7801408", "0.77503884", "0.77275306", "0.7629331", "0.7614433", "0.76027447", "0.75690114", "0.7568677", "0.7553775", "0.7540378", "0.7540378"...
0.74597806
26
Tests whether the user requesting this Profile view owns the Profile. If the user doesn't own the profile, he/she is redirected to the login page.
def X20s(YKHO, WjZ_, qm1k): kVM5 = SYRW.objects.get(username='regular_user') YKHO.assertTrue(kVM5.pk == 1) YKHO.client.force_login(kVM5) geh0 = YKHO.client.get(WjZ_, follow=True) YKHO.assertTemplateUsed(geh0, qm1k) YKHO.client.logout() _5cq = SYRW.objects.get(username='super_user') YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGll(QePW):\n if str(QePW.user) == 'AnonymousUser':\n return Yd7Q(gxEw('login'))\n else:\n return Yd7Q(gxEw('profile', args=(QePW.user.id,)))", "def nrOS(YKHO, QePW):\n if not QePW.user.is_anonymous:\n CBIr = QePW.user\n if not hasattr(CBIr, 'profiles'):\n if Q...
[ "0.7321562", "0.71554685", "0.69662493", "0.6910916", "0.69101596", "0.69083226", "0.68896776", "0.6870403", "0.6819263", "0.67475235", "0.6731793", "0.66417176", "0.66396844", "0.6622205", "0.66195333", "0.6607272", "0.65924615", "0.65770876", "0.6576028", "0.6537246", "0.64...
0.61925375
61
(int) > int Returns the sum of all digits in a nonnegative integer n.
def CIne(exwG): if exwG <= 9: return exwG else: pSfY = exwG % 10 X4mj = exwG // 10 return pSfY + CIne(X4mj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CIne(exwG: int) -> int:\n return sum((int(Ko6S) for Ko6S in str(exwG)))", "def CIne(exwG):\n if exwG < 10:\n return exwG\n return CIne(exwG // 10) + exwG % 10", "def QFPj(exwG):\n if exwG < 10:\n return exwG\n else:\n return QFPj(exwG // 10) + exwG % 10", "def PdXk(exw...
[ "0.8250942", "0.8170276", "0.8112154", "0.7958283", "0.7948764", "0.7935398", "0.7909021", "0.790851", "0.7908354", "0.78971845", "0.78189677", "0.7783087", "0.7722236", "0.76999015", "0.7662999", "0.75828576", "0.75273097", "0.7527088", "0.74383265", "0.7347288", "0.7341654"...
0.8169117
2
Initialize a FeatureExtractor object.
def FIMM(YKHO, b0j5=Q5sq, CX35: FeatureFunctions=lMwe(), ojI6: FeatureFunctions=c0hr(), vVbW=XJI0, tHS9=hJmS): YKHO.tokenizer = b0j5 YKHO.word_features = CX35 YKHO.sentence_features = ojI6 YKHO.lags = vVbW YKHO.leads = tHS9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.load_data()\n YKHO.extract_train_features()\n YKHO.extract_test_features()\n return", "def FIMM(YKHO, mWFP, pmON, K08b):\n YKHO.extractor = None\n YKHO.extractor = Z8A6(model_name=mWFP, model_path=pmON, device=K08b)", "def FIMM(YKHO, Jm84, U_NH):\n super().__init__()...
[ "0.7255672", "0.7188037", "0.69808286", "0.69399774", "0.6902978", "0.6883447", "0.68795323", "0.6865108", "0.6796957", "0.6792316", "0.6747096", "0.6738016", "0.6701667", "0.66464394", "0.6638811", "0.66386664", "0.66142046", "0.65985197", "0.65612537", "0.65445304", "0.6533...
0.64645576
24
Returns posterior probabilities in P for each residue on path as numpy.ndarray. In other words this method returns a slice of an array of arbitrary dimensions by selecting indices in P provided by path parameter.
def _cmN(YKHO, V6IE, pmON): from numpy import take vuvg = take(V6IE, pmON, axis=0) return vuvg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XP5J(YKHO):\n qw7D = kp_e(ykvB.p, 0, 1)\n return qw7D", "def niNT(YKHO, WKvO):\n return oyIN.array([YKHO.p_posterior(Ty9i, WKvO) for Ty9i in YKHO.verbs])", "def XP5J(YKHO) -> VEDo.ndarray:\n return YKHO._p", "def XP5J(YKHO, YRbF=None):\n if YRbF == None:\n return YKHO.pbt[:, 0]\n ...
[ "0.5966256", "0.5849418", "0.54487336", "0.53912604", "0.5323432", "0.5321514", "0.5293266", "0.5282716", "0.5282716", "0.5268661", "0.5250654", "0.52314967", "0.5231081", "0.520813", "0.5145646", "0.51275814", "0.5124612", "0.5103685", "0.50934696", "0.50768757", "0.50748307...
0.50927484
19
Search this behaviour's ancestors for one with the specified name.
def Z53A(YKHO, mWFP: str) -> bool: mXDZ = ZbWC.compile(mWFP) Fg_i = YKHO while Fg_i.parent is not None: if mXDZ.match(Fg_i.parent.name) is not None: return True Fg_i = Fg_i.parent return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AzfL(YKHO, mWFP: str) -> x1iM['AugeasParserNode']:\n JZlq: x1iM['AugeasParserNode'] = []\n _AKB = YKHO.metadata['augeaspath']\n while True:\n _AKB = _AKB.rpartition('/')[0]\n if not _AKB or _AKB == '/files':\n break\n pEuY = YKHO._create_blocknode(_AKB)\n if pEuY...
[ "0.6669632", "0.6028831", "0.6002027", "0.59529305", "0.59340274", "0.59234285", "0.590305", "0.58874446", "0.58684456", "0.57583666", "0.5757761", "0.57548594", "0.57379264", "0.57172287", "0.5706859", "0.5698758", "0.5689941", "0.5689941", "0.5679431", "0.5630309", "0.56149...
0.5733607
13
Search this behaviour's ancestors for one of the specified type.
def _svg(YKHO, DEXX: 'typing.Type[Behaviour]') -> bool: Fg_i = YKHO while Fg_i.parent is not None: if isinstance(Fg_i.parent, DEXX): return True Fg_i = Fg_i.parent return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vds4(YKHO):\n ...", "def JZlq(YKHO, H5ew):\n if H5ew in YKHO.ancestors_cache:\n return YKHO.ancestors_cache[H5ew]\n Aofo = KMEh(YKHO, H5ew, 'is_a')\n YKHO.ancestors_cache[H5ew] = Aofo\n return YKHO.ancestors(H5ew)", "def F_G6(YKHO, filter):\n P6bq = YKHO.up()\n while P6bq:\n ...
[ "0.73910046", "0.6154118", "0.6119473", "0.61028093", "0.6095041", "0.5917489", "0.5864164", "0.5853132", "0.5781181", "0.57159984", "0.5682634", "0.56440413", "0.5615469", "0.5611602", "0.5606397", "0.5529568", "0.55027455", "0.54936063", "0.5489769", "0.54892135", "0.540718...
0.540361
22
Get the tip of this behaviour's subtree (if it has one). This corresponds to the the deepest node that was running before the subtree traversal reversed direction and headed back to this node.
def Y9ei(YKHO) -> laHg.Optional[qJMm]: return YKHO if YKHO.status != BJsk.Status.INVALID else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y9ei(YKHO):\n return YKHO.current_child.tip() if YKHO.current_child is not None else None", "def HtIZ(YKHO):\n return YKHO.left", "def AOBR(YKHO):\n if YKHO.left_child is not None:\n return YKHO.left_child.max()\n Q6kx = YKHO\n while Q6kx.parent is not None:\n if Q6kx.parent.ri...
[ "0.6969998", "0.6194185", "0.607465", "0.59438086", "0.59412277", "0.59367377", "0.5930022", "0.5812183", "0.5806283", "0.5794983", "0.57836485", "0.5782755", "0.5749169", "0.5744164", "0.5720484", "0.5720266", "0.57120055", "0.5679675", "0.56724024", "0.5667796", "0.56630236...
0.5589562
35
Yields pairs of (type, requirement) for all requirements. type is one of None, 'e', 'r'.
def O1OY(YKHO): for qv1X in YKHO['pip2nix']['requirements']: if qv1X.startswith(('-e', '-r')): yield (qv1X[:2], qv1X[2:].strip()) else: yield (None, qv1X.strip())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O7Qj(h3rk: dict[str, list[str]]) -> bDy6[tuple[str, str]]:\n for dDGN, FmF5 in h3rk.items():\n XEri = ''\n dDGN = dDGN or ''\n if ':' in dDGN:\n dDGN, XEri = dDGN.split(':', 1)\n dDGN = ym3N(dDGN)\n if dDGN:\n yield ('Provides-Extra', dDGN)\n ...
[ "0.64400154", "0.63323337", "0.6279587", "0.60967094", "0.6048756", "0.60069436", "0.5951843", "0.5849565", "0.5817529", "0.57863575", "0.5734455", "0.5672208", "0.5636645", "0.5571786", "0.55467707", "0.554015", "0.5522853", "0.55206776", "0.5510595", "0.5493391", "0.5493391...
0.6367978
1
Function for creation of an Variable object. Store an Variable object in '.variables' dict. Mandatory interface for model Variable creation in the DeclareVariables() function.
def ACFk(YKHO, mWFP, rYO3, JBZA='', Dgzv=False, qpZs=False, IDsK=None, A2Fp=None, R30g=False, type='', Wi8R='', BWXx=0.0): if Wi8R is '': Wi8R = mWFP SRYB = iQnE(mWFP, rYO3, JBZA, Dgzv, qpZs, IDsK, A2Fp, BWXx, R30g, type, Wi8R, YKHO.name) SRYB.name = SRYB.name + '_' + YKHO.name YKHO.variables[SR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z686(YKHO, Q6kx: Node):\n return iQnE(YKHO.name, Q6kx)", "def oHaL(YKHO):\n pass", "def _R7B(Emd4, pB8n: Dict[str, List[Any]]) -> KWlx:\n kc1W = pB8n['variables']\n for SRYB in kc1W:\n SRYB.pop('id', None)\n kWfH = [iQnE(**SRYB) for SRYB in kc1W]\n VmG4 = pB8n.get('auxiliary_variab...
[ "0.68416524", "0.68316257", "0.6638556", "0.66001016", "0.6593694", "0.65342563", "0.6384823", "0.6377189", "0.6356891", "0.63013136", "0.6290229", "0.62829226", "0.6253803", "0.62352425", "0.6218933", "0.6217562", "0.6192358", "0.6185284", "0.61849385", "0.6179259", "0.61712...
0.67773014
2
Function for creation of an ParameterArray object. Store an Parameter object in '.ParameterArrays' dict. Mandatory interface for model ParameterArray creation in the DeclareParameters() function.
def _ODI(YKHO, mWFP, zNig, rYO3, JBZA='', BWXx=0, Wi8R=''): if Wi8R is '': Wi8R = mWFP uC60 = S_AE(mWFP, zNig, rYO3, JBZA, BWXx, Wi8R, is_specified=False, owner_model_name=YKHO.name) uC60.name = uC60.name + '_' + YKHO.name YKHO.parameter_arrays[uC60.name] = uC60 return uC60
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w2G6(NArs, qw7D, kg2T=None, n7M0=None, Vcmb=None, Y2eJ=None):\n try:\n if kg2T is None:\n kg2T = oyIN.arange(len(qw7D))\n if len(qw7D) != len(kg2T):\n print(\"Inputs 'array' and 'arraynames' must have same length\")\n exit(0)\n for YRbF in range(len(qw7D...
[ "0.5824119", "0.57157606", "0.5691947", "0.5445971", "0.5435187", "0.53851885", "0.5383738", "0.53533983", "0.5313829", "0.53087306", "0.52761465", "0.5231949", "0.52096796", "0.51806957", "0.5176523", "0.51715964", "0.5160791", "0.5142647", "0.5131388", "0.51205224", "0.5109...
0.73584324
0
Computes the L1 norm distance between two ndimensional points
def eHNT(EBgd, HpuQ): return vsh_(X3eO.state_to_pos(HpuQ.state), X3eO.state_to_pos(X3eO.goalstate))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsh_(EBgd, HpuQ):\n return oyIN.sum(oyIN.abs(oyIN.asarray(EBgd) - oyIN.asarray(HpuQ)))", "def iLmR(BZrQ, OhjO):\n return XTiz.linalg.norm(BZrQ - OhjO, ord=1)", "def cOBz(X3qZ, ZYCo):\n from scipy import linalg as rmzx\n pImw = rmzx.norm(BBix(X3qZ, ZYCo))\n return pImw", "def CkYf(lCHq, ANJ...
[ "0.78962433", "0.7806439", "0.7429757", "0.72895175", "0.7280455", "0.72533923", "0.71917427", "0.7189764", "0.71868944", "0.7094987", "0.70725465", "0.7020221", "0.6999973", "0.6988698", "0.698592", "0.6963133", "0.69518626", "0.6945602", "0.69322336", "0.6919749", "0.689879...
0.0
-1
Computes the L1 norm distance between two ndimensional points
def eHNT(EBgd, HpuQ): if EBgd is None: return vsh_(X3eO.state_to_pos(HpuQ.state), X3eO.state_to_pos(X3eO.goalstate)) return vsh_(X3eO.state_to_pos(HpuQ.state), X3eO.state_to_pos(X3eO.goalstate)) + Oa1e(EBgd, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsh_(EBgd, HpuQ):\n return oyIN.sum(oyIN.abs(oyIN.asarray(EBgd) - oyIN.asarray(HpuQ)))", "def iLmR(BZrQ, OhjO):\n return XTiz.linalg.norm(BZrQ - OhjO, ord=1)", "def cOBz(X3qZ, ZYCo):\n from scipy import linalg as rmzx\n pImw = rmzx.norm(BBix(X3qZ, ZYCo))\n return pImw", "def CkYf(lCHq, ANJ...
[ "0.78960115", "0.78054297", "0.7430708", "0.72908086", "0.7280891", "0.7253326", "0.7190824", "0.71892583", "0.7185113", "0.70950603", "0.7072867", "0.7020497", "0.6999739", "0.6987881", "0.6985692", "0.6963243", "0.6952098", "0.69451916", "0.69315875", "0.69203526", "0.68984...
0.0
-1
Computes the L1 norm distance between two ndimensional points
def vsh_(EBgd, HpuQ): return oyIN.sum(oyIN.abs(oyIN.asarray(EBgd) - oyIN.asarray(HpuQ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iLmR(BZrQ, OhjO):\n return XTiz.linalg.norm(BZrQ - OhjO, ord=1)", "def cOBz(X3qZ, ZYCo):\n from scipy import linalg as rmzx\n pImw = rmzx.norm(BBix(X3qZ, ZYCo))\n return pImw", "def CkYf(lCHq, ANJu):\n sum((abs(jzdc - Fg_i) for jzdc, Fg_i in zip(lCHq, ANJu)))", "def Ayfi(lCHq, ANJu):\n ...
[ "0.78054297", "0.7430708", "0.72908086", "0.7280891", "0.7253326", "0.7190824", "0.71892583", "0.7185113", "0.70950603", "0.7072867", "0.7020497", "0.6999739", "0.6987881", "0.6985692", "0.6963243", "0.6952098", "0.69451916", "0.69315875", "0.69203526", "0.68984723", "0.68857...
0.78960115
0
Computes the L1 norm distance between two ndimensional points
def KtDG(EBgd, HpuQ): return oyIN.linalg.norm((oyIN.asarray(EBgd), oyIN.asarray(HpuQ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsh_(EBgd, HpuQ):\n return oyIN.sum(oyIN.abs(oyIN.asarray(EBgd) - oyIN.asarray(HpuQ)))", "def iLmR(BZrQ, OhjO):\n return XTiz.linalg.norm(BZrQ - OhjO, ord=1)", "def cOBz(X3qZ, ZYCo):\n from scipy import linalg as rmzx\n pImw = rmzx.norm(BBix(X3qZ, ZYCo))\n return pImw", "def CkYf(lCHq, ANJ...
[ "0.78962433", "0.7806439", "0.7429757", "0.72895175", "0.7280455", "0.72533923", "0.71917427", "0.7189764", "0.71868944", "0.7094987", "0.70725465", "0.7020221", "0.6999973", "0.6988698", "0.698592", "0.69518626", "0.6945602", "0.69322336", "0.6919749", "0.6898795", "0.688604...
0.6963133
15
Given an image, make sure it has 3 channels and that it is between 0 and 1.
def tQEA(VXjJ, E4ec=False): if len(VXjJ.shape) != 3: raise Exception('Image must have 3 dimensions (channels x height x width). Given {0}'.format(len(VXjJ.shape))) jaG1, bGrB, bGrB = VXjJ.shape if jaG1 != 3 and jaG1 != 1: raise Exception('Unsupported number of channels. Must be 1 or 3, given...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ftlz(VXjJ):\n if len(VXjJ.shape) < 3:\n return True\n return False", "def gQl0(LNo8):\n return LNo8.ndim < 3", "def CWro(YKHO, Xn71):\n assert Xn71.shape[0] % 2 == 0\n assert Xn71.shape[1] % 2 == 0", "def Z4dW(LNo8):\n jzdc = LNo8[:, :, 0] == LNo8[:, :, 1]\n Fg_i = LNo8[:, :, ...
[ "0.69322413", "0.68369037", "0.67871624", "0.6770763", "0.6626091", "0.66109216", "0.65290356", "0.65225947", "0.64372474", "0.639953", "0.6330982", "0.63090163", "0.62740624", "0.62258476", "0.61530524", "0.6105039", "0.6097313", "0.6064981", "0.60372466", "0.6030031", "0.60...
0.0
-1
Get directories in current folder. RETURNS list of pathlib.Path
def jj4i(): sWmO = GkAb.cwd() return [XP5J for XP5J in sWmO.iterdir() if XP5J.is_dir() and XP5J.name not in _FeN]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gXmf(tk5Y: pathlib.Path) -> x1iM[oAb3.Path]:\n lY6Q = tk5Y.glob('**/*')\n return [pmON for pmON in lY6Q if pmON.is_dir()]", "def AQSv(YKHO) -> list:\n if YKHO.absolutePaths:\n return [Hy7s.path.join(YKHO.dir, dir) for dir in YKHO.client.list(YKHO.dir) if ZbWC.search(Hy7s.path.sep, dir)]\n ...
[ "0.78492886", "0.78342944", "0.7799986", "0.76777226", "0.7674336", "0.764721", "0.7638694", "0.759275", "0.7555544", "0.7541362", "0.7535719", "0.7443305", "0.74386877", "0.7399902", "0.7398466", "0.7370209", "0.73667663", "0.7341529", "0.73356915", "0.7334791", "0.72653824"...
0.7325003
20
Returns an instance of the logger. Always pass the __name__ attribute. By calling through here, guarantees that logger will always have proper settings loaded.
def fZx2(sGFq): return G9jH.getLogger(sGFq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2():\n global NAME\n return G9jH.getLogger(d0Dv)", "def fZx2(YKHO, mWFP):\n if not YKHO.initialised:\n G9jH.basicConfig(format='[%(asctime)s] %(levelname)s %(name)s: %(message)s', level=G9jH.INFO)\n YKHO.initialised = True\n return G9jH.getLogger(mWFP)", "def fZx2():\n retu...
[ "0.80705947", "0.7883363", "0.7841787", "0.780403", "0.7779815", "0.7744093", "0.7714795", "0.7698633", "0.76677364", "0.76379603", "0.762878", "0.7618283", "0.7608296", "0.76017326", "0.76017326", "0.76017326", "0.75924224", "0.7580361", "0.75746715", "0.7573501", "0.7549765...
0.71817243
71
Updates noise buffers at the end of an episode.
def qlVk(YKHO, JmmR: np.array): YKHO._noise_init_mask = ZylS.cast(JmmR, dtype=ZylS.float32)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SYl3(YKHO):\n YKHO.noise.reset()\n YKHO.beta = min(1.0, YKHO.beta + YKHO.delta_beta)", "def lUBY(YKHO):\n yYDK = list(zip(YKHO.samples, YKHO.labels, YKHO.video_length))\n Zohj.shuffle(yYDK)\n YKHO.samples, YKHO.labels, YKHO.video_length = zip(*yYDK)\n YKHO.samples = oyIN.array(YKHO.samples)...
[ "0.7138981", "0.62844944", "0.62526524", "0.62301815", "0.61291116", "0.6128932", "0.6102273", "0.60754806", "0.6066141", "0.60037744", "0.5976681", "0.59640825", "0.595521", "0.59430546", "0.59416986", "0.5924769", "0.5924769", "0.5922787", "0.5905344", "0.58875144", "0.5878...
0.0
-1
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum(axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye", "def N93T(WKvO):\n j1LR = oyIN.exp(o...
[ "0.80113125", "0.77607703", "0.77607703", "0.7687368", "0.76707524", "0.76605", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76571554", "0.76397043", "0.762786", "0.7551623", "0.7532752", "0.74565", "0.73242354", "0.73171765", "0.7298...
0.7110584
49
Calculates FPS using the time difference between the current frame and the previous frame.
def iXC1(YKHO, g4y1: Dict[str, Any]) -> cuzp[str, ImMB]: YT1h = gwnn() KkGq = 1.0 / (YT1h - YKHO.prev_frame_timestamp) YKHO.prev_frame_timestamp = YT1h NnxH = YKHO._moving_average(KkGq) if not g4y1['pipeline_end']: if YKHO.fps_log_display: if YKHO.count % YKHO.fps_log_freq == 0 a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KJiB():\n global _time_prev, _fps\n JUFO = ITS7.time() * 1000.0\n JRYC = JUFO - b1U2\n b1U2 = JUFO\n if JRYC == 0.0:\n return NAGU.value\n return NAGU.update(1000.0 / JRYC)", "def KJiB():\n global _time_prev, _fps\n JUFO = ITS7.time() * 1000.0\n JRYC = JUFO - b1U2\n b1U2 ...
[ "0.7604911", "0.7604911", "0.74987644", "0.7484532", "0.7406175", "0.73082", "0.71202666", "0.7084057", "0.70555437", "0.7001536", "0.7001536", "0.69112474", "0.69081134", "0.6824126", "0.67077005", "0.66861403", "0.66783744", "0.6665173", "0.66533476", "0.66015786", "0.65966...
0.59193194
76
Return an unknown/generic error response.
def lN4L(): return {'status': 'fail', 'data': {'message': 'unknown_key'}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hDcH():\n eTsH(qed_.INTERNAL_SERVER_ERROR)", "def qwFv(tO9_):\n qQXR, bGrB = c295(tO9_)\n return (qQXR, FdK3)", "def aqGw(YKHO, geh0):\n if geh0.get('status_code') in (403, 500, 503):\n return geh0.get('status_txt', 'UNKNOWN_ERROR')\n if geh0.get('status_code') == 200:\n return...
[ "0.72432876", "0.7186683", "0.70415527", "0.7008007", "0.6970016", "0.69602823", "0.6869347", "0.68484217", "0.6845139", "0.6810686", "0.67758363", "0.6752925", "0.67299837", "0.6717634", "0.6710604", "0.6708212", "0.6705008", "0.66815513", "0.6677443", "0.6675596", "0.667370...
0.0
-1
Return a response when the nearest station cannot be determined.
def RU4G(): return {'status': 'fail', 'data': {'message': 'no_nearest_station'}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g5PY(YKHO):\n try:\n EPOe = YKHO.weather_report_dict.get('flags')['nearest-station']\n return EPOe\n except KeyError:\n return 'Not Available'", "def L0qW(_UuI, fopC):\n bD7m = f'{YUo1}?api_key={iKm0}&filter[latitude]={_UuI}&filter[longitude]={fopC}&sort=distance'\n with uRlK...
[ "0.7045568", "0.6543233", "0.6364285", "0.6364285", "0.61299527", "0.6062806", "0.60244346", "0.5807191", "0.57376856", "0.56598496", "0.5642639", "0.56190705", "0.56130147", "0.55630505", "0.55595595", "0.549607", "0.5483723", "0.5470853", "0.54581046", "0.54449", "0.5397129...
0.6948453
1
Return a response when a node cannot be found.
def pr2m(): return 'node not found'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hit7(YKHO):\n with trZe.raises(zMf3):\n rrLg = J_u9.get('/{}'.format(kxTZ()))", "def o3cf():\n return Yxsy(pz3A({'error': 'Not found'}), 404)", "def S6CV(Eorv='servers'):\n Ol8d = {'images': 'Image not found.', 'flavors': 'The resource could not be found.', 'loadbalancer': 'Load balancer no...
[ "0.72208846", "0.720219", "0.7171845", "0.71384025", "0.7110102", "0.7091982", "0.7076503", "0.7060466", "0.7059106", "0.70422953", "0.70416325", "0.70374227", "0.70374227", "0.70374227", "0.703582", "0.7007859", "0.6992479", "0.69762796", "0.69738835", "0.6966063", "0.693915...
0.0
-1
Return a response when permission is denied.
def oghu(): return {'status': 'fail', 'data': {'message': 'permission_denied'}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rwUd(YKHO, QePW, Ol8d='Permission denied'):\n raise Bx6I.PermissionDenied(detail=Ol8d)", "def rwUd(QePW):\n return uxvd(QePW, '403.html').render()", "def cAxm(P1dF):\n return ('Not Permitted', 403)", "async def on_denied(YKHO, db6b: CallBack, Ol8d: Message) -> h8nf[str]:\n return ':{ Not Perm...
[ "0.7718428", "0.75518185", "0.74110067", "0.741055", "0.7363899", "0.7337192", "0.7319667", "0.7315803", "0.7268296", "0.7218279", "0.7142568", "0.7121111", "0.71139973", "0.70861626", "0.7084989", "0.705704", "0.70463496", "0.70004743", "0.6998778", "0.6985258", "0.69356257"...
0.693774
20
Build a validator from a dictionary.
def UrO2(cmPJ): zIV1, CYSX, SnBA, muwo = aDGi(cmPJ) def MR4X(nPrm): """Validate dictionaries.""" v3uw = list(muwo.keys()) if not isinstance(nPrm, dict): raise MENI('%r is not of type dict' % (nPrm,)) Wk20 = {} U57a = list(nPrm.keys()) UAju = QOTu(zIV1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k3xU(cmPJ: Dict[str, Any]) -> zylh:\n if not isinstance(cmPJ, dict):\n raise uMuY('DictValidator need a dictionary of type dict.')\n return zylh(cmPJ)", "def CCiu(Emd4, fGC9):\n qIxc = {jzdc: Ty9i for jzdc, Ty9i in fGC9.items() if jzdc in hkS8.fields_dict(Emd4)}\n return Emd4(**qIxc)", "...
[ "0.6579433", "0.6474674", "0.62852323", "0.6182129", "0.61418825", "0.61111456", "0.61095345", "0.60738355", "0.6059947", "0.60255575", "0.59769917", "0.59753513", "0.59532154", "0.59139353", "0.5911507", "0.5911507", "0.5911507", "0.5911507", "0.5911507", "0.5911507", "0.591...
0.64891636
1
Make a copy of the World object.
def jth9(YKHO): Elif = q9wD([rdlD[:] for rdlD in YKHO.map], lambdas=YKHO.lambdas, lambdas_collected=YKHO.lambdas_collected, in_lift=YKHO.in_lift, state=YKHO.state, robot=YKHO.robot, num_moves=YKHO.num_moves, water=YKHO.water, flooding=YKHO.flooding, waterproof=YKHO.waterproof, underwater=YKHO.underwater, trampoline...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3ak(YKHO):\n ycBG = D7J2(YKHO.variables.copy())\n ycBG.functions = YKHO.functions\n return ycBG", "def nCIz(YKHO):\n Q0fv = _qLf(YKHO.world)\n YKHO.check_deepcopied_world(Q0fv)", "def yo1J(YKHO):\n object = YKHO.world.objects[0]\n BPWI = _qLf(object)\n Q0fv = BPWI.world\n YKHO.c...
[ "0.7527646", "0.72333586", "0.6978742", "0.69316846", "0.6916009", "0.687481", "0.68643695", "0.6805785", "0.6730933", "0.67208093", "0.66669935", "0.6665199", "0.6616725", "0.6586488", "0.6543483", "0.6542097", "0.65397805", "0.6527237", "0.65265685", "0.64671016", "0.646699...
0.82953984
0
generate_sequence returnes a random sequence DNA of length given as argument
def dCtK(u54L): import random aWuw = '' for YRbF in range(0, u54L - 1): P8oC = '' ADdS = random.randint(0, 3) if ADdS == 0: P8oC = 'A' elif ADdS == 1: P8oC = 'C' elif ADdS == 2: P8oC = 'G' elif ADdS == 3: P8oC = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dCtK(YKHO, u54L=60):\n iDcE = tuKI.choice(['DNA', 'RNA'])\n return ''.join([tuKI.choice(YKHO.NUCLEOTIDES[iDcE]) for bGrB in range(u54L)]).upper()", "def QlYg(u54L):\n gitN = {1: 'A', 2: 'G', 3: 'C', 4: 'T'}\n Q6uT = ''\n for YRbF in range(u54L):\n Q6uT += gitN[ajWY(1, 4)]\n return Q6...
[ "0.78804976", "0.78095263", "0.7523824", "0.7523103", "0.7503403", "0.7493827", "0.74636304", "0.7418704", "0.73991805", "0.727965", "0.7201557", "0.7180489", "0.7133624", "0.7124664", "0.708652", "0.7025008", "0.6984153", "0.68050814", "0.6776241", "0.67133397", "0.67125034"...
0.7512323
4
reverse_transcribe return the trancscipt of the reverse complement of the DNA string provided.
def Td78(vIwR): AUCB = '' for P8oC in vIwR: if P8oC == 'U': AUCB = AUCB + 'T' elif P8oC in ['A', 'C', 'G']: AUCB = AUCB + P8oC else: print('characters that are not A, C, G or U are present in the string\n\n') return 0 return AUCB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zF1v(ytkQ):\n return ''.join([Q6bk(d3dn) for d3dn in reversed(ytkQ)])", "def zF1v(ytkQ):\n wez6 = ''\n d6pt = len(ytkQ) - 1\n while d6pt > -1:\n sZqf = Q6bk(ytkQ[d6pt])\n d6pt = d6pt - 1\n wez6 = wez6 + sZqf\n return wez6", "def zF1v(ytkQ):\n return ''.join([Q6bk(wEf2...
[ "0.7280791", "0.7217825", "0.71686935", "0.714464", "0.71441054", "0.7133661", "0.7126862", "0.70962435", "0.7057027", "0.70201725", "0.6984197", "0.6981382", "0.6969226", "0.69674504", "0.6961107", "0.6894433", "0.689235", "0.68861026", "0.68655175", "0.6863673", "0.6842563"...
0.5983863
98
is_substr return boolean true is find is in data.
def NJad(neBz, nPrm): if len(nPrm) < 1 and len(neBz) < 1: return False for YRbF in range(len(nPrm)): if neBz not in nPrm[YRbF]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NJad(Y0Fj, Pb4f):\n return Y0Fj in Pb4f", "def ug2Q(w1K0, xz9r):\n return w1K0.lower() in xz9r.lower()", "def QJtP():\n pass", "def DiGy(mDk5: str, u1uJ: str) -> bool:\n return u1uJ in mDk5", "def ug2Q(Npeo, vIwR):\n return Npeo in vIwR", "def NJad(j93S, Nqp_):\n return bool(ZbWC.se...
[ "0.7410267", "0.721187", "0.7140346", "0.7039824", "0.6781062", "0.6749968", "0.6721956", "0.65826684", "0.6574389", "0.6526306", "0.65235835", "0.64637125", "0.64429784", "0.6420708", "0.63883543", "0.6364633", "0.6325474", "0.6297935", "0.62922704", "0.6255198", "0.6137914"...
0.8341969
0
Covered area in square degree
def e9TW(YKHO): FNt9 = YKHO._get_event_property_('mw_exclusion') o45M = (oyIN.sin(YKHO.dec_range[1] * RU87) - oyIN.sin(YKHO.dec_range[0] * RU87)) * (YKHO.ra_range[1] - YKHO.ra_range[0]) * RU87 if FNt9 > 0: if YKHO.ra_range == [-180, 180] and YKHO.dec_range == [-90, 90]: o45M -= 4 * oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FmDM(HEZd):\n return HEZd ** 2", "def FmDM(HEZd):\n return HEZd * HEZd", "def f0tD(YKHO):\n return YKHO.sl ** 2", "def f0tD(YKHO):\n return epAf.sqrt(3) / 4 * YKHO.sl ** 2", "def FmDM(jzdc):\n return UEQj(jzdc, jzdc)", "def f0tD(YKHO):\n return YKHO.h * YKHO.w", "def f0tD(YKHO):\n...
[ "0.7629604", "0.7521273", "0.7477549", "0.74611515", "0.7420482", "0.74195194", "0.739181", "0.7349913", "0.7320926", "0.7304336", "0.7300739", "0.72586817", "0.7243738", "0.72415614", "0.7181577", "0.7164894", "0.71340346", "0.71137017", "0.7113325", "0.708393", "0.70732975"...
0.67733204
91
Get the representation of the element as a tensor product.
def NcYL(YKHO) -> laHg.List[laHg.Tuple[str, laHg.List[spK3], laHg.List[int]]]: if YKHO.variant == 'lobatto': return super().get_tensor_factorisation() from symfem import create_element E8ci = create_element('interval', 'Lagrange', YKHO.order) if YKHO.order == 0: IuXB = [0] elif YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TcPZ(YKHO) -> AzJI[ht2j.Tensor, ...]:\n Ylbp = super(z5FZ, YKHO).representation()\n return Ylbp", "def kEeD(WKvO):\n exwG = WKvO.size\n WKvO = WKvO.reshape((exwG, 1))\n return WKvO.dot(WKvO.T).reshape((exwG ** 2,))", "def SZFh(YKHO, LihS):\n if isinstance(LihS, ht2j.Tensor):\n retu...
[ "0.7543403", "0.68951195", "0.68025976", "0.6559965", "0.6504106", "0.6457855", "0.6353623", "0.6346058", "0.6284082", "0.62821096", "0.626198", "0.62309194", "0.6227104", "0.62160254", "0.62098044", "0.6175934", "0.61685175", "0.61676836", "0.6125147", "0.6125147", "0.612514...
0.0
-1
Return the kwargs used to create this element.
def wpLl(YKHO) -> laHg.Dict[str, laHg.Any]: return {'variant': YKHO.variant}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z282(YKHO):\n return {}", "def B2fa(YKHO):\n YSA3 = type(YKHO.__class__.__name__ + 'Kwargs', (U8Lr,), {})()\n for mWFP in aadv(YKHO.__class__).parameters:\n hkS8 = YKHO(YKHO.domain) if mWFP == 'data' else None\n hkS8 = getattr(YKHO, '_' + mWFP, hkS8)\n hkS8 = getattr(hkS8, '__na...
[ "0.74835736", "0.73689127", "0.7240374", "0.7211707", "0.7199767", "0.7117219", "0.7105974", "0.70930004", "0.7007486", "0.7007486", "0.6946407", "0.6941203", "0.69270355", "0.6876089", "0.68340284", "0.6833603", "0.68174535", "0.6796287", "0.67730886", "0.6719936", "0.669189...
0.5981764
65
Return the kwargs used to create this element.
def wpLl(YKHO) -> laHg.Dict[str, laHg.Any]: return {'variant': YKHO.variant}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z282(YKHO):\n return {}", "def B2fa(YKHO):\n YSA3 = type(YKHO.__class__.__name__ + 'Kwargs', (U8Lr,), {})()\n for mWFP in aadv(YKHO.__class__).parameters:\n hkS8 = YKHO(YKHO.domain) if mWFP == 'data' else None\n hkS8 = getattr(YKHO, '_' + mWFP, hkS8)\n hkS8 = getattr(hkS8, '__na...
[ "0.74835736", "0.73689127", "0.7240374", "0.7211707", "0.7199767", "0.7117219", "0.7105974", "0.70930004", "0.7007486", "0.7007486", "0.6946407", "0.6941203", "0.69270355", "0.6876089", "0.68340284", "0.6833603", "0.68174535", "0.6796287", "0.67730886", "0.6719936", "0.669189...
0.5981764
70
Return the kwargs used to create this element.
def wpLl(YKHO) -> laHg.Dict[str, laHg.Any]: return {'variant': YKHO.variant}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z282(YKHO):\n return {}", "def B2fa(YKHO):\n YSA3 = type(YKHO.__class__.__name__ + 'Kwargs', (U8Lr,), {})()\n for mWFP in aadv(YKHO.__class__).parameters:\n hkS8 = YKHO(YKHO.domain) if mWFP == 'data' else None\n hkS8 = getattr(YKHO, '_' + mWFP, hkS8)\n hkS8 = getattr(hkS8, '__na...
[ "0.74835736", "0.73689127", "0.7240374", "0.7211707", "0.7199767", "0.7117219", "0.7105974", "0.70930004", "0.7007486", "0.7007486", "0.6946407", "0.6941203", "0.69270355", "0.6876089", "0.68340284", "0.6833603", "0.68174535", "0.6796287", "0.67730886", "0.6719936", "0.669189...
0.5981764
68
Return the kwargs used to create this element.
def wpLl(YKHO) -> laHg.Dict[str, laHg.Any]: return {'variant': YKHO.variant}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z282(YKHO):\n return {}", "def B2fa(YKHO):\n YSA3 = type(YKHO.__class__.__name__ + 'Kwargs', (U8Lr,), {})()\n for mWFP in aadv(YKHO.__class__).parameters:\n hkS8 = YKHO(YKHO.domain) if mWFP == 'data' else None\n hkS8 = getattr(YKHO, '_' + mWFP, hkS8)\n hkS8 = getattr(hkS8, '__na...
[ "0.74835736", "0.73689127", "0.7240374", "0.7211707", "0.7199767", "0.7117219", "0.7105974", "0.70930004", "0.7007486", "0.7007486", "0.6946407", "0.6941203", "0.69270355", "0.6876089", "0.68340284", "0.6833603", "0.68174535", "0.6796287", "0.67730886", "0.6719936", "0.669189...
0.5981764
69
Computes the prior on the eigen values of the model Gaussain distr.
def ouhn(G5cP, DC_y): f2rf = DC_y / (G5cP ** 2 + DC_y ** 2) return f2rf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D0bW(YKHO, C3ST):\n nTVp = C3ST.parameters['rank'][0] * YKHO.hyperparams['rPsi0']\n b8dC = D0kE.singular_inverse_wishart_density(C3ST.parameters['val'], C3ST.parameters['vec'], nTVp)\n UxzD = C3ST.complete_basis()\n bknH = YKHO.hyperparams['alpha']\n xa56 = C3ST.transition_covariance() + bknH * ...
[ "0.64324147", "0.6274014", "0.6244307", "0.6174358", "0.6138732", "0.61195374", "0.6099533", "0.6098319", "0.60844624", "0.60529405", "0.59935933", "0.59886765", "0.5954221", "0.59376013", "0.5931982", "0.592203", "0.5920123", "0.5917728", "0.5915849", "0.5910957", "0.5906319...
0.698165
0
Convert sparse matrix to tuple representation.
def nPep(On0F): def EV8W(RsfQ): if not H4yH.isspmatrix_coo(RsfQ): RsfQ = RsfQ.tocoo() jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose() hkxX = RsfQ.data ROpF = RsfQ.shape return (jNOo, hkxX, ROpF) if isinstance(On0F, list): for YRbF in range(len(On...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPep(On0F):\n\n def EV8W(RsfQ):\n if not H4yH.isspmatrix_coo(RsfQ):\n RsfQ = RsfQ.tocoo()\n jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()\n hkxX = RsfQ.data\n ROpF = RsfQ.shape\n return (jNOo, hkxX, ROpF)", "def nPep(On0F):\n\n def EV8W(RsfQ):\n ...
[ "0.85558724", "0.82866716", "0.8280783", "0.82525605", "0.82518", "0.82514536", "0.8240027", "0.82272243", "0.82272243", "0.82272243", "0.82272243", "0.82272243", "0.82272243", "0.82272243", "0.8214295", "0.8033074", "0.7863985", "0.77067584", "0.6860769", "0.6853655", "0.665...
0.82645863
3
Evaluates the value of theta given 3D u values at ... points
def UDgP(P6bq, ZvR7): q7In = oLG2.prod(ZvR7, axis=-1) return q7In
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(P6bq):\n Ty9i = P6bq[0]\n q7In = P6bq[1]\n WKvO = P6bq[2]\n LVAh = P6bq[3]\n return oyIN.array([-Oa1e * YUNn(q7In) - NZVw / c6hb * (Oa1e / DxNS ** 2) * Ty9i ** 2, -Oa1e * YhSR(q7In) / Ty9i + Oa1e / DxNS ** 2 * Ty9i, Ty9i * YhSR(q7In), Ty9i * YUNn(q7In)])", "def MxDa(a1PO, LVAh):\n retu...
[ "0.7178971", "0.6748531", "0.6606209", "0.65467775", "0.65357995", "0.6534551", "0.643138", "0.6422715", "0.6334009", "0.6305518", "0.62473935", "0.6238861", "0.6205123", "0.6194848", "0.613819", "0.61327577", "0.6101628", "0.60913146", "0.6051617", "0.60460776", "0.60052305"...
0.7097891
1
Computes the reciprocal part energy
def hSD8(rET2, FlUN, ywwl, tknT): ywwl = ywwl.reshape(1, 1, 3) Ba2u = jZpW(ywwl) xXQH = yUO3(FlUN, Ba2u) r8hN = oLG2.linspace(-2, 2, 5).reshape(5, 1, 1) Rgjl = oLG2.prod(oLG2.sum(pTDa(r8hN + 6 / 2) * oLG2.cos(2 * oLG2.pi * r8hN * Ba2u[oLG2.newaxis] / ywwl), axis=0), axis=1) ** 2 fKNh, AOky, YZni...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UyAv(YKHO):\n SUAR = 0.0\n for YRbF in range(YKHO.data.natom):\n lRYc = YKHO.data.atomcoords[0][YRbF]\n Et9P = YKHO.data.atomnos[YRbF]\n for r845 in range(YRbF + 1, YKHO.data.natom):\n Odq0 = YKHO.data.atomcoords[0][r845]\n Kjd7 = YKHO.data.atomnos[r845]\n ...
[ "0.70495063", "0.68914413", "0.67056936", "0.66558516", "0.6620873", "0.6548467", "0.6541282", "0.6519388", "0.6495832", "0.6480636", "0.6456455", "0.64507055", "0.6411436", "0.64084685", "0.6396054", "0.6386404", "0.63815683", "0.6374218", "0.6370817", "0.63598233", "0.63433...
0.0
-1
Input n>=6, Returns a array of primes, 2 <= p < n
def MskH(exwG): KwQv = XTiz.ones(exwG / 3 + (exwG % 6 == 2), dtype=XTiz.bool) for YRbF in Ni9Y(1, int(exwG ** 0.5) / 3 + 1): if KwQv[YRbF]: G1Hx = 3 * YRbF + 1 | 1 KwQv[G1Hx * G1Hx / 3::2 * G1Hx] = False KwQv[G1Hx * (G1Hx - 2 * (YRbF & 1) + 4) / 3::2 * G1Hx] = False ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DwOa(exwG: int) -> oyIN.ndarray:\n\n def _gRY(xVVI):\n KwQv = oyIN.ones(xVVI // 3 + (xVVI % 6 == 2), dtype=oyIN.bool)\n for YRbF in range(1, int(xVVI ** 0.5) // 3 + 1):\n if KwQv[YRbF]:\n G1Hx = 3 * YRbF + 1 | 1\n KwQv[G1Hx * G1Hx // 3::2 * G1Hx] = Fals...
[ "0.85068774", "0.78898996", "0.7693765", "0.765316", "0.7646418", "0.76284254", "0.75955987", "0.7582821", "0.75613064", "0.7521468", "0.7485784", "0.74604523", "0.7439873", "0.7430176", "0.74256927", "0.742348", "0.7414967", "0.73874503", "0.73717016", "0.7345478", "0.734536...
0.70244646
78
Return whether the given path exists in the folder or not.
def vtfo(YKHO, xtX7, pmON): return YKHO.escalator.exists(u'path:{}:{}'.format(xtX7, pmON))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XstZ(YKHO, pmON: Path) -> bool:\n raise NotImplementedError()", "def vtfo(pmON):\n return bool", "def vtfo(YKHO, pmON):\n return YKHO.isfile(pmON) or YKHO.isdir(pmON)", "def fvpI(YKHO, pmON):\n eEZP = Hy7s.path.isdir(pmON) or (Hy7s.path.isfile(pmON) and Hy7s.access(pmON, Hy7s.R_OK))\n retu...
[ "0.85844296", "0.8450108", "0.8362219", "0.8358716", "0.83507824", "0.827468", "0.82674855", "0.82033634", "0.81868285", "0.8150143", "0.8150143", "0.8150143", "0.81332767", "0.81148964", "0.81083226", "0.81068236", "0.8103975", "0.8088704", "0.80882084", "0.80736315", "0.807...
0.8297189
5
r"""relu(input, inplace=False) > Tensor Applies the rectified linear unit function elementwise. See
def QZir(input: Tensor, LpaZ: bool=False) -> llWB: if LpaZ: Aofo = ht2j.relu_(input) else: Aofo = ht2j.relu(input) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZir(PkJM):\n if PkJM is not None:\n return ZylS.nn.relu(PkJM)\n else:\n return PkJM", "def Bxc4(YKHO):\n EcVT = YKHO._input_nodes[0]._value\n return BfDw.relu(EcVT)", "def t7c5(YKHO, FRUf):\n F9EQ = ZylS.layers.dense(FRUf, 64)\n if YKHO.layer_norm:\n F9EQ = Vq3K.laye...
[ "0.7382967", "0.73675174", "0.73158437", "0.7204412", "0.71158636", "0.70190257", "0.69871753", "0.6914595", "0.69134325", "0.68980575", "0.6884432", "0.68305135", "0.6813491", "0.68034184", "0.6791399", "0.67270577", "0.67233205", "0.67026496", "0.67026496", "0.6675662", "0....
0.8141773
0
r""" Applies a 2D adaptive average pooling over an input signal composed of several input planes.
def Rkb8(input, a6Jb): lfV4 = vCBO(a6Jb, input.size()) return ht2j.adaptive_avg_pool2d(input, lfV4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vDvG(YKHO):\n for TVTK in range(2, 5):\n for Ot1W in range(1, TVTK):\n kyfT = (1, 4, 5, TVTK)\n SppC = YKHO._get_random_test_tensor(size=kyfT, is_float=True)\n FEri = list(range(1, Ot1W + 1)) + [(1, Ot1W)]\n LkVj = range(Ot1W // 2 + 1)\n for _0fC...
[ "0.6991386", "0.68012434", "0.6662239", "0.6344012", "0.6316646", "0.6267549", "0.6261059", "0.62053066", "0.61873907", "0.6181128", "0.6166642", "0.6154818", "0.6132628", "0.61183935", "0.6091689", "0.60610706", "0.60223824", "0.59879285", "0.59810895", "0.59291774", "0.5920...
0.6681428
2
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
34
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
38
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
48
Gets a collection of `InputExample`s for the train set.
def QFHV(YKHO, h_xa): return YKHO.get_train_examples(h_xa)[:20]
{ "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.0
-1
Gets a collection of `InputExample`s for the dev set.
def oGmj(YKHO, h_xa): return YKHO.get_dev_examples(h_xa)[:10]
{ "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.0
-1
Reads a tab separated value file.
def sYUC(Emd4, eZ_W, jaFg=None): with open(eZ_W, 'r', encoding='utf-8') 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.6696843
23
Gets a collection of `InputExample`s for the dev set.
def oGmj(YKHO, h_xa): return YKHO.get_dev_examples(h_xa)[:10]
{ "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.0
-1
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter.
def cfQO(tvqc, QpfX): print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId']) if tvqc['session']['new']: WZhd({'requestId': tvqc['request']['requestId']}, tvqc['session']) if tvqc['request']['type'] == 'LaunchRequest': return sjFK(tvqc['request'], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])...
[ "0.69193256", "0.67620736", "0.6583218", "0.64899534", "0.64568967", "0.6376879", "0.6285988", "0.6270361", "0.6270173", "0.6245475", "0.62184435", "0.6215044", "0.61941713", "0.615263", "0.6143724", "0.61326826", "0.61309654", "0.60515875", "0.6008492", "0.59825087", "0.5935...
0.6179172
13
return something that can be put in front of the static filename E.g. if filename is '/static/image.png' and you return '//cloudfront.com' then final URL presented in the template becomes '//cloudfront.com/static/image.png'
def UcLN(YKHO): return YKHO.application.settings.get('cdn_prefix')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b5Tw(YKHO, Ux0P):\n YKHO.require_setting('static_url')\n return YKHO.application.settings['static_url'] + Ux0P", "def b5Tw(YKHO, Ux0P):\n YKHO.require_setting('static_url')\n return YKHO.application.settings['static_url'] + Ux0P", "def Ux0P(YKHO):\n if YKHO.uri.lower().startswith('file:///')...
[ "0.70033216", "0.70033216", "0.6990664", "0.67367226", "0.6657761", "0.6631887", "0.66091824", "0.6574965", "0.6574965", "0.65705633", "0.64662564", "0.64480865", "0.6427802", "0.6399261", "0.6396562", "0.63683873", "0.6344753", "0.6338644", "0.6327358", "0.62878126", "0.6275...
0.0
-1
Gets the last swd status.
def yLzm(YKHO) -> int: if not YKHO.libraryLoaded: return 0 lCxN = _xS3() YKHO.lib.pe_special_features(CWwB, True, 0, 0, 0, dWW6(lCxN), 0) return lCxN.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CiTd(YKHO):\n return YKHO._status_last", "def VLTN(YKHO):\n return YKHO.last_status", "def NwBR(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_status_update')", "def VLTN(YKHO, BNW8=False):\n return YKHO.last_measurement", "def xAaq(YKHO):\n Mkmy = YKHO._http_client.get('/sessions', [200])\...
[ "0.7516166", "0.74728966", "0.683551", "0.6777457", "0.67593735", "0.6744553", "0.67144746", "0.65602475", "0.65269935", "0.6480496", "0.6480496", "0.6480496", "0.6479522", "0.64563507", "0.6455022", "0.64373535", "0.64119214", "0.6411759", "0.63757485", "0.6358453", "0.63558...
0.82205373
0
get the cvxpy variable associated with this layer
def R0ka(YKHO, ecWO=None): return YKHO.layer_input
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0ka(YKHO, ecWO=1):\n return YKHO.layer_input", "def FLAV(YKHO, WKvO):\n WKvO = iQnE(WKvO)\n return WKvO.cuda() if YKHO.cuda else WKvO", "def LeTJ(WKvO):\n if ds3w:\n return WKvO.cuda()\n return WKvO", "def LeTJ(WKvO):\n if ds3w:\n return WKvO.cuda()\n return WKvO", "...
[ "0.8484366", "0.69061524", "0.6601873", "0.6601873", "0.6323482", "0.6223279", "0.6143274", "0.6110711", "0.6093992", "0.6045421", "0.604042", "0.60328585", "0.6032165", "0.600482", "0.59580827", "0.595616", "0.5950417", "0.5924595", "0.59219897", "0.59216344", "0.590004", ...
0.84660804
1
returns the critical neurons decision variable used by the solver
def OuRL(YKHO, ecWO=None): if not YKHO.compute_critical_neurons: return None return U7YL.vstack([U7YL.reshape(YKHO.neuron_importance, (1, YKHO.neuron_importance.shape[0])) for bGrB in range(YKHO.batch_size)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MjJB(C3ST):\n return C3ST.cvar - C3ST.u + 1.0 / (1.0 - C3ST.alpha) * C3ST.nu == 0", "def vTmX(YKHO):\n return YKHO._critical", "def b0KN(YKHO):\n return RWcI(YKHO._cbstruct, jbwd, j_HN)", "def lJYA(YKHO):\n return YKHO.parcov", "def ki4S(YKHO):\n return Ty8a.Constraint(cube_func=lambda Z...
[ "0.6364398", "0.60086095", "0.5926042", "0.57977843", "0.5795297", "0.57800084", "0.5736191", "0.57296604", "0.5692255", "0.56536376", "0.56021494", "0.55852526", "0.55852526", "0.55348724", "0.55306435", "0.5528438", "0.55270654", "0.55108184", "0.5503091", "0.5492027", "0.5...
0.5468156
21
compute the number of pruned parameters for this layer
def Yycw(YKHO, oJC_): return YKHO.pytorch_layer.get_sparsified_param_size(oJC_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UPE6(YKHO):\n return YKHO.num_reduced_param", "def uecS(YKHO):\n return sum((xqoZ.numel() for xqoZ in YKHO.parameters() if not xqoZ.requires_grad))", "def ca6I(YKHO):\n return eQ5t(YKHO.model)", "def gi2P(YKHO):\n return 0", "def gi2P(YKHO, fBI9=False):\n if fBI9:\n return YKHO._p...
[ "0.7186065", "0.6977928", "0.68993026", "0.6856693", "0.68503016", "0.6786386", "0.6786386", "0.6759441", "0.6729305", "0.6723713", "0.6687186", "0.66619223", "0.66619223", "0.66445684", "0.66445434", "0.66424793", "0.66254026", "0.66149616", "0.661204", "0.6590873", "0.65858...
0.0
-1
returns the bounds asssociated with input to this layer
def pmnP(YKHO, ecWO=None): A2Fp = YKHO.upper_bound IDsK = YKHO.lower_bound return (A2Fp, IDsK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7zS(YKHO):\n return YKHO.GetMapper().GetInput().GetBounds()", "def X7zS(YKHO):\n return ROpF(YKHO).bounds", "def X7zS(YKHO):\n return YKHO.kernel.bounds", "def X7zS(YKHO):\n return YKHO.kernel.bounds", "def X7zS(YKHO):\n return YKHO.kernel.bounds", "def X7zS(YKHO):\n raise NotImple...
[ "0.85341644", "0.82134426", "0.8184276", "0.8184276", "0.8184276", "0.8177503", "0.8156933", "0.80259216", "0.8016357", "0.7980872", "0.79683894", "0.79683894", "0.792637", "0.7925941", "0.7895804", "0.78871447", "0.78871447", "0.78871447", "0.78871447", "0.78871447", "0.7887...
0.7084765
64
Convert a hexadecimal digit from 09 / af to ap.
def hYhs(Npgh): if Npgh >= '0' and Npgh <= '9': return chr(ord(Npgh) - ord('0') + ord('a')) else: return chr(ord(Npgh) + 10)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slTG(Z9rn: str) -> str:\n if Z9rn == 'A':\n return '10'\n elif Z9rn == 'B':\n return '11'\n elif Z9rn == 'C':\n return '12'\n elif Z9rn == 'D':\n return '13'\n elif Z9rn == 'E':\n return '14'\n elif Z9rn == 'F':\n return '15'\n else:\n retur...
[ "0.5912377", "0.5845588", "0.58119005", "0.5777058", "0.567011", "0.5656289", "0.56433517", "0.5634775", "0.5625944", "0.5572886", "0.5564247", "0.5543102", "0.5541", "0.55360025", "0.54867023", "0.54785025", "0.54785025", "0.5419971", "0.54092634", "0.5402852", "0.5392132", ...
0.6776931
0
Update the hyperparameters of the learning rule. Run at the beginning of each epoch.
def j55Z(YKHO, nyme, rzOA): nyme.learning_rate = YKHO.learning_rate
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j55Z(YKHO, nyme, rzOA):\n nyme.learning_rate = YKHO.learning_rate", "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_...
[ "0.7599903", "0.750199", "0.750199", "0.7489546", "0.74811965", "0.73038435", "0.71619976", "0.70820993", "0.7012544", "0.7005822", "0.6991911", "0.69742197", "0.691871", "0.69154847", "0.6880904", "0.68058515", "0.67868024", "0.67723423", "0.6753315", "0.6749334", "0.6741813...
0.7419886
5
Prelayer norm selfattention (see `MultiHeadAttention` and for attention details).
def FIMM(YKHO, hC9O: int, Qi3c: int, hrUq: Optional[int]=None, R9_j: Optional[int]=None, UTMV: Optional[int]=None, ab5z: bool=False, hr1G: float=0.0, kPr8: bool=True, rVoo: bool=True): super().__init__() YKHO.norm = U78l.LayerNorm(Qi3c) YKHO.attention = vKQ5(num_heads=hC9O, num_q_input_channels=Qi3c, num_kv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO) -> None:\n if YKHO.norm is not None:\n yIVc = YKHO.w.abs().sum(0).unsqueeze(0)\n yIVc[yIVc == 0] = 1.0\n YKHO.w *= YKHO.norm / yIVc", "def IQc0(rD8m, CJGY=None):\n return WC0m.layer_norm(rD8m, scope='LayerNorm', reuse=CJGY)", "def Qxjt(YKHO):\n YKHO.norm0 = epAf.sqr...
[ "0.6382626", "0.6320297", "0.5965682", "0.5881669", "0.585116", "0.5823301", "0.58172244", "0.58062345", "0.58048403", "0.57953864", "0.57867765", "0.5773812", "0.572527", "0.57063913", "0.56995744", "0.56871974", "0.56722057", "0.56639653", "0.5661334", "0.5646028", "0.56410...
0.0
-1
Prelayernorm selfattention of input `x`.
def KVH6(YKHO, WKvO: torch.Tensor, b7De: Optional[torch.Tensor]=None, KJwp: Optional[RotaryPositionEmbedding]=None, GZif: Optional[KVCache]=None): WKvO = YKHO.norm(WKvO) return YKHO.attention(WKvO, WKvO, pad_mask=b7De, rot_pos_emb_q=KJwp, rot_pos_emb_k=KJwp, kv_cache=GZif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO, YpkZ):\n Ylbp = YKHO._residual(WKvO)\n oeNL = ZMeU.image_positional_encoding(YpkZ.shape).to(Ylbp.device)\n Fw3A = YKHO._attention(ht2j.cat((oeNL, Ylbp), dim=1), YpkZ)\n Ylbp, Fw3A = (E_uS(YKHO._residual_out, Ylbp), E_uS(YKHO._attention_out, Fw3A))\n return E_uS(YKHO._out, Ylbp +...
[ "0.6489864", "0.6425902", "0.6388751", "0.6277016", "0.619977", "0.6194488", "0.61839104", "0.6183164", "0.61552185", "0.61508465", "0.6137921", "0.6084462", "0.6002309", "0.59972423", "0.5968593", "0.59658843", "0.5953143", "0.59426755", "0.59229213", "0.5922918", "0.5894741...
0.61707884
8
Load .json file and create json object
def lc9H(YKHO, **B2fa): if not Hy7s.path.isfile(YKHO.json_filepath): G9jH.error('{} is not exist'.format(YKHO.json_filepath)) raise FileNotFoundError('{} is not exist'.format(YKHO.json_filepath)) else: YKHO.coco = EvLI(YKHO.json_filepath) with open(YKHO.json_filepath) as hOYR: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc9H():\n pass", "def PSj2(Ux0P):\n with open(Ux0P) as eHNT:\n return _PkU(eHNT)", "def _U0y(bTj3):\n wM3v = open(bTj3, 'r')\n YGFP = qQXR.load(wM3v)\n wM3v.close()\n return YGFP", "def EBvf(Ux0P):\n with open(Ux0P, encoding='utf-8') as Vf_1:\n zFiD = Vf_1.readline()\n ...
[ "0.77009195", "0.7642422", "0.75928384", "0.75891596", "0.7582472", "0.7573259", "0.75182897", "0.7505388", "0.75017476", "0.750098", "0.74773014", "0.74735695", "0.7454026", "0.7438539", "0.7428405", "0.7419527", "0.7418727", "0.74083775", "0.7407969", "0.7398446", "0.738922...
0.75167257
7
Plot coco image in .json file. Default image source from images['coco_url']
def HVvV(YKHO, OxP8, **B2fa): PwKa = aKoZ(B2fa, 'show_mask', True) UCbj = aKoZ(B2fa, 'display_cat', False) for jNMD in OxP8: try: VXjJ = uH60.imread(jNMD['coco_url']) except: VXjJ = uH60.imread(jNMD['file_name']) QrM1.imshow(VXjJ) QrM1.axis('off') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rzaM(qaEx: str):\n dixj = None\n with open(qaEx, 'r') as eHNT:\n dixj = qQXR.load(eHNT)\n cU0b = qaEx.split('_results')[0]\n eviw(cU0b, exist_ok=True)\n hcoS = {}\n for G1Hx in dixj:\n BpxZ = G1Hx['image_paths']\n Dvds = {}\n JII9 = oyIN.array(G1Hx['preds']).squeez...
[ "0.6412714", "0.62406754", "0.6190764", "0.6125618", "0.6011193", "0.5905736", "0.5838066", "0.5834536", "0.5704998", "0.5678875", "0.56680137", "0.5663596", "0.5654396", "0.5654396", "0.5638357", "0.56301415", "0.5604328", "0.56021345", "0.55921847", "0.5591303", "0.55773544...
0.6163131
3
This will allow Django admin to return the title instead of the "Post object" string
def zAg0(YKHO): return YKHO.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '%s --- %s' % (YKHO.post.title, YKHO.name)", "def oaJ2(YKHO):\n return YKHO.title", "def bmji(YKHO) -> str:\n return YKHO._post_title", "def zAg0(YKHO):\n return '{0} ({1})'.format(YKHO.id, YKHO.post.title)", "def n_xb(YKHO):\n if hasattr(YKHO, 'title'):\n ret...
[ "0.75048816", "0.74649686", "0.73620844", "0.72429043", "0.6996533", "0.69284683", "0.69284683", "0.69284683", "0.69284683", "0.69284683", "0.6924384", "0.6887106", "0.6887106", "0.6887106", "0.6887106", "0.6887106", "0.6887106", "0.6887106", "0.68863815", "0.68863815", "0.68...
0.667638
63
This will allow Django admin to return the title instead of the "Post object" string
def zAg0(YKHO): return YKHO.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '%s --- %s' % (YKHO.post.title, YKHO.name)", "def oaJ2(YKHO):\n return YKHO.title", "def bmji(YKHO) -> str:\n return YKHO._post_title", "def zAg0(YKHO):\n return '{0} ({1})'.format(YKHO.id, YKHO.post.title)", "def n_xb(YKHO):\n if hasattr(YKHO, 'title'):\n ret...
[ "0.7505795", "0.74654925", "0.7362286", "0.72441936", "0.6997818", "0.6929497", "0.6929497", "0.6929497", "0.6929497", "0.6929497", "0.6925151", "0.6888077", "0.6888077", "0.6888023", "0.6888023", "0.6888023", "0.6888023", "0.6888023", "0.6888023", "0.6888023", "0.6869095", ...
0.667786
65
Return list of categoreis
def rNmM(): return qZuN.objects.all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQuW(YKHO):\n pass", "def NMoC(YKHO):\n return LeZt", "def LQuW(YKHO):\n LeZt = ''\n for YRbF in YKHO.category.all():\n LeZt += YRbF.name + ' '\n return LeZt", "def zG33(YKHO):\n return YKHO.categoryList", "def LeZt(YKHO):\n return YKHO._data['categories']", "def ojta(YKHO...
[ "0.8041627", "0.7919446", "0.78495187", "0.7823837", "0.7820649", "0.7809048", "0.7769534", "0.77592003", "0.7709944", "0.77076757", "0.77071255", "0.7686547", "0.76590496", "0.7657703", "0.765194", "0.765194", "0.7647966", "0.7629486", "0.75754046", "0.75598794", "0.7544966"...
0.7608732
18
Weighted sum of all loss functions. Tracks values in Recorder.
def KVH6(YKHO, DZoO, mlfb: Tensor, n7Md: Optional[Learner]=None, yFnm: Optional[Recorder]=None, qHDB: bool=True, LeZt: bool=False, Ms9w: bool=False, **B2fa) -> llWB: if qHDB: nc2P = YKHO.loss_funcs else: nc2P = YKHO.unweighted_funcs IKr1 = ht2j.is_grad_enabled() if n7Md is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cODk(YKHO, N77f):\n _mSQ = YKHO.task_scheduler.get_weights()\n return sum((_mSQ.get(G1Hx, 1) * N77f[G1Hx] for G1Hx in N77f))", "def OUO7(YKHO):\n return sum(map(lambda Z9rn: Z9rn.frm.activation * Z9rn.w, YKHO.inputs))", "def r8o1(YKHO):\n return oyIN.sum(YKHO.weights)", "def pD6w(YKHO, n7Md):...
[ "0.6849902", "0.6815565", "0.6701778", "0.6615354", "0.6614746", "0.6508477", "0.65058416", "0.64706844", "0.64342105", "0.6429832", "0.63939637", "0.6387764", "0.6373481", "0.6370209", "0.63612086", "0.63612086", "0.63565063", "0.6325424", "0.6321045", "0.6318089", "0.631100...
0.0
-1
Get categories id map
def DpjE(YKHO, QePW) -> dict: LbbW = IKBB.CategoriesApi(YKHO.get_api_client_by_request(QePW, no_auth=True)) LeZt = YKHO.get_paging_results(LbbW.v2_categories_list) return {WKvO['id']: WKvO for WKvO in LeZt}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i_VK(YKHO):\n ekCf = kBPZ.get_project_id(YKHO)\n WPdU = kBPZ.get_category_list(YKHO, ekCf)[0]['data']\n hh_i = len(WPdU)\n ioZ_ = {WPdU[YRbF]['name']: WPdU[YRbF]['id'] for YRbF in range(hh_i)}\n return ioZ_", "def WSmc(YKHO):\n cyLU = qZuN.objects.valid_map_category_ids()\n for Ghho in Y...
[ "0.78598523", "0.779097", "0.76743495", "0.7554662", "0.7226048", "0.7152079", "0.7112181", "0.7107574", "0.7074338", "0.7074338", "0.7074338", "0.6989562", "0.69619936", "0.6769073", "0.67491", "0.6695953", "0.6686161", "0.6658786", "0.6651294", "0.66126233", "0.6585724", ...
0.76875997
2
Quicksort (sometimes called partitionexchange sort) is an efficient sorting algorithm. Developed by Tony Hoare in 1959. It is still a commonly used algorithm for sorting. When implemented well, it can be about two or three times faster than its main competitors, merge sort and heapsort.
def lguw(YKHO): tuKI.shuffle(YKHO.id) YKHO.quick(0, len(YKHO.id) - 1) return YKHO.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vk7q(ezWE, gqRb, ODP9):\n if gqRb < ODP9:\n mM0K = Qrt_(ezWE, gqRb, ODP9)\n vk7q(ezWE, gqRb, mM0K - 1)\n vk7q(ezWE, mM0K + 1, ODP9)", "def vdyO(ezWE):\n return CnOE(ezWE, 0, len(ezWE))", "def lguw(nPrm):\n u54L = len(nPrm)\n return d7og(nPrm, 0, u54L - 1)", "def lguw(ezWE...
[ "0.7954581", "0.7895908", "0.78535825", "0.78235215", "0.7815808", "0.7811162", "0.7775849", "0.7762365", "0.7752715", "0.77143896", "0.7673986", "0.7651354", "0.76446503", "0.76259005", "0.76230043", "0.7619743", "0.7606987", "0.7598259", "0.7575735", "0.757326", "0.7566767"...
0.0
-1
Main route, entry point for react.
def b8V_(na_E=['GET']): return WsL5.render_template('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Okfw():\n print(nNXP.static_folder)\n return cs4A(nNXP.static_folder, 'index.html')", "def vFXl(pmON):\n return TvZl('index.html')", "def b8V_():\n return WsL5.render_template('index.html')", "def Ev1b():\n bo34.info('At main app page.')\n return TvZl('index.html')", "def sK7F():\n ...
[ "0.6913469", "0.6677239", "0.6608595", "0.656304", "0.6542682", "0.6481411", "0.6447639", "0.64443207", "0.6372533", "0.6372533", "0.63530874", "0.63348854", "0.63087094", "0.6279102", "0.62548333", "0.62534535", "0.6251202", "0.62252784", "0.6224288", "0.6224288", "0.6207971...
0.6319507
12
An Option callback to parse bool flags that recognizes the no negation prefix.
def qjWj(YKHO, MTKo, apAw, bGrB, wvEv): setattr(wvEv.values, MTKo.dest, not apAw.startswith('--no'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def scc9(d7pR):\n m0gQ = ['no', '0', 'false', 'n', '', False]\n wBLD = ['yes', 'true', '1', 'y', True]\n if d7pR.lower() in m0gQ:\n return False\n elif d7pR.lower() in wBLD:\n return True\n else:\n wvEv.error(f'Valid choices for true/false flags: {m0gQ + wBLD}')", "def SnyV(YK...
[ "0.6823281", "0.6599143", "0.6494428", "0.6491478", "0.6489302", "0.637369", "0.6337959", "0.62557375", "0.62555367", "0.624503", "0.62193185", "0.6187852", "0.61290014", "0.6116029", "0.61139464", "0.60974616", "0.5990385", "0.5969869", "0.59653693", "0.59245074", "0.5924507...
0.68132657
1
Gets the type of this SDRanker. Required property to deserialize the JSON string correctly
def type(YKHO): return YKHO._type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO):\n geh0 = G4JS.get(YKHO.get_url())\n return geh0.json().get('type')", "def dit8(YKHO):\n return YKHO.json['type']", "def type(YKHO):\n return YKHO.data['type'] if 'type' in YKHO.data else None", "def type(YKHO):\n return YKHO.__data__.get('type')", "def type(YKHO):\n return...
[ "0.69397485", "0.6906985", "0.6890563", "0.6857256", "0.67752653", "0.6774477", "0.67354983", "0.6703394", "0.650822", "0.6444086", "0.6444086", "0.6444086", "0.6443465", "0.6443465", "0.64064085", "0.6396177", "0.6387341", "0.63767713", "0.63767713", "0.63767713", "0.6356024...
0.61828744
70
Sets the configs of this SDRanker. Settings to split the source dataset into training, validation, and test sets
def b32v(YKHO, b32v): YKHO._configs = b32v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr():\n Ep8u = 1\n RYsB = {'test': {'class': 'ExamDataLoader', 'args': {'batch_size': Ep8u, 'num_workers': 8, 'shuffle': True}}}", "def GPtr():\n Ep8u = 1\n RYsB = {'train': {'class_name': 'ExamDataLoader', 'args': {'batch_size': Ep8u, 'num_workers': 8, 'shuffle': False, 'sampler': 'RandomSampl...
[ "0.6809742", "0.6800411", "0.65781385", "0.6194684", "0.61842173", "0.61004436", "0.6087417", "0.597748", "0.5968238", "0.59303975", "0.59199476", "0.59010977", "0.5889001", "0.58656895", "0.5863368", "0.58627284", "0.58318603", "0.5829036", "0.5802635", "0.5791137", "0.57807...
0.57798433
21
Gets the description of this SDRanker. Description of the ranker
def JBZA(YKHO): return YKHO._description
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g0_7(YKHO):\n return YKHO.desc", "def g0_7(YKHO):\n return YKHO.desc", "def g0_7(YKHO):\n return YKHO.desc", "def t5do(YKHO):\n return YKHO.__description", "def t5do(YKHO):\n return YKHO.__description", "def aI8p(YKHO):\n QoB4 = f'*** {YKHO.name} ***\\n'\n QoB4 += f'Country: {YKH...
[ "0.7072536", "0.7072536", "0.7072536", "0.7051445", "0.7051445", "0.70075047", "0.7005116", "0.699303", "0.69886345", "0.69886345", "0.69886345", "0.69886345", "0.69886345", "0.69886345", "0.69886345", "0.69886345", "0.69886345", "0.6942088", "0.6942088", "0.6942088", "0.6942...
0.0
-1
Gets the correct_answer_field of this SDRanker. Name of the field that contains information to detect truly similar documents
def _jD_(YKHO): return YKHO._correct_answer_field
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FdbX(YKHO):\n return YKHO._correct_answer_field_type", "def _jD_(YKHO, _jD_):\n if _jD_ is None:\n raise ValueError('Invalid value for `correct_answer_field`, must not be `None`')\n YKHO._correct_answer_field = _jD_", "def mFfZ(YKHO, bAls):\n N5Pj = YKHO.main_connection.cursor()\n N5P...
[ "0.6558726", "0.6226888", "0.62263536", "0.61276174", "0.58707327", "0.5853726", "0.5844746", "0.57963437", "0.5694227", "0.56787026", "0.5631288", "0.5577913", "0.552462", "0.5497107", "0.54887915", "0.5484844", "0.5468583", "0.54228574", "0.5363056", "0.5339073", "0.5298102...
0.7994421
0
Sets the correct_answer_field of this SDRanker. Name of the field that contains information to detect truly similar documents
def _jD_(YKHO, _jD_): if _jD_ is None: raise ValueError('Invalid value for `correct_answer_field`, must not be `None`') YKHO._correct_answer_field = _jD_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jD_(YKHO):\n return YKHO._correct_answer_field", "def Ym_v(YKHO, Goi2: str, LTIa: int):\n YKHO.is_correct = YKHO.response in Goi2\n YKHO.score = YKHO.is_correct * LTIa", "def Qghe(YKHO, bAls, CBIr, gXXc):\n pass", "def FdbX(YKHO, FdbX):\n if FdbX is None:\n raise ValueError('Invali...
[ "0.71631587", "0.6593513", "0.6522164", "0.6267", "0.6258354", "0.6089681", "0.59720534", "0.5852448", "0.58506376", "0.5808148", "0.57565135", "0.5749997", "0.57062846", "0.5640521", "0.5622458", "0.5595167", "0.5590169", "0.558655", "0.5567843", "0.55659986", "0.55620325", ...
0.77959
0
Gets the id of this SDRanker. ID
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO.id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n return YKHO._id", "def unpH(YKHO):\n retu...
[ "0.8035592", "0.8035592", "0.8035592", "0.8035592", "0.80210036", "0.80210036", "0.80210036", "0.80210036", "0.80210036", "0.80210036", "0.80210036", "0.80210036", "0.80210036", "0.80210036", "0.8013869", "0.80083704", "0.80083704", "0.80083704", "0.8004325", "0.8004325", "0....
0.0
-1
Gets the models of this SDRanker. Ranker models
def FYrf(YKHO): return YKHO._models
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ArHU(YKHO):\n if YKHO.is_fitted:\n return YKHO.models\n else:\n return None", "def FYrf(YKHO):\n return YKHO.data", "def FYrf(YKHO):\n return YKHO._models", "def FYrf(YKHO) -> x1iM[ht2j.nn.Module]:\n return YKHO._models", "def ArHU(YKHO) -> list:\n return YKHO.messenger....
[ "0.7337019", "0.72790444", "0.7267108", "0.7215766", "0.7100203", "0.7087539", "0.7061329", "0.7044764", "0.6966748", "0.6721623", "0.6656124", "0.66232383", "0.66110915", "0.6484911", "0.6401943", "0.6375868", "0.6321625", "0.63125247", "0.62853146", "0.6273059", "0.6242948"...
0.73369515
1
Gets the name of this SDRanker. Name
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(...
[ "0.83206666", "0.8316946", "0.8316946", "0.8316946", "0.8316946", "0.8316946", "0.8316946", "0.8309701", "0.8309701", "0.8309701", "0.8309701", "0.8309701", "0.8291427", "0.8291427", "0.8291427", "0.8291427", "0.8274243", "0.8231935", "0.8231935", "0.82250744", "0.82250744", ...
0.0
-1
Gets the source_dataset_id of this SDRanker. ID of the source dataset
def Nwxp(YKHO): return YKHO._source_dataset_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uMO2(YKHO) -> str:\n return qe4Y.get(YKHO, 'data_source_id')", "def uMO2(YKHO) -> str:\n return YKHO._data_source_id", "def uMO2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'data_source_id')", "def uMO2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'data_source_id')", "def uMO2(...
[ "0.79393524", "0.78602856", "0.7813656", "0.7813656", "0.77047503", "0.7560613", "0.75393516", "0.7522661", "0.747149", "0.7358457", "0.7307041", "0.72696143", "0.72544855", "0.71692836", "0.71692836", "0.70827687", "0.70578873", "0.70517755", "0.69223315", "0.68940336", "0.6...
0.9177458
0
Gets the tags of this SDRanker. (Used by system)
def dJ1p(YKHO): return YKHO._tags
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qwli(YKHO):\n return YKHO.list", "def Qwli(YKHO):\n return YKHO._tags", "def Qwli(YKHO):\n return YKHO._tags", "def Qwli(YKHO):\n return YKHO.listafinal", "def Qwli(YKHO):\n raise NotImplementedError", "def qvDz(YKHO):\n return YKHO.uqsetting.getTagsStats()", "def dJ1p(YKHO):\n ...
[ "0.7805628", "0.7785312", "0.7785312", "0.7700947", "0.7631228", "0.7606554", "0.7592118", "0.75599205", "0.75420684", "0.7514764", "0.7511697", "0.7472444", "0.7467361", "0.74672776", "0.74672776", "0.7445277", "0.74232864", "0.7367952", "0.7355402", "0.7354252", "0.73109365...
0.7503451
11
Returns the string representation of the model
def gTzM(YKHO): return EyO9(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.8043786
74
Forward decoder and attention loss.
def qIvI(YKHO, s9Hp, vk6d, z631, Ep8u): zv6D, rUwU = WOUm(z631, YKHO.sos, YKHO.eos, YKHO.ignore_id) XBjE = Z6T9(zv6D, YKHO.ignore_id) h7jV, cii7 = YKHO.decoder(zv6D, XBjE, s9Hp, vk6d) hgvR = YKHO.criterion(h7jV, rUwU) YAq3 = DWJH(h7jV.view(-1, YKHO.odim), rUwU, ignore_label=YKHO.ignore_id) retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, miyH, Nmec, is7N, lHR0, hOin=3):\n with ht2j.no_grad():\n nPMo = YKHO.add_noise(miyH, mask_token_id=hOin)\n Cwxl = YKHO.encoder(nPMo, is7N)\n v2uf = YKHO.att(Cwxl.transpose(1, 2)).transpose(1, 2)\n o4Jx = YKHO.decoder(Nmec, lHR0, v2uf)\n return o4Jx", "def KVH6(YKHO, input):\...
[ "0.7445118", "0.71924025", "0.7188203", "0.7077856", "0.6936835", "0.6905894", "0.6899923", "0.68336755", "0.6812115", "0.6761811", "0.67063844", "0.66964877", "0.6690227", "0.668143", "0.667922", "0.6666194", "0.6651224", "0.6634629", "0.6626245", "0.6614204", "0.6606285", ...
0.62419754
80
Return the bounding box corner closest to the given point
def egnF(Xf84, vgXP, ztRo): yk4i = Yj_e(Xf84) - vgXP d6pt = yk4i / ztRo mp07 = round(d6pt) return mp07 * ztRo + vgXP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uuNL(YKHO, WKvO):\n WKvO = oyIN.array(WKvO)\n Ty9i = YKHO.p1 - YKHO.p0\n Fg_i = YKHO.p0 - WKvO\n a1PO = -oyIN.dot(Ty9i, Fg_i) / oyIN.dot(Ty9i, Ty9i)\n if 0 <= a1PO <= 1:\n mp07 = a1PO * (YKHO.p1 - YKHO.p0) + YKHO.p0\n return mp07\n elif oyIN.linalg.norm(WKvO - YKHO.p0) < oyIN.li...
[ "0.68111205", "0.6724396", "0.67109144", "0.6617689", "0.6604076", "0.657226", "0.65056956", "0.64709574", "0.6402315", "0.63979805", "0.6327581", "0.6327581", "0.6322349", "0.6321418", "0.6289275", "0.62567776", "0.62231404", "0.622299", "0.622146", "0.6203194", "0.6189547",...
0.0
-1
Wrapper for insert int64 feature into Example proto.
def Oety(BWXx): if not isinstance(BWXx, list): BWXx = [BWXx] return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wgnv(PU1l, BZ2A, kAne):\n PU1l.features.feature[BZ2A].int64_list.value.append(kAne)", "def Oety(BWXx):\n BWXx = int(BWXx)\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))", "def Oety(BWXx):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))", ...
[ "0.6926576", "0.67922944", "0.67844856", "0.67626584", "0.67530155", "0.6742207", "0.6742207", "0.6742207", "0.6729455", "0.67266476", "0.6713535", "0.6713535", "0.6713535", "0.6713535", "0.6713535", "0.6713535", "0.6713535", "0.6713535", "0.6713535", "0.6713535", "0.6713535"...
0.6511718
68
Wrapper for insert bytes features into Example proto.
def NhGy(BWXx): if not isinstance(BWXx, list): BWXx = [BWXx] return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mJtR(PU1l, BZ2A, I3mI):\n PU1l.features.feature[BZ2A].bytes_list.value.append(I3mI)", "def NhGy(BWXx):\n if isinstance(BWXx, oyIN.ndarray):\n BWXx = [BWXx.tobytes()]\n elif isinstance(BWXx, type(ZylS.constant(0))):\n BWXx = [BWXx.numpy().tobytes()]\n elif not isinstance(BWXx, list):...
[ "0.6982698", "0.6640721", "0.6637188", "0.66302884", "0.6617706", "0.6609727", "0.6609727", "0.6609727", "0.6602054", "0.6602054", "0.6596491", "0.6596249", "0.65929246", "0.65917665", "0.6591744", "0.6588086", "0.6588086", "0.6588086", "0.6588086", "0.6587601", "0.65856636",...
0.6540672
58
covert to tfrecord file
def LvEM(aQ1_, NuEi, Gl89=b'RGB', xMux=3, iIhk=b'JPEG'): vyBi = aQ1_['label'] JtnJ = aQ1_.get('bbox', {}) BQGg = JtnJ.get('xmin', []) bYzl = JtnJ.get('xmax', []) h3cg = JtnJ.get('ymin', []) Z3uP = JtnJ.get('ymax', []) PU1l = ZylS.train.Example(features=ZylS.train.Features(feature={'image/col...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EQWy(XPB5):\n O38l = XPB5 + '.proteinnet'\n n80H = XPB5 + '.tfrecord'\n mmYR = 42\n eZ_W = open(O38l, 'r')\n UXEK = ZylS.io.TFRecordWriter(n80H)\n fGC9 = wrQm(eZ_W, mmYR)\n if fGC9 is not None:\n P7qq = KAi0(fGC9).SerializeToString()\n UXEK.write(P7qq)\n else:\n eZ_...
[ "0.7487179", "0.739239", "0.7379291", "0.7210528", "0.71287805", "0.69531417", "0.69515705", "0.6930079", "0.6928468", "0.6782619", "0.67653906", "0.67461765", "0.6729748", "0.6701104", "0.6663133", "0.66596293", "0.66395044", "0.6576692", "0.6570233", "0.6567628", "0.6549579...
0.0
-1
covert to tfrecord file
def dw9D(aQ1_, NuEi): vyBi = aQ1_['label'] cviu = aQ1_['bbox'] Zmw9 = [cviu['xmin'], cviu['ymin'], cviu['xmax'], cviu['ymax']] YaKs = [cviu['x1'], cviu['y1'], cviu['x2'], cviu['y2'], cviu['x3'], cviu['y3'], cviu['x4'], cviu['y4'], cviu['x5'], cviu['y5'], cviu['x6'], cviu['y6'], cviu['x7'], cviu['y7'], c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EQWy(XPB5):\n O38l = XPB5 + '.proteinnet'\n n80H = XPB5 + '.tfrecord'\n mmYR = 42\n eZ_W = open(O38l, 'r')\n UXEK = ZylS.io.TFRecordWriter(n80H)\n fGC9 = wrQm(eZ_W, mmYR)\n if fGC9 is not None:\n P7qq = KAi0(fGC9).SerializeToString()\n UXEK.write(P7qq)\n else:\n eZ_...
[ "0.7487179", "0.739239", "0.7379291", "0.7210528", "0.71287805", "0.69531417", "0.69515705", "0.6930079", "0.6928468", "0.6782619", "0.67653906", "0.67461765", "0.6729748", "0.6701104", "0.6663133", "0.66596293", "0.66395044", "0.6576692", "0.6570233", "0.6567628", "0.6549579...
0.0
-1
Open a new simulated remit order for the given base currency if one is required.
async def _sim_open_remit_order(YKHO, P8oC: str, E6Hw: float, XhVQ: float) -> str: if P8oC == GPtr['trade_base']: return None if not GPtr['sim_enable_balancer']: return None q2Xo = '{}-{}'.format(GPtr['trade_base'], P8oC) _uAt, yM2G = await YKHO._get_sim_adjusted_trade_balances(P8oC, GPt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def _open_remit_order(YKHO, P8oC: str, E6Hw: float, XhVQ: float) -> str:\n if P8oC == GPtr['trade_base']:\n return None\n q2Xo = '{}-{}'.format(GPtr['trade_base'], P8oC)\n NgUc = GPtr['remit_reserved'][P8oC] if P8oC in GPtr['remit_reserved'] else 0.0\n _uAt, yM2G = await YKHO._get_adjusted...
[ "0.6332554", "0.62181157", "0.60392994", "0.57604605", "0.57197565", "0.56643003", "0.5652029", "0.553799", "0.5535818", "0.55286354", "0.55264854", "0.5514547", "0.5502797", "0.54629695", "0.54373354", "0.5417016", "0.5375373", "0.5362478", "0.53520393", "0.53490084", "0.534...
0.6469753
0
Handle the sell order, tracking, update, and registering of an open remit order.
async def _remit_sell_task(YKHO, T4Wy: Dict[str, Any], UXqs: str): zJ7I = await YKHO._balance_methods['remit_submit'](T4Wy) if zJ7I is not None: await YKHO._balance_methods['remit_update'](T4Wy, zJ7I) await YKHO._register_remit_sell(T4Wy, UXqs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXr8(YKHO, tvqc, T4Wy):\n YKHO._l.info(f'order update: {tvqc} = {T4Wy}')\n if tvqc == 'fill':\n YKHO._order = None\n if YKHO._state == 'BUY_SUBMITTED':\n YKHO._position = nNXP.get_position(YKHO._symbol)\n YKHO._state = 'TO_SELL'\n YKHO._submit_sell()\n ...
[ "0.655748", "0.65508306", "0.6472955", "0.64708394", "0.6338666", "0.6302896", "0.6297694", "0.6279156", "0.6232708", "0.6218713", "0.62047094", "0.61686236", "0.6163791", "0.6143345", "0.6115306", "0.6095345", "0.60848135", "0.6083711", "0.6074098", "0.60734165", "0.60490197...
0.58609754
38
The Availability Zone in which to create the volume.
def TUUx(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'availability_zone')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P7hP():\n return oUlR()['placement']['availability-zone']", "def lhKE():\n return gP7g.utils.get_instance_metadata()['placement']['availability-zone']", "def TUUx(YKHO):\n return YKHO._availability_zone", "def TUUx(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'availability_zone')", "d...
[ "0.7771504", "0.75522894", "0.7537278", "0.75289273", "0.75289273", "0.75289273", "0.75289273", "0.7478754", "0.73089606", "0.73089606", "0.73089606", "0.73089606", "0.73089606", "0.73089606", "0.73089606", "0.72232145", "0.69014037", "0.68982965", "0.68102944", "0.6781573", ...
0.74386925
9
The Availability Zone in which to create the volume.
def ebC7(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'auto_enable_io')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P7hP():\n return oUlR()['placement']['availability-zone']", "def lhKE():\n return gP7g.utils.get_instance_metadata()['placement']['availability-zone']", "def TUUx(YKHO):\n return YKHO._availability_zone", "def TUUx(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'availability_zone')", "d...
[ "0.7771504", "0.75522894", "0.7537278", "0.75289273", "0.75289273", "0.75289273", "0.75289273", "0.7478754", "0.74386925", "0.74386925", "0.74386925", "0.74386925", "0.74386925", "0.73089606", "0.73089606", "0.73089606", "0.73089606", "0.73089606", "0.73089606", "0.73089606", ...
0.0
-1
Indicates whether Amazon EBS MultiAttach is enabled.
def yRae(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'multi_attach_enabled')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yRae(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'multi_attach_enabled')", "def yRae(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'multi_attach_enabled')", "def a93y(YKHO):\n return YKHO.volume_lifecycle == O_a5.ATTACHED", "def AdNy(YKHO):\n return YKHO._is_multihea...
[ "0.8106625", "0.8106625", "0.61138844", "0.6062898", "0.6020068", "0.60067827", "0.5928049", "0.5908641", "0.5872777", "0.5837208", "0.5837208", "0.57801336", "0.57464725", "0.56372327", "0.55957526", "0.5570029", "0.55166715", "0.5441504", "0.5339048", "0.5282673", "0.527671...
0.81009644
2