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"""Compute the output of a linear layer.
def KVH6(OaeV, k0lF, XcU5, Fg_i=None): OaeV.save_for_backward(k0lF, XcU5, Fg_i) return ht2j.matmul(k0lF, XcU5.T) + (Fg_i if Fg_i is not None else 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z8o0(WKvO, EDoJ):\n yzQ0 = ZylS.get_variable('w', [WKvO.get_shape()[1], EDoJ])\n Fg_i = ZylS.get_variable('b', [EDoJ], initializer=ZylS.constant_initializer(0.0))\n return ZylS.nn.xw_plus_b(WKvO, yzQ0, Fg_i)", "def z8o0(WKvO, dWUT, mWFP=None, YDYE=None, CJGY=None):\n print('##Start linear##')\n ...
[ "0.7213798", "0.70892876", "0.696493", "0.66992986", "0.6674015", "0.6674015", "0.66593486", "0.66119796", "0.6595454", "0.65917253", "0.65233433", "0.6507848", "0.65016234", "0.6433543", "0.6366506", "0.63618094", "0.6340412", "0.6328408", "0.6291966", "0.62913454", "0.62856...
0.0
-1
r"""Applies the sigmoid function elementwise to ``Z``.
def KVH6(OaeV, Nk6w): OaeV.save_for_backward(Nk6w) return 1.0 / (1.0 + ht2j.exp(-Nk6w))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(Nk6w):\n k0lF = 1 / (1 + oyIN.exp(-Nk6w))\n return k0lF", "def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))", "def m1Hg(epBp):\n return mFhB(epBp)", "def m1Hg(YKHO, epBp):\n return 1 / (1 + oyIN.exp(-epBp))", "def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))", "def ...
[ "0.8287348", "0.8128875", "0.81049514", "0.8090079", "0.8077359", "0.79981047", "0.7996011", "0.7989291", "0.79889256", "0.7972748", "0.79694295", "0.7961432", "0.79567045", "0.7941996", "0.7927172", "0.7923021", "0.7917617", "0.7904141", "0.7903342", "0.7858465", "0.7857274"...
0.0
-1
Evaluate a tensor. Takes care of the variations between graphs produced with and without resource variables when determining the name of the operation to run.
def HRXF(YKHO, vhpA): mWFP = vhpA if isinstance(vhpA, str) else vhpA.name d6pt = '0' if ':' in mWFP: mWFP, d6pt = mWFP.split(':') if jj4W.resource_variables_enabled(): mWFP = mWFP + '/Read/ReadVariableOp' return YKHO.evaluate(mWFP + ':' + d6pt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pK4W(vhpA):\n if QpfX.executing_eagerly():\n return vhpA.numpy()\n return IPme.get_default_session().run(vhpA)", "def nrOS(YKHO, UBMT):\n return YKHO.evaluate(UBMT)", "def Zr_h(WbAn, cPmx, *qIxc):\n Qvn0 = wdfw()\n mzYx = []\n sblV = []\n Eqga = []\n for or8S, nPrm in enumera...
[ "0.70626074", "0.66995996", "0.5918291", "0.584094", "0.5816497", "0.5801724", "0.57763773", "0.5745237", "0.5728183", "0.5655665", "0.5647421", "0.56424975", "0.561995", "0.5610754", "0.55959916", "0.5574136", "0.55692333", "0.55690277", "0.5543135", "0.55420953", "0.5522697...
0.7994263
0
Create and save a user with the given username, email, and password.
def xWi2(YKHO, **V_D6): D3lj = V_D6.pop('email') jTXt = V_D6.get('password1') if not D3lj: raise ValueError('Email address is required') D3lj = YKHO.normalize_email(D3lj) CBIr = YKHO.model(email=D3lj, **V_D6) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se...
[ "0.85967624", "0.8440654", "0.84264034", "0.8423257", "0.84063315", "0.8393488", "0.83878005", "0.8341707", "0.8334409", "0.8332718", "0.83224976", "0.8288854", "0.82819235", "0.827502", "0.8269521", "0.8267577", "0.81637603", "0.8159258", "0.8158126", "0.81423306", "0.813671...
0.7885976
86
Test that when at the root node, the builder cannot move up to a parent.
def JQn7(): mBtZ = sIdl() mBtZ.create_root(0) with trZe.raises(ValueError): mBtZ.move_to_parent()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nRAa():\n mBtZ = sIdl()\n with trZe.raises(ValueError):\n mBtZ.move_to_root()\n with trZe.raises(ValueError):\n mBtZ.move_to_parent()\n with trZe.raises(ValueError):\n mBtZ.build()", "def Lvjw():\n mBtZ = sIdl()\n mBtZ.create_root(0)\n mBtZ.add_child(2, move=True)\n ...
[ "0.80656445", "0.76942825", "0.76755255", "0.7234567", "0.69586444", "0.68467796", "0.68467796", "0.6786187", "0.67849195", "0.6755974", "0.667053", "0.66338646", "0.65786994", "0.655644", "0.6553044", "0.6545688", "0.65415907", "0.64951444", "0.64194375", "0.62602377", "0.61...
0.8599833
0
Returns a value from the environ if not found None
def AjWT(H5ew: str, WmM4: Any=None) -> str: return Hy7s.environ.get(H5ew, WmM4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(H5ew: str):\n BWXx = PNq_.get(H5ew)\n if BWXx == None or len(str(BWXx)) == 0:\n raise ValueError('Missing env: ' + H5ew)\n return BWXx", "def VTiq(YKHO, mWFP):\n if not Hy7s.environ.has_key(mWFP):\n return None\n return Hy7s.environ[mWFP]", "def PHpK(H5ew):\n try:\n ...
[ "0.8427169", "0.78881174", "0.7684489", "0.7656262", "0.7378371", "0.7303838", "0.72640556", "0.7244024", "0.7195593", "0.7187488", "0.6996409", "0.696521", "0.6931788", "0.6893517", "0.6852815", "0.68523973", "0.68098325", "0.6804754", "0.6804754", "0.67927414", "0.67871755"...
0.7455593
4
Assert that variadic_addition will calculate the sum of one argument.
def _1vO(YKHO): YKHO.assertIdentity(iWk2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MLC7(YKHO):\n YKHO.assertEqual(iWk2(1, 2, 3, 4, 5, 10, 11, 12, 13, 14, 15), 90)", "def JsCA():\n vC9B = [1, 2, 3, 4]\n assert Kb7E.add(*vC9B) == sum(vC9B)\n assert Kb7E.add(100, 200) == 300\n assert Kb7E.add(1.0, 2.0, 100.0) == 103.0", "def WOaL(YKHO):\n try:\n YKHO.assertEqual(H2v...
[ "0.8388786", "0.732367", "0.70822567", "0.67872864", "0.6695529", "0.6589702", "0.6503258", "0.63732165", "0.63460994", "0.6308285", "0.62551105", "0.62551105", "0.62551105", "0.6245928", "0.62261504", "0.6217164", "0.61945015", "0.61721706", "0.61636084", "0.6118056", "0.611...
0.7746421
1
Derivative of the sigmoid function.
def hj5n(YKHO, epBp): return YKHO.sigmoid(epBp) * (1 - YKHO.sigmoid(epBp))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZml(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n return WKvO * (1.0 - WKvO)", "def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def BV7B(WKvO):\n return WKvO * (1 - WKvO)", "def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n ox...
[ "0.8474031", "0.8449428", "0.83956724", "0.8347549", "0.8347549", "0.8298076", "0.80540663", "0.7752118", "0.7706634", "0.7497549", "0.74651986", "0.7451908", "0.7400593", "0.7383443", "0.7382016", "0.73468137", "0.73205775", "0.7308369", "0.71908224", "0.71130663", "0.709060...
0.0
-1
Compute softmax values for each sets of scores in x.
def N93T(WKvO): UH90 = oyIN.exp(WKvO) UH90 = UH90 / oyIN.sum(UH90, axis=0) return UH90
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7797849", "0.77619886", "0.776157", "0.775872", "0.76596135", "0.76596135", "0.76596135", "0.76596135", "0.7586109", "0.7431844", "0.74070084", "0.7393994", "0.7358404", "0.7317217", "0.7268679", "0.72625685", "0.7261825", "0.7256399", "0.7229374", "0.7214238", "0.72015005...
0.0
-1
Automatically used test fixture. Returns the application instanceundertest with a valid app context.
def P4t4(QePW, _sMN): jA_G._reset() xAU6 = QePW.keywords.get('options', None) if xAU6 is not None: xAU6 = {G1Hx.upper(): Ty9i for G1Hx, Ty9i in xAU6.kwargs.items()} P4t4 = QA6w.create_app(JkWV, bundles=_sMN + ['flask_unchained.bundles.api', 'flask_unchained.bundles.mail', 'tests.bundles.security...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SCWY(YKHO):\n if not x2Lt._test_app:\n P4t4 = YKHO.APP_CLASS()\n P4t4.run_tests()\n x2Lt._test_app = P4t4\n return x2Lt._test_app", "def P4t4(QePW) -> m36K:\n global fixture\n if lt9K is None:\n lt9K = paxj()\n return lt9K", "def fkN9():\n xqoZ = {'DEBUG': True...
[ "0.8229665", "0.77517885", "0.76738375", "0.76550806", "0.76550806", "0.76550806", "0.7606498", "0.75622696", "0.7492555", "0.74473107", "0.7395727", "0.7337389", "0.73343986", "0.7300206", "0.72882015", "0.7240712", "0.7208225", "0.7191826", "0.7150085", "0.7027735", "0.6980...
0.0
-1
Load config from yaml and save it in the config instance for global access
def LgIG(Emd4, pmON) -> '__Config': APEu = [] _Fei = Emd4.get_config() with open(pmON, 'r') as wOb_: IMuq = eJb6.safe_load(wOb_) for H5ew, wEf2 in IMuq.items(): if H5ew in _Fei.__dict__.keys(): setattr(_Fei, H5ew, wEf2) else: APEu.appen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LgIG():\n global config\n with open('config.yml', 'r') as nUeQ:\n GPtr = eJb6.load(nUeQ)", "def GcDA(YKHO):\n try:\n with open(YKHO.parsed_cfg_path, 'r') as cok8:\n YKHO.from_yaml_cfg_dict = eJb6.load(cok8)\n except Exception as exc:\n print(BQDi)\n wVCK.pri...
[ "0.7837642", "0.7560857", "0.74684334", "0.7433986", "0.732899", "0.72980505", "0.72698826", "0.72456163", "0.71487606", "0.7145049", "0.7140125", "0.7127902", "0.7107965", "0.7076843", "0.7030257", "0.7017999", "0.70123", "0.7004554", "0.6978879", "0.6972185", "0.6962203", ...
0.7093497
13
Handle special conversions from yaml input to a needed formats (i.e. splitting of lists)
def a9cI(_Fei: __Config, GPtr: dict) -> '__Config': _Fei.file_name_plane_masks = lambda YRbF: str(YRbF) + GPtr['file_name_plane_mask_suf'] _Fei.file_name_planercnn_image = lambda YRbF: str(YRbF) + GPtr['file_name_planercnn_image_suf'] _Fei.dir_results = f'{_Fei.edge_detection_type}' _Fei.image_size = tu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NBjn(O38l, n80H):\n IEm_(b5Z4(f9B0(O38l)), n80H)", "def b5Z4(cwkY):\n if isinstance(cwkY, list):\n return [b5Z4(ZfUD) for ZfUD in cwkY]\n if isinstance(cwkY, dict):\n return {str(H5ew): b5Z4(cwkY[H5ew]) for H5ew in cwkY}\n return cwkY", "def xjBo():\n Op6c = eJb6.load('{}')\n ...
[ "0.59312576", "0.58612114", "0.5806065", "0.57241744", "0.56119037", "0.559588", "0.55898786", "0.55414873", "0.55237", "0.5372691", "0.53628504", "0.53414845", "0.5340044", "0.5303953", "0.52994215", "0.52956086", "0.5260427", "0.5216376", "0.5205074", "0.5198229", "0.518418...
0.0
-1
Test that a ValueError is raised if the number of filtering thresholds does not match the number of inputs.
def Ty73(YKHO, gwAu, qepc): with trZe.raises(ValueError, match='If multiple filter_thresholds are provided'): FN88(YKHO.dummy_fn, qepc, 2, True, filter_threshold=gwAu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzL8(YKHO):\n tO9_ = 'Cannot specify both no_of_percentiles and percentiles'\n with YKHO.assertRaisesRegex(ValueError, tO9_):\n yjvs().process(YKHO.cube, no_of_percentiles=3, percentiles=[25, 50, 75])", "def fHHT(YKHO):\n YKHO.assertRaises(AssertionError, YKHO.validate, (3, 2, 8, 8), (4, 3, 5...
[ "0.65735257", "0.6527854", "0.64310807", "0.64217633", "0.6373864", "0.6349007", "0.6343449", "0.6284737", "0.626901", "0.6247218", "0.6184793", "0.6180708", "0.61522615", "0.6136882", "0.61206365", "0.60906637", "0.60882515", "0.6014135", "0.59994555", "0.5978101", "0.596705...
0.78769076
0
Get the original content of the record
def EPt3(YKHO) -> dict: return YKHO.__content
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hGN5(YKHO):\n return YKHO.original.content", "def zQqL(YKHO):\n return YKHO.original", "def SwtT(YKHO):\n return YKHO.content", "def AIu6(YKHO):\n return YKHO._record", "def kGys(YKHO):\n return YKHO._data[:]", "def Napc(YKHO):\n return YKHO.record", "def l5Ny(YKHO):\n return Y...
[ "0.7346124", "0.68440586", "0.66728055", "0.6607294", "0.66009665", "0.6546696", "0.65346885", "0.6501923", "0.63668644", "0.63537383", "0.63537383", "0.63107395", "0.62645787", "0.62445724", "0.6230589", "0.6204916", "0.6178013", "0.61338687", "0.6116896", "0.6110234", "0.61...
0.0
-1
Descarrega quantidade q de mercadoria de tipo m.
def TO83(a1PO, r8hN, vexM): for YRbF in range(len(a1PO) - 1, -1, -1): UaQw = a1PO[YRbF] if UaQw[0] == r8hN: finE = vexM if UaQw[1] >= vexM else UaQw[1] UaQw[1] -= finE vexM -= finE if UaQw[1] == 0: del a1PO[YRbF] if vexM == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Otcc(vexM):\n try:\n return vexM.magnitude\n except:\n return vexM", "def SZJh(YKHO):\n return YKHO.q[0]", "def E3D9(YKHO, vexM):\n if YKHO._M is None:\n YKHO._M = YKHO._calc_M()\n SGPK = tuple(vexM)\n return oyIN.array(YKHO._M(*SGPK), dtype='float32')", "def N4Vi(Y...
[ "0.59588253", "0.5955158", "0.57766813", "0.5771213", "0.5715782", "0.56833005", "0.55756694", "0.55608565", "0.5541552", "0.5541552", "0.55163884", "0.55125165", "0.54853994", "0.54330796", "0.5413882", "0.5412439", "0.5408189", "0.5373485", "0.5369357", "0.53633475", "0.535...
0.0
-1
Gets the path of the hwmon directory for the CPU, depending on architecture.
def wHtl(iJKf): H1hS = U9eF('/sys/class/hwmon') for x8mZ in H1hS: tGFt = open('/sys/class/hwmon/' + x8mZ + '/name') mWFP = tGFt.read().strip() if mWFP == 'coretemp' or mWFP == 'cpu_thermal': tGFt.close() return '/sys/class/hwmon/' + x8mZ tGFt.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fwu5():\n pmON = H0q3.DocumentPath()\n mWFP = H0q3.DocumentName()\n if gigf.operating_system == 'mac':\n pmON = pmON[:-len(mWFP)] + '_system.dat'\n elif gigf.operating_system == 'win':\n YRbF = pmON.rfind('\\\\')\n pmON = pmON[:YRbF] + '/_system.dat'\n return pmON", "def p...
[ "0.58475286", "0.5715946", "0.5705581", "0.5703303", "0.56880635", "0.56794685", "0.56205666", "0.55710655", "0.5570294", "0.5537565", "0.5529088", "0.5529088", "0.55217963", "0.55210656", "0.55130935", "0.55007106", "0.5495716", "0.548964", "0.54728615", "0.5468049", "0.5443...
0.85837257
0
Sets the spectator to the same transform as the scene camera.
def I4Fh(YKHO) -> None: pMvM = YKHO.carla_world.get_spectator() if pMvM is not None and YKHO.scene_camera is not None: pMvM.set_transform(YKHO.scene_camera.get_transform())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GZeS(YKHO, yDvq=None):\n if yDvq is not None:\n YKHO._camera = yDvq\n YKHO.shared_program.frag['camtf'] = YKHO._camera.transform\n YKHO.update()", "def rxPv(YKHO, ZylS):\n YKHO.camera.SetTransform(ZylS)", "def yDvq(YKHO):\n YKHO.spectrum = YKHO.spectrum", "def B97e(YKHO):\n ...
[ "0.6693841", "0.66800976", "0.64893913", "0.6344048", "0.6251404", "0.6172365", "0.6122815", "0.61193395", "0.6099135", "0.6093104", "0.6051362", "0.6020996", "0.59894603", "0.59174716", "0.58880925", "0.5878636", "0.5878628", "0.58343166", "0.58264905", "0.5802502", "0.57766...
0.82007277
0
Fill input_neurons, connections and weights.
def n8cN(YKHO): for QZnA in YKHO.links: if YKHO.is_input_neuron(QZnA.from_neuron_id): YKHO.input_neurons.add(QZnA.from_neuron_id) if QZnA.to_neuron_id not in YKHO.weights: YKHO.weights[QZnA.to_neuron_id] = [] YKHO.weights[QZnA.to_neuron_id].append(QZnA.weight) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n YKHO._q_neuron.h(YKHO._weights)\n YKHO._q_neuron.x(YKHO._weights)", "def vB93(YKHO, zi3C=None, JfXe=hy_W, F_DT=j4Zs):\n if zi3C is None:\n zi3C = YKHO.INPUT_SIZE\n XTYK = zi3C + 1\n YKHO.weights = oyIN.random.rand(YKHO.size, XTYK) * (F_DT - JfXe) + JfXe", "def sTi3(YKHO)...
[ "0.6922085", "0.65574825", "0.65548414", "0.6432655", "0.638703", "0.6355265", "0.63380504", "0.6245074", "0.6233093", "0.62165856", "0.6196188", "0.61734307", "0.6107525", "0.6087016", "0.6066833", "0.60574853", "0.60570484", "0.6044387", "0.6037842", "0.6036587", "0.6014161...
0.6002942
21
Check if all inputs are initialized.
def GfdN(YKHO, KGZl, ql7k): for jHef in KGZl: if not YKHO.is_input_neuron(jHef) and jHef not in ql7k: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G96d(YKHO) -> bool:\n return len(YKHO) > 0", "def KeU_(YKHO) -> bool:\n return YKHO._exchange_params_by_currency_id is not None and YKHO._utility_params_by_good_id is not None and (YKHO._transaction_fees is not None)", "def kLeO(YKHO):\n return len(YKHO.ops) > 0", "def hVrC(YKHO):\n ckoU = Zy...
[ "0.7155936", "0.7022412", "0.6944451", "0.6889416", "0.6787919", "0.6779226", "0.6707976", "0.66438425", "0.6642688", "0.65858096", "0.65681076", "0.65224695", "0.6513835", "0.6378538", "0.6378391", "0.6349154", "0.6322953", "0.6277625", "0.6260629", "0.62543523", "0.6239616"...
0.0
-1
Check if 'neuron_id' neuron is output of graph.
def GtBT(YKHO, EqaN): for HgE9 in YKHO.neurons: if HgE9.neuron_id == EqaN: if HgE9.neuron_type == bFD1.OUTPUT: return True else: return False return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UnTV(YKHO) -> bool:\n return YKHO._isoutput", "def eECI(YKHO, EqaN):\n for HgE9 in YKHO.neurons:\n if HgE9.neuron_id == EqaN:\n if HgE9.neuron_type == bFD1.INPUT:\n return True\n else:\n return False\n return False", "def r3gm(Q6kx):\n ...
[ "0.6803226", "0.65187585", "0.64247227", "0.5959485", "0.58313245", "0.58175683", "0.55500925", "0.55288786", "0.55288786", "0.54958236", "0.548239", "0.5438185", "0.54235095", "0.5401488", "0.5381885", "0.5344562", "0.53232133", "0.52948266", "0.52546155", "0.52187455", "0.5...
0.8887838
0
Presents the impedance image as a matplotlib plot.
def i5J1(YKHO, ZHfW=oyIN.ones((32, 32), dtype=bool)): LNo8 = oyIN.copy(YKHO.__image) LNo8[~ZHfW] = 0 QrM1.imshow(LNo8, aspect='auto') QrM1.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj9G(YKHO):\n YKHO.plotOfSpect().plot()", "def KLsF(YKHO):\n LZpg = QrM1.figure()\n for YRbF in range(len(YKHO._frequency)):\n QrM1.plot(YKHO._frequency[YRbF], YKHO._intensity[YRbF], label='%sv' % YKHO._voltages[YRbF][0])\n QrM1.legend(loc='upper left')\n LZpg.suptitle('Intensity-Freque...
[ "0.71757454", "0.7069358", "0.70326424", "0.6797299", "0.66540664", "0.6649923", "0.6649877", "0.6641772", "0.6579315", "0.65746015", "0.65706444", "0.6557098", "0.65474236", "0.65076804", "0.645055", "0.645055", "0.645055", "0.6423081", "0.6389563", "0.63769984", "0.63727075...
0.0
-1
Normalize a quaternion and return the angle and axis params metrology object
def iNAm(SxVy): vexM = SppC.col(SxVy.orientation).normalize() return vexM.unit_quaternion_as_axis_and_angle(deg=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HAlb(BV7b):\n return BV7b / n1iB.QuatMag(BV7b)", "def NkkI(vexM):\n slpS = vexM[0]\n CkYf = 1 / oyIN.sqrt(vexM[0, 0] ** 2 + vexM[0, 1] ** 2 + vexM[0, 2] ** 2 + vexM[0, 3] ** 2)\n 'q[0,0] = norm*q[0,0]\\n q[0,1] = norm*q[0,1]\\n q[0,2] = norm*q[0,2]\\n q[0,3] = norm*q[0,3]'\n LM4N = Ck...
[ "0.69806147", "0.695885", "0.6355016", "0.6323433", "0.6288712", "0.62210345", "0.61655045", "0.6087717", "0.6079813", "0.60514957", "0.59941876", "0.5927876", "0.5924707", "0.58999366", "0.5896174", "0.58830637", "0.5868482", "0.5856674", "0.57758343", "0.5760341", "0.574608...
0.54842
37
Creates an external reference from the given instruction. instruction the instruction operandIndex the operand index on the instruction libraryName the name of the library being referred externalLabel the name of function in the library being referred externalAddr the address of the function in the library being referr...
def BF3I(YKHO, LE47: ghidra.program.model.listing.Instruction, Mu4_: int, yfme: unicode, kSh6: unicode, XTh3: ghidra.program.model.address.Address, NYLc: ghidra.program.model.symbol.RefType) -> RnTg.program.model.symbol.Reference: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BF3I(YKHO, LE47: ghidra.program.model.listing.Instruction, Mu4_: int, yfme: unicode, kSh6: unicode, XTh3: ghidra.program.model.address.Address) -> RnTg.program.model.symbol.Reference:\n ...", "def BF3I(YKHO, nPrm: ghidra.program.model.listing.Data, yfme: unicode, kSh6: unicode, XTh3: ghidra.program.model....
[ "0.87265146", "0.72131056", "0.6449024", "0.61487925", "0.60750306", "0.6015299", "0.5728191", "0.5526734", "0.53574234", "0.48581973", "0.4724259", "0.47221014", "0.4610276", "0.4562738", "0.45174286", "0.4422584", "0.44051036", "0.43972808", "0.4387322", "0.43597233", "0.43...
0.8897761
0
Finds the first occurrence of the byte starting from the address. If the start address is null, then the find will start from the minimum address of the program. start the address to start searching value the byte to search for the first address where the byte was found
def neBz(YKHO, yKcO: ghidra.program.model.address.Address, BWXx: int) -> RnTg.program.model.address.Address: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gb2X(YKHO, yKcO: ghidra.program.model.address.Address, Gbkb: unicode) -> RnTg.program.model.address.Address:\n ...", "def hEvI(YKHO, _DrS, bhgr=0, FStR=None):\n if bhgr % 8:\n raise guLE('Unable to search bytes with address with bit granularity')\n u54L = len(_DrS)\n zNig = max(3 * u54L, 4...
[ "0.7684179", "0.671259", "0.6681241", "0.6663498", "0.6631953", "0.6589137", "0.6444344", "0.6444344", "0.6444344", "0.63786626", "0.6363347", "0.6025047", "0.6010249", "0.598586", "0.58571136", "0.5827753", "0.58260363", "0.5787293", "0.57830197", "0.5758782", "0.5749183", ...
0.7353447
1
Finds the first occurrence of the byte array sequence starting from the address. If the start address is null, then the find will start from the minimum address of the program. start the address to start searching values the byte array sequence to search for the first address where the byte was found, or null if the by...
def neBz(YKHO, yKcO: ghidra.program.model.address.Address, hkxX: List[int]) -> RnTg.program.model.address.Address: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gb2X(YKHO, yKcO: ghidra.program.model.address.Address, Gbkb: unicode) -> RnTg.program.model.address.Address:\n ...", "def gb2X(YKHO, yKcO: ghidra.program.model.address.Address, Gbkb: unicode, itmy: int, KYa1: int) -> x1iM[RnTg.program.model.address.Address]:\n ...", "def hEvI(YKHO, _DrS, bhgr=0, FStR...
[ "0.7610344", "0.6906941", "0.6847389", "0.68451124", "0.68314576", "0.6481463", "0.6454282", "0.5965639", "0.5957974", "0.5928105", "0.58109456", "0.5749604", "0.5678065", "0.56771994", "0.5615114", "0.5615114", "0.5615114", "0.56086063", "0.55819035", "0.5539475", "0.5514472...
0.5986277
7
Returns the defined data after the specified data or null if no data exists. data preceeding data the defined data after the specified data or null if no data exists
def sGEE(YKHO, nPrm: ghidra.program.model.listing.Data) -> RnTg.program.model.listing.Data: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q6Vk(YKHO, nPrm: ghidra.program.model.listing.Data) -> RnTg.program.model.listing.Data:\n ...", "def DOuq(YKHO, XP5J):\n jvSB = YKHO.tail\n if XP5J == jvSB:\n return 'null'\n while jvSB != XP5J:\n jvSB = jvSB.prev\n return jvSB.next.data", "def Qx9C(YPqY: ghidra.program.model.l...
[ "0.6330083", "0.5869026", "0.5868395", "0.58567077", "0.5699867", "0.5693346", "0.5595454", "0.5493963", "0.5408712", "0.5387112", "0.53542656", "0.5330714", "0.53301686", "0.5301835", "0.5296236", "0.52721006", "0.5197284", "0.5168569", "0.51626754", "0.51546884", "0.5115191...
0.7079639
0
Returns the EOL comment at the specified address. The comment returned is the raw text of the comment. Contrastingly, calling { GhidraScriptgetEOLCommentAsRendered(Address)} will return the text of the comment as it is rendered in the display. address the address to get the comment the EOL comment at the specified addr...
def oUoY(YKHO, UTX6: ghidra.program.model.address.Address) -> QMSQ: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ALkO(YKHO, UTX6: ghidra.program.model.address.Address, aM_I: unicode) -> bool:\n ...", "def qY_u(Emd4, JZXy):\n WKvO = _CsW.EOL_COMMENT.search(JZXy)\n if WKvO:\n WKvO = WKvO.group(1).strip()\n return WKvO", "def fySJ(YKHO):\n ArpE = YKHO.GetEOLMode()\n if ArpE == lnPd.stc.STC_EOL_C...
[ "0.613984", "0.60569876", "0.57944787", "0.5420539", "0.54104763", "0.5302519", "0.51999146", "0.50140053", "0.50017864", "0.49963728", "0.49786046", "0.49392855", "0.487796", "0.48645896", "0.48497188", "0.48276246", "0.47933087", "0.47920048", "0.47890398", "0.47745374", "0...
0.80111694
0
Returns the nonfunction namespace with the given name contained inside the specified parent namespace. Pass null for namespace to indicate the global namespace. parent the parent namespace, or null for global namespace namespaceName the requested namespace's name the namespace with the given name or null if not found
def IUo7(YKHO, _AKB: ghidra.program.model.symbol.Namespace, BdRG: unicode) -> RnTg.program.model.symbol.Namespace: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _63S(YKHO):\n mWFP = YKHO._name if YKHO._name is not None else '<unnamed>'\n if YKHO._parent is None:\n return mWFP\n return '.'.join([YKHO._parent.namespace, mWFP])", "def padd(YKHO, _63S):\n dSH5 = YKHO.__inScopePrefixes.get(_63S)\n if dSH5:\n return next(iter(dSH5))\n retur...
[ "0.58934504", "0.5573258", "0.5546954", "0.55426323", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5481534", "0.5445565", ...
0.7320554
0
Returns the next nondefault primary symbol defined after the given symbol. symbol the symbol to use as a starting point the next nondefault primary symbol
def sVOK(YKHO, o61b: ghidra.program.model.symbol.Symbol) -> RnTg.program.model.symbol.Symbol: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zf2s(YKHO):\n try:\n return YKHO.rule.rightside[YKHO.position]\n except IndexError:\n return None", "def Q_td(YKHO, o61b: ghidra.program.model.symbol.Symbol) -> RnTg.program.model.symbol.Symbol:\n ...", "def SLzb(YKHO, o61b):\n if o61b in YKHO.labels:\n return YKHO.labels[o...
[ "0.6791333", "0.66894335", "0.6456969", "0.6284626", "0.62626696", "0.615903", "0.6131903", "0.6094906", "0.6085728", "0.5935433", "0.5836635", "0.5812803", "0.58067584", "0.5806348", "0.57906795", "0.57865864", "0.5655314", "0.5638283", "0.56314355", "0.5613195", "0.5597356"...
0.69825155
0
Returns the PRIMARY symbol at the specified address, or null if no symbol exists. address the symbol address the PRIMARY symbol at the specified address, or null if no symbol exists
def c1B5(YKHO, UTX6: ghidra.program.model.address.Address) -> RnTg.program.model.symbol.Symbol: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c1B5(YKHO, UTX6: ghidra.program.model.address.Address, mWFP: unicode) -> RnTg.program.model.symbol.Symbol:\n ...", "def c1B5(YKHO, UTX6: ghidra.program.model.address.Address, mWFP: unicode, _63S: ghidra.program.model.symbol.Namespace) -> RnTg.program.model.symbol.Symbol:\n ...", "def pIuJ(YKHO, UTX6)...
[ "0.7118037", "0.69664484", "0.6934358", "0.6779083", "0.6627822", "0.6524853", "0.64565396", "0.6299099", "0.6273917", "0.6176535", "0.5900066", "0.5848714", "0.5844718", "0.58184236", "0.577251", "0.5723215", "0.5671811", "0.55998236", "0.555378", "0.5506501", "0.54620534", ...
0.7498988
0
Returns the symbol with the specified address and name, or null if no symbol exists. address the symbol address name the symbol name the symbol with the specified address and name, or null if no symbol exists Since the same label name can be at the same address if in a different namespace, this method is ambiguous. Use...
def c1B5(YKHO, UTX6: ghidra.program.model.address.Address, mWFP: unicode) -> RnTg.program.model.symbol.Symbol: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c1B5(YKHO, UTX6: ghidra.program.model.address.Address, mWFP: unicode, _63S: ghidra.program.model.symbol.Namespace) -> RnTg.program.model.symbol.Symbol:\n ...", "def c1B5(YKHO, UTX6: ghidra.program.model.address.Address) -> RnTg.program.model.symbol.Symbol:\n ...", "def DUQK(YKHO, mWFP: unicode, _63S:...
[ "0.8543169", "0.8059816", "0.73156196", "0.70097697", "0.6767718", "0.6752568", "0.6725872", "0.6598749", "0.6469485", "0.63727325", "0.635471", "0.62335163", "0.6111809", "0.6063753", "0.60246027", "0.59156114", "0.5914255", "0.5818512", "0.58126324", "0.5704142", "0.5614748...
0.83530015
1
Returns the previous nondefault primary symbol defined before the given symbol. symbol the symbol to use as a starting point the previous nondefault primary symbol
def Q_td(YKHO, o61b: ghidra.program.model.symbol.Symbol) -> RnTg.program.model.symbol.Symbol: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DFRo(YKHO):\n if YKHO.position == 0:\n return None\n return YKHO.rule.rightside[YKHO.position - 1]", "def Q_td(YKHO, UTX6: ghidra.program.model.address.Address) -> RnTg.program.model.symbol.Symbol:\n ...", "def sVOK(YKHO, o61b: ghidra.program.model.symbol.Symbol) -> RnTg.program.model.symbo...
[ "0.7149908", "0.7057071", "0.6860729", "0.60245156", "0.57987744", "0.5740305", "0.565969", "0.5576915", "0.5576642", "0.5552749", "0.55387074", "0.5532993", "0.55312043", "0.5488226", "0.5456294", "0.5441495", "0.5435977", "0.54265016", "0.5386329", "0.53825027", "0.532813",...
0.8077678
0
Returns a list of all the symbols with the given name in the given namespace. name the name of the symbols to retrieve. namespace the namespace containing the symbols, or null for the global namespace. a list of all the symbols with the given name in the given namespace.
def OBX4(YKHO, mWFP: unicode, _63S: ghidra.program.model.symbol.Namespace) -> x1iM[RnTg.program.model.symbol.Symbol]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DUQK(YKHO, mWFP: unicode, _63S: ghidra.program.model.symbol.Namespace) -> RnTg.program.model.symbol.Symbol:\n ...", "def LRuN(YKHO, mWFP, jnKv=False, DrBN=False):\n Aofo = []\n for aDi_ in YKHO.symbols:\n if aDi_.is_stab and (not jnKv):\n continue\n if DrBN:\n if ...
[ "0.6175663", "0.5840355", "0.57483524", "0.5426379", "0.5353111", "0.5346719", "0.52792764", "0.52465034", "0.5242173", "0.5199163", "0.49872243", "0.4956325", "0.4953265", "0.4941523", "0.4894663", "0.48839074", "0.48797667", "0.4856329", "0.4833302", "0.48122814", "0.479823...
0.802945
0
filter boxes that has score smaller than threshold
def DAxk(avn4: torch.Tensor, oUSw: torch.Tensor, sepv: torch.Tensor, gwAu: float=0.6): Ep8u, HT_T, bGrB, TTT5, HT4J = avn4.shape nZlY = avn4 * sepv grDl = ht2j.argmax(nZlY, dim=2, keepdim=True) L6_0, bGrB = ht2j.max(nZlY, dim=2, keepdim=True) Wgxk = L6_0 > gwAu KndY = grDl[Wgxk] cCrA = L6_0[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EUsT(YKHO, AjsF, oUSw, cCrA, KndY):\n exwG = len(KndY)\n DNs0 = []\n for YRbF in range(exwG):\n if cCrA[YRbF] >= AjsF:\n DNs0.append(YRbF)\n F29b = oUSw[DNs0, ...]\n ox7g = cCrA[DNs0, ...]\n ADUU = KndY[DNs0, ...]\n return (F29b, ox7g, ADUU)", "def Urop(YKHO, AjsF, oUSw...
[ "0.7665852", "0.75487936", "0.7507825", "0.72497696", "0.720242", "0.6917024", "0.6892944", "0.6862352", "0.6843755", "0.68054396", "0.68054396", "0.67897505", "0.66567194", "0.6593515", "0.65733504", "0.6560851", "0.6532275", "0.64954346", "0.6458464", "0.64407855", "0.64195...
0.6337917
22
Test that the delete cases will not delete the cases in dryrun mode
def RCvk(T1Ea, kwIT, Yc7M: Store, XN37, KTnm): J8Aq = XN37.add_case(Yc7M) r6gR = J8Aq.internal_id mvm2 = XN37.add_sample(Yc7M) XN37.add_relationship(store=Yc7M, case=J8Aq, sample=mvm2) KTnm.set_level(G9jH.DEBUG) T1Ea.invoke(gopU, ['--sample-identifier', 'name', mvm2.name, '--dry-run'], obj=kwIT)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RmeF(YKHO):\n pass", "def uLcu(YKHO):\n pass", "def _4cr(YKHO):\n pass", "def Umrv(YKHO):\n pass", "def F2RV(YKHO):\n YKHO.authenticate(YKHO.user)\n A5W7.objects.all().delete()\n geh0 = YKHO.client.delete(YKHO.url)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YKHO...
[ "0.80769163", "0.7961243", "0.72582936", "0.7074489", "0.70567155", "0.70036924", "0.6998968", "0.6951286", "0.6896803", "0.6825236", "0.6816766", "0.6739138", "0.6710673", "0.6662743", "0.66344184", "0.6621065", "0.6616519", "0.6612717", "0.6605979", "0.6579803", "0.65721023...
0.79310447
2
Given a matrix of number values, normalize them so that a column sums to 1.
def zdGZ(SppC): HN6s = SppC.shape[0] for fvDH in Ni9Y(SppC.shape[1]): i9Rn = float(sum(SppC[:, fvDH])) for rdlD in Ni9Y(HN6s): try: SppC[rdlD][fvDH] = SppC[rdlD][fvDH] / i9Rn except ZeroDivisionError: pass return SppC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(mXr4):\n FtBq = mXr4.sum(axis=1)\n try:\n assert oyIN.count_nonzero(FtBq) == oyIN.shape(FtBq)[0]\n except Exception:\n raise Exception('Error while normalizing. Row(s) sum to zero')\n Q9wQ = mXr4 / FtBq[:, oyIN.newaxis]\n return Q9wQ", "def uvFh(mXr4):\n s1Ra = oyIN.nan_t...
[ "0.7700347", "0.76937604", "0.756896", "0.7331542", "0.7152201", "0.7131932", "0.71012294", "0.69983745", "0.6818826", "0.6818233", "0.67679644", "0.6751211", "0.6596699", "0.6595785", "0.656642", "0.6537499", "0.6512866", "0.65080035", "0.6505867", "0.65034187", "0.6479857",...
0.7848991
0
Function to convert a document to a sequence of words and returns a list
def jTrp(l5Ny, aUcs=True): l5Ny = ZbWC.sub('[^a-zA-Z]', ' ', l5Ny) V22M = l5Ny.lower().split() if aUcs: ntLm = set(di0c.words('english')) V22M = [yzQ0 for yzQ0 in V22M if not yzQ0 in ntLm] Fg_i = [] mkhU = KQd3 for GIN8 in V22M: Fg_i.append(mkhU.stem(GIN8)) return Fg_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R4j4(ol4k):\n z_aV = []\n for A97Q in ol4k:\n z_aV.append(A97Q.split())\n print('The collection of documents contains {} documents'.format(len(z_aV)))\n return z_aV", "def pd6c(l5Ny):\n return [yzQ0 for yzQ0 in l5Ny.split()]", "def wr3U(C13M):\n eOtH = Dhdw.word_tokenize(C13M)\n ...
[ "0.7170209", "0.6887493", "0.66005576", "0.65981084", "0.65715927", "0.652522", "0.64660454", "0.6453031", "0.6432074", "0.63567215", "0.6354902", "0.63389206", "0.62874836", "0.6284675", "0.6282173", "0.6270023", "0.6256448", "0.6236804", "0.62314737", "0.62290454", "0.62191...
0.61522865
29
Initialises the sensor and enables all measurement parameters. See AtlasI2C's (super class) __init__ method for more information.
def FIMM(YKHO, UTX6: int=100, xUaU: str='EC', mWFP: str='Atlas_EC_sensor', Pjr8: int=1) -> None: super().__init__(moduletype=xUaU, name=mWFP, address=UTX6, bus=Pjr8) for xqoZ in YKHO._PARAMS: YKHO.query(f'O,{xqoZ},1') ITS7.sleep(2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._read_calibration_data()\n YKHO.configure_sensor(FFtR.x08, bmQx.x16, C6OU.x08, PQ_4.FC_003, 250, 250)", "def FIMM(YKHO):\n super().__init__()\n YKHO.active = True\n YKHO.driver = jJDz.instance()\n YKHO.sensor_manager = T4Tx.instance()\n YKHO.pwm = TdsM.PCA9685(address=...
[ "0.7845792", "0.7606045", "0.72833455", "0.7201857", "0.71302646", "0.71291983", "0.7098983", "0.70801467", "0.6971887", "0.69636655", "0.69636565", "0.6954733", "0.69105434", "0.690402", "0.6874347", "0.68508506", "0.6831174", "0.6827517", "0.68186814", "0.68120044", "0.6808...
0.68389744
16
Explicitly returns the total dissolved solids measurement.
def z_sM(YKHO) -> float: try: O0Pg = YKHO.get_data() nPrm = O0Pg[1] if nPrm.endswith('\x00'): nPrm = nPrm.rstrip('\x00') return float(nPrm) else: return float(nPrm) except Exception as err: print(f'get_tds error: {XObx}') return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fjyt(YKHO) -> float:\n return YKHO.stock * 1.0 / YKHO.final", "def u5lL(YKHO):\n wwyu = oyIN.array(YKHO.pre_intertie_generation_fuel_used[:YKHO.actual_project_life])\n return -oyIN.array(YKHO.lost_heat_recovery[:YKHO.actual_project_life]) + wwyu", "def T_Tn(YKHO):\n return YKHO.serie.isna().sum...
[ "0.6529836", "0.6011122", "0.59037113", "0.58882004", "0.58798367", "0.5844591", "0.580448", "0.5773368", "0.5756803", "0.5729787", "0.5667339", "0.5657882", "0.56354713", "0.5595755", "0.55272204", "0.5501631", "0.5491182", "0.54693073", "0.54688644", "0.5458824", "0.5443795...
0.0
-1
Explicitly returns the salinity measurement.
def sqsa(YKHO) -> float: try: O0Pg = YKHO.get_data() nPrm = O0Pg[2] if nPrm.endswith('\x00'): nPrm = nPrm.rstrip('\x00') return float(nPrm) else: return float(nPrm) except Exception as err: print(f'get_salinity error: {XObx}') r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQPJ(YKHO):\n NArs = YKHO.parameters.keys()\n if 'seawater_salinity' in NArs:\n return\n else:\n if 'water_specific_conductance' in NArs:\n Kt_s = 25.0\n Q3Ge = YKHO.data['water_specific_conductance'].rescale(MuIv.mScm).magnitude\n elif 'water_electrical_cond...
[ "0.760306", "0.5587526", "0.5300624", "0.5255387", "0.52513635", "0.52203405", "0.52034074", "0.5162999", "0.51577854", "0.515597", "0.50914776", "0.50687623", "0.5066604", "0.5053226", "0.504799", "0.5038065", "0.50285316", "0.5027283", "0.5007004", "0.496554", "0.49261078",...
0.7601538
1
Initialises the sensor and enables all measurement parameters. See AtlasI2C's (super class) __init__ method for more information.
def FIMM(YKHO, UTX6: int=97, xUaU: str='DO', mWFP: str='Atlas_DO_sensor', Pjr8: int=1) -> None: super().__init__(address=UTX6, moduletype=xUaU, name=mWFP, bus=Pjr8) for xqoZ in YKHO._PARAMS: YKHO.query(f'O,{xqoZ},1') ITS7.sleep(2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._read_calibration_data()\n YKHO.configure_sensor(FFtR.x08, bmQx.x16, C6OU.x08, PQ_4.FC_003, 250, 250)", "def FIMM(YKHO):\n super().__init__()\n YKHO.active = True\n YKHO.driver = jJDz.instance()\n YKHO.sensor_manager = T4Tx.instance()\n YKHO.pwm = TdsM.PCA9685(address=...
[ "0.78472203", "0.7606708", "0.7284979", "0.7203293", "0.71310127", "0.7130854", "0.7100856", "0.7082016", "0.6971095", "0.69658184", "0.69632506", "0.69555503", "0.6911671", "0.6904986", "0.6874802", "0.6851362", "0.6839328", "0.6832115", "0.6828661", "0.68184614", "0.6812309...
0.6459062
38
Explicitly returns the dissolved oxygen measurement.
def wQrE(YKHO) -> float: try: O0Pg = YKHO.get_data() nPrm = O0Pg[0] if nPrm.endswith('\x00'): nPrm = nPrm.rstrip('\x00') return float(nPrm) else: return float(nPrm) except Exception as err: print(f'get_do error: {XObx}') return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wxfz(YKHO):\n d6pt = YKHO.var_index(3)\n return YKHO.var_data(d6pt)", "def Kqei(YKHO):\n if YKHO._dispersion_virial is None:\n YKHO._dispersion_virial = YKHO._get_potential(YKHO._system._dispersion)\n return YKHO._dispersion_virial", "def _2QM(Wxfz: int, Jbj_: entity.MeasurementStatistic...
[ "0.6885519", "0.64309716", "0.5605628", "0.55727637", "0.54383785", "0.5405203", "0.5381485", "0.53641456", "0.534154", "0.531464", "0.5292176", "0.5291588", "0.52827483", "0.5280829", "0.52319384", "0.52185345", "0.5200969", "0.5181798", "0.51625675", "0.5154534", "0.5154534...
0.0
-1
Test deleting selected points appropriately sets self._value Rewrite of test_move
def xs59(YKHO, nPrm, Hufi, XGUG): a4Ln(oyIN.max(Hufi) < nPrm.shape[0]) XFC4 = jth9(nPrm) gEmA = EKFh(nPrm) XGUG = XGUG[:nPrm.shape[1]] gEmA._move(Hufi, list(oyIN.zeros(nPrm.shape[1]))) gEmA._move(Hufi, list(XGUG)) gEmA._drag_start = None Xgmb(gEmA.data[Hufi], XFC4[Hufi] + XGUG) mi3T ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmcx(YKHO, nPrm, jhgU, BWXx):\n a4Ln(oyIN.max(jhgU) < nPrm.shape[0])\n jhgU = set(jhgU)\n gEmA = EKFh(nPrm)\n gEmA._value = BWXx\n gEmA.selected_data = jhgU\n if BWXx in gEmA.selected_data:\n gEmA.remove_selected()\n assert gEmA._value is None\n else:\n gEmA.remove_sel...
[ "0.7307506", "0.6426495", "0.6357649", "0.62664276", "0.60979724", "0.6059317", "0.59759307", "0.59188384", "0.58752334", "0.58727556", "0.5840528", "0.5825067", "0.57859707", "0.5696689", "0.56769335", "0.5652956", "0.5629492", "0.56145257", "0.5607111", "0.55676585", "0.556...
0.53934395
33
Test setting layer opacity. Rewrite of test_opacity
def NCpH(YKHO, nPrm, H_YN, DHAn): gEmA = EKFh(nPrm) assert gEmA.opacity == 1.0 gEmA.opacity = H_YN assert gEmA.opacity == H_YN gEmA = EKFh(nPrm, opacity=H_YN) assert gEmA.opacity == H_YN gEmA.opacity = DHAn assert gEmA.opacity == DHAn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iB6U(YKHO):\n ZfUD = YKHO.item()\n return 255 if ZfUD is None else ZfUD.getColor().alpha()", "def BCp6(YKHO):\n if YKHO.isIsolateHidden():\n return 0.1\n BCp6 = super(xn4r, YKHO).opacity()\n gEmA = YKHO.layer()\n if gEmA:\n return gEmA.opacity() * BCp6\n return BCp6", "de...
[ "0.6738789", "0.6504551", "0.64268667", "0.6392363", "0.630561", "0.6244044", "0.6160838", "0.61147153", "0.6098059", "0.6053272", "0.60126334", "0.6004274", "0.5933818", "0.58957654", "0.5846547", "0.5846546", "0.5839202", "0.5818461", "0.58132416", "0.5718951", "0.56912255"...
0.8052617
0
Create a queue on the AMQP broker.
def De13(Q64Y: str, oSfo: bool=True, TfZU: bool=False, MQRi: int=0, X9mI: Optional[dict]=None, QaO6: Optional[str]=None): C3MK: dict = {'type': 'queue', 'name': Q64Y, 'properties': {'durable': oSfo, 'auto-delete': TfZU, 'qpid.priorities': MQRi}} if X9mI: C3MK['properties'].update(X9mI) lTaB = LWoy(s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W_VD(YKHO, **B2fa):\n mWFP = YKHO.generate_random_name()\n return YKHO.clients('zaqar').queue(mWFP, **B2fa)", "def De13(YKHO):\n Q64Y = YKHO.generate_name()\n try:\n gGq6 = YKHO.sqs.create_queue(QueueName=Q64Y)\n except Exception as e:\n raise RuntimeError('SQS could create queue...
[ "0.7759953", "0.76620424", "0.74547446", "0.7429228", "0.7178029", "0.7092181", "0.70384204", "0.6845889", "0.66713524", "0.6627267", "0.6616343", "0.660781", "0.66019297", "0.65967005", "0.6575529", "0.6512098", "0.64877474", "0.64667577", "0.64409876", "0.64339656", "0.6416...
0.7877893
0
Delete a queue on the AMQP broker.
def ecnt(Q64Y: str, QaO6: Optional[str]=None): lTaB = LWoy(s15j, 'qmf.default.direct', QaO6) crFA = P82s(ki46(QaO6), 'delete', {'type': 'queue', 'name': Q64Y}) lTaB.call(crFA, fCoM(seconds=5))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ecnt(x0hE, umbM, gGq6):\n x0hE.delete_queue(umbM, gGq6)", "def ecnt(YKHO, Q64Y):\n CZp0 = YKHO.__broker.getAmqpSession()\n CZp0.queue_delete(Q64Y)", "def ecnt(YKHO, Q64Y: str) -> None:\n if Q64Y is None:\n raise TypeError('Queue name cannot be None.')\n with YKHO.get_conn() as glPg:\n...
[ "0.82714295", "0.82505196", "0.7890872", "0.7628092", "0.7511307", "0.7469112", "0.73099965", "0.7265564", "0.7256086", "0.721045", "0.70689774", "0.70460916", "0.70426184", "0.6875064", "0.67025673", "0.6665003", "0.66619", "0.6634253", "0.6565379", "0.6474421", "0.64101213"...
0.8067389
2
Get square of distance between two points.
def GbPl(XHsu, jDcc): return YU_E.vtkMath().Distance2BetweenPoints(XHsu, jDcc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _87q(EBgd, HpuQ):\n Jw7X = EBgd[0] - HpuQ[0]\n eUWA = EBgd[1] - HpuQ[1]\n return Jw7X * Jw7X + eUWA * eUWA", "def k9Tn(lCHq: np.ndarray, ANJu: np.ndarray) -> float:\n return oyIN.sqrt(oyIN.sum(oyIN.square(lCHq - ANJu)))", "def n5ky(jzdc, Fg_i):\n return oyIN.sum((jzdc - Fg_i) ** 2)", "def ...
[ "0.81768996", "0.8067343", "0.80050296", "0.7846344", "0.7824697", "0.7808076", "0.7787563", "0.7758734", "0.7727676", "0.7725046", "0.77139354", "0.76792496", "0.76538515", "0.7629471", "0.7613899", "0.75866926", "0.75758594", "0.7572667", "0.7556853", "0.75537413", "0.75418...
0.0
-1
Is the given coordinate pair part of the active piece
def m1Xc(YKHO, jNOo): return jNOo in YKHO.active_piece
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UgTN(YKHO, XLBv):\n for mrj1 in YKHO.game_pieces:\n if XLBv[0] == mrj1.x and XLBv[1] == mrj1.y:\n return True\n return False", "def sjXf(YKHO, BHsk):\n return 0 <= BHsk[0] - YKHO.position[0] < YKHO.size[0] and 0 <= BHsk[1] - YKHO.position[1] < YKHO.size[1]", "def mK0k(YKHO, XP5J)...
[ "0.76000845", "0.7163134", "0.69195896", "0.6903677", "0.6842184", "0.68064684", "0.6801216", "0.6784371", "0.67597187", "0.67326784", "0.673139", "0.67246735", "0.6704293", "0.669905", "0.6688759", "0.6688759", "0.66738254", "0.664887", "0.6647306", "0.66369826", "0.66253597...
0.7501437
1
gets the remainder of the column/row above the given empty cell
def iYZ_(YKHO, jNOo, XSoh): iVRZ = [] WKvO = jNOo[0] LVAh = jNOo[1] if XSoh == 'down': for YRbF in range(LVAh): iVRZ.append((WKvO, YRbF)) elif XSoh == 'right': for YRbF in range(WKvO): iVRZ.append((YRbF, LVAh)) elif XSoh == 'up': for YRbF in range(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def anoq(YKHO):\n for rdlD in range(len(YKHO.grid)):\n for fvDH in range(len(YKHO.grid[0])):\n if YKHO.grid[rdlD][fvDH] == 0:\n return (rdlD, fvDH)\n return None", "def qwDI(Cs6h):\n for YRbF, rdlD in enumerate(Cs6h):\n for r845, fvDH in enumerate(rdlD):\n ...
[ "0.7481746", "0.7114454", "0.67013234", "0.6699966", "0.6622391", "0.64713335", "0.6275769", "0.62751794", "0.6237867", "0.6218996", "0.6191269", "0.61250126", "0.61220396", "0.605921", "0.6053533", "0.605102", "0.6016683", "0.6012835", "0.60045093", "0.5979188", "0.5955467",...
0.0
-1
Yield successive tuples of slices defining patches of size `patch_size` from an array of dimensions `image_size`. The iteration starts from position `start_pos` in the array, or starting at the origin if this isn't provided. Each patch is chosen in a contiguous grid using a rwomajor ordering.
def R_d2(N0ky: Sequence[int], FTrt: Sequence[int] | int, fE52: Sequence[int]=(), yHH9: Sequence[float] | float=0.0, H5Km: bool=True) -> jd6F[tuple[slice, ...], None, None]: GvCA = eTW8(N0ky, FTrt) for dQgj in kC6l(image_size=N0ky, patch_size=GvCA, start_pos=fE52, overlap=yHH9, padded=H5Km): yield tuple(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kC6l(N0ky: Sequence[int], FTrt: Sequence[int] | int | np.ndarray, fE52: Sequence[int]=(), yHH9: Sequence[float] | float | Sequence[int] | int=0.0, H5Km: bool=False):\n qC1Y = len(N0ky)\n GvCA = eTW8(N0ky, FTrt)\n fE52 = zJq9(fE52, qC1Y)\n yHH9 = ppK6(yHH9, qC1Y)\n if isinstance(yHH9[0], float):\...
[ "0.79494125", "0.78087676", "0.77887726", "0.76846087", "0.75430304", "0.74918747", "0.7249222", "0.71247375", "0.69680864", "0.69318867", "0.6909812", "0.6898304", "0.6818335", "0.661632", "0.6593302", "0.65002316", "0.6497946", "0.6409765", "0.6404261", "0.63914025", "0.635...
0.83764684
0
Enumerate all slices defining ND patches of size `patch_size` from an `image_size` input image.
def WPlR(N0ky: Sequence[int], FTrt: Sequence[int], _CL2: Sequence[int], uA3z: bool=True) -> list[tuple[slice, ...]]: ismU = len(N0ky) FTrt = eTW8(N0ky, FTrt) _CL2 = zJq9(_CL2, ismU) Y5ew = [] for YRbF in range(ismU): if _CL2[YRbF] == 0: Y5ew.append(1) else: mL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R_d2(N0ky: Sequence[int], FTrt: Sequence[int] | int, fE52: Sequence[int]=(), yHH9: Sequence[float] | float=0.0, H5Km: bool=True) -> jd6F[tuple[slice, ...], None, None]:\n GvCA = eTW8(N0ky, FTrt)\n for dQgj in kC6l(image_size=N0ky, patch_size=GvCA, start_pos=fE52, overlap=yHH9, padded=H5Km):\n yiel...
[ "0.7469868", "0.7403781", "0.7036501", "0.6862141", "0.6742089", "0.6596665", "0.65735835", "0.65036523", "0.64497256", "0.64474744", "0.6357949", "0.63469946", "0.6300832", "0.62972224", "0.6189399", "0.6175041", "0.6127527", "0.60534996", "0.6023363", "0.60180706", "0.59890...
0.7299419
2
Yield successive tuples of upper left corner of patches of size `patch_size` from an array of dimensions `image_size`. The iteration starts from position `start_pos` in the array, or starting at the origin if this isn't provided. Each patch is chosen in a contiguous grid using a rwomajor ordering.
def kC6l(N0ky: Sequence[int], FTrt: Sequence[int] | int | np.ndarray, fE52: Sequence[int]=(), yHH9: Sequence[float] | float | Sequence[int] | int=0.0, H5Km: bool=False): qC1Y = len(N0ky) GvCA = eTW8(N0ky, FTrt) fE52 = zJq9(fE52, qC1Y) yHH9 = ppK6(yHH9, qC1Y) if isinstance(yHH9[0], float): pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R_d2(N0ky: Sequence[int], FTrt: Sequence[int] | int, fE52: Sequence[int]=(), yHH9: Sequence[float] | float=0.0, H5Km: bool=True) -> jd6F[tuple[slice, ...], None, None]:\n GvCA = eTW8(N0ky, FTrt)\n for dQgj in kC6l(image_size=N0ky, patch_size=GvCA, start_pos=fE52, overlap=yHH9, padded=H5Km):\n yiel...
[ "0.76095116", "0.73907936", "0.73022735", "0.7009488", "0.69722086", "0.69101614", "0.6772371", "0.66692054", "0.66471446", "0.66047215", "0.65790373", "0.6522832", "0.65132904", "0.65106493", "0.6433519", "0.6314024", "0.62763387", "0.6177838", "0.615064", "0.61351013", "0.6...
0.78211236
0
Yield successive patches from `arr` of size `patch_size`. The iteration can start from position `start_pos` in `arr` but drawing from a padded array extended by the `patch_size` in each dimension (so these coordinates can be negative to start in the padded region). If `copy_back` is True the values from each patch are ...
def kNWG(ezWE: NdarrayOrTensor, FTrt: Sequence[int] | int=0, fE52: Sequence[int]=(), yHH9: Sequence[float] | float=0.0, DWLe: bool=True, Tuqy: str | None=PS4K.WRAP, **qIxt: dict) -> jd6F[tuple[tAlg, oyIN.ndarray], None, None]: from monai.transforms.croppad.functional import pad_nd GvCA = eTW8(ezWE.shape, FTrt) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kNWG(ezWE: np.ndarray, FTrt, fE52=(), DWLe: bool=True, Tuqy: str='wrap', **qIxt):\n FTrt = eTW8(ezWE.shape, FTrt)\n fE52 = zJq9(fE52, ezWE.ndim)\n xs_2 = oyIN.pad(ezWE, tuple(((XP5J, XP5J) for XP5J in FTrt)), Tuqy, **qIxt)\n pysv = tuple((KCHu + XP5J for KCHu, XP5J in zip(fE52, FTrt)))\n MmUg = ...
[ "0.83385926", "0.68494123", "0.6806408", "0.6449312", "0.63380164", "0.6212348", "0.60338795", "0.6004707", "0.5822879", "0.57809365", "0.5778019", "0.5760178", "0.57520765", "0.5708167", "0.5698727", "0.560494", "0.5602756", "0.5590409", "0.5579679", "0.55707896", "0.5552527...
0.8053652
1
Given an image of dimensions `image_size`, return a patch size tuple taking the dimension from `patch_size` if this is not 0/None. Otherwise, or if `patch_size` is shorter than `image_size`, the dimension from `image_size` is taken. This ensures the returned patch size is within the bounds of `image_size`. If `patch_si...
def eTW8(N0ky: Sequence[int], FTrt: Sequence[int] | int | np.ndarray) -> tuple[int, ...]: qC1Y = len(N0ky) GvCA = zJq9(FTrt, qC1Y) return tuple((min(NmYP, hnFq or NmYP) for NmYP, hnFq in zip(N0ky, GvCA)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eTW8(Htse, FTrt):\n qC1Y = len(Htse)\n try:\n vFkS = int(FTrt)\n FTrt = (vFkS,) * qC1Y\n except TypeError:\n FTrt = zJq9(FTrt, qC1Y)\n return tuple((min(NmYP, hnFq or NmYP) for NmYP, hnFq in zip(Htse, FTrt)))", "def GwOy(Wy7N, yYsq, FTrt):\n TVTK = Wy7N * FTrt\n H2v2 = ...
[ "0.72585624", "0.64543897", "0.6345915", "0.6267646", "0.6211953", "0.6186627", "0.6083222", "0.60726315", "0.6042673", "0.6015231", "0.5989551", "0.5926834", "0.5903823", "0.5815533", "0.5795002", "0.5792771", "0.57279307", "0.5701962", "0.56920725", "0.5666246", "0.5649929"...
0.8026187
0
collate a sequence of meta tensor sequences/dictionaries into a single batched metatensor or a dictionary of batched metatensor
def mc7S(Wc9F): if not isinstance(Wc9F, bdIy): raise NotImplementedError() ZKKV = cntZ(Wc9F) if isinstance(ZKKV, xmZQ): YrxP = VqTo(Wc9F) YrxP.meta = VqTo([YRbF.meta or bWwC.NONE for YRbF in Wc9F]) YrxP.applied_operations = [YRbF.applied_operations or bWwC.NONE for YRbF in Wc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uDGa(Wc9F):\n tf1m = 'batch must contain tensors, numbers, dicts or lists; found {}'\n BrfN = type(Wc9F[0])\n if isinstance(Wc9F[0], ht2j.Tensor):\n yvT9 = None\n Dn78 = True\n for tpio in range(Wc9F[0].dim()):\n yv6U = list(map(lambda WKvO: WKvO.size(tpio), Wc9F))\n ...
[ "0.66727114", "0.656687", "0.6550184", "0.6498206", "0.64383245", "0.6423776", "0.6359105", "0.62719196", "0.62543476", "0.6188792", "0.6178307", "0.61409694", "0.61102676", "0.6102395", "0.6079725", "0.6063359", "0.6062056", "0.6031711", "0.6028925", "0.6018516", "0.5989578"...
0.7449555
0
To make column norm of `affine` the same as `scale`. If diagonal is False, returns an affine that combines orthogonal rotation and the new scale. This is done by first decomposing `affine`, then setting the zoom factors to `scale`, and composing a new affine; the shearing factors are removed. If diagonal is True, retur...
def wfy5(rnv5: np.ndarray, NXpY: np.ndarray | Sequence[float], IjIm: bool=True): rnv5 = oyIN.array(rnv5, dtype=float, copy=True) if len(rnv5) != len(rnv5[0]): raise ValueError(f'affine must be n x n, got {len(rnv5)} x {len(rnv5[0])}.') i8Jr = oyIN.array(NXpY, dtype=float, copy=True) Csk6 = len(r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wfy5(rnv5, NXpY, IjIm: bool=True):\n rnv5 = oyIN.array(rnv5, dtype=float, copy=True)\n if len(rnv5) != len(rnv5[0]):\n raise ValueError('affine should be a square matrix')\n NXpY = oyIN.array(NXpY, dtype=float, copy=True)\n if oyIN.any(NXpY <= 0):\n raise ValueError('scale must be a s...
[ "0.7144264", "0.5994049", "0.59912354", "0.5915723", "0.5384092", "0.5365139", "0.53525025", "0.5346628", "0.5248908", "0.5242017", "0.5241914", "0.52233315", "0.51467407", "0.5132126", "0.5115379", "0.5028426", "0.50227356", "0.50128067", "0.501081", "0.50019133", "0.4982473...
0.7194488
0
Utility function to create the path to the output file based on the input filename (file name extension is not added by this function).
def BdzE(hEAh: str, ReZo: PathLike, ESvo: PathLike, KZQ5: PathLike='', DGPT: bool=True, rYsm=None, eviw: bool=True) -> str: GPxm, Ux0P = Hy7s.path.split(ReZo) Ux0P, YBcr = Hy7s.path.splitext(Ux0P) if YBcr == '.gz': Ux0P, YBcr = Hy7s.path.splitext(Ux0P) eSDv = '' if KZQ5 and GPxm: eSD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qc3N(YKHO, Ux0P):\n return Hy7s.path.join(YKHO._output_directory, Ux0P)", "def a_cg(IznC):\n return Hy7s.path.join(OTY2, IznC)", "def E061(kmfe, cAaf):\n if kmfe:\n Hy7s.makedirs(kmfe, exist_ok=True)\n return Hy7s.path.join(kmfe, cAaf)\n return None", "def o4iU(qIxc):\n RKD7....
[ "0.80713165", "0.7545049", "0.75357234", "0.7490637", "0.7469464", "0.7441909", "0.7311841", "0.7255293", "0.7114725", "0.7039403", "0.70251167", "0.7008828", "0.6984196", "0.69794345", "0.69582504", "0.69459087", "0.694561", "0.69338363", "0.6927307", "0.6916664", "0.6905873...
0.0
-1
Verify whether the specified file or files format match supported suffixes. If supported suffixes is None, skip the verification and return True.
def MPre(Ux0P: Sequence[PathLike] | PathLike, iRsl: Sequence[str]) -> bool: iumf: bdIy[lCvd] = LAY6(Ux0P) for mWFP in iumf: U1HC = ''.join(map(str.lower, PKXz(mWFP).suffixes)) if all((f'.{KCHu.lower()}' not in U1HC for KCHu in iRsl)): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aUvD(iRsl, gIsw):\n tk5Y, YBcr = Hy7s.path.splitext(gIsw)\n if len(YBcr) > 1:\n return YBcr in iRsl\n else:\n return False", "def ZI14(jQJk, d3lH):\n qw7D = map(jQJk.endswith, d3lH)\n if True in qw7D:\n return True\n else:\n return False", "def dEPQ(YKHO, gIsw,...
[ "0.69784456", "0.67100275", "0.64887327", "0.6449378", "0.634938", "0.6344075", "0.629082", "0.6284534", "0.6277648", "0.6269668", "0.6258417", "0.61554825", "0.61156213", "0.6112069", "0.6106395", "0.6100045", "0.60399705", "0.60377836", "0.6035617", "0.60219514", "0.5989528...
0.81980205
0
Split the dataset into N partitions. It can support shuffle based on specified random seed. Will return a set of datasets, every dataset contains 1 partition of original dataset. And it can split the dataset based on specified ratios or evenly split into `num_partitions`.
def O0O7(nPrm: Sequence, Dwvl: Sequence[float] | None=None, eNeo: int | None=None, hXNa: bool=False, yokr: int=0, lM6R: bool=False, IWNs: bool=False): j8Af = len(nPrm) gMbG = [] _0VL = list(range(j8Af)) if hXNa: H0q3 = oyIN.random.RandomState(yokr) H0q3.shuffle(_0VL) if Dwvl: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qrt_(nPrm, exwG):\n RYsB = []\n OAwr = nPrm.copy(deep=True)\n for YRbF in range(exwG):\n lpha = OAwr.sample(frac=1 / (exwG - YRbF), random_state=10)\n RYsB.append(lpha)\n OAwr = OAwr.drop(lpha.index)\n return RYsB", "def FJfc(__n6, exwG, yokr=0):\n assert exwG <= len(__n6)...
[ "0.8035845", "0.7541925", "0.75256866", "0.71053505", "0.70321155", "0.69524515", "0.6929069", "0.6902361", "0.6869064", "0.68228483", "0.67978007", "0.67956656", "0.67927235", "0.6634464", "0.66020584", "0.65911126", "0.6509427", "0.64511895", "0.64485747", "0.64369565", "0....
0.77777785
1
Split the dataset into N partitions based on the given class labels. It can make sure the same ratio of classes in every partition.
def Eggc(nPrm: Sequence, KndY: Sequence[int], Dwvl: Sequence[float] | None=None, eNeo: int | None=None, hXNa: bool=False, yokr: int=0, lM6R: bool=False, IWNs: bool=False): if not Sbtt(KndY) or len(KndY) != len(nPrm): raise ValueError(f'length of classes {KndY} must match the dataset length {len(nPrm)}.') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GUAf(nPrm, Crrw, Rhv_):\n J2wu = int(len(nPrm) / Rhv_)\n z7Lh = len(Crrw[0])\n print('Start Index Selection')\n iuKl = [nPrm[Crrw[:, r845] == 1] for r845 in range(z7Lh)]\n print('End Index Selection')\n YRbF = 0\n JYp8 = [0] * len(Crrw[0])\n hyUj = []\n ucs7 = []\n while True:\n ...
[ "0.7412675", "0.72059125", "0.71223164", "0.70392096", "0.69679093", "0.687541", "0.6796814", "0.6775578", "0.6769134", "0.6577703", "0.6537985", "0.6506913", "0.65016305", "0.64822894", "0.6432169", "0.6425278", "0.6384299", "0.6359757", "0.6347446", "0.6339992", "0.63344896...
0.7283174
1
Remove keys from a dictionary. Operates inplace so nothing is returned.
def CpE3(nPrm: dict, sjXb: list[str]) -> None: for G1Hx in sjXb: bGrB = nPrm.pop(G1Hx, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CpE3(tbx9, sjXb):\n if not tbx9:\n return None\n BdN0 = dict(tbx9)\n for H5ew in sjXb:\n BdN0.pop(H5ew, None)\n return BdN0", "def gOiW(cmPJ, sjXb):\n aY5b = cmPJ.copy()\n try:\n [aY5b.pop(H5ew) for H5ew in sjXb]\n except:\n print('Error: No ratio and sampling...
[ "0.7702204", "0.7679476", "0.7594327", "0.7517008", "0.7404991", "0.7317242", "0.72781634", "0.71914756", "0.7176107", "0.70159024", "0.7003817", "0.6998237", "0.687918", "0.6852007", "0.682197", "0.6749733", "0.66833574", "0.6672038", "0.66512823", "0.655683", "0.65497905", ...
0.69166064
12
Sets the sdas_data_id of this SDASDataItem.
def WyMT(YKHO, WyMT): YKHO._sdas_data_id = WyMT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PLV8(YKHO, PLV8):\n YKHO._sdas_data_date = PLV8", "def Hmsj(YKHO, Hmsj):\n YKHO._data_type_id = Hmsj", "def V_9M(YKHO, TbZN):\n YKHO.ssc_id = TbZN", "def O1R3(Emd4, kwEa, BWXx):\n Emd4._data[kwEa] = BWXx\n if kwEa not in Emd4._defaults:\n Emd4._defaults[kwEa] = BWXx", "def V_9M(YK...
[ "0.6699536", "0.63754785", "0.63176346", "0.61991006", "0.6078317", "0.593118", "0.5913244", "0.5801437", "0.57967544", "0.5795115", "0.5772528", "0.57507575", "0.5714229", "0.57091844", "0.5699439", "0.56918204", "0.56918204", "0.56918204", "0.56918204", "0.56918204", "0.569...
0.87012404
0
Sets the ip_address of this SDASDataItem.
def I33c(YKHO, I33c): if I33c is not None and len(I33c) > 15: raise ValueError('Invalid value for `ip_address`, length must be less than or equal to `15`') YKHO._ip_address = I33c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HSdK(YKHO, I33c):\n YKHO._validator.validate_one('address', iyhn['address'], I33c)\n YKHO._ifAttributes['address'] = I33c", "def I33c(YKHO, I33c):\n YKHO._ip_address = I33c", "def I33c(YKHO, I33c):\n YKHO._ip_address = I33c", "def I33c(YKHO, I33c):\n YKHO._ip_address = I33c", "def D8Ke(Y...
[ "0.7661221", "0.761322", "0.761322", "0.761322", "0.72511315", "0.72511315", "0.7208579", "0.71828866", "0.71387005", "0.70421726", "0.69928086", "0.6838448", "0.6749682", "0.6671813", "0.66513443", "0.663458", "0.6620775", "0.65760857", "0.65539277", "0.65151095", "0.6428808...
0.61909866
25
Sets the entry_id of this SDASDataItem.
def QWLk(YKHO, QWLk): YKHO._entry_id = QWLk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def Fnvt(YKHO, bTKY):\n assert YKHO.entry is None, 'An entry was already set for this DirectEntryScroll element'\n YKHO.entry = bTKY\n YKHO.entry.reparentTo(YKHO.canvas)\n YKHO.entry.bind(m7Xq.CURSORMOVE, YKHO.cursorMove)", "def f6Qh(YKHO, BWXx):\n ...
[ "0.6341967", "0.62597954", "0.6084978", "0.6053302", "0.60458577", "0.6043118", "0.600955", "0.60055286", "0.5999228", "0.5999184", "0.59812003", "0.59582436", "0.5931165", "0.5931165", "0.5931165", "0.5931165", "0.5931165", "0.5931165", "0.5931165", "0.5931165", "0.5931165",...
0.8142852
2
Sets the megabyte of this SDASDataItem.
def Un2c(YKHO, Un2c): YKHO._megabyte = Un2c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENXC(YKHO, zNig):\n BWXx = zNig - 1024 * 1024\n YKHO.__diskSize = BWXx / 1024", "def _Ug2(YKHO, j9v1):\n YKHO.model.data_size = j9v1\n YKHO.refresh_memory()", "def NVrm(YKHO, zNig):\n YKHO.dtSize = zNig", "def ym_X(YKHO, BWXx):\n YKHO.data.chunksize = int(BWXx)\n YKHO.mask.chunksize ...
[ "0.68708116", "0.66938597", "0.65642905", "0.63858694", "0.6377818", "0.63328904", "0.62221557", "0.61555517", "0.6106749", "0.6093289", "0.6024751", "0.6015819", "0.5989989", "0.59407854", "0.5932335", "0.58555514", "0.5834163", "0.58276266", "0.58276266", "0.58276266", "0.5...
0.77519506
0
Sets the charge of this SDASDataItem.
def WJkG(YKHO, WJkG): YKHO._charge = WJkG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJkG(YKHO, WJkG):\n YKHO._charge = WJkG", "def y2ey(YKHO, *qIxc):\n return _VfD.Species_setCharge(YKHO, *qIxc)", "def Gl3t(YKHO, type, WJkG):\n assert type < YKHO.num_atom_types + 1\n assert type > 0\n YKHO.charges[type] = WJkG", "def y2ey(YKHO, *qIxc):\n return _VfD.FbcSpeciesPlugin_se...
[ "0.7667928", "0.72723967", "0.7070988", "0.7005275", "0.6432749", "0.63790935", "0.62391114", "0.59905964", "0.5951452", "0.59148175", "0.5629941", "0.56050706", "0.5566352", "0.54825246", "0.54792345", "0.5476642", "0.5476642", "0.5476642", "0.5476642", "0.5428004", "0.54052...
0.7620613
1
Sets the allowance of this SDASDataItem.
def igif(YKHO, igif): YKHO._allowance = igif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GyrV(YKHO, GyrV):\n YKHO._allow_values_only = GyrV", "def pMjF(Emd4, BWXx=0):\n Emd4.antLimit = BWXx", "def KzJa(YKHO, KzJa):\n if KzJa is None:\n raise ValueError('Invalid value for `allowed`, must not be `None`')\n YKHO._allowed = KzJa", "def g5AE(YKHO, CZPa: TxAllowScope) -> None:\n...
[ "0.55410415", "0.5529423", "0.5474473", "0.53398967", "0.5307561", "0.53070784", "0.52534974", "0.52091706", "0.51384974", "0.51256305", "0.51193553", "0.51060885", "0.50906086", "0.508949", "0.5043256", "0.5018262", "0.49875677", "0.4978538", "0.49645144", "0.4956916", "0.49...
0.6983909
0
Sets the plan_allowance of this SDASDataItem.
def ILhW(YKHO, ILhW): YKHO._plan_allowance = ILhW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def igif(YKHO, igif):\n YKHO._allowance = igif", "def qUyJ(YKHO, qUyJ):\n YKHO._plan = qUyJ", "def KzJa(YKHO, KzJa):\n if KzJa is None:\n raise ValueError('Invalid value for `allowed`, must not be `None`')\n YKHO._allowed = KzJa", "def iKVz(YKHO, iKVz):\n YKHO._scheduled_plan = iKVz", ...
[ "0.69908667", "0.62394124", "0.550686", "0.5367739", "0.5338905", "0.52827895", "0.52454233", "0.52302635", "0.5230122", "0.5157627", "0.50841755", "0.50533646", "0.50533646", "0.50533646", "0.5023552", "0.5019936", "0.5019514", "0.5004312", "0.4968703", "0.49635765", "0.4962...
0.8344894
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, yNdn): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8089204", "0.8089204", "0.8055265", "0.7983358", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Converts minutes to seconds
def DDQC(O66n) -> int: return int(O66n) * 60
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDQC(O66n: str) -> int:\n return int(O66n) * 60", "def DDQC(O66n):\n return O66n * 60", "def iwLI(O66n):\n return int(O66n * 60)", "def bQkZ(Wave, O66n, C6wh):\n return Wave * 60 ** 2 + O66n * 60 + C6wh", "def bQkZ(Wave, O66n, C6wh):\n return Wave * 3600 + O66n * 60 + C6wh", "def bQkZ(...
[ "0.8549494", "0.84785414", "0.80083776", "0.7914541", "0.78572327", "0.78556967", "0.76842797", "0.75222194", "0.74389696", "0.73869646", "0.73535633", "0.7332998", "0.7256638", "0.7185759", "0.7169081", "0.7161754", "0.71508414", "0.7141182", "0.71352524", "0.71087193", "0.7...
0.8317549
2
Converts hours to minutes
def zbNO(Wave) -> int: return int(Wave) * 60
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbNO(Wave: str) -> int:\n return int(Wave) * 60", "def dMqu(C6wh):\n return '%d:%d' % divmod(C6wh, 60)", "def GrIR(ITS7):\n return int(ITS7 / 60)", "def bG7X(kRsb):\n return int((kRsb - rbGV(kRsb) * 3600) // 60)", "def _TvR(O66n):\n XuVg, zhMh, HeJE, gpRq = (0, 0, 0, 0)\n XuVg = int(O...
[ "0.84540313", "0.74863845", "0.7402691", "0.7098389", "0.6988618", "0.6976897", "0.69415545", "0.6936566", "0.69166374", "0.6905955", "0.69033235", "0.6894749", "0.68662024", "0.6827582", "0.68189", "0.6797913", "0.67737", "0.673519", "0.6730592", "0.66768885", "0.6558566", ...
0.82949305
1
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. (This function is copied from the scikit docs.)
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): QrM1.figure(figsize=(20, 20)) QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, KndY, rotation=45) QrM1.yticks(wIWT, KndY) i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8291989", "0.81920296", "0.81415135", "0.81236696", "0.81125116", "0.81097114", "0.80973935", "0.8077484", "0.80750555", "0.8047463", "0.80427694", "0.80398923", "0.80297303", "0.80285287", "0.8023669", "0.80235004", "0.80231833", "0.80224186", "0.8017731", "0.80036813", "...
0.0
-1
Returns 'before' cursor (starting previous page before this cursor).
def h3Aq(YKHO): if YKHO._first_item: if YKHO.items_count <= YKHO.page_limit and YKHO._items_count_before_first_item > 0: return YKHO._first_item return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOBR(YKHO):\n if YKHO.cursor.pref:\n YKHO.cursor = YKHO.cursor.pref\n return YKHO.cursor\n return None", "def UYdX(YKHO, N1p7):\n pass", "def h3Aq(YKHO):\n return YKHO._before", "def h3Aq(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._prev)",...
[ "0.70095104", "0.6941818", "0.6879406", "0.666764", "0.6628074", "0.6493142", "0.6463557", "0.64119244", "0.64035255", "0.6378273", "0.634591", "0.6330457", "0.63239235", "0.6310472", "0.6309198", "0.6279411", "0.6252887", "0.6219331", "0.6198758", "0.6178431", "0.616012", ...
0.6254301
16
timestamp using current format.
def E3oo(YKHO, jnhl): FMLJ = YKHO.app.settings['timestampformat'] Jru2 = A424(jnhl) TDw3 = ':' if '.' in Jru2: TDw3 = '.' eRPr = int(Jru2.split(TDw3)[0]) lcOE = Jru2.split(TDw3)[1] Wave = int(eRPr / 60) DsuG = str(eRPr - Wave * 60) if len(DsuG) == 1: DsuG = '0' + DsuG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3oo():\n return qcWV.now().strftime('%Y%m%dT%H%M%S')", "def ItX3():\n return qcWV.now().strftime(HB4Z)", "def E3oo():\n return qcWV.now().strftime('%H:%M:%S %m-%d')", "def f8pJ():\n return qcWV.now().strftime('%A, %B %d, %Y, %I:%M %p')", "def E3oo():\n exwG = qcWV.datetime.now()\n re...
[ "0.83291346", "0.81256396", "0.8047594", "0.8035585", "0.8018654", "0.7962717", "0.7949168", "0.7917471", "0.7904424", "0.7898713", "0.78831744", "0.78697157", "0.78327155", "0.7817194", "0.78093076", "0.77800506", "0.77706516", "0.7753781", "0.7686227", "0.7614327", "0.75855...
0.0
-1
This just creates the following actors. It does not fill them.
def GLrN(YKHO, K1WF, uDLR, kWaO, mBxZ): if YKHO.has_caero: eFlV = YKHO.gui eFlV.create_alternate_vtk_grid('caero', color=bvtN, line_width=3, opacity=1.0, representation='toggle', is_visible=True, is_pickable=False) eFlV.create_alternate_vtk_grid('caero_subpanels', color=bvtN, line_width=3, o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ehDb():\n return Zrzj()", "def ypxv(YKHO, gig7):\n for ehDb in gig7:\n YKHO.draw_actor(ehDb)", "def cRhR(YKHO):\n YKHO.agents = [mA7V(e=0.1, a=0.1, row=YKHO.row, col=YKHO.col) for YRbF in range(2)]", "def UXvX(YKHO, object):\n gig7 = ['/api/v1/actor/{0}/'.format(Gyvh.actor.id) for Gyvh...
[ "0.6340813", "0.6303262", "0.6182203", "0.6154471", "0.6132606", "0.6019555", "0.58870983", "0.5826896", "0.5824235", "0.576806", "0.5750554", "0.56811816", "0.5676929", "0.5675778", "0.56479996", "0.5639074", "0.5635884", "0.5599083", "0.5583953", "0.55633336", "0.55478925",...
0.5058511
90
Tests if function raises a ``ValueError`` when input is not a clique
def b52Q(YKHO, tpio): with trZe.raises(ValueError, match='Input subgraph is not a clique'): om36.grow([0, 1], jHsn.empty_graph(tpio))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tAPf(YKHO, tpio):\n k0lF = oyIN.ones((tpio, tpio)) - oyIN.eye(tpio)\n k0lF = jHsn.Graph(k0lF)\n k0lF.remove_edge(0, 1)\n o4sw = [0, 1]\n with trZe.raises(ValueError, match='Input subgraph is not a clique'):\n om36.c_1(o4sw, k0lF)", "def b52Q(YKHO, tpio):\n with trZe.raises(ValueError...
[ "0.76886195", "0.7487438", "0.7447898", "0.6724923", "0.6268918", "0.6190527", "0.60438484", "0.601841", "0.5992472", "0.59716725", "0.58854884", "0.5861587", "0.57661337", "0.57562804", "0.5755303", "0.5751841", "0.5729346", "0.5704541", "0.5681301", "0.56762403", "0.5649068...
0.7596812
1
Test if function performs correct swap operation when degreebased node selection is used. Input graph is a lollipop graph, consisting of a fully connected graph with a single additional node connected to just one of the nodes in the graph. Additionally, a connection between node ``0`` and ``dim 1`` is removed as well a...
def GqFE(YKHO, tpio): pNZh = jHsn.lollipop_graph(tpio, 1) pNZh.remove_edge(0, tpio - 1) pNZh.remove_edge(0, tpio - 2) KCHu = list(range(tpio - 2)) Aofo = set(om36.swap(KCHu, pNZh, node_select='degree')) aEqx = set(range(1, tpio - 2)) | {tpio - 1} assert Aofo == aEqx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GcBU(YKHO, tpio, Ehsq):\n pNZh = jHsn.complete_graph(tpio)\n pNZh.remove_edge(0, tpio - 1)\n pNZh.remove_edge(0, tpio - 2)\n KCHu = set(range(tpio - 2))\n GNwJ = xBlr.partial(pCNX, element=0)\n Bt1N = xBlr.partial(pCNX, element=1)\n with Ehsq.context() as r8hN:\n r8hN.setattr(oyIN.r...
[ "0.72277945", "0.6895802", "0.6846461", "0.64114034", "0.5975586", "0.59694546", "0.58667487", "0.5620263", "0.5519469", "0.5441941", "0.5419078", "0.5384317", "0.53593534", "0.53046864", "0.52979726", "0.52630633", "0.5258916", "0.52561563", "0.52396065", "0.52265584", "0.52...
0.78765476
0
Tests if function raises a ``ValueError`` when input is not a clique
def b52Q(YKHO, tpio): with trZe.raises(ValueError, match='Input subgraph is not a clique'): om36.swap([0, 1], jHsn.empty_graph(tpio))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tAPf(YKHO, tpio):\n k0lF = oyIN.ones((tpio, tpio)) - oyIN.eye(tpio)\n k0lF = jHsn.Graph(k0lF)\n k0lF.remove_edge(0, 1)\n o4sw = [0, 1]\n with trZe.raises(ValueError, match='Input subgraph is not a clique'):\n om36.c_1(o4sw, k0lF)", "def b52Q(YKHO, tpio):\n with trZe.raises(ValueError...
[ "0.76886195", "0.7596812", "0.7447898", "0.6724923", "0.6268918", "0.6190527", "0.60438484", "0.601841", "0.5992472", "0.59716725", "0.58854884", "0.5861587", "0.57661337", "0.57562804", "0.5755303", "0.5751841", "0.5729346", "0.5704541", "0.5681301", "0.56762403", "0.5649068...
0.7487438
2
Tests if function raises a ``ValueError`` when input is not a clique
def ITOw(YKHO, tpio): with trZe.raises(ValueError, match='Input is not a valid subgraph'): om36.swap([0, tpio], jHsn.empty_graph(tpio))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tAPf(YKHO, tpio):\n k0lF = oyIN.ones((tpio, tpio)) - oyIN.eye(tpio)\n k0lF = jHsn.Graph(k0lF)\n k0lF.remove_edge(0, 1)\n o4sw = [0, 1]\n with trZe.raises(ValueError, match='Input subgraph is not a clique'):\n om36.c_1(o4sw, k0lF)", "def b52Q(YKHO, tpio):\n with trZe.raises(ValueError...
[ "0.76886195", "0.7596812", "0.7487438", "0.7447898", "0.6724923", "0.6268918", "0.6190527", "0.601841", "0.5992472", "0.59716725", "0.58854884", "0.5861587", "0.57661337", "0.57562804", "0.5755303", "0.5751841", "0.5729346", "0.5704541", "0.5681301", "0.56762403", "0.5649068"...
0.60438484
7
Tests if function raises a ``ValueError`` when input is not a clique
def bDIE(YKHO, tpio): k0lF = oyIN.ones((tpio, tpio)) - oyIN.eye(tpio) k0lF = jHsn.Graph(k0lF) k0lF.remove_edge(0, 1) o4sw = [0, 1] with trZe.raises(ValueError, match='Input subgraph is not a clique'): om36.c_0(o4sw, k0lF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tAPf(YKHO, tpio):\n k0lF = oyIN.ones((tpio, tpio)) - oyIN.eye(tpio)\n k0lF = jHsn.Graph(k0lF)\n k0lF.remove_edge(0, 1)\n o4sw = [0, 1]\n with trZe.raises(ValueError, match='Input subgraph is not a clique'):\n om36.c_1(o4sw, k0lF)", "def b52Q(YKHO, tpio):\n with trZe.raises(ValueError...
[ "0.76886195", "0.7596812", "0.7487438", "0.6724923", "0.6268918", "0.6190527", "0.60438484", "0.601841", "0.5992472", "0.59716725", "0.58854884", "0.5861587", "0.57661337", "0.57562804", "0.5755303", "0.5751841", "0.5729346", "0.5704541", "0.5681301", "0.56762403", "0.5649068...
0.7447898
3
Tests if function raises a ``ValueError`` when input is not a clique
def tAPf(YKHO, tpio): k0lF = oyIN.ones((tpio, tpio)) - oyIN.eye(tpio) k0lF = jHsn.Graph(k0lF) k0lF.remove_edge(0, 1) o4sw = [0, 1] with trZe.raises(ValueError, match='Input subgraph is not a clique'): om36.c_1(o4sw, k0lF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b52Q(YKHO, tpio):\n with trZe.raises(ValueError, match='Input subgraph is not a clique'):\n om36.grow([0, 1], jHsn.empty_graph(tpio))", "def b52Q(YKHO, tpio):\n with trZe.raises(ValueError, match='Input subgraph is not a clique'):\n om36.swap([0, 1], jHsn.empty_graph(tpio))", "def bDIE(...
[ "0.7596812", "0.7487438", "0.7447898", "0.6724923", "0.6268918", "0.6190527", "0.60438484", "0.601841", "0.5992472", "0.59716725", "0.58854884", "0.5861587", "0.57661337", "0.57562804", "0.5755303", "0.5751841", "0.5729346", "0.5704541", "0.5681301", "0.56762403", "0.5649068"...
0.76886195
0
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("Hello! Let's explore some US bikeshare data!") while True: j5sA = input("choose city you want to explore from ('chicago', 'new york city', 'washington')") if j5sA.lower() in ['chicago', 'new york city', 'washington']: break else: print('{} inval...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.66714007", "0.65354675", "0.64593667", "0.6374057", "0.6348314", "0.63097656", "0.62868035", "0.6259136", "0.62316", "0.62130964", "0.62050414", "0.6181105", "0.6171822", "0.61686903", "0.6158568", "0.61582303", "0.61532456", "0.61444426", "0.6131269", "0.610484", "0.61025...
0.59896076
30
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['End Time'] = rLdf.to_datetime(jQ3Z['End Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.day_name() if x0eS.lower() != 'all'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.81320685", "0.8108889", "0.8045821", "0.8042514", "0.80090284", "0.80071104", "0.79991937", "0.7998333", "0.7988789", "0.797905", "0.79737365", "0.79610896", "0.7956163", "0.7947432", "0.79463065", "0.7908287", "0.7908229", "0.7904569", "0.7900715", "0.78930074", "0.788921...
0.75361586
86
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() XYie = jQ3Z['month'].mode()[0] print('most common month:', XYie) SOOw = jQ3Z['day_of_week'].mode()[0] print('most common day:', SOOw) jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour NdW8 = jQ3Z['ho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.8023676", "0.8022362", "0.79149705", "0.7825905", "0.78213924", "0.7813664", "0.7765152", "0.77395964", "0.7735777", "0.7733763", "0.76860064", "0.7668081", "0.7651128", "0.7644099", "0.7639373", "0.7636164", "0.7624668", "0.7622597", "0.76122236", "0.7599646", "0.75829977...
0.7245135
63
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() bTuL = jQ3Z['Start Station'].mode()[0] print('most common used start station:', bTuL) Nj0t = jQ3Z['End Station'].mode()[0] print('most common used end station:', Nj0t) kGUt = (jQ3Z['Start Statio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7815675", "0.7662213", "0.7553417", "0.74914914", "0.74748665", "0.7446617", "0.7428588", "0.74237514", "0.74177027", "0.7400495", "0.7387161", "0.7385634", "0.73647535", "0.735934", "0.73566747", "0.73548365", "0.7351854", "0.7351274", "0.735057", "0.73421645", "0.7340198...
0.6784949
99
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() bJiw = jQ3Z['Trip Duration'].sum() print('total travel time in sec :', bJiw) print('total travel time in min:', bJiw / 60) print('total travel time in hour:', bJiw / 3600) RB_u = jQ3Z['Trip Duration'].mean() pri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.7908032", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664...
0.7556165
95
Return whether a module is a package.
def bYKW(YKHO, UnKL): svus, bYKW, PsRC = YKHO._get_info(UnKL) return bYKW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R6pB(pmON):\n PCbE = BKva.isfile(pmON) and BKva.splitext(pmON)[1] in ('.py', '.pyw')\n bYKW = BKva.isdir(pmON) and BKva.isfile(BKva.join(pmON, '__init__.py'))\n return PCbE or bYKW", "def O1tE(pmON):\n return Hy7s.path.isdir(pmON) and Hy7s.path.exists(Hy7s.path.join(pmON, '__init__.py'))", "def...
[ "0.80535513", "0.78657234", "0.78657234", "0.7863555", "0.779715", "0.76951444", "0.76184493", "0.75872517", "0.756777", "0.7436889", "0.7331395", "0.721741", "0.71787107", "0.7157707", "0.71200323", "0.70975304", "0.70178944", "0.69892263", "0.69616795", "0.6941185", "0.6879...
0.81605804
0
Return a client instance for automated testing.
def K8Vx(): P4t4 = Nd3k(UpIo.api_server, gCuF.TestingConfig) return P4t4.test_client()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0hE():\n x0hE = i9zE()\n return x0hE", "def eeRo():\n ODzy = Hy7s.environ.get('KONG_MANAGEMENT')\n NtEF = Hy7s.environ.get('KONG_USERNAME')\n jTXt = Hy7s.environ.get('KONG_PASSWORD')\n return i9zE(ODzy, username=NtEF, password=jTXt)", "def bxbw():\n return i9zE(DbMD, authkey='strumamo...
[ "0.8045767", "0.77997583", "0.77433056", "0.7656228", "0.7641419", "0.7520417", "0.75203586", "0.74942946", "0.74618745", "0.7349399", "0.7330974", "0.7322112", "0.7322112", "0.731086", "0.73106176", "0.73106176", "0.7304921", "0.73031384", "0.7243374", "0.7243374", "0.724337...
0.6858382
45
Return an api server instance configured for production.
def RYKI(ePNl, **YJIb): return Nd3k(UpIo.api_server, gCuF.ProductionConfig)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hjK0(ePNl, **YJIb):\n return Nd3k(UpIo.api_server, gCuF.DevelopmentConfig)", "def IxWS(YKHO):\n IfHm = YKHO.get_server_class()\n cots = YKHO.get_validator_class()\n return IfHm(cots(), token_expires_in=sOaq.ACCESS_TOKEN_EXPIRATION)", "def DbxN(ozSS):\n global __obj_starter_api\n NXmT = SU...
[ "0.6606793", "0.65736616", "0.6070765", "0.60243964", "0.60239685", "0.58958644", "0.58680475", "0.58626735", "0.5836196", "0.58335143", "0.5782362", "0.5723617", "0.57047355", "0.56752384", "0.5661472", "0.5655064", "0.56511575", "0.56458884", "0.5631329", "0.55981135", "0.5...
0.6710677
0
Return a developer portal instance configured for production.
def HVtn(ePNl, **YJIb): return Nd3k(UpIo.developer_portal, gCuF.ProductionConfig)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MU1f(Emd4):\n return ioll.Environment('https://developer.zohoapis.eu', Emd4().get_iam_url(), Emd4().get_file_upload_url())", "def XEgn(Emd4):\n return ioll.Environment('https://www.zohoapis.eu', Emd4().get_iam_url(), Emd4().get_file_upload_url())", "def Fomj():\n sEAN.settings = 'production'\n ...
[ "0.67466635", "0.63730246", "0.63570607", "0.6346892", "0.623092", "0.6137237", "0.6008309", "0.57692844", "0.57441765", "0.57372195", "0.5696684", "0.55788594", "0.5541568", "0.55378085", "0.5528574", "0.5429082", "0.5398692", "0.53962576", "0.53935", "0.53841543", "0.533572...
0.55325973
14
Return an api server instance configured for development.
def hjK0(ePNl, **YJIb): return Nd3k(UpIo.api_server, gCuF.DevelopmentConfig)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RYKI(ePNl, **YJIb):\n return Nd3k(UpIo.api_server, gCuF.ProductionConfig)", "def DbxN(ozSS):\n global __obj_starter_api\n NXmT = SU52(api_url=ozSS)", "def IxWS(YKHO):\n IfHm = YKHO.get_server_class()\n cots = YKHO.get_validator_class()\n return IfHm(cots(), token_expires_in=sOaq.ACCESS_TO...
[ "0.6671756", "0.6581727", "0.643036", "0.63919234", "0.6083142", "0.60792255", "0.5994747", "0.594437", "0.59168744", "0.58545095", "0.5843012", "0.58408314", "0.5744367", "0.5720217", "0.5694042", "0.5686774", "0.5677295", "0.56732553", "0.5672785", "0.5670191", "0.56663054"...
0.7329425
0
Return a developer portal instance configured for development.
def egQR(ePNl, **YJIb): return Nd3k(UpIo.developer_portal, gCuF.DevelopmentConfig)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MU1f(Emd4):\n return ioll.Environment('https://developer.zohoapis.eu', Emd4().get_iam_url(), Emd4().get_file_upload_url())", "def we5a(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'developer_portal_url')", "def we5a(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'developer_portal_ur...
[ "0.699764", "0.64781564", "0.6467211", "0.6297486", "0.59238523", "0.590994", "0.5880834", "0.5808602", "0.5779816", "0.5767217", "0.5745334", "0.56450045", "0.55581516", "0.54712623", "0.54580355", "0.5423588", "0.5422899", "0.5419092", "0.54117984", "0.539909", "0.5370844",...
0.6504536
1
Returns agent indices of your opponents. This is the list of the numbers of the agents (e.g., red might be 1, 3, 5)
def MXWT(YKHO, Ov5A): if YKHO.red: return Ov5A.getBlueTeamIndices() else: return Ov5A.getRedTeamIndices()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yE7X(YKHO, YimI):\n if YKHO.red:\n return YimI.get_blue_team_indices()\n else:\n return YimI.get_red_team_indices()", "def bb91(qw7D):\n fuOf = oyIN.argwhere(qw7D != 0)\n return fuOf", "def n2Kv(Ov5A, d6pt, rb7a):\n if d6pt == Ov5A.getNumAgents():\n return [rb7a - 1, 0]\...
[ "0.7104835", "0.7008432", "0.6828103", "0.6527755", "0.64284533", "0.62731737", "0.6188407", "0.614679", "0.60366625", "0.5979433", "0.59617287", "0.58752364", "0.5856375", "0.5828954", "0.5786396", "0.57304686", "0.5727151", "0.57168114", "0.5705933", "0.56977034", "0.568972...
0.7004699
2
Returns agent indices of your team. This is the list of the numbers of the agents (e.g., red might be the list of 1,3,5)
def L7Cr(YKHO, Ov5A): if YKHO.red: return Ov5A.getRedTeamIndices() else: return Ov5A.getBlueTeamIndices()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bb91(qw7D):\n fuOf = oyIN.argwhere(qw7D != 0)\n return fuOf", "def n2Kv(Ov5A, d6pt, rb7a):\n if d6pt == Ov5A.getNumAgents():\n return [rb7a - 1, 0]\n else:\n return [rb7a, d6pt]", "def Kvqe(YKHO):\n return tuple(YKHO.agent_locs.T)", "def PsvZ(qw7D, Tpgu):\n fuOf = oyIN.arg...
[ "0.7164669", "0.6938745", "0.68448013", "0.67928", "0.63852847", "0.6328744", "0.6288408", "0.62356496", "0.609378", "0.5930781", "0.5915748", "0.59083325", "0.5845465", "0.58239853", "0.5792074", "0.57735556", "0.57503515", "0.5748193", "0.5714828", "0.569344", "0.5684362", ...
0.6316888
6
Returns how much you are beating the other team by in the form of a number that is the difference between your score and the opponents score. This number is negative if you're losing.
def vNP6(YKHO, Ov5A): if YKHO.red: return Ov5A.getScore() else: return Ov5A.getScore() * -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO):\n return YKHO.team1.get_cur_hp() / YKHO.team1.get_total_hp() - YKHO.team2.get_cur_hp() / YKHO.team2.get_total_hp()", "def Jc_J(YKHO, Uhr4, qhbw):\n return Uhr4 - qhbw", "def xdA4(BH3N, oyg0):\n if BH3N.is_loser(oyg0):\n return float('-inf')\n if BH3N.is_winner(oyg0):\n ...
[ "0.7424586", "0.7321318", "0.6932206", "0.6909637", "0.68919015", "0.6880854", "0.6812142", "0.67689925", "0.67247224", "0.65772206", "0.65552396", "0.6538314", "0.6508036", "0.6489396", "0.6489396", "0.6489396", "0.6475355", "0.6464941", "0.64627945", "0.64436823", "0.644029...
0.6207119
36
Always return True. This is a way to tell if the user has been authenticated in templates.
def rts1(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rts1(YKHO):\n return True", "def rts1(YKHO, QePW, **B2fa):\n return True", "def rts1(YKHO):\n return YKHO.authenticated", "def rts1(YKHO):\n return False", "def rts1(YKHO):\n return bool(Vu5X())", "def rts1(YKHO):\n return YKHO.authenticated", "def rts1(YKHO):\n return YKHO.aut...
[ "0.81529313", "0.8115903", "0.80314094", "0.79943705", "0.78800297", "0.786801", "0.786801", "0.786801", "0.786801", "0.786801", "0.786801", "0.786801", "0.786801", "0.786801", "0.786801", "0.786801", "0.786801", "0.786801", "0.78162265", "0.7801013", "0.7766671", "0.774480...
0.8270089
6
Construct a base class with model operators already constructed.
def GAKw(jsTm, _CrY, zwDY, r8hN=20): if jsTm == 'inferred': dVPk = Zmw9._core.InferredContinuousROM elif jsTm: dVPk = Zmw9._core._ContinuousROM else: dVPk = Zmw9._core._DiscreteROM exwG, Mkmy = zwDY.shape Z9rn, k0lF, C7Ls, lo2K, yvY1, U3Gg, tjUW = cwF3(Mkmy, r8hN) Maem = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mmfB(YKHO):\n YKHO.relationship_operator = WMGG.RelationshipOperator(YKHO)\n YKHO.infection_operator = WMGG.InfectionOperator(YKHO)\n YKHO.time_operator = WMGG.TimeOperator(YKHO)", "def FIMM(YKHO):\n super(XdTZ, YKHO).__init__()", "def FIMM(YKHO, khtY, XQPR, VTEt):\n zskP.__init__(YKHO)\n ...
[ "0.7125911", "0.670557", "0.64603883", "0.63755906", "0.6345859", "0.6162554", "0.61624366", "0.6031369", "0.6018657", "0.6010784", "0.60077786", "0.59984505", "0.5993563", "0.5993563", "0.5993563", "0.5993563", "0.5993563", "0.59911346", "0.59874314", "0.59841746", "0.596513...
0.0
-1
Loads the precomputed features. Returns a pytorch Dataset
def _m4w(ZiEU, EvQg=True): if EvQg: yKcO = 0 JCyR = 48000 else: yKcO = 48000 JCyR = 50000 bySB = rLdf.read_hdf(ZiEU, start=yKcO, stop=JCyR).values Crrw = ht2j.zeros(bySB.shape[0]).float() bySB = ht2j.from_numpy(bySB).float() return ht2j.utils.data.TensorDataset(by...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ar53(YKHO):\n Ep8u = 256\n BsfS = True\n tk5Y = YKHO.root + YKHO.dataset\n if YKHO.dataset == 'MNIST':\n SZFh = Ymkf.Compose([Ymkf.ToTensor(), Ymkf.Normalize((0.1307,), (0.3081,))])\n nIKz = TTda.datasets.MNIST(tk5Y, train=True, download=BsfS, transform=SZFh)\n qhJ1 = TTda.data...
[ "0.6820949", "0.68088937", "0.6686694", "0.6672536", "0.66682124", "0.6589981", "0.65488917", "0.654359", "0.6529167", "0.6510187", "0.64377886", "0.64067507", "0.63958514", "0.6332203", "0.63305515", "0.6278722", "0.6268895", "0.62533474", "0.62101513", "0.61962646", "0.6187...
0.7273538
0
Create multivariate normal that only has non zero values in the covariance matrix on the diagonal.
def FIMM(YKHO, dGQB, PhLZ, SF_z, hr1G=0.0): super(L4CP, YKHO).__init__(dGQB, PhLZ, hr1G) YKHO.gauss = WGTe(multiplicity=dGQB, in_features=PhLZ, dropout=hr1G) YKHO.prod = msfn(in_features=PhLZ, cardinality=SF_z) YKHO.cardinality = SF_z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nSzW(WKvO, Csk6, JBMS, _IBo):\n kOjW = WKvO - JBMS\n return 1.0 / oyIN.sqrt((2 * oyIN.pi) ** Csk6 * oyIN.linalg.det(_IBo)) * oyIN.exp(-oyIN.linalg.solve(_IBo, kOjW).T.dot(kOjW) / 2)", "def QrZe(E3D9, KkY2, cAlv):\n return XTiz.random.multivariate_normal(E3D9.ravel(), oyIN.kron(cAlv, KkY2)).reshape(E...
[ "0.6690383", "0.6398805", "0.6395239", "0.63508075", "0.6242023", "0.62295985", "0.612385", "0.6107862", "0.60748297", "0.6002314", "0.5931019", "0.5908809", "0.58191496", "0.581867", "0.5716339", "0.5706515", "0.5696974", "0.5691822", "0.5682732", "0.56755406", "0.5665674", ...
0.0
-1