rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
load (sys.argv[1]) | load (sys.argv[1:]) | def load (filename): amc = AMC.from_file (filename) bones = {} for (key, data) in amc.bones.iteritems (): print 'building graph for',key g = build_graph (key, data) if g is not None: f = file ('graphs/%s.dot' % key, 'w') DotPrint (g, f) f.close () | 06c5189cceb33db4082ae4d94ff86fe083fc0935 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/06c5189cceb33db4082ae4d94ff86fe083fc0935/build_motion_graphs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
261,
3459,
4672,
2125,
71,
273,
432,
20022,
18,
2080,
67,
768,
261,
3459,
13,
324,
5322,
273,
2618,
364,
261,
856,
16,
501,
13,
316,
2125,
71,
18,
70,
5322,
18,
2165,
3319,
183... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
261,
3459,
4672,
2125,
71,
273,
432,
20022,
18,
2080,
67,
768,
261,
3459,
13,
324,
5322,
273,
2618,
364,
261,
856,
16,
501,
13,
316,
2125,
71,
18,
70,
5322,
18,
2165,
3319,
183... |
if nodeName not in ['td', 'th']: assert self.innerHTML nodeName = self.innerHTML | nodeName = self.innerHTML | def resetInsertionMode(self): # The name of this method is mostly historical. (It's also used in the # specification.) last = False newModes = { "select":"inSelect", "td":"inCell", "th":"inCell", "tr":"inRow", "tbody":"inTableBody", "thead":"inTableBody", "tfoot":"inTableBody", "caption":"inCaption", "colgroup":"inColu... | 42f8f37b07c006f9ff5c7cbb9dd4df915b61012c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4487/42f8f37b07c006f9ff5c7cbb9dd4df915b61012c/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
29739,
2309,
12,
2890,
4672,
468,
1021,
508,
434,
333,
707,
353,
23958,
23922,
18,
261,
7193,
1807,
2546,
1399,
316,
326,
468,
7490,
12998,
1142,
273,
1083,
394,
18868,
273,
288,
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,
2715,
29739,
2309,
12,
2890,
4672,
468,
1021,
508,
434,
333,
707,
353,
23958,
23922,
18,
261,
7193,
1807,
2546,
1399,
316,
326,
468,
7490,
12998,
1142,
273,
1083,
394,
18868,
273,
288,
3... |
s += "assign%s" % props() | s += "ASSIGN%s" % props() | def props(): if c["include_props"]: props_to_include = [x for x in ("lineno", "start", "end", "readOnly") if hasattr(n, x)] if len(props_to_include) > 0: s = " (@" for prop in props_to_include: s += " (%s %s)" % (prop, getattr(n, prop)) return s +")" return "" | df699fbcef0551b57fbcf593691a41515ef3b880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4710/df699fbcef0551b57fbcf593691a41515ef3b880/sexp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3458,
13332,
309,
276,
9614,
6702,
67,
9693,
11929,
30,
3458,
67,
869,
67,
6702,
273,
306,
92,
364,
619,
316,
7566,
17782,
3113,
315,
1937,
3113,
315,
409,
3113,
315,
896,
3386,
7923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3458,
13332,
309,
276,
9614,
6702,
67,
9693,
11929,
30,
3458,
67,
869,
67,
6702,
273,
306,
92,
364,
619,
316,
7566,
17782,
3113,
315,
1937,
3113,
315,
409,
3113,
315,
896,
3386,
7923,
... |
"All Files (*.mmp *.pdb);;Molecular machine parts (*.mmp);;Protein Data Bank (*.pdb)", | "Molecular machine parts (*.mmp);;Protein Data Bank (*.pdb);;All Files (*.mmp *.pdb)", | def fileOpen(self): self.history.message(greenmsg("Open File:")) if self.assy.has_changed(): ret = QMessageBox.warning( self, self.name(), "The part contains unsaved changes.\n" "Do you want to save the changes before opening a new part?", "&Save", "&Discard", "Cancel", 0, # Enter == button 0 2 ) # Escape ==... | 2d8f276eedc3621f9a7b9ce2faa4a46be71afd18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2d8f276eedc3621f9a7b9ce2faa4a46be71afd18/MWsemantics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
3678,
12,
2890,
4672,
225,
365,
18,
8189,
18,
2150,
12,
11571,
3576,
2932,
3678,
1387,
2773,
3719,
225,
309,
365,
18,
428,
93,
18,
5332,
67,
6703,
13332,
325,
273,
30728,
18,
8551... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
585,
3678,
12,
2890,
4672,
225,
365,
18,
8189,
18,
2150,
12,
11571,
3576,
2932,
3678,
1387,
2773,
3719,
225,
309,
365,
18,
428,
93,
18,
5332,
67,
6703,
13332,
325,
273,
30728,
18,
8551... |
if needs_add: | if not alreadyInCart: | def add_item(self, chosen_item, number_added, details={}): needs_add = False try: item_to_modify = self.cartitem_set.filter(product__id = chosen_item.id)[0] # Custom Products will not be added, they will each get their own line item #TODO: More sophisticated checks to make sure the options really are different if 'Cu... | e357f1f84ba3a61f9672bfe1766092774cdf8882 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/e357f1f84ba3a61f9672bfe1766092774cdf8882/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1726,
12,
2890,
16,
10447,
67,
1726,
16,
1300,
67,
9665,
16,
3189,
12938,
4672,
4260,
67,
1289,
273,
1083,
225,
775,
30,
761,
67,
869,
67,
17042,
273,
225,
365,
18,
11848,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
1726,
12,
2890,
16,
10447,
67,
1726,
16,
1300,
67,
9665,
16,
3189,
12938,
4672,
4260,
67,
1289,
273,
1083,
225,
775,
30,
761,
67,
869,
67,
17042,
273,
225,
365,
18,
11848,
1... |
macros[i + 'f'] = shell_quote(tab_dir.pointed_obj.path) | if tab_dir.pointed_obj: macros[i + 'f'] = shell_quote(tab_dir.pointed_obj.path) | def _substitute_metachars(self, command): macros = {} | fd51fa3da2848859ba722bac45178c24845d17d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/fd51fa3da2848859ba722bac45178c24845d17d0/console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
17207,
67,
10578,
497,
5913,
12,
2890,
16,
1296,
4672,
24302,
273,
2618,
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,
... | [
1,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
17207,
67,
10578,
497,
5913,
12,
2890,
16,
1296,
4672,
24302,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
for i in range(len(res)): | for i in res: | def create_variable_types_table(data): """Creates a table for the variable types.""" | 03dd1fa87e7ed6a1aae10ff4e922ba7db9cd3ff8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9355/03dd1fa87e7ed6a1aae10ff4e922ba7db9cd3ff8/wiki_grabber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6105,
67,
2352,
67,
2121,
12,
892,
4672,
3536,
2729,
279,
1014,
364,
326,
2190,
1953,
12123,
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,
752,
67,
6105,
67,
2352,
67,
2121,
12,
892,
4672,
3536,
2729,
279,
1014,
364,
326,
2190,
1953,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
i = 1 | i = 1 | def update_grades_area(self): w = self.widget # Update grade buttons. if self.card and self.card.grade < 2: i = 0 # Acquisition phase. default_grade = 0 for grade in [3, 4, 5]: w.enable_grade(grade, False) else: i = 1 # Retention phase. default_grade = 4 for grade in [3, 4, 5]: w.enable_grade(grade, True) w.enable_grad... | 0ce2d69b3e2433af792921c07c3159dca16bcfd1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1240/0ce2d69b3e2433af792921c07c3159dca16bcfd1/SM2_controller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
13088,
67,
5036,
12,
2890,
4672,
341,
273,
365,
18,
6587,
468,
2315,
7324,
9502,
18,
309,
365,
18,
3327,
471,
365,
18,
3327,
18,
3994,
411,
576,
30,
277,
273,
374,
468,
128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13088,
67,
5036,
12,
2890,
4672,
341,
273,
365,
18,
6587,
468,
2315,
7324,
9502,
18,
309,
365,
18,
3327,
471,
365,
18,
3327,
18,
3994,
411,
576,
30,
277,
273,
374,
468,
128... |
class CREATEBRUSHINDIRECT(EMR_UNKNOWN): | class _CREATEBRUSHINDIRECT(_EMR_UNKNOWN): | def __init__(self,style=PS_SOLID,width=1,color=0): EMR_UNKNOWN.__init__(self) self.lopn_style=style self.lopn_width=width self.lopn_color=color | 688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4060,
33,
5857,
67,
19815,
734,
16,
2819,
33,
21,
16,
3266,
33,
20,
4672,
7141,
54,
67,
14737,
16186,
2738,
972,
12,
2890,
13,
365,
18,
383,
7449,
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,
1001,
2738,
972,
12,
2890,
16,
4060,
33,
5857,
67,
19815,
734,
16,
2819,
33,
21,
16,
3266,
33,
20,
4672,
7141,
54,
67,
14737,
16186,
2738,
972,
12,
2890,
13,
365,
18,
383,
7449,
67,
... |
self.assertEqual(self.cur.execute("create table users " "(userid varchar(5), username varchar(25))"),-1) | self.assertEqual(self.cur.execute( """create table users ( userid varchar(5), username varchar(25), bitfield bit, intfield integer, floatfield float )"""),-1) | def setUp(self): self.db_filename = os.path.join(tempfile.gettempdir(), "test_odbc.mdb") if os.path.isfile(self.db_filename): os.unlink(self.db_filename) | ff726fadaf1b1c14b0532d2e1c4cdd410f15a4ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/ff726fadaf1b1c14b0532d2e1c4cdd410f15a4ef/test_odbc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
1966,
67,
3459,
273,
1140,
18,
803,
18,
5701,
12,
5814,
768,
18,
588,
5814,
1214,
9334,
315,
3813,
67,
10605,
71,
18,
27574,
7923,
309,
1140,
18,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24292,
12,
2890,
4672,
365,
18,
1966,
67,
3459,
273,
1140,
18,
803,
18,
5701,
12,
5814,
768,
18,
588,
5814,
1214,
9334,
315,
3813,
67,
10605,
71,
18,
27574,
7923,
309,
1140,
18,
803,
... |
raise | raise SaveValueError, (item, name, e) | def _value(self, item, name, value, version, flags, withSchema, attribute): | 04167b91f2129d7d88c0a25a74eb7f238532584d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/04167b91f2129d7d88c0a25a74eb7f238532584d/DBItemIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1132,
12,
2890,
16,
761,
16,
508,
16,
460,
16,
1177,
16,
2943,
16,
598,
3078,
16,
1566,
4672,
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,
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,
389,
1132,
12,
2890,
16,
761,
16,
508,
16,
460,
16,
1177,
16,
2943,
16,
598,
3078,
16,
1566,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
root = svn.fs.revision_root(self.fs_ptr, rev, self.pool) | def render(self): FileCommon.render(self) rev = self.args.get('rev', None) self.path = self.args.get('path', '/') if not rev: rev = svn.fs.youngest_rev(self.fs_ptr, self.pool) else: rev = int(rev) self.req.hdf.setValue('file.rev', str(rev)) self.req.hdf.setValue('file.path', self.path) self.req.hdf.setValue('file.rawu... | f22298d9c4006f0b657cde21b9c28e94a7f80c0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/f22298d9c4006f0b657cde21b9c28e94a7f80c0d/File.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
4672,
1387,
6517,
18,
5902,
12,
2890,
13,
225,
5588,
273,
365,
18,
1968,
18,
588,
2668,
9083,
2187,
599,
13,
365,
18,
803,
273,
365,
18,
1968,
18,
588,
2668,
803,
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,
1743,
12,
2890,
4672,
1387,
6517,
18,
5902,
12,
2890,
13,
225,
5588,
273,
365,
18,
1968,
18,
588,
2668,
9083,
2187,
599,
13,
365,
18,
803,
273,
365,
18,
1968,
18,
588,
2668,
803,
218... | |
self.assert_(stylesheet_path in self.get_record(**s)) | record = self.get_record(**s) self.assert_(stylesheet_path in record, '%r should be in %r' % (stylesheet_path, record)) | def test_stylesheet_dependencies(self): # Parameters to publish_file. s = {'settings_overrides': {}} so = s['settings_overrides'] so['embed_stylesheet'] = 0 stylesheet_path = os.path.join('data', 'stylesheet.txt') so['stylesheet_path'] = stylesheet_path so['stylesheet'] = None s['writer_name'] = 'html' self.assert_(sty... | f74783c6a2f4448ac4434c18111d0b0ed4e1f994 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8194/f74783c6a2f4448ac4434c18111d0b0ed4e1f994/test_dependencies.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19403,
67,
11037,
12,
2890,
4672,
468,
7012,
358,
3808,
67,
768,
18,
272,
273,
13666,
4272,
67,
19775,
4278,
2618,
97,
1427,
273,
272,
3292,
4272,
67,
19775,
3546,
1427,
3292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19403,
67,
11037,
12,
2890,
4672,
468,
7012,
358,
3808,
67,
768,
18,
272,
273,
13666,
4272,
67,
19775,
4278,
2618,
97,
1427,
273,
272,
3292,
4272,
67,
19775,
3546,
1427,
3292,
... |
characters, when false only 8-bit characters. If `unicode` is | characters, when false only 8-bit characters. If unicode is | def array(obj, itemsize=None, copy=True, unicode=None, order=None): """ Create a `chararray`. .. note:: This class is provided for numarray backward-compatibility. New code (not concerned with numarray compatibility) should use arrays of type string_ or unicode_ and use the free functions in :mod:`numpy.char <numpy.co... | 05324d0e986a1012a342e2650b3883e13a285029 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/05324d0e986a1012a342e2650b3883e13a285029/defchararray.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
526,
12,
2603,
16,
761,
1467,
33,
7036,
16,
1610,
33,
5510,
16,
5252,
33,
7036,
16,
1353,
33,
7036,
4672,
3536,
1788,
279,
1375,
3001,
1126,
8338,
225,
6116,
4721,
2866,
1220,
667,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
526,
12,
2603,
16,
761,
1467,
33,
7036,
16,
1610,
33,
5510,
16,
5252,
33,
7036,
16,
1353,
33,
7036,
4672,
3536,
1788,
279,
1375,
3001,
1126,
8338,
225,
6116,
4721,
2866,
1220,
667,
353... |
EdkLogger.warn(None, "Failed to generate execution order prediction report, for some error occurred in executing EOT.") | EdkLogger.warn(None, "Failed to generate execution order prediction report, for some error occurred in executing EOT.") | def _InvokeEotTool(self): if self._EotToolInvoked: return self._EotToolInvoked = True FvFileList = [] for FvName in self._FvList: FvFile = os.path.join(self._FvDir, FvName + ".Fv") if os.path.isfile(FvFile): FvFileList.append(FvFile) # # Write source file list and GUID file list to an intermediate file # as the input... | a82e08799616fa2751dcad90e2e88c863aef88ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/a82e08799616fa2751dcad90e2e88c863aef88ff/BuildReport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10969,
41,
352,
6364,
12,
2890,
4672,
309,
365,
6315,
41,
352,
6364,
26215,
30,
327,
225,
365,
6315,
41,
352,
6364,
26215,
273,
1053,
478,
90,
26098,
273,
5378,
364,
478,
90,
461,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10969,
41,
352,
6364,
12,
2890,
4672,
309,
365,
6315,
41,
352,
6364,
26215,
30,
327,
225,
365,
6315,
41,
352,
6364,
26215,
273,
1053,
478,
90,
26098,
273,
5378,
364,
478,
90,
461,... |
r = numpy.int32(numpy.int64(a*b + c) % m) | r = numpy.int32((numpy.int64(a)*b + c) % m) | def mulmod(a, b, c, m): r = numpy.int32(numpy.int64(a*b + c) % m) return r if r >= 0 else r+m | c6104ebc849f8a7ace79da8301a0996cabb14f90 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/c6104ebc849f8a7ace79da8301a0996cabb14f90/rng_mrg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14064,
1711,
12,
69,
16,
324,
16,
276,
16,
312,
4672,
436,
273,
3972,
18,
474,
1578,
12443,
15974,
18,
474,
1105,
12,
69,
17653,
70,
397,
276,
13,
738,
312,
13,
327,
436,
309,
436,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14064,
1711,
12,
69,
16,
324,
16,
276,
16,
312,
4672,
436,
273,
3972,
18,
474,
1578,
12443,
15974,
18,
474,
1105,
12,
69,
17653,
70,
397,
276,
13,
738,
312,
13,
327,
436,
309,
436,
... |
if os.path.link(dir_fsvars + fsvar): | if os.path.islink(dir_fsvars + fsvar): | def _apply_installroot(yumconf, option): path = getattr(yumconf, option) ir_path = yumconf.installroot + path ir_path = ir_path.replace('//', '/') # os.path.normpath won't fix this and # it annoys me ir_path = varReplace(ir_path, yumvars) setattr(yumconf, option, ir_path) | 7f5600232c8b8027663af447ce985d37f654cc6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/7f5600232c8b8027663af447ce985d37f654cc6b/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
67,
5425,
3085,
12,
93,
379,
3923,
16,
1456,
4672,
589,
273,
3869,
12,
93,
379,
3923,
16,
1456,
13,
9482,
67,
803,
273,
677,
379,
3923,
18,
5425,
3085,
397,
589,
9482,
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,
9010,
67,
5425,
3085,
12,
93,
379,
3923,
16,
1456,
4672,
589,
273,
3869,
12,
93,
379,
3923,
16,
1456,
13,
9482,
67,
803,
273,
677,
379,
3923,
18,
5425,
3085,
397,
589,
9482,
67,... |
elif rcmd == u'yy': | elif re.match(re.compile('y|y[bhlw{}]'), rcmd): | def NewLineAfter(): """Insert newline after current line""" line = self.LineFromPosition(self.GetCurrentPos()) self.GotoPos(self.GetLineEndPosition(line)) self.AutoIndent() | be43c077f19ad88c63e5e2f8aa6305f97b701c5e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/be43c077f19ad88c63e5e2f8aa6305f97b701c5e/ed_stc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1166,
1670,
4436,
13332,
3536,
4600,
9472,
1839,
783,
980,
8395,
980,
273,
365,
18,
1670,
1265,
2555,
12,
2890,
18,
967,
3935,
1616,
10756,
365,
18,
43,
6302,
1616,
12,
2890,
18,
967,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1166,
1670,
4436,
13332,
3536,
4600,
9472,
1839,
783,
980,
8395,
980,
273,
365,
18,
1670,
1265,
2555,
12,
2890,
18,
967,
3935,
1616,
10756,
365,
18,
43,
6302,
1616,
12,
2890,
18,
967,
... |
None, [cty.POINTER(FL_OBJECT), cty.c_double], | None, [cty.POINTER(FL_OBJECT), cty.c_double], | def fl_set_scrollbar_return(ob, ret): """ fl_set_scrollbar_return(ob, ret) """ _fl_set_scrollbar_return(ob, ret) | 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,
67,
12033,
3215,
67,
2463,
12,
947,
16,
325,
4672,
3536,
1183,
67,
542,
67,
12033,
3215,
67,
2463,
12,
947,
16,
325,
13,
3536,
225,
389,
2242,
67,
542,
67,
12033,
3215... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
12033,
3215,
67,
2463,
12,
947,
16,
325,
4672,
3536,
1183,
67,
542,
67,
12033,
3215,
67,
2463,
12,
947,
16,
325,
13,
3536,
225,
389,
2242,
67,
542,
67,
12033,
3215... |
return FiniteField_ext_pariElement(self.__parent, ~self.__value) | return FiniteField_ext_pariElement(self.__parent, ~self.__value, check=False) | def __invert__(self): """ EXAMPLES: sage: from sage.rings.finite_field import FiniteField_ext_pari sage: a = FiniteField_ext_pari(9, 'a').gen() sage: ~a a + 2 sage: (a+1)*a 2*a + 1 """ | 15cbf070b9af1ea36fb697f2325030f848348911 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/15cbf070b9af1ea36fb697f2325030f848348911/finite_field_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
267,
1097,
972,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
86,
899,
18,
9551,
67,
1518,
1930,
9458,
1137,
974,
67,
408,
67,
1065,
77,
272,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
267,
1097,
972,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
86,
899,
18,
9551,
67,
1518,
1930,
9458,
1137,
974,
67,
408,
67,
1065,
77,
272,
41... |
'total_cost': fields.function(_total_cost, string='Cost', method=True, type="float"), 'revenue': fields.float('Revenue',readonly=True), | def _total_cost(self, cr, uid, ids, field_name, arg, context={}): | b6abea96454292526d0e63cef0cd1599b427f580 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/b6abea96454292526d0e63cef0cd1599b427f580/campaign_analysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4963,
67,
12398,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
12938,
4672,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4963,
67,
12398,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
529,
16,
1501,
16,
819,
12938,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
""" fl_create_lightbutton(type, x, y, w, h, label) -> object ref. | """ fl_create_lightbutton(type, x, y, w, h, label) -> object | def fl_create_lightbutton(type, x, y, w, h, label): """ fl_create_lightbutton(type, x, y, w, h, label) -> object ref. """ retval = _fl_create_lightbutton(type, x, y, w, h, label) return retval | 8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2640,
67,
5099,
5391,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
5099,
5391,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
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,
1183,
67,
2640,
67,
5099,
5391,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
5099,
5391,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
... |
(width-self.border_size, self.get_size()[1]-self.border_size), | (width-self.border_size*2, self.get_size()[1]-self.border_size*2), | def __draw(self): # catch division by zero error. if not self.max_value: return | c4d1baeeeb75cdb1174c566cfdfd8491fbed6633 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/c4d1baeeeb75cdb1174c566cfdfd8491fbed6633/progressbar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9446,
12,
2890,
4672,
468,
1044,
16536,
635,
3634,
555,
18,
309,
486,
365,
18,
1896,
67,
1132,
30,
327,
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,
1001,
9446,
12,
2890,
4672,
468,
1044,
16536,
635,
3634,
555,
18,
309,
486,
365,
18,
1896,
67,
1132,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
vList.append( Violation(self, line, "failed '[&|+-*/]='") ) | mOvr = re.search("operator[\&\|\*\+\-\/]?=\(", line.stripped) if not mOvr: vList.append( Violation(self, line, "failed '[&|+-*/]='") ) | def apply(self, lines): vList = [] if (self.getFiletype() in self.getTypeList()): for line in lines: | 5432dc4fee5b9db163a86ec3ee3f1ecc4222856d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/5432dc4fee5b9db163a86ec3ee3f1ecc4222856d/style.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2362,
4672,
331,
682,
273,
5378,
225,
309,
261,
2890,
18,
588,
25579,
5872,
1435,
316,
365,
18,
588,
559,
682,
1435,
4672,
364,
980,
316,
2362,
30,
2,
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,
2230,
12,
2890,
16,
2362,
4672,
331,
682,
273,
5378,
225,
309,
261,
2890,
18,
588,
25579,
5872,
1435,
316,
365,
18,
588,
559,
682,
1435,
4672,
364,
980,
316,
2362,
30,
2,
-100,
-100,
... |
if data.invoice_id.state == 'paid': new_ids = self.pool.get('account.invoice').refund(cr, uid,[data.invoice_id.id]) self.write(cr, uid,ids, {'invoice_id' : new_ids[0]}) else: wf_service = netsvc.LocalService('workflow') wf_service.trg_validate(uid, 'account.invoice', data.invoice_id.id, 'invoice_cancel', cr) | if data.invoice_id: if data.invoice_id.state == 'paid': new_ids = self.pool.get('account.invoice').refund(cr, uid,[data.invoice_id.id]) self.write(cr, uid,ids, {'invoice_id' : new_ids[0]}) else: wf_service = netsvc.LocalService('workflow') wf_service.trg_validate(uid, 'account.invoice', data.invoice_id.id, 'invoice_can... | def cci_dossier_cancel_cci(self, cr, uid, ids, *args): data=self.browse(cr,uid,ids[0]) if data.invoice_id.state == 'paid': new_ids = self.pool.get('account.invoice').refund(cr, uid,[data.invoice_id.id]) self.write(cr, uid,ids, {'invoice_id' : new_ids[0]}) else: wf_service = netsvc.LocalService('workflow') wf_service.tr... | 7536b3ef628828efb990f49d65ce95e3569ad8d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/7536b3ef628828efb990f49d65ce95e3569ad8d9/cci_mission.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4946,
77,
67,
72,
8464,
2453,
67,
10996,
67,
952,
77,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
501,
33,
2890,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
63,
20,
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,
4946,
77,
67,
72,
8464,
2453,
67,
10996,
67,
952,
77,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
501,
33,
2890,
18,
25731,
12,
3353,
16,
1911,
16,
2232,
63,
20,
5... |
dtypechar = _coerce_rules[(self._dtypechar,ocs._dtypechar)] | dtypechar = _coerce_rules[(self._dtypechar, ocs._dtypechar)] | def __pow__(self, other): """ Element-by-element power (unless other is a scalar, in which case return the matrix power.) """ if isscalar(other): new = self.copy() new.data = new.data ** other new._dtypechar = new.data.dtypechar new.ftype = _transtabl[new._dtypechar] return new else: ocs = csr_matrix(other) if (ocs.sha... | bdabf856b614694a8ef20c73a7d82bda3a7cf386 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/bdabf856b614694a8ef20c73a7d82bda3a7cf386/sparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23509,
972,
12,
2890,
16,
1308,
4672,
3536,
3010,
17,
1637,
17,
2956,
7212,
261,
28502,
1308,
353,
279,
4981,
16,
316,
1492,
648,
327,
326,
3148,
7212,
12998,
3536,
309,
3385,
3473... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23509,
972,
12,
2890,
16,
1308,
4672,
3536,
3010,
17,
1637,
17,
2956,
7212,
261,
28502,
1308,
353,
279,
4981,
16,
316,
1492,
648,
327,
326,
3148,
7212,
12998,
3536,
309,
3385,
3473... |
def refresh(self, button): dialog = gtk.MessageDialog(self.window, 0, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, _('Awn has been successfully refreshed')) dialog.run() dialog.hide() | def changeTab(self, iconView): self.notebook.set_current_page(iconView.get_cursor()[0][0]) | 87ab11ffefa3953167144f4d2d56ea277c34df42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8416/87ab11ffefa3953167144f4d2d56ea277c34df42/awnClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
5661,
12,
2890,
16,
4126,
1767,
4672,
365,
18,
24422,
18,
542,
67,
2972,
67,
2433,
12,
3950,
1767,
18,
588,
67,
9216,
1435,
63,
20,
6362,
20,
5717,
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,
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,
2549,
5661,
12,
2890,
16,
4126,
1767,
4672,
365,
18,
24422,
18,
542,
67,
2972,
67,
2433,
12,
3950,
1767,
18,
588,
67,
9216,
1435,
63,
20,
6362,
20,
5717,
2,
-100,
-100,
-100,
-100,
-... | |
return port else: if verbose: print "Port %s is already in use."%port print "Trying next port..." port += 1 | if int(msg[0]) == 111: return port if verbose: print "Port %s is already in use."%port print "Trying next port..." | def find_next_available_port(start, max_tries=100, verbose=True): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) for port in range(start, start+max_tries+1): try: s.connect(('', port)) except socket.error, msg: return port else: if verbose: print "Port %s is already in use."%port print "Trying next port..." port... | 01fd25760e7d9a682cec2f98ccb8a38b3b998cdf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/01fd25760e7d9a682cec2f98ccb8a38b3b998cdf/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4285,
67,
5699,
67,
655,
12,
1937,
16,
943,
67,
2007,
33,
6625,
16,
3988,
33,
5510,
4672,
272,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1104,
67,
4285,
67,
5699,
67,
655,
12,
1937,
16,
943,
67,
2007,
33,
6625,
16,
3988,
33,
5510,
4672,
272,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,... |
cr.close() | def go(id, uid, ids, datas, context): try: cr = pooler.get_db(db).cursor() obj = netsvc.LocalService('report.'+object) (result, format) = obj.create(cr, uid, ids, datas, context) cr.close() self._reports[id]['result'] = result self._reports[id]['format'] = format self._reports[id]['state'] = True except Exception, exce... | 552b40bedb64a39a1c7acd937ebbd66c40f182f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/552b40bedb64a39a1c7acd937ebbd66c40f182f6/web_services.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
12,
350,
16,
4555,
16,
3258,
16,
5386,
16,
819,
4672,
775,
30,
4422,
273,
2845,
264,
18,
588,
67,
1966,
12,
1966,
2934,
9216,
1435,
1081,
273,
21954,
4227,
18,
25635,
2668,
6006,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1960,
12,
350,
16,
4555,
16,
3258,
16,
5386,
16,
819,
4672,
775,
30,
4422,
273,
2845,
264,
18,
588,
67,
1966,
12,
1966,
2934,
9216,
1435,
1081,
273,
21954,
4227,
18,
25635,
2668,
6006,... | |
cleanup_trailing_parens(doc, ["function", "method", "cfunction"]) cleanup_synopses(doc) | cleanup_trailing_parens(fragment, ["function", "method", "cfunction"]) cleanup_synopses(doc, fragment) | def convert(ifp, ofp): p = esistools.ExtendedEsisBuilder() p.feed(ifp.read()) doc = p.document fragment = p.fragment normalize(fragment) simplify(doc, fragment) handle_labels(doc, fragment) handle_appendix(doc, fragment) fixup_trailing_whitespace(doc, { "abstract": "\n", "title": "", "chapter": "\n\n", "section": "\n\n... | 304ebb260c7d5886ccb4a4738c3e4f83f60820f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/304ebb260c7d5886ccb4a4738c3e4f83f60820f6/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
430,
84,
16,
434,
84,
4672,
293,
273,
5001,
376,
8192,
18,
11456,
6705,
291,
1263,
1435,
293,
18,
7848,
12,
430,
84,
18,
896,
10756,
997,
273,
293,
18,
5457,
5481,
273,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
430,
84,
16,
434,
84,
4672,
293,
273,
5001,
376,
8192,
18,
11456,
6705,
291,
1263,
1435,
293,
18,
7848,
12,
430,
84,
18,
896,
10756,
997,
273,
293,
18,
5457,
5481,
273,
293... |
warn("\nZCatalog query using '%s' detected.\nUsing query parameters ending with '_usage' is deprecated.\nConsider using record-style parameters instead (see lib/python/Products/PluggableIndexes/README.txt for details)" % usage_param, DeprecationWarning) | warn("\nZCatalog query using '%s' detected.\nUsing query parameters ending with '_usage' is deprecated.\nConsider using record-style parameters instead (see lib/python/Products/PluginIndexes/README.txt for details)" % usage_param, DeprecationWarning) | def __init__(self, request, iid, options=[]): """ parse a request from the ZPublisher and return a uniform datastructure back to the _apply_index() method of the index | bfcfbb2557df367b95a8f9f7b3e746503113556f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/bfcfbb2557df367b95a8f9f7b3e746503113556f/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
16,
22819,
16,
702,
33,
8526,
4672,
3536,
1109,
279,
590,
225,
628,
326,
2285,
15960,
471,
327,
279,
10823,
5386,
13583,
1473,
358,
326,
389,
9010,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
590,
16,
22819,
16,
702,
33,
8526,
4672,
3536,
1109,
279,
590,
225,
628,
326,
2285,
15960,
471,
327,
279,
10823,
5386,
13583,
1473,
358,
326,
389,
9010,
... |
graph = rtgraph.HScrollLineGraph(range=(0,255)) | graph = rtgraph.HScrollLineGraph(range=(0.0, 255.0)) | def main(): channels = [AdcChannel(name="Analog channel %d" % i) for i in xrange(8)] graph = rtgraph.HScrollLineGraph(range=(0,255)) win = rtgraph.GraphUIWindow(channels, graph, valueUpdateInterval=500) win.connect("destroy", gtk.mainquit) analogThread = AnalogUpdaterThread(channels) try: gtk.threads_init() gtk.main()... | d025fd905e13e292ea9ad174556b3e65495cbcbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/d025fd905e13e292ea9ad174556b3e65495cbcbb/adc_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
5750,
273,
306,
1871,
71,
2909,
12,
529,
1546,
979,
6238,
1904,
738,
72,
6,
738,
277,
13,
364,
277,
316,
12314,
12,
28,
25887,
2667,
273,
8253,
4660,
18,
44,
6806,
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,
2774,
13332,
5750,
273,
306,
1871,
71,
2909,
12,
529,
1546,
979,
6238,
1904,
738,
72,
6,
738,
277,
13,
364,
277,
316,
12314,
12,
28,
25887,
2667,
273,
8253,
4660,
18,
44,
6806,
1670,
... |
url = self.neighborhood.url_prefix + self.shortname + '/' | shortname = self.shortname[len(self.neighborhood.shortname_prefix):] url = self.neighborhood.url_prefix + shortname + '/' | def url(self): url = self.neighborhood.url_prefix + self.shortname + '/' if url.startswith('//'): try: return request.scheme + ':' + url except TypeError: # pragma no cover return 'http:' + url else: return url | f3568a890e665ec7ee702139ea48e3ef53b741f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/f3568a890e665ec7ee702139ea48e3ef53b741f6/project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
12,
2890,
4672,
23879,
273,
365,
18,
28650,
63,
1897,
12,
2890,
18,
18168,
19619,
18,
28650,
67,
3239,
4672,
65,
880,
273,
365,
18,
18168,
19619,
18,
718,
67,
3239,
397,
23879,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
880,
12,
2890,
4672,
23879,
273,
365,
18,
28650,
63,
1897,
12,
2890,
18,
18168,
19619,
18,
28650,
67,
3239,
4672,
65,
880,
273,
365,
18,
18168,
19619,
18,
718,
67,
3239,
397,
23879,
39... |
description = DOCLINES[0], | description = DOCLINES[1], | def run(self): distbuild.run(self) generate_docs() | 75814d0e4ae733ef9fcf50533ef3feaa60abc201 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/75814d0e4ae733ef9fcf50533ef3feaa60abc201/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2411,
3510,
18,
2681,
12,
2890,
13,
2103,
67,
8532,
1435,
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,... | [
1,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2411,
3510,
18,
2681,
12,
2890,
13,
2103,
67,
8532,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def OnPaneButton(self, event): | def OnPaneClose(self, event): | def OnPaneButton(self, event): | de824c0c9cec70a6369d011fb635c8ba12bdacea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/de824c0c9cec70a6369d011fb635c8ba12bdacea/AUI_DockingWindowMgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
8485,
3616,
12,
2890,
16,
871,
4672,
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,
... | [
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,
2755,
8485,
3616,
12,
2890,
16,
871,
4672,
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... |
arguments[key] = edict[v] | arguments[key] = Enum(edict[v]) | def enumsubst(arguments, key, edict): """Substitute a single enum keyword argument, if it occurs""" if not arguments.has_key(key) or edict is None: return v = arguments[key] ok = edict.values() if edict.has_key(v): arguments[key] = edict[v] elif not v in ok: raise TypeError, 'Unknown enumerator: %s'%v | 5b7338519507e984778355d1628ec65bfa59bb39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5b7338519507e984778355d1628ec65bfa59bb39/aetools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
1717,
334,
12,
7099,
16,
498,
16,
1675,
933,
4672,
3536,
1676,
17207,
279,
2202,
2792,
4932,
1237,
16,
309,
518,
9938,
8395,
309,
486,
1775,
18,
5332,
67,
856,
12,
856,
13,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2792,
1717,
334,
12,
7099,
16,
498,
16,
1675,
933,
4672,
3536,
1676,
17207,
279,
2202,
2792,
4932,
1237,
16,
309,
518,
9938,
8395,
309,
486,
1775,
18,
5332,
67,
856,
12,
856,
13,
578,
... |
You can specify a set of files to operate on, or use the -a/-all | You can specify a set of files to operate on, or use the -a/--all | def resolve(ui, repo, *pats, **opts): """retry file merges from a merge or update This command can cleanly retry unresolved file merges using file revisions preserved from the last update or merge. If a conflict is resolved manually, please note that the changes will be overwritten if the merge is retried with resolv... | f0b66ec9b51d3b05c194b52f0086d7e8d0e58098 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/f0b66ec9b51d3b05c194b52f0086d7e8d0e58098/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
4881,
16,
3538,
16,
380,
84,
2323,
16,
2826,
4952,
4672,
3536,
9620,
585,
19037,
628,
279,
2691,
578,
1089,
225,
1220,
1296,
848,
2721,
715,
3300,
20573,
585,
19037,
1450,
585,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2245,
12,
4881,
16,
3538,
16,
380,
84,
2323,
16,
2826,
4952,
4672,
3536,
9620,
585,
19037,
628,
279,
2691,
578,
1089,
225,
1220,
1296,
848,
2721,
715,
3300,
20573,
585,
19037,
1450,
585,... |
try: self.authorizer_class(anonymous_user=user, anonymous_password='$|1wrongpasswd') except ftpserver.AuthorizerError, err: self.assertTrue('invalid credentials' in str(err)) else: self.fail('exception not raised') | self.assertRaises(Win32ExtError, self.authorizer_class, anonymous_user=user, anonymous_password='$|1wrongpasswd') | def test_wrong_anonymous_credentials(self): user = self.get_current_user() try: self.authorizer_class(anonymous_user=user, anonymous_password='$|1wrongpasswd') except ftpserver.AuthorizerError, err: self.assertTrue('invalid credentials' in str(err)) else: self.fail('exception not raised') | 94feedde95ea2643a7e293998e1e7062e4f0ce57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3782/94feedde95ea2643a7e293998e1e7062e4f0ce57/test_contrib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
21530,
67,
19070,
67,
11687,
12,
2890,
4672,
729,
273,
365,
18,
588,
67,
2972,
67,
1355,
1435,
775,
30,
365,
18,
4161,
1824,
67,
1106,
12,
19070,
67,
1355,
33,
1355,
16,
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,
1842,
67,
21530,
67,
19070,
67,
11687,
12,
2890,
4672,
729,
273,
365,
18,
588,
67,
2972,
67,
1355,
1435,
775,
30,
365,
18,
4161,
1824,
67,
1106,
12,
19070,
67,
1355,
33,
1355,
16,
13... |
if S: for i,f in enumerate(S): flowables.insert(i,f) | if S: flowables[0:0] = S | def _addGeneratedContent(flowables,frame): S = getattr(frame,'_generated_content',None) if S: for i,f in enumerate(S): flowables.insert(i,f) del frame._generated_content | 59ddef2657f404686fe25d57af38aaecb0facdb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/59ddef2657f404686fe25d57af38aaecb0facdb1/doctemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
7823,
1350,
12,
2426,
1538,
16,
3789,
4672,
348,
273,
3869,
12,
3789,
11189,
67,
11168,
67,
1745,
2187,
7036,
13,
309,
348,
30,
4693,
1538,
63,
20,
30,
20,
65,
273,
348,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
7823,
1350,
12,
2426,
1538,
16,
3789,
4672,
348,
273,
3869,
12,
3789,
11189,
67,
11168,
67,
1745,
2187,
7036,
13,
309,
348,
30,
4693,
1538,
63,
20,
30,
20,
65,
273,
348,
1... |
configfile = open(path, 'wb') config.write(configfile) | try: configfile = open(path, 'wb') except IOError: return utl.debug("Session - IOError") else: config.write(configfile) | def Write(self): | 9f428b6f011b440b2b3f314009f353b7f65f0f6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/9f428b6f011b440b2b3f314009f353b7f65f0f6f/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
12,
2890,
4672,
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,
0,
0,
0,
0,
0,... | [
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
12,
2890,
4672,
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,
-100,
-100,
-100,
-... |
if context and context.has_key('user_prefence') and context['user_prefence']: cmp_ids = [] data_user = self.pool.get('res.users').browse(cr, user, [user], context=context) map(lambda x: cmp_ids.append(x.id), data_user[0].company_ids) return [data_user[0].company_id.id] + cmp_ids return super(res_company, self).search(c... | user_preference = context and context.get('user_preference', False) or False if user_preference: user = self.pool.get('res.users').browse(cr, uid, uid, context=context) cmp_ids = list(set([user.company_id.id] + [cmp.id for cmp in user.company_ids])) return cmp_ids return super(res_company, self).search(cr, uid, args,... | def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False): if context and context.has_key('user_prefence') and context['user_prefence']: cmp_ids = [] data_user = self.pool.get('res.users').browse(cr, user, [user], context=context) map(lambda x: cmp_ids.append(x.id), data_user[0].comp... | 45de75f149af7e37b4262b605eff6b3c3724bdeb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/45de75f149af7e37b4262b605eff6b3c3724bdeb/res_company.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
729,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
225,
729,
67,
19141,
273,
819,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1623,
12,
2890,
16,
4422,
16,
729,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
225,
729,
67,
19141,
273,
819,
47... |
self.threadConnection = conn | if old_conn_is_threading: self.threadConnection = conn else: self.processConnection = conn | def doInTransaction(self, func, *args, **kw): """ This routine can be used to run a function in a transaction, rolling the transaction back if any exception is raised from that function, and committing otherwise. | 94ba772aa5173fb3e5198df78445bf8958550fe1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8798/94ba772aa5173fb3e5198df78445bf8958550fe1/dbconnection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
382,
3342,
12,
2890,
16,
1326,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
1220,
12245,
848,
506,
1399,
358,
1086,
279,
445,
316,
279,
2492,
16,
21793,
326,
2492,
1473,
309,
1281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
382,
3342,
12,
2890,
16,
1326,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
1220,
12245,
848,
506,
1399,
358,
1086,
279,
445,
316,
279,
2492,
16,
21793,
326,
2492,
1473,
309,
1281,
... |
type_definitions.append(self.memberTypeDefinitions()) | type_definitions.extend(self.memberTypeDefinitions()) | def dependentTypeDefinitions (self): type_definitions = [ self.baseTypeDefinition() ] if self.VARIETY_absent == self.variety(): type_definitions = [] elif self.VARIETY_atomic == self.variety(): type_definitions.append(self.primitiveTypeDefinition()) elif self.VARIETY_list == self.variety(): type_definitions.append(self... | a898384e612aa56c517f5a6a9a709cda64ca2e35 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/a898384e612aa56c517f5a6a9a709cda64ca2e35/structures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10460,
559,
7130,
261,
2890,
4672,
618,
67,
13314,
273,
306,
365,
18,
1969,
559,
1852,
1435,
308,
309,
365,
18,
29744,
1584,
61,
67,
5113,
319,
422,
365,
18,
4093,
14369,
13332,
618,
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,
10460,
559,
7130,
261,
2890,
4672,
618,
67,
13314,
273,
306,
365,
18,
1969,
559,
1852,
1435,
308,
309,
365,
18,
29744,
1584,
61,
67,
5113,
319,
422,
365,
18,
4093,
14369,
13332,
618,
6... |
elif text[i+1][0] in (" ", "\n",): | elif text[i+1].startswith(" ") or text[i+1].startswith("\n"): | def check_whitespace(self): i = 0 text = self.text while i < len(text): if text[i] is self.white_space: if i == 0 or i == len(text)-1: del text[i] elif text[i-1][-1] in (" ", "\n",): # last char of previous element is whitespace del text[i] elif (text[i+1] is self.white_space or # next element is white_space text[i+1] ... | 0c399fc872f75b4051a11323fecc956163cbb057 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/0c399fc872f75b4051a11323fecc956163cbb057/text_html_text_x_moin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
18777,
12,
2890,
4672,
277,
273,
374,
977,
273,
365,
18,
955,
1323,
277,
411,
562,
12,
955,
4672,
309,
977,
63,
77,
65,
353,
365,
18,
14739,
67,
2981,
30,
309,
277,
422,
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,
866,
67,
18777,
12,
2890,
4672,
277,
273,
374,
977,
273,
365,
18,
955,
1323,
277,
411,
562,
12,
955,
4672,
309,
977,
63,
77,
65,
353,
365,
18,
14739,
67,
2981,
30,
309,
277,
422,
3... |
for id, string in strings.items(): | for string_id, cur_string in strings.items(): | def createJavaScriptFromStrings(target_file, localized_strings): """Generate .js code containing the strings. It'll look like: | 00ea35b9791951af01325916fb87ff7ff1bbf5a5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1918/00ea35b9791951af01325916fb87ff7ff1bbf5a5/parse_stab.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
16634,
1265,
7957,
12,
3299,
67,
768,
16,
13596,
67,
10219,
4672,
3536,
4625,
263,
2924,
981,
4191,
326,
2064,
18,
225,
2597,
5614,
2324,
3007,
30,
225,
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,
752,
16634,
1265,
7957,
12,
3299,
67,
768,
16,
13596,
67,
10219,
4672,
3536,
4625,
263,
2924,
981,
4191,
326,
2064,
18,
225,
2597,
5614,
2324,
3007,
30,
225,
2,
-100,
-100,
-100,
-100,
... |
all the other-> True""" | all the other-> True WARNING - This is not the inverse of the __eq__ method. """ | def __ne__(cls, other): """RE != other -> bool. isoschizomer strict, same recognition site, same restriction -> False all the other-> True""" if not isinstance(other, RestrictionType): return True elif cls.charac == other.charac: return False else: return True | b5f1d850559e85f87a938c5f993d304d32cdc6d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/b5f1d850559e85f87a938c5f993d304d32cdc6d2/Restriction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4644,
972,
12,
6429,
16,
1308,
4672,
3536,
862,
480,
1308,
317,
1426,
18,
353,
538,
343,
452,
362,
264,
5490,
16,
1967,
1950,
7909,
2834,
16,
1967,
9318,
317,
1083,
777,
326,
130... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4644,
972,
12,
6429,
16,
1308,
4672,
3536,
862,
480,
1308,
317,
1426,
18,
353,
538,
343,
452,
362,
264,
5490,
16,
1967,
1950,
7909,
2834,
16,
1967,
9318,
317,
1083,
777,
326,
130... |
document.body.insert(j -5, subst1) | document.body.insert(lay, subst1) document.warning(subst1) | def convert_bibtexClearpage(document): " insert a clear(double)page bibliographystyle if bibtotoc option is used " while True: i = find_token(document.header, '\\papersides', 0) if i == -1: document.warning("Malformed LyX document: Can't find papersides definition.") return else: sides = int(document.header[i][12]) # o... | 580a984e2ca469f8c83c461f4b8e743b18ce9f47 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/580a984e2ca469f8c83c461f4b8e743b18ce9f47/lyx_2_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
70,
495,
21763,
9094,
2433,
12,
5457,
4672,
315,
2243,
279,
2424,
12,
9056,
13,
2433,
25581,
549,
8829,
1094,
1362,
309,
25581,
3307,
504,
1456,
353,
1399,
315,
1323,
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,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
70,
495,
21763,
9094,
2433,
12,
5457,
4672,
315,
2243,
279,
2424,
12,
9056,
13,
2433,
25581,
549,
8829,
1094,
1362,
309,
25581,
3307,
504,
1456,
353,
1399,
315,
1323,
1053,
30,... |
""" Called when a page has been deleted. """ | """Called when a page has been deleted.""" | def wiki_page_deleted(page): """ Called when a page has been deleted. """ | 6392f2a70e74c43e37782a00df9b97e7e92a6a57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/6392f2a70e74c43e37782a00df9b97e7e92a6a57/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9050,
67,
2433,
67,
8600,
12,
2433,
4672,
3536,
11782,
1347,
279,
1363,
711,
2118,
4282,
18,
3536,
2,
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,
9050,
67,
2433,
67,
8600,
12,
2433,
4672,
3536,
11782,
1347,
279,
1363,
711,
2118,
4282,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for z in points: if len(z) == 3: return self._graphic3d()(points, coerce=coerce, **kwds) xdata.append(float(z[0])) ydata.append(float(z[1])) | xdata = [float(z[0]) for z in points] ydata = [float(z[1]) for z in points] | def __call__(self, points, coerce=True, **kwds): try: return points.plot(**kwds) except AttributeError: pass options = dict(self.options) for k, v in kwds.iteritems(): options[k] = v | 2d00d2730e3926eb0c2e6625b22d77efbfaa177b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/2d00d2730e3926eb0c2e6625b22d77efbfaa177b/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
3143,
16,
12270,
33,
5510,
16,
2826,
25577,
4672,
775,
30,
327,
3143,
18,
4032,
12,
636,
25577,
13,
1335,
6394,
30,
1342,
702,
273,
2065,
12,
2890,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
3143,
16,
12270,
33,
5510,
16,
2826,
25577,
4672,
775,
30,
327,
3143,
18,
4032,
12,
636,
25577,
13,
1335,
6394,
30,
1342,
702,
273,
2065,
12,
2890,
18,
... |
return | else: return | def _regenerate(self, dev_mode=False): # This function is only called in only_dependencies mode if self._compiled: for module_name, (mtime, content) in self._compiled.items(): if module_name not in self._collected or \ os.path.getmtime(self._collected[module_name]) != mtime: # Just recompile everything # TODO: track de... | c8805f27e1579dcfb7b6bc228fccb7f2b330a955 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11828/c8805f27e1579dcfb7b6bc228fccb7f2b330a955/pyjs_filter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1574,
14681,
12,
2890,
16,
4461,
67,
3188,
33,
8381,
4672,
468,
1220,
445,
353,
1338,
2566,
316,
1338,
67,
11037,
1965,
309,
365,
6315,
19397,
30,
364,
1605,
67,
529,
16,
261,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1574,
14681,
12,
2890,
16,
4461,
67,
3188,
33,
8381,
4672,
468,
1220,
445,
353,
1338,
2566,
316,
1338,
67,
11037,
1965,
309,
365,
6315,
19397,
30,
364,
1605,
67,
529,
16,
261,
108... |
self.__smallest_integer = ZZ(self.__pari_prime.getattr('p')) | self.__smallest_integer = ZZ(self._pari_prime.getattr('p')) | def smallest_integer(self): r""" Return the smallest nonnegative integer in $I \cap \mathbb{Z}$, where $I$ is this ideal. If $I = 0$, raise a ValueError. | e007a9d9dedee1de94c0b698d8a1c5dcf36277c4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/e007a9d9dedee1de94c0b698d8a1c5dcf36277c4/number_field_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13541,
67,
7745,
12,
2890,
4672,
436,
8395,
2000,
326,
13541,
1661,
13258,
3571,
316,
271,
45,
521,
5909,
521,
15949,
9897,
95,
62,
22496,
16,
1625,
271,
45,
8,
353,
333,
23349,
18,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13541,
67,
7745,
12,
2890,
4672,
436,
8395,
2000,
326,
13541,
1661,
13258,
3571,
316,
271,
45,
521,
5909,
521,
15949,
9897,
95,
62,
22496,
16,
1625,
271,
45,
8,
353,
333,
23349,
18,
22... |
new_backup = self.parent_backup_dir +'/'+ datetime.now().strftime("%Y-%m-%d %H:%M:%S") | new_backup = self.parent_backup_dir +'/'+ datetime.now().strftime(BACKUP_DIR_DATE_FORMAT) | def backup(self, gui=True): if gui: backup_button = self.xml.get_widget('backup_button') | c2a6c9ab1e23311dbdda0f5ed73a521e619bcf98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3798/c2a6c9ab1e23311dbdda0f5ed73a521e619bcf98/flyback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5114,
12,
2890,
16,
13238,
33,
5510,
4672,
309,
13238,
30,
5114,
67,
5391,
273,
365,
18,
2902,
18,
588,
67,
6587,
2668,
9572,
67,
5391,
6134,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5114,
12,
2890,
16,
13238,
33,
5510,
4672,
309,
13238,
30,
5114,
67,
5391,
273,
365,
18,
2902,
18,
588,
67,
6587,
2668,
9572,
67,
5391,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.files_to_rebuild.pop(filename, None) | for subfn, fnset in self.files_to_rebuild.iteritems(): fnset.discard(filename) | def clear_file(self, filename): """Remove all traces of a source file in the inventory.""" if filename in self.all_files: self.all_files.pop(filename, None) self.metadata.pop(filename, None) self.titles.pop(filename, None) self.tocs.pop(filename, None) self.toc_num_entries.pop(filename, None) self.files_to_rebuild.pop(... | d9fc82142bee14bcc7e266592a408a60130d65d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7032/d9fc82142bee14bcc7e266592a408a60130d65d1/environment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
67,
768,
12,
2890,
16,
1544,
4672,
3536,
3288,
777,
19649,
434,
279,
1084,
585,
316,
326,
13086,
12123,
309,
1544,
316,
365,
18,
454,
67,
2354,
30,
365,
18,
454,
67,
2354,
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,
2424,
67,
768,
12,
2890,
16,
1544,
4672,
3536,
3288,
777,
19649,
434,
279,
1084,
585,
316,
326,
13086,
12123,
309,
1544,
316,
365,
18,
454,
67,
2354,
30,
365,
18,
454,
67,
2354,
18,
... |
server._infobase.create() | server._infobase.create('openlibrary.org') | def run_standalone(): """Run OL in standalone mode. No separate infobase server is required. """ infogami.config.db_parameters = web.config.db_parameters = config.db_parameters config.infobase_server = None web.load() from infogami.infobase import server server._infobase = get_infobase() if '--create' in sys.argv: se... | 4cac3a046702fa3ea13837da305bfec03534c5d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/4cac3a046702fa3ea13837da305bfec03534c5d3/ol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
10145,
12451,
13332,
3536,
1997,
531,
48,
316,
17676,
1965,
18,
2631,
9004,
1123,
1969,
1438,
353,
1931,
18,
3536,
1123,
75,
26223,
18,
1425,
18,
1966,
67,
3977,
273,
3311,
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,
1086,
67,
10145,
12451,
13332,
3536,
1997,
531,
48,
316,
17676,
1965,
18,
2631,
9004,
1123,
1969,
1438,
353,
1931,
18,
3536,
1123,
75,
26223,
18,
1425,
18,
1966,
67,
3977,
273,
3311,
18,... |
if not os.path.isdir(os.path.join(directory, 'private/')): if os.path.exists(os.path.join(directory, 'private/')): raise ValueError('%r is not a directory' % os.path.join(directory, 'private/')) os.mkdir(os.path.join(directory, 'private/')) self._show_private = 1 self._cssfile = '../epydoc.css' self._write_docs(os.pa... | if self._create_private_docs: if not os.path.isdir(os.path.join(directory, 'private/')): if os.path.exists(os.path.join(directory, 'private/')): raise OSError('%r is not a directory' % os.path.join(directory, 'private/')) os.mkdir(os.path.join(directory, 'private/')) if not os.path.isdir(os.path.join(directory, 'public... | def write(self, directory=None, progress_callback=None): """ Write the documentation to the given directory. | dd7fc26b7d69af6d4765be2a892edca4603899ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dd7fc26b7d69af6d4765be2a892edca4603899ee/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
16,
4007,
67,
3394,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
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,
1045,
12,
2890,
16,
1867,
33,
7036,
16,
4007,
67,
3394,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 943) else quickfix.StringField.__init__(self, 943, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2468,
8942,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2468,
8942,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... |
return where(c>0,val,1-val) | cond = c + 0*val return where(cond>0,val,1-val) | def _cdf(self, x, a, c): val = special.gammainc(a,x**c) return where(c>0,val,1-val) | 2e1459d7db55ceda99d2149f964d8af198d5f89a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/2e1459d7db55ceda99d2149f964d8af198d5f89a/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24799,
12,
2890,
16,
619,
16,
279,
16,
276,
4672,
1244,
273,
4582,
18,
75,
301,
5254,
71,
12,
69,
16,
92,
636,
71,
13,
327,
1625,
12,
71,
34,
20,
16,
1125,
16,
21,
17,
1125,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24799,
12,
2890,
16,
619,
16,
279,
16,
276,
4672,
1244,
273,
4582,
18,
75,
301,
5254,
71,
12,
69,
16,
92,
636,
71,
13,
327,
1625,
12,
71,
34,
20,
16,
1125,
16,
21,
17,
1125,... |
op.append(" .. code-block:: text") | op.append(".. code-block:: text") | def rstout(filename): op=[] op.extend(""" | f2aa2b26ea886a1268759502721accd342b13755 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/993/f2aa2b26ea886a1268759502721accd342b13755/example2rst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13978,
659,
12,
3459,
4672,
1061,
33,
8526,
1061,
18,
14313,
2932,
3660,
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,
... | [
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13978,
659,
12,
3459,
4672,
1061,
33,
8526,
1061,
18,
14313,
2932,
3660,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return None | return [] | def collectParameterActions(self): """ collectParameterActions() -> list Return a list of action lists corresponding to each dimension """ if not self.pipeline: return None parameterValues = [[], [], [], []] typeCast = {'Integer': int, 'Float': float, 'String': str} counts = self.label.getCounts() for i in range(self.... | a829ae41943653c89bc6e15bbee5fa4812b5311b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/a829ae41943653c89bc6e15bbee5fa4812b5311b/pe_table.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
1662,
6100,
12,
2890,
4672,
3536,
3274,
1662,
6100,
1435,
317,
666,
2000,
279,
666,
434,
1301,
6035,
4656,
358,
1517,
4968,
225,
3536,
309,
486,
365,
18,
14511,
30,
327,
5378,
1569... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3274,
1662,
6100,
12,
2890,
4672,
3536,
3274,
1662,
6100,
1435,
317,
666,
2000,
279,
666,
434,
1301,
6035,
4656,
358,
1517,
4968,
225,
3536,
309,
486,
365,
18,
14511,
30,
327,
5378,
1569... |
ret=os.system("ping -c 1 www.dream-multimedia-tv.de") if ret == 0: | ok_counter = 0 ret1=os.system("ping -c 1 www.dream-multimedia-tv.de") if ret1 != 0: ok_counter = ok_counter + 1 ret2=os.system("ping -c 1 www.heise.de") if ret2 != 0: ok_counter = ok_counter + 1 ret3=os.system("ping -c 1 www.google.de") if ret2 != 0: ok_counter = ok_counter + 1 if ok_counter == 0: | def checkNetworkState(self): ret=os.system("ping -c 1 www.dream-multimedia-tv.de") if ret == 0: return True else: return False | 90916ed5481cd1d0a68985033043005143c42c60 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/90916ed5481cd1d0a68985033043005143c42c60/Network.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
3906,
1119,
12,
2890,
4672,
1529,
67,
7476,
273,
374,
325,
21,
33,
538,
18,
4299,
2932,
1382,
300,
71,
404,
8765,
18,
72,
793,
17,
5421,
381,
1980,
17,
24161,
18,
323,
7923,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
3906,
1119,
12,
2890,
4672,
1529,
67,
7476,
273,
374,
325,
21,
33,
538,
18,
4299,
2932,
1382,
300,
71,
404,
8765,
18,
72,
793,
17,
5421,
381,
1980,
17,
24161,
18,
323,
7923,
309... |
yield ('ticket_details', _('Ticket updates'), False) | yield ('ticket_details', _("Ticket updates"), False) | def get_timeline_filters(self, req): if 'TICKET_VIEW' in req.perm: yield ('ticket', _('Opened and closed tickets')) if self.timeline_details: yield ('ticket_details', _('Ticket updates'), False) | 8a7505f666e8590328936fd32f0bc362d6e2a6a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/8a7505f666e8590328936fd32f0bc362d6e2a6a0/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
26237,
67,
6348,
12,
2890,
16,
1111,
4672,
309,
296,
56,
16656,
1584,
67,
12145,
11,
316,
1111,
18,
12160,
30,
2824,
7707,
16282,
2187,
389,
2668,
23115,
471,
4375,
24475,
26112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26237,
67,
6348,
12,
2890,
16,
1111,
4672,
309,
296,
56,
16656,
1584,
67,
12145,
11,
316,
1111,
18,
12160,
30,
2824,
7707,
16282,
2187,
389,
2668,
23115,
471,
4375,
24475,
26112... |
'of table %s not null!' % \ | 'of table %s!' % \ | def alter_type(self, column_name, column_type): logging.getLogger('init').warning( 'Unable to alter type of column %s ' \ 'of table %s not null!' % \ (column_name, self.table_name)) | e86ab8a32a130b94fd5fcc848156ec03aa444179 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/e86ab8a32a130b94fd5fcc848156ec03aa444179/table.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10182,
67,
723,
12,
2890,
16,
1057,
67,
529,
16,
1057,
67,
723,
4672,
2907,
18,
588,
3328,
2668,
2738,
16063,
8551,
12,
296,
3370,
358,
10182,
618,
434,
1057,
738,
87,
296,
521,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10182,
67,
723,
12,
2890,
16,
1057,
67,
529,
16,
1057,
67,
723,
4672,
2907,
18,
588,
3328,
2668,
2738,
16063,
8551,
12,
296,
3370,
358,
10182,
618,
434,
1057,
738,
87,
296,
521,
296,
... |
self.sngl_burst_table = table.get_table(xmldoc, lsctables.SnglBurstTable.tableName) | try: self.sngl_burst_table = table.get_table(xmldoc, lsctables.SnglBurstTable.tableName) except ValueError: self.sngl_burst_table = None | def summarize(self, xmldoc, live_time_program, verbose = False): """ Compute and record some summary information about the database. Call this after all the data has been inserted, and before you want any of this information. """ cursor = self.connection.cursor() | 85c425461e0928b16bdba8c9a1e71290a886f81e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/85c425461e0928b16bdba8c9a1e71290a886f81e/SnglBurstUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28712,
12,
2890,
16,
2025,
2434,
16,
8429,
67,
957,
67,
12890,
16,
3988,
273,
1083,
4672,
3536,
8155,
471,
1409,
2690,
4916,
1779,
2973,
326,
2063,
18,
225,
3049,
333,
1839,
777,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28712,
12,
2890,
16,
2025,
2434,
16,
8429,
67,
957,
67,
12890,
16,
3988,
273,
1083,
4672,
3536,
8155,
471,
1409,
2690,
4916,
1779,
2973,
326,
2063,
18,
225,
3049,
333,
1839,
777,
326,
... |
self._update(0) | self.title(title) self.set(0, maxval) | def __init__(self, title="Working...", maxval=100, label="", id=263): self.w = None self.d = None self.maxval = maxval self.curval = -1 self.d = GetNewDialog(id, -1) self.w = self.d.GetDialogWindow() self.label(label) self._update(0) self.d.AutoSizeDialog() self.title(title) self.w.ShowWindow() self.d.DrawDialog() | b48dea14d8bf7cc4ae844d70574494af7a698ddb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b48dea14d8bf7cc4ae844d70574494af7a698ddb/EasyDialogs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2077,
1546,
14836,
7070,
16,
30443,
33,
6625,
16,
1433,
1546,
3113,
612,
33,
22,
4449,
4672,
365,
18,
91,
273,
599,
365,
18,
72,
273,
599,
365,
18,
189... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2077,
1546,
14836,
7070,
16,
30443,
33,
6625,
16,
1433,
1546,
3113,
612,
33,
22,
4449,
4672,
365,
18,
91,
273,
599,
365,
18,
72,
273,
599,
365,
18,
189... |
self.outputURL = self.ceParameters['OutputURL'] self.gridEnv = self.ceParameters['GridEnv'] def submitJob( self, executableFile, proxy, numberOfJobs=1 ): | self.outputURL = self.ceParameters['OutputURL'] self.gridEnv = self.ceParameters['GridEnv'] def submitJob( self, executableFile, proxy, numberOfJobs = 1 ): | def reset(self): self.queue = self.ceParameters['Queue'] self.outputURL = self.ceParameters['OutputURL'] self.gridEnv = self.ceParameters['GridEnv'] | 45afa08b7552c5b79d1cfd9cac53e65115f5e15a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/45afa08b7552c5b79d1cfd9cac53e65115f5e15a/CREAMComputingElement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
18,
4000,
273,
365,
18,
311,
2402,
3292,
3183,
3546,
365,
18,
2844,
1785,
273,
365,
18,
311,
2402,
3292,
1447,
1785,
3546,
365,
18,
5222,
3491,
273,
365,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
18,
4000,
273,
365,
18,
311,
2402,
3292,
3183,
3546,
365,
18,
2844,
1785,
273,
365,
18,
311,
2402,
3292,
1447,
1785,
3546,
365,
18,
5222,
3491,
273,
365,
18,... |
self.hboxlayout17.addWidget(self.cpk_atom_rad_spinbox) spacerItem17 = QtGui.QSpacerItem(16,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) self.hboxlayout17.addItem(spacerItem17) self.vboxlayout10.addLayout(self.hboxlayout17) self.hboxlayout18 = QtGui.QHBoxLayout() self.hboxlayout18.setMargin(0) self.hboxla... | self.hboxlayout20.addWidget(self.cpk_atom_rad_spinbox) spacerItem19 = QtGui.QSpacerItem(16,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) self.hboxlayout20.addItem(spacerItem19) self.vboxlayout10.addLayout(self.hboxlayout20) self.hboxlayout21 = QtGui.QHBoxLayout() self.hboxlayout21.setMargin(0) self.hboxla... | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
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,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
if checksum == md5_string(data): | if checksum == self.md5_string(data): | def md5_check(file, checksum): data = open(file, 'rb') #local = md5_string(data) if checksum == md5_string(data): return True return False | 43ad714260de26301e9353209005b0a6d420abe3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/43ad714260de26301e9353209005b0a6d420abe3/pypt_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3481,
25,
67,
1893,
12,
768,
16,
6697,
4672,
501,
273,
1696,
12,
768,
16,
296,
6731,
6134,
468,
3729,
273,
3481,
25,
67,
1080,
12,
892,
13,
309,
6697,
422,
365,
18,
1264,
25,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3481,
25,
67,
1893,
12,
768,
16,
6697,
4672,
501,
273,
1696,
12,
768,
16,
296,
6731,
6134,
468,
3729,
273,
3481,
25,
67,
1080,
12,
892,
13,
309,
6697,
422,
365,
18,
1264,
25,
67,
1... |
for menu in ['add', 'replace', 'add2', 'replace2', 'rm', 'rename']: | for menu in ['add', 'replace', 'playafter', 'rm', 'rename']: | def update_menu_visibility(self, show_songinfo_only=False): if show_songinfo_only or not self.expanded: for menu in ['add', 'replace', 'add2', 'replace2', 'rename', 'rm', 'pl', \ 'remove', 'clear', 'update', 'new', 'edit', 'sort', 'tag']: self.UIManager.get_widget('/mainmenu/' + menu + 'menu/').hide() return elif self.... | b33877e05a3757e7c9cef00e0e41779cddbb5424 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/b33877e05a3757e7c9cef00e0e41779cddbb5424/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5414,
67,
14422,
12,
2890,
16,
2405,
67,
816,
75,
1376,
67,
3700,
33,
8381,
4672,
309,
2405,
67,
816,
75,
1376,
67,
3700,
578,
486,
365,
18,
17336,
30,
364,
3824,
316,
1022... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5414,
67,
14422,
12,
2890,
16,
2405,
67,
816,
75,
1376,
67,
3700,
33,
8381,
4672,
309,
2405,
67,
816,
75,
1376,
67,
3700,
578,
486,
365,
18,
17336,
30,
364,
3824,
316,
1022... |
if not uid: | if uid is None: | def edit_event_form(self, context): uid = context.get_form_value('uid', None) # Method method = context.get_cookie('method') or 'monthly_view' goto = ';%s' % method | 81410a9b1179862fa87ae58e8b1f34f2f6d9a1a4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/81410a9b1179862fa87ae58e8b1f34f2f6d9a1a4/ical.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
2575,
67,
687,
12,
2890,
16,
819,
4672,
4555,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
1911,
2187,
599,
13,
468,
2985,
707,
273,
819,
18,
588,
67,
8417,
2668,
2039,
6134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
2575,
67,
687,
12,
2890,
16,
819,
4672,
4555,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
1911,
2187,
599,
13,
468,
2985,
707,
273,
819,
18,
588,
67,
8417,
2668,
2039,
6134... |
archs=RebuilddConfig().get('build', 'archs').split(' '), \ | archs=RebuilddConfig().arch, \ | def GET(self, dist, arch=None): jobs = [] jobs.extend(Job.select(sqlobject.AND(Job.q.arch == arch, Job.q.dist == dist), orderBy=sqlobject.DESC(Job.q.creation_date))[:10]) print render.base(page=render.tab(jobs=jobs), \ arch=arch, \ dist=dist, \ title="%s/%s" % (dist, arch), \ hostname=socket.gethostname(), \ archs=Rebu... | 500a29fd72ab479c197319edd219621978c64719 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5334/500a29fd72ab479c197319edd219621978c64719/RebuilddHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
16,
2411,
16,
6637,
33,
7036,
4672,
6550,
273,
5378,
6550,
18,
14313,
12,
2278,
18,
4025,
12,
11410,
383,
489,
18,
4307,
12,
2278,
18,
85,
18,
991,
422,
6637,
16,
395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4978,
12,
2890,
16,
2411,
16,
6637,
33,
7036,
4672,
6550,
273,
5378,
6550,
18,
14313,
12,
2278,
18,
4025,
12,
11410,
383,
489,
18,
4307,
12,
2278,
18,
85,
18,
991,
422,
6637,
16,
395... |
Route53Request.delete(rrset) | APIRequest.delete(rrset) | def handle_update(self, msg): """Process an update message.""" | 2b2b5839b23008a8980ab8eeeca606297c51c416 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4157/2b2b5839b23008a8980ab8eeeca606297c51c416/route53d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2725,
12,
2890,
16,
1234,
4672,
3536,
2227,
392,
1089,
883,
12123,
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,... | [
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2725,
12,
2890,
16,
1234,
4672,
3536,
2227,
392,
1089,
883,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
surface = self.getSurfaceFromSvg(svgShape, width, height) | def digAHole (self, svgShape, width, height): surface = self.getSurfaceFromSvg(svgShape, width, height) mask = gtk.gdk.Pixmap(None, width, height, 1) mcontext = mask.cairo_create() mcontext.set_source_surface(surface, 0, 0) mcontext.paint() if self.is_composited(): self.window.input_shape_combine_mask(mask, 0, 0) else:... | 9079ab1e444e5a86e419aedbc06569f6e7a18773 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/9079ab1e444e5a86e419aedbc06569f6e7a18773/OverlayWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3097,
37,
29501,
261,
2890,
16,
9804,
8500,
16,
1835,
16,
2072,
4672,
282,
3066,
273,
22718,
18,
75,
2883,
18,
21816,
1458,
12,
7036,
16,
1835,
16,
2072,
16,
404,
13,
312,
2472,
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,
3097,
37,
29501,
261,
2890,
16,
9804,
8500,
16,
1835,
16,
2072,
4672,
282,
3066,
273,
22718,
18,
75,
2883,
18,
21816,
1458,
12,
7036,
16,
1835,
16,
2072,
16,
404,
13,
312,
2472,
273,
... | |
for (rev, node, node_index, edges, n_columns, n_columns_diff) in grapher: | for (node_ch, node_lines, node_index, edges, n_columns, n_columns_diff) in grapher: | def graphlog(ui, repo, path=None, **opts): """show revision history alongside an ASCII revision graph Print a revision history alongside a revision graph drawn with ASCII characters. Nodes printed as an @ character are parents of the working directory. """ limit = get_limit(opts["limit"]) (start_rev, stop_rev) = get... | 6c1ea40bc8e1e0318abcf98785e0ee292ed8d237 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/6c1ea40bc8e1e0318abcf98785e0ee292ed8d237/graphlog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2667,
1330,
12,
4881,
16,
3538,
16,
589,
33,
7036,
16,
2826,
4952,
4672,
3536,
4500,
6350,
4927,
524,
7260,
831,
392,
11768,
6350,
2667,
225,
3038,
279,
6350,
4927,
524,
7260,
831,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2667,
1330,
12,
4881,
16,
3538,
16,
589,
33,
7036,
16,
2826,
4952,
4672,
3536,
4500,
6350,
4927,
524,
7260,
831,
392,
11768,
6350,
2667,
225,
3038,
279,
6350,
4927,
524,
7260,
831,
279,
... |
<tbody>''' | <tbody><tr><td><b>Rack : ''', rack,'''</b></td></tr>''' | def printRackViewHTML(rack, servers, buffer): '''Print out all the servers in the specified rack''' print >> buffer, ''' <div class="floatleft"> <table class="network-status-table" cellspacing="0" cellpadding="0.1em" summary="Status of nodes in the rack ''', rack, ''' "> <tbody>''' count = 0 for s in servers: s.printHT... | 32c54edb8ba55a2c779c156bdab4b93431fb0173 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4466/32c54edb8ba55a2c779c156bdab4b93431fb0173/kfsstatus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
54,
484,
1767,
4870,
12,
21580,
16,
7084,
16,
1613,
4672,
9163,
5108,
596,
777,
326,
7084,
316,
326,
1269,
19495,
26418,
1172,
1671,
1613,
16,
9163,
411,
2892,
667,
1546,
5659,
448... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
54,
484,
1767,
4870,
12,
21580,
16,
7084,
16,
1613,
4672,
9163,
5108,
596,
777,
326,
7084,
316,
326,
1269,
19495,
26418,
1172,
1671,
1613,
16,
9163,
411,
2892,
667,
1546,
5659,
448... |
def create(self, id, description, consumerids = []): | def create(self, id, description, consumerids=[]): | def create(self, id, description, consumerids = []): consumergroup_data = {"id" : id, "description" : description, "consumerids" : consumerids} method = "/consumergroups/" return self.conn.request_put(method, params=consumergroup_data) | 55fc10bc98cb49c6d13e1629698a2a7a700eef88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/55fc10bc98cb49c6d13e1629698a2a7a700eef88/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
612,
16,
2477,
16,
4765,
2232,
33,
8526,
4672,
4765,
1655,
67,
892,
273,
12528,
350,
6,
294,
612,
16,
315,
3384,
6,
294,
2477,
16,
315,
13230,
2232,
6,
294,
4765,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
12,
2890,
16,
612,
16,
2477,
16,
4765,
2232,
33,
8526,
4672,
4765,
1655,
67,
892,
273,
12528,
350,
6,
294,
612,
16,
315,
3384,
6,
294,
2477,
16,
315,
13230,
2232,
6,
294,
4765,
... |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://bugs.sugarlabs.org/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Esugar-love&order=priority')) | queries = { 'Easy bugs': 'http://bugs.sugarlabs.org/query?status=accepted&status=new&status=assigned&status=reopened&format=csv&keywords=%7Esugar-love&order=priority', 'Documentation bugs': 'http://bugs.sugarlabs.org/query?status=accepted&status=assigned&status=new&status=reopened&format=csv&order=priority&keywords=~do... | def generate_list_of_bug_ids_to_look_at(self): # Just index bitesized bugs return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://bugs.sugarlabs.org/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Esugar-love&order=priority')) | 2c3cf8caa89ec134ddcdd3eb56ce6a0ad41045fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/2c3cf8caa89ec134ddcdd3eb56ce6a0ad41045fb/trac_instances.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
1098,
67,
792,
67,
925,
67,
2232,
67,
869,
67,
7330,
67,
270,
12,
2890,
4672,
468,
12526,
770,
2831,
281,
1235,
22398,
327,
312,
1900,
1137,
18,
3662,
87,
18,
925,
4101,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
67,
1098,
67,
792,
67,
925,
67,
2232,
67,
869,
67,
7330,
67,
270,
12,
2890,
4672,
468,
12526,
770,
2831,
281,
1235,
22398,
327,
312,
1900,
1137,
18,
3662,
87,
18,
925,
4101,
41... |
def doenddelete( self, description ): | def doenddelete( self, description, label = "" ): | def doenddelete( self, description ): if len(self.end_deletes) == 0: return True description += " " * max(1, STATUSTXT_WIDTH - len(description)) self.manager.log(manager.LOG_HIGH, description, before=1, after=0) for deleter in self.end_deletes: req = request(self.manager) req.method = "DELETE" req.ruris.append(deleter[... | 1e6bbaa51c1fe6e02709841f4dd5e13a91bd8caa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/129/1e6bbaa51c1fe6e02709841f4dd5e13a91bd8caa/caldavtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
409,
3733,
12,
365,
16,
2477,
16,
1433,
273,
1408,
262,
30,
309,
562,
12,
2890,
18,
409,
67,
72,
5092,
13,
422,
374,
30,
327,
1053,
2477,
1011,
315,
315,
380,
943,
12,
21,
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,
741,
409,
3733,
12,
365,
16,
2477,
16,
1433,
273,
1408,
262,
30,
309,
562,
12,
2890,
18,
409,
67,
72,
5092,
13,
422,
374,
30,
327,
1053,
2477,
1011,
315,
315,
380,
943,
12,
21,
16,... |
... print "Error !" | ... print("Error!") | def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``. | fbdfc46fda1150428e37faef1f31cd5518ab4374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/fbdfc46fda1150428e37faef1f31cd5518ab4374/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... |
funcs = (None, lambda x: True) | funcs = (None, bool, lambda x: True) | def test_filter_subclasses(self): # test, that filter() never returns tuple, str or unicode subclasses # and that the result always go's through __getitem__ funcs = (None, lambda x: True) class tuple2(tuple): def __getitem__(self, index): return 2*tuple.__getitem__(self, index) class str2(str): def __getitem__(self, in... | 5a12c18d5d51ffb63297c823a8713039ee36cad4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5a12c18d5d51ffb63297c823a8713039ee36cad4/test_builtin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2188,
67,
1717,
4701,
12,
2890,
4672,
468,
1842,
16,
716,
1034,
1435,
5903,
1135,
3193,
16,
609,
578,
5252,
15320,
468,
471,
716,
326,
563,
3712,
1960,
1807,
3059,
1001,
31571,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2188,
67,
1717,
4701,
12,
2890,
4672,
468,
1842,
16,
716,
1034,
1435,
5903,
1135,
3193,
16,
609,
578,
5252,
15320,
468,
471,
716,
326,
563,
3712,
1960,
1807,
3059,
1001,
31571,... |
def ignorableWhitespace(self, chars, start, end): self._cont_handler.ignorableWhitespace(chars, start, end) | def ignorableWhitespace(self, chars): self._cont_handler.ignorableWhitespace(chars) | def ignorableWhitespace(self, chars, start, end): self._cont_handler.ignorableWhitespace(chars, start, end) | e5454c196ff5373f8b4a63bbc4a53dd3d466d78c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e5454c196ff5373f8b4a63bbc4a53dd3d466d78c/saxutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9750,
15514,
9431,
12,
2890,
16,
5230,
16,
787,
16,
679,
4672,
365,
6315,
1213,
67,
4176,
18,
724,
15514,
9431,
12,
7549,
16,
787,
16,
679,
13,
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,
9750,
15514,
9431,
12,
2890,
16,
5230,
16,
787,
16,
679,
4672,
365,
6315,
1213,
67,
4176,
18,
724,
15514,
9431,
12,
7549,
16,
787,
16,
679,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tempWidget = self.addWidgetByFileName(name, int(widget.getAttribute("xPos")), int(widget.getAttribute("yPos")), widget.getAttribute("caption")) | tempWidget = self.addWidgetByFileName(name, int(widget.getAttribute("xPos")), int(widget.getAttribute("yPos")), widget.getAttribute("caption"), activateSettings = 0) | def loadDocument(self, filename): if not os.path.exists(filename): self.close() QMessageBox.critical(self,'Orange Canvas','Unable to find file "'+ filename, QMessageBox.Ok + QMessageBox.Default) return | 3062038fd35ad40521ec63facca93df529c9a3c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/3062038fd35ad40521ec63facca93df529c9a3c7/orngDoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
2519,
12,
2890,
16,
1544,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
3459,
4672,
365,
18,
4412,
1435,
30728,
18,
28000,
12,
2890,
11189,
1162,
726,
20966,
17023,
3370,
358,
1104,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
2519,
12,
2890,
16,
1544,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
3459,
4672,
365,
18,
4412,
1435,
30728,
18,
28000,
12,
2890,
11189,
1162,
726,
20966,
17023,
3370,
358,
1104,... |
url = list() if search_in_google: import google google.LICENSE_KEY = config.google_key print " google query..." search_request_retry = 6 while search_request_retry: | url = list() if search_in_google: import google google.LICENSE_KEY = config.google_key print " google query..." search_request_retry = 6 while search_request_retry: | def get_results(query, numresults = 10): url = list() if search_in_google: import google google.LICENSE_KEY = config.google_key print " google query..." search_request_retry = 6 while search_request_retry: | 1fc8304d6ddd18fcd83597ff7597b54525735edf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/1fc8304d6ddd18fcd83597ff7597b54525735edf/copyright.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4717,
12,
2271,
16,
818,
4717,
273,
1728,
4672,
880,
273,
666,
1435,
309,
1623,
67,
267,
67,
9536,
30,
1930,
5200,
5200,
18,
6065,
23396,
67,
3297,
273,
642,
18,
9536,
67,
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,
336,
67,
4717,
12,
2271,
16,
818,
4717,
273,
1728,
4672,
880,
273,
666,
1435,
309,
1623,
67,
267,
67,
9536,
30,
1930,
5200,
5200,
18,
6065,
23396,
67,
3297,
273,
642,
18,
9536,
67,
8... |
os.makedirs(dir) | os.makedirs(dir) os.system('chmod g+w ' + dir) | def register_experiment_ws_xmldata(request): import sys process_experiment = ProcessExperiment() status = "" if request.method == 'POST': # If the form has been submitted... form = RegisterExperimentForm(request.POST) # A form bound to the POST data if form.is_valid(): # All validation rules pass xmldata = form.clea... | 367825d8639cbc3cf0c43df8f723a1263472a720 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11933/367825d8639cbc3cf0c43df8f723a1263472a720/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
18142,
67,
4749,
67,
2902,
892,
12,
2293,
4672,
1930,
2589,
225,
1207,
67,
18142,
273,
4389,
22338,
1435,
1267,
273,
1408,
309,
590,
18,
2039,
422,
296,
3798,
4278,
468,
971,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18142,
67,
4749,
67,
2902,
892,
12,
2293,
4672,
1930,
2589,
225,
1207,
67,
18142,
273,
4389,
22338,
1435,
1267,
273,
1408,
309,
590,
18,
2039,
422,
296,
3798,
4278,
468,
971,
... |
print "appear to be installed. Displaying LaTeX or PDFLaTeX output" | print "appear to be installed. Displaying LaTeX, PDFLaTeX output" | def _run_latex_(filename, debug=False, density=150, pdflatex=None, png=False, do_in_background=False): """ This runs LaTeX on the TeX file "filename.tex". It produces files "filename.dvi" (or "filename.pdf"` if ``pdflatex`` is ``True``) and if ``png`` is True, "filename.png". If ``png`` is True and dvipng can't conve... | f861246ed3920cddfa7558f769e8b83392788530 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f861246ed3920cddfa7558f769e8b83392788530/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
26264,
67,
12,
3459,
16,
1198,
33,
8381,
16,
12142,
33,
23014,
16,
8169,
26264,
33,
7036,
16,
14476,
33,
8381,
16,
741,
67,
267,
67,
9342,
33,
8381,
4672,
3536,
1220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2681,
67,
26264,
67,
12,
3459,
16,
1198,
33,
8381,
16,
12142,
33,
23014,
16,
8169,
26264,
33,
7036,
16,
14476,
33,
8381,
16,
741,
67,
267,
67,
9342,
33,
8381,
4672,
3536,
1220,
... |
self._cache = boto.utils.LRUCache(20) self.refresh_http_connection(self.host, self.is_secure) | self._pool = ConnectionPool(20, 20) self._connection = (self.server_name(), self.is_secure) | def __init__(self, host, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=0, https_connection_factory=None, path='/'): """ @type host: string @param host: The host to make the connection to | 330da1a377ef5fb958032a4bda0502b580a626ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/330da1a377ef5fb958032a4bda0502b580a626ce/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
16,
2287,
67,
3860,
67,
856,
67,
350,
33,
7036,
16,
2287,
67,
5875,
67,
3860,
67,
856,
33,
7036,
16,
353,
67,
8869,
33,
5510,
16,
1756,
33,
703... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1479,
16,
2287,
67,
3860,
67,
856,
67,
350,
33,
7036,
16,
2287,
67,
5875,
67,
3860,
67,
856,
33,
7036,
16,
353,
67,
8869,
33,
5510,
16,
1756,
33,
703... |
frontendData = self.feinfo.getFrontendData(False) Labels = self.getFEData(frontendData) self.fillList(Labels) | self.showFrontendData(False) | def tuner(self): frontendData = self.feinfo.getFrontendData(False) Labels = self.getFEData(frontendData) self.fillList(Labels) | 322f9e06f0f823a89b05c9f6ca40e110c25a5ed6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/322f9e06f0f823a89b05c9f6ca40e110c25a5ed6/ServiceInfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
29640,
12,
2890,
4672,
365,
18,
4500,
21905,
751,
12,
8381,
13,
225,
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,
... | [
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
29640,
12,
2890,
4672,
365,
18,
4500,
21905,
751,
12,
8381,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
manager = pool.manage(mock_dbapi, use_threadlocal = False) | manager = pool.manage(MockDBAPI(), use_threadlocal = False) | def testnonthreadlocalmanager(self): manager = pool.manage(mock_dbapi, use_threadlocal = False) | 7513b46730d1b57a6b8addde8dfb4f83ee1e6cb4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/7513b46730d1b57a6b8addde8dfb4f83ee1e6cb4/test_pool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
82,
2152,
896,
3729,
4181,
12,
2890,
4672,
3301,
273,
2845,
18,
12633,
12,
22851,
67,
1966,
2425,
16,
999,
67,
5930,
3729,
273,
1083,
13,
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,
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,
1842,
82,
2152,
896,
3729,
4181,
12,
2890,
4672,
3301,
273,
2845,
18,
12633,
12,
22851,
67,
1966,
2425,
16,
999,
67,
5930,
3729,
273,
1083,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
from dbcook.usage.samanager import SAdb | def populate(): anna = Employee( name='anna') dept = Dept( name='jollye' ) boss = Manager( name='boso') anna.dept = dept boss.dept = dept dept.boss = boss | 88be630ccf236fba82a8058b0656010220a9e9d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10808/88be630ccf236fba82a8058b0656010220a9e9d0/sa2static.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
13332,
392,
6582,
273,
512,
27520,
12,
508,
2218,
1072,
69,
6134,
443,
337,
273,
1505,
337,
12,
508,
2218,
78,
355,
715,
73,
11,
262,
324,
8464,
273,
8558,
12,
225,
508,
2218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
13332,
392,
6582,
273,
512,
27520,
12,
508,
2218,
1072,
69,
6134,
443,
337,
273,
1505,
337,
12,
508,
2218,
78,
355,
715,
73,
11,
262,
324,
8464,
273,
8558,
12,
225,
508,
2218,
... | |
if user is None: self.unauthorized(realm) | if user is None and roles != UNSPECIFIED_ROLES: self.unauthorized(realm) | def publish(self, module_name, after_list, published='web_objects', | 6e60c63abb35f639b7efc369be01caf096484aa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/6e60c63abb35f639b7efc369be01caf096484aa1/Publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
12,
2890,
16,
1605,
67,
529,
16,
1839,
67,
1098,
16,
9487,
2218,
4875,
67,
6911,
2187,
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,
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,
3808,
12,
2890,
16,
1605,
67,
529,
16,
1839,
67,
1098,
16,
9487,
2218,
4875,
67,
6911,
2187,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
upload = outpath outpath = '/tmp/upload.xml' | uploadurl = outpath outpath = os.path.join(tempfile.gettempdir(), 'libdoc_upload.xml') | def create_xml_doc(lib, outpath): if _uploading(outpath): upload = outpath outpath = '/tmp/upload.xml' # TODO use temp file module else: upload = None _create_xml_doc(lib, outpath) if upload: upload_xml_doc(outpath, upload) os.remove(outpath) | e8980e3eb959d801e54f259c53303548e9e1e012 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7408/e8980e3eb959d801e54f259c53303548e9e1e012/libdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2902,
67,
2434,
12,
2941,
16,
596,
803,
4672,
309,
389,
6327,
310,
12,
659,
803,
4672,
3617,
718,
273,
596,
803,
596,
803,
273,
1140,
18,
803,
18,
5701,
12,
5814,
768,
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,
752,
67,
2902,
67,
2434,
12,
2941,
16,
596,
803,
4672,
309,
389,
6327,
310,
12,
659,
803,
4672,
3617,
718,
273,
596,
803,
596,
803,
273,
1140,
18,
803,
18,
5701,
12,
5814,
768,
18,
... |
print "getting version from web" | debug.log("getting version from web") | def push_vistrail_to_repository(self, branching=False): """ uploads current VisTrail to web repository """ | f2c524b1f99dd206d3cc04ebfb6cb554feee2d88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/f2c524b1f99dd206d3cc04ebfb6cb554feee2d88/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
67,
90,
3337,
671,
67,
869,
67,
9071,
12,
2890,
16,
3803,
310,
33,
8381,
4672,
3536,
18427,
783,
8077,
18107,
358,
3311,
3352,
3536,
2,
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,
1817,
67,
90,
3337,
671,
67,
869,
67,
9071,
12,
2890,
16,
3803,
310,
33,
8381,
4672,
3536,
18427,
783,
8077,
18107,
358,
3311,
3352,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
SimpleXMLRPCServer.SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding) | try: SimpleXMLRPCServer.SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding) except: SimpleXMLRPCServer.SimpleXMLRPCDispatcher.__init__(self) | def __init__ (self, allow_none, encoding): SimpleXMLRPCServer.SimpleXMLRPCDispatcher.__init__(self, allow_none, encoding) self.allow_none = allow_none self.encoding = encoding | a88976e51483e4a9efd45cbbaaefc9e4222d0266 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/a88976e51483e4a9efd45cbbaaefc9e4222d0266/SSLServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
1699,
67,
6102,
16,
2688,
4672,
775,
30,
4477,
4201,
8087,
2081,
18,
5784,
4201,
8087,
6681,
16186,
2738,
972,
12,
2890,
16,
1699,
67,
6102,
16,
2688,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
2890,
16,
1699,
67,
6102,
16,
2688,
4672,
775,
30,
4477,
4201,
8087,
2081,
18,
5784,
4201,
8087,
6681,
16186,
2738,
972,
12,
2890,
16,
1699,
67,
6102,
16,
2688,
1... |
cursor.execute("LOCK TABLES %s WRITE" %' '.join(tables)) | cursor.execute("LOCK TABLES %s" % ', '.join(["%s WRITE" % x for x in tables])) | def _do_lock(*args,**kws): cursor = connection.cursor() cursor.execute("LOCK TABLES %s WRITE" %' '.join(tables)) | a19db1c740f8094da3c1c63a71da70c1afd59af8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11345/a19db1c740f8094da3c1c63a71da70c1afd59af8/locker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
739,
30857,
1968,
16,
636,
79,
4749,
4672,
3347,
273,
1459,
18,
9216,
1435,
3347,
18,
8837,
2932,
6589,
7567,
55,
738,
87,
20967,
6,
738,
11,
2418,
5701,
12,
9373,
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,
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,
2896,
67,
739,
30857,
1968,
16,
636,
79,
4749,
4672,
3347,
273,
1459,
18,
9216,
1435,
3347,
18,
8837,
2932,
6589,
7567,
55,
738,
87,
20967,
6,
738,
11,
2418,
5701,
12,
9373,
3719,... |
command.data = getpage_result | command.data = getpage_result[0] | def get_page(self, command): if self.multicall is not None: del self.multicall self.multicall = MultiCall(self.connection) if not self.token: self.get_auth_token() if not self.token: # FIXME: notify the user that he may not have full rights on the wiki pass self.multicall.applyAuthToken(self.token) self.multicall.ge... | 6ae69a1f0b11fce5d57fd6497d495bb8e4d0e504 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/6ae69a1f0b11fce5d57fd6497d495bb8e4d0e504/xmlrpcbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2433,
12,
2890,
16,
1296,
4672,
309,
365,
18,
5421,
335,
454,
353,
486,
599,
30,
1464,
365,
18,
5421,
335,
454,
365,
18,
5421,
335,
454,
273,
5991,
1477,
12,
2890,
18,
4071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2433,
12,
2890,
16,
1296,
4672,
309,
365,
18,
5421,
335,
454,
353,
486,
599,
30,
1464,
365,
18,
5421,
335,
454,
365,
18,
5421,
335,
454,
273,
5991,
1477,
12,
2890,
18,
4071,... |
def resource_listdir(self,name): return self._listdir(self._fn(self.egg_info,name)) | def resource_listdir(self,resource_name): return self._listdir(self._fn(self.egg_info,resource_name)) | def resource_listdir(self,name): return self._listdir(self._fn(self.egg_info,name)) | 29e3a5517beac5b384354f5f46f605022a1be2eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/29e3a5517beac5b384354f5f46f605022a1be2eb/pkg_resources.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1058,
67,
1098,
1214,
12,
2890,
16,
529,
4672,
327,
365,
6315,
1098,
1214,
12,
2890,
6315,
4293,
12,
2890,
18,
23171,
67,
1376,
16,
529,
3719,
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,
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,
1058,
67,
1098,
1214,
12,
2890,
16,
529,
4672,
327,
365,
6315,
1098,
1214,
12,
2890,
6315,
4293,
12,
2890,
18,
23171,
67,
1376,
16,
529,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
log.info("Joining test threads.") for cond in (self.send_recv_cond, self.send_pending_cond, | if self.test_thread: log.info("Joining test threads.") for cond in (self.send_recv_cond, self.send_pending_cond, | def close(self): """ Close the connection to the Tor control port. """ self.terminated = True log.info("Joining test threads.") # Notify any sleeping threads. for cond in (self.send_recv_cond, self.send_pending_cond, self.pending_circuit_cond): with cond: cond.notify() self.test_thread.join() self.circuit_thread.join()... | 1e27efc87071967876eea36048bed0fd9cfd9e68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/1e27efc87071967876eea36048bed0fd9cfd9e68/torbel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
3527,
326,
1459,
358,
326,
23763,
3325,
1756,
18,
3536,
365,
18,
29133,
273,
1053,
613,
18,
1376,
2932,
4572,
310,
1842,
7403,
1199,
13,
468,
10918,
1281,
532... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3536,
3527,
326,
1459,
358,
326,
23763,
3325,
1756,
18,
3536,
365,
18,
29133,
273,
1053,
613,
18,
1376,
2932,
4572,
310,
1842,
7403,
1199,
13,
468,
10918,
1281,
532... |
return http.Response(stream = '') | return HTMLResponse(stream = '') | def render(self, ctx): #self.worksheet.ping(self.username) self.worksheet.ping(username=None) # None so doesn't save a revision return http.Response(stream = '') | 2c1a5997a8830efcfb475993e5f1efb45ed121ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2c1a5997a8830efcfb475993e5f1efb45ed121ea/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
468,
2890,
18,
1252,
8118,
18,
1382,
12,
2890,
18,
5053,
13,
365,
18,
1252,
8118,
18,
1382,
12,
5053,
33,
7036,
13,
225,
468,
599,
1427,
3302,
1404,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
12,
2890,
16,
1103,
4672,
468,
2890,
18,
1252,
8118,
18,
1382,
12,
2890,
18,
5053,
13,
365,
18,
1252,
8118,
18,
1382,
12,
5053,
33,
7036,
13,
225,
468,
599,
1427,
3302,
1404,
1... |
key = 'C-c i o' | key = 'C-c r o' | def _get_confs(self): return {'name': dialog.Data('Extracted %s name: ' % self.kind)} | c73bbee7e9a87e20fe1891f20558b67891c27ef6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8283/c73bbee7e9a87e20fe1891f20558b67891c27ef6/refactor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
591,
2556,
12,
2890,
4672,
327,
13666,
529,
4278,
6176,
18,
751,
2668,
4976,
329,
738,
87,
508,
30,
296,
738,
365,
18,
9224,
16869,
2,
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,
389,
588,
67,
591,
2556,
12,
2890,
4672,
327,
13666,
529,
4278,
6176,
18,
751,
2668,
4976,
329,
738,
87,
508,
30,
296,
738,
365,
18,
9224,
16869,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.params['TITLE'] += ' "' + self.item.displayName.value + '"' | self.params['TITLE'] += ' "%s"' % \ self.item.displayName.value | def setParams(self): rootFolder = self.server.store.getItem('') self.params = { 'ROOT_ID': '/', 'ROOT_IMG': rootFolder.__image__, 'ROOT_DN': rootFolder.displayName.value, 'ID': self.item.id, } sAction = self.request.queryString['action'][0] self.params['TITLE'] = '@@%s@@' % sAction.upper() if sAction != 'select_folder... | 9a2f8b99a4794ca66a515bfe9ca832718bd20756 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2504/9a2f8b99a4794ca66a515bfe9ca832718bd20756/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31705,
12,
2890,
4672,
1365,
3899,
273,
365,
18,
3567,
18,
2233,
18,
588,
1180,
2668,
6134,
365,
18,
2010,
273,
288,
296,
9185,
67,
734,
4278,
2023,
16,
296,
9185,
67,
3445,
43,
4278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31705,
12,
2890,
4672,
1365,
3899,
273,
365,
18,
3567,
18,
2233,
18,
588,
1180,
2668,
6134,
365,
18,
2010,
273,
288,
296,
9185,
67,
734,
4278,
2023,
16,
296,
9185,
67,
3445,
43,
4278,
... |
y0s, us = _split_opt_x(model, len(grid), p) y0s_from_p0 = self.get_initial_y() y0s[0,:] = y0s_from_p0[0,:] | y0s, us = _split_opt_x(model, len(grid), p, self.get_initial_y_grid0()) | def h(self, p): # h(p) = 0 """Evaluates continuity (equality) constraints. This function has visually been verified to work in the sense that discontinuities lead to a big magnitude of the corresponding elements in the system. """ model = self.get_model() grid = self.get_grid() y0s, us = _split_opt_x(model, len(grid),... | 9fedf8f7b4ec6c72d7d4c7b78cfe8c5a9b004fb5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/9fedf8f7b4ec6c72d7d4c7b78cfe8c5a9b004fb5/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
12,
2890,
16,
293,
4672,
468,
366,
12,
84,
13,
273,
374,
3536,
23533,
9985,
560,
261,
9729,
560,
13,
6237,
18,
225,
1220,
445,
711,
2281,
3452,
2118,
13808,
358,
1440,
316,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
366,
12,
2890,
16,
293,
4672,
468,
366,
12,
84,
13,
273,
374,
3536,
23533,
9985,
560,
261,
9729,
560,
13,
6237,
18,
225,
1220,
445,
711,
2281,
3452,
2118,
13808,
358,
1440,
316,
326,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.