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
>>> is_even(2) True >>> is_even(3) False
def ubP8(exwG): return exwG % 2 == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ubP8(exwG):\n return", "def ubP8(WKvO):\n return WKvO % 2 == 0", "def ubP8(WKvO):\n return WKvO % 2 == 0", "def ubP8(mLGw):\n return mLGw % 2 == 0", "def ubP8(mLGw):\n return mLGw % 2 == 0", "def ubP8(FGW3):\n return FGW3 % 2 == 0", "def ubP8(FGW3):\n return FGW3 % 2 == 0", "...
[ "0.9025382", "0.89957976", "0.89957976", "0.8937879", "0.8937879", "0.8929946", "0.89225084", "0.89225084", "0.89225084", "0.89225084", "0.89120245", "0.8886668", "0.8880036", "0.8866495", "0.8863448", "0.88562113", "0.8855122", "0.88397753", "0.8804089", "0.87427795", "0.871...
0.88872534
11
>>> is_odd(2) False >>> is_odd(3) True
def kYZq(exwG): if exwG % 2 == 0: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kYZq(FGW3):\n return not ubP8(FGW3)", "def kYZq(exwG):\n if ubP8(exwG) == True:\n return False\n else:\n return True", "def kYZq(FGW3):\n return FGW3 % 2 != 0", "def XHAY(WKvO):\n return WKvO % 2 != 0", "def kYZq(WKvO):\n if WKvO % 2 != 0:\n return True\n retur...
[ "0.90092146", "0.8908979", "0.8839715", "0.879654", "0.87827384", "0.87765986", "0.8748893", "0.8725049", "0.8546654", "0.83838516", "0.83733183", "0.837249", "0.8369755", "0.834153", "0.8330795", "0.8300163", "0.82983595", "0.82903636", "0.8253263", "0.8252226", "0.82188314"...
0.8607058
8
>>> c2f(0) 32 >>> c2f(100) 212 >>> c2f(40) 40 >>> c2f(12) 53 >>> c2f(18) 64 >>> c2f(48) 54
def yndQ(a1PO): eHNT = a1PO * 1.8 + 32 eHNT = int(eHNT) return eHNT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qz9R(exwG):\n return 1.39 * (exwG / 13.36) ** 0.52", "def DnL6(Nq1b):\n return 9.0 / 5 * Nq1b + 32", "def anCN(eHNT: float) -> float:\n return (eHNT - 32) / 1.8", "def FQj4(a1PO):\n return round((a1PO - 32) * 5 / 9)", "def d74x(Z9rn):\n return 9 / 5.0 * Z9rn + 32", "def FQj4(a1PO):\n ...
[ "0.80092275", "0.7965929", "0.76287794", "0.75133586", "0.74734133", "0.744582", "0.74247426", "0.7420951", "0.74179", "0.7374475", "0.7322879", "0.73210186", "0.7228934", "0.72008955", "0.7136326", "0.71236384", "0.7122684", "0.7070279", "0.70678073", "0.70678073", "0.703258...
0.6904058
23
Add a resource used by the activity. This method tries to be as permissive as possible. It accepts a string which might be a synapse ID or a URL, a synapse entity, a UsedEntity or UsedURL dictionary or a list containing any combination of these. In addition, named parameters can be used to specify the fields of either ...
def XR14(YKHO, pan_=None, Zx2Y=None, wbiH=None, bD7m=None, mWFP=None): def PsO_(QpfX=None, NArs={}): YXxD = 'Error in call to Activity.used()' if QpfX == 'list': R6jN = ('targetVersion', 'url', 'name') BTDC = 'list of used resources' elif QpfX == 'dict': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AFf3(dgzu=None, A_Eo=None):\n pass", "def H2v5(OaeV, LCiw, JBZA, mWFP, COo8):\n nPrm = OaeV.params\n if JBZA is None:\n nPrm.pop('description')\n OaeV.obj.add(nPrm)", "def H2v5(YKHO, YPaw, Ffmk, SGPK=tuple(), TZ9E=1, XyVJ=True):\n assert isinstance(YPaw, ahVQ)\n if XyVJ:\n j...
[ "0.54655474", "0.5355656", "0.5255765", "0.5228909", "0.51538634", "0.514522", "0.5110462", "0.50360435", "0.50011665", "0.4956948", "0.4941175", "0.49268797", "0.49078038", "0.48977098", "0.48838365", "0.48605025", "0.48554718", "0.48476034", "0.48285106", "0.47992942", "0.4...
0.75018823
0
Test GET request to categories
def _562(YKHO): geh0 = YKHO.client().get('/categories') nPrm = qQXR.loads(geh0.data) YKHO.assertEqual(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def afSB(YKHO):\n Ylbp = YKHO.client().get('/category/1', headers={'x-access-token': YKHO.access_token}, data=YKHO.categories)\n YKHO.assertEqual(Ylbp.status_code, 200)", "def LCTi(YKHO):\n geh0 = YKHO.tester.get('/birds/category')\n YKHO.assertEqual(geh0.status_code, 200)", "def vM7W(YKHO):\n g...
[ "0.84243524", "0.8389765", "0.8322162", "0.80407023", "0.80234", "0.79510957", "0.7904075", "0.7896275", "0.78879845", "0.7772629", "0.775099", "0.77465814", "0.7719623", "0.7658913", "0.7589301", "0.7545449", "0.7521616", "0.74983627", "0.74683964", "0.74464804", "0.7443453"...
0.8393224
1
Test POST request to categories
def vKyQ(YKHO): geh0 = YKHO.client().post('/categories') YKHO.assertEqual(geh0.status_code, 405)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AWhd(YKHO):\n bD7m = gxEw('categoriestree:category-list')\n geh0 = YKHO.client.post(bD7m, YKHO.example_post_request_data, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)", "def AWhd(YKHO):\n Ylbp = YKHO.client().post('/api_v1/categories', json=YKHO.category1)\n YKHO....
[ "0.84828043", "0.8448666", "0.8128709", "0.7772184", "0.775503", "0.77492255", "0.77144086", "0.77125746", "0.7649296", "0.7622874", "0.75747526", "0.7515857", "0.7407874", "0.7363987", "0.73414177", "0.73297596", "0.73187834", "0.73162985", "0.72938144", "0.7292738", "0.7287...
0.81714594
2
Test GET request to questions
def CqSV(YKHO): geh0 = YKHO.client().get('/questions') nPrm = qQXR.loads(geh0.data) YKHO.assertEqual(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W31w(YKHO):\n Ylbp = YKHO.tester.get('/api/v1/question/rt6575766')\n YKHO.assertEqual(Ylbp.status_code, 404)", "def o7qd(YKHO):\n geh0 = YKHO.client().get('/questions')\n nPrm = qQXR.loads(geh0.data)\n YKHO.assertEqual(geh0.status_code, 200)", "def pMxF(YKHO):\n pass", "def PZ9M(YKHO):\...
[ "0.83225703", "0.7936382", "0.7935431", "0.7751861", "0.7666174", "0.7585621", "0.7435887", "0.7426815", "0.74232787", "0.73234373", "0.72915775", "0.726727", "0.72656703", "0.7259151", "0.7208504", "0.72036755", "0.7202671", "0.7160659", "0.7129453", "0.7119012", "0.7112685"...
0.74479276
6
Test GET request to get questions
def o7qd(YKHO): geh0 = YKHO.client().get('/questions') nPrm = qQXR.loads(geh0.data) YKHO.assertEqual(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W31w(YKHO):\n Ylbp = YKHO.tester.get('/api/v1/question/rt6575766')\n YKHO.assertEqual(Ylbp.status_code, 404)", "def pMxF(YKHO):\n pass", "def s3Tw(YKHO):\n Ylbp = YKHO.tester.get('/api/v1/question')\n YKHO.assertEqual(Ylbp.status_code, 200)", "def PZ9M(YKHO):\n pB3N = YKHO.get_req('/api...
[ "0.84158224", "0.7944567", "0.7908111", "0.7774249", "0.7703822", "0.76373273", "0.7635257", "0.75816506", "0.752824", "0.74884546", "0.74792415", "0.7423842", "0.7391329", "0.7377631", "0.7313215", "0.7255798", "0.72345793", "0.72191024", "0.7215109", "0.7206049", "0.7190265...
0.81636924
1
Returns a path relative to the cache directory.
def t_yv(YKHO, gLDJ): return Hy7s.path.join(YKHO._cache_directory, gLDJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I7Lz(YKHO) -> GkAb:\n return GkAb(YKHO.directory)", "def eR0P(YKHO):\n return YKHO.get_cache_directory() + '/' + YKHO.get_local_filename()", "def BXLT(YKHO):\n return YKHO.path('cache')", "def fEVd(YKHO) -> GkAb:\n return YKHO._get_cache_dir() / YKHO._create_file_name()", "def gLDJ(YKHO):\n...
[ "0.8483748", "0.8478732", "0.84009963", "0.8337846", "0.8241236", "0.8241236", "0.81120634", "0.80677676", "0.8054927", "0.796248", "0.78426343", "0.7807748", "0.77675176", "0.7762098", "0.7748727", "0.77481824", "0.77325", "0.773236", "0.77305657", "0.7723318", "0.76795954",...
0.8833724
0
Check whether or not the path is contained in this cache.
def sjXf(YKHO, gLDJ): if gLDJ in YKHO._cached_objects: return True return Hy7s.path.exists(YKHO.relative_path(gLDJ))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, gLDJ):\n return YKHO.contains(gLDJ)", "def FDsg(YKHO, XNWQ):\n gLDJ = YKHO._get_cache_path(XNWQ)\n return Hy7s.path.exists(gLDJ)", "def w13W(pmON):\n return pmON in oL3N", "def obYU(YKHO, pmON):\n TJVp = '%s/%s' % (YKHO.cache_folder, pmON.strip('/'))\n if YKHO.blob_service.ex...
[ "0.8362918", "0.8272508", "0.8046405", "0.7915133", "0.78373307", "0.77059937", "0.7617976", "0.74388105", "0.74334854", "0.74204165", "0.7363239", "0.731402", "0.7278448", "0.7258539", "0.7257371", "0.72493964", "0.7249096", "0.7245577", "0.72358704", "0.7216407", "0.718225"...
0.8179133
2
Renders a form and returns its HTML output. This function wraps the template logic in a function easy to use in a Django view.
def GKm6(L03z, B0gN=None, QpfX=None): from crispy_forms.templatetags.crispy_forms_tags import CrispyFormNode if B0gN is not None: Q6kx = CrispyFormNode('form', 'helper') else: Q6kx = CrispyFormNode('form', None) uE57 = cFqH(QpfX) uE57.update({'form': L03z, 'helper': B0gN}) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L03z():\n return TvZl('form_submit.html')", "def Slsy(YKHO, L03z):\n raise NotImplementedError", "def yi_d():\n return TvZl('form.html')", "def _1tc(YKHO, L03z=None, **B2fa):\n L03z = L03z or YKHO.get_form()\n QpfX = YKHO.get_context_data(L03z, **B2fa)\n return YKHO.render_to_response(Q...
[ "0.7440043", "0.74288094", "0.74115145", "0.73688686", "0.72223175", "0.72223175", "0.71676844", "0.71484303", "0.7086893", "0.70795107", "0.70763683", "0.7028511", "0.6972485", "0.6972485", "0.6885717", "0.68264353", "0.6798799", "0.67063195", "0.67059356", "0.6673423", "0.6...
0.6217581
72
Take the notinplace intersection of two lists, similar to sets but preserving order. Does not check unicity of list1.
def zVQj(Kt9y, I_KI): return [ZfUD for ZfUD in Kt9y if ZfUD in I_KI]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nZsg(Kt9y, I_KI):\n return list(set(Kt9y) & set(I_KI))", "def DA2a(YKHO, I_KI, LpaZ=True):\n if LpaZ:\n return list(set(YKHO).intersection(set(I_KI)))\n else:\n ycBG = YKHO.copy()\n return list(set(ycBG).intersection(set(I_KI)))", "def zVQj(Kt9y, I_KI):\n return sorted(list...
[ "0.81379676", "0.80005085", "0.7704648", "0.762458", "0.7586819", "0.75466824", "0.7527276", "0.75250256", "0.7499308", "0.74713016", "0.7441174", "0.7432979", "0.7387561", "0.7379019", "0.73784786", "0.7378396", "0.7372453", "0.7371811", "0.7340948", "0.7337619", "0.7321081"...
0.70976186
41
Take the notinplace difference of two lists (left right), similar to sets but preserving order.
def p1XJ(LFlW, _tIi): aK5O = set(_tIi) by6d = [] for ZfUD in LFlW: if ZfUD not in aK5O: aK5O.add(ZfUD) by6d.append(ZfUD) return by6d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cTxB(YKHO, I_KI, LpaZ=True):\n if LpaZ:\n return list(set(YKHO).difference(set(I_KI)))\n else:\n ycBG = YKHO.copy()\n return list(set(ycBG).difference(set(I_KI)))", "def idas(jzdc, Fg_i):\n return list(set(jzdc) - set(Fg_i))", "def by6d(jzdc, Fg_i):\n return [geyT for geyT ...
[ "0.79956686", "0.77058786", "0.76573145", "0.76305306", "0.7582556", "0.7530672", "0.7494802", "0.7460115", "0.74469787", "0.7442076", "0.73958564", "0.73702204", "0.7359213", "0.7353922", "0.73467404", "0.73418534", "0.73134965", "0.7307203", "0.7296896", "0.7270134", "0.726...
0.76413894
3
Check if there are any empty square in the board
def m1ww(iBIi): for Fyji in iBIi: if Fyji == 0: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def trEd(iBIi):\n for rdlD in iBIi:\n for VmPb in rdlD:\n if VmPb is KAvf:\n return False\n return True", "def vBWh(iBIi):\n if sum([rdlD.count(None) for rdlD in iBIi]) != 0:\n return False\n return True", "def AJk_(iBIi):\n for YRbF in range(3):\n ...
[ "0.8383008", "0.83520293", "0.8296228", "0.8278119", "0.8278119", "0.82127154", "0.8206758", "0.81564367", "0.81262857", "0.8125989", "0.81113124", "0.80747306", "0.8048537", "0.8000305", "0.79798865", "0.79703575", "0.7964989", "0.7962832", "0.7924409", "0.79019344", "0.7894...
0.0
-1
Gets the workspaces queryset
def nw2K(wvEv, eOtH): UOVU = eOtH.contents.split() if len(UOVU) not in (1, 3): raise F_Ra('Invalid syntax for {0}. Incorrect number of arguments.'.format(UOVU[0])) if 3 == len(UOVU): KbOb = UOVU[-1] else: KbOb = None return jd4M(as_var=KbOb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xMlm(YKHO):\n nPrm = YKHO.message(qTHV.GET_WORKSPACES, '')\n return qQXR.loads(nPrm, object_hook=DS_v)", "def qWwU(YKHO) -> HvgL:\n return YKHO._workspaces", "def qWwU(YKHO, s3yI=False):\n return YKHO.filter(fn=GMHI('is_workspace'), i3=s3yI)", "def qWwU(YKHO):\n qWwU = []\n\n def XT8A(h...
[ "0.7648376", "0.7559792", "0.75365514", "0.7287506", "0.72731215", "0.7164775", "0.66485965", "0.64307797", "0.6417562", "0.6361741", "0.6327434", "0.63071454", "0.62959504", "0.6257648", "0.6153328", "0.61431813", "0.6129012", "0.6112404", "0.6108728", "0.6044199", "0.602658...
0.0
-1
Get form field type.
def NFbv(wvEv, eOtH): UOVU = eOtH.contents.split() if 4 == len(UOVU): if 'as' != UOVU[-2]: raise F_Ra('Invalid syntax for {0}. Incorrect number of arguments.'.format(UOVU[0])) KbOb = UOVU[-1] else: raise F_Ra('Invalid syntax for {0}. See docs for valid syntax.'.format(UOV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sVYR(YKHO):\n return YKHO._form_field_type", "def sdgl(YKHO):\n return YKHO.field_type", "def vF49(Jyyj):\n return Jyyj.field.widget.__class__.__name__", "def vF49(Jyyj):\n if hasattr(Jyyj, 'field') and Jyyj.field:\n return Jyyj.field.__class__.__name__.lower()\n return ''", "def ...
[ "0.8896918", "0.857439", "0.79633564", "0.77931845", "0.766015", "0.75398177", "0.75398177", "0.7536744", "0.7400586", "0.7304547", "0.72615165", "0.7196134", "0.71861243", "0.7086734", "0.7086734", "0.7086734", "0.7074608", "0.7067854", "0.7067854", "0.70199275", "0.70199275...
0.0
-1
Returns true if lists collides (have same entries) >>> collides([1,2,3,4],[3,4,5,6,7]) True >>> collides([1,2,3,4],[5,6,7]) False
def fMy9(Y3Lj, seZS): return any((ZfUD in seZS for ZfUD in Y3Lj))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kJAZ(YKHO, _yei, _xzh=0, bqZh=0):\n mE2N = YKHO.mario.coord_list(xdisp=_xzh, ydisp=bqZh)\n for ZfUD in _yei:\n xpKR = ZfUD.coord_list()\n b65I = [WKvO for WKvO in mE2N if WKvO in xpKR]\n if b65I != []:\n if _yei == YKHO.enemies or _yei == YKHO.coins:\n retur...
[ "0.7473461", "0.7122493", "0.7064105", "0.6988118", "0.69480544", "0.69371325", "0.69112235", "0.6849548", "0.68174803", "0.6809347", "0.6777767", "0.6702139", "0.670039", "0.66864717", "0.6680492", "0.66632676", "0.65903646", "0.65592265", "0.6542041", "0.6540067", "0.649821...
0.80392456
0
Sets up all the relevant properties for a particular GA problem.
def FIMM(YKHO, zNig, yfnk, _Bz_, plDD, us0X, gFZK, MLNS, G1Hx, Kwmb, i9El, XWDh, jQJk, bAls, yaew, dsvh, ghmW, xDcj): YKHO.question = bAls YKHO.mapping = {'Roulette': 'rouletteSel', 'Linear Rank': 'rankSel', 'Tournament': 'tournamentSel', 'Probability': 'basicMutate', 'Inversion': 'inversionMutate', 'Insertion'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pQ1M(YKHO):\n J2ov._configure(YKHO)\n YKHO.elasticPrestep = YKHO.inventory.elasticPrestep\n YKHO.formulation = YKHO.inventory.formulation\n YKHO.progressMonitor = YKHO.inventory.progressMonitor\n YKHO.checkpointTimer = YKHO.inventory.checkpointTimer\n return", "def eCGt(YKHO):\n YKHO.set...
[ "0.6510394", "0.63156885", "0.62964195", "0.6239812", "0.6161812", "0.61129713", "0.60110015", "0.59314656", "0.59212583", "0.58856106", "0.58662546", "0.57844913", "0.5765291", "0.57231575", "0.569676", "0.5667408", "0.56659806", "0.56476516", "0.5641786", "0.56249017", "0.5...
0.0
-1
Sets an internal variable false to kill the thread.
def gwV4(YKHO, tO9_): YKHO.running = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yvBH(YKHO):\n YKHO._run_thread = False", "def VHFu(YKHO):\n YKHO._stop = True", "def yvBH(YKHO):\n YKHO.running = False", "def yvBH(YKHO):\n YKHO.stop = True", "def XnNM(YKHO) -> None:\n YKHO._kill = True", "def zlQh(YKHO):\n YKHO.stopStateThreadFlag = True", "def JCyR(YKHO):\n ...
[ "0.7313155", "0.7261881", "0.7211344", "0.71669596", "0.7096742", "0.7054295", "0.6937508", "0.6907974", "0.69072247", "0.69035345", "0.69035345", "0.6898896", "0.6888954", "0.6886556", "0.6863288", "0.6859108", "0.68328184", "0.6832701", "0.6827864", "0.6806611", "0.6806611"...
0.0
-1
Sets up all the panels for the selection interface.
def FIMM(YKHO, _AKB): super(XSNG, YKHO).__init__(_AKB, lnPd.ID_ANY, size=(1200, 100), style=lnPd.RAISED_BORDER) YKHO.SetBackgroundColour('Light Grey') YKHO.cd = Hy7s.getcwd() YKHO.invalid = set(vIwR.printable) - set(vIwR.lowercase) - set([' ']) YKHO.query = '' WYo3 = lnPd.BoxSizer(lnPd.HORIZONTA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUI0(YKHO):\n dX7V = lnPd.Notebook(YKHO.panel)\n YKHO.T_Panel = x6c6(dX7V, YKHO, 1)\n YKHO.E_Panel = x6c6(dX7V, YKHO, 2)\n YKHO.StatusPanel = lM1h(dX7V, YKHO, 'Status Information')\n YKHO.FitInformation = lM1h(dX7V, YKHO, 'Fitting Information')\n YKHO.ErrorPanel = lM1h(dX7V, YKHO, 'Error Info...
[ "0.6835693", "0.67461246", "0.6572161", "0.65583414", "0.6454095", "0.63544315", "0.6320641", "0.631319", "0.6220259", "0.61676204", "0.61251426", "0.60962677", "0.606541", "0.60643476", "0.6012548", "0.59980273", "0.59857565", "0.5982785", "0.59789044", "0.5962622", "0.59595...
0.0
-1
Redraws the screen if the screen is resized.
def _KAk(YKHO, tvqc): YKHO.reInitBuffer = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gUuY(YKHO):\n if YKHO.window:\n DbyF = YKHO.get_allocation()\n mawX = x7Ls(width=DbyF.width, height=DbyF.height)\n YKHO.window.invalidate_rect(mawX, True)\n YKHO.window.process_updates(True)", "def xoyg(YKHO):\n if YKHO.window:\n YKHO.window.get_container().invalidate...
[ "0.750156", "0.74146205", "0.7345878", "0.72834766", "0.718886", "0.7175844", "0.71591896", "0.71591896", "0.71544105", "0.71496284", "0.71496284", "0.71496284", "0.71429724", "0.7085239", "0.7083694", "0.7056846", "0.7020618", "0.70043033", "0.693924", "0.69291", "0.6894763"...
0.0
-1
Returns a list of Fractions which represent the denominators in the sequence. For example, denominator[1] = 2, so the first iteration is 1 + 1/2 denominator[2] = 2.5, so the second iteration is 1 + 1/2.5
def ksRv(yNvv): UUZ1 = {} UUZ1[1] = kteF(2) for YRbF in range(2, yNvv + 1): UUZ1[YRbF] = 2 + 1 / UUZ1[YRbF - 1] return UUZ1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NfOa(M6pt, UUZ1):\n assert len(M6pt) == len(UUZ1), 'Attempted to divide list elements from lists of differing lengths'\n return [YRbF / r845 for YRbF, r845 in zip(M6pt, RvKu(UUZ1))]", "def J7l1(aWuw):\n for eHNT in aWuw:\n yield eHNT.denominator", "def H_nO(lypQ, ciZM):\n assert ciZM > 0...
[ "0.7429029", "0.7309782", "0.6743063", "0.67154413", "0.6658812", "0.64785856", "0.64164615", "0.63824826", "0.6332361", "0.62925994", "0.62700385", "0.61872274", "0.6153332", "0.6088163", "0.6079197", "0.60510445", "0.6041804", "0.60222304", "0.6008035", "0.5990502", "0.5951...
0.5788978
41
Push values of `xs` apart from each other by `shift`, along `axis`.
def d9YE(fUYa, jDK_, DkWr=0.001): p4RE = oyIN.argsort(fUYa, axis=jDK_) IuXB = oyIN.argsort(p4RE, axis=jDK_) return fUYa + IuXB * DkWr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0fw(ezWE, DkWr, jDK_):\n if jDK_ == 1:\n if DkWr == -1:\n zFiD = ezWE[:, 0, :].copy()\n ezWE[:, :-1, :] = ezWE[:, 1:, :]\n ezWE[:, -1, :] = zFiD\n elif DkWr == 1:\n zFiD = ezWE[:, -1, :].copy()\n ezWE[:, 1:, :] = ezWE[:, :-1, :]\n ...
[ "0.6792071", "0.6769593", "0.6754692", "0.64675164", "0.6418171", "0.63571995", "0.61532176", "0.6148756", "0.60937136", "0.60811603", "0.607108", "0.6061426", "0.6013022", "0.6008214", "0.60018325", "0.59778285", "0.59086174", "0.584602", "0.57967854", "0.5793175", "0.577875...
0.8209425
0
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
def g4Yp(YKHO, SRYB, mWFP): with ZylS.name_scope(mWFP): JBMS = ZylS.reduce_mean(SRYB) ZylS.summary.scalar('mean', JBMS) with ZylS.name_scope('stddev'): z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS))) ZylS.summary.scalar('stddev', z2bo) ZylS.summary.sc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()", "def oxpy(YK...
[ "0.77372825", "0.76371294", "0.71553725", "0.70677304", "0.7010343", "0.70051324", "0.686583", "0.6790819", "0.6712101", "0.67020524", "0.6698547", "0.6653406", "0.6651963", "0.6647064", "0.66240656", "0.6604837", "0.6597623", "0.6582092", "0.6571837", "0.6538044", "0.6537941...
0.0
-1
Loads X and Y and gets category names
def UlWi(NK1P): eHpk = y2U9('sqlite:///' + NK1P) jQ3Z = rLdf.read_sql_table('labeled_messages', eHpk) eHpk.dispose() EcVT = jQ3Z['message'] fuBA = jQ3Z.drop(['message', 'genre', 'id', 'original'], axis=1) MGkr = fuBA.columns.tolist() return (EcVT, fuBA, MGkr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fTQR(ipek):\n EvQg = VbCi(subset='train', categories=[ipek], shuffle=True, random_state=42)\n tHAM = ''\n for nPrm in EvQg.data:\n tHAM = tHAM + nPrm\n return (EvQg, tHAM)", "def Ym6G(bK8M):\n MVVZ = []\n i01o = []\n for tk5Y, AQSv, RRlC in Hy7s.walk(bK8M):\n for d6pt, nUeQ...
[ "0.61821187", "0.6096122", "0.6077806", "0.60694677", "0.60155153", "0.5992633", "0.5914651", "0.584767", "0.57754576", "0.57451063", "0.57334924", "0.5732357", "0.5722583", "0.56941926", "0.5684403", "0.5652468", "0.5650884", "0.5650268", "0.56456673", "0.56432027", "0.56399...
0.0
-1
Converts a threetuple in RGB interger format (0256) into a htmlhex format.
def sulj(HHWf): pmys = '%2s%2s%2s' % (HHWf[0], HHWf[1], HHWf[2]) return pmys.replace(' ', '0')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jiqi(KFm3):\n jbQV = '#%02x%02x%02x' % KFm3\n return jbQV", "def jiqi(KFm3):\n jbQV = '#%02x%02x%02x' % KFm3\n return jbQV", "def jiqi(KFm3):\n jbQV = '#%02x%02x%02x' % KFm3\n return jbQV", "def jiqi(KFm3):\n jbQV = '#%02x%02x%02x' % (int(KFm3[0] * 255), int(KFm3[1] * 255), int(KFm3[...
[ "0.744932", "0.744932", "0.73780954", "0.73365927", "0.72125596", "0.70691085", "0.7065134", "0.7065134", "0.67672473", "0.6721993", "0.6711139", "0.6697202", "0.6674792", "0.6661909", "0.6638762", "0.65738195", "0.6459385", "0.64139223", "0.63975805", "0.63777256", "0.636467...
0.7494255
0
Returns true if the current class is the proper registrar for the corresponding config class.
def AXfo(Emd4, mWFP): return mWFP == Emd4._classname
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DgM1(YKHO, jxGD):\n return jxGD in YKHO._registry", "def Mbbi(Emd4, mPQc):\n if mPQc == 'ConfigurationProxy':\n return True\n else:\n return False", "def ZMYe(Emd4):\n return issubclass(Emd4, pf7p)", "def tRkY(Emd4, GPtr):\n return isinstance(GPtr, type) and issubclass(GPtr, ...
[ "0.74041915", "0.70692945", "0.7018873", "0.7005698", "0.68393713", "0.67188996", "0.6657599", "0.6657599", "0.6657599", "0.6599401", "0.6563143", "0.6506957", "0.6402251", "0.63755685", "0.63544685", "0.63044715", "0.6280685", "0.62723815", "0.62723815", "0.6254857", "0.6236...
0.6216976
22
Returns true if the target folder exists.
def xzCw(YKHO) -> bool: return Hy7s.path.isdir(YKHO.settings_dict['target_folder'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A1vh(YKHO) -> True or False:\n if YKHO.directory.exists():\n return True\n else:\n return False", "def XstZ(YKHO, pmON: Path) -> bool:\n raise NotImplementedError()", "def vtfo(YKHO):\n return Hy7s.path.isdir(YKHO.folder_path)", "def L7rN(YKHO):\n if Hy7s.path.exists(YKHO._fo...
[ "0.75812286", "0.74970275", "0.74478793", "0.7440994", "0.7391743", "0.7390981", "0.73866457", "0.7378414", "0.73289716", "0.722956", "0.7208045", "0.71753305", "0.71619856", "0.7103103", "0.70507544", "0.7036329", "0.7019773", "0.70096827", "0.7008219", "0.69998544", "0.6982...
0.7296815
9
Test retrieving a list of places
def p6bt(YKHO): pRgP.objects.create(user=YKHO.user, name='BoilerMaker') pRgP.objects.create(user=YKHO.user, name='Lazy Dog') Ylbp = YKHO.client.get(u2Um) nvWN = pRgP.objects.all().order_by('-name') ZMzz = qey5(nvWN, many=True) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) YKHO.assertE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CT96(YKHO):\n WkFy = {'name': 'cage', 'city_id': YKHO.city.id, 'user_id': YKHO.user.id}\n C6id = pRgP(**WkFy)\n C6id.save()\n im04 = YKHO.app.get('{}/cities/{}/places'.format(YKHO.path, YKHO.city.id), follow_redirects=True)\n YKHO.assertEqual(im04.status_code, 200)\n YKHO.assertEqual(im04.hea...
[ "0.7773791", "0.7527394", "0.7386743", "0.72051203", "0.711005", "0.7109959", "0.68181837", "0.68056524", "0.6740588", "0.6698792", "0.6649884", "0.6589879", "0.65749335", "0.65689945", "0.65616286", "0.65149516", "0.6494353", "0.64696664", "0.64541084", "0.64536214", "0.6446...
0.8506394
0
Test creating invalid place fails
def MZOv(YKHO): pB3N = {'name': ''} Ylbp = YKHO.client.post(u2Um, pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kpYU(YKHO):\n Rci7 = YKHO.create_location()\n YKHO.assertIsNotNone(Rci7)\n try:\n YKHO.create_location()\n YKHO.fail('There should be an SQL error but nothing happens.')\n except yXsM as e:\n pass", "def _8i5(YKHO):\n WkFy = {'name': 'cage', 'user_id': 'noID', 'id': 'CA'}\...
[ "0.73419195", "0.7189646", "0.7187169", "0.71788", "0.7147041", "0.70457757", "0.7028299", "0.70248574", "0.70073926", "0.6990368", "0.6916977", "0.6904071", "0.6888847", "0.6844189", "0.6841539", "0.6839215", "0.6802444", "0.6747778", "0.6688519", "0.66555893", "0.6651654", ...
0.81891173
0
Downsample image specified by commandline arguments.
def b8V_() -> None: wvEv = j1Jz.ArgumentParser() wvEv.add_argument('image') wvEv.add_argument('out_pixels') qIxc = wvEv.parse_args() LNo8 = hnIv.open(qIxc.image) LNo8 = oyIN.array(LNo8) usx6 = LNo8.shape[0] WfCS = LNo8.shape[1] IL4o = oyIN.zeros_like(LNo8, dtype=oyIN.bool) if usx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_():\n r7CT = (oyIN.arange(1920 * 1080 * 3, dtype=oyIN.uint8) + 1).reshape(1080, 1920, 3)\n Kagf = oyIN.zeros((608, 608, 3), dtype=oyIN.uint8)\n for YRbF in range(3):\n myXy(inp=r7CT[:, :, YRbF], out=Kagf[:, :, YRbF])\n print('-----------------Before-----------------')\n print(...
[ "0.6347864", "0.6296886", "0.62827253", "0.62304413", "0.6187211", "0.61648846", "0.6155679", "0.61432755", "0.61410534", "0.60337067", "0.6020933", "0.59398985", "0.59035176", "0.58740664", "0.5810433", "0.5759917", "0.5757733", "0.5728644", "0.565851", "0.56503946", "0.5643...
0.7301765
0
Test to ensure with auto wrap, we wrap child modules correctly based on the min_num_params. ``nn.Linear(5, 5)`` does not exceed the bucket size, but combined they do. Root is not wrapped given there are not enough unwrapped params left and skip_params_check_for_root is not set.
def XFiB(YKHO): with kuFM(wrapper_cls=pcrB, process_group=YKHO.process_group, flatten_parameters=False): XFqx = U78l.Sequential(U78l.Linear(5, 5), U78l.Sequential(U78l.Linear(5, 5), U78l.Linear(5, 5))) y3nU = xBlr.partial(DDqh, min_num_params=60) C3ST = ABX6(XFqx, auto_wrap_policy=y3nU) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EPyL(yR_P: nn.Module, GQk7: bool, Poq3: int, NJ5s: int=int(100000000.0), oRCB: Optional[Set[Type[nn.Module]]]=None, S6dj: Optional[Set[Type[nn.Module]]]=None) -> bool:\n oRCB = EPyL.FORCE_LEAF_MODULES if oRCB is None else oRCB\n S6dj = EPyL.EXCLUDE_WRAP_MODULES if S6dj is None else S6dj\n nLEJ = Poq3 ...
[ "0.6781127", "0.6681783", "0.6671488", "0.64416075", "0.61409307", "0.60618216", "0.5980167", "0.5763264", "0.54737544", "0.53513634", "0.5191097", "0.5130038", "0.50480944", "0.50099325", "0.49257493", "0.4925234", "0.49094328", "0.49050507", "0.4831415", "0.48167524", "0.47...
0.56452096
8
Instantiate and return Indexer client object.
def UpA8(): if lToI == 'mainnet': alkS = 'https://algoexplorerapi.io/idx2' else: alkS = 'https://testnet.algoexplorerapi.io/idx2' pjIQ = '' return SOYA.IndexerClient(pjIQ, alkS, headers={'User-Agent': 'DoYouLoveMe?'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, d6pt, KcEq, bIwZ):\n YKHO.es = ARBB()\n YKHO.index = d6pt", "def sB4I():\n return wxaU(hosts=XgL1['host'], port=XgL1['port'], send_get_body_as='POST')", "def pszM():\n return C0iM.Elasticsearch(QOGO)", "def bxbw(gCuF):\n KcEq = gCuF['es.url']\n d6pt = gCuF['es.index']\n B2...
[ "0.74140364", "0.72140545", "0.71494555", "0.70367074", "0.68163365", "0.6709398", "0.6668193", "0.6666819", "0.6626653", "0.6582495", "0.6567006", "0.6541623", "0.6512512", "0.65012044", "0.6440763", "0.637571", "0.6366025", "0.6347296", "0.63445807", "0.6332315", "0.625699"...
0.8300234
0
Raise an exception if provided item doesn't qualify for airdrop.
def QdLR(ZfUD): if not eQmR and ZfUD.get('amount') != 0: raise UuQA if XaID is not None or w5jM > 0: VRAt = UpA8().account_info(ZfUD.get('address')) if XaID is not None: if XaID < 0.1: print(f'Invalid mimimum Algo holding value: {XaID}') raise SystemExit ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VGmT(YKHO, ZfUD: str=''):\n if not ZfUD:\n print('Please, select an item from your backpack to drop.')\n return\n iF6u = next(filter(lambda rA6F: rA6F.name.lower() == ZfUD, YKHO.backpack.items), None)\n if not iF6u:\n print('Specified item is not in your backpack.')\n retur...
[ "0.64421207", "0.60252273", "0.6010724", "0.5938708", "0.58995587", "0.58516353", "0.5804628", "0.5796613", "0.57597107", "0.5736921", "0.57196575", "0.568857", "0.5669363", "0.5664473", "0.5661103", "0.56478196", "0.56007636", "0.55672586", "0.5544862", "0.55254257", "0.5509...
0.7515987
0
Return True if address has only optin transaction for the asset.
def av4J(UTX6): gQVK = UpA8().search_transactions_by_address(UTX6, asset_id=ty9d) return True if len(gQVK.get('transactions')) == 1 else False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dr4m(tfSf):\n if tfSf.find('CONTRACT') != -1:\n return True\n else:\n return False", "def llJB(YKHO) -> bool:\n return qe4Y.get(YKHO, 'is_address')", "def pgSp(YKHO, UTX6: int) -> bool:\n return UTX6 in YKHO.addresses_set", "def VsUf(YKHO):\n return k2ln(YKHO.get_destination_...
[ "0.6539031", "0.6379293", "0.61327744", "0.58902925", "0.5841335", "0.58007145", "0.57650733", "0.574104", "0.5733096", "0.57266736", "0.57016075", "0.56199574", "0.5610047", "0.5598833", "0.5582689", "0.5577248", "0.55753803", "0.5554348", "0.5553974", "0.55535114", "0.55521...
0.6284542
2
In an instance where daily totals are not collected (scraper failure, state data format change, etc), and daily totals need to be manually backfilled, this function will take the json file containing the correct daily numbers for the county and recalculate 7day averages
def nMI1(): HQhX = G4JS.get(jqTd) zwsJ = HQhX.json() for a5zo in zwsJ: a5zo['averages'] = zPCZ(a5zo['trend']) return zwsJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def htmH(Dag2: str, r845: Dict[str, Any], khO8: int=13) -> None:\n U5bT = []\n for Y3mr in range(khO8, -1, -1):\n kWNG = qcWV.date.today() - qcWV.timedelta(Y3mr)\n CjKC = kWNG.strftime('%Y-%m-%d')\n fUNe = Hy7s.path.join(Dag2, '%s.count' % CjKC)\n if not Hy7s.path.exists(fUNe):\n ...
[ "0.66861326", "0.62991583", "0.6206472", "0.6163491", "0.6124297", "0.6116496", "0.60412717", "0.5987013", "0.58609104", "0.58249253", "0.5716404", "0.5631056", "0.5589211", "0.5567508", "0.55640644", "0.5563931", "0.5529178", "0.55228907", "0.551856", "0.549117", "0.5486942"...
0.661385
1
Returns the Quadrature Mirror Filter(QMF). The magnitude response of QMF is mirror image about `pi/2` of that of the input filter.
def TWW6(ulrI): CjIg = oyIN.array(ulrI)[::-1] CjIg[1::2] = -CjIg[1::2] return CjIg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vo8b(JZs_):\n Wxnj = JZs_['qform_code']\n if Wxnj == 0:\n return None\n _Jov = yJHX(JZs_)\n A3Vt = f6lc(_Jov)\n ikP3 = JZs_['pixdim'][1:4].copy()\n if oyIN.any(ikP3) < 0:\n raise ValueError('pixdims[1,2,3] should be positive')\n f9tN = JZs_['pixdim'][0]\n if f9tN not in (-...
[ "0.604091", "0.5941384", "0.5927635", "0.5740125", "0.5651343", "0.56129307", "0.5607344", "0.5589172", "0.5524949", "0.55059725", "0.55046254", "0.548785", "0.5473809", "0.54526824", "0.5431176", "0.54281706", "0.54256284", "0.5423938", "0.5408442", "0.5335409", "0.52892226"...
0.60371006
1
Returns the orthogonal filter bank. The orthogonal filter bank consists of the HPFs and LPFs at decomposition and reconstruction stage for the input scaling filter.
def Rs6v(aV0e): if not len(aV0e) % 2 == 0: raise ValueError('`scaling_filter` length has to be even.') aV0e = oyIN.asarray(aV0e, dtype=oyIN.float64) ZTQU = oyIN.sqrt(2) * aV0e / oyIN.sum(aV0e) b67T = ZTQU[::-1] zBkA = TWW6(ZTQU) c21_ = zBkA[::-1] WUi9 = (b67T, c21_, ZTQU, zBkA) r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gtzj(YKHO):\n YRbF = YKHO.R / oyIN.linalg.norm(YKHO.R)\n C7Ls = oyIN.cross(YKHO.R, YKHO.V)\n G1Hx = C7Ls / oyIN.linalg.norm(C7Ls)\n r845 = -oyIN.cross(YRbF, G1Hx)\n tjUW = oyIN.identity(3)\n tjUW[0, 0:3] = YRbF\n tjUW[1, 0:3] = r845\n tjUW[2, 0:3] = G1Hx\n return tjUW", "def rPVh(Y...
[ "0.4938304", "0.48968208", "0.48893198", "0.48698762", "0.4842691", "0.48386022", "0.4835182", "0.48268375", "0.48211542", "0.48000666", "0.47959095", "0.479123", "0.47870535", "0.47775954", "0.47644612", "0.47562397", "0.47553274", "0.47496834", "0.47412804", "0.47303268", "...
0.76895213
0
Return a boolean value based on that of an environment variable. Environment variables have no native boolean type. They are always strings, and may be empty or unset (which differs from empty.) Furthermore, notions of what is "truthy" in shell script differ from that of python. This function converts environment varia...
def TOdw(H5ew, WmM4=False, n9YZ=True): return {'true': True, '1': True, 'false': False, '0': False, '': WmM4}.get(Hy7s.getenv(H5ew, '').lower(), n9YZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WyM0(wEf2):\n return True if Hy7s.environ.get(wEf2, False) == 'True' else False", "def v3_U(jvnp, WmM4=False):\n dco9 = 't' if WmM4 else 'f'\n BWXx = Hy7s.environ.get(jvnp, dco9).lower()[:1]\n return not WmM4 and BWXx in ['y', '1', 't'] or (WmM4 and BWXx not in ['n', '0', 'f'])", "def WyM0(XuY2...
[ "0.8578336", "0.84436226", "0.8399072", "0.83450466", "0.82365125", "0.82067835", "0.8119028", "0.81178635", "0.8088927", "0.80189866", "0.79525244", "0.7944865", "0.77706707", "0.7740783", "0.76946896", "0.766954", "0.74210143", "0.7379346", "0.72132176", "0.7161899", "0.702...
0.7753469
13
extract the version number from the module name provided.
def P56Q(LCet): return Qumu.splitext(LCet.split('_v')[-1])[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mdKY(yR_P):\n if not yR_P.startswith(n294.__name__ + '.'):\n return None\n Aofo = yR_P[len(n294.__name__) + 1].split('.', 1)\n if len(Aofo) == 2 and '___' in Aofo[1]:\n return MRxC.unhexlify(Aofo[1].rsplit('___', 1)[1])", "def LTV6(mWFP: str) -> int:\n kGu_ = mWFP.split('_')\n Dm...
[ "0.77306396", "0.74557704", "0.7347757", "0.7269301", "0.7184071", "0.7054261", "0.7015377", "0.7002851", "0.69473654", "0.6850821", "0.6818606", "0.68175143", "0.67717886", "0.67602843", "0.6714876", "0.6681701", "0.66774654", "0.6642611", "0.6621242", "0.6604706", "0.656688...
0.8395949
0
Draws all objects in window
def JmFt(YKHO, QHWw): YKHO.win.fill((255, 255, 255)) for odnt in QHWw: YKHO.win.blit(odnt.image, odnt.rect) for odnt in YKHO.ballAndPaddle: YKHO.win.blit(odnt.image, odnt.rect) if YKHO.endText: YKHO.win.blit(YKHO.endText, (0, 2 * YKHO.winHeight // 3)) if YKHO.startText: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt():\n KnxT.clear()\n for nYVo in JgYa:\n nYVo.draw_self()", "def taBX(YKHO):\n YKHO.screen.fill([0, 90, 0])\n for object in YKHO.simulation_objects:\n object.draw()", "def JmFt(YKHO):\n if YKHO.isBegining:\n YKHO.window.fill(Z9rn.BLACK)\n else:\n g74T.draw....
[ "0.8456343", "0.78812635", "0.7747414", "0.7668336", "0.76643485", "0.7621919", "0.7589194", "0.74845237", "0.74832255", "0.74775517", "0.74732506", "0.7458752", "0.74098736", "0.7381636", "0.73234355", "0.73224366", "0.73188156", "0.7272611", "0.71747905", "0.7169756", "0.71...
0.66312855
100
Constructor for Paddle class
def FIMM(YKHO, _aLT, VrRJ): super().__init__() YKHO.winWidth = _aLT YKHO.winHeight = VrRJ YKHO.image = a9eO.image.load('paddle1.png').convert() YKHO.image.set_colorkey((0, 0, 0)) YKHO.rect = YKHO.image.get_rect() YKHO.rect.centerx = YKHO.winWidth // 2 YKHO.rect.centery = YKHO.winHeight -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._paddle = Cs5H(x=xpNW / 2, y=WtvJ, width=_Z6J, height=dbOv, fillcolor=luAA.ORANGE, linecolor=luAA.ORANGE)\n YKHO._bricks = YKHO.multi_bricks()\n YKHO._ball = None\n YKHO._tries = Gink\n YKHO._serves = 0", "def FIMM(YKHO):\n YKHO._paddle = Cs5H()\n YKHO._bricks = []\n ...
[ "0.81520045", "0.7377021", "0.711205", "0.7062428", "0.70603114", "0.7014069", "0.69688904", "0.6910691", "0.68266785", "0.6790051", "0.66159606", "0.6594281", "0.647282", "0.6334116", "0.6284518", "0.62668306", "0.62276953", "0.61349744", "0.61324286", "0.60928535", "0.60618...
0.691093
7
This function will extract the confidence(probability) of the face detection so that we can filter out weak detections.
def BcSE(YKHO, YRbF): YKHO.confidence = YKHO.detections[0, 0, YRbF, 2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qh_T(YKHO, VXjJ, DM1L=0.8, X4bx=0.15, gpPk=20):\n MKlR, yzQ0 = VXjJ.shape[:2]\n msOQ = []\n oUSw, cCrA, KndY, bim9 = YKHO.forward(VXjJ)\n oUSw = oyIN.squeeze(oUSw)\n KndY = oyIN.squeeze(KndY).astype(oyIN.int32)\n cCrA = oyIN.squeeze(cCrA)\n for YRbF in range(oUSw.shape[0]):\n if cCr...
[ "0.69222987", "0.68076015", "0.6723234", "0.6684412", "0.6430464", "0.6417794", "0.64027077", "0.6394682", "0.6389215", "0.6366846", "0.63396543", "0.63327813", "0.6314055", "0.6313406", "0.62936157", "0.62667674", "0.62499285", "0.624186", "0.6240791", "0.6231103", "0.621810...
0.73810476
0
True, as all users are active.
def ksfB(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ksfB(YKHO):\n return True", "def ksfB(YKHO):\n return YKHO.user.is_active", "def ksfB(YKHO):\n return YKHO.user.is_active", "def ksfB(YKHO):\n return YKHO.user.is_active", "def ksfB(YKHO):\n return YKHO.user.is_active", "def ksfB(YKHO, NCls: Session, *, CBIr: User) -> bool:\n if CBI...
[ "0.75308377", "0.7392309", "0.7392309", "0.7392309", "0.7392309", "0.73852575", "0.73056287", "0.7290842", "0.7230901", "0.72114825", "0.71813864", "0.714781", "0.714781", "0.7117796", "0.7107901", "0.70613724", "0.7053262", "0.7051632", "0.70370287", "0.70316494", "0.7010118...
0.71019155
21
Return True if the user is verified.
def rts1(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYZx(YKHO):\n return YKHO.user is not None", "def CYZx(YKHO) -> bool:\n return qe4Y.get(YKHO, 'is_verified')", "def CYZx(YKHO) -> bool:\n return YKHO.data['isVerified']", "def CYZx(YKHO):\n return YKHO.verified", "async def is_email_verified(YKHO):\n nPrm = await YKHO.login()\n return...
[ "0.82762235", "0.81326693", "0.792639", "0.78817934", "0.7729876", "0.76684", "0.7520094", "0.74712855", "0.74712855", "0.7404327", "0.7291965", "0.7256883", "0.7054128", "0.68885803", "0.6817382", "0.67744017", "0.67404956", "0.6677254", "0.66612387", "0.6656899", "0.664739"...
0.0
-1
False, as anonymous users aren't supported.
def wDqn(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return True", "def ...
[ "0.84041584", "0.84041584", "0.8380213", "0.8380213", "0.8380213", "0.8377405", "0.83305264", "0.82501274", "0.8244858", "0.81436765", "0.8103119", "0.80954605", "0.807159", "0.7877262", "0.7874819", "0.7860086", "0.7859498", "0.77627987", "0.7724922", "0.76033795", "0.757673...
0.8359979
12
Creates an ArgumentParser to read the options for this script from sys.argv
def RIXt(): wvEv = j1Jz.ArgumentParser(description='Visualize a data file') wvEv.add_argument('codebook_filename', help='Specifies the codebook (numpy) file') wvEv.add_argument('--type', default='histo', help='Specifies the codebook (numpy) type, image or histo') wvEv.add_argument('--input_size', defaul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uvp4(YKHO, E0cB):\n from optparse import OptionParser\n e2h5 = 'usage: %prog [options]'\n wvEv = OptionParser(e2h5)\n xAU6, qIxc = wvEv.parse_args(E0cB)", "def hOsf(YKHO):\n wvEv = WDqQ()\n wvEv.add_argument('config', help='The name of the .yml file that contains the matching configuration....
[ "0.77465737", "0.7665759", "0.7504096", "0.746324", "0.74403477", "0.7422639", "0.738267", "0.73610616", "0.73497343", "0.7331854", "0.7328794", "0.7320112", "0.73120654", "0.7296128", "0.7279609", "0.7252114", "0.72500986", "0.72500986", "0.72489685", "0.72357655", "0.720874...
0.7057821
50
Return the icon of this switch.
def _G4g(YKHO): return K8T5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _G4g(YKHO) -> str:\n return YKHO._icon", "def _G4g(YKHO) -> str:\n return YKHO._icon", "def _G4g(YKHO):\n return YKHO._icon", "def _G4g(YKHO):\n return YKHO._icon", "def _G4g(YKHO):\n return YKHO._icon", "def _G4g(YKHO):\n return YKHO._icon", "def _G4g(YKHO):\n return YKHO._ico...
[ "0.8492438", "0.845122", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0.8424976", "0...
0.86598724
0
Returns whether the given filename matches one of the given suffixes.
def j_p9(Ux0P, iRsl): ZI14 = Ux0P[Ux0P.rfind('.'):] return ZI14 in iRsl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wpln(ytgA, *YBcr):\n return ytgA.lower().endswith(YBcr)", "def HMlh(hksT, iRsl):\n P8oC, YBcr = Hy7s.path.splitext(hksT)\n YBcr = YBcr.lower()\n return YBcr in iRsl and YBcr or None", "def XCbw(Ux0P, CBZq):\n eHNT = Ux0P.lower()\n for YBcr in CBZq:\n if eHNT.endswith(YBcr.lower()):...
[ "0.7485843", "0.74027914", "0.7276538", "0.7154583", "0.7136984", "0.70648867", "0.6966426", "0.6961567", "0.6956724", "0.69502753", "0.68802774", "0.68506885", "0.68395454", "0.68395454", "0.68395454", "0.68395454", "0.68395454", "0.68395454", "0.68395454", "0.68395454", "0....
0.8968216
0
Clean a file or folder name of characters that are not allowed
def x0SS(vIwR): uv6v = vIwR vIwR = ZbWC.sub('[^\\w\\-_\\.(): ]', '_', vIwR) return vIwR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXnn(gIsw: str) -> str:\n gIsw = rmDg(gIsw, 1)\n gIsw = ZbWC.sub('__+', '_', gIsw.replace(' ', '_'))\n return gIsw", "def NVCy(mWFP):\n return mWFP.translate('___________________________________________+_-._0123456789______@ABCDEFGHIJKLMNOPQRSTUVWXYZ______abcdefghijklmnopqrstuvwxyz_______________...
[ "0.81245244", "0.79067147", "0.7829075", "0.7781909", "0.77607054", "0.77607054", "0.7700977", "0.76944655", "0.76884043", "0.7686374", "0.7657234", "0.76214796", "0.7597865", "0.7597759", "0.7548159", "0.74948084", "0.7487924", "0.74483347", "0.7413403", "0.7406449", "0.7401...
0.0
-1
Update the reward lower Lipschitz bound.
def xmcd(YKHO) -> None: hNS2 = YKHO._iterate_safe_states() Hu79 = YKHO._iterate_corrupt_states() for eevG, kbXX in Hu79: EaGa = None for iAEe, lzMC in hNS2: mmRm = lzMC - YKHO.d(iAEe, eevG) if EaGa is None or mmRm > EaGa: EaGa = mmRm YKHO.rllb[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO):\n YKHO.r = YKHO.calc_reward()", "def r0IT(YKHO, vOGg):\n assert isinstance(vOGg, float)\n YKHO._update_buffer(YKHO.past_rewards, vOGg)", "def nnTj(YKHO, vOGg: np.ndarray) -> None:\n YKHO.ret = YKHO.ret * YKHO.gamma + vOGg\n YKHO.ret_rms.update(YKHO.ret)", "def XJx0(YKHO) -> Non...
[ "0.7020551", "0.6911368", "0.6882433", "0.685096", "0.68012935", "0.67079675", "0.6575313", "0.64722544", "0.64619577", "0.6457471", "0.6424712", "0.642279", "0.64166135", "0.63949746", "0.6342904", "0.6304281", "0.6290331", "0.62740827", "0.6269715", "0.6247202", "0.6243029"...
0.0
-1
Return the reward to use for optimizing the policy based on the rllb.
def A8ax(YKHO, iBIi, vOGg) -> float: if YKHO._is_state_corrupt(iBIi): return YKHO.rllb[iBIi] else: return vOGg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A3Vt(QTBn):\n BWXx = QTBn.reward\n return BWXx", "def xyVK(YKHO):\n vOGg = 0.0\n if YKHO.target_penalty:\n vOGg += 100.0 / (YKHO.target_distance() + 1)\n if YKHO.on_target() and YKHO.stop_on_target is True:\n vOGg += 100000\n if YKHO.rotation_penalty:\n vOGg += 10.0 / (...
[ "0.745407", "0.73970866", "0.7388785", "0.7282957", "0.7279017", "0.72623223", "0.7261885", "0.72445714", "0.7226196", "0.7223572", "0.72160834", "0.721461", "0.72080046", "0.7207908", "0.7203729", "0.71969366", "0.71827054", "0.71803683", "0.7168232", "0.7150196", "0.713902"...
0.7058347
29
Perform a forward FFT on any given axes
def af60(jzdc, DkWr=True, LpaZ=False, MPlV=-1): return oFYt(jzdc, axes=MPlV, shift=DkWr, inplace=LpaZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WPbR(nPrm: np.ndarray, CkYf: bool=True):\n import numpy.fft as MRlR\n if not CkYf:\n return MRlR.rfft(nPrm, axis=0)\n return MRlR.rfft(nPrm, norm='ortho', axis=0)", "def YMvd(YKHO):\n bo34.debug('Computing FFT of input with %s threads', YKHO.nthreads)\n nPrm = YKHO.data_raw\n YKHO.da...
[ "0.70930666", "0.6858409", "0.6738721", "0.67119753", "0.6496192", "0.6330476", "0.62910545", "0.6268218", "0.62519926", "0.6248982", "0.609472", "0.6088584", "0.6084972", "0.60617024", "0.6037775", "0.6032345", "0.6025892", "0.6024723", "0.5979696", "0.597775", "0.59771544",...
0.6013295
18
Returns the retention value for the schedule.
def d6pt(YKHO, qv1X, QOGf): QpfX = qv1X.environ['nova.context'] KAOR = YKHO.compute_api.get(QpfX, QOGf) B9G4(QpfX, target=KAOR, action='index') N5z6 = {'uuid': QOGf} yIVm = YKHO.compute_api.get_instance_system_metadata(QpfX, N5z6) if yIVm.get(ecCt): tpVn = yIVm[ecCt] oC4a = S3sg....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oC4a(YKHO) -> lTJ4.aws_logs.RetentionDays:\n return YKHO._values.get('retention')", "def oC4a(YKHO):\n return YKHO._message['retention']", "def oC4a(YKHO):\n return YKHO._message['retention']", "def oC4a(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'retention')", "def oC4a(YKHO) -> st...
[ "0.7604716", "0.756128", "0.756128", "0.75195265", "0.74873215", "0.74873215", "0.74873215", "0.74873215", "0.74873215", "0.74873215", "0.74873215", "0.74873215", "0.74268866", "0.74268866", "0.73405343", "0.721631", "0.721631", "0.721417", "0.720299", "0.719885", "0.71542114...
0.0
-1
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI. This evaluation function is meant for use with adversarial search agents (not reflex agents).
def fHT3(rfNN): return rfNN.getScore()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)", "def fHT3(rfNN):\n return rfNN.getScore()", "def fHT3(rfNN: GameState):\n re...
[ "0.8073216", "0.8052229", "0.8052229", "0.79367465", "0.7676834", "0.7660452", "0.76424044", "0.76333016", "0.75528044", "0.75528044", "0.75528044", "0.75528044", "0.75528044", "0.75528044", "0.75528044", "0.75528044", "0.75528044", "0.75528044", "0.75528044", "0.75528044", "...
0.75926745
10
Count_stair_ways by taking up to k step >>> count_k(3, 3) 3, 2 + 1, 1 + 2, 1 + 1 + 1 4 >>> count_k(4, 4) 8 >>> count_k(10, 3) 274 >>> count_k(300, 1) 1
def ACTG(exwG, G1Hx): if exwG == 0 or exwG == 1: return 1 elif exwG < 0: return 0 else: YRbF = 1 UHFx = 0 while YRbF <= G1Hx: UHFx += ACTG(exwG - YRbF, G1Hx) YRbF += 1 return UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ACTG(exwG, G1Hx):\n if exwG < 0:\n return 0\n elif exwG == 0:\n return 1\n else:\n return sum([ACTG(exwG - YRbF, G1Hx) for YRbF in range(1, G1Hx + 1)])", "def ACTG(exwG, G1Hx):\n if exwG == 0:\n return 1\n elif exwG < 0 or G1Hx <= 0:\n return 0\n else:\n ...
[ "0.75811356", "0.74527687", "0.7411785", "0.7312224", "0.68323314", "0.6712719", "0.6647012", "0.66324264", "0.65769154", "0.6553315", "0.6522037", "0.65196794", "0.64494574", "0.6429036", "0.63898206", "0.63605124", "0.6226064", "0.6221473", "0.6174208", "0.61696976", "0.616...
0.7455019
1
Load the saved model from DBMS and unzip it on local_dir.
def ArE_(pd8u, tyNF, nWeE=Hy7s.getcwd()): with gbPf.TemporaryDirectory() as z_es: KEOR = Hy7s.path.join(z_es, zaAg) eK5b = I3Ry(pd8u, tyNF) with open(KEOR, 'wb') as eHNT: for nPrm in eK5b(): eHNT.write(bytes(nPrm)) return wOed._unzip(nWeE, KEOR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZNZK(nWeE, KEOR):\n lbOC = Hy7s.path.join(nWeE, hubg)\n LzUn(KEOR, nWeE)\n C3ST = Aql6(lbOC)\n Hy7s.remove(lbOC)\n return C3ST", "def uyMl(YKHO, asFG=None):\n RDuA.unpack_archive(asFG, extract_dir=X8Rg.MINDSDB_STORAGE_PATH)", "def M76O(fpe9, nWeE=Hy7s.getcwd()):\n with gbPf.TemporaryDi...
[ "0.7482118", "0.71872497", "0.6874475", "0.66305494", "0.66208124", "0.6510802", "0.6498201", "0.6485227", "0.6433723", "0.6426352", "0.641541", "0.64091516", "0.63555163", "0.63404346", "0.6312837", "0.6294056", "0.6291804", "0.62875646", "0.62829", "0.6266932", "0.6266932",...
0.65112686
5
Compose arbitrarily many functions, evaluated left to right.
def capf(*aese): if aese: return Pusg(lambda eHNT, Oa1e: lambda *jzdc, **YSA3: Oa1e(eHNT(*jzdc, **YSA3)), aese) else: raise ValueError('Composition of empty sequence not supported.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def capf(ZZSa):\n return Pusg(lambda eHNT, Oa1e: lambda *WKvO: eHNT(*Oa1e(*WKvO)), reversed(ZZSa), lambda *WKvO: WKvO)", "def capf(*aese):\n\n def _gRY(*qIxc, **B2fa):\n Mkmy = aese[-1](*qIxc, **B2fa)\n for eHNT in reversed(aese[:-1]):\n Mkmy = eHNT(Mkmy)\n return Mkmy\n ...
[ "0.80226165", "0.7994213", "0.78858924", "0.7864275", "0.78306", "0.7826835", "0.78145486", "0.7794911", "0.7794911", "0.7793132", "0.7786985", "0.7786985", "0.777225", "0.7708247", "0.7637937", "0.76160663", "0.7594742", "0.75934106", "0.74643546", "0.7461141", "0.7430611", ...
0.7171412
27
Adds an object to the Catalog by iteratively applying it to all indexes. 'object' is the object to be cataloged 'uid' is the unique Catalog identifier for this object If 'idxs' is specified (as a sequence), apply the object only to the named indexes. If 'update_metadata' is true (the default), also update metadata for ...
def jZot(YKHO, object, PObu, gwAu=None, DNs0=None, Txc_=True): if DNs0 is None: DNs0 = [] d6pt = YKHO.uids.get(PObu, None) if d6pt is None: d6pt = YKHO.updateMetadata(object, PObu, None) YKHO._length.change(1) YKHO.uids[PObu] = d6pt YKHO.paths[d6pt] = PObu elif Tx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jZot(YKHO, object, PObu, gwAu=None, DNs0=None, Txc_=1, DHvX=None):\n try:\n if WX9n(YKHO)._check_unindexable_content(object):\n return 0\n except:\n pass\n if not DHvX and YKHO.isThreadActivated():\n xASv = YKHO._v_changed[1]\n if not xASv.has_key(PObu):\n ...
[ "0.67794806", "0.6546092", "0.6405038", "0.6315218", "0.6089125", "0.6034128", "0.5762376", "0.56979954", "0.56835985", "0.56804997", "0.5676543", "0.5658625", "0.56507957", "0.562134", "0.55972713", "0.5586756", "0.55849624", "0.5577155", "0.5574689", "0.55532026", "0.554044...
0.69806653
0
Converts the matplotlib plot specified by 'figure' to a PNG image and returns it. The supplied figure is closed and inaccessible after this call.
def lsxx(JI1i): LaVg = xDSY.BytesIO() QrM1.savefig(LaVg, format='png') QrM1.close(JI1i) LaVg.seek(0) LNo8 = ZylS.image.decode_png(LaVg.getvalue(), channels=4) LNo8 = ZylS.expand_dims(LNo8, 0) return LNo8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsxx(JI1i):\n LaVg = xDSY.BytesIO()\n QrM1.savefig(LaVg, format='png', dpi=200)\n QrM1.close(JI1i)\n LaVg.seek(0)\n LNo8 = ZylS.image.decode_png(LaVg.getvalue(), channels=4)\n LNo8 = ZylS.expand_dims(LNo8, 0)\n return LNo8", "def lsxx(JI1i):\n LaVg = xDSY.BytesIO()\n QrM1.savefig(L...
[ "0.7816203", "0.7814735", "0.77944183", "0.77496296", "0.7703296", "0.7672897", "0.7655808", "0.7645705", "0.76395756", "0.7613577", "0.7586578", "0.7586578", "0.7586578", "0.7568418", "0.7568233", "0.75515807", "0.7540916", "0.74738824", "0.74540496", "0.7421695", "0.7412087...
0.7614827
11
Get value of delta (refractive index `n = 1 delta + ibeta`) for few common materials. It also wors as an interface to `xraylib`, using the same syntax for materials names. This function can be expanded by including more materials to the (internal) list.
def _eoL(mFDD, hLxz=-1, Mx95=None, InLe=None, z68p=False, PJWX=False): mrPm = ['Diamond, 3.525g/cm^3', 'Beryllium, 1.848 g/cm^3', 'Manual Input'] ISD5 = [mrPm[0], mrPm[1], mrPm[2]] if z68p: Acvy = Mugg.get_choice(message='Select Sample Material', title='Title', choices=ISD5) if Acvy is None:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zb1A(Mx95, InLe, VYvU, dTEU=False, OwPN=None):\n nBb9 = 1e-08 * dkNf / VYvU\n UqER = []\n for o61b, FGW3 in kxke(Mx95).items():\n UqER.append((FGW3, Xrqh(o61b, VYvU, _larch=OwPN)))\n Dfj8, RA_F, JtPQ, m2mI = (0, 0, 0, 0)\n for FGW3, etmY in UqER:\n upAO = InLe * FGW3 * IJkJ\n ...
[ "0.6680572", "0.5735268", "0.572915", "0.5716451", "0.560064", "0.5424256", "0.53360885", "0.5278579", "0.5261796", "0.525781", "0.5255335", "0.52354616", "0.5212026", "0.52030855", "0.5190344", "0.51694626", "0.5167546", "0.5147111", "0.51108986", "0.51048267", "0.5093294", ...
0.6173183
1
Raises an exception on unexpected response.
def L9I9(geh0): Ew0l(geh0.status_code) DK_J(geh0.json())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g14h(YKHO, geh0: Response):\n raise YKHO.get_client().get_error_handler().get_exception(geh0)", "def M7Pw(YKHO, geh0):\n try:\n geh0.raise_for_status()\n except G4JS.RequestException as e:\n YKHO._exception_handler(geh0, tTpl)\n raise tTpl", "def gcmr(geh0):\n if geh0.json(...
[ "0.76464623", "0.75844616", "0.7501761", "0.74670386", "0.7449325", "0.744913", "0.74389714", "0.7432497", "0.739203", "0.73217744", "0.7294318", "0.7279263", "0.7272046", "0.722797", "0.722797", "0.72163707", "0.72064173", "0.71982473", "0.71713054", "0.71685857", "0.7161401...
0.0
-1
Swap axes of a Data object. This method swaps two axes of a Data object by swapping the appropriate ``.data``, ``.names``, ``.units``, and ``.axes``.
def kp_e(BkYD, hh7H, fTVC): nPrm = BkYD.data.swapaxes(hh7H, fTVC) MPlV = BkYD.axes[:] MPlV[hh7H], MPlV[fTVC] = (MPlV[fTVC], MPlV[hh7H]) rYO3 = BkYD.units[:] rYO3[hh7H], rYO3[fTVC] = (rYO3[fTVC], rYO3[hh7H]) ZWCE = BkYD.names[:] ZWCE[hh7H], ZWCE[fTVC] = (ZWCE[fTVC], ZWCE[hh7H]) return BkY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kp_e(YKHO, *qIxc, **B2fa):\n return YKHO._apply('swapaxes', *qIxc, **B2fa)", "def kp_e(YKHO, M_mI, ZMAG):\n pass", "def kp_e(YKHO, M_mI, ZMAG):\n return _QSz.basic.swapaxes(YKHO, M_mI, ZMAG)", "def kp_e(YKHO, *qIxc, **NArs):\n pass", "def kp_e(WKvO, M_mI, ZMAG):\n return a4mD(M_mI, ZMAG)...
[ "0.7376847", "0.7288008", "0.72023684", "0.70833457", "0.6885658", "0.6700932", "0.66815865", "0.6596335", "0.63685924", "0.61388785", "0.6059533", "0.60041374", "0.5965338", "0.59150636", "0.5861882", "0.58269864", "0.58016175", "0.5696718", "0.55957186", "0.5496466", "0.549...
0.81380767
0
Compute the variance along the ``timeaxis`` of ``dat``. This method reduces the dimensions of `dat.data` by one.
def I8JS(BkYD, xnFc=-2): nPrm = oyIN.var(BkYD.data, axis=xnFc) MPlV = BkYD.axes[:] MPlV.pop(xnFc) ZWCE = BkYD.names[:] ZWCE.pop(xnFc) rYO3 = BkYD.units[:] rYO3.pop(xnFc) return BkYD.copy(data=nPrm, axes=MPlV, names=ZWCE, units=rYO3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8JS(BkYD):\n return qw7D.variance(BkYD)", "def I8JS(YKHO, jzdc, jDK_=0):\n try:\n TK2h = oyIN.var(jzdc, jDK_)\n return TK2h\n except Exception as e:\n print('An exception occurred. Here is the message:\\n', tTpl)", "def I8JS(nPrm, cgTt=None):\n if iter(nPrm) is nPrm:\n ...
[ "0.7380072", "0.6622372", "0.64163184", "0.6408233", "0.6291151", "0.6284243", "0.6275201", "0.6217148", "0.61998177", "0.61836874", "0.6123312", "0.60762686", "0.603961", "0.6022562", "0.5994823", "0.59500223", "0.5940816", "0.591567", "0.58973557", "0.587554", "0.587554", ...
0.85630274
0
Gets the uri of this DeviceRegistrationInfo.
def j8eK(YKHO) -> str: return YKHO._uri
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zFcP(YKHO):\n return YKHO.get_descriptor().URI", "def eXby(YKHO):\n return YKHO._uri", "def zFcP(YKHO):\n return YKHO._uri", "def zFcP(YKHO):\n return YKHO.uri", "def zFcP(YKHO):\n raise NotImplementedError", "def j8eK(YKHO):\n return YKHO.__uri", "def j8eK(YKHO):\n return YKHO...
[ "0.75781703", "0.75364316", "0.75145113", "0.74535555", "0.74215823", "0.7396234", "0.735126", "0.735126", "0.735126", "0.735126", "0.735126", "0.735126", "0.735126", "0.735126", "0.735126", "0.7330722", "0.7330722", "0.7317418", "0.73148745", "0.7289332", "0.72658974", "0....
0.7315296
18
Sets the uri of this DeviceRegistrationInfo.
def j8eK(YKHO, j8eK: str): YKHO._uri = j8eK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j8eK(YKHO, j8eK):\n YKHO._uri = j8eK", "def j8eK(YKHO, j8eK):\n YKHO._uri = j8eK", "def j8eK(YKHO, j8eK):\n YKHO._uri = j8eK", "def j8eK(YKHO, j8eK):\n YKHO._uri = j8eK", "def j8eK(YKHO, j8eK):\n if j8eK is None:\n raise ValueError('Invalid value for `uri`, must not be `None`')\n ...
[ "0.73612344", "0.73612344", "0.73179066", "0.73179066", "0.67017746", "0.6611998", "0.64071435", "0.63285124", "0.61803186", "0.60880834", "0.6055357", "0.60458267", "0.59029317", "0.589376", "0.5861173", "0.5861173", "0.5861173", "0.5857015", "0.5847254", "0.5844833", "0.583...
0.72626877
4
Gets the id of this DeviceRegistrationInfo.
def id(YKHO) -> str: return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO):\n return YKHO.device.id", "def ShR8(YKHO):\n return YKHO._device.device_id", "def ShR8(YKHO):\n return YKHO._device.device_id", "def jf3N(YKHO):\n return YKHO.unique_id", "def ShR8(YKHO):\n return YKHO._device_info.unique_id", "def ShR8(YKHO) -> str:\n return YKHO._devic...
[ "0.7642792", "0.76310617", "0.76310617", "0.7619014", "0.7614957", "0.7501474", "0.74945265", "0.7465233", "0.74635035", "0.74487185", "0.74000615", "0.74000615", "0.7379233", "0.7379233", "0.7374405", "0.7332806", "0.7332806", "0.73318136", "0.7280018", "0.7272553", "0.72047...
0.0
-1
Return the list of subparsers for which [populateSubparser] & [handleSubparser] will be called.
def A89y(YKHO): return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ibCf(wvEv):\n xASv = [XeOP for XeOP in wvEv._actions if isinstance(XeOP, j1Jz._SubParsersAction)]\n assert len(xASv) <= 1, 'The parser has multiple subparsers.'\n return xASv[0] if xASv else None", "def QWJU(Emd4, nIh5):\n for lnkW in Emd4.__subclasses__():\n lnkW.add_subparser(nIh5)", "...
[ "0.7165336", "0.6849203", "0.6677606", "0.65993285", "0.65773433", "0.65300053", "0.6472175", "0.6410095", "0.6320211", "0.6316425", "0.6301521", "0.62960523", "0.625232", "0.62374645", "0.6220989", "0.62007654", "0.61904466", "0.61147034", "0.6003945", "0.589712", "0.5846389...
0.7953461
0
Get materials of objects
def DvWf(ei4T): ei4T = eBKF.u_enlist(ei4T) LSZ7 = ccKF.ls(ei4T, l=True, mat=True) Ymkf = ccKF.ls(ei4T, l=True, et='transform') N8OZ = ccKF.ls(ei4T, l=True, s=True, noIntermediate=True) if not LSZ7 and (not Ymkf) and (not N8OZ): return Ljdu(ei4T) if Ymkf: SXwH.update(N8OZ, ccKF.ls...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LSZ7(YKHO):\n return Jc_e(YKHO)", "def LSZ7(YKHO):\n yield from (YEnM for YEnM in YKHO.objects if YEnM.SORT == 'Material')", "def LSZ7(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'materials')", "def LSZ7(YKHO) -> bdIy['outputs.MaterialResponse']:\n return qe4Y.get(YKHO, 'materials')", "def ...
[ "0.8371717", "0.7970483", "0.7849616", "0.77623194", "0.76046944", "0.7489791", "0.74053186", "0.7337551", "0.72349894", "0.7214379", "0.7194857", "0.70596033", "0.70298827", "0.70232034", "0.70232034", "0.70232034", "0.700243", "0.6985884", "0.69448555", "0.6921737", "0.6907...
0.8012341
1
Set material onto objects
def QwkI(vb7U, ei4T, LpOW=True): RKD7 = JEgA.logger('set_material()') vb7U = eBKF.u_stringify(vb7U) ei4T = eBKF.u_enlist(ei4T) if not LpOW: RKD7.debug('set_material(): setting {} onto :\n{}'.format(vb7U, ei4T)) N8OZ = [] for YEnM in ei4T: if ccKF.objectType(YEnM) not in ['mesh', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xbxx(NZQz, vb7U):\n RuJL = NZQz.data\n RuJL.materials.append(vb7U)", "def QwkI(YKHO, vb7U):\n assert type(vb7U) is Mx95\n YKHO.m = vb7U", "def xbxx(YKHO, rnM9):\n YKHO.material = ZgWQ.GUI.materials[rnM9]", "def bIXn(YKHO, vb7U: BaseMaterial) -> None:\n ...", "def vp46(YKHO, NZQz, bbJw...
[ "0.79132646", "0.7880739", "0.7732659", "0.77206284", "0.7717117", "0.7707218", "0.7687964", "0.76014334", "0.7589828", "0.7438558", "0.72321266", "0.71517134", "0.7134463", "0.71274716", "0.7089075", "0.70517665", "0.7006903", "0.6929958", "0.685279", "0.6831906", "0.6810065...
0.81287503
0
Replaces the old material with the new_materials in objects or in selected objects
def ZtEe(o1vh, lOVA, ei4T=None): if not ei4T: ei4T = ccKF.ls(sl=True, l=True) else: ei4T = ccKF.ls(ei4T, l=True) Tj7u = j61c(o1vh, shapes=False, l=True) for YEnM in ei4T: if eBKF.get_transform(YEnM, full_path=True) in eBKF.get_transforms(Tj7u, full_path=True): QwkI(lO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h9Je(YEnM, lyzZ, FCWf):\n fPbU = []\n for vb7U in kZw_.data.materials:\n J0sw = str(vb7U.scs_props.id)\n if J0sw in lyzZ:\n fPbU.append(vb7U)\n I35u = vslC.get_scs_root(YEnM)\n if I35u:\n ImdB.add_materials(I35u, fPbU)\n if len(FCWf) > 0:\n ImdB.cle...
[ "0.77265495", "0.7016014", "0.7011489", "0.6983491", "0.6972701", "0.6965031", "0.6873211", "0.6694151", "0.6577423", "0.6426682", "0.6326175", "0.62868655", "0.62818086", "0.6227955", "0.622048", "0.6159328", "0.6153661", "0.6137356", "0.61179614", "0.6109171", "0.6090811", ...
0.8345837
0
Converts a list of examples to a TensorDataset containing InputFeatures. Caches the InputFeatures. Utility function for train() and eval() methods. Not intended to be used directly.
def RKOk(YKHO, _73Q, b7La=False, Nlgd=False, dF5z=False): b0j5 = YKHO.tokenizer qIxc = YKHO.args if not Nlgd: Nlgd = qIxc['no_cache'] Hy7s.makedirs(YKHO.args['cache_dir'], exist_ok=True) _73Q = X2wT(_73Q, is_training=not b7La) Tuqy = 'dev' if b7La else 'train' Lwy8 = Hy7s.path.join(q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kTGD(bySB, Crrw, Ep8u):\n __n6 = ZylS.data.Dataset.from_tensor_slices((dict(bySB), Crrw))\n __n6 = __n6.shuffle(1000).repeat().batch(Ep8u)\n return __n6", "def kTGD(bySB, Crrw, Ep8u):\n __n6 = ZylS.data.Dataset.from_tensor_slices((dict(bySB), Crrw))\n __n6 = __n6.shuffle(1000).repeat().batch(E...
[ "0.71612924", "0.71612924", "0.71612924", "0.71612924", "0.71612924", "0.71612924", "0.71612924", "0.71590453", "0.71354246", "0.7123824", "0.7109105", "0.71025616", "0.70639175", "0.70490354", "0.70260483", "0.70260483", "0.70260483", "0.7005254", "0.7005254", "0.7005254", "...
0.62094337
71
Calculate tensor loss on a single batch of data. TODO categorical likelihood and KL coefficients, as well as choice of IWAE vs. ELBO, should live in loss_config (part of training config), not model_config.
def N77f(YKHO, u1qG: LossConfig, wRXp: Tuple[torch.Tensor, ...]) -> i3Ea: WKvO, ZHfW = wRXp assert u1qG.max_p_train_dropout is not None assert u1qG.score_imputation is not None assert u1qG.score_reconstruction is not None assert u1qG.score_reconstruction or u1qG.score_imputation qV0r, znzi = o6v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GT2U(YKHO, NArs, Wc9F):\n EcVT, (VUzz, j4l8), yzQ0 = Wc9F\n zseD, RUIi = YKHO.apply_fun(NArs, EcVT)\n qET2 = oyIN.sum(((zseD - VUzz) ** 2).squeeze() * yzQ0)\n return qET2", "def wOmn(YKHO, Wc9F: Tuple[torch.Tensor, ...]) -> ht2j.Tensor:\n nvEb, pan_ = YKHO.model(*Wc9F)\n N77f = YKHO.loss_fn...
[ "0.73799074", "0.7259854", "0.71619254", "0.71097785", "0.704281", "0.7026755", "0.70077384", "0.7006941", "0.6968026", "0.6958118", "0.690086", "0.68767333", "0.6874515", "0.68449706", "0.68425053", "0.6840649", "0.6840463", "0.683453", "0.68202424", "0.68170136", "0.6806502...
0.0
-1
Check is goal is reached
def gmS9(QTBn): return QTBn.world.models(X3eO[2])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u7J7(YKHO):\n if YKHO.reward_cumulative != None:\n WKvO = round((abs(YKHO.reward_cumulative) - abs(round(YKHO.reward_cumulative))) * 100)\n njxu = WKvO % 7\n JUER = WKvO % 20\n if njxu == 0 and WKvO != 0:\n YKHO.is_goal = True\n else:\n YKHO.is_goal =...
[ "0.782105", "0.78189397", "0.76168686", "0.7540653", "0.7540653", "0.7540653", "0.7473797", "0.74669325", "0.7458728", "0.74286705", "0.7423715", "0.7354303", "0.7252111", "0.7212836", "0.7183043", "0.71799356", "0.71736604", "0.7093415", "0.7082394", "0.7065576", "0.70215946...
0.0
-1
Generate random indexes with weights. This produces a list intended to be fed to random.choice(), with repeated indexes corresponding to the commaseparated weight values.
def esIq(UHFx: int, _mSQ: str): if _mSQ == '' or ',' not in _mSQ: S0MI.warning('Invalid weight! ({})', _mSQ) upAO = list(range(UHFx)) else: T6S7 = _mSQ.split(',') upAO = [] if len(T6S7) == UHFx: for YRbF, wEf2 in enumerate(T6S7): wEf2 = wEf2.st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XvqG(_mSQ):\n VOqT = [0] + _3JK(_mSQ)\n exwG = VOqT[-1]\n return ccBJ(VOqT, tuKI.randrange(exwG))", "def AEbl(O2Og):\n bS0K = list(range(len(O2Og)))\n XP5J = oyIN.array([1 / (upAO + 1) for upAO in O2Og])\n XP5J /= oyIN.sum(XP5J)\n TxaG = oyIN.random.choice(bS0K, p=XP5J)\n return TxaG"...
[ "0.7705655", "0.76720464", "0.75129235", "0.74976057", "0.7466266", "0.74346626", "0.7383208", "0.7328667", "0.73124826", "0.73052424", "0.72958577", "0.7271369", "0.72400707", "0.7200698", "0.71733266", "0.7131126", "0.70836323", "0.70589155", "0.70573735", "0.7054513", "0.7...
0.7168893
15
Add a customisable output to an instance.
def RSdM(p4_k, QWcs, pan_): p4_k.add_out(RvxH.Output(QWcs['output', ''], pan_, QWcs['input', ''], inst_in=QWcs['targ_in', ''], inst_out=QWcs['targ_out', '']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RSdM(YKHO, hlel):\n pass", "def RSdM(YKHO, mWFP: str, BWXx: Any) -> None:\n YKHO.template.add_output(KiuJ(mWFP, Value=BWXx))", "def RSdM(YKHO, VdBn):\n YKHO.outputs.append(VdBn)", "def RSdM(YKHO, hlel):\n YKHO._outputs.append(hlel)", "def H2v5(YKHO, hlel):\n YKHO.outputs.append(hlel)", ...
[ "0.74542826", "0.71334654", "0.6911685", "0.68602395", "0.67539114", "0.6711246", "0.67010075", "0.66874355", "0.65627766", "0.6454952", "0.63405347", "0.63273686", "0.6213747", "0.6155707", "0.6155198", "0.60880923", "0.60658985", "0.60540336", "0.6036176", "0.6028318", "0.6...
0.66476804
8
Return a dictionary mapping account ids to contracts with the given ids.
def bXXo(A07C): YMCl = {} hPH4 = len(A07C) for mLGw, id in enumerate(A07C): print(f'{mLGw}/{hPH4}', end='\r', file=HwRy.stderr) eSOG = SO77('encode-id', 'c', id).strip() yvT9 = SO77('show-contract', eSOG, '--format', 'json') U34r = qQXR.loads(yvT9) N6FN, VRAt = (U34r[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _PhJ(YKHO, KBgZ, PObu, A07C, QpfX=None):\n Aofo = {}\n for zFiD in YKHO.pool.get('contract.fees').browse(KBgZ, PObu, A07C, context=QpfX):\n Aofo[zFiD.contract_id.id] = True\n return Aofo.keys()", "def H9as(YKHO, KBgZ, PObu, A07C, QpfX=None):\n Aofo = {}\n for zFiD in YKHO.pool.get('cont...
[ "0.60104823", "0.59694666", "0.5854596", "0.57177615", "0.555118", "0.5532892", "0.5531246", "0.54819924", "0.54482317", "0.5426918", "0.5389241", "0.53863096", "0.53712255", "0.5362662", "0.5327187", "0.529395", "0.5244517", "0.52187175", "0.5209838", "0.5209621", "0.5185254...
0.8705646
0
Return a list of queries to be run to delete a contract with the given id.
def puIb(id): l633 = [f"DELETE FROM {tyNF} WHERE contract_id = '{id}';" for tyNF in sUjm] l633.append(f"DELETE FROM contracts WHERE id = '{id}';") return l633
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xDcj(id):\n Jxjs.execute(Pe9W.SQL(f'DELETE FROM {GTA_} WHERE id={id};'))", "def puIb(YKHO):\n return YKHO._get_queries_by_type(asxP.DELETE)", "async def delete_contract_by_id(q7dD):\n async with y2U9(YYN3) as HIPG:\n async with HIPG.acquire() as w2B8:\n hLKG = await HIrS(q7dD)\n ...
[ "0.6318249", "0.62855285", "0.6273593", "0.6064556", "0.5917876", "0.5917777", "0.569441", "0.5674585", "0.56682247", "0.5605597", "0.5587594", "0.5533152", "0.5491421", "0.5469519", "0.5455883", "0.5451788", "0.5408209", "0.5400424", "0.5370636", "0.5370208", "0.53567624", ...
0.8273183
0
Add a new donor to the donor database
def hoW5(P5Tf, UTX6='None', Dqam='None'): Hvxg = input("Please enter donation AMOUNT or 'main' for the menu: ") if Hvxg.lower() == 'main': return else: G9jH.basicConfig(level=G9jH.INFO) bo34 = G9jH.getLogger(__name__) p9bx = tdMG('donor.db') try: p9bx.conn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hoW5(YKHO):\n YKHO.save()", "def hoW5(mWFP):\n try:\n l0hJ = nh4x.create(name=mWFP, date_added=qcWV.date.today())\n l0hJ.save()\n print('Donor not in database. Adding donor.')\n except yXsM:\n print('This donor already exists. Adding a new donation...')", "def vd5D(YKHO...
[ "0.8536377", "0.84852", "0.79348755", "0.78591037", "0.78026026", "0.7779889", "0.77687067", "0.77169883", "0.76892275", "0.76754016", "0.75834304", "0.7577641", "0.7561011", "0.7561011", "0.7539371", "0.75387746", "0.7492811", "0.74894184", "0.7455425", "0.74342024", "0.7325...
0.78441083
4
Clears the terminal window. If a mac is being used, it runs the "clear" command. If a windows machine is being used, it runs the "cls" command. If it can't figure out what system is being used, it will print a newline CLEAR_PRINT[1] times. However, it can also be overriden if CLEAR_PRINT[0] is set to true.
def Y7Bk(): if not Ta3L[0]: try: if Hy7s.name == 'nt': Hy7s.system('cls') elif Hy7s.name == 'posix': Hy7s.system('clear') else: print('\n' * Ta3L[1]) except: print('\n' * Ta3L[1]) else: print(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yPVe():\n if Hy7s.name in ('nt', 'dos'):\n Hy7s.system('cls')\n elif Hy7s.name in ('linux', 'osx', 'posix'):\n Hy7s.system('clear')\n else:\n print('\\n') * 120", "def yPVe():\n if mWFP == 'nt':\n bGrB = Oz1B('cls')\n else:\n bGrB = Oz1B('clear')", "def Htf...
[ "0.84524864", "0.8416071", "0.83495706", "0.834695", "0.83372337", "0.83305115", "0.8306708", "0.8266692", "0.82623166", "0.82623166", "0.82623166", "0.82623166", "0.8246715", "0.82231337", "0.82199675", "0.82130796", "0.8203868", "0.8200472", "0.8197102", "0.8195526", "0.818...
0.87567824
0
Returns a list of files in cwd with extension '.rs' or '.fs'.
def zjuv(): xXNA = SC2F.glob('*.rs') CIG6 = SC2F.glob('*.fs') xXNA += CIG6 xXNA.sort() return xXNA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zjv5():\n return [nUeQ for nUeQ in Hy7s.listdir('.') if nUeQ[0] != '.' and (nUeQ[-3:] == '.pd' or Hy7s.path.isdir(nUeQ))]", "def IECG():\n return [Ux0P for Ux0P in A99F('.', '*')]", "def gJHF(YKHO) -> x1iM[str]:\n Bicb = Hy7s.getcwd()\n oIDU = []\n for MFy5, bGrB, RRlC in Hy7s.walk(Bicb):\n ...
[ "0.7459439", "0.72637993", "0.71855134", "0.71542144", "0.7079551", "0.70264626", "0.6994212", "0.6964627", "0.695266", "0.6937169", "0.69128513", "0.69077057", "0.6893725", "0.6879553", "0.6868403", "0.686637", "0.6784192", "0.67714334", "0.67635155", "0.67090744", "0.670236...
0.6906944
12
Sets cuml.global_settings.output_type to "mirror" for internal API handling. We need a separate function since `cuml.using_output_type()` doesn't accept "mirror" Yields string Returns the previous value in cuml.global_settings.output_type
def dF6a(): CFGp = nA36.global_settings.output_type try: nA36.global_settings.output_type = 'mirror' yield CFGp finally: nA36.global_settings.output_type = CFGp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cvwt(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'mirror')", "def cvwt(YKHO) -> str:\n return YKHO._mirror", "def SXc_(YKHO):\n return YKHO.__output_type", "def SXc_(YKHO):\n return YKHO.__output_type", "def SXc_(YKHO):\n return YKHO.__output_type", "def SXc_(YKHO):\n ...
[ "0.5815485", "0.5582334", "0.5549338", "0.5549338", "0.5549338", "0.5549338", "0.5549338", "0.5549338", "0.5496218", "0.544828", "0.54389846", "0.54232174", "0.54230005", "0.5384841", "0.5308639", "0.5308639", "0.5297965", "0.52661604", "0.5252645", "0.52382135", "0.52176505"...
0.92508215
0
Preserve the context stack by transferring it to a new instance.
def ZuD_(YKHO): xBC8 = QZXY.ExitStack() xBC8._exit_callbacks = YKHO._exit_callbacks YKHO._exit_callbacks = MUE7() return xBC8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uWqQ(YKHO):\n YKHO.set_context()", "def lGMP(YKHO):\n YKHO._save_context()\n return", "def PHG5(YKHO):\n YKHO.old_scope_stack = YKHO.scope_stack\n YKHO.old_scope_len = YKHO.scope_len\n YKHO.old_scopename = YKHO.scopename\n YKHO.old_current = YKHO.current\n YKHO.current = YKHO.scope_...
[ "0.74154985", "0.69227487", "0.68883103", "0.6794579", "0.67910635", "0.67700016", "0.6751049", "0.6627847", "0.6605722", "0.65720606", "0.6489753", "0.6443546", "0.6439255", "0.64095634", "0.63880175", "0.6372525", "0.6349445", "0.6319136", "0.625714", "0.6196795", "0.619047...
0.0
-1
Upsamples spatial dimension of x by `stride`.
def T51h(WKvO, KUnM=64, Ot1W=5, _0fC=2): return ZylS.keras.layers.Conv2DTranspose(filters=KUnM, kernel_size=Ot1W, strides=(_0fC, _0fC), padding='same', use_bias=False, activation=None).apply(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZQBP(WKvO, _0fC: int):\n Wc9F, xMux, ITS7 = WKvO.size()\n upAO = idx7.arange(_0fC, device=WKvO.device, dtype=idx7.float) / _0fC\n WKvO = WKvO.view(Wc9F, xMux, ITS7, 1)\n yvT9 = WKvO[..., :-1, :] * (1 - upAO) + WKvO[..., 1:, :] * upAO\n return yvT9.reshape(Wc9F, xMux, -1)", "def myXy(WKvO, _0fC...
[ "0.79486805", "0.76072145", "0.6770558", "0.67428917", "0.67202055", "0.66806245", "0.6678121", "0.65441924", "0.6515844", "0.64317125", "0.6401765", "0.6338476", "0.6329171", "0.6247345", "0.62440723", "0.6203976", "0.6139719", "0.61142707", "0.60329473", "0.6031518", "0.603...
0.62483144
13
Function returns a list containing the positions for sentences of max scores.
def QoLQ(g56l): jB5X = max(g56l) cxFb = [YRbF for YRbF in range(len(g56l)) if g56l[YRbF] == jB5X] return cxFb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aNGM(YKHO):\n YKHO.scores = oyIN.squeeze(YKHO.scores)\n m2j4 = oyIN.argmax(YKHO.scores)\n return (YKHO.scores[m2j4], m2j4)", "def UCIm(YKHO, g56l, Itpd):\n KCHu = XTiz.array(g56l)\n JFxB = XTiz.argsort(KCHu)[::-1]\n CIH_ = []\n if Itpd > len(JFxB):\n Itpd = len(JFxB)\n for YRbF...
[ "0.6900802", "0.670393", "0.6687243", "0.6687243", "0.6673055", "0.6659547", "0.6659547", "0.6654971", "0.6640273", "0.66297835", "0.656627", "0.65513164", "0.65513164", "0.65513164", "0.65513164", "0.65513164", "0.65066475", "0.64900345", "0.64900345", "0.64900345", "0.64900...
0.63771015
30
Test the repr output.
def H4zp(YKHO): eL5z = CTtz(default_color=dw6W(100, 200, 50, 10)) assert repr(eL5z) == 'Tile(default_color=PixelColor(red=100, green=200, blue=50, white=10, normalized=False))'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H4zp(YKHO):\n n5sN = repr(YKHO.p1)\n YKHO.assertEqual(n5sN, 'P1 (Sorcerer): 100/100', ('Calling repr on a sorcerer should give a repr in the ' + 'form Name (Character): HP/SP but got ' + '{} instead.').format(n5sN))", "def H4zp(YKHO):\n n5sN = repr(YKHO.p1)\n YKHO.assertEqual(n5sN, 'P1 (Rogue): 1...
[ "0.76350635", "0.76137245", "0.7457218", "0.74392164", "0.7357023", "0.73524374", "0.7193297", "0.717341", "0.71700263", "0.71566784", "0.71318895", "0.71222615", "0.7103202", "0.7098992", "0.7091727", "0.706464", "0.7050085", "0.7044583", "0.7031014", "0.69978005", "0.697973...
0.0
-1
Copied from NLTK package. Remove HTML markup from the given string.
def BP2x(_R2e): TKMu = ZbWC.sub('(?is)<(script|style).*?>.*?(</\\1>)', '', _R2e.strip()) TKMu = ZbWC.sub('(?s)<!--(.*?)-->[\\n]?', '', TKMu) TKMu = ZbWC.sub('(?s)<.*?>', ' ', TKMu) TKMu = ZbWC.sub('&nbsp;', ' ', TKMu) TKMu = ZbWC.sub(' ', ' ', TKMu) TKMu = ZbWC.sub(' ', ' ', TKMu) Z9JV = r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DVW7(l5Ny):\n RBfQ = ZbWC.compile('<.*?>')\n return RBfQ.sub('', l5Ny)", "def DVW7(l5Ny):\n RBfQ = ZbWC.compile('<.*?>')\n return RBfQ.sub('', l5Ny)", "def vDdR(YKHO, NPoT):\n d_Go = rKuS(NPoT).text\n return d_Go", "def DVW7(l5Ny):\n _R2e = ZbWC.compile('<.*?>')\n return _R2e.sub(...
[ "0.7911648", "0.78108275", "0.7776708", "0.77399015", "0.77308685", "0.772623", "0.77114683", "0.77098864", "0.77098864", "0.76968914", "0.76961595", "0.7667706", "0.7664256", "0.7640803", "0.7640803", "0.7640803", "0.7640803", "0.7640803", "0.7640803", "0.76189095", "0.76029...
0.67370135
81
calculate the algebraic distance between the data points and the mean circle centered at c=(xc, yc)
def ez0h(YKHO, Z9rn): UV8M, vHO5, Mkmy = Z9rn W8At = YKHO.calc_R(UV8M, vHO5) return (W8At - Mkmy) ** 2 + 1000 * (Mkmy - W8At > 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JKS4(hkuO, Gp5U, _M41, Jm8X):\n return epAf.sqrt((hkuO - _M41) ** 2 + (Gp5U - Jm8X) ** 2)", "def pImw(WKvO, LVAh, g0Hx=0.0, dlau=0.0):\n return oyIN.sqrt((WKvO - g0Hx) ** 2 + (LVAh - dlau) ** 2)", "def e6ux(nPrm, WKvO, LVAh):\n g0Hx = oyIN.dot(WKvO, oyIN.sum(nPrm, axis=1))\n dlau = oyIN.dot(LVA...
[ "0.72345", "0.71739435", "0.69974667", "0.6829366", "0.6767424", "0.66478336", "0.66059375", "0.6573859", "0.6518378", "0.64540607", "0.6439486", "0.6416119", "0.63881624", "0.63881624", "0.63881624", "0.6363905", "0.6356808", "0.6341897", "0.6335197", "0.6320041", "0.6275698...
0.0
-1
Get md5 hash of a file.
def xORj(qaEx): pFtS = HBct.md5() with open(qaEx, 'rb') as PzCc: for yOAJ in iter(lambda: PzCc.read(4096), b''): pFtS.update(yOAJ) return pFtS.hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pQm7(gIsw):\n with open(gIsw, 'rb') as eHNT:\n OZKa = eHNT.read()\n dQiW = HBct.md5(OZKa).hexdigest()\n return dQiW", "def vXG9(nUeQ):\n bNaV = HBct.md5()\n for bytes in Q4R3(nUeQ):\n bNaV.update(bytes)\n return bNaV.hexdigest()", "def sKcI(qaEx):\n razo = HBct.md5()\...
[ "0.8847774", "0.884309", "0.8757101", "0.8721587", "0.8718135", "0.8667928", "0.86547315", "0.8633722", "0.8633088", "0.8603421", "0.8582843", "0.85478145", "0.85424066", "0.8507927", "0.85029", "0.84668654", "0.8454612", "0.8446918", "0.84282523", "0.8422315", "0.8416644", ...
0.8240501
34
Clean the tweet before sentiment analysis. Remove cashtags, links and account names. Transform hashtags in words
def mh_Q(l5Ny): mXDZ = ZbWC.compile('(.)\\1{2,}', ZbWC.DOTALL) l5Ny = l5Ny.lower().replace('"', '').replace("'", '').replace(':', '').replace('.', '').replace('(', '').replace(')', '').replace(';', '').replace('?', '').replace('!', '').replace('#', '').replace('`', '').replace('[', '').replace(']', '').replace(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rq7K(Mau6):\n Mau6.cleaning_log, Mau6.text_cleaned = QrZ9(Mau6.text_raw, tokenize=True)", "def gq73(aWDa):\n aWDa = ZbWC.sub('@[^\\\\s]+', ' ', aWDa)\n aWDa = ZbWC.sub('http\\\\S+', ' ', aWDa)\n aWDa = ZbWC.sub('[\\\\W_]+\\\\s', ' ', aWDa)\n aWDa = JUOb.get_emoji_regexp().sub(u'', aWDa)\n r...
[ "0.79887575", "0.78212667", "0.7816693", "0.7813055", "0.7740801", "0.7727498", "0.76877964", "0.7652644", "0.7621999", "0.75198483", "0.748586", "0.74565905", "0.74557704", "0.74450415", "0.7414389", "0.7395653", "0.7381654", "0.738099", "0.7345335", "0.7333842", "0.7303039"...
0.78962386
1
Returns True if x is zero.
def a3cq(WKvO): return getattr(WKvO, 'is_zero', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Witr(YKHO, WKvO):\n pass", "def a3cq(WKvO):\n return WKvO.is_zero", "def CgEI(YKHO, WKvO):\n return abs(WKvO) <= 1e-06", "def PNxx(YKHO) -> bool:\n ...", "def Witr(YKHO):\n return rdXX(YKHO.value)", "def PNxx(YKHO):\n pass", "def Witr(YKHO):\n YKHO._validate_number()\n retur...
[ "0.9072252", "0.8920365", "0.88378465", "0.8146693", "0.80188257", "0.7944293", "0.76570696", "0.76517737", "0.7555576", "0.7534788", "0.7522394", "0.75034964", "0.7447978", "0.74435705", "0.74435705", "0.7441633", "0.74413663", "0.74271566", "0.73865736", "0.7383658", "0.738...
0.8064958
4
Compute carreduchamp for L.
def gX_7(aPd6, eHNT, Oa1e): P6bq = eHNT * Oa1e _KTe = aPd6.dot(P6bq) - eHNT * aPd6.dot(Oa1e) - Oa1e * aPd6.dot(eHNT) return _KTe / 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPd6(YKHO):\n return YKHO.P() / (1 - YKHO.P())", "def aPd6(YKHO):\n return YKHO.P() / (1 - YKHO.P())", "def aPd6(YKHO):\n if YKHO.l < GDa9.TOLERANCE:\n return 0.0\n TuQS = YKHO.lambda_max()\n return YKHO.l * TuQS / YKHO.mu", "def PaNY(YKHO):\n return -YKHO.calcL().T", "def gPbP...
[ "0.68073297", "0.68073297", "0.6664816", "0.6648044", "0.65856755", "0.6579983", "0.6437367", "0.630553", "0.62635005", "0.6261611", "0.62388057", "0.6213268", "0.6213268", "0.61888075", "0.6183717", "0.6178746", "0.60833746", "0.6071582", "0.6068861", "0.6065277", "0.6018579...
0.57742435
47
Push element x to the back of queue.
def _jXH(YKHO, WKvO): YKHO.stack.append(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()", "def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1):\n YKHO.q_.push(YKHO.q_.pop())", "def _jXH(YKH...
[ "0.847768", "0.8414127", "0.827978", "0.8259876", "0.82024014", "0.81944746", "0.81445456", "0.81445456", "0.81041193", "0.81004506", "0.80947775", "0.805236", "0.805236", "0.8037114", "0.8033887", "0.79936236", "0.79584146", "0.7948628", "0.7944436", "0.7899758", "0.787973",...
0.8627964
0
Removes the element from in front of queue and returns that element.
def BEuN(YKHO): YKHO.peek() return YKHO.queue.pop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def BEuN(YKHO):\n if len(YKHO._queue) <= 0:\n raise ValueError('Queue is empty. Canno...
[ "0.85544586", "0.8139229", "0.8034402", "0.7919136", "0.78867924", "0.78801817", "0.7800635", "0.7797685", "0.7745742", "0.77126163", "0.7708898", "0.76984704", "0.76660734", "0.76624036", "0.76601946", "0.7644675", "0.7642472", "0.7638037", "0.7634828", "0.7620861", "0.76151...
0.8328095
1
Get the front element.
def T7C_(YKHO): if YKHO.queue == []: while YKHO.stack != []: YKHO.queue.append(YKHO.stack.pop()) return YKHO.queue[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return YKHO.frontelem.elem", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]", "def TA6u(YKHO):\n return YKHO.storage[0]", "def VnzS(YKHO):\n return YKHO.head", "def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]", "def qnv...
[ "0.87835056", "0.83788836", "0.82574433", "0.80897844", "0.8012526", "0.7981897", "0.786668", "0.783555", "0.7815892", "0.77942365", "0.7735508", "0.769147", "0.76801795", "0.76465446", "0.7630563", "0.75877416", "0.7572392", "0.75053453", "0.74844474", "0.74813557", "0.74660...
0.0
-1
Wrap get_data_by_slug, abort 404 if missing data.
def Tprv(C3ST, s5ru, eJTR='', **B2fa): nPrm = o2vT(C3ST, s5ru, eJTR, **B2fa) if not nPrm: eTsH(404) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ad0N(YKHO):\n YKHO.assertIsNone(NMoC(YKHO.data, 'foo.zoo.lander'))", "def bwKZ(C3ST, o_gm, eJTR=''):\n nPrm = yLtf(C3ST, o_gm, eJTR)\n if not nPrm:\n return eTsH(404)\n return nPrm", "def o2vT(C3ST, s5ru, eJTR='', **B2fa):\n KAOR = NBxS(C3ST, s5ru, **B2fa)\n if not KAOR:\n r...
[ "0.64397424", "0.63040346", "0.6251102", "0.62342167", "0.61553764", "0.6123517", "0.6036873", "0.5861469", "0.5859371", "0.58318025", "0.5774769", "0.5730768", "0.5694524", "0.5671991", "0.56691355", "0.5613751", "0.5599981", "0.55955285", "0.55911493", "0.55744714", "0.5564...
0.80950075
0
Add instance to database.
def MkZ7(C3ST, ipZT=True, **B2fa): try: C3ST = YrZb(C3ST) except ImportError: return None KAOR = C3ST(**B2fa) NCls.session.add(KAOR) try: if ipZT: NCls.session.commit() else: NCls.session.flush() return KAOR.id except yXsM: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def JPHp(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def JPHp(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def JPHp(YK...
[ "0.8035661", "0.8028392", "0.79917854", "0.79917854", "0.79917854", "0.79771507", "0.7922472", "0.77960795", "0.76975876", "0.76975876", "0.76975876", "0.76975876", "0.76975876", "0.76975876", "0.76975876", "0.76975876", "0.7691028", "0.76878846", "0.7678201", "0.7664107", "0...
0.6973091
74
Test that a user can comment successfully.
def LSrk(YKHO): KIfG = GmgC.as_view() bD7m = gxEw('comments:all_comments', kwargs={'slug': YKHO.slug}) QePW = YKHO.request_factory.post(bD7m, data=YKHO.sample_comment, format='json') rliA(QePW, user=YKHO.user) geh0 = KIfG(QePW, slug=YKHO.slug) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CRE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dmhZ(YKHO):\n CBIr, bGrB = mv1M.objects.get_or_create(username='r_d_james')\n YKHO.client.force_login(user=CBIr)\n geh0 = YKHO.client.post(gxEw('comment', kwargs={'pk': 1}), {'content': 'test_comment'}, follow=True)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertEqual(geh0.context['comme...
[ "0.79242826", "0.7432771", "0.74174887", "0.73844004", "0.7129443", "0.70603013", "0.7041013", "0.7038509", "0.6986504", "0.69284064", "0.6914765", "0.690382", "0.6802683", "0.67583144", "0.6746587", "0.6746587", "0.67462826", "0.67318857", "0.6691779", "0.66706854", "0.66394...
0.7164857
4
Test that a user can't reply to a nonexistent comment.
def VgoN(YKHO): KIfG = VNTX.as_view() bD7m = gxEw('comments:comment_detail', kwargs={'slug': YKHO.slug, 'pk': '5463'}) QePW = YKHO.request_factory.post(bD7m, data=YKHO.sample_comment, format='json') rliA(QePW, user=YKHO.user) geh0 = KIfG(QePW, slug=YKHO.slug, pk='5463') YKHO.assertEqual(geh0.sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lGKi(YKHO):\n YKHO.user_signup()\n Ow0d, eOtH, bD7m = YKHO.post_comment(YKHO.comment_data)\n YKHO.assertEqual(Ow0d.status_code, jGRS.HTTP_201_CREATED)\n pQGt = 2223\n geh0 = YKHO.test_client.post(bD7m + str(pQGt) + '/replies/', data=YKHO.reply_data, format='json', HTTP_AUTHORIZATION=eOtH)\n Y...
[ "0.7068756", "0.6852041", "0.6711562", "0.66665125", "0.66382635", "0.65948206", "0.6548721", "0.6484807", "0.644558", "0.6430915", "0.6427521", "0.6393407", "0.639032", "0.63663805", "0.63429743", "0.63404554", "0.632016", "0.63013136", "0.6282434", "0.62783957", "0.6202109"...
0.0
-1
Test that a user can't comment on a nonexistent article.
def xewx(YKHO): KIfG = GmgC.as_view() bD7m = gxEw('comments:all_comments', kwargs={'slug': '1234what'}) QePW = YKHO.request_factory.post(bD7m, data=YKHO.sample_comment, format='json') rliA(QePW, user=YKHO.user) geh0 = KIfG(QePW, slug='1234what') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lild(YKHO):\n l3QS = YKHO.create_article()\n s5ru = l3QS.data['data']['slug']\n aM_I = YKHO.create_comment(s5ru)\n pQGt = aM_I.data.get('id')\n qRCH = YKHO.client.post('/api/articles/{}/comments/{}/like/'.format(s5ru, pQGt), format='json')\n YKHO.assertEqual(qRCH.data['detail'], 'Authenticati...
[ "0.7621367", "0.7523457", "0.6986883", "0.6950572", "0.6947181", "0.68820745", "0.68619955", "0.68414235", "0.6788561", "0.67801464", "0.6774999", "0.67359674", "0.67348224", "0.67076045", "0.6634333", "0.66191834", "0.658928", "0.6585355", "0.65744156", "0.6568981", "0.65334...
0.6798005
8