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
Creates an Xshape outofbounds area on the map.
def oEZt(): hecn = hYX6() yKcO = (int(OAq9 / 10), int(Dmsj / 2)) Os4s = (int(OAq9 - OAq9 / 10), int(Dmsj / 2)) hecn[yKcO[EcVT]][yKcO[fuBA]] = lqk3 hecn[Os4s[EcVT]][Os4s[fuBA]] = FRMp for YRbF in range(int(3 * OAq9 / 10), int(3 * OAq9 / 5)): hecn[int(OAq9 / 2) + 1][YRbF] = Oz14 he...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PcSE(YKHO):\n with trZe.raises(CkpI.MaskConversionError):\n Osm5 = CkpI.poly_to_mask([(0, 0), (1, 1), (3, 0)], width=2, height=2)", "def NVmu(YKHO):\n if YKHO.x > YKHO.grid.max_x_coord or YKHO.y > YKHO.grid.max_y_coord:\n return True", "def HsFX(YKHO):\n f0tD = YKHO.mesh.area - YKHO....
[ "0.642476", "0.5898518", "0.5835946", "0.5798631", "0.5709213", "0.5696444", "0.56219697", "0.557782", "0.5571801", "0.5567372", "0.55482703", "0.5535068", "0.5510392", "0.5510392", "0.54971063", "0.5491912", "0.54913664", "0.54913664", "0.54913664", "0.54913664", "0.54913664...
0.56217396
7
Add a node given its key and the attributes.
def g5gD(YKHO, pNZh: DirectedGraph, H5ew: str, hkS8: dict=None): pNZh.add_node(H5ew, hkS8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g5gD(YKHO, Q6kx, H5ew=None):\n if H5ew is None:\n YKHO.node_dict[str(YKHO.node_next_index)] = Q6kx\n YKHO.node_next_index += 1\n else:\n YKHO.node_dict[H5ew] = Q6kx", "def Pomo(YKHO, Q6kx: str, H5ew: str, BWXx: Any) -> ImMB:\n pass", "def aZVs(YKHO, KcEq, bIwZ, jTXt, H5ew):\n ...
[ "0.7852643", "0.7715573", "0.7513587", "0.74141705", "0.7374198", "0.72704107", "0.7265888", "0.7207382", "0.7190475", "0.71415687", "0.7103995", "0.7041979", "0.7033764", "0.69654286", "0.692254", "0.6827433", "0.68262625", "0.68158114", "0.67903996", "0.67861885", "0.678618...
0.80794364
0
Get the count of number of edges in graph.
def vi4d(YKHO, pNZh: DirectedGraph): return pNZh.get_total_edges()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hSVo(pNZh):\n return rrLg.numEdges(pNZh)", "def fOCg(yvY1):\n return yvY1.number_of_edges()", "def fOCg(YKHO):\n return YKHO.graph.number_of_edges()", "def vi4d(YKHO):\n return YKHO._n", "def vi4d(YKHO):\n return sum(map(len, YKHO._edges.values()))", "def OgpV(YKHO):\n return len(YK...
[ "0.86685985", "0.85174257", "0.84320503", "0.83925235", "0.8386104", "0.8349582", "0.83322763", "0.83307344", "0.8291424", "0.8268993", "0.825521", "0.82406294", "0.81816083", "0.81312734", "0.811578", "0.81035686", "0.81035686", "0.8064394", "0.8061191", "0.8061191", "0.8054...
0.8944515
0
Connect two nodes given their key and the weight. Use this method to connect two nodes of different graph. Post this operation the two graphs will loose their individual state and be treated as one, so both the source and destination graph will be the same.
def p2OJ(YKHO, pNZh: DirectedGraph, HHfS: DirectedGraph, JZXy: str, yFgu: str, upAO: float=0.0): pNZh.connect_graph(HHfS, JZXy, yFgu, upAO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ykhp(YKHO, Elif, upAO=None):\n if upAO is None:\n upAO = tuKI.random()\n YKHO._adj[Elif] = upAO\n Elif._adj[YKHO] = upAO", "def __zY(YKHO, FJhS, Yk_P, upAO):\n YKHO.children[FJhS][Yk_P] = upAO\n YKHO.parents[Yk_P][FJhS] = upAO", "def rz7z(YKHO, B2hD, gfpw, upAO=1):\n if YKHO.get_ve...
[ "0.7578158", "0.73373604", "0.6999876", "0.6999876", "0.6987145", "0.69508386", "0.69504094", "0.6889334", "0.68581676", "0.6833484", "0.6736674", "0.6577044", "0.65594363", "0.654199", "0.6526963", "0.6509426", "0.6508905", "0.6477735", "0.6425474", "0.64245254", "0.637585",...
0.7364019
1
Returns the list of adjacent node for the given node.
def _x1v(YKHO, pNZh: DirectedGraph, Q6kx: str, NdXj: bool=True): return pNZh.find_adjacent_nodes(Q6kx, NdXj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _x1v(YKHO, Rard):\n sn4k = YKHO.adjacent_edges(Rard)\n myQS = []\n for tTpl in sn4k:\n for exwG in tTpl.points:\n if exwG == Rard:\n continue\n if exwG in myQS:\n continue\n myQS.append(exwG)\n return myQS", "def OnUY(YKHO):\n ...
[ "0.77195865", "0.76443046", "0.74908656", "0.73911643", "0.7381473", "0.71973157", "0.7180783", "0.71723807", "0.70475435", "0.70240426", "0.7020023", "0.6935076", "0.68923587", "0.68686646", "0.6864578", "0.68601537", "0.68127275", "0.6810518", "0.6780565", "0.6719581", "0.6...
0.71401453
8
Stream from/to local filesystem, transparently (de)compressing gzip and bz2 files if necessary.
def bVpQ(IznC, Tuqy='rb'): bGrB, YBcr = Hy7s.path.splitext(IznC) if YBcr == '.bz2': VOoL = HwRy.version_info[0] == 2 if VOoL: from bz2file import BZ2File else: from bz2 import BZ2File return Afh5(BZ2File)(IznC, Tuqy) if YBcr == '.gz': from gzip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def open(YKHO, wOb_):\n if type(wOb_) == str:\n if wOb_[-3:] != '.gz':\n wOb_ = wOb_ + '.gz'\n wOb_ = lGU7.open(wOb_, 'w')\n YKHO.s = wOb_", "def NAvU(YKHO, qxeD, pmON, XLhb):\n qaEx = YKHO._get_and_check_target_path(qxeD, pmON)\n if XLhb:\n return NVzG.gzip_file(qaEx)...
[ "0.67626595", "0.64209473", "0.64041644", "0.629572", "0.6264161", "0.6238551", "0.6184996", "0.6171029", "0.6125149", "0.60953224", "0.59552383", "0.5942722", "0.5941795", "0.5915539", "0.5908495", "0.58672106", "0.58648086", "0.5844521", "0.5838209", "0.58378375", "0.576999...
0.0
-1
Adds fullycached version of the mixture for given sequence lengths.
def xJkV(A1B4: str, NXmX: Mapping[str, int], fgpf: bool=False) -> LsXd: oHw7 = WU8f.get(A1B4) Dokz = tSwD(A1B4, NXmX) r8b4 = [qwmj(D5gV.name, NXmX, fgpf) for D5gV in oHw7.tasks] G9jH.info("Registering fully cached Mixture '%s' with sequence lengths %s.", Dokz, NXmX) return WU8f.add(Dokz, [(zodM.name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e0z1(YKHO, u54L: int) -> None:\n YKHO.length.append(u54L)", "def DQjz(YKHO, u54L=None):\n if u54L is None:\n u54L = YKHO._get_seq_len()\n for H5ew, Q6uT in YKHO.items():\n yk4i = u54L - len(Q6uT)\n if yk4i > 0:\n dvgN = Q6uT.__class__(YKHO.DefaultGap * yk4i)\n ...
[ "0.525806", "0.5156271", "0.49714237", "0.49039644", "0.4867789", "0.481947", "0.48027986", "0.47664714", "0.47422993", "0.4734583", "0.4700262", "0.46902475", "0.46772087", "0.46664602", "0.4633298", "0.46329376", "0.46325523", "0.46219146", "0.46160084", "0.4606351", "0.460...
0.7012756
0
Create 'inputs' and 'targets' strings for (zero/few)shot evaluation. Inputs and targets will be formatted using the given prefixes along with a separator between each pair. The fewshot examples from the train set will include both inputs and targets, whereas the eval example (at the end) will contain only the input fol...
def JLt4(oxOY, aB2n='', Es4T='', WAov='\n\n'): @BfDw.map_over_dataset def z9IV(aTqo): if 'train' in aTqo: M5Kd = ZylS.reshape(ZylS.stack([aB2n + aTqo['train']['inputs'], Es4T + aTqo['train']['targets'] + WAov], axis=1), [-1]) Mz_G = ZylS.strings.reduce_join(M5Kd) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qepm():\n GImM = 'e' if vPBo.val_full_episodes else ''\n KxBs = 'b' if vPBo.binary_grip_action else 'v'\n if vPBo.early_closing:\n KxBs += 'e'\n if vPBo.grip_action_from_state:\n KxBs += 's'\n if vPBo.zero_action_keeps_state:\n KxBs += '0'\n if vPBo.action_norm == 'zerome...
[ "0.54471827", "0.5262128", "0.51759833", "0.51225996", "0.51027757", "0.5067509", "0.5028408", "0.5020245", "0.4985534", "0.49589244", "0.49568027", "0.48863426", "0.48836994", "0.48677242", "0.48590514", "0.4858712", "0.48554584", "0.48401803", "0.48262376", "0.48140398", "0...
0.65265113
0
Computes the gradient in the x and y direction using a central difference filter, and returns the resulting gradient images (Ix, Iy) and the gradient magnitude Im.
def INZI(pdhd): WZcn = oyIN.array([0.5, 0, -0.5]) CXCD = oyIN.array([oyIN.convolve(pdhd[YRbF, :], WZcn, mode='same') for YRbF in range(pdhd.shape[0])]) XbMo = oyIN.array([oyIN.convolve(pdhd[:, YRbF], WZcn, mode='same') for YRbF in range(pdhd.shape[1])]).T orYW = oyIN.sqrt(CXCD ** 2 + XbMo ** 2) retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ICX2(YKHO):\n b0rV = oyIN.zeros(YKHO.img.shape)\n b0rV[:, 1:-1] = -YKHO.img[:, :-2] + YKHO.img[:, 2:]\n b0rV[:, 0] = -YKHO.img[:, 0] + YKHO.img[:, 1]\n b0rV[:, -1] = -YKHO.img[:, -2] + YKHO.img[:, -1]\n oDSd = oyIN.zeros(YKHO.img.shape)\n oDSd[1:-1, :] = YKHO.img[:-2, :] - YKHO.img[2:, :]\n ...
[ "0.71647143", "0.710867", "0.7104346", "0.6811083", "0.6766806", "0.6690371", "0.6624547", "0.66003036", "0.6537514", "0.6525542", "0.65092164", "0.6480245", "0.64500594", "0.6443452", "0.6436227", "0.6381655", "0.63641447", "0.63253456", "0.6293917", "0.6281072", "0.62773377...
0.63145244
18
Returns the x, y coordinates of pixels whose gradient magnitude is greater than the threshold. Also, returns the angle of the image gradient at each extracted edge.
def ttR2(CXCD, XbMo, orYW, gwAu): rs98 = oyIN.array([]) usx6, WfCS = orYW.shape for rdlD in range(usx6): for fvDH in range(WfCS): if orYW[rdlD, fvDH] > gwAu: q7In = oyIN.arctan2(XbMo[rdlD, fvDH], CXCD[rdlD, fvDH]) rs98 = oyIN.append(rs98, oyIN.array([int(f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hd96(VXjJ, gwAu=100):\n Sh1k = oyIN.array([[1, 2, 1], [0, 0, 0], [-1, -2, -1]])\n ItgU = oyIN.flip(Sh1k.T, axis=0)\n DCV3 = o6Bz(VXjJ, Sh1k)\n ZtQL = o6Bz(VXjJ, ItgU)\n j7gS = oyIN.sqrt(oyIN.square(DCV3) + oyIN.square(ZtQL))\n j7gS *= 255.0 / j7gS.max()\n j7gS[j7gS >= gwAu] = 255.0\n j7...
[ "0.7317845", "0.65097797", "0.63536817", "0.6326668", "0.61086506", "0.6102414", "0.6063504", "0.5894029", "0.5844746", "0.5829945", "0.58236736", "0.5799365", "0.5763148", "0.57336026", "0.5704197", "0.5703946", "0.57002", "0.56807804", "0.5672591", "0.5660273", "0.5648813",...
0.6406532
2
Subtract of two vectors
def qjfR(YKHO, Ty9i): if isinstance(Ty9i, list) or isinstance(Ty9i, tuple): if len(Ty9i) == 2: return DpX9(YKHO.x - Ty9i[0], YKHO.y - Ty9i[1]) else: raise Exception('Expected 2 sized list/tuple, gotted {}'.format(len(Ty9i))) elif isinstance(Ty9i, DpX9) or isinstance(Ty9i,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f4Oi(jzdc, Fg_i):\n return (jzdc[0] - Fg_i[0], jzdc[1] - Fg_i[1])", "def w82r(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('The input vectors have different length')\n return [g02w - B8FN for g02w, B8FN in zip(jzdc, Fg_i)]", "def by6d(YKHO, jzdc, Fg_i):\n return yNYn.sub(j...
[ "0.8955461", "0.83390105", "0.8331348", "0.80392724", "0.8027455", "0.79839075", "0.7964977", "0.7964977", "0.7955372", "0.79393494", "0.790572", "0.7834395", "0.7833361", "0.7833361", "0.7780885", "0.77538466", "0.77538466", "0.7706925", "0.76899546", "0.76655215", "0.764813...
0.0
-1
Subtract of two vectors
def vMlp(YKHO, Ty9i): if isinstance(Ty9i, list) or isinstance(Ty9i, tuple): if len(Ty9i) == 2: YKHO.x -= Ty9i[0] YKHO.y -= Ty9i[1] else: raise Exception('Expected 2 values of list, gotted {}'.format(len(Ty9i))) elif isinstance(Ty9i, DpX9) or isinstance(Ty9i, S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f4Oi(jzdc, Fg_i):\n return (jzdc[0] - Fg_i[0], jzdc[1] - Fg_i[1])", "def w82r(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('The input vectors have different length')\n return [g02w - B8FN for g02w, B8FN in zip(jzdc, Fg_i)]", "def by6d(YKHO, jzdc, Fg_i):\n return yNYn.sub(j...
[ "0.8955461", "0.83390105", "0.8331348", "0.80392724", "0.8027455", "0.79839075", "0.7964977", "0.7964977", "0.7955372", "0.79393494", "0.790572", "0.7834395", "0.7833361", "0.7833361", "0.7780885", "0.77538466", "0.77538466", "0.7706925", "0.76899546", "0.76655215", "0.764813...
0.0
-1
Gives the magnitude of vector
def szAg(YKHO): return epAf.sqrt(YKHO.x * YKHO.x + YKHO.y * YKHO.y + YKHO.z * YKHO.z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(iArr):\n return tk5Y(oyIN.sum(oyIN.square(iArr)), 2)", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def YXbZ(iArr):\n return epAf.sqrt(sum([iArr[YRbF] ** 2 for YRbF in range(len(iArr))]))", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def Y...
[ "0.8751801", "0.8548745", "0.85277253", "0.8410224", "0.8266663", "0.81681037", "0.8072858", "0.80411285", "0.802791", "0.7962274", "0.7734146", "0.77310777", "0.7698136", "0.7674786", "0.7673792", "0.76278985", "0.76095116", "0.75047964", "0.7442903", "0.7431392", "0.7411405...
0.0
-1
Subtract of two vectors
def qjfR(YKHO, Ty9i): if isinstance(Ty9i, list) or isinstance(Ty9i, tuple): if len(Ty9i) == 3: return SZ2k(YKHO.x - Ty9i[0], YKHO.y - Ty9i[1], YKHO.z - Ty9i[2]) else: raise Exception('Expected 3 sized list/tuple, gotted {}'.format(len(Ty9i))) elif isinstance(Ty9i, DpX9): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f4Oi(jzdc, Fg_i):\n return (jzdc[0] - Fg_i[0], jzdc[1] - Fg_i[1])", "def w82r(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('The input vectors have different length')\n return [g02w - B8FN for g02w, B8FN in zip(jzdc, Fg_i)]", "def by6d(YKHO, jzdc, Fg_i):\n return yNYn.sub(j...
[ "0.8955461", "0.83390105", "0.8331348", "0.80392724", "0.8027455", "0.79839075", "0.7964977", "0.7964977", "0.7955372", "0.79393494", "0.790572", "0.7834395", "0.7833361", "0.7833361", "0.7780885", "0.77538466", "0.77538466", "0.7706925", "0.76899546", "0.76655215", "0.764813...
0.0
-1
Subtract of two vectors
def vMlp(YKHO, Ty9i): if isinstance(Ty9i, list) or isinstance(Ty9i, tuple): if len(Ty9i) == 3: YKHO.x -= Ty9i[0] YKHO.y -= Ty9i[1] YKHO.z -= Ty9i[2] else: raise Exception('Expected 3 values of list, gotted {}'.format(len(Ty9i))) elif isinstance(Ty9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f4Oi(jzdc, Fg_i):\n return (jzdc[0] - Fg_i[0], jzdc[1] - Fg_i[1])", "def w82r(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('The input vectors have different length')\n return [g02w - B8FN for g02w, B8FN in zip(jzdc, Fg_i)]", "def by6d(YKHO, jzdc, Fg_i):\n return yNYn.sub(j...
[ "0.8955461", "0.83390105", "0.8331348", "0.80392724", "0.8027455", "0.79839075", "0.7964977", "0.7964977", "0.7955372", "0.79393494", "0.790572", "0.7834395", "0.7833361", "0.7833361", "0.7780885", "0.77538466", "0.77538466", "0.7706925", "0.76899546", "0.76655215", "0.764813...
0.0
-1
Gives the magnitude of vector
def PKV0(YKHO, Ty9i): return epAf.sqrt(YKHO.x * oUf8 + YKHO.y * YKHO.y + YKHO.z * YKHO.z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(iArr):\n return tk5Y(oyIN.sum(oyIN.square(iArr)), 2)", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def YXbZ(iArr):\n return epAf.sqrt(sum([iArr[YRbF] ** 2 for YRbF in range(len(iArr))]))", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def Y...
[ "0.8751994", "0.85490423", "0.8528806", "0.84105366", "0.82656264", "0.8169134", "0.8073747", "0.80392236", "0.8028595", "0.796263", "0.77338356", "0.7732346", "0.76978195", "0.76755124", "0.7674512", "0.76283324", "0.76100725", "0.7504617", "0.7442048", "0.74323565", "0.7410...
0.0
-1
Cross product of vector
def WHx2(YKHO, Ty9i): if isinstance(Ty9i, SZ2k): return SZ2k(YKHO.y * Ty9i.z - YKHO.z * Ty9i.y, YKHO.z * Ty9i.x - YKHO.x * Ty9i.z, YKHO.x * Ty9i.y - YKHO.y * Ty9i.z) else: raise Exception('Expected Vector3, gotted {}'.format(type(Ty9i)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dcUW(WKvO, LVAh):\n assert WKvO.shape[0] == 3\n assert LVAh.shape[0] == 3\n return oyIN.expand_dims(oyIN.cross(WKvO[:, 0], LVAh[:, 0]), axis=-1)", "def WHx2(YKHO, Ty9i):\n if not isinstance(Ty9i, lNLu):\n raise TypeError('Cross product requires a vector')\n if YKHO.dimension > 3 or Ty9i...
[ "0.7940465", "0.7907826", "0.7784186", "0.7659005", "0.7640123", "0.76240015", "0.74901026", "0.74855924", "0.7471429", "0.7463021", "0.74602395", "0.7452053", "0.744799", "0.7406446", "0.7323032", "0.7315614", "0.7262046", "0.7259584", "0.72558624", "0.721294", "0.7201051", ...
0.645351
85
Create a paginator for an operation.
def oL8A(hTqE=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\...
[ "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.76352", "0.70463663", "0.6734678", "0.6384554", "0.6307558", "0.62315184", "0.617425", "0.6...
0.7725865
9
The __init__ method of the Kmeans class.
def FIMM(YKHO, G1Hx=2, yJiH=0.001, SYxB=300): YKHO.k = G1Hx YKHO.tol = yJiH YKHO.max_iter = SYxB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, G1Hx, SBXF=caEs.eucledian, SGf8=0.0001, oDJz=False, ZGE9='KMeans'):\n YKHO.k = G1Hx\n YKHO.dist_metric = SBXF\n YKHO.eps = SGf8\n YKHO.do_plot = oDJz\n YKHO.clusters = None\n YKHO.centroids = None\n YKHO.cost = None\n YKHO.model_name = ZGE9", "def FIMM(YKHO, nMvt=5, YB_S=6,...
[ "0.7919082", "0.78510404", "0.7783221", "0.77127355", "0.7512343", "0.7432826", "0.73981714", "0.7362974", "0.73514843", "0.73054826", "0.72960395", "0.7284047", "0.72081155", "0.7148458", "0.7140411", "0.71190536", "0.71172255", "0.71012944", "0.70118684", "0.70074093", "0.7...
0.0
-1
was_published_recently() deberia regresar False para preguntas publicadas en el futuro
def GoiU(YKHO): ITS7 = rIAI.now() + qcWV.timedelta(days=30) vS5o = Y4Gy(pub_date=ITS7) YKHO.assertEqual(vS5o.was_published_recently(), False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WC1_(YKHO):\n return rIAI.now() - qcWV.timedelta(days=1) <= YKHO.pub_date <= rIAI.now()", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzk...
[ "0.85564965", "0.84892696", "0.84892696", "0.84892696", "0.84892696", "0.8147517", "0.792022", "0.79078513", "0.79078513", "0.7866328", "0.7800156", "0.77849674", "0.77518725", "0.77176267", "0.76802045", "0.76553935", "0.7655044", "0.7650912", "0.7599377", "0.75950146", "0.7...
0.75784296
24
was_published_recently() debe regresar False para preguntas publicadas hace mas de un dia
def QPdK(YKHO): ITS7 = rIAI.now() - qcWV.timedelta(days=30) lPNG = Y4Gy(pub_date=ITS7) YKHO.assertEqual(lPNG.was_published_recently(), False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WC1_(YKHO):\n return rIAI.now() - qcWV.timedelta(days=1) <= YKHO.pub_date <= rIAI.now()", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzk...
[ "0.85446906", "0.84850264", "0.84850264", "0.84850264", "0.84850264", "0.8255799", "0.80725276", "0.80725276", "0.8071283", "0.80162966", "0.77736056", "0.76783323", "0.7592937", "0.75641453", "0.7547424", "0.75151664", "0.7514682", "0.7502701", "0.74920213", "0.74903715", "0...
0.7228648
97
was_published_recently() debe regresar True para preguntas publicadas el mismo dia
def N3k0(YKHO): ITS7 = rIAI.now() - qcWV.timedelta(hours=1) m5xt = Y4Gy(pub_date=ITS7) YKHO.assertEqual(m5xt.was_published_recently(), True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WC1_(YKHO):\n return rIAI.now() - qcWV.timedelta(days=1) <= YKHO.pub_date <= rIAI.now()", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzk...
[ "0.8534681", "0.8503833", "0.8503833", "0.8503833", "0.8503833", "0.83575994", "0.79506946", "0.79506946", "0.7916087", "0.78430384", "0.7728303", "0.763047", "0.7608329", "0.7607907", "0.7603371", "0.7602078", "0.75937206", "0.75936633", "0.7589074", "0.7586244", "0.75851804...
0.0
-1
Computes the area of a 3D planar wall.
def apKA(YKHO, httR): Z9rn = httR.corners exwG = httR.normal / oyIN.linalg.norm(httR.normal) if len(Z9rn) != 3: raise ValueError('The function wall_area3D only supports ') JTID = [0.0, 0.0, 0.0] poMF = len(Z9rn[0]) for YRbF in range(poMF): JTID = JTID + oyIN.cross(Z9rn[:, (YRbF -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def bzL8(YKHO, WKvO, LVAh, epBp):\n XP5J = (WKvO + LVAh + epBp) / 2\n return epAf.sqrt(XP5J * (XP5J - WKvO) * (XP5J - LVAh) * (XP5J - epBp))", "def U9LR(j93S: int, Nqp_: int, pGmv: int) -> int:\n return 2 * (j93S * Nqp_) + 2 * (j93S ...
[ "0.7408892", "0.70892453", "0.70395434", "0.70176643", "0.69636273", "0.69553155", "0.69371396", "0.6887509", "0.68762577", "0.6871398", "0.68661374", "0.6841185", "0.6837467", "0.6835636", "0.6829924", "0.68292457", "0.6816909", "0.6815494", "0.6811784", "0.68042296", "0.679...
0.79495966
0
Stops API server for a MetaTrader account. Terminal data such as downloaded market history data will
async def undeploy_account(YKHO, id: str) -> oGir: if YKHO._is_not_jwt_token(): return YKHO._handle_no_access_exception('undeploy_account') VKhi = {'url': f'{YKHO._host}/users/current/accounts/{id}/undeploy', 'method': 'POST', 'headers': {'auth-token': YKHO._token}} return await YKHO._httpClient.req...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZKHi(YKHO):\n try:\n bD7m = f'http://127.0.0.1:{YKHO.port}/api/kytos/core/_shutdown'\n Kf9k(bD7m)\n except VugH:\n pass", "def CuqS(YKHO):\n YKHO.__api.stop()\n YKHO.__last_mode = 'stopped'", "def QhUD():\n FXSn = dLQw.get_secrets()\n bD7m = FXSn.get('VERB8TM_SRT_TEST...
[ "0.706463", "0.68835336", "0.67001325", "0.65788525", "0.6578217", "0.6561179", "0.64267415", "0.64225626", "0.64011216", "0.632062", "0.63178635", "0.62816143", "0.6278977", "0.62746173", "0.627016", "0.6254095", "0.6218499", "0.62175894", "0.62072206", "0.61973214", "0.6197...
0.0
-1
Initializes a sliding average calculator which keeps track of the average of the last k seen elements.
def FIMM(YKHO, G1Hx): YKHO.k = G1Hx YKHO.K = 2 * G1Hx + 1 YKHO.dq = MUE7() YKHO.sum = 0 YKHO.num_cnt = 0 YKHO.avg_cnt = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S6sO(KCHu, G1Hx):\n if G1Hx == 0:\n return KCHu\n qqgr = []\n RyuO = FX72(G1Hx)\n for YRbF in KCHu.iteritems():\n Ey0v = RyuO.update(YRbF[1])\n if Ey0v is not None:\n qqgr.append(Ey0v)\n Ey0v = RyuO.remain()\n while Ey0v is not None:\n qqgr.append(Ey0v)\...
[ "0.7237605", "0.656778", "0.6334972", "0.601503", "0.5998465", "0.59800506", "0.5856694", "0.584385", "0.58180237", "0.5808867", "0.5770818", "0.5770818", "0.5770818", "0.5770818", "0.5755123", "0.57491195", "0.57257414", "0.5702616", "0.57013804", "0.56874233", "0.56753045",...
0.66861916
1
Computes the sliding average after having seen element x
def QdZT(YKHO, WKvO): YKHO.num_cnt += 1 if len(YKHO.dq) < YKHO.K: YKHO.sum += WKvO YKHO.dq.append(WKvO) if len(YKHO.dq) > YKHO.k: YKHO.avg_cnt += 1 return YKHO.sum / float(len(YKHO.dq)) else: cntZ = YKHO.dq.popleft() YKHO.sum -= cntZ YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hk2d(WKvO):\n if WKvO.ndim == 1:\n WKvO = WKvO.reshape((-1, 1))\n VQvZ = oyIN.empty(WKvO.shape)\n VQvZ[0, :] = WKvO[0, :]\n for YRbF in range(1, len(VQvZ)):\n VQvZ[YRbF, :] = VQvZ[YRbF - 1, :] + 1 / (YRbF + 1) * (WKvO[YRbF, :] - VQvZ[YRbF - 1, :])\n return VQvZ", "def ZCKv(WKvO, ...
[ "0.75500196", "0.7298884", "0.7165503", "0.71110296", "0.70314217", "0.70311713", "0.70194256", "0.7006008", "0.700551", "0.7002495", "0.6994851", "0.6959803", "0.69560325", "0.6944666", "0.69318527", "0.6922735", "0.68914294", "0.68744624", "0.6873491", "0.68641585", "0.6864...
0.0
-1
Computes the sliding averages for a given Pandas series using the SlidingAverage class.
def S6sO(KCHu, G1Hx): if G1Hx == 0: return KCHu qqgr = [] RyuO = FX72(G1Hx) for YRbF in KCHu.iteritems(): Ey0v = RyuO.update(YRbF[1]) if Ey0v is not None: qqgr.append(Ey0v) Ey0v = RyuO.remain() while Ey0v is not None: qqgr.append(Ey0v) Ey0v = R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dBGK(YKHO, dy_H):\n return dy_H.ix[-YKHO.window:].mean()", "def S8vG(dy_H):\n pass", "def ZCKv(dy_H, yMhW, PRMS=False):\n DF_z = []\n if PRMS:\n yMhW = int(oyIN.floor(yMhW * len(dy_H)))\n for YRbF in range(len(dy_H)):\n PC7c = max(YRbF - yMhW + 1, 0)\n Ty9i = dy_H[PC7c:Y...
[ "0.73213124", "0.7012791", "0.69584006", "0.69502664", "0.69339716", "0.6877644", "0.6711514", "0.6489409", "0.6466069", "0.64624983", "0.64620095", "0.64102995", "0.6408687", "0.63727397", "0.63709456", "0.63709456", "0.63709456", "0.63709456", "0.6301092", "0.6298549", "0.6...
0.7170794
1
Return all categories on the get_list_categoies page.
def LQuW(): return qZuN.objects.all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNmM():\n return qZuN.objects.all()", "def LH1I(YKHO) -> x1iM[qZuN]:\n return YKHO.categories", "def YwiI(YKHO):\n return YKHO._dApi.getCategoryList()", "def LU07(Emd4):\n return LeZt", "def N3tc(YKHO):\n geh0 = (yield YKHO._api_client.getRequest('site.json'))\n raise rtVo.Return(geh0...
[ "0.8301398", "0.8257619", "0.8246817", "0.82415736", "0.8112367", "0.8090977", "0.8083388", "0.8083388", "0.77368003", "0.7717511", "0.7674511", "0.7659092", "0.7616446", "0.75498694", "0.7540656", "0.75270844", "0.7518021", "0.7513271", "0.7471204", "0.747105", "0.74597925",...
0.7438513
26
Work backwards to compute R(n).
def A3Vt(UHFx): if UHFx not in Mkmy: exwG = UHFx // 2 if UHFx == 2 * exwG: Mkmy[UHFx] = A3Vt(exwG) + A3Vt(exwG + 1) + exwG else: Mkmy[UHFx] = A3Vt(exwG - 1) + A3Vt(exwG) + 1 return Mkmy[UHFx]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JcKH(exwG):\n if exwG == 1:\n return exwG\n return exwG * JcKH(exwG - 1)", "def A3Vt(exwG):\n H5ew = '%s' % exwG\n if H5ew in SvQ0:\n return SvQ0[H5ew]\n U5bT = 1\n if exwG == 0:\n U5bT = 1\n elif exwG == 1:\n U5bT = 1\n elif exwG == 2:\n U5bT = 2\n ...
[ "0.7300874", "0.71791875", "0.69150406", "0.682827", "0.6818879", "0.66859704", "0.66104746", "0.66082644", "0.6597405", "0.65574044", "0.65419203", "0.65337366", "0.6503022", "0.6488995", "0.6488995", "0.64705193", "0.6459532", "0.6433078", "0.6432767", "0.6393942", "0.63870...
0.6616909
6
r"""Convert a vector or matrix to its homogeneous form. Converts a vector [x1, x2, ..., xn] to [x1, x2, ..., xn, 1] Converts a matrix [[x11, x12, ..., x1n], [x21, x22, ..., x2n], ... [xm1, xm2, ..., xmn]] to [[x11, x12, ..., x1n, aux1], [x21, x22, ..., x2n, aux2], ... [xm1, xm2, ..., xmn, auxm], [ 0, 0, ..., 0, 1]] whe...
def bqqj(nPrm, uflq=None): nPrm = oyIN.asarray(nPrm) if len(nPrm.shape) == 1 or (nPrm.shape[1] == 1 or nPrm.shape[0] == 1): if len(nPrm.shape) == 1: lnf9 = (nPrm.shape[0] + 1,) elif nPrm.shape[0] == 1: lnf9 = (1, nPrm.shape[1] + 1) elif nPrm.shape[1] == 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dX0a(iArr):\n mpDx = oyIN.array(iArr)\n if len(mpDx.shape) == 1:\n NwL4 = mpDx.shape[0]\n mpDx = oyIN.reshape(iArr, (NwL4, 1))\n return mpDx", "def he6J(EcVT):\n dfkh = EcVT.flatten()\n return dfkh", "def rqXh(EcVT):\n P6bq = EcVT.reshape((1, -1)).ravel()\n return P6bq", ...
[ "0.6246519", "0.61028606", "0.60495275", "0.60172033", "0.59954935", "0.5972612", "0.5942377", "0.59282815", "0.5917713", "0.58164936", "0.58079267", "0.57734346", "0.5767877", "0.5743104", "0.57416695", "0.57280266", "0.57262194", "0.57206595", "0.5720271", "0.57168096", "0....
0.6319874
0
Parse version string `version_str` in our format
def Rwzw(VsNR): kUBT = ZbWC.match('([0-9.]*\\d)(.*)', VsNR) if kUBT is None: raise ValueError('Invalid version ' + VsNR) return kUBT.groups()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BvuR(VsNR: str) -> str:\n VsNR = VsNR.strip('\\n')\n try:\n DpZH = VsNR.split('=')[1]\n except IndexError:\n raise RuntimeError(f'cannot parse version from [{VsNR}]')\n DpZH = DpZH.strip(' \\'\"')\n if not ZbWC.match('^(\\\\d+).(\\\\d+).(\\\\d+)$', DpZH):\n raise RuntimeErro...
[ "0.8474801", "0.8229837", "0.7827613", "0.7706323", "0.7667799", "0.75975966", "0.7592323", "0.7453001", "0.7390715", "0.7331265", "0.73070353", "0.7303523", "0.7158956", "0.70935744", "0.70803696", "0.7025975", "0.70255005", "0.6968462", "0.6959098", "0.682152", "0.67921495"...
0.8025809
2
Compare `version_str` to current package version To be valid, a version must have a numerical major version followed by a dot, followed by a numerical minor version. It may optionally be followed by a dot and a numerical micro version, and / or by an "extra" string. Any extra string labels the version as prerelease, so...
def aKEg(VsNR, UY8v=BtDU): DpZH, dDGN = Rwzw(VsNR) oqMT, hFz6 = Rwzw(UY8v) if DpZH != oqMT: return gZFB(BdCl(DpZH), BdCl(oqMT)) return 0 if dDGN == hFz6 else 1 if dDGN == '' else -1 if hFz6 == '' else gZFB(dDGN, hFz6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T0OD(IexU):\n Owyl = PeTk(IexU)\n if not Owyl:\n if IexU == kRkO:\n Owyl = moxu('99999.0')\n elif IexU == rALm:\n Owyl = moxu('9999.0')\n else:\n Owyl = moxu('0.01')\n return Owyl", "def Kgrh(toLl):\n return mLGw(wx3I) >= mLGw(toLl)", "def _...
[ "0.7761198", "0.7202129", "0.6807385", "0.6750611", "0.6742091", "0.663257", "0.6593399", "0.659098", "0.6588398", "0.65504473", "0.65204144", "0.6514654", "0.64932317", "0.64914185", "0.6482629", "0.648072", "0.64347565", "0.64206994", "0.63949394", "0.637301", "0.6363617", ...
0.7778705
0
Removes the given edge from this vertex.
def iyca(YKHO, Q0Mu) -> None: if not Q0Mu: raise gOA9('The edge to remove should not be None.') if Q0Mu.end1 is not YKHO and Q0Mu.end2 is not YKHO: raise gOA9('The edge to remove should involve this vertex.') if Q0Mu.end1 is YKHO: AAbN = Q0Mu.end2 else: AAbN = Q0Mu.end1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eik1(YKHO, D70y):\n if YKHO.edgeExists(D70y):\n del YKHO.graph[YKHO.EDGES_KEY][D70y]\n return\n raise Exception('Edge not Found in Graph!')", "def iyca(YKHO, D70y):\n if not YKHO.has_edge(D70y):\n return\n YKHO.edges = Jz_o(YKHO.edges, D70y)\n XOOk, pHXX = YKHO._edges[D70y...
[ "0.8169103", "0.7977932", "0.7868146", "0.77817917", "0.7748477", "0.7611186", "0.7486695", "0.7480551", "0.7469498", "0.7421011", "0.74137706", "0.7400616", "0.7397231", "0.7381738", "0.73473465", "0.7305447", "0.72759753", "0.7258551", "0.72271615", "0.72096795", "0.7195405...
0.7476466
8
Tests that a `edx.course.enrollment.activated` statement has the expected `event_type` and `name`.
def Xa4k(WNtM): assert WNtM.event_type == 'edx.course.enrollment.activated' assert WNtM.name == 'edx.course.enrollment.activated'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdOG(WNtM):\n assert WNtM.event_type == 'edx.course.enrollment.deactivated'\n assert WNtM.name == 'edx.course.enrollment.deactivated'", "def tApS(WNtM):\n assert WNtM.event_type == 'edx.course.enrollment.upgrade_clicked'\n assert WNtM.name == 'edx.course.enrollment.upgrade_clicked'", "def X59p(...
[ "0.71387607", "0.68593055", "0.65055275", "0.6481586", "0.5934566", "0.59246254", "0.5876745", "0.5812518", "0.5723638", "0.56926143", "0.5648678", "0.564448", "0.56266814", "0.5623847", "0.5620612", "0.5549346", "0.54262704", "0.54234886", "0.54178244", "0.5345856", "0.53215...
0.810915
0
Tests that a `edx.course.enrollment.deactivated` statement has the expected `event_type` and `name`.
def sdOG(WNtM): assert WNtM.event_type == 'edx.course.enrollment.deactivated' assert WNtM.name == 'edx.course.enrollment.deactivated'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xa4k(WNtM):\n assert WNtM.event_type == 'edx.course.enrollment.activated'\n assert WNtM.name == 'edx.course.enrollment.activated'", "def X59p(WNtM):\n assert WNtM.event_type == 'edx.course.enrollment.mode_changed'\n assert WNtM.name == 'edx.course.enrollment.mode_changed'", "def tApS(WNtM):\n ...
[ "0.6977375", "0.6408554", "0.64008635", "0.59948903", "0.5958217", "0.57356197", "0.56997484", "0.5658525", "0.564665", "0.5637094", "0.56140393", "0.5585291", "0.5403449", "0.53921837", "0.53339756", "0.5313922", "0.52880585", "0.5266577", "0.5239914", "0.5223667", "0.521959...
0.8223238
0
Append a node to the list.
def SStx(YKHO, Q6kx): YKHO._nodes.append(Q6kx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g5gD(YKHO, Q6kx):\n YKHO.node_list.append(Q6kx)", "def aZVs(YKHO, Q6kx):\n YKHO.nodeList.append(Q6kx)", "def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)", "def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)", "def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)", "def H2v5(YKHO, Q6kx):\n p...
[ "0.85632867", "0.84140956", "0.803816", "0.7961878", "0.7961878", "0.7915243", "0.7915243", "0.78523207", "0.77626413", "0.7747797", "0.7742411", "0.76911944", "0.76829034", "0.76707596", "0.7664724", "0.764836", "0.7637846", "0.7608132", "0.7599319", "0.75285393", "0.7520726...
0.82793444
2
Add a case node.
def DDbm(YKHO, BBLH, t6m2): YKHO._cases.append((BBLH, Ykgu(), t6m2)) YKHO._nodes = YKHO._cases[-1][1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDbm(YKHO, RhGk):\n YKHO.add_node(RhGk, type='case')", "def aMS5(YKHO, beK3, RhGk):\n YKHO.add_key_node(beK3)\n YKHO.add_edge(beK3, RhGk)\n YKHO.add_case(RhGk)", "def DDbm(YKHO, mWFP=None, RhGk=None, **B2fa):\n if RhGk != None and mWFP == None:\n YKHO.cases[RhGk.name] = RhGk\n elif...
[ "0.8980432", "0.7160377", "0.70072794", "0.70063484", "0.6923256", "0.6717881", "0.65716666", "0.65614694", "0.6011073", "0.6011073", "0.59600437", "0.5800027", "0.5785738", "0.57316774", "0.5708356", "0.56988215", "0.5695709", "0.568719", "0.5680516", "0.5668825", "0.5650356...
0.7454197
1
home page Simply returns the home page
def kZiy(): return TvZl('home.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('index.html')", "def kZiy():\n return TvZl('general/home.html')", "def kZiy():\n pri...
[ "0.85812974", "0.85695726", "0.8498486", "0.8414506", "0.8388123", "0.8354638", "0.8351546", "0.8322785", "0.83097047", "0.82867837", "0.82767993", "0.8276635", "0.8276635", "0.8275672", "0.8273655", "0.8270763", "0.82466286", "0.82422006", "0.82422006", "0.8237946", "0.82379...
0.82185674
52
Access the variable holding the current observation.
def nWVi(YKHO): return YKHO._observ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Es0b(YKHO):\n return YKHO._variable", "def yMZ6(YKHO):\n return YKHO._observation", "def yMZ6(YKHO):\n pass", "def LeTJ(YKHO):\n return YKHO._variable", "def NMoC(YKHO):\n return YKHO._variable.get()", "def rNYq(YKHO):\n return YKHO.reset() if YKHO._observation is None else YKHO._ob...
[ "0.7380035", "0.736681", "0.7330223", "0.7268594", "0.72328484", "0.71451116", "0.7053026", "0.70464385", "0.7019858", "0.6921682", "0.6895089", "0.68340266", "0.6771408", "0.6739563", "0.67285144", "0.6687544", "0.6685255", "0.66828185", "0.6680181", "0.66636646", "0.665967"...
0.0
-1
Access the variable holding the current reward.
def vOGg(YKHO): return YKHO._reward
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nFcm(YKHO):\n return YKHO.reward", "def ePH_(YKHO) -> float:\n with YKHO._lock:\n vOGg = YKHO._latest_values['reward']\n YKHO._latest_values['reward'] = 0.0\n return vOGg", "def vOGg(YKHO):\n pass", "def Jc_J(YKHO):\n pass", "def Jc_J(YKHO):\n pass", "def nFcm(YKHO):\n...
[ "0.79019904", "0.76431346", "0.7601938", "0.75978386", "0.75978386", "0.757228", "0.7525962", "0.7451945", "0.74460435", "0.73852146", "0.73512214", "0.72996324", "0.72827035", "0.7276754", "0.7275792", "0.72653496", "0.72574586", "0.7253148", "0.72503614", "0.72401315", "0.7...
0.8247131
0
Gets the parent key (the key that is the parent to all Datastore data for this user) from the user's email.
def _9pt(D3lj): return rtVo.Key('Entity', D3lj.lower())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PUAf(YKHO):\n if not hasattr(YKHO, '_parent') and YKHO._id is not None:\n YKHO.load()\n return YKHO._parent", "def PUAf(YKHO):\n return YKHO._parent_key", "def wdWS(YKHO, nPrm: Any, QpfX: Dict[str, Any]) -> str:\n yGKs = QpfX.get('parent_alti_key')\n if yGKs is None:\n raise u5...
[ "0.69727546", "0.691835", "0.66722244", "0.6626373", "0.6508168", "0.63682264", "0.6313853", "0.62237424", "0.62237424", "0.6207034", "0.6168823", "0.6150378", "0.6148946", "0.61361057", "0.61361057", "0.61361057", "0.61361057", "0.61361057", "0.61361057", "0.61361057", "0.61...
0.81915575
0
Compute the intersection of two lines in the xyplane.
def uxBq(cnXz: Sequence[Vec2], Ijzj: Sequence[Vec2], ujLs=True, csqQ=ANWk) -> h8nf[q955]: j93S, Nqp_ = cnXz dg7v, iYf1 = Ijzj M_gU = j93S.x hU22 = j93S.y C9lN = Nqp_.x vG3n = Nqp_.y ANMH = dg7v.x OHI9 = dg7v.y qTVs = iYf1.x djTH = iYf1.y OCOs = (djTH - OHI9) * (C9lN - M_gU) -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gEFC(XOOk, pHXX, kYGz, ftz7):\n SG6Y = pHXX - XOOk\n NCls = ftz7 - kYGz\n TifC = XOOk - kYGz\n cSRC = VE0C(SG6Y)\n ciZM = oyIN.dot(cSRC, NCls)\n mLGw = oyIN.dot(cSRC, TifC)\n XMlP = mLGw / ciZM.astype(float) * NCls + kYGz\n return XMlP", "def eabn(YKHO):\n EBgd = eHNT.vector(0, 0, ...
[ "0.80099225", "0.7964202", "0.7945643", "0.79330516", "0.79222137", "0.78706765", "0.78659904", "0.78659904", "0.78659904", "0.7863565", "0.7798264", "0.77689576", "0.77641267", "0.7725932", "0.77129626", "0.76813316", "0.7631297", "0.76183105", "0.7603599", "0.7597213", "0.7...
0.0
-1
Listbased data loader with transformations (horizontal flip, resizing, random crop, normalization are handled)
def oUZR(tk5Y, MVVZ, Ep8u, EvQg, XqwL=None, H2v2=256, TVTK=256, I7Gy=4, NAnm=True): hSHI = [Ymkf.ToTensor(), Ymkf.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))] hSHI = [Ymkf.RandomCrop((H2v2, TVTK))] + hSHI if NAnm else hSHI hSHI = [Ymkf.Resize((XqwL, XqwL))] + hSHI if XqwL is not None else hSHI hSHI = [Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RuZU(Kp4Y='./data/edges2shoes', Ep8u=16, N0ky=256, I7Gy=20):\n SZFh = []\n SZFh.append(Kt_s.RandomHorizontalFlip())\n SZFh.append(Kt_s.Resize(N0ky))\n SZFh.append(Kt_s.ToTensor())\n SZFh.append(Kt_s.Normalize(mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5)))\n SZFh = Kt_s.Compose(SZFh)\n __n6 = ...
[ "0.6650506", "0.6640294", "0.6536627", "0.65218955", "0.64619917", "0.6449049", "0.63528013", "0.6352745", "0.6320778", "0.63170516", "0.6247222", "0.6237917", "0.62214893", "0.6204639", "0.6148681", "0.6146819", "0.6124461", "0.611973", "0.61140394", "0.61126894", "0.6107154...
0.69519573
0
Get transformed image and mask at index index in the dataset
def OP2O(YKHO, d6pt): LNo8 = hnIv.open(YKHO.image_paths[d6pt][0]).convert('RGB') if YKHO.target_paths is not None: ZHfW = hnIv.open(YKHO.target_paths[d6pt][0]) else: ZHfW = ht2j.tensor([]) if YKHO.rect_paths is not None: mawX = hnIv.open(YKHO.rect_paths[d6pt][0]) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, d6pt):\n LNo8 = YKHO.image(d6pt)\n LNo8 = YKHO.transform(LNo8)\n if YKHO.mode == 'test':\n return (LNo8, YKHO.filename[d6pt])\n ZHfW = YKHO.mask(d6pt)\n return (LNo8, ZHfW)", "def OP2O(YKHO, d6pt):\n LNo8 = hnIv.open(YKHO.image_paths[d6pt][0]).convert('RGB')\n if YKHO.t...
[ "0.74033946", "0.722192", "0.7146216", "0.7010653", "0.68663806", "0.6824142", "0.68182516", "0.6789417", "0.67231554", "0.6701565", "0.6634132", "0.6634132", "0.6620145", "0.65507245", "0.6547029", "0.6543324", "0.65210843", "0.6500315", "0.6490131", "0.64034355", "0.6401498...
0.6948533
4
Get transformed image and mask at index index in the dataset
def OP2O(YKHO, d6pt): LNo8 = hnIv.open(YKHO.image_paths[d6pt][0]).convert('RGB') if YKHO.target_paths is not None: ZHfW = hnIv.open(YKHO.target_paths[d6pt][0]) else: ZHfW = ht2j.tensor([]) WKvO, LVAh = YKHO.transform(LNo8, ZHfW) LVAh = LVAh[0].unsqueeze(0) return (WKvO, LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, d6pt):\n LNo8 = YKHO.image(d6pt)\n LNo8 = YKHO.transform(LNo8)\n if YKHO.mode == 'test':\n return (LNo8, YKHO.filename[d6pt])\n ZHfW = YKHO.mask(d6pt)\n return (LNo8, ZHfW)", "def OP2O(YKHO, d6pt):\n Z6UH = hnIv.open(YKHO.image_paths[d6pt][0]).convert('RGB')\n mqsI = hn...
[ "0.74040467", "0.71487683", "0.7011509", "0.6950066", "0.68650806", "0.68259066", "0.6818267", "0.6791751", "0.6723691", "0.6702617", "0.66352856", "0.66352856", "0.6621501", "0.65528274", "0.65485543", "0.65437806", "0.6521847", "0.6500455", "0.64902806", "0.6403416", "0.640...
0.72230744
1
Get transformed image and mask at index index in the dataset
def OP2O(YKHO, d6pt): Z6UH = hnIv.open(YKHO.image_paths[d6pt][0]).convert('RGB') mqsI = hnIv.open(YKHO.target_paths[d6pt][0]).convert('RGB') WKvO, LVAh = YKHO.transform(Z6UH, mqsI) return (WKvO, LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, d6pt):\n LNo8 = YKHO.image(d6pt)\n LNo8 = YKHO.transform(LNo8)\n if YKHO.mode == 'test':\n return (LNo8, YKHO.filename[d6pt])\n ZHfW = YKHO.mask(d6pt)\n return (LNo8, ZHfW)", "def OP2O(YKHO, d6pt):\n LNo8 = hnIv.open(YKHO.image_paths[d6pt][0]).convert('RGB')\n if YKHO.t...
[ "0.74033946", "0.722192", "0.7146216", "0.7010653", "0.6948533", "0.68663806", "0.6824142", "0.68182516", "0.6789417", "0.67231554", "0.6701565", "0.6634132", "0.6634132", "0.6620145", "0.6547029", "0.6543324", "0.65210843", "0.6500315", "0.6490131", "0.64034355", "0.6401498"...
0.65507245
14
Get transformed image and mask at index index in the dataset
def OP2O(YKHO, d6pt): Z6UH = hnIv.open(YKHO.image_paths[d6pt][0]).convert('RGB') mqsI = hnIv.open(YKHO.pair_paths[d6pt][0]).convert('RGB') ZHfW = hnIv.open(YKHO.target_paths[d6pt][0]).convert('L') jR6a = hnIv.open(YKHO.semantic_a[d6pt][0]).convert('L') faeO = hnIv.open(YKHO.semantic_b[d6pt][0]).conv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, d6pt):\n LNo8 = YKHO.image(d6pt)\n LNo8 = YKHO.transform(LNo8)\n if YKHO.mode == 'test':\n return (LNo8, YKHO.filename[d6pt])\n ZHfW = YKHO.mask(d6pt)\n return (LNo8, ZHfW)", "def OP2O(YKHO, d6pt):\n LNo8 = hnIv.open(YKHO.image_paths[d6pt][0]).convert('RGB')\n if YKHO.t...
[ "0.74016845", "0.72209185", "0.7008474", "0.6947693", "0.6866754", "0.68230647", "0.6816505", "0.67900527", "0.6722505", "0.6702121", "0.66329575", "0.66329575", "0.6618777", "0.6550117", "0.6546005", "0.6541909", "0.6520648", "0.65000707", "0.6487336", "0.6402307", "0.640043...
0.71458477
2
load Resnet34 segmentation model with output stride 8 from checkpoint
def kPYC(bKP2, KndY): C3ST = tGJY(num_classes=KndY).to('cuda') C3ST.load_state_dict(ht2j.load(bKP2)) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OwNx(fMpV, UANf, mL4f=False, Tuqy='detection', **B2fa):\n C3ST = S1Vm(fMpV, UANf, em1m, [3, 4, 6, 3], Tuqy, **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet34'], model_dir=ogol), strict=False)\n return C3ST", "def fdeA(nPrm, UXqs, h6i4=GPtr.seg_filters_number, tKig=GPtr.se...
[ "0.6920484", "0.68409383", "0.67972827", "0.6784831", "0.6735963", "0.67018294", "0.6659819", "0.66111875", "0.66111875", "0.6604739", "0.65577996", "0.6551339", "0.6550383", "0.65364146", "0.652417", "0.6517823", "0.6512051", "0.64930046", "0.64615965", "0.64615965", "0.6461...
0.71626383
0
Returns a learning rate scheduler such that the learning rate of each parameter group is set to the initial lr decayed by hyperparameter gamma every step_size epochs when a learning rate policy is specified in the hyperparameters. When iterations=1, sets initial lr as lr.
def RwOA(K0do, UwBq, OnWS=-1): if 'lr_policy' not in UwBq or UwBq['lr_policy'] == 'constant': IesV = None elif UwBq['lr_policy'] == 'step': IesV = hc6Z.StepLR(K0do, step_size=UwBq['step_size'], gamma=UwBq['gamma'], last_epoch=OnWS) else: return NotImplementedError('learning rate poli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj, tspZ, b6Gq, KMvS):\n for YPaw in b6Gq:\n if qtWj >= YPaw:\n tspZ *= KMvS\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ\n return tspZ", "def e_63(K0do, qtWj, FAYF, KMvS, LIcp, dfHy):\n if qtWj < 1:\n dfHy += dfHy * qtWj\n tspZ = 1e-06 ...
[ "0.7721168", "0.7662474", "0.76026267", "0.7596712", "0.7596406", "0.75492764", "0.7546836", "0.75408936", "0.7509225", "0.7493315", "0.7487757", "0.74874693", "0.74495465", "0.74462557", "0.7441399", "0.7422612", "0.740843", "0.7399173", "0.73863965", "0.7379629", "0.7375485...
0.0
-1
returns a block Convolution batch normalization ReLU Pooling
def mQG_(DYuh, tYiq): return U78l.Sequential(U78l.Conv2d(DYuh, tYiq, 3, padding=1), U78l.BatchNorm2d(tYiq), U78l.ReLU(), U78l.MaxPool2d(2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QufS(oubr, KUnM):\n Csk6 = yHwh(KUnM, kernel_size=3, strides=1, padding='same')(oubr)\n Csk6 = MroH('relu')(Csk6)\n Csk6 = GVKG(momentum=0.8)(Csk6)\n Csk6 = yHwh(KUnM, kernel_size=3, strides=1, padding='same')(Csk6)\n Csk6 = GVKG(momentum=0.8)(Csk6)\n Csk6 = XVRe()([Csk6, oubr])\n return C...
[ "0.68628484", "0.67693615", "0.6716724", "0.67005175", "0.6683918", "0.664306", "0.6626106", "0.6624343", "0.662025", "0.6590022", "0.6581634", "0.6581634", "0.65725005", "0.6566778", "0.6560343", "0.6514978", "0.6506611", "0.65004265", "0.6479174", "0.6477489", "0.6458095", ...
0.0
-1
3x3 convolution with padding
def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1): return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=ivFb, groups=moMn, bias=False, dilation=ivFb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())", "def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)", "def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,...
[ "0.78404945", "0.7541354", "0.753996", "0.7491138", "0.7434801", "0.74207747", "0.73415834", "0.7320252", "0.7299599", "0.7287539", "0.72799367", "0.72799367", "0.7257735", "0.7226928", "0.72204214", "0.7214909", "0.7214909", "0.7210775", "0.7198222", "0.71639067", "0.7161914...
0.70822424
77
Perform spaCy's NER Pipeline on the document.
def w2Pw(YKHO, Aofo, wud5): for ZfUD in Aofo.ents: LEXu = I7pj(wud5, ZfUD.start_char, ZfUD.end_char) LEXu.ner_type = ZfUD.label_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tnVe(YKHO, C13M):\n C13M = C13M.replace('e.g.', 'exempli gratia')\n lpha = ZbWC.split('\\n|\\\\*', C13M)\n Rhv4 = []\n for _dZy in lpha:\n Eab6 = Dhdw.sent_tokenize(_dZy)\n u54L = len(Eab6)\n if u54L == 0:\n next\n elif u54L == 1:\n Rhv4.append(Eab6...
[ "0.65019375", "0.63865566", "0.63560504", "0.6187071", "0.61597246", "0.60529995", "0.5977088", "0.592696", "0.59007", "0.58947676", "0.5884282", "0.5878419", "0.5873865", "0.5848095", "0.57491297", "0.5748278", "0.5741037", "0.57251334", "0.5708106", "0.5674816", "0.56554574...
0.5381766
43
Convert categorical variables into numerical features. This is done using the one hot encoding implementation within scikitlearn. It increases the number of features by the number of unique categories for the specified categorical variables ("room_type", "bed_type", and "cancellation_policy" in this case). It ensures n...
def eFcg(jQ3Z, AlVb): mktQ = nu0g() ATYx = RHxJ() p0EN = rLdf.DataFrame() try: for fvDH in AlVb: if jQ3Z[fvDH].dtypes == 'object': jQ3Z[fvDH] = rLdf.Series(mktQ.fit_transform(jQ3Z[[fvDH]]), index=jQ3Z.index) ycBG = ATYx.fit(jQ3Z[fvDH].values) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tVT8(YKHO):\n YKHO.df = rLdf.get_dummies(YKHO.df[[WKvO for WKvO in YKHO.df.columns]])", "def UNJ6(YKHO):\n for iVRZ in YKHO.remaining_cat_columns:\n O4ib = iR8O(YKHO.dataset[iVRZ])\n O4ib.run_etl()\n YKHO.df_etl = rLdf.concat([YKHO.df_etl, O4ib.df_etl], axis=1)", "def Xosr(jQ3Z):...
[ "0.6645033", "0.642613", "0.6231403", "0.6150381", "0.61103004", "0.60838217", "0.6051995", "0.6045817", "0.6016318", "0.59650093", "0.5964593", "0.58873177", "0.5877539", "0.5866033", "0.5857173", "0.58435696", "0.58123225", "0.58087605", "0.58046573", "0.5789963", "0.578666...
0.0
-1
Convert categorical variables into numerical features. This implementation is specifically for categorical variables with two categories. Does not add any new features for categories. Alters the existing column to a 0/1 representation for the two categories.
def GbEr(jQ3Z, AlVb): for YRbF in AlVb: jQ3Z[YRbF] = jQ3Z[YRbF].apply(lambda WKvO: 1 if WKvO == 'y' else 0) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tVT8(YKHO):\n YKHO.df = rLdf.get_dummies(YKHO.df[[WKvO for WKvO in YKHO.df.columns]])", "def p0ur(jQ3Z):\n for Z9rn in XgNg():\n print(jQ3Z[Z9rn].unique())\n jQ3Z['Profile Age'] = jQ3Z['Profile Age'].replace({'<5': 0, '5-10': 1, '>10': 2})\n jQ3Z['Gender'] = jQ3Z['Gender'].replace({'male':...
[ "0.6954713", "0.67859817", "0.6766423", "0.6669699", "0.66608626", "0.66302353", "0.64867574", "0.64313596", "0.6404878", "0.63598275", "0.634226", "0.6336635", "0.63191044", "0.62950313", "0.62912506", "0.62791145", "0.62788576", "0.6269631", "0.6200163", "0.61943144", "0.61...
0.0
-1
Split path into a list of path components using the native separator.
def lpha(pmON): if rv3r is None or SWUC is None: raise Exception('The filesystem driver is uninitialized.') pmON.split(VWe_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eQ8x(pmON):\n return pmON.lstrip(Hy7s.sep).rstrip(Hy7s.sep).split(Hy7s.sep)", "def KkWy(pmON):\n pmON = Hy7s.path.normpath(pmON)\n return pmON.split(Hy7s.sep)", "def Y8np(YKHO, pmON, _pNx):\n return list(filter(None, pmON.split(_pNx)))", "def zFJQ(YKHO, pmON):\n AdfU = []\n while True:\...
[ "0.8168202", "0.80688286", "0.8064584", "0.79028785", "0.7894518", "0.7875306", "0.7826005", "0.7804825", "0.7645221", "0.761671", "0.74716717", "0.74532485", "0.7436842", "0.7436842", "0.7415684", "0.73965544", "0.73514897", "0.7333143", "0.73273015", "0.73074067", "0.729549...
0.767893
8
Factory that will return the right repository wrapper depending on the repository type that is detected for path.
def fwuD(Emd4, pmON, eLpg=False): if Emd4 == mY2R: for mWFP, Vr3Q in tq_1.getmembers(HwRy.modules[Emd4.__module__]): if tq_1.isclass(Vr3Q) and mY2R in Vr3Q.__bases__: YPHw = Vr3Q.get_root_path(pmON) if YPHw is not None: return super(mY2R, Vr3Q)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hXmI(dMng, dor7='cmd'):\n if dor7 == 'gitpython':\n return tgM5.Repo(dMng)\n elif dor7 == 'pygit2':\n return X9mY.Repository(dMng)\n return dMng", "def j0wp(Emd4, C3ST: tp.Type[ModelType], F3jJ: tp.Type[RepositoryType], mWFP: str, *qIxc: tp.Any, **B2fa: tp.Any) -> HRJ_.Callable[[xRyJ],...
[ "0.6739749", "0.6714162", "0.6684414", "0.65034026", "0.64709646", "0.6385835", "0.6374907", "0.61634946", "0.6130627", "0.607264", "0.6006354", "0.59939855", "0.59920645", "0.59720147", "0.5968275", "0.59608954", "0.5922877", "0.5893208", "0.58817035", "0.5865263", "0.582001...
0.6705579
2
Create a utility meter entity, one per tariff.
async def create_utility_meter(Tb_b: str, g2g3: str, mWFP: str, tjui: dict, jAgs: str, ShR8: str | None=None, nLXm: str | None=None, DSAX: str | None=None, g8g4: bool=False) -> fnZH: tcEi = g2g3 if nLXm: mWFP = f'{mWFP} {nLXm}' g2g3 = f'{g2g3}_{nLXm}' if ShR8: ShR8 = f'{ShR8}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def create_utility_meters(ajET: HomeAssistant, U1yJ: EnergySensor, tjui: dict, g8g4: bool=False) -> list[fnZH]:\n if not tjui.get(pDFW):\n return []\n OUws = []\n if jhpn not in ajET.data:\n ajET.data[jhpn] = {}\n Gvuh = tjui.get(ZCGc)\n wBZC = tjui.get(NviR)\n for jAgs in wBZ...
[ "0.665722", "0.66211575", "0.6235732", "0.58252406", "0.5768252", "0.56612116", "0.56235594", "0.55295503", "0.5509199", "0.53695184", "0.5314152", "0.5312905", "0.52805495", "0.5260895", "0.5241385", "0.52177453", "0.52046627", "0.51488477", "0.5083865", "0.5080015", "0.5075...
0.6576931
2
Returns the ram from the flavor
def F9Jn(YKHO): return YKHO.get('instance_type').get('ram')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KJSa(YKHO):\n return YKHO.attributes['ram']", "def KJSa(YKHO):\n return YKHO._data.get('ram')", "def KJSa(YKHO) -> int:\n return qe4Y.get(YKHO, 'ram')", "def KJSa(YKHO) -> int:\n return YKHO._ram", "def RSfD():\n mdLA = O0k5.virtual_memory()[2]\n return str(mdLA)", "def E_ie(YKHO):\...
[ "0.74027497", "0.7318966", "0.7068312", "0.6998501", "0.698336", "0.6772683", "0.66679376", "0.6603072", "0.64730966", "0.64204663", "0.63804555", "0.63615716", "0.63383335", "0.6315442", "0.6217336", "0.620085", "0.61718297", "0.61682934", "0.6160446", "0.61262065", "0.61149...
0.6309222
14
build groups for nnz rows and cols.
def XbR7(EvQg): fKIO, lgad = EvQg.nonzero() XAq_ = list(zip(fKIO, lgad)) UYiP = sorted(XAq_, key=lambda WKvO: WKvO[0]) GcCY = wk71(UYiP, lambda WKvO: WKvO[0]) OdNy = [(Oa1e, oyIN.array([Ty9i[1] for Ty9i in BWXx])) for Oa1e, BWXx in GcCY] SL0Z = sorted(XAq_, key=lambda WKvO: WKvO[1]) XHVe = w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XbR7(EvQg):\n fKIO, lgad = EvQg.nonzero()\n XAq_ = list(zip(fKIO, lgad))\n GcCY = qUWU(XAq_, index=0)\n OdNy = [(Oa1e, oyIN.array([Ty9i[1] for Ty9i in BWXx])) for Oa1e, BWXx in GcCY]\n XHVe = qUWU(XAq_, index=1)\n jene = [(Oa1e, oyIN.array([Ty9i[0] for Ty9i in BWXx])) for Oa1e, BWXx in XHVe]\...
[ "0.68213236", "0.68213236", "0.6786887", "0.6375211", "0.63697684", "0.6320474", "0.62240154", "0.61634845", "0.59792715", "0.5961631", "0.5943847", "0.5924116", "0.5809643", "0.579305", "0.57820815", "0.57819366", "0.57819366", "0.57819366", "0.5767612", "0.5761001", "0.5750...
0.6791107
2
Translate Pauli operator to a string
def vIwR(YKHO): E3D9 = ['1', 'X', 'Z', 'Y'] JT9N = ['+', 'i', '-', '-i'] str = JT9N[YKHO.plist[-1]] + ''.join(map(lambda XP5J: E3D9[XP5J], YKHO.plist[0:-1])) return str
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tmTR(seET):\n if seET == '<<':\n return '\\\\reactant'\n elif seET == '>>':\n return '\\\\product'\n elif seET == '(+)':\n return '\\\\activator'\n elif seET == '(-)':\n return '\\\\inhibitor'\n elif seET == '(.)':\n return '\\\\modifier'\n else:\n re...
[ "0.6957378", "0.67973363", "0.67973363", "0.647477", "0.6466262", "0.64499134", "0.64499134", "0.64499134", "0.64499134", "0.64499134", "0.6385707", "0.6385707", "0.6385707", "0.6306588", "0.6296611", "0.6275111", "0.62437856", "0.62002504", "0.61832505", "0.618255", "0.61202...
0.5851073
38
Returns a db.GeoPt object for valid values, and None for empty values.
def x0SS(YKHO, BWXx): super(NzZg, YKHO).clean(BWXx) if not YKHO.required and (not BWXx): return None try: PiLj = BWXx.split(',') if len(PiLj) != 2: raise H6V6.ValidationError(YKHO.error_messages['invalid']) QnmL = float(PiLj[0]) FDPT = float(PiLj[1]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r8OW(BWXx):\n if not isinstance(BWXx, float):\n raise sUXu('Expecting float value for coordinate')\n if BWXx['lat'] > 90 or BWXx['lat'] < -90:\n raise sUXu('Value range exceeded for field lat')\n if BWXx['lng'] > 90 or BWXx['lng'] < -180:\n raise sUXu('Value range exceeded for fie...
[ "0.61729115", "0.6160381", "0.6001922", "0.5931568", "0.5757813", "0.57540226", "0.5672912", "0.56638336", "0.5617043", "0.55807763", "0.5548873", "0.5465103", "0.5417011", "0.5405017", "0.5390585", "0.534046", "0.532557", "0.5319219", "0.53115475", "0.5281884", "0.5266652", ...
0.6988948
0
"The same technique as Tompson et al. is used for supervision. A MeanSquared Error (MSE) loss is applied comparing the predicted heatmap to a groundtruth heatmap consisting of a 2D gaussian (with standard deviation of 1 px) centered on the joint location."
def Lch1(H2v2, TVTK, nxyw, nJ9F, WTkW=1): Y4Ek = ZylS.zeros((H2v2, TVTK)) BQGg = nJ9F - 3 * WTkW h3cg = nxyw - 3 * WTkW bYzl = nJ9F + 3 * WTkW Z3uP = nxyw + 3 * WTkW if BQGg >= TVTK or h3cg >= H2v2 or bYzl < 0 or (Z3uP < 0): return Y4Ek zNig = 6 * WTkW + 1 WKvO, LVAh = ZylS.meshg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hkHB(yLaY, hlel):\n return ZylS.reduce_mean((yLaY - hlel) ** 2)", "def LR2_(o4Jx, gxm_):\n gxm_ = oVbK(gxm_, o4Jx[0].shape[0])\n LArg = U78l.MSELoss()(o4Jx[0], gxm_[0])\n N77f = LArg[None, ...]\n return N77f", "def DroR(YKHO, LVAh):\n return Kt_s.mean(Kt_s.sqr(LVAh - YKHO.y_pred))", "de...
[ "0.6546844", "0.65417624", "0.64457506", "0.6422103", "0.6422103", "0.64100647", "0.6395933", "0.6328628", "0.6310433", "0.6291495", "0.6276158", "0.6276158", "0.6268654", "0.6267741", "0.6265915", "0.6248122", "0.62289304", "0.62148446", "0.6212549", "0.6195409", "0.61731964...
0.0
-1
Get 2D transposed convolution filter
def OOwo(WKvO, RndV, FEri=1, QZir=True): XcU5 = ZylS.get_variable('weights_transpose', RndV, initializer=ZylS.contrib.layers.xavier_initializer_conv2d(uniform=False)) ZylS.add_to_collection(ZylS.GraphKeys.WEIGHTS, XcU5) Fg_i = ZylS.get_variable('biases_transpose', RndV[2], initializer=ZylS.constant_initiali...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wMKv(WKvO, XcU5):\n return ZylS.layers.conv2d_transpose(WKvO, XcU5, [1, 13, 13, 16], strides=(2, 2), padding='VALID', data_format='channels_last', activation=None)", "def o6Bz(VXjJ, filter):\n if filter.shape[0] % 2 == 0 or filter.shape[1] % 2 == 0:\n ValueError('Filter size should be odd')\n ...
[ "0.73144794", "0.7240429", "0.71912324", "0.69780076", "0.69780076", "0.6944657", "0.687442", "0.6873879", "0.6863622", "0.68447196", "0.6802098", "0.67973804", "0.6796608", "0.6786362", "0.67772955", "0.6742966", "0.6737133", "0.6715086", "0.6709143", "0.67069674", "0.668148...
0.0
-1
Stacks elements along two axes to make a tensor of matrices.
def yvLo(UqER): usx6 = [ZylS.stack(_RxS, axis=-1) for _RxS in UqER] return ZylS.stack(usx6, axis=-2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E5BI(oCuQ):\n ROpF = (-1, *oCuQ[0].shape)\n return ht2j.cat(oCuQ).view(*ROpF)", "def a42A(SjLr):\n if StCl(vuvg.typeof(SjLr)):\n return SjLr\n if not k3g3(SjLr) and (not Ll9Z(SjLr)):\n RwK6('Tensor or, list or tuple of tensors are required, but got ', SjLr)\n if not SjLr:\n ...
[ "0.6805954", "0.67391586", "0.6735867", "0.67333406", "0.65970266", "0.64825207", "0.64150214", "0.6354622", "0.6315307", "0.61613846", "0.611627", "0.61077994", "0.6098247", "0.60904694", "0.60875916", "0.60689837", "0.60560083", "0.6026098", "0.59860593", "0.59693915", "0.5...
0.7100384
0
Sets the provider_code of this AdditionalInfoResponseMessage.
def KMhE(YKHO, KMhE): YKHO._provider_code = KMhE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HIVL(YKHO, HIVL):\n YKHO._prov_code = HIVL", "def lSxO(YKHO, lSxO):\n YKHO._provider_id = lSxO", "def lSxO(YKHO, lSxO):\n YKHO._provider_id = lSxO", "def lSxO(YKHO, lSxO):\n YKHO._provider_id = lSxO", "def kT1P(YKHO, kT1P):\n if YKHO.local_vars_configuration.client_side_validation and kT...
[ "0.64423686", "0.626404", "0.626404", "0.626404", "0.61072004", "0.6072534", "0.58518964", "0.58269244", "0.58269244", "0.5788096", "0.5779648", "0.5778282", "0.5691152", "0.5661288", "0.565812", "0.5654143", "0.56225777", "0.56225777", "0.557419", "0.5511452", "0.5511452", ...
0.8213007
0
Sets the version of this AdditionalInfoResponseMessage.
def DpZH(YKHO, DpZH): YKHO._version = DpZH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iOy6(YKHO, RDI2, RpFU):\n if RDI2 == 20:\n RpFU['jsonrpc'] = '2.0'\n if RDI2 == 11:\n RpFU['version'] = '1.1'", "def DpZH(YKHO, BWXx: AwesomeVersion) -> None:\n YKHO._data[yr17] = BWXx", "def d8JF(YKHO, d8JF):\n YKHO._extended_info = d8JF", "def DpZH(YKHO, DpZH):\n YKHO._vers...
[ "0.6449165", "0.62863016", "0.6111553", "0.59553576", "0.5878933", "0.5861389", "0.58605117", "0.5837982", "0.5837982", "0.5818472", "0.57971615", "0.5759436", "0.57590395", "0.5747612", "0.5718767", "0.5714543", "0.57143646", "0.57143646", "0.57143646", "0.5689721", "0.56732...
0.57557726
21
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.8641601", "0.85101396", "0.7854588", "0.77447397", "0.7712095", "0.7697975", "0.7660445", "0.76389617", "0.76230335", "0.7608357", "0.7608357", "0.7608357", "0.7607762", "0.7600412", "0.75866044", "0.7583521", "0.75721645", "0.7569367", "0.7540305", "0.7540305", "0.7528848...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Is the given cfg_file a YAML file.
def _e8h(cLAE: str) -> bool: return Hy7s.path.splitext(cLAE)[1] in ['.yml', '.yaml']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ikn_(qaEx: pathlib.Path) -> bool:\n return qaEx.is_file() and (qaEx.name.endswith('.yaml') or qaEx.name.endswith('.yml'))", "def rr9y(Ux0P):\n return Hy7s.path.isfile(Ux0P) and Ux0P.endswith('.yaml')", "def yXO_(qaEx: Text) -> bool:\n gIsw = Hy7s.path.basename(qaEx)\n return gIsw in ['config.ym...
[ "0.7666607", "0.7604531", "0.7413788", "0.7138482", "0.71248406", "0.6922483", "0.67414254", "0.6624312", "0.6611157", "0.6611134", "0.6542083", "0.647269", "0.6469364", "0.64170337", "0.6386754", "0.63733804", "0.62891066", "0.62555605", "0.6215123", "0.6139344", "0.6110149"...
0.87640417
0
Check, if the node is a 'leaf' node.
def loae(YKHO) -> bool: return YKHO.has_value() or YKHO.has_default()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CXWj(Q6kx):\n return isinstance(Q6kx, nkkd)", "def loae() -> bool:\n return True", "def loae(YKHO, Q6kx: object) -> bool:\n if Q6kx.left is None and Q6kx.right is None:\n return True\n else:\n return False", "def loae(YKHO) -> bool:\n return isinstance(YKHO._node, Pp8A)", "...
[ "0.8821656", "0.8724543", "0.8720051", "0.8619339", "0.8575461", "0.8510703", "0.84519637", "0.84468764", "0.8415764", "0.8406669", "0.8384762", "0.8384762", "0.83647406", "0.8358071", "0.83453804", "0.83453804", "0.83453804", "0.83294773", "0.83294773", "0.83294773", "0.8329...
0.7686952
71
Return the node value, if we're a leaf node.
def BWXx(YKHO) -> HRJ_.Any: def xzCw(SKcu: tp.Any) -> HRJ_.Any: if hasattr(SKcu, 'validate'): SKcu.validate() return SKcu if 'value' in YKHO.node: return xzCw(YKHO.node['value']) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGMC(YKHO):\n return YKHO.nodeValue", "def UnfG(Q6kx):\n if Q6kx is not None:\n return Q6kx['value']\n return Q6kx", "def k7SX(YKHO):\n if YKHO.root is not None:\n return YKHO.root.value\n else:\n return None", "def BWXx(J_Es):\n return J_Es[0]", "def tb4_(YKHO, _...
[ "0.70423126", "0.6985316", "0.68409485", "0.6802546", "0.6760873", "0.6734447", "0.66988623", "0.65294206", "0.6520239", "0.6468035", "0.6435324", "0.643103", "0.6420553", "0.63901675", "0.6387358", "0.63790566", "0.637111", "0.6348546", "0.63439", "0.63362765", "0.6267128", ...
0.57714164
84
Convert the node's value to bool, if available.
def eRwN(YKHO) -> bool: if not YKHO.has_value(): return True return bool(YKHO.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vm_s(Q6kx):\n if Q6kx is None:\n return None\n return n58L(Q6kx.text)", "def Jwq5(YKHO, Q6kx):\n return False if Q6kx is None else True", "def Sp_5(YKHO):\n return z6XZ(YKHO.node)", "def qqUT(YKHO, BWXx):\n if BWXx == 'False':\n return False\n else:\n return True", ...
[ "0.8136154", "0.79939795", "0.7298319", "0.72305995", "0.72236186", "0.72160405", "0.7155883", "0.7106295", "0.7086707", "0.7086707", "0.7076102", "0.7064814", "0.7037389", "0.7032485", "0.6985781", "0.69828135", "0.6967677", "0.69625676", "0.6956843", "0.6953584", "0.6946985...
0.6755462
38
was_published_recently() returns False for questions whose pub_date is in the future.
def GoiU(YKHO): ITS7 = rIAI.now() + qcWV.timedelta(days=30) lbv8 = LFD5(data_publicacao=ITS7) YKHO.assertIs(lbv8.was_published_recently(), False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt", "def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_...
[ "0.877085", "0.877085", "0.877085", "0.877085", "0.87201834", "0.8453152", "0.8441333", "0.84401757", "0.843314", "0.84214807", "0.8416454", "0.8412505", "0.8412467", "0.8410838", "0.8410838", "0.8410838", "0.8410838", "0.8410838", "0.8410838", "0.8410838", "0.8410838", "0....
0.0
-1
Generate a random order number using uuid
def F_2g(YKHO): return qxeD.uuid4().hex.upper()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NUN2() -> str:\n return str(qxeD.uuid4())", "def VyW9():\n import random\n aevO = int(ITS7.time() * 1000)\n YRbF = random.randrange(100000, 999999)\n return int(str(aevO) + str(YRbF))", "def CSCx():\n return tuKI.randint(100000000, 999999999)", "def Kn3U(YKHO):\n return MAoM()", "d...
[ "0.8130783", "0.74341446", "0.7425362", "0.72692776", "0.7170543", "0.7143109", "0.7142591", "0.7132278", "0.71229047", "0.70824075", "0.7070937", "0.70277363", "0.70224935", "0.70203215", "0.6999511", "0.69886976", "0.6977983", "0.69204575", "0.6910348", "0.69047546", "0.689...
0.8398407
0
Test case for put_poi Update an existing POI
def ID0O(YKHO): TBsA = Il8J() geh0 = YKHO.client.open('/jpbjesus/poi_api/1.0.0/poi', method='PUT', data=qQXR.dumps(TBsA), content_type='application/json') YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itED(YKHO):\n TBsA = Il8J()\n geh0 = YKHO.client.open('/jpbjesus/poi_api/1.0.0/poi', method='POST', data=qQXR.dumps(TBsA), content_type='application/json')\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))", "def IsIF(x0hE, TeYO):\n V2h5 = _qLf(TeYO)\n V2h5['title'] = '...
[ "0.661394", "0.6455575", "0.6073877", "0.6015748", "0.5992631", "0.59879225", "0.5968851", "0.5968287", "0.5890893", "0.5890346", "0.58792746", "0.5860813", "0.58347154", "0.58233523", "0.581284", "0.5809755", "0.57799953", "0.57499766", "0.5747644", "0.57391363", "0.5733914"...
0.82824975
0
Returns the hash stored in the manifest.
def XmfQ(YKHO, nUeQ): if YKHO.prev_hashes is None: return None return YKHO.prev_hashes[nUeQ]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lesQ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'manifest_hash')", "def uk0M(YKHO):\n return YKHO.hash", "def OoXC(YKHO):\n return YKHO.hash", "def hash(YKHO):\n if YKHO.__stats:\n return YKHO.__stats['hash']", "def OoXC(YKHO):\n return YKHO._hash", "def OoXC(YKHO):\n return...
[ "0.83010143", "0.77687395", "0.76699555", "0.7613281", "0.756655", "0.7481319", "0.74618757", "0.7422863", "0.7371606", "0.7356606", "0.7164155", "0.7161233", "0.7141626", "0.7115863", "0.71097374", "0.7099793", "0.70984304", "0.707045", "0.7039957", "0.7034942", "0.7023101",...
0.0
-1
generate a random string
def BWvy(): G1Hx = tuKI.randint(5, 10) return ''.join(tuKI.choices(vIwR.ascii_letters + vIwR.digits, k=G1Hx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eTqN():\n return str(qxeD.uuid4())[:10]", "def bcVV(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(20)))", "def nj6L():\n Aofo = Gmzq.rand_uuid()\n return Aofo", "def BWvy() -> str:\n return ''.join((Acvy(tcl1 + BHGE) for bGrB in...
[ "0.8543982", "0.8350747", "0.82185864", "0.81441504", "0.8111625", "0.80600137", "0.8035305", "0.79999185", "0.79827017", "0.7957202", "0.7933924", "0.7918169", "0.79076195", "0.7907211", "0.79039353", "0.7886645", "0.7883673", "0.7873995", "0.78702265", "0.7869198", "0.78691...
0.7606108
53
Convert string to list of token indices. WMT 2014 has already been tokenized with bytepair encoding. We add BOS and EOS tokens.
def wr3U(l5Ny): return b0j5.encode('<s>' + l5Ny + '</s>').ids
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a8Pe(YKHO, s2mk, mNxz=False):\n drmi = []\n if mNxz:\n drmi = [YKHO.token2idx[YKHO.BOS]]\n drmi.extend((YKHO.token2idx[eOtH] if eOtH in YKHO.token2idx else YKHO.token2idx[YKHO.OOV] for eOtH in s2mk))\n if mNxz:\n drmi.append(YKHO.token2idx[YKHO.EOS])\n return drmi", "def wr3U(YKH...
[ "0.68876606", "0.6705628", "0.66435784", "0.66351664", "0.64491063", "0.6436384", "0.61875874", "0.6128331", "0.60642964", "0.6057818", "0.60557413", "0.6046931", "0.6046171", "0.6032924", "0.6027782", "0.6018728", "0.60144824", "0.6009652", "0.59801054", "0.59787214", "0.596...
0.59214693
24
Retrieved one OS process from the queue (FIFO).
def he0F(YKHO): return YKHO._running.popleft()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NBjn(YKHO):\n Ii1o = YKHO.ServiceStatusProcess.dwProcessId\n if not Ii1o:\n return None\n vC9B = [XP5J for XP5J in w_5H.system.processes if XP5J.pid == Ii1o]\n if not vC9B:\n return None\n return vC9B[0]", "def Nwwd():\n try:\n return eGrY.pop()\n except IndexError:\...
[ "0.67949635", "0.67592645", "0.6634038", "0.65533864", "0.65001935", "0.6463532", "0.6429386", "0.63669825", "0.63210964", "0.62854123", "0.6280444", "0.61801475", "0.6173041", "0.6148458", "0.6125962", "0.61121583", "0.6094402", "0.6073893", "0.6070137", "0.60674465", "0.603...
0.0
-1
Constructor. The attributes of this module are the number of RBM building blocks and the list of such layers. Each of such layers has its parameters saved as nn.Parameters. In this scope of RBMs it is not strictly necessary since the nn.Parameters are used to keep the gradients wrt such values.
def FIMM(YKHO, liTs, dZTX): YKHO.num_rbms_layers = len(dZTX) YKHO.rbm_layers = [] YKHO.rbm_layers.append(ESex.RestrictedBoltzmannMachine(liTs, dZTX[0])) for YRbF in range(YKHO.num_rbms_layers - 1): YKHO.rbm_layers.append(ESex.RestrictedBoltzmannMachine(dZTX[YRbF], dZTX[YRbF + 1]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, NArs, dyeT):\n super(WXLb, YKHO).__init__()\n YKHO.num_nets = NArs.get('num_networks')\n YKHO.model_config = dyeT\n YKHO.is_tf_model = True\n YKHO.total_modules = len(YKHO.model_config)\n YKHO.modules = []\n YKHO.decays = []\n YKHO.cal_vars = None\n YKHO.end_act, YKHO.end_...
[ "0.6983117", "0.67487425", "0.67451495", "0.66859895", "0.66302574", "0.6576729", "0.65507036", "0.6528906", "0.6435108", "0.64280325", "0.64251333", "0.64158094", "0.6402703", "0.6386658", "0.63740504", "0.63740504", "0.6369446", "0.6365631", "0.6362577", "0.6357898", "0.635...
0.70934874
0
Return the vector potential amplitude at ``times[1]``.
def RVGu(YKHO, WXkz, eD8c: str='simps'): return -YKHO.get_electric_field_integral_numeric(WXkz, rule=eD8c)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jfdh(YKHO, WXkz):\n return -YKHO.get_electric_field_integral_numeric_cumulative(WXkz)", "def EW0d(YKHO, a1PO: float) -> float:\n raise NotImplementedError", "def hkPg(Emd4, YTVa, WXkz, **c_sp):\n return oyIN.ones(len(WXkz))", "def caa_(YKHO, Ty9i):\n return (-YKHO.rbm_am.effective_energy(Ty9i...
[ "0.74347454", "0.65670025", "0.65445423", "0.6212825", "0.6177369", "0.5988523", "0.5963292", "0.59162897", "0.58567935", "0.5849994", "0.57900244", "0.5746344", "0.56940377", "0.5673322", "0.5664385", "0.56536615", "0.56536615", "0.562843", "0.56232", "0.55707353", "0.554712...
0.71559
1
Retrieves the parent dir for the whole project. This is a good place to start building relative paths. It has to do this without django.conf.settings.BASE_DIR.
def Cjt0(cfSz): if '/' not in cfSz: return None if 'wp_site' not in cfSz: if Hy7s.path.isdir(Hy7s.path.join(cfSz, 'wp_site')): return cfSz print('\nInvalid path for this project: {}'.format(cfSz)) print('No wp_site dir found!') return None SQ3m = cfSz.spli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def psZw():\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), Hy7s.path.pardir))", "def L59w() -> GkAb:\n return GkAb(Hy7s.path.dirname(xAKo)).parent", "def Xn8b(YKHO):\n return YKHO.__path_to_parent_dir", "def gR5H():\n sjhD = Hy7s.path.dirname(E0im())\n return sjhD", "def ...
[ "0.81236094", "0.77844894", "0.76440537", "0.76203614", "0.7553894", "0.75481385", "0.75463873", "0.7511985", "0.7511985", "0.74757445", "0.7465203", "0.7465203", "0.7465203", "0.7465203", "0.74522626", "0.7446758", "0.7446758", "0.7437896", "0.7379576", "0.73567665", "0.7326...
0.72013354
29
Gets the django environment for wp_site up and running so django modules can be used properly.
def RvWj(): global project_dir, settings_dir, scripts_dir, initialized if not Hy7s.environ.get('DJANGO_SETTINGS_MODULE', False): Hy7s.environ['DJANGO_SETTINGS_MODULE'] = 'wp_main.settings' for ckRy in HwRy.path: if ckRy: cfSz = ckRy break liVU = Cjt0(cfSz) if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGVm():\n hbZn.setup()", "def zp3H(TdrN, cvPk, xAU6):\n gCuF = NjKn(TdrN, cvPk, xAU6)\n if not gCuF:\n print('Settings not found (%s)' % xAU6.configuration, file=HwRy.stderr)\n return None\n with R3NL(G9jH.INFO):\n Hy7s.environ['DJANGO_SETTINGS_MODULE'] = gCuF.modulename\n ...
[ "0.65001", "0.6327175", "0.6250785", "0.6192107", "0.6186479", "0.61536735", "0.60668254", "0.60430014", "0.6037579", "0.5983422", "0.5969338", "0.58813375", "0.58692867", "0.58649653", "0.58647555", "0.58496976", "0.5849527", "0.5848888", "0.5848888", "0.58415073", "0.582240...
0.6979675
0
Create AndroidDevice instances from a list of json configs. Each config should have the required keyvalue pair "serial".
def OXN4(b32v): dixj = [] for Z9rn in b32v: try: Pt6R = Z9rn.pop(sjXb.ConfigKeys.IKEY_SERIAL) except KeyError: raise R6kW('Required value %s is missing in AndroidDevice config %s.' % (sjXb.ConfigKeys.IKEY_SERIAL, Z9rn)) try: quJO = Z9rn.pop(sjXb.Config...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(b32v):\n p9NO = []\n for GPtr in b32v:\n NeQs(GPtr)\n begE = fiFA(**GPtr)\n p9NO.append(begE)\n return p9NO", "def eLpg(b32v, LIr_=True):\n if not b32v:\n raise R6kW(Hjxm)\n elif b32v == ieFU:\n ZtES = BDu7()\n elif not isinstance(b32v, list):\n ...
[ "0.6529528", "0.63169324", "0.62076104", "0.5811789", "0.58090764", "0.56783116", "0.557229", "0.5436881", "0.5429071", "0.53788555", "0.5366696", "0.5350877", "0.53214014", "0.5321193", "0.53114444", "0.52979547", "0.52878267", "0.526558", "0.5260424", "0.5253781", "0.524771...
0.660768
0
Gets the product type name.
def quJO(YKHO): return YKHO._product_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def quJO(YKHO) -> str:\n return YKHO.item.properties.get(UXTF)", "def DKrT(YKHO):\n return YKHO._name", "def W0tD(YKHO):\n return 'Product'", "def DKrT():\n return NSDH", "def quJO(YKHO):\n return YKHO._table_data.get('Product Type')", "def OQrX(YKHO) -> str:\n ...", "def os_e(YKHO):\...
[ "0.8244405", "0.7864582", "0.77827954", "0.7711756", "0.7537033", "0.7520062", "0.73610336", "0.7345132", "0.73360115", "0.7290033", "0.72682583", "0.7250094", "0.72329295", "0.72191375", "0.7213602", "0.7206022", "0.7176254", "0.71594435", "0.71244216", "0.71191186", "0.7113...
0.7673943
4
Reset the learning rate to to original lr
def rS6Y(YKHO, abhF): YKHO.lr = hc6Z.ReduceLROnPlateau(optimizer=YKHO.optm, mode='min', factor=YKHO.flags.lr_decay_rate, patience=10, verbose=True, threshold=0.0001) for Oa1e in abhF.param_groups: Oa1e['lr'] = YKHO.flags.lr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FLkl(YKHO):\n YKHO.learning_rate = hp1l.LEARNING_RATE * oyIN.exp(-YKHO.steps / hp1l.TRAINING_EPS / 1000)\n YKHO.steps += 1", "def leYA(YKHO, b0Ix):\n C3ST.change_optimizer_lr(YKHO.model, b0Ix)", "def ka5c(YKHO):\n if YKHO.mode not in ['min', 'max']:\n print('Learning Rate mode %s is unkn...
[ "0.772849", "0.74927056", "0.7368827", "0.7209269", "0.7209269", "0.7209269", "0.7209269", "0.7209269", "0.7209269", "0.7209269", "0.7189581", "0.71864206", "0.71864206", "0.7182062", "0.7182062", "0.7160886", "0.7149648", "0.70969284", "0.7077176", "0.7066679", "0.7063347", ...
0.73433405
3
Make the corresponding optimizer from the flags. Only below optimizers are allowed.
def XgNT(YKHO): if YKHO.flags.optim == 'Adam': khtY = ht2j.optim.Adam(YKHO.model.parameters(), lr=YKHO.flags.lr, weight_decay=YKHO.flags.reg_scale) elif YKHO.flags.optim == 'AdamW': khtY = ht2j.optim.AdamW(YKHO.model.parameters(), lr=YKHO.flags.lr, weight_decay=YKHO.flags.reg_scale) elif YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e4x0(JbyC, b0Ix):\n if JbyC.optimizer == 'adadelta':\n K0do = ZylS.train.AdadeltaOptimizer(b0Ix, rho=JbyC.adadelta_rho, epsilon=JbyC.opt_epsilon)\n elif JbyC.optimizer == 'adagrad':\n K0do = ZylS.train.AdagradOptimizer(b0Ix, initial_accumulator_value=JbyC.adagrad_initial_accumulator_value)\...
[ "0.7269318", "0.7255539", "0.7222277", "0.68330747", "0.6803439", "0.67212445", "0.67109096", "0.67109096", "0.6664879", "0.6660007", "0.66206884", "0.66083026", "0.65123487", "0.64857024", "0.6469342", "0.644386", "0.63942885", "0.6393205", "0.6388517", "0.6386857", "0.63842...
0.7402564
0
Return a PL object corresponding to the next PL in the PLTP order, the first PL if current one is None, None if current PL is the last one or current PL couldn't be find.
def bJ2x(YKHO, QePW): ebXt = QePW.session.get('current_pl', None) n5nd = YKHO.get_pl_list() if not ebXt: return n5nd[0] jvSB = False for cf3u in n5nd: if jvSB: return cf3u if cf3u.id == ebXt: jvSB = True return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def of7Y(YKHO, QePW):\n ebXt = QePW.session.get('current_pl', None)\n n5nd = YKHO.get_pl_list()\n if not ebXt:\n return None\n AOBR = n5nd[0]\n for cf3u in n5nd[1:]:\n if cf3u.id == ebXt:\n return AOBR\n AOBR = cf3u\n return None", "def tx3c(YKHO) -> h8nf[tcHI]:\...
[ "0.61672485", "0.5983177", "0.5783565", "0.56960756", "0.5693963", "0.56330484", "0.5616093", "0.5613343", "0.5597524", "0.55860704", "0.5497472", "0.54960185", "0.54719156", "0.5430377", "0.5426433", "0.5418821", "0.54160494", "0.54030687", "0.53987473", "0.5377206", "0.5351...
0.778071
0
Return the most recent good answer for this PL, None if none exists
def h7KA(YKHO, cf3u, QePW): for ANfV in YKHO.get_answers(cf3u, QePW): if ANfV.state > 0: return ANfV return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZTOi(YKHO, cf3u, QePW):\n rRTz = YKHO.get_answers(cf3u, QePW)\n return None if not rRTz else rRTz[0]", "def aAjR(YKHO, cf3u, QePW):\n for ANfV in YKHO.get_answers(cf3u, QePW):\n if ANfV.state == 0:\n return ANfV\n return None", "def Dt8A(YKHO, bAls: dict) -> AzJI[str, int]:\n ...
[ "0.73631656", "0.68794084", "0.68518704", "0.67694557", "0.6511334", "0.6290527", "0.62522835", "0.62495923", "0.6243319", "0.61968815", "0.6129353", "0.61236066", "0.61236066", "0.61124855", "0.6017669", "0.5993449", "0.5979833", "0.5960938", "0.59534097", "0.5952454", "0.59...
0.7827133
0
Return the most recent answer for this PL, None if none exists
def ZTOi(YKHO, cf3u, QePW): rRTz = YKHO.get_answers(cf3u, QePW) return None if not rRTz else rRTz[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h7KA(YKHO, cf3u, QePW):\n for ANfV in YKHO.get_answers(cf3u, QePW):\n if ANfV.state > 0:\n return ANfV\n return None", "def aAjR(YKHO, cf3u, QePW):\n for ANfV in YKHO.get_answers(cf3u, QePW):\n if ANfV.state == 0:\n return ANfV\n return None", "def rgrf(YKHO)...
[ "0.75059587", "0.7075916", "0.699262", "0.6971583", "0.6633561", "0.62640864", "0.62640864", "0.6227402", "0.62029177", "0.6094343", "0.6081265", "0.60608816", "0.60608816", "0.60133815", "0.5989191", "0.5982999", "0.59813464", "0.5933385", "0.59118384", "0.590003", "0.585429...
0.7970265
0
Get the grid cell representative coordinates for given indices.
def SXg7(YRbF, r845): if YRbF == 0 and r845 == 0: return ((nAH8[0] + T3ky) / 2, (UVV3[0] + fY0E) / 2) elif YRbF == 0: return ((nAH8[0] + T3ky) / 2, (UVV3[r845] + UVV3[r845 - 1]) / 2) elif r845 == 0: return ((nAH8[YRbF] + nAH8[YRbF - 1]) / 2, (UVV3[0] + fY0E) / 2) return ((nAH8[YR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hju7(YKHO):\n _0VL = YKHO.grid.dimensions\n return tuple([UULF(FCE9.Function('floor')(Z9rn / YRbF.spacing)) for Z9rn, YRbF in zip(YKHO.coordinate_symbols, _0VL[:YKHO.grid.dim])])", "def JaGK(YKHO, _0VL):\n return [YKHO.get(YRbF) for YRbF in _0VL]", "def J04R(YKHO, jNOo):\n return d6pt(YKHO.latt...
[ "0.7293347", "0.7275148", "0.72429794", "0.7111897", "0.70765823", "0.7034275", "0.6801319", "0.679697", "0.6697095", "0.66691303", "0.659631", "0.6585173", "0.65682167", "0.65126985", "0.65126985", "0.65126985", "0.6489334", "0.64862573", "0.6477477", "0.6472688", "0.6465599...
0.6721518
8
create or update matplotlib distribution x data bins bins for data title figure title always, axes title if ax_title is None ax_title axes title if not None xlabel axes x label legend label for legend (None to disable) loc, bbox_to_anchor legend properties if applicable figsize and size formatting logscale use logscale...
def n3V0(WKvO, Pyrc, leAC='distribution', Eubj=None, VoLU=None, IICq='bin count', Dy_V=None, hksT='upper left', nIrO=(1, 1), wytA=(12, 6), zNig=18, UZkM=False, kzAT=False, Cwt5=0.8): import numpy as oyIN assert all(oyIN.sort(Pyrc) == Pyrc) bcP8 = oyIN.unique(oyIN.diff(Pyrc)) assert bcP8.size >= 1 if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rYip(nPrm, leAC, dCji, KQ7o=50, NTCM=24, jAfc=14, xkzz=False):\n QrM1.figure(f'{leAC} Distribution Plot', figsize=(10, 5), facecolor='white', edgecolor='black')\n hh7H = QrM1.subplot2grid((1, 2), (0, 0))\n fTVC = QrM1.subplot2grid((1, 2), (0, 1), sharex=hh7H)\n nPrm.plot(kind='hist', alpha=0.5, ax=...
[ "0.7159587", "0.6562689", "0.6485935", "0.6429146", "0.6373754", "0.63656545", "0.63541824", "0.63136226", "0.6282043", "0.62468433", "0.62418336", "0.6241529", "0.6206713", "0.61994404", "0.6189615", "0.61539465", "0.6153083", "0.61458826", "0.61453176", "0.61360157", "0.613...
0.6772039
1
set xlabel, ylabel, title, and turn on grid for ax or plt.gca() ax can be a list of Axes or a single Axes object apply ConciseDateFormatter if requested
def nzep(VoLU, IICq, leAC=None, MPlV=None, rlAN=False): import matplotlib.pyplot as QrM1 if MPlV is None: MPlV = QrM1.gca() if not hasattr(MPlV, '__iter__'): MPlV = [MPlV] for aNZO in MPlV: assert isinstance(aNZO, QrM1.Axes) aNZO.set_xlabel(VoLU) aNZO.set_ylabel(I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p4iO(aNZO, leAC):\n aNZO.set_title(leAC)\n aNZO.set_ylabel('Temperature ($^\\\\circ$C)')\n aNZO.set_xlabel('Date/Time')\n aNZO.xaxis.set_minor_locator(YdD0.MonthLocator())\n aNZO.xaxis.set_minor_formatter(YdD0.DateFormatter('%b'))\n aNZO.xaxis.set_major_locator(YdD0.YearLocator())\n aNZO.x...
[ "0.77211547", "0.6732673", "0.66876984", "0.667513", "0.6649289", "0.66145605", "0.66128814", "0.6591951", "0.6587261", "0.6539149", "0.6529554", "0.6454101", "0.6442925", "0.64178914", "0.6332252", "0.6329826", "0.63132125", "0.62839353", "0.62657905", "0.62599796", "0.62550...
0.6095893
31
Returns a new clip with a mask for transparency where the original clip is of the given color. You can also have a "progressive" mask by specifying a nonnul distance threshold thr. In this case, if the distance between a pixel and the given color is d, the transparency will be ds / (thrs + ds) which is 1 when d>>thr an...
def X6vG(vJPk, qfpW=None, Klj3=0, KCHu=1): if qfpW is None: qfpW = [0, 0, 0] qfpW = oyIN.array(qfpW) def dvwD(WKvO): if Klj3: return WKvO ** KCHu / (Klj3 ** KCHu + WKvO ** KCHu) else: return 1.0 * (WKvO != 0) def muy4(Xn71): return dvwD(oyIN.sqrt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X6vG(vJPk, qfpW=[0, 0, 0], Klj3=0, KCHu=1):\n dvwD = lambda WKvO: 1.0 * (WKvO != 0) if Klj3 == 0 else WKvO ** KCHu / (Klj3 ** KCHu + WKvO ** KCHu)\n qfpW = oyIN.array(qfpW)\n muy4 = lambda Xn71: dvwD(oyIN.sqrt(((Xn71 - qfpW) ** 2).sum(axis=2)))\n ZHfW = vJPk.fl_image(muy4)\n ZHfW.ismask = True\n...
[ "0.77392036", "0.65218383", "0.6483776", "0.6447325", "0.6417685", "0.6417685", "0.6417685", "0.63711315", "0.63514185", "0.6318631", "0.6316968", "0.630531", "0.630531", "0.6281406", "0.6268884", "0.62244314", "0.6207601", "0.61779433", "0.6160728", "0.61541325", "0.60903627...
0.7637103
1
Add a vector (of float) at given CPACS xpath Function 'add_float_vector' will add a vector (composed by float) at the given XPath, if the node does not exist, it will be created. Values will be overwritten if paths exists.
def cAvB(fKLL, laNn, iArr): if laNn.endswith('/'): laNn = laNn[:-1] Vly5 = laNn.split('/')[-1] pNPg = laNn[:-(len(Vly5) + 1)] if not fKLL.checkElement(pNPg): Y2eb(fKLL, pNPg) if fKLL.checkElement(laNn): fKLL.updateFloatVector(laNn, iArr, len(iArr), format='%g') fKLL.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JFAq(fKLL, laNn):\n if not fKLL.checkElement(laNn):\n raise ValueError(laNn + ' path does not exist!')\n uHBv = fKLL.getTextElement(laNn)\n if uHBv == '':\n raise ValueError('No value has been fournd at ' + laNn)\n if uHBv.endswith(';'):\n uHBv = uHBv[:-1]\n lVOI = uHBv.spli...
[ "0.6880353", "0.6056074", "0.60492843", "0.6041885", "0.57293457", "0.55960524", "0.55103165", "0.5503818", "0.5491056", "0.54838115", "0.5472739", "0.53782284", "0.535915", "0.5230108", "0.52286947", "0.52251655", "0.5224862", "0.52231526", "0.5212497", "0.51947826", "0.5186...
0.84702134
0
Return True if ``cls`` is a class which inherits
def nHTv(Emd4: typing.Any) -> bool: return isinstance(Emd4, type) and issubclass(Emd4, _lSh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b_gB(Emd4, _AKB):\n for WKvO in tq_1.getmro(Emd4):\n if WKvO == _AKB:\n return True\n return False", "def LJf3(Emd4):\n return as9g(Emd4)", "def b_gB(YEnM, J9Xy):\n return issubclass(type(YEnM), J9Xy)", "def AIPO(Emd4, WavV):\n try:\n return issubclass(Emd4, WavV)\...
[ "0.80816215", "0.79493314", "0.7811699", "0.7774502", "0.77632713", "0.7736109", "0.7681277", "0.7670347", "0.766749", "0.766749", "0.7658078", "0.76271373", "0.7616783", "0.75972795", "0.75900203", "0.75855637", "0.75724953", "0.7570112", "0.75656164", "0.7560864", "0.755986...
0.0
-1
Function that preprocesses the data (1) Parses through html/xml content and removes it (2) Sets words to lowercase (3) Sentence Tokenization (4) Word Tokenization and Lemmatization
def biH0(hGN5): Z9JV = rKuS(hGN5, 'html.parser') nPrm = Z9JV.get_text().lower() Rhv4 = wr3U.sent_tokenize(nPrm.lower()) for YRbF in range(len(Rhv4)): Rhv4[YRbF] = Rhv4[YRbF].split() return Rhv4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zi4e(l5Ny):\n l5Ny = l5Ny.replace('||||', '')\n l5Ny = l5Ny.replace(',', '')\n l5Ny = l5Ny.replace('@', '')\n l5Ny = l5Ny.replace('.', '')\n l5Ny = l5Ny.replace(\"'\", '')\n l5Ny = l5Ny.replace('\"', '')\n s2mk = [GIN8 for _dZy in N3rN(l5Ny) for GIN8 in dFss(_dZy)]\n JCyR = di0c.words('...
[ "0.70496", "0.6962229", "0.6962229", "0.6924333", "0.68979836", "0.68575794", "0.6852679", "0.68525565", "0.68188244", "0.6806989", "0.679676", "0.67508405", "0.67363447", "0.67214525", "0.6720095", "0.66832006", "0.6649853", "0.66423", "0.6636873", "0.6632269", "0.6631093", ...
0.6765491
11
Create and save a User with the given email and password.
def xWi2(YKHO, D3lj, jTXt, **wdCM): if not D3lj: raise ValueError('The given email must be set') D3lj = YKHO.normalize_email(D3lj) CBIr = YKHO.model(email=D3lj, **wdCM) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n D3lj = YKHO.normalize_email(D3lj)\n ...
[ "0.8765907", "0.85452473", "0.85366184", "0.85280925", "0.85267425", "0.85254383", "0.8518485", "0.8508691", "0.85047454", "0.8504546", "0.8504546", "0.8504546", "0.84938383", "0.84938383", "0.8493589", "0.849272", "0.84910786", "0.8490251", "0.84887314", "0.84886223", "0.848...
0.84750223
28
Create and save a regular User with the given email and password.
def lYUQ(YKHO, D3lj, jTXt=None, **wdCM): wdCM.setdefault('is_staff', False) wdCM.setdefault('is_superuser', False) return YKHO._create_user(D3lj, jTXt, **wdCM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n CBIr = YKHO.model(email=D3lj, **wdCM...
[ "0.87434536", "0.86426324", "0.86060226", "0.86042154", "0.860411", "0.86026454", "0.85989094", "0.85989094", "0.85989094", "0.8593626", "0.8584165", "0.85535115", "0.85437036", "0.85310555", "0.852144", "0.852067", "0.8517979", "0.85157007", "0.85140324", "0.85063654", "0.84...
0.0
-1
Create and save a SuperUser with the given email and password.
def Zp54(YKHO, D3lj, jTXt, **wdCM): wdCM.setdefault('is_staff', True) wdCM.setdefault('is_superuser', True) wdCM.setdefault('date_creation', rIAI.now()) wdCM.setdefault('date_update', rIAI.now()) wdCM.setdefault('status', 1) if wdCM.get('is_staff') is not True: raise ValueError('Superuse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)", "def Zp54(YKHO, D3lj: str, jTXt: str, **wdCM: Dict[str, bool]):\n wdCM.setdefault('is_staff', True)\n wdCM.setdefault('is_superuser', True)\n wdCM.setdefault('is_active', True)\n if wdCM.get('is_staff') is not...
[ "0.81715554", "0.80949867", "0.8072965", "0.80660135", "0.80614394", "0.80550295", "0.80352277", "0.79790324", "0.79607594", "0.7955878", "0.7946088", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7939117", "0.79350...
0.78367406
44