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
Produce True if all the squares in board are valid
def oCju(cuUy): for Xzsc in E4Wa: PwWw = [] for mLGw in xYvp: if cuUy[Xzsc[mLGw]] == ' ': continue elif cuUy[Xzsc[mLGw]] not in PwWw: PwWw += [cuUy[Xzsc[mLGw]]] else: return False else: continue ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfdN(YKHO):\n for rdlD in YKHO.grid:\n for YRbF in range(1, 10):\n if rdlD.count(YRbF) != 1:\n return False\n for fvDH in range(9):\n yv6U = [rdlD[fvDH] for rdlD in YKHO.grid]\n for YRbF in range(1, 10):\n if yv6U.count(YRbF) != 1:\n ...
[ "0.784431", "0.7843698", "0.7840197", "0.7829184", "0.77732754", "0.7739814", "0.77205694", "0.7581749", "0.75570667", "0.7472685", "0.74633", "0.7420677", "0.7337626", "0.7317925", "0.7314828", "0.73018175", "0.729953", "0.7294191", "0.72923684", "0.72762465", "0.7269901", ...
0.0
-1
Renders the home page.
def kZiy(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'app/index.html', {'title': 'Aplicacion para transpasar datos del sensor FreeStyle Libre de MongoDB a MySql', 'year': qcWV.now().year})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZ...
[ "0.85574406", "0.853399", "0.8351404", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.827363", "...
0.0
-1
Renders the about page.
def vsuQ(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'app/about.html', {'title': 'About', 'message': 'Your application description page.', 'year': qcWV.now().year})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85650355", "0.85034525", "0.84489655", "0.84044397", "0.8394454", "0.82935613", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82680845",...
0.7612688
74
Renders the about page.
def DQZI(QePW): assert isinstance(QePW, eu5F) x0hE = DpgL.MongoClient('mongodb://localhost:27017') NCls = x0hE['Prueba'] xUwc = NCls['entries'] for WKvO in xUwc.find(): print(WKvO) return _1tc(QePW, 'app/ConexionMongoDB.html', {'title': 'Conexion y lectura Django a MongoDB', 'message': '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85650355", "0.85034525", "0.84489655", "0.84044397", "0.8394454", "0.82935613", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82680845",...
0.0
-1
Renders the about page.
def Fs1q(QePW): assert isinstance(QePW, eu5F) NCls = KUr9.connector.connect(user='root', db='pruebatesis', passwd='admin', host='localhost') wxqk = NCls.cursor() wxqk.execute('SELECT * FROM sensorFreeStyle') for WKvO in wxqk: print(WKvO) NCls.close() return _1tc(QePW, 'app/ConexionMy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85650355", "0.85034525", "0.84489655", "0.84044397", "0.8394454", "0.82935613", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82709616", "0.82680845",...
0.0
-1
Renders the about page.
def c5ey(QePW): assert isinstance(QePW, eu5F) x0hE = DpgL.MongoClient('mongodb://localhost:27017') tZxe = x0hE['Prueba'] xUwc = tZxe['entries'] eKbg = [] for zpKS in xUwc.find(): zpKS.pop('_id') zpKS['date'] = int(zpKS['date']) n_SH = zpKS.values() Q2r3 = tuple(n_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85647076", "0.8502948", "0.8448504", "0.840492", "0.83937883", "0.8293176", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82675153", "...
0.0
-1
run the inference to segment the given 'sentence' represented by the one_hot vector by time
def QLmL(cb_Q, wM8l, PwS0, vDGs): wspz = oyIN.zeros((wM8l['num_layers'], 2, 1, wM8l['lstm_size'])) QUSx = {PwS0['inputs']: vDGs, PwS0['init_state']: wspz} BFeB = cb_Q.run([PwS0['probs']], feed_dict=QUSx) return oyIN.squeeze(BFeB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w2qh(cb_Q, K9Fg, wM8l, PwS0, yAmx):\n gLiZ = list(yAmx.strip())\n Zr1u = K9Fg.chars2cids(gLiZ)\n WRtt = oyIN.eye(wM8l['input_classes'])\n KLLm = WRtt[Zr1u]\n vDGs = oyIN.expand_dims(KLLm, 1)\n BFeB = QLmL(cb_Q, wM8l, PwS0, vDGs)\n Crrw = dqpx(BFeB)\n V22M = K9Fg.chars2words(gLiZ, Crrw)\...
[ "0.6521087", "0.5847386", "0.5743348", "0.56052655", "0.55592453", "0.55573297", "0.55425054", "0.5487733", "0.54837143", "0.5477239", "0.54739034", "0.54292125", "0.5428611", "0.5395592", "0.5375556", "0.53449756", "0.53403956", "0.5335282", "0.53305554", "0.5326771", "0.532...
0.65943044
0
Remove the escaping double quote in database/schema/table name.
def YunV(vIwR, fJTy=True): if vIwR is None: return vIwR vIwR = vIwR.replace('""', '"') if fJTy: vIwR = '"' + vIwR + '"' return vIwR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yUXE(YKHO, QF7s: str, tyNF: str) -> str:\n return tyNF", "def _nWV(YKHO, xDcj, GTA_):\n SvxE = GTA_.replace(':', '')\n xDcj = xDcj.replace(GTA_, SvxE)\n return xDcj", "def cbER(YKHO, uPxI, tyNF):\n return '\"{}\".\"{}\"'.format(uPxI, tyNF)", "def _nWV(GTA_):\n cW4z = GTA_.translate(GTA_...
[ "0.6746013", "0.6571479", "0.64551353", "0.63946885", "0.63256586", "0.6258923", "0.6225575", "0.61999094", "0.6144464", "0.60889405", "0.58507246", "0.5821105", "0.5799137", "0.5792837", "0.57828605", "0.5736763", "0.57299495", "0.56950504", "0.56733775", "0.5630779", "0.558...
0.6187336
8
Computes a gradient clipping coefficient based on gradient norm.
def MaHD(C3ST, AxoL): wxBC = 0 for XP5J in C3ST.parameters(): if XP5J.requires_grad: gMJ6 = XP5J.grad.data.norm() wxBC += gMJ6 ** 2 wxBC = ht2j.sqrt(wxBC).item() CkYf = AxoL / max(wxBC, AxoL) for XP5J in C3ST.parameters(): if XP5J.requires_grad: XP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MaHD(SGPK, vJPk):\n wxBC = 0\n for XP5J in SGPK:\n gMJ6 = XP5J.grad.data.norm()\n wxBC += gMJ6 ** 2\n wxBC = epAf.sqrt(wxBC)\n return min(1, vJPk / (wxBC + 1e-06))", "def MaHD(C3ST, AxoL):\n wxBC = 0\n for XP5J in C3ST.parameters():\n if XP5J.requires_grad:\n ...
[ "0.8191716", "0.78346074", "0.78174865", "0.7811237", "0.69404197", "0.69353336", "0.6884082", "0.67259157", "0.6652198", "0.65632784", "0.6527539", "0.6527539", "0.6527539", "0.6527539", "0.6527539", "0.65248495", "0.6473864", "0.64583087", "0.6435212", "0.6383344", "0.63408...
0.7682328
4
Sets the learning rate to the initial LR decayed by 0.5 every 20 epochs
def e_63(K0do, WMj5=0.1): for Lwm5 in K0do.param_groups: Lwm5['lr'] = WMj5 * Lwm5['lr']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW", "def e_63(ma4o, K0do, qtWj, lBIP):\n tspZ = ma4o * 0.1 ** (qtWj // lBIP)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] ...
[ "0.7835607", "0.7812632", "0.77776325", "0.77257156", "0.7719971", "0.7695487", "0.7695487", "0.7686043", "0.7679609", "0.767844", "0.7677539", "0.7666965", "0.76379675", "0.7630909", "0.7624285", "0.7616628", "0.7608715", "0.760059", "0.75950325", "0.75872266", "0.75723183",...
0.0
-1
Vertical position of aircraft MAC
def ttyG(YKHO): return 0.77
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zojy(YKHO):\n return YKHO.position.y + YKHO.size.y + YKHO.bulk", "def cZCl(YKHO):\n return 5.47", "def C_q_(YKHO):\n Th55 = -1 * (YKHO.get_x_position() - YKHO.get_origin_x_position()) * YhSR(YKHO.get_origin_direction() * mM0K / 180)\n lUHp = (YKHO.get_y_position() - YKHO.get_origin_y_position()...
[ "0.58976644", "0.5884633", "0.5863856", "0.58634156", "0.57961035", "0.57663465", "0.57097375", "0.56721014", "0.5638988", "0.5638735", "0.5616592", "0.56152296", "0.5573647", "0.55366784", "0.5515802", "0.5489761", "0.54855865", "0.54807484", "0.54647785", "0.5455101", "0.54...
0.0
-1
Gravity center position of aircraft minus tail
def P1Hs(YKHO): k0lF = YKHO.clAlphaT / YKHO.clAlphaWF tjUW = 1 - YKHO.downwashGradW Nq1b = YKHO.surfaceT * YKHO.tlH / (YKHO.surfaceW * YKHO.cMACW) vg0C = 0.05 * YKHO.cMACW return YKHO.ac + k0lF * tjUW * Nq1b * YKHO.speedRatio ** 2 - vg0C
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sOQD(YKHO):\n _mSQ = [YKHO.stabilizer_h.weight, YKHO.stabilizer_vright.weight, YKHO.stabilizer_vleft.weight]\n hEBN = [YKHO.stabilizer_h.center_of_gravity, YKHO.stabilizer_vright.center_of_gravity, YKHO.stabilizer_vleft.center_of_gravity]\n V3oS = sum(_mSQ)\n gl6T = sum([_mSQ[YRbF] * hEBN[YRbF].x f...
[ "0.6927646", "0.6704255", "0.63623136", "0.63343525", "0.62096477", "0.61994815", "0.6154235", "0.6134563", "0.6126668", "0.6065038", "0.60513777", "0.59931", "0.5969647", "0.5903629", "0.59011346", "0.58690214", "0.58690214", "0.586216", "0.58571464", "0.5853454", "0.5775763...
0.54887927
50
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.7448925
60
make a trie from input
def t7Rj(YKHO, tk5Y, *V22M): b2ZK = '_end_' for GIN8 in V22M: TXkI = tk5Y for sZqf in GIN8: TXkI = TXkI.setdefault(sZqf, {}) TXkI[b2ZK] = GIN8 return tk5Y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def euxn():\n from trie import Trie\n trie = Trie()\n trie.insert('bbbbbbb')\n trie.insert('bbb')\n trie.insert('lololololol')\n trie.insert('blololololol')\n return trie", "def qb_b(l5Ny):\n ZOCz = etby()\n mSrU, V22M = Nwr9(l5Ny)\n for YRbF in range(len(V22M)):\n ZOCz.inser...
[ "0.72452307", "0.7073765", "0.7000022", "0.6864744", "0.6701841", "0.6684528", "0.6617508", "0.65324044", "0.6498399", "0.64209867", "0.63756317", "0.6355602", "0.6330824", "0.628766", "0.6198793", "0.61716527", "0.61586726", "0.61545414", "0.61503285", "0.61228555", "0.61228...
0.696359
3
We retrieve the trie from pickle
def _rie(YKHO): ZOCz = t2lc.load(open(YKHO.persist, 'rb')) return ZOCz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.trie = {}", "def FIMM(YKHO):\n YKHO.trie = {}", "def FIMM(YKHO):\n YKHO.trie = {}", "def FIMM(YKHO):\n YKHO.trie = {}", "def FIMM(YKHO):\n YKHO.trie = {}", "def FIMM(YKHO):\n YKHO.trie = dict()", "def FIMM(YKHO):\n YKHO.trie = dict()", "def FIMM(YKHO):\n ...
[ "0.7368735", "0.7325107", "0.7325107", "0.7325107", "0.7325107", "0.7123114", "0.7123114", "0.69638956", "0.69357395", "0.6866607", "0.67798203", "0.67592555", "0.67410094", "0.67410094", "0.6682941", "0.6638102", "0.65764415", "0.65193063", "0.6486433", "0.6484355", "0.64634...
0.8099526
0
Gets or sets id
def id(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vDgp(YKHO):\n return YKHO.id", "def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\n YKHO.id = hbFX", "def unpH(YKHO) -> h8nf[str]:\n return YKHO.id_", "def id(YKHO) -> int:\n return qe4Y.get(YKHO, 'id')", "def unpH(YKHO):\n return YKHO.id", "de...
[ "0.79764104", "0.78441656", "0.76899105", "0.76671135", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573", "0.7662573",...
0.0
-1
Gets or sets actions required
def kS9k(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'action_required')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QMgF(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'actions_required')", "def QMgF(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'actions_required')", "def QMgF(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'actions_required')", "def QMgF(YKHO) -> h8nf[qe4Y.Input[str]]:\n re...
[ "0.75239193", "0.7467756", "0.7467756", "0.7467756", "0.7467756", "0.7206714", "0.70487046", "0.7028684", "0.7028684", "0.7028684", "0.69650245", "0.6898122", "0.67680687", "0.6741672", "0.6738721", "0.67366123", "0.6729874", "0.66955507", "0.6654367", "0.66112506", "0.652756...
0.66140014
19
Returns the name of the group this algorithm belongs to. This string should be localised.
def uOe2(YKHO): return YKHO.tr(YKHO.groupId())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def IXKo(YKHO):\n return YKHO._group_name", "def XZ_F(YKHO):\n return YKHO.groupname", "def IXKo(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'group_name')", "def uOe2(YKHO) -> str:\n return qe4Y.get(YKHO, 'group')",...
[ "0.85458577", "0.83224183", "0.82844394", "0.8166846", "0.8105201", "0.79550886", "0.78789186", "0.78789186", "0.78493077", "0.78237367", "0.7797956", "0.77105546", "0.76375717", "0.76375717", "0.7613731", "0.7541708", "0.7541708", "0.74033934", "0.7395264", "0.7386644", "0.7...
0.77484226
13
Returns the unique ID of the group this algorithm belongs to. This string should be fixed for the algorithm, and must not be localised. The group id should be unique within each provider. Group id should contain lowercase alphanumeric characters only and no spaces or other formatting characters.
def e7pw(YKHO): return 'Online mapping'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO):\n return YKHO._group_id", "def hE03(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'group_id')", "def sv_3(YKHO):\n return YKHO._group_identif...
[ "0.8272601", "0.8272601", "0.8182149", "0.78590405", "0.7763692", "0.7699002", "0.7699002", "0.7699002", "0.7637535", "0.7609121", "0.7609121", "0.7609121", "0.7524615", "0.73916095", "0.72260267", "0.7169113", "0.7129854", "0.7121548", "0.7099108", "0.7099108", "0.7099108", ...
0.0
-1
Class for molecules featurization with Mordred
def FIMM(YKHO, nPrm): YKHO.data = nPrm YKHO.calculator = sFjc(K8H8, ignore_3D=True) YKHO.described_molecules = YKHO.featurize()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MxDa(YKHO):\n YKHO.make_molecule()\n YKHO.described_molecules = YKHO.calculator.pandas(YKHO.data.molecules)\n YKHO.described_molecules.index = YKHO.data.index\n YKHO.described_molecules = rLdf.concat([YKHO.data, YKHO.described_molecules], axis=1)\n return YKHO.described_molecules", "def FIMM(Y...
[ "0.71321183", "0.6480469", "0.6201923", "0.5934646", "0.5824182", "0.5816569", "0.5784067", "0.56953573", "0.5657429", "0.56559646", "0.56466794", "0.5638117", "0.5636001", "0.56308395", "0.56245637", "0.5620246", "0.56121254", "0.5612043", "0.5583757", "0.55618906", "0.55569...
0.63585585
2
Return a dictionary representation of the key configuration for this Experiment.
def MNRr(YKHO): xYbs = dict() for RhGk, nPrm in YKHO._case_data.items(): xYbs[RhGk] = dict(longname=nPrm.longname, vals=nPrm.vals) return dict(name=YKHO.name, cases=xYbs, timeseries=YKHO.timeseries, case_path=YKHO._case_path, output_prefix=YKHO.output_prefix, output_suffix=YKHO.output_suffix, data_d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZlLb(YKHO) -> cuzp:\n return YKHO.m_key_data", "def _fYl(YKHO) -> dict:\n return YKHO._config", "def _fYl(YKHO):\n return {'physical_keys': [str(YKHO.physical_key)], 'size': YKHO.size, 'hash': YKHO.hash, 'meta': YKHO._meta}", "def dict(YKHO):\n return {'key': YKHO.key, 'status': YKHO.status, ...
[ "0.6674995", "0.66457045", "0.6626262", "0.65885645", "0.65158784", "0.65158784", "0.63805", "0.6379943", "0.6368729", "0.6323789", "0.6237286", "0.62003046", "0.6174918", "0.61389494", "0.6120901", "0.60962677", "0.6086563", "0.60679805", "0.60434926", "0.60354024", "0.60354...
0.0
-1
Overridden get_case_path() method which simply returns the data_dir, since that's where the data is held.
def Hh7F(YKHO, **ZxnQ): return YKHO.data_dir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s8df():\n return Hy7s.getcwd() + '/data/'", "def h_xa(YKHO) -> GkAb:\n return YKHO._data_dir", "def xe5l(YKHO):\n return YKHO.data_dir", "def Y2nc(YKHO):\n s0DA = Hy7s.path.join(YKHO.comicsite.short_name, YKHO.folder_prefix, YKHO.cleantitle)\n return s0DA", "def KExq():\n if apzJ.__ca...
[ "0.667664", "0.6623089", "0.6579102", "0.65543956", "0.64910936", "0.6453784", "0.6449007", "0.64320505", "0.6401833", "0.63846886", "0.63846886", "0.6372788", "0.634767", "0.63282996", "0.62603533", "0.62441915", "0.623596", "0.62295455", "0.62272364", "0.6194542", "0.608950...
0.8533609
0
Does the index page return a 200 by default
def hDnz(): P4t4 = B9Nx() with P4t4.app_context(): with P4t4.test_client() as x0hE: Mkmy = x0hE.get('/') assert Mkmy.status_code == 200 JUN5(P4t4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return (pz3A(status='OK'), 200)", "def d6pt():\n return 'OK'", "def Q9RF(YKHO):\n geh0 = YKHO.client.get('localhost:8000')\n YKHO.assertEqual(geh0.status_code, 200)", "def QJXU(YKHO):\n geh0 = YKHO.client.get('/')\n NaW5(geh0.status_code, 200)", "def pClx(YKHO):\n bD7m = ...
[ "0.76499695", "0.74890304", "0.72321117", "0.71666056", "0.7111705", "0.71094203", "0.7099115", "0.7046921", "0.7014525", "0.69991726", "0.69818515", "0.69769615", "0.69511676", "0.6938859", "0.6910374", "0.6902112", "0.68972063", "0.6896299", "0.6883054", "0.6853341", "0.683...
0.0
-1
A user should not be able to login with an incorrect password
def g8jJ(): P4t4 = B9Nx() with P4t4.app_context(): iQ7K(P4t4) x0hE = AlKG(P4t4, name='user', password='wrong_password') Mkmy = x0hE.get('/profile') assert Mkmy.location.startswith('http://localhost/login') JUN5(P4t4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NcSq(YKHO):\n _hkX = YKHO.client.post(gxEw('login'), qQXR.dumps({'username': YKHO.USERNAME, 'password': ''}), content_type='application/json')\n assert _hkX.status_code == 403, _hkX.content.decode('utf-8')\n assert not YKHO.is_authenticated(YKHO.user)", "def c9Uh(YKHO):\n YKHO.assertFalse(mv1M.au...
[ "0.8029132", "0.80249596", "0.79221994", "0.7852366", "0.78017014", "0.77512944", "0.7723492", "0.7682939", "0.7655019", "0.7648167", "0.7626897", "0.75733155", "0.7572586", "0.75713915", "0.7516825", "0.75129825", "0.7505458", "0.7503121", "0.7486753", "0.7477786", "0.747697...
0.75241655
14
Example of using requests to make a test call to the example Flask app
def s7K9(): pmON = zDeW + '/projects/count' for NT__, NtEF in [(DdcU, AySZ), (WqqF, zOrH)]: MOPg = {'Accept': 'application/json', 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + NT__} Mkmy = G4JS.get(pmON, headers=MOPg) Ol8d = Mkmy.json()['message'] assert 'Hello...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NsyV():\n with P4t4.test_client() as Z9rn:\n geh0 = Z9rn.get('/')\n assert geh0.status_code == 200", "def H3qz():\n\n class Handler(yyDo):\n\n def NMoC(YKHO):\n YKHO.write('Hello')\n P4t4 = m36K([bD7m('/hello', UNen)])\n with qIma(P4t4) as I78j:\n geh0 = (yi...
[ "0.75006455", "0.7302516", "0.72955525", "0.6970513", "0.69451195", "0.6913599", "0.68074834", "0.67835474", "0.6760309", "0.66911495", "0.6670432", "0.6662301", "0.65704155", "0.6554936", "0.6526752", "0.6525882", "0.649832", "0.64914274", "0.64507955", "0.6444298", "0.64379...
0.0
-1
return nCk (mod MOD)
def ap9_(exwG: int, G1Hx: int, aUS7: int): ogWu = 1 for YRbF in range(exwG - G1Hx + 1, exwG + 1): ogWu *= YRbF ogWu %= aUS7 for YRbF in range(1, G1Hx + 1): ogWu *= pow(YRbF, aUS7 - 2, aUS7) ogWu %= aUS7 return ogWu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ogWu(exwG, G1Hx):\n return TFEx(exwG) // TFEx(G1Hx) // TFEx(exwG - G1Hx)", "def LZZx(jzdc, G1Hx, exwG):\n U5bT = 1\n while G1Hx > 0:\n if G1Hx % 2:\n U5bT = U5bT * jzdc % exwG\n G1Hx //= 2\n jzdc = jzdc * jzdc % exwG\n return U5bT", "def rHGW(exwG, G1Hx):\n if...
[ "0.7102751", "0.6763725", "0.6695463", "0.6679959", "0.6620005", "0.6598158", "0.64266354", "0.63809407", "0.6348271", "0.6331299", "0.6268062", "0.61716074", "0.615527", "0.6151125", "0.60777146", "0.6065207", "0.60327226", "0.6029984", "0.602696", "0.600112", "0.6000698", ...
0.7090004
1
Check if the Compute API is up an healthy.
def akPH(YKHO): try: Mkmy = G4JS.get('/'.join([YKHO.base_url, YKHO.ENDPOINT_STATUS])).status_code return Mkmy.status_code == 200 except Exception as e: bo34.warn(tTpl) return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vzMz(YKHO) -> bool:\n try:\n YKHO.health()\n except Xb22:\n return False\n return True", "def F0N9(YKHO):\n return ntd0.succeed(True)", "def ASje(YKHO):\n if not YKHO.running:\n return False\n try:\n geh0 = G4JS.get('http://{}:{}/v1/kv/health'.format(YKHO.runni...
[ "0.74652874", "0.7459284", "0.7372733", "0.73242354", "0.7187302", "0.71066606", "0.71027994", "0.71014905", "0.7100068", "0.70705163", "0.70607245", "0.6974901", "0.6974853", "0.6942992", "0.6865484", "0.67949873", "0.6779634", "0.66946566", "0.6694109", "0.66739255", "0.667...
0.62384385
65
Calculate the great circle distance between two points on the earth (specified in decimal degrees)
def GeVo(igSk, GgQG, TGuP, tk0B): GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP]) H91H = tk0B - GgQG n_9K = TGuP - igSk jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2 Z9rn = 2 * P099(PZyS(jzdc)) Mkmy = 3959 return Z9rn * Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6", "def T97B(GgQG, ...
[ "0.81444913", "0.78628397", "0.76311773", "0.7604652", "0.75954515", "0.75949824", "0.7592846", "0.757015", "0.75629693", "0.7554376", "0.752855", "0.7515809", "0.7492531", "0.7465686", "0.7450806", "0.74330103", "0.73909706", "0.73566103", "0.73473287", "0.7329735", "0.73278...
0.0
-1
Sets the id_tag of this AppElementsUpdateReferenceBody.
def Ums8(YKHO, Ums8): YKHO._id_tag = Ums8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.__id = id", "def id(YKHO, id: 'str'):\n YKHO._attrs['id'] = id", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._...
[ "0.64562964", "0.6313377", "0.62117267", "0.6133583", "0.6084872", "0.6084872", "0.6084872", "0.6084872", "0.6084872", "0.6071021", "0.6071021", "0.6071021", "0.6071021", "0.6071021", "0.6071021", "0.6071021", "0.6071021", "0.6071021", "0.6071021", "0.6071021", "0.6071021", ...
0.7185875
0
Sets the transaction_id of this AppElementsUpdateReferenceBody.
def vkFH(YKHO, vkFH): YKHO._transaction_id = vkFH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vkFH(YKHO, vkFH):\n if vkFH is None:\n raise ValueError('Invalid value for `transaction_id`, must not be `None`')\n YKHO._transaction_id = vkFH", "def kPlE(YKHO, vkFH):\n YKHO.merchant_transaction_id = vkFH", "def kSFm(YKHO, kSFm):\n YKHO._back_reference_transaction_id = kSFm", "def P2...
[ "0.63061434", "0.6076186", "0.5822397", "0.536407", "0.5218382", "0.51701766", "0.49542496", "0.48648214", "0.4844334", "0.47488403", "0.47302678", "0.47283491", "0.4669723", "0.4645233", "0.46315598", "0.46209142", "0.45839286", "0.45808318", "0.45804667", "0.45776", "0.4575...
0.67571753
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, uoEn): 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.8457167", "0.8393036", "0.81455255", "0.8139734", "0.81333447", "0.8094964", "0.8093362", "0.8093362", "0.8093362", "0.80863476", "0.80863476", "0.8077286", "0.8077286", "0.806682" ]
0.0
-1
Tick all buttons in the row and vise versa
def vcJ_(YKHO): for yHil in range(len(YKHO.cboxes)): if YKHO.cboxes[yHil].isChecked(): for p6S0 in range(len(YKHO.segments)): if YKHO.segments[p6S0][-1] == yHil: YKHO.picbuttons[p6S0].mark = 'yellow' YKHO.picbuttons[p6S0].buttonClicked = Tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LBb5(YKHO) -> bool:\n raise NotImplementedError", "def ak_E(YKHO):\n TSMu = YKHO.mgr.obj is not None\n YKHO.addButton.setEnabled(TSMu)\n YKHO.removeButton.setEnabled(TSMu)\n YKHO.upButton.setEnabled(TSMu)\n YKHO.downButton.setEnabled(TSMu)\n TSMu = YKHO.measurementTableWidget.rowCount() ...
[ "0.6206985", "0.6114648", "0.60956615", "0.606688", "0.60466826", "0.5964312", "0.59423614", "0.593445", "0.5913716", "0.5905851", "0.5902878", "0.58411187", "0.5805085", "0.5800442", "0.5780653", "0.5777164", "0.5749855", "0.5742083", "0.5737068", "0.5720575", "0.56317544", ...
0.55409676
29
Heap constructor. Fills the heap using the build heap procedure
def FIMM(YKHO, *hkxX, eHkp=NmMZ): YKHO.cmp = eHkp if len(hkxX) == 0: YKHO.a = [] return WKvO = hkxX[0] if not gFtP(WKvO): YKHO.a = YKHO.build_heap([WKvO]) return assert gFtP(WKvO) assert len(WKvO) > 0 YKHO.a = YKHO.build_heap(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.heap = []", "def FIMM(YKHO):\n YKHO.heap = []", "def FIMM(YKHO):\n YKHO.heap = []", "def FIMM(YKHO):\n YKHO.heap = ZyI_()", "def FIMM(YKHO):\n YKHO.heap = [None]", "def FIMM(YKHO, xRjf=None):\n YKHO.heap = DVR7()\n if xRjf:\n for Q6kx in xRjf:\n ...
[ "0.79828805", "0.79828805", "0.79828805", "0.7954278", "0.7950562", "0.7886038", "0.7831571", "0.78060055", "0.7805025", "0.77844316", "0.7743645", "0.77020055", "0.76365334", "0.76016057", "0.75205255", "0.74453074", "0.74026215", "0.7388376", "0.7374988", "0.7373289", "0.73...
0.61949176
64
Initilizes the WGAN class.
def FIMM(YKHO, DUlo, _BGa, c2Yh, nfgB, PO4e, k4vd, t_40, lJSK=5, Ep8u=64, HasU=1, bPTx=None, g0uM=10, hEgb=GhRx, s3hZ=zWjz.get_representations, CysS=None): super(DlK3, YKHO).__init__(_BGa, c2Yh, nfgB, PO4e, k4vd, t_40, lJSK, Ep8u, HasU, bPTx, g0uM, hEgb, s3hZ, CysS) YKHO.raw_x_dataset = DUlo YKHO.conditione...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HbJk(YKHO):\n YKHO.DNN = Vuw2(YKHO.settings.number_of_bins)\n YKHO.D = Vuw2(YKHO.settings.number_of_bins)\n YKHO.G = jd6F()", "def vB93(YKHO):\n YKHO.w = oyIN.random.randn(YKHO.D) / oyIN.sqrt(YKHO.D)", "def FIMM(YKHO, XcU5):\n YKHO.W = XcU5", "def HbJk(YKHO):\n YKHO.DNN = iycX(YKHO.sett...
[ "0.7067083", "0.67569655", "0.6660736", "0.6636352", "0.66287434", "0.6532298", "0.65242404", "0.64688915", "0.64676696", "0.6394337", "0.6392899", "0.6389781", "0.6385714", "0.63841635", "0.6373386", "0.6354811", "0.6341216", "0.63319933", "0.6312051", "0.63025147", "0.62910...
0.0
-1
Function gives the dataset to use during training. In this case, returns the joint data/conditioning dataset with random conditioning information.
def aDo7(YKHO): return ZylS.data.Dataset.zip((YKHO.conditioned_dataset, YKHO.dataset))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dD7q(qIxc):\n if qIxc['experiment']['dataset'] == x3i3.mindsets:\n fUYa, bEXe, gtI8 = NYGG(mindset_sizes=qIxc['dataset']['mindset_sizes'], nb_questions=qIxc['dataset']['nb_questions'], nb_useless=qIxc['dataset']['nb_useless'], noise=qIxc['dataset']['noise'], seed=qIxc['experiment']['seed'])\n ...
[ "0.60713583", "0.5750872", "0.56890637", "0.5688263", "0.5687275", "0.5665631", "0.5639836", "0.56327266", "0.56258625", "0.562124", "0.5614187", "0.56086653", "0.5600147", "0.55958354", "0.5593305", "0.55887866", "0.5578064", "0.55775607", "0.557353", "0.55700624", "0.551855...
0.6498017
0
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(qvLT, YKHO).__init__(*qIxc, **c_sp) if YKHO.base is None: YKHO.base = xEVr.msg.CellBase() if YKHO.mean_height is None: YKHO.mean_height = 0.0 if YKHO.mean_intensity is None: YKHO.mean_intensity ...
{ "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.7794351", "0.7719884", "0.7719884", "0.7686347", "0.76253426", "0.7562994", "0.74395365", "0.7416649", "0.73515975", "0.730761", "0.7279932", "0.72373426", "0.72264934", "0.7223775", "0.7223775", "0.72189564", "0.72111243", "0.72111243", "0.72111243", "0.72111243", "0.7211...
0.0
-1
Construct Conv1DLSTM. See `ConvLSTMCellAP` for more details.
def FIMM(YKHO, mWFP='conv_1d_lstm_cell', **B2fa): super(VwX8, YKHO).__init__(conv_ndims=1, name=mWFP, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def foHD(GhuM, tKig, KUnM=64, Ot1W=3, lo24=0.5, ivc7=2):\n C3ST = ileL(name='fd2lcov1dnet')\n C3ST.add(lTlC(filters=KUnM, kernel_size=Ot1W, activation='relu', input_shape=GhuM))\n C3ST.add(lTlC(filters=KUnM, kernel_size=Ot1W, activation='relu', input_shape=GhuM))\n return wCwC(C3ST, tKig, lo24, ivc7)",...
[ "0.613067", "0.6033429", "0.58353853", "0.5813954", "0.5736567", "0.5719038", "0.5557529", "0.5503755", "0.54977334", "0.5465851", "0.5459606", "0.5406778", "0.5397167", "0.537925", "0.5347921", "0.5320622", "0.53017324", "0.5289422", "0.5264613", "0.52509147", "0.5216316", ...
0.6987433
0
Assert that the link for the badge image is correct for a package.
def QrUL(YKHO, B5hb, m8nP): ys3h = uRlK.parse.urlparse(m8nP) NArs = uRlK.parse.parse_qs(ys3h.query) YKHO.assertEqual([B5hb], NArs['package'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qL88(YKHO, hxGQ):\n w2Vk._assertImageResponseGithub(YKHO, hxGQ, b8V_.BadgeStatus.SUCCESS)", "def Kdy8(YKHO):\n gbpR = YKHO.get_sample_badge()\n YKHO.assertIsInstance(gbpR.image, str)", "def qL88(YKHO, hxGQ):\n w2Vk._assertImageResponseGithub(YKHO, hxGQ, b8V_.BadgeStatus.OBSOLETE_DEPENDENCY)", ...
[ "0.73755056", "0.73498356", "0.7340051", "0.72899854", "0.7215585", "0.7183165", "0.71770227", "0.706455", "0.6863311", "0.6812109", "0.6781824", "0.67695314", "0.6766021", "0.67262", "0.67109877", "0.66438603", "0.6349031", "0.6199503", "0.6064943", "0.6024478", "0.59163094"...
0.66588557
15
Assert that the badge image response is correct for a package.
def DF4o(YKHO, hxGQ, DnVF, VT3R): GtGV = YKHO.get_image_json(hxGQ) YKHO.assertEqual(GtGV['left_text'], VT3R) YKHO.assertEqual(GtGV['right_text'], DnVF.value) YKHO.assertEqual(GtGV['right_color'], b8V_.BADGE_STATUS_TO_COLOR.get(DnVF)) YKHO.assertLinkUrl(hxGQ, GtGV['whole_link'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qL88(YKHO, hxGQ):\n w2Vk._assertImageResponseGithub(YKHO, hxGQ, b8V_.BadgeStatus.SUCCESS)", "def qL88(YKHO, hxGQ):\n w2Vk._assertImageResponseGithub(YKHO, hxGQ, b8V_.BadgeStatus.PAIR_INCOMPATIBLE)", "def qL88(YKHO, hxGQ):\n w2Vk._assertImageResponseGithub(YKHO, hxGQ, b8V_.BadgeStatus.UNKNOWN_PACKA...
[ "0.8341529", "0.8205102", "0.819352", "0.81351554", "0.80803704", "0.80057824", "0.7993413", "0.7809329", "0.7804403", "0.7745799", "0.7732964", "0.75902796", "0.75149703", "0.75025904", "0.7501434", "0.7408167", "0.62723565", "0.626134", "0.6209287", "0.6155526", "0.59448886...
0.76468927
11
Assert that the badge image response is correct for a PyPI package.
def ZLYX(YKHO, hxGQ, DnVF): YKHO._assertImageResponse(hxGQ, DnVF, 'compatibility check (PyPI)')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SUCCESS)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.UNKNOWN_PACKAGE)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SELF_INCOMPATIBLE)", ...
[ "0.8597389", "0.84856796", "0.84026974", "0.8396489", "0.8335455", "0.8330879", "0.82360584", "0.8097306", "0.8041168", "0.80237526", "0.7992142", "0.79849803", "0.7929386", "0.74909294", "0.708183", "0.6810431", "0.6073492", "0.5993659", "0.59697735", "0.5961331", "0.5917099...
0.8128076
7
Assert that the badge image response is correct for a PyPI package.
def hgzX(YKHO, hxGQ): w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SUCCESS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.UNKNOWN_PACKAGE)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SELF_INCOMPATIBLE)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.PAIR_INCOMP...
[ "0.84856796", "0.84026974", "0.8396489", "0.8335455", "0.8330879", "0.82360584", "0.8128076", "0.8097306", "0.8041168", "0.80237526", "0.7992142", "0.79849803", "0.7929386", "0.74909294", "0.708183", "0.6810431", "0.6073492", "0.5993659", "0.59697735", "0.5961331", "0.5917099...
0.8597389
0
Assert that the badge image response is correct for a PyPI package.
def hgzX(YKHO, hxGQ): w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.UNKNOWN_PACKAGE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SUCCESS)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SELF_INCOMPATIBLE)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.PAIR_INCOMPATIBLE)"...
[ "0.8597389", "0.84026974", "0.8396489", "0.8335455", "0.8330879", "0.82360584", "0.8128076", "0.8097306", "0.8041168", "0.80237526", "0.7992142", "0.79849803", "0.7929386", "0.74909294", "0.708183", "0.6810431", "0.6073492", "0.5993659", "0.59697735", "0.5961331", "0.5917099"...
0.84856796
1
Assert that the badge image response is correct for a PyPI package.
def hgzX(YKHO, hxGQ): w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.MISSING_DATA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SUCCESS)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.UNKNOWN_PACKAGE)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SELF_INCOMPATIBLE)", ...
[ "0.8597389", "0.84856796", "0.84026974", "0.8396489", "0.8335455", "0.82360584", "0.8128076", "0.8097306", "0.8041168", "0.80237526", "0.7992142", "0.79849803", "0.7929386", "0.74909294", "0.708183", "0.6810431", "0.6073492", "0.5993659", "0.59697735", "0.5961331", "0.5917099...
0.8330879
5
Assert that the badge image response is correct for a PyPI package.
def hgzX(YKHO, hxGQ): w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SELF_INCOMPATIBLE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SUCCESS)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.UNKNOWN_PACKAGE)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.PAIR_INCOMPATIBLE)", ...
[ "0.8597389", "0.84856796", "0.8396489", "0.8335455", "0.8330879", "0.82360584", "0.8128076", "0.8097306", "0.8041168", "0.80237526", "0.7992142", "0.79849803", "0.7929386", "0.74909294", "0.708183", "0.6810431", "0.6073492", "0.5993659", "0.59697735", "0.5961331", "0.5917099"...
0.84026974
2
Assert that the badge image response is correct for a PyPI package.
def hgzX(YKHO, hxGQ): w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.PAIR_INCOMPATIBLE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SUCCESS)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.UNKNOWN_PACKAGE)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SELF_INCOMPATIBLE)", ...
[ "0.8596834", "0.8485089", "0.8402575", "0.8334881", "0.8330627", "0.82354414", "0.8125842", "0.8097933", "0.8042411", "0.8024615", "0.79927933", "0.7985916", "0.79306436", "0.74905074", "0.70851576", "0.6810492", "0.60728776", "0.59926814", "0.5969874", "0.5961486", "0.591561...
0.8396509
3
Assert that the badge image response is correct for a PyPI package.
def hgzX(YKHO, hxGQ): w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.OUTDATED_DEPENDENCY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SUCCESS)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.UNKNOWN_PACKAGE)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SELF_INCOMPATIBLE)", ...
[ "0.8597389", "0.84856796", "0.84026974", "0.8396489", "0.8335455", "0.8330879", "0.8128076", "0.8097306", "0.8041168", "0.80237526", "0.7992142", "0.79849803", "0.7929386", "0.74909294", "0.708183", "0.6810431", "0.6073492", "0.5993659", "0.59697735", "0.5961331", "0.5917099"...
0.82360584
6
Assert that the badge image response is correct for a PyPI package.
def hgzX(YKHO, hxGQ): w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.OBSOLETE_DEPENDENCY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SUCCESS)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.UNKNOWN_PACKAGE)", "def hgzX(YKHO, hxGQ):\n w2Vk._assertImageResponsePyPI(YKHO, hxGQ, b8V_.BadgeStatus.SELF_INCOMPATIBLE)", ...
[ "0.8596834", "0.8485089", "0.8402575", "0.8396509", "0.8330627", "0.82354414", "0.8125842", "0.8097933", "0.8042411", "0.8024615", "0.79927933", "0.7985916", "0.79306436", "0.74905074", "0.70851576", "0.6810492", "0.60728776", "0.59926814", "0.5969874", "0.5961486", "0.591561...
0.8334881
4
A function to parse parameter file as a pandas dataframe.
def Xab6(hBU9): return rLdf.read_table(hBU9, sep='=', index_col=0, names=['value']).transpose()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gs92(YKHO, Ux0P: str, aM_I: str=None) -> rLdf.DataFrame:\n try:\n return rLdf.read_csv(Ux0P, comment=aM_I)\n except rLdf.errors.EmptyDataError:\n DNMy = f\"Provided data file '{Ux0P}' was empty\"\n raise ValueError(DNMy)\n except Exception as e:\n print(f'Could not parse fi...
[ "0.6723517", "0.6700138", "0.66589195", "0.6530143", "0.6529422", "0.63812894", "0.63155353", "0.63088024", "0.62570363", "0.6173652", "0.6137456", "0.6136185", "0.6124363", "0.61093855", "0.61022425", "0.6089891", "0.6069789", "0.60673004", "0.6056389", "0.6048552", "0.60200...
0.8339482
0
Converts a CMYK quadruplet into an RGB triplet. CMYK values are expected to be on the interval [0, 1]. RGB values are given on the interval [0, 255].
def ATFD(tZ9i, eRdl=0): for BWXx in tZ9i: if not 0 <= BWXx <= 1: raise ValueError('One or more CMYK values are outside [0, 1]') Mkmy = 255 * (1 - tZ9i[0]) * (1 - tZ9i[3]) Oa1e = 255 * (1 - tZ9i[1]) * (1 - tZ9i[3]) Fg_i = 255 * (1 - tZ9i[2]) * (1 - tZ9i[3]) return (round(Mkmy, eRd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wRtv(gHPS, nZ7B, qqh8):\n if gHPS == 0 and nZ7B == 0 and (qqh8 == 0):\n return (0, 0, 0, 1)\n SydD = 1 - max(gHPS, nZ7B, qqh8)\n RsN9 = (1 - gHPS - SydD) / (1 - SydD)\n TT_7 = (1 - nZ7B - SydD) / (1 - SydD)\n eVdU = (1 - qqh8 - SydD) / (1 - SydD)\n return (RsN9, TT_7, eVdU, SydD)", "...
[ "0.69199526", "0.6816548", "0.6593539", "0.62032765", "0.60574543", "0.6039002", "0.6036061", "0.60168695", "0.6008006", "0.5966167", "0.590553", "0.5897587", "0.5892505", "0.5891561", "0.5873327", "0.5873095", "0.5871833", "0.5833985", "0.58269083", "0.57946694", "0.5780379"...
0.77031666
0
Converts an RGB triplet into a CMYK quadruplet. RGB values are expected to be on the interval [0, 255]. CMYK values are given on the interval [0, 1].
def n3PE(d7Eb, eRdl=3): for BWXx in d7Eb: if not 0 <= BWXx <= 255: raise ValueError('One or more RGB values are outside [0, 255]') Mkmy, Oa1e, Fg_i = (d7Eb[0] / 255, d7Eb[1] / 255, d7Eb[2] / 255) try: G1Hx = 1 - max(Mkmy, Oa1e, Fg_i) Z9rn = (1 - Mkmy - G1Hx) / (1 - G1Hx) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wRtv(gHPS, nZ7B, qqh8):\n if gHPS == 0 and nZ7B == 0 and (qqh8 == 0):\n return (0, 0, 0, 1)\n SydD = 1 - max(gHPS, nZ7B, qqh8)\n RsN9 = (1 - gHPS - SydD) / (1 - SydD)\n TT_7 = (1 - nZ7B - SydD) / (1 - SydD)\n eVdU = (1 - qqh8 - SydD) / (1 - SydD)\n return (RsN9, TT_7, eVdU, SydD)", "...
[ "0.7463197", "0.73320514", "0.7239379", "0.6345291", "0.6217341", "0.61769235", "0.5910239", "0.5893841", "0.57856494", "0.57522565", "0.5728558", "0.5716956", "0.569338", "0.56895447", "0.5686191", "0.56524426", "0.5648783", "0.56459737", "0.5641703", "0.56330144", "0.563065...
0.7496036
0
Converts an RGB triplet into an RGB Hexadecimal. RGB values are expected to be given on the interval [0, 255]. Hex values are given in the form 'xxxxxx'.
def MiUz(d7Eb): for BWXx in d7Eb: if not 0 <= BWXx <= 255: raise ValueError('One or more RGB values are outside [0, 255]') cjLl = hex(d7Eb[0])[2:] f0IY = hex(d7Eb[1])[2:] HvM2 = hex(d7Eb[2])[2:] return '#' + cjLl.zfill(2) + f0IY.zfill(2) + HvM2.zfill(2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xR3V(d7Eb: Iterable[int]) -> str:\n return ''.join(list(map(lambda WKvO: hex(abs(WKvO))[2:].zfill(2), d7Eb))[::-1])", "def Frum(A3Vt, yvY1, tjUW):\n return '%02x%02x%02x' % (A3Vt, yvY1, tjUW)", "def OynO(Mkmy, Oa1e=0.0, Fg_i=0.0):\n if isinstance(Mkmy, list):\n Oa1e = Mkmy[1]\n Fg_i ...
[ "0.79308254", "0.78454345", "0.7706671", "0.76498544", "0.76251674", "0.7604188", "0.760087", "0.760087", "0.760087", "0.7589735", "0.75798273", "0.7579681", "0.75510246", "0.7465341", "0.7355241", "0.73296875", "0.73276705", "0.7314186", "0.7314186", "0.7314186", "0.72809845...
0.75571
12
Setup for User tests.
def FCbF(YKHO): YKHO.user_1 = mv1M()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.user_1 = mv1M.objects.create_user(first_name='John', last_name='Kenedy', username='johnny', password='Phrase908', email='johnny@gmail.com')\n YKHO.user_2 = mv1M.objects.create_user(first_name='Kent', last_name='Philip', username='kenty', password='Phrase908', email='kent@gmail.com')", ...
[ "0.8113526", "0.80435723", "0.80300814", "0.7923365", "0.79185176", "0.79171544", "0.7892098", "0.78622913", "0.78508663", "0.7839213", "0.7811193", "0.7780309", "0.7778539", "0.77623576", "0.77521634", "0.7749799", "0.7739822", "0.7732821", "0.7732099", "0.76972514", "0.7646...
0.795339
3
Test for correct inheritance of User object.
def PFh0(YKHO): YKHO.assertTrue(issubclass(type(YKHO.user_1), KcDH))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tgaj(YKHO):\n YKHO.assertTrue(issubclass(mv1M, KcDH))", "def OJWa(YKHO):\n YKHO.assertTrue(issubclass(mv1M()), KcDH)", "def PPzW(YKHO):\n YEnM = mv1M()\n YKHO.assertIsInstance(YEnM, mv1M)\n YKHO.assertIsInstance(YEnM, KcDH)", "def iYS1(YKHO):\n AroK = mv1M()\n YKHO.assertTrue(issubcl...
[ "0.8185956", "0.76789415", "0.7217012", "0.7193389", "0.70376444", "0.70360684", "0.69037896", "0.6903454", "0.6800744", "0.6781127", "0.6732609", "0.6582837", "0.6573324", "0.6557717", "0.6532555", "0.6485434", "0.64133435", "0.63463056", "0.6321212", "0.6296875", "0.6292040...
0.8121529
1
Test for correct attribute types of User object.
def u6mY(YKHO): YKHO.assertIsInstance(YKHO.user_1.email, str) YKHO.assertIsInstance(YKHO.user_1.password, str) YKHO.assertIsInstance(YKHO.user_1.first_name, str) YKHO.assertIsInstance(YKHO.user_1.last_name, str)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tx7H(YKHO):\n CBIr = mv1M()\n YKHO.assertEqual(type(CBIr.email), str)\n YKHO.assertEqual(type(CBIr.password), str)\n YKHO.assertEqual(type(CBIr.first_name), str)\n YKHO.assertEqual(type(CBIr.last_name), str)", "def PNy_(YKHO):\n YKHO.assertTrue(hasattr(mv1M()), 'email')\n YKHO.assertTrue...
[ "0.73608476", "0.7036166", "0.7007135", "0.6819396", "0.6792671", "0.6749377", "0.6733033", "0.64164084", "0.63797444", "0.63464886", "0.625153", "0.6249479", "0.6163784", "0.61542153", "0.61105543", "0.61048603", "0.61035174", "0.6102037", "0.608235", "0.60737705", "0.603184...
0.81575066
0
Test for correct update of attribute updated_at
def t3TG(YKHO): iNEN = YKHO.user_1.updated_at ITS7.sleep(0.5) YKHO.user_1.save() YKHO.assertNotEqual(YKHO.user_1.created_at, YKHO.user_1.updated_at) YKHO.assertNotEqual(YKHO.user_1.updated_at, iNEN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Na8g(YKHO):\n YKHO.assertIsInstance(YKHO.obj.update_at, qcWV)", "def Na8g(YKHO):\n YKHO.assertIsInstance(YKHO.obj.update_at, qcWV)", "def Na8g(YKHO):\n YKHO.assertIsInstance(YKHO.obj.update_at, qcWV)", "def Lx6I(YKHO):\n YKHO.assertEqual(qcWV, type(KcDH().updated_at))", "def mtl5(YKHO):\n ...
[ "0.80204254", "0.80204254", "0.80204254", "0.7826725", "0.77684253", "0.76491815", "0.7622512", "0.75078833", "0.72472024", "0.7208199", "0.71620405", "0.7123322", "0.69062597", "0.6866724", "0.6832748", "0.67655975", "0.6760359", "0.67420274", "0.6690235", "0.6672666", "0.66...
0.6901209
13
Create a random string with given length.
def GLL2(u54L: int) -> str: return ''.join([tuKI.choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(u54L)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DsQ5(u54L):\n return ''.join((tuKI.choice('ACDEFGHJKMNPQRTWXYZ') for bGrB in range(u54L)))", "def e7Tf(u54L):\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(u54L)))", "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choic...
[ "0.89105356", "0.88546425", "0.88436633", "0.87740946", "0.8715684", "0.8705837", "0.8637382", "0.8603678", "0.85763264", "0.8528159", "0.85242856", "0.8516876", "0.8515528", "0.84724754", "0.84698087", "0.84559584", "0.8447635", "0.84288996", "0.83740866", "0.8372566", "0.83...
0.85705864
9
Return the number of keys stored by this bloom filter.
def szAg(YKHO): return YKHO.count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ck8o(YKHO):\n return len(YKHO.counter.keys())", "def Apuj(YKHO):\n return len(YKHO.__keyList)", "def Ib04(YKHO) -> int:\n ...", "def ck8o(YKHO):\n return len(YKHO.keys)", "def UHFx(YKHO):\n return YKHO.connection._llen(YKHO.key)", "def UHFx(YKHO):\n return YKHO.connection.llen(YKHO....
[ "0.8075673", "0.7940063", "0.7835801", "0.772785", "0.7703661", "0.77006704", "0.72986066", "0.7222623", "0.71733904", "0.71241814", "0.71129614", "0.7033897", "0.70002854", "0.6892693", "0.6892693", "0.68822366", "0.68766177", "0.68709534", "0.68709534", "0.68117696", "0.680...
0.0
-1
Return a copy of this bloom filter.
def jth9(YKHO): raise NotImplementedError('RedisLocalBloomFilter not support copy')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n BDSM = l58K(YKHO.capacity, YKHO.error_rate)\n BDSM.filter = YKHO.filter.copy()\n return BDSM", "def jth9(YKHO) -> 'FilterAlgorithmState':\n return _qLf(YKHO)", "def claA(YKHO):\n i3ak = jth9.deepcopy(YKHO)\n i3ak._allow_filtering = True\n return i3ak", "def jth9(YKHO):\...
[ "0.88555247", "0.6998392", "0.6819608", "0.6552665", "0.6409717", "0.63296604", "0.63296604", "0.63296604", "0.63296604", "0.63004595", "0.629882", "0.629882", "0.629882", "0.6282772", "0.62801534", "0.62761027", "0.62761027", "0.62409484", "0.62409484", "0.62409484", "0.6240...
0.77528685
1
Return a list of all enrollments for the passed course_id.
def DyBL(YKHO, S7Jr, NArs={}): bD7m = vNDQ.format(S7Jr) + '/enrollments' eVgC = [] for V52X in YKHO._get_paged_resource(bD7m, params=NArs): eVgC.append(QDAP(data=V52X)) return eVgC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ynso(YKHO, NHWH, NArs={}):\n bD7m = RTR9.format(NHWH) + '/enrollments'\n eVgC = []\n for V52X in YKHO._get_paged_resource(bD7m, params=NArs):\n eVgC.append(QDAP(data=V52X))\n return eVgC", "def cGoB(YKHO, eB_1, NArs={}, Pn3t=False):\n kp8r = YKHO._sis_id(eB_1, sis_field='user')\n bD7...
[ "0.7191661", "0.68659055", "0.6336132", "0.6317704", "0.63118154", "0.59861284", "0.5888465", "0.58837706", "0.5842835", "0.57466596", "0.5697973", "0.5660654", "0.5587271", "0.5559237", "0.5508404", "0.54928565", "0.54875743", "0.5444377", "0.54264516", "0.5395929", "0.53808...
0.80314666
0
Get the event handler for the provided ID or None
def GBNT(YKHO, lLI0): return YKHO._handlers.get(lLI0, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YM7t(YKHO, DCgT):\n assert DCgT\n YEnM = YKHO\n for hkS8 in DCgT.split('.'):\n YEnM = getattr(YEnM, hkS8)\n return YEnM", "def YM7t(YKHO, DCgT):\n assert DCgT\n YEnM = YKHO\n for hkS8 in DCgT.split('.'):\n YEnM = getattr(YEnM, hkS8)\n return YEnM", "def wGeu(Emd4):\n ...
[ "0.62611467", "0.62611467", "0.62068826", "0.61098635", "0.6097923", "0.57279205", "0.57200694", "0.56827235", "0.56623787", "0.5586079", "0.55736434", "0.55637634", "0.5538754", "0.5537712", "0.55299664", "0.5527451", "0.5498018", "0.5457332", "0.54542273", "0.54481035", "0....
0.7827027
0
this function will create the head for the html given the css style template and the title of the html website.
def aISF(oykL, leAC): A97Q = '<!DOCTYPE html>\n<html>\n' sdCG = '<head>\n<title>' + leAC + '\n</title>' + oykL + '</head>\n' WBPg = A97Q + sdCG + '<body>\n<h1>' + leAC + '\n</h1>\n<hr/>\n' return WBPg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WBPg(_Cnz=u'default'):\n return wlg7() + u'<html xmlns=\"http://www.w3.org/1999/xhtml\">\\n<head>\\n<style type=\"text/css\">\\n @import url(/css/exe.css);\\n @import url(/style/base.css);\\n @import url(/style/%s/content.css);</style>\\n<script type=\"text/javascript\" src=\"/scripts/common.js\"></scrip...
[ "0.69461864", "0.6905055", "0.6762255", "0.66626954", "0.6486886", "0.64486057", "0.6397924", "0.6218249", "0.6168673", "0.6148179", "0.60952115", "0.60858727", "0.60850614", "0.6068895", "0.6052179", "0.6032267", "0.5994418", "0.5968005", "0.59630984", "0.5933106", "0.591209...
0.81142956
0
Get the time, and formatted as well.
def m7L9() -> str: return ITS7.strftime(mxlI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7L9(YKHO):\n return ITS7.strftime('%d/%m/%y %M:%H:%S', YKHO.time)", "def m7L9() -> str:\n return F803('%H:%M:%S')", "def m7L9():\n return qcWV.datetime.now().strftime('%H') + ':' + qcWV.datetime.now().strftime('%M') + ':' + qcWV.datetime.now().strftime('%S')", "def m7L9():\n JRYC = qcWV.date...
[ "0.82835513", "0.80701655", "0.8058658", "0.7928017", "0.7884826", "0.7872348", "0.7859797", "0.7859083", "0.7843759", "0.78413737", "0.7765198", "0.7714719", "0.7646649", "0.7618219", "0.75972587", "0.7596998", "0.7596998", "0.7596998", "0.7560018", "0.7521435", "0.7512082",...
0.7939447
3
Assert that the repr of an item matches the expected string.
def UaLV(ZfUD: Any, aEqx: str) -> None: if not isinstance(aEqx, str): raise TypeError(f"'expected' must be a string; found {type(aEqx)}") assert repr(ZfUD) == aEqx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dt2g(YKHO):\n ZfUD = YKHO.item\n YKHO.assertEqual(str(ZfUD), YKHO.item_raw['name'])", "def OlRK(YKHO) -> None:\n ZfUD = kLxY(text='some text')\n YKHO.assertEqual(str(ZfUD), 'some text')", "def H4zp(YKHO):\n YKHO.assertEqual(repr(YKHO.card), 'A of Spades')", "def H4zp(YKHO):\n jI4j = dl5...
[ "0.7654886", "0.7319714", "0.70566714", "0.70364255", "0.69668335", "0.692953", "0.6889585", "0.6846516", "0.6777582", "0.6690588", "0.66197294", "0.6516967", "0.6511773", "0.6509202", "0.6499829", "0.64965343", "0.64654696", "0.64571005", "0.6449583", "0.64413196", "0.640886...
0.85558707
0
Initialize weights of Actor last layer to be between 0.003 and 0.003 as this avoid getting 1 or 1 output in the initial stage, which makes gradient zero.
def dstA(Sqw_, Fh_m, mmRm): g4y1 = X6a0(shape=(Sqw_,), name='input_layer') BJsk = l6ZH(units=Fh_m, activation='relu', kernel_initializer='he_uniform', name='common_layer_1')(g4y1) DbxN = ZylS.random_uniform_initializer(minval=-0.003, maxval=0.003) XeOP = l6ZH(units=1, activation='tanh', kernel_initializ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(YKHO):\n YKHO.embedding.weight.data.uniform_(-0.1, 0.1)\n YKHO.fc.bias.data.fill_(0)\n YKHO.fc.weight.data.uniform_(-0.1, 0.1)", "def vB93(YKHO) -> None:\n YKHO.fc.bias.data.fill_(0)\n YKHO.fc.weight.data.uniform_(-0.1, 0.1)", "def vB93(YKHO):\n YKHO.embedding.weight.data.uniform_(-0...
[ "0.7563728", "0.75553966", "0.7509317", "0.7509317", "0.7509317", "0.73754275", "0.73754275", "0.7186291", "0.7167194", "0.7160075", "0.7160075", "0.7155502", "0.7075003", "0.70275486", "0.70046747", "0.69951457", "0.6929048", "0.6910636", "0.68836683", "0.6876566", "0.686874...
0.0
-1
Set the root save dir path for downloaded data.
def TMD5(YKHO, pmON): assert pmON, 'Must input a non-empty path.' YKHO.data['info']['root_downloads_dir'] = pmON YKHO.write_data_cache(YKHO.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQP_(YKHO, SQP_):\n YKHO._save_dir = SQP_", "def JwSR(pmON):\n global dataRoot\n F0j1 = Hy7s.path.realpath(pmON)", "def YNps(YKHO):\n lCFC = CsJA.QFileDialog.getExistingDirectory(parent=YKHO, caption='Where to save image data and statistics?', dir=YKHO.model.getDataDir())\n if len(lCFC) > 0:...
[ "0.6968293", "0.6953091", "0.68667465", "0.68344307", "0.67882216", "0.675968", "0.66772187", "0.6606134", "0.65940547", "0.65859634", "0.6572213", "0.65084726", "0.65084106", "0.65018255", "0.6332267", "0.6329447", "0.6326233", "0.6326139", "0.6322924", "0.6303623", "0.62855...
0.76399547
0
Get the root save dir path.
def tYOp(YKHO): return YKHO.data['info']['root_downloads_dir']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VFIc(YKHO):\n pmON, Ux0P = Hy7s.path.split(YKHO.path)\n TCuf = Hy7s.path.join(pmON, Hy7s.path.splitext(Ux0P)[0])\n return TCuf", "def SQP_(YKHO):\n return YKHO._save_dir", "def chdI(YKHO):\n return YKHO.save_dir + Hy7s.sep + YKHO.save_file_without_ext + YKHO.save_file_ext", "def jNha():\n ...
[ "0.7672117", "0.7586995", "0.74255526", "0.7411833", "0.7383534", "0.73772556", "0.73758304", "0.7345787", "0.7345377", "0.7329698", "0.72976357", "0.72602624", "0.72564876", "0.7240123", "0.7234237", "0.72144103", "0.72043765", "0.71986985", "0.71587366", "0.71449286", "0.71...
0.6563478
49
Updates the category list of all categories.
def lu1N(YKHO): LeZt = {} gMbG = YKHO.data['dataset'] MjVz = YKHO._get_list_categories_used(gMbG) for Ghho in MjVz: LeZt.update({Ghho: YKHO._get_datasets_tasks_by_category(gMbG, Ghho)}) YKHO.data['category'] = LeZt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k2Mo(YKHO, VJUP):\n for Ghho in VJUP:\n EdbX = False\n for YRbF in ['wiki', 'sources', 'article', 'stub', 'wayback', 'cs1']:\n if YRbF in Ghho.lower():\n EdbX = True\n if EdbX:\n continue\n if Ghho in YKHO.category_map:\n YKHO.categ...
[ "0.6758589", "0.6698878", "0.6698878", "0.6698878", "0.6698878", "0.66711956", "0.6646916", "0.6562645", "0.6442713", "0.6401711", "0.6373445", "0.63675374", "0.6150187", "0.611735", "0.6072395", "0.6071573", "0.6061045", "0.599049", "0.5956492", "0.5950494", "0.5936105", "...
0.6951872
0
Returns a list of all categories available in the datasets data.
def EhZg(YKHO, gMbG): BkYW = [] for __n6 in gMbG: BkYW.extend(gMbG[__n6]['keywords']) return list(sorted(set(BkYW)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LeZt(YKHO):\n DpUl = YKHO.con.execute('select category from cc')\n return [Csk6[0] for Csk6 in DpUl]", "def LeZt(YKHO):\n return YKHO._data['categories']", "def LeZt(YKHO):\n h50c = YKHO.game_categories.all()\n return [gigf.category for gigf in h50c]", "def N3tc(YKHO):\n return YKHO.cat...
[ "0.80238557", "0.7797562", "0.7761713", "0.7760444", "0.7618719", "0.76022273", "0.7567776", "0.7535329", "0.74873686", "0.7485666", "0.7478866", "0.7444006", "0.7426297", "0.74144906", "0.7393071", "0.7392424", "0.73660064", "0.735992", "0.7358738", "0.7345824", "0.7325694",...
0.77228504
4
Checks if a category exists in cache.
def vtfo(YKHO, Ghho): assert Ghho, 'Must input a valid category name.' return Ghho in YKHO.manager.data['category']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def has(YKHO, Ghho: str, H5ew: str, EbZV: bool=False) -> bool:\n async with YKHO.lock:\n try:\n return await YKHO.cache.has(Ghho, H5ew, check_category=True)\n except KeyError:\n VKpQ = await YKHO.set_category_cache(Ghho)\n return H5ew in VKpQ", "def FnCF(YK...
[ "0.75316364", "0.6710749", "0.6600631", "0.6595525", "0.6559366", "0.6463599", "0.64177996", "0.6349733", "0.63407004", "0.6321732", "0.62276614", "0.62219435", "0.61612004", "0.61237216", "0.61224896", "0.6104433", "0.61018443", "0.6085565", "0.604549", "0.60288024", "0.6028...
0.6723008
1
Set the root save dir path for downloaded data.
def TMD5(YKHO, pmON): assert pmON, 'Must input a non-empty path.' YKHO.manager.download_dir = pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TMD5(YKHO, pmON):\n assert pmON, 'Must input a non-empty path.'\n YKHO.data['info']['root_downloads_dir'] = pmON\n YKHO.write_data_cache(YKHO.data)", "def SQP_(YKHO, SQP_):\n YKHO._save_dir = SQP_", "def JwSR(pmON):\n global dataRoot\n F0j1 = Hy7s.path.realpath(pmON)", "def YNps(YKHO):\...
[ "0.76381075", "0.69672", "0.6955451", "0.6866198", "0.6835621", "0.6759262", "0.66752857", "0.6605017", "0.6592926", "0.6583753", "0.65707", "0.6512547", "0.6506848", "0.65001744", "0.63327855", "0.6328429", "0.6326461", "0.6324719", "0.6322443", "0.63033235", "0.6286442", ...
0.6786045
5
Get the root save dir path.
def tYOp(YKHO): return YKHO.manager.download_dir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VFIc(YKHO):\n pmON, Ux0P = Hy7s.path.split(YKHO.path)\n TCuf = Hy7s.path.join(pmON, Hy7s.path.splitext(Ux0P)[0])\n return TCuf", "def SQP_(YKHO):\n return YKHO._save_dir", "def chdI(YKHO):\n return YKHO.save_dir + Hy7s.sep + YKHO.save_file_without_ext + YKHO.save_file_ext", "def jNha():\n ...
[ "0.76722395", "0.758743", "0.7425582", "0.74104244", "0.73824817", "0.7376563", "0.7374836", "0.7344939", "0.73442245", "0.732887", "0.7297472", "0.726045", "0.7255593", "0.72394204", "0.7232963", "0.72130597", "0.7203231", "0.7197525", "0.71579677", "0.71436346", "0.71436346...
0.0
-1
An issue can occur if you cast from bytes to a string in python 3 (that is using str(), not using encode/decode methods). This is because all characters in bytes are literals, no implicit decoding happens, like it does in python 2. You just shouldn't use bytes for exception messages in Python 3. THIS TEST ASSERTS THAT ...
def SHvo(): try: raise ValueError(zsKB) except ValueError: QBQr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UB32(YKHO):\n tf1m = 'This is an exception, voilà'\n BQDi = ValueError(tf1m)\n Aofo = Fb0K(BQDi)\n YKHO.assertEqual(Aofo, tf1m.encode('utf-8'))", "def U6JP():\n try:\n raise ValueError('I💜🐍')\n except ValueError:\n QBQr()", "def ocuF():\n try:\n raise ValueError(...
[ "0.83982474", "0.83854526", "0.83779114", "0.82169294", "0.8051513", "0.8018951", "0.7982018", "0.79234064", "0.77766854", "0.77227134", "0.77188665", "0.7680384", "0.759683", "0.7540304", "0.73007363", "0.7245301", "0.7208291", "0.718664", "0.7164256", "0.71533537", "0.71486...
0.81878483
4
It really makes a mess of things when you cast from bytes to a string in python 3 (that is using str(), not using encode/decode methods). This is because all characters in bytes are literals, no implicit decoding happens, like it does in python 2. You just shouldn't use bytes for exception messages in Python 3. THIS TE...
def XfYK(): try: raise ValueError(zsKB) except ValueError: P4t4 = SCWY() QBQr(application=P4t4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UB32(YKHO):\n tf1m = 'This is an exception, voilà'\n BQDi = ValueError(tf1m)\n Aofo = Fb0K(BQDi)\n YKHO.assertEqual(Aofo, tf1m.encode('utf-8'))", "def U6JP():\n try:\n raise ValueError('I💜🐍')\n except ValueError:\n QBQr()", "def ocuF():\n try:\n raise ValueError(...
[ "0.83300245", "0.8293078", "0.82899606", "0.8099072", "0.8075111", "0.79836553", "0.7915772", "0.7881713", "0.7815377", "0.7703832", "0.7588328", "0.7578139", "0.7501937", "0.74587625", "0.7190638", "0.7185833", "0.71811104", "0.7130594", "0.712847", "0.70887744", "0.7076988"...
0.7591558
10
This function searches max element with it's index in input list.
def ipPO(nPrm): d6pt = 0 Ylbp = nPrm[d6pt] for YRbF in range(1, len(nPrm)): if nPrm[YRbF] > Ylbp: Ylbp = float(nPrm[YRbF]) d6pt = YRbF else: break return (Ylbp, d6pt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BA99(list):\n max = -oyIN.Infinity\n d6pt = 0\n YRbF = 0\n for BWXx in list:\n if BWXx > max:\n max = BWXx\n d6pt = YRbF\n YRbF += 1\n return d6pt", "def ipPO(list):\n return Qpvm(list, 0)", "def NyfV(BWXx, eKbg):\n for YRbF in eKbg:\n if YRbF...
[ "0.8013602", "0.7943734", "0.7289179", "0.7234828", "0.7221612", "0.718251", "0.71367365", "0.7092422", "0.6963858", "0.6909933", "0.68377835", "0.683222", "0.68068737", "0.6794828", "0.67918044", "0.6773975", "0.67089784", "0.6700111", "0.6694915", "0.66651", "0.664207", "...
0.67003244
17
This function searches index of element in input array (list) that is the nearest to input value.
def aQzf(ezWE, wEf2): d6pt = 0 OsHO = abs(ezWE[0] - wEf2) for YRbF in range(1, len(ezWE)): if abs(ezWE[YRbF] - wEf2) < OsHO: OsHO = abs(ezWE[YRbF] - wEf2) d6pt = YRbF return d6pt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iHh(qw7D, BWXx):\n or8S = oyIN.searchsorted(qw7D, BWXx, side='left')\n if or8S > 0 and (or8S == len(qw7D) or epAf.fabs(BWXx - qw7D[or8S - 1]) < epAf.fabs(BWXx - qw7D[or8S])):\n return or8S - 1\n return or8S", "def uiJA(qw7D, BWXx):\n if isinstance(qw7D, list):\n qw7D = oyIN.array(q...
[ "0.81723696", "0.8115663", "0.799281", "0.79618543", "0.79280716", "0.79280716", "0.78402966", "0.7831224", "0.78060013", "0.7787744", "0.77621496", "0.7752677", "0.77455515", "0.77342576", "0.77245", "0.77245", "0.7639271", "0.76345104", "0.75995934", "0.7511292", "0.7507363...
0.6897207
36
Return the path to this module
def H5Mn(): return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MJH2(YKHO):\n return YKHO.config['cwd']", "def MJH2():\n return Hy7s.path.dirname(QMSQ(xAKo, HwRy.getfilesystemencoding()))", "def pmON(YKHO):\n return YKHO.lib.path", "def PNOv(YKHO, mWFP):\n return Hy7s.path.join(YKHO.modulesDir, mWFP)", "def IYmn(YKHO):\n return Hy7s.path.join(YKHO._m...
[ "0.8369496", "0.82219434", "0.81217426", "0.8078486", "0.79126674", "0.79036653", "0.7835996", "0.762173", "0.7614666", "0.75929976", "0.7572188", "0.7538071", "0.75268453", "0.7519039", "0.74714875", "0.7448487", "0.7443749", "0.7443278", "0.7435927", "0.74301237", "0.737337...
0.7936861
4
Tensorable to numpy array.
def RCjr(YuSI: torch.Tensor) -> oyIN.ndarray: return r3uf(YuSI).cpu().detach().numpy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTDd(vhpA):\n raise NotImplementedError", "def endw(WKvO):\n return WKvO.cpu().numpy()", "def XTiz(WKvO):\n if isinstance(WKvO, ht2j.Tensor):\n WKvO = WKvO.detach().cpu().numpy()\n elif isinstance(WKvO, ZylS.Tensor):\n WKvO = WKvO.numpy()\n return WKvO.astype(oyIN.float64)", ...
[ "0.85760856", "0.7846332", "0.7749058", "0.7596503", "0.75871223", "0.75594985", "0.7549278", "0.7540835", "0.7400798", "0.72199804", "0.72066957", "0.72012573", "0.71998954", "0.71904993", "0.718654", "0.71852696", "0.71066284", "0.70612115", "0.7015041", "0.6972305", "0.679...
0.6993943
19
Interactively get the start date to query for.
def nUNa(): print() print('Getting the first start date to query for.') print() print('The date must be greater than Jan 1st, 2018') lO87 = int(input('Enter a value for the year: ')) x0eS = int(input('Enter a value for the month: ')) CjKC = int(input('Enter a value for the day: ')) print...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUNa(xDcj):\n if iqCw(xDcj):\n return slWZ()\n return qcWV.datetime.strptime(fcLg.get(xDcj, None)['startDate'], '%Y%m%d').date()", "def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')", "def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')", "def kepv(YKHO) -> h8nf[qe4...
[ "0.7898854", "0.7284921", "0.7284921", "0.72482824", "0.7244562", "0.7244562", "0.71697575", "0.71697575", "0.71697575", "0.71697575", "0.71592194", "0.7101324", "0.70960075", "0.70908237", "0.7053775", "0.7011456", "0.6952614", "0.6797961", "0.6795022", "0.67918515", "0.6768...
0.7601688
1
Returns the employees that started on the given date, or the closest one.
def rUyZ(kepv): w5Af = m6_J.reader(nPrm[1:]) N5Pj = sorted(w5Af, key=seET.itemgetter(3)) mFQo = qcWV.datetime.today() GR7j = [] for rdlD in N5Pj: GuC1 = qcWV.datetime.strptime(rdlD[3], '%Y-%m-%d') if GuC1 < kepv: continue if GuC1 < mFQo: mFQo = GuC1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rUyZ(kjov):\n nPrm = G4JS.get(vPB_, allow_redirects=True)\n open('employees-with-date.csv', 'wb').write(nPrm.content)\n with open('employees-with-date.csv') as z36O:\n N5Pj = m6_J.DictReader(z36O)\n WDrF = []\n N5Pj = sorted(N5Pj, key=lambda Csk6: Csk6['Start Date'], reverse=True)...
[ "0.63083255", "0.6030401", "0.5480336", "0.5471086", "0.5409277", "0.53540045", "0.532713", "0.53079695", "0.52458173", "0.52153754", "0.521167", "0.5210721", "0.51861554", "0.5166614", "0.5153752", "0.51457083", "0.5135986", "0.51257044", "0.5113109", "0.5039486", "0.5032692...
0.66254914
0
Parses a single tf.Example into image and label tensors.
def wvEv(lGjS): bySB = ZylS.parse_single_example(lGjS, features={'env': ZylS.FixedLenFeature([1, 4], ZylS.int64), 'label': ZylS.FixedLenFeature([], ZylS.float32)}) sEAN = ZylS.cast(bySB['env'], ZylS.float32) UXqs = ZylS.cast(bySB['label'], ZylS.float32) dNz9 = ZylS.reshape(bySB['label'], (1, 1)) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cwOz(PU1l):\n bySB = ZylS.parse_single_example(PU1l, EQAi)\n LNo8 = ZylS.image.decode_png(bySB['image/encoded'])\n UXqs = ZylS.image.decode_png(bySB['label/encoded'])\n UXqs = UXqs[..., 0]\n f4BB = bySB['image/path']\n BiJg = bySB['label/path']\n return (LNo8, UXqs, f4BB, BiJg)", "def bM...
[ "0.83829236", "0.8229335", "0.8046354", "0.80220467", "0.792347", "0.78906894", "0.7831778", "0.77363175", "0.76417243", "0.7498123", "0.74800056", "0.7437563", "0.7437213", "0.7389777", "0.73031527", "0.7254027", "0.7237167", "0.7227293", "0.7180672", "0.7136457", "0.7120209...
0.7488421
10
read all container's deployment spec
def m_V0(): with open('group_vars/container/container_frontend.yml', 'r') as wOb_: try: d8Vw = eJb6.load(wOb_) except eJb6.YAMLError as exc: print(BQDi) with open('group_vars/container/container_backend.yml', 'r') as wOb_: try: iL5r = eJb6.load(wOb_) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __oL(YKHO):\n pass", "def g8Ry(YKHO):\n pass", "def G6tR(YKHO):\n pass", "async def container_specs(YKHO, tvqc):\n await YKHO.send(text_data=tvqc['specs'])", "def SY1H(YKHO):\n pass", "def SY1H(YKHO):\n pass", "def tYQ4(YKHO):\n pass", "def tYQ4(YKHO):\n pass", "def N0us...
[ "0.6611615", "0.6296608", "0.6256134", "0.61950594", "0.614495", "0.614495", "0.6058588", "0.6058588", "0.6018962", "0.59787023", "0.5974874", "0.5911114", "0.5879127", "0.58538043", "0.5786527", "0.57451415", "0.5709455", "0.56973815", "0.5687249", "0.56753176", "0.5642765",...
0.5969469
11
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("Hello! Let's explore some US bikeshare data!") j5sA = input('Would you like to see data for Chicago, New York City or Washington?\n').lower() while j5sA not in OerS.keys(): print('Invalid input of City\n') j5sA = input('Would you like to see data for Chicago, New York City...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.66714007", "0.65354675", "0.64593667", "0.6374057", "0.6348314", "0.63097656", "0.62868035", "0.6259136", "0.62316", "0.62130964", "0.62050414", "0.6181105", "0.6171822", "0.61686903", "0.6158568", "0.61582303", "0.61532456", "0.61444426", "0.6131269", "0.610484", "0.61025...
0.5973401
33
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name if x0eS == 0 and CjKC == 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n ReZo = OerS.get(j5sA)\n jQ3Z = rLdf.read_csv(ReZo)\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['alpha_day'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS != 'all':\n LzUN = lvCE.index(x0eS) ...
[ "0.8109285", "0.8046106", "0.80428624", "0.80095434", "0.8007891", "0.7999541", "0.79988176", "0.79894936", "0.79798806", "0.79738617", "0.79618454", "0.7956426", "0.7947887", "0.79465497", "0.7908793", "0.79084915", "0.7905055", "0.790119", "0.78935534", "0.7889669", "0.7883...
0.81325537
0
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() print('most common month: {}'.format(jQ3Z['month'].mode()[0]) + '\n') print('most common day of week: {}'.format(jQ3Z['day_of_week'].mode()[0]) + '\n') print('most most common start hour: {}'.format(jQ3Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80247396", "0.80233026", "0.7915788", "0.78266186", "0.7822246", "0.78143597", "0.77659196", "0.7740343", "0.773628", "0.77344066", "0.7668633", "0.7651731", "0.7644636", "0.76399267", "0.76367253", "0.7625196", "0.7623158", "0.7612803", "0.76002145", "0.7583438", "0.75797...
0.76867086
10
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() print('most commonly used start station : {}'.format(jQ3Z.groupby(['Start Station']).count().idxmax()[0])) print('most commonly used end station : {}'.format(jQ3Z.groupby(['End Station']).count().idxmax()[0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7815675", "0.7662213", "0.7553417", "0.74914914", "0.74748665", "0.7446617", "0.7428588", "0.74237514", "0.74177027", "0.7400495", "0.7387161", "0.7385634", "0.73647535", "0.735934", "0.73566747", "0.73548365", "0.7351854", "0.7351274", "0.735057", "0.73421645", "0.7340198...
0.71700895
49
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() print('total travel time : {}'.format(jQ3Z['Trip Duration'].sum())) print('total travel time : {}'.format(jQ3Z['Trip Duration'].mean())) print('\nThis took %s seconds.' % (ITS7.time() - SWox)) print('-' * 40)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664047", "0.7863...
0.7908032
9
Plot the effective beta over time.
def ZJAp(a1PO, H3QF, OaeV, xkAs, aNZO=None): if aNZO is None: aNZO = QrM1.gca() aNZO.set_prop_cycle('color', uuEx.color_palette('husl', xkAs.n)) LVAh = oyIN.sum(H3QF * OaeV, axis=1) for YRbF in range(1, xkAs.n): iz5W = (a1PO > YRbF) & (a1PO <= YRbF + 1) aNZO.plot(a1PO[iz5W], LVAh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uUBM(EBgd=p9bx['K+'], HpuQ=p9bx['pi+'], KGgp=0.5):\n NCls = []\n UB_b = oyIN.linspace(0, KGgp, 1000)\n gpRq = EBgd.mass\n E43s = HpuQ.mass\n for XP5J in UB_b:\n kYGz = UqYS(XP5J, gpRq)\n ftz7 = UqYS(XP5J, E43s)\n NCls.append(abs(kYGz - ftz7))\n LZpg = QrM1.figure(figsize=...
[ "0.7197893", "0.65237486", "0.6431854", "0.5891127", "0.5836125", "0.57683796", "0.5737917", "0.572118", "0.5704273", "0.56686825", "0.5651512", "0.56512684", "0.5649194", "0.56414586", "0.55973625", "0.55701464", "0.5550003", "0.55275005", "0.54972893", "0.5488611", "0.54851...
0.76010364
0
convert array of labels to matrix of onehot vectors where each vector is the training label for a neural net. Can then be supplied as output to conditional crossentropy layer. Uses keras.utilts.np_utils.to_categorical
def VBUU(IqFV, Crrw, y5SI=False): AeLK = oyIN.size(IqFV) rPhQ = range(AeLK) ecF5 = dict(zip(IqFV, rPhQ)) jGXE = oyIN.asarray([ecF5[UXqs] for UXqs in Crrw]) if y5SI: return (fKLU(jGXE, AeLK), jGXE, rPhQ) else: return fKLU(jGXE, AeLK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(Crrw, KndY=None):\n return nMvt.utils.to_categorical(Crrw, KndY)", "def OVnz(Crrw: np.ndarray, LeZt: int, jDK_: int=0, JsoO=False, yDqo=bool):\n if JsoO:\n assert Crrw.shape[jDK_] == 1\n nbIQ = Crrw.ndim\n else:\n nbIQ = Crrw.ndim + 1\n if jDK_ < 0:\n jDK_ += nbIQ...
[ "0.871994", "0.837686", "0.8320962", "0.81366026", "0.81366026", "0.809131", "0.8074671", "0.7959086", "0.79353493", "0.7914371", "0.7908282", "0.7904179", "0.7904179", "0.7904179", "0.7893525", "0.7867279", "0.7854417", "0.7851589", "0.7846683", "0.7830379", "0.78241944", ...
0.7643615
45
Gets the boot_in_play of this CoreActivitySettings. Whether the host can boot a user while the status is PLAYING. Default false
def NwZq(YKHO): return YKHO._boot_in_play
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DK2F(YKHO):\n return YKHO.inPlay", "def Jo3x(YKHO) -> bool:\n return YKHO._game_on.get()", "def kluH(YKHO):\n return h0vI.getCondVisibility('Player.Playing')", "def NwZq(YKHO, NwZq):\n YKHO._boot_in_play = NwZq", "def Jukm(YKHO):\n return YKHO.bootable_flag == 128", "def hrZm(YKHO):\n ...
[ "0.6504641", "0.61347675", "0.61330307", "0.61165243", "0.6106479", "0.60651004", "0.5977915", "0.59296393", "0.59097475", "0.5875785", "0.581463", "0.5804684", "0.57933354", "0.57904583", "0.5784115", "0.5775867", "0.57365936", "0.5729732", "0.57157445", "0.5708549", "0.5702...
0.7839527
0
Gets the custom_launch_address_allowed of this CoreActivitySettings. Restriction for whether the host creating an occurrence can specify a custom launch address (such as their own ip address). Default 'false'
def cnwU(YKHO): return YKHO._custom_launch_address_allowed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cnwU(YKHO, cnwU):\n YKHO._custom_launch_address_allowed = cnwU", "def Pvgs(YKHO) -> bool:\n return qe4Y.get(YKHO, 'map_customer_owned_ip_on_launch')", "def ogpI(YKHO) -> bool:\n return qe4Y.get(YKHO, 'map_public_ip_on_launch')", "def _JnP(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKH...
[ "0.7817998", "0.5630514", "0.55023706", "0.54466707", "0.53140706", "0.5210803", "0.51306415", "0.51289827", "0.50209785", "0.50209785", "0.50209785", "0.50209785", "0.50209785", "0.50209785", "0.5011991", "0.5011991", "0.50068593", "0.4963337", "0.49399874", "0.49296084", "0...
0.8432801
0
Gets the host_option of this CoreActivitySettings. Restriction for who can host an occurrence. admin disallows regular users, player means the user must also be a player in the occurrence if not admin, nonplayer means the user has the option to host without being a player. Default 'player'
def nxzi(YKHO): return YKHO._host_option
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nxzi(YKHO, nxzi):\n BbPm = ['admin_only', 'player', 'non_player']\n if nxzi not in BbPm:\n raise ValueError('Invalid value for `host_option` ({0}), must be one of {1}'.format(nxzi, BbPm))\n YKHO._host_option = nxzi", "def Z_mx(YKHO) -> h8nf['outputs.RuleRuleConditionHostConfig']:\n return ...
[ "0.6968529", "0.60741204", "0.55345744", "0.5456518", "0.5441586", "0.5392366", "0.5392366", "0.5392366", "0.5327973", "0.53060967", "0.5297542", "0.51555926", "0.5134396", "0.5134396", "0.51329255", "0.51299506", "0.50775695", "0.50775695", "0.50707924", "0.5032327", "0.4987...
0.70220447
0
Sets the host_option of this CoreActivitySettings. Restriction for who can host an occurrence. admin disallows regular users, player means the user must also be a player in the occurrence if not admin, nonplayer means the user has the option to host without being a player. Default 'player'
def nxzi(YKHO, nxzi): BbPm = ['admin_only', 'player', 'non_player'] if nxzi not in BbPm: raise ValueError('Invalid value for `host_option` ({0}), must be one of {1}'.format(nxzi, BbPm)) YKHO._host_option = nxzi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nxzi(YKHO):\n return YKHO._host_option", "def KcEq(YKHO, KcEq):\n if KcEq is None:\n raise ValueError('Invalid value for `host`, must not be `None`')\n YKHO._host = KcEq", "def DM3Y(YKHO, KcEq, etR_):\n if etR_:\n return 'enabled'\n return 'disabled'", "def DM3Y(YKHO, KcEq, e...
[ "0.61863655", "0.5612143", "0.56045806", "0.56045806", "0.5405935", "0.5371666", "0.53407246", "0.5317728", "0.52144206", "0.5210717", "0.5210717", "0.5210717", "0.5210717", "0.51825655", "0.5146095", "0.5124027", "0.50735766", "0.5049621", "0.5042974", "0.5005113", "0.496637...
0.8402428
0
Gets the host_status_control of this CoreActivitySettings. Restriction for whether the host has control of the status once the game launches. If false they can only manage the game before (when setup and open). Default 'false'
def xvOC(YKHO): return YKHO._host_status_control
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QtQ8(YKHO):\n return YKHO.enabled", "def _mZd(YKHO) -> h8nf['outputs.CSIPowerMaxStatusControllerStatus']:\n return qe4Y.get(YKHO, 'controller_status')", "def VLTN(YKHO):\n return super(rMwV, YKHO).get_status()", "def _mZd(YKHO) -> h8nf['outputs.CSIUnityStatusControllerStatus']:\n return qe4Y....
[ "0.59537435", "0.58969605", "0.5781648", "0.5727424", "0.5676244", "0.56292635", "0.5592047", "0.55847293", "0.55775344", "0.5574542", "0.5497024", "0.5477177", "0.5472652", "0.5423913", "0.54197717", "0.5405174", "0.5405174", "0.5380524", "0.53444874", "0.5325646", "0.532155...
0.7934116
0
Sets the host_status_control of this CoreActivitySettings. Restriction for whether the host has control of the status once the game launches. If false they can only manage the game before (when setup and open). Default 'false'
def xvOC(YKHO, xvOC): YKHO._host_status_control = xvOC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xvOC(YKHO):\n return YKHO._host_status_control", "def WjBu(YKHO, jGRS: bool):\n YKHO._is_on_tunnel = jGRS", "def DM3Y(YKHO, KcEq, etR_):\n if etR_:\n return 'enabled'\n return 'disabled'", "def DM3Y(YKHO, KcEq, etR_):\n if etR_:\n return 'enabled'\n return 'disabled'", "...
[ "0.6621864", "0.57679933", "0.57650864", "0.57650864", "0.5643003", "0.555731", "0.5484924", "0.5399307", "0.5338916", "0.531136", "0.52691483", "0.52605104", "0.5247349", "0.5235841", "0.52325577", "0.52021956", "0.5183064", "0.51094323", "0.5092675", "0.5080855", "0.5075874...
0.7426717
0
Gets the join_in_play of this CoreActivitySettings. Whether users can join while the status is PLAYING. Default false
def E7Ot(YKHO): return YKHO._join_in_play
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DK2F(YKHO):\n return YKHO.inPlay", "def E7Ot(YKHO, E7Ot):\n YKHO._join_in_play = E7Ot", "def kluH(YKHO):\n return h0vI.getCondVisibility('Player.Playing')", "def hrZm(YKHO):\n return YKHO.status == 'PLAYING'", "def ksfB(YKHO):\n return YKHO.state == YKHO.States.playing", "def Jo3x(YKHO...
[ "0.6779762", "0.64318055", "0.639745", "0.60925627", "0.59029955", "0.5897133", "0.58157945", "0.57740295", "0.57404727", "0.5733266", "0.56783926", "0.561087", "0.55735147", "0.5562807", "0.55504453", "0.55451727", "0.55338633", "0.5521529", "0.5489539", "0.548672", "0.54340...
0.75434244
0
Sets the join_in_play of this CoreActivitySettings. Whether users can join while the status is PLAYING. Default false
def E7Ot(YKHO, E7Ot): YKHO._join_in_play = E7Ot
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E7Ot(YKHO):\n return YKHO._join_in_play", "def DK2F(YKHO):\n return YKHO.inPlay", "def kluH(YKHO):\n return h0vI.getCondVisibility('Player.Playing')", "async def set_playing(YKHO, BWXx: bool):\n await YKHO._pytheos.api.player.set_play_state(YKHO.id, FYrf.player.PlayState.Playing if BWXx else ...
[ "0.6862973", "0.5825352", "0.5504", "0.546904", "0.5462699", "0.5427826", "0.5248004", "0.5099546", "0.50899976", "0.5086902", "0.5056006", "0.5027746", "0.5016855", "0.5016855", "0.5001384", "0.49734852", "0.4899034", "0.4891654", "0.48899904", "0.48578277", "0.4827726", "...
0.77250314
0
Gets the leave_in_play of this CoreActivitySettings. Whether users can leave while the status is PLAYING. Default false
def ovLy(YKHO): return YKHO._leave_in_play
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ovLy(YKHO, ovLy):\n YKHO._leave_in_play = ovLy", "async def get_stopped(YKHO) -> bool:\n ZnYp = await YKHO.get_play_state()\n return ZnYp == FYrf.player.PlayState.Stopped", "def DK2F(YKHO):\n return YKHO.inPlay", "def Jo3x(YKHO) -> bool:\n return YKHO._game_on.get()", "async def get_paus...
[ "0.62875587", "0.59117", "0.5894549", "0.5893648", "0.5876595", "0.5724671", "0.5615581", "0.5611917", "0.5540887", "0.54994917", "0.5487072", "0.54278433", "0.54045403", "0.53946364", "0.5387648", "0.53860074", "0.5356515", "0.5291121", "0.5287862", "0.5250274", "0.5247529",...
0.73644537
0
Gets the max_players of this CoreActivitySettings. The maximum number of players the game can hold
def Dvrj(YKHO): return YKHO._max_players
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TeR_(YKHO) -> int:\n return YKHO.param.number_of_players", "def cmHP(YKHO):\n qwpZ = None\n for Ii1o in YKHO.players:\n if qwpZ is None or Ii1o > qwpZ:\n qwpZ = Ii1o\n return qwpZ", "def Dvrj(YKHO, Dvrj):\n YKHO._max_players = Dvrj", "def TqHN(YKHO) -> int:\n return YK...
[ "0.6892044", "0.6752201", "0.66695833", "0.64044714", "0.64021665", "0.63830245", "0.6379546", "0.6379287", "0.6357826", "0.6354502", "0.63243073", "0.62916917", "0.62459356", "0.6231929", "0.62146723", "0.6202158", "0.6190944", "0.6170819", "0.61444896", "0.6107099", "0.6099...
0.8657526
0
Sets the max_players of this CoreActivitySettings. The maximum number of players the game can hold
def Dvrj(YKHO, Dvrj): YKHO._max_players = Dvrj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dvrj(YKHO):\n return YKHO._max_players", "def L5x8(YKHO, P4dz):\n YKHO.max_participants = P4dz", "def Bu0a(YKHO, bQ6z):\n YKHO.MaxValue = bQ6z", "def Bu0a(YKHO, bQ6z):\n YKHO.MaxValue = bQ6z", "def FWZR(YKHO, wEf2):\n YKHO._max = wEf2", "def yEXp(YKHO, bQ6z):\n YKHO._progress.setMax...
[ "0.73955363", "0.6657424", "0.63540506", "0.63540506", "0.6187427", "0.6185521", "0.61810195", "0.6165908", "0.61564755", "0.61423624", "0.609049", "0.60222536", "0.602141", "0.6001057", "0.6001057", "0.6001057", "0.59969234", "0.59969234", "0.5963012", "0.5957278", "0.595727...
0.86082315
0