query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns whther `username` is a valid username
def L5TJ(NtEF): if NtEF is None: return False if len(NtEF) > 32: return False if len(NtEF) < 1: return False for YRbF in NtEF: if YRbF not in GPtr.CHARSET: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mxq9(YKHO, NtEF):\n if YKHO.username_regex.search(NtEF) is not None:\n print('Correct username')\n return True\n else:\n print('Wrong username')\n return False", "def z7p3(NtEF):\n CBIr = mv1M.objects.filter(username=NtEF).first()\n if CBIr is None:\n return Tru...
[ "0.8576425", "0.8561592", "0.8560917", "0.85375226", "0.84740156", "0.84674835", "0.84423506", "0.84391683", "0.8329774", "0.8281463", "0.8276092", "0.82279956", "0.8207331", "0.8156494", "0.8125877", "0.8100915", "0.8070714", "0.7977137", "0.7971118", "0.79438573", "0.792348...
0.8025782
17
Returns whether `password` is a valid password
def UpdD(jTXt): if jTXt is None: return False if len(jTXt) < 8: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EoXa(jTXt):\n pass", "def W5z7(YKHO, jTXt):\n gVaL = '^[a-zA-Z0-9@_+-.]{3,}$'\n return ZbWC.match(gVaL, jTXt)", "def UpdD(YKHO, jTXt):\n return TGbE(jTXt, YKHO.password)", "def W5z7(jTXt):\n if len(jTXt) < EYFn:\n return False\n return True", "def UpdD(jTXt):\n wEf2 = True\n...
[ "0.87454367", "0.8660112", "0.8586293", "0.8528036", "0.8494582", "0.8441788", "0.8433028", "0.8433028", "0.84240866", "0.83845115", "0.8372505", "0.83517027", "0.8325985", "0.8317121", "0.8299054", "0.8296174", "0.82764715", "0.8269013", "0.82432264", "0.82229614", "0.819724...
0.8373025
10
Return user logged into session `session`
def jF0d(cuiw): if T_ME(cuiw): return cuiw['user'] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mDdL():\n return eU7f(svTy)", "def dsbO():\n try:\n return cuiw['user']\n except KeyError:\n raise ZePs()", "def EdD7(JkXK):\n if y8cn.enable_session:\n CBIr = Xw1j.get_user_from_session(JkXK)\n return CBIr\n return None", "def lw8U(Emd4, cuiw):\n cocD = cuiw...
[ "0.7982769", "0.7766468", "0.7722101", "0.7675123", "0.721653", "0.7183063", "0.7122054", "0.71118444", "0.7054212", "0.70261055", "0.70214546", "0.6982469", "0.6974961", "0.6969549", "0.69221324", "0.69007117", "0.68710655", "0.6831449", "0.6805409", "0.67993087", "0.6791058...
0.85343933
0
check_password(str, str) > return Boolean
def EvfH(kg40, jTXt): return z8jj(kg40, jTXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWk5(YKHO, jTXt):\n if YKHO.password_regex.search(jTXt) is not None:\n print('Correct password')\n return True\n else:\n print('Wrong password')\n return False", "def jqmR():\n assert EvfH('Longpassword') == False\n assert EvfH('123456') == False\n assert EvfH('shor...
[ "0.83673686", "0.82503486", "0.818368", "0.8129318", "0.8112791", "0.8098574", "0.80528426", "0.80272865", "0.80161875", "0.7981553", "0.79762876", "0.7971066", "0.79646784", "0.7963909", "0.7961851", "0.7961247", "0.7942472", "0.7918761", "0.79164815", "0.7915394", "0.791143...
0.73794585
85
checks if input somerow, somecol is a valid position on the board
def mK8w(YKHO, IxS8, LKdJ): j2KK = 0 <= IxS8 <= YKHO.size - 1 i__6 = 0 <= LKdJ <= YKHO.size - 1 return j2KK and i__6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BSop(iBIi, rdlD, fvDH):\n return iBIi[rdlD][fvDH] == '-'", "def qXxR(YKHO, IxS8, LKdJ):\n BSop = True\n for YRbF in range(YKHO.size):\n if YKHO.is_valid_position(IxS8, YRbF):\n if YKHO.board[IxS8][YRbF] != '0':\n BSop = False\n for YRbF in range(YKHO.size):\n ...
[ "0.7639755", "0.7625058", "0.7609505", "0.7515943", "0.7493321", "0.7408972", "0.7407812", "0.7331324", "0.7275376", "0.7235455", "0.72035295", "0.71923167", "0.71921295", "0.7175722", "0.7157514", "0.7129543", "0.7113458", "0.71117043", "0.7104877", "0.7096316", "0.70895207"...
0.86054844
0
The current running state of the scheduler.
def QTBn(YKHO) -> XLjY: return YKHO._async_scheduler.state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HX9S(YKHO):\n return YKHO.scheduler.running", "def lEWq(YKHO) -> int | None:\n return YKHO.cluster.get('running_state')", "def HX9S(YKHO):\n U34r = YKHO.info()\n return U34r['running']", "async def read_running_state(YKHO):\n return YKHO._running_state", "def HX9S(YKHO):\n return YKHO...
[ "0.78625226", "0.77582985", "0.75168455", "0.74741316", "0.740753", "0.7257067", "0.71971244", "0.7186842", "0.71654296", "0.7161242", "0.711987", "0.70992297", "0.70930713", "0.70719624", "0.7069338", "0.7058646", "0.7048098", "0.704517", "0.7019892", "0.69975895", "0.699758...
0.83317935
0
Funcion que inicializa el RequestFactory y un usuario de prueba para realizar los test
def FCbF(YKHO): YKHO.factory = b9AL() YKHO.user = mv1M.objects.create_user(username='testuser', email='test@test.com', password='test')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.factory = b9AL()", "def FCbF(YKHO):\n YKHO.factory = b9AL()", "def FCbF(YKHO):\n YKHO.factory = b9AL()", "def FCbF(YKHO):\n eBBd.create()\n YKHO.user = Pbfu.objects.get(username='admin')\n chYh.lider_proyecto = YKHO.user\n chYh.create()\n uW17.proyecto = sS_8.ob...
[ "0.8152422", "0.8152422", "0.8152422", "0.80186886", "0.7303293", "0.72484493", "0.71102047", "0.7027854", "0.68202835", "0.68063843", "0.67635506", "0.673852", "0.6719423", "0.6669916", "0.66214174", "0.6508954", "0.64917874", "0.6479835", "0.64433044", "0.6442", "0.6397828"...
0.7998286
4
Creates a new flask app instance
def LUif(sEAN='dev', B373=dict()): P4t4 = L2w0(__name__) with P4t4.app_context(): from flask import current_app, g g._env = sEAN current_app.config.from_object('service.config.config_%s.Config' % sEAN) pGmv = O2wz(P4t4) g._s3 = pGmv from . import views vie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif() -> L2w0:\n P4t4 = L2w0(__name__.split('.')[0])\n fOck(P4t4)\n P4t4.register_blueprint(LiTy)\n P4t4.teardown_appcontext(ssTe)\n P4t4.cli.add_command(JawI)\n return P4t4", "def P4t4():\n return LUif()", "def Nd3k() -> L2w0:\n bo34.info('creating flask application')\n P4t4 = ...
[ "0.8474935", "0.8377801", "0.8351886", "0.8350974", "0.833775", "0.83145094", "0.8283512", "0.8275917", "0.82234687", "0.81837445", "0.8182019", "0.81813145", "0.8163062", "0.8162504", "0.8154517", "0.81239367", "0.81128496", "0.8102725", "0.80830365", "0.8078559", "0.8075497...
0.0
-1
Sets the allow_origins of this PoliciesCorsPolicy.
def c_tA(YKHO, c_tA): YKHO._allow_origins = c_tA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l1zD(YKHO, c_tA):\n YKHO._api_manager.set_cors(c_tA)", "def FR1l(YKHO):\n return YKHO._allowed_origins", "def c_tA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'allow_origins')", "def FIMM(Ro_8, *, FR1l: Optional[Sequence[str]]=None):\n if FR1l is not None:\n qe4Y.set(Ro_8, 'allow...
[ "0.7647578", "0.6897975", "0.68845975", "0.64569545", "0.6432927", "0.6404761", "0.6057163", "0.59002167", "0.56471646", "0.56174624", "0.5577251", "0.54534507", "0.5451014", "0.54480773", "0.5442722", "0.5437039", "0.5388862", "0.5354993", "0.5316266", "0.5298737", "0.529708...
0.8180758
0
Sets the handle_pre_flight of this PoliciesCorsPolicy.
def CKnz(YKHO, CKnz): YKHO._handle_pre_flight = CKnz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, c_tA=None, CKnz=False, aHzG=None, uqEL=-1, xvO6=None, Z_mK=False, eMOS=None):\n YKHO._allow_origins = None\n YKHO._handle_pre_flight = None\n YKHO._allow_headers = None\n YKHO._max_age = None\n YKHO._allow_methods = None\n YKHO._allow_credentials = None\n YKHO._expose_headers = ...
[ "0.50519", "0.5010759", "0.5008292", "0.48886257", "0.48626038", "0.48537427", "0.48124483", "0.4772793", "0.4754322", "0.47244585", "0.46515507", "0.46155578", "0.46040416", "0.45802784", "0.4566349", "0.45465562", "0.4544266", "0.45350984", "0.4530764", "0.4470253", "0.4469...
0.77318203
0
Sets the allow_headers of this PoliciesCorsPolicy.
def aHzG(YKHO, aHzG): YKHO._allow_headers = aHzG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eDjB(YKHO) -> str:\n if YKHO._access_control_allow_headers is None:\n eDjB = YKHO._get_env('ACCESS_CONTROL_ALLOW_HEADERS')\n YKHO._access_control_allow_headers = eDjB\n return YKHO._access_control_allow_headers", "def l1zD(YKHO, c_tA):\n YKHO._api_manager.set_cors(c_tA)", "def c_tA(Y...
[ "0.6678761", "0.6608605", "0.65186864", "0.65150666", "0.6292688", "0.62827146", "0.62311417", "0.61149555", "0.6017598", "0.597709", "0.59209776", "0.5904409", "0.58088833", "0.5795862", "0.5752888", "0.5707614", "0.569921", "0.569658", "0.56665033", "0.5613601", "0.558559",...
0.8209735
0
Sets the max_age of this PoliciesCorsPolicy.
def uqEL(YKHO, uqEL): if uqEL is not None and uqEL < -1: raise ValueError('Invalid value for `max_age`, must be a value greater than or equal to `-1`') YKHO._max_age = uqEL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uqEL(YKHO, uqEL):\n YKHO._max_age = uqEL", "def uqEL(YKHO, uqEL):\n YKHO._max_age = uqEL", "def x8Qq(YKHO, x8Qq: ConfigNodePropertyInteger):\n YKHO._org_eclipse_jetty_servlet_max_age = x8Qq", "def uqEL(YKHO):\n return YKHO._max_age", "def uqEL(YKHO):\n return YKHO._max_age", "def uqEL(...
[ "0.76007694", "0.75818765", "0.6181315", "0.60036486", "0.60036486", "0.5991255", "0.59530157", "0.5952936", "0.5570798", "0.5560669", "0.5554711", "0.5550679", "0.5514026", "0.5476603", "0.5476603", "0.542057", "0.53712803", "0.53712803", "0.5309323", "0.52821743", "0.516930...
0.6974845
2
Sets the allow_methods of this PoliciesCorsPolicy.
def xvO6(YKHO, xvO6): YKHO._allow_methods = xvO6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WKee(YKHO) -> laHg.List['HttpMethods']:\n return YKHO._values.get('allowed_methods')", "def G9oa(YKHO):\n YKHO._addMethod('Allow', U56U.ALL, '*', [])", "def l1zD(YKHO, c_tA):\n YKHO._api_manager.set_cors(c_tA)", "def c_tA(YKHO, c_tA):\n YKHO._allow_origins = c_tA", "def LY4H(YKHO):\n if ...
[ "0.6656358", "0.66477054", "0.63585037", "0.6190399", "0.6175036", "0.588851", "0.5887324", "0.587138", "0.5630361", "0.5620242", "0.5606626", "0.56046224", "0.56025434", "0.55465657", "0.5531737", "0.5527642", "0.5421097", "0.54193413", "0.5416426", "0.5416027", "0.5399164",...
0.7412258
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, gwWZ): return False return YKHO.to_dict() == Elif.to_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): if not isinstance(Elif, gwWZ): return True return YKHO.to_dict() != Elif.to_dict()
{ "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.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Sort apps, based on the tab_order property in the config, if it exists. Anything with a value specified comes before everything else, which is arbitrarily sorted at the end.
def W5la(bZt8, fwru): wVBs = int(bZt8['taborder']) if 'taborder' in bZt8 else HwRy.maxsize IvCN = int(fwru['taborder']) if 'taborder' in fwru else HwRy.maxsize return wVBs - IvCN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzDK(YKHO, QePW):\n oHel = YKHO._build_app_dict(QePW)\n F9sO = sorted(oHel.values(), key=lambda WKvO: WKvO['order'])\n for P4t4 in F9sO:\n P4t4['models'].sort(key=lambda WKvO: WKvO['order'])\n return F9sO", "def ATIb(QpfX, eOtH):\n BA9O = lambda T4Wy, ZfUD: (T4Wy.index(ZfUD), '') if ZfU...
[ "0.6152258", "0.604614", "0.5984999", "0.53825635", "0.5284853", "0.52329206", "0.522487", "0.51849484", "0.5095874", "0.5049147", "0.5045796", "0.5008434", "0.4995336", "0.49815857", "0.49733093", "0.49688753", "0.49669898", "0.49626705", "0.4935812", "0.4927117", "0.4916017...
0.68363637
0
Array with entry for each point. Each entry is (x, y, visible) Where visible is 1 for seen points, 0 for hidden. This will grab 21 points, starting at offset.
def id7P(d6pt, XgyP, vgXP): kuls = XgyP[d6pt]['uv_vis'] LTIa = [None] * 21 LTIa[tugr['Wrist']] = kuls[vgXP + 0] LTIa[tugr['Thumb1']] = kuls[vgXP + 1] LTIa[tugr['Thumb2']] = kuls[vgXP + 2] LTIa[tugr['Thumb3']] = kuls[vgXP + 3] LTIa[tugr['Thumb4']] = kuls[vgXP + 4] LTIa[tugr['Index1']] = k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BTfj(AU8u):\n Xf84 = AU8u.copy()\n hlel = [AU8u.copy() for YRbF in range(4)]\n hlel[0:2] = map(PvyL.setY, hlel[0:2], [Xf84.getY() + YRbF for YRbF in range(-1, 2, 2)])\n hlel[2:4] = map(PvyL.setX, hlel[2:4], [Xf84.getX() + YRbF for YRbF in range(-1, 2, 2)])\n return hlel", "def LffQ(YKHO, LNo8,...
[ "0.61788267", "0.6125943", "0.6024688", "0.60170466", "0.59531415", "0.5947752", "0.59284425", "0.5914441", "0.5905948", "0.58377725", "0.5802081", "0.5800875", "0.57752895", "0.5765023", "0.5754854", "0.5714531", "0.569113", "0.5639593", "0.56307304", "0.5626553", "0.5624364...
0.60390353
2
Get all the points for the left hand.
def PILs(d6pt, XgyP): return id7P(d6pt, XgyP, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nkGx(YKHO):\n return YKHO.points", "def nkGx(YKHO):\n return YKHO.points", "def pDc_(YKHO) -> x1iM[oyIN.ndarray]:\n NbyN = []\n for aM8h in YKHO.get_all_factors():\n hl9z = U9CF(oyIN.dot(YKHO.left_inv, aM8h))\n NbyN.append(hl9z)\n return NbyN", "def nkGx(YKHO):\n return YK...
[ "0.68963695", "0.6827265", "0.68155766", "0.6739901", "0.6640089", "0.65664923", "0.65664923", "0.654761", "0.654761", "0.6474059", "0.64620525", "0.64620525", "0.64620525", "0.64620525", "0.64620525", "0.6426985", "0.6365052", "0.627833", "0.6242686", "0.62382686", "0.621840...
0.6600348
5
Compute the softmax of vector x.
def N93T(WKvO): nwEM = oyIN.exp(WKvO) return nwEM / oyIN.sum(nwEM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, WKvO):\n yvT9 = oyIN.zeros(WKvO.shape)\n for YRbF in range(WKvO.shape[0]):\n IA3S = WKvO[YRbF] - oyIN.max(WKvO[YRbF])\n yvT9[YRbF] = oyIN.exp(IA3S) / oyIN.sum(oyIN.exp(IA3S), axis=0)\n return yvT9", "def N93T(YKHO, WKvO):\n if WKvO.ndim == 1:\n WKvO = WKvO.reshape(...
[ "0.9027024", "0.88849884", "0.88833356", "0.88713694", "0.886723", "0.8852517", "0.8851923", "0.8849374", "0.88411117", "0.88389105", "0.8815639", "0.8813908", "0.8813908", "0.8811473", "0.8801066", "0.8784654", "0.8777957", "0.8777957", "0.8777957", "0.8777957", "0.8777957",...
0.8567707
74
Compute the softmax of vector x in a numerically stable way.
def YH__(WKvO): OuhA = WKvO - oyIN.max(WKvO) nwEM = oyIN.exp(OuhA) return nwEM / oyIN.sum(nwEM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n pass\n O48W = oyIN.exp(WKvO)\n T63k = oyIN.sum(O48W, axis=0)\n N93T = O48W / T63k\n return N93T", "def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return awRs(uw5A, uw5A.sum())", "def N93T(WKvO):\n yRgo = (WKvO - WKvO.max(1)[0].view(-1, 1)).exp()\n return...
[ "0.8924645", "0.8897543", "0.8855082", "0.88485944", "0.88447136", "0.88437134", "0.88332975", "0.88332975", "0.8805584", "0.88022864", "0.8801685", "0.8801685", "0.8801685", "0.8801685", "0.8801685", "0.8801685", "0.8801685", "0.8801685", "0.8801685", "0.8801685", "0.8801685...
0.8456407
75
return the base path.
def iGvk(): return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XSj5(YKHO):\n return YKHO._base_path", "def PB4K(YKHO) -> str:\n raise NotImplementedError()", "def XSj5(YKHO):\n return YKHO.setup.base_path", "def XSj5(YKHO):\n return GkAb(YKHO.path)", "def P8oC(YKHO):\n return Hy7s.path.basename(YKHO.path)", "def r_lF(YKHO):\n pmON = NoPH(YKHO.b...
[ "0.9110709", "0.8914833", "0.8814698", "0.84620833", "0.83229417", "0.8201772", "0.8119839", "0.80450326", "0.80241483", "0.7979383", "0.79153943", "0.7729585", "0.75555825", "0.7534282", "0.7483297", "0.74384886", "0.7389192", "0.7376088", "0.7365747", "0.73435485", "0.73289...
0.8348918
4
Test Home page GET success
def s683(YKHO): Ylbp = YKHO.client().get('/') YKHO.assertEqual(Ylbp.status_code, 200) sjfE = qQXR.loads(Ylbp.get_data(as_text=True)) YKHO.assertEqual('Home page', sjfE['message'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GvGQ(YKHO):\n Ylbp = YKHO.client.get('/')\n nPrm = Ylbp.data.decode('utf-8')\n assert Ylbp.status == '200 OK'\n assert 'Gandalf' in nPrm", "def GvGQ(YKHO):\n Aofo = YKHO.app.get('/')\n YKHO.assertEqual(Aofo.status_code, 200)", "def tacr(x0hE):\n bD7m = gxEw('home')\n geh0 = x0hE.get...
[ "0.8031052", "0.79719555", "0.797003", "0.79347235", "0.79246193", "0.7870425", "0.7868509", "0.78464305", "0.77751285", "0.77422047", "0.77198935", "0.7689997", "0.766225", "0.766225", "0.7617628", "0.7592641", "0.7592641", "0.7585918", "0.7579558", "0.7539119", "0.75317514"...
0.80841446
0
Test Home page GET error
def B1qB(YKHO): Ylbp = YKHO.client().get('/home') YKHO.assertEqual(Ylbp.status_code, 404) sjfE = qQXR.loads(Ylbp.get_data(as_text=False)) YKHO.assertEqual('Resource Not Found', sjfE['message'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r6eW(YKHO):\n im04 = YKHO.app.get('/')\n assert 'Enter your url here' in im04.data", "def GvGQ(YKHO):\n Aofo = YKHO.app.get('/')\n YKHO.assertEqual(Aofo.status_code, 200)", "def GvGQ(YKHO):\n geh0 = YKHO.app.get('/')\n YKHO.assertTrue(geh0.status_code, 200)", "def s683(YKHO):\n Ylbp ...
[ "0.77049184", "0.7659181", "0.7619436", "0.76083475", "0.7482214", "0.7394391", "0.73898375", "0.73769104", "0.73749995", "0.7361156", "0.73505974", "0.73457575", "0.73457575", "0.73378193", "0.7290617", "0.72474724", "0.7233395", "0.721047", "0.71503764", "0.7137017", "0.713...
0.7465136
5
Test '/categories' GET success
def _562(YKHO): Ylbp = YKHO.client().get('/categories') nPrm = qQXR.loads(Ylbp.data) YKHO.assertEqual(Ylbp.status_code, 200) YKHO.assertEqual(nPrm['success'], True) YKHO.assertTrue(nPrm['categories']) YKHO.assertTrue(nPrm['total_categories'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _562(YKHO):\n Ylbp = YKHO.client().get('/categories')\n nPrm = qQXR.loads(Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, 200)\n YKHO.assertEqual(nPrm['success'], True)\n YKHO.assertTrue(len(nPrm['categories']))", "def _562(YKHO):\n Ylbp = YKHO.client().get('/api/categories')\n SyTL = qQ...
[ "0.84284675", "0.83606726", "0.83544725", "0.8345605", "0.8221959", "0.81894773", "0.8124276", "0.77914757", "0.77671236", "0.77610147", "0.7706712", "0.76859045", "0.7595673", "0.75360304", "0.74500704", "0.7442432", "0.73736376", "0.7342269", "0.7264145", "0.7234178", "0.72...
0.8284719
4
Test '/categories' GET error
def MtEb(YKHO): Ylbp = YKHO.client().get('/categories/7') nPrm = qQXR.loads(Ylbp.data) YKHO.assertEqual(Ylbp.status_code, 404) YKHO.assertEqual(nPrm['success'], False) YKHO.assertEqual(nPrm['message'], 'Resource Not Found')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MDiD(YKHO):\n Ylbp = YKHO.client().post('/categories/', data=YKHO.category)\n YKHO.assertEqual(Ylbp.status_code, 201)\n Ylbp = YKHO.client().get('/categories/')\n YKHO.assertEqual(Ylbp.status_code, 200)\n YKHO.assertIn('Stews', str(Ylbp.data))", "def _562(YKHO):\n Ylbp = YKHO.client().get('...
[ "0.8111586", "0.8080501", "0.8048344", "0.80268043", "0.798437", "0.79640514", "0.79492235", "0.7913016", "0.7853913", "0.7811022", "0.7802958", "0.7779876", "0.76586115", "0.765487", "0.7631587", "0.75027007", "0.7428791", "0.7424328", "0.73896396", "0.73635405", "0.73587143...
0.7394302
18
Test '/search' POST error
def e_96(YKHO): nPrm = {'searchTerm': 'wxyz'} Ylbp = YKHO.client().post('/search', data=qQXR.dumps(nPrm), content_type='application/json') YKHO.data = qQXR.loads(Ylbp.data) YKHO.assertEqual(Ylbp.status_code, 404) sjfE = qQXR.loads(Ylbp.get_data(as_text=False))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xm5V(YKHO):\n I78j = P4t4.test_client(YKHO)\n geh0 = I78j.post('/search')\n YKHO.assertEqual(geh0.status_code, 200)", "def D7Jh(YKHO):\n Ylbp = YKHO.app.get('/search')\n YXxD = 'Search page should be accessible'\n assert 'Search' in Ylbp.data, YXxD", "def Pe8h(YKHO):\n I78j = P4t4.test...
[ "0.814297", "0.7933988", "0.7591145", "0.74356306", "0.74088854", "0.7394592", "0.7378304", "0.7319517", "0.7310906", "0.72914416", "0.7205557", "0.7169899", "0.71229935", "0.70662004", "0.70340776", "0.6979441", "0.6932809", "0.6890871", "0.6878727", "0.68515646", "0.6817503...
0.78727055
2
Test '/play', POST error
def Pwll(YKHO): nPrm = {'previous_questions': '2', 'quiz_category': {}} Ylbp = YKHO.client().post('/play', data=qQXR.dumps(nPrm), content_type='application/json') YKHO.assertEqual(Ylbp.status_code, 422) sjfE = qQXR.loads(Ylbp.get_data(as_text=False))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EkfX(YKHO):\n geh0 = YKHO.client.open('/start', method='POST')\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))", "def AWhd(YKHO):\n YKHO.assertEqual(YKHO.response.status_code, 200)", "def AWhd(YKHO):\n YKHO.assertEqual(200, YKHO.response.status_code)", "def AWhd(YKHO...
[ "0.66659236", "0.6577006", "0.6486296", "0.64708036", "0.6457246", "0.64063805", "0.63439244", "0.63433415", "0.63198334", "0.6281969", "0.6237531", "0.6169002", "0.6169002", "0.61351967", "0.6118383", "0.60827714", "0.60806495", "0.6079986", "0.60582453", "0.60472286", "0.60...
0.58753383
32
creates a dictionary of masks with key as train_name and value as the image ie the mask.
def AyUR(ko4Q): oGem = {} for mWFP in ko4Q: oGem[mWFP] = jbYn.imread('../dataset/masks/' + mWFP + '.png', jbYn.IMREAD_GRAYSCALE) return oGem
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zE_S(pNZh):\n oGem = {}\n EKkU = pNZh.num_nodes()\n for lpha, n7QH in zip(['train', 'validation', 'test'], [pNZh.train_nodes, pNZh.validation_nodes, pNZh.test_nodes]):\n cnYx = oyIN.zeros(EKkU, dtype=bool)\n cnYx[n7QH] = True\n oGem[lpha] = cnYx\n return oGem", "def ohsk(YKHO...
[ "0.66378236", "0.6490183", "0.63510484", "0.63296914", "0.6242874", "0.6236185", "0.6181385", "0.6169227", "0.61527234", "0.6059589", "0.6059158", "0.60440946", "0.6028404", "0.60111594", "0.60075146", "0.59977734", "0.59973216", "0.59925765", "0.5972022", "0.595777", "0.5955...
0.8503898
0
This function returns all the predictions for a set of items. If users is set to 'None', it will return all the predictions for all the users (matrix of size [num_users x num_items]).
def zvxA(YKHO, DW23=None, tlxW=None): J9Ox, mTYt = YKHO.shape if DW23 is not None: J9Ox = len(DW23) if tlxW is not None: mTYt = tlxW LY8y = YKHO.bias['globalAvg'] + YKHO.bias['dItems'][:mTYt] return oyIN.array([LY8y] * J9Ox)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnkx(YKHO):\n return YKHO._user_factors.dot(YKHO._item_factors.T)", "def YEmv(YKHO, DW23, DumB):\n YKHO.eval()\n f5y2 = ht2j.tensor(DW23, dtype=ht2j.int64, device=YKHO.device)\n yCXm = ht2j.tensor(DumB, dtype=ht2j.int64, device=YKHO.device)\n with ht2j.no_grad():\n SS6A, ZmEH = YKHO.for...
[ "0.7518572", "0.70929635", "0.70800906", "0.6605688", "0.65354633", "0.6520353", "0.63867706", "0.6351859", "0.6313127", "0.6312929", "0.6252412", "0.62416387", "0.621037", "0.61483467", "0.6137849", "0.61124796", "0.6110548", "0.6088755", "0.6052726", "0.6029989", "0.6022885...
0.7222417
1
This method returns the requested configuration value.
def eMhT(YKHO, wOGa: str): return YKHO.configurations.get(wOGa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZR0i(YKHO, mWFP):\n if mWFP in YKHO.config_values:\n return YKHO.config_values[mWFP]", "def BWXx(YKHO) -> str:\n return YKHO._config.get('value')", "def ge7L(YKHO, XLMv, H5ew):\n return GPtr.get(XLMv, H5ew)", "def NMoC(YKHO, H5ew):\n return YKHO.config.get(H5ew)", "def tgzD(YKHO):\n ...
[ "0.79605746", "0.7883946", "0.7579541", "0.7458888", "0.73769873", "0.7289189", "0.7254569", "0.72494525", "0.72343785", "0.7220295", "0.72149634", "0.7165166", "0.7158661", "0.7155588", "0.7145809", "0.7144928", "0.7122192", "0.71090996", "0.7094943", "0.7090694", "0.7071568...
0.6544153
61
Given a set of N people (numbered 1, 2, ..., N), we would like to split everyone into two groups of any size. Each person may dislike some other people, and they should not go into the same group. Formally, if dislikes[i] = [a, b], it means it is not allowed to put the people numbered a and b into the same group. Retur...
def Gzk1(YKHO, ywwl: int, fiJh: List[List[int]]) -> bool: qfpW = {} def K2kF(Q6kx, Z9rn=0): if Q6kx in qfpW: return qfpW[Q6kx] == Z9rn qfpW[Q6kx] = Z9rn return all((K2kF(mLGw, Z9rn ^ 1) for mLGw in yscS[Q6kx])) yscS = oRi_(list) for WKvO, LVAh in fiJh: yscS[W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gzk1(YKHO, ywwl: int, fiJh: List[List[int]]) -> bool:\n FTLl = [1, 0]\n D7Bj = -1\n if not fiJh:\n return True\n pNZh = [[0] * ywwl for bGrB in range(ywwl)]\n for jzdc, Fg_i in fiJh:\n pNZh[jzdc - 1][Fg_i - 1] = pNZh[Fg_i - 1][jzdc - 1] = 1\n Jw9H = [1] + [D7Bj] * (ywwl - 1)\n ...
[ "0.59938604", "0.543122", "0.5425278", "0.54036534", "0.53969157", "0.53872716", "0.5381204", "0.52916723", "0.52485555", "0.5187252", "0.5122909", "0.5115946", "0.510404", "0.50999707", "0.50879896", "0.5057843", "0.5034724", "0.50267625", "0.50191677", "0.50175595", "0.5009...
0.63579357
0
Verify invalid data can NOT be inserted into domain table when there is an invalid column name.
def srhb(YKHO): nR0f = puZD.get_trixie_domain_data() WNtM = arQB.domain_stmt(nR0f) WNtM = WNtM.replace('Name', 'Name_invalid') nNhf = zX70.execute_statement(YKHO.connection, WNtM) Aofo = nNhf[0] Uyws = nNhf[1] IR7K = nNhf[2] tO9_ = nNhf[3] YKHO.trans.commit() dZYq = arQB.get_data...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IH1P(YKHO):\n assert YKHO.check.validation_column == 'foo_bar_is_unique_identifier'", "def CGaZ(YKHO):\n YKHO.dicom.extract_keywords(['invalid'])\n ZLJ_ = YKHO.dicom.metadata.column_names\n if u'invalid' not in ZLJ_:\n raise Exception('Invalid column not added')\n YqaN = YKHO.dicom.meta...
[ "0.6972688", "0.68067086", "0.66346246", "0.65312326", "0.64913225", "0.6417255", "0.6416926", "0.6413295", "0.63948125", "0.6323537", "0.6323502", "0.6288173", "0.62496513", "0.62421227", "0.61802006", "0.6170339", "0.61670995", "0.616497", "0.6161495", "0.61442834", "0.6132...
0.0
-1
Verify invalid data can be inserted after '% w' is replaced with '%% w'.
def dP8s(YKHO): nR0f = puZD.get_trixie_domain_data() JBZA = nR0f['Description'] JBZA = JBZA.replace('nuclease domain', 'nuclease % wdomain') nR0f['Description'] = JBZA WNtM = arQB.domain_stmt(nR0f) WNtM = WNtM.replace('%', '%%') nNhf = zX70.execute_statement(YKHO.connection, WNtM) Aofo =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zngb(YKHO):\n rPXJ = '{0} just right {1}'\n w73T = 2\n try:\n ZDz3(rPXJ, w73T)\n except sUXu:\n YKHO.fail('Name raised ValidationError unexpectedly')", "def wVbr(nPrm):\n\n def hU5b(BWXx):\n if BWXx != WxwX.clean(BWXx):\n raise ValueError\n return UKz1(nPrm)"...
[ "0.5992635", "0.5858768", "0.5779868", "0.57725316", "0.5767164", "0.57373", "0.57113636", "0.5679382", "0.5599095", "0.5586738", "0.55469763", "0.55464494", "0.5539545", "0.5525969", "0.55158526", "0.55059", "0.54947853", "0.54716885", "0.5456682", "0.5438615", "0.5373101", ...
0.0
-1
Returns a list of players by their name
def p6oM(YKHO, wAVY): Bwa6 = {oyg0.name: oyg0 for oyg0 in _r9_()} mWFP, DuZT = NBjn.extractOne(wAVY, Bwa6.keys()) if DuZT <= 60: return YKHO._add_player(Bwa6[mWFP])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wCjj(YKHO, mWFP):\n for d6pt in range(0, len(YKHO.player_list)):\n if YKHO.player_list[d6pt].name == mWFP:\n return YKHO.player_list[d6pt]", "def z9gC(PYTQ, mWFP):\n Aofo = PYTQ.search(_aLO().Nom == mWFP)\n print(Aofo)", "def I37Y(YKHO):\n ZWCE = [CBIr['name'] for CBIr in YKHO...
[ "0.7444549", "0.7286916", "0.71669084", "0.71356833", "0.7118854", "0.7060312", "0.70388955", "0.70053047", "0.69989634", "0.69889975", "0.6957113", "0.690269", "0.6900602", "0.6869226", "0.6838337", "0.68317175", "0.68274045", "0.68181723", "0.6816372", "0.6778543", "0.67578...
0.6284037
56
Returns a list of the minor xvalues
def tX5k(YKHO): raise NotImplementedError('Derived class must implement this.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tX5k(YKHO):\n return list(range(YKHO.nMinorCols))", "def tX5k(YKHO):\n return YKHO.prepStrs", "def GQLT(YKHO):\n return list(range(YKHO.nMinorRows))", "def lTdq(YKHO):\n return YKHO.Ls", "def lTdq(YKHO):\n return YKHO.Ls", "def EFA2(YKHO):\n return YKHO.xvar.minmax()", "def GQLT(Y...
[ "0.8536963", "0.78333926", "0.7105045", "0.667972", "0.667972", "0.6530889", "0.6437862", "0.63203067", "0.6080389", "0.6043881", "0.6031606", "0.59958935", "0.5900932", "0.5899524", "0.57883686", "0.57671493", "0.5739332", "0.5727638", "0.5725913", "0.57221866", "0.5721607",...
0.80805826
1
Return the number of rows and columns contained in each plaquette of this CircuitStructure. Returns
def oYqE(YKHO): return (len(YKHO.minor_yvals()), len(YKHO.minor_xvals()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n return YKHO.__row_count * YKHO.__col_count", "def oYqE(YKHO):\n return (YKHO.nMinorRows, YKHO.nMinorCols)", "def zNig(YKHO):\n return (YKHO.num_rows, YKHO.num_cols)", "def zNig(YKHO):\n return (YKHO.num_rows, YKHO.num_cols)", "def EAlI(YKHO):\n return YKHO.cols * YKHO.rows ...
[ "0.762086", "0.7546922", "0.7405167", "0.7405167", "0.7396393", "0.73630697", "0.7344099", "0.7263803", "0.72509813", "0.71989316", "0.71561486", "0.7155653", "0.7122607", "0.7069642", "0.7020033", "0.70186126", "0.69988716", "0.69744986", "0.69614923", "0.6945587", "0.692618...
0.74404293
2
Returns a list of the minor xvalues
def tX5k(YKHO): return YKHO.prepStrs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tX5k(YKHO):\n return list(range(YKHO.nMinorCols))", "def tX5k(YKHO):\n raise NotImplementedError('Derived class must implement this.')", "def GQLT(YKHO):\n return list(range(YKHO.nMinorRows))", "def lTdq(YKHO):\n return YKHO.Ls", "def lTdq(YKHO):\n return YKHO.Ls", "def EFA2(YKHO):\n ...
[ "0.8536963", "0.80805826", "0.7105045", "0.667972", "0.667972", "0.6530889", "0.6437862", "0.63203067", "0.6080389", "0.6043881", "0.6031606", "0.59958935", "0.5900932", "0.5899524", "0.57883686", "0.57671493", "0.5739332", "0.5727638", "0.5725913", "0.57221866", "0.5721607",...
0.78333926
2
Returns a copy of this `LsGermsStructure`.
def jth9(YKHO): piAD = TWEn(YKHO.Ls, YKHO.germs, YKHO.prepStrs, YKHO.effectStrs, YKHO.aliases, YKHO.sequenceRules) piAD.allstrs = YKHO.allstrs[:] piAD.allstrs_set = YKHO.allstrs_set.copy() piAD.unindexed = YKHO.unindexed[:] piAD._plaquettes = {G1Hx: Ty9i.copy() for G1Hx, Ty9i in YKHO._plaquettes.ite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n piAD = C2Wz(YKHO.Ls, YKHO.germs, YKHO.nMinorRows, YKHO.nMinorCols, YKHO.aliases, YKHO.sequenceRules)\n piAD.allstrs = YKHO.allstrs[:]\n piAD.allstrs_set = YKHO.allstrs_set.copy()\n piAD.unindexed = YKHO.unindexed[:]\n piAD._plaquettes = {G1Hx: Ty9i.copy() for G1Hx, Ty9i in YKHO._pl...
[ "0.77503604", "0.6539036", "0.6407928", "0.63663554", "0.6355048", "0.63133365", "0.62963444", "0.62859726", "0.62613755", "0.62566406", "0.62521607", "0.62347203", "0.62142944", "0.6204213", "0.6198179", "0.61895", "0.6188255", "0.6187756", "0.61809796", "0.61760896", "0.617...
0.8042172
0
Returns a copy of this `LsGermsSerialStructure`.
def jth9(YKHO): piAD = C2Wz(YKHO.Ls, YKHO.germs, YKHO.nMinorRows, YKHO.nMinorCols, YKHO.aliases, YKHO.sequenceRules) piAD.allstrs = YKHO.allstrs[:] piAD.allstrs_set = YKHO.allstrs_set.copy() piAD.unindexed = YKHO.unindexed[:] piAD._plaquettes = {G1Hx: Ty9i.copy() for G1Hx, Ty9i in YKHO._plaquettes.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n piAD = TWEn(YKHO.Ls, YKHO.germs, YKHO.prepStrs, YKHO.effectStrs, YKHO.aliases, YKHO.sequenceRules)\n piAD.allstrs = YKHO.allstrs[:]\n piAD.allstrs_set = YKHO.allstrs_set.copy()\n piAD.unindexed = YKHO.unindexed[:]\n piAD._plaquettes = {G1Hx: Ty9i.copy() for G1Hx, Ty9i in YKHO._plaq...
[ "0.72593504", "0.6234023", "0.6216728", "0.62012905", "0.61814725", "0.61795455", "0.6171813", "0.6108199", "0.6097484", "0.60341233", "0.59217", "0.59086096", "0.589321", "0.589321", "0.589321", "0.589321", "0.589321", "0.589321", "0.589321", "0.589321", "0.589321", "0.589...
0.7885875
0
Test that the constructor raises an exception if an invalid folder name is given
def dlEk(YKHO): with YKHO.assertRaises(Vhc0) as Bcwd: uh7J(None, 'my_wrong_folder_name!') YKHO.assertEqual(Vhc0.INVALID_DIR_NAME, Bcwd.exception.code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bvL1(YKHO):\n YKHO.assertRaises(OSError, qXpg.AwstatsReader, '/tmp/XYZ', 'example.com')", "def oR2l():\n with trZe.raises(ValueError):\n assert GSyo._valid_dir(xAKo)", "def KCpy(YKHO):\n YKHO.assertRaises(OSError, LhPB, 'not_a_directory')", "def gn2Q(YKHO):\n tTpl = YKHO.assertRaises(I...
[ "0.7181131", "0.7140343", "0.704015", "0.6952155", "0.6820856", "0.67233", "0.67044145", "0.6701676", "0.66677594", "0.6665724", "0.66566724", "0.6537332", "0.64243734", "0.6390643", "0.6385385", "0.6338195", "0.63330954", "0.6327341", "0.6325642", "0.630055", "0.62816304", ...
0.84119904
0
Return a generator to iterate over records for the provided zone.
def cTUH(YKHO, lhKE): J2us = YKHO._to_records(lhKE) yield from J2us
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f6JN(YKHO, _j99, Hs_u=None):\n for lhKE in _j99:\n for KAOR in YKHO.yield_instances_in_zone(lhKE, Hs_u):\n yield KAOR", "def dpxx(YKHO, lhKE):\n return YKHO._zones[lhKE.id]['records'].values()", "def kLUY(YKHO, lhKE, Hs_u=None):\n if Hs_u and set('\"\\\\\\'').intersection(Hs_u):\...
[ "0.6794877", "0.6582904", "0.6393611", "0.6242111", "0.61347115", "0.5951769", "0.59507793", "0.57590294", "0.5742277", "0.57317704", "0.57101995", "0.5706609", "0.5646988", "0.5645076", "0.5622916", "0.5600926", "0.5550696", "0.5543637", "0.5540973", "0.5503652", "0.54717153...
0.8712466
0
Return a Record instance.
def EX31(YKHO, DVVB, Wgp8): lhKE = YKHO.get_zone(DVVB) try: if int(Wgp8) not in range(1, lID9 + 1): raise GCle(value="Record doesn't exists", driver=lhKE.driver, record_id=Wgp8) except ValueError: raise hkQb(value='Record id should be a string number', driver=YKHO) UhTt = lhK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k0Th(YKHO, hbFX: str) -> uLKX[y7L0, l1oh]:\n return YKHO._get(hbFX)", "def AIu6(YKHO):\n return YKHO._record", "def J2us(YKHO):\n return sMxI(YKHO)", "def i8JH(YKHO, hkxX=None):\n return Ky4Y(schema=YKHO.table_schema, values=hkxX)", "def nlz4(YKHO, d6pt):\n return NOUy(YKHO, d6pt)", "d...
[ "0.6895917", "0.68712634", "0.6791444", "0.6761231", "0.6645053", "0.6645053", "0.66049945", "0.6463003", "0.64363194", "0.6402961", "0.6382908", "0.6356668", "0.6309943", "0.63080347", "0.6188471", "0.6171782", "0.6134258", "0.61277723", "0.6066824", "0.60664827", "0.6064408...
0.6247223
14
Return horizontal Coordinate Reference System.
def ucxv(YKHO) -> XEzR: if 'crs_wkt' not in YKHO.attrs: YKHO.set_crs() if 'crs_wkt' in YKHO.attrs: ucxv = PkKV.CRS.from_user_input(YKHO.attrs['crs_wkt']) return ucxv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H4hf(YKHO):\n return YKHO._horizontal", "def Fcr6(YKHO, dQgj):\n pass", "def bM2s(YKHO):\n return YKHO._horiz_center", "def bM2s(YKHO):\n return YKHO._horiz_center", "def taLD(YKHO):\n return YKHO.horizontalHeader()", "def Fcr6(YKHO, WKvO, LVAh):\n return YKHO._board[LVAh]", "def ...
[ "0.65235794", "0.630586", "0.6060452", "0.6060452", "0.5820745", "0.58152163", "0.58087015", "0.58087015", "0.5776991", "0.5542575", "0.5541281", "0.5541281", "0.5512561", "0.5512561", "0.54946166", "0.5469209", "0.54295236", "0.542135", "0.53974944", "0.538755", "0.5376193",...
0.5171154
42
Return the x coordinates.
def pfB4(YKHO) -> zuVY.IndexVariable: pfB4 = YKHO._obj[YKHO.x_dim] if YKHO.x_dim not in YKHO._obj.coords: for H5ew in list(YKHO._obj.coords.keys()): if H5ew.startswith(YKHO.x_dim): pfB4 = YKHO._obj.coords[H5ew] break if pfB4.ndim == 2 and list(pfB4.dims).i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p5xg(YKHO):\n return YKHO.x_coord", "def nIKw(YKHO):\n return YKHO.coords[0]", "def WKvO(YKHO):\n return YKHO.coords[0]", "def WKvO(YKHO):\n if YKHO._x is None:\n YKHO.compute_coordinates()\n return YKHO._x", "def WKvO(YKHO):\n return YKHO._coords[0]", "def WKvO(YKHO):\n r...
[ "0.85279644", "0.833376", "0.82469004", "0.824256", "0.8168135", "0.8130609", "0.81052214", "0.80422014", "0.8039824", "0.8039096", "0.79882365", "0.7968397", "0.7813556", "0.77749443", "0.7768395", "0.77598083", "0.77354634", "0.77336967", "0.7689222", "0.7674849", "0.764491...
0.7087132
70
Return the y coordinates.
def TWPo(YKHO) -> zuVY.IndexVariable: TWPo = YKHO._obj[YKHO.y_dim] if YKHO.y_dim not in YKHO._obj.coords: for H5ew in list(YKHO._obj.coords.keys()): if H5ew.startswith(YKHO.y_dim): TWPo = YKHO._obj.coords[H5ew] break if TWPo.ndim == 2 and list(TWPo.dims).i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVAh(YKHO):\n return YKHO.coords[1]", "def LVAh(YKHO):\n return YKHO._coords[1]", "def yDCK(YKHO):\n return YKHO.coords[1]", "def LVAh(YKHO):\n if YKHO._y is None:\n YKHO.compute_coordinates()\n return YKHO._y", "def bDS1(YKHO):\n return YKHO._y", "def bmPF(YKHO):\n return...
[ "0.8654424", "0.8602437", "0.8506628", "0.84617984", "0.84500885", "0.8418269", "0.8372946", "0.83680576", "0.83570445", "0.83570445", "0.83252347", "0.8318577", "0.8271337", "0.8248058", "0.8147464", "0.81284636", "0.81257457", "0.8105233", "0.8104671", "0.8083133", "0.80775...
0.7571749
64
Return size of geospatial grid.
def zNig(YKHO) -> int: return int(oyIN.multiply(*YKHO.shape))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U4F5(YKHO):\n return YKHO._grid_size", "def R24Q(YKHO):\n return YKHO.grid_size", "def IbD0(YKHO):\n return YKHO._grid_width", "def IbD0(YKHO):\n return YKHO._grid_width", "def IbD0(YKHO):\n return YKHO._grid_width", "def IbD0(YKHO):\n return YKHO._grid_width", "def IbD0(YKHO):\n ...
[ "0.7920476", "0.7456652", "0.7227365", "0.7227365", "0.7227365", "0.7200335", "0.7193012", "0.71758896", "0.71585983", "0.71585983", "0.714411", "0.7123359", "0.70858335", "0.7056563", "0.70563567", "0.6927538", "0.6881736", "0.6881736", "0.68446124", "0.68411905", "0.6837507...
0.0
-1
Return origin of grid (x0, y0) tuple.
def hLRM(YKHO) -> tuple[float, float]: fUYa, bEXe = (YKHO.xcoords.data, YKHO.ycoords.data) nJ9F, nxyw = (0, 0) Jw7X, eUWA = YKHO.res if fUYa.ndim == 1: nJ9F, nxyw = (fUYa[0] - Jw7X / 2, bEXe[0] - eUWA / 2) elif fUYa.ndim == 2: Cwt5 = epAf.radians(YKHO.rotation) UqYS = epAf.at...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wkq0(YKHO):\n return YKHO.coord_cls(x=0, y=0, system=YKHO)", "def Wkq0(YKHO):\n return YKHO.coord_cls(x=0, y=0, z=0, system=YKHO)", "def hLRM(YKHO):\n return (YKHO._x_origin, YKHO._y_origin)", "def U8Gl(YKHO, WKvO, LVAh):\n VFd6 = 7\n LVAh = VFd6 - LVAh\n UV8M = 100 * (WKvO - 1) + 50\n ...
[ "0.7786346", "0.77669007", "0.77029955", "0.72977597", "0.7290609", "0.7262505", "0.7190701", "0.71774894", "0.7169552", "0.7151905", "0.71281385", "0.7038532", "0.69809407", "0.695003", "0.6920378", "0.6916003", "0.68950975", "0.6872901", "0.68449736", "0.6763199", "0.673778...
0.7590653
3
Return True if other has an same grid as object (crs, transform, shape).
def q3C6(YKHO, Elif) -> bool: return (YKHO.crs is None or Elif.raster.crs is None or YKHO.crs == Elif.raster.crs) and oyIN.allclose(YKHO.transform, Elif.raster.transform, atol=1e-06) and oyIN.allclose(YKHO.shape, Elif.raster.shape)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aQnw(k0lF, tjUW):\n if oyIN.isscalar(k0lF):\n if not oyIN.isscalar(tjUW):\n return False\n else:\n return k0lF == tjUW\n elif k0lF.nd != tjUW.nd or k0lF.ng != tjUW.ng:\n return False\n elif not oyIN.all(k0lF.gridpts == tjUW.gridpts):\n return False\n ...
[ "0.79255545", "0.77819914", "0.77701086", "0.7600014", "0.7600014", "0.75598896", "0.74396455", "0.74385095", "0.7356286", "0.7314897", "0.71629375", "0.7061093", "0.70535", "0.7039138", "0.7027209", "0.6967742", "0.69376886", "0.69284993", "0.6859808", "0.6859808", "0.683556...
0.86927044
0
Mask nodata values with fill_value (default np.nan). Note that masking with np.nan will change integer dtypes to float.
def wohU(YKHO, xgWT=oyIN.nan): s9CI = YKHO._obj if YKHO.nodata is not None and YKHO.nodata != xgWT: ZHfW = s9CI.notnull() if oyIN.isnan(YKHO.nodata) else s9CI != YKHO.nodata s9CI = s9CI.where(ZHfW, xgWT) s9CI.raster.set_nodata(xgWT) return s9CI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zJ0G(jzdc, BWXx):\n return peS3(jzdc, oyIN.isnan(jzdc), BWXx)", "def pHUi(jzdc, BWXx):\n return ZDwt(jzdc, oyIN.isnan(jzdc), BWXx)", "def els9(ezWE, xgWT=oyIN.nan):\n if VKq4(ezWE, xgWT):\n ezWE.fill(xgWT)\n return ezWE", "def iwLm(YKHO, xgWT: Optional[Any]=None) -> oyIN.ndarray:\n ...
[ "0.74204946", "0.72800386", "0.7148342", "0.7076398", "0.69556", "0.6905956", "0.6870082", "0.6856123", "0.6845135", "0.67608434", "0.6720865", "0.6711933", "0.6681884", "0.65704376", "0.6557283", "0.65385985", "0.6530317", "0.6477339", "0.64632505", "0.641844", "0.6400353", ...
0.8272376
0
Returns true if the cells have the same position.
def xa14(YKHO, Z9rn): for YRbF in range(tiAy): if YKHO[YRbF] != Z9rn[YRbF]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PASr(YKHO, rdlD):\n return len(set(rdlD)) == 1 and rdlD[0] != YKHO.BLANK_CELL_CHAR", "def tAcF(YKHO, Elif):\n if YKHO.rows == Elif.rows and YKHO.columns == Elif.columns:\n return True\n else:\n return False", "def Cf_1(YKHO, g4we, dC8m):\n return YKHO.board.board[g4we] == YKHO.boa...
[ "0.73459154", "0.7024958", "0.6961639", "0.69514674", "0.6892043", "0.6856153", "0.67743605", "0.668304", "0.6622439", "0.6609773", "0.660939", "0.65941924", "0.65596807", "0.65435195", "0.65329444", "0.652664", "0.6516336", "0.6513846", "0.65000194", "0.6493103", "0.64923096...
0.6403926
34
extract the duration option in the option_set
def EdTY(Cwut): return Cwut & Wak8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mrFw(YKHO):\n return jKi7.next(jKi7.itervalues(YKHO.zap._request(YKHO.zap.base + 'spider/view/optionMaxDuration/')))", "def r176(YKHO):\n return YKHO._adoption_time", "def WbTE(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'duration')", "def WbTE(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'dur...
[ "0.67026985", "0.64731175", "0.63879627", "0.63879627", "0.629576", "0.629576", "0.629576", "0.62948775", "0.62892413", "0.62805474", "0.62276673", "0.617944", "0.6094795", "0.6060802", "0.6040044", "0.6028666", "0.59947103", "0.59947103", "0.5988713", "0.59743196", "0.596760...
0.8014823
0
Add a vertex to the graph.
def ohmD(YKHO, oqUi): YKHO.vertices[oqUi] = set()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n raise NotImplementedError", "def ohmD(YKHO, SLBp):\n if isinstance(SLBp, Yegm):\n YKHO.vertices.append(SLBp)\n return\n raise TypeError('Is not vertex instance!')", "def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[rJkO.name] = rJkO", "def ohmD(Y...
[ "0.87015903", "0.84329987", "0.8422056", "0.840923", "0.83646226", "0.8317027", "0.825337", "0.808519", "0.8081489", "0.8038682", "0.8035422", "0.78834563", "0.78711975", "0.7838118", "0.7838118", "0.77608305", "0.7757061", "0.77158874", "0.7711681", "0.76663774", "0.76616603...
0.7310487
34
Add a directed edge to the graph.
def rz7z(YKHO, hQHm, jlSq): if hQHm in YKHO.vertices and jlSq in YKHO.vertices: YKHO.vertices[hQHm].add(jlSq) else: print('ERROR ADDING EDGE: Vrtes not found')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, D70y):\n zZcM = D70y.get_source()\n e1vZ = D70y.get_destination()\n if not (zZcM in YKHO.edges and e1vZ in YKHO.edges):\n raise ValueError('Node not in graph')\n YKHO.edges[zZcM].append(e1vZ)", "def WYRu(YKHO, hQHm, jlSq):\n if hQHm in YKHO.vertices:\n YKHO.vertices[hQ...
[ "0.78169996", "0.77789694", "0.7618847", "0.761851", "0.75694674", "0.7547367", "0.7483565", "0.7437083", "0.74284625", "0.7422367", "0.741715", "0.7337182", "0.73281914", "0.7266331", "0.7227267", "0.7212267", "0.71977764", "0.7194343", "0.71735585", "0.7168542", "0.7152955"...
0.6603108
67
Get all neighbors (edges) of a vertex.
def BTfj(YKHO, oqUi): if oqUi in YKHO.vertices: return YKHO.vertices[oqUi] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3gy(YKHO, SLBp):\n return list(YKHO.neighbor_in_iterator(SLBp))", "def YHRb(YKHO, SLBp):\n return list(YKHO.neighbor_out_iterator(SLBp))", "def qIRx(YKHO, SLBp):\n hlel = []\n if SLBp in YKHO.adjacency_list:\n for _Wdu in YKHO.adjacency_list[SLBp]:\n hlel.append([_Wdu.vertex....
[ "0.8146008", "0.78266084", "0.78112674", "0.7634123", "0.76183206", "0.7559868", "0.7391218", "0.73596346", "0.73310196", "0.729323", "0.729323", "0.729323", "0.729323", "0.729323", "0.729323", "0.7279731", "0.71649474", "0.7128683", "0.7083494", "0.7077735", "0.7033856", "...
0.64611185
51
Apply LSH self attention mechanism from query_input to query_input(itself).
def pOv4(YKHO, qFFt, Mi3O, Y9ns): xDcj = YKHO.sharedQK_dense_layer(qFFt) BWXx = YKHO.value_dense_layer(qFFt) if vPBo.attention_padding_strategy == 'nopadding': Mi3O = None if YKHO.use_full_attention_in_reformer: H5ew = ZylS.math.l2_normalize(xDcj, -1) AiL9 = QjDn(xDcj, H5ew, BWXx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, xDcj, QTBn):\n RGwi = QTBn\n with jj4W.variable_scope(None, 'Location_Sensitive_Attention', [xDcj]):\n g9DI = YKHO.query_layer(xDcj) if YKHO.query_layer else xDcj\n g9DI = ZylS.expand_dims(g9DI, 1)\n Wo_N = ZylS.expand_dims(RGwi, axis=2)\n eHNT = YKHO.location_convo...
[ "0.58477765", "0.57359004", "0.5720317", "0.5710058", "0.56958", "0.5666707", "0.5489388", "0.5483693", "0.5456373", "0.5440928", "0.5440928", "0.54244137", "0.54224354", "0.5406815", "0.53864497", "0.53864497", "0.53783596", "0.5346256", "0.5337981", "0.53090763", "0.5297588...
0.59667206
0
Tests generate_config_data with fake appinfo.
def OhvA(YKHO): YKHO.write_file('test.py', 'test file') GPtr = MFA1.AppInfoFake(runtime='python', entrypoint='run_me_some_python!') LKYV = YKHO.generate_config_data(appinfo=GPtr, deploy=True) YKHO.assert_genfile_exists_with_contents(LKYV, 'Dockerfile', YKHO.DOCKERFILE_PREAMBLE + YKHO.DOCKERFILE_VIRTUALE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zmu8():\n assert not mvm2.create_app().testing\n assert mvm2.create_app({'TESTING': True}).testing", "def zmu8():\n assert not LUif().testing\n assert LUif(LV7V).testing", "def zmu8(P4t4):\n assert P4t4.testing", "def zmu8():\n assert LUif('testing', settings={'TESTING': True, 'SQLALCHE...
[ "0.7212104", "0.7042689", "0.6876461", "0.6793209", "0.66245353", "0.6523642", "0.64819914", "0.63893026", "0.6367065", "0.6350326", "0.6341179", "0.6313558", "0.62555575", "0.62513393", "0.62328833", "0.6174062", "0.61644137", "0.610334", "0.60824406", "0.60783887", "0.60659...
0.6092181
18
Tests generate_config_data with fake appinfo, no entrypoint.
def EYQJ(YKHO): YKHO.write_file('test.py', 'test file') GPtr = MFA1.AppInfoFake(runtime='python') LKYV = YKHO.generate_config_data(appinfo=GPtr, deploy=True) YKHO.assert_genfile_exists_with_contents(LKYV, 'Dockerfile', YKHO.DOCKERFILE_PREAMBLE + YKHO.DOCKERFILE_VIRTUALENV_TEMPLATE.format(python_version=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zmu8():\n assert not LUif().testing\n assert LUif(LV7V).testing", "def zmu8():\n assert not mvm2.create_app().testing\n assert mvm2.create_app({'TESTING': True}).testing", "def P4t4():\n\n def wMcu(suDX):\n wMcu = LUif(suDX)\n FBrF(wMcu.config['DATA_FILENAME'])\n wMcu.ap...
[ "0.7226386", "0.7217688", "0.6839121", "0.68270427", "0.67723745", "0.6763274", "0.67273563", "0.66205436", "0.6474417", "0.6407464", "0.637323", "0.63201576", "0.63003564", "0.6284957", "0.62794596", "0.62646216", "0.6241843", "0.62123877", "0.61663866", "0.61315095", "0.611...
0.6933518
2
Tests generate_config_data with custom=True.
def fNeM(YKHO): YKHO.write_file('test.py', 'test file') LKYV = YKHO.generate_config_data(custom=True) with open(Hy7s.path.join(YKHO.temp_path, 'app.yaml')) as eHNT: nZwa = eHNT.read() YKHO.assertMultiLineEqual(nZwa, TI0e.dedent(' entrypoint: my_entrypoint\n env: fle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mmjy(YKHO):\n qIxc = TMAJ.Mock()\n qIxc.debug = None\n qIxc.generateconfig = True\n qIxc.config = None\n mWyP = \"Sample configuration file written to sample_config.json\\nReplicate the site JSON for each site.\\n Valid values for use_https and local are 'True' and 'False'\\n One site must...
[ "0.68596166", "0.63797575", "0.6337545", "0.6252908", "0.62360054", "0.6152789", "0.60651433", "0.6035876", "0.60146004", "0.59926254", "0.5906614", "0.5899224", "0.58865666", "0.5874942", "0.5869201", "0.5864263", "0.5844385", "0.5816007", "0.57999897", "0.5784814", "0.57831...
0.62890863
3
Test that a LABEL directive is added to the Dockerfile
def h0eB(YKHO): YKHO.write_file('test.py', 'test file') GPtr = MFA1.AppInfoFake(runtime='python', entrypoint='run_me_some_python!', runtime_config=dict(python_version='3')) LKYV = YKHO.generate_config_data(appinfo=GPtr, deploy=True) Mcth = [eHNT for eHNT in LKYV if eHNT.filename == 'Dockerfile'][0] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J3_A(YKHO):\n Crrw = {'apple': 'red', 'grape': 'green'}\n YKHO.docker.images.build(path='test/python/docker/build_labels', labels=Crrw, tag='labels', isolation='default')\n LNo8 = YKHO.docker.images.get('labels')\n YKHO.assertEqual(LNo8.labels['apple'], Crrw['apple'])\n YKHO.assertEqual(LNo8.lab...
[ "0.70627654", "0.6665901", "0.6508662", "0.644795", "0.63541335", "0.621771", "0.6188668", "0.6171969", "0.6104402", "0.5967373", "0.59158397", "0.5783527", "0.57752043", "0.5694908", "0.5687012", "0.5678598", "0.56709045", "0.56602865", "0.56509024", "0.5643603", "0.56104124...
0.7264857
0
Normalize all words in set
def xkzz(YKHO, *qIxc, **B2fa): QoZc = [] for GIN8 in YKHO.words.lower().split('\n'): GIN8 = GIN8.strip() if GIN8 and GIN8 not in QoZc: QoZc.append(GIN8) YKHO.words = '\n'.join(QoZc) return super(i95r, YKHO).save(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(V22M: list, rQow: str='english') -> list:\n V22M = ICve(V22M)\n V22M = yri_(V22M)\n V22M = FGhF(V22M)\n V22M = aUcs(V22M)\n V22M = Gz0x(V22M, rQow)\n return V22M", "def V22M(YKHO):\n WKvO = str(YKHO.text).lower()\n LVAh = WKvO.split()\n LVAh = set([''.join((Z9rn for Z9rn in KC...
[ "0.70125175", "0.68871176", "0.6881254", "0.6879561", "0.68571216", "0.68385845", "0.6798746", "0.67700183", "0.67700183", "0.6688793", "0.66397196", "0.6596825", "0.65860605", "0.6580076", "0.6499905", "0.64709985", "0.64445734", "0.64404315", "0.642643", "0.64150393", "0.64...
0.59423614
72
Gets total time accumulated
def NMoC(YKHO): if YKHO.running: return YKHO.accumulated_time + g74T.time.get_ticks() - YKHO.start_time else: return YKHO.accumulated_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QwIJ(YKHO):\n with YKHO.lock:\n if YKHO.tend == 0:\n wjRY = -1\n else:\n wjRY = YKHO.tend - YKHO.tstart\n return wjRY", "def RGHr(YKHO):\n d1TC = YKHO.clean_obs_times()\n return VEDo.sum(d1TC[:, 1] - d1TC[:, 0])", "def m7L9(YKHO):\n return YKHO._total_time...
[ "0.814135", "0.7808511", "0.7686771", "0.7596265", "0.71909803", "0.7130483", "0.7066036", "0.7063663", "0.7058031", "0.70568067", "0.7046302", "0.7016926", "0.7004792", "0.6951006", "0.69229656", "0.6915076", "0.69141394", "0.6881497", "0.68768615", "0.68675643", "0.68556017...
0.74175745
4
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(rQFt, YKHO).__init__(*qIxc, **c_sp) if YKHO.max_features is None: YKHO.max_features = 0 if YKHO.window_size is None: YKHO.window_size = 0 if YKHO.quality is None: YKHO.quality = 0.0 if Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.7793408", "0.77199197", "0.77199197", "0.76861537", "0.76254076", "0.7563511", "0.7439333", "0.7416987", "0.73505336", "0.73078775", "0.7278874", "0.7236695", "0.7226162", "0.72238374", "0.72238374", "0.7217701", "0.7211448", "0.7211448", "0.7211448", "0.7211448", "0.72114...
0.0
-1
Constructs nested Dict from results of parsetolist.
def jU0Y(dfOq): aCqS = dict() for zFiD in dfOq: if zFiD[0] == 'set_property' and zFiD[3] == 'get_ports': if zFiD[4] not in aCqS: aCqS[zFiD[4]] = dict() aCqS[zFiD[4]][zFiD[1]] = zFiD[2] return aCqS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M5P1(YKHO, m4zE, loN0):\n uyK4 = {}\n uyK4['npar'] = m4zE\n uyK4['parnames'] = list(loN0.keys())\n uyK4['parvals'] = [loN0[G1Hx] for G1Hx in uyK4['parnames']]\n return uyK4", "def qShr(Ylbp):\n Rbeh = {}\n for Mkmy in Ylbp:\n Rbeh.update(Mkmy)\n return Rbeh", "def aCqS(Aofo):...
[ "0.64579207", "0.63446015", "0.6293405", "0.610813", "0.6066359", "0.58820325", "0.5815261", "0.5692215", "0.56725836", "0.56507736", "0.5625941", "0.5618343", "0.5596219", "0.55631423", "0.5561859", "0.5544689", "0.5515759", "0.5481585", "0.5466886", "0.54391456", "0.5432096...
0.6504124
0
Get the ram usage for a host such as a compute_node
def wenD(YKHO, Eorv, pQ4c, Qemi, dbbf=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ljS0(QpfX, KcEq, vEWw, x0h7):\n bUWH = IB0h(QpfX, KcEq)\n scot = len(bUWH)\n Ze_5 = vEWw - vPBo.reserved_host_memory_mb\n _k4Z = x0h7 - vPBo.reserved_host_disk_mb * 1024\n Q5yx = 0\n for KAOR in bUWH:\n Ze_5 -= KAOR.memory_mb\n _k4Z -= KAOR.root_gb\n _k4Z -= KAOR.ephemera...
[ "0.76257074", "0.7584651", "0.7559898", "0.7357826", "0.72865707", "0.72227097", "0.7176473", "0.7059463", "0.69488126", "0.68892616", "0.6887406", "0.68580884", "0.6848776", "0.6846633", "0.6846633", "0.68401146", "0.68392086", "0.681455", "0.681063", "0.6777468", "0.6742927...
0.72498614
5
Get the ram usage for an instance
def o2FX(YKHO, Eorv, pQ4c, Qemi, dbbf=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cize(YKHO):\n return gTEQ('PrlStat_GetUsageRamSize', YKHO.handle)", "def OD_Z(YKHO) -> qe4Y.Output[float]:\n return qe4Y.get(YKHO, 'ram_size')", "def sYCp():\n try:\n from psutil import virtual_memory\n KJSa = virtual_memory().total / 1024.0 ** 3\n except ImportError:\n G9j...
[ "0.7731756", "0.75003433", "0.7447069", "0.73433405", "0.7305697", "0.7255464", "0.7194048", "0.71752506", "0.7155671", "0.7141507", "0.71346235", "0.71286124", "0.7051312", "0.70480275", "0.6997978", "0.6983432", "0.6967813", "0.6937242", "0.69265544", "0.69257313", "0.69175...
0.753702
1
Sets the accounting_integration of this Dashboard.
def JdDL(YKHO, JdDL): YKHO._accounting_integration = JdDL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P53F(YKHO, P53F):\n YKHO._integration_setting = P53F", "def Q9mr(YKHO, Urat):\n YKHO.integration = Urat\n YKHO.nt = swDz.pow2ceil(Urat.size)\n YKHO.nf = YKHO.nt // 2\n JRYC = YKHO.info.instrument.sampling_interval.decompose().value\n YKHO.df = 1.0 / (JRYC * YKHO.nt)\n YKHO.set_channels(U...
[ "0.6932327", "0.6363463", "0.63496065", "0.5533148", "0.55131763", "0.5353951", "0.5131953", "0.5117665", "0.51025534", "0.5095815", "0.50857854", "0.50857854", "0.50857854", "0.50857854", "0.50756323", "0.50613534", "0.50168645", "0.5014883", "0.49406907", "0.49051017", "0.4...
0.8472462
0
Sets the accounting_integration_display_name of this Dashboard.
def rpkp(YKHO, rpkp): YKHO._accounting_integration_display_name = rpkp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HJeF(YKHO, qQNS):\n YKHO._call('set_display_name', display_name=qQNS)", "def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS", "def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS", "def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS", "def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS", "d...
[ "0.7446196", "0.70946866", "0.70946866", "0.70946866", "0.70946866", "0.70946866", "0.70946866", "0.7052709", "0.7052709", "0.7052709", "0.7052709", "0.7052709", "0.7052709", "0.7035668", "0.6486032", "0.62075293", "0.61698234", "0.6022502", "0.5906609", "0.56361794", "0.5596...
0.88748455
0
Sets the id of this Dashboard.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.__id = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def id(YKHO, id: int):\n YKHO._id = id", "def id(YKHO, id: int):\n YKHO._id = id", "def id(YKHO, id: int):\n Y...
[ "0.78034365", "0.7740644", "0.7737124", "0.76245654", "0.7503708", "0.7503708", "0.7503708", "0.7503708", "0.7503708", "0.7503708", "0.7503708", "0.7503708", "0.7503708", "0.7503708", "0.7440295", "0.7422364", "0.741341", "0.741341", "0.741341", "0.73929185", "0.73534936", ...
0.7324366
95
Sets the leave_registrations_approved of this Dashboard.
def BI2l(YKHO, BI2l): YKHO._leave_registrations_approved = BI2l
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P07F(YKHO, P07F):\n YKHO._leave_registrations_pending = P07F", "def TTHJ(YKHO, TTHJ):\n YKHO._reimbursements_approved = TTHJ", "def GMJv(YKHO):\n pEH_ = {}\n if YKHO.date_of_leave and YKHO.date_of_leave < YKHO.date_of_join:\n pEH_.update({'title': bGrB('Information'), 'message': bGrB('Le...
[ "0.6485045", "0.5657109", "0.5262917", "0.5140995", "0.5108446", "0.50992364", "0.4879557", "0.4879061", "0.4807412", "0.47820526", "0.47762007", "0.47605288", "0.4727932", "0.46352533", "0.45924172", "0.4560372", "0.45061448", "0.4503572", "0.44957384", "0.44439617", "0.4419...
0.85315037
0
Sets the leave_registrations_pending of this Dashboard.
def P07F(YKHO, P07F): YKHO._leave_registrations_pending = P07F
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BI2l(YKHO, BI2l):\n YKHO._leave_registrations_approved = BI2l", "def WVqo(YKHO, WVqo):\n YKHO._reimbursements_pending = WVqo", "def i2yA(YKHO, i2yA):\n YKHO._time_registrations_pending = i2yA", "def F3Cz(YKHO, F3Cz):\n YKHO._car_allowances_pending = F3Cz", "def K_hi(YKHO):\n if all((kI0b...
[ "0.76081914", "0.6306207", "0.53243005", "0.5314099", "0.50462234", "0.49146974", "0.47424987", "0.47243202", "0.4696082", "0.46942157", "0.46571726", "0.4615794", "0.46109623", "0.45924336", "0.45706", "0.45567647", "0.453043", "0.45270103", "0.45127395", "0.44771665", "0.44...
0.83982646
0
Sets the name of this Dashboard.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP:...
[ "0.7745642", "0.7745642", "0.7745642", "0.7745642", "0.7745642", "0.769691", "0.7662723", "0.7656584", "0.76374066", "0.76374066", "0.7619559", "0.7617421", "0.7585551", "0.75101525", "0.74979615", "0.747007", "0.73750985", "0.73750985", "0.7373796", "0.7344319", "0.7331432",...
0.0
-1
Sets the pay_rolls of this Dashboard.
def Sl0I(YKHO, Sl0I): YKHO._pay_rolls = Sl0I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mHzO(YKHO, mHzO):\n YKHO._rolls = mHzO", "def Q5qM(YKHO, aHO5):\n YKHO._scrolls = aHO5", "def S8LW(YKHO):\n for XP5J in YKHO.players_names:\n YKHO._rolls_list.append(O06W(XP5J))", "def uEgi(YKHO):\n YKHO._total_rolls += 1", "def fooN(YKHO, fooN):\n YKHO._pay_run_calendar = fooN", ...
[ "0.6883537", "0.5419645", "0.5324921", "0.5208451", "0.51615244", "0.5122487", "0.5066545", "0.5002941", "0.4981307", "0.4897883", "0.48859933", "0.48755318", "0.48749834", "0.48245534", "0.47334263", "0.47259802", "0.47183916", "0.47026637", "0.47000074", "0.4699175", "0.467...
0.83522946
0
Sets the payment_integration of this Dashboard.
def mzHI(YKHO, mzHI): BbPm = ['None', 'NETS'] if YKHO.local_vars_configuration.client_side_validation and mzHI not in BbPm: raise ValueError('Invalid value for `payment_integration` ({0}), must be one of {1}'.format(mzHI, BbPm)) YKHO._payment_integration = mzHI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P53F(YKHO, P53F):\n YKHO._integration_setting = P53F", "def JdDL(YKHO, JdDL):\n YKHO._accounting_integration = JdDL", "def q0JL(YKHO, q0JL):\n YKHO._payment_id = q0JL", "def bUCE(YKHO, bUCE):\n YKHO._payment_type = bUCE", "def iO9T(YKHO, iO9T):\n YKHO._payment_method = iO9T", "def Q9mr...
[ "0.70271194", "0.677083", "0.60514224", "0.5952308", "0.5932854", "0.5795441", "0.5699409", "0.5486885", "0.5486885", "0.53960884", "0.53163755", "0.52384233", "0.51368695", "0.50320596", "0.5015539", "0.4982108", "0.4948977", "0.4941138", "0.4914533", "0.49020204", "0.489219...
0.69764733
1
Sets the reimbursements_pending of this Dashboard.
def WVqo(YKHO, WVqo): YKHO._reimbursements_pending = WVqo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F3Cz(YKHO, F3Cz):\n YKHO._car_allowances_pending = F3Cz", "def TTHJ(YKHO, TTHJ):\n YKHO._reimbursements_approved = TTHJ", "def P07F(YKHO, P07F):\n YKHO._leave_registrations_pending = P07F", "def GBx4(YKHO, GBx4):\n YKHO._pending = GBx4", "def GBx4(YKHO):\n YKHO.update({YKHO.STATE: YKHO.S...
[ "0.656912", "0.64694685", "0.58545125", "0.5605866", "0.5583177", "0.5581322", "0.54735434", "0.52813476", "0.52676255", "0.51309234", "0.51294446", "0.50747275", "0.50516725", "0.50116676", "0.49971324", "0.49892083", "0.48746416", "0.4836489", "0.48196113", "0.4800667", "0....
0.8781077
0
Sets the swipe_pending of this Dashboard.
def o4lf(YKHO, o4lf): YKHO._swipe_pending = o4lf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lPyx(YKHO, lPyx):\n YKHO._swipe_approved = lPyx", "def zxPr(YKHO, zxPr):\n YKHO._swipe_enabled = zxPr", "def GBx4(YKHO, GBx4):\n YKHO._pending = GBx4", "def F3Cz(YKHO, F3Cz):\n YKHO._car_allowances_pending = F3Cz", "def WVqo(YKHO, WVqo):\n YKHO._reimbursements_pending = WVqo", "def GBx...
[ "0.6946486", "0.63023126", "0.54298574", "0.51138353", "0.5106844", "0.50831866", "0.47929892", "0.46352258", "0.46003398", "0.4582557", "0.4561724", "0.45205435", "0.44943097", "0.445714", "0.44468287", "0.44349745", "0.43952593", "0.43509316", "0.43436754", "0.43362805", "0...
0.81723535
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, dKht): return False return YKHO.to_dict() == Elif.to_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): if not isinstance(Elif, dKht): return True return YKHO.to_dict() != Elif.to_dict()
{ "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.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Send a list request.
def list(YKHO, pmON): qv1X = YKHO.session.get(YKHO.url + pmON + '/list', verify=False) aUAl = qv1X.json() if aUAl['status'] != 'ok': raise Exception('Failed to query list: \n' + qv1X.text) return aUAl['data']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hSfH(YKHO):\n YKHO.POST_list()\n list = YKHO.GET_data('/api/list/' + YKHO.list_id)\n YKHO.POST_data('/api/list/' + YKHO.list_id + '/send', data=list)", "def qnba(YKHO, **B2fa):\n return YKHO._make_request(**B2fa)", "def x1iM(YKHO, QePW, jMd6=None):\n GPtr = YKHO.GetMethodConfig('List')\n ...
[ "0.7577054", "0.7303563", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", "0.70674", ...
0.0
-1
A string that describes the message.
def Ol8d(YKHO) -> str: return YKHO['Sns']['Message']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ol8d(YKHO) -> str:\n return YKHO.fields.get('msg', YKHO.raw_string)", "def Ol8d(YKHO) -> str:\n return YKHO.__message", "def Ol8d(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('message'))", "def Ol8d(YKHO) -> str:\n return qe4Y.get(YKHO, 'message')", "def Ol8d(YKHO) -> str:\n ...
[ "0.8171995", "0.80336803", "0.7873994", "0.78264594", "0.78264594", "0.78264594", "0.78264594", "0.78264594", "0.77336925", "0.7705845", "0.7672844", "0.7672844", "0.76694614", "0.76694614", "0.7648564", "0.76337725", "0.76215994", "0.7565829", "0.75310814", "0.7528613", "0.7...
0.7133522
43
The Amazon Resource Name (ARN) for the topic that this endpoint is subscribed to.
def nDi7(YKHO) -> str: return YKHO['Sns']['TopicArn']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nDi7(YKHO) -> str:\n return qe4Y.get(YKHO, 'topic_arn')", "def zbnq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'sns_topic_arn')", "def zbnq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sns_topic_arn')", "def zbnq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO...
[ "0.79663926", "0.7922786", "0.78171855", "0.78171855", "0.7683459", "0.7343698", "0.71429986", "0.7059559", "0.6987502", "0.6970178", "0.69018626", "0.68651736", "0.6732541", "0.6685686", "0.6626173", "0.6583653", "0.65645957", "0.6510756", "0.64786243", "0.63532364", "0.6337...
0.8189848
0
The Subject parameter specified when the notification was published to the topic.
def U4ZT(YKHO) -> str: return YKHO['Sns']['Subject']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LZJ7(YKHO):\n return YKHO.msg['Subject']", "def U4ZT(YKHO):\n return YKHO.properties.get('subject', None)", "def U4ZT(YKHO):\n return YKHO.get('subject')", "def U4ZT(YKHO):\n if 'subject' in YKHO._prop_dict:\n return YKHO._prop_dict['subject']\n else:\n return None", "def U...
[ "0.7240037", "0.7037682", "0.69523156", "0.6946377", "0.6627567", "0.6622257", "0.6622257", "0.6584345", "0.65593636", "0.6491799", "0.64916843", "0.6481687", "0.64591897", "0.6446058", "0.64327526", "0.6418687", "0.6406904", "0.6406904", "0.63387203", "0.63211167", "0.628976...
0.70855045
1
Get Class name. Get the name of the class. Lots of output Classes inherit from Output, so this varies depending on which one we're looking at.
def ZUM3(YKHO): return YKHO.__class__.__name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Um9M(YKHO):\n CtJU = YKHO.__class__.__name__\n return str(CtJU)", "def pnQ7(YKHO):\n exwG = type(YKHO).__name__\n return exwG", "def uSWv(Emd4):\n return Emd4.__name__", "def vrep(YKHO):\n return YKHO.__class__.__name__", "def mWFP(YKHO) -> str:\n return YKHO.class_names[YKHO.class...
[ "0.7939938", "0.7907919", "0.7862953", "0.7792295", "0.77751034", "0.768386", "0.7571485", "0.75675476", "0.7466607", "0.73774916", "0.73774916", "0.7193898", "0.7111963", "0.70230263", "0.6950269", "0.6938829", "0.69382256", "0.6923738", "0.68519294", "0.6817817", "0.6813531...
0.70055646
14
>>> combination_sum([2, 3, 5], 8) [[2, 2, 2, 2], [2, 3, 3], [3, 5]] >>> combination_sum([2, 3, 6, 7], 7) [[2, 2, 3], [7]] >>> combination_sum([8, 2.3, 0], 1)
def JXGQ(kbGe: list, pan_: int) -> list: pmON = [] ANfV = [] eBQy(kbGe, pmON, ANfV, pan_, 0) return ANfV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWR3(*CpJN: typing.Tuple[int, ...]):\n return sum(CpJN)", "def mWR3(*CpJN: Required[typing.Tuple[int, ...]]):\n return sum(CpJN)", "def qagb(YKHO, kbGe, pan_):\n if not kbGe:\n return []\n kbGe = sorted(kbGe)\n Z9rn, eHNT = ([kbGe[0]], [1])\n for YRbF in Ni9Y(1, len(kbGe)):\n ...
[ "0.6623807", "0.6619953", "0.6406325", "0.64034677", "0.6338193", "0.6306873", "0.619892", "0.6122698", "0.6115969", "0.604374", "0.6030539", "0.59624815", "0.59097105", "0.58615535", "0.584495", "0.57819194", "0.5761072", "0.57548493", "0.575451", "0.5753943", "0.57172334", ...
0.6971807
0
Learning Rate Schedule Learning rate is scheduled to be reduced after 80, 120, 160, 180 epochs. Called automatically every epoch as part of callbacks during training. Arguments
def ZT_s(qtWj): tspZ = 0.001 if qtWj > 180: tspZ *= 0.0005 elif qtWj > 160: tspZ *= 0.001 elif qtWj > 120: tspZ *= 0.01 elif qtWj > 80: tspZ *= 0.1 print('Learning rate: ', tspZ) return tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vHc8(__n6):\n C3ST, y0cW = tcIP(non_negative=True)\n print('Baseline RNN')\n G3Ta(__n6, C3ST)\n print('RNN with decay')\n C3ST.set_params(**{y0cW + 'lr_decay': 'DecreasingLearningRateScheduler'})\n G3Ta(__n6, C3ST)", "def ZT_s(qtWj):\n tspZ = 0.001\n if qtWj > 180:\n tspZ *= 0....
[ "0.75226367", "0.74970424", "0.74850416", "0.7480781", "0.7407709", "0.7364352", "0.735358", "0.73470426", "0.73345935", "0.72661406", "0.72635627", "0.7226901", "0.72229683", "0.7196325", "0.7190341", "0.7099111", "0.7086345", "0.70776033", "0.7045473", "0.7024917", "0.70204...
0.7468542
6
ResNet Version 2 Model builder [b] Stacks of (1 x 1)(3 x 3)(1 x 1) BNReLUConv2D or also known as bottleneck layer First shortcut connection per layer is 1 x 1 Conv2D. Second and onwards shortcut connection is identity. At the beginning of each stage, the feature map size is halved (downsampled) by a convolutional layer...
def MIwg(GhuM, rb7a, jTqs=2): if (rb7a - 2) % 9 != 0: raise ValueError('depth should be 9n+2 (eg 56 or 110 in [b])') tE7z = 16 vlJR = int((rb7a - 2) / 9) g4y1 = X6a0(shape=GhuM) WKvO = zUti(inputs=g4y1, num_filters=tE7z, conv_first=True) for EtM5 in range(3): for DFIV in range(vl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MIwg(GhuM, rb7a, jTqs=10):\n if (rb7a - 2) % 9 != 0:\n raise ValueError('depth should be 9n+2 (eg 56 or 110 in [b])')\n g4y1 = X6a0(shape=GhuM)\n tE7z = 16\n huv4 = 64\n lur5 = 4\n OTS8 = int((rb7a - 2) / 9)\n WKvO = yHwh(tE7z, kernel_size=3, padding='same', kernel_initializer='he_n...
[ "0.69078916", "0.6848643", "0.6820924", "0.6782567", "0.6703485", "0.65902585", "0.6564222", "0.65625113", "0.6559187", "0.6498651", "0.6480996", "0.64685804", "0.6417236", "0.6404073", "0.6394508", "0.63656634", "0.63597244", "0.6347631", "0.63265795", "0.63223416", "0.63167...
0.65819204
6
Returns the drag acceleration for a given state.
def M5FH(KCHu): Mkmy = oyIN.linalg.norm(KCHu[0:3]) UaJP = FxX7 * oyIN.array([-KCHu[1], KCHu[0], 0]) fKzI = KCHu[3:6] - UaJP H0q3 = dUib * (1 - (KGJO * KCHu[2] / Mkmy) ** 2) MKlR = Mkmy - H0q3 XP5J = 0.6 * oyIN.exp(-(MKlR - 175) * (29.4 - 0.012 * MKlR) / 915) lk9W = 3.36131e-09 YAq3 = -XP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sgTf(YKHO):\n return YKHO.__accel", "def UgEb(YKHO):\n return YKHO.acceleration", "def S4Bk(QTBn):\n if a1PO < knl1:\n QTBn.D_g[a1PO] = 0.5\n QTBn.D_n[a1PO] = 0.5\n else:\n if VlDb == 'constant':\n QTBn.D_g[a1PO] = lWPh\n QTBn.D_n[a1PO] = 1 - lWPh\n ...
[ "0.6369209", "0.612541", "0.58314234", "0.5680976", "0.56517446", "0.5616175", "0.5608247", "0.5594059", "0.54494685", "0.54416424", "0.5423469", "0.5396429", "0.5393855", "0.53883487", "0.53797674", "0.5353152", "0.53521484", "0.53112257", "0.52840275", "0.5254928", "0.52526...
0.5092278
34
The distribution of G for the local metallicity distribution REWRITE TO TAKE A Z(G) FUNCTION OBTAINED THROUGH INTERPOLATION
def C7Wd(X3aJ, ha58): try: anTH = ha58(X3aJ) YzYq = XTiz.fabs(ha58.derivatives(X3aJ)[0] / anTH / XTiz.log(10.0)) except ValueError: return 0.0 return Tw8u(erqN.Z2FEH(anTH, zsolar=0.017)) * YzYq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kO01(Oa1e, RrDy):\n return Oa1e - 0.1154 - 0.4175 * RrDy - 0.0497 * RrDy ** 2.0 + 0.0016 * RrDy ** 3.0", "def Oa1e(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))", "def Oa1e(QnmL, epBp):\n return kVU1(QnmL) - (3.085462 * 0.0001 + 2.27 * 1e-07 * oyIN.cos(2 * QnmL * oyIN.pi / 180.0)) * epBp + (7.254 ...
[ "0.67598766", "0.66744137", "0.66394216", "0.6628547", "0.65888226", "0.6343817", "0.63087803", "0.61585313", "0.609664", "0.60840666", "0.6068639", "0.6043819", "0.60178494", "0.5976935", "0.59437007", "0.5929409", "0.5899823", "0.58678865", "0.5862445", "0.58614236", "0.586...
0.54775673
89
Displays image and the topn predicted probabilities in a bar graph
def JBo6(U9Z2, aTLP): kPK6 = oyIN.argmax(aTLP) thWf = KndY[kPK6] JxU2 = oyIN.max(aTLP) XC5k.putText(U9Z2, 'AI guess it`s a {}'.format(thWf), (10, 30), XC5k.FONT_HERSHEY_SIMPLEX, 0.8, (0, 0, 255), 2) XC5k.putText(U9Z2, 'probality is {:.2f}%'.format(JxU2 * 100), (10, 70), XC5k.FONT_HERSHEY_SIMPLEX, 0....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBo6(LNo8, aTLP):\n QrM1.imshow(LNo8)\n QrM1.axis('off')\n QrM1.figure()\n T4Wy = list(reversed(range(len(aTLP))))\n E_uF = [zTi3[2] for zTi3 in aTLP]\n Crrw = (zTi3[1] for zTi3 in aTLP)\n QrM1.barh(T4Wy, E_uF, alpha=0.5)\n QrM1.yticks(T4Wy, Crrw)\n QrM1.xlabel('Probability')\n Qr...
[ "0.7922684", "0.77978665", "0.7721485", "0.769006", "0.7603528", "0.71370405", "0.70984143", "0.7009505", "0.68326867", "0.6766593", "0.6606671", "0.6594294", "0.6510035", "0.64082754", "0.63103276", "0.63035893", "0.62614477", "0.6234734", "0.6204136", "0.62028116", "0.61882...
0.76070917
4
W = DEBUGINITIALIZEWEIGHTS(len_out, len_in) initializes the weights of a layer with len_in incoming connections and len_out outgoing connections using a fix set of values.
def p93w(LBJa, RfBG): XcU5 = oyIN.zeros((LBJa, RfBG + 1)) Z9rn, Mkmy = XcU5.shape XcU5 = oyIN.reshape(oyIN.sin(range(1, XcU5.size + 1)), (Mkmy, Z9rn)).T / 10 return XcU5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO, o5wK: bool, Ot1W: int, oug5: bool) -> None:\n if o5wK:\n U78l.init.normal_(YKHO.conv1d.weight, std=0.001)\n U78l.init.normal_(YKHO.conv1d.bias, std=1e-06)\n with ht2j.no_grad():\n YKHO.conv1d.weight[:, 0, :] += 1.0 / Ot1W\n else:\n U78l.init.xavier_unifor...
[ "0.6643203", "0.6586218", "0.6586218", "0.65376747", "0.65376747", "0.65376747", "0.65139925", "0.6484172", "0.64773816", "0.6385904", "0.63799757", "0.63657266", "0.6363207", "0.6351127", "0.6272765", "0.6259417", "0.6229838", "0.61706126", "0.61596566", "0.61596566", "0.614...
0.76383674
0
Returns the accuracy by comparing the convoluted output Y_hat with the labels of the samples Y
def HSpE(ly9N, fuBA): gXXc = ZylS.equal(ZylS.argmax(ly9N, 1), ZylS.argmax(fuBA, 1)) vjyh = ZylS.reduce_mean(ZylS.cast(gXXc, ZylS.float32)) return vjyh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(LVAh, uN02):\n return oyIN.mean(oyIN.argmax(LVAh, axis=1) == oyIN.argmax(uN02, axis=1))", "def vjyh(uN02, LVAh):\n if len(uN02.shape) > 1 and uN02.shape[1] > 1:\n uN02 = tiDt.argmax(uN02, axis=1)\n eHkp = tiDt.astype(uN02, LVAh.dtype) == LVAh\n return float(tiDt.reduce_sum(tiDt.astype...
[ "0.8038202", "0.7960575", "0.7910892", "0.7892635", "0.78904176", "0.78331524", "0.75878394", "0.7523929", "0.74796814", "0.74724466", "0.7439126", "0.7439126", "0.743513", "0.74210894", "0.74191064", "0.73886716", "0.73880243", "0.7386731", "0.7296804", "0.7294372", "0.72862...
0.7220775
23
Creates a list of random mini_batches from (X, Y)
def L6R2(EcVT, fuBA, XY1r, yokr): oyIN.random.seed(yokr) r8hN = EcVT.shape[0] TFPw = fuBA.shape[1] DvZU = [] cZDQ = list(oyIN.random.permutation(r8hN)) tmaw = EcVT[cZDQ, :] dWtI = fuBA[cZDQ, :] RLzJ = epAf.floor(r8hN / XY1r) for G1Hx in range(RLzJ): vQU7 = tmaw[G1Hx * XY1r:(G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nYV1(EcVT, fuBA, XY1r=64):\n r8hN = EcVT.shape[1]\n DvZU = []\n cZDQ = list(oyIN.random.permutation(r8hN))\n tmaw = EcVT[:, cZDQ]\n dWtI = fuBA[:, cZDQ].reshape((1, r8hN))\n Iu5T = int(epAf.floor(r8hN / XY1r))\n for G1Hx in Ni9Y(Iu5T):\n vQU7 = tmaw[:, G1Hx * XY1r:(G1Hx + 1) * XY1r]...
[ "0.81358165", "0.79854906", "0.79664856", "0.7933697", "0.79207736", "0.78797495", "0.7855775", "0.78445286", "0.77804965", "0.7778024", "0.7731136", "0.7714424", "0.73346597", "0.7299638", "0.724078", "0.7154381", "0.707257", "0.704754", "0.7042443", "0.699032", "0.69870824"...
0.75990486
12
Creates a list of random mini_batches from (X, Y)
def s7nD(EcVT, XY1r, yokr): oyIN.random.seed(yokr) r8hN = EcVT.shape[0] DvZU = [] cZDQ = list(oyIN.random.permutation(r8hN)) tmaw = EcVT[cZDQ, :] RLzJ = epAf.floor(r8hN / XY1r) for G1Hx in range(RLzJ): vQU7 = tmaw[G1Hx * XY1r:(G1Hx + 1) * XY1r, :] DvZU.append(vQU7) if r8h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nYV1(EcVT, fuBA, XY1r=64):\n r8hN = EcVT.shape[1]\n DvZU = []\n cZDQ = list(oyIN.random.permutation(r8hN))\n tmaw = EcVT[:, cZDQ]\n dWtI = fuBA[:, cZDQ].reshape((1, r8hN))\n Iu5T = int(epAf.floor(r8hN / XY1r))\n for G1Hx in Ni9Y(Iu5T):\n vQU7 = tmaw[:, G1Hx * XY1r:(G1Hx + 1) * XY1r]...
[ "0.81358165", "0.79854906", "0.79664856", "0.7933697", "0.79207736", "0.78797495", "0.7855775", "0.78445286", "0.77804965", "0.7778024", "0.7731136", "0.7714424", "0.75990486", "0.73346597", "0.7299638", "0.724078", "0.7154381", "0.707257", "0.704754", "0.699032", "0.69870824...
0.7042443
19
Get the Euclidean distance between.
def D9zQ(YKHO, UEmg, mW6s, F6Rd): kaQo = [-1] * F6Rd Cvoy = [{}] * F6Rd MMD2 = oyIN.array(mW6s) if not UEmg == []: for hgjH in Ni9Y(len(UEmg)): Q9g3 = len([WKvO for WKvO in kaQo if WKvO > -1]) if Q9g3 < F6Rd: kaQo[Q9g3] = hgjH Cvoy[Q9g3] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XAki(YKHO, jzdc, Fg_i):\n return PZyS(YKHO.EuclideanDistanceSq(jzdc, Fg_i))", "def usGr(jzdc, Fg_i):\n return oyIN.linalg.norm(jzdc - Fg_i)", "def sOE8(EBgd, HpuQ):\n return EBgd.distance(HpuQ)", "def usGr(o4D3, ajwV):\n return oyIN.sqrt(oyIN.sum(oyIN.square(oyIN.subtract(o4D3, ajwV))))", "...
[ "0.8070952", "0.7858878", "0.776366", "0.770001", "0.7698463", "0.76914376", "0.7685737", "0.7657802", "0.76443005", "0.76393646", "0.7601919", "0.758639", "0.758307", "0.75621355", "0.75569993", "0.7520769", "0.75163406", "0.74986315", "0.7488579", "0.7464511", "0.7454852", ...
0.0
-1
Find the boundary of the iris using the maximum gradient magnitude along the normals.
def _BUa(YKHO, YXbZ, C3ap, EBgd, HpuQ): SWqj = (0, 0) LTIa = ZhLZ(EBgd, HpuQ) try: AVsR = YXbZ[LTIa[:, 1], LTIa[:, 0]] anng = C3ap[LTIa[:, 1], LTIa[:, 0]] except: return SWqj Hqoa = -1 cXbl = oyIN.arctan((EBgd[0] - HpuQ[0]) / (EBgd[1] - HpuQ[1])) * 180.0 / oyIN.pi for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wTln() -> float:\n return 1.0", "def qPhD(YKHO):\n Bx88 = JNix\n RrHW = JNix\n if YKHO.filter == YKHO.FilterU:\n Bx88 = 7.94\n RrHW = 14.8\n elif YKHO.filter == YKHO.FilterG:\n Bx88 = 9.74\n RrHW = 16.17\n elif YKHO.filter == YKHO.FilterR:\n Bx88 = 9.56\n ...
[ "0.65031", "0.6011367", "0.59395814", "0.59288514", "0.5852088", "0.5780962", "0.56799847", "0.56446815", "0.56105894", "0.55805326", "0.5541225", "0.54976517", "0.54880565", "0.547522", "0.5473659", "0.53840685", "0.53713864", "0.5362857", "0.53543586", "0.5351599", "0.53121...
0.6428733
1
Drawing an ellipse around a detected blob.
def OkvA(YKHO, LNo8, PHzW, qfpW): XC5k.ellipse(LNo8, PHzW, qfpW, 2) LTIa = XC5k.boxPoints(PHzW) for YRbF in range(4): XC5k.line(LNo8, tuple(oyIN.array(LTIa[YRbF], oyIN.int32)), tuple(oyIN.array(LTIa[(YRbF + 1) % 4], oyIN.int32)), qfpW, 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VQyQ(VXjJ, hgjH, MPlV, YylR, Y0xQ=0, Suvq=360, qfpW=(0, 0, 255), LGJQ=-1):\n XC5k.ellipse(VXjJ, hgjH, MPlV, YylR, Y0xQ, Suvq, qfpW, LGJQ)", "def PXEh(YKHO):\n eHNT = YKHO.img\n WKvO = YKHO.x\n LVAh = YKHO.y\n ajwV = YKHO.x2\n skBL = YKHO.y2\n M_DK = YKHO.xy\n YKHO.a2 = ajwV + skBL + P...
[ "0.7576024", "0.74712306", "0.70329064", "0.6938057", "0.6912798", "0.683019", "0.6815984", "0.6768314", "0.6765661", "0.6706767", "0.666281", "0.6650551", "0.6620539", "0.66150665", "0.658102", "0.6555202", "0.6439544", "0.6393419", "0.63870317", "0.63784164", "0.6324931", ...
0.734845
2
The personal directory for settings storage. The settings location in the "home" directory for a user.
def ffwb(): if a9EH == 'windows': return Hy7s.path.join(Hy7s.environ['APPDATA'], 'automaton') else: return Hy7s.path.expanduser('~/.automaton/')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fdFY(xAU6):\n return '/root/.spinnaker'", "def QbVt(DOs2='pyQode'):\n kZiy = Hy7s.path.expanduser('~')\n if HwRy.platform == 'win32':\n SXRB = Hy7s.path.join(kZiy, DOs2)\n else:\n SXRB = Hy7s.path.join(kZiy, '.%s' % DOs2)\n if not Hy7s.path.exists(SXRB):\n Hy7s.mkdir(SXRB)...
[ "0.74594015", "0.7110981", "0.7075922", "0.7030838", "0.7029829", "0.6944032", "0.6924451", "0.6769799", "0.67460066", "0.6745339", "0.67053866", "0.67027885", "0.66847414", "0.6680716", "0.6651077", "0.6651077", "0.6625991", "0.6607157", "0.66036344", "0.6592801", "0.6570562...
0.74226433
1
The system directory for settings storage. Usually the default "/etc" directory.
def GsJW(): if a9EH == 'windows': return Hy7s.path.join(Hy7s.environ['ProgramFiles'], 'automaton') else: return '/etc/automaton/'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def os8h(YKHO):\n return sBxR.SPD_CONF_PATH", "def JgO7() -> str:\n if 'APPDATA' in Hy7s.environ:\n return Hy7s.environ['APPDATA']\n elif 'XDG_CONFIG_HOME' in Hy7s.environ:\n return Hy7s.environ['XDG_CONFIG_HOME']\n else:\n return Hy7s.path.join(Hy7s.environ['HOME'], '.config')",...
[ "0.7818157", "0.7521425", "0.7295348", "0.72870976", "0.7213437", "0.71715385", "0.70603204", "0.7051791", "0.6976202", "0.6920504", "0.6912682", "0.6906799", "0.69030756", "0.6893031", "0.68912697", "0.6889702", "0.6877458", "0.686358", "0.68574965", "0.685216", "0.6844898",...
0.73004836
2
Calculate the differential DC of given data.
def d_7s(YKHO): YKHO._diff_dc = tuple(ftQO(YKHO.data[:, 0, 0]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bc4p(epBp, MKlR=0.7, fp5t=0.7, lSrm=0.3, _XDy=0.0):\n return F9Kk(epBp, MKlR, fp5t, lSrm, _XDy)['dc']", "def Gs82(jzdc):\n IHC3 = 2\n jzdc = oyIN.concatenate((jzdc[IHC3 - 1::-1], jzdc, jzdc[:-(IHC3 + 1):-1]))\n Tuqy = 'same'\n Tuqy = 'valid'\n nMvt = oyIN.array([-0.5, 0, 0.5])\n SG6Y = _...
[ "0.66554075", "0.6413482", "0.62937135", "0.6247065", "0.6224965", "0.6184318", "0.6118709", "0.6088045", "0.603042", "0.6029362", "0.60263354", "0.6020339", "0.6007879", "0.6006958", "0.5994477", "0.5975029", "0.5964744", "0.5947611", "0.5928041", "0.5921935", "0.59042406", ...
0.65671873
1
!TXT! Return the contents of the specified Preset file.
def ZVz9(YKHO, Ux0P): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AiyY():\n pmON = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'nadamw_opt_list.txt')\n return open(pmON).read()", "def Nwr9():\n Kzmx = open('login_details.txt', 'r')\n kGys = Kzmx.readlines()\n Kzmx.close()\n return kGys", "def QaEZ(YKHO, HWF3):\n Fb5b = open(HWF3, 'r').read()\n return ...
[ "0.553227", "0.5472507", "0.5359541", "0.53111434", "0.528159", "0.5275397", "0.52370745", "0.5173308", "0.5153723", "0.5140939", "0.51224416", "0.5080991", "0.50709033", "0.5057462", "0.5057462", "0.5006382", "0.5003277", "0.49992427", "0.498844", "0.49837115", "0.4958559", ...
0.5052578
15
!TXT! Return tuples of filename, metadata of Presets files.
def S8Ah(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZY7F(YKHO, Ux0P):\n raise NotImplementedError", "def C1Yt():\n with open(pYsW, 'r') as wCaX:\n kSgn = wCaX.read()\n with open(PhtI, 'r') as wCaX:\n Crrw = wCaX.read()\n return (kSgn, Crrw)", "def ViVG(YKHO):\n iXcw = {}\n Qm01 = {}\n H5ew = []\n d6pt = 0\n for tk5Y,...
[ "0.693726", "0.5923202", "0.5914771", "0.5845786", "0.58441585", "0.58344805", "0.5825557", "0.5815137", "0.573884", "0.5734459", "0.57249343", "0.5702774", "0.5702683", "0.5691204", "0.56708646", "0.56609833", "0.56391597", "0.5625635", "0.56070983", "0.5585533", "0.55531454...
0.0
-1