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
check if article is added by the session user
def n68o(l3QS): return wC2y() and l3QS.adder_id == cuiw['user_id']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n if YKHO.request.user == m8z6.author:\n return True\n return False", "def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n if YKHO.request.user == m8z6.author:\n return True\n return False", "def Iw6c(YKHO):\n m8z6 = YKHO.get_object()\n ...
[ "0.65675294", "0.65675294", "0.65675294", "0.6563369", "0.6560343", "0.6532734", "0.6337611", "0.63197154", "0.63197154", "0.6307368", "0.6291594", "0.6291594", "0.6236001", "0.6236001", "0.61765856", "0.6123823", "0.6075838", "0.6058549", "0.6052112", "0.603839", "0.60289055...
0.67515343
0
JSON route return all articles
def iqGZ(): bGrB, mrVf = gyOt(ouvA) return pz3A([XP5J.serialize for XP5J in mrVf])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, QePW):\n xDcj = wHLq.objects.exclude(in_menu=True)\n HjaN = T8ck()\n X6fc = {}\n HnhU = [OXAZ for OXAZ in QePW.GET.get('query').split(' ')]\n for OXAZ in HnhU:\n X6fc[OXAZ] = T8ck(headline__icontains=OXAZ) | T8ck(teaser__icontains=OXAZ)\n for H5ew in X6fc.keys():\n Hj...
[ "0.76428914", "0.73714584", "0.730595", "0.7252955", "0.7145002", "0.71417636", "0.71103233", "0.7039124", "0.7034439", "0.69309026", "0.69119483", "0.68383425", "0.6713291", "0.6712339", "0.6666729", "0.66575736", "0.6650189", "0.66353476", "0.6623531", "0.66136116", "0.6601...
0.72775084
3
Make a TVM array from a numpy array.
def HJI4(YKHO, Ty9i, a1PO): return Hxoc.const(fnfy.ndarray.array(Ty9i, YKHO.context))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HJI4(YKHO, Ty9i, a1PO):\n return mh5P.TensorValue(fnfy.ndarray.array(Ty9i, YKHO.context))", "def xy0P(qw7D, mWFP='numpy_array', iAIW=None):\n xc8H = TFav.numpy_to_vtk(qw7D, array_type=iAIW)\n xc8H.SetName(mWFP)\n return xc8H", "def BiYq(qw7D, begE=None):\n vhpA = ht2j.from_numpy(qw7D)\n r...
[ "0.71418154", "0.67676306", "0.67488146", "0.6744", "0.67353344", "0.6666639", "0.654026", "0.64258605", "0.6314872", "0.62857133", "0.62700635", "0.6207249", "0.6197825", "0.61536616", "0.61488956", "0.6125124", "0.61029273", "0.60561687", "0.6054449", "0.6029422", "0.602725...
0.6758016
2
Convert the scalar to a TVM array.
def xmZ1(YKHO, Ty9i, a1PO): return Hxoc.const(Ty9i, cCC_(a1PO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HJI4(YKHO, Ty9i, a1PO):\n return mh5P.TensorValue(fnfy.ndarray.array(Ty9i, YKHO.context))", "def HJI4(YKHO, Ty9i, a1PO):\n return Ty9i.asnumpy()", "def HJI4(YKHO, Ty9i, a1PO):\n return Hxoc.const(fnfy.ndarray.array(Ty9i, YKHO.context))", "def lYQI(Ty9i):\n return Ty9i.data.cpu().numpy()", "...
[ "0.7701706", "0.7496901", "0.7442912", "0.7051381", "0.69589496", "0.679737", "0.64386696", "0.643446", "0.63496083", "0.6335184", "0.63239425", "0.63034874", "0.6299254", "0.62725425", "0.6254344", "0.6245925", "0.62162405", "0.6200133", "0.61681616", "0.6161573", "0.6142880...
0.5685143
67
Convert the scalar to a TVM array.
def _gPR(YKHO, Ty9i, a1PO): return Hxoc.const(Ty9i, cCC_(a1PO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HJI4(YKHO, Ty9i, a1PO):\n return mh5P.TensorValue(fnfy.ndarray.array(Ty9i, YKHO.context))", "def HJI4(YKHO, Ty9i, a1PO):\n return Ty9i.asnumpy()", "def HJI4(YKHO, Ty9i, a1PO):\n return Hxoc.const(fnfy.ndarray.array(Ty9i, YKHO.context))", "def lYQI(Ty9i):\n return Ty9i.data.cpu().numpy()", "...
[ "0.770447", "0.7498832", "0.74453515", "0.7054694", "0.6960214", "0.67985827", "0.64379007", "0.6432308", "0.6348519", "0.6334958", "0.63245773", "0.6303826", "0.629935", "0.6271294", "0.6254539", "0.6245002", "0.6214389", "0.6200251", "0.6170424", "0.6160929", "0.6141828", ...
0.0
-1
Return the value for a node.
def bf9h(YKHO, Q6kx): return YKHO.node_map[Q6kx]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO):\n return YKHO.node_value", "def Oegh(YKHO, exwG):\n Q6kx = YKHO.get_node(exwG)\n if Q6kx:\n return Q6kx.value", "def Oegh(Q6kx: Node):\n if Q6kx.type != 'Const':\n raise Exception(\"Can't get value for non-constant node {}\".format(Q6kx.name))\n return Q6kx.value", ...
[ "0.8601973", "0.8556735", "0.80245584", "0.77859634", "0.77855194", "0.7752846", "0.7722371", "0.7722371", "0.7512131", "0.72803754", "0.722555", "0.722555", "0.7175926", "0.7140032", "0.71315473", "0.7055834", "0.7049485", "0.70054674", "0.6980659", "0.69745415", "0.69719213...
0.0
-1
Make a TVM array from a numpy array.
def HJI4(YKHO, Ty9i, a1PO): return mh5P.TensorValue(fnfy.ndarray.array(Ty9i, YKHO.context))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xy0P(qw7D, mWFP='numpy_array', iAIW=None):\n xc8H = TFav.numpy_to_vtk(qw7D, array_type=iAIW)\n xc8H.SetName(mWFP)\n return xc8H", "def HJI4(YKHO, Ty9i, a1PO):\n return Hxoc.const(fnfy.ndarray.array(Ty9i, YKHO.context))", "def BiYq(qw7D, begE=None):\n vhpA = ht2j.from_numpy(qw7D)\n return ...
[ "0.67676306", "0.6758016", "0.67488146", "0.6744", "0.67353344", "0.6666639", "0.654026", "0.64258605", "0.6314872", "0.62857133", "0.62700635", "0.6207249", "0.6197825", "0.61536616", "0.61488956", "0.6125124", "0.61029273", "0.60561687", "0.6054449", "0.6029422", "0.6027257...
0.71418154
0
Convert the scalar to a TVM array.
def xmZ1(YKHO, Ty9i, a1PO): return dQgi(Ty9i, cCC_(a1PO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HJI4(YKHO, Ty9i, a1PO):\n return mh5P.TensorValue(fnfy.ndarray.array(Ty9i, YKHO.context))", "def HJI4(YKHO, Ty9i, a1PO):\n return Ty9i.asnumpy()", "def HJI4(YKHO, Ty9i, a1PO):\n return Hxoc.const(fnfy.ndarray.array(Ty9i, YKHO.context))", "def lYQI(Ty9i):\n return Ty9i.data.cpu().numpy()", "...
[ "0.77028644", "0.7498151", "0.7444269", "0.7053144", "0.6959375", "0.67976755", "0.6440333", "0.64342535", "0.6350386", "0.63362974", "0.63252753", "0.6303845", "0.63004553", "0.6273109", "0.6253934", "0.62466145", "0.6216596", "0.62015337", "0.61696815", "0.61627567", "0.614...
0.61184096
24
Convert the scalar to a TVM array.
def _gPR(YKHO, Ty9i, a1PO): return dQgi(Ty9i, cCC_(a1PO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HJI4(YKHO, Ty9i, a1PO):\n return mh5P.TensorValue(fnfy.ndarray.array(Ty9i, YKHO.context))", "def HJI4(YKHO, Ty9i, a1PO):\n return Ty9i.asnumpy()", "def HJI4(YKHO, Ty9i, a1PO):\n return Hxoc.const(fnfy.ndarray.array(Ty9i, YKHO.context))", "def lYQI(Ty9i):\n return Ty9i.data.cpu().numpy()", "...
[ "0.7701706", "0.7496901", "0.7442912", "0.7051381", "0.69589496", "0.679737", "0.64386696", "0.643446", "0.63496083", "0.6335184", "0.63239425", "0.63034874", "0.6299254", "0.62725425", "0.6254344", "0.6245925", "0.62162405", "0.6200133", "0.61681616", "0.6161573", "0.6142880...
0.0
-1
Returns the Domain Constraints property.
def C9U5(YKHO, Bnkd, Wswm, _30w, zqkB, i7nr, X0Wp): _VPC = TvZl('/'.join([YKHO.template_path, YKHO._PROPERTIES_SQL]), doid=i7nr, coid=X0Wp) jGRS, Ylbp = YKHO.conn.execute_dict(_VPC) if not jGRS: return r1yd(errormsg=Ylbp) if len(Ylbp['rows']) == 0: return znGg(YKHO.not_found_error_msg())...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YHZO(YKHO):\n return YKHO.constraints", "def gkIT(YKHO):\n return YKHO._constraints", "def gkIT(YKHO):\n return YKHO._constraints", "def zVgM(YKHO):\n gkIT = []\n for YRbF in Ni9Y(YKHO.num_repeats):\n gkIT.extend(YKHO._domain.get_constraint_list(start_index=YKHO.dim * YRbF))\n re...
[ "0.7092082", "0.7061821", "0.7061821", "0.63417745", "0.6274486", "0.615007", "0.6133616", "0.61052185", "0.61004084", "0.6094774", "0.60611075", "0.6055215", "0.6030728", "0.6020534", "0.5930369", "0.5877718", "0.586928", "0.5865302", "0.577572", "0.577349", "0.5773422", "...
0.0
-1
Returns the SQL for the Domain Constraint object.
def Pe9W(YKHO, Bnkd, Wswm, _30w, zqkB, i7nr, X0Wp=None): uPxI, zrIJ = YKHO._get_domain(i7nr) _VPC = TvZl('/'.join([YKHO.template_path, YKHO._PROPERTIES_SQL]), doid=i7nr, coid=X0Wp) jGRS, Ylbp = YKHO.conn.execute_dict(_VPC) if not jGRS: return r1yd(errormsg=Ylbp) if len(Ylbp['rows']) == 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o6y_(YKHO) -> str:\n Pe9W = YKHO.name + ' ' + YKHO.value_type + ' '\n if YKHO.primary:\n Pe9W += 'PRIMARY KEY' + ' '\n if YKHO.unique:\n Pe9W += 'UNIQUE' + ' '\n if YKHO.autoincrement:\n Pe9W += 'AUTOINCREMENT' + ' '\n if YKHO.not_null:\n Pe9W += 'NOT NULL' + ' '\n ...
[ "0.5898487", "0.5889723", "0.5774924", "0.5704873", "0.5668311", "0.565452", "0.5583689", "0.5520103", "0.5482173", "0.5370367", "0.5329105", "0.5315439", "0.5312143", "0.52056015", "0.5153131", "0.5081607", "0.5070313", "0.5047414", "0.5036086", "0.5035124", "0.49911228", ...
0.5458322
9
Compute the dot product of two iterables.
def BJ1H(yLHq: typing.Iterable, RKYb: typing.Iterable) -> float: return sum((Uqbu * H0q3 for Uqbu, H0q3 in zip(yLHq, RKYb)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pxL1(WKvO, LVAh):\n return sum(JaxB(seET.mul, WKvO, LVAh))", "def pxL1(hQHm, jlSq):\n return sum(JaxB(seET.mul, hQHm, jlSq))", "def BJ1H(hQHm, jlSq):\n return sum((WKvO * LVAh for WKvO, LVAh in DMWo(hQHm, jlSq)))", "def X6_J(hQHm, jlSq):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(hQHm, j...
[ "0.82072806", "0.8138062", "0.7880936", "0.7869606", "0.78574634", "0.7854296", "0.78125775", "0.77786505", "0.7770841", "0.7738633", "0.77320033", "0.7590197", "0.75651634", "0.75444365", "0.753875", "0.7533884", "0.7527918", "0.74607277", "0.7424749", "0.7417901", "0.739386...
0.7950844
2
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None himU = cmPJ.get('broadcastThreshold') gS6L = cmPJ.get('multicastThreshold') uv7y = cmPJ.get('unknownUnicastThreshold') return Emd4(himU, gS6L, uv7y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.83181584", "0.8168118", "0.8168118", "0.8118749", "0.8089047", "0.79787344", "0.7949278", "0.79231393", "0.7898951", "0.78923255", "0.788838", "0.7882321", "0.7882212", "0.7876749", "0.78585315", "0.7836853", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407",...
0.0
-1
Format string as camelcase.
def TwDo(vIwR): return ZbWC.sub('(?:^|_)(.)', lambda r8hN: r8hN.group(1).upper(), vIwR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uhRd(KCHu):\n return KCHu[0].upper() + KCHu[1:]", "def mPcS(l5Ny):\n hlel = ''\n for YRbF, yzQ0 in enumerate(l5Ny.split(' ')):\n if YRbF > 0:\n hlel += yzQ0[0].upper() + yzQ0[1:]\n else:\n hlel += yzQ0\n return hlel", "def c3S0(BWXx: str, **B2fa: Any) -> str:...
[ "0.78673756", "0.7861403", "0.7572935", "0.7519646", "0.74611413", "0.7451193", "0.7394029", "0.73724234", "0.730702", "0.7302507", "0.7297997", "0.7264715", "0.72641236", "0.7224937", "0.7201934", "0.7197974", "0.7195071", "0.7164117", "0.71289766", "0.71140176", "0.71105266...
0.6253222
79
Remove any training spaces from string.
def bLX0(l5Ny: str) -> str: return '\n'.join([WKvO.rstrip() for WKvO in l5Ny.splitlines()])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EQOQ(vIwR):\n return vIwR.replace(' ', '')", "def Yczo(KCHu):\n return ZbWC.sub('\\\\s+', ' ', KCHu.strip())", "def Yczo(YKHO, vIwR):\n return ZbWC.sub('\\\\s+', ' ', vIwR).strip()", "def yAYF(l5Ny):\n return fMIo.sub(' ', l5Ny.strip())", "def YF9t(vIwR):\n vIwR = ZbWC.sub('(?m)^\\\\s+',...
[ "0.7711076", "0.76351744", "0.7633882", "0.75421613", "0.75235146", "0.752332", "0.750592", "0.74749476", "0.7447301", "0.7378563", "0.73471797", "0.73429734", "0.73429734", "0.73087466", "0.7268787", "0.72381085", "0.72100747", "0.7196451", "0.7178571", "0.7146372", "0.71421...
0.0
-1
Remove all ANSI escapes from string or bytes. If bytes is passed instead of string, it will be converted to string using UTF8.
def V9Zy(nPrm): if isinstance(nPrm, bytes): nPrm = nPrm.decode('utf-8') return ZbWC.sub('\\x1b[^m]*m', '', nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dr6F(KCHu):\n if isinstance(KCHu, str):\n return STgU.sub('\\\\4', KCHu)\n else:\n return nUnE.sub('\\\\4', KCHu)", "def YL5r(l5Ny):\n return JNWq.sub('', l5Ny)", "def YL5r(hGN5):\n return dTEX.sub('', hGN5)", "def LpzL(vIwR, wvEv=iIo5):\n vIwR = vIwR or ''\n return wvEv.s...
[ "0.8098004", "0.7803283", "0.7787631", "0.75544477", "0.71860015", "0.71570224", "0.71421677", "0.70792705", "0.70498973", "0.6949454", "0.69469595", "0.69127864", "0.69034964", "0.68224865", "0.6782713", "0.6756653", "0.6751193", "0.6721633", "0.67195314", "0.66588444", "0.6...
0.7642829
3
Remove ANSI colors from string or bytes.
def Ri4v(nPrm): if isinstance(nPrm, bytes): nPrm = nPrm.decode('utf-8') iZFm = ZbWC.compile('\\x1b\\[\\d*m') return ZbWC.sub(iZFm, '', nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dr6F(KCHu):\n if isinstance(KCHu, str):\n return STgU.sub('\\\\4', KCHu)\n else:\n return nUnE.sub('\\\\4', KCHu)", "def YL5r(vIwR, wvEv=iIo5):\n vIwR = vIwR or ''\n return wvEv.parse_ansi(vIwR, strip_ansi=True)", "def YL5r(l5Ny: str):\n return JmRi.sub('', l5Ny)", "def LpzL(...
[ "0.81363213", "0.78119075", "0.77925724", "0.7654249", "0.75995886", "0.7557216", "0.7292949", "0.72734857", "0.71964836", "0.7161154", "0.7160186", "0.6984052", "0.6925755", "0.6781745", "0.6755757", "0.6619914", "0.6534531", "0.6412453", "0.637948", "0.62836486", "0.6251108...
0.8091831
1
The Dispersy database singleton.
def p9bx(YKHO): return YKHO._database
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t8hf(YKHO):\n ...", "def NCls(YKHO):\n return YKHO._db", "def FIMM(YKHO) -> None:\n YKHO.Database = FfT0()", "def FIMM(YKHO):\n YKHO._connection = DcSJ()", "def NCls(YKHO) -> FfT0:\n return YKHO.impl.db", "def f9VD(YKHO):\n pass", "def NCls(YKHO):\n if YKHO._db is None:\n ...
[ "0.7026949", "0.6708901", "0.66980237", "0.64360684", "0.6435411", "0.6414717", "0.63987094", "0.637299", "0.63264066", "0.6319736", "0.6288225", "0.6288225", "0.6257615", "0.62390304", "0.6231716", "0.6230113", "0.6223236", "0.620247", "0.619697", "0.61620003", "0.61315477",...
0.6064697
25
Add a community to the Dispersy instance. Each community must be known to Dispersy, otherwise an incoming message will not be able to be passed along to it's associated community. In general this method is called from the Community.__init__(...) method.
def xnZb(YKHO, v7nJ): if __debug__: from .v7nJ import Community assert isinstance(v7nJ, Community) if __debug__: w88k(v7nJ.cid.encode('HEX'), ' ', v7nJ.get_classification()) assert not v7nJ.cid in YKHO._communities assert not v7nJ in YKHO._walker_commmunities YKHO._communities[v7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v7nJ(YKHO, v7nJ):\n YKHO._community = v7nJ", "def eLd8(YKHO, v7nJ):\n assert v7nJ is None or isinstance(v7nJ, icdm), type(v7nJ)\n YKHO._community = v7nJ\n if v7nJ:\n YKHO._dispersy = v7nJ.dispersy", "def lBVy(YKHO, pB3N=None):\n qv1X = DwDh(YKHO)\n qv1X.payload = pB3N\n return q...
[ "0.66487974", "0.6411453", "0.60780495", "0.59311634", "0.5903593", "0.57783663", "0.5659524", "0.5643145", "0.5609838", "0.5570506", "0.5549704", "0.5501872", "0.54274434", "0.52420706", "0.52355367", "0.51256007", "0.5091495", "0.5078886", "0.5069313", "0.5055437", "0.50341...
0.7048054
0
Returns True when this message is a duplicate, otherwise the message must be processed.
def Fj7H(YKHO, Ol8d): v7nJ = Ol8d.community try: ipKL, tv8n = YKHO._database.execute(u'SELECT packet, undone FROM sync WHERE community = ? AND member = ? AND global_time = ?', (v7nJ.database_id, Ol8d.authentication.member.database_id, Ol8d.distribution.global_time)).next() except StopIteration: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GlqA(YKHO, Ol8d):\n H5ew = (Ol8d.remote, Ol8d.mid)\n if H5ew in YKHO._recent_messages:\n if Ol8d.mtype is _bSc:\n if YKHO._recent_messages[H5ew] is not None:\n YKHO.log.info('Duplicate CON received, sending old response again')\n YKHO._send_initially(YKHO._...
[ "0.7582035", "0.718433", "0.6632222", "0.65484715", "0.6452502", "0.62928617", "0.61890024", "0.6047644", "0.60145295", "0.5990938", "0.59627473", "0.59265596", "0.59142953", "0.59075934", "0.589519", "0.5861441", "0.5849016", "0.58262265", "0.58185387", "0.5797181", "0.57899...
0.75062656
1
Tries to guess the most recent sequence number used by the master member for META in COMMUNITY. This is a risky method because sequence numbers must be unique, however, we can not guarantee that two peers do not claim a sequence number for the master member at around the same time. Unfortunately we can not overcome thi...
def ryjo(YKHO, v7nJ, e5kH): assert isinstance(e5kH.distribution, wKtX), 'currently only FullSyncDistribution allows sequence numbers' jTbc, = YKHO._database.execute(u'SELECT COUNT(*) FROM sync WHERE member = ? AND sync.meta_message = ?', (v7nJ.master_member.database_id, e5kH.database_id)).next() return jTbc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NmWg(YKHO):\n if YKHO.sequence != None:\n return YKHO.sequence\n elif YKHO.seqscores != None:\n return None", "def LMiN(YKHO, V_s1):\n YKHO.logger.info('Finding max seq for index %s' % V_s1)\n YnsH = {'query': {'match_all': {}}, 'size': 1, 'sort': [{'INSERT_SEQ': {'order': 'desc'}}]...
[ "0.5846389", "0.58385175", "0.5712841", "0.5638536", "0.5616841", "0.5612507", "0.5424975", "0.535834", "0.534", "0.53367084", "0.5312183", "0.53064", "0.5301774", "0.52814233", "0.52638984", "0.5194946", "0.5186961", "0.51849806", "0.51849806", "0.51849806", "0.51849806", ...
0.6831175
0
Constructor of DenoiserImageProcessingMethod. Initialises the variables describing the Denoising filter strength.
def FIMM(YKHO, V3TY): YKHO._strength = V3TY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Gzv5):\n super(QEjg, YKHO).__init__()\n YKHO._input_dim = Gzv5\n YKHO.fnn_enc = hPO2(YKHO._input_dim, int(YKHO._input_dim / 2))\n YKHO.fnn_dec = hPO2(int(YKHO._input_dim / 2), YKHO._input_dim)\n YKHO.initialize_module()", "def FIMM(YKHO, dVnN=0, by6d=0, DVc9=9):\n YKHO.parameters...
[ "0.6367458", "0.63344586", "0.63035595", "0.60392046", "0.6019234", "0.5945961", "0.58763665", "0.5809447", "0.57781184", "0.577237", "0.5768741", "0.5767068", "0.5758271", "0.5747164", "0.5742086", "0.5729025", "0.5724371", "0.5718335", "0.57000214", "0.56992126", "0.5690762...
0.63912785
0
Generates name, containing timestamp, for file.
def grG6(Fst3): xYGm = 'TDG_{:%Y-%m-%d_%H-%M-%S}.{}'.format(qcWV.now(), Fst3) return xYGm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JMdS(YKHO):\n return YKHO.sNow.strftime('%d-%m-%Y_%H-%M-%S')", "def vD4E(y0cW='output_', Fst3='.txt'):\n q5GV = y0cW + '{:%Y%m%d%H%M%S}utc{}'.format(qcWV.datetime.utcnow(), Fst3)\n return q5GV", "def rCTv(pmON, Ux0P):\n a9K4 = Hy7s.path.join(pmON, Ux0P)\n QmN4 = Hy7s.stat(a9K4)\n Fst3 = a...
[ "0.7729668", "0.7674219", "0.755236", "0.7452364", "0.7342889", "0.7321595", "0.7221625", "0.718941", "0.7176355", "0.70745164", "0.70539796", "0.7044839", "0.70323306", "0.7010471", "0.69910896", "0.69903696", "0.69800836", "0.69770396", "0.6962915", "0.696181", "0.69542485"...
0.69216245
23
Create the main Flask application.
def LUif(zmu8=None) -> L2w0: P4t4 = L2w0('front-end-web-server', instance_relative_config=True) if zmu8 is None: U1Qf = Hy7s.path.abspath(Hy7s.path.dirname(xAKo)) PBUt = Hy7s.path.dirname(U1Qf) AeFH = Hy7s.path.join(PBUt, 'config.py') P4t4.config.from_pyfile(AeFH) print(P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nd3k() -> L2w0:\n bo34.info('creating flask application')\n P4t4 = L2w0('pasta', static_url_path='/static', static_folder='./static', template_folder='./views')\n GPtr.flask.SECRET_KEY = Hy7s.urandom(32)\n GPtr.flask.SERVER_NAME = None\n P4t4.config.from_mapping(GPtr.flask)\n return P4t4", ...
[ "0.83634686", "0.8147395", "0.812069", "0.81102735", "0.810905", "0.8108057", "0.80816466", "0.80796754", "0.8037024", "0.80354893", "0.8034872", "0.7991176", "0.7975027", "0.79708254", "0.7961025", "0.7934542", "0.7899397", "0.78859544", "0.7877166", "0.7859817", "0.7843347"...
0.72674507
93
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def rhd_(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + nMvt.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU...
[ "0.74902546", "0.7288079", "0.715916", "0.715289", "0.7066431", "0.69866836", "0.6966592", "0.6954892", "0.69129443", "0.6833995", "0.6818441", "0.6810019", "0.6805678", "0.6805678", "0.6805678", "0.6805678", "0.6805678", "0.6805678", "0.67862916", "0.6755704", "0.6755704", ...
0.67582285
24
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def AOzf(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + nMvt.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '...
[ "0.7605139", "0.7447918", "0.74042726", "0.72813445", "0.7209321", "0.71659344", "0.7157751", "0.7145294", "0.7145294", "0.7145294", "0.7145294", "0.7145294", "0.7145294", "0.7131868", "0.71009445", "0.70971656", "0.70971656", "0.70971656", "0.70971656", "0.70971656", "0.7097...
0.7062941
43
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def AOzf(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + nMvt.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '...
[ "0.76059914", "0.7449167", "0.7405468", "0.7281615", "0.72102433", "0.7166693", "0.7158562", "0.7146135", "0.7146135", "0.7146135", "0.7146135", "0.7146135", "0.7146135", "0.7132622", "0.71017796", "0.7066623", "0.7065428", "0.70636654", "0.70636654", "0.70636654", "0.7063665...
0.7097979
32
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def rhd_(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + nMvt.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU...
[ "0.74902546", "0.7288079", "0.715916", "0.715289", "0.7066431", "0.69866836", "0.6966592", "0.6954892", "0.69129443", "0.6833995", "0.6818441", "0.6810019", "0.6805678", "0.6805678", "0.6805678", "0.6805678", "0.6805678", "0.6805678", "0.67862916", "0.67582285", "0.67582285",...
0.6755704
43
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7798025", "0.77622545", "0.7761262", "0.7757878", "0.7658788", "0.7658788", "0.7658788", "0.7658788", "0.7587013", "0.7432032", "0.74086267", "0.7395737", "0.7359896", "0.7318716", "0.7270583", "0.7264047", "0.7263263", "0.7257894", "0.723235", "0.7216223", "0.7203632", ...
0.70915663
57
extracts sequence of geneID from the current annotations. type is cds, pep or fasta.
def nIcS(V8pI, NCls=luT8['cds'], MLO5=0, rSzj=-1): eG0m = '' Vu7S = open(NCls, 'rb') for zFiD in Vu7S: if zFiD[0] == '>': xDcj = ZbWC.search(V8pI + '[\\s]', zFiD) if xDcj: a2ar = Vu7S.next() while a2ar[0] != '>': eG0m += a2ar.strip() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tmcm(qIxc):\n G32L = FLH9(qIxc.reference_path)\n LJVj = q9MR(G32L.tss_track)\n if LJVj.field_count() == 7:\n return V7Es\n else:\n return None", "def YlYW(YKHO, d8hi):\n XgyP = list(YKHO.adata.obs[d8hi])\n KYBv = sorted(set(XgyP))\n J8oL = {jzdc: or8S for or8S, jzdc in enum...
[ "0.5662214", "0.54267174", "0.53648776", "0.5334028", "0.5317295", "0.5313579", "0.5258759", "0.5245655", "0.5237802", "0.5233585", "0.5167605", "0.51283205", "0.5126109", "0.51074994", "0.50516504", "0.50449187", "0.50252074", "0.50071573", "0.500155", "0.49981478", "0.49958...
0.5907434
0
Load array from working data ``` >> train_ids = load_array(self._conf, 'task.dataset.id_train') ```
def Z5YQ(Fv2L, dMYO): l4Mt = dict(Fv2L) for mWFP in dMYO.split('.'): l4Mt = l4Mt[mWFP] if isinstance(l4Mt, dict): yvXF = l4Mt['file'] dlFG = l4Mt['name'] return Pamq(None, yvXF, dlFG) elif isinstance(l4Mt, str): return Pamq(None, l4Mt, 'X') else: raise...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z5YQ(wbqH, Ep8u, qqqI=True):\n __n6 = ZylS.data.Dataset.from_tensor_slices(wbqH)\n if qqqI:\n __n6 = __n6.shuffle(buffer_size=1000)\n __n6 = __n6.batch(Ep8u)\n return __n6", "def Z5YQ(wbqH, Ep8u, qqqI=True):\n __n6 = ZylS.data.Dataset.from_tensor_slices(wbqH)\n if qqqI:\n __n6...
[ "0.6605536", "0.6605536", "0.6545658", "0.6500626", "0.6472056", "0.63579816", "0.63073903", "0.6098631", "0.6054112", "0.6035797", "0.5969059", "0.5956629", "0.5954701", "0.5954701", "0.59065944", "0.5887013", "0.5854554", "0.57795125", "0.5742136", "0.57212913", "0.5720446"...
0.0
-1
Tries to restore the weights of the model. Continues if no data is present. Tries to restore all weights first, then pretrained weights only.
def wBIE(YKHO, cb_Q: tf.Session) -> None: super().restore(cb_Q) KcDH._restore_checkpoint(YKHO.pretrained_saver, cb_Q, path=vPBo.pretrained_checkpoint)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLQf(YKHO, vauY):\n V1C0 = Hy7s.path.join(vauY, 'model_weights')\n YKHO.model.load_weights(V1C0)", "def wBIE(YKHO):\n if YKHO._model._in_multi_worker_mode() and (not tXR8.should_load_checkpoint()):\n return\n YKHO.read_checkpoint_manager.restore_or_initialize()", "def UMkV(YKHO, PJWX=1):...
[ "0.7193469", "0.6996376", "0.69916284", "0.68978137", "0.6689391", "0.6683962", "0.6601889", "0.6601889", "0.6537569", "0.63814706", "0.6331325", "0.6329863", "0.6318073", "0.6313517", "0.6278855", "0.62160736", "0.6203247", "0.6187642", "0.61867094", "0.617069", "0.616689", ...
0.59401286
41
Builds the ResNet model graph with the TF API. This function is intentionally kept simple and sequential to simplify the addition of new layers.
def aJBW(YKHO, WKvO: tf.Tensor) -> ZylS.Tensor: WKvO = S1Vm._first_conv(WKvO) WKvO = S1Vm._v2_block(WKvO, 'block1', base_depth=64, num_units=3, stride=2) WKvO = S1Vm._v2_block(WKvO, 'block2', base_depth=128, num_units=4, stride=2) WKvO = S1Vm._v2_block(WKvO, 'block3', base_depth=256, num_units=6, stride...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GsUR(YKHO):\n YKHO._create_placeholders()\n YKHO._create_embedding()\n YKHO._create_recurrent_layers()\n YKHO._create_de_embedding()\n YKHO._create_loss()\n YKHO._create_optimizer()\n YKHO._create_summaries()", "def U6sz(YKHO):\n raise NotImplementedError", "def pnBP(YKHO):\n UJ7...
[ "0.7167492", "0.71257806", "0.6935861", "0.6929277", "0.6873462", "0.6863753", "0.6851451", "0.6801977", "0.67938524", "0.67680085", "0.6765718", "0.6761188", "0.67526054", "0.6734978", "0.6734197", "0.66962105", "0.6685752", "0.66815615", "0.6678256", "0.667687", "0.6624449"...
0.64020896
54
Adds a classification cross entropy loss term to the LOSSES collection. Initializes the loss attribute from the LOSSES collection (sum of all entries).
def R2D7(YKHO) -> None: xZkh = ZylS.one_hot(YKHO.labels, depth=QyXt.num_classes) qN0O = ZylS.losses.softmax_cross_entropy(xZkh, YKHO.logits) ZylS.add_to_collection(ZylS.GraphKeys.LOSSES, qN0O) YKHO.loss = ZylS.add_n(ZylS.get_collection(ZylS.GraphKeys.LOSSES)) YKHO.logger_factory.add_scalar('loss', Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def keCE(YKHO, nvEb):\n N77f = qN0O(YKHO.labels_placeholder, nvEb)\n return N77f", "def zC_E(YKHO):\n with cmJd.variable_scope('loss'):\n YKHO.loss = ZylS.reduce_mean(ZylS.nn.sparse_softmax_cross_entropy_with_logits(labels=YKHO.label_placeholder, logits=YKHO.label_predictions))", "def qN0O(YKHO...
[ "0.6853098", "0.6785605", "0.664682", "0.66212046", "0.6615802", "0.6549143", "0.65392613", "0.6462261", "0.6417518", "0.6413369", "0.64058745", "0.639511", "0.6377996", "0.636467", "0.6336875", "0.6331348", "0.63192064", "0.63083047", "0.6307947", "0.62998617", "0.62917644",...
0.7008454
0
First conv layer of the ResNet followed by max pooling.
def MNZu(WKvO: tf.Tensor) -> ZylS.Tensor: with Fz20.arg_scope([Fz20.conv2d], activation_fn=None, normalizer_fn=None): WKvO = S1Vm._conv2d_same(WKvO, 64, 7, stride=2, scope='conv1') return Fz20.max_pool2d(WKvO, [3, 3], stride=2, scope='pool1')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KHm4(WKvO, yIp6):\n return vuvg.relu(yIp6(WKvO).permute(0, 2, 1).max(1)[0])", "def FIMM(YKHO, CEq_):\n super(dpwV, YKHO).__init__()\n YKHO.max = fhcK.MaxPooling2D(pool_size=3, strides=1, padding='same')\n YKHO.conv = fhcK.Conv2D(CEq_, kernel_size=1, padding='same', activation='relu')", "def zUt...
[ "0.7434547", "0.70575374", "0.6948558", "0.68813705", "0.6807957", "0.68037117", "0.6794671", "0.6794671", "0.6794671", "0.6794671", "0.6794671", "0.67860895", "0.67267597", "0.6721148", "0.6721148", "0.6653793", "0.6619886", "0.6613855", "0.6594107", "0.65686387", "0.6565767...
0.806326
0
Retrieves the persistence simplfication level being used for this complex Returns float Floating point value specifying the current persistence setting
def PX4_(YKHO): return YKHO.persistence
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n3NK(YKHO):\n if not apzJ.AUDIO:\n return\n return YKHO.audioLevel", "def tvlX():\n return _VfD.QualExtension_getDefaultLevel()", "def biOd():\n return _VfD.QualExtension_getDefaultLevel()", "def zHaV(YKHO):\n return YKHO.__isis_level", "def XFEf(YKHO):\n return YKHO.__encrypti...
[ "0.5783778", "0.5723058", "0.5539368", "0.5485123", "0.5442123", "0.54302406", "0.5411877", "0.53818744", "0.53783333", "0.53640366", "0.53637695", "0.53554523", "0.5347339", "0.53375447", "0.53293365", "0.53293365", "0.53293365", "0.53293365", "0.53293365", "0.5302932", "0.5...
0.5323987
19
Returns the label pair indices requested by the user
def DeTJ(YKHO, _0VL=None): if _0VL is None: _0VL = list(range(0, YKHO.get_sample_size())) elif isinstance(_0VL, g760.abc.Iterable): _0VL = sorted(list(set(_0VL))) else: _0VL = [_0VL] if len(_0VL) == 0: return [] XOh9 = YKHO.get_partitions(YKHO.persistence) Crrw = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iotw(YKHO, M9Mk):\n return YKHO.indices_of('label', M9Mk)", "def zX2w(YKHO):\n return YKHO._labeled_indices", "def IqEY(YKHO, UXqs):\n return YKHO._labels_2_index.get(UXqs, 0)", "def HdOG():\n aEqx = [0, 1, 2]\n n5sN = gnPz.get_label_indices(3, 'all')\n assert aEqx == n5sN", "def OP2O...
[ "0.72450227", "0.66376305", "0.64800036", "0.6322828", "0.627343", "0.6126067", "0.61040473", "0.6087146", "0.60349274", "0.60047156", "0.5998461", "0.59819496", "0.5981919", "0.59817195", "0.5978114", "0.59683645", "0.595929", "0.5933239", "0.5910694", "0.5902691", "0.590032...
0.0
-1
Replace a character at a random position with a random character
def LoGh(YKHO, Q6kx, PJWX=False): KCHu = Q6kx.children[0].symbol if KCHu: oeNL = tuKI.randint(0, len(KCHu) - 1) io9v = tuKI.choice(YKHO.char_pool) if PJWX: print('Replacing character {} at pos {} with {}.'.format(repr(Q6kx.symbol), oeNL, repr(io9v))) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ld7T(YKHO, hcXw):\n YRbF = oyIN.random.randint(0, 2)\n return YKHO.typo[hcXw][YRbF]", "def r3Zb(l5Ny, Tc4a):\n if Tc4a is None or not ajWY(0, Tc4a) == 0:\n return l5Ny\n gLiZ = list(l5Ny)\n iSNE = Acvy([' ', 'X'])\n dQgj = ajWY(0, len(l5Ny) - 1)\n gLiZ[dQgj] = iSNE\n return ''....
[ "0.76067", "0.7222626", "0.6926276", "0.6861797", "0.68179584", "0.6747207", "0.6704646", "0.6649654", "0.6648097", "0.66113585", "0.6556977", "0.6494964", "0.64882547", "0.6469378", "0.64481014", "0.6344109", "0.63404214", "0.6318366", "0.6306871", "0.62959796", "0.618165", ...
0.80698806
0
This method splits an array of measurements into train and test data sets with the specified split.
def bHtP(J9Sm: np.ndarray, lpha: float=0.8) -> (oyIN.ndarray, oyIN.ndarray): V5Kp = [r8hN.label for r8hN in J9Sm] Crrw = oyIN.unique(V5Kp) for YRbF, vC9B in enumerate(Crrw): RkQI = oyIN.argwhere(oyIN.array(V5Kp) == vC9B).flatten() eAYh = RkQI.size if YRbF == 0: ITNh = J9S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FJfc(YKHO, lpha):\n lYSb = epAf.ceil((1 - lpha) * len(YKHO.Pos))\n kMf_ = epAf.ceil((1 - lpha) * len(YKHO.Neg))\n N3NV = int(1 / (1 - lpha))\n ddBv = list()\n NEp7 = list()\n for d6pt in range(N3NV):\n ddBv.append(YKHO.Pos[d6pt * lYSb:(d6pt + 1) * lYSb])\n NEp7.append(YKHO.Neg[d...
[ "0.8101568", "0.77468383", "0.75648856", "0.74929947", "0.745164", "0.7404906", "0.7385529", "0.7308533", "0.7253971", "0.72037363", "0.71789664", "0.7159913", "0.71504116", "0.7145964", "0.71187127", "0.707697", "0.7064171", "0.70577216", "0.7057104", "0.70542663", "0.705032...
0.8009372
1
Calculate IntersectionOverObject(IOB) of two bounding boxes. ! differenct between Fast RCNN bbox_overlaps and gluoncv bbox_iou
def xJBp(H5F9, D8Q3): if H5F9.shape[1] < 4 or D8Q3.shape[1] < 4: raise IndexError('Bounding boxes axis 1 must have at least length 4') GPIy = oyIN.maximum(H5F9[:, None, :2], D8Q3[:, :2]) Rzz_ = oyIN.minimum(H5F9[:, None, 2:4], D8Q3[:, 2:4]) + 1 zLeF = oyIN.prod(Rzz_ - GPIy, axis=2) * (GPIy < Rzz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VQ3Z(Bsc6, IUcw):\n Bsc6 = oyIN.array(Bsc6, oyIN.float32)\n IUcw = oyIN.array(IUcw, oyIN.float32)\n hzH7 = oyIN.maximum(Bsc6[:, 0], IUcw[:, 0])\n eUGk = oyIN.minimum(Bsc6[:, 0] + Bsc6[:, 2] - 1, IUcw[:, 0] + IUcw[:, 2] - 1)\n qki8 = oyIN.maximum(eUGk - hzH7 + 1, oyIN.zeros_like(Bsc6[:, 0]))\n ...
[ "0.7712872", "0.75029147", "0.75029147", "0.7420554", "0.73759794", "0.7330687", "0.73221415", "0.7275076", "0.7223357", "0.71758157", "0.7157643", "0.71349317", "0.7127541", "0.7051737", "0.6890331", "0.68853706", "0.682142", "0.6780137", "0.6772172", "0.6729368", "0.6721675...
0.6042696
70
Returns a random hand containing n lowercase letters. At least n/3 the letters in the hand should be VOWELS. Hands are represented as dictionaries. The keys are letters and the values are the number of times the particular letter is repeated in that hand.
def bpr7(exwG): RZ8t = {} ovIg = exwG // 3 for YRbF in range(ovIg): WKvO = Moq7[tuKI.randrange(0, len(Moq7))] RZ8t[WKvO] = RZ8t.get(WKvO, 0) + 1 for YRbF in range(ovIg, exwG): WKvO = PnW6[tuKI.randrange(0, len(PnW6))] RZ8t[WKvO] = RZ8t.get(WKvO, 0) + 1 return RZ8t
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pVKW(exwG):\n RZ8t = {}\n xE2R = exwG // 3\n for YRbF in range(xE2R):\n WKvO = Moq7[tuKI.randrange(0, len(Moq7))]\n RZ8t[WKvO] = RZ8t.get(WKvO, 0) + 1\n for YRbF in range(xE2R, exwG):\n WKvO = PnW6[tuKI.randrange(0, len(PnW6))]\n RZ8t[WKvO] = RZ8t.get(WKvO, 0...
[ "0.7800366", "0.7696999", "0.76785237", "0.7450054", "0.6462174", "0.61527944", "0.6078002", "0.60661083", "0.6056235", "0.599994", "0.59685695", "0.59579647", "0.591717", "0.591717", "0.591717", "0.58798337", "0.58763254", "0.5846789", "0.5825735", "0.58013684", "0.5796041",...
0.7669171
3
Return the contents of the .travis.yml file.
def ppew(YKHO): with open('.travis.yml') as eHNT: hGN5 = eJb6.load(eHNT) return hGN5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(pmON='.travis.yml'):\n if not pmON:\n pmON = '.travis.yml'\n with open(pmON, 'r') as wOb_:\n return eJb6.load(wOb_)", "def A9Q_():\n IhLb()\n return NINC", "def F1Np():\n with open(Hy7s.path.join(KfMH, 'README.rst')) as eHNT:\n return eHNT.read()", "def F1Np():\n ...
[ "0.71477246", "0.60372835", "0.58110964", "0.5783853", "0.5661705", "0.562468", "0.55627483", "0.55493027", "0.549967", "0.549379", "0.5482828", "0.5460947", "0.540087", "0.53984547", "0.5373335", "0.5372923", "0.5368626", "0.5362527", "0.53587914", "0.53507423", "0.529618", ...
0.8137851
0
Returns nodenames of all nodes managed by the compute service. This method is for multi computenodes support. If a driver supports multi computenodes, this method returns a list of nodenames managed by the service. Otherwise, this method should return [hypervisor_hostname].
def gx5J(YKHO, uUrB=False): na1r.debug('get_available_nodes return node %(cpcsubset_name)s' % {'cpcsubset_name': YKHO._host.properties['hypervisor_hostname']}) tJW_ = [YKHO._host.properties['hypervisor_hostname']] return tJW_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aAQH(YKHO):\n Ziit = YKHO.nodes\n Aofo = []\n for UxgP in YKHO.iapi.node.list():\n if UxgP.name:\n mWFP = UxgP.name\n else:\n IPCq = None\n for yFbA in Ziit:\n if getattr(yFbA, 'OS-EXT-SRV-ATTR:hypervisor_hostname', None) == UxgP.uuid:\n ...
[ "0.7244441", "0.67744815", "0.6688071", "0.6612138", "0.6536389", "0.65173835", "0.640309", "0.6397725", "0.63750756", "0.6367326", "0.63235855", "0.6308414", "0.6299488", "0.6272551", "0.6251894", "0.62495553", "0.6209872", "0.6151072", "0.614149", "0.6140894", "0.6139483", ...
0.6927579
1
Get connector information for the instance for attaching to volumes. Connector information is a dictionary representing the initiator WWPNs and a unique identifier of the partition. {
def mHuF(YKHO, KAOR): lhy8 = {} if KAOR.uuid in YKHO.deleted_instance_wwpns_mapping: lhy8['wwpns'] = YKHO.deleted_instance_wwpns_mapping.pop(KAOR.uuid) else: p4_k = z3rX.PartitionInstance(KAOR, YKHO._cpc) lhy8['wwpns'] = p4_k.get_partition_wwpns() lhy8['host'] = KAOR.uuid ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mHuF(YKHO, KAOR):\n vRYC = HACe.get_host_iqn(YKHO._session, YKHO._cluster)\n return {'ip': SAs9.vmwareapi_host_ip, 'initiator': vRYC, 'host': SAs9.vmwareapi_host_ip}", "def UlAc(YKHO, akib, SQvy):\n if not YKHO.share_targets:\n return super().initialize_connection(akib, SQvy)\n LYvN = akib...
[ "0.7217811", "0.5731354", "0.5719643", "0.5626514", "0.56229466", "0.5587685", "0.554909", "0.5512526", "0.5443555", "0.5432417", "0.5393865", "0.53157926", "0.52930737", "0.52738225", "0.5260998", "0.52491385", "0.5242627", "0.5212603", "0.51588446", "0.51039207", "0.5099608...
0.7021322
1
Returns a list of all supported platforms.
def kNho(): return i3kb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3kb(YKHO):\n bo34.debug('Get platforms')\n return YKHO._raw_api.platforms.get()", "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n else:\n return YKHO.platform.split(':')", "def xp7s(YKHO):\n return YKHO.do_rpc('list_platforms')", "def i3kb(YKHO) -> ImMB:\n r...
[ "0.8469478", "0.84350204", "0.8323497", "0.81891674", "0.79978454", "0.77241737", "0.7588078", "0.7408845", "0.73557884", "0.7238537", "0.698357", "0.6899838", "0.6823315", "0.6802424", "0.67996347", "0.67626536", "0.6738391", "0.66473496", "0.6570459", "0.6557098", "0.649542...
0.8486307
0
Return the name of the next link name to be used when archiving a previously active release directory for the given promotion label. This picks the highest numerical portion of the promotion label type found in all supported platform directories and then adds 1 to it to compose the new archival promotion label. Ex. Hig...
def AzEv(c7pd): z1TQ = {} x0Y2 = 0 for a9EH in i3kb: z1TQ[a9EH] = '' for QZnA in _SwK[a9EH]: if c7pd in QZnA and '_' in QZnA and (QZnA > z1TQ[a9EH]): z1TQ[a9EH] = QZnA try: BWXx = int(z1TQ[a9EH].split('_')[1]) + 1 if BWXx > x0Y2: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FZGa():\n Tl0b = ''.join(map(lambda WKvO: WKvO.lower(), lWrn.lsb_release('-irs').split()))\n return P97w[next((G1Hx for G1Hx in P97w if ZbWC.search(G1Hx, Tl0b)))]", "def Vkif(UXqs):\n d6pt = oyIN.argmax(UXqs)\n Crrw = ['airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship...
[ "0.57763886", "0.5655021", "0.55032444", "0.5381864", "0.5346807", "0.53060865", "0.5243026", "0.5188378", "0.51658285", "0.5145332", "0.51091605", "0.5082027", "0.5068403", "0.5033763", "0.5011738", "0.4979112", "0.4934989", "0.491461", "0.49044046", "0.48930407", "0.4880539...
0.7795426
0
Removes the topmost item from the stack, will return the old value or `None` if the stack was already empty.
def BEuN(YKHO): E5BI = getattr(YKHO._local, 'stack', None) if E5BI is None: return None elif len(E5BI) == 1: Tl0b(YKHO._local) return E5BI[-1] else: return E5BI.pop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FKg7(YKHO):\n if YKHO.length > 0:\n return YKHO.container.pop()\n else:\n return None", "def BEuN(YKHO):\n try:\n if YKHO.size() > 0:\n tlxW = YKHO.top()\n YKHO.items.pop()\n return tlxW\n else:\n raise IndexError('Cannot pop it...
[ "0.82667035", "0.82075346", "0.80730194", "0.8061972", "0.79645854", "0.79088116", "0.7892373", "0.78918564", "0.78518593", "0.7851721", "0.78069144", "0.77675545", "0.7694437", "0.7690464", "0.76771176", "0.7655624", "0.7652102", "0.7642626", "0.76382995", "0.7617483", "0.76...
0.77498764
12
The topmost item on the stack. If the stack is empty, `None` is returned.
def BWXx(YKHO): try: return YKHO._local.stack[-1] except (AttributeError, IndexError): raise K2L6('object unbound')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tlxW(YKHO):\n if YKHO.stack == []:\n return None\n return YKHO.stack[-1]", "def tlxW(YKHO):\n if YKHO.is_empty():\n raise RuntimeError('Attempt to get a top of the empty stack!')\n return YKHO._items[-1]", "def tlxW(YKHO):\n if YKHO.is_empty:\n return None\n else:\n ...
[ "0.884895", "0.86250734", "0.8605158", "0.8506827", "0.8366959", "0.8362208", "0.8343744", "0.8296608", "0.8284964", "0.8255428", "0.82433987", "0.82389426", "0.8093782", "0.80514085", "0.8041542", "0.803269", "0.79157406", "0.79111195", "0.7886462", "0.78580177", "0.78580177...
0.0
-1
Return a random string of alphanumeric characaters of 'size' length.
def BWvy(y0cW=None, ZI14=None, zNig=8): if zNig <= 0: return '{0}{1}'.format(y0cW or '', ZI14 or '') f6xn = tuple(vIwR.ascii_letters + vIwR.digits) GuB2 = '' while zNig > 0: iFbK = min(int(len(f6xn) / 2), zNig) zNig = zNig - iFbK GuB2 += ''.join(tuKI.sample(f6xn, iFbK)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def omrF(zNig):\n return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for WKvO in range(zNig)))", "def mkg7(zNig, gLiZ=vIwR.ascii_uppercase + vIwR.digits):\n return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig)))", "def EIGR(zNig=16):\n return ''.join(tuKI.SystemRandom().choices(vIwR.as...
[ "0.88290995", "0.8651498", "0.85271025", "0.84672743", "0.81312615", "0.811324", "0.79546636", "0.79037404", "0.7842807", "0.78427076", "0.7820385", "0.78135645", "0.7805821", "0.7803483", "0.779882", "0.7788533", "0.77805907", "0.7765721", "0.76815957", "0.76802397", "0.7668...
0.76357055
21
Gets a random cidr using the random_ip function in this module. If mask is None then a random mask between 0 and 30 inclusive will be assigned.
def buRg(VY7i=None, ZHfW=None, g7jd=0, wqgP=30): if ZHfW is None: ZHfW = tuKI.randint(g7jd, wqgP) D8Ke = o2dI(VY7i) return ''.join([D8Ke, '/', str(ZHfW)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o2dI():\n return h6Z9('%i.%i.%i.%i' % (ajWY(1, 254), ajWY(1, 254), ajWY(1, 254), ajWY(1, 254)))", "def Pq2j(Dwtb, ZHfW, xfnm):\n return Dwtb.replace(ZHfW, xfnm)", "def kT4R():\n D8Ke = '.'.join(map(str, (tuKI.randint(0, 255) for bGrB in range(4))))\n return D8Ke", "def A7Oi():\n return '.'...
[ "0.6930924", "0.67024636", "0.66299516", "0.65706676", "0.63367563", "0.6235149", "0.62161034", "0.6205034", "0.6169165", "0.61217475", "0.59297633", "0.59187055", "0.59187055", "0.59047616", "0.5884301", "0.5874056", "0.58580476", "0.5849997", "0.5849997", "0.58244616", "0.5...
0.85735756
0
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None fsnd = cmPJ.get('folderId') SZpI = cmPJ.get('publicFolderItemIdList') dLgQ = cmPJ.get('restoreEntireFolder') return Emd4(fsnd, SZpI, dLgQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.8318104", "0.8168106", "0.8168106", "0.8119619", "0.8089429", "0.7978183", "0.79495466", "0.79227656", "0.7898806", "0.7894103", "0.7887986", "0.78827816", "0.78821284", "0.7876549", "0.7858773", "0.78385323", "0.78039247", "0.78039247", "0.78039247", "0.78039247", "0.7803...
0.0
-1
Add a member to the bound group
def BfpQ(YKHO, mS46, CCrh=False): if CCrh: if YKHO.check_member(mS46, dn=True): return VlDb = (CZzy.MOD_ADD, 'member', mS46.encode('ascii')) else: if YKHO.check_member(mS46): return VlDb = (CZzy.MOD_ADD, 'member', mS46.get_dn().encode('ascii')) if YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r9jt(YKHO, *qIxc):\n return _VfD.Group_addMember(YKHO, *qIxc)", "def LTel(hE03, uJjO):\n cQ68.AddMemberToGroup(hE03, uJjO)", "def mS46(YKHO, mS46):\n return iZSb(YKHO, mS46)", "def iWd6(YKHO, hE03, ywNk):\n mgb7 = {}\n if hE03 is not None:\n mgb7['groupId'] = YKHO._serialize.url('gr...
[ "0.76254046", "0.7225025", "0.7090743", "0.7028953", "0.70045745", "0.69630474", "0.6825504", "0.6816953", "0.6789259", "0.6752057", "0.67101455", "0.66765815", "0.66524976", "0.66354644", "0.6541035", "0.6511655", "0.6458326", "0.644447", "0.6401591", "0.6391151", "0.6382018...
0.6363967
22
Load the pretrained ResNet152 and replace top fc layer.
def FIMM(YKHO, Agjb): super(KmzZ, YKHO).__init__() WWYJ = FYrf.resnet152(pretrained=True) KZ52 = list(WWYJ.children())[:-1] YKHO.resnet = U78l.Sequential(*KZ52) YKHO.linear = U78l.Linear(WWYJ.fc.in_features, Agjb) YKHO.bn = U78l.BatchNorm1d(Agjb, momentum=0.01) YKHO.init_weights()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))\n FBfN = JpOW(C3ST.fc)\n C3ST.fc = FBfN\n return C3ST", "def hVyu(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3])\n if mL4f:\n C3ST.load_...
[ "0.7173052", "0.6806408", "0.67975897", "0.67849594", "0.67489475", "0.67489475", "0.67489475", "0.67489475", "0.67324644", "0.6507087", "0.6507087", "0.64752775", "0.63904417", "0.62846625", "0.62234324", "0.61872536", "0.6139846", "0.61031175", "0.6084447", "0.60670197", "0...
0.0
-1
Returns true if file with name filename is allowed.
def pxkk(Ux0P): return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in P4t4.config['ALLOWED_CODE_EXTENSIONS']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XT0o(Ux0P: str) -> bool:\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in UWr8", "def XT0o(Ux0P):\n if not '.' in Ux0P:\n return False\n YBcr = Ux0P.rsplit('.', 1)[1]\n if YBcr.lower() in nyOE:\n return True\n else:\n return False", "def XT0o(Ux0P: str) -> bool...
[ "0.8504029", "0.8482801", "0.8448395", "0.83593833", "0.83307433", "0.8306116", "0.8306116", "0.8267732", "0.8267732", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8208295", "0.819348", ...
0.7330617
48
Returns true if file with name filename is allowed.
def u7ia(Ux0P): return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in P4t4.config['ALLOWED_TEST_EXTENSIONS']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XT0o(Ux0P: str) -> bool:\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in UWr8", "def XT0o(Ux0P):\n if not '.' in Ux0P:\n return False\n YBcr = Ux0P.rsplit('.', 1)[1]\n if YBcr.lower() in nyOE:\n return True\n else:\n return False", "def XT0o(Ux0P: str) -> bool...
[ "0.8504029", "0.8482801", "0.8448395", "0.83593833", "0.83307433", "0.8306116", "0.8306116", "0.8267732", "0.8267732", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8208295", "0.819348", ...
0.7412807
47
Returns true if file with name filename is allowed.
def W_j6(Ux0P): return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in P4t4.config['ALLOWED_TEST_EXTENSIONS']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XT0o(Ux0P: str) -> bool:\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in UWr8", "def XT0o(Ux0P):\n if not '.' in Ux0P:\n return False\n YBcr = Ux0P.rsplit('.', 1)[1]\n if YBcr.lower() in nyOE:\n return True\n else:\n return False", "def XT0o(Ux0P: str) -> bool...
[ "0.8504029", "0.8482801", "0.8448395", "0.83593833", "0.83307433", "0.8306116", "0.8306116", "0.8267732", "0.8267732", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8264552", "0.8208295", "0.819348", ...
0.68242186
83
Convenience method that returns a string indicating the status of receipt address document.
def lhTA(YKHO): return YKHO.get_document_status_choice(YKHO.receipt_address_status)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ombM(YKHO):\n return YKHO._plrevgeoloc.addressString", "def UTX6(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'address')", "def UTX6(YKHO):\n return str(YKHO._address)", "def zAg0(YKHO):\n return cSGF(**YKHO._get_elements())", "def gaxu(YKHO) -> 'outputs.AddressDetailsResponse':\n ...
[ "0.62897563", "0.5880195", "0.58506715", "0.58247614", "0.5818251", "0.5772292", "0.57720983", "0.5764578", "0.5728619", "0.5718868", "0.5718868", "0.5718868", "0.57158655", "0.5715355", "0.57119936", "0.57119936", "0.5623254", "0.56032777", "0.556492", "0.5561944", "0.555510...
0.81621444
0
Convenience method that returns a string indicating the status of receipt penal document.
def tLb6(YKHO): return YKHO.get_document_status_choice(YKHO.receipt_penal_status)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oVOb(YKHO):\n return YKHO.get_document_status_choice(YKHO.receipt_knowledge_status)", "def w9jH(YKHO):\n return YKHO.get_document_status_choice(YKHO.receipt_id_status)", "def wmO9(YKHO):\n return YKHO.get_document_status_choice(YKHO.receipt_diploma_status)", "def A8FN(YKHO) -> qe4Y.Output[str]:\...
[ "0.67679644", "0.674314", "0.66405", "0.61538893", "0.6117163", "0.6070003", "0.5917965", "0.57881945", "0.57881945", "0.57881945", "0.57881945", "0.5719738", "0.5695668", "0.56879103", "0.56819606", "0.5653465", "0.56028736", "0.5599267", "0.5593819", "0.5593819", "0.5593819...
0.80558944
0
Convenience method that returns a string indicating the status of receipt knowledge document.
def oVOb(YKHO): return YKHO.get_document_status_choice(YKHO.receipt_knowledge_status)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w9jH(YKHO):\n return YKHO.get_document_status_choice(YKHO.receipt_id_status)", "def tLb6(YKHO):\n return YKHO.get_document_status_choice(YKHO.receipt_penal_status)", "def wmO9(YKHO):\n return YKHO.get_document_status_choice(YKHO.receipt_diploma_status)", "def tKVC(YKHO) -> str:\n return qe4Y....
[ "0.693166", "0.6818368", "0.6389375", "0.61780834", "0.60561395", "0.60359305", "0.60359305", "0.60310453", "0.59778786", "0.59778786", "0.59666306", "0.59666306", "0.59666306", "0.59666306", "0.59666306", "0.59666306", "0.59666306", "0.59666306", "0.59666306", "0.59666306", ...
0.79215044
0
Convenience method that returns a boolean indicating whether or not this mentor has uploaded a receipt passport document.
def doU3(YKHO): return YKHO.receipt_diploma_uploaded_at is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZwY(YKHO):\n return YKHO.receipt_penal_uploaded_at is not None", "def fk1p(YKHO):\n return YKHO.receipt_id_uploaded_at is not None", "def HF1t(YKHO):\n return YKHO.receipt_knowledge_uploaded_at is not None", "def lKd6(YKHO):\n return YKHO.receipt_address_uploaded_at is not None", "def idE3...
[ "0.6817882", "0.67727685", "0.6462237", "0.60717213", "0.5934922", "0.59257764", "0.57185644", "0.55742115", "0.5547077", "0.5535746", "0.5509754", "0.55038905", "0.5475617", "0.5463665", "0.542392", "0.53927714", "0.53632206", "0.5339438", "0.5337276", "0.5319696", "0.531725...
0.61248827
3
Convenience method that returns a string indicating the status of receipt passport document.
def wmO9(YKHO): return YKHO.get_document_status_choice(YKHO.receipt_diploma_status)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tLb6(YKHO):\n return YKHO.get_document_status_choice(YKHO.receipt_penal_status)", "def w9jH(YKHO):\n return YKHO.get_document_status_choice(YKHO.receipt_id_status)", "def VLTN(YKHO):\n if YKHO.cancelled:\n return 'Cancelled'\n elif YKHO.is_active():\n KCHu = 'Active'\n if Y...
[ "0.65383106", "0.62247264", "0.610772", "0.60748607", "0.6011493", "0.5771245", "0.5754408", "0.5741605", "0.5612203", "0.5586848", "0.55859387", "0.5513454", "0.55053663", "0.55053663", "0.55053663", "0.55053663", "0.55053663", "0.55053663", "0.55053663", "0.55053663", "0.55...
0.56774616
8
Convenience method that returns a boolean indicating the validation of phone
def WGF0(YKHO): return YKHO.phone is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fhF_(JSoq):\n return bool(ZbWC.match('^\\\\+?\\\\d{10,15}$', JSoq))", "def SGVO(YKHO):\n return MBR5.is_valid_number(YKHO)", "def hgqE(bWtk):\n assert bWtk is not None\n bWtk = str(bWtk)\n return len(bWtk) == 10 and i38g(bWtk)", "def rqRT(bWtk: str) -> bool:\n bWtk = bWtk.replace('-', '...
[ "0.79293686", "0.7683468", "0.7595781", "0.75742424", "0.7514392", "0.7443512", "0.7431461", "0.73148483", "0.72093153", "0.7154014", "0.7131935", "0.7127212", "0.706573", "0.70380145", "0.6987092", "0.69846326", "0.6960358", "0.6925507", "0.6909568", "0.6862383", "0.68532175...
0.8030809
0
Retrieve time series data as Pandas DataFrame. Validate date input format as string. Not for stock data.
def zbzd(AMXB: list, V_D6: list, kepv: str, KhBf: str) -> rLdf.DataFrame: try: JRYC.datetime.strptime(kepv, '%Y-%m-%d') except ValueError: raise ValueError('"start_date" has incorrect format.') try: JRYC.datetime.strptime(KhBf, '%Y-%m-%d') except ValueError: raise ValueEr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pT4G(*qIxc, **B2fa):\n jFAo(B2fa, dtype=float)\n return rLdf.DataFrame(*qIxc, **B2fa)", "def WgdG(mWFP: str) -> rLdf.DataFrame:\n mkDY = GkAb.cwd().joinpath('eikon_time_series_files')\n pmON = GkAb.joinpath(mkDY, GkAb(mWFP))\n if pmON.exists():\n return rLdf.read_csv(pmON, sep=',', inde...
[ "0.67307806", "0.6705269", "0.66020596", "0.657405", "0.65603095", "0.65370435", "0.6523316", "0.649397", "0.6477624", "0.64643633", "0.6460553", "0.6448663", "0.6393308", "0.6381207", "0.6349828", "0.63427573", "0.6296152", "0.62775445", "0.62595654", "0.62567705", "0.624957...
0.63868326
13
Save a Pandas DataFrame as a .csv file in the "eikon_data_files" directory.
def zHPr(jQ3Z: pd.DataFrame, mWFP: str, X05Z=False) -> None: puAn = Hy7s.path.dirname(xAKo) if X05Z: KTXh = Hy7s.path.join(puAn, 'eikon_time_series_files') else: KTXh = Hy7s.path.join(puAn, 'eikon_data_files') pmON = ''.join([KTXh, '/' + mWFP]) jQ3Z.to_csv(pmON, encoding='utf-8') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eFxq(Kiac, qaEx):\n Kiac.to_csv(qaEx)\n return None", "def bJJP(bOBl, Ux0P):\n with open(Ux0P, 'w', encoding='utf8') as _RR0:\n bOBl.to_csv(_RR0, sep=',')", "def Wi90(YKHO):\n pmON = YLnl(Hy7s.path.join, 'datasets')\n lR77 = YKHO.name.lower().replace(' ', '_')\n YKHO.df['values'].s...
[ "0.7751126", "0.7741542", "0.77235526", "0.7530153", "0.75150573", "0.73782974", "0.73363316", "0.72214663", "0.71898437", "0.7180845", "0.7163062", "0.7144632", "0.7106038", "0.709286", "0.7091352", "0.70737886", "0.7071926", "0.7053148", "0.70504844", "0.7031922", "0.701255...
0.78083926
0
Returns an int64_list from a bool / enum / int / uint.
def Oety(BWXx): if type(BWXx) is tuple: return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx)) return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo", ...
[ "0.6881019", "0.6595714", "0.6460859", "0.644786", "0.6367044", "0.6291411", "0.62717515", "0.62177426", "0.610388", "0.5953394", "0.59478253", "0.5900836", "0.586359", "0.586359", "0.5856958", "0.58468026", "0.5843094", "0.5829474", "0.5800727", "0.57932305", "0.57932305", ...
0.5570758
42
Return the geo location as GeoJSON string.
def hr5j(YKHO): W0Eb = YKHO.value if not W0Eb: return leAC = getattr(YKHO.context, 'title', '') or '' JBZA = getattr(YKHO.context, 'description', '') or '' IAfX = {'type': 'FeatureCollection', 'features': [{'type': 'Feature', 'properties': {'popup': u'<h3>{0}</h3><p>{1}</p>'.format(psdK(leAC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uRrn(YKHO) -> _ABP.StringValue:\n return IPme.GeoAsText(YKHO).to_expr()", "def DLi3(YKHO):\n return PX7E(slpE.ST_AsGeoJSON, YKHO)", "def Xxid(YKHO):\n if YKHO.gps_position is None:\n _UuI = 0\n fopC = 0\n else:\n _UuI = YKHO.gps_position.latitude\n fopC = YKHO.gps_po...
[ "0.6826806", "0.6814304", "0.6656529", "0.658978", "0.65632164", "0.6535655", "0.6346617", "0.6252169", "0.61669576", "0.6144571", "0.6127827", "0.6127827", "0.6085484", "0.6054189", "0.59957534", "0.59815854", "0.5959491", "0.59433246", "0.59433246", "0.5941777", "0.5922727"...
0.6473962
6
CameraNet It estimates both the pose and camera intrinsics.
def aofO(bySB, LT6S): with ZylS.variable_scope('pose_net'): kuah = {'is_training': LT6S} bpUy = bySB[0] my0K = bySB[1] vBuX = bySB[2] j9VG = ZylS.concat([bpUy[4], my0K[4], vBuX[4]], axis=3) with ZylS.variable_scope('conv1_a'): tOpx = b_zE(j9VG, losj * 8, 3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nc2c(YKHO, HjHK, SCWy: CameraIntrinsics):\n raise NotImplementedError()", "def Ce5q(YKHO):\n zy5I = YKHO.converterYUR\n sxBd = YKHO.transforMat.invertCompose(Su8b.render.getTransform(YKHO.cameraNode)).getMat()\n return ntYk(sxBd * zy5I)", "def pR21(wncu, LT6S, okEi=None):\n Ep8u = wncu.get_s...
[ "0.6592196", "0.6223447", "0.6046168", "0.60334927", "0.5917073", "0.59081036", "0.5891999", "0.5871949", "0.5829941", "0.57441187", "0.5743422", "0.56673825", "0.5648097", "0.5638882", "0.56342745", "0.56110543", "0.5599019", "0.55657715", "0.5561983", "0.55607575", "0.55546...
0.6673962
0
Generate a circularly symmetric Gaussian in the Argand plane.
def NLBa(QTBn: _RS, hksT: ArrayLike=0j, NXpY: ArrayLike=1.0, zNig: Union[int, Tuple[int, ...], None]=None): return QTBn.normal(oyIN.real(hksT), NXpY, zNig) + 1j * QTBn.normal(oyIN.imag(hksT), NXpY, zNig)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vrz7():\n Os_7 = 10 * XTiz.random.chisquare(3)\n TVTK = XTiz.random.chisquare(3)\n JBMS = XTiz.random.uniform(-10 + TVTK, 10 - TVTK)\n WKvO = XTiz.linspace(-10, 10, 500)\n LVAh = Os_7 * XTiz.exp(-(WKvO - JBMS) ** 2 / TVTK ** 2)\n r5hI(LVAh, 0.1)\n return (WKvO, LVAh)", "def YVhi(zNig, rX...
[ "0.6495352", "0.62161845", "0.61475927", "0.6042078", "0.5990618", "0.5967892", "0.59457856", "0.5945013", "0.5940905", "0.5937702", "0.5857704", "0.5848969", "0.5833778", "0.58322203", "0.58276606", "0.58276606", "0.58135635", "0.5810499", "0.57672626", "0.57608104", "0.5743...
0.0
-1
The resource selector to filter policies by resource properties.
def FIMM(Ro_8, *, mWFP: Optional[pulumi.Input[str]]=None, g3yn: Optional[pulumi.Input[Sequence[pulumi.Input['SelectorArgs']]]]=None): if mWFP is not None: qe4Y.set(Ro_8, 'name', mWFP) if g3yn is not None: qe4Y.set(Ro_8, 'selectors', g3yn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N3AR(YKHO, Eorv):\n EhYO = Eorv.get('volume_type_id', None)\n if EhYO:\n bp_0 = QpfX.get_admin_context()\n yB39 = Ev9e.get_volume_type(bp_0, EhYO)\n Mzww = yB39.get('extra_specs')\n else:\n yB39 = None\n Mzww = {}\n som_ = {G1Hx.lstrip('DF:'): str(Ty9i['default'])...
[ "0.57999605", "0.5773181", "0.54636776", "0.53519744", "0.5323741", "0.5285424", "0.5230564", "0.5220954", "0.5216926", "0.5207869", "0.5194203", "0.5194203", "0.5150603", "0.51208556", "0.51208556", "0.510472", "0.50736773", "0.50736773", "0.50736773", "0.50492823", "0.50436...
0.0
-1
The list of the selector expressions.
def g3yn(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['SelectorArgs']]]]: return qe4Y.get(YKHO, 'selectors')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g2_4(YKHO):\n t6m2 = []\n try:\n VN2L = YKHO.expression()\n t6m2.extend(VN2L)\n while True:\n YKHO.match_value(_pVq, ',')\n VN2L = YKHO.expression()\n t6m2.extend(VN2L)\n except _OuM:\n return t6m2", "def g3yn(YKHO, V_D6=None):\n peYG =...
[ "0.6877212", "0.6760001", "0.6653466", "0.6502484", "0.59006786", "0.58701307", "0.5803656", "0.57836914", "0.5719632", "0.56802464", "0.56700075", "0.5573982", "0.556798", "0.5540461", "0.55181104", "0.5493651", "0.54884094", "0.548296", "0.548296", "0.5469628", "0.54270285"...
0.6876682
1
The list of values to filter in.
def AgUk(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'in_')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AgUk(YKHO, BWXx):\n if isinstance(BWXx, (str, g9qP)):\n BWXx = [BWXx]\n return kEyY(YKHO, BWXx, 'in')", "def tNLa(YKHO):\n return [eHNT.get() for eHNT in YKHO._filters[:-1]]", "def I62J(Emd4, H5ew, v9CE):\n return '%s IN (%s)' % (Emd4.to_attr_str(H5ew), ', '.join(Emd4.to_value_str_list(v...
[ "0.71713203", "0.6701488", "0.66340995", "0.66078377", "0.6269268", "0.62213147", "0.6200513", "0.6115527", "0.60629606", "0.5897873", "0.58724445", "0.5792276", "0.57921875", "0.5784851", "0.57680815", "0.57653475", "0.57638615", "0.567285", "0.56682295", "0.56666315", "0.56...
0.0
-1
The list of values to filter out.
def lq8u(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'not_in')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tNLa(YKHO):\n return [eHNT.get() for eHNT in YKHO._filters[:-1]]", "def hkxX(YKHO):\n return [YRbF.value for YRbF in YKHO.value]", "def TSF4(YKHO):\n return []", "def sATW(YKHO):\n PrmE = ['interpreter_method', 'average_by_sample_or_site', 'include_nrm']\n hkxX = [Op6c['value'] for Op6c in...
[ "0.7670988", "0.66491383", "0.6604559", "0.6485117", "0.64402753", "0.63619", "0.63611275", "0.6303091", "0.62816817", "0.62771314", "0.62499774", "0.6248328", "0.62341136", "0.6233651", "0.6211231", "0.6209761", "0.61722285", "0.61689764", "0.61556506", "0.61294425", "0.6114...
0.0
-1
Creates and sets a random public nick for the given user
def ZlRR(CBIr: User) -> str: CVgL = rfId() while dqCA.query(mv1M).filter_by(public_nickname=CVgL).first(): CVgL = rfId() na1r.debug('User %s -> %s', CBIr.public_nickname, CVgL) CBIr.set_public_nickname(CVgL) return CVgL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CVgL(YKHO):\n if not v6vd.has_key(YKHO.source):\n NdgI = kS4l(tuKI.sample(yPrR, IP0v))\n while XwZi.has_key(NdgI):\n NdgI = kS4l(tuKI.sample(yPrR, IP0v))\n XwZi[NdgI] = YKHO.source\n v6vd[YKHO.source] = NdgI\n YKHO.send()", "async def set_nick(x0hE, tvqc, CBIr: ('...
[ "0.7106242", "0.7085513", "0.6646613", "0.66199774", "0.655937", "0.6467132", "0.6396582", "0.63553417", "0.63118786", "0.61878216", "0.6175937", "0.6136565", "0.6120226", "0.6097814", "0.6094966", "0.6057226", "0.60486376", "0.6038778", "0.6001381", "0.59761566", "0.596908",...
0.7029205
2
Get the temp directory for this invocation of pytest shared by all workers.
def Y4ba(QePW: pytest.FixtureRequest, DPva: pytest.TempPathFactory) -> GkAb: if bMsG(QePW): return DPva.getbasetemp().parent return DPva.getbasetemp()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wQf6():\n return gbPf.mkdtemp()", "def VD5O(YKHO):\n return YKHO.get_raw('temp_directory')", "def U9hK(YKHO):\n pmON = gbPf.gettempdir()\n return Hy7s.path.join(pmON, 'parquet-index-test-' + str(qxeD.uuid4()))", "def VB_A(YKHO):\n return IpkB(YKHO.JOB_NAME)", "def LqMp(YKHO):\n return...
[ "0.7931793", "0.7759326", "0.77546394", "0.7746799", "0.7732067", "0.7634266", "0.76271355", "0.75296533", "0.7440563", "0.74401087", "0.7429447", "0.7423604", "0.74020976", "0.74008393", "0.739439", "0.72771746", "0.7271872", "0.7176214", "0.71696126", "0.71393585", "0.71284...
0.7049334
23
Replace nonprinting chars with escape sequences, rightstrip. Limit s to max_len by snipping out bits in the middle.
def GPjv(KCHu, wzH_=XwB6): Aofo = '' if len(KCHu) > wzH_: KCHu = KCHu[0:wzH_ // 2] + '\n*** <snip> ***\n' + KCHu[-wzH_ // 2:] Nqlg = KCHu.rstrip().splitlines() for zFiD in Nqlg: for Z9rn in zFiD.rstrip() + '\n': if Z9rn < ' ' and Z9rn != '\n': if Z9rn == '\t':...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fixQ(KCHu):\n Aofo = ''\n nUHY = 1\n YRbF = 0\n aPd6 = len(KCHu)\n while YRbF < aPd6:\n if nUHY == 0 and KCHu[YRbF] in hwok:\n nUHY = 1\n elif nUHY:\n exwG = KCHu.find(Zozx, YRbF)\n if exwG == -1:\n return Aofo + KCHu[YRbF:]\n ...
[ "0.6786607", "0.6505607", "0.63193846", "0.62063974", "0.62054354", "0.6113116", "0.6063999", "0.5985852", "0.5972879", "0.5971324", "0.59582806", "0.59450966", "0.5943937", "0.59311616", "0.5877219", "0.5802846", "0.5795996", "0.57476574", "0.5725873", "0.5708619", "0.569996...
0.78412265
0
Allocate a LeNetConvPoolLayer with shared variable internal parameters.
def FIMM(YKHO, xlLU, input, yphq, lNai, K1Pu=(2, 2), YDYE=Kt_s.tanh): assert lNai[1] == yphq[1] YKHO.input = input IddF = XTiz.prod(yphq[1:]) XNhq = yphq[0] * XTiz.prod(yphq[2:]) // XTiz.prod(K1Pu) MIRx = XTiz.sqrt(6.0 / (IddF + XNhq)) YKHO.W = e89i.shared(XTiz.asarray(xlLU.uniform(low=-MIRx, hi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _J0s(gEmA):\n assert gEmA.isconv\n hERt = ((gEmA.l, [1]), (gEmA.k, [1]))\n ZQGx = ()\n JyWW = ((gEmA.W_i, [Nlk2.n_batches] + gEmA.W_shape), (gEmA.b_i, [Nlk2.n_batches] + gEmA.b_shape), (gEmA.l_i, [Nlk2.n_batches]))\n if Nlk2.store_on_gpu:\n hERt += JyWW\n else:\n ZQGx += JyWW\n ...
[ "0.64842194", "0.63480014", "0.6143992", "0.6093791", "0.603467", "0.5953963", "0.5925224", "0.58546287", "0.5829507", "0.5802242", "0.57969373", "0.57878524", "0.5782577", "0.57791287", "0.5775954", "0.5772936", "0.5769636", "0.57685167", "0.5765619", "0.5759815", "0.5758101...
0.0
-1
Specifies the account name of the contact
def ZrNc(YKHO) -> str: return YKHO._account
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8Ek(YKHO, n8Ek):\n YKHO._account_name = n8Ek", "def n8Ek(YKHO, n8Ek):\n YKHO._account_name = n8Ek", "def bKAt(YKHO, bKAt):\n YKHO._contact_name = bKAt", "def bKAt(YKHO, bKAt):\n YKHO._contact_name = bKAt", "def n8Ek(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'account_name')", "...
[ "0.7713327", "0.7713327", "0.737539", "0.737539", "0.68344593", "0.68344593", "0.68344593", "0.6812906", "0.6778055", "0.667788", "0.667788", "0.66114724", "0.66114724", "0.6593748", "0.6579822", "0.64956504", "0.64889306", "0.63126355", "0.62590504", "0.6215418", "0.611387",...
0.57079816
66
Specifies the account name of the contact
def ZrNc(YKHO, ZrNc: str): YKHO._account = ZrNc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8Ek(YKHO, n8Ek):\n YKHO._account_name = n8Ek", "def n8Ek(YKHO, n8Ek):\n YKHO._account_name = n8Ek", "def bKAt(YKHO, bKAt):\n YKHO._contact_name = bKAt", "def bKAt(YKHO, bKAt):\n YKHO._contact_name = bKAt", "def n8Ek(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'account_name')", "...
[ "0.7713327", "0.7713327", "0.737539", "0.737539", "0.68344593", "0.68344593", "0.68344593", "0.6812906", "0.667788", "0.667788", "0.66114724", "0.66114724", "0.6593748", "0.6579822", "0.64956504", "0.64889306", "0.63126355", "0.62590504", "0.6215418", "0.611387", "0.6085297",...
0.6778055
8
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, k_pE): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Iniitalise an ApiClientFactory by passing the token, api_url and app_name, or by passing in the api_secrets_filename
def FIMM(YKHO, **B2fa): qRzy = {} if 'token' in B2fa and str(B2fa['token']) != 'None': GPtr = kb5k(api_url=B2fa.get('api_url', None), certificate_filename=B2fa.get('certificate_filename', None), proxy_config=b2pt(address=B2fa.get('proxy_url', None), username=B2fa.get('proxy_username', None), password=B2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RYKI(GPtr):\n return hkjG(GPtr.get('apiKey'), sdk_api_base_url=GPtr['sdkApiBaseUrl'], events_api_base_url=GPtr['eventsApiBaseUrl'], split_sdk_machine_name=GPtr['splitSdkMachineName'], split_sdk_machine_ip=GPtr['splitSdkMachineIp'], connect_timeout=GPtr['connectionTimeout'], read_timeout=GPtr['readTimeout'])...
[ "0.6772961", "0.650356", "0.6399361", "0.6361063", "0.63227516", "0.629303", "0.6280186", "0.6200639", "0.6141231", "0.614054", "0.61003244", "0.6023286", "0.6010457", "0.59964985", "0.59919703", "0.5990344", "0.5944311", "0.59302074", "0.5878384", "0.587532", "0.5846201", ...
0.69160074
0
Assert that an email will fail with no flask app supplied.
def KyyR(P4t4, cuiw): GltE = {'email': {'type': 'bn'}} with trZe.raises(Exception): i4ai.process_email(GltE, flask_app=None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HV5b(YKHO):\n Ylbp = YKHO.app.post('/signup_process')\n YKHO.assertIn('Please supply', Ylbp.body)", "def ZGiz(YKHO):\n CBIr = YKHO.make_user()\n nPrm: dict = {}\n with YKHO.login(CBIr):\n geh0 = YKHO.post('referrals:create', data=nPrm)\n Ol8d = list(LnrL(geh0.wsgi_request))[0]\n a...
[ "0.7141608", "0.712236", "0.71125066", "0.69904053", "0.69764674", "0.68966794", "0.6896086", "0.6757559", "0.6675555", "0.66366965", "0.66221803", "0.66028523", "0.65942", "0.6550338", "0.649285", "0.6485451", "0.6474219", "0.6468559", "0.64467806", "0.6436596", "0.6425632",...
0.7731551
0
Assert that the ar reminder notification can be processed.
def r_7X(P4t4, cuiw): P4t4.env = 'development' JWum = Q25s(cuiw, 'BC1234567', '1', 'COMPLETED') X2vB = RyWp.find_by_internal_id(JWum.business_id) X2vB.legal_type = 'BC' X2vB.legal_name = 'test business' eOtH = 'token' with Po4F.object(kENk, 'get_bearer_token', return_value=eOtH): wit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G0fb(YKHO):\n eWfi = qcWV.date.today() + qcWV.timedelta(days=7)\n YKHO.create_confirmed_notification(YKHO.test_patient, eWfi)\n YKHO.create_unconfirmed_notification(YKHO.other_patient, eWfi)\n from aremind.apps.reminders.app import daily_email_callback\n daily_email_callback(YKHO.router)\n YK...
[ "0.7014083", "0.7008331", "0.6841694", "0.67598665", "0.67057115", "0.67057115", "0.66763777", "0.6639211", "0.6618366", "0.6607627", "0.65986973", "0.6553329", "0.6553329", "0.65420717", "0.6476992", "0.6431637", "0.6404476", "0.63858175", "0.63858175", "0.63529295", "0.6337...
0.6738896
4
Assert that the nr notification can be processed.
def o225(P4t4, cuiw, MTKo, qcgK, U4ZT, ad72, jcdR, Jv9l, ZWCE): fjb7 = {'expirationDate': ad72, 'names': ZWCE, 'applicants': {'emailAddress': 'test@test.com'}} OSP8 = HiyZ(fjb7, 200) eOtH = 'token' with Po4F.object(kENk, 'get_bearer_token', return_value=eOtH): with Po4F.object(p7R0, 'query_nr_nu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lrgA(xqoZ: models.Notification):\n YKHO.assertEqual(xqoZ, G7Nt)", "def QRuM(YKHO):\n fwgw.call_command('send_first_report_notification', [], {})\n NaW5(len(cpYK.outbox), 4)", "def SGza(YKHO):\n YKHO.assertEqual(YKHO._n_registered, 1)", "def rrbq(YKHO):\n YKHO.n += 1\n if YKHO.n >= 5:\n ...
[ "0.61588", "0.6128881", "0.59934753", "0.59739757", "0.5959257", "0.5939343", "0.5930117", "0.59251463", "0.59238625", "0.59238625", "0.59200567", "0.59200567", "0.5906974", "0.5883313", "0.58722126", "0.58332455", "0.58160204", "0.58160204", "0.58160204", "0.58068407", "0.57...
0.5928494
7
Assert that the email not have body can not be processed.
def K8kX(P4t4, cuiw, GltE): with trZe.raises(UcBS) as zK6_: i4ai.send_email(GltE, None) assert 'Unsuccessful sending email' in str(zK6_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kihV(YKHO):\n eWfi = qcWV.date.today() + qcWV.timedelta(days=7)\n xUXW = YKHO.create_confirmed_notification(YKHO.test_patient, eWfi)\n vbtY = YKHO.create_contact(data={'email': ''})\n YKHO.group.contacts.add(vbtY)\n from aremind.apps.reminders.app import daily_email_callback\n daily_email_cal...
[ "0.7146107", "0.6915675", "0.6826136", "0.6788039", "0.67554945", "0.6752405", "0.67394775", "0.6733447", "0.66554475", "0.6549379", "0.6529032", "0.64943486", "0.6453134", "0.64490557", "0.64445615", "0.6433952", "0.64199895", "0.6416688", "0.64124966", "0.63992095", "0.6396...
0.67659074
4
Sequence of allowed model components.
def ZlTO(): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GXIB(Emd4) -> x1iM[eBH2[C1zu]]:\n return []", "def GXIB(Emd4) -> x1iM[eBH2[C1zu]]:\n return []", "def AdfU(YKHO):\n return list(YKHO._components)", "def KJwG(Emd4):\n return ['id', 'extension', 'modifierExtension', 'type', 'allowed']", "def AdfU(YKHO):\n return YKHO.__components", "def...
[ "0.73793", "0.73793", "0.66908985", "0.6516343", "0.6499231", "0.6499231", "0.6359277", "0.6316025", "0.6316025", "0.6161053", "0.6154886", "0.60737824", "0.59501714", "0.59359324", "0.5906922", "0.5901398", "0.59005386", "0.58965147", "0.58965147", "0.5883939", "0.58774275",...
0.7006442
2
Returns probability density at x.
def kzAT(YKHO, WKvO, CkYf=False): raise NotImplementedError('Normalized posterior not implemented')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InLe(YKHO, WKvO):\n ywwl = len(YKHO.train_data)\n LTIa = list(YKHO.train_data)\n eFr6 = [oyIN.linalg.norm(WKvO - AU8u) ** 2 for AU8u in LTIa]\n nwEM = [oyIN.exp(-pImw / (2 * YKHO.bandwidth ** 2)) for pImw in eFr6]\n YUQd = sum(nwEM)\n Q7Be = 1 / ywwl * YKHO.normalizing_constant() * YUQd\n ...
[ "0.8338742", "0.81750166", "0.78887165", "0.7680405", "0.75821435", "0.7574821", "0.7435341", "0.7435341", "0.73020935", "0.7194696", "0.71118313", "0.71043575", "0.7102687", "0.7077465", "0.6988106", "0.69524246", "0.69523066", "0.6946738", "0.6935417", "0.6851207", "0.68303...
0.6214727
66
Returns log probability density at x.
def QF3p(YKHO, WKvO, CkYf=False): raise NotImplementedError('Normalized logposterior not implemented')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AfF3(WKvO):\n return lambda AU8u: i912.log(YKHO.information_manifold.point_to_pdf(AU8u)(WKvO))", "def lcX0(YKHO, WKvO):\n if WKvO < 0:\n raise Exception(\"input value x can't be a negative value!\")\n if YKHO.is_fit:\n if WKvO >= 0:\n return -oyIN.log(oyIN.math.factorial(WKv...
[ "0.774589", "0.7734643", "0.7657524", "0.7616679", "0.7616679", "0.75011146", "0.7486162", "0.74470204", "0.728757", "0.726374", "0.71725374", "0.7147766", "0.71249753", "0.7120719", "0.7109896", "0.71039367", "0.70449007", "0.70440155", "0.7033241", "0.7021883", "0.69966984"...
0.7153739
11
Converts a file to TFRecords.
def EQWy(Bq4s, Pw9X, UXEK, AIZ9, fBXs): print('Generating %s' % UXEK) with ZylS.python_io.TFRecordWriter(UXEK) as bpTO: for or8S in enumerate(Bq4s): print('Working on %s' % Bq4s[or8S[0]]) print('Working on %s' % Pw9X[or8S[0]]) UXqs = WNLV(Pw9X[or8S[0]]) _x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SSG_(IznC, bmJ5=1, PJWX=0):\n vZP7 = DdAx(khUN)\n dBuj = Dgj6(n_jobs=bmJ5, verbose=PJWX)\n dixj = dBuj((vZP7(WKvO) for WKvO in ZylS.compat.v1.python_io.tf_record_iterator(IznC)))\n bySB = oyIN.concatenate([M_DK[0] for M_DK in dixj], axis=0)\n e5kH = rLdf.concat([M_DK[1] for M_DK in dixj], axis=0...
[ "0.6521392", "0.6498583", "0.6342973", "0.63348126", "0.62712693", "0.6258702", "0.62265116", "0.6119497", "0.60536116", "0.60062724", "0.59636205", "0.5962356", "0.5958885", "0.59112483", "0.5869996", "0.5857997", "0.5796895", "0.5724878", "0.5669789", "0.56629556", "0.56558...
0.5849053
16
Returns an int64_list from a bool / enum / int / uint.
def Oety(BWXx): return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo", ...
[ "0.6881019", "0.6595714", "0.6460859", "0.644786", "0.6367044", "0.6291411", "0.62717515", "0.62177426", "0.610388", "0.5953394", "0.59478253", "0.5900836", "0.586359", "0.586359", "0.5856958", "0.58468026", "0.5843094", "0.5829474", "0.5800727", "0.57932305", "0.57932305", ...
0.5494453
65
Create a reference to this chunk except for anonymous chunks.
def S44h(YKHO, tc94, NXSX): raise Exception('Cannot reference an anonymous chunk.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, yOAJ):\n YKHO.anchor = yOAJ", "def hzjj(YKHO, ERHj):\n pass", "def SG28(YKHO, tc94, NXSX):\n raise Exception('Cannot reference an anonymous chunk.')", "def FIMM(YKHO, *qIxc, **B2fa):\n YKHO.anchor = None\n YKHO.chunks = []\n eZcj.__init__(YKHO, *qIxc, **B2fa)", "def fFx9(YK...
[ "0.56787395", "0.5616958", "0.5263241", "0.5255459", "0.5109167", "0.50636923", "0.5046425", "0.50201815", "0.50180846", "0.49789992", "0.49304873", "0.491963", "0.49041337", "0.48338857", "0.4807949", "0.47960266", "0.47957504", "0.478178", "0.47474682", "0.47415078", "0.473...
0.5177641
4
Return duration of the action.
def WbTE(YKHO): return YKHO.start and ITS7.process_time() - YKHO.start or 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WbTE(YKHO):\n pass", "def WbTE(YKHO):\n pass", "def EdTY(YKHO):\n return YKHO.duration", "def WbTE(YKHO):\n return YKHO._duration", "def WbTE(YKHO) -> int:\n return 0", "def WbTE(YKHO):\n return YKHO._get('duration')", "def WbTE(YKHO):\n return YKHO._get('duration')", "def Ed...
[ "0.7895342", "0.7895342", "0.7618661", "0.75292933", "0.7504358", "0.7488684", "0.7432561", "0.7422858", "0.7364661", "0.7358063", "0.7358063", "0.7358063", "0.7358063", "0.7358063", "0.7358063", "0.7358063", "0.7358063", "0.73210686", "0.732026", "0.73166597", "0.7311676", ...
0.7163024
31
Verify that the user isn't redirected with no tour
def FO8p(YKHO): Sdbo = FM6F(user=YKHO.test_user, path='mock2', method='get', GET={}) X05o = J0QN(request=Sdbo) geh0 = X05o.dispatch(Sdbo) YKHO.assertEqual(200, geh0.status_code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RDIQ(YKHO, Oe5t):\n Oe5t.return_value = False\n YKHO.tour1.load_tour_class().add_user(YKHO.test_user)\n Sdbo = FM6F(user=YKHO.test_user, path='mock-fake', method='get', GET={})\n X05o = J0QN(request=Sdbo)\n geh0 = X05o.dispatch(Sdbo)\n YKHO.assertEqual(200, geh0.status_code)", "def bljB(YKH...
[ "0.66997665", "0.6686417", "0.66811967", "0.6569483", "0.654089", "0.64401174", "0.6413879", "0.63206506", "0.6318933", "0.62673044", "0.6264956", "0.6245029", "0.6226861", "0.62205815", "0.62173223", "0.6214819", "0.62034816", "0.6174233", "0.6138139", "0.61237067", "0.61226...
0.6050557
28
Update a current review
def xnEA(oOW1): gmRc = S8SU.get(E1cg, oOW1) if gmRc: h_69 = QePW.get_json() if not h_69: return (pz3A({'error': 'Not a JSON'}), 400) for H5ew, BWXx in h_69.items(): setattr(gmRc, H5ew, BWXx) gmRc.save() return (pz3A(gmRc.to_dict()), 200) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xnEA(oOW1=None):\n Slbv = S8SU.get(E1cg, oOW1)\n if Slbv:\n sPBL = QePW.get_json()\n if not sPBL:\n eTsH(400, 'Not a JSON')\n for H5ew, wEf2 in sPBL.items():\n if H5ew not in ['id', 'created_at', 'updated_at', 'user_id', 'place_id']:\n setattr(Slb...
[ "0.71294487", "0.71207255", "0.7097907", "0.7027455", "0.6988941", "0.6972015", "0.69259816", "0.6915716", "0.6864468", "0.6665433", "0.6638563", "0.6580652", "0.65779734", "0.6547396", "0.6541889", "0.64922386", "0.6455932", "0.64030564", "0.6367938", "0.6324456", "0.6313481...
0.7068726
3
create dictionary for sparse feature
def S4nV(ZUiZ, p9j8, q4ee=4): return {'feat_name': ZUiZ, 'feat_num': p9j8, 'embed_dim': q4ee}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S4nV(YKHO, _x49, p9j8, q4ee=4):\n return {'feat': _x49, 'feat_num': p9j8, 'embed_dim': q4ee}", "def KK2W(YKHO, _x49):\n return {'feat': _x49}", "def MxDa(iArr, bySB):\n cmPJ = g760.defaultdict(lambda: 0)\n for RDhP in iter(set(bySB)):\n cmPJ[RDhP] = [iArr[H5ew][RDhP] if RDhP in iArr[H5ew...
[ "0.75767976", "0.68565416", "0.6779232", "0.65597075", "0.6550707", "0.6534703", "0.64986527", "0.64876294", "0.6419102", "0.6395745", "0.63638943", "0.6296161", "0.6294983", "0.6291927", "0.6231663", "0.61766374", "0.60696816", "0.602503", "0.600544", "0.5999356", "0.5997134...
0.76782995
0
Restrict the queryset to questions the given user has access to. A staff user has access to all questions.
def l7sz(SR0I, CBIr): if CBIr.is_staff: return SR0I return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO: 'AnswerViewSet'):\n SR0I = super().get_queryset()\n X4T8 = YKHO.request.user.user_type.create_questions\n if X4T8:\n pass\n else:\n raise wPvU\n return SR0I", "def tz7C(YKHO, SR0I):\n F8Xu = lF9t.filter_by_user(YKHO.request.user)\n return SR0I.filter(run_id__in=F...
[ "0.7082054", "0.68774784", "0.6868787", "0.6740431", "0.67040294", "0.666735", "0.663966", "0.66258794", "0.6619525", "0.66009635", "0.65996474", "0.65994376", "0.6583608", "0.6555876", "0.6522044", "0.65150607", "0.6462709", "0.64138156", "0.6316598", "0.62935036", "0.627161...
0.6682282
5
Given a row in the test dataset Returns the recall score when popular products are recommended
def ubuU(rdlD): n5sN = bDaP(rdlD) return Dyub(n5sN, dbhs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L0bJ(YKHO, EvQg=None, QOe9=None, G1Hx=8, rR2Y=10):\n EvQg = EvQg or YKHO.traindata\n QOe9 = QOe9 or YKHO.testdata\n UZ_k = 0\n AOzf = 0\n rhd_ = 0\n for CBIr in EvQg.keys():\n KAU7 = QOe9.get(CBIr, {})\n fdMZ = YKHO.recommend(CBIr, train=EvQg, k=G1Hx, nitem=rR2Y)\n for Zf...
[ "0.70278084", "0.6613444", "0.6551399", "0.6453224", "0.6417849", "0.63159454", "0.6313836", "0.63087803", "0.62681466", "0.62192", "0.621912", "0.61930907", "0.61916447", "0.61904746", "0.61890614", "0.61855364", "0.6154689", "0.61428875", "0.6133423", "0.6125558", "0.612443...
0.7091549
0
Given a row in the test dataset Returns the recall score when our model recommends new products
def i7R8(rdlD): n5sN = bDaP(rdlD) DYaG = UluS.recommend_new(aKC2[rdlD['user_id']], N=10) DYaG = [Aq2z[Mkmy[0]] for Mkmy in DYaG] return Dyub(n5sN, DYaG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L0bJ(YKHO, EvQg=None, QOe9=None, G1Hx=8, rR2Y=10):\n EvQg = EvQg or YKHO.traindata\n QOe9 = QOe9 or YKHO.testdata\n UZ_k = 0\n AOzf = 0\n rhd_ = 0\n for CBIr in EvQg.keys():\n KAU7 = QOe9.get(CBIr, {})\n fdMZ = YKHO.recommend(CBIr, train=EvQg, k=G1Hx, nitem=rR2Y)\n for Zf...
[ "0.7109916", "0.6802936", "0.6678143", "0.66692823", "0.66546273", "0.66385275", "0.65905946", "0.6557385", "0.6557385", "0.6557385", "0.6557385", "0.6557385", "0.6557385", "0.6537762", "0.65038174", "0.65038174", "0.65038174", "0.65038174", "0.65038174", "0.65038174", "0.650...
0.6058264
70
Find local maxima of x.
def ZKPa(WKvO): or8S = [] for YRbF in range(len(WKvO)): if WKvO[YRbF - 1] < WKvO[YRbF] and WKvO[YRbF + 1] < WKvO[YRbF]: or8S.append(YRbF) return or8S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jWz0(WKvO, gwAu=1e-05):\n PD4t = oyIN.r_[True, WKvO[1:] > WKvO[:-1]] & oyIN.r_[WKvO[:-1] > WKvO[1:], True]\n WnyR = PD4t & oyIN.r_[WKvO > gwAu, True][:-1]\n v71E = oyIN.where(WnyR == True)[0]\n return oyIN.array(v71E)", "def jWz0(VXjJ, zNig=(70, 100, 100)):\n q9nq = prAE.maximum_filter(VXjJ, s...
[ "0.7678949", "0.7214239", "0.7185012", "0.69021314", "0.68611604", "0.6824614", "0.6649827", "0.65998054", "0.65641016", "0.6546477", "0.65399814", "0.64374244", "0.6367273", "0.6353284", "0.631738", "0.6308344", "0.630741", "0.62965506", "0.6295892", "0.62558866", "0.6236714...
0.7662323
1
Turn the switch off.
def Z_rv(YKHO, **B2fa): YKHO.enabled = YKHO.fritz_box.set_call_forwarding(YKHO.uid, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z_rv(YKHO, **B2fa):\n YKHO.smartplug.turn_off()", "def dNOs(YKHO):\n YKHO._switch_callback = None", "def Z_rv(YKHO):\n YKHO.handleCommand(1)\n YKHO._state = iKVK", "def Z_rv(YKHO, **B2fa):\n hodN(YKHO._host, 'off')\n YKHO._state = False", "def Z_rv(YKHO):\n print('Turning the light...
[ "0.870139", "0.867637", "0.85906535", "0.8523712", "0.84588856", "0.84180963", "0.8404447", "0.8398465", "0.8375364", "0.83491224", "0.83192796", "0.82949907", "0.8277566", "0.81680954", "0.8155346", "0.8112255", "0.8091075", "0.8072859", "0.8058921", "0.8058517", "0.8041678"...
0.7470762
56