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
Constructor of Task Manager
def FIMM(YKHO): YKHO.task_list_to_be_executed = [] YKHO.task_list_to_be_executed_lock = RQ1O() YKHO.task_list_executed = [] YKHO.task_list_executed_lock = RQ1O() YKHO.task_list_cannot_be_executed = [] YKHO.task_list_cannot_be_executed_lock = RQ1O()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super(AEsQ, YKHO).__init__()\n YKHO._lock = T6FA.Lock()\n YKHO._tasks_abandoned = {}\n YKHO._latest_task_processing_time = int(ITS7.time() * xHrl.MICROSECONDS_PER_SECOND)\n YKHO._tasks_merging = {}\n YKHO._tasks_queued = g760.OrderedDict()\n YKHO._tasks_pending_merge = VnI0()...
[ "0.8092429", "0.77329606", "0.7682982", "0.7655001", "0.76029825", "0.7591006", "0.75715554", "0.75194603", "0.7514213", "0.7512684", "0.7494733", "0.7432305", "0.7422328", "0.7414601", "0.7408489", "0.7403506", "0.73651445", "0.7353555", "0.73036873", "0.72971445", "0.724893...
0.6962792
43
Check if parameter is float and within given range.
def CM_3(xqoZ, nEeK, ekgN): try: xqoZ = float(xqoZ) except ValueError: raise ValueError('Parameter is not float or similar') else: if nEeK is None: nEeK = float('-inf') if ekgN is None: ekgN = float('inf') if not nEeK <= xqoZ <= ekgN: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E4Ij(Emd4, BWXx):\n return isinstance(BWXx, float)", "def Z6LN(BWXx: t.Any) -> bool:\n return isinstance(BWXx, float)", "def SH_w(WC6y):\n try:\n float(WC6y)\n return True\n except ValueError:\n return False", "def nrCH(BWXx, bqSJ, W4ky):\n try:\n BWXx = float(B...
[ "0.75889486", "0.7466988", "0.7454", "0.7402537", "0.7387384", "0.7361017", "0.7334271", "0.7308721", "0.72871", "0.7251558", "0.72371477", "0.7234949", "0.71940273", "0.7160203", "0.7107667", "0.71027774", "0.7098302", "0.70870876", "0.7066167", "0.70425665", "0.70373285", ...
0.83395875
0
Property representing the timedelta between the start and end datetimes.
def fCoM(YKHO): return YKHO.end - YKHO.start
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fCoM(YKHO, yKcO, Os4s, pjcV=min, zxqz=max):\n if not isinstance(yKcO, qcWV):\n yKcO = pjcV(yKcO)\n if not isinstance(Os4s, qcWV):\n Os4s = zxqz(Os4s)\n return Dcbm(Os4s, yKcO).total_seconds()", "def fCoM(YKHO):\n return JRYC.timedelta(seconds=int(YKHO))", "def fCoM(YKHO) -> fCoM:\...
[ "0.76594985", "0.7069973", "0.6757788", "0.67524034", "0.6747318", "0.6740625", "0.6630236", "0.6576564", "0.6572119", "0.65635586", "0.65366876", "0.65318996", "0.65136456", "0.6509738", "0.64842", "0.64667565", "0.6411776", "0.63779163", "0.6372323", "0.6355937", "0.6352888...
0.7963634
0
Returns internally stored energy value in the given unit. The `unit` should be a representative string in abbreviation or otherwise, in singular or plural form (e.g. "kWh", "kWhs", "kilowatthour", or "kilowatthours"). Units must have the same dimensionality as the joule. Unit handling uses the `pint` package, which has...
def Br5Q(YKHO, PXGI): return (YKHO.joules * g_7g.joules).to(g_7g.parse_expression(PXGI)).magnitude
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OeTG(oTcM):\n oTcM = int(oTcM)\n DWE6 = {72: yokr.models.WATT_HOURS, 169: yokr.models.THERMS}\n if oTcM in DWE6:\n return DWE6[oTcM]\n else:\n return None", "def PXGI(YKHO):\n return YKHO.get_record_value('unit')", "def rcrL(YKHO, PXGI='K', XtFw='Temp0'):\n assert YKHO._init...
[ "0.675761", "0.63799113", "0.62577677", "0.6180644", "0.61201864", "0.60802263", "0.6070661", "0.60327834", "0.601201", "0.59934455", "0.59872955", "0.59679383", "0.59275347", "0.5927018", "0.59087205", "0.5905106", "0.59013426", "0.5898288", "0.586916", "0.586916", "0.586916...
0.58305687
24
Generate random value in range (minValue, maxValue) A handy way to use for device simulator
def X8CU(YKHO): if YKHO.dataType == dLvK.DataType.NUMERIC: if YKHO.minValue is None or YKHO.maxValue is None: return None return [tuKI.uniform(YKHO.minValue, YKHO.maxValue) for bGrB in range(YKHO.dataSize)] elif YKHO.dataType == dLvK.DataType.BOOLEAN: return [bool(int(tuKI.un...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RjKZ(min, max):\n return ajWY(min, max)", "def ADdS(JCoA, kpLf=0):\n return tuKI.random() * (JCoA - kpLf) + kpLf", "def qukk(YKHO, kpLf, JCoA):\n return vPAK", "def xac_(min, max):\n return tuKI.random() * (max - min) + min", "def S5XW(min, max):\n if min is None:\n E4N8('Minimum ...
[ "0.8350134", "0.7944897", "0.7859861", "0.7793141", "0.7745396", "0.77313864", "0.7669241", "0.75445545", "0.7504648", "0.74437296", "0.743352", "0.73566663", "0.73532444", "0.7345058", "0.72957593", "0.72957593", "0.7289979", "0.728553", "0.72781485", "0.7260114", "0.72169",...
0.0
-1
Only advance the cycler if the cycler has information that is not specified in any of the supplied tuple of dicts. Ignore any keys specified in the `ignore` set. Returns a copy of defaults dictionary if there are any keys that are not found in any of the supplied dictionaries. If the supplied dictionaries have nonNone ...
def ACYA(YKHO, PrmE, *B2fa): qhWi = YKHO._prop_keys if PrmE is None: PrmE = set() qhWi = qhWi - PrmE if any((all((YSA3.get(G1Hx, None) is None for YSA3 in B2fa)) for G1Hx in qhWi)): _fHq = next(YKHO.prop_cycler).copy() for XP5J in PrmE: _fHq.pop(XP5J, None) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wYid(cmPJ: Mapping, muwo: Mapping, fMRp: bool=False) -> cuzp:\n BQDi.raise_if_falsy(defaults=muwo)\n WMwn = {}\n for G1Hx in muwo:\n Ty9i = cmPJ.get(G1Hx) if cmPJ else None\n if Ty9i is None or (fMRp and (not Ty9i)):\n Ty9i = muwo[G1Hx]\n WMwn[G1Hx] = Ty9i\n return W...
[ "0.5675993", "0.5421266", "0.5368259", "0.53602505", "0.5338775", "0.5301248", "0.52897775", "0.52839464", "0.52701396", "0.52526677", "0.5250772", "0.52472496", "0.52060986", "0.5164925", "0.5161408", "0.51270896", "0.5125312", "0.51194364", "0.51158047", "0.5112291", "0.509...
0.79488474
0
Get the transformation used for drawing xaxis labels, which will add the given amount of padding (in points) between the axes and the label. The xdirection is in data coordinates and the ydirection is in axis coordinates. Returns a
def _SR7(YKHO, U_zW): lQs7 = I8kJ.rcParams['xtick.alignment'] return (YKHO.get_xaxis_transform(which='tick1') + zBuo.ScaledTranslation(0, -1 * U_zW / 72.0, YKHO.figure.dpi_scale_trans), 'top', lQs7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _SR7(YKHO, U_zW):\n return (YKHO.get_xaxis_transform(which='tick1') + zBuo.ScaledTranslation(0, -1 * U_zW / 72.0, YKHO.figure.dpi_scale_trans), 'top', 'center')", "def GSJa(YKHO, U_zW):\n lQs7 = I8kJ.rcParams['xtick.alignment']\n return (YKHO.get_xaxis_transform(which='tick2') + zBuo.ScaledTranslati...
[ "0.70705116", "0.6949813", "0.6671435", "0.6663845", "0.6593697", "0.65915716", "0.65915716", "0.6255428", "0.61959165", "0.61233", "0.60316974", "0.6018849", "0.6018849", "0.5990351", "0.59672165", "0.59672165", "0.5963965", "0.59615153", "0.5887586", "0.58381534", "0.581988...
0.71862787
0
Adjust the Axes for a specified data aspect ratio. Depending on `.get_adjustable` this will modify either the Axes box (position) or the view limits. In the former case, `.get_anchor` will affect the position. Notes This is called automatically when each Axes is drawn. You may need to call it yourself if you need to up...
def pIb0(YKHO, dQgj=None): if dQgj is None: dQgj = YKHO.get_position(original=True) Ir38 = YKHO.get_aspect() if YKHO.name != 'polar': Fatx, ZxUn = (YKHO.get_xscale(), YKHO.get_yscale()) if Fatx == 'linear' and ZxUn == 'linear': VrPd = 'linear' elif Fatx == 'log' a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bjAO(YKHO, Ir38, vjzt=None, DNwW=None, weUZ=False):\n if not (isinstance(Ir38, jKi7.string_types) and Ir38 in ('equal', 'auto')):\n Ir38 = float(Ir38)\n if weUZ:\n MPlV = set(YKHO._shared_x_axes.get_siblings(YKHO) + YKHO._shared_y_axes.get_siblings(YKHO))\n else:\n MPlV = [YKHO]\n...
[ "0.73331726", "0.7289401", "0.63945687", "0.62915033", "0.5941022", "0.585696", "0.5759615", "0.56472605", "0.5466879", "0.5451198", "0.5437231", "0.5437231", "0.5396943", "0.5381786", "0.5360298", "0.5328657", "0.5326262", "0.5314717", "0.5290116", "0.5281697", "0.5281612", ...
0.6856969
2
Return the `Legend` instance, or None if no legend is defined.
def Jhm9(YKHO): return YKHO.legend_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dy_V(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'legend')", "def Jhm9(YKHO):\n return YKHO._legend", "def Jhm9(aNZO=None):\n aNZO = aNZO if aNZO is not None else QrM1.gca()\n return aNZO.legend_", "def Dy_V(YKHO):\n return YKHO['legend']", "def Dy_V(YKHO):\n return YKHO._...
[ "0.7649851", "0.7578537", "0.73991114", "0.7258441", "0.7242291", "0.7242291", "0.70244837", "0.6953291", "0.68505925", "0.65013945", "0.6500653", "0.6439499", "0.6385003", "0.63730675", "0.6173905", "0.604694", "0.5953998", "0.58689815", "0.5734149", "0.57280314", "0.5714102...
0.7551973
2
Return the XAxis instance.
def iDQV(YKHO): return YKHO.xaxis
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkBi(YKHO):\n return kwwu(YKHO)", "def WKvO(YKHO) -> aM69.Axis:\n return YKHO._instance.x", "def WKvO(YKHO) -> aM69.Axis:\n return YKHO._instance.x", "def WKvO(YKHO) -> aM69.Axis:\n return YKHO._instance.x", "def kwwu(YKHO, *qIxc):\n return leuP.Geom_Conic_XAxis(YKHO, *qIxc)", "def NkB...
[ "0.86966825", "0.7524851", "0.7524851", "0.7524851", "0.72629917", "0.71635914", "0.6859879", "0.6638569", "0.6631739", "0.65063804", "0.64199525", "0.62310326", "0.6192452", "0.6110321", "0.59945214", "0.59812075", "0.59812075", "0.5966867", "0.5966867", "0.58519566", "0.582...
0.7022051
6
Return the YAxis instance.
def Vhxv(YKHO): return YKHO.yaxis
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i4e5(YKHO):\n return vAdN(YKHO)", "def vAdN(YKHO, *qIxc):\n return leuP.Geom_Conic_YAxis(YKHO, *qIxc)", "def LVAh(YKHO) -> aM69.Axis:\n return YKHO._instance.y", "def LVAh(YKHO) -> aM69.Axis:\n return YKHO._instance.y", "def i4e5(YKHO):\n return YKHO['yaxis']", "def H4dG(YKHO):\n re...
[ "0.8962548", "0.79670817", "0.79009485", "0.79009485", "0.7799713", "0.7744073", "0.7371972", "0.69557226", "0.695251", "0.6926477", "0.6789251", "0.6789251", "0.6668557", "0.6648562", "0.6579704", "0.6529787", "0.6529787", "0.65270364", "0.65270364", "0.6522873", "0.64340824...
0.7459264
6
Turn the axes grids on or off. Set the axes grids on or off; b is a boolean. If b is None and ``len(kwargs)==0``, toggle the grid state. If kwargs are supplied, it is assumed that you want a grid and b is thus set to True. which can be 'major' (default), 'minor', or 'both' to control whether major tick grids, minor tic...
def Cs6h(YKHO, Fg_i=None, Nygx='major', jDK_='both', **B2fa): if len(B2fa): Fg_i = True elif Fg_i is not None: Fg_i = fgVc(Fg_i) if jDK_ == 'x' or jDK_ == 'both': YKHO.xaxis.grid(Fg_i, which=Nygx, **B2fa) if jDK_ == 'y' or jDK_ == 'both': YKHO.yaxis.grid(Fg_i, which=Nygx,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bpbe(YKHO, Fg_i=None, **B2fa):\n for aNZO, _Wat in YKHO._disperse_kwargs(**B2fa):\n aNZO.yaxis.grid(Fg_i, **_Wat)", "def Z6mt(YKHO, Fg_i=None, **B2fa):\n for aNZO, _Wat in YKHO._disperse_kwargs(**B2fa):\n aNZO.xaxis.grid(Fg_i, **_Wat)", "def Cs6h(YKHO, Fg_i=None, **B2fa):\n YKHO.chec...
[ "0.70492566", "0.6722797", "0.6664255", "0.6028366", "0.55948776", "0.5345221", "0.53413177", "0.5328193", "0.5316087", "0.52083015", "0.5166689", "0.5159063", "0.5150274", "0.5102913", "0.5102913", "0.49917117", "0.49805322", "0.4922657", "0.49222597", "0.4904389", "0.485835...
0.7599599
0
Return the lower and upper xaxis bounds, in increasing order.
def phmZ(YKHO): LFlW, _tIi = YKHO.get_xlim() if LFlW < _tIi: return (LFlW, _tIi) else: return (_tIi, LFlW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hhyd(YKHO):\n Fg_i = YKHO.polydata(True).GetBounds()\n return (Fg_i[0], Fg_i[1])", "def pmnP(YKHO):\n return [YKHO.xmin, YKHO.xmax, YKHO.ymin, YKHO.ymax]", "def pmnP(YKHO):\n X7zS = []\n for exwG, jzdc in YKHO.axes.items():\n X7zS.append(jzdc.bounds)\n return X7zS", "def X7zS(YKH...
[ "0.79922664", "0.7773237", "0.7745927", "0.7660987", "0.76363087", "0.76149005", "0.76019853", "0.75338817", "0.7524139", "0.7466935", "0.7442409", "0.7424038", "0.7399072", "0.7368542", "0.7353513", "0.7337223", "0.732446", "0.72845787", "0.7266728", "0.7254025", "0.72498965...
0.68901986
53
Raise ValueError if converted limits are nonfinite. Note that this function also accepts None as a limit argument. Returns The limit value after call to convert(), or None if limit is None.
def yhSn(YKHO, qoqK, a8Pe): if qoqK is not None: UyRo = a8Pe(qoqK) if isinstance(UyRo, float) and (not oyIN.isreal(UyRo) or not oyIN.isfinite(UyRo)): raise ValueError('Axis limits cannot be NaN or Inf') return UyRo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dnOc(YKHO, BWXx):\n if BWXx is None:\n return BWXx\n BWXx = int(BWXx)\n if BWXx < 1:\n raise ValueError('Limit must be a positive integer and non-zero')\n return BWXx", "def jLDj(BWXx):\n if isinstance(BWXx, FLei):\n return BWXx\n elif isinstance(BWXx, int):\n re...
[ "0.7005573", "0.6650215", "0.66246593", "0.662211", "0.66138947", "0.6541181", "0.6409101", "0.63406223", "0.6275425", "0.59610814", "0.5821584", "0.58095753", "0.575247", "0.5751633", "0.57431626", "0.5727403", "0.5672076", "0.5672076", "0.5672076", "0.5672076", "0.5672076",...
0.8529876
0
Get the major x tick labels. Returns
def JaKu(YKHO): return YIAH.silent_list('Text xticklabel', YKHO.xaxis.get_majorticklabels())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _GDW(YKHO):\n return YIAH.silent_list('Text xticklabel', YKHO.xaxis.get_minorticklabels())", "def od0d(YKHO):\n return map(YKHO.valueToCoord, YKHO.majorValues())", "def qb2A(YKHO, cbKy=False):\n return YKHO.xaxis.get_ticklocs(minor=cbKy)", "def RP3j(YKHO):\n raise NotImplementedError(\"You sh...
[ "0.82864624", "0.7794232", "0.7610867", "0.7069561", "0.70547336", "0.69305515", "0.68998855", "0.6859975", "0.68075174", "0.68008894", "0.6738206", "0.6731295", "0.6711755", "0.6603888", "0.654887", "0.6524085", "0.6512865", "0.6487491", "0.6487201", "0.6424504", "0.6420168"...
0.830535
0
Get the minor x tick labels. Returns
def _GDW(YKHO): return YIAH.silent_list('Text xticklabel', YKHO.xaxis.get_minorticklabels())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JaKu(YKHO):\n return YIAH.silent_list('Text xticklabel', YKHO.xaxis.get_majorticklabels())", "def k0ZC(YKHO):\n return map(YKHO.valueToCoord, YKHO.minorValues())", "def qb2A(YKHO, cbKy=False):\n return YKHO.xaxis.get_ticklocs(minor=cbKy)", "def FMmc(YKHO):\n return YIAH.silent_list('Text ytic...
[ "0.83852565", "0.78546864", "0.7802065", "0.72602075", "0.7208809", "0.7112041", "0.7011323", "0.6883984", "0.6823469", "0.6766878", "0.6558567", "0.6543708", "0.65178573", "0.6468893", "0.64564914", "0.6444201", "0.6444201", "0.6444201", "0.63606876", "0.63126934", "0.628456...
0.776053
3
Return the lower and upper yaxis bounds, in increasing order.
def NLIY(YKHO): es2x, tlxW = YKHO.get_ylim() if es2x < tlxW: return (es2x, tlxW) else: return (tlxW, es2x)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vZCR(YKHO):\n jzdc, Fg_i = YKHO.plot.index_mapper.range.bound_data(YKHO.t)\n min = 1000000.0\n max = 0\n for gDyN in range(jzdc, Fg_i):\n if YKHO.b[gDyN] < min:\n min = YKHO.b[gDyN]\n if YKHO.s[gDyN] < min:\n min = YKHO.s[gDyN]\n if YKHO.b[gDyN] > max:\n ...
[ "0.83258367", "0.8189429", "0.80896163", "0.79855365", "0.7811991", "0.75360936", "0.74981254", "0.7342923", "0.7342923", "0.7334918", "0.73285586", "0.7302301", "0.719547", "0.7167969", "0.71584314", "0.7139887", "0.7129368", "0.7115806", "0.7073949", "0.70200026", "0.699071...
0.81369424
2
Set the data limits for the yaxis
def Vx3B(YKHO, es2x=None, tlxW=None, tUp6=True, bVA9=False, **YSA3): if 'ymin' in YSA3: es2x = YSA3.pop('ymin') if 'ymax' in YSA3: tlxW = YSA3.pop('ymax') if YSA3: raise ValueError('unrecognized kwargs: %s' % list(YSA3)) if tlxW is None and OxJJ(es2x): es2x, tlxW = es2x ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vzbz(YKHO, rTQi):\n if rTQi == 'fractions':\n YKHO.ax.set_ylim([0, 1])\n elif rTQi == 'covariances':\n YKHO.ax.set_ylim([-1 / 4, 1])\n elif rTQi == 'unbounded':\n pass", "def Vx3B(YKHO, *qIxc, **B2fa):\n for aNZO, _Wat in YKHO._disperse_kwargs(**B2fa):\n aNZO.set_ylim(...
[ "0.782581", "0.7776426", "0.7767154", "0.7762005", "0.77436423", "0.7722705", "0.7695272", "0.7682351", "0.7638437", "0.76307446", "0.7511983", "0.7467109", "0.7416769", "0.7402684", "0.73177016", "0.7311752", "0.72904044", "0.72264713", "0.72247183", "0.71365255", "0.7092722...
0.6489724
50
Get the major y tick labels. Returns
def ZpNE(YKHO): return YIAH.silent_list('Text yticklabel', YKHO.yaxis.get_majorticklabels())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FMmc(YKHO):\n return YIAH.silent_list('Text yticklabel', YKHO.yaxis.get_minorticklabels())", "def xGLW(YKHO, cbKy=False):\n return YKHO.yaxis.get_ticklocs(minor=cbKy)", "def JaKu(YKHO):\n return YIAH.silent_list('Text xticklabel', YKHO.xaxis.get_majorticklabels())", "def k0ZC(YKHO):\n return ...
[ "0.76493657", "0.7624223", "0.75313133", "0.71217626", "0.70681477", "0.70504016", "0.7049882", "0.6876392", "0.68577", "0.67186266", "0.67184645", "0.6715865", "0.670467", "0.6674769", "0.64436173", "0.64350617", "0.64350617", "0.64350617", "0.64140093", "0.6401369", "0.6357...
0.8293229
0
Make a twinx axes of self. This is used for twinx and twiny.
def qSIS(YKHO, *bISY, **B2fa): if 'sharex' in B2fa and 'sharey' in B2fa: raise ValueError('Twinned Axes may share only one axis.') fTVC = YKHO.figure.add_axes(YKHO.get_position(True), *bISY, **B2fa) YKHO.set_adjustable('datalim') fTVC.set_adjustable('datalim') YKHO._twinned_axes.join(YKHO, f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HcPZ(YKHO):\n fTVC = YKHO._make_twin_axes(sharex=YKHO)\n fTVC.yaxis.tick_right()\n fTVC.yaxis.set_label_position('right')\n fTVC.yaxis.set_offset_position('right')\n fTVC.set_autoscalex_on(YKHO.get_autoscalex_on())\n YKHO.yaxis.tick_left()\n fTVC.xaxis.set_visible(False)\n fTVC.patch.se...
[ "0.79028326", "0.77295285", "0.74330086", "0.7395215", "0.7106145", "0.67979825", "0.6676477", "0.6473009", "0.61470115", "0.5819779", "0.58085316", "0.5687126", "0.565725", "0.54024875", "0.53909755", "0.53894114", "0.5361239", "0.53209347", "0.5320416", "0.52960217", "0.529...
0.67835075
6
Create a twin Axes sharing the xaxis Create a new Axes instance with an invisible xaxis and an independent yaxis positioned opposite to the original one (i.e. at right). The xaxis autoscale setting will be inherited from the original Axes. To ensure that the tick marks of both yaxes align, see `~matplotlib.ticker.Linea...
def HcPZ(YKHO): fTVC = YKHO._make_twin_axes(sharex=YKHO) fTVC.yaxis.tick_right() fTVC.yaxis.set_label_position('right') fTVC.yaxis.set_offset_position('right') fTVC.set_autoscalex_on(YKHO.get_autoscalex_on()) YKHO.yaxis.tick_left() fTVC.xaxis.set_visible(False) fTVC.patch.set_visible(Fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HcPZ(YKHO, aNZO: Optional[Axes]=None) -> MlUv:\n if aNZO is None:\n aNZO = QrM1.gca()\n fTVC = aNZO.twinx()\n fTVC.spines['right'].set_visible(True)\n fTVC.tick_params(axis='y', labelcolor=YKHO.axis_color, color=YKHO.axis_color, left=True)\n return fTVC", "def HcPZ(YKHO, aNZO: Optional=...
[ "0.69173723", "0.6906967", "0.6840374", "0.6819971", "0.674369", "0.66460323", "0.65623623", "0.63264185", "0.6310139", "0.60836756", "0.6074692", "0.6052477", "0.60183346", "0.5983135", "0.5958846", "0.5951959", "0.593541", "0.5925952", "0.59249604", "0.5914707", "0.59060115...
0.7629086
0
Create a twin Axes sharing the yaxis Create a new Axes instance with an invisible yaxis and an independent xaxis positioned opposite to the original one (i.e. at top). The yaxis autoscale setting will be inherited from the original Axes. To ensure that the tick marks of both xaxes align, see `~matplotlib.ticker.LinearL...
def HUd3(YKHO): fTVC = YKHO._make_twin_axes(sharey=YKHO) fTVC.xaxis.tick_top() fTVC.xaxis.set_label_position('top') fTVC.set_autoscaley_on(YKHO.get_autoscaley_on()) YKHO.xaxis.tick_bottom() fTVC.yaxis.set_visible(False) fTVC.patch.set_visible(False) return fTVC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HcPZ(YKHO, aNZO: Optional[Axes]=None) -> MlUv:\n if aNZO is None:\n aNZO = QrM1.gca()\n fTVC = aNZO.twinx()\n fTVC.spines['right'].set_visible(True)\n fTVC.tick_params(axis='y', labelcolor=YKHO.axis_color, color=YKHO.axis_color, left=True)\n return fTVC", "def QPNc(YKHO, aNZO, T8H5, Np5...
[ "0.6778975", "0.6777589", "0.6775701", "0.67304564", "0.66478294", "0.66370016", "0.66050124", "0.65839046", "0.65435314", "0.64784944", "0.64140344", "0.6390818", "0.6347343", "0.6339868", "0.6332721", "0.62760806", "0.62608194", "0.62365854", "0.6214567", "0.61824256", "0.6...
0.79424536
0
Return a reference to the shared axes Grouper object for y axes.
def wFAz(YKHO): return YKHO._shared_y_axes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i4e5(YKHO):\n return vAdN(YKHO)", "def i4e5(YKHO):\n return YKHO['yaxis']", "def Vhxv(YKHO):\n return YKHO.yaxis", "def HUd3(YKHO):\n fTVC = YKHO._make_twin_axes(sharey=YKHO)\n fTVC.xaxis.tick_top()\n fTVC.xaxis.set_label_position('top')\n fTVC.set_autoscaley_on(YKHO.get_autoscaley_o...
[ "0.68259096", "0.63847256", "0.62775254", "0.6234208", "0.58795047", "0.58795047", "0.5842778", "0.5783416", "0.57614017", "0.5754988", "0.5709933", "0.5702063", "0.5661974", "0.5657636", "0.56522566", "0.5651316", "0.5600249", "0.5599232", "0.5571619", "0.55476755", "0.55302...
0.7862601
0
The FQDN of the bucket without the bucket name (e.g. nyc3.digitaloceanspaces.com)
def w2IS(YKHO) -> str: return qe4Y.get(YKHO, 'endpoint')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mdaI(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_domain_name')", "def snSD(YKHO):\n return 'https://{host}/{dir}/{fname}'.format(host=wk5E.config['BASE_CDN_HOST'], dir=wk5E.config['S3_UPLOADS_BUCKET'], fname=YKHO.retrieval_location)", "def aNBK(YKHO, WE7e):\n return 'http://{}.{}'.format(WE7e.na...
[ "0.7404785", "0.70468515", "0.70419574", "0.70196867", "0.6905819", "0.6806761", "0.67519796", "0.67519796", "0.67519796", "0.67146003", "0.6680678", "0.6645716", "0.6618867", "0.65553814", "0.65553814", "0.65553814", "0.65553814", "0.65553814", "0.65553814", "0.65553814", "0...
0.0
-1
The name of the Spaces bucket
def mWFP(YKHO) -> str: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')", "def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')", "def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')", "def h47C():\n return cuHu", "def l7rj(YKHO):\n return YKHO.conf['aws']['bucket_name']", "def WE...
[ "0.8288532", "0.8288532", "0.8288532", "0.7901604", "0.78822786", "0.7824679", "0.7824679", "0.7824679", "0.7824679", "0.7824679", "0.7824679", "0.7824679", "0.77682626", "0.77507734", "0.77507734", "0.77507734", "0.77507734", "0.77507734", "0.77507734", "0.77507734", "0.7750...
0.0
-1
The slug of the region where the bucket is stored.
def zn0c(YKHO) -> str: return qe4Y.get(YKHO, 'region')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WE7e(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket')", "def WE7e(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket')", "def WE7e(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket')", "def WE7e(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket')", "def WE7e(YKHO) -> str:\n return qe4Y.get(YKHO, 'buck...
[ "0.73748964", "0.73748964", "0.73748964", "0.73748964", "0.73748964", "0.73748964", "0.73748964", "0.72099864", "0.71759844", "0.7121065", "0.7077589", "0.70668817", "0.70668817", "0.70668817", "0.69860756", "0.69373703", "0.6912523", "0.68805754", "0.6823134", "0.68034637", ...
0.7193328
10
Apply the threshold to the image to get only green parts
def gwAu(YKHO, VXjJ, qfpW): if qfpW == 'R': LSh8 = YKHO.R_LOWER_RANGE CN9P = YKHO.R_UPPER_RANGE elif qfpW == 'G': LSh8 = YKHO.G_LOWER_RANGE CN9P = YKHO.G_UPPER_RANGE else: LSh8 = YKHO.B_LOWER_RANGE CN9P = YKHO.B_UPPER_RANGE VXjJ = XC5k.medianBlur(VXjJ, 5) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gwAu(YKHO, VXjJ):\n Mm3S = oyIN.array([35, 0, 0])\n N5NH = oyIN.array([80, 255, 200])\n VXjJ = XC5k.medianBlur(VXjJ, 5)\n G4e4 = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HSV)\n ZHfW = XC5k.inRange(G4e4, Mm3S, N5NH)\n CyQp = XC5k.bitwise_and(VXjJ, VXjJ, mask=ZHfW)\n CyQp = XC5k.cvtColor(CyQp, XC5...
[ "0.75334495", "0.73676956", "0.7316068", "0.72614413", "0.71687156", "0.7142843", "0.70974976", "0.70920414", "0.7068055", "0.69955647", "0.69563985", "0.69355464", "0.69144267", "0.69127715", "0.6907828", "0.6872586", "0.6872586", "0.6848467", "0.6805957", "0.6799017", "0.67...
0.6805779
19
Creates a new SnapItem in the view referenced by the given snapkey This is intended to be used to create drawable objects that correespond with a snap of the same snapkey value.
def nY3Z(YKHO, we_L): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kr8D(YKHO, DMRb, Hf4d=None, o8Kj=None):\n return kLxY(YKHO, DMRb, Hf4d, o8Kj)", "def E6z1(YKHO, we_L, azoT):\n raise NotImplementedError()", "def Wutj(YKHO, ZfUD):\n return kLxY(ZfUD)", "def A7Vo(YKHO, we_L):\n raise NotImplementedError()", "def Zqet(*qIxc, **B2fa):\n pass", "def Wutj(...
[ "0.58728975", "0.546602", "0.5380131", "0.5300907", "0.5286077", "0.5205431", "0.51523703", "0.50602967", "0.50568247", "0.50536907", "0.49933144", "0.49861145", "0.4970242", "0.49584916", "0.4877588", "0.48673916", "0.48637462", "0.48256224", "0.4814717", "0.47835648", "0.47...
0.736741
0
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(uNpu, YKHO).__init__(*qIxc, **c_sp) if YKHO.workspace_parameters is None: YKHO.workspace_parameters = fB9k.msg.WorkspaceParameters() if YKHO.start_state is None: YKHO.start_state = fB9k.msg.RobotState() if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.81659573", "0.77199703", "0.77199703", "0.7652427", "0.75731903", "0.75440323", "0.7484974", "0.74700636", "0.7457805", "0.7445588", "0.7445063", "0.7433227", "0.7415331", "0.7408073", "0.7391308", "0.73749614", "0.7362632", "0.7325101", "0.732347", "0.732347", "0.732347",...
0.0
-1
The extent of the geometry in scaled units, returned as a tuple (x_min, x_max).
def xx9t(YKHO) -> AzJI[float, float]: return (YKHO.scaled_minima[0], YKHO.scaled_maxima[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xx9t(YKHO):\n return (YKHO.min_x, YKHO.min_y, YKHO.max_x, YKHO.max_y)", "def HlDs(YKHO):\n jNOo = oyIN.array(YKHO.get_coords())\n usx6 = oyIN.amax(jNOo[:, 0]) - oyIN.amin(jNOo[:, 0]) + 1\n WfCS = oyIN.amax(jNOo[:, 1]) - oyIN.amin(jNOo[:, 1]) + 1\n H2v2 = oyIN.amax(jNOo[:, 2]) - oyIN.amin(jNOo[...
[ "0.8513253", "0.7887985", "0.78386915", "0.7773365", "0.7771408", "0.7757045", "0.76573765", "0.76573765", "0.7594159", "0.7566854", "0.7566854", "0.7497943", "0.7491487", "0.7445607", "0.73095", "0.7307745", "0.72634065", "0.72247523", "0.71424705", "0.7055389", "0.7046619",...
0.7865058
2
Query to display all the categories in the database
def Ao04(cb_Q): poOH = cb_Q.query(qZuN).all() eCbM = [Ghho.category_name for Ghho in poOH] CwLm = [Ghho.id for Ghho in poOH] kkKh = [{'categoryID': CwLm, 'name': eCbM} for CwLm, eCbM in zip(CwLm, eCbM)] return kkKh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LH1I(YKHO):\n YKHO.mycursor.execute('SELECT * FROM Categories')\n return YKHO.mycursor.fetchall()", "def LQuW():\n return ouvA.query(qZuN).all()", "def Ao04(YKHO):\n with YKHO.database.connection.cursor(buffered=True) as N1p7:\n N1p7.execute('SELECT id,name FROM categories\\n ...
[ "0.83446896", "0.83056176", "0.8090342", "0.8050781", "0.8029628", "0.7945232", "0.7901366", "0.77503735", "0.76888806", "0.76551235", "0.76158094", "0.75512487", "0.75342", "0.75215286", "0.75215286", "0.75107306", "0.7495614", "0.7492405", "0.74638486", "0.7408271", "0.7405...
0.76953
8
Query to display all the products based on the category selected by a user
def Q_Uu(cb_Q, U7YL): Aofo = cb_Q.query(msfn.product_name, msfn.bar_code, msfn.url, msfn.nutrition_grade, msfn.energy, msfn.proteins).distinct(msfn.product_name, msfn.bar_code, msfn.url, msfn.nutrition_grade, msfn.energy, msfn.proteins).filter(z5Vr.c.product_id == msfn.id).filter(z5Vr.c.category_id == qZuN.id).filt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PZdU(YKHO, Ghho):\n ACia = YKHO.conn_user.query(' SELECT product.barcode, product.name_product, product.grade, product.web_site\\n FROM products as product\\n JOIN products_categories as pc\\n ...
[ "0.767837", "0.7458174", "0.72147954", "0.7117347", "0.7047078", "0.70462567", "0.69373244", "0.6902663", "0.6894282", "0.6872084", "0.6850202", "0.6849628", "0.6848627", "0.6840963", "0.6831346", "0.681495", "0.6802313", "0.67880857", "0.67686737", "0.6762724", "0.6753283", ...
0.6668632
31
Gets full container name of last deployed service (last instance name)
def WJuv(YKHO, bSEa: str) -> str: bSEa = YKHO.project_name + '_' + bSEa + '_' try: hnFq = YKHO.scope.sh('docker ps --format=\'{{ .Names }}\' | grep "%s"' % bSEa, capture=True).split('\n') except Yn3K.CalledProcessError: hnFq = '' Opjv = [] for KAOR in hnFq: hHld = ZbWC.findal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IIb3(YKHO, bSEa):\n return f'{YKHO.experiment_name}_{bSEa}_1'", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_n...
[ "0.7015844", "0.7012224", "0.7012224", "0.7012224", "0.7012224", "0.69952744", "0.69836587", "0.685501", "0.68200165", "0.68200165", "0.67987955", "0.67256826", "0.6724337", "0.6702356", "0.6702356", "0.6702356", "0.6702356", "0.6682592", "0.6504906", "0.6504906", "0.64971614...
0.8010519
0
Gets arguments to use with dockercompose
def Lukr(YKHO): if not YKHO._compose_args: YKHO._compose_args = YKHO.create_compose_arguments(YKHO.ctx.get_env('APPS_PATH'), is_dev=YKHO.scope.is_dev_env) YKHO.scope.io().debug('Compose args: %s' % YKHO._compose_args) return YKHO._compose_args
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rwTO():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('-s', '--host', required=True, action='store', help='Remote host to connect to')\n wvEv.add_argument('-o', '--port', type=int, default=443, action='store', help='Port to connect on')\n wvEv.add_argument('-u', '--user', required=True, action...
[ "0.67018133", "0.66991645", "0.6683732", "0.6678635", "0.6659324", "0.6634928", "0.66307116", "0.6608996", "0.6597463", "0.6567646", "0.6524121", "0.649059", "0.6475971", "0.6456048", "0.6437338", "0.6416306", "0.63845694", "0.63845694", "0.6383843", "0.6374505", "0.63673514"...
0.6272926
32
Scale up and return last instance name (docker container name)
def i35G(YKHO, zVa7: ServiceDeclaration) -> cuzp[int, bool]: R3eu = zVa7.get_desired_replicas_count() YKHO.scope.io().info('Scaling up to %i' % (R3eu + 1)) try: YKHO.compose(['up', '-d', '--no-deps', '--scale %s=%i' % (zVa7.get_name(), R3eu + 1), zVa7.get_name(), '2>&1'], capture=True) except Yn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NXpY(YKHO, zVa7, bUWH):\n return Yn3K.getoutput('docker service scale fogify_' + zVa7 + '=' + str(bUWH))", "def mWFP(YKHO):\n return YKHO._client.project_name + '/instances/' + YKHO.instance_id", "def zeTD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'instance_name')", "def WJuv(YKHO, bSEa...
[ "0.61371344", "0.61316776", "0.5934744", "0.5917064", "0.5909088", "0.5909088", "0.5909088", "0.58433384", "0.5824718", "0.58064467", "0.57726336", "0.5743284", "0.5743284", "0.5734663", "0.566159", "0.56449777", "0.5557435", "0.5523445", "0.54984444", "0.5496756", "0.5492749...
0.65582734
0
Find Classroom ID in a given GAM string and return the int gCourseID
def dc4P(input): Gnqf = str(input).replace('\\', ' ') Gnqf = Gnqf.split() Wl6V = 0 for Q7me in Gnqf: try: Wl6V = int(Q7me) break except: pass if Wl6V > 1000000000: print(f'Received Google Classroom ID: {Wl6V}') break ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z99u(JBBD):\n print(f'Creating {JBBD.alias} in Google Classroom and fetching Course ID...')\n try:\n a9uz = Yn3K.run([f'{Hy7s.path.expanduser('~')}/bin/gam/gam', 'create', 'course', 'name', f'{JBBD.alias}', 'teacher', f'{JBBD.primaryTeacher}', 'status', 'active'], stdout=Yn3K.PIPE)\n JBBD.c...
[ "0.72898346", "0.61811244", "0.60899085", "0.5962179", "0.5897539", "0.58934814", "0.5889709", "0.5822238", "0.5814007", "0.57537633", "0.56917644", "0.56083614", "0.56077397", "0.5597236", "0.5580033", "0.5579168", "0.5562578", "0.55477077", "0.55330527", "0.5432574", "0.537...
0.74652994
0
resolve yml file path according to current working directory default file path for yml files is ./tests/k8s/
def odsY(gIsw): tUCP = 'tests' C6Ct = 'k8s' U1Qf = Hy7s.path.dirname(Hy7s.path.realpath(xAKo)) GbCl = ZbWC.search(tUCP, U1Qf).end() if not GbCl: raise Exception("must be ran from 'tests' dir or any sub directory to tests for yml path resolution") U1Qf = U1Qf[:GbCl] Zg0d = Hy7s.path.j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwvJ() -> str:\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'configs')", "def hfdc(Emd4, Ux0P):\n if Hy7s.path.exists(Ux0P):\n return Ux0P\n return Hy7s.path.join(Hy7s.environ['ZAQAR_TESTS_CONFIGS_DIR'], Ux0P)", "def MzKL(gIsw):\n if not gIsw.lower().endswith('.yaml'):\n gIsw ...
[ "0.642173", "0.63643163", "0.6339197", "0.6330947", "0.6320355", "0.63056785", "0.62501466", "0.61904573", "0.61331934", "0.6130251", "0.61268973", "0.60907406", "0.6074638", "0.60730743", "0.60721326", "0.6050374", "0.6048434", "0.6031834", "0.6004274", "0.6002793", "0.59806...
0.6932538
0
returns float representation of unitOfMeasure Strips prepended chars like "pkg of " that appears in pbid.csv's um column as "pkg of 10" Strips appended chars like "ft", "feet" that appears in pbid.csv's um column as "50ft" returns 1.0 if pbid.csv's um column is empty
def j_8I(RINh): U5bT = -1 for La4f in range(len(RINh)): try: U5bT = int(RINh[:La4f]) except: pass if U5bT > 0: return float(U5bT) for La4f in range(len(RINh)): try: U5bT = int(RINh[La4f:]) return float(U5bT) except: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ihXo(YKHO):\n try:\n return YKHO.svg.unittouu(str(1.0) + YKHO.options.units)\n except:\n try:\n return lmJC.unittouu(str(1.0) + YKHO.options.units)\n except AttributeError:\n return YKHO.unittouu(str(1.0) + YKHO.options.units)", "def JZJQ(YKHO) -> str:\n re...
[ "0.6881017", "0.6758195", "0.673812", "0.673812", "0.65035903", "0.6503032", "0.6447406", "0.6407608", "0.63917464", "0.6377122", "0.6355357", "0.63483775", "0.63350487", "0.6323965", "0.6323965", "0.6323965", "0.6321992", "0.6295045", "0.6276181", "0.6265373", "0.62615573", ...
0.70271635
0
Return the configuration object.
def GPtr(YKHO) -> m2SN: return YKHO._config
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dhbr(YKHO):\n return YKHO.config", "def eMhT(YKHO):\n assert YKHO._as_parameter_\n return y8cn._new_from_handle(bmOM(YKHO))", "def eMhT() -> y8cn:\n return fOck()", "def tgzD():\n return PSrQ()", "def wOGa(YKHO):\n return YKHO._config", "def GPtr(YKHO):\n if YKHO._config is None:...
[ "0.8625144", "0.85135335", "0.8425619", "0.83479667", "0.83261573", "0.8305842", "0.8277826", "0.82330495", "0.82151854", "0.82132685", "0.81836146", "0.8168827", "0.8168827", "0.8168827", "0.8168827", "0.81553805", "0.81553805", "0.81553805", "0.81329024", "0.8114027", "0.80...
0.0
-1
Return the data interval as a tuple (vmin, vmax).
def y8uJ(YKHO) -> cuzp: return YKHO._dataLim.intervalx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XjZG(nPrm):\n min = nPrm.min()\n max = nPrm.max()\n if min == max:\n min = 0\n max = 1\n return [float(min), float(max)]", "def SUNP(YKHO):\n return (YKHO.data.min(), YKHO.data.max())", "def j2gk(YKHO):\n xlLU = (YKHO.min, YKHO.max, YKHO.colorbar_number, YKHO.ampl_phase)\n ...
[ "0.7076397", "0.6813047", "0.673522", "0.67197084", "0.6581547", "0.6545492", "0.65352654", "0.6453523", "0.64112383", "0.6377522", "0.6372912", "0.6347206", "0.6336586", "0.63331985", "0.6332288", "0.6253387", "0.6228651", "0.61803216", "0.61702645", "0.61683476", "0.6164409...
0.6289769
15
Return the tick labels for all the ticks at once.
def Y5jN(YKHO, hkxX: pd.Series) -> x1iM[str]: YKHO.set_locs(hkxX) return [YKHO(BWXx, YRbF) for YRbF, BWXx in enumerate(hkxX)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Te1x(YKHO) -> list:\n return []", "def Crrw(YKHO):\n from ._common import labeler\n return YKHO.split([labeler(YRbF) for YRbF in range(YKHO.n_cells)])", "def Te1x(YKHO):\n Crrw = []\n for UXqs in YKHO.instance.labels:\n Crrw.append(UXqs.name)\n return Crrw", "def RP3j(YKHO):\n ...
[ "0.7332323", "0.7317796", "0.7313361", "0.7308944", "0.7302338", "0.7302338", "0.71952343", "0.7194349", "0.71858877", "0.71858877", "0.71687806", "0.71505904", "0.71505904", "0.71505904", "0.715059", "0.7143084", "0.7139706", "0.709843", "0.7082635", "0.70812523", "0.7067562...
0.0
-1
Return a short string version of the tick value. Defaults to the positionindependent long value.
def aFos(YKHO, BWXx: Any) -> str: return YKHO.format_data(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cll5(YKHO) -> str:\n return str(YKHO.value)[:8]", "def fndD(YKHO):\n return 'Ticks: %s' % ' '.join(map(str, YKHO.ticks))", "def vfgp(cnpU):\n return ZYgz.TInt64_GetMegaStr(cnpU)", "def vfgp(cnpU):\n return ZYgz.TUInt64_GetMegaStr(cnpU)", "def vfgp(cnpU):\n return ZYgz.TInt_GetMegaStr(cnp...
[ "0.6571794", "0.64752835", "0.6401257", "0.6354217", "0.6299596", "0.62940615", "0.6252516", "0.6230619", "0.6198797", "0.6167786", "0.61644465", "0.6140244", "0.60948557", "0.60635686", "0.60405606", "0.6003697", "0.60033065", "0.5941284", "0.59290165", "0.59250987", "0.5887...
0.541649
75
Compute the shape bias of a model.
def d4r9(YKHO, jQ3Z: pd.DataFrame) -> cuzp[str, float]: YKHO._check_dataframe(jQ3Z) jQ3Z = jQ3Z.copy() jQ3Z['correct_texture'] = jQ3Z['imagename'].apply(YKHO.get_texture_category) jQ3Z['correct_shape'] = jQ3Z['category'] qaAi = jQ3Z.loc[jQ3Z.correct_shape != jQ3Z.correct_texture] WF8F = len(qaAi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7ph(ROpF):\n return ZylS.get_variable('bias', ROpF, initializer=ZylS.constant_initializer(0.1))", "def Y7ph(YKHO, ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG)", "def Y7ph(YKHO, ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG)", "de...
[ "0.71944547", "0.7186433", "0.7143066", "0.71108854", "0.7103476", "0.7103476", "0.70954233", "0.70952266", "0.7092776", "0.7082815", "0.70703083", "0.7038264", "0.70353365", "0.70353365", "0.7014628", "0.7012587", "0.7012587", "0.69890577", "0.6986576", "0.6986576", "0.69865...
0.0
-1
Create and return a `User` with an email, username and password.
def lYUQ(YKHO, D3lj, NtEF, jTXt, **wdCM): CBIr = YKHO.model(email=YKHO.normalize_email(D3lj), **wdCM) CBIr.set_password(jTXt) CBIr.username = NtEF CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYUQ(Emd4, D3lj, jTXt):\n CBIr = mv1M.create(D3lj, jTXt)\n return CBIr", "def lYUQ(D3lj, jTXt):\n return mv1M.objects.create(email=D3lj, password=jTXt)", "def xWi2(YKHO, D3lj, NtEF, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n ...
[ "0.89168644", "0.86742675", "0.8669719", "0.86643064", "0.8647009", "0.8641838", "0.86369324", "0.86273664", "0.8620517", "0.8620335", "0.8616923", "0.8616923", "0.861459", "0.86126506", "0.8612223", "0.8608269", "0.8606455", "0.8606455", "0.8606455", "0.8606449", "0.8606449"...
0.0
-1
Create and return a `User` with superuser powers. Superuser powers means that this use is an admin that can do anything they want.
def Zp54(YKHO, D3lj, NtEF, jTXt, **wdCM): wdCM.setdefault('is_staff', True) wdCM.setdefault('is_superuser', True) wdCM.setdefault('is_active', True) if jTXt is None: raise TypeError('Superusers must have a password.') CBIr = YKHO.create_user(D3lj, NtEF, jTXt, **wdCM) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cxLU():\n P6bq, _EYN = mv1M.objects.get_or_create(username='admin')\n if _EYN:\n P6bq.set_password('password')\n P6bq.is_superuser = True\n P6bq.is_staff = True\n P6bq.save()\n return P6bq", "def Zp54(YKHO, NtEF, jTXt):\n CBIr = YKHO.create_user(NtEF, password=jTXt)\n ...
[ "0.75092", "0.7502099", "0.7331291", "0.7320199", "0.73089194", "0.72941905", "0.7291484", "0.72812194", "0.72573924", "0.7245267", "0.72373086", "0.7228421", "0.7222434", "0.72042954", "0.72012424", "0.7197854", "0.71963376", "0.718828", "0.71882194", "0.7188162", "0.7172323...
0.7150733
24
Returns a string representation of this `User`. This string is used when a `User` is printed in the console.
def zAg0(YKHO): return YKHO.email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return '<User information: user_id={} first_name={} last_name={} email={} password={}>'.format(YKHO.user_id, YKHO.first_name, YKHO.last_name, YKHO.email, YKHO.password)", "def wHJl(YKHO):\n return f'<User user_id={YKHO.user_id} first_name={YKHO.first_name} last_name={YKHO.last_name} email...
[ "0.83620405", "0.83298415", "0.8300771", "0.82738066", "0.82578593", "0.8239955", "0.82230103", "0.81991786", "0.81959504", "0.81958365", "0.81774485", "0.8174674", "0.8169673", "0.81401485", "0.8129992", "0.81286705", "0.81270945", "0.8113085", "0.80946153", "0.80946153", "0...
0.0
-1
Return True if destination route exists on same network as interface
def eepv(yFgu: str, wohN: str) -> bool: X7fk = I33c(yFgu) eVVj = wohN.network return X7fk in eVVj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PbCZ(YKHO, nZuS):\n return {'dst': nZuS.nlri.prefix()} in YKHO.ipdb.routes", "def corA(YKHO, eVVj, XYGv, kdXA):\n Z_Ua = y2RG.get_os_utils()\n return len([Mkmy for Mkmy in Z_Ua._get_ipv4_routing_table() if Mkmy[0] == eVVj and Mkmy[1] == XYGv and (Mkmy[2] == kdXA)]) > 0", "def Z48N(YKHO, XSoh):\n ...
[ "0.74216276", "0.71296245", "0.71106714", "0.7049699", "0.7029954", "0.699506", "0.69322133", "0.6928812", "0.6819179", "0.6739742", "0.66583973", "0.6621371", "0.66180915", "0.66170305", "0.661385", "0.6554372", "0.6531102", "0.6531102", "0.6531102", "0.648663", "0.6457934",...
0.79726404
0
Sets the city of this GeocodingLocation.
def j5sA(YKHO, j5sA): YKHO._city = j5sA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MFwm(YKHO, j5sA: str):\n YKHO.__city = j5sA\n return YKHO", "def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA", "def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA", "def j5sA(YKHO, j5sA):\n if j5sA is None:\n raise ValueError('Invalid value for `city`, must not be `None`')\n YKHO._cit...
[ "0.82373655", "0.8069888", "0.8069888", "0.79873234", "0.7964414", "0.7805312", "0.7670841", "0.7395924", "0.7327495", "0.70664626", "0.6757688", "0.66092604", "0.66092604", "0.6574592", "0.6565509", "0.6565509", "0.6565509", "0.6565509", "0.6565509", "0.6565509", "0.6565509"...
0.795671
12
Sets the street of this GeocodingLocation.
def UGle(YKHO, UGle): YKHO._street = UGle
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dZsp(YKHO, wEf2):\n YKHO.street = wEf2", "def PJM9(YKHO, PJM9):\n YKHO._street_address = PJM9", "def UdcS(YKHO, UdcS):\n YKHO._street_address1 = UdcS", "def PJM9(YKHO, PJM9):\n if PJM9 is None:\n raise ValueError('Invalid value for `street_address`, must not be `None`')\n if PJM9 is...
[ "0.7916792", "0.7775738", "0.6887082", "0.6800193", "0.6521206", "0.6458845", "0.63512367", "0.6267184", "0.6230587", "0.6188352", "0.60610944", "0.59578735", "0.59578735", "0.59578735", "0.593919", "0.5908803", "0.5748661", "0.5622652", "0.55941045", "0.559406", "0.5593635",...
0.8357776
0
Sets the postcode of this GeocodingLocation.
def BQ5d(YKHO, BQ5d): YKHO._postcode = BQ5d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q8sW(YKHO, q8sW):\n YKHO._post_code = q8sW", "def q8sW(YKHO, q8sW):\n if q8sW is None:\n raise ValueError('Invalid value for `post_code`, must not be `None`')\n YKHO._post_code = q8sW", "def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ", "def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = ...
[ "0.75369287", "0.70387644", "0.6913062", "0.6913062", "0.6913062", "0.6913062", "0.6913062", "0.6913062", "0.6913062", "0.6702527", "0.6628043", "0.63658446", "0.62882686", "0.61685055", "0.6106796", "0.60474205", "0.5884905", "0.58433056", "0.58433056", "0.55409867", "0.5523...
0.7856185
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86416775", "0.8510436", "0.7853881", "0.7744098", "0.77114", "0.7697539", "0.7659996", "0.7637475", "0.76213473", "0.76074654", "0.7606779", "0.7606779", "0.7606779", "0.7598864", "0.7585116", "0.7582008", "0.75707483", "0.7567779", "0.7538827", "0.7538827", "0.7527744", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Create single convolution block with nonlinearity and optional batchnorm/groupnorm.
def KZWJ(DYuh, tYiq, Ot1W, T4Wy, FmZA, dvgN): assert 'c' in T4Wy, 'Conv layer MUST be present' assert T4Wy[0] not in 'rl', 'Non-linearity cannot be the first operation in the layer' KZ52 = [] for YRbF, hcXw in enumerate(T4Wy): if hcXw == 'r': KZ52.append(('ReLU', U78l.ReLU(inplace=Tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jO9g(g4y1, he5B, Ot1W=[3, 3], rrBf=None):\n Zxma = Fz20.conv2d(g4y1, he5B, kernel_size=[1, 1], activation_fn=None, scope=rrBf + '/conv2d')\n Zxma = Fz20.batch_norm(Zxma, fused=True, scope=rrBf + '/bn')\n Zxma = ZylS.nn.relu(Zxma, name=rrBf + '/relu')\n return Zxma", "def jO9g(g4y1, he5B, Ot1W=[3,...
[ "0.7018411", "0.6985242", "0.6979012", "0.69335073", "0.6929185", "0.6917093", "0.6905952", "0.6845724", "0.67837214", "0.67837214", "0.67837214", "0.67837214", "0.67837214", "0.67837214", "0.67837214", "0.6771361", "0.6760186", "0.67476475", "0.67376435", "0.672911", "0.6712...
0.0
-1
Loads the latest checkpoint from the specified config file.
def GHag(eHKs): D5Bc = [] for T5US in Hy7s.listdir(eHKs): D5Bc.append(ZbWC.match(ZbWC.compile('epoch_(\\d+).pth'), T5US).group(1)) D5Bc = max([int(WKvO) for WKvO in D5Bc]) return eHKs + Hy7s.sep + 'epoch_' + str(D5Bc) + '.pth'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nh79(YKHO):\n YKHO.load_from_file(YKHO.checkpoint_file, 'checkpoint file')", "def tyeH(YKHO):\n global URLCurrent\n global pageNumber\n global comicNumber\n P1dF.debug('Attempting to load checkpoint')\n m6Me = None\n try:\n nUeQ = open(YKHO.filename, 'r')\n m6Me = nUeQ.read...
[ "0.76570266", "0.7467299", "0.7363741", "0.7355185", "0.73384017", "0.7226739", "0.7226739", "0.7214378", "0.71525145", "0.71067077", "0.7098232", "0.7061336", "0.7041706", "0.69924486", "0.6958104", "0.69564265", "0.6941171", "0.6898087", "0.6891076", "0.68827885", "0.685239...
0.0
-1
Computes and return the tensor of overall style cost from several chosen layers
def VdQs(YKHO): RQgs = 0 for lzjZ, lk9W in YKHO.STYLE_LAYERS: yvT9 = YKHO.model[lzjZ] ot00 = cb_Q.run(yvT9) XYSt = yvT9 f83f = YKHO.compute_layer_style_cost(ot00, XYSt) RQgs += lk9W * f83f return RQgs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p9uE(ot00, XYSt, ZvRM=None):\n r8hN, Gh3j, vzQi, Q8FT = XYSt.get_shape().as_list()\n if ZvRM:\n wkn_ = ZylS.image.resize_bilinear(ZvRM, [Gh3j, vzQi], align_corners=False, name=None)\n wkn_ = wkn_[:, :, :, 0]\n wkn_ = ZylS.expand_dims(wkn_, [-1])\n XYSt = ZylS.math.multiply(XYS...
[ "0.73497874", "0.71656036", "0.7163829", "0.7132854", "0.70941037", "0.7053922", "0.69397736", "0.6932168", "0.68901306", "0.6853041", "0.68318784", "0.6780911", "0.66098493", "0.65485805", "0.6464888", "0.6443595", "0.6421312", "0.64053494", "0.63790405", "0.6377341", "0.636...
0.7832632
0
Returns the full path of the file in the tree. This method must be overridden by each subclass.
def WVUV(YKHO, EW6p=None, bD7m=None, **TZHU): if not GkAb: raise r2IQ('sdss_access is not installed') else: pmON = GkAb(release=YKHO._release) try: if bD7m: GSwS = pmON.url(EW6p, **TZHU) else: GSwS = pmON.full(EW6p, **TZHU) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qaEx(YKHO) -> str:\n return tq_1.getabsfile(YKHO.root.obj)", "def pmON(YKHO):\n return YKHO.file_system.full_path(YKHO.relative_path)", "def pmON(YKHO):\n return Hy7s.path.abspath(YKHO.f)", "def OyQC(YKHO):\n return Hy7s.path.dirname(YKHO.file)", "def j6_k(YKHO):\n return pmON.join(_mOb....
[ "0.8226119", "0.78660125", "0.773261", "0.7721471", "0.766912", "0.7620888", "0.7608174", "0.759767", "0.759257", "0.7497948", "0.7491447", "0.74761873", "0.74498004", "0.7402257", "0.7392901", "0.73846877", "0.7381647", "0.73741126", "0.73627436", "0.7356777", "0.7351933", ...
0.0
-1
Add a variant to the variant collection If the variant exists we update the count else we insert a new variant object.
def w4sh(YKHO, pPTc): bo34.debug('Upserting variant: {0}'.format(pPTc.get('_id'))) Ol8d = YKHO.db.variant.update({'_id': pPTc['_id']}, {'$inc': {'homozygote': pPTc.get('homozygote', 0), 'observations': 1}}, upsert=True) if Ol8d.get('updatedExisting'): bo34.debug('Variant {0} was updated'.format(Ol8d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GJLU(YKHO, LHRG):\n G2qV = YKHO.db.variant.initialize_ordered_bulk_op()\n for pPTc in LHRG:\n if pPTc:\n G2qV.find({'_id': pPTc['_id']}).upsert().update({'$inc': {'homozygote': pPTc.get('homozygote', 0), 'observations': 1}})\n Ol8d = G2qV.execute()\n bo34.debug('Number of variants...
[ "0.63059556", "0.63055444", "0.60036147", "0.5627528", "0.55408525", "0.5472533", "0.5382856", "0.53741837", "0.53726417", "0.5371528", "0.532382", "0.5309706", "0.52997935", "0.5293976", "0.5286263", "0.52846426", "0.52788883", "0.5276232", "0.52750856", "0.5274103", "0.5272...
0.78936434
0
Returns a GeoDataFrame (Spatially Enabled Pandas DataFrame) from a feature class. =========================== ==================================================================== Argument Description filename Required string. Full path to the feature class =========================== ===================================...
def VZAq(Ux0P, **B2fa): from arcgis.geometry import _types import json if XI9t: NLOB = B2fa.pop('sql_clause', (None, None)) UNaz = B2fa.pop('where_clause', None) V_D6 = B2fa.pop('fields', None) JvR2 = B2fa.pop('sr', None) try: QoB4 = ZO_c.da.Describe(Ux0P)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KCU8(qaYW):\n return SsVK.read_file(qaYW)", "def O8uL(Ux0P, *qIxc, **B2fa):\n print('Reading file:', Ux0P)\n Tvv2 = quUU.read_file(Ux0P, *qIxc, **B2fa)\n ENfy = {'init': 'epsg:4326'}\n if Tvv2.crs != ENfy:\n print('Reprojecting to WGS84')\n Tvv2.to_crs(ENfy, inplace=True)\n re...
[ "0.71425235", "0.6785184", "0.66965145", "0.66673076", "0.6597399", "0.65751135", "0.65605456", "0.65312487", "0.64276564", "0.64057815", "0.6390503", "0.6337965", "0.63246435", "0.6293554", "0.6262345", "0.62455153", "0.6226962", "0.62267053", "0.6225042", "0.6128034", "0.61...
0.76066464
0
natural_sort_key can be used as a key in any function that uses it, like `list.sort`, `sorted`, `max`, etc
def V06J(H5ew: str, vbXT=HfA0) -> x1iM[str]: return [int(l5Ny) if l5Ny.isdigit() else l5Ny.lower() for l5Ny in ZbWC.split(vbXT, H5ew)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def anrc(nPrm: List[Any], H5ew: Callable=lambda KCHu: KCHu) -> x1iM[ImMB]:\n return sorted(nPrm, key=lambda WKvO: V06J(H5ew(WKvO)))", "def gnVQ():\n JDEJ = ['1.jpg', '10.jpg', '2.jpg', '15.jpg', '20.jpg', '5.jpg']\n TGDD = ['1.jpg', '2.jpg', '5.jpg', '10.jpg', '15.jpg', '20.jpg']\n assert TGDD == sor...
[ "0.76636595", "0.76371884", "0.75022316", "0.7481095", "0.7412969", "0.7309842", "0.73074335", "0.7205939", "0.7072015", "0.703108", "0.70055926", "0.6849624", "0.67672735", "0.66999054", "0.6681986", "0.6657233", "0.6639662", "0.6603695", "0.6579526", "0.6553056", "0.6547379...
0.6746215
13
Sort the list into natural alphanumeric order.. Return sorted list
def anrc(nPrm: List[Any], H5ew: Callable=lambda KCHu: KCHu) -> x1iM[ImMB]: return sorted(nPrm, key=lambda WKvO: V06J(H5ew(WKvO)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TGDD(yv6U):\n return sorted(yv6U, key=lambda Mkmy: (l35E(Mkmy[0]), Mkmy[1]))", "def wuhk(vC9B):\n vC9B.sort(key=l35E)", "def xKdE(YKHO, yv6U):\n MvK3 = ZbWC.compile('[0-9]+|[^0-9]+')\n return [(1, int(Z9rn)) if Z9rn.isdigit() else (0, Z9rn.lower()) for Z9rn in MvK3.findall(yv6U)] + [yv6U]", "...
[ "0.86520016", "0.8467501", "0.8411802", "0.8392317", "0.8373125", "0.8349234", "0.8338601", "0.83333445", "0.8327004", "0.8323695", "0.8311718", "0.8311718", "0.8311718", "0.8311718", "0.83092916", "0.83056855", "0.8285626", "0.8285626", "0.82786673", "0.82542634", "0.8251202...
0.0
-1
return a set of primes less than n, only accepts integer and is greater or equal to 5 no errors will be raised!
def m0eA(exwG): rPed = {2, 3} for YRbF in range(3, exwG): if (YRbF + 1) % 6 == 0 or (YRbF - 1) % 6 == 0: I1mm = True for XP5J in rPed: if YRbF % XP5J == 0 and YRbF >= XP5J ** 2: I1mm = False if I1mm: rPed.add(YRbF) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kcg7(exwG):\n Boug = set([])\n KYJZ = []\n FGW3 = 2\n while FGW3 < exwG:\n if FGW3 not in Boug:\n KYJZ.append(FGW3)\n ounV = FGW3 * FGW3\n while ounV < exwG:\n Boug.add(ounV)\n ounV += FGW3\n FGW3 += 1\n return KYJZ", ...
[ "0.83378166", "0.7964431", "0.7869438", "0.77815133", "0.77114224", "0.7704666", "0.7685677", "0.7682452", "0.7674715", "0.76322067", "0.76049364", "0.75925535", "0.7558606", "0.7551198", "0.75453746", "0.7542627", "0.75301796", "0.74810493", "0.74715346", "0.7467242", "0.743...
0.7328301
27
Given distance string s, converts it to a dict.
def z50p(KCHu): Csk6 = dict() for YRbF in KCHu: if YRbF in Csk6.keys(): Csk6[YRbF] += 1 else: Csk6[YRbF] = 1 return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sPD2(KCHu):\n PbM0 = 'd = ' + KCHu\n WKvO = {}\n exec(compile(PbM0, 'strtodict', 'single'), {}, WKvO)\n return WKvO.get('d', {})", "def yOpR(Jkv0):\n Jkv0 = Jkv0.split(',')\n A07C = Jkv0[0::2]\n Fbjb = Jkv0[1::2]\n Csk6 = {int(hbFX): int(u54L) for hbFX, u54L in zip(A07C, Fbjb)}\n r...
[ "0.6583618", "0.6426155", "0.6262823", "0.61437136", "0.6130718", "0.60819864", "0.5997375", "0.59906673", "0.5952057", "0.5899009", "0.58824736", "0.5837402", "0.5774637", "0.57664526", "0.5751294", "0.5735147", "0.57253903", "0.5699881", "0.568883", "0.5669614", "0.5655122"...
0.81824696
0
Tests that send_booking returns True Tests that one message has been sent, with correct subject and body Tests that booking status has been updated
def Kn1V(YKHO): YKHO.booking.status = xVxx.APPROVED Aofo = NyBY(YKHO.booking) YKHO.assertEqual(Aofo, True) YKHO.assertEqual(len(cpYK.outbox), 1) YKHO.assertEqual(str(cpYK.outbox[0].subject), YKHO.booking.title_name) YKHO.assertEqual(str(cpYK.outbox[0].body), YKHO.booking.email_text) Q74b = x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _y0l(YKHO):\n assert xVxx.objects.count() == 0\n YKHO.client.login(username=YKHO.user.username, password='test')\n YKHO._mock_new_user_email_sent()\n _hkX = YKHO.client.post(YKHO.event_url)\n assert xVxx.objects.count() == 1\n tO9_ = 'Added to basket; booking not confirmed until payment has b...
[ "0.7607973", "0.73418903", "0.6937435", "0.692273", "0.6888867", "0.6850235", "0.67062676", "0.6632999", "0.6611388", "0.65970355", "0.6530243", "0.6520406", "0.6503853", "0.64494973", "0.64323443", "0.64042646", "0.63870513", "0.6379038", "0.63718504", "0.6367495", "0.634566...
0.8066763
0
Returns this element as a dict.
def ovVc(YKHO): return {'type': YKHO.type}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lKKu(YKHO):\n return hkS8.asdict(YKHO)", "def UqER(YKHO):\n return dict(YKHO._elements)", "def lKKu(YKHO):\n return lKKu(YKHO)", "def IAhf(YKHO):\n YKHO.attrib = {YKHO.name: YKHO}\n return YKHO.attrib", "def hati(YKHO):\n return dict(YKHO)", "def _fYl(YKHO):\n return dict(YKHO)",...
[ "0.7894435", "0.7828644", "0.77688795", "0.77501917", "0.7748628", "0.76654214", "0.76403314", "0.76403314", "0.76403314", "0.7626945", "0.76183844", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.760365...
0.0
-1
Return the feature which is managed by this element
def RDhP(YKHO): return YKHO.feat
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RDhP(YKHO):\n return YKHO._feature", "def RDhP(YKHO):\n return YKHO._feature", "def RDhP(YKHO):\n return YKHO._feature", "def RDhP(YKHO):\n return YKHO._feature", "def LIRY(YKHO):\n return YKHO._feature_flag", "def jeJz(YKHO, YRbF):\n return YKHO.features[YRbF]", "def RDhP(YKHO) -...
[ "0.88304144", "0.88304144", "0.88304144", "0.88304144", "0.76195", "0.74093246", "0.7310935", "0.7299884", "0.72993183", "0.72723347", "0.72558904", "0.7138179", "0.7096349", "0.7096349", "0.70853806", "0.7068837", "0.70389193", "0.69654536", "0.69422466", "0.6941405", "0.691...
0.8611059
4
Returns this element as a dict.
def ovVc(YKHO): ojRA = sorted(list(YKHO.reachPoints.values()), key=lambda XP5J: XP5J['offset']) rR29 = min([XP5J['offset'] for XP5J in ojRA]) nYip = max([XP5J['offset'] for XP5J in ojRA]) Hx24 = ojRA[0]['level'] or 0 NY8t = ojRA[-1]['level'] or Hx24 geyT = S3UL.asDict(YKHO) geyT.update({'sta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lKKu(YKHO):\n return hkS8.asdict(YKHO)", "def UqER(YKHO):\n return dict(YKHO._elements)", "def lKKu(YKHO):\n return lKKu(YKHO)", "def IAhf(YKHO):\n YKHO.attrib = {YKHO.name: YKHO}\n return YKHO.attrib", "def hati(YKHO):\n return dict(YKHO)", "def _fYl(YKHO):\n return dict(YKHO)",...
[ "0.7894435", "0.7828644", "0.77688795", "0.77501917", "0.7748628", "0.76654214", "0.76403314", "0.76403314", "0.76403314", "0.7626945", "0.76183844", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.760365...
0.0
-1
Returns this element as a dict.
def ovVc(YKHO): geyT = Lscj.asDict(YKHO) geyT.update({'usageCurrent': YKHO.usageCurrent, 'width_m': YKHO.width, 'gradient': YKHO.gradient, 'length': YKHO.length, 'material': YKHO.material}) return geyT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lKKu(YKHO):\n return hkS8.asdict(YKHO)", "def UqER(YKHO):\n return dict(YKHO._elements)", "def lKKu(YKHO):\n return lKKu(YKHO)", "def IAhf(YKHO):\n YKHO.attrib = {YKHO.name: YKHO}\n return YKHO.attrib", "def hati(YKHO):\n return dict(YKHO)", "def _fYl(YKHO):\n return dict(YKHO)",...
[ "0.7894435", "0.7828644", "0.77688795", "0.77501917", "0.7748628", "0.76654214", "0.76403314", "0.76403314", "0.76403314", "0.7626945", "0.76183844", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.7603651", "0.760365...
0.0
-1
String for representing the Model object
def zAg0(YKHO): return '{0} ({1})'.format(YKHO.id, YKHO.Book.title)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--...
[ "0.8169026", "0.8015787", "0.79665667", "0.78248763", "0.7769048", "0.7715981", "0.76182216", "0.7589441", "0.75218886", "0.75218886", "0.75218886", "0.75083184", "0.75034547", "0.74968916", "0.74968916", "0.7475592", "0.74743956", "0.74732584", "0.7463823", "0.7461314", "0.7...
0.0
-1
Only return the stops that were manually added
def Zecp(YKHO): Aofo = [] for zL37 in YKHO._stop_ids: JCyR = YKHO._stop_dict.get(zL37) if JCyR.was_manually_added(YKHO._route_id): Aofo.append(JCyR) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ntLm(YKHO):\n Aofo = BRnR({'command': 'routeConfig', 'a': YKHO.agency, 'r': YKHO.tag})\n ntLm = [pm1c(route=YKHO.tag, **tTpl.attrs) for tTpl in Aofo[0].children if tTpl.tag == 'stop']\n return ntLm", "def cOlC(YKHO):\n return YKHO.stops", "def SoDn(jQ3Z, ntLm=['631N'], Nqlg=['4', '5']):\n gp...
[ "0.665208", "0.655988", "0.6348108", "0.6341857", "0.6302026", "0.6127187", "0.609183", "0.6059567", "0.60277003", "0.59941673", "0.5983177", "0.59765124", "0.5946712", "0.59284085", "0.59021294", "0.58855665", "0.58820176", "0.5864275", "0.5852449", "0.5840637", "0.5839586",...
0.74695444
0
Get all enabled social apps.
def va6j(): HMQD = APsK.objects.exclude(T8ck(client_id__exact='')).distinct() for VpWz in HMQD: try: kT1P = LSgU.registry.by_id(VpWz.provider) except: kT1P = None VpWz.provider = kT1P return HMQD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zvdG(YKHO) -> x1iM[VGkP]:\n return list(YKHO.apps.values())", "def zvdG() -> x1iM[Z33s]:\n return BDu7(Z33s)", "def Bb2t(YKHO):\n return zLGJ.get_all(YKHO)", "def list(YKHO):\n return YKHO._list(YKHO._path(), 'apps')", "def zvdG():\n XZiL = ja1s('apps')\n return XZiL", "def zvdG(AcP...
[ "0.7219483", "0.696804", "0.69086325", "0.6894194", "0.6838552", "0.67613924", "0.66722745", "0.6667988", "0.66649884", "0.6598523", "0.6574648", "0.6561465", "0.65593374", "0.65556437", "0.6451196", "0.64330375", "0.64162326", "0.64162326", "0.6376728", "0.6358601", "0.63330...
0.8008827
0
Generates a URL that contains the code that reflects both the Consent and the contact UUID
def p6Mv(YKHO): QAIN = zvVu.objects.create() e1Ki = CS0n.objects.create(org=QAIN) qxeD = kxTZ() jCCv = JvwA.encode(e1Ki.id, qxeD.int) i_PC = b9AL() QePW = i_PC.get('/') bD7m = e1Ki.generate_url(QePW, qxeD) YKHO.assertIn(jCCv, bD7m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Znjj(w2IS, zb3C, **B2fa):\n ZI14 = '&'.join(['?client_id={}'.format(zb3C), 'response_type={}'.format(uwaB.CODE)] + ['{}={}'.format(H5ew, BWXx) for H5ew, BWXx in B2fa.iteritems()])\n y0cW = ''.join([w2IS, uwaB.AUTHORIZE_ENDPOINT])\n return ''.join([y0cW, ZI14])", "def KLDu(YKHO):\n TfXc = 'https:/...
[ "0.6247407", "0.6217898", "0.6178773", "0.6178773", "0.6178773", "0.6178773", "0.6177702", "0.60166806", "0.6011817", "0.5922237", "0.57958823", "0.574546", "0.5724467", "0.56695515", "0.56239235", "0.5616857", "0.5614047", "0.55953455", "0.55931294", "0.5581767", "0.5581767"...
0.64564425
0
Slope between this point and that point.
def vgFv(YKHO, fh3O): if fh3O.x == YKHO.x: if fh3O.y == YKHO.y: return float('-inf') return float('inf') if fh3O.y == YKHO.y: return 0 return (fh3O.y - YKHO.y) / (fh3O.x - YKHO.x)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VMex(YKHO):\n return (YKHO.endpoint.y - YKHO.startpoint.y) / (YKHO.endpoint.x - YKHO.startpoint.x)", "def VMex(YKHO):\n if YKHO.vertical:\n return oyIN.inf\n else:\n return (YKHO.p2.y - YKHO.p1.y) / (YKHO.p2.x - YKHO.p1.x)", "def O5md(YKHO):\n return YKHO.y / YKHO.x", "def O5md(...
[ "0.8442155", "0.8378792", "0.81768787", "0.8157552", "0.813652", "0.81340563", "0.80086607", "0.7999415", "0.7890562", "0.7724396", "0.7567237", "0.74640054", "0.7449562", "0.74042434", "0.72753674", "0.7161228", "0.7070145", "0.70331514", "0.6961474", "0.6955855", "0.6932622...
0.78944576
8
Convert windows paths to unix paths if running within cygwin.
def F3BF(pmON): if HwRy.platform == 'cygwin': O2PE = Yn3K.check_output(['cygpath', pmON]).rstrip() if Lpna: O2PE = O2PE.decode('ascii') return O2PE else: return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ltzj(pmON):\n return Yn3K.check_output(['cygpath', '-u', pmON]).rstrip()", "def Pv3K(hFSu):\n return Yn3K.check_output(['cygpath', '-w', hFSu]).strip(b'\\n').decode()", "def tAso(pmON):\n HCmI = ['/usr/bin/cygpath.exe', '-w', pmON]\n I45O.info('Converting path to native: %s', xpfW(HCmI))\n p...
[ "0.80307704", "0.7615316", "0.75748247", "0.7499582", "0.72453254", "0.7171255", "0.715954", "0.70912546", "0.70669097", "0.69983315", "0.69591945", "0.68502957", "0.6790444", "0.6700546", "0.66995955", "0.66995955", "0.6674446", "0.6631718", "0.6616528", "0.6595605", "0.6595...
0.7803191
1
Whether the given pattern string contains match constructs.
def _oLw(lvR3): return '*' in lvR3 or '?' in lvR3 or '[' in lvR3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xd0d(mXDZ):\n if type(mXDZ) == str:\n mXDZ = ZbWC.compile(mXDZ)\n\n def b72z(BWXx):\n return bool(mXDZ.match(BWXx))\n return b72z", "def kUBT(vIwR, b6H_):\n if b6H_ is None:\n return True\n else:\n return any((ZbWC.match(mXDZ, vIwR) for mXDZ in b6H_))", "def NFpk(...
[ "0.7743492", "0.7737747", "0.7707441", "0.7655227", "0.75709504", "0.75597817", "0.75591594", "0.7524704", "0.75218236", "0.74086595", "0.73815656", "0.7349215", "0.7349215", "0.73346233", "0.729955", "0.72697014", "0.7251309", "0.72194946", "0.72190845", "0.71576416", "0.714...
0.0
-1
Return the current 'With' Vector.
def CyNt(): pmON = _siZ() if pmON == '/': return [] else: return WkyM(pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u_aW():\n return lYeu(CyNt())", "def FiBr(YKHO, nlmP=None):\n if nlmP is None:\n nlmP = ()\n H5ew = YKHO.get_key_name()\n if YKHO.exists:\n return YKHO.with_(*nlmP).where(H5ew, YKHO.get_key()).first()", "def JW3T(YKHO, Bpu4):\n VEaP, wl6z = YKHO._detect_macro_items(Bpu4.items, ...
[ "0.6261487", "0.54805577", "0.5371976", "0.533724", "0.5284228", "0.5183334", "0.5152833", "0.51406157", "0.5092276", "0.5075713", "0.5075713", "0.5016031", "0.5015907", "0.5015907", "0.5015907", "0.5015907", "0.5015907", "0.5015907", "0.5015907", "0.5015907", "0.5015907", ...
0.0
-1
Given a map and list of keys, return a map of with those keys from the map.
def QTgW(r8hN, sjXb): Csk6 = {} try: for G1Hx in sjXb: if r8hN.__contains__(G1Hx): Csk6[G1Hx] = r8hN[G1Hx] except Exception as e: bo34.info(tTpl) pass return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izwJ(J8oL, *sjXb):\n return (J8oL[G1Hx] for G1Hx in sjXb)", "def pUoe(N8fB, ED_j):\n return Pusg(lambda eUNp, H5ew: eUNp[H5ew], ED_j, N8fB)", "def QZEs(nITe, ZVgY):\n return dict(((H5ew, BWXx) for H5ew, BWXx in nITe.iteritems() if H5ew in ZVgY))", "def izwJ(Csk6, *sjXb):\n return {H5ew: BWXx ...
[ "0.78224736", "0.7381377", "0.7035608", "0.6730211", "0.6728115", "0.6574562", "0.6470312", "0.64343846", "0.63906085", "0.6340885", "0.633096", "0.62693876", "0.6239815", "0.61610484", "0.6149816", "0.6129919", "0.6105816", "0.60807586", "0.6013614", "0.59999675", "0.5975044...
0.6397613
8
Given a list of keys, return a map of with those keys from the with map.
def IBjZ(sjXb): return QTgW(mzZJ(), sjXb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iEJi(YKHO, sjXb: List[str]):\n return {G1Hx: YKHO[G1Hx] for G1Hx in sjXb}", "def izwJ(J8oL, *sjXb):\n return (J8oL[G1Hx] for G1Hx in sjXb)", "def QZEs(nITe, ZVgY):\n return dict(((H5ew, BWXx) for H5ew, BWXx in nITe.iteritems() if H5ew in ZVgY))", "def TSF4(YKHO, sjXb: List[str]) -> cuzp[str, h8n...
[ "0.7057394", "0.6998369", "0.698844", "0.66513103", "0.6630029", "0.6547846", "0.6538024", "0.6536376", "0.6512286", "0.6482476", "0.64092135", "0.63662475", "0.63359505", "0.6294577", "0.6266174", "0.6262448", "0.61997354", "0.61754453", "0.61736983", "0.61381394", "0.613445...
0.0
-1
If the path is a list or string, return all but the first value.
def wOmD(pmON): if pmON is None or len(pmON) == 0: return 'Not found' if isinstance(pmON, list) or isinstance(pmON, str): Ty9i = pmON[1:] return Ty9i return 'Not found'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j6_k(pmON):\n if isinstance(pmON, list):\n return pmON\n if not pmON:\n return []\n return pmON.split('.')", "def UGAB(BWXx):\n if type(BWXx) == list:\n return BWXx[-1]\n return BWXx", "def el2N(YKHO, pmON: Optional[Union[str, List[str]]]) -> h8nf[x1iM[str]]:\n if pmO...
[ "0.65874386", "0.64306587", "0.6299708", "0.6282558", "0.62486184", "0.61888427", "0.6086838", "0.5999453", "0.5961002", "0.59455645", "0.5943908", "0.5939866", "0.59230787", "0.5913302", "0.5900667", "0.58640945", "0.58473", "0.5803833", "0.580115", "0.5791855", "0.57905155"...
0.7025674
0
If the path is a list or string, return all but the first value.
def gxEw(pmON): if pmON is None or len(pmON) == 0: return 'Not found' if isinstance(pmON, str) or isinstance(pmON, list): Ty9i = pmON[::-1] return Ty9i return 'Not found'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wOmD(pmON):\n if pmON is None or len(pmON) == 0:\n return 'Not found'\n if isinstance(pmON, list) or isinstance(pmON, str):\n Ty9i = pmON[1:]\n return Ty9i\n return 'Not found'", "def j6_k(pmON):\n if isinstance(pmON, list):\n return pmON\n if not pmON:\n ret...
[ "0.7025674", "0.65874386", "0.64306587", "0.6299708", "0.6282558", "0.62486184", "0.61888427", "0.6086838", "0.5999453", "0.5961002", "0.59455645", "0.5943908", "0.5939866", "0.59230787", "0.5913302", "0.5900667", "0.58640945", "0.58473", "0.5803833", "0.580115", "0.5791855",...
0.54690397
49
Get a data value from a path in the datastore. Without a leading / the path is considered relative to the current 'with' path.
def NMoC(pmON): if pmON[0] != '/': MHxz = WkyM(pmON[1:]) MHxz = CyNt() + MHxz elif pmON[0] == '.': MHxz = WkyM(pmON[1:]) MHxz = CyNt() + MHxz else: MHxz = WkyM(pmON) return lYeu(MHxz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, pmON, WmM4=None):\n try:\n pmON = pmON.split('/')\n Aofo = YKHO.data\n for XP5J in pmON:\n Aofo = Aofo[XP5J]\n return Aofo\n except KeyError:\n return WmM4", "def qxcP(ZfUD, OeVk: str='result.result.value', WmM4=None):\n if not ZfUD:\n ...
[ "0.73913836", "0.6813459", "0.6612832", "0.65805155", "0.6556309", "0.6553876", "0.654008", "0.6449788", "0.6412506", "0.64123636", "0.639852", "0.6318436", "0.6264768", "0.6209921", "0.62030965", "0.61562294", "0.61546844", "0.61526203", "0.61391145", "0.6136097", "0.611894"...
0.59602845
33
Load a yaml file into the yaml datastore, merging at /.
def tyeH(SGPW): Ue1c(P6bq.load_yaml_file(SGPW))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9B0(YKHO, Ux0P=None):\n idYW = YKHO.yaml_source\n if Ux0P:\n idYW = Ux0P\n if not idYW:\n print('[ERROR]: no yaml source provided')\n uPnt = open(idYW)\n YKHO.dct = eJb6.load(uPnt)\n if not YKHO.dct:\n print('[ERROR]: no data available to load')\n HwRy.exit(1)\n ...
[ "0.6486146", "0.64404535", "0.6329798", "0.6275366", "0.62595195", "0.62028754", "0.6198925", "0.61887825", "0.6167707", "0.61641586", "0.61396885", "0.6131263", "0.610097", "0.60867524", "0.6081426", "0.60803497", "0.6076016", "0.6053359", "0.6044768", "0.6040345", "0.603787...
0.7290474
0
load a yaml file into the application's configuration dictionary.
def LgIG(Ux0P): QmMM['config'] = P6bq.load_yaml_file(Ux0P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LgIG(WRxi):\n with open(WRxi, 'r') as wOb_:\n tbx9 = eJb6.safe_load(wOb_)\n return tbx9", "def z5yG(YKHO, Nu1S):\n YKHO.logger.info('Loading yaml config {}'.format(Nu1S))\n if not Hy7s.path.isfile(Nu1S):\n YKHO.logger.error('Yaml file not found: {}'.format(Nu1S))\n return {}\...
[ "0.79667073", "0.7894014", "0.7820589", "0.78183204", "0.7816925", "0.781475", "0.7809214", "0.7746981", "0.77398294", "0.7739736", "0.77060974", "0.76941127", "0.7683123", "0.7674501", "0.7673589", "0.7664581", "0.7648974", "0.7636331", "0.76244295", "0.7623303", "0.76230484...
0.7775794
7
Instantiates the ResNet50 architecture. Optionally loads weights pretrained on ImageNet. Note that when using TensorFlow, for best performance you should set `image_data_format='channels_last'` in your Keras config at ~/.keras/keras.json. The model and the weights are compatible with both TensorFlow and Theano. The dat...
def DO5i(GhuM=None, _mSQ='imagenet'): Hydj = X6a0(shape=GhuM) if nMvt.image_data_format() == 'channels_last': z5f9 = 3 else: z5f9 = 1 o4D3 = yHwh(64, (7, 7), strides=(2, 2), padding='same', name='conv1')(Hydj) o4D3 = GVKG(axis=z5f9, name='bn_conv1')(o4D3) o4D3 = MroH('relu')(o4D3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uwZX(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3])\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url('https://download.pytorch.org/models/resnet50-19c8e357.pth'))\n C3ST.set_number_of_classes(B2fa['num_classes'])\n return C3ST", "def DO5i(ao6X=True, _mSQ='imagenet', FRUf=None, GhuM=...
[ "0.73050314", "0.7275634", "0.7248938", "0.7239534", "0.7239534", "0.7239534", "0.7239534", "0.7239534", "0.7239534", "0.7239534", "0.7239534", "0.7239534", "0.7230035", "0.7230027", "0.7229242", "0.7192365", "0.71875334", "0.71491784", "0.71198165", "0.711326", "0.7112687", ...
0.6570512
57
Create a phrase from known relations
def eLpg(YKHO): yAmx = YKHO.sentence_tokens jpc5 = YKHO.relations w9rL = {} rFTP = [] for koMu in jpc5: for LEXu in koMu: if LEXu in rFTP: continue else: if LEXu.tag not in w9rL.keys(): w9rL[LEXu.tag] = 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfyr(A0cm):\n global DEBUG, Phrase\n zNig = len(A0cm)\n fdMZ = epAf.sqrt(sum(map(lambda yzQ0: yzQ0[0] ** 2.0, A0cm)))\n if zNig > 1:\n fdMZ = fdMZ / float(zNig) ** (-epAf.e)\n A07C = set(map(lambda yzQ0: yzQ0[1], A0cm))\n l5Ny = ' '.join(map(lambda yzQ0: yzQ0[2], A0cm)).lower()\n XP...
[ "0.6180524", "0.6158007", "0.6089687", "0.6003771", "0.59907717", "0.592333", "0.59178954", "0.5878951", "0.5878951", "0.5875781", "0.5874491", "0.5874491", "0.5851135", "0.5851135", "0.58394533", "0.57957524", "0.5795382", "0.57646555", "0.57593113", "0.57487094", "0.5746591...
0.6030348
3
Sets the when of this ProcessingRulePredicate.
def ZpyY(YKHO, ZpyY): if ZpyY is None: raise ValueError('Invalid value for `when`, must not be `None`') YKHO._when = ZpyY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZpyY(YKHO, ZpyY):\n YKHO._when = ZpyY", "def YhzX(YKHO, **B2fa):\n YKHO._add(YKHO.when, **B2fa)", "def lgNN(YKHO, lgNN):\n YKHO._predicate = lgNN", "def FIMM(YKHO, ZpyY=None):\n YKHO._when = None\n YKHO.discriminator = None\n YKHO.when = ZpyY", "def ZpyY(YKHO, *hMgf):\n\n def ZS9x(...
[ "0.6705787", "0.58063096", "0.5559962", "0.52002394", "0.5141547", "0.4952833", "0.48709428", "0.48536906", "0.477027", "0.46644098", "0.46611735", "0.4630844", "0.45624185", "0.45509306", "0.4528198", "0.45249787", "0.44565496", "0.44421157", "0.4401183", "0.43911365", "0.43...
0.65558934
1
Returns the max length of string in the list
def gpgb(DumB, leAC, rX_W=False): TVTK = len(str(leAC)) for H5ew in DumB.keys(): if rX_W: if TVTK < len(str(H5ew)): TVTK = len(str(H5ew)) elif TVTK < len(str(DumB[H5ew])): TVTK = len(str(DumB[H5ew])) return TVTK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h93l(z9Ed):\n Fbjb = []\n for ZfUD in z9Ed:\n if type(ZfUD) != type(str()):\n Fbjb.append(len(str(ZfUD)))\n else:\n Fbjb.append(len(ZfUD))\n return max(Fbjb)", "def voCX(DumB: list):\n return len(max([WKvO for WKvO in DumB], key=len)) + 4", "def BcCR(SUhW):\n...
[ "0.826713", "0.816878", "0.796528", "0.7908203", "0.7854816", "0.7765554", "0.7636271", "0.76303345", "0.75925845", "0.757113", "0.7566097", "0.7565399", "0.75139517", "0.75076187", "0.7492481", "0.74908954", "0.7478427", "0.7470137", "0.74449855", "0.7393966", "0.7393086", ...
0.0
-1
Push element x onto stack.
def _jXH(YKHO, WKvO): YKHO.queue.append(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.in_stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n ycBG = S9Ut()\n while not YKHO.stack.empty():\n U6D_ = YKHO.stack.pop()\n ycBG.push(U6D_)\n YKHO.stack.push(WKvO)\n while not ycBG.empty():\n U6D_ = ycBG.pop()\n YKHO.stack.push(U6D_)\n ret...
[ "0.8884891", "0.88815904", "0.8851905", "0.8829994", "0.8825823", "0.87915844", "0.8784638", "0.8781226", "0.8723327", "0.87200546", "0.87101483", "0.8696664", "0.86889726", "0.8672952", "0.86561507", "0.86259526", "0.8610324", "0.86102635", "0.860013", "0.860013", "0.8581793...
0.7714016
56
Removes the element on top of the stack and returns that element.
def BEuN(YKHO): AvT7 = g760.deque() while len(YKHO.queue) != 1: AvT7.append(YKHO.queue.popleft()) BWXx = YKHO.queue.popleft() YKHO.queue = AvT7 return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN():\n global top\n if A4KR():\n return None\n U6D_ = E5BI[tlxW]\n E5BI[tlxW] = None\n BAMb[tlxW] = None\n tlxW -= 1\n return U6D_", "def BEuN(E5BI):\n LihS = E5BI.elements[-1]\n del E5BI.elements[-1]\n return LihS", "def BEuN(YKHO):\n ZfUD = YKHO.stack.pop()\n ...
[ "0.83285564", "0.82814056", "0.8210085", "0.81704277", "0.81349236", "0.8095011", "0.8064679", "0.8016918", "0.7953157", "0.7943855", "0.793094", "0.78770566", "0.7872679", "0.7850065", "0.7826401", "0.77995974", "0.77936834", "0.77862775", "0.7773103", "0.7773103", "0.777310...
0.0
-1
Returns whether the stack is empty.
def lsmZ(YKHO): return len(YKHO.queue) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def A4K...
[ "0.9128382", "0.9128382", "0.9089147", "0.9089147", "0.9089147", "0.9054476", "0.90168625", "0.90168625", "0.9007831", "0.89530855", "0.8949649", "0.8949649", "0.8938501", "0.89370805", "0.8922049", "0.88844925", "0.88758796", "0.88700867", "0.88436955", "0.8797164", "0.87931...
0.0
-1
pops a random city out of the path and reinserts it in the best place
def CWMI(pmON, y7GR, Nq1b): _qjt = y7GR d6pt = oyIN.random.randint(0, len(pmON) - 1) _qjt -= Nq1b[pmON[d6pt - 1] - 1, pmON[d6pt] - 1] + Nq1b[pmON[d6pt] - 1, pmON[d6pt + 1] - 1] _qjt += Nq1b[pmON[d6pt - 1] - 1, pmON[d6pt + 1] - 1] pmON.pop(-1) Z9rn = pmON.pop(d6pt) min = y7GR C6id = d6pt ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mu42(YKHO, gysO):\n Ziit = YKHO.nodes_set\n XLlb = list((WKvO for WKvO in _qLf(gysO) if WKvO not in Ziit))\n if not XLlb:\n return None\n BdN0 = XLlb.pop(qukk(len(XLlb)))\n return YKHO.__class__(YKHO.path + (BdN0,))", "def CpbO(YKHO):\n beOw = NblZ ** 2 * 10\n while beOw > 0:\n ...
[ "0.6645961", "0.6618179", "0.6407903", "0.62289804", "0.6189326", "0.6153831", "0.6144971", "0.6130598", "0.60525465", "0.6017886", "0.60118985", "0.59874517", "0.59675443", "0.5944312", "0.5909831", "0.58739096", "0.5851877", "0.5851467", "0.58199686", "0.5800696", "0.576111...
0.7536383
0
Takes a graph and returns a random hamiltonian circle route
def Dney(KPPT): NtAE = [sMrl for sMrl in range(len(KPPT))] Tifd = tuKI.choice(NtAE) GLr8 = [Tifd] QNrh = NtAE[:] QNrh.remove(Tifd) while len(QNrh) > 0: appj = tuKI.choice(QNrh) GLr8.append(appj) Tifd = GLr8[-1] QNrh.remove(appj) GLr8.append(GLr8[0]) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H81X(pNZh):\n\n def NIxG(Q6kx):\n mC4V = []\n if Q6kx.edges:\n D70y = tuKI.sample(Q6kx.edges, 1)\n mC4V.append(D70y[0])\n for a1PO in D70y[0].tail:\n mC4V += NIxG(a1PO)\n return mC4V\n mC4V = NIxG(pNZh.root)\n return JbdU.Path(pNZh, ...
[ "0.6741921", "0.6345315", "0.62290466", "0.61830705", "0.617985", "0.6159593", "0.60976326", "0.6086184", "0.6031825", "0.603116", "0.60096794", "0.5980972", "0.5980378", "0.59766984", "0.59478974", "0.592722", "0.59066004", "0.5874687", "0.5874232", "0.5824378", "0.58179504"...
0.5581805
46
Gets the compensated pressure in pascal.
def fI4t(YKHO): Eawd = 0 ckxV = 0 ocob = 0 M_XA = 0 bk7h = 0 mSn1 = 0 IP77 = 0 YGIc = 0 XP5J = 0 G5wY = 0 V74h = 0 Eawd = YKHO.__readRawTemp() ckxV = YKHO.__readRawPressure() mSn1 = (Eawd - YKHO.__cal_AC6) * YKHO.__cal_AC5 >> 15 IP77 = (YKHO.__cal_MC << 11) / ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CJ2p(YKHO):\n Yh3e = YKHO.data.adc_p\n Z9rn = YKHO.calibration\n if YKHO.t_fine is None:\n YKHO.temperature\n CIn9 = YKHO.t_fine - 128000\n AhCl = CIn9 * CIn9 * Z9rn.P6\n AhCl = AhCl + (CIn9 * Z9rn.P5 << 17)\n AhCl = AhCl + (Z9rn.P4 << 35)\n CIn9 = (CIn9 * CIn9 * Z9rn.P3 >> 8) + ...
[ "0.79603654", "0.78093565", "0.7723485", "0.76228684", "0.7580142", "0.7523324", "0.73955756", "0.73745614", "0.7368138", "0.730021", "0.72712004", "0.72712004", "0.72712004", "0.72712004", "0.7267737", "0.72340757", "0.7047499", "0.70428866", "0.70104384", "0.6974495", "0.69...
0.6818696
25
Generates a random password
def ikbr(YKHO, u54L: int=32, SuM2: str=''.join(mo1a), aBkf: PasswordValidator=XHwM()) -> str: if u54L <= 0: return '' D9DS = ''.join(set(SuM2)) while True: jTXt = ''.join((FXSn.choice(D9DS) for bGrB in range(u54L))) if aBkf.validate(jTXt): return jTXt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ikbr():\n return ''.join((jxbx().choice(tcl1 + BHGE) for bGrB in range(8)))", "def ENfd(len=12):\n import random, string\n rmc3 = string.ascii_letters + string.digits\n QTBn = random.getstate()\n random.seed()\n Aofo = ''.join((random.choice(rmc3) for YRbF in range(len)))\n random.setsta...
[ "0.8797094", "0.87887293", "0.87391394", "0.8646009", "0.8574204", "0.8557647", "0.8532667", "0.8531703", "0.85249746", "0.8500776", "0.84023327", "0.83986104", "0.8388221", "0.83383995", "0.8290249", "0.826117", "0.8247649", "0.8247384", "0.82425135", "0.8166628", "0.8162387...
0.0
-1
Wraps a request handler with CORS headers checking.
def IKQT(eHNT): @zaGL(eHNT) def XIpm(*qIxc, **B2fa): YKHO = qIxc[0] QePW = qIxc[1] hLRM = QePW.getHeader('Origin') if hLRM: if '*' in YKHO.config['cors_origins']: QePW.setHeader('Access-Control-Allow-Origin', '*') elif hLRM in YKHO.config[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n6mA(Ym16):\n\n @zaGL(Ym16)\n def h3Xc(*qIxc, **B2fa):\n _hkX = Yxsy(Ym16(*qIxc, **B2fa))\n _hkX.headers['Access-Control-Allow-Origin'] = '*'\n return _hkX\n return h3Xc", "def X79O(DCgT):\n\n @xBlr.wraps(DCgT)\n def h3Xc(tvqc, QpfX):\n _hkX = DCgT(tvqc, QpfX)\n ...
[ "0.7857578", "0.7535518", "0.7184774", "0.7099768", "0.70742184", "0.70215905", "0.69021696", "0.67261803", "0.6688072", "0.6686782", "0.6674567", "0.6665751", "0.6663847", "0.66427904", "0.657754", "0.65277505", "0.64483947", "0.6424964", "0.633609", "0.6304687", "0.6303827"...
0.7061717
5
Returns the Rasa server's version
def DpZH(YKHO, QePW): QePW.setHeader('Content-Type', 'application/json') return HjBM.dumps({'version': BtDU})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KZVb(YKHO):\n _hkX = G4JS.get(TDhU(YKHO.baseurl, '/'), auth=YKHO.auth)\n V6me = YKHO._json_loads(_hkX.text)\n return V6me['version']", "def kaPv(YKHO):\n VsNR = None\n try:\n Ylbp = YKHO.show_server_variable('VERSION')\n if Ylbp:\n VsNR = Ylbp[0][1]\n except:\n ...
[ "0.8392469", "0.7942587", "0.79038614", "0.7889684", "0.7887921", "0.78808445", "0.78574175", "0.78574175", "0.7833961", "0.7756215", "0.77235895", "0.7713624", "0.7708784", "0.77072805", "0.77072805", "0.7700524", "0.76922303", "0.7681755", "0.76597995", "0.76364607", "0.763...
0.0
-1
Finding the index of an item given a list containing it
def zwMr(BWXx, zOYc): _0VL = [] or8S = -1 while True: try: or8S = zOYc.index(BWXx, or8S + 1) _0VL.append(or8S) except ValueError: break return _0VL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn7Z(ZfUD, d0Sw):\n YRbF = 0\n if ZfUD not in d0Sw:\n return None\n for YEnM in d0Sw:\n if YEnM == ZfUD:\n return YRbF\n else:\n YRbF += 1", "def TrX4(list, H5ew):\n for YRbF, ZfUD in enumerate(list):\n if ZfUD == H5ew:\n return YRbF\n ...
[ "0.82044834", "0.79788804", "0.7923086", "0.77937806", "0.77648735", "0.7650964", "0.76419353", "0.76315415", "0.7540645", "0.7531342", "0.7468186", "0.7465919", "0.74613404", "0.7449254", "0.7435552", "0.7435285", "0.74247116", "0.738345", "0.7381037", "0.7360932", "0.735103...
0.0
-1
Converts the given relation name to a canonically corresponding function name.
def _YQC(koMu: str) -> str: assert T9yY(koMu) return koMu[0].lower() + koMu[1:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _YQC(koMu: str) -> str:\n assert T9yY(koMu)\n return koMu[0].lower() + koMu[1:]", "def Bxzn(m2Zb: str) -> str:\n assert rVKq(m2Zb)\n return m2Zb[0].upper() + m2Zb[1:]", "def Bxzn(m2Zb: str) -> str:\n assert rVKq(m2Zb)\n return m2Zb[0].upper() + m2Zb[1:]", "def Bxzn(m2Zb: str) -> str:\n ...
[ "0.85806", "0.75644225", "0.75644225", "0.75469816", "0.64636743", "0.6328384", "0.6223557", "0.6207079", "0.60774505", "0.5923996", "0.58770216", "0.58695287", "0.585582", "0.5814516", "0.58045197", "0.5761433", "0.57114905", "0.56699294", "0.56699294", "0.56574917", "0.5616...
0.8587297
1
Returns value corresponding to key in the hash table.
def OP2O(YKHO, H5ew): if not isinstance(H5ew, str): raise TypeError('Key values must be of type string') sAxw = YKHO.hash(H5ew) if YKHO.table[sAxw] is not None and YKHO.table[sAxw][0] != H5ew: exwG = 1 YRbF = (sAxw + exwG ** 2) % len(YKHO.table) while YRbF != sAxw: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO, H5ew):\n if not YKHO.in_table(H5ew):\n return None\n return YKHO.hash_table[YKHO.get_index(H5ew)][1]", "def NMoC(YKHO, H5ew):\n if YKHO.is_key(H5ew):\n YRbF = YKHO.hash_fun(H5ew)\n return YKHO.values[YRbF]", "def NMoC(YKHO, H5ew):\n rdnZ = YKHO.table[YKHO.hash(H5...
[ "0.86226404", "0.8367757", "0.82969576", "0.8089705", "0.8006591", "0.7928027", "0.78812504", "0.77886313", "0.7753315", "0.77506816", "0.7737461", "0.7737027", "0.7732847", "0.7728777", "0.77267665", "0.76956296", "0.76851326", "0.76396614", "0.762034", "0.76163507", "0.7584...
0.7111107
57
Sets momentum of all batch norm layers of model
def mEba(C3ST, H0zq=0.05): for gEmA in C3ST.modules(): if isinstance(gEmA, U78l.BatchNorm2d) or isinstance(gEmA, U78l.BatchNorm1d): gEmA.momentum = H0zq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i4YB(C3ST, H0zq=1):\n for yR_P in C3ST.modules():\n if isinstance(yR_P, ht2j.nn.modules.batchnorm._BatchNorm):\n yR_P.momentum = H0zq", "def xZzU(C3ST, TSMu: bool, NgSo: float=0.001):\n for r8hN in C3ST.modules():\n if isinstance(r8hN, U78l.BatchNorm2d):\n r8hN.momen...
[ "0.7182336", "0.7028974", "0.6978492", "0.68412673", "0.66852146", "0.6489455", "0.6399589", "0.6362753", "0.6334163", "0.62820214", "0.62788135", "0.62541956", "0.62519085", "0.623767", "0.6236713", "0.62294257", "0.6223354", "0.6206317", "0.62008995", "0.6188381", "0.618037...
0.73760736
0
Appends an unordered list to a markdown.
def L2Il(l5Ny, d2DU): l5Ny += '\n' for BDwY in d2DU: l5Ny += '- ' + BDwY + '\n' l5Ny += '\n' return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CPAz(DumB):\n return '\\n'.join(['- {}'.format(WKvO) for WKvO in DumB])", "def cQLt(YKHO, TZ9E, kGys, xAU6, _AKB, QpfX):\n if not kGys.startswith('<li>'):\n kGys = '<li>{}'.format(kGys)\n return '<ul>{}</ul>'.format(kGys)", "def list(YKHO, TBsA, aHEA=True):\n TZ9E = 'ul'\n if aHEA:\n ...
[ "0.69520634", "0.68864", "0.68610257", "0.68063396", "0.67276114", "0.6653708", "0.66018045", "0.64545715", "0.6419861", "0.634626", "0.6342382", "0.62229145", "0.6184005", "0.6182987", "0.6073302", "0.60124224", "0.60080206", "0.594616", "0.5940517", "0.5873067", "0.586621",...
0.72615606
0