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
computes the inverse DFT of vec takes in the onesided spectrum
def Jjzp(gwPJ, JRYC=1.0): ywwl = len(gwPJ) if ywwl % 2: exwG = 2 * ywwl - 1 else: exwG = 2 * ywwl c8xx = exwG * JRYC he6J = oyIN.empty((exwG,), complex) he6J[:ywwl] = gwPJ if exwG % 2: he6J[ywwl:] = oyIN.conjugate(gwPJ[1:])[::-1] else: he6J[ywwl:] = oyIN.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n6pP(_owh):\n dVX8 = Zxt2.fft.irfft(_owh)\n return dVX8", "def q2TY(iArr, PtXs):\n e_2d = iArr.shape[0]\n WKvO = oyIN.arange(e_2d)\n gNEn = oyIN.exp(PtXs * oyIN.pi * 1j * WKvO.reshape(e_2d, 1) * WKvO / e_2d)\n return gNEn @ iArr", "def NbaI(nPrm):\n nPrm = oyIN.asarray(nPrm, dtype=floa...
[ "0.71703684", "0.68771493", "0.68730336", "0.6827396", "0.68070185", "0.6793121", "0.67233235", "0.6652076", "0.6651832", "0.6643304", "0.664033", "0.6615273", "0.6611747", "0.6609404", "0.6601989", "0.6575802", "0.65544885", "0.6546944", "0.6537255", "0.6518099", "0.6480221"...
0.68919724
1
Test main route of project
def MQLb(P4t4): XiF4 = M29n(exwG, False) XiF4.solve() assert len(XiF4.get_solutions(1)) == rJDt assert XiF4.is_solved()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSnr(YKHO):\n YKHO.route_check('Github')", "def aSnr(YKHO):\n YKHO.route_check('Index')", "def BGcA(YKHO):\n bD7m = gxEw('main')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(200, geh0.status_code)", "def rpBe(YKHO):\n im04 = YKHO.app.get('/test')\n YKHO.assertEqual(im04.status_c...
[ "0.7949479", "0.7858569", "0.7672939", "0.756697", "0.75200105", "0.74262154", "0.7204256", "0.7158606", "0.71459675", "0.7084247", "0.7043787", "0.70362276", "0.7032813", "0.70227367", "0.70227367", "0.69415337", "0.69113016", "0.68974483", "0.6873365", "0.6866024", "0.68410...
0.0
-1
Test main route of project
def Zlbw(P4t4): with P4t4.test_request_context('/'): XiF4 = M29n(exwG, True) assert XiF4.solve() is None assert len(XiF4.get_solutions(1).items) > 0 assert XiF4.is_solved()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSnr(YKHO):\n YKHO.route_check('Github')", "def aSnr(YKHO):\n YKHO.route_check('Index')", "def BGcA(YKHO):\n bD7m = gxEw('main')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(200, geh0.status_code)", "def rpBe(YKHO):\n im04 = YKHO.app.get('/test')\n YKHO.assertEqual(im04.status_c...
[ "0.7949479", "0.7858569", "0.7672939", "0.756697", "0.75200105", "0.74262154", "0.7204256", "0.7158606", "0.71459675", "0.7084247", "0.7043787", "0.70362276", "0.7032813", "0.70227367", "0.70227367", "0.69415337", "0.69113016", "0.68974483", "0.6873365", "0.6866024", "0.68410...
0.0
-1
On creation, the Portfolio object contains no positions and all values are "reset" to the initial cash, with no PnL realised or unrealised. Note that realised_pnl is the running tally pnl from closed positions (closed_pnl), as well as unrealised_pnl from currently open positions.
def FIMM(YKHO, JGNP, VoIp): YKHO.price_handler = JGNP YKHO.init_cash = VoIp YKHO.equity = VoIp YKHO.cur_cash = VoIp YKHO.positions = {} YKHO.closed_positions = [] YKHO.realised_pnl = 0 YKHO.margin = 0 YKHO.free_margin = 0 YKHO.new_pos_closed = True YKHO.new_order_closed = Tru...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.portfolio = {'cash': Ceit}\n YKHO.equity = Ceit\n YKHO.re = float()\n YKHO.tran_cost = float()", "def Tiyw(YKHO):\n HVIF = YKHO._portfolio_store\n HVIF.capital_used = YKHO.period_cash_flow\n HVIF.starting_cash = YKHO.starting_cash\n HVIF.portfolio_value = YKHO.endin...
[ "0.7446497", "0.7074931", "0.6962277", "0.6648262", "0.6541522", "0.6490002", "0.6475794", "0.6274744", "0.6263054", "0.6257624", "0.61061937", "0.5998522", "0.5949261", "0.59205776", "0.5900324", "0.58116907", "0.5781223", "0.5739763", "0.5736139", "0.5709773", "0.5709713", ...
0.6086078
11
Adds a new Position object to the Portfolio. This requires getting the best bid/ask price from the price handler in order to calculate a reasonable "market value". Once the Position is added, the Portfolio values are updated.
def GYrO(YKHO, XeOP, SYlA, cuz7, cTRz, hI0L, cDpt): if cuz7 not in YKHO.positions: J7Ye = YKHO.price_handler.get_last_timestamp(SYlA) if YKHO.price_handler.istick(): XJob, QYWI = YKHO.price_handler.get_best_bid_ask(SYlA) else: mv_N = YKHO.price_handler.get_last_close(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, dQgj: tuple):\n YKHO.live.add(dQgj)", "def bK4F(YKHO, Q382):\n hI0L = Q382.fill_cost / Q382.quantity\n o61b = Q382.symbol\n uXYJ = Q382.trade_type\n XSoh = Q382.direction\n cTRz = Q382.quantity\n XeOP = dHhE[XSoh, uXYJ]\n if o61b in YKHO.filled_positions:\n raise Val...
[ "0.6419228", "0.63030434", "0.6252693", "0.6181216", "0.6177039", "0.61654955", "0.6133803", "0.6085395", "0.60069615", "0.5917794", "0.59047145", "0.5891488", "0.584646", "0.58383286", "0.5809475", "0.57910717", "0.572988", "0.56618035", "0.56240004", "0.55890954", "0.557060...
0.72816837
0
Forward method for the MultiDomainConvTranspose2d class.
def KVH6(YKHO, LNo8): tG1N = [MRlR.fft2(Xn71, centered=YKHO.fft_centered, normalization=YKHO.fft_normalization, spatial_dims=YKHO.spatial_dims) for Xn71 in ht2j.split(LNo8.permute(0, 2, 3, 1).contiguous(), 2, -1)] tG1N = ht2j.cat(tG1N, -1).permute(0, 3, 1, 2) tG1N = YKHO.kspace_conv(tG1N) ZD5u = [MRlR.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, g4y1, o4Jx):\n k81b = oyIN.transpose(g4y1[0], YKHO.axes)\n oyIN.copyto(o4Jx[0], k81b)", "def KVH6(YKHO, WKvO):\n if WKvO.dim() == 4:\n WKvO = WKvO.permute(0, 2, 3, 1).contiguous()\n WKvO = super().forward(WKvO)\n WKvO = WKvO.permute(0, 3, 1, 2).contiguous()\n if WK...
[ "0.6734786", "0.6704593", "0.6575285", "0.64988095", "0.6481525", "0.6475397", "0.6422815", "0.6383351", "0.6321581", "0.6302095", "0.6281735", "0.6276879", "0.6271011", "0.62654555", "0.62629557", "0.62613153", "0.62554187", "0.6251209", "0.6241005", "0.6239541", "0.6233843"...
0.0
-1
Setter method for node_num, mapped from YANG variable /brocade_cluster_rpc/show_cluster_management/output/cluster_nodes/cluster_node_info/node_num (uint16)
def o7_m(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=ukQ0(base_type=int, restriction_dict={'range': ['0..65535']}, int_size=16), is_leaf=True, yang_name='node-num', rest_name='node-num', parent=YKHO, path_helper=YKHO._path_helper, ext...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def siui(YKHO):\n pass", "def bAIZ(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='node-serial-num', rest_name='node-serial-num', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._ex...
[ "0.5517152", "0.5472331", "0.5429833", "0.5426565", "0.53783154", "0.5348308", "0.53287035", "0.5326296", "0.52687484", "0.5221005", "0.51768583", "0.5175635", "0.51391184", "0.5128039", "0.5056875", "0.50208485", "0.49693528", "0.49620044", "0.49359667", "0.49219584", "0.491...
0.8021572
0
Getter method for node_condition, mapped from YANG variable /brocade_cluster_rpc/show_cluster_management/output/cluster_nodes/cluster_node_info/node_condition (string)
def sHMD(YKHO): return YKHO.__node_condition
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ytPH(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='node-condition', rest_name='node-condition', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=False, n...
[ "0.7521409", "0.5193472", "0.4898391", "0.4874478", "0.48280698", "0.47979373", "0.4749512", "0.4636874", "0.4613482", "0.45892128", "0.45759386", "0.45759386", "0.45759386", "0.45759386", "0.45759386", "0.45759386", "0.45759386", "0.45759386", "0.44569367", "0.44286647", "0....
0.5726212
1
Setter method for node_condition, mapped from YANG variable /brocade_cluster_rpc/show_cluster_management/output/cluster_nodes/cluster_node_info/node_condition (string)
def ytPH(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='node-condition', rest_name='node-condition', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=False, namespace=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sHMD(YKHO):\n return YKHO.__node_condition", "def XEri(YKHO, XEri):\n if XEri is None:\n raise ValueError('Invalid value for `condition`, must not be `None`')\n YKHO._condition = XEri", "def vbyf(YKHO, Q6kx: Node, XEri=''):\n if Q6kx is not None:\n print(XEri)\n print(str(Q...
[ "0.5237528", "0.5196592", "0.48640326", "0.4797009", "0.47960228", "0.47406724", "0.4724191", "0.4711149", "0.47069976", "0.46945414", "0.46654359", "0.46654359", "0.46654359", "0.46654359", "0.46654359", "0.46316406", "0.4624649", "0.45402247", "0.45267686", "0.45266277", "0...
0.81894684
0
Applies a set of filtering and/or evidence criteria to specific columns in a Pandas DataFrame and returns a filtered data frame.
def P6IV(YKHO, jQ3Z: pd.DataFrame, iyHV: str, dGN7: str) -> rLdf.DataFrame: if iyHV == 'None' and dGN7 == 'None': return jQ3Z else: tsrz = YKHO.filter_fixer(iyHV) + '::' + YKHO.filter_fixer(dGN7) wjLZ = [WKvO for WKvO in tsrz.split('::') if WKvO != 'None'] for uZ_J in wjLZ: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def inI4(jQ3Z, iPqd):\n if len(iPqd) == 0:\n return jQ3Z\n elif len(iPqd) == 1:\n return jQ3Z[iPqd[0]]\n else:\n return jQ3Z[Pusg(lambda dg7v, iYf1: dg7v & iYf1, iPqd[1:], iPqd[0])]", "def inI4(jQ3Z, iPqd):\n if len(iPqd) == 0:\n return jQ3Z\n elif len(iPqd) == 1:\n ...
[ "0.7220509", "0.7220509", "0.7210299", "0.71513635", "0.71466815", "0.71330506", "0.70138836", "0.69979376", "0.69819564", "0.6979059", "0.69083554", "0.68629736", "0.68133837", "0.6760705", "0.6758669", "0.6739191", "0.66017807", "0.65674824", "0.64765626", "0.64460075", "0....
0.73789126
0
T1=0 T2=0 threshold = np.ones(x.shape) threshold[(x < 0)] = 0 return threshold
def m1Hg(WKvO): CAzz = oyIN.zeros(WKvO.shape) if len(CAzz.shape) > 1: for YRbF in range(WKvO.shape[0]): for r845 in range(WKvO.shape[1]): if WKvO[YRbF][r845] <= -4: CAzz[YRbF][r845] = 0 elif WKvO[YRbF][r845] >= 4: CAzz[Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gwAu(nPrm, gwAu=0, BgLj=False):\n QOe9 = nPrm > gwAu\n if BgLj:\n return QOe9.astype(float)\n else:\n return oyIN.where(QOe9, nPrm, 0.0)", "def gwAu(EcVT):\n return oyIN.clip(EcVT, 0, oyIN.max(EcVT))", "def BgLj(qw7D, BWXx):\n qw7D[(-oyIN.abs(BWXx) < qw7D) & (oyIN.abs(BWXx) > q...
[ "0.7179495", "0.691406", "0.6858743", "0.68371445", "0.6833879", "0.6816424", "0.67357564", "0.6675944", "0.6662828", "0.66537076", "0.66005546", "0.6512188", "0.64931273", "0.6456222", "0.64242417", "0.6393061", "0.6376978", "0.6353134", "0.63527495", "0.6324758", "0.6309315...
0.5806464
74
Clear terminal and restore default attributes
def d3Jg(yPVe: bool=True): if yPVe: H1pp('%HOM%%ED2%%MOD(0)%') Ge4m() WHYh() lLw2() gKlW('%NC%')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cDHD():\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')", "def cDHD() -> None:\n bGrB = Hy7s.system('cls') if Hy7s.name == 'nt' else Hy7s.system('clear')", "def cDHD() -> None:\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')", "def KnLO():\n if mWFP == 'nt':\n bGrB = Oz1B...
[ "0.79944116", "0.7914588", "0.7911992", "0.7866399", "0.77252287", "0.76444596", "0.7610362", "0.7348565", "0.72930485", "0.7244107", "0.7218327", "0.720482", "0.72005504", "0.7198189", "0.71911246", "0.71674967", "0.7152585", "0.71512794", "0.7149056", "0.7148905", "0.714168...
0.7394865
7
PSNR is Peek Signal to Noise Ratio, which is similar to mean squared error. It can be calculated as PSNR = 20 log10(MAXp) 10 log10(MSE) When providing an unscaled input, MAXp = 255. Therefore 20 log10(255)== 48.1308036087. However, since we are scaling our input, MAXp = 1. Therefore 20 log10(1) = 0. Thus we remove that...
def jjeU(Y8eF, aMgO): try: return 20.0 * oyIN.log10(nMvt.max(Y8eF)) - 10.0 * oyIN.log10(nMvt.mean(nMvt.square(aMgO - Y8eF))) except: UUZ1 = q4Ja(rMbA(10.0)) return 20.0 * q4Ja(nMvt.max(Y8eF)) / UUZ1 - 10.0 * q4Ja(nMvt.mean(nMvt.square(aMgO - Y8eF))) / UUZ1 return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yIql(O3mL, aJu6):\n ny2L = oyIN.mean((O3mL - aJu6) ** 2)\n GLcw = max(oyIN.max(O3mL), oyIN.max(aJu6))\n return 10 * oyIN.log10(GLcw ** 2 / ny2L)", "def cuEG(_ger, VXjJ):\n y9LV = yIql(_ger, VXjJ, dynamic_range=255)\n return y9LV", "def aKgZ(H96n, aMgO):\n hkHB = ny2L(H96n, aMgO)\n hnFq...
[ "0.6974769", "0.6853986", "0.68450886", "0.6774679", "0.6719888", "0.66296697", "0.6617117", "0.65614927", "0.6525945", "0.64355713", "0.6393293", "0.63631725", "0.62897885", "0.6235745", "0.6167124", "0.61668307", "0.61199164", "0.61094433", "0.6056276", "0.604302", "0.60364...
0.0
-1
setUp, nothing else to add.
def FCbF(YKHO): super(qboj, YKHO).setUp() gCuF.ALLOWED_QUERYAPI_APP_IDS.append(YKHO.ALLOWED_APPID) YKHO._custom_headers['X-appengine-inbound-appid'] = YKHO.ALLOWED_APPID YKHO.app.login_manager.request_loader(YKHO.handle_loaded_user) YKHO.loaded_email = None YKHO.raised_exception = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def FCbF(YKHO):\n pass", "def F...
[ "0.88377154", "0.8772624", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", "0.8687438", ...
0.0
-1
Return the baseline value corresponding to the key.
def NMoC(YKHO, pO5v: str, nQMw: str) -> dict: H5ew = YKHO._tag.format(pO5v, nQMw) k3nF = YKHO._baselines.get(H5ew) if k3nF: pan_ = k3nF.get('target') ku1I = k3nF.get('delta_percentage') return {'target': pan_, 'delta': ku1I * pan_ / 100} return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r4Kl(srSF, ppBa, pO5v):\n for R1xY in srSF.slicing_metrics:\n gCcT = R1xY[0]\n if ppBa == 'Overall':\n if not gCcT:\n return E1mB(R1xY[1], pO5v)\n if ppBa == gCcT:\n return E1mB(R1xY[1], pO5v)\n raise ValueError('Could not find baseline %s in eval...
[ "0.6787237", "0.62791383", "0.6188881", "0.6160145", "0.6134587", "0.60946095", "0.60264313", "0.5994901", "0.5987957", "0.5911418", "0.5823647", "0.5810141", "0.5750853", "0.5699386", "0.5653762", "0.55907243", "0.5583036", "0.5583036", "0.5580894", "0.5555924", "0.55164075"...
0.0
-1
A class which inhertis this mixins should have variable `serializer_action_classes`. Look for serializer class in self.serializer_action_classes, which should be a dict mapping action name (key) to serializer class (value),
def l5oD(YKHO): try: return YKHO.serializer_action_classes[YKHO.action] except (KeyError, AttributeError): return super().get_serializer_class()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5oD(YKHO):\n if not isinstance(YKHO.serializer_classes, dict):\n raise rqaQ('serializer_classes should be a dict mapping.')\n if YKHO.action in YKHO.serializer_classes.keys():\n return YKHO.serializer_classes[YKHO.action]\n return super().get_serializer_class()", "def l5oD(YKHO):\n ...
[ "0.8316282", "0.79019964", "0.7898191", "0.78779197", "0.7309238", "0.7309238", "0.7164643", "0.68488026", "0.6796609", "0.6631888", "0.65677094", "0.6493898", "0.64840394", "0.64827424", "0.6404867", "0.63686895", "0.63000333", "0.6296004", "0.6296004", "0.6293652", "0.62710...
0.8128747
1
Start Date must be after Election Date.
def FA9V(YEnM): if YEnM.election_date >= YEnM.start_date: raise wohN.Invalid(bGrB('The life of a parliament must start after its election'), 'election_date', 'start_date')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aJqY(YKHO):\n if YKHO.date_start and YKHO.date_end and (YKHO.date_start > YKHO.date_end):\n raise Warning(bGrB('End date must be greater than start date'))", "def iW3S(YKHO, Jyyj):\n if Jyyj.data < _c1T.today():\n raise sUXu(\"Start date can't be a date in the past.\")", "def x0SS(YKHO)...
[ "0.71765155", "0.68639374", "0.6863742", "0.6858869", "0.683685", "0.6799957", "0.6692887", "0.667282", "0.65606266", "0.6556231", "0.6504669", "0.6493048", "0.64693546", "0.6374879", "0.6358208", "0.63555545", "0.6338172", "0.6273471", "0.6244512", "0.62151384", "0.6201341",...
0.7789409
0
End Date must be after Start Date.
def gwzH(YEnM): if YEnM.end_date is None: return if YEnM.end_date <= YEnM.start_date: raise wohN.Invalid(bGrB('End Date must be after Start Date'), 'start_date', 'end_date')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xh6J(YKHO, Jyyj):\n if Jyyj.data < YKHO.start_date.data:\n raise sUXu('End date must be on or after start date.')", "def EVpV(kepv, KhBf):\n if KhBf <= kepv:\n raise H6V6.ValidationError('End date must be strictly posterior to start date.')", "def aJqY(YKHO):\n if YKHO.date_start and...
[ "0.7988358", "0.7846311", "0.77075756", "0.7648837", "0.7462172", "0.73345745", "0.73171884", "0.7293756", "0.7286071", "0.71996534", "0.71831185", "0.71557045", "0.7121264", "0.70853853", "0.7083218", "0.7030193", "0.6979604", "0.6920484", "0.69027704", "0.6858975", "0.68554...
0.81771946
0
If a person is substituted he must have an end date.
def bMn5(YEnM): if not YEnM.end_date and YEnM.replaced_id: raise wohN.Invalid(bGrB('If a person is substituted End Date must be set'), 'replaced_id', 'end_date')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhBf(YKHO, KhBf):\n YKHO._end_date = YKHO.check_date(KhBf, 'end_date')\n YKHO.try_check_date_interval()", "def gwzH(YEnM):\n if YEnM.end_date is None:\n return\n if YEnM.end_date <= YEnM.start_date:\n raise wohN.Invalid(bGrB('End Date must be after Start Date'), 'start_date', 'end_d...
[ "0.6485385", "0.64126575", "0.63601863", "0.6223499", "0.61543757", "0.6146122", "0.6081586", "0.60736614", "0.6071616", "0.6020168", "0.6004455", "0.5961756", "0.5956617", "0.59231436", "0.5897421", "0.5883678", "0.5881097", "0.5864349", "0.585585", "0.5837263", "0.5826102",...
0.7990646
0
For members of parliament start date must be after election.
def um7j(YEnM): if YEnM.election_nomination_date > YEnM.start_date: raise wohN.Invalid(bGrB('A parliament member has to be elected/nominated before she/he can be sworn in'), 'election_nomination_date', 'start_date')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FA9V(YEnM):\n if YEnM.election_date >= YEnM.start_date:\n raise wohN.Invalid(bGrB('The life of a parliament must start after its election'), 'election_date', 'start_date')", "def nSCA(YKHO):\n if YKHO.date_to and YKHO.date_from and (YKHO.date_to < YKHO.date_from):\n raise Warning(bGrB('En...
[ "0.78726506", "0.61952096", "0.618736", "0.61538553", "0.612738", "0.61009943", "0.6027659", "0.60273933", "0.59807575", "0.59428304", "0.5871177", "0.5865961", "0.5862663", "0.58559495", "0.5832452", "0.582457", "0.58146465", "0.58094454", "0.580631", "0.58015853", "0.579295...
0.7744226
1
Constructor side A string "1P" or "2P" indicates that the MLPlay is used by which side.
def FIMM(YKHO, HEZd): YKHO.ball_served = False YKHO.side = '1P'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, HEZd):\n YKHO.currentSide = 1\n YKHO.sides = HEZd", "def FIMM(YKHO, Nz8P: bool, LyOL: int) -> None:\n super().__init__(Nz8P)\n YKHO.side_length = LyOL\n YKHO.board = yELo(LyOL)", "def FIMM(YKHO, HEZd):\n super().__init__(HEZd, HEZd)\n YKHO.set_side(HEZd)", "def FIMM(YKHO, ...
[ "0.68111384", "0.64670205", "0.6445973", "0.640047", "0.6170491", "0.6014767", "0.5902675", "0.5837333", "0.5826323", "0.57850915", "0.5760104", "0.57336617", "0.57336617", "0.5724207", "0.5714189", "0.56821436", "0.5681876", "0.5663524", "0.5630167", "0.5612092", "0.5588001"...
0.7243443
0
Test no logging of request body when log_request_body=False.
def _lXF(YKHO, QePW, KTnm): KTnm.set_level(G9jH.DEBUG) Xqgu = WJvB(QePW, log_request_body=False, log_level='debug') with trZe.warns() as AIu6: geh0 = Xqgu() assert geh0 assert AIu6 VECZ = ['REQUEST BODY:.*'] ixsI(KTnm, VECZ, exists=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _lXF(YKHO, QePW, KTnm):\n KTnm.set_level(G9jH.DEBUG)\n _iO9 = hKhs(QePW)\n Xqgu = yWra(url=_iO9, log_request_body=False, certwarn=False, log_level='debug')\n Xqgu()\n assert not KTnm.records", "def JXFq(YKHO, QePW, KTnm):\n KTnm.set_level(G9jH.DEBUG)\n Xqgu = WJvB(QePW, log_response_body...
[ "0.8205197", "0.7691741", "0.7679145", "0.75568706", "0.73085177", "0.7262157", "0.69413024", "0.6721082", "0.6656525", "0.6610551", "0.66061056", "0.6484114", "0.64702654", "0.64628005", "0.63272667", "0.6325098", "0.62461144", "0.62003803", "0.6192311", "0.61190593", "0.608...
0.8538009
0
Attach a text label above each bar in rects, displaying its height. xpos indicates which side to place the text w.r.t. the center of the bar. It can be one of the following {'center', 'right', 'left'}.
def siQ4(j8aQ, QzhK, vjll): QzhK = QzhK.lower() fUKV = {'center': 'center', 'right': 'left', 'left': 'right'} vgXP = {'center': 0.5, 'right': 0.57, 'left': 0.43} H5Bt = {'fontsize': 6} for mawX in j8aQ: H2v2 = mawX.get_height() vjll.text(mawX.get_x() + mawX.get_width() * vgXP[QzhK], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def siQ4(j8aQ, QzhK='center'):\n fUKV = {'center': 'center', 'right': 'left', 'left': 'right'}\n vgXP = {'center': 0, 'right': 1, 'left': -1}\n for mawX in j8aQ:\n H2v2 = mawX.get_height()", "def siQ4(j8aQ, QzhK='center'):\n fUKV = {'center': 'center', 'right': 'left', 'left': 'right'}\n vg...
[ "0.7802868", "0.7802868", "0.7790633", "0.7675901", "0.7665396", "0.7657626", "0.762418", "0.7620159", "0.76170444", "0.7602178", "0.7601025", "0.7600067", "0.75879437", "0.75879437", "0.75867146", "0.75604665", "0.7547494", "0.7547494", "0.7547494", "0.7486934", "0.74756914"...
0.7555692
16
The name of the automation account.
def lsgd(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'automation_account_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')", "def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')", "def n8Ek(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'account_name')", "def n8Ek(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'account_name')", "def n...
[ "0.8360605", "0.8360605", "0.80502754", "0.80502754", "0.80502754", "0.80502754", "0.79753274", "0.78556025", "0.78556025", "0.78556025", "0.78556025", "0.78556025", "0.78556025", "0.77932274", "0.7612829", "0.7612829", "0.7612829", "0.7612829", "0.7612829", "0.7612829", "0.7...
0.8900169
0
Name of an Azure Resource group.
def TRLE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'reso...
[ "0.85269946", "0.85269946", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", "0.8202782", ...
0.7890846
46
The folder path of the source control. Path must be relative.
def ESvo(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'folder_path')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L7WR():\n return Hy7s.path.split(Hy7s.path.abspath(xAKo))[0]", "def UBTC() -> str:\n zOGz = TLI7(RUFc(xAKo))\n print(zOGz)\n O0al = '/'.join(zOGz.split('/')[0:-2])\n return O0al", "def yv8Y():\n return gzes(TLI7(xAKo), 'projects')", "def yv8Y():\n return gzes(TLI7(xAKo), 'projects')"...
[ "0.7354317", "0.7229002", "0.72250265", "0.72186154", "0.7100175", "0.7071252", "0.7041021", "0.70138144", "0.7005565", "0.69622314", "0.6951797", "0.69508755", "0.6949761", "0.69245875", "0.69245166", "0.689594", "0.6817879", "0.6806329", "0.68039685", "0.68039685", "0.67864...
0.6321561
99
The repo url of the source control.
def N5OF(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'repo_url')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TN9o(YKHO):\n pass", "def Pssr(YKHO) -> str:\n return qe4Y.get(YKHO, 'repository_url')", "def N5OF(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'repo_url')", "def N5OF(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'repo_url')", "def Lgvx(YKHO):\n return YKHO._repo_uri", "def ...
[ "0.83378583", "0.8325568", "0.8235422", "0.81264013", "0.80822605", "0.80114716", "0.79854786", "0.790062", "0.7856292", "0.7856292", "0.78395134", "0.77254397", "0.77254397", "0.7699786", "0.76480967", "0.76480967", "0.756981", "0.7500794", "0.7389733", "0.7368828", "0.73529...
0.80079764
6
The authorization token for the repo of the source control.
def UyPm(YKHO) -> h8nf[qe4Y.Input['SourceControlSecurityTokenPropertiesArgs']]: return qe4Y.get(YKHO, 'security_token')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oexA(YKHO):\n if YKHO._github_token is not None:\n return YKHO._github_token\n qezh = 'token for travis {}'.format(qcWV.datetime.utcnow().isoformat())\n eOtH = YKHO.gh.authorize(YKHO.username, YKHO.password, scopes=('read:org', 'user:email', 'repo_deployment', 'repo:status', 'write:repo_hook'),...
[ "0.7293352", "0.6583748", "0.6330465", "0.63109577", "0.6296926", "0.62894493", "0.6274464", "0.6266544", "0.6246837", "0.62355334", "0.619165", "0.6170978", "0.614137", "0.61209935", "0.6089329", "0.6050683", "0.60009", "0.599836", "0.59784853", "0.5978205", "0.59757406", ...
0.0
-1
The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.
def zEt5(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'SourceType']]]: return qe4Y.get(YKHO, 'source_type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zEt5(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_type')", "def zEt5(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_type')", "def zEt5(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_type')", "def VRje(YKHO, zZcM):\n YKHO.log.debug('Determining source type for %s' % zZcM)\n nkr1 = 'file'\n ...
[ "0.74653155", "0.74653155", "0.74653155", "0.740571", "0.7109242", "0.7094799", "0.7079167", "0.7079167", "0.7079167", "0.7046629", "0.7016773", "0.69965315", "0.69965315", "0.69965315", "0.69965315", "0.6884722", "0.68434715", "0.6787183", "0.67714775", "0.6739868", "0.64975...
0.7030653
10
The folder path of the source control.
def ESvo(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'folder_path')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d0zu(YKHO):\n return YKHO._src_dir", "def XZQr():\n return weTw", "def L7WR():\n return Hy7s.path.split(Hy7s.path.abspath(xAKo))[0]", "def WQbV(YKHO):\n return u'$(SRCROOT)'", "def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)", "def yv8Y():\n return gzes(TLI7(xAKo), 'projects')", ...
[ "0.7458625", "0.7437104", "0.7368797", "0.7352846", "0.734451", "0.73255426", "0.7319621", "0.7279171", "0.72780657", "0.72597826", "0.72267014", "0.7183709", "0.71515876", "0.71241003", "0.7121994", "0.7105491", "0.7086262", "0.7083629", "0.70755655", "0.7063723", "0.7025104...
0.6947403
26
The repo url of the source control.
def N5OF(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'repo_url')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TN9o(YKHO):\n pass", "def Pssr(YKHO) -> str:\n return qe4Y.get(YKHO, 'repository_url')", "def N5OF(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'repo_url')", "def Lgvx(YKHO):\n return YKHO._repo_uri", "def fAYo(YKHO):\n return YKHO.theRepositoryURL", "def N5OF(YKHO) -> h8nf[qe4Y.Input[s...
[ "0.83378583", "0.8325568", "0.8235422", "0.80822605", "0.80114716", "0.80079764", "0.79854786", "0.790062", "0.7856292", "0.7856292", "0.78395134", "0.77254397", "0.77254397", "0.7699786", "0.76480967", "0.76480967", "0.756981", "0.7500794", "0.7389733", "0.7368828", "0.73529...
0.81264013
3
The source type. Must be one of VsoGit, VsoTfvc, GitHub.
def zEt5(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'source_type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VRje(YKHO, zZcM):\n YKHO.log.debug('Determining source type for %s' % zZcM)\n nkr1 = 'file'\n if zZcM.startswith('file://'):\n nkr1 = 'file'\n elif zZcM.startswith('uri://'):\n nkr1 = 'uri'\n YKHO.log.debug('Source type is %s' % nkr1)\n return nkr1", "def zEt5(YKHO) -> str:\n ...
[ "0.71767336", "0.7162675", "0.7162675", "0.7162675", "0.697145", "0.69155926", "0.6863701", "0.6858563", "0.6851539", "0.6851539", "0.6851539", "0.6840974", "0.68233585", "0.6634482", "0.65913916", "0.65911204", "0.64522463", "0.6283887", "0.6283887", "0.6134115", "0.61246747...
0.67476773
14
The type of the resource.
def type(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(YKHO):\n return YKHO._get_field('type')", "def Qjbs(YKHO):\n return YKHO._resource_type", "def Qjbs(YKHO):\n return YKHO._resource_type", "def Qjbs(YKHO):\n return YKHO._res_type", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n retu...
[ "0.91223353", "0.9010284", "0.9010284", "0.8933747", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.86131585", "0.8593198", "0.8593198", ...
0.0
-1
Return a list of paths to immediate child directories.
def LJ7J(vsYd): OoEH = next(Hy7s.walk(vsYd))[1] return [GkAb(Hy7s.path.join(vsYd, eD3G)) for eD3G in OoEH]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dMgQ(MFy5):\n return [mWFP for mWFP in Hy7s.listdir(MFy5) if Hy7s.path.isdir(Hy7s.path.join(MFy5, mWFP))]", "def Ia3A(XP5J: Path) -> x1iM[GkAb]:\n return list(map(lambda bGrB: XP5J / bGrB, EFDX(lambda bGrB: bGrB[1], Hy7s.walk(XP5J.as_posix(), followlinks=True))))", "def AQSv(YKHO) -> list:\n if YK...
[ "0.7418251", "0.73353994", "0.7320146", "0.728009", "0.72732997", "0.7216251", "0.7207734", "0.71704376", "0.7095485", "0.70781016", "0.706575", "0.70608187", "0.7040881", "0.7023711", "0.7017585", "0.7000448", "0.6984565", "0.6918212", "0.6911775", "0.69071966", "0.6885795",...
0.80170566
0
Push element x to the back of queue.
def _jXH(YKHO, WKvO: int) -> None: YKHO.stack1.append(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()", "def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)...
[ "0.8627964", "0.847768", "0.8414127", "0.827978", "0.8259876", "0.82024014", "0.81944746", "0.81445456", "0.81445456", "0.81041193", "0.81004506", "0.80947775", "0.805236", "0.805236", "0.8037114", "0.8033887", "0.79936236", "0.79584146", "0.7948628", "0.7944436", "0.7899758"...
0.6892381
93
Removes the element from in front of queue and returns that element.
def BEuN(YKHO) -> int: if len(YKHO.stack2) != 0: return YKHO.stack2.pop() else: while YKHO.stack1: YKHO.stack2.append(YKHO.stack1.pop()) return YKHO.stack2.pop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()", "def BEuN(YKHO):\n if len(...
[ "0.85551554", "0.8329033", "0.81396025", "0.8034647", "0.7920082", "0.78877354", "0.7881368", "0.7801471", "0.7797974", "0.7746667", "0.7713724", "0.77104443", "0.7699884", "0.76672", "0.76628053", "0.76613814", "0.7645703", "0.76435876", "0.7639313", "0.7635074", "0.7621596"...
0.0
-1
Get the front element.
def T7C_(YKHO) -> int: if len(YKHO.stack2) != 0: return YKHO.stack2[-1] elif len(YKHO.stack2) == 0 and len(YKHO.stack1) != 0: while YKHO.stack1: YKHO.stack2.append(YKHO.stack1.pop()) return YKHO.stack2[-1] else: return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return YKHO.frontelem.elem", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]", "def TA6u(YKHO):\n return YKHO.storage[0]", "def VnzS(YKHO):\n return YKHO.head", "def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]", "def qnv...
[ "0.87835056", "0.83788836", "0.82574433", "0.80897844", "0.8012526", "0.7981897", "0.786668", "0.783555", "0.7815892", "0.77942365", "0.7735508", "0.769147", "0.76801795", "0.76465446", "0.7630563", "0.75877416", "0.7572392", "0.75053453", "0.74844474", "0.74813557", "0.74660...
0.0
-1
The name of this pipeline.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO):\n return YKHO._pipeline['name']", "def jBkE(YKHO):\n return YKHO._pipeline_name", "def jBkE(YKHO) -> I2jr:\n return YKHO.artifact.properties['pipeline_name'].string_value", "def BlEJ(YKHO, nPIK):\n GPtr = YKHO._select_pipeline(nPIK)\n try:\n return GPtr['name']\n exce...
[ "0.91865695", "0.89665115", "0.8462741", "0.79940975", "0.78746027", "0.7710571", "0.7710571", "0.7709891", "0.7709891", "0.7709891", "0.7709891", "0.7709891", "0.7709891", "0.7709891", "0.7709891", "0.7709891", "0.7709891", "0.7709891", "0.7709891", "0.7709891", "0.7709891",...
0.0
-1
Find all packages in filename
def mkc3(Ux0P, d8fe=''): set = {} for ZfUD in Hy7s.listdir(Ux0P): dir = Hy7s.path.join(Ux0P, ZfUD) if AH1a(dir): if d8fe: Rdl6 = d8fe + '.' + ZfUD else: Rdl6 = ZfUD set[Rdl6] = dir set.update(mkc3(dir, Rdl6)) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XtZ5():\n cEzT = ['mdtraj.scripts']\n for dir, eQqJ, RRlC in Hy7s.walk('MDTraj'):\n B5hb = dir.replace(Hy7s.path.sep, '.')\n if '__init__.py' not in RRlC:\n continue\n cEzT.append(B5hb.replace('MDTraj', 'mdtraj'))\n return cEzT", "def Fw0A(iGvk=None):\n dZfx = []\n...
[ "0.72394764", "0.7164028", "0.7155823", "0.70500326", "0.7028965", "0.7028965", "0.7028965", "0.7028965", "0.7028965", "0.7028965", "0.7028965", "0.7028965", "0.69329983", "0.69320893", "0.6838175", "0.6823226", "0.67798275", "0.676766", "0.67608285", "0.67402244", "0.6725070...
0.70801663
3
The underlying robot description of the arm. Guaranteed to be nonnull.
def sTIn(YKHO): return YKHO._robot_model
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBZA(YKHO):\n if YKHO._description is not None:\n return YKHO.description\n JBZA = YKHO.client.get_device_description(YKHO.name)\n YKHO._description = JBZA\n return JBZA", "def j4jS(YKHO):\n return YKHO._arm", "def Vp9T(YKHO) -> h8nf[str]:\n return YKHO._device_info.model_descripti...
[ "0.6711325", "0.6678259", "0.65095896", "0.6508881", "0.64544296", "0.64453566", "0.64166945", "0.64166945", "0.6411464", "0.6408065", "0.6408065", "0.6408065", "0.6408065", "0.6408065", "0.6408065", "0.6408065", "0.6408065", "0.6408065", "0.6408065", "0.6408065", "0.6408065"...
0.0
-1
The currently set end effector. ``None`` if there is no end effector.
def Bkrz(YKHO): return YKHO._end_effector
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DSxT(YKHO):\n return YKHO._gains_in_end_effector_frame", "def _pHw(YKHO):\n return oyIN.array(XP5J.getLinkState(YKHO.arm, 5, computeForwardKinematics=True)[0])", "def Gt1w(YKHO):\n bGrB, oeNL = G643.simxGetObjectPosition(YKHO.client_id, YKHO.ik_tip_handle, -1, G643.simx_opmode_blocking)\n retur...
[ "0.68991137", "0.6858341", "0.6852961", "0.67360926", "0.6621982", "0.6561296", "0.65533024", "0.65091646", "0.6475246", "0.6470031", "0.64528114", "0.64155245", "0.63916016", "0.6381416", "0.63320726", "0.63309526", "0.63297015", "0.6316732", "0.63071305", "0.6298461", "0.62...
0.78772664
0
Removes any currently set joint limits.
def cdug(YKHO): YKHO._use_joint_limits = False YKHO._min_positions = None YKHO._max_positions = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def opLD(YKHO):\n if YKHO.getPhysical().space:\n YKHO.getPhysical().space.remove(*YKHO._joints)\n YKHO._joints = []", "def xp0E(YKHO):\n sQC5.logdebug('Clamping current_joint_pose>>>' + str(YKHO.current_joint_pose))\n s5xb = YKHO.current_joint_pose[0]\n i7gU = YKHO.current_joint_pose[1]...
[ "0.6729942", "0.623714", "0.6230075", "0.61153036", "0.59561", "0.5943358", "0.58504534", "0.5804087", "0.5786166", "0.5782833", "0.57792026", "0.5750497", "0.57456946", "0.57255733", "0.5664677", "0.56420785", "0.56240225", "0.5615528", "0.5591241", "0.55864966", "0.55668944...
0.83550394
0
Create dummy users for development.
def ejD3(UHFx): tC0c = 'flask dummyusers --count {}'.format(UHFx) q773 = UHFx XsD0 = [CBIr.username for CBIr in mv1M.query.all()] kzpm = [CBIr.email for CBIr in mv1M.query.all()] for cgWy in range(0, q773): CBIr = mv1M(username='User' + str(cgWy), email='user' + str(cgWy) + '@email.net', loc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QAU8():\n FYrf.User.get_or_create_superuser('brodriguez8774', '', 'temppass2')\n FYrf.User.get_or_create_superuser('ngf9321', '', 'temppass2')\n FYrf.User.get_or_create_superuser('jdc4014', '', 'temppass2')\n FYrf.User.get_or_create_superuser('skd6970', '', 'temppass2')\n FYrf.User.get_or_create...
[ "0.77471566", "0.7744543", "0.76484394", "0.75216234", "0.7453565", "0.72993004", "0.7295685", "0.72366303", "0.7209973", "0.7185548", "0.71765476", "0.71669406", "0.71607167", "0.71473634", "0.7104418", "0.70804745", "0.7074928", "0.7022267", "0.7017841", "0.7010633", "0.699...
0.7040873
17
Return True if current state is sentenced to end the loop.
def y3UB(YKHO): return YKHO.__check_prop(pjyd) == scy8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ohg3(YKHO):\n return YKHO._state == YKHO._end_state", "def vOQM(YKHO):\n return YKHO._switch == 5", "def Ojlj(YKHO) -> bool:\n return YKHO._current_state == YKHO._final_state", "def Pt1K(YKHO):\n return YKHO.current_state not in ['NOT_STARTED', 'RUNNING', None]", "def Ohg3(YimI):\n if Op...
[ "0.7435321", "0.71393216", "0.7096591", "0.6963315", "0.6953619", "0.6893507", "0.683345", "0.6831778", "0.67937136", "0.6736688", "0.67343855", "0.67246777", "0.671329", "0.6702677", "0.66831577", "0.6676064", "0.6674098", "0.6656863", "0.6646431", "0.6636716", "0.6631947", ...
0.62124753
94
Return the cell reference for the guess.
def dQgj(YKHO): return YKHO.input_value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def de7T(VmPb):\n pass", "def bwbz(YKHO):\n Tjhd = glfa.GetRefinementModel(False)['aunit']['cell']\n VmPb = [Tjhd['a'][0], Tjhd['b'][0], Tjhd['c'][0], Tjhd['alpha'][0], Tjhd['beta'][0], Tjhd['gamma'][0]]\n return VmPb", "def VmPb(YKHO):\n return YKHO.board.cells[YKHO.position[0]][YKHO.position[1...
[ "0.7087787", "0.67050934", "0.6401951", "0.63340706", "0.6269279", "0.6269279", "0.6258044", "0.6249305", "0.62479144", "0.6237176", "0.6225137", "0.6130635", "0.61264545", "0.60771704", "0.6052948", "0.6051478", "0.6050207", "0.5987241", "0.5941248", "0.5927225", "0.58293825...
0.0
-1
The name of the administrator user account which can be used to SSH into nodes.
def epvj(YKHO) -> str: return YKHO._admin_username
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def thRI(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'admin_user_name')", "def thRI(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'admin_user_name')", "def thRI(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'admin_user_name')", "def epvj():\n return m3Lz", "def epvj(YKHO) -> str:...
[ "0.78023124", "0.78023124", "0.77881134", "0.77774405", "0.77637845", "0.77637845", "0.77637845", "0.7650287", "0.7650287", "0.75702846", "0.75090224", "0.73804283", "0.725394", "0.7221327", "0.7221327", "0.7044139", "0.6976676", "0.6968493", "0.69472504", "0.6923501", "0.689...
0.7684601
7
The state of the compute.
def QTBn(YKHO) -> str: return YKHO._state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Olgd(YKHO):\n return YKHO.__state.value", "def tihW(YKHO, oE05):\n pass", "def QTBn(YKHO):\n Olgd = (YKHO.sim.PV_model.ia.real, YKHO.sim.PV_model.ia.imag, YKHO.sim.PV_model.va.real, YKHO.sim.PV_model.va.imag, YKHO.sim.PV_model.S_PCC.real, YKHO.sim.PV_model.S_PCC.imag, YKHO.sim.PV_model.Vdc, YKHO.s...
[ "0.75289613", "0.7500794", "0.74078864", "0.73358893", "0.7327507", "0.7327507", "0.7321677", "0.7321677", "0.7319994", "0.73171526", "0.7293822", "0.7293822", "0.72842973", "0.72809803", "0.7272446", "0.7264849", "0.72604775", "0.72579604", "0.725091", "0.72240466", "0.72200...
0.0
-1
Computes the intersection among this RangeSet and others RangeSets. This function computes the intersection of all of the intervals in self and others, returning a RangeSet containing only intervals common to all. The intersection here is an ranged intersection, not an identity intersection, so the resulting set of int...
def iQin(YKHO, *wl6z): def lDBs(lUak, h6pv, zO88): """Intersects the intervals of two IntervalTrees.""" if len(h6pv) > len(zO88): OEVY, WRy0 = (h6pv, zO88) else: OEVY, WRy0 = (zO88, h6pv) return (ICv5(lUak, max(qOhi.begin, aGjg.begin), min(qOhi.end, aGjg.end)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQin(YKHO, *wl6z):\n BdN0 = YKHO.copy()\n for Elif in wl6z:\n if isinstance(Elif, fHNa):\n BdN0 = fHNa.__and(BdN0, Elif)\n else:\n BdN0 = fHNa.__and(BdN0, fHNa(Elif))\n return BdN0", "def iQin(YKHO, *wl6z):\n Npih = [Elif._set if isinstance(Elif, NaFD) else Eli...
[ "0.765907", "0.7653136", "0.7464614", "0.7449112", "0.72538257", "0.684105", "0.682183", "0.6782212", "0.6685524", "0.65817404", "0.658113", "0.65716565", "0.6547753", "0.648728", "0.64545053", "0.6411874", "0.63998145", "0.63992655", "0.6361152", "0.6360308", "0.6306677", ...
0.81687295
0
Gets the number of ranges used by this RangeSet.
def szAg(YKHO): return sum((len(BnmQ) for BnmQ in jKi7.itervalues(YKHO._by_chr)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bqtV(YKHO):\n return len(YKHO.__ranges)", "def Qr2D(YKHO):\n return J8uC.SBBlock_GetNumRanges(YKHO)", "def oBfZ(YKHO) -> int:\n ...", "def tan8(YKHO) -> int:\n return YKHO.max_range - YKHO.min_range", "def qHJl(YKHO):\n return YKHO.NumSets", "def g5z1(YKHO):\n fiDj = 0\n for v0pW...
[ "0.8359042", "0.7857319", "0.77313066", "0.69366676", "0.6777097", "0.67208946", "0.67148", "0.654267", "0.64945006", "0.63324445", "0.63044286", "0.62919736", "0.62863535", "0.62860006", "0.62718046", "0.62402385", "0.62324244", "0.62313235", "0.62250996", "0.61606216", "0.6...
0.0
-1
Returns True if this RangeSet is not empty.
def ebnO(YKHO): return bool(YKHO._by_chr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO) -> bool:\n return len(YKHO._contains) == 0", "def FBfn(YKHO) -> bool:\n return len(YKHO._contains) == 0", "def FBfn(YKHO):\n return YKHO._values == []", "def I1P_(YKHO) -> bool:\n return YKHO.__empty", "def FBfn(YKHO) -> bool:\n return YKHO._lower is None and YKHO._upper is No...
[ "0.8054578", "0.8054578", "0.80535", "0.8049223", "0.80053365", "0.7990856", "0.7959338", "0.7946031", "0.7934747", "0.792625", "0.7920506", "0.791241", "0.7899766", "0.7892089", "0.7878888", "0.7874803", "0.78725815", "0.78667194", "0.78667194", "0.78667194", "0.78667194", ...
0.0
-1
Returns True if the variant's range overlaps with any in this set.
def wIn7(YKHO, pPTc, U2ut=True): if not YKHO: return U2ut else: return YKHO.overlaps(pPTc.reference_name, pPTc.start)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PZIW(YKHO, Elif):\n return bool(YKHO.impl['overlaps'](YKHO, Elif))", "def PZIW(YKHO, yKcO, Os4s):\n return yKcO <= YKHO.start <= Os4s or YKHO.start <= yKcO <= YKHO.end", "def PZIW(YKHO, wEf2):\n if len(YKHO) == 0:\n return False\n if isinstance(wEf2, AVsp):\n Myu7 = SPuy(YKHO.lowe...
[ "0.7210166", "0.7194474", "0.70028144", "0.69382447", "0.69124824", "0.6904383", "0.68459344", "0.6798203", "0.6783931", "0.67714435", "0.6715329", "0.67141014", "0.67112255", "0.6623528", "0.6616277", "0.6606223", "0.6598687", "0.65931565", "0.6583632", "0.6574161", "0.65677...
0.79182583
0
Splits our intervals so that none are larger than max_size. Slices up the intervals in this RangeSet into a equivalent set of intervals (i.e., spanning the same set of bases), each of which is at most max_size in length. This function does not modify this RangeSet. Because RangeSet merges adjacent intervals, this funct...
def Qrt_(YKHO, E0wO): if E0wO <= 0: raise ValueError('max_size must be > 0: {}'.format(E0wO)) for VOlW in YKHO: lUak = VOlW.reference_name for oeNL in range(VOlW.start, VOlW.end, E0wO): yield ICv5(lUak, oeNL, min(VOlW.end, oeNL + E0wO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x1DN(YKHO, ztRo):\n qdx6, JCyR, YPaw = YKHO\n while qdx6 <= JCyR:\n yKcO = qdx6\n paSp = int((JCyR - qdx6) / YPaw)\n if paSp >= ztRo:\n qdx6 += YPaw * ztRo\n yield F1SH((yKcO, qdx6 - YPaw, YPaw))\n else:\n break\n if qdx6 <= JCyR:\n J...
[ "0.641126", "0.6007922", "0.59674054", "0.58262956", "0.5766055", "0.5617532", "0.5601201", "0.5592646", "0.55152833", "0.54997206", "0.54676384", "0.54449105", "0.54388666", "0.54321814", "0.5426148", "0.54254174", "0.5420711", "0.54114676", "0.5398466", "0.5375747", "0.5332...
0.77039766
0
Test that we cannot create a post with the feed field = null
def bnQN(YKHO): def e4VA(): XP5J = T97t() YKHO.assertRaises(yXsM, e4VA())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bnQN(YKHO):\n\n def e4VA():\n XP5J = TD4U()\n YKHO.assertRaises(yXsM, e4VA())", "def Co0u(YKHO):\n eHNT = UPGR()\n\n def GDMi():\n mZa2 = False\n try:\n XP5J = T97t({'feed': eHNT})\n except Exception:\n mZa2 = True\n return mZa2\n YKHO.a...
[ "0.77673244", "0.7475305", "0.7306032", "0.7281455", "0.7236646", "0.7227589", "0.7208149", "0.71449476", "0.71294546", "0.7104475", "0.6971493", "0.6893259", "0.68318176", "0.68135923", "0.6810838", "0.6765998", "0.6759417", "0.6758517", "0.6731652", "0.67061216", "0.6679462...
0.7914689
0
Test that we can create a post with the minimal amount of data
def Co0u(YKHO): eHNT = UPGR() def GDMi(): mZa2 = False try: XP5J = T97t({'feed': eHNT}) except Exception: mZa2 = True return mZa2 YKHO.assertEquals(GDMi(), False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mXWC(YKHO):\n hGN5 = 'Test post.'\n wzkt = qcWV.datetime.now()\n XP5J = x_nV(hGN5, wzkt)\n gyDM = T97t.objects.all()\n YKHO.assertEquals(len(gyDM), 1)\n aEwn = gyDM[0]\n YKHO.assertEquals(aEwn, XP5J)\n YKHO.assertEquals(aEwn.content_plain, hGN5)\n YKHO.assertEquals(aEwn.content_html,...
[ "0.7701149", "0.7636597", "0.7597893", "0.7498724", "0.7484494", "0.7449469", "0.7420749", "0.73505557", "0.7320879", "0.73073053", "0.7306761", "0.72437894", "0.72335345", "0.71974814", "0.7196232", "0.7180369", "0.7129729", "0.7082908", "0.7070372", "0.7049749", "0.7034257"...
0.64692265
88
Test that we cannot create a post with the feed field = null
def bnQN(YKHO): def e4VA(): XP5J = TD4U() YKHO.assertRaises(yXsM, e4VA())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bnQN(YKHO):\n\n def e4VA():\n XP5J = T97t()\n YKHO.assertRaises(yXsM, e4VA())", "def Co0u(YKHO):\n eHNT = UPGR()\n\n def GDMi():\n mZa2 = False\n try:\n XP5J = T97t({'feed': eHNT})\n except Exception:\n mZa2 = True\n return mZa2\n YKHO.a...
[ "0.7914449", "0.74751836", "0.7304399", "0.7278447", "0.723443", "0.72278124", "0.7206658", "0.7142438", "0.7127053", "0.71010506", "0.6969209", "0.6893644", "0.6830075", "0.68125015", "0.68071693", "0.6764736", "0.67579484", "0.6757075", "0.6728556", "0.6704578", "0.6678523"...
0.7767423
1
Test that we can create a post with the minimal amount of data
def Co0u(YKHO): eHNT = UPGR() def GDMi(): mZa2 = False try: XP5J = TD4U({'feed': eHNT}) except Exception: mZa2 = True return mZa2 YKHO.assertEquals(GDMi(), False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mXWC(YKHO):\n hGN5 = 'Test post.'\n wzkt = qcWV.datetime.now()\n XP5J = x_nV(hGN5, wzkt)\n gyDM = T97t.objects.all()\n YKHO.assertEquals(len(gyDM), 1)\n aEwn = gyDM[0]\n YKHO.assertEquals(aEwn, XP5J)\n YKHO.assertEquals(aEwn.content_plain, hGN5)\n YKHO.assertEquals(aEwn.content_html,...
[ "0.7702527", "0.76386195", "0.7598302", "0.7498617", "0.748481", "0.7451065", "0.74213845", "0.7350218", "0.7320978", "0.73081475", "0.73074716", "0.72436893", "0.7234455", "0.71972245", "0.7195668", "0.71817905", "0.71307874", "0.7082737", "0.7071058", "0.7049851", "0.703430...
0.0
-1
test serialize/deserialize/update_from_dict doesn't raise errors
def U28T(): r_1b = vFVC.from_netCDF(v5Cn) dPZ9 = Pt4s(wind=r_1b) Pt6R = dPZ9.serialize() assert OEaM(Pt6R, dPZ9) JLPn = Pt4s.deserialize(Pt6R) assert JLPn == dPZ9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U28T():\n fGZy = kqCV(v5Cn, BAMn, grid_type=2)\n Pt6R = fGZy.serialize('webapi')\n fGC9 = kqCV.deserialize(Pt6R)\n _Gmr = kqCV.new_from_dict(fGC9)\n assert fGZy == _Gmr\n fGZy.update_from_dict(fGC9)", "def QoPi(YKHO):\n YKHO._TestReadSerialized(YKHO._serializer, YKHO._json_dict)", "def...
[ "0.73447096", "0.7152929", "0.7152929", "0.7070682", "0.69194174", "0.6842358", "0.682278", "0.6757452", "0.67371744", "0.6696429", "0.6649145", "0.6588486", "0.655278", "0.6545448", "0.65425867", "0.65381294", "0.65337497", "0.650779", "0.6495486", "0.64949083", "0.6487937",...
0.6440261
22
Resizes image. This is a wrap of `cv2.resize()`.
def lmn5(LNo8, *qIxc, **B2fa): if LNo8 is None: return None assert LNo8.ndim == 3 and LNo8.shape[2] in [1, 3] LNo8 = XC5k.resize(LNo8, *qIxc, **B2fa) if LNo8.ndim == 2: return LNo8[:, :, oyIN.newaxis] return LNo8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GMoO(LNo8, zNig):\n return XC5k.resize(LNo8, zNig, interpolation=XC5k.INTER_AREA)", "def wNzd(YKHO, LNo8):\n return XC5k.resize(LNo8, dsize=(YKHO.image_size[0], YKHO.image_size[1]), interpolation=XC5k.INTER_AREA)", "def lmn5(YKHO, VXjJ, NXpY):\n H2v2, TVTK, xMux = VXjJ.shape\n C2f8 = int(H2v2 *...
[ "0.8405927", "0.8329006", "0.8095656", "0.80497277", "0.80141556", "0.7977491", "0.79199266", "0.7918664", "0.7896154", "0.7803361", "0.7775002", "0.7742523", "0.7723961", "0.77102214", "0.77087325", "0.76977384", "0.7681433", "0.7681433", "0.7635268", "0.76259786", "0.762345...
0.71746814
61
Create a new tag type.
def KDNv(*, ouvA: Session=JHvC(GGod), C2eZ: TagTypeCreate): PNan = eLpg(db_session=ouvA, tag_type_in=C2eZ) return PNan
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XSbx(YKHO, type, nPrm, CBIr=True):\n return YKHO.view.create_tag(type, nPrm, CBIr)", "def yZT4(YKHO, mWFP, ozjU):\n return type(mWFP, (kQIt,), {'_tagid': ozjU})", "def eLpg(YKHO, nMnB, TZ9E, **B2fa):\n nMnB = nMnB.lower().capitalize()\n if '_' in nMnB:\n QyVM = nMnB.index('_')\n n...
[ "0.6920003", "0.685795", "0.6695545", "0.65754575", "0.641947", "0.63956213", "0.6227653", "0.62012845", "0.61547524", "0.6140331", "0.612561", "0.6075001", "0.6059304", "0.60536027", "0.60532385", "0.60353607", "0.6031289", "0.6018626", "0.60133934", "0.6004152", "0.59851384...
0.7632701
0
The local name of this element, as a string.
def aqKe(YKHO): M8db, aqKe = T2Wc(YKHO.etree_element.tag) YKHO.__dict__[str('namespace_url')] = M8db return aqKe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aqKe(YKHO) -> str:\n return qe4Y.get(YKHO, 'local_name')", "def mWFP(YKHO):\n return YKHO.element.Name", "def mWFP(YKHO):\n mWFP = YKHO._read_from_global_attr('name')\n return mWFP", "def mWFP(YKHO):\n if YKHO._name:\n return str(YKHO._name[0][0][0])", "def aqKe(YKHO) -> qe4Y.Outp...
[ "0.82486135", "0.7916967", "0.7905975", "0.78911513", "0.78823876", "0.78589356", "0.77541554", "0.76797855", "0.7679645", "0.7674077", "0.76605254", "0.76605254", "0.7660379", "0.7635512", "0.7625651", "0.7614584", "0.7606417", "0.7606417", "0.7606417", "0.76021975", "0.7584...
0.8433509
0
The namespace URL of this element, as a string.
def M8db(YKHO): M8db, aqKe = T2Wc(YKHO.etree_element.tag) YKHO.__dict__[str('local_name')] = aqKe return M8db
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _63S(YKHO):\n return YKHO._namespace_url", "def _63S(YKHO):\n return YKHO._namespace_url", "def _63S(YKHO):\n return YKHO._namespace_url", "def _63S(YKHO):\n return YKHO._namespace_url", "def _63S(YKHO):\n return YKHO._namespace_url", "def _63S(YKHO):\n return YKHO._namespace_url", ...
[ "0.88294554", "0.88294554", "0.88294554", "0.88294554", "0.88294554", "0.88294554", "0.88294554", "0.88294554", "0.88294554", "0.87204915", "0.8520136", "0.7654712", "0.7654712", "0.7654712", "0.757269", "0.757269", "0.757269", "0.757269", "0.757269", "0.757269", "0.757269", ...
0.8365932
11
The ID of this element, as a string.
def id(YKHO): return YKHO.etree_element.get('id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO):\n return '\"' + YKHO.identifier + '\"'", "def yHil(YKHO) -> str:\n return YKHO._id", "def bd0W(YKHO):\n return str(YKHO._id)", "def mLJR(YKHO) -> str:\n return YWvJ(str, YKHO['id'])", "def id(YKHO) -> str:\n return YKHO.__id", "def id(YKHO) -> str:\n return YKHO._id", "d...
[ "0.8527858", "0.84929043", "0.8483137", "0.8432376", "0.839072", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "0.83875966", "...
0.8150826
57
r"""Initialize the mean and covariance of the posterior.
def OM8D(YKHO): if YKHO._mean is None or YKHO._cov is None: return T8ck = YKHO._cov['QS'][0][0] o4sw = YKHO._cov['QS'][1] if o4sw.size > 0: YKHO.tau[:] = 1 / zYx3((T8ck * PZyS(o4sw)) ** 2, axis=1) else: YKHO.tau[:] = 0.0 YKHO.eta[:] = YKHO._mean YKHO.eta[:] *= YKHO.ta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.posterior = mKjE()\n YKHO.variance = 0", "def FIMM(YKHO, JBMS=None, PFC2=None):\n YKHO.mean = None\n YKHO.cov = None\n YKHO.w = None\n YKHO.eigen_values = None", "def UMh3(YKHO, MkKh=10):\n YKHO.alpha = oyIN.ones(YKHO.K) * MkKh\n YKHO.means = 2 * oyIN.random.rand(...
[ "0.7212052", "0.69082177", "0.6819478", "0.6747666", "0.6700873", "0.6591407", "0.6558161", "0.6531929", "0.65211976", "0.6516229", "0.64714575", "0.6455487", "0.63949895", "0.6391672", "0.6320973", "0.6248921", "0.6237358", "0.62302595", "0.6199204", "0.6167195", "0.61640185...
0.7495373
0
Sets your password for the given profile.
def G3s8(z39Z, uGpu): bSEa = SYUx(z39Z.name) hAg6 = aTOD.get_keyring().priority < 1 if hAg6 and (not K4GD()): return aTOD.set_password(bSEa, z39Z.username, uGpu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h", "def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h", "def G3s8(YKHO, jTXt):\n D2Lq(jTXt)", "def G3s8(YKHO, jTXt):\n D2Lq(jTXt)", "def m_qJ(YKHO, jTXt):\n YKHO._password = jTXt", "def PnS7(YKHO, jTXt):\n YKHO.password = jTXt", "def PnS7(YKHO, jTXt):\n ...
[ "0.7543211", "0.7535091", "0.7361435", "0.7331491", "0.7230053", "0.71994615", "0.71708906", "0.7165138", "0.7134721", "0.7070821", "0.70246124", "0.7003079", "0.7003079", "0.6997442", "0.69931704", "0.6975721", "0.69554037", "0.69183755", "0.69150794", "0.6893791", "0.688736...
0.7969499
0
Convert image to tensor apply filter then convert it back to image
def cCos(LNo8): LNo8 = ZylS.convert_to_tensor(oyIN.array(LNo8)) LNo8 = iUUf.image.median_filter2d(LNo8, filter_shape=(5, 5), padding='REFLECT', constant_values=0, name=None) LNo8 = KvTZ(LNo8) return LNo8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(YKHO, LNo8):\n return LNo8", "def biH0(VXjJ):\n if isinstance(VXjJ, hnIv.Image):\n VXjJ = oyIN.asarray(VXjJ, 'float')\n VXjJ = ht2j.tensor(VXjJ, dtype=ht2j.float32, requires_grad=False)\n VXjJ = VXjJ.permute(2, 0, 1)\n VXjJ = ht2j.unsqueeze(VXjJ, 0)\n VXjJ = (VXjJ - 127.5) * 0...
[ "0.7251364", "0.68090576", "0.6805971", "0.6802125", "0.67639387", "0.66853726", "0.66670954", "0.66549927", "0.6633862", "0.6626225", "0.6607127", "0.6593115", "0.6583092", "0.65794766", "0.6559549", "0.6559549", "0.6544456", "0.65023094", "0.64826286", "0.64115125", "0.6391...
0.0
-1
Whether two models are the same.
def xa14(YKHO, Elif): return isinstance(Elif, YKHO.__class__) and all((getattr(YKHO, mWFP) == getattr(Elif, mWFP) for mWFP in YKHO.__class__.__fields__.keys()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if not isinstance(Elif, wOed):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def sMQl(gpRq, E43s):\n if not isinstance(E43s, gpRq.__class__):\n return False\n Jz8r = TY2y(gpRq)\n qi3u = TY2y(E43s)\n if Jz8r != qi3u:\n return False\n if...
[ "0.7560035", "0.73490435", "0.72718614", "0.72532374", "0.72384614", "0.7098062", "0.70719326", "0.7069302", "0.70677036", "0.70459443", "0.7035151", "0.70148253", "0.7005834", "0.6995723", "0.69740444", "0.6973874", "0.69620484", "0.69315964", "0.6904443", "0.68945354", "0.6...
0.66330254
46
Return a hash value for this model.
def rjHV(YKHO): return hash(tuple(((mWFP, getattr(YKHO, mWFP)) for mWFP in YKHO.__class__.__fields__.keys())))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OoXC(YKHO):\n return YKHO.hash", "def OoXC(YKHO):\n return YKHO.__hash", "def OoXC(YKHO):\n FrKw = YKHO.preds[mv1M.hashkey]['value'][0]\n return FrKw['value'].encode()", "def uk0M(YKHO):\n return YKHO.hash", "def OoXC(YKHO):\n return YKHO._hash", "def i3VH(YKHO) -> qe4Y.Output[str]:...
[ "0.83187014", "0.8246612", "0.8213968", "0.81214356", "0.81164634", "0.80949295", "0.8088617", "0.8006468", "0.7958254", "0.792109", "0.79102373", "0.7850512", "0.7787542", "0.7767846", "0.7624457", "0.7567977", "0.7555606", "0.7550002", "0.75380766", "0.7512864", "0.7500445"...
0.0
-1
Convert this model to a dictionary.
def MNRr(YKHO): Csk6 = U8Lr() for Jyyj in YKHO.__class__.__fields__.values(): with Wiqu(Jyyj): Csk6 = Jyyj._serialize_with(YKHO, Csk6) for TZ9E in reversed(YKHO.__class__.__tags__): with Wiqu(TZ9E): Csk6 = TZ9E._serialize_with(YKHO, Csk6) return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fYl(YKHO):\n return FZ5p(YKHO)", "def MNRr(YKHO, C3ST):\n raise NotImplementedError", "def Napc(YKHO):\n return YKHO.model.to_dict", "def MNRr(YKHO) -> cuzp:\n tbx9 = {}\n if hasattr(YKHO, 'model') and YKHO.model is not None:\n tbx9['model'] = YKHO.model\n return tbx9", "def q...
[ "0.89316684", "0.84862393", "0.8438715", "0.8312434", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", "0.8198686", ...
0.0
-1
Dump the model as a JSON string.
def oD7C(YKHO, **B2fa): return qQXR.dumps(YKHO.to_dict(), **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nN8w(YKHO) -> str:\n return YKHO.model_evaluator.dump_json()", "def Pt6R(YKHO):\n BJY9 = YKHO.to_dict\n return qQXR.dumps(BJY9)", "def l8yv(YKHO, C3ST):\n return qQXR.dumps(list(C3ST.items()))", "def Z8Cq(YKHO):\n pass", "def e1Ec(YKHO) -> str:\n YEnM = YKHO.as_dict()\n return qQXR...
[ "0.82709074", "0.80833846", "0.8061294", "0.7997754", "0.78532326", "0.77601355", "0.76028526", "0.7403658", "0.73409355", "0.7276849", "0.72056556", "0.71830595", "0.71673083", "0.71673083", "0.71673083", "0.71673083", "0.71673083", "0.71673083", "0.71673083", "0.71673083", ...
0.0
-1
Convert a dictionary to an instance of this model.
def jG8h(Emd4, Csk6): C3ST = Emd4.__new__(Emd4) M24A = None TZ9E = C3ST.__class__.__tag__ while TZ9E and M24A is not C3ST.__class__: M24A = C3ST.__class__ with Wiqu(TZ9E): C3ST, Csk6 = TZ9E._deserialize_with(C3ST, Csk6) TZ9E = C3ST.__class__.__tag__ for Jyyj in re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)", "def CCiu(Emd4, ...
[ "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653", "0.79756653"...
0.0
-1
Normalize all fields on this model, and the model itself. This is called by the model constructor and on deserialization, so this is only needed if you modify attributes directly and want to renormalize the model instance.
def jnV4(YKHO): for Jyyj in YKHO.__class__.__fields__.values(): with Wiqu(Jyyj): Jyyj._normalize_with(YKHO) YKHO.normalize()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO):\n pass", "def jnV4(YKHO):\n pass", "def NkkI(Emd4, m6Me: Any) -> ImMB:\n return MSBM.normalize_against_schema(m6Me, Emd4.get_schema())", "def NkkI(YKHO):\n YKHO.normalize_size()\n YKHO.normalize_position()", "def bxOE(YKHO):\n YKHO._convert_numeric_attributes()\n YKHO._...
[ "0.7211734", "0.7102578", "0.6491868", "0.6479879", "0.64786756", "0.63781863", "0.63468933", "0.63145137", "0.6250904", "0.61809295", "0.6132137", "0.6100618", "0.6050769", "0.6024421", "0.5978069", "0.5976571", "0.59723425", "0.59559506", "0.5917565", "0.59145886", "0.58887...
0.81830823
0
Normalize this model. Override this method to add any additional normalization to the model. This will be called after all fields have been normalized.
def NkkI(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnV4(YKHO):\n for Jyyj in YKHO.__class__.__fields__.values():\n with Wiqu(Jyyj):\n Jyyj._normalize_with(YKHO)\n YKHO.normalize()", "def jnV4(YKHO):\n pass", "def fH94(YKHO):\n pass", "def NkkI(YKHO):\n YKHO.normalize_size()\n YKHO.normalize_position()", "def NkkI(YKH...
[ "0.7843808", "0.75499004", "0.6911152", "0.6854279", "0.6714251", "0.6705616", "0.6676248", "0.66302466", "0.6557266", "0.65491486", "0.6491933", "0.6462085", "0.6431137", "0.6349409", "0.634202", "0.63272935", "0.6319911", "0.6296302", "0.6281678", "0.62613064", "0.62575394"...
0.7550465
1
Return the numeric correspondent of a logging level name.
def NzKZ(mWFP): try: return getattr(G9jH, mWFP.upper()) except AttributeError: raise ValueError('Invalid log level: {}'.format(mWFP))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zr36(geb0):\n if '_' in geb0:\n a2jN, fktj = geb0.split('_', 1)\n vg4c = G9jH.getLevelName(a2jN)\n kRmO = int(fktj)\n UxQk = vg4c + (2 - kRmO)\n else:\n UxQk = G9jH.getLevelName(geb0)\n return UxQk", "def DfYl(mWFP, InEe):\n PFZk = dict(ERROR=G9jH.ERROR, INFO=G9...
[ "0.8409793", "0.8283906", "0.80532783", "0.80405843", "0.8026373", "0.8013552", "0.79326916", "0.767821", "0.76093394", "0.7538068", "0.7537031", "0.7423083", "0.742007", "0.73678243", "0.7335634", "0.7141506", "0.70749235", "0.7030205", "0.7015798", "0.6998291", "0.6998291",...
0.7217413
15
Tell whether an object is iterable or not.
def OxJJ(WKvO): try: iter(WKvO) except TypeError: return False else: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OxJJ(YKHO, YEnM):\n return isinstance(YEnM, iu5r)", "def GfZ5(YEnM):\n return isinstance(YEnM, iu5r)", "def SytQ(YEnM):\n return isinstance(YEnM, g760.Iterable)", "def GfZ5(YEnM):\n cM24 = type(YEnM)\n if hasattr(cM24, '__iter__'):\n return True\n return hasattr(cM24, '__getitem_...
[ "0.83272296", "0.82677394", "0.81917983", "0.8154731", "0.81301373", "0.8113473", "0.8106174", "0.8102021", "0.8089182", "0.80649155", "0.80523926", "0.80523926", "0.8051499", "0.8033282", "0.8021638", "0.7979479", "0.79378253", "0.7904948", "0.7883554", "0.7875467", "0.78503...
0.7451448
38
Tell whether all members of (multidimensional) array are equal, while ignoring nan values.
def ac8g(jzdc): jzdc = oyIN.asarray(jzdc) return oyIN.nanmin(jzdc) == oyIN.nanmax(jzdc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VGi_(*Sk_F):\n if len(Sk_F) == 0:\n return True\n for ezWE in Sk_F[1:]:\n if not (oyIN.isnan(Sk_F[0]) == oyIN.isnan(ezWE)).all():\n return False\n return True", "def WAAe(i3LB, fQvb):\n return (i3LB == fQvb).all()", "def QggM(YKHO, qw7D):\n return not oyIN.isnan(qw7D...
[ "0.7529065", "0.71473634", "0.6944818", "0.6870422", "0.68681264", "0.6783665", "0.67494845", "0.6697275", "0.66914535", "0.6673428", "0.66510653", "0.66232276", "0.6581985", "0.6567236", "0.65652376", "0.65462446", "0.6541767", "0.6536442", "0.652503", "0.6510761", "0.642851...
0.77708703
0
Return indices of elements containing given value in a sequence.
def xvIg(Q6uT, wEf2): Mkmy = [] for YRbF, Ty9i in enumerate(Q6uT): if Ty9i == wEf2: Mkmy.append(YRbF) return Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hDX3(WKvO, aWuw):\n for YRbF, ZfUD in enumerate(aWuw):\n if (ZfUD == WKvO).all():\n return YRbF", "def _0VL(vC9B, wEf2):\n return [d6pt for d6pt, BWXx in enumerate(vC9B) if BWXx == wEf2]", "def xhJt(aPd6, wEf2):\n return [YRbF for YRbF in range(len(aPd6)) if aPd6[YRbF] == wEf2]",...
[ "0.7464411", "0.744989", "0.71905696", "0.713459", "0.70337415", "0.70065683", "0.69372666", "0.69230145", "0.6901606", "0.68772024", "0.67963964", "0.67908776", "0.67647654", "0.6712427", "0.6711457", "0.66978747", "0.66801727", "0.66224474", "0.6597433", "0.6588063", "0.656...
0.8388287
0
For scalar input, duplicate it into a sequence of rank length. For sequence input, check for correct length.
def oLhv(BWXx, fdMZ): try: yv6U = list(BWXx) except TypeError: yv6U = [BWXx] * fdMZ if len(yv6U) != fdMZ: raise ValueError('Invalid sequence length.') return yv6U
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y1WL(WKvO, RksB, Fn22):\n exwG = len(WKvO)\n if RksB is not None and exwG < RksB:\n WKvO = WKvO + [0] * (RksB - exwG)\n if Fn22 is not None and exwG > Fn22:\n WKvO = WKvO[:Fn22]\n return WKvO", "def IAmn(Q6uT, NXmX=20):\n k6Di = oyIN.unique(list(''.join(Q6uT.to_list())))\n enF...
[ "0.6281437", "0.58069634", "0.5664685", "0.5588707", "0.553148", "0.55247056", "0.5504379", "0.5501617", "0.54952", "0.54858494", "0.54479474", "0.5373115", "0.537038", "0.5351758", "0.53470975", "0.534347", "0.534251", "0.5326974", "0.5314988", "0.53142446", "0.5307299", "...
0.6216237
1
Normalize a signal intensity curve (divide all by the first value). Note that this function does not manage error cases where the first value is zero or the curve rises at some point. See normalize_si_curve_fix().
def M_EQ(QJlQ): assert QJlQ.ndim == 1 QJlQ[:] /= QJlQ[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NvND(QJlQ):\n assert QJlQ.ndim == 1\n if QJlQ[0] == 0:\n QJlQ[:] = 0\n else:\n for YRbF in range(1, len(QJlQ)):\n if QJlQ[YRbF] > QJlQ[YRbF - 1]:\n QJlQ[YRbF] = QJlQ[YRbF - 1]\n QJlQ[:] /= QJlQ[0]", "def moQA(KCHu):\n return (KCHu - oyIN.mean(KCHu)) ...
[ "0.72657275", "0.6704521", "0.6696157", "0.661657", "0.6490913", "0.6477094", "0.6414386", "0.6406456", "0.62769943", "0.62430245", "0.62314975", "0.62121785", "0.62121785", "0.6200519", "0.61948436", "0.616727", "0.615947", "0.6148844", "0.6141472", "0.61383027", "0.613556",...
0.80701363
0
Normalize a signal intensity curve (divide all by the first value). This version handles some error cases. If the first value is zero, all values are just set to zero. If any value is higher than the previous one, it is set to the same value (curves are never supposed to rise).
def NvND(QJlQ): assert QJlQ.ndim == 1 if QJlQ[0] == 0: QJlQ[:] = 0 else: for YRbF in range(1, len(QJlQ)): if QJlQ[YRbF] > QJlQ[YRbF - 1]: QJlQ[YRbF] = QJlQ[YRbF - 1] QJlQ[:] /= QJlQ[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M_EQ(QJlQ):\n assert QJlQ.ndim == 1\n QJlQ[:] /= QJlQ[0]", "def jnV4(YKHO):\n for MKlR in YKHO._histograms:\n if MKlR is None:\n continue\n YRbF = MKlR.Integral()\n if YRbF == 0:\n continue\n MKlR.Scale(1.0 / YRbF)", "def D7zl(YKHO, Gaon):\n ret...
[ "0.7109592", "0.69040877", "0.68363434", "0.6661001", "0.6658682", "0.66492814", "0.6641003", "0.6629511", "0.6610357", "0.6610031", "0.66019744", "0.6591218", "0.6572921", "0.6567406", "0.65543044", "0.65208757", "0.65098786", "0.65004665", "0.6496258", "0.6478593", "0.64706...
0.65477294
15
Calculate image centroid, i.e. center of mass, as a tuple of floats. NaN values are considered massless.
def e6ux(VXjJ): VXjJ = oyIN.asanyarray(VXjJ) KEH4 = tuple(range(VXjJ.ndim)) eKGI = [] for YRbF in KEH4: YT0d = tuple((WKvO for WKvO in KEH4 if WKvO != YRbF)) zBIP = oyIN.nansum(VXjJ, axis=YT0d) assert zBIP.ndim == 1 Z9rn = oyIN.nansum([YRbF * WKvO for YRbF, WKvO in enumer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _3XM(YKHO):\n KQjT = _SU4 = 0\n for e3Fk in YKHO.pixels:\n KQjT += e3Fk[0]\n _SU4 += e3Fk[1]\n return (KQjT / len(YKHO.pixels), _SU4 / len(YKHO.pixels))", "def AB5J(LNo8):\n if LNo8.pixeltype != 'float':\n LNo8 = LNo8.clone('float')\n vHIm = BfDw.get_lib_fn('centerOfMass%s...
[ "0.773102", "0.7696792", "0.7696792", "0.75530833", "0.7539886", "0.7472094", "0.74318993", "0.74318993", "0.74280393", "0.74144566", "0.7377399", "0.73626256", "0.734856", "0.73427004", "0.7264159", "0.7228136", "0.7198383", "0.7196466", "0.7172196", "0.7168066", "0.71671075...
0.74526125
6
Return a view to array with at least n dimensions. This is a generalization of numpy.atleast_{1,2,3}d() except all dimensions are added in front.
def ncNj(exwG, jzdc): jzdc = oyIN.asanyarray(jzdc) if jzdc.ndim < exwG: jzdc = jzdc.reshape((1,) * (exwG - jzdc.ndim) + jzdc.shape) return jzdc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ncNj(ezWE, exwG, HsoR=False):\n l4Mt = oyIN.asanyarray(ezWE)\n kvqa = len(l4Mt.shape)\n if exwG is not None and kvqa < exwG:\n if HsoR:\n JJuH = (None,) * (exwG - kvqa) + (Ellipsis,)\n else:\n JJuH = (Ellipsis,) + (None,) * (exwG - kvqa)\n l4Mt = l4Mt[JJuH]\n...
[ "0.7309444", "0.68948716", "0.6309045", "0.5934758", "0.58925235", "0.58462214", "0.58111066", "0.5780184", "0.57446206", "0.55690193", "0.5550996", "0.554002", "0.5501775", "0.54715157", "0.5455076", "0.54371536", "0.5325581", "0.53188384", "0.525288", "0.5235601", "0.521822...
0.6965891
1
Gracefully convert a numeric ndarray to boolean. Round it and clip to [0, 1]. (Simply using np.astype(np.bool) does not work.)
def j_4z(jzdc): jzdc = oyIN.asanyarray(jzdc) jzdc = jzdc.round() jzdc.clip(0, 1, out=jzdc) jzdc = jzdc.astype(oyIN.bool) return jzdc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yg40(qw7D):\n return XTiz.clip(qw7D, 0, 1)", "def Yjcp(*qIxc, **B2fa):\n return oyIN.array(*qIxc, dtype=bool, **B2fa)", "def eRwN(YKHO: Array, /) -> bool:\n if YKHO._array.ndim != 0:\n raise TypeError('bool is only allowed on arrays with 0 dimensions')\n Ylbp = YKHO._array.__bool__()\n ...
[ "0.6690225", "0.6597234", "0.64405656", "0.6410229", "0.6386373", "0.6375933", "0.6283651", "0.60789734", "0.6075004", "0.60704535", "0.6021438", "0.60151625", "0.59761107", "0.594064", "0.594064", "0.5907204", "0.59051615", "0.5893472", "0.57568663", "0.5734089", "0.57161766...
0.84984285
0
Construct selfattention block. Layer norm > MultiHead SelfAttention > Add & Dropout.
def l_xx(YKHO, l633, sjXb, hkxX, TaYf): vexM = YKHO.layer_norm(l633) AiL9 = YKHO.multi_head_self_attention(vexM, sjXb, hkxX, TaYf) vexM = YKHO.residual(AiL9, l633) return vexM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, jXxl: int, C9HQ: int, hC9O: int=1, LNZ3: bool=False, MwhU: float=0.25, DZ9f: float=0.25, CPLx: int=yH2p.pad_idx):\n super(E9s6, YKHO).__init__()\n YKHO.embedding = U78l.Embedding(jXxl, C9HQ, padding_idx=CPLx)\n YKHO.pos_encode = LNZ3\n YKHO.embed_dropout = U78l.Dropout(MwhU)\n YKHO.mu...
[ "0.6929153", "0.6903811", "0.66920286", "0.6625611", "0.66029924", "0.6451599", "0.6436176", "0.6325306", "0.6324729", "0.63116133", "0.62806886", "0.6258997", "0.618604", "0.6181213", "0.6143802", "0.61369485", "0.6113669", "0.60371804", "0.6028248", "0.60235584", "0.6018541...
0.0
-1
Setup the particle filter.
def tjtc(YKHO): ZLJ_ = ['x', 'y', 'heading', 'life_span'] RV2u = YKHO.carpet_map.grid.shape[1] * YKHO.carpet_map.cell_size Q239 = YKHO.carpet_map.grid.shape[0] * YKHO.carpet_map.cell_size def BRHZ(QzvI: int): """ Sample n random particles from p(x|z) i.e. if last color i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NuvP(YKHO, ZHfW=None):\n dLAZ = YKHO.prior_fn(YKHO.n_particles)\n if ZHfW is None:\n YKHO.particles = dLAZ\n else:\n YKHO.particles[ZHfW, :] = dLAZ[ZHfW, :]", "def FIMM(YKHO, UU6M, BZ33, dqIL=125, **B2fa):\n super().__init__(UU6M, BZ33, **B2fa)\n YKHO._bl = dqIL", "def FIMM(YKH...
[ "0.6792664", "0.64843917", "0.6425647", "0.641191", "0.63405716", "0.6328115", "0.6304046", "0.6214009", "0.620252", "0.6173699", "0.6152202", "0.6144201", "0.61162144", "0.6062177", "0.60441154", "0.6010579", "0.6009407", "0.5983597", "0.5976893", "0.5946809", "0.59246033", ...
0.7095639
0
Splits and lowercases sentences in a dataframe's column into a list of seperate words. Created lists will be placed in a column named 'Split Tweets' in the original dataframe.Also known as tokenization
def sR9l(jQ3Z): WafH = rLdf.DataFrame(jQ3Z, columns=['Tweets', 'Date', 'Split Tweets']) WafH['Date'] = YdD0 WafH['Split Tweets'] = WafH['Tweets'].str.lower() WafH['Split Tweets'] = WafH['Split Tweets'].str.split() return WafH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sR9l(jQ3Z):\n FIbc = []\n for Mau6 in jQ3Z['Tweets'].iteritems():\n FIbc.append(Mau6[1].split(' '))\n FIbc = [[GIN8.lower() for GIN8 in Mau6] for Mau6 in FIbc]\n jQ3Z = jQ3Z.assign(Split_Tweets=FIbc).rename(columns={'Split_Tweets': 'Split Tweets'})\n return jQ3Z", "def sR9l(jQ3Z):\n ...
[ "0.8499251", "0.8431717", "0.81901896", "0.71446246", "0.70450413", "0.68117446", "0.68117446", "0.6775228", "0.6713096", "0.66789603", "0.6664452", "0.66559", "0.66350025", "0.6633112", "0.6625376", "0.6599398", "0.6583417", "0.65459335", "0.6529776", "0.651456", "0.65113544...
0.79932535
3
Returns the score based on the least squares loss function.
def c85t(UbeP, ng9k): ng9k = oyIN.clip(ng9k, 0, oyIN.inf) WH_7 = UbeP - ng9k return oyIN.sqrt(oyIN.mean(oyIN.square(WH_7)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1kx(YKHO, WKvO, LVAh):\n EcVT, fuBA = YKHO._preprocessor(WKvO, LVAh)\n Aofo = YKHO.NN(EcVT.float())\n YbcW = float(YKHO.Loss_Layer(Aofo, fuBA.float()))\n YbcW = r8hN.sqrt(YbcW)\n return YbcW", "def NrPp(YKHO) -> float:\n if 'loss' in YKHO.metrics_for_best_model:\n return -YKHO._avg_...
[ "0.7306152", "0.7240536", "0.70665437", "0.704612", "0.7020613", "0.69535124", "0.6941739", "0.6938173", "0.69199556", "0.69037694", "0.683225", "0.68083596", "0.6804499", "0.6804499", "0.67951065", "0.6783586", "0.67766714", "0.6760971", "0.675504", "0.6744092", "0.6742213",...
0.0
-1
Returns the number of electrons an atom is using for pi bonding >>> m = Chem.MolFromSmiles('C=C') >>> NumPiElectrons(m.GetAtomWithIdx(0)) 1 >>> m = Chem.MolFromSmiles('CCC') >>> NumPiElectrons(m.GetAtomWithIdx(0)) 2 >>> NumPiElectrons(m.GetAtomWithIdx(1)) 2 >>> m = Chem.MolFromSmiles('O=C=CC') >>> NumPiElectrons(m.GetA...
def _Fuw(WhQ6): Ylbp = 0 if WhQ6.GetIsAromatic(): Ylbp = 1 elif WhQ6.GetHybridization() != OJ0g.HybridizationType.SP3: Ylbp = WhQ6.GetExplicitValence() - WhQ6.GetNumExplicitHs() if Ylbp < WhQ6.GetDegree(): raise ValueError('explicit valence exceeds atom degree') Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eWof(N9D1: 'Mol') -> int:\n return sum([WhQ6.GetAtomicNum() for WhQ6 in N9D1.GetAtoms()])", "def CwkZ(N9D1):\n ...", "def d5s2(N9D1):\n ...", "def s4n0(YKHO) -> int:\n return YKHO.atomic_number", "def m7vE(YKHO, N9D1: dm.Mol):\n return sweL.CalcNumSpiroAtoms(N9D1)", "def AMei(YKHO):\n ...
[ "0.7345466", "0.6891948", "0.68667096", "0.68557686", "0.6768133", "0.6705569", "0.6626705", "0.65192336", "0.63116497", "0.61885744", "0.5980972", "0.59666866", "0.59574664", "0.5951962", "0.5950854", "0.5879737", "0.5864036", "0.5841907", "0.5822565", "0.58208585", "0.58059...
0.77686894
0
Returns the number of bits in common between two vectors
def nXDF(hQHm, jlSq): Ylbp = 0 CnxS = 0 b3Xm = len(jlSq) for wEf2 in hQHm: while CnxS < b3Xm and jlSq[CnxS] < wEf2: CnxS += 1 if CnxS >= b3Xm: break if jlSq[CnxS] == wEf2: Ylbp += 1 CnxS += 1 return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MxaM(hVkF, H_De):\n Mpgr = hVkF + H_De\n hAuS = Mpgr == 2\n UHFx = Mpgr[hAuS].size\n return UHFx", "def GKKK(ftGG, mbhq):\n if len(ftGG) != len(mbhq):\n raise Exception('fail: bitvectors of different length ' + str(len(ftGG)) + ', ' + str(len(mbhq)))\n wjRY = 0\n for YRbF, HkJz in...
[ "0.7228711", "0.7137723", "0.7102491", "0.6857901", "0.68096143", "0.6782826", "0.6782527", "0.67254424", "0.672102", "0.6709843", "0.67042404", "0.6685734", "0.66492957", "0.6583232", "0.6567282", "0.6505125", "0.6504505", "0.64884865", "0.6487653", "0.6485854", "0.6470117",...
0.76921356
0
Details to a specific Trade.
def w5RA(w2B8, gPV_): fppD = Z4oW + '/' + gPV_ NArs = {'trade_id': gPV_} return MrBC(w2B8, 'GET', NArs, fppD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tluo(YKHO, OafG):\n try:\n if not 'IsBuy' in OafG:\n return\n if OafG['IsBuy']:\n YKHO.direction = 'long'\n else:\n YKHO.direction = 'short'\n if 'Leverage' in OafG:\n YKHO.leverage = OafG['Leverage']\n if 'OpenRate' in OafG:\n ...
[ "0.6843508", "0.6494772", "0.6332311", "0.63066155", "0.62135994", "0.6131543", "0.6035331", "0.5935886", "0.5875564", "0.58127004", "0.57329184", "0.57262135", "0.5638478", "0.5619677", "0.5583879", "0.55732083", "0.55576694", "0.5554461", "0.55530566", "0.55492926", "0.5527...
0.6946268
0
Get all team employees with their respective teams
def sps0(YKHO): return YKHO._use_case.retrieve_all_teams_employees()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tDA_(YKHO, p_z1):\n if p_z1.is_manager():\n return YKHO.__employee_repo.get_employees()", "def cYje() -> x1iM[TjLA]:\n return BDu7(TjLA)", "def _Ipg(rJco):\n if isinstance(rJco, list):\n return XFKv([dZPi.id for dZPi in rJco])\n else:\n return XFKv(rJco.id)", "def qc1B(YK...
[ "0.6762404", "0.6728888", "0.6644484", "0.6504313", "0.65031016", "0.635095", "0.63036746", "0.6296353", "0.62363267", "0.623243", "0.62234676", "0.61450386", "0.6138622", "0.61285096", "0.6128433", "0.60885125", "0.60685843", "0.6059522", "0.6053864", "0.60010177", "0.599394...
0.7845539
0
Get a team employee of a given primary key
def AZkE(YKHO, Twp5: int): return YKHO._use_case.retrieve_team_employee(Twp5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zSrl(KB39: int) -> TjLA:\n return DQE7(TjLA, TjLA.id, KB39)", "def zjbk(b2mu: int):\n return r2Kd.objects.get(pk=b2mu)", "def knAh(id):\n return r2Kd.query.filter_by(team_id=id).first()", "def BWaH(YKHO, yGdP: int) -> h8nf[TjLA]:\n if YKHO.eid == yGdP:\n return YKHO\n ybIa = YKHO.ge...
[ "0.71258414", "0.6804469", "0.66773367", "0.6674066", "0.6540551", "0.6490356", "0.6453726", "0.64482695", "0.62559795", "0.61889017", "0.61560076", "0.6154917", "0.6138589", "0.61129636", "0.6098719", "0.6083142", "0.60535896", "0.60378844", "0.6032493", "0.6016513", "0.6007...
0.78687936
0
Returns the index of the immediate child that is along the same spine as this node
def ARE0(YKHO): UHFx = 0 for aUGN in YKHO: if type(aUGN) == str or not aUGN.attached: return UHFx else: UHFx += 1 assert False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tpVL(YKHO, Q6kx):\n for YRbF, Z9rn in enumerate(YKHO._children):\n if Z9rn == Q6kx:\n return YRbF\n return -1", "def pE2c(YKHO, aUGN):\n for YRbF, ZfUD in enumerate(YKHO.__children):\n if aUGN is ZfUD:\n return YRbF", "def e8BA(YKHO, d6pt):\n e8BA = 2 * d6pt ...
[ "0.7560499", "0.7409136", "0.736539", "0.73339695", "0.73122674", "0.72880864", "0.7229569", "0.70649534", "0.7039896", "0.70119715", "0.69762313", "0.695355", "0.6951803", "0.69418126", "0.6917626", "0.6895465", "0.6882841", "0.6873472", "0.6858695", "0.6856515", "0.68406296...
0.70954865
7
Returns the mmap of the concrete process
def BeuL(pan_): class MemoryMap: """ Describing a memory range inside the concrete process. """ def FIMM(YKHO, bhgr, FStR, vgXP, mWFP): YKHO.start_address = bhgr YKHO.end_address = FStR YKHO.offset = vgXP YKHO.name = mWFP ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def map(YKHO) -> clzx.mmap:\n return YKHO.__m", "def _wMu():\n\n def la1x(WKvO):\n assert WKvO[:2] == '0x'\n return int(WKvO[2:], 16)\n rIKJ = yc5u.execute('info files', to_string=True)\n VECZ = MC3_()\n Nqlg = rIKJ.split('\\n')\n for zFiD in Nqlg:\n zFiD = zFiD.strip()\n ...
[ "0.75265586", "0.671035", "0.64582634", "0.63644487", "0.63482004", "0.62532073", "0.6208514", "0.61695904", "0.614664", "0.6081145", "0.6050781", "0.59926903", "0.5977443", "0.59566534", "0.595199", "0.5937245", "0.5917728", "0.59112364", "0.5897637", "0.5848934", "0.5820365...
0.6066133
10
Apply a filter to an image. Try question 2 and discuss with a partner.
def kEyY(LNo8, filter): r8hN, exwG = LNo8.shape vC9B, G1Hx = filter.shape Nq1b = oyIN.empty_like(LNo8) for YRbF in Ni9Y(exwG): for r845 in Ni9Y(r8hN): pass return Nq1b
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(YKHO, LNo8):\n return LNo8", "def QzB8(YKHO, XnT5):\n return", "def rvE2(YKHO, JfyU):\n YKHO.im = JfyU(YKHO.im)", "def Euvd(LNo8, filter):\n assert filter.shape[0] % 2 == 1\n assert filter.shape[1] % 2 == 1\n qLBR = LNo8.copy()\n t4ML = LNo8.shape[0]\n nbX2 = LNo8.shape[1]\...
[ "0.77159905", "0.7702691", "0.7641725", "0.7618903", "0.7591688", "0.75869876", "0.7546505", "0.750999", "0.75073624", "0.7506382", "0.7487123", "0.74028045", "0.7400337", "0.7385904", "0.7375191", "0.7360378", "0.7285082", "0.728349", "0.72760314", "0.71921283", "0.7187457",...
0.0
-1
Apply the Sobel filter to an image. Calculate the cutoff gradient (M) by using four times the average value of the Euclidean norm of the partial derivatives.
def H9dw(LNo8): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edYD(LNo8):\n sVVp = oyIN.array([[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]])\n SUc6 = oyIN.array([[-1, -2, -1], [0, 0, 0], [1, 2, 1]])\n WKvO = o6Bz(LNo8, sVVp)\n LVAh = o6Bz(LNo8, SUc6)\n return oyIN.sqrt(oyIN.square(WKvO) + oyIN.square(LVAh))", "def AE42(VXjJ):\n yKcO = ITS7.time()\n ZmDK = 2...
[ "0.64712614", "0.63728505", "0.637172", "0.6366546", "0.63656056", "0.6314117", "0.6252898", "0.62348753", "0.61209", "0.60539705", "0.6050281", "0.60391885", "0.60324425", "0.6027652", "0.6027652", "0.600101", "0.59933126", "0.59837353", "0.59646726", "0.5956685", "0.5939916...
0.56598675
49
Initializer for Generated Stock Data class
def FIMM(YKHO, SMAd=None, oWb2=False): super(Z0as, YKHO).__init__(SMAd, oWb2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.stock_data = YKHO.retrieve_stocks()\n YKHO.time = qcWV.now()", "def FIMM(YKHO, LpID=0):\n YKHO.stock = LpID", "def FIMM(YKHO, o61b='EURUSD', kepv='2012-01-01', KhBf='2012-03-31'):\n YKHO.symbol = o61b\n YKHO.start_date = kepv\n YKHO.end_date = KhBf\n YKHO.data = YKHO...
[ "0.7432659", "0.73734826", "0.73568636", "0.7353667", "0.7258817", "0.7140966", "0.71342456", "0.71317965", "0.71283835", "0.7055724", "0.70197636", "0.69913393", "0.6979738", "0.69484144", "0.6872261", "0.68612623", "0.6851851", "0.68283606", "0.6789963", "0.67793375", "0.67...
0.75945884
0
Calculate the horizontal area of each element.
def jcph(YKHO): Npy1 = YKHO.n_elements ohxs = YKHO.node_coordinates[:, 0] SKbT = YKHO.node_coordinates[:, 1] f0tD = oyIN.empty(Npy1) pfB4 = oyIN.empty(8) TWPo = oyIN.empty(8) for r845 in range(Npy1): Ziit = YKHO.element_table[r845] rDAo = len(Ziit) for YRbF in range(r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n OgbE = 0\n Aofo = 0\n for tTpl, YRbF in YKHO:\n Aofo += len(YRbF) * (len(tTpl) - OgbE)\n OgbE = len(tTpl)\n return Aofo", "def fDh9(YKHO):\n return YKHO.g_xrange() * YKHO.g_yrange()", "def Aw0V(YKHO):\n pass", "def j85S(YKHO):\n TVTK = 0\n H2v2 = 0\n ...
[ "0.6840579", "0.67489284", "0.6573579", "0.65716106", "0.6477603", "0.64629", "0.64528227", "0.6389008", "0.6381266", "0.6381266", "0.6372537", "0.6372537", "0.6372537", "0.6372537", "0.63654673", "0.6357944", "0.6357944", "0.6357944", "0.6357944", "0.6357944", "0.6357944", ...
0.0
-1
Returns the adjacency matrix of the mesh Returns a boolean scipy.sparse.csr_matrix with a shape of (N, N) where N is the number of vertices of the mesh. The element (i, j) is True if the vertices i and j share a triangle and False elsewhere. To transform the matrix to a dense numpy array, use the `todense` method of th...
def LLlG(YKHO) -> lqeT: return LLlG(YKHO.triangles, YKHO.nb_vertices)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LLlG(YKHO):\n eQUr = oyIN.zeros((YKHO.n_vertices, YKHO.n_vertices), dtype=oyIN.bool)\n eQUr[YKHO.edges.indices[:, 0], YKHO.edges.indices[:, 1]] = True\n eQUr[YKHO.edges.indices[:, 1], YKHO.edges.indices[:, 0]] = True\n return eQUr", "def I0pP(YKHO):\n EKkU = len(YKHO.nodes_map)\n DDBf = o7s...
[ "0.74184334", "0.7359267", "0.7233265", "0.6993584", "0.69306", "0.6822682", "0.6718334", "0.66811055", "0.65985495", "0.65178496", "0.642864", "0.6397429", "0.6372575", "0.6353582", "0.63466203", "0.6280121", "0.62736857", "0.61792237", "0.61350584", "0.6124222", "0.6082732"...
0.7364807
1
Returns the coordinate system of the mesh.
def gfry(YKHO) -> NG91: return YKHO._coordinate_system
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IiYK(YKHO):\n Cs6h = oyIN.mgrid[0:YKHO.dQN[0], 0:YKHO.dQN[1], 0:YKHO.dQN[2]]\n Mkmy = (YKHO.Qmax - YKHO.Qmin) / YKHO.dQN\n EcVT = Cs6h[0] * Mkmy[0] + YKHO.Qmin[0]\n fuBA = Cs6h[1] * Mkmy[1] + YKHO.Qmin[1]\n Nk6w = Cs6h[2] * Mkmy[2] + YKHO.Qmin[2]\n return (EcVT, fuBA, Nk6w)", "def _1J3(YKHO...
[ "0.67875373", "0.6770734", "0.6767254", "0.6767254", "0.676603", "0.6754608", "0.6689752", "0.6482264", "0.6482264", "0.6481812", "0.64305246", "0.63553935", "0.63357776", "0.6319301", "0.62894386", "0.6277318", "0.6275718", "0.62685144", "0.6261584", "0.62586087", "0.6245631...
0.67870796
1
Returns the number of vertices of the mesh.
def ts4V(YKHO) -> int: return len(YKHO._vertices)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7h0(YKHO):\n return len(YKHO.vertices)", "def poMF(YKHO):\n return YKHO._num_vertices", "def poMF(YKHO):\n return YKHO._num_vertices", "def MrQl(YKHO):\n return YKHO._n", "def JalI(YKHO) -> int:\n return YKHO.__number_of_vertices", "def JalI(YKHO):\n return len(YKHO.vertices)", "...
[ "0.8510443", "0.83451355", "0.83451355", "0.83432853", "0.83315885", "0.8322136", "0.8295555", "0.8273869", "0.81600016", "0.8142607", "0.8123593", "0.8123593", "0.8090394", "0.8055684", "0.8037973", "0.8017764", "0.80116355", "0.80108696", "0.8006491", "0.7973951", "0.796095...
0.81042117
12