rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
f.grid(row=self.row, col=0, columnspan=2, sticky="we") | f.grid(row=self.row, column=0, columnspan=2, sticky="we") | def make_frame(self): f = Frame(self.top) f.grid(row=self.row, col=0, columnspan=2, sticky="we") self.row = self.row + 1 return f | 1447bedc4b43ef99799e4150714e4555ffe7168e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1447bedc4b43ef99799e4150714e4555ffe7168e/SearchDialogBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
3789,
12,
2890,
4672,
284,
273,
8058,
12,
2890,
18,
3669,
13,
284,
18,
5222,
12,
492,
33,
2890,
18,
492,
16,
1057,
33,
20,
16,
1057,
3969,
33,
22,
16,
21750,
1546,
1814,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
3789,
12,
2890,
4672,
284,
273,
8058,
12,
2890,
18,
3669,
13,
284,
18,
5222,
12,
492,
33,
2890,
18,
492,
16,
1057,
33,
20,
16,
1057,
3969,
33,
22,
16,
21750,
1546,
1814,
... |
if ftoken_db.get(token, None): | if ftoken_db.get(token): | def GET(self): global ftoken_db i = web.input(author_key=[], language=[], first_publish_year=[], publisher_facet=[], subject_facet=[], person_facet=[], place_facet=[], time_facet=[]) if i.get('ftokens', None) and ',' not in i.ftokens: token = i.ftokens if ftoken_db is None: ftoken_db = dbm.open('/olsystem/ftokens', 'r'... | 1fa11b06e5d6f25e789c3ba7e4898691478392d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/1fa11b06e5d6f25e789c3ba7e4898691478392d9/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
4672,
2552,
284,
2316,
67,
1966,
277,
273,
3311,
18,
2630,
12,
4161,
67,
856,
22850,
6487,
2653,
22850,
6487,
1122,
67,
6543,
67,
6874,
22850,
6487,
12855,
67,
21568,
228... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
2552,
284,
2316,
67,
1966,
277,
273,
3311,
18,
2630,
12,
4161,
67,
856,
22850,
6487,
2653,
22850,
6487,
1122,
67,
6543,
67,
6874,
22850,
6487,
12855,
67,
21568,
228... |
<tr><th class="header" align="left">Full traceback:</th></tr> | <tr><th class="header" align="left">%s</th></tr> | def pt_html(context=5): esc = cgi.escape l = ['<h1>Templating Error</h1>', '<p><b>%s</b>: %s</p>'%(esc(str(sys.exc_type)), esc(str(sys.exc_value))), '<p class="help">Debugging information follows</p>', '<ol>',] from roundup.cgi.PageTemplates.Expressions import TraversalError t = inspect.trace(context) t.reverse() for f... | f8fb7de2f6d69a02b72966a8e8af2c65d4eec9d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f8fb7de2f6d69a02b72966a8e8af2c65d4eec9d4/cgitb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5818,
67,
2620,
12,
2472,
33,
25,
4672,
2904,
273,
276,
10052,
18,
6939,
328,
273,
10228,
32,
76,
21,
34,
26033,
1776,
1068,
1757,
76,
21,
1870,
16,
2368,
84,
4438,
70,
9822,
87,
175... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5818,
67,
2620,
12,
2472,
33,
25,
4672,
2904,
273,
276,
10052,
18,
6939,
328,
273,
10228,
32,
76,
21,
34,
26033,
1776,
1068,
1757,
76,
21,
1870,
16,
2368,
84,
4438,
70,
9822,
87,
175... |
unless = self.failUnless | require = self.assert_ | def checkTimeoutProvokingConflicts(self): eq = self.assertEqual raises = self.assertRaises unless = self.failUnless self._storage = storage = self.openClientStorage() # Assert that the zeo cache is empty unless(not list(storage._cache.contents())) # Create the object oid = storage.new_oid() obj = MinPO(7) # We need to ... | 4659d8eb20fb53ceb449f9082c96342b24dfed27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/4659d8eb20fb53ceb449f9082c96342b24dfed27/ConnectionTests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
2694,
626,
90,
601,
310,
30897,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
14183,
273,
365,
18,
11231,
12649,
6141,
2583,
273,
365,
18,
11231,
67,
365,
6315,
5697,
273,
2502,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2694,
626,
90,
601,
310,
30897,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
14183,
273,
365,
18,
11231,
12649,
6141,
2583,
273,
365,
18,
11231,
67,
365,
6315,
5697,
273,
2502,
... |
diminutive=part.replace(',','').strip() | diminutive=part.replace(',','').replace("'",'').strip() print 'Diminutive: ',diminutive | def parseWikiPage(ofn,wikilang,pagetopic): '''This function will parse the content of a Wiktionary page and read it into our object structure''' apage = WiktionaryPage(wikilang,pagetopic) templist = [] context = {} content = open(ofn).readlines() splitcontent=[] for line in content: # Let's get rid of line breaks an... | 1b1b4569b6745a15f68c338b63248732b0b8fe0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/1b1b4569b6745a15f68c338b63248732b0b8fe0d/wiktionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
25438,
1964,
12,
792,
82,
16,
11999,
330,
539,
16,
9095,
278,
28237,
4672,
9163,
2503,
445,
903,
1109,
326,
913,
434,
279,
678,
1766,
24252,
814,
1363,
471,
855,
518,
1368,
3134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
25438,
1964,
12,
792,
82,
16,
11999,
330,
539,
16,
9095,
278,
28237,
4672,
9163,
2503,
445,
903,
1109,
326,
913,
434,
279,
678,
1766,
24252,
814,
1363,
471,
855,
518,
1368,
3134,
... |
childUpdate=True) | childUpdate=True, connection=dbconn) | def fetchChildren(self): """Prefetch childrens' data | 1ee59885eef6a956b50aafe397aa7c7fd9291ba7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8798/1ee59885eef6a956b50aafe397aa7c7fd9291ba7/iteration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
4212,
12,
2890,
4672,
3536,
25591,
2325,
87,
11,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
4212,
12,
2890,
4672,
3536,
25591,
2325,
87,
11,
501,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
s = self._eval_line('%s'%var) return s | s = self._eval_line(str(var)) i = s.rfind('Type:') return s[:i].rstrip() | def get(self, var): """ Get the string value of the Axiom variable var. """ s = self._eval_line('%s'%var) return s | 6d26ee404de5ca55a472c0aa9236698863e1dee9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/6d26ee404de5ca55a472c0aa9236698863e1dee9/axiom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
569,
4672,
3536,
968,
326,
533,
460,
434,
326,
22516,
14642,
2190,
569,
18,
3536,
272,
273,
365,
6315,
8622,
67,
1369,
29909,
87,
11,
9,
1401,
13,
327,
272,
2,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
569,
4672,
3536,
968,
326,
533,
460,
434,
326,
22516,
14642,
2190,
569,
18,
3536,
272,
273,
365,
6315,
8622,
67,
1369,
29909,
87,
11,
9,
1401,
13,
327,
272,
2,
-10... |
image_geolocalization_path = os.path.join(self.plugin_path, "icons/hicolor/24x24/geolocalization.png") pixbuf_geolocalization = gtk.gdk.pixbuf_new_from_file_at_size(image_geolocalization_path, 24, 24) | def __init__(self): self.geoclue = Geoclue.DiscoverLocation() self.geoclue.connect(self.location_changed) self.geoclue.init() self.location = self.geoclue.get_location_info() self.location_filter = [] self.plugin_path = os.path.dirname(os.path.abspath(__file__)) self.glade_file = os.path.join(self.plugin_path, "geoloc... | 65b1d29adf1985ce8ef776ee0df81e368b232e5b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/65b1d29adf1985ce8ef776ee0df81e368b232e5b/geolocalized_tasks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
908,
504,
80,
344,
273,
15391,
504,
80,
344,
18,
26082,
2735,
1435,
365,
18,
908,
504,
80,
344,
18,
3612,
12,
2890,
18,
3562,
67,
6703,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
908,
504,
80,
344,
273,
15391,
504,
80,
344,
18,
26082,
2735,
1435,
365,
18,
908,
504,
80,
344,
18,
3612,
12,
2890,
18,
3562,
67,
6703,
13,
... | |
socket.SO_REUSEADDR) | 1 | reuse_constant) | 1 | def set_reuse_addr(self): # try to re-use a server port if possible try: self.socket.setsockopt( socket.SOL_SOCKET, socket.SO_REUSEADDR, self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) | 1 ) except socket.error: pass | 58c817e89bdae5b91bcce34b184ca4475ce1851f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/58c817e89bdae5b91bcce34b184ca4475ce1851f/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
266,
1202,
67,
4793,
12,
2890,
4672,
468,
775,
358,
283,
17,
1202,
279,
1438,
1756,
309,
3323,
775,
30,
365,
18,
7814,
18,
4424,
27844,
12,
2987,
18,
19815,
67,
25699,
16,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
67,
266,
1202,
67,
4793,
12,
2890,
4672,
468,
775,
358,
283,
17,
1202,
279,
1438,
1756,
309,
3323,
775,
30,
365,
18,
7814,
18,
4424,
27844,
12,
2987,
18,
19815,
67,
25699,
16,
2... |
self.read(None, ">4H", "Reserverd") | self.read("reserved", ">4H", "Reserverd") | def __init__(self, stream, parent): Filter.__init__(self, "msdos_header", "MS-Dos executable header", stream, parent) self.read("header", "2s", "File header") assert self.header == "MZ" self.read("filesize_mod_512", ">H", "Filesize mod 512") self.read("filesize_div_512", ">H", "Filesize div 512") self.filesize = self.f... | 7edbe76831badb20cc540e17002d28b285ceae63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2280/7edbe76831badb20cc540e17002d28b285ceae63/exe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1407,
16,
982,
4672,
4008,
16186,
2738,
972,
12,
2890,
16,
315,
959,
19219,
67,
3374,
3113,
315,
3537,
17,
40,
538,
9070,
1446,
3113,
1407,
16,
982,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1407,
16,
982,
4672,
4008,
16186,
2738,
972,
12,
2890,
16,
315,
959,
19219,
67,
3374,
3113,
315,
3537,
17,
40,
538,
9070,
1446,
3113,
1407,
16,
982,
13,
... |
logging.info('Executing test %s: ' % test) (retcode, output) = proc.RunCommandFull(test, collect_output=True) | logging.info('Executing test %s: ' % test_command) (retcode, output) = proc.RunCommandFull(test_command, collect_output=True) | def RunTest(self, test): """Run tests and collect the .coverage file | 1581ad170e9c9d3a92c66b377c35a5abc747dc4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/1581ad170e9c9d3a92c66b377c35a5abc747dc4c/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
4709,
12,
2890,
16,
1842,
4672,
3536,
1997,
7434,
471,
3274,
326,
263,
16356,
585,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
4709,
12,
2890,
16,
1842,
4672,
3536,
1997,
7434,
471,
3274,
326,
263,
16356,
585,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def AddViewParcelMenu(self): """ Override to customize your parcel menu. """ ignoreErrors = wxLogNull () viewerParcelMenu = self.resources.LoadMenu ('ViewerParcelMenu') del ignoreErrors if (viewerParcelMenu != None): mainFrameId = id(app.model.mainFrame) if not app.association.has_key(mainFrameId): mainFrame = app.ass... | else: if not noParcelMenu: oldMenu = menuBar.Remove (menuIndex) del oldMenu | def ReplaceViewParcelMenu(self): """ Override to customize your parcel menu. """ ignoreErrors = wxLogNull () viewerParcelMenu = self.resources.LoadMenu ('ViewerParcelMenu') del ignoreErrors if (viewerParcelMenu != None): mainFrameId = id(app.model.mainFrame) if app.association.has_key(mainFrameId): mainFrame = app.asso... | 8c2b3e4a108b1722cb9c786dfdb37c0eaa4e9c4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8c2b3e4a108b1722cb9c786dfdb37c0eaa4e9c4b/ViewerParcel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6910,
1767,
1553,
2183,
4599,
12,
2890,
4672,
3536,
1439,
358,
20236,
3433,
779,
2183,
3824,
18,
3536,
2305,
4229,
273,
7075,
1343,
2041,
1832,
14157,
1553,
2183,
4599,
273,
365,
18,
4683,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6910,
1767,
1553,
2183,
4599,
12,
2890,
4672,
3536,
1439,
358,
20236,
3433,
779,
2183,
3824,
18,
3536,
2305,
4229,
273,
7075,
1343,
2041,
1832,
14157,
1553,
2183,
4599,
273,
365,
18,
4683,... |
str(error)) | error.encode('ascii', 'replace')) | def _updateErrback(self, error): if not self.ufeed.id_exists(): return logging.info("WARNING: error in Feed.update for %s -- %s", self.ufeed, str(error)) self.scheduleUpdateEvents(-1) self.updating = False self.ufeed.signal_change(needs_save=False) | 8abb93074dba6f07f74af73c5ed736821d0097eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/8abb93074dba6f07f74af73c5ed736821d0097eb/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
2524,
823,
12,
2890,
16,
555,
4672,
309,
486,
365,
18,
696,
73,
329,
18,
350,
67,
1808,
13332,
327,
2907,
18,
1376,
2932,
9511,
30,
555,
316,
14013,
18,
2725,
364,
738,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2725,
2524,
823,
12,
2890,
16,
555,
4672,
309,
486,
365,
18,
696,
73,
329,
18,
350,
67,
1808,
13332,
327,
2907,
18,
1376,
2932,
9511,
30,
555,
316,
14013,
18,
2725,
364,
738,
87... |
return self._server(store, rv) | return self._server(store, rv, quiet) | def _server(self, store, server, quiet): if not server: defserver = store.last_host() if quiet: self.ctx.out("Using server: %s" % defserver) return defserver else: rv = self.ctx.input("Server: [%s]" % defserver) if not rv: return defserver, None # Prevents loop else: return self._server(store, rv) else: try: idx = serv... | faae526c13d5a6e7081a1da63b62c1d374c328e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/faae526c13d5a6e7081a1da63b62c1d374c328e8/sessions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3567,
12,
2890,
16,
1707,
16,
1438,
16,
10902,
4672,
309,
486,
1438,
30,
1652,
3567,
273,
1707,
18,
2722,
67,
2564,
1435,
309,
10902,
30,
365,
18,
5900,
18,
659,
2932,
7736,
1438,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3567,
12,
2890,
16,
1707,
16,
1438,
16,
10902,
4672,
309,
486,
1438,
30,
1652,
3567,
273,
1707,
18,
2722,
67,
2564,
1435,
309,
10902,
30,
365,
18,
5900,
18,
659,
2932,
7736,
1438,... |
workspaces.invokeFactory(self.getGroupWorkspaceType(), id) | pt.constructContent( type_name = self.getGroupWorkspaceType(), container = workspaces, id = id, ) | def createGrouparea(self, id): """Create a space in the portal for the given group, much like member home folders.""" parent = self.aq_inner.aq_parent workspaces = self.getGroupWorkspacesFolder() pt = getToolByName( self, 'portal_types' ) | ff2240175dc1dd6bafb910f16f835fe6df598950 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/ff2240175dc1dd6bafb910f16f835fe6df598950/GroupsTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1114,
5036,
12,
2890,
16,
612,
4672,
3536,
1684,
279,
3476,
316,
326,
11899,
364,
326,
864,
1041,
16,
9816,
3007,
3140,
6382,
9907,
12123,
982,
273,
365,
18,
69,
85,
67,
7872,
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,
1114,
5036,
12,
2890,
16,
612,
4672,
3536,
1684,
279,
3476,
316,
326,
11899,
364,
326,
864,
1041,
16,
9816,
3007,
3140,
6382,
9907,
12123,
982,
273,
365,
18,
69,
85,
67,
7872,
18,... |
if (len(inspect.getargspec(bound_field)[0]) == 2): value = bound_field(user_obj) else: value = bound_field() | if not isinstance(is_authorized, bool): raise NotBooleanPermission("Callable %s from model %s on rule %s does not return a boolean value", (rule.field_name, rule.content_type.model, rule.codename)) | def has_perm(self, user_obj, perm, obj=None): """ This method checks if the user_obj has perm on obj. Returns True or False Looks for the rule with the code_name = perm and the content_type of the obj If it exists returns the value of obj.field_name or obj.field_name() in case the field is a method. """ if obj is None... | a7d796e8765dc21870b569b0c6b59a07748fc5d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14254/a7d796e8765dc21870b569b0c6b59a07748fc5d6/backends.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
12160,
12,
2890,
16,
729,
67,
2603,
16,
4641,
16,
1081,
33,
7036,
4672,
3536,
1220,
707,
4271,
309,
326,
729,
67,
2603,
711,
4641,
603,
1081,
18,
2860,
1053,
578,
1083,
10176,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
711,
67,
12160,
12,
2890,
16,
729,
67,
2603,
16,
4641,
16,
1081,
33,
7036,
4672,
3536,
1220,
707,
4271,
309,
326,
729,
67,
2603,
711,
4641,
603,
1081,
18,
2860,
1053,
578,
1083,
10176,... |
if dev_id < 0: dev_id = 0 | print "Device ID: %d" % dev_id | def hci_open_dev(adapter): # TODO: use remote device addr and hci_get_route # (need to add this to PyBlueZ) dev_id = bz.hci_devid(adapter) if dev_id < 0: # take the first one and pray dev_id = 0 return bz.hci_open_dev(dev_id), dev_id | 62d200867b34a605d3d9994c257e62a290da8082 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/62d200867b34a605d3d9994c257e62a290da8082/mcap_sock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
8450,
67,
3190,
67,
5206,
12,
10204,
4672,
468,
2660,
30,
999,
2632,
2346,
3091,
471,
366,
8450,
67,
588,
67,
5547,
468,
261,
14891,
358,
527,
333,
358,
4707,
27986,
62,
13,
4461,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8450,
67,
3190,
67,
5206,
12,
10204,
4672,
468,
2660,
30,
999,
2632,
2346,
3091,
471,
366,
8450,
67,
588,
67,
5547,
468,
261,
14891,
358,
527,
333,
358,
4707,
27986,
62,
13,
4461,... |
def current_mtime(self): if (not self.path_exists()): return None return os.path.getmtime(self.path) | def current_mtime(self, path_prefix=None): full_path = self.full_path(path_prefix=path_prefix) if (not os.path.exists(full_path)): return None return os.path.getmtime(full_path) | def current_mtime(self): if (not self.path_exists()): return None return os.path.getmtime(self.path) | 368163363bb0c76203747001edd3f0d22b396410 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/368163363bb0c76203747001edd3f0d22b396410/dlite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
783,
67,
10838,
12,
2890,
4672,
309,
261,
902,
365,
18,
803,
67,
1808,
1435,
4672,
327,
599,
327,
1140,
18,
803,
18,
588,
10838,
12,
2890,
18,
803,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
783,
67,
10838,
12,
2890,
4672,
309,
261,
902,
365,
18,
803,
67,
1808,
1435,
4672,
327,
599,
327,
1140,
18,
803,
18,
588,
10838,
12,
2890,
18,
803,
13,
2,
-100,
-100,
-100,
-100,
-10... |
sys.stderr.write('> Sending file %s ' % filename) | sys.stderr.write('--- Sending file %s ---\n' % filename) | def writer(self): """loop and copy console->serial until EXITCHARCTER character is found. when MENUCHARACTER is found, interpret the next key locally. """ menu_active = False try: while self.alive: try: c = console.getkey() except KeyboardInterrupt: c = '\x03' if menu_active: if c == MENUCHARACTER or c == EXITCHARCTER:... | 0f6a48ec722750ef078f74b1aa09e2fb405fc04e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/0f6a48ec722750ef078f74b1aa09e2fb405fc04e/miniterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2633,
12,
2890,
4672,
3536,
6498,
471,
1610,
2983,
2122,
8818,
3180,
28407,
7305,
1268,
654,
3351,
353,
1392,
18,
1347,
490,
1157,
57,
27858,
353,
1392,
16,
10634,
326,
1024,
498,
13760,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2633,
12,
2890,
4672,
3536,
6498,
471,
1610,
2983,
2122,
8818,
3180,
28407,
7305,
1268,
654,
3351,
353,
1392,
18,
1347,
490,
1157,
57,
27858,
353,
1392,
16,
10634,
326,
1024,
498,
13760,
... |
pass | print('TEST-UNEXPECTED_FAIL | trace-test.py | %s'%test.path) | def run_tests(tests, test_dir, lib_dir): pb = None if not OPTIONS.hide_progress and not OPTIONS.show_cmd: try: from progressbar import ProgressBar pb = ProgressBar('', len(tests), 13) except ImportError: pass failures = [] complete = False doing = 'before starting' try: for i, test in enumerate(tests): doing = 'on %s'... | 7805fd5d8515e18b1f8eca1468d984982ecf62a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/7805fd5d8515e18b1f8eca1468d984982ecf62a7/trace-test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
16341,
16,
1842,
67,
1214,
16,
2561,
67,
1214,
4672,
6386,
273,
599,
309,
486,
16726,
18,
11248,
67,
8298,
471,
486,
16726,
18,
4500,
67,
4172,
30,
775,
30,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
16341,
16,
1842,
67,
1214,
16,
2561,
67,
1214,
4672,
6386,
273,
599,
309,
486,
16726,
18,
11248,
67,
8298,
471,
486,
16726,
18,
4500,
67,
4172,
30,
775,
30,
628,
... |
m = "warning: " + msg | m = "warning: %s" % msg | def warning(msg, *args): "Log a warning" m = "warning: " + msg logger.warning(m, *args) | f5a94215d9063a28122dc9278fa8f77bc614636c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/f5a94215d9063a28122dc9278fa8f77bc614636c/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3436,
12,
3576,
16,
380,
1968,
4672,
315,
1343,
279,
3436,
6,
312,
273,
315,
8551,
30,
738,
87,
6,
738,
1234,
1194,
18,
8551,
12,
81,
16,
380,
1968,
13,
225,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3436,
12,
3576,
16,
380,
1968,
4672,
315,
1343,
279,
3436,
6,
312,
273,
315,
8551,
30,
738,
87,
6,
738,
1234,
1194,
18,
8551,
12,
81,
16,
380,
1968,
13,
225,
2,
-100,
-100,
-100,
-... |
if ((status == "" or "failed" in status.lower())): | if ((status == "" or "failed" == status.lower())): | def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" in status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.p... | aded61733b040c3e2918f7cb5990b12cebe2244e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/aded61733b040c3e2918f7cb5990b12cebe2244e/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1293,
3762,
2736,
67,
2620,
12,
723,
16,
2077,
16,
876,
16,
612,
16,
1267,
1546,
6,
4672,
3536,
7163,
1729,
364,
279,
9262,
2736,
2442,
225,
294,
891,
618,
30,
326,
6374,
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,
1221,
67,
1293,
3762,
2736,
67,
2620,
12,
723,
16,
2077,
16,
876,
16,
612,
16,
1267,
1546,
6,
4672,
3536,
7163,
1729,
364,
279,
9262,
2736,
2442,
225,
294,
891,
618,
30,
326,
6374,
6... |
item = gtk.MenuItem (_("Remove %s group ") % (self._group)) | item = gtk.MenuItem (_("Remove group %s")) % (self._group) | def populate_grouping_menu (self, widget): groupitem = None | 30f668a8cb82c27ff7501028d202fd4a75ba830a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1032/30f668a8cb82c27ff7501028d202fd4a75ba830a/terminatorterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
25592,
67,
5414,
261,
2890,
16,
3604,
4672,
1041,
1726,
273,
599,
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,
6490,
67,
25592,
67,
5414,
261,
2890,
16,
3604,
4672,
1041,
1726,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.logger.debug('next action is %s' % next) | def _next(self, cr, uid): self.logger.debug('getting next operation') next = self._next_action(cr, uid) self.logger.debug('next action is %s' % next) if next: action = next.action_id return { 'view_mode': action.view_mode, 'view_type': action.view_type, 'view_id': action.view_id and [action.view_id.id] or False, 'res_m... | b3ed0f4aa88779cf3e9deed2c065dd541ddaf8eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/b3ed0f4aa88779cf3e9deed2c065dd541ddaf8eb/res_config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4285,
12,
2890,
16,
4422,
16,
4555,
4672,
365,
18,
4901,
18,
4148,
2668,
588,
1787,
1024,
1674,
6134,
1024,
273,
365,
6315,
4285,
67,
1128,
12,
3353,
16,
4555,
13,
309,
1024,
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,
389,
4285,
12,
2890,
16,
4422,
16,
4555,
4672,
365,
18,
4901,
18,
4148,
2668,
588,
1787,
1024,
1674,
6134,
1024,
273,
365,
6315,
4285,
67,
1128,
12,
3353,
16,
4555,
13,
309,
1024,
30,
... | |
merged_docs.append(merger.merge(inspectdoc, parsedoc)) | doc_dict[name] = merger.merge(inspectdoc, parsedoc) if name in doc_dict: print `doc_dict[name]`, name | def build_docs(names, inspect=True, parse=True): names = [DottedName(name) for name in names] # Create our tool chain inspector = DocInspector() parser = DocParser(inspector.inspect(__builtins__)) merger = DocMerger() docstring_parser = DocstringParser() inheriter = DocInheriter() parsedocs = [] inspectdocs = [] for ... | 39028ad155a48d1e14faba061237da8a4813af2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/39028ad155a48d1e14faba061237da8a4813af2e/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
8532,
12,
1973,
16,
5334,
33,
5510,
16,
1109,
33,
5510,
4672,
1257,
273,
306,
10412,
2344,
461,
12,
529,
13,
364,
508,
316,
1257,
65,
225,
468,
1788,
3134,
5226,
2687,
22700,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
8532,
12,
1973,
16,
5334,
33,
5510,
16,
1109,
33,
5510,
4672,
1257,
273,
306,
10412,
2344,
461,
12,
529,
13,
364,
508,
316,
1257,
65,
225,
468,
1788,
3134,
5226,
2687,
22700,... |
join = dirname = None | join = dirname = environ = listdir = basename = None | def _os_bootstrap(): "Set up 'os' module replacement functions for use during import bootstrap." global _os_stat, _os_path_join, _os_path_dirname, _os_getcwd names = sys.builtin_module_names join = dirname = None mindirlen = 0 if 'posix' in names: from posix import stat, getcwd sep = '/' mindirlen = 1 elif 'nt' in n... | 59d55e3eafa5f2caeb1279be446bd3e94a5799a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11925/59d55e3eafa5f2caeb1279be446bd3e94a5799a4/iu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
538,
67,
12722,
13332,
315,
694,
731,
296,
538,
11,
1605,
6060,
4186,
364,
999,
4982,
1930,
7065,
1199,
225,
2552,
389,
538,
67,
5642,
16,
389,
538,
67,
803,
67,
5701,
16,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
538,
67,
12722,
13332,
315,
694,
731,
296,
538,
11,
1605,
6060,
4186,
364,
999,
4982,
1930,
7065,
1199,
225,
2552,
389,
538,
67,
5642,
16,
389,
538,
67,
803,
67,
5701,
16,
389,
... |
self.ufeed.signal_change(needs_save=False) | def feedparser_finished(self): self.updating = False self.ufeed.signal_change(needs_save=False) self.schedule_update_events(-1) | c943da495a9f2a51d33403b0d27161b4e4dbd0e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/c943da495a9f2a51d33403b0d27161b4e4dbd0e2/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
4288,
67,
13527,
12,
2890,
4672,
365,
18,
5533,
1776,
273,
1083,
365,
18,
10676,
67,
2725,
67,
5989,
19236,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
4746,
4288,
67,
13527,
12,
2890,
4672,
365,
18,
5533,
1776,
273,
1083,
365,
18,
10676,
67,
2725,
67,
5989,
19236,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
expected_args = inspect.getargspec(module_globals[possible_handler]).args | expected_args = inspect.getargspec(module_globals[possible_handler])[0] | def mp_legacy_publisher(req, possible_module, possible_handler): """ mod_python legacy publisher minimum implementation. """ the_module = open(possible_module).read() module_globals = {} exec(the_module, module_globals) if possible_handler in module_globals and callable(module_globals[possible_handler]): from invenio.w... | 707eaf5010293bcb95fadb675abf1fb29bdc7b57 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12027/707eaf5010293bcb95fadb675abf1fb29bdc7b57/webinterface_handler_wsgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6749,
67,
17386,
67,
26018,
12,
3658,
16,
3323,
67,
2978,
16,
3323,
67,
4176,
4672,
3536,
681,
67,
8103,
8866,
12855,
5224,
4471,
18,
3536,
326,
67,
2978,
273,
1696,
12,
12708,
67,
297... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6749,
67,
17386,
67,
26018,
12,
3658,
16,
3323,
67,
2978,
16,
3323,
67,
4176,
4672,
3536,
681,
67,
8103,
8866,
12855,
5224,
4471,
18,
3536,
326,
67,
2978,
273,
1696,
12,
12708,
67,
297... |
if i >= before: break | def between(self, after, before, inc=False): if self._cache_complete: gen = self._cache else: gen = self started = False l = [] if inc: for i in gen: if not started: if i >= after: started = True l.append(i) else: if i > before: break l.append(i) else: for i in gen: if not started: if i > after: started = True l.append... | 15d920e6e4a2d1f32ab92efdd99f0cfc5542feff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/15d920e6e4a2d1f32ab92efdd99f0cfc5542feff/rrule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3086,
12,
2890,
16,
1839,
16,
1865,
16,
7290,
33,
8381,
4672,
309,
365,
6315,
2493,
67,
6226,
30,
3157,
273,
365,
6315,
2493,
469,
30,
3157,
273,
365,
5746,
273,
1083,
328,
273,
5378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3086,
12,
2890,
16,
1839,
16,
1865,
16,
7290,
33,
8381,
4672,
309,
365,
6315,
2493,
67,
6226,
30,
3157,
273,
365,
6315,
2493,
469,
30,
3157,
273,
365,
5746,
273,
1083,
328,
273,
5378,
... | |
return self.tk.call(self._w, 'info', 'data', entry) | return self.tk.call(self._w, 'info', 'data', entry) | def info_data(self, entry): | b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
67,
892,
12,
2890,
16,
1241,
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,
1123,
67,
892,
12,
2890,
16,
1241,
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,
... |
if type == 1: return P if type == 2: return P/(1-2*T+2*T**2) if type == 3: return P/(1+3*T**2) if type == 4: return P/(1+2*T) | if type == 1: P0 = P if type == 2: P0 = P/(1-2*T+2*T**2) if type == 3: P0 = P/(1+3*T**2) if type == 4: P0 = P/(1+2*T) return P0/P0(1) | def sd_zeta_polynomial(C,type=1): r""" Returns the Duursma zeta function of a self-dual code using the construction in [D]. | ad9201f98a75362de7b002d1a4c2bda6bd29effe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ad9201f98a75362de7b002d1a4c2bda6bd29effe/linear_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8349,
67,
94,
1066,
67,
3915,
13602,
12,
39,
16,
723,
33,
21,
4672,
436,
8395,
2860,
326,
463,
89,
25152,
2540,
998,
1066,
445,
434,
279,
365,
17,
72,
1462,
981,
1450,
326,
16171,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8349,
67,
94,
1066,
67,
3915,
13602,
12,
39,
16,
723,
33,
21,
4672,
436,
8395,
2860,
326,
463,
89,
25152,
2540,
998,
1066,
445,
434,
279,
365,
17,
72,
1462,
981,
1450,
326,
16171,
31... |
p = subprocess.Popen(args) | try: p = subprocess.Popen(args) except OSError, WindowsError: print ("There has been a problem running the geojasper application "+ "that converts the GeoTIFF terrain file to GeoJP2!") print ("Please check the \"cmd_geojasper\" variable in the "+ "terrain_srtm module and modify it if necessary.") print "Current value: ... | def __convert(dir_temp, input_file, rc): print "Converting terrain to JP2 format ..." output_file = os.path.join(dir_temp, "terrain.jp2") if os.path.exists(output_file): os.unlink(output_file) args = [cmd_geojasper, "-f", input_file, "-F", output_file, "-T", "jp2", "-O", "rate=0.1", "-O", "tilewidth=256", "-O", "tileh... | 9a7feee0c39a13cb70387923cc90b7324c813b2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6105/9a7feee0c39a13cb70387923cc90b7324c813b2e/terrain_srtm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6283,
12,
1214,
67,
5814,
16,
810,
67,
768,
16,
4519,
4672,
1172,
315,
2723,
310,
19272,
7596,
358,
804,
52,
22,
740,
18483,
876,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6283,
12,
1214,
67,
5814,
16,
810,
67,
768,
16,
4519,
4672,
1172,
315,
2723,
310,
19272,
7596,
358,
804,
52,
22,
740,
18483,
876,
67,
768,
273,
1140,
18,
803,
18,
5701,
12,
121... |
month_name = _localized_name('%B', 12) month_abbr = _localized_name('%b', 12) | month_name = _localized_name('%B', 13) month_abbr = _localized_name('%b', 13) | def __len__(self): return self.len | bf4e6a291d9107ad7fa7d1a006a8988c980c33d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bf4e6a291d9107ad7fa7d1a006a8988c980c33d2/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
327,
365,
18,
1897,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1897,
972,
12,
2890,
4672,
327,
365,
18,
1897,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.cd_backup_threaded(self.device, rip_format='ogg') | self.cd_backup_threaded(self.device, rip_format='ogg') | def run(self, rip_format='mp3'): if self.rip_format == 'mp3' : self.cd_backup_threaded(self.device, rip_format='mp3') elif self.rip_format == 'ogg' : self.cd_backup_threaded(self.device, rip_format='ogg') elif self.rip_format == 'wav' : self.cd_backup_threaded(self.device, rip_format='wav') elif self.rip_format == 'fla... | 2dea6659ea7caf6d2ece3ed17231f52f1963d82e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/2dea6659ea7caf6d2ece3ed17231f52f1963d82e/cdbackup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
436,
625,
67,
2139,
2218,
1291,
23,
11,
4672,
309,
365,
18,
21335,
67,
2139,
422,
296,
1291,
23,
11,
294,
365,
18,
4315,
67,
9572,
67,
451,
20528,
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,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
436,
625,
67,
2139,
2218,
1291,
23,
11,
4672,
309,
365,
18,
21335,
67,
2139,
422,
296,
1291,
23,
11,
294,
365,
18,
4315,
67,
9572,
67,
451,
20528,
12,
2890,
18,
... |
if exercise in student_data.all_proficient_exercises: | if student_data.is_proficient_at(exercise): | def __init__(self, data="", css_class="", link=""): self.data = data self.css_class = css_class self.link = link | 6ac040e5e54a3cdfc977c9a997acc67592b433ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12010/6ac040e5e54a3cdfc977c9a997acc67592b433ff/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
1546,
3113,
3747,
67,
1106,
1546,
3113,
1692,
1546,
6,
4672,
365,
18,
892,
273,
501,
365,
18,
5212,
67,
1106,
273,
3747,
67,
1106,
365,
18,
1232,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
1546,
3113,
3747,
67,
1106,
1546,
3113,
1692,
1546,
6,
4672,
365,
18,
892,
273,
501,
365,
18,
5212,
67,
1106,
273,
3747,
67,
1106,
365,
18,
1232,
... |
elif canv._pagesize != doc.pagesize: | elif cp != dp: | def checkPageSize(self,canv,doc): '''This gets called by the template framework''' if canv._pagesize != self.pagesize: if self.pagesize: canv.setPageSize(self.pagesize) elif canv._pagesize != doc.pagesize: canv.setPageSize(doc.pagesize) | 2b383a1a4dd1ef83bacc8b08a3744054c8cd5878 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/2b383a1a4dd1ef83bacc8b08a3744054c8cd5878/doctemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
24035,
12,
2890,
16,
4169,
90,
16,
2434,
4672,
9163,
2503,
5571,
2566,
635,
326,
1542,
8257,
26418,
309,
848,
90,
6315,
7267,
554,
480,
365,
18,
7267,
554,
30,
309,
365,
18,
7267,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24035,
12,
2890,
16,
4169,
90,
16,
2434,
4672,
9163,
2503,
5571,
2566,
635,
326,
1542,
8257,
26418,
309,
848,
90,
6315,
7267,
554,
480,
365,
18,
7267,
554,
30,
309,
365,
18,
7267,... |
self.append(AuthorsByCommitsGroup(config)) | self.append(CommitsGroup(config)) | def __init__(self, config): """This constructor takes no parameters. """ GroupStatistic.__init__(self, config, "mpy_svn_stats", "MPY SVN Statistics") self.append(GeneralStatistics(config)) self.append(AuthorsByCommitsGroup(config)) self.append(ChangedPathsGroup(config)) self.append(AuthorsByChangedPaths(config)) self.a... | 4b27fadb15d3f44c46e23dd9f9205164147efb6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2516/4b27fadb15d3f44c46e23dd9f9205164147efb6f/msvnstats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
4672,
3536,
2503,
3885,
5530,
1158,
1472,
18,
3536,
3756,
20673,
16186,
2738,
972,
12,
2890,
16,
642,
16,
315,
1291,
93,
67,
31505,
67,
5296,
3113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
642,
4672,
3536,
2503,
3885,
5530,
1158,
1472,
18,
3536,
3756,
20673,
16186,
2738,
972,
12,
2890,
16,
642,
16,
315,
1291,
93,
67,
31505,
67,
5296,
3113,
... |
def get_tasks_nbr(self,workview=False): | def get_tasks_nbr(self,workview=False,children=True): | def get_tasks_nbr(self,workview=False): if workview: temp_list = [] for t in self.tasks: ta = self.req.get_task(t) if ta.get_status() == "Active" and ta.is_workable() and\ ta.is_started(): temp_list.append(t) toreturn = len(temp_list) else: temp_list = [] for t in self.tasks: ta = self.req.get_task(t) if ta.get_status(... | ad6d034e175319f7742c394d471aba5736545ac8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/ad6d034e175319f7742c394d471aba5736545ac8/tagstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9416,
67,
82,
2848,
12,
2890,
16,
1252,
1945,
33,
8381,
16,
5906,
33,
5510,
4672,
309,
1440,
1945,
30,
1906,
67,
1098,
273,
5378,
364,
268,
316,
365,
18,
9416,
30,
13561,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9416,
67,
82,
2848,
12,
2890,
16,
1252,
1945,
33,
8381,
16,
5906,
33,
5510,
4672,
309,
1440,
1945,
30,
1906,
67,
1098,
273,
5378,
364,
268,
316,
365,
18,
9416,
30,
13561,
27... |
self.handleError() | self.handleError(record) | def emit (self, record): """ A little more verbose emit function. """ try: msg = self.format(record) self.stream.write("%s\n" % msg) self.flush() except: print >>sys.stderr, "Could not format record", record self.handleError() | 5cd49b18dc1167723f4244fbf8c71130b9ecfa73 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/5cd49b18dc1167723f4244fbf8c71130b9ecfa73/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
261,
2890,
16,
1409,
4672,
3536,
432,
12720,
1898,
3988,
3626,
445,
18,
3536,
775,
30,
1234,
273,
365,
18,
2139,
12,
3366,
13,
365,
18,
3256,
18,
2626,
27188,
87,
64,
82,
6,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3626,
261,
2890,
16,
1409,
4672,
3536,
432,
12720,
1898,
3988,
3626,
445,
18,
3536,
775,
30,
1234,
273,
365,
18,
2139,
12,
3366,
13,
365,
18,
3256,
18,
2626,
27188,
87,
64,
82,
6,
73... |
response = self.maker.ask('build.ini is in the way of a checkout, but contains information. Delete?') | if maker.interactive: response = self.maker.ask('build.ini is in the way of a checkout, but contains information. Delete?') else: response = 'n' | def run(self): base_dir = self.maker.path('etc/') if os.path.exists(base_dir) and not os.path.exists(os.path.join(base_dir, '.svn')): build_ini = os.path.join(base_dir, 'build.ini') stat = os.stat(build_ini) if self.maker.simulate: self.logger.notify('Would delete %s' % build_ini) return if stat.st_size: response = sel... | c4e78bfeba4ce3e0d7815d483657e4f2dcae188a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12796/c4e78bfeba4ce3e0d7815d483657e4f2dcae188a/topp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1026,
67,
1214,
273,
365,
18,
29261,
18,
803,
2668,
14175,
2473,
13,
309,
1140,
18,
803,
18,
1808,
12,
1969,
67,
1214,
13,
471,
486,
1140,
18,
803,
18,
1808,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1026,
67,
1214,
273,
365,
18,
29261,
18,
803,
2668,
14175,
2473,
13,
309,
1140,
18,
803,
18,
1808,
12,
1969,
67,
1214,
13,
471,
486,
1140,
18,
803,
18,
1808,
12... |
line_end = information.rfind(" ", line_start, line_start + info_length) if line_end == -1: line_end = line_start + info_length else: line_end = line_start + info_length cur_info_line = information[line_start:line_end] if not(cur_info_line): break if line_start != 0: output_info += " " * indent output_info += "%s... | cur_part += split_char + info_part if cur_part: output_parts.append(cur_part) output_info = output_parts[0] + "\n" for output_part in output_parts[1:]: output_info += " " * indent + output_part + "\n" return output_info def _indent_genbank(information, indent): """Write out information with the specified indent. ... | def _wrapped_genbank(information, indent, wrap_space = 1): """Write a line of GenBank info that can wrap over multiple lines. This takes a line of information which can potentially wrap over multiple lines, and breaks it up with carriage returns and indentation so it fits properly. Arguments: o information - The str... | e05c41b65627aad1bc7d6b0728db5ffe770e12ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/e05c41b65627aad1bc7d6b0728db5ffe770e12ae/Record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18704,
67,
4507,
10546,
12,
13117,
16,
3504,
16,
2193,
67,
2981,
273,
404,
4672,
3536,
3067,
279,
980,
434,
10938,
16040,
1123,
716,
848,
2193,
1879,
3229,
2362,
18,
225,
1220,
5530... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18704,
67,
4507,
10546,
12,
13117,
16,
3504,
16,
2193,
67,
2981,
273,
404,
4672,
3536,
3067,
279,
980,
434,
10938,
16040,
1123,
716,
848,
2193,
1879,
3229,
2362,
18,
225,
1220,
5530... |
sim.getRNG().setSeed(12345) | sim.getRNG().set(seed=12345) | def func(off, param): off.mark = param return True | 205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
12,
3674,
16,
579,
4672,
3397,
18,
3355,
273,
579,
327,
1053,
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,
... | [
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,
1326,
12,
3674,
16,
579,
4672,
3397,
18,
3355,
273,
579,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
data = self.fd.read(8) | data = self.fd.read(12) | def __del__(self): data = self.fd.read(8) if len(data) >= 8: self.enddata = data[-8:] else: self.enddata = self.enddata[-len(data):] + data (crc32, isize) = unpack("<iI", self.enddata) if crc32 != self.crcval: print self.filename, "CRC check failed:", crc32, self.crcval if isize != self.length: print self.filename, "In... | e330f2eacc46ad1d65a18b3dfd497cca0f80a860 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/e330f2eacc46ad1d65a18b3dfd497cca0f80a860/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
501,
273,
365,
18,
8313,
18,
896,
12,
2138,
13,
309,
562,
12,
892,
13,
1545,
1725,
30,
365,
18,
409,
892,
273,
501,
18919,
28,
26894,
469,
30,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
501,
273,
365,
18,
8313,
18,
896,
12,
2138,
13,
309,
562,
12,
892,
13,
1545,
1725,
30,
365,
18,
409,
892,
273,
501,
18919,
28,
26894,
469,
30,
365,
... |
self.inputPortByName[conn.destination.name] = srcModule.id | self.inputPortByName[name] = srcModule.id | def inspectInputOutputPorts(self, pipeline): """ inspectInputOutputPorts(pipeline: Pipeline) -> None Inspect the pipeline input/output ports, useful for submodule """ self.inputPorts = {} self.inputPortByName = {} self.outputPorts = {} self.outputPortByName = {} for cId, conn in pipeline.connections.iteritems(): srcMo... | c76bfb7ce160a1d59f04392e0e2b3bb8fd3c7262 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/c76bfb7ce160a1d59f04392e0e2b3bb8fd3c7262/inspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5334,
1210,
1447,
11107,
12,
2890,
16,
5873,
4672,
3536,
5334,
1210,
1447,
11107,
12,
14511,
30,
13671,
13,
317,
599,
20045,
326,
5873,
810,
19,
2844,
9048,
16,
5301,
364,
27314,
225,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5334,
1210,
1447,
11107,
12,
2890,
16,
5873,
4672,
3536,
5334,
1210,
1447,
11107,
12,
14511,
30,
13671,
13,
317,
599,
20045,
326,
5873,
810,
19,
2844,
9048,
16,
5301,
364,
27314,
225,
35... |
eq(int(time.mktime(timetup[:9])), 1044470846) | t = int(time.mktime(timetup[:9])) eq(time.localtime(t)[:6], timetup[:6]) | def test_parsedate_acceptable_to_time_functions(self): eq = self.assertEqual timetup = Utils.parsedate('5 Feb 2003 13:47:26 -0800') eq(int(time.mktime(timetup)), 1044470846) eq(int(time.strftime('%Y', timetup)), 2003) timetup = Utils.parsedate_tz('5 Feb 2003 13:47:26 -0800') eq(int(time.mktime(timetup[:9])), 1044470846... | e3dd5b2c87dbab223d32fae544595cc5b54baf69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e3dd5b2c87dbab223d32fae544595cc5b54baf69/test_email.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
712,
67,
9436,
429,
67,
869,
67,
957,
67,
10722,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
26668,
416,
273,
6091,
18,
2670,
712,
2668,
25,
5782,
70,
4044,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2670,
712,
67,
9436,
429,
67,
869,
67,
957,
67,
10722,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
26668,
416,
273,
6091,
18,
2670,
712,
2668,
25,
5782,
70,
4044,
23,
... |
del args[i:i+2] | to_del.extend([i, i+1]) to_del.reverse() for i in to_del: del args[i] | def preprocess_options(args, search_for): """look for some options (keys of <search_for>) which have to be processed before others values of <search_for> are callback functions to call when the option is found """ for i, arg in enumerate(args): for option in search_for: if arg.startswith('--%s=' % option): search_for[... | 1c0e79285222a0dda1baa572aaddc4843caf7603 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/928/1c0e79285222a0dda1baa572aaddc4843caf7603/lint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17942,
67,
2116,
12,
1968,
16,
1623,
67,
1884,
4672,
3536,
7330,
364,
2690,
702,
261,
2452,
434,
411,
3072,
67,
1884,
23429,
1492,
1240,
358,
506,
5204,
1865,
10654,
225,
924,
434,
411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17942,
67,
2116,
12,
1968,
16,
1623,
67,
1884,
4672,
3536,
7330,
364,
2690,
702,
261,
2452,
434,
411,
3072,
67,
1884,
23429,
1492,
1240,
358,
506,
5204,
1865,
10654,
225,
924,
434,
411,
... |
"""Test signal handling semantics of threads. We spawn a thread, have the thread send two signals, and wait for it to finish. Check that we got both signals and that they were run by the main thread. """ | def send_signals(): os.kill(process_pid, signal.SIGUSR1) os.kill(process_pid, signal.SIGUSR2) signalled_all.release() | 810023db3e91c18f428e27378d00c3a5a56330c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/810023db3e91c18f428e27378d00c3a5a56330c6/test_threadsignals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
29659,
13332,
1140,
18,
16418,
12,
2567,
67,
6610,
16,
4277,
18,
18513,
27984,
21,
13,
1140,
18,
16418,
12,
2567,
67,
6610,
16,
4277,
18,
18513,
27984,
22,
13,
4277,
1259,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
29659,
13332,
1140,
18,
16418,
12,
2567,
67,
6610,
16,
4277,
18,
18513,
27984,
21,
13,
1140,
18,
16418,
12,
2567,
67,
6610,
16,
4277,
18,
18513,
27984,
22,
13,
4277,
1259,
67... | |
self.assertEquals(g, types.FloatType) | self.assertEquals(type(g), types.FloatType) | def test_sex_to_deg(self): for k in (lambda x: x, 3, object()): self.assertRaises(TypeError, cv.Alpha.sex_to_deg, k) | 953961da843d938d519dc23212d0315db9190080 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/953961da843d938d519dc23212d0315db9190080/test_coordconvert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
20909,
67,
869,
67,
9923,
12,
2890,
4672,
364,
417,
316,
261,
14661,
619,
30,
619,
16,
890,
16,
733,
1435,
4672,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
8951,
18,
9690,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
20909,
67,
869,
67,
9923,
12,
2890,
4672,
364,
417,
316,
261,
14661,
619,
30,
619,
16,
890,
16,
733,
1435,
4672,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
8951,
18,
9690,
... |
print monitor | def save_result2(self, name, monitor): if not self.doing_batch: print "HTMLLogger.save_result2() called while not doing batch." return print monitor if monitor.virtual_fail_count() == 0: status = True else: status = False if not status: fail_time = self.format_datetime(monitor.first_failure_time()) fail_count = monitor... | 9dd2ae6fa7080008173dd7d19765d6a7fb7cf32b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8800/9dd2ae6fa7080008173dd7d19765d6a7fb7cf32b/file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
2088,
22,
12,
2890,
16,
508,
16,
6438,
4672,
309,
486,
365,
18,
2896,
310,
67,
5303,
30,
1172,
315,
4870,
3328,
18,
5688,
67,
2088,
22,
1435,
2566,
1323,
486,
9957,
2581,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
67,
2088,
22,
12,
2890,
16,
508,
16,
6438,
4672,
309,
486,
365,
18,
2896,
310,
67,
5303,
30,
1172,
315,
4870,
3328,
18,
5688,
67,
2088,
22,
1435,
2566,
1323,
486,
9957,
2581,
1... | |
self.trace += " - - External add of %s\n" %tid | if DEBUG: self.trace += " - - External add of %s\n" %tid | def __execution_loop(self): while len(self.__updating_queue) > 0: tid,action = self.__updating_queue.pop(0) | d1e2e3781c819eab079c7a3534f1638eeb7d7317 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/d1e2e3781c819eab079c7a3534f1638eeb7d7317/filteredtree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16414,
67,
6498,
12,
2890,
4672,
1323,
562,
12,
2890,
16186,
5533,
1776,
67,
4000,
13,
405,
374,
30,
11594,
16,
1128,
273,
365,
16186,
5533,
1776,
67,
4000,
18,
5120,
12,
20,
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,
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,
16414,
67,
6498,
12,
2890,
4672,
1323,
562,
12,
2890,
16186,
5533,
1776,
67,
4000,
13,
405,
374,
30,
11594,
16,
1128,
273,
365,
16186,
5533,
1776,
67,
4000,
18,
5120,
12,
20,
13,... |
statdata = os.stat(path) | try: statdata = os.stat(path) except Exception, e: continue | def update_dir(self, parent, dir): print _('Updating directory %s') % dir dir_id = self.db.get_dir_id(parent, dir) | c3b2de0a06f6e20def6a73a1b5bab29cf28d5751 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8736/c3b2de0a06f6e20def6a73a1b5bab29cf28d5751/fs_source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1214,
12,
2890,
16,
982,
16,
1577,
4672,
1172,
389,
2668,
17858,
1867,
738,
87,
6134,
738,
1577,
1577,
67,
350,
273,
365,
18,
1966,
18,
588,
67,
1214,
67,
350,
12,
2938,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1214,
12,
2890,
16,
982,
16,
1577,
4672,
1172,
389,
2668,
17858,
1867,
738,
87,
6134,
738,
1577,
1577,
67,
350,
273,
365,
18,
1966,
18,
588,
67,
1214,
67,
350,
12,
2938,
16... |
zipfiles = __import__("Bio.config", {}, {}, ["Bio"]).__loader__.files | zipfiles = __import__("Bio.config", {}, {}, ["Bio"]).__loader__._files | def _load_registries(): import sys, os from Bio.config.Registry import Registry if getattr(sys, "version_info", (1, 5))[:2] < (2, 1): return self = sys.modules[__name__] # self refers to this module. # Load the registries. Look in all the '.py' files in Bio.config # for Registry objects. Save them all into t... | 842b4feb79cca42c6f940996918fe3484ce525a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/842b4feb79cca42c6f940996918fe3484ce525a8/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
1574,
22796,
13332,
1930,
2589,
16,
1140,
628,
21209,
18,
1425,
18,
4243,
1930,
5438,
225,
309,
3869,
12,
9499,
16,
315,
1589,
67,
1376,
3113,
261,
21,
16,
1381,
3719,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
945,
67,
1574,
22796,
13332,
1930,
2589,
16,
1140,
628,
21209,
18,
1425,
18,
4243,
1930,
5438,
225,
309,
3869,
12,
9499,
16,
315,
1589,
67,
1376,
3113,
261,
21,
16,
1381,
3719,
10... |
if istextfile and node.has_text(): | if istextfile: | def __process_rev( self, srcdmp, dstdmp ): """ Process one revision. | 3814f386f95d228e0d3c6e9649f3656bc6de4df6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13212/3814f386f95d228e0d3c6e9649f3656bc6de4df6/eolfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2567,
67,
9083,
12,
365,
16,
1705,
72,
1291,
16,
3046,
72,
1291,
262,
30,
3536,
4389,
1245,
6350,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2567,
67,
9083,
12,
365,
16,
1705,
72,
1291,
16,
3046,
72,
1291,
262,
30,
3536,
4389,
1245,
6350,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def __init__(self, application_cl): | def __init__(self, application_cl, return_code): | def __init__(self, application_cl): """Intialize with the commandline from the program. """ self._cl = application_cl | b7751d2dce73ee23b2a5225256829f11da855b4b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/b7751d2dce73ee23b2a5225256829f11da855b4b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2521,
67,
830,
16,
327,
67,
710,
4672,
3536,
1702,
1710,
598,
326,
28305,
628,
326,
5402,
18,
3536,
365,
6315,
830,
273,
2521,
67,
830,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2521,
67,
830,
16,
327,
67,
710,
4672,
3536,
1702,
1710,
598,
326,
28305,
628,
326,
5402,
18,
3536,
365,
6315,
830,
273,
2521,
67,
830,
2,
-100,
-100,
... |
obj.set_text(elem, unicode(val)) | obj.set_text(elem, self.renderer(val)) | def __set__(self, obj, val): elem = obj.get_metadata_element(self.name) if val is None: if elem is not None: elem.getparent().remove(elem) return if elem is None: elem = obj.create_metadata_element(self.name, is_dc=self.is_dc) obj.set_text(elem, unicode(val)) | 199d870b191ab863f21a4f55341501cbacd5c51b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/199d870b191ab863f21a4f55341501cbacd5c51b/opf2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
972,
12,
2890,
16,
1081,
16,
1244,
4672,
3659,
273,
1081,
18,
588,
67,
4165,
67,
2956,
12,
2890,
18,
529,
13,
309,
1244,
353,
599,
30,
309,
3659,
353,
486,
599,
30,
3659,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
972,
12,
2890,
16,
1081,
16,
1244,
4672,
3659,
273,
1081,
18,
588,
67,
4165,
67,
2956,
12,
2890,
18,
529,
13,
309,
1244,
353,
599,
30,
309,
3659,
353,
486,
599,
30,
3659,
... |
f = urllib2.urlopen(url, req) | f = urlopen(url, req) | def _test_urls(self, urls, handlers): import socket import time import logging debug = logging.getLogger("test_urllib2").debug | b0a6dbd218e0b3c92b3a49454b888b6e15ea563c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/b0a6dbd218e0b3c92b3a49454b888b6e15ea563c/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
4672,
1930,
2987,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
3813,
67,
718,
2941,
22,
20387,
4148,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
4672,
1930,
2987,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
3813,
67,
718,
2941,
22,
20387,
4148,
2,
-100,
-100,
... |
testvalue=testvalue.lower() | testvalue=safe_unicode(testvalue.lower()) | def testMemberData(self, memberdata, criteria, exact_match=False): """Test if a memberdata matches the search criteria. """ for (key, value) in criteria.items(): testvalue=memberdata.get(key, None) if testvalue is None: return False | 9409de6b33d6e3e1ae4eddc8c9c1b9a1e455ec88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12230/9409de6b33d6e3e1ae4eddc8c9c1b9a1e455ec88/property.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4419,
751,
12,
2890,
16,
3140,
892,
16,
3582,
16,
5565,
67,
1916,
33,
8381,
4672,
3536,
4709,
309,
279,
3140,
892,
1885,
326,
1623,
3582,
18,
3536,
364,
261,
856,
16,
460,
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,
4419,
751,
12,
2890,
16,
3140,
892,
16,
3582,
16,
5565,
67,
1916,
33,
8381,
4672,
3536,
4709,
309,
279,
3140,
892,
1885,
326,
1623,
3582,
18,
3536,
364,
261,
856,
16,
460,
13,
... |
ret = subprocess.Popen.poll(self, _deadstate) | if _deadstate is None: ret = subprocess.Popen.poll(self) else: ret = subprocess.Popen.poll(self, _deadstate) | def poll(self, _deadstate=None): # _deadstate required by base class in python 2.4 if self.returncode is None: ret = subprocess.Popen.poll(self, _deadstate) if (ret != -1): self.returncode = ret self._cleanup() return self.returncode | 1a8df9318f32f8d23109d9daf372a8e909aae82f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/197/1a8df9318f32f8d23109d9daf372a8e909aae82f/brokertest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
12,
2890,
16,
389,
22097,
2019,
33,
7036,
4672,
565,
468,
389,
22097,
2019,
1931,
635,
1026,
667,
316,
5790,
576,
18,
24,
309,
365,
18,
2463,
710,
353,
599,
30,
282,
309,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7672,
12,
2890,
16,
389,
22097,
2019,
33,
7036,
4672,
565,
468,
389,
22097,
2019,
1931,
635,
1026,
667,
316,
5790,
576,
18,
24,
309,
365,
18,
2463,
710,
353,
599,
30,
282,
309,
389,
... |
hash = md5.new(fobj.hexdigest()) | def hashFile(f): """ Expect a file name or a cStringIO.StringIO object. """ try: fobj = f.read() hash = md5.new(fobj.hexdigest()) except AttributeError: fobj = file(f,'rb') hash = md5.new(fobj.read()).hexdigest() fobj.close(); return hash | b39aa48d3e68a034cfa87e740136ca1cc0a4a163 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/b39aa48d3e68a034cfa87e740136ca1cc0a4a163/file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1651,
812,
12,
74,
4672,
3536,
15510,
279,
585,
508,
578,
279,
276,
780,
4294,
18,
780,
4294,
733,
18,
3536,
775,
30,
24705,
273,
284,
18,
896,
1435,
1335,
6394,
30,
24705,
273,
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,
1651,
812,
12,
74,
4672,
3536,
15510,
279,
585,
508,
578,
279,
276,
780,
4294,
18,
780,
4294,
733,
18,
3536,
775,
30,
24705,
273,
284,
18,
896,
1435,
1335,
6394,
30,
24705,
273,
585,
... | |
for group_id in source.get_groups_roles_map().keys(): group_users.extend(source.group_member_ids(group_id)) | for group_id in self.sources[source_id]['group_map'].keys(): group_users.extend( source.group_member_ids(group_id) ) | def get_users(self): if not hasattr(self, '_v_external_user_cache'): self._v_external_user_cache = {} cache = self._v_external_user_cache users = [] | 7526a52095140d7fa1a40058dd637668575d6ce0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/7526a52095140d7fa1a40058dd637668575d6ce0/directory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5577,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
90,
67,
9375,
67,
1355,
67,
2493,
11,
4672,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
273,
2618,
1247,
273,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5577,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
90,
67,
9375,
67,
1355,
67,
2493,
11,
4672,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
273,
2618,
1247,
273,
365,... |
from UserDict import DictMixin class SeqDict(DictMixin): | class SeqDict(UserDict.DictMixin): | def display(self): print self | ec534711e4b71fc2371ae539c8020de92d7ce300 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ec534711e4b71fc2371ae539c8020de92d7ce300/test_userdict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
4672,
1172,
365,
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,... | [
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
4672,
1172,
365,
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,
-1... |
lastroot=eServiceReference(config.radio.lastroot.value) lastservice=eServiceReference(config.radio.lastservice.value) if lastroot.valid() and self.getRoot() != lastroot: self.setRoot(lastroot) if lastservice.valid() and self.getCurrentSelection() != lastservice: self.servicelist.setCurrent(lastservice) | def closeRadio(self): self.info.instance.hide() lastroot=eServiceReference(config.radio.lastroot.value) lastservice=eServiceReference(config.radio.lastservice.value) if lastroot.valid() and self.getRoot() != lastroot: self.setRoot(lastroot) if lastservice.valid() and self.getCurrentSelection() != lastservice: self.serv... | eec9fe4a7e1381ee158c75431bc5fdd685b8f552 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/eec9fe4a7e1381ee158c75431bc5fdd685b8f552/ChannelSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
19984,
12,
2890,
4672,
365,
18,
1376,
18,
1336,
18,
11248,
1435,
468,
542,
2416,
13521,
1156,
1142,
3278,
33,
73,
1179,
2404,
12,
1425,
18,
24161,
18,
2722,
3278,
18,
1132,
13,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
19984,
12,
2890,
4672,
365,
18,
1376,
18,
1336,
18,
11248,
1435,
468,
542,
2416,
13521,
1156,
1142,
3278,
33,
73,
1179,
2404,
12,
1425,
18,
24161,
18,
2722,
3278,
18,
1132,
13,
3... | |
nbrmax = 0 | nbrmax = 1 | def process_liness(self, datas, prefix, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = '' # # Import normal fields # for i in range(len(fields)): if i>=len(line): raise 'Please check that all your lines have %d cols.' % (len(fields),) field = fields[i] if (len(field)==len(pr... | d139fdb2886fa1362388e8a2ef4dc8c31ddc8251 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/d139fdb2886fa1362388e8a2ef4dc8c31ddc8251/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
2... |
def rtype(func, inputtypes, specialize=True): | def rtype(func, inputtypes, specialize=True, gcname='ref'): | def rtype(func, inputtypes, specialize=True): from pypy.translator.translator import TranslationContext t = TranslationContext() t.buildannotator().build_types(func, inputtypes) if specialize: t.buildrtyper().specialize() if conftest.option.view: t.view() return t | 5531c41de45a5036dbb9dd43c6f1de64fb78e1a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/5531c41de45a5036dbb9dd43c6f1de64fb78e1a1/test_transformed_gc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9328,
12,
644,
16,
810,
2352,
16,
857,
1710,
33,
5510,
16,
8859,
529,
2218,
1734,
11,
4672,
628,
18951,
93,
18,
17879,
18,
17879,
1930,
17427,
1042,
268,
273,
17427,
1042,
1435,
268,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9328,
12,
644,
16,
810,
2352,
16,
857,
1710,
33,
5510,
16,
8859,
529,
2218,
1734,
11,
4672,
628,
18951,
93,
18,
17879,
18,
17879,
1930,
17427,
1042,
268,
273,
17427,
1042,
1435,
268,
1... |
if ver == _TROVESIG_VER_NEW: | if ver in (_TROVESIG_VER_NEW, _TROVESIG_VER_NEW2): | def __iter__(self): """ Iterates over all signatures in this block. Signatures are returned as (version, digest, signature) tuples. Each digest is also returned as (digest, None) before any signatures for that digest. The digests are returned as digets stream objects. """ if self.sha1(): yield (_TROVESIG_VER_CLASSIC, s... | 01bf33c96dd051260688dbc5ed027317e80c9ea8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8747/01bf33c96dd051260688dbc5ed027317e80c9ea8/trove.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
3016,
815,
1879,
777,
14862,
316,
333,
1203,
18,
4383,
2790,
854,
2106,
487,
261,
1589,
16,
5403,
16,
3372,
13,
10384,
18,
8315,
5403,
353,
2546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2165,
972,
12,
2890,
4672,
3536,
3016,
815,
1879,
777,
14862,
316,
333,
1203,
18,
4383,
2790,
854,
2106,
487,
261,
1589,
16,
5403,
16,
3372,
13,
10384,
18,
8315,
5403,
353,
2546,
... |
raise errors.BlockDeviceError("DRBD disk missing network info in" " AttachNet()") | _ThrowError("drbd%d: missing network info in AttachNet()", self.minor) | def AttachNet(self, multimaster): """Reconnects the network. | 82463074c0c011a83cf2239affbdb44cb2940801 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/82463074c0c011a83cf2239affbdb44cb2940801/bdev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8659,
7308,
12,
2890,
16,
1778,
381,
2440,
4672,
3536,
20427,
87,
326,
2483,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8659,
7308,
12,
2890,
16,
1778,
381,
2440,
4672,
3536,
20427,
87,
326,
2483,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): | def __init__(self, *args, **kwargs): | def __init__(self, fpath=None, wrapwidth=78, encoding=default_encoding): """ Constructor. | 9d732105697624731ed08ef764908b70660f97db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/9d732105697624731ed08ef764908b70660f97db/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
11417,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
11417,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"Ethan Merrit") | "Ethan Merritt") | def __init__(self): gtk.Dialog.__init__(self, "About mmCIF Editor", None, 0) self.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE) self.connect("delete-event", self.delete_event_cb) self.connect("response", self.delete_event_cb) | 845416a118287e7faa2f9e69392cad2bdc4545cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/845416a118287e7faa2f9e69392cad2bdc4545cc/cif_editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
315,
24813,
9740,
39,
5501,
18451,
3113,
599,
16,
374,
13,
365,
18,
1289,
67,
5391,
12,
4521,
79,
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,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
6353,
16186,
2738,
972,
12,
2890,
16,
315,
24813,
9740,
39,
5501,
18451,
3113,
599,
16,
374,
13,
365,
18,
1289,
67,
5391,
12,
4521,
79,
18,
... |
scrolledwindow = gtk.ScrolledWindow() scrolledwindow.unset_flags(gtk.CAN_FOCUS) scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) scrolledwindow.set_shadow_type(gtk.SHADOW_IN) scrolledwindow.set_size_request(200, -1) hpaned.add1(scrolledwindow) | self.scrolledwindow = gtk.ScrolledWindow() self.scrolledwindow.unset_flags(gtk.CAN_FOCUS) self.scrolledwindow.set_policy(gtk.POLICY_AUTOMATIC,gtk.POLICY_AUTOMATIC) self.scrolledwindow.set_shadow_type(gtk.SHADOW_IN) self.scrolledwindow.set_size_request(200, -1) hpaned.add1(self.scrolledwindow) | def build_interface(self): actions = ( ("New", gtk.STOCK_NEW, None, None, _("Create a new contact"), self.newButton_click), ("Open", gtk.STOCK_OPEN, None, None, _("Open and import contacts"), self.openButton_click), ("Delete", gtk.STOCK_DELETE, None, None, _("Delete the selected contact"), self.deleteButton_click), ("C... | a8a4c6ca09f6afe3062c9a37ce6363c545145985 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/a8a4c6ca09f6afe3062c9a37ce6363c545145985/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5831,
12,
2890,
4672,
4209,
273,
261,
7566,
1908,
3113,
22718,
18,
31487,
3507,
67,
12917,
16,
599,
16,
599,
16,
389,
2932,
1684,
279,
394,
5388,
6,
3631,
365,
18,
2704,
3616... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5831,
12,
2890,
4672,
4209,
273,
261,
7566,
1908,
3113,
22718,
18,
31487,
3507,
67,
12917,
16,
599,
16,
599,
16,
389,
2932,
1684,
279,
394,
5388,
6,
3631,
365,
18,
2704,
3616... |
return True | return self.getCombinedGenerator() | def handleArg(self, arg): """Parse one argument at a time. | 82835fa481b7460a846b67c6f932c39bc36721d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/82835fa481b7460a846b67c6f932c39bc36721d4/pagegenerators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
4117,
12,
2890,
16,
1501,
4672,
3536,
3201,
1245,
1237,
622,
279,
813,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1640,
4117,
12,
2890,
16,
1501,
4672,
3536,
3201,
1245,
1237,
622,
279,
813,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
output = stream.render('xhtml', doctype=DocType.XHTML_STRICT, encoding='utf-8') | output = stream.render('xhtml', doctype=DocType.XHTML_STRICT, encoding='utf-8') | def send_project_index(environ, start_response, parent_dir=None, env_paths=None): req = Request(environ, start_response) loadpaths = [pkg_resources.resource_filename('trac', 'templates')] use_clearsilver = False if req.environ.get('trac.env_index_template'): tmpl_path, template = os.path.split(req.environ['trac.env_in... | ac68442164f130f718e44e2284b1b237a3953ade /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/ac68442164f130f718e44e2284b1b237a3953ade/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
4406,
67,
1615,
12,
28684,
16,
787,
67,
2740,
16,
982,
67,
1214,
33,
7036,
16,
1550,
67,
4481,
33,
7036,
4672,
1111,
273,
1567,
12,
28684,
16,
787,
67,
2740,
13,
225,
1262,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
4406,
67,
1615,
12,
28684,
16,
787,
67,
2740,
16,
982,
67,
1214,
33,
7036,
16,
1550,
67,
4481,
33,
7036,
4672,
1111,
273,
1567,
12,
28684,
16,
787,
67,
2740,
13,
225,
1262,... |
if pkg.name.endswith('-devel') or pkg.name.endswith('doc'): | if pkg.name.endswith('-devel') or pkg.name.endswith('-doc'): | def check(self, pkg): | b28da18a3df833041928b155abb0b6f765ec06fc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10341/b28da18a3df833041928b155abb0b6f765ec06fc/LibraryPolicyCheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
3475,
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,
... | [
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
3475,
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... |
self.assert_(msg.get_sequences() == ['foobar', 'replied']) | self.assertEqual(msg.get_sequences(), ['foobar', 'replied']) | def test_sequences(self): # Get, set, join, and leave sequences msg = mailbox.MHMessage(_sample_message) self.assertEqual(msg.get_sequences(), []) msg.set_sequences(['foobar']) self.assertEqual(msg.get_sequences(), ['foobar']) msg.set_sequences([]) self.assertEqual(msg.get_sequences(), []) msg.add_sequence('unseen') se... | fc9997a71def3361507ae020d7f678e347d8646b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/fc9997a71def3361507ae020d7f678e347d8646b/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
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,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
18,
... |
IPv6(IPv6('2001:4860::').ip) == IPv6('2001:4860::') | IPv6(IPv6('2001:4860::').ip) == IPv6('2001:4860::') | def __init__(self, ipaddr): """Instantiate a new IPv6 object. | 24d86d232c2c338090416f343c6ffddb8dc97766 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/24d86d232c2c338090416f343c6ffddb8dc97766/ipaddr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2359,
4793,
4672,
3536,
22438,
279,
394,
7853,
26,
733,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2359,
4793,
4672,
3536,
22438,
279,
394,
7853,
26,
733,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if hasattr(n2, 'weight') and n2.weight is not None: graph[n1][n2]['weight'] = n2.weight elif hasattr(n1, 'weight') and n1.weight is not None: graph[n1][n2]['weight'] = n1.weight n2.weight = n1.weight | if hasattr(n2, 'width') and n2.width is not None: graph[n1][n2]['width'] = n2.width elif hasattr(n1, 'width') and n1.width is not None: graph[n1][n2]['width'] = n1.width n2.width = n1.width | def add_edge(graph, n1, n2): # NB (1/2010): the networkx API congealed recently # Ubuntu Lucid uses v0.99, newest is v1.0.1, let's support both if networkx.__version__ >= '1.0': graph.add_edge(n1, n2, weight=str(n2.branch_length or 1.0)) # Copy branch color value as hex, if available if hasattr(n2, 'color') and n2.colo... | 1ea0c921c9bea6acb2b6b41566383fc54ed4862f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/1ea0c921c9bea6acb2b6b41566383fc54ed4862f/_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7126,
12,
4660,
16,
290,
21,
16,
290,
22,
4672,
468,
20096,
261,
21,
19,
6734,
20,
4672,
326,
2483,
92,
1491,
356,
908,
18931,
19907,
468,
587,
70,
25348,
511,
5286,
350,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7126,
12,
4660,
16,
290,
21,
16,
290,
22,
4672,
468,
20096,
261,
21,
19,
6734,
20,
4672,
326,
2483,
92,
1491,
356,
908,
18931,
19907,
468,
587,
70,
25348,
511,
5286,
350,
46... |
ts.initfromdir(".") | ts.initfromdir(autopath.pypydir) | def testresults(self): """Return a generator to get the test result for each test item.""" for item in self.items: yield item.run() | 7de54c446f3aee856ac761708faaa5a1ee928540 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/7de54c446f3aee856ac761708faaa5a1ee928540/newtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4717,
12,
2890,
4672,
3536,
990,
279,
4456,
358,
336,
326,
1842,
563,
364,
1517,
1842,
761,
12123,
364,
761,
316,
365,
18,
3319,
30,
2824,
761,
18,
2681,
1435,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4717,
12,
2890,
4672,
3536,
990,
279,
4456,
358,
336,
326,
1842,
563,
364,
1517,
1842,
761,
12123,
364,
761,
316,
365,
18,
3319,
30,
2824,
761,
18,
2681,
1435,
2,
-100,
-100,
-10... |
msg += self.msgTxt() | msg += self.text | def send(self): if self.good: self.smsgw.debug('Sending message to %s' % self.phNumber) self.smsgw.openModule1() self.smsgw.sendCmd('AT+CMGS="%s"\r%s%c' % (self.phNumber, self.text, 26)) # chr(26) = Ctrl-Z self.smsgw.closeModule1() self.smsgw.info('InOut: %s;OUT;%s' % (datetime.datetime.now().strftime('%Y-%m-%dT%H:%M')... | 281af5440ef4459b0415b1e47d6ce56bfd4c52c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4895/281af5440ef4459b0415b1e47d6ce56bfd4c52c8/portechsmsd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
4672,
309,
365,
18,
19747,
30,
365,
18,
87,
3576,
91,
18,
4148,
2668,
16322,
883,
358,
738,
87,
11,
738,
365,
18,
844,
1854,
13,
365,
18,
87,
3576,
91,
18,
3190,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
4672,
309,
365,
18,
19747,
30,
365,
18,
87,
3576,
91,
18,
4148,
2668,
16322,
883,
358,
738,
87,
11,
738,
365,
18,
844,
1854,
13,
365,
18,
87,
3576,
91,
18,
3190,
31... |
self.display_error_dialog(_("\nThe active directory is not valid!\nPlease select another directory.")) | self.main.display_error_dialog(_("\nThe active directory is not valid!\nPlease select another directory.")) | def on_prefs_close_clicked(self, widget): """ Prefs close button clicked """ | 3d1e651d8b113026f67ba3bb4fccec80e0efd214 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/735/3d1e651d8b113026f67ba3bb4fccec80e0efd214/pyrenamer_prefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1484,
2556,
67,
4412,
67,
7475,
329,
12,
2890,
16,
3604,
4672,
3536,
453,
9316,
1746,
3568,
17688,
3536,
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,
603,
67,
1484,
2556,
67,
4412,
67,
7475,
329,
12,
2890,
16,
3604,
4672,
3536,
453,
9316,
1746,
3568,
17688,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
codestring = open(pathname, 'r').read() | codestring = open(pathname, 'rU').read() | def _compile(pathname, timestamp): """Compile (and cache) a Python source file. The file specified by <pathname> is compiled to a code object and returned. Presuming the appropriate privileges exist, the bytecodes will be saved back to the filesystem for future imports. The source file's modification timestamp must b... | 85b3e9a2419ef0601b6a83448ffb972daf371d37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/85b3e9a2419ef0601b6a83448ffb972daf371d37/imputil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11100,
12,
28336,
16,
2858,
4672,
3536,
9937,
261,
464,
1247,
13,
279,
6600,
1084,
585,
18,
225,
1021,
585,
1269,
635,
411,
28336,
34,
353,
7743,
358,
279,
981,
733,
471,
2106,
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,
389,
11100,
12,
28336,
16,
2858,
4672,
3536,
9937,
261,
464,
1247,
13,
279,
6600,
1084,
585,
18,
225,
1021,
585,
1269,
635,
411,
28336,
34,
353,
7743,
358,
279,
981,
733,
471,
2106,
18... |
cur_class = Class(fullmodule, class_name, inherit, file, lineno) | cur_class = Class(fullmodule, class_name, inherit, fname, lineno) | def _readmodule(module, path, inpackage=None): '''Do the hard work for readmodule[_ex].''' # Compute the full module name (prepending inpackage if set) if inpackage: fullmodule = "%s.%s" % (inpackage, module) else: fullmodule = module # Check in the cache if fullmodule in _modules: return _modules[fullmodule] # Initi... | 63d2bd0c0f14b0ec86d5455858d3bf941cb273f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/63d2bd0c0f14b0ec86d5455858d3bf941cb273f5/pyclbr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
2978,
12,
2978,
16,
589,
16,
316,
5610,
33,
7036,
4672,
9163,
3244,
326,
7877,
1440,
364,
855,
2978,
63,
67,
338,
65,
1093,
6309,
468,
8155,
326,
1983,
1605,
508,
261,
1484,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
896,
2978,
12,
2978,
16,
589,
16,
316,
5610,
33,
7036,
4672,
9163,
3244,
326,
7877,
1440,
364,
855,
2978,
63,
67,
338,
65,
1093,
6309,
468,
8155,
326,
1983,
1605,
508,
261,
1484,
... |
self.body.append('{\\small ') | self.fallbacks['legend'] = PreambleCmds.legend self.body.append('\\begin{DUlegend}') | def visit_legend(self, node): # DUlegend command incompatible with flush* aligning: # ! LaTeX Error: There's no line here to end. ## self.fallbacks['legend'] = PreambleCmds.legend ## self.body.append('\DUlegend{') self.body.append('{\\small ') | ca2f22b1c4e8be5a06f234a03127244e2db8bd3c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/ca2f22b1c4e8be5a06f234a03127244e2db8bd3c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
16292,
12,
2890,
16,
756,
4672,
468,
463,
57,
16292,
1296,
24430,
598,
3663,
14,
5689,
310,
30,
468,
282,
401,
21072,
21575,
60,
1068,
30,
6149,
1807,
1158,
980,
2674,
358,
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,
3757,
67,
16292,
12,
2890,
16,
756,
4672,
468,
463,
57,
16292,
1296,
24430,
598,
3663,
14,
5689,
310,
30,
468,
282,
401,
21072,
21575,
60,
1068,
30,
6149,
1807,
1158,
980,
2674,
358,
6... |
date = mx.DateTime.strptime(str(value),DT_FORMAT) | date = mx.DateTime.strptime(value,DT_FORMAT) | def formatLang(self, value, digits=2, date=False,date_time=False, grouping=True, monetary=False, currency=None): if not value: return '' | 6624124758ebd759cd9b4edda57eebdd213305a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/6624124758ebd759cd9b4edda57eebdd213305a8/report_sxw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
7275,
12,
2890,
16,
460,
16,
6815,
33,
22,
16,
1509,
33,
8381,
16,
712,
67,
957,
33,
8381,
16,
12116,
33,
5510,
16,
31198,
33,
8381,
16,
5462,
33,
7036,
4672,
309,
486,
460,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
7275,
12,
2890,
16,
460,
16,
6815,
33,
22,
16,
1509,
33,
8381,
16,
712,
67,
957,
33,
8381,
16,
12116,
33,
5510,
16,
31198,
33,
8381,
16,
5462,
33,
7036,
4672,
309,
486,
460,
3... |
warnOnFailure = True | def evaluateCommand(self, cmd): superResult = ShellCommand.evaluateCommand(self, cmd) if SUCCESS != superResult: return WARNINGS if None != re.search('FAIL', cmd.logs['stdio'].getText()): return WARNINGS return SUCCESS | 34702b47b854d7d39e5673541f6c021781d03c67 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13067/34702b47b854d7d39e5673541f6c021781d03c67/mozbuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
9744,
55,
309,
599,
480,
283,
18,
307... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
9744,
55,
309,
599,
480,
283,
18,
307... | |
self._preview = False | self._previewing = False | def _button_save_cb(self, button, data=None): """Save button clicked.""" # Validate data failed_items = self._validate() if failed_items: self._canvas.set_root(self._build_canvas(highlight=failed_items)) self.show_all() return # Data OK self._preview = False self._poll.active = True self._polls.add(self._poll) self._po... | 96d7a3e2e2c337e1e11897013d8080b5b48f1a0d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6691/96d7a3e2e2c337e1e11897013d8080b5b48f1a0d/poll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5391,
67,
5688,
67,
7358,
12,
2890,
16,
3568,
16,
501,
33,
7036,
4672,
3536,
4755,
3568,
17688,
12123,
468,
3554,
501,
2535,
67,
3319,
273,
365,
6315,
5662,
1435,
309,
2535,
67,
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,
389,
5391,
67,
5688,
67,
7358,
12,
2890,
16,
3568,
16,
501,
33,
7036,
4672,
3536,
4755,
3568,
17688,
12123,
468,
3554,
501,
2535,
67,
3319,
273,
365,
6315,
5662,
1435,
309,
2535,
67,
3... |
if ( self.getTag( pxl_tags_dict['sint16_box'] ) ): | new_tag = unpack('B', self.data[self.index])[0] if ( new_tag == pxl_tags_dict['sint16_box'] ): self.index = self.index + 1 | def Tag_sint16_box(self): if ( self.getTag( pxl_tags_dict['sint16_box'] ) ): print "sint16_box %d %d %d %d" % \ self.unpack('hhhh', self.data[self.index:self.index+8]) self.index = self.index + 8 return 1 return 0 | 56f3b40c49b4c8c2c1bf30f153b578ada70886f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/56f3b40c49b4c8c2c1bf30f153b578ada70886f5/pxldis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4034,
67,
87,
474,
2313,
67,
2147,
12,
2890,
4672,
394,
67,
2692,
273,
6167,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
5717,
63,
20,
65,
309,
261,
394,
67,
2692,
422,
10318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4034,
67,
87,
474,
2313,
67,
2147,
12,
2890,
4672,
394,
67,
2692,
273,
6167,
2668,
38,
2187,
365,
18,
892,
63,
2890,
18,
1615,
5717,
63,
20,
65,
309,
261,
394,
67,
2692,
422,
10318,
... |
"""isinstance(%s, collections.Sequence)""" | def _isSequenceType(self, node, results): """isinstance(%s, collections.Sequence)""" return self._handle_type2abc(node, results, "collections", "Sequence") | a3cb67d88774a290709eb0621259068fa0d7f10f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/a3cb67d88774a290709eb0621259068fa0d7f10f/fix_operator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
4021,
559,
12,
2890,
16,
756,
16,
1686,
4672,
327,
365,
6315,
4110,
67,
723,
22,
18947,
12,
2159,
16,
1686,
16,
315,
19246,
3113,
315,
4021,
7923,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
4021,
559,
12,
2890,
16,
756,
16,
1686,
4672,
327,
365,
6315,
4110,
67,
723,
22,
18947,
12,
2159,
16,
1686,
16,
315,
19246,
3113,
315,
4021,
7923,
2,
-100,
-100,
-100,
-100,
... | |
org = flipXY and self.y or self.x | if flipXY: org = self.y else: org = self.x | def calcBarPositions(self): """Works out where they go. default vertical. | a1c1f3b47f2d651823c15490d25c6eab5c33882b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a1c1f3b47f2d651823c15490d25c6eab5c33882b/barcharts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
5190,
11024,
12,
2890,
4672,
3536,
16663,
596,
1625,
2898,
1960,
18,
805,
9768,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
5190,
11024,
12,
2890,
4672,
3536,
16663,
596,
1625,
2898,
1960,
18,
805,
9768,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.re_off = re.compile('\(.*?\)*?') | self.re_off = re.compile('\(.*?\)') | def connectionMade(self): self.handle = self.login self.state = 0 self.color = '' self.typing = False self.gm = False self.re_dice = re.compile("(?:\!\d*d\d*(?:\+|\-)*)(?:(?:(?:\d*d\d*)|\d*)(?:\+|\-)*)*",re.IGNORECASE) self.re_quote = re.compile('".*?"') self.re_off = re.compile('\(.*?\)*?') | 3eeb5803fcaa9200603943617ea56898d709469e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13227/3eeb5803fcaa9200603943617ea56898d709469e/ropeserve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
49,
2486,
12,
2890,
4672,
365,
18,
4110,
273,
365,
18,
5819,
365,
18,
2019,
273,
374,
365,
18,
3266,
273,
875,
365,
18,
12846,
310,
273,
1083,
365,
18,
23336,
377,
273,
1083,
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,
1459,
49,
2486,
12,
2890,
4672,
365,
18,
4110,
273,
365,
18,
5819,
365,
18,
2019,
273,
374,
365,
18,
3266,
273,
875,
365,
18,
12846,
310,
273,
1083,
365,
18,
23336,
377,
273,
1083,
3... |
if attempt_read_and_call(uhandle, consumer.noevent, | if attempt_read_and_call(uhandle, consumer.noevent, | def _scan_descriptions(self, uhandle, consumer): # Searching..................................................done # Results from round 2 # # # Sc # Sequences producing significant alignments: (b # Sequences used in model and foun... | 4345b66dc64a700881a4c9a0e3a6ea43eabf5ea2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/4345b66dc64a700881a4c9a0e3a6ea43eabf5ea2/NCBIStandalone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9871,
67,
30288,
12,
2890,
16,
582,
4110,
16,
4765,
4672,
468,
5167,
310,
18509,
18509,
18509,
838,
8734,
468,
10351,
628,
3643,
576,
468,
468,
468,
28524,
565,
2850,
468,
3265,
657... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9871,
67,
30288,
12,
2890,
16,
582,
4110,
16,
4765,
4672,
468,
5167,
310,
18509,
18509,
18509,
838,
8734,
468,
10351,
628,
3643,
576,
468,
468,
468,
28524,
565,
2850,
468,
3265,
657... |
root = context.root | root = context.handler.get_site_root() | def __init__(self, filter_type=Handler, root=None, start=None): """ The 'start' must be a handler, 'filter_type' must be a handler class. """ context = get_context() request, response = context.request, context.response | 1d9796dd3ca3573203a67d8e2f973dbf4e2d165c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1d9796dd3ca3573203a67d8e2f973dbf4e2d165c/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1034,
67,
723,
33,
1503,
16,
1365,
33,
7036,
16,
787,
33,
7036,
4672,
3536,
1021,
296,
1937,
11,
1297,
506,
279,
1838,
16,
296,
2188,
67,
723,
11,
1297... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1034,
67,
723,
33,
1503,
16,
1365,
33,
7036,
16,
787,
33,
7036,
4672,
3536,
1021,
296,
1937,
11,
1297,
506,
279,
1838,
16,
296,
2188,
67,
723,
11,
1297... |
ifp = openrf(srcfss.as_pathname(), '*rb') ofp = openrf(dstfss.as_pathname(), '*wb') | ifp = openrf(src, '*rb') ofp = openrf(dst, '*wb') | def copy(src, dst, createpath=0, copydates=1, forcetype=None): """Copy a file, including finder info, resource fork, etc""" if createpath: mkdirs(os.path.split(dst)[0]) srcfss = macfs.FSSpec(src) dstfss = macfs.FSSpec(dst) ifp = open(srcfss.as_pathname(), 'rb') ofp = open(dstfss.as_pathname(), 'wb') d = ifp.read(BUFSI... | fee7a54e3e4b7473743856c6f2bb29c101f46603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/fee7a54e3e4b7473743856c6f2bb29c101f46603/macostools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
4816,
16,
3046,
16,
752,
803,
33,
20,
16,
1610,
9683,
33,
21,
16,
364,
71,
5872,
33,
7036,
4672,
3536,
2951,
279,
585,
16,
6508,
7532,
1123,
16,
1058,
12515,
16,
5527,
8395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1610,
12,
4816,
16,
3046,
16,
752,
803,
33,
20,
16,
1610,
9683,
33,
21,
16,
364,
71,
5872,
33,
7036,
4672,
3536,
2951,
279,
585,
16,
6508,
7532,
1123,
16,
1058,
12515,
16,
5527,
8395... |
print "Failed to remove old initialization file." print "This could be an indication of a permissions", print "problem." print "Make sure file '%s' is writable." % self.dotVistrails | debug.critical("""Failed to remove old initialization file. This could be an indication of a permissions problem. Make sure file '%s' is writable.""" % self.dotVistrails) | def execDotVistrails(): """ execDotVistrails() -> None Actually execute the Vistrail initialization """ # if it is file, then must move old-style .vistrails to # directory. if os.path.isfile(self.dotVistrails): print "Old-style initialization hooks. Will try to set things", print "correctly." print self.dotVistrails (... | bfaed3e949605db30e74fcd31e2a85371a3d1b04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/bfaed3e949605db30e74fcd31e2a85371a3d1b04/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
10412,
3282,
313,
15208,
13332,
3536,
1196,
10412,
3282,
313,
15208,
1435,
317,
599,
4603,
3452,
1836,
326,
776,
3337,
671,
10313,
225,
3536,
468,
309,
518,
353,
585,
16,
1508,
1297,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1196,
10412,
3282,
313,
15208,
13332,
3536,
1196,
10412,
3282,
313,
15208,
1435,
317,
599,
4603,
3452,
1836,
326,
776,
3337,
671,
10313,
225,
3536,
468,
309,
518,
353,
585,
16,
1508,
1297,... |
if row[i] != None and row[i] <= row[i-1]: | if row[i-1] is not None and row[i] <= row[i-1]: | def is_standard(self): """ Returns True if t is a standard skew tableau and False otherwise. | 617dfb7dbfc4261312814fcbf1c72a2f0549122c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/617dfb7dbfc4261312814fcbf1c72a2f0549122c/skew_tableau.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
10005,
12,
2890,
4672,
3536,
2860,
1053,
309,
268,
353,
279,
4529,
20001,
1014,
8377,
471,
1083,
3541,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
67,
10005,
12,
2890,
4672,
3536,
2860,
1053,
309,
268,
353,
279,
4529,
20001,
1014,
8377,
471,
1083,
3541,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
cx, cy, cz = numpy.average(points2, 1) | def execute_module(self): ii = self._input_data if not ii: return | 9a662b58081b223e2ff54ea3d063c7e78c4c347f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4494/9a662b58081b223e2ff54ea3d063c7e78c4c347f/FitEllipsoidToMask.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
2978,
12,
2890,
4672,
6072,
273,
365,
6315,
2630,
67,
892,
309,
486,
6072,
30,
327,
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,
1836,
67,
2978,
12,
2890,
4672,
6072,
273,
365,
6315,
2630,
67,
892,
309,
486,
6072,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
return self.revisions[0].date | return self.ctime | def get_ctime(self): return self.revisions[0].date | 726eed312a5ece49d0c15a2ea1039578c995ccb9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/726eed312a5ece49d0c15a2ea1039578c995ccb9/memory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
21261,
12,
2890,
4672,
327,
365,
18,
29892,
63,
20,
8009,
712,
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,
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,
336,
67,
21261,
12,
2890,
4672,
327,
365,
18,
29892,
63,
20,
8009,
712,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
id = row[0] | id = c.fetchone()[0] | def _queryInsertID(self, conn, soInstance, id, names, values): """Firebird uses 'generators' to create new ids for a table. The users needs to create a generator named GEN_<tablename> for each table this method to work.""" table = soInstance.sqlmeta.table idName = soInstance.sqlmeta.idName sequenceName = getattr(soInst... | b3e5c5affbf5a5225bd50ecd0eb7749ae0803248 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/b3e5c5affbf5a5225bd50ecd0eb7749ae0803248/firebirdconnection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2271,
4600,
734,
12,
2890,
16,
1487,
16,
1427,
1442,
16,
612,
16,
1257,
16,
924,
4672,
3536,
9723,
31245,
4692,
296,
25959,
11,
358,
752,
394,
3258,
364,
279,
1014,
18,
1021,
3677... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2271,
4600,
734,
12,
2890,
16,
1487,
16,
1427,
1442,
16,
612,
16,
1257,
16,
924,
4672,
3536,
9723,
31245,
4692,
296,
25959,
11,
358,
752,
394,
3258,
364,
279,
1014,
18,
1021,
3677... |
monkeypatch(cls, 'test_create', 'create') | monkeypatch(cls, 'test_crud', 'crud') | def __init__(cls, name, bases, classdict): if 'model' in classdict: monkeypatch(cls, 'test_create', 'create') | 8679afe44f4f28764f37d79a7dd0afbcb8c1484f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/8679afe44f4f28764f37d79a7dd0afbcb8c1484f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6429,
16,
508,
16,
8337,
16,
667,
1576,
4672,
309,
296,
2284,
11,
316,
667,
1576,
30,
6921,
856,
2272,
12,
6429,
16,
296,
3813,
67,
2640,
2187,
296,
2640,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6429,
16,
508,
16,
8337,
16,
667,
1576,
4672,
309,
296,
2284,
11,
316,
667,
1576,
30,
6921,
856,
2272,
12,
6429,
16,
296,
3813,
67,
2640,
2187,
296,
2640,
6134,
... |
trace ("created") | def trace (message): if classname == trace_type and peer_object_id in trace_ids: message_verbose('TRACE>>'+message) | be959d0158ffaff6d50158269f03ba7f2c1da56f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/be959d0158ffaff6d50158269f03ba7f2c1da56f/RefreshPeer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
261,
2150,
4672,
309,
7479,
422,
2606,
67,
723,
471,
4261,
67,
1612,
67,
350,
316,
2606,
67,
2232,
30,
883,
67,
11369,
2668,
23827,
34,
1870,
15,
2150,
13,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2606,
261,
2150,
4672,
309,
7479,
422,
2606,
67,
723,
471,
4261,
67,
1612,
67,
350,
316,
2606,
67,
2232,
30,
883,
67,
11369,
2668,
23827,
34,
1870,
15,
2150,
13,
2,
-100,
-100,
-100,
... | |
self.notify.debug('self.garbage == %s' % safeRepr(self.garbage)) | self.notify.debug('self.garbage == %s' % fastRepr(self.garbage)) | def run(self): # do the garbage collection wasOn = gcDebugOn() oldFlags = gc.get_debug() if not wasOn: gc.set_debug(gc.DEBUG_SAVEALL) gc.collect() self.garbage = list(gc.garbage) # only yield if there's more time-consuming work to do, # if there's no garbage, give instant feedback if len(self.garbage) > 0: yield None #... | 233501d0a6e3d831ba670b198f335bccbf84ffb5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8543/233501d0a6e3d831ba670b198f335bccbf84ffb5/GarbageReport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
741,
326,
15340,
1849,
1703,
1398,
273,
8859,
2829,
1398,
1435,
1592,
5094,
273,
8859,
18,
588,
67,
4148,
1435,
309,
486,
1703,
1398,
30,
8859,
18,
542,
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,
1086,
12,
2890,
4672,
468,
741,
326,
15340,
1849,
1703,
1398,
273,
8859,
2829,
1398,
1435,
1592,
5094,
273,
8859,
18,
588,
67,
4148,
1435,
309,
486,
1703,
1398,
30,
8859,
18,
542,
67,
... |
d = {'a': 1/0, 'b': None, 'c': None, 'd': None, 'e': None, | d = {'a': 1//0, 'b': None, 'c': None, 'd': None, 'e': None, | def test_empty_presized_dict_in_freelist(self): # Bug #3537: if an empty but presized dict with a size larger # than 7 was in the freelist, it triggered an assertion failure try: d = {'a': 1/0, 'b': None, 'c': None, 'd': None, 'e': None, 'f': None, 'g': None, 'h': None} except ZeroDivisionError: pass d = {} | e0b6e9a381845f64fe12ecb42b7d66d96e098c41 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/e0b6e9a381845f64fe12ecb42b7d66d96e098c41/test_dict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5531,
67,
12202,
1235,
67,
1576,
67,
267,
67,
74,
266,
5449,
12,
2890,
4672,
468,
16907,
468,
4763,
6418,
30,
309,
392,
1008,
1496,
4075,
1235,
2065,
598,
279,
963,
10974,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5531,
67,
12202,
1235,
67,
1576,
67,
267,
67,
74,
266,
5449,
12,
2890,
4672,
468,
16907,
468,
4763,
6418,
30,
309,
392,
1008,
1496,
4075,
1235,
2065,
598,
279,
963,
10974,
46... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.