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
A sort function based on atom invariants with two levels of currying. To get the sort value for a specific key, use srt_val = sort_evaluator_atom_invariants_(gra)(idx_dct)(key) My reasoning for doing things this way is that `gra` never changes, but `idx_dct` does, so we need to be able to update the function with new i...
def HRud(I381): def e9vg(wEf2): return XTiz.inf if wEf2 is None else wEf2 def R1Gx(Qiky): """ normalize atomic symbols to make them sort according to the hill system (C first, H second, others in alphabetical order) """ Qiky = Hptn.to_symbol(Qiky) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_N5(I381):\n jpPc = w1xs(I381)\n\n def aMpU(GnBL):\n \"\"\" Sort value evaluator based on current class indices.\n\n :param idx_dct: A dictionary mapping atom keys to class indices.\n :type idx_dct: dict\n \"\"\"\n\n def LXG0(H5ew):\n rKbk = tuple(so...
[ "0.65632385", "0.58690524", "0.58640504", "0.5782884", "0.5318834", "0.52297586", "0.5185493", "0.50805277", "0.507752", "0.5069886", "0.5059814", "0.5052812", "0.5018518", "0.49884316", "0.4988415", "0.49764782", "0.49626407", "0.49516916", "0.4943658", "0.4943658", "0.49229...
0.637536
1
Behaves like a numpy "where" function, but specifically for use with images and image stacks. Thus, the mask can be a single layer image (i.e. a 2d array), but the true and false values can be multilayer image stacks (i.e. 3d arrays, where the first dimension is layer number, and the other two dimensions must match tho...
def LBHx(ZHfW, iIwB, D58F): if XTiz.isscalar(ZHfW): raise U4I0('Mask is a scalar - this needs an array') if ZHfW.ndim != 2: raise mLMq('Function only works with images. Shape of mask is %s' % (ZHfW.shape,)) oEeO = [iIwB, D58F] z2LT = [0, 0] BWMC = ['trueVal', 'falseVal'] for YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vJiB(oGem, ROpF=None):\n if isinstance(oGem, oyIN.ndarray):\n return oGem.astype(bool)\n if not isinstance(oGem, (list, tuple, oyIN.ndarray)):\n oGem = (oGem,)\n oGem = [Yc6P(ZHfW, ROpF) for ZHfW in oGem]\n ZHfW = oGem[0]\n for r8hN in oGem[1:]:\n ZHfW = oyIN.logical_or(ZHfW...
[ "0.6720698", "0.6656984", "0.65075684", "0.6454975", "0.6447126", "0.6286134", "0.6211682", "0.6135647", "0.6135054", "0.6092325", "0.60488135", "0.6035089", "0.602819", "0.60220677", "0.60081536", "0.60031384", "0.5987173", "0.5942535", "0.5912286", "0.5899735", "0.5853444",...
0.7597031
0
This function is almost entirely redundant, and should be replaced with numpy.bincount(). This function now uses that instead. Please use that directly, instead of this. The only difference is the treatment of null values (bincount() does not treat them in any special way, whereas this function allows a nullVal to be s...
def S5sV(VtSK, Ty25=0): BWz1 = XTiz.bincount(VtSK.flatten()) BWz1[Ty25] = Ty25 return BWz1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cA_G(pmON):\n bGrB, fuBA = gnPz.imread(pmON)\n oZOm = gnPz.closest_bins(fuBA).flatten()\n UHFx = oyIN.zeros(len(gnPz.bins))\n for i3cp in oZOm:\n UHFx[i3cp] += 1\n return UHFx", "def lUl3(VtSK, Ty25=0):\n maxY = S5sV(VtSK, Ty25)\n Gyl0 = maxY[VtSK]\n return Gyl0", "def VhIb(w...
[ "0.6477456", "0.61598325", "0.59448224", "0.5792406", "0.5788697", "0.5746568", "0.5691372", "0.56194603", "0.5614608", "0.5577839", "0.54668534", "0.54650104", "0.54650104", "0.5438217", "0.54214793", "0.53953457", "0.5374179", "0.53456384", "0.53153753", "0.5310672", "0.529...
0.7353158
0
Return a set of indexes into the original array, for which the value in the array is equal to val.
def uLiF(YKHO, wEf2): Aw8K = (YKHO.values == wEf2).nonzero()[0] if len(Aw8K) == 0: yKcO = 0 Os4s = 0 else: Aw8K = Aw8K[0] yKcO = YKHO.start[Aw8K] Os4s = YKHO.end[Aw8K] cXyw = () for YRbF in range(YKHO.nDims): cXyw += (YKHO.indexes[yKcO:Os4s, YRbF],) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c2KQ(nEeK, wEf2):\n P6bq = []\n YRbF = -1\n while YRbF < len(nEeK) - 1:\n try:\n YRbF = nEeK.index(wEf2, YRbF + 1)\n P6bq.append(YRbF)\n except:\n YRbF += 1\n return P6bq", "def nQWt(qw7D):\n wEf2 = qw7D[0]\n _0VL = []\n for or8S, U6D_ in en...
[ "0.6350823", "0.6033352", "0.6029377", "0.59946907", "0.59682155", "0.5938296", "0.5789151", "0.5723909", "0.5686986", "0.5550713", "0.55193883", "0.5488767", "0.5487777", "0.54783887", "0.54756665", "0.54299986", "0.5389058", "0.5381364", "0.53740776", "0.5356309", "0.535044...
0.7262786
0
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.7448925
86
As in the exact GP setting, the userdefined forward method should return the GP prior mean and covariance evaluated at input locations x.
def KVH6(YKHO, WKvO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n saqM = YKHO.mean_module(WKvO)\n ZZ2i = YKHO.covar_module(WKvO)\n return OWVr(saqM, ZZ2i)", "def KVH6(YKHO, WKvO):\n saqM = YKHO.mean_module(WKvO)\n ZZ2i = YKHO.covar_module(WKvO)\n return OWVr(saqM, ZZ2i)", "def KVH6(YKHO, WKvO):\n saqM = YKHO.mean_module(WKvO)\n ...
[ "0.7268049", "0.7268049", "0.7161776", "0.7146092", "0.7040963", "0.69923174", "0.6974504", "0.69418454", "0.68519306", "0.68519306", "0.6646959", "0.6620005", "0.6425912", "0.6419023", "0.6414215", "0.64008135", "0.6359986", "0.63190264", "0.6316423", "0.6296698", "0.629185"...
0.63131964
20
Returns the dataset version object with the specified version_id for the current dataset_id
def ffIs(YKHO, mljj): assert YKHO.dataset_id, 'dataset_id required!' return YKHO._datasets_request('GET', dataset_id=YKHO.dataset_id, versions_request=True, version_id=mljj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(YKHO, id):\n if id in YKHO.loaded_vsns:\n return YKHO.loaded_vsns[id]\n for Ty9i in YKHO.versions:\n if Ty9i['id'] == id:\n j69S = moxu.load(YKHO.backend, YKHO.path, Ty9i['id'], Ty9i['name'])\n YKHO.loaded_vsns[Ty9i['id']] = j69S\n return j69S", "def ...
[ "0.6634275", "0.6593017", "0.64242977", "0.6106608", "0.60769516", "0.60729885", "0.6035799", "0.59063965", "0.5889052", "0.5840798", "0.5805381", "0.5778593", "0.57599527", "0.57458377", "0.5728628", "0.5700211", "0.56702423", "0.5602366", "0.5602366", "0.5585361", "0.558360...
0.6236687
3
Takes a Mixpanel People profile and returns a datetime object for the $last_seen value or datetime.min if $last_seen is not set
def OPUy(z39Z): JRYC = qcWV.datetime.min try: sWUC = z39Z['$properties']['$last_seen'] try: JRYC = ksvS.parse_datetime_unaware(sWUC) except NameError: JRYC = qcWV.datetime.strptime(sWUC, '%Y-%m-%dT%H:%M:%S') except KeyError: return JRYC return JRYC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cdKH(YKHO):\n return YKHO.last_seen.seconds % 3600 / 60", "def Cx8b(YKHO):\n if not YKHO.lastseen:\n return 'nooit'\n return HVay(YKHO.lastseen).format('LLL')", "def TY7k(YKHO, lgWp, wzkt=None):\n wzkt = wzkt or int(ITS7.time())\n if not gCuF.read_only and lgWp.auth.user_id:\n ...
[ "0.5964214", "0.5881221", "0.5877265", "0.58060056", "0.5800367", "0.5711578", "0.564688", "0.557517", "0.5552749", "0.5548245", "0.55346704", "0.55032235", "0.5474667", "0.54727954", "0.54727954", "0.54694116", "0.5457139", "0.54315126", "0.53945136", "0.53869355", "0.538336...
0.58778185
2
Return the base quantity of the line to be used for the subtotal. This function can be extended by other modules to modify this base quantity (adding for example offers 3x2 and so on).
def sJed(YKHO, KBgZ, PObu, zFiD, QpfX=None): return zFiD.product_qty
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FqID(YKHO, KBgZ, PObu, zFiD, QpfX=None):\n return zFiD.price_unit", "def h4aS(YKHO):\n _Erc = super(H_h9, YKHO).get_total()\n if YKHO.qty < 10:\n wjRY = _Erc + 3\n return wjRY", "def Dwwn(YKHO):\n return YKHO.qty * YKHO.unit_cost", "def h4aS(YKHO):\n wjRY = super(H_h9, YKHO).get_...
[ "0.7170491", "0.6790378", "0.6618547", "0.6488592", "0.64720005", "0.6456542", "0.64519984", "0.6374224", "0.6352548", "0.6341283", "0.62961364", "0.6276024", "0.6254007", "0.6173362", "0.6168507", "0.61067265", "0.60816056", "0.60749924", "0.6049154", "0.60138255", "0.593514...
0.7094024
1
Sets the success of this AddUserResponse.
def nyyK(YKHO, nyyK): if nyyK is None: raise ValueError('Invalid value for `success`, must not be `None`') YKHO._success = nyyK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nyyK(YKHO, nyyK):\n YKHO._success = nyyK", "def Efwd(YKHO, BWXx: bool):\n YKHO._has_success = BWXx", "def nyyK(YKHO):\n YKHO.succeeded = True", "def nyyK(YKHO):\n return YKHO._success", "def NO1c(YKHO):\n pass", "def PfuU(YKHO, QOe9):\n QOe9.status = 'success'", "def LbSa(YKHO, Lb...
[ "0.7347533", "0.6732271", "0.6670637", "0.659846", "0.6455726", "0.6348484", "0.6331572", "0.6291924", "0.61139864", "0.6097529", "0.6090971", "0.59581167", "0.5939325", "0.58759016", "0.5822311", "0.5797745", "0.57823217", "0.5768823", "0.5747764", "0.5726224", "0.57241315",...
0.68870956
1
Sets the invite of this AddUserResponse.
def J5jR(YKHO, J5jR): YKHO._invite = J5jR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnag(cuiw, gNAR):\n cuiw.invite_event.clear()\n H5ew = QMfv(SOm9.common.pkc_encrypt(cuiw.get_channel_key(), cuiw.get_encryption_cert(gNAR))).decode()\n tO9_ = {ERMG.typ: ERMG.add_user, ERMG.inviter: cuiw.user, ERMG.invitee: gNAR, ERMG.chid: cuiw.chan, ERMG.chkey: H5ew}\n tO9_[ERMG.signature] = QMfv...
[ "0.58484644", "0.57977664", "0.543336", "0.5418577", "0.5307704", "0.52966595", "0.52908415", "0.5261979", "0.5259007", "0.5255082", "0.5245264", "0.5225261", "0.51780236", "0.517214", "0.516792", "0.5167428", "0.51581633", "0.51581633", "0.5125719", "0.50482315", "0.5008588"...
0.7290984
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, pnQA): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8455985", "0.83913255", "0.81440157", "0.8140831", "0.8132328", "0.80937284", "0.809181", "0.809181", "0.809181", "0.808509", "0.808509", "0.8076134", "0.8076134", "0.8065528" ]
0.0
-1
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, KndY, rotation=45) QrM1.yticks(wIWT, KndY) if NkkI: Bcwd = Bcwd.astype...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.78436774
54
Returns the name of this asset. It does not have to be globally unique.
def W0tD(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.asset.name", "def W0tD(YKHO):\n return YKHO._assets[0].get_name()", "def z0hT(YKHO):\n return YKHO._assetName", "def W0tD(YKHO, IbHI):\n return YKHO.get_name_and_meta(IbHI)[0]", "def mWFP(YKHO):\n return YKHO.raw_resource['name']", "def W0tD(YKHO):\n return...
[ "0.88368416", "0.87098813", "0.86980927", "0.81537056", "0.73748", "0.7307148", "0.72069603", "0.71628207", "0.71422666", "0.7140423", "0.7132671", "0.7107853", "0.7107853", "0.7099258", "0.709134", "0.709134", "0.709134", "0.70817596", "0.7071332", "0.7071332", "0.7071332", ...
0.0
-1
Returns the filesystem path of this asset.
def OyQC(YKHO): raise NotImplementedError('This asset does not support absolute paths')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO):\n return YKHO.file_path()", "def OyQC(YKHO):\n try:\n return YKHO._file.path\n except AttributeError:\n return Hy7s.path.abspath(YKHO._file.name)", "def pmON(YKHO):\n return YKHO.storage.path(YKHO.name)", "def E0XI(YKHO):\n pmON = '/'.join(YKHO.getPhysicalPath())\...
[ "0.7775341", "0.7743813", "0.77063227", "0.76972", "0.75553834", "0.754447", "0.7414948", "0.7414948", "0.7414948", "0.7414948", "0.7404819", "0.73313427", "0.73265743", "0.73218024", "0.731966", "0.731966", "0.7308446", "0.7300631", "0.72867125", "0.72832084", "0.7273043", ...
0.8134437
0
Returns the contents of this asset as a string.
def BuGO(YKHO): with W5SF(YKHO.open()) as nVrR: return nVrR.read()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BuGO(YKHO):\n return Fb0K(YKHO.join_str).join((IbHI.get_contents() for IbHI in YKHO._assets))", "def kGys(YKHO) -> str:\n return YKHO._contents", "def kGys(YKHO) -> str:\n return qe4Y.get(YKHO, 'contents')", "def l5Ny(YKHO) -> str:\n return YKHO.load().open().read().decode('utf-8')", "def h...
[ "0.7997895", "0.76065254", "0.7405697", "0.73060083", "0.72262096", "0.69293493", "0.6895529", "0.6861676", "0.6781436", "0.67798537", "0.67668617", "0.6741983", "0.6741983", "0.6741983", "0.67251444", "0.6631756", "0.6607297", "0.6591949", "0.6590127", "0.6577935", "0.655612...
0.69191575
6
Returns the name of this static asset.
def W0tD(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.asset.name", "def z0hT(YKHO):\n return YKHO._assetName", "def W0tD(YKHO):\n return YKHO._assets[0].get_name()", "def W0tD(YKHO, IbHI):\n return YKHO.get_name_and_meta(IbHI)[0]", "def mWFP(YKHO):\n return YKHO.raw_resource['name']", "def W0tD(YKHO):\n return...
[ "0.8792987", "0.8548125", "0.85241765", "0.77939516", "0.7334299", "0.7194273", "0.7103713", "0.7079433", "0.70613277", "0.70120585", "0.6909553", "0.68544364", "0.68142456", "0.6813276", "0.6797265", "0.6784841", "0.6784841", "0.6784841", "0.6784841", "0.6784841", "0.6784841...
0.0
-1
Returns the path of this static asset.
def OyQC(YKHO): return tA05.get_static_path(YKHO._name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B1tp(YKHO) -> str:\n return YKHO._assets_path", "def OyQC(YKHO):\n raise NotImplementedError('This asset does not support absolute paths')", "def dM7m(YKHO):\n return YKHO._path_static", "def j6_k(YKHO):\n pmON = ueEo['static_url']\n for y0cW, _o7t in YKHO.getPrefixDict().items():\n ...
[ "0.8258193", "0.82043314", "0.8130369", "0.81185204", "0.75715476", "0.753055", "0.7483479", "0.74327946", "0.74272054", "0.7284624", "0.7284624", "0.7206156", "0.71987224", "0.7190884", "0.71671766", "0.71449924", "0.71449924", "0.71449924", "0.71449924", "0.71405506", "0.71...
0.9167154
0
Returns the name of this asset.
def W0tD(YKHO): return YKHO._file.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.asset.name", "def W0tD(YKHO):\n return YKHO._assets[0].get_name()", "def z0hT(YKHO):\n return YKHO._assetName", "def W0tD(YKHO, IbHI):\n return YKHO.get_name_and_meta(IbHI)[0]", "def mWFP(YKHO):\n return YKHO.raw_resource['name']", "def mWFP(YKHO):\n return...
[ "0.9104021", "0.8910468", "0.88929474", "0.82623625", "0.78062207", "0.77111185", "0.7517854", "0.7508444", "0.750551", "0.74846256", "0.74846256", "0.74751496", "0.74687195", "0.746039", "0.746039", "0.746039", "0.746039", "0.746039", "0.746039", "0.746039", "0.746039", "0...
0.7686967
6
Returns the path of this asset.
def OyQC(YKHO): try: return YKHO._file.path except AttributeError: return Hy7s.path.abspath(YKHO._file.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OyQC(YKHO):\n raise NotImplementedError('This asset does not support absolute paths')", "def B1tp(YKHO) -> str:\n return YKHO._assets_path", "def OyQC(YKHO):\n return tA05.get_static_path(YKHO._name)", "def pmON(YKHO):\n return YKHO.file_path()", "def pmON(YKHO) -> str:\n return YKHO._pa...
[ "0.8646309", "0.8323301", "0.81062824", "0.79963243", "0.776395", "0.776395", "0.776395", "0.776395", "0.7748458", "0.77221406", "0.77221406", "0.7717903", "0.7702664", "0.77021796", "0.76926374", "0.7650192", "0.7650192", "0.7650192", "0.7650192", "0.7650192", "0.7650192", ...
0.7981885
4
Returns the URL of this asset.
def hKhs(YKHO): try: return YKHO._file.url except AttributeError: raise NotImplementedError('Underlying file does not have a URL.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKhs(YKHO):\n raise NotImplementedError('This asset does not have a URL')", "def hKhs(YKHO):\n return YKHO.resource.url", "def hKhs(YKHO):\n return fNSp.url(YKHO._name)", "def bD7m(YKHO):\n return YKHO.storage.url(YKHO.name)", "def bD7m(YKHO):\n bD7m = YKHO.url\n return bD7m", "def ...
[ "0.8741558", "0.7977144", "0.7704273", "0.76905286", "0.76369196", "0.7582901", "0.7582901", "0.7582901", "0.7580033", "0.75568366", "0.75175273", "0.75175273", "0.74972475", "0.7489297", "0.7489297", "0.7489297", "0.74526656", "0.7448423", "0.7439237", "0.74375445", "0.74375...
0.7484989
16
Returns the name of this asset.
def W0tD(YKHO): return YKHO._assets[0].get_name()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.asset.name", "def z0hT(YKHO):\n return YKHO._assetName", "def W0tD(YKHO, IbHI):\n return YKHO.get_name_and_meta(IbHI)[0]", "def mWFP(YKHO):\n return YKHO.raw_resource['name']", "def mWFP(YKHO):\n return YKHO.resource['metadata']['name']", "def W0tD(YKHO):\n ...
[ "0.9104021", "0.88929474", "0.82623625", "0.78062207", "0.77111185", "0.7686967", "0.7517854", "0.7508444", "0.750551", "0.74846256", "0.74846256", "0.74751496", "0.74687195", "0.746039", "0.746039", "0.746039", "0.746039", "0.746039", "0.746039", "0.746039", "0.746039", "0...
0.8910468
1
Get transaction based on global ID. The transactions created before 3.13 were using the `id` field as a graphql ID. From 3.13, the `token` is used as a graphql ID. All transactionItems created before 3.13 will use an `int` id as an identification.
def conO(id: str) -> nOIi.TransactionItem: bGrB, Aha8 = LLvb(global_id=id, only_type=mB7i, raise_error=True) if Aha8.isdigit(): o2VW = {'id': Aha8, 'use_old_id': True} else: o2VW = {'token': Aha8} KAOR = nOIi.TransactionItem.objects.filter(**o2VW).first() if not KAOR: raise s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kh6j(YKHO, vkFH: str):\n return _mmD(YKHO.transactions, 'id', vkFH)", "def nj7J(YKHO, vkFH: str) -> T74E:\n return YKHO.session.get_transaction(transaction_id=vkFH, account_or_account_id=YKHO.account_id)", "def nj7J(id):\n Kh6j = GGod().execute('SELECT * FROM transactions WHERE id = ?', (id,)).fet...
[ "0.7182398", "0.66852194", "0.6661184", "0.65961564", "0.63018525", "0.6162794", "0.597061", "0.5821919", "0.5809847", "0.5788191", "0.5758648", "0.57487965", "0.5701015", "0.5701015", "0.56982726", "0.5675578", "0.5630243", "0.5625807", "0.56230783", "0.5602318", "0.5583108"...
0.7261358
0
Return a dict with the JWT header.
def uj7d(LSCv): WBPg = {} WBPg['alg'] = 'RS256' WBPg['x5c'] = LSCv return WBPg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_hp(YKHO):\n return {'Authorization': 'JWT {}'.format(YKHO.token)}", "def D9uh(eOtH):\n return {'Authorization': '{0} {1}'.format('JWT', eOtH)}", "def jMZU(YKHO):\n if YKHO.jwt_header:\n return YKHO.jwt_header\n YKHO.jwt_header = YKHO.get_jwt_token_from_secret_file(str(YKHO.jwtfile))\n ...
[ "0.78672564", "0.76048833", "0.75601816", "0.75265014", "0.75215816", "0.7496575", "0.7466042", "0.717248", "0.69983655", "0.69623685", "0.69099456", "0.69099456", "0.6902243", "0.689437", "0.68754226", "0.6841986", "0.68239945", "0.6799475", "0.6796957", "0.6766815", "0.6740...
0.7222181
7
Return a serialized webpadlock JWT with indicated claims.
def hqaf(H5ew, LSCv, YOko, yIVm, R86S): RZVq = {} RZVq['iat'] = int(ITS7.time()) RZVq['systeminfo'] = YOko RZVq['metadata'] = yIVm RZVq['requestdata'] = R86S G9jH.debug('Claims:{}'.format(EazC(RZVq))) eOtH = DvJO.JWT(header=EazC(uj7d([LSCv])), claims=EazC(RZVq)) eOtH.make_signed_token(H5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hqaf(YKHO, PhGN: List[str], uaHA=None) -> str:\n RNEE = ITS7.time()\n kLQb = RNEE + YKHO.lifetime\n pB3N = uaHA or {}\n pB3N.update({'iss': YKHO.credentials['client_email'], 'sub': YKHO.credentials['client_email'], 'aud': PhGN, 'iat': RNEE, 'exp': kLQb, 'scope': ['email', 'openid', 'offline_access'...
[ "0.68677706", "0.67910427", "0.672376", "0.6498315", "0.6493711", "0.6462371", "0.64327574", "0.6417863", "0.6397847", "0.6331286", "0.6330385", "0.6328132", "0.6311513", "0.6298532", "0.6286201", "0.628251", "0.6252226", "0.6200429", "0.6192745", "0.61757296", "0.61696976", ...
0.63573235
9
Performs spatial binning on the image
def Bdwa(VXjJ, zNig=(32, 32)): jCRz = XC5k.resize(VXjJ[:, :, 0], zNig).ravel() ZfdO = XC5k.resize(VXjJ[:, :, 1], zNig).ravel() E7Rj = XC5k.resize(VXjJ[:, :, 2], zNig).ravel() return oyIN.hstack((jCRz, ZfdO, E7Rj))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ffz0(YKHO, LNo8):\n [usx6, ZLJ_] = oyIN.shape(LNo8)\n llUt = oyIN.zeros((usx6, ZLJ_), dtype=int)\n print('############## Using to binarize an image ##############')\n QzFq = YKHO.compute_histogram(LNo8)\n gwAu = YKHO.find_optimal_threshold(QzFq)\n for YRbF in range(usx6):\n for r845 in...
[ "0.69352764", "0.67242974", "0.66985327", "0.6591239", "0.65750676", "0.6558917", "0.648409", "0.64626867", "0.6425198", "0.62866664", "0.62821645", "0.6242868", "0.621549", "0.6211732", "0.61565405", "0.61213773", "0.608945", "0.6088147", "0.6065089", "0.60457504", "0.601457...
0.65748274
5
Draw rectangular coloured boxes onto an image.
def edPp(VXjJ, c8oy, qfpW=(0, 0, 255), IHC3=6): IxFp = oyIN.copy(VXjJ) for cviu in c8oy: XC5k.rectangle(IxFp, cviu[0], cviu[1], qfpW, IHC3) return IxFp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def do6P(LNo8, oUSw, zuY6=(255, 255, 255)):\n for FlUN in oUSw:\n XC5k.rectangle(LNo8, (FlUN[0], FlUN[1]), (FlUN[2], FlUN[3]), zuY6)", "def do6P(LNo8, oUSw, zuY6=(255, 255, 255)):\n for FlUN in oUSw:\n XC5k.rectangle(LNo8, (FlUN[0], FlUN[1]), (FlUN[2], FlUN[3]), zuY6, 3)", "def p05R(YKHO, V...
[ "0.8174154", "0.8163013", "0.79130167", "0.7851427", "0.7782174", "0.7781999", "0.7730505", "0.76477087", "0.7533017", "0.7439384", "0.7408217", "0.7371097", "0.73204786", "0.7278721", "0.7231273", "0.7228998", "0.72134227", "0.72033316", "0.71726686", "0.7159462", "0.7147471...
0.77926165
4
Remove falsepositive detections by replacing pixel values with 0 if fall below threshold
def a929(Y4Ek, gwAu): Y4Ek[Y4Ek <= gwAu] = 0 return Y4Ek
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kxz0(_nn5, PJWX=True):\n pQeo = 0\n hlel = jth9.deepcopy(_nn5)\n for AD11 in range(len(_nn5)):\n VO1y = _nn5[AD11]\n CAT3 = GVsd(VO1y, return_data=True, verbose=False)\n if CAT3[1] < 0.0:\n pQeo = pQeo + 1\n VO1y = VO1y - CAT3[1]\n hlel[AD11] = [0....
[ "0.67948526", "0.6484627", "0.6470356", "0.63842785", "0.6322157", "0.6281308", "0.62614936", "0.6259919", "0.6245503", "0.61781514", "0.6142475", "0.60975796", "0.60947573", "0.606705", "0.60414135", "0.6041099", "0.60358024", "0.6028124", "0.5985563", "0.5962509", "0.594914...
0.6552138
3
Draw bounding box around detected cars in image.
def W42i(VXjJ, Crrw): for k3BP in range(1, Crrw[1] + 1): waS5 = (Crrw[0] == k3BP).nonzero() FzSH = oyIN.array(waS5[0]) HoqM = oyIN.array(waS5[1]) cviu = ((oyIN.min(HoqM), oyIN.min(FzSH)), (oyIN.max(HoqM), oyIN.max(FzSH))) XC5k.rectangle(VXjJ, cviu[0], cviu[1], (0, 0, 255), 6)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pNvY(VXjJ, crT5):\n for k3BP in range(1, crT5.number_of_found_cars + 1):\n waS5 = (crT5.binary_map == k3BP).nonzero()\n FzSH = oyIN.array(waS5[0])\n HoqM = oyIN.array(waS5[1])\n cviu = ((oyIN.min(HoqM), oyIN.min(FzSH)), (oyIN.max(HoqM), oyIN.max(FzSH)))\n XC5k.rectangle(VX...
[ "0.7903878", "0.7662961", "0.7660024", "0.7120174", "0.7074927", "0.6869783", "0.68175775", "0.6774906", "0.67253506", "0.67119396", "0.66968006", "0.66665673", "0.66656303", "0.66420275", "0.6626208", "0.6620684", "0.66203547", "0.6616798", "0.658893", "0.6588098", "0.658493...
0.7412568
3
Remove falsepositive detections by replacing pixel values with 0 if fall below threshold
def a929(Y4Ek, gwAu): Y4Ek[Y4Ek <= gwAu] = 0 return Y4Ek
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kxz0(_nn5, PJWX=True):\n pQeo = 0\n hlel = jth9.deepcopy(_nn5)\n for AD11 in range(len(_nn5)):\n VO1y = _nn5[AD11]\n CAT3 = GVsd(VO1y, return_data=True, verbose=False)\n if CAT3[1] < 0.0:\n pQeo = pQeo + 1\n VO1y = VO1y - CAT3[1]\n hlel[AD11] = [0....
[ "0.6795012", "0.64846975", "0.64702564", "0.6384712", "0.6322283", "0.6281199", "0.62616825", "0.6258485", "0.62447816", "0.6179284", "0.6141829", "0.6096656", "0.6094723", "0.6066307", "0.60423833", "0.604138", "0.60367715", "0.60282224", "0.59844124", "0.5962889", "0.594859...
0.6552291
2
Draw bounding box around detected cars in image.
def W42i(VXjJ, Crrw): for k3BP in range(1, Crrw[1] + 1): waS5 = (Crrw[0] == k3BP).nonzero() FzSH = oyIN.array(waS5[0]) HoqM = oyIN.array(waS5[1]) cviu = ((oyIN.min(HoqM), oyIN.min(FzSH)), (oyIN.max(HoqM), oyIN.max(FzSH))) XC5k.rectangle(VXjJ, cviu[0], cviu[1], (0, 0, 255), 6)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pNvY(VXjJ, crT5):\n for k3BP in range(1, crT5.number_of_found_cars + 1):\n waS5 = (crT5.binary_map == k3BP).nonzero()\n FzSH = oyIN.array(waS5[0])\n HoqM = oyIN.array(waS5[1])\n cviu = ((oyIN.min(HoqM), oyIN.min(FzSH)), (oyIN.max(HoqM), oyIN.max(FzSH)))\n XC5k.rectangle(VX...
[ "0.7903878", "0.7662961", "0.7412568", "0.7120174", "0.7074927", "0.6869783", "0.68175775", "0.6774906", "0.67253506", "0.67119396", "0.66968006", "0.66665673", "0.66656303", "0.66420275", "0.6626208", "0.6620684", "0.66203547", "0.6616798", "0.658893", "0.6588098", "0.658493...
0.7660024
2
Initializes the BoEW model and the centers of the entropy
def DbxN(YKHO, nPrm, ZHfW, Crrw): YKHO.nbof.initialize_dictionary(YKHO.emb.get_value()) o4sw = YKHO.encode(nPrm, ZHfW) YKHO.entropy_loss.init_centers(o4sw, Crrw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n E4HN(YKHO.sampling_offsets, 0.0)\n wSAP = ht2j.arange(YKHO.num_heads, dtype=ht2j.float32) * (2.0 * epAf.pi / YKHO.num_heads)\n Va67 = ht2j.stack([wSAP.cos(), wSAP.sin()], -1)\n Va67 = (Va67 / Va67.abs().max(-1, keepdim=True)[0]).view(YKHO.num_heads, 1, 1, 2).repeat(1, YKHO.num_levels,...
[ "0.65069497", "0.6476305", "0.6429061", "0.6371071", "0.631411", "0.6288959", "0.6226542", "0.6213154", "0.6134072", "0.6134072", "0.6134072", "0.61204386", "0.6119046", "0.61001116", "0.60997087", "0.60775656", "0.60630065", "0.6043297", "0.6042457", "0.60399723", "0.6005389...
0.6910232
0
(list, object) > int Return the index of the first occurence of value in lst, or return 1 if value is not in lst. >>>linear_search([2, 5, 1, 3], 5) 1 >>>linear_search([2, 4, 2], 2) 0 >>>linear_search([], 5) 1
def TrX4(yv6U, BWXx): YRbF = 0 while YRbF != len(yv6U) and yv6U[YRbF] != BWXx: YRbF = YRbF + 1 if YRbF == len(yv6U): return -1 else: return YRbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TrX4(list, pan_):\n for YRbF in range(0, len(list)):\n if list[YRbF] == pan_:\n return YRbF\n return None", "def TrX4(YKHO, qtDU, H5ew):\n for YRbF in range(len(qtDU)):\n if qtDU[YRbF] == H5ew:\n return YRbF\n return -1", "def TrX4(U6D_, rnIm):\n for YRbF,...
[ "0.80147535", "0.78874797", "0.77700174", "0.77680653", "0.7680366", "0.7632612", "0.7601844", "0.75094604", "0.7483358", "0.7414145", "0.73233014", "0.72711563", "0.71523625", "0.70863545", "0.7082964", "0.69862443", "0.6962535", "0.69247067", "0.69242406", "0.6910896", "0.6...
0.81928027
0
(list, object) > int Return the index of the first occurence of value in lst, or return 1 if value is not in lst. >>>reverse_linear_search([2, 5, 1, 3], 5) 1 >>>reverse_linear_search([2, 4, 2], 2) 2 >>>reverse_linear_search([], 5) 1
def vXtB(yv6U, BWXx): YRbF = len(yv6U) - 1 while YRbF != -1 and yv6U[YRbF] != BWXx: YRbF = YRbF + 1 if YRbF == -1: return -1 else: return YRbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TrX4(yv6U, BWXx):\n YRbF = 0\n while YRbF != len(yv6U) and yv6U[YRbF] != BWXx:\n YRbF = YRbF + 1\n if YRbF == len(yv6U):\n return -1\n else:\n return YRbF", "def TrX4(list, pan_):\n for YRbF in range(0, len(list)):\n if list[YRbF] == pan_:\n return YRbF\n...
[ "0.8214037", "0.7811881", "0.7678202", "0.761455", "0.75719315", "0.7471751", "0.74088854", "0.73942846", "0.7364708", "0.7263918", "0.7109118", "0.7105341", "0.68528813", "0.68333226", "0.6781125", "0.67782277", "0.676876", "0.67368174", "0.66790384", "0.66738766", "0.664886...
0.8084179
1
takes in a list of words (i.e. strings without whitespacing and line breaks) and returns an encoding mapping dictionary where the key is the word and the value is its encoded integer form.
def pqxS(f1BO): yTXi = list(set(f1BO)) acax = {} for YRbF in range(len(yTXi)): acax[yTXi[YRbF].lower()] = YRbF + 4 acax['<PAD>'] = 0 acax['<START>'] = 1 acax['<UNK>'] = 2 acax['<UNUSED>'] = 3 return acax
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZHEX(KouY):\n cfuW = set([])\n for _CS_ in KouY:\n cfuW.update(_CS_.split())\n OaWc = {G1Hx: str(Ty9i) for Ty9i, G1Hx in enumerate(cfuW)}\n return OaWc", "def FxSh(YKHO) -> cuzp[str, int]:\n return {G1Hx.lower(): Ty9i for Ty9i, G1Hx in enumerate(YKHO.vocabulary_list)}", "def gEe1(V22M...
[ "0.71335065", "0.70546436", "0.65713084", "0.6417946", "0.63300884", "0.62952995", "0.6162101", "0.60165703", "0.5970169", "0.5933417", "0.5882145", "0.5871599", "0.5848844", "0.5838343", "0.5832272", "0.5813039", "0.5807773", "0.57929736", "0.5771663", "0.5763371", "0.571272...
0.54935
35
Testing that long file names are restricted.
def q6DN(HNEm, Ux0P, b4rG): jbn3 = PAdS(b4rG, filename=Ux0P) jbn3.run() HNEm(jbn3, [d7Ka])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def voE_(YKHO):\n Ux0P = 'filename'\n Fst3 = '.jpg'\n rQ_Z = '{}{}'.format(Ux0P * 10, Fst3)\n e8n1 = NJEp(rQ_Z)\n YKHO.assertEqual(len(e8n1), g4o6)\n YKHO.assertTrue(e8n1.startswith(Ux0P))\n YKHO.assertTrue(e8n1.endswith(Fst3))", "def WLTO(gIsw: str) -> bool:\n return len(gIsw + h3Xr) > 2...
[ "0.75923806", "0.70382094", "0.69962835", "0.69591105", "0.65800804", "0.65469855", "0.6501338", "0.64421874", "0.6316836", "0.624896", "0.61712444", "0.6104817", "0.609867", "0.6089928", "0.6018896", "0.59760225", "0.5911514", "0.5858581", "0.58457077", "0.58258003", "0.5816...
0.70991254
1
Block the indynode port on a random set of nodes. If the caller requests more nodes than are defined in the genesis file, all nodes will be blocked in random order. State file "block_node_port_random" located in the chaos temp dir (see get_chaos_temp_dir for details) is shared with the following functions block_node_po...
def ZYOv(GLbg: str, UHFx: Union[str, int], yXEU: str=ZBs6) -> bool: se2i = rj6f(GLbg, UHFx) kmfe = n3WU() aK5O = 0 e3w7 = 0 Nycv = {} for Q6kx in se2i: bo34.debug('node alias to block: %s', Q6kx) jK5u = tVZY(GLbg, Q6kx) a2an = jK5u['node_port'] if EN2q(Q6kx, str(a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fiMh(GLbg: str, gQVK: Union[str, int]=None, cShN: Union[str, int]=None, meM2: bool=True, _30w: str=yTuk, yokr: str=fAzp, dLnb: str=w9q8, tAld: str=lwbA, dBuj: str=cUBh, yXEU: str=ZBs6) -> bool:\n kmfe = n3WU()\n Nycv = {}\n try:\n with open(gzes(kmfe, 'block_node_port_random'), 'r') as eHNT:\n ...
[ "0.6147834", "0.5529674", "0.534016", "0.5319452", "0.5303682", "0.52873224", "0.5225756", "0.5204829", "0.5086431", "0.501167", "0.50058776", "0.5004662", "0.49958426", "0.4992787", "0.4979683", "0.49729177", "0.49382117", "0.49229327", "0.48967922", "0.48953432", "0.4892544...
0.7204151
0
Tokenize and encode the text into vectors, then stick inside dataframe
def sveu(bOBl, UJab=1000000000.0, BcCR=128): rybN = [] blF9 = [] TaYf = [] sI1X = [] O2xF = [] NNnC = [] ewCu = 0 for YRbF in range(len(bOBl)): try: pGFf = bOBl.iloc[YRbF]['clean_target_text'] mn6U = bOBl.iloc[YRbF]['clean_response_text'] except Ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nlLK(qIxc, jQ3Z):\n jQ3Z['token'] = jQ3Z.word.apply(qIxc.tokenizer.tokenize)\n jQ3Z = jQ3Z.explode('token', ignore_index=True)\n jQ3Z['token2word'] = jQ3Z['token'].apply(qIxc.tokenizer.convert_tokens_to_string).str.strip().str.lower()\n jQ3Z = tGl8(jQ3Z, qIxc.tokenizer)\n jQ3Z = i2MQ(qIxc, jQ3Z)...
[ "0.74359465", "0.6870086", "0.67845875", "0.6613198", "0.65740705", "0.6543908", "0.6414587", "0.63192683", "0.6283554", "0.62768084", "0.62644124", "0.62475985", "0.6224836", "0.61795366", "0.6168591", "0.6140506", "0.6135231", "0.6081744", "0.6077482", "0.6071361", "0.59910...
0.6076772
19
Returns the stop loss price. The actual stop loss price is calculated from the piven stop. The stop can be set in abosult (default) or in relative values to the price. Please note that the stop must be positive for BUY orders and negative for SELL orders.
def oOwi(hI0L, JCyR, jMx0=False): if jMx0: Mjwr = hI0L - JCyR else: Mjwr = abs(JCyR) return Mjwr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sct0(YpYh: float, IxZ0: float, yLx6: float, HEZd: str):\n if HEZd == 'LONG':\n if not yLx6:\n yLx6 = IxZ0 - IxZ0 / 100 * SAs9.stop_loss_in_percent\n if YpYh - YpYh / 100 * SAs9.stop_loss_in_percent > yLx6:\n yLx6 = YpYh - YpYh / 100 * SAs9.stop_loss_in_percent\n if...
[ "0.7588659", "0.67977715", "0.66036975", "0.64967895", "0.6380181", "0.6181023", "0.61807066", "0.6105024", "0.5836369", "0.58130264", "0.5792011", "0.575868", "0.57421464", "0.57282007", "0.5661087", "0.5573668", "0.5565466", "0.55639017", "0.5516268", "0.5503601", "0.547843...
0.8425858
0
Returns the risk per unit as difference of the current price minus the stop loss price.
def pU5M(hI0L, Mjwr): return abs(hI0L - Mjwr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oOwi(hI0L, JCyR, jMx0=False):\n if jMx0:\n Mjwr = hI0L - JCyR\n else:\n Mjwr = abs(JCyR)\n return Mjwr", "def hjud(YKHO):\n try:\n return YKHO.price_close - YKHO.price_open\n except:\n return", "def L0ib(YKHO):\n try:\n return YKHO.price_diff / YKHO.pric...
[ "0.69525164", "0.6895973", "0.6526148", "0.6493237", "0.6306785", "0.6159353", "0.6158534", "0.6129895", "0.6122254", "0.6116348", "0.61020094", "0.6072795", "0.5979309", "0.59288216", "0.5919011", "0.58988154", "0.58616847", "0.58564967", "0.5855779", "0.5827925", "0.5827925...
0.7527504
0
sets the Sprite to dead
def ZHYy(YKHO): assert YKHO.health < 0, 'Health is not less than 0, Sprite should not be dead' YKHO.is_alive = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XnNM(YKHO):\n YKHO.is_dead = True\n YKHO.color = (255, 0, 0)", "def ZHYy(YKHO):\n YKHO.is_alive = False\n print(YKHO.name, 'has been slayed: My evil comrades will avenge my death!')", "def b3yu(YKHO):\n YKHO.dead = True", "def ZHYy(YKHO):\n YKHO.is_alive = False\n print(YKHO.name, 'd...
[ "0.7112419", "0.69177926", "0.6857524", "0.67910445", "0.6723487", "0.6723487", "0.6627412", "0.64838713", "0.62620175", "0.6245759", "0.6223373", "0.61635333", "0.6123344", "0.60842526", "0.6034199", "0.6013487", "0.59938955", "0.5978125", "0.5934977", "0.5918953", "0.587451...
0.8538984
0
Tear down ZMQ socket.
def WoCN(YKHO): YKHO.stop_full() YKHO.ctrl_sock.close() YKHO.context.term()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hqgk(YKHO):\n YKHO.connected = False\n YKHO.protocol.send_message(YKHO.sock, '__!shutdown__')\n nPrm = YKHO.protocol.recover_message(YKHO.sock)\n YKHO.sock.close()\n YKHO.sock = None", "def ryoh(YKHO):\n YKHO.context.destroy()", "def hqgk(YKHO):\n YKHO.socket.close()\n YKHO.socket_s...
[ "0.73503745", "0.73096895", "0.7231803", "0.71864796", "0.71188074", "0.711665", "0.7075718", "0.7047037", "0.69911534", "0.6938244", "0.69138473", "0.68389595", "0.675465", "0.67459685", "0.6742707", "0.6741266", "0.67081887", "0.6693308", "0.667428", "0.66438633", "0.661772...
0.6124287
76
Controller for the app home page. GET requests can be launched from either HydroShare or the Tethys Portal. Requests can contain URL query parameters describing a resource or aggregation.
def kZiy(QePW): QpfX = {'resource_id': QePW.GET.get('resource_id'), 'aggregation_id': QePW.GET.get('aggregation_path'), 'geoserver_url': P4t4.get_custom_setting('geoserver_url'), 'hydroserver_url': P4t4.get_custom_setting('hydroserver_url'), 'max_layers': P4t4.get_custom_setting('max_layers')} return _1tc(QePW,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QpfX, QePW):\n return {}", "def kZiy():\n pB3N = p_z1.get_payload()\n return TvZl('index.html', payload=pB3N)", "def d6pt():\n geh0.view_title = wjQK.get('app.name') + ' Home Page'\n return dict(message='')", "def kZiy(YKHO, *qIxc, **B2fa):\n pass", "def kZiy():\n B2Dn = 1\n ...
[ "0.6815008", "0.66603345", "0.66419333", "0.6555703", "0.6526086", "0.64835405", "0.64466995", "0.6422764", "0.6388012", "0.6381053", "0.6381053", "0.6381053", "0.63683623", "0.635375", "0.63486767", "0.6245074", "0.6225435", "0.62205166", "0.6215791", "0.61986035", "0.619708...
0.72442335
0
r"""The constructor of the SGD class
def FIMM(YKHO, OnWS: int, DPNn: BasicCircuit, b0Ix: float): super().__init__(OnWS, DPNn) YKHO._learning_rate = b0Ix
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, ROpF, mVUw, VDCw, lUtN, kc1W, Fdzd):\n YKHO.shape = ROpF\n YKHO.rate = mVUw\n YKHO.state0 = VDCw\n YKHO.state1 = lUtN\n YKHO.variables = kc1W\n YKHO.bivariateGradInd = jBQG.getBivariateFeatGradientIndex(VDCw, lUtN, Fdzd)\n YKHO.nStates = Fdzd\n YKHO.variable = YKHO.variables[...
[ "0.7010604", "0.6957143", "0.6895721", "0.6827326", "0.6762734", "0.67172724", "0.66993105", "0.66695994", "0.6608632", "0.66043055", "0.66025925", "0.6585092", "0.65232074", "0.6521873", "0.6513582", "0.64843017", "0.6483895", "0.6478602", "0.6470497", "0.6469032", "0.646704...
0.0
-1
Mockable method to get a connection to the SNS service.
def OKYa(YKHO): return iVGz.client('sns', region_name=YKHO.region)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UzPC():\n return AEAp()", "def Onoy(YKHO):\n yR_P = CFMy()\n UzPC = QRBN.get_connection(yR_P)\n YKHO.assertEqual(UzPC, yR_P.slxos_connection)", "def jAWd(YKHO, VFhd):\n UzPC = lxP0()\n VFhd.assert_called_once_with(host=U2Rn, port=int(ra4R), username=uiuR, password=Y_8t, cnopts=bmCR)\n ...
[ "0.6760185", "0.67045295", "0.6263524", "0.6212023", "0.6189095", "0.60578346", "0.6047458", "0.5938434", "0.59329337", "0.5796696", "0.5764401", "0.5668841", "0.5666508", "0.56389004", "0.549957", "0.549739", "0.54761285", "0.5447085", "0.54465145", "0.5419874", "0.5394882",...
0.65635824
2
Load user by ID.
def lyxB(uJjO): return mv1M.get_by_id(int(uJjO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lyxB(id):\n return mv1M.get_by_id(int(id))", "def lyxB(id):\n return mv1M.query.get(int(id))", "def lyxB(id):\n return mv1M.query.get(int(id))", "def lyxB(id):\n return mv1M.query.get(int(id))", "def lyxB(id):\n return mv1M.query.get(int(id))", "def lyxB(id):\n return mv1M.query.get...
[ "0.8996386", "0.8917922", "0.8851071", "0.8851071", "0.8851071", "0.8851071", "0.8824558", "0.8784457", "0.8637541", "0.8552219", "0.8500475", "0.8500475", "0.8500475", "0.8500475", "0.8500475", "0.8500475", "0.8487927", "0.84707946", "0.8445067", "0.84212524", "0.83829105", ...
0.8620829
11
Display or edit the current user profile.
def SGll(): CBIr = c5ow y36f = True if not CBIr.active: Dwep('This user account is under review. Please update your profile ' + ' and contact the organizing team to access all functions of ' + 'this platform.', 'warning') L03z = WyRb(obj=CBIr, next=QePW.args.get('next')) L03z.roles.choices =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kcpu():\n CBIr = c5ow\n L03z = faua(obj=CBIr)\n L03z.populate_obj(CBIr)\n if L03z.validate_on_submit():\n L03z.populate_obj(CBIr)\n NCls.session.commit()\n Dwep('You have successfully edited your profile!')\n return TvZl('user/user.html', title='View Profile', user=CBIr, for...
[ "0.8453015", "0.806588", "0.80351865", "0.78897697", "0.77928376", "0.75748926", "0.7514304", "0.74695206", "0.74329185", "0.7361205", "0.7361173", "0.73514605", "0.73473984", "0.72933596", "0.7281994", "0.72523165", "0.72478575", "0.71817636", "0.716739", "0.7163399", "0.711...
0.740216
9
Convert a string to kebabcase.
def UdJg(_2sc: str) -> str: return StCS(_2sc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SSH2(vIwR):\n IvcG = ''\n for sZqf in vIwR:\n if sZqf.isdigit():\n continue\n elif sZqf.isupper():\n IvcG += '-' + sZqf.lower()\n else:\n IvcG += sZqf\n return IvcG if IvcG[0] != '-' else IvcG[1:]", "def aDu2(BWXx: str, **B2fa: Any) -> str:\n ...
[ "0.79788256", "0.7572289", "0.6794973", "0.6585272", "0.6455724", "0.63580495", "0.63474697", "0.62911844", "0.628673", "0.6252043", "0.62008524", "0.6179952", "0.61788523", "0.6151217", "0.6129791", "0.6110715", "0.6102956", "0.61010796", "0.607655", "0.6066681", "0.6041014"...
0.6744712
3
Calculate the distance in kilometres between two points on the earth (specified in decimal degrees)
def cS6q(igSk, GgQG, TGuP, tk0B): igSk, GgQG, TGuP, tk0B = map(Y_1E, [igSk, GgQG, TGuP, tk0B]) n_9K = TGuP - igSk H91H = tk0B - GgQG jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2 Z9rn = 2 * P099(PZyS(jzdc)) Mkmy = 6371 return Z9rn * Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(GgQG, igSk, tk0B, TGuP):\n GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2\n Z9rn = 2 * P099(PZyS(jzdc))\n q5XV = 6367 * Z9rn\n return q5XV", "def WWYU...
[ "0.76750636", "0.7674425", "0.7627555", "0.76152205", "0.7613395", "0.7590489", "0.75863576", "0.7550474", "0.7550474", "0.7550474", "0.7550474", "0.7550474", "0.7550237", "0.75406015", "0.75199986", "0.7507763", "0.7505633", "0.7503883", "0.75034183", "0.74893993", "0.748668...
0.714709
46
This function will delete all leaves from a tree, but if the root is the only node given it will not delete itself
def q5mA(YKHO): if not (YKHO.left or YKHO.right): return True if YKHO.left: PTpj = YKHO.left.delete_leaves() if PTpj is True: YKHO.left = None if YKHO.right: PTpj = YKHO.right.delete_leaves() if PTpj is True: YKHO.right = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nGLa(YKHO, tk5Y):\n if not (tk5Y.left or tk5Y.right):\n print('delete')\n print(tk5Y.data)\n print('---------')\n tk5Y = None\n return\n if tk5Y.left:\n YKHO.delete_leaves_2(tk5Y.left)\n if tk5Y.right:\n YKHO.delete_leaves_2(tk5Y.right)", "def c4ca(tk...
[ "0.7738134", "0.7038441", "0.69730145", "0.6909312", "0.67814344", "0.6652899", "0.6622158", "0.6617548", "0.6545824", "0.65398854", "0.6500479", "0.6480772", "0.6457277", "0.6427982", "0.6424044", "0.642038", "0.6365937", "0.63100755", "0.6280858", "0.62718207", "0.6258822",...
0.74955225
1
Return RGBA values for ``color`` property.
def qfpW(YKHO): return cCuI(YKHO.value_of_css_property('color'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fJcE(qfpW: object) -> tuple:\n return (qfpW.red(), qfpW.green(), qfpW.blue(), qfpW.alpha())", "def qfpW(YKHO):\n return YKHO._rgba", "def qfpW(YKHO):\n return YKHO._rgba", "def sIQN(qfpW: Color) -> K1MH:\n if len(qfpW) == 4:\n return YWvJ(K1MH, qfpW)\n elif len(qfpW) == 3:\n ...
[ "0.7343431", "0.7000932", "0.7000932", "0.6592825", "0.6573416", "0.6468877", "0.64364314", "0.6287578", "0.6286597", "0.62671024", "0.6190924", "0.6190924", "0.6190372", "0.6141411", "0.61247754", "0.6122992", "0.6105318", "0.6056282", "0.601959", "0.60136694", "0.6011293", ...
0.6914371
3
Return RGBA values for ``backgroundcolor`` property.
def QPVU(YKHO): return cCuI(YKHO.value_of_css_property('background-color'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxqb(YKHO, geyT):\n\n def JRg1(qnkL):\n \"\"\"convert str 'rgb(255, 255, 255)' to list [255, 255, 255]\"\"\"\n return [int(Z9rn) for Z9rn in ZbWC.sub('[^0-9,]', '', qnkL).split(',')]\n xNNe = 0.0\n kijK = YKHO.get_selenium_element(geyT)\n jHZe = []\n DA9_ = []\n while xNNe < 1:\...
[ "0.6764329", "0.6697507", "0.65333664", "0.64372325", "0.6402738", "0.63212687", "0.6299003", "0.62782323", "0.6239178", "0.62080777", "0.61114246", "0.6085414", "0.6034118", "0.60286945", "0.598664", "0.59860194", "0.5890674", "0.5873231", "0.5873231", "0.5871509", "0.577434...
0.7491768
0
The element's ``value`` attribute.
def BWXx(YKHO): return YKHO.element.get_attribute('value')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO):\n return YKHO.element().get_attribute('value') if YKHO.exists() else ''", "def _h_a(YKHO):\n return YKHO.load_attr('value')", "def BWXx(YKHO):\n return YKHO.raw.get_attribute('value')", "def BWXx(YKHO):\n return YKHO.get_attribute('value', str(YKHO.children))", "def Zmkp(YKHO):\...
[ "0.8537093", "0.7993024", "0.7862474", "0.7829206", "0.7814218", "0.7814218", "0.77572465", "0.77572465", "0.77572465", "0.77569956", "0.7735882", "0.7735882", "0.7731189", "0.77214456", "0.77138174", "0.77138174", "0.77138174", "0.77106285", "0.77030873", "0.77030873", "0.77...
0.8882436
0
The element's selection state.
def BWXx(YKHO): return YKHO.element.is_selected()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OZi0(YKHO):\n return YKHO._element_call(lambda: YKHO.el.is_selected)", "def nQ9w(YKHO):\n return YKHO.selected", "def nQ9w(YKHO):\n return YKHO.selection", "def XBY9(YKHO):\n return YKHO.selection", "def se2i(YKHO):\n return YKHO._selected", "def OZi0(YKHO):\n return YKHO.container[...
[ "0.7492136", "0.7212147", "0.7201546", "0.719847", "0.7133201", "0.7104456", "0.70993894", "0.7040215", "0.7040215", "0.68924564", "0.6817247", "0.6758086", "0.6746569", "0.67323345", "0.6729183", "0.67091006", "0.6504068", "0.6461723", "0.64256346", "0.6399943", "0.6328602",...
0.6459935
18
The element's selected value.
def BWXx(YKHO): return YKHO.element.get_attribute('value')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yhpV(YKHO):\n MTKo = YKHO.selected_option\n return MTKo.value if MTKo else None", "def BWXx(YKHO):\n return YKHO.element.is_selected()", "def TI5Q(YKHO):\n return YKHO.selectedText()", "def dpBY(YKHO):\n try:\n return YKHO.listbox.get(YKHO.listbox.curselection()[0])\n except Inde...
[ "0.8485434", "0.7745355", "0.75646305", "0.75018054", "0.7435818", "0.741141", "0.7403814", "0.7288268", "0.72312486", "0.7175368", "0.71701187", "0.716595", "0.70813894", "0.70185167", "0.69993067", "0.69622207", "0.6950321", "0.6948763", "0.69426227", "0.69234335", "0.68780...
0.7231325
10
Set the element's value to `value`.
def wkZW(YKHO, B2Dn, BWXx): U6D_ = YKHO.get(B2Dn) U6D_.value = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def j6Nn(YKHO, BWXx):\n YKHO.value = str(BWXx)", "def mokr(YKHO, BWXx):\n YKHO._value = BWXx", "def j6Nn(YKHO, wEf2):\n YKHO.value = wEf2", "def j6Nn(...
[ "0.8011748", "0.8011748", "0.8011748", "0.77181935", "0.77106756", "0.76598567", "0.76474065", "0.7572529", "0.7572529", "0.75661904", "0.7513297", "0.7513297", "0.7513297", "0.7513297", "0.7513297", "0.7513297", "0.7489302", "0.74786955", "0.7458836", "0.74275374", "0.733012...
0.740264
20
Return the current state of the switch.
def QTBn(YKHO) -> bool: return YKHO.get_state(YKHO.entity_ids['switch'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0mt(YKHO):\n return YKHO._current_state", "def ja6o(YKHO):\n return YKHO.controller.get_state()", "def c0mt(YKHO):\n return YKHO.game.get_current_state()", "def exYf(YKHO):\n if YKHO.entity_description.value_fn is not None:\n return YKHO.entity_description.value_fn(YKHO._wrap_device)\...
[ "0.7425279", "0.739453", "0.7389475", "0.73426807", "0.72858995", "0.7284404", "0.7284404", "0.7283007", "0.7248187", "0.72135603", "0.7213438", "0.7166461", "0.7131392", "0.7085297", "0.7083024", "0.7065791", "0.7061634", "0.70615196", "0.7058502", "0.7056262", "0.70368433",...
0.73506117
3
Turn the switch off if no one is home.
def NOo2(YKHO, LEXu: Union[str, dict], xC3W: str, gv2B: str, BdN0: str, B2fa: dict) -> None: YKHO.log('No one home; not allowing switch to activate') YKHO.toggle(state='off')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z_rv(YKHO, **B2fa) -> None:\n vzeF.debug('SynoDSMSurveillanceHomeModeToggle.turn_off(%s)', YKHO._api.information.serial)\n YKHO._api.surveillance_station.set_home_mode(False)", "def Z_rv(YKHO, **B2fa):\n YKHO.vacuum.stop()\n YKHO.vacuum.home()", "def dNOs(YKHO):\n YKHO._switch_callback = Non...
[ "0.7589429", "0.7459149", "0.742201", "0.7397898", "0.7355061", "0.7350044", "0.7348074", "0.73114276", "0.7298673", "0.72864807", "0.72778493", "0.72699744", "0.7264079", "0.7247986", "0.72374797", "0.7232648", "0.7230164", "0.72077096", "0.7186795", "0.71534324", "0.7101328...
0.0
-1
An async iterator object yielding elements from ``subject``
def aiter(U4ZT: AnyIterable[T]) -> eZmq[Kt_s]: if isinstance(U4ZT, kSnS): return U4ZT.__aiter__() else: return RRlD(U4ZT).__aiter__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def borrow(oHE7: AsyncIterator[T]) -> a53J[Kt_s, None]:\n async for ZfUD in oHE7:\n yield ZfUD", "def Vs4Q(YKHO):\n DumB = YKHO._fetch()\n for ZfUD in DumB:\n yield ZfUD", "async def _aiter_sync(OxJJ: Iterable[T]) -> eZmq[Kt_s]:\n for ZfUD in OxJJ:\n yield ZfUD", "def V...
[ "0.6790663", "0.66644114", "0.65314794", "0.65033853", "0.64963", "0.632815", "0.6262574", "0.6222994", "0.6210711", "0.6210294", "0.61790127", "0.61499745", "0.61499023", "0.6124081", "0.6079985", "0.60372174", "0.60367197", "0.6030758", "0.6016303", "0.6006711", "0.6004539"...
0.7413828
0
Borrow an async iterator for iteration, preventing it from being closed
async def borrow(oHE7: AsyncIterator[T]) -> a53J[Kt_s, None]: async for ZfUD in oHE7: yield ZfUD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X73w(WRKq: AnyIterable) -> eZmq[Kt_s]:\n if isinstance(WRKq, eZmq):\n return WRKq\n\n async def gen():\n for YRbF in WRKq:\n yield YRbF\n return eK5b()", "async def _aiter_sync(OxJJ: Iterable[T]) -> eZmq[Kt_s]:\n for ZfUD in OxJJ:\n yield ZfUD", "def E6Al(YKHO, E...
[ "0.7423922", "0.70553017", "0.6690503", "0.66565377", "0.65138143", "0.64905953", "0.637422", "0.63242024", "0.6289853", "0.6289547", "0.62873447", "0.62873447", "0.62828374", "0.6124208", "0.61166036", "0.6076068", "0.6065881", "0.6060809", "0.6055403", "0.60457146", "0.6039...
0.7927861
0
Method to verify an email so SES mocking works
def _K1e(YKHO): print('\n ** Setting up SES mocking') faRV = iVGz.client('ses', region_name='us-east-1') faRV.verify_domain_identity(Domain='donatemates.com')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fpxM(YKHO, jhCC):\n with cpYK.record_messages() as bybv:\n jhCC.send_email_verification()\n assert len(bybv) == 1\n tO9_ = bybv[0]\n assert 'jjones@yahoo.com' in tO9_.recipients\n assert tO9_.subject == 'Ask Your Peeps: Email Verification'\n assert 'To verify your e...
[ "0.739667", "0.7334669", "0.7332078", "0.73241776", "0.728366", "0.72539854", "0.7246461", "0.71617275", "0.7135525", "0.70760447", "0.70270294", "0.70027554", "0.69734", "0.69734", "0.69720846", "0.6950871", "0.69423187", "0.6939461", "0.6938088", "0.692822", "0.691937", "...
0.6295932
89
Get the current location
def IaGi(YKHO): if YKHO.currLoc < 0 or YKHO.currLoc > len(YKHO.history): raise ValueError('History is empty or invalid') return YKHO.history[YKHO.currLoc]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y45c(YKHO):\n return YKHO.enu_2_local()", "def Y45c(YKHO):\n return YKHO._current_loc", "def Y45c():\n global current_location\n return ekLW", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.__location", "def QX...
[ "0.8999848", "0.8908268", "0.8904931", "0.8403391", "0.8247378", "0.8191025", "0.8039015", "0.7899433", "0.78865606", "0.7886449", "0.78854406", "0.78854406", "0.78854406", "0.78854406", "0.78854406", "0.78854406", "0.78854406", "0.78854406", "0.78854406", "0.78854406", "0.78...
0.0
-1
Adds discounted sum of rewards to all time steps of all trajectories
def Mh9s(MeGp, KMvS): for Hydg in MeGp: if KMvS < 0.999: vwlo = Hydg['rewards'] * (1 - KMvS) else: vwlo = Hydg['rewards'] r1cy = FMQW(vwlo, KMvS) Hydg['disc_sum_rew'] = r1cy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AC1_(vwlo):\n g2lU = oyIN.zeros_like(vwlo)\n S8qo = 0\n for a1PO in reversed(range(0, len(vwlo))):\n S8qo = S8qo * lA6Z + vwlo[a1PO]\n g2lU[a1PO] = S8qo\n return g2lU", "def uCre(YKHO) -> None:\n for YWSi, vOGg in YKHO.rewards.items():\n YKHO._cumulative_rewards[YWSi] += v...
[ "0.72980314", "0.7011921", "0.6728515", "0.6725814", "0.6645948", "0.6636978", "0.6636169", "0.6597911", "0.659226", "0.6587674", "0.6561878", "0.65603536", "0.6530804", "0.6519008", "0.6513319", "0.65098304", "0.6502283", "0.64437884", "0.6427616", "0.64253783", "0.6417393",...
0.6673
4
Return whether `self` and `other` have any points in common.
def PZIW(YKHO, Elif): return YKHO.start <= Elif.end and YKHO.end >= Elif.start
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rEwH(YKHO, Elif) -> bool:\n return YKHO.x == Elif.x and YKHO.y == Elif.y", "def N1Ub(YKHO, Elif) -> bool:\n if YKHO.collide:\n if YKHO.bbox_intersect(Elif):\n vgXP = (round(YKHO.x - Elif.x), round(YKHO.y - Elif.y))\n if YKHO.mask.overlap(Elif.mask, vgXP):\n r...
[ "0.7825174", "0.76833695", "0.7580746", "0.7556123", "0.75286084", "0.7451894", "0.73591477", "0.7334849", "0.73082703", "0.7301225", "0.72702116", "0.7269273", "0.7268638", "0.726756", "0.72435606", "0.723262", "0.72258854", "0.7195468", "0.7180176", "0.7180176", "0.7154824"...
0.658957
73
Sets Up the enviroment for tests
def FCbF(YKHO): if Hy7s.path.exists('file.json'): Hy7s.remove('file.json')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n ct9j()", "def HTzG(YKHO):\n pass", "def Fuxf(YKHO):\n Hy7s.environ['GIT_NAME'] = t99W.GIT_NAME\n Hy7s.environ['GIT_EMAIL'] = t99W.GIT_EMAIL\n Hy7s.environ['GH_TOKEN'] = 'this-is-a-bogus-token:password'\n Hy7s.environ['TRAVIS_REPO_SLUG'] = U2Jh\n return", "def Fuxf():\n ...
[ "0.85351247", "0.78182745", "0.7802924", "0.7689726", "0.75783986", "0.746788", "0.74650806", "0.74650806", "0.7427789", "0.73961335", "0.7386016", "0.73278296", "0.73071355", "0.7287702", "0.7244582", "0.7220791", "0.72136295", "0.72036475", "0.71536547", "0.71528083", "0.71...
0.0
-1
Returns if the full word is present in the trie.
def TgwQ(YKHO, GIN8): RvYZ = YKHO.root for Z9rn in GIN8: if Z9rn not in RvYZ.children: return False RvYZ = RvYZ.children[Z9rn] return RvYZ.isEnd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GyKo(YKHO, GIN8):\n Q6kx = YKHO.root\n for YRbF in range(len(GIN8)):\n AU3H = GIN8[YRbF]\n HFkI = YKHO.to_index(AU3H)\n if Q6kx.children[HFkI] and Q6kx.is_word:\n Q6kx = Q6kx.children[HFkI]\n else:\n return False\n YKHO.saved_node = Q6kx\n return Tr...
[ "0.7807935", "0.7679797", "0.76143914", "0.75132805", "0.7503906", "0.74466634", "0.7430512", "0.7427556", "0.74151844", "0.73966503", "0.7375712", "0.73736566", "0.7363391", "0.7352787", "0.7313642", "0.73038906", "0.72797626", "0.72610366", "0.7257191", "0.72474784", "0.723...
0.68957543
53
Do parse the text in variable "text" according to the spec, and return a LIST containing FOUR strings 1. The parsed text. 2. The unigrams 3. The bigrams 4. The trigrams
def aSeI(l5Ny): l5Ny = l5Ny.lower() l5Ny = ZbWC.sub('\\s+', ' ', l5Ny) l5Ny = ZbWC.sub('(\\[.*\\])(\\(.*\\))', '\\1', l5Ny) l5Ny = ZbWC.sub('((http[s]?://)?www.\\S+)|(http[s]?://\\S+)', '', l5Ny) V22M = l5Ny.split() s2mk = [] for GIN8 in V22M: Gyjd(GIN8, s2mk) D5bT = '' IfqX ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NInT(YKHO, l5Ny: str) -> x1iM[str]:\n return YKHO.bpe.tokenize(l5Ny)", "def NInT(YKHO, l5Ny: str) -> x1iM[str]:\n l5Ny = l5Ny.lower().strip()\n return YKHO.bpe.tokenize(l5Ny)", "def GMXA(l5Ny):\n l5Ny = l5Ny.translate(bBb2)\n s2mk = dFss(l5Ny)\n mkhU = qXkR()\n s2mk = [mkhU.stem(a1PO) ...
[ "0.70316917", "0.7010744", "0.69598025", "0.6818925", "0.68183374", "0.68043786", "0.67967427", "0.67943615", "0.6727975", "0.67147166", "0.67120373", "0.6688268", "0.66686535", "0.6656668", "0.6649772", "0.6615907", "0.66131544", "0.65962064", "0.65878534", "0.6578828", "0.6...
0.62288094
70
Remove unnecessary whitespace characters.
def fyUV(oykL): RKD7.debug('Removing all unnecessary white spaces.') def qk7u(oykL): """Prevent 'p :link' from becoming 'p:link'. Translates 'p :link' into 'p ___PSEUDOCLASSCOLON___link'. This is translated back again later. """ njyT = ZbWC.compile('(^|\\})(([^\\{\\:])+...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EQOQ():\n pass", "def T7vC(YKHO, KCHu):\n return KCHu.translate({ord(Z9rn): None for Z9rn in vIwR.whitespace})", "def mQFJ(YKHO) -> None:\n YKHO.text = ZbWC.sub('\\\\s[^\\n\\\\s]\\\\s', ' ', YKHO.text)", "def Wdyj(deaU, l5Ny):\n return l5Ny.replace(' ', '')", "def Yczo(KCHu):\n return Z...
[ "0.811015", "0.78902733", "0.7846514", "0.77336586", "0.7649676", "0.7641509", "0.7615021", "0.7595822", "0.753145", "0.75186414", "0.7485342", "0.74354094", "0.73485297", "0.7325334", "0.72944283", "0.72389734", "0.7198461", "0.71800834", "0.71791077", "0.71765256", "0.71656...
0.65357095
77
Replace `0(px, em, %, etc)` with `0`.
def J5wb(oykL): RKD7.debug('Condensing all zeroes on values.') return ZbWC.sub('([\\s:])(0)(px|em|%|in|q|ch|cm|mm|pc|pt|ex|rem|s|ms|deg|grad|rad|turn|vw|vh|vmin|vmax|fr)', '\\1\\2', oykL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sbx9(WKvO):\n return WKvO * 0", "def sbx9(*bGrB, **IaaG) -> None:\n return", "def nI3F(KCHu):\n KCHu = GDMi(KCHu)\n if KCHu.count == 0:\n return eQSh.zero\n return KCHu", "def sbx9(YKHO):\n raise NotImplementedError('Not implemented yet.')", "def MPRT():\n return PTeS(kg=0)"...
[ "0.6159681", "0.606637", "0.5959578", "0.57966924", "0.57475215", "0.57071227", "0.56552404", "0.5608328", "0.5598456", "0.55829495", "0.5396934", "0.5340621", "0.5340621", "0.53323025", "0.5300266", "0.5281759", "0.5265279", "0.52234364", "0.51997703", "0.51923627", "0.51829...
0.7871755
0
Condense multiple adjacent whitespace characters into one.
def EKcg(oykL): RKD7.debug('Condensing all unnecessary white spaces.') return ZbWC.sub('\\s+', ' ', oykL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D06O(l5Ny):\n x5H9 = ZbWC.compile('\\\\s+', ZbWC.IGNORECASE)\n return ZbWC.sub(x5H9, ' ', l5Ny)", "def ccMH(l5Ny):\n return hHll.sub(' ', l5Ny)", "def sukr(l5Ny):\n u54L = len(l5Ny)\n YRbF = 0\n t8ES = None\n while YRbF < u54L:\n fx1o = l5Ny[YRbF]\n RvU8 = fx1o if fx1o no...
[ "0.709651", "0.7021509", "0.69756943", "0.6746559", "0.6728323", "0.6689235", "0.6653626", "0.661164", "0.6529664", "0.6511655", "0.6509662", "0.65025824", "0.64974004", "0.648043", "0.6471447", "0.6406778", "0.636897", "0.6345566", "0.63374776", "0.630923", "0.6294746", "0...
0.6960958
3
Condense HTML, but be safe first if it have textareas or pre tags. >>> condense_html_whitespace(' test ') ' test '
def juJG(_R2e): RKD7.debug('Removing unnecessary HTML White Spaces and Empty New Lines.') WTjz = '<textarea' not in _R2e.lower() and '<pre' not in _R2e.lower() _R2e = ZbWC.sub('>\\s+<', '> <', _R2e) if WTjz else _R2e return ZbWC.sub('\\s{2,}|[\\r\\n]', ' ', _R2e) if WTjz else _R2e.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cCEq(YKHO):\n YKHO.assertSoupEquals('<pre> </pre>')\n YKHO.assertSoupEquals('<textarea> woo </textarea>')", "def EKcg(oykL):\n RKD7.debug('Condensing all unnecessary white spaces.')\n return ZbWC.sub('\\\\s+', ' ', oykL)", "def vDdR(Pc7F):\n if not isinstance(Pc7F, exCv) and (not GfZ5(Pc7...
[ "0.6709578", "0.6664654", "0.6474388", "0.6415928", "0.64103574", "0.6337937", "0.6247472", "0.62273794", "0.61873335", "0.6185256", "0.6170899", "0.61478996", "0.6132767", "0.6128495", "0.6090021", "0.60508275", "0.599904", "0.5965065", "0.5957782", "0.5951342", "0.5949908",...
0.8579536
0
Clean unneeded optional html tags. >>> clean_unneeded_html_tags('abc') 'abc'
def dH4g(_R2e): RKD7.debug('Removing unnecessary optional HTML tags.') for xKNg in '</area> </base> <body> </body> </br> </col>\n </colgroup> </dd> </dt> <head> </head> </hr> <html> </html> </img>\n </input> </li> </link> </meta> </option> </param> \n </td> </tfoot> </th> </thead> </tr> </b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vDdR(Pc7F, dJ1p=[]):\n if not isinstance(Pc7F, exCv) and (not GfZ5(Pc7F)) and (Pc7F is not None):\n return Pc7F\n return WxwX.clean(Pc7F, strip=True, tags=dJ1p, attributes=[], styles=[])", "def vDdR(Pc7F):\n if not isinstance(Pc7F, exCv) and (not GfZ5(Pc7F)) and (Pc7F is not None):\n r...
[ "0.76264864", "0.7439271", "0.7104023", "0.70323694", "0.6904914", "0.68577784", "0.6840776", "0.68305963", "0.6822214", "0.6777962", "0.6777962", "0.6776273", "0.67667854", "0.6766784", "0.67644423", "0.67492545", "0.6730782", "0.66954434", "0.66949177", "0.668354", "0.66661...
0.85766023
0
Remove all HTML quotes on attibutes if possible. >>> unquote_html_attributes('') ''
def J4R1(_R2e): RKD7.debug('Removing unnecessary Quotes on attributes of HTML tags.') JH4E = ZbWC.compile('<\\w.*?>', ZbWC.I | ZbWC.MULTILINE | ZbWC.DOTALL) n294 = ZbWC.compile(' \\s+|\\s +', ZbWC.MULTILINE) kH6X = ZbWC.compile('\\w\\s+\\w', ZbWC.MULTILINE) pJIn = ZbWC.compile('"\\s+>', ZbWC.MULTILI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YRd0(o8Kj):\n _R2e = ''\n for jzdc in o8Kj.items():\n if jzdc[1]:\n _R2e = _R2e + '%s=\"%s\" ' % jzdc\n return _R2e", "def EQI0(hkS8, Cdlf=True):\n EtF8 = hkS8.replace('&', '&amp;').replace('\"', '&quot;').replace('<', '&lt;').replace('>', '&gt;')\n if not Cdlf:\n EtF8...
[ "0.6834157", "0.65469414", "0.6360739", "0.6360739", "0.6221861", "0.6202286", "0.6147309", "0.5974788", "0.5944254", "0.5893904", "0.5878157", "0.5868223", "0.58245707", "0.5800898", "0.57944995", "0.5741967", "0.5706109", "0.56919146", "0.5669748", "0.56483173", "0.5645899"...
0.8049605
0
Build and return a Logging Logger.
def NZQ8(mWFP=str(Hy7s.getpid())): if not HwRy.platform.startswith('win') and HwRy.stderr.isatty(): def VFiD(FYKK): """Add methods we need to the class.""" def BdN0(*qIxc): """Method overload.""" if len(qIxc) == 2: APaO = (qIxc[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AfUj(YKHO):\n pass", "def AfUj(YKHO, A2pR):\n YKHO._loggers[A2pR] = bo34 = G9jH.getLogger(A2pR)\n return bo34", "def lmAE() -> G9jH.Logger:\n pass", "def rjHs(RWwd: Path) -> G9jH.Logger:\n assert RWwd not in ju6Q\n ju6Q.append(RWwd)\n uaPq = G9jH.Formatter('%(message)s')\n DCgT = ...
[ "0.7619966", "0.72986776", "0.6943124", "0.69192964", "0.6870574", "0.6861588", "0.68368435", "0.6786689", "0.672065", "0.6631001", "0.6630045", "0.6552274", "0.65391856", "0.65369767", "0.6530277", "0.65150803", "0.6508992", "0.6497881", "0.64779365", "0.6449279", "0.6421664...
0.0
-1
Create an empty 2D array of slots (rows x cols)
def Y_GU(YKHO, usx6, WfCS) -> list: FLFa = [] for WKvO in range(usx6): rdlD = [] for LVAh in range(WfCS): oQ6W = Lm2N(x=WKvO, y=LVAh, mine=False, available=True, flag=False) rdlD.append(oQ6W) FLFa.append(rdlD) return FLFa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XO9u(TVTK, H2v2):\n return [[None] * TVTK for bGrB in range(H2v2)]", "def Lm0U(YKHO):\n return [[0] * YKHO.width for bGrB in range(YKHO.height)]", "def Lm0U(Cs6h):\n for YRbF in range(4):\n Cs6h.append([])\n for r845 in range(4):\n Cs6h[YRbF].append(0)", "def FIMM(YKHO, ...
[ "0.7419658", "0.7208141", "0.71461105", "0.68261063", "0.67881125", "0.6773614", "0.67628646", "0.67551386", "0.6750213", "0.6698214", "0.6635329", "0.6597467", "0.6586316", "0.65503603", "0.64893615", "0.64575297", "0.6432654", "0.6425134", "0.64015836", "0.6381707", "0.6379...
0.70884836
3
Name of current protocol.
def mWFP(YKHO) -> 'Literal["Dynamic Reverse Address Resolution Protocol", "Inverse Address Resolution Protocol", "Reverse Address Resolution Protocol", "Address Resolution Protocol"]': return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iquo(YKHO) -> str:\n return __name__", "def iquo(YKHO) -> str:\n return qe4Y.get(YKHO, 'protocol')", "def NovM(YKHO):\n YKHO._protocol_name = 'kerberos'\n return YKHO._protocol_name", "def aQaF(YKHO) -> str:\n ...", "def EwEf(YKHO) -> str:\n return YKHO._layer_protocol_name", "def I...
[ "0.8527097", "0.8032896", "0.8025242", "0.7800471", "0.7785212", "0.7730119", "0.76614213", "0.76614213", "0.75701255", "0.75649047", "0.75599545", "0.7478808", "0.7466269", "0.7439446", "0.7334409", "0.7231231", "0.71754944", "0.715286", "0.70239735", "0.70239735", "0.702397...
0.6736922
38
Reshape a given 2D image and place in a (1, y, x, 1) tensor to be fed into the network.
def q3V_(input): input = input / 255 input = uPnQ.resize(input, (qIxc.size, qIxc.size)) input = oyIN.reshape(input, input.shape + (1,)) input = oyIN.reshape(input, (1,) + input.shape) return input
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Urze(LNo8, UXqs):\n LNo8 = ZylS.expand_dims(LNo8, axis=-1)\n return (LNo8, UXqs)", "def qJN0(YKHO, YpkZ):\n gF_I = oyIN.transpose(YpkZ, (1, 2, 0))\n gF_I = oyIN.flipud(gF_I)\n gF_I = oyIN.reshape(gF_I, (1, gxm5[0], gxm5[1], gxm5[2]))\n return gF_I", "def qJN0(YKHO, VXjJ):\n VXjJ = XTiz...
[ "0.7265519", "0.70425546", "0.7039703", "0.6564403", "0.6510719", "0.64666486", "0.642996", "0.63887775", "0.6357704", "0.6340021", "0.63005817", "0.62822044", "0.61977595", "0.60359854", "0.59971726", "0.59963024", "0.5976915", "0.5967312", "0.5955305", "0.59480506", "0.5934...
0.6121514
13
Function transforms an image to a tensor.
def kBPr(vH2t): VXjJ = ZylS.image.resize_with_pad(oyIN.expand_dims(vH2t, axis=0), 192, 192) d6hw = ZylS.cast(VXjJ, dtype=ZylS.int32) return d6hw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ia7W(LNo8):\n return SZFh(LNo8)", "def uaVh(VXjJ):\n a1PO = Ymkf.ToPILImage()\n return a1PO(VXjJ)", "def EAZM(VXjJ):\n VXjJ = _J6p()(VXjJ)\n return VXjJ", "def KlI5(LNo8):\n aEZk = LNo8.transpose(2, 0, 1)\n aEZk = aEZk.astype(oyIN.float32)\n aEZk = ht2j.from_numpy(aEZk)\n if ht...
[ "0.8440971", "0.79305965", "0.7838948", "0.76782733", "0.7615845", "0.7555468", "0.75046813", "0.75046813", "0.75046813", "0.7364811", "0.73475415", "0.7340281", "0.71797585", "0.7092936", "0.7070492", "0.70616376", "0.7018551", "0.70125717", "0.70036125", "0.69673836", "0.69...
0.0
-1
Plots a timeseries for Antarctic SIC.
def rwtI(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/timeseries/SIC/', TBxg='nsidc'): anp5 = 'processed_data/SIC/' if TBxg == 'ecmwf': anp5 = 'processed_data/ERA5/SIC/' if ZxXY: sGqR = 'anomalous' else: sGqR = 'raw' leAC = sGqR.capitalize() + ' ' if aVqM:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rZuP(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/timeseries/SIC/'):\n anp5 = 'processed_data/'\n if ZxXY:\n sGqR = 'anomalous'\n else:\n sGqR = 'raw'\n if aVqM:\n JRYC = 'detrended'\n else:\n JRYC = 'raw'\n Ux0P = f'{sGqR}_{tQww}_{oUOe}_{JRYC}'\n ...
[ "0.6817868", "0.6572904", "0.63554436", "0.6310377", "0.61520904", "0.6032453", "0.6024002", "0.59372973", "0.593286", "0.5828594", "0.5809771", "0.5808131", "0.5805799", "0.5799026", "0.579603", "0.57950896", "0.5768596", "0.57651645", "0.57079095", "0.5706063", "0.5652826",...
0.6553492
2
Plots a timeseries for Antarctic SIC.
def QYUZ(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/trends/SIC/', TBxg='nsidc'): anp5 = 'processed_data/SIC/' if TBxg == 'ecmwf': anp5 = 'processed_data/ERA5/SIC/' if ZxXY: sGqR = 'anomalous' else: sGqR = 'raw' leAC = sGqR.capitalize() + ' ' if aVqM: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rZuP(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/timeseries/SIC/'):\n anp5 = 'processed_data/'\n if ZxXY:\n sGqR = 'anomalous'\n else:\n sGqR = 'raw'\n if aVqM:\n JRYC = 'detrended'\n else:\n JRYC = 'raw'\n Ux0P = f'{sGqR}_{tQww}_{oUOe}_{JRYC}'\n ...
[ "0.6817868", "0.6572904", "0.6553492", "0.63554436", "0.6310377", "0.61520904", "0.6032453", "0.6024002", "0.59372973", "0.593286", "0.5828594", "0.5809771", "0.5808131", "0.5805799", "0.5799026", "0.579603", "0.57950896", "0.5768596", "0.57651645", "0.57079095", "0.5706063",...
0.51914823
82
Plots a timeseries for Antarctic SIC.
def g_0R(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/subplots/', TBxg='nsidc'): anp5 = 'processed_data/SIC/' if TBxg == 'ecmwf': anp5 = 'processed_data/ERA5/SIC/' if ZxXY: sGqR = 'anomalous' else: sGqR = 'raw' leAC = sGqR.capitalize() + ' ' if aVqM: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rZuP(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/timeseries/SIC/'):\n anp5 = 'processed_data/'\n if ZxXY:\n sGqR = 'anomalous'\n else:\n sGqR = 'raw'\n if aVqM:\n JRYC = 'detrended'\n else:\n JRYC = 'raw'\n Ux0P = f'{sGqR}_{tQww}_{oUOe}_{JRYC}'\n ...
[ "0.6820432", "0.65726423", "0.65552765", "0.63550174", "0.6309702", "0.6154358", "0.60319966", "0.6026846", "0.59366006", "0.59329635", "0.58288926", "0.58092815", "0.5807514", "0.580555", "0.5802145", "0.5797562", "0.5795911", "0.5768449", "0.5766363", "0.5707909", "0.570605...
0.0
-1
Plots a timeseries for Antarctic SIC.
def NpS6(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/timeseries/prediction/', TBxg='nsidc'): anp5 = 'processed_data/SIC/' if TBxg == 'ecmwf': anp5 = 'processed_data/ERA5/SIC/' if ZxXY: sGqR = 'anomalous' else: sGqR = 'raw' leAC = sGqR.capitalize() + ' ' i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rZuP(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/timeseries/SIC/'):\n anp5 = 'processed_data/'\n if ZxXY:\n sGqR = 'anomalous'\n else:\n sGqR = 'raw'\n if aVqM:\n JRYC = 'detrended'\n else:\n JRYC = 'raw'\n Ux0P = f'{sGqR}_{tQww}_{oUOe}_{JRYC}'\n ...
[ "0.6817868", "0.6572904", "0.6553492", "0.63554436", "0.6310377", "0.61520904", "0.6032453", "0.6024002", "0.59372973", "0.593286", "0.5828594", "0.5809771", "0.5808131", "0.5805799", "0.5799026", "0.579603", "0.57950896", "0.5768596", "0.57651645", "0.57079095", "0.5706063",...
0.0
-1
Plots a timeseries for Antarctic SIC.
def uULU(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/timeseries/prediction/', TBxg='nsidc'): anp5 = 'processed_data/SIC/' if TBxg == 'ecmwf': anp5 = 'processed_data/ERA5/SIC/' if ZxXY: sGqR = 'anomalous' else: sGqR = 'raw' leAC = sGqR.capitalize() + ' ' i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rZuP(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/timeseries/SIC/'):\n anp5 = 'processed_data/'\n if ZxXY:\n sGqR = 'anomalous'\n else:\n sGqR = 'raw'\n if aVqM:\n JRYC = 'detrended'\n else:\n JRYC = 'raw'\n Ux0P = f'{sGqR}_{tQww}_{oUOe}_{JRYC}'\n ...
[ "0.6820432", "0.65726423", "0.65552765", "0.63550174", "0.6309702", "0.6154358", "0.60319966", "0.6026846", "0.59366006", "0.59329635", "0.58288926", "0.58092815", "0.5807514", "0.580555", "0.5802145", "0.5797562", "0.5795911", "0.5768449", "0.5766363", "0.5707909", "0.570605...
0.0
-1
Plots a timeseries for Antarctic SIC.
def OcWn(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/timeseries/prediction/', TBxg='nsidc'): anp5 = 'processed_data/SIC/' if TBxg == 'ecmwf': anp5 = 'processed_data/ERA5/SIC/' if ZxXY: sGqR = 'anomalous' else: sGqR = 'raw' leAC = sGqR.capitalize() + ' ' i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rZuP(ZxXY=False, tQww='monthly', oUOe=1, aVqM=False, MWSM='images/timeseries/SIC/'):\n anp5 = 'processed_data/'\n if ZxXY:\n sGqR = 'anomalous'\n else:\n sGqR = 'raw'\n if aVqM:\n JRYC = 'detrended'\n else:\n JRYC = 'raw'\n Ux0P = f'{sGqR}_{tQww}_{oUOe}_{JRYC}'\n ...
[ "0.6819347", "0.65710515", "0.65543264", "0.6356096", "0.63084286", "0.61532164", "0.6031372", "0.60253704", "0.5937236", "0.59325427", "0.58305955", "0.58102274", "0.5808334", "0.58062196", "0.5798156", "0.5796319", "0.57950705", "0.57665443", "0.5766517", "0.5706904", "0.57...
0.0
-1
Get an ordered dict of directory paths containing dark current calibration files, where the key is the dark cal identifier (YYYYDOY) and the value is the path.
def PRON(yi7V=WAZl['dark_cals_dir'].abs): xChs = sorted([FYKK for FYKK in Hy7s.listdir(yi7V) if ZbWC.match('[12]\\d{6}$', FYKK)]) OWvx = [Hy7s.path.join(yi7V, hbFX) for hbFX in xChs] return U8Lr(zip(xChs, OWvx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t5GX(yi7V=WAZl['dark_cals_dir'].abs):\n xChs = sorted([FYKK for FYKK in Hy7s.listdir(yi7V) if ZbWC.match('[12]\\\\d{6}$', FYKK)])\n YdD0 = [XQuJ(Csk6[:4] + ':' + Csk6[4:]).date for Csk6 in xChs]\n return U8Lr(zip(YdD0, xChs))", "def azZT(YKHO):\n return U7YL.calib_dir.value()", "def DlTu(YKHO):...
[ "0.62558806", "0.60070544", "0.58899605", "0.5813672", "0.57399374", "0.57208073", "0.5712752", "0.5651725", "0.5559428", "0.55593914", "0.5556869", "0.55414504", "0.5514612", "0.5430913", "0.54267204", "0.541934", "0.5397161", "0.53577554", "0.53424096", "0.53318363", "0.530...
0.7018663
0
Return the dark calibration image (e/s) nearest to ``date``. If ``select`` is ``'before'`` (default) then use the first calibration which occurs before ``date``. Other valid options are ``'after'`` and ``'nearest'``.
def q9Wz(_c1T, EfUA='before', SLSo=None, xz25=False, mGne=False): cQ5o, lhy8 = TNMh(_c1T, select=EfUA, t_ccd_ref=SLSo, aca_image=xz25, allow_negative=mGne) return cQ5o
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TQbj(_c1T, EfUA='before', a9rB=False, SLSo=None, xz25=False, mGne=False):\n cQ5o, lhy8 = TNMh(_c1T, select=EfUA, t_ccd_ref=None, aca_image=xz25, allow_negative=mGne)\n if a9rB:\n lhy8['image'] = cQ5o\n return lhy8", "def TNMh(_c1T, EfUA='before', SLSo=None, xz25=False, mGne=False):\n zq4g[...
[ "0.58799547", "0.5722023", "0.49422285", "0.46758384", "0.46570864", "0.4583507", "0.458061", "0.44770852", "0.44705704", "0.4403666", "0.4399198", "0.4333679", "0.42270485", "0.417775", "0.41431338", "0.41220558", "0.41072258", "0.4090168", "0.40882835", "0.40761203", "0.407...
0.6527846
0
Returns the number of obstacles (wriggler segments or walls) between coord_a and coord_b. This function assumes that coord_b is larger (in either/both x and y) than coord_a.
def HaIO(UA1B, VW_L): vxkB = 0 for WKvO in range(UA1B.x, VW_L.x + 1): for LVAh in range(UA1B.y, VW_L.y + 1): BHsk = XvuT(WKvO, LVAh) if BHsk in YKHO.wall_coords or BHsk in QTBn: vxkB += 1 return vxkB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qIQq(H5F9, D8Q3):\n Rd30, hj0B, kmYy, HXRv = H5F9\n XVXR, dmRS, pSSM, aDLC = D8Q3\n lEON = min(HXRv, aDLC) - max(hj0B, dmRS) + 1\n QQZU = min(kmYy, pSSM) - max(Rd30, XVXR) + 1\n if lEON <= 0 or QQZU <= 0:\n return 0\n else:\n return lEON * QQZU", "def HaYA(KgSP, BYv3):\n re...
[ "0.62917095", "0.60936224", "0.60043025", "0.5988464", "0.58776444", "0.5850409", "0.5784879", "0.5774823", "0.5738438", "0.57220614", "0.57084537", "0.56547207", "0.56243306", "0.5573225", "0.5563858", "0.5550752", "0.55072314", "0.5496901", "0.54795235", "0.5465251", "0.546...
0.85308814
0
Create a new PriorityQueueSet.
def FIMM(YKHO, DumB=[]): YKHO.set = dict(((ZfUD, True) for ZfUD in DumB)) YKHO.heap = YKHO.set.keys() _eVy.heapify(YKHO.heap)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rdbh():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n return Rdbh", "def Drgm(YKHO, TEzZ):\n EuPg = YKHO.priorities\n EuPg[TEzZ] = o1DR()", "def FIMM(YKHO, DumB=None):\n if DumB is None:\n DumB = []\n YKHO.set = dict(((ZfUD, []) for ZfUD in DumB))\n YKH...
[ "0.7134021", "0.6275945", "0.6069411", "0.60066664", "0.5981591", "0.58784217", "0.5865251", "0.58134234", "0.5739527", "0.5725476", "0.5628518", "0.5597218", "0.55957186", "0.559547", "0.5575486", "0.54900676", "0.5489366", "0.5457516", "0.545611", "0.54452866", "0.5440044",...
0.6152141
2
Send a 'All Sound Off' (CC 120) 'Control Change' message.
def iGOs(YKHO, Npgh=None): YKHO.send_control_change(wLX_, 0, ch=Npgh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eF90(YKHO):\n xMux = [1500] * 8\n K9oX = giUw(channels=xMux)\n YKHO.contolp.publish(K9oX)\n YKHO.rate.sleep()\n K9oX = giUw(channels=xMux)\n YKHO.contolp.publish(K9oX)", "def apLt(YKHO, EqBn=0, BWXx=0, Npgh=None):\n YKHO.send_channel_message(MBZ_, EqBn, BWXx, ch=Npgh)", "def Dwjd(YKHO)...
[ "0.68942034", "0.63717324", "0.5994578", "0.5983568", "0.59612274", "0.5924691", "0.59178627", "0.5865668", "0.58500373", "0.57875276", "0.5765379", "0.57151586", "0.5711716", "0.5624923", "0.5618899", "0.561093", "0.56093395", "0.5571727", "0.55690706", "0.55646753", "0.5562...
0.6580973
1
Send a NonRegistered Parameter Number (NRPN) Change via a series of CC messages.
def zzLx(YKHO, xqoZ=0, BWXx=0, Npgh=None): if isinstance(xqoZ, int): sLVU = xqoZ >> 7 A64f = xqoZ else: sLVU, A64f = xqoZ if sLVU is not None: YKHO.send_control_change(GISA, sLVU, ch=Npgh) if A64f is not None: YKHO.send_control_change(WtD_, A64f, ch=Npgh) if i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i6kp(YKHO, xqoZ=0, BWXx=0, Npgh=None):\n if isinstance(xqoZ, int):\n sLVU = xqoZ >> 7\n A64f = xqoZ\n else:\n sLVU, A64f = xqoZ\n if sLVU is not None:\n YKHO.send_control_change(enWP, sLVU, ch=Npgh)\n if A64f is not None:\n YKHO.send_control_change(Ao4o, A64f, ch=...
[ "0.6351314", "0.5700504", "0.5700504", "0.55458874", "0.54992497", "0.54193175", "0.53884417", "0.51412296", "0.51029164", "0.50938696", "0.5051171", "0.5025745", "0.4984015", "0.49642015", "0.49642015", "0.49416745", "0.4908166", "0.49075457", "0.48967203", "0.4894368", "0.4...
0.6765165
0
Orders the color component indices in descending order by underlying component color value
def bvBt(YKHO, qfpW): uV2H = oRi_(list) for Z9rn in range(len(qfpW)): uV2H[qfpW[Z9rn]].append(Z9rn) aHEA = sorted(uV2H.keys(), reverse=True) Aofo = [] for G1Hx in aHEA: Aofo = Aofo + uV2H[G1Hx] return tuple(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VFz7(YKHO):\n return sorted(YKHO.get_colors(), key=lambda WKvO: WKvO[0])[::-1]", "def kA_W(YKHO, xYvp):\n THkp = None\n for YRbF in range(len(xYvp)):\n ZbOB = xYvp[YRbF]\n if THkp is None:\n THkp = ZbOB\n else:\n WKvO = YRbF\n while ZbOB < THkp:\...
[ "0.67431885", "0.6474925", "0.62527984", "0.6250628", "0.6169669", "0.6103025", "0.6046734", "0.60437804", "0.60375226", "0.60310733", "0.60188407", "0.6017721", "0.60154283", "0.59975743", "0.5991896", "0.59789574", "0.59648335", "0.59597754", "0.5951042", "0.59493214", "0.5...
0.6674672
1
Prepends row filled with 1s to the vector, so that constant of a polynomial is evaluated easily.
def xrkC(WKvO): return XTiz.insert(WKvO, 0, 1, axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nfZ4(EcVT):\n r8hN, exwG = EcVT.shape\n tiZT = oyIN.ones([r8hN, 1])\n cn9z = oyIN.hstack([tiZT, EcVT])\n return cn9z", "def BZ6o(rdlD, WKvO):\n rdlD.append(WKvO)\n return rdlD", "def CWRi(WKvO):\n U5bT = oyIN.ones(len(WKvO))\n return U5bT", "def dDFO(YKHO, dQgj, ZfUD):\n ywwl =...
[ "0.5815133", "0.57305646", "0.5589816", "0.55664223", "0.5542874", "0.5508532", "0.5501604", "0.54895675", "0.54751706", "0.5470629", "0.54549193", "0.5318969", "0.53118986", "0.52793866", "0.5256106", "0.52550113", "0.5253568", "0.5252945", "0.52382654", "0.5175236", "0.5158...
0.5919822
0
Load all training state from a checkpoint file.
def Nh79(YKHO, Ux0P, x3f8=True): Ut3c, hnZt, ZXLX = BfDw.load_model_state(Ux0P, YKHO.get_model()) if ZXLX is not None: YKHO.lr_scheduler = hc6Z.build_lr_scheduler(YKHO.args, YKHO.optimizer) if x3f8: YKHO._optim_history = hnZt QrLj = YKHO._optim_history[-1] if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _GZP(YKHO, vauY):\n raise NotImplementedError()", "def Nh79(YKHO, nUeQ):\n \"\"\"Load \"\"\"\n PH_e = ht2j.load(nUeQ)\n YKHO.load_state_dict(PH_e['model_state_dict'])", "def Nh79(YKHO, V1C0, aBy2=True):\n print('Loading checkpoint: {}'.format(V1C0))\n QTBn = ht2j.load(V1C0)\n YKHO.mode...
[ "0.81087583", "0.8033849", "0.76982284", "0.7683451", "0.7641029", "0.75412816", "0.7523152", "0.7492258", "0.7458825", "0.7449599", "0.742927", "0.7413832", "0.73941296", "0.7337311", "0.7228205", "0.7194399", "0.71928823", "0.71897525", "0.7132528", "0.71298045", "0.71225",...
0.0
-1
Adjust the learning rate based on the validation loss.
def qomG(YKHO, qtWj, AIKr=None): return YKHO.lr_scheduler.step(qtWj, AIKr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fggk(YKHO, qSva=None):\n if qSva is None:\n for IesV in YKHO.schedulers:\n IesV.step()\n else:\n for IesV in YKHO.schedulers:\n IesV.step(qSva)\n YKHO.lr = YKHO.optimizers[0].param_groups[0]['lr']\n print('learning rate = {0:.7f}'.format(YKHO.lr))", "def e_63(Y...
[ "0.81608015", "0.78845364", "0.783218", "0.78144497", "0.7798104", "0.7737746", "0.7734006", "0.7721605", "0.77102494", "0.77072096", "0.7696294", "0.7635987", "0.7611377", "0.7608403", "0.7596307", "0.7583568", "0.75835013", "0.7574952", "0.7574137", "0.7572539", "0.7567046"...
0.0
-1
Update the learning rate after each update.
def bPy3(YKHO, YWFm): return YKHO.lr_scheduler.step_update(YWFm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fggk(YKHO):\n YKHO.scheduler.step(YKHO.clock.epoch)", "def fggk(YKHO):\n YKHO.scheduler.step()\n tspZ = YKHO.optimizer.param_groups[0]['lr']\n print('learning rate = %.7f' % tspZ)", "def WVy8(YKHO):\n YKHO.n_steps += 1\n tspZ = YKHO.factor * YKHO._get_lr_scale()\n for Lwm5 in YKHO._opt...
[ "0.8525054", "0.8246478", "0.81739384", "0.80492413", "0.7949033", "0.7949033", "0.78992677", "0.7889223", "0.78623694", "0.7703854", "0.7637969", "0.76320887", "0.7508339", "0.7478694", "0.73086154", "0.72947234", "0.7267212", "0.7239035", "0.7234639", "0.72077906", "0.71868...
0.0
-1
Get the current learning rate.
def gWpO(YKHO): return YKHO.optimizer.get_lr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkTt(YKHO):\n GPtr = YKHO.config\n JQpF = LXsA.adjust_learning_rate(YKHO.optimizer, YKHO.epoch, GPtr['training']['learning_rate'], decay=GPtr['training']['lr_decay_rate'], step=GPtr['training']['lr_decay_step'])\n YKHO.cur_lr = JQpF\n return JQpF", "def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.0000...
[ "0.8338021", "0.8257183", "0.80368876", "0.76718974", "0.7653609", "0.7651945", "0.76396656", "0.76396656", "0.74942815", "0.7460383", "0.7419125", "0.7365561", "0.70984983", "0.7093192", "0.7053641", "0.70433134", "0.70149547", "0.6989301", "0.6985221", "0.69212395", "0.6913...
0.72476804
13
Get the model replica.
def YrZb(YKHO): return YKHO.model.module if isinstance(YKHO.model, pvaO) else YKHO.model
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YrZb(YKHO):\n return YKHO.call_async(0, '_async_get_model').gen()", "def Ww2g(YKHO) -> str:\n return qe4Y.get(YKHO, 'replica')", "def Cyin(YKHO):\n return YKHO._replication", "def rAO1(YKHO):\n return YKHO.dummy_col_insts[1].rx()", "def fcbl(YKHO) -> 'outputs.InstanceFailoverReplicaResponse...
[ "0.7617357", "0.73569465", "0.67730093", "0.6352435", "0.6313035", "0.62045354", "0.61533475", "0.6142902", "0.61184347", "0.608644", "0.6046989", "0.59879506", "0.5909336", "0.58587736", "0.5845681", "0.5845681", "0.5845681", "0.5845681", "0.5845681", "0.5746368", "0.5732964...
0.5272043
87
Assumes myList is sorted. Returns closest value to myNumber. If two numbers are equally close, return the smallest number.
def Ida2(KMZ7, HIKs): oeNL = SPuy(KMZ7, HIKs) if oeNL == 0: return KMZ7[0] if oeNL == len(KMZ7): return KMZ7[-1] h3Aq = KMZ7[oeNL - 1] DOuq = KMZ7[oeNL] if DOuq - HIKs < HIKs - h3Aq: return DOuq else: return h3Aq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hr4Z(TEEK, a6IY):\n oeNL = SPuy(TEEK, a6IY)\n if oeNL == 0:\n return TEEK[0]\n if oeNL == len(TEEK):\n return TEEK[-1]\n h3Aq = TEEK[oeNL - 1]\n DOuq = TEEK[oeNL]\n if DOuq - a6IY < a6IY - h3Aq:\n return DOuq\n else:\n return h3Aq", "def hr4Z(TEEK, a6IY):\n ...
[ "0.8772953", "0.85214555", "0.7693506", "0.76566553", "0.7288913", "0.7015257", "0.673282", "0.6697672", "0.6637932", "0.66083807", "0.6563489", "0.6558982", "0.6478829", "0.6458925", "0.6438972", "0.6436921", "0.64131486", "0.6386327", "0.63682765", "0.635415", "0.63351136",...
0.6680794
8
Returns a Region object using this requester
def zn0c(YKHO, zn0c: str) -> m1kU: return m1kU(YKHO, zn0c)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zFGX(YKHO, *qIxc, **B2fa):\n return t7xG.image_getregion(YKHO, *qIxc, **B2fa)", "def AMX5(Emd4, Tq5C, mWFP):\n zn0c = Emd4(token=Tq5C, name=mWFP)\n zn0c.load()\n return zn0c", "def zn0c(YKHO):\n if YKHO._region is None:\n LeuP = YKHO.expand_name('region')\n KwDD = gQfM.kv().get...
[ "0.70377505", "0.68898964", "0.68013906", "0.679581", "0.67889696", "0.6713321", "0.668206", "0.6653147", "0.6601819", "0.6601819", "0.658026", "0.6512799", "0.6509858", "0.64659095", "0.6462052", "0.6436159", "0.6377639", "0.6300289", "0.6293586", "0.62053776", "0.62053776",...
0.69211996
1