rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
basket_name_sort_img = """<img src="http://pcuds36.cern.ch/img/wb-sort-asc.gif" />""" | basket_name_sort_img = """<img src="%s/img/wb-sort-asc.gif" />""" % (CFG_SITE_URL,) | def tmpl_display_list_public_baskets(self, all_public_baskets, limit, number_of_all_public_baskets, sort, asc, nb_views_show_p=False, ln=CFG_SITE_LANG): """Template for the list of public baskets. @param all_public_baskets: tuple (bskid, basket_name, owner_id, nickname, date_modification, nb_views, nb_items) @param lim... | 21fbd39770d792689a5af9cad650e20c36ad4f24 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/21fbd39770d792689a5af9cad650e20c36ad4f24/webbasket_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
5417,
67,
1098,
67,
482,
67,
70,
835,
2413,
12,
2890,
16,
777,
67,
482,
67,
70,
835,
2413,
16,
1800,
16,
1300,
67,
792,
67,
454,
67,
482,
67,
70,
835,
2413,
16,
1524,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
5417,
67,
1098,
67,
482,
67,
70,
835,
2413,
12,
2890,
16,
777,
67,
482,
67,
70,
835,
2413,
16,
1800,
16,
1300,
67,
792,
67,
454,
67,
482,
67,
70,
835,
2413,
16,
1524,
... |
def update(self, t): | def start(self): | def update(self, t): if self.target.grid and self.target.grid.active: self.target.grid.active = False | cf4f3ec26afb9d8cd29867a0de41b84f11fa782a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7473/cf4f3ec26afb9d8cd29867a0de41b84f11fa782a/basegrid_actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
309,
365,
18,
3299,
18,
5222,
471,
365,
18,
3299,
18,
5222,
18,
3535,
30,
365,
18,
3299,
18,
5222,
18,
3535,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
309,
365,
18,
3299,
18,
5222,
471,
365,
18,
3299,
18,
5222,
18,
3535,
30,
365,
18,
3299,
18,
5222,
18,
3535,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
key = IHEOL | key = "IHEOL" | def phasers(): "Fire phasers at bad guys." hits = [] kz = 0; k = 1; irec=0 # Cheating inhibitor ifast = False; no = False; itarg = True; msgflag = True; rpow=0 automode = "NOTSET" key=0 skip(1) # SR sensors and Computer are needed for automode if damaged(DSRSENS) or damaged(DCOMPTR): itarg = False if game.condition == ... | af15867a294e48006eba4fd9997cae401ccbfb05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/af15867a294e48006eba4fd9997cae401ccbfb05/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1844,
345,
414,
13332,
315,
9723,
1844,
345,
414,
622,
5570,
3058,
1900,
1199,
11076,
273,
5378,
417,
94,
273,
374,
31,
417,
273,
404,
31,
277,
3927,
33,
20,
468,
22682,
1776,
316,
157... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1844,
345,
414,
13332,
315,
9723,
1844,
345,
414,
622,
5570,
3058,
1900,
1199,
11076,
273,
5378,
417,
94,
273,
374,
31,
417,
273,
404,
31,
277,
3927,
33,
20,
468,
22682,
1776,
316,
157... |
raise ValueError("Cant find module for %r" % self._obj) | raise ValueError("Can't find module for %r" % self._obj) | def module(self): if not hasattr(self, '_module'): obj = self._obj typ = type(obj) | f0b775424bcce0909bd1f7a706c6cfdc3470be31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/f0b775424bcce0909bd1f7a706c6cfdc3470be31/uid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1605,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
2978,
11,
4672,
1081,
273,
365,
6315,
2603,
3815,
273,
618,
12,
2603,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1605,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
2978,
11,
4672,
1081,
273,
365,
6315,
2603,
3815,
273,
618,
12,
2603,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.list.SetStringItem(curvid,ID_COL_VIDPROFILE,DV.prefs.getp(meta['profile'],'name')) | self.list.SetStringItem(curvid,ID_COL_VIDPROFILE,DV.l(DV.prefs.getp(meta['profile'],'name'))) | def addValid(self,meta): curvid=len(self.videos) self.list.InsertStringItem(curvid,meta['name']) self.list.SetStringItem(curvid,ID_COL_VIDPROFILE,DV.prefs.getp(meta['profile'],'name')) self.list.SetStringItem(curvid,ID_COL_VIDPATH,meta['dirname']) self.list.SetStringItem(curvid,ID_COL_VIDSTAT,meta['status']) self.list.... | 0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1556,
12,
2890,
16,
3901,
4672,
662,
1246,
33,
1897,
12,
2890,
18,
6768,
538,
13,
365,
18,
1098,
18,
4600,
780,
1180,
12,
1397,
1246,
16,
3901,
3292,
529,
19486,
365,
18,
1098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1556,
12,
2890,
16,
3901,
4672,
662,
1246,
33,
1897,
12,
2890,
18,
6768,
538,
13,
365,
18,
1098,
18,
4600,
780,
1180,
12,
1397,
1246,
16,
3901,
3292,
529,
19486,
365,
18,
1098,
... |
self.register_handler( Flow_mod_event.static_get_name(), \ lambda event: self.handle_flow_mod(event)) | def install(self): self.register_handler( JSONMsg_event.static_get_name(), \ lambda event: self.handle_jsonmsg_event(event)) """ Installs the monitoring component. Register all the event handlers\ and sets up the switch polling timers.""" # Add handlers for the events we're interested in #self.register_handler( Flow_i... | 7ac8a1fbddf31c441a2860afea03f1182e25f717 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11602/7ac8a1fbddf31c441a2860afea03f1182e25f717/monitoring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
365,
18,
4861,
67,
4176,
12,
1796,
3332,
67,
2575,
18,
3845,
67,
588,
67,
529,
9334,
521,
3195,
871,
30,
365,
18,
4110,
67,
1977,
3576,
67,
2575,
12,
2575,
3719... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
365,
18,
4861,
67,
4176,
12,
1796,
3332,
67,
2575,
18,
3845,
67,
588,
67,
529,
9334,
521,
3195,
871,
30,
365,
18,
4110,
67,
1977,
3576,
67,
2575,
12,
2575,
3719... | |
os.remove(allowfile) | def fromtoday(fname): #Is the file today's? fdate = time.strftime("%Y%m%d", time.localtime(os.path.getmtime(fname))) today = time.strftime("%Y%m%d", time.localtime()) return fdate == today | c04cbaecab57542600628be9c0e949a3552f92f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/c04cbaecab57542600628be9c0e949a3552f92f8/timekpr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
30064,
12,
12749,
4672,
468,
2520,
326,
585,
10074,
1807,
35,
284,
712,
273,
813,
18,
701,
9982,
27188,
61,
9,
81,
9,
72,
3113,
813,
18,
3729,
957,
12,
538,
18,
803,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
30064,
12,
12749,
4672,
468,
2520,
326,
585,
10074,
1807,
35,
284,
712,
273,
813,
18,
701,
9982,
27188,
61,
9,
81,
9,
72,
3113,
813,
18,
3729,
957,
12,
538,
18,
803,
18,
588,
... | |
for li, lc in ((_locale.RADIXCHAR, "decimal_point"), (_locale.THOUSEP, "thousands_sep")): | for li, lc in ((RADIXCHAR, "decimal_point"), (THOUSEP, "thousands_sep")): | def test_lc_numeric_nl_langinfo(self): # Test nl_langinfo against known values for loc in candidate_locales: try: setlocale(LC_NUMERIC, loc) setlocale(LC_CTYPE, loc) except Error: continue for li, lc in ((_locale.RADIXCHAR, "decimal_point"), (_locale.THOUSEP, "thousands_sep")): self.numeric_tester('nl_langinfo', nl_lan... | 6743602a791b61017d143b1cc5d78b6b328d9d47 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/6743602a791b61017d143b1cc5d78b6b328d9d47/test__locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17704,
67,
5246,
67,
14039,
67,
4936,
1376,
12,
2890,
4672,
468,
7766,
7741,
67,
4936,
1376,
5314,
4846,
924,
364,
1515,
316,
5500,
67,
22638,
30,
775,
30,
444,
6339,
12,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17704,
67,
5246,
67,
14039,
67,
4936,
1376,
12,
2890,
4672,
468,
7766,
7741,
67,
4936,
1376,
5314,
4846,
924,
364,
1515,
316,
5500,
67,
22638,
30,
775,
30,
444,
6339,
12,
133... |
name = str(self.storage) | name = str(storage) | def slog(storage, msg, level=zLOG.INFO, error=None, pid=os.getpid()): name = getattr(storage, '__name__', None) if name is None: name = str(self.storage) zLOG.LOG("ZEO Server:%s:%s" % (pid, name), level, msg, error=error) | e2f5a9f798e024c101241507d75b4bce10abd7e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/e2f5a9f798e024c101241507d75b4bce10abd7e2/StorageServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
1330,
12,
5697,
16,
1234,
16,
1801,
33,
94,
4842,
18,
5923,
16,
555,
33,
7036,
16,
4231,
33,
538,
18,
588,
6610,
1435,
4672,
508,
273,
3869,
12,
5697,
16,
4940,
529,
972,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
1330,
12,
5697,
16,
1234,
16,
1801,
33,
94,
4842,
18,
5923,
16,
555,
33,
7036,
16,
4231,
33,
538,
18,
588,
6610,
1435,
4672,
508,
273,
3869,
12,
5697,
16,
4940,
529,
972,
2187,
... |
move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted'] | def _get_lines(self, form): res = [] self.cr.execute('SELECT DISTINCT res_partner.id AS id,\ res_partner.name AS name \ FROM res_partner,account_move_line AS l, account_account\ WHERE (l.account_id=account_account.id) \ AND ((reconcile_id IS NULL)\ OR (reconcile_id IN (SELECT recon.id FROM account_move_reconcile AS rec... | e33b0323f7d3bcc8461ccb90e8996b9fa5978836 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e33b0323f7d3bcc8461ccb90e8996b9fa5978836/account_aged_partner_balance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3548,
12,
2890,
16,
646,
4672,
400,
273,
5378,
365,
18,
3353,
18,
8837,
2668,
4803,
23286,
400,
67,
31993,
18,
350,
5355,
612,
17211,
400,
67,
31993,
18,
529,
5355,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3548,
12,
2890,
16,
646,
4672,
400,
273,
5378,
365,
18,
3353,
18,
8837,
2668,
4803,
23286,
400,
67,
31993,
18,
350,
5355,
612,
17211,
400,
67,
31993,
18,
529,
5355,
508,
... | |
opj('bin', 'server.pkey'), | opj('bin', 'server.pkey'), | def data_files(): '''Build list of data files to be installed''' files = [] if os.name == 'nt': os.chdir('bin') for (dp,dn,names) in os.walk('addons'): files.append((dp, map(lambda x: opj('bin', dp, x), names))) os.chdir('..') for (dp,dn,names) in os.walk('doc'): files.append((dp, map(lambda x: opj(dp, x), names))) fil... | dfac979620bbcfaa34b0a00371dd5aa7d6f6d544 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/dfac979620bbcfaa34b0a00371dd5aa7d6f6d544/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
2354,
13332,
9163,
3116,
666,
434,
501,
1390,
358,
506,
5876,
26418,
1390,
273,
5378,
309,
1140,
18,
529,
422,
296,
496,
4278,
1140,
18,
343,
1214,
2668,
4757,
6134,
364,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
2354,
13332,
9163,
3116,
666,
434,
501,
1390,
358,
506,
5876,
26418,
1390,
273,
5378,
309,
1140,
18,
529,
422,
296,
496,
4278,
1140,
18,
343,
1214,
2668,
4757,
6134,
364,
261,
... |
for collEditor in self.collEditors.values() + self.dataView.collEditors.values(): | collEditors = self.collEditors.values() + \ self.dataView.collEditors.values() if self.sizersView: collEditors.extend(self.sizersView.collEditors.values()) for collEditor in collEditors: | def renameFrame(self, oldName, newName): """ Hook that also updates the Model and window ids of the Frame when it's name changes """ self.SetName(newName) | 1b381dc89a6f0969a6f082aa071d7cd58eb3cc3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1b381dc89a6f0969a6f082aa071d7cd58eb3cc3f/Designer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
3219,
12,
2890,
16,
22916,
16,
13253,
4672,
3536,
13725,
716,
2546,
4533,
326,
3164,
471,
2742,
3258,
434,
326,
8058,
1347,
518,
1807,
508,
3478,
3536,
365,
18,
11924,
12,
2704,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
3219,
12,
2890,
16,
22916,
16,
13253,
4672,
3536,
13725,
716,
2546,
4533,
326,
3164,
471,
2742,
3258,
434,
326,
8058,
1347,
518,
1807,
508,
3478,
3536,
365,
18,
11924,
12,
2704,
46... |
sage: QS3._multiply_basis(p1,p2) | sage: QS3.product_on_basis(p1,p2) | def _multiply_basis(self, left, right): """ Returns the product of the basis elements indexed by left and right. | 67122d01e881bc98eb41ce9e759a79a3a210eaec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/67122d01e881bc98eb41ce9e759a79a3a210eaec/symmetric_group_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7027,
1283,
67,
23774,
12,
2890,
16,
2002,
16,
2145,
4672,
3536,
2860,
326,
3017,
434,
326,
10853,
2186,
8808,
635,
2002,
471,
2145,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7027,
1283,
67,
23774,
12,
2890,
16,
2002,
16,
2145,
4672,
3536,
2860,
326,
3017,
434,
326,
10853,
2186,
8808,
635,
2002,
471,
2145,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.openMetadataDocs() original_basedir = self.conf.basedir for mydir in self.conf.directories: self.conf.baseurl = self._getFragmentUrl(self.conf.baseurl, mediano) self.writeMetadataDocs(filematrix[mydir], mydir) mediano += 1 self.conf.baseurl = self._getFragmentUrl(self.conf.baseurl, 1) self.closeMetadataDocs() | try: self.openMetadataDocs() original_basedir = self.conf.basedir for mydir in self.conf.directories: self.conf.baseurl = self._getFragmentUrl(self.conf.baseurl, mediano) self.writeMetadataDocs(filematrix[mydir], mydir) mediano += 1 self.conf.baseurl = self._getFragmentUrl(self.conf.baseurl, 1) self.closeMetadataDocs()... | def doPkgMetadata(self): """all the heavy lifting for the package metadata""" if len(self.conf.directories) == 1: MetaDataGenerator.doPkgMetadata(self) return | 189eb87b1e24c59ae113d281d39f2a7f60180996 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9557/189eb87b1e24c59ae113d281d39f2a7f60180996/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
11264,
2277,
12,
2890,
4672,
3536,
454,
326,
3904,
23935,
4517,
1787,
364,
326,
2181,
1982,
8395,
309,
562,
12,
2890,
18,
3923,
18,
15121,
13,
422,
404,
30,
27512,
3908,
18,
2896,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
11264,
2277,
12,
2890,
4672,
3536,
454,
326,
3904,
23935,
4517,
1787,
364,
326,
2181,
1982,
8395,
309,
562,
12,
2890,
18,
3923,
18,
15121,
13,
422,
404,
30,
27512,
3908,
18,
2896,
... |
tag_re = re.compile('(<.*?>)') | tag_re = re.compile('(<.*?>)', re.DOTALL) | def get_words(s): return set([ word for word in lower(unicode(strip_tags_re.sub('', unicode(s))) ).translate(punct_map).split() if word not in stop_words]) | 978b32d56435167b35853f84c41879b973520449 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10695/978b32d56435167b35853f84c41879b973520449/normalize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3753,
12,
87,
4672,
327,
444,
3816,
2076,
364,
2076,
316,
2612,
12,
9124,
12,
6406,
67,
4156,
67,
266,
18,
1717,
2668,
2187,
5252,
12,
87,
20349,
262,
18,
13929,
12,
84,
693... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3753,
12,
87,
4672,
327,
444,
3816,
2076,
364,
2076,
316,
2612,
12,
9124,
12,
6406,
67,
4156,
67,
266,
18,
1717,
2668,
2187,
5252,
12,
87,
20349,
262,
18,
13929,
12,
84,
693... |
print 'HTTP server started on port %d...' % port | print 'HTTP server started on port %d...' % server.server_port | def main(options, args): logfile = open('testserver.log', 'w') sys.stdout = FileMultiplexer(sys.stdout, logfile) sys.stderr = FileMultiplexer(sys.stderr, logfile) port = options.port if options.server_type == SERVER_HTTP: if options.cert: # let's make sure the cert file exists. if not os.path.isfile(options.cert): pr... | 48d48e1e3db7c67f2946965dd935e324bf966006 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/48d48e1e3db7c67f2946965dd935e324bf966006/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
1... |
if (animtest.is_static_image() == True and self.preloadimg_prev_pixbuf_original != animtest.get_static_image()) or (animtest.is_static_image() == False and self.preloadimg_prev_pixbuf_original != animtest): self.preloadimg_prev_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_prev_image, Fa... | if animtest.is_static_image() == True: if self.images_are_different(animtest.get_static_image(), self.preloadimg_prev_pixbuf_original): self.preloadimg_prev_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_prev_image, False) else: if self.images_are_different(animtest, self.preloadimg_prev_... | def parse_action_command(self, command, batchmode): self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() if batchmode == True: for i in range(len(self.image_list)): imagename = self.image_list[i] self.parse_action_command2(command, imagename) else: self.parse_action_command... | 27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1128,
67,
3076,
12,
2890,
16,
1296,
16,
2581,
3188,
4672,
365,
18,
3427,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
12,
4521,
79,
18,
75,
2883,
18,
59,
5858,
3719,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1128,
67,
3076,
12,
2890,
16,
1296,
16,
2581,
3188,
4672,
365,
18,
3427,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
12,
4521,
79,
18,
75,
2883,
18,
59,
5858,
3719,
1... |
PangoGlyphVisAttr = struct__PangoGlyphVisAttr | PangoGlyphVisAttr = struct__PangoGlyphVisAttr | def load_lib(name): libname = ctypes.util.find_library(name) if not libname: raise OSError("Could not find library '%s'" % name) else: return CDLL(libname) | 92bb4862df49194567fad21ea00d921ffc62dd6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/92bb4862df49194567fad21ea00d921ffc62dd6a/pango.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2941,
12,
529,
4672,
2561,
529,
273,
6983,
18,
1367,
18,
4720,
67,
12083,
12,
529,
13,
309,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2941,
12,
529,
4672,
2561,
529,
273,
6983,
18,
1367,
18,
4720,
67,
12083,
12,
529,
13,
309,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,... |
if not tl: tl = get_field_tags("author") print_warning(req, "The browse does not work in this field. Choosing author index instead.", "Warning") | browsed_words_hits = {} | def browse_in_bibxxx(req, colls, p, f, rg): """Browse bibliographic phrases for the given pattern in the given field.""" print_warning(req, "The browse functionality is about to be expanded and prettyfied.", "Warning") ## determine browse field: if string.find(p, ":") > 0: # does 'p' contain ':'? f, p = split(p, ":", 2... | 620cac641ba839b8d458726c5bcd42752af2f02c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/620cac641ba839b8d458726c5bcd42752af2f02c/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
267,
67,
70,
495,
18310,
12,
3658,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
4672,
3536,
27304,
25581,
549,
16983,
31413,
364,
326,
864,
1936,
316,
326,
864,
652,
12123,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
267,
67,
70,
495,
18310,
12,
3658,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
4672,
3536,
27304,
25581,
549,
16983,
31413,
364,
326,
864,
1936,
316,
326,
864,
652,
12123,
1... |
style = styles['Heading'+str(node.get[1:])] | style = styles['Heading'+str(node.tag[1:])] | def _flowable(self, node, extra_style=None): if node.tag=='para': style = self.styles.para_style_get(node) if extra_style: style.__dict__.update(extra_style) result = [] for i in self._textual(node).split('\n'): result.append(platypus.Paragraph(i, style, **(utils.attr_get(node, [], {'bulletText':'str'})))) return resul... | 9f0fdbdc528dc6371c29fc03f7dfd8b6115de9be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9f0fdbdc528dc6371c29fc03f7dfd8b6115de9be/trml2pdf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2426,
429,
12,
2890,
16,
756,
16,
2870,
67,
4060,
33,
7036,
4672,
309,
756,
18,
2692,
18920,
25072,
4278,
2154,
273,
365,
18,
10218,
18,
25072,
67,
4060,
67,
588,
12,
2159,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2426,
429,
12,
2890,
16,
756,
16,
2870,
67,
4060,
33,
7036,
4672,
309,
756,
18,
2692,
18920,
25072,
4278,
2154,
273,
365,
18,
10218,
18,
25072,
67,
4060,
67,
588,
12,
2159,
13,
... |
__ac_cookie = self.request.cookies.get('__ac', ''), | cookie = self.request.cookies.get('__ac', ''), | def upload_settings(self): sp = getToolByName(self.context, "portal_properties").site_properties portal_url = getToolByName(self.context, 'portal_url') | 4c4b3d3fbcd12c756dae313f8ab4288415d273ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9052/4c4b3d3fbcd12c756dae313f8ab4288415d273ff/finder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
67,
4272,
12,
2890,
4672,
1694,
273,
336,
6364,
5911,
12,
2890,
18,
2472,
16,
315,
24386,
67,
4738,
20387,
4256,
67,
4738,
11899,
67,
718,
273,
336,
6364,
5911,
12,
2890,
18,
247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
67,
4272,
12,
2890,
4672,
1694,
273,
336,
6364,
5911,
12,
2890,
18,
2472,
16,
315,
24386,
67,
4738,
20387,
4256,
67,
4738,
11899,
67,
718,
273,
336,
6364,
5911,
12,
2890,
18,
247... |
if opt < goto: values.append(None) processedArgs.append(opt) continue | def _termGetParam(options, checkUnprocessedArgs=True, verbose=False, useDefault=False): ''' using user input to get param ''' # get param from short arg processedArgs = [] # process all options values = [] goto = 0 for opt in range(0, len(options)): if opt < goto: values.append(None) processedArgs.append(opt) continue ... | b768238f5a879eb8d591deb5a9c596556ff70f76 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/b768238f5a879eb8d591deb5a9c596556ff70f76/simuOpt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6408,
967,
786,
12,
2116,
16,
866,
984,
11005,
2615,
33,
5510,
16,
3988,
33,
8381,
16,
999,
1868,
33,
8381,
4672,
9163,
1450,
729,
810,
358,
336,
579,
9163,
468,
336,
579,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6408,
967,
786,
12,
2116,
16,
866,
984,
11005,
2615,
33,
5510,
16,
3988,
33,
8381,
16,
999,
1868,
33,
8381,
4672,
9163,
1450,
729,
810,
358,
336,
579,
9163,
468,
336,
579,
628,
... | |
self.assertEqual(m[x], '\0', "anonymously mmap'ed contents should be zero") | self.assertEqual(m[x], b'\0', "anonymously mmap'ed contents should be zero") b = bytes(1) | def test_anonymous(self): # anonymous mmap.mmap(-1, PAGE) m = mmap.mmap(-1, PAGESIZE) for x in range(PAGESIZE): self.assertEqual(m[x], '\0', "anonymously mmap'ed contents should be zero") | 3c5b3f3090b6007274572d236a3d5ae5856203ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3c5b3f3090b6007274572d236a3d5ae5856203ec/test_mmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19070,
12,
2890,
4672,
468,
13236,
30749,
18,
81,
1458,
19236,
21,
16,
11549,
13,
312,
273,
30749,
18,
81,
1458,
19236,
21,
16,
11549,
4574,
13,
364,
619,
316,
1048,
12,
1121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19070,
12,
2890,
4672,
468,
13236,
30749,
18,
81,
1458,
19236,
21,
16,
11549,
13,
312,
273,
30749,
18,
81,
1458,
19236,
21,
16,
11549,
4574,
13,
364,
619,
316,
1048,
12,
1121... |
def dodiff(ui, repo, files = None, node1 = None, node2 = None): | revrangesep = ':' def revrange(ui, repo, revs = [], revlog = None): if revlog is None: revlog = repo.changelog revcount = revlog.count() def fix(val, defval): if not val: return defval try: num = int(val) if str(num) != val: raise ValueError if num < 0: num += revcount if not (0 <= num < revcount): raise ValueError ex... | def dodiff(ui, repo, files = None, node1 = None, node2 = None): def date(c): return time.asctime(time.gmtime(float(c[2].split(' ')[0]))) (c, a, d, u) = repo.changes(node1, node2, files) if files: c, a, d = map(lambda x: filterfiles(files, x), (c, a, d)) if not c and not a and not d: return if node2: change = repo.ch... | 563d8f24727bf6b79c71a3741112ff880f82c5c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/563d8f24727bf6b79c71a3741112ff880f82c5c8/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5588,
14530,
881,
273,
3921,
225,
1652,
5588,
3676,
12,
4881,
16,
3538,
16,
5588,
87,
273,
5378,
16,
5588,
1330,
273,
599,
4672,
309,
5588,
1330,
353,
599,
30,
5588,
1330,
273,
3538,
18,
240... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5588,
14530,
881,
273,
3921,
225,
1652,
5588,
3676,
12,
4881,
16,
3538,
16,
5588,
87,
273,
5378,
16,
5588,
1330,
273,
599,
4672,
309,
5588,
1330,
353,
599,
30,
5588,
1330,
273,
3538,
18,
240... |
str = self.__rmjunk.sub('', str) | for pattern, replacement in REPLACEMENTS: str = pattern.sub(replacement, str) | def __init__(self, link, str, seqno): self.links = [link] self.seqno = seqno # remove <#\d+#> left in by moving the data out of LaTeX2HTML str = self.__rmjunk.sub('', str) # build up the text self.text = split_entry_text(str) self.key = split_entry_key(str) | 51f6a4b18e8d3ba4353d435518d62a285af2ec41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/51f6a4b18e8d3ba4353d435518d62a285af2ec41/buildindex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1692,
16,
609,
16,
30734,
4672,
365,
18,
7135,
273,
306,
1232,
65,
365,
18,
5436,
2135,
273,
30734,
468,
1206,
411,
7,
64,
72,
15,
7,
34,
2002,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1692,
16,
609,
16,
30734,
4672,
365,
18,
7135,
273,
306,
1232,
65,
365,
18,
5436,
2135,
273,
30734,
468,
1206,
411,
7,
64,
72,
15,
7,
34,
2002,
316,
... |
if val == constants.VALUE_DEFAULT: | if ((use_default and val == constants.VALUE_DEFAULT) or (use_none and val is None)): | def _GetUpdatedParams(old_params, update_dict): """Return the new version of a parameter dictionary. @type old_params: dict @param old_params: old parameters @type update_dict: dict @param update_dict: dict containing new parameter values, or constants.VALUE_DEFAULT to reset the parameter to its default value @rtype: ... | 21d7df5fef538b66773f1e9b97f9ba35d0c628e4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/21d7df5fef538b66773f1e9b97f9ba35d0c628e4/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
7381,
1370,
12,
1673,
67,
2010,
16,
1089,
67,
1576,
4672,
3536,
990,
326,
394,
1177,
434,
279,
1569,
3880,
18,
225,
632,
723,
1592,
67,
2010,
30,
2065,
632,
891,
1592,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
7381,
1370,
12,
1673,
67,
2010,
16,
1089,
67,
1576,
4672,
3536,
990,
326,
394,
1177,
434,
279,
1569,
3880,
18,
225,
632,
723,
1592,
67,
2010,
30,
2065,
632,
891,
1592,
67,
... |
move_id = self.pool.get('stock.move').create(cr, uid, { | move_id =move_obj.create(cr, uid, { | def action_move_create(self, cr, uid, ids,context=None): proc_obj = self.pool.get('procurement.order') move_obj = self.pool.get('stock.move') location_obj = self.pool.get('stock.location') wf_service = netsvc.LocalService("workflow") for proc in proc_obj.browse(cr, uid, ids, context=context): line = None for line in pr... | fa99a1d9c04f0859a4d185a55a27780f4d2da4c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fa99a1d9c04f0859a4d185a55a27780f4d2da4c1/mrp_pull.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
8501,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
2472,
33,
7036,
4672,
5418,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
9381,
594,
475,
18,
1019,
6134,
3635,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
8501,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
2472,
33,
7036,
4672,
5418,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
9381,
594,
475,
18,
1019,
6134,
3635,
6... |
message.append(" " + QString(str(item.days_until_next_rep()) + "\n")) | message.append(QString(" " + str(item.days_until_next_rep()) + "\n")) | def statistics(self): self.find_selected() if len(self.selected) == 0: return item = self.selected[0].item | 61842bb92caf5e9d2c22f2e661b1cd58b18cd3c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1240/61842bb92caf5e9d2c22f2e661b1cd58b18cd3c3/edit_items_dlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7691,
12,
2890,
4672,
225,
365,
18,
4720,
67,
8109,
1435,
309,
562,
12,
2890,
18,
8109,
13,
422,
374,
30,
327,
225,
761,
273,
365,
18,
8109,
63,
20,
8009,
1726,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7691,
12,
2890,
4672,
225,
365,
18,
4720,
67,
8109,
1435,
309,
562,
12,
2890,
18,
8109,
13,
422,
374,
30,
327,
225,
761,
273,
365,
18,
8109,
63,
20,
8009,
1726,
2,
-100,
-100,
-100,
... |
%s -- start up E-Cell3 GUI | %s -- E-Cell3 Session Monitor | def usage(): aProgramName = 'ecell3-session-monitor' print ''' | b2da76502e502cdf4c5ab3ae499a478e80c3e682 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/b2da76502e502cdf4c5ab3ae499a478e80c3e682/opengui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
279,
9459,
461,
273,
296,
557,
1165,
23,
17,
3184,
17,
10259,
11,
1172,
9163,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
279,
9459,
461,
273,
296,
557,
1165,
23,
17,
3184,
17,
10259,
11,
1172,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def test_ushort_return_ptr(self): self.assertEquals(self.MAX, TestGI.ushort_return_ptr()) | def test_ushort_return_ptr(self): self.assertEquals(self.MAX, TestGI.ushort_return_ptr()) | aefac8c5f64bf059dd6652f8a843d17b34fa0854 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8659/aefac8c5f64bf059dd6652f8a843d17b34fa0854/test_gi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1218,
499,
67,
2463,
67,
6723,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
2890,
18,
6694,
16,
7766,
13797,
18,
1218,
499,
67,
2463,
67,
6723,
10756,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1218,
499,
67,
2463,
67,
6723,
12,
2890,
4672,
365,
18,
11231,
8867,
12,
2890,
18,
6694,
16,
7766,
13797,
18,
1218,
499,
67,
2463,
67,
6723,
10756,
2,
-100,
-100,
-100,
-100,... | |
try: msg = "wget http://home.cern.ch/ceballos/madgraph/tarballs/%s.tar.gz;" % nameLabel[0].strip() msg += "tar xzf %s.tar.gz;" % nameLabel[0].strip() os.system(msg) except Exception, ex: return 1 | msg = "wget --no-check-certificate -O %s.tar.gz \"http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/UserCode/RobertoChierici/MadGraphCompiledTarballs/%s.tar.gz?view=co\";" % (nameLabel[0].strip(),nameLabel[0].strip()) msg += "tar xzf %s.tar.gz;" % nameLabel[0].strip() os.system(msg) | def madgraph(): """ Generator dependent from here """ # First line in the config file is the generator name file = open(cfgFile, 'r') generatorLine = file.readline() # Not used nameLabelLine = file.readline() nameLabel = nameLabelLine.split('\n') try: msg = "wget http://home.cern.ch/ceballos/madgraph/tarballs... | afe8bebe7c655b39afd224577dab1d87ffe6cd28 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/afe8bebe7c655b39afd224577dab1d87ffe6cd28/cmsGen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
361,
4660,
13332,
3536,
10159,
10460,
628,
2674,
3536,
468,
5783,
980,
316,
326,
642,
585,
353,
326,
4456,
508,
585,
1377,
273,
1696,
12,
7066,
812,
16,
296,
86,
6134,
4456,
1670,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
361,
4660,
13332,
3536,
10159,
10460,
628,
2674,
3536,
468,
5783,
980,
316,
326,
642,
585,
353,
326,
4456,
508,
585,
1377,
273,
1696,
12,
7066,
812,
16,
296,
86,
6134,
4456,
1670,
... |
if True: vis_timer.start() visf = vis.make_file("pic-%04d" % step) | def rhs(t, (f_and_c, adv_rho)): from hedge.mesh import TAG_ALL, TAG_NONE | def l2_error(field, true): return l2_norm(field-true)/l2_norm(true) | 5f9c741aab5870150c0543eb79f3d1454aa88e2f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12869/5f9c741aab5870150c0543eb79f3d1454aa88e2f/with-charge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
22,
67,
1636,
12,
1518,
16,
638,
4672,
327,
328,
22,
67,
7959,
12,
1518,
17,
3767,
13176,
80,
22,
67,
7959,
12,
3767,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
22,
67,
1636,
12,
1518,
16,
638,
4672,
327,
328,
22,
67,
7959,
12,
1518,
17,
3767,
13176,
80,
22,
67,
7959,
12,
3767,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.compname=relpath(compname) | self.compname=computils.relpath(compname) | def __init__(self, name, compname, comptype=None, cache=computils.NO, **kw): Slot.__init__(self, name) self.compname=relpath(compname) if comptype is None: self.comptype=guess_comptype(compname) self.cache=cache self.extra=kw | d7a3424a479de3afe165159fdad42047453dc80e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/d7a3424a479de3afe165159fdad42047453dc80e/slots.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1161,
529,
16,
532,
27672,
33,
7036,
16,
1247,
33,
13406,
14573,
18,
3417,
16,
2826,
9987,
4672,
23195,
16186,
2738,
972,
12,
2890,
16,
508,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1161,
529,
16,
532,
27672,
33,
7036,
16,
1247,
33,
13406,
14573,
18,
3417,
16,
2826,
9987,
4672,
23195,
16186,
2738,
972,
12,
2890,
16,
508,
13,... |
def __getinitargs__( self ): return ( self.timeZoneName, ) def _LoadInfoFromKey( self, key ): | def __getinitargs__(self): return (self.timeZoneName,) def _LoadInfoFromKey(self, key): | def __getinitargs__( self ): return ( self.timeZoneName, ) | 59648a863c896e2f14363d0c28a25b3865360d9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/59648a863c896e2f14363d0c28a25b3865360d9a/win32timezone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
2738,
1968,
972,
12,
365,
262,
30,
327,
261,
365,
18,
957,
4226,
461,
16,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
2738,
1968,
972,
12,
365,
262,
30,
327,
261,
365,
18,
957,
4226,
461,
16,
262,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
It returns a dictionary , with one entry for each recipient that was refused. | It returns a dictionary , with one entry for each recipient that was refused. | def sendmail(self,from_addr,to_addrs,msg): """ This command performs an entire mail transaction. The arguments are: - from_addr : The address sending this mail. - to_addrs : a list of addresses to send this mail to - msg : the message to send. | fc40a8316a552ff4c67489498100c2457a32bd20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fc40a8316a552ff4c67489498100c2457a32bd20/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4408,
12,
2890,
16,
2080,
67,
4793,
16,
869,
67,
23305,
16,
3576,
4672,
3536,
1220,
1296,
11199,
392,
7278,
4791,
2492,
18,
1021,
1775,
854,
30,
300,
628,
67,
4793,
294,
1021,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4408,
12,
2890,
16,
2080,
67,
4793,
16,
869,
67,
23305,
16,
3576,
4672,
3536,
1220,
1296,
11199,
392,
7278,
4791,
2492,
18,
1021,
1775,
854,
30,
300,
628,
67,
4793,
294,
1021,
17... |
self.assertEqual(os.closerange(fd, fd + 10), None) | for i in range(10): try: os.fstat(fd+i) except OSError: pass else: break if i < 2: raise unittest.SkipTest( "Unable to acquire a range of invalid file descriptors") self.assertEqual(os.closerange(fd, fd + i-1), None) | def test_closerange(self): if hasattr(os, "closerange"): fd = test_support.make_bad_fd() self.assertEqual(os.closerange(fd, fd + 10), None) | 46ca2f25ebd7bfaa588c9e5fac8b8c7b8415b3a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/46ca2f25ebd7bfaa588c9e5fac8b8c7b8415b3a3/test_os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
27736,
726,
12,
2890,
4672,
309,
3859,
12,
538,
16,
315,
27736,
726,
6,
4672,
5194,
273,
1842,
67,
13261,
18,
6540,
67,
8759,
67,
8313,
1435,
365,
18,
11231,
5812,
12,
538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
27736,
726,
12,
2890,
4672,
309,
3859,
12,
538,
16,
315,
27736,
726,
6,
4672,
5194,
273,
1842,
67,
13261,
18,
6540,
67,
8759,
67,
8313,
1435,
365,
18,
11231,
5812,
12,
538,
... |
'ir_translation_ltn ' \ | 'ir_translation_lang_type_name_index ' \ | def _auto_init(self, cursor, module_name): super(Translation, self)._auto_init(cursor, module_name) cursor.execute('SELECT indexname FROM pg_indexes ' \ 'WHERE indexname = ' \ '\'ir_translation_ltn\'') if not cursor.rowcount: cursor.execute('CREATE INDEX ' \ 'ir_translation_ltn ' \ 'ON ir_translation (lang, type, name)... | 7935737deaa1017c0b925c3f60b42b0e49556b8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/7935737deaa1017c0b925c3f60b42b0e49556b8e/translation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6079,
67,
2738,
12,
2890,
16,
3347,
16,
1605,
67,
529,
4672,
2240,
12,
6717,
16,
365,
2934,
67,
6079,
67,
2738,
12,
9216,
16,
1605,
67,
529,
13,
3347,
18,
8837,
2668,
4803,
770,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6079,
67,
2738,
12,
2890,
16,
3347,
16,
1605,
67,
529,
4672,
2240,
12,
6717,
16,
365,
2934,
67,
6079,
67,
2738,
12,
9216,
16,
1605,
67,
529,
13,
3347,
18,
8837,
2668,
4803,
770,... |
reference = obj_inv.reference | reference = obj_inv.reference or '' | def action_number(self, cr, uid, ids, *args): for obj_inv in self.browse(cr, uid, ids): id = obj_inv.id invtype = obj_inv.type number = obj_inv.number move_id = obj_inv.move_id and obj_inv.move_id.id or False reference = obj_inv.reference if not number: tmp_context = { 'fiscalyear_id': obj_inv.period_id.fiscalyear_id.i... | 95f5f1f0c8b337738d3504ea57d5284feea036e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/95f5f1f0c8b337738d3504ea57d5284feea036e9/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
2696,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
364,
1081,
67,
5768,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
612,
273,
1081,
67,
5768,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
2696,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
364,
1081,
67,
5768,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
612,
273,
1081,
67,
5768,
1... |
ParseDbg.add("function NOTE: %s" % msg) | self.pdbg("function NOTE: %s" % msg) | def parse_statement(self, rule, msg, expr): ParseDbg.add("parse_statement(%s, %s, %s)" % (rule, msg, expr)) expr = expr.strip() if msg == "": if expr == "": self.parse_message_block() expr = self.buffer else: self.message = [msg] if expr == "": if not self.readline(): return else: self.buffer = expr msg = "" if self.me... | 57b9dbd56a9e011788ef60900e9a91776ddbb48d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2827/57b9dbd56a9e011788ef60900e9a91776ddbb48d/mlox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
11516,
12,
2890,
16,
1720,
16,
1234,
16,
3065,
4672,
2884,
4331,
75,
18,
1289,
2932,
2670,
67,
11516,
9275,
87,
16,
738,
87,
16,
738,
87,
2225,
738,
261,
5345,
16,
1234,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
11516,
12,
2890,
16,
1720,
16,
1234,
16,
3065,
4672,
2884,
4331,
75,
18,
1289,
2932,
2670,
67,
11516,
9275,
87,
16,
738,
87,
16,
738,
87,
2225,
738,
261,
5345,
16,
1234,
16... |
file.write(" />") | file.write(_encode(" />", encoding)) | def _write(self, file, node, encoding, namespaces): # write XML to file tag = node.tag if tag is Comment: file.write("<!-- %s -->" % _escape_cdata(node.text, encoding)) elif tag is ProcessingInstruction: file.write("<?%s?>" % _escape_cdata(node.text, encoding)) else: items = list(node.items()) xmlns_items = [] # new na... | d7657fbd21edb2a284db95beac93d0fb6cf519f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d7657fbd21edb2a284db95beac93d0fb6cf519f0/ElementTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
12,
2890,
16,
585,
16,
756,
16,
2688,
16,
7728,
4672,
468,
1045,
3167,
358,
585,
1047,
273,
756,
18,
2692,
309,
1047,
353,
9821,
30,
585,
18,
2626,
2932,
5586,
413,
738,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
12,
2890,
16,
585,
16,
756,
16,
2688,
16,
7728,
4672,
468,
1045,
3167,
358,
585,
1047,
273,
756,
18,
2692,
309,
1047,
353,
9821,
30,
585,
18,
2626,
2932,
5586,
413,
738,
8... |
tui.Item('callee_results', show_label=False), | tui.UItem('callee_results'), | def getstats(cls, obj=None): self = cls(obj) return pstats.Stats(self) | 1abb1fd080526092ab77808de73a8c00f92915ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13166/1abb1fd080526092ab77808de73a8c00f92915ef/sike.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5296,
12,
6429,
16,
1081,
33,
7036,
4672,
365,
273,
2028,
12,
2603,
13,
327,
293,
5296,
18,
4195,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5296,
12,
6429,
16,
1081,
33,
7036,
4672,
365,
273,
2028,
12,
2603,
13,
327,
293,
5296,
18,
4195,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
url = 'http://jigsaw.w3.org/HTTP/Basic/' | url = 'http://pculture.org/BasicAuthentication/' | def test_bad_auth(self): self.addLogin(u'baduser', u'baddpass') self.addLogin(u'anotherbadtry', u'god') self.addLogin(u'billgates', u'password') url = 'http://jigsaw.w3.org/HTTP/Basic/' client = TestHTTPClient(url, self.callback, self.errback) client.startRequest() self.runEventLoop() self.assert_(self.errbackCalled) s... | e30788a9dacabc7a8a0d8e1a962216cf42816d5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/e30788a9dacabc7a8a0d8e1a962216cf42816d5e/httpclienttest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8759,
67,
1944,
12,
2890,
4672,
365,
18,
1289,
5358,
12,
89,
11,
8759,
1355,
2187,
582,
11,
70,
1289,
5466,
6134,
365,
18,
1289,
5358,
12,
89,
11,
304,
3011,
8759,
698,
218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8759,
67,
1944,
12,
2890,
4672,
365,
18,
1289,
5358,
12,
89,
11,
8759,
1355,
2187,
582,
11,
70,
1289,
5466,
6134,
365,
18,
1289,
5358,
12,
89,
11,
304,
3011,
8759,
698,
218... |
for x in ipath: cmd = cmd + " /I " + x; | for x in ipath: cmd = cmd + " /I " + x | def CompileRES(obj=0,src=0,ipath=[],opts=[]): if ((obj==0)|(src==0)): sys.exit("syntax error in CompileRES directive"); fullsrc = CxxFindSource(src, ipath) if (fullsrc == 0): sys.exit("Cannot find source file "+src) obj = "built/tmp/"+obj wdep = CxxCalcDependencies(fullsrc, ipath, []) if (COMPILER=="MSVC7"): if (older... | 4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
7031,
12,
2603,
33,
20,
16,
4816,
33,
20,
16,
625,
421,
22850,
6487,
4952,
33,
8526,
4672,
309,
14015,
2603,
631,
20,
14047,
12,
4816,
631,
20,
3719,
30,
2589,
18,
8593,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
7031,
12,
2603,
33,
20,
16,
4816,
33,
20,
16,
625,
421,
22850,
6487,
4952,
33,
8526,
4672,
309,
14015,
2603,
631,
20,
14047,
12,
4816,
631,
20,
3719,
30,
2589,
18,
8593,
2932,
... |
+ ["\n"] + readylist + ["\n"] + useList ) | + ["\n"] + readylist + ["\n"] + useList) | def buildTables(self): """Builds the set of tables needed for async operation""" ## ## consider having a table to store the actual script ## this would help for debugging and output caching ## taskcommand = ["CREATE TABLE tasks (", " taskid VARCHAR(8),", " date DATE", ");"] cmdcommand = ["CREATE TABLE cmds (", " tas... | b359f71e7f02568e72f4bf4aa54ddc8eed689205 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/b359f71e7f02568e72f4bf4aa54ddc8eed689205/ssdap_dbutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
6905,
12,
2890,
4672,
3536,
7746,
326,
444,
434,
4606,
3577,
364,
4326,
1674,
8395,
7541,
7541,
5260,
7999,
279,
1014,
358,
1707,
326,
3214,
2728,
7541,
333,
4102,
2809,
364,
10450,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
6905,
12,
2890,
4672,
3536,
7746,
326,
444,
434,
4606,
3577,
364,
4326,
1674,
8395,
7541,
7541,
5260,
7999,
279,
1014,
358,
1707,
326,
3214,
2728,
7541,
333,
4102,
2809,
364,
10450,
... |
FileHandler.names = (socket.gethostbyname('localhost'), socket.gethostbyname(socket.gethostname())) | try: FileHandler.names = (socket.gethostbyname('localhost'), socket.gethostbyname(socket.gethostname())) except socket.gaierror: FileHandler.names = (socket.gethostbyname('localhost'),) | def get_names(self): if FileHandler.names is None: FileHandler.names = (socket.gethostbyname('localhost'), socket.gethostbyname(socket.gethostname())) return FileHandler.names | 4eb521e595216a406ad1d3175056dc8cd8be157b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4eb521e595216a406ad1d3175056dc8cd8be157b/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1973,
12,
2890,
4672,
309,
1387,
1503,
18,
1973,
353,
599,
30,
775,
30,
1387,
1503,
18,
1973,
273,
261,
7814,
18,
75,
546,
669,
1637,
529,
2668,
13014,
19899,
2987,
18,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1973,
12,
2890,
4672,
309,
1387,
1503,
18,
1973,
353,
599,
30,
775,
30,
1387,
1503,
18,
1973,
273,
261,
7814,
18,
75,
546,
669,
1637,
529,
2668,
13014,
19899,
2987,
18,
75,
... |
def readfp(self): | def readfp(self, fp): | def readfp(self): """Read a single mime.types-format file.""" map = self.types_map while 1: line = f.readline() if not line: break words = line.split() for i in range(len(words)): if words[i][0] == '#': del words[i:] break if not words: continue type, suffixes = words[0], words[1:] for suff in suffixes: map['.' + suff]... | 14e6604ab23f47e3f1203ea37922684331e8f1dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/14e6604ab23f47e3f1203ea37922684331e8f1dc/mimetypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
7944,
12,
2890,
16,
4253,
4672,
3536,
1994,
279,
2202,
4892,
18,
2352,
17,
2139,
585,
12123,
852,
273,
365,
18,
2352,
67,
1458,
1323,
404,
30,
980,
273,
284,
18,
896,
1369,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
7944,
12,
2890,
16,
4253,
4672,
3536,
1994,
279,
2202,
4892,
18,
2352,
17,
2139,
585,
12123,
852,
273,
365,
18,
2352,
67,
1458,
1323,
404,
30,
980,
273,
284,
18,
896,
1369,
1435,
... |
wtime = time.mktime(time.strptime(write_time,'%Y-%m-%d %H:%M:%S')) | wtime = time.mktime(time.strptime(write_time,'%Y-%m-%d %H:%M:%S')) | def match_dav_eprop(self, cr, match, ns, prop): if ns == "DAV:" and prop == "getetag": dirobj = self.context._dirobj uid = self.context.uid ctx = self.context.context.copy() tem, dav_time = tuple(match.split(':')) model, res_id = tuple(tem.split('_')) model_obj = dirobj.pool.get(model) model = model_obj.browse(cr, uid,... | fe0ee384c7b5a64c12f8725027352df173701456 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fe0ee384c7b5a64c12f8725027352df173701456/caldav_node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
845,
67,
20752,
67,
73,
5986,
12,
2890,
16,
4422,
16,
845,
16,
3153,
16,
2270,
4672,
309,
3153,
422,
315,
17735,
2773,
471,
2270,
422,
315,
588,
20788,
6877,
4314,
303,
441,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
845,
67,
20752,
67,
73,
5986,
12,
2890,
16,
4422,
16,
845,
16,
3153,
16,
2270,
4672,
309,
3153,
422,
315,
17735,
2773,
471,
2270,
422,
315,
588,
20788,
6877,
4314,
303,
441,
273,
365,
... |
kupu_plone_skin_dir = os.path.join(kupu_package_dir, relpath) | kupu_plone_skin_dir = minimalpath(os.path.join(kupu_package_dir, relpath)) | def register_layer(self, relpath, name, out): """Register a file system directory as skin layer """ skinstool = getToolByName(self, 'portal_skins') if name not in skinstool.objectIds(): kupu_plone_skin_dir = os.path.join(kupu_package_dir, relpath) createDirectoryView(skinstool, kupu_plone_skin_dir, name) print >>out, "... | 4957b816f28eec4676c2ceb6096773bcc73b5ced /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10193/4957b816f28eec4676c2ceb6096773bcc73b5ced/Install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
6363,
12,
2890,
16,
14614,
16,
508,
16,
596,
4672,
3536,
3996,
279,
585,
2619,
1867,
487,
18705,
3018,
3536,
4343,
8591,
1371,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
6363,
12,
2890,
16,
14614,
16,
508,
16,
596,
4672,
3536,
3996,
279,
585,
2619,
1867,
487,
18705,
3018,
3536,
4343,
8591,
1371,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
... |
if os.isfile(conffile): | if os.path.isfile(conffile): | def notify(username, pid, title, message): """ Sends a notification via notify-send Usage: sendnotification( "youruser", "pid", "your title", "your message") We will be probably using pynotify module for this, we'll see! """ #WARNING: Don't use the exclamation mark ("!") in the message or title, otherwise bash will ret... | d97acd20cc97476bb1b306cfabf7e64c3b37c595 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/d97acd20cc97476bb1b306cfabf7e64c3b37c595/timekpr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
12,
5053,
16,
4231,
16,
2077,
16,
883,
4672,
3536,
2479,
87,
279,
3851,
3970,
5066,
17,
4661,
10858,
30,
1366,
9927,
12,
315,
93,
477,
1355,
3113,
315,
6610,
3113,
315,
93,
477,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
12,
5053,
16,
4231,
16,
2077,
16,
883,
4672,
3536,
2479,
87,
279,
3851,
3970,
5066,
17,
4661,
10858,
30,
1366,
9927,
12,
315,
93,
477,
1355,
3113,
315,
6610,
3113,
315,
93,
477,
... |
return [] | return space.wrap([]) | def convert_from_regdata(buf, buflen, typ): if typ == rwinreg.REG_DWORD: if not buflen: return 0 return rffi.cast(rwin32.LPDWORD, buf)[0] elif typ == rwinreg.REG_SZ or typ == rwinreg.REG_EXPAND_SZ: if not buflen: return u"" return rffi.charp2strn(rffi.cast(rffi.CCHARP, buf), buflen) elif typ == rwinreg.REG_MULTI_SZ: ... | 65a0cb4fb5ecc10e2f370ba1c4260d41630090c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/65a0cb4fb5ecc10e2f370ba1c4260d41630090c7/interp_winreg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
2080,
67,
1574,
892,
12,
4385,
16,
1681,
1897,
16,
3815,
4672,
309,
3815,
422,
7985,
267,
1574,
18,
5937,
67,
40,
7952,
30,
309,
486,
1681,
1897,
30,
327,
374,
327,
436,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
2080,
67,
1574,
892,
12,
4385,
16,
1681,
1897,
16,
3815,
4672,
309,
3815,
422,
7985,
267,
1574,
18,
5937,
67,
40,
7952,
30,
309,
486,
1681,
1897,
30,
327,
374,
327,
436,
14... |
for i in range(2): | for i in range(nimg): | def uploadBdbAsDataset(infile, datasetName, project = None): """ @param infile path to bdb (absolute OR from where we are running) OR this can be a list of image paths. @param datasetName name for new Dataset to put images in @param project if specified, put the dataset into this project (omero.model.ProjectI) ... | 87c9e72458524b84176da1cb2ed01c7c0cf7869e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/87c9e72458524b84176da1cb2ed01c7c0cf7869e/eman2omero.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
38,
1966,
1463,
10656,
12,
267,
768,
16,
3709,
461,
16,
1984,
273,
599,
4672,
225,
3536,
632,
891,
14568,
1875,
202,
803,
358,
324,
1966,
261,
12547,
4869,
628,
1625,
732,
854,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
38,
1966,
1463,
10656,
12,
267,
768,
16,
3709,
461,
16,
1984,
273,
599,
4672,
225,
3536,
632,
891,
14568,
1875,
202,
803,
358,
324,
1966,
261,
12547,
4869,
628,
1625,
732,
854,
3... |
for tok in ntext: show_token(tok) | for tok, state in zip(tokens, states): show_token(tok, state) | def show_token(tok): reprs = map(repr, tok) print ' ' + reprs[1] + ' ' + ' ' * (29-len(reprs[1])) + reprs[0], if debug_lexer: print ' ' + ' ' * (29-len(reprs[0])) + repr(states[i]), print | aa82d10c79a247547303d83826359f2a0ab11a92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2885/aa82d10c79a247547303d83826359f2a0ab11a92/find_error.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
2316,
12,
17692,
4672,
8480,
87,
273,
852,
12,
12715,
16,
946,
13,
1172,
296,
282,
296,
397,
8480,
87,
63,
21,
65,
397,
296,
296,
397,
296,
296,
380,
261,
5540,
17,
1897,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
2316,
12,
17692,
4672,
8480,
87,
273,
852,
12,
12715,
16,
946,
13,
1172,
296,
282,
296,
397,
8480,
87,
63,
21,
65,
397,
296,
296,
397,
296,
296,
380,
261,
5540,
17,
1897,
... |
this = apply(_quickfix.new_AllocHandlInst, args) | this = _quickfix.new_AllocHandlInst(*args) | def __init__(self, *args): this = apply(_quickfix.new_AllocHandlInst, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8763,
1144,
80,
10773,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8763,
1144,
80,
10773,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... |
print self.html_header | print self.html_toc_header | def toc_enter( self ): print self.html_header print "<center><h1>Table of Contents</h1></center>" | f8e0dbd0cd10cb440afaf8f8a5043cdc600b4f9d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/25/f8e0dbd0cd10cb440afaf8f8a5043cdc600b4f9d/tohtml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
225,
17919,
67,
2328,
12,
365,
262,
30,
1172,
365,
18,
2620,
67,
1391,
67,
3374,
1172,
3532,
5693,
4438,
76,
21,
34,
1388,
434,
21290,
1757,
76,
21,
4695,
5693,
2984,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
225,
17919,
67,
2328,
12,
365,
262,
30,
1172,
365,
18,
2620,
67,
1391,
67,
3374,
1172,
3532,
5693,
4438,
76,
21,
34,
1388,
434,
21290,
1757,
76,
21,
4695,
5693,
2984,
2,
-100,
-100,
... |
""" not clear what to do specialNode = [Node, Math, Magic, TagNode, Style, Image ] Image.isInline() """ | def MixIn(pyClass, mixInClass, makeFirst=False): if mixInClass not in pyClass.__bases__: if makeFirst: pyClass.__bases__ = (mixInClass,) + pyClass.__bases__ else: pyClass.__bases__ += (mixInClass,) def extendClasses(node): MixIn(node.__class__, _advancedNodesMap.get(node.__class__, AdvancedNode)) for c in node.ch... | def getSectionLevel(self): return 1 + [p.__class__ for p in self.getParents()].count(self.__class__) | dea329b35814c06d5a0af0f4f77860b077b90060 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/dea329b35814c06d5a0af0f4f77860b077b90060/advtree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22103,
2355,
12,
2890,
4672,
327,
404,
397,
306,
84,
16186,
1106,
972,
364,
293,
316,
365,
18,
588,
13733,
1435,
8009,
1883,
12,
2890,
16186,
1106,
972,
13,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22103,
2355,
12,
2890,
4672,
327,
404,
397,
306,
84,
16186,
1106,
972,
364,
293,
316,
365,
18,
588,
13733,
1435,
8009,
1883,
12,
2890,
16186,
1106,
972,
13,
2,
-100,
-100,
-100,
-100,
... |
found. (XXX is this correct???)""" | found.""" | def get_devstudio_versions (): """Get list of devstudio versions from the Windows registry. Return a list of strings (???) containing version numbers; the list will be empty if we were unable to access the registry (eg. couldn't import a registry-access module) or the appropriate registry keys weren't found. (XXX is... | 018ef3a8c6b930e05ea82d0ffb0865e6b398f61e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/018ef3a8c6b930e05ea82d0ffb0865e6b398f61e/msvccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5206,
334,
4484,
67,
10169,
1832,
30,
225,
3536,
967,
666,
434,
4461,
334,
4484,
5244,
628,
326,
8202,
4023,
18,
225,
2000,
279,
666,
434,
2064,
13590,
35,
8535,
4191,
1177,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5206,
334,
4484,
67,
10169,
1832,
30,
225,
3536,
967,
666,
434,
4461,
334,
4484,
5244,
628,
326,
8202,
4023,
18,
225,
2000,
279,
666,
434,
2064,
13590,
35,
8535,
4191,
1177,
5... |
def export_getReqPageSummary(self, attrDict, orderAttribute, pageNumber, numberPerPage): | def export_getReqPageSummary( self, attrDict, orderAttribute, pageNumber, numberPerPage ): | def export_getReqPageSummary(self, attrDict, orderAttribute, pageNumber, numberPerPage): """ Get the summary of the fts req information for a given page in the fts monitor """ last_update = None if attrDict.has_key('LastUpdate'): last_update = attrDict['LastUpdate'] del attrDict['LastUpdate'] res = transferDB.selectFTS... | fbaa0cc38e2ebaeb3cf9a01c58d193b76f63bf22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fbaa0cc38e2ebaeb3cf9a01c58d193b76f63bf22/TransferDBMonitoringHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
6113,
1964,
4733,
12,
365,
16,
1604,
5014,
16,
1353,
1499,
16,
26484,
16,
1300,
13005,
262,
30,
3536,
968,
326,
4916,
434,
326,
284,
3428,
1111,
1779,
364,
279,
864,
136... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
6113,
1964,
4733,
12,
365,
16,
1604,
5014,
16,
1353,
1499,
16,
26484,
16,
1300,
13005,
262,
30,
3536,
968,
326,
4916,
434,
326,
284,
3428,
1111,
1779,
364,
279,
864,
136... |
print "" | options.stdout.write('\n') | def update(self, options, args, file_list): """Runs git to update or transparently checkout the working copy. | e603c688da503d6a6db9690684aa49a1b2a54706 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/e603c688da503d6a6db9690684aa49a1b2a54706/gclient_scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
702,
16,
833,
16,
585,
67,
1098,
4672,
3536,
9361,
5071,
358,
1089,
578,
17270,
715,
13926,
326,
5960,
1610,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
702,
16,
833,
16,
585,
67,
1098,
4672,
3536,
9361,
5071,
358,
1089,
578,
17270,
715,
13926,
326,
5960,
1610,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
@return: S_OK,S_ERROR | def replicateFile(self,lfn,destinationSE,sourceSE='',localCache='',printOutput=False): """Replicate an existing file to another Grid SE. lfn is the desired logical file name for the file to be replicated, destinationSE is the DIRAC Storage Element to create a replica of the file at. Optionally the source storage eleme... | 2762b06242602a0ca2e8c502d626d42c8ff88c1b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/2762b06242602a0ca2e8c502d626d42c8ff88c1b/Dirac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28476,
812,
12,
2890,
16,
80,
4293,
16,
10590,
1090,
16,
3168,
1090,
2218,
2187,
3729,
1649,
2218,
2187,
1188,
1447,
33,
8381,
4672,
3536,
426,
1780,
340,
392,
2062,
585,
358,
4042,
7145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28476,
812,
12,
2890,
16,
80,
4293,
16,
10590,
1090,
16,
3168,
1090,
2218,
2187,
3729,
1649,
2218,
2187,
1188,
1447,
33,
8381,
4672,
3536,
426,
1780,
340,
392,
2062,
585,
358,
4042,
7145... | |
write32u(self.fileobj, LOWU32(self.size)) | write32u(self.fileobj, self.size) | def close(self): if self.mode == WRITE: self.fileobj.write(self.compress.flush()) # The native zlib crc is an unsigned 32-bit integer, but # the Python wrapper implicitly casts that to a signed C # long. So, on a 32-bit box self.crc may "look negative", # while the same crc on a 64-bit box may "look positive". # To av... | b89f2d2678f1fca7a4d86c238af02858955efd8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/b89f2d2678f1fca7a4d86c238af02858955efd8e/gzip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
365,
18,
3188,
422,
20967,
30,
365,
18,
768,
2603,
18,
2626,
12,
2890,
18,
14706,
18,
11330,
10756,
468,
1021,
6448,
24220,
10619,
353,
392,
9088,
3847,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
365,
18,
3188,
422,
20967,
30,
365,
18,
768,
2603,
18,
2626,
12,
2890,
18,
14706,
18,
11330,
10756,
468,
1021,
6448,
24220,
10619,
353,
392,
9088,
3847,
17,
... |
coords.insert(0,(xp,yp)) else: x1, y1 = coords[-2] x2, y2 = coords[-1] xp, yp = geometry.elongate_line( x1,y1,x2,y2,-8) xp, yp = geometry.point_at_distance_from_line( x1,y1,xp,yp,5) coords.append((xp,yp)) | items.append( self.paper.create_line( (x2,y2,xp,yp), tags='arrow', width=self.line_width, smooth=self.spline, fill=self.line_color, joinstyle="miter")) | def _draw_equilibrium2( self): width = 3 orig_coords = [p.get_xy() for p in self.points] items = [] for sig in (-1,1): coords = geometry.find_parallel_polyline( orig_coords, sig*width) if sig == -1: x1, y1 = coords[1] x2, y2 = coords[0] xp, yp = geometry.elongate_line( x1,y1,x2,y2,-8) xp, yp = geometry.point_at_distanc... | fd888e6b94fe9c381c30ecac18fe34664921c17e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4298/fd888e6b94fe9c381c30ecac18fe34664921c17e/arrow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
67,
14298,
330,
495,
566,
379,
22,
12,
365,
4672,
1835,
273,
890,
1647,
67,
9076,
273,
306,
84,
18,
588,
67,
1698,
1435,
364,
293,
316,
365,
18,
4139,
65,
1516,
273,
5378,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
67,
14298,
330,
495,
566,
379,
22,
12,
365,
4672,
1835,
273,
890,
1647,
67,
9076,
273,
306,
84,
18,
588,
67,
1698,
1435,
364,
293,
316,
365,
18,
4139,
65,
1516,
273,
5378,... |
plog("WARN", "Circuit " + str(circ_id) + | plog("WARN", "Circuit " + str(circ.circ_id) + | def handle_bw_test(self, s): """ Handle special streams to measure the bandwidth of circs """ output = [s.event_name, str(s.strm_id), s.status, str(s.circ_id), s.target_host, str(s.target_port)] if s.reason: output.append("REASON=" + s.reason) if s.remote_reason: output.append("REMOTE_REASON=" + s.remote_reason) plog("... | 41d92ad98e87b156ae2a23e728c431a16d09471e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/41d92ad98e87b156ae2a23e728c431a16d09471e/op-addon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
70,
91,
67,
3813,
12,
2890,
16,
272,
4672,
3536,
5004,
4582,
8205,
358,
6649,
326,
20508,
434,
5886,
2143,
3536,
876,
273,
306,
87,
18,
2575,
67,
529,
16,
609,
12,
87,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
70,
91,
67,
3813,
12,
2890,
16,
272,
4672,
3536,
5004,
4582,
8205,
358,
6649,
326,
20508,
434,
5886,
2143,
3536,
876,
273,
306,
87,
18,
2575,
67,
529,
16,
609,
12,
87,
18,
... |
if not line: | if not line.strip(): | def precmd(self, line): """Handle alias expansion and ';;' separator.""" if not line: return line args = line.split() while args[0] in self.aliases: line = self.aliases[args[0]] ii = 1 for tmpArg in args[1:]: line = line.replace("%" + str(ii), tmpArg) ii = ii + 1 line = line.replace("%*", ' '.join(args[1:])) args = lin... | 6e1b22ceeb0adfa361ac36f99c048f5c772bad58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6e1b22ceeb0adfa361ac36f99c048f5c772bad58/pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
4172,
12,
2890,
16,
980,
4672,
3536,
3259,
2308,
17965,
471,
12386,
4359,
4182,
12123,
309,
486,
980,
18,
6406,
13332,
327,
980,
833,
273,
980,
18,
4939,
1435,
1323,
833,
63,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
4172,
12,
2890,
16,
980,
4672,
3536,
3259,
2308,
17965,
471,
12386,
4359,
4182,
12123,
309,
486,
980,
18,
6406,
13332,
327,
980,
833,
273,
980,
18,
4939,
1435,
1323,
833,
63,
20,
... |
if disp<0: disp= dispdef | if disp < 0: disp = dispdef | def writepov(self, file, dispdef, col): ##Huaicai 1/15/05: It seems the attributes from __setup__update() is not correct, ## at least for pov file writing, so compute it here locally. To fix bug 346,347 disp=max(self.atom1.display, self.atom2.display) if disp == diDEFAULT: disp = dispdef color1 = col or self.atom1.elem... | 8458fbfe4c9e599a4e7092a28b468082d5fe6e91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8458fbfe4c9e599a4e7092a28b468082d5fe6e91/bonds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
84,
1527,
12,
2890,
16,
585,
16,
16232,
536,
16,
645,
4672,
7541,
44,
11886,
335,
10658,
404,
19,
3600,
19,
6260,
30,
2597,
12001,
326,
1677,
628,
1001,
8401,
972,
2725,
1435,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
84,
1527,
12,
2890,
16,
585,
16,
16232,
536,
16,
645,
4672,
7541,
44,
11886,
335,
10658,
404,
19,
3600,
19,
6260,
30,
2597,
12001,
326,
1677,
628,
1001,
8401,
972,
2725,
1435,
35... |
self.log.debug('restricting jobs for debugging') jobs = jobs[0:1] | def __checkJobs(self): """Retrieves waiting jobs and loops over the selection. """ self.log.debug('Preparing list of waiting jobs') workload = self.__getWaitingJobs() if not workload['OK']: return workload jobs = workload['Value'] | e4e152162784e68280a5aedde1e5bad201fa5992 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/e4e152162784e68280a5aedde1e5bad201fa5992/AgentDirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
7276,
12,
2890,
4672,
3536,
6960,
7336,
6550,
471,
14075,
1879,
326,
4421,
18,
3536,
365,
18,
1330,
18,
4148,
2668,
1386,
12583,
666,
434,
7336,
6550,
6134,
1440,
945,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
7276,
12,
2890,
4672,
3536,
6960,
7336,
6550,
471,
14075,
1879,
326,
4421,
18,
3536,
365,
18,
1330,
18,
4148,
2668,
1386,
12583,
666,
434,
7336,
6550,
6134,
1440,
945,
273,
3... | |
translated = json.loads(response.read().decode("UTF-8", "ignore").replace(']],,"', ']],[],"')) | result = response.read().decode("UTF-8", "ignore") result = result.replace('[,', '[[],').replace(',]', ',[]]') while ',,' in result: result = result.replace(',,', ',[],') import irclib irclib.DebugErr(result) translated = json.loads(result) | def translate(self, text, fromLang, toLang, fromLanguage, toLanguage): if fromLang not in self.supportedTranslations or toLang not in self.supportedTranslations: return | e97f3842d8c52d18adcff5fbefe2f4f5f1869ff1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10749/e97f3842d8c52d18adcff5fbefe2f4f5f1869ff1/weblookup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
2890,
16,
977,
16,
628,
7275,
16,
358,
7275,
16,
628,
3779,
16,
358,
3779,
4672,
309,
628,
7275,
486,
316,
365,
18,
4127,
12297,
578,
358,
7275,
486,
316,
365,
18,
4127,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
2890,
16,
977,
16,
628,
7275,
16,
358,
7275,
16,
628,
3779,
16,
358,
3779,
4672,
309,
628,
7275,
486,
316,
365,
18,
4127,
12297,
578,
358,
7275,
486,
316,
365,
18,
4127,
12... |
"""A rule line is a single "Allow:" (allowance==1) or "Disallow:" (allowance==0) followed by a path.""" | """A rule line is a single "Allow:" (allowance==True) or "Disallow:" (allowance==False) followed by a path.""" | def __str__(self): ret = "" for entry in self.entries: ret = ret + str(entry) + "\n" return ret | 4f422b7384bdfcdd7c2a55e83aaf89d20e9979d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4f422b7384bdfcdd7c2a55e83aaf89d20e9979d1/robotparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
325,
273,
1408,
364,
1241,
316,
365,
18,
8219,
30,
325,
273,
325,
397,
609,
12,
4099,
13,
397,
1548,
82,
6,
327,
325,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
325,
273,
1408,
364,
1241,
316,
365,
18,
8219,
30,
325,
273,
325,
397,
609,
12,
4099,
13,
397,
1548,
82,
6,
327,
325,
2,
-100,
-100,
-100,
-100,
-100,... |
normalList("DTNode", "lib_learner.cpp") | normalList("TreeNode", "lib_learner.cpp") | def normalList(name, goesto): return tuple([x % name for x in ("%sList", "%s", "P%sList", "T%sList", "P%s")] + [goesto]) | 9ec7d2f6dcc0f6736c8e785815758f45841e5403 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/9ec7d2f6dcc0f6736c8e785815758f45841e5403/defvectors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2212,
682,
12,
529,
16,
1960,
395,
83,
4672,
327,
3193,
3816,
92,
738,
508,
364,
619,
316,
7566,
9,
21576,
3113,
2213,
87,
3113,
315,
52,
9,
21576,
3113,
315,
56,
9,
21576,
3113,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2212,
682,
12,
529,
16,
1960,
395,
83,
4672,
327,
3193,
3816,
92,
738,
508,
364,
619,
316,
7566,
9,
21576,
3113,
2213,
87,
3113,
315,
52,
9,
21576,
3113,
315,
56,
9,
21576,
3113,
315... |
return int(s.strip()[:4]) | try: return int(s.strip()[:4]) except: return False | def parse_postcode(s): return int(s.strip()[:4]) | d73e85317f2f80b262801c39319005143137116c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6177/d73e85317f2f80b262801c39319005143137116c/ledenlijst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2767,
710,
12,
87,
4672,
775,
30,
327,
509,
12,
87,
18,
6406,
1435,
10531,
24,
5717,
1335,
30,
327,
1083,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2767,
710,
12,
87,
4672,
775,
30,
327,
509,
12,
87,
18,
6406,
1435,
10531,
24,
5717,
1335,
30,
327,
1083,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
style = attrs.get('style', '') if style: self.parse_style(style) | self.parse_attrs(attrs) | def begin_path(self, attrs): if self.in_defs: id = attrs.get('id', '') if id: self.named_objects[id] = ('object', 'path', attrs) return self.paths = [] self.path = None self.parse_path(attrs['d']) style = attrs.get('style', '') if style: self.parse_style(style) self.set_loader_style() | 20f97a1a1862b824365b83f00419d19bd29be2c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/20f97a1a1862b824365b83f00419d19bd29be2c5/svgloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
67,
803,
12,
2890,
16,
3422,
4672,
309,
365,
18,
267,
67,
12537,
30,
612,
273,
3422,
18,
588,
2668,
350,
2187,
28707,
309,
612,
30,
365,
18,
13188,
67,
6911,
63,
350,
65,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
67,
803,
12,
2890,
16,
3422,
4672,
309,
365,
18,
267,
67,
12537,
30,
612,
273,
3422,
18,
588,
2668,
350,
2187,
28707,
309,
612,
30,
365,
18,
13188,
67,
6911,
63,
350,
65,
273,
... |
print("Gcompris_ballcatch ok.") | pass | def ok(self): print("Gcompris_ballcatch ok.") | 47c7b2de69f2ef74a5ccace1a52699180780bde1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11306/47c7b2de69f2ef74a5ccace1a52699180780bde1/ballcatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1529,
12,
2890,
4672,
1172,
2932,
43,
832,
683,
291,
67,
19067,
14683,
1529,
1199,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1529,
12,
2890,
4672,
1172,
2932,
43,
832,
683,
291,
67,
19067,
14683,
1529,
1199,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.assertTrue(all(self.store50.varArray == newStore.varArray)) self.assertTrue(self.store50.varNameDict == newStore.varNameDict) | self.assertTrue(all(self.store.varArray == newStore.varArray)) self.assertTrue(self.store.varNameDict == newStore.varNameDict) | def test__repr__(self): '''ArrayStore: Test __repr__ function.''' repStr = repr(self.store50) exec 'newStore = ' + repStr self.assertTrue(all(self.store50.varArray == newStore.varArray)) #IGNORE:E0602 self.assertTrue(self.store50.varNameDict == newStore.varNameDict) #IGNORE:E0602 | 4f7397e773983ae72bd3ffebc2d43ad44a277e2e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/4f7397e773983ae72bd3ffebc2d43ad44a277e2e/storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
972,
12715,
972,
12,
2890,
4672,
9163,
1076,
2257,
30,
7766,
1001,
12715,
972,
445,
1093,
6309,
2071,
1585,
273,
8480,
12,
2890,
18,
2233,
3361,
13,
1196,
296,
2704,
2257,
273,
296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
972,
12715,
972,
12,
2890,
4672,
9163,
1076,
2257,
30,
7766,
1001,
12715,
972,
445,
1093,
6309,
2071,
1585,
273,
8480,
12,
2890,
18,
2233,
3361,
13,
1196,
296,
2704,
2257,
273,
296... |
if not line: self.cmd_missing_arg() return | def ftp_RETR(self, line): if not line: self.cmd_missing_arg() return file = self.fs.translate(line) | 3b393a7e366f846f71a2da059e75a45c755e9f2d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/3b393a7e366f846f71a2da059e75a45c755e9f2d/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
862,
4349,
12,
2890,
16,
980,
4672,
225,
585,
273,
365,
18,
2556,
18,
13929,
12,
1369,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
862,
4349,
12,
2890,
16,
980,
4672,
225,
585,
273,
365,
18,
2556,
18,
13929,
12,
1369,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
font-family: "Courier New",courier, monospace; | font-family: courier, monospace; | def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r""" | 7edb180e91b2e48f567f53d59d4294938a615b84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7edb180e91b2e48f567f53d59d4294938a615b84/css.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... |
gfalDict['nbfiles'] = len(urls) gfalDict['timeout'] = self.fileTimeout*len(urls) res = self.__gfal_operation_wrapper('gfal_ls',gfalDict) gDataStoreClient.addRegister(res['AccountingOperation']) | gfalDict['nbfiles'] = len( urls ) gfalDict['timeout'] = self.fileTimeout * len( urls ) res = self.__gfal_operation_wrapper( 'gfal_ls', gfalDict ) gDataStoreClient.addRegister( res['AccountingOperation'] ) | def __gfalls_wrapper(self,urls,depth): """ This is a function that can be reused everywhere to perform the gfal_ls """ gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['srmv2_lslevels'] = depth | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
25602,
87,
67,
8376,
12,
2890,
16,
10518,
16,
5979,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,
67,
3251,
3536,
13828,
287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
25602,
87,
67,
8376,
12,
2890,
16,
10518,
16,
5979,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,
67,
3251,
3536,
13828,
287,
... |
""" | """ | def fl_setpup_fontstyle(style): """ fl_setpup_fontstyle(style) -> num. """ retval = _fl_setpup_fontstyle(style) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
84,
416,
67,
5776,
4060,
12,
4060,
4672,
3536,
1183,
67,
542,
84,
416,
67,
5776,
4060,
12,
4060,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
542,
84,
416,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
84,
416,
67,
5776,
4060,
12,
4060,
4672,
3536,
1183,
67,
542,
84,
416,
67,
5776,
4060,
12,
4060,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
542,
84,
416,
... |
print "NO Connection" | self.debug("Connection Reset") | def run(self): while self.isrunning: ## Create Socket try: self._socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) try: self._socket.connect((self.config['server'],self.config['port'])) self._sockfile = self._socket.makefile() self._run() except socket.error ,e: if e[0] == 111: print "NO Connection" finally: t... | 4a9490fe7c1b31c47e7b911e1701349daf26b5ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5166/4a9490fe7c1b31c47e7b911e1701349daf26b5ff/LIRC_Connector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
365,
18,
291,
8704,
30,
7541,
1788,
8758,
775,
30,
365,
6315,
7814,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
7814,
18,
3584,
3507,
67,
13693,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
365,
18,
291,
8704,
30,
7541,
1788,
8758,
775,
30,
365,
6315,
7814,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
7814,
18,
3584,
3507,
67,
13693,... |
rec = c.first() | rec = self.cur.first() | def finish_test(self, secDB, txn=None): # 'Blues' should not be in the secondary database vals = secDB.pget('Blues', txn=txn) assert vals == None, vals | c5cf731a4deb710892c9083a468a6d173d791456 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c5cf731a4deb710892c9083a468a6d173d791456/test_associate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
67,
3813,
12,
2890,
16,
1428,
2290,
16,
7827,
33,
7036,
4672,
468,
296,
4802,
3610,
11,
1410,
486,
506,
316,
326,
9946,
2063,
5773,
273,
1428,
2290,
18,
84,
588,
2668,
4802,
3610... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
67,
3813,
12,
2890,
16,
1428,
2290,
16,
7827,
33,
7036,
4672,
468,
296,
4802,
3610,
11,
1410,
486,
506,
316,
326,
9946,
2063,
5773,
273,
1428,
2290,
18,
84,
588,
2668,
4802,
3610... |
log.debug('nothing to find') | if DEBUG: log.debug('nothing to find') | def findMatches(self, find=None): global guide | f5737db8bd118592997fea5a5e16fdbead535f3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/f5737db8bd118592997fea5a5e16fdbead535f3a/recordserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
6869,
12,
2890,
16,
1104,
33,
7036,
4672,
2552,
7343,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
6869,
12,
2890,
16,
1104,
33,
7036,
4672,
2552,
7343,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Set memory limit using setrlimit(RLIMIT_AS, ...). Use value -1 to disable memory limit. | Set memory limit in bytes. Use value 'None' to disable memory limit. | def setMemoryLimit(max_mem, hard_limit=None): """ Set memory limit using setrlimit(RLIMIT_AS, ...). Use value -1 to disable memory limit. Return True if limit is set, False on error. """ return False | 4e97748f3cf979e46600f6e84cd48b57f4af7480 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/4e97748f3cf979e46600f6e84cd48b57f4af7480/memory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
6031,
3039,
12,
1896,
67,
3917,
16,
7877,
67,
3595,
33,
7036,
4672,
3536,
1000,
3778,
1800,
316,
1731,
18,
2672,
460,
296,
7036,
11,
358,
4056,
3778,
1800,
18,
225,
2000,
1053,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
6031,
3039,
12,
1896,
67,
3917,
16,
7877,
67,
3595,
33,
7036,
4672,
3536,
1000,
3778,
1800,
316,
1731,
18,
2672,
460,
296,
7036,
11,
358,
4056,
3778,
1800,
18,
225,
2000,
1053,
30... |
deps.extend(dep.leaves()) print string.join(deps) | for file in dep.leaves(): deps[file] = None print string.join(deps.keys()) | def main (self, cmdline): self.env = Environment(self.msg) self.modules = [] | 955b23602163f674532c56d824634fed6f335c08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/955b23602163f674532c56d824634fed6f335c08/cmd_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
261,
2890,
16,
22877,
4672,
365,
18,
3074,
273,
7518,
12,
2890,
18,
3576,
13,
365,
18,
6400,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
261,
2890,
16,
22877,
4672,
365,
18,
3074,
273,
7518,
12,
2890,
18,
3576,
13,
365,
18,
6400,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
types, and will properly blend that chennel when drawing a | types, and will properly blend that channel when drawing a | def runTest(frame, nb, log): win = TestPanel(nb, log) return win | 6a8fa617f1c2d7b4a324425be16d5af7293ed97d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6a8fa617f1c2d7b4a324425be16d5af7293ed97d/ImageAlpha.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
4709,
12,
3789,
16,
4264,
16,
613,
4672,
5657,
273,
7766,
5537,
12,
6423,
16,
613,
13,
327,
5657,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
4709,
12,
3789,
16,
4264,
16,
613,
4672,
5657,
273,
7766,
5537,
12,
6423,
16,
613,
13,
327,
5657,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
module = app["module"] + '.templatetags.' + app["type"] | module = app["module"] + '.templatetags.' + app["type"] + '_tags' | def __init__(self, position, user): self.position = position self.user = template.Variable(user) self.register = template.get_library("apps.webui.templatetags.webui") self.possible_tags = [] | 842b0cb20d09147b9418934e65027fb9f2c58059 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/842b0cb20d09147b9418934e65027fb9f2c58059/webui_tags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1754,
16,
729,
4672,
365,
18,
3276,
273,
1754,
365,
18,
1355,
273,
1542,
18,
3092,
12,
1355,
13,
365,
18,
4861,
273,
1542,
18,
588,
67,
12083,
2932,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1754,
16,
729,
4672,
365,
18,
3276,
273,
1754,
365,
18,
1355,
273,
1542,
18,
3092,
12,
1355,
13,
365,
18,
4861,
273,
1542,
18,
588,
67,
12083,
2932,
11... |
attributeDict = {'Operation':requestOperation,'TargetSE':taskDict['TargetSE']} | attributeDict = {'Operation':requestOperation,'TargetSE':paramDict['TargetSE']} | def prepareTasks(self,transBody,taskDict,owner,ownerGroup): requestType,requestOperation = transBody.split(';') for taskNumber in sortList(taskDict.keys()): paramDict = taskDict[taskNumber] oRequest = RequestContainer(init=False) subRequestIndex = oRequest.initiateSubRequest(requestType)['Value'] attributeDict = {'Oper... | 7e361d624cd9374c5dec904aad18c8eb176604b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7e361d624cd9374c5dec904aad18c8eb176604b6/TaskManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
6685,
12,
2890,
16,
2338,
2250,
16,
4146,
5014,
16,
8443,
16,
8443,
1114,
4672,
27179,
16,
2293,
2988,
273,
906,
2250,
18,
4939,
2668,
4359,
13,
364,
1562,
1854,
316,
1524,
682,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
6685,
12,
2890,
16,
2338,
2250,
16,
4146,
5014,
16,
8443,
16,
8443,
1114,
4672,
27179,
16,
2293,
2988,
273,
906,
2250,
18,
4939,
2668,
4359,
13,
364,
1562,
1854,
316,
1524,
682,
... |
"""An AddressList encapsulates a list of parsed RFC822 addresses.""" | """An AddressList encapsulates a list of parsed RFC 2822 addresses.""" | def getphraselist(self): """Parse a sequence of RFC-822 phrases. | b6f6fad5b96d38181611f28a27ba278b112ea9c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b6f6fad5b96d38181611f28a27ba278b112ea9c9/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
844,
21636,
5449,
12,
2890,
4672,
3536,
3201,
279,
3102,
434,
8372,
17,
24532,
31413,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
844,
21636,
5449,
12,
2890,
4672,
3536,
3201,
279,
3102,
434,
8372,
17,
24532,
31413,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
fti=self.generateFti(element,aggregatedClasses) print >> outfile,fti | if not element.isAbstract (): fti=self.generateFti(element,aggregatedClasses) print >> outfile,fti | def generateClass(self, outfile, element, delayed): print 'Generating class:',element.getName() | ec56107c740ae1c40f15e7cd8ffcb9b5ef2e2872 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/ec56107c740ae1c40f15e7cd8ffcb9b5ef2e2872/ArchetypesGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
797,
12,
2890,
16,
8756,
16,
930,
16,
15278,
4672,
1172,
296,
21755,
667,
30,
2187,
2956,
18,
17994,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
797,
12,
2890,
16,
8756,
16,
930,
16,
15278,
4672,
1172,
296,
21755,
667,
30,
2187,
2956,
18,
17994,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
s += '<a id="worksheet_title" class="worksheet_title" onClick="rename_worksheet(); return false;" title="Click to rename this worksheet">%s</a>'%(name.replace('<','<')) | s += '<a id="worksheet_title" class="worksheet_title" onClick="rename_worksheet(); return false;" title="Click to rename this worksheet">%s</a>'%(cgi.escape(name)) | def html_title(self, username='guest'): name = self.truncated_name() | 162dcca372ff29532d14d0d9c90f2babadb2bccc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/162dcca372ff29532d14d0d9c90f2babadb2bccc/worksheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
2649,
12,
2890,
16,
2718,
2218,
18908,
11,
4672,
508,
273,
365,
18,
23558,
690,
67,
529,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
2649,
12,
2890,
16,
2718,
2218,
18908,
11,
4672,
508,
273,
365,
18,
23558,
690,
67,
529,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
file.Write(" EXPECT_EQ(%s::kCmdId, cmd.header.command);\n" % func.name) | file.Write(" EXPECT_EQ(static_cast<uint32>(%s::kCmdId),\n" % func.name) file.Write(" cmd.header.command);\n") | def WriteImmediateFormatTest(self, func, file): """Overrriden from TypeHandler.""" file.Write("TEST(GLES2FormatTest, %s) {\n" % func.name) file.Write(" const int kSomeBaseValueToTestWith = 51;\n") file.Write(" static %s data[] = {\n" % func.info.data_type) for v in range(0, func.info.count): file.Write(" static_ca... | d294ef3a7f91afdc1e5f9f570da7b8ef4b5bd8b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/d294ef3a7f91afdc1e5f9f570da7b8ef4b5bd8b7/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1630,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
2932,
16961,
12,
43,
11386,
22,
1630,
4709,
16,
738,
87,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1630,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
2932,
16961,
12,
43,
11386,
22,
1630,
4709,
16,
738,
87,
13,
... |
elif status == csp.Alternatives(2): | elif status == csp.Alternative(2): | def solve_all(problem): solutions = [] sp_stack = [] sp_stack.append(csp.ComputationSpace(problem)) while len(sp_stack): space = sp_stack.pop() print ' '*len(sp_stack), "ask ..." status = space.ask() if status == csp.Succeeded: print ' '*len(sp_stack), "solution !" solutions.append(space) elif status == csp.Alternat... | 608cb3cf7db4c35479b9e60d58a47d935b939a65 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/608cb3cf7db4c35479b9e60d58a47d935b939a65/strategies.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12439,
67,
454,
12,
18968,
4672,
225,
22567,
273,
5378,
1694,
67,
3772,
273,
5378,
225,
1694,
67,
3772,
18,
6923,
12,
28229,
18,
7703,
367,
3819,
12,
18968,
3719,
225,
1323,
562,
12,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12439,
67,
454,
12,
18968,
4672,
225,
22567,
273,
5378,
1694,
67,
3772,
273,
5378,
225,
1694,
67,
3772,
18,
6923,
12,
28229,
18,
7703,
367,
3819,
12,
18968,
3719,
225,
1323,
562,
12,
1... |
if cnf is None and not kw: cnf = {} for x in self.tk.split( self.tk.call(self._w, 'itemconfigure', index)): cnf[x[0][1:]] = (x[0][1:],) + x[1:] return cnf if type(cnf) == StringType and not kw: x = self.tk.split(self.tk.call( self._w, 'itemconfigure', index, '-'+cnf)) return (x[0][1:],) + x[1:] self.tk.call((self._w, '... | return self._configure(('itemconfigure', index), cnf, kw) | def itemconfigure(self, index, cnf=None, **kw): """Configure resources of an ITEM. | 7d1fd40e79192369cdb553ef0c7864157048d762 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7d1fd40e79192369cdb553ef0c7864157048d762/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
761,
14895,
12,
2890,
16,
770,
16,
23118,
33,
7036,
16,
2826,
9987,
4672,
3536,
11207,
2703,
434,
392,
25504,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
761,
14895,
12,
2890,
16,
770,
16,
23118,
33,
7036,
16,
2826,
9987,
4672,
3536,
11207,
2703,
434,
392,
25504,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
- `fhandle`: file object, an opened po or mo file | - `fpath`: string, path to po or mo file | def __init__(self, fhandle=None, wrapwidth=78): """ Constructor. | 418b31415acbfe149b6979cf1e06619eed712454 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/418b31415acbfe149b6979cf1e06619eed712454/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
4110,
33,
7036,
16,
2193,
2819,
33,
8285,
4672,
3536,
11417,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
4110,
33,
7036,
16,
2193,
2819,
33,
8285,
4672,
3536,
11417,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
raises(RuntimeError, f, X) | raises(Exception, f, X) | def f(x): return x + 1 | 05f11305d78f7fe77dab250883e2a089d10e6b08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/05f11305d78f7fe77dab250883e2a089d10e6b08/test_logicobjspace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
92,
4672,
327,
619,
397,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
92,
4672,
327,
619,
397,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
exec code | exec code in globals() | def code_eval(code): if code == '-': import sys code = sys.stdin exec code | 141e7eb460480adee925081e2e9c133cecd38db8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11058/141e7eb460480adee925081e2e9c133cecd38db8/python-eval.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
981,
67,
8622,
12,
710,
4672,
309,
981,
422,
4014,
30,
1930,
2589,
981,
273,
2589,
18,
21772,
1196,
981,
316,
10941,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
981,
67,
8622,
12,
710,
4672,
309,
981,
422,
4014,
30,
1930,
2589,
981,
273,
2589,
18,
21772,
1196,
981,
316,
10941,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print >>sys.stderr, "updating IDs: %d%%\r" % (100 * i / len(table_elems)), | print >>sys.stderr, "updating IDs: %d%%\r" % (100.0 * i / len(table_elems)), | def update_ids(xmldoc, connection, verbose = False): """ For internal use only. """ table_elems = xmldoc.getElementsByTagName(ligolw.Table.tagName) for i, tbl in enumerate(table_elems): if verbose: print >>sys.stderr, "updating IDs: %d%%\r" % (100 * i / len(table_elems)), tbl.applyKeyMapping() if verbose: print >>sys.s... | 203e7af377f630621d055164eb0ff35d39290061 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/203e7af377f630621d055164eb0ff35d39290061/ligolw_sqlite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2232,
12,
2902,
2434,
16,
1459,
16,
3988,
273,
1083,
4672,
3536,
2457,
2713,
999,
1338,
18,
3536,
1014,
67,
292,
7424,
273,
2025,
2434,
18,
588,
3471,
10401,
12,
80,
360,
355... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2232,
12,
2902,
2434,
16,
1459,
16,
3988,
273,
1083,
4672,
3536,
2457,
2713,
999,
1338,
18,
3536,
1014,
67,
292,
7424,
273,
2025,
2434,
18,
588,
3471,
10401,
12,
80,
360,
355... |
def get_perms(name, av_db): | def get_perms(name, av_db, common): | def get_perms(name, av_db): """ Returns the list of permissions contained within an access vector class that is stored in the access vector database av_db. Returns an empty list if the object name is not found. """ # Traverse through the access vector database and try to find the # object with the name passed. for ob... | 6e0542eb272f8ff5cc550be4532a8650f0e58571 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7247/6e0542eb272f8ff5cc550be4532a8650f0e58571/genclassperms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15969,
12,
529,
16,
1712,
67,
1966,
16,
2975,
4672,
3536,
2860,
326,
666,
434,
4371,
7542,
3470,
392,
2006,
3806,
667,
716,
353,
4041,
316,
326,
2006,
3806,
2063,
1712,
67,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15969,
12,
529,
16,
1712,
67,
1966,
16,
2975,
4672,
3536,
2860,
326,
666,
434,
4371,
7542,
3470,
392,
2006,
3806,
667,
716,
353,
4041,
316,
326,
2006,
3806,
2063,
1712,
67,
19... |
def translate_wrapper(domain, msgid, mapping=None, context=None, target_language=None, default=None): | def translate_wrapper(domain, msgid, mapping=None, context=None, target_language=None, default=None): | def translate_wrapper(domain, msgid, mapping=None, context=None, target_language=None, default=None): # wrapper for calling the translate() method with a fallback value try: res = service.translate(domain, msgid, mapping=mapping, context=context, target_language=target_language, default=default) except TypeError: #Loc... | a862cd727f63f9846cfca4aaffb2dcd02162d085 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/a862cd727f63f9846cfca4aaffb2dcd02162d085/i18n.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
67,
8376,
12,
4308,
16,
24389,
16,
2874,
33,
7036,
16,
819,
33,
7036,
16,
1018,
67,
4923,
33,
7036,
16,
805,
33,
7036,
4672,
468,
4053,
364,
4440,
326,
4204,
1435,
707,
598,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
67,
8376,
12,
4308,
16,
24389,
16,
2874,
33,
7036,
16,
819,
33,
7036,
16,
1018,
67,
4923,
33,
7036,
16,
805,
33,
7036,
4672,
468,
4053,
364,
4440,
326,
4204,
1435,
707,
598,
27... |
str += ' <dl><dt><b>Returns:</b></dt>\n <dd>' | str += ' <dl><dt><b>Returns:</b></dt>\n <dd>\n' | def _func_details(self, functions, cls, heading='Function Details'): """ @return: The HTML code for a function details table. This is used by L{_module_to_html} to describe the functions in a module; and by L{_class_to_html} to describe member functions. @rtype: C{string} """ functions = self._sort(functions) if len(f... | c953b2de7aa23b0dce9a80366ed13af227c1f7f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/c953b2de7aa23b0dce9a80366ed13af227c1f7f3/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
644,
67,
6395,
12,
2890,
16,
4186,
16,
2028,
16,
11053,
2218,
2083,
21897,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
445,
3189,
1014,
18,
225,
1220,
353,
1399,
635... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
644,
67,
6395,
12,
2890,
16,
4186,
16,
2028,
16,
11053,
2218,
2083,
21897,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
445,
3189,
1014,
18,
225,
1220,
353,
1399,
635... |
sys.exit(0) | sys.exit(0) | def fullpath(path, ext, list): return map(lambda x: path+x+ext, list) | 0e7a83718f3a44bb521374848dbc0b4d693363c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14747/0e7a83718f3a44bb521374848dbc0b4d693363c3/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15170,
12,
803,
16,
1110,
16,
666,
4672,
327,
852,
12,
14661,
619,
30,
589,
15,
92,
15,
408,
16,
666,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15170,
12,
803,
16,
1110,
16,
666,
4672,
327,
852,
12,
14661,
619,
30,
589,
15,
92,
15,
408,
16,
666,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
this = apply(_quickfix.new_InstrumentPartySubID, args) | this = _quickfix.new_InstrumentPartySubID(*args) | def __init__(self, *args): this = apply(_quickfix.new_InstrumentPartySubID, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
19228,
17619,
1676,
734,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
19228,
17619,
1676,
734,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,... |
tmp_user_dict['homeDirectory'] = ("%s/%s/%s" % (UsersList.configuration.users.home_base_path, UsersList.profiles.profiles[profile]['primary_group'], login)) | tmp_user_dict['homeDirectory'] = ("%s/%s" % (UsersList.configuration.users.home_base_path, login)) | def AddUser(self, lastname = None, firstname = None, password = None, primary_group=None, profile=None, skel=None, login=None, gecos=None, system = False, batch=False) : """Add a user and return his/her (uid, login, pass).""" | 6cc6343e8d095aa540a441160ddb7dbbaaf7efe4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7650/6cc6343e8d095aa540a441160ddb7dbbaaf7efe4/users.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
1299,
12,
2890,
16,
1142,
529,
273,
599,
16,
1122,
529,
273,
599,
16,
2201,
273,
599,
16,
3354,
67,
1655,
33,
7036,
16,
3042,
33,
7036,
16,
4343,
292,
33,
7036,
16,
3925,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
1299,
12,
2890,
16,
1142,
529,
273,
599,
16,
1122,
529,
273,
599,
16,
2201,
273,
599,
16,
3354,
67,
1655,
33,
7036,
16,
3042,
33,
7036,
16,
4343,
292,
33,
7036,
16,
3925,
33,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.