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
Get a random element from the set.
def UIrZ(YKHO) -> int: rx3r = [] YRbF = 0 for H5ew in YKHO.randomSet: rx3r.append(H5ew) return rx3r[tuKI.randint(0, len(rx3r) - 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UIrZ(YKHO):\n return YKHO.nums[tuKI.randint(0, len(YKHO.nums) - 1)]", "def UIrZ(YKHO):\n exwG = len(YKHO.keys)\n while exwG > 0:\n d6pt = tuKI.randint(0, exwG - 1)\n Ufrw = YKHO.keys[d6pt]\n if Ufrw in YKHO.ds:\n return Ufrw\n else:\n YKHO.keys[d6pt]...
[ "0.77060276", "0.738916", "0.7296881", "0.72187954", "0.6871744", "0.68453854", "0.68330806", "0.67740154", "0.67226046", "0.6703282", "0.6665089", "0.66356236", "0.66217655", "0.6612035", "0.66000897", "0.6477719", "0.6462421", "0.64428514", "0.64162946", "0.6400411", "0.639...
0.6567767
15
Distribution parameter for degrees of freedom.
def jQ3Z(YKHO): return YKHO._df
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AA5q(aPd6=5):\n fuBA = -1\n return fuBA", "def InLe(YKHO, d7pR):\n JBMS = -YKHO.sigma ** 2 * YKHO.data['maturity']\n M1Jx = YKHO.sigma * YKHO.data['maturity'] ** 0.5\n return C5PG.norm(JBMS, M1Jx).pdf(d7pR)", "def IZxK(YKHO) -> str:\n return qe4Y.get(YKHO, 'distribution')", "def eVXf(YK...
[ "0.63810205", "0.6326664", "0.6267435", "0.62618715", "0.62111354", "0.610806", "0.6072273", "0.60493493", "0.60234946", "0.5952181", "0.5950211", "0.5950211", "0.5950211", "0.5921676", "0.58585906", "0.585712", "0.58375925", "0.58355093", "0.5829913", "0.58082634", "0.579164...
0.0
-1
Distribution parameter for the mean.
def hksT(YKHO): return YKHO._loc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(YKHO):\n return YKHO.mu", "def JBMS(YKHO):\n return epAf.exp(YKHO.mu + YKHO.sigma ** 2 / 2)", "def JBMS(YKHO, yGTL, WTkW):\n return yGTL", "def JBMS(YKHO):\n return YKHO.k * YKHO.theta", "def wucG(YKHO, k78t):\n if k78t not in YKHO:\n raise eEC0('Parameter not recognized!')\n...
[ "0.71977794", "0.71391386", "0.70165426", "0.68468904", "0.67401975", "0.66964173", "0.66814566", "0.6604788", "0.6565105", "0.65103227", "0.6506856", "0.6498152", "0.6478929", "0.6478929", "0.6465593", "0.6435943", "0.6424655", "0.64239794", "0.64238036", "0.64148766", "0.64...
0.0
-1
Get specified value converted to unicode, or an empty unicode string if value is empty
def brQJ(BWXx, WmM4=u''): try: if isinstance(BWXx, QMSQ): return BWXx return T_Uj.decode(BWXx or WmM4) except Exception: return T_Uj.decode(BWXx or WmM4, 'latin1')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yMgm(BWXx: Union[Text, bytes]) -> I2jr:\n C0mf = v97K.maybe_get_utf8(BWXx)\n if C0mf is None:\n VjqD.inc()\n C0mf = uwaB.NON_UTF8_PLACEHOLDER\n return C0mf", "def brQJ(BWXx):\n if isinstance(BWXx, iHh1):\n return BWXx\n if not isinstance(BWXx, vWp3):\n raise TypeErr...
[ "0.80042136", "0.7663283", "0.7566101", "0.7359141", "0.7303415", "0.7152016", "0.7130961", "0.70460534", "0.70231843", "0.7001165", "0.699813", "0.69924796", "0.6975798", "0.6888258", "0.684779", "0.6768282", "0.6753386", "0.67044854", "0.6696471", "0.6687402", "0.66866773",...
0.7920412
1
Return the default fallback languages.
def aF2s(): f7Dd = tnMW(zJpl) if f7Dd is not None: return f7Dd.getDefaultLanguage() return Cy9R
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y1B7(QePW):\n odyS = []\n STjM = QePW.http_accept_language\n if STjM:\n STjM = STjM.split(',')\n STjM = map(lambda WKvO: WKvO.split(';')[0], STjM)\n for DuqQ in STjM:\n DuqQ = DuqQ.lower()\n odyS.append(DuqQ)\n if '-' in DuqQ:\n gz7d...
[ "0.76859945", "0.75574553", "0.7333305", "0.7115583", "0.6942656", "0.6940457", "0.6920052", "0.6735964", "0.67120034", "0.67000973", "0.66747755", "0.66610384", "0.6605448", "0.6582957", "0.65641093", "0.6546555", "0.6500374", "0.6475481", "0.6472151", "0.6469842", "0.646582...
0.7031646
4
Updates the solution list's statistics with the value of a solution that is being added to the list. Updated stats include (in)feasible solution counts, best/worst feasible values, least/most infeasible values, and best overall value.
def MwSs(YKHO, BWXx): ykvB = YKHO.solver Jydu = ykvB.sense.is_better if isinstance(BWXx, vgHc): YKHO.infeas_count += 1 if BWXx < YKHO.least_infeas_value: YKHO.least_infeas_value = BWXx ykvB.channel.emit(ykvB.SIGNALS.LEAST_INFEAS_VALUE_CHANGED) if BWXx > YKHO.m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X6hz(YKHO, round, rJDt):\n for GERS in rJDt:\n bwa9 = YKHO.fitting_function.fit_score(GERS)\n YKHO.stats[round].append(bwa9)", "def zxRF(YKHO, p1kx):\n YKHO.result_list.append(p1kx)\n if YKHO.best_score == 0 and YKHO.worst_score == 0:\n YKHO.best_score = p1kx\n YKHO.worst...
[ "0.6624786", "0.6156408", "0.60401475", "0.60401475", "0.60401475", "0.60382444", "0.5981996", "0.597241", "0.5878719", "0.5735837", "0.5704448", "0.56947446", "0.55838263", "0.55130595", "0.542672", "0.54244804", "0.5392285", "0.5379083", "0.53789407", "0.5372176", "0.536912...
0.70362824
0
Determines the finale opacity of a specified grid line. This takes multiples of certain numbers, and increases the opacity of those multiples.
def K7PJ(YKHO, G0g2, pSDG=2): wcR3 = [5, 10, 25, 50, 100, 500] BCp6 = YKHO.getGridLineOpacity() if G0g2 == 0.0: ShTw.glLineWidth(2) ShTw.glColor4f(*YKHO.getGridColor(), 1) else: ShTw.glLineWidth(1) for exwG in wcR3: if G0g2 % exwG == 0: BCp6 *=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z4bG(YKHO):\n if YKHO.getGridOpacity() is True:\n di96 = int(YKHO.zoom_factor - YKHO.MIN_ZOOM)\n if di96 < 1:\n di96 = 1\n BCp6 = 1 / di96 * 10\n else:\n BCp6 = 1\n YKHO.setGridLineOpacity(BCp6)", "def BCp6(kTwQ, Kt_s, M2yA, PzV6, KyU2, im04, zFiD='halpha'):\n ...
[ "0.7098987", "0.61423415", "0.5578311", "0.5554532", "0.5522668", "0.5396929", "0.53967553", "0.53138655", "0.52789426", "0.5253761", "0.5221888", "0.5212094", "0.5200629", "0.51944864", "0.5163906", "0.51561683", "0.511422", "0.5110882", "0.51060855", "0.50997293", "0.508492...
0.76920456
0
The community for this node. Returns None unless self.set_community() has been called.
def v7nJ(YKHO): return YKHO._community
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MhUi(yvY1, P6bq, v7nJ):\n PW5R = yvY1.node[P6bq]\n try:\n return PW5R[v7nJ]\n except KeyError:\n raise jHsn.NetworkXAlgorithmError('No community information')", "def EecF(YKHO):\n return YKHO.__extended_community", "def ljj4(YKHO):\n return YKHO.__send_community", "def Glel(Y...
[ "0.69938993", "0.68504274", "0.6677975", "0.65576005", "0.65417063", "0.62879294", "0.62873274", "0.62134475", "0.6176243", "0.565854", "0.5623062", "0.55694973", "0.553731", "0.55226535", "0.5515123", "0.55145246", "0.55023605", "0.54585785", "0.54459023", "0.54385465", "0.5...
0.86861527
0
The WAN address for this node. Will fail unless self.init_socket() has been called.
def HXbV(YKHO): if YKHO._community.dispersy: KcEq = YKHO._community.dispersy.wan_address[0] if KcEq == '0.0.0.0': KcEq = YKHO._community.dispersy.lan_address[0] else: KcEq = '0.0.0.0' bGrB, bIwZ = YKHO._socket.getsockname() return (KcEq, bIwZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HXbV(YKHO):\n return YKHO._wan_address", "def T70F(YKHO):\n return YKHO._network_address", "def Kz4A(YKHO):\n return (YKHO.self_host, YKHO.self_port)", "def cCZa(YKHO):\n bGrB, bIwZ = YKHO._socket.getsockname()\n return ('127.0.0.1', bIwZ)", "def Rlxg(YKHO):\n D8Ke = YKHO.wifi.GetIP()...
[ "0.7809986", "0.65135473", "0.649863", "0.63260865", "0.62937015", "0.62675446", "0.62224704", "0.62057483", "0.6163477", "0.6138168", "0.61111355", "0.6076574", "0.6069721", "0.6065768", "0.604658", "0.6001728", "0.5984032", "0.5983768", "0.59490657", "0.5934639", "0.5932885...
0.7482284
1
Set the community that this node is associated to.
def eLd8(YKHO, v7nJ): assert v7nJ is None or isinstance(v7nJ, icdm), type(v7nJ) YKHO._community = v7nJ if v7nJ: YKHO._dispersy = v7nJ.dispersy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v7nJ(YKHO, v7nJ):\n YKHO._community = v7nJ", "def p_cE(YKHO, p_cE):\n YKHO._community_id = p_cE", "def EKTn(YKHO, EKTn):\n YKHO._community_in = EKTn", "def zbji(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=r...
[ "0.8302331", "0.7426837", "0.70622313", "0.6868737", "0.65124536", "0.62897307", "0.6183971", "0.61546355", "0.6108091", "0.6042516", "0.6023979", "0.5941196", "0.5876051", "0.56637734", "0.5592018", "0.552155", "0.5463198", "0.5459674", "0.54509443", "0.5417424", "0.5335163"...
0.78079134
1
Returns a new RANDOMtext message.
def klF1(YKHO, l5Ny, hVtz): return YKHO._create_text(u'RANDOM-text', l5Ny, hVtz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ab72():\n eZIf = [tuKI.choice('0123456789abcdef') for exwG in range(24)]\n bfre = ''.join(eZIf)\n return bfre", "def K_RV(YKHO):\n if YKHO.text_received in b32v.word_dict:\n return b32v.word_dict[YKHO.text_received]\n else:\n return 'Please send either the word ‘pizza’ or ‘ice cr...
[ "0.678751", "0.6757682", "0.65214", "0.63439924", "0.6240929", "0.62069225", "0.6190879", "0.61755097", "0.614523", "0.6137261", "0.6065536", "0.6054831", "0.6042577", "0.5987816", "0.5922294", "0.58560365", "0.58558655", "0.58347714", "0.5813624", "0.5813417", "0.57946783", ...
0.6928667
0
Check that two Series are not equal.
def mDT0(jzdc, Fg_i, **B2fa): try: YGfs.assert_series_equal(jzdc, Fg_i, **B2fa) tO9_ = "The two Series were equal when they shouldn't have been" trZe.fail(msg=tO9_) except AssertionError: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qh0s(jzdc, Fg_i, **B2fa):\n mDT0(jzdc, Fg_i, **B2fa)\n mDT0(Fg_i, jzdc, **B2fa)", "def InF8(zVOX, pvKa):\n return bool(zVOX._data is pvKa._data and zVOX._collection is pvKa._collection)", "def oRuS(gj2A: Series, h6HL: Series) -> bool:\n AjzU = gj2A.copy().reset_index()\n gu27 = sorted([Z9rn ...
[ "0.80613273", "0.7128852", "0.7008062", "0.69540554", "0.6898849", "0.6897413", "0.6815841", "0.6761505", "0.6760264", "0.6756509", "0.67291415", "0.6701583", "0.66797614", "0.66644853", "0.6601618", "0.65520895", "0.65447575", "0.6537928", "0.65192264", "0.65086645", "0.6502...
0.82509786
0
Check that two Series are not equal. This check is performed commutatively.
def Qh0s(jzdc, Fg_i, **B2fa): mDT0(jzdc, Fg_i, **B2fa) mDT0(Fg_i, jzdc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mDT0(jzdc, Fg_i, **B2fa):\n try:\n YGfs.assert_series_equal(jzdc, Fg_i, **B2fa)\n tO9_ = \"The two Series were equal when they shouldn't have been\"\n trZe.fail(msg=tO9_)\n except AssertionError:\n pass", "def t33R(YKHO):\n BfDw.compare_tracing_methods(pr14('notEqual'), h...
[ "0.8101551", "0.6971119", "0.6883977", "0.6856668", "0.68510216", "0.6818965", "0.6797626", "0.6790186", "0.67584586", "0.675331", "0.6726011", "0.6708548", "0.6682717", "0.6655386", "0.66398513", "0.6632102", "0.6601354", "0.6591405", "0.65535927", "0.6531966", "0.6475051", ...
0.8039944
1
Return all of the possible motifs of size length.
def oFyh(u54L, z1dg='ACGU'): qIxc = [z1dg for YRbF in Ni9Y(u54L)] for cZDQ in Hs6x.product(*qIxc): yield ''.join(cZDQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q3E4(aWuw, M6vu):\n RXmH = list()\n qlHh = len(aWuw) - M6vu + 1\n for YRbF in range(qlHh):\n SOtT = aWuw[YRbF:YRbF + M6vu]\n RXmH.append(SOtT)\n return (RXmH, qlHh)", "def LEbF(u54L):\n hlel = []\n for YRbF in range(u54L):\n hlel.append(qukk(14))\n return hlel", "d...
[ "0.5646241", "0.5580129", "0.55215716", "0.5515646", "0.5515339", "0.54750365", "0.5443068", "0.5432766", "0.5387579", "0.53522474", "0.53376126", "0.53182924", "0.5316148", "0.52977335", "0.5293569", "0.52689373", "0.5247464", "0.52261126", "0.5208818", "0.51837164", "0.5178...
0.7160281
0
Reset database, start app test client, and log in awdeorio. This function runs once before each member function unit test.
def FCbF(YKHO): try: CSE2 = lWrn.Command('./bin/insta485db') CSE2('reset') except lWrn.ErrorReturnCode as error: YKHO.assertTrue(False, 'Failed to run insta485db, output: {}'.format(P1dF.decode('ascii'))) aXdc.app.config['TESTING'] = True YKHO.app = aXdc.app.test_client()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.db_fd, P4t4.app.config['DATABASE'] = gbPf.mkstemp()\n P4t4.app.config['TESTING'] = True\n YKHO.app = P4t4.app.test_client()\n P4t4.init_db()", "def FCbF(YKHO):\n YKHO.db_fd, oCi5.app.config['DATABASE'] = gbPf.mkstemp()\n oCi5.app.config['TESTING'] = True\n YKHO.app = o...
[ "0.7818984", "0.75943387", "0.75648177", "0.7526937", "0.7481241", "0.7449584", "0.74177194", "0.7412913", "0.74097806", "0.7401682", "0.7359561", "0.73464066", "0.7342625", "0.73402137", "0.7321675", "0.729236", "0.72663987", "0.72636324", "0.72483176", "0.7234191", "0.72301...
0.77036494
1
Reset the database. This function runs once after each member function unit test.
def tBIc(YKHO): CSE2 = lWrn.Command('./bin/insta485db') CSE2('reset')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n GwjS()", "def tBIc(YKHO):\n GwjS()", "def tBIc(YKHO):\n GwjS()", "def tBIc(YKHO):\n GwjS()", "def tBIc(YKHO):\n GwjS()", "def tBIc(YKHO):\n GwjS()", "def SiRx():\n GTYX()\n Cc7Y()", "def Bi2V(YKHO):\n YKHO.db.reset_database()", "def IQ2r():\n NCls.dro...
[ "0.79317486", "0.79317486", "0.79317486", "0.79317486", "0.79317486", "0.79317486", "0.79270506", "0.7904695", "0.78010195", "0.7730929", "0.7730929", "0.7730929", "0.7730929", "0.7730929", "0.7730929", "0.7730929", "0.7730929", "0.7730929", "0.76746047", "0.7511693", "0.7482...
0.0
-1
Returns the document's parsed content.
def lRCW(YKHO, wvEv, n294, leAC): from wiki.models import Document try: return Document.objects.get(title=leAC).content_parsed except Document.DoesNotExist: return SzHS('The document "%s" does not exist.') % leAC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EPt3(YKHO):\n return YKHO.content", "def kGys(YKHO):\n if not hasattr(YKHO, '_content'):\n YKHO._content = YKHO.get_content()\n return YKHO._content", "def EPt3(YKHO):\n return YKHO.__response.content", "def EPt3(YKHO):\n geh0 = G4JS.get(YKHO.url)\n Z9JV = rKuS(geh0.text, 'html.p...
[ "0.73801214", "0.731384", "0.7147361", "0.71433896", "0.70942706", "0.70861536", "0.70861536", "0.70861536", "0.70861536", "0.6999968", "0.6998964", "0.6994689", "0.69811726", "0.69654447", "0.689824", "0.6875266", "0.68702036", "0.6808418", "0.68015116", "0.67447937", "0.671...
0.0
-1
This method creates a Chebyshev2Filter object. Notes
def DQEH(YKHO, mWFP: str, vFqT: float, sqaj: float=0, T4Wy: int=2, oPhP: SymbolicConstant=pire, djtV: Boolean=nGxz, qoqK: float=None, QMS2: SymbolicConstant=pire) -> DQEH: YKHO.filters[mWFP] = F2iF = DQEH(mWFP, vFqT, sqaj, T4Wy, oPhP, djtV, qoqK, QMS2) return F2iF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VTTy(YKHO, mWFP: str, vFqT: float, sqaj: float=0, T4Wy: int=2, oPhP: SymbolicConstant=pire, djtV: Boolean=nGxz, qoqK: float=None, QMS2: SymbolicConstant=pire) -> VTTy:\n YKHO.filters[mWFP] = GN1B = VTTy(mWFP, vFqT, sqaj, T4Wy, oPhP, djtV, qoqK, QMS2)\n return GN1B", "def oW_4(*qIxc, **PECO):\n YEnM ...
[ "0.6365684", "0.5957287", "0.57758296", "0.5771376", "0.57059383", "0.5664367", "0.5548452", "0.5492618", "0.5483436", "0.54831165", "0.5466337", "0.5450249", "0.54259014", "0.53724456", "0.5372149", "0.5371258", "0.53611875", "0.53558373", "0.53498495", "0.5324996", "0.53216...
0.78561133
0
In an object representing a GO term, replace singleelement lists with their only member. Returns the modified object as a dictionary.
def yejA(LwI0): U5bT = dict(LwI0) for H5ew, BWXx in U5bT.iteritems(): if len(BWXx) == 1: U5bT[H5ew] = BWXx[0] return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B368(YKHO, YEnM: list[tuple[str, Any]]) -> dict[str, ImMB]:\n Aofo = {}\n for G1Hx, Ty9i in YEnM:\n if Ty9i is None and G1Hx in ['revenue', 'value', 'tags', 'decisions']:\n continue\n else:\n Aofo[G1Hx] = Ty9i\n return Aofo", "def HmnA(YKHO, YEnM):\n fRc9 = ['f...
[ "0.57264405", "0.5637731", "0.5390604", "0.53606224", "0.5333853", "0.53163177", "0.5279076", "0.526993", "0.51983625", "0.51716554", "0.5167742", "0.5114032", "0.50461626", "0.5011222", "0.49974743", "0.49953446", "0.4961573", "0.4945264", "0.4932795", "0.492444", "0.4903173...
0.5580593
2
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.testInst = MD2G.Instrument('pysat', 'testing', clean_level='clean') YKHO.bounds1 = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 1, 3)) YKHO.bounds2 = (JRYC.datetime(2009, 1, 1), JRYC.datetime(2009, 1, 2)) YKHO.long_bins = [0.0, 360.0, 24] YKHO.mlt_bins = [0.0, 24.0, 24] Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7845074", "0.7614512", "0.76056117", "0.7597303", "0.7596763", "0.7583319", "0.7544004", "0.7517096", "0.7517096", "0.7502748", "0.7502748", "0.74867713", "0.74805045", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.747...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.testInst = MD2G.Instrument('pysat', 'testing_xarray', clean_level='clean') YKHO.bounds1 = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 1, 3)) YKHO.bounds2 = (JRYC.datetime(2009, 1, 1), JRYC.datetime(2009, 1, 2)) YKHO.long_bins = [0.0, 360.0, 24] YKHO.mlt_bins = [0.0, 24.0, 24...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7845074", "0.7614512", "0.76056117", "0.7597303", "0.7596763", "0.7583319", "0.7544004", "0.7517096", "0.7517096", "0.7502748", "0.7502748", "0.74867713", "0.74805045", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.747...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.testInst = MD2G.Instrument('pysat', 'testing', clean_level='clean') YKHO.bounds1 = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 1, 3)) YKHO.bounds2 = (JRYC.datetime(2009, 1, 1), JRYC.datetime(2009, 1, 2)) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7844113", "0.7612376", "0.7604032", "0.75949496", "0.7594845", "0.75810975", "0.7542272", "0.7514916", "0.7514916", "0.7500658", "0.7500658", "0.74847126", "0.7478522", "0.74731064", "0.74731064", "0.74731064", "0.74731064", "0.74731064", "0.74731064", "0.74731064", "0.747...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.testInst = MD2G.Instrument('pysat', 'testing_xarray', clean_level='clean') YKHO.bounds1 = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 1, 3)) YKHO.bounds2 = (JRYC.datetime(2009, 1, 1), JRYC.datetime(2009, 1, 2)) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7843913", "0.7613198", "0.76043516", "0.7595677", "0.7595406", "0.7581997", "0.75430584", "0.7515585", "0.7515585", "0.7501469", "0.7501469", "0.74854517", "0.7479296", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", ...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.testInst = MD2G.Instrument('pysat', 'testing2D', clean_level='clean') YKHO.testInst.bounds = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 1, 3)) YKHO.dname = 'alt_profiles' YKHO.test_vals = oyIN.arange(50) * 1.2 YKHO.test_fracs = oyIN.arange(50) / 50.0 return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7845074", "0.7614512", "0.76056117", "0.7597303", "0.7596763", "0.7583319", "0.7544004", "0.7517096", "0.7517096", "0.7502748", "0.7502748", "0.74867713", "0.74805045", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.747...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.testInst = MD2G.Instrument('pysat', 'testing2D', clean_level='clean') YKHO.testInst.bounds = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 2, 1)) YKHO.dname = 'series_profiles' YKHO.test_vals = oyIN.arange(50) * 1.2 return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7845074", "0.7614512", "0.76056117", "0.7597303", "0.7596763", "0.7583319", "0.7544004", "0.7517096", "0.7517096", "0.7502748", "0.7502748", "0.74867713", "0.74805045", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.747...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.testInst = MD2G.Instrument('pysat', 'testing2D_xarray', clean_level='clean') YKHO.testInst.bounds = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 2, 1)) YKHO.dname = 'profiles' YKHO.test_val_length = 15 return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7845074", "0.7614512", "0.76056117", "0.7597303", "0.7596763", "0.7583319", "0.7544004", "0.7517096", "0.7517096", "0.7502748", "0.7502748", "0.74867713", "0.74805045", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.747...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.testInst = MD2G.Instrument('pysat', 'testing2D_xarray', clean_level='clean') YKHO.testInst.bounds = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 2, 1)) YKHO.dname = 'variable_profiles' YKHO.test_val_length = 15 return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7845074", "0.7614512", "0.76056117", "0.7597303", "0.7596763", "0.7583319", "0.7544004", "0.7517096", "0.7517096", "0.7502748", "0.7502748", "0.74867713", "0.74805045", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.747...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.testInst = MD2G.Instrument('pysat', 'testing2D_xarray', clean_level='clean') YKHO.testInst.bounds = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 2, 1)) YKHO.dname = 'images' YKHO.test_val_length = 17 return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7845074", "0.7614512", "0.76056117", "0.7597303", "0.7596763", "0.7583319", "0.7544004", "0.7517096", "0.7517096", "0.7502748", "0.7502748", "0.74867713", "0.74805045", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.747...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): FiTe = [] for YRbF in range(5): FiTe.append(MD2G.Instrument('pysat', 'testing', clean_level='clean')) YKHO.testC = MD2G.Constellation(instruments=FiTe) YKHO.testI = MD2G.Instrument('pysat', 'testing', clean_level='clean') YKHO.bounds = (JRYC.datetime(2008, 1, 1), JRYC.datetim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7843913", "0.7613198", "0.76043516", "0.7595677", "0.7595406", "0.7581997", "0.75430584", "0.7515585", "0.7515585", "0.7501469", "0.7501469", "0.74854517", "0.7479296", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", ...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): FiTe = [] for YRbF in range(2): Bc8Y = JRYC.datetime(2009, 1, YRbF + 1) FiTe.append(MD2G.Instrument('pysat', 'testing', clean_level='clean', root_date=Bc8Y)) YKHO.testC = MD2G.Constellation(instruments=FiTe) YKHO.testI = MD2G.Instrument('pysat', 'testing', clean_level='cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7843913", "0.7613198", "0.76043516", "0.7595677", "0.7595406", "0.7581997", "0.75430584", "0.7515585", "0.7515585", "0.7501469", "0.7501469", "0.74854517", "0.7479296", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", ...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.insts = [] YKHO.testInst = MD2G.Instrument('pysat', 'testing2D', clean_level='clean') YKHO.testInst.bounds = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 1, 3)) YKHO.insts.append(YKHO.testInst) YKHO.insts.append(YKHO.testInst) YKHO.dname = 'series_profiles' YKHO.test_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7845074", "0.7614512", "0.76056117", "0.7597303", "0.7596763", "0.7583319", "0.7544004", "0.7517096", "0.7517096", "0.7502748", "0.7502748", "0.74867713", "0.74805045", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.747...
0.0
-1
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.testInst = MD2G.Instrument('pysat', 'testing', clean_level='clean') YKHO.testInst.bounds = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 1, 3)) YKHO.bounds1 = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 1, 3)) YKHO.bounds2 = (JRYC.datetime(2009, 1, 1), JRYC.datetime(2009, 1, 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7843913", "0.7613198", "0.76043516", "0.7595677", "0.7595406", "0.7581997", "0.75430584", "0.7515585", "0.7515585", "0.7501469", "0.7501469", "0.74854517", "0.7479296", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", "0.7473887", ...
0.0
-1
Test failure when an arraylike of length 1 is given to median2D.
def mseG(YKHO): with trZe.raises(TypeError) as vDbV: qqgr.median2D(YKHO.testInst, 1, 'longitude', 24, 'mlt', ['dummy1', 'dummy2', 'dummy3'], auto_bin=False) U4Y2 = 'len() of unsized object' assert str(vDbV).find(U4Y2) >= 0 return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X11i(YKHO):\n with trZe.raises(ValueError) as vDbV:\n qqgr.median2D([], [0.0, 360.0, 24], 'longitude', [0.0, 24.0, 24], 'mlt', ['longitude'])\n assert str(vDbV).find('Parameter must be an Instrument') > 0\n return", "def cNzA(YKHO):\n r8hN = qw7D([[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, ...
[ "0.7508469", "0.72984016", "0.68684316", "0.6712673", "0.64846325", "0.6461911", "0.6255648", "0.62007266", "0.613824", "0.61256766", "0.6101145", "0.60712093", "0.60000265", "0.59565866", "0.5916179", "0.5914662", "0.58894825", "0.58884495", "0.58773583", "0.5849936", "0.582...
0.5787824
23
Run before every method to create a clean testing setup.
def eCGt(YKHO): YKHO.testInst = MD2G.Instrument('pysat', 'testing', clean_level='clean', update_files=True) YKHO.testInst.bounds = (JRYC.datetime(2008, 1, 1), JRYC.datetime(2008, 1, 31)) YKHO.test_bins = [0, 24, 24] YKHO.test_label = 'slt' YKHO.test_data = ['dummy1', 'dummy2'] YKHO.out_keys = ['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n xnZ0.setUp(YKHO)", "def FCbF(YKHO):\n FCbF()", "def FCbF(YKHO):\n pass", "def D42W(Emd4):\n pass", "def FCbF(YKHO) -> None:\n pass", "def FCbF(YKHO) -> None:\n pass", "def ...
[ "0.7845074", "0.7614512", "0.76056117", "0.7597303", "0.7596763", "0.7583319", "0.7544004", "0.7517096", "0.7517096", "0.7502748", "0.7502748", "0.74867713", "0.74805045", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.74752784", "0.747...
0.0
-1
Test median1D failure when provided with a nonmonotonic bins.
def TRkD(YKHO): with trZe.raises(ValueError) as vDbV: qqgr.median1D(YKHO.testInst, [0, 13, 5], YKHO.test_label, YKHO.test_data, auto_bin=False) U4Y2 = 'bins must be monotonically increasing or decreasing' assert str(vDbV).find(U4Y2) >= 0 return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRkD(YKHO):\n with trZe.raises(ValueError) as vDbV:\n qqgr.median2D(YKHO.testInst, oyIN.array([0.0, 300.0, 100.0]), 'longitude', oyIN.array([0.0, 24.0, 13.0]), 'mlt', ['dummy1', 'dummy2', 'dummy3'], auto_bin=False)\n U4Y2 = 'bins must be monotonically increasing or decreasing'\n assert str(vDbV...
[ "0.75375706", "0.7425227", "0.7305547", "0.72789365", "0.72099555", "0.7189495", "0.70267254", "0.70081466", "0.6808475", "0.6694378", "0.66634285", "0.6602126", "0.6530274", "0.65115786", "0.64514667", "0.6406845", "0.63976115", "0.6320005", "0.62935007", "0.6274843", "0.622...
0.7943803
0
Test API can get a user shopppinglist
def R5u1(YKHO): BDwY = YKHO.client.get('/shoppinglists/?each_page=1&page_number=1', headers={'Content-Type': 'application/json', 'x-access-token': YKHO.tok}) YKHO.assertEqual(BDwY.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkpI(YKHO):\n pass", "def U2Q_(YKHO):\n QePW = YKHO.factory.get('/api/supplies')\n rliA(QePW, user=YKHO.testuser1)\n geh0 = PuNA.as_view()(QePW)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def ykgQ(YKHO):\n bD7m = gxEw('projectroles:api_user_list')\n geh0 = YKHO.request_k...
[ "0.69973886", "0.68879277", "0.68602026", "0.6824236", "0.6700213", "0.66470695", "0.6644938", "0.6588357", "0.6558273", "0.6558273", "0.6535568", "0.6503087", "0.65000474", "0.6497708", "0.64899206", "0.6440723", "0.64134187", "0.63904846", "0.6357058", "0.6353979", "0.63114...
0.7381882
0
Test API can search for a list with no products
def xl1X(YKHO): mWv7 = YKHO.client.post('/shoppinglists/', data=YKHO.shopllist, headers={'Content-Type': 'application/json', 'x-access-token': YKHO.tok}) eb2t = YKHO.client.get('/search/?q=shoes', headers={'Content-Type': 'application/json', 'x-access-token': YKHO.tok}) YKHO.assertEqual(eb2t.status_code, 20...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XLEA(YKHO):\n geh0 = YKHO.client().get('/api/v1/products')\n zgjV = qQXR.loads(geh0.data)\n YKHO.assertTrue(zgjV.get('Error'))\n YKHO.assertEqual(zgjV.get('Error'), 'There are no books')\n YKHO.assertEqual(geh0.status_code, 404)", "def Zk_G(YKHO):\n _hkX = YKHO.admin_register()\n Amyp = ...
[ "0.79860896", "0.762958", "0.74859864", "0.7322933", "0.73226535", "0.72748005", "0.72409385", "0.7220713", "0.71785754", "0.71070606", "0.7078745", "0.70461315", "0.7024391", "0.7011722", "0.7006077", "0.69657147", "0.6953056", "0.6936329", "0.6912971", "0.690604", "0.686887...
0.79576176
1
remove stopwords from text
def aUcs(l5Ny, lE7P=False): s2mk = b0j5.tokenize(l5Ny) s2mk = [eOtH.strip() for eOtH in s2mk] if lE7P: i6lF = [eOtH for eOtH in s2mk if eOtH not in RhrR] else: i6lF = [eOtH for eOtH in s2mk if eOtH.lower() not in RhrR] INSD = ' '.join(i6lF) return INSD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aUcs(YKHO, l5Ny):\n return ' '.join([GIN8 for GIN8 in str(l5Ny).split() if GIN8 not in YKHO.STOPWORDS])", "def aUcs(l5Ny):\n return ' '.join([GIN8 for GIN8 in str(l5Ny).split() if GIN8 not in vDyF])", "def aUcs(l5Ny):\n l5Ny = ' ' + l5Ny\n l5Ny = l5Ny.upper()\n for GIN8 in jMRN:\n l5N...
[ "0.89286715", "0.88482356", "0.8793787", "0.87769353", "0.87291235", "0.86553067", "0.8621385", "0.85990196", "0.8581002", "0.8548902", "0.8535186", "0.8486007", "0.82015955", "0.8193264", "0.81688696", "0.81433773", "0.8126156", "0.80897945", "0.80001014", "0.79859096", "0.7...
0.8117342
17
r"""Converts a dense adjacency matrix to a sparse adjacency matrix defined by edge indices and edge attributes.
def R1eO(eQUr): assert eQUr.dim() >= 2 and eQUr.dim() <= 3 assert eQUr.size(-1) == eQUr.size(-2) d6pt = eQUr.nonzero(as_tuple=True) nddV = eQUr[d6pt] if len(d6pt) == 3: Wc9F = d6pt[0] * eQUr.size(-1) d6pt = (Wc9F + d6pt[1], Wc9F + d6pt[2]) return (ht2j.stack(d6pt, dim=0), nddV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EIpJ(YKHO, EAqi):\n _0VL = list(EAqi.keys())\n hkxX = [1] * len(_0VL)\n Gmfu = ht2j.LongTensor(_0VL).T.to(YKHO.device)\n nddV = ht2j.FloatTensor(hkxX).to(YKHO.device)\n Gmfu, nddV = BfDw.to_symmetric(Gmfu, nddV, YKHO.n)\n return BPA6.from_edge_index(edge_index=Gmfu, edge_attr=nddV, sparse_siz...
[ "0.73674446", "0.73380816", "0.69235134", "0.6910183", "0.67323536", "0.67166203", "0.66891265", "0.6563592", "0.65598524", "0.65598524", "0.65598524", "0.65598524", "0.65598524", "0.64673984", "0.64584976", "0.64497274", "0.64242405", "0.6352266", "0.6349056", "0.6345755", "...
0.79556376
0
Return a 'fixed' version of filename.
def iMEm(Ux0P): Ux0P = Ux0P.replace('.TXT', '.txt') Dokz = '' mGM0 = False cA33 = False for sZqf in Ux0P: if sZqf.isspace() or sZqf == '_': mGM0 = True Dokz = Dokz + '_' elif sZqf == '(': cA33 = True elif sZqf.isupper(): if Dokz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def icYR(Ux0P):\n _c1T = qcWV.datetime.utcnow().strftime('%Y-%m-%d-%H%M%S')\n aPr_, Fst3 = Ux0P.rsplit('.', 1)\n return '{0}-{1}.{2}'.format(aPr_, _c1T, Fst3)", "def icYR(Ux0P):\n Ux0P = YX8g(Ux0P)\n _c1T = qcWV.datetime.utcnow().strftime('%Y-%m-%d-%H%M%S')\n aPr_, Fst3 = Ux0P.rsplit('.', 1)\n ...
[ "0.7250059", "0.71424264", "0.7099398", "0.7067578", "0.70534736", "0.6940534", "0.68074816", "0.6781198", "0.67568046", "0.673747", "0.6724021", "0.67217356", "0.6685823", "0.6665831", "0.6630088", "0.661831", "0.6595872", "0.658626", "0.65764874", "0.6531638", "0.6502819", ...
0.63322127
31
Returns True if the tracking URI has been set, False otherwise.
def UQvz(): if G7YS or sEAN.get_env(rMhO): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A9Hf(YKHO):\n return hasattr(YKHO, '_url') and YKHO._url is not None", "def O7fY(YKHO):\n if YKHO['.managerhost'] and YKHO['.settingurl'] and YKHO['.guid']:\n return True\n else:\n return False", "def OSO6(j8eK):\n global _tracking_uri\n G7YS = j8eK", "def qutR(YKHO):\n if...
[ "0.6479483", "0.6459205", "0.6323849", "0.6238821", "0.6171583", "0.61708397", "0.61642635", "0.6158794", "0.6127984", "0.6090554", "0.6062558", "0.6044552", "0.59880835", "0.59870595", "0.5969935", "0.59455836", "0.5932854", "0.59196186", "0.5909605", "0.58852804", "0.582607...
0.898794
0
Get the current tracking URI. This may not correspond to the tracking URI of the currently active run, since the tracking URI can be updated via ``set_tracking_uri``.
def dBw_(): global _tracking_uri if G7YS is not None: return G7YS elif sEAN.get_env(rMhO) is not None: return sEAN.get_env(rMhO) else: return Hy7s.path.abspath('./mlruns')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WUva(YKHO):\n return YKHO.tracker_uri", "def fB2c(YKHO) -> str:\n return qe4Y.get(YKHO, 'tracking_url')", "def zFcP(YKHO):\n return YKHO.__uri", "def zFcP(YKHO):\n return YKHO.uri", "def hKhs(YKHO):\n return YKHO.base_driver.current_url", "def zFcP(YKHO):\n return YKHO.url", "def ...
[ "0.7794888", "0.7426825", "0.6945061", "0.6806299", "0.6781391", "0.67510617", "0.6750797", "0.6684088", "0.6684088", "0.6684088", "0.6684088", "0.6684088", "0.6684088", "0.6651515", "0.659315", "0.65794116", "0.6577855", "0.6565985", "0.6558846", "0.654117", "0.65325385", ...
0.80332476
0
Return the path git_urisub_directory if the URI passed is a local path that's part of a Git repo, or returns the original URI otherwise.
def GfvM(j8eK): if '#' in j8eK: return j8eK try: from git import Repo, InvalidGitRepositoryError, GitCommandNotFound, NoSuchPathError except ImportError as e: print('Notice: failed to import Git (the git executable is probably not on your PATH), so Git SHA is not available. Error: %s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E0XI(YKHO, j8eK):\n if Hy7s.path.isdir(j8eK):\n return j8eK\n else:\n raise cYUU('The repo path does not exist: %s' % j8eK)", "def YYSY(Emd4, type='local', j8eK='.'):\n boHx = GPtr.get_plugin('repo', type)\n if not boHx:\n raise cYUU(\"Repo type '%s' not supported\" % type)\n...
[ "0.70532715", "0.6829297", "0.67061585", "0.62289095", "0.6172714", "0.6092495", "0.60773754", "0.6064918", "0.6039916", "0.59507537", "0.59344393", "0.5920267", "0.59074557", "0.5892522", "0.5867568", "0.58165574", "0.5815977", "0.5809376", "0.5795269", "0.5781473", "0.57795...
0.7456995
0
Renders the home page for the website.
def d6pt(): return TvZl('pages/index.html', isNav=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')", "def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n ...
[ "0.8604442", "0.8500615", "0.8388268", "0.8380108", "0.83712155", "0.8328059", "0.8325257", "0.8319344", "0.83181703", "0.8307902", "0.83016413", "0.82907146", "0.82907146", "0.82763845", "0.8251702", "0.82399243", "0.82399243", "0.82399243", "0.82399243", "0.82399243", "0.82...
0.0
-1
Renders an error page with 404 message.
def m7kB(P1dF): rhwM = str(P1dF) return (TvZl('error-pages/404-page.html', error_message=rhwM, isFooter=True), 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ni4Z(P1dF):\n return (TvZl('/error.html'), 404)", "def m7kB():\n return (TvZl('errors/404.html'), 404)", "def m7kB(Wehb):\n return (TvZl('404.html'), 404)", "def m7kB(D4AW):\n return (TvZl('errors.html'), 404)", "def m7kB(tTpl):\n return (TvZl('error/404.html'), 404)", "def LAmf():\n ...
[ "0.87562716", "0.8740791", "0.8694112", "0.86651933", "0.86473167", "0.8609954", "0.86035633", "0.85903746", "0.8584245", "0.85659873", "0.85659873", "0.856508", "0.85636836", "0.8561664", "0.8560108", "0.85273474", "0.8453898", "0.8446212", "0.843078", "0.84204453", "0.83922...
0.845805
16
Function to initialize a ElasticNet model.
def KFJf(YKHO): C3ST = cAV2.ElasticNet(alpha=YKHO.alpha, n_lambda=YKHO.n_lambda, min_lambda_ratio=YKHO.min_lambda_ratio, lambda_path=YKHO.lambda_path, standardize=YKHO.scale, fit_intercept=YKHO.fit_intercept, cut_point=YKHO.cut_point, n_splits=YKHO.n_splits, scoring=YKHO.metric, n_jobs=-1, tol=YKHO.tol, max_iter=YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, hKfM: ElasticityController, Ra9t: NNCFNetwork):\n YKHO._m_handler = hKfM.multi_elasticity_handler\n YKHO._elasticity_ctrl = hKfM\n YKHO._model = Ra9t", "def FIMM(YKHO):\n YKHO.model = Zgf_()\n if ht2j.cuda.is_available():\n O6p0 = ht2j.device('cuda')\n else:\n O6p0 ...
[ "0.6660076", "0.6600167", "0.637495", "0.63703966", "0.63447905", "0.6296791", "0.6293255", "0.6290172", "0.6279328", "0.6255419", "0.6243293", "0.6173627", "0.6172966", "0.6171316", "0.6163583", "0.6151682", "0.61366194", "0.61124045", "0.607899", "0.606868", "0.6063831", ...
0.67390877
0
Function to return the nonzero coeff for the best lambda as Pandas DataFrame.
def rzgF(YKHO): fK8P = YKHO._coeff_to_dict() return rLdf.DataFrame(data=fK8P.items(), columns=['feature', 'coeff']).sort_values(by='coeff', ascending=False).reset_index(drop=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QvQy(tr81, ar6O):\n RYFy = tr81.shape[0]\n YJwW = tr81.to_numpy()\n f1Eh = oyIN.diag([1] * RYFy) - oyIN.diag([1] * (RYFy - 1), 1)\n lWPh = f1Eh[0:RYFy - 1,]\n UqYS = U7YL.Variable(RYFy)\n vtMg = U7YL.Parameter(nonneg=True)\n vtMg.value = ar6O\n\n def ld0H(uBQv, YJwW, vtMg):\n ret...
[ "0.56539845", "0.5527984", "0.551429", "0.54217345", "0.539939", "0.5383994", "0.53775567", "0.5368512", "0.5343976", "0.5338961", "0.5336363", "0.5292487", "0.5213887", "0.520227", "0.5194823", "0.51802653", "0.5162921", "0.5153196", "0.5149863", "0.5136775", "0.5084286", ...
0.4905848
44
Function to return the nonzero coeff for the best lambda as dict.
def tQEw(YKHO): or8S = list(oyIN.nonzero(oyIN.reshape(YKHO.model_.coef_, (1, -1)))[1]) fK8P = dict(zip([YKHO.X_train_.columns.tolist()[YRbF] for YRbF in or8S], [YKHO.model_.coef_.reshape(-1, YKHO.model_.coef_.shape[-1])[0][YRbF] for YRbF in or8S])) return fK8P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kzX6(pKvt):\n return 0.9 / (uo7P(pKvt) - J3bo(pKvt))", "def t0yp(YKHO):\n ssxV = Y69N.getCrowDistDict(YKHO)\n ssxV['lambda'] = YKHO.lambdaVar\n ssxV['k'] = YKHO.k\n ssxV['low'] = YKHO.low\n return ssxV", "def t0yp(YKHO):\n ssxV = Y69N.getCrowDistDict(YKHO)\n ssxV['lambda'] = YKHO.la...
[ "0.57542205", "0.5717544", "0.564656", "0.55869895", "0.546986", "0.5465802", "0.5423759", "0.54199076", "0.53814495", "0.5361005", "0.5308551", "0.52844375", "0.5275975", "0.5218444", "0.5215131", "0.52103615", "0.51935935", "0.51935935", "0.51847035", "0.51734585", "0.51659...
0.5796722
0
Function to return model's results as a Pandas DataFrame.
def hGig(YKHO): jQ3Z = rLdf.DataFrame(YKHO.model_.coef_path_.reshape(-1, YKHO.model_.coef_path_.shape[-1]).T, columns=[f'{fvDH}_coeff_path' for fvDH in YKHO.X_train_.columns.tolist()]) jQ3Z['intercept_path'] = YKHO.model_.intercept_path_.reshape(-1, YKHO.model_.intercept_path_.shape[-1]).T jQ3Z['lambda_path...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zaB4(YKHO):\n return rLdf.DataFrame(YKHO.results)", "def Ie30(YKHO, l7uB=True):\n EcVT = oyIN.vstack([YKHO.sales(), YKHO.unit_contribution(), YKHO.net_revenue(), YKHO.depreciation(), YKHO.before_tax_profit(), YKHO.after_tax_profit(), YKHO.cash_flow()])\n if l7uB:\n EcVT = oyIN.transpose(EcVT)...
[ "0.80328673", "0.7158678", "0.69999963", "0.6914213", "0.6910849", "0.6863081", "0.68356454", "0.68356454", "0.68356454", "0.68356454", "0.68356454", "0.6773959", "0.67673457", "0.67664504", "0.67664504", "0.67497694", "0.67483246", "0.6746302", "0.674157", "0.6687641", "0.66...
0.0
-1
Takes in a 230x230 shape array and converts it to a flattened 1d array with indices
def qiVY(nPrm, UXqs): _0VL = oyIN.arange(230 * 230).reshape(230, 230) n2Q1, SpII, rLdf, CCrh = UXqs r8hN = oyIN.ma.masked_equal(rLdf, 0) Uoi4, eap8, Fzoq, b8Jg, Kc7N = (oyIN.ma.masked_array(n2Q1, r8hN.mask), oyIN.ma.masked_array(SpII, r8hN.mask), oyIN.ma.masked_array(rLdf, r8hN.mask), oyIN.ma.masked_arr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(EcVT):\n ywwl = EcVT.shape[-1]\n TLbF = oyIN.zeros((ywwl, 3072))\n for or8S, YRbF in enumerate(range(ywwl)):\n TLbF[YRbF] = EcVT[:, :, :, YRbF].reshape(3072)\n return TLbF", "def s6fQ(or8S, jDK_=-1):\n or8S = XTiz.asanyarray(or8S)\n if not or8S.dtype.kind in ('i', 'u'):\n ...
[ "0.6891298", "0.68770856", "0.68503946", "0.6794959", "0.6709632", "0.6599226", "0.65438265", "0.6451453", "0.6418531", "0.6337268", "0.633697", "0.6283048", "0.6222314", "0.61826795", "0.61617184", "0.6102546", "0.6070544", "0.6055939", "0.6039484", "0.60324", "0.6016781", ...
0.55144936
89
set the name of the flower
def WZrJ(YKHO, mWFP): if not isinstance(mWFP, str): raise TypeError('name must be string') else: YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, L15R=''):\n YKHO.name = L15R", "def Dokz(YKHO, Dokz):\n YKHO.name = Dokz", "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO.name = str(mWFP)", "def oSgC(YKH...
[ "0.72778326", "0.71287006", "0.7093384", "0.70216936", "0.70216936", "0.7019327", "0.69539905", "0.69539905", "0.69539905", "0.69539905", "0.69539297", "0.69148284", "0.69148284", "0.69050854", "0.69007117", "0.69007117", "0.69007117", "0.69007117", "0.69007117", "0.68506086", ...
0.64021575
62
Ensures the department list view does not require login.
def ex5s(YKHO): Jg87.objects.create(name='Test db', population=0) Z9rn = i9zE() geh0 = Z9rn.get('/departments') YKHO.assertEqual(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VQI0(YKHO):\n Gcbu = Jg87.objects.create(name='Test db', population=0)\n Z9rn = i9zE()\n geh0 = Z9rn.get(Gcbu.get_absolute_url())\n YKHO.assertEqual(geh0.status_code, 200)", "def k__C(YKHO, FZdX):\n if FZdX.departments.count() > 0:\n A07C = [str(Csk6.id) for Csk6 in FZdX.departments.all...
[ "0.6651229", "0.5949095", "0.58881", "0.58461714", "0.58370554", "0.5791154", "0.5733321", "0.5665855", "0.5647619", "0.5585024", "0.55743307", "0.55293113", "0.54962397", "0.5482921", "0.5480105", "0.54582936", "0.5439294", "0.542393", "0.5420192", "0.54112434", "0.5392665",...
0.7172031
0
Computes the embedding from a batched input.
def oDTn(YKHO, nPrm): [x5fd] = YKHO._sess.run([YKHO._embedding_tensor], feed_dict={YKHO._features_tensor: nPrm}) return x5fd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOv4(YKHO, WKvO, *qIxc, **B2fa):\n with ZylS.name_scope('embedding'):\n o5r0 = ZylS.cast(WKvO > YKHO.vocab_size - 1, dtype=ZylS.int32)\n WKvO *= 1 - o5r0\n WKvO += o5r0 * ZylS.cast(YKHO.pad_sym, dtype=ZylS.int32)\n KTQ3 = ZylS.gather(YKHO.shared_weights, WKvO)\n if YKHO.em...
[ "0.6855878", "0.67313987", "0.6704364", "0.66974163", "0.662997", "0.6617429", "0.6579141", "0.65286726", "0.65286726", "0.6491749", "0.6483122", "0.6471915", "0.64437324", "0.6402234", "0.63720846", "0.6361234", "0.6329541", "0.6322668", "0.63197666", "0.6310015", "0.6308307...
0.694443
0
Return True if the cell_id points to a temporal cell
def nbGF(YKHO, IGdj): assert oyIN.all(YKHO.is_cell_id(IGdj)) return IGdj & YKHO.tmask
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gXHg(YKHO, tTpl):\n if tTpl in YKHO.temporal:\n return True", "def Bpvr(YKHO, VmPb: Position) -> bool:\n return VmPb in YKHO._state", "def FLml(YKHO):\n return any(map(lambda KCHu: KCHu.is_temporal, YKHO))", "def tqJA(YKHO, IGdj):\n assert oyIN.all(YKHO.is_cell_id(IGdj))\n return IG...
[ "0.6390344", "0.617976", "0.606312", "0.6051273", "0.59818906", "0.580023", "0.5775213", "0.5721793", "0.5669479", "0.56345135", "0.5559492", "0.54999256", "0.54717904", "0.54613405", "0.5450685", "0.544908", "0.5436226", "0.54338217", "0.5419904", "0.5398779", "0.53971934", ...
0.84101105
0
load trained weights for the model
def uyMl(): global obj YEnM = pe8O() print('Weights Loaded!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ks9j(YKHO):\n raise NotImplementedError", "def SUd8(YKHO):\n try:\n print('loading weights from {}'.format(YKHO.cfg.class_model_dir))\n YKHO.load_state_dict(ht2j.load(YKHO.cfg.class_model_dir + YKHO.class_model_name + '.pth'))\n except Exception as e:\n print('load weights excep...
[ "0.851856", "0.7980184", "0.79577416", "0.7873259", "0.7872814", "0.78525436", "0.78167546", "0.7800688", "0.7791164", "0.77594733", "0.7746501", "0.77379256", "0.77241075", "0.77096915", "0.76520526", "0.7620029", "0.7569135", "0.7552008", "0.75440407", "0.75348926", "0.7476...
0.6833859
72
Returns the matching device class or raises an UnknownDeviceTypeError
def H1Tu(nVBV: int, yzLr: int, yDMa): H5ew = str(nVBV) + '-' + str(yzLr) + '-' + str(yDMa) if H5ew not in BGFT: raise d0K7 return BGFT[H5ew]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return lc9R[YKHO.sensor][3].get('device_class')", "def rM2U(YKHO):\n try:\n return JXrw[YKHO._sensor]\n except KeyError:\n return None", "def rM2U(YKHO) -> str | None:\n return YKHO._get_sensor_type()[2]", "def rM2U(YKHO):\n return lc9R[YKHO._type][3] if YKHO._t...
[ "0.7743256", "0.77038646", "0.76273584", "0.75401074", "0.75191265", "0.7514639", "0.75096905", "0.748489", "0.7474209", "0.7474209", "0.74352026", "0.7420845", "0.7416792", "0.7416792", "0.7416792", "0.7398546", "0.7355163", "0.7351351", "0.7351351", "0.7351351", "0.7351351"...
0.76347595
2
Rotates this point around the Y axis the given number of degrees.
def VOj9(YKHO, YylR): Wskb = YylR * epAf.pi / 180 ey4b = epAf.cos(Wskb) vdar = epAf.sin(Wskb) epBp = YKHO.z * ey4b - YKHO.x * vdar WKvO = YKHO.z * vdar + YKHO.x * ey4b return M1rV(WKvO, YKHO.y, epBp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CSjm(YKHO):\n return epAf.degrees(YKHO._rot_y_rad)", "def VFbY(YKHO):\n return YKHO._rot_y_rad", "def lV5V(YKHO, mghH):\n if mghH < -10:\n mghH = -10\n elif mghH > 10:\n mghH = 10\n mghH += 10\n YKHO.kit.servo[8].angle = mghH", "def a60O(YKHO, YylR: float):\n YKHO.verti...
[ "0.764156", "0.7231509", "0.7092509", "0.70017207", "0.69473153", "0.68552095", "0.6567456", "0.6522099", "0.65098804", "0.6378582", "0.63657093", "0.6340271", "0.6316594", "0.6215496", "0.6177662", "0.6171272", "0.6157312", "0.61190975", "0.6117733", "0.60771954", "0.606246"...
0.0
-1
Transforms this 3D point to 2D using a perspective projection.
def bNKA(YKHO, hkd_, gydM, fZkQ, U61h): aM8h = fZkQ / (U61h + YKHO.z) WKvO = YKHO.x * aM8h + hkd_ / 2 LVAh = -YKHO.y * aM8h + gydM / 2 return M1rV(WKvO, LVAh, YKHO.z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CsOI(YKHO, AU8u: Point3D) -> M1rV:\n WKvO, LVAh, epBp = AU8u\n tvjJ, Aike, ZV9d = YKHO._pos\n WKvO -= tvjJ\n LVAh -= Aike\n epBp -= ZV9d\n Jw7X = YKHO._cy * (YKHO._sz * LVAh + YKHO._cz * WKvO) - YKHO._sy * epBp\n eUWA = YKHO._sx * (YKHO._sy * (YKHO._sz * LVAh + YKHO._cz * WKvO) + YKHO._cy ...
[ "0.7485963", "0.7216747", "0.69505316", "0.6885933", "0.68209916", "0.6656276", "0.6602913", "0.65647006", "0.6494653", "0.64801013", "0.64739835", "0.63769954", "0.6376144", "0.63746977", "0.63733226", "0.6369274", "0.63624996", "0.63611245", "0.63498086", "0.6336155", "0.63...
0.6210368
27
wraps hidden states in new Tensors, to detach them from their history.
def IOWm(MKlR): if isinstance(MKlR, ht2j.Tensor): return MKlR.detach() else: return tuple((IOWm(Ty9i) for Ty9i in MKlR))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xFx6(Zode: Any) -> ImMB:\n return JkHx(Zode, llWB.detach)", "def It5M(YKHO, Ep8u):\n Zode = {}\n Zode['h'] = ht2j.Tensor(oyIN.zeros((Ep8u, YKHO._hidden_size))).to(YKHO._device)\n Zode['c'] = ht2j.Tensor(oyIN.zeros((Ep8u, YKHO._hidden_size))).to(YKHO._device)\n return Zode", "def gkix(YKHO, E...
[ "0.67749524", "0.6434035", "0.64160454", "0.6412985", "0.64076", "0.6294356", "0.6077541", "0.6077541", "0.6076566", "0.6071921", "0.6040047", "0.6040047", "0.5989625", "0.598646", "0.5950387", "0.588665", "0.5885526", "0.5859657", "0.5859657", "0.58478916", "0.5810157", "0...
0.5382091
55
Test Setter and Getter for 'recommended_num_references'.
def daS0(YKHO): Wc9F = Qqmr(FM6F()) YKHO.check_instance(Wc9F) YKHO.assertIsNone(Wc9F.recommended_num_references) YKHO.check_instance(Wc9F) Wc9F._recommended_num_references = 10 YKHO.assertEqual(Wc9F.recommended_num_references, 10) YKHO.check_instance(Wc9F, recom_num_ref=10) Wc9F._recomme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U_qd(YKHO):\n Wc9F = Qqmr(FM6F())\n YKHO.check_instance(Wc9F)\n YKHO.assertIsNone(Wc9F.recommended_num_objects)\n YKHO.check_instance(Wc9F)\n Wc9F._recommended_num_objects = 10\n YKHO.assertEqual(Wc9F.recommended_num_objects, 10)\n YKHO.check_instance(Wc9F, recom_num_obj=10)\n Wc9F._rec...
[ "0.6679959", "0.61644685", "0.5811828", "0.5577427", "0.5554049", "0.5527453", "0.5479873", "0.54286367", "0.5427623", "0.5426805", "0.53952336", "0.53875995", "0.53875995", "0.53875995", "0.53414106", "0.5335766", "0.5262863", "0.52258825", "0.52043575", "0.51844543", "0.518...
0.7939803
0
ensure email is in the database
def Bt7w(YKHO, nPrm): CBIr = dsjM.User.objects.filter(username__iexact=nPrm, is_active=True) if CBIr: return nPrm raise IyFz.ValidationError('Email address not verified for any user account')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yn2h(Emd4, D3lj):\n _4no = mv1M.get_by('email', D3lj)\n if not _4no:\n raise ValueError('This email is not in our database.')\n return D3lj", "def Bt7w(YKHO, D3lj):\n if D3lj.data != c5ow.email:\n CBIr = mv1M.query.filter_by(email=D3lj.data).first()\n if CBIr:\n ra...
[ "0.76046383", "0.7554193", "0.7469107", "0.73643005", "0.7292213", "0.72549045", "0.7250293", "0.72352064", "0.7176981", "0.7145582", "0.71445185", "0.7115147", "0.7097604", "0.7095494", "0.7044005", "0.7038727", "0.7038727", "0.7032835", "0.7032809", "0.70212036", "0.7002401...
0.662277
48
Split a numpy array into two parts of `proportion` and `1 proportion`
def Qb89(nPrm, Crrw, e2AD): zNig = nPrm.shape[0] oyIN.random.seed(42) KCHu = oyIN.random.permutation(zNig) CSZR = int(e2AD * zNig) return (nPrm[KCHu[:CSZR]], nPrm[KCHu[CSZR:]], Crrw[KCHu[:CSZR]], Crrw[KCHu[CSZR:]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wMk8(qw7D: np.ndarray, SQ3m: int):\n if SQ3m == -1:\n SQ3m = qw7D.size\n ROpF = qw7D.shape\n c1rC = []\n for ztRo in Lx3t(*[range(1, ROpF[YRbF] + 1) for YRbF in range(len(ROpF))]):\n if oyIN.prod([ROpF[YRbF] // ztRo[YRbF] + int(ROpF[YRbF] % ztRo[YRbF] != 0) for YRbF in range(len(ROpF)...
[ "0.6124419", "0.58726543", "0.5708537", "0.55723757", "0.5565012", "0.55347586", "0.5534433", "0.548769", "0.5468142", "0.5464712", "0.5442218", "0.53981984", "0.53841823", "0.53829044", "0.53586715", "0.5323732", "0.5321245", "0.52906376", "0.527975", "0.52775216", "0.527571...
0.6388887
0
Creates an instance of the InceptionV3 model used for image feature extraction. This model is used without the top classification layers, i.e up to the last convolutional layer. See the README for details on the architecture.
def AyiP(Kgi5): if Kgi5 == 'InceptionV3': irav = ZylS.keras.applications.InceptionV3(include_top=False, weights='imagenet') bR5D = irav.input ZSYc = irav.layers[-1].output x5Z9 = ZylS.keras.Model(bR5D, ZSYc) elif Kgi5 == 'VGG16': irav = ZylS.keras.applications.VGG16(inclu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YICX():\n rvDU = ZylS.keras.applications.InceptionV3(include_top=False, input_shape=(sAQH, sAQH, PRqi))\n C3ST = ZylS.keras.models.Sequential([rvDU, ZylS.keras.layers.GlobalAveragePooling2D(), ZylS.keras.layers.Dense(VPqX, activation='softmax')])\n C3ST.compile(optimizer='adam', loss='categorical_cros...
[ "0.84032947", "0.7388749", "0.7339636", "0.7091948", "0.67731905", "0.6672038", "0.66201055", "0.66157115", "0.6568229", "0.65258545", "0.64755785", "0.64727265", "0.6426069", "0.6412518", "0.6366948", "0.6353184", "0.63499624", "0.6332716", "0.62350047", "0.6234023", "0.6228...
0.5717256
78
Find an entry in this pool for the given account, if there is one.
def uAsb(YKHO, ZrNc, kuZI=False): vexM = YKHO.entry_keys if kuZI else YKHO.entries return vexM.filter('account =', ZrNc).get()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yao_(Emd4, n8Ek):\n for ZrNc in Emd4.credentials_list:\n if ZrNc.account_name == n8Ek:\n return ZrNc", "def jVbZ(Emd4, ZrNc):\n for mwuo in Emd4.credential_list:\n if mwuo.account == ZrNc:\n return mwuo", "def GKJL(Emd4, ZrNc):\n PHpx = None\n try:\n P...
[ "0.7189938", "0.69635975", "0.6953793", "0.66414326", "0.65893614", "0.6582859", "0.6472638", "0.64721215", "0.6459356", "0.64258343", "0.63912606", "0.63703537", "0.62721926", "0.6254881", "0.6248897", "0.62342405", "0.62254333", "0.61910635", "0.6101265", "0.6038063", "0.59...
0.6773786
3
Save a PipelineConfig to JSON file. Inject rv_config and plugin_versions before saving.
def AtlC(_Fei: 'PipelineConfig', sfUB: str) -> None: _Fei.rv_config = F8Zo.get_config_dict(nqEK.rv_config_schema) _Fei.plugin_versions = nqEK.plugin_versions NV0B = _Fei.json() ua4e(NV0B, sfUB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO, Nu1S: typing.TextIO):\n qQXR.dump(YKHO.to_dict(), Nu1S, indent=4)", "def LHWC(YKHO):\n nPrm = qQXR.dumps(YKHO.cfg)\n try:\n nUeQ = open(YKHO.cfg_file_name, 'w')\n nUeQ.write(nPrm)\n except OSError as err:\n print(\"can't save property: {0}\".format(XObx))\n else...
[ "0.6485044", "0.64818954", "0.6441421", "0.64227265", "0.642177", "0.641098", "0.6357041", "0.63123995", "0.62854147", "0.62806416", "0.6273614", "0.6270138", "0.6214956", "0.6196016", "0.61799", "0.61765444", "0.6160291", "0.6122432", "0.61186635", "0.6090508", "0.60590976",...
0.80649215
0
Returns EstimatorSpec instance for softmax classification.
def fn7u(KeL5, Crrw, Tuqy): RSpH = ZylS.argmax(KeL5, 1) if Tuqy == ZylS.estimator.ModeKeys.PREDICT: return ZylS.estimator.EstimatorSpec(mode=Tuqy, predictions={'class': RSpH, 'prob': ZylS.nn.softmax(KeL5)}) Jj9R = ZylS.one_hot(Crrw, S3qf, 1, 0) N77f = ZylS.losses.softmax_cross_entropy(onehot_lab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fn7u(KeL5, Crrw, Tuqy):\n RSpH = ZylS.argmax(KeL5, axis=1)\n t2qs = ZylS.nn.softmax(KeL5, name='softmax_tensor')\n N6Z1 = {'logits': KeL5, 'classes': RSpH, 'probs': t2qs}\n QbSa = {'output': ZylS.estimator.export.ClassificationOutput(scores=t2qs)}\n if Tuqy == ZylS.estimator.ModeKeys.PREDICT:\n ...
[ "0.6668788", "0.6369035", "0.6088024", "0.585658", "0.5825897", "0.58146685", "0.5756775", "0.5727897", "0.56512773", "0.5646046", "0.5442413", "0.542282", "0.5408609", "0.539449", "0.5385028", "0.53844607", "0.53671706", "0.53646314", "0.53413576", "0.53340393", "0.53319436"...
0.6810436
0
Sets the object_property_name of this TimelineEventTemplateToken.
def _8pT(YKHO, _8pT): YKHO._object_property_name = _8pT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VgTv(YKHO, tB6k='DefaultObject'):\n YKHO.obj_name = tB6k", "def ZgoD(YKHO, mWFP: str) -> None:\n mWFP = str(mWFP)\n if len(mWFP) > 100:\n mWFP = mWFP[:100]\n YKHO.prop_name = mWFP", "def BlEb(YKHO, BlEb):\n YKHO._object_def_name = BlEb", "def VgTv(YKHO, YWSi, av29):\n YKHO.send_O...
[ "0.6895584", "0.60614604", "0.58617884", "0.5766865", "0.57661223", "0.56574374", "0.55981493", "0.5525939", "0.5515005", "0.54376304", "0.54189056", "0.5352971", "0.5352756", "0.5301691", "0.52696735", "0.5257656", "0.5257656", "0.52554286", "0.5253431", "0.524873", "0.52487...
0.75223273
0
Sets the name of this TimelineEventTemplateToken.
def mWFP(YKHO, mWFP): if YKHO.local_vars_configuration.client_side_validation and mWFP is None: raise ValueError('Invalid value for `name`, must not be `None`') YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qm1k(YKHO, qm1k):\n YKHO._template_name = qm1k", "def iApO(YKHO, mWFP):\n hlel = YKHO.copy()\n hlel.token_name = mWFP\n return hlel", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(Y...
[ "0.69485897", "0.6855805", "0.65291727", "0.65291727", "0.65291727", "0.65291727", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.65205985", "0.6515983", "0.65060484", ...
0.0
-1
Sets the type of this TimelineEventTemplateToken.
def type(YKHO, type): if YKHO.local_vars_configuration.client_side_validation and type is None: raise ValueError('Invalid value for `type`, must not be `None`') BbPm = ['date', 'enumeration', 'number', 'string'] if YKHO.local_vars_configuration.client_side_validation and type not in BbPm: ra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TG_K(YKHO, type):\n YKHO.type = type", "def TG_K(YKHO, type):\n YKHO.type = type", "def TG_K(YKHO, type):\n YKHO._type = type", "def type(YKHO, type):\n YKHO._type = type", "def type(YKHO, type):\n YKHO._type = type", "def type(YKHO, type):\n YKHO._type = type", "def type(YKHO, ty...
[ "0.67262554", "0.67262554", "0.6704004", "0.6483246", "0.6483246", "0.64331496", "0.64331496", "0.64331496", "0.64331496", "0.64331496", "0.64331496", "0.64331496", "0.64331496", "0.64331496", "0.64331496", "0.64331496", "0.64331496", "0.64331496", "0.64331496", "0.64331496", ...
0.5375727
82
Sets the created_at of this TimelineEventTemplateToken.
def aJ2e(YKHO, aJ2e): YKHO._created_at = aJ2e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e", "def aJ2e(YKHO, aJ2e: 'datetime'):\n YKHO._attrs['createdAt'] = aJ2e", "def aJ2e(YKHO, aJ2e: 'datetime'):\n YKHO._attrs['createdAt'] = aJ2e", "def aJ2e(YKHO, aJ2e: 'datetime'):\n YKHO._attrs['createdAt'] = aJ2e", "def aJ2e(YKHO, aJ2e: 'str'):\n ...
[ "0.74666506", "0.7258087", "0.7258087", "0.7258087", "0.720285", "0.7202447", "0.7202447", "0.71323866", "0.66994673", "0.63882613", "0.6341607", "0.6328011", "0.63148814", "0.63114446", "0.62890184", "0.5968378", "0.5867426", "0.5783182", "0.5767339", "0.57574934", "0.575749...
0.74397564
14
Sets the updated_at of this TimelineEventTemplateToken.
def zB0d(YKHO, zB0d): YKHO._updated_at = zB0d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zB0d(YKHO, zB0d: 'datetime'):\n YKHO._attrs['updatedAt'] = zB0d", "def zB0d(YKHO, zB0d: 'datetime'):\n YKHO._attrs['updatedAt'] = zB0d", "def zB0d(YKHO, zB0d: 'datetime'):\n YKHO._attrs['updatedAt'] = zB0d", "def zB0d(YKHO, zB0d):\n if YKHO.local_vars_configuration.client_side_validation and ...
[ "0.7025218", "0.7025218", "0.7025218", "0.6918352", "0.57623476", "0.57623476", "0.57623476", "0.5706824", "0.5676351", "0.56562376", "0.5650007", "0.5650007", "0.56115884", "0.56115884", "0.56115884", "0.5557712", "0.5557712", "0.5556558", "0.55175215", "0.55093867", "0.5509...
0.69793683
10
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, pXI4): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.80886984", "0.80886984", "0.8055307", "0.7983415", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, pXI4): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Creates a xarray.Dataset to store the results
def QeMc(YKHO, dgBp): ITS7 = [a1PO.AsPython() for a1PO in iU97.timerange(iU97.AsCMFtime(YKHO.starttime), iU97.AsCMFtime(YKHO.starttime + dgBp), YKHO.dt)] rb7a = YKHO.depth agtu = oyIN.zeros((len(ITS7), len(rb7a))) * oyIN.NaN oxOY = zuVY.Dataset({'N': (('time', 'depth'), agtu.copy()), 'Corg': (('time', '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cNYr(K2u2):\n __n6 = x3i3()\n __n6._addData(K2u2[0])\n __n6._addData(K2u2[1])\n __n6._addData(K2u2[3])\n __n6._addData(K2u2[5])\n __n6._addData(K2u2[6])\n __n6._addData(K2u2[9])\n __n6._addData(K2u2[8])\n __n6._addData(K2u2[4])\n return __n6", "def GK1d():\n WKvO = oyIN.zeros...
[ "0.7164753", "0.6751458", "0.6747983", "0.6716568", "0.6710311", "0.668696", "0.66866434", "0.66702366", "0.6648725", "0.6568152", "0.6544536", "0.6543", "0.6507623", "0.64941955", "0.64941955", "0.64941955", "0.63923025", "0.6376234", "0.6313142", "0.6302459", "0.6289823", ...
0.0
-1
Close the sqlalchemy session opened by DB
def WoCN(YKHO): YKHO.session.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ryg1(YKHO, cuiw):\n cuiw.close()", "def HuIG(YKHO):\n if YKHO.__session is not None:\n YKHO._rollback()\n YKHO.__session.close()", "def x9p9(YKHO):\n YKHO.session.execute(lUer)\n YKHO.session.execute(Ri08)\n YKHO.session.execute(GdKG)\n YKHO.session.shutdown()\n YKHO.clus...
[ "0.87992495", "0.77118737", "0.7641064", "0.7379619", "0.7297088", "0.7287487", "0.7246039", "0.72336274", "0.72331834", "0.72331834", "0.72331834", "0.72331834", "0.72331834", "0.72331834", "0.72201556", "0.7164184", "0.7153349", "0.7087102", "0.7061147", "0.70595396", "0.70...
0.0
-1
Creates a `Dataset` whose elements are generated by `generator`.
def JYef(c2Yh, rbzu, Txl5=None): rbzu = tuple(rbzu) return ZylS.data.Dataset.from_generator(c2Yh, output_types=rbzu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PH3h(WKvO=None, LVAh=None, Ep8u=None, hXNa=False, QOe9=False, I7Gy=None):\n if isinstance(WKvO, PR8q):\n return WKvO\n else:\n xkW5 = GYFs(WKvO, LVAh, batch_size=Ep8u, test=QOe9, shuffle=hXNa, num_workers=I7Gy)\n return xkW5", "def qnGb(__n6):\n ZRAy = ZylS.data.Dataset.from_ten...
[ "0.66292864", "0.64848524", "0.6449001", "0.64477146", "0.6363773", "0.6302747", "0.6298054", "0.6287639", "0.62759185", "0.6229109", "0.6197006", "0.6149349", "0.6143628", "0.6091507", "0.6089021", "0.6085192", "0.6080453", "0.6064802", "0.6064738", "0.6036252", "0.60295475"...
0.7466422
0
Creates a Datasetloader to trian network. We recommend using this function.
def RqhR(__n6, Ep8u, hXNa=False, lM6R=False, NT8N=10000): if hXNa: __n6 = Owi7(__n6, buffer_size=NT8N) __n6 = Qqmr(__n6, batch_size=Ep8u, drop_last=lM6R) __n6 = __n6.prefetch(buffer_size=ZylS.data.experimental.AUTOTUNE) return __n6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K1Op(YKHO) -> ht2j.utils.data.DataLoader:\n return ht2j.utils.data.DataLoader(YKHO.dataset_train, **YKHO.dl_kwargs)", "def oDmi(b32v):\n mc9j = dYW3([n4Vf(limit_angle=oyIN.pi / 4, p=1.0), S0sW(scaling_range=(0.95, 1.05), p=1.0)], p=0.66)\n EPL3 = _5e6(b32v, mode='train', lidar_aug=mc9j, hflip_prob=b...
[ "0.6979198", "0.6944243", "0.6796961", "0.67632306", "0.675923", "0.670563", "0.6684407", "0.66537285", "0.66524976", "0.653263", "0.6509448", "0.65055144", "0.64861083", "0.64585483", "0.6450425", "0.64472693", "0.6437459", "0.6418441", "0.64089316", "0.6408665", "0.63968045...
0.0
-1
Define parameters necessary for HN(x,s) calculation.
def FIMM(YKHO, fFtG, OgWl, P7_E): try: YKHO.__name__ = HBct.sha1(tq_1.getsource(fy2T.__call__).encode('utf-8')).hexdigest() except IOError: YKHO.__name__ = fy2T.__name__ YKHO.__name__ += str([fFtG, OgWl, P7_E]) YKHO.substrate_path_list = [fFtG[uGST] for uGST in sorted(fFtG)] YKHO.spe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C7Ls(exwG, WKvO):\n if exwG == 0:\n ok8c = 1\n elif exwG == 1:\n ok8c = 2 * WKvO\n else:\n LTpL = 1\n mF28 = 2 * WKvO\n for YRbF in range(1, exwG):\n C7Ls = 2 * WKvO * mF28 - 2 * YRbF * LTpL\n LTpL = mF28\n mF28 = C7Ls\n ok...
[ "0.689373", "0.6808931", "0.6642394", "0.6492595", "0.62098414", "0.6177306", "0.61306596", "0.60881937", "0.60543615", "0.6021265", "0.5913192", "0.5847633", "0.5833502", "0.5826657", "0.58167136", "0.58110625", "0.5810336", "0.5805862", "0.5793413", "0.57760584", "0.5775234...
0.0
-1
Return the max of index_array[n] ns[n].
def e503(*LA60): Aofo = XTiz.max(XTiz.stack([WKvO.flatten() for WKvO in LA60]) * YKHO.species_substrate_suitability_index_array, axis=0) Aofo = Aofo.reshape(LA60[0].shape) Aofo[LA60[0] == n6DH] = n6DH return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYEG(jzdc):\n return jzdc.argmax()", "def BYEG(jzdc):\n return jzdc.argmax()", "def BYEG(jzdc):\n return jzdc.argmax()", "def max(YKHO):\n max = 0\n jzdc = YKHO.array_form\n for YRbF in Ni9Y(len(jzdc)):\n if jzdc[YRbF] != YRbF and jzdc[YRbF] > max:\n max = jzdc[YRbF]\n...
[ "0.7536737", "0.7536737", "0.7536737", "0.7222853", "0.68984747", "0.6882133", "0.68491167", "0.68432766", "0.67890155", "0.6690367", "0.66585493", "0.6630234", "0.66094124", "0.65890014", "0.65506303", "0.65227556", "0.64673805", "0.6464596", "0.6440154", "0.64349324", "0.64...
0.69903696
4
Return max(0,PYT_arraymp_array) accounting for nodata.
def nrOS(YKHO, ypK8, g4iB): BmEm = ypK8 != n6DH Aofo = XTiz.empty_like(ypK8) Aofo[:] = n6DH Aofo[BmEm] = g4iB[BmEm] - ypK8[BmEm] wqgP = BmEm & (Aofo < 0.0) Aofo[wqgP] = 0.0 return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max(YKHO):\n return oyIN.max(YKHO.data_array)", "def max(YKHO):\n max = 0\n jzdc = YKHO.array_form\n for YRbF in Ni9Y(len(jzdc)):\n if jzdc[YRbF] != YRbF and jzdc[YRbF] > max:\n max = jzdc[YRbF]\n return max", "def max(YKHO):\n return XTiz.ma.max(YKHO.data)", "def Bka7...
[ "0.6849335", "0.63495964", "0.6242755", "0.6096446", "0.6067045", "0.5987064", "0.59810203", "0.59657395", "0.59592104", "0.59182197", "0.5870758", "0.5862292", "0.58564186", "0.58422303", "0.58092546", "0.57721967", "0.57652277", "0.5732274", "0.5703836", "0.5693491", "0.568...
0.6843436
1
Return the H1DS homepage.
def C_QL(QePW): return SGJU('h1ds_core/homepage.html', context_instance=K1Ja(QePW))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')", "def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')", "def vja_(YKHO) -> str:\n return YKHO._home_page", "def C_QL():\n return TvZl('home/index.html', title='Home')", "def DfM3(YKHO):\n KcEq = YKHO.url[YKHO.ho...
[ "0.75569904", "0.74664396", "0.74547637", "0.7371183", "0.7328399", "0.73131645", "0.72865003", "0.7273096", "0.7273096", "0.7261254", "0.7233714", "0.71789074", "0.7157429", "0.7149139", "0.7139731", "0.7135475", "0.70633346", "0.7048321", "0.7032876", "0.7028238", "0.699833...
0.7144123
14
Confirm that equality of two objects is correct
def EesT(TZWW, hw5c, Viqq): Hp8u = k_D4.typedtree(TZWW) gPdF = k_D4.typedtree(hw5c) kUBT = Hp8u == gPdF raTX = kUBT == Viqq if raTX: KCHu = 'pass' else: KCHu = 'fail' print(f'{TZWW} == {hw5c} is {kUBT} : {KCHu}') return raTX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def whu6(YKHO):\n pass", "def uq87(YKHO):\n Vo9x = yp3N()\n YKHO.assertTrue(Vo9x == Vo9x)", "def up4I(YKHO):\n jzdc = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n Fg_i = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n YKHO.assertTrue(jzdc == Fg_i)\n YKHO.assertTr...
[ "0.839556", "0.7890221", "0.7800411", "0.77157", "0.76026684", "0.7552945", "0.7527262", "0.75270545", "0.7526524", "0.7463354", "0.746216", "0.7453554", "0.7450629", "0.7450629", "0.7400433", "0.738295", "0.738295", "0.738295", "0.738295", "0.738295", "0.738295", "0.738295...
0.7639101
4
Fetch passsword for MongoDB This is stored in an environmental variable MONGO_PASSWORD.
def AKzn(): TGcY = Hy7s.environ.get('MONGO_PASSWORD') if TGcY is None: raise EnvironmentError('Environmental variable MONGO_PASSWORD not set. This is required for communicating with the run database. To fix this problem, Do:\n\n\texport MONGO_PASSWORD=xxx\n\nThen rerun this command.') return TGcY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K9UI():\n jTXt = cCWe.get()\n if jTXt:\n return jTXt\n return wT9w.get()", "def AuKh(YKHO):\n return YKHO.controller.dbfilter.db.get('passwd/user-password')", "def jTXt():\n zOso = Hy7s.environ['CREODIAS_PASSWORD']\n if zOso:\n return zOso\n raise ValueError('Set environm...
[ "0.68636054", "0.67521226", "0.6697854", "0.6690642", "0.6690642", "0.66415757", "0.65538234", "0.6538532", "0.6530596", "0.64478207", "0.6406388", "0.6391224", "0.63902235", "0.63549674", "0.63389236", "0.63389236", "0.63389236", "0.629616", "0.62766737", "0.62465817", "0.62...
0.78077453
0
Serializes the metadata_relations of a metadata element into a list of dict elements Faster version than using ModelSerializers
def D31H(J87D: Metadata) -> list: jpc5 = [] if J87D.is_catalogue_metadata: pRXp = K7w4.objects.filter(from_metadata__pk=J87D.pk).exclude(**Jd7p) else: pRXp = K7w4.objects.filter(from_metadata__pk=J87D.pk) for wvau in pRXp: Vwz1 = wvau.to_metadata TzuU = U8Lr() Tzu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n return jth9.deepcopy(YKHO._metadata)", "def Fojw(YKHO):\n return qQXR.dumps(YKHO._metadata)", "def LPGD(yIVm):\n DUYk = jth9.deepcopy(yIVm)\n xU0C = DUYk['tables']\n if isinstance(xU0C, dict):\n DUYk['tables'] = {tyNF: e5kH for tyNF, e5kH in xU0C.items() if e5kH.pop('use...
[ "0.5597735", "0.5514984", "0.5513945", "0.5499598", "0.5476142", "0.5454592", "0.5383933", "0.5369606", "0.5344086", "0.53158903", "0.52631223", "0.52350616", "0.52245986", "0.521663", "0.5215631", "0.5205893", "0.5188529", "0.5180708", "0.51447994", "0.51406103", "0.51370585...
0.739467
0
Serializes the categories of a metadata element into a list of dict elements Faster version than using ModelSerializers
def dmG6(J87D: Metadata) -> list: LeZt = [] cC5s = J87D.categories.all() for ACia in cC5s: Ghho = U8Lr() Ghho['id'] = ACia.id Ghho['type'] = ACia.type Ghho['title_EN'] = ACia.title_EN Ghho['description_EN'] = ACia.description_EN Ghho['title_locale_1'] = ACia.t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVHL():\n LeZt = cuiw.query(qZuN).all()\n DumB = cuiw.query(kLxY).all()\n dvYp = []\n for YRbF in LeZt:\n BDwY = []\n for r845 in DumB:\n if r845.category_id == YRbF.id:\n ycBG = r845.serialize\n BDwY += [ycBG]\n ycBG = YRbF.serialize\n ...
[ "0.61547667", "0.6093083", "0.5961428", "0.57832956", "0.5778641", "0.5686849", "0.5675704", "0.5671396", "0.56606966", "0.5631689", "0.5615325", "0.5593196", "0.5572063", "0.55644137", "0.5558667", "0.55541766", "0.55368745", "0.55333644", "0.5532627", "0.55303705", "0.55230...
0.73835206
0
Serializes a metadata QuerySet into a list of dict elements Faster version than using ModelSerializers
def odL_(fd4X: QuerySet) -> list: u_OF = not isinstance(fd4X, iu5r) if u_OF: UxQk = U6xh(fd4X) else: UxQk = [U6xh(J87D) for J87D in fd4X] return UxQk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dyhw(YKHO, SR0I):\n hzb5 = []\n nRVo = False\n f4lR = YKHO.get_fields()\n try:\n iter(SR0I)\n nRVo = True\n WPdU = IyFz.serialize('python', SR0I, fields=f4lR, use_natural_keys=YKHO.serialize_natural_keys)\n except TypeError:\n WPdU = IyFz.serialize('python', [SR0I], f...
[ "0.66306764", "0.63059056", "0.61225134", "0.6053527", "0.5991345", "0.59819984", "0.5969821", "0.58601785", "0.583359", "0.5679089", "0.56614566", "0.5644411", "0.55993074", "0.5576271", "0.5570644", "0.5568526", "0.55613095", "0.5559729", "0.55019426", "0.5496132", "0.54752...
0.6735192
0
Return hash of whole block instance after converting to JSON
def Sfmh(YKHO) -> str: xhfC = YKHO.__dict__.copy() xhfC.pop('hash', None) h_4C = qQXR.dumps(xhfC, sort_keys=True).encode('utf-8') return hqsM(h_4C).hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VKvK(YKHO) -> dict:\n return YKHO.blocks", "def Is7w(YKHO):\n Aofo = {}\n Aofo['block_type'] = 'register'\n Aofo['prev_hash'] = WR89.b64encode(YKHO.prev_hash).decode()\n Aofo['timestamp'] = YKHO.time\n Aofo['user_id'] = YKHO.user_id\n Aofo['public_key'] = WR89.b64encode(YKHO.public_key.p...
[ "0.71949506", "0.71855867", "0.7048604", "0.70317364", "0.7015457", "0.697036", "0.6908528", "0.68199724", "0.6771626", "0.6767285", "0.67160416", "0.6679413", "0.6677845", "0.66648704", "0.66191244", "0.66004235", "0.65690655", "0.65690655", "0.6561875", "0.6561875", "0.6524...
0.69374734
6
Initialize dense layer weights
def xzk5(zi3C, a6Jb): return oyIN.random.randn(a6Jb, zi3C) * 0.01
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTi3(YKHO):\n dIoi.WeightsInitializer.initialize_layer_or_model(YKHO._batch)", "def C0Lv(YKHO):\n pass", "def vB93(YKHO, HhVR):\n for XIhG in YKHO.valid_labels:\n YKHO.weights[XIhG] = oyIN.zeros(HhVR)", "def vB93(YKHO):\n YKHO.embedding.weight.data.uniform_(-0.1, 0.1)\n YKHO.word.bi...
[ "0.7668738", "0.7625057", "0.7620753", "0.7602376", "0.7520606", "0.74931216", "0.74931216", "0.74931216", "0.74772215", "0.7432522", "0.74204594", "0.74027145", "0.7399769", "0.73951656", "0.73568285", "0.73454875", "0.7336092", "0.73276144", "0.73073596", "0.7301183", "0.73...
0.0
-1
Returns the flask instance (not part of the service interface, since it is specific to flask).
def P4t4(YKHO): return YKHO._app
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H6Ho(YKHO):\n return YKHO._flask_app", "def H39v() -> L2w0:\n P4t4: L2w0 = L2w0(__name__)\n return P4t4", "def cEGt(YKHO):\n return YKHO.__class__.get_bp()", "def P4t4(QePW):\n P4t4 = WsL5.Flask(__name__)\n return P4t4", "def DbxN():\n N5z6 = L2w0(__name__)\n return N5z6", "de...
[ "0.76105446", "0.6987309", "0.6985572", "0.6973799", "0.68015057", "0.67185515", "0.65109295", "0.6484693", "0.6451057", "0.621743", "0.61990577", "0.6184926", "0.61752164", "0.6164337", "0.61635953", "0.6127088", "0.6113862", "0.60867745", "0.6068017", "0.6052013", "0.600961...
0.5759507
42
Replace the old with the new in the given string count times. This goes from the back to the front!
def Svsz(vIwR, gv2B, BdN0, UHFx): BDwY = vIwR.rsplit(gv2B, UHFx) return BdN0.join(BDwY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Svsz(vIwR, gv2B, BdN0, UHFx):\n return vIwR[::-1].replace(gv2B[::-1], BdN0[::-1], UHFx)[::-1]", "def zRaN(KCHu, gv2B, BdN0, UHFx=0):\n return ZbWC.sub(gv2B, BdN0, KCHu, count=UHFx)", "def MSda(vIwR, UHFx):\n return vIwR * int(UHFx)", "def finE(YKHO, qx_G, vIwR, UHFx=0):\n return YKHO.re.sub(q...
[ "0.74650604", "0.65457153", "0.6351178", "0.62096477", "0.5940715", "0.5936419", "0.59004676", "0.5879526", "0.57463443", "0.5654889", "0.5650648", "0.5554184", "0.5549118", "0.5547601", "0.55037034", "0.5468701", "0.5455043", "0.5444446", "0.54428685", "0.54398036", "0.54299...
0.7175445
1
Return the fiscal quarter.
def Ln93(z3U7): if z3U7 in [1, 2, 3]: return 1 elif z3U7 in [4, 5, 6]: return 2 elif z3U7 in [7, 8, 9]: return 3 elif z3U7 in [10, 11, 12]: return 4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eQj2(YKHO, yIHx):\n return Eu6F(yIHx).quarter", "def q3Ek(YKHO):\n YKHO.quarter_nums = YKeq.calc_quarter(YKHO.active_date[2], YKHO.active_date[1])\n YKHO.quarter = YKeq.get_quarter(YKHO.active_date[2], YKHO.active_date[1])", "def tMZy(YKHO) -> tTFA:\n qmLP.warn('`quarter` will return int32 inde...
[ "0.78892624", "0.7741802", "0.71683687", "0.7093102", "0.67626345", "0.6756915", "0.66672367", "0.665667", "0.665667", "0.66535443", "0.63120824", "0.6058275", "0.60458523", "0.59245384", "0.58669406", "0.58297664", "0.5778471", "0.57734895", "0.5730383", "0.56805885", "0.560...
0.8191591
0
Given an array, rotate the array to the right by k steps, where k is nonnegative.
def N0Pp(YKHO, xYvp, G1Hx): if not xYvp: return xYvp if G1Hx < 0: raise Exception('Invalid Input!') YKHO.swap(xYvp, 0, len(xYvp) - 1) YKHO.swap(xYvp, 0, G1Hx - 1) YKHO.swap(xYvp, G1Hx, len(xYvp) - 1) return xYvp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XKfa(ezWE, G1Hx):\n ezWE[:] = ezWE[len(ezWE) - G1Hx:] + ezWE[:len(ezWE) - G1Hx]", "def XKfa(ezWE: list, G1Hx: int):\n return ezWE[-G1Hx:] + ezWE[:len(ezWE) - G1Hx]", "def N0Pp(xYvp, G1Hx):\n xYvp = xYvp[len(xYvp) - G1Hx:] + xYvp[:len(xYvp) - G1Hx]", "def N0Pp(YKHO, xYvp, G1Hx):\n exwG = len(x...
[ "0.77078885", "0.75690603", "0.73625076", "0.7225634", "0.7224306", "0.71523654", "0.7125573", "0.71147627", "0.71105784", "0.7099374", "0.7056327", "0.7053634", "0.7025759", "0.7021514", "0.6981828", "0.69235736", "0.6917008", "0.69145703", "0.6897483", "0.68806446", "0.6853...
0.65920734
43
Sets the begin_time of this FsaResultExtended.
def xwLr(YKHO, xwLr): if xwLr is None: raise ValueError('Invalid value for `begin_time`, must not be `None`') YKHO._begin_time = xwLr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cOuk(YKHO, rvsq):\n YKHO.startTime = iVVu(rvsq)", "def SWox(YKHO, SWox):\n YKHO._start_time = SWox", "def SWox(YKHO, SWox):\n YKHO._start_time = SWox", "def SWox(YKHO, SWox):\n YKHO._start_time = SWox", "def SWox(YKHO, SWox):\n YKHO._start_time = SWox", "def SWox(YKHO, SWox):\n YKHO...
[ "0.6503381", "0.6263817", "0.6263817", "0.6263817", "0.6263817", "0.6263817", "0.6202278", "0.6202278", "0.61945164", "0.6120177", "0.5983767", "0.5969884", "0.59455585", "0.5798312", "0.5797696", "0.57750404", "0.5767664", "0.56468934", "0.56414354", "0.55777675", "0.5572187...
0.74866474
0
Sets the end_time of this FsaResultExtended.
def C7pn(YKHO, C7pn): if C7pn is None: raise ValueError('Invalid value for `end_time`, must not be `None`') YKHO._end_time = C7pn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def M4HV(YKHO, M4HV):\n YKHO._end_date_tim...
[ "0.79024464", "0.79024464", "0.79024464", "0.785805", "0.785805", "0.7352294", "0.7309215", "0.73061323", "0.68073964", "0.65779585", "0.6552937", "0.65228623", "0.6517981", "0.651364", "0.651364", "0.651364", "0.6488632", "0.64871913", "0.6436001", "0.6436001", "0.6436001", ...
0.7359777
5
Sets the id of this FsaResultExtended.
def id(YKHO, id): if id is None: raise ValueError('Invalid value for `id`, must not be `None`') YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ekm0(YKHO, quXY):\n YKHO.id = quXY", "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._id = id", "def ...
[ "0.67933357", "0.66477746", "0.6619874", "0.66045976", "0.66045976", "0.66045976", "0.66045976", "0.66045976", "0.658923", "0.65842646", "0.6550672", "0.6534939", "0.6534939", "0.6534939", "0.6534939", "0.6534939", "0.6534939", "0.6534939", "0.6534939", "0.6534939", "0.653493...
0.0
-1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, T8Xj): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.80885184", "0.80885184", "0.805514", "0.7983044", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", "0.7966715", ...
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 if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.84560555", "0.83913696", "0.8143685", "0.81403786", "0.8131871", "0.8093231", "0.80915105", "0.80915105", "0.80915105", "0.8084564", "0.8084564", "0.8075547", "0.8075547", "0.8065006" ]
0.0
-1
Test storing data to Amazons S3, both to metadata and data buckets.
def AUC3(YKHO): GPtr = PSrQ() HCGJ = GPtr.config.get('metadata', 'bucket') lUfH = GPtr.config.get('data', 'bucket') olT7 = sZuJ.S3(GPtr, HCGJ).connect() kT1P = sZuJ.S3(GPtr, lUfH).connect() Oz57 = dict() w8vc = dict() for nPrm, yIVm in (('Data 1', 'Metadata 1'), ('Data 2', 'Metadata 2'))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r2yl(YKHO):\n GPtr = PSrQ()\n HCGJ = GPtr.config.get('metadata', 'bucket')\n lUfH = GPtr.config.get('data', 'bucket')\n olT7 = sZuJ.S3(GPtr, HCGJ).connect()\n kT1P = sZuJ.S3(GPtr, lUfH).connect()\n H5ew = ZDXb('LICENSE')\n olT7.store(H5ew, 'LICENSE METADATA')\n kT1P.store_from_filename(...
[ "0.7096907", "0.70238185", "0.684018", "0.6825385", "0.6774226", "0.6680321", "0.6658622", "0.6583668", "0.6547225", "0.6534585", "0.6495966", "0.6438647", "0.6437277", "0.64360756", "0.64348114", "0.6406479", "0.6402676", "0.6394501", "0.63892734", "0.6388103", "0.63810086",...
0.8207995
0
Test sequences in annotate
def LwbZ(YKHO): YKHO.t('1,2 annotate note') Wxnj, yvT9, XObx = YKHO.t('_get 1.annotations.1.description 2.annotations.1.description') YKHO.assertEqual('note note\n', yvT9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3nu(r8hN, NR9j):\n ...", "def kZeT():\n dixj = K2Jw(long_anno=1)\n assert dixj[0]['Consequence'] == 'To Long Annotation'", "def SpSu(YKHO, UAKC):\n if YKHO.slices is None or YKHO.ipa_regions is None:\n raise ValueError('No IPA regions. Call setup_regions() prior')\n SuPp = YKHO.slice...
[ "0.79207575", "0.6669019", "0.5986355", "0.5913893", "0.58307904", "0.5828959", "0.5824974", "0.57963955", "0.5736531", "0.5711248", "0.57050824", "0.5681006", "0.5655896", "0.56152993", "0.56016886", "0.55721396", "0.5549409", "0.553553", "0.55196506", "0.5447854", "0.544084...
0.7919261
1
Obtains forward model for attribution calculation.
def wUXi(YKHO, JYFh, JnjE): dnR4 = JnjE.to(YKHO.device) dnR4.requires_grad = True JYFh.requires_grad = True if YKHO.model_name in ['MPNN', 'AttentiveFP', 'Weave']: ezLd = dnR4.edata.pop('e').to(YKHO.device) ezLd.requires_grad = True return YKHO.model_instance(dnR4, JYFh, ezLd) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XBR1(YKHO, WKvO):\n if YKHO.project_parameters.loss_function == 'BCELoss':\n return YKHO.activation_function(YKHO.backbone_model(WKvO))\n elif YKHO.project_parameters.loss_function == 'CrossEntropyLoss':\n return YKHO.backbone_model(WKvO)", "def wUXi(YKHO, EcVT):\n qVc7 = []\n k0lF ...
[ "0.677107", "0.6757665", "0.674837", "0.67461365", "0.6693381", "0.6662878", "0.6653157", "0.664764", "0.65741944", "0.656011", "0.65288794", "0.6507014", "0.6467847", "0.64549124", "0.6442284", "0.6419036", "0.6373381", "0.636774", "0.636348", "0.63589954", "0.63437355", "...
0.6484258
12