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
Recreate a player from the converted dict.
def th4w(nPrm: Dict[str, Any]) -> VkHG.Player: return BByF(VkHG.Player, nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cpbI(fK8P, u46J, C6id):\n fK8P.update({u46J: ['N/A'] * C6id})", "def iipv(YEnM):\n qMX7 = jth9.deepcopy(YEnM)\n _j99 = ('hand', 'stockpile', 'clientele', 'vault', 'camp', 'revealed', 'prev_revealed', 'clients_given')\n for G1Hx in _j99:\n try:\n JIkt = qMX7[G1Hx]\n except...
[ "0.5985478", "0.5958255", "0.58619446", "0.5637327", "0.5588873", "0.55067104", "0.5344198", "0.53193796", "0.52757215", "0.52573746", "0.52327466", "0.5214823", "0.51930976", "0.5180022", "0.51657265", "0.51657265", "0.51657265", "0.51657265", "0.51657265", "0.51657265", "0....
0.6593805
0
ID of the guild the player is for.
def LRlk(YKHO) -> int: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_guild(YKHO, NPt0) -> Ows6:\n lSCo = await YKHO.client.fetch_guild(NPt0)\n return lSCo", "def OyzV(YKHO):\n return YKHO.__clubDbID", "def yztK(YKHO):\n return YKHO.game.get_player_id()", "def yztK(YKHO):\n return YKHO.player_id", "async def get(YKHO, LRlk: int) -> Sv1S:\n ......
[ "0.6565341", "0.6551406", "0.6501672", "0.63115156", "0.6294973", "0.62474155", "0.6172682", "0.6123099", "0.6115734", "0.6113979", "0.6087302", "0.60729486", "0.6025033", "0.6004576", "0.59758824", "0.59622085", "0.59281063", "0.58960116", "0.58839184", "0.5858213", "0.58396...
0.8896399
0
Set the current player.
async def set_player(YKHO, oyg0: Optional[andesite.Player]) -> None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IH60(YKHO, XWqO):\n YKHO.player = XWqO", "def J2qG(YKHO):\n YKHO.current_player = next(YKHO.get_player_order_fn())", "def IH60(YKHO, oyg0):\n YKHO._player = oyg0", "def jOj6(YKHO):\n YKHO.player = S8lm.other_player(YKHO.player)", "def IH60(YKHO, NDJy):\n YKHO.saved_player = NDJy", "def...
[ "0.8161119", "0.8081071", "0.80300945", "0.74764556", "0.74496865", "0.7331589", "0.7142709", "0.68288815", "0.6709654", "0.6681947", "0.6494975", "0.64515156", "0.64227533", "0.639932", "0.6372522", "0.63118595", "0.63118595", "0.6310514", "0.63098925", "0.6298178", "0.62874...
0.78743666
3
Get the currently playing track.
async def get_track(YKHO) -> h8nf[str]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A6b2(YKHO):\n x9qt = Ybv7.GetMediaItemTake_Track(YKHO.id)\n return dJyW.Track(x9qt)", "async def get_now_playing(YKHO) -> FYrf.MediaItem:\n return await YKHO._pytheos.api.player.get_now_playing_media(YKHO.id)", "def OGXr():\n A6b2 = EVSx.get_current_track_info()\n A6b2['title'] = A6b2['title...
[ "0.7227749", "0.70738524", "0.69759566", "0.69692236", "0.69311875", "0.68480384", "0.67908925", "0.6764343", "0.67546904", "0.6741011", "0.66894937", "0.665879", "0.66355926", "0.6615466", "0.66150486", "0.66149443", "0.6596855", "0.65687454", "0.6566484", "0.65569526", "0.6...
0.6788053
7
Convert the player state into a JSONserialisable dict. Use the classmethod `from_raw` to recreate a `PlayerState` using the returned data.
def jp45(YKHO) -> cuzp[str, ImMB]: if YKHO._player: rWjs = b4xE(YKHO._player) else: rWjs = None if YKHO._voice_server_update: Zpta = Dkly(YKHO._voice_server_update) else: Zpta = None return {'guild_id': YKHO.__guild_id, 'player': rWjs, 'track': YKHO._track, 'voice_ser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cbsw(YKHO) -> cuzp[str, ImMB]:\n return YKHO.state_to_json()", "def oD7C(YKHO) -> cuzp[str, ImMB]:\n return qQXR.loads(YKHO.get_state().to_json())", "def stVm(YKHO) -> cuzp[str, ImMB]:\n return YKHO.rstate.to_json()", "def ja6o(YKHO):\n return {'board': YKHO.board, 'player': YKHO.player, 'win...
[ "0.7115854", "0.6869605", "0.6858995", "0.66283935", "0.64958495", "0.64927536", "0.6430233", "0.642558", "0.63665795", "0.63351387", "0.62431335", "0.62391585", "0.6225019", "0.620804", "0.6172001", "0.61397386", "0.6037163", "0.5898714", "0.58871627", "0.5877527", "0.586113...
0.623264
12
Set a value in a nested object in root by item sequence.
def GEyC(tk5Y, DumB, BWXx): zBpA(tk5Y, DumB[:-1])[DumB[-1]] = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NpNj(YKHO, ZfUD, BWXx, EXJx):\n if ZfUD is None:\n raise Exception('call __setitem__ with None argument')\n else:\n YKHO.size += 1\n YKHO.root = YKHO.set(YKHO.root, ZfUD, int(BWXx), 0, EXJx)", "def set(YKHO, pmON, BWXx):\n SXRB = YKHO._path[:]\n SXRB.extend(ice4(pmON))\n _o05(...
[ "0.7220116", "0.6572795", "0.65141845", "0.6504848", "0.6418833", "0.64119226", "0.63725597", "0.6364336", "0.63441783", "0.6230382", "0.6224986", "0.6129438", "0.61212057", "0.61185116", "0.6096588", "0.60955817", "0.6079809", "0.60643834", "0.6047553", "0.60131806", "0.6007...
0.68911654
1
Compute the geographic area (in square meters) of every pixel in the data array provided.
def ET18(SG6Y): hMp2 = oyIN.radians((SG6Y['lat'][1] - SG6Y['lat'][0]).values) cdOD = oyIN.radians((SG6Y['lon'][1] - SG6Y['lon'][0]).values) LQ6K = A3Vt ** 2 * oyIN.abs(hMp2 * cdOD) * oyIN.cos(oyIN.radians(SG6Y['lat'])) jwJ4 = LQ6K * (0 * SG6Y + 1) return jwJ4 / YKjD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAdl(HOMp):\n return HOMp['geometry'].area", "def f0tD(YKHO):\n return oyIN.array([eHNT.area() for eHNT in YKHO])", "def GagE(v32L, Y7KK=1):\n return len(v32L.points) * Y7KK ** 2", "def nWVf(YKHO, Rx2n):\n f0tD = YKHO.__dataset__.extract_area(Rx2n, bands=[YKHO.index])\n return f0tD", "de...
[ "0.67239994", "0.64990187", "0.63126755", "0.6285519", "0.62659496", "0.62600255", "0.6257421", "0.6255886", "0.62127835", "0.6194535", "0.6164957", "0.61572504", "0.6141738", "0.61033225", "0.61003405", "0.60933846", "0.60916245", "0.6091594", "0.60729885", "0.60664797", "0....
0.60821897
18
Normalises words to lowercase and stems and lemmatizes it.
def kwsU(GIN8): GIN8 = GIN8.lower() GIN8 = mkhU.stem_word(GIN8) GIN8 = LkXt.lemmatize(GIN8) return GIN8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwsU(GIN8):\n GIN8 = GIN8.lower()\n GIN8 = LkXt.lemmatize(GIN8)\n return GIN8", "def jnV4(YKHO, GIN8):\n return YKHO.lemmatize(GIN8.lower())", "def kwsU(GIN8):\n GIN8 = GIN8.lower()\n GIN8 = LkXt.lemmatize(GIN8)\n return GIN8", "def X5wq(YKHO):\n s2mk = str(YKHO.doc).split()\n ...
[ "0.80522954", "0.7810233", "0.7518118", "0.74736536", "0.7466765", "0.7211377", "0.7211377", "0.71893823", "0.7140793", "0.7126806", "0.70805144", "0.7058325", "0.6883196", "0.6880236", "0.68394816", "0.6808203", "0.6767005", "0.67662984", "0.6756388", "0.67530596", "0.673774...
0.79710925
1
Given two dicts, merge them into a new dict as a shallow copy.
def yQxF(WKvO, LVAh): epBp = WKvO.copy() epBp.update(LVAh) return epBp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hOKH(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def roQF(m2Vb, g6HL):\n jMyi = m2Vb.copy()\n jMyi.update(g6HL)\n return jMyi", "def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(WKvO, LVAh):\n epBp = WKvO.cop...
[ "0.8501846", "0.84466875", "0.84402865", "0.84311867", "0.8428829", "0.83499664", "0.83499664", "0.83499664", "0.82086074", "0.81884646", "0.81880224", "0.81880224", "0.8082591", "0.799002", "0.7988879", "0.77437025", "0.77145404", "0.7666824", "0.76343286", "0.7631216", "0.7...
0.8383174
8
Load the pretrained ResNet152 and replace top fc layer.
def FIMM(YKHO, Agjb): super(KmzZ, YKHO).__init__() WWYJ = FYrf.resnet152(pretrained=True) KZ52 = list(WWYJ.children())[:-1] YKHO.resnet = U78l.Sequential(*KZ52) YKHO.linear = U78l.Linear(WWYJ.fc.in_features, Agjb) YKHO.bn = U78l.BatchNorm1d(Agjb, momentum=0.01)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))\n FBfN = JpOW(C3ST.fc)\n C3ST.fc = FBfN\n return C3ST", "def hVyu(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3])\n if mL4f:\n C3ST.load_...
[ "0.7173052", "0.6806408", "0.67975897", "0.67849594", "0.67489475", "0.67489475", "0.67489475", "0.67489475", "0.67324644", "0.6507087", "0.6507087", "0.64752775", "0.63904417", "0.62846625", "0.62234324", "0.61872536", "0.6139846", "0.61031175", "0.6084447", "0.60670197", "0...
0.0
-1
Sets the duty cycle for a given pwm pin
def zr_h(YKHO, d6pt, BWXx=None, CX33=False): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def phkR(YKHO, yQ5t, q4sF):\n raise NotImplementedError", "def zyrV(YKHO, OVsO):\n aJiH.set_duty_cycle(YKHO.pwm_pin, OVsO)", "def zXTM(lN_F, q4sF):\n return MxNX(Mv0m(a_tK, KE0v, lN_F, q4sF))", "def jZCl(YKHO, yQ5t, BWXx=0):\n BWXx = YKHO.int_lim(lower=M3_7, upper=H__o, value=BWXx)\n if YKHO.i...
[ "0.8017969", "0.79765433", "0.73637307", "0.73127794", "0.72794235", "0.71954334", "0.69055986", "0.68803793", "0.67665154", "0.6711824", "0.6709129", "0.6702893", "0.662996", "0.6623714", "0.64086795", "0.62834936", "0.62673324", "0.6266835", "0.6262982", "0.6214931", "0.619...
0.55967426
51
Bad x_pts values in Rectangle should raise error.
def EZBU(YKHO): for VWAU in (1.2, ZjSO(3), -1, 'hello'): YKHO.assertRaises(ValueError, x7Ls, x_pts=VWAU, y_pts=40, width_pts=100, height_pts=120, line_width_pts=5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jwr5(YKHO):\n for ls7V in (1.2, ZjSO(3), -1, 'hello'):\n YKHO.assertRaises(ValueError, x7Ls, x_pts=10, y_pts=40, width_pts=ls7V, height_pts=120, line_width_pts=5)", "def dUZr(YKHO):\n for x4Cq in (1.2, ZjSO(3), -1, 'hello'):\n YKHO.assertRaises(ValueError, x7Ls, x_pts=10, y_pts=40, width_...
[ "0.76121473", "0.7471551", "0.71438026", "0.71285534", "0.700506", "0.69217265", "0.690566", "0.6846208", "0.68286026", "0.6741739", "0.66597074", "0.64641076", "0.64544153", "0.64461464", "0.64368165", "0.64262223", "0.6375577", "0.63186926", "0.63015175", "0.6276635", "0.62...
0.8606928
0
Bad width_pts values in Rectangle should raise error.
def jwr5(YKHO): for ls7V in (1.2, ZjSO(3), -1, 'hello'): YKHO.assertRaises(ValueError, x7Ls, x_pts=10, y_pts=40, width_pts=ls7V, height_pts=120, line_width_pts=5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dUZr(YKHO):\n for x4Cq in (1.2, ZjSO(3), -1, 'hello'):\n YKHO.assertRaises(ValueError, x7Ls, x_pts=10, y_pts=40, width_pts=100, height_pts=120, line_width_pts=x4Cq)", "def EZBU(YKHO):\n for VWAU in (1.2, ZjSO(3), -1, 'hello'):\n YKHO.assertRaises(ValueError, x7Ls, x_pts=VWAU, y_pts=40, wi...
[ "0.826341", "0.7695576", "0.7467558", "0.7388805", "0.7090293", "0.7025765", "0.69858956", "0.6954115", "0.6886466", "0.6809733", "0.67497337", "0.67350584", "0.66605884", "0.6639013", "0.66181296", "0.6446622", "0.6393169", "0.6366717", "0.6322232", "0.63024443", "0.6300844"...
0.867867
0
Load pretrain embedding from embedding_path
def clTh(CtWL, Agjb, f9FC): C3ST = cpHw.load_word2vec_format(f9FC) print('{} {}'.format(CtWL.size(), Agjb)) for eOtH, id in CtWL.token2id.items(): if eOtH in C3ST: print('{} {}'.format(eOtH, ' '.join(map(str, C3ST[eOtH])))) else: zhTA = oyIN.random.random((Agjb,)) - 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R6j5(YKHO, f9FC):\n ZHXt = {}\n with open(f9FC, 'r') as Fwbn:\n for zFiD in Fwbn:\n kGys = zFiD.strip().split()\n eOtH = kGys[0]\n if eOtH not in YKHO.token2id:\n continue\n ZHXt[eOtH] = list(map(float, kGys[1:]))\n Agjb = len(k...
[ "0.83851933", "0.8022761", "0.7967971", "0.75104725", "0.7356042", "0.73355716", "0.73013693", "0.7233546", "0.72129554", "0.704012", "0.6947509", "0.6934173", "0.6931675", "0.69144213", "0.69131625", "0.6801978", "0.67926615", "0.67625135", "0.6734187", "0.6732269", "0.67046...
0.8098588
1
Applies the binary operator elementwise on self and `other`. Given two structures of the same type, this function's job is to find corresponding pairs of elements within both structures, invoke `op` on each pair, and store the result in a corresponding location within a new structure. For example, to implement for a li...
def C8HC(YKHO: ConcreteStructuredMetricValue, Elif: ConcreteStructuredMetricValue, khtY: Callable[[float, float], float]) -> _Ujx: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KpEL(YKHO, Elif):\n if Elif is sHvO or Elif is btH5 or Elif is PZ3L or (Elif is WY2F) or (Elif is c39q) or (Elif is uBnR) or (Elif is CKm4):\n if HwRy.version_info[0] < 3:\n mWFP = khtY.__name__.replace('__', '__r', 1)\n else:\n mWFP = '__r%s__' % khtY.__name__\n r...
[ "0.72542083", "0.7071522", "0.67241544", "0.66492856", "0.6399644", "0.6244016", "0.6203761", "0.62026745", "0.6135165", "0.6012099", "0.59789455", "0.5854918", "0.5846304", "0.58462644", "0.5836354", "0.58022803", "0.5797743", "0.57433593", "0.56871635", "0.5681461", "0.5625...
0.60483944
9
Returns the number of syllables in a CMU syllable string.
def HvpC(B3Iv): return len([Z9rn for Z9rn in B3Iv if Z9rn in ['0', '1', '2']])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w1L7(YKHO, GIN8):\n if GIN8.lower() in YKHO.cmu_dict:\n return len([HWve for HWve in YKHO.cmu_dict[GIN8.lower()][0] if HWve[-1].isdigit()])\n else:\n return len(GIN8) // 3", "def wM7B(A97Q: Doc, FF10: int=1):\n l5Ny = (GIN8 for GIN8 in A97Q if not GIN8.is_punct and \"'\" not in GIN8.te...
[ "0.7874941", "0.76152617", "0.7535013", "0.7435063", "0.73144597", "0.72565174", "0.72334653", "0.7074093", "0.704141", "0.70370847", "0.70336914", "0.7032525", "0.68680024", "0.6730484", "0.67279816", "0.66030407", "0.6575333", "0.6525462", "0.6206817", "0.61568224", "0.6040...
0.643138
18
View to show the register form.
def gr_i(QePW): ONVH = Wwnj() return _1tc(QePW, 'metro_app/register.html', {'form': ONVH})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwoF():\n return TvZl('register-form.html')", "def ONVH():\n return TvZl('register.html')", "def ONVH():\n return TvZl('register-form.html')", "def Vbl8():\n return TvZl('/registration_form.html')", "def nUHY(YKHO):\n return tTee('auth/register', {'app': SCWY, 'Auth': PO44(YKHO.request),...
[ "0.82499194", "0.8249102", "0.82006705", "0.77152574", "0.7688426", "0.7603576", "0.74869686", "0.74200755", "0.73387915", "0.7313662", "0.72940564", "0.7224635", "0.7206933", "0.7184567", "0.71656907", "0.7151931", "0.71097904", "0.7102015", "0.7089146", "0.70660484", "0.705...
0.8150496
3
View to show the login form.
def zt0L(QePW, uWq4=False): Gckm = Eo6a() QpfX = {'form': Gckm, 'login_error': uWq4} return _1tc(QePW, 'metro_app/login.html', QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gckm():\n return TvZl('login_form.html')", "def MC83():\n return TvZl('login_form.html')", "def NMoC(YKHO, QePW):\n L03z = Eo6a()\n QpfX = {'form': L03z}\n return _1tc(QePW, 'login.html', QpfX)", "def bc1r():\n Gckm = Eo6a()\n pDy9 = eUF5()\n return TvZl('loginpage.html', register...
[ "0.8040952", "0.8030783", "0.8021652", "0.77169514", "0.7716151", "0.77049774", "0.76490325", "0.76081496", "0.7576319", "0.7576319", "0.7545517", "0.7528079", "0.7477453", "0.7475224", "0.7465064", "0.74517506", "0.7430772", "0.7323334", "0.7308153", "0.7273397", "0.72679025...
0.75229144
12
Simple view to send the tutorial pdf to the user.
def hWhz(QePW): try: qaEx = gCuF.BASE_DIR + '/website_files/metropolis_tutorial.pdf' with open(qaEx, 'rb') as eHNT: geh0 = igJ6(eHNT, content_type='application/pdf') geh0['Content-Disposition'] = 'attachment; filename="how_to.pdf"' return geh0 except FileNotFo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ofIJ(QePW):\n return c5qa(open('/files/presentation.pdf', 'rb'))", "def G4vw(YKHO):\n WKvO = 100\n LVAh = 100\n NRcB = aKaX()\n XP5J = g_NO.Canvas(NRcB, pagesize='A4')\n XP5J.drawString(WKvO, LVAh, 'TO DO')\n XP5J.showPage()\n XP5J.save()\n kzAT = NRcB.getvalue()\n NRcB.close()\...
[ "0.6588368", "0.6451209", "0.640698", "0.6326483", "0.6173198", "0.61058164", "0.6094422", "0.60768", "0.6065966", "0.59488285", "0.59171295", "0.59096575", "0.5812807", "0.57946324", "0.57906777", "0.5767496", "0.5765579", "0.5762387", "0.5762216", "0.57415116", "0.57289356"...
0.7865099
0
Get time formatted string for filenames.
def m7L9(vgXP=0, RAIs=True): yo7_ = qcWV.datetime.now() - qcWV.timedelta(seconds=vgXP) ROt1 = str(yo7_.hour) yVtz = str(yo7_.minute) CsFy = str(yo7_.second) if RAIs: return ROt1 + '-' + yVtz + '-' + CsFy else: return ROt1 + '-' + yVtz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JMdS(YKHO):\n return YKHO.sNow.strftime('%d-%m-%Y_%H-%M-%S')", "def Bc_l(a1PO):\n a1PO = int(Hy7s.path.basename(a1PO).split('.')[0])\n NMmn = a1PO / 1000\n NmYP = a1PO % 1000\n jmHs = ITS7.strftime('%H:%M:%S', ITS7.localtime(NMmn)) + '.' + str(NmYP)\n return jmHs", "def RW01():\n from ...
[ "0.79162747", "0.77068114", "0.7396061", "0.72853833", "0.7098656", "0.70315593", "0.69150996", "0.6896584", "0.6816862", "0.6772872", "0.6726533", "0.6678515", "0.66381425", "0.6601334", "0.6556945", "0.64606667", "0.6446788", "0.6405249", "0.63947743", "0.6389193", "0.63752...
0.0
-1
Write dataframe into csv
def RZtn(Kiac, gIsw): Kiac.coalesce(1).write.option('header', True).mode('overwrite').save(f'outputs/{gIsw}', format('csv'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xMnm(gIsw, bOBl):\n print('\\nSaved result to {}\\n'.format(gIsw))\n bOBl.to_csv(gIsw, mode='a', header=False, index=False)", "def eFxq(Kiac, qaEx):\n Kiac.to_csv(qaEx)\n return None", "def RZtn(YKHO):\n YKHO.tableView.df.to_csv('Data export.csv', index=False)\n print('CSV file exported')...
[ "0.79074657", "0.7829002", "0.7824596", "0.78023225", "0.7793427", "0.77609843", "0.76459116", "0.7623478", "0.75945354", "0.7585702", "0.7569711", "0.7557535", "0.7545369", "0.75109977", "0.74789864", "0.7474551", "0.7377757", "0.73381555", "0.73088133", "0.72938526", "0.727...
0.7703188
6
The texture coordinates as an (N, 2) array of floats.
def P8n6(YKHO): return YKHO._texcoords
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dSd7(YKHO) -> laHg.List[laHg.List[float]]:\n ...", "def W0Eb(YKHO):\n return oyIN.array([[eHNT.x, eHNT.y] for eHNT in YKHO])", "def jNOo(YKHO):\n return oyIN.column_stack((YKHO.x_coord_list, YKHO.y_coord_list, YKHO.z_coord_list))", "def vSzX(YKHO, jNOo):\n poka = int(int(jNOo[0]) / 8)\n s7...
[ "0.64712757", "0.6336339", "0.62435853", "0.624083", "0.6214205", "0.6164237", "0.61500317", "0.6138886", "0.610588", "0.60736877", "0.6045124", "0.59910476", "0.5953141", "0.5926862", "0.5924415", "0.5902371", "0.58768183", "0.58727086", "0.5868654", "0.5863764", "0.57926583...
0.6014617
12
Calculate the negative Levenshtein distance
def p1kx(YKHO, DZS6: Dict, oJb8: Dict, TZJz: Dict) -> 'np.ndarray': from Levenshtein import distance G4Re = [(Hw9C, -distance(DZS6['text'], TZJz[Hw9C]['text'])) for Hw9C, btYn in oJb8.items()] return oyIN.array(G4Re, dtype=[(YKHO.COL_MATCH_ID, oyIN.object), (YKHO.COL_SCORE, oyIN.float64)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R7dD(j93S, Nqp_):\n gwsg = max(len(j93S), len(Nqp_))\n if gwsg == 0:\n return 1.0\n return 1.0 - float(i8SG(j93S, Nqp_)) / gwsg", "def Ayfi(Y0Fj, Pb4f):\n return KX6q.normalized_distance(Y0Fj, Pb4f)", "def DR4Z(j93S, Nqp_):\n if len(j93S) < len(Nqp_):\n return oIP6.levenshtein_...
[ "0.7378068", "0.7116633", "0.71150064", "0.71104354", "0.70092446", "0.6998906", "0.6994253", "0.6947304", "0.682456", "0.67933464", "0.6761612", "0.6755038", "0.6748764", "0.6741169", "0.6727991", "0.6727991", "0.66243523", "0.6621512", "0.66049397", "0.65947527", "0.6535931...
0.0
-1
Retrieves appropriate figure file name.
def AHrO(YKHO, anp5=None, thAa=''): if isinstance(anp5, SnBA.NoneType): anp5 = Hy7s.path.join(YKHO.output_folder_path, 'slices') YBqa(anp5, False, True) anp5 = Hy7s.path.join(anp5, 'te%04d' % YKHO.interval_index[1]) YBqa(anp5, False, True) IznC = 'post_analysis_%s_%s_tf%4.4f%s.png' %...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cfas(YKHO):\n return YKHO.plotting_file_name", "def Ae2a(YKHO):\n pass", "def g_2H(YKHO):\n return str(YKHO.get_file())", "def cnlq(YKHO, bf9h, IznC=None, JZxJ='', GSwS=False):\n if not IznC:\n IznC = 'Chapter{}-Figure{}-{}{}'.format(YKHO.number, YKHO.fig_count, bf9h, JZxJ)\n if GSw...
[ "0.7727675", "0.7301691", "0.71053356", "0.70466596", "0.7017463", "0.69359905", "0.6912477", "0.6898704", "0.68811244", "0.68077797", "0.6807766", "0.6799909", "0.6784805", "0.67776966", "0.67649823", "0.6758879", "0.6753873", "0.6721656", "0.6667691", "0.66297436", "0.66208...
0.7433505
1
Test that the monitoring endpoint returns something when no creds exist.
def rrzR(x0hE, P4t4, MkrZ, Ehsq): g2VD = MkrZ['jwt'] u0s6 = None Ehsq.setitem(GPtr, 'CIRRUS_CFG', {'GOOGLE_APPLICATION_CREDENTIALS': u0s6}) geh0 = x0hE.get('/google/service_accounts/monitor', headers={'Authorization': 'Bearer ' + g2VD}) assert geh0.status_code == 404
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fnbe(YKHO):\n YKHO.os_fixture.v3_token.remove_service('monitoring')\n w2B8 = YKHO._get_conn()\n YKHO.assertRaises(lT_r.catalog.EndpointNotFound, getattr, w2B8, 'monitoring')", "def ljyw(YKHO):\n assert Hy7s.environ['AIVEN_API_URL'] is not None\n assert Hy7s.environ['AIVEN_TOKEN'] is not None",...
[ "0.68448985", "0.6693848", "0.66610587", "0.65615463", "0.6538538", "0.64728713", "0.6472802", "0.6449334", "0.6424608", "0.640004", "0.6396394", "0.6383558", "0.63830626", "0.63807476", "0.6362253", "0.63564605", "0.63354224", "0.6331587", "0.6330722", "0.63237005", "0.63127...
0.5988989
62
Test that patching with no arg project_access successfully extends access for all projects the service account currently has access to.
def zGBc(x0hE, P4t4, ouvA, MkrZ, Zu2C, dfiQ, hrtD, zdiL, KXot): g2VD = MkrZ['jwt'] zOZf = Zu2C['service_account'] geh0 = x0hE.patch('/google/service_accounts/{}'.format(NCC9(zOZf.email)), headers={'Authorization': 'Bearer ' + g2VD}, content_type='application/json') assert str(geh0.status_code).startswit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dQgu(x0hE, P4t4, ouvA, MkrZ, Zu2C, dfiQ, hrtD, zdiL, KXot):\n g2VD = MkrZ['jwt']\n zOZf = Zu2C['service_account']\n geh0 = x0hE.patch('/google/service_accounts/{}'.format(NCC9(zOZf.email)), headers={'Authorization': 'Bearer ' + g2VD}, content_type='application/json', data=qQXR.dumps({'project_access':...
[ "0.68343496", "0.6786524", "0.66923004", "0.66494733", "0.6641669", "0.65332156", "0.6501268", "0.6463291", "0.6428576", "0.63720006", "0.63313645", "0.63235384", "0.6267822", "0.62597275", "0.61931896", "0.61674815", "0.60891813", "0.60821265", "0.60305977", "0.60061425", "0...
0.6996558
0
Test that patching with a valid expires_in successfully extends access, and patching with an invalid expires_in does not.
def Q9h6(x0hE, P4t4, ouvA, MkrZ, Zu2C, dfiQ, hrtD, zdiL, KXot): g2VD = MkrZ['jwt'] zOZf = Zu2C['service_account'] XiqT = 'abc' geh0 = x0hE.patch('/google/service_accounts/{}?expires_in={}'.format(NCC9(zOZf.email), XiqT), headers={'Authorization': 'Bearer ' + g2VD}, content_type='application/json') a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I_kf(x0hE):\n with x0hE.application.app_context():\n trZe.skip('Not implemented')", "async def test_invalid_token_expiry_in_config_entry(ajET: HomeAssistant, Vkil: ComponentSetup, bFCs: AiohttpClientMocker) -> None:\n ihMv = 86400\n bc41 = ITS7.time() + ihMv\n bFCs.post('https://oauth2.goo...
[ "0.6844626", "0.6763873", "0.67584", "0.6650726", "0.6568256", "0.65523976", "0.65519077", "0.6548259", "0.643943", "0.6436103", "0.63885045", "0.63736486", "0.6289868", "0.62593085", "0.6205588", "0.61965007", "0.6141622", "0.61033314", "0.6096082", "0.6085035", "0.6081671",...
0.7942365
0
Test that patching with project_access as empty list successfully removes all projects the service account currently has access to.
def dQgu(x0hE, P4t4, ouvA, MkrZ, Zu2C, dfiQ, hrtD, zdiL, KXot): g2VD = MkrZ['jwt'] zOZf = Zu2C['service_account'] geh0 = x0hE.patch('/google/service_accounts/{}'.format(NCC9(zOZf.email)), headers={'Authorization': 'Bearer ' + g2VD}, content_type='application/json', data=qQXR.dumps({'project_access': []})) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l2eV(YKHO):\n pass", "def Jj68(YKHO):\n pass", "def xZ5p(x0hE):\n uOe2 = x0hE.remove_projects_from_group(ckRq, j5dQ, ['638597985c913f818559f3.17106287', '404021655ce68d0f36ad23.02802891'])\n assert uOe2.team_id == ckRq\n assert uOe2.group_id == j5dQ\n assert '638597985c913f818559f3.171062...
[ "0.68499666", "0.66519874", "0.6617426", "0.6606463", "0.65932506", "0.65811473", "0.6541075", "0.6541075", "0.6515065", "0.6465444", "0.64080673", "0.63891673", "0.63891673", "0.6383259", "0.6366932", "0.63445747", "0.63123935", "0.6246273", "0.62419075", "0.6228392", "0.621...
0.7507203
0
Test that an invalid service account gives us the expected error structure
def WHAa(KrtQ, x0hE, P4t4, MkrZ, QIaO, ouvA): QIaO['service_account_has_external_access'].return_value = True g2VD = MkrZ['jwt'] ouvA.add(oPx1(auth_id='project_a')) ouvA.add(oPx1(auth_id='project_b')) ouvA.commit() frX_ = ['project_a', 'project_b'] WhZL = {'service_account_email': 'test123@t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Kqu(x0hE, P4t4, MkrZ, QIaO, gohJ, ouvA, KrtQ):\n QIaO['is_valid_service_account_type'].return_value = False\n g2VD = MkrZ['jwt']\n ouvA.add(oPx1(auth_id='project_a'))\n ouvA.add(oPx1(auth_id='project_b'))\n ouvA.commit()\n frX_ = ['project_a', 'project_b']\n KrtQ.return_value.__enter__.re...
[ "0.689817", "0.6696572", "0.65670174", "0.65628815", "0.6357861", "0.6324454", "0.6313304", "0.6311794", "0.6279392", "0.626623", "0.6258232", "0.6220433", "0.62158924", "0.62062615", "0.6195862", "0.6194676", "0.6193869", "0.6191958", "0.6188509", "0.6185368", "0.6178153", ...
0.6904281
0
Test that an invalid service account gives us the expected error structure
def Zx0d(x0hE, P4t4, MkrZ, QIaO, gohJ, ouvA, KrtQ): fugw = QIaO NhR6 = gohJ fugw['service_account_has_external_access'].return_value = True NhR6['get_service_account_ids_from_google_members'].return_value = ['test123@test.com'] g2VD = MkrZ['jwt'] KrtQ.return_value.__enter__.return_value.get_serv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WHAa(KrtQ, x0hE, P4t4, MkrZ, QIaO, ouvA):\n QIaO['service_account_has_external_access'].return_value = True\n g2VD = MkrZ['jwt']\n ouvA.add(oPx1(auth_id='project_a'))\n ouvA.add(oPx1(auth_id='project_b'))\n ouvA.commit()\n frX_ = ['project_a', 'project_b']\n WhZL = {'service_account_email'...
[ "0.6904389", "0.6898219", "0.6696194", "0.65656", "0.6560998", "0.6357726", "0.63132715", "0.63129985", "0.627929", "0.6265447", "0.62582004", "0.622056", "0.62161285", "0.62073755", "0.61960596", "0.61947095", "0.61939555", "0.6191505", "0.618866", "0.61850935", "0.617801", ...
0.63247347
6
Test that an invalid service account gives us the expected error structure
def _Kqu(x0hE, P4t4, MkrZ, QIaO, gohJ, ouvA, KrtQ): QIaO['is_valid_service_account_type'].return_value = False g2VD = MkrZ['jwt'] ouvA.add(oPx1(auth_id='project_a')) ouvA.add(oPx1(auth_id='project_b')) ouvA.commit() frX_ = ['project_a', 'project_b'] KrtQ.return_value.__enter__.return_value.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WHAa(KrtQ, x0hE, P4t4, MkrZ, QIaO, ouvA):\n QIaO['service_account_has_external_access'].return_value = True\n g2VD = MkrZ['jwt']\n ouvA.add(oPx1(auth_id='project_a'))\n ouvA.add(oPx1(auth_id='project_b'))\n ouvA.commit()\n frX_ = ['project_a', 'project_b']\n WhZL = {'service_account_email'...
[ "0.6905058", "0.6696591", "0.6566112", "0.6561027", "0.63567674", "0.6325365", "0.6313265", "0.6311932", "0.62797993", "0.6266244", "0.62572193", "0.62209386", "0.621513", "0.62061167", "0.61949414", "0.6193788", "0.619265", "0.6191609", "0.6189161", "0.6184653", "0.6178058",...
0.68985486
1
Test that an invalid service account gives us the expected error structure
def DkLW(x0hE, P4t4, MkrZ, QIaO, gohJ, ouvA, KrtQ): QIaO['is_service_account_from_google_project'].return_value = False g2VD = MkrZ['jwt'] ouvA.add(oPx1(auth_id='project_a')) ouvA.add(oPx1(auth_id='project_b')) ouvA.commit() frX_ = ['project_a', 'project_b'] KrtQ.return_value.__enter__.retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WHAa(KrtQ, x0hE, P4t4, MkrZ, QIaO, ouvA):\n QIaO['service_account_has_external_access'].return_value = True\n g2VD = MkrZ['jwt']\n ouvA.add(oPx1(auth_id='project_a'))\n ouvA.add(oPx1(auth_id='project_b'))\n ouvA.commit()\n frX_ = ['project_a', 'project_b']\n WhZL = {'service_account_email'...
[ "0.6905058", "0.68985486", "0.6696591", "0.6566112", "0.6561027", "0.63567674", "0.6325365", "0.6313265", "0.6311932", "0.6266244", "0.62572193", "0.62209386", "0.621513", "0.62061167", "0.61949414", "0.6193788", "0.619265", "0.6191609", "0.6189161", "0.6184653", "0.6178058",...
0.62797993
9
Test that an invalid service account gives us the expected error structure
def PuDS(x0hE, P4t4, MkrZ, QIaO, gohJ, ouvA, KrtQ): gohJ['get_google_project_parent_org'].return_value = 'some-parent-org' g2VD = MkrZ['jwt'] ouvA.add(oPx1(auth_id='project_a')) ouvA.add(oPx1(auth_id='project_b')) ouvA.commit() frX_ = ['project_a', 'project_b'] KrtQ.return_value.__enter__.re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WHAa(KrtQ, x0hE, P4t4, MkrZ, QIaO, ouvA):\n QIaO['service_account_has_external_access'].return_value = True\n g2VD = MkrZ['jwt']\n ouvA.add(oPx1(auth_id='project_a'))\n ouvA.add(oPx1(auth_id='project_b'))\n ouvA.commit()\n frX_ = ['project_a', 'project_b']\n WhZL = {'service_account_email'...
[ "0.6904281", "0.689817", "0.6696572", "0.65670174", "0.65628815", "0.6357861", "0.6324454", "0.6313304", "0.6311794", "0.6279392", "0.626623", "0.6258232", "0.6220433", "0.62158924", "0.62062615", "0.6195862", "0.6194676", "0.6193869", "0.6191958", "0.6188509", "0.6185368", ...
0.0
-1
Test that an invalid service account gives us the expected error structure
def YsP_(x0hE, P4t4, MkrZ, QIaO, gohJ, ouvA, KrtQ): gohJ['get_google_project_valid_users_and_service_accounts'].side_effect = Exception() g2VD = MkrZ['jwt'] ouvA.add(oPx1(auth_id='project_a')) ouvA.add(oPx1(auth_id='project_b')) ouvA.commit() frX_ = ['project_a', 'project_b'] KrtQ.return_val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WHAa(KrtQ, x0hE, P4t4, MkrZ, QIaO, ouvA):\n QIaO['service_account_has_external_access'].return_value = True\n g2VD = MkrZ['jwt']\n ouvA.add(oPx1(auth_id='project_a'))\n ouvA.add(oPx1(auth_id='project_b'))\n ouvA.commit()\n frX_ = ['project_a', 'project_b']\n WhZL = {'service_account_email'...
[ "0.6905058", "0.68985486", "0.6696591", "0.6566112", "0.6561027", "0.63567674", "0.6325365", "0.6311932", "0.62797993", "0.6266244", "0.62572193", "0.62209386", "0.621513", "0.62061167", "0.61949414", "0.6193788", "0.619265", "0.6191609", "0.6189161", "0.6184653", "0.6178058"...
0.6313265
7
Test that an invalid service account gives us the expected error structure
def xixk(x0hE, P4t4, MkrZ, QIaO, gohJ, ouvA): gohJ['do_all_users_have_access_to_project'].return_value = False gohJ['get_project_access_from_service_accounts'].return_value = [] g2VD = MkrZ['jwt'] frX_ = ['project_a', 'project_b'] WhZL = {'service_account_email': 'test123@test.com', 'google_project_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WHAa(KrtQ, x0hE, P4t4, MkrZ, QIaO, ouvA):\n QIaO['service_account_has_external_access'].return_value = True\n g2VD = MkrZ['jwt']\n ouvA.add(oPx1(auth_id='project_a'))\n ouvA.add(oPx1(auth_id='project_b'))\n ouvA.commit()\n frX_ = ['project_a', 'project_b']\n WhZL = {'service_account_email'...
[ "0.6905058", "0.68985486", "0.6696591", "0.6566112", "0.6561027", "0.63567674", "0.6325365", "0.6313265", "0.6311932", "0.62797993", "0.6266244", "0.62572193", "0.62209386", "0.621513", "0.62061167", "0.61949414", "0.6193788", "0.619265", "0.6191609", "0.6189161", "0.6184653"...
0.5983134
50
Test that patching with new project_access returns 400 when more than SERVICE_ACCOUNT_LIMIT projects are trying to be registered.
def iS3f(x0hE, P4t4, ouvA, MkrZ, Zu2C, dfiQ, hrtD, zdiL, KXot): g2VD = MkrZ['jwt'] zOZf = Zu2C['service_account'] tdMw = GPtr['SERVICE_ACCOUNT_LIMIT'] + 1 frX_ = [] for YRbF in range(tdMw): frX_.append('valid-project-{}'.format(YRbF)) EcYo = {'project_access': frX_} assert len(ouvA.q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J1vH(x0hE, P4t4, ouvA, MkrZ, Zu2C, dfiQ, hrtD, zdiL, KXot):\n g2VD = MkrZ['jwt']\n zOZf = Zu2C['service_account']\n frX_ = []\n tdMw = GPtr['SERVICE_ACCOUNT_LIMIT']\n for YRbF in range(tdMw):\n bNKA = oPx1(id=YRbF, auth_id='auth_id_{}'.format(YRbF))\n WE7e = FIO_(id=YRbF)\n ...
[ "0.7600064", "0.7224572", "0.7149081", "0.7032543", "0.64267856", "0.64059275", "0.64038706", "0.64000475", "0.6392031", "0.63518256", "0.6151241", "0.6047579", "0.60405266", "0.6016301", "0.59901816", "0.59893554", "0.5984884", "0.5976061", "0.5974901", "0.5969786", "0.59693...
0.75034636
1
Test that patching with new project_access returns 204 when SERVICE_ACCOUNT_LIMIT number of projects is registered.
def J1vH(x0hE, P4t4, ouvA, MkrZ, Zu2C, dfiQ, hrtD, zdiL, KXot): g2VD = MkrZ['jwt'] zOZf = Zu2C['service_account'] frX_ = [] tdMw = GPtr['SERVICE_ACCOUNT_LIMIT'] for YRbF in range(tdMw): bNKA = oPx1(id=YRbF, auth_id='auth_id_{}'.format(YRbF)) WE7e = FIO_(id=YRbF) ouvA.add(bNKA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iS3f(x0hE, P4t4, ouvA, MkrZ, Zu2C, dfiQ, hrtD, zdiL, KXot):\n g2VD = MkrZ['jwt']\n zOZf = Zu2C['service_account']\n tdMw = GPtr['SERVICE_ACCOUNT_LIMIT'] + 1\n frX_ = []\n for YRbF in range(tdMw):\n frX_.append('valid-project-{}'.format(YRbF))\n EcYo = {'project_access': frX_}\n asse...
[ "0.72340447", "0.7004186", "0.69104755", "0.67806137", "0.6774562", "0.672031", "0.6548633", "0.6537763", "0.6453169", "0.6444767", "0.6413648", "0.6412", "0.638041", "0.6376856", "0.63733137", "0.6349866", "0.63355863", "0.6319303", "0.6289333", "0.62101835", "0.62101835", ...
0.7553361
0
Check if the user is currently logged in.
def T_ME(cuiw): if 'tid' in cuiw: return {'success': 1, 'message': '你处于登录状态.', 'teamname': cuiw['teamname'], 'is_zju_user': cuiw['is_zju_user']} else: return {'success': 0, 'message': '你并未处于登录状态.'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y8Sy(YKHO):\n return YKHO.auth.get_user_by_session() is not None", "def T_ME():\n return 'user' in cuiw", "def Y8Sy(YKHO):\n return YKHO.user is not None", "def T_ME(YKHO):\n return YKHO.__is_logged_in", "def Y8Sy():\n if c5ow.is_authenticated:\n return True\n return False", ...
[ "0.8480989", "0.84540546", "0.8453164", "0.83175427", "0.8290946", "0.8279225", "0.8260952", "0.8199744", "0.8165357", "0.81256783", "0.81213623", "0.7959727", "0.7908527", "0.78553283", "0.7711912", "0.76587296", "0.75593746", "0.75580204", "0.75412875", "0.7511623", "0.7418...
0.0
-1
Generate a plot with ligo.skymap
def kj9G(YKHO, **B2fa): from pesummary.gw.plots.plot import _ligo_skymap_plot_from_array return _ligo_skymap_plot_from_array(YKHO, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oKdJ(YKHO):\n import aplpy\n YKHO.gc = aplpy.FITSFigure(YKHO.image, figure=YKHO.f, dimensions=[0, 1], slices=[0, 0], subplot=[0.1, 0.9, 0.9, 0.9])\n if YKHO.grid:\n YKHO.gc.add_grid()\n YKHO.gc.grid.set_color(YKHO.color)\n YKHO.gc.grid.set_alpha(0.3)\n YKHO.gc.grid.set_line...
[ "0.70856637", "0.6800274", "0.6724281", "0.64922404", "0.6389971", "0.63442576", "0.6162564", "0.6145946", "0.6082385", "0.6033617", "0.60039073", "0.5978525", "0.5962616", "0.5946692", "0.5880587", "0.5846514", "0.57976735", "0.5786923", "0.5766727", "0.5759238", "0.57549024...
0.7669955
0
Helper function to load pretrained weights for ResNet101
def lhGW(YKHO, pmON): xA7f = ht2j.load(pmON) sjXb = list(xA7f) for H5ew in sjXb: if H5ew.startswith('layer'): or8S = int(H5ew[5]) hU8D = 'layers.' + str(or8S - 1) + H5ew[6:] xA7f[hU8D] = xA7f.pop(H5ew) YKHO.load_state_dict(xA7f, strict=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yYYo(Zxma, bKP2):\n print('Loading Model: ', bKP2)\n print('')\n Zxma.load_weights(bKP2).expect_partial()", "def vB93(YKHO):\n if isinstance(YKHO.pretrained, str):\n bo34 = UKxV()\n bo34.info(f'load model from: {YKHO.pretrained}')\n Nh79(YKHO, YKHO.pretrained, strict=False, l...
[ "0.77193826", "0.741576", "0.7229557", "0.71881914", "0.7172176", "0.7125903", "0.71044487", "0.7012189", "0.6997507", "0.6994857", "0.69792366", "0.6952357", "0.6945424", "0.6945424", "0.6945424", "0.6945424", "0.6939921", "0.6939088", "0.6898321", "0.6889005", "0.6858576", ...
0.0
-1
Update kwargs with defaults (if values are missing).
def NAhG(**B2fa): with open(dhAc, 'r') as eHNT: muwo = qQXR.load(eHNT) return sUFK(B2fa, muwo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pFg0(B2fa, jsiy, qVG7):\n for ZfUD in dhAc:\n if ZfUD not in B2fa:\n B2fa[ZfUD] = dhAc[ZfUD]", "def xHHo(YKHO, B2fa):\n for G1Hx, Ty9i in YKHO.defaults.iteritems():\n if G1Hx in B2fa:\n setattr(YKHO, G1Hx, B2fa[G1Hx])\n else:\n setattr(YKHO, G1Hx, T...
[ "0.7846912", "0.77511454", "0.7580293", "0.73287034", "0.71713865", "0.6868064", "0.6825242", "0.6636466", "0.6516328", "0.643669", "0.63700694", "0.6359759", "0.6352986", "0.6352986", "0.63527024", "0.63460755", "0.63174254", "0.6274431", "0.6265867", "0.6243301", "0.6218715...
0.7345412
3
Attaches extra dict to this one and removes the chapter Updates the dictionary on ``config`` with values from any file found under a listing specified by ``attach_key``.
def Sj7s(GPtr, GVok): if GVok in GPtr: P67a = list(GPtr[GVok]) for P67a in P67a: try: RFit, P67a = P67a.rsplit('/', 1) except ValueError: RFit = '.' XOxF(GPtr, RFit, P67a) del GPtr[GVok]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ScA2(YKHO, l_xx):\n YKHO._attachments = {G1Hx: jzdc for G1Hx, jzdc in YKHO._attachments.items() if jzdc.construct is not l_xx}", "def gNjn(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['addAttachments'] = BWXx", "def _sHY(YKHO):\n f1nk = YKHO.load_config()\n uBeC = f1nk.json\n if str(YKHO....
[ "0.5332383", "0.528338", "0.5113345", "0.5014146", "0.50062656", "0.4908496", "0.48860383", "0.4870658", "0.48376876", "0.48376876", "0.48173526", "0.4791279", "0.47867778", "0.47746235", "0.47510237", "0.47321075", "0.47227973", "0.4721189", "0.47049043", "0.47049043", "0.46...
0.76906234
0
Given two dictionaries, merge them together preserving either first or last entries.
def ICk8(wuNx, SVqP, Ey19='first'): if Ey19 == 'second': bDDA = wuNx QV_I = SVqP elif Ey19 == 'first': bDDA = SVqP QV_I = wuNx else: raise TypeError("Please use 'first' or 'second' for the priority!") RSKQ(bDDA, QV_I) return bDDA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roQF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def roQF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def roQF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(WKvO, LVAh):\n epBp = WKvO.cop...
[ "0.7648669", "0.7648669", "0.7648669", "0.75989664", "0.7538408", "0.75138146", "0.7493145", "0.7493145", "0.7493145", "0.7493145", "0.7493145", "0.7493145", "0.7493145", "0.7493145", "0.7366113", "0.733791", "0.7329595", "0.7240551", "0.7210743", "0.71515054", "0.71515054", ...
0.0
-1
Given any number of dicts, shallow copy and merge into a new dict, precedence goes to key value pairs in latter dicts. Note that this function only merges the first level. For deeper merging, use ``priority_merge_dicts``.
def roQF(*c974): Aofo = {} for cmPJ in c974: Aofo.update(cmPJ) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0j7(*qIxc):\n return Pusg(lambda Csk6, KCHu: Csk6.update(KCHu) or Csk6, qIxc)", "def W0j7(*qIxc):\n return Pusg(lambda Csk6, KCHu: Csk6.update(KCHu) or Csk6, qIxc)", "def RSKQ(*khaN):\n _jHa = {}\n\n def vGZu(JZXy, muwo):\n JZXy = jth9.deepcopy(JZXy)\n if isinstance(JZXy, dict) a...
[ "0.739812", "0.7397716", "0.71180415", "0.7116548", "0.7033899", "0.7018301", "0.69937295", "0.69520086", "0.69488025", "0.6938856", "0.6916222", "0.6916222", "0.6916222", "0.6910138", "0.69005233", "0.68728405", "0.6838886", "0.6832296", "0.6803907", "0.67986315", "0.6765381...
0.70488554
7
Given a dictionary of ``all_set_variables``, which comes out of the function ``determine_set_variables_in_choose_block``, gives a list of task/variable dependencies to resolve in order to figure out the variable.
def fV46(oXfT): qJ7f = [] for H5ew in oXfT: BWXx = oXfT[H5ew] jp9u = list(BWXx) for mUb6 in jp9u: XPKt = BWXx[mUb6] qJ7f.append((H5ew, mUb6)) qJ7f = EbXR(mUb6, oXfT, qJ7f) G9jH.debug(qJ7f) return qJ7f[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oAnP(oXfT):\n qJ7f = []\n for mUb6 in list(oXfT):\n qJ7f.append(mUb6)\n qJ7f = sH8N(mUb6, oXfT, qJ7f)\n G9jH.debug(qJ7f)\n return qJ7f[0]", "def e_vO(B373: list) -> dict:\n xpOE = {}\n for mWFP in B373:\n zVa7 = B373.get(mWFP)\n RIlO = zVa7.get_tasks_need...
[ "0.70380116", "0.59937835", "0.59806323", "0.59213656", "0.58643806", "0.57796067", "0.5760945", "0.57280356", "0.5700757", "0.5607655", "0.559186", "0.5563025", "0.5546844", "0.5483183", "0.54813606", "0.5477117", "0.5438602", "0.54104817", "0.5402217", "0.53980625", "0.5392...
0.7186792
0
Transforms a marked date string into a Date object
def dVK7(J_Es, RKYb, GPtr): if not J_Es[-1]: J_Es = J_Es[:-1] yLHq = J_Es[-1] bTKY = RKYb if isinstance(bTKY, Qrp8): return bTKY if '${' in str(bTKY): return bTKY if isinstance(yLHq, str) and yLHq.endswith('date'): while urA2 in bTKY and '${' not in bTKY: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FLL4(YKHO, _c1T):\n return SKtv.date_parser(_c1T)", "def BOAD(vIwR):\n NArs = vIwR.strip().split('-')\n lO87 = int(NArs[0])\n x0eS = int(NArs[1])\n CjKC = int(NArs[2])\n Csk6 = _c1T(lO87, x0eS, CjKC)\n return Csk6", "def BOAD(fqE0: str) -> _c1T:\n return qcWV.strptime(fqE0, '%m/%d/%...
[ "0.77877414", "0.74274474", "0.71954894", "0.7129465", "0.7109297", "0.7106369", "0.7089867", "0.7045306", "0.7035711", "0.70278436", "0.6999961", "0.6995144", "0.69662476", "0.6955136", "0.69494283", "0.6920425", "0.69195336", "0.6899717", "0.68740535", "0.6869458", "0.68693...
0.0
-1
Return boolean indicating if ability is valid for this item.
def WhCM(YKHO, x2cn): return isinstance(x2cn, Gk60) or isinstance(x2cn, iqfF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Euhu(YKHO) -> bool:\n return YKHO.get_allow_scope() is clvz.VALID", "def WhCM(YKHO, x2cn):\n return isinstance(x2cn, Gk60)", "def F4VP(YKHO) -> bool:\n return YKHO.effect == AZ9y", "def SGVO(YKHO, CBIr=None) -> bool:\n w0rQ = YKHO.permissions_class(commands=YKHO.permissions)\n iPqd = YKHO....
[ "0.69379896", "0.6838782", "0.6631491", "0.6587008", "0.65152687", "0.64983654", "0.64902663", "0.64675134", "0.6442592", "0.639651", "0.639651", "0.6386417", "0.63565856", "0.63565856", "0.6331449", "0.62886983", "0.6264069", "0.62634146", "0.62634146", "0.6235094", "0.62317...
0.6863364
1
Return boolean indicating if ability is valid for this item.
def WhCM(YKHO, x2cn): return isinstance(x2cn, Gk60)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Euhu(YKHO) -> bool:\n return YKHO.get_allow_scope() is clvz.VALID", "def WhCM(YKHO, x2cn):\n return isinstance(x2cn, Gk60) or isinstance(x2cn, iqfF)", "def F4VP(YKHO) -> bool:\n return YKHO.effect == AZ9y", "def SGVO(YKHO, CBIr=None) -> bool:\n w0rQ = YKHO.permissions_class(commands=YKHO.perm...
[ "0.69379294", "0.68637556", "0.66315377", "0.6586394", "0.6515965", "0.64991075", "0.6491279", "0.6468152", "0.644327", "0.6397093", "0.6397093", "0.63866085", "0.6357245", "0.6357245", "0.63314956", "0.6289691", "0.6264474", "0.62625605", "0.62625605", "0.6235811", "0.623264...
0.68391424
2
Returns the environment parameters for the Med, as a list of objects of type McaEnvironment. e = epics_med.get_environment()
def I0_M(YKHO): return YKHO.mcas[0].get_environment()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZUTZ(YKHO):\n GikI = []\n for mWFP, BWXx in sorted(YKHO.environment.items()):\n GikI.append({'name': mWFP, 'value': BWXx})\n return GikI", "def GikI(YKHO) -> dict:\n return YKHO._environment_info", "def Twf1(YKHO):\n Y7BR = YKHO._environments\n if Y7BR is None:\n Y7BR = YKHO...
[ "0.6691955", "0.6253179", "0.62297547", "0.621383", "0.6186302", "0.6112306", "0.6057784", "0.6001361", "0.59995896", "0.5983868", "0.5947893", "0.5946714", "0.590523", "0.58821017", "0.5838222", "0.57682663", "0.5749436", "0.5726287", "0.5651339", "0.5640881", "0.55987793", ...
0.64912164
1
Generate RPN proposals on a single image.
def v8pj(C3ST, Xn71): g4y1, uVsb = sXvj(Xn71, _Fei.TEST.SCALE, _Fei.TEST.MAX_SIZE) if _Fei.PYTORCH_VERSION_LESS_THAN_040: g4y1['data'] = [iQnE(ht2j.from_numpy(g4y1['data']), volatile=True)] g4y1['im_info'] = [iQnE(ht2j.from_numpy(g4y1['im_info']), volatile=True)] else: g4y1['data'] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nYPi(C3ST, wWMN, KssW=None, edlL=None, J604=None):\n zKuU = gZbH()\n OQe7 = len(wWMN)\n xioH = [[] for bGrB in range(OQe7)]\n eIsA = [[] for bGrB in range(OQe7)]\n G6kY = [[] for bGrB in range(OQe7)]\n if KssW is None:\n KssW = 0\n edlL = OQe7\n J604 = OQe7\n for YRbF ...
[ "0.6702737", "0.6605184", "0.61329687", "0.5941359", "0.58198535", "0.58040917", "0.58040917", "0.56906956", "0.5684387", "0.55896634", "0.5557119", "0.5529369", "0.5478772", "0.54617244", "0.5457183", "0.54148024", "0.54080623", "0.5393022", "0.5386786", "0.53625625", "0.535...
0.6639114
1
Called to set the target value for this actuator. This method should be implemented by extending classes.
def j6Nn(YKHO, WW07: PhyPropType) -> None: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pan_(YKHO, BWXx):\n YKHO._target = BWXx", "def pan_(YKHO, pan_):\n YKHO.__target = float(pan_)", "def pan_(YKHO, pan_):\n YKHO._target = pan_", "def pan_(YKHO, pan_):\n try:\n YKHO._target = pan_\n except Exception as e:\n raise tTpl", "def pan_(YKHO, pan_):\n try:\n ...
[ "0.8375637", "0.8078069", "0.7452824", "0.7444554", "0.7444554", "0.7360871", "0.7237422", "0.72044134", "0.69927293", "0.6791219", "0.6647102", "0.6642431", "0.6571848", "0.6506232", "0.6494482", "0.6487949", "0.63029665", "0.6289626", "0.62819254", "0.62599444", "0.62599444...
0.0
-1
Return True if the user can fully access all the Superset datasources, False otherwise.
def kEoc(YKHO) -> bool: return YKHO.can_access('all_datasource_access', 'all_datasource_access')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OErL(YKHO, pd8u: 'BaseDatasource') -> bool:\n try:\n YKHO.raise_for_access(datasource=pd8u)\n except O7rH:\n return False\n return True", "def kQvQ(YKHO) -> bool:\n return YKHO.can_access('all_database_access', 'all_database_access')", "def VKY1(YKHO, pd8u: 'BaseDatasource') -> bo...
[ "0.754857", "0.68777937", "0.678029", "0.6472102", "0.6421323", "0.63908386", "0.62657887", "0.6194552", "0.60810125", "0.60652757", "0.60185593", "0.5958507", "0.59559655", "0.5935644", "0.5890944", "0.5834613", "0.5813536", "0.58091366", "0.5789949", "0.5787861", "0.5781307...
0.8072191
0
Return True if the user can fully access all the Superset databases, False otherwise.
def kQvQ(YKHO) -> bool: return YKHO.can_access('all_database_access', 'all_database_access')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kEoc(YKHO) -> bool:\n return YKHO.can_access('all_datasource_access', 'all_datasource_access')", "def oSXI(YKHO, p9bx: 'Database') -> bool:\n return YKHO.can_access_all_datasources() or YKHO.can_access_all_databases() or YKHO.can_access('database_access', p9bx.perm)", "def em58(Emd4):\n return EOa...
[ "0.7127522", "0.6801516", "0.6472921", "0.64595133", "0.6379699", "0.62858707", "0.6234549", "0.62225014", "0.61743486", "0.6113101", "0.60836333", "0.6060671", "0.6038624", "0.6006852", "0.60026973", "0.5957692", "0.5903371", "0.5899912", "0.5892185", "0.5878465", "0.5858192...
0.7800256
0
Return True if the user can fully access the Superset database, False otherwise. Note for Druid the database is akin to the Druid cluster.
def oSXI(YKHO, p9bx: 'Database') -> bool: return YKHO.can_access_all_datasources() or YKHO.can_access_all_databases() or YKHO.can_access('database_access', p9bx.perm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OErL(YKHO, pd8u: 'BaseDatasource') -> bool:\n try:\n YKHO.raise_for_access(datasource=pd8u)\n except O7rH:\n return False\n return True", "def kQvQ(YKHO) -> bool:\n return YKHO.can_access('all_database_access', 'all_database_access')", "def em58(Emd4):\n return EOaO.CONFIGURATI...
[ "0.67803365", "0.66533995", "0.65089935", "0.64840806", "0.6474099", "0.64519167", "0.6427991", "0.64001834", "0.6311866", "0.6258315", "0.6247564", "0.61888003", "0.6170989", "0.6144467", "0.6127151", "0.6109898", "0.6109161", "0.6105587", "0.60978544", "0.6087498", "0.60786...
0.6578948
2
Return True if the user can fully access the schema associated with the Superset datasource, False otherwise. Note for Druid datasources the database and schema are akin to the Druid cluster and datasource name prefix respectively, i.e., [schema.]datasource.
def VKY1(YKHO, pd8u: 'BaseDatasource') -> bool: return YKHO.can_access_all_datasources() or YKHO.can_access_database(pd8u.database) or YKHO.can_access('schema_access', pd8u.schema_perm or '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OErL(YKHO, pd8u: 'BaseDatasource') -> bool:\n try:\n YKHO.raise_for_access(datasource=pd8u)\n except O7rH:\n return False\n return True", "def kEoc(YKHO) -> bool:\n return YKHO.can_access('all_datasource_access', 'all_datasource_access')", "def DbzL(YKHO, p9bx: 'Database', tyNF: '...
[ "0.7426715", "0.6727493", "0.6119311", "0.6092506", "0.6075435", "0.6071309", "0.6041809", "0.5969313", "0.59309316", "0.57987684", "0.57668036", "0.57593215", "0.5683751", "0.5675731", "0.563789", "0.5628603", "0.5606758", "0.56006444", "0.5561773", "0.5539196", "0.55335766"...
0.7923462
0
Return True if the user can fully access of the Superset datasource, False otherwise.
def OErL(YKHO, pd8u: 'BaseDatasource') -> bool: try: YKHO.raise_for_access(datasource=pd8u) except O7rH: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kEoc(YKHO) -> bool:\n return YKHO.can_access('all_datasource_access', 'all_datasource_access')", "def nCBc():\n c5ow = Er1K.get_doc('User', Er1K.session.user)\n Tf5Y = set([LmAn.role for LmAn in c5ow.roles])\n return bool(Tf5Y & {'Administrator', 'Instructor', 'Education Manager', 'System Manager...
[ "0.7064326", "0.69305134", "0.68433803", "0.6633627", "0.6588669", "0.6527395", "0.64799976", "0.64741313", "0.64602995", "0.64597905", "0.64554846", "0.64479315", "0.64479315", "0.64479315", "0.64371294", "0.6399081", "0.63689107", "0.6361086", "0.63587433", "0.6348128", "0....
0.8152948
0
Return True if the FAB permission/view is accessible to only Admin users, False otherwise. Note readonly operations on read only model views are allowed only for admins.
def x8Nc(YKHO, F2U7: PermissionView) -> bool: if F2U7.view_menu.name in YKHO.READ_ONLY_MODEL_VIEWS and F2U7.permission.name not in YKHO.READ_ONLY_PERMISSION: return True return F2U7.view_menu.name in YKHO.ADMIN_ONLY_VIEW_MENUS or F2U7.permission.name in YKHO.ADMIN_ONLY_PERMISSIONS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HsJG(YKHO):\n return c5ow.is_authenticated and c5ow.role == 'admin'", "def HsJG(YKHO):\n return c5ow.is_authenticated and c5ow.role == 'admin'", "def qHTF(YKHO, QePW, tTee):\n return QePW.user.group == 'admin'", "def HsJG(YKHO):\n if MC83.current_user.is_authenticated:\n return MC83.cu...
[ "0.793249", "0.793249", "0.7587915", "0.7581629", "0.7515263", "0.7485025", "0.7451487", "0.7410398", "0.7398674", "0.7398674", "0.7375834", "0.7340378", "0.73398924", "0.7312248", "0.7312248", "0.72944", "0.7275077", "0.7267237", "0.72607756", "0.7230003", "0.72218764", "0...
0.824212
0
Return True if the FAB permission/view is accessible to only Alpha users, False otherwise.
def YSms(YKHO, F2U7: PermissionView) -> bool: if F2U7.view_menu.name in YKHO.GAMMA_READ_ONLY_MODEL_VIEWS and F2U7.permission.name not in YKHO.READ_ONLY_PERMISSION: return True return F2U7.view_menu.name in YKHO.ALPHA_ONLY_VIEW_MENUS or F2U7.permission.name in YKHO.ALPHA_ONLY_PERMISSIONS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHTF(YKHO, QePW):\n return QePW.user.is_active", "def KKMP(YKHO, CBIr):\n if YKHO.applicant == CBIr:\n return True\n elif CBIr.has_perm('funding.view_all_applications'):\n return True\n elif CBIr.has_perm('funding.make_application_decisions'):\n return True\n return False"...
[ "0.7020945", "0.70204496", "0.6935658", "0.6935658", "0.6935658", "0.6874363", "0.6832895", "0.6832895", "0.68210196", "0.6783835", "0.67818725", "0.6693871", "0.6673857", "0.66715", "0.660288", "0.66028494", "0.6563406", "0.65598994", "0.6545394", "0.65099674", "0.65012175",...
0.7660051
0
Return True if the FAB permission/view is Admin user related, False otherwise.
def hQr0(YKHO, F2U7: PermissionView) -> bool: return not YKHO._is_user_defined_permission(F2U7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfMq(YKHO):\n if YKHO.user is None:\n return False\n return YKHO.user.has_permission('admin')", "def qHTF(YKHO, QePW, tTee):\n return QePW.user.group == 'admin'", "def _Kb1(YKHO):\n if not YKHO.current_user:\n return False\n else:\n return YKHO.current_user in ['1']", ...
[ "0.80792654", "0.80129945", "0.7897604", "0.7892068", "0.7878989", "0.78612614", "0.7850107", "0.78476316", "0.7814975", "0.7788487", "0.77873605", "0.77331907", "0.7720956", "0.76653683", "0.765883", "0.7649033", "0.7633768", "0.7633768", "0.7517591", "0.74985504", "0.747151...
0.72603244
40
Return True if the FAB permission/view is Alpha user related, False otherwise.
def ML8l(YKHO, F2U7: PermissionView) -> bool: return not (YKHO._is_user_defined_permission(F2U7) or YKHO._is_admin_only(F2U7)) or YKHO._is_accessible_to_all(F2U7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKMP(YKHO, CBIr):\n if YKHO.applicant == CBIr:\n return True\n elif CBIr.has_perm('funding.view_all_applications'):\n return True\n elif CBIr.has_perm('funding.make_application_decisions'):\n return True\n return False", "def YSms(YKHO, F2U7: PermissionView) -> bool:\n if ...
[ "0.7250079", "0.7202572", "0.71133286", "0.70378625", "0.70378625", "0.70378625", "0.6911132", "0.68236154", "0.6789261", "0.67628086", "0.6723416", "0.67172915", "0.66908056", "0.66796124", "0.6670232", "0.6653216", "0.6648423", "0.66314286", "0.66222113", "0.6621905", "0.66...
0.65054893
27
Return True if the FAB permission/view is Gamma user related, False otherwise.
def PN6u(YKHO, F2U7: PermissionView) -> bool: return not (YKHO._is_user_defined_permission(F2U7) or YKHO._is_admin_only(F2U7) or YKHO._is_alpha_only(F2U7)) or YKHO._is_accessible_to_all(F2U7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKMP(YKHO, CBIr):\n if YKHO.applicant == CBIr:\n return True\n elif CBIr.has_perm('funding.view_all_applications'):\n return True\n elif CBIr.has_perm('funding.make_application_decisions'):\n return True\n return False", "def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.user ==...
[ "0.73850936", "0.7017729", "0.70060164", "0.6946101", "0.69190836", "0.6908332", "0.68950284", "0.68950284", "0.68950284", "0.6850305", "0.6845019", "0.6838445", "0.6833316", "0.68326306", "0.68184793", "0.68070275", "0.680568", "0.67765504", "0.6760965", "0.67078334", "0.669...
0.0
-1
Return True if the FAB permission/view is SQL Lab related, False otherwise.
def Lavn(YKHO, F2U7: PermissionView) -> bool: return (F2U7.permission.name, F2U7.view_menu.name) in YKHO.SQLLAB_PERMISSION_VIEWS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKMP(YKHO, CBIr):\n if YKHO.applicant == CBIr:\n return True\n elif CBIr.has_perm('funding.view_all_applications'):\n return True\n elif CBIr.has_perm('funding.make_application_decisions'):\n return True\n return False", "def Iw6c(YKHO):\n LFqd = YKHO.get_object()\n Ljy...
[ "0.63694215", "0.6233632", "0.6190304", "0.6145746", "0.61407423", "0.6129451", "0.6125046", "0.61048037", "0.6049055", "0.60343724", "0.6010733", "0.5951961", "0.5949348", "0.5949348", "0.5949348", "0.5948285", "0.59263694", "0.591418", "0.59132046", "0.58828306", "0.5880587...
0.73524785
0
Returns True if the current user is an owner of the resource, False otherwise.
def b9HF(YKHO, Eorv: Model) -> bool: try: YKHO.raise_for_ownership(Eorv) except O7rH: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZBFz(YKHO):\n return YKHO._tag == 'user_is_owner'", "def b9HF(YKHO):\n return YKHO._is_owner", "def EC7F(YKHO):\n CBIr = YKHO.request.user\n object = YKHO.get_object()\n if object.owned_by(CBIr):\n return True\n else:\n return False", "def fAV7(wyLN, QePW):\n return wyL...
[ "0.83094203", "0.8131969", "0.81195354", "0.77969265", "0.7721983", "0.75817156", "0.7489782", "0.74565655", "0.741493", "0.73108214", "0.72358215", "0.7169734", "0.7097732", "0.7068887", "0.7025883", "0.6940199", "0.6930108", "0.69084525", "0.6819757", "0.67989254", "0.67891...
0.85620767
0
Returns True if the current user is an admin user, False otherwise.
def _Kb1(YKHO) -> bool: return wk5E.config['AUTH_ROLE_ADMIN'] in [LmAn.name for LmAn in YKHO.get_user_roles()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Kb1(YKHO):\n if not YKHO.current_user:\n return False\n else:\n return YKHO.current_user in ['1']", "def ECYw(YKHO):\n if 'is_admin' in YKHO._properties and YKHO.is_admin == 'YES':\n return True\n return False", "def cFuy():\n return Hy7s.environ.get('USER_IS_ADMIN', '0...
[ "0.8944559", "0.8891833", "0.86725795", "0.85782367", "0.85728854", "0.8552579", "0.8506058", "0.8431097", "0.8420358", "0.84198123", "0.8352308", "0.83439034", "0.83247584", "0.8270186", "0.82437897", "0.8222653", "0.8220135", "0.8216427", "0.81702197", "0.81646407", "0.8148...
0.8247335
14
Tests that recipes are retrieved successfully
def uKbK(YKHO): GfSp(user=YKHO.user) GfSp(user=YKHO.user, title='Snack') AHLC = LC16.objects.all().order_by('-id') ZMzz = azWq(AHLC, many=True) Ylbp = YKHO.client.get(nyJA) YKHO.assertEqual(ZMzz.data, Ylbp.data) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jc7k(YKHO):\n pass", "def DP01(YKHO):\n J1b4 = awPy.objects.create(chef=YKHO.user, name='Recipe 1', draft=True)\n CYjz = awPy.objects.create(chef=YKHO.user, name='Recipe 2', draft=False)\n bpa0 = awPy.objects.create(chef=YKHO.user, name='Recipe 3', draft=False)\n jI4j = dl5x.objects.create(che...
[ "0.84092283", "0.8360212", "0.8319794", "0.82765", "0.82751995", "0.8159193", "0.808755", "0.803258", "0.78113395", "0.77841604", "0.7646488", "0.7593036", "0.7478468", "0.72876394", "0.7269571", "0.715844", "0.71182704", "0.7104246", "0.70809424", "0.70243734", "0.70171934",...
0.79924244
8
Tests that only recipes of request.user qre getting retrieved
def HHH4(YKHO): uDCI = egNl().objects.create_user(email='waldek@wp.pl', password='correctpass') GTTc = GfSp(user=YKHO.user) GfSp(user=uDCI) YSCM = LC16.objects.filter(user=YKHO.user) ZMzz = azWq(YSCM, many=True) Ylbp = YKHO.client.get(nyJA) YKHO.assertEqual(Ylbp.data, ZMzz.data) YKHO.ass...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DdhA(YKHO):\n uDCI = egNl().objects.create_user('test@gmail.com', 'password3456')\n VHaa(YKHO.user)\n VHaa(uDCI)\n Ylbp = YKHO.client.get(nyJA)\n AHLC = LC16.objects.filter(user=YKHO.user)\n ZMzz = azWq(AHLC, many=True)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.asser...
[ "0.7961557", "0.79004866", "0.7792306", "0.7683372", "0.7618022", "0.70412415", "0.68859047", "0.6772726", "0.6735031", "0.66558", "0.6642236", "0.65935516", "0.65092427", "0.646942", "0.64547586", "0.6443937", "0.6430576", "0.63972926", "0.6379298", "0.6372795", "0.63636184"...
0.7800118
2
Testing creating Recipe with Ingredients
def f1hb(YKHO): KZtG = Vuks(user=YKHO.user, name='Paprika') ciPx = Vuks(user=YKHO.user, name='Salad') pB3N = {'title': 'Green Salad', 'time_minutes': 34, 'price': 4.66, 'ingredients': [KZtG.id, ciPx.id]} Ylbp = YKHO.client.post(nyJA, pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f1hb(YKHO):\n KZtG = jRmL(user=YKHO.user, name='Prawns')\n ciPx = jRmL(user=YKHO.user, name='Garlic')\n pB3N = {'title': 'Avocado lime cheesecake', 'time_minutes': 20, 'price': 500.0, 'currency': 'NGN', 'ingredients': [KZtG.id, ciPx.id]}\n YKHO.evaluate_recipe(KZtG, ciPx, pB3N, 'ingredient')", "d...
[ "0.81665295", "0.77382255", "0.75992715", "0.7583975", "0.7534787", "0.7438362", "0.7343557", "0.71762973", "0.70610416", "0.7056762", "0.6963039", "0.6961535", "0.6918407", "0.69143647", "0.68841475", "0.6877848", "0.68658704", "0.68567806", "0.68466324", "0.6846524", "0.678...
0.7598707
3
Testing an partial update with patch
def qnQC(YKHO): YSCM = GfSp(user=YKHO.user) YSCM.tags.add(mSJM(user=YKHO.user)) MGzK = mSJM(user=YKHO.user, name='Lourd') pB3N = {'title': 'Russian Borsch', 'time_minutes': 70, 'tags': [MGzK.id]} bzZf = iny8(YSCM.id) YKHO.client.patch(bzZf, pB3N) YSCM.refresh_from_db() dJ1p = YSCM.tags.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xL7q(YKHO):\n pass", "def Ni9D(YKHO):\n XeOP = IuKf.create(id=22)\n nPrm = {'name': 'Ação para Melhorar', 'institution': 'Vamos Ajudar'}\n YKHO.assertNotEqual(XeOP.name, nPrm['name'])\n YKHO.assertNotEqual(XeOP.institution, nPrm['institution'])\n geh0 = YKHO.client.patch(gxEw('action-detail...
[ "0.83799756", "0.8349655", "0.8327224", "0.82605416", "0.81651", "0.8009878", "0.78602445", "0.78432095", "0.76951593", "0.76365453", "0.761269", "0.7609901", "0.7597972", "0.7597232", "0.7588334", "0.7576012", "0.7565752", "0.7559041", "0.7552352", "0.7552352", "0.7552352", ...
0.7598125
12
Tests uploading an image to Recipe API
def cdch(YKHO): bD7m = LDEV(YKHO.recipe.id) with gbPf.NamedTemporaryFile(suffix='.jpg') as QbTr: LNo8 = hnIv.new('RGB', (10, 10)) LNo8.save(QbTr, format='JPEG') QbTr.seek(0) Ylbp = YKHO.client.post(bD7m, {'image': QbTr}, format='multipart') YKHO.recipe.refresh_from_db() Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cdch(YKHO):\n bD7m = xx5i(YKHO.recipe.id)\n with gbPf.NamedTemporaryFile(suffix='.jpg') as QbTr:\n VXjJ = hnIv.new('RGB', (10, 10))\n VXjJ.save(QbTr, format='JPEG')\n QbTr.seek(0)\n Ylbp = YKHO.client.post(bD7m, {'image': QbTr}, format='multipart')\n YKHO.recipe.refresh_fro...
[ "0.8960221", "0.8780842", "0.86200607", "0.85989183", "0.8050519", "0.794178", "0.7941261", "0.79309344", "0.7886174", "0.7871664", "0.7793937", "0.7616329", "0.7544675", "0.7457986", "0.7388273", "0.7323036", "0.73138124", "0.7199325", "0.7179207", "0.714652", "0.71454644", ...
0.8763793
2
Testing that only the recipes with ingredients are getting retrieved
def q0eJ(YKHO): GTTc = GfSp(user=YKHO.user, title='Chicken tikka') eowF = GfSp(user=YKHO.user, title='Italian pasta') gGwe = GfSp(user=YKHO.user, title='Vegan dessert') KZtG = Vuks(user=YKHO.user, name='Chicken') ciPx = Vuks(user=YKHO.user, name='Pasta') GTTc.ingredients.add(KZtG) eowF.ingre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XL_F(YKHO):\n pass", "def PqZM(YKHO):\n pass", "def uq0I(YKHO):\n GTTc = VHaa(YKHO.user, title='Waxy box')\n eowF = VHaa(YKHO.user, title='Waxy noodle beans')\n KZtG = wm3X(YKHO.user, name='box')\n ciPx = wm3X(YKHO.user, name='Wet noodle')\n GTTc.ingredients.add(KZtG)\n eowF.ingredi...
[ "0.84933215", "0.8399508", "0.8197711", "0.8137604", "0.8104396", "0.8090506", "0.7975766", "0.7960442", "0.78366363", "0.7774138", "0.77110815", "0.76930386", "0.766406", "0.76621395", "0.7656884", "0.76470417", "0.76383847", "0.7616604", "0.7606258", "0.75943995", "0.759147...
0.81495637
3
Interpolate two RGB colors in LAB space parameterized by y. Downweight by alpha.
def mmLN(a1PO, Ngpo, dg7v, Cwt5): P_ZP, Ngpo = (Ngpo[3], Ngpo[:3]) SCEP, dg7v = (dg7v[3], dg7v[:3]) Nq1b = oyIN.array([Ngpo, dg7v]).astype(oyIN.uint8).reshape((2, 1, 3)) Ngpo, dg7v = XC5k.cvtColor(Nq1b, XC5k.COLOR_RGB2LAB).reshape(2, 3) aPd6 = qAjl(a1PO, Ngpo[0], dg7v[0]) k0lF = qAjl(a1PO, Ngpo[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I4ao(LFlW, _tIi, Cwt5):\n return LFlW + Cwt5 * (_tIi - LFlW)", "def SYq4(a1PO, Ngpo, dg7v, Cwt5):\n A3Vt = qAjl(a1PO, Ngpo[0], dg7v[0])\n yvY1 = qAjl(a1PO, Ngpo[1], dg7v[1])\n tjUW = qAjl(a1PO, Ngpo[2], dg7v[2])\n jzdc = qAjl(a1PO, Ngpo[3], dg7v[3]) * Cwt5\n return oyIN.vstack([A3Vt, yvY1, ...
[ "0.63499", "0.62552875", "0.60455686", "0.5940634", "0.5923471", "0.5856904", "0.5828723", "0.57418954", "0.571511", "0.56760997", "0.56162614", "0.55969036", "0.5589764", "0.5570903", "0.55444676", "0.5511401", "0.5428877", "0.54101646", "0.54097325", "0.5407598", "0.5401135...
0.63293034
1
Create an Activation. The annotations are loaded first. The variables are loaded second, and placed in front of the annotations in the chain of name resolutions. Values come before annotations.
def FIMM(YKHO, XgyP: Optional[Mapping[str, Annotation]]=None, B5hb: Optional[str]=None, vars: Optional[Context]=None, _AKB: Optional['Activation']=None) -> None: bo34.info(f'Activation(annotations={XgyP!r}, package={B5hb!r}, vars={vars!r}, parent={_AKB})') YKHO.identifiers: eaQb = eaQb(parent=_AKB.identifiers i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H1VV(YKHO, XgyP: Optional[Mapping[str, Annotation]]=None, vars: Optional[Context]=None) -> 'Activation':\n BdN0 = MroH(annotations=XgyP, vars=vars, parent=YKHO, package=YKHO.package)\n return BdN0", "def xbeG(YKHO):\n if not YKHO.activation_function is None:\n if isinstance(YKHO.activation_fu...
[ "0.6828798", "0.6044985", "0.6028036", "0.59205467", "0.577082", "0.5762592", "0.5617316", "0.553562", "0.5487198", "0.54838264", "0.5464347", "0.5369998", "0.53544027", "0.53536314", "0.53164524", "0.53157145", "0.52482265", "0.5226074", "0.5220225", "0.5199337", "0.5185547"...
0.67328596
1
Updates model in database.
async def update(YKHO, UzPC: SQLConnectionInterface, C3ST: Model, J5Zp: Model=None): await YKHO.validate(UzPC, C3ST, GuOB.UPDATE) await UzPC.execute(await YKHO._update_stmt(), *await YKHO._update_values(C3ST))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AaFj(YKHO, NCls):\n NCls.session.commit()", "def oNH0(YKHO):\n pass", "def EkDY(YKHO):\n pass", "def EkDY(YKHO):\n pass", "def QdZT(YKHO):\n NCls.session.commit()", "def QdZT(YKHO):\n NCls.session.commit()", "def r7tU(YKHO):\n YKHO._model.update()\n YKHO.__refresh()", "def...
[ "0.85065174", "0.84193087", "0.8289453", "0.79455596", "0.7497917", "0.7497917", "0.7098775", "0.70952255", "0.7007544", "0.6988825", "0.687854", "0.6851497", "0.68328714", "0.6791609", "0.6783832", "0.678222", "0.67559946", "0.67503345", "0.67075163", "0.6680017", "0.6629060...
0.68743825
11
Returns itself as an iterator.
def Vs4Q(YKHO) -> jd6F: for G1Hx in YKHO.raw.keys(): yield G1Hx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n return YKHO.next()", "def Vs4Q(YKHO):\n return YKHO._next()", "def Vs4Q(YKHO):\n return YKHO._next()", "def Vs4Q(YKHO):\n return YKHO._next()", "def Vs4Q(YKHO) -> bDy6[Kt_s]:\n return YKHO", "def Vs4Q(YKHO):\n return iter(YKHO.__iter())", "def Vs4Q(YKHO):\n return...
[ "0.8487528", "0.8432813", "0.8432813", "0.8432813", "0.832554", "0.8318865", "0.8255044", "0.82042617", "0.8193425", "0.8152423", "0.81453", "0.81453", "0.81453", "0.81453", "0.81453", "0.81453", "0.81453", "0.81453", "0.81453", "0.81453", "0.81453", "0.81453", "0.81453",...
0.0
-1
Load parser from YAML
def OXMy(Emd4, KQJl: str, muwo: Optional[bool]=False, pmON: Optional[str]=None, sjXb: Optional[str]=None) -> 'Parser': IznC = GkAb(KQJl) if muwo: IznC = GkAb(xAKo).parents[0] / 'defaults' / IznC elif pmON is not None: IznC = GkAb(pmON) / IznC try: bGrB = IznC.is_file() wi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OXMy(Emd4, KQJl: str):\n return Emd4.from_dict(SfPr.yaml_loader(KQJl, load_single=True))", "def tyeH(l5Ny: str, xAU6: Dict[str, str]) -> object:\n raise Pt2x('Yaml is not installed on the system') from tTpl", "def YEZ9(Emd4, JZXy):\n try:\n import bulletml.bulletyaml\n import yaml\n ...
[ "0.71022826", "0.67978793", "0.67887676", "0.67714804", "0.6701634", "0.6686314", "0.6667934", "0.66112095", "0.6608108", "0.6585419", "0.6531039", "0.65202165", "0.6480292", "0.6422193", "0.6416445", "0.6399816", "0.6394038", "0.6389907", "0.6378236", "0.634576", "0.6337218"...
0.6948227
1
Convert Parser content to YAML string
def q24I(YKHO): return eJb6.dump(YKHO.raw, Dumper=eJb6.SafeDumper)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eJb6(YKHO):\n return str(YKHO.data)", "def eJb6(YKHO):\n raise NotImplementedError", "def OSuz(Emd4, nPrm: Mapping) -> str:\n Emd4._check_yaml()\n KCHu = eJb6.safe_dump(nPrm, default_flow_style=False)\n KCHu = '---\\n' + KCHu\n return KCHu", "def ppew(YKHO):\n with open('.travis.yml'...
[ "0.6390108", "0.62199044", "0.6157494", "0.61364645", "0.61144435", "0.6088283", "0.60768807", "0.59372264", "0.5918758", "0.5907062", "0.5877", "0.584156", "0.58363956", "0.57981336", "0.5741454", "0.57359016", "0.57358706", "0.57057935", "0.5693654", "0.5662944", "0.5634910...
0.6088201
6
Compute the average precision, given the recall and precision curves.
def H6dO(AOzf, rhd_): YuCV = oyIN.concatenate(([0.0], AOzf, [1.0])) BsPE = oyIN.concatenate(([0.0], rhd_, [0.0])) for YRbF in range(BsPE.size - 1, 0, -1): BsPE[YRbF - 1] = oyIN.maximum(BsPE[YRbF - 1], BsPE[YRbF]) YRbF = oyIN.where(YuCV[1:] != YuCV[:-1])[0] VqfF = oyIN.sum((YuCV[YRbF + 1] - Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rY83(rhd_, AOzf):\n rhd_ = oyIN.concatenate([[0.0], rhd_, [0.0]])\n for YRbF in range(len(rhd_) - 1, 0, -1):\n rhd_[YRbF - 1] = oyIN.maximum(rhd_[YRbF - 1], rhd_[YRbF])\n AOzf = oyIN.concatenate([[0.0], AOzf, [1.0]])\n b3vN = oyIN.where(AOzf[1:] != AOzf[:-1])[0]\n ILBk = (AOzf[b3vN + 1] -...
[ "0.83699304", "0.8134952", "0.7751859", "0.772469", "0.7717999", "0.7692292", "0.7690848", "0.76255214", "0.7557946", "0.7536621", "0.7475254", "0.7273635", "0.72493404", "0.72285324", "0.72105163", "0.720167", "0.718262", "0.716053", "0.7129075", "0.7086805", "0.7063225", ...
0.76486695
8
Acquire a webdriver instane. There is a limit of how many webdriver instances you can keep open at a time. You must call quit() to cleanup existing one to obtain new ones.
def o6a_(xAU6: Optional['ChromeOptions']=None, vYBr: Optional[float]=None, zlwC: bool=True, bxMd: Optional[str]=None, AysJ: Optional[SoupMaker]=None, **B2fa) -> ngu_: izn9(vYBr) cH4u = Hy7s.getenv('debug_mode') if not xAU6: xAU6 = nXHX() if not FeHM(): zlwC = True try: rQow =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jt7j(YKHO, *qIxc, **B2fa):\n ynfG = YKHO.builtin.get_library_instance('SeleniumLibrary')\n for bGrB in range(12):\n try:\n return ynfG.create_webdriver(*qIxc, **B2fa)\n except vt9U:\n ITS7.sleep(5)\n raise Exception('Could not connect to remote webdriver after 1 min...
[ "0.68042904", "0.66420096", "0.653511", "0.63426596", "0.61694753", "0.6070703", "0.6064298", "0.6057939", "0.6040474", "0.60255724", "0.5972408", "0.586495", "0.5850373", "0.5818601", "0.5800776", "0.580066", "0.57886356", "0.5767748", "0.5747756", "0.5745905", "0.5681187", ...
0.0
-1
Converts a unix timestamp into a formatted string.
def wozj(a1PO, FMLJ='%Y-%m-%d %H:%M:%S.000'): return qcWV.fromtimestamp(a1PO).strftime(FMLJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CyLA(BWXx):\n if BWXx is None:\n return 0\n return int(GRk0.timegm(BWXx.timetuple()))", "def bpfo(Emd4, E3oo):\n return FdZ9(E3oo).strftime('%Y-%m-%d %H:%M:%S')", "def dd_C(E3oo: float) -> str:\n JRYC = qcWV.utcfromtimestamp(E3oo)\n return JRYC.strftime('%Y/%m/%d %H:%M:%S UTC%z')", ...
[ "0.7431905", "0.72766477", "0.7264056", "0.7216555", "0.71867615", "0.71168596", "0.7113392", "0.70809925", "0.70173144", "0.69931626", "0.69734275", "0.68786246", "0.687289", "0.6841591", "0.6819474", "0.68190956", "0.68081063", "0.6758456", "0.6747471", "0.67172986", "0.669...
0.715085
6
Given an angle theta and a 3D vector rot_vector, this routine computes the rotation matrix corresponding to rotating theta radians about rot_vector.
def SM8M(q7In, lcRq): Lfvo = lcRq[0] lmly = lcRq[1] s6Om = lcRq[2] sSN_ = oyIN.cos(q7In) EuFP = oyIN.sin(q7In) A3Vt = oyIN.array([[sSN_ + Lfvo ** 2 * (1 - sSN_), Lfvo * lmly * (1 - sSN_) - s6Om * EuFP, Lfvo * s6Om * (1 - sSN_) + lmly * EuFP], [lmly * Lfvo * (1 - sSN_) + s6Om * EuFP, sSN_ + lmly ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kzfP(Ty9i, q7In):\n Ty9i = oyIN.array(Ty9i)\n if Ty9i.shape != (3,) or abs(Ty9i.dot(Ty9i) - 1.0) > 1e-08 or (not oyIN.all(oyIN.isreal(Ty9i))):\n raise ValueError('Rotation vector v should be a 3D real unit vector.')\n return oyIN.cos(q7In / 2) * VoC8() - 1j * oyIN.sin(q7In / 2) * (Ty9i[0] * HMG...
[ "0.7448736", "0.72418207", "0.7162559", "0.71333", "0.71200484", "0.70005774", "0.6949066", "0.6919469", "0.68940914", "0.6867915", "0.68587196", "0.68523854", "0.6848423", "0.6844073", "0.6842051", "0.68300885", "0.6800857", "0.6799792", "0.6791354", "0.67856026", "0.6782298...
0.7902144
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, zFEK): 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.80891633", "0.80891633", "0.8055254", "0.7983334", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", ...
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
Input n>=6, Returns a array of primes, 2 <= p < n
def LT6d(exwG): KwQv = oyIN.ones(exwG // 3 + (exwG % 6 == 2), dtype=oyIN.bool) for YRbF in range(1, int(exwG ** 0.5) // 3 + 1): if KwQv[YRbF]: G1Hx = 3 * YRbF + 1 | 1 KwQv[G1Hx * G1Hx // 3::2 * G1Hx] = False KwQv[G1Hx * (G1Hx - 2 * (YRbF & 1) + 4) // 3::2 * G1Hx] = Fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPz2(exwG: int) -> [int]:\n return [6 * exwG - 1, 6 * exwG + 1]", "def DwOa(exwG):\n return list(uVDW(exwG))", "def Z2Il(xGUU) -> qw7D:\n XP5J = qw7D('i', list(rPed(xGUU)))\n return XP5J", "def kAOJ(exwG):\n uED7 = []\n for YRbF in range(2, exwG):\n if T1qg(YRbF):\n uE...
[ "0.7880622", "0.7843994", "0.77937675", "0.7649926", "0.76264685", "0.7519405", "0.7500455", "0.7485748", "0.7467109", "0.7457202", "0.7428247", "0.7409004", "0.73962754", "0.73793733", "0.73658156", "0.7363839", "0.7355883", "0.7350821", "0.73296374", "0.73018754", "0.729061...
0.72275823
28
Internal method to add a layer from top to bottom. The last layer added is considered as the substrate.
def rqRm(YKHO, gEmA, U0ux=False, H5ew=None): if H5ew is None: H5ew = YKHO._key bo34.debug('StSdAddLayer(key)') v9dy = YKHO._lib.StSdGetNbLayers(H5ew) bo34.debug('StSdAddLayer(key, %i)', v9dy) if not YKHO._lib.StSdAddLayer(H5ew, v9dy): YKHO._raise_error('Cannot add layer') for YRb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wFqj(YKHO, *qIxc, **B2fa):\n YKHO.insert_layer(len(YKHO._layers), *qIxc, **B2fa)", "def dwyS(YKHO, gEmA):\n if YKHO.root_layer is None:\n KCHu = zNig()\n YKHO.root_layer = FNYZ(rbZs(0, 0, KCHu[0], KCHu[1]))\n YKHO.root_layer.add_layer(gEmA)", "def LpNS(YKHO, gEmA: 'Layer'):\n if g...
[ "0.70978683", "0.6817616", "0.67674094", "0.6710097", "0.65542537", "0.65159607", "0.6477676", "0.6476947", "0.647685", "0.6389094", "0.6350186", "0.6221331", "0.6218596", "0.6167109", "0.60872436", "0.6053603", "0.59683657", "0.5900165", "0.5852659", "0.5843441", "0.5802745"...
0.5870731
18
Queries the custom_assets table using the filter query and returns a list of `CustomAsset`.
def xWkS(uJaw: CustomAssetsFilterQuery) -> list[i4G7]: xDcj, krED = uJaw.prepare() xDcj = 'SELECT B.identifier, B.name, A.type as custom_asset_type, A.notes from custom_assets `A` JOIN assets `B` ON A.identifier = B.identifier ' + xDcj with NhrB().conn.read_ctx() as N1p7: N1p7.execute(xDcj, krED) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MSex(YKHO, uJaw: CustomAssetsFilterQuery) -> tuple[list[i4G7], int, int]:\n VECZ = YKHO._get_custom_assets(filter_query=uJaw)\n with NhrB().conn.read_ctx() as N1p7:\n xDcj, krED = uJaw.prepare(with_pagination=False)\n xDcj = 'SELECT COUNT(A.type) AS custom_asset_type from custom_assets AS A...
[ "0.6852846", "0.6409766", "0.63295543", "0.6081401", "0.6037802", "0.60246986", "0.58518445", "0.57140595", "0.5626971", "0.55721575", "0.5529977", "0.5493917", "0.5477715", "0.5393658", "0.5384111", "0.5360617", "0.52952313", "0.528451", "0.5247733", "0.5232182", "0.52260333...
0.8740742
0
Returns the area of a triangle, given the lengths of [Documentation String] its three sides.
def DGwt(zPAF, BsXG, t_of): oHLt = (zPAF + BsXG + t_of) / 2.0 return epAf.sqrt(oHLt * (oHLt - zPAF) * (oHLt - BsXG) * (oHLt - t_of))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r9On(GQra, gz9R, uC0l):\n H6Lc = (GQra + gz9R + uC0l) / 2\n f0tD = (H6Lc * (H6Lc - GQra) * (H6Lc - gz9R) * (H6Lc - uC0l)) ** 0.5\n return f0tD", "def cGOR(zPAF: number, BsXG: number, t_of: number) -> FGW3:\n KCHu = (zPAF + BsXG + t_of) / 2\n f0tD = PZyS(KCHu * (KCHu - zPAF) * (KCHu - BsXG) * (...
[ "0.7887451", "0.77204263", "0.7363862", "0.7297173", "0.72712195", "0.7231321", "0.7177031", "0.7100257", "0.70238197", "0.6974786", "0.69656867", "0.6943016", "0.693197", "0.68431", "0.68349993", "0.6824296", "0.68076867", "0.6796437", "0.67483777", "0.6671022", "0.6603135",...
0.70933914
8
Get name of queryset model.
def ZGE9(YKHO): return YKHO.get_queryset().model._meta.model_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZGE9(YKHO):\n return YKHO.get_queryset().model._meta.model_name", "def mWFP(YKHO) -> str:\n return YKHO.model.__name__", "def ZGE9(YKHO) -> str:\n return YKHO._model_name", "def mWFP(YKHO) -> str:\n return YKHO._model.name", "def TbE8(YKHO) -> str:\n raise NotImplementedError", "def ZG...
[ "0.87962216", "0.78190523", "0.7695397", "0.75772166", "0.740174", "0.71361315", "0.7105807", "0.70705026", "0.6799893", "0.67296046", "0.6721088", "0.66905177", "0.6684375", "0.6629032", "0.6607246", "0.6580978", "0.6527137", "0.6527137", "0.64649224", "0.6450155", "0.642508...
0.87284875
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, J_Ng): 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.8456082", "0.83912885", "0.81436425", "0.81406975", "0.8131807", "0.8093013", "0.80912536", "0.80912536", "0.80912536", "0.8084505", "0.8084505", "0.8075543", "0.8075543", "0.8065009" ]
0.0
-1
Get location of a client. This function provides output only when visualRF is configured in Aruba Central.
def sFhD(YKHO, w2B8, Xkmt: str, vgXP=0, qoqK=100, rYO3='FEET'): pmON = wmkG(pzVU.CLIENT_LOCATION['GET_CLIENT_LOC'], Xkmt) NArs = {'offset': vgXP, 'limit': qoqK, 'units': rYO3} _hkX = w2B8.command(apiMethod='GET', apiPath=pmON, apiParams=NArs) return _hkX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rci7(YKHO):\n YKHO.manager.refresh_client()\n return YKHO.content['location']", "def hbd3(YKHO):\n return YKHO.request({'path': '/' + S7kj + '/location'})", "def Y45c(YKHO):\n return YKHO.enu_2_local()", "def hbd3(YKHO):\n return None", "def hbd3(YKHO):\n return YKHO.location", "def...
[ "0.64253956", "0.62234074", "0.60571146", "0.59956497", "0.5945751", "0.5893038", "0.58810675", "0.58309054", "0.5815592", "0.5797352", "0.5797352", "0.5797352", "0.5797352", "0.5797352", "0.5797352", "0.5797352", "0.5797352", "0.5797352", "0.5797352", "0.5797352", "0.5797352...
0.6834944
0
Test removing config entry.
async def test_unload_entry(bGrB, ajET: HomeAssistant) -> None: fJtJ = {'device': '/dev/USB0', 'model': 'LUGCUH50', 'device_number': '12345'} pZL6 = Jaru(domain='landisgyr_heat_meter', title='LUGCUH50', entry_id='987654321', data=fJtJ) pZL6.add_to_hass(ajET) assert await ajET.config_entries.async_setup(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E8vr(YKHO):\n N5z6 = YKHO.start_server('hello world', 200)\n try:\n YKHO.setup_dynamic()\n cLAE = 'test.yml'\n YKHO.write_dyn_config(cLAE, YKHO.http_cfg('myid', 'http://localhost:{}'.format(N5z6.server_port)))\n YKHO.wait_until(lambda: YKHO.output_has(lines=2))\n YKHO.a...
[ "0.71836895", "0.7137924", "0.7059716", "0.6969981", "0.6909608", "0.6823363", "0.6729874", "0.66853184", "0.66648275", "0.6650623", "0.66200984", "0.6596751", "0.65920293", "0.658432", "0.6571398", "0.6551854", "0.65233874", "0.6505362", "0.64727974", "0.6442029", "0.6433071...
0.6877691
5
Request to create a tag.
def ZSrl(): H5ew = XN37.get('Tag.1.Key') BWXx = XN37.get('Tag.1.Value') PcW4 = XN37.get('ResourceId.1') if PcW4 in wk5E.config['RESOURCE_TYPE_MAP']: Qjbs = wk5E.config['RESOURCE_TYPE_MAP'][PcW4] else: UAju.invalid_request(str(PcW4) + ' not found in configuration') qIxc = {'comman...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO, mWFP, TZ9E):\n N9fr = uRlK.urlencode({'name': mWFP, 'tag': TZ9E})\n return YKHO._create('/tag?json_hash=%s' % N9fr, 'tag')", "def eLpg(YKHO, NArs={}, **xAU6):\n return YKHO.client.post('/tags', NArs, **xAU6)", "def uzS3(YKHO, Ch5G, TZ9E):\n pass", "def uzS3(YKHO, Ch5G, TZ9E):\n ...
[ "0.7569088", "0.72632796", "0.6960752", "0.6890476", "0.6777973", "0.6524953", "0.64519566", "0.64480335", "0.64422315", "0.6416453", "0.64068717", "0.6357027", "0.633017", "0.6267046", "0.6129565", "0.61197954", "0.6116329", "0.60988665", "0.6094159", "0.60619885", "0.603669...
0.8123238
0
Load all images from image path as X_train
def fPcm(YKHO, QMAG): Lcqa = [] for YRbF in hLXR(QMAG): VXjJ = hnIv.open(YRbF) VXjJ = oyIN.asarray(VXjJ) if VXjJ.shape == (128, 128, 3): Lcqa.append(VXjJ) return oyIN.asarray(Lcqa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(pmON):\n yRJt = z8Af(pmON, '.jpg')\n Crrw = [int(XVnG.split('/')[-1][0]) for XVnG in yRJt]\n bySB = []\n for f4BB in yRJt:\n Xn71 = oyIN.array(hnIv.open(f4BB).convert('L'))\n Xn71 = Hmm2(Xn71)\n bySB.append(carQ(Xn71))\n return (bySB, Crrw)", "def UlWi(pmON, zNig, NXp...
[ "0.74151284", "0.7194552", "0.7096649", "0.7082104", "0.70129186", "0.69666934", "0.6952079", "0.6949277", "0.69401526", "0.6924428", "0.6903488", "0.6902917", "0.6899793", "0.6884447", "0.68781334", "0.6865187", "0.68634284", "0.68587255", "0.6832114", "0.682724", "0.6804072...
0.8045259
0
Constructor for the InsuranceDataFireInsurance class
def FIMM(YKHO, wwIM=None, biac=None, Lht5=None, id=None, Bsso=None, NFia=None, wkrJ=None, wkyJ=None, IlOX=None, Arml=None, MOc9=None, FDvM=None, Qdsh=None, JeQE=None, PcS8=None, iaTi=None, C48A=None, kjYW=None, a70H=None, Miy4=None, Gx6K=None, txcc=None): YKHO.insurance_policy_type_velue = wwIM YKHO.fire_insura...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, qBqe=None, U3Fm=True):\n YKHO.businessArrangement = None\n ' Additional provider contract number.\\n Type `str`. '\n YKHO.claimResponse = None\n ' Adjudication results.\\n Type `FHIRReference` (represented as `dict` in JSON). '\n YKHO.coverage = None\n ' Insurance inf...
[ "0.6185588", "0.6016089", "0.60109955", "0.60083526", "0.59310967", "0.59209204", "0.590706", "0.5905073", "0.58719486", "0.58163077", "0.5809647", "0.58051693", "0.57853025", "0.5781253", "0.57782036", "0.5749224", "0.5735569", "0.5734961", "0.57288504", "0.57085115", "0.570...
0.61751944
1
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None wwIM = cmPJ.get('insurancePolicyTypeVelue') biac = G2S4.models.fire_insurance_policy_extend_view.FireInsurancePolicyExtendView.from_dictionary(cmPJ.get('fireInsurancePolicyExtendView')) if cmPJ.get('fireInsurancePolicyExtendView') else None Lht5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.83181584", "0.8168118", "0.8168118", "0.8118749", "0.8089047", "0.79787344", "0.7949278", "0.79231393", "0.7898951", "0.78923255", "0.788838", "0.7882321", "0.7882212", "0.7876749", "0.78585315", "0.7836853", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407",...
0.0
-1
getReward, returns the fitness at the current time
def nFcm(YKHO): wkbQ = 0.0 Ayfi = YKHO.env.getDistance() iBLD = YKHO.env.getSpeed() q7In = YKHO.env.getOrientation() UgBz = (YKHO.maxTime - YKHO.t) / YKHO.maxTime Cwt5 = 1.0 / ((1 + Ayfi) * (1 + plSJ(q7In)) * (iBLD + 1)) if Ayfi < 0.5 * YKHO.env.init_distance: if Ayfi < YKHO.env.vici...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xyVK(YKHO):\n sSN_ = YKHO.cost_function()\n NZ1z = YKHO.get_constraints_violation()\n vOGg = -YKHO.get_augmented_cost(sSN_, NZ1z)\n '\\n\\t\\t#old idea that is probably bad and not necessary:\\n\\t\\tif(self.step_count == 0):\\n\\t\\t\\t# old_aug_cost doesn\\'t exist in first step... ACTUALLY IT DO...
[ "0.7781569", "0.7604521", "0.7438432", "0.73656917", "0.73326075", "0.72372353", "0.72190464", "0.7197928", "0.7192249", "0.7165035", "0.7124165", "0.71196544", "0.71171963", "0.70994604", "0.70446175", "0.7016198", "0.70125496", "0.7001389", "0.69614494", "0.69585294", "0.69...
0.834375
0
Generate a random string of fixed length
def TJC9(FVpJ=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def e7Tf(u54L):\n return ''.join((tuKI...
[ "0.8678726", "0.85725635", "0.8546959", "0.852769", "0.85201234", "0.84315515", "0.84307504", "0.84138894", "0.84099346", "0.8388408", "0.8344307", "0.8342706", "0.83389807", "0.8332531", "0.83217525", "0.829651", "0.829245", "0.8281027", "0.8280717", "0.8279932", "0.8263646"...
0.7760928
98
Finds all prefixes in S
def tX49(o4sw): Aofo = set() for KCHu in o4sw: for YRbF in range(len(KCHu) + 1): Aofo.add(KCHu[:YRbF]) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tX49(KCHu):\n if KCHu:\n yield from tX49(KCHu[:-1])\n yield KCHu", "def Tmdx(KCHu):\n if KCHu:\n yield from tX49(KCHu)\n yield from Tmdx(KCHu[1:])", "def tX49(KCHu):\n if KCHu:\n yield from tX49(KCHu[:-1])\n yield KCHu", "def MlQ6(YKHO, y0cW: str) -> x1i...
[ "0.7125093", "0.69621664", "0.6904888", "0.65936416", "0.6545742", "0.65098804", "0.6449697", "0.64192736", "0.6399225", "0.6363056", "0.6340989", "0.63407046", "0.6311025", "0.6303771", "0.62922245", "0.62854314", "0.6268463", "0.62483203", "0.6211187", "0.61958575", "0.6130...
0.7698582
0
Given mean and stddev, sample an action, clip and return We assume Gaussian distribution of probability of selecting an action given a state
def XeOP(YKHO, qIxc): JBMS, z2bo = qIxc pImw = KCQP.distributions.Normal(loc=JBMS, scale=z2bo) XeOP = pImw.sample(1) XeOP = nMvt.clip(XeOP, YKHO.env.action_space.low[0], YKHO.env.action_space.high[0]) return XeOP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mvm2(YKHO, QTBn):\n pImw = YKHO.action_distribution(QTBn)\n rI4x = pImw.rsample()\n qN67 = ht2j.tanh(rI4x)\n XeOP = qN67 * YKHO.action_scale + YKHO.action_bias\n bWEj = pImw.log_prob(rI4x)\n Vjik = bWEj - ht2j.log(YKHO.action_scale * (1 - qN67.pow(2)) + Wx8m)\n Vjik = Vjik.sum(1, keepdim=T...
[ "0.69611585", "0.68375933", "0.68294376", "0.6751806", "0.65920633", "0.65787476", "0.6564911", "0.6540131", "0.650654", "0.6474562", "0.64572936", "0.6454303", "0.6290158", "0.6282513", "0.6245786", "0.6183869", "0.61581403", "0.6143466", "0.61434454", "0.61175233", "0.60719...
0.7227181
0
Load the trained weights useful if we are interested in using the network right away
def SUd8(YKHO, GoF1, TgTX=None): YKHO.actor_model.load_weights(GoF1) if TgTX is not None: YKHO.value_model.load_weights(TgTX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H_1o(YKHO):\n YKHO.npz_weights = oyIN.load(YKHO._weight_file)\n YKHO._load_byte_embedding()\n YKHO._load_cnn_weights()\n YKHO._load_highway()\n YKHO._load_projection()", "def SUd8(YKHO):\n try:\n print('loading weights from {}'.format(YKHO.cfg.class_model_dir))\n YKHO.load_sta...
[ "0.8149269", "0.8046892", "0.7966396", "0.7762461", "0.77416885", "0.7731906", "0.77233225", "0.76293164", "0.7567901", "0.75481004", "0.7544414", "0.7544414", "0.75363386", "0.7476935", "0.7473997", "0.7447324", "0.73636097", "0.73597133", "0.73484033", "0.7320584", "0.73113...
0.67272556
74