query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns true if the current user has access to this task list.
def Pn7U(YKHO): return YKHO.user_has_access(DW23.get_current_user())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zKHw(YKHO, CBIr):\n if not CBIr:\n return False\n xDcj = NCls.Query(XDt_)\n xDcj.filter('task_list =', YKHO)\n xDcj.filter('user =', CBIr)\n return xDcj.get()", "def JL1u(YKHO, CBIr):\n if CBIr.is_superuser:\n return True\n return YKHO.user_objects(CBIr).filter(id=YKHO.id)....
[ "0.80354095", "0.7513532", "0.74461627", "0.74461627", "0.74461627", "0.7356822", "0.7157605", "0.71396905", "0.71170634", "0.7099192", "0.70534813", "0.7044288", "0.7044288", "0.70258206", "0.70187795", "0.69886005", "0.6986884", "0.69855666", "0.6950547", "0.6947478", "0.69...
0.7972631
1
Returns true if the given user has access to this task list.
def zKHw(YKHO, CBIr): if not CBIr: return False xDcj = NCls.Query(XDt_) xDcj.filter('task_list =', YKHO) xDcj.filter('user =', CBIr) return xDcj.get()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JL1u(YKHO, CBIr):\n if CBIr.is_superuser:\n return True\n return YKHO.user_objects(CBIr).filter(id=YKHO.id).exists()", "def Pn7U(YKHO):\n return YKHO.user_has_access(DW23.get_current_user())", "def eBIn(YKHO, CBIr):\n if YKHO.shared_with_everyone:\n return True\n if YKHO.user =...
[ "0.77992487", "0.767144", "0.7397464", "0.73840964", "0.736102", "0.7219091", "0.7217974", "0.7157916", "0.70905566", "0.70807564", "0.7016164", "0.70020676", "0.6980205", "0.6980127", "0.69680685", "0.6957774", "0.69334286", "0.6917971", "0.6903163", "0.69011056", "0.6881915...
0.8516061
0
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') print(Bcwd) QrM1.imshow(Bcwd, interp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.7886698
34
list_custom_attributes return a list of all custom attribute names
def iAB6(Emd4): hXTF = Emd4.soap_client.service.listCustomAttributes() return hXTF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hXTF(YKHO):\n return YKHO._custom_attributes", "def OZOw(YKHO):\n azoT = [hkS8 for hkS8 in vars(YKHO.entries[0]) if not hkS8.startswith('__')]\n return azoT", "def OZOw(YKHO):\n return YKHO.dp.get_attribute_list()", "def VVYa(Emd4):\n return Emd4._attributes.keys()", "def yNPn(YKHO):\n ...
[ "0.74421084", "0.71881956", "0.6880847", "0.67814785", "0.6772581", "0.6658377", "0.6602726", "0.6580463", "0.6558987", "0.65331507", "0.64979947", "0.6494953", "0.6493834", "0.64591634", "0.6443893", "0.6373361", "0.637097", "0.63420486", "0.6319389", "0.6255084", "0.6244332...
0.80911505
0
Sets the image_id of this V1beta1SidecarState.
def r8m5(YKHO, r8m5): YKHO._image_id = r8m5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r8m5(YKHO, r8m5):\n if r8m5 is None:\n raise ValueError('Invalid value for `image_id`, must not be `None`')\n YKHO._image_id = r8m5", "def U6MO(YKHO, U6MO):\n YKHO._picture_id = U6MO", "def xOeT(YKHO, xOeT):\n YKHO._vpc_id = xOeT", "def KIFJ(YKHO, LNo8):\n YKHO.image = LNo8", "def...
[ "0.6605141", "0.5675217", "0.5243733", "0.50905126", "0.5053194", "0.5021055", "0.50041056", "0.49960893", "0.49825624", "0.49705225", "0.4948178", "0.49459141", "0.49395064", "0.49395064", "0.49059263", "0.4895855", "0.48912314", "0.48912314", "0.48912314", "0.48912314", "0....
0.6845322
1
Sets the name of this V1beta1SidecarState.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSgC(YKHO, mWFP):\n YKHO._name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO._name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP...
[ "0.5956786", "0.5956786", "0.59488845", "0.59488845", "0.59488845", "0.59488845", "0.58582425", "0.58409333", "0.58409333", "0.58409333", "0.58409333", "0.58409333", "0.5837572", "0.58132756", "0.58132756", "0.58126366", "0.5808505", "0.57596695", "0.5758253", "0.57211006", "...
0.0
-1
Sets the terminated of this V1beta1SidecarState.
def amYg(YKHO, amYg): YKHO._terminated = amYg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jllQ(YKHO, jllQ):\n YKHO._terminated_on = jllQ", "def amYg(YKHO):\n return YKHO._terminated", "def amYg(YKHO):\n return YKHO._terminated", "def jllQ(YKHO):\n return YKHO._terminated_on", "def W4JM(YKHO):\n YKHO.terminated = True", "def DDI8(YKHO):\n YKHO.state = e_s7", "def UNdt(Y...
[ "0.5295907", "0.48806447", "0.48806447", "0.47574642", "0.47428632", "0.46943486", "0.46214208", "0.45866185", "0.45526096", "0.4461987", "0.44535047", "0.4396937", "0.43649533", "0.43286994", "0.43230495", "0.4313219", "0.4297859", "0.4265546", "0.4237588", "0.42094213", "0....
0.63428444
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, _Eo7): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, _Eo7): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Renders the home page.
def kZiy(): nPrm = ZAQi() return TvZl('index.html', title='Raft Message Implementation: Client', content=nPrm)
{ "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
Sets an image's anchor point to its center
def eWQa(LNo8, WKvO, LVAh): LNo8.anchor_x = WKvO LNo8.anchor_y = LVAh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def se5S(VXjJ):\n VXjJ.anchor_x = int(VXjJ.width / 2)\n VXjJ.anchor_y = int(VXjJ.height / 2)", "def qRCk(LNo8):\n LNo8.anchor_x = LNo8.height / 2\n LNo8.anchor_y = LNo8.height / 2", "def qm02(LNo8):\n LNo8.anchor_x = LNo8.width / 2\n LNo8.anchor_y = LNo8.height / 2", "def qm02(LNo8):\n L...
[ "0.90294266", "0.88902074", "0.84555244", "0.84555244", "0.8374858", "0.6867228", "0.6867228", "0.6867228", "0.6599151", "0.6545185", "0.64940906", "0.6492981", "0.64907575", "0.64504904", "0.64468896", "0.63265204", "0.62879276", "0.626176", "0.62339115", "0.6182414", "0.615...
0.77350885
5
populates a dictionary counting all ngrams in the specified text.
def n8cN(YKHO, l5Ny): l5Ny = '< ' * (YKHO.n - 1) + l5Ny.replace(' . ', ' .%s ' % (' <' * (YKHO.n - 1))) + ' >' s2mk = YKHO.split(l5Ny) YKHO.corpus_len = len(s2mk) YKHO.n_grams_by_len = [{} for bGrB in range(YKHO.n)] for YRbF in range(len(s2mk)): for exwG in range(YKHO.n): if YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tbgJ(YKHO, exwG):\n hlel = {}\n for YRbF in range(len(YKHO.text) - exwG + 1):\n KCHu = ' '.join(YKHO.text[YRbF:YRbF + exwG])\n hlel.setdefault(KCHu, 0)\n hlel[KCHu] += 1\n return hlel", "def bpO1(l5Ny, exwG):\n import re\n fMtn = {}\n SGOI = re.findall('[^\\\\.\\\\?!\"]...
[ "0.76285636", "0.743605", "0.72238445", "0.7215294", "0.70278937", "0.6968827", "0.6953542", "0.694321", "0.69221735", "0.6906369", "0.6857672", "0.6839784", "0.67987186", "0.67811936", "0.6777076", "0.67605853", "0.67380834", "0.6720923", "0.67070496", "0.65778077", "0.65403...
0.6245485
40
Renders the home page and save preferences
def kZiy(NtEF): pmON = eDTl + NtEF sHHu = QePW.form['inputdate'] T0nt = QePW.form['inputmiles'] cXx6 = int(QePW.form['inputdifficulty']) with open(pmON + '/preferences.txt', 'r+') as wM3v: nPrm = qQXR.load(wM3v) nPrm['difficulty'] = cXx6 wM3v.seek(0) qQXR.dump(nPrm, w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html', face=cuiw.get(P4t4.config['SESSION_KEY'], None))", "def NMoC(YKHO):\n if YKHO.logged_in:\n YKHO.render('home.html', {'name': YKHO.current_user.name, 'server': YKHO.current_user.server, 'faction': mAA4.get(YKHO.current_user.faction), 'home': True, 'page_id': 'ho...
[ "0.7449259", "0.7285663", "0.7092014", "0.7039953", "0.7016313", "0.6948024", "0.69443333", "0.69111496", "0.68991745", "0.6886655", "0.68556803", "0.6846918", "0.68372905", "0.68372905", "0.68372905", "0.68372905", "0.68372905", "0.68372905", "0.68372905", "0.68372905", "0.6...
0.0
-1
Redirects to home page
def t8W8(NtEF): pmON = eDTl + NtEF with open(pmON + '/preferences.txt', 'r+') as wM3v: nPrm = qQXR.load(wM3v) nPrm['max_days_per_week'] = int(QePW.form['max_days_per_week']) wM3v.seek(0) qQXR.dump(nPrm, wM3v) wM3v.truncate() return vKnz(nKyW('.gohome', username=NtEF))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vja_():\n return vKnz(nKyW(tajT, _external=True))", "def C_QL():\n return vKnz('index.html')", "def BZ0h():\n if not bIYZ:\n eTsH(404)\n return vKnz(bIYZ)", "def BZ0h():\n if not bIYZ:\n eTsH(404)\n return vKnz(bIYZ)", "def vja_():\n return vKnz('/users')", "def C_Q...
[ "0.8409207", "0.8258783", "0.8173587", "0.8173587", "0.81720424", "0.81678337", "0.79966474", "0.79153544", "0.79153544", "0.79153544", "0.7905185", "0.7881943", "0.7848833", "0.7668881", "0.7643463", "0.7641178", "0.763278", "0.76186824", "0.7550548", "0.74769175", "0.743941...
0.0
-1
Renders calendar and home page
def L70P(NtEF): lO87 = 2018 GQJo = ADGs(-1) oPyV = [] pmON = eDTl + NtEF ACTs = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] GjCO = _c1T.today() Kxpu = [] for YRbF in range(12): Kxpu.append(GjCO.strftime('%B')) GjCO = GjCO + enlf(months=+...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return TvZl('index.html', events=nw9N(Affi), events_sorted=True)", "def Ev1b():\n return TvZl('presence_weekday.html')", "def kZiy():\n return TvZl('index.html', date=Csk6, mood=uakN, header_color=qfpW, day=CjKC, week=Vzk6, month=x0eS, year=lO87)", "def kZiy():\n return TvZl('home.h...
[ "0.7839091", "0.7379102", "0.7306012", "0.71574664", "0.7074548", "0.7067056", "0.6970624", "0.6958481", "0.69441307", "0.6941349", "0.6906201", "0.6906201", "0.6906201", "0.6906201", "0.6906201", "0.6906201", "0.6906201", "0.6906201", "0.6906201", "0.6906201", "0.68968374", ...
0.0
-1
Renders the home page
def zE3y(NtEF, t5BG): if NtEF == 'alex' or NtEF == 'Diane': qX2P(NtEF, str(t5BG)) return vKnz(nKyW('.foo', username=NtEF)) else: return vKnz(nKyW('.foo', username=NtEF))
{ "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.87210435", "0.8709175", "0.8547869", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.84821767", "0.8481701", ...
0.0
-1
Reset game UI to initial state.
def SiRx(YKHO): YKHO.ids.score.text = '0' YKHO.ids.end_button.text = 'submit' YKHO.ids.end_button.disabled = True YKHO.ids.end_button.opacity = 0 YKHO.time = None iBIi = YKHO.ids.board for ZfUD in iBIi.children: if isinstance(ZfUD, mxSo) is True: n294 = BH3N.spacelist[int...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n BH3N.reset()\n vg0C.get_screen('game_screen').reset()", "def GQwF(YKHO):\n YKHO._buttons_active = False\n YKHO._laser_label.clear()\n YKHO.add_items_labels()\n YKHO.add_question_marks()\n wDYU.QTimer.singleShot(Fv2L.second_display_duration, YKHO.enter_phase_two)", "def dn...
[ "0.8052138", "0.79289716", "0.764434", "0.74008024", "0.72629416", "0.7246861", "0.7199825", "0.7108094", "0.7097444", "0.7028582", "0.69852036", "0.69669294", "0.6924956", "0.68972474", "0.6892807", "0.68591917", "0.6854667", "0.68427634", "0.68342245", "0.6832037", "0.68298...
0.72493833
5
Gets all the information in studenten table
def D_5z(YKHO): YKHO.cur = YKHO.conn.cursor(H1H7.cursors.DictCursor) YKHO.cur.execute('SELECT * FROM studenten') YKHO.cur.close() return YKHO.cur.fetchall()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jsnt(YKHO):\n with iHv3.connect(YKHO.db_path) as w2B8:\n w2B8.row_factory = lambda N1p7, rdlD: G8qb(rdlD[1], rdlD[2], rdlD[3], rdlD[5])\n gPUR = w2B8.cursor()\n gPUR.execute('\\n select s.Id,\\n s.FirstName,\\n s.LastName,\\n s.Sla...
[ "0.7351206", "0.7298801", "0.7244424", "0.72064805", "0.697984", "0.6935884", "0.67473006", "0.6692048", "0.66648823", "0.66188234", "0.66041", "0.659848", "0.6522665", "0.6498989", "0.64943147", "0.64830095", "0.64132667", "0.6410221", "0.6390693", "0.638036", "0.6380326", ...
0.8222623
0
Specifies the type of group configuration item.
def type(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBZt(YKHO, JBZt):\n YKHO._item_group_type = JBZt", "def TG_K(YKHO, type: int):\n YKHO.type = type\n YKHO.canvas.itemconfig(YKHO.item, image=YKHO._get_image())", "def K2Ba(YKHO, *qIxc):\n return _VfD.Group_setKind(YKHO, *qIxc)", "def xO_s(YKHO, Pbul):\n YKHO.huntGroup.setHgType(Pbul)", "d...
[ "0.7469097", "0.67402536", "0.60996115", "0.5901388", "0.58341694", "0.5790249", "0.57890755", "0.57890755", "0.574758", "0.574758", "0.57422036", "0.5722947", "0.5688035", "0.5672635", "0.5664097", "0.5661921", "0.56315416", "0.5621513", "0.560342", "0.5598092", "0.5501978",...
0.0
-1
A collection of parameters for this group configuration item. See below for details.
def SGPK(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['GroupConfigurationParameterArgs']]]]: return qe4Y.get(YKHO, 'parameters')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGPK(YKHO) -> dict:\n return YKHO._config.get('parameters', dict())", "def A1Bj(YKHO) -> dict:\n if not YKHO.params_optional and (not YKHO.params_required):\n return {}\n SGPK = dict()\n for k78t, Dujw in YKHO.parameters.items():\n SGPK[Dujw.name] = Dujw.parameter_config()\n retu...
[ "0.71566033", "0.71187526", "0.7072082", "0.6936573", "0.68166643", "0.679456", "0.6791436", "0.6784136", "0.66776663", "0.664917", "0.6633365", "0.6627326", "0.6619778", "0.6585755", "0.6562537", "0.6561838", "0.6532679", "0.65226203", "0.6518344", "0.6518344", "0.6518344", ...
0.7492987
0
The name of the group configuration parameter.
def mWFP(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wXF1(YKHO) -> str:\n return qe4Y.get(YKHO, 'parameter_group_name')", "def wXF1(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'parameter_group_name')", "def wXF1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'parameter_group_name')", "def wXF1(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y....
[ "0.84618104", "0.8149447", "0.80970496", "0.8019664", "0.7974163", "0.7974163", "0.7974163", "0.7974163", "0.738396", "0.73786575", "0.73786575", "0.7124317", "0.7117667", "0.70236707", "0.6988479", "0.6988479", "0.69649214", "0.6932932", "0.68830323", "0.682914", "0.68238133...
0.0
-1
The type of the resource query. Defaults to `TAG_FILTERS_1_0`.
def type(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a0Lp(YKHO) -> str:\n return qe4Y.get(YKHO, 'request_resource_type')", "def v35O(YKHO, type: int) -> int:\n ...", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjb...
[ "0.63384354", "0.63327396", "0.6167714", "0.6167714", "0.6167714", "0.6167714", "0.6167714", "0.6133529", "0.6102604", "0.6003001", "0.6003001", "0.59196085", "0.5870327", "0.56979764", "0.56727445", "0.56650084", "0.56239647", "0.56013244", "0.558868", "0.5542241", "0.552385...
0.0
-1
Serializes the given population along with each of their scores
def FEsT(CHNM): return [YWSi.get_weights() for YWSi in CHNM]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N2SO(YKHO, H6tO):\n zVFN = {'populations': {mWFP: oyIN.stack(BEuN.population) for mWFP, BEuN in YKHO.populations.items()}, 'generation': H6tO, 'mutation_prob': {mWFP: BEuN.mutation_prob for mWFP, BEuN in YKHO.populations.items()}, 'evolution_hist': YKHO.evolution_history, 'mu': {mWFP: BEuN.strategy_m for mW...
[ "0.6162666", "0.60748464", "0.60454583", "0.5994366", "0.580655", "0.5764389", "0.5743036", "0.57419753", "0.5710139", "0.56822324", "0.56619614", "0.55532134", "0.5501581", "0.54969233", "0.54903704", "0.54776675", "0.54497343", "0.5435301", "0.54094267", "0.5378043", "0.535...
0.7105028
0
Return the current resident application object.
def WZHJ(Emd4): return Emd4._GLOBAL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oKeF(YKHO):\n o5v_ = YKHO.getCurrentState(refresh=True)\n return YKHO.currentApplication", "def SCWY(YKHO):\n return YKHO._application", "def SCWY(YKHO):\n return YKHO._application", "def P4t4(YKHO):\n if YKHO._application is None:\n YKHO._application = m36K(client=YKHO)\n return...
[ "0.77338207", "0.7706205", "0.7706205", "0.76792365", "0.7536308", "0.7389185", "0.73216945", "0.72409433", "0.72348493", "0.7227583", "0.72224146", "0.71220803", "0.70442796", "0.70085466", "0.70037985", "0.69983375", "0.69678354", "0.6958206", "0.6890731", "0.6800741", "0.6...
0.0
-1
Returns a Fileset that combines the lists of files returned by glob.glob for each globspec. File names starting with '.' are not returned unless explicitly globbed. For example, "." matches ".bashrc" but "" does not, mirroring the semantics of 'ls' without 'a'. Walks the current working directory by default, can be ove...
def Z8uY(Emd4, *UkVN, **YSA3): tk5Y = YSA3.pop('root', Hy7s.curdir) def ljCg(qIFO): for FYKK in SC2F.glob(Hy7s.path.join(tk5Y, qIFO)): yield Hy7s.path.relpath(FYKK, tk5Y) def T7MU(RRlC, qIFO): return RRlC ^ set(ljCg(qIFO)) return Emd4(lambda: Pusg(T7MU, UkVN, set()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVQm(Emd4, *UkVN, **YSA3):\n tk5Y = YSA3.pop('root', Hy7s.curdir)\n\n def D9Ga(pmON):\n for qIFO in UkVN:\n if not (qIFO.startswith('*') and Hy7s.path.basename(pmON).startswith('.')):\n if jlVJ.fnmatch(pmON, qIFO):\n return True\n return False\n ...
[ "0.6948804", "0.6791965", "0.6736561", "0.6732828", "0.66670316", "0.6619956", "0.6609012", "0.6585804", "0.65688914", "0.65688914", "0.6567638", "0.6567079", "0.65510774", "0.6489575", "0.6470814", "0.6385066", "0.63688725", "0.63674957", "0.6359023", "0.6312736", "0.6311224...
0.76655054
0
Returns a Fileset that contains the union of all files matched by the globspecs applied at each directory beneath the root. By default the root is the current working directory, but can be overridden with the 'root' keyword argument. File names starting with '.' are not returned unless explicitly globbed. For example, ...
def bVQm(Emd4, *UkVN, **YSA3): tk5Y = YSA3.pop('root', Hy7s.curdir) def D9Ga(pmON): for qIFO in UkVN: if not (qIFO.startswith('*') and Hy7s.path.basename(pmON).startswith('.')): if jlVJ.fnmatch(pmON, qIFO): return True return False return Emd4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z8uY(Emd4, *UkVN, **YSA3):\n tk5Y = YSA3.pop('root', Hy7s.curdir)\n\n def ljCg(qIFO):\n for FYKK in SC2F.glob(Hy7s.path.join(tk5Y, qIFO)):\n yield Hy7s.path.relpath(FYKK, tk5Y)\n\n def T7MU(RRlC, qIFO):\n return RRlC ^ set(ljCg(qIFO))\n return Emd4(lambda: Pusg(T7MU, UkVN, ...
[ "0.73657954", "0.6595301", "0.65601355", "0.6550997", "0.6544307", "0.64820033", "0.64440954", "0.64440954", "0.6440167", "0.6416224", "0.64140534", "0.6352583", "0.62915266", "0.626711", "0.62152106", "0.62068087", "0.6162798", "0.6125276", "0.60752445", "0.6063371", "0.6039...
0.68814224
1
Returns a Fileset that matches zshstyle globs, including '/' for recursive globbing. By default searches from the current working directory. Can be overridden with the 'root' keyword argument. File names starting with '.' are not returned unless explicitly globbed. For example, "." matches ".bashrc" but "" does not, mi...
def IJF5(Emd4, *UkVN, **YSA3): tk5Y = YSA3.pop('root', Hy7s.curdir) b6H_ = [(Hy7s.path.basename(Cqok).startswith('*'), ZbWC.compile(P2bx(Cqok))) for Cqok in UkVN] def D9Ga(pmON): for _U7A, mXDZ in b6H_: if not (_U7A and Hy7s.path.basename(pmON).startswith('.')): if mXDZ....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z8uY(Emd4, *UkVN, **YSA3):\n tk5Y = YSA3.pop('root', Hy7s.curdir)\n\n def ljCg(qIFO):\n for FYKK in SC2F.glob(Hy7s.path.join(tk5Y, qIFO)):\n yield Hy7s.path.relpath(FYKK, tk5Y)\n\n def T7MU(RRlC, qIFO):\n return RRlC ^ set(ljCg(qIFO))\n return Emd4(lambda: Pusg(T7MU, UkVN, ...
[ "0.6980822", "0.6934236", "0.67647296", "0.6530341", "0.6530341", "0.6509614", "0.64933544", "0.63713306", "0.636632", "0.6321839", "0.6232033", "0.6225271", "0.62196934", "0.6192249", "0.61408204", "0.6127478", "0.6070183", "0.6068936", "0.60640734", "0.6043977", "0.6035354"...
0.7308294
0
Return the bottle app object associated with this HttpServer instance.
def P4t4(YKHO): return YKHO._app
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HEBM():\n return BCYG.default_app()", "def HEBM():\n return BCYG.default_app()", "def P4t4(YKHO):\n return YKHO._app", "def P4t4(YKHO):\n if YKHO._application is None:\n YKHO._application = m36K(client=YKHO)\n return YKHO._application", "def WTdB(YKHO):\n return m36K()", "def...
[ "0.768994", "0.768994", "0.7459279", "0.73443407", "0.7212578", "0.7200274", "0.7180562", "0.715646", "0.7139525", "0.7132228", "0.7117085", "0.70421034", "0.6943004", "0.69402987", "0.69334644", "0.69125795", "0.6908945", "0.6878586", "0.68155855", "0.6793053", "0.6752911", ...
0.71977323
6
Set the log level for scribe.
def uPbs(wiAm): Os2G._SCRIBE_LOG_SCHEME, Os2G._SCRIBE_LOG_LEVEL = Os2G._parse_loglevel(wiAm, scheme='google')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pcXt(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['logLevel'] = BWXx", "def ABDL(YKHO, wiAm):\n YKHO.logger.setLevel(wiAm)", "def aQ22(YKHO, ABDL):\n if ABDL == 'info':\n ABDL = G9jH.INFO\n if ABDL == 'debug':\n ABDL = G9jH.DEBUG\n if ABDL == 'error':\n ABDL = G9jH.ER...
[ "0.7946862", "0.7867605", "0.77520657", "0.77170324", "0.77106166", "0.7696465", "0.7607412", "0.7536831", "0.74070823", "0.7363055", "0.73414403", "0.73267806", "0.73145694", "0.72878873", "0.72366416", "0.7215146", "0.7163946", "0.71617615", "0.7151737", "0.7090157", "0.707...
0.78324467
2
Get the current buffer setting for scribe logging.
def Qpzz(): if Os2G._SCRIBE_BUFFER is None: Os2G._SCRIBE_BUFFER = P4t4.get_options().twitter_common_log_scribe_buffer return Os2G._SCRIBE_BUFFER
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lo_9(YKHO, KCHu):\n try:\n return YKHO.buffers[tq_1.stack()[2][3]]\n except KeyError:\n return YKHO.buffers['default']", "def j7NA(YKHO):\n return YKHO.buffer", "def hT4k(n7RE):\n Os2G._SCRIBE_BUFFER = n7RE", "def cnXk(YKHO):\n return YKHO.session.current_buffer", "def aNE3...
[ "0.660369", "0.6267053", "0.62291265", "0.6205854", "0.6094115", "0.6068475", "0.6037662", "0.6010059", "0.5693906", "0.56547165", "0.56143296", "0.5556659", "0.5531706", "0.55032086", "0.54930824", "0.5462638", "0.54466283", "0.5404171", "0.53476965", "0.5345517", "0.5338275...
0.7498056
0
Set the log level for stderr.
def cCWs(wiAm): Os2G._STDOUT_LOG_SCHEME, Os2G._STDERR_LOG_LEVEL = Os2G._parse_loglevel(wiAm, scheme='plain')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def brDE():\n if Os2G._STDERR_LOG_LEVEL is None:\n Os2G.set_stderr_log_level(P4t4.get_options().twitter_common_log_stderr_log_level)\n return Os2G._STDERR_LOG_LEVEL", "def aQ22(wiAm: str):\n import loguru\n loguru.logger.remove()\n loguru.logger.add(HwRy.stderr, level=wiAm)", "def mT0U(YK...
[ "0.75501895", "0.7461233", "0.7381272", "0.7209934", "0.7171155", "0.69787407", "0.6762141", "0.6564745", "0.645916", "0.64415514", "0.63834524", "0.6376301", "0.63104653", "0.6250709", "0.624097", "0.62363666", "0.6222347", "0.6160637", "0.61489695", "0.61408293", "0.6106189...
0.80783945
0
Get the current stderr_log_level (in logging units specified by logging module.)
def brDE(): if Os2G._STDERR_LOG_LEVEL is None: Os2G.set_stderr_log_level(P4t4.get_options().twitter_common_log_stderr_log_level) return Os2G._STDERR_LOG_LEVEL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYef(YKHO):\n return YKHO._get_log('stderr')", "def o_1G(YKHO):\n return nVfn.absentSafeGet(YKHO, Po8D.__LOG_CONFIG_SECTION, Po8D.__LOG_LEVEL_KEY)", "def DXkw(E0cB):\n eegZ, bGrB = NLCc.parse_known_args(E0cB)\n wiAm = eegZ.log_level or Hy7s.getenv(Uqlr)\n return IiiO.get(wiAm, oT0q)", "def...
[ "0.71187145", "0.70237875", "0.7017636", "0.6912839", "0.6883215", "0.68068767", "0.6714588", "0.6508861", "0.6490711", "0.64902115", "0.6465734", "0.6446161", "0.64455396", "0.6388556", "0.62684464", "0.62388945", "0.61640924", "0.61638474", "0.61481106", "0.6147119", "0.613...
0.76415735
0
Get the current stderr log scheme.
def BPjG(): if Os2G._STDOUT_LOG_SCHEME is None: Os2G.set_stderr_log_level(P4t4.get_options().twitter_common_log_stderr_log_level) return Os2G._STDOUT_LOG_SCHEME
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYef(YKHO):\n return YKHO._get_log('stderr')", "def wIbz(YKHO):\n return YKHO.__stderr", "def ZYpc(YKHO):\n return YKHO.log_path", "def lshk(YKHO) -> ImMB:\n return YKHO.err", "def wIbz(YKHO) -> str:\n M56f: list[kDLT] = []\n GSuR = YKHO._select('stderr', M56f)\n return GSuR.execut...
[ "0.74791235", "0.67660373", "0.669072", "0.66736275", "0.63985837", "0.63138133", "0.62644947", "0.6150036", "0.60647047", "0.60588634", "0.60502046", "0.5939472", "0.59224784", "0.5869928", "0.5829225", "0.58114845", "0.5772922", "0.5772754", "0.5687371", "0.56829584", "0.56...
0.7794999
0
parses a line and returns Line if successfully parsed, ValueError/None otherwise.
def hfK9(Emd4, zFiD): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pjGW(YKHO, zFiD):\n raise NotImplementedError", "def GbZf(YKHO, zFiD):\n Aofo = X6aa()\n Aofo.full_line = zFiD\n zsYY = YKHO._linepattern.match(zFiD)\n if zsYY:\n Aofo.hostname = zsYY.group(1)\n Aofo.user = zsYY.group(2)\n if Aofo.user == '-':\n Aofo.user = ''\n...
[ "0.735251", "0.66498846", "0.6641397", "0.6641397", "0.6641397", "0.6641397", "0.66229093", "0.65310556", "0.6347376", "0.62744546", "0.61869526", "0.61821127", "0.61805654", "0.61674565", "0.6119636", "0.60748845", "0.6049217", "0.6006822", "0.5963637", "0.5934437", "0.58927...
0.7164749
1
Given a filelikeobject and a set of Linederived parsers (e.g. GlogLine, ZooLine), generate Line objects from the stream. If infinite=True, continue after hitting EOF.
def FIMM(YKHO, RdHN, gpan, iZKH=False): YKHO._buffer = jz3H(RdHN, iZKH) YKHO._head = None YKHO._tail = [] YKHO._infinite = iZKH YKHO._parsers = gpan
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wTXY(gJmB, wOb_):\n oAxo = []\n for d6pt, zFiD in enumerate(wOb_):\n if d6pt % gJmB.numLines == 0:\n if len(oAxo) > 0:\n yield oAxo\n del oAxo[:]\n oAxo.append(zFiD)\n if len(oAxo) > 0:\n yield oAxo", "def Vs4Q(YKHO):\n for zFiD in YKH...
[ "0.6159843", "0.6142206", "0.610838", "0.57844836", "0.5778332", "0.5737849", "0.57367164", "0.57107747", "0.56600237", "0.5648243", "0.561576", "0.55811024", "0.55050904", "0.5468125", "0.5416094", "0.5409545", "0.53791744", "0.53190464", "0.5290784", "0.5281145", "0.5267034...
0.53152657
18
Returns a Metric namespace for this object.
def Wbxz(YKHO): if not hasattr(YKHO, '_observable_metrics'): YKHO._observable_metrics = BX9j() return YKHO._observable_metrics
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HKgf(YKHO) -> str:\n return YKHO._values.get('metric_namespace')", "def HKgf(YKHO) -> str:\n return YKHO._values.get('metric_namespace')", "def HKgf(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'metric_namespace')", "def HKgf(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'metric_namespace')", ...
[ "0.8565087", "0.8565087", "0.8440105", "0.8440105", "0.709219", "0.7075567", "0.69975936", "0.694665", "0.6917235", "0.69047415", "0.6811915", "0.6769332", "0.66465575", "0.66465575", "0.66465575", "0.6627587", "0.6627587", "0.6627587", "0.6627587", "0.6627587", "0.6594218", ...
0.0
-1
Register a gauge (mapper from name => sample) with this registry.
def gr_i(YKHO, OJ3t): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OJ3t(YKHO, OJ3t, BWXx):\n pass", "def OJ3t(mWFP, BWXx):\n AcYW = dmXZ(mWFP) or Wbxz.new_gauge(mWFP)\n AcYW.notify(BWXx)", "def FIMM(YKHO, mWFP, OJ3t, KnxT=PED3(1, Kmii.SECONDS), DZsB=ITS7):\n YKHO._clock = DZsB\n YKHO._gauge = OJ3t\n YKHO._samples = []\n YKHO._window = KnxT\n BQvn._...
[ "0.68497956", "0.6521387", "0.64834756", "0.64096534", "0.6379297", "0.63609856", "0.6299615", "0.61757064", "0.60655165", "0.60029423", "0.5954466", "0.5919711", "0.5916287", "0.5874253", "0.5664001", "0.55889916", "0.552085", "0.55199003", "0.5470807", "0.54688734", "0.5453...
0.80764705
0
Return the age of an object in seconds, or None if object is not in cache.
def ZJe_(YKHO, bD7m): XKEx = YKHO.translate_url(bD7m) if not Hy7s.path.exists(XKEx): return None return YKHO._clock.time() - Hy7s.path.getmtime(XKEx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzSz(mWFP):\n gLDJ = tUko('%s.cache' % mWFP)\n if not Hy7s.path.exists(gLDJ):\n return 0\n return ITS7.time() - Hy7s.stat(gLDJ).st_mtime", "def ZJe_(YKHO):\n RA_F = wzkt() - YKHO.creation\n return RA_F.seconds", "def ZJe_(YKHO):\n bXmo = YKHO.Get(YKHO.Schema.TYPE)\n if bXmo:\n ...
[ "0.689632", "0.6541592", "0.6430703", "0.63087785", "0.6215832", "0.6210268", "0.61956954", "0.6130581", "0.61279106", "0.61279106", "0.61279106", "0.61279106", "0.60995686", "0.60881454", "0.60881454", "0.60881454", "0.604584", "0.6033361", "0.6032839", "0.60300416", "0.5980...
0.74721
0
Convert from a url to Package.
def sD7A(Emd4, qvey, **YSA3): for QIx0 in Emd4._REGISTRY: try: return QIx0(qvey, **YSA3) except QIx0.InvalidLink: continue
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bApz(tpXL):\n import compose\n Z9rn = compose.Compose(tpXL)\n iIih = Z9rn.data_id()\n vAUg = Z9rn.data_status()\n BL8q = Z9rn.json_rpms()\n XP5J = compose.packages_from_compose(BL8q)\n TRdr = compose.packages_bin_from_compose(BL8q)\n return (XP5J, TRdr, iIih, vAUg)", "def GA5j(Emd4, b...
[ "0.6308246", "0.6193889", "0.5870305", "0.5665715", "0.56608045", "0.5658081", "0.5650831", "0.56097597", "0.55993104", "0.5566131", "0.55368316", "0.55145115", "0.5477072", "0.5477072", "0.53908575", "0.53765976", "0.53638494", "0.53619444", "0.5334818", "0.5311504", "0.5275...
0.6192167
2
Return the digest of a single file in a memoryefficient manner.
def hash(Emd4, pmON, dKPB=None, razo=B2KD): if dKPB is None: dKPB = razo() with open(pmON, 'rb') as Ga6V: Emd4.update_hash(Ga6V, dKPB) return dKPB.hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OWTc(nUeQ):\n eZ_W = open(nUeQ, 'rb')\n nPrm = eZ_W.read()\n dKPB = pNfG(nPrm).hexdigest()\n eZ_W.close()\n return dKPB", "def hash(YKHO):\n XkN1 = 1024 * 1024 * 4\n razo = HBct.sha256()\n with open(YKHO.path, 'rb') as eHNT:\n while True:\n yOAJ = eHNT.read(XkN1)\n ...
[ "0.8036142", "0.74584323", "0.73805016", "0.7326624", "0.7286396", "0.7269441", "0.7254885", "0.7198007", "0.71961105", "0.71897846", "0.7178085", "0.71430117", "0.71430117", "0.7142895", "0.71211874", "0.71143454", "0.71073234", "0.7080886", "0.70387906", "0.70287955", "0.70...
0.0
-1
Close the underlying filehandle of the RecordIO stream.
def DDI8(YKHO): YKHO._fp.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n if YKHO.record_mode:\n YKHO.fout.close()\n YKHO.record_mode = False", "def DDI8(YKHO):\n if YKHO.record_mode:\n YKHO.fout.close()\n YKHO.record_mode = False", "def DDI8(YKHO):\n YKHO._raw_stream.close()", "def HuIG(YKHO):\n YKHO.fh.close()", "def DD...
[ "0.76386106", "0.76386106", "0.7178276", "0.7027543", "0.6917457", "0.69157934", "0.68890774", "0.68413293", "0.6833449", "0.6822801", "0.67741233", "0.67271334", "0.67271334", "0.67047125", "0.6687958", "0.6628344", "0.6623506", "0.6609123", "0.6607751", "0.6593181", "0.6593...
0.6920327
4
Construct a ThriftRecordReader from given file pointer and Thrift class thrift_base
def FIMM(YKHO, ytgA, ggNF): efiB.assert_has_thrift() if not ggNF: raise efiB.ThriftUnsuppliedException('Must construct ThriftRecordReader with valid thrift_base!') ICqM.Reader.__init__(YKHO, ytgA, efiB.ThriftCodec(ggNF))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, ytgA):\n efiB.assert_has_thrift()\n ICqM.Writer.__init__(YKHO, ytgA, efiB.ThriftCodec())", "def H6LJ():\n dtpj = ZylS.data.TFRecordDataset\n tALJ = lambda WKvO: OoRQ(WKvO, is_train=False)\n iumf = ZylS.data.Dataset.list_files('./processed/train*.tfrecords')\n __n6 = iumf.apply(Zy...
[ "0.6981389", "0.5900235", "0.5710868", "0.55788183", "0.551159", "0.54896784", "0.5477286", "0.5447825", "0.54301983", "0.53962183", "0.5353588", "0.5345622", "0.52906775", "0.52878886", "0.52750474", "0.52731305", "0.5272917", "0.5259162", "0.5259162", "0.5253273", "0.524191...
0.85858476
0
Given a line of text, parse it and return a ScanfResult object.
def hfK9(YKHO, zFiD, YJVC=False): if not isinstance(zFiD, YOL9.string): raise TypeError('Expected line to be a string, got %s' % type(zFiD)) zOkL = YKHO._re.match(zFiD) if zOkL is None: raise OzNX.ParseError('Failed to match pattern: %s against %s' % (YKHO._re_pattern, zFiD)) moMn = list...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfK9(Emd4, zFiD):\n raise NotImplementedError", "def pjGW(YKHO, zFiD):\n raise NotImplementedError", "def hfK9(zFiD: str) -> 'SeqNode':\n return xc_Y(gUYg(zFiD)).parse()", "def pjGW(zFiD: str) -> str:\n return zFiD", "def pjGW(zFiD: str) -> str:\n return zFiD", "def pjGW(zFiD: str) -> ...
[ "0.64656615", "0.62669396", "0.6120163", "0.61046255", "0.61046255", "0.61046255", "0.61046255", "0.6051328", "0.59911644", "0.5989702", "0.5786448", "0.57261276", "0.5673525", "0.5640246", "0.55689585", "0.55401176", "0.5525659", "0.55157423", "0.5484788", "0.54642516", "0.5...
0.64154047
1
Returns the pants ROOT_DIR, calculating it if needed.
def vZkS(): try: return VN_1().path except VN_1.NotFoundError as e: print(tTpl.message, file=HwRy.stderr) HwRy.exit(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jNha():\n return GkAb(xAKo).parent.parent", "def jNha():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo + '/..'))", "def jNha():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo + '/..'))", "def Rip8():\n return Hy7s.path.dirname(Hy7s.path.dirname(xAKo))", "def jNha():\n return TLI...
[ "0.76941395", "0.7653267", "0.7653267", "0.76492417", "0.76291394", "0.7573995", "0.754857", "0.75001734", "0.74528307", "0.7419", "0.73721737", "0.7197767", "0.69858986", "0.6962752", "0.69467866", "0.69362164", "0.69119835", "0.6870786", "0.67959005", "0.6782408", "0.674865...
0.0
-1
Returns an iterator over all the BUILD files colocated with this BUILD file including this BUILD file itself. The family forms a single logical BUILD file composed of the canonical BUILD
def qBg8(YKHO): yield YKHO for YMpW in YKHO.siblings(): yield YMpW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VCYo(YKHO):\n for Cc7Y in jijp(YKHO.parent_path, 'BUILD*'):\n if YKHO.name != Cc7Y and uy37._is_buildfile_name(Cc7Y):\n OKYj = Hy7s.path.join(Hy7s.path.dirname(YKHO.relpath), Cc7Y)\n if not Hy7s.path.isdir(Hy7s.path.join(YKHO.root_dir, OKYj)):\n yield uy37(YKHO.ro...
[ "0.6596874", "0.59934896", "0.5884618", "0.56189007", "0.5495658", "0.54573435", "0.5412139", "0.538463", "0.53838235", "0.53622997", "0.5354155", "0.53237015", "0.532357", "0.53120476", "0.5298507", "0.52981144", "0.528873", "0.52516586", "0.52406883", "0.52137196", "0.51970...
0.5247226
18
Returns the ROOT_DIR for the current workspace.
def pmON(YKHO): if YKHO._root_dir is None: if 'PANTS_BUILD_ROOT' in Hy7s.environ: YKHO._root_dir = Hy7s.environ['PANTS_BUILD_ROOT'] else: FYF3 = Hy7s.path.abspath(Hy7s.getcwd()) while not Hy7s.path.exists(Hy7s.path.join(FYF3, 'pants.ini')): if FYF3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ez41():\n return KfRp", "def Rjhd(YKHO):\n SWUC = Hy7s.getcwd()\n while True:\n if 'DataStore' in Hy7s.listdir(SWUC):\n break\n SWUC = '/'.join(SWUC.split('/')[:-1])\n return SWUC + '/'", "def jNha():\n return GkAb(xAKo).parent.parent", "def Rip8():\n return Hy7...
[ "0.8109924", "0.7917911", "0.7863536", "0.78295", "0.7778017", "0.7769748", "0.77653694", "0.774084", "0.774084", "0.7732845", "0.7678484", "0.7595911", "0.75939846", "0.75508755", "0.74569565", "0.7386129", "0.72655445", "0.72597617", "0.72488904", "0.7246156", "0.717736", ...
0.66593033
62
A contextmanager that establishes a temporary ROOT_DIR, restoring the prior ROOT_DIR on exit.
def QCSZ(YKHO, pmON): if pmON is None: raise ValueError('Can only temporarily establish a build root given a path.') f2rf = YKHO._root_dir YKHO._root_dir = pmON try: yield finally: YKHO._root_dir = f2rf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U9hK():\n\n class ctx(object):\n\n def DMw_(YKHO):\n YKHO.prevdir = Hy7s.getcwd()\n YKHO.tempdir = gbPf.mkdtemp()\n Hy7s.chdir(YKHO.tempdir)\n return YKHO.tempdir\n\n def U4F2(YKHO, *jzdc, **mQ1D):\n Hy7s.chdir(YKHO.prevdir)\n R...
[ "0.7295479", "0.6883074", "0.6754693", "0.65109557", "0.6506726", "0.6467505", "0.645506", "0.64413637", "0.64257723", "0.6424784", "0.6410448", "0.64044297", "0.64014244", "0.63958585", "0.6374279", "0.63728625", "0.6371147", "0.63620037", "0.6356555", "0.6346133", "0.634354...
0.7193403
1
Creates a config parser that supports %([keyname])s value substitution. Any defaults supplied will act as if specified in the loaded config file's DEFAULT section and be available for substitutions. All of the following are seeded with defaults in the config
def yl6v(muwo=None): gfcK = dict(buildroot=vZkS(), homedir=Hy7s.path.expanduser('~'), user=AOO4.getuser(), pants_bootstrapdir=Hy7s.path.expanduser('~/.pants.d'), pants_workdir=Hy7s.path.join(vZkS(), '.pants.d'), pants_supportdir=Hy7s.path.join(vZkS(), 'build-support'), pants_distdir=Hy7s.path.join(vZkS(), 'dist')) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k78t(mWFP, HyJ9=None):\n gCuF = nUeQ(RJsz()).read()\n for zFiD in gCuF.split('\\n'):\n zFiD = zFiD.strip(' \\n\\r')\n if len(zFiD.split('=')) != 2:\n continue\n peBr, BWXx = zFiD.split(' = ')\n peBr = peBr.strip(' ')\n if peBr == mWFP:\n return eva...
[ "0.5683868", "0.5618292", "0.54900956", "0.54388195", "0.54106265", "0.53660274", "0.53510225", "0.53427094", "0.5295847", "0.52746993", "0.52498", "0.5243034", "0.5227909", "0.52267", "0.5225236", "0.518673", "0.5186227", "0.5164022", "0.5159701", "0.5151152", "0.51488215", ...
0.48849273
51
Attempts to find the current root directory and buildfile. If there is an active parse context (see do_in_context), then it is returned.
def qoEw(Emd4): if not Emd4._active: raise Emd4.ContextError('No parse context active.') return next(reversed(Emd4._active))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vZkS():\n try:\n return VN_1().path\n except VN_1.NotFoundError as e:\n print(tTpl.message, file=HwRy.stderr)\n HwRy.exit(1)", "def vi3q():\n LiBE = Hy7s.path.curdir\n hpsM = '/'\n OZh1 = 'build/core/envsetup.mk'\n EmMj = False\n while not EmMj and (not Hy7s.path.sam...
[ "0.65355784", "0.63290274", "0.62114334", "0.61818516", "0.6090002", "0.6030983", "0.5987923", "0.5898164", "0.585198", "0.5850418", "0.5839884", "0.57735956", "0.5767408", "0.5746805", "0.5734939", "0.57264405", "0.57254696", "0.5724036", "0.5717531", "0.568936", "0.5687703"...
0.0
-1
Returns True if the target has an associated set of Resources.
def Guzf(YKHO): return hasattr(YKHO, 'resources') and YKHO.resources
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, Eorv):\n return Eorv in YKHO.__resources or any((Eorv in WKvO for WKvO in YKHO._ResourceManager__m2m))", "def Guzf(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'has_resources')", "def xc3U(YKHO, pan_):\n return pan_ in YKHO.by_target", "def xc3U(YKHO, pan_):\n return pan_ in YKHO.b...
[ "0.7692587", "0.7580383", "0.7000313", "0.69733405", "0.6921182", "0.6350255", "0.62343407", "0.6219005", "0.62034744", "0.6183552", "0.61455035", "0.60499644", "0.6043979", "0.60056067", "0.59653795", "0.5958254", "0.59102476", "0.5906186", "0.58558685", "0.5837529", "0.5836...
0.79003406
0
Returns True if the target produces jvm bytecode.
def FiEg(YKHO): return YKHO.has_label('jvm')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jyzv(x6A0):\n return len(list(xU76.extract_jvm_targets(x6A0))) > 0", "def Iimi(YKHO):\n return YKHO.has_label('java')", "def cuhZ(YKHO):\n return False", "def oyPw():\n bLIw = '/usr/bin/java'\n if Hy7s.path.exists(bLIw):\n return True\n else:\n return False", "def WaB8(Y...
[ "0.6113026", "0.593943", "0.5920987", "0.5818367", "0.5815392", "0.56851655", "0.56776506", "0.56776506", "0.5463377", "0.5359638", "0.51747257", "0.51164854", "0.5112939", "0.50894845", "0.50706214", "0.5059117", "0.505871", "0.50468075", "0.5045934", "0.50324404", "0.499627...
0.70761895
0
Returns True if the target is a codegen target.
def WaB8(YKHO): return YKHO.has_label('codegen')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BBzU(YKHO, XNHl):\n return XNHl in YKHO.GetTargets()", "def qGc2(YKHO, pan_):\n raise NotImplementedError", "def slTm(YKHO):\n raise NotImplementedError('is_target')", "def EouN(YKHO):\n return YKHO.target is not None", "def n86s(YKHO, pan_, zaAa):\n return pan_ is YKHO", "def s6tw(YKH...
[ "0.65184885", "0.6311404", "0.6233278", "0.60397553", "0.59804773", "0.5975478", "0.59351647", "0.59137046", "0.573193", "0.56115997", "0.55241543", "0.55192214", "0.54925054", "0.5472164", "0.543736", "0.54287124", "0.5403867", "0.5363163", "0.5335047", "0.52997655", "0.5261...
0.78244454
0
Returns True if the target is an external jar library.
def qR4w(YKHO): return YKHO.has_label('jars')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vBn6(YKHO):\n return False", "def vMqA(xuBC):\n try:\n __import__(xuBC)\n return True\n except ImportError:\n return False", "def apey(YKHO, pmON):\n return pmON.endswith('.jar') or pmON.endswith('.war')", "def yyTx(mWFP):\n return yz_h(mWFP, DstP.core.item.TYPE_LIBRAR...
[ "0.6607769", "0.64056325", "0.6092842", "0.6040454", "0.5995577", "0.5992352", "0.5932786", "0.5864881", "0.5790971", "0.5770249", "0.57607496", "0.5733265", "0.55763084", "0.5486534", "0.54633474", "0.5459714", "0.54561114", "0.5400918", "0.53885704", "0.5382699", "0.5312309...
0.8017685
0
Walk of this target's dependency graph visiting each node exactly once. If a predicate is supplied it will be used to test each target before handing the target to work and descending. Work can return targets in which case these will be added to the walk candidate set if not already walked.
def ZAda(YKHO, Q5yx, lgNN=None): if not callable(Q5yx): raise ValueError('work must be callable but was %s' % Q5yx) if lgNN and (not callable(lgNN)): raise ValueError('predicate must be callable but was %s' % lgNN) YKHO._walk(set(), Q5yx, lgNN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aczU(YKHO):\n\n def WEWl(pan_, dixj, _SG0=False):\n x6A0 = []\n YKHO.build_graph.walk_transitive_dependency_graph([pan_.address], lambda WKvO: x6A0.append(WKvO), postorder=_SG0)\n YKHO.assertEquals(dixj, x6A0)\n\n def yu6p(pan_, dixj, _SG0=False):\n x6A0 = []\n YKHO.bui...
[ "0.57015526", "0.565162", "0.55614614", "0.541373", "0.5315292", "0.52826405", "0.52303743", "0.52255154", "0.52139246", "0.521296", "0.51706576", "0.51279414", "0.5103284", "0.50372046", "0.5001482", "0.49719846", "0.49513185", "0.49244615", "0.4903481", "0.49018523", "0.488...
0.69028664
0
Set a humanreadable description of this target.
def hvYl(YKHO, JBZA): YKHO.description = JBZA return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.description = JBZA", "def prlj(YKHO, JBZA):\n YKHO.description = str(JBZA)", "def AqxA(YKHO, JBZA):\n YKHO._description = JBZA", "def OfX3(YKHO, OfX3):\n ...
[ "0.8075867", "0.8023891", "0.8003722", "0.7985942", "0.7866003", "0.7787463", "0.77394664", "0.77182037", "0.77182037", "0.77182037", "0.77182037", "0.7622902", "0.758749", "0.758749", "0.758749", "0.758749", "0.758749", "0.758749", "0.758749", "0.758749", "0.758749", "0.75...
0.67449975
82
Mark the time at which this workunit ended.
def Os4s(YKHO): YKHO.end_time = ITS7.time() for hlel in YKHO._outputs.values(): hlel.close() QvDL = YKHO.has_label(AsTg.TOOL) pmON = YKHO.path() YKHO.run_tracker.cumulative_timings.add_timing(pmON, YKHO.duration(), QvDL) YKHO.run_tracker.self_timings.add_timing(pmON, YKHO._self_time(), Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TLFS(YKHO, CjKC):\n YKHO.log.info('This is the end of day {0}'.format(CjKC))\n YKHO.end_of_day = CjKC", "def lSz9(YKHO, lSz9):\n YKHO._time_finished = lSz9", "def daEM(YKHO) -> None:\n YKHO.end = qcWV.now()", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YK...
[ "0.66583097", "0.64449584", "0.6326872", "0.6289735", "0.6289735", "0.6265139", "0.6265139", "0.6234436", "0.62301135", "0.62172914", "0.62172914", "0.62172914", "0.6153627", "0.61258507", "0.61258507", "0.61258507", "0.6037034", "0.60273206", "0.60269415", "0.60118943", "0.5...
0.6112485
16
Returns the outcome of this workunit.
def gBjs(YKHO): return YKHO._outcome
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def msRu(YKHO):\n return YKHO.__outcome", "def gBjs(YKHO) -> str:\n return YKHO._obj._names['outcome']", "def hgTT(YKHO) -> None:\n pass", "def msRu(YKHO):\n if not YKHO.is_paid:\n raise ValueError(\"There isn't an outcome.\")\n return YKHO.team_a if YKHO.outcome else YKHO.team_b", "d...
[ "0.8430093", "0.7639671", "0.68954486", "0.6827789", "0.6820332", "0.67546606", "0.6625283", "0.66049665", "0.6515455", "0.648783", "0.64875865", "0.64037997", "0.63969594", "0.6347387", "0.6289971", "0.6236679", "0.62187785", "0.62035197", "0.61907107", "0.61661315", "0.6153...
0.8345807
1
Returns the output buffer for the specified output name (e.g., 'stdout').
def hlel(YKHO, mWFP): r8hN = AsTg._valid_name_re.match(mWFP) if not r8hN or r8hN.group(0) != mWFP: raise Exception('Invalid output name: %s' % mWFP) if mWFP not in YKHO._outputs: pmON = Hy7s.path.join(YKHO.run_tracker.info_dir, 'tool_outputs', '%s.%s' % (YKHO.id, mWFP)) e3xt(pmON) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LI2u(YKHO, mWFP='0'):\n if mWFP not in YKHO._outputs:\n raise ValueError(\"Invalid port name '{0}'\".format(mWFP))\n return YKHO._outputs[mWFP]", "def R9W1(mWFP=None):\n return KiuJ(mWFP)", "def fyel(YKHO):\n return YKHO.__buffername", "def Q30W(YKHO, mWFP):\n for SRYB in YKHO.outpu...
[ "0.6408418", "0.62963146", "0.6108272", "0.60107785", "0.5945936", "0.5822978", "0.58208215", "0.56504697", "0.5643584", "0.56067836", "0.5450599", "0.54426116", "0.54415244", "0.54403776", "0.54354566", "0.54241055", "0.53755194", "0.5341385", "0.52955866", "0.5259623", "0.5...
0.6497121
0
Returns the time (in fractional seconds) spent in this workunit and its children.
def WbTE(YKHO): return (YKHO.end_time or ITS7.time()) - YKHO.start_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pb32(YKHO):\n return YKHO.duration() - sum([aUGN.duration() for aUGN in YKHO.children])", "def qR4o(YKHO) -> 'float':\n return pZ_q.doaesprit_sptr_pc_work_time_total(YKHO)", "def qR4o(YKHO) -> 'float':\n return pZ_q.beamformer_sptr_pc_work_time_total(YKHO)", "def qR4o(YKHO):\n return QGRL.cle...
[ "0.751342", "0.6922531", "0.67806494", "0.6778829", "0.6721197", "0.6665561", "0.66495526", "0.6620884", "0.6608558", "0.6594579", "0.6567914", "0.65523624", "0.65499604", "0.65457314", "0.65423316", "0.6523997", "0.6522694", "0.65048695", "0.6495889", "0.64888203", "0.647029...
0.0
-1
A convenient string representation of start_time.
def s700(YKHO): return ITS7.strftime('%H:%M:%S', ITS7.localtime(YKHO.start_time))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSV8(YKHO):\n return str(YKHO._start_time)", "def SWox(YKHO) -> str:\n return YKHO._start_time", "def SWox(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_time')", "def SWox(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_time')", "def B6Zs(YKHO):\n return YKHO._startTime.strftime('%Y-%m-%d %H...
[ "0.8557614", "0.8122252", "0.79897195", "0.79897195", "0.7807414", "0.7771319", "0.7723566", "0.763666", "0.7612324", "0.75345695", "0.75324535", "0.74201363", "0.7406743", "0.7361589", "0.72851455", "0.7241088", "0.7241088", "0.7241088", "0.7241088", "0.7241088", "0.7241088"...
0.87892824
0
Returns the time spent in this workunit outside of any children.
def pb32(YKHO): return YKHO.duration() - sum([aUGN.duration() for aUGN in YKHO.children])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PHUP(YKHO):\n return 0 if len(YKHO.children) == 0 else YKHO._self_time()", "def ra5c():\n if eHNT.root.stopped:\n return jth9.deepcopy(eHNT.root.times)\n else:\n a1PO = FusX()\n WXkz = Xwve.collapse_times()\n eHNT.root.self_cut += FusX() - a1PO\n return WXkz", "d...
[ "0.67240816", "0.65793294", "0.65013397", "0.6419746", "0.63569784", "0.6348154", "0.6246945", "0.6193087", "0.61845595", "0.6150532", "0.61189747", "0.61183774", "0.6102255", "0.6089984", "0.6084942", "0.60783756", "0.6074338", "0.6052624", "0.60415155", "0.59795964", "0.597...
0.7333608
0
Returns the phase timings as an ordered mapping from the ``Phase`` objects executed to ordered mappings of the ``Goal`` objects executed in the phase to the list of timings corresponding to each execution of the goal. Note that the list of timings will be singleton for all goals except those participating in a ``Group`...
def RcAn(YKHO): return YKHO._timings
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def all():\n return sorted(sgHw._goals_by_phase.items(), key=lambda q2Xo: q2Xo[0].name)", "def RnoT(YKHO):\n JT9N = cr9B.cache_to_phase(YKHO.cache, YKHO.ij)\n return JT9N", "def vabb(RnoT):\n Mol0 = set()\n\n def T4Wy(Rebm):\n for JT9N in Rebm:\n if JT9N not in Mol0:\n ...
[ "0.6546141", "0.5793754", "0.5691994", "0.56810796", "0.55925906", "0.5471928", "0.5404376", "0.5359397", "0.5343559", "0.5330451", "0.5328711", "0.5321367", "0.5317002", "0.5204583", "0.509127", "0.50337595", "0.5033037", "0.50305337", "0.4926533", "0.49257073", "0.49203798"...
0.5312508
13
Returns the total elapsed time in fractional seconds from the creation of this timer until it was ``finished``.
def N8Pq(YKHO): if YKHO._elapsed is None: raise ValueError('Timer has not been finished yet.') return YKHO._elapsed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N8Pq(YKHO):\n return YKHO.__last_time() - YKHO.__start", "def N8Pq(YKHO):\n return qcWV.datetime.now() - YKHO.start", "def Mo6K(YKHO):\n RA_F = YKHO._now() - YKHO.start\n return RA_F.microseconds / 1000.0", "def WbTE(YKHO):\n CiFP = ITS7.time() if YKHO.ended is None else YKHO.ended\n re...
[ "0.77084005", "0.7541916", "0.7507272", "0.74996823", "0.7450589", "0.7403515", "0.740068", "0.73852015", "0.7373394", "0.7359754", "0.73530275", "0.72865206", "0.7281267", "0.72789055", "0.7273894", "0.72543705", "0.72457296", "0.7235893", "0.7230496", "0.7220049", "0.719861...
0.79940045
0
Creates filename from name and extension ensuring that the final length is within the max_length constraint. By default the length is capped to work on most filesystems and the fallback to achieve shortening is a sha1 hash of the proposed name. Raises ValueError if the proposed name is not a simple filename but a file ...
def M5LH(mWFP, Fst3=None, dKPB=None, BcCR=dbq6): if Hy7s.path.basename(mWFP) != mWFP: raise ValueError('Name must be a filename, handed a path: %s' % mWFP) YBcr = Fst3 or '' Ux0P = mWFP + YBcr if len(Ux0P) <= BcCR: return Ux0P else: dKPB = dKPB or HBct.sha1() dKPB.upd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M5LH(mWFP, Fst3=None, dKPB=None, BcCR=dbq6):\n if Hy7s.path.basename(mWFP) != mWFP:\n raise ValueError(f'Name must be a filename, handed a path: {mWFP}')\n YBcr = Fst3 or ''\n Ux0P = mWFP + YBcr\n if len(Ux0P) <= BcCR:\n return Ux0P\n else:\n dKPB = dKPB or HBct.sha1()\n ...
[ "0.84293497", "0.64527684", "0.63747466", "0.63516045", "0.62751186", "0.62378067", "0.61047363", "0.6023486", "0.5947538", "0.58837813", "0.58663726", "0.5827031", "0.58148277", "0.5813108", "0.5812346", "0.58097243", "0.5794734", "0.5791692", "0.57503885", "0.5726602", "0.5...
0.83847046
1
Returns the Products manager for the current run.
def Ldyl(YKHO): return YKHO._products
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vzSP(E_qD, ZZYH):\n return rJOa(E_qD)", "def eCGt(YKHO):\n import os\n from drift.core import manager\n if not os.path.exists(YKHO.product_directory):\n raise RuntimeError('Products do not exist.')\n TlDD = manager.ProductManager.from_config(YKHO.product_directory)\n return TlDD", ...
[ "0.6905949", "0.66952115", "0.65361863", "0.65289164", "0.6500319", "0.6393048", "0.6257106", "0.62255293", "0.61734337", "0.6117789", "0.6067508", "0.6047345", "0.59441334", "0.58449745", "0.57325923", "0.56837934", "0.567239", "0.5647442", "0.5614571", "0.56131035", "0.5613...
0.5692711
15
Find the java home for the JVM we use.
def a4ge(YKHO): return Hy7s.path.realpath(Hy7s.path.dirname(YKHO.java_sysprops['java.home']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uv9X(YKHO):\n return YKHO.java_home", "def kZiy(YKHO):\n return YKHO._get_system_properties(YKHO.java)['java.home']", "def TjTF():\n from os.path import expanduser\n kZiy = expanduser('~')\n return kZiy", "def GwqS():\n kZiy = Hy7s.getenv('HOME')\n if kZiy is None:\n kZiy = Hy...
[ "0.78223747", "0.78062963", "0.72553796", "0.6929035", "0.67933464", "0.67928267", "0.67928267", "0.6782995", "0.66811043", "0.6676367", "0.66734946", "0.66366285", "0.6488899", "0.6451782", "0.64473885", "0.6281732", "0.62526315", "0.6233529", "0.622607", "0.6213743", "0.609...
0.81118643
0
Adds a mapping of products for the given target, basedir pair. If product_paths are specified, these will overwrite any existing mapping for this target. If product_paths is omitted, the current mutable list of mapped products for this target and basedir is returned for appending.
def H2v5(YKHO, pan_, ObT1, Yw0j=None): if Yw0j is not None: YKHO.by_target[pan_][ObT1].extend(Yw0j) else: return YKHO.by_target[pan_][ObT1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, pan_, ObT1, Yw0j=None):\n if Yw0j is not None:\n YKHO.by_target[pan_][ObT1].extend(Yw0j)\n else:\n return YKHO.by_target[pan_][ObT1]", "def bVcP(YKHO, dIeA, QTBn):\n kjcf = YKHO.context.products.get('classes')\n for pan_, c7pe in dIeA.sources_by_target.items():\n f...
[ "0.7951729", "0.6431901", "0.63163954", "0.61834157", "0.51948726", "0.51652944", "0.507001", "0.5050496", "0.49974963", "0.48964638", "0.48926276", "0.48558956", "0.4840227", "0.4835926", "0.4821363", "0.47933367", "0.4786089", "0.47640598", "0.4763687", "0.47128928", "0.471...
0.7978093
0
Returns whether we have a mapping for the specified target.
def xc3U(YKHO, pan_): return pan_ in YKHO.by_target
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xc3U(YKHO, pan_):\n return pan_ in YKHO.by_target", "def EouN(YKHO):\n return YKHO.target is not None", "def EouN(YKHO):\n return YKHO._has_target", "def sCxZ(YKHO):\n return YKHO.mapping1 is not None or YKHO.mapping2 is not None", "def BBzU(YKHO, XNHl):\n return XNHl in YKHO.GetTargets(...
[ "0.73557633", "0.69732815", "0.69584435", "0.6905861", "0.6813533", "0.6759182", "0.65867436", "0.65128756", "0.65077525", "0.6477814", "0.6437478", "0.6423588", "0.62367535", "0.6204939", "0.61660296", "0.60335207", "0.6014584", "0.6005983", "0.59553087", "0.59007823", "0.58...
0.7371571
0
Returns the product mapping for the given target as a tuple of (basedir, products list). Can return None if there is no mapping for the given target.
def NMoC(YKHO, pan_): return YKHO.by_target.get(pan_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZrWu(YKHO, quJO, pan_):\n g8Hb = YKHO.get(quJO).get(pan_)\n if len(g8Hb) != 1:\n raise MMA9('{} directories in product mapping: requires exactly 1.'.format(len(g8Hb)))\n for bGrB, RRlC in g8Hb.items():\n if len(RRlC) != 1:\n raise MMA9('{} files in target directory: requires e...
[ "0.61712605", "0.5941049", "0.5773189", "0.57697004", "0.572162", "0.53904057", "0.531978", "0.52850556", "0.5252307", "0.5241823", "0.5184033", "0.507396", "0.4961571", "0.49125117", "0.48863629", "0.48737928", "0.4863021", "0.47644025", "0.47568613", "0.4756576", "0.4745931...
0.43447536
60
Returns a ProductMapping for the given type name.
def NMoC(YKHO, QNO6): return YKHO.require(QNO6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, QNO6):\n return YKHO.products.setdefault(QNO6, c0_m.ProductMapping(QNO6))", "def s9kb(YKHO, kN9s):\n YAg3 = YKHO.mappers[kN9s]\n return YAg3", "def VTqW(Emd4):\n ...", "def ycGP(c9WI):\n return Ig3_[c9WI]", "def NMoC(Emd4, mWFP):\n Emd4.initialize()\n if isinstance(mWFP,...
[ "0.7094994", "0.66685987", "0.58657485", "0.5816918", "0.5785912", "0.56980616", "0.56955355", "0.5667927", "0.5665822", "0.5646994", "0.56456447", "0.55992883", "0.5557752", "0.5436814", "0.5357321", "0.53345436", "0.53335345", "0.52325773", "0.5231652", "0.5217598", "0.5172...
0.0
-1
Returns a data product. If the product isn't found, returns None, unless init_func is set, in which case the product's value is set to the return value of init_func(), and returned.
def yLtf(YKHO, QNO6, yOVV=None): if QNO6 not in YKHO.data_products: if not yOVV: return None YKHO.data_products[QNO6] = yOVV() return YKHO.data_products.get(QNO6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLtf(YKHO, QNO6, yOVV=None):\n if QNO6 not in YKHO.data_products:\n if not yOVV:\n return None\n YKHO.data_products[QNO6] = yOVV()\n return YKHO.data_products.get(QNO6)", "def iIby(YKHO, Lx3t, kc1W, azoT, Es0b, *qIxc):\n nPrm = None\n return nPrm", "def AI9R(YKHO, Ilxn)...
[ "0.7503124", "0.61030227", "0.5636672", "0.5612624", "0.5560435", "0.55210704", "0.55192065", "0.54935455", "0.54615587", "0.54494035", "0.54494035", "0.5440747", "0.53166986", "0.5308677", "0.52417004", "0.5175901", "0.51576596", "0.5151309", "0.5082046", "0.503988", "0.5020...
0.74357015
1
Returns the bootstrapped ivysettings.xml path. By default the ivy.ivy_settings value found in pants.ini but can be overridden by via the PANTS_IVY_SETTINGS_XML environment variable. If neither is specified defaults to ivy's built in default ivysettings.xml of standard public resolvers.
def bU3v(YKHO): return Hy7s.getenv('PANTS_IVY_SETTINGS_XML') or YKHO._config.get('ivy', 'ivy_settings')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SYDB(YKHO):\n return YKHO._ivy_settings", "def EdxE(YKHO):\n return Hy7s.getenv('PANTS_IVY_CACHE_DIR') or YKHO._config.get('ivy', 'cache_dir', default=Hy7s.path.expanduser('~/.ivy2/cache'))", "def pmON(YKHO):\n if YKHO._root_dir is None:\n if 'PANTS_BUILD_ROOT' in Hy7s.environ:\n ...
[ "0.66452134", "0.6102432", "0.5878847", "0.58632654", "0.5857292", "0.5831037", "0.57825667", "0.5627268", "0.56239074", "0.55916613", "0.5588968", "0.5588421", "0.558049", "0.5552802", "0.55480367", "0.55080336", "0.5494154", "0.54907537", "0.5455142", "0.54410636", "0.54215...
0.739127
0
Returns the ivysettings.xml path used by this `Ivy` instance.
def SYDB(YKHO): return YKHO._ivy_settings
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bU3v(YKHO):\n return Hy7s.getenv('PANTS_IVY_SETTINGS_XML') or YKHO._config.get('ivy', 'ivy_settings')", "def dPDn(YKHO):\n return YKHO._settingsFilePath", "def hfym(YKHO):\n return YKHO._module.root_path", "def pmON(YKHO):\n return Hy7s.path.join(YKHO.config.get('path', Hy7s.getcwd()))", "d...
[ "0.7277745", "0.6748645", "0.6607087", "0.65193695", "0.6455585", "0.6382432", "0.6361737", "0.63443726", "0.6315771", "0.63088703", "0.6242978", "0.6239453", "0.62222713", "0.61757535", "0.6141832", "0.61004347", "0.6073816", "0.5994944", "0.59816796", "0.59371847", "0.59320...
0.7213783
1
Returns the distribution JAVA_HOME.
def kZiy(YKHO): return YKHO._get_system_properties(YKHO.java)['java.home']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4ge(YKHO):\n return Hy7s.path.realpath(Hy7s.path.dirname(YKHO.java_sysprops['java.home']))", "def uv9X(YKHO):\n return YKHO.java_home", "def IlbN():\n return NvRc('java')", "def hxxT(YKHO):\n return Hy7s.environ['HOME']", "def hxxT(YKHO):\n return Hy7s.environ['HOME']", "def keWj():\n...
[ "0.7411168", "0.73842305", "0.706141", "0.6535919", "0.6535919", "0.64346176", "0.6354623", "0.61793345", "0.61526203", "0.6025975", "0.60118353", "0.59980017", "0.5983933", "0.5978758", "0.5891497", "0.58348995", "0.5760189", "0.57564396", "0.5726489", "0.5704504", "0.570219...
0.7514729
0
Creates a Fetcher that uses the given requests api object. By default uses the requests module, but can be any object conforming to the requests api like a requests Session object.
def FIMM(YKHO, eFQ7=None): YKHO._requests = eFQ7 or G4JS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rXxR() -> Y8oF:\n return Y8oF()", "def ukSp(*qIxc, **B2fa):\n geh0 = G4JS.request(*qIxc, **B2fa)\n return _dY_(geh0)", "def gte4(YEnM):\n cuiw = G4JS.Session()\n if YEnM.user is not None and YEnM.password is not None:\n cuiw.auth = (YEnM.user, YEnM.password)\n if YEnM.proxy is not ...
[ "0.61580867", "0.58132315", "0.56860733", "0.5545081", "0.5471927", "0.5471927", "0.5393275", "0.53434694", "0.5306117", "0.5305791", "0.53025234", "0.5290272", "0.5290117", "0.5286364", "0.5283704", "0.5261452", "0.5252235", "0.5244594", "0.5236712", "0.5229315", "0.521027",...
0.66185606
0
Gets the wiki specific config for the given wiki if present or else returns None.
def YCIZ(YKHO, ZHlP): return YKHO._wikis.get(ZHlP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD() -> h8nf[PSrQ]:\n return kNfJ.get()", "def tgzD(YKHO, cEyu, xC3W):\n if xC3W in YKHO._config[cEyu]:\n return YKHO._config[cEyu][xC3W]\n else:\n return None", "def A365(YKHO):\n GPtr = kwpV.ConfigParser()\n GPtr.read(YKHO.wired_conf)\n lYXm = GPtr.sections()\n for z3...
[ "0.6112854", "0.5994643", "0.5783921", "0.55512077", "0.554498", "0.5518384", "0.54807335", "0.5445101", "0.5442028", "0.54253757", "0.54114145", "0.53311473", "0.5289798", "0.527764", "0.5277572", "0.52656275", "0.5256929", "0.52560806", "0.5248089", "0.52399755", "0.5238302...
0.8581994
0
Sets an alternative artifact to fetch or adds additional artifacts if called multiple times.
def Y8lD(YKHO, mWFP=None, kN9s=None, YBcr=None, bD7m=None, wOGa=None, AmnI=None): dIeA = iWsA(mWFP or YKHO.name, type_=kN9s, ext=YBcr, url=bD7m, conf=wOGa, classifier=AmnI) YKHO.artifacts.append(dIeA) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NAPt(qIxc, dIeA: Artifact):\n if dIeA.producing_task_name not in qIxc._artifacts:\n qIxc._artifacts[dIeA.producing_task_name] = []\n for l34Y in qIxc._artifacts[dIeA.producing_task_name]:\n if l34Y.name == dIeA.name:\n l34Y = dIeA\n return\n qIxc._artifacts[dIeA.pro...
[ "0.57180816", "0.5593395", "0.52047217", "0.50876915", "0.50335443", "0.50158924", "0.49785623", "0.4954411", "0.4935364", "0.48879468", "0.4866662", "0.48612756", "0.4792786", "0.47888058", "0.47788522", "0.47725075", "0.47488314", "0.4679705", "0.46541345", "0.46419668", "0...
0.48836187
10
The postlaunchtime agent fully qualified class name. Either ``agent_class`` or ``premain`` will be defined and the other will be `None`.
def Lrgl(YKHO): return YKHO._agent_class
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aOxT(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'default_runtime_class_name')", "def aOxT(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'default_runtime_class_name')", "def _2sc(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'class_name')", "def M44n(YKHO) -> h8nf...
[ "0.5960039", "0.5960039", "0.5749209", "0.5624605", "0.5577515", "0.5577313", "0.55544835", "0.54081637", "0.53838724", "0.5367785", "0.53115517", "0.5273957", "0.5264839", "0.52558374", "0.52558374", "0.52554846", "0.5242869", "0.5184812", "0.5184812", "0.5111621", "0.510798...
0.69331545
0
Finds the source root for the given target. If none is registered, returns the parent directory of the target's BUILD file.
def neBz(Emd4, pan_): lQDD = Hy7s.path.relpath(pan_.address.buildfile.parent_path, vZkS()) def Go4X(): for jNha, SnBA in Emd4._TYPES_BY_ROOT.items(): if lQDD.startswith(jNha): if SnBA and (not isinstance(pan_, tuple(SnBA))): raise GbLl(pan_, 'Target type ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZxP(pan_: Path) -> GkAb:\n XP5J = GkAb('.').resolve()\n for bGrB in range(1000):\n try:\n SkC9 = fyoP(pan_, XP5J)\n return SkC9.parent\n except p76t:\n XP5J = XP5J.parent\n raise p76t", "def Au86():\n return Hy7s.path.abspath(Hy7s.path.dirname(xAKo)...
[ "0.73706114", "0.6738307", "0.66704947", "0.6637995", "0.6495167", "0.6487533", "0.64494246", "0.6435465", "0.63865393", "0.63343835", "0.6229706", "0.6224849", "0.62037325", "0.62037325", "0.62037325", "0.62037325", "0.60740334", "0.60633886", "0.6048729", "0.60486615", "0.6...
0.7638221
0
Returns the set of target types rooted at root.
def SnBA(Emd4, tk5Y): return Emd4._TYPES_BY_ROOT[tk5Y]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPJ1(Emd4, wYEv):\n return Emd4._ROOTS_BY_TYPE[wYEv]", "def l17p(Emd4):\n return dict(Emd4._TYPES_BY_ROOT)", "def cM5K(YKHO):\n return YKHO._target_roots", "def x6A0(Emd4, Cqok):\n return set((pan_ for pan_, bGrB in NlZ9(Emd4.build_root).parse(Cqok) if pan_))", "def Gt3d():\n rprr = tiPr...
[ "0.7794422", "0.6728062", "0.6715876", "0.63980365", "0.6359944", "0.60857785", "0.6069921", "0.60230654", "0.6014031", "0.58893853", "0.58259284", "0.58023995", "0.5776046", "0.5729142", "0.5726099", "0.5705667", "0.5696364", "0.5599272", "0.5590901", "0.55519664", "0.551826...
0.75004065
1
Validate each target. Returns a topologically ordered set of VersionedTargets, each representing one input target.
def rq_k(YKHO, x6A0): UyXb = YKHO._order_target_list(x6A0) Acif = [] fLy6 = {} cj5S = {} for pan_ in UyXb: O5qg = set() if YKHO._invalidate_dependents and hasattr(pan_, 'dependencies'): for kbO9 in pan_.dependencies: if isinstance(kbO9, nYXY): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FEQq(YKHO):\n return YKHO._combined_invalid_versioned_targets.targets", "def MB6m(YKHO):\n return YKHO._combined_all_versioned_targets.targets", "def HZTF(YKHO):\n return YKHO._all_versioned_targets", "def x6A0(Emd4, Cqok):\n return set((pan_ for pan_, bGrB in NlZ9(Emd4.build_root).parse(Cqok...
[ "0.64057565", "0.6295367", "0.61033696", "0.59484154", "0.5847968", "0.5841544", "0.5782443", "0.56371206", "0.5635663", "0.56042", "0.55892", "0.55732477", "0.55506396", "0.55481476", "0.5543287", "0.55361706", "0.5535824", "0.5471386", "0.54452", "0.5419666", "0.5419045", ...
0.70174634
0
Gets the set of targets that share exclusives.
def kIV1(YKHO, H5ew): return YKHO.key_to_targets[H5ew]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KQvz(YKHO, x6A0):\n oFi7 = oRi_(set)\n for a1PO in x6A0:\n if a1PO.exclusives is not None:\n for G1Hx in a1PO.exclusives:\n oFi7[G1Hx] |= a1PO.exclusives[G1Hx]\n VYTI = oRi_(set)\n for G1Hx in oFi7:\n if len(oFi7[G1Hx]) > 1:\n VYTI[G1Hx] = oFi7[G1H...
[ "0.67179936", "0.62366706", "0.61901206", "0.61854243", "0.6017103", "0.59737426", "0.59115326", "0.58502066", "0.5817254", "0.5718862", "0.5677231", "0.56390846", "0.56061614", "0.56041795", "0.55346924", "0.54289085", "0.5406269", "0.5396826", "0.538914", "0.5368443", "0.53...
0.0
-1
Returns the set of unique extensions (including the .) from the given resource files.
def wT6s(JKCy): if JKCy: for Eorv in JKCy: bGrB, YBcr = Hy7s.path.splitext(Eorv) yield YBcr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UtEm():\n IyUm = []\n for nUeQ in Hy7s.listdir(Hy7s.getcwd()):\n if Hy7s.path.isfile(nUeQ):\n GkYq = Hy7s.path.splitext(nUeQ)\n Va2z = GkYq[1]\n IyUm.append(Va2z)\n return [nUeQ for nUeQ in IyUm]", "def RRlC(YKHO) -> set[str]:\n return set()", "def TLPL(Y...
[ "0.6715423", "0.6557292", "0.65498835", "0.65272665", "0.64910775", "0.6484212", "0.6482426", "0.6472521", "0.62891704", "0.62653375", "0.622126", "0.62154514", "0.6200901", "0.6195072", "0.61864555", "0.6182542", "0.6106631", "0.60898733", "0.6089785", "0.60734624", "0.60214...
0.7352678
0
Subclasses can override to determine whether a given artifact represents a classpath artifact.
def apey(YKHO, pmON): return pmON.endswith('.jar') or pmON.endswith('.war')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kNHU(YKHO, QAIN, mWFP, pmON):\n return YKHO.is_classpath_artifact(pmON)", "def qR4w(YKHO):\n return YKHO.has_label('jars')", "def naGi(YKHO, G_if: list[T]) -> bool:\n raise NotImplementedError(\"Subclass didn't implement Check method.\")", "def WynG(YKHO, BWXx: Any) -> bool:\n if YKHO == YKHO...
[ "0.7618151", "0.5635232", "0.5566645", "0.54749215", "0.5388443", "0.518531", "0.50553733", "0.5039999", "0.49797288", "0.49603236", "0.49519783", "0.49519682", "0.49400797", "0.49358827", "0.48931247", "0.48797822", "0.48482716", "0.48402768", "0.4832372", "0.48065355", "0.4...
0.78343743
0
Saves the pushdb as a properties file to the given path.
def ChRH(YKHO, pmON): with open(pmON, 'w') as lhy8: dsbX.dump(YKHO._props, lhy8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LHWC(YKHO):\n nPrm = qQXR.dumps(YKHO.cfg)\n try:\n nUeQ = open(YKHO.cfg_file_name, 'w')\n nUeQ.write(nPrm)\n except OSError as err:\n print(\"can't save property: {0}\".format(XObx))\n else:\n nUeQ.close()", "def xkzz(YKHO, pmON):\n if pmON.endswith('.gz'):\n ...
[ "0.66015136", "0.63989455", "0.6369433", "0.6272065", "0.62695974", "0.62425905", "0.6191169", "0.6175053", "0.61693084", "0.6149895", "0.6149895", "0.6149895", "0.6133867", "0.6104164", "0.6084475", "0.6073259", "0.6061787", "0.60375136", "0.60095966", "0.60078454", "0.60078...
0.7039392
0
Returns the products in this analysis. Returns a map of > list of classfiles, relative to the classes dir.
def oLdu(YKHO): cBQy = oRi_(list) for RvQF in YKHO.pcd_entries: FVDY = RvQF[1] cBQy[FVDY].append(RvQF[0] + '.class') return cBQy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ldyl(YKHO):\n jfj6 = []\n for YBcr in YKHO.exts:\n QRFO = msfn(YBcr, YKHO.node.opath_from_ext(YBcr))\n jfj6.append(QRFO)\n return jfj6", "def HJmR(YKHO):\n return YKHO.classes", "def Bpgq(YKHO, pmcH=None):\n if pmcH is None:\n pmcH = YKHO._analysis_file\n if not Hy7s....
[ "0.61733264", "0.6111549", "0.60902", "0.6040727", "0.59079903", "0.59002995", "0.58953214", "0.5891696", "0.58745205", "0.58628076", "0.57296455", "0.57267636", "0.57062024", "0.5693807", "0.5692792", "0.5675197", "0.5674624", "0.56467175", "0.56147516", "0.5613027", "0.5613...
0.78736705
0
Returns a map from abs path of source, class or jar file to an OrderedSet of targets. The value is usually a singleton, because a source or class file belongs to a single target. However a single jar may be provided (transitively or intransitively) by multiple JarLibrary targets. But if there is a JarLibrary target tha...
def hEzZ(YKHO): Rg3B = oRi_(j_2z) Zg5_ = oRi_(set) with YKHO._context.new_workunit(name='map_sources'): FYF3 = vZkS() for pan_ in YKHO._context.targets(): if isinstance(pan_, qyGl): for zZcM in pan_.sources_relative_to_buildroot(): Rg3B[Hy7s.pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rlKw(YKHO, x6A0):\n\n def ymjl(pan_):\n c7pe = [KCHu for KCHu in pan_.sources_relative_to_buildroot() if KCHu.endswith(YKHO._file_suffix)]\n if hasattr(pan_, 'java_sources') and pan_.java_sources:\n c7pe.extend(YKHO._resolve_target_sources(pan_.java_sources, '.java'))\n retur...
[ "0.6452099", "0.6226607", "0.58485216", "0.5750565", "0.5680004", "0.56624186", "0.5604147", "0.5521759", "0.54561764", "0.5454915", "0.5440344", "0.53742075", "0.5355965", "0.5313585", "0.53030914", "0.52828914", "0.5280372", "0.5244346", "0.5240584", "0.5225448", "0.521574"...
0.72231436
0
Merges multiple dicts into one. Assumes keys don't overlap.
def roQF(fgcx): U5bT = oRi_(list) for Csk6 in fgcx: U5bT.update(Csk6) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roQF(*fgcx):\n Aofo = {}\n for Csk6 in fgcx:\n Aofo.update(Csk6)\n return Aofo", "def mDTE(fgcx):\n Aofo = fgcx[0]\n for YRbF in range(1, len(fgcx)):\n Aofo = jFje(Aofo, fgcx[YRbF])\n return Aofo", "def roQF(irHP):\n return dict(Hs6x.chain.from_iterable([WKvO.items() for ...
[ "0.7751667", "0.7701522", "0.76605755", "0.76173854", "0.7593822", "0.7550813", "0.7528197", "0.7528197", "0.7528197", "0.7528197", "0.7528197", "0.7528197", "0.74598587", "0.7440558", "0.74343336", "0.7379057", "0.73607373", "0.7359268", "0.7332238", "0.7191667", "0.71851337...
0.75408036
6
Split a dict by its keys.
def RSSC(YKHO, Csk6, RYsB): U5bT = [] for lpha in RYsB: So0M = oRi_(list) for eHNT in lpha: if eHNT in Csk6: So0M[eHNT] = Csk6[eHNT] U5bT.append(So0M) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MeJZ(WYvl, gitN):\n fgcx = list()\n for P8oC in gitN:\n if isinstance(P8oC, dict):\n KdWZ = P8oC.keys()\n else:\n KdWZ = P8oC\n TDnD = dict()\n for H5ew, BWXx in WYvl.items():\n if H5ew in KdWZ:\n TDnD[H5ew] = BWXx\n fgcx....
[ "0.73201674", "0.7221838", "0.7008702", "0.65600055", "0.61795133", "0.59824604", "0.58231384", "0.57981265", "0.5665848", "0.562459", "0.5602924", "0.55899197", "0.5580749", "0.5575269", "0.5566733", "0.55489314", "0.55478555", "0.5538946", "0.5536734", "0.5525782", "0.55056...
0.6712232
3
Convert snake casing where present to camel casing
def TY6I(vIwR): return ''.join((GIN8.capitalize() for GIN8 in vIwR.split('_')))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kCQi(BWXx):\n V22M = BWXx.strip('_').split('_')\n return V22M[0].lower() + ''.join([GIN8.capitalize() for GIN8 in V22M[1:]])", "def kCQi(BQoY: str) -> str:\n V22M = BQoY.strip('_').split('_')\n return V22M[0] + ''.join((GIN8[:1].upper() + GIN8[1:] for GIN8 in V22M[1:]))", "def hr_R(GIN8):\n ...
[ "0.81641585", "0.8156515", "0.8125737", "0.8125737", "0.8125095", "0.8051559", "0.80136764", "0.7937353", "0.79109627", "0.7905917", "0.7889227", "0.7786045", "0.7779311", "0.77601343", "0.7733838", "0.7719823", "0.77150065", "0.7684597", "0.7671922", "0.7637715", "0.76268554...
0.0
-1
Set the product type for this task. By default, each task is considered as creating a unique product type. Subclasses can override this to specify a shared product type, e.g., 'classes'. Tasks with the same product type can invalidate each other's targets, e.g., if a ScalaLibrary depends on a JavaLibrary, a change to t...
def quJO(YKHO): return YKHO.__class__.__name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qks8(YKHO) -> None:\n GOfN = YKHO.split_name[2][:3]\n YKHO.product_type = getattr(uJnN, GOfN)\n if YKHO.product_type == uJnN.L1B:\n YKHO.is_ortho = False", "def quJO(YKHO, quJO):\n if quJO is None:\n raise ValueError('Invalid value for `product_type`, must not be `None`')\n YKHO....
[ "0.7141705", "0.66930944", "0.6678909", "0.66214865", "0.64652187", "0.62416387", "0.61812896", "0.58867735", "0.5842661", "0.5842661", "0.578513", "0.574514", "0.5709794", "0.5510009", "0.549637", "0.5483195", "0.54654753", "0.5416972", "0.54164714", "0.5399081", "0.5394564"...
0.62549657
5
Finds the root thrift files in the graph formed by sources and their recursive includes.
def VtTf(kbBE, c7pe, RKD7=None): gk7T = set(c7pe) for JZXy in c7pe: gk7T.difference_update(bE40(kbBE, JZXy, log=RKD7)) return gk7T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _yaH(x6A0, I5xM):\n kbBE, c7pe = Ifvn(x6A0, I5xM)\n c7pe = VtTf(kbBE, c7pe)\n return (kbBE, c7pe)", "def jLVr(YKHO, kwJ7, Fst3='.py'):\n print('finding ' + Fst3 + '...\\n')\n D948 = []\n JR8M = {}\n for pGQh, iIh5, iumf in Hy7s.walk(kwJ7):\n for Ux0P in iumf:\n if Ux0P[...
[ "0.61078346", "0.6089461", "0.6065815", "0.60628664", "0.5987996", "0.5974423", "0.5958181", "0.59190553", "0.58970934", "0.5883647", "0.58821446", "0.580816", "0.57954234", "0.5789457", "0.57821864", "0.57640934", "0.576076", "0.5756035", "0.57484615", "0.5741834", "0.569903...
0.67794853
0
A utility shortcut function to parse a thrift json object of the specified class.
def YhsH(nMY2, XpMh): return qQXR.loads(nMY2, cls=XvVy, root_thrift_class=XpMh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K3BH(Emd4, zEKB: Text, iGZr=False):\n zw0y = qQXR.loads(zEKB)\n if iGZr:\n return Emd4(**zw0y)\n else:\n return Emd4.from_dict(zw0y, return_instance=True, return_unused=False)", "def ZYJm(Emd4, nPrm):\n return _klG[nPrm['timeref_type']].fromJSON(nPrm)", "def pktP(Emd4, Fg_i):\n ...
[ "0.5852627", "0.5816089", "0.572272", "0.5720337", "0.569608", "0.5664953", "0.5614519", "0.55865866", "0.5580013", "0.5570335", "0.5566752", "0.55112827", "0.54939944", "0.54762274", "0.54627985", "0.5444885", "0.5444432", "0.5419229", "0.5384911", "0.5381221", "0.53712845",...
0.71346414
0
Returns the canonical BUILD file path for the given relative build path.
def n8un(Emd4, PsRC): if Hy7s.path.basename(PsRC).startswith('BUILD'): return PsRC else: return Hy7s.path.join(PsRC, 'BUILD')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mvpk(YKHO):\n return zOLB('..', YKHO.build_dirname)", "def t_yv(Ux0P):\n u54L = len(Hy7s.path.abspath(N7Kc)) + 1\n return Hy7s.path.abspath(Ux0P)[u54L:]", "def KI_k(pmON):\n if Hy7s.path.isdir(pmON):\n AGPF = pmON\n else:\n AGPF = Hy7s.path.dirpath(pmON)\n pcsQ = Hy7s.path.j...
[ "0.7462511", "0.7289681", "0.7246071", "0.71991646", "0.6987461", "0.68795216", "0.683695", "0.66497153", "0.64533925", "0.6445642", "0.6393728", "0.63710034", "0.63329303", "0.6297994", "0.6263629", "0.62530375", "0.622624", "0.6206129", "0.6205149", "0.6157654", "0.6157403"...
0.79040706
0
Verifies the expected output entries are emitted by the console task under test.
def YB88(YKHO, *hlel, **B2fa): YKHO.assertEqual(sorted(hlel), sorted(YKHO.execute_console_task(**B2fa)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YB88(YKHO, *hlel, **B2fa):\n YKHO.assertEqual(sorted(hlel), sorted(YKHO.execute_console_task(**B2fa)))", "def PWzQ(YKHO):\n assert hlel(YKHO.msg) is not None", "def pCl9(YKHO, *hlel, **B2fa):\n YKHO.assertEqual(list(hlel), YKHO.execute_console_task(**B2fa))", "def THqI(YKHO, aEqx):\n HwRy.std...
[ "0.76689315", "0.7244116", "0.7196238", "0.7169747", "0.7053952", "0.693121", "0.6707625", "0.66544557", "0.65974027", "0.6567176", "0.65491974", "0.65001065", "0.6470276", "0.64692086", "0.64385754", "0.6418832", "0.6402738", "0.6386312", "0.63639927", "0.6348444", "0.633164...
0.7702382
0
Converts a mixture model approximating a location into a rectangular box
def DLz0(nLDd, qfpW='blue', Cwt5=0.6, DAGf=True): lKXT = nLDd.means_ M1Jx = 3 * oyIN.sqrt(nLDd.covars_) TVTK = M1Jx[:, 0] H2v2 = M1Jx[:, 1] AVC1 = lKXT[:, 0] - TVTK // 2 I2tP = lKXT[:, 1] - H2v2 // 2 if DAGf: return (AVC1, I2tP, TVTK, H2v2) else: return x7Ls(VYpE, TVTK, H...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EHyI(Dc5z, EV6U):\n sCmq = [[], []]\n if Dc5z != None:\n WKvO, LVAh = HyPc(Dc5z)\n sCmq[0].append(str(WKvO))\n sCmq[0].append(str(LVAh))\n else:\n raise U9Se('... could not find your bounding box bottom leftcorner. Please use --bl option (, delimited, no spaces).\\n\\n')\n ...
[ "0.5961611", "0.57915485", "0.5574311", "0.5532596", "0.5527075", "0.5518218", "0.5490475", "0.54368836", "0.5429152", "0.5400554", "0.53977513", "0.5388963", "0.5388175", "0.5377163", "0.535237", "0.53335583", "0.532443", "0.5313612", "0.52869815", "0.52816993", "0.5279318",...
0.5561734
3
Whether the keypoints has attributes.
def MwwV(YKHO): return bool(YKHO.attrs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MwwV(YKHO):\n pass", "def ceTe(YKHO):\n return _VfD.KineticLaw_hasRequiredAttributes(YKHO)", "def CQSD(YKHO, UXqs, hGI9):\n if not YKHO.has_keypoints_label(UXqs):\n return False\n return YKHO.schema[UXqs].has_attribute(hGI9)", "def FXY8(YKHO, H5ew):\n return H5ew in YKHO.attrs", "...
[ "0.7984763", "0.75532347", "0.7411093", "0.74065495", "0.7382732", "0.73621565", "0.72673756", "0.72592986", "0.7238525", "0.7194573", "0.71886194", "0.7182175", "0.7178081", "0.7174342", "0.7169887", "0.7169191", "0.716761", "0.713604", "0.71321917", "0.71108985", "0.7106584...
0.80131793
0
Returns the set of ``index`` values of all keypoints in the container. ``None`` indexes are omitted.
def DzXR(YKHO): return set((G1Hx.index for G1Hx in YKHO if G1Hx.has_index))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FkPn(YKHO):\n LX1L = list()\n cZub = list()\n for H5ew in YKHO.index:\n LX1L.append(H5ew[0])\n cZub.append(H5ew[1])\n return (list(j_2z(LX1L)), list(j_2z(cZub)))", "def sjXb(YKHO):\n return iter((PvyL(WKvO, LVAh) for LVAh, WKvO in Hs6x.product(range(YKHO.dims.height), range(YKHO....
[ "0.69782424", "0.64564383", "0.6392449", "0.62779146", "0.62605184", "0.6218466", "0.6211016", "0.6123443", "0.6079137", "0.6063578", "0.6060657", "0.6057965", "0.6055225", "0.60477406", "0.5969441", "0.59654635", "0.5959697", "0.5959697", "0.5959697", "0.594969", "0.5948855"...
0.6852435
1
Whether this schema has no labels of any kind.
def FBfn(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ctmt(YKHO):\n GfdN = True\n if 'labels' not in YKHO.mapper:\n GfdN = False\n return GfdN", "def Wy09(YKHO):\n if YKHO.internallabels != None:\n return YKHO.internallabels.isempty()\n elif YKHO.layer != None:\n return YKHO.layer.allowNoInternalLabel()\n return False", ...
[ "0.72563845", "0.72375864", "0.72189367", "0.72189367", "0.71678513", "0.7137653", "0.7046597", "0.70134956", "0.6766707", "0.6729228", "0.66815865", "0.66678643", "0.66526204", "0.66217494", "0.66217494", "0.65826744", "0.6545621", "0.65203995", "0.6513872", "0.6497965", "0....
0.60543764
82
Gets the keypoints label for the schema.
def DeTJ(YKHO): return YKHO.label
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GWHV(YKHO):\n return iter(YKHO.schema)", "def PaiU(YKHO):\n return YKHO._label_schema", "def UXqs(YKHO) -> str:\n return YKHO.keysym.label", "def DeTJ(Emd4) -> str:\n return Emd4._meta.label_lower.split('.')[-1]", "def DeTJ(YKHO):\n return YKHO._label", "def pX8e(YKHO) -> str:\n LEg...
[ "0.65870523", "0.6463282", "0.6390164", "0.63397366", "0.6299828", "0.6277452", "0.62611604", "0.62408435", "0.6186302", "0.617246", "0.6155453", "0.61441493", "0.61429924", "0.6136082", "0.61149764", "0.61085486", "0.6106798", "0.610539", "0.6096668", "0.6094848", "0.6083861...
0.6207691
9