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
True if cube response has weighted count data.
def WWUg(YKHO) -> bool: return YKHO.weighted_counts is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WWUg(YKHO) -> bool:\n return YKHO._cubes[0].has_weighted_counts", "def L3Eo(YKHO) -> 'Optional[\"_WeightedCountMeasure\"]':\n L3Eo = c8VQ(YKHO._cube_dict, YKHO._all_dimensions, YKHO._cube_idx_arg)\n return L3Eo if L3Eo.raw_cube_array is not None else None", "def L3Eo(YKHO) -> h8nf[oyIN.ndarray]:\n...
[ "0.7869495", "0.65562356", "0.65090746", "0.6344224", "0.6329177", "0.6329177", "0.6292532", "0.6280515", "0.6280515", "0.62439656", "0.62382907", "0.6076463", "0.60426265", "0.6030578", "0.5945088", "0.59154946", "0.59032494", "0.5887664", "0.58689684", "0.58512133", "0.5813...
0.747367
1
Optional float64 ndarray of the cube_stddev if the measure exists.
def z2bo(YKHO) -> h8nf[oyIN.ndarray]: if YKHO._measures.stddev is None: return None return YKHO._measures.stddev.raw_cube_array[YKHO._valid_idxs].astype(oyIN.float64)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z2bo(YKHO) -> 'Optional[\"_StdDevMeasure\"]':\n z2bo = gqOG(YKHO._cube_dict, YKHO._all_dimensions, YKHO._cube_idx_arg)\n return None if z2bo.raw_cube_array is None else z2bo", "def tB1J(YKHO):\n try:\n return epAf.sqrt(YKHO.variance)\n except:\n return 0", "def ee6l(YKHO, WmM4=Non...
[ "0.80303574", "0.71077675", "0.701864", "0.68741405", "0.6742955", "0.67415947", "0.6736647", "0.6727279", "0.6699588", "0.6657665", "0.66224843", "0.6553755", "0.6532634", "0.65058994", "0.6459313", "0.64577395", "0.6367276", "0.6339723", "0.6336166", "0.629042", "0.62894857...
0.84862506
0
Optional _CovarianceMeasure object providing access to covariance values. Will be None if covariance is not available int the cube response.
def _IBo(YKHO) -> 'Optional["_CovarianceMeasure"]': _IBo = KX5t(YKHO._cube_dict, YKHO._all_dimensions, YKHO._cube_idx_arg) return None if _IBo.raw_cube_array is None else _IBo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _IBo(YKHO) -> h8nf[oyIN.ndarray]:\n if YKHO._measures.covariance is None:\n return None\n return YKHO._measures.covariance.raw_cube_array[YKHO._valid_idxs].astype(oyIN.float64)", "def _IBo(YKHO):\n return YKHO._covariance", "def _IBo(YKHO):\n return YKHO._covariance", "def bibf(YKHO):\...
[ "0.83178604", "0.7419086", "0.7419086", "0.7334464", "0.72919434", "0.7021961", "0.7012078", "0.6991487", "0.69798017", "0.6927427", "0.68596727", "0.67311233", "0.6697366", "0.6697317", "0.6662171", "0.6623129", "0.6505232", "0.6495271", "0.6433895", "0.64227366", "0.6417638...
0.87178075
0
_StdDevMeasure object providing access to cube stddev values. None when the cube response does not contain a stddev measure.
def z2bo(YKHO) -> 'Optional["_StdDevMeasure"]': z2bo = gqOG(YKHO._cube_dict, YKHO._all_dimensions, YKHO._cube_idx_arg) return None if z2bo.raw_cube_array is None else z2bo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z2bo(YKHO) -> h8nf[oyIN.ndarray]:\n if YKHO._measures.stddev is None:\n return None\n return YKHO._measures.stddev.raw_cube_array[YKHO._valid_idxs].astype(oyIN.float64)", "def TwBD(YKHO):\n \"\"\"from literature, this feature is OK\"\"\"\n return rLdf.Series(oyIN.std(YKHO.detrended[YKHO.me...
[ "0.85420084", "0.7794899", "0.77765584", "0.7754647", "0.7677216", "0.7638571", "0.7589469", "0.75468314", "0.7519623", "0.7468755", "0.74385107", "0.7413762", "0.7413762", "0.7407778", "0.737391", "0.737391", "0.7358209", "0.70965046", "0.70725906", "0.7066338", "0.70601946"...
0.8840973
0
_SumMeasure object providing access to cube sum values. None when the cube response does not contain a sum measure.
def RfIB(YKHO) -> 'Optional["_SumMeasure"]': RfIB = QpWh(YKHO._cube_dict, YKHO._all_dimensions, YKHO._cube_idx_arg) return None if RfIB.raw_cube_array is None else RfIB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RfIB(YKHO) -> h8nf[oyIN.ndarray]:\n if YKHO._measures.sums is None:\n return None\n return YKHO._measures.sums.raw_cube_array[YKHO._valid_idxs].astype(oyIN.float64)", "def rJIS(YKHO) -> h8nf[oyIN.ndarray]:\n pio6 = YKHO._cube_dict['result'].get('measures', {}).get('sum')\n if pio6 is None:...
[ "0.7487377", "0.6578596", "0.6482796", "0.6353473", "0.63411826", "0.6312925", "0.62852454", "0.6272419", "0.6177917", "0.6169226", "0.6166407", "0.61468726", "0.61458206", "0.59865594", "0.59489125", "0.5940231", "0.59368974", "0.59368974", "0.59110045", "0.59042096", "0.584...
0.82383895
0
Optional _UnweightedValidCountsMeasure object for this cube. Can be None when cube doesn't have unweighted valid counts.
def q2db(YKHO) -> 'Optional["_UnweightedValidCountsMeasure"]': CS3i = Rvva(YKHO._cube_dict, YKHO._all_dimensions, YKHO._cube_idx_arg) return CS3i if CS3i.raw_cube_array is not None else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6_A(YKHO) -> 'Optional[\"_WeightedValidCountsMeasure\"]':\n CS3i = vJ2F(YKHO._cube_dict, YKHO._all_dimensions, YKHO._cube_idx_arg)\n return CS3i if CS3i.raw_cube_array is not None else None", "def q2db(YKHO) -> h8nf[oyIN.ndarray]:\n if YKHO._measures.unweighted_valid_counts is None:\n return...
[ "0.81140614", "0.8027469", "0.7469814", "0.7409536", "0.732678", "0.70559263", "0.67686033", "0.6660465", "0.6634909", "0.65530163", "0.6527782", "0.65214026", "0.6471914", "0.63372606", "0.59899575", "0.5946367", "0.58738405", "0.5386345", "0.53545886", "0.5343042", "0.52712...
0.9005863
0
Optional _WeightedValidCountsMeasure object for this cube. Can be None when cube doesn't have weighted valid counts.
def U6_A(YKHO) -> 'Optional["_WeightedValidCountsMeasure"]': CS3i = vJ2F(YKHO._cube_dict, YKHO._all_dimensions, YKHO._cube_idx_arg) return CS3i if CS3i.raw_cube_array is not None else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q2db(YKHO) -> 'Optional[\"_UnweightedValidCountsMeasure\"]':\n CS3i = Rvva(YKHO._cube_dict, YKHO._all_dimensions, YKHO._cube_idx_arg)\n return CS3i if CS3i.raw_cube_array is not None else None", "def U6_A(YKHO) -> h8nf[oyIN.ndarray]:\n if YKHO._measures.weighted_valid_counts is None:\n return...
[ "0.84917814", "0.80263317", "0.7924284", "0.76444733", "0.76296955", "0.7229318", "0.69315624", "0.6580618", "0.6318927", "0.62128246", "0.6201951", "0.61564475", "0.61068934", "0.6032", "0.5807099", "0.5565609", "0.54063416", "0.5288006", "0.52512103", "0.5247302", "0.519268...
0.8927182
0
Optional 1D np.ndarray of np.float64 cov values as found in cube response. Covariance data may include missing items represented by a dict like
def rJIS(YKHO) -> h8nf[oyIN.ndarray]: if YKHO._measure_payload is None: return None return oyIN.array(tuple((oyIN.nan if type(WKvO) is dict else WKvO for WKvO in YKHO._measure_payload['data'])), dtype=oyIN.float64).flatten()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _IBo(YKHO) -> h8nf[oyIN.ndarray]:\n if YKHO._measures.covariance is None:\n return None\n return YKHO._measures.covariance.raw_cube_array[YKHO._valid_idxs].astype(oyIN.float64)", "def _IBo(YKHO) -> 'Optional[\"_CovarianceMeasure\"]':\n _IBo = KX5t(YKHO._cube_dict, YKHO._all_dimensions, YKHO._...
[ "0.7476877", "0.695035", "0.6604582", "0.6579529", "0.6522992", "0.6518768", "0.6490475", "0.6486472", "0.6484951", "0.64801", "0.6403683", "0.63108975", "0.6264548", "0.62639236", "0.6253159", "0.6222473", "0.6221338", "0.62109315", "0.6209053", "0.62078536", "0.6192226", ...
0.0
-1
tuple(int) representing the shape of the covariance.
def TdZx(YKHO) -> AzJI[int]: return YKHO._all_dimensions.shape + (len(YKHO._numeric_measure_subvariables),)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ROpF(YKHO):\n return tuple(YKHO.__shape)", "def ROpF(YKHO) -> x1iM[int]:\n return [3]", "def ROpF(YKHO) -> tuple:\n raise NotImplementedError", "def ROpF(YKHO) -> AzJI[int, ...]:\n DbyF = [YKHO[YRbF] for YRbF in YKHO.dimension_order]\n return tuple((Csk6.shape for Csk6 in DbyF))", "def R...
[ "0.7414359", "0.7385141", "0.733438", "0.7253722", "0.712281", "0.7062825", "0.70528793", "0.70087934", "0.70040905", "0.6969942", "0.69185185", "0.69018084", "0.68926305", "0.6888881", "0.6847377", "0.68321556", "0.6822101", "0.6818819", "0.67866397", "0.6769206", "0.6736775...
0.66295016
28
Optional 1D float64 ndarray of stddev values as found in cube response. StdDev data may include missing items represented by a dict like
def rJIS(YKHO) -> h8nf[oyIN.ndarray]: pio6 = YKHO._cube_dict['result'].get('measures', {}).get('stddev') if pio6 is None: return None return oyIN.array(tuple((oyIN.nan if type(WKvO) is dict else WKvO for WKvO in pio6['data'])), dtype=oyIN.float64).flatten()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z2bo(YKHO) -> h8nf[oyIN.ndarray]:\n if YKHO._measures.stddev is None:\n return None\n return YKHO._measures.stddev.raw_cube_array[YKHO._valid_idxs].astype(oyIN.float64)", "def Wown(YKHO, nPrm):\n mA5U = {}\n sjXb = [WKvO for WKvO in nPrm.keys() if WKvO != 'time']\n u54L = len(nPrm[sjXb[...
[ "0.8005526", "0.752011", "0.7472", "0.74462277", "0.74223906", "0.7311073", "0.73071545", "0.72601575", "0.7253744", "0.72521466", "0.72483045", "0.7154915", "0.7130907", "0.7109138", "0.7076885", "0.7070769", "0.70650136", "0.70575136", "0.70309657", "0.70127094", "0.6980457...
0.7329621
5
Update the model instance from data in a YAML string.
def ZfGy(YKHO, WbAn, wiRD=None, OKX8=True, uHHx=False, kY6D=None, **B2fa): OXMy = JVxb(WbAn, deserialize_function=wiRD, **B2fa) if isinstance(OXMy, list): OXMy = OXMy[0] nPrm = YKHO._parse_dict(OXMy, 'yaml', error_on_extra_keys=OKX8, drop_extra_keys=uHHx, config_set=kY6D) for H5ew in nPrm: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n KAOR.description = vGfb.get('description', KAOR.description)\n KAOR.points = vGfb.get('points', KAOR.points)\n KAOR.priority = vGfb.get('priority', KAOR.priority)\n KAOR.status = vGfb.get('status', KAOR.status)\n KAOR.repe...
[ "0.64470196", "0.62983394", "0.625729", "0.614587", "0.614587", "0.6139682", "0.61260796", "0.6115364", "0.6110913", "0.61104834", "0.60967535", "0.60965514", "0.606645", "0.606645", "0.60652137", "0.6055557", "0.605285", "0.6040792", "0.5996892", "0.5992362", "0.5951091", ...
0.6480149
0
Create a new model instance from data in YAML.
def DoeR(Emd4, WbAn, wiRD=None, OKX8=True, uHHx=False, kY6D=None, **B2fa): OXMy = JVxb(WbAn, deserialize_function=wiRD, **B2fa) if isinstance(OXMy, list): OXMy = OXMy[0] nPrm = Emd4._parse_dict(OXMy, 'yaml', error_on_extra_keys=OKX8, drop_extra_keys=uHHx, config_set=kY6D) return Emd4(**nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OXMy(Emd4, eJb6):\n p4_k = Emd4.get_empty_instance()\n p4_k.process(eJb6)\n return p4_k", "def OXMy(Ol8d, nPrm):\n LpOz(Ol8d, nPrm, QBYw)", "def OXMy(Emd4, DWkG, Q6kx):\n dKZ5 = DWkG.construct_mapping(Q6kx, deep=True)\n print('Constructing', Emd4)\n return Emd4(**dKZ5)", "def OXMy(Em...
[ "0.7369923", "0.6914864", "0.6912803", "0.6891746", "0.6778435", "0.6712346", "0.670541", "0.670116", "0.66437495", "0.6602242", "0.6571955", "0.6554993", "0.65527457", "0.65476894", "0.65256035", "0.6507937", "0.6438222", "0.63849396", "0.6335813", "0.63326603", "0.6321683",...
0.6383411
18
Builds a pokemon from the PokeAPI using the name. Raises exception if the pokemon does not exist there.
def FIMM(YKHO, mWFP): tYeo = G4JS.get('https://pokeapi.co/api/v2/pokemon/{}/'.format(mWFP)) if tYeo.status_code == 404: raise ValueError('Pokemon is bogus. Try a real one next time.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q9bF(yPI4: dict):\n mWFP = yPI4['name']\n hbFX = yPI4['id']\n H2v2 = yPI4['height']\n upAO = yPI4['weight']\n eQSh = [(QmN4['stat']['name'], QmN4['base_stat']) for QmN4 in yPI4['stats']]\n SnBA = [kN9s['type']['name'] for kN9s in yPI4['types']]\n pNRJ = [x2cn['ability']['name'] for x2cn in...
[ "0.6920562", "0.6890064", "0.6719064", "0.66454613", "0.65781134", "0.65699995", "0.6375113", "0.63353884", "0.62105876", "0.60496354", "0.5866314", "0.5782791", "0.5767807", "0.57670015", "0.575635", "0.57413536", "0.56047887", "0.55974776", "0.5559709", "0.5555697", "0.5469...
0.68451595
2
Return magnitude of self.
def SZJh(YKHO): return YKHO.value.m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(YKHO):\n YXbZ = YKHO._get_magnitude()\n return YXbZ.mag", "def YXbZ(YKHO) -> float:\n return qe4Y.get(YKHO, 'magnitude')", "def YXbZ(YKHO) -> float:\n return epAf.sqrt(YKHO._x ** 2 + YKHO._y ** 2)", "def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x * YKHO.x + YKHO.y * YKHO.y)", "def YXbZ(Y...
[ "0.88252383", "0.87403804", "0.8698624", "0.8673963", "0.866047", "0.86545736", "0.8642231", "0.8624055", "0.86153877", "0.8612747", "0.8596803", "0.858644", "0.8541047", "0.8498186", "0.8462837", "0.8456844", "0.845332", "0.845332", "0.8406226", "0.834875", "0.83469665", "...
0.0
-1
Get the 0based variable index of self.
def or8S(YKHO): Oefj = g760.OrderedDict(((bxOs(YKHO.model._meta.variables[hkS8].name), [YKHO.model._meta.variables[hkS8], 0]) for hkS8 in sorted(filter(lambda aoD7: isinstance(YKHO.model._meta.variables[aoD7], YKHO.__class__) and YKHO.model._meta.variables[aoD7]._iscyclebase is False, YKHO.model._meta.variables), k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ilwo(YKHO, SRYB):\n return YKHO._orderedVars.index(SRYB)", "def svYP(YKHO, mWFP):\n for YRbF, Ty9i in enumerate(YKHO):\n if Ty9i.name == mWFP:\n return YRbF\n raise KeyError('{0} not present.'.format(mWFP))", "def xT4T(YKHO, mWFP):\n mWFP = YKHO.data_aliases.get(mWFP, mWFP)\n ...
[ "0.7468476", "0.70772797", "0.7047537", "0.7003533", "0.69102454", "0.6891065", "0.68756473", "0.6836857", "0.677251", "0.6753294", "0.6753294", "0.6752958", "0.6735707", "0.6735707", "0.6735707", "0.6691415", "0.6680127", "0.66679144", "0.6602265", "0.65650964", "0.6560176",...
0.7089174
1
Get the 1based variable index of self such as it appears in Trnsys.
def fGoK(YKHO): return YKHO.idx + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def or8S(YKHO):\n Oefj = g760.OrderedDict(((bxOs(YKHO.model._meta.variables[hkS8].name), [YKHO.model._meta.variables[hkS8], 0]) for hkS8 in sorted(filter(lambda aoD7: isinstance(YKHO.model._meta.variables[aoD7], YKHO.__class__) and YKHO.model._meta.variables[aoD7]._iscyclebase is False, YKHO.model._meta.variabl...
[ "0.74368477", "0.7382548", "0.7197755", "0.71444744", "0.71188676", "0.70814556", "0.7056565", "0.6960616", "0.69292116", "0.69035715", "0.68487686", "0.682604", "0.6771829", "0.67579085", "0.675659", "0.675659", "0.675659", "0.6749817", "0.6749817", "0.6746617", "0.6744976",...
0.7064331
6
Search for the first node that matches the searched key Takes O(n) > linear time
def TgwQ(YKHO, H5ew): jvSB = YKHO.head while jvSB: if jvSB.data == H5ew: return jvSB else: jvSB = jvSB.next_node return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgwQ(Q6kx, H5ew):\n while Q6kx and Q6kx.data != H5ew:\n Q6kx = Q6kx.nxt\n return Q6kx", "def TgwQ(YKHO, H5ew):\n THkp = Q6kx = YKHO\n while Q6kx is not None:\n if Q6kx.key == H5ew:\n return Q6kx\n THkp, Q6kx = (Q6kx, Q6kx.child(H5ew))\n return THkp", "def neBz...
[ "0.80756056", "0.80356026", "0.7928897", "0.7897856", "0.7827153", "0.7809223", "0.7775767", "0.7677195", "0.76368535", "0.76143086", "0.76074487", "0.7581653", "0.757205", "0.7544244", "0.75067043", "0.7454825", "0.7437703", "0.7436583", "0.74287564", "0.739902", "0.7361228"...
0.7981902
2
returns a string representation of the list Takes O(n) time > Linear time
def wHJl(YKHO): Ziit = [] jvSB = YKHO.head while jvSB is not None: if jvSB is YKHO.head: Ziit.append(f'[Head: {jvSB.data}]') elif jvSB.next_node is None: Ziit.append(f'[Tail: {jvSB.data}]') else: Ziit.append(f'[{jvSB.data}]') jvSB = jvSB.ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(yv6U):\n return '[' + K9dm(yv6U.head) + ']'", "def Iimo(x29X):\n return '[' + ' '.join([str(WKvO) for WKvO in x29X]) + ']'", "def Sa1R(yv6U):\n Ylbp = ''\n for G1Hx in yv6U:\n Ylbp += ' ' + G1Hx\n return Ylbp", "def D6RL(list):\n str = ''\n for U6D_ in list:\n str ...
[ "0.75517106", "0.73764443", "0.72753906", "0.725193", "0.7229127", "0.72045296", "0.7170542", "0.71622825", "0.7145064", "0.7137216", "0.70798695", "0.70642567", "0.705552", "0.70492953", "0.70480627", "0.70436484", "0.7025155", "0.7002166", "0.6979847", "0.69734484", "0.6973...
0.0
-1
Return k8s CephFS volume template.
def w0CP(): return {'name': 'reana-shared-volume', 'persistentVolumeClaim': {'claimName': 'manila-cephfs-pvc'}, 'readOnly': 'false'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yg6X(YKHO, qQaV, mWFP, b7hB, pmON):\n XAEA = GXnK.Element('volume')\n _Twy = GXnK.SubElement(XAEA, 'name')\n _Twy.text = mWFP\n RqED = GXnK.SubElement(XAEA, 'capacity')\n RqED.text = str(b7hB)\n vVQ9 = GXnK.SubElement(XAEA, 'target')\n v4wC = GXnK.SubElement(vVQ9, 'path')\n v4wC.text = ...
[ "0.6658", "0.62223923", "0.6103464", "0.6002736", "0.5973249", "0.59498113", "0.58936113", "0.5854606", "0.5831601", "0.5824088", "0.5814831", "0.5811069", "0.5728897", "0.5684154", "0.5608075", "0.5604344", "0.55912936", "0.55912936", "0.558802", "0.557795", "0.55492276", ...
0.64622486
1
Generate a stream of tuples with two datetimes that run from the start_date to the end_date.
def sJUt(kepv: datetime.datetime, KhBf: datetime.datetime): r6Z1 = kepv while r6Z1 < KhBf: i8km = r6Z1.replace(hour=23, minute=59, second=59) yield (r6Z1, i8km) r6Z1 = i8km + qcWV.timedelta(seconds=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RKZp(YKHO):\n kepv = _c1T(2020, 1, 1)\n KhBf = _c1T(2020, 2, 29)\n YPaw = 3\n GgZM = TmOq.date_range_pair(kepv, KhBf, step=YPaw)\n kepv = qcWV(kepv.year, kepv.month, kepv.day)\n KhBf = qcWV(KhBf.year, KhBf.month, KhBf.day)\n YKHO.assertIsInstance(GgZM, SnBA.GeneratorType)\n vbB4, n9ni =...
[ "0.72525465", "0.7154037", "0.7050058", "0.68854946", "0.6839442", "0.6816059", "0.6813471", "0.67940974", "0.67940974", "0.6785441", "0.67449707", "0.67369676", "0.67290664", "0.671354", "0.6707472", "0.67072266", "0.66899", "0.6668285", "0.6667711", "0.66608244", "0.6615410...
0.6870954
4
Return the number of holidays between two given dates. Any dates later than the current date are ignored, as they represent booked annual leaves for the future.
def VcMI(Sm0u: any, yKcO: datetime.datetime, Os4s: datetime.datetime) -> float: Aofo = 0 for CjKC in Sm0u: dMDr = qcWV.datetime.strptime(CjKC[0], '%Y-%m-%d') if yKcO <= dMDr <= Os4s: Aofo += float(CjKC[1]) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ooE(YKHO, yKcO: datetime.datetime, Os4s: datetime.datetime):\n Aofo = 0\n if YKHO.records is not None:\n for AIu6 in YKHO.records:\n if isinstance(AIu6, mNJz):\n print(f'holiday found! >> {AIu6}')\n Aofo += 1\n return Aofo", "def qfAF(Ilc0, w0do, fSGq...
[ "0.69493425", "0.657742", "0.6565303", "0.6553353", "0.64276534", "0.63755417", "0.63589376", "0.633699", "0.63245994", "0.6264032", "0.62556535", "0.6241363", "0.6221499", "0.6162098", "0.61588305", "0.61544603", "0.6143009", "0.6119146", "0.61143404", "0.6101627", "0.609670...
0.7008641
0
Return a formated string with the time delta. Remove the microseconds from the time delta and only show the required time units.
def bfCl(RA_F: datetime.timedelta) -> str: Sm0u = RA_F.days lcOE = RA_F.seconds Wave, K0A_ = divmod(lcOE, 3600) O66n, C6wh = divmod(K0A_, 60) IMAx = () if Sm0u: IMAx += (f'{Sm0u}d',) if Wave: IMAx += (f'{Wave}h',) if O66n: IMAx += (f'{O66n}min',) Aofo = ', '.j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bjUD(UqGG, B1Wx='m'):\n Csk6 = U8Lr()\n Csk6['days'] = UqGG.days\n Csk6['hours'], wXAI = divmod(UqGG.seconds, 3600)\n if B1Wx == 'm' or B1Wx == 's':\n Csk6['minutes'], C6wh = divmod(wXAI, 60)\n if B1Wx == 's':\n Csk6['seconds'] = C6wh\n\n def hUZ1(T21g, WbTE):\n i...
[ "0.74759245", "0.74403167", "0.7423286", "0.7356121", "0.733166", "0.7275716", "0.72702473", "0.7088785", "0.7044734", "0.6984667", "0.6972217", "0.69518644", "0.6949902", "0.6806001", "0.67608917", "0.67518634", "0.67517394", "0.6751359", "0.67397165", "0.67281884", "0.67162...
0.6113596
91
returns number of history to be used stopping criterion for gradient descent. Returns int number of history to be used stopping criterion for gradient descent.
def hr1q(YKHO) -> int: return YKHO._num_history_stopping_criterion_gradient_descent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bETM(YKHO):\n pass", "def Zp_0(YKHO):\n return len(YKHO.measurement_history)", "def oBzI(YKHO):\n return YKHO._history_size", "def AIZ9(YKHO):\n return YKHO._environment.num_steps()", "def AIZ9(YKHO) -> int:\n return YKHO._num_steps", "def AKcf(YKHO):\n return YKHO.horizon + 1", "...
[ "0.6451292", "0.63733333", "0.63604593", "0.63581246", "0.6290145", "0.62755334", "0.6251135", "0.62445354", "0.61961293", "0.6189343", "0.61841387", "0.61576", "0.61541325", "0.61383575", "0.61370003", "0.6110152", "0.6110152", "0.60810655", "0.6078173", "0.60645676", "0.600...
0.8545162
0
True if address is contained in memory range
def ugjp(YKHO, rRzo: int) -> bool: return rRzo >= YKHO.start and rRzo < YKHO.end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, UTX6):\n return YKHO.BaseAddress <= UTX6 < YKHO.BaseAddress + YKHO.RegionSize", "def t5VV(YKHO, rRzo):\n if YKHO.segments is None or not YKHO.segments:\n if YKHO.size:\n return rRzo < YKHO.size\n return True\n for hTWD in YKHO.segments:\n if hTWD.start <= r...
[ "0.7908502", "0.7684193", "0.7591679", "0.74111944", "0.7398458", "0.73409057", "0.7206839", "0.69865733", "0.68643653", "0.6841033", "0.6829521", "0.6746285", "0.67216146", "0.6699189", "0.669689", "0.66667587", "0.66452724", "0.65725756", "0.6560614", "0.6551853", "0.654657...
0.7744435
1
The name of the input and output streams in the rawpipe layer.
def kgZu(gCuF, GikI, QePW): gEmA = [vC9B for vC9B in GikI.layers if vC9B.name == gCuF.layer_name][0] return gEmA.outputs.get(QePW.param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kgZu(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'stream_name')", "def kgZu(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'stream_name')", "def kgZu(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'stream_name')", "def kgZu(YKHO) -> str:\n ...", "def mWFP(YKHO) -> str:\n retu...
[ "0.68009555", "0.68009555", "0.68009555", "0.6652766", "0.6388796", "0.6302834", "0.62825143", "0.6092184", "0.6018324", "0.59887266", "0.5980533", "0.5970054", "0.5970054", "0.59632576", "0.5884049", "0.588061", "0.58739036", "0.58699447", "0.58385116", "0.5836967", "0.58270...
0.64702743
4
Test whether inputs of 2Dimages (i.e. (H, W) instead of (H, W, C)) work.
def VQIt(): sK3I() jy5j = oyIN.array([[0, 0, 1, 1], [0, 0, 1, 1], [0, 1, 1, 1]], dtype=oyIN.uint8) KuWQ = oyIN.array([[0, 0, 1, 1], [0, 1, 1, 1], [0, 1, 0, 0]], dtype=oyIN.uint8) LrHJ = oyIN.array([[1, 1, 0, 0], [1, 1, 0, 0], [1, 1, 1, 0]], dtype=oyIN.uint8) wS1I = oyIN.array([[1, 1, 0, 0], [1, 1, 1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETKF(WKvO) -> bool:\n return len(WKvO.shape) == 3", "def YjVk(jbLe, Hyro, yzQ0):\n assert list(jbLe.size())[2:] == list(Hyro.size())[2:], 'spatial dim mismatch'\n assert list(jbLe.size())[2:] == list(yzQ0.size())[2:], 'spatial dim mismatch'\n if Hyro.size(0) != 1:\n assert jbLe.size(0) == ...
[ "0.724598", "0.7017716", "0.69701403", "0.687222", "0.680705", "0.6722444", "0.66981804", "0.6608786", "0.6500411", "0.64400667", "0.6437253", "0.64272666", "0.64056987", "0.63755065", "0.63663125", "0.6309009", "0.6295654", "0.6289682", "0.6285185", "0.62802416", "0.6236527"...
0.6085719
29
The Base64URL decoded string of `plain_text_value`. Because the API would remove padding characters of `plain_text_value` when encrypting, this attribute is useful to get the original value.
def o2g_(YKHO) -> str: return qe4Y.get(YKHO, 'decoded_plain_text_value')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def du8F(BWXx):\n FY9Y = BWXx.decode('base64')\n print(FY9Y)", "def YbTs(l5Ny):\n return WR89.b64decode(l5Ny).decode('utf-8')", "def CwD8(YKHO, BWXx):\n return YKHO.obscure.encode_base64(BWXx)", "def qpNH(BWXx, neaT=True, tZ2K=None):\n lCxN = WR89.b64decode(BWXx)\n if not neaT:\n lCx...
[ "0.6808302", "0.6776782", "0.67054427", "0.6688699", "0.66571075", "0.6614136", "0.64149815", "0.63046867", "0.62918866", "0.6205486", "0.6202929", "0.6187451", "0.6144726", "0.6136578", "0.61251575", "0.6101168", "0.6079363", "0.60788304", "0.6063256", "0.60591096", "0.60457...
0.76078004
0
Store information about a car in a dictionary.
def qVu1(iyj9, WKin, **SWgz): otOX = {} otOX['manufacturer'] = iyj9 otOX['model'] = WKin for H5ew, BWXx in SWgz.items(): otOX[H5ew] = BWXx return otOX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GxGG(XmcM, C3ST, **kO_Y):\n _6NH = {}\n _6NH['manufacturer'] = XmcM\n _6NH['model'] = C3ST\n for H5ew, BWXx in kO_Y.items():\n _6NH[H5ew] = BWXx\n return _6NH", "def uCOI(YKHO, _6NH):\n YKHO.cars[_6NH.id] = _6NH", "def GxGG(XmcM, WKin, **necE):\n kO_Y = {}\n kO_Y['Manufacture...
[ "0.69622374", "0.6877764", "0.6843895", "0.67395097", "0.67167896", "0.66456085", "0.6635325", "0.66127205", "0.6559127", "0.6502793", "0.6485998", "0.64695513", "0.64169145", "0.6337031", "0.63089335", "0.6277193", "0.623898", "0.6168025", "0.6166229", "0.61461496", "0.61110...
0.6326766
14
This function parses arguments provided via the command line and returns an {argparse} object.
def dCXb(): wvEv = j1Jz.ArgumentParser() wvEv.add_argument('-d', '--devel', action='store_true', help='development mode (uses hfaistos; default = False)') wvEv.add_argument('-o', default='./', help='output directory (default = ./)', metavar='DIR') return wvEv.parse_args()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uvp4(E0cB):\n wvEv = j1Jz.ArgumentParser(description=__doc__)\n Ltpw = wvEv.parse_args(E0cB[1:])\n return Ltpw", "def fkZt(qIxc):\n wvEv = yl6v()\n return wvEv.parse_args(qIxc)", "def uvp4(E0cB):\n wvEv = j1Jz.ArgumentParser(description=__doc__)\n wvEv.add_argument('--logfile', default...
[ "0.80647236", "0.8005113", "0.77856773", "0.7778193", "0.7769812", "0.7754692", "0.7727915", "0.769653", "0.76697457", "0.76314986", "0.7628642", "0.75687206", "0.7543528", "0.75366306", "0.75309896", "0.7525965", "0.7517789", "0.7475295", "0.7463031", "0.7454039", "0.7454039...
0.727154
82
Get config dictionary from object config.
def tgzD(YKHO): return {'name': YKHO.name, 'db': YKHO.db, 'net_type': YKHO.net_type, 'batch_size': YKHO.batch_size, 'epochs': YKHO.epochs, 'checkpoint_dir': YKHO.checkpoint_dir, 'prob_layer': YKHO.prob_layer, 'loss': YKHO.loss, 'activation': YKHO.activation, 'use_tau': YKHO.use_tau, 'final_activation': YKHO.final_a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dhbr(YKHO):\n return YKHO.config", "def O2aX(YKHO):\n return YKHO.config", "def O2aX(YKHO):\n return YKHO.config", "def tgzD(YKHO):\n return {'config': YKHO.config}", "def tgzD(YKHO) -> dict:\n return YKHO.config", "def tgzD(YKHO) -> cuzp:\n u2dO = YKHO.instance.get('HYPERGLASS_CONF...
[ "0.7970396", "0.76468366", "0.76468366", "0.7487825", "0.73463666", "0.7184039", "0.71818554", "0.71546215", "0.7140321", "0.71247005", "0.71181375", "0.7092832", "0.70324874", "0.70324874", "0.70324874", "0.70324874", "0.70324874", "0.70324874", "0.70324874", "0.70324874", "...
0.0
-1
Returns an LSTM with forget gate bias init to `forget_gate_bias`.
def FIMM(YKHO, zi3C, wjbX, CLda, hr1G, chwM, _9qe=1.0, baFE=0.0, **B2fa): super(HGYM, YKHO).__init__() YKHO.lstm = ht2j.nn.LSTM(input_size=zi3C, hidden_size=wjbX, num_layers=CLda, dropout=hr1G) YKHO.dropout = ht2j.nn.Dropout(hr1G) if hr1G else None if chwM is not None: for mWFP, Ty9i in YKHO.lst...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EnlN():\n VmPb = ZylS.nn.rnn_cell.LSTMCell(NArs['n_hours_per_month'], forget_bias=1.0, state_is_tuple=True)\n if Tuqy == ZylS.estimator.ModeKeys.TRAIN:\n VmPb = ZylS.contrib.rnn.DropoutWrapper(VmPb, output_keep_prob=NArs['keep_prob'])\n return VmPb", "def CkYR(unC1):\n Sjcx = unC1.num_laye...
[ "0.5862342", "0.5825106", "0.5773699", "0.55638814", "0.55452657", "0.5431646", "0.5414198", "0.5402524", "0.5349981", "0.5344201", "0.53401554", "0.5296807", "0.5277658", "0.527065", "0.52593386", "0.52584255", "0.5253569", "0.52424675", "0.5195939", "0.5187775", "0.5176702"...
0.5390545
8
Return a list of booleans that correspond test's dependencies status (currently either joined or not)
def eheP(YKHO, QOe9, LFfM): km2x = [] if hasattr(QOe9.test, 'dependencies'): if QOe9.test.dependencies == None: return [True] else: for zJAO in QOe9.test.dependencies: for lfdS in LFfM: MpXb = lfdS.test.__class__.__name__ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzku():\n gRCk = True\n for kbO9 in rS2x['depends_on']:\n if kbO9 != 'None' and (not YKHO._get_service_by_role(kbO9)):\n gRCk = False\n return gRCk", "def sJir(YKHO):\n return []", "def SYEy(YKHO):\n Mkmy: oGir = YKHO.webhost.request('GET', 'report_dependencies')\n Twf1 ...
[ "0.70139766", "0.66022265", "0.64082843", "0.63632125", "0.63448644", "0.6344022", "0.6311402", "0.6288979", "0.627378", "0.6109667", "0.610528", "0.60846335", "0.6067185", "0.602632", "0.59782964", "0.5959632", "0.59433186", "0.5898242", "0.58920914", "0.58773965", "0.587569...
0.8540149
0
Checks if board is full and there's a tie
def KVX8(iBIi): OnCL = True for rdlD in range(3): for iVRZ in range(3): if iBIi[rdlD][iVRZ] == '-': OnCL = False return OnCL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwzB(VAy5):\n aE_W = 0\n for oeNL in VAy5:\n if oeNL.text != ' ':\n aE_W += 1\n if aE_W == 9:\n return True\n else:\n return False", "def KVX8(YKHO, iBIi):\n if 0 in iBIi:\n return False\n return True", "def dWct(iBIi):\n return not any((Bc7X == K...
[ "0.8241435", "0.7992428", "0.78178227", "0.78178227", "0.768053", "0.7577904", "0.751669", "0.7510949", "0.74715155", "0.74643916", "0.7455649", "0.73994434", "0.73973554", "0.7376741", "0.7354732", "0.73436433", "0.7336456", "0.73216856", "0.73213506", "0.73070455", "0.73010...
0.7318096
19
r"""Return a callable for the get cluster method over gRPC. Gets the details for a specific cluster.
def iBC6(YKHO) -> YrBT[[WOJ5.GetClusterRequest], WOJ5.Cluster]: if 'get_cluster' not in YKHO._stubs: YKHO._stubs['get_cluster'] = YKHO.grpc_channel.unary_unary('/google.container.v1beta1.ClusterManager/GetCluster', request_serializer=WOJ5.GetClusterRequest.serialize, response_deserializer=WOJ5.Cluster.deser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ADRS(YKHO, QpfX, hKn5, OyNt=False):\n return YKHO._manager.cluster_get(QpfX, vDgp(hKn5), OyNt)", "def ADRS(YKHO, QpfX, hKn5, OyNt=False):\n return YKHO.db.cluster_get(QpfX, hKn5, OyNt)", "def NMoC(YKHO, hKn5):\n return YKHO._invoke('get', {'cluster': hKn5})", "def NMoC(YKHO, hKn5):\n return Y...
[ "0.7679859", "0.7609465", "0.7391426", "0.7391426", "0.73466927", "0.7221033", "0.71558195", "0.704328", "0.70262146", "0.70196533", "0.70015", "0.70008075", "0.69664824", "0.6963467", "0.69162655", "0.6913964", "0.6830251", "0.67958534", "0.679261", "0.6748199", "0.6721358",...
0.85234725
0
r"""Return a callable for the get operation method over gRPC. Gets the specified operation.
def zFpk(YKHO) -> YrBT[[WOJ5.GetOperationRequest], WOJ5.Operation]: if 'get_operation' not in YKHO._stubs: YKHO._stubs['get_operation'] = YKHO.grpc_channel.unary_unary('/google.container.v1beta1.ClusterManager/GetOperation', request_serializer=WOJ5.GetOperationRequest.serialize, response_deserializer=WOJ5.O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zFpk(YKHO) -> YrBT[[s1LG.GetOperationRequest], s1LG.Operation]:\n if 'get_operation' not in YKHO._stubs:\n YKHO._stubs['get_operation'] = YKHO.grpc_channel.unary_unary('/google.longrunning.Operations/GetOperation', request_serializer=s1LG.GetOperationRequest.SerializeToString, response_deserializer=s...
[ "0.80941546", "0.80941546", "0.80941546", "0.6711101", "0.66235733", "0.6530756", "0.6486386", "0.644757", "0.64104533", "0.629858", "0.6251396", "0.6226563", "0.6212667", "0.6166826", "0.6166826", "0.6166826", "0.6165532", "0.61097467", "0.6096945", "0.60835177", "0.5861729"...
0.7590764
3
r"""Return a callable for the set node pool size method over gRPC. SetNodePoolSizeRequest sets the size of a node pool. The new size will be used for all replicas, including future replicas created by modifying [NodePool.locations][google.container.v1beta1.NodePool.locations].
def rV_r(YKHO) -> YrBT[[WOJ5.SetNodePoolSizeRequest], WOJ5.Operation]: if 'set_node_pool_size' not in YKHO._stubs: YKHO._stubs['set_node_pool_size'] = YKHO.grpc_channel.unary_unary('/google.container.v1beta1.ClusterManager/SetNodePoolSize', request_serializer=WOJ5.SetNodePoolSizeRequest.serialize, response_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nzdm(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')", "def kPup(YKHO) -> YrBT[[WOJ5.UpdateNodePoolRequest], WOJ5.Operation]:\n if 'update_node_pool' not in YKHO._stubs:\n ...
[ "0.7028891", "0.698338", "0.6431676", "0.63869494", "0.63445574", "0.5937224", "0.58594936", "0.58354235", "0.5762173", "0.57500654", "0.57046306", "0.5664244", "0.56239843", "0.5616084", "0.5507615", "0.54891163", "0.54878515", "0.54568934", "0.5428294", "0.5428294", "0.5412...
0.87383306
0
Merge sorted lists L1 and L2 into a new list and return that new list. >>> merge([1, 3, 4, 6], [1, 2, 5, 7]) [1, 1, 2, 3, 4, 5, 6, 7]
def vGZu(neQZ: list, ywKv: list) -> list: xTva = [] TPao = 0 fVVZ = 0 while not (TPao == len(neQZ) and fVVZ == len(ywKv)): if TPao != len(neQZ) or (fVVZ != len(ywKv) and neQZ[TPao] <= ywKv[fVVZ]): xTva.append(neQZ[TPao]) TPao += 1 else: xTva.append(ywK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vGZu(YKHO, neQZ, ywKv):\n YRbF, r845 = (0, 0)\n Ylbp = []\n while YRbF < len(neQZ) and r845 < len(ywKv):\n if neQZ[YRbF] < ywKv[r845]:\n Ylbp.append(neQZ[YRbF])\n YRbF += 1\n else:\n Ylbp.append(ywKv[r845])\n r845 += 1\n if YRbF < len(neQZ):...
[ "0.80527395", "0.7939316", "0.7931322", "0.7919433", "0.7881894", "0.7861971", "0.7849062", "0.78090763", "0.778201", "0.76835525", "0.76438373", "0.75961006", "0.75699466", "0.75489384", "0.7543404", "0.75135213", "0.75050104", "0.7477455", "0.7453155", "0.745212", "0.744291...
0.7642702
11
GIVEN a test client and module_mocker object WHEN the GET '/blog/' url is hit THEN it fetch a particular blog
def Zo4Z(YKHO, udfG, CWcI): CWcI.patch('app.blog.views.get_blog', return_value=([K5ao], None)) geh0 = udfG.get('/blog/123456789') assert geh0.status_code == n6fA assert geh0.json.get('data')[0] == K5ao
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lMXd(YKHO, udfG, CWcI):\n CWcI.patch('app.blog.views.get_blogs', return_value=Ow5e)\n geh0 = udfG.get('/blogs/?start=0&limit=2')\n assert geh0.json.get('code') == n6fA\n assert geh0.json.get('data') == Ow5e", "def B4CY(YKHO):\n geh0 = YKHO.client.get('/blog/1')\n YKHO.assertEqual(geh0.statu...
[ "0.7425423", "0.7266321", "0.72487086", "0.7148867", "0.7140392", "0.7105573", "0.6643135", "0.66031927", "0.6565122", "0.6511927", "0.63294613", "0.6289499", "0.6279714", "0.6218365", "0.62090665", "0.6167568", "0.61467856", "0.61300975", "0.6085183", "0.606048", "0.60574895...
0.7962095
0
GIVEN a test client and module_mocker object WHEN the GET '/blog/' url is hit THEN it throws an error
def S1q1(YKHO, udfG, CWcI): CWcI.patch('app.blog.views.get_blog', return_value=(None, gxTT)) geh0 = udfG.get('/blog/123456789') assert geh0.json.get('code') == LW7_ assert geh0.json.get('message') == gxTT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zo4Z(YKHO, udfG, CWcI):\n CWcI.patch('app.blog.views.get_blog', return_value=([K5ao], None))\n geh0 = udfG.get('/blog/123456789')\n assert geh0.status_code == n6fA\n assert geh0.json.get('data')[0] == K5ao", "def h1VE(YKHO):\n geh0 = YKHO.client.get('/blog/1000')\n YKHO.assertEqual(geh0.sta...
[ "0.76256454", "0.7109784", "0.70951724", "0.70105785", "0.69556266", "0.6920371", "0.68467784", "0.6846523", "0.68355405", "0.6756535", "0.67300946", "0.6625977", "0.6601156", "0.6599566", "0.6567811", "0.6563574", "0.65619606", "0.65545267", "0.65541255", "0.64697874", "0.64...
0.807166
0
GIVEN a test client and module_mocker object WHEN the PUT '/blog/' url is hit with new payload THEN it updates a blog
def FowJ(YKHO, udfG, CWcI): CWcI.patch('app.blog.views.update_blog', return_value=(None, None)) geh0 = udfG.put('/blog/123456789', json=yimH) assert geh0.json.get('code') == n6fA assert geh0.json.get('message') == ET6g.UPDATE_SUCCESS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsIF(x0hE, TeYO):\n V2h5 = _qLf(TeYO)\n V2h5['title'] = 'My new title'\n Ylbp = x0hE.put(f'{aJuL}{TeYO['isbn']}', json=V2h5)\n assert Ylbp.status_code == 404\n p4FQ(x0hE, aJuL, TeYO)\n Ylbp = x0hE.put(f'{aJuL}{TeYO['isbn']}', json=V2h5)\n assert Ylbp.json['isbn'] == TeYO['isbn']\n asser...
[ "0.7129338", "0.7108973", "0.70720196", "0.70338726", "0.7017178", "0.6862786", "0.68132764", "0.67938423", "0.67782915", "0.6724528", "0.6723574", "0.67231995", "0.67196494", "0.67061925", "0.6702822", "0.6690651", "0.66681755", "0.6666856", "0.6649799", "0.66474575", "0.663...
0.8173484
0
GIVEN a test client and module_mocker object WHEN the PUT '/blog/' url is hit with wrong payload THEN it throws an error
def kO5L(YKHO, udfG, CWcI): CWcI.patch('app.blog.views.update_blog', return_value=(None, ftlO)) geh0 = udfG.put('/blog/123456789', json=Cg27) assert geh0.json.get('code') == LW7_ assert geh0.json.get('message') == ftlO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S1q1(YKHO, udfG, CWcI):\n CWcI.patch('app.blog.views.get_blog', return_value=(None, gxTT))\n geh0 = udfG.get('/blog/123456789')\n assert geh0.json.get('code') == LW7_\n assert geh0.json.get('message') == gxTT", "def FowJ(YKHO, udfG, CWcI):\n CWcI.patch('app.blog.views.update_blog', return_valu...
[ "0.7331774", "0.72568905", "0.71954834", "0.71896", "0.69678414", "0.68377113", "0.68361115", "0.6678184", "0.6617962", "0.6612548", "0.65947354", "0.65732265", "0.65369374", "0.65345615", "0.65321743", "0.651917", "0.6509276", "0.6497122", "0.649569", "0.6480033", "0.6472587...
0.79061526
0
GIVEN a test client and module_mocker object WHEN the DEL '/blog/' url is hit THEN it deletes a particular blog.
def Pc0W(YKHO, udfG, CWcI): CWcI.patch('app.blog.views.delete_blog', return_value=(None, None)) geh0 = udfG.delete('/blog/123412') assert geh0.json.get('code') == n6fA assert geh0.json.get('message') == ET6g.DELETE_SUCCESS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lza8(YKHO, udfG, CWcI):\n CWcI.patch('app.blog.views.delete_blog', return_value=(None, gxTT))\n geh0 = udfG.delete('/blog/123412')\n assert geh0.json.get('code') == LW7_\n assert geh0.json.get('message') == gxTT", "def _4cr(YKHO):\n m8z6 = YKHO._insert_test_post()[0]\n Fi3q = m8z6.id\n X...
[ "0.78404605", "0.75394875", "0.7440765", "0.69915557", "0.6943894", "0.6928469", "0.69208115", "0.6875311", "0.68234444", "0.6818655", "0.67938143", "0.67694193", "0.6701385", "0.6699727", "0.6676933", "0.66660017", "0.6665522", "0.6664868", "0.66598636", "0.66559863", "0.664...
0.8326358
0
GIVEN a test client and module_mocker object WHEN the DEl '/blog/' url is hit THEN it deletes a particular blog
def Lza8(YKHO, udfG, CWcI): CWcI.patch('app.blog.views.delete_blog', return_value=(None, gxTT)) geh0 = udfG.delete('/blog/123412') assert geh0.json.get('code') == LW7_ assert geh0.json.get('message') == gxTT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pc0W(YKHO, udfG, CWcI):\n CWcI.patch('app.blog.views.delete_blog', return_value=(None, None))\n geh0 = udfG.delete('/blog/123412')\n assert geh0.json.get('code') == n6fA\n assert geh0.json.get('message') == ET6g.DELETE_SUCCESS", "def _4cr(YKHO):\n m8z6 = YKHO._insert_test_post()[0]\n Fi3q =...
[ "0.82019764", "0.7436746", "0.7348014", "0.6894029", "0.68799037", "0.6845182", "0.6780421", "0.6768569", "0.6760647", "0.6755685", "0.6724029", "0.6688054", "0.66835266", "0.6665497", "0.6655546", "0.66248614", "0.66242516", "0.6592981", "0.6567235", "0.6535839", "0.65303797...
0.78349835
1
Register a function which will decorate a retrieved object before it's returned.
def AuU4(YKHO, FYKK): if FYKK not in YKHO._decorate_funcs: YKHO._decorate_funcs.append(FYKK) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AuU4(JfyU):\n oFgq[JfyU.__name__] = JfyU\n return JfyU", "def lkU5(YKHO, JfyU):\n\n def r3Zb():\n YEnM = JfyU()\n return YKHO.Mutators.get_mutator(YEnM, type(YEnM))\n return r3Zb", "def yHaO(eHNT):\n IqLJ = '_v_cached_' + eHNT.__name__\n\n @zaGL(eHNT)\n def H3v_(YEnM):\n ...
[ "0.6753017", "0.67451435", "0.66229224", "0.6500218", "0.64996123", "0.64875424", "0.647492", "0.63254356", "0.6308836", "0.6302749", "0.6279017", "0.62725705", "0.6258468", "0.62547505", "0.624865", "0.6228344", "0.6210964", "0.6205369", "0.62006974", "0.6192389", "0.6189457...
0.65939593
3
randomly permute data, then sort by source length, and partition into batches ensure that the length of sentences in each batch
def lVNl(nPrm, Ep8u, hXNa=True, ARTs=1.0): _99N = [] if hXNa: oyIN.random.shuffle(nPrm) Fbjb = [PU1l[1] for PU1l in nPrm] VgpL = [-(vC9B + oyIN.random.uniform(-ARTs, ARTs)) for vC9B in Fbjb] IUIM = oyIN.argsort(VgpL).tolist() O_7m = [nPrm[YRbF] for YRbF in IUIM] else:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _SGB(YKHO):\n Nobg = oyIN.random.permutation(YKHO.data.values[:int(0.75 * YKHO.data.shape[0])])\n return [Nobg[G1Hx * YKHO.batch_size:G1Hx * YKHO.batch_size + YKHO.batch_size] for G1Hx in range(int(0.75 * YKHO.data.shape[0]) // YKHO.batch_size)]", "def biH0(nPrm, NXmX=3000):\n Ylbp = []\n for mvm...
[ "0.6221445", "0.6171362", "0.6167999", "0.61513823", "0.6125818", "0.6125816", "0.6101927", "0.61010665", "0.6086133", "0.60746396", "0.6019888", "0.5995691", "0.59665906", "0.595915", "0.59365296", "0.5886454", "0.5877383", "0.58757585", "0.5857907", "0.5849642", "0.5839713"...
0.54680455
85
Converts a Microsoft filetime number to a Python datetime. The new datetime object is time zonenaive but is equivalent to tzinfo=utc. >>> filetime_to_dt(116444736000000000) datetime.datetime(1970, 1, 1, 0, 0) >>> filetime_to_dt(128930364000000000) datetime.datetime(2009, 7, 25, 23, 0)
def NaRY(ai9l): try: OmWf = qcWV.utcfromtimestamp((ai9l - VdmZ) / hqDk) qoJa = OmWf.replace(tzinfo=FXGE.UTC) return qoJa except ValueError as e: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NaRY(ai9l):\n VdmZ = 116444736000000000\n hqDk = 10000000\n return qcWV.utcfromtimestamp((ai9l - VdmZ) / hqDk)", "def NaRY(YKHO, ai9l):\n i4CV = 116444736000000000\n Rt7H = 10000000\n return qcWV.utcfromtimestamp((int(ai9l) - i4CV) / Rt7H)", "def OLXh(VgSK: int) -> qcWV:\n KCHu, jjja =...
[ "0.8208431", "0.8105621", "0.75514543", "0.7047954", "0.6499618", "0.6473873", "0.64101404", "0.6342626", "0.6241762", "0.60662675", "0.5986256", "0.5964644", "0.5921074", "0.5894787", "0.5843177", "0.58207846", "0.58027196", "0.58022326", "0.579543", "0.5787149", "0.5778969"...
0.6931591
4
Performs a stochastic sampling of all paths of given length with random walks
def cQPS(YKHO, Q6kx, u54L, qEOM=10000): assert u54L <= len(jHsn.node_connected_component(YKHO, Q6kx)), 'component too small for random walks this long' for bGrB in range(qEOM): yzQ0 = YKHO.random_walk(Q6kx, u54L) if yzQ0 is not None: yield yzQ0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JYfK(YKHO, j5Ue, Cwt5=0, ADdS=tuKI.Random(), yKcO=None):\n yvY1 = YKHO\n if yKcO:\n pmON = [yKcO]\n else:\n pmON = [ADdS.choice(yvY1.keys())]\n while len(pmON) < j5Ue:\n DpUl = pmON[-1]\n if len(yvY1[DpUl]) > 0:\n if ADdS.random() >= Cwt5:\n pmO...
[ "0.7317864", "0.7315428", "0.731031", "0.73021305", "0.6922017", "0.6681862", "0.6517428", "0.6468837", "0.63983387", "0.63501376", "0.6300675", "0.627409", "0.6209003", "0.6190663", "0.6185421", "0.61263037", "0.6126253", "0.6104703", "0.6081075", "0.60797554", "0.60582864",...
0.675868
5
limits input to only valid files
def QLH4(idDS, P1dF='Invalid file, try again'): while True: pKvt = input(idDS) try: nUeQ = open(pKvt) nUeQ.close() break except FileNotFoundError: print(P1dF) return pKvt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ll2q(YKHO):\n if YKHO.filepattern.endswith('.fits'):\n pass\n else:\n HwRy.exit('Error : All files must be .fits only')\n if len(SC2F.glob(YKHO.ref)) < 1:\n HwRy.exit('No reference flat found.')\n elif len(SC2F.glob(YKHO.filepattern)) < 1:\n HwRy.exit('No files found.')"...
[ "0.70086217", "0.6940653", "0.6900663", "0.68113685", "0.6744799", "0.67186135", "0.6710814", "0.6677266", "0.6647742", "0.66435456", "0.66306025", "0.66193664", "0.65967596", "0.65307236", "0.65147114", "0.65006566", "0.6454396", "0.6426529", "0.64241856", "0.63961095", "0.6...
0.6043751
66
Gets the max health for a pokemon
def vWIN(ABDL): Dxow = ABDL * 1000 return Dxow
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LSDB(YKHO):\n return YKHO.maxhp", "def UHkj(YKHO):\n return YKHO.__pirate_max_health", "def vflO(YKHO):\n return YKHO.__drone_max_health", "def oO_c() -> int:\n return 60", "def QRsD(QRsD):\n UCee.getTarget().b_setMaxHp(QRsD)\n return 'Your maxHp has been set to %d.' % QRsD", "def L...
[ "0.7555592", "0.7446882", "0.7119129", "0.70303226", "0.67762417", "0.6616062", "0.65685564", "0.6562257", "0.6499278", "0.6426569", "0.64156365", "0.6408927", "0.6372708", "0.6362477", "0.6350695", "0.63205063", "0.6317397", "0.6303325", "0.6303325", "0.62572527", "0.6257202...
0.7856783
0
Gets the channel id associated with this transaction
def fEZb(YKHO) -> bytes: return YKHO.channel_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LOJ7(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'channel_id')", "def LOJ7(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'channel_id')", "def x8BK(YKHO):\n return YKHO.msg.channel.id", "def LOJ7(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'channel_id')", "def id(YKHO) -> int:\n ...
[ "0.77492416", "0.77492416", "0.7573063", "0.75616944", "0.749933", "0.73842514", "0.73842514", "0.73314846", "0.7190953", "0.69742924", "0.680365", "0.6800754", "0.6740354", "0.6729897", "0.6722122", "0.6722122", "0.67056066", "0.6680487", "0.6680487", "0.6680487", "0.6675309...
0.7453206
5
Returns a Date obj, given a string date and format.
def JDE9(_c1T, FMLJ='%m/%d/%Y'): try: _c1T = qcWV.strptime(_c1T, FMLJ) return _c1T except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HD4I(mbyn, format):\n Csk6 = qcWV.datetime.strptime(mbyn, format)\n return qcWV.date(Csk6.year, Csk6.month, Csk6.day)", "def HD4I(YKHO, FStF, x8us):\n UjKx = qcWV.strptime(FStF, x8us).date()\n return UjKx", "def hfK9(YKHO, str):\n return Qrp8(qcWV.datetime.strptime(str, YKHO.fmt))", "def E...
[ "0.77831423", "0.7753071", "0.76360494", "0.7624789", "0.76205415", "0.75752884", "0.75214046", "0.74569046", "0.74552447", "0.74552447", "0.74370915", "0.74284035", "0.7427164", "0.729494", "0.7290275", "0.7280832", "0.72630435", "0.7199464", "0.719376", "0.71931666", "0.719...
0.0
-1
Defines a new function, by name, in this linker. This method is similar to `define` except that you can directly define a function without creating a `Func` itself. This enables `Store`independent functions to be inserted into this linker, meaning the linker can be used to instantiate modules in multiple stores.
def EvUY(YKHO, yR_P: str, mWFP: str, Yrvv: FuncType, JfyU: Callable, nSbU: bool=False) -> None: BMn7 = yR_P.encode('utf-8') LQ4s = nPgD(BMn7) pv5e = mWFP.encode('utf-8') oWvH = nPgD(pv5e) if not isinstance(Yrvv, Z37d): raise TypeError('expected a FuncType') or8S = Istc.allocate((JfyU, Yr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J5Is(YKHO, mWFP, JfyU):\n assert JfyU is not None\n if hasattr(YKHO.module, mWFP):\n raise W8pj('Cannot define \"%s\". The name has already been used.' % mWFP)\n setattr(YKHO.module, mWFP, JfyU)", "def mIH9(YKHO, mWFP):\n\n def h3Xc(JfyU):\n YKHO.__setitem__(mWFP, JfyU)\n ret...
[ "0.72163355", "0.6820881", "0.6626219", "0.65903765", "0.65734124", "0.65661716", "0.65637356", "0.65572035", "0.65122247", "0.65122247", "0.6500602", "0.64678925", "0.64678925", "0.64577746", "0.64443064", "0.6395461", "0.63732386", "0.6371834", "0.63715416", "0.6332152", "0...
0.6994881
1
Gets the default export for the named module in this linker. For more information on this see the Rust documentation at
def yVun(YKHO, VUF1: Storelike, mWFP: str) -> w1P1: pv5e = mWFP.encode('utf-8') oWvH = nPgD(pv5e) JfyU = gaxy.wasmtime_func_t() P1dF = gaxy.wasmtime_linker_get_default(YKHO._ptr, VUF1._context, oWvH, len(pv5e), dWW6(JfyU)) if P1dF: raise O1qM._from_ptr(P1dF) return w1P1._from_raw(JfyU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BECe(YKHO):\n return YKHO.getModuleFile('export')", "def JEuV(YKHO, gTi_):\n return 'default'", "def JEuV(YKHO, gTi_):\n return 'default'", "def jL3F(YKHO, mWFP):\n return YKHO.nameToModule.get(mWFP, None)", "def jL3F(mWFP):\n return AXOg(mWFP).get('module')", "def J7v0(QbSa, zY7g):\n ...
[ "0.6086295", "0.5900627", "0.5900627", "0.5843678", "0.57203466", "0.5698695", "0.5690044", "0.56741637", "0.56649613", "0.56630886", "0.5586551", "0.55696684", "0.5559486", "0.55216974", "0.55192566", "0.55192566", "0.5509543", "0.5497796", "0.5497226", "0.54680645", "0.5466...
0.0
-1
Retrieve the mapping Key from a given Key. Noe is returned if the mapping does not exist.
def at7e(YKHO, l4cu): EMk5 = YKHO._key_mappings.get(key=l4cu.digest) if EMk5 is None: return None if isinstance(EMk5, jKi7.binary_type): return t2lc.loads(EMk5) return t2lc.load(EMk5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EOaT(YKHO, H5ew):\n return YKHO.lookup[H5ew]", "def EOaT(YKHO, H5ew):\n return YKHO.lookup[H5ew]", "def NMoC(YKHO, H5ew):\n rdnZ = YKHO.table[YKHO.hash(H5ew)]\n for bTKY in rdnZ:\n if bTKY[0] == H5ew:\n return bTKY[1]\n raise KeyError('{0}'.format(H5ew))\n return", "de...
[ "0.7017211", "0.7017211", "0.6815783", "0.67727387", "0.67529523", "0.6704114", "0.66636956", "0.66472596", "0.6526504", "0.64415485", "0.64036995", "0.6372539", "0.6368591", "0.6352309", "0.6347367", "0.63219655", "0.631755", "0.6303702", "0.6276625", "0.62731564", "0.627257...
0.657874
8
Close the lmdb environment, calling multiple times has no effect.
def DDI8(YKHO): YKHO._env.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n if YKHO.db is not None:\n del YKHO.db", "def ssTe(YKHO):\n YKHO._db.close_db()", "def ssTe(YKHO):\n YKHO.rrd = None", "def ssTe(YKHO):\n tiX4().close()", "def DDI8(YKHO):\n if getattr(YKHO, '_db', None) is not None:\n YKHO._db.close()\n YKHO._db = None"...
[ "0.73687613", "0.7368432", "0.7281008", "0.727664", "0.72448194", "0.7235762", "0.72337484", "0.72062117", "0.7184565", "0.71708393", "0.7149328", "0.7149328", "0.7137548", "0.7137548", "0.7115009", "0.7109504", "0.7101953", "0.70860803", "0.7083057", "0.70548296", "0.7042312...
0.0
-1
Test the exception raising when the input is malformed
def IbOh(): from pytest import raises from tweakable_pt.EventQueue import Event with raises(Exception) as zK6_: tvqc = Event(1, 2, 'error') assert 'Malformed input' in str(zK6_.value) with raises(Exception) as zK6_: tvqc = Event(1, 'error', 'control') assert 'Malformed input' in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mJzQ(YKHO) -> None:\n with YKHO.assertRaises(Bx6I.RejectionException):\n YKHO.dfa.read_input('01112')", "def w_ae(YKHO):\n raise ValueError", "def isOK(YKHO):\n YKHO.assertRaises(ValueError, CFN4, '1234')", "def mJzQ(YKHO):\n with TpAC.assert_raises(Bx6I.RejectionException):\n Y...
[ "0.76148874", "0.7581374", "0.7505669", "0.7499607", "0.7428304", "0.7415885", "0.7391387", "0.7357328", "0.7331918", "0.7293652", "0.7291736", "0.72616136", "0.7206049", "0.72037315", "0.71635664", "0.7151911", "0.7074442", "0.7036768", "0.7028643", "0.7022607", "0.7016186",...
0.0
-1
Returns the number of layers in the network
def CLda(YKHO): return len(YKHO.layers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nqc2(YKHO):\n return YKHO.depth.size", "def CLda(YKHO):\n UxQk = YKHO._num_layers()\n return UxQk", "def zWuF(YKHO):\n return YKHO.layers", "def hUTg(YKHO):\n return YKHO._n_layers", "def hUTg(YKHO):\n return YKHO._n_layers", "def YAaY(YKHO):\n return YKHO.config.layer_count", ...
[ "0.87667173", "0.8743869", "0.8691613", "0.8659084", "0.8659084", "0.8581371", "0.82602227", "0.8025768", "0.8003215", "0.79739124", "0.79415065", "0.7790968", "0.76243454", "0.73677737", "0.735582", "0.7351958", "0.72849476", "0.72269565", "0.7167012", "0.7158602", "0.711476...
0.8497776
6
String representation of db object
def zAg0(YKHO): return 'staffEmail : {} ,staffID: {}'.format(YKHO.staffEmail, YKHO.staffID)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(dict(YKHO))", "def wHJl(YKHO):\n return 'Database({}'.format(YKHO.__dict__)", "def yLCI(YKHO):\n return ddrW(YKHO, type(YKHO).fields)", "def yLCI(YKHO):\n return ddrW(YKHO, type(YKHO).fields)", "def qnhS(YKHO):\n U5bT = 'null' if YKHO._data == None else str(YKHO....
[ "0.76779664", "0.7597917", "0.73983717", "0.73983717", "0.72799754", "0.7203242", "0.71912044", "0.7175977", "0.71693236", "0.71478224", "0.7142108", "0.7142108", "0.7142108", "0.70269656", "0.70083356", "0.69945437", "0.69788945", "0.69785273", "0.69785273", "0.69785273", "0...
0.0
-1
Convenience function returns serializer or raises SerializerNotFound.
def l5oD(format=None): if not format: ZMzz = XAXc() elif format == 'json-ld': ZMzz = XOed() elif format == 'json': ZMzz = byIX() else: raise K1AI(format) return ZMzz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neBz(format):\n try:\n ZMzz = cdng[format]\n except KeyError:\n raise pL3r('No serializer found for %s' % format.acronym)\n return ZMzz", "def a9qP(format):\n if format.upper() == 'JSON':\n return yaH3\n elif format.upper() == 'XML':\n return F1x6\n else:\n ...
[ "0.7723596", "0.67742354", "0.65125227", "0.65000874", "0.6488221", "0.64485973", "0.6418933", "0.6341008", "0.6182505", "0.6171197", "0.6171197", "0.6168808", "0.61526823", "0.61458915", "0.61308914", "0.61013675", "0.6067223", "0.60306644", "0.6027395", "0.60245043", "0.602...
0.7204222
1
Serializes `Relation` and `OrderedRelation` as a short identifier when they are Relationships. For Individuals, the compact or absolute IRI of the label is returned. For all other properties the super method is called as a fallback.
def Tz0w(YKHO, QWcs, BWXx): oAiD = super(dVle, YKHO).serialize_prop(QWcs, BWXx) if type(QWcs) == BybM or type(QWcs) == OvUF: lhy8 = list() for bGrB, ZfUD in X73w(BWXx): lhy8.append(YKHO.ori_uri(ZfUD)) if len(lhy8) == 1: return lhy8[0] return lhy8 retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return ''.join([str(YKHO._nodes[YRbF]) + str(YKHO._relationships[YRbF]) for YRbF in range(len(YKHO._relationships))]) + str(YKHO._nodes[-1])", "def wHJl(YKHO) -> str:\n return str(YKHO.residue.full_id)", "def wHJl(YKHO):\n return f'<Relationship relationship_id={YKHO.relationship_id}...
[ "0.5999013", "0.5964704", "0.5893871", "0.5888884", "0.58753467", "0.5826851", "0.57787275", "0.57055146", "0.56922686", "0.5668629", "0.5650546", "0.5640294", "0.55607605", "0.55503947", "0.55314684", "0.55265963", "0.5522005", "0.551162", "0.547734", "0.5436066", "0.5431359...
0.5500647
18
Returns an initialized structure indicating that no search engine's have been queried for themselves yet.
def zbCc(Ej1W): return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YYdB(YKHO):\n return WdPn()", "def Bc49():\n return {DYWq: 0, sfuk: 0, mqsU: 0}", "def ytku(YKHO):\n return YKHO.perform_search(init_search=True)", "def TRw0(*qIxc, **sg5M):\n geh0 = {'response': {'numFound': 0}}\n return geh0", "def dixj(YKHO):\n if not YKHO._full_init:\n YKHO...
[ "0.66165763", "0.6238985", "0.60872924", "0.5925518", "0.592452", "0.5771588", "0.5739753", "0.5685059", "0.56715184", "0.5637495", "0.5607039", "0.5600871", "0.5550085", "0.5515237", "0.54417264", "0.53515744", "0.53490156", "0.5347246", "0.5339572", "0.5316667", "0.5292267"...
0.0
-1
Test that build fails cleanly with no commits
def BJb5(TBXe): boHx = Iz_c.init(path=TBXe) WL52 = p9tP() Aofo = WL52.invoke(b8V_.cli, ['--debug', '--path', TBXe, 'build', TBXe, '--skip-ignore-check']) assert Aofo.exit_code == 1, Aofo.stdout
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kURP(YKHO, jSYO):\n G9jH.info('Not uploading latest build because no ClusterFuzz deployment.')", "def kURP(YKHO, jSYO):\n G9jH.info('Not uploading latest build because on OSS-Fuzz.')", "def FbkH(YKHO):\n with YKHO.assertRaises(SystemExit) as tTpl:\n Wsmj.git_require((2,), fail=True)\n ...
[ "0.70894927", "0.70627207", "0.70586646", "0.69316316", "0.6843385", "0.6842295", "0.67893004", "0.6780128", "0.67563677", "0.67470944", "0.67389333", "0.6689502", "0.66884744", "0.667398", "0.66601044", "0.6519471", "0.6511556", "0.6510705", "0.6495675", "0.64947367", "0.648...
0.8104136
0
Generate a array of multihot labels. Given an integer 'num_samples', generate a deterministic array of 'num_classes'multihot labels. Each multihot label is the list of bits (0/1) of the corresponding row number in the array, upto 'num_classes'. If the value of num_classes < num_samples, then the bit list repeats. e.g. ...
def lH8X(eAYh: int, jTqs: int) -> oyIN.ndarray: r8hN = 2 ** jTqs lxLv = f'0{jTqs}b' return oyIN.asarray([list(format(YRbF % r8hN, lxLv)) for YRbF in range(eAYh)]).astype(int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unQZ(aJu6, jTqs):\n PB4J = len(aJu6)\n RI9T = []\n for YRbF in Ni9Y(PB4J):\n jbXL = oyIN.zeros((jTqs,))\n jbXL[aJu6[YRbF]] = 1\n RI9T.append(jbXL.tolist())\n return RI9T", "def YnwB(t3eI=1576, Htse=(2, 3), Ybg9=(3, 5), l7Jx=5):\n oyIN.random.seed = t3eI\n EKkb = list('a...
[ "0.7529898", "0.6976875", "0.6732228", "0.671969", "0.66981465", "0.6665263", "0.66369236", "0.6599849", "0.6524327", "0.65209043", "0.65070945", "0.6493294", "0.64890707", "0.6469958", "0.64488715", "0.6426551", "0.6425036", "0.6398795", "0.6374945", "0.6374421", "0.6374421"...
0.83557814
0
Initialize the ApiInterface skeleton class
def FIMM(YKHO, jEa8, m5hN, ql7k, OlKE): YKHO._operations = ql7k YKHO._iface_id = RWyV(jEa8) iV4e = [EB1d(YKHO._iface_id, hTqE) for hTqE in jKi7.iterkeys(YKHO._operations)] YKHO._iface_def = AxTT(YKHO._iface_id, iV4e) YKHO._impl = m5hN OlKE = OlKE or [] YKHO._resolver = WGex(dict([(tTpl.defin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO) -> None:\n YKHO.api = fyIx()", "def FIMM(YKHO, sZPy, OlKE=None):\n YKHO._api_interface = sZPy(YKHO, error_types=OlKE)", "def INeU(g89h: dict, K8MZ: Namespace=None):\n if c5dE.api is None:\n c5dE.api_options = g89h.copy()\n c5dE.api = v067(g89h)\n c5dE.cmd_args = K8M...
[ "0.80206335", "0.74848926", "0.7427755", "0.7412053", "0.7356522", "0.7307744", "0.72111404", "0.7205408", "0.71689904", "0.71689904", "0.71689904", "0.70715415", "0.70366555", "0.70366555", "0.70366555", "0.70366555", "0.7036041", "0.70068157", "0.69850403", "0.69734085", "0...
0.65428615
51
returns weights. Returns List list of weight.
def _mSQ(YKHO) -> x1iM: return YKHO._weights
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _mSQ(YKHO) -> x1iM[float]:\n return [Acvy.weight for Acvy in YKHO.population]", "def wT46(YKHO):\n _mSQ = []\n for Q6kx in YKHO.__nodes:\n _mSQ.append(Q6kx.get_weights())\n return _mSQ", "def _ZnB(YKHO):\n gkQC = []\n for rdlD in YKHO.matrix:\n for nPrm in rdlD:\n ...
[ "0.8486696", "0.84676313", "0.8323326", "0.83168554", "0.82257396", "0.8114096", "0.80959225", "0.80845994", "0.80845994", "0.80821216", "0.8030162", "0.8006945", "0.80039454", "0.79983205", "0.79815435", "0.7964211", "0.79513246", "0.79513246", "0.7946356", "0.7946356", "0.7...
0.8787202
0
returns number of variables. Returns int number of variables.
def s3c0(YKHO) -> int: return YKHO._num_var
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sUC8(YKHO) -> int:\n return YKHO.original_problem.num_variables", "def zXzy(YKHO):\n if YKHO.nvar == None:\n YKHO.nvar = YKHO.ndim\n return YKHO.nvar", "def eNPf(YKHO):\n return len(YKHO.assignments)", "def CS5f(eHNT: io) -> int:\n zFiD = Ph6J(eHNT)\n bGrB, nUT6 = zFiD.split()\n ...
[ "0.8162456", "0.81015503", "0.8091794", "0.79787964", "0.7818459", "0.77791166", "0.7747762", "0.7625263", "0.7623769", "0.7480693", "0.73607725", "0.7287395", "0.7265172", "0.7247949", "0.71713674", "0.71452695", "0.71141165", "0.7069474", "0.70534664", "0.7044106", "0.70261...
0.7845721
4
resets ``on_gradient`` to False. This function is intended to be called by subclasses. Subclasses have a responsibility to validate.
def dmCJ(YKHO) -> None: YKHO._on_gradient = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LLmM(YKHO, omQo: bool) -> None:\n YKHO._on_gradient = omQo", "def omQo(YKHO) -> bool:\n return YKHO._on_gradient", "def WVC7(YKHO) -> bool:\n raise NotImplementedError()", "def WVC7(YKHO) -> bool:\n if YKHO.on_func_prob_dists is True and YKHO.on_func_gradient_prob_dists is True and (YKHO.on_p...
[ "0.80356205", "0.74856406", "0.741583", "0.6772164", "0.6676393", "0.65563524", "0.65457094", "0.6396303", "0.63897485", "0.6342755", "0.6342624", "0.63093656", "0.63093656", "0.63093656", "0.62727064", "0.62676", "0.62178344", "0.6150458", "0.6148232", "0.6136586", "0.610305...
0.91376996
0
returns whether or not to support Hessian. Returns bool whether or not to support Hessian.
def CHhr(YKHO) -> bool: return YKHO._on_hessian
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ahIi():\n raise NotImplementedError", "def gHak(YKHO) -> bool:\n raise NotImplementedError()", "def e_VS(YKHO, WKvO):\n raise NotImplementedError('hessian has not been defined')", "def e_VS(YKHO):\n e_VS = YKHO._xml.get_hessian()\n if e_VS is None:\n YKHO._vasp_parser.exit_status = ...
[ "0.7657683", "0.70147026", "0.6852934", "0.6626468", "0.64342076", "0.6402151", "0.6351242", "0.6282518", "0.62394106", "0.61889493", "0.6154492", "0.614275", "0.61110765", "0.60563064", "0.60368", "0.6008105", "0.6004441", "0.58621186", "0.5827564", "0.5827564", "0.58160955"...
0.819298
0
sets ``on_hessian``. This function is intended to be called by subclasses. Subclasses have a responsibility to validate.
def _RnJ(YKHO, CHhr: bool) -> None: YKHO._on_hessian = CHhr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HSXb(YKHO) -> None:\n YKHO._on_hessian = False", "def CHhr(YKHO) -> bool:\n return YKHO._on_hessian", "def gHak(YKHO) -> bool:\n raise NotImplementedError()", "def e_VS(YKHO, *qIxc, **B2fa):\n raise ValueError('hessian definition is not defined in the profile you want to execute.')", "def e...
[ "0.7978092", "0.78124803", "0.6702552", "0.66722995", "0.6648949", "0.63266194", "0.62547266", "0.6147763", "0.61393195", "0.6127825", "0.6090498", "0.59919214", "0.59919214", "0.56280285", "0.56127805", "0.55776465", "0.54979223", "0.5491175", "0.5437435", "0.54194105", "0.5...
0.9187993
0
Convert image to grayscale. INPUT | image (PIL.Image) the image to convert. | mask (PIL.Image) the mask to pass. OUTPUT | image (PIL.Image) the converted image. | mask (PIL.Image) the mask.
def nrOS(YKHO, LNo8, ZHfW=None): return (uGYG.ImageOps.grayscale(LNo8), ZHfW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fppW(LNo8):\n if len(LNo8.shape) == 2:\n return LNo8\n return oyIN.dot(LNo8, [0.299, 0.587, 0.114])", "def qWz7(LNo8):\n xV4z = oyIN.copy(LNo8)\n F3_L = 0.299 * LNo8[2] + 0.587 * LNo8[1] + 0.114 * LNo8[0]\n xV4z[0] = F3_L\n xV4z[1] = F3_L\n xV4z[2] = F3_L\n return xV4z", "def...
[ "0.74227595", "0.7226534", "0.7120533", "0.7038315", "0.7029882", "0.70102984", "0.699249", "0.69539756", "0.69539756", "0.6841992", "0.6838445", "0.68311656", "0.68178105", "0.6757018", "0.6694935", "0.6676646", "0.6675066", "0.66661674", "0.6656954", "0.66477865", "0.662425...
0.7569606
0
Constructor of the random horizontal flip transform. INPUT | p (float) between 0 and 1, the probability of flipping. OUTPUT | None
def FIMM(YKHO, XP5J=0.5): YKHO.p = XP5J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l8r2(ThLH, XP5J=0.5):\n if oyIN.random.uniform() < XP5J:\n return (Kt_s.RandomHorizontalFlip(p=1.0)(ThLH), True)\n else:\n return (ThLH, False)", "def IM5U(YKHO):\n YKHO._image, YKHO._boxes = qR6U.random_horizontal_flip(YKHO._image, boxes=YKHO._boxes)", "def Nyya(XP5J=0.5):\n\n de...
[ "0.70263666", "0.70170635", "0.694695", "0.63709885", "0.6174882", "0.6147128", "0.6136826", "0.6127807", "0.60517466", "0.59472436", "0.5908379", "0.5878797", "0.586694", "0.58497405", "0.58171946", "0.5809251", "0.5764595", "0.5737501", "0.5733125", "0.5733125", "0.5727696"...
0.5016482
95
Randmly flip horizontally the image (and mask in the same fashion). INPUT | image (PIL.Image) the image to flip. | mask (PIL.Image) the mask to flip. OUTPUT | image (PIL.Image) the flipped image. | mask (PIL.Image) the flipped mask.
def nrOS(YKHO, LNo8, ZHfW=None): if oyIN.random.random() > YKHO.p: LNo8 = LNo8.transpose(uGYG.Image.FLIP_LEFT_RIGHT) if ZHfW: ZHfW = ZHfW.transpose(uGYG.Image.FLIP_LEFT_RIGHT) return (LNo8, ZHfW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SZFh(YKHO, LNo8, ZHfW):\n fh2j = False\n if ht2j.rand(1) > 1.0:\n LNo8 = LNo8.transpose(hnIv.FLIP_LEFT_RIGHT)\n fh2j = True\n Einh = Ymkf.Resize(size=(YKHO.new_size, YKHO.new_size))\n LNo8 = Einh(LNo8)\n MD8Z = Ymkf.ToTensor()\n YRbF, r845, MKlR, yzQ0 = Ymkf.RandomCrop.get_param...
[ "0.68812966", "0.6823695", "0.67388076", "0.6684232", "0.66834724", "0.6650419", "0.66327655", "0.6579703", "0.6541246", "0.6505042", "0.6472178", "0.6469971", "0.6397246", "0.6391168", "0.6298651", "0.629186", "0.629186", "0.629186", "0.626353", "0.6254617", "0.62124664", ...
0.70027494
0
Constructor of the random vertical flip transform. INPUT | p (float) between 0 and 1, the probability of flipping. OUTPUT | None
def FIMM(YKHO, XP5J=0.5): YKHO.p = XP5J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nyya(XP5J=0.5):\n\n def XzEw(VXjJ, nuuJ):\n ADdS = tuKI.random()\n\n def ZylS(g4y1):\n if ADdS < XP5J:\n if type(g4y1) is CRGh:\n return CRGh(rXh4(g4y1.info))\n elif type(g4y1) is llWB:\n return g4y1.flip(2)\n ...
[ "0.6815404", "0.6436415", "0.63715", "0.63296175", "0.627193", "0.61096007", "0.6092497", "0.60703266", "0.60617465", "0.60257477", "0.59993637", "0.5900741", "0.5772188", "0.5743865", "0.5720737", "0.56952006", "0.56905115", "0.5665845", "0.5651045", "0.5621821", "0.56160444...
0.0
-1
Randmly flip vertically the image (and mask in the same fashion). INPUT | image (PIL.Image) the image to flip. | mask (PIL.Image) the mask to flip. OUTPUT | image (PIL.Image) the flipped image. | mask (PIL.Image) the flipped mask.
def nrOS(YKHO, LNo8, ZHfW=None): if oyIN.random.random() > YKHO.p: LNo8 = LNo8.transpose(uGYG.Image.FLIP_TOP_BOTTOM) if ZHfW: ZHfW = ZHfW.transpose(uGYG.Image.FLIP_TOP_BOTTOM) return (LNo8, ZHfW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FZ2p(LNo8, ZHfW, P6bq=0.5):\n if tuKI() < P6bq:\n LNo8 = LNo8[::-1, :, :]\n ZHfW = ZHfW[::-1, :, :]\n return (LNo8, ZHfW)", "def xPm2(VXjJ):\n if not RDRa(VXjJ):\n raise TypeError(t_1q.format(type(VXjJ)))\n return VXjJ.transpose(nv4g)", "def il8A(VXjJ):\n if not Qfi2(VXj...
[ "0.72987777", "0.7033297", "0.67952675", "0.67952675", "0.6661653", "0.663308", "0.6622689", "0.66179705", "0.6605339", "0.6560909", "0.65419096", "0.64979637", "0.64499223", "0.6449324", "0.64227295", "0.6407387", "0.63953644", "0.63710415", "0.63630563", "0.6348998", "0.634...
0.6802196
2
Convert the image (PIL or np.array) to a torch.Tensor INPUT | image (PIL.Image or np.array) the image to convert. | mask (PIL.Image or np.array) the mask to convert. OUTPUT | image (torch.Tensor) the converted image. | mask (torch.Tensor) the converted mask.
def nrOS(YKHO, LNo8, ZHfW=None): LNo8 = yd6s.ToTensor()(LNo8) if ZHfW is not None: ZHfW = yd6s.ToTensor()(ZHfW) return (LNo8, ZHfW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SZFh(YKHO, LNo8, ZHfW):\n fh2j = False\n if ht2j.rand(1) > 1.0:\n LNo8 = LNo8.transpose(hnIv.FLIP_LEFT_RIGHT)\n fh2j = True\n Einh = Ymkf.Resize(size=(YKHO.new_size, YKHO.new_size))\n LNo8 = Einh(LNo8)\n MD8Z = Ymkf.ToTensor()\n YRbF, r845, MKlR, yzQ0 = Ymkf.RandomCrop.get_param...
[ "0.75431067", "0.68494487", "0.6760078", "0.6704346", "0.6600619", "0.6554422", "0.6528546", "0.65137404", "0.64948285", "0.6487231", "0.64742506", "0.63641363", "0.63243794", "0.62573236", "0.6255614", "0.62329036", "0.6225246", "0.61881965", "0.61842334", "0.6140684", "0.61...
0.72277474
1
Return the number of pixels in img that are not black. img must be a Numpy array with colour values along the last axis.
def yQK5(VXjJ): return VXjJ.any(axis=-1).sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MKA3(VXjJ):\n cviu = VXjJ.getbbox()\n if not cviu:\n return 0\n return sum(VXjJ.crop(cviu).point(lambda WKvO: 255 if WKvO else 0).convert('L').point(bool).getdata())", "def CT4C(VXjJ):\n cviu = VXjJ.getbbox()\n if not cviu:\n return 0\n return sum(VXjJ.crop(cviu).point(lambda ...
[ "0.87113005", "0.8660194", "0.84593797", "0.7387546", "0.70630264", "0.6997873", "0.6848244", "0.67774755", "0.6695557", "0.6601975", "0.65962774", "0.65023655", "0.64736867", "0.6425677", "0.6393197", "0.63330376", "0.6331116", "0.63237303", "0.6256006", "0.6224084", "0.6143...
0.8332299
3
phi_n(z), formula (16) basis function which represents the sinulodila \ approximation for the range where target field is defined.
def ZCsD(YKHO, epBp, exwG): return oyIN.sin(exwG * oyIN.pi * (epBp + YKHO.L) / (2 * YKHO.L))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVnq(epBp):\n return 1.0 / epAf.sqrt(2.0 * O05v) * epAf.exp(-0.5 * epBp * epBp)", "def rVnq(kpaV, gNvW, exwG):\n return oyIN.sqrt(exwG / gNvW) * CkYf.ppf(1 - kpaV)", "def _hNH(exwG):\n return k0lF * oyIN.sin(exwG * mM0K * zeCY)", "def rVnq(XP5J, vexM):\n return (XP5J - 1) * (vexM - 1)", "de...
[ "0.69268763", "0.6860038", "0.682986", "0.6693665", "0.6665811", "0.6566204", "0.65344685", "0.6528968", "0.6526304", "0.65108126", "0.65019286", "0.6484328", "0.6435481", "0.6430162", "0.641897", "0.6376941", "0.63182116", "0.6284226", "0.62605214", "0.622387", "0.6222016", ...
0.78457576
0
Function that parses the entries of the database and returns them as a list of dictionaries. cursor A cursor object using sqlite. row The row of the database being parsed.
def U48W(N1p7, rdlD): Csk6 = {} for or8S, fvDH in enumerate(N1p7.description): Csk6[fvDH[0]] = rdlD[or8S] return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def crc9(N1p7):\n Aofo = []\n nPrm = N1p7.fetchall()\n for usx6 in nPrm:\n Z9rn = 0\n xLqj = {}\n for ZLJ_ in usx6:\n xLqj[N1p7.description[Z9rn][0]] = ZLJ_\n Z9rn += 1\n Aofo.append(xLqj)\n return Aofo", "def sax9(N1p7):\n JBZA = [WKvO[0] for WKvO...
[ "0.6755052", "0.67545813", "0.6564914", "0.6424371", "0.6408938", "0.63643324", "0.63617104", "0.6360588", "0.63534856", "0.6341049", "0.63043326", "0.628819", "0.6242162", "0.62302166", "0.6221884", "0.62089694", "0.62089694", "0.6206938", "0.6206938", "0.6206938", "0.620399...
0.6206571
20
This command hook creates an version.py file in each package that requires it. This is by determining if the package's ``__init__.py`` tries to import or import from the version module. version.py will not be created in packages that don't use it. It should only be used by the toplevel package of the project.
def jUD6(mkPq, cYu8, cEzT, mWFP, DpZH, P6iG): if '-' in DpZH: DpZH = DpZH.split('-', 1)[0] for B5hb in cEzT: fkwU = hc8U(cYu8, B5hb) if not fkwU: continue o5Dc = Pmu4() if (not o5Dc or not o5Dc[0] in vIwR.digits) and Hy7s.path.exists(fkwU): SjAl(fk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zfs8(Eosz, DpZH):\n RKD7.info(\"patching %s to bake in version '%s'\", Eosz, DpZH)\n with open(Eosz, 'r+') as AnEl:\n Nqlg = AnEl.readlines()\n try:\n _9an = Nqlg.index('# BEGIN VERSION CHECK\\n')\n Os4s = Nqlg.index('# END VERSION CHECK\\n')\n except ValueError...
[ "0.64965993", "0.6285214", "0.61718327", "0.6169034", "0.6142179", "0.60853463", "0.6016582", "0.60028434", "0.595761", "0.5861589", "0.58417875", "0.58417875", "0.5828494", "0.58221763", "0.5801181", "0.5768607", "0.5764254", "0.5742387", "0.57402927", "0.5724908", "0.569250...
0.6890946
0
Tests that no signal event is created if the bid/ask difference is greater than the max bid/ask.
def uCl5(YKHO): pLZv = YKHO.optionChain.getData()[0] ALFu = YKHO.optionChain.getData()[1] pLZv.expirationDateTime = qcWV.fromisoformat('2014-09-19') ALFu.expirationDateTime = qcWV.fromisoformat('2014-09-19') ALFu.delta = YKHO.optPutDelta pLZv.delta = YKHO.optCallDelta ALFu.bidPrice = 0.0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bu8B(YKHO):\n sGrV = YKHO._bars.rolling(20).mean().close.values\n TDme = YKHO._bars.close.values\n if TDme[-2] < sGrV[-2] and TDme[-1] > sGrV[-1]:\n YKHO._l.info(f'buy signal: closes[-2] {TDme[-2]} < mavg[-2] {sGrV[-2]} closes[-1] {TDme[-1]} > mavg[-1] {sGrV[-1]}')\n return True\n els...
[ "0.6277724", "0.6269551", "0.5950775", "0.5939726", "0.5694071", "0.5683854", "0.56767756", "0.56767756", "0.5562744", "0.55563134", "0.5517492", "0.5517492", "0.5486677", "0.5479115", "0.5476938", "0.54688835", "0.5466392", "0.5449787", "0.5425286", "0.54082346", "0.5407959"...
0.56040853
8
Convert a list of triples into three lists each consists of 1st, 2nd and 3rd element of each triples. The range triples may be doubles (start, stop) or single (stop,), but they have to be always tuples.
def dyEf(P5tZ): EV1I, ntLm, paSp = ([], [], []) for IS_q in P5tZ: if len(IS_q) == 3: yKcO, JCyR, YPaw = IS_q elif len(IS_q) == 2: yKcO, JCyR, YPaw = (IS_q[0], IS_q[1], 1) elif len(IS_q) == 1: yKcO, JCyR, YPaw = (0, IS_q[0], 1) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NR0N(XT48):\n return list(map(lambda Mkmy: (Mkmy.start, Mkmy.end), XT48))", "def NZ_f(P5tZ):\n EV1I, ntLm, paSp = dyEf(P5tZ)\n if zb2l(EV1I, ntLm, paSp):\n raise StopIteration('empty range')\n YRbF, hkxX = (len(P5tZ) - 1, list(EV1I))\n yield tuple(hkxX)\n while YRbF >= 0:\n hk...
[ "0.722999", "0.68655086", "0.6514842", "0.64241964", "0.6396727", "0.6302099", "0.62147397", "0.61558133", "0.6120832", "0.6091587", "0.60598415", "0.6026443", "0.6017204", "0.6015981", "0.5983826", "0.5976335", "0.59653765", "0.59580755", "0.5923995", "0.5918892", "0.5915054...
0.69880605
1
Check if values violate ascending restrictions.
def L8as(hkxX, EySs): for YRbF in EySs: if hkxX[YRbF - 1] > hkxX[YRbF]: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Digw(hkxX, EySs):\n for YRbF in EySs:\n if hkxX[YRbF - 1] >= hkxX[YRbF]:\n return True\n return False", "def GgBL(hkxX, U6Nh):\n for YRbF in U6Nh:\n if hkxX[YRbF - 1] <= hkxX[YRbF]:\n return True\n return False", "def xsDS(hkxX, U6Nh):\n for YRbF in U6Nh:\...
[ "0.8183847", "0.73511934", "0.7249759", "0.71722615", "0.7057953", "0.690399", "0.6872943", "0.67663115", "0.67663115", "0.6760645", "0.6558353", "0.6530063", "0.6512587", "0.651163", "0.64962196", "0.6481956", "0.642549", "0.6359703", "0.6330907", "0.6288047", "0.6283056", ...
0.7928284
1
Check if values violate strictlydescending restrictions.
def GgBL(hkxX, U6Nh): for YRbF in U6Nh: if hkxX[YRbF - 1] <= hkxX[YRbF]: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xsDS(hkxX, U6Nh):\n for YRbF in U6Nh:\n if hkxX[YRbF - 1] < hkxX[YRbF]:\n return True\n return False", "def Digw(hkxX, EySs):\n for YRbF in EySs:\n if hkxX[YRbF - 1] >= hkxX[YRbF]:\n return True\n return False", "def L8as(hkxX, EySs):\n for YRbF in EySs:\n...
[ "0.84339005", "0.7628731", "0.7523842", "0.7133888", "0.70231664", "0.6950009", "0.6932773", "0.6820504", "0.6754552", "0.6741733", "0.669186", "0.66703725", "0.66587", "0.65826565", "0.6574521", "0.6570542", "0.6519511", "0.6331931", "0.63152456", "0.6281613", "0.6281613", ...
0.8613062
0
Creates and saves a User with the given email,and password.
def xWi2(YKHO, D3lj, jTXt, **wdCM): if not D3lj: raise ValueError('The given email must be set') try: with Kh6j.atomic(): CBIr = YKHO.model(email=D3lj, **wdCM) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr except: raise
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def lYUQ(YKHO, D3lj, jTXt, **wdCM):\n print('\\n\\nCREATING USER HERE')\n ...
[ "0.87761754", "0.8512419", "0.8496816", "0.84919846", "0.84860075", "0.8475108", "0.8465424", "0.8445675", "0.84353423", "0.8434343", "0.8429534", "0.84273463", "0.8422517", "0.8422517", "0.8422517", "0.8422424", "0.84161586", "0.84135354", "0.8409333", "0.8404093", "0.840362...
0.84004796
23
(LinkedListRec, list) > NoneType Create a new linked list containing the elements in items. If list is empty, self.first initialized to EmptyValue.
def FIMM(YKHO, DumB): if len(DumB) == 0: YKHO.first = bZsG YKHO.rest = None else: YKHO.first = DumB[0] YKHO.rest = hD6b(DumB[1:])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, DumB: Optional[list]=None) -> None:\n if not DumB:\n YKHO._first = None\n else:\n YKHO._first = NSB4(DumB[0])\n ZbOB = YKHO._first\n for ZfUD in DumB[1:]:\n ZbOB.next = NSB4(ZfUD)\n ZbOB = ZbOB.next", "def mOHz(YKHO, ZfUD):\n ycBG = hD6b([...
[ "0.7493284", "0.7238089", "0.70151526", "0.6915475", "0.68666184", "0.68222326", "0.67641306", "0.6742666", "0.6742666", "0.6742666", "0.6537649", "0.6537649", "0.65142685", "0.6502923", "0.65021557", "0.6488869", "0.64560056", "0.64434683", "0.6426599", "0.63821185", "0.6368...
0.81393516
0
(LinkedListRec) > bool Return True if this list is empty.
def FBfn(YKHO): return YKHO.first == bZsG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A4KR(YKHO):\n if YKHO.head.next:\n return False\n else:\n return True", "def A4KR(YKHO):\n if YKHO.head is None:\n return True\n else:\n return False", "def A4KR(YKHO):\n if YKHO.head is None:\n return True\n else:\n return False", "def lsmZ(YKH...
[ "0.8261033", "0.8172892", "0.8172892", "0.8171785", "0.81557846", "0.8139684", "0.8139684", "0.8137322", "0.81172097", "0.8103295", "0.8087293", "0.80827504", "0.80748934", "0.80715966", "0.80642486", "0.8062583", "0.8046342", "0.8021641", "0.8021641", "0.80184567", "0.798652...
0.0
-1
(LinkedListRec) > int Return the number of items stored in this list.
def szAg(YKHO): if YKHO.is_empty(): return 0 else: return YKHO.rest.__len__() + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO) -> int:\n ewCu = 0\n ZbOB = YKHO._head\n while ZbOB is not None:\n ewCu += 1\n ZbOB = ZbOB.next\n return ewCu", "def u54L(YKHO):\n DpUl = YKHO._head\n UHFx = 0\n while DpUl != None:\n UHFx += 1\n DpUl = DpUl.next\n return UHFx", "def szAg(YKHO)...
[ "0.7927659", "0.788719", "0.7849613", "0.7845918", "0.78443265", "0.78268975", "0.78082", "0.77725387", "0.7735518", "0.77042735", "0.7665356", "0.76542246", "0.76349723", "0.763388", "0.7631435", "0.7614243", "0.7613658", "0.7600039", "0.7600039", "0.7582608", "0.75725013", ...
0.0
-1
(LinkedListRec) > NoneType Remove the first item in self. Raise an IndexError if self is empty.
def Hxuq(YKHO): if YKHO.is_empty(): raise IndexError else: YKHO.first = YKHO.rest.first YKHO.rest = YKHO.rest.rest
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hxuq(YKHO):\n if YKHO.size == 0:\n return None\n elif YKHO.size == 1:\n YKHO.last = None\n LihS = YKHO.first\n YKHO.first = YKHO.first.next\n YKHO.size -= 1\n return LihS.data", "def bJiA(YKHO):\n if YKHO.size == 0:\n return YKHO\n YKHO.head = YKHO.head.next\n ...
[ "0.76218396", "0.7618195", "0.76007426", "0.7565724", "0.75397944", "0.7515952", "0.74162006", "0.74024504", "0.7372876", "0.7267712", "0.72565526", "0.71879095", "0.71493274", "0.7149273", "0.7100552", "0.7044303", "0.6977371", "0.69773215", "0.69460016", "0.6908628", "0.689...
0.7247818
11
(LinkedListRec, object) > NoneType Insert item at the front of the list. Note that this should work even if the list is empty!
def mOHz(YKHO, ZfUD): ycBG = hD6b([]) ycBG.first = YKHO.first ycBG.rest = YKHO.rest YKHO.first = ZfUD YKHO.rest = ycBG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qIuc(YKHO, ZfUD: Any) -> None:\n Esd_ = NSB4(ZfUD)\n Esd_.next = YKHO._first\n if YKHO._first != None:\n YKHO._first.prev = Esd_\n YKHO._first = Esd_\n else:\n YKHO._first = Esd_\n YKHO._last = Esd_\n Esd_.prev = None", "def dZVG(YKHO, ZfUD):\n YKHO.single_linked...
[ "0.7413569", "0.6957954", "0.6940026", "0.68521297", "0.684739", "0.68442464", "0.6835473", "0.68296266", "0.6785217", "0.67557424", "0.672585", "0.6690573", "0.6690472", "0.6686361", "0.66583544", "0.66226524", "0.6619215", "0.6588456", "0.6584772", "0.6577534", "0.65568244"...
0.80455613
0
Return the reward associated with transitioning from s to sp via action a.
def jwyo(QTBn, XeOP, v4a6): if QTBn == ufkJ: return 1.0 return -0.01
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nFcm(YKHO, QTBn, XeOP, AUO5):\n gnPz.raiseNotDefined()", "def uSk8(YKHO, KCHu, jzdc, uG9z):\n pass", "def vOGg(YKHO, QTBn, XeOP):\n pass", "def YPaw(YKHO, KCHu, jzdc):\n KCs3 = KCHu[0]\n lbRx = KCHu[1]\n OHck = KCHu[2]\n HLYT = KCHu[3]\n if jzdc == YKHO._action_names.get('pick'):\...
[ "0.7036411", "0.69485754", "0.6814573", "0.6812722", "0.6766977", "0.6685897", "0.66669255", "0.66313946", "0.6614405", "0.6609754", "0.65373147", "0.653374", "0.64810646", "0.6465675", "0.64556134", "0.6371519", "0.6342474", "0.633956", "0.63314885", "0.63081825", "0.6298635...
0.0
-1
we need the passthrough and calling super() in an implementation class is dumb....
def BSWh(YKHO, *IIt3, N844=None, **lqvN) -> igJ6: return super().smart_post(*IIt3, reverse_kwargs=N844, **lqvN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO):\n raise NotImplementedError('The subclass must implement this method.')", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n ...
[ "0.7834453", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.740765", "0.7407...
0.0
-1
Returns if this node is a wall.
def OC7g(YKHO): return YKHO.node_type is CvW4.WALL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OC7g(YKHO, WKvO, LVAh):\n return YKHO.get_state_kind(WKvO, LVAh) == rRPI.CELL_KIND_WALL", "def OC7g(YKHO, httR):\n if httR == riCw.TOP:\n return YKHO.__top_wall\n elif httR == riCw.BOTTOM:\n return YKHO.__bottom_wall\n elif httR == riCw.LEFT:\n return YKHO.__left_wall\n el...
[ "0.8092866", "0.80119455", "0.79387945", "0.79387945", "0.7799613", "0.7739053", "0.7679117", "0.7674819", "0.7620815", "0.7602763", "0.75698334", "0.75319487", "0.7491335", "0.71672773", "0.71075016", "0.70961607", "0.7092569", "0.70424515", "0.7005819", "0.6970563", "0.6895...
0.90818393
0
Returns if this node is the start node
def S7iO(YKHO): return YKHO.node_type is CvW4.START
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pu_z(YKHO):\n return YKHO.start_", "def hg2N(YKHO):\n return YKHO.start", "def pu_z(YKHO):\n return YKHO.__start_node", "def Sb2S(tvqc, Q6kx, tP7Q):\n return tvqc == iPcU.START_ELEMENT and Q6kx.tagName == tP7Q", "def XDbp(YKHO):\n return YKHO.start_node", "def pu_z(YKHO):\n return Y...
[ "0.7810053", "0.7728751", "0.7585959", "0.74448013", "0.7369669", "0.7077358", "0.6997561", "0.6935086", "0.67747927", "0.6765461", "0.6752055", "0.67436886", "0.67165124", "0.6668526", "0.66590226", "0.6602108", "0.65961456", "0.6571829", "0.6546612", "0.6528012", "0.6507842...
0.8932713
0
Returns if this Node is the end node.
def a6DS(YKHO): return YKHO.node_type is CvW4.END
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S_Oz(YKHO, vwpB):\n return YKHO._to == vwpB", "def a6DS(YKHO):\n return YKHO._end", "def S_Oz(YKHO):\n return ZYgz.TIntHI_IsEnd(YKHO)", "def S_Oz(YKHO):\n return ZYgz.TIntFltHI_IsEnd(YKHO)", "def S_Oz(YKHO):\n return ZYgz.TIntPrFlt64HI_IsEnd(YKHO)", "def S_Oz(YKHO):\n return ZYgz.TI...
[ "0.8161859", "0.8100994", "0.75953233", "0.7587686", "0.7579785", "0.75778955", "0.7544482", "0.7539556", "0.75156844", "0.7514924", "0.75022316", "0.74959683", "0.74907106", "0.743299", "0.7421006", "0.7383516", "0.7373427", "0.73304665", "0.7329071", "0.72752386", "0.715885...
0.9038754
0
Returns if this Node is an empty node.
def FBfn(YKHO): return YKHO.node_type is CvW4.EMPTY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO) -> bool:\n return YKHO.__node is None", "def FBfn(YKHO):\n return len(YKHO.nodes) == 0", "def fPqL(YKHO):\n return YKHO._is_blank_node", "def FBfn(YKHO):\n if YKHO.head_node == None:\n return True\n else:\n return False", "def FBfn(YKHO):\n return YKHO.root is...
[ "0.91414505", "0.8672973", "0.86632043", "0.86170256", "0.85631824", "0.85605377", "0.8529529", "0.8529529", "0.84902817", "0.8489426", "0.8489426", "0.8489426", "0.848435", "0.8455911", "0.84275717", "0.8370225", "0.8370225", "0.8370225", "0.8313532", "0.82642406", "0.825904...
0.9159286
0
Returns if this Node is visited.
def JuW1(YKHO): return YKHO.node_type is CvW4.VISITED
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JuW1(YKHO):\n return YKHO.__visited", "def ocQG(YKHO):\n return YKHO.is_visited", "def jjWW(YKHO):\n return YKHO.__visitedFlag", "def TTOL(YKHO, kVa4):\n if kVa4.visited is True:\n return True\n else:\n return False", "def gj5E(YKHO):\n return YKHO.visited", "def JuW1(...
[ "0.8520464", "0.82158476", "0.81107664", "0.804917", "0.71087706", "0.67316", "0.67149794", "0.671061", "0.66909176", "0.6628439", "0.6610412", "0.65580136", "0.65438145", "0.6534115", "0.6524675", "0.65114826", "0.6500665", "0.6500665", "0.6481079", "0.63748306", "0.63522214...
0.88051564
0
Returns if this Node is a path Node.
def aB4X(YKHO): return YKHO.node_type is CvW4.PATH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JyFc(YKHO) -> bool:\n return YKHO._type == 'path'", "def aB4X(YKHO):\n return YKHO._tag == 'path'", "def aB4X(YKHO):\n return YKHO._tag == 'path'", "def aB4X(YKHO):\n return YKHO._tag == 'path'", "def aB4X(YKHO):\n return YKHO._tag == 'path'", "def aB4X(YKHO):\n return YKHO._tag == ...
[ "0.82375884", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253", "0.80730253"...
0.8924984
0
Return the Car with the lowest id from a QuerySet[Car]
def Da4q(roBb: QuerySet) -> CSmO: qfkM, JDje = (None, 999999999) for _6NH in roBb: if _6NH.id < JDje: qfkM, JDje = (_6NH, _6NH.id) return qfkM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cntZ(YKHO, **B2fa):\n [KAOR] = YKHO.filter(**B2fa).order_by('pk')[:1] or [None]\n return KAOR", "def Hk5Z(YKHO, hkS8):\n if YKHO.count() > 0:\n try:\n return YKHO.order_by(hkS8)[0]\n except:\n return min(YKHO, key=lambda XP5J: getattr(XP5J, hkS8))\n else:\n ...
[ "0.6466532", "0.6127777", "0.6075735", "0.5837482", "0.57740873", "0.5724545", "0.5667788", "0.56381553", "0.5603493", "0.5538217", "0.5536752", "0.5458166", "0.54482436", "0.54482436", "0.5368148", "0.53460145", "0.53357744", "0.5312369", "0.52869356", "0.5244149", "0.521186...
0.8522665
0
load a json file in Labyrinth object
def tyeH(YKHO, WJNU): try: with open(WJNU, 'r') as eHNT: YKHO.map = qQXR.load(open(WJNU)) print('Loading map : ', WJNU, '.......OK') except OSError as e: print('Problem with file :', tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc9H():\n pass", "def KrsJ(pmON: str) -> object:\n with open(pmON, encoding='utf-8') as Fwbn:\n return WEhu(Fwbn)", "def WEhu(nUeQ):\n with open(nUeQ, 'rb') as input:\n YbAN = qQXR.load(input)\n return YbAN", "def lc9H(J1UY):\n nPrm = qQXR.load(J1UY)\n J1UY.close()\n re...
[ "0.7488277", "0.7133127", "0.6991734", "0.6960282", "0.69343394", "0.6927932", "0.6921493", "0.6921399", "0.69157195", "0.691284", "0.6887516", "0.6877834", "0.6876537", "0.6834343", "0.6816007", "0.6803427", "0.67989105", "0.67910093", "0.67904365", "0.67706835", "0.6763663"...
0.0
-1
Creates and returns a new active directory user
def eLpg(Emd4, mWFP, rI3a, jTXt=None, bVmd=None, TSMu=True, YM2o={}): return rI3a.create_user(name=mWFP, password=jTXt, upn_suffix=bVmd, enable=TSMu, optional_attributes=YM2o)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BH1E(c9ua, zp3f, NtEF, jTXt):\n Q5YQ = mv1M(c9ua, zp3f, NtEF, jTXt)\n return Q5YQ", "def lYUQ(YKHO):\n return egNl().objects.create_user(YKHO.user_email, YKHO.user_password)", "def xWi2(YKHO, NtEF, jTXt):\n PWuZ = YKHO._ldappy.user_objects.get(name=NtEF).pretty_data()\n D3lj = PWuZ.get('mail...
[ "0.7658038", "0.76569545", "0.7638757", "0.7620139", "0.75911766", "0.75882006", "0.75552464", "0.75011", "0.74941975", "0.7462011", "0.74607664", "0.7458469", "0.74534553", "0.74534553", "0.74534553", "0.74534553", "0.74534553", "0.74505776", "0.74274004", "0.742268", "0.742...
0.0
-1