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
r"""VGG 13layers model (configuration "B") from
def ZsU2(mL4f: bool=False, Eb4t: bool=True, **B2fa: Any) -> s3br: return zm1_('vgg13', 'B', False, mL4f, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XF5m(mL4f, **B2fa):\n C3ST = s3br(AaDq(_Fei['D'], batch_norm=True), **B2fa)\n if mL4f:\n BJY9 = CbyH.load('./pre_model/vgg16_bn.paddle')\n C3ST.set_state_dict(BJY9)\n return C3ST", "def pFT6():\n GhuM = (256, 256, 3)\n MYHg = bdPE.applications.VGG19(include_top=False, input_shape...
[ "0.7486823", "0.74588525", "0.72466743", "0.7236979", "0.720446", "0.7148995", "0.70846766", "0.70270526", "0.7020071", "0.6964951", "0.6958259", "0.6897099", "0.6850254", "0.68302625", "0.67775416", "0.67447203", "0.6693358", "0.66475105", "0.6619898", "0.6617245", "0.661391...
0.6269088
40
r"""VGG 16layers model (configuration "D") from
def a7Lb(mL4f: bool=False, Eb4t: bool=True, **B2fa: Any) -> s3br: return zm1_('vgg16', 'D', False, mL4f, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a7Lb(mL4f=False, **B2fa):\n if mL4f:\n B2fa['init_weights'] = False\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['vgg16']), strict=False)\n return C3ST", "def a7Lb(mL4f=False, **B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n if m...
[ "0.77429366", "0.7693995", "0.7606729", "0.7263396", "0.72623867", "0.7207521", "0.7168756", "0.70680714", "0.70441335", "0.6985597", "0.6936568", "0.68743557", "0.6858933", "0.68355286", "0.6832327", "0.68227834", "0.68008953", "0.67717355", "0.6717667", "0.67070454", "0.670...
0.67197424
18
r"""VGG 19layers model (configuration "E") from
def AndN(mL4f: bool=False, Eb4t: bool=True, **B2fa: Any) -> s3br: return zm1_('vgg19', 'E', False, mL4f, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pFT6():\n GhuM = (256, 256, 3)\n MYHg = bdPE.applications.VGG19(include_top=False, input_shape=GhuM, weights='imagenet')\n bySB = MYHg.get_layer(index=9).output\n C3ST = bdPE.Model(inputs=[MYHg.inputs], outputs=[bySB])\n return C3ST", "def pFT6(YKHO):\n MYHg = ZylS.keras.applications.VGG19(...
[ "0.74924934", "0.7319148", "0.7145171", "0.70746773", "0.7020434", "0.6926659", "0.690226", "0.68943894", "0.6889697", "0.68787706", "0.6815616", "0.6800649", "0.67994547", "0.6698768", "0.6625305", "0.6566188", "0.6533605", "0.6508166", "0.65050346", "0.64324456", "0.6399184...
0.5774416
64
r"""VGG 19layers model (configuration "E") with batch normalization
def bFDE(mL4f: bool=False, Eb4t: bool=True, **B2fa: Any) -> s3br: return zm1_('vgg19_bn', 'E', True, mL4f, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WIHu(GhuM):\n Exod = X6a0(GhuM)\n EcVT = yHwh(64, (3, 3), activation='relu', padding='same', name='block1_conv1')(Exod)\n EcVT = yHwh(64, (3, 3), activation='relu', padding='same', name='block1_conv2')(EcVT)\n EcVT = BzBX((2, 2), strides=(2, 2), name='block1_pool')(EcVT)\n EcVT = yHwh(128, (3, 3...
[ "0.662741", "0.65719354", "0.6532577", "0.65323454", "0.64933974", "0.64326143", "0.635741", "0.6335911", "0.633384", "0.63284695", "0.6278508", "0.6277828", "0.62567395", "0.62092257", "0.6134604", "0.61338764", "0.61234397", "0.6112209", "0.60979193", "0.60795146", "0.60750...
0.0
-1
Tokenize given unicode text. Yields each tokenized token, start position(in bytes), end positon(in bytes)
def wr3U(l5Ny): yield (l5Ny, 0, len(l5Ny.encode('utf-16')))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(YKHO, fE52=0, l5Ny=None):\n pass", "def wr3U(YKHO, l5Ny):\n l5Ny = eIAz(l5Ny)\n pRF9 = []\n for eOtH in R_0c(l5Ny):\n gLiZ = list(eOtH)\n if len(gLiZ) > YKHO.max_input_chars_per_word:\n pRF9.append(YKHO.unk_token)\n continue\n fyuJ = False\n ...
[ "0.67784", "0.67445844", "0.6567504", "0.6531172", "0.6478306", "0.64667165", "0.63384664", "0.6332699", "0.62861294", "0.62740296", "0.62372845", "0.6227073", "0.6212162", "0.6174753", "0.61692184", "0.6167863", "0.6123513", "0.61219573", "0.61181265", "0.61022246", "0.60889...
0.7623063
0
The update time timestamp.
def nP7s(YKHO) -> str: return qe4Y.get(YKHO, 'update_time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vit6(YKHO):\n return YKHO._last_update_time", "def nP7s(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'update_time')", "def nP7s(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'update_time')", "def nP7s(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'update_time')", "def nP7s(Y...
[ "0.8406034", "0.82378316", "0.82378316", "0.82378316", "0.82378316", "0.82378316", "0.82378316", "0.82378316", "0.82378316", "0.82329196", "0.81739056", "0.7998141", "0.78888774", "0.7874642", "0.7874642", "0.78073496", "0.7801909", "0.77354795", "0.7700679", "0.76856", "0.76...
0.8717642
7
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, ufvi): 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.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
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.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.0
-1
Proximal operator for joint covariance estimation
def XXsP(fuBA, kTwQ, q7In, a1PO): if fuBA is None: return kTwQ exwG, OM4o = fuBA[0].shape XRGz = fuBA[0] @ fuBA[0].T KCHu, T8ck = oyIN.linalg.eigh(kTwQ / (a1PO * OM4o) - XRGz / OM4o) yzQ0 = (a1PO * OM4o * KCHu + oyIN.sqrt((a1PO * OM4o * KCHu) ** 2 + 4 * (a1PO * OM4o))) / 2 return T8ck @ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def naBM(YKHO):\n ...", "def vdx_(YKHO) -> TT44:\n pass", "def sXFy(YKHO, EcVT):\n if isinstance(EcVT, oyIN.ndarray):\n EcVT = rLdf.DataFrame(EcVT, index=[str(YRbF) for YRbF in range(len(EcVT))])\n PFC2 = YKHO.kernel.make_K(EcVT, hypers=YKHO.hypers)\n pwdp = oyIN.matrix(YKHO._k_star(EcVT)...
[ "0.6625411", "0.63998413", "0.6283477", "0.6253421", "0.6161595", "0.612452", "0.60660034", "0.60641295", "0.60290426", "0.602661", "0.6013919", "0.59484684", "0.5932052", "0.5868303", "0.5864781", "0.5846607", "0.58416504", "0.5814043", "0.5804478", "0.5794451", "0.57800406"...
0.6495126
1
Proximal operator for joint covariance estimation
def A_SW(YKHO, a1PO, kTwQ, HQD7, dBuj, wyyA): Ylbp = dBuj.starmap(XXsP, zip(wyyA['Y'], kTwQ, HQD7, a1PO * oyIN.ones(wyyA['K']))) return oyIN.array(Ylbp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def naBM(YKHO):\n ...", "def XXsP(fuBA, kTwQ, q7In, a1PO):\n if fuBA is None:\n return kTwQ\n exwG, OM4o = fuBA[0].shape\n XRGz = fuBA[0] @ fuBA[0].T\n KCHu, T8ck = oyIN.linalg.eigh(kTwQ / (a1PO * OM4o) - XRGz / OM4o)\n yzQ0 = (a1PO * OM4o * KCHu + oyIN.sqrt((a1PO * OM4o * KCHu) ** 2 + 4...
[ "0.6625411", "0.6495126", "0.63998413", "0.6283477", "0.6253421", "0.6161595", "0.612452", "0.60641295", "0.60290426", "0.602661", "0.6013919", "0.59484684", "0.5932052", "0.5868303", "0.5864781", "0.5846607", "0.58416504", "0.5814043", "0.5804478", "0.5794451", "0.57800406",...
0.60660034
7
Return a readable representation of an invitation.
def wHJl(YKHO): return '<Invitation %r>' % YKHO.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c_G2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'user_invitation_id')", "def wHJl(YKHO):\n return '<{}>'.format(YKHO.email)", "def wHJl(YKHO):\n return '<%s requested to be friends with %s and the status is %s>' % (YKHO.requester.name, YKHO.accepter.name, YKHO.accepted)", "def wHJl(YKHO)...
[ "0.58534473", "0.57448477", "0.5699492", "0.56027234", "0.5544841", "0.55092865", "0.54728633", "0.5469071", "0.5465524", "0.5459138", "0.5437851", "0.5429522", "0.5423583", "0.5411073", "0.5381086", "0.53611654", "0.533922", "0.533922", "0.5323252", "0.53232306", "0.5312983"...
0.7722583
0
Return a JSONencoded representation of an invitation.
def Napc(YKHO): return {'id': YKHO.id, 'code': YKHO.code, 'email': YKHO.email, 'status': YKHO.status.value, 'organization_id': YKHO.organization_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return '<Invitation %r>' % YKHO.id", "def qQXR(YKHO):\n return {'id': YKHO.id, 'email': YKHO.email, 'username': YKHO.username}", "def vmDR(YKHO):\n return {'id': YKHO.id, 'jti': YKHO.jti, 'user': YKHO.user_identity, 'expires': str(YKHO.expires)}", "def Napc(YKHO):\n return {'use...
[ "0.69491315", "0.60443646", "0.6011086", "0.59985125", "0.5883783", "0.58825785", "0.5836389", "0.58355486", "0.5774575", "0.57718086", "0.57450587", "0.57294893", "0.5728438", "0.5728438", "0.5728438", "0.5712919", "0.57122076", "0.5708827", "0.5702355", "0.56938404", "0.569...
0.5571913
55
Determines if Spotify is currently running. Returns
def m5_m(): zJsh = Yn3K.check_output(['osascript', '-e', 'application "Spotify" is running']).decode('utf-8').strip() return zJsh == 'true'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTIh(YKHO):\n return YKHO._running", "def WTIh(YKHO):\n return YKHO.running", "def WTIh(YKHO):\n return YKHO.running", "def WTIh(YKHO):\n return YKHO.running", "def WTIh(YKHO):\n return YKHO in d8qC", "def WTIh(YKHO):\n TF1W = YKHO._grep_qstat('running')\n if TF1W:\n retur...
[ "0.7485294", "0.74583983", "0.74583983", "0.74583983", "0.73877585", "0.73770356", "0.7358338", "0.7355542", "0.7355542", "0.73219174", "0.73219174", "0.72924125", "0.7276731", "0.7273043", "0.72289425", "0.71902716", "0.71661615", "0.7159283", "0.7151589", "0.7058568", "0.70...
0.8088447
0
Various asserts to enforce CLI arguments passed are valid.
def LC7B(qIxc, xQ_r): assert qIxc.volume >= 0 and qIxc.volume <= 100, 'Please provide a volume between [0, 100].' assert not qIxc.memos or (qIxc.memos and Hy7s.path.exists(qIxc.memos)), 'File path to memos does not exist.' assert not qIxc.after_num_plays or qIxc.after_num_plays >= 1, 'Cannot play more than ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jhma(YKHO):\n muOw, hlel = i1H4('a', 'b', 'c')\n assert muOw != 0\n assert 'Error' in hlel\n muOw, hlel = i1H4('--ionice=foo')\n assert muOw != 0\n assert 'Error' in hlel", "def PYDd(cbyt):\n for qIxc in YUuB.valid_args:\n Aofo = cbyt.invoke(YUuB.entrypoint, qIxc)\n assert ...
[ "0.80039465", "0.7776947", "0.7712777", "0.7522933", "0.7512567", "0.7323644", "0.72140616", "0.720253", "0.7150128", "0.71396214", "0.71379906", "0.7124213", "0.71075547", "0.70802087", "0.7078179", "0.7039676", "0.7034683", "0.7022317", "0.7020104", "0.7005434", "0.6996072"...
0.73047763
6
Returns a partial child of TorchMultiActionDistribution. This is useful if inputs needed to instantiate the Distribution from logits are available, but the logits are not.
def z7Ui(qhZb: 'Distribution', **gpA0) -> 'Distribution': class DistributionPartial(qhZb): def FIMM(YKHO, *qIxc, **B2fa): super().__init__(*qIxc, **B2fa) @staticmethod def R1Uf(**B2fa): """Checks if keys in kwargs don't clash with partial_kwargs.""" yHH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_tF(YKHO, pImw):\n return JDk3(YKHO, pImw, AdrB)", "def tzaK(YKHO, NArs: Tensor) -> Y69N:\n if len(NArs.size()) == 1:\n NArs = NArs.unsqueeze(0)\n elif len(NArs.size()) > 2:\n raise ValueError('unknown dimensionality')\n if YKHO.settings.dist is hQev:\n return hQev(logits=NA...
[ "0.60351723", "0.5910864", "0.5807054", "0.5802042", "0.5508554", "0.5449978", "0.5427169", "0.53182995", "0.5258739", "0.5239391", "0.51076514", "0.50938547", "0.50759965", "0.50657386", "0.50638276", "0.50280243", "0.5024097", "0.50144297", "0.5009604", "0.5009601", "0.5006...
0.53079355
8
Checks if keys in kwargs don't clash with partial_kwargs.
def R1Uf(**B2fa): yHH9 = set(B2fa) & set(gpA0) if yHH9: raise ValueError(f'Cannot override the following kwargs: {yHH9}.\nThis is because they were already set at the time this partial class was defined.') YXmU = {**gpA0, **B2fa} return YXmU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vdNZ(YKHO, B2fa):\n pass", "def rq83(YKHO, B2fa):\n Eund = YKHO.__class__.__requiredArgs + YKHO.__class__.__singleCompArgs if YKHO.singleComp else YKHO.__class__.__requiredArgs + YKHO.__class__.__doubleCompArgs\n for d7pR in Eund:\n if d7pR not in B2fa:\n raise ValueError('Essentia...
[ "0.72764003", "0.69780177", "0.6821087", "0.66674685", "0.65958565", "0.6464477", "0.64453214", "0.64123327", "0.6407427", "0.6297525", "0.6290569", "0.6231274", "0.617673", "0.6158453", "0.61378556", "0.61098105", "0.6071511", "0.6054759", "0.60500556", "0.60269207", "0.5970...
0.6794489
3
Returns a regular grid with the values of the 3d nodes in the list. The grid is a copy only. Grid points not belonging to the object are assigned a value of NaN. Nodes that are not 3d will be ignored. If there are no 3d nodes, returns a 0x0x0 numpy array.
def Qc2P(YKHO): import numpy from .node import Node3D zQZR = set() for node in YKHO: if isinstance(node, Node3D): zQZR.add(node.region) Aofo = numpy.zeros((0, 0, 0)) if len(zQZR) > 1: raise p1qH('value_to_grid currently only supports 1 region') for Mkmy in zQZR: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EtMp(YKHO):\n YKHO.grid_np = [None for YRbF in range(nA0t * nA0t * sjnI)]\n Cs6h = YKHO.grid_np\n for YEnM in YKHO.levels[YKHO.curient_level].objects:\n YEnM.position_grid[EcVT], YEnM.position_grid[fuBA] = DO1K(YEnM.position_np, OkFI)\n WKvO, LVAh = (YEnM.position_grid[EcVT], YEnM.positi...
[ "0.61277854", "0.6113065", "0.60486025", "0.59722894", "0.59692824", "0.5890724", "0.5834897", "0.58036214", "0.57802176", "0.5773366", "0.5717409", "0.5693001", "0.56510746", "0.5635136", "0.55936784", "0.5542423", "0.5541467", "0.5529994", "0.55268055", "0.54849726", "0.547...
0.6014039
3
Deletes up to the last 100 messages sent by the bot in the given channel
async def delete_bot_msg(YKHO, YwkQ): await YwkQ.purge(limit=100, check=YKHO.is_me)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def channel(YKHO, OaeV, qoqK: int=100, YwkQ: discord.TextChannel=None):\n if YwkQ is None:\n YwkQ = OaeV.channel\n yEHD = await YwkQ.purge(limit=qoqK)\n yEHD = len(yEHD)\n nd0d = '' if yEHD == 1 else 's'\n await OaeV.send('Purged {} message{}.'.format(yEHD, nd0d), delete_after=10)", "...
[ "0.7355912", "0.729578", "0.70187694", "0.6925003", "0.67768085", "0.657592", "0.6565491", "0.6511749", "0.6507969", "0.64933234", "0.6464555", "0.64189345", "0.6397884", "0.63753015", "0.6356237", "0.63543326", "0.634485", "0.6288775", "0.62868375", "0.6278073", "0.6273905",...
0.7999235
0
A list of VersionedTargetSet objects, one per target. Targets are in topological order, that is if B depends on A then B comes after A in the list.
def HZTF(YKHO): return YKHO._all_versioned_targets
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MB6m(YKHO):\n return YKHO._combined_all_versioned_targets.targets", "def OTbd(YKHO, x6A0):\n x6A0 = set((a1PO for a1PO in x6A0 if isinstance(a1PO, xU76)))\n return filter(x6A0.__contains__, reversed(ggm5.sort_targets(x6A0)))", "def x6A0(YKHO):\n return [idzk(YRbF) for YRbF in YKHO._target_ids]"...
[ "0.69259644", "0.6516053", "0.64394027", "0.64272714", "0.6228954", "0.6228795", "0.6192821", "0.61541504", "0.6113445", "0.6055971", "0.6016262", "0.59926796", "0.5955804", "0.59527117", "0.5946635", "0.5926969", "0.5889222", "0.5827486", "0.5827364", "0.5804093", "0.5771140...
0.678274
1
A list of all underlying targets, in topological order.
def MB6m(YKHO): return YKHO._combined_all_versioned_targets.targets
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WELE(YKHO):\n return YKHO._targets", "def MB6m(YKHO):\n YKHO._refresh_targets_metadata(include_delegations=True)\n MB6m = []\n MB6m = YKHO._targets_of_role('targets', skip_refresh=True)\n for wIpQ in Vohw.roledb.get_delegated_rolenames('targets'):\n MB6m = YKHO._targets_of_role(wIpQ, MB...
[ "0.7495705", "0.7448819", "0.7436363", "0.7360696", "0.7281494", "0.72555256", "0.7223903", "0.72016346", "0.7113758", "0.7044837", "0.69220054", "0.69173354", "0.69015574", "0.68946445", "0.68486214", "0.6774925", "0.6737662", "0.6633021", "0.6633021", "0.6573797", "0.655780...
0.77213824
0
A list of all underlying targets that are invalid, in topological order.
def FEQq(YKHO): return YKHO._combined_invalid_versioned_targets.targets
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cY1d(YKHO):\n YKHO.connect_backwards()\n yZ0F = []\n for exwG in YKHO.find_datanodes():\n if len(exwG.receives_from) > 0:\n yZ0F.append(exwG)\n return yZ0F", "def MB6m(YKHO):\n return YKHO._combined_all_versioned_targets.targets", "def VWvJ(YKHO):\n return YKHO._invalid_...
[ "0.6499179", "0.6400803", "0.6313432", "0.6307213", "0.6277269", "0.62239766", "0.6200468", "0.6158609", "0.60925174", "0.6077037", "0.6068353", "0.601936", "0.6012095", "0.6006405", "0.6006405", "0.60043997", "0.59545773", "0.59121513", "0.5858036", "0.5839813", "0.58315814"...
0.7527887
0
Returns a dictionary with only the elements of this enum that has a negative value >>> from itertools import islice >>> negative = SIUnit.get_negative() >>> inc = iter(negative.items()) >>> dict(islice(inc, len(negative) // 2))
def O0hf(Emd4: type[T]) -> dict: return {PXGI.name: PXGI.value for PXGI in Emd4 if PXGI.value < 0}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h3bk(Emd4: type[T]) -> dict:\n return {PXGI.name: PXGI.value for PXGI in Emd4 if PXGI.value > 0}", "def k8jS(YKHO):\n qMC3 = ['_is_zero', '_is_positive', '_is_nonneg']\n QTBn = {}\n for H5ew, BWXx in YKHO.__dict__.items():\n if H5ew in qMC3:\n continue\n QTBn[H5ew] = BWXx...
[ "0.64682883", "0.5888617", "0.5676901", "0.53898317", "0.5385515", "0.5332944", "0.5318118", "0.5295327", "0.5207162", "0.5199862", "0.517473", "0.51484406", "0.51057535", "0.50831985", "0.5039933", "0.49792072", "0.49618086", "0.49249363", "0.48743483", "0.48735127", "0.4853...
0.74331725
0
Adds a new edge to the graph between `fst` and `snd` of weight `weight`. There is an option to make the new edge twoway (`twoway=True`).
def rz7z(YKHO, EgdX: int, cxBS: int, upAO: float=1.0): if EgdX >= YKHO.__nodes_count or cxBS >= YKHO.__nodes_count: raise Exception('node label exceed maximum number of nodes in graph') YKHO.__edges.append(k91E(fst=EgdX, snd=cxBS, weight=upAO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, MxXY, cWFu, upAO):\n YKHO.edges[MxXY.identifier][cWFu.identifier] = upAO\n YKHO.edges[cWFu.identifier][MxXY.identifier] = upAO", "def rz7z(YKHO, MxXY, cWFu, upAO):\n YKHO.edges[MxXY.identifier][cWFu.identifier] = upAO", "def rz7z(YKHO, CZxs: Any, AhJh: Any, upAO: Union[int, float]) -> N...
[ "0.7189628", "0.71724844", "0.69349855", "0.68738526", "0.685426", "0.6811757", "0.66733885", "0.6668175", "0.6655825", "0.6651611", "0.6649225", "0.6604694", "0.6551046", "0.6516691", "0.6457827", "0.6446842", "0.64372253", "0.642715", "0.6384897", "0.6384338", "0.630078", ...
0.77528375
0
Return the weight of the given edge. If `twoway` then edges the nodes' order will be ignored.
def oXl7(YKHO, EgdX: int, cxBS: int, g13f=False) -> float: if EgdX == cxBS: return 0 try: def eHNT(tTpl): return tTpl.fst == EgdX and tTpl.snd == cxBS if g13f: def eHNT(tTpl): return tTpl.fst == EgdX and tTpl.snd == cxBS or (tTpl.fst == cxBS and ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upAO(YKHO, D70y):\n return YKHO._weights[frozenset(D70y)]", "def sR9N(D70y):\n return Ayfi(D70y.orig, D70y.dest)", "def oXl7(YKHO, CBRg, j9ly):\n if not YKHO.is_weighted():\n print('WARNING: Graph is NOT weighted!')\n return None\n if YKHO.adjacent(CBRg, j9ly):\n return YKH...
[ "0.75678617", "0.7451356", "0.72742873", "0.70510006", "0.6970484", "0.69384897", "0.67252535", "0.65913874", "0.6574262", "0.63925576", "0.63140476", "0.6289355", "0.6036671", "0.5886904", "0.5853712", "0.5830674", "0.5801267", "0.5800612", "0.5768085", "0.5744175", "0.57032...
0.7445505
2
Returns the node grid indices, one per point. Points that are not on the node grid will have an index of 1 If a single point is passed in, a single index will be returned. If a sequence of points is passed in an array of indexes will be returned.
def _2Ep(LTIa, Cs6h): LTIa = oyIN.asarray(LTIa, dtype=oyIN.float64) NTGJ = LTIa.ndim == 1 LTIa = LTIa.reshape(-1, 2) J_Es = PoLm(Cs6h) _0VL = J_Es.locate(LTIa) FDPT, QnmL = YKHO._get_grid_vars(Cs6h) WKvO = _0VL % (QnmL.shape[1] - 1) LVAh = _0VL // (QnmL.shape[1] - 1) QyVM = oyIN.colu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BTfj(Cs6h, WKvO, LVAh):\n yvT9 = []\n if WKvO > 0:\n yvT9.append(Cs6h[WKvO - 1, LVAh])\n if LVAh > 0:\n yvT9.append(Cs6h[WKvO, LVAh - 1])\n if LVAh < Cs6h.shape[1] - 1:\n yvT9.append(Cs6h[WKvO, LVAh + 1])\n if WKvO < Cs6h.shape[0] - 1:\n yvT9.append(Cs6h[WKvO + 1, LVA...
[ "0.65198195", "0.6494832", "0.64802814", "0.6446189", "0.6312183", "0.63078487", "0.63023275", "0.62496895", "0.6246124", "0.62280476", "0.6219807", "0.6164356", "0.6119822", "0.6115523", "0.6101948", "0.6079977", "0.605519", "0.60533667", "0.60337543", "0.60109633", "0.60091...
0.56326854
86
Step function takes as input the action, which is a list of integers, and output the next obervation, reward, and a Boolean variable indicating whether the current game is finished. It also returns an empty dictionary that is reserved to pass useful information.
def YPaw(YKHO, XeOP): assert XeOP in YKHO.infoset.legal_actions YKHO.players[YKHO._acting_player_position].set_action(XeOP) YKHO._env.step() YKHO.infoset = YKHO._game_infoset _ins = False vOGg = 0.0 if YKHO._game_over: _ins = True vOGg = {'play': {'landlord': YKHO._get_reward...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPaw(YKHO, XeOP):\n NZQz = YKHO.sendCmd(YKHO.url, YKHO.actions_list[XeOP])\n print('ob -> {}'.format(NZQz['obsequium']))\n YKHO.obsequium = int(NZQz['obsequium'])\n YKHO.bonus = int(NZQz['bonus'])\n if YKHO.is_game_done:\n raise RuntimeError('Episode is done')\n YKHO.curr_step += 1\n ...
[ "0.8119865", "0.8073929", "0.7913856", "0.78879315", "0.7868532", "0.78615004", "0.78235114", "0.780631", "0.7747067", "0.7745747", "0.7740992", "0.7727458", "0.7653722", "0.7631124", "0.76214784", "0.7573789", "0.7573219", "0.7531077", "0.7525722", "0.75173557", "0.74996334"...
0.7840265
6
The player that is active. It can be landlord, landlod_down, or landlord_up.
def fYNH(YKHO): return YKHO._env.acting_player_position
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oyg0(YKHO):\n return YKHO.current.player", "def mCd_(YKHO):\n return YKHO.current_player", "def mCd_(YKHO):\n return YKHO.current_player", "def vevC(YKHO):\n return YKHO.currentPlayer", "def oyg0(YKHO):\n return YKHO._player", "def tRnr(YKHO) -> mVZ4:\n return YKHO.players[YKHO.play...
[ "0.70462275", "0.6963425", "0.69560194", "0.6921606", "0.69144255", "0.6807876", "0.6795035", "0.6766235", "0.6766235", "0.6752221", "0.6621652", "0.6601327", "0.65893203", "0.6552264", "0.65430504", "0.6449663", "0.6420854", "0.638816", "0.6378612", "0.6236307", "0.62349564"...
0.58410406
46
Pytorch implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2) is d^2 = ||mu_1 mu_2||^2 + Tr(C_1 + C_2 2sqrt(C_1C_2)). Stable version by Dougal J. Sutherland.
def BCxM(ryEI, WNRf, _RNt, UkX0, SGf8=1e-06): ryEI = oyIN.atleast_1d(ryEI) WNRf = oyIN.atleast_1d(WNRf) _RNt = oyIN.atleast_2d(_RNt) UkX0 = oyIN.atleast_2d(UkX0) assert ryEI.shape == WNRf.shape, 'Training and test mean vectors have different lengths' assert _RNt.shape == UkX0.shape, 'Training an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BCxM(ryEI, _RNt, WNRf, UkX0, SGf8=1e-06, lUy1=False):\n if lUy1:\n assert ryEI.shape == WNRf.shape, 'Training and test mean vectors have different lengths'\n assert _RNt.shape == UkX0.shape, 'Training and test covariances have different dimensions'\n yk4i = ryEI - WNRf\n bTDt = N...
[ "0.76174915", "0.7207137", "0.7205647", "0.7175768", "0.7175768", "0.7175768", "0.713519", "0.7101911", "0.67504716", "0.64195573", "0.63985676", "0.63251626", "0.62030023", "0.6146314", "0.61347544", "0.61153895", "0.6092923", "0.6020774", "0.5984842", "0.5929784", "0.591653...
0.71966225
3
Create a new quaternion signal.
def FIMM(YKHO, mWFP, WXkz, yzQ0, WKvO, LVAh, epBp): yzQ0 = XTiz.array(yzQ0) WKvO = XTiz.array(WKvO) LVAh = XTiz.array(LVAh) epBp = XTiz.array(epBp) assert len(yzQ0.shape) == 1 assert len(WKvO.shape) == 1 assert len(LVAh.shape) == 1 assert len(epBp.shape) == 1 hkxX = XTiz.vstack([yzQ0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slpS(YKHO, mWFP, vexM):\n A3Vt = YKHO.R(name=mWFP, q=vexM)\n _Jov = BmLB.unit_vector(BmLB.quaternion_from_matrix(matrix=A3Vt))\n return _Jov", "def b4BA(YKHO, vexM):\n YKHO._normalise()\n return YKHO * vexM * YKHO.conjugate", "def ADdS(Emd4):\n Ltlf = oyIN.random.rand(4)\n vexM = iCFA(...
[ "0.70448464", "0.6589935", "0.6466133", "0.6419589", "0.64134055", "0.6389834", "0.63560164", "0.6335024", "0.6269011", "0.6266909", "0.6261823", "0.6226468", "0.6206364", "0.6160217", "0.61542875", "0.6138768", "0.6138098", "0.61309123", "0.61260825", "0.6115526", "0.6034574...
0.68315375
1
Promote a point signal to quaternion.
def paLt(K_j1): mWFP = 'quat({})'.format(K_j1.name) WXkz = K_j1.times yzQ0 = XTiz.zeros(len(WXkz)) WKvO = K_j1.values[:, 0] LVAh = K_j1.values[:, 1] epBp = K_j1.values[:, 2] return Wtfz(mWFP, WXkz, yzQ0, WKvO, LVAh, epBp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QJfP(LTIa, jDK_, q7In):\n vexM = R5H8.rotator(jDK_, q7In)\n return vexM.rotate(LTIa)", "def RNfM(Ty9i, vexM):\n Mkmy = [0] + Ty9i\n HuSO = [vexM[0], -vexM[1], -vexM[2], -vexM[3]]\n return lXsh(lXsh(vexM, Mkmy), HuSO)[1:]", "def b4BA(YKHO, vexM):\n YKHO._normalise()\n return YKHO * vexM...
[ "0.62891686", "0.61973786", "0.60139513", "0.57476604", "0.56804264", "0.56732714", "0.562738", "0.5567795", "0.55519056", "0.55310965", "0.55095065", "0.54813504", "0.54464185", "0.5411445", "0.5397509", "0.53943837", "0.5338879", "0.53253824", "0.5304156", "0.5279653", "0.5...
0.0
-1
sets the baseline minimum energy and maximum energy
def Ggh6(C3ST, F2Ej=200): upeF = C3ST.any(C3ST) K5OT = upeF.energy for bGrB in Ni9Y(F2Ej): upeF = C3ST.any(C3ST) if upeF.energy > K5OT: K5OT = upeF.energy return K5OT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XqCR(YKHO):\n YKHO.range_dict.clear()\n for Z9pM in YKHO.dict_to_plot.keys():\n if YKHO.quantitative_normalization:\n Xnhq, bGrB = YKHO.img_model_adv.param_quant_analysis.apply_quantitative_normalization(data_in=YKHO.dict_to_plot[Z9pM], scaler_dict=YKHO.scaler_norm_dict, scaler_name_def...
[ "0.631815", "0.62409806", "0.6188128", "0.6158496", "0.613987", "0.6103026", "0.6087928", "0.606811", "0.6012845", "0.59674263", "0.59442365", "0.58945674", "0.5828538", "0.5804591", "0.5804591", "0.5788084", "0.5787026", "0.57770914", "0.5755498", "0.5753679", "0.57376087", ...
0.0
-1
Test a status ds with an unknown element.
def ffhP(YKHO): YKHO.scp = OWN6() YKHO.scp.status = x3i3() YKHO.scp.status.Status = 1 YKHO.scp.status.PatientName = 'test name' YKHO.scp.start() HTlg = DC8x() HTlg.add_requested_context(c7Fj) aq_w = HTlg.associate('localhost', 11112) assert aq_w.is_established uDyx = aq_w.send_c_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kyfU(YKHO):\n D3vS = Ny6I(YKHO.metric())\n YKHO.assertEqual(None, D3vS.status())", "def IaO9(YKHO) -> None:\n with trZe.raises(oEgM):\n mj4j.from_id(-1)", "def A5MC():\n QOe9 = [{'key': 'val1'}, ['missing']]\n xIX6 = Ex17(*QOe9)\n assert not lvau(xIX6)\n assert 'missing' in str(...
[ "0.65897083", "0.6283", "0.6234246", "0.61931133", "0.6106065", "0.6091523", "0.60776335", "0.5995418", "0.5974757", "0.59469473", "0.5910711", "0.58696675", "0.58375835", "0.5836437", "0.5810365", "0.5809169", "0.5804393", "0.57658935", "0.57550055", "0.57516927", "0.5730022...
0.0
-1
Test a status ds with an unknown element.
def Pyg7(YKHO): def nVrR(tvqc): jGRS = x3i3() jGRS.Status = 1 jGRS.PatientName = 'test name' return jGRS oTZi = [(Mjtj.EVT_C_ECHO, nVrR)] YKHO.ae = HTlg = DC8x() HTlg.add_supported_context(c7Fj) HTlg.add_requested_context(c7Fj) u5R1 = HTlg.start_server(('', 11112...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kyfU(YKHO):\n D3vS = Ny6I(YKHO.metric())\n YKHO.assertEqual(None, D3vS.status())", "def IaO9(YKHO) -> None:\n with trZe.raises(oEgM):\n mj4j.from_id(-1)", "def A5MC():\n QOe9 = [{'key': 'val1'}, ['missing']]\n xIX6 = Ex17(*QOe9)\n assert not lvau(xIX6)\n assert 'missing' in str(...
[ "0.65897083", "0.6283", "0.6234246", "0.61931133", "0.6106065", "0.6091523", "0.60776335", "0.5995418", "0.5974757", "0.59469473", "0.5910711", "0.58696675", "0.58375835", "0.5836437", "0.5810365", "0.5809169", "0.5804393", "0.57658935", "0.57550055", "0.57516927", "0.5730022...
0.0
-1
constructs a string from the self.deck list
def zAg0(YKHO): Ylbp = [] for dxhl in YKHO.cards: Ylbp.append(str(dxhl)) return '\n'.join(Ylbp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n Aofo = ''\n for KCHu in YKHO.__deck:\n Aofo = Aofo + str(KCHu) + '\\n'\n return Aofo", "def zAg0(YKHO):\n Ylbp = []\n for dxhl in YKHO.deckcards:\n Ylbp.append(str(dxhl))\n return '\\n'.join(Ylbp)", "def zAg0(YKHO):\n vIwR = 'Deck contains '\n for YRbF in...
[ "0.8113899", "0.7725953", "0.7603377", "0.75272524", "0.7473211", "0.7412785", "0.7314949", "0.7258728", "0.71494055", "0.705681", "0.70290315", "0.7005794", "0.7005794", "0.6996145", "0.69002897", "0.68944305", "0.68193346", "0.68116957", "0.6579193", "0.65770364", "0.655337...
0.70202625
11
Login user via this API. This API returns a token with which clients can authenticate.
def m8z6(YKHO): qIxc = Kw_n.parse_args() NtEF = qIxc['username'] jTXt = qIxc['password'] CBIr = qWsi(NtEF) eOtH = NYpM(CBIr, jTXt) U5bT = {'expire': wk5E.config['AUTH_TOKEN_EXPIRE'], 'token': eOtH, 'user': CBIr} return (U5bT, 201)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CGuU(YKHO):\n geh0 = YKHO.client.post(YKHO.login_url, YKHO.login_data, format='json')\n return geh0.data['token']", "def MC83(YKHO, BaHi, jTXt):\n eyHp = '/'.join([YKHO.host, 'api', 'rest-auth', 'login', ''])\n _hkX = G4JS.post(eyHp, {'username': BaHi, 'password': jTXt})\n eOtH = _hkX.json()['...
[ "0.8727277", "0.788497", "0.7860386", "0.7842559", "0.76326376", "0.75793135", "0.7551093", "0.7541111", "0.7520471", "0.75141275", "0.747947", "0.7461422", "0.74609375", "0.74277693", "0.7343015", "0.73235005", "0.7319646", "0.7285269", "0.7285269", "0.7278955", "0.7265719",...
0.7263096
21
If pos and org are None, returns True if this user can in principle create other users and False otherwise. Otherwise, returns True if user can create a user with the give position and organization, else False.
def MFBY(CBIr, oeNL=None, QAIN=None): if not CBIr.has_perm('auth.add_user'): return False if oeNL is None and QAIN is not None: raise ValueError('Either pos and org must both be None, or neither must be None') if oeNL is not None and QAIN is None: raise ValueError('Either pos and org...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dk94(CBIr):\n return CBIr.has_perm('vnswww.add_organization')", "def juxD(CBIr):\n return CBIr.has_perm('vnswww.userprofile_create_different_org')", "def DcNo(CBIr, QAIN=None):\n try:\n vP2v = CBIr.get_profile()\n except AttributeError:\n return False\n if QAIN is None:\n ...
[ "0.6795992", "0.6794807", "0.66490966", "0.64185756", "0.6088277", "0.60860693", "0.6083735", "0.5905645", "0.5905645", "0.5898675", "0.56989825", "0.56660813", "0.5635126", "0.5613989", "0.5595087", "0.55335116", "0.5525625", "0.54935664", "0.5484369", "0.5458122", "0.544947...
0.7674742
0
Returns True if the user can in principle create users at organizations other than their own organization.
def juxD(CBIr): return CBIr.has_perm('vnswww.userprofile_create_different_org')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dk94(CBIr):\n return CBIr.has_perm('vnswww.add_organization')", "def _Af0(YKHO):\n return YKHO.user_id is None", "def DcNo(CBIr, QAIN=None):\n try:\n vP2v = CBIr.get_profile()\n except AttributeError:\n return False\n if QAIN is None:\n return CBIr.has_perm('vnswww.group...
[ "0.8314069", "0.7129691", "0.70954645", "0.70058125", "0.69235104", "0.6504104", "0.64806396", "0.6468178", "0.6464817", "0.64325935", "0.6428082", "0.64145815", "0.6397964", "0.6322619", "0.6267981", "0.6239462", "0.6237453", "0.6216564", "0.6192202", "0.614334", "0.61420655...
0.73726267
1
Returns True if usera is allowed to change userb's profile, password, etc
def znLr(kJnO, frjS): try: WN6v = kJnO.get_profile() y9o5 = frjS.get_profile() except AttributeError: return False return (kJnO == frjS or kJnO.has_perm('vnswww.userprofile_change_any') or (kJnO.has_perm('vnswww.userprofile_change_org') and WN6v.org == y9o5.org)) and (not y9o5.retire...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVt0(kJnO, frjS):\n try:\n WN6v = kJnO.get_profile()\n y9o5 = frjS.get_profile()\n except AttributeError:\n return False\n return kJnO == frjS or kJnO.has_perm('vnswww.userprofile_use_any') or (kJnO.has_perm('vnswww.userprofile_use_org') and WN6v.org == y9o5.org)", "def SybY(YKH...
[ "0.75432837", "0.7367554", "0.68467605", "0.67738134", "0.6763367", "0.6735543", "0.6717929", "0.664237", "0.65366995", "0.6499262", "0.6474806", "0.64111125", "0.6405359", "0.639976", "0.636971", "0.63188046", "0.62990373", "0.6298768", "0.6298329", "0.62260747", "0.6177034"...
0.83856934
0
True if usera is allowed to view userb's profile
def TVt0(kJnO, frjS): try: WN6v = kJnO.get_profile() y9o5 = frjS.get_profile() except AttributeError: return False return kJnO == frjS or kJnO.has_perm('vnswww.userprofile_use_any') or (kJnO.has_perm('vnswww.userprofile_use_org') and WN6v.org == y9o5.org)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def znLr(kJnO, frjS):\n try:\n WN6v = kJnO.get_profile()\n y9o5 = frjS.get_profile()\n except AttributeError:\n return False\n return (kJnO == frjS or kJnO.has_perm('vnswww.userprofile_change_any') or (kJnO.has_perm('vnswww.userprofile_change_org') and WN6v.org == y9o5.org)) and (not ...
[ "0.77977973", "0.7520763", "0.73695666", "0.7216409", "0.71507704", "0.7143797", "0.70865715", "0.70357996", "0.70189756", "0.7016048", "0.68773395", "0.68640804", "0.68065524", "0.6805121", "0.6793619", "0.6761558", "0.6737822", "0.6713103", "0.66978556", "0.66760373", "0.66...
0.84311074
0
Returns True if user is allowed to delete group, False otherwise. Note that this does NOT mean user is allowed to delete users in the group. user The user who is trying to gain access group The group they're trying to gain access to
def XkKR(CBIr, uOe2): try: vP2v = CBIr.get_profile() except AttributeError: return False return CBIr.has_perm('vnswww.group_delete_any') or (CBIr.has_perm('vnswww.group_delete_org') and uOe2.org == vP2v.org)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pl9F(YKHO, CBIr):\n raise RXLT(False)", "def UO7x(YKHO, eOtH, iT36):\n Cwxt = YKHO.get_username_from_token(eOtH)\n if YKHO.check_user_has_owner_clearance(Cwxt, iT36):\n ZBJA = YKHO.read_database()\n if iT36 in ZBJA['userGroups']:\n del ZBJA['userGroups'][iT36]\n Y...
[ "0.7649102", "0.7009539", "0.6983419", "0.6805028", "0.6726407", "0.65543675", "0.65284413", "0.64810085", "0.6478722", "0.6443003", "0.64265376", "0.6420004", "0.6395428", "0.6383915", "0.6365933", "0.63659155", "0.633192", "0.633192", "0.6325469", "0.6315925", "0.6314916", ...
0.8439144
0
Returns True if user is allowed read access to org, False otherwise user The user who is trying to gain access org The organization they're trying to access
def cISa(CBIr, QAIN): try: vP2v = CBIr.get_profile() except AttributeError: return False if CBIr.has_perm('vnswww.organization_use_any'): return True elif CBIr.has_perm('vnswww.organization_use_org'): return QAIN == vP2v.org
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zKHw(YKHO, CBIr):\n if YKHO.visibility == YKHO.PUBLIC:\n return True\n elif YKHO.visibility == YKHO.PRIVATE and YKHO.created_by == CBIr:\n return True\n elif YKHO.visibility in (YKHO.ORG_ONLY, YKHO.ORG_ONLY_NO_EXTERNAL):\n if CBIr.external and YKHO.visibility == YKHO.ORG_ONLY_NO_E...
[ "0.7198642", "0.7064346", "0.70490915", "0.6959451", "0.6917398", "0.68647015", "0.68634295", "0.6861826", "0.6839568", "0.6808862", "0.6807438", "0.6780052", "0.67722094", "0.67668164", "0.67631316", "0.67551166", "0.6753856", "0.66949207", "0.6612002", "0.6567637", "0.65526...
0.7900296
0
Returns True iff user is allowed to create new organizations.
def dk94(CBIr): return CBIr.has_perm('vnswww.add_organization')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DcNo(CBIr, QAIN=None):\n try:\n vP2v = CBIr.get_profile()\n except AttributeError:\n return False\n if QAIN is None:\n return CBIr.has_perm('vnswww.group_add_any') or CBIr.has_perm('vnswww.group_add_org')\n else:\n return CBIr.has_perm('vnswww.group_add_any') or (CBIr.ha...
[ "0.75001776", "0.72476524", "0.67795545", "0.6771469", "0.6675508", "0.66610974", "0.6647656", "0.66383", "0.65283", "0.63500136", "0.6332558", "0.6293318", "0.62751895", "0.6231426", "0.6199397", "0.6174215", "0.6172142", "0.6092151", "0.6082708", "0.60812527", "0.60695946",...
0.86762804
0
Create smoothed weighting function using a raised cosine function
def hgml(YKHO, hVLt, _XAq): _mSQ = [] for tpio, M_DK in zip([0, 1], [YKHO.x, YKHO.y]): _Q98 = oyIN.mean(M_DK) XcU5 = M_DK[-1] - M_DK[0] pImw = oyIN.abs(M_DK - _Q98) ug3y = oyIN.zeros_like(pImw) klv8 = (pImw >= XcU5 / 2 - hVLt - _XAq) & (pImw <= XcU5 / 2 - hVLt) N1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hsFe(YKHO):\n yzQ0 = oyIN.zeros(YKHO.N)\n vC9B = YKHO.l\n for YRbF in range(YKHO.r.shape[0]):\n Mkmy = oyIN.abs(YKHO.r[YRbF])\n if Mkmy <= vC9B:\n ZylS = lambda Mkmy, vC9B: 0.5 * (oyIN.cos(oyIN.pi * Mkmy / vC9B) + 1)\n yzQ0[YRbF] = ZylS(Mkmy, vC9B)\n else:\n ...
[ "0.6735153", "0.6220381", "0.61864656", "0.61631453", "0.61125076", "0.60661864", "0.6026083", "0.5953795", "0.5896438", "0.589282", "0.5868442", "0.58343494", "0.58317757", "0.5792157", "0.57724833", "0.57429516", "0.5707031", "0.56300455", "0.5614812", "0.5613444", "0.56072...
0.6303124
1
Load datasets for evaluation. Always use FrameByFrame dataset for evaluation. This way, we can evaluate the different behavior networks (BehaviorCNN, BehaviorRNN, etc.) on the same dataset/metrics.
def h7e1(_Fei): dGML = _Fei.dataset_type if _Fei.dataset_type == 'graph_net': _Fei.dataset_type = 'single_frame_graph_net' else: _Fei.dataset_type = 'frame_by_frame' XxFT, Z0Wl, t4zr = idWX(_Fei.dataset) _Fei.dataset_type = dGML return (XxFT, Z0Wl, t4zr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iiS1(h_xa):\n mNMB = zI_U(h_xa)\n eK5b = xBlr.partial(lMIx, h_xa, mNMB)\n return ZylS.data.Dataset.from_generator(eK5b, (ZylS.float32, ZylS.float32))", "def AyYN(YKHO):\n rrl5 = Hy7s.path.join(YKHO.dataset_path, 'images_background')\n jASl = Hy7s.path.join(YKHO.dataset_path, 'images_evaluation...
[ "0.6639196", "0.6587588", "0.6459924", "0.64279443", "0.64271784", "0.6355626", "0.63326746", "0.62928706", "0.62538105", "0.62499624", "0.6246586", "0.6227456", "0.6222277", "0.6168688", "0.61525166", "0.6150792", "0.6097726", "0.60954595", "0.60953987", "0.5994113", "0.5975...
0.7581659
0
Return the batch size used for evaluation. The self.evaluate_dataset() method expects a DataLoader with this batch size.
def hqsp(): return 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ep8u(YKHO):\n return YKHO.size", "def Ep8u(YKHO):\n return YKHO._batch_size", "def Ep8u(YKHO):\n return YKHO._batch_size", "def Ep8u(YKHO):\n return YKHO._batch_size", "def Ep8u(YKHO):\n return YKHO._batch_size", "def Ep8u(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'ba...
[ "0.77771175", "0.774309", "0.774309", "0.774309", "0.774309", "0.76429844", "0.7569859", "0.7328417", "0.7323009", "0.72914314", "0.72489995", "0.7194375", "0.7194375", "0.7194375", "0.7194375", "0.7174322", "0.71063054", "0.70635784", "0.7036648", "0.7011863", "0.7000447", ...
0.7715026
5
Get the actual app module. This is similar to Django's ``get_app`` function from ``django.db.models.loading.get_app`` however instead of returning the model's module, this function returns the actual app module.
def wKRt(P4t4): xh9c = str('.'.join(P4t4.__name__.split('.')[:-1])) return __import__(xh9c, {}, {}, [str('')])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JEuV(YKHO):\n yR_P = YKHO.__class__.__module__.split('.')\n yR_P = '.'.join(yR_P[:-1])\n yR_P = yR_P + '.' + YKHO._get_valid_version().module\n return yR_P", "def WTdB(YKHO):\n P4t4 = yPQU\n return P4t4", "def JEuV(YKHO):\n return YKHO.module", "def WTdB():\n global _app\n if w...
[ "0.7222791", "0.7039427", "0.6928907", "0.68793404", "0.67696553", "0.67583025", "0.6728999", "0.66992927", "0.66110295", "0.6469375", "0.6315961", "0.6265627", "0.6203205", "0.616371", "0.61440074", "0.61203885", "0.6116623", "0.6097265", "0.6087241", "0.6068362", "0.6038862...
0.77721786
0
Retrieve pollutions parameters for the vehicle provided to the planner. Only include the pollutants provided in 'self._pollutants'
def Nz5w(YKHO): from . import session Ghho = FYrf.Category.get_for_type(YKHO._vehicle) if not Ghho: raise ValueError('Unable to find Category for vehicle: {}'.format(Ghho)) BeK2 = session.query(FYrf.Fuel).filter_by(name=YKHO._vehicle.fuel_type).first() if not BeK2: raise ValueError('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s3AI(YKHO):\n _oWe = L0Ar.PollParameters(response_type=YKHO.response_type, content_bindings=YKHO.supported_content.all(), allow_asynch=False, query=YKHO.query)\n return _oWe", "def OqPV(YKHO):\n NArs = super(WDCV, YKHO).get_parameters()\n NArs.update({'owa': YKHO._owa, 'fe_ratio': YKHO._fe_ratio}...
[ "0.58032805", "0.5762789", "0.5622152", "0.5512208", "0.5481819", "0.5481819", "0.54718965", "0.54595494", "0.54497695", "0.54460764", "0.54052585", "0.53636134", "0.53378963", "0.5314513", "0.5307977", "0.5294815", "0.5287595", "0.5283669", "0.5283669", "0.5283669", "0.52778...
0.7641104
0
Creates a random string to use as the state variable in the login.
def ws5h(): QTBn = ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in Ni9Y(32))) sGQh['state'] = QTBn return TvZl('login.html', STATE=QTBn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aztv(YKHO):\n return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for WKvO in range(30)))", "def AJEJ():\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in range(32)))", "def tEgU():\n return kxTZ().hex[:6].upper()", "def WDNC():\n return vDza(12)", "def...
[ "0.8035858", "0.7881578", "0.7446806", "0.7391109", "0.73568296", "0.7278644", "0.72483516", "0.7235251", "0.7221922", "0.70994", "0.70441663", "0.70278215", "0.696246", "0.6903587", "0.68742126", "0.68622977", "0.674839", "0.67305046", "0.669842", "0.66856194", "0.66560966",...
0.65009344
39
Make a JSON endpoint for all sports
def SqjM(): Baxs = cuiw.query(Ljro).all() return pz3A(sports=[Mkmy.serialize for Mkmy in Baxs])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eDnx(Ojiq):\n pBow = cuiw.query(Ljro).filter_by(id=Ojiq).one()\n DumB = cuiw.query(kLxY).filter_by(sport_id=Ojiq).all()\n return pz3A(Sport=[YRbF.serialize for YRbF in DumB])", "def NMoC():\n return (pz3A(baby='knight2'), 200)", "def CZNq():\n return pz3A({'games': list(map(o3kV, eN17))})", ...
[ "0.6343889", "0.61849576", "0.6000485", "0.5790426", "0.5737663", "0.5733848", "0.5717405", "0.5709815", "0.56683385", "0.5648687", "0.56343955", "0.5615686", "0.55803835", "0.5559064", "0.5551494", "0.55136335", "0.551047", "0.54734224", "0.5473241", "0.54450655", "0.5439839...
0.71233594
0
Return self.template_name if set. Otherwise, resolve the template path by model app_label and name.
def sA4G(YKHO): if YKHO.template_name is not None: return YKHO.template_name BzGc = YKHO.queryset.model._meta return f'{BzGc.app_label}/{BzGc.model_name}.html'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DAt9(YKHO):\n C3ST = YKHO.get_object()\n qm1k = YKHO.model_template_name or 'template'\n try:\n KJWQ = getattr(C3ST, qm1k)\n except AttributeError as e:\n raise rqaQ('%(model)s is missing a template. Define %(model)s.template, %(cls)s.model_template_name or override %(cls)s.get_templa...
[ "0.716279", "0.70614284", "0.6938047", "0.66917205", "0.6647861", "0.6601214", "0.65886533", "0.65692127", "0.644684", "0.6442147", "0.64242977", "0.6387982", "0.63596463", "0.6344944", "0.62907714", "0.62698334", "0.6261263", "0.62593627", "0.615101", "0.6083188", "0.6055735...
0.76693416
1
Get number of bins using the "square root rule"
def bWXK(Q_vh): tAJA = len(Q_vh) KQ7o = oyIN.sqrt(tAJA) return int(KQ7o)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SqbI(WKvO):\n from scipy.stats import iqr\n WKvO = oyIN.asarray(WKvO)\n Umnm = 2 * iqr(WKvO) / len(WKvO) ** (1 / 3)\n if Umnm == 0:\n return int(oyIN.sqrt(len(WKvO)))\n else:\n return int(oyIN.ceil((WKvO.max() - WKvO.min()) / Umnm))", "def SqbI(WKvO):\n from scipy.stats import...
[ "0.8209535", "0.8209535", "0.70566136", "0.7040139", "0.703559", "0.6701263", "0.6693324", "0.66207117", "0.65516007", "0.6481782", "0.64565134", "0.6444778", "0.6430371", "0.6309669", "0.6300835", "0.62742615", "0.6228727", "0.62262607", "0.6187216", "0.6185618", "0.6179726"...
0.72749084
2
Get the lower and upper critical values that indicate the end ot the nonrejection area.
def Qdta(S5Zy): nQ3j = UQtd('Result', 'lower_critical_value upper_critical_value') Aofo = nQ3j(S5Zy / 2, 1 - S5Zy / 2) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ME8y(YKHO, LSh8, CN9P):\n if not YKHO.upper_bounds is None:\n return YKHO.upper_bounds\n VLpm = oyIN.clip(YKHO.coeffs, -epAf.inf, 0)\n jWLi = oyIN.clip(YKHO.coeffs, 0, epAf.inf)\n YKHO.upper_bounds = jWLi.dot(CN9P) + VLpm.dot(LSh8) + YKHO.const\n return YKHO.upper_bounds", "def hBsZ(YKH...
[ "0.6258095", "0.60106415", "0.5853385", "0.5830488", "0.58107674", "0.5788223", "0.5766465", "0.56480896", "0.5618747", "0.5609924", "0.556671", "0.55606294", "0.5549316", "0.55492395", "0.55489653", "0.5530574", "0.55069643", "0.5497171", "0.54849964", "0.5451922", "0.541316...
0.0
-1
Get the primary color of an image by scaling it down and reducing the color palette
def qILt(R_b3, bO2i, u6fe=False): VXjJ = R_b3.copy() VXjJ.thumbnail((100, 100)) C8to = VXjJ.convert('P', palette=hnIv.ADAPTIVE, colors=bO2i) if u6fe: C8to.show() tn62 = C8to.getpalette() Fmjr = sorted(C8to.getcolors(), reverse=True) eIXQ = Fmjr[0][1] BnQL = tn62[eIXQ * 3:eIXQ * 3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qILt(JZXy: str) -> list:\n VXjJ = hnIv.fromarray(JZXy.copy()).convert('RGB')\n VXjJ.resize((1, 1), resample=0)\n BnQL = VXjJ.getpixel((0, 0))\n return BnQL", "def b5s2(VXjJ):\n br9j = {}\n bQ6z = 0\n qfpW = []\n Xn71 = hnIv.fromarray(VXjJ)\n for BWXx in Xn71.getdata():\n if ...
[ "0.67656064", "0.6749027", "0.64236337", "0.6375588", "0.61726546", "0.6167691", "0.6126234", "0.61212265", "0.60994667", "0.60713565", "0.60387623", "0.60229564", "0.60003054", "0.60001034", "0.5997868", "0.59866005", "0.59853506", "0.5965974", "0.59617645", "0.5952587", "0....
0.78358245
0
The extended location of the cluster associated with the resource.
def zXcB(YKHO) -> qe4Y.Input['ExtendedLocationArgs']: return qe4Y.get(YKHO, 'extended_location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXcB(YKHO) -> qe4Y.Output['outputs.ExtendedLocationResponse']:\n return qe4Y.get(YKHO, 'extended_location')", "def zXcB(YKHO) -> qe4Y.Output['outputs.ExtendedLocationResponse']:\n return qe4Y.get(YKHO, 'extended_location')", "def zXcB(YKHO) -> qe4Y.Output[h8nf['outputs.ExtendedLocationResponse']]:\n ...
[ "0.67308724", "0.67308724", "0.6552111", "0.6427688", "0.64267975", "0.64260936", "0.64260936", "0.63151413", "0.6296761", "0.6123441", "0.6123441", "0.595561", "0.58933264", "0.5883953", "0.5883953", "0.5883953", "0.5883953", "0.5883953", "0.5883953", "0.5883953", "0.5883953...
0.6507004
4
The name of the resource group. The name is case insensitive.
def TRLE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_grou...
[ "0.8592845", "0.8362428", "0.8204173", "0.8204173", "0.8204173", "0.8204173", "0.8204173", "0.8204173", "0.8204173", "0.8204173", "0.8204173", "0.8204173", "0.8204173", "0.8204173", "0.8176596", "0.8086605", "0.8086605", "0.8086605", "0.8086605", "0.8086605", "0.8086605", "...
0.8089463
50
The list of egress endpoints. This allows for connection from a Hybrid AKS cluster to the specified endpoint.
def dvh0(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['EgressEndpointArgs']]]]: return qe4Y.get(YKHO, 'additional_egress_endpoints')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dvh0(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.EgressEndpointResponse']]]:\n return qe4Y.get(YKHO, 'additional_egress_endpoints')", "def tUXZ(YKHO) -> qe4Y.Output[bdIy['outputs.EgressEndpointResponse']]:\n return qe4Y.get(YKHO, 'enabled_egress_endpoints')", "def weLG(YKHO):\n bGrB, TBsA = YKHO.reque...
[ "0.79438716", "0.78404033", "0.7188768", "0.6965573", "0.68945783", "0.68559766", "0.6821014", "0.6796901", "0.6719417", "0.6669993", "0.66438955", "0.6469753", "0.63660693", "0.6356787", "0.63545716", "0.6323557", "0.6323557", "0.6242556", "0.621482", "0.62133324", "0.621020...
0.78123057
2
The name of the cloud services network.
def fRQq(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'cloud_services_network_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVVj(YKHO) -> str:\n return qe4Y.get(YKHO, 'network')", "def D819(xAU6):\n eVVj = aqWL(xAU6)\n if eVVj:\n return eVVj.name", "def tvqd(YKHO, **B2fa):\n return YKHO.api_request(YKHO._get_method_fullname('network_name'), B2fa)", "def tN3E(YKHO) -> str:\n return YKHO._computer_network_...
[ "0.73698765", "0.7273052", "0.7184648", "0.70949066", "0.7003502", "0.6944948", "0.6907749", "0.671241", "0.66046816", "0.65476507", "0.6537378", "0.6496819", "0.6456874", "0.6435901", "0.6382824", "0.63539356", "0.6351035", "0.6334907", "0.627564", "0.62665015", "0.6256356",...
0.84567714
0
The geolocation where the resource lives
def Rci7(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.__location", "def hbd3(YKHO):\n return None", "def QXqx(YKHO):\n return YKHO._Location", "def quGm(YKHO):\n return YKHO.get_pr...
[ "0.816298", "0.7999453", "0.79540074", "0.7945644", "0.78364915", "0.77626437", "0.7730134", "0.7681095", "0.7624169", "0.76093256", "0.76093256", "0.75724584", "0.75544393", "0.7547195", "0.75165695", "0.74507827", "0.74267685", "0.7419033", "0.7419033", "0.7419033", "0.7419...
0.0
-1
Get an existing CloudServicesNetwork resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'CloudServicesNetwork': VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id)) r6DL = vm4i.__new__(vm4i) r6DL.__dict__['additional_egress_endpoints'] = None r6DL.__dict__['associated_resource_ids'] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'NetworkGroup':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = dict()\n r6DL['conditional_membership'] = None\n r6DL['description'] = None\n r6DL['display_name'] = None\n r6...
[ "0.58533376", "0.583694", "0.5820981", "0.5798957", "0.55366343", "0.5425285", "0.5423865", "0.54131234", "0.5205126", "0.51225173", "0.5113505", "0.5083816", "0.50776225", "0.5052948", "0.5038816", "0.50258", "0.5014543", "0.50143945", "0.4987925", "0.4972836", "0.49644232",...
0.6779751
0
The list of egress endpoints. This allows for connection from a Hybrid AKS cluster to the specified endpoint.
def dvh0(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.EgressEndpointResponse']]]: return qe4Y.get(YKHO, 'additional_egress_endpoints')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tUXZ(YKHO) -> qe4Y.Output[bdIy['outputs.EgressEndpointResponse']]:\n return qe4Y.get(YKHO, 'enabled_egress_endpoints')", "def dvh0(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['EgressEndpointArgs']]]]:\n return qe4Y.get(YKHO, 'additional_egress_endpoints')", "def weLG(YKHO):\n bGrB, TBsA = YKHO.reques...
[ "0.7839639", "0.7810969", "0.71907055", "0.6967457", "0.6896288", "0.6858077", "0.68218935", "0.6795657", "0.67210174", "0.66719174", "0.66440576", "0.64708406", "0.63676244", "0.6358928", "0.6352911", "0.63249654", "0.63249654", "0.6243185", "0.62144524", "0.6213847", "0.621...
0.7942772
0
The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network.
def SMbe(YKHO) -> qe4Y.Output[bdIy[str]]: return qe4Y.get(YKHO, 'associated_resource_ids')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WeDj(YKHO):\n return YKHO._network_ids", "def OIX_(YKHO):\n return YKHO._get_list_field('otherResources')", "def LCAZ(YKHO):\n return YKHO._resource_names", "def ZzRC(YKHO):\n I3Ln = []\n CFp1 = {}\n for eVVj, jGRS in YKHO.networks.items():\n if jGRS['onboarded']:\n I3...
[ "0.69101155", "0.6573186", "0.6401023", "0.6343839", "0.6258195", "0.5978847", "0.5978847", "0.5978847", "0.5819962", "0.5801385", "0.5795712", "0.5795712", "0.57860464", "0.57594633", "0.5741592", "0.5688209", "0.5666085", "0.5643691", "0.56345814", "0.5630704", "0.5611117",...
0.70806557
0
The full list of additional and default egress endpoints that are currently enabled.
def tUXZ(YKHO) -> qe4Y.Output[bdIy['outputs.EgressEndpointResponse']]: return qe4Y.get(YKHO, 'enabled_egress_endpoints')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dvh0(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.EgressEndpointResponse']]]:\n return qe4Y.get(YKHO, 'additional_egress_endpoints')", "def dvh0(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['EgressEndpointArgs']]]]:\n return qe4Y.get(YKHO, 'additional_egress_endpoints')", "def GudG(YKHO) -> qe4Y.Output[h8nf[s...
[ "0.81986475", "0.8105688", "0.77514595", "0.7230968", "0.7226608", "0.7174375", "0.71295357", "0.70636714", "0.7037679", "0.6991069", "0.6913448", "0.6888268", "0.65517616", "0.64895403", "0.6444483", "0.6436623", "0.6436623", "0.63346684", "0.632177", "0.625647", "0.6153679"...
0.831773
0
The extended location of the cluster associated with the resource.
def zXcB(YKHO) -> qe4Y.Output['outputs.ExtendedLocationResponse']: return qe4Y.get(YKHO, 'extended_location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXcB(YKHO) -> qe4Y.Output[h8nf['outputs.ExtendedLocationResponse']]:\n return qe4Y.get(YKHO, 'extended_location')", "def zXcB(YKHO) -> qe4Y.Input['ExtendedLocationArgs']:\n return qe4Y.get(YKHO, 'extended_location')", "def zXcB(YKHO) -> qe4Y.Input['ExtendedLocationArgs']:\n return qe4Y.get(YKHO, '...
[ "0.6552111", "0.6507004", "0.6507004", "0.6427688", "0.64267975", "0.64260936", "0.64260936", "0.63151413", "0.6296761", "0.6123441", "0.6123441", "0.595561", "0.58933264", "0.5883953", "0.5883953", "0.5883953", "0.5883953", "0.5883953", "0.5883953", "0.5883953", "0.5883953",...
0.67308724
0
Field Deprecated. These fields will be empty/omitted. The list of Hybrid AKS cluster resource IDs that are associated with this cloud services network.
def cgCe(YKHO) -> qe4Y.Output[bdIy[str]]: return qe4Y.get(YKHO, 'hybrid_aks_clusters_associated_ids')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tiQR(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'gateway_cluster_id_lists')", "def NnZ8(YKHO):\n return YKHO.__cluster_list", "def eUF2(YKHO):\n return YKHO.model.cluster_ids", "def EFyr():\n return {'clusters': [kGW8]}", "def lG_k():\n g70p(Mkmy, bo34)\n ...
[ "0.6904107", "0.67262274", "0.66436243", "0.58397466", "0.5834969", "0.57922214", "0.5733183", "0.5710565", "0.57062244", "0.5690729", "0.5678259", "0.5668799", "0.56509113", "0.56201696", "0.559548", "0.559548", "0.559548", "0.559548", "0.559548", "0.55137837", "0.550886", ...
0.5824514
6
The geolocation where the resource lives
def Rci7(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.__location", "def hbd3(YKHO):\n return None", "def QXqx(YKHO):\n return YKHO._Location", "def quGm(YKHO):\n return YKHO.get_pr...
[ "0.816298", "0.7999453", "0.79540074", "0.7945644", "0.78364915", "0.77626437", "0.7730134", "0.7681095", "0.7624169", "0.76093256", "0.76093256", "0.75724584", "0.75544393", "0.7547195", "0.75165695", "0.74507827", "0.74267685", "0.7419033", "0.7419033", "0.7419033", "0.7419...
0.6883943
76
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
def type(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '...
[ "0.79187346", "0.79187346", "0.7866393", "0.7866393", "0.7866393", "0.7866393", "0.7866393", "0.7707365", "0.75533295", "0.728177", "0.70592564", "0.6979974", "0.692058", "0.6869065", "0.6729038", "0.67043585", "0.6653516", "0.66459006", "0.6639014", "0.6639014", "0.6639014",...
0.0
-1
The identity block is the block that has no conv layer at shortcut. Arguments
def FIMM(YKHO, Ot1W, KUnM, EtM5, XkN1): super().__init__(name='identity' + str(EtM5) + XkN1) DZWo, MXwb, wMAF = KUnM if nMvt.image_data_format() == 'channels_last': z5f9 = 3 else: z5f9 = 1 RmTP = 'res' + str(EtM5) + XkN1 + '_branch' lPXw = 'bn' + str(EtM5) + XkN1 + '_branch' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ...
[ "0.71272004", "0.7022438", "0.6910338", "0.68836653", "0.68505627", "0.6847176", "0.68221945", "0.6821999", "0.680346", "0.6799615", "0.67849326", "0.67714536", "0.67158884", "0.67146987", "0.67137283", "0.6664201", "0.6624224", "0.662218", "0.662218", "0.66078824", "0.659845...
0.0
-1
A block that has a conv layer at shortcut. Arguments
def FIMM(YKHO, Ot1W, KUnM, EtM5, XkN1, FEri=(2, 2)): super().__init__(name='conv_block' + str(EtM5) + XkN1) DZWo, MXwb, wMAF = KUnM if nMvt.image_data_format() == 'channels_last': z5f9 = 3 else: z5f9 = 1 RmTP = 'res' + str(EtM5) + XkN1 + '_branch' lPXw = 'bn' + str(EtM5) + XkN1 +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQG_(YKHO, DVMO, UU6M, b27A):\n return YKHO.add_layer(mQG_, DVMO, UU6M, b27A)", "def mjQN(YKHO, EcVT, KUnM, eHNT, KCHu, EtM5, XkN1):\n jZbr = 'res' + str(EtM5) + XkN1 + '_branch'\n tagR = 'bn' + str(EtM5) + XkN1 + '_branch'\n LedO = EcVT\n nK5p, Xf5Z, uN8x = KUnM\n EcVT = yHwh(filters=nK5p,...
[ "0.721995", "0.67970437", "0.67504996", "0.67344207", "0.67019993", "0.66698205", "0.6669391", "0.66378975", "0.6601249", "0.6601249", "0.65978736", "0.6559081", "0.6557333", "0.6553106", "0.6530076", "0.65101016", "0.65067416", "0.64779866", "0.6421004", "0.64114", "0.638952...
0.6291087
33
Returns the queryset used for the export
def k66M(YKHO) -> ZYvt: raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XEIY(YKHO, QePW, QpfX):\n rrBf = QePW.GET.get('scope')\n NOWU = QePW.GET.get('_select_across', False) == '1'\n se2i = QePW.GET.get('_selected_actions', '')\n if rrBf == 'all':\n SR0I = YKHO.admin_view.queryset()\n elif rrBf == 'header_only':\n SR0I = []\n elif rrBf == 'selected'...
[ "0.80118215", "0.74907297", "0.7482479", "0.7428582", "0.74244267", "0.7200492", "0.71978205", "0.71929747", "0.7097913", "0.70448977", "0.69686604", "0.69686604", "0.69338095", "0.6901932", "0.6889277", "0.6869352", "0.683674", "0.683674", "0.683674", "0.683674", "0.683674",...
0.7002496
10
Dictionary of default values of all model parameters set to the column 2 values in Table 2 of Behroozi et al. (2013) Returns
def KTKt(): Csk6 = {'smhm_m0_0': 10.72, 'smhm_m0_a': 0.59, 'smhm_m1_0': 12.35, 'smhm_m1_a': 0.3, 'smhm_beta_0': 0.43, 'smhm_beta_a': 0.18, 'smhm_delta_0': 0.56, 'smhm_delta_a': 0.18, 'smhm_gamma_0': 1.54, 'smhm_gamma_a': 2.52} return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vZtQ(YKHO):\n fK8P = {}\n YKHO.initializeRoadRunnerModel()\n YKHO.roadrunnerModel.reset()\n for gm0F in YKHO.parametersToFit:\n fK8P[gm0F] = YKHO.roadrunnerModel.model[gm0F]\n return fK8P", "def Ka1L(YKHO) -> GySg[str, ImMB]:\n return {**{'model_name': YKHO.model_name}, **YKHO._defau...
[ "0.71658176", "0.6402271", "0.6362589", "0.63489044", "0.62419343", "0.61842936", "0.61763227", "0.615268", "0.6152398", "0.61490095", "0.606751", "0.6060048", "0.6042473", "0.603785", "0.603573", "0.6015136", "0.6014756", "0.6011938", "0.59739405", "0.59595644", "0.5958624",...
0.6040976
13
return lowest index of T at which the substring P begins or 1
def pBGw(Kt_s, V6IE): exwG, r8hN = (len(Kt_s), len(V6IE)) if r8hN == 0: return 0 XVAW = {} for G1Hx in range(r8hN): XVAW[V6IE[G1Hx]] = G1Hx YRbF = r8hN - 1 G1Hx = r8hN - 1 while YRbF < exwG: if Kt_s[YRbF] == V6IE[G1Hx]: ' INCORRECT PART ' YRbF ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XB4z(Kt_s, V6IE):\n exwG, r8hN = (len(Kt_s), len(V6IE))\n for YRbF in range(exwG - r8hN + 1):\n G1Hx = 0\n while G1Hx < r8hN and V6IE[G1Hx] == Kt_s[YRbF + G1Hx]:\n G1Hx += 1\n if G1Hx == r8hN:\n return YRbF\n return -1", "def PSm6(Kt_s, V6IE):\n exwG, r8...
[ "0.71366817", "0.68841183", "0.67988336", "0.6591313", "0.6496134", "0.64721566", "0.6445603", "0.62609804", "0.6255628", "0.6255628", "0.6255628", "0.623307", "0.6226056", "0.6207349", "0.6207349", "0.615631", "0.6127276", "0.60697514", "0.6056753", "0.60400015", "0.60400015...
0.574919
32
return lowest index of T at which the substring P begins or 1
def CFsa(Kt_s, V6IE): exwG, r8hN = (len(Kt_s), len(V6IE)) if r8hN == 0: return 0 XVAW = {} for G1Hx in range(r8hN): XVAW[V6IE[G1Hx]] = G1Hx YRbF = r8hN - 1 G1Hx = r8hN - 1 while YRbF < exwG: if Kt_s[YRbF] == V6IE[G1Hx]: if G1Hx == 0: return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XB4z(Kt_s, V6IE):\n exwG, r8hN = (len(Kt_s), len(V6IE))\n for YRbF in range(exwG - r8hN + 1):\n G1Hx = 0\n while G1Hx < r8hN and V6IE[G1Hx] == Kt_s[YRbF + G1Hx]:\n G1Hx += 1\n if G1Hx == r8hN:\n return YRbF\n return -1", "def PSm6(Kt_s, V6IE):\n exwG, r8...
[ "0.7137163", "0.68841", "0.67985874", "0.6591358", "0.64953494", "0.6470466", "0.64446634", "0.62614733", "0.6254462", "0.6254462", "0.6254462", "0.62325263", "0.6225033", "0.62068933", "0.62068933", "0.6155825", "0.61272633", "0.60691506", "0.6055394", "0.60390955", "0.60390...
0.5669278
39
This method initializes the terminal in the same fashion than
def L3WV(YKHO, MvhJ, Un5w=lambda: None, vNXD=lambda: None): KG9w = Hywv() KG9w.initialize(shelldicts=MvhJ) YKHO.initialize_with_shells(KG9w.shells, prepare=Un5w, finalize=vNXD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ppS2(YKHO):\n pass", "def FIMM(YKHO):\n YKHO.start = qcWV.datetime.now()\n YKHO.linecount = 0\n if HwRy.stdout.isatty():\n YKHO.term = r1MW()\n HwRy.stdout.write(YKHO.term.clear())", "def DbxN():\n Ei9u.rotation(270)\n Ei9u.brightness(1.0)\n Miq3 = PcHS.initscr()\n PcH...
[ "0.8699809", "0.7292389", "0.71076804", "0.6831301", "0.66842216", "0.6651966", "0.66282696", "0.65851945", "0.6437352", "0.6436314", "0.6404397", "0.6399962", "0.6394869", "0.6389796", "0.6379304", "0.63294286", "0.6312214", "0.6306049", "0.6304554", "0.6298047", "0.62804455...
0.0
-1
This method initializes the terminal in the same fashion than
def uIcm(YKHO, cuiw, Un5w=lambda: None, vNXD=lambda: None): YKHO.session = cuiw YKHO.prepare = Un5w YKHO.finalize = vNXD YKHO._set_session_callbacks()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ppS2(YKHO):\n pass", "def FIMM(YKHO):\n YKHO.start = qcWV.datetime.now()\n YKHO.linecount = 0\n if HwRy.stdout.isatty():\n YKHO.term = r1MW()\n HwRy.stdout.write(YKHO.term.clear())", "def DbxN():\n Ei9u.rotation(270)\n Ei9u.brightness(1.0)\n Miq3 = PcHS.initscr()\n PcH...
[ "0.8699262", "0.7292933", "0.71083564", "0.6831184", "0.668472", "0.6652416", "0.66292405", "0.6584851", "0.64369875", "0.64360744", "0.64037913", "0.6401106", "0.6395263", "0.638947", "0.6378908", "0.63298637", "0.63125944", "0.63061106", "0.63049245", "0.6298684", "0.628029...
0.0
-1
get_subject The subject of the fact
def mUtM(YKHO): return YKHO._subject
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U4ZT(YKHO):\n if 'subject' in YKHO._prop_dict:\n return YKHO._prop_dict['subject']\n else:\n return None", "def U4ZT(YKHO):\n return YKHO.__subject", "def U4ZT(YKHO):\n return YKHO._subject", "def U4ZT(YKHO):\n return YKHO.get('subject')", "def U4ZT(YKHO) -> qe4Y.Output[str...
[ "0.7669172", "0.7537892", "0.7468758", "0.73697263", "0.7355041", "0.71277165", "0.70041686", "0.6994261", "0.6980344", "0.69412374", "0.67784035", "0.67784035", "0.6492579", "0.64614415", "0.64437294", "0.64329296", "0.64083016", "0.64064366", "0.6354084", "0.63392586", "0.6...
0.76411164
1
Return True if the skupper site is hosted on an internal cluster.
def SnO_(YKHO) -> bool: return YKHO.cluster.internal or False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pW_O(YKHO) -> bool:\n return not YKHO.on_private_cluster", "def HQE6(YKHO) -> bool:\n return YKHO.cluster.spec.private if YKHO.cluster.spec else False", "def fanD(YKHO):\n bo34.debug('Checking if %s is a part of cluster' % YKHO)\n LmAn = YKHO.getClusterRole()\n return LmAn is not None and Lm...
[ "0.7357069", "0.70071125", "0.6751255", "0.66724575", "0.66079754", "0.6542108", "0.65032285", "0.64450425", "0.63726056", "0.6311538", "0.6302677", "0.62704456", "0.624269", "0.6212056", "0.62025696", "0.6201729", "0.61704063", "0.61688036", "0.6139393", "0.6076279", "0.6049...
0.79504955
0
Return True if the site is an edge site.
def k_FA(YKHO) -> bool: return YKHO.config.edge
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IWu0(YKHO, kwf7):\n return kwf7 in YKHO.edges", "def GJ1X(YKHO, WKvO, LVAh):\n return LVAh in YKHO._dictOut[WKvO]", "def GJ1X(YKHO, WKvO, LVAh):\n return LVAh in YKHO._dict[WKvO]", "def GJ1X(YKHO, WKvO, LVAh):\n return LVAh in YKHO._dictOut[WKvO]", "def HY_j(YKHO):\n return len(YKHO._edg...
[ "0.70349616", "0.6915203", "0.6851632", "0.682174", "0.67566234", "0.6714369", "0.66799676", "0.65916944", "0.6558664", "0.6515212", "0.648408", "0.6471512", "0.6367931", "0.6297021", "0.62817", "0.6240533", "0.6233693", "0.616926", "0.6160131", "0.6136747", "0.6134466", "0...
0.86728704
0
Set up the test case with a user
def FCbF(YKHO): super(OJoK, YKHO).setUp() YKHO._user = YKHO.model('user').createUser('minervauser', 'password', 'minerva', 'user', 'minervauser@example.com')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.new_user = mv1M('Juma', '12345')", "def FCbF(YKHO):\n YKHO.user = {p5VW: '12345'}", "def FCbF(YKHO):\n YKHO.new_user = pmuB(username='munga', bio='funny thing to say')", "def FCbF(YKHO):\n YKHO.new_user = pmuB(username='munga', bio='funny thing to say')", "def FCbF(YKHO):...
[ "0.7649504", "0.76031333", "0.76029813", "0.76029813", "0.7588299", "0.75567895", "0.75431585", "0.75382394", "0.7517782", "0.75104517", "0.75053287", "0.7486146", "0.7462552", "0.7422921", "0.7364179", "0.7363142", "0.73448694", "0.733774", "0.7320035", "0.73121804", "0.7285...
0.69008464
56
Test Fail UserResource.get(login) method
def SYLZ(YKHO): with YKHO.assertRaises(AssertionError): YKHO.resource.get(-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D8R5(YKHO):\n pass", "def dbcz(YKHO):\n pass", "def wkpI(YKHO):\n pass", "def w0Rs(YKHO):\n pass", "def MwDM(YKHO):\n pass", "def MwDM(YKHO):\n pass", "def nznz(YKHO):\n CBIr = JWrR.get(username=u'noexist')\n YKHO.assertEqual(CBIr, None, 'Should not find a non-existant user:...
[ "0.8289363", "0.80577666", "0.7867317", "0.77092636", "0.7655078", "0.7655078", "0.7511506", "0.7420454", "0.7399936", "0.7388848", "0.7363005", "0.73336434", "0.73078954", "0.72998255", "0.71924776", "0.71804297", "0.7126135", "0.71138567", "0.71093637", "0.7069864", "0.7061...
0.0
-1
Test Fail UserResource.list(page) method
def Qr4q(YKHO): with YKHO.assertRaises(AssertionError): YKHO.resource.get(-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HtHB(YKHO):\n pass", "def dbcz(YKHO):\n pass", "def MwDM(YKHO):\n pass", "def MwDM(YKHO):\n pass", "def ovG1(YKHO):\n YKHO._add_demo_import()\n NArs = {'api_key': YKHO.api_key}\n Ylbp = YKHO.testapp.get('/api/v1/a/users/list', params=NArs, status=200)\n nPrm = qQXR.loads(Ylbp.bo...
[ "0.76915306", "0.75058997", "0.73501027", "0.73501027", "0.7257327", "0.7244572", "0.71239424", "0.70939237", "0.7075472", "0.70545876", "0.7054254", "0.70369774", "0.69944495", "0.6981466", "0.6957983", "0.6929301", "0.68954104", "0.68556964", "0.6844748", "0.6822453", "0.68...
0.647213
43
Test UserResource.posts(login, page) method
def VBtx(YKHO): YKHO.resource._request.register_uri('GET', '/users/dotzero/posts?page=2', 'fixture_post.json') geh0 = YKHO.resource.posts('dotzero', 2) YKHO.assertTrue('data' in geh0) YKHO.assertTrue('server_time' in geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JyQh(YKHO):\n with YKHO.client as x0hE:\n _hkX = x0hE.get(f'/users/{YKHO.u1_username}')\n _R2e = _hkX.get_data(as_text=True)\n YKHO.assertEqual(_hkX.status_code, 200)\n YKHO.assertIn(f'<a class=\"uk-button uk-button-text\" href=\"/post/{YKHO.p1_id}\">', _R2e)\n YKHO.assert...
[ "0.7371837", "0.73089707", "0.72772837", "0.72723603", "0.72723603", "0.7219611", "0.70777917", "0.7049269", "0.69681364", "0.6887939", "0.68331975", "0.6831369", "0.68074936", "0.67663735", "0.67579615", "0.67482716", "0.671147", "0.6694462", "0.66624945", "0.66008943", "0.6...
0.79283786
0
Test Fail UserResource.posts(login, page) method
def olyn(YKHO): with YKHO.assertRaises(AssertionError): YKHO.resource.posts(-1) with YKHO.assertRaises(AssertionError): YKHO.resource.posts('foo', 'bar')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VBtx(YKHO):\n YKHO.resource._request.register_uri('GET', '/users/dotzero/posts?page=2', 'fixture_post.json')\n geh0 = YKHO.resource.posts('dotzero', 2)\n YKHO.assertTrue('data' in geh0)\n YKHO.assertTrue('server_time' in geh0)", "def SuIf(YKHO):\n pass", "def G5YW(YKHO):\n pass", "def i...
[ "0.7439907", "0.7425188", "0.74128944", "0.7395129", "0.7370658", "0.73548263", "0.73548263", "0.71929896", "0.71708775", "0.71400446", "0.7114321", "0.7101303", "0.70988536", "0.6969142", "0.69461167", "0.6939873", "0.6884646", "0.68628407", "0.68617404", "0.6768505", "0.675...
0.7332438
7
Test UserResource.favorites_posts(login, page) method
def lYyI(YKHO): YKHO.resource._request.register_uri('GET', '/users/dotzero/favorites/posts?page=2', 'fixture_post.json') geh0 = YKHO.resource.favorites_posts('dotzero', 2) YKHO.assertTrue('data' in geh0) YKHO.assertTrue('server_time' in geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZGGe(YKHO):\n YKHO.resource._request.register_uri('GET', '/users/dotzero/favorites/comments?page=2', 'fixture_post.json')\n geh0 = YKHO.resource.favorites_comments('dotzero', 2)\n YKHO.assertTrue('data' in geh0)\n YKHO.assertTrue('server_time' in geh0)", "def zH81(YKHO):\n with YKHO.assertRais...
[ "0.68933225", "0.6811983", "0.6536278", "0.63042474", "0.6301337", "0.6252229", "0.61242634", "0.6111041", "0.6092737", "0.6011554", "0.6006121", "0.5941497", "0.5909771", "0.5900231", "0.58877295", "0.5854893", "0.58386433", "0.58274436", "0.58130944", "0.57888925", "0.57791...
0.8498414
0
Test UserResource.favorites_comments(login, page) method
def ZGGe(YKHO): YKHO.resource._request.register_uri('GET', '/users/dotzero/favorites/comments?page=2', 'fixture_post.json') geh0 = YKHO.resource.favorites_comments('dotzero', 2) YKHO.assertTrue('data' in geh0) YKHO.assertTrue('server_time' in geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rkbw(YKHO):\n YKHO.resource._request.register_uri('GET', '/users/dotzero/comments?page=2', 'fixture_user.json')\n geh0 = YKHO.resource.comments('dotzero', 2)\n YKHO.assertTrue('data' in geh0)\n YKHO.assertTrue('server_time' in geh0)", "def njFY(YKHO):\n with YKHO.assertRaises(AssertionError):\...
[ "0.6938474", "0.67961997", "0.6484971", "0.637763", "0.6331129", "0.61841625", "0.6144015", "0.60092765", "0.5970653", "0.59290683", "0.58997226", "0.5886138", "0.58773804", "0.5853263", "0.5849604", "0.5772307", "0.5724686", "0.57201016", "0.57031924", "0.5697745", "0.568907...
0.84647095
0
Test Fail UserResource.favorites_comments(login, page) method
def njFY(YKHO): with YKHO.assertRaises(AssertionError): YKHO.resource.favorites_comments(-1) with YKHO.assertRaises(AssertionError): YKHO.resource.favorites_comments('foo', 'bar')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZGGe(YKHO):\n YKHO.resource._request.register_uri('GET', '/users/dotzero/favorites/comments?page=2', 'fixture_post.json')\n geh0 = YKHO.resource.favorites_comments('dotzero', 2)\n YKHO.assertTrue('data' in geh0)\n YKHO.assertTrue('server_time' in geh0)", "def Rkbw(YKHO):\n YKHO.resource._reque...
[ "0.81004006", "0.69311523", "0.66913867", "0.64991003", "0.64601576", "0.64338493", "0.62749755", "0.62351966", "0.6233211", "0.61592066", "0.6154396", "0.61254704", "0.611604", "0.6030049", "0.6007989", "0.6002804", "0.59985924", "0.5997375", "0.5968795", "0.59646595", "0.59...
0.7950016
1
Parses a requirements file, looking for nested files.
def oJIO(YKHO): nfd0 = hd27.OrderedSet() bQUX = hd27.OrderedSet() wvEv = qHZg.req.req_file.build_parser() muwo = wvEv.get_default_values() muwo.index_url = None with xDSY.open(str(YKHO.filename), 'r') as eHNT: for zFiD in eHNT: if zFiD.startswith('#'): continu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ARui(_ZYm='./requirements.txt'):\n qv1X = []\n with T_Uj.open(_ZYm, 'r') as nVrR:\n Nqlg = (zFiD.strip() for zFiD in nVrR if zFiD.strip() and (not zFiD.startswith('#')))\n for zFiD in Nqlg:\n if zFiD.startswith('-r'):\n qv1X += ARui(req_path=zFiD[3:])\n ...
[ "0.74728197", "0.7260392", "0.71974546", "0.6867657", "0.6693883", "0.66283774", "0.6492854", "0.64919966", "0.6450385", "0.64306283", "0.6408674", "0.63827765", "0.6364514", "0.6305518", "0.63041645", "0.6297856", "0.626945", "0.62402797", "0.6228126", "0.62150294", "0.62042...
0.66629225
5
Parses a requirements source file.
def VnMZ(Ux0P, *qIxc): jDub, cuiw = ssZu(*qIxc) F3jJ = av3E(jDub, cuiw) fA3L = qHZg.req.parse_requirements(Ux0P, finder=F3jJ.finder, session=F3jJ.session, options=jDub) return (set(fA3L), F3jJ.finder)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khiT():\n tk5Y = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n fA3L = []\n SMAd = []\n with open(Hy7s.path.join(tk5Y, 'requirements.txt'), 'r') as eHNT:\n for zFiD in eHNT.readlines():\n zFiD = zFiD.rstrip()\n if not zFiD or zFiD.startswith('#'):\n continu...
[ "0.7393417", "0.7165026", "0.713954", "0.70136434", "0.68966335", "0.6876439", "0.6835497", "0.6826305", "0.68226284", "0.68226284", "0.68226284", "0.6775737", "0.67604184", "0.67575985", "0.67487645", "0.672733", "0.6685165", "0.6675322", "0.6626736", "0.6621038", "0.6567365...
0.60225743
43
Test converting quaternion to rotation matrix.
def bF74(YKHO): vexM = oyIN.array([-1, 1, 3, 2]) vexM = vexM / oyIN.linalg.norm(vexM) m6BL = oyIN.array([[-1 / 3.0, -14 / 15.0, -2 / 15.0], [2 / 3.0, -1 / 3.0, 2 / 3.0], [-2 / 3.0, 2 / 15.0, 11 / 15.0]]).T A3Vt = ehCx(vexM) jFMI = A3Vt - m6BL YKHO.assertAlmostEqual(oyIN.linalg.norm(jFMI), 0.0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hi4y():\n A3Vt = oyIN.eye(3)\n jzdc = zTi3.axis_angle_from_matrix(A3Vt)\n t_0o(jzdc, oyIN.array([1, 0, 0, 0]))\n t3eI = oyIN.random.RandomState(0)\n for bGrB in range(5):\n vexM = zTi3.random_quaternion(t3eI)\n A3Vt = zTi3.matrix_from_quaternion(vexM)\n zTi3.assert_rotation_...
[ "0.82558435", "0.8119534", "0.7815779", "0.7733737", "0.7339709", "0.72954166", "0.7218608", "0.7136635", "0.7131645", "0.70673054", "0.7015742", "0.7002236", "0.69939727", "0.6982585", "0.6957458", "0.69242704", "0.6917323", "0.68979", "0.6881608", "0.6855251", "0.6845614", ...
0.8033091
2
Test converting rotation matrix quaternion.
def jfIW(YKHO): A3Vt = oyIN.identity(3) vexM = Omrx(A3Vt) wXjW = vexM - oyIN.array([0.0, 0.0, 0.0, 1.0]) YKHO.assertAlmostEqual(oyIN.linalg.norm(wXjW), 0.0) for bGrB in range(20): vexM = oyIN.random.randn(4) vexM /= oyIN.linalg.norm(vexM) A3Vt = ehCx(vexM) lHKk = ehCx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hi4y():\n A3Vt = oyIN.eye(3)\n jzdc = zTi3.axis_angle_from_matrix(A3Vt)\n t_0o(jzdc, oyIN.array([1, 0, 0, 0]))\n t3eI = oyIN.random.RandomState(0)\n for bGrB in range(5):\n vexM = zTi3.random_quaternion(t3eI)\n A3Vt = zTi3.matrix_from_quaternion(vexM)\n zTi3.assert_rotation_...
[ "0.82690674", "0.7959134", "0.7939182", "0.7600201", "0.75372833", "0.7459533", "0.739918", "0.7289051", "0.7195443", "0.71935666", "0.71454626", "0.7134161", "0.71254104", "0.7040668", "0.70335364", "0.70171607", "0.6981919", "0.6981059", "0.69645333", "0.69524604", "0.69176...
0.81795835
1
Forward propagate throught LSTM in parallel mode.
def KVH6(YKHO, pKvt, Zyf2): j5GU = pKvt.view(1, -1) rxHc = Zyf2 o4Jx = [] for YRbF in range(YKHO.seq_len): yvT9, rxHc = YKHO.model(j5GU, rxHc) o4Jx.append(yvT9) j5GU = ht2j.argmax(yvT9, dim=-1) return (ht2j.cat(o4Jx, dim=0), rxHc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n ZFAA = ht2j.zeros(YKHO.num_layers * 2, WKvO.size(0), YKHO.hidden_size).to(YKHO.device)\n Segk = ht2j.zeros(YKHO.num_layers * 2, WKvO.size(0), YKHO.hidden_size).to(YKHO.device)\n yvT9, bGrB = YKHO.lstm(WKvO, (ZFAA, Segk))\n yvT9 = U78l.Softmax(dim=2)(YKHO.fc(yvT9))\n return yv...
[ "0.6980283", "0.6869135", "0.6823408", "0.66030145", "0.6528454", "0.6464937", "0.64551663", "0.6441601", "0.6430547", "0.6379417", "0.63715076", "0.63666254", "0.6356948", "0.63421494", "0.6341871", "0.62990814", "0.62716866", "0.6207853", "0.6197452", "0.6182634", "0.615648...
0.0
-1
Forward propagate throught LSTM.
def KVH6(YKHO, pKvt, QTBn): zhTA = YKHO.drop(YKHO.encoder(pKvt)) LVAh, erLw = YKHO.rnn(zhTA, QTBn) LVAh = YKHO.drop(LVAh) LVAh = YKHO.decoder(LVAh) return (LVAh, erLw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n ZFAA = ht2j.zeros(YKHO.num_layers * 2, WKvO.size(0), YKHO.hidden_size).to(YKHO.device)\n Segk = ht2j.zeros(YKHO.num_layers * 2, WKvO.size(0), YKHO.hidden_size).to(YKHO.device)\n yvT9, bGrB = YKHO.lstm(WKvO, (ZFAA, Segk))\n yvT9 = U78l.Softmax(dim=2)(YKHO.fc(yvT9))\n return yv...
[ "0.7879262", "0.768611", "0.74561685", "0.7334817", "0.7257697", "0.72543764", "0.7153594", "0.7151201", "0.7138459", "0.70746654", "0.70660996", "0.7029574", "0.702773", "0.7016172", "0.7003409", "0.69388074", "0.6903344", "0.6858935", "0.6844671", "0.6841093", "0.6831496", ...
0.0
-1
Tokenizes the text data
def wr3U(l5Ny, eOtH): l5Ny = [eOtH(WKvO) for WKvO in l5Ny] return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n return l5Ny.split(' ')", "def wr3U(YKHO, Novh):\n zpSF = dFss(Novh.decode('utf8'))\n return YKHO.filter_tokens(zpSF)", "def NInT(YKHO, l5Ny: str) -> x1iM[str]:\n return YKHO.bert_model.tokenize(l5Ny.strip())", "def wr3U(l5Ny):\n yAmx = W66f(l5Ny)\n return yAmx.tokens()", ...
[ "0.75785226", "0.7350092", "0.73118323", "0.7265882", "0.7198742", "0.7182935", "0.71329665", "0.7129313", "0.71104115", "0.7106318", "0.710309", "0.7052359", "0.7032231", "0.69986963", "0.6997156", "0.69853157", "0.69840133", "0.6959404", "0.6914783", "0.6908655", "0.6900853...
0.68079984
27
Checks if an individual belongs to a specified class.
def NN6w(YKHO, DM04, zkut): VMym = 'select ?type { <' + DM04 + '> a ?type.}' CTmR = YKHO.ontology.query(query_object=VMym) KndY = [] for Mkmy in CTmR: KndY.append(str(Mkmy.type)) if zkut in KndY: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C316(YEnM: unrealsdk.UObject, dwXm: str) -> bool:\n return bool(YEnM.Class == fEDi.FindClass(dwXm))", "def Bk6c(YEnM, J9Xy):\n return isinstance(YEnM, J9Xy)", "def Bk6c(YEnM, J9Xy):\n return isinstance(YEnM, J9Xy)", "def Bk6c(YEnM, J9Xy):\n return isinstance(YEnM, J9Xy)", "def Bk6c(YEnM, J9...
[ "0.71342826", "0.63399357", "0.63399357", "0.63399357", "0.63399357", "0.63399357", "0.63399357", "0.6306234", "0.6291996", "0.6290904", "0.6285624", "0.62589914", "0.62589914", "0.6235945", "0.6206578", "0.6199013", "0.61777127", "0.61659217", "0.6151137", "0.6129008", "0.61...
0.6883937
1
Moves the swap element to position j from the current position
def YZLN(YKHO, r845): YRbF = YKHO.swap_idx while YRbF < r845: if YKHO.verbose: print(YRbF, YRbF + 1) YKHO.arrangement[YRbF], YKHO.arrangement[YRbF + 1] = (YKHO.arrangement[YRbF + 1], YKHO.arrangement[YRbF]) YRbF += 1 while YRbF > r845: if YKHO.verbose: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zh_p(YKHO, YRbF, r845):\n YKHO._data[YRbF], YKHO._data[r845] = (YKHO._data[r845], YKHO._data[YRbF])", "def zh_p(YKHO, YRbF, r845):\n YKHO._data[YRbF], YKHO._data[r845] = (YKHO._data[r845], YKHO._data[YRbF])", "def b3SJ(YKHO, YRbF, r845):\n YKHO._data[YRbF], YKHO._data[r845] = (YKHO._data[r845], YK...
[ "0.7661554", "0.7661554", "0.7616923", "0.76118165", "0.7611776", "0.75940925", "0.75202775", "0.7493728", "0.7449994", "0.7422566", "0.72777003", "0.72067314", "0.72058374", "0.72018766", "0.71948016", "0.71905756", "0.714544", "0.7057257", "0.70313597", "0.70078236", "0.697...
0.88287616
0
Creates keras callback for cyclical learning rate.
def cVCW(Tuqy=None, aF2y=0.0001, PsQ8=0.001, KMvS=0.999994): if Tuqy == 'trng1': R0zR = EEkO(base_lr=aF2y, max_lr=PsQ8, mode='triangular') elif Tuqy == 'trng2': R0zR = EEkO(base_lr=aF2y, max_lr=PsQ8, mode='triangular2') elif Tuqy == 'exp': R0zR = EEkO(base_lr=aF2y, max_lr=PsQ8, mode=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eUT1(Tuqy=None, aF2y=0.0001, PsQ8=0.001, KMvS=0.999994):\n from .cyclical_learning_rate import CyclicLR\n if Tuqy == 'trng1':\n R0zR = CyclicLR(base_lr=aF2y, max_lr=PsQ8, mode='triangular')\n elif Tuqy == 'trng2':\n R0zR = CyclicLR(base_lr=aF2y, max_lr=PsQ8, mode='triangular2')\n elif...
[ "0.68205225", "0.65726787", "0.6094842", "0.58839995", "0.5845977", "0.5678293", "0.56700635", "0.5652232", "0.56452197", "0.5610975", "0.5600942", "0.55987376", "0.5593452", "0.5593291", "0.5556113", "0.55546224", "0.5525337", "0.5502516", "0.54932964", "0.549059", "0.545832...
0.5213432
42
Turns ON the RF output.
def zF0X(YKHO): print(f'RF {YKHO.name} on') YKHO.status(True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSgF(YKHO):\n YKHO.instr.write('RF1')\n ITS7.sleep(YKHO.sleep_time)", "def jY15(YKHO):\n YKHO.write('OUT1\\n')", "def jY15(YKHO):\n xi8C.output(YKHO.gpio, True)", "def VCNZ(YKHO):\n YKHO.write('E;O1;E;')\n return YKHO.output()", "def JWjM(YKHO):\n xi8C.setmode(xi8C.BOARD)\n xi8C...
[ "0.8847189", "0.8278095", "0.78173256", "0.7808823", "0.77233696", "0.7542341", "0.7393205", "0.7323806", "0.71810305", "0.71272415", "0.7098429", "0.7074824", "0.7068935", "0.7047833", "0.7047833", "0.70440906", "0.69862133", "0.6984233", "0.69523996", "0.69428444", "0.69315...
0.7687058
5
Turns OFF the RF output.
def l4XF(YKHO): print(f'RF {YKHO.name} off') YKHO.status(False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xjEj(YKHO):\n YKHO.instr.write('RF0')\n ITS7.sleep(YKHO.sleep_time)", "def Z_rv(YKHO):\n YKHO.write('OUT0\\n')", "def MMqx(YKHO):\n YKHO.write('E;O0;E;')\n return YKHO.output()", "def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, False)", "def Z_rv(YKHO):\n YKHO._interrupt_flash()\n if Y...
[ "0.8635635", "0.83003366", "0.82206154", "0.813775", "0.7844174", "0.7666708", "0.762896", "0.7626627", "0.75779396", "0.7566445", "0.7544517", "0.7521237", "0.7506766", "0.74948364", "0.7489307", "0.74861085", "0.74734384", "0.7443173", "0.7421677", "0.74172395", "0.7383096"...
0.8402193
1
Method which returns exact number of edges for current Vertex
def wwlN(YKHO, M3sh=o97m): if not YKHO._directed: return len(YKHO._outgoing) if M3sh == Yegm.OUTGOING: return len(YKHO._outgoing) elif M3sh == Yegm.INCOMING: return len(YKHO._incoming)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zk7j(YKHO):\n raise NotImplementedError", "def n8F9(YKHO):\n return sum((len(Ty9i.adj) for Ty9i in YKHO.vertices.values()))", "def oklI(YKHO):\n try:\n return YKHO.edges\n except:\n print('ERROR: No graph exists')", "def L1_y(YKHO) -> int:\n return YKHO._n_edges", "def L1_y...
[ "0.8292416", "0.82491195", "0.8109534", "0.81045026", "0.808755", "0.8086237", "0.80690217", "0.8061081", "0.8016116", "0.8012883", "0.79929984", "0.7961072", "0.79313546", "0.79004496", "0.7825437", "0.7798607", "0.7768569", "0.77664804", "0.77095705", "0.77073675", "0.77063...
0.66309214
74
returns json response of client list
def XJOj(): if not QePW.is_xhr: return (pz3A({'error': 'Method not Allowed'}), 405) UjE9 = JIS1.ClientSchema() nPrm = UjE9.dump(x0hE.ClientService.objects_all(), many=True).data return (pz3A({'aaData': [[Z9rn.get('name'), Z9rn.get('slug')] for Z9rn in nPrm]}), 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cUo5():\n Onn9 = i9zE.query.all()\n HY3n = JM4Y()\n Aofo = HY3n.dump(Onn9, many=True)\n return pz3A({'clients': Aofo.data})", "def cUo5():\n nPrm = PbMx(document=oXWB, schema=JM4Y).get_data\n return oGir(data=nPrm).send()", "def qxnP():\n global drivers\n if not GbXM:\n retur...
[ "0.7758765", "0.7722253", "0.72662497", "0.720054", "0.71405697", "0.71192366", "0.6970985", "0.6922041", "0.68684953", "0.6786567", "0.6685259", "0.66827667", "0.6676122", "0.6634344", "0.6578491", "0.6549434", "0.65296966", "0.6520382", "0.64961916", "0.64640516", "0.645042...
0.83715266
0
returns json response of client list
def JIDU(fEbE): if not QePW.is_xhr: return (pz3A({'error': 'Method not Allowed'}), 405) WOpM = x0hE.ClientService.objects_filter(**dict(slug=fEbE)) if not WOpM: return (pz3A({'error': 'Client not found'}), 404) MlN6 = JIS1.FeatureRequestSchema() nPrm = MlN6.dump(RDhP.FeatureRequestSe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XJOj():\n if not QePW.is_xhr:\n return (pz3A({'error': 'Method not Allowed'}), 405)\n UjE9 = JIS1.ClientSchema()\n nPrm = UjE9.dump(x0hE.ClientService.objects_all(), many=True).data\n return (pz3A({'aaData': [[Z9rn.get('name'), Z9rn.get('slug')] for Z9rn in nPrm]}), 200)", "def cUo5():\n ...
[ "0.83715266", "0.7758765", "0.7722253", "0.72662497", "0.720054", "0.71405697", "0.71192366", "0.6970985", "0.6922041", "0.68684953", "0.6786567", "0.6685259", "0.66827667", "0.6676122", "0.6634344", "0.6578491", "0.6549434", "0.65296966", "0.6520382", "0.64640516", "0.645042...
0.64961916
19