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
Returns a fractional mask from a result array, where the fractional mask describes whether the evaluated value in the result array is within the ``Grid2DIterate``'s specified fractional accuracy. The fractional mask thus determines whether a pixel on the grid needs to be reevaluated at a higher level of subgridding to ...
def ZSYi(YKHO, EGzq: Grid2D, CS_j: Grid2D) -> Sohw: G9cR = Sohw.all_false(shape_native=EGzq.shape_native, pixel_scales=EGzq.pixel_scales, invert=True) G9cR = YKHO.threshold_mask_via_grids_jit_from(fractional_accuracy_threshold=YKHO.fractional_accuracy, relative_accuracy_threshold=YKHO.relative_accuracy, thresho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LF6C(wu1V, kOTd, or8S):\n wXuO = oyIN.sum(oyIN.logical_and(wu1V == 255, kOTd == 255))\n uBv5 = oyIN.sum(oyIN.logical_and(kOTd == 255, wu1V != kOTd))\n Rw7j = oyIN.sum(oyIN.logical_and(wu1V == 255, wu1V != kOTd))\n rhd_ = wXuO / (wXuO + uBv5)\n AOzf = wXuO / (wXuO + Rw7j)\n XZhL = 2 * (rhd_ * ...
[ "0.540261", "0.5198657", "0.5171135", "0.5063427", "0.5014532", "0.48458305", "0.4784179", "0.4779883", "0.46855587", "0.46468997", "0.46343517", "0.4627272", "0.46060577", "0.4589445", "0.45833278", "0.45417356", "0.45366517", "0.45316955", "0.44950017", "0.4484353", "0.4469...
0.43678007
28
Returns a given vector in normalized form.
def NkkI(iArr): return iArr / oyIN.linalg.norm(iArr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k5KY(iArr):\n wQQg = AArG(iArr)\n if wQQg != 0:\n return oyIN.divide(iArr, AArG(iArr))\n else:\n return [0, 0]", "def Z7xS(Ty9i):\n WuUW = 1.0 / sum(Ty9i)\n HBfW = [YRbF * WuUW for YRbF in Ty9i]\n return HBfW", "def NkkI(Ty9i):\n return Ty9i / oyIN.linalg.norm(Ty9i)", "...
[ "0.8575221", "0.83980185", "0.8287421", "0.8287125", "0.82777345", "0.82405454", "0.81163174", "0.81054735", "0.8068462", "0.80491674", "0.79364955", "0.78791", "0.7850027", "0.7793986", "0.7793986", "0.7793986", "0.77850926", "0.77850926", "0.77850926", "0.77850926", "0.7785...
0.8422281
1
Calculate the absorption coefficient alpha
def pvdW(kTwQ, Kt_s, KyU2, im04, BmEO, VKU_, LTIa, zFiD='halpha'): fkiF = KyU2 * 1e-06 _UVe = {'wavelength': {'halpha': 6.5628e-07, 'hbeta': 4.86135e-07, 'hgamma': 4.34047e-07, 'hdelta': 4.10173e-07}, 'f_osc': {'halpha': 0.6407, 'hbeta': 0.11938, 'hgamma': 0.044694, 'hdelta': 0.022105}, 'Aul': {'halpha': 441010...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cwt5(YKHO):\n H8rT = oyIN.sin(YKHO.omega())\n return YKHO.a1() / Z9rn.c * H8rT", "def VPbr(YKHO):\n return GIWE(YKHO.solution, YKHO.use_const)[0]", "def Cwt5(YKHO, LEev, Xyq7, Z9rn):\n if LEev == 0.0:\n return 0.0\n else:\n return 1.0 + Xyq7 * Z9rn / LEev", "def Cwt5(YKHO) ->...
[ "0.75805193", "0.7271462", "0.7158083", "0.71428406", "0.71282536", "0.7086047", "0.7055735", "0.6872783", "0.67840075", "0.67840075", "0.67840075", "0.6741391", "0.66441727", "0.66424114", "0.6641569", "0.6568208", "0.654783", "0.6543631", "0.65415496", "0.6518507", "0.64807...
0.0
-1
Calculate the absorption coefficient alpha where the absorption profile is rectangular.
def FXUY(kTwQ, Kt_s, KyU2, VGF8, w53J, im04, BmEO, LTIa, zFiD='halpha'): fkiF = KyU2 * 1e-06 _UVe = {'wavelength': {'halpha': 6.5628e-07, 'hbeta': 4.86135e-07, 'hgamma': 4.34047e-07, 'hdelta': 4.10173e-07}, 'f_osc': {'halpha': 0.6407, 'hbeta': 0.11938, 'hgamma': 0.044694, 'hdelta': 0.022105}, 'Aul': {'halpha': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ifpr(qfpW, vuvg, tjUW):\n return oyIN.dot(qfpW - tjUW, vuvg - tjUW) / oyIN.dot(vuvg - tjUW, vuvg - tjUW)", "def Cwt5(YKHO) -> float:\n return YKHO.intrinsic_matrix[0, 1]", "def qaAx(YKHO):\n s9LO = YKHO.get_Rbo()\n xk7N = 2 * float(Z6OX(YKHO.W3 / (2 * s9LO)))\n KjaM = 2 * mM0K / YKHO.Zs - xk...
[ "0.67454916", "0.669358", "0.64711595", "0.6469706", "0.630655", "0.6296904", "0.6265656", "0.623285", "0.62106323", "0.6010228", "0.60099864", "0.5963514", "0.59502864", "0.5948576", "0.5944377", "0.592804", "0.591576", "0.591576", "0.591576", "0.59120184", "0.58645076", "...
0.53438336
71
Calculate the absorption coefficient alpha
def F2NY(kTwQ, Kt_s, M2yA, PzV6, KyU2, q_xq, w53J, im04, BmEO, LTIa, zFiD='halpha'): fkiF = KyU2 * 1e-06 _UVe = {'wavelength': {'halpha': 6.5628e-07, 'hbeta': 4.86135e-07, 'hgamma': 4.34047e-07, 'hdelta': 4.10173e-07}, 'f_osc': {'halpha': 0.6407, 'hbeta': 0.11938, 'hgamma': 0.044694, 'hdelta': 0.022105}, 'Aul':...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cwt5(YKHO):\n H8rT = oyIN.sin(YKHO.omega())\n return YKHO.a1() / Z9rn.c * H8rT", "def VPbr(YKHO):\n return GIWE(YKHO.solution, YKHO.use_const)[0]", "def Cwt5(YKHO, LEev, Xyq7, Z9rn):\n if LEev == 0.0:\n return 0.0\n else:\n return 1.0 + Xyq7 * Z9rn / LEev", "def Cwt5(YKHO) ->...
[ "0.75805193", "0.7271462", "0.7158083", "0.71428406", "0.71282536", "0.7086047", "0.7055735", "0.6872783", "0.67840075", "0.67840075", "0.67840075", "0.6741391", "0.66441727", "0.66424114", "0.6641569", "0.6568208", "0.654783", "0.6543631", "0.65415496", "0.6518507", "0.64807...
0.0
-1
Calculate the absorption coefficient alpha
def BCp6(kTwQ, Kt_s, M2yA, PzV6, KyU2, im04, zFiD='halpha'): fkiF = KyU2 * 1e-06 _UVe = {'wavelength': {'halpha': 6.5628e-07, 'hbeta': 4.86135e-07, 'hgamma': 4.34047e-07, 'hdelta': 4.10173e-07}, 'f_osc': {'halpha': 0.6407, 'hbeta': 0.11938, 'hgamma': 0.044694, 'hdelta': 0.022105}, 'Aul': {'halpha': 44101000.0, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cwt5(YKHO):\n H8rT = oyIN.sin(YKHO.omega())\n return YKHO.a1() / Z9rn.c * H8rT", "def VPbr(YKHO):\n return GIWE(YKHO.solution, YKHO.use_const)[0]", "def Cwt5(YKHO, LEev, Xyq7, Z9rn):\n if LEev == 0.0:\n return 0.0\n else:\n return 1.0 + Xyq7 * Z9rn / LEev", "def Cwt5(YKHO) ->...
[ "0.75805193", "0.7271462", "0.7158083", "0.71428406", "0.71282536", "0.7086047", "0.7055735", "0.6872783", "0.67840075", "0.67840075", "0.67840075", "0.6741391", "0.66441727", "0.66424114", "0.6641569", "0.6568208", "0.654783", "0.6543631", "0.65415496", "0.6518507", "0.64807...
0.0
-1
Creates a PlatformParameterModel instance.
def eLpg(Emd4, _N6A: str, pg_C: List[platform_parameter_domain.PlatformParameterRuleDict], fwIv: int, HyJ9: platform_parameter_domain.PlatformDataTypes) -> ySwp: return Emd4(id=_N6A, rules=pg_C, rule_schema_version=fwIv, default_value=HyJ9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U2Iy(YKHO):\n return _VfD.Model_createParameter(YKHO)", "def U2Iy(YKHO, mWFP, BWXx):\n k78t = XDS4(YKHO)\n YKHO.callRemote('createParameter', mWFP, BWXx).chainDeferred(k78t)\n return k78t", "def eZwx(YKHO, mWFP, BWXx):\n return XDS4(YKHO, mWFP, BWXx)", "def eLpg(YKHO) -> ZylS.keras.models....
[ "0.6038443", "0.5898745", "0.57178617", "0.54691094", "0.5428996", "0.52719665", "0.52563184", "0.5229282", "0.5225646", "0.5200385", "0.5198576", "0.5181845", "0.5179588", "0.517855", "0.5129397", "0.51045793", "0.5091119", "0.50768375", "0.50669825", "0.5065463", "0.5036845...
0.76449805
0
Routine for determining the index mu such that t_mu <= x < t_mu+1. If x is larger than t[1], then the last index is returned, for convenience sake. If x is smaller than t[0], then the first index is returned, for convenience sake.
def d6pt(WKvO, a1PO): if WKvO < a1PO[0]: return 0 for YRbF in range(len(a1PO) - 1): if a1PO[YRbF] <= WKvO < a1PO[YRbF + 1]: return YRbF return len(a1PO) - 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn7Z(YKHO, P6bq):\n if P6bq == YKHO.grid[-1]:\n d6pt = (YKHO.grid < P6bq).argmin() - 1\n else:\n d6pt = (YKHO.grid > P6bq).argmax() - 1\n return d6pt", "def ilpt(YKHO, a1PO):\n a1PO = oyIN.array(a1PO)\n jzdc = (a1PO[:, oyIN.newaxis] <= YKHO._data['stop']) & (a1PO[:, oyIN.newaxis]...
[ "0.6467503", "0.6289578", "0.62218434", "0.60289025", "0.59865326", "0.59564394", "0.5892032", "0.5744281", "0.57170856", "0.5653306", "0.5653306", "0.5596471", "0.5575372", "0.5501344", "0.5484174", "0.5461618", "0.54523337", "0.5445007", "0.5395855", "0.5392234", "0.5381911...
0.7450273
0
Get the directory the script is being run from
def Hp8l(): return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TCZx():\n return Hy7s.path.dirname(xAKo)", "def lAdj():\n return Hy7s.path.dirname(Hy7s.path.realpath(HwRy.argv[0]))", "def Xznu():\n return Hy7s.path.dirname(Hy7s.path.abspath(xAKo))", "def oi6E(YKHO):\n if YKHO._script_dir:\n return YKHO._script_dir[-1]\n else:\n return Non...
[ "0.9032008", "0.85514134", "0.84030205", "0.8204221", "0.8180877", "0.79245794", "0.79154485", "0.7863617", "0.78479075", "0.7799003", "0.77155125", "0.77155006", "0.7712691", "0.7662973", "0.76583695", "0.7639003", "0.7633195", "0.7625982", "0.7607391", "0.7600444", "0.75781...
0.8963206
1
Computes photon wavelength in m E is photon energy in eV
def EhIg(ut5U): return 12398.4 / ut5U * 1e-10
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __d3(VYvU):\n return 2 * oyIN.pi * nX8D * zNxT / VYvU", "def Yg_Y(k4pJ):\n return 1.23984197386209e-06 / k4pJ", "def __d3(VYvU):\n return 2 * O05v * nX8D * zNxT / VYvU", "def OuZi(__d3):\n return 1.23984197386209e-06 / __d3", "def __d3(YKHO):\n return __d3(VYvU)", "def jqW_(YKHO):\n ...
[ "0.7718985", "0.7642262", "0.7588794", "0.73797166", "0.7176949", "0.69914687", "0.6837897", "0.67762446", "0.67741716", "0.67048854", "0.6668647", "0.6616758", "0.65861285", "0.6564983", "0.64233637", "0.64233637", "0.6356801", "0.6292961", "0.62876594", "0.62810636", "0.627...
0.5720966
73
Computes the photon wavelength in m f is the photon frequency in Hz
def ZpJM(eHNT): vC9B = Z9rn['c'] / eHNT return vC9B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __d3(YKHO, QTg7):\n return YKHO.phase_velocity() / QTg7", "def xuAG(XP5J):\n return 440.0 * 2 ** ((XP5J - 69) / 12.0)", "def Yg_Y(k4pJ):\n return 1.23984197386209e-06 / k4pJ", "def __d3(VYvU):\n return 2 * oyIN.pi * nX8D * zNxT / VYvU", "def J5Ev(QTg7):\n return SxG5.SPEED_OF_LIGHT_METRE...
[ "0.76552045", "0.7354487", "0.7335382", "0.7217696", "0.72035086", "0.7099578", "0.70643204", "0.7044682", "0.69830227", "0.6874363", "0.6851119", "0.6847966", "0.6847966", "0.6812081", "0.6808982", "0.6786479", "0.6760791", "0.6733954", "0.66572225", "0.6639089", "0.6603311"...
0.0
-1
Computes the photon in energy in eV f is the photon frequency in Hz
def mqfr(eHNT): ut5U = Z9rn['h'] * eHNT * P6bq['eV'] return ut5U
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xiH1(QTg7=1.0, VYvU=0.0):\n global r, c, h\n if QTg7 == 0:\n print('enerji yok...')\n return 0\n if VYvU != 0:\n VYvU = VYvU\n else:\n VYvU = MKlR * QTg7\n dm_Y = str(input('frekans bulmak istiyorsaniz f,yoksa bos gecin.'))\n if dm_Y == 'f':\n return '%.2E' ...
[ "0.75582814", "0.7010123", "0.6980056", "0.6860616", "0.67464495", "0.66993487", "0.66138697", "0.66058874", "0.65789384", "0.64807785", "0.64652133", "0.64642763", "0.64283204", "0.6425996", "0.6407731", "0.64068997", "0.6403905", "0.64035344", "0.6370066", "0.63126194", "0....
0.5724887
93
Return the average atom weight in g/mol
def acse(KgWQ): vb7U = zj87(KgWQ) xAEJ = pMBr.CompoundParser(vb7U) bMbF = 0.0 for YRbF in range(xAEJ['nElements']): bMbF += pMBr.AtomicWeight(xAEJ['Elements'][YRbF]) * xAEJ['massFractions'][YRbF] return bMbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wr29(YKHO):\n return bMU8.phase_meanmolwt(YKHO._phase_id)", "def cHrP(YKHO):\n H549 = 0.0\n for jzdc in YKHO.allAtoms:\n try:\n H549 += YKHO.atomic_weight[jzdc.element]\n except KeyError as key:\n print('Unknown element: %s' % H5ew)\n return H549", "def JBMS(...
[ "0.7428603", "0.73206", "0.68543315", "0.6735723", "0.65982187", "0.65982187", "0.65982187", "0.6588203", "0.6512015", "0.64679813", "0.6382028", "0.6346343", "0.6338674", "0.6314785", "0.6290057", "0.6283606", "0.6278108", "0.6278108", "0.6261621", "0.62610686", "0.62504274"...
0.6954688
2
Return the molar mass as g/mol
def dDpz(KgWQ): vb7U = zj87(KgWQ) xAEJ = pMBr.CompoundParser(vb7U) return acse(KgWQ) * xAEJ['nAtomsAll']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o1FF():\n return jApF([(QJlQ.g / QJlQ.mol, uqom.u)], 'molar_mass_amu')", "def Ij8U():\n return 28.9647", "def yGTL(YKHO):\n return YKHO.mass * yvY1", "def GHEQ(AWqv):\n CEj2 = AWqv.get_average_temperature()\n C6LG = AWqv.get_average_acceleration()\n GC8L = AWqv.get_ground_pressure()\n ...
[ "0.74213403", "0.73191154", "0.7141935", "0.7074142", "0.69905573", "0.69690686", "0.6968213", "0.6919618", "0.68583095", "0.67381555", "0.6718499", "0.66173255", "0.6593325", "0.6585546", "0.65702826", "0.65114176", "0.65034044", "0.65034044", "0.65002054", "0.649447", "0.64...
0.6663713
11
Calculate the mass attenuation coefficients (1/m) at given energies
def yGTL(KgWQ, vrXm, InLe=None): vb7U = zj87(KgWQ) if InLe == None: InLe = JeCW(KgWQ) if oyIN.isscalar(vrXm): qbnw = oyIN.array([vrXm], dtype=oyIN.double) else: qbnw = oyIN.array(vrXm, dtype=oyIN.double) R_A9 = oyIN.array([pMBr.CS_Total_CP(vb7U, nSBL) * InLe * P6bq['cm'] for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ioPo(YKHO, Nqlg):\n lNm8 = Nqlg.to('nm', 'spectroscopy').magnitude\n if PjOg(lNm8):\n return [YKHO.getExtinctionCoefficient(vC9B) for vC9B in lNm8]\n else:\n return YKHO.getExtinctionCoefficient(lNm8)", "def WEVm():\n iYf1 = GPBl.c.value ** 2\n return jApF([(QJlQ.kg, QJlQ.J, lamb...
[ "0.6252447", "0.6237623", "0.60793096", "0.5906701", "0.59001994", "0.5900195", "0.58920497", "0.5859726", "0.5857189", "0.58342105", "0.5829927", "0.58216125", "0.5804701", "0.57791084", "0.576311", "0.567844", "0.5677239", "0.566387", "0.5661748", "0.56613755", "0.5651772",...
0.0
-1
Calculate the attenuation length (m) at given energies E in keV (vectorized) density in g/cm3, None=default density
def MpBu(KgWQ, vrXm, InLe=None): return 1.0 / yGTL(KgWQ, vrXm, InLe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jVSd(BOU9, V66g):\n return 0.069 * oyIN.sqrt(V66g / BOU9)", "def VYvU(tTpl: float) -> float:\n return 1 / oyIN.sqrt(2) * (KMvS(-tTpl / 2 + 1 / 2) / KMvS(-tTpl / 2 + 3 / 4))", "def dOlJ(VTtU, V66g, BOU9, T1bS):\n return oyIN.sqrt(VTtU * V66g / BOU9 / abs(T1bS))", "def Pu2T(uq0o):\n MKlR = P6bq...
[ "0.69875747", "0.683513", "0.68281406", "0.64340115", "0.640952", "0.6275915", "0.6182579", "0.6081061", "0.60733867", "0.59705806", "0.59496653", "0.59434277", "0.59365296", "0.590933", "0.5900445", "0.5885812", "0.58835375", "0.5881771", "0.5863816", "0.58308667", "0.582880...
0.6993646
0
Calculate the eV/atom at given energies
def gHgT(KgWQ, vrXm, rQum, erLZ, InLe=None): if InLe == None: InLe = JeCW(KgWQ) fnBj = MpBu(KgWQ, vrXm, InLe) dsbb = rQum / 1000 / (2 * oyIN.pi * fnBj * P6bq['cm'] * (erLZ * 0.1) ** 2) qr9x = acse(KgWQ) / Z9rn['NA'] / InLe return dsbb * qr9x / 1.6e-19
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eXLU(YKHO, aQOl, n9A3):\n pass", "def f71V(YKHO):\n YKHO.eVals, YKHO.eVecs = oyIN.linalg.eigh(YKHO.rhoOp)", "def VYvU(YKHO):\n YKHO.E = -oyIN.sum(YKHO.phi) + 0.5 * YKHO.mass * oyIN.sqrt(YKHO.v_x ** 2 + YKHO.v_y ** 2)", "def VYvU(tTpl: float) -> float:\n return 1 / oyIN.sqrt(2) * (KMvS(-tTpl /...
[ "0.7508632", "0.7372567", "0.72677183", "0.7163756", "0.7136966", "0.70494306", "0.7042038", "0.7004612", "0.6839347", "0.6825977", "0.68114936", "0.68095696", "0.6808786", "0.6807677", "0.6786194", "0.6767813", "0.67579764", "0.67347634", "0.67287016", "0.66870046", "0.66575...
0.59766996
95
Calculate the eV/atom at given energies with mu_en
def ZfjL(KgWQ, vrXm, rQum, erLZ, InLe=None): if InLe == None: InLe = JeCW(KgWQ) fnBj = 1.0 / PNib(KgWQ, vrXm, InLe) dsbb = rQum / 1000 / (2 * oyIN.pi * fnBj * P6bq['cm'] * (erLZ * 0.1) ** 2) qr9x = acse(KgWQ) / Z9rn['NA'] / InLe return dsbb * qr9x / 1.6e-19
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qSlP(cAlv):\n return 5.227e-06 * cAlv * cAlv", "def eXLU(YKHO, aQOl, n9A3):\n pass", "def ICuz(N9D1):\n try:\n qmUb = 1.0 / gT30(1, 'hartree', 'eV')\n Oa1e = hQb7.Gaussian(N9D1.calc.log, loglevel=50)\n Csk6 = Oa1e.parse()\n A3tM = oyIN.array(Csk6.oniomenergies)\n exc...
[ "0.70589775", "0.677859", "0.6765921", "0.67600095", "0.6704203", "0.6699837", "0.6672238", "0.664315", "0.66347003", "0.66338253", "0.6538472", "0.6527403", "0.6355422", "0.63233757", "0.63145655", "0.6307296", "0.62996507", "0.6297362", "0.62903994", "0.62738526", "0.625709...
0.68466586
1
Get integrated heat capacity in J/mol T1, T2 in K
def snaX(KgWQ, EcF3, ljbI): zj87(KgWQ, 'Cp') if KgWQ in APtX: k0lF = APtX[KgWQ] return hGuI(EcF3, ljbI, k0lF) else: raise Exception(f'Wrong material {KgWQ}: Only support materials within specificHeatParams.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ltPx(YKHO, xNQ_=None, VWrU=None):\n xNQ_ = YRCA(VWrU, xNQ_)\n YKHO.checkPropertyTempRange('heat capacity', xNQ_)\n return sum([+1.38642e-13 * xNQ_ ** 4, -6.47481e-10 * xNQ_ ** 3, +1.02345e-06 * xNQ_ ** 2, -0.000432829 * xNQ_, +1.06133]) * 1000.0", "def UML0(Mkmy, rVnq, vexM, uq0o):\n meX1 = vexM ...
[ "0.7052304", "0.66729563", "0.6499355", "0.6234018", "0.610847", "0.61031497", "0.60763925", "0.6059473", "0.59271187", "0.5921819", "0.5901262", "0.5900872", "0.58959717", "0.58786666", "0.58646834", "0.5833922", "0.5831791", "0.5828057", "0.579185", "0.5747869", "0.5731908"...
0.0
-1
Computes the d spacing (m) of the specified material and reflection
def nRPI(yHil, S8Xq): yHil = zj87(yHil) MKlR = S8Xq[0] G1Hx = S8Xq[1] vC9B = S8Xq[2] hl9z = qImE[yHil] jzdc = hl9z[0] / P6bq['ang'] Fg_i = hl9z[1] / P6bq['ang'] Z9rn = hl9z[2] / P6bq['ang'] Cwt5 = hl9z[3] UqYS = hl9z[4] KMvS = hl9z[5] ZLSD = dzI3(Cwt5) BBLH = dzI3(UqY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MPRT(Mx95):\n if Mx95 == 'mild':\n return 7850.0\n elif Mx95 == 'al':\n return 2700.0\n else:\n raise ValueError('Invalid material `' + Mx95 + \"'\")", "def MuBg(YKHO, E3D9, epBp):\n yvY1 = YKHO.Growth(epBp)\n bGrB, bGrB, K1Zo = YKHO.mass_func(E3D9, yvY1)\n return K1Zo"...
[ "0.5791452", "0.57363826", "0.54793894", "0.5472913", "0.541863", "0.5322831", "0.5271524", "0.5220121", "0.5219725", "0.5149651", "0.5139184", "0.50905675", "0.50732553", "0.50541776", "0.503615", "0.5034007", "0.5033631", "0.5013977", "0.5012649", "0.49741548", "0.4968204",...
0.0
-1
Computes the delta E corresponding to the Darwin width for a specified crystal reflection (degrees)
def tOAh(yHil, S8Xq, ut5U, Kt_s=293): ut5U = Jsb0(ut5U) return fp6a(yHil, S8Xq, ut5U, Kt_s) * ut5U
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JsF9(YKHO):\n JZs_ = YKHO.header\n if 'cd1_1' in JZs_:\n YKHO.D = abs(JZs_['cd1_1']) * JZs_['naxis1']\n elif 'cdelt1' in JZs_:\n YKHO.D = abs(JZs_['cdelt1']) * JZs_['naxis1']\n else:\n print('Warning: no coordinate information found in input header;')\n print(' pupil w...
[ "0.6305159", "0.628104", "0.61090827", "0.6099441", "0.6003955", "0.5969684", "0.59541386", "0.58690524", "0.5837903", "0.58183527", "0.5788124", "0.5761929", "0.5751232", "0.5731895", "0.5719951", "0.57171685", "0.5686599", "0.5649855", "0.5640603", "0.5612785", "0.5608334",...
0.62418085
2
Alteration to the offical SummaryWriter from PyTorch, which creates a new tensorboard event file with the hyperparameters and adds additional scalars to the scalartab with the registered metric value. This is unfortunate behavior, and the below merely adds the hyperparameters to the existing eventfile.
def sg_A(YKHO, vIWt, FS6T): ht2j._C._log_api_usage_once('tensorboard.logging.add_hparams') if type(vIWt) is not dict or type(FS6T) is not dict: raise TypeError('hparam_dict and metric_dict should be dictionary.') kLQb, sdKA, jOw9 = QjBU(vIWt, FS6T) YKHO._get_file_writer().add_summary(kLQb) Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AWsf(P8oC, Wbxz, Y9ns, YPaw, WJI9):\n TZ9E = '{}/{}'.format(P8oC, 'train' if Y9ns else 'val')\n WJI9.add_scalars(TZ9E, Wbxz, YPaw)", "def fg8e(YKHO, mWFP: str, upAO: DLTypes.WeightType, YPaw: int):\n pass", "def skZ8(YKHO, WJI9: SummaryWriter, Aak1):\n ExUL = ht2j.sum(ht2j.tensor(YKHO.things['k...
[ "0.61675715", "0.6129573", "0.61244494", "0.60987085", "0.59445614", "0.5911755", "0.59107924", "0.5841179", "0.58267045", "0.5798979", "0.5740645", "0.5712491", "0.56752306", "0.5646024", "0.5636965", "0.56225586", "0.55613816", "0.55318564", "0.55298287", "0.55234826", "0.5...
0.6085192
4
Sends a 401 response that enables basic auth
def NLCy(): return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})", "def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})", "def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\...
[ "0.8093736", "0.80926424", "0.7958403", "0.7852648", "0.7843114", "0.7824419", "0.776624", "0.7754693", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.774767", "0.771945", "0.7667712", "0.7664151", "0.76493174", "0.76140213", "0.76131...
0.7810746
25
Specifies that the class is a planning entity. Each planning entity must have at least 1 PlanningVariable property. The class MUST allow passing None to all of __init__ arguments, so it can be cloned.
def kOlb(vh0e): hkve() yvT9 = SMuo('org.optaplanner.optapy.OpaquePythonReference')(vh0e) yvT9.__javaClass = iVOS(vh0e) lQ3J(yvT9) return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, RqgG, xi3E=(3, 3, 0, 0, 0)):\n YKHO.goal = xi3E\n J2ov.__init__(YKHO, RqgG, xi3E)", "def FIMM(YKHO):\n YKHO.spawn_distance = 0\n YKHO.done_init = False\n YKHO.wall_set = None\n YKHO.planned_nest_set = None\n YKHO.nest_completion_set = None\n YKHO.uuid_task_map = {}\n YKH...
[ "0.5589948", "0.5581126", "0.55328023", "0.5435785", "0.54008275", "0.53800786", "0.53735876", "0.5358138", "0.5339011", "0.5339011", "0.53295225", "0.5272971", "0.52545625", "0.5220482", "0.5209913", "0.52015144", "0.51990515", "0.51923585", "0.51741636", "0.5168528", "0.515...
0.55008984
3
Sample initial states by taking random number of noops on reset. Noop is assumed to be action 0.
def FIMM(YKHO, sEAN, cc1Y=30): super().__init__(sEAN) YKHO.noop_max = cc1Y YKHO.noop_action = 0 assert sEAN.unwrapped.get_action_meanings()[0] == 'NOOP'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO, **B2fa):\n YKHO.env.reset(**B2fa)\n QDHm = YKHO.unwrapped.np_random.randint(1, YKHO.noop_max + 1)\n W061 = None\n for bGrB in range(QDHm):\n W061, bGrB, _ins, bGrB = YKHO.env.step(YKHO.noop_action)\n if _ins:\n W061 = YKHO.env.reset(**B2fa)\n return W061", "...
[ "0.7220573", "0.7218107", "0.70735174", "0.7022051", "0.7017444", "0.6946022", "0.6893083", "0.6888874", "0.6792307", "0.67864877", "0.66359997", "0.6548219", "0.6544826", "0.64771396", "0.64689976", "0.6465279", "0.64268816", "0.6426747", "0.6426265", "0.64195555", "0.637647...
0.0
-1
Bin reward to {+1, 0, 1} by its sign.
def vOGg(YKHO, vOGg): return oyIN.sign(vOGg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)", "def vOGg(YKHO, vOGg):\n return float(oyIN.sign(vOGg))", "def Zihr(WKvO):\n return tBeC(1, WKvO)", "def Zihr(YKHO):\n return 1 - 2 * YKHO._ltz()", "def Zihr(YKHO, g4y1):\n pass", "def Zihr(YKHO, g4y1):\n pass", "def Zihr(WKvO):\n if ...
[ "0.71697664", "0.66509384", "0.6515038", "0.61945957", "0.6051103", "0.6051103", "0.6046361", "0.6012344", "0.59601265", "0.59504265", "0.5904576", "0.5820199", "0.58148813", "0.57996655", "0.5713134", "0.5707423", "0.5689205", "0.56575656", "0.56444323", "0.56282294", "0.562...
0.70802456
5
Tests updating aesthetic fields on Tenant
def Qzs5(ISKm): NT__, ehIZ, LK6k, Vq3K = ISKm ehIZ.name = 'ilovebeansllc' MOPg = {'Authorization': 'Bearer ' + NT__} _F4f = rjpL.TenantSchema().dump(ehIZ) B_8X = Vq3K.put(f'api/v1/identity/tenant/{ehIZ.id}', json=_F4f, headers=MOPg) assert B_8X.status_code == 200, 'Tenant could not be updated'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NaHP(ISKm):\n NT__, ehIZ, LK6k, Vq3K = ISKm\n MOPg = {'Authorization': 'Bearer ' + NT__}\n UrTq = f'{qxeD.uuid4()}@c1.com'\n tvXc = str(qxeD.uuid4())\n SECb = str(qxeD.uuid4())\n Wyyb = {'first_name': tvXc, 'last_name': SECb}\n FNO3 = Vq3K.put(f'api/v1/identity/tenant-user/{LK6k.id}', json...
[ "0.74706066", "0.70539707", "0.70173454", "0.6784828", "0.66443217", "0.6637554", "0.6588656", "0.6583764", "0.6583764", "0.6583764", "0.6574935", "0.6535326", "0.6534278", "0.65183234", "0.6483002", "0.64679134", "0.6450146", "0.6431829", "0.6415476", "0.64035213", "0.639738...
0.7749024
0
Point with the given offset from the given point.
def mJSj(FDPT, QnmL, XY8p, Ayfi): _Lrm = oyIN.cos(Ayfi) ZaIS = oyIN.sin(Ayfi) iLgF = oyIN.sin(QnmL) a8ih = oyIN.cos(QnmL) Anmg = oyIN.cos(XY8p) IvOE = oyIN.sin(XY8p) ylx7 = iLgF * _Lrm + a8ih * ZaIS * Anmg aFpp = ZaIS * IvOE * a8ih dCAN = _Lrm - ylx7 * iLgF k0lF = CEWs(oyIN.arcta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQEm(YKHO, vgXP):\n if vgXP > YKHO.length():\n raise ValueError('Offset ({0})is greater than segment length ({1})'.format(vgXP, YKHO.length()))\n Jw7X = YKHO.b.x - YKHO.a.x\n eUWA = YKHO.b.y - YKHO.a.y\n OW9O = epAf.hypot(Jw7X, eUWA)\n return PvyL(YKHO.a.x + Jw7X / OW9O * vgXP, YKHO.a.y +...
[ "0.7713544", "0.7500018", "0.7447083", "0.74095315", "0.65110433", "0.6407543", "0.6362605", "0.62644905", "0.6243919", "0.6231472", "0.6186376", "0.6127296", "0.5993346", "0.5959296", "0.5928464", "0.59195495", "0.5867954", "0.585459", "0.5849837", "0.58097494", "0.58071303"...
0.0
-1
Create an unresolved Entry for this builder. Calls `_CONTEXT.on_entry` to register/check dependencies etc.
def nrOS(YKHO, GPtr): bTKY = RAUw(YKHO.name, tJEc(GPtr), GPtr, None, None, None) if not hasattr(y4Xh, 'on_entry'): return bTKY Jo75 = y4Xh.on_entry if Jo75: Jo75(bTKY) return bTKY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P0O5(bTKY):\n RAUw.create(**bTKY)\n return bTKY", "def IDYM(YKHO):\n C9U5 = {Jyyj: BWXx for Jyyj, BWXx in YKHO.properties.items() if Jyyj in YKHO.type_cls.entry_fields}\n return YKHO.type_cls.from_proxy(YKHO.name, YKHO.description, YKHO.updated, YKHO.notes, C9U5)", "def P0O5(aBkf):\n bTKY = ...
[ "0.62241614", "0.57561404", "0.57318985", "0.5663275", "0.56416744", "0.55154335", "0.53690875", "0.5359811", "0.53573525", "0.52931273", "0.5256571", "0.52439976", "0.5211755", "0.52079546", "0.51699185", "0.5136273", "0.5114029", "0.50949085", "0.5077293", "0.50508136", "0....
0.5899941
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, dHa0): 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.8089139", "0.8089139", "0.8054507", "0.79827213", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", "0.79669285", ...
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
Creates a survival class label list from a list of survival days categories are 0 for under 10 month survival, 1 for 1015 months and 2 for 15+ months
def jLBZ(LVAh): _Iob = [] for O5iP in LVAh: if int(O5iP) < 365 * 10.0 / 12.0: _Iob.append(0) elif int(O5iP) < 365 * 15.0 / 12.0: _Iob.append(1) else: _Iob.append(2) return oyIN.array(_Iob)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Znz3():\n return {0: 'others', 33: 'car', 34: 'motorcycle', 35: 'bicycle', 36: 'pedestrian', 38: 'truck', 39: 'bus', 40: 'tricycle'}", "def Xt8w(Sm0u: int, DuqQ: str) -> x1iM[str]:\n Crrw = []\n for owAA in range(Sm0u, -1, -1):\n yJso = _c1T.today() - fCoM(days=owAA)\n E3oo = msz2(yJso...
[ "0.58232903", "0.54263556", "0.5314535", "0.5298069", "0.52912474", "0.52161705", "0.52161705", "0.5207141", "0.51999825", "0.5147364", "0.51438856", "0.5126135", "0.511763", "0.51065487", "0.50985366", "0.50954306", "0.5069807", "0.5069807", "0.5069807", "0.50318503", "0.503...
0.587338
0
Formats keyvalue pairs into a string.
def msBn(H5ew, BWXx, RH2D='{key}="{value}"'): if not H5ew or ' ' in H5ew: raise Ew87('Invalid name "{}"'.format(H5ew)) if BWXx: if type(BWXx) is hQbh: BWXx = str(BWXx) else: BWXx = _R2e.escape(str(BWXx)) return RH2D.format(key=H5ew, value=BWXx) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cGDd(mpdT):\n return '\\n'.join(['{} - {}'.format(H5ew, BWXx) for H5ew, BWXx in mpdT])", "def s5Oe(H5ew: str, BWXx: Any, BcCR: int=50) -> str:\n H5ew = s6_D(H5ew, max_length=BcCR)\n depL = s6_D(L5S4(BWXx), max_length=BcCR)\n return f'{H5ew}={depL}'", "def LM8n(Gf3C: Map) -> FgBH:\n cLkb = u'...
[ "0.7382339", "0.70097125", "0.69886804", "0.69435406", "0.6925893", "0.68692976", "0.68466157", "0.6813373", "0.68111455", "0.6705478", "0.66385466", "0.66350627", "0.6613811", "0.6563796", "0.65591246", "0.64990306", "0.6475155", "0.64583576", "0.6454809", "0.6448298", "0.64...
0.0
-1
Set new password for the user
def rjh8(YKHO, uJjO, fawY, jTXt): if not jTXt: raise TmKd("New password can't be blank.") try: CBIr = YKHO.get(id=uJjO) if not CBIr.reset_code or CBIr.reset_code != fawY or CBIr.reset_code_expire < rIAI.now(): raise TmKd('Password reset code is invalid or expired.') C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zZft(YKHO, zN5h):\n pass", "def G3s8(YKHO, uGpu):\n super(b485, YKHO).set_password(uGpu)\n YKHO.new_password = uGpu", "def faAE(YKHO):\n YKHO.test_user.set_password(YKHO.create_user_data()['password1'])\n YKHO.test_user.save()", "def wP2P(YKHO, uGpu):\n YKHO.password = uGpu", "def cDC...
[ "0.85625076", "0.84197134", "0.84045476", "0.8324854", "0.8196439", "0.8067187", "0.8015951", "0.7982908", "0.79221594", "0.7921293", "0.79066974", "0.7902557", "0.78806853", "0.7870783", "0.7867309", "0.7854127", "0.78511465", "0.78445166", "0.78221756", "0.78202033", "0.781...
0.0
-1
Remove leading text on variable names.
def TBoN(p4_k, pan_=None): if pan_ is None: return elif isinstance(pan_, str): pan_ = [pan_] elif not isinstance(pan_, list) or not isinstance(pan_[0], str): raise ValueError('target must be a string or list of strings') for RGEy in pan_: if isinstance(p4_k.data, z1fx.Dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SREd(WKvO: str) -> str:\n WKvO = WKvO.replace(', var.', ' var.')\n if '{' in WKvO:\n WKvO = WKvO[:WKvO.find('{') - 1]\n return WKvO", "def cxaQ(mWFP):\n return ZbWC.sub('\\\\s+', ' ', ZbWC.sub('[!/\\\\\\\\:<>\"\\\\?\\\\*\\\\|]', '', mWFP)).strip()", "def NkkI(KCHu):\n KCHu = str(KCHu....
[ "0.6638469", "0.65389246", "0.6395497", "0.6389507", "0.63287926", "0.62626815", "0.6244013", "0.6228783", "0.61929065", "0.61640257", "0.61412144", "0.60851556", "0.6054423", "0.602227", "0.595736", "0.59389913", "0.5916294", "0.59032863", "0.58989096", "0.587039", "0.586797...
0.585807
22
Create filenames as needed to support use of generated pysat data sets.
def P4pr(BWXx, PFAa=None, kepv=None, GbiR=None): U4Y2 = ''.join(('This feature has not been implemented yet and is here ', 'to support experimentation by the pysat team. If you are ', 'here intentionally, please contact the pysat developers ', 'at pysat.developers@gmail.com or pysat.slack.com and let ', 'us know wh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pcWg(YKHO):\n BuvW = Hy7s.path.join(YKHO.path, 'TCGA-*')\n for eHNT in SC2F(BuvW):\n MiIf = fu_G(eHNT)\n for Jajz in SC2F(Hy7s.path.join(eHNT, '*.tif')):\n ti5Z = Jajz.replace('.tif', '.xml')\n yield (Jajz, ti5Z, MiIf)", "def UjUC(rDuq):\n pmON, Ux0P = Hy7s.path.s...
[ "0.690355", "0.6853771", "0.6809362", "0.673915", "0.67020744", "0.66942877", "0.6658102", "0.6500855", "0.6470896", "0.645403", "0.64270043", "0.6413755", "0.64010847", "0.6393033", "0.6370594", "0.63543373", "0.6306602", "0.6296167", "0.6285599", "0.62806803", "0.62518775",...
0.0
-1
Test a situation where we don't have any room to fit a 10 hour long meeting, and make sure free correctly doesn't give us any options.
def QwoA(): Y0ko, bGrB = ftQ2([], 9, 0, 17, 0, khO8, 600) nbHO = yAKl(Y0ko) for YRbF in nbHO: print(YRbF) assert nbHO == []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L4WJ(YKHO):\n pass", "def e8JH(YKHO):\n YR4Q = JRYC.datetime(2021, 6, 18, 7, 0, 0)\n with YKHO.assertRaises(ValueError) as QpfX:\n YKHO.duedate.check_args(YR4Q, YKHO.test_turn_time)\n YKHO.assertTrue('You can submit requests from 9AM till 5PM.' in str(QpfX.exception))", "def xoak(YKHO):\...
[ "0.6461312", "0.6427224", "0.63982356", "0.63208705", "0.62497026", "0.62348133", "0.6175124", "0.61536694", "0.6140344", "0.6110118", "0.6105791", "0.60931855", "0.6075776", "0.60656667", "0.6051703", "0.60466737", "0.6025748", "0.6015936", "0.5952996", "0.5946169", "0.59436...
0.0
-1
Transform a point by a pose.
def aLdE(YKHO): Xf84 = oyIN.array([1.0, 2.0, 3.0]) yKIT = shtX.Pose() yKIT.position = SeJT.array([4.0, 5.0, 6.0]) ZYCo = yKIT.transform(Xf84) YKHO.assertLess(oyIN.linalg.norm(ZYCo - oyIN.array([5.0, 7.0, 9.0])), 1e-06)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _VIe(SZFh: Transform, AU8u: Point) -> PvyL:\n dKht = rqHt.math.transformation_matrix_from_array(rqHt.ros.transform_to_numpy(SZFh))\n Ufzx = rqHt.ros.point_to_numpy(AU8u)\n Ufzx = oyIN.append(Ufzx, 1).reshape((4, 1))\n gMzY = oyIN.matmul(dKht, Ufzx)\n return rqHt.ros.numpy_to_point(gMzY[0:3, 0])"...
[ "0.7689383", "0.75313944", "0.7491983", "0.717364", "0.6967495", "0.6942316", "0.68925005", "0.68116057", "0.6775886", "0.674591", "0.6688146", "0.6662814", "0.66449785", "0.6541229", "0.65059096", "0.64215887", "0.64020514", "0.6357577", "0.63394284", "0.62678653", "0.625153...
0.6632149
13
Creates a random training array of x and y values from the previously generated random training indices.
def Eiqb(Esb2, r0mF, BcyM, sf10): z6Lx = oyIN.array([]) G5Ti = oyIN.array([]) STU4 = 0 for vexM in range(0, Esb2): if sf10.__contains__(vexM): if STU4 is 0: z6Lx = r0mF[vexM] STU4 = -1 else: z6Lx = oyIN.vstack((z6Lx, r0mF[ve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QDrW():\n OfOG = 5\n Gmep = 100\n ik2X = 10\n STgL = oyIN.random.rand(Gmep, OfOG)\n Pd6k = oyIN.random.random_integers(1, ik2X, size=(Gmep, 1))\n MtBk = oyIN.append(STgL, Pd6k, 1)\n return (MtBk, ik2X, OfOG)", "def yLtf(c2Yh, tuKI, vcQk):\n cC56, VJv0, sAoX, H96n = c2Yh(tuKI, vcQk)\n ...
[ "0.6570673", "0.6503485", "0.64883083", "0.64699143", "0.62543833", "0.61690664", "0.61252266", "0.6068083", "0.60674566", "0.6065398", "0.60245997", "0.6022316", "0.60218686", "0.60069555", "0.59726936", "0.5962033", "0.59572494", "0.5953861", "0.59299576", "0.5908545", "0.5...
0.6240317
5
Load weights from snapshot file
def SUd8(Zxma, K0do, IesV, MYwg, K0PS=False): G9jH.info('Loading weights from model %s', MYwg) Zxma, K0do, IesV, qtWj, XLu5 = YdgH(Zxma, K0do, IesV, MYwg, K0PS) return (qtWj, XLu5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SUd8(YKHO, VqRE):\n YKHO.model.load_weights(VqRE)", "def H_1o(YKHO):\n YKHO.npz_weights = oyIN.load(YKHO._weight_file)\n YKHO._load_byte_embedding()\n YKHO._load_cnn_weights()\n YKHO._load_highway()\n YKHO._load_projection()", "def SUd8(YKHO, BZEu):\n YKHO.model.load_weights(BZEu)", ...
[ "0.7100965", "0.7099289", "0.70770496", "0.69538385", "0.69538385", "0.6940326", "0.6940326", "0.6904215", "0.686968", "0.68578506", "0.68147826", "0.6770877", "0.6694163", "0.6670967", "0.66293234", "0.6612041", "0.6583617", "0.6533964", "0.65129817", "0.6429854", "0.6425971...
0.7182239
0
Restore weights and optimizer (if needed ) for resuming job.
def YdgH(Zxma, K0do, IesV, Rwel, K0PS): vauY = ht2j.load(Rwel, map_location=ht2j.device('cpu')) G9jH.info('Checkpoint Load Compelete') if K0do is not None and 'optimizer' in vauY and K0PS: K0do.load_state_dict(vauY['optimizer']) if IesV is not None and 'scheduler' in vauY and K0PS: IesV....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLQf(YKHO, vauY):\n V1C0 = Hy7s.path.join(vauY, 'model_weights')\n YKHO.model.load_weights(V1C0)", "def wBIE(YKHO):\n YKHO.brain.restore_checkpoint()", "def wBIE(YKHO):\n if YKHO._model._in_multi_worker_mode() and (not tXR8.should_load_checkpoint()):\n return\n YKHO.read_checkpoint_ma...
[ "0.7119056", "0.70205605", "0.6907856", "0.68798095", "0.6837659", "0.6772707", "0.6730122", "0.65198785", "0.6509292", "0.6508566", "0.64382255", "0.6432103", "0.63515466", "0.63054734", "0.6265027", "0.6233326", "0.6201555", "0.6145458", "0.6145122", "0.61347353", "0.612845...
0.0
-1
Checks if claims user belongs to Tenant or has override permissions to edit other Tenants
def eKTp(mLXZ, UZvr=None): RZVq = _Zgp() if 'id' in list(RZVq.keys()): LK6k = _E99.TenantUser.query.filter_by(id=RZVq['id']).first() if LK6k.tenant_id == mLXZ or UZvr in LK6k.permissions: return eTsH(403, 'Unauthorized Tenant')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m4il(YKHO, QePW, tTee, CBIr):\n return CBIr == QePW.user or QePW.user.is_superuser", "def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method in w0rQ.SAFE_METHODS:\n return True\n return YEnM.id == QePW.user.ids", "def kFCl(YKHO, CBIr):\n return YKHO.is_public or CBIr == YKHO.owner or CBIr in...
[ "0.6689976", "0.66579235", "0.6575025", "0.6559304", "0.65221727", "0.64526767", "0.64456385", "0.64339375", "0.64206105", "0.64158726", "0.63980037", "0.6397329", "0.63969445", "0.6390685", "0.6379953", "0.6357644", "0.6335498", "0.63311714", "0.6319886", "0.6311173", "0.630...
0.7168181
0
Get current position in bounding box format `(top left x, top left y, width, height)`. Returns ndarray The bounding box.
def hPMZ(YKHO): U5bT = YKHO.mean[:4].copy() U5bT[2] -= U5bT[0] U5bT[3] -= U5bT[1] return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cviu(YKHO):\n return oyIN.array([[YKHO.position[0], YKHO.position[1]], [YKHO.position[0], YKHO.position[1]]])", "def HV3G(YKHO):\n rwK9 = oyIN.max(YKHO.points[:, 0])\n re6M = oyIN.max(YKHO.points[:, 1])\n KDmU = oyIN.min(YKHO.points[:, 0])\n wBZN = oyIN.min(YKHO.points[:, 1])\n return ((re6...
[ "0.77596384", "0.76277995", "0.74914104", "0.7463242", "0.7340598", "0.7291298", "0.7291298", "0.7284453", "0.7281455", "0.72684383", "0.7253557", "0.725342", "0.72211915", "0.72211915", "0.71617776", "0.70993555", "0.70709103", "0.7034543", "0.7002361", "0.6985949", "0.69722...
0.0
-1
Returns True if this track is dead and should be deleted.
def a3k1(YKHO): return YKHO.state == RwR0.Deleted
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fdx(YKHO):\n return YKHO.hearts <= 0", "def _fdx(YKHO):\n return YKHO.hp <= 0", "def _fdx(YKHO):\n if YKHO.killer:\n if YKHO.killer.stype == 'fire' and (not YKHO.killer in YKHO.pjs.fires):\n return True\n elif YKHO.killer.stype == 'enemy' and YKHO.timeout == 0:\n ...
[ "0.73522246", "0.73043823", "0.73029953", "0.7253518", "0.7196813", "0.69974554", "0.68229127", "0.6763713", "0.6648157", "0.6643092", "0.6627581", "0.66072875", "0.6537883", "0.633626", "0.6273279", "0.6250151", "0.6248301", "0.62391317", "0.62285733", "0.62271005", "0.62231...
0.7310355
2
Computes IUO between two bboxes in the form [x1,y1,x2,y2]
def cxP1(YKHO, xNOe, PG8m): frsW = oyIN.maximum(xNOe[0], PG8m[0]) TdlV = oyIN.maximum(xNOe[1], PG8m[1]) yjMy = oyIN.minimum(xNOe[2], PG8m[2]) YvNL = oyIN.minimum(xNOe[3], PG8m[3]) yzQ0 = oyIN.maximum(0.0, yjMy - frsW) MKlR = oyIN.maximum(0.0, YvNL - TdlV) BQsO = yzQ0 * MKlR z1Rg = BQsO /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rxci(wGB6, QFOH):\n wGB6 = oyIN.array(wGB6)\n QFOH = oyIN.array(QFOH)\n ko6_ = (wGB6[..., 2] - wGB6[..., 0]) * (wGB6[..., 3] - wGB6[..., 1])\n D4ph = (QFOH[..., 2] - QFOH[..., 0]) * (QFOH[..., 3] - QFOH[..., 1])\n Frej = oyIN.maximum(wGB6[..., :2], QFOH[..., :2])\n szuA = oyIN.minimum(wGB6[.....
[ "0.7835872", "0.76479733", "0.75411224", "0.7489639", "0.7474853", "0.7459696", "0.7459484", "0.7459484", "0.7443315", "0.7419611", "0.73922247", "0.7391839", "0.7327725", "0.7315838", "0.73052406", "0.7246565", "0.7230692", "0.72218716", "0.7210955", "0.7180109", "0.70957893...
0.0
-1
Returns a string representation of the version information of this project.
def kaPv(): return '.'.join([str(YRbF) for YRbF in GPtr['version']])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jED6(Emd4):\n return BtDU + '\\n'", "def zAg0(YKHO):\n return YKHO.version", "def wHJl(YKHO) -> str:\n return f'Version({YKHO.major}, {YKHO.minor}, {YKHO.patch})'", "def nzxL():\n return str(M2_k.major) + '.' + str(M2_k.minor) + '.' + str(M2_k.compilation)", "def vLH3():\n sP8i = iKN7.ge...
[ "0.8182292", "0.7585876", "0.75506777", "0.7505532", "0.74372286", "0.7423208", "0.741231", "0.7308783", "0.7293368", "0.72486275", "0.72482157", "0.7205356", "0.7182546", "0.7182546", "0.7182546", "0.7182546", "0.71682525", "0.7156679", "0.71290743", "0.7123848", "0.71083623...
0.0
-1
Get the normalization scale of the colormap. This will be hyper based on the input min / max normalization \ values. For a 'symmetric_log' colormap, linthesh and linscale also change the colormap. If norm_min / norm_max are not supplied, the minimum / maximum values of the array of data_type are used.
def ICg6(YKHO, qw7D): if YKHO.norm_min is None: wHvf = qw7D.min() else: wHvf = YKHO.norm_min if YKHO.norm_max is None: M6b5 = qw7D.max() else: M6b5 = YKHO.norm_max if YKHO.norm in 'linear': return Jw9H.Normalize(vmin=wHvf, vmax=M6b5) elif YKHO.norm in 'log...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yQZN(YKHO):\n if not YKHO.normalisable:\n return\n kzqU = YKHO.options.get('contrast', 0.2)\n MynD, n4wC = zSSg(contrast=kzqU).get_limits(YKHO.data)\n if YKHO.stokes == 'v':\n Ty9i = max(abs(MynD), abs(n4wC))\n MynD = -Ty9i\n n4wC = Ty9i\n if YKHO.options.get('vmin') ...
[ "0.72524613", "0.6972815", "0.6618555", "0.6486291", "0.6427787", "0.6354715", "0.6299304", "0.62872404", "0.6286947", "0.6258192", "0.6249495", "0.6228602", "0.6161088", "0.6160016", "0.6148347", "0.61341983", "0.6132477", "0.6123037", "0.61163986", "0.60827184", "0.6079793"...
0.6358464
5
Close the connection to the server.
def quit(YKHO, vCe_: bool): if not vCe_: try: YKHO.send('/quit') except: pass YKHO.joined = False YKHO.client.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n YKHO._connection.close()\n print('Closed connection....')", "def ngVb(YKHO):\n YKHO.nodesocket.close()", "def zml5(YKHO):\n print('closing connection...')\n YKHO.s.close()\n quit()", "def ngVb(YKHO):\n YKHO._conn.close()", "def DDI8(YKHO):\n YKHO._connection.close(...
[ "0.8024756", "0.78988117", "0.78597456", "0.78560853", "0.7834141", "0.7810334", "0.7797453", "0.77865463", "0.7783736", "0.7783736", "0.778099", "0.775742", "0.77461404", "0.77322274", "0.77180624", "0.7700556", "0.76925087", "0.7677453", "0.7664896", "0.7664896", "0.7664896...
0.0
-1
Returns a path within the media folder.
def NH8e(Ux0P, q7Dw='samples', f2Tp=False): GPxm = Hy7s.path.dirname(Hy7s.path.abspath(xAKo)) ObT1 = Hy7s.path.join(GPxm, f'{q7Dw}/') VqRE = Hy7s.path.join(ObT1, Ux0P) if not f2Tp and Hy7s.path.exists(VqRE): ewCu = 1 while not Hy7s.path.exists(VqRE): Ux0P, Fst3 = Hy7s.path.sp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ADRz(YKHO):\n return YKHO._path", "def uDqM():\n return fHZh[kaPC]", "def yxQq(YKHO) -> GkAb:\n return YKHO.path_supervisor / vNQk", "def IpST(YKHO):\n eHKs = fHZh.concat(YKHO._gnbase, QyPu)\n if not EeDH.path.isdir(eHKs):\n raise OSError('GEONIS media directory {!r} does not exist'...
[ "0.84203607", "0.81858176", "0.7804115", "0.7541061", "0.74994236", "0.7355289", "0.71313196", "0.71061504", "0.70629007", "0.70172185", "0.68971485", "0.68737835", "0.681157", "0.68090796", "0.67766106", "0.6737827", "0.6737827", "0.6669923", "0.666317", "0.66453886", "0.662...
0.0
-1
Determine whether a position is actually on the board.
def GKu2(YKHO, oeNL): YRbF, r845 = oeNL return 0 <= YRbF < jRFz and 0 <= r845 < yXc0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ldn_(BHsk: tuple, BrEt: int):\n jay3 = BHsk[0] in range(BrEt)\n DkAR = BHsk[1] in range(BrEt)\n return jay3 and DkAR", "def ufIw(YKHO, oeNL: np.ndarray) -> bool:\n if 0 > oeNL[0] or oeNL[0] >= P5Bq:\n return False\n if 0 > oeNL[1] or oeNL[1] >= P5Bq:\n return False\n return Tr...
[ "0.80705214", "0.7999629", "0.78791714", "0.7729873", "0.7538765", "0.748726", "0.72529185", "0.7232605", "0.7207643", "0.716349", "0.71262467", "0.71225506", "0.71194375", "0.70848924", "0.70833313", "0.7071761", "0.70679206", "0.7066438", "0.7058514", "0.7044103", "0.703895...
0.78372264
3
Drop (and lock) curr_piece as far as possible, granting points equal to the distance of the drop.
def luqH(YKHO): if YKHO.over: return RA_F = (0, 0) while True: tWKW = R7io(RA_F, (0, 1)) if YKHO.can_move_curr_piece(tWKW): RA_F = tWKW else: break YKHO.increment_score(RA_F[1]) YKHO.move_curr_piece(RA_F) YKHO.lock_curr_piece() YKHO.que...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def No5Y(YKHO, RA_F, AU8u=False):\n if YKHO.over:\n return\n elif YKHO.can_move_curr_piece(RA_F):\n YKHO.curr_piece.confirm_move(RA_F)\n if AU8u:\n YKHO.increment_score(1)\n elif RA_F == (0, 1):\n YKHO.lock_curr_piece()\n YKHO.queue_draw()", "def GqPs(YKHO, mrj1...
[ "0.65945", "0.64016134", "0.59951985", "0.5804648", "0.57469374", "0.57464397", "0.573787", "0.5701909", "0.5693444", "0.566303", "0.5634835", "0.5607702", "0.5607433", "0.5579537", "0.5576645", "0.5542439", "0.55122036", "0.54979587", "0.54958576", "0.548495", "0.5484019", ...
0.8361154
0
Set the pool of servers used by this client.
def vCys(YKHO, HwSA): YKHO.servers = [] YKHO.buckets = [] for S_bD in HwSA: if type(S_bD) == tuple: nLQm, upAO = S_bD else: nLQm, upAO = (S_bD, 1) N5z6 = tnE1(nLQm, upAO, YKHO._debuglog) YKHO.servers.append(N5z6) for kS1Y in range(upAO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KnX3(YKHO, KnX3):\n YKHO._server_pool = KnX3", "def vCys(YKHO, HwSA):\n YKHO.servers = [rpQI(KCHu, YKHO.debug, dead_retry=YKHO.dead_retry, socket_timeout=YKHO.socket_timeout) for KCHu in HwSA]\n YKHO._init_buckets()", "def vCys(YKHO, HwSA):\n B2fa = dict(io_loop=YKHO.io_loop)\n if YKHO.dead_...
[ "0.7319679", "0.680685", "0.6783699", "0.6467647", "0.6271275", "0.615868", "0.60961", "0.60128826", "0.5960502", "0.5913157", "0.58820456", "0.5873742", "0.5798574", "0.5772111", "0.5718808", "0.5644137", "0.55850923", "0.55629134", "0.5554513", "0.55439126", "0.55362344", ...
0.7087884
1
Check that getting, setting, and deleting an object work as expected.
def EvNZ(YKHO, H5ew, BWXx): yield YKHO.conn.set(H5ew, BWXx) Qj8D = (yield YKHO.conn.get(H5ew)) YKHO.assertEqual(Qj8D, BWXx) YKHO.assert_((yield YKHO.conn.delete(H5ew))) Qj8D = (yield YKHO.conn.get(H5ew)) YKHO.assertEqual(Qj8D, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ykgQ(YKHO):\n ei4T = YKHO.populate()\n for YEnM in ei4T:\n EmMj = FYrf.storage.get(type(YEnM), YEnM.id)\n YKHO.assertIs(EmMj, YEnM)\n for YEnM in ei4T:\n YEnM.delete()\n EmMj = FYrf.storage.get(type(YEnM), YEnM.id)\n YKHO.assertIsNone(EmMj)", "def Cy0b(YKHO):\n ...
[ "0.687135", "0.6869194", "0.6750511", "0.6626253", "0.65565836", "0.65089536", "0.64209646", "0.6346014", "0.63143724", "0.6287739", "0.6254716", "0.6201643", "0.61983925", "0.6194034", "0.6165206", "0.61537707", "0.61463225", "0.6140138", "0.61308867", "0.6113164", "0.607181...
0.58403534
43
determines this (self's) thread id
def SO8K(YKHO): if not YKHO.isAlive(): raise T6FA.ThreadError('the thread is not active') if hasattr(YKHO, '_thread_id'): return YKHO._thread_id for Huo2, U0ST in T6FA._active.items(): if U0ST is YKHO: YKHO._thread_id = Huo2 return Huo2 raise AssertionErro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tl1c(YKHO):\n return YKHO._thread_id", "def unpH(YKHO):\n if hasattr(YKHO, '_thread_id'):\n return YKHO._thread_id\n for id, MgeT in T6FA._active.items():\n if MgeT is YKHO:\n return id", "def unpH(YKHO):\n if hasattr(YKHO, '_thread_id'):\n return YKHO._thread_id...
[ "0.87604755", "0.855684", "0.855684", "0.84960526", "0.8430593", "0.79912037", "0.7944841", "0.76469076", "0.7611317", "0.7069843", "0.70444417", "0.6986155", "0.6953767", "0.68797904", "0.68797904", "0.68797904", "0.68797904", "0.6876224", "0.6822325", "0.6800639", "0.678210...
0.806207
5
This function will search the booking of specific user id and car id then tell whether it exists or not
def LmLQ(YKHO, uJjO, CrDK): nPrm = NCls.session.query(xVxx).filter_by(user_id=uJjO, car_id=CrDK).first() if nPrm is None: return False else: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UOxj(UDWU, NtEF, CrDK):\n o6yu = xVxx.query.get(UDWU)\n print('Booking:::')\n print(o6yu)\n CBIr = o6yu.customer\n print('User:::')\n print(CBIr)\n print('Params:::' + UDWU + '--' + NtEF + ' --' + CrDK + '--=>' + str(o6yu.carid == CrDK))\n ZD7i = False\n if o6yu and CBIr.email == NtE...
[ "0.6837736", "0.6354792", "0.61274904", "0.6110173", "0.58761245", "0.58010334", "0.5644561", "0.5604423", "0.5591727", "0.5572659", "0.5558989", "0.5531499", "0.54869264", "0.5457973", "0.53667784", "0.5342457", "0.53367656", "0.5316068", "0.52929175", "0.5258301", "0.519973...
0.79800326
0
Return last computed learning rate by current scheduler.
def KUOU(YKHO): if not hasattr(YKHO, '_last_lr'): raise RuntimeError('Run scheduler.step() first!') return YKHO._last_lr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KUOU(YKHO) -> llWB:\n return YKHO.lr_scheduler.get_last_lr()", "def NkTt(YKHO):\n GPtr = YKHO.config\n JQpF = LXsA.adjust_learning_rate(YKHO.optimizer, YKHO.epoch, GPtr['training']['learning_rate'], decay=GPtr['training']['lr_decay_rate'], step=GPtr['training']['lr_decay_step'])\n YKHO.cur_lr = J...
[ "0.7769273", "0.76568526", "0.7607422", "0.7512783", "0.7506537", "0.7461149", "0.7436141", "0.7349785", "0.72943014", "0.72450364", "0.7220264", "0.7183671", "0.71548855", "0.7150979", "0.70551515", "0.7010108", "0.69940394", "0.69894886", "0.6972164", "0.6972164", "0.696085...
0.7179609
12
Find the smallest and largest values in planes perpendicular to dir
def WoC9(KCHu, ZQGm=0, dir=2, kLLj=0, all=False, PJWX=0): _oWe = w3uc(KCHu) XP5J = _oWe[0] CAzz = [] h7Gv = [] Txjd = [] for XP5J in _oWe: if all: x6aZ = XP5J.xyz[dir] else: x6aZ = XP5J.xyzi[dir] if ZQGm in XP5J.all_keys: nPrm = XP5J.va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ATE(exwG: np.ndarray) -> oyIN.ndarray:\n YRbF = oyIN.argmin(exwG)\n jzdc = (YRbF + 1) % 3\n Fg_i = (YRbF + 2) % 3\n Aofo = oyIN.zeros(3)\n Aofo[YRbF] = 0.0\n Aofo[jzdc] = exwG[Fg_i]\n Aofo[Fg_i] = -exwG[jzdc]\n return Aofo", "def cxQz(XP5J, Mkmy):\n return oyIN.abs(XP5J[2] - Mkmy[...
[ "0.633757", "0.6325897", "0.5999939", "0.58215743", "0.57994306", "0.5789848", "0.5757493", "0.57447475", "0.57252127", "0.57239264", "0.5712923", "0.56859016", "0.56755674", "0.5621076", "0.5601583", "0.55960625", "0.559558", "0.559558", "0.5585564", "0.55588734", "0.5537385...
0.5150106
91
Private method that returns a xapian.Database for use.
def t8hf(xtX7, G7N5=False): if G7N5: if dsE5: p9bx = io42.WritableDatabase(xtX7, io42.DB_CREATE_OR_OVERWRITE) else: p9bx = io42.WritableDatabase(xtX7, io42.DB_CREATE_OR_OPEN) else: try: p9bx = io42.Database(xtX7) except io42.DatabaseOpeningErro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGod():\n NCls = getattr(Oa1e, '_database', None)\n if NCls is None:\n NCls = Oa1e._database = iHv3.connect(aL7g)\n NCls.row_factory = iHv3.Row\n return NCls", "def GGod():\n\n def ij1k(N1p7, rdlD):\n \"\"\"\n Creates dict from row.\n\n Args:\n cursor...
[ "0.7158793", "0.71182173", "0.7106204", "0.7060895", "0.7055445", "0.70455647", "0.69805187", "0.6973953", "0.6967501", "0.6942097", "0.6927526", "0.6875223", "0.6837122", "0.67774034", "0.6758049", "0.6755272", "0.6755272", "0.67471236", "0.6720506", "0.6716896", "0.67080945...
0.7108539
2
Returns True if user_obj has any permissions in the given app_label.
def spO2(YKHO, XnWo, tKz9): for IuXB in YKHO.get_all_permissions(XnWo): if IuXB[:IuXB.index('.')] == tKz9: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def spO2(YKHO, XnWo, tKz9):\n if not XnWo.is_active:\n return False\n for IuXB in YKHO.get_all_permissions(XnWo):\n if IuXB.partition(':')[0] == tKz9:\n return True\n return False", "def spO2(YKHO, XnWo, tKz9):\n if not XnWo.is_active:\n return False\n for IuXB in Y...
[ "0.8357425", "0.83342564", "0.8126118", "0.76733184", "0.76733184", "0.76733184", "0.72403187", "0.72403187", "0.72199196", "0.72199196", "0.72199196", "0.71857953", "0.71857953", "0.7147616", "0.71443725", "0.7129924", "0.71252114", "0.69549006", "0.6774404", "0.6771552", "0...
0.83037674
2
Sample based on `mu` and `log_var`
def gR1k(YKHO, XP5J): yGTL, IR53 = XP5J return yGTL + nMvt.random_normal(nMvt.shape(yGTL)) * nMvt.exp(IR53 / 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aU90(YKHO, yGTL, XO02):\n M1Jx = XO02.mul(0.5).exp_()\n SGf8 = ht2j.empty_like(M1Jx).normal_()\n return SGf8.mul(M1Jx).add_(yGTL)", "def RFg8(YKHO, JBMS, IR53):\n SGf8 = ht2j.randn_like(JBMS).to(YKHO.device)\n epBp = ht2j.exp(0.5 * IR53) * SGf8 + JBMS\n return epBp", "def nc9g(YKHO, yGTL,...
[ "0.7935419", "0.7432471", "0.73386836", "0.73230505", "0.7202619", "0.71607625", "0.71607625", "0.71123385", "0.7073304", "0.7045168", "0.7020554", "0.7008292", "0.7008292", "0.7008292", "0.7008292", "0.69778776", "0.6942059", "0.692614", "0.692614", "0.6885979", "0.68749344"...
0.5974755
76
Gets a color for a node from the color map
def PICn(Q6kx, YDzg): if Q6kx in YDzg: return YDzg[Q6kx] return 'black'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PICn(YKHO, Q6kx: Node) -> str:\n or8S = hash(Q6kx.get_kind_name()) % len(YKHO.colors_)\n return YKHO.colors_[or8S]", "def PICn(H5ew):\n if YIBL:\n return cuKy.get(H5ew, None)\n return None", "def JBpz(Q6kx):\n for YRbF, zJeG in enumerate(_49d):\n if Q6kx in zJeG:\n r...
[ "0.78032285", "0.73727363", "0.73418564", "0.69549704", "0.68655634", "0.68655634", "0.68655634", "0.68655634", "0.6771988", "0.676185", "0.6759449", "0.6740052", "0.66710526", "0.6658527", "0.6653712", "0.66476274", "0.6644814", "0.66379815", "0.6580679", "0.6572436", "0.655...
0.87923455
0
Initialisation of weightedData Object.
def FIMM(YKHO, Rhv4): YKHO.data_set = Rhv4 YKHO.sum1 = 0 for yAmx in YKHO.data_set: yAmx.weight = 1 / len(YKHO.data_set) YKHO.sum1 += yAmx.weight YKHO.sum2 = 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nPrm):\n assert len(nPrm) == 6\n for YRbF in range(5):\n assert nPrm[YRbF].keys() == nPrm[5].keys()\n if isinstance(nPrm, tuple):\n YKHO.weights = nPrm\n else:\n YKHO.weights = tuple(nPrm)", "def FIMM(YKHO, _mSQ):\n YKHO._weights = _mSQ", "def vJuA(YKHO):\n ...
[ "0.7701631", "0.7212534", "0.71965295", "0.7181386", "0.70081145", "0.6957095", "0.691188", "0.6801828", "0.6749866", "0.67144823", "0.6690283", "0.6690283", "0.6638673", "0.6596818", "0.6584895", "0.65725946", "0.6562942", "0.6554225", "0.65446484", "0.64966923", "0.6489691"...
0.0
-1
Compute an upper bound on monthlength. Even if we haven't identified all the fields needed for checking leapyears yet, we can still prune if value.d is bigger than the month can ever possibly be.
def z27o(BWXx): if BWXx.m == 2: ec9K = 29 if BWXx.y is not None: if BWXx.y % 4 != 0: ec9K = 28 elif BWXx.y == 0 and BWXx.C is not None and (BWXx.C % 4 != 0): ec9K = 28 else: ec9K = 30 + (BWXx.m % 2 == (BWXx.m < 8)) return BWXx.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def soYV(YKHO):\n XBWI = [31, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 29]\n qHe7 = 365.24 * (YKHO.number // 12)\n Rf8E = oyIN.sum(XBWI[:YKHO.number % 12])\n zzQC = qHe7 + Rf8E + YKHO.days\n return int(oyIN.ceil(zzQC))", "def FOK2(lO87, x0eS):\n lO87 = int(lO87)\n x0eS = int(x0eS)\n hEAY =...
[ "0.5886275", "0.5427668", "0.5374245", "0.5331599", "0.53222615", "0.53004485", "0.52571625", "0.5251135", "0.5178014", "0.51442075", "0.5120376", "0.51074386", "0.51074386", "0.5104363", "0.5086965", "0.5083028", "0.5073267", "0.50732094", "0.50614166", "0.5055513", "0.50528...
0.6487694
0
Upon enter, return the context manager object for future updates.
def DMw_(YKHO): return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DMw_(YKHO):\n YKHO.__within_context = True\n if not YKHO.__initialized:\n YKHO.__initialization__()\n return YKHO", "def DMw_(YKHO):\n YKHO.manual_enter()\n return YKHO", "def DMw_(YKHO):\n YKHO._in_context_block = True\n return YKHO", "def DMw_(YKHO):\n return YKHO", "de...
[ "0.7337823", "0.7026329", "0.67525506", "0.6666832", "0.6612766", "0.6591439", "0.65740186", "0.6571943", "0.65712506", "0.65712506", "0.6558865", "0.6538163", "0.6537708", "0.6537708", "0.6537708", "0.6537708", "0.6537708", "0.6537708", "0.6537708", "0.6537708", "0.6537708",...
0.64300215
66
Sets the end_date of this MdHistoryRequestCO.
def KhBf(YKHO, KhBf): YKHO._end_date = KhBf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def KhBf(YKHO, KhBf):\n if KhBf is None:\n raise ValueError('Invalid value for `end_date`, must not be `None`')\n YKHO._end_date = KhBf", "def EmhK(YKHO, _c1T):\n pass", "def KhBf(YKHO, KhBf: str):\n if KhBf is None:\n raise ValueE...
[ "0.83238953", "0.8126522", "0.8002559", "0.7889392", "0.78851426", "0.7573475", "0.75492877", "0.7515379", "0.7478635", "0.7474362", "0.7399435", "0.7218076", "0.7218076", "0.7070495", "0.6962145", "0.68157727", "0.6796637", "0.6745392", "0.6677834", "0.661335", "0.66080457",...
0.8393393
6
Sets the nucleus_security_id of this MdHistoryRequestCO.
def DeyM(YKHO, DeyM): YKHO._nucleus_security_id = DeyM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cm0c(YKHO, cm0c):\n YKHO._security_user_id = cm0c", "def cm0c(YKHO, cm0c):\n YKHO._security_user_id = cm0c", "def N469(YKHO, N469):\n YKHO._security_identities = N469", "def V_9M(YKHO, TbZN):\n YKHO.ssc_id = TbZN", "def PCoh(YKHO, PCoh):\n YKHO.logger.debug(\"In 'srs_id' setter.\")\n ...
[ "0.6567464", "0.6567464", "0.52219766", "0.51711905", "0.5101832", "0.5018672", "0.5015538", "0.4997469", "0.49538937", "0.49538937", "0.4811074", "0.4785215", "0.4778403", "0.4775735", "0.47065136", "0.47065136", "0.46921664", "0.46891037", "0.46483314", "0.45931828", "0.458...
0.7827064
0
Sets the product of this MdHistoryRequestCO.
def Lx3t(YKHO, Lx3t): YKHO._product = Lx3t
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lx3t(YKHO, Lx3t):\n YKHO._product = Lx3t", "def Lx3t(YKHO, Lx3t):\n if Lx3t is None:\n raise ValueError('Invalid value for `product`, must not be `None`')\n YKHO._product = Lx3t", "def jVbZ(YKHO, jVbZ):\n YKHO._target_product = jVbZ", "def Mc9N(YKHO, Mc9N):\n YKHO._product_id = Mc9N...
[ "0.77516913", "0.67729884", "0.66385", "0.6534956", "0.6446105", "0.6446105", "0.6381497", "0.62452966", "0.61594176", "0.61521363", "0.6055195", "0.6055195", "0.60030913", "0.5981995", "0.59426045", "0.58830494", "0.5794708", "0.5767965", "0.57638776", "0.57638776", "0.57638...
0.770328
2
Sets the start_date of this MdHistoryRequestCO.
def kepv(YKHO, kepv): YKHO._start_date = kepv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n if kepv is None:\n raise ValueError('Invalid value for `start_date`, must not be `None`')\n YKHO._start_date = kepv", "def YFxH(YKHO, _c1T):\n pass", "def kepv...
[ "0.8342914", "0.8177962", "0.8133697", "0.80655676", "0.79983824", "0.796645", "0.74692875", "0.7460006", "0.7337247", "0.70807976", "0.6902143", "0.67647326", "0.67647326", "0.66732126", "0.6660251", "0.660973", "0.660973", "0.65859705", "0.6535868", "0.64128643", "0.6406774...
0.82583505
8
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, YBB9): return False return YKHO.to_dict() == Elif.to_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.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, YBB9): return True return YKHO.to_dict() != Elif.to_dict()
{ "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.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Initialize name and type.
def FIMM(YKHO, zqv0, N4Ku): YKHO.name = zqv0 YKHO.type = N4Ku
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, mWFP: str, qhcZ: type):\n YKHO.name = mWFP\n YKHO.python_type = qhcZ", "def FIMM(YKHO, mWFP):\n YKHO.type_cls = None\n YKHO.name = mWFP\n YKHO.description = None\n YKHO.updated = None\n YKHO.notes = None\n YKHO.properties = {}", "def FIMM(YKHO, mWFP, SnBA, V8ye, lO87):\n ...
[ "0.74871093", "0.7481559", "0.72628826", "0.7130087", "0.7100174", "0.70130837", "0.69421357", "0.69421357", "0.69414806", "0.6937453", "0.6937453", "0.6899564", "0.6891967", "0.6891897", "0.6887291", "0.68361604", "0.68099797", "0.68018526", "0.68018526", "0.6785917", "0.678...
0.0
-1
Returns the index of the bin that feature belongs in. bin_bounds contains the upper bound on each bin's value, sorted.
def I1XJ(Gaon, Pyrc): d6pt = 0 for Ty9i in ZV13: if Gaon > Ty9i: return d6pt d6pt += 1 return d6pt - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aMgg(YKHO, ltnu):\n return epL4(ltnu, YKHO.nbins, YKHO.padding)", "def xe8B(YKHO, WKvO):\n Fg_i = -1\n if WKvO == YKHO._max_val:\n Fg_i = len(YKHO._bins) - 1\n else:\n Fg_i = epAf.floor((WKvO - YKHO._min_val) / YKHO._bin_width)\n return int(Fg_i)", "def S9XX(UY63, EopV=None, KQ...
[ "0.70552397", "0.70514095", "0.700788", "0.6601049", "0.6601049", "0.658574", "0.64486784", "0.6374188", "0.6364163", "0.63276494", "0.61857146", "0.6172362", "0.615024", "0.6147497", "0.61349773", "0.60643", "0.5958335", "0.5958335", "0.5933699", "0.59336483", "0.5922114", ...
0.7421128
0
Calculate the log of the sum of exponentials of the vector elements. Use the shifting trick to minimize numerical precision errors. Argument is a listlike thing similar to np.logaddexp(x1, x2) but takes a 1d list. >>> log_sum_exp([log(0.5), log(0.5)]) 0.0 >>> approx(exp(log_sum_exp([log(0.001), log(0.009), log(0.3)])),...
def X0th(Ty9i): r8hN = max(Ty9i) WKvO = r8hN * oyIN.ones(oyIN.size(Ty9i)) return r8hN + oyIN.log(sum(oyIN.exp(Ty9i - WKvO)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X0th(WKvO, jDK_=None):\n bYzl = WKvO.max(axis=jDK_, keepdims=True)\n lvgK = WKvO.max(axis=jDK_)\n return lvgK + Kt_s.log(Kt_s.exp(WKvO - bYzl).sum(axis=jDK_))", "def X0th(WKvO):\n jDK_ = len(WKvO.shape) - 1\n r8hN = CbyH.max(WKvO, axis=jDK_)\n E43s = CbyH.max(WKvO, axis=jDK_, keepdim=True)\...
[ "0.7660464", "0.7532827", "0.7499924", "0.7420318", "0.7420318", "0.74202895", "0.7321609", "0.7310051", "0.72782695", "0.718757", "0.7187217", "0.7149047", "0.71360093", "0.7101125", "0.6841345", "0.68399256", "0.6781454", "0.6760717", "0.6751314", "0.67455536", "0.67455536"...
0.737557
6
Return the index of the largest value, randomly breaking ties. >>> argmax([0, 1]) 1 >>> argmax([1, 0]) 0 >>> a = argmax([0, 1, 1]) >>> a in (1, 2) True
def q1NN(hkxX): hkxX = oyIN.array(hkxX) RsfQ = oyIN.max(hkxX) wEf2 = oyIN.where(hkxX == RsfQ)[0] return oyIN.random.choice(wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XDwe(WKvO: np.ndarray) -> int:\n _0VL = r9of(WKvO)\n return oyIN.random.choice(_0VL)", "def CIVg(vC9B: list, H5ew):\n max = float('-inf')\n vi7w = -1\n for YRbF in range(len(vC9B)):\n if H5ew(vC9B[YRbF]) > max:\n max = H5ew(vC9B[YRbF])\n vi7w = YRbF\n return vi7...
[ "0.7526515", "0.7374521", "0.73375267", "0.7292933", "0.7292933", "0.7292933", "0.7266164", "0.7108389", "0.7082183", "0.69236606", "0.6903086", "0.67438745", "0.66566026", "0.6644861", "0.66012126", "0.65932435", "0.64963543", "0.64745444", "0.6468216", "0.6466282", "0.64662...
0.77623355
0
Calculate the numerator such that at t=0, a/(decay+t)=alpha
def vgb9(Cwt5, WMj5): if not WMj5 or WMj5 <= 0: return Cwt5 else: return float(Cwt5 * WMj5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eszp(nJ9F, Cwt5, Kt_s, a1PO):\n if a1PO <= Kt_s:\n return nJ9F - (1 - Cwt5) * nJ9F * a1PO / Kt_s\n else:\n return Cwt5 * nJ9F", "def WAr3(YKHO, a1PO):\n return YKHO.alpha_0 * pow(YKHO.Light(a1PO) / YKHO.I0, YKHO.p)", "def fr6B(YKHO, a1PO):\n return YKHO.l_0 + YKHO.alpha * sum(oyIN...
[ "0.69432795", "0.6660636", "0.6574897", "0.63983226", "0.6329011", "0.62791234", "0.6273906", "0.6231108", "0.6197118", "0.61908907", "0.6139079", "0.6103482", "0.60895485", "0.6089476", "0.6075572", "0.6073953", "0.6066894", "0.6041462", "0.6040465", "0.6033664", "0.59855026...
0.6787552
1
Join a number to the end of a string in the standard way If width is provided will backfill >>> join_number('fred', 10) 'fred10' >>> join_number('fred', 10, 3) 'fred010'
def urqo(vIwR, mLGw, TVTK=None): mLGw = str(mLGw) if TVTK: mLGw = mLGw.rjust(TVTK, '0') return vIwR + '-' + str(mLGw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(FGW3, TVTK=0):\n return str(FGW3).zfill(TVTK)", "def YOYe(FGW3, u54L):\n O6HU = str(FGW3)\n Z8K9 = u54L - len(O6HU)\n if Z8K9 >= 0:\n return '0' * Z8K9 + O6HU\n else:\n return O6HU", "def format(FGW3):\n FGW3 = Xbam(FGW3)\n return ' '.join((FGW3[:2], FGW3[2:5], FGW3[...
[ "0.7575873", "0.6719598", "0.6585075", "0.6569616", "0.6502219", "0.6435242", "0.6325695", "0.63152623", "0.63049746", "0.6270025", "0.6255137", "0.62551343", "0.6232007", "0.6167308", "0.61607224", "0.61002517", "0.60625637", "0.59663886", "0.5961309", "0.59325504", "0.59198...
0.8679115
0
Return true if filepath ends in 'gz' extension
def AXvs(VqRE): return Hy7s.path.splitext(VqRE)[1] == '.gz'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pPJQ(VqRE):\n ztnR = Hy7s.path.splitext(VqRE)[1].lower()\n if ztnR in pEBl():\n return True\n else:\n return False", "def xQHn(UMZT):\n import os\n from os.path import expanduser\n UMZT = expanduser(UMZT)\n if os.path.lexists(UMZT):\n uAHD = True\n return (UMZ...
[ "0.73746085", "0.73102397", "0.728944", "0.7181048", "0.69474477", "0.67704386", "0.6675972", "0.6661081", "0.6557845", "0.6541729", "0.6535836", "0.6522381", "0.64815605", "0.646029", "0.6333025", "0.6316177", "0.62578523", "0.6246907", "0.6244113", "0.6234546", "0.6212786",...
0.80162406
0
Get the next noncommented line of strings from a file, separated by whitespace >>> f = open('results/testing/pos/Large/rawdata.txt', 'r') >>> read_strings(f) ['a', 'b', 'c', 'd', 'e', 'f', 'step']
def gPLB(mSpG): zFiD = '#' try: while zFiD and zFiD[0] == '#': zFiD = mSpG.readline() except (IOError, ValueError): return None if zFiD: return zFiD.split() else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L02H(Id76):\n Ylbp = []\n try:\n Ylbp = open(Id76, 'r').readlines()\n Ylbp = [WKvO.strip() for WKvO in Ylbp]\n except:\n Ylbp = []\n return Ylbp", "def BMej(nUeQ):\n UHFx = 0\n Aofo = []\n while UHFx < 100:\n UHFx += 1\n JXAE = nUeQ.readline()\n ...
[ "0.6840863", "0.6173089", "0.612168", "0.6075292", "0.6003574", "0.59796333", "0.59180355", "0.5904176", "0.5896242", "0.5887557", "0.5884237", "0.5814879", "0.5809892", "0.5803777", "0.57963556", "0.57625866", "0.5758329", "0.5758329", "0.57532275", "0.57433313", "0.57394236...
0.74165165
0
Return the number of nonstring lines in the file >>> num_data_lines('results/testing/pos/Large/rawdata.txt') 16 >>> num_data_lines('asdfasdfasdf') 1
def qhUU(VqRE): if not poxP(VqRE): return -1 UHFx = 0 with open(VqRE, 'r') as eHNT: while aXNL(eHNT): UHFx += 1 eHNT.close() return UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gPFQ():\n UufE = len(open(bkJI).readlines())\n return UufE", "def UufE(Ux0P=''):\n _5qk = 0\n with open(Ux0P, encoding='utf-8') as Czgb:\n return Czgb.read().count('\\n')", "def UufE(Ux0P=''):\n with open(Ux0P, encoding='utf-8') as nUeQ:\n l5Ny = nUeQ.readlines()\n return le...
[ "0.7510078", "0.73360777", "0.72530895", "0.7075935", "0.69970053", "0.69092995", "0.6866046", "0.6847447", "0.6827048", "0.68235576", "0.6811298", "0.68074536", "0.6784149", "0.6774877", "0.6768876", "0.6754857", "0.67495346", "0.67374307", "0.6730054", "0.67297864", "0.6678...
0.71209097
3
Take a numpy array and return a smaller one with the data binned
def MP0s(nPrm, rebk): SuPp = oyIN.linspace(0, 100, rebk + 1, True).astype(oyIN.int) BWz1 = oyIN.diff(SuPp) JBMS = oyIN.add.reduceat(nPrm, SuPp[:-1]) / BWz1 return JBMS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ffz0(EcVT, *, gwAu=..., jth9=...):\n ...", "def A7Sc(ezWE):\n Aofo = oyIN.zeros(len(ezWE) + 1)\n Aofo[1:-1] = 0.5 * (ezWE[1:] + ezWE[:-1])\n Aofo[0] = ezWE[0] - 0.5 * (ezWE[1] - ezWE[0])\n Aofo[-1] = ezWE[-1] + 0.5 * (ezWE[-1] - ezWE[-2])\n return Aofo", "def _zYY(qw7D, DbyF=None, NXpY=No...
[ "0.7234878", "0.7003438", "0.67663366", "0.6766225", "0.6748709", "0.6748709", "0.674814", "0.67069626", "0.667625", "0.65963215", "0.6585553", "0.65487653", "0.65111923", "0.64794827", "0.64375645", "0.64106", "0.64076483", "0.6361542", "0.6330075", "0.6326089", "0.6321682",...
0.6088632
29
Indices, if provided, gives the column indices for the desired data. If not provided, will return all the data.
def Zyx0(zFiD, _0VL=None): hObn = str.strip(zFiD).split(' ') if _0VL is None: nPrm = list(range(len(hObn))) else: nPrm = list(_0VL) for YRbF, fkYK in enumerate(nPrm): if fkYK is not None: V52X = hObn[fkYK] else: V52X = ' ' if '.' in V52X: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tzve(_0VL, g4y1, ounV):\n if ounV:\n Ylbp = U8Lr()\n for XP5J in _0VL:\n J9et, NsQM = bAvW(XP5J, g4y1)\n if J9et not in Ylbp:\n Ylbp[J9et] = []\n Ylbp[J9et].append(NsQM)\n return Ylbp\n kQC6 = None\n X6Ln = []\n for XP5J in _0VL:\...
[ "0.6887428", "0.642437", "0.6343533", "0.63019794", "0.62214637", "0.6197078", "0.61851895", "0.61848205", "0.6175898", "0.6137029", "0.6089346", "0.6044207", "0.6037134", "0.60361594", "0.6008707", "0.5967875", "0.5950757", "0.59473854", "0.5901781", "0.58976066", "0.5879143...
0.0
-1
For a dictionary of potential parameter values, return an iterator of dictionaries of all possible combinations
def TzR8(lMcH): if not lMcH: return {} return (dict(zip(lMcH.keys(), WKvO)) for WKvO in Hs6x.product(*lMcH.values()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f6xC(NArs: Dict[str, List[Any]]) -> cuzp[str, ImMB]:\n for set in Lx3t(*NArs.values()):\n yield rXYu(zip(NArs.keys(), set))", "def eMEC(aPKO):\n Csk6 = aPKO\n return [dict(zip(Csk6, Ty9i)) for Ty9i in Hs6x.product(*Csk6.values())]", "def Y9W3(fyex):\n GqaV = list(Hs6x.product(*fyex.value...
[ "0.81666803", "0.7774893", "0.77061653", "0.6907007", "0.68637216", "0.6832588", "0.6737774", "0.6448503", "0.6446987", "0.6430941", "0.63854337", "0.6368257", "0.63657707", "0.6308112", "0.6308112", "0.62593734", "0.6208581", "0.61728126", "0.6133052", "0.61206704", "0.60831...
0.71145046
3
For the given iterable of parameter dictionaries, return a list of the keys that do not appear in every parameter dictionary
def P9jk(WdDP): if not WdDP: return BWz1 = {} n6mp = len(WdDP) for XP5J in WdDP: for G1Hx in XP5J: BWz1[G1Hx] = 1 + BWz1.get(G1Hx, 0) kcwm = [] for G1Hx in BWz1: if BWz1[G1Hx] < n6mp: kcwm.append(G1Hx) kcwm.sort() return kcwm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T_Tn(fgcx):\n for Csk6 in fgcx:\n for G1Hx, Ty9i in Csk6.items():\n Csk6[G1Hx] = set([1, 2, 3, 4, 5, 6, 7, 8, 9]) - set(Ty9i)\n return fgcx", "def xzdj(sjXb):\n sjXb = frozenset(sjXb)\n return fDnw(GavU(YLnl(seET.contains, sjXb)))", "def aGHQ(gEmA):\n HhGF = UNGO(gEmA)\n ...
[ "0.6812278", "0.6671408", "0.62812865", "0.6256023", "0.6247341", "0.6235568", "0.62332124", "0.62277204", "0.62120247", "0.6208719", "0.6184913", "0.6177239", "0.60850805", "0.6084818", "0.6073516", "0.6034428", "0.5967064", "0.59618556", "0.59462625", "0.59185004", "0.58891...
0.5885593
22
For the given list of parameter dictionaries, make a dictionary of the keys and values that are the same for every set in the list
def TR8b(WdDP): if not WdDP: return sjXb = [XP5J.keys() for XP5J in WdDP] WeSt = set(sjXb[0]).intersection(*sjXb) rKLW = {G1Hx: WdDP[0][G1Hx] for G1Hx in WeSt} for XP5J in WdDP: for G1Hx in XP5J: if G1Hx in rKLW and rKLW[G1Hx] != XP5J[G1Hx]: rKLW.pop(G1Hx)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mpqp(NArs):\n eXkc = {H5ew: BWXx for H5ew, BWXx in NArs.items() if isinstance(BWXx, list)}\n kEbR = {H5ew: BWXx for H5ew, BWXx in NArs.items() if not isinstance(BWXx, list)}\n sjXb, hkxX = zip(*eXkc.items())\n p2Oz = [dict(zip(sjXb, Ty9i), **kEbR) for Ty9i in Hs6x.product(*hkxX)]\n return p2Oz",...
[ "0.653074", "0.6364621", "0.6317289", "0.6270832", "0.6233593", "0.6211111", "0.6143972", "0.6098328", "0.60746235", "0.6021277", "0.5985847", "0.594793", "0.5914551", "0.59002", "0.5881145", "0.5872788", "0.5848662", "0.58468455", "0.58299387", "0.5814954", "0.5791685", "0...
0.6330616
2
Opens a new database connection if there is none yet for the current application context.
def GGod(): if not hasattr(Oa1e, 'sqlite_db'): Oa1e.sqlite_db = _uJw() return Oa1e.sqlite_db
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db", "def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)", "def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)", "def W...
[ "0.7737639", "0.7582971", "0.73180443", "0.71693045", "0.70220166", "0.6966687", "0.6954785", "0.69486743", "0.6897534", "0.6842663", "0.68292314", "0.68191963", "0.680592", "0.67950195", "0.67697805", "0.6762173", "0.6751266", "0.6746273", "0.67316663", "0.670031", "0.668866...
0.640242
83
Validates aliasing works properly when the query contains both tags_key and tags_value.
def Khr_() -> None: Mol0 = MO8Z({'aggregations': [], 'groupby': [], 'selected_columns': ['tags_value'], 'conditions': [['tags_key', 'IN', ['t1', 't2']]]}) Pe9W = ZZhr(Mol0).get_sql() U_Fi = LtEF.get_table_writer().get_schema().get_table_name() assert Pe9W == f"SELECT (tupleElement((arrayJoin(arrayMap((x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZioQ(H5ew: str, BWXx: str) -> cuzp[str, ImMB]:\n xDcj = {'tags': {'$elemMatch': {'key': H5ew, '$or': [{'vStr': BWXx}, {'vInt64': BWXx}, {'vBool': BWXx}, {'vFloat64': BWXx}, {'vBinary': BWXx}]}}}\n return xDcj", "def xkma(YKHO):\n TyVW = ['valid_tag']\n o2VW = {'filter': {'bad_tag': 'value'}}\n ...
[ "0.57817465", "0.570398", "0.5615116", "0.5476921", "0.5441292", "0.5437843", "0.54195595", "0.5388927", "0.53832835", "0.53694046", "0.5329078", "0.5325659", "0.5304145", "0.52602834", "0.52379453", "0.516322", "0.5129891", "0.50972956", "0.5071068", "0.50556076", "0.5045664...
0.6864035
0
Get the list of projects associated with this Community.
def PKRp(YKHO, *OPAs): from wkcdd.models.helpers import get_project_list return get_project_list([YKHO.id], *OPAs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def llaM(YKHO):\n UxQk = []\n NArs = {'fields': oPx1.FIELDS}\n llaM = YKHO._request('get', 'projects', params=NArs)\n for bNKA in llaM:\n UxQk.append(oPx1(bNKA))\n return UxQk", "def Pnw4(YKHO):\n return YKHO.__projects", "def Pnw4(YKHO):\n Piln = OO3v.api.portal.get_tool('portal_ca...
[ "0.7999997", "0.79260135", "0.7863379", "0.7858218", "0.7848352", "0.78283966", "0.7756608", "0.77432966", "0.7719255", "0.7712745", "0.76892686", "0.7660413", "0.75886464", "0.75678885", "0.74619716", "0.74375945", "0.73235", "0.72587824", "0.7201207", "0.7165235", "0.715986...
0.7126879
21
test if square inherits from Rectangle class
def TO8a(YKHO): YKHO.assertTrue(issubclass(type(YKHO.S0), x7Ls) and type(YKHO.S0) != x7Ls)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sg7L(YKHO):\n _UKz.reset_objects()\n YKHO.assertEqual(issubclass(_UKz, x7Ls), True)", "def PFh0(YKHO):\n YKHO.assertTrue(issubclass(x7Ls, i_Aq))", "def vPgB(YKHO):\n _UKz.reset_objects()\n YKHO.assertEqual(issubclass(_UKz, i_Aq), True)", "def I7xG(YKHO):\n YKHO.assertTrue(issubclass(x7L...
[ "0.8706331", "0.84380364", "0.7575495", "0.7318062", "0.72508115", "0.6906887", "0.68277794", "0.6354814", "0.63431084", "0.6296655", "0.62895024", "0.6266489", "0.6262198", "0.6252961", "0.61256933", "0.60000396", "0.59920377", "0.5984847", "0.59632903", "0.5960873", "0.5954...
0.8131839
2
Read dict into a DataFrame.
def _5Vq(YKHO, A3TQ=None): if type(A3TQ) is not dict: raise ValueError("The 'osw_dict' arg is invalid!") f4IJ = rLdf.DataFrame.from_dict(A3TQ, orient='columns') return f4IJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1P1(nPrm):\n return rLdf.DataFrame.from_dict(nPrm)", "def AXtL(YuiX):\n jQ3Z = rLdf.DataFrame.from_dict(YuiX, orient='index')\n return jQ3Z", "def v8Pp(YKHO, dict):\n return rLdf.concat(dict.values(), axis=1)", "def Ez9c(dict, WfCS):\n T6S7 = []\n for G1Hx, Ty9i in dict.items():\n ...
[ "0.76458347", "0.7417406", "0.73200023", "0.72285205", "0.70975417", "0.70477533", "0.70334816", "0.6873192", "0.67515254", "0.66828954", "0.6593455", "0.65235204", "0.6477196", "0.6186388", "0.6157289", "0.6113992", "0.6113477", "0.606115", "0.60471964", "0.6042822", "0.6014...
0.6676459
10
Read dict into a DataFrame.
def lQn5(YKHO, nPrm): return lLY1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1P1(nPrm):\n return rLdf.DataFrame.from_dict(nPrm)", "def AXtL(YuiX):\n jQ3Z = rLdf.DataFrame.from_dict(YuiX, orient='index')\n return jQ3Z", "def v8Pp(YKHO, dict):\n return rLdf.concat(dict.values(), axis=1)", "def Ez9c(dict, WfCS):\n T6S7 = []\n for G1Hx, Ty9i in dict.items():\n ...
[ "0.7647582", "0.74180055", "0.7322513", "0.72297966", "0.70972997", "0.704857", "0.70342886", "0.6873646", "0.67528", "0.6684072", "0.66767454", "0.65949196", "0.65236676", "0.6476429", "0.6186509", "0.6155475", "0.6115515", "0.6114628", "0.60612005", "0.604798", "0.6041273",...
0.0
-1
Copies the image in the correct folder according to the label
def iZ8K(pmON, QKhI): M9Eu = Hy7s.open(pmON, Hy7s.O_RDONLY) hqda = int(Hy7s.read(M9Eu, 4)) if hqda == 1: UXqs = 'anger' elif hqda == 2: UXqs = 'neutral' elif hqda == 3: UXqs = 'disgust' elif hqda == 4: UXqs = 'fear' elif hqda == 5: UXqs = 'happy' e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X29M(COc9, PCxt, UXqs='breed', VXjJ='img_name'):\n xmIO = set(PCxt[UXqs])\n for VXjJ, UXqs in zip(PCxt[VXjJ], PCxt[UXqs]):\n for xtX7 in xmIO:\n if UXqs == xtX7:\n try:\n RDuA.move(gzes(COc9, VXjJ), gzes(COc9, xtX7, VXjJ))\n except FileNo...
[ "0.71940136", "0.7184324", "0.71660066", "0.675361", "0.675361", "0.67486656", "0.66388965", "0.6494527", "0.6413706", "0.6357713", "0.62656945", "0.62399673", "0.61743736", "0.6170652", "0.61690843", "0.615815", "0.61228734", "0.61096156", "0.6083451", "0.60793895", "0.60378...
0.0
-1
Send message to the user with notFound 404 status.
def m7kB(tTpl): Ol8d = {'err': {'msg': 'This route is currently not supported. Please refer API documentation.'}} _hkX = pz3A(Ol8d) _hkX.status_code = 404 return _hkX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XTyb(YKHO):\n YKHO.send_error(404, 'File not found')", "def aMr5(YKHO):\n Tnwn = YKHO._get_config_template('404')\n l5Ny = p3J7(Tnwn, title='%s - 404' % gajC, header='404 &mdash; Page not found', URL='Nothing')\n YKHO._send_response(l5Ny, 404)", "def mQmM(YKHO, pmON):\n y0cW = YKHO._getConfi...
[ "0.81251395", "0.8037681", "0.8027026", "0.7466101", "0.74292845", "0.7336844", "0.7312849", "0.7261023", "0.7249713", "0.7249645", "0.7249645", "0.7244892", "0.72413087", "0.7238381", "0.7221919", "0.7220921", "0.72206825", "0.7216198", "0.72136664", "0.7207618", "0.72071874...
0.70322317
49
Check if user is allowed to do this.
def KzJa(YKHO): kRSM = YKHO.request.user.may return not YKHO.__class__.__name__ in YKHO.request.cfg.actions_excluded and kRSM.write(YKHO.pagename)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F4VP(YKHO) -> bool:\n return YKHO.effect == AZ9y", "def D1QP(YKHO, CBIr):\n if not YKHO.modOnlyAccess:\n return True\n if CBIr.modAccess == YKHO.modOnlyAccess:\n return True\n else:\n return False", "def uq5Y(YKHO, uJjO):\n return False", "def Pn7U(YKHO):\n return Y...
[ "0.7984081", "0.7877894", "0.7801698", "0.77132416", "0.7699536", "0.76784873", "0.7669489", "0.7657942", "0.76547027", "0.7648808", "0.7648808", "0.7648808", "0.7641889", "0.7597246", "0.75231224", "0.7460616", "0.7447043", "0.7436796", "0.74156576", "0.7407053", "0.73980033...
0.7326418
23
Create a discrete control set that is shaped like a cosine function.
def WnRH(UTZl, ApFH, YCLp, b4dA, qAQF, w4Sv=10.0): pQ4c = oyIN.divide(YCLp, w4Sv) Fg_i = oyIN.divide(2 * oyIN.pi, pQ4c) vQ4U = oyIN.zeros((YCLp, ApFH)) for YRbF in range(ApFH): wTln = qAQF[YRbF] D6u5 = oyIN.divide(wTln, 2) * oyIN.cos(Fg_i * oyIN.arange(YCLp)) R0kd = wTln * 0.1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nq1b(YRbF, WKvO):\n if YRbF == 1:\n return oyIN.array([[1.0, 0.0, 0.0], [0.0, YhSR(WKvO), YUNn(WKvO)], [0.0, -YUNn(WKvO), YhSR(WKvO)]])\n elif YRbF == 2:\n return oyIN.array([[YhSR(WKvO), 0.0, -YUNn(WKvO)], [0.0, 1.0, 0.0], [YUNn(WKvO), 0.0, YhSR(WKvO)]])\n elif YRbF == 3:\n retur...
[ "0.62159336", "0.5716321", "0.5659428", "0.543885", "0.54238886", "0.5407454", "0.5336914", "0.5282942", "0.5246328", "0.5203804", "0.5200005", "0.5176265", "0.5172793", "0.5138024", "0.50859714", "0.50710136", "0.50569665", "0.5047774", "0.5034469", "0.50343806", "0.5020108"...
0.5927754
1
Compute a TxN matrix of features of the given phase vector using Gaussian basis functions. Where T is the number of elements in the phase vector and N is the number of basis functions.
def i7Az(RnoT, ywwl, MKlR): Kt_s = len(RnoT) eKGI = oyIN.linspace(-2 * MKlR, 1 + 2 * MKlR, num=ywwl) Nq1b = oyIN.repeat(eKGI.reshape(1, ywwl), Kt_s, axis=0) V6IE = oyIN.repeat(RnoT.reshape(Kt_s, 1), ywwl, axis=1) gaWM = oyIN.exp(-0.5 / MKlR * oyIN.square(V6IE - Nq1b)) gaWM = gaWM / oyIN.sum(gaWM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XFsW(WKvO, ywwl, exwG, ZBC8):\n I7o1 = oyIN.zeros([len(ZBC8), len(ZBC8)])\n print('making TMM')\n awnO = [int(WKvO ** exwG * NdIm % ywwl) for NdIm in ZBC8]\n for NdIm in range(len(ZBC8)):\n if ZBC8.__contains__(awnO[NdIm]):\n I7o1[NdIm, ZBC8.index(awnO[NdIm])] = 1\n return I7o1...
[ "0.6072341", "0.5897467", "0.5807051", "0.5731498", "0.5680174", "0.56800663", "0.5603116", "0.5543852", "0.548797", "0.5432222", "0.5381884", "0.53484786", "0.5343271", "0.5334068", "0.53140724", "0.5287831", "0.5281735", "0.527351", "0.5270905", "0.5261998", "0.5241274", ...
0.71907866
0
Before all tests, add sample city & users
def FCbF(YKHO): thws.query.delete() cKBo.query.delete() UH90 = cKBo(**OerS) NCls.session.add(UH90) jvxP = thws(**qLKX) NCls.session.add(jvxP) NCls.session.commit() YKHO.cafe = jvxP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izSt(Emd4):\n BJsk.initialize_empty_volunteer()", "def FCbF(YKHO):\n YKHO.new_users = mv1M('Dennis', 'Kiplangat', 'kiplangat18')", "def FCbF(YKHO):\n YKHO.my_city = cKBo()", "def FCbF(YKHO):\n with UzPC.cursor() as N1p7:\n Pe9W = 'INSERT INTO `' + oAMF + '` (`name`, `surname`, `passwor...
[ "0.71896327", "0.7132645", "0.7092744", "0.7058307", "0.7024194", "0.6962954", "0.6880135", "0.68702155", "0.68702155", "0.6830722", "0.6798843", "0.6791531", "0.6754927", "0.6713461", "0.67037135", "0.66994065", "0.668939", "0.6669227", "0.6663045", "0.66554177", "0.6648748"...
0.0
-1
Before all tests, add sample city & users
def FCbF(YKHO): thws.query.delete() cKBo.query.delete() UH90 = cKBo(**OerS) NCls.session.add(UH90) jvxP = thws(**qLKX) NCls.session.add(jvxP) NCls.session.commit() YKHO.cafe = jvxP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izSt(Emd4):\n BJsk.initialize_empty_volunteer()", "def FCbF(YKHO):\n YKHO.new_users = mv1M('Dennis', 'Kiplangat', 'kiplangat18')", "def FCbF(YKHO):\n YKHO.my_city = cKBo()", "def FCbF(YKHO):\n with UzPC.cursor() as N1p7:\n Pe9W = 'INSERT INTO `' + oAMF + '` (`name`, `surname`, `passwor...
[ "0.71896327", "0.7132645", "0.7092744", "0.7058307", "0.7024194", "0.6962954", "0.6880135", "0.68702155", "0.68702155", "0.6830722", "0.6798843", "0.6791531", "0.6754927", "0.6713461", "0.67037135", "0.66994065", "0.668939", "0.6669227", "0.6663045", "0.66554177", "0.6648748"...
0.0
-1
Before all tests, add sample city & users
def FCbF(YKHO): thws.query.delete() cKBo.query.delete() UH90 = cKBo(**OerS) NCls.session.add(UH90) jvxP = thws(**qLKX) NCls.session.add(jvxP) NCls.session.commit() YKHO.cafe_id = jvxP.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izSt(Emd4):\n BJsk.initialize_empty_volunteer()", "def FCbF(YKHO):\n YKHO.new_users = mv1M('Dennis', 'Kiplangat', 'kiplangat18')", "def FCbF(YKHO):\n YKHO.my_city = cKBo()", "def FCbF(YKHO):\n with UzPC.cursor() as N1p7:\n Pe9W = 'INSERT INTO `' + oAMF + '` (`name`, `surname`, `passwor...
[ "0.71896327", "0.7132645", "0.7092744", "0.7058307", "0.7024194", "0.6962954", "0.6880135", "0.68702155", "0.68702155", "0.6830722", "0.6798843", "0.6791531", "0.6754927", "0.6713461", "0.67037135", "0.66994065", "0.668939", "0.6669227", "0.6663045", "0.66554177", "0.6648748"...
0.0
-1
Delete a collection Deletes an existing collection. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def PTpj(YKHO, EZ2Z, **B2fa): B2fa['_return_http_data_only'] = True if B2fa.get('callback'): return YKHO.delete_with_http_info(EZ2Z, **B2fa) else: nPrm = YKHO.delete_with_http_info(EZ2Z, **B2fa) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JP2O(YKHO, Rr59: str):\n return YKHO.http.collections_api.update_collections(storage_operations=Vh8j(delete_collection=Rr59))", "def JP2O(EZ2Z):\n if Pvg2.contains(EZ2Z):\n return Pvg2.delete_collection(EZ2Z)\n else:\n eTsH(400, 'Collection does not exist')", "def SKY0(YKHO, cMrz, EZ...
[ "0.7492643", "0.7383946", "0.6933805", "0.6725361", "0.6679288", "0.6656375", "0.65549606", "0.65480655", "0.62788177", "0.6267317", "0.6216147", "0.61422735", "0.61316806", "0.61219484", "0.6106382", "0.60968333", "0.6066024", "0.60241866", "0.5959069", "0.592581", "0.589048...
0.73280615
2
Delete a collection Deletes an existing collection. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def daKK(YKHO, EZ2Z, **B2fa): HhGF = ['collection_id'] HhGF.append('callback') HhGF.append('_return_http_data_only') HhGF.append('_preload_content') HhGF.append('_request_timeout') NArs = locals() for H5ew, wEf2 in BVGD(NArs['kwargs']): if H5ew not in HhGF: raise TypeErro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JP2O(YKHO, Rr59: str):\n return YKHO.http.collections_api.update_collections(storage_operations=Vh8j(delete_collection=Rr59))", "def JP2O(EZ2Z):\n if Pvg2.contains(EZ2Z):\n return Pvg2.delete_collection(EZ2Z)\n else:\n eTsH(400, 'Collection does not exist')", "def PTpj(YKHO, EZ2Z, **...
[ "0.7493432", "0.7382503", "0.7326914", "0.69327015", "0.67252374", "0.6677552", "0.6656314", "0.6547391", "0.62783366", "0.6266493", "0.6215074", "0.61427295", "0.61306936", "0.6120033", "0.61062884", "0.6097403", "0.6066358", "0.6023609", "0.595951", "0.5926667", "0.58899575...
0.6553675
7