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
r"""Computes the entropy upper bound at the design points `X`. This is used for the JESLB and MESLB estimate. If `only_diagonal` is True, then this computes the entropy estimate for the JESLB2 and MESLB2.
def Gdb_(wl25: Tensor, JBMS: Tensor, I8JS: Tensor, Futb: Tensor, E19_: bool=False) -> llWB: DMxI = {'dtype': wl25.dtype, 'device': wl25.device} XRkK = ht2j.finfo(DMxI['dtype']).eps zxQJ = I8JS + Futb Oa1e = (wl25.unsqueeze(-4) - JBMS.unsqueeze(-2)) / ht2j.sqrt(I8JS.unsqueeze(-2)) mhAC = WGTe(ht2j.ze...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UdDg(YKHO, EcVT: Tensor) -> llWB:\n XeLo = YKHO._compute_posterior_statistics(EcVT)\n G8Ko = XeLo['initial_entropy']\n BYXO = XeLo['posterior_mean']\n k1CK = XeLo['posterior_variance']\n mduf = XeLo['observation_noise']\n if YKHO.estimation_type == '0':\n kaxw = Mj9f(hypercell_bounds=Y...
[ "0.5440284", "0.5302719", "0.5289447", "0.5224175", "0.51387364", "0.51075155", "0.5054944", "0.5038406", "0.5011946", "0.50084597", "0.5005506", "0.5001955", "0.49923322", "0.4983563", "0.49730363", "0.49647212", "0.49587557", "0.4902778", "0.4901709", "0.48982474", "0.48887...
0.634073
0
test user creation with valid credentials
def ncL1(YKHO): Ylbp = YKHO.client().post('/api/v1/books/', headers={'Content-Type': 'application/json'}, data=qQXR.dumps(YKHO.user)) zgjV = qQXR.loads(Ylbp.data) YKHO.assertEqual(Ylbp.status_code, 201)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cDXr(YKHO):\n pass", "def dVPr(YKHO):\n Ylbp = YKHO.client.post(CKgv, YKHO.payload)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED)\n CBIr = egNl().objects.get(**Ylbp.data)\n YKHO.assertTrue(CBIr.check_password(YKHO.payload['password']))\n YKHO.assertNotIn('password', Ylbp.data)...
[ "0.8483242", "0.84466684", "0.8435945", "0.8387471", "0.8360152", "0.82957715", "0.8291346", "0.82910615", "0.8284858", "0.8273994", "0.8249067", "0.82407176", "0.8236179", "0.82341355", "0.82322115", "0.8228033", "0.8227482", "0.82272404", "0.8225949", "0.82186484", "0.81721...
0.0
-1
test user creation with empty request
def VcwH(YKHO): AroK = {} Ylbp = YKHO.client().post('/api/v1/books/', headers={'Content-Type': 'application/json'}, data=qQXR.dumps(AroK)) zgjV = qQXR.loads(Ylbp.data) YKHO.assertEqual(Ylbp.status_code, 400)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cFOM(YKHO):\n nPrm = {}\n Ylbp = YKHO.client.post('/users/', data=nPrm, format='json')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def K98e(YKHO):\n nPrm = {'email': '', 'password': ''}\n Ylbp = YKHO.client.post(CKgv, nPrm)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HT...
[ "0.8485009", "0.81731266", "0.8040229", "0.8015183", "0.7988497", "0.79806954", "0.7947879", "0.79157406", "0.7908114", "0.7890073", "0.78727585", "0.78541124", "0.78170073", "0.7814647", "0.7811248", "0.780989", "0.7801014", "0.7795149", "0.77919924", "0.77493334", "0.774477...
0.0
-1
Test book Update book
def s5Rh(YKHO): AroK = {'id': 12, 'name': 'Game of Thrones', 'isbn': '456-987-8451', 'authors': 'Sandeep', 'country': 'USA', 'pages': '128', 'publisher': 'TATA', 'release_date': '12/06/2011'} Ylbp = YKHO.client().put('/api/v1/books/12', headers={'Content-Type': 'application/json'}, data=qQXR.dumps(AroK)) zg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rbUV(YKHO):\n YKHO.login_client('test_user', 'testing')\n geh0 = YKHO.make_a_request(kind='put', id=2, data=YKHO.valid_data)\n YKHO.assertEqual(geh0.data, YKHO.valid_data)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def IsIF(x0hE, TeYO):\n V2h5 = _qLf(TeYO)\n V2h5['title'] = '...
[ "0.81564397", "0.8029684", "0.7888401", "0.759977", "0.752892", "0.7489425", "0.7389347", "0.7375824", "0.732257", "0.7156672", "0.71492445", "0.71492445", "0.70325917", "0.70289814", "0.7006955", "0.70067084", "0.69846517", "0.6937197", "0.69128513", "0.6912467", "0.6884115"...
0.73797345
7
Get the blob data.
def nPrm(YKHO): nPrm = VEDo.ctypeslib.as_array(YKHO.shared_data) ROpF = YKHO.shape if len(ROpF) == 4: return nPrm.reshape(YKHO.real_shape)[:ROpF[0], :ROpF[1], :ROpF[2], :ROpF[3]] else: return nPrm.reshape(YKHO.real_shape)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JpKl(YKHO):\n return YKHO.blob_data.data", "def yLtf(YKHO):\n return YKHO.blob_client.get(YKHO.blobref)", "def c4wM(YKHO, twTI):\n vxw0 = YKHO.get_blob(twTI)\n return v_lW.Blob_.build(vxw0)", "def WbZw(YKHO):\n KpGw = YKHO._getTypeCode()\n if KpGw in range(iquo.BLOBLEN0, iquo.BLOBLEN4 +...
[ "0.8980525", "0.8953258", "0.8228917", "0.75193316", "0.7479939", "0.7457603", "0.7444422", "0.7313757", "0.73064995", "0.73064995", "0.73064995", "0.72808075", "0.72425705", "0.7232615", "0.72199637", "0.7198389", "0.71834517", "0.7113404", "0.70359045", "0.7030115", "0.7029...
0.0
-1
Converts prices of all elements of a list of shares from euros to cents.
def Wh58(__n6): uP7Y = [] for nPrm in __n6: uP7Y.append((nPrm[0], int(nPrm[1] * 100), nPrm[2])) return uP7Y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RnqS(wEf2):\n Z6gX = wEf2.replace(',', '').replace('$', '')\n return float(Z6gX)", "def TuzH(YKHO, kgDL):\n AVpI = {}\n mGkW = YKHO.client.get_all_tickers()\n mGkW = {WKvO['symbol']: WKvO['price'] for WKvO in mGkW}\n for q2Xo in kgDL:\n AVpI[q2Xo] = (float(mGkW[q2Xo.replace('/', '')]...
[ "0.6092495", "0.60197586", "0.60115784", "0.59636563", "0.5949856", "0.58855957", "0.5833205", "0.5825594", "0.5798304", "0.57711136", "0.5695568", "0.56788915", "0.56494194", "0.56393874", "0.5635459", "0.56051964", "0.557218", "0.5513476", "0.55074257", "0.5498838", "0.5495...
0.5932362
5
Decorate routes to require login.
def uKii(eHNT): @zaGL(eHNT) def SzLu(*qIxc, **B2fa): if 'logged_in' in cuiw: return eHNT(*qIxc, **B2fa) else: return vKnz('/login') return SzLu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if not 'logged_in' in cuiw:\n return vKnz(nKyW('index', next=QePW.url))\n return JfyU(*qIxc, **B2fa)\n return WS4m", "def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if Oa1e.user i...
[ "0.7088456", "0.69661", "0.69525415", "0.6949141", "0.6931404", "0.69277924", "0.69114035", "0.6908829", "0.68492377", "0.68424016", "0.68367666", "0.68357086", "0.6820801", "0.6820801", "0.6820801", "0.6820801", "0.6806658", "0.68059635", "0.67959154", "0.6781016", "0.677388...
0.66751564
34
Creates a Keras Embedding() layer and loads in pretrained GloVe 50dimensional vectors.
def Sapu(qbGl, _3lE): from keras.layers import Embedding nmRd = len(_3lE) + 1 m_Zy = qbGl['cucumber'].shape[0] MJQx = oyIN.zeros((nmRd, m_Zy)) for GIN8, d6pt in _3lE.items(): MJQx[d6pt, :] = qbGl[GIN8] eFKZ = Embedding(nmRd, 50, trainable=False) eFKZ.build((None,)) eFKZ.set_weigh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sapu(qbGl, _3lE):\n nmRd = len(_3lE) + 1\n m_Zy = qbGl['cucumber'].shape[0]\n MJQx = oyIN.zeros((nmRd, m_Zy))\n for GIN8, d6pt in _3lE.items():\n MJQx[d6pt, :] = qbGl[GIN8]\n eFKZ = DilS(nmRd, m_Zy, trainable=False)\n eFKZ.build((None,))\n eFKZ.set_weights([MJQx])\n return eFKZ",...
[ "0.77923054", "0.7456744", "0.7439333", "0.7065175", "0.69536227", "0.68805444", "0.6761424", "0.6731907", "0.663692", "0.66264033", "0.6605168", "0.65586674", "0.655786", "0.6555004", "0.6482897", "0.6460519", "0.64447737", "0.64444155", "0.6440819", "0.6432217", "0.64319485...
0.736143
3
Displays a grayscale image given the array corresponding to the image, using the OpenCV library.
def C_Zq(LNo8): QrM1.figure(figsize=(12, 10), dpi=80) QrM1.imshow(LNo8, cmap='gray') QrM1.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z2aC(LNo8):\n jbYn.imshow('Your Image!', LNo8)\n jbYn.waitKey(0)\n jbYn.destroyAllWindows()", "def p1dx(LNo8):\n QrM1.imshow(LNo8, cmap='gray')", "def u6fe(VXjJ: np.ndarray):\n QrM1.figure()\n QrM1.imshow(VXjJ, cmap=QrM1.cm.gray)\n QrM1.show()", "def URbT():\n pmON = Pw9L\n JcL...
[ "0.7385687", "0.7302954", "0.7253137", "0.7224269", "0.72047085", "0.71762514", "0.7126527", "0.7107224", "0.7071085", "0.7039507", "0.7025833", "0.6987028", "0.6971719", "0.69700116", "0.69403154", "0.6908813", "0.68993306", "0.6888013", "0.6877833", "0.6822999", "0.6816259"...
0.651852
70
Refer documentation for cv.dct and image.astype("float").
def M19B(LNo8): lCj2 = LNo8.astype('float') b5rY = jbYn.dct(lCj2) return b5rY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dQjE(b5rY):\n LNo8 = jbYn.idct(b5rY)\n return LNo8", "def NHxq(VXjJ, a1PO=3):\n return fK8P(fK8P(VXjJ.T, type=a1PO).T, type=a1PO)", "def fA2L(VXjJ):\n return R1oI.dct(R1oI.dct(VXjJ.T, norm='ortho').T, norm='ortho')", "def Ha4a(YKHO, SppC):\n \"\"\"\n compDCT = fftpack.dct(fftpack.dc...
[ "0.6876046", "0.65302557", "0.64531535", "0.6191934", "0.6024961", "0.6016622", "0.59786457", "0.5843715", "0.5842793", "0.58399767", "0.58399767", "0.5817512", "0.5736118", "0.5726356", "0.57037634", "0.5690261", "0.5689427", "0.56692386", "0.5629135", "0.5610857", "0.556469...
0.8374236
0
Returns a numpy array corresponding to the YCbCr representation of an image, given an array of an image.
def Hlvv(LNo8): H2v2 = LNo8.shape[0] TVTK = LNo8.shape[1] VKPi = jbYn.cvtColor(LNo8, jbYn.COLOR_BGR2YCR_CB) return oyIN.resize(VKPi[:, :, 0].flatten(), (H2v2, TVTK, 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aVMw(VXjJ):\n if len(VXjJ.shape) is not 3:\n print('Incorrect input image format: {0} dimensions instead of expected {1}'.format(len(VXjJ.shape), 3))\n return VXjJ\n EcVT = oyIN.array([[0.299, 0.587, 0.114], [-0.1687, -0.3313, 0.5], [0.5, -0.4187, -0.0813]])\n kepu = VXjJ.dot(EcVT.T)\n ...
[ "0.7677931", "0.7517348", "0.7418129", "0.73486567", "0.7327793", "0.73135144", "0.7308595", "0.7236683", "0.7203342", "0.7197817", "0.7136416", "0.7118901", "0.70385146", "0.70173776", "0.6894235", "0.6802747", "0.6679988", "0.666229", "0.6647346", "0.66253954", "0.6620747",...
0.76929957
0
delete the below and finish the constructor Inside the constructor method, we can use super( ).__init__(x,x) to form our square, which is essentially a rectangle with equal sides of length x. Note that due to inheritance, we can use the area and perimeter formulas from the Rectangle class.
def FIMM(YKHO, u54L): super().__init__(u54L, u54L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, WKvO=0, LVAh=0, HEZd=2):\n super().__init__(WKvO, LVAh)\n YKHO.side = HEZd\n YKHO.__class__.all_squares.append(YKHO)", "def FIMM(YKHO, zNig, WKvO=0, LVAh=0, id=None):\n x7Ls.__init__(YKHO, zNig, zNig, x=WKvO, y=LVAh, id=id)", "def FIMM(YKHO, Fyji):\n YKHO.__size = Fyji", "def FI...
[ "0.76808625", "0.75471526", "0.7318941", "0.7043959", "0.70162535", "0.69788855", "0.69788855", "0.69788855", "0.69788855", "0.69131726", "0.69080067", "0.69080067", "0.69080067", "0.69080067", "0.69080067", "0.69080067", "0.69080067", "0.6901933", "0.68731785", "0.68731785", ...
0.0
-1
Returns a JSON response, transforming 'context' to make the payload.
def EK31(YKHO, QpfX, **TIVb): return jnRN(YKHO.get_data(QpfX), **TIVb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4iE(YKHO, QpfX, **TIVb):\n TIVb['content_type'] = 'application/json'\n return YKHO.json_response_class(qQXR.dumps(QpfX), **TIVb)", "def EK31(YKHO, QpfX, **TIVb):\n return igJ6(qQXR.dumps(QpfX), content_type='application/json', **TIVb)", "def SGJU(YKHO, QpfX):\n return YKHO.get_json_response(Qp...
[ "0.7995763", "0.77249134", "0.770435", "0.770435", "0.76753193", "0.76753193", "0.76446885", "0.7582211", "0.7538711", "0.7429256", "0.7421507", "0.7421507", "0.7421507", "0.74140453", "0.7145266", "0.7081657", "0.70215803", "0.6992469", "0.69255745", "0.66316104", "0.6631610...
0.74089426
14
Parses an image and its label from a serialized ResNet50 TFExample. This only decodes the image, which is prepared for caching.
def NH10(AIu6): yJc9 = {'image/encoded': ZylS.FixedLenFeature((), ZylS.string, ''), 'image/format': ZylS.FixedLenFeature((), ZylS.string, 'jpeg'), 'image/class/label': ZylS.FixedLenFeature([], ZylS.int64, -1), 'image/class/embedding': ZylS.VarLenFeature(ZylS.float32), 'image/width': ZylS.FixedLenFeature([], ZylS.in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qco6(YKHO, lGjS):\n bySB = ZylS.io.parse_single_example(lGjS, features={'image': ZylS.io.FixedLenFeature([], ZylS.string), 'label': ZylS.io.FixedLenFeature([], ZylS.int64)})\n LNo8 = ZylS.image.decode_png(bySB['image'], dtype=ZylS.uint8)\n LNo8 = ZylS.cast(LNo8, ZylS.float32)\n LNo8 = ZylS.cast(Zyl...
[ "0.80143756", "0.7834496", "0.77046233", "0.76691383", "0.76447123", "0.75588006", "0.7554855", "0.7544326", "0.7523571", "0.75208586", "0.74803084", "0.7419983", "0.7408613", "0.7311488", "0.7121183", "0.699437", "0.699059", "0.6967738", "0.69061804", "0.6905193", "0.6879347...
0.60805315
69
Return the full path of the root of the Git client. E.g., `/Users/saggese/src/.../amp`.
def xM8e(rpHY: bool) -> str: if rpHY and W5q9(): HCmI = 'git rev-parse --show-superproject-working-tree' else: HCmI = 'git rev-parse --show-toplevel' bGrB, yvT9 = wt0e.system_to_string(HCmI) yvT9 = yvT9.rstrip('\n') PCzT.dassert_eq(len(yvT9.split('\n')), 1, msg="Invalid out='%s'" % y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ig3o():\n cYu8 = Hy7s.path.dirname(xAKo)\n jNha = Hy7s.path.normpath(Hy7s.path.join(cYu8, Hy7s.pardir))\n return Hy7s.path.join(jNha, '.git')", "def CYyW():\n return Yn3K.check_output('git rev-parse --show-toplevel', text=True, shell=True).rstrip()", "def J1KI(pmON):\n FCN7 = tgM5.Repo(pmON,...
[ "0.76643217", "0.7620073", "0.7581969", "0.7581969", "0.7581969", "0.75811493", "0.7571736", "0.7541936", "0.7419538", "0.7389442", "0.7387723", "0.73237944", "0.7315702", "0.73039186", "0.72855026", "0.7278771", "0.72771174", "0.7238703", "0.72288334", "0.7225214", "0.720030...
0.76329845
1
Return the path of the submodules in this repo, e.g., `["amp"]` or `[]`.
def bur_() -> x1iM[str]: HCmI = "git config --file .gitmodules --get-regexp path | awk '{ print $2 }'" bGrB, FUjE = wt0e.system_to_string(HCmI) yDgX.debug('txt=%s', FUjE) RRlC: x1iM[str] = wt0e.text_to_list(FUjE) yDgX.debug('files=%s', RRlC) return RRlC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gAT0() -> AzJI[str, str]:\n HCmI = 'git rev-parse --show-superproject-working-tree'\n PZye: str = wt0e.system_to_one_line(HCmI)[1]\n yDgX.debug(\"superproject_path='%s'\", PZye)\n HCmI = f\"\"\"git config --file {PZye}/.gitmodules --get-regexp path| grep $(basename \"$(pwd)\")| awk '{{ print $2 }}'...
[ "0.707379", "0.67255443", "0.67121315", "0.65881026", "0.6568376", "0.6511013", "0.6490661", "0.6456689", "0.64468634", "0.64363194", "0.6356045", "0.6343263", "0.63317424", "0.62846315", "0.62831867", "0.62698984", "0.62531215", "0.6207605", "0.6207335", "0.6202205", "0.6182...
0.7558799
0
Get the git path from the root of the tree.
def y5lA(gIsw: str, rpHY: bool) -> str: CYyW = xM8e(rpHY) + '/' U5bT = Hy7s.path.relpath(gIsw, CYyW) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J1KI(pmON):\n pmON = OyQC(pmON)\n return eh3H(['rev-parse', '--show-toplevel'], pmON)[0]", "def KZXb(YKHO):\n bCYe = fGmS(['git', 'rev-parse', '--show-toplevel'], stdout=h5ye, stderr=h5ye)\n yvT9, XObx = bCYe.communicate()\n if XObx:\n raise wOE_('Not a git repository.')\n tk5Y = yvT...
[ "0.8332569", "0.8284517", "0.817479", "0.8162513", "0.8118177", "0.8118177", "0.8118177", "0.8051132", "0.8047783", "0.79805976", "0.79329586", "0.792211", "0.7883746", "0.7875373", "0.78709793", "0.78260976", "0.77850515", "0.75993806", "0.7577429", "0.7524041", "0.7519628",...
0.7633484
17
Return the absolute path of `amp` dir.
def bebi() -> str: jlwy = GdZD(super_module=False) if jlwy == 'alphamatic/amp': CYyW = xM8e(super_module=False) RTCD = CYyW else: RTCD = Aq6b('amp', super_module=True) CYyW = xM8e(super_module=True) RTCD = Hy7s.path.join(CYyW, RTCD) RTCD = Hy7s.path.abspath(RTCD) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yb80():\n return Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)))", "def WQbV(YKHO):\n return YKHO.filename(Hy7s.path.normpath(Hy7s.path.abspath(Hy7s.path.expanduser(YKHO.filename()))))", "def WQbV(YKHO) -> str:\n return Hy7s.path.abspath(YKHO.__path)", "def zJsY(YGaF):\n g75m = ...
[ "0.71720684", "0.7139094", "0.7130702", "0.68897694", "0.6717825", "0.6703427", "0.65184027", "0.64993566", "0.64870256", "0.6478779", "0.64773655", "0.6465457", "0.64513916", "0.64444906", "0.64360774", "0.643527", "0.6425188", "0.64245915", "0.6412366", "0.6411588", "0.6398...
0.8836021
0
Report the hash that the remote Git repo is at.
def j7CN(Z0kE: str) -> str: PCzT.dassert_exists(Z0kE) Nb6n = KIl0(Z0kE) HCmI = f'git ls-remote git@github.com:{Nb6n} HEAD 2>/dev/null' nPrm: AzJI[int, str] = wt0e.system_to_one_line(HCmI) bGrB, hlel = nPrm return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OoXC(Emd4, y5Cv):\n azJf = Emd4.get_host(y5Cv)\n NtEF = Emd4.get_username(y5Cv)\n RDp6 = Emd4.get_repo_name(y5Cv)\n U34P = f'{azJf}{NtEF}{RDp6}'.encode('utf-8')\n return HBct.sha256(U34P).hexdigest().upper()", "def L6HI(YKHO):\n with YKHO:\n HCmI = TkY7('git rev-parse HEAD', YKHO.tar...
[ "0.76145756", "0.72099274", "0.70863605", "0.70863605", "0.6998322", "0.6878604", "0.68559515", "0.68368053", "0.6833896", "0.6777702", "0.67325974", "0.67005306", "0.6638735", "0.6565161", "0.6492735", "0.6476624", "0.6458123", "0.6439882", "0.64213854", "0.6403339", "0.6350...
0.7147754
2
Initialize Indeed with publisher ID and version of API
def FIMM(YKHO, nu3W, DpZH=2): YKHO.publisher = nu3W YKHO.version = DpZH YKHO.format_results = 'json' YKHO.url = 'http://api.indeed.com/ads/apisearch?publisher={publisher}&v={version}&format={format_results}&callback={callback}&q={query}&l={location}&sort={sort}&radius={radius}&st={site_type}&jt={job_typ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, *, id: Optional[pulumi.Input[str]]=None, Ltg2: Optional[pulumi.Input[str]]=None, nu3W: Optional[pulumi.Input[str]]=None, PXIM: Optional[pulumi.Input[str]]=None, DpZH: Optional[pulumi.Input[str]]=None):\n if id is not None:\n qe4Y.set(Ro_8, 'id', id)\n if Ltg2 is not None:\n qe4Y....
[ "0.65969026", "0.65190846", "0.6446772", "0.6446772", "0.64298093", "0.6419882", "0.6396915", "0.6330631", "0.6286263", "0.62597185", "0.6252365", "0.6228868", "0.6224618", "0.6201508", "0.6201508", "0.6201508", "0.6201508", "0.6201508", "0.6201508", "0.6161551", "0.6153807",...
0.62024766
13
Return a grid with coordinates in 3D physical space for `img`.
def s2X4(VXjJ): ROpF, rnv5 = (VXjJ.shape[:3], VXjJ.affine) jNOo = oyIN.array(oyIN.meshgrid(*(range(YRbF) for YRbF in ROpF), indexing='ij')) jNOo = oyIN.rollaxis(jNOo, 0, len(ROpF) + 1) X8W2 = j4hm.affines.apply_affine(rnv5, jNOo) return X8W2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XkZJ(no3c: Tuple) -> ht2j.Tensor:\n CAzz = ht2j.linspace(-1, 1, no3c[0])\n Jd40 = ht2j.linspace(1, -1, no3c[1])\n nJ9F, o4D3 = ht2j.meshgrid(CAzz, Jd40)\n return _MC5(nJ9F, o4D3)", "def cVTV(jHsn, pvd3, K4sN):\n WKvO = oyIN.arange(0, jHsn, 1)\n LVAh = oyIN.arange(0, pvd3, 1)\n a1PO = oyI...
[ "0.6954772", "0.6934858", "0.6875284", "0.66946", "0.66172045", "0.6546946", "0.65066993", "0.65021116", "0.6466083", "0.6415895", "0.64085406", "0.6402119", "0.6370465", "0.63280374", "0.63171744", "0.6285751", "0.62771153", "0.61834604", "0.61405337", "0.6119674", "0.611824...
0.0
-1
Return True if x is an odd number.
def kYZq(WKvO): if WKvO - int(WKvO) != 0: return False if int(WKvO) % 2 == 1: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kYZq(WKvO):\n if WKvO % 2 != 0:\n return True\n return False", "def kYZq(WKvO):\n return WKvO % 2", "def XHAY(WKvO):\n return WKvO % 2 != 0", "def C_CQ(WKvO):\n return not int(WKvO) % 2 == 0", "def C_CQ(WKvO):\n if WKvO % 2 != 0:\n return True\n else:\n return ...
[ "0.9091089", "0.88560903", "0.87881094", "0.8768844", "0.86424994", "0.8425716", "0.8412462", "0.84066683", "0.8388774", "0.83696216", "0.82003665", "0.8187933", "0.8145754", "0.8088732", "0.8085875", "0.80675524", "0.79670614", "0.79670614", "0.79537743", "0.7947308", "0.794...
0.8851652
2
Return the inverse noise covariance matrix as operator
def JWz6(YKHO): return YKHO[0].get_invntt_operator()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fr7K(YKHO):\n return oyIN.linalg.inv(YKHO.cov)", "def wJ2d(YKHO) -> oyIN.ndarray:\n GvHN = YKHO.covariance_matrix()\n return Zxt2.linalg.inv(GvHN + 1e-06 * oyIN.eye(GvHN.shape[0]))", "def sigd(YKHO):\n G9jH.info('Attempting to Invert Matrix... ')\n try:\n return oyIN.linalg.inv(YKHO.r...
[ "0.7575502", "0.7575395", "0.71892667", "0.675902", "0.671958", "0.6609888", "0.6525144", "0.65047807", "0.64769524", "0.63851887", "0.6366838", "0.63619727", "0.6357806", "0.6357206", "0.6333765", "0.6322488", "0.63063323", "0.6295562", "0.62886184", "0.626601", "0.6245818",...
0.0
-1
Frees resources associated with this context.
def aBe0(YKHO): if YKHO._context and YKHO._context == kbdk.OSMesaGetCurrentContext(): kbdk.OSMesaMakeCurrent(None, None, ShTw.GL_FLOAT, 0, 0) kbdk.OSMesaDestroyContext(YKHO._context) YKHO._buffer = None YKHO._context = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xSHO(YKHO):\n YKHO.context.destroy()", "def mTtn(YKHO):\n if YKHO.__ctx is not None:\n _e0h.nk_free(YKHO.__ctx)\n YKHO.__ctx = None", "def duMC(YKHO):\n del YKHO", "def duMC(YKHO):\n try:\n YKHO.__session.clear()\n except:\n pass\n YKHO.__session = None\n ...
[ "0.7895276", "0.7718918", "0.7698137", "0.74646133", "0.745225", "0.7393427", "0.72978", "0.72938335", "0.72938335", "0.72919464", "0.728506", "0.7265482", "0.7265482", "0.7255792", "0.72199464", "0.7211464", "0.7204584", "0.7198075", "0.7186163", "0.7184657", "0.71551466", ...
0.0
-1
Concatenate strings in args together.
def P2jN(*qIxc): OYqV = '' for GIN8 in qIxc: OYqV += GIN8 return OYqV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENFq(*qIxc):\n try:\n return ''.join(qIxc)\n except TypeError:\n return ''.join(eNCK.from_iterable(qIxc))", "def AGzf(*qIxc):\n return ' '.join(['--arg={}'.format(d7pR) for d7pR in qIxc])", "def MPiJ(OaeV, *l5Ny):\n Aofo = ''\n for d7pR in l5Ny:\n Aofo += x7vA.to_string(...
[ "0.8066117", "0.7855089", "0.7828864", "0.75996447", "0.7584731", "0.7516063", "0.7255467", "0.71910673", "0.71572274", "0.71438026", "0.7137111", "0.7090498", "0.69882405", "0.69824994", "0.69399804", "0.6914355", "0.684653", "0.6821927", "0.6785115", "0.6778077", "0.6749700...
0.0
-1
Return the logger for a given class
def V05u(PWg9: Type) -> Few0: return G9jH.getLogger(jcqy(PWg9))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I45O(Emd4):\n import logging\n return logging.getLogger('{}.{}'.format('.'.join(Emd4.__module__.split('.', 2)[:2]), Emd4.__name__))", "def fZx2(Emd4):\n return G9jH.getLogger('.'.join([Emd4.__module__, Emd4.__name__]))", "def fZx2(_2sc: str) -> ImMB:\n bo34 = G9jH.getLogger(_2sc)\n bo34.setL...
[ "0.8117017", "0.80414915", "0.7829402", "0.7659647", "0.7596914", "0.730605", "0.7230241", "0.72274697", "0.7129746", "0.71110517", "0.7101344", "0.70591205", "0.70526224", "0.7042138", "0.7017783", "0.691827", "0.691444", "0.6908443", "0.68923616", "0.6833593", "0.68232316",...
0.90037143
0
Return the logger configured for the class
def bo34(YKHO) -> G9jH.Logger: return YKHO.__logger__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2(Emd4):\n return G9jH.getLogger('.'.join([Emd4.__module__, Emd4.__name__]))", "def V05u(PWg9: Type) -> Few0:\n return G9jH.getLogger(jcqy(PWg9))", "def I45O(Emd4):\n import logging\n return logging.getLogger('{}.{}'.format('.'.join(Emd4.__module__.split('.', 2)[:2]), Emd4.__name__))", "de...
[ "0.88049036", "0.8378145", "0.8320861", "0.81693834", "0.81693834", "0.81414187", "0.8112165", "0.8057445", "0.80489427", "0.8014702", "0.8013401", "0.7993726", "0.7966296", "0.7883189", "0.78823376", "0.7862751", "0.78071976", "0.7793598", "0.7792951", "0.7780127", "0.773135...
0.79346484
13
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0) Ylbp.append(R2Dg.mul_(100....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003211", "0.79748034", "0.79735845", "0.7941222", "0.78642285", "0.7803938", "0.7707779", "0.7621563", "0.7593218", "0.75612706", "0.752028", "0.7430132", "0.74122673", "0.7375894", "0.7374447", "0.7321427", "0.7254542", "0.7236769", "0.72279894", "0.7204469", "0.7137302"...
0.0
-1
Test fusion case of conv2d
def wMwI(): def h3Aq(xkmR): WKvO = Hxoc.var('x', shape=xkmR) WKvO = Hxoc.add(WKvO, Hxoc.const(1, 'float32')) LVAh = Hxoc.nn.conv2d(WKvO, Hxoc.var('w1'), kernel_size=(3, 3), padding=(1, 1), channels=16) si3g = Hxoc.add(Hxoc.const(1, 'float32'), LVAh) LVAh = Hxoc.add(LVAh, si3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Or0x(g4y1, o4Jx):\n zarN = g4y1.op.attrs['addr_type'] if 'addr_type' in g4y1.op.attrs else 0\n i30y = o4Jx['addr_type'] if 'addr_type' in o4Jx else 0\n sHEF = g4y1.op.attrs['valid_shape'] if 'valid_shape' in g4y1.op.attrs else ()\n yGbY = g4y1.op.attrs['slice_offset'] if 'slice_offset' in g4y1.op.a...
[ "0.69029295", "0.6702924", "0.665471", "0.6598554", "0.65177196", "0.64619476", "0.64067024", "0.63613474", "0.6344644", "0.6280517", "0.62459373", "0.6214273", "0.6183321", "0.61659265", "0.6131579", "0.61180717", "0.61119825", "0.61087555", "0.61067456", "0.6101929", "0.605...
0.58187085
44
Test the constraint of number of nodes in op fusion.
def kchu(): def h3Aq(exwG): WKvO = Hxoc.var('x', shape=(10, 20)) LVAh = WKvO for YRbF in range(exwG): LVAh = Hxoc.exp(LVAh) return Hxoc.Function([WKvO], LVAh) def aEqx(exwG, t_5v): WKvO = Hxoc.var('p', shape=(10, 20)) LVAh = WKvO for YRbF in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def psPJ(YKHO) -> int:\n return 0", "def Nm1G(YKHO, xnqM):\n return xnqM.results.problem.number_of_constraints", "def OtzW(YKHO) -> int:\n pass", "def rFf1(YKHO):\n return YKHO._num_constraints", "def rFf1(YKHO):\n return YKHO._num_constraints", "def tIln(YKHO):\n return 0", "def hWdV...
[ "0.63257515", "0.6083895", "0.60808104", "0.60548925", "0.60548925", "0.60409296", "0.6033099", "0.59790546", "0.5864996", "0.58562744", "0.58357245", "0.58341414", "0.5806374", "0.5803689", "0.57856476", "0.57389855", "0.57005453", "0.56978774", "0.56978774", "0.5696358", "0...
0.0
-1
Filter out (remove) horizontal or vertical stripes in 2D image data.
def iOOQ(_x6k, H4hf=True): jzju = oyIN.fft.fftshift(oyIN.fft.fft2(_x6k.copy())) if H4hf: g0Hx = jzju.shape[1] / 2 jzju[:, g0Hx:g0Hx + 1] = 1.0 else: dlau = jzju.shape[0] / 2 jzju[dlau:dlau + 1, :] = 1.0 V5_Q = oyIN.fft.ifft2(oyIN.fft.ifftshift(jzju)) V5_Q = V5_Q.real ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IEoQ(KMN6, OAaz):\n MKlR, yzQ0 = KMN6.shape\n Za3w = 0.05 * yzQ0\n WZcn = oyIN.ones((OAaz, OAaz), oyIN.uint8)\n sK1C = XC5k.morphologyEx(KMN6, XC5k.MORPH_CLOSE, WZcn)\n jth9 = XC5k.bitwise_not(sK1C)\n kHrt(jth9, [[0, 0], [Za3w, 0], [0, Za3w]])\n kHrt(jth9, [[0, MKlR], [Za3w, MKlR], [0, MKl...
[ "0.64120764", "0.6277198", "0.62757885", "0.62174", "0.61759007", "0.6158406", "0.61369514", "0.6119906", "0.6119183", "0.6070304", "0.60270876", "0.59892267", "0.5962566", "0.5935634", "0.59342235", "0.5930745", "0.5919323", "0.5907723", "0.5902785", "0.5890796", "0.58460414...
0.7273203
0
Handle the 'about' page.
def vsuQ(YKHO): return dict(page='about')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ(QePW):\n return SGJU('about.html')", "def vsuQ():\n bo34.info('User visited the about page.')\n return TvZl('about.html')", "def vsuQ(QePW):\n return SGJU('about.html')", "def vsuQ(QePW):\n QpfX = BfDw.get_global_context(QePW)\n QpfX.update({'current_page': 'about'})\n return _1...
[ "0.81128085", "0.8069715", "0.7896757", "0.7847208", "0.7802801", "0.7802769", "0.77112687", "0.7682211", "0.76629233", "0.76313215", "0.7618516", "0.7588649", "0.75805295", "0.7564015", "0.75508213", "0.75400686", "0.75268406", "0.7522788", "0.752035", "0.74897385", "0.74663...
0.0
-1
Redirect the user to the initially requested page on logout and say goodbye as well.
def vQk1(YKHO, bFHT=bD7m('/')): Dwep(bGrB('We hope to see you soon!')) vKnz(bFHT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vQk1(YKHO, bFHT=bD7m('/')):\n Dwep(bGrB('Hasta luego!'))\n vKnz('/')", "def vQk1(YKHO, bFHT=DiYJ('/')):\n Dwep(bGrB('We hope to see you soon!'))\n vKnz(bFHT)", "def erK4():\n wJ7q()\n Dwep('You were logged out')\n return vKnz(QePW.args.get('next', '/'))", "def erK4():\n oLi7()\n ...
[ "0.78040683", "0.7765657", "0.75859034", "0.7582246", "0.7573667", "0.75674796", "0.7541069", "0.74868745", "0.7466652", "0.7438297", "0.7437654", "0.74304247", "0.7424402", "0.7423399", "0.7411562", "0.73796093", "0.73693484", "0.73679143", "0.73633397", "0.7357884", "0.7354...
0.7784282
1
Get the value for this key if exists.
def neBz(YKHO, H5ew): if H5ew in YKHO: return YKHO[H5ew] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, H5ew):\n return YKHO[H5ew]", "def Zmkp(YKHO, H5ew):\n return YKHO[H5ew]", "def NMoC(YKHO, H5ew):\n return YKHO[H5ew] if H5ew in YKHO else None", "def NMoC(YKHO, H5ew):\n try:\n return YKHO[H5ew]\n except KeyError:\n return None", "def xdKy(YKHO, H5ew):\n raise...
[ "0.7992069", "0.7992069", "0.79779965", "0.78335434", "0.7709448", "0.76977587", "0.76848775", "0.7636708", "0.76265776", "0.7611464", "0.7593321", "0.75904584", "0.7573949", "0.7543561", "0.7539189", "0.7491621", "0.7482698", "0.74745816", "0.7463116", "0.7430859", "0.741561...
0.6998663
90
Get a list of values for this key.
def c2KQ(YKHO, H5ew): YEnM = YKHO.find(H5ew) if YEnM is None: YEnM = list() if isinstance(YEnM, list): return YEnM return [YEnM]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hkxX(YKHO):\n with YKHO._iterall(False):\n baOo = YKHO.get\n return [baOo(H5ew) for H5ew in YKHO]", "def hkxX(YKHO):\n yv6U = []\n for H5ew in YKHO:\n yv6U.append(YKHO[H5ew])\n return yv6U", "def hkxX(YKHO):\n hkxX = []\n for H5ew in YKHO.keys():\n hkxX.append(...
[ "0.8495862", "0.84577125", "0.8417967", "0.82734036", "0.82179254", "0.8199152", "0.8141136", "0.8086028", "0.80728894", "0.80590457", "0.80349827", "0.80178463", "0.7923133", "0.7923104", "0.7918104", "0.7918104", "0.78781575", "0.78654873", "0.78597623", "0.7851928", "0.782...
0.0
-1
img must be an array of np.float_
def eGi5(VXjJ, QVJq, X5D2, YDNo): lWPh = QGB_(VXjJ, VXjJ, oyIN.arange(QVJq, X5D2), 5) svPB = lWPh.shape[-1] EcVT, fuBA = oyIN.mgrid[:svPB, :svPB] cAlv = YDNo * oyIN.float_(oyIN.abs(EcVT - fuBA)) rlnY = z0IH.aexpansion_grid(lWPh, cAlv, 3) return rlnY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iL2j(VXjJ: np.ndarray) -> oyIN.ndarray:\n Ieo3 = VXjJ.dtype\n VXjJ = VXjJ.astype(oyIN.float32)\n if Ieo3 == oyIN.float32:\n pass\n elif Ieo3 == oyIN.uint8:\n VXjJ /= 255.0\n else:\n raise TypeError(f'The img type should be np.float32 or np.uint8, but got {Ieo3}')\n return...
[ "0.69442314", "0.67844385", "0.6654573", "0.6653718", "0.6607187", "0.6464183", "0.64519924", "0.64047664", "0.63845104", "0.6360493", "0.6272391", "0.620615", "0.6186084", "0.6149331", "0.612696", "0.6100889", "0.6093444", "0.6072269", "0.606534", "0.6048444", "0.60460234", ...
0.0
-1
Converts a number into bytes, distinguishing its magnitude.
def miEm(zNig): naF9 = 2 ** 10 exwG = 0 S5_F = {0: 'B', 1: 'KB', 2: 'MB', 3: 'GB', 4: 'TB'} while zNig > naF9: zNig /= naF9 exwG += 1 return str(round(zNig, 2)) + ' ' + S5_F[exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jaYO(mLGw):\n v7uq = b''\n v7uq += bytes(chr(255 & mLGw >> 24))\n v7uq += bytes(chr(255 & mLGw >> 16))\n v7uq += bytes(chr(255 & mLGw >> 8))\n v7uq += bytes(chr(255 & mLGw >> 0))\n return v7uq", "def jaYO(mLGw):\n v7uq = b''\n v7uq += bytes(chr(255 & mLGw >> 24))\n v7uq += bytes(ch...
[ "0.74289024", "0.74289024", "0.7399846", "0.73344755", "0.72169566", "0.7028701", "0.70173156", "0.694802", "0.69371927", "0.6819512", "0.67703867", "0.6768866", "0.67632437", "0.6760775", "0.6760775", "0.6760775", "0.6760775", "0.6760775", "0.6760775", "0.6723401", "0.671726...
0.0
-1
Plot Keras model loss.
def co5b(R4CY): import matplotlib.pyplot as QrM1 QrM1.figure(figsize=(10, 10)) QrM1.plot(R4CY.history['loss']) QrM1.plot(R4CY.history['val_loss']) QrM1.title('model loss') QrM1.ylabel('loss') QrM1.xlabel('epoch') QrM1.legend(['train', 'val'], loc='upper right') QrM1.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mBbd(YKHO):\n QrM1.plot(YKHO.model.history.history['loss'])\n QrM1.plot(YKHO.model.history.history['val_loss'])\n QrM1.title('Model loss')\n QrM1.ylabel('Loss')\n QrM1.xlabel('Epoch')\n QrM1.legend(['Train', 'Test'], loc='upper right')\n return QrM1.show()", "def mBbd(YKHO):\n QrM1.pl...
[ "0.7899261", "0.7884856", "0.7800987", "0.77422804", "0.76538295", "0.76327777", "0.7590481", "0.75663346", "0.75339824", "0.75339323", "0.7511871", "0.7424021", "0.74169403", "0.73776174", "0.7375791", "0.7372608", "0.7362075", "0.7349849", "0.73445517", "0.73359346", "0.730...
0.6952515
34
Plot both HV and HH channels for one image.
def DgiF(VXjJ): import matplotlib.pyplot as QrM1 import matplotlib.cm as Bcwd LZpg = QrM1.figure(figsize=(12, 5)) aNZO = QrM1.subplot(1, 2, 1) aNZO.imshow(VXjJ[:, :, 0], cmap=Bcwd.inferno) aNZO.set_title('Band 1') aNZO = QrM1.subplot(1, 2, 2) Xn71 = aNZO.imshow(VXjJ[:, :, 1], cmap=Bcwd.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TpDY(MKlR, a1PO):\n YUNn = -1 * oyIN.sin(a1PO)\n YhSR = oyIN.cos(a1PO)\n QrM1.plot(a1PO, MKlR[0, :], color='k', label='h vs x')\n QrM1.plot(a1PO, MKlR[1, :], color='pink', label='h vs y')\n QrM1.plot(a1PO, YUNn, 'r--', color='orange', label='-sinx')\n QrM1.plot(a1PO, YhSR, 'r--', color='yello...
[ "0.6527452", "0.6201315", "0.608179", "0.6074811", "0.60667956", "0.60465133", "0.6037763", "0.6027022", "0.5984107", "0.5973904", "0.5950519", "0.5943555", "0.591959", "0.59130734", "0.5897115", "0.5893841", "0.5826542", "0.5793175", "0.5784539", "0.5745962", "0.5742822", ...
0.0
-1
normalize point cloud in range L
def IWrg(IhAk): Et7w = IhAk.mean(axis=0) IhAk = IhAk - Et7w qLOE = oyIN.max(oyIN.sqrt(oyIN.sum(abs(IhAk ** 2), axis=-1))) IhAk = IhAk / qLOE return IhAk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO):\n s0tr = []\n AcNK = oyIN.asarray(YKHO.pcd.points)\n k1IR = oyIN.amin(AcNK[:][:, 2])\n SaZ0 = oyIN.amax(AcNK[:][:, 2])\n for AU8u in oyIN.asarray(YKHO.pcd.points):\n AU8u[2] = (AU8u[2] - k1IR) / (SaZ0 - k1IR)\n s0tr.append(AU8u)\n s0tr = oyIN.array(s0tr)\n return ...
[ "0.74334973", "0.67371225", "0.6734835", "0.66524744", "0.66407955", "0.6570648", "0.65594137", "0.654312", "0.6445289", "0.6432476", "0.6418666", "0.6407152", "0.639891", "0.639216", "0.6390169", "0.63686335", "0.6365225", "0.63549197", "0.6351179", "0.63215554", "0.62804633...
0.0
-1
Randomly jitter points. jittering is per point.
def tj8F(IhAk, WTkW=0.01, vJPk=0.05): WLXc = oyIN.clip(WTkW * oyIN.random.randn(*IhAk.shape), -1 * vJPk, vJPk) WLXc += IhAk return WLXc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHg_(YKHO, aM8h=1.0):\n for YFMp in YKHO.stars:\n YFMp.x += tuKI.uniform(-0.1, 0.1) * aM8h\n YFMp.y += tuKI.uniform(-0.1, 0.1) * aM8h", "def bHg_(WKvO, Mkmy=0.1):\n return WKvO + oyIN.random.rand(*WKvO.shape) * oyIN.std(WKvO)[None, :] * Mkmy", "def bHg_(VOlW, aM8h):\n return VOlW + V...
[ "0.75472695", "0.7410611", "0.7287109", "0.694834", "0.6911661", "0.68838114", "0.68357635", "0.6556249", "0.6437521", "0.63828707", "0.63305485", "0.6319276", "0.6313966", "0.6290827", "0.61949134", "0.61942804", "0.619288", "0.6158329", "0.6111379", "0.6110583", "0.6109834"...
0.5822603
50
Normalizes circle center by rounding it's coordinates
def r7lU(Z9rn): if Z9rn.contains_infinity: return None return complex(int(Z9rn.center.real * 100000) / 100000, int(Z9rn.center.imag * 100000) / 100000)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgjH(YKHO):\n Ty9i = Pusg(lambda jzdc, Fg_i: jzdc + Fg_i, YKHO.pnts)\n return 1.0 / len(YKHO.pnts) * Ty9i", "def q_px(YKHO):\n LTIa = [(a1PO.ra, a1PO.decl) for a1PO in YKHO.targets]\n WKvO, LVAh, Mkmy = m2W8.make_circle(LTIa)\n assert Mkmy < nCRS\n YKHO.ra, YKHO.decl = (WKvO, LVAh)", "def...
[ "0.71405154", "0.6704253", "0.6579461", "0.6570633", "0.6515733", "0.6502657", "0.6499086", "0.6485015", "0.6468161", "0.6444082", "0.640766", "0.639262", "0.63455766", "0.63269174", "0.63245404", "0.63027084", "0.62978226", "0.627711", "0.6269947", "0.62603146", "0.6257714",...
0.6920498
1
See if the environment already exists by checking output of `conda env list`.
def IqGg(mWFP): return any(map(lambda WKvO: mWFP in WKvO, H4yH.check_output(['conda', 'env', 'list'], universal_newlines=True).splitlines()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vtfo(sEAN):\n return True", "def GfdN():\n return xc3U('conda')", "def vtfo(sEAN):\n return 1", "def UPjN(YKHO, i2I_):\n return YKHO.load_environment(i2I_) is not None", "def HmIb():\n QUTX = Yn3K.getoutput('conda env list').split('\\n')\n QUTX = [sEAN.split()[0] for sEAN in QUTX if n...
[ "0.74618924", "0.73491526", "0.7240679", "0.710217", "0.7074513", "0.6991652", "0.6858955", "0.6796298", "0.6760704", "0.6691845", "0.66705537", "0.6665134", "0.6610258", "0.65947145", "0.6589865", "0.65733176", "0.65709746", "0.6515684", "0.65022236", "0.64785874", "0.647653...
0.8431781
0
Remove environment if it exists and build a new one.
def HmIb(mWFP): if IqGg(mWFP): print(SxOo + 'conda env ' + mWFP + ' exists, removing and rebuilding based on ' + vAyU + _WxY) H4yH.check_call(['conda', 'remove', '-n', mWFP, '--all']) H4yH.check_call(['conda', 'create', '-n', mWFP, '--file', vAyU, '-c', 'bioconda', '-c', 'r', 'python=3', '-y'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cy9P(ruM1):\n mWFP = ruM1['name']\n sEAN = ruM1['env']\n o_jL = ruM1['env_dir']\n B360 = ruM1['remote_dir']\n assert o_jL.exists()\n assert B360.exists()\n sEAN.remove(yes=True)\n Twf1 = jI6X()\n assert not B360.exists()\n assert not o_jL.exists()\n assert mWFP not in Twf1", ...
[ "0.7040922", "0.66951853", "0.66951853", "0.64933276", "0.6490626", "0.64589536", "0.64493", "0.63869876", "0.6380721", "0.63377285", "0.6301081", "0.62439245", "0.6243467", "0.6193433", "0.6190368", "0.6179706", "0.61321896", "0.61223334", "0.6104511", "0.60536623", "0.60155...
0.59439623
24
Returns the datastore Key for the associated Video. Since ReferenceProperty values do an RPC to resolve the actual value from the database, and it's often useful to just lookup the Key of the Video associated with this instance without that DB hit, clients can use this property instead.
def P4E6(YKHO): return aakU.video.get_value_for_datastore(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mexE(YKHO):\n return spHt.get(YKHO.key) if isinstance(YKHO.key, spHt.ObjectRef) else YKHO.key", "def w0HV(YKHO, KAOR):\n return YKHO.identity_key(YKHO.identity(KAOR))", "def mexE(YKHO):\n return YKHO.key", "def mexE(YKHO):\n return YKHO.key", "def mexE(YKHO):\n return YKHO.key", "def m...
[ "0.72018355", "0.67500913", "0.6748084", "0.6748084", "0.6748084", "0.6748084", "0.6717508", "0.6717508", "0.6717508", "0.6717508", "0.67163503", "0.6703381", "0.6701797", "0.6701172", "0.66647273", "0.66482866", "0.6592687", "0.6584151", "0.6584151", "0.65635115", "0.6560591...
0.7873902
0
return the first index of item in array or None if item is not found
def TrX4(qw7D, ZfUD): return Ngua(qw7D, ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VkCx(qw7D: np.ndarray, ZfUD: typing.Any) -> laHg.Optional[laHg.Tuple[int, ...]]:\n for or8S, wEf2 in oyIN.ndenumerate(qw7D):\n if wEf2 == ZfUD:\n return or8S\n return None", "def Ajkz(qw7D, TgwQ):\n for YRbF in range(len(qw7D)):\n if qw7D[YRbF] == TgwQ:\n return Y...
[ "0.8048681", "0.7875193", "0.7518408", "0.74782896", "0.7289396", "0.7263328", "0.7197945", "0.71189326", "0.71050483", "0.70635265", "0.7059173", "0.70357877", "0.7006278", "0.695433", "0.69319373", "0.68991", "0.6885417", "0.6859183", "0.6855807", "0.68322474", "0.6822718",...
0.0
-1
return the index of item in sorted array or None if item is not found
def jUbz(qw7D, ZfUD): return aHV3(qw7D, ZfUD, len(qw7D) // 2, len(qw7D) // 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ajkz(qw7D, TgwQ):\n for YRbF in range(len(qw7D)):\n if qw7D[YRbF] == TgwQ:\n return YRbF\n return None", "def neBz(YKHO, ZfUD):\n for YRbF in range(YKHO.length):\n if YKHO.A[YRbF] == ZfUD:\n return YRbF\n return -1", "def TrX4(ezWE, H5ew):\n for YRbF in ra...
[ "0.76209766", "0.7422824", "0.7310781", "0.7283297", "0.72279596", "0.7105512", "0.70962244", "0.7088821", "0.7083286", "0.7060842", "0.7037914", "0.7014185", "0.70138156", "0.7011664", "0.7009011", "0.699522", "0.69779885", "0.6936276", "0.69273305", "0.6919562", "0.6883721"...
0.0
-1
Calculate loss = reconstruction loss + KL loss for each data in minibatch
def fDxD(Y8eF, aMgO): V9Qw = nMvt.sum(nMvt.binary_crossentropy(aMgO, Y8eF), axis=1) bISY = 0.5 * nMvt.sum(nMvt.exp(SgQ6) + nMvt.square(yGTL) - 1.0 - SgQ6, axis=1) return V9Qw + bISY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N77f(g4y1, o4Jx):\n zEa3 = nMvt.backend.sum(nMvt.backend.binary_crossentropy(g4y1, o4Jx, from_logits=False), axis=1)\n zIzJ = 1 + bKZA - nMvt.backend.square(y906) - nMvt.backend.exp(bKZA)\n zIzJ = nMvt.backend.sum(zIzJ, axis=-1)\n zIzJ = zIzJ * -0.5\n zIzJ = nMvt.backend.mean(zIzJ)\n dxS6 = z...
[ "0.68080866", "0.67895806", "0.67804796", "0.6778415", "0.668226", "0.6681888", "0.65403837", "0.6462024", "0.6404851", "0.63963383", "0.63902074", "0.6345755", "0.6333831", "0.62950706", "0.6293789", "0.6286626", "0.6279194", "0.62790704", "0.62678176", "0.6263891", "0.62616...
0.0
-1
Normalizing function. Returns a value between 0 and 1.
def m1Hg(YKHO, WKvO): return 1 / (1 * oyIN.exp(-WKvO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(WKvO):\n return WKvO / CkYf(WKvO)", "def kwsU(WKvO):\n if WKvO.max() == WKvO.min():\n return WKvO\n else:\n return (WKvO - WKvO.min()) / (WKvO.max() - WKvO.min())", "def NkkI(m2Zb):\n if oyIN.mean(m2Zb) == 0:\n return oyIN.zeros(len(m2Zb))\n else:\n return (m...
[ "0.80696", "0.7873973", "0.77659607", "0.76992947", "0.7683571", "0.7617264", "0.76102716", "0.75843203", "0.7461552", "0.7459512", "0.7438506", "0.74281865", "0.74244165", "0.7416374", "0.7407626", "0.73813754", "0.7359817", "0.7355135", "0.73545307", "0.7332778", "0.7332455...
0.0
-1
POWERLAW Powerlaw function and derivatives. f = powerlaw(R,L) is the powerlaw function with length scale parameter L evaluated at R. The length scale L is defined here as L = sqrt(1/f''(0)). f,df,ddf = powerlaw(R,L,extra=True) also returns df = (1/r) df/dr and ddf = r d/dr (1/r) df/dr = r d/dr df. Based on Matlab scrip...
def cgIz(Mkmy, aPd6, dDGN=False): eHNT = 1.0 / (1.0 + 0.5 * (Mkmy / aPd6) ** 2) if dDGN: jQ3Z = -1 / aPd6 ** 2 * eHNT ** 2 velP = -2 * (Mkmy / aPd6) ** 2 * (eHNT * jQ3Z) return (eHNT, jQ3Z, velP) else: return eHNT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYhY(Tz24, s5oV, jzdc, XP5J):\n return 1.0 - jzdc + jzdc * (Tz24 / s5oV) ** XP5J", "def M6Wy(Xw2j, H2v2, JUry, m1NQ, Cwt5, pKiF=0):\n return oyIN.abs(Xw2j / JUry - ((H2v2 - pKiF) / (m1NQ - pKiF)) ** Cwt5)", "def naF9(vC9B, Os_7=0.1, Cwt5=2.0, UqYS=-2.0, F4_u=2):\n F4_u = int(F4_u)\n if hasattr(...
[ "0.61554635", "0.6098656", "0.60782355", "0.6029002", "0.5938284", "0.5830151", "0.57336193", "0.57069826", "0.5671959", "0.56623304", "0.56583667", "0.56547135", "0.56528884", "0.56247073", "0.5599364", "0.5595745", "0.5585653", "0.5584974", "0.55721444", "0.55565244", "0.55...
0.8403929
0
CSPLINE Compactly supported spline function and derivatives. f = cspline(R,L) is the compactly supported spline function with length scale parameter L evaluated at R. The length scale L is defined here as L = sqrt(1/f''(0)). f,df,ddf = cspline(R,L,extra=True) also returns df = (1/r) df/dr and ddf = r d/dr (1/r) df/dr =...
def bNHO(Mkmy, aPd6, dDGN=False): KCHu = Mkmy.shape Z9rn = PZyS(10.0 / 3.0) * aPd6 epBp = Mkmy.ravel() / Z9rn exwG = Mkmy.size if dDGN is False: eHNT = VNqG(exwG) YRbF = epBp <= 1.0 eHNT[YRbF] = -1.0 / 4.0 * epBp[YRbF] ** 5 + 1.0 / 2.0 * epBp[YRbF] ** 4 + 5.0 / 8.0 * epBp[YRb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jtd2(CAzz, Jd40):\n yddq = j_Fc(CAzz, Jd40, bc_type='natural')\n return yddq", "def wG8f(YKHO, epBp: Tensor) -> llWB:\n vuvg = YKHO.F\n OkMu, Dddx = (YKHO.qk_y, YKHO.qk_y_plus)\n VjhS, JUCX = (YKHO.qk_x, YKHO.qk_x_plus)\n Nk8J, GNWh, vVBP = (YKHO.sk_x, YKHO.delta_sk_x, YKHO.delta_sk_y)\n ...
[ "0.6198978", "0.6171902", "0.61097586", "0.5955182", "0.5715719", "0.56898755", "0.56352496", "0.55847585", "0.5569257", "0.5558139", "0.53832287", "0.5367047", "0.53553206", "0.53263706", "0.52831995", "0.52794963", "0.5254915", "0.5241079", "0.523291", "0.5227523", "0.51866...
0.7534383
0
Human freindly representation of the object
def zAg0(YKHO): return YKHO.email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.object_repr", "def zAg0(YKHO):\n return CgYo.pformat(YKHO.asdict())", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def wHJl(YKHO):\n return str(YKHO.__dict__)",...
[ "0.7741353", "0.7607148", "0.753097", "0.753097", "0.753097", "0.753097", "0.753097", "0.753097", "0.7524163", "0.7518735", "0.7500079", "0.74968", "0.7471952", "0.7471952", "0.7454294", "0.7454294", "0.7434638", "0.7429894", "0.74231625", "0.73921615", "0.73549795", "0.735...
0.0
-1
Tests the create_artifact function with a success scenario.
def nDZ8(): fTdr = {'CopyValueFrom': 'param_from', 'CopyValueTo': 'param_to'} tYcn = 'somefile.txt' jSQo = FJ87(tYcn, fTdr) assert Hy7s.path.exists(jSQo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GbTZ(YKHO):\n U9hK = gbPf.mkdtemp()\n try:\n wc14 = G_if.Artifacts(U9hK, 'test_name', 'test_basename', 0)\n with wc14.CreateArtifact('artifact_name') as eHNT:\n eHNT.write(b'contents')\n with YKHO.assertRaises(ValueError):\n with wc14.CreateArtifact('artifact_na...
[ "0.7445355", "0.72820485", "0.68811166", "0.68714505", "0.68392265", "0.6755011", "0.67488843", "0.6651926", "0.66408294", "0.6411179", "0.6361793", "0.6331469", "0.631458", "0.62928593", "0.6276919", "0.62039995", "0.6190411", "0.61723256", "0.6147927", "0.6094063", "0.60858...
0.79755586
0
Reads JPG bytes as RGB
def uEOY(UiEM: bytes) -> oyIN.ndarray: Xn71 = hnIv.open(xDSY.BytesIO(UiEM)) Xn71 = Xn71.convert('RGB') nPrm = oyIN.array(Xn71) assert nPrm.ndim == 3 assert nPrm.dtype == oyIN.uint8 return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uEOY(UiEM: bytes) -> oyIN.ndarray:\n from PIL import Image\n import io\n Xn71 = Image.open(io.BytesIO(UiEM))\n Xn71 = Xn71.convert('RGB')\n nPrm = oyIN.array(Xn71)\n assert nPrm.ndim == 3\n assert nPrm.dtype == oyIN.uint8\n return nPrm", "def uEOY(UiEM: bytes) -> oyIN.ndarray:\n fr...
[ "0.7187212", "0.7187212", "0.6840111", "0.67984986", "0.6793559", "0.67203134", "0.6655036", "0.6636303", "0.660968", "0.6505361", "0.6490104", "0.6471704", "0.64472663", "0.64396554", "0.6420983", "0.64177066", "0.6407945", "0.6396092", "0.6396092", "0.639572", "0.6393364", ...
0.718034
2
Save a python dictionary to JSON at the specified URI.
def ERYA(cmPJ, j8eK, MnRD=None): if Hy7s.path.exists(j8eK): S0MI.warn('File %s exists and will be overwritten.', j8eK) try: wM3v = open(j8eK, mode='w+') except IOError: Hy7s.makedirs(Hy7s.path.dirname(j8eK)) wM3v = open(j8eK, mode='w+') wM3v.writelines(qQXR.dumps(cmPJ, in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U1ai(Emd4, j8eK: str, YGFP: Dict[str, Any]) -> None:\n G9Es.write_text(j8eK, qQXR.dumps(YGFP, indent=4))", "def U1ai(fGC9, FYKK):\n with open(FYKK, 'w') as eHNT:\n eHNT.write(qQXR.dumps(fGC9))", "def xkzz(Csk6, Ux0P):\n with open(Ux0P, 'w') as ytgA:\n qQXR.dump(Csk6, ytgA)\n y...
[ "0.81450135", "0.70406246", "0.68583107", "0.68271697", "0.6732697", "0.65562254", "0.64945227", "0.6490983", "0.64629704", "0.644681", "0.64289004", "0.6398823", "0.6380048", "0.63744617", "0.6351542", "0.63317543", "0.63317543", "0.63230586", "0.6283961", "0.6262009", "0.62...
0.7577964
1
Expand a signal from shortform to longform. shortform_signal a shortform signal string. Returns a longform signal dictionary.
def k7cu(cbT9): if type(cbT9) not in [M9Gz, Pjxn]: raise TypeError('shortform signal must be a string, %s found', type(cbT9)) XGZR, DExC = cbT9.split(':') LALb = {'enables': ('satisfaction_changed', 'set_enabled'), 'disables': ('satisfaction_changed', 'set_disabled'), 'set_required': ('satisfaction_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GyDr(cll5: dict) -> dict:\n VG3a = _qLf(cll5)\n return VG3a", "def DAdq(cll5: dict) -> dict:\n h9Wc = _qLf(cll5)\n del h9Wc['human']\n del h9Wc['timestamp']\n h9Wc['num_generalized'] = 1\n return h9Wc", "def G6Ne(eJh7: str, ABDL: int=0) -> str:\n cll5 = eJh7\n cll5 = ZbWC.sub('\\...
[ "0.5657589", "0.5590142", "0.51034427", "0.50354934", "0.501862", "0.49643174", "0.47251332", "0.4723663", "0.46703672", "0.46703672", "0.4665219", "0.4660389", "0.46547502", "0.4651495", "0.46231073", "0.4610505", "0.46092972", "0.46029684", "0.46018273", "0.45976037", "0.45...
0.7955354
0
Loop through signal configuration objects (whether shortform or longform) and return a list of valid signal configuration options. signal_config_list a list of longorshortform signal configuration objects. If a shortform configuration object is in this list, it will be expanded to a longform object. If a signal configu...
def rDl0(FCPy, brOj): dfQ8 = [] for YUUp in FCPy: if type(YUUp) in [M9Gz, Pjxn]: dfQ8.append(k7cu(YUUp)) elif type(YUUp) is tjLd: if YUUp['signal_name'] not in brOj: S0MI.debug('Signal %s not in %s', YUUp['signal_name'], brOj) continue ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pNiy(YKHO):\n sFOg, lYee = type(YKHO).get_prefixes()\n sJ4s = []\n dOPC = []\n for XLMv in list(YKHO.values()):\n for MTKo in list(XLMv.data.values()):\n for y7GR in MTKo.getPossibleOptions():\n y7GR = y7GR.replace('!', '')\n for y0cW in lYee:\n ...
[ "0.5023349", "0.47606924", "0.46588883", "0.4590735", "0.45190296", "0.44730303", "0.44205323", "0.44168043", "0.44096527", "0.44038966", "0.4389283", "0.43769872", "0.43568692", "0.43398985", "0.43090236", "0.43087283", "0.42977363", "0.4294631", "0.42942756", "0.42899418", ...
0.7605603
0
Return the file location of the user's settings folder. This folder location is OSdependent.
def bwdS(): if a9EH.system() == 'Windows': B5hR = Hy7s.path.join('~', 'AppData', 'Local', 'NatCap') else: B5hR = Hy7s.path.join('~', '.natcap') fENN = Hy7s.path.expanduser(B5hR) return fENN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dOUv():\n V1yn = Hy7s.environ.get('JUPYTERLAB_SETTINGS_DIR')\n V1yn = V1yn or m9U2(pWgR()[0], 'lab', 'user-settings')\n return Hy7s.path.realpath(V1yn)", "def Lpe3() -> str:\n return VnNV", "def kf3C(YKHO):\n return YKHO._settings_filepath", "def Bp72():\n pmON = Hy7s.path.join(Hy7s.pat...
[ "0.80439293", "0.79592645", "0.78399545", "0.7836087", "0.77246046", "0.77061784", "0.7692851", "0.7678198", "0.76594067", "0.75228566", "0.74463224", "0.7390095", "0.7325619", "0.7291688", "0.72578436", "0.7189509", "0.71801126", "0.7148739", "0.7148739", "0.71466494", "0.71...
0.79914457
1
Check that the blog post is about Django.
def Bt7w(YKHO, o8Kj, JZXy): D3lj = o8Kj[JZXy] if FYrf.User.objects.filter(email=D3lj).count() > 0: raise IyFz.ValidationError(bGrB('Email is already used')) return o8Kj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yCSq(YKHO, bPBo, lbsy):\n YKHO.logger.debug('checking if new WD is a django project')", "def kzql(YKHO):\n nYIM = getattr(YKHO.portal_types, u0s7)\n YKHO.failUnless('blogentry_view' in nYIM.view_methods)", "def m4il(YKHO, QePW, tTee, YEnM):\n return tTee.action == 'retrieve' or QePW.user.is_sup...
[ "0.65454584", "0.61669105", "0.6096596", "0.6096297", "0.6058767", "0.6057322", "0.591481", "0.591481", "0.5903787", "0.5895194", "0.5854897", "0.57722604", "0.57691526", "0.57544523", "0.5748538", "0.5740223", "0.5734073", "0.57063496", "0.5681886", "0.56751835", "0.56741256...
0.0
-1
ASCIIarmor for random data. This uses a hex encoding, although we will prefer urlsafe base64 encoding for features in this module if it is available.
def oHUC(KCHu): return KCHu.encode('hex')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def grNk():\n return MRxC.hexlify(VTrb())", "def hGN5():\n yield (b'\\xff\\xd8\\xff\\xee' + rU7A(int(20000.0)))", "def YlPx() -> bytes:\n return BWvy().encode()", "def qEKU():\n geh0 = G4JS.get('http://www.asciiartfarts.com/random.cgi')\n geh0.raise_for_status()\n Ensl = geh0.text.split('<p...
[ "0.6940935", "0.68411875", "0.67461365", "0.6733849", "0.6727225", "0.66991043", "0.6694763", "0.66569924", "0.665518", "0.6627331", "0.6599351", "0.65928096", "0.65577954", "0.65299803", "0.6490856", "0.6489377", "0.64811784", "0.64801985", "0.64310116", "0.6428644", "0.6410...
0.7024241
0
Create a pseudorandom, 16character string for use in secure filenames.
def cXKg(): return Ul0g(B2KD(s4sb(64)).digest())[:16]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eTqN():\n return str(qxeD.uuid4())[:10]", "def BWvy():\n import os\n import base64\n return '.'.join((str(os.getpid()), base64.urlsafe_b64encode(os.urandom(3)).decode('US-ASCII')))", "def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]", "def nj6L():\n Aofo = Gmzq.rand_uuid()\n ...
[ "0.7692861", "0.76531744", "0.7592323", "0.7586003", "0.7566121", "0.7562136", "0.75384295", "0.7503106", "0.7497596", "0.74829155", "0.7464491", "0.74626434", "0.7456253", "0.74393946", "0.742043", "0.74103713", "0.7371695", "0.7366233", "0.73624367", "0.73624367", "0.735908...
0.6931998
68
Check if the C{path} exists.
def vtfo(YKHO): if YKHO.statinfo: return True else: YKHO.restat(False) if YKHO.statinfo: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _35x(pmON):\n if not pmON:\n return False\n else:\n return Hy7s.path.exists(pmON)", "def H4si(YKHO, pmON):\n if Hy7s.path.exists(pmON):\n return True\n else:\n return False", "def vtfo(pmON):\n return bool", "def vtfo(YKHO, pmON):\n return False", "def vtfo...
[ "0.8780404", "0.8630568", "0.8623108", "0.8597105", "0.8542475", "0.85418874", "0.8511064", "0.8496307", "0.8441515", "0.8441515", "0.8441515", "0.8398387", "0.83882904", "0.83349234", "0.8334652", "0.8323011", "0.8309303", "0.829904", "0.82816374", "0.82528627", "0.8224435",...
0.0
-1
Reads yaml file at specified path.
def M6eg(GbAs): with open(GbAs, 'r') as eHNT: fGC9 = eJb6.safe_load(eHNT.read()) return fGC9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xRMc(pmON: Union[Path, str]):\n with GkAb(pmON).open(mode='r') as ytgA:\n return f9B0(ytgA)", "def RN9d(pmON):\n with open(pmON, 'r') as wOb_:\n return eJb6.safe_load(wOb_)", "def FglH(pmON):\n pmON = tWhr(VaVH(pmON))\n with open(pmON, 'rt') as nUeQ:\n try:\n ret...
[ "0.87005174", "0.86066216", "0.85586286", "0.8488321", "0.84095126", "0.8340854", "0.8259297", "0.8234004", "0.8161041", "0.8138149", "0.8108627", "0.80999416", "0.8060134", "0.80121845", "0.7939085", "0.7935891", "0.78194326", "0.7789485", "0.7775617", "0.7773006", "0.773763...
0.70167536
89
Returns a vocabulary object and data loaders for train, dev, and test sets.
def pYAW(CTRE, baVX, X5X8, u0s6, Ep8u, wzH_, hVLt): b0j5 = HJmk() D0Gl = lCN3(baVX) print('Building Vocabulary', flush=True) ED_H = OgiS(D0Gl, b0j5) SZFh = UT3e(b0j5, ED_H, wzH_, pad=hVLt, class_labels=CTRE) ZRAy = RsfQ.gluon.data.SimpleDataset(list(map(SZFh, D0Gl))) print('Getting DataLoade...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def efap(YKHO):\n if hasattr(YKHO, '_features'):\n YKHO._trainer.create(YKHO._features)\n else:\n YKHO._vocabulary = YKHO._trainer.cluster()", "def OLsO():\n vJWw = wjbk('TR')\n fTlR = UK7Q()\n fTlR.create_vocab_dict(vJWw.data_filename)\n fTlR.extract_glove_vectors(vJWw.word_vocab...
[ "0.64591825", "0.6429096", "0.6344502", "0.6279966", "0.6221429", "0.617155", "0.6166858", "0.61626446", "0.61340475", "0.61325794", "0.6117535", "0.61170185", "0.61109436", "0.6095268", "0.6090843", "0.6088589", "0.6083806", "0.60507256", "0.6019189", "0.6015984", "0.6010998...
0.62869626
3
mean total reward over n episodes
def wkbQ(EcOR, OZkM, mM0K, _HFB=16): IsrW = list(_iMd(_HFB, map(lambda cfQG: cfQG.score.iloc[-1], G_S5(EcOR, OZkM, mM0K)))) return oyIN.mean(IsrW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UPw3(KULu):\n IvsU = [xgXB.percepts[:, 2].sum() for xgXB in KULu]\n return oyIN.array(IvsU).mean()", "def QOe9(YKHO, uObD):\n H_gi = 0\n for xgXB in range(uObD):\n QTBn = YKHO.test_em.reset()\n IvsU = 0.0\n for bGrB in UHFx():\n XeOP = YKHO.policy_step(QTBn, YKHO.t...
[ "0.7807331", "0.73287624", "0.73152596", "0.73152596", "0.7097377", "0.70250475", "0.70053345", "0.692311", "0.69162273", "0.68642163", "0.6820559", "0.6802703", "0.6801011", "0.6797253", "0.6767117", "0.6761804", "0.67573416", "0.66841817", "0.66175336", "0.6594759", "0.6584...
0.6571311
21
performs a lookup on a csv list of email strings against the email address. If found, will return the company ID from the adjacent row
def aIh5(YKHO): with open('company lookup.csv') as eHNT: HND1 = m6_J.reader(eHNT) next(HND1) for rdlD in HND1: c82M = rdlD[0] pwoj = rdlD[3] if c82M in YKHO.email_address: return pwoj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOt_(YKHO):\n with open('company lookup.csv') as eHNT:\n HND1 = m6_J.reader(eHNT)\n next(HND1)\n for rdlD in HND1:\n c82M = rdlD[0]\n u8qZ = rdlD[1]\n if c82M in YKHO.email_address:\n return u8qZ", "def X_uI(YKHO, Jyyj, Hxmi):\n ZbOB ...
[ "0.79572743", "0.6310135", "0.6278955", "0.6164769", "0.60955757", "0.60783887", "0.5923159", "0.592269", "0.59225535", "0.585596", "0.579408", "0.5778521", "0.5749221", "0.57160455", "0.5711778", "0.57086813", "0.5686331", "0.56728965", "0.5639523", "0.5637934", "0.5629602",...
0.86060756
0
Returns indices of equal and different positions inside dataframes `actual` and `expected`.
def nng2(n5sN, aEqx, geX_=0.001, zR0t=1): ubBx = [] ikru = [] NzLI = [] XuKm = [] J21c = [] _7Dc = [] for bt02, dFaX in aEqx.groupby('frame'): EZoi = dFaX[['y', 'x']].values aqyQ = n5sN[n5sN['frame'] == bt02] UdKV = aqyQ[['y', 'x']].values J_Es = uSQr(UdKV) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CSLb(n5sN, aEqx, jih5=False):\n if jih5:\n yCnv = eQHC.assert_allclose\n else:\n yCnv = eQHC.assert_equal\n assert isinstance(n5sN, rLdf.DataFrame) and isinstance(aEqx, rLdf.DataFrame), 'Inputs must both be pandas DataFrames.'\n for YRbF, ioig in aEqx.iterrows():\n assert YRbF ...
[ "0.6498193", "0.64244324", "0.6272443", "0.6247024", "0.611621", "0.6091181", "0.6001925", "0.59910214", "0.59722304", "0.595746", "0.59565645", "0.59395075", "0.5896283", "0.58823013", "0.5881888", "0.58784235", "0.5877685", "0.58453685", "0.5787036", "0.57728744", "0.576673...
0.66458416
0
Find the parent resource type required for a given resource type
def U4ys(YKHO, Co34): if Co34 == 'device': return 'node' elif Co34 == 'flow' and YKHO.is04_utils.compare_api_version(YKHO.apis[LLv0]['version'], 'v1.0') <= 0: return 'source' elif Co34 in ['sender', 'receiver', 'source', 'flow']: return 'device' else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U4ys(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'parent_resource_type')", "def U4ys(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_resource_type')", "def Ympq(YKHO, t8lN):\n return", "def tImL(YKHO, _AKB):\n SH9l = _AKB\n if not isinstance(SH9l, type):\n SH9l = type(SH9l)\n ...
[ "0.81478214", "0.8013213", "0.6775164", "0.65629596", "0.65534055", "0.6548721", "0.6548721", "0.6548721", "0.6548721", "0.65248704", "0.65248704", "0.65248704", "0.6478793", "0.6412417", "0.6412417", "0.6412417", "0.6412417", "0.6412417", "0.6412417", "0.6412417", "0.6412417...
0.72983795
2
Find the preceding resource type recommended for a given resource type, if different than the parent resource type
def XDfs(YKHO, Co34): if Co34 == 'flow' and YKHO.is04_utils.compare_api_version(YKHO.apis[LLv0]['version'], 'v1.0') > 0: return 'source' elif Co34 == 'sender': return 'flow' else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U4ys(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'parent_resource_type')", "def U4ys(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_resource_type')", "def U4ys(YKHO, Co34):\n if Co34 == 'device':\n return 'node'\n elif Co34 == 'flow' and YKHO.is04_utils.compare_api_version(YKHO.apis...
[ "0.68125856", "0.6681947", "0.65945286", "0.61438715", "0.56704354", "0.56315106", "0.5604578", "0.5604578", "0.5604578", "0.5604578", "0.55606556", "0.5559378", "0.5559378", "0.5559378", "0.5518333", "0.551337", "0.55114126", "0.5452649", "0.54007626", "0.54007626", "0.54007...
0.68822575
0
Node correctly fails over between advertised Registration APIs when one fails
def R7W2(YKHO, QOe9): if not X8Rg.ENABLE_DNS_SD: return QOe9.DISABLED('This test cannot be performed when ENABLE_DNS_SD is False') YKHO.do_registry_basics_prereqs() for d6pt, WGBP in enumerate(YKHO.registry_basics_data[1:-1]): if len(WGBP.heartbeats) < 1: return QOe9.FAIL('Node n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrRo(YKHO):\n sr4B = {'ethereum_address': 'some_ethereum_address', 'fetchai_address': YKHO.address, 'signature_of_ethereum_address': 'some_signature_of_ethereum_address', 'signature_of_fetchai_address': 'some_signature_of_fetchai_address', 'developer_handle': ''}\n SGVO, Wxnj, tO9_ = YKHO.strategy.valid_...
[ "0.6888645", "0.6544251", "0.65277743", "0.6513224", "0.6500384", "0.64980847", "0.64779496", "0.6477832", "0.6469057", "0.6442614", "0.64064795", "0.64021105", "0.63830596", "0.63660336", "0.6328717", "0.628245", "0.6270537", "0.62448454", "0.62235796", "0.6218213", "0.62086...
0.0
-1
Plot a route along a networkx spatial graph.
def ie5N(yvY1, PsCT, cviu=None, Focb=6, Enm2=None, MVIL=0.02, JSvE='w', XahE=True, nUHY=True, xkzz=False, DDI8=True, unm1='png', Ux0P='temp', weqM=300, C3nu=False, BBoA='#999999', eJn7=15, DaSW=1, Oy4g='none', Xyu9=1, nBP2='#999999', r1KQ=1, QXFP=1, xaS7=True, gZSn=None, Ow6_=None, HFuN='r', SL5U=4, jBzY=0.5, a1jA=0.5,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gWN_(YKHO, QrM1, UXqs, x6Y8=None):\n At_p = [(Q6kx.get_lon_deg(), Q6kx.get_lat_deg()) for Q6kx in YKHO.wpts]\n At_p = oyIN.array(At_p)\n if x6Y8:\n QrM1.scatter(At_p[:, 0], At_p[:, 1], marker='o', c=x6Y8, s=7)\n QrM1.plot(At_p[:, 0], At_p[:, 1], color=x6Y8, label=UXqs)\n elif UXqs:\n ...
[ "0.73753303", "0.7357246", "0.7177301", "0.7109892", "0.7053489", "0.69738925", "0.69142807", "0.65435696", "0.6475678", "0.646125", "0.6430678", "0.64182055", "0.6404433", "0.6380465", "0.63767433", "0.6369817", "0.63694566", "0.6365755", "0.6318164", "0.62894607", "0.618356...
0.7104921
4
Tests that the post request to status endpoint fails for nonadmin users
def A4wj(Rz2n): x0hE = Rz2n.ok_vinyldns_client Aofo = x0hE.post_status(True) tDkU(Aofo, Tfrw("Not authorized. User 'ok' cannot make the requested change."))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nVhx(YKHO):\n YKHO.client.login(email=YKHO.nonAdminUN, password='pass')\n geh0 = YKHO.client.post(YKHO.url, {'arrival': '01-01-1970'})\n YKHO.assertEqual(geh0.status_code, 403)", "def nVhx(YKHO):\n YKHO.client.login(email=YKHO.nonAdminUN, password='pass')\n geh0 = YKHO.client.post(YKHO.url)\n ...
[ "0.79641473", "0.7907828", "0.7907828", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", "0.7884709", ...
0.8090067
0
Tests that the post request to status endpoint fails for nonusers with fake access and secret key
def rBxY(Rz2n): x0hE = Rz2n.non_user_client Aofo = x0hE.post_status(True) tDkU(Aofo, Tfrw('Authentication Failed: Account with accessKey not-exist-key specified was not found'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wC_R(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)", "def wC_R(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)", "def wC_R(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)", "...
[ "0.76393354", "0.76393354", "0.76393354", "0.76393354", "0.76393354", "0.76393354", "0.76393354", "0.76393354", "0.7468116", "0.7465645", "0.7439852", "0.7436379", "0.73926425", "0.7283365", "0.7276161", "0.7257632", "0.72253335", "0.72111565", "0.72049785", "0.71956843", "0....
0.7909035
0
Tests that the post request to status endpoint pass for admin users
def sW6m(Rz2n): x0hE = Rz2n.support_user_client x0hE.post_status(True) jGRS = x0hE.get_status() tDkU(jGRS['processingDisabled'], Tfrw(True)) x0hE.post_status(False) jGRS = x0hE.get_status() tDkU(jGRS['processingDisabled'], Tfrw(False))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VTHn(YKHO):\n NArs = {'submission_id': YKHO.status_check_submission_id}\n YKHO.login_admin_user()\n geh0 = YKHO.app.get('/v1/check_status/', NArs, expect_errors=True, headers={'x-SESSION-id': YKHO.session_id})\n YKHO.assertEqual(geh0.status_code, 200)", "def xgYT(YKHO):\n NArs = {'submission_i...
[ "0.83451235", "0.76417214", "0.75579137", "0.7528405", "0.75180185", "0.7473453", "0.7473453", "0.7473453", "0.7473453", "0.7473453", "0.7473453", "0.7393846", "0.73889303", "0.73874205", "0.7378379", "0.73572373", "0.7336201", "0.7288061", "0.728665", "0.728665", "0.728665",...
0.81414473
1
Get instances related to self. TAHOE stores data as network graphs. The nodes in the graph are TAHOE instances like attributes, objects, events, sessions etc. If two TAHOE instances are connected in a graph in the db, we call them related instances. This method gets all instances related to this attribute.
def NnTR(YKHO, KW4A='all', ABDL=1, XP5J=JmTN, yKcO=0, Os4s=0, qoqK=0, EdbX=0, B2Dn=1, Ghho='all', QpfX='all', QxIo=False, GUO8=False): if GUO8: KW4A = 'all' elif QxIo: KW4A = 'attribute' wvau, B2Dn, fmO_ = super().related(KW4A, ABDL, XP5J, yKcO, Os4s, qoqK, EdbX, B2Dn, Ghho, QpfX) if GUO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bUWH(YKHO):\n return ahCL.instances(YKHO)", "def bUWH(YKHO) -> x1iM[Kt_s]:\n return YKHO._instances", "def lbzt(YKHO):\n return YKHO.instances", "def bUWH(YKHO):\n return YKHO._instances", "def lbzt(YKHO):\n return YKHO._instances", "def KQdn(YKHO) -> JUxs:\n return JUxs(YKHO)", "...
[ "0.6653577", "0.6308131", "0.6298345", "0.6210976", "0.6192021", "0.6138579", "0.6138097", "0.61145854", "0.6033772", "0.5986564", "0.59017044", "0.58941424", "0.58941424", "0.58941424", "0.58941424", "0.58941424", "0.58623874", "0.5780908", "0.57627136", "0.57624507", "0.573...
0.0
-1
check if func(x, y) for any y in l is true
def TeJP(JfyU, vC9B, WKvO): return any(map(YLnl(JfyU, WKvO), vC9B))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vtfo(YKHO, JfyU, WKvO):\n return any([JfyU(YRbF) for YRbF in WKvO])", "def any(eHNT, yv6U):\n return fR_9.any(map(eHNT, yv6U))", "def gYp1(YKHO, m2Zb):\n return any([m2Zb(X2PW) for X2PW in YKHO.args])", "def NaHw(JfyU, vC9B, WKvO):\n return all(map(YLnl(JfyU, WKvO), vC9B))", "def any(eHNT, ...
[ "0.78079647", "0.75206095", "0.6962035", "0.689237", "0.6852434", "0.6725086", "0.66684145", "0.66684145", "0.66684145", "0.66684145", "0.6653507", "0.6648247", "0.6605734", "0.65795356", "0.6576678", "0.6562826", "0.65429425", "0.65279484", "0.6527774", "0.6521429", "0.65148...
0.7245238
2
check if func(x, y) for all y in l is true
def NaHw(JfyU, vC9B, WKvO): return all(map(YLnl(JfyU, WKvO), vC9B))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vtfo(YKHO, JfyU, WKvO):\n return any([JfyU(YRbF) for YRbF in WKvO])", "def TeJP(JfyU, vC9B, WKvO):\n return any(map(YLnl(JfyU, WKvO), vC9B))", "def any(eHNT, yv6U):\n return fR_9.any(map(eHNT, yv6U))", "def a5Wy(CbIf):\n\n def nvEb(WKvO):\n for XP5J in CbIf:\n if not XP5J(WK...
[ "0.7277032", "0.6931527", "0.687537", "0.67943525", "0.67611104", "0.66942495", "0.6690595", "0.668715", "0.6618022", "0.6594606", "0.65601665", "0.6540191", "0.653376", "0.6503053", "0.6468787", "0.6449081", "0.64346653", "0.6368895", "0.63653135", "0.63352466", "0.6316693",...
0.71336937
1
Crops to center of image with padding then scales to `image_size`.
def Rq4n(LNo8, D5E9, N0ky): ROpF = ZylS.shape(LNo8) l5eN = ROpF[0] Kmi0 = ROpF[1] s6FB = ZylS.cast(N0ky / (N0ky + D5E9) * ZylS.cast(ZylS.minimum(l5eN, Kmi0), ZylS.float32), ZylS.int32) uXUM = (l5eN - s6FB + 1) // 2 _gfS = (Kmi0 - s6FB + 1) // 2 LNo8 = ZylS.image.crop_to_bounding_box(LNo8, uX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HK1Q(VXjJ, zNig):\n if not RDRa(VXjJ):\n raise TypeError(t_1q.format(type(VXjJ)))\n if isinstance(zNig, int):\n zNig = (zNig, zNig)\n PLSm, s3Vn = VXjJ.size\n Pqyv, LbxQ = zNig\n e8Io = int(round((s3Vn - Pqyv) / 2.0))\n kFSh = int(round((PLSm - LbxQ) / 2.0))\n return NAnm(VXj...
[ "0.7546298", "0.74715525", "0.74380827", "0.74000156", "0.73875827", "0.73278636", "0.7253462", "0.7252305", "0.7206942", "0.717215", "0.71528435", "0.71270686", "0.71127856", "0.71101916", "0.7080292", "0.7080292", "0.6983871", "0.693026", "0.6929083", "0.68720746", "0.68361...
0.75716925
0
Normalize the image to zero mean and unit variance.
def fdtU(LNo8, __n6): fSUi = [1] * (len(LNo8.shape) - 1) + [3] vgXP = ZylS.constant(gT6J[__n6], shape=fSUi) LNo8 -= vgXP NXpY = ZylS.constant(kaOA[__n6], shape=fSUi) LNo8 /= NXpY return LNo8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO, VXjJ):\n return (VXjJ - oyIN.mean(VXjJ)) / oyIN.std(VXjJ)", "def NkkI(YKHO, VXjJ):\n return (VXjJ - YKHO.mean) / YKHO.std", "def BtVk(YKHO, VXjJ):\n return (VXjJ - oyIN.mean(VXjJ)) / oyIN.std(VXjJ)", "def NkkI(YKHO):\n YKHO.data_mean = oyIN.mean(YKHO.data, axis=0, dtype=oyIN.float3...
[ "0.8027821", "0.79993606", "0.79146826", "0.7868", "0.7826319", "0.77965975", "0.7760695", "0.77493596", "0.7747855", "0.7641335", "0.75647396", "0.753429", "0.7533937", "0.74502444", "0.74145013", "0.74021107", "0.7333972", "0.7328107", "0.7313085", "0.730185", "0.72911114",...
0.0
-1
Returns dataset by name.
def OefK(j3aw): return X6_Z[j3aw]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dD7q(mWFP):\n if mWFP not in Z355:\n raise KeyError('Unknown dataset: {}'.format(mWFP))\n return Z355[mWFP]()", "def daKJ(YKHO, mWFP):\n if mWFP not in YKHO._datasetNameMap:\n raise Bx6I.DatasetNameNotFoundException(mWFP)\n return YKHO._datasetNameMap[mWFP]", "def __n6(YKHO, mWFP:...
[ "0.88030076", "0.8620234", "0.83912665", "0.8367088", "0.8286242", "0.8157175", "0.79421127", "0.79242593", "0.7879981", "0.78667", "0.77035975", "0.7665657", "0.7598005", "0.758473", "0.7567917", "0.75525355", "0.75465566", "0.75367296", "0.7477041", "0.74250585", "0.7375578...
0.7377772
20
Test book model representation
def ma9p(YKHO) -> None: YKHO.assertEqual(str(YKHO.book), 'Book (book title), book author')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xMqT(YKHO):\n YKHO.assertEqual(YKHO.a_Book.title, 'Book A')\n YKHO.assertEqual(YKHO.a_Book.author, 'Author A')\n YKHO.assertEqual(str(YKHO.a_Book), 'Book A')", "def ncL1(YKHO):\n jI4j = YKHO.create_book()\n YKHO.assertTrue(isinstance(jI4j, dl5x))", "def OlRK(YKHO):\n jI4j = dl5x(title='Go...
[ "0.7331876", "0.7216285", "0.71250105", "0.7108982", "0.68273324", "0.67762953", "0.6600354", "0.65787184", "0.64830184", "0.64565176", "0.64493746", "0.6408849", "0.6390045", "0.6380794", "0.63321173", "0.62892985", "0.6284902", "0.62790805", "0.6269913", "0.62515223", "0.62...
0.72155637
2
tokenize the text with spacy and remove stopwords
def wr3U(YZje): try: K9NE = CNQv.load('en') except OSError: from spacy.cli import download download('en') K9NE = CNQv.load('en') z_aV = [] for A97Q in K9NE.pipe(YZje, n_threads=4, disable=['tagger', 'parser', 'ner']): z_aV.append([FVZf(eOtH) for eOtH in A97Q if wE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n s2mk = Dhdw.word_tokenize(l5Ny)\n di0c = set(Dhdw.corpus.stopwords.words('english'))\n s2mk = [yzQ0 for yzQ0 in s2mk if yzQ0 not in di0c]\n return s2mk", "def b0j5(l5Ny):\n s2mk = [eOtH.text.lower() for eOtH in K9NE(oVDR(l5Ny))]\n return s2mk", "def _x7m(l5Ny):\n l5Ny = x...
[ "0.7754686", "0.774159", "0.764116", "0.76266724", "0.76204616", "0.760319", "0.7545511", "0.75449336", "0.7537496", "0.7512095", "0.7498436", "0.74736834", "0.7462394", "0.7454192", "0.74289364", "0.7425054", "0.7423393", "0.74151874", "0.74051297", "0.7375998", "0.7353694",...
0.0
-1
Only allow valid tokens which are not stop words and punctuation symbols.
def wEir(eOtH): if not eOtH or not eOtH.string.strip() or eOtH.is_stop or eOtH.is_punct: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iJeG(eOtH):\n return True", "def zKDd(s2mk):\n return [eOtH.lower() for eOtH in s2mk if eOtH not in vIwR.punctuation and eOtH.lower() not in bSdx and (len(eOtH) > 2)]", "def HL13(eOtH, LkLW, xc2E):\n pC3l = True\n for bseI in eOtH:\n if bseI not in xc2E:\n pC3l = False\n ...
[ "0.7428961", "0.73056495", "0.6848592", "0.68308383", "0.67868745", "0.67656916", "0.67284334", "0.6663737", "0.65964794", "0.6582381", "0.6573879", "0.6573227", "0.65624464", "0.6552489", "0.65326905", "0.6526488", "0.6496944", "0.64248013", "0.64225227", "0.6417656", "0.638...
0.7845014
0
Given a string the program will check if the provided string is a valid ISBN10.
def SGVO(Z5r0): if not Z5r0 or Z5r0 == '': return False BHGE = [] for YRbF in Z5r0: if YRbF.isdigit(): BHGE.append(int(YRbF)) if Z5r0[-1] == 'X': BHGE.append(10) if len(BHGE) < 10: return False for exwG in range(10, 0, -1): BHGE[exwG - 1] *= ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _9xF(Wxnj):\n if not (isinstance(Wxnj, str) and len(Wxnj) == 10 and Wxnj[:9].isdigit()):\n return False\n return bKao(Wxnj) == Wxnj[-1]", "def pbT6(Z5r0):\n cll5 = n5l3(Z5r0)\n if len(cll5) == 10:\n return ILiH(cll5)\n elif len(cll5) == 13:\n return Lvh5(cll5)\n else:\n...
[ "0.79577595", "0.7844824", "0.7819947", "0.76252383", "0.76050436", "0.756866", "0.73925924", "0.7192357", "0.7157393", "0.69886434", "0.6971249", "0.6741207", "0.6621169", "0.6616843", "0.652197", "0.6448322", "0.6448322", "0.64368737", "0.64368737", "0.63656616", "0.6364881...
0.79178137
1
Loss function that maximises both f1score and BCE. This helps in improving model performance while keeping an eye on the f1score.
def pYqK(): RY94 = ht2j.nn.BCEWithLogitsLoss(reduction='mean', pos_weight=ht2j.tensor(q8GA)) Xfoi = TA3v return lambda uN02, LVAh: 0.8 * RY94(uN02, LVAh.float()) + 0.2 * Xfoi(uN02, LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WPm5(aTLP, HYZ_, nZt5):\n aTLP = N93T(aTLP.reshape(-1, nZt5, order='F'))\n DF97 = oyIN.argmax(aTLP, axis=1)\n Y8eF = HYZ_.get_label()\n return ('f1', CCGu(Y8eF, DF97, average='weighted'), True)", "def pnvS(aTLP, HYZ_, nZt5):\n aTLP = aTLP.reshape(-1, nZt5, order='F')\n DF97 = oyIN.argmax(aT...
[ "0.6724715", "0.6590447", "0.6460362", "0.62542015", "0.62499905", "0.62485534", "0.62295705", "0.6218729", "0.6177031", "0.6172096", "0.6170235", "0.6163174", "0.6150767", "0.6150352", "0.6149707", "0.6143893", "0.61308616", "0.6126021", "0.6118582", "0.610913", "0.6087597",...
0.65205276
2
Converts a Python 'datetime' to a Gerritformatted timestamp. See 'ParseGerritTime' for details.
def wgm6(BWXx): H_rD = str(BWXx.microsecond * 1000) return '%s.%s' % (BWXx.strftime(IijB), H_rD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zb98(ITS7):\n E3oo = qcWV.fromtimestamp(ITS7)\n return E3oo", "def Zb98(i8WE):\n return qcWV.fromtimestamp(i8WE / 1000.0)", "def ItX3(YKHO):\n qcWV, vgXP = map(lambda WKvO: WKvO.strip(), YKHO['datetime'].split(' -'))\n return ITS7.mktime(ITS7.strptime(qcWV, YKHO.datetime_fmt))", "def qbW6(...
[ "0.718051", "0.6792729", "0.6775647", "0.66799134", "0.66673607", "0.6569644", "0.65393776", "0.6474315", "0.6406495", "0.6354544", "0.6312364", "0.6295672", "0.6278429", "0.62713414", "0.626292", "0.6253216", "0.6222973", "0.6218416", "0.6216636", "0.6212994", "0.61963004", ...
0.66578203
5
Function to add cargo to a spaceship
def EZCb(YKHO, xKZH, JKmF, FyaP): YKHO.remaining_mass -= round(JKmF, 3) YKHO.remaining_volume -= round(FyaP, 3) YKHO.filled_mass = round(YKHO.payload_mass - YKHO.remaining_mass, 3) YKHO.filled_volume = round(YKHO.volume - YKHO.remaining_volume, 3) YKHO.cargo = {'id': xKZH, 'mass': JKmF, 'volume': Fy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T7JY(YKHO, C7MP):\n YKHO.ships.append(C7MP)", "def T7JY(C7MP, zFiD):\n K_nX = cuiw.query(GJ8B).filter_by(name=zFiD).one()\n jSYO(riCe(name=C7MP, line=K_nX))", "def H2v5(YKHO, fqP7):\n D0Sg = YKHO._process_tx(fqP7)\n YKHO.send(D0Sg)", "def T7JY(YKHO, C7MP):\n YKHO.ships.append(C7MP)\n ...
[ "0.7072076", "0.6959304", "0.66559833", "0.65069526", "0.6309887", "0.61346245", "0.6105572", "0.60677975", "0.60591584", "0.6041089", "0.5986258", "0.5959834", "0.5947097", "0.59242153", "0.5910495", "0.5877735", "0.5820531", "0.5766725", "0.5750614", "0.56691325", "0.562437...
0.5932243
13
Combines information from 'moneygendera', 'moneygenderb' and 'partgender' variables into 'partgender'.
def Lzvh(YKHO, jQ3Z, LpaZ=False): if not YKHO.__func_hist['put_nans']: raise nZio('Run put_nans function first') YKHO.__func_hist['preprocess_partgender'] = True yrtN = {'female': '1', 'male': '0'} tEx0 = {'1': 'female', '0': 'male'} if LpaZ: jQ3Z.moneygendera = jQ3Z.moneygendera.fil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ng0X(Fg_i, jzdc):\n if Fg_i.endswith(('mat', 'vat', 'yat', 'in')) and jzdc == Fg_i + 'I':\n return 'f'\n if Fg_i.endswith('in') and jzdc == Fg_i[0:-1] + 'RI':\n return 'f'\n if Fg_i.endswith('a') and jzdc == Fg_i[0:-1] + 'A':\n return 'f'\n if Fg_i.endswith('a') and jzdc == Fg_...
[ "0.60216033", "0.5591705", "0.5568701", "0.5537974", "0.55062455", "0.5505958", "0.5488246", "0.5428026", "0.54126436", "0.53527325", "0.53259385", "0.5313288", "0.5268506", "0.52575547", "0.516076", "0.5153643", "0.51061064", "0.5095035", "0.5093225", "0.50516087", "0.504385...
0.55439746
3
Creates a label encoder for each column in columns, and stores them in a map for inverse transform. This function just removes the responsibility from users of keeping track of labelEncoders for each column.
def ghC_(YKHO, jQ3Z, ZLJ_, LpaZ=False): if not YKHO.__func_hist['put_nans']: raise nZio('Run put_nans function first') YKHO.__func_hist['fit_transform_label_encoder'] = True from sklearn import preprocessing if isinstance(ZLJ_, list): if LpaZ: for fvDH in ZLJ_: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lfRF(jQ3Z, ZH6t=None):\n if not ZH6t:\n ZH6t = [fvDH for fvDH in jQ3Z.columns if jQ3Z[fvDH].dtype == 'object']\n for fvDH in ZH6t:\n jQ3Z[fvDH], SUko = rLdf.factorize(jQ3Z[fvDH])\n return (jQ3Z, ZH6t)", "def xV95(jQ3Z, R8Ph, AvyM):\n jQ3Z = jQ3Z.copy()\n WFrw = []\n for fvDH i...
[ "0.71681786", "0.70945114", "0.7020912", "0.68597716", "0.67311513", "0.67188954", "0.66563714", "0.6541883", "0.6521352", "0.65187377", "0.6494897", "0.64719564", "0.6452072", "0.6450965", "0.64171356", "0.6413959", "0.63706815", "0.6367221", "0.63507336", "0.63100165", "0.6...
0.671507
6
\ Initializes the corpus. `tokenizer` A function to tokenize/normalize/cleanup/remove stop words from strings. If it's ``None`` (default), a default function will be used to tokenize texts.
def FIMM(YKHO, b0j5=None): def wr3U(l5Ny): return BfDw.tokenize(l5Ny, lowercase=True) YKHO._tokenize = b0j5 or wr3U
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NJoq(YKHO):\n E76r = CNQv.util.compile_prefix_regex(YKHO.nlp.Defaults.prefixes)\n iFyM = CNQv.util.compile_suffix_regex(YKHO.nlp.Defaults.suffixes)\n e0eK = ZbWC.compile(' ')\n b0j5 = CNQv.tokenizer.Tokenizer(YKHO.nlp.vocab, YKHO.nlp.Defaults.tokenizer_exceptions, E76r.search, iFyM.search, e0eK.fin...
[ "0.72650343", "0.6926426", "0.6926426", "0.6792742", "0.6723141", "0.6584599", "0.6534575", "0.64792347", "0.63236016", "0.6314614", "0.6314106", "0.6202911", "0.6200853", "0.6199652", "0.6199652", "0.6199652", "0.6178254", "0.61567", "0.6110123", "0.60850024", "0.60650146", ...
0.74607515
0
Given the parameters for a two dimensional gaussian this returns the value of the Gaussian
def RzoT(k0lF, WKvO, nJ9F, NTJI, LVAh, nxyw, W9fC): BWXx = k0lF * kLQb(-((WKvO - nJ9F) ** 2.0 / (2 * NTJI ** 2.0) + (LVAh - nxyw) ** 2.0 / (2 * W9fC ** 2.0))) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(YKHO, yGTL, WTkW, WKvO):\n return epAf.exp(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0) / epAf.sqrt(2.0 * epAf.pi * WTkW ** 2)", "def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0) / PZyS(2.0 * mM0K * WTkW ** 2)", "def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKv...
[ "0.77917755", "0.7680117", "0.76098925", "0.75079304", "0.750304", "0.7502179", "0.74418014", "0.74314964", "0.7416914", "0.7389316", "0.73770756", "0.7348097", "0.7337065", "0.72943276", "0.7242544", "0.72196007", "0.7206319", "0.7192616", "0.71869224", "0.71846104", "0.7181...
0.777535
1
overrides default _create() to apply task patch before calling _create() then calls save() and tries to queue send_confirmation_email task the task will be replaced by mock
def J4uR(Emd4, jxGD, *qIxc, **B2fa): with Po4F('mailinglist.models.tasks.send_confirmation_email_to_subscriber'): return super()._create(*qIxc, model_class=jxGD, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yUqa(vC92, KAOR, _EYN, **B2fa) -> None:\n if _EYN:\n _TKD = pC5n.apply_async((KAOR.id,), eta=KAOR.date).id\n KAOR.task_id = _TKD\n KAOR.save()\n return\n if KAOR.task_id:\n s4Hs(KAOR.task_id).revoke()\n _TKD = pC5n.apply_async((KAOR.id,), eta=KAOR.date).id\n umWR ...
[ "0.65886915", "0.64803755", "0.6421232", "0.6421232", "0.6326708", "0.6303474", "0.625051", "0.62433326", "0.62197286", "0.6106487", "0.6094283", "0.6078985", "0.60031784", "0.5957163", "0.59399843", "0.5934025", "0.59314", "0.5916725", "0.59090203", "0.5907772", "0.5884725",...
0.76807684
0
Given a graph G, construct a graph containing only the vertices with odd degree from G. The resulting graph is fully connected, with each weight being the shortest path between the nodes in G.
def EVJ_(pNZh): Aofo = jHsn.Graph() MD51 = [exwG for exwG in pNZh.nodes() if pNZh.degree(exwG) % 2 == 1] for P6bq in MD51: ckRy = jHsn.shortest_path(pNZh, source=P6bq, weight='weight') Fbjb = jHsn.shortest_path_length(pNZh, source=P6bq, weight='weight') for Ty9i in MD51: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LJAI(yvY1):\n Oa1e = UwG9(yvY1.V())\n Oa1e._E = yvY1.E()\n for Ty9i in range(yvY1.V()):\n Oa1e._indegree[Ty9i] = yvY1.indegree(Ty9i)\n gxEw = S9Ut()\n for tTpl in yvY1.adj(Ty9i):\n gxEw.push(tTpl)\n for tTpl in gxEw:\n Oa1e._adj[Ty9i].add(tTpl)\n re...
[ "0.70753235", "0.6715375", "0.667999", "0.66041625", "0.6591287", "0.65206516", "0.64987963", "0.6497498", "0.64970183", "0.6489967", "0.64740723", "0.6411032", "0.63807", "0.63754505", "0.63532674", "0.63349986", "0.6331376", "0.6324352", "0.6255768", "0.62510264", "0.624801...
0.8114138
0
Sets the total of this SubCrossMarginAccount.
def wjRY(YKHO, wjRY): YKHO._total = wjRY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rzoi(YKHO, wjRY):\n YKHO.__total = wjRY", "def kS2C(YKHO, kS2C):\n YKHO._total_invoice = kS2C", "def woGg(YKHO, woGg):\n YKHO._total_price = woGg", "def woGg(YKHO, woGg):\n YKHO._total_price = woGg", "def _Erc(YKHO, _Erc):\n YKHO._subtotal = _Erc", "def _Erc(YKHO, _Erc):\n YKHO._sub...
[ "0.72597444", "0.6743161", "0.6700311", "0.6700311", "0.66873235", "0.66873235", "0.66873235", "0.66873235", "0.6683204", "0.6576818", "0.6576818", "0.6576818", "0.6576818", "0.6562576", "0.65106106", "0.64885294", "0.63336146", "0.63238114", "0.6322186", "0.6296878", "0.6267...
0.6988106
3
Sets the borrowed_net of this SubCrossMarginAccount.
def VOwT(YKHO, VOwT): YKHO._borrowed_net = VOwT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qk40(YKHO, qk40):\n YKHO._borrowed = qk40", "def Ipmz(YKHO, Ipmz):\n YKHO._net_amount = Ipmz", "def nmOu(YKHO, nmOu):\n YKHO._groupnet = nmOu", "def nmOu(YKHO, nmOu):\n YKHO._groupnet = nmOu", "def GKoA(YKHO, GKoA):\n YKHO._base_currency_net_amount = GKoA", "def Zxma(YKHO, Zxma):\n ...
[ "0.5944177", "0.56688976", "0.5554542", "0.5473666", "0.54221904", "0.5417975", "0.5417975", "0.53939646", "0.5361861", "0.51124436", "0.50872946", "0.50776285", "0.50194645", "0.4967343", "0.49343088", "0.4920889", "0.49129257", "0.49064255", "0.49064255", "0.48915222", "0.4...
0.7679201
0
Sets the net of this SubCrossMarginAccount.
def Zxma(YKHO, Zxma): YKHO._net = Zxma
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQpH(YKHO, Zxma):\n YKHO.net = Zxma\n YKHO.net.to(YKHO.device)", "def Ipmz(YKHO, Ipmz):\n YKHO._net_amount = Ipmz", "def Zxma(YKHO, Zxma):\n if Zxma is None:\n raise ValueError('Invalid value for `net`, must not be `None`')\n YKHO._net = Zxma", "def Zxma(YKHO, Zxma):\n if Zxma is...
[ "0.6839909", "0.6838375", "0.6438855", "0.6438855", "0.6278359", "0.6075987", "0.60731685", "0.60639995", "0.5931762", "0.59207565", "0.57769036", "0.5701256", "0.5569444", "0.5521654", "0.5436594", "0.54149866", "0.53077644", "0.53032136", "0.5258812", "0.5224378", "0.515189...
0.6571925
3
Sets the total_maintenance_margin_rate of this SubCrossMarginAccount.
def rC4H(YKHO, rC4H): YKHO._total_maintenance_margin_rate = rC4H
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DCaG(YKHO, DCaG):\n YKHO._total_maintenance_margin = DCaG", "def zUK9(YKHO, zUK9):\n YKHO._total_margin_balance = zUK9", "def URKO(YKHO, URKO):\n YKHO._total_available_margin = URKO", "def Nxvu(YKHO, Nxvu):\n YKHO._total_initial_margin_rate = Nxvu", "def Ilm1(YKHO, SGf8):\n YKHO.totalBud...
[ "0.76275975", "0.65212744", "0.6041497", "0.6005934", "0.57828337", "0.5403212", "0.5348458", "0.53481853", "0.5345132", "0.5248967", "0.52338654", "0.52338654", "0.52338654", "0.52338654", "0.5177883", "0.5147602", "0.5127082", "0.5099999", "0.5094925", "0.5087602", "0.50876...
0.83665186
0
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.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, QYWZ): return True return YKHO.to_dict() != Elif.to_dict()
{ "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
Tests whether a user can do a certain thing.
def k8wT(YKHO, vFzy): Aofo = False P6bq = YEEA.get_user_by_screen_name(YKHO.current_user) if P6bq and 'role' in P6bq.keys(): try: if vFzy in gCuF.get('%s_capabilities' % P6bq['role']): Aofo = True except: Aofo = False return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def baWQ(YKHO, CBIr) -> bool:\n return CBIr.is_admin or YKHO.judge == CBIr or YKHO.league.have_permission(CBIr)", "def gGgH(YKHO, CBIr):\n return True", "def gGgH(YKHO, CBIr):\n return True", "def PVSl():\n return CmGq.User().IsAllowed('Regenerate Confirmation', 'Operation')", "def lqRC(YKHO, C...
[ "0.7582934", "0.7534399", "0.7391236", "0.73264563", "0.71037596", "0.70458335", "0.70426214", "0.70321286", "0.7018951", "0.6997956", "0.698458", "0.69808584", "0.696503", "0.6957713", "0.69337976", "0.6917877", "0.69136405", "0.68956393", "0.6870258", "0.685178", "0.6850161...
0.0
-1