query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns the entropy (in bits) of the prob distribution described by the prob values in p. Ignore singularities in p (assumes their contribution to entropy is zero)
def Pofh(XP5J): XP5J = THDZ(XP5J) return -(XP5J * zRpZ(XP5J, subval=0.0)).sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oqGu(XP5J):\n XP5J = THDZ(XP5J)\n return -(XP5J * oyIN.log2(XP5J)).sum()", "def oqGu(XP5J):\n if XP5J == 0:\n return 0\n elif XP5J == 1:\n return 0\n else:\n return -(XP5J * oyIN.log2(XP5J) + (1 - XP5J) * oyIN.log2(1 - XP5J))", "def oqGu(YKHO, *V6IE):\n Mkmy = 0\n ...
[ "0.8599046", "0.8445616", "0.80995446", "0.78732896", "0.78130656", "0.75663704", "0.74833196", "0.74649686", "0.7447742", "0.7428747", "0.7420567", "0.74024916", "0.73849195", "0.72302943", "0.7208694", "0.7164664", "0.7157787", "0.7130552", "0.71160483", "0.7103958", "0.708...
0.7865268
4
Decompose (fully split) all components of path into a list of strings If the first string is empty, that means the second string was relative to filesystem root
def hBYA(pmON): return pmON.split(Hy7s.path.sep)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _hAX(pmON):\n Ylbp = []\n while True:\n XP5J = Hy7s.path.split(pmON)\n if XP5J[0] == pmON:\n Ylbp.insert(0, XP5J[0])\n break\n elif XP5J[1] == pmON:\n Ylbp.insert(0, XP5J[0])\n break\n else:\n pmON = XP5J[0]\n Y...
[ "0.806288", "0.78596556", "0.77677673", "0.77259463", "0.7702163", "0.7659575", "0.7658276", "0.7651072", "0.7641295", "0.7629509", "0.7629", "0.7600732", "0.75619256", "0.7531048", "0.7518384", "0.747951", "0.74553394", "0.7430045", "0.73831236", "0.7362312", "0.7343947", ...
0.7187942
37
Return a dictionary of keys mapped to empty dictionaries
def UDxO(sjXb): Csk6 = {} for G1Hx in sjXb: Csk6[G1Hx] = {} return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xfE9():\n return g760.defaultdict(xfE9)", "def kTwq(sjXb):\n return dict(((G1Hx, None) for G1Hx in sjXb))", "def Ucn2(nPrm):\n Ylbp = {}\n for H5ew, BWXx in nPrm.items():\n if BWXx is not None:\n Ylbp[H5ew] = BWXx\n return Ylbp", "def Ucn2(nPrm):\n Ylbp = {}\n for H...
[ "0.69756633", "0.690988", "0.690312", "0.690312", "0.69023925", "0.68537474", "0.6841797", "0.68088186", "0.6741341", "0.6612958", "0.6470914", "0.64299345", "0.6386012", "0.6368591", "0.6356231", "0.63117176", "0.63024014", "0.62676084", "0.62438995", "0.6234362", "0.6219601...
0.5909532
53
Return slice of a, keeping only those values that are furthest away from 0 along axis
def U507(jzdc, jDK_=None): pic9 = jzdc.max(axis=jDK_) Y6eB = jzdc.min(axis=jDK_) XP5J = abs(pic9) > abs(Y6eB) exwG = abs(Y6eB) > abs(pic9) if jDK_ == None: if XP5J: return pic9 else: return Y6eB ROpF = list(jzdc.shape) ROpF.pop(jDK_) yvT9 = oyIN.ze...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O358(ezWE, uA3z=False):\n\n def AWEq(qLeA, EUdq, cYKP, kGa4):\n return (slice(qLeA, EUdq), slice(cYKP, kGa4))\n mOnL = tuple(range(ezWE.ndim)[:-2])\n ZHfW = (ezWE == 0).any(axis=mOnL)\n jNOo = FOIW(ZHfW)\n A3OT = (Ellipsis,) + AWEq(*jNOo)\n if uA3z:\n return A3OT\n return ezW...
[ "0.6112944", "0.608998", "0.6039612", "0.6031325", "0.5999548", "0.5986468", "0.5984148", "0.5959264", "0.5927251", "0.5903287", "0.58842355", "0.58762044", "0.58744675", "0.5869911", "0.58614427", "0.58305424", "0.58039725", "0.572169", "0.5685485", "0.5681426", "0.56567055"...
0.54162884
49
Sparseness measure, from Vinje and Gallant, 2000. This is basically 1 minus the ratio of the square of the sums over the sum of the squares of the values in signal x
def rp9O(WKvO): if WKvO.sum() == 0: return 0 exwG = len(WKvO) return (1 - (WKvO.sum() / exwG) ** 2 / oyIN.sum(WKvO ** 2 / exwG)) / (1 - 1 / exwG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rp9O(WKvO):\n tpio = len(WKvO)\n neQZ = XVcZ.norm(WKvO, 1)\n ywKv = XVcZ.norm(WKvO, 2)\n rp9O = (epAf.sqrt(tpio) - neQZ / ywKv) / (epAf.sqrt(tpio) - 1)\n return rp9O", "def rp9O(YKHO, or8S=None):\n\n def rp9O(WKvO):\n SGf8 = oyIN.finfo(WKvO.dtype).eps if 'int' not in str(WKvO.dtype) ...
[ "0.8330861", "0.74590254", "0.7222985", "0.7217003", "0.70453537", "0.69109243", "0.68621516", "0.6767836", "0.63250285", "0.62858313", "0.6228059", "0.6098092", "0.6085195", "0.6080628", "0.6052187", "0.60110223", "0.5950896", "0.5945738", "0.5937711", "0.58812004", "0.58307...
0.87983114
0
Trim array of time ranges `tranges` to only those that fall entirely within `trange`. Don't assume that tranges are sorted
def a0KE(Pib_, F9FX): assert len(F9FX) == 2 uD7d = (F9FX[0] <= Pib_[:, 0]) * (Pib_[:, 1] <= F9FX[1]) return Pib_[uD7d]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nOOm(YKHO):\n HbfQ = []\n for yKcO, Os4s in YKHO.stamps:\n if not (Os4s < YKHO.tStart or yKcO > YKHO.tEnd):\n HbfQ.append((max(yKcO, YKHO.tStart), min(Os4s, YKHO.tEnd)))\n YKHO.stamps = HbfQ", "def UdHt(Pib_, TVTK, zKs2):\n P1CD = []\n for F9FX in Pib_:\n lGE9, n2Q1 = ...
[ "0.70333207", "0.65493804", "0.63056433", "0.62485033", "0.62485033", "0.62108225", "0.6133359", "0.6102266", "0.6055131", "0.6054633", "0.6026848", "0.6006549", "0.5985999", "0.5963836", "0.59134334", "0.587824", "0.5812062", "0.57475966", "0.573094", "0.5729583", "0.5719517...
0.824379
0
Serializes this instance to a Python dictionary.
def MNRr(YKHO): hlel = jth9.deepcopy(YKHO.__dict__) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO) -> dict:\n pass", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def sS6L(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO) -> dict:\n return YKHO.__data__", "def _fYl(YKHO) -> cuzp[str, ImMB]:\n return B4us(YKHO)", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(Y...
[ "0.88683546", "0.8861067", "0.8325135", "0.8322859", "0.83121485", "0.82891333", "0.82891333", "0.8281933", "0.8281933", "0.8281933", "0.8281933", "0.8281933", "0.8281933", "0.8281933", "0.8281933", "0.8281933", "0.8281933", "0.8251028", "0.823346", "0.823346", "0.8216618", ...
0.0
-1
Merge 2 state_dicts mapping parameters in state_dict2 to parameters in state_dict1 according to a dict mapping parameter names in state_dict2 to parameter names in state_dict1.
def PRh1(UxPE, N7X4, gYBZ): xA7f = U8Lr() for XP5J in N7X4: if XP5J in gYBZ: x7eW = gYBZ[XP5J] assert x7eW in UxPE, 'Wrong target param [%s]' % x7eW xA7f[x7eW] = [XP5J] else: xA7f[x7eW] = UxPE[x7eW] return xA7f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roQF(AjzU, _sQW):\n return {**AjzU, **_sQW}", "def roQF(WbPA, S69B):\n XIcQ = {**WbPA, **S69B}\n return XIcQ", "def roQF(WbPA: dict, S69B: dict) -> dict:\n return {**WbPA, **S69B}", "def IYhE(jzdc, Fg_i):\n Aofo = jzdc.copy()\n Aofo.update(Fg_i)\n return Aofo", "def roQF(WbPA, S69B...
[ "0.6706125", "0.66824925", "0.65818053", "0.6547854", "0.65178365", "0.6504165", "0.6426362", "0.6418991", "0.64176875", "0.6366705", "0.6357291", "0.63257134", "0.6309959", "0.6278524", "0.6278524", "0.6278524", "0.6278524", "0.6278524", "0.6278524", "0.6278524", "0.6278524"...
0.81727564
0
Map a source integer to a target integer across all dims of a LongTensor.
def _riD(a1PO, QWSo, TJX3): return a1PO.masked_fill_(a1PO.eq(QWSo), TJX3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k7Dj(Wc9F, exwG, pA0V):\n rdlD = ZylS.cast(ZylS.linspace(0.0, (pA0V - 1) * 1.0, pA0V), dtype=ZylS.int16)\n KSES = ZylS.tile([rdlD], [pA0V, 1])\n KSES = ZylS.tile([KSES], [exwG, 1, 1])\n KSES = ZylS.tile([KSES], [Wc9F, 1, 1, 1])\n return KSES", "def rrbB(Wc9F):\n oeNL, KErH, fpmC = zip(*Wc9F...
[ "0.6017371", "0.5576352", "0.53974783", "0.53838956", "0.5273994", "0.5270768", "0.5200834", "0.51994777", "0.5179964", "0.51493055", "0.5137837", "0.5133261", "0.5110474", "0.50799733", "0.5073634", "0.50165194", "0.4996828", "0.49835134", "0.49799156", "0.4978374", "0.49547...
0.56481624
1
Determines whether a given module has any trainable parameters at all as per parameter.requires_grad
def y0Uy(yR_P): mbAw = sum((XP5J.requires_grad for XP5J in yR_P.parameters())) return mbAw > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SBZH(yR_P):\n return all([XP5J.requires_grad for XP5J in yR_P.parameters()])", "def Siq2(YKHO, C3ST):\n BhfJ = [XP5J for XP5J in C3ST.parameters() if XP5J.requires_grad]\n print('trainable params:')\n for mWFP, xqoZ in C3ST.named_parameters():\n if xqoZ.requires_grad:\n print(mW...
[ "0.81353086", "0.81062037", "0.7984072", "0.77926993", "0.7293686", "0.70463526", "0.69646424", "0.69266796", "0.6917613", "0.6861533", "0.68590117", "0.68590117", "0.6774113", "0.67652154", "0.6744423", "0.6733501", "0.67155707", "0.6707363", "0.6679511", "0.6678197", "0.667...
0.9031689
0
Returns the first_name plus the last_name, with a space in between.
def xpqj(YKHO): eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name) return eHMM.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM", "def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()", "def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')", "def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl...
[ "0.8287678", "0.81790864", "0.8113032", "0.80767643", "0.8033906", "0.8033144", "0.802959", "0.8007973", "0.800674", "0.80059254", "0.80010915", "0.7994924", "0.7990401", "0.797971", "0.797951", "0.7960955", "0.79525304", "0.79452616", "0.79452616", "0.79426", "0.79426", "0...
0.77477396
67
Does the user have such an email
def NCcx(D3lj): return mv1M.objects.filter(email=D3lj).exists()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ilcu(YKHO, D3lj=None):\n if D3lj:\n DpUl = Oa1e.db.execute('select email from user where email = ?', [D3lj])\n if not DpUl.fetchall():\n return True\n return False", "def WIr9():\n fZOT = QePW.form['user-input']\n CBIr = mv1M.query.filter((mv1M.email == fZOT) | (mv1M.user...
[ "0.82479584", "0.8192793", "0.8111932", "0.81088436", "0.7958551", "0.79341865", "0.79232365", "0.78732634", "0.7869205", "0.78556985", "0.7786813", "0.77829826", "0.77080977", "0.76977384", "0.76625156", "0.7651294", "0.7642615", "0.76343644", "0.75948614", "0.7571308", "0.7...
0.8082166
4
Function to split a document into parsed sentences. Returns a list of sentences, where each sentence is a list of words
def kMSt(C13M, aUcs=True): wZeq = L55P.tokenize(C13M.strip()) Rhv4 = [] for aWSQ in wZeq: if len(aWSQ) > 0: Rhv4.extend(bb19(aWSQ, aUcs)) return Rhv4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0FK(A97Q):\n return ZbWC.split('[\\\\.\\\\?\\\\!]\\\\s+', A97Q)", "def c0FK(C13M):\n if not len(C13M):\n raise Exception('The document length cannot be zero.')\n tu2h = C13M.replace('i.e.', 'ie').replace('e.g.', 'eg').replace('etc.', 'etc')\n Rhv4 = ZbWC.split(' *[.?!][\\\\\\'\"\\\\)\\\\]...
[ "0.8058828", "0.77603525", "0.746173", "0.7441787", "0.7441568", "0.74002445", "0.7338068", "0.7326682", "0.7320651", "0.7318125", "0.7313383", "0.72868145", "0.72434473", "0.7220059", "0.7220059", "0.7203349", "0.7201043", "0.7167657", "0.71515906", "0.71259683", "0.7108613"...
0.7489256
2
Shows value using number base, e.g. str_base(44027, 36)=='XYZ'
def gS5h(BWXx: int, P8oC: int) -> str: if P8oC not in range(2, 37): return "Mi scusi, you're mistaken :c" hlel: str = '' while BWXx != 0: hlel += gTzM(BWXx % P8oC) BWXx //= P8oC return ''.join(reversed(hlel))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gS5h(wEf2: int, Fg_i: int) -> str:\n if Fg_i not in range(2, 37):\n return 'ERROR'\n hlel = ''\n while wEf2 != 0:\n d7pR = wEf2 % Fg_i\n if d7pR < 10:\n hlel += chr(d7pR + ord('0'))\n else:\n hlel += chr(d7pR + ord('A') - 10)\n wEf2 //= Fg_i\n ...
[ "0.78318155", "0.7811795", "0.77188474", "0.75298053", "0.7503994", "0.7423916", "0.74231625", "0.7421645", "0.74174553", "0.7346728", "0.73259", "0.72971255", "0.72971255", "0.72971255", "0.7235145", "0.7234417", "0.7226782", "0.7207135", "0.7204325", "0.720125", "0.7201179"...
0.82963794
0
Get the value for the field using this style.
def NMoC(YKHO, tWOS): return YKHO.deserialize(YKHO.fetch(tWOS))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO):\n return YKHO.field.value", "def Zmkp(YKHO):\n return YKHO.widget.get_value()", "def Zmkp(YKHO):\n return YKHO.get_value()", "def Zmkp(YKHO):\n return YKHO.value", "def BWXx(YKHO):\n return YKHO._get_field('value')", "def Zmkp(YKHO):\n return YKHO.value", "def Zmkp(YKH...
[ "0.74949914", "0.72099304", "0.7184762", "0.7172792", "0.7150298", "0.71348584", "0.71204835", "0.71204835", "0.71204835", "0.71204835", "0.71204835", "0.71204835", "0.71204835", "0.71204835", "0.71204835", "0.71204835", "0.71204835", "0.70821804", "0.70791346", "0.70575297", ...
0.0
-1
Get a list of all values for the field using this style.
def UMnH(YKHO, tWOS): Iz2h = YKHO.fetch(tWOS) if Iz2h is None: return None return [YKHO.deserialize(ZfUD) for ZfUD in Iz2h]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TSF4(YKHO):\n return YKHO.list_values", "def v9CE(YKHO):\n return YKHO._values", "def hkxX(YKHO):\n return list(YKHO)", "def bgRQ(YKHO):\n return list(YKHO.values.values())", "def TSF4(Emd4) -> list:\n pass", "def hkxX(YKHO):\n return YKHO.list", "def bgRQ(YKHO):\n return YKHO....
[ "0.7375875", "0.7268244", "0.7219654", "0.7203156", "0.7192093", "0.717607", "0.7162827", "0.7142972", "0.7131178", "0.7128127", "0.71222574", "0.7091182", "0.7084318", "0.70613843", "0.70505375", "0.70090204", "0.70048535", "0.6998416", "0.6998416", "0.6978867", "0.69700015"...
0.0
-1
Get the list of raw (serialized) values.
def ps_8(YKHO, tWOS): try: return tWOS[YKHO.key] except KeyError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iz2h(YKHO):\n Cuyv = [getattr(YKHO, mWFP) for mWFP, bGrB in YKHO._fields]\n U5bT = []\n for wEf2 in Cuyv:\n if hasattr(wEf2, 'raw_values'):\n U5bT.extend(wEf2.raw_values)\n else:\n U5bT.append(wEf2)\n return U5bT", "def J6ei(YKHO, WmM4=False):\n if WmM4:\n ...
[ "0.8304077", "0.7782278", "0.75819445", "0.74019563", "0.7377182", "0.7377182", "0.7370118", "0.72985244", "0.7291762", "0.7256523", "0.72200096", "0.7206102", "0.72054094", "0.71879905", "0.71875423", "0.71669674", "0.71669674", "0.7162469", "0.7161841", "0.714797", "0.71389...
0.0
-1
Set all values for the field using this style. `values` should be an iterable.
def HUjY(YKHO, tWOS, hkxX): if hkxX is None: YKHO.delete(tWOS) else: YKHO.store(tWOS, [YKHO.serialize(BWXx) for BWXx in hkxX])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rqY8(YKHO, *hkxX):\n YKHO._values = YKHO._parse_inputs(*hkxX)", "def rqY8(YKHO, hkxX):\n for VmPb, BWXx in zip(YKHO, hkxX):\n VmPb.value = BWXx", "def hkxX(YKHO, hkxX):\n YKHO._values = hkxX", "def hkxX(YKHO, hkxX):\n YKHO._values = hkxX", "def hkxX(YKHO, hkxX):\n YKHO._values = h...
[ "0.75083655", "0.73889095", "0.7217429", "0.7217429", "0.7217429", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", "0.7161279", ...
0.0
-1
Set the list of all raw (serialized) values for this field.
def VUF1(YKHO, tWOS, hkxX): tWOS[YKHO.key] = hkxX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iz2h(YKHO):\n Cuyv = [getattr(YKHO, mWFP) for mWFP, bGrB in YKHO._fields]\n U5bT = []\n for wEf2 in Cuyv:\n if hasattr(wEf2, 'raw_values'):\n U5bT.extend(wEf2.raw_values)\n else:\n U5bT.append(wEf2)\n return U5bT", "def QMxT(YKHO):\n pass", "def QMxT(YKHO)...
[ "0.70067096", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6610548", "0.6456282", "0.63808596", "0.63252825", ...
0.0
-1
The path to the file. This is `None` if the data comes from a filelike object instead of a filesystem path.
def pmON(YKHO): return YKHO.filething.filename
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO):\n if YKHO.data.path is None:\n return None\n else:\n return YKHO.data.path.decode('utf-8', 'surrogateescape')", "def pmON(YKHO) -> h8nf[str]:\n return YKHO._file_path", "def qaEx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'file_path')", "def pmON(YKHO):\...
[ "0.799036", "0.78144896", "0.76336205", "0.73681", "0.73458236", "0.7019168", "0.69647956", "0.6963793", "0.6955922", "0.694095", "0.6932091", "0.69297475", "0.6927937", "0.69148946", "0.6896053", "0.6896053", "0.68782467", "0.68782467", "0.68782467", "0.68782467", "0.6878246...
0.68177927
30
Get the names of all writable metadata fields, sorted in the order that they should be written. This is a lexicographic order, except for instances of
def nHUK(Emd4): for property in sorted(Emd4.fields(), key=Emd4._field_sort_name): yield property
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zJN_(YKHO, ERRh, U34r):\n m1rp = getattr(YKHO.Meta, 'meta_fields', [])\n YWNu = {}\n for vXX7 in set(ERRh.keys()):\n Jyyj = ERRh[vXX7]\n if vXX7 not in m1rp:\n YWNu[vXX7] = Jyyj\n V_D6 = super().get_field_names(YWNu, U34r)\n return list(V_D6) + list(getattr(YKHO.Meta, 'm...
[ "0.69539523", "0.6924028", "0.6851883", "0.68187726", "0.67718244", "0.67109615", "0.6608712", "0.6594141", "0.65921444", "0.658589", "0.65458333", "0.6539196", "0.6518241", "0.65079856", "0.6462519", "0.645012", "0.63863355", "0.6379776", "0.6365442", "0.6342724", "0.6340007...
0.60190654
51
Set all field values from a dictionary. For any key in `dict` that is also a field to store tags the method retrieves the corresponding value from `dict` and updates the `MediaFile`. If a key has the value `None`, the corresponding property is deleted from the `MediaFile`.
def QdZT(YKHO, dict): for Jyyj in YKHO.sorted_fields(): if Jyyj in dict: if dict[Jyyj] is None: delattr(YKHO, Jyyj) else: setattr(YKHO, Jyyj, dict[Jyyj])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EE1P(YKHO, Csk6):\n for vXX7 in w55X.__fields:\n try:\n setattr(YKHO, vXX7, Csk6[vXX7])\n except KeyError:\n pass", "def QdZT(YKHO, cmPJ):\n for H5ew, BWXx in cmPJ.items():\n if isinstance(H5ew, (str, QMSQ)):\n setattr(YKHO, H5ew, BWXx)\n els...
[ "0.69809055", "0.63921624", "0.5896011", "0.57492685", "0.56922364", "0.5652446", "0.56435347", "0.56409276", "0.56345916", "0.5633684", "0.5575015", "0.556565", "0.5509882", "0.5467761", "0.5429612", "0.53766185", "0.53754216", "0.53566563", "0.5337329", "0.5331008", "0.5328...
0.63111454
2
Compute average results of every metric in list of metrics
def djSX(ZAyV: List[Dict[str, float]], Wbxz: List[str], **PECO) -> cuzp[str, cuzp[str, float]]: G1Hx = len(ZAyV) AcGo = {} for AcYW in Wbxz: Uqbu = [YhDe[AcYW] for YhDe in ZAyV] qqgr, M1Jx = (oyIN.mean(Uqbu), oyIN.std(Uqbu)) AcGo[AcYW] = {'avg': qqgr, 'std': M1Jx, 'all_%s_folds' % G1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dfRG(dixj):\n kNIE = jth9.deepcopy(dixj)\n for MZ86 in dixj:\n for AcYW in dixj[MZ86]['metrics']:\n hkxX = dixj[MZ86]['metrics'][AcYW]\n JBMS = 0\n if hkxX:\n etkR = sum(map(float, [Ty9i for Ty9i in hkxX]))\n JBMS = round(etkR / len(hk...
[ "0.8007576", "0.77128273", "0.7522539", "0.72262526", "0.722395", "0.7052064", "0.6961463", "0.68294287", "0.68219626", "0.68193984", "0.6660421", "0.66262406", "0.6605331", "0.6594618", "0.65922046", "0.658809", "0.6577695", "0.6560329", "0.64839035", "0.6477312", "0.6474157...
0.7026228
6
Test setting ordinance data for a charity network.
def beNw(espT): PUIA = 11589843 for Awhg in espT: if Awhg.charity_id != str(YgPY): Awhg._skip_charity = True lurD: Q1Kq = espT.get_composed_charity_network() dZHK(lurD, QBoS) assert lurD.nodes[YgPY]['post_code'] == 'N17 9LH' assert lurD.nodes[YgPY]['ordinance']['quality'] == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t2o6(espT, KTnm):\n _7q2 = espT.get_composed_charity_network()\n assert len(_7q2) == 183\n assert len(espT._charity_runs) == 20\n ZIau = set(espT.charity_ids)\n nQOd = list(WBdH(_7q2))\n assert len(nQOd) == 17\n for YRbF, Zxma in enumerate(nQOd):\n G0Ja = Zxma & ZIau\n if len...
[ "0.58057356", "0.568026", "0.5572606", "0.5548726", "0.5480881", "0.54511046", "0.5439106", "0.54315746", "0.5427293", "0.5419102", "0.5381066", "0.5343882", "0.53305846", "0.52678585", "0.5263462", "0.523021", "0.5228501", "0.5216568", "0.517729", "0.5169819", "0.5168192", ...
0.6011068
0
Get the configured document key for blobbed data. (If you don't supply the index, the method returns the global configuration value. If there is no global configuration value, the method returns the default.)
def VBA7(YKHO, d6pt: str=None) -> str: H5ew: str = None try: H5ew = YKHO.indexes[d6pt].blobs.key except KeyError: pass H5ew = H5ew if H5ew else YKHO.blobs.key return H5ew if H5ew else o0gG.blob_key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VBA7(YKHO):\n return YKHO._blob_key", "def Dn9U(YKHO, d6pt: int) -> int:\n return YKHO.app.getKey(d6pt)", "def mexE(d6pt: int):\n return '{}:{}'.format(Manc, pVCi.get_id(d6pt))", "def PPG3(YKHO):\n return YKHO.longopt if YKHO.cfgFieldName is None else YKHO.cfgFieldName", "def ZCi4():\n r...
[ "0.63118976", "0.62414885", "0.61821043", "0.6136548", "0.5984041", "0.58336025", "0.58336025", "0.57518524", "0.57518524", "0.57518524", "0.57389164", "0.56932366", "0.56408614", "0.56408614", "0.5617607", "0.5607168", "0.5607168", "0.55998564", "0.5575384", "0.55598104", "0...
0.7510034
0
Pull/update the model locally and returns a local path to it
def FXom(YKHO, UksD, Nygx='model'): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hr9V(YKHO):\n return YKHO.object.download_file(YKHO.path_obj.abspath)", "def QdZT(YKHO, C3ST, pmON):\n pmON = pmON.strip('/')\n ddn9 = C3ST.get('path', pmON).strip('/')\n if pmON != ddn9:\n YKHO.rename(pmON, ddn9)\n C3ST = YKHO.get(ddn9, content=False)\n return C3ST", "def NvRx(YKH...
[ "0.65612584", "0.6557329", "0.64513606", "0.64318067", "0.64275146", "0.6196883", "0.6147186", "0.6143615", "0.60971874", "0.6047249", "0.60410476", "0.60163766", "0.6007003", "0.5973409", "0.5907843", "0.5902186", "0.58895946", "0.58679295", "0.58491147", "0.58454", "0.58377...
0.0
-1
Hash a password for storing.
def qzFd(jTXt: str) -> str: NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('utf-8') vhgk = HBct.pbkdf2_hmac('sha512', jTXt.encode('utf-8'), NTfD, 100000) vhgk = MRxC.hexlify(vhgk) return (NTfD + vhgk).decode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO, jTXt):\n YKHO.hash = jf1V.encrypt(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.encrypt(jTXt)", "def qzFd(YKHO, jTXt):\n NTfD = B8ni.gen...
[ "0.84914315", "0.8482577", "0.8482577", "0.84023434", "0.82536817", "0.82148904", "0.8106015", "0.8076616", "0.80739087", "0.8029491", "0.79276323", "0.79276323", "0.7925622", "0.79207146", "0.79207146", "0.79088366", "0.7899531", "0.7897493", "0.7890519", "0.78723425", "0.78...
0.0
-1
Return the mean and (diag) variance of the latent process given Y. Returns the marginal moments of likelihood fo the latent process for EP. Note that eta_mean, eta_variance are the parameters of [Pr(Y | \eta_s)]
def Lba5(YKHO): YAXL = oyIN.zeros(YKHO.T) b5Kj = oyIN.zeros(YKHO.T) S2MA = YKHO.filter_pass() WMzK = YKHO.smoothing_pass(filter_out=S2MA) l4NB = YKHO._backward_pass(filter_out=S2MA, smoothing_out=WMzK) Tgx9 = YKHO.lambduh.dot(YKHO.lambduh) ** (-1) * YKHO.sigma2_x Uley = YKHO.lambduh.dot(YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MHMi(nMvt: np.ndarray, BTzi: GaussianApproximation, ZUI7: float, LVAh: List[Tuple[int, float]], dlau: List[List[Tuple[int, int]]]) -> AzJI[float, xNJe]:\n lqvN = hz0f(nMvt, BTzi.v, BTzi.tau, LVAh, dlau)\n xyi0 = oyIN.sum(2.0 * oyIN.log(oyIN.diag(lqvN.L)))\n KGpx = 0.5 * (-len(BTzi.v) * IRgs - xyi0 + o...
[ "0.58086747", "0.58040446", "0.5753501", "0.5750852", "0.5732025", "0.5725016", "0.56912947", "0.56725156", "0.5656177", "0.56301326", "0.5627159", "0.56148136", "0.55945027", "0.557141", "0.5509371", "0.5509371", "0.5498551", "0.5464608", "0.54584664", "0.54488856", "0.54446...
0.5748757
4
Old (incorrect) EP moment update step Use `moment_eta` instead. Return the mean and variance of the likelihood of the latent process given Y (integrating out X).
def NE3y(YKHO): YAXL = oyIN.zeros(YKHO.T) b5Kj = oyIN.zeros(YKHO.T) WMzK, THkp = YKHO.smoothing_pass(calc_prev=True) GxMf = THkp['J_t'] Kn_H = THkp['mu_smoothed'] R5DW = THkp['V_smoothed'] yGTL = WMzK[0]['mu_smoothed'] cAlv = WMzK[0]['V_smoothed'] YAXL[0] = (yGTL - YKHO.A * Kn_H) / Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lba5(YKHO):\n YAXL = oyIN.zeros(YKHO.T)\n b5Kj = oyIN.zeros(YKHO.T)\n S2MA = YKHO.filter_pass()\n WMzK = YKHO.smoothing_pass(filter_out=S2MA)\n l4NB = YKHO._backward_pass(filter_out=S2MA, smoothing_out=WMzK)\n Tgx9 = YKHO.lambduh.dot(YKHO.lambduh) ** (-1) * YKHO.sigma2_x\n Uley = YKHO.lamb...
[ "0.71286875", "0.6243534", "0.6053793", "0.58996475", "0.5879511", "0.582287", "0.5818433", "0.5795653", "0.57619756", "0.5757599", "0.57494175", "0.573639", "0.57259804", "0.57246035", "0.5723266", "0.5698366", "0.56900173", "0.56886625", "0.5671824", "0.56706697", "0.566652...
0.76274866
0
Creates a bar plot from the dataframe, with styling and additional input coming from the properties. Each row in the dataframe defines a series. Group names (displayed on the x axis) are taken from the column index. The name of the variable represented by the values can be passed in as the `variable_name` argument (as ...
def kFPe(jQ3Z, rGKQ=None, euNW=None, lhy8={}): PXGI = g2GC(euNW) XP5J = u6dc if u6dc.is_native_plot() else QrM1 def FQ0H(G1Hx): return lhy8[G1Hx] if G1Hx in lhy8 else None ppCi = 0.8 OM6R = 0.9 GbSm = 1 / 3 fUYa = oyIN.arange(len(jQ3Z.columns), dtype=oyIN.float64) TVTK = ppCi / ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kFPe(jQ3Z, lhy8, M_u8=None, rGKQ=None):\n XP5J = u6dc if a88W.is_native_chart() else QrM1\n\n def FQ0H(G1Hx):\n return lhy8[G1Hx] if G1Hx in lhy8 else None\n ppCi = 0.8\n OM6R = 0.9\n GbSm = 1 / 3\n fUYa = oyIN.arange(len(jQ3Z.index), dtype=oyIN.float64)\n TVTK = ppCi / len(jQ3Z.col...
[ "0.60647804", "0.6063725", "0.5972293", "0.58577156", "0.57988894", "0.55801755", "0.55014586", "0.54641426", "0.5451849", "0.5397156", "0.53821075", "0.5377356", "0.53441226", "0.5311651", "0.5308419", "0.53048646", "0.5299464", "0.5275848", "0.52699524", "0.5249992", "0.522...
0.534661
12
Creates a box and whiskers plot from the dataframe, with styling and additional input coming from the properties. Each row in the dataframe defines one set of a box and two whiskers. Colors are assigned automatically. The `cycle_seed` property allows you to select other combinations if the default one is not suitable. ...
def QXhN(jQ3Z, lhy8, LxcI=R75p): PXGI = g2GC(jQ3Z) Au_d, QtWG = RNsC(jQ3Z, lhy8) jQ3Z.sort_values(by=QtWG, axis='index', inplace=True) lk9W = 0.6744897501960817 oUSw = [(Mkmy.min, Mkmy.mean - Mkmy.stddev * lk9W, Mkmy.mean, Mkmy.mean + Mkmy.stddev * lk9W, Mkmy.max) for Mkmy in jQ3Z.itertuples(index=F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVC6(jQ3Z: DataFrame, eCQp: dict) -> zoLL.Graph:\n ycBG = jQ3Z.iloc[:, 0]\n n7y3 = ['1W', '2W', '1M', '3M', '4M', '6M', '1Y']\n try:\n P5op = eCQp['box_plot_frequency']\n except KeyError:\n P5op = '1W'\n gXuE = []\n for QTg7 in n7y3:\n rVDy = True if P5op == QTg7 else 'le...
[ "0.6078862", "0.5982467", "0.5798138", "0.56397945", "0.5470535", "0.5458849", "0.54309696", "0.53783536", "0.5358527", "0.53498596", "0.53487664", "0.528929", "0.5283481", "0.52556384", "0.5241752", "0.5238702", "0.5200695", "0.5193406", "0.5162436", "0.51597273", "0.5152678...
0.67167634
0
Returns the file path for the data to export based on the `data_export_format`, `data_export_folder` and `data_export_filename` properties given in `props`. If a relative filename is returned, it is relative to the working directory when the data export takes place.
def t396(lhy8): def FQ0H(G1Hx): return lhy8[G1Hx] if G1Hx in lhy8 else None format = FQ0H('data_export_format') or 'csv' Fst3 = bQ4R(format) xtX7 = FQ0H('data_export_folder') or '.' Ux0P = FQ0H('data_export_filename') or PhuP(a88W.get_name()) if not ZbWC.match(string=Ux0P, pattern='.+\\...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mfB0(lhy8):\n\n def FQ0H(G1Hx):\n return lhy8[G1Hx] if G1Hx in lhy8 else None\n format = FQ0H('image_export_format') or 'svg'\n xtX7 = FQ0H('image_export_folder') or '.'\n Ux0P = FQ0H('image_export_filename') or PhuP(a88W.get_name())\n if not ZbWC.match(string=Ux0P, pattern='.+\\\\.\\\\w{...
[ "0.6843088", "0.65579236", "0.63302094", "0.6323435", "0.6088469", "0.6070603", "0.60325915", "0.60052824", "0.59273815", "0.59235257", "0.59204555", "0.5894723", "0.58844274", "0.58813983", "0.58793294", "0.5868235", "0.58626133", "0.5862571", "0.58536637", "0.58522046", "0....
0.8766475
0
Returns the halflength of the confidence interval of the mean of `data`, assuming normal distribution, for the given confidence level `alpha`.
def mjJ1(Cwt5, nPrm): return epAf.nan if len(nPrm) <= 1 else 0 if len(set(nPrm)) <= 1 else aevO.norm.interval(Cwt5, loc=0, scale=aevO.sem(nPrm))[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mjJ1(Cwt5, nPrm):\n return aevO.norm.interval(Cwt5, loc=0, scale=aevO.sem(nPrm))[1]", "def Olvj(nPrm, Cwt5=VPbr):\n JBMS = oyIN.mean(nPrm)\n WTkW = oyIN.std(nPrm)\n NXpY = Zxt2.stats.norm.ppf(1 - Cwt5 / 2.0)\n return VOlW(JBMS, JBMS - NXpY * WTkW, JBMS + NXpY * WTkW)", "def tqr1(WKvO, Cwt5=0...
[ "0.73930484", "0.7369616", "0.67315245", "0.66316736", "0.64263403", "0.63343906", "0.6086068", "0.6047724", "0.60284305", "0.59774977", "0.59761065", "0.5937972", "0.58505666", "0.5767617", "0.57459706", "0.5739548", "0.56916684", "0.56914103", "0.56682175", "0.5645242", "0....
0.7201255
2
Returns the confidence level from the `confidence_level` property, converted to a `float`. Also accepts "none" (returns `None` in this case), and percentage values (e.g. "95%").
def C6DO(lhy8): if 'confidence_level' not in lhy8: return None KCHu = lhy8['confidence_level'] if KCHu == 'none': return None return float(KCHu[:-1]) / 100 if KCHu.endswith('%') else float(KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def la9G(YKHO) -> float:\n return YKHO.__confidence", "def la9G(YKHO) -> float:\n return qe4Y.get(YKHO, 'confidence')", "def la9G(YKHO) -> float:\n return qe4Y.get(YKHO, 'confidence')", "def la9G(YKHO) -> float:\n return qe4Y.get(YKHO, 'confidence')", "def la9G(YKHO) -> float:\n return qe4Y....
[ "0.6728725", "0.66486233", "0.66486233", "0.66486233", "0.66486233", "0.6607026", "0.6607026", "0.6607026", "0.6607026", "0.64677334", "0.6462103", "0.6312037", "0.6262606", "0.6235535", "0.6235535", "0.6235535", "0.6235535", "0.62213606", "0.6185572", "0.600029", "0.5847427"...
0.86701465
0
Ensures that the dataframe contains the given columns. If any of them are missing, the function raises an error with the given message.
def izQ9(jQ3Z, WfCS, Ol8d='Expected column missing from DataFrame'): for Z9rn in WfCS: if Z9rn not in jQ3Z: raise a88W.ChartScriptError(Ol8d + ': ' + Z9rn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izQ9(jQ3Z, WfCS, Ol8d='Expected column missing from DataFrame'):\n for Z9rn in WfCS:\n if Z9rn not in jQ3Z:\n u6dc.set_warning(Ol8d + ': ' + Z9rn)\n raise ValueError(Ol8d + ': ' + Z9rn)", "def QupZ(f4IJ, ZLJ_):\n for fvDH in ZLJ_:\n if fvDH not in f4IJ.columns:\n ...
[ "0.7993104", "0.78055245", "0.77967316", "0.7756671", "0.7368346", "0.73298675", "0.732336", "0.731535", "0.72605044", "0.7228347", "0.721234", "0.7208803", "0.7190347", "0.7154901", "0.7148362", "0.7102417", "0.7054605", "0.7051288", "0.70458466", "0.70283914", "0.6884409", ...
0.80554545
0
Split a string with the given separator (by default with comma), trim the surrounding whitespace from the items, and return the result as a list. Returns an empty list for an empty or allwhitespace input string. (Note that in contrast, `s.split(',')` will return an empty array, even for `s=''`.)
def lpha(KCHu, VWe_=','): SQ3m = KCHu.split(VWe_) SQ3m = [XP5J.strip() for XP5J in SQ3m] if SQ3m == ['']: SQ3m = [] return SQ3m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(KCHu, g8rx):\n s2mk = ZbWC.split('\\\\s*' + g8rx + '\\\\s*', KCHu.strip())\n return list(filter(lambda a1PO: len(a1PO) > 1, map(str.strip, s2mk)))", "def Tst5(vIwR, VWe_=',', P4Ec=False):\n return [BWXx.strip() for BWXx in vIwR.split(VWe_) if not P4Ec or BWXx]", "def RoDD(vIwR, g8rx=';', Loo5...
[ "0.790176", "0.76997167", "0.7605008", "0.75935274", "0.7496762", "0.7486652", "0.7484577", "0.7251353", "0.709574", "0.7045852", "0.69990253", "0.6949398", "0.6926957", "0.68793774", "0.6869415", "0.6840872", "0.6812578", "0.6717643", "0.6706589", "0.6686567", "0.667107", ...
0.8136493
0
Split a document in sentences.
def iAEk(YKHO, yZn6): C13M = YKHO.document_store[yZn6] Rhv4 = [] for yAmx in C13M.split('.'): if not yAmx: continue yAmx = yAmx.replace('\n', '') Rhv4.append(yAmx.strip()) return Rhv4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0FK(A97Q):\n return ZbWC.split('[\\\\.\\\\?\\\\!]\\\\s+', A97Q)", "def c0FK(C13M):\n if not len(C13M):\n raise Exception('The document length cannot be zero.')\n tu2h = C13M.replace('i.e.', 'ie').replace('e.g.', 'eg').replace('etc.', 'etc')\n Rhv4 = ZbWC.split(' *[.?!][\\\\\\'\"\\\\)\\\\]...
[ "0.8088643", "0.78987575", "0.7534915", "0.7363189", "0.7363189", "0.73573655", "0.72783667", "0.72531", "0.7174298", "0.7119868", "0.70714015", "0.7065442", "0.7054877", "0.7041341", "0.70245945", "0.7009082", "0.69922465", "0.69663525", "0.69626004", "0.69523", "0.6940596",...
0.73589236
5
randomly generate a string of length nchars which is easy to type
def Mg5I(O3WL, ZTiO=gKqS['dvorak_chars']): usx6 = [fTff.randrange(4) for YRbF in range(O3WL)] WfCS = [fTff.randrange(5) for YRbF in range(O3WL)] KIE5 = [fTff.randrange(2)] JPoc = O3WL - 1 R8Rs = fTff.randrange(1, JPoc + 1) while JPoc > 0: if R8Rs > 0: KIE5.append(KIE5[-1]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lx9M(exwG):\n SIyd = 'abcdefghijklmnoprstuvwxyz'\n dEzN = ''.join((tuKI.choice(SIyd) for YRbF in range(exwG)))\n return dEzN", "def DsQ5(exwG=20):\n mrPm = list(vIwR.ascii_letters + vIwR.digits)\n return ''.join((oyIN.random.choice(mrPm) for bGrB in range(exwG)))", "def j9F_(exwG):\n retu...
[ "0.86519766", "0.85833365", "0.85506105", "0.8501159", "0.84488684", "0.8438788", "0.84235126", "0.8316042", "0.82686996", "0.8267268", "0.8200733", "0.818115", "0.8176376", "0.8165939", "0.815961", "0.8154266", "0.8144632", "0.8139844", "0.81397676", "0.8138208", "0.81372267...
0.0
-1
Converts the given str of letters to a index number that corresponds to that column. "A" corresponds to "1", "B" corresponds to "2", etc.
def pPt9(KoG3): if not KoG3.isalpha(): RKD7.error('Invalid argument given to ' + 'convertFromLettersToIndexNumber(). ' + "str given was: '{}'".format(KoG3)) return None KoG3 = KoG3.lower() HpKa = 26 mCHg = len(KoG3) - 1 M4wI = 0 RKD7.debug('Full str is: {}'.format(KoG3)) for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TMa9(Mab9):\n B_0t = 0\n DT55 = 0\n for hcXw in reversed(Mab9):\n DT55 += (ord(hcXw) - ord('A') + 1) * 26 ** B_0t\n B_0t += 1\n return DT55", "def bOi4(sZqf):\n iVRZ = 0\n u54L = len(sZqf)\n for YRbF in range(u54L):\n iVRZ += (ord(sZqf[YRbF]) - 64) * pow(26, u54L - Y...
[ "0.80252886", "0.7686653", "0.75029093", "0.7465491", "0.7460476", "0.72822183", "0.72611505", "0.72187483", "0.7216005", "0.7191933", "0.7153032", "0.7147969", "0.7139374", "0.7049707", "0.7011467", "0.6909812", "0.6894371", "0.6829198", "0.67998886", "0.67231464", "0.671045...
0.64595014
39
Converts the given index number to a str containing letters that correspond to that index number.
def VXLO(BWXx): KoG3 = '' HpKa = 26 if not isinstance(BWXx, int): RKD7.error('Invalid argument given to ' + 'convertFromIndexNumberToLetters(). ' + "value given was: '{}'".format(BWXx)) return None _ZC_ = BWXx mCHg = 1 RKD7.debug('valueRemaining == {}'.format(_ZC_)) RKD7.deb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LG3U(exwG):\n Ylbp = ''\n while exwG > 0:\n d6pt = (exwG - 1) % 26\n Ylbp += chr(d6pt + ord('A'))\n exwG = (exwG - 1) // 26\n return Ylbp[::-1]", "def qCMc(d6pt):\n sZqf = ''\n while d6pt > 0:\n ycBG = (d6pt - 1) % 26\n sZqf = sZqf.join(chr(ycBG + 65))\n ...
[ "0.7434567", "0.73223364", "0.7257499", "0.71707374", "0.71001875", "0.6812224", "0.67940015", "0.6791556", "0.676918", "0.67577606", "0.67563504", "0.6712564", "0.6694739", "0.6614103", "0.6611502", "0.65940607", "0.65609086", "0.6546632", "0.65402615", "0.65208477", "0.6512...
0.66008383
15
Add the person to the participants.
def vsq6(AdfU): Mzf9 = AdfU['command'].strip('<>') G9jH.debug('partcipant added to the list: ' + Mzf9) gjnY.add(Mzf9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vriw(YKHO, a70H):\n YKHO.persons.append(a70H)", "def eAou(YKHO, zAlC):\n YKHO.participants.append(zAlC)\n NCls.session.commit()", "def CzQf(YKHO, zAlC, azoT: dict) -> None:\n YKHO.participants.update({zAlC: azoT})", "def nRki(YKHO, a70H):\n YKHO.people.append(a70H)\n YKHO.death_dict[a70...
[ "0.8154843", "0.7839587", "0.777289", "0.76161474", "0.7532734", "0.752493", "0.7498528", "0.7355769", "0.7313641", "0.7256999", "0.725556", "0.714961", "0.7102952", "0.7042096", "0.69813675", "0.69586354", "0.68282855", "0.6813497", "0.6811924", "0.68073356", "0.6806793", ...
0.0
-1
Return the Intersection over Union (IoU) for a given label.
def RjuK(Y8eF, aMgO, UXqs: int): Y8eF = nMvt.cast(nMvt.equal(nMvt.argmax(Y8eF, axis=-1), UXqs), nMvt.floatx()) aMgO = nMvt.cast(nMvt.equal(nMvt.argmax(aMgO, axis=-1), UXqs), nMvt.floatx()) iQin = nMvt.sum(Y8eF * aMgO) b65I = nMvt.sum(Y8eF) + nMvt.sum(aMgO) - iQin hlel = nMvt.switch(nMvt.equal(b65I, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _xWy(nvEb, UXqs):\n OrFa = oyIN.unique(UXqs)\n exgV = len(OrFa)\n QdhN = oyIN.zeros(exgV)\n uLKX = oyIN.zeros(exgV)\n for d6pt, wEf2 in enumerate(OrFa):\n SEx8 = nvEb == wEf2\n wnIp = UXqs == wEf2\n QdhN[d6pt] = float(oyIN.sum(oyIN.logical_and(wnIp, SEx8)))\n uLKX[d6p...
[ "0.76123375", "0.7604112", "0.70084655", "0.6727569", "0.67131966", "0.63975745", "0.61881924", "0.61610746", "0.6152727", "0.6132302", "0.6113364", "0.6110947", "0.6110947", "0.6110947", "0.6110947", "0.6110947", "0.61051965", "0.60816014", "0.60425085", "0.60209405", "0.599...
0.616593
7
Return the Intersection over Union (IoU) score.
def KGg2(Y8eF, aMgO): svPB = nMvt.int_shape(aMgO)[-1] Uh1C = nMvt.variable(0) BCMK = nMvt.variable(0) for UXqs in range(svPB): wpZZ, w8TK = RjuK(Y8eF, aMgO, UXqs) Uh1C = Uh1C + wpZZ BCMK = BCMK + w8TK return Uh1C / BCMK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DM5Z(cCrA):\n RjuK = 0\n for p1kx in cCrA:\n RjuK += p1kx.get_iou()\n if len(cCrA) < 1:\n return 0\n return RjuK / len(cCrA)", "def _xWy(YKHO, UXqs, xfCv):\n iQin = YKHO.compute_intersection(UXqs, xfCv)\n b65I = YKHO.compute_union(UXqs, xfCv, iQin)\n return iQin / b65I", ...
[ "0.7443824", "0.73567927", "0.7193706", "0.7109505", "0.7079657", "0.705223", "0.69228023", "0.6919049", "0.6909645", "0.68456453", "0.68425244", "0.68391424", "0.6832664", "0.6817961", "0.6817067", "0.6813704", "0.68093157", "0.6789594", "0.6789594", "0.6777402", "0.6773706"...
0.0
-1
Assemble the element stiffness and rhs
def eval(YKHO, RKYb, k0lF, rlOI, VYvU, P6bq, LnPY, Ty9i, jzdc, ITS7, DHri, XmNr, Hnwz, kuhR, mnFw, wYoa, rf7O, zx30, Iql8, fouw): if rf7O[2] not in (CRi1, sql9, RhYd, T8HM, REvY): raise NotImplementedError if rf7O[2] in (RhYd, REvY): k0lF[:] = YKHO.mass_matrix(P6bq, LnPY) if rf7O[2] == R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bq7P(YKHO):\n YKHO.K.shape = (len(YKHO.nodes), len(YKHO.nodes))\n YKHO.F = oyIN.zeros(len(YKHO.nodes))\n for YRbF, LihS in enumerate(YKHO.elements):\n G1Hx = LihS.form_elem_matrix(zIm_, Ny1l)\n for r845 in range(3):\n for Mkmy in range(3):\n YKHO.K.add(index=(Li...
[ "0.60946554", "0.60296965", "0.5995548", "0.59917843", "0.5971134", "0.5804011", "0.5801528", "0.57948685", "0.57911444", "0.5772768", "0.57561123", "0.57496387", "0.57495016", "0.574699", "0.5741725", "0.5721261", "0.569739", "0.56735253", "0.5666426", "0.56647635", "0.56434...
0.0
-1
Returns a list of primes < n
def w78Z(exwG): KwQv = [True] * exwG for YRbF in Ni9Y(3, int(exwG ** 0.5) + 1, 2): if KwQv[YRbF]: KwQv[YRbF * YRbF::2 * YRbF] = [False] * ((exwG - YRbF * YRbF - 1) / (2 * YRbF) + 1) return [2] + [YRbF for YRbF in Ni9Y(3, exwG, 2) if KwQv[YRbF]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7wK(exwG):\n return [XP5J for XP5J in rPed(exwG)]", "def Nwax(exwG):\n if exwG < 3:\n return []\n k0lF = [True] * exwG\n k0lF[0], k0lF[1] = (False, False)\n for YRbF in range(2, int(exwG ** 0.5) + 1):\n if k0lF[YRbF]:\n r845 = YRbF ** 2\n while r845 < exwG:...
[ "0.86095405", "0.8466241", "0.84047896", "0.83796906", "0.83634984", "0.83148634", "0.8314648", "0.827032", "0.82659215", "0.8210297", "0.819209", "0.8167155", "0.8148454", "0.8147583", "0.81422484", "0.81272244", "0.8117192", "0.8104368", "0.80843806", "0.80402195", "0.80383...
0.79204756
40
Decorator for the "serializer" kind. Intended for overriding default serializer behaviour that cannot be influenced through `.extend_schema`.
def HEhn(fzsM=None, vaWC=None): def mrMx(rV9y): if not hasattr(rV9y, '_spectacular_annotation'): rV9y._spectacular_annotation = {} if fzsM is not None: rV9y._spectacular_annotation['many'] = fzsM if vaWC: rV9y._spectacular_annotation['exclude_fields'] = v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YZoZ(YKHO, Emd4):\n\n def mrMx(ZMzz):\n YKHO.register(Emd4, ZMzz)\n return ZMzz\n return mrMx", "def ZMzz(wH3T):\n\n def JUx8(JfyU):\n ngJK[wH3T] = JfyU\n return JfyU\n return JUx8", "def ZMzz(wH3T: DataFormat):\n\n def JUx8(JfyU):\n ngJK[wH3T] = JfyU\n ...
[ "0.74429065", "0.72975314", "0.7121862", "0.68229324", "0.66891396", "0.6637478", "0.65925735", "0.6524117", "0.64485353", "0.6439755", "0.62849396", "0.62470573", "0.6089016", "0.6029618", "0.60214055", "0.59877604", "0.59671015", "0.5952174", "0.5932682", "0.5930337", "0.58...
0.66556114
5
Add the mean intervisit time to the DataFrame.
def E0r8(jQ3Z): KXjL = jQ3Z['totalVisits_mean'] > 1 yjgo = oyIN.zeros(len(jQ3Z)) yjgo[KXjL] = jQ3Z['days_first_to_last_visit'][KXjL] / (jQ3Z['totalVisits_mean'][KXjL] - 1) jQ3Z['mean_intervisit_time'] = yjgo return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OpW4(YKHO, qvcP):\n YKHO.logger.info('calculating the mean DBS time for each file')\n fN4f = oyIN.array(qvcP.time.values, oyIN.float64).mean()\n IvhD = rLdf.to_datetime(oyIN.ones(len(qvcP.time.values)) * fN4f)\n E7um = zuVY.DataArray(data=IvhD, dims='time', coords={'time': qvcP.time}, name='scan_me...
[ "0.62159514", "0.61581933", "0.6106723", "0.6080571", "0.60033274", "0.59988886", "0.5923982", "0.59043103", "0.58814406", "0.5801958", "0.5777514", "0.57182133", "0.5711709", "0.56851345", "0.5681628", "0.56789804", "0.566746", "0.56521666", "0.56225145", "0.5604573", "0.559...
0.8251584
0
Return the cache dir. If not yet created, create it and return.
def wsLY(YKHO): Csk6 = YKHO.get('cache.dir') if Hy7s.path.exists(Csk6): if Hy7s.path.isdir(Csk6): return Csk6 else: raise RuntimeError('unable to create cache dir {} due to existing file of same name'.format(Csk6)) else: return LEgL(Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hz4f(YKHO):\n pmON = q20K\n if not Hy7s.path.exists(pmON):\n Hy7s.makedirs(pmON)\n return pmON", "def BXLT() -> GkAb:\n if not PjxR.exists():\n Hy7s.mkdir(str(PjxR))\n return PjxR", "def BXLT(YKHO) -> h8nf[GkAb]:\n if not YKHO.args.use_cache:\n return None\n BXLT =...
[ "0.8842389", "0.8550789", "0.8392768", "0.8351288", "0.82640684", "0.8189155", "0.81381446", "0.80846596", "0.80730116", "0.80649406", "0.80629176", "0.7948572", "0.7948572", "0.79382735", "0.7907441", "0.7880509", "0.78601795", "0.78323346", "0.7814241", "0.78058153", "0.772...
0.91022205
0
Set all the formula terms and arrays objects up for the tests.
def eCGt(): pcsd = 'ocean_s_coordinate_g1_roms.nc' with x3i3(i0XC.joinpath(pcsd)) as fHmP: ISnh = FLcV(fHmP)[0] dnkl = Ndxk(ISnh) Htse = Q23b(fHmP, dnkl) EZd9 = Me3S(fHmP, Htse) Sk_F = bQ8J(fHmP, dnkl, EZd9) yield {'formula_terms_variable': ISnh, 'formula_terms': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eCGt(YKHO):\n YKHO.setup_data()\n YKHO.setup_variables()\n YKHO.setup_constraints()\n YKHO.setup_objective()", "def iObY(YKHO):\n for YRbF in YKHO.auxiliary_units:\n YRbF._setup()\n YKHO.power_utility.empty()\n for YRbF in YKHO.heat_utilities:\n YRbF.empty()\n if not has...
[ "0.667611", "0.6359526", "0.6354666", "0.6319333", "0.622439", "0.62148976", "0.618949", "0.61729306", "0.61163056", "0.61009365", "0.60853446", "0.6084551", "0.6082851", "0.60827804", "0.60798776", "0.6056842", "0.6056842", "0.6037961", "0.59888256", "0.59854084", "0.5964014...
0.5865994
34
Given x, y coordinates (in mm), returns if the coordinates are within bounds
def qmhX(YKHO, m2os, bmPF): return YKHO.x_min + YKHO.threshold <= m2os <= YKHO.x_max - YKHO.threshold and YKHO.y_min + YKHO.threshold <= bmPF <= YKHO.y_max - YKHO.threshold
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ufiu(BHsk):\n WKvO, LVAh = BHsk\n return 0 <= WKvO <= 46 and 0 <= LVAh <= 23", "def rBzY(YKHO, WKvO, LVAh):\n return 0 <= WKvO <= YKHO.width - 1 and 0 <= LVAh <= YKHO.height - 1", "def qmhX(YKHO, WKvO: int, LVAh: int):\n return WKvO >= 0 and WKvO < YKHO.width and (LVAh >= 0) and (LVAh < YKHO.he...
[ "0.83008975", "0.82383394", "0.79818064", "0.7938478", "0.7938478", "0.7935786", "0.7836146", "0.7830296", "0.7822123", "0.7767443", "0.77490944", "0.7725542", "0.7691948", "0.7691948", "0.7675508", "0.7653682", "0.7646071", "0.7611021", "0.7600772", "0.75435394", "0.75056934...
0.7797439
9
Calling repo twice will return the same object.
def Wb_V(YKHO): lhep = YKHO.get_nd2g('group-a') YKHO.assertEqual(id(lhep.repo), id(lhep.repo))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def boHx(YKHO, CBIr, boHx):\n return i8gh.Repo(YKHO, CBIr, boHx)", "def JvFA(YKHO, boHx):\n Oap_ = FYrf.Repo.get_key_by_id(boHx.project, boHx.repo).get()\n if not Oap_:\n raise wnQ_.NotFoundException('repo not found.')\n Oap_.excluded = Oap_.repo in Z7L0.REPO_EXCLUSIONS.get(boHx.project, [])\n...
[ "0.6978448", "0.6477227", "0.64438254", "0.6428699", "0.640817", "0.63686746", "0.6361882", "0.63579357", "0.6277678", "0.62717897", "0.623916", "0.6211873", "0.62113583", "0.6189748", "0.61872196", "0.6159169", "0.6139102", "0.61292934", "0.61180604", "0.6109635", "0.6095609...
0.6099025
20
Reads an image from a file and preprocesses it and returns.
def OP2O(YKHO, d6pt): QMAG = YKHO.image_paths[d6pt] Ux0P = QMAG.split('_')[-1][:-len('.jpg')] LNo8 = hnIv.open(QMAG) iVef = YKHO.GT_paths + Ux0P.split('/')[-1] + '.xml' J_Es = GXnK.parse(iVef) p9NO = J_Es.findall('object') w7g_ = LNo8.width JKue = LNo8.height for p6S0, YEnM in enumer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uaKW(pD6d):\n return Zbfz(fPcm([pD6d]))[0]", "def Na_a(nUeQ):\n B_lJ(nUeQ)", "def DZ0a(Ux0P):\n return j9DC(svqz(Ux0P))", "def tsdv(Ux0P):\n return hnIv.open(Ux0P)", "def Hmm2(qaEx):\n VXjJ = hnIv.open(qaEx, mode='r')\n if VXjJ.mode == 'RGBA':\n VXjJ = tQEA(VXjJ)\n VXjJ = VX...
[ "0.8143973", "0.8117421", "0.75961214", "0.72541606", "0.71470267", "0.6966473", "0.69445044", "0.6935594", "0.69324046", "0.6928421", "0.6903913", "0.6835056", "0.6802122", "0.6798062", "0.67856157", "0.6781912", "0.6761674", "0.67227966", "0.6722036", "0.67163414", "0.67076...
0.0
-1
Generates a heatmap indicating the pixels that contributed the most towards maximizing the filter output.
def b8V_(): C3ST = HxRh(weights='imagenet', include_top=True) print('Model loaded.') lzjZ = 'predictions' Vglw = dict([(gEmA.name, gEmA) for gEmA in C3ST.layers[1:]]) for pmON in ['../resources/ouzel.jpg', '../resources/ouzel_1.jpg']: XprM = BfDw.load_img(pmON, target_size=(224, 224)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a643(YKHO, xqf7='source_id/34359738368', jngY=12, TqaJ=8, RcQu='count(*)', SuM2=None, Cs6h=None, q1XX='equatorial', tKeH='galactic', eHNT=None, MYQr='afmhot', j8we=None, N0ky=800, pf_1=True, wytA=None, sXTW=False, leAC='', gyoy=None, nUHY=False, Ew8X=True, DWJ0=(0, 0, 0), **B2fa):\n import healpy as A90d\n ...
[ "0.65463114", "0.64571756", "0.61877567", "0.6115636", "0.6088557", "0.6068811", "0.6059112", "0.6051619", "0.6011506", "0.5999692", "0.5936928", "0.5927374", "0.59263533", "0.5923896", "0.5920126", "0.5904402", "0.5883358", "0.58785295", "0.58034927", "0.5797932", "0.5796525...
0.0
-1
Cast column depending of inferred data type.
def Xnq1(jQ3Z, ZLJ_, IdAh): for AAHb in ZLJ_: yDqo = IdAh['columns'][AAHb]['dtype'] if yDqo in ['string', 'float', 'int', 'bool']: jQ3Z = jQ3Z.cols.cast(AAHb, yDqo) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRpw(jQ3Z, Jyyj, v6m9):\n return jQ3Z.withColumn(Jyyj, jQ3Z[Jyyj].cast(v6m9))", "def slke(YKHO, z0q4=None, ERIn=None, vcR0=None):\n jbBp = YKHO.df.columns\n if vcR0 is not None:\n PuKT = [A3wT for A3wT in jbBp if A3wT not in vcR0.keys()]\n utGq = ['cast(' + YRbF[0] + ' as ' + YRbF[1] +...
[ "0.74101764", "0.70965993", "0.6894476", "0.6867549", "0.6820961", "0.68149763", "0.68149394", "0.66828364", "0.6678192", "0.6596029", "0.6588402", "0.6466357", "0.64464396", "0.6428314", "0.64166903", "0.6370162", "0.6368527", "0.62758636", "0.6259748", "0.6246071", "0.62395...
0.6227421
21
Used to identify and convert key=value arguments into a tuple (key, value). Value stays as a str. This is to be passed as the type when calling argparse.ArgumentParser.add_argument()
def E4k_(aoD7): try: G1Hx, Ty9i = aoD7.split('=') except: raise j1Jz.ArgumentTypeError(f"value {aoD7} is not separated by one '='") return (G1Hx, Ty9i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7n2(aoD7):\n try:\n G1Hx, Ty9i = aoD7.split('=')\n except:\n raise j1Jz.ArgumentTypeError(f\"value {aoD7} is not separated by one '='\")\n G1Hx = G1Hx.upper()\n try:\n Ty9i = int(Ty9i)\n except:\n raise j1Jz.ArgumentTypeError(f'right side of {aoD7} should be int')\n ...
[ "0.6915669", "0.6845987", "0.67983073", "0.67983073", "0.66605306", "0.64482754", "0.6400995", "0.6303215", "0.6295776", "0.6295168", "0.6265485", "0.62026906", "0.61494917", "0.6089453", "0.6085188", "0.6030762", "0.6026001", "0.60137665", "0.5998401", "0.5976467", "0.596696...
0.7437373
0
u""" The y ticks are formatted here .03.31 add little check here to make sure the y axis shows the real value
def CYwu(iWJu, nFy1, CAtB, F5o8, hhRS=5, w7tN=None, IIET=True, ZZNT=False): dC6F = [] for UXqs in CAtB: if w7tN in (2, 10): UXqs = oyIN.power(w7tN, UXqs) if UXqs <= 0: dC6F.append('') else: dC6F.append('%.1f' % UXqs if UXqs % 1 != 0 else '%d' % UXqs) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ZEb(aNZO, L03z='%.2f'):\n aNZO.yaxis.set_major_formatter(Kk1H(L03z))", "def r8Hy(YKHO, BWXx):\n YKHO.set_string('yax_format', BWXx)", "def Sn1l(YKHO):\n if YKHO.scale & rrLg.OPTION_Y_LOG:\n Sn1l = 1\n elif YKHO._ytick is not None:\n Sn1l = YKHO._ytick\n else:\n ufJO = Y...
[ "0.70299816", "0.6990008", "0.6935541", "0.6762331", "0.67274815", "0.67081183", "0.6703447", "0.6703447", "0.66104203", "0.6579126", "0.65349764", "0.65108633", "0.6506828", "0.6506828", "0.6444394", "0.64174086", "0.6410544", "0.64077586", "0.6402287", "0.6391074", "0.63845...
0.6277031
26
Shortcut to saving a clean ModelForm instance + logging the addition or deletion.
def gejc(YKHO, L03z): wbM7 = L03z.instance.id KAOR = L03z.save() if wbM7: YKHO.log_change(L03z.instance, form=L03z) else: YKHO.log_addition(L03z.instance) return KAOR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVKp(YKHO, QePW, L03z, nZuS):\n return L03z.save(commit=False)", "def QVKp(YKHO, QePW, L03z, nZuS):\n return L03z.save(commit=False, request=QePW)", "def QVKp(YKHO, QePW, L03z, nZuS):\n return L03z.save(QePW, commit=False)", "def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n YEnM.save_and_log(QePW.us...
[ "0.63058054", "0.6206322", "0.61517537", "0.61016595", "0.61016595", "0.6014501", "0.5975119", "0.58885133", "0.58269614", "0.57930076", "0.5787775", "0.5776093", "0.57689744", "0.57689744", "0.5766592", "0.574352", "0.57273984", "0.57273984", "0.57273984", "0.57212824", "0.5...
0.6984176
0
Render the index.html template
def kZiy(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt():\n return TvZ...
[ "0.9147093", "0.9147093", "0.91099995", "0.9091586", "0.90910006", "0.90910006", "0.90910006", "0.90910006", "0.90910006", "0.90910006", "0.905996", "0.9057536", "0.9041835", "0.9028455", "0.9004337", "0.89910674", "0.89910674", "0.89910674", "0.89910674", "0.89910674", "0.89...
0.0
-1
Determine if the image is the same person or not.
def YXAl(hQHm: np.ndarray, jlSq: np.ndarray, cjUO: float=0.1) -> bool: V0yB = E17y(hQHm, jlSq) return V0yB <= cjUO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kXEP(LNo8):\n qaEx = GkAb(wO9v(c5ow.image_url))\n if not qaEx.exists():\n return False\n rk8i = lmn5(LNo8)\n LzNI = gNDB.average_hash(rk8i)\n J4pZ = gNDB.average_hash(hnIv.open(qaEx))\n tAX0 = 2\n if LzNI - J4pZ < tAX0:\n return True\n else:\n return False", "def ...
[ "0.6500715", "0.63537544", "0.63537544", "0.6225404", "0.61945635", "0.6129699", "0.61226296", "0.6110742", "0.6103331", "0.6098345", "0.6098101", "0.5989156", "0.5972902", "0.5945175", "0.59196717", "0.5890513", "0.58875024", "0.58341163", "0.58297426", "0.58202684", "0.5814...
0.0
-1
Return object by passed pk from all reports, not from get_queryset result
def AMX5(YKHO): return Iofl(dgX8, pk=YKHO.kwargs['pk'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMX5(YKHO, _sei):\n try:\n return DIya.objects.get(pk=_sei)\n except DIya.DoesNotExist:\n raise uhgT", "def AMX5(YKHO, _sei, SR0I=None):\n return Iofl(YKHO.get_queryset(), pk=_sei)", "def NMoC(YKHO, _sei, filter=None):\n pass", "def aeup(YKHO, _sei):\n return YKHO.model.query...
[ "0.7845825", "0.7544983", "0.7086408", "0.7062793", "0.7040925", "0.70075095", "0.6831551", "0.6775676", "0.674189", "0.665343", "0.66294867", "0.66294867", "0.66294867", "0.66294867", "0.66294867", "0.66294867", "0.66196114", "0.66076887", "0.66076887", "0.66076887", "0.6596...
0.79141635
0
The dtype of the underlying numpy array.
def yDqo(YKHO): return YKHO._dtype
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDqo(YKHO) -> eBH2[XTiz.dtype]:\n return YKHO._dtype", "def iR6h(YKHO):\n return YKHO.hardware_dtype", "def yDqo(YKHO) -> oyIN.dtype:\n return YKHO._converter.dtype", "def yDqo(YKHO):\n return YKHO._finfo.dtype", "def yDqo(YKHO):\n return YKHO._data.dtype", "def yDqo(YKHO):\n return...
[ "0.8291013", "0.82242584", "0.80985343", "0.8087171", "0.8015909", "0.8005831", "0.7971396", "0.7971396", "0.7971396", "0.7971396", "0.7969609", "0.79441565", "0.7934213", "0.79264015", "0.78998417", "0.78869677", "0.7873862", "0.78322864", "0.782605", "0.7793883", "0.7766098...
0.7914131
15
Indicates whether each row of the image is contiguous in memory.
def PKvG(YKHO): return YKHO._array.strides[1] // YKHO._array.itemsize == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QOYL(YKHO) -> bool:\n if YKHO.sampleformat == 5 or YKHO.compression != 1 or YKHO.bitspersample not in {8, 16, 32, 64}:\n return False\n if 322 in YKHO.tags:\n if YKHO.imagewidth != YKHO.tilewidth or YKHO.imagelength % YKHO.tilelength or YKHO.tilewidth % 16 or YKHO.tilelength % 16:\n ...
[ "0.7653073", "0.7399496", "0.7274765", "0.7102757", "0.7098929", "0.69383997", "0.6874086", "0.6718293", "0.6381951", "0.6106223", "0.6104575", "0.6052131", "0.6038443", "0.6031958", "0.6009538", "0.59768677", "0.5973972", "0.5966916", "0.5937402", "0.5855343", "0.5847995", ...
0.79716045
0
The bounds of the outer edge of the pixels. Equivalent to galsim.BoundsD(im.xmin0.5, im.xmax+0.5, im.ymin0.5, im.ymax+0.5)
def vrOM(YKHO): return g6xn(YKHO.xmin - 0.5, YKHO.xmax + 0.5, YKHO.ymin - 0.5, YKHO.ymax + 0.5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmnP(YKHO):\n if not YKHO.img:\n return None\n BQGg = 560\n bYzl = 0\n h3cg = 400\n Z3uP = 0\n for WKvO in range(YKHO.get_size()[0]):\n for LVAh in range(YKHO.get_size()[1]):\n e3Fk = YKHO.get_pixel(WKvO, LVAh)\n if e3Fk[3] > 0:\n if WKvO > b...
[ "0.7347205", "0.71392095", "0.70798063", "0.70568043", "0.7025862", "0.70176786", "0.70133376", "0.6973672", "0.6973672", "0.6973672", "0.69274527", "0.6922453", "0.6914757", "0.68501824", "0.6814779", "0.68136954", "0.68136203", "0.67935216", "0.6793008", "0.6771516", "0.665...
0.83564574
0
Performs an inverse FFT of an `Image` in kspace to produce a realspace `Image`. The starting image is typically an `ImageCD`, although if the Fourier function is real valued, then you could get away with using an `ImageD` or `ImageF`. The image is assumed to be Hermitian. In fact, only the portion with x >= 0 needs to ...
def jzPu(YKHO): if YKHO.wcs is None: raise RTOS('calculate_inverse_fft requires that the scale be set.') if not YKHO.wcs._isPixelScale: raise RTOS('calculate_inverse_fft requires that the image has a PixelScale wcs.') if not YKHO.bounds.isDefined(): raise pbNe('calculate_inverse_fft ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Maw7(tG1N):\n CtM0 = EZID(oyIN.ones_like(tG1N))\n LNo8 = CtM0.adj_op(tG1N)\n return LNo8", "def MRlR(LNo8):\n CtM0 = EZID(oyIN.ones_like(LNo8))\n tG1N = CtM0.op(LNo8)\n return tG1N", "def hKRt(YKHO, SppC):\n \"\"\"\n npifft2 = np.fft.ifft2(matrix, s=None, axes=None, norm=None)\n...
[ "0.7862664", "0.68262744", "0.6754771", "0.6274611", "0.6271666", "0.62297004", "0.62221104", "0.6221247", "0.61839074", "0.6084649", "0.6082505", "0.6051096", "0.6034306", "0.60136735", "0.5979857", "0.5977133", "0.59703296", "0.5936259", "0.59259284", "0.5911682", "0.588067...
0.76100624
1
Make a view of this image, which lets you change the scale, wcs, origin, etc. but view the same underlying data as the original image. If you do not provide either ``scale`` or ``wcs``, the view will keep the same wcs as the current `Image` object.
def tTee(YKHO, NXpY=None, LZCK=None, hLRM=None, hgjH=None, ZsXj=False, yDqo=None, do_f=False): if hLRM is not None and hgjH is not None: raise s1cy('Cannot provide both center and origin', center=hgjH, origin=hLRM) if NXpY is not None: if LZCK is not None: raise s1cy('Cannot provide ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uMyV(YKHO):\n return OFAI(YKHO.array.view(), YKHO.bounds, YKHO.wcs)", "def KIFJ(YKHO, LNo8=None, LZCK=None, **B2fa):\n if YKHO._im is not None:\n YKHO._im.remove()\n YKHO._im = None\n B2fa.setdefault('origin', 'upper')\n if LZCK is not None:\n qfpW = YKHO._axes.coords.frame.g...
[ "0.6385938", "0.6191055", "0.57013685", "0.56353444", "0.54727054", "0.5450231", "0.5405133", "0.5391361", "0.5379988", "0.5303617", "0.5295852", "0.5262534", "0.5259539", "0.5256557", "0.5255099", "0.52485734", "0.52402115", "0.52387685", "0.5164689", "0.51634943", "0.516258...
0.70324385
0
The current nominal center (xcen,ycen) of the image as a PositionI instance. In terms of the rows and columns, xcen is the x value for the central column, and ycen is the y value of the central row. For evensized arrays, there is no central column
def hgjH(YKHO): return YKHO.bounds.center
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fkpg(YKHO):\n from scipy import ndimage\n return ndimage.measurements.center_of_mass(YKHO.calib)[0]", "def hgjH(YKHO):\n return (YKHO.center_x, YKHO.center_y)", "def hgjH(YKHO):\n Uk22 = YKHO.c_y - YKHO.canvas.square_len / 2\n rdlD = round(Uk22 / YKHO.canvas.square_len)\n Ve8o = YKHO.c_x ...
[ "0.7444645", "0.73341656", "0.7280056", "0.7259885", "0.72143835", "0.72099364", "0.71968466", "0.71968466", "0.71921897", "0.717885", "0.7168334", "0.71513695", "0.7134352", "0.7120842", "0.7107204", "0.71009076", "0.7100476", "0.70970833", "0.7095412", "0.70765316", "0.7062...
0.0
-1
Returns the fullwidth halfmaximum (FWHM) of a drawn object. This method is equivalent to `GSObject.calculateFWHM` when the object has already been drawn onto an image. Note that the profile should be drawn using a method that does not integrate over pixels, so either 'sb' or 'no_pixel'. Also, if there is a significant ...
def ScHa(YKHO, hgjH=None, PTiM=0.0): if hgjH is None: hgjH = YKHO.true_center U3KS = oyIN.max(YKHO.array) if U3KS > PTiM: PTiM = U3KS WKvO, LVAh = YKHO.get_pixel_centers() WKvO -= hgjH.x LVAh -= hgjH.y FbT9 = WKvO * WKvO + LVAh * LVAh cIIR = oyIN.argsort(FbT9.ravel()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nuWl(LNo8):\n WBPg = LNo8.header\n try:\n Xzf3 = WBPg['PIXSCAL1']\n except:\n Xzf3 = 0.263\n G9jH.warning('Could not read PIXSCAL1 keyword from science HDU\\nWill default to %s', Xzf3)\n try:\n rXfu = WBPg['FWHM']\n Qb1p = rXfu * Xzf3\n except:\n rXfu = ...
[ "0.68995786", "0.64311254", "0.64138156", "0.6303131", "0.626971", "0.62387806", "0.62385553", "0.618637", "0.61589944", "0.61564904", "0.61479586", "0.6147052", "0.61126745", "0.61034137", "0.60997", "0.60843843", "0.6073307", "0.60639447", "0.60443836", "0.6036726", "0.6013...
0.5950627
29
Return a version of the image flipped left to right.
def Ku4O(YKHO): return OFAI(YKHO.array[:, ::-1], YKHO._bounds, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xCtz(LNo8):\n return LNo8[:, ::-1]", "def Ku4O(VXjJ):\n return VXjJ.transpose(hnIv.FLIP_LEFT_RIGHT)", "def zDnU(YKHO, LNo8):\n LNo8 = oyIN.fliplr(LNo8)\n return LNo8", "def UB7Z(Xn71):\n if len(Xn71.shape) == 3:\n return Xn71[:, ::-1, :]\n else:\n return Xn71[:, ::-1, :]",...
[ "0.8394086", "0.83318853", "0.80075413", "0.7861028", "0.7821675", "0.77476096", "0.76530373", "0.761848", "0.7615087", "0.73562115", "0.73387223", "0.7232264", "0.7217604", "0.72175545", "0.72167665", "0.71978384", "0.71810806", "0.71383417", "0.7068913", "0.7051556", "0.704...
0.78915954
3
Return a version of the image flipped top to bottom.
def rG0M(YKHO): return OFAI(YKHO.array[::-1, :], YKHO._bounds, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BL9i(VXjJ):\n return VXjJ.transpose(hnIv.FLIP_TOP_BOTTOM)", "def il8A(VXjJ):\n if not Qfi2(VXjJ):\n raise TypeError('img should be PIL Image. Got {}'.format(type(VXjJ)))\n return VXjJ.transpose(hnIv.FLIP_TOP_BOTTOM)", "def il8A(VXjJ):\n if not Qfi2(VXjJ):\n raise TypeError('img sh...
[ "0.80590075", "0.7729203", "0.7729203", "0.74729985", "0.7436934", "0.74083024", "0.7320535", "0.730258", "0.728911", "0.7248841", "0.7119792", "0.7092743", "0.70764035", "0.70456105", "0.70116925", "0.69898814", "0.69785064", "0.6922333", "0.6899007", "0.68602234", "0.686021...
0.73217744
6
Creates a dictionary description of the device and its sub devices and services.
def MNRr(YKHO, vm8y=False): oYbL = None YKHO._device_lock.acquire() try: QoB4 = YKHO._description if QoB4 is not None: oYbL = QoB4.to_dict(brief=vm8y) oYbL['URLBase'] = YKHO.URLBase if not vm8y: nxFS = [] P46s = oYbL['servic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GWuV(YKHO):\n return {'identifiers': {(FMt8, aFf6)}, 'name': lUIv, 'manufacturer': iV5e, 'model': Ziik, 'sw_version': r7Ad, 'entry_type': 'service'}", "def GWuV(YKHO):\n return {'identifiers': {(Sugg, YKHO._device.device_id)}, 'manufacturer': 'Abode', 'name': YKHO._device.name, 'device_type': YKHO._dev...
[ "0.7556399", "0.7484061", "0.7480053", "0.7468818", "0.7468818", "0.7432801", "0.7385899", "0.73583853", "0.735149", "0.73508227", "0.7350615", "0.7289648", "0.7278993", "0.7278993", "0.7259259", "0.719694", "0.71917987", "0.71917987", "0.71917987", "0.7180155", "0.7180155", ...
0.6155788
93
r"""Convert an integer into a binary integer list
def mFWN(exwG, GNxA): if exwG >= 2 ** GNxA: raise ValueError(f'cannot encode {exwG} with {GNxA} wires ') STnt = f'{exwG:b}'.zfill(GNxA) eQNZ = [int(YRbF) for YRbF in STnt] return eQNZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FEi4(mLGw):\n eQNZ = [int(WKvO) for WKvO in bin(mLGw)[2:]]\n hrJT = 8 - len(eQNZ) % 8\n return [0] * hrJT + eQNZ", "def Xe3P(WKvO: int) -> list:\n return [int(Fg_i) for Fg_i in '{:032b}'.format(WKvO)]", "def X8xq(WKvO: int) -> x1iM[int]:\n return [WKvO >> YRbF & 1 for YRbF in range(10)]", ...
[ "0.84722227", "0.83776516", "0.8022961", "0.78825045", "0.7778456", "0.7596256", "0.7594638", "0.75337744", "0.74887186", "0.7463488", "0.7457273", "0.74299437", "0.74235183", "0.7261826", "0.72142744", "0.71735513", "0.71489507", "0.7147917", "0.7077789", "0.7077789", "0.707...
0.7079762
18
It should test the list endpoint
def v_nO(x0hE, TeYO): Ylbp = x0hE.get(aJuL) assert Ylbp.status_code == 200 assert len(Ylbp.json) == 0 p4FQ(x0hE, aJuL, TeYO) Ylbp = x0hE.get(aJuL) assert Ylbp.status_code == 200 assert len(Ylbp.json) == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v_nO(YKHO):\n geh0 = YKHO.client.get(gxEw(YKHO.urlprefix + '_list'))\n YKHO.assertEqual(geh0.status_code, 200)", "def Er9p(YKHO):\n pass", "def XZPr(YKHO):\n bD7m = gxEw(YKHO.list)\n Ylbp = YKHO.client.get(bD7m)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_401_UNAUTHORIZED)\n YKHO.cl...
[ "0.90056556", "0.85466367", "0.8484671", "0.845", "0.83618706", "0.8356254", "0.8244786", "0.82224435", "0.81655216", "0.80902016", "0.8056144", "0.8004359", "0.7963461", "0.79368275", "0.78739583", "0.78665", "0.7850107", "0.7838334", "0.7827484", "0.7825849", "0.7803905", ...
0.76625186
35
It should test the update endpoint
def IsIF(x0hE, TeYO): V2h5 = _qLf(TeYO) V2h5['title'] = 'My new title' Ylbp = x0hE.put(f'{aJuL}{TeYO['isbn']}', json=V2h5) assert Ylbp.status_code == 404 p4FQ(x0hE, aJuL, TeYO) Ylbp = x0hE.put(f'{aJuL}{TeYO['isbn']}', json=V2h5) assert Ylbp.json['isbn'] == TeYO['isbn'] assert Ylbp.json['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IHWV(YKHO):\n pass", "def Naj2(YKHO, x0hE):\n geh0 = x0hE.get(nKyW('mypost.update'))\n assert geh0.status_code == 200", "def fFWj(YKHO):\n YEnM = YKHO.model_factory.create()\n geh0 = YKHO.client.get(f'/{YKHO.root_url}/{str(YEnM.id...
[ "0.8495796", "0.8495796", "0.8486569", "0.81775606", "0.8098793", "0.80733997", "0.8003054", "0.7965058", "0.795002", "0.7920933", "0.7887486", "0.7832495", "0.78184247", "0.7817174", "0.78000575", "0.77689826", "0.7758709", "0.77451277", "0.7731624", "0.77141184", "0.7711330...
0.7682742
25
Decorate routes to require login.
def uKii(eHNT): @zaGL(eHNT) def SzLu(*qIxc, **B2fa): if WxWd('user_id') is None: return vKnz('/login') return eHNT(*qIxc, **B2fa) return SzLu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if not 'logged_in' in cuiw:\n return vKnz(nKyW('index', next=QePW.url))\n return JfyU(*qIxc, **B2fa)\n return WS4m", "def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if Oa1e.user i...
[ "0.7088456", "0.69661", "0.69525415", "0.6949141", "0.6931404", "0.69277924", "0.69114035", "0.6908829", "0.68492377", "0.68424016", "0.68367666", "0.68357086", "0.6820801", "0.6820801", "0.6820801", "0.6820801", "0.6806658", "0.68059635", "0.67959154", "0.6781016", "0.677388...
0.6587663
49
Updates the experience by the given amount
def n6tR(Z5kt): vK2k = NCls.execute('SELECT active_pet_id FROM users WHERE id = ?', (WxWd('user_id'),)).fetchone() print(vK2k['active_pet_id']) _4pA = int(vK2k['active_pet_id']) nLLf = NCls.execute('SELECT exp FROM pets WHERE id = ?', (_4pA,)).fetchall() kLQb = int(nLLf[0]['exp']) + int(Z5kt) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8vi(YKHO):\n YKHO.experience += 1", "def d4p7(YKHO, YsJM):\n YKHO.user_experience += YsJM\n YKHO.save()", "def dLV9(YKHO) -> None:\n if YKHO._experience < 50:\n YKHO._experience += 0.01", "def QdZT(YKHO, GsKL):\n YKHO.learner.update(GsKL)", "def vAWK(YKHO, Z5kt):\n YKHO.amount...
[ "0.7747697", "0.77159274", "0.74249035", "0.7410612", "0.69947326", "0.6950803", "0.69156826", "0.69102323", "0.68078166", "0.67989594", "0.6767499", "0.66059345", "0.6594714", "0.6468209", "0.6422679", "0.6359571", "0.6343928", "0.63363326", "0.6334031", "0.6313558", "0.6274...
0.7162434
4
Method for representing Item as a string. >>> item1 = Item("a", 1) >>> repr(item1) >>> Item{(a, 1)}
def wHJl(YKHO): return 'Item{{{}}}'.format(YKHO.__get_tuple())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.item)", "def wHJl(YKHO):\n return f'Item=(id={YKHO.id},item_name={YKHO.item_name},item_slug={YKHO.item_slug})'", "def zAg0(YKHO) -> str:\n return str(YKHO.__items)", "def wHJl(YKHO):\n return f'<Item {YKHO.id} {YKHO.name} {YKHO.is_wearable} {YKHO.armor_class} {YK...
[ "0.76873803", "0.7591837", "0.7515491", "0.7484779", "0.7408633", "0.7408633", "0.7408633", "0.7408633", "0.7408633", "0.7408633", "0.7408633", "0.7408633", "0.7408633", "0.731744", "0.73053384", "0.72642976", "0.72642976", "0.7244329", "0.7234052", "0.71310556", "0.7119341",...
0.78489727
0
Test listing app blackouts.
def hg2r(YKHO): QpfX.GLOBAL.zk.conn.get.return_value = ('\n foo.*: {reason: test, when: 1234567890.0}\n bar.baz: {reason: test, when: 1234567890.0}\n ', TMAJ.Mock()) Ylbp = YKHO.runner.invoke(YKHO.blackout_cli, ['--cell', 'test', 'app']) YKHO.assertEqual(Ylbp.exit_co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ISTK(YKHO):\n QpfX.GLOBAL.zk.conn.get.return_value = ('\\n foo.*: {reason: test, when: 1234567890.0}\\n bar.baz: {reason: test, when: 1234567890.0}\\n ', TMAJ.Mock())\n Ylbp = YKHO.runner.invoke(YKHO.blackout_cli, ['--cell', 'test', 'app', '--app', 'bar.baz', '--c...
[ "0.73200136", "0.66048324", "0.6520083", "0.6503292", "0.64430267", "0.6394004", "0.635284", "0.6271862", "0.6070297", "0.6069758", "0.60557747", "0.6040478", "0.59235764", "0.59160584", "0.58924645", "0.5877879", "0.58765376", "0.5864051", "0.5854652", "0.57368445", "0.57365...
0.783398
0
Set value as code for this GLOSOM The value argument can be either an int or a str. If str, conversion to int is tried, then hexadecimal with '0x' prefix, and finally hexadecimal without '0x'. If the conversion fails, code is considered 0 (zero).
def Wxnj(YKHO, BWXx: Optional[Union[int, str]]=0) -> l1oh: if BWXx and isinstance(BWXx, str): try: YKHO._code = int(BWXx) except ValueError as exc: try: YKHO._code = int(BWXx, 0) except ValueError: try: YKHO._cod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wxnj(YKHO, BWXx: str) -> None:\n if not isinstance(BWXx, str):\n YKHO.logger.info(f'Vermittlungscode must be str – got {type(BWXx)} instead!')\n return\n YKHO._code = BWXx", "def Wxnj(YKHO, BWXx):\n if not isinstance(BWXx, int):\n raise TypeError('Status code value must be an in...
[ "0.7335033", "0.70721316", "0.7045855", "0.66666687", "0.6637051", "0.65315324", "0.6516222", "0.6499436", "0.6469273", "0.6455139", "0.62421846", "0.6229099", "0.61505413", "0.61505413", "0.61505413", "0.61505413", "0.61505413", "0.61505413", "0.61505413", "0.61505413", "0.6...
0.68641067
3
Returns the parent of the given element. Returns None if the element has no parent element.
def KViK(YKHO, U6D_): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAwq(YKHO, LihS: Union[ElementNode, TypedElement]) -> h8nf[uLKX[h2j7, Ecbt]]:\n if isinstance(LihS, hKpc):\n LihS = LihS.elem\n if LihS is YKHO.root:\n return None\n try:\n return YKHO.parent_map[LihS]\n except KeyError:\n return None", "def _AKB(YKHO):\n if not YKH...
[ "0.8026415", "0.79195815", "0.7616659", "0.76154655", "0.737006", "0.7327411", "0.73007596", "0.72828627", "0.7227151", "0.7223306", "0.71618783", "0.7125298", "0.71185076", "0.7100811", "0.70891726", "0.70470834", "0.7007453", "0.6996893", "0.69299525", "0.6856485", "0.68492...
0.8417898
0
Returns the parent of the given element. Returns None if the element has no parent element.
def KViK(YKHO, U6D_): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAwq(YKHO, LihS: Union[ElementNode, TypedElement]) -> h8nf[uLKX[h2j7, Ecbt]]:\n if isinstance(LihS, hKpc):\n LihS = LihS.elem\n if LihS is YKHO.root:\n return None\n try:\n return YKHO.parent_map[LihS]\n except KeyError:\n return None", "def _AKB(YKHO):\n if not YKH...
[ "0.8026415", "0.79195815", "0.7616659", "0.76154655", "0.737006", "0.7327411", "0.73007596", "0.72828627", "0.7227151", "0.7223306", "0.71618783", "0.7125298", "0.71185076", "0.7100811", "0.70891726", "0.70470834", "0.7007453", "0.6996893", "0.69299525", "0.6856485", "0.68492...
0.8417898
1
Optimize hyperparameters using nevergrad.
def mY1i(*, CrBf: str, Zbwy: int, PbxG: int, Yi5A: int, M24A: Hint[QualifierModel], **B2fa): M24A = XPgD.lookup(query=M24A) J4Uw = dict() if issubclass(M24A, ri4q): J4Uw.update(wgYx) if issubclass(M24A, g0Bz): J4Uw.update(xzCy) Bl79 = dict(training_approach=CrBf) if CrBf == 'slcw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i6uH(YKHO, xqoZ, Ro40):\n return", "def v91z(YKHO, *qIxc, **B2fa):\n return", "def v91z(YKHO, *qIxc, **B2fa):\n return", "def FiJ9(YKHO):\n for k78t in YKHO.pretrain.parameters():\n k78t.requires_grad = False", "def FiJ9(YKHO):\n for k78t in YKHO.pretrain.parameters():\n k7...
[ "0.7018457", "0.6938837", "0.6938837", "0.68826616", "0.68826616", "0.6814298", "0.67962885", "0.67643064", "0.67643064", "0.6756879", "0.6725382", "0.66901076", "0.6628723", "0.66195005", "0.66126984", "0.6600117", "0.6592605", "0.6556905", "0.65275306", "0.65183574", "0.651...
0.0
-1
Return the altitude, in radians, of the Sun on a given date ant time as observed from London.
def UAl8(_c1T): SXBG = xbVl.city('London') SXBG.date = _c1T return xbVl.Sun(SXBG).alt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TCfe(YKHO, WKvO):\n hksT = YKHO.location\n hksT.date = WKvO['UTCDate']\n BadC = xbVl.Sun()\n BadC.compute(hksT)\n return epAf.degrees(BadC.alt)", "def HWgM():\n W061, BadC = pwZx()\n return BadC.alt * 180.0 / b1GL", "def GsvP(YKHO):\n try:\n WFvj = UJNH.AltAz(location=YKHO.im...
[ "0.7753516", "0.7289941", "0.68918025", "0.6870242", "0.67289245", "0.6648704", "0.6641585", "0.6628835", "0.6620966", "0.66040236", "0.6597895", "0.6527939", "0.6494066", "0.64885104", "0.6488384", "0.6464881", "0.6463019", "0.6436323", "0.64073306", "0.63929", "0.63732886",...
0.85519004
0
Creates an instance of the specified class to serve as the RPC target. RPC calls can be made on the target.
def FhLo(YKHO, xAhW): YKHO.target = xAhW()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GSfr(Emd4: Type[T], *qIxc, GzKb: float=10.0, Q64Y: str='rpc_queue', hbFX: str=fj7y().hex, **B2fa) -> uLKX[OQUu, Kt_s]:\n if not isinstance(Emd4, type):\n raise TypeError(f'unexpected type {Emd4}')\n if not PqHX(Emd4):\n raise ValueError(f'no rpc endpoint on class {Emd4}')\n KAOR = Emd4(*...
[ "0.68289244", "0.6759857", "0.6759857", "0.6678511", "0.65730786", "0.64690727", "0.6314945", "0.6222451", "0.6081977", "0.60785556", "0.60708535", "0.60708535", "0.6063692", "0.6037359", "0.6031136", "0.6009202", "0.600056", "0.59401697", "0.5911882", "0.5911457", "0.5878858...
0.7286783
0
if the valve is currently closed.
def SEEh(YKHO): return not YKHO.is_open()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SEEh(YKHO):\n return None", "def msNV(YKHO) -> bool:\n ...", "def msNV(YKHO) -> bool:\n ...", "def msNV(YKHO):\n return False", "def SEEh(YKHO):\n return False", "def SEEh(YKHO):\n raise NotImplementedError", "def QYfG(YKHO):\n if not YKHO.is_change():\n return False\n ...
[ "0.7456445", "0.7266489", "0.7266489", "0.7147651", "0.7135615", "0.7045927", "0.7037741", "0.7008894", "0.6981755", "0.6962607", "0.6959566", "0.695935", "0.6959063", "0.6931602", "0.6931602", "0.6930399", "0.6893517", "0.6893517", "0.6893517", "0.6893517", "0.6893517", "0...
0.6891307
21
Compute the hash of 'target_filepath'. This is useful in conjunction with the "path_hash_prefixes" attribute in a delegated targets role, which tells us which paths a role is implicitly responsible for. The repository may optionally organize targets into hashed bins to ease target delegations and role metadata manageme...
def r6hW(ojq0): x7JD.RELPATH_SCHEMA.check_match(ojq0) ITYV = Y8MQ.digest(algorithm=N_BB) ITYV.update(ojq0.encode('utf-8')) return ITYV.hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r6hW(ojq0):\n Qb2w.RELPATH_SCHEMA.check_match(ojq0)\n ITYV = YJRq.digest(N_BB)\n LPpn = ojq0.encode('utf-8')\n ITYV.update(LPpn)\n xETR = ITYV.hexdigest()\n return xETR", "def rjHV(YKHO):\n return hash((YKHO.source, YKHO.target_path))", "def U7kj(YKHO, OQJK):\n try:\n nzu_ = ...
[ "0.8024778", "0.66657597", "0.6454166", "0.6317785", "0.6225331", "0.61894697", "0.6143044", "0.61298496", "0.60954833", "0.60805106", "0.6041143", "0.6040017", "0.60239565", "0.5998002", "0.5942649", "0.58774114", "0.5862982", "0.5841602", "0.58368915", "0.580227", "0.580032...
0.8017312
1
Rotate a point by a given angle around a given origin.
def N0Pp(AU8u=(0, 0), _IXK=0, hLRM=(0, 0)): if _IXK == 0: return AU8u hlel = [] MDvv = epAf.radians(_IXK) YRSS, rUT8 = hLRM if isinstance(AU8u[0], (list, tuple)): xuug = False LTIa = AU8u else: xuug = True LTIa = (AU8u,) for Xlvp, nfKA in LTIa: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N0Pp(hLRM, AU8u, YylR):\n YRSS, rUT8 = (hLRM.X, hLRM.Y)\n Xlvp, nfKA = (AU8u.X, AU8u.Y)\n jCyH = YRSS + epAf.cos(YylR) * (Xlvp - YRSS) - epAf.sin(YylR) * (nfKA - rUT8)\n PMVZ = rUT8 + epAf.sin(YylR) * (Xlvp - YRSS) + epAf.cos(YylR) * (nfKA - rUT8)\n return RM3a(jCyH, PMVZ, 0)", "def N0Pp(hLRM,...
[ "0.84663767", "0.8390546", "0.83377934", "0.831385", "0.82273406", "0.82155806", "0.8154858", "0.81499434", "0.81383735", "0.8138226", "0.8127362", "0.810625", "0.80743057", "0.80641264", "0.80616647", "0.8059362", "0.80572766", "0.8048871", "0.8048871", "0.8048871", "0.80410...
0.69086313
70
Convert a box to a polygon. A box is a square formatted as (top, left, width, height). A polygon is the box as four distinct points.
def o62t(FlUN=(0, 0, 0, 0)): tlxW, LFlW, es2x, _tIi = nkhB.boxPoints(FlUN) ShLW = (tlxW, LFlW) lOGt = (tlxW, _tIi) XOP0 = (es2x, _tIi) Mh0j = (es2x, LFlW) return (ShLW, lOGt, XOP0, Mh0j)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s9eO(YKHO):\n return FlUN(*YKHO)", "def X0_G(zFiD):\n V22M = ZbWC.split('[(\\\\s,)]', zFiD)\n XdG6 = V22M[1]\n iSjc = V22M[2]\n TVTK = V22M[3]\n H2v2 = V22M[4]\n if ':' in XdG6:\n XdG6 = CEWs(XdG6, unit=P6bq.hour)\n else:\n XdG6 = CEWs(XdG6, unit=P6bq.degree)\n iSjc =...
[ "0.76027066", "0.7052472", "0.69547075", "0.6862974", "0.67926913", "0.6730027", "0.6654408", "0.65739256", "0.646955", "0.646202", "0.6460424", "0.6459696", "0.64454746", "0.64273787", "0.640277", "0.640028", "0.63315535", "0.63077646", "0.6266142", "0.625911", "0.6252932", ...
0.8156558
0
Check to see if a face's center is near a point.
def AYa5(YKHO, hgjH=(0, 0)): if YKHO.image.width > YKHO.image.height: ZV0e = int(YKHO.image.width * 0.015) else: ZV0e = int(YKHO.image.height * 0.015) JPqE, fXzF = hgjH for RpU_ in YKHO.faces: J1af, Gzsm = RpU_['draw']['center'] JRC0 = J1af - ZV0e IA3S = J1af + ZV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w2uM(AU8u, rU28=i912.atol):\n JBMS = i912.mean(AU8u, axis=-2)\n return i912.all(i912.isclose(JBMS, 0.0, atol=rU28), axis=-1)", "def r4R3(FV9o, AU8u):\n return epAf.sqrt((AU8u.x - FV9o.centre.x) ** 2 + (AU8u.y - FV9o.centre.y) ** 2) <= FV9o.radius", "def EDs6(YKHO, LTIa):\n LTIa = oyIN.atleast_2...
[ "0.75053626", "0.7021387", "0.6981801", "0.69558036", "0.6886303", "0.6855127", "0.6822164", "0.6811314", "0.67883736", "0.6751657", "0.6751657", "0.6751657", "0.6751657", "0.6709418", "0.6699579", "0.6666555", "0.6643308", "0.6636658", "0.6610567", "0.65862393", "0.65826416"...
0.7690223
0
Returns true if the user is active.
def ksfB(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ksfB(YKHO):\n return YKHO.user.is_active", "def ksfB(YKHO):\n return YKHO.user.is_active", "def ksfB(YKHO):\n return YKHO.user.is_active", "def ksfB(YKHO):\n return YKHO.user.is_active", "def akPH(YKHO, CBIr):\n if not YKHO.require_active:\n return True\n return CBIr.is_active"...
[ "0.88026565", "0.88026565", "0.88026565", "0.88026565", "0.87702847", "0.8701742", "0.8366307", "0.82178277", "0.82178277", "0.81681806", "0.80143404", "0.80118066", "0.80118066", "0.80118066", "0.800333", "0.8003324", "0.79393065", "0.79238355", "0.7894719", "0.7871815", "0....
0.79389817
25
Adds whitespace to a string until it is a target length.
def CiY5(j93S, DB_8): a__r = len(j93S) if a__r > DB_8: return j93S[:DB_8] L5bZ = (DB_8 - a__r) * ' ' return j93S + L5bZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TQVx(vIwR, RV39):\n while len(vIwR) < RV39:\n vIwR += ' '\n return vIwR", "def P0iS(KCHu, i7rd):\n return KCHu + ' ' * (i7rd - len(KCHu))", "def O4H_(vIwR, u54L):\n return str(vIwR).rjust(u54L, ' ')", "def hVLt(vIwR, u54L):\n return '\\n'.join([(' ' * u54L if p6S0 else '') + zFiD fo...
[ "0.7311491", "0.72617966", "0.6799037", "0.6797272", "0.65686506", "0.62821597", "0.6267017", "0.6248751", "0.62405294", "0.62390476", "0.62146467", "0.61830807", "0.6165479", "0.6164378", "0.61615235", "0.6156046", "0.6154053", "0.6152226", "0.60458755", "0.6032068", "0.6026...
0.72203535
2
Ends user session and redirects to login page.
def erK4(): oLi7() return vKnz(nKyW('login'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QcBj(YKHO):\n YKHO.getCurrentDriver().get(zDeW + 'accounts/logout')", "def lViG():\n cuiw.clear()\n return vKnz(nKyW('user_login'))", "def erK4():\n oLi7()\n cuiw.clear()\n Dwep(OCoQ('See you next time!'), 'info')\n return vKnz(nKyW('main.home'))", "def wJ7q():\n Dwep('You have be...
[ "0.78247505", "0.7724039", "0.7654102", "0.76277906", "0.762774", "0.76119906", "0.7578202", "0.75583774", "0.7549589", "0.7522988", "0.7522895", "0.75165397", "0.7514693", "0.75036764", "0.7500909", "0.74899614", "0.74896663", "0.74893266", "0.7476924", "0.7474876", "0.74711...
0.7368466
44
Sends password reset email message to user that includes the token.
def doc2(CBIr): eOtH = CBIr.get_reset_token() tO9_ = LuKW('Password Reset Request', sender='noreply@productchecker.com', recipients=[CBIr.email]) tO9_.body = f'To reset your password, visit the following link:\n\n{nKyW('reset_token', token=eOtH, _external=True)}\n\nIf you did not make this request then plea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def doc2(YKHO):\n eOtH = YKHO.get_reset_token()\n tO9_ = LuKW('Password Reset Request', recipients=[YKHO.email])\n tO9_.body = f'To reset your password, visit the following link:\\n\\n {nKyW('users.reset_token', token=eOtH, _external=True)}\\n\\n If you did not make this request, please ignore this ...
[ "0.8360025", "0.81231177", "0.81010276", "0.8089091", "0.7996979", "0.7937929", "0.78998375", "0.7895089", "0.78746545", "0.78475916", "0.7819707", "0.7813426", "0.7800622", "0.7785801", "0.77836466", "0.7773778", "0.773746", "0.7708945", "0.7683009", "0.76769555", "0.7670926...
0.7914565
6
Accepts token from password reset emails. If token is valid and active, allow user to reset password. After password update, redirect to login page.
def rBAO(eOtH): if c5ow.is_authenticated: return vKnz(nKyW('dashboard')) CBIr = mv1M.verify_reset_token(eOtH) if CBIr is None: Dwep('Invalid or expired token, please try again.', 'warning') return vKnz(nKyW('reset_request')) L03z = VVDG() if L03z.validate_on_submit(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rBAO(eOtH):\n if c5ow.is_authenticated:\n return vKnz(nKyW('main.home'))\n CBIr = mv1M.verify_reset_token(eOtH)\n if CBIr is None:\n Dwep('That is an invalid or expired token', 'warning')\n return vKnz(nKyW('users.reset_request'))\n L03z = VVDG()\n if L03z.validate_on_submit...
[ "0.766034", "0.76272076", "0.7555274", "0.75502485", "0.7540334", "0.7516113", "0.7485435", "0.7427791", "0.7379978", "0.7371769", "0.7326723", "0.71604383", "0.71586114", "0.711099", "0.70831794", "0.70675373", "0.7065638", "0.7040876", "0.7024401", "0.69902354", "0.6916685"...
0.7684812
0
Calculates 6D measurement vector based on detections. If there are multiple detections, then any combination should produce reasonably similar measurements.
def AveK(tdsC, hiY9): qq6R = tdsC.to_dict('list') apIh = 0 d6pt = 0 _ovv = {'cam': [], 'view': [], 'pos': []} NkGo = {'cam': [], 'view': [], 'pos': []} QGK8 = {'cam': [], 'view': [], 'pos': []} J9Sm = {'iteration': [], 'Z1': [], 'Z2': [], 'Z3': [], 'Z4': [], 'Z5': [], 'Z6': []} while d6p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LC2X():\n EcVT, fuBA, Nk6w, q7In, rVnq = apkv()\n RCl8 = [0] * 4\n oPaw = 0.005 / oyIN.cos(q7In)\n BFeB = [f1eH, oPaw, iPWM, oPaw, i7ei, oPaw, qeEA]\n HhQZ, grNX, gkKV = ([], [], [])\n n5sI = 0\n for gEmA in range(7):\n if gEmA >= len(EcVT) or gEmA >= len(fuBA):\n break\n...
[ "0.59662485", "0.5796037", "0.5725391", "0.56735814", "0.5658192", "0.56258804", "0.5612633", "0.54733014", "0.54728216", "0.5465919", "0.5410018", "0.53987247", "0.53987247", "0.5370446", "0.5337274", "0.53128123", "0.5273852", "0.52415514", "0.5231026", "0.5207163", "0.5203...
0.5093491
35
Read a bam file into a list where each element of the list is a line from the bam file (with the newline stripped). The header is discarded.
def KqJA(JMg3): Ylbp = Yn3K.check_output('samtools view {}'.format(JMg3), shell=True) return Ylbp.strip().split('\n')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aA6_(YKHO, Ux0P):\n return [vC9B.strip() for vC9B in lGU7.open(Ux0P, 'rt', encoding='utf8').readlines()]", "def YBt2(cJUo):\n uiVx = open(cJUo, 'r')\n UHFx = 0\n ZWCE = []\n jWe2 = []\n wyDD = ''\n for zFiD in uiVx:\n zFiD = zFiD.strip()\n if zFiD and zFiD[0] == '>':\n ...
[ "0.60471535", "0.5881994", "0.587062", "0.58582914", "0.57935417", "0.5756778", "0.5753101", "0.5719123", "0.57059246", "0.5698493", "0.5675735", "0.5656959", "0.5654794", "0.56324536", "0.5603988", "0.55987215", "0.5595569", "0.55770785", "0.55715257", "0.5563239", "0.556288...
0.6840381
0
Test to see whether we can add an allele.
def tEUu(YKHO): SFNB = f9zD('12670\tG\tC\n') SFNB.add_allele(['A']) assert SFNB.alleles == ['G', 'C', 'A']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gtqG(YKHO, pImw):\n return True", "def CpIA(YKHO):\n return False", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(YKHO, QePW):\n return False", "def Cb6...
[ "0.7198485", "0.6409474", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", "0.63097095", ...
0.5881711
47
Create and return the ``OptionParser`` which will be used to parse the arguments to this command.
def yl6v(YKHO, qP5v, V0Dt, ZbXs=sWmU): return ZbXs(prog=qP5v, usage=YKHO.usage(V0Dt), version=YKHO.get_version(), option_list=YKHO.option_list)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yl6v():\n wvEv = FCn1.OptionParser(__doc__.strip(), version=BtDU)\n KdLI(wvEv)\n Vzsd(wvEv)\n Ao2l(wvEv)\n LvxV(wvEv)\n lwAi(wvEv)\n return wvEv", "def z0ba(YKHO):\n return ugSn.ArgParser(add_help=False)", "def C5D6(YKHO):\n wvEv = j1Jz.ArgumentParser()\n return wvEv", "def ...
[ "0.7988479", "0.79215586", "0.7831009", "0.77683675", "0.7611391", "0.7596209", "0.75930244", "0.75924844", "0.7554474", "0.7547471", "0.7541877", "0.7523206", "0.7509449", "0.7508262", "0.7487802", "0.7463031", "0.7427745", "0.74203223", "0.73864645", "0.7382292", "0.7373528...
0.70575905
79
build k indices for kfold.
def a4rF(LVAh, sSDk, yokr): gqUV = LVAh.shape[0] VOlW = int(gqUV / sSDk) oyIN.random.seed(yokr) _0VL = oyIN.random.permutation(gqUV) a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)] return oyIN.array(a_4G)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4rF(LVAh, sSDk, yokr):\n \"\"\"build k indices for k-fold.\"\"\"\n gqUV = LVAh.shape[0]\n VOlW = int(gqUV / sSDk)\n oyIN.random.seed(yokr)\n _0VL = oyIN.random.permutation(gqUV)\n a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)]\n return oyIN.array(a_4G)", "def a4rF(...
[ "0.8147923", "0.7920322", "0.78636", "0.78578305", "0.78578305", "0.7852471", "0.7851632", "0.7820169", "0.7806145", "0.73644537", "0.73370546", "0.7038534", "0.69905734", "0.6826553", "0.67935085", "0.6787416", "0.6763014", "0.6755921", "0.67309886", "0.6562994", "0.6526764"...
0.7869487
2
Generate a minibatch iterator for a dataset. Takes as input two iterables (here the output desired values 'y' and the input data 'tx') Outputs an iterator which gives minibatches of `batch_size` matching elements from `y` and `tx`. Data can be randomly shuffled to avoid ordering in the original data messing with the ra...
def aNDg(LVAh, UShr, Ep8u, PmAP=1, hXNa=True): Zgof = len(LVAh) if hXNa: jp5x = oyIN.random.permutation(oyIN.arange(Zgof)) Z3m2 = LVAh[jp5x] N_ZB = UShr[jp5x] else: Z3m2 = LVAh N_ZB = UShr for Bugx in range(PmAP): V_8U = Bugx * Ep8u ixQc = min((Bug...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wc9F(LVAh, UShr, Ep8u, yokr):\n oyIN.random.seed(yokr)\n Zgof = len(LVAh)\n _0VL = oyIN.random.permutation(UShr.shape[0])\n uEc1 = _0VL[:Ep8u]\n t6N9 = LVAh[uEc1]\n ecwU = UShr[uEc1]\n return (t6N9, ecwU)", "def aNDg(LVAh, UShr, Ep8u, yokr, PmAP=1, hXNa=True):\n Zgof = len(LVAh)\n ...
[ "0.773391", "0.7716999", "0.7714499", "0.7649259", "0.7591864", "0.7543141", "0.7533209", "0.7461885", "0.7458089", "0.7434022", "0.72911", "0.7138741", "0.71146977", "0.70680255", "0.6973024", "0.69015986", "0.68873495", "0.6877575", "0.6835183", "0.68087775", "0.6785389", ...
0.764036
4
Returns the unique ID of the group this algorithm belongs to. This string should be fixed for the algorithm, and must not be localised. The group id should be unique within each provider. Group id should contain lowercase alphanumeric characters only and no spaces or other formatting characters.
def e7pw(YKHO): return 'DistanceIndicators'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'group_id')", "def Dt19(YKHO) -> str:\n return ...
[ "0.82729745", "0.82729745", "0.7978516", "0.7978516", "0.78238046", "0.76885754", "0.7608342", "0.7608342", "0.7608342", "0.7608342", "0.7608342", "0.7608342", "0.7582248", "0.75415707", "0.75192326", "0.7506732", "0.75028914", "0.75028914", "0.74850583", "0.7326488", "0.7252...
0.0
-1