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
Add a line between two points [std1, corr1] and [std2, corr2]
def t_9e(YKHO, QgyP, uC_2, oD27, yOmW, **B2fa): a1PO = oyIN.linspace(oyIN.arccos(uC_2), oyIN.arccos(yOmW)) Mkmy = oyIN.linspace(QgyP, oD27) return YKHO.ax.plot(a1PO, Mkmy, 'red', linewidth=2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def urnB(YKHO, M1Jx, uC_2, yOmW, **B2fa):\n a1PO = oyIN.linspace(oyIN.arccos(uC_2), oyIN.arccos(yOmW))\n Mkmy = oyIN.zeros_like(a1PO) + M1Jx\n return YKHO.ax.plot(a1PO, Mkmy, 'red', linewidth=2)", "def lXKT(XQzp, EBgd, HpuQ, BOkw):\n fUYa, bEXe = (oyIN.array([EBgd[0], HpuQ[0]]), oyIN.array([EBgd[1], ...
[ "0.73186386", "0.6330753", "0.6172619", "0.6076223", "0.60636544", "0.60072315", "0.5959107", "0.59067386", "0.58517635", "0.5826788", "0.5796374", "0.57432646", "0.5697054", "0.56763124", "0.56763124", "0.5629721", "0.5583803", "0.55724424", "0.556278", "0.5562631", "0.55447...
0.66322917
1
Compute the posterior distribution of live cells given stimulus dose and observable values. Input
def IKSE(YKHO, KCHu, W061, or8S): if type(KCHu) == oyIN.ndarray: return YKHO._cond_dose_response(KCHu, W061, or8S) else: return YKHO._posterior_given_stim(KCHu, W061, or8S)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IKSE(YKHO, sw4B, W061):\n KAdI = YKHO.hidden_obs(ht2j.cat([sw4B, W061], dim=-1))\n WZ01 = YKHO.poster(KAdI)\n Oql3 = YKHO.post_mean(WZ01)\n WjVB = ht2j.exp(YKHO.post_sigma(WZ01))\n return (Oql3, WjVB)", "def MQAP(YKHO):\n Kt_s = YKHO.T\n nMvt = YKHO.K\n for dItr in range(1, YKHO.N + 1...
[ "0.5894701", "0.584598", "0.57622224", "0.564624", "0.5593989", "0.5563269", "0.54888", "0.5483124", "0.5474621", "0.5428959", "0.5423016", "0.5397032", "0.5379", "0.53718823", "0.5364652", "0.53634334", "0.5362777", "0.5356767", "0.533914", "0.53335476", "0.5319441", "0.53...
0.5514862
6
Check to see if the number is divisible by all possible 3 digit substrings.
def L6Qo(FGW3): vIwR = str(FGW3) for vgXP in Ni9Y(1, len(vIwR) - 2): Npeo = vIwR[vgXP:vgXP + 3] if int(Npeo) % V4pP[vgXP - 1]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tOVI(mLGw, exwG):\n return mLGw % exwG == 0", "def KGCO(K3FP: str) -> bool:\n for YRbF in range(rbkU):\n _0VL = Edua[YRbF]\n YTYa = int(K3FP[_0VL[0] - 1:_0VL[1]])\n if YTYa % kO_6[YRbF] != 0:\n return False\n return True", "def jUvx(exwG: int, oCcr: Iterable) -> boo...
[ "0.68361807", "0.6700276", "0.66646105", "0.65157944", "0.65157944", "0.64472467", "0.6445171", "0.6416292", "0.64152324", "0.6393683", "0.6390676", "0.636498", "0.6359953", "0.63241255", "0.6315646", "0.62723976", "0.6238878", "0.6234731", "0.6212701", "0.6184209", "0.617644...
0.824374
0
Returns a key hexed from random bytes at the given length for crypto.
def zIS9(u54L=M7Cx): return Hy7s.urandom(u54L).encode('hex')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mYG3(u54L):\n if u54L % 2 != 0:\n raise ValueError(\"'length' must be a multiple of 2\")\n yPwV = int(u54L / 2)\n XJMU = Hy7s.urandom(yPwV)\n return MRxC.hexlify(XJMU).decode()", "def rpli(u54L=32):\n return Hy7s.urandom(u54L)", "def szjw(u54L):\n return ''.join((tuKI.choice(vIwR.a...
[ "0.83131474", "0.8192357", "0.8062324", "0.7946797", "0.7785568", "0.778308", "0.7620973", "0.7614206", "0.76092666", "0.7577782", "0.7569808", "0.7401408", "0.73823965", "0.73588", "0.72859305", "0.7280881", "0.7273216", "0.7152287", "0.70835525", "0.7049502", "0.70331925", ...
0.8589039
0
Return the size of tree.
def zNig(YKHO): if len(YKHO.children) == 0: return 1 else: return 1 + sum([WKvO.size() for WKvO in YKHO.children])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ESP5(YKHO):\n if YKHO._tree_size is not None:\n return YKHO._tree_size\n if YKHO.is_root:\n YKHO.arbor._setup_tree(YKHO)\n YKHO.arbor._store_node_info(YKHO, '_tree_size')\n else:\n YKHO._tree_size = len(list(YKHO['tree']))\n return YKHO._tree_size", "def zNig(YKHO) -> ...
[ "0.88174284", "0.88089615", "0.85781014", "0.8544507", "0.85161334", "0.84127957", "0.83828354", "0.83263654", "0.8154769", "0.79699403", "0.7859243", "0.78302044", "0.77896833", "0.7780197", "0.77206", "0.763663", "0.76130414", "0.7611206", "0.7600058", "0.7578258", "0.75292...
0.78098524
12
Returns an int64_list from a bool / enum / int / uint.
def Oety(BWXx): return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo", ...
[ "0.68822104", "0.6595804", "0.6461252", "0.6448161", "0.6367609", "0.62926817", "0.6269916", "0.621823", "0.6104528", "0.59533274", "0.5947467", "0.5901199", "0.5863832", "0.5863832", "0.58563983", "0.5844792", "0.58434534", "0.5829844", "0.5801042", "0.5793561", "0.5793561",...
0.55319947
47
Check for strings that are UUIDs (UUIDs enclosed in curly braces are valid) {1378F00BBCEA418FB1AFC343EA4F9417} {022CCD4DEDE340EBBE1DFE4041B0A050}
def Xs_K(YKHO) -> bool: s6Cf = YKHO.user_agent.strip('({})') if len(s6Cf) >= 2 and s6Cf[1] == ':': s6Cf = YKHO.user_agent[2:] return jCza(s6Cf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JeQp(QsRX):\n p1kx = 0\n if QsRX != None:\n if len(QsRX) < 10:\n p1kx = 0\n elif QsRX.find('{') > -1 or QsRX.find('}') > -1 or QsRX.lower() != QsRX:\n p1kx = 1\n else:\n p1kx = 2\n return p1kx", "def Nm33(h_Bp):\n return isinstance(h_Bp, str) ...
[ "0.73460853", "0.73424226", "0.7189792", "0.68956435", "0.68942934", "0.6860537", "0.68553716", "0.67757565", "0.67332566", "0.6540647", "0.64938307", "0.6458208", "0.6438391", "0.6417305", "0.63738537", "0.6373422", "0.6355799", "0.6355799", "0.63422585", "0.6331449", "0.630...
0.58549315
29
Return the archive location URI.
def tzoh(YKHO): mWFP = YKHO.app.config['SIPSTORE_ARCHIVER_LOCATION_NAME'] return _JMH.query.filter_by(name=mWFP).one().uri
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q9qR(YKHO):\n return Hy7s.path.join(YKHO.destination_directory, YKHO.__archive_name__)", "def yHgm(B2KD, gwXL, gJmB='jpg'):\n zlqQ, Ux0P = BpwU(B2KD)\n return gwXL + '/' + zlqQ + '/' + Ux0P + '.' + gJmB", "def rnkA(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'location_uri')", "def zFcP(YKHO):...
[ "0.7043057", "0.69406134", "0.66881", "0.6617685", "0.65890115", "0.6554932", "0.6544251", "0.6534544", "0.6534544", "0.6534544", "0.6534544", "0.6534544", "0.6534544", "0.6497794", "0.6494776", "0.6486501", "0.6429628", "0.6412059", "0.63765144", "0.6333575", "0.6287437", ...
0.83230734
0
Set the message token/channel, then call the bas class constructor.
def aRK0(YKHO): YKHO.message = {'token': YKHO._auth, 'channel': YKHO.channel} super()._construct_message()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d, *qIxc, **B2fa):\n YKHO.message = Ol8d\n super().__init__(*qIxc, **B2fa)", "def FIMM(YKHO, Ol8d):\n super().__init__(Ol8d)\n ...
[ "0.7340327", "0.7340327", "0.7340327", "0.7285108", "0.7276043", "0.72251916", "0.72251916", "0.7214396", "0.7208427", "0.71547794", "0.7151964", "0.71008223", "0.71008223", "0.71008223", "0.71008223", "0.71008223", "0.71008223", "0.71008223", "0.71008223", "0.71008223", "0.7...
0.74445486
0
find minimum value in the binary tree
def XcNI(YKHO): if YKHO.left: return YKHO.left.find_min() return YKHO.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XcNI(YKHO) -> i8DB:\n Q6kx = YKHO.root\n while True:\n if not Q6kx.left:\n return Q6kx\n Q6kx = Q6kx.left", "def dgIT(J_Es):\n dzQX = float('inf')\n if m1ww(J_Es):\n return J_Es\n else:\n for Q6kx in J_Es:\n dzQX = min(dzQX, bQ6z(Q6kx))\n ...
[ "0.80589795", "0.8056454", "0.80371964", "0.80029297", "0.7998105", "0.7936794", "0.7902247", "0.7878885", "0.7868591", "0.781862", "0.7793568", "0.7750907", "0.7731552", "0.7652422", "0.7640436", "0.7625846", "0.7604106", "0.75800264", "0.7578118", "0.7573239", "0.7498809", ...
0.7846781
9
find maximum value in the binary tree
def ipPO(YKHO): if YKHO.right: return YKHO.right.find_max() return YKHO.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jqD_(YKHO):\n if YKHO.root:\n YKHO.max_val = YKHO.root.value\n else:\n return 'No tree found'\n\n def _gRY(tk5Y):\n if tk5Y.left:\n _gRY(tk5Y.left)\n if tk5Y.right:\n _gRY(tk5Y.right)\n if YKHO.max_val < tk5Y.value:\n YKHO.max_val = t...
[ "0.88481236", "0.844402", "0.83463925", "0.81999785", "0.80180365", "0.79969794", "0.7975098", "0.7961988", "0.7925224", "0.7899093", "0.78559816", "0.78302693", "0.78004664", "0.7726644", "0.7720577", "0.76765054", "0.7674523", "0.75881475", "0.74246013", "0.736487", "0.7358...
0.7934586
8
Permute a mutation data table's gene, sample and NMAF columns.
def PLiz(r3gs): v2wE(r3gs, 'gene') v2wE(r3gs, 'sample') v2wE(r3gs, 'Normalized') if 'Filler' in r3gs: del r3gs['Filler']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TbTa(lJZH):\n import numpy as oyIN\n return oyIN.random.permutation(lJZH.tolist())", "def cZDQ(YKHO):\n IuXB = oyIN.random.permutation(YKHO.n_samples)\n YKHO.data = YKHO.data.iloc[IuXB]\n YKHO.labels = YKHO.labels.iloc[IuXB]\n YKHO.labels_onehot = YKHO.labels_onehot.iloc[IuXB]\n YKHO.df_...
[ "0.61698025", "0.59699166", "0.5903071", "0.5723355", "0.5637398", "0.5528464", "0.5499227", "0.543115", "0.5423258", "0.54104346", "0.5405247", "0.5401473", "0.5346968", "0.53442794", "0.5332014", "0.5327549", "0.5315308", "0.53120166", "0.5284594", "0.52702045", "0.5233921"...
0.6967431
0
Returns the score for a given review Returns 1 if there is no review with the given identifier
def GtKf(YKHO, ZD1Y): Ylbp = YKHO.get_metadata_item_by_review_id(ZD1Y, YKHO.score_index) if Ylbp is None: return -1 return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c_1S(kSgn, QTiD, zrYs):\n kSgn = kSgn[(kSgn['business_id'] == zrYs) & (kSgn['user_id'] == QTiD)]\n if kSgn.empty:\n return oyIN.nan\n elif len(kSgn) > 1:\n return float(kSgn['stars'].max())\n else:\n return float(kSgn['stars'])", "def c_1S(YKHO, id):\n w2IS = '/v3/educator...
[ "0.6201799", "0.6199192", "0.6183983", "0.60592645", "0.60532284", "0.5974433", "0.5950267", "0.5945879", "0.5890353", "0.58580697", "0.58472925", "0.581598", "0.58078945", "0.57990956", "0.57932633", "0.57251036", "0.5703422", "0.57010114", "0.56840485", "0.56757194", "0.566...
0.7393501
0
String representation of the building block
def zAg0(YKHO): e8uw = [] if YKHO.directory: e8uw.append(aM_I('OpenMPI')) else: e8uw.append(aM_I('OpenMPI version {}'.format(YKHO.version))) e8uw.append(cEzT(ospackages=YKHO.__ospackages)) if YKHO.directory: e8uw.append(jth9(src=YKHO.directory, dest=Hy7s.path.join(YKHO.__wd, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rekt(YKHO):\n return u'{course_key}+{BLOCK_TYPE_PREFIX}+{block_type}+{BLOCK_PREFIX}+{block_id}'.format(course_key=YKHO.course_key._to_string(), BLOCK_TYPE_PREFIX=YKHO.BLOCK_TYPE_PREFIX, block_type=YKHO.block_type, BLOCK_PREFIX=YKHO.BLOCK_PREFIX, block_id=YKHO.block_id)", "def zAg0(YKHO):\n return q1HU(...
[ "0.7110431", "0.69718146", "0.6937294", "0.6923212", "0.6873114", "0.68384624", "0.6801287", "0.6765984", "0.6750321", "0.67492396", "0.67296773", "0.66733634", "0.66658115", "0.6658317", "0.6654951", "0.66429806", "0.6605994", "0.65886337", "0.6574067", "0.655521", "0.653869...
0.0
-1
Return a custom 404 error.
def m7kB(tTpl): return ('Sorry, Nothing at this URL.', 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf():\n return c1Bu(404)", "def RQdI(P1dF):\n return '404 Error'", "def RQdI(P1dF):\n return 'Bummer, there is nothing at this URL.'", "def kfnF(P1dF):\n return ('No page here, dood. 404!', 404)", "def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)", "def m7kB(XObx):\...
[ "0.81159586", "0.80410045", "0.7738874", "0.77369535", "0.77182025", "0.7689595", "0.7670471", "0.76112473", "0.7602477", "0.7570698", "0.75528365", "0.7545827", "0.751882", "0.74745256", "0.7458403", "0.7455682", "0.74548143", "0.74505144", "0.7442062", "0.7428278", "0.74065...
0.7254463
42
Accessor for the maximum number of issued credentials.
def TqHN(YKHO) -> int: return YKHO._max_creds
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n6mp(YKHO):\n return YKHO.config.get('max_count', 500)", "def LU9X(YKHO) -> int:\n return YKHO._lic.params['maxAccessTimes'].value", "def Y0eN(YKHO) -> int:\n return YKHO._attempt_limit", "def leFJ(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'maxclients')", "def wgcg(YKHO) -> h8nf[int]:\n ...
[ "0.66411006", "0.6601515", "0.65705186", "0.6561411", "0.65395725", "0.6536631", "0.65011877", "0.64279604", "0.63409424", "0.63365984", "0.63256127", "0.63256127", "0.6293164", "0.6249128", "0.6249128", "0.62489957", "0.62489957", "0.62489957", "0.62489957", "0.62489957", "0...
0.82493174
0
Accessor for the revocation registry type.
def BPfb(YKHO) -> str: return YKHO._reg_def_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gmVU(YKHO, qdJE):\n qQ1Y = ccKF.getAttr('%s.type' % qdJE)\n try:\n return yHyU.types[qQ1Y]\n except IndexError:\n raise ValueError('The type on the node %s could not be associated with an available type: %s' % (qdJE, yHyU.types))", "def rG4I(YKHO):\n return YKHO._rdf_type", "def F...
[ "0.6687819", "0.64504707", "0.62291914", "0.62291914", "0.61967313", "0.61791503", "0.61791503", "0.6154003", "0.6153839", "0.61267936", "0.6124155", "0.6096765", "0.6083589", "0.6083589", "0.6083589", "0.6083589", "0.6083589", "0.6083589", "0.6083589", "0.6083589", "0.608358...
0.60502154
63
Accessor for the revocation registry definition.
def Ww_X(YKHO) -> dict: return YKHO._reg_def
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jgGH(Emd4, MbbD: dict, wnAz: bool) -> 'RevocationRegistry':\n _umG = None\n QfhL = MbbD['id']\n Ih2J = MbbD['value']['tailsLocation']\n x5uU = ZbWC.match('^.*?([^:]*):3:CL:.*', MbbD['credDefId'])\n YAB3 = x5uU.group(1) if x5uU else None\n DbxN = {'cred_def_id': MbbD['credDefId'], 'issuer_did'...
[ "0.6046955", "0.5656428", "0.5539884", "0.5397157", "0.5377235", "0.52657837", "0.526368", "0.5181764", "0.5142401", "0.5141512", "0.50868005", "0.50826746", "0.5072512", "0.50693274", "0.50633323", "0.4959276", "0.49344507", "0.4922987", "0.49180284", "0.49130836", "0.488868...
0.53610677
5
Setter for the tails file public URI.
def orSr(YKHO, LfUS: str): YKHO._tails_public_uri = LfUS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def orSr(YKHO) -> str:\n return YKHO._tails_public_uri", "def EP4S(YKHO, j8eK):\n YKHO.uri = j8eK", "def EP4S(YKHO, j8eK):\n YKHO.__uri = j8eK", "def j8eK(YKHO, j8eK):\n YKHO._uri = j8eK", "def j8eK(YKHO, j8eK):\n YKHO._uri = j8eK", "def bD7m(YKHO):\n if not Hy7s.path.exists(YKHO.path):...
[ "0.6992037", "0.6649637", "0.65161926", "0.64215595", "0.64215595", "0.62572867", "0.6217056", "0.6217056", "0.61789614", "0.6056066", "0.60459447", "0.60445434", "0.5995598", "0.5985835", "0.5982786", "0.59488785", "0.59331167", "0.59251237", "0.5923124", "0.5891555", "0.589...
0.70854425
0
Return a human readable representation of this class.
def wHJl(YKHO) -> str: DumB = ('{}={}'.format(G1Hx, repr(Ty9i)) for G1Hx, Ty9i in YKHO.__dict__.items()) return '<{}({})>'.format(YKHO.__class__.__name__, ', '.join(DumB))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())", "def zAg0(YKHO):\n sovm = vars(YKHO)\n yvT9 = YKHO.__class__.__name__\n for G1Hx, Ty9i in sovm.items():\n if Ty9i > 0:\n yvT9 += ' : ' + str(G1Hx) + ' = ' + str(Ty9i)\n return yvT9", "def wHJl(YKHO):\n ...
[ "0.8229985", "0.81823826", "0.80362755", "0.7990366", "0.7907257", "0.78875196", "0.7879061", "0.78439665", "0.78439665", "0.78439665", "0.78439665", "0.78439665", "0.781496", "0.780656", "0.780656", "0.780656", "0.780656", "0.780656", "0.780656", "0.780656", "0.780656", "0...
0.76719934
66
Plot a histogram of the envelope delays for all stations combined.
def AXka(t1XM): LZpg = QrM1.figure() aNZO = LZpg.add_subplot(111) JPjz = [] for aETf in t1XM.keys(): JPjz += t1XM[aETf] if len(JPjz) > 0: exwG, Pyrc, ohfT = aNZO.hist(JPjz, bins=oyIN.arange(0, 30, 0.5), color='green', histtype='bar', rwidth=1.0) aNZO.set_xlabel('Envelope delays [...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def codz(YKHO, JH_G: dict, leAC: str, wytA: tuple=(16, 12)) -> None:\n QrM1.figure(figsize=wytA)\n QrM1.title(leAC)\n for H5ew in JH_G.keys():\n MJy0, Pyrc = oyIN.histogram(JH_G[H5ew], range=(0, 202), bins=3000)\n QrM1.plot(Pyrc[:-1], MJy0)\n QrM1.xlabel('Energy (keV)')\n QrM1....
[ "0.6014032", "0.6012786", "0.5984103", "0.59256524", "0.5846438", "0.5844005", "0.57922244", "0.57795936", "0.576851", "0.574713", "0.57314426", "0.5656888", "0.5621318", "0.56128407", "0.5601162", "0.55484176", "0.5535783", "0.55001086", "0.54999", "0.5484467", "0.54826164",...
0.649759
0
Parses a value and returns the equivalent in seconds
def hPw4(WbTE): WbTE, PXGI = Rxpz(WbTE) if PXGI in ['h', 'hr', 'hrs', 'hours', 'hour']: WbTE *= 60 * 60 elif PXGI in ['m', 'min', 'mins', 'minutes', 'minute']: WbTE *= 60 elif PXGI in [None, 's', 'sec', 'secs', 'seconds', 'second']: pass else: raise ValueError('Unreco...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LrXp(BWXx: str) -> float:\n return float(BWXx[:-1]) * jiWk[BWXx[-1]]", "def C6wh(input=None):\n return int(NMoC(input))", "def sccN(PXGI, BWXx):\n C6wh = 1\n O66n = 60\n Wave = 3600\n Sm0u = 86400\n return BWXx * eval(PXGI)", "def LrXp(BWXx):\n if BWXx == '':\n return 0\n ...
[ "0.7704094", "0.747785", "0.7376642", "0.73500556", "0.7216641", "0.6884994", "0.6840191", "0.6820855", "0.6784685", "0.67184466", "0.6666218", "0.6663636", "0.66384137", "0.6625512", "0.6575972", "0.65483385", "0.6534206", "0.6515571", "0.64927226", "0.64878094", "0.647317",...
0.0
-1
Native code representation of the object instance
def wHJl(YKHO): Mkmy = str(YKHO.current_instance_state()) return Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return '<%s.%s (%s) object at %s>' % (YKHO.__class__.__module__, YKHO.__class__.__name__, YKHO._xc_func_name, hex(id(YKHO)))", "def wHJl(YKHO):\n return f'<{type(YKHO).__module__}.{type(YKHO).__qualname__} {id(YKHO):#x}: {YKHO.objc_class.name} at {YKHO.ptr.value:#x}: {YKHO.debugDescriptio...
[ "0.7270472", "0.7131184", "0.69435525", "0.6897909", "0.685291", "0.681638", "0.6646927", "0.6586526", "0.6586526", "0.6586526", "0.6586526", "0.6586526", "0.6584041", "0.6556684", "0.65347785", "0.6465354", "0.6465354", "0.645931", "0.6457175", "0.64381856", "0.64311254", ...
0.6484423
15
Return first item in sequence where f(item) == True.
def neBz(eHNT, Q6uT): for ZfUD in Q6uT: if eHNT(ZfUD): return ZfUD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qVXO(JfyU, Q6uT):\n return next((ZfUD for ZfUD in Q6uT if JfyU(ZfUD)))", "def A_QS(OxJJ, WmM4=False, nvEb=None):\n return next(filter(nvEb, OxJJ), WmM4)", "def iN7E(YKHO, OxJJ, XEri=lambda WKvO: True):\n try:\n return next((WKvO for WKvO in OxJJ if XEri(WKvO)))\n except:\n return ...
[ "0.7381083", "0.69793993", "0.68005335", "0.67570746", "0.67258066", "0.6664692", "0.66255635", "0.6597727", "0.64589864", "0.64407694", "0.6315168", "0.6314598", "0.63102686", "0.6286507", "0.6251015", "0.6169875", "0.6169091", "0.6152609", "0.6152609", "0.6064589", "0.60064...
0.7370345
1
Write i2c block to a given register
def c9RR(YKHO, QePW, QpfX): fchu = Rpfj.operation_status(code=0, exception='') mRx3 = QePW.i2c_addr smxf = QePW.register kA83 = QePW.data try: zb3C = YKHO._get_client_id(QpfX) YKHO.logger.info('Client(%s) write_i2c_block_data at 0x%x register 0x%x' % (zb3C, mRx3, smxf)) YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SOPu(YKHO, gr_i, BWXx, qwxf=None):\n if qwxf is not None:\n YKHO.set_bank(qwxf)\n YKHO.i2c.write_byte_data(YKHO.address, gr_i, BWXx)", "def k7zG(YKHO, AaSq, nPrm):\n YKHO.bus.write_i2c_block_data(YKHO.I2C_ADDRESS, AaSq, [nPrm & 255])", "def k7zG(YKHO, AaSq, nPrm):\n YKHO.bus.write_i2c_bl...
[ "0.7637494", "0.7422023", "0.7422023", "0.73728794", "0.72606826", "0.71174926", "0.7112865", "0.7054888", "0.6747012", "0.65657216", "0.6402857", "0.63449144", "0.6229089", "0.6200044", "0.6112666", "0.605009", "0.6019467", "0.5994798", "0.59945965", "0.59791785", "0.5954824...
0.68757176
8
Get epoch time, as .timestamp() was only added in Python 3.3.
def mqoM(): wzkt = qcWV.datetime.utcnow() qtWj = qcWV.datetime(1970, 1, 1) return (wzkt - qtWj).total_seconds()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qtWj():\n return Og8s(qcWV.now())", "def ixc8():\n return int(ITS7.time())", "def qtWj():\n return ITS7.time()", "def iwlH():\n return ITS7.time()", "def HDDa(E3oo):\n hPTX = qcWV.datetime.strptime(E3oo, '%Y-%m-%dT%H:%M:%SZ')\n qtWj = GRk0.timegm(hPTX.timetuple())\n return qtWj", ...
[ "0.8682732", "0.8562506", "0.85258275", "0.83454674", "0.796864", "0.79579186", "0.7905645", "0.78438467", "0.7638975", "0.7466613", "0.74148923", "0.7406296", "0.7397465", "0.7388534", "0.7313057", "0.7278134", "0.7273138", "0.72573966", "0.72373724", "0.7221113", "0.7103867...
0.766601
8
[GET] Grabs the user from the DB and returns it as a JSON response
def CBIr(): if QePW.method == 'GET': uJjO = QePW.args.get('user_id', None) geh0 = {} if uJjO is None: geh0['ERROR'] = 'Missing user_id in route' return pz3A(geh0) CBIr = mv1M.query.filter_by(user_id=uJjO).one() XVNM = KyKO.dump(CBIr) geh0['user...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(id):\n return pz3A(mv1M.query.get_or_404(id).to_dict())", "def NMoC(YKHO):\n geh0 = MRyO.get_user_by_id(Zul5())\n return oGir(PjZe(geh0), mimetype='application/json')", "def NMoC(YKHO):\n Y8Sy, _gH8 = ZMIF.logged_in_user()\n if not Y8Sy:\n YKHO.response.status = 401\n retu...
[ "0.8109016", "0.8056769", "0.80395967", "0.7950585", "0.7904902", "0.78335994", "0.77978855", "0.77816284", "0.7780409", "0.76906425", "0.7659684", "0.765311", "0.76432043", "0.7618835", "0.7616256", "0.7615878", "0.7573799", "0.7567805", "0.7564251", "0.7556705", "0.75410986...
0.6977178
81
Returns median ignoring NAN
def A4yP(ezWE, **B2fa): return fHeP.median(fHeP.masked_where(ezWE != ezWE, ezWE), **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PW3S(mJLf):\n Q3Ge = 1 - oyIN.isnan(mJLf)\n WKvO = oyIN.sort(oyIN.compress(Q3Ge, mJLf, axis=-1))\n if WKvO.size == 0:\n return oyIN.nan\n return oyIN.median(WKvO)", "def A4yP(WKvO, jDK_=0, TVj4=None):\n WKvO = oyIN.asarray(WKvO)\n if jDK_ is None:\n WKvO = WKvO.ravel()\n ...
[ "0.7612167", "0.760392", "0.75946695", "0.75930095", "0.7547139", "0.7506518", "0.74757653", "0.7468638", "0.7417313", "0.73726755", "0.7257516", "0.72557527", "0.7226571", "0.7222345", "0.72191626", "0.7219064", "0.718095", "0.7178429", "0.7170332", "0.71539026", "0.7150443"...
0.7958463
0
Delete keys with the value ``None`` in a dictionary, recursively. This alters the input so you may wish to ``copy`` the dict first.
def Oyo4(Csk6): for H5ew, BWXx in list(Csk6.items()): if BWXx is None: del Csk6[H5ew] elif isinstance(BWXx, dict): Oyo4(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kcGM(fGC9):\n if isinstance(fGC9, dict):\n for H5ew, BWXx in list(fGC9.items()):\n if isinstance(BWXx, dict):\n kcGM(BWXx)\n elif BWXx is None:\n del fGC9[H5ew]\n elif isinstance(BWXx, list):\n for nFf2 in BWXx:\n ...
[ "0.79423374", "0.76588416", "0.75797796", "0.7423728", "0.7302791", "0.72980106", "0.7238777", "0.7140412", "0.7126415", "0.7120261", "0.71166044", "0.7031242", "0.70291317", "0.70027316", "0.6966311", "0.6853151", "0.68435395", "0.6737293", "0.671963", "0.66950554", "0.66418...
0.7640417
2
Tests that creating a service uses the project from the context.
def jbg5(YKHO): ZMzz = seJW(data=dict(name='service1', category=YKHO.category.pk), context=dict(project=YKHO.project)) YKHO.assertTrue(ZMzz.is_valid()) zVa7 = ZMzz.save() zVa7.refresh_from_db() YKHO.assertEqual(zVa7.project.pk, YKHO.project.pk) YKHO.assertEqual(zVa7.category.pk, YKHO.category.pk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dokK(YKHO):\n pass", "def dokK(YKHO):\n pass", "def dokK(YKHO):\n pass", "def mf3f(QpfX, **YSA3):\n zVa7 = vgkn(QpfX, **YSA3)\n zVa7.create()\n return zVa7", "def F9QL(YKHO):\n pass", "def afx2(YKHO):\n pass", "def sAj0(YKHO):\n pass", "def hVcE(YKHO):\n pass", "de...
[ "0.7120619", "0.7120619", "0.7120619", "0.7009091", "0.68919146", "0.68100005", "0.6607628", "0.656547", "0.6527957", "0.6507002", "0.6404545", "0.63257855", "0.631524", "0.6311549", "0.6307608", "0.62911063", "0.6286749", "0.62383205", "0.61605096", "0.6152352", "0.6150751",...
0.7107589
3
Tests that the project cannot be overridden by specifying it in the input data.
def KPEa(YKHO): bNKA = YKHO.consortium.projects.create(name='Project 2', description='some description', owner=egNl().objects.create_user('owner2')) ZMzz = seJW(data=dict(name='service1', category=YKHO.category.pk, project=bNKA.pk), context=dict(project=YKHO.project)) YKHO.assertTrue(ZMzz.is_valid()) zV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dmnU(YKHO):\n cfQG = xs73.ExposedProject()\n YKHO.assertIsNone(cfQG.display)\n YKHO.assertIsNone(cfQG.shared)\n YKHO.assertIsNone(cfQG.settings)\n YKHO.assertIsNone(cfQG.title)\n YKHO.assertIsNone(cfQG.id)\n YKHO.assertIsNone(cfQG.path())\n with YKHO.assertRaises(RuntimeError):\n ...
[ "0.6616126", "0.6561542", "0.6305697", "0.61730504", "0.61613035", "0.61578214", "0.6119646", "0.61156946", "0.59123534", "0.58817554", "0.587598", "0.5840298", "0.57811177", "0.57562494", "0.5735901", "0.57326746", "0.57326746", "0.5721482", "0.5713415", "0.5702533", "0.5699...
0.55558145
36
Tests that an invalid category correctly fails.
def kADc(YKHO): ZMzz = seJW(data=dict(name='service1', category=10), context=dict(project=YKHO.project)) YKHO.assertFalse(ZMzz.is_valid()) YKHO.assertEqual(ZMzz.errors['category'][0].code, 'does_not_exist')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DCoj(YKHO):\n GZFO = MdBa(title=u'q1 audio')\n GZFO.tags.add(u'desktop')\n TK2h = V07s(question=GZFO)\n dAZ9(answer=TK2h, helpful=True)\n AjzU = PzS3(title=u'd1 audio', locale=u'en-US', category=10, is_archived=False, tags=[u'desktop'])\n FxTP(document=AjzU)\n YKHO.refresh()\n umWR = {'...
[ "0.7839596", "0.7582727", "0.74574435", "0.7391391", "0.7366802", "0.72090584", "0.7174356", "0.7065422", "0.699625", "0.69693434", "0.6969298", "0.6892669", "0.6892437", "0.68776846", "0.6851545", "0.6851545", "0.6839208", "0.6839208", "0.6835304", "0.6813542", "0.679998", ...
0.74922276
2
Tests that invalid requirements correctly fails for the list of services.
def G0ft(YKHO): ZMzz = JPpf(data=dict(name='service2', category=YKHO.category.pk, requirements='requirements1'), context=dict(project=YKHO.project)) YKHO.assertFalse(ZMzz.is_valid()) YKHO.assertEqual(ZMzz.errors['requirements']['non_field_errors'][0].code, 'not_a_list') ZMzz = JPpf(data=dict(name='servi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def es6C(YKHO, Fflw):\n WhY1 = iter(YKHO._getServices())\n for o3tU, cLZ6 in Fflw:\n for U6D_ in WhY1:\n if o3tU in eEBV.getTypeURIs(U6D_):\n YKHO.assertEqual(eEBV.getURI(U6D_), cLZ6)\n break\n else:\n YKHO.fail('Did not find %r service' % (o3...
[ "0.6652535", "0.63944703", "0.63525254", "0.6248919", "0.6213733", "0.6155486", "0.61272925", "0.6118433", "0.60867417", "0.60663563", "0.6037591", "0.59633803", "0.59532416", "0.59380984", "0.59379965", "0.5933373", "0.59262633", "0.5893517", "0.58908415", "0.58897734", "0.5...
0.7205704
0
Returns the derivative of the Bessel function
def legC(WKvO, vC9B=2): return Cqok.spherical_jn(vC9B, WKvO, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S_c5(YKHO):\n return oyIN.array([a1PO.der_bessel for a1PO in YKHO._trc])", "def VVyp(JfyU: Callable, WKvO: float, RA_F: float) -> float:\n return (JfyU(WKvO + RA_F) - JfyU(WKvO - RA_F)) / (2.0 * RA_F)", "def eGBw(YKHO, WKvO, WbhW=None):\n return 2 * kLQb(-WKvO ** 2) / PZyS(mM0K)", "def LyOx(WKvO...
[ "0.71214515", "0.6830747", "0.6826476", "0.680827", "0.6800083", "0.6793384", "0.6793384", "0.66337645", "0.65562403", "0.64426094", "0.64143455", "0.63654655", "0.63443655", "0.63384694", "0.63263714", "0.6302393", "0.62842673", "0.62700856", "0.6257476", "0.62192047", "0.62...
0.0
-1
Returns the alpha_M parameter (unitless)
def va0q(epBp, u5bm=0): pdhd = BrEo(tDEK) return pdhd.alpha_M(epBp, u5bm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cwt5(YKHO) -> float:\n return YKHO.intrinsic_matrix[0, 1]", "def z6J6(YKHO, o4_K, DxNS):\n return max(0, (-o4_K * YKHO._psi + epAf.sqrt(o4_K ** 2 * YKHO._phi ** 4 / 4 + DxNS * YKHO._phi ** 2 * YKHO._xi)) / (DxNS * YKHO._xi))", "def Cwt5(YKHO) -> float:\n return YKHO._alpha", "def PDPP():\n Cw...
[ "0.7024431", "0.68071014", "0.6656122", "0.6620876", "0.66078854", "0.66078854", "0.66078854", "0.64557284", "0.6452207", "0.6432217", "0.6417361", "0.64103806", "0.6396868", "0.6385246", "0.63572574", "0.63183844", "0.6268445", "0.6252516", "0.6239953", "0.62385505", "0.6219...
0.73521745
0
Returns the alpha_M parameter (unitless)
def l53Y(epBp, YOOA=0): pdhd = BrEo(tDEK) return pdhd.alpha_M(epBp, YOOA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def va0q(epBp, u5bm=0):\n pdhd = BrEo(tDEK)\n return pdhd.alpha_M(epBp, u5bm)", "def Cwt5(YKHO) -> float:\n return YKHO.intrinsic_matrix[0, 1]", "def z6J6(YKHO, o4_K, DxNS):\n return max(0, (-o4_K * YKHO._psi + epAf.sqrt(o4_K ** 2 * YKHO._phi ** 4 / 4 + DxNS * YKHO._phi ** 2 * YKHO._xi)) / (DxNS * ...
[ "0.73521745", "0.7024431", "0.68071014", "0.6656122", "0.6620876", "0.66078854", "0.66078854", "0.66078854", "0.64557284", "0.6452207", "0.6432217", "0.6417361", "0.64103806", "0.6396868", "0.6385246", "0.63572574", "0.63183844", "0.6268445", "0.6252516", "0.6239953", "0.6238...
0.57899034
54
Returns M_^2 in units m_P
def q0CL(epBp, u5bm=0): O6gR = oyIN.linspace(epBp, 20, 200) R9Vg = va0q(O6gR, u5bm) / (1 + O6gR) dLhF = zQMB(O6gR, R9Vg, ax=0) E3D9 = oyIN.exp(dLhF) return E3D9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E43s(YKHO):\n return YKHO.mass[1]", "def GiVy(YKHO):\n return 1.0", "def Q5Bu(gpRq: float, E43s: float) -> float:\n from astropy.constants import G\n return G * (gpRq + E43s)", "def m8ZB(YKHO):\n return (YKHO.m_rr ** 2 + YKHO.m_tt ** 2 + YKHO.m_pp ** 2 + 2 * YKHO.m_rt ** 2 + 2 * YKHO.m_rp ...
[ "0.7324615", "0.6829904", "0.68202496", "0.67821455", "0.6618903", "0.64933974", "0.64864427", "0.63713175", "0.63448286", "0.6344411", "0.63325053", "0.62987846", "0.62113917", "0.61521935", "0.6132696", "0.6132696", "0.60993713", "0.6095806", "0.6094831", "0.60927045", "0.6...
0.0
-1
Initializes the parameters of the neural network to random values
def FIMM(YKHO, Gzv5, Norb, EDoJ, _hZ2): YKHO.W1 = oyIN.random.randn(Gzv5, Norb) / oyIN.sqrt(Gzv5) YKHO.W2 = oyIN.random.randn(Norb, EDoJ) / oyIN.sqrt(Norb) YKHO.b1 = oyIN.zeros((1, Norb)) YKHO.b2 = oyIN.zeros((1, EDoJ)) YKHO.epsilon = _hZ2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K55i(YKHO):\n for YRbF in range(1, YKHO.L):\n YKHO.W[YRbF - 1] = oyIN.random.randn(YKHO.layer_dims[YRbF], YKHO.layer_dims[YRbF - 1]) * 0.01\n YKHO.b[YRbF - 1] = oyIN.zeros((YKHO.layer_dims[YRbF], 1))", "def WIoj(YKHO):\n WYxq = tuKI.choice(YKHO.parameter_choices['number_of_layers'])\n ...
[ "0.7439151", "0.74228984", "0.7330529", "0.7275741", "0.7183611", "0.7177239", "0.7172136", "0.7160283", "0.7126808", "0.7113416", "0.70987576", "0.7087519", "0.70722723", "0.7015661", "0.7011332", "0.6968827", "0.6952228", "0.6943982", "0.6943128", "0.693684", "0.6932757", ...
0.0
-1
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') print(Bcwd) QrM1.imshow(Bcwd, interp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.0
-1
Creates a default kernel configuration suitable for general purpose inference. Currently configures an assignment sampler followed by a component hyperparameter sampler.
def qdwo(Wdc9): return list(WhY1.chain(oJF5(Wdc9), ykVk(Wdc9)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qdwo(Wdc9):\n return [('beam', {}), ('hypers', {'alpha_a': 4.0, 'alpha_b': 2.0, 'gamma_a': 3.0, 'gamma_b': 6.0})]", "def oJF5(Wdc9):\n\n def CoPW(WKvO):\n return WKvO.name() == 'bbnc'\n gB6F = [or8S for or8S, WKvO in enumerate(Wdc9.models()) if CoPW(WKvO)]\n Wdc9 = ToI7(Wdc9)\n if gB6F:...
[ "0.74664825", "0.6669633", "0.64068115", "0.6141077", "0.60617054", "0.59325707", "0.58984137", "0.5889346", "0.58742774", "0.5873526", "0.5721628", "0.56768763", "0.56751627", "0.5664445", "0.56459564", "0.5641544", "0.5609423", "0.56089675", "0.5594062", "0.558959", "0.5588...
0.6721311
1
Returns the current value of the underlying state object. Note that the returned value is a copy, so modifications to it will not be seen by the runner.
def zjPp(YKHO): return jth9.deepcopy(YKHO._latent)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO._current_value", "def c0mt(YKHO):\n return _qLf(YKHO.state)", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return ...
[ "0.80514616", "0.77472425", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225", "0.77185225"...
0.0
-1
Return a list of all known nodes. Items in the list are unique.
def mDSd(YKHO): dBuj = set() dBuj.update(YKHO.neighbours) for eHNT in Hgib: dBuj.update(YKHO.best_finger_succ[eHNT]) for eHNT in A1e6: dBuj.update(YKHO.best_finger_pred[eHNT]) return list(dBuj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qmh8(YKHO):\n return YKHO.nodes", "def qmh8(YKHO):\n return YKHO._get_all_nodes()", "def vTxU(YKHO):\n return []", "def CDNe(YKHO):\n return YKHO.__allNodes", "def vTxU(YKHO):\n return [[Q6kx] for Q6kx in YKHO.graph.nodes]", "def aAQH(YKHO):\n return YKHO.ironic_client.node.list()",...
[ "0.80580425", "0.7921569", "0.7901952", "0.7900873", "0.7839311", "0.768085", "0.76684755", "0.76684755", "0.7654098", "0.76400435", "0.76306534", "0.76205885", "0.76079094", "0.753844", "0.74888945", "0.7442686", "0.7442686", "0.7437385", "0.7426283", "0.7413756", "0.740591"...
0.0
-1
Return a list of the closest known nodes. Close in the virtual sense, to self.ident, and to the possible fingers on the Chord DHT.
def YbCz(YKHO): dBuj = set() for eHNT in Hgib: dBuj.update(YKHO.best_finger_succ[eHNT]) for eHNT in A1e6: dBuj.update(YKHO.best_finger_pred[eHNT]) return list(dBuj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z80C(YKHO, pan_: hash.hash.Hash):\n Ziit = []\n for WE7e in YKHO.buckets:\n Ziit = Ziit + WE7e.nodes\n Ziit.sort(key=lambda WKvO: Ziit.distanceToHash(XfXe))\n return Ziit[:GPtr.K]", "def LIJ2(YKHO):\n return [YKHO.nearest_node + Xqhy(1, 0), YKHO.nearest_node + Xqhy(0, 1), YKHO.nearest_n...
[ "0.65930384", "0.6451432", "0.6441099", "0.6154325", "0.6110815", "0.6110729", "0.6098832", "0.596274", "0.59549946", "0.59381306", "0.5893561", "0.5875066", "0.58516437", "0.582783", "0.5764664", "0.573509", "0.5721345", "0.569594", "0.567349", "0.5671407", "0.56553555", "...
0.0
-1
Get the best predecessor for finger f.
def uAIa(YKHO, eHNT): return min(YKHO.best_finger_pred[eHNT], key=lambda Wn1Y: AmTd(Wn1Y.ident, YKHO.get_finger_pred_loc(eHNT)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cQzq(YKHO, eHNT):\n return min(YKHO.best_finger_succ[eHNT], key=lambda Wn1Y: AmTd(YKHO.get_finger_succ_loc(eHNT), Wn1Y.ident))", "def kNzm(YKHO, H5ew):\n d6pt = YKHO.locate_predecessor(H5ew)\n return YKHO.keys[d6pt] if d6pt >= 0 else None", "def AC06(YKHO, eHNT, dEcZ):\n dBuj = BCrw(YKHO.best_f...
[ "0.78589743", "0.6463797", "0.6380368", "0.63363165", "0.6327055", "0.6273297", "0.62648135", "0.6178588", "0.61382604", "0.6114862", "0.6012184", "0.59667087", "0.5960902", "0.5955692", "0.59211004", "0.5917483", "0.5893443", "0.5854102", "0.5837635", "0.5813187", "0.5765961...
0.7758518
1
Return bytesIO.getvalue(), making sure the result is a str. This is necessary because getvalue() returns a bytes object in Python 3.
def BeIR(abhp): if wYwG: return abhp.getvalue() else: return ''.join(map(wCbj, abhp.getvalue()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def baOo(YKHO):\n try:\n vKMt = YKHO.buffer.getvalue().decode()\n except UnicodeDecodeError:\n return YKHO.buffer.getvalue()\n return super().getvalue() + vKMt", "def gTzM(BWXx: bytes) -> str:\n if BWXx is not None:\n yvT9 = BWXx.decode('utf-8')\n else:\n yvT9 = ''\n ...
[ "0.7136646", "0.708613", "0.7069398", "0.69311607", "0.68839103", "0.6821514", "0.68155074", "0.6760254", "0.669473", "0.6689737", "0.6595317", "0.6570502", "0.6566499", "0.6455121", "0.6454829", "0.64306384", "0.6425795", "0.64017624", "0.6376336", "0.6372872", "0.63647157",...
0.79677886
0
Converts a sqlite3.Row to a string representing JSON
def Zdzh(rdlD: sqlite3.Row) -> str: Csk6 = {} for H5ew in rdlD.keys(): Csk6[H5ew] = rdlD[H5ew] return qQXR.dumps(Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EWDk(usx6: List[sqlite3.Row]) -> str:\n vC9B = []\n for rdlD in usx6:\n vC9B.append(Zdzh(rdlD))\n return qQXR.dumps(vC9B)", "def vZ49(Hbkx):\n rdlD = dict()\n for H5ew in Hbkx:\n rdlD[H5ew] = Hbkx[H5ew]\n bH68 = qQXR.dumps(rdlD, default=str)\n return bH68.encode('utf-8')", ...
[ "0.81565416", "0.74537444", "0.74064386", "0.7377652", "0.7289121", "0.6780555", "0.672762", "0.6564707", "0.6396816", "0.6321192", "0.6316652", "0.6303767", "0.6242757", "0.6235095", "0.6218394", "0.6139007", "0.6124461", "0.61206156", "0.6118917", "0.61147624", "0.6109016",...
0.90898705
0
Converts a List[sqlite3.Row] to a string representing JSON
def EWDk(usx6: List[sqlite3.Row]) -> str: vC9B = [] for rdlD in usx6: vC9B.append(Zdzh(rdlD)) return qQXR.dumps(vC9B)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zdzh(rdlD: sqlite3.Row) -> str:\n Csk6 = {}\n for H5ew in rdlD.keys():\n Csk6[H5ew] = rdlD[H5ew]\n return qQXR.dumps(Csk6)", "def Dbb4(YKHO, usx6):\n Z2eN = []\n for rdlD in usx6:\n XGHz = {}\n XGHz['movie_id'] = rdlD[0]\n XGHz['title'] = oYh6(rdlD[1])\n XGHz...
[ "0.7739139", "0.752135", "0.7446329", "0.712356", "0.694361", "0.6843901", "0.6843901", "0.6747058", "0.6747058", "0.6701383", "0.66863126", "0.6674621", "0.66703725", "0.6659731", "0.6658011", "0.6646014", "0.6643814", "0.6618622", "0.65742904", "0.6567026", "0.6566061", "...
0.91807425
0
returns a string representation of the question type in the real time database.
def EisX(type): if type == 'בחירה יחידה': return 'SingleChoice' elif type == 'בחירה מרובה': return 'MultipleChoice' elif type == 'שאלה פתוחה': return 'OpenQuestion'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k_tr(YKHO):\n try:\n D3Zd = cuqt[YKHO.type]\n return '{0} record'.format(D3Zd)\n except KeyError:\n return '{0} type 0x{1:04x}'.format(YKHO.__class__.__name__, YKHO.type)", "def zAg0(YKHO) -> str:\n return YKHO.type", "def zAg0(YKHO):\n if YKHO.default_kind:\n return...
[ "0.6865402", "0.66809237", "0.66203624", "0.66063035", "0.65406144", "0.65385854", "0.65357155", "0.64439434", "0.6422072", "0.6417245", "0.63635415", "0.6254435", "0.62316257", "0.62316257", "0.62316257", "0.62316257", "0.62316257", "0.62316257", "0.62316257", "0.62316257", ...
0.6093655
60
Returns starting state of the board.
def W9gz(): return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rEkR(YKHO):\n return oyIN.zeros(YKHO.board_size, dtype=oyIN.int8)", "def rEkR():\n return H66R.Board()", "def jKlz(YKHO):\n return (YKHO.startingPosition, (False, False, False, False))", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(YKHO):\n gnPz.raiseNotDefined()", "def D3Ar(Y...
[ "0.8081514", "0.7890486", "0.7534929", "0.72789717", "0.72789717", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", ...
0.0
-1
Returns player who has the next turn on a board.
def oyg0(iBIi): g259 = 0 Zmel = 0 for rdlD in iBIi: g259 += rdlD.count('X') Zmel += rdlD.count('O') if g259 <= Zmel: return 'X' else: return 'O'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zia_(iBIi, UwI3):\n RUgX = VlLD.opponent(UwI3)\n if VlLD.any_legal_move(RUgX, iBIi):\n return RUgX\n elif VlLD.any_legal_move(UwI3, iBIi):\n return UwI3\n return None", "def Zia_(YKHO, iBIi, UwI3):\n RUgX = YKHO.opponent(UwI3)\n iiQJ = YKHO.any_legal_move(RUgX, iBIi)\n v5zX...
[ "0.7911148", "0.7521969", "0.74204457", "0.73687756", "0.71954805", "0.69775087", "0.69621766", "0.69253695", "0.69208723", "0.69010353", "0.6845991", "0.6841043", "0.6838282", "0.68265843", "0.67751175", "0.67751175", "0.6769739", "0.6713109", "0.67060393", "0.66561204", "0....
0.0
-1
Returns the optimal action for the current player on the board.
def SR1K(iBIi): if f9TP(iBIi): return None elif len(xASv(iBIi)) == 9: for XeOP in xASv(iBIi): return XeOP else: if oyg0(iBIi) == 'X': return bQ6z(iBIi)[1] if oyg0(iBIi) == 'O': return dgIT(iBIi)[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction", "def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0,...
[ "0.7766856", "0.76323676", "0.75855315", "0.75285065", "0.75175256", "0.74667144", "0.7460485", "0.74263537", "0.7416421", "0.73943585", "0.7375846", "0.7333894", "0.73147565", "0.7306611", "0.7284639", "0.72650313", "0.72650313", "0.7250975", "0.72331834", "0.7203267", "0.71...
0.70789856
32
Normalize a URI (And return a URIResult)
def SECR(j8eK): bf9h = N02v(j8eK).normalize() return bf9h._replace(authority=ttC9(bf9h), query=T65M(bf9h), path=O0Qt(bf9h))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QMi3(j8eK):\n return SECR(j8eK).unsplit()", "def VaQX(YKHO, j8eK):\n ht58, GbKX, pmON, xDcj, vBtp = SEjE(j8eK)\n if not ht58 or not GbKX:\n raise Exception('Only absolute URIs are allowed. uri = %s' % j8eK)\n GbKX = GbKX.lower()\n ht58 = ht58.lower()\n if not pmON:\n pmON = '/...
[ "0.8090733", "0.76550364", "0.7136166", "0.7022947", "0.6984481", "0.6822511", "0.68086845", "0.6780735", "0.66093105", "0.6543287", "0.6404623", "0.63960683", "0.6173417", "0.6112646", "0.6043692", "0.6000578", "0.5998875", "0.59867203", "0.5972129", "0.58413917", "0.5839414...
0.81375635
0
Function that turns a 3d field F3d in [Fx,Fy,Fz] format to a [[fx1,fy1,fz1], ... ,[fxn,fyn,fzn]] fomat Where FX is the zyx array corresponding to the x component of the field and fx1 is the x component of the field at the first point Inputs f3d field which will be converted by the function. C.Losada de la Lastra 2015
def P3SY(cIbS): [Csf6, zklo, NjSW] = cIbS rrL3 = ywwl.array([ywwl.zeros(3) for YRbF in range(len(Csf6) * len(zklo[0]) * len(NjSW[0][0]))]) Z9rn = 0 for G1Hx in range(len(NjSW)): for r845 in range(len(NjSW[0])): for YRbF in range(len(NjSW[0][0])): MR3S = Csf6[G1Hx][r84...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xG7U():\n Op6c, nPrm = SMR4.pipe.read_lowmem('common_data/3d_pipe/ft/test%03d.ft3')\n KbIL, oFmy = SMR4.pipe.read('common_data/3d_pipe/ft/test%03d.ft3')\n Qhng(nPrm.transpose()[0, 1, 2], oFmy.transpose()[0, 1, 2])\n Qhng(nPrm.transpose((2, 0, 1))[0, 1, 2], oFmy.transpose((2, 0, 1))[0, 1, 2])\n Q...
[ "0.6738585", "0.6631589", "0.6503169", "0.6495769", "0.6400366", "0.6348327", "0.62344724", "0.61679155", "0.61502033", "0.6063375", "0.60627055", "0.60346746", "0.598228", "0.5907918", "0.5868698", "0.584995", "0.58388567", "0.5815556", "0.58086735", "0.5725239", "0.5707815"...
0.7350591
0
Test our custom Hypermedia resource handles URls that aren't registered.
def uMuO(): nPrm = {'name': 'Wort wort', 'slug': 'sluggy', 'not_valid': 'nooo', 'author': 'http://dev/api/foobar/1'} KAOR = pxjr(**nPrm) assert not hasattr(KAOR, 'get_authors')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tkSd():\n nPrm = {'name': 'Wort wort', 'slug': 'sluggy', 'not_valid': 'nooo', 'author': 'http://dev/api/authors/1'}\n KAOR = pxjr(**nPrm)\n assert hasattr(KAOR, 'get_authors')", "def nfC3(YKHO):\n with YKHO.assertRaises(NotImplementedError):\n YKHO.client.photo.dynamic_url(None)", "def j...
[ "0.7026299", "0.6746552", "0.6544264", "0.6300041", "0.6172381", "0.6109873", "0.5962861", "0.5946122", "0.59105587", "0.5873638", "0.58107054", "0.5787485", "0.5779619", "0.574595", "0.57324624", "0.57148445", "0.57081646", "0.57043415", "0.5655195", "0.56529117", "0.5642978...
0.769136
0
Says whether this matrix is uppertriangular. True can be returned even if the matrix is not square.
def CVSN(YKHO): return YKHO.rep.is_upper()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jihI(YKHO):\n YKHO.check_square()\n for YRbF in range(YKHO.rows):\n for r845 in range(YRbF):\n if YKHO[YRbF, r845] != 0:\n return False\n return True", "def CVSN(YKHO):\n E3D9 = YKHO.rep\n for YRbF in range(YKHO.rows):\n for r845 in range(YRbF):\n ...
[ "0.844744", "0.7495243", "0.6773453", "0.6493323", "0.6323144", "0.61934626", "0.6140013", "0.60975486", "0.6014325", "0.6014325", "0.60010576", "0.59452", "0.5910085", "0.5894454", "0.5873557", "0.5872957", "0.58713764", "0.5847847", "0.58093315", "0.5774065", "0.57679564", ...
0.58007485
19
True if the matrix is diagonal. Can return true for nonsquare matrices. A matrix is diagonal if ``M[i,j] == 0`` whenever ``i != j``. Examples ======== >>> from sympy import ZZ >>> from sympy.polys.matrices import DM >>> M = DM([[ZZ(1), ZZ(0)], [ZZ(0), ZZ(1)]], ZZ) >>> M.is_diagonal True See Also ======== is_upper is_lo...
def KAm0(YKHO): return YKHO.rep.is_diagonal()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WwnZ(SppC):\n if oyIN.isscalar(SppC) == True:\n return True\n elif type(SppC) is oyIN.ndarray:\n if SppC.size == 1:\n return True\n elif oyIN.count_nonzero(SppC - oyIN.diag(oyIN.diagonal(SppC))) == 0:\n return True\n else:\n return False\n e...
[ "0.7821849", "0.74941677", "0.74941677", "0.7441418", "0.7399577", "0.7367698", "0.73122686", "0.7057577", "0.7038562", "0.6748433", "0.6681966", "0.66680706", "0.66487104", "0.65727955", "0.6539708", "0.6457882", "0.64341956", "0.63791597", "0.62553805", "0.61958116", "0.617...
0.80671704
0
Get the diagonal entries of the matrix as a list. Examples ======== >>> from sympy import ZZ >>> from sympy.polys.matrices import DM >>> M = DM([[ZZ(1), ZZ(2)], [ZZ(3), ZZ(4)]], ZZ) >>> M.diagonal() [1, 4] See Also ======== is_diagonal diag
def IjIm(YKHO): return YKHO.rep.diagonal()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IjIm(YKHO):\n E3D9 = YKHO.rep\n r8hN, exwG = YKHO.shape\n return [E3D9[YRbF, YRbF] for YRbF in range(min(r8hN, exwG))]", "def WyUJ(iBIi, IjIm):\n if IjIm == 1:\n FBNX = (0, 4, 8)\n elif IjIm == 3:\n FBNX = (2, 4, 6)\n return [iBIi[WKvO] for WKvO in FBNX]", "def IjIm(SppC):\n...
[ "0.78579056", "0.75239784", "0.7518303", "0.7450371", "0.7341942", "0.72809136", "0.7010292", "0.6982171", "0.6929335", "0.68225384", "0.6723642", "0.6715104", "0.6712493", "0.6658152", "0.66512823", "0.65816116", "0.6556377", "0.65435493", "0.65220404", "0.6462548", "0.64548...
0.72988534
5
r""" Returns the negative of DomainMatrix
def V3hn(k0lF): return k0lF.from_rep(k0lF.rep.neg())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def la4d(YKHO):\n return y6O1(map(lambda WKvO: -WKvO, YKHO.mlist))", "def la4d(YKHO):\n Aofo = []\n for rdlD in YKHO.g:\n Aofo.append([-1 * exwG for exwG in rdlD])\n return aLMY(Aofo)", "def la4d(YKHO):\n wEf2 = -YKHO.val\n vf2_ = -YKHO.der if len(YKHO.der.shape) else None\n return ...
[ "0.7331656", "0.7195881", "0.67628396", "0.6760654", "0.6758093", "0.6562137", "0.6547884", "0.65024996", "0.65024996", "0.6491416", "0.6484659", "0.643803", "0.6413707", "0.64084524", "0.6406073", "0.63454807", "0.6325115", "0.62976116", "0.6248668", "0.62286276", "0.6221134...
0.5823869
33
Cancel factors between the elements of a matrix and a denominator. Returns a matrix of numerators and matrix of denominators. Requires ``gcd`` in the ground domain. Examples ======== >>> from sympy.polys.matrices import DM >>> from sympy import ZZ >>> M = DM([[2, 3], [4, 12]], ZZ) >>> denom = ZZ(6) >>> numers, denoms =...
def nVx5(YKHO, ciZM): nMvt = YKHO.domain E3D9 = YKHO if nMvt.is_zero(ciZM): raise ZeroDivisionError('denominator is zero') elif nMvt.is_one(ciZM): ko6U = E3D9.copy() WzM_ = E3D9.ones(E3D9.shape, E3D9.domain) return (ko6U, WzM_) UqER, nPrm = E3D9.to_flat_nz() hzEK ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ecGM(YKHO, ciZM):\n E3D9 = YKHO\n nMvt = YKHO.domain\n if nMvt.is_zero(ciZM):\n raise ZeroDivisionError('denominator is zero')\n elif nMvt.is_one(ciZM):\n return (E3D9.copy(), ciZM)\n UqER, nPrm = E3D9.to_flat_nz()\n if nMvt.is_negative(ciZM):\n P6bq = -nMvt.one\n else...
[ "0.6634346", "0.5153074", "0.5128968", "0.5110255", "0.50896513", "0.5068658", "0.5046499", "0.50334495", "0.499617", "0.4993697", "0.49848732", "0.4969663", "0.49391907", "0.49382338", "0.49351898", "0.4918057", "0.49062005", "0.4899771", "0.48944438", "0.4885724", "0.487889...
0.7187386
0
Return the gcd of the elements of the matrix. Requires ``gcd`` in the ground domain. Examples ======== >>> from sympy.polys.matrices import DM >>> from sympy import ZZ >>> M = DM([[2, 4], [4, 12]], ZZ) >>> M.content() 2 See Also ======== primitive cancel_denom
def hGN5(YKHO): nMvt = YKHO.domain UqER, bGrB = YKHO.to_flat_nz() return gceI(UqER, nMvt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tjkb(Emd4, *mLGw):\n from fractions import gcd\n if hasattr(mLGw[0], '__iter__'):\n return Emd4.GCD(*mLGw[0])\n if len(mLGw) > 2:\n return Pusg(lambda WKvO, LVAh: gcd(WKvO, LVAh), mLGw)\n else:\n return gcd(*mLGw)", "def ML2l(YKHO, mLGw, OCOs):\n if OCOs == 0:\n ret...
[ "0.62480825", "0.6070639", "0.60561955", "0.5941702", "0.58882046", "0.58882046", "0.5834273", "0.5786104", "0.57750976", "0.5754546", "0.57521963", "0.5741501", "0.5728168", "0.5716041", "0.5695814", "0.5695319", "0.5682274", "0.5654655", "0.5594947", "0.5592289", "0.558544"...
0.0
-1
r""" Returns reducedrow echelon form with denominator and list of pivots. Requires exact division in the ground domain (``exquo``). Examples ======== >>> from sympy import ZZ, QQ >>> from sympy.polys.matrices import DomainMatrix >>> A = DomainMatrix([ ... [ZZ(2), ZZ(1), ZZ(0)], ... [ZZ(1), ZZ(2), ZZ(1)], ... [ZZ(0), ZZ...
def ETvc(YKHO, *, NKcE='auto', dIDS=True): return m18Q(YKHO, method=NKcE, keep_domain=dIDS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AhEw(k0lF: np.ndarray, cCif: np.ndarray, xuM4: Sequence[int], A81Y: Sequence[Sequence[int]]):\n k0lF = k0lF.transpose((0, 2, 1))\n KCHu = k0lF.shape\n assert len(KCHu) == 3\n cJsZ = Q1hv([xuM4, -A81Y[1]])\n T8ck, A3Vt, Sh9u = jOpO(k0lF.reshape((KCHu[0] * KCHu[1], KCHu[2])), cJsZ, -A81Y[0])\n ...
[ "0.5662891", "0.54957014", "0.5401048", "0.5270808", "0.5204519", "0.51671714", "0.48634428", "0.4818971", "0.48176032", "0.47955397", "0.4788307", "0.47826388", "0.4776309", "0.4766484", "0.4749962", "0.47082475", "0.47054073", "0.46979412", "0.45984504", "0.45855892", "0.45...
0.42696482
61
r""" Return diagonal matrix with entries from ``diagonal``. Examples ======== >>> from sympy.polys.matrices import DomainMatrix >>> from sympy import ZZ >>> DomainMatrix.diag([ZZ(5), ZZ(6)], ZZ)
def A2lD(Emd4, IjIm, zrIJ, ROpF=None): if ROpF is None: ywwl = len(IjIm) ROpF = (ywwl, ywwl) return Emd4.from_rep(lxjx.diag(IjIm, zrIJ, ROpF))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IjIm(SppC):\n if H4yH.sparse.issparse(SppC):\n A2lD = oyIN.array(SppC.diagonal())\n else:\n A2lD = oyIN.diagonal(SppC).copy()\n return A2lD", "def IjIm(YKHO):\n E3D9 = YKHO.rep\n r8hN, exwG = YKHO.shape\n return [E3D9[YRbF, YRbF] for YRbF in range(min(r8hN, exwG))]", "def Wy...
[ "0.75419396", "0.7343016", "0.7339475", "0.73322403", "0.7324302", "0.72696435", "0.7268999", "0.71389306", "0.70959455", "0.70923465", "0.7087194", "0.7062203", "0.7036768", "0.6925176", "0.6907123", "0.6873534", "0.68501925", "0.67881244", "0.67330426", "0.6728541", "0.6726...
0.8093071
0
r""" Checks for two DomainMatrix matrices to be equal or not
def xa14(k0lF, tjUW): if not isinstance(k0lF, type(tjUW)): return NotImplemented return k0lF.domain == tjUW.domain and k0lF.rep == tjUW.rep
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if not isinstance(Elif, Idro):\n return NotImplemented\n return YKHO.domain == Elif.domain and YKHO.rep == Elif.rep", "def xa14(YKHO, Elif):\n return YKHO.id_map == Elif.id_map and YKHO.matrix == Elif.matrix and (YKHO.size == Elif.size)", "def xa14(YKHO, Elif):\n if Y...
[ "0.7310266", "0.7251817", "0.7118429", "0.70799834", "0.705573", "0.7045561", "0.7029675", "0.7021802", "0.698679", "0.6981819", "0.6960576", "0.6892625", "0.6877056", "0.68619347", "0.6841737", "0.6838758", "0.6808563", "0.6802841", "0.67947996", "0.6767748", "0.6723825", ...
0.67667663
20
Test a registry with a missing standard name. Check that it does not validate and does not generate any Fortran or metadata files
def C7yy(YKHO): iwdW = Hy7s.path.join(wfZO, 'reg_good_simple.xml') Ux0P = Hy7s.path.join(PfW7, 'reg_no_std_name.xml') bxgK = 'physics_types_no_std_name' Etmr = Hy7s.path.join(PfW7, bxgK + '.F90') Fec_ = Hy7s.path.join(PfW7, bxgK + '.meta') jcgT([Etmr, Fec_]) J_Es, tk5Y = H4Ez(iwdW) for Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EWnf(YKHO):\n QvNN()", "def _FVr(YKHO):\n iwdW = Hy7s.path.join(wfZO, 'reg_good_mf.xml')\n Ux0P = Hy7s.path.join(PfW7, 'reg_no_mf.xml')\n bxgK = 'physics_types_no_mf'\n Etmr = bxgK + '.F90'\n X87s = bxgK + '.meta'\n Etmr = Hy7s.path.join(PfW7, bxgK)\n Fec_ = Hy7s.path.join(PfW7, X87s)...
[ "0.68783224", "0.6453713", "0.64522105", "0.63392645", "0.6313093", "0.61355084", "0.60785717", "0.59977686", "0.5938566", "0.5891832", "0.5828589", "0.5826495", "0.5821727", "0.5809477", "0.57814956", "0.5778031", "0.5775003", "0.57567817", "0.5706741", "0.569216", "0.562601...
0.7792895
0
Test a registry with a DDT variable that has a kind attribute. Check that it raises an exception and does not generate any Fortran or metadata files
def I2ix(YKHO): iwdW = Hy7s.path.join(wfZO, 'reg_good_ddt.xml') Ux0P = Hy7s.path.join(PfW7, 'reg_ddt_with_kind.xml') bxgK = 'physics_types_ddt_with_kind' Etmr = Hy7s.path.join(PfW7, bxgK + '.F90') Fec_ = Hy7s.path.join(PfW7, bxgK + '.meta') jcgT([Etmr, Fec_]) J_Es, tk5Y = H4Ez(iwdW) for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nmp3(YKHO):\n iwdW = Hy7s.path.join(wfZO, 'reg_good_ddt.xml')\n Ux0P = Hy7s.path.join(PfW7, 'reg_ddt_var_unknown.xml')\n bxgK = 'physics_types_ddt_var_unknown_type'\n Etmr = Hy7s.path.join(PfW7, bxgK + '.F90')\n Fec_ = Hy7s.path.join(PfW7, bxgK + '.meta')\n jcgT([Etmr, Fec_])\n J_Es, tk5Y ...
[ "0.62541693", "0.6181157", "0.6161756", "0.5971583", "0.5942705", "0.58668464", "0.5816771", "0.5774226", "0.5762913", "0.5747795", "0.57199615", "0.56552935", "0.5652728", "0.5602194", "0.559683", "0.5592391", "0.55627656", "0.5551885", "0.5521057", "0.55121905", "0.54599315...
0.7301836
0
Get the new state, reward, and done state of the action.
def YPaw(YKHO, XeOP): YKHO.move_step(XeOP) Mkmy, Csk6 = YKHO.check_goal() tZcN = YKHO.render_env() return (tZcN, Mkmy, Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPaw(YKHO, XeOP):\n vOGg = YKHO.__execute(XeOP)\n YKHO.__totalReward += vOGg\n jGRS = YKHO.__status()\n QTBn = YKHO.__observe()\n G9jH.debug('action: {:10s} | reward: {: .2f} | status: {}'.format(eax5(XeOP).name, vOGg, jGRS))\n return (QTBn, vOGg, jGRS)", "def YPaw(YKHO, XeOP):\n Ylbp = ...
[ "0.7568853", "0.7404111", "0.71776295", "0.7073127", "0.7050767", "0.6966503", "0.69647443", "0.6957431", "0.69570696", "0.69411266", "0.68772703", "0.68572736", "0.68553555", "0.6851779", "0.6833063", "0.6803432", "0.6769455", "0.6756298", "0.6752057", "0.6748703", "0.673830...
0.6354836
69
Get authorization header for user using the passed client.
def VsOv(x0hE, CBIr): geh0 = x0hE.post(gxEw('token-obtain'), data={'username': CBIr.username, 'password': CBIr.raw_password}, content_type='application/json') eOtH = geh0.json()['access'] return {'HTTP_AUTHORIZATION': f'Bearer {eOtH}'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJXr(YKHO, CBIr):\n NT__ = MXpj.create(user=CBIr, application=TA8m()).token\n MOPg = {'HTTP_AUTHORIZATION': 'Bearer ' + NT__}\n return MOPg", "def xJXr(YKHO, CBIr):\n NT__ = MXpj.create(user=CBIr, application=TA8m()).token\n MOPg = {'HTTP_AUTHORIZATION': 'Bearer ' + NT__}\n return MOPg", ...
[ "0.6606202", "0.6606202", "0.65720737", "0.65720737", "0.64708054", "0.60986817", "0.60356957", "0.60226136", "0.5895739", "0.5854155", "0.5800252", "0.5783965", "0.5766352", "0.57551414", "0.5745023", "0.57149726", "0.5712809", "0.56914514", "0.56868017", "0.56868017", "0.56...
0.81782097
0
Get the raw data of the replacement text from correct yaml file
def _fyW(M8B1: List[str], sB1G: str='translation', rQow: str='') -> cuzp[ImMB, cuzp[ImMB, ImMB]]: nPrm = {} G9jH.debug(f' --- Starting get_replacement_data() for data_type = {sB1G} and language = {rQow}') if Epht.making_template: DuqQ = 'en' else: DuqQ = rQow for nUeQ in M8B1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDvd(YKHO):\n l5Ny = ''.join(YKHO._lines)\n EtmD = qPGQ.Template(l5Ny).render()\n return eJb6.load(EtmD)", "def ppew(YKHO):\n with open('.travis.yml') as eHNT:\n hGN5 = eJb6.load(eHNT)\n return hGN5", "def cO1h(YKHO, l5Ny):\n return eJb6.safe_load(l5Ny)", "def jZvR(oUnD, nPrm={})...
[ "0.63911444", "0.6182076", "0.614977", "0.6144118", "0.6126104", "0.5768432", "0.5742558", "0.57341444", "0.567105", "0.56645757", "0.55821717", "0.55663025", "0.55575216", "0.5523943", "0.55035734", "0.55023074", "0.54623216", "0.5405846", "0.53910786", "0.5389414", "0.53699...
0.61133593
5
Insert a sequence at the given position.
def JPHp(YKHO, dQgj, JPHp): assert all((BdN0 in YKHO.ALPHABET for BdN0 in JPHp)) if dQgj < 1 or dQgj - 1 > len(YKHO.sequence): raise ValueError(f'Insertion position {dQgj} out of bonds for given sequence.') YKHO.sequence = f'{YKHO.sequence[:dQgj - 1]}{JPHp}{YKHO.sequence[dQgj:]}' if 'mutations' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lMzy(aWuw, d6pt, U6D_):\n SQYC = aWuw[:d6pt] + U6D_ + aWuw[d6pt:]\n return SQYC", "def JPHp(YKHO, oeNL, u54L):\n if oeNL in YKHO.insertions:\n YKHO.insertions[oeNL] += u54L\n else:\n YKHO.insertions[oeNL] = u54L", "def JPHp(YKHO, exwG, oeNL):\n if oeNL == 0:\n YKHO.cons(...
[ "0.71550727", "0.70287114", "0.6779251", "0.65152967", "0.65025556", "0.6484994", "0.64291614", "0.64140797", "0.6331637", "0.6325899", "0.6309266", "0.6307709", "0.6244849", "0.62239134", "0.6169491", "0.6159841", "0.61403745", "0.6126771", "0.6121638", "0.61068463", "0.6040...
0.78549856
0
Updates the boids' accelerations by all of its behavioral rules. The effect of each rule is filtered by the mutual influence matrix and weighted by its own coefficient.
def x0sR(YKHO) -> None: for eD8c, lk9W in YKHO.rules.items(): oNEd = eD8c(YKHO) YKHO.update_acc(oNEd, lk9W)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xlji(YKHO, _ACw, W3qO):\n bXXt, OP10, GDWp, wjRY = YKHO.compute_in_radius(W3qO)\n KYa1 = YKHO.align(_ACw, bXXt, wjRY)\n EVyh = YKHO.cohesion(_ACw, OP10, wjRY)\n s2Ni = YKHO.separation(_ACw, GDWp, wjRY)\n YKHO.acceleration += KYa1\n YKHO.acceleration += EVyh\n YKHO.acceleration += s2Ni", ...
[ "0.66462886", "0.65182894", "0.62520367", "0.6176411", "0.58295554", "0.5811342", "0.57856274", "0.5667284", "0.5651299", "0.56139237", "0.5607561", "0.5546322", "0.5546322", "0.5546322", "0.5546322", "0.5542807", "0.55238605", "0.55109304", "0.54686683", "0.54572076", "0.545...
0.6409487
2
Append a new rule to the boids' default behavioral rules appends a new rule to the boids' existing rule
def oT2L(YKHO, *qIxc: Tuple[Callable, float]) -> None: for eD8c, bGrB in qIxc: setattr(wI_P, eD8c.__name__, eD8c) YKHO.rules.update({eD8c: lk9W for eD8c, lk9W in qIxc})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a0cO(YKHO, eD8c):\n YKHO.rule.append(eD8c)", "def a0cO(YKHO, eD8c) -> None:\n YKHO.add_rules([eD8c])", "def a0cO(YKHO, eD8c):\n YKHO.rules.append(eD8c)", "def a0cO(eD8c):\n global RULE_DICT\n if eD8c[0] not in oSEM:\n oSEM[eD8c[0]] = []\n oSEM[eD8c[0]].append(eD8c[1:])", "def a...
[ "0.71578425", "0.69797266", "0.69791746", "0.6923265", "0.68801445", "0.68325424", "0.6799666", "0.6794736", "0.6519926", "0.6495337", "0.6444254", "0.6375227", "0.6325688", "0.62689775", "0.6252311", "0.6248839", "0.6220549", "0.60842717", "0.60406107", "0.6034459", "0.60220...
0.7229486
0
Limits the magnitude of the input matrix/vector along the 0th axis. This function will only activate if the magnitude of the input is greater than the specified limit.
def g6gX(ezWE: np.ndarray, qoqK: float) -> oyIN.ndarray: CkYf = oyIN.linalg.norm(ezWE, axis=0) return ezWE / oyIN.where(CkYf > qoqK, CkYf / qoqK, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qoqK(YKHO, Xk2t: float):\n if YKHO.mag() > Xk2t:\n YKHO.values = tuple(YKHO.norm() * Xk2t)\n return YKHO", "def BtPP(YKHO, he6J, qoqK=None):\n FOSW = oyIN.linalg.norm(he6J)\n if not qoqK:\n qoqK = YKHO.vec_mag_limit\n if FOSW < qoqK:\n return he6J\n return he6J * (qoqK ...
[ "0.6425002", "0.639677", "0.58209056", "0.58038825", "0.5767511", "0.56844366", "0.559588", "0.55820006", "0.5580737", "0.54883015", "0.54722536", "0.54082", "0.540348", "0.53970385", "0.5388405", "0.5331233", "0.53288496", "0.52706766", "0.5270119", "0.52564836", "0.52482295...
0.6473633
0
Return all the tags on this object, regardless of category.
def all(YKHO) -> list: return list(YKHO.__holder.db_tags)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G70B(YKHO):\n return YKHO._tags", "def Qwli(YKHO):\n return YKHO.tags", "def Qwli(YKHO):\n return YKHO.tags", "def dJ1p(YKHO) -> x1iM[OhYN]:\n return YKHO._tags", "def Qwli(YKHO) -> fHNa[I2jr]:\n return {TZ9E for TZ9E in YKHO.tags}", "def qvDz(YKHO):\n return YKHO.tags", "def dJ1p...
[ "0.80873924", "0.76988554", "0.7685985", "0.7613178", "0.75967216", "0.7576979", "0.7533801", "0.7497775", "0.7497775", "0.7497775", "0.7497775", "0.7497775", "0.7497775", "0.7497775", "0.7497775", "0.7278242", "0.7269573", "0.7268734", "0.7265938", "0.7265938", "0.72120774",...
0.0
-1
Return all the tags on this object, in the given category.
def HO00(YKHO, Ghho: str) -> list: return list(YKHO.__holder.db_tags.filter(lambda a1PO: a1PO.category == Ghho))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G70B(YKHO):\n return YKHO._tags", "def TZ9E(YKHO, ehZI={}):\n YKHO.tags.update(ehZI)\n return YKHO.tags", "def TgwQ(Emd4, hLhr: str, Ghho: ty.Optional[str]=None) -> Yrvv.Set[NCls.Entity]:\n dJ1p = Emd4.select(lambda a1PO: a1PO.name == hLhr)\n if Ghho is not None:\n dJ1p = dJ1p.filter(...
[ "0.72470844", "0.6895858", "0.68126684", "0.6623663", "0.6261047", "0.62491196", "0.62253946", "0.6223657", "0.617257", "0.6166665", "0.6159755", "0.6157589", "0.6147112", "0.6143004", "0.61422914", "0.6136447", "0.61342096", "0.61030024", "0.60924834", "0.6087911", "0.607700...
0.8041095
0
Set the IO pin used for Gpio
def UDRf(YKHO, yQ5t): if yQ5t not in range(0, 14): raise Exception('Incorrect pin {} selected. Pins available (0 to 13)'.format(yQ5t)) else: YKHO.pin = yQ5t YKHO.gpio_pin = ifH5.Gpio(yQ5t)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UDRf(YKHO):\n xi8C.setwarnings(False)\n xi8C.setmode(xi8C.BOARD)\n xi8C.setup(YKHO.pin, xi8C.OUT)\n xi8C.output(YKHO.pin, xi8C.LOW)\n ITS7.sleep(3)\n xi8C.output(YKHO.pin, xi8C.HIGH)", "def d_lt(YKHO, hkS8):\n YKHO.logging.debug('Setting ' + hkS8.label + ' to ' + str(hkS8.value) + ' on p...
[ "0.77708316", "0.72250545", "0.7117954", "0.7034014", "0.697967", "0.6922211", "0.67139626", "0.66982925", "0.66900015", "0.664088", "0.6617076", "0.65627766", "0.6547264", "0.65464395", "0.65358406", "0.65099466", "0.6469963", "0.64698595", "0.64566153", "0.6448463", "0.6402...
0.72110295
2
Creates a new `Progress` instance from a raw unparsed dict.
def rqiF(Emd4, nPrm: Dict[str, str]): print(nPrm) return Emd4(**{Jyyj: Emd4._PARSERS.get(Jyyj, str)(nPrm[Jyyj]) for Jyyj in Emd4.__dataclass_fields__ if Jyyj in nPrm})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, Csk6):\n assert 'status' in Csk6\n assert 'metadata' in Csk6\n return Emd4(**Csk6)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n...
[ "0.7018969", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "0.6626099", "...
0.6170516
53
Gets the name of this V1Parameter. Name must be set and it can be referenced in Template Items using ${PARAMETER_NAME}. Required.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0HP(YKHO):\n return _VfD.Parameter_getName(YKHO)", "def W0tD(YKHO):\n return YKHO.get_parameter('name')", "def W0tD(YKHO) -> str:\n mWFP = YKHO.raw_param.get('name')\n return mWFP", "def _N6A(YKHO):\n return YKHO._param_name", "def uLFj(YKHO):\n return _VfD.Parameter_getElementName(Y...
[ "0.8336643", "0.77589035", "0.7642262", "0.7572355", "0.71773744", "0.6917043", "0.6913706", "0.6864129", "0.685302", "0.68067783", "0.680277", "0.678839", "0.6762121", "0.67531896", "0.6750995", "0.6750995", "0.671956", "0.6679734", "0.6679734", "0.6679734", "0.6679734", "...
0.0
-1
Gets the display_name of this V1Parameter.
def qQNS(YKHO): return YKHO._display_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQNS(YKHO):\n return YKHO.properties.get('displayName', None)", "def qQNS(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'display_name...
[ "0.750886", "0.73503536", "0.73503536", "0.73503536", "0.73503536", "0.73503536", "0.73503536", "0.73219526", "0.73219526", "0.73219526", "0.73219526", "0.73219526", "0.7288173", "0.72772527", "0.72772527", "0.72772527", "0.72772527", "0.72772527", "0.72772527", "0.72772527", ...
0.71122587
73
Sets the display_name of this V1Parameter.
def qQNS(YKHO, qQNS): YKHO._display_name = qQNS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HJeF(YKHO, qQNS):\n YKHO._call('set_display_name', display_name=qQNS)", "def qQNS(YKHO, qQNS: str):\n YKHO._display_name = qQNS", "def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS", "def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS", "def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",...
[ "0.7599665", "0.7508359", "0.72949785", "0.72949785", "0.72949785", "0.72949785", "0.72949785", "0.72949785", "0.66742635", "0.66123646", "0.6387324", "0.62462187", "0.5896558", "0.58026224", "0.57787293", "0.57521135", "0.57521135", "0.57521135", "0.57521135", "0.57521135", ...
0.73505455
7
Gets the description of this V1Parameter. Description of a parameter. Optional.
def JBZA(YKHO): return YKHO._description
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Txj(CVOT, SRYB):\n wEf2 = CVOT['/input/params/%s' % SRYB].value\n if type(wEf2) != str:\n wEf2 = wEf2.decode('UTF-8')\n wEf2 = xlGG(wEf2)\n QoB4 = wEf2.description\n if QoB4:\n return QoB4\n return SRYB", "def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'd...
[ "0.67779255", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", "0.6743164", ...
0.0
-1
Sets the description of this V1Parameter. Description of a parameter. Optional.
def JBZA(YKHO, JBZA): YKHO._description = JBZA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.description = JBZA", "def JBZA(YKHO, JBZA):\n if JBZA is None:\n raise ValueError('Invalid value for `description`, must not be `None`')\n YKHO._descrip...
[ "0.705752", "0.70541906", "0.7035205", "0.6985398", "0.6980727", "0.6980727", "0.6980727", "0.6980727", "0.69634897", "0.69586897", "0.6945588", "0.6931753", "0.6931753", "0.6931753", "0.6931753", "0.68970704", "0.6831176", "0.67569405", "0.67543674", "0.6739382", "0.6705501"...
0.6927959
49
Gets the _from of this V1Parameter. From is an input value for the generator. Optional.
def haVx(YKHO): return YKHO.__from
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ifCF(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'from_')", "def ifCF(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'from_')", "def ifCF(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'from_')", "def jtrH(YKHO):\n return YKHO.get_parameter.get('from')", "def ifCF(YKHO):\n re...
[ "0.74373275", "0.74373275", "0.74373275", "0.7194117", "0.64394814", "0.62438667", "0.62062824", "0.6194226", "0.6194226", "0.6189661", "0.59630805", "0.592034", "0.58989894", "0.58940274", "0.5869902", "0.5831524", "0.57826793", "0.5742681", "0.57424104", "0.5712392", "0.563...
0.6890081
6
Sets the _from of this V1Parameter. From is an input value for the generator. Optional.
def haVx(YKHO, haVx): YKHO.__from = haVx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def haVx(YKHO, haVx):\n if haVx is None:\n raise ValueError('Invalid value for `_from`, must not be `None`')\n YKHO.__from = haVx", "def Dbo5(YKHO, icTz):\n if isinstance(icTz, (str,)):\n YKHO.set_parameter('from', icTz)\n if isinstance(icTz, (qcWV,)):\n YKHO.set_parameter('from'...
[ "0.76100576", "0.7499724", "0.6521606", "0.6521606", "0.645407", "0.64262307", "0.6399411", "0.6157603", "0.6157603", "0.6157603", "0.6012709", "0.5913504", "0.58679134", "0.5815317", "0.5745893", "0.57153845", "0.57153845", "0.57153845", "0.5621879", "0.53952944", "0.5382046...
0.7228746
5
Gets the required of this V1Parameter.
def jeGQ(YKHO): return YKHO._required
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jeGQ(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 'required')", "def jeGQ(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'required')", "def jeGQ(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'required')", "def jeGQ(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get...
[ "0.6975728", "0.69183755", "0.69183755", "0.68999743", "0.66399527", "0.6597883", "0.6597883", "0.6591579", "0.6480089", "0.6414753", "0.6408342", "0.63553196", "0.634542", "0.6259731", "0.619959", "0.6185172", "0.6085996", "0.6053564", "0.6019357", "0.60031337", "0.5997075",...
0.72549653
1
Returns true if both objects are equal
def xa14(YKHO, Elif): 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.8088132", "0.8088132", "0.8054589", "0.7982687", "0.7961088", "0.7961088", "0.79433626", "0.79303336", "0.7926563", "0.7897525", "0.78826123", "0.78826123", "0.78806067", "0.7872423", "0.7868354", "0.78668815", "0.7825702", "0.7819993", "0.78162885", "0.78078854", "0.78068...
0.79670393
47
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.8457167", "0.8393036", "0.81455255", "0.8139734", "0.81333447", "0.8094964", "0.8093362", "0.8093362", "0.8093362", "0.80863476", "0.80863476", "0.8077286", "0.8077286", "0.806682" ]
0.0
-1
Test case for dashboards_v2_update
def WX4S(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YkiM(YKHO):\n Hy7s.unlink(YKHO.dboard._path)\n YKHO.dboard.update_dashboard()\n YKHO.assertTrue(Hy7s.path.isfile(YKHO.dboard._path))", "def b6pt(YKHO):\n pass", "def Tbie(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(...
[ "0.74163353", "0.7246876", "0.7155249", "0.7070719", "0.7010909", "0.7010909", "0.7010909", "0.6946631", "0.6806688", "0.6731626", "0.6626995", "0.66035193", "0.64835584", "0.64800835", "0.64792293", "0.6466244", "0.6455214", "0.64326435", "0.64298064", "0.6385786", "0.634503...
0.9138029
0
Returns the topk items ordered by a relevancy score. Obtained probabilities are used as recommendation score.
def C1db(YKHO, WKvO, G1Hx, CsVH=True): p1kx = YKHO.model.predict(WKvO) if CsVH: d0_s = oyIN.not_equal(WKvO, 0) p1kx[d0_s] = 0 RAjm = oyIN.argpartition(-p1kx, range(G1Hx), axis=1)[:, :G1Hx] OFou = p1kx.copy() OFou[oyIN.arange(OFou.shape[0])[:, None], RAjm] = 0 s3E8 = p1kx - OFou ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YnJS(YKHO, DumB, H42b=10, kOhK=False):\n bEVn = DumB[YKHO.col_item].map(YKHO.item2index)\n if YKHO.col_rating in DumB.columns:\n mwlV = DumB[YKHO.col_rating]\n else:\n mwlV = rLdf.Series(oyIN.ones_like(bEVn))\n if YKHO.col_user in DumB.columns:\n zeVW = DumB[YKHO.col_user]\n ...
[ "0.71710426", "0.7149169", "0.6856658", "0.6834214", "0.68246776", "0.6760741", "0.6760536", "0.67306244", "0.6693146", "0.66901475", "0.6671577", "0.6577725", "0.63678414", "0.63514674", "0.6309947", "0.62948525", "0.6253606", "0.6252747", "0.62473625", "0.6206402", "0.61816...
0.7145789
2
Calculate negative ELBO (NELBO).
def pyPi(YKHO, WKvO, fTjR): NP9T = ZylS.nn.log_softmax(fTjR) YKHO.neg_ll = -ZylS.reduce_mean(input_tensor=ZylS.reduce_sum(input_tensor=NP9T * WKvO, axis=-1)) jzdc = ZylS.keras.backend.print_tensor(YKHO.neg_ll) zIzJ = nMvt.mean(0.5 * nMvt.sum(-1 - YKHO.z_log_var + nMvt.square(YKHO.z_mean) + nMvt.exp(YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aRKO(YKHO, VrTm):\n return -YKHO.full_neg_posterior(VrTm) - YKHO.create_normal_logq(VrTm)", "def aRKO(YKHO, VrTm):\n return -YKHO.neg_posterior(VrTm) - YKHO.create_normal_logq(VrTm)", "def K3oi(YKHO):\n YKHO.neg_elbo = ZylS.reduce_sum([-YKHO.experts[YRbF].elbo((YKHO.X[YKHO.partition[YRbF]], YKHO.Y...
[ "0.7168848", "0.71661013", "0.71584994", "0.6613478", "0.6594607", "0.6560377", "0.631102", "0.63086635", "0.62857795", "0.6270272", "0.62088966", "0.6094955", "0.6089229", "0.5907097", "0.58984536", "0.58747256", "0.58610594", "0.585848", "0.58384037", "0.58297944", "0.58282...
0.6439545
6
Returns the topk items ordered by a relevancy score. Obtained probabilities are used as recommendation score.
def C1db(YKHO, WKvO, G1Hx, CsVH=True): YKHO.model.load_weights(YKHO.save_path) p1kx = YKHO.model.predict(WKvO) if CsVH: d0_s = oyIN.not_equal(WKvO, 0) p1kx[d0_s] = 0 RAjm = oyIN.argpartition(-p1kx, range(G1Hx), axis=1)[:, :G1Hx] OFou = p1kx.copy() OFou[oyIN.arange(OFou.shape[0])[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YnJS(YKHO, DumB, H42b=10, kOhK=False):\n bEVn = DumB[YKHO.col_item].map(YKHO.item2index)\n if YKHO.col_rating in DumB.columns:\n mwlV = DumB[YKHO.col_rating]\n else:\n mwlV = rLdf.Series(oyIN.ones_like(bEVn))\n if YKHO.col_user in DumB.columns:\n zeVW = DumB[YKHO.col_user]\n ...
[ "0.71710426", "0.7145789", "0.6856658", "0.6834214", "0.68246776", "0.6760741", "0.6760536", "0.67306244", "0.6693146", "0.66901475", "0.6671577", "0.6577725", "0.63678414", "0.63514674", "0.6309947", "0.62948525", "0.6253606", "0.6252747", "0.62473625", "0.6206402", "0.61816...
0.7149169
1
Generate instance masks for num_categories of the given image ID.
def FEdX(YKHO, r8m5): U34r = YKHO.image_info[r8m5] V5yV = U34r['cards'] UHFx = 1 ZHfW = oyIN.zeros([U34r['height'], U34r['width'], UHFx], dtype=oyIN.uint8) ZHfW[:, :, 0] = YKHO.draw_quadrilateral(ZHfW[:, :, 0].copy(), U34r['cornerpoints'], 1) QF4n = oyIN.logical_not(ZHfW[:, :, -1]).astype(oyIN.u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FEdX(YKHO, r8m5):\n F5V2 = YKHO.image_info[r8m5]\n XgyP = F5V2['annotations']\n xjrI = []\n WEJA = []\n for ICn2 in XgyP:\n V8Gh = ICn2['category_id']\n ZHfW = hnIv.new('1', (F5V2['width'], F5V2['height']))\n uf8K = nuov.ImageDraw(ZHfW, '1')\n for vbNC in ICn2['segmen...
[ "0.7168982", "0.68232125", "0.6819072", "0.6754465", "0.67494434", "0.66466624", "0.6646137", "0.6609447", "0.66015846", "0.65896213", "0.6575726", "0.65696466", "0.6507139", "0.6501369", "0.64992666", "0.6493003", "0.6472146", "0.6458939", "0.64004475", "0.6388024", "0.63486...
0.7008365
1
Generates random string of given length.
def eSJ8(u54L): return ''.join((tuKI.SystemRandom().choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(u54L)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L):\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(u54L)))", "def e7Tf(u54L=30):\n dLKT = C1SZ + BHGE\n return ''.join((Acvy(dLKT) for b...
[ "0.8931698", "0.8839906", "0.87027717", "0.862099", "0.8618227", "0.8617294", "0.85954386", "0.8574947", "0.8534365", "0.85126984", "0.85051626", "0.84650296", "0.8443502", "0.84123546", "0.83955485", "0.8380645", "0.83545065", "0.8348835", "0.83404094", "0.83308583", "0.8312...
0.0
-1
Generates a random barcode of the form FLIM, where the are alphanumeric characters. That gives a random range of 60 million possible barcodes.
def TCqG(BkWp=5, gLiZ=vIwR.digits + vIwR.uppercase): return 'FLIM-' + ''.join([tuKI.choice(gLiZ) for bGrB in Ni9Y(BkWp)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HLwP():\n return ''.join([tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(10)])", "def Mdv_():\n BHGE = [str(mLGw) for mLGw in range(10)]\n tuKI.shuffle(BHGE)\n return BHGE[:3]", "def _daK(YKHO):\n mSrU = '0123456789'\n return ''.join((tuKI.choice(mSrU) for bseI in range...
[ "0.7138197", "0.6684884", "0.6545216", "0.65020794", "0.6493189", "0.6441008", "0.6403886", "0.6377922", "0.63652015", "0.6309812", "0.63042516", "0.62489617", "0.6127796", "0.61220354", "0.60194755", "0.6000993", "0.60008746", "0.5996696", "0.5958608", "0.5949149", "0.593747...
0.7978328
0
Return the name of the sensor.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._sensor.name", "def _lKy(YKHO):\n return YKHO.data[1]", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'", "def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'", "def mWFP(YKHO):\n return f'{YKHO._na...
[ "0.91900426", "0.9168249", "0.8901578", "0.8770551", "0.8511197", "0.8479612", "0.84444356", "0.8299865", "0.81868285", "0.81055766", "0.8079376", "0.80653954", "0.8050165", "0.77025265", "0.76141983", "0.76136565", "0.76024383", "0.76024383", "0.76024383", "0.7540682", "0.75...
0.0
-1
Turn all LEDs off.
def SCq0(YKHO): YKHO.fill_off() YKHO.update() YKHO.fill_off() YKHO.update()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QAmq(YKHO):\n for GDDk in f7Ob:\n YKHO.led_off(GDDk)\n G9jH.info('LED: ALL - Status: 0')", "def l4XF(YKHO):\n for agxD in YKHO.all:\n xi8C.output(agxD, 0)", "def Z_rv(YKHO):\n print('Turning the lights off')\n YKHO.led.all_off()\n YKHO.client.publish(uf2Z, nGxz)", "def Z_r...
[ "0.8985069", "0.86606133", "0.8338021", "0.7999493", "0.79426444", "0.77855045", "0.77235276", "0.7641416", "0.7628676", "0.7491996", "0.74485344", "0.74444056", "0.74116737", "0.7399586", "0.73635733", "0.73297215", "0.73277986", "0.7293217", "0.7254837", "0.72381693", "0.72...
0.6727476
52
Moves every bullet and checks collision with enemy
def tUyo(YKHO, y917, icVf): YKHO.cooldown(CzUC) for YBnT in YKHO.bullets: YBnT.move(y917) if YBnT.off_screen(dVi8): YKHO.bullets.remove(YBnT) else: for JjEH in icVf: if YBnT.bullet_collision(JjEH): icVf.remove(JjEH) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wi9a(mawX, nMCs):\n for JjEH in nMCs:\n if mawX.colliderect(JjEH[1]) and mawX.bottom - 4 < JjEH[1].top:\n _nz1.append([[JjEH[1].x, JjEH[1].y], t3jG, [0, 0], 45])\n nMCs.remove(JjEH)", "def Kokx(YKHO):\n for JjEH in a9eO.sprite.spritecollide(YKHO, Lk5U, False, collided=a9eO....
[ "0.68499255", "0.6699276", "0.6641216", "0.6632509", "0.6631075", "0.6597619", "0.6576827", "0.6536081", "0.65184474", "0.6454792", "0.644817", "0.64457405", "0.6440626", "0.6424823", "0.6412154", "0.6411753", "0.6411751", "0.6408061", "0.63944864", "0.6362468", "0.63506466",...
0.74962366
0
The worker who communicated to this server for the first time, will get a unique ID.
def kI0b(): if qp2W == aGHv.WorkStatusNames.finished_work.value: I77Q('Forbidden', "This server doesn't need anymore workers, it finished it's job") o3G5 = str(wPWn()) print('New worker entered ' + o3G5) jjty = {'worker_id': o3G5, 'worker_ip': QePW.environ.get('HTTP_X_FORWARDED_FOR') or QePW.env...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U3lI(YKHO):\n return YKHO._worker_id", "def U3lI(YKHO):\n return YKHO.assignment.WorkerId", "def G3Po():\n from time import time\n return int(time())", "def Y9Ym(YKHO):\n return YKHO.unique_id", "def l_ss(YKHO):\n return qxeD.uuid4().hex", "def unpH(YKHO):\n YKHO.redis.setnx('job...
[ "0.73427", "0.6750778", "0.6677065", "0.6639651", "0.6544856", "0.64145404", "0.6392464", "0.63923246", "0.63904136", "0.63639605", "0.6351515", "0.63004917", "0.62970066", "0.6291544", "0.6285231", "0.6285231", "0.62826437", "0.628178", "0.62793946", "0.6276424", "0.6273457"...
0.0
-1
Create an subject from the values dictionary.
def XyOV(QpfX, hkxX): return Gf2f(QpfX, hkxX, None, purge_props=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TolR(QpfX, hkxX, cuiw=None):\n Tx36 = FYrf.SubjectProperty()\n QWcs = _N6T(QpfX, Tx36, hkxX, session=cuiw)\n return QWcs.to_dict()", "def v2Qe(QpfX, hkxX, cuiw=None):\n MVqB = FYrf.SubjectMember()\n A9fD(QpfX, MVqB, hkxX, session=cuiw)\n return dvnM(MVqB)", "def eLpg(UhTt, s7lQ, WiER, taD...
[ "0.6719623", "0.61484027", "0.6093333", "0.56392276", "0.5612736", "0.5576184", "0.5552742", "0.54739", "0.5399233", "0.5387403", "0.53574824", "0.53574824", "0.53574824", "0.53574824", "0.53574824", "0.53174007", "0.530313", "0.5256148", "0.5249234", "0.52405345", "0.5212260...
0.7354736
0
Get an subject or raise if it does not exist.
def b0h_(QpfX, HjSO, cuiw=None, L4II=False): DYJs(HjSO) cuiw = cuiw or KfiN() try: xDcj = cuiw.query(FYrf.Subject).options(HxOv.joinedload(FYrf.Subject.properties)).options(HxOv.joinedload(FYrf.Subject.locations)).filter_by(id=HjSO) if not L4II and (not QpfX.can_see_deleted): xDc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VXDd(HjSO: SubjectID) -> h8nf[zUvH]:\n U4ZT = hFei.query.get(HjSO)\n if U4ZT is None:\n return None\n return p9vQ(U4ZT)", "def EBjp(YKHO, QePW, HjSO):\n p4sf = U4ZT.db.get_api()\n krx6 = U4ZT.db.SubjectRepo(QePW.context, p4sf)\n try:\n U4ZT = krx6.get(HjSO)\n QePW.envir...
[ "0.7166992", "0.60514516", "0.60401314", "0.6003597", "0.60032964", "0.598148", "0.5942868", "0.578982", "0.5784934", "0.574257", "0.56569445", "0.5612184", "0.5577021", "0.5571173", "0.5479306", "0.54013395", "0.54000425", "0.5384278", "0.53687537", "0.5359544", "0.5326008",...
0.68371254
1
Removed protected attributes from values dictionary using the models __protected_attributes__ field.
def PLDW(jxGD, hkxX): for hkS8 in jxGD.__protected_attributes__: if hkS8 in hkxX: del hkxX[hkS8]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DnKP(YKHO):\n o8Kj = {}\n for jzdc in YKHO.attributes.only('name', 'value', 'attribute').iterator():\n if jzdc.attribute.multi:\n if jzdc.name not in o8Kj:\n o8Kj[jzdc.name] = []\n o8Kj[jzdc.name].append(jzdc.value)\n else:\n o8Kj[jzdc.name] =...
[ "0.6295131", "0.59958804", "0.59696347", "0.5935034", "0.5811424", "0.568888", "0.567086", "0.5664389", "0.56493944", "0.5640074", "0.56233746", "0.56223124", "0.5611786", "0.5591424", "0.5586236", "0.5567396", "0.5558045", "0.5536151", "0.5524247", "0.55179757", "0.5494092",...
0.8467441
0