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
Test the ability of a GitHub instance to create a new gist
def dnB8(YKHO): YKHO.token_login() TMwk = YKHO.cassette_name('create_gist') with YKHO.recorder.use_cassette(TMwk): Oa1e = YKHO.gh.create_gist('Gist Title', {'filename.py': {'content': '#content'}}) assert isinstance(Oa1e, N2Yd.gists.Gist) assert Oa1e.files == 1 assert Oa1e.is_public() is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I1L7(YKHO):\n J_Dr = 123\n N2Yd.gist(J_Dr)\n YKHO.gh.gist.assert_called_once_with(J_Dr)", "def dnB8(YKHO):\n qIxc = ('description', {'files': ['file']})\n N2Yd.create_gist(*qIxc)\n YKHO.gh.create_gist.assert_called_once_with(*qIxc)", "def CW30(YKHO):\n K2vp = {'something.txt': {'conten...
[ "0.74638957", "0.73652744", "0.73198265", "0.7189491", "0.71791476", "0.7046024", "0.68771267", "0.6846391", "0.6831223", "0.6800732", "0.6797388", "0.66209996", "0.661212", "0.65584874", "0.6542128", "0.6527602", "0.649037", "0.64589727", "0.6395824", "0.6378962", "0.6319326...
0.79667455
0
Test the ability to retrieve a single gitignore template
def JplL(YKHO): TMwk = YKHO.cassette_name('gitignore_template') with YKHO.recorder.use_cassette(TMwk): a1PO = YKHO.gh.gitignore_template('Python') assert a1PO is not None assert a1PO != ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JplL(YKHO):\n rQow = 'Python'\n N2Yd.gitignore_template(rQow)\n YKHO.gh.gitignore_template.assert_called_once_with(rQow)", "def FUEO(YKHO):\n N2Yd.gitignore_templates()\n assert YKHO.gh.gitignore_templates.called is True", "def FUEO(YKHO):\n TMwk = YKHO.cassette_name('gitignore_templates'...
[ "0.7994527", "0.784171", "0.7681314", "0.7313256", "0.69499415", "0.6732315", "0.6709377", "0.66992044", "0.6584677", "0.65293616", "0.64282984", "0.641564", "0.6326744", "0.6320302", "0.6319883", "0.6280238", "0.6235194", "0.6232186", "0.62203753", "0.6214495", "0.6188164", ...
0.7878216
1
Test the ability to retrieve a single gitignore template
def lK6D(YKHO): TMwk = YKHO.cassette_name('non_existent_gitignore_template') with YKHO.recorder.use_cassette(TMwk): a1PO = YKHO.gh.gitignore_template('i_donut_exist') assert a1PO is not None assert a1PO == ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JplL(YKHO):\n rQow = 'Python'\n N2Yd.gitignore_template(rQow)\n YKHO.gh.gitignore_template.assert_called_once_with(rQow)", "def JplL(YKHO):\n TMwk = YKHO.cassette_name('gitignore_template')\n with YKHO.recorder.use_cassette(TMwk):\n a1PO = YKHO.gh.gitignore_template('Python')\n asser...
[ "0.7993269", "0.787593", "0.7840116", "0.7678901", "0.69523007", "0.6734831", "0.6710734", "0.670053", "0.6585237", "0.6529445", "0.64299846", "0.6416884", "0.63275814", "0.6320774", "0.6319773", "0.6281215", "0.6235933", "0.62331575", "0.6220883", "0.62155265", "0.6188927", ...
0.7311404
4
Test the ability to retrieve an Organization
def RBD1(YKHO): TMwk = YKHO.cassette_name('organization') with YKHO.recorder.use_cassette(TMwk): z1Rg = YKHO.gh.organization('github3py') assert isinstance(z1Rg, N2Yd.orgs.Organization)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vFnY(YKHO):\n pass", "def ZrPM(YKHO):\n pass", "def RtRs(YKHO):\n geh0 = YKHO.client.get(gxEw('organization_detail', kwargs={'pk': YKHO.organization_1.pk}), user=YKHO.user_1)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def vXTU(YKHO):\n pass", "def RrU7(YKHO):\n CBIr = I...
[ "0.80478424", "0.79612166", "0.78480476", "0.7784573", "0.762008", "0.7613491", "0.74562234", "0.743776", "0.74135476", "0.7338704", "0.73052317", "0.72961885", "0.72793114", "0.7225909", "0.72217", "0.7211069", "0.7133354", "0.7130761", "0.7108037", "0.71046436", "0.70902973...
0.74180967
8
Test the ability to retrieve a Pull Request
def Rckc(YKHO): TMwk = YKHO.cassette_name('pull_request') with YKHO.recorder.use_cassette(TMwk): XP5J = YKHO.gh.pull_request('sigmavirus24', 'github3.py', 119) assert isinstance(XP5J, N2Yd.pulls.PullRequest)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_get_pull_request(AZgw, e5Cn, Lxhm):\n QAIN = 'org'\n boHx = 'repo'\n NT__ = 'access'\n jehQ = 'release-candidate'\n qNKK = AZgw.async_patch('client_wrapper.ClientWrapper.get', return_value=AZgw.Mock(json=AZgw.Mock(return_value=[P7BK] if Lxhm else [])))\n geh0 = await D2VU(github_ac...
[ "0.73964113", "0.72857517", "0.7244397", "0.68294346", "0.6747639", "0.65565467", "0.6544737", "0.6529143", "0.64916253", "0.6469742", "0.64623314", "0.63681364", "0.6356475", "0.6351259", "0.6306304", "0.6306233", "0.6273882", "0.6257893", "0.62389284", "0.62387455", "0.6234...
0.7436311
0
Test the ability to retrieve a Repository
def RPzM(YKHO): TMwk = YKHO.cassette_name('repository') with YKHO.recorder.use_cassette(TMwk): Mkmy = YKHO.gh.repository('sigmavirus24', 'github3.py') assert isinstance(Mkmy, N2Yd.repos.repo.Repository)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cIWT(YKHO):\n mWFP = 'py-hub'\n boHx = YKHO.gh.get_repo(mWFP)\n YKHO.assertIsInstance(boHx, Kb4M.Repository)\n YKHO.assertEqual(boHx.name, mWFP)\n YKHO.assertTrue(boHx.repo_obj is not None)", "def cIWT(YKHO):\n DlLv = zqzB.create_repo()\n DlLv.put()\n geh0 = YKHO._make_api_call('get_r...
[ "0.75166345", "0.7419049", "0.7367641", "0.7241879", "0.7060717", "0.69325686", "0.69206864", "0.6902429", "0.6842984", "0.6826782", "0.68117714", "0.67632204", "0.67478466", "0.6734736", "0.66601646", "0.66597575", "0.6631156", "0.6625288", "0.6542379", "0.6530943", "0.65293...
0.6930955
6
Test the ability to use the issues search endpoint
def UBV9(YKHO): TMwk = YKHO.cassette_name('search_issues') with YKHO.recorder.use_cassette(TMwk): W5Ak = YKHO.gh.search_issues('github3 labels:bugs') assert isinstance(next(W5Ak), N2Yd.search.IssueSearchResult) assert isinstance(W5Ak, N2Yd.structs.SearchIterator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CArt(YKHO):\n pass", "def xm5V(YKHO):\n geh0 = YKHO.tester.get('/search?q=dummy')\n YKHO.assertEqual(geh0.status_code, 200)", "def L878(YKHO):\n _hkX = YKHO.client.get('/api/issues/', HTTP_AUTHORIZATION=f'Bearer {YKHO.token}')\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_200_OK)", "def u...
[ "0.7208146", "0.71490014", "0.71439075", "0.7066492", "0.70323026", "0.6862149", "0.6819111", "0.6733206", "0.6722743", "0.66943926", "0.6690885", "0.66329753", "0.66122353", "0.6602827", "0.6559898", "0.652464", "0.65214473", "0.6503866", "0.6502471", "0.64822143", "0.646532...
0.6870786
5
Return the default list of field names that will be used if the `Meta.fields` option is not specified.
def CvU0(YKHO, ERRh, B_WJ): return [YKHO.url_field_name] + list(ERRh.keys()) + list(B_WJ.fields.keys()) + list(B_WJ.forward_relations.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DUJZ(YKHO):\n NSNj = YKHO._meta.get_all_field_names()\n if 'id' in NSNj:\n NSNj.remove('id')\n return NSNj", "def gOl9(YKHO) -> x1iM[str]:\n return [YKHO.FIELD_ADAPTERS, YKHO.FIELD_LAST_SEEN, YKHO.FIELD_TAGS]", "def zD7E(YKHO):\n return [Jyyj['identifier'] for Jyyj in YKHO.fields if '...
[ "0.79876393", "0.7927293", "0.78612167", "0.76505476", "0.72504455", "0.71095604", "0.6939879", "0.69220006", "0.6878707", "0.6868579", "0.68525565", "0.684257", "0.68202287", "0.67812276", "0.6770284", "0.6765211", "0.67638093", "0.6738141", "0.6714033", "0.6711188", "0.6669...
0.7097311
6
Given a timeseries of forces, compute force autocorrealtions and means
def SbtN(WXkz, LtyS, EWrI=None, I_PG=None, ClXY=300 * P6bq.picosecond): g9LH = oyIN.mean(LtyS) WXkz = uqom.validate_quantity_type(WXkz, P6bq.picosecond) GLPP = WXkz[1] - WXkz[0] gqBk = int(ClXY / GLPP) xVEw = ZcI2(LtyS, gqBk, dstart=10) MaG9 = oyIN.arange(0, gqBk * GLPP._value, GLPP._value) * GL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZcI2(LtyS, gqBk, zYtG=10):\n if gqBk > LtyS.shape[0]:\n raise Exception('Not enough data')\n WmbL = int(oyIN.floor((LtyS.shape[0] - gqBk) / zYtG))\n ZaPF = oyIN.mean(LtyS)\n Dyub = oyIN.zeros(gqBk) * ZaPF.unit ** 2\n hLRM = 0\n for YRbF in range(WmbL):\n TjCq = LtyS[hLRM:hLRM + ...
[ "0.65705234", "0.6468588", "0.6379506", "0.6336278", "0.6309411", "0.6142981", "0.6127398", "0.60297894", "0.5995364", "0.5880795", "0.58342487", "0.58335763", "0.5819341", "0.58073795", "0.5804327", "0.57507974", "0.5743768", "0.571559", "0.5668971", "0.5664527", "0.5661716"...
0.7239781
0
Calculate the autocorrelation of a function Params
def ZcI2(LtyS, gqBk, zYtG=10): if gqBk > LtyS.shape[0]: raise Exception('Not enough data') WmbL = int(oyIN.floor((LtyS.shape[0] - gqBk) / zYtG)) ZaPF = oyIN.mean(LtyS) Dyub = oyIN.zeros(gqBk) * ZaPF.unit ** 2 hLRM = 0 for YRbF in range(WmbL): TjCq = LtyS[hLRM:hLRM + gqBk] - ZaPF ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVob(jzdc):\n YRbF, jzdc, cDK5 = jzdc\n C3ST = wOed(nJ9F, pot=meX1, spacing=HHea, rng=xlLU, step_size=Rf07, n_steps=d3gB, rand_steps=AXM6)\n Z9rn = NCnE.Autocorrelations_1d(C3ST)\n Z9rn.runModel(n_samples=cDK5, n_burn_in=zJ0E, mixing_angle=jzdc, verbose=X4Aw, verb_pos=YRbF)\n MhH7 = xahw(Z9rn.mo...
[ "0.68923485", "0.68142885", "0.6812137", "0.675785", "0.6685168", "0.6631956", "0.6584938", "0.65077233", "0.6424084", "0.63780946", "0.6374208", "0.63525236", "0.6348204", "0.6225394", "0.62136626", "0.6212852", "0.6196615", "0.61611146", "0.6128263", "0.6120473", "0.6087748...
0.59751636
26
Retrieves the surface area (in m^2) of the current selection set, if planar. Parameter(s) There are no parameters for this property. Return Value(s) Getting this property returns the following value(s). value A decimal value containing the specified data.
def f0tD(): wEf2 = EVWZ._app.Request('get.selection.area') return EVWZ._base._util._convert_str_to_type(wEf2, float)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B7Mv(YKHO):\n sLiv._update_node_data()\n return TZ5_[YKHO._index]", "def iVy9(YKHO):\n return YKHO.intrinsicValue('measuredarea')", "def sAdl(YKHO) -> float:\n return YKHO.side * YKHO.side", "def LFtF(YKHO):\n if YKHO._ndims == 2:\n return YKHO._container.get_radius() * 2 * H4yH.pi\...
[ "0.68046623", "0.654024", "0.6335262", "0.63216513", "0.62767726", "0.6273063", "0.62443554", "0.62428486", "0.6227786", "0.61907774", "0.6181538", "0.61780626", "0.6162881", "0.6160783", "0.61561733", "0.615092", "0.6145295", "0.61320126", "0.6101349", "0.6095941", "0.609581...
0.6693872
1
Retrieves the surface area exposed to outside conditions (in m^2) of the current selection set, if planar. Parameter(s) There are no parameters for this property. Return Value(s) Getting this property returns the following value(s). value A decimal value containing the specified data.
def qDp6(): wEf2 = EVWZ._app.Request('get.selection.exposure') return EVWZ._base._util._convert_str_to_type(wEf2, float)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZf3():\n wEf2 = EVWZ._app.Request('get.selection.underground')\n return EVWZ._base._util._convert_str_to_list(wEf2, float, float)", "def B7Mv(YKHO):\n sLiv._update_node_data()\n return TZ5_[YKHO._index]", "def f0tD():\n wEf2 = EVWZ._app.Request('get.selection.area')\n return EVWZ._base._...
[ "0.66937596", "0.6461512", "0.637155", "0.62364644", "0.62224644", "0.6191667", "0.6121718", "0.6103935", "0.60927033", "0.6088496", "0.60882825", "0.6075817", "0.6070639", "0.6047377", "0.60253996", "0.6013509", "0.6003981", "0.5962046", "0.5961052", "0.5939554", "0.5937123"...
0.711727
0
Retrieves the surface area exposed to ground conditions (m2), if planar. Parameter(s) There are no parameters for this property. Return Value(s) Getting this property returns the following value(s). value A decimal value containing the specified data.
def gZf3(): wEf2 = EVWZ._app.Request('get.selection.underground') return EVWZ._base._util._convert_str_to_list(wEf2, float, float)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B7Mv(YKHO):\n sLiv._update_node_data()\n return TZ5_[YKHO._index]", "def CtHn(YKHO) -> 'float':\n return w8nw.itkNarrowBandImageFilterBaseIF2IF2_GetIsoSurfaceValue(YKHO)", "def LFtF(YKHO):\n if YKHO._ndims == 2:\n return YKHO._container.get_radius() * 2 * H4yH.pi\n elif YKHO._ndims ==...
[ "0.63718736", "0.6345165", "0.61722326", "0.6144384", "0.6092975", "0.59737897", "0.587586", "0.58641464", "0.5852726", "0.568923", "0.5670754", "0.5645354", "0.55829453", "0.5578211", "0.5568073", "0.5553724", "0.55509996", "0.55502915", "0.554628", "0.55027556", "0.54669535...
0.61614776
3
Returns the index of the next object in the current selection set. A negative value indicates the end of the list. Parameter(s) There are no parameters for this property. Return Value(s) Getting this property returns the following value(s). index The zerobased index of the next selected object.
def F8pI(): wEf2 = EVWZ._app.Request('get.selection.next') return EVWZ._base._util._convert_str_to_type(wEf2, int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTBM(YKHO):\n if YKHO._index == len(YKHO) - 1:\n rYh9 = 0\n else:\n rYh9 = YKHO._index + 1\n return rYh9", "def a6fL(YKHO):\n if YKHO.index < len(YKHO.tracked_objects) - 1:\n YKHO.index += 1\n else:\n YKHO.index = YKHO.NO_SELECTION\n return YKHO.get_current_objec...
[ "0.72470915", "0.7120972", "0.70887035", "0.6821322", "0.68141884", "0.6753362", "0.6753362", "0.6732461", "0.6695438", "0.66944176", "0.66926396", "0.66724634", "0.6666537", "0.66595006", "0.6637921", "0.66353154", "0.66112393", "0.66112393", "0.66112393", "0.6601924", "0.66...
0.67495
7
Retrieves the primary material index of all currently selected objects. A negative result indicates that the material varies within the selection. Parameter(s) There are no parameters for this property. Return Value(s) Getting this property returns the following value(s). index The zerobased index of the primary materi...
def Mx95(): wEf2 = EVWZ._app.Request('get.selection.material') return EVWZ._base._util._convert_str_to_type(wEf2, int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, or8S):\n return YKHO.materials[or8S]", "def nfdH(YKHO):\n return YKHO.index", "def nfdH(YKHO):\n return YKHO._index", "def Vn7Z(YKHO):\n return YKHO.index", "def nfdH(YKHO) -> int:\n ...", "def JXCB(YKHO):\n return YKHO.index", "def Y1p8(YKHO):\n return YKHO.idx", ...
[ "0.6240701", "0.62250775", "0.6112", "0.60867417", "0.5982569", "0.5981852", "0.5951181", "0.5937362", "0.5934095", "0.59321105", "0.5930683", "0.5930683", "0.5929302", "0.5923728", "0.59091246", "0.5858826", "0.58585894", "0.58430946", "0.5842064", "0.58339655", "0.58339655"...
0.5791294
41
Sets the primary material index of all currently selected objects. Parameter(s) This property takes the following parameters. index A zerobased index of the material to be assigned, as obtained from the get.material.index property. This parameter can also be given as a string containing the material name, in which case...
def QwkI(d6pt, tZeD): l188 = EVWZ._base._util._convert_args_to_string('set.selection.material', d6pt, tZeD) EVWZ._app.Exec(l188)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BoIb(d6pt):\n l188 = EVWZ._base._util._convert_args_to_string('set.selection.alternate', d6pt)\n EVWZ._app.Exec(l188)", "def QwkI(MQSJ, Mx95):\n pass", "def QwkI(vb7U, ei4T, LpOW=True):\n RKD7 = JEgA.logger('set_material()')\n vb7U = eBKF.u_stringify(vb7U)\n ei4T = eBKF.u_enlist(ei4T)\n ...
[ "0.7192862", "0.6028602", "0.58743125", "0.58582395", "0.5837588", "0.58342284", "0.5814228", "0.56563133", "0.5649229", "0.559294", "0.5582433", "0.55591005", "0.5449705", "0.53979164", "0.5348632", "0.5335864", "0.5333331", "0.5325836", "0.53149664", "0.53086394", "0.530612...
0.79317635
0
Writes to sys.stderr using the desired print function.
def N7Dk(zy3j): def print(*KCHu): zy3j(*KCHu, file=HwRy.stderr) return print
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wajh(*qIxc, **B2fa):\n print(*qIxc, file=HwRy.stderr, **B2fa)", "def p_yA(*qIxc):\n print(*qIxc, file=HwRy.stderr)", "def Y2SS(tO9_):\n print(tO9_, file=HwRy.stderr)", "def p_yA(*qIxc, **B2fa):\n print(*qIxc, file=HwRy.stderr, **B2fa)", "def ob7F(*qIxc, **B2fa):\n print(*qIxc, file=HwRy....
[ "0.7994631", "0.7940132", "0.7910808", "0.79051185", "0.78697646", "0.7839756", "0.78255486", "0.77999616", "0.77823746", "0.7669844", "0.7597319", "0.75608057", "0.75268334", "0.75233567", "0.7506145", "0.7489339", "0.7411298", "0.7397491", "0.7370879", "0.7327012", "0.73163...
0.72820795
23
Read an Excel sheet from the current self.pandas_xlsx workbook. Returns a Pandas.Dataframe if successful.
def ydxb(YKHO, khdS: str, WBPg=None, DfZ1=None, l7uB: bool=False) -> CwDs.DataFrame: if YKHO.pandas_xlsx and khdS: jQ3Z = CwDs.read_excel(YKHO.pandas_xlsx, sheet_name=khdS, header=WBPg, index_col=DfZ1) vb7U = jQ3Z.values vb7U = vb7U.astype(oyIN.float64) _0VL = jQ3Z.index.values ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_uH(pmON: str, khdS: str) -> rLdf.core.frame.DataFrame:\n try:\n return rLdf.read_excel(pmON, sheet_name=khdS)\n except Exception as error:\n raise Exception('Caught this error: ' + repr(P1dF))", "def _CaP(YKHO, gIsw: str, khdS: str=None, WBPg=None, DfZ1=None, l7uB: bool=False) -> CwDs.D...
[ "0.7648218", "0.760825", "0.7600901", "0.73280835", "0.7224227", "0.72192913", "0.7176432", "0.70521367", "0.7005639", "0.699935", "0.6988438", "0.69838595", "0.6831577", "0.6819542", "0.6815768", "0.6804302", "0.6803077", "0.6777554", "0.6762663", "0.6726272", "0.67037034", ...
0.7461837
3
Read a .csv file. Returns a Pandas.Dataframe if successful.
def H562(gIsw: str, WBPg=None, DfZ1=None, l7uB: bool=False) -> CwDs.DataFrame: jQ3Z = CwDs.read_csv(gIsw, header=WBPg, index_col=DfZ1) if l7uB: return jQ3Z.T return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QFyr(u9X4) -> hxoQ:\n try:\n nPrm = rLdf.read_csv(u9X4)\n except Exception as e:\n print('read_csv_file failed: ', tTpl)\n raise\n return nPrm", "def HND1(Ux0P):\n jQ3Z = rLdf.read_csv(Ux0P)\n return jQ3Z", "def vBd4(WJHQ: str) -> rLdf.DataFrame:\n if type(WJHQ) != st...
[ "0.8444102", "0.8059967", "0.7954013", "0.7832977", "0.78316724", "0.78183055", "0.781306", "0.7784452", "0.77457774", "0.7725434", "0.77215415", "0.7712409", "0.76916206", "0.76351607", "0.7614371", "0.7604621", "0.7604486", "0.7594609", "0.75842154", "0.75410676", "0.754062...
0.7102158
73
Layer construction function for a batch normalization layer.
def hPCY(jzdc=8.0, hgjH=True, yPTj=VNqG, yDqo=oyIN.float64): CeEQ = lambda xlLU, ROpF: yPTj(xlLU, ROpF, yDqo) if hgjH else () def MsAN(xlLU, GhuM): GMOZ = (1,) Fg_i = CeEQ(xlLU, GMOZ) oLRV = (-1,) return (oLRV, (Fg_i,)) def levf(NArs, WKvO, **B2fa): Fg_i, = NArs ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qlQ2(YKHO):\n raise NotImplementedError", "def O7UQ(THkp, exwG, YDYE):\n if YDYE is None:\n return s6ah(THkp, exwG, YDYE)\n cpsO = ZylS.contrib.layers.variance_scaling_initializer(mode='FAN_AVG')\n fhcK = ZylS.layers.Dense(units=exwG, activation=None, kernel_initializer=cpsO)\n PxR3 = f...
[ "0.7822145", "0.7344527", "0.7331396", "0.7290029", "0.72511935", "0.72261995", "0.7217382", "0.71892524", "0.71824926", "0.71824926", "0.7075261", "0.69636375", "0.69360155", "0.69021803", "0.68602574", "0.6855855", "0.6852811", "0.6842028", "0.6830697", "0.6813088", "0.6798...
0.0
-1
Return the API URL associated with the BuildOrder model
def F5bL(): return gxEw('api-build-list')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F5bL():\n return gxEw('api-build-item-list')", "def jNi7(YKHO):\n return '/'.join((Q7me for Q7me in [YKHO.api_location, YKHO.api_type_name, YKHO.api_name, YKHO.api_version, YKHO.resource, YKHO.url_path, YKHO.url_postfix] if Q7me))", "def Ms2Z(YKHO):\n pass", "def F5bL(YKHO, *qIxc):\n return Y...
[ "0.7807037", "0.70455796", "0.7036642", "0.6954988", "0.69283915", "0.68986696", "0.68551207", "0.68217546", "0.6816077", "0.6746104", "0.67294204", "0.67155", "0.6691839", "0.66216034", "0.6605981", "0.6603971", "0.6603971", "0.6581789", "0.6469361", "0.6464934", "0.6415287"...
0.7941292
0
String representation of a BuildOrder
def zAg0(YKHO): return YKHO.reference
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vwqL(YKHO, T4Wy='C'):\n pass", "def P5LV(T4Wy: Order) -> str:\n hzQh = T4Wy.__dict__\n hzQh['price'] = str(hzQh['price'])\n return qQXR.dumps(hzQh)", "def wHJl(YKHO):\n return '<Orders(Order: %s)>' % YKHO.order_no", "def wHJl(YKHO):\n return '<OrderLogs(OrderLogs: %s)>' % YKHO.order.ord...
[ "0.7015978", "0.6929877", "0.6700924", "0.6683522", "0.6680684", "0.6675245", "0.6584665", "0.6467747", "0.64549226", "0.643281", "0.64284235", "0.64238024", "0.642208", "0.64130807", "0.6398497", "0.63868403", "0.63651437", "0.6332379", "0.6327451", "0.6324927", "0.63118136"...
0.0
-1
Return the web URL associated with this BuildOrder
def hlzF(YKHO): return gxEw('build-detail', kwargs={'pk': YKHO.id})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oX6i(YKHO):\n if 'webUrl' in YKHO._prop_dict:\n return YKHO._prop_dict['webUrl']\n else:\n return None", "def oX6i(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'web_url')", "def oX6i(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'web_url')", "def oX6i(YKHO):\n rais...
[ "0.754633", "0.7496376", "0.7496376", "0.7350741", "0.7210938", "0.7193263", "0.71706074", "0.7108257", "0.70941377", "0.7073629", "0.7073629", "0.7071916", "0.7071916", "0.7057393", "0.7051575", "0.70408356", "0.70408356", "0.70408356", "0.70408356", "0.70408356", "0.7040835...
0.0
-1
Returns true if this build is "overdue". Makes use of the OVERDUE_FILTER to avoid code duplication
def Gjmh(YKHO): xDcj = gciT.objects.filter(pk=YKHO.pk) xDcj = xDcj.filter(gciT.OVERDUE_FILTER) return xDcj.exists()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gjmh(YKHO):\n return YKHO._due < LgWF.now()", "def PRpX() -> bool:\n YzvF = hfK9(dxhl['due']) if dxhl.get('due') else qcWV.max\n return YzvF < qcWV.now(tz=YzvF.tzinfo)", "def ZFN3(YKHO):\n return YKHO._current_day == YKHO._days or all(map(lambda uWIP: uWIP.is_dead(), YKHO._flowers))", "def Gj...
[ "0.754919", "0.71338356", "0.694802", "0.69377184", "0.6471875", "0.6314603", "0.6283125", "0.6241443", "0.62316453", "0.61880857", "0.61487556", "0.6060439", "0.60073733", "0.6004321", "0.6000938", "0.59889525", "0.5976381", "0.5964768", "0.58900666", "0.58606875", "0.585256...
0.87774366
0
Return True if this build is active.
def WZHJ(YKHO): return YKHO.status in zn5X.ACTIVE_CODES
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ksfB(YKHO):\n return YKHO.status in zn5X.ACTIVE_CODES", "def WZHJ(YKHO) -> bool:\n return YKHO._active", "def WZHJ(YKHO) -> bool:\n return qe4Y.get(YKHO, 'active')", "def IN9u(YKHO):\n return YKHO.isAvailable() and YKHO.is_enabled", "def ksfB(YKHO) -> bool:\n return YKHO._is_active", "...
[ "0.8512864", "0.78885126", "0.78705466", "0.7832909", "0.7795714", "0.7795714", "0.7795714", "0.7758024", "0.775533", "0.775533", "0.7733534", "0.77316815", "0.7720223", "0.7715826", "0.7715826", "0.7715826", "0.7715826", "0.7715826", "0.7715826", "0.769276", "0.769276", "0...
0.83065933
1
Returns the "trackable" BOM items for this BuildOrder.
def j8aM(YKHO): DumB = YKHO.bom_items DumB = DumB.filter(sub_part__trackable=True) return DumB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TqIJ(YKHO):\n DumB = YKHO.bom_items\n DumB = DumB.filter(sub_part__trackable=False)\n return DumB", "def XHT4(YKHO):\n return YKHO.part.get_bom_items()", "def Dp5w(YKHO):\n return dVRn.list(YKHO._api, part=YKHO.pk)", "def bA_J(YKHO):\n SQ3m = cVBR.objects.filter(component=True).exclude(...
[ "0.7390402", "0.71752673", "0.7062129", "0.6502466", "0.58392155", "0.57950115", "0.572797", "0.566904", "0.56425285", "0.56262326", "0.5620423", "0.56127834", "0.5599264", "0.5561307", "0.5510245", "0.5505976", "0.54394585", "0.5411491", "0.54023534", "0.530964", "0.53036803...
0.844318
0
Returns True if this BuildOrder has trackable BomItems.
def u6uF(YKHO): return YKHO.tracked_bom_items.count() > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mMxU(YKHO):\n return YKHO.untracked_bom_items.count() > 0", "def XE3e(YKHO):\n return len(list(YKHO)) > 0", "def ag2o(YKHO):\n return True if len(YKHO._orders_list) > 0 else False", "def MQCq(YKHO) -> bool:\n return YKHO._item is not None", "def j8aM(YKHO):\n DumB = YKHO.bom_items\n D...
[ "0.729794", "0.6430301", "0.61353886", "0.61344135", "0.60926634", "0.60379624", "0.6010249", "0.5990647", "0.5858548", "0.58313173", "0.5824706", "0.58138317", "0.5803108", "0.5799058", "0.5799058", "0.5740665", "0.5706991", "0.5682662", "0.5682311", "0.56691563", "0.5666781...
0.7956176
0
Returns the "non trackable" BOM items for this BuildOrder.
def TqIJ(YKHO): DumB = YKHO.bom_items DumB = DumB.filter(sub_part__trackable=False) return DumB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j8aM(YKHO):\n DumB = YKHO.bom_items\n DumB = DumB.filter(sub_part__trackable=True)\n return DumB", "def bA_J(YKHO):\n SQ3m = cVBR.objects.filter(component=True).exclude(id=YKHO.id)\n SQ3m = SQ3m.exclude(id__in=[Q7me.id for Q7me in YKHO.used_in.all()])\n return SQ3m", "def XHT4(YKHO):\n ...
[ "0.7648694", "0.73988473", "0.72162527", "0.70413774", "0.6873044", "0.6355728", "0.6137754", "0.60840344", "0.5964984", "0.589416", "0.5887668", "0.5874781", "0.5834792", "0.5832557", "0.5779632", "0.5720543", "0.5717317", "0.5651632", "0.5640873", "0.56300396", "0.5481305",...
0.8496849
0
Returns True if this BuildOrder has non trackable BomItems.
def mMxU(YKHO): return YKHO.untracked_bom_items.count() > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u6uF(YKHO):\n return YKHO.tracked_bom_items.count() > 0", "def LwKx(YKHO):\n return len(YKHO._backpack) == 0", "def XE3e(YKHO):\n return len(list(YKHO)) > 0", "def FBfn(YKHO, ht7m) -> bool:\n nhBh = YKHO.filter(item_id=ht7m).exists()\n return not nhBh", "def FBfn(YKHO):\n return not b...
[ "0.76938474", "0.72467464", "0.6672471", "0.6444841", "0.6374957", "0.6304505", "0.6250823", "0.6224463", "0.6204691", "0.6198417", "0.6178471", "0.6163595", "0.61606413", "0.614786", "0.6136491", "0.6123672", "0.6110396", "0.61096674", "0.6103996", "0.6098754", "0.60971934",...
0.80540276
0
Return the number of build outputs (StockItem) associated with this build order
def VYgB(YKHO): return YKHO.build_outputs.count()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V60p(YKHO):\n cTRz = YKHO.active_builds.aggregate(quantity=zphJ('quantity'))['quantity']\n if cTRz is None:\n cTRz = 0\n return cTRz", "def zNig(YKHO):\n return len(YKHO._builds)", "def nKid(YKHO):\n cTRz = 0\n for hlel in YKHO.complete_outputs:\n cTRz += hlel.quantity\n ...
[ "0.66855574", "0.661925", "0.6432251", "0.62805533", "0.61374545", "0.60890585", "0.6054262", "0.6042671", "0.604048", "0.6033911", "0.5966024", "0.59596413", "0.59593457", "0.5936594", "0.5932568", "0.58969253", "0.5883721", "0.5873679", "0.5850421", "0.58499604", "0.5849960...
0.7421746
0
Returns True if this build has more than zero build outputs
def KHoL(YKHO): return YKHO.output_count > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VYgB(YKHO):\n return YKHO.build_outputs.count()", "def KnuQ(YKHO):\n return True", "def KnuQ(YKHO):\n return True", "def KnuQ(YKHO):\n return True", "def xn_7(YKHO):\n return not YKHO._valid_output_exists()", "def lsmZ(YKHO):\n return len(YKHO.specific_packages) == 0", "def jAey(o...
[ "0.72538704", "0.6696522", "0.6696522", "0.6696522", "0.6694364", "0.6687676", "0.66336364", "0.66189086", "0.65998226", "0.6503103", "0.6482365", "0.6425423", "0.64041644", "0.6394634", "0.63699013", "0.62764406", "0.6235254", "0.6218629", "0.6215485", "0.6209808", "0.620717...
0.88616806
0
Returns True if this build can be "completed". Must not have any outstanding build outputs 'completed' value must meet (or exceed) the 'quantity' value
def xUQc(YKHO): if YKHO.incomplete_count > 0: return False if YKHO.remaining > 0: return False if not YKHO.are_untracked_parts_allocated(): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def check_if_plan_is_completed(YKHO):\n YKHO.completed = True\n for gCvs in OKTO:\n for AKpu in _tPR:\n if YKHO.production_with_addon[gCvs][AKpu].amount < YKHO.desired_amount[gCvs][AKpu]:\n YKHO.completed = False\n return", "def g9mP(YKHO):\n return ...
[ "0.69949955", "0.69855815", "0.6773265", "0.67529184", "0.66829675", "0.66611105", "0.66390383", "0.66138875", "0.6514521", "0.65071905", "0.65010446", "0.64813375", "0.6479351", "0.6463071", "0.64616466", "0.6461149", "0.6458164", "0.63832325", "0.6381287", "0.6328193", "0.6...
0.65037686
10
Test if the supplied BomItem has been fully allocated
def gdbL(YKHO, WPvi, hlel=None): if WPvi.consumable: return True return YKHO.unallocated_quantity(WPvi, hlel) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DL8j(YKHO, hlel):\n if hlel is None:\n XHT4 = YKHO.untracked_bom_items\n else:\n XHT4 = YKHO.tracked_bom_items\n for WPvi in XHT4:\n if not YKHO.is_bom_item_allocated(WPvi, hlel):\n return False\n return True", "def LWCs(YKHO):\n return YKHO.num_items == YKHO.ca...
[ "0.70016", "0.6857871", "0.6744502", "0.67284465", "0.67093116", "0.65922374", "0.6586614", "0.6586066", "0.6586066", "0.6542765", "0.65212226", "0.65212226", "0.651137", "0.64947236", "0.6483168", "0.6431704", "0.64101124", "0.6381346", "0.63510394", "0.6343381", "0.632673",...
0.72407514
0
Returns a list of parts required to build this part (BOM).
def Tf6W(YKHO): SQ3m = [] for ZfUD in YKHO.bom_items: SQ3m.append(ZfUD.sub_part) return SQ3m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tf6W(YKHO):\n SQ3m = []\n for IJjE in YKHO.bom_items.all().select_related('sub_part'):\n SQ3m.append(IJjE.sub_part)\n return SQ3m", "def wgln(YKHO):\n SQ3m = []\n for WPvi in YKHO.bom_items:\n iD6m = YKHO.remaining * WPvi.quantity - YKHO.allocated_quantity(WPvi)\n if WPvi....
[ "0.8148172", "0.7572003", "0.7070171", "0.69619864", "0.6807098", "0.67804635", "0.6743953", "0.6506553", "0.6506553", "0.6506553", "0.6494366", "0.6493678", "0.6426792", "0.63643205", "0.63043815", "0.62952334", "0.62030864", "0.61321473", "0.60901624", "0.60572547", "0.6046...
0.85138905
0
Returns True if the build status is COMPLETE.
def ZZQq(YKHO): return YKHO.status == Iko6.COMPLETE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZZQq(YKHO):\n return YKHO.status == YKHO.COMPLETE", "def ZdZa(YKHO):\n return YKHO.status in VHFU", "def ZdZa(YKHO):\n return YKHO.progress == 'Complete'", "def Pt1K(YKHO) -> bool:\n if YKHO.status.lower() in yT6B:\n return True\n return False", "def g9mP(YKHO) -> bool:\n retur...
[ "0.73647517", "0.7264585", "0.7234926", "0.7211199", "0.7123987", "0.7117628", "0.7108173", "0.707229", "0.7048753", "0.69556", "0.69475913", "0.6917081", "0.68871343", "0.68871343", "0.68871343", "0.68871343", "0.68871343", "0.68871343", "0.68871343", "0.68871343", "0.688713...
0.8492755
0
Return the API URL used to access this model
def F5bL(): return gxEw('api-build-item-list')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F5bL(Emd4) -> str:\n return Emd4.__api_url", "def Ms2Z(YKHO):\n pass", "def Ms2Z(YKHO):\n return YKHO._api_url", "def Ms2Z(YKHO):\n return YKHO._api_url", "def F5bL(YKHO):\n return YKHO.api_url", "def up9T(YKHO):\n w2IS = YKHO.api_root + YKHO.model_url\n return w2IS", "def Ms2Z...
[ "0.8625969", "0.8606677", "0.8529531", "0.8529531", "0.8466005", "0.8446676", "0.8327425", "0.8227157", "0.79132324", "0.78440875", "0.7839809", "0.7835635", "0.77996665", "0.77719647", "0.77631253", "0.7708302", "0.76961863", "0.76199925", "0.7618565", "0.7596387", "0.755716...
0.75453085
21
Normalize all variables in a dataset and return their weighted mean. Relative weights for each variable group are passed via the recipe.
def Fbrg(__n6: 'xr.Dataset', _mSQ: dict) -> 'xr.DataArray': HBfW = __n6 / __n6.median() PlHw = zuVY.DataArray([_mSQ[Xgtv] for Xgtv in __n6], coords={'variable_group': list(__n6)}, dims='variable_group') cB5F = HBfW.to_array(dim='variable_group').weighted(PlHw).mean('variable_group') cB5F.name = 'overall...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K3RL(YKHO, V0PS):\n return YKHO.normalize(lambda Csk6, WKvO: (WKvO - YKHO.dimensions_means[Csk6]) / YKHO.dimensions_std[Csk6], V0PS)", "def NkkI(__n6, ZsZx, yGTL, M1Jx, nxmN):\n try:\n oE0l = oyIN.sum(oyIN.multiply(nxmN, yGTL), axis=0)\n DjO_ = oyIN.sum(oyIN.multiply(nxmN, M1Jx), axis=0)\...
[ "0.6502813", "0.63731354", "0.63661367", "0.6244113", "0.6174594", "0.6134902", "0.61001277", "0.60930896", "0.6092329", "0.60884583", "0.6082441", "0.6080842", "0.6075599", "0.6044117", "0.60353076", "0.6023255", "0.60220915", "0.602091", "0.6016921", "0.60152066", "0.599455...
0.65935344
0
Calculate normalized weights for each model N.
def E7vT(G8Ju: Union['np.array', None], UIlt: Union['np.array', None], HRdS: Union[float, None], k4Pq: Union[float, None]) -> 'np.array': M6pt = 1 hGZl = None UUZ1 = 1 if G8Ju is not None: M6pt = oyIN.exp(-(G8Ju / HRdS) ** 2) hGZl = oyIN.isfinite(G8Ju) if UIlt is not None: if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FWlN(YKHO):\n exwG = sum(YKHO.weights_curr)\n for YRbF in range(YKHO.nparticles):\n YKHO.weights_curr[YRbF] /= float(exwG)", "def FWlN(YKHO):\n exwG = sum(YKHO.weights_curr)\n for YRbF in range(YKHO.nparticles):\n YKHO.weights_curr[YRbF] /= float(exwG)", "def NkkI(C3ST, D1HL):\n ...
[ "0.755107", "0.755107", "0.7364936", "0.71523726", "0.70147026", "0.7011472", "0.6561055", "0.6550549", "0.651654", "0.651654", "0.64368296", "0.6433767", "0.64304376", "0.63938534", "0.63624305", "0.63436204", "0.6333563", "0.6333563", "0.6333563", "0.6333563", "0.6333563", ...
0.0
-1
convenience function to return a MockBot instance
def eLpg(): return uO4L()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WQ3g():\n if not t2SN:\n i9UK()\n return t2SN", "def qNKK(YKHO):\n return YKHO.mock", "def xy6y(YKHO):\n JyK9 = XN37.MockBot()\n YKHO.assertIsInstance(JyK9, ZOrr.ext.commands.Bot)", "def ykTu():\n mS46 = zDJJ.Mock()\n mS46.mention = '@GearsandCogs'\n lyVP = zDJJ.AIOMock(upt...
[ "0.725487", "0.6972462", "0.67154545", "0.65604436", "0.6499726", "0.64887524", "0.64612263", "0.62316257", "0.62279016", "0.62078863", "0.61969286", "0.61969286", "0.616304", "0.61607504", "0.61607504", "0.61607504", "0.61559415", "0.615547", "0.6106776", "0.60929", "0.60735...
0.8148914
0
Returns the kinetic energy in GeV
def kkFr(YKHO): return YKHO.bunch.getSyncParticle().kinEnergy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D3bH(YKHO, nPrm):\n VjGZ = 'gas_density'\n if VjGZ in nPrm.keys():\n InLe = nPrm[VjGZ][YKHO.index]\n else:\n InLe = 1.0\n jlSq = 0\n for COc9 in 'ijk':\n VjGZ = '%s_velocity' % COc9\n if VjGZ in nPrm.keys():\n p8Jz = nPrm[VjGZ][YKHO.index]\n p8Jz...
[ "0.807771", "0.80498767", "0.7985918", "0.7536162", "0.7510274", "0.74788994", "0.7348727", "0.7221111", "0.7175159", "0.71503925", "0.70789826", "0.70670724", "0.7015046", "0.7007478", "0.6986334", "0.6983396", "0.6968115", "0.69612366", "0.6953003", "0.69281745", "0.6891876...
0.75016177
5
sanitize a string before JSONize it
def aSeI(vIwR): return vIwR.strip().replace('\\', '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jkpV(vIwR):\n EESs = ZbWC.sub('\\\\s+', ' ', vIwR, flags=ZbWC.UNICODE).strip()\n return ZbWC.sub('\"', '\\\\\"', EESs, flags=ZbWC.UNICODE)", "def meuR(YKHO, vIwR):\n if wv_C.search(vIwR):\n return None\n else:\n return vIwR", "def ufzq(nMY2):\n return nMY2.replace('\\\\\"', '')...
[ "0.8010374", "0.7851549", "0.7356399", "0.69638634", "0.69009554", "0.688793", "0.688416", "0.68598646", "0.68503124", "0.68422234", "0.68173206", "0.68157816", "0.67952716", "0.6766108", "0.6650907", "0.66410714", "0.65669966", "0.6562215", "0.6558827", "0.6545952", "0.65400...
0.0
-1
The manual explains that the computer supports two registers and six instructions (truly, it goes on to remind the reader, a stateoftheart technology). The registers are named a and b, can hold any nonnegative
def dtLd() -> None: sLVX = Tqtw() sLVX.load_program() sLVX.run_program() Euh2(sLVX.register_b)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YBMb(hBsG, jzdc, Fg_i, Z9rn):\n hBsG[Z9rn] = hBsG[jzdc] & Fg_i", "def LvFe(hBsG, jzdc, Fg_i, Z9rn):\n hBsG[Z9rn] = hBsG[jzdc] & hBsG[Fg_i]", "def bvYB(YKHO, pA1o, OCGX):\n YKHO.register[pA1o] += YKHO.register[OCGX]", "def H0qZ(YKHO, pA1o, OCGX):\n YKHO.register[pA1o] *= YKHO.register[OCGX]", ...
[ "0.6493517", "0.6352481", "0.6338303", "0.6133606", "0.60975784", "0.60479915", "0.60140204", "0.5987322", "0.5944533", "0.5926142", "0.59258515", "0.5873022", "0.5846787", "0.58410424", "0.5838016", "0.5837571", "0.57844746", "0.5772596", "0.5757355", "0.5728599", "0.5715622...
0.0
-1
sigma is the variance theta is the orientation lambda is the wavelength of the sinusoidal carrier psi =
def jzWu(WTkW, q7In, Zlsf, nYlf, KMvS): NTJI = WTkW W9fC = float(WTkW) / KMvS whXI = 3 bYzl = max(abs(whXI * NTJI * oyIN.cos(q7In)), abs(whXI * W9fC * oyIN.sin(q7In))) bYzl = oyIN.ceil(max(1, bYzl)) Z3uP = max(abs(whXI * NTJI * oyIN.sin(q7In)), abs(whXI * W9fC * oyIN.cos(q7In))) Z3uP = oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTkW(YKHO):\n if 'SIGMA' in YKHO.hdu_names():\n return YKHO['SIGMA'].flux\n else:\n return oyIN.ones(YKHO.wave_count())", "def DfY9(Jf1E, r1VO, exwG, vg0C):\n return (4.3009125e-06 * vg0C / (NbLi(exwG, Jf1E / r1VO) * r1VO)) ** 0.5", "def EU4y(YKHO, fHXl):\n Md2Z = oyIN.zeros((YKHO...
[ "0.691077", "0.68946594", "0.6857849", "0.6668874", "0.6662286", "0.6572253", "0.6572253", "0.65336394", "0.6473936", "0.6430789", "0.6412366", "0.6391071", "0.63412964", "0.6327929", "0.6312851", "0.6312851", "0.6298299", "0.6298299", "0.628378", "0.6278182", "0.6276297", ...
0.0
-1
Set the gradients of this parameter to all zeros.
def frhb(YKHO): YKHO._grad = oyIN.zeros_like(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sbx9(YKHO):\n for xqoZ in YKHO.parameters():\n if xqoZ.grad is None:\n xqoZ.grad = xqoZ.new(*xqoZ.shape)\n xqoZ.grad.zero_()", "def frhb(YKHO):\n for xqoZ in YKHO.params:\n xqoZ.grad = None", "def qw6L(YKHO):\n for XP5J in YKHO.parameters():\n if XP5J.grad_v ...
[ "0.8242325", "0.81128144", "0.8016262", "0.80088145", "0.80088145", "0.8007073", "0.79010785", "0.78523535", "0.783065", "0.7811173", "0.77461797", "0.7672798", "0.76408136", "0.7635483", "0.7581383", "0.75730664", "0.7565935", "0.7565935", "0.7565935", "0.7565935", "0.750793...
0.7873785
7
(Re)set parameter gradients to zero.
def frhb(YKHO): for xqoZ in YKHO.parameters(): xqoZ.zero_grad()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def frhb(YKHO):\n for xqoZ in YKHO.params:\n xqoZ.grad = None", "def sbx9(YKHO):\n for xqoZ in YKHO.parameters():\n if xqoZ.grad is None:\n xqoZ.grad = xqoZ.new(*xqoZ.shape)\n xqoZ.grad.zero_()", "def qw6L(YKHO):\n for XP5J in YKHO.parameters():\n if XP5J.grad_v ...
[ "0.83086115", "0.82766294", "0.81677663", "0.8101196", "0.8010191", "0.7950889", "0.7919059", "0.78753525", "0.7785489", "0.7785489", "0.7785489", "0.7785489", "0.77682865", "0.77682865", "0.7746875", "0.7746875", "0.7741933", "0.77403253", "0.76801515", "0.7665582", "0.76494...
0.7986274
5
Multiplies self with other (self other)
def E_tF(YKHO, Elif): try: g4y1 = {} for tk5Y in Elif._inputs.keys(): g4y1[tk5Y] = [[Elif, YKHO._val]] for tk5Y in YKHO._inputs.keys(): if tk5Y in g4y1: g4y1[tk5Y].append([YKHO, Elif._val]) else: g4y1[tk5Y] = [[YKHO, Elif._v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_tF(YKHO, Elif):\n return YKHO", "def E_tF(YKHO, Elif):\n return YKHO.value * Elif", "def E_tF(YKHO, Elif):\n pass", "def NRQY(YKHO, Elif):\n YKHO = YKHO @ Elif\n return YKHO", "def E_tF(YKHO, Elif):\n Aofo = o7DN('multiplication', [YKHO, Elif])\n YKHO.add_children(Aofo)\n Elif...
[ "0.85278964", "0.8376608", "0.83757144", "0.83631307", "0.8311435", "0.8281704", "0.8281704", "0.81491816", "0.812527", "0.81002957", "0.8099734", "0.80907047", "0.80770063", "0.8050415", "0.8046935", "0.80198675", "0.8015442", "0.8014628", "0.80053484", "0.8003663", "0.79983...
0.7760746
32
Divides self by other (self / other)
def HVh8(YKHO, Elif): try: g4y1 = {} for tk5Y in Elif._inputs.keys(): g4y1[tk5Y] = [[Elif, -1 * YKHO._val / Elif._val ** 2]] for tk5Y in YKHO._inputs.keys(): if tk5Y in g4y1: g4y1[tk5Y].append([YKHO, 1 / Elif._val]) else: g4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M9fH(YKHO, Elif):\n return YKHO.child(Elif)", "def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)", "def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)", "def M9fH(YKHO, Elif):\n return YKHO.binary(Elif, seET.div)", "def hFiK(YKHO, Elif):\n return YKHO.__idiv__(Elif)", "def M9fH(...
[ "0.83873606", "0.8118235", "0.8118235", "0.8092122", "0.8048287", "0.794855", "0.78543717", "0.77012694", "0.76976323", "0.769671", "0.7669267", "0.7658123", "0.76551956", "0.76372343", "0.7616235", "0.75954956", "0.7571401", "0.7544893", "0.7533071", "0.7517462", "0.75079554...
0.0
-1
Divides other by self (other / self)
def dMQB(YKHO, Elif): g4y1 = {} for tk5Y in YKHO._inputs.keys(): g4y1[tk5Y].append([YKHO, -1 * Elif / YKHO._val ** 2]) return fnvC(Elif / YKHO._val, g4y1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M9fH(YKHO, Elif):\n return YKHO.child(Elif)", "def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)", "def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)", "def hFiK(YKHO, Elif):\n return YKHO.__idiv__(Elif)", "def jrvB(YKHO, Elif):\n return Elif * -YKHO", "def M9fH(YKHO, Elif):\n ...
[ "0.834157", "0.7874809", "0.7874809", "0.78422105", "0.7803049", "0.7754091", "0.76659966", "0.7590798", "0.7588563", "0.7586147", "0.7575901", "0.7561551", "0.75274295", "0.7450625", "0.7409567", "0.7400004", "0.737881", "0.73141545", "0.73054355", "0.7289635", "0.727612", ...
0.6314116
91
Compares other to self based on key values defined in Vect (in this case the value returned from running id() Python builtin on a Vect instance)
def xa14(YKHO, Elif): if isinstance(Elif, fnvC): return YKHO.__key() == Elif.__key() return NotImplemented
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return YKHO.key == Elif.key", "def xa14(YKHO, Elif):\n return YKHO.key() == Elif.key()", "def xa14(YKHO, Elif):\n return YKHO._key == Elif._key", "def Aicm(YKHO, Elif):\n return YKHO.getID().__cmp__(Elif.getID())", "def Aicm(YKHO, Elif):\n if not isinstance(Elif, YKHO...
[ "0.74292505", "0.73903096", "0.7267882", "0.71457255", "0.7106789", "0.7049948", "0.70258135", "0.7010922", "0.70058626", "0.7003815", "0.6999062", "0.6961749", "0.6960043", "0.6960043", "0.6960043", "0.69575167", "0.69569093", "0.6955343", "0.69461524", "0.6923003", "0.69144...
0.75415605
0
Compares other to self based on key values defined in Vect (in this case the value returned from running id() Python builtin on a Vect instance)
def Vdqg(YKHO, Elif): if isinstance(Elif, fnvC): return YKHO.__key() != Elif.__key() return NotImplemented
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if isinstance(Elif, fnvC):\n return YKHO.__key() == Elif.__key()\n return NotImplemented", "def xa14(YKHO, Elif):\n return YKHO.key == Elif.key", "def xa14(YKHO, Elif):\n return YKHO.key() == Elif.key()", "def xa14(YKHO, Elif):\n return YKHO._key == Elif._key", ...
[ "0.7544185", "0.7430596", "0.7391527", "0.7269615", "0.7147828", "0.7109759", "0.705308", "0.702656", "0.7012206", "0.70064586", "0.7006351", "0.6999947", "0.6962374", "0.69609505", "0.69609505", "0.69609505", "0.69592994", "0.69589734", "0.6956285", "0.694737", "0.6923869", ...
0.0
-1
Fits a standardization function. The fitted function transforms an input data series into a specified output space. A simple example would be a statistical standardizer that shifts and scales `series` so that its mean is zero and standard deviation is one, and fixes that transformation so that new data can be scaled an...
def WgYu(YKHO, dy_H): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u6QQ(YKHO, WKvO):\n if YKHO.preprocessing_function:\n WKvO = YKHO.preprocessing_function(WKvO)\n if YKHO.rescale:\n WKvO *= YKHO.rescale\n if YKHO.minmax_standerdize:\n WKvO = (WKvO - YKHO.min_from) / (YKHO.max_from - YKHO.min_from)\n WKvO = WKvO * (YKHO.max_to - YKHO.min_t...
[ "0.61644536", "0.61291665", "0.6009608", "0.5989018", "0.5906844", "0.58848435", "0.5812255", "0.57723284", "0.57565385", "0.5727116", "0.5724458", "0.56954885", "0.56642044", "0.56414676", "0.5592747", "0.5584517", "0.556047", "0.5497939", "0.5482353", "0.547442", "0.547155"...
0.6329581
0
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(k9je, YKHO).__init__(*qIxc, **c_sp) if YKHO.header is None: YKHO.header = kKAJ.msg.Header() if YKHO.operation is None: YKHO.operation = 0 if YKHO.argument is None: YKHO.argument = [] else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8165526", "0.77194417", "0.77194417", "0.7651733", "0.75736123", "0.7543652", "0.748518", "0.74698746", "0.7458259", "0.74463624", "0.74447745", "0.74339366", "0.74160206", "0.74083894", "0.7392556", "0.737561", "0.73624825", "0.73252165", "0.7323836", "0.7323836", "0.7323...
0.71968085
33
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(fL2W, YKHO).__init__(*qIxc, **c_sp) if YKHO.header is None: YKHO.header = kKAJ.msg.Header() if YKHO.is_legal_op is None: YKHO.is_legal_op = False if YKHO.is_arg_valid is None: YKHO.is_arg_valid ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8165213", "0.77197707", "0.77197707", "0.7652202", "0.7573333", "0.7544022", "0.7484976", "0.7471328", "0.7458079", "0.7445732", "0.74455976", "0.7433956", "0.741542", "0.7408282", "0.739147", "0.737536", "0.73631966", "0.732547", "0.73231727", "0.73231727", "0.73231727", ...
0.0
-1
Adding like to post/user
def Nh4D(_cyJ): if not Oa1e.user: Dwep('Please sign in first', 'danger') return vKnz('/') CBIr = mv1M.query.get(Oa1e.user.id) _3xs = ZiUe.query.get(_cyJ) CBIr.likes.append(_3xs) NCls.session.commit() return vKnz('/chatters')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GOck(YKHO, CBIr):\n YKHO.liked_by.add(CBIr)", "def pteG(YKHO, QePW, Lbbs):\n if not QePW.user.is_authenticated:\n return\n hkxX = QePW.POST.get(Lbbs)\n QTOV = hkxX.split(',')\n CBIr = mv1M.objects.get(username=QTOV[0])\n Mau6 = grFq.objects.get(pk=QTOV[1])\n if _l4v.objects.filter...
[ "0.79119575", "0.78540957", "0.7730799", "0.76658285", "0.74804866", "0.7470229", "0.7464061", "0.7406414", "0.73656887", "0.73554677", "0.7348343", "0.73329", "0.73159647", "0.7297378", "0.72742456", "0.72622395", "0.7201058", "0.7195462", "0.71875125", "0.717877", "0.715694...
0.6355148
63
Retrieve tags associated to the current node
def afYC(YKHO): mJBk = {'localhost', YKHO.name} kxLk = {'*'} for TZ9E, b32v in YKHO.campaign.network.tags.items(): for GPtr in b32v: for Tuqy, Pe_m in GPtr.items(): if Tuqy == 'match': for KcEq in mJBk: if Pe_m.match(KcEq): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qwli(YKHO):\n return YKHO.list", "def Qwli(YKHO):\n raise NotImplementedError", "def Qwli(YKHO):\n return YKHO.listafinal", "def dJ1p(YKHO):\n return YKHO._tags", "def Qwli(YKHO):\n if hasattr(YKHO.object, 'get_tags'):\n return YKHO.object.get_tags()\n else:\n raise NotI...
[ "0.74055517", "0.73236644", "0.72496796", "0.7185633", "0.70886797", "0.7027246", "0.7010342", "0.70101625", "0.70101625", "0.6965017", "0.6907378", "0.6883373", "0.6870839", "0.6868287", "0.68436086", "0.6833113", "0.6832441", "0.68106234", "0.68049264", "0.6796583", "0.6769...
0.0
-1
Constructor for the MapReduceInfo_RequiredProperty class
def FIMM(YKHO, HyJ9=None, JBZA=None, glsA=None, mWFP=None): YKHO.default_value = HyJ9 YKHO.description = JBZA YKHO.is_required = glsA YKHO.name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, qv1X, Gp4_=None, EHOe=None, K4ca=None, A97Q=None):\n YKHO.__isrequiredmethod__ = qv1X\n super(MJa5, YKHO).__init__(Gp4_, EHOe, K4ca, A97Q)", "def FIMM(YKHO) -> None:\n YKHO._valid_properties: cuzp[str, ImMB] = {}", "def uA68(*qIxc, **B2fa):\n return r1Yn(qIxc, B2fa, MJa5, set(['since...
[ "0.6877504", "0.67971474", "0.61581826", "0.61440825", "0.60968614", "0.60927254", "0.6021775", "0.6020014", "0.6010548", "0.5994925", "0.592228", "0.591513", "0.591513", "0.59134334", "0.59029156", "0.5869725", "0.58355474", "0.5830979", "0.5821787", "0.5808059", "0.57968193...
0.5910746
14
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None HyJ9 = cmPJ.get('defaultValue') JBZA = cmPJ.get('description') glsA = cmPJ.get('isRequired') mWFP = cmPJ.get('name') return Emd4(HyJ9, JBZA, glsA, mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78543913", "0.78...
0.81483614
5
Performs a recursive merge of two dicts dict_a and dict_b, wheras dict_b always overwrites the values of dict_a
def roQF(m2Vb, g6HL): RgYu = m2Vb.copy() for H5ew in g6HL: if H5ew in m2Vb and isinstance(m2Vb[H5ew], dict) and isinstance(g6HL[H5ew], dict): RgYu[H5ew] = roQF(m2Vb[H5ew], g6HL[H5ew]) else: RgYu[H5ew] = g6HL[H5ew] return RgYu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kzq2(jzdc: dict, Fg_i: dict) -> dict:\n for H5ew in Fg_i:\n if H5ew in jzdc:\n if isinstance(jzdc[H5ew], dict) and isinstance(Fg_i[H5ew], dict):\n Kzq2(jzdc[H5ew], Fg_i[H5ew])\n elif jzdc[H5ew] != Fg_i[H5ew]:\n jzdc[H5ew] = Fg_i[H5ew]\n else:...
[ "0.88101697", "0.84876716", "0.8449137", "0.8438783", "0.8424607", "0.8422277", "0.8393824", "0.8393094", "0.8374589", "0.8369466", "0.83681023", "0.83354133", "0.8306315", "0.828132", "0.8275946", "0.8218253", "0.8186837", "0.816571", "0.81506294", "0.81198615", "0.8100852",...
0.8362809
11
A function that returns all unique items of a list in an orderpreserving way
def GF9x(Q6uT): z175 = lambda WKvO: WKvO ue8M = {} Aofo = [] for ZfUD in Q6uT: _5yy = z175(ZfUD) if _5yy in ue8M: continue ue8M[_5yy] = 1 Aofo.append(ZfUD) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aIUk(DumB):\n return list(set(DumB))", "def kcwm(yv6U):\n Aofo = []\n for fEM0 in yv6U:\n if fEM0 not in Aofo:\n Aofo.append(fEM0)\n return Aofo", "def PYMC(DumB):\n Aofo = []\n PwWw = set()\n for ZfUD in DumB:\n if ZfUD in PwWw:\n continue\n ...
[ "0.81037486", "0.7969989", "0.79522514", "0.7939173", "0.7891065", "0.78706706", "0.78706706", "0.7861657", "0.785257", "0.7818364", "0.7783376", "0.7761994", "0.77246505", "0.7686895", "0.76752734", "0.7662958", "0.7662816", "0.7647425", "0.7642192", "0.7608631", "0.7585869"...
0.0
-1
From a syntax like package_namesubmodule, build a package name and complete module name.
def bPwz(y7xl): oLjS = y7xl.split('#') hxGQ = oLjS[0] LCet = hxGQ.replace('-', '.') if len(oLjS) >= 2: LCet = '.'.join([LCet, oLjS[1]]) return (hxGQ, LCet)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OPdP(B5hb, yR_P):\n if B5hb:\n mWFP = B5hb\n if yR_P:\n mWFP += '.' + yR_P\n else:\n mWFP = yR_P\n return mWFP", "def OPdP(B5hb, yR_P):\n if B5hb:\n mWFP = B5hb\n if yR_P:\n mWFP += '.' + yR_P\n else:\n mWFP = yR_P\n return mWF...
[ "0.7481345", "0.74437606", "0.66304076", "0.6496363", "0.6469631", "0.6377939", "0.6364099", "0.63367105", "0.6328092", "0.6308499", "0.62829584", "0.62776494", "0.62746036", "0.62568057", "0.62340593", "0.6229585", "0.6229585", "0.6218579", "0.6205943", "0.61777985", "0.6166...
0.6480586
4
Returns a dictionary with nearest neighbors.
def BTfj(YKHO, GIN8): ajye = YKHO.index[GIN8] NptA = YKHO._graph[ajye].data uIDV = {YKHO.index.inv[npr4]: NptA[r845] for r845, npr4 in enumerate(YKHO._graph[ajye].indices)} return uIDV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BTfj():\n return dict([Csk6 for Csk6 in Ziit.iteritems() if Csk6[1]['is_neighbor']])", "def gXly(CLQW):\n BYOT = {}\n for YRbF in range(CLQW.shape[0]):\n BYOT[YRbF] = CLQW[YRbF, :]\n return BYOT", "def Ranv(YKHO):\n return {tTpl[1]: YKHO.G[tTpl[0]][tTpl[1]]['weight'] for tTpl in YKHO....
[ "0.7458563", "0.7376162", "0.7368217", "0.73311406", "0.7313903", "0.7240507", "0.72289306", "0.71469337", "0.7088065", "0.70645666", "0.69683635", "0.6949954", "0.69313425", "0.6913334", "0.6868367", "0.6845181", "0.68423295", "0.6815311", "0.6815311", "0.67721456", "0.67644...
0.62793136
60
Return the set of nodes which lead to "node" (direction = backaward) or the set o nodes which can be accessed from "node" (direction = forward)
def Q7FA(yvY1, Q6kx, tjON=1, XSoh='backward'): JfyU = yvY1.successors if XSoh == 'forward' else yvY1.predecessors ToI_ = set() uEDt = [Q6kx] ToI_ = ToI_.union(uEDt) for YRbF in range(0, tjON): qx68 = set() for r845 in uEDt: qx68 = qx68.union(set(JfyU(r845))) uEDt ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AyQV(YKHO):\n return set(YKHO.edges.keys()) | set(YKHO.rev_edges.keys())", "def hvdj(YKHO, pNZh, Q6kx):\n bdGm = list(set(pNZh[Q6kx]['to']) | set(pNZh[Q6kx]['from']))\n return bdGm", "def sz3J(YKHO, Q6kx):\n \"\"\"param node: some string, makes sense to be word from text given\"\"\"\n Ziit =...
[ "0.6772915", "0.6515072", "0.6326601", "0.62811", "0.6231857", "0.6218128", "0.616223", "0.6138451", "0.6138451", "0.6117799", "0.61129326", "0.6105732", "0.610014", "0.6099688", "0.6093335", "0.6093335", "0.6089442", "0.60860187", "0.607451", "0.60652226", "0.60621345", "0...
0.68246573
0
Check if node can be accessed across a chain of "degree" nodes (backwards and frontward). This guarantees the node is not isolated since it is reachable and can reach others.
def eVgV(yvY1, Q6kx, tjON): uv6v = list(yvY1.predecessors(Q6kx)) f2c8 = list(yvY1.successors(Q6kx)) A_IW = set(uv6v + f2c8) if Q6kx in A_IW: return False if len(Q7FA(yvY1, Q6kx, tjON, direction='backward')) < tjON: return False if len(Q7FA(yvY1, Q6kx, 10, direction='forward')) < ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wQhc(YKHO):\n if YKHO.activation_status == JQfV.FULLY_ACTIVATED_STATUS:\n raise AssertionError('arnodes can not be demoted in activation state')\n if YKHO.activation_status == JQfV.ONLY_FORWARD_ACTIVATED_STATUS:\n return True\n Lfjs = zAiS.OUTGOING_EDGE_DIRECTION\n for Q6kx in YKHO.in...
[ "0.6256845", "0.62448376", "0.6160512", "0.6132452", "0.60884726", "0.6084547", "0.60554713", "0.60368747", "0.5990535", "0.59839636", "0.5962917", "0.5949031", "0.5935021", "0.59283507", "0.58578384", "0.5825751", "0.58203876", "0.58193743", "0.58135325", "0.57790077", "0.57...
0.68596196
0
Return a str(list) of data.
def zAg0(YKHO): gv2B = YKHO.__file.tell() __n6 = YKHO.get(0, YKHO.length) YKHO.__file.seek(gv2B) return str(__n6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLtf(YKHO):\n return [str(YKHO.data[0]), str(YKHO.data[1]), str(YKHO.data[2]), str(YKHO.data[3]), str(YKHO.data[4]), str(YKHO.data[5])]", "def zAg0(YKHO):\n Ylbp = ''\n for YRbF in YKHO._data:\n Ylbp += str(YRbF) + '\\n'\n return Ylbp", "def zAg0(YKHO):\n return ', '.join((str(ZfUD) f...
[ "0.8041609", "0.79140973", "0.77694356", "0.77199405", "0.7713217", "0.75506693", "0.75053334", "0.7478316", "0.7460271", "0.7403458", "0.7334526", "0.7314703", "0.7165528", "0.7086163", "0.70828825", "0.70828825", "0.70753396", "0.7060802", "0.7057474", "0.70466083", "0.7045...
0.6805664
29
Test creating user with no email raises error
def V97d(YKHO): with YKHO.assertRaises(ValueError): egNl().objects.create_user(None, 'test123')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CnXP(YKHO):\n with YKHO.assertRaises(ValueError):\n D3lj = None\n KaGP = 'test1234'\n egNl().objects.create_user(email=D3lj, password=KaGP)", "def WhLD(YKHO):\n with YKHO.assertRaises(ValueError):\n mv1M.objects.create_user(None, YKHO.password)", "def dv9i(YKHO):\n with...
[ "0.8946626", "0.8913199", "0.88823766", "0.8839374", "0.8826006", "0.87678343", "0.87338656", "0.8719586", "0.8719016", "0.8717694", "0.8716184", "0.87151146", "0.87151146", "0.87111115", "0.8709845", "0.8703824", "0.87019193", "0.86961305", "0.8691527", "0.8687408", "0.86836...
0.8714722
13
Compute score for one label. Notice that raw overlap score is divided by 1e6 before returned.
def yAJ5(YKHO, Kt_s, UDsl, VPmj, bN3Z=False, crlQ=None): OE5H, J6sS, leVA, L73u = YKHO.get_valid_voxels_after_transform(Kt_s, tf_type=UDsl, ind_m=VPmj, return_valid=True, n_sample=crlQ) vTdo = len(ySYp[VPmj]) F84p = oyIN.count_nonzero(L73u) P2d0 = vTdo - F84p if F84p == 0: raise Exception('%...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1kx(UXqs, AWQi):\n return (oyIN.sum(UXqs == AWQi), oyIN.sum(UXqs == AWQi) / UXqs.size)", "def fSxm(YKHO, ANfV: str, H4E9: str) -> float:\n Hl2l = YKHO._get_tokens(ANfV)\n if not len(Hl2l):\n return 0.0\n pQzF = YKHO._get_tokens(H4E9)\n yHH9 = [w2fL for w2fL in Hl2l if w2fL in pQzF]\n ...
[ "0.6949733", "0.6868429", "0.6801996", "0.66963255", "0.6621759", "0.6606113", "0.65787995", "0.6445816", "0.6416771", "0.63980895", "0.6376679", "0.63339454", "0.6326141", "0.62853193", "0.62832934", "0.6205952", "0.62042767", "0.62025464", "0.6199003", "0.61928743", "0.6175...
0.0
-1
Transform points by a weightedaverage transform.
def qyj4(y5bX, iUT8, UEQN, Md2Z, _mSQ): if Md2Z[0].ndim == 2: qRyb = oyIN.array([yzQ0 * oyIN.exp(-nQ8L(y5bX, VqfF, WTkW)) for VqfF, WTkW, yzQ0 in zip(UEQN, Md2Z, _mSQ)]) + 1e-06 elif Md2Z[0].ndim == 1: qRyb = oyIN.array([yzQ0 * oyIN.exp(-oyIN.sum((y5bX - VqfF) ** 2, axis=1) / WTkW ** 2) for VqfF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gq7O(LTIa: np.ndarray, _mSQ: np.ndarray):\n return (LTIa * _mSQ).sum(axis=0)", "def sUQo(YKHO, LTIa, _mSQ):\n osji = oyIN.sum(_mSQ)\n pWZN = oyIN.zeros(LTIa[0].shape)\n for yzQ0, XP5J in zip(_mSQ, LTIa):\n pWZN += yzQ0 * XP5J / osji\n return pWZN", "def XBfN(YKHO, yMhW, _mSQ, SZFh=lam...
[ "0.68930465", "0.6889756", "0.66864884", "0.6386388", "0.6367666", "0.6367666", "0.62805444", "0.6102692", "0.6055323", "0.6001823", "0.5960591", "0.59250337", "0.59212434", "0.5878316", "0.5851595", "0.5829682", "0.5802208", "0.5797062", "0.5790224", "0.5783773", "0.57799405...
0.0
-1
Transform volume by weightedaverage transform.
def dRIA(qjHC, iUT8, UEQN, Md2Z, _mSQ, K_6H, regS=True): pfkD, LyVu, lhNN, iLDH, veUA, A4Ld = K_6H Ta0f = LyVu + 1 - pfkD cqRn = iLDH + 1 - lhNN iJoX = A4Ld + 1 - veUA hj3d = FNtl(qjHC > 0) _4su = qyj4(hj3d, iUT8, UEQN, Md2Z, _mSQ) CiSD, l1FZ, lv65 = _4su.T ENaZ = oyIN.zeros((cqRn, Ta0f,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XBfN(YKHO, yMhW, _mSQ, SZFh=lambda WKvO: WKvO):\n nPrm = list(map(SZFh, YKHO[-yMhW:]))\n _mSQ = _mSQ[-len(nPrm):]\n return rfOc(nPrm, weights=_mSQ)", "def d2yq(WKvO, _mSQ):\n return _mSQ.unsqueeze(1).bmm(WKvO).squeeze(1)", "def wkoD(yzQ0):\n cuil = jth9.deepcopy(yzQ0[0])\n for H5ew in cui...
[ "0.63596755", "0.6214309", "0.60882276", "0.6077322", "0.6045035", "0.6043998", "0.6043998", "0.60142565", "0.59999907", "0.59754515", "0.5966898", "0.5959336", "0.59516835", "0.59290147", "0.5919814", "0.5907296", "0.5869514", "0.58396983", "0.5829131", "0.5826681", "0.58078...
0.0
-1
Parse the user agent.
def jtJX(s6Cf): return QDNG.parse(s6Cf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X3Z5(Lb1u):\n KgmL = jp3F.search(Lb1u)\n if not KgmL:\n Lb1u = ZbWC.sub('(BB)(\\\\d+)', 'BlackBerry \\\\2', Lb1u)\n KgmL = jp3F.search(Lb1u)\n if not KgmL:\n return None\n uiz_ = None\n LioG = None\n ZVNn = KgmL.group(1).lower()\n if 'android' in ZVNn:\n ...
[ "0.7187477", "0.7165098", "0.69072026", "0.68857896", "0.68825626", "0.68775076", "0.67973894", "0.67973894", "0.67973894", "0.67973894", "0.67498755", "0.6748507", "0.6748507", "0.6748507", "0.67420715", "0.6737551", "0.6707937", "0.6670764", "0.6619318", "0.66089505", "0.65...
0.79765177
0
When there's a tie between losers arbitrarily choosing one to exclude first may impact the election result. If a random generator is not passed in then a FailedElectionError should be thrown in cases of ambiguity. When a random generator is provided it should be used to break ties of losers. This test demonstrates both...
def Rohh(YKHO): gdJm = 4 kbGe = ('A', 'B', 'C', 'D', 'E') ne5b = 2 * (('A', 'B'),) + 2 * (('B', 'A'),) + 3 * (('C',),) + 3 * (('D',),) + 3 * (('E',),) pKkd = kVOe(gdJm, kbGe, ne5b) with YKHO.assertRaises(Wslv): pKkd.run() class MockRandom(object): def Acvy(YKHO, aWuw): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jRa3(YKHO):\n gdJm = 4\n kbGe = ('A', 'B', 'C', 'D', 'E')\n ne5b = 9 * (('A', 'C'),) + 9 * (('B', 'C', 'D'),) + 3 * (('C',),) + 2 * (('D',),) + 3 * (('E',),)\n pKkd = kVOe(gdJm, kbGe, ne5b)\n with YKHO.assertRaises(Wslv):\n pKkd.run()\n\n class MockRandom(object):\n\n def Acvy(Y...
[ "0.74867094", "0.64100915", "0.6075664", "0.5910365", "0.5900456", "0.5893012", "0.5711321", "0.5702529", "0.5689906", "0.5655286", "0.5654542", "0.56477535", "0.56382334", "0.55898774", "0.5573991", "0.5573534", "0.5558582", "0.5498504", "0.54455566", "0.5429915", "0.5419601...
0.7339874
1
Get absolute path to resource, works for dev and for PyInstaller
def JFat(YKHO, t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)", "def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)", "def JFat(t_yv):\n try:\n ...
[ "0.86645055", "0.8190357", "0.8175001", "0.8163073", "0.80863976", "0.80863976", "0.80863976", "0.80863976", "0.8086095", "0.80784917", "0.8077746", "0.8073863", "0.8065137", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0....
0.78730464
71
Gets the bit map as a string of bits. Returns str The string representation of the bits of the bitmap.
def yLCI(YKHO): hlel = '' for YB8B in YKHO.bytes: hlel += str(bin(YB8B))[2:] return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vPAb(YKHO):\n return ''.join([str(HkJz) for HkJz in YKHO.__chromosome])", "def tV8l(Fg_i, exwG, zF0X='1', l4XF='0'):\n return '' if exwG == 0 else tV8l(Fg_i >> 1, exwG - 1, zF0X, l4XF) + (zF0X if Fg_i & 1 == 1 else l4XF)", "def uBHf(UOVU):\n return UOVU.to01()", "def MmvK(Fg_i):\n return ''.j...
[ "0.6979323", "0.6934956", "0.6817849", "0.68088317", "0.68088317", "0.6747752", "0.672249", "0.6588229", "0.6577947", "0.6573172", "0.65574825", "0.653326", "0.6512965", "0.64955324", "0.6449105", "0.6417509", "0.6373601", "0.63179547", "0.62361985", "0.6225419", "0.621443", ...
0.59197026
40
Gets the percentage of bits that represent a 1. Returns float The percentage of ones in the bitmap.
def xCA4(YKHO): jazf = len(YKHO.bytes) * 8 pSfY = 0 for YRbF in range(jazf): HkJz = YKHO.get_bit(YRbF) if HkJz == 1: pSfY += 1 return pSfY / jazf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cYil(LNo8):\n dvtG = oyIN.asarray(LNo8)\n OYWD = oyIN.count_nonzero(dvtG)\n return OYWD / (dvtG.shape[0] * dvtG.shape[1])", "def L4cm(ZHfW):\n if ZHfW is not None:\n BQsO = jbYn.countNonZero(ZHfW)\n return BQsO / ZHfW.size * 100\n else:\n return 0", "def U93t(dvtG):\n ...
[ "0.67240155", "0.67207265", "0.6534533", "0.6533044", "0.6432657", "0.63513446", "0.6258202", "0.62273943", "0.6183403", "0.6143254", "0.6098562", "0.6055732", "0.60027516", "0.59795254", "0.59794444", "0.5974526", "0.5930452", "0.592639", "0.59177756", "0.59142864", "0.59126...
0.86735797
0
str > int(index of sentiment)
def M_t6(VTcd, yAmx): _dZy = 0 VTcd.setString(yAmx.encode('utf-8')) vC9B = VTcd.getSegmentResult() for YRbF in range(len(vC9B)): yzQ0 = vC9B[YRbF] if yzQ0 in M1mm: Z9rn = 1 if YRbF > 0: if vC9B[YRbF - 1] in YHkY: Z9rn = Z9rn * -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v4ED(KCHu):\n assert HqD9(KCHu), 'No sentiment value'\n return KCHu", "def tR9D(WKvO):\n if WKvO > 0:\n return 'positive'\n elif WKvO == 0:\n return 'neutral'\n else:\n return 'negative'", "def qHxC(yAmx):\n yAmx = str(yAmx).split(' ')\n yAmx = [ED_H[GIN8] if GIN8 ...
[ "0.6695797", "0.66935426", "0.6552564", "0.65332997", "0.6435631", "0.64174306", "0.63808906", "0.6378824", "0.63578415", "0.63578415", "0.63578415", "0.63555765", "0.6316424", "0.62913966", "0.62711704", "0.6216608", "0.62127525", "0.61922807", "0.617527", "0.6139238", "0.61...
0.0
-1
determines whether the solved state is reachable from the given initial state
def dd1_(QTBn): u7iQ = 0 oeNL = QTBn.index('0') if oeNL != 8: if QTBn.index('0') == 0: QTBn = QTBn[8] + QTBn[7] + QTBn[6] + QTBn[5] + QTBn[4] + QTBn[3] + QTBn[2] + QTBn[1] + QTBn[0] elif QTBn.index('0') == 1: QTBn = QTBn[7] + QTBn[6] + QTBn[3] + QTBn[8] + QTBn[4] + QT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D8yX(QTBn):\n return QTBn.corner_pos == W9gz.corner_pos and QTBn.side_pos == W9gz.side_pos and (QTBn.corner_ort == W9gz.corner_ort) and (QTBn.side_ort == W9gz.side_ort)", "def QLqr(QTBn):\n return ERh3(QTBn) == K24T(QTBn)", "def eGi5() -> bool:\n azXi = set()\n pu_z = 0\n return DCv5(azXi, f...
[ "0.7285433", "0.7001434", "0.6968294", "0.69415385", "0.6917593", "0.6778427", "0.6724322", "0.6699647", "0.6655173", "0.66447395", "0.66161835", "0.6595268", "0.657717", "0.655124", "0.65436566", "0.65436566", "0.65436566", "0.65436566", "0.65436566", "0.65436566", "0.654365...
0.0
-1
Bins an ndarray in all axes based on the target shape, by summing or averaging. Number of output dimensions must match number of input dimensions and new axes must divide old ones. Example >>> m = np.arange(0,100,1).reshape((10,10)) >>> n = bin_ndarray(m, new_shape=(5,5), operation='sum') >>> print(n) [[ 22 30 38 46 54...
def HqXY(gyIm, EZd9, oPhP='sum'): oPhP = oPhP.lower() if not oPhP in ['sum', 'mean', 'std']: raise ValueError('Operation not supported.') if gyIm.ndim != len(EZd9): raise ValueError('Shape mismatch: {} -> {}'.format(gyIm.shape, EZd9)) kU4y = [(Csk6, Z9rn // Csk6) for Csk6, Z9rn in zip(EZ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HqXY(gyIm, EZd9, oPhP='sum'):\n if not oPhP.lower() in ['sum', 'mean', 'average', 'avg']:\n raise ValueError('Operation {} not supported.'.format(oPhP))\n if gyIm.ndim != len(EZd9):\n raise ValueError('Shape mismatch: {} -> {}'.format(gyIm.shape, EZd9))\n kU4y = [(Csk6, Z9rn // Csk6) for...
[ "0.82618445", "0.70475024", "0.65715045", "0.6210644", "0.6071303", "0.6066805", "0.5671113", "0.55517423", "0.55011123", "0.5492", "0.5481131", "0.5477312", "0.54614365", "0.54573536", "0.54132956", "0.5409203", "0.5359018", "0.5311786", "0.5303719", "0.5279827", "0.5249372"...
0.8223667
1
Bins an ndarray in all axes based on the target shape, by summing or averaging. Number of output dimensions must match number of input dimensions and new axes must divide old ones. Example >>> m = np.arange(0,100,1).reshape((10,10)) >>> n = bin_ndarray(m, new_shape=(5,5), operation='sum') >>> print(n) [[ 22 30 38 46 54...
def ReRH(gyIm, mbRm, EZd9): if gyIm.ndim != len(EZd9): raise ValueError('Shape mismatch: {} -> {}'.format(gyIm.shape, EZd9)) kU4y = [(Csk6, Z9rn // Csk6) for Csk6, Z9rn in zip(EZd9, gyIm.shape)] qnkS = [vC9B for XP5J in kU4y for vC9B in XP5J] gyIm = gyIm.reshape(qnkS) if mbRm.ndim != len(EZd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HqXY(gyIm, EZd9, oPhP='sum'):\n if not oPhP.lower() in ['sum', 'mean', 'average', 'avg']:\n raise ValueError('Operation {} not supported.'.format(oPhP))\n if gyIm.ndim != len(EZd9):\n raise ValueError('Shape mismatch: {} -> {}'.format(gyIm.shape, EZd9))\n kU4y = [(Csk6, Z9rn // Csk6) for...
[ "0.8262194", "0.822425", "0.70472676", "0.6571253", "0.60684943", "0.60640454", "0.56681913", "0.5550541", "0.5499908", "0.5491817", "0.54784167", "0.5478262", "0.5459716", "0.54550517", "0.54158515", "0.5406695", "0.5360142", "0.53135276", "0.5306248", "0.527833", "0.5247592...
0.621019
4
Test that admin_change_url() returns the URL to the change page for an object.
def eobA(): jI4j = _Yzj.build(pk=kxTZ()) assert Nd5f(jI4j) == f'/admin/support/book/{jI4j.pk}/change/'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ee9T(YKHO):\n bD7m = gxEw('admin:{app_label}_{model_name}_changelist'.format(app_label=tKz9, model_name=ZGE9))\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, 200, 'GET {url:}'.format(url=bD7m))", "def U4ft(YKHO):\n return UdPk(obj=YKHO, name='change')", "def TtY7(YKHO):\n ...
[ "0.75450015", "0.750781", "0.74654377", "0.72081995", "0.7068145", "0.7051043", "0.7024998", "0.69593346", "0.69593346", "0.6923783", "0.6923783", "0.69173956", "0.6891642", "0.6885814", "0.6822341", "0.68015766", "0.6794818", "0.6769704", "0.6766501", "0.6757097", "0.6720891...
0.8223846
0
Test that admin_change_url() returns an anchor tag to the change page for an object.
def TtY7(YKHO): jI4j = _Yzj.build(pk=kxTZ()) assert LEhi(jI4j) == f'<a href="/admin/support/book/{jI4j.pk}/change/">{jI4j}</a>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eobA():\n jI4j = _Yzj.build(pk=kxTZ())\n assert Nd5f(jI4j) == f'/admin/support/book/{jI4j.pk}/change/'", "def VMIi(YKHO):\n jI4j = _Yzj.build(pk=kxTZ())\n assert LEhi(jI4j, True) == f'<a href=\"/admin/support/book/{jI4j.pk}/change/\" target=\"_blank\">{jI4j}</a>'", "def XlPA(YKHO):\n YKHO.cl...
[ "0.7857348", "0.735088", "0.70899355", "0.7040218", "0.6945636", "0.69330406", "0.68452775", "0.6802218", "0.6780814", "0.67517436", "0.67234963", "0.6669259", "0.666193", "0.6609923", "0.66048527", "0.6592263", "0.65887284", "0.6532158", "0.6514531", "0.64988965", "0.6472416...
0.8077595
0
Test that verbose_name_for_count() returns the correct verbose name form for various counts.
def KGmC(UHFx, Ggta): fTEL = FM6F(verbose_name='singular', verbose_name_plural='plural') assert jy2f(UHFx, fTEL) == Ggta
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qi8Y(YKHO):\n for BWXx, aEqx in wza2.items():\n with YKHO.subTest(value=BWXx):\n mWFP = oP2N.post._meta.get_field(BWXx).verbose_name\n YKHO.assertEqual(mWFP, aEqx)", "def Qi8Y(YKHO, C3ST):\n for KAOR in C3ST.objects.all():\n for Jyyj, HeOK in YKHO.fields_and_verbose_...
[ "0.6795397", "0.6687959", "0.66717213", "0.65308505", "0.6479089", "0.6463778", "0.6387199", "0.6298503", "0.6269043", "0.62187177", "0.6120571", "0.6091159", "0.6079352", "0.60781676", "0.6054208", "0.60262555", "0.59845597", "0.59813404", "0.5967713", "0.5965702", "0.593543...
0.8344487
0
Converts an ordered 3d padded tensor (with ORIGINALLY variable sequence lengths) to a PackedSequence datatype)
def xr6W(YKHO, cRc2, aHnM, YUWI=0): kdmR = [] for or8S in range(cRc2.shape[0]): kdmR.append(cRc2[or8S, :aHnM[or8S], :]) bX1S = U78l.utils.rnn.pad_sequence(kdmR, padding_value=YUWI) bX1S = U78l.utils.rnn.pack_padded_sequence(bX1S, aHnM) return bX1S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xr6W(YKHO, cRc2, aHnM, YUWI=0):\n kdmR = []\n for or8S in range(cRc2.shape[0]):\n kdmR.append(cRc2[or8S, :aHnM[or8S], :])\n bX1S = U78l.utils.rnn.pad_sequence(kdmR, padding_value=YUWI)\n bX1S = U78l.utils.rnn.pack_padded_sequence(bX1S, aHnM)\n return bX1S", "def UbJm(YKHO, bX1S, YUWI=0)...
[ "0.7736402", "0.7428338", "0.7428338", "0.72210556", "0.71779203", "0.6750257", "0.6575684", "0.65044636", "0.6451548", "0.63318807", "0.621526", "0.6094481", "0.60912764", "0.60912764", "0.593276", "0.5923324", "0.5904528", "0.5825937", "0.58125", "0.58125", "0.5793563", "...
0.78931665
0
Loads a saved model
def Nh79(Ux0P): vauY = ht2j.load(KKkc + Ux0P) C3ST = vauY['model'] C3ST.load_state_dict(vauY['state_dict']) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl():\n return", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl(YKHO, gXgy):\n if YKHO.model == None:\n YKHO.model = uyMl(gXgy)\n return\n prin...
[ "0.8552948", "0.8515235", "0.8515235", "0.8515235", "0.8515235", "0.84481466", "0.84481466", "0.83891916", "0.8341074", "0.8149046", "0.8111043", "0.808418", "0.80533683", "0.8017381", "0.79760504", "0.79478854", "0.7941605", "0.79317504", "0.792243", "0.7914419", "0.7914419"...
0.0
-1
Initialize the game Chopsticks. Extends Game.__init__ >>> chop = Chopsticks(True) >>> chop.is_p1_turn True >>> chop.current_state It's p1's turn. ...11...11...
def FIMM(YKHO, Nz8P: bool) -> None: _apf.__init__(YKHO, Nz8P, D_Nc(Nz8P))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Nz8P: bool) -> None:\n _apf.__init__(YKHO, Nz8P)\n Iuje = 1\n QlCm = 1\n ZGzy = 1\n Da88 = 1\n YKHO.current_state = FVmV(Nz8P, Iuje, QlCm, ZGzy, Da88)", "def FIMM(YKHO, Nz8P: bool) -> None:\n YKHO.current_state = uFiA(Nz8P)", "def FIMM(YKHO, Nz8P: bool) -> None:\n _apf.__...
[ "0.8105729", "0.6846808", "0.67424875", "0.66668564", "0.6558207", "0.647358", "0.6425312", "0.6418796", "0.6393799", "0.62736106", "0.62384796", "0.6234002", "0.62158453", "0.6213143", "0.6181436", "0.61670554", "0.6166786", "0.614236", "0.61162347", "0.60380256", "0.6001232...
0.8020479
1
Return a string that represents the instruction of the game Chopsticks. Overrides Game.get_instructions() >>> print(Chopsticks(True).get_instructions()) 1. Each of two players begins with one finger pointed up on each of \ their hands. 2. Player A touches one hand to one of Player B's hands, increasing \ the number of ...
def vERo(YKHO) -> str: return "\n1. Each of two players begins with one finger pointed up on each of their hands.\n2. Player A touches one hand to one of Player B's hands, increasing the number of fingers pointing up on Player B's hand by the number on Player A's hand. The numberpointing up on Player A's hand remai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vERo(YKHO) -> str:\n return \"1.Each of two players begins with one finger pointed up on each of their hands. 2.Player A touches one hand to one of Player B's hands, increasing the number of fingers pointing up on Player B's hand by the number on Player A's hand. The number pointin...
[ "0.69962704", "0.68579286", "0.62945855", "0.60150194", "0.60120124", "0.600311", "0.59775287", "0.594367", "0.57721525", "0.5713573", "0.5501393", "0.5489808", "0.5462832", "0.54330283", "0.537581", "0.5342662", "0.53413725", "0.53361315", "0.5333174", "0.53234905", "0.53162...
0.6979009
1
Initialize the game Substract Square. Extends Game.__init__
def FIMM(YKHO, Nz8P: bool) -> None: _apf.__init__(YKHO, Nz8P, miyR(Nz8P))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._display = BglY((140, 300))\n YKHO._board = []\n for MKlR in range(0, H2v2):\n YKHO._board.append([])\n for yzQ0 in range(0, TVTK - 3):\n YKHO._board[MKlR].append(XkN1(yzQ0, MKlR))\n YKHO.score = 0\n YKHO._dublock = None", "def FIMM(YKHO):\n print...
[ "0.6882951", "0.684669", "0.6814581", "0.67507493", "0.6676897", "0.6663254", "0.6651554", "0.6641059", "0.662131", "0.6609808", "0.6604937", "0.6592915", "0.6576478", "0.65749824", "0.6566242", "0.6545546", "0.6513009", "0.64969313", "0.64952415", "0.6483684", "0.64755553", ...
0.748254
0
Return a string that represents the instruction of the game SubstractSquare. Overrides Game.get_instructions()
def vERo(YKHO) -> str: return '\n1. A non-negative whole number has been chosen already.\n2. Now the player chooses some square of a positive whole number to subtract from the value, and the chosen square must not be larger. Then, we have a new value and the next player chooses a square to subtract from it.\n3. Kee...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vERo(YKHO) -> str:\n return \"1. A positive whole number is randomly chosen as the starting value by some neutral entity. 2.The player whose turn it is chooses some square of a positive whole number (such as 1, 4, 9) to subtract from the value, provided the chosen square is not lar...
[ "0.7701215", "0.7314533", "0.69753635", "0.6878277", "0.66322714", "0.62904245", "0.6245262", "0.61901665", "0.610663", "0.60991555", "0.60066694", "0.59772843", "0.5901238", "0.5861581", "0.58256704", "0.58177596", "0.5801817", "0.5792669", "0.57769585", "0.57769585", "0.572...
0.7436756
1
Returns a dictionary with the MPI specifications for the runline. This function takes user provided inputs and resource information and uses these to determine the final MPI specifications. This may include a hostlist or machine file. extra_args will be parsed if possible to extract MPI configuration. Default arguments...
def AX13(YKHO, D5gV, wD0w, JxLs, dr8x, yIiT, IKnm, hmI5, OTw7, oy7w, tHtX, JKCy, E9BJ): oqU6 = None if OTw7: wD0w, JxLs, dr8x, oqU6 = YKHO._parse_extra_args(wD0w, JxLs, dr8x, hmI5, extra_args=OTw7) Ba6S = not (wD0w or dr8x) if tHtX: Aar3(Ba6S, 'match_procs_to_gpus is mutually exclusive w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AX13(YKHO, D5gV, wD0w, JxLs, dr8x, yIiT, IKnm, hmI5, OTw7, oy7w, tHtX, JKCy, E9BJ):\n oqU6 = None\n if OTw7:\n wD0w, JxLs, dr8x, oqU6 = YKHO._parse_extra_args(wD0w, JxLs, dr8x, hmI5, extra_args=OTw7)\n Ba6S = not (wD0w or dr8x)\n if tHtX:\n Aar3(Ba6S, 'match_procs_to_gpus is mutually ...
[ "0.6210077", "0.5717106", "0.5584512", "0.5500277", "0.54909736", "0.5486892", "0.54431105", "0.54349923", "0.5430993", "0.53815097", "0.535888", "0.53558177", "0.5339203", "0.53241473", "0.5320895", "0.53054154", "0.52768755", "0.5264809", "0.5246745", "0.52411073", "0.52329...
0.6242696
0
Returns a dictionary with the MPI specifications for the runline. This function takes user provided inputs and resource information and uses these to determine the final MPI specifications. This may include a hostlist or machine file. extra_args will be parsed if possible to extract MPI configuration. Default arguments...
def AX13(YKHO, D5gV, wD0w, JxLs, dr8x, yIiT, IKnm, hmI5, OTw7, oy7w, tHtX, JKCy, E9BJ): oqU6 = None if OTw7: wD0w, JxLs, dr8x, oqU6 = YKHO._parse_extra_args(wD0w, JxLs, dr8x, hmI5, extra_args=OTw7) Ba6S = not (wD0w or dr8x) if tHtX: Aar3(Ba6S, 'match_procs_to_gpus is mutually exclusive w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AX13(YKHO, D5gV, wD0w, JxLs, dr8x, yIiT, IKnm, hmI5, OTw7, oy7w, tHtX, JKCy, E9BJ):\n oqU6 = None\n if OTw7:\n wD0w, JxLs, dr8x, oqU6 = YKHO._parse_extra_args(wD0w, JxLs, dr8x, hmI5, extra_args=OTw7)\n Ba6S = not (wD0w or dr8x)\n if tHtX:\n Aar3(Ba6S, 'match_procs_to_gpus is mutually ...
[ "0.62426376", "0.5717542", "0.55846155", "0.5501683", "0.5490217", "0.5487537", "0.5443594", "0.5435657", "0.54314774", "0.53795177", "0.53602415", "0.5355851", "0.534003", "0.53238857", "0.5321451", "0.53048927", "0.52764034", "0.5263512", "0.5247041", "0.5242637", "0.523282...
0.6210244
1
Given a state (or batch of states) calculate the Qvalues. Basically run your network on these states. Return Qvalues for the state(s)
def ggU5(YKHO, QTBn, VB6U=None, eVVj=None): if VB6U is None: VB6U = YKHO.preprocessor if eVVj is None: eVVj = YKHO.q_network return YKHO.q_network.predict(oyIN.expand_dims(VB6U.process_state_for_network(QTBn), 0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ggU5(YKHO, QTBn, eVVj):\n nq5M = oyIN.zeros((1, 4, 84, 84), dtype=oyIN.float32)\n nq5M[0] = QTBn\n gc9P = eVVj.predict(nq5M, batch_size=1)[0]\n return gc9P", "def t17M(YKHO, QTBn):\n YKHO.model.eval()\n with ht2j.no_grad():\n wspz = ht2j.from_numpy(QTBn).type(ht2j.FloatTensor)\n ...
[ "0.7690496", "0.75518763", "0.74596906", "0.73423487", "0.7321449", "0.7288537", "0.72848696", "0.7267871", "0.7259948", "0.72459024", "0.7236802", "0.7228352", "0.7197367", "0.71861565", "0.7123302", "0.71188223", "0.7072453", "0.70616096", "0.7047321", "0.70366204", "0.7036...
0.7273627
7
Converts a file that contains a list of integers to a generator that yields these integers.
def Z2hI(pmON) -> jd6F[int, None, None]: with open(pmON, 'rt') as L8wK: for zFiD in L8wK: yield int(zFiD.strip())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dxao(YKHO):\n with YKHO.filestream as Vb5F:\n for zFiD in Vb5F:\n nPrm = list(map(int, zFiD.split()))\n for mLGw in nPrm:\n yield mLGw", "def GqW5(MVVZ: List[str]):\n for nUeQ in map(open, MVVZ):\n yield (int(zFiD.strip()) for zFiD in nUeQ)", "def YL...
[ "0.77146715", "0.75996107", "0.74683386", "0.7397612", "0.7292642", "0.70214415", "0.69227463", "0.67859346", "0.66733533", "0.6568783", "0.6536619", "0.6470031", "0.6376422", "0.63686377", "0.6358946", "0.63522017", "0.62989974", "0.6278056", "0.62438285", "0.62026036", "0.6...
0.77912575
0
Matches resources that are also groups.
def o0RV(YKHO, kUBT): raise UAju.Unimplemented()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cei0(YKHO, JKCy, Lg1Y):\n IbHi = []\n try:\n for IXKo in Lg1Y:\n if 'test' in IXKo:\n IbHi.append(JKCy.groups[IXKo].group_resources)\n else:\n return None\n return IbHi\n except Exception as ex:\n uBEK.log_error('Exception at met...
[ "0.6122194", "0.60425425", "0.60357726", "0.5971273", "0.5965242", "0.58867687", "0.58658165", "0.58462733", "0.5840442", "0.582437", "0.5818902", "0.57060844", "0.56605387", "0.5642986", "0.56316525", "0.56316525", "0.55971473", "0.559616", "0.5591528", "0.5588373", "0.55711...
0.0
-1
Clears the resource relationship terms.
def b4A6(YKHO): raise UAju.Unimplemented()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def etUJ(YKHO):\n YKHO._clear_terms('resource')", "def hTOu(YKHO):\n YKHO._clear_terms('resourceRelationshipId')", "def dCHk(YKHO):\n YKHO._clear_terms('resourceId')", "def Y7Bk(YKHO):\n YKHO._terms = {}\n YKHO._documents = {}", "def AYzR(YKHO):\n raise UAju.Unimplemented()", "async def...
[ "0.82293814", "0.78608817", "0.78168", "0.7178043", "0.67454153", "0.67109317", "0.65795434", "0.64545786", "0.64545786", "0.6442974", "0.64015514", "0.6289599", "0.6286535", "0.6220376", "0.6220376", "0.6208691", "0.62003547", "0.6193", "0.6179807", "0.6167485", "0.60647625"...
0.8987692
0
Gets the resource query record corresponding to the given ``Resource`` record ``Type``. Multiple retrievals produce a nested ``OR`` term.
def MyOs(YKHO, fdXi): raise UAju.Unimplemented()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, Qjbs: str, jdGy: 'Union[Modifier, str]'=None) -> 'Union[Awaitable[Document], Document]':\n if YKHO.enable_async:\n return YKHO._get_async(Qjbs, jdGy)\n else:\n return YKHO._get_sync(Qjbs, jdGy)", "def XdG_(YKHO, fdXi):\n return", "def HeD1(YKHO, Qjbs, PcW4=None, nPrm=None)...
[ "0.6595478", "0.64827454", "0.6331323", "0.62390363", "0.62176806", "0.6192604", "0.6135137", "0.6067327", "0.5856477", "0.5813089", "0.5794613", "0.5793539", "0.57560295", "0.5731763", "0.57003367", "0.57003367", "0.5697148", "0.5656264", "0.5589444", "0.5577361", "0.5569513...
0.68380713
0
Return a discrete colormap from the continuous colormap cmap.
def w7ZZ(iMGt, ywwl): if type(iMGt) == str: iMGt = tRp2(iMGt) _1oH = MPiJ((Uee5(0, 1.0, ywwl), (0.0, 0.0, 0.0, 0.0))) o1SW = iMGt(_1oH) _0VL = Uee5(0, 1.0, ywwl + 1) pXRx = {} for BOse, H5ew in enumerate(('red', 'green', 'blue')): pXRx[H5ew] = [(_0VL[YRbF], o1SW[YRbF - 1, BOse], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HX90(j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name + str(3)\n return P8oC.from_list(em8M, F4JO, 3)", "def n5ny(i6Hb, em8M='gnuplot', MynD=0.0, n4wC=1.0):\n iMGt = QrM1.cm.get_cmap(em8M)\n return [iMGt(oyIN.interp(YRbF, [0, i6Hb - 1],...
[ "0.77167004", "0.7712706", "0.7649774", "0.7411618", "0.7284846", "0.72610646", "0.72610646", "0.72610646", "0.72594976", "0.7246199", "0.7246199", "0.722852", "0.72219944", "0.71725595", "0.71725595", "0.71725595", "0.71725595", "0.71725595", "0.71725595", "0.7170971", "0.71...
0.6269104
42
Create a UNet with 4 times downsampling and 4 times upsampling
def prOL(GhuM, TFPw, lo24=0.5, oNEO=0.0, I3sX=0.9, z5f9=3): g4y1 = X6a0(GhuM) dg7v = yHwh(16, (3, 3), kernel_initializer='he_normal', padding='same')(g4y1) dg7v = GVKG(axis=z5f9, momentum=I3sX)(dg7v) dg7v = MroH('relu')(dg7v) dg7v = yHwh(16, (3, 3), kernel_initializer='he_normal', padding='same')(dg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, vTym, NB23=None, VMn6={}, RJMY='nearest', VTtz=1, irMI=False):\n super(pisb, YKHO).__init__()\n YKHO.use_causal_conv = irMI\n YKHO.up_layers = ht2j.nn.ModuleList()\n for NXpY in vTym:\n rHUV = LLz6(NXpY, 1, RJMY)\n YKHO.up_layers += [rHUV]\n assert (VTtz - 1) % 2 == ...
[ "0.6921547", "0.67045", "0.66937697", "0.66641027", "0.6640365", "0.66057456", "0.6549921", "0.6542031", "0.65278804", "0.6512885", "0.6431216", "0.6428852", "0.642675", "0.63554573", "0.6335236", "0.6308166", "0.629833", "0.62928635", "0.6271338", "0.62627023", "0.62579995",...
0.57363373
71
Returns the average value of all measurements for all locations in the given area. Returns None if there are no measurements.
def wATj(h1bw): eJj5 = qtWW.get_locations_for_area(h1bw) ZYGs = 0.0 wjRY = 0.0 ZfUD = 0.0 for rdlD in eJj5: SjlA = int(rdlD['location_id']) Tgi9 = qtWW.get_measurements_for_location(SjlA) for XtSK in Tgi9: wjRY += float(XtSK['value']) ZfUD += 1 if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a8du(RBVb):\n return RBVb[['frame', 'area']].groupby('frame').agg(oyIN.mean).reset_index().sort('frame')['area'].values", "def HzXI(KxnW, sTsX, KBQj):\n TfZA = oyIN.empty((0, KxnW.shape[1], KxnW.shape[2]))\n for YRbF in range(0, KBQj - sTsX, 1):\n f0tD = oyIN.mean(KxnW[305 + 365 * YRbF:305 + ...
[ "0.67650723", "0.6330886", "0.6244983", "0.6047055", "0.5962492", "0.59183896", "0.58803403", "0.587393", "0.5805368", "0.5794984", "0.5794984", "0.5761104", "0.57462794", "0.5739336", "0.57314456", "0.572485", "0.57096106", "0.56818056", "0.56675345", "0.5662719", "0.5658077...
0.8377058
0
Creates the combined matrix Q described in Marmarelis, 1997
def z6RR(FfVr: float, H4y3: np.ndarray, xdpp: np.ndarray) -> oyIN.ndarray: if H4y3.size != xdpp.shape[0] or H4y3.size != xdpp.shape[1]: raise ValueError(f'Size mismatch, {H4y3.size} vs. {xdpp.shape}') vexM = oyIN.empty((H4y3.size + 1, H4y3.size + 1)) vexM[0, 0] = FfVr vexM[0, 1:] = H4y3 / 2 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tu04(vexM):\n P6bq = []\n for YRbF in range(3):\n P6bq.append([])\n for r845 in range(3):\n P6bq[YRbF].append(0.0)\n P6bq[0][0] = vexM[0] * vexM[0] + vexM[1] * vexM[1] - vexM[2] * vexM[2] - vexM[3] * vexM[3]\n P6bq[0][1] = 2.0 * (vexM[1] * vexM[2] - vexM[0] * vexM[3])\n ...
[ "0.70020205", "0.6988236", "0.69785124", "0.67614704", "0.66209483", "0.6562476", "0.65539056", "0.65246314", "0.6492371", "0.6425425", "0.64081854", "0.6377698", "0.63746774", "0.6353313", "0.6348421", "0.6331638", "0.63268745", "0.6322001", "0.62780774", "0.6262615", "0.625...
0.6676304
4
Create an array, with one being used as the default value for uninitialized portions of the array.
def pSfY(ROpF, **B2fa): return eLpg(shape=ROpF, fill_value=1, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def owhS(zNig, QKyp=None):\n return [QKyp] * zNig", "def eZZg(EcVT):\n Gmep, bGrB = EcVT.shape\n jzdc = oyIN.empty((Gmep, 1))\n jzdc.fill(oyIN.nan)\n return jzdc", "def Kx7b(YKHO):\n return [None for mAB6 in range(YKHO.capacity)]", "def ngQm(zNig):\n qw7D = oyIN.empty((zNig,))\n qw7D[...
[ "0.7061338", "0.6681354", "0.6633598", "0.65879196", "0.6523939", "0.64505565", "0.6391321", "0.6342209", "0.6325613", "0.63254887", "0.6258305", "0.6061878", "0.604176", "0.6020581", "0.59719586", "0.5950318", "0.5899956", "0.58833295", "0.58489907", "0.5815734", "0.5788788"...
0.0
-1
Create an array, with `fill_value` being used as the default value for uninitialized portions of the array.
def vBWh(ROpF, xgWT, **B2fa): return eLpg(shape=ROpF, fill_value=xgWT, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def owhS(zNig, QKyp=None):\n return [QKyp] * zNig", "def Py7T(nPrm, zNig, xgWT=XTiz.nan, Rb2A=True):\n if Rb2A:\n return XTiz.append(nPrm, XTiz.repeat(xgWT, zNig - nPrm.size))\n return XTiz.append(XTiz.repeat(xgWT, zNig - nPrm.size), nPrm)", "def LGJQ(YKHO, zBc9, xgWT):\n raise NotImplemente...
[ "0.75049275", "0.7032441", "0.7004776", "0.67083186", "0.65595263", "0.6558063", "0.65191084", "0.65031683", "0.6455103", "0.6432178", "0.64053357", "0.637128", "0.636533", "0.633218", "0.6323556", "0.6291481", "0.6253068", "0.6235202", "0.62181014", "0.61721724", "0.61693305...
0.6019886
29
Create an array of ones like `a`.
def EwqT(jzdc, **B2fa): Ub6J(jzdc, B2fa) return pSfY(**B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i0gR(u54L):\n ezWE = []\n for YRbF in Ni9Y(0, u54L):\n ezWE.append(1)\n return ezWE", "def EwqT(jzdc, yDqo=None, ROpF=None):\n return GXCE(jzdc, yDqo, ROpF, pSfY)", "def DC6w(exwG: int) -> KLpP:\n return [1] * exwG", "def pSfY(*qIxc):\n return qhYA(1.0, *qIxc)", "def pSfY(YKHO)...
[ "0.74196225", "0.7157506", "0.7098858", "0.7052629", "0.6935679", "0.6756397", "0.6747219", "0.66519666", "0.6513114", "0.6418538", "0.63593256", "0.6284965", "0.62608945", "0.626075", "0.6260548", "0.6226412", "0.6181466", "0.6161582", "0.6161582", "0.6158719", "0.6155007", ...
0.6888097
5