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 |
|---|---|---|---|---|---|---|
for col in ['MODEL_DATA', 'CORRECTED_DATA', 'IMAGING_WEIGHT'] : if col in cnames: raise ValueError("Column MODEL_DATA, CORRECTED_DATA, or IMAGING_WEIGHT already exists") | def addImagingColumns(msname, ack=True): """ Add the columns to an MS needed for the casa imager. It adds the columns MODEL_WEIGHT, CORRECTED_WEIGHT, and IMAGING_WEIGHT. It also sets the CHANNEL_SELECTION keyword needed for the older casa imagers. It fails if one of the columns already exists. """ # numpy is needed import numpy as np # Open the MS t = table (msname, readonly=False, ack=False) # Check if the columns do not already exist. cnames = t.colnames() for col in ['MODEL_DATA', 'CORRECTED_DATA', 'IMAGING_WEIGHT'] : if col in cnames: raise ValueError("Column MODEL_DATA, CORRECTED_DATA, or IMAGING_WEIGHT already exists") # Get the description of the DATA column. try: cdesc = t.getcoldesc('DATA') except: raise ValueError('Column DATA does not exist') # Add the columns using the DATA storage specification (if tiled). hasTiled = False try: dminfo = t.getdminfo("DATA") if dminfo['TYPE'][:5] == 'Tiled': hasTiled = True except: hasTiled = False # Use TiledShapeStMan if needed. if not hasTiled: dminfo = {'TYPE': 'TiledShapeStMan', 'SPEC': {'DEFAULTTILESHAPE':[4,32,128]}} # Add the columns. Use the description of the DATA column. dminfo['NAME'] = 'modeldata' cdesc['comment'] = 'The model data column' t.addcols (maketabdesc(makecoldesc('MODEL_DATA', cdesc)), dminfo) if ack: print 'added column MODEL_DATA' dminfo['NAME'] = 'correcteddata' cdesc['comment'] = 'The corrected data column' t.addcols (maketabdesc(makecoldesc('CORRECTED_DATA', cdesc)), dminfo) if ack: print 'added column CORRECTED_DATA' # Add IMAGING_WEIGHT which is 1-dim and has type float. shp = cdesc['shape'] if len(shp) > 0: shp = [shp[0]] # use nchan cd = makearrcoldesc ('IMAGING_WEIGHT', 0, ndim=1, shape=shp, valuetype='float') dminfo = {'TYPE': 'TiledShapeStMan', 'SPEC': {'DEFAULTTILESHAPE':[32,128]}} dminfo['NAME'] = 'imagingweight' t.addcols (maketabdesc(cd), dminfo) if ack: print 'added column IMAGING_WEIGHT' # Finally define the CHANNEL_SELECTION keyword containing the channels of # all spectral windows. tspw = table(t.getkeyword('SPECTRAL_WINDOW'), ack=False) nchans = tspw.getcol('NUM_CHAN') chans = [[0,nch] for nch in nchans] t.putcolkeyword ('MODEL_DATA', 'CHANNEL_SELECT', np.array(chans)) if ack: print 'defined keyword CHANNEL_SELECTION in column MODEL_DATA' # Flush the table to make sure it is written. t.flush() | cdd87430da981b0b5338b43dfdfa5f4e0b5c00a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7472/cdd87430da981b0b5338b43dfdfa5f4e0b5c00a0/tableutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1170,
5755,
3380,
12,
959,
529,
16,
8479,
33,
5510,
4672,
3536,
1436,
326,
2168,
358,
392,
9238,
3577,
364,
326,
8697,
69,
709,
6817,
18,
225,
2597,
4831,
326,
2168,
21700,
67,
29988,
16,
28359,
4512,
2056,
67,
29988,
16,
471,
6246,
20868,
67,
29988,
18,
2597,
2546,
1678,
326,
27417,
67,
1090,
15445,
4932,
3577,
364,
326,
12156,
8697,
69,
8902,
414,
18,
225,
2597,
6684,
309,
1245,
434,
326,
2168,
1818,
1704,
18,
225,
3536,
225,
468,
3972,
353,
3577,
1930,
3972,
487,
1130,
468,
3502,
326,
9238,
268,
273,
1014,
261,
959,
529,
16,
17102,
33,
8381,
16,
8479,
33,
8381,
13,
468,
2073,
309,
326,
2168,
741,
486,
1818,
1005,
18,
276,
1973,
273,
268,
18,
1293,
1973,
1435,
468,
968,
326,
2477,
434,
326,
8730,
1057,
18,
775,
30,
276,
5569,
273,
268,
18,
588,
1293,
5569,
2668,
4883,
6134,
1335,
30,
1002,
2068,
2668,
1494,
8730,
1552,
486,
1005,
6134,
468,
1436,
326,
2168,
1450,
326,
8730,
2502,
7490,
261,
430,
268,
1411,
2934,
711,
56,
1411,
273,
1083,
775,
30,
302,
1154,
617,
273,
268,
18,
588,
72,
1154,
617,
2932,
4883,
7923,
309,
302,
1154,
617,
3292,
2399,
3546,
10531,
25,
65,
422,
296,
56,
1411,
4278,
711,
56,
1411,
273,
1053,
1335,
30,
711,
56,
1411,
273,
1083,
468,
2672,
399,
1411,
8500,
510,
5669,
309,
3577,
18,
309,
486,
711,
56,
1411,
30,
302,
1154,
617,
273,
13666,
2399,
4278,
296,
56,
1411,
8500,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1170,
5755,
3380,
12,
959,
529,
16,
8479,
33,
5510,
4672,
3536,
1436,
326,
2168,
358,
392,
9238,
3577,
364,
326,
8697,
69,
709,
6817,
18,
225,
2597,
4831,
326,
2168,
21700,
67,
29988,
16,
28359,
4512,
2056,
67,
29988,
16,
471,
6246,
20868,
67,
29988,
18,
2597,
2546,
1678,
326,
27417,
67,
1090,
15445,
4932,
3577,
364,
326,
12156,
8697,
69,
8902,
414,
18,
225,
2597,
6684,
309,
1245,
434,
326,
2168,
1818,
1704,
18,
225,
3536,
225,
468,
3972,
353,
3577,
1930,
3972,
487,
1130,
468,
3502,
326,
9238,
268,
273,
1014,
261,
959,
529,
16,
17102,
33,
8381,
16,
8479,
33,
8381,
13,
468,
2073,
309,
326,
2168,
741,
486,
1818,
1005,
18,
276,
2
] | |
if event == 'return': | if event == 'return': if sys.excepthook != g_excepthook: set_excepthook() | def profile(self, frame, event, arg): """ Profiler method. The Python profiling mechanism is used by the debugger mainly to handle synchronization issues related to the life time of the frame structure. """ #print_debug('profile: %s, %s, %s, %s, %s' % (repr(frame), event, frame.f_code.co_name, frame.f_code.co_filename, repr(arg)[:40])) if event == 'return': self.m_frame = frame.f_back | 3936cfe7191507813ad88daecdb00c41fdd1a2a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9402/3936cfe7191507813ad88daecdb00c41fdd1a2a6/rpdb2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3042,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
3536,
28338,
707,
18,
1021,
6600,
25658,
12860,
353,
1399,
635,
326,
19977,
31457,
358,
1640,
24488,
8296,
3746,
358,
326,
17140,
813,
434,
326,
2623,
3695,
18,
3536,
468,
1188,
67,
4148,
2668,
5040,
30,
738,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
11,
738,
261,
12715,
12,
3789,
3631,
871,
16,
2623,
18,
74,
67,
710,
18,
2894,
67,
529,
16,
2623,
18,
74,
67,
710,
18,
2894,
67,
3459,
16,
8480,
12,
3175,
13,
10531,
7132,
22643,
309,
871,
422,
296,
2463,
4278,
309,
2589,
18,
14137,
4476,
480,
314,
67,
14137,
4476,
30,
444,
67,
14137,
4476,
1435,
225,
365,
18,
81,
67,
3789,
273,
2623,
18,
74,
67,
823,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3042,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
3536,
28338,
707,
18,
1021,
6600,
25658,
12860,
353,
1399,
635,
326,
19977,
31457,
358,
1640,
24488,
8296,
3746,
358,
326,
17140,
813,
434,
326,
2623,
3695,
18,
3536,
468,
1188,
67,
4148,
2668,
5040,
30,
738,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
16,
738,
87,
11,
738,
261,
12715,
12,
3789,
3631,
871,
16,
2623,
18,
74,
67,
710,
18,
2894,
67,
529,
16,
2623,
18,
74,
67,
710,
18,
2894,
67,
3459,
16,
8480,
12,
3175,
13,
10531,
7132,
22643,
309,
871,
422,
296,
2463,
4278,
309,
2589,
18,
14137,
4476,
480,
314,
67,
14137,
4476,
30,
444,
67,
14137,
4476,
1435,
2
] |
release_files = ['/etc/redhat-release', '/etc/debian_version' ] release_files += [ os.path.join('/etc', fname) for fname in os.listdir('/etc') if fname.endswith('release') \ and fname != 'lsb-release' ] for filename in release_files: if os.path.exists(filename): info.append(('Distribution', open(filename, 'r').readline().strip())) break | distro = get_distro() if distro: info.append(('Distribution', distro)) | def start_build(self): assert self.outputdir | fb98bce3bc90ae3e92151adac044c90793e583fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/fb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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
3510,
12,
2890,
4672,
1815,
365,
18,
2844,
1214,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
errMsg = "Error: couldn't find bus to allow re-enabling of the screen saver.\n\n" \ "Please visit the web-site listed in the 'About' dialog of this application " \ "and check for a newer version of the software." errDlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK, message_format=errMsg) errDlg.run() errDlg.destroy() sys.exit(1) | return False | def toggleSleepPrevention(): global sleepPrevented, screenSaverCookie, timer bus = dbus.SessionBus() if sleepPrevented: ssProxy = None if 'org.gnome.ScreenSaver' in bus.list_names(): # For Gnome ssProxy = bus.get_object('org.gnome.ScreenSaver', '/org/gnome/ScreenSaver') elif 'org.freedesktop.ScreenSaver' in bus.list_names(): # For KDE and others ssProxy = bus.get_object('org.freedesktop.ScreenSaver', '/ScreenSaver') else: errMsg = "Error: couldn't find bus to allow re-enabling of the screen saver.\n\n" \ "Please visit the web-site listed in the 'About' dialog of this application " \ "and check for a newer version of the software." errDlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK, message_format=errMsg) errDlg.run() errDlg.destroy() sys.exit(1) if screenSaverCookie != None: ssProxy.UnInhibit(screenSaverCookie) sleepPrevented = False print "Caffiene is now dormant; powersaving is re-enabled" # If the user clicks on the full coffee-cup to disable sleep prevention, it should also # cancel the timer for timed activation. if timer != None: print "Cancelling the 'timed activation' timer (was set for " + str(timer.interval) + " seconds)" timer.cancel() else: ssProxy = None if 'org.gnome.ScreenSaver' in bus.list_names(): # For Gnome ssProxy = bus.get_object('org.gnome.ScreenSaver', '/org/gnome/ScreenSaver') elif 'org.freedesktop.ScreenSaver' in bus.list_names(): # For KDE and others ssProxy = bus.get_object('org.freedesktop.ScreenSaver', '/ScreenSaver') else: errMsg = "Error: couldn't find bus to allow inhibiting of the screen saver.\n\n" \ "Please visit the web-site listed in the 'About' dialog of this application " \ "and check for a newer version of the software." errDlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK, message_format=errMsg) errDlg.run() errDlg.destroy() sys.exit(2) screenSaverCookie = ssProxy.Inhibit("Caffeine", "User has requested that Caffeine disable the screen saver") sleepPrevented = True print "Caffiene is now preventing powersaving modes and screensaver activation" | 2fb8947e320a8cd93783e4c5600a72e97e38c60d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1563/2fb8947e320a8cd93783e4c5600a72e97e38c60d/caffeine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10486,
20768,
1386,
11111,
13332,
2552,
5329,
25828,
329,
16,
5518,
55,
21851,
6151,
16,
5441,
5766,
273,
21866,
18,
2157,
7086,
1435,
309,
5329,
25828,
329,
30,
5202,
3886,
273,
599,
309,
296,
3341,
18,
1600,
1742,
18,
7956,
55,
21851,
11,
316,
5766,
18,
1098,
67,
1973,
13332,
468,
2457,
611,
82,
1742,
5202,
3886,
273,
5766,
18,
588,
67,
1612,
2668,
3341,
18,
1600,
1742,
18,
7956,
55,
21851,
2187,
1173,
3341,
19,
1600,
1742,
19,
7956,
55,
21851,
6134,
1327,
296,
3341,
18,
74,
15656,
281,
11869,
18,
7956,
55,
21851,
11,
316,
5766,
18,
1098,
67,
1973,
13332,
468,
2457,
1475,
1639,
471,
10654,
5202,
3886,
273,
5766,
18,
588,
67,
1612,
2668,
3341,
18,
74,
15656,
281,
11869,
18,
7956,
55,
21851,
2187,
1173,
7956,
55,
21851,
6134,
469,
30,
327,
1083,
225,
309,
5518,
55,
21851,
6151,
480,
599,
30,
5202,
3886,
18,
984,
382,
31597,
12,
9252,
55,
21851,
6151,
13,
5329,
25828,
329,
273,
1083,
1172,
315,
39,
7329,
77,
4009,
353,
2037,
302,
535,
970,
31,
7602,
414,
5339,
353,
283,
17,
5745,
6,
225,
468,
971,
326,
729,
27659,
603,
326,
1983,
276,
3674,
1340,
17,
71,
416,
358,
4056,
5329,
5309,
285,
16,
518,
1410,
2546,
468,
3755,
326,
5441,
364,
7491,
10027,
18,
309,
5441,
480,
599,
30,
1172,
315,
2568,
3855,
310,
326,
296,
20905,
10027,
11,
5441,
261,
17416,
444,
364,
315,
397,
609,
12,
12542,
18,
6624,
13,
397,
315,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10486,
20768,
1386,
11111,
13332,
2552,
5329,
25828,
329,
16,
5518,
55,
21851,
6151,
16,
5441,
5766,
273,
21866,
18,
2157,
7086,
1435,
309,
5329,
25828,
329,
30,
5202,
3886,
273,
599,
309,
296,
3341,
18,
1600,
1742,
18,
7956,
55,
21851,
11,
316,
5766,
18,
1098,
67,
1973,
13332,
468,
2457,
611,
82,
1742,
5202,
3886,
273,
5766,
18,
588,
67,
1612,
2668,
3341,
18,
1600,
1742,
18,
7956,
55,
21851,
2187,
1173,
3341,
19,
1600,
1742,
19,
7956,
55,
21851,
6134,
1327,
296,
3341,
18,
74,
15656,
281,
11869,
18,
7956,
55,
21851,
11,
316,
5766,
18,
1098,
67,
1973,
13332,
468,
2457,
1475,
1639,
471,
10654,
5202,
3886,
273,
5766,
18,
588,
67,
1612,
2668,
2
] |
("links", "I"),) | ("nlink", "I"), ("uid", "I"), ("gid", "I"), ("rdev", "Q"), ("atime", "I"), ("atimens", "I"), ("mtime", "I"), ("mtimens", "I"), ("ctime", "I"), ("ctimens", "I"), ("__pad1", "68x"),) def get_st_times(self): return dict(( ("st_" + a, self[a] + self[a + "ns"] / (10 ** 9)) for a in (b + "time" for b in "amc"))) assert Inode.size == 128, Inode.size | def __repr__(self): return "<{0} {1}>".format(self.__class__.__name__, self.__values) | a2d8f4bc0f5dd94eba8767e5d77b1beb78415227 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4811/a2d8f4bc0f5dd94eba8767e5d77b1beb78415227/clfs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
3532,
95,
20,
97,
288,
21,
97,
2984,
18,
2139,
12,
2890,
16186,
1106,
972,
16186,
529,
972,
16,
365,
16186,
2372,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12715,
972,
12,
2890,
4672,
327,
3532,
95,
20,
97,
288,
21,
97,
2984,
18,
2139,
12,
2890,
16186,
1106,
972,
16186,
529,
972,
16,
365,
16186,
2372,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
players = [P('UTG', 100), P('SS', 6), P('CO', 100), P('BTN', 100)] | players = [P('UTG', 80), P('SS', 100), P('CO', 100), P('BTN', 100)] | def __repr__(self): return self.nickname | c3a7dd039f85f59330adfc1527fe216448cfcc10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14397/c3a7dd039f85f59330adfc1527fe216448cfcc10/rotator2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
365,
18,
17091,
529,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12715,
972,
12,
2890,
4672,
327,
365,
18,
17091,
529,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
def test_it(self): def tr(frame, event, arg): | def trace(self, frame, event, arg): """A trace function that raises an exception in response to a specific trace event.""" if event == self.raiseOnEvent: | def test_it(self): def tr(frame, event, arg): raise ValueError # just something that isn't RuntimeError def f(): return 1 try: for i in xrange(sys.getrecursionlimit() + 1): sys.settrace(tr) try: f() except ValueError: pass else: self.fail("exception not thrown!") except RuntimeError: self.fail("recursion counter not reset") | 2119dc63126f8255cd59541e25ef5a556c25c297 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2119dc63126f8255cd59541e25ef5a556c25c297/test_trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
3536,
37,
2606,
445,
716,
14183,
392,
1520,
316,
766,
358,
279,
2923,
2606,
871,
12123,
309,
871,
422,
365,
18,
11628,
1398,
1133,
30,
1002,
2068,
468,
2537,
5943,
716,
5177,
1404,
7265,
1652,
284,
13332,
327,
404,
775,
30,
364,
277,
316,
12314,
12,
9499,
18,
588,
31347,
3595,
1435,
397,
404,
4672,
2589,
18,
542,
5129,
12,
313,
13,
775,
30,
284,
1435,
1335,
2068,
30,
1342,
469,
30,
365,
18,
6870,
2932,
4064,
486,
6718,
4442,
13,
1335,
7265,
30,
365,
18,
6870,
2932,
31347,
3895,
486,
2715,
7923,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2606,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
3536,
37,
2606,
445,
716,
14183,
392,
1520,
316,
766,
358,
279,
2923,
2606,
871,
12123,
309,
871,
422,
365,
18,
11628,
1398,
1133,
30,
1002,
2068,
468,
2537,
5943,
716,
5177,
1404,
7265,
1652,
284,
13332,
327,
404,
775,
30,
364,
277,
316,
12314,
12,
9499,
18,
588,
31347,
3595,
1435,
397,
404,
4672,
2589,
18,
542,
5129,
12,
313,
13,
775,
30,
284,
1435,
1335,
2068,
30,
1342,
469,
30,
365,
18,
6870,
2932,
4064,
486,
6718,
4442,
13,
1335,
7265,
30,
365,
18,
6870,
2932,
31347,
3895,
486,
2715,
7923,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
/.../chandler... --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --catsPerfLog=test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py --restore=test_profile/__repository__.001 | /.../release/RunPython... Chandler.py --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --catsPerfLog=test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py --restore=test_profile/__repository__.001 | def runPerfTests(options, tests=None): """ Run the Performance Test Suite >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> options.modes = ['debug'] >>> runPerfTests(options) Skipping Performance Tests - release mode not specified False >>> options.modes = ['release'] >>> runPerfTests(options) /.../chandler... --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --catsPerfLog=test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfImportCalendar.py --create PerfImportCalendar.py 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | 0.00 ... 0.00 ... /.../chandler... --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --catsPerfLog=test_profile/time.log --scriptFile=tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py --restore=test_profile/__repository__.001 PerfLargeDataResizeCalendar.py 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | 0.00 ... 0.00 ... Creating repository for startup time tests ... Startup ... ... Creating repository for startup time tests ... Startup_with_large_calendar ... ... Showing performance log in 5 seconds, Ctrl+C to stop tests - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + False """ failed = False savePWD = os.getcwd() try: if 'release' in options.modes: delayedLogger = DelayedLogger() if not options.dryrun: os.chdir(options.chandlerHome) if tests is None: for item in glob.glob(os.path.join(options.profileDir, '__repository__.0*')): if os.path.isdir(item): build_lib.rmdirs(item) else: os.remove(item) testlist = [] testlistLarge = [] if tests is None: testlistStartup = ['startup', 'startup_large'] for item in glob.glob(os.path.join(options.chandlerHome, 'tools', 'QATestScripts', 'Performance', 'Perf*.py')): if 'PerfLargeData' in item: testlistLarge.append(item) else: testlist.append(item) else: testlistStartup = [] for item in tests: if 'PerfLargeData' in item: testlistLarge.append(item) elif item in ('startup', 'startup_large'): testlistStartup.append(item) else: testlist.append(item) repeat = 1 if options.tbox: repeat = 3 elif options.repeat: repeat = options.repeat # small repo tests if testlist: failed = runScriptPerfTests(options, testlist, repeat=repeat, logger=delayedLogger) # large repo tests if testlistLarge and (not failed or options.noStop): if runScriptPerfTests(options, testlistLarge, largeData=True, repeat=repeat, logger=delayedLogger): failed = True # startup tests if testlistStartup and (not failed or options.noStop): if os.name == 'nt' or sys.platform == 'cygwin': t = build_lib.getCommand(['which', 'time.exe']) if not t: log('time.exe not found, skipping startup performance tests') elif sys.platform == 'darwin': t = build_lib.getCommand(['which', 'gtime']) if t.startswith("no gtime"): log('gtime not found, skipping startup performance tests') log('NOTE: gtime is not part of OS X, you need to compile one' + \ 'yourself (get source from http://directory.fsf.org/time.html)' + \ 'or get it from darwinports project.') else: t = '/usr/bin/time' if os.path.isfile(t): if 'startup' in testlistStartup and runStartupPerfTests(options, t, repeat=repeat, logger=delayedLogger): failed = True if not failed: # Don't continue even if noStop, almost certain these won't work if 'startup_large' in testlistStartup and runStartupPerfTests(options, t, largeData=True, repeat=repeat, logger=delayedLogger): failed = True else: log('time command not found, skipping startup performance tests') if not tests: log('Showing performance log in 5 seconds, Ctrl+C to stop tests') if not options.dryrun: try: time.sleep(5) except KeyboardInterrupt: sys.exit(0) log('- + ' * 15) delayedLogger.logAll() else: log('Skipping Performance Tests - release mode not specified') finally: os.chdir(savePWD) return failed | af34e6a7a2160f1862685baa804a3205994c1ff0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/af34e6a7a2160f1862685baa804a3205994c1ff0/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
22016,
14650,
12,
2116,
16,
7434,
33,
7036,
4672,
3536,
1939,
326,
11217,
1359,
7766,
348,
9519,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
4080,
702,
18,
25011,
2681,
225,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
702,
18,
19282,
282,
273,
10228,
4148,
3546,
225,
4080,
1086,
22016,
14650,
12,
2116,
13,
27455,
11217,
1359,
7766,
87,
300,
3992,
1965,
486,
1269,
1083,
225,
4080,
702,
18,
19282,
282,
273,
10228,
9340,
3546,
4080,
1086,
22016,
14650,
12,
2116,
13,
342,
2777,
19,
343,
464,
749,
2777,
1493,
14683,
33,
16341,
1493,
5040,
1621,
33,
3813,
67,
5040,
1493,
1065,
2183,
743,
33,
6642,
19,
24750,
19,
751,
2697,
1493,
24750,
22016,
1343,
33,
3813,
67,
5040,
19,
957,
18,
1330,
1493,
4263,
812,
33,
6642,
19,
53,
789,
395,
15041,
19,
25024,
19,
22016,
5010,
7335,
18,
2074,
1493,
2640,
5722,
74,
5010,
7335,
18,
2074,
11794,
374,
18,
713,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
571,
282,
374,
18,
713,
1372,
282,
374,
18,
713,
1372,
342,
2777,
19,
9340,
19,
1997,
15774,
2777,
1680,
464,
749,
18,
2074,
1493,
14683,
33,
16341,
1493,
5040,
1621,
33,
3813,
67,
5040,
1493,
1065,
2183,
743,
33,
6642,
19,
24750,
19,
751,
2697,
1493,
24750,
22016,
1343,
33,
3813,
67,
5040,
19,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22016,
14650,
12,
2116,
16,
7434,
33,
7036,
4672,
3536,
1939,
326,
11217,
1359,
7766,
348,
9519,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
4080,
702,
18,
25011,
2681,
225,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
702,
18,
19282,
282,
273,
10228,
4148,
3546,
225,
4080,
1086,
22016,
14650,
12,
2116,
13,
27455,
11217,
1359,
7766,
87,
300,
3992,
1965,
486,
1269,
1083,
225,
4080,
702,
18,
19282,
282,
273,
10228,
9340,
3546,
4080,
1086,
22016,
14650,
12,
2116,
13,
342,
2777,
19,
343,
464,
749,
2777,
1493,
14683,
33,
16341,
1493,
5040,
1621,
33,
3813,
67,
5040,
1493,
1065,
2183,
743,
33,
6642,
19,
24750,
19,
751,
2
] |
"%s", 0);""" % (name,name,name,len(vals[0]), vals[3][0], vals[3][1], vals[4], name, vals[5])) mlist.append(r"""PyDict_SetItemString(dictionary, "%s", f);"""%name) | "%s", 0);""" % (name, name, name, len(uf.type_descriptions), uf.nin, uf.nout, uf.identity, name, uf.docstring)) mlist.append(r"""PyDict_SetItemString(dictionary, "%s", f);""" % name) | def make_ufuncs(funcdict): code3list = [] for name, vals in funcdict.items(): mlist = [] mlist.append(\ | 912beccc011bf60d61b61fa24021f6235dba0225 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/912beccc011bf60d61b61fa24021f6235dba0225/generate_umath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
89,
17728,
12,
644,
1576,
4672,
981,
23,
1098,
273,
5378,
364,
508,
16,
5773,
316,
1326,
1576,
18,
3319,
13332,
312,
1098,
273,
5378,
312,
1098,
18,
6923,
4713,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
1098,
273,
5378,
364,
508,
16,
5773,
316,
1326,
1576,
18,
3319,
13332,
312,
1098,
273,
5378,
312,
1098,
18,
6923,
4713,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
display_toc = True, | display_toc = display_toc, | def get_doc_context(self, docname, body, metatags): # no relation links... toc = self.env.get_toctree_for(self.config.master_doc, self, False) self.fix_refuris(toc) toc = self.render_partial(toc)['fragment'] return dict( parents = [], prev = None, next = None, docstitle = None, title = self.config.html_title, meta = None, body = body, metatags = metatags, rellinks = [], sourcename = '', toc = toc, display_toc = True, ) | 8c0c728d1bee97e3c286784db062067175a24269 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/8c0c728d1bee97e3c286784db062067175a24269/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2434,
67,
2472,
12,
2890,
16,
997,
529,
16,
1417,
16,
5100,
270,
1341,
4672,
468,
1158,
2533,
4716,
2777,
17919,
273,
365,
18,
3074,
18,
588,
67,
869,
299,
992,
67,
1884,
12,
2890,
18,
1425,
18,
7525,
67,
2434,
16,
365,
16,
1083,
13,
365,
18,
904,
67,
1734,
23510,
12,
1391,
13,
17919,
273,
365,
18,
5902,
67,
11601,
12,
1391,
13,
3292,
11956,
3546,
327,
2065,
12,
6298,
273,
5378,
16,
2807,
273,
599,
16,
1024,
273,
599,
16,
997,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2434,
67,
2472,
12,
2890,
16,
997,
529,
16,
1417,
16,
5100,
270,
1341,
4672,
468,
1158,
2533,
4716,
2777,
17919,
273,
365,
18,
3074,
18,
588,
67,
869,
299,
992,
67,
1884,
12,
2890,
18,
1425,
18,
7525,
67,
2434,
16,
365,
16,
1083,
13,
365,
18,
904,
67,
1734,
23510,
12,
1391,
13,
17919,
273,
365,
18,
5902,
67,
11601,
12,
1391,
13,
3292,
11956,
3546,
327,
2065,
12,
6298,
273,
5378,
16,
2807,
273,
599,
16,
1024,
273,
599,
16,
997,
334,
1280,
273,
599,
16,
2077,
273,
365,
18,
1425,
18,
2620,
67,
2649,
16,
2191,
273,
599,
16,
1417,
273,
1417,
16,
5100,
270,
1341,
273,
5100,
270,
1341,
16,
1279,
2
] |
def createLocalization(source, dest, apps = ['browser'], exceptions = {}): | def createLocalization(source, dest, apps, exceptions = {}): | def createLocalization(source, dest, apps = ['browser'], exceptions = {}): ''' Creates a new localization. @type source: string @param source: path to the mozilla sources to use @type dest: string @param dest: path to the localization to create or update @type apps: array of strings @param apps: the applications for which to create or update the localization @type exceptions: mapping @param exceptions: stuff to ignore ''' assert os.path.isdir(source), "source directory is not a directory" clientmk = os.path.join(source,'client.mk') assert os.path.isfile(clientmk), "client.mk missing" if not os.path.isdir(dest): os.makedirs(dest) assert os.path.isdir(dest), "target should be a directory" # get the directories to iterate over dirs = set() cmd = ['make', '-f', clientmk] + \ ['echo-variable-LOCALES_' + app for app in apps] p = Popen(cmd, stdout = PIPE) for ln in p.stdout.readlines(): dirs.update(ln.strip().split()) dirs = sorted(list(dirs)) for d in dirs: assert os.path.isdir(os.path.join(source, d)), \ "expecting source directory %s" % d for d in dirs: logging.debug('processing %s' % d) if d in exceptions and exceptions[d] == 'all': continue basepath = os.path.join(source, d, 'locales', 'en-US') ign_mod = {} if d in exceptions: ign_mod = exceptions[d] logging.debug('using exceptions: %s' % str(ign_mod)) l10nbase = os.path.join(dest, d) if not os.path.isdir(l10nbase): os.makedirs(l10nbase) for root, files in walk(basepath): ignore = None if root in ign_mod: if ign_mod[root] == '.': continue ignore = re.compile(ign_mod[root]) l10npath = os.path.join(l10nbase, root) if not os.path.isdir(l10npath): os.mkdir(l10npath) for f in files: if ignore and ignore.search(f): # ignoring some files continue copy2(os.path.join(basepath, root, f), l10npath) | 49a7d6788e9ac5eaf23892dea2ac2731b2f2cf78 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13067/49a7d6788e9ac5eaf23892dea2ac2731b2f2cf78/l10n.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
19157,
12,
3168,
16,
1570,
16,
8279,
16,
4798,
273,
2618,
4672,
9163,
10210,
279,
394,
17981,
18,
225,
632,
723,
225,
1084,
30,
533,
632,
891,
1084,
30,
589,
358,
326,
27513,
5550,
358,
999,
225,
632,
723,
225,
1570,
30,
533,
632,
891,
1570,
30,
589,
358,
326,
17981,
358,
752,
578,
1089,
225,
632,
723,
225,
8279,
30,
526,
434,
2064,
632,
891,
8279,
30,
326,
12165,
364,
1492,
358,
752,
578,
1089,
326,
17981,
225,
632,
723,
225,
4798,
30,
2874,
632,
891,
4798,
30,
10769,
358,
2305,
9163,
225,
1815,
1140,
18,
803,
18,
291,
1214,
12,
3168,
3631,
315,
3168,
1867,
353,
486,
279,
1867,
6,
1004,
24816,
273,
1140,
18,
803,
18,
5701,
12,
3168,
11189,
2625,
18,
24816,
6134,
1815,
1140,
18,
803,
18,
291,
768,
12,
2625,
24816,
3631,
315,
2625,
18,
24816,
3315,
6,
225,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
10488,
4672,
1140,
18,
81,
9477,
10539,
12,
10488,
13,
225,
1815,
1140,
18,
803,
18,
291,
1214,
12,
10488,
3631,
315,
3299,
1410,
506,
279,
1867,
6,
225,
468,
336,
326,
6402,
358,
7401,
1879,
7717,
273,
444,
1435,
1797,
273,
10228,
6540,
2187,
2400,
74,
2187,
1004,
24816,
65,
397,
521,
10228,
12946,
17,
6105,
17,
1502,
3587,
11386,
4623,
397,
595,
364,
595,
316,
8279,
65,
293,
273,
14339,
12,
4172,
16,
3909,
273,
11716,
13,
364,
7211,
316,
293,
18,
10283,
18,
896,
3548,
13332,
7717,
18,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19157,
12,
3168,
16,
1570,
16,
8279,
16,
4798,
273,
2618,
4672,
9163,
10210,
279,
394,
17981,
18,
225,
632,
723,
225,
1084,
30,
533,
632,
891,
1084,
30,
589,
358,
326,
27513,
5550,
358,
999,
225,
632,
723,
225,
1570,
30,
533,
632,
891,
1570,
30,
589,
358,
326,
17981,
358,
752,
578,
1089,
225,
632,
723,
225,
8279,
30,
526,
434,
2064,
632,
891,
8279,
30,
326,
12165,
364,
1492,
358,
752,
578,
1089,
326,
17981,
225,
632,
723,
225,
4798,
30,
2874,
632,
891,
4798,
30,
10769,
358,
2305,
9163,
225,
1815,
1140,
18,
803,
18,
291,
1214,
12,
3168,
3631,
315,
3168,
1867,
353,
486,
279,
1867,
6,
1004,
24816,
273,
1140,
18,
2
] |
pickle.dump(self.store,f) | try: pos=f.tell() pickle.dump(self.store,f) except: S=self.store.copy() ff=getStringIO() for k,v in S.iteritems(): try: pickle.dump({k:v},ff) except: S[k] = '<unpicklable object %r>' % v f.seek(pos,0) pickle.dump(S,f) | def _dump(self,f): import pickle pickle.dump(self.store,f) | a88a3fa0bac6560af6665baa1d58961ea20fa485 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/a88a3fa0bac6560af6665baa1d58961ea20fa485/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8481,
12,
2890,
16,
74,
4672,
1930,
13379,
13379,
18,
8481,
12,
2890,
18,
2233,
16,
74,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8481,
12,
2890,
16,
74,
4672,
1930,
13379,
13379,
18,
8481,
12,
2890,
18,
2233,
16,
74,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return reader | app.readers.append(reader) | def load_buffer_cb(textbuffer): notify_cb() error = None | 7fdef3684029c1d80eda94dcbfdca62b0de12694 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14744/7fdef3684029c1d80eda94dcbfdca62b0de12694/reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
4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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1262,
67,
4106,
67,
7358,
12,
955,
4106,
4672,
5066,
67,
7358,
1435,
555,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
app.add_directive('plot', plot_directive, True, (1, 0, False), | app.add_directive('plot', plot_directive, True, (0, 1, False), | def setup(app): setup.app = app setup.config = app.config setup.confdir = app.confdir app.add_config_value('plot_output_dir', '_static', True) app.add_config_value('plot_pre_code', '', True) app.add_config_value('plot_rcparams', sane_rcparameters, True) app.add_config_value('plot_include_source', False, True) app.add_directive('plot', plot_directive, True, (1, 0, False), **plot_directive_options) | f91aedb05477b881587ce6f465f3172c85d0c55d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/f91aedb05477b881587ce6f465f3172c85d0c55d/plot_directive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2910,
4672,
3875,
18,
2910,
273,
595,
3875,
18,
1425,
273,
595,
18,
1425,
3875,
18,
3923,
1214,
273,
595,
18,
3923,
1214,
225,
595,
18,
1289,
67,
1425,
67,
1132,
2668,
4032,
67,
2844,
67,
1214,
2187,
2070,
3845,
2187,
1053,
13,
595,
18,
1289,
67,
1425,
67,
1132,
2668,
4032,
67,
1484,
67,
710,
2187,
10226,
1053,
13,
595,
18,
1289,
67,
1425,
67,
1132,
2668,
4032,
67,
1310,
2010,
2187,
30426,
67,
1310,
3977,
16,
1053,
13,
595,
18,
1289,
67,
1425,
67,
1132,
2668,
4032,
67,
6702,
67,
3168,
2187,
1083,
16,
1053,
13,
225,
595,
18,
1289,
67,
22347,
2668,
4032,
2187,
3207,
67,
22347,
16,
1053,
16,
261,
20,
16,
404,
16,
1083,
3631,
2826,
4032,
67,
22347,
67,
2116,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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67,
1214,
2187,
2070,
3845,
2187,
1053,
13,
595,
18,
1289,
67,
1425,
67,
1132,
2668,
4032,
67,
1484,
67,
710,
2187,
10226,
1053,
13,
595,
18,
1289,
67,
1425,
67,
1132,
2668,
4032,
67,
1310,
2010,
2187,
30426,
67,
1310,
3977,
16,
1053,
13,
595,
18,
1289,
67,
1425,
67,
1132,
2668,
4032,
67,
6702,
67,
3168,
2187,
1083,
16,
1053,
13,
225,
595,
18,
1289,
67,
22347,
2668,
4032,
2187,
3207,
67,
22347,
16,
1053,
16,
261,
20,
16,
2
] |
text = text[bol+1:] | bol = bol + 1 while bol < len(text) and text[bol] in string.whitespace: bol = bol + 1 text = text[bol:] | def wrap(text, column=70): """Wrap and fill the text to the specified column. Wrapping is always in effect, although if it is not possible to wrap a line (because some word is longer than `column' characters) the line is broken at the next available whitespace boundary. Paragraphs are also always filled, unless the line begins with whitespace. This is the algorithm that the Python FAQ wizard uses, and seems like a good compromise. """ wrapped = '' # first split the text into paragraphs, defined as a blank line paras = re.split('\n\n', text) for para in paras: # fill lines = [] fillprev = 0 for line in string.split(para, '\n'): if not line: lines.append(line) continue if line[0] in string.whitespace: fillthis = 0 else: fillthis = 1 if fillprev and fillthis: # if the previous line should be filled, then just append a # single space, and the rest of the current line lines[-1] = string.rstrip(lines[-1]) + ' ' + line else: # no fill, i.e. retain newline lines.append(line) fillprev = fillthis # wrap each line for text in lines: while text: if len(text) <= column: line = text text = '' else: bol = column # find the last whitespace character while bol > 0 and text[bol] not in string.whitespace: bol = bol - 1 # now find the last non-whitespace character eol = bol while eol > 0 and text[eol] in string.whitespace: eol = eol - 1 # watch out for text that's longer than the column width if eol == 0: # break on whitespace after column eol = column while eol < len(text) and \ text[eol] not in string.whitespace: eol = eol + 1 bol = eol while bol < len(text) and \ text[bol] in string.whitespace: bol = bol + 1 bol = bol - 1 line = text[:eol+1] + '\n' text = text[bol+1:] wrapped = wrapped + line wrapped = wrapped + '\n' wrapped = wrapped + '\n' return wrapped | cd79e27fb5734e98146264bc722a0a91c574aa24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/cd79e27fb5734e98146264bc722a0a91c574aa24/Utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
12,
955,
16,
1057,
33,
7301,
4672,
3536,
2964,
471,
3636,
326,
977,
358,
326,
1269,
1057,
18,
225,
4266,
1382,
353,
3712,
316,
5426,
16,
26347,
309,
518,
353,
486,
3323,
358,
2193,
279,
980,
261,
26274,
2690,
2076,
353,
7144,
2353,
1375,
2827,
11,
3949,
13,
326,
980,
353,
12933,
622,
326,
1024,
2319,
7983,
7679,
18,
225,
24963,
87,
854,
2546,
3712,
6300,
16,
3308,
326,
980,
17874,
598,
7983,
18,
225,
1220,
353,
326,
4886,
716,
326,
6600,
15064,
53,
24204,
4692,
16,
471,
12001,
3007,
279,
7494,
1161,
4108,
18,
225,
3536,
5805,
273,
875,
468,
1122,
1416,
326,
977,
1368,
24552,
16,
2553,
487,
279,
7052,
980,
779,
345,
273,
283,
18,
4939,
2668,
64,
82,
64,
82,
2187,
977,
13,
364,
12602,
316,
779,
345,
30,
468,
3636,
2362,
273,
5378,
3636,
10001,
273,
374,
364,
980,
316,
533,
18,
4939,
12,
25072,
16,
2337,
82,
11,
4672,
309,
486,
980,
30,
2362,
18,
6923,
12,
1369,
13,
1324,
309,
980,
63,
20,
65,
316,
533,
18,
18777,
30,
3636,
2211,
273,
374,
469,
30,
3636,
2211,
273,
404,
309,
3636,
10001,
471,
3636,
2211,
30,
468,
309,
326,
2416,
980,
1410,
506,
6300,
16,
1508,
2537,
714,
279,
468,
2202,
3476,
16,
471,
326,
3127,
434,
326,
783,
980,
2362,
18919,
21,
65,
273,
533,
18,
86,
6406,
12,
3548,
18919,
21,
5717,
397,
296,
296,
397,
980,
469,
30,
468,
1158,
3636,
16,
277,
18,
73,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2193,
12,
955,
16,
1057,
33,
7301,
4672,
3536,
2964,
471,
3636,
326,
977,
358,
326,
1269,
1057,
18,
225,
4266,
1382,
353,
3712,
316,
5426,
16,
26347,
309,
518,
353,
486,
3323,
358,
2193,
279,
980,
261,
26274,
2690,
2076,
353,
7144,
2353,
1375,
2827,
11,
3949,
13,
326,
980,
353,
12933,
622,
326,
1024,
2319,
7983,
7679,
18,
225,
24963,
87,
854,
2546,
3712,
6300,
16,
3308,
326,
980,
17874,
598,
7983,
18,
225,
1220,
353,
326,
4886,
716,
326,
6600,
15064,
53,
24204,
4692,
16,
471,
12001,
3007,
279,
7494,
1161,
4108,
18,
225,
3536,
5805,
273,
875,
468,
1122,
1416,
326,
977,
1368,
24552,
16,
2553,
487,
279,
7052,
980,
779,
345,
273,
283,
2
] |
def SetMemberName(id, member_offset, name): | def SetMemberName(sid, member_offset, name): | def SetMemberName(id, member_offset, name): """ Change structure member name @param id: structure type ID @param member_offset: offset of the member @param name: new name of the member @return: != 0 - ok. """ s = idaapi.get_struc(id) if not s: return 0 return idaapi.set_member_name(s, member_offset, name) | 76aa24fecdace41c9fc827e500b95cfdf5053272 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4773/76aa24fecdace41c9fc827e500b95cfdf5053272/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
4419,
461,
12,
7453,
16,
3140,
67,
3348,
16,
508,
4672,
3536,
7576,
3695,
3140,
508,
225,
632,
891,
612,
30,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
1384,
434,
326,
3140,
632,
891,
508,
30,
394,
508,
434,
326,
3140,
225,
632,
2463,
30,
480,
374,
300,
1529,
18,
3536,
272,
273,
612,
69,
2425,
18,
588,
67,
701,
5286,
12,
350,
13,
309,
486,
272,
30,
327,
374,
225,
327,
612,
69,
2425,
18,
542,
67,
5990,
67,
529,
12,
87,
16,
3140,
67,
3348,
16,
508,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
1384,
434,
326,
3140,
632,
891,
508,
30,
394,
508,
434,
326,
3140,
225,
632,
2463,
30,
480,
374,
300,
1529,
18,
3536,
272,
273,
612,
69,
2425,
18,
588,
67,
701,
5286,
12,
350,
13,
309,
486,
272,
30,
327,
374,
225,
327,
612,
69,
2425,
18,
542,
67,
5990,
67,
529,
12,
87,
16,
3140,
67,
3348,
16,
508,
13,
282,
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
] |
funcls = functions[opts.function] funcargs = prefix_args(FUNCPREFIX, opts) funcargs['dims'] = opts.dims function = funcls(**funcargs) | function = opts.function function.setup(opts.dims) | def setup(opts): """Mrs Setup (run on both master and slave)""" from motion.basic import Basic from simulation import functions from cli import prefix_args global function, motion, comparator funcls = functions[opts.function] funcargs = prefix_args(FUNCPREFIX, opts) funcargs['dims'] = opts.dims function = funcls(**funcargs) #TODO: comparator = opts.soc_maximize and operator.gt or operator.lt comparator = operator.lt motion = Basic(comparator, function.constraints) | e7a386d9fa3677dd7fe4b386e48989bee0f431d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/966/e7a386d9fa3677dd7fe4b386e48989bee0f431d5/mrspso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
4952,
4672,
3536,
49,
5453,
10939,
261,
2681,
603,
3937,
4171,
471,
11735,
15574,
628,
21188,
18,
13240,
1930,
7651,
628,
14754,
1930,
4186,
628,
4942,
1930,
1633,
67,
1968,
225,
2552,
445,
16,
21188,
16,
8862,
225,
445,
273,
1500,
18,
915,
445,
18,
8401,
12,
4952,
18,
8550,
13,
225,
468,
6241,
30,
8862,
273,
1500,
18,
87,
504,
67,
1896,
10153,
471,
3726,
18,
4521,
578,
3726,
18,
5618,
8862,
273,
3726,
18,
5618,
21188,
273,
7651,
12,
832,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3875,
12,
4952,
4672,
3536,
49,
5453,
10939,
261,
2681,
603,
3937,
4171,
471,
11735,
15574,
628,
21188,
18,
13240,
1930,
7651,
628,
14754,
1930,
4186,
628,
4942,
1930,
1633,
67,
1968,
225,
2552,
445,
16,
21188,
16,
8862,
225,
445,
273,
1500,
18,
915,
445,
18,
8401,
12,
4952,
18,
8550,
13,
225,
468,
6241,
30,
8862,
273,
1500,
18,
87,
504,
67,
1896,
10153,
471,
3726,
18,
4521,
578,
3726,
18,
5618,
8862,
273,
3726,
18,
5618,
21188,
273,
7651,
12,
832,
2528,
16,
445,
18,
11967,
13,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'network', 'VM', | def VBD_metrics_get_last_updated(self, _1, _2): return xen_api_success(now()) | 65fb4d66adcb6a0b0e906a04f51a06d09c04a2ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/65fb4d66adcb6a0b0e906a04f51a06d09c04a2ad/XendAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
776,
18096,
67,
9597,
67,
588,
67,
2722,
67,
7007,
12,
2890,
16,
389,
21,
16,
389,
22,
4672,
327,
23048,
67,
2425,
67,
4768,
12,
3338,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
776,
18096,
67,
9597,
67,
588,
67,
2722,
67,
7007,
12,
2890,
16,
389,
21,
16,
389,
22,
4672,
327,
23048,
67,
2425,
67,
4768,
12,
3338,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
elif execve_match: cwds.append(cwd) match = execve_match | def _do_strace(self, args, outfile, outname): """ Run strace on given command args, sending output to file. Return (status code, list of dependencies, list of outputs). """ shell('strace', '-fo', outname, '-e', 'trace=open,stat64,execve,exit_group,chdir,mkdir,rename', args, silent=False) | 62c48ce0b420b1fe48378d0f1ec717ee941781df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7381/62c48ce0b420b1fe48378d0f1ec717ee941781df/fabricate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
701,
623,
12,
2890,
16,
833,
16,
8756,
16,
596,
529,
4672,
3536,
1939,
609,
623,
603,
864,
1296,
833,
16,
5431,
876,
358,
585,
18,
2000,
261,
2327,
981,
16,
666,
434,
5030,
16,
666,
434,
6729,
2934,
3536,
5972,
2668,
701,
623,
2187,
2400,
617,
2187,
596,
529,
16,
2400,
73,
2187,
296,
5129,
33,
3190,
16,
5642,
1105,
16,
4177,
537,
16,
8593,
67,
1655,
16,
343,
1214,
16,
26686,
16,
18539,
2187,
833,
16,
10404,
33,
8381,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2896,
67,
701,
623,
12,
2890,
16,
833,
16,
8756,
16,
596,
529,
4672,
3536,
1939,
609,
623,
603,
864,
1296,
833,
16,
5431,
876,
358,
585,
18,
2000,
261,
2327,
981,
16,
666,
434,
5030,
16,
666,
434,
6729,
2934,
3536,
5972,
2668,
701,
623,
2187,
2400,
617,
2187,
596,
529,
16,
2400,
73,
2187,
296,
5129,
33,
3190,
16,
5642,
1105,
16,
4177,
537,
16,
8593,
67,
1655,
16,
343,
1214,
16,
26686,
16,
18539,
2187,
833,
16,
10404,
33,
8381,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
y_margin = [ 2, 1 ] | y_margin = [ 1, 1 ] | def amin(a): m=sys.maxint for i in a: if not i == None and i < m: m=i return m | 7169412c674120ad9bc19e0ae2900b06f0d5006d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3323/7169412c674120ad9bc19e0ae2900b06f0d5006d/chart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
279,
1154,
12,
69,
4672,
312,
33,
9499,
18,
1896,
474,
364,
277,
316,
279,
30,
309,
486,
277,
422,
599,
471,
277,
411,
312,
30,
312,
33,
77,
327,
312,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
279,
1154,
12,
69,
4672,
312,
33,
9499,
18,
1896,
474,
364,
277,
316,
279,
30,
309,
486,
277,
422,
599,
471,
277,
411,
312,
30,
312,
33,
77,
327,
312,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
createDir(basedir) | try: createDir(basedir) except: if not os.path.exists(basedir): raise | def Download(basedir, url): cmps = url.rsplit("/", 1) href = cmps[1] filename = ''.join([basedir, "/", href]) print 'Downloading ' + href + '...' createDir(basedir) proxies = None # if None, use proxy from env var http_proxy if not options.httpProxy == "": proxies = {'http': options.httpProxy} opener = urllib.FancyURLopener(proxies=proxies) opener.retrieve(url, filename) | 2ad906783b8f473844958f09bc393447e024ccf2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1130/2ad906783b8f473844958f09bc393447e024ccf2/download-cmake.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13059,
12,
31722,
16,
880,
4672,
5003,
1121,
273,
880,
18,
86,
4939,
2932,
19,
3113,
404,
13,
3897,
273,
5003,
1121,
63,
21,
65,
1544,
273,
875,
18,
5701,
3816,
31722,
16,
2206,
3113,
3897,
5717,
225,
1172,
296,
27217,
296,
397,
3897,
397,
20243,
225,
775,
30,
752,
1621,
12,
31722,
13,
1335,
30,
309,
486,
1140,
18,
803,
18,
1808,
12,
31722,
4672,
1002,
225,
13263,
273,
599,
468,
309,
599,
16,
999,
2889,
628,
1550,
569,
1062,
67,
5656,
309,
486,
702,
18,
2505,
3886,
422,
1408,
30,
13263,
273,
13666,
2505,
4278,
702,
18,
2505,
3886,
97,
225,
20532,
273,
11527,
18,
42,
12514,
1785,
25098,
12,
20314,
606,
33,
20314,
606,
13,
20532,
18,
17466,
12,
718,
16,
1544,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13059,
12,
31722,
16,
880,
4672,
5003,
1121,
273,
880,
18,
86,
4939,
2932,
19,
3113,
404,
13,
3897,
273,
5003,
1121,
63,
21,
65,
1544,
273,
875,
18,
5701,
3816,
31722,
16,
2206,
3113,
3897,
5717,
225,
1172,
296,
27217,
296,
397,
3897,
397,
20243,
225,
775,
30,
752,
1621,
12,
31722,
13,
1335,
30,
309,
486,
1140,
18,
803,
18,
1808,
12,
31722,
4672,
1002,
225,
13263,
273,
599,
468,
309,
599,
16,
999,
2889,
628,
1550,
569,
1062,
67,
5656,
309,
486,
702,
18,
2505,
3886,
422,
1408,
30,
13263,
273,
13666,
2505,
4278,
702,
18,
2505,
3886,
97,
225,
20532,
273,
11527,
18,
42,
12514,
1785,
25098,
12,
20314,
606,
33,
20314,
606,
13,
2
] |
idaapi.set_fixup(ea, fd) | idaapi.set_fixup(ea, fd) | def SetFixup(ea, fixuptype, targetsel, targetoff, displ): """ Set fixup information @param ea: address to set fixup information about @param fixuptype: fixup type. see GetFixupTgtType() for possible fixup types. @param targetsel: target selector @param targetoff: target offset @param displ: displacement @return: none """ fd = idaapi.fixup_data_t() fd.type = fixuptype fd.sel = targetsel fd.off = targetoff fd.displacement = displ idaapi.set_fixup(ea, fd) | f6eb09ba783822659c8520f1385c89f40cdd4a71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6984/f6eb09ba783822659c8520f1385c89f40cdd4a71/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
8585,
416,
12,
24852,
16,
2917,
3648,
388,
16,
1018,
1786,
16,
1018,
3674,
16,
1015,
412,
4672,
3536,
1000,
2917,
416,
1779,
225,
632,
891,
24164,
30,
1758,
358,
444,
2917,
416,
1779,
2973,
632,
891,
2917,
3648,
388,
30,
2917,
416,
618,
18,
2621,
968,
8585,
416,
56,
4521,
559,
1435,
364,
3323,
2917,
416,
1953,
18,
632,
891,
1018,
1786,
30,
1018,
3451,
632,
891,
1018,
3674,
30,
1018,
1384,
632,
891,
1015,
412,
30,
1015,
15917,
225,
632,
2463,
30,
3639,
6555,
3536,
5194,
273,
612,
69,
2425,
18,
904,
416,
67,
892,
67,
88,
1435,
5194,
18,
723,
273,
2917,
3648,
388,
5194,
18,
1786,
225,
273,
1018,
1786,
5194,
18,
3674,
225,
273,
1018,
3674,
5194,
18,
2251,
15917,
273,
1015,
412,
225,
612,
69,
2425,
18,
542,
67,
904,
416,
12,
24852,
16,
5194,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1000,
8585,
416,
12,
24852,
16,
2917,
3648,
388,
16,
1018,
1786,
16,
1018,
3674,
16,
1015,
412,
4672,
3536,
1000,
2917,
416,
1779,
225,
632,
891,
24164,
30,
1758,
358,
444,
2917,
416,
1779,
2973,
632,
891,
2917,
3648,
388,
30,
2917,
416,
618,
18,
2621,
968,
8585,
416,
56,
4521,
559,
1435,
364,
3323,
2917,
416,
1953,
18,
632,
891,
1018,
1786,
30,
1018,
3451,
632,
891,
1018,
3674,
30,
1018,
1384,
632,
891,
1015,
412,
30,
1015,
15917,
225,
632,
2463,
30,
3639,
6555,
3536,
5194,
273,
612,
69,
2425,
18,
904,
416,
67,
892,
67,
88,
1435,
5194,
18,
723,
273,
2917,
3648,
388,
5194,
18,
1786,
225,
273,
1018,
1786,
5194,
18,
3674,
2
] |
def basic_doc_literal(): | def rhqTest(): | def basic_doc_literal(): global errors try: url = 'http://localhost:7080/rhq-rhq-enterprise-server-ejb3/WebServiceTestBean?wsdl' start(url) client = Client(url, transport=mytransport) print client # # create name # name = client.factory.create('name') name.first = u'Jeff'+unichr(1234) name.last = 'Ortel &lt; Company' # # create a phone object using the wsdl # phoneA = client.factory.create('phone') phoneA.npa = 410 phoneA.nxx = 555 phoneA.number = 5138 phoneB = client.factory.create('phone') phoneB.npa = 919 phoneB.nxx = 555 phoneB.number = 4406 # # create a person object using the wsdl # person = client.factory.create('person') print person person.name = name person.age = 43 person.phone.append(phoneA) person.phone.append(phoneB) print person # # addPerson() # print 'addPersion()' result = client.service.addPerson(person) sent = client.last_sent() rcvd = client.last_received() print '\nreply(\n%s\n)\n' % result # # create a new name object used to update the person # newname = client.factory.create('name') newname.first = 'Todd' newname.last = None # # update the person's name (using the webservice) # print 'updatePersion()' result = client.service.updatePerson(person, newname) print '\nreply(\n%s\n)\n' % str(result) result = client.service.updatePerson(person, None) print '\nreply(\n%s\n)\n' % str(result) except WebFault, f: errors += 1 print f print f.fault except Exception, e: errors += 1 print e tb.print_exc() try: print "echo('this is cool')" result = client.service.echo('this is cool') print '\nreply( %s )\n' % str(result) print 'echo(None)' result = client.service.echo(None) print '\nreply( %s )\n' % str(result) except WebFault, f: errors += 1 print f print f.fault except Exception, e: errors += 1 print e tb.print_exc() try: print 'hello()' result = client.service.hello() print '\nreply( %s )\n' % str(result) except WebFault, f: errors += 1 print f print f.fault except Exception, e: errors += 1 print e tb.print_exc() try: print 'testVoid()' result = client.service.testVoid() print '\nreply( %s )\n' % str(result) except WebFault, f: errors += 1 print f print f.fault except Exception, e: errors += 1 print e tb.print_exc() try: mylist = ['my', 'dog', 'likes', 'steak'] print 'testListArgs(%s)' % mylist result = client.service.testListArg(mylist) print '\nreply( %s )\n' % str(result) except WebFault, f: errors += 1 print f print f.fault except Exception, e: errors += 1 print e tb.print_exc() try: s = 'hello' for n in range(0, 3): print 'getList(%s, %d)' % (s, n) result = client.service.getList(s, n) print '\nreply( %s )\n' % str(result) if len(result) != n: errors += 1 print 'expected (%d), reply (%d)' % (n, len(result)) except WebFault, f: errors += 1 print f print f.fault except Exception, e: errors += 1 print e tb.print_exc() try: print 'testExceptions()' result = client.service.testExceptions() print '\nreply( %s )\n' % tostr(result) raise Exception('Fault expected and not raised') except WebFault, f: print f print f.fault print f.document except Exception, e: errors += 1 print e tb.print_exc() # # test faults # try: url = 'http://localhost:7080/rhq-rhq-enterprise-server-ejb3/WebServiceTestBean?wsdl' start(url) client = Client(url, faults=False) print 'testExceptions() faults=No' result = client.service.testExceptions() sent = client.last_sent() rcvd = client.last_received() print '\nreply( %s )\n' % str(result) except WebFault, f: errors += 1 print f print f.fault except Exception, e: errors += 1 print e tb.print_exc() | 4c882c9a2debbaa4aa8d6233c3b5a8a4d699d429 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5930/4c882c9a2debbaa4aa8d6233c3b5a8a4d699d429/rhq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1652,
6259,
85,
4709,
13332,
225,
2552,
1334,
225,
775,
30,
880,
273,
296,
2505,
2207,
13014,
30,
7301,
3672,
19,
30138,
85,
17,
30138,
85,
17,
2328,
12113,
17,
3567,
17,
73,
10649,
23,
19,
31946,
4709,
3381,
35,
4749,
5761,
11,
787,
12,
718,
13,
1004,
273,
2445,
12,
718,
16,
4736,
33,
4811,
13049,
13,
1172,
1004,
468,
468,
752,
508,
468,
508,
273,
1004,
18,
6848,
18,
2640,
2668,
529,
6134,
508,
18,
3645,
273,
582,
11,
46,
17098,
11,
15,
318,
1354,
86,
12,
28462,
13,
508,
18,
2722,
273,
296,
1162,
19261,
473,
931,
31,
5618,
31,
26782,
11,
468,
468,
752,
279,
7353,
733,
1450,
326,
17642,
468,
7353,
37,
273,
1004,
18,
6848,
18,
2640,
2668,
10540,
6134,
7353,
37,
18,
6782,
69,
273,
1059,
2163,
7353,
37,
18,
82,
5279,
273,
1381,
2539,
7353,
37,
18,
2696,
273,
1381,
26645,
7353,
38,
273,
1004,
18,
6848,
18,
2640,
2668,
10540,
6134,
7353,
38,
18,
6782,
69,
273,
2468,
3657,
7353,
38,
18,
82,
5279,
273,
1381,
2539,
7353,
38,
18,
2696,
273,
1059,
7132,
26,
468,
468,
752,
279,
6175,
733,
1450,
326,
17642,
468,
6175,
273,
1004,
18,
6848,
18,
2640,
2668,
12479,
6134,
1172,
6175,
6175,
18,
529,
273,
508,
6175,
18,
410,
273,
21193,
6175,
18,
10540,
18,
6923,
12,
10540,
37,
13,
6175,
18,
10540,
18,
6923,
12,
10540,
38,
13,
1172,
6175,
468,
468,
527,
8346,
1435,
468,
1172,
296,
1289,
52,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
1652,
6259,
85,
4709,
13332,
225,
2552,
1334,
225,
775,
30,
880,
273,
296,
2505,
2207,
13014,
30,
7301,
3672,
19,
30138,
85,
17,
30138,
85,
17,
2328,
12113,
17,
3567,
17,
73,
10649,
23,
19,
31946,
4709,
3381,
35,
4749,
5761,
11,
787,
12,
718,
13,
1004,
273,
2445,
12,
718,
16,
4736,
33,
4811,
13049,
13,
1172,
1004,
468,
468,
752,
508,
468,
508,
273,
1004,
18,
6848,
18,
2640,
2668,
529,
6134,
508,
18,
3645,
273,
582,
11,
46,
17098,
11,
15,
318,
1354,
86,
12,
28462,
13,
508,
18,
2722,
273,
296,
1162,
19261,
473,
931,
31,
5618,
31,
26782,
11,
468,
468,
752,
279,
7353,
733,
1450,
326,
17642,
468,
7353,
37,
273,
2
] |
def assert_completion_not_in_result(self, name, kind, result): | def assert_completion_not_in_result(self, name, scope, result): | def assert_completion_not_in_result(self, name, kind, result): for proposal in result: if proposal.name == name and proposal.kind == kind: self.fail('completion <%s> was proposed' % name) | 6d539fe256ff5d47931d765fcb7729894783cbf0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8286/6d539fe256ff5d47931d765fcb7729894783cbf0/codeassisttest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
11469,
67,
902,
67,
267,
67,
2088,
12,
2890,
16,
508,
16,
2146,
16,
563,
4672,
364,
14708,
316,
563,
30,
309,
14708,
18,
529,
422,
508,
471,
14708,
18,
9224,
422,
3846,
30,
365,
18,
6870,
2668,
11469,
23930,
87,
34,
1703,
20084,
11,
738,
508,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
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,
1815,
67,
11469,
67,
902,
67,
267,
67,
2088,
12,
2890,
16,
508,
16,
2146,
16,
563,
4672,
364,
14708,
316,
563,
30,
309,
14708,
18,
529,
422,
508,
471,
14708,
18,
9224,
422,
3846,
30,
365,
18,
6870,
2668,
11469,
23930,
87,
34,
1703,
20084,
11,
738,
508,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pdb_path = "%s.pdb" % (basename) | pdb_file = "%s.pdb" % (basename) | def write_tls_pdb_file(self, chain, cpartition): """Write out a PDB file with the TLS predicted anisotropic ADPs for this segmentation. """ basename = "%s_CHAIN%s_NTLS%d_UTLS" % (self.struct_id, chain.chain_id, cpartition.num_tls_segments()) pdb_path = "%s.pdb" % (basename) | 81092918682cb3b404793cc6abd4020f9621498a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10674/81092918682cb3b404793cc6abd4020f9621498a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
17116,
67,
17414,
67,
768,
12,
2890,
16,
2687,
16,
276,
10534,
4672,
3536,
3067,
596,
279,
21601,
585,
598,
326,
8098,
15071,
392,
17693,
1764,
335,
432,
8640,
87,
364,
333,
25192,
18,
3536,
4882,
273,
2213,
87,
67,
1792,
6964,
9,
87,
67,
1784,
3045,
9,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
17116,
67,
17414,
67,
768,
12,
2890,
16,
2687,
16,
276,
10534,
4672,
3536,
3067,
596,
279,
21601,
585,
598,
326,
8098,
15071,
392,
17693,
1764,
335,
432,
8640,
87,
364,
333,
25192,
18,
3536,
4882,
273,
2213,
87,
67,
1792,
6964,
9,
87,
67,
1784,
3045,
9,
72,
67,
1693,
3045,
6,
225,
738,
261,
2890,
18,
1697,
67,
350,
16,
2687,
18,
5639,
67,
350,
16,
276,
10534,
18,
2107,
67,
17116,
67,
12838,
10756,
10892,
67,
803,
273,
2213,
87,
18,
17414,
6,
738,
261,
13909,
13,
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
] |
if currency: | if currency and user2.company: | def get_sale_price(self, cursor, user, ids, quantity=0, context=None): ''' Return the sale price for product ids. | e99b34ab0670dbe546e0b34224974812ab78b8f3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9306/e99b34ab0670dbe546e0b34224974812ab78b8f3/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
87,
5349,
67,
8694,
12,
2890,
16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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
87,
5349,
67,
8694,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
10457,
33,
20,
16,
819,
33,
7036,
4672,
9163,
2000,
326,
272,
5349,
6205,
364,
3017,
3258,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.env = EnvironmentStub(default_data=True) from trac.core import ComponentMeta self.old_registry = ComponentMeta._registry ComponentMeta._registry = {} | self.env = EnvironmentStub(default_data=False, enable=['%s.%s' % (self.__module__, c) for c in ['Converter0', 'Converter1', 'Converter2']]) | def setUp(self): self.env = EnvironmentStub(default_data=True) | a39bc057b60f8f385008daaf573f26ee4c1ea796 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/a39bc057b60f8f385008daaf573f26ee4c1ea796/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
3074,
273,
7518,
11974,
12,
1886,
67,
892,
33,
5510,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24292,
12,
2890,
4672,
365,
18,
3074,
273,
7518,
11974,
12,
1886,
67,
892,
33,
5510,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if check_addr_prefixlen: if IP('%s/%s' % (ip, 32-netbits)).broadcast().int() != last: raise ValueError, \ "the range %s is not on a network boundary." % data | if IP('%s/%s' % (ip, 32-netbits)).broadcast().int() != last: raise ValueError, \ "the range %s is not on a network boundary." % data | def __init__(self, data, ipversion = 0, make_net = 0): """Create an instance of an IP object. | 190a5ca170362c7b09eea5d60eb2716fd85d501c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14367/190a5ca170362c7b09eea5d60eb2716fd85d501c/IPy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
16,
2359,
1589,
273,
374,
16,
1221,
67,
2758,
273,
374,
4672,
3536,
1684,
392,
791,
434,
392,
2971,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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001,
2738,
972,
12,
2890,
16,
501,
16,
2359,
1589,
273,
374,
16,
1221,
67,
2758,
273,
374,
4672,
3536,
1684,
392,
791,
434,
392,
2971,
733,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.targets[tag['name']] = target elif tag.has_key('href') and not self.link_exclude.match(tag['href']): purl = urlparse(tag['href']) path = unquote(purl[2]) if path and os.access(path, os.R_OK) and os.path.splitext(path)[1][1:].lower() in \ ['png', 'jpg', 'bmp', 'jpeg']: self.process_image(path, tag_css) else: text = self.get_text(tag, limit=1000) if not text.strip(): text = "Link" self.add_text(text, tag_css) self.links.append(HTMLConverter.Link(self.current_para.contents[-1], tag)) | self.targets[tag[key]] = target | def parse_tag(self, tag, parent_css): try: tagname = tag.name.lower() except AttributeError: if not isinstance(tag, HTMLConverter.IGNORED_TAGS): self.add_text(tag, parent_css) return tag_css = self.tag_css(tag, parent_css=parent_css) try: # Skip element if its display attribute is set to none if tag_css['display'].lower() == 'none' or \ tag_css['visibility'].lower() == 'hidden': return except KeyError: pass if 'page-break-before' in tag_css.keys(): if tag_css['page-break-before'].lower() != 'avoid': self.end_page() tag_css.pop('page-break-before') end_page = False if 'page-break-after' in tag_css.keys() and \ tag_css['page-break-after'].lower() != 'avoid': end_page = True tag_css.pop('page-break-after') if self.force_page_break.match(tagname): self.end_page() self.page_break_found = True if not self.page_break_found and self.page_break.match(tagname): if len(self.current_page.contents) > 3: self.end_page() if self.verbose: print 'Forcing page break at', tagname if tagname in ["title", "script", "meta", 'del', 'frameset']: pass elif tagname == 'a' and self.max_link_levels >= 0: if tag.has_key('name'): if self.anchor_to_previous: self.process_children(tag, tag_css) for c in self.anchor_to_previous.contents: if isinstance(c, (TextBlock, ImageBlock)): self.targets[tag['name']] = c return tb = self.book.create_text_block() tb.Paragraph(" ") self.anchor_to_previous.append(tb) self.targets[tag['name']] = tb return previous = self.current_block self.process_children(tag, tag_css) target = None if self.current_block == previous: self.current_para.append_to(self.current_block) self.current_para = Paragraph() if self.current_block.has_text(): target = self.current_block else: target = BlockSpace() self.current_page.append(target) else: found = False for item in self.current_page.contents: if item == previous: found = True continue if found: target = item break if target and not isinstance(target, (TextBlock, ImageBlock)): if isinstance(target, RuledLine): target = self.book.create_text_block(textStyle=self.current_block.textStyle, blockStyle=self.current_block.blockStyle) target.Paragraph(' ') self.current_page.append(target) else: target = BlockSpace() self.current_page.append(target) if target == None: if self.current_block.has_text(): target = self.current_block else: target = BlockSpace() self.current_page.append(target) self.targets[tag['name']] = target elif tag.has_key('href') and not self.link_exclude.match(tag['href']): purl = urlparse(tag['href']) path = unquote(purl[2]) if path and os.access(path, os.R_OK) and os.path.splitext(path)[1][1:].lower() in \ ['png', 'jpg', 'bmp', 'jpeg']: self.process_image(path, tag_css) else: text = self.get_text(tag, limit=1000) if not text.strip(): text = "Link" self.add_text(text, tag_css) self.links.append(HTMLConverter.Link(self.current_para.contents[-1], tag)) elif tagname == 'img': if tag.has_key('src') and os.access(unquote(tag['src']), os.R_OK): path = os.path.abspath(unquote(tag['src'])) width, height = None, None try: width = int(tag['width']) height = int(tag['height']) except: pass dropcaps = tag.has_key('class') and tag['class'] == 'libprs500_dropcaps' self.process_image(path, tag_css, width, height, dropcaps=dropcaps) else: if self.verbose: print >>sys.stderr, "Failed to process:", tag elif tagname in ['style', 'link']: def update_css(ncss): for key in ncss.keys(): if self.css.has_key(key): self.css[key].update(ncss[key]) else: self.css[key] = ncss[key] ncss = {} if tagname == 'style': for c in tag.contents: if isinstance(c, NavigableString): ncss.update(self.parse_css(str(c))) elif tag.has_key('type') and tag['type'] == "text/css" \ and tag.has_key('href'): purl = urlparse(tag['href']) path = unquote(purl[2]) try: f = open(path, 'rb') src = f.read() f.close() match = self.PAGE_BREAK_PAT.search(src) if match and not re.match('avoid', match.group(1), re.IGNORECASE): self.page_break_found = True ncss = self.parse_css(src) except IOError: pass if ncss: update_css(ncss) elif tagname == 'pre': for c in tag.findAll(True): c.replaceWith(self.get_text(c)) self.end_current_para() self.current_block.append_to(self.current_page) attrs = Span.translate_attrs(tag_css, self.profile.dpi, self.fonts, self.font_delta, self.memory) attrs['fontfacename'] = self.fonts['mono']['normal'][1] ts = self.book.create_text_style(**self.unindented_style.attrs) ts.attrs.update(attrs) self.current_block = self.book.create_text_block( blockStyle=self.current_block.blockStyle, textStyle=ts) src = ''.join([str(i) for i in tag.contents]) lines = src.split('\n') for line in lines: try: self.current_para.append(line) self.current_para.CR() except ConversionError: pass self.end_current_block() self.current_block = self.book.create_text_block() elif tagname in ['ul', 'ol', 'dl']: self.list_level += 1 if tagname == 'ol': old_counter = self.list_counter self.list_counter = 1 prev_bs = self.current_block.blockStyle self.end_current_block() attrs = self.current_block.blockStyle.attrs attrs = attrs.copy() attrs['sidemargin'] = self.list_indent*self.list_level bs = self.book.create_block_style(**attrs) self.current_block = self.book.create_text_block( blockStyle=bs, textStyle=self.unindented_style) self.process_children(tag, tag_css) self.end_current_block() self.current_block.blockStyle = prev_bs self.list_level -= 1 if tagname == 'ol': self.list_counter = old_counter elif tagname in ['li', 'dt', 'dd']: margin = self.list_indent*self.list_level if tagname == 'dd': margin += 80 if int(self.current_block.blockStyle.attrs['sidemargin']) != margin: self.end_current_block() attrs = self.current_block.blockStyle.attrs attrs = attrs.copy() attrs['sidemargin'] = margin attrs['blockwidth'] = int(attrs['blockwidth']) + margin bs = self.book.create_block_style(**attrs) self.current_block = self.book.create_text_block( blockStyle=bs, textStyle=self.unindented_style) | b6075d3dd6c27ae601bd9acb1970998212e8ed19 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/b6075d3dd6c27ae601bd9acb1970998212e8ed19/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2692,
12,
2890,
16,
1047,
16,
982,
67,
5212,
4672,
775,
30,
25586,
273,
1047,
18,
529,
18,
8167,
1435,
1335,
6394,
30,
309,
486,
1549,
12,
2692,
16,
3982,
5072,
18,
3047,
3417,
5879,
67,
29915,
4672,
365,
18,
1289,
67,
955,
12,
2692,
16,
982,
67,
5212,
13,
327,
1047,
67,
5212,
273,
365,
18,
2692,
67,
5212,
12,
2692,
16,
982,
67,
5212,
33,
2938,
67,
5212,
13,
775,
30,
468,
6611,
930,
309,
2097,
2562,
1566,
353,
444,
358,
6555,
309,
1047,
67,
5212,
3292,
5417,
29489,
8167,
1435,
422,
296,
6102,
11,
578,
521,
1047,
67,
5212,
3292,
14422,
29489,
8167,
1435,
422,
296,
6345,
4278,
327,
1335,
4999,
30,
1342,
309,
296,
2433,
17,
8820,
17,
5771,
11,
316,
1047,
67,
5212,
18,
2452,
13332,
309,
1047,
67,
5212,
3292,
2433,
17,
8820,
17,
5771,
29489,
8167,
1435,
480,
296,
842,
839,
4278,
365,
18,
409,
67,
2433,
1435,
1047,
67,
5212,
18,
5120,
2668,
2433,
17,
8820,
17,
5771,
6134,
679,
67,
2433,
273,
1083,
309,
296,
2433,
17,
8820,
17,
5205,
11,
316,
1047,
67,
5212,
18,
2452,
1435,
471,
521,
1047,
67,
5212,
3292,
2433,
17,
8820,
17,
5205,
29489,
8167,
1435,
480,
296,
842,
839,
4278,
679,
67,
2433,
273,
1053,
1047,
67,
5212,
18,
5120,
2668,
2433,
17,
8820,
17,
5205,
6134,
309,
365,
18,
5734,
67,
2433,
67,
8820,
18,
1916,
12,
2692,
529,
4672,
365,
18,
409,
67,
2433,
1435,
365,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2692,
12,
2890,
16,
1047,
16,
982,
67,
5212,
4672,
775,
30,
25586,
273,
1047,
18,
529,
18,
8167,
1435,
1335,
6394,
30,
309,
486,
1549,
12,
2692,
16,
3982,
5072,
18,
3047,
3417,
5879,
67,
29915,
4672,
365,
18,
1289,
67,
955,
12,
2692,
16,
982,
67,
5212,
13,
327,
1047,
67,
5212,
273,
365,
18,
2692,
67,
5212,
12,
2692,
16,
982,
67,
5212,
33,
2938,
67,
5212,
13,
775,
30,
468,
6611,
930,
309,
2097,
2562,
1566,
353,
444,
358,
6555,
309,
1047,
67,
5212,
3292,
5417,
29489,
8167,
1435,
422,
296,
6102,
11,
578,
521,
1047,
67,
5212,
3292,
14422,
29489,
8167,
1435,
422,
296,
6345,
4278,
327,
1335,
4999,
30,
1342,
2
] |
def revert(self, files='', options=''): | def revert(self, files='', options='', rev=None): | def revert(self, files='', options=''): """ Revert files or dirs to their states as of some revision | 7d837f2ab8cc60d954fea3b3f277a4fcef78640f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/7d837f2ab8cc60d954fea3b3f277a4fcef78640f/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
12,
2890,
16,
1390,
2218,
2187,
702,
2218,
2187,
5588,
33,
7036,
4672,
3536,
868,
1097,
1390,
578,
7717,
358,
3675,
5493,
487,
434,
2690,
6350,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
358,
3675,
5493,
487,
434,
2690,
6350,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
r, phi = complex(r), complex(phi) | def rect(r, phi): r, phi = complex(r), complex(phi) return complex(r * math.cos(phi), r * math.sin(phi)) | d265b40c2f1e228c0cbd532ea68ae4f9079e1876 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/d265b40c2f1e228c0cbd532ea68ae4f9079e1876/cmath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4917,
12,
86,
16,
7706,
4672,
327,
7233,
12,
86,
380,
4233,
18,
14445,
12,
9973,
3631,
436,
380,
4233,
18,
21861,
12,
9973,
3719,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
4917,
12,
86,
16,
7706,
4672,
327,
7233,
12,
86,
380,
4233,
18,
14445,
12,
9973,
3631,
436,
380,
4233,
18,
21861,
12,
9973,
3719,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
def test_convert_to_phylip32(self): """Convert FASTA to PHYLIP 3.2 format.""" self.conversion(11, "phy", "phylip") | def test_convert_to_phylip32(self): """Convert FASTA to PHYLIP 3.2 format.""" self.conversion(11, "phy", "phylip") | 60c6dbb802b2cfe55e5183e45dfff540b247cb1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/60c6dbb802b2cfe55e5183e45dfff540b247cb1a/test_Prank_tool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6283,
67,
869,
67,
844,
93,
3169,
1578,
12,
2890,
4672,
3536,
2723,
24239,
37,
358,
15490,
61,
2053,
52,
890,
18,
22,
740,
12123,
365,
18,
20990,
12,
2499,
16,
315,
844,
93,
3113,
315,
844,
93,
3169,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6283,
67,
869,
67,
844,
93,
3169,
1578,
12,
2890,
4672,
3536,
2723,
24239,
37,
358,
15490,
61,
2053,
52,
890,
18,
22,
740,
12123,
365,
18,
20990,
12,
2499,
16,
315,
844,
93,
3113,
315,
844,
93,
3169,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
print >> sys.stderr, __doc__ % globals() | """Print usage message and exit. Uses stderr if code != 0.""" if code == 0: out = sys.stdout else: out = sys.stderr print >> out, __doc__ % globals() | def usage(code, msg=''): print >> sys.stderr, __doc__ % globals() if msg: print >> sys.stderr, msg sys.exit(code) | eab357004ac61bf1eb4f4332d07b6d81ef1d1c3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/eab357004ac61bf1eb4f4332d07b6d81ef1d1c3b/pep2html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
710,
16,
1234,
2218,
11,
4672,
3536,
5108,
4084,
883,
471,
2427,
18,
225,
14854,
4514,
309,
981,
480,
374,
12123,
309,
981,
422,
374,
30,
596,
273,
2589,
18,
10283,
469,
30,
596,
273,
2589,
18,
11241,
1172,
1671,
596,
16,
1001,
2434,
972,
738,
10941,
1435,
309,
1234,
30,
1172,
1671,
2589,
18,
11241,
16,
1234,
2589,
18,
8593,
12,
710,
13,
565,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
710,
16,
1234,
2218,
11,
4672,
3536,
5108,
4084,
883,
471,
2427,
18,
225,
14854,
4514,
309,
981,
480,
374,
12123,
309,
981,
422,
374,
30,
596,
273,
2589,
18,
10283,
469,
30,
596,
273,
2589,
18,
11241,
1172,
1671,
596,
16,
1001,
2434,
972,
738,
10941,
1435,
309,
1234,
30,
1172,
1671,
2589,
18,
11241,
16,
1234,
2589,
18,
8593,
12,
710,
13,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
help='can you grab your own flag') | help='enables grabbing your own flag') | def parse_cli_args(self, args): p = optparse.OptionParser() | 21393d81a7e0665fa2100f39559b9d2d20eb0227 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/21393d81a7e0665fa2100f39559b9d2d20eb0227/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
4857,
67,
1968,
12,
2890,
16,
833,
4672,
293,
273,
2153,
2670,
18,
1895,
2678,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
4857,
67,
1968,
12,
2890,
16,
833,
4672,
293,
273,
2153,
2670,
18,
1895,
2678,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self.open_database(_sqlitecache.update_filelist(location, checksum)) | return self.open_database(_sqlitecache.update_filelist(location, checksum, self.callback)) | def getFilelists(self, location, checksum): """Load filelist.xml.gz from an sqlite cache and update it if required""" return self.open_database(_sqlitecache.update_filelist(location, checksum)) | d56127a5ce286fc95e5f57bb574fefc23a7db216 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2779/d56127a5ce286fc95e5f57bb574fefc23a7db216/sqlitecache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2812,
330,
292,
1486,
12,
2890,
16,
2117,
16,
6697,
4672,
3536,
2563,
26204,
18,
2902,
18,
9764,
628,
392,
16184,
1247,
471,
1089,
518,
309,
1931,
8395,
327,
365,
18,
3190,
67,
6231,
24899,
4669,
305,
557,
807,
18,
2725,
67,
7540,
5449,
12,
3562,
16,
6697,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
18,
9764,
628,
392,
16184,
1247,
471,
1089,
518,
309,
1931,
8395,
327,
365,
18,
3190,
67,
6231,
24899,
4669,
305,
557,
807,
18,
2725,
67,
7540,
5449,
12,
3562,
16,
6697,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
pieces = l.rstrip().split(' ') assert len(pieces)>1, "Cannot parse %r as a patch timestamp" % l date = ' '.join(pieces[:2]) author = ' '.join(pieces[2:]) y,m,d,hh,mm,ss,d1,d2,d3 = strptime(date, "%a %b %d %H:%M:%S %Z %Y") | pieces = fsep.split(l.rstrip(), 8) assert len(pieces)>=7, "Cannot parse %r as a patch timestamp" % l date = ' '.join(pieces[:8]) author = pieces[8] y,m,d,hh,mm,ss,d1,d2,d3 = strptime(date, "%a %b %d %H %M %S %Z %Y") | def _parseDarcsPull(self, output): """Process 'darcs pull' output to Changesets. """ from datetime import datetime from time import strptime from sha import new from vcpx.changes import Changeset | b89a44daa5b9d76bf24a2b3328f1784a9448a34e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5981/b89a44daa5b9d76bf24a2b3328f1784a9448a34e/source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
40,
297,
2143,
9629,
12,
2890,
16,
876,
4672,
3536,
2227,
296,
72,
297,
2143,
6892,
11,
876,
358,
17776,
2413,
18,
3536,
628,
3314,
1930,
3314,
628,
813,
1930,
17572,
628,
6056,
1930,
394,
628,
331,
4057,
92,
18,
6329,
1930,
17776,
278,
2,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2670,
40,
297,
2143,
9629,
12,
2890,
16,
876,
4672,
3536,
2227,
296,
72,
297,
2143,
6892,
11,
876,
358,
17776,
2413,
18,
3536,
628,
3314,
1930,
3314,
628,
813,
1930,
17572,
628,
6056,
1930,
394,
628,
331,
4057,
92,
18,
6329,
1930,
17776,
278,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def true (): return True | def true (): return True | 3004e3e23864b855bd231b5918342e70e2449275 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/3004e3e23864b855bd231b5918342e70e2449275/producer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
638,
1832,
30,
327,
1053,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
638,
1832,
30,
327,
1053,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
response = None: | response = None | def main(): # initialize the gmail module success,explanation_str = send_gmail.init_gmail() if not success: integrationtestlib.log(explanation_str) sys.exit(0) #add Eric Kimbrel to the email notify list integrationtestlib.notify_list.append("lekimbrel@gmail.com") # PART 1 verify that there are at least 10 nat forwarders running integrationtestlib.log("Looking up nat forwarders") try: nodes = nat_forwarder_list_lookup() except: nodes = [] #make sure we fail if there was an excpetion if len(nodes) < 10: integrationtestlib.log('WARNING: only '+str(len(nodes))+' forwarders are running!') integrationtestlib.notify('WARNING: test_nat_servers_running.py FAILED, only '+str(len(servers))+' nat forwarders are running!') # PART 2 check that nat forwarders are responsive integrationtestlib.log("Checking that we can talk to a nat forwarder") try: response = nat_check_bi_directional(getmyip(),55000) except: response = None: if response != True and response != False: integrationtestlib.log('WARNING: nat forwarders appear un-responsive') integrationtestlib.notify('WARNING: test_nat_servers_running.py FAILED, nat forwarders did not respond') | 41c6650cfe184f9d7788348c15ad02488b0f3182 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/41c6650cfe184f9d7788348c15ad02488b0f3182/test_nat_servers_running.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
4046,
326,
314,
4408,
1605,
2216,
16,
338,
15854,
67,
701,
273,
1366,
67,
75,
4408,
18,
2738,
67,
75,
4408,
1435,
309,
486,
2216,
30,
12040,
3813,
2941,
18,
1330,
12,
338,
15854,
67,
701,
13,
2589,
18,
8593,
12,
20,
13,
225,
468,
1289,
512,
1512,
1475,
381,
70,
2878,
358,
326,
2699,
5066,
666,
12040,
3813,
2941,
18,
12336,
67,
1098,
18,
6923,
2932,
298,
79,
381,
70,
2878,
36,
75,
4408,
18,
832,
7923,
225,
468,
20814,
404,
3929,
716,
1915,
854,
622,
4520,
1728,
10535,
5104,
414,
3549,
12040,
3813,
2941,
18,
1330,
2932,
9794,
310,
731,
10535,
5104,
414,
7923,
775,
30,
2199,
273,
10535,
67,
1884,
20099,
67,
1098,
67,
8664,
1435,
1335,
30,
2199,
273,
5378,
468,
6540,
3071,
732,
2321,
309,
1915,
1703,
392,
3533,
6951,
285,
225,
309,
562,
12,
4690,
13,
411,
1728,
30,
12040,
3813,
2941,
18,
1330,
2668,
9511,
30,
1338,
15126,
701,
12,
1897,
12,
4690,
3719,
6797,
5104,
414,
854,
3549,
5124,
13,
225,
12040,
3813,
2941,
18,
12336,
2668,
9511,
30,
1842,
67,
18757,
67,
14247,
67,
8704,
18,
2074,
18497,
16,
1338,
15126,
701,
12,
1897,
12,
14247,
3719,
6797,
10535,
5104,
414,
854,
3549,
5124,
13,
377,
468,
20814,
576,
866,
716,
10535,
5104,
414,
854,
7899,
18376,
12040,
3813,
2941,
18,
1330,
2932,
14294,
716,
732,
848,
26591,
358,
279,
10535,
364,
20099,
7923,
775,
30,
766,
273,
10535,
67,
1893,
67,
13266,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
4046,
326,
314,
4408,
1605,
2216,
16,
338,
15854,
67,
701,
273,
1366,
67,
75,
4408,
18,
2738,
67,
75,
4408,
1435,
309,
486,
2216,
30,
12040,
3813,
2941,
18,
1330,
12,
338,
15854,
67,
701,
13,
2589,
18,
8593,
12,
20,
13,
225,
468,
1289,
512,
1512,
1475,
381,
70,
2878,
358,
326,
2699,
5066,
666,
12040,
3813,
2941,
18,
12336,
67,
1098,
18,
6923,
2932,
298,
79,
381,
70,
2878,
36,
75,
4408,
18,
832,
7923,
225,
468,
20814,
404,
3929,
716,
1915,
854,
622,
4520,
1728,
10535,
5104,
414,
3549,
12040,
3813,
2941,
18,
1330,
2932,
9794,
310,
731,
10535,
5104,
414,
7923,
775,
30,
2199,
273,
10535,
67,
1884,
20099,
67,
2
] |
context.Message( '%s >= %s not found.' %(pkg, version) ) Exit(1) | return False | def CheckDependencies(env, deps): conf = env.Configure( custom_tests = { 'CheckVersion' : CheckVersion, 'CheckPackage' : CheckPackage }) for pkg, version in deps.iteritems(): if not conf.CheckPackage( pkg, version ): context.Message( '%s >= %s not found.' %(pkg, version) ) Exit(1) env = conf.Finish() | 63682645e209ed898cc35f01b7b74084aa62fc1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5456/63682645e209ed898cc35f01b7b74084aa62fc1d/pkgconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
8053,
12,
3074,
16,
8740,
4672,
2195,
273,
1550,
18,
11207,
12,
1679,
67,
16341,
273,
288,
296,
1564,
1444,
11,
294,
2073,
1444,
16,
296,
1564,
2261,
11,
294,
2073,
2261,
289,
13,
225,
364,
3475,
16,
1177,
316,
8740,
18,
2165,
3319,
13332,
309,
486,
2195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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2073,
8053,
12,
3074,
16,
8740,
4672,
2195,
273,
1550,
18,
11207,
12,
1679,
67,
16341,
273,
288,
296,
1564,
1444,
11,
294,
2073,
1444,
16,
296,
1564,
2261,
11,
294,
2073,
2261,
289,
13,
225,
364,
3475,
16,
1177,
316,
8740,
18,
2165,
3319,
13332,
309,
486,
2195,
18,
1564,
2261,
12,
3475,
16,
1177,
262,
30,
327,
1083,
225,
1550,
273,
2195,
18,
11641,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
images = [j for j in range(metadata['start'], metadata['end'] + 1)] | images = range(metadata['start'], metadata['end'] + 1) | def write_xds_inp_index(metadata): '''Write an XDS.INP file from the metadata obtained already. N.B. this will assume that the beam direction and rotation axis correspond to the usual definitions for ADSC images on beamlines.''' fout = open('XDS.INP', 'w') fout.write('JOB=XYCORR INIT COLSPOT IDXREF\n') fout.write('DETECTOR=%s MINIMUM_VALID_PIXEL_VALUE=1 OVERLOAD=65000\n' % metadata['detector']) fout.write('DIRECTION_OF_DETECTOR_X-AXIS= 1.0 0.0 0.0\n') fout.write('DIRECTION_OF_DETECTOR_Y-AXIS= 0.0 1.0 0.0\n') fout.write('TRUSTED_REGION=0.0 1.41\n') fout.write('MAXIMUM_NUMBER_OF_PROCESSORS=%d\n' % get_number_cpus()) fout.write('NX=%d NY=%d QX=%.5f QY=%5f\n' % \ (metadata['size'][0], metadata['size'][1], metadata['pixel'][0], metadata['pixel'][1])) # N.B. assuming that the direct beam for XDS is the same as Mosflm, # with X, Y swapped and converted to pixels from mm. orgx = metadata['beam'][1] / metadata['pixel'][1] orgy = metadata['beam'][0] / metadata['pixel'][0] fout.write('ORGX=%.1f ORGY=%.1f\n' % (orgx, orgy)) fout.write('ROTATION_AXIS= 1.0 0.0 0.0\n') fout.write('DETECTOR_DISTANCE=%.2f\n' % metadata['distance']) fout.write('X-RAY_WAVELENGTH=%.5f\n' % metadata['wavelength']) fout.write('OSCILLATION_RANGE=%.3f\n' % metadata['oscillation'][1]) fout.write('INCIDENT_BEAM_DIRECTION=0.0 0.0 1.0\n') fout.write('FRACTION_OF_POLARIZATION=0.95\n') fout.write('POLARIZATION_PLANE_NORMAL=0.0 1.0 0.0\n') fout.write('FRIEDEL\'S_LAW=FALSE\n') fout.write('NAME_TEMPLATE_OF_DATA_FRAMES=%s\n' % \ os.path.join(metadata['directory'], metadata['template'].replace('#', '?'))) fout.write('STARTING_ANGLE=%.3f STARTING_FRAME=%d\n' % \ (metadata['oscillation'][0], metadata['start'])) fout.write('DATA_RANGE=%d %d\n' % (metadata['start'], metadata['end'])) # compute the background range as min(all, 5) if metadata['end'] - metadata['start'] > 5: fout.write('BACKGROUND_RANGE=%d %d\n' % (metadata['start'], metadata['start'] + 5)) else: fout.write('BACKGROUND_RANGE=%d %d\n' % (metadata['start'], metadata['end'])) # by default autoindex off all images - can make this better later on. # Ok: I think it is too slow already. Three wedges, as per xia2... # that would be 5 images per wedge, then. images = [j for j in range(metadata['start'], metadata['end'] + 1)] wedge = (images[0], images[0] + 4) fout.write('SPOT_RANGE=%d %d\n' % wedge) # if we have more than 90 degrees of data, use wedges at the start, # 45 degrees in and 90 degrees in, else use a wedge at the start, # one in the middle and one at the end. if int(90.0 / metadata['oscillation'][1]) + 4 in images: wedge = (int(45.0 / metadata['oscillation'][1]), int(45.0 / metadata['oscillation'][1]) + 4) fout.write('SPOT_RANGE=%d %d\n' % wedge) wedge = (int(90.0 / metadata['oscillation'][1]), int(90.0 / metadata['oscillation'][1]) + 4) fout.write('SPOT_RANGE=%d %d\n' % wedge) else: mid = (len(images) / 2) - 4 + images[0] - 1 wedge = (mid, mid + 4) fout.write('SPOT_RANGE=%d %d\n' % wedge) wedge = (images[-5], images[-1]) fout.write('SPOT_RANGE=%d %d\n' % wedge) fout.close() return | a804b4416c6a57ed03555e688ee929e1fadf5fb5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3290/a804b4416c6a57ed03555e688ee929e1fadf5fb5/fast_dp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
92,
2377,
67,
31647,
67,
1615,
12,
4165,
4672,
9163,
3067,
392,
1139,
3948,
18,
706,
52,
585,
628,
326,
1982,
12700,
1818,
18,
423,
18,
38,
18,
333,
903,
6750,
716,
326,
16751,
4068,
471,
6752,
2654,
4325,
358,
326,
25669,
6377,
364,
11738,
2312,
4602,
603,
506,
3522,
1465,
1093,
6309,
225,
17382,
273,
1696,
2668,
60,
3948,
18,
706,
52,
2187,
296,
91,
6134,
225,
17382,
18,
2626,
2668,
18321,
33,
8546,
9428,
54,
12584,
5597,
3118,
1974,
1599,
60,
10771,
64,
82,
6134,
225,
17382,
18,
2626,
2668,
1639,
1448,
22727,
5095,
87,
6989,
18605,
67,
5063,
67,
27381,
2247,
67,
4051,
33,
21,
22577,
7783,
33,
9222,
3784,
64,
82,
11,
738,
1982,
3292,
8238,
1229,
19486,
17382,
18,
2626,
2668,
30516,
67,
3932,
67,
1639,
1448,
22727,
67,
60,
17,
25614,
33,
404,
18,
20,
374,
18,
20,
374,
18,
20,
64,
82,
6134,
17382,
18,
2626,
2668,
30516,
67,
3932,
67,
1639,
1448,
22727,
67,
61,
17,
25614,
33,
374,
18,
20,
404,
18,
20,
374,
18,
20,
64,
82,
6134,
17382,
18,
2626,
2668,
4349,
5996,
2056,
67,
28314,
33,
20,
18,
20,
404,
18,
9803,
64,
82,
6134,
17382,
18,
2626,
2668,
6694,
18605,
67,
9931,
67,
3932,
67,
16560,
14006,
5095,
72,
64,
82,
11,
738,
336,
67,
2696,
67,
20696,
10756,
17382,
18,
2626,
2668,
17106,
5095,
72,
423,
61,
5095,
72,
2238,
60,
5095,
18,
25,
74,
2238,
61,
5095,
25,
74,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
92,
2377,
67,
31647,
67,
1615,
12,
4165,
4672,
9163,
3067,
392,
1139,
3948,
18,
706,
52,
585,
628,
326,
1982,
12700,
1818,
18,
423,
18,
38,
18,
333,
903,
6750,
716,
326,
16751,
4068,
471,
6752,
2654,
4325,
358,
326,
25669,
6377,
364,
11738,
2312,
4602,
603,
506,
3522,
1465,
1093,
6309,
225,
17382,
273,
1696,
2668,
60,
3948,
18,
706,
52,
2187,
296,
91,
6134,
225,
17382,
18,
2626,
2668,
18321,
33,
8546,
9428,
54,
12584,
5597,
3118,
1974,
1599,
60,
10771,
64,
82,
6134,
225,
17382,
18,
2626,
2668,
1639,
1448,
22727,
5095,
87,
6989,
18605,
67,
5063,
67,
27381,
2247,
67,
4051,
33,
21,
22577,
7783,
33,
9222,
3784,
64,
82,
11,
2
] |
if os.path.exists(url) and os.access(os.W_OK): | if os.path.exists(url) and os.access(url, os.W_OK): | def _getLocalTroves(troveList): if not self.localRep or not troveList: return [ None ] * len(troveList) | 8fa8c00ade7e22e2145cd732f587398426e5f4cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/8fa8c00ade7e22e2145cd732f587398426e5f4cc/netclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
2042,
56,
303,
3324,
12,
88,
303,
537,
682,
4672,
309,
486,
365,
18,
3729,
18933,
578,
486,
23432,
537,
682,
30,
327,
306,
599,
308,
380,
562,
12,
88,
303,
537,
682,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
2042,
56,
303,
3324,
12,
88,
303,
537,
682,
4672,
309,
486,
365,
18,
3729,
18933,
578,
486,
23432,
537,
682,
30,
327,
306,
599,
308,
380,
562,
12,
88,
303,
537,
682,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.push('211-%s %s status:\r\n' %(__pname__, __ver__)) | self.push('211-FTP server status:\r\n') | def ftp_STAT(self, line): """Return statistics about current ftp session. If an argument is provided return directory listing over command channel. """ # return STATus information about ftpd if not line: s = [] s.append('Connected to: %s:%s' %self.socket.getsockname()) if self.authenticated: s.append('Logged in as: %s' %self.username) else: if not self.username: s.append("Waiting for username.") else: s.append("Waiting for password.") if self.current_type == 'a': type = 'ASCII' else: type = 'Binary' s.append("TYPE: %s; STRUcture: File; MODE: Stream" %type) if self.data_server: s.append('Passive data channel waiting for connection.') elif self.data_channel: dc = self.data_channel s.append('Data connection open:') s.append('Total bytes sent: %s' %dc.tot_bytes_sent) s.append('Total bytes received: %s' %dc.tot_bytes_received) else: s.append('Data connection closed.') self.push('211-%s %s status:\r\n' %(__pname__, __ver__)) self.push(''.join([' %s\r\n' %item for item in s])) self.respond('211 End of status.') | 8e85073db3fe21c86d1703f17ffb309e9d4d0552 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/8e85073db3fe21c86d1703f17ffb309e9d4d0552/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
28549,
12,
2890,
16,
980,
4672,
3536,
990,
7691,
2973,
783,
13487,
1339,
18,
971,
392,
1237,
353,
2112,
327,
1867,
11591,
1879,
1296,
1904,
18,
3536,
468,
327,
2347,
789,
407,
1779,
2973,
13487,
72,
309,
486,
980,
30,
272,
273,
5378,
272,
18,
6923,
2668,
8932,
358,
30,
738,
87,
5319,
87,
11,
738,
2890,
18,
7814,
18,
14665,
975,
529,
10756,
309,
365,
18,
14454,
30,
272,
18,
6923,
2668,
19862,
316,
487,
30,
738,
87,
11,
738,
2890,
18,
5053,
13,
469,
30,
309,
486,
365,
18,
5053,
30,
272,
18,
6923,
2932,
15946,
364,
2718,
1199,
13,
469,
30,
272,
18,
6923,
2932,
15946,
364,
2201,
1199,
13,
309,
365,
18,
2972,
67,
723,
422,
296,
69,
4278,
618,
273,
296,
13756,
11,
469,
30,
618,
273,
296,
5905,
11,
272,
18,
6923,
2932,
2399,
30,
738,
87,
31,
7128,
57,
299,
594,
30,
1387,
31,
11741,
30,
3961,
6,
738,
723,
13,
309,
365,
18,
892,
67,
3567,
30,
272,
18,
6923,
2668,
6433,
688,
501,
1904,
7336,
364,
1459,
1093,
13,
1327,
365,
18,
892,
67,
4327,
30,
6744,
273,
365,
18,
892,
67,
4327,
272,
18,
6923,
2668,
751,
1459,
1696,
2497,
13,
272,
18,
6923,
2668,
5269,
1731,
3271,
30,
738,
87,
11,
738,
7201,
18,
3307,
67,
3890,
67,
7569,
13,
272,
18,
6923,
2668,
5269,
1731,
5079,
30,
738,
87,
11,
738,
7201,
18,
3307,
67,
3890,
67,
15213,
13,
469,
30,
272,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13487,
67,
28549,
12,
2890,
16,
980,
4672,
3536,
990,
7691,
2973,
783,
13487,
1339,
18,
971,
392,
1237,
353,
2112,
327,
1867,
11591,
1879,
1296,
1904,
18,
3536,
468,
327,
2347,
789,
407,
1779,
2973,
13487,
72,
309,
486,
980,
30,
272,
273,
5378,
272,
18,
6923,
2668,
8932,
358,
30,
738,
87,
5319,
87,
11,
738,
2890,
18,
7814,
18,
14665,
975,
529,
10756,
309,
365,
18,
14454,
30,
272,
18,
6923,
2668,
19862,
316,
487,
30,
738,
87,
11,
738,
2890,
18,
5053,
13,
469,
30,
309,
486,
365,
18,
5053,
30,
272,
18,
6923,
2932,
15946,
364,
2718,
1199,
13,
469,
30,
272,
18,
6923,
2932,
15946,
364,
2201,
1199,
13,
309,
365,
18,
2
] |
msg = '["%s",%s,%s,%s,%s]' % ( | message = '["%s",%s,%s,%s,%s]' % ( | def handle_scope_message(self, msg): msg = '["%s",%s,%s,%s,%s]' % ( msg[1], # service msg[2], # command msg[4], # status msg[5], # tag msg[8], # payload ) if self.debug: pretty_print("send to client:", msg, self.debug_format, self.debug_format_payload) self.send_message(msg) | c13b2ba635ee2da491abf2bb3ad577d14bd228e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10923/c13b2ba635ee2da491abf2bb3ad577d14bd228e9/stpwebsocket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4887,
67,
2150,
12,
2890,
16,
1234,
4672,
883,
273,
5271,
28385,
87,
3113,
9,
87,
15529,
87,
15529,
87,
15529,
87,
3864,
738,
261,
1234,
63,
21,
6487,
468,
1156,
1234,
63,
22,
6487,
468,
1296,
1234,
63,
24,
6487,
468,
1267,
1234,
63,
25,
6487,
468,
1047,
1234,
63,
28,
6487,
468,
2385,
262,
309,
365,
18,
4148,
30,
7517,
67,
1188,
2932,
4661,
358,
1004,
2773,
16,
1234,
16,
365,
18,
4148,
67,
2139,
16,
365,
18,
4148,
67,
2139,
67,
7648,
13,
365,
18,
4661,
67,
2150,
12,
3576,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4887,
67,
2150,
12,
2890,
16,
1234,
4672,
883,
273,
5271,
28385,
87,
3113,
9,
87,
15529,
87,
15529,
87,
15529,
87,
3864,
738,
261,
1234,
63,
21,
6487,
468,
1156,
1234,
63,
22,
6487,
468,
1296,
1234,
63,
24,
6487,
468,
1267,
1234,
63,
25,
6487,
468,
1047,
1234,
63,
28,
6487,
468,
2385,
262,
309,
365,
18,
4148,
30,
7517,
67,
1188,
2932,
4661,
358,
1004,
2773,
16,
1234,
16,
365,
18,
4148,
67,
2139,
16,
365,
18,
4148,
67,
2139,
67,
7648,
13,
365,
18,
4661,
67,
2150,
12,
3576,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: execv(tempfile.mktemp(), ()) | try: execv(tempfile.mktemp(), ('blah',)) | def _execvpe(file, args, env=None): if env is not None: func = execve argrest = (args, env) else: func = execv argrest = (args,) env = environ global _notfound head, tail = path.split(file) if head: apply(func, (file,) + argrest) return if env.has_key('PATH'): envpath = env['PATH'] else: envpath = defpath PATH = envpath.split(pathsep) if not _notfound: import tempfile # Exec a file that is guaranteed not to exist try: execv(tempfile.mktemp(), ()) except error, _notfound: pass exc, arg = error, _notfound for dir in PATH: fullname = path.join(dir, file) try: apply(func, (fullname,) + argrest) except error, (errno, msg): if errno != arg[0]: exc, arg = error, (errno, msg) raise exc, arg | bf7f42d2874f701cc9aecbef609a469e11717a10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bf7f42d2874f701cc9aecbef609a469e11717a10/os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196,
90,
1501,
8792,
273,
261,
1968,
16,
13,
1550,
273,
5473,
2552,
389,
902,
7015,
910,
16,
5798,
273,
589,
18,
4939,
12,
768,
13,
309,
910,
30,
2230,
12,
644,
16,
261,
768,
16,
13,
397,
1501,
8792,
13,
327,
309,
1550,
18,
5332,
67,
856,
2668,
4211,
11,
4672,
1550,
803,
273,
1550,
3292,
4211,
3546,
469,
30,
1550,
803,
273,
1652,
803,
7767,
273,
1550,
803,
18,
4939,
12,
803,
10814,
13,
309,
486,
389,
902,
7015,
30,
1930,
13275,
468,
3889,
279,
585,
716,
353,
15403,
486,
358,
1005,
775,
30,
1196,
90,
12,
5814,
768,
18,
24816,
5814,
9334,
7707,
3083,
9795,
2187,
3719,
1335,
555,
16,
389,
902,
7015,
30,
1342,
3533,
16,
1501,
273,
555,
16,
389,
902,
7015,
364,
1577,
316,
7767,
30,
13321,
273,
589,
18,
5701,
12,
1214,
16,
585,
13,
775,
30,
2230,
12,
644,
16,
261,
21885,
16,
13,
397,
1501,
8792,
13,
1335,
555,
16,
261,
19088,
16,
1234,
4672,
309,
8402,
480,
1501,
63,
20,
14542,
3533,
16,
1501,
273,
555,
16,
261,
19088,
16,
1234,
13,
1002,
3533,
16,
1501,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196,
90,
1501,
8792,
273,
261,
1968,
16,
13,
1550,
273,
5473,
2552,
389,
902,
7015,
910,
16,
5798,
273,
589,
18,
4939,
12,
768,
13,
309,
910,
30,
2230,
12,
644,
16,
261,
768,
16,
13,
397,
1501,
8792,
13,
327,
309,
1550,
18,
5332,
67,
856,
2668,
4211,
11,
4672,
1550,
803,
273,
1550,
3292,
4211,
3546,
469,
30,
1550,
803,
273,
1652,
803,
7767,
273,
1550,
803,
18,
4939,
12,
803,
10814,
13,
309,
486,
389,
902,
7015,
30,
1930,
2
] |
dest = '%s?rev=%s' % (dest['_id'], dest['_rev']) | dest = '%s?%s' % (unicode_quote(dest['_id']), unicode_urlencode({'rev': dest['_rev']})) | def copy(self, src, dest): """Copy the given document to create a new document. | 14559955d28383771e075ad211b5c776127cbddd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9373/14559955d28383771e075ad211b5c776127cbddd/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
16,
1705,
16,
1570,
4672,
3536,
2951,
326,
864,
1668,
358,
752,
279,
394,
1668,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1610,
12,
2890,
16,
1705,
16,
1570,
4672,
3536,
2951,
326,
864,
1668,
358,
752,
279,
394,
1668,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return None | return classes[0][1] | def compile_recipe(src): ''' Compile the code in src and return the first object that is a recipe or profile. @param src: Python source code @type src: string @return: Recipe/Profile class or None, if no such class was found in C{src} ''' locals = {} exec src in globals(), locals for obj in locals.values(): if type(obj) is type and obj.__name__ not in basic_recipe_names: for base in obj.__bases__: if base in basic_recipes: return obj return None | fea37f24ae5a1f5bcdf7622ca962d778e947af1c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/fea37f24ae5a1f5bcdf7622ca962d778e947af1c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
3927,
3151,
12,
4816,
4672,
9163,
16143,
326,
981,
316,
1705,
471,
327,
326,
1122,
733,
716,
353,
279,
16100,
578,
3042,
18,
632,
891,
1705,
30,
6600,
1084,
981,
632,
723,
1705,
30,
533,
632,
2463,
30,
7776,
3151,
19,
4029,
667,
578,
599,
16,
309,
1158,
4123,
667,
1703,
1392,
316,
385,
95,
4816,
97,
9163,
8985,
273,
2618,
1196,
1705,
316,
10941,
9334,
8985,
364,
1081,
316,
8985,
18,
2372,
13332,
309,
618,
12,
2603,
13,
353,
618,
471,
1081,
16186,
529,
972,
486,
316,
5337,
67,
3927,
3151,
67,
1973,
30,
364,
1026,
316,
1081,
16186,
18602,
972,
30,
309,
1026,
316,
5337,
67,
266,
3449,
281,
30,
327,
1081,
225,
327,
3318,
63,
20,
6362,
21,
65,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
3927,
3151,
12,
4816,
4672,
9163,
16143,
326,
981,
316,
1705,
471,
327,
326,
1122,
733,
716,
353,
279,
16100,
578,
3042,
18,
632,
891,
1705,
30,
6600,
1084,
981,
632,
723,
1705,
30,
533,
632,
2463,
30,
7776,
3151,
19,
4029,
667,
578,
599,
16,
309,
1158,
4123,
667,
1703,
1392,
316,
385,
95,
4816,
97,
9163,
8985,
273,
2618,
1196,
1705,
316,
10941,
9334,
8985,
364,
1081,
316,
8985,
18,
2372,
13332,
309,
618,
12,
2603,
13,
353,
618,
471,
1081,
16186,
529,
972,
486,
316,
5337,
67,
3927,
3151,
67,
1973,
30,
364,
1026,
316,
1081,
16186,
18602,
972,
30,
309,
1026,
316,
5337,
67,
266,
3449,
281,
30,
327,
1081,
225,
327,
2
] |
evt = ev.Io(fileno, ev.EV_WRITE, self._evloop, write, fileno) | evt = libev.Io(fileno, libev.EV_WRITE, self._evloop, write, fileno) | def add_descriptor(self, fileno, read=None, write=None, exc=None): if read: evt = event.Io(fileno, ev.EV_READ, self._evloop, read, fileno) evt.start() self.readers[fileno] = evt, read | dd926e62e8470f0b70059a4a46ec4fe05ba666d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/dd926e62e8470f0b70059a4a46ec4fe05ba666d6/libev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
12628,
12,
2890,
16,
24256,
16,
855,
33,
7036,
16,
1045,
33,
7036,
16,
3533,
33,
7036,
4672,
309,
855,
30,
6324,
273,
871,
18,
15963,
12,
7540,
5764,
16,
2113,
18,
24427,
67,
6949,
16,
365,
6315,
14965,
6498,
16,
855,
16,
24256,
13,
6324,
18,
1937,
1435,
365,
18,
896,
414,
63,
7540,
5764,
65,
273,
6324,
16,
855,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
67,
12628,
12,
2890,
16,
24256,
16,
855,
33,
7036,
16,
1045,
33,
7036,
16,
3533,
33,
7036,
4672,
309,
855,
30,
6324,
273,
871,
18,
15963,
12,
7540,
5764,
16,
2113,
18,
24427,
67,
6949,
16,
365,
6315,
14965,
6498,
16,
855,
16,
24256,
13,
6324,
18,
1937,
1435,
365,
18,
896,
414,
63,
7540,
5764,
65,
273,
6324,
16,
855,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if scheme == 'https': self.server = m2xmlrpclib.ServerProxy(rbuilderUrl) else: self.server = xmlrpclib.ServerProxy(rbuilderUrl) | rbuilderUrl = urlparse.urlunsplit((scheme, netloc, path, '', '')) self.server = xmlrpclib.ServerProxy(rbuilderUrl) | def __init__(self, rbuilderUrl, user, pw): scheme, netloc, path, query, fragment = urlparse.urlsplit(rbuilderUrl) path = 'xmlrpc-private' netloc = netloc.split('@', 1)[-1] netloc = '%s:%s@' % (user, pw) + netloc rbuilderUrl = urlparse.urlunsplit( (scheme, netloc, path, query, fragment)) | 9e439cf11b693b8679104b8c826d784f045b5405 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8749/9e439cf11b693b8679104b8c826d784f045b5405/rbuilderclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7138,
953,
1489,
16,
729,
16,
8772,
4672,
4355,
16,
17345,
16,
589,
16,
843,
16,
5481,
273,
15185,
18,
718,
4939,
12,
6731,
953,
1489,
13,
589,
273,
296,
2902,
7452,
17,
1152,
11,
17345,
273,
17345,
18,
4939,
2668,
36,
2187,
404,
13,
18919,
21,
65,
17345,
273,
1995,
87,
5319,
87,
20887,
738,
261,
1355,
16,
8772,
13,
397,
17345,
7138,
953,
1489,
273,
225,
15185,
18,
718,
318,
4939,
12,
261,
9068,
16,
17345,
16,
589,
16,
843,
16,
5481,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7138,
953,
1489,
16,
729,
16,
8772,
4672,
4355,
16,
17345,
16,
589,
16,
843,
16,
5481,
273,
15185,
18,
718,
4939,
12,
6731,
953,
1489,
13,
589,
273,
296,
2902,
7452,
17,
1152,
11,
17345,
273,
17345,
18,
4939,
2668,
36,
2187,
404,
13,
18919,
21,
65,
17345,
273,
1995,
87,
5319,
87,
20887,
738,
261,
1355,
16,
8772,
13,
397,
17345,
7138,
953,
1489,
273,
225,
15185,
18,
718,
318,
4939,
12,
261,
9068,
16,
17345,
16,
589,
16,
843,
16,
5481,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.logger.info("line state mask: 0x%02" % (self.linstate_mask,)) | self.logger.info("line state mask: 0x%02x" % (self.linstate_mask,)) | def _telnetProcessSubnegotiation(self, suboption): """Process subnegotiation, the data between IAC SB and IAC SE.""" if suboption[0:1] == COM_PORT_OPTION: if self.logger: self.logger.debug('received COM_PORT_OPTION: %r' % (suboption,)) if suboption[1:2] == SET_BAUDRATE: backup = self.serial.baudrate try: (self.serial.baudrate,) = struct.unpack("!I", suboption[2:6]) except ValueError, e: if self.logger: self.logger.error("failed to set baud rate: %s" % (e,)) self.serial.baudrate = backup else: if self.logger: self.logger.info("changed baud rate: %s" % (self.serial.baudrate,)) self.rfc2217SendSubnegotiation(SERVER_SET_BAUDRATE, struct.pack("!I", self.serial.baudrate)) elif suboption[1:2] == SET_DATASIZE: backup = self.serial.bytesize try: (self.serial.bytesize,) = struct.unpack("!B", suboption[2:3]) except ValueError, e: if self.logger: self.logger.error("failed to set data size: %s" % (e,)) self.serial.bytesize = backup else: if self.logger: self.logger.info("changed data size: %s" % (self.serial.bytesize,)) self.rfc2217SendSubnegotiation(SERVER_SET_DATASIZE, struct.pack("!B", self.serial.bytesize)) elif suboption[1:2] == SET_PARITY: backup = self.serial.parity try: self.serial.parity = RFC2217_REVERSE_PARITY_MAP[struct.unpack("!B", suboption[2:3])[0]] except ValueError, e: if self.logger: self.logger.error("failed to set parity: %s" % (e,)) self.serial.parity = backup else: if self.logger: self.logger.info("changed parity: %s" % (self.serial.parity,)) self.rfc2217SendSubnegotiation( SERVER_SET_PARITY, struct.pack("!B", RFC2217_PARITY_MAP[self.serial.parity]) ) elif suboption[1:2] == SET_STOPSIZE: backup = self.serial.stopbits try: self.serial.stopbits = RFC2217_REVERSE_STOPBIT_MAP[struct.unpack("!B", suboption[2:3])[0]] except ValueError, e: if self.logger: self.logger.error("failed to set stop bits: %s" % (e,)) self.serial.stopbits = backup else: if self.logger: self.logger.info("changed stop bits: %s" % (self.serial.stopbits,)) self.rfc2217SendSubnegotiation( SERVER_SET_STOPSIZE, struct.pack("!B", RFC2217_STOPBIT_MAP[self.serial.stopbits]) ) elif suboption[1:2] == SET_CONTROL: if suboption[2:3] == SET_CONTROL_REQ_FLOW_SETTING: if self.serial.xonxoff: self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_USE_SW_FLOW_CONTROL) elif self.serial.rtscts: self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_USE_HW_FLOW_CONTROL) else: self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_USE_NO_FLOW_CONTROL) elif suboption[2:3] == SET_CONTROL_USE_NO_FLOW_CONTROL: self.serial.xonxoff = False self.serial.rtscts = False if self.logger: self.logger.info("changed flow control to None") self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_USE_NO_FLOW_CONTROL) elif suboption[2:3] == SET_CONTROL_USE_SW_FLOW_CONTROL: self.serial.xonxoff = True if self.logger: self.logger.info("changed flow control to XON/XOFF") self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_USE_SW_FLOW_CONTROL) elif suboption[2:3] == SET_CONTROL_USE_HW_FLOW_CONTROL: self.serial.rtscts = True if self.logger: self.logger.info("changed flow control to RTS/CTS") self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_USE_HW_FLOW_CONTROL) elif suboption[2:3] == SET_CONTROL_REQ_BREAK_STATE: if self.logger: self.logger.warning("requested break state - not implemented") pass # XXX needs cached value elif suboption[2:3] == SET_CONTROL_BREAK_ON: self.serial.setBreak(True) if self.logger: self.logger.info("changed BREAK to active") self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_BREAK_ON) elif suboption[2:3] == SET_CONTROL_BREAK_OFF: self.serial.setBreak(False) if self.logger: self.logger.info("changed BREAK to inactive") self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_BREAK_OFF) elif suboption[2:3] == SET_CONTROL_REQ_DTR: if self.logger: self.logger.warning("requested DTR state - not implemented") pass # XXX needs cached value elif suboption[2:3] == SET_CONTROL_DTR_ON: self.serial.setDTR(True) if self.logger: self.logger.info("changed DTR to active") self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_DTR_ON) elif suboption[2:3] == SET_CONTROL_DTR_OFF: self.serial.setDTR(False) if self.logger: self.logger.info("changed DTR to inactive") self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_DTR_OFF) elif suboption[2:3] == SET_CONTROL_REQ_RTS: if self.logger: self.logger.warning("requested RTS state - not implemented") pass # XXX needs cached value #~ self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_RTS_ON) elif suboption[2:3] == SET_CONTROL_RTS_ON: self.serial.setRTS(True) if self.logger: self.logger.info("changed RTS to active") self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_RTS_ON) elif suboption[2:3] == SET_CONTROL_RTS_OFF: self.serial.setRTS(False) if self.logger: self.logger.info("changed RTS to inactive") self.rfc2217SendSubnegotiation(SERVER_SET_CONTROL, SET_CONTROL_RTS_OFF) #~ elif suboption[2:3] == SET_CONTROL_REQ_FLOW_SETTING_IN: #~ elif suboption[2:3] == SET_CONTROL_USE_NO_FLOW_CONTROL_IN: #~ elif suboption[2:3] == SET_CONTROL_USE_SW_FLOW_CONTOL_IN: #~ elif suboption[2:3] == SET_CONTROL_USE_HW_FLOW_CONTOL_IN: #~ elif suboption[2:3] == SET_CONTROL_USE_DCD_FLOW_CONTROL: #~ elif suboption[2:3] == SET_CONTROL_USE_DTR_FLOW_CONTROL: #~ elif suboption[2:3] == SET_CONTROL_USE_DSR_FLOW_CONTROL: elif suboption[1:2] == NOTIFY_LINESTATE: # client polls for current state self.rfc2217SendSubnegotiation( SERVER_NOTIFY_LINESTATE, to_bytes([0]) # sorry, nothing like that implemented ) elif suboption[1:2] == NOTIFY_MODEMSTATE: if self.logger: self.logger.info("request for modem state") # client polls for current state self.check_modem_lines(force_notification=True) elif suboption[1:2] == FLOWCONTROL_SUSPEND: if self.logger: self.logger.info("suspend") self._remote_suspend_flow = True elif suboption[1:2] == FLOWCONTROL_RESUME: if self.logger: self.logger.info("resume") self._remote_suspend_flow = False elif suboption[1:2] == SET_LINESTATE_MASK: self.linstate_mask = ord(suboption[2:3]) # ensure it is a number if self.logger: self.logger.info("line state mask: 0x%02" % (self.linstate_mask,)) elif suboption[1:2] == SET_MODEMSTATE_MASK: self.modemstate_mask = ord(suboption[2:3]) # ensure it is a number if self.logger: self.logger.info("modem state mask: 0x%02" % (self.modemstate_mask,)) elif suboption[1:2] == PURGE_DATA: if suboption[2:3] == PURGE_RECEIVE_BUFFER: self.serial.flushInput() if self.logger: self.logger.info("purge in") self.rfc2217SendSubnegotiation(SERVER_PURGE_DATA, PURGE_RECEIVE_BUFFER) elif suboption[2:3] == PURGE_TRANSMIT_BUFFER: self.serial.flushOutput() if self.logger: self.logger.info("purge out") self.rfc2217SendSubnegotiation(SERVER_PURGE_DATA, PURGE_TRANSMIT_BUFFER) elif suboption[2:3] == PURGE_BOTH_BUFFERS: self.serial.flushInput() self.serial.flushOutput() if self.logger: self.logger.info("purge both") self.rfc2217SendSubnegotiation(SERVER_PURGE_DATA, PURGE_BOTH_BUFFERS) else: if self.logger: self.logger.error("undefined PURGE_DATA: %r" % list(suboption[2:])) else: if self.logger: self.logger.error("undefined COM_PORT_OPTION: %r" % list(suboption[1:])) else: if self.logger: self.logger.warning("unknown subnegotiation: %r" % (suboption,)) | 1f107871b694699edca4521432f16d6a5c0b71f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/1f107871b694699edca4521432f16d6a5c0b71f8/rfc2217.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19261,
2758,
2227,
1676,
14518,
352,
7072,
12,
2890,
16,
720,
3482,
4672,
3536,
2227,
720,
14518,
352,
7072,
16,
326,
501,
3086,
467,
2226,
348,
38,
471,
467,
2226,
3174,
12123,
309,
720,
3482,
63,
20,
30,
21,
65,
422,
5423,
67,
6354,
67,
7425,
30,
309,
365,
18,
4901,
30,
365,
18,
4901,
18,
4148,
2668,
15213,
5423,
67,
6354,
67,
7425,
30,
738,
86,
11,
738,
261,
1717,
3482,
16,
3719,
309,
720,
3482,
63,
21,
30,
22,
65,
422,
7855,
67,
12536,
57,
6331,
1777,
30,
5114,
273,
365,
18,
8818,
18,
12124,
1100,
5141,
775,
30,
261,
2890,
18,
8818,
18,
12124,
1100,
5141,
16,
13,
273,
1958,
18,
17309,
2932,
5,
45,
3113,
720,
3482,
63,
22,
30,
26,
5717,
1335,
2068,
16,
425,
30,
309,
365,
18,
4901,
30,
365,
18,
4901,
18,
1636,
2932,
7307,
358,
444,
9846,
1100,
4993,
30,
738,
87,
6,
738,
261,
73,
16,
3719,
365,
18,
8818,
18,
12124,
1100,
5141,
273,
5114,
469,
30,
309,
365,
18,
4901,
30,
365,
18,
4901,
18,
1376,
2932,
6703,
9846,
1100,
4993,
30,
738,
87,
6,
738,
261,
2890,
18,
8818,
18,
12124,
1100,
5141,
16,
3719,
365,
18,
16784,
3787,
4033,
3826,
1676,
14518,
352,
7072,
12,
4370,
67,
4043,
67,
12536,
57,
6331,
1777,
16,
1958,
18,
2920,
2932,
5,
45,
3113,
365,
18,
8818,
18,
12124,
1100,
5141,
3719,
1327,
720,
3482,
63,
21,
30,
22,
65,
422,
7855,
67,
4883,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19261,
2758,
2227,
1676,
14518,
352,
7072,
12,
2890,
16,
720,
3482,
4672,
3536,
2227,
720,
14518,
352,
7072,
16,
326,
501,
3086,
467,
2226,
348,
38,
471,
467,
2226,
3174,
12123,
309,
720,
3482,
63,
20,
30,
21,
65,
422,
5423,
67,
6354,
67,
7425,
30,
309,
365,
18,
4901,
30,
365,
18,
4901,
18,
4148,
2668,
15213,
5423,
67,
6354,
67,
7425,
30,
738,
86,
11,
738,
261,
1717,
3482,
16,
3719,
309,
720,
3482,
63,
21,
30,
22,
65,
422,
7855,
67,
12536,
57,
6331,
1777,
30,
5114,
273,
365,
18,
8818,
18,
12124,
1100,
5141,
775,
30,
261,
2890,
18,
8818,
18,
12124,
1100,
5141,
16,
13,
273,
1958,
18,
17309,
2932,
5,
2
] |
self._canvas.lower(item) | def fill(self, flag): if self._filling: path = tuple(self._path) smooth = self._filling < 0 if len(path) > 2: item = self._canvas._create('polygon', path, {'fill': self._color, 'smooth': smooth}) self._items.append(item) self._canvas.lower(item) if self._tofill: for item in self._tofill: self._canvas.itemconfigure(item, fill=self._color) self._items.append(item) self._path = [] self._tofill = [] self._filling = flag if flag: self._path.append(self._position) self.forward(0) | 6c71e658f535ce74e59f94a4f5de2adca0b56ccc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6c71e658f535ce74e59f94a4f5de2adca0b56ccc/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
12,
2890,
16,
2982,
4672,
309,
365,
6315,
74,
5789,
30,
589,
273,
3193,
12,
2890,
6315,
803,
13,
11957,
273,
365,
6315,
74,
5789,
411,
374,
309,
562,
12,
803,
13,
405,
576,
30,
761,
273,
365,
6315,
15424,
6315,
2640,
2668,
20917,
2187,
589,
16,
13666,
5935,
4278,
365,
6315,
3266,
16,
296,
26647,
4278,
11957,
6792,
365,
6315,
3319,
18,
6923,
12,
1726,
13,
309,
365,
6315,
88,
792,
737,
30,
364,
761,
316,
365,
6315,
88,
792,
737,
30,
365,
6315,
15424,
18,
1726,
14895,
12,
1726,
16,
3636,
33,
2890,
6315,
3266,
13,
365,
6315,
3319,
18,
6923,
12,
1726,
13,
365,
6315,
803,
273,
5378,
365,
6315,
88,
792,
737,
273,
5378,
365,
6315,
74,
5789,
273,
2982,
309,
2982,
30,
365,
6315,
803,
18,
6923,
12,
2890,
6315,
3276,
13,
365,
18,
11565,
12,
20,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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30,
761,
273,
365,
6315,
15424,
6315,
2640,
2668,
20917,
2187,
589,
16,
13666,
5935,
4278,
365,
6315,
3266,
16,
296,
26647,
4278,
11957,
6792,
365,
6315,
3319,
18,
6923,
12,
1726,
13,
309,
365,
6315,
88,
792,
737,
30,
364,
761,
316,
365,
6315,
88,
792,
737,
30,
365,
6315,
15424,
18,
1726,
14895,
12,
1726,
16,
3636,
33,
2890,
6315,
3266,
13,
365,
6315,
3319,
18,
6923,
12,
1726,
13,
365,
6315,
803,
273,
5378,
365,
6315,
88,
792,
737,
273,
2
] | |
for slot in range(max(showslot - 1,0), lastslot): if item.slot(slot).done() == '1' \ | for slot in item.slots(): if slot.slotType() != 'player': continue if slot.done() == '1' \ | def materialsReport(self, itemlist, showslot = 0): self.MMLabel.show() self.MatMultiplier.show() self.setWindowTitle('Materials Report') self.materials = { 'Gems' : { }, 'Liquids' : {}, 'Dusts': {} } self.gemnames = { } self.totalcost = 0 if showslot == 0: lastslot = 6 else: lastslot = showslot for loc, item in itemlist.items(): if item.ActiveState != 'player': continue for slot in range(max(showslot - 1,0), lastslot): if item.slot(slot).done() == '1' \ and showslot == 0 \ and self.parent.showDoneInMatsList: continue gemtype = item.slot(slot).type() effect = item.slot(slot).effect() amount = item.slot(slot).amount() for mattype, matl in item.slot(slot).gemMaterials(self.parent.realm).items(): for mat, val in matl.items(): if self.materials[mattype].has_key(mat): self.materials[mattype][mat] += val else: self.materials[mattype][mat] = val if gemtype == 'Unused': continue gemname = item.slot(slot).gemName(self.parent.realm) if self.gemnames.has_key(gemname): self.gemnames[gemname] += 1 else: self.gemnames[gemname] = 1 | eb3bd85de50e071054a6ffd440f51ac6f14f60b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/eb3bd85de50e071054a6ffd440f51ac6f14f60b1/ReportWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31824,
4820,
12,
2890,
16,
761,
1098,
16,
2405,
14194,
273,
374,
4672,
365,
18,
49,
1495,
873,
18,
4500,
1435,
365,
18,
15947,
23365,
18,
4500,
1435,
365,
18,
542,
3829,
4247,
2668,
11790,
87,
8706,
6134,
365,
18,
20542,
87,
273,
288,
296,
43,
7424,
11,
294,
288,
19879,
296,
48,
18988,
2232,
11,
294,
10615,
296,
40,
641,
87,
4278,
2618,
289,
365,
18,
23465,
1973,
273,
288,
289,
365,
18,
4963,
12398,
273,
374,
309,
2405,
14194,
422,
374,
30,
1142,
14194,
273,
1666,
469,
30,
1142,
14194,
273,
2405,
14194,
364,
1515,
16,
761,
316,
761,
1098,
18,
3319,
13332,
309,
761,
18,
3896,
1119,
480,
296,
14872,
4278,
1324,
364,
4694,
316,
761,
18,
18875,
13332,
309,
4694,
18,
14194,
559,
1435,
480,
296,
14872,
4278,
1324,
309,
4694,
18,
8734,
1435,
422,
296,
21,
11,
521,
471,
2405,
14194,
422,
374,
521,
471,
365,
18,
2938,
18,
4500,
7387,
382,
49,
2323,
682,
30,
1324,
17474,
723,
273,
761,
18,
14194,
12,
14194,
2934,
723,
1435,
5426,
273,
761,
18,
14194,
12,
14194,
2934,
13867,
1435,
3844,
273,
761,
18,
14194,
12,
14194,
2934,
8949,
1435,
364,
4834,
723,
16,
4834,
80,
316,
761,
18,
14194,
12,
14194,
2934,
23465,
11790,
87,
12,
2890,
18,
2938,
18,
24056,
2934,
3319,
13332,
364,
4834,
16,
1244,
316,
4834,
80,
18,
3319,
13332,
309,
365,
18,
20542,
87,
63,
7373,
723,
8009,
5332,
67,
856,
12,
7373,
4672,
365,
18,
20542,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31824,
4820,
12,
2890,
16,
761,
1098,
16,
2405,
14194,
273,
374,
4672,
365,
18,
49,
1495,
873,
18,
4500,
1435,
365,
18,
15947,
23365,
18,
4500,
1435,
365,
18,
542,
3829,
4247,
2668,
11790,
87,
8706,
6134,
365,
18,
20542,
87,
273,
288,
296,
43,
7424,
11,
294,
288,
19879,
296,
48,
18988,
2232,
11,
294,
10615,
296,
40,
641,
87,
4278,
2618,
289,
365,
18,
23465,
1973,
273,
288,
289,
365,
18,
4963,
12398,
273,
374,
309,
2405,
14194,
422,
374,
30,
1142,
14194,
273,
1666,
469,
30,
1142,
14194,
273,
2405,
14194,
364,
1515,
16,
761,
316,
761,
1098,
18,
3319,
13332,
309,
761,
18,
3896,
1119,
480,
296,
14872,
4278,
1324,
364,
4694,
316,
2
] |
self.disconnect("Connection reset by peer.") | self.disconnect("Connection reset by peer") | def privmsg(self, string): """Send data to DCC peer. | 30d79e85854b7dc034c00c4ae9de3eb9fcf959b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9915/30d79e85854b7dc034c00c4ae9de3eb9fcf959b0/irclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6015,
3576,
12,
2890,
16,
533,
4672,
3536,
3826,
501,
358,
463,
6743,
4261,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6015,
3576,
12,
2890,
16,
533,
4672,
3536,
3826,
501,
358,
463,
6743,
4261,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.setDaemon(False) | self.set_daemon(False) | def __init__(self, certificate, ssl_version=None, certreqs=None, cacerts=None, expect_bad_connects=False, chatty=True, connectionchatty=False, starttls_server=False): if ssl_version is None: ssl_version = ssl.PROTOCOL_TLSv1 if certreqs is None: certreqs = ssl.CERT_NONE self.certificate = certificate self.protocol = ssl_version self.certreqs = certreqs self.cacerts = cacerts self.expect_bad_connects = expect_bad_connects self.chatty = chatty self.connectionchatty = connectionchatty self.starttls_server = starttls_server self.sock = socket.socket() self.port = support.bind_port(self.sock) self.flag = None self.active = False threading.Thread.__init__(self) self.setDaemon(False) | 0453b41ee11c44cbeb3aee45f5f15c32a9767585 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/0453b41ee11c44cbeb3aee45f5f15c32a9767585/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4944,
16,
5832,
67,
1589,
33,
7036,
16,
3320,
25782,
33,
7036,
16,
276,
1077,
1051,
87,
33,
7036,
16,
4489,
67,
8759,
67,
3612,
87,
33,
8381,
16,
7916,
4098,
33,
5510,
16,
1459,
10880,
4098,
33,
8381,
16,
787,
17116,
67,
3567,
33,
8381,
4672,
309,
5832,
67,
1589,
353,
599,
30,
5832,
67,
1589,
273,
5832,
18,
16850,
67,
9905,
90,
21,
309,
3320,
25782,
353,
599,
30,
3320,
25782,
273,
5832,
18,
22367,
67,
9826,
365,
18,
14108,
273,
4944,
365,
18,
8373,
273,
5832,
67,
1589,
365,
18,
7593,
25782,
273,
3320,
25782,
365,
18,
71,
1077,
1051,
87,
273,
276,
1077,
1051,
87,
365,
18,
12339,
67,
8759,
67,
3612,
87,
273,
4489,
67,
8759,
67,
3612,
87,
365,
18,
10880,
4098,
273,
7916,
4098,
365,
18,
4071,
10880,
4098,
273,
1459,
10880,
4098,
365,
18,
1937,
17116,
67,
3567,
273,
787,
17116,
67,
3567,
365,
18,
15031,
273,
2987,
18,
7814,
1435,
365,
18,
655,
273,
2865,
18,
4376,
67,
655,
12,
2890,
18,
15031,
13,
365,
18,
6420,
273,
599,
365,
18,
3535,
273,
1083,
17254,
18,
3830,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
12858,
12,
8381,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4944,
16,
5832,
67,
1589,
33,
7036,
16,
3320,
25782,
33,
7036,
16,
276,
1077,
1051,
87,
33,
7036,
16,
4489,
67,
8759,
67,
3612,
87,
33,
8381,
16,
7916,
4098,
33,
5510,
16,
1459,
10880,
4098,
33,
8381,
16,
787,
17116,
67,
3567,
33,
8381,
4672,
309,
5832,
67,
1589,
353,
599,
30,
5832,
67,
1589,
273,
5832,
18,
16850,
67,
9905,
90,
21,
309,
3320,
25782,
353,
599,
30,
3320,
25782,
273,
5832,
18,
22367,
67,
9826,
365,
18,
14108,
273,
4944,
365,
18,
8373,
273,
5832,
67,
1589,
365,
18,
7593,
25782,
273,
3320,
25782,
365,
18,
71,
1077,
1051,
87,
273,
276,
1077,
1051,
87,
365,
18,
12339,
2
] |
del oldMenu | oldMenu.Destroy() | def ReplaceViewParcelMenu(self): """ Override to customize your parcel menu. """ mainFrameId = id(app.model.mainFrame) if app.association.has_key(mainFrameId): mainFrame = app.association[mainFrameId] menuBar = mainFrame.GetMenuBar () menuIndex = menuBar.FindMenu (_('View')) + 1 assert (menuIndex != wxNOT_FOUND) noParcelMenu = menuBar.FindMenu(_('Help')) == menuIndex | 70b6fbe3ca3f0126515d7df2588df6bb3d50f883 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/70b6fbe3ca3f0126515d7df2588df6bb3d50f883/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,
2774,
3219,
548,
273,
612,
12,
2910,
18,
2284,
18,
5254,
3219,
13,
309,
595,
18,
19358,
18,
5332,
67,
856,
12,
5254,
3219,
548,
4672,
2774,
3219,
273,
595,
18,
19358,
63,
5254,
3219,
548,
65,
3824,
5190,
273,
2774,
3219,
18,
967,
4599,
5190,
1832,
3824,
1016,
273,
3824,
5190,
18,
3125,
4599,
261,
67,
2668,
1767,
26112,
397,
404,
1815,
261,
5414,
1016,
480,
7075,
4400,
67,
9294,
13,
1158,
1553,
2183,
4599,
273,
3824,
5190,
18,
3125,
4599,
24899,
2668,
6696,
26112,
422,
3824,
1016,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6910,
1767,
1553,
2183,
4599,
12,
2890,
4672,
3536,
1439,
358,
20236,
3433,
779,
2183,
3824,
18,
3536,
2774,
3219,
548,
273,
612,
12,
2910,
18,
2284,
18,
5254,
3219,
13,
309,
595,
18,
19358,
18,
5332,
67,
856,
12,
5254,
3219,
548,
4672,
2774,
3219,
273,
595,
18,
19358,
63,
5254,
3219,
548,
65,
3824,
5190,
273,
2774,
3219,
18,
967,
4599,
5190,
1832,
3824,
1016,
273,
3824,
5190,
18,
3125,
4599,
261,
67,
2668,
1767,
26112,
397,
404,
1815,
261,
5414,
1016,
480,
7075,
4400,
67,
9294,
13,
1158,
1553,
2183,
4599,
273,
3824,
5190,
18,
3125,
4599,
24899,
2668,
6696,
26112,
422,
3824,
1016,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
files = list(files) | def manage_FTPlist(self, REQUEST): """Directory listing for FTP. """ out=() | aa16e4594e7c5987bb70b83ee24ff70996bf7aa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/aa16e4594e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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10680,
67,
17104,
1098,
12,
2890,
16,
12492,
4672,
3536,
2853,
11591,
364,
19324,
18,
3536,
596,
33,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
elif google and isinstance(data, google.appengine.ext.db.Query): | elif appengine and isinstance(data, appengine.ext.db.Query): | def _any(data): ret = None # Opps, we used to check if it is of type list, but that fails # i.e. in the case of django.newforms.utils.ErrorList, which extends # the type "list". Oh man, that was a dumb mistake! if isinstance(data, list): ret = _list(data) # Same as for lists above. elif google and isinstance(data, google.appengine.ext.db.Query): ret = _list(data) elif isinstance(data, dict): ret = _dict(data) elif isinstance(data, Decimal): # json.dumps() cant handle Decimal ret = str(data) elif isinstance(data, QuerySet): # Actually its the same as a list ... ret = _list(data) elif isinstance(data, Model): ret = _model(data) elif google and isinstance(data, google.appengine.ext.db.Model): ret = _googleModel(data) # here we need to encode the string as unicode (otherwise we get utf-16 in the json-response) elif isinstance(data, basestring): ret = unicode(data) # see http://code.djangoproject.com/ticket/5868 elif isinstance(data, Promise): ret = force_unicode(data) elif isinstance(data, datetime.datetime): # For dojo.date.stamp we convert the dates to use 'T' as separator instead of space # i.e. 2008-01-01T10:10:10 instead of 2008-01-01 10:10:10 ret = str(data).replace(' ', 'T') elif isinstance(data, datetime.date): ret = str(data) elif isinstance(data, datetime.time): ret = "T" + str(data) else: ret = data return ret | 2fec64b9ba0f1a17aee81d2d5a89857585fe46c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12008/2fec64b9ba0f1a17aee81d2d5a89857585fe46c2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2273,
12,
892,
4672,
325,
273,
599,
468,
6066,
1121,
16,
732,
1399,
358,
866,
309,
518,
353,
434,
618,
666,
16,
1496,
716,
6684,
468,
277,
18,
73,
18,
316,
326,
648,
434,
13710,
18,
2704,
9741,
18,
5471,
18,
668,
682,
16,
1492,
3231,
468,
326,
618,
315,
1098,
9654,
531,
76,
3161,
16,
716,
1703,
279,
302,
3592,
27228,
911,
5,
309,
1549,
12,
892,
16,
666,
4672,
325,
273,
389,
1098,
12,
892,
13,
468,
17795,
487,
364,
6035,
5721,
18,
1327,
595,
8944,
471,
1549,
12,
892,
16,
595,
8944,
18,
408,
18,
1966,
18,
1138,
4672,
325,
273,
389,
1098,
12,
892,
13,
1327,
1549,
12,
892,
16,
2065,
4672,
325,
273,
389,
1576,
12,
892,
13,
1327,
1549,
12,
892,
16,
11322,
4672,
468,
1163,
18,
13302,
1121,
1435,
848,
88,
1640,
11322,
325,
273,
609,
12,
892,
13,
1327,
1549,
12,
892,
16,
2770,
694,
4672,
468,
4603,
3452,
2097,
326,
1967,
487,
279,
666,
1372,
325,
273,
389,
1098,
12,
892,
13,
1327,
1549,
12,
892,
16,
3164,
4672,
325,
273,
389,
2284,
12,
892,
13,
1327,
5200,
471,
1549,
12,
892,
16,
5200,
18,
438,
1907,
2388,
18,
408,
18,
1966,
18,
1488,
4672,
325,
273,
389,
9536,
1488,
12,
892,
13,
468,
2674,
732,
1608,
358,
2017,
326,
533,
487,
5252,
261,
29778,
732,
336,
7718,
17,
2313,
316,
326,
1163,
17,
2740,
13,
1327,
1549,
12,
892,
16,
10699,
4672,
325,
273,
5252,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2273,
12,
892,
4672,
325,
273,
599,
468,
6066,
1121,
16,
732,
1399,
358,
866,
309,
518,
353,
434,
618,
666,
16,
1496,
716,
6684,
468,
277,
18,
73,
18,
316,
326,
648,
434,
13710,
18,
2704,
9741,
18,
5471,
18,
668,
682,
16,
1492,
3231,
468,
326,
618,
315,
1098,
9654,
531,
76,
3161,
16,
716,
1703,
279,
302,
3592,
27228,
911,
5,
309,
1549,
12,
892,
16,
666,
4672,
325,
273,
389,
1098,
12,
892,
13,
468,
17795,
487,
364,
6035,
5721,
18,
1327,
595,
8944,
471,
1549,
12,
892,
16,
595,
8944,
18,
408,
18,
1966,
18,
1138,
4672,
325,
273,
389,
1098,
12,
892,
13,
1327,
1549,
12,
892,
16,
2065,
4672,
325,
2
] |
end = result.find('\n') -1 | end = result.find('\n') | def dht_lookup(gp, nam): #gp.fout.write("DHT look up\n") cmd = "hipconf dht get " + nam + " 2>&1" #gp.fout.write("Command: %s\n" % (cmd)) p = os.popen(cmd, "r") result = p.readline() while result: start = result.find("2001:001") end = result.find('\n') -1 if start != -1 and end != -1: return result[start:end] result = p.readline() return None | 920ca02f09012cdc7e4ba1ee2530c8cdd3f9c7e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6933/920ca02f09012cdc7e4ba1ee2530c8cdd3f9c7e7/dnsproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
647,
67,
8664,
12,
6403,
16,
15135,
4672,
468,
6403,
18,
617,
322,
18,
2626,
2932,
40,
5062,
2324,
731,
64,
82,
7923,
1797,
273,
315,
5310,
3923,
302,
647,
336,
315,
397,
15135,
397,
315,
576,
22393,
21,
6,
468,
6403,
18,
617,
322,
18,
2626,
2932,
2189,
30,
738,
87,
64,
82,
6,
738,
261,
4172,
3719,
293,
273,
1140,
18,
84,
3190,
12,
4172,
16,
315,
86,
7923,
563,
273,
293,
18,
896,
1369,
1435,
1323,
563,
30,
787,
273,
563,
18,
4720,
2932,
6976,
21,
30,
11664,
7923,
679,
273,
563,
18,
4720,
2668,
64,
82,
6134,
309,
787,
480,
300,
21,
471,
679,
480,
300,
21,
30,
327,
563,
63,
1937,
30,
409,
65,
563,
273,
293,
18,
896,
1369,
1435,
327,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
302,
647,
67,
8664,
12,
6403,
16,
15135,
4672,
468,
6403,
18,
617,
322,
18,
2626,
2932,
40,
5062,
2324,
731,
64,
82,
7923,
1797,
273,
315,
5310,
3923,
302,
647,
336,
315,
397,
15135,
397,
315,
576,
22393,
21,
6,
468,
6403,
18,
617,
322,
18,
2626,
2932,
2189,
30,
738,
87,
64,
82,
6,
738,
261,
4172,
3719,
293,
273,
1140,
18,
84,
3190,
12,
4172,
16,
315,
86,
7923,
563,
273,
293,
18,
896,
1369,
1435,
1323,
563,
30,
787,
273,
563,
18,
4720,
2932,
6976,
21,
30,
11664,
7923,
679,
273,
563,
18,
4720,
2668,
64,
82,
6134,
309,
787,
480,
300,
21,
471,
679,
480,
300,
21,
30,
327,
563,
63,
1937,
30,
2
] |
if (subject and self._cmd_dispatch.has_key(string.split(subject)[0])): lines = [subject] + string.split(mail.body, '\n') | if (subject and self.__dispatch.has_key(string.split(subject)[0])): lines = [subject] + string.split(msg.body, '\n') | def ParseMailCommands(self): | 4b2df7e3d338f55697b3a243715d01d52d223317 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/4b2df7e3d338f55697b3a243715d01d52d223317/MailCommandHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
6759,
9127,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2884,
6759,
9127,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
r = apply(func, args, kw) | if kw: r = apply(func, args, kw) else: r = apply(func, args) | def s_apply(self, func, *args, **kw): | e7b9fde1b8461b389f2bcc21350eb132a287f14b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e7b9fde1b8461b389f2bcc21350eb132a287f14b/rexec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
67,
9010,
12,
2890,
16,
1326,
16,
380,
1968,
16,
2826,
9987,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
counter[0] = [0] | counter[0] = 0 | def reset_counter(): counter[0] = [0] | 8244f70579a785683c03836eedb778cffae63571 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4645/8244f70579a785683c03836eedb778cffae63571/index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
67,
7476,
13332,
3895,
63,
20,
65,
273,
306,
20,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
326,
22398,
316,
326,
981,
30,
1652,
2715,
67,
7476,
13332,
3895,
63,
20,
65,
273,
306,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
result.append(self.key_list('SUP',self.sup,sep=' $ ')) | result.append(self.key_list('SUP',self.sup,sep=' ')) | def __str__(self): result = [str(self.ruleid)] result.append(self.key_list('NAME',self.names,quoted=1)) result.append(self.key_attr('DESC',self.desc,quoted=1)) result.append({0:'',1:' OBSOLETE'}[self.obsolete]) result.append(self.key_attr('FORM',self.form,quoted=0)) result.append(self.key_list('SUP',self.sup,sep=' $ ')) return '( %s )' % ''.join(result) | f805d9004859ee9c8bc13b124533faf839ff3769 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4610/f805d9004859ee9c8bc13b124533faf839ff3769/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
563,
273,
306,
701,
12,
2890,
18,
5345,
350,
25887,
563,
18,
6923,
12,
2890,
18,
856,
67,
1098,
2668,
1985,
2187,
2890,
18,
1973,
16,
15179,
33,
21,
3719,
563,
18,
6923,
12,
2890,
18,
856,
67,
1747,
2668,
10964,
2187,
2890,
18,
5569,
16,
15179,
33,
21,
3719,
563,
18,
6923,
12590,
20,
2497,
2187,
21,
2497,
9730,
3584,
4311,
11,
20294,
2890,
18,
10992,
19513,
5717,
563,
18,
6923,
12,
2890,
18,
856,
67,
1747,
2668,
4983,
2187,
2890,
18,
687,
16,
15179,
33,
20,
3719,
563,
18,
6923,
12,
2890,
18,
856,
67,
1098,
2668,
13272,
2187,
2890,
18,
2859,
16,
10814,
2218,
296,
3719,
327,
7747,
738,
87,
262,
11,
738,
875,
18,
5701,
12,
2088,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
563,
273,
306,
701,
12,
2890,
18,
5345,
350,
25887,
563,
18,
6923,
12,
2890,
18,
856,
67,
1098,
2668,
1985,
2187,
2890,
18,
1973,
16,
15179,
33,
21,
3719,
563,
18,
6923,
12,
2890,
18,
856,
67,
1747,
2668,
10964,
2187,
2890,
18,
5569,
16,
15179,
33,
21,
3719,
563,
18,
6923,
12590,
20,
2497,
2187,
21,
2497,
9730,
3584,
4311,
11,
20294,
2890,
18,
10992,
19513,
5717,
563,
18,
6923,
12,
2890,
18,
856,
67,
1747,
2668,
4983,
2187,
2890,
18,
687,
16,
15179,
33,
20,
3719,
563,
18,
6923,
12,
2890,
18,
856,
67,
1098,
2668,
13272,
2187,
2890,
18,
2859,
16,
10814,
2218,
296,
3719,
327,
7747,
738,
2
] |
dsp_file=r"com\Active Debugging.dsp", libraries="axscript", pch_header = "stdafx.h", optional_headers = ["activdbg.h"], | libraries="axscript msdbg", pch_header="stdafx.h", optional_headers=["activdbg.h"], sources=(""" %(axdebug)s/AXDebug.cpp %(axdebug)s/PyIActiveScriptDebug.cpp %(axdebug)s/PyIActiveScriptErrorDebug.cpp %(axdebug)s/PyIActiveScriptSiteDebug.cpp %(axdebug)s/PyIApplicationDebugger.cpp %(axdebug)s/PyIDebugApplication.cpp %(axdebug)s/PyIDebugApplicationNode.cpp %(axdebug)s/PyIDebugApplicationNodeEvents.cpp %(axdebug)s/PyIDebugApplicationThread.cpp %(axdebug)s/PyIDebugCodeContext.cpp %(axdebug)s/PyIDebugDocument.cpp %(axdebug)s/PyIDebugDocumentContext.cpp %(axdebug)s/PyIDebugDocumentHelper.cpp %(axdebug)s/PyIDebugDocumentHost.cpp %(axdebug)s/PyIDebugDocumentInfo.cpp %(axdebug)s/PyIDebugDocumentProvider.cpp %(axdebug)s/PyIDebugDocumentText.cpp %(axdebug)s/PyIDebugDocumentTextAuthor.cpp %(axdebug)s/PyIDebugDocumentTextEvents.cpp %(axdebug)s/PyIDebugDocumentTextExternalAuthor.cpp %(axdebug)s/PyIDebugExpression.cpp %(axdebug)s/PyIDebugExpressionCallBack.cpp %(axdebug)s/PyIDebugExpressionContext.cpp %(axdebug)s/PyIDebugProperties.cpp %(axdebug)s/PyIDebugSessionProvider.cpp %(axdebug)s/PyIDebugStackFrame.cpp %(axdebug)s/PyIDebugStackFrameSniffer.cpp %(axdebug)s/PyIDebugStackFrameSnifferEx.cpp %(axdebug)s/PyIDebugSyncOperation.cpp %(axdebug)s/PyIEnumDebugApplicationNodes.cpp %(axdebug)s/PyIEnumDebugCodeContexts.cpp %(axdebug)s/PyIEnumDebugExpressionContexts.cpp %(axdebug)s/PyIEnumDebugPropertyInfo.cpp %(axdebug)s/PyIEnumDebugStackFrames.cpp %(axdebug)s/PyIEnumRemoteDebugApplications.cpp %(axdebug)s/PyIEnumRemoteDebugApplicationThreads.cpp %(axdebug)s/PyIMachineDebugManager.cpp %(axdebug)s/PyIMachineDebugManagerEvents.cpp %(axdebug)s/PyIProcessDebugManager.cpp %(axdebug)s/PyIProvideExpressionContexts.cpp %(axdebug)s/PyIRemoteDebugApplication.cpp %(axdebug)s/PyIRemoteDebugApplicationEvents.cpp %(axdebug)s/PyIRemoteDebugApplicationThread.cpp %(axdebug)s/stdafx.cpp """ % dirs).split(), | def finalize_options(self): if self.install_dir is None: installobj = self.distribution.get_command_obj('install') self.install_dir = installobj.install_lib print 'Installing data files to %s' % self.install_dir install_data.finalize_options(self) | 108c74ad682fc2de5f9ab6ea268d714ded2f823c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/992/108c74ad682fc2de5f9ab6ea268d714ded2f823c/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
67,
2116,
12,
2890,
4672,
309,
365,
18,
5425,
67,
1214,
353,
599,
30,
1804,
287,
383,
441,
273,
365,
18,
16279,
18,
588,
67,
3076,
67,
2603,
2668,
5425,
6134,
365,
18,
5425,
67,
1214,
273,
1804,
287,
383,
441,
18,
5425,
67,
2941,
1172,
296,
6410,
310,
501,
1390,
358,
738,
87,
11,
738,
365,
18,
5425,
67,
1214,
3799,
67,
892,
18,
30343,
67,
2116,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12409,
67,
2116,
12,
2890,
4672,
309,
365,
18,
5425,
67,
1214,
353,
599,
30,
1804,
287,
383,
441,
273,
365,
18,
16279,
18,
588,
67,
3076,
67,
2603,
2668,
5425,
6134,
365,
18,
5425,
67,
1214,
273,
1804,
287,
383,
441,
18,
5425,
67,
2941,
1172,
296,
6410,
310,
501,
1390,
358,
738,
87,
11,
738,
365,
18,
5425,
67,
1214,
3799,
67,
892,
18,
30343,
67,
2116,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
debug_print("compiled new " + type) | from pypy.jit.metainterp.pyjitpl import DEBUG if DEBUG > 0: debug_print("compiled new " + type) | def send_loop_to_backend(metainterp, loop, type): metainterp.cpu.compile_operations(loop) if not we_are_translated(): if type != "entry bridge": metainterp.staticdata.stats.compiled_count += 1 else: loop._ignore_during_counting = True log.info("compiled new " + type) else: debug_print("compiled new " + type) | 481efb91193a67c192d86c98dbf97d572e22d9ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/481efb91193a67c192d86c98dbf97d572e22d9ee/compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
6498,
67,
869,
67,
9993,
12,
10578,
11606,
84,
16,
2798,
16,
618,
4672,
5100,
11606,
84,
18,
11447,
18,
11100,
67,
17542,
12,
6498,
13,
309,
486,
732,
67,
834,
67,
22899,
13332,
309,
618,
480,
315,
4099,
10105,
6877,
5100,
11606,
84,
18,
3845,
892,
18,
5296,
18,
19397,
67,
1883,
1011,
404,
469,
30,
2798,
6315,
6185,
67,
72,
4017,
67,
1883,
310,
273,
1053,
613,
18,
1376,
2932,
19397,
394,
315,
397,
618,
13,
469,
30,
628,
18951,
93,
18,
78,
305,
18,
10578,
11606,
84,
18,
2074,
78,
305,
412,
1930,
6369,
309,
6369,
405,
374,
30,
1198,
67,
1188,
2932,
19397,
394,
315,
397,
618,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
6498,
67,
869,
67,
9993,
12,
10578,
11606,
84,
16,
2798,
16,
618,
4672,
5100,
11606,
84,
18,
11447,
18,
11100,
67,
17542,
12,
6498,
13,
309,
486,
732,
67,
834,
67,
22899,
13332,
309,
618,
480,
315,
4099,
10105,
6877,
5100,
11606,
84,
18,
3845,
892,
18,
5296,
18,
19397,
67,
1883,
1011,
404,
469,
30,
2798,
6315,
6185,
67,
72,
4017,
67,
1883,
310,
273,
1053,
613,
18,
1376,
2932,
19397,
394,
315,
397,
618,
13,
469,
30,
628,
18951,
93,
18,
78,
305,
18,
10578,
11606,
84,
18,
2074,
78,
305,
412,
1930,
6369,
309,
6369,
405,
374,
30,
1198,
67,
1188,
2932,
19397,
394,
315,
397,
618,
13,
225,
2,
-100,
-100,
-100
] |
valid_image_csum_vec = 5 | valid_image_csum_vec = self.get_cpu_parm("csum_vec", 5) | def insert_csum(self, orig_image): # make this a valid image by inserting a checksum in the correct place intvecs = struct.unpack("<8I", orig_image[0:32]) | 61e0fa6efabcd097811e19eb86095391bb68bf26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1457/61e0fa6efabcd097811e19eb86095391bb68bf26/nxpprog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
67,
71,
1364,
12,
2890,
16,
1647,
67,
2730,
4672,
468,
1221,
333,
279,
923,
1316,
635,
21079,
279,
6697,
316,
326,
3434,
3166,
509,
27698,
273,
1958,
18,
17309,
2932,
32,
28,
45,
3113,
1647,
67,
2730,
63,
20,
30,
1578,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2243,
67,
71,
1364,
12,
2890,
16,
1647,
67,
2730,
4672,
468,
1221,
333,
279,
923,
1316,
635,
21079,
279,
6697,
316,
326,
3434,
3166,
509,
27698,
273,
1958,
18,
17309,
2932,
32,
28,
45,
3113,
1647,
67,
2730,
63,
20,
30,
1578,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
out.write('distl_binned_image_spot_size=10\n') | out.write('distl_binned_image_spot_size = 10\n') | def _write_dataset_preferences(self): '''Write the dataset_preferences.py file in the working directory - this will include the beam centres etc.''' | b577ffbb2af8e67da81d91b2b24fbeebfe6acfef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/b577ffbb2af8e67da81d91b2b24fbeebfe6acfef/LabelitScreen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
8682,
67,
23219,
12,
2890,
4672,
9163,
3067,
326,
3709,
67,
23219,
18,
2074,
585,
316,
326,
5960,
1867,
300,
333,
903,
2341,
326,
16751,
8301,
455,
5527,
1093,
6309,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2626,
67,
8682,
67,
23219,
12,
2890,
4672,
9163,
3067,
326,
3709,
67,
23219,
18,
2074,
585,
316,
326,
5960,
1867,
300,
333,
903,
2341,
326,
16751,
8301,
455,
5527,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def _do_resync(self, reponame, rev=None, clean=True): | def _sync(self, reponame, rev, clean): | def _do_resync(self, reponame, rev=None, clean=True): rm = RepositoryManager(self.env) if reponame == '*': if rev is not None: raise TracError(_('Cannot synchronize a single revision ' 'on multiple repositories')) repositories = rm.get_real_repositories(None) else: if reponame == '(default)': reponame = '' repos = rm.get_repository(reponame, None) if repos is None: raise TracError(_("Unknown repository '%(reponame)s'", reponame=reponame or '(default)')) if rev is not None: repos.sync_changeset(rev) printout(_('%(rev)s resynced on %(reponame)s.', rev=rev, reponame=repos.reponame or '(default)')) return repositories = [repos] from trac.versioncontrol.cache import CACHE_METADATA_KEYS db = self.env.get_db_cnx() cursor = db.cursor() inval = False for repos in sorted(repositories, key=lambda r: r.reponame): reponame = repos.reponame printout(_('Resyncing repository history for %(reponame)s... ', reponame=reponame or '(default)')) if clean: cursor.execute("DELETE FROM revision WHERE repos=%s", (reponame,)) cursor.execute("DELETE FROM node_change " "WHERE repos=%s", (reponame,)) cursor.executemany("DELETE FROM repository " "WHERE id=%s AND name=%s", [(reponame, k) for k in CACHE_METADATA_KEYS]) cursor.executemany("INSERT INTO repository (id, name, value) " "VALUES (%s, %s, %s)", [(reponame, k, '') for k in CACHE_METADATA_KEYS]) db.commit() if repos.sync(self._resync_feedback): inval = True cursor.execute("SELECT count(rev) FROM revision WHERE repos=%s", (reponame,)) for cnt, in cursor: printout(ngettext('%(num)s revision cached.', '%(num)s revisions cached.', num=cnt)) if inval: self.config.touch() # FIXME: Brute force printout(_('Done.')) | a71236dfd0981393512b53cd578cb5e61387797d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/a71236dfd0981393512b53cd578cb5e61387797d/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8389,
12,
2890,
16,
283,
500,
339,
16,
5588,
16,
2721,
4672,
6692,
273,
6281,
1318,
12,
2890,
18,
3074,
13,
309,
283,
500,
339,
422,
5306,
30,
309,
5588,
353,
486,
599,
30,
1002,
2197,
71,
668,
24899,
2668,
4515,
16978,
279,
2202,
6350,
296,
296,
265,
3229,
14531,
26112,
14531,
273,
6692,
18,
588,
67,
7688,
67,
26626,
12,
7036,
13,
469,
30,
309,
283,
500,
339,
422,
7747,
1886,
2506,
30,
283,
500,
339,
273,
875,
13686,
273,
6692,
18,
588,
67,
9071,
12,
266,
500,
339,
16,
599,
13,
309,
13686,
353,
599,
30,
1002,
2197,
71,
668,
24899,
2932,
4874,
3352,
21063,
266,
500,
339,
13,
87,
11,
3113,
283,
500,
339,
33,
266,
500,
339,
578,
7747,
1886,
2506,
3719,
309,
5588,
353,
486,
599,
30,
13686,
18,
8389,
67,
6329,
278,
12,
9083,
13,
1172,
659,
24899,
2668,
17105,
9083,
13,
87,
400,
878,
3263,
603,
8975,
266,
500,
339,
13,
87,
1093,
16,
5588,
33,
9083,
16,
283,
500,
339,
33,
15564,
18,
266,
500,
339,
578,
7747,
1886,
2506,
3719,
327,
14531,
273,
306,
15564,
65,
225,
628,
1284,
71,
18,
1589,
7098,
18,
2493,
1930,
13669,
67,
22746,
67,
16333,
1319,
273,
365,
18,
3074,
18,
588,
67,
1966,
67,
10305,
92,
1435,
3347,
273,
1319,
18,
9216,
1435,
316,
1125,
273,
1083,
364,
13686,
316,
3115,
12,
26626,
16,
498,
33,
14661,
436,
30,
436,
18,
266,
500,
339,
4672,
283,
500,
339,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8389,
12,
2890,
16,
283,
500,
339,
16,
5588,
16,
2721,
4672,
6692,
273,
6281,
1318,
12,
2890,
18,
3074,
13,
309,
283,
500,
339,
422,
5306,
30,
309,
5588,
353,
486,
599,
30,
1002,
2197,
71,
668,
24899,
2668,
4515,
16978,
279,
2202,
6350,
296,
296,
265,
3229,
14531,
26112,
14531,
273,
6692,
18,
588,
67,
7688,
67,
26626,
12,
7036,
13,
469,
30,
309,
283,
500,
339,
422,
7747,
1886,
2506,
30,
283,
500,
339,
273,
875,
13686,
273,
6692,
18,
588,
67,
9071,
12,
266,
500,
339,
16,
599,
13,
309,
13686,
353,
599,
30,
1002,
2197,
71,
668,
24899,
2932,
4874,
3352,
21063,
266,
500,
339,
13,
87,
11,
3113,
283,
500,
339,
2
] |
None, | # typedef void (*lc_callback)(uint32_t, uint32_t, uint32_t, void*); | 252469d959d952d07c6c2b796be96c97a8628abc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3138/252469d959d952d07c6c2b796be96c97a8628abc/libconcord.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
618,
536,
918,
261,
14,
17704,
67,
3394,
21433,
11890,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
918,
14,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
468,
618,
536,
918,
261,
14,
17704,
67,
3394,
21433,
11890,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
918,
14,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
value = FileUpload.read() result = mx_tidy(wrapValueInHTML(value), **MX_TIDY_OPTIONS) | value.seek(0) value = value.read() else: value = wrapValueInHTML(value) result = mx_tidy(value, **MX_TIDY_OPTIONS) | def doTidy(value, field, request, cleanup=0): """Tidy the data in 'value' for the field in the current request Optional cleanup: * removes header/footer of the output data * Removes warnings from the error data Return None for 'nothing done' else return (nerrors, nwarnings, outputdata, errordata) """ # we can't use the mimetype from the field because it's updated *after* # validation so we must get it from the request tf_name = '%s_text_format' % field.getName() text_format = getattr(request, tf_name, '') # MX_TIDY_MIMETYPES configuration option isn't empty # and the current text_format isn't in the list if MX_TIDY_MIMETYPES and text_format not in MX_TIDY_MIMETYPES: # do not filter this mime type return # it's a file upload if isinstance(value, FileUpload): # *mmh* ok it's a file upload but a file upload could destroy # the layout, too. value = FileUpload.read() result = mx_tidy(wrapValueInHTML(value), **MX_TIDY_OPTIONS) nerrors, nwarnings, outputdata, errordata = result # parse and change the error data errordata = parseErrorData(errordata, removeWarnings=cleanup) if cleanup: # unwrap tidied output data outputdata = unwrapValueFromHTML(outputdata) return nerrors, nwarnings, outputdata, errordata | bdf5a986663a8f97c6d5be70ced7f42f7487970e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11956/bdf5a986663a8f97c6d5be70ced7f42f7487970e/validators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
56,
29609,
12,
1132,
16,
652,
16,
590,
16,
6686,
33,
20,
4672,
3536,
56,
29609,
326,
501,
316,
296,
1132,
11,
364,
326,
652,
316,
326,
783,
590,
225,
4055,
6686,
30,
380,
7157,
1446,
19,
14723,
434,
326,
876,
501,
380,
20284,
5599,
628,
326,
555,
501,
225,
2000,
599,
364,
296,
30874,
2731,
11,
469,
327,
261,
82,
4324,
16,
290,
12103,
16,
876,
892,
16,
393,
517,
396,
13,
3536,
468,
732,
848,
1404,
999,
326,
12595,
628,
326,
652,
2724,
518,
1807,
3526,
380,
5205,
14,
468,
3379,
1427,
732,
1297,
336,
518,
628,
326,
590,
3253,
67,
529,
377,
273,
1995,
87,
67,
955,
67,
2139,
11,
738,
652,
18,
17994,
1435,
977,
67,
2139,
273,
3869,
12,
2293,
16,
3253,
67,
529,
16,
28707,
225,
468,
26929,
67,
56,
734,
61,
67,
18178,
10564,
1664,
1456,
5177,
1404,
1008,
468,
471,
326,
783,
977,
67,
2139,
5177,
1404,
316,
326,
666,
309,
26929,
67,
56,
734,
61,
67,
18178,
10564,
471,
977,
67,
2139,
486,
316,
26929,
67,
56,
734,
61,
67,
18178,
10564,
30,
468,
741,
486,
1034,
333,
4892,
618,
327,
225,
468,
518,
1807,
279,
585,
3617,
309,
1549,
12,
1132,
16,
1387,
4777,
4672,
468,
380,
7020,
76,
14,
1529,
518,
1807,
279,
585,
3617,
1496,
279,
585,
3617,
3377,
5546,
468,
326,
3511,
16,
4885,
18,
282,
460,
18,
16508,
12,
20,
13,
460,
273,
460,
18,
896,
1435,
469,
30,
460,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
56,
29609,
12,
1132,
16,
652,
16,
590,
16,
6686,
33,
20,
4672,
3536,
56,
29609,
326,
501,
316,
296,
1132,
11,
364,
326,
652,
316,
326,
783,
590,
225,
4055,
6686,
30,
380,
7157,
1446,
19,
14723,
434,
326,
876,
501,
380,
20284,
5599,
628,
326,
555,
501,
225,
2000,
599,
364,
296,
30874,
2731,
11,
469,
327,
261,
82,
4324,
16,
290,
12103,
16,
876,
892,
16,
393,
517,
396,
13,
3536,
468,
732,
848,
1404,
999,
326,
12595,
628,
326,
652,
2724,
518,
1807,
3526,
380,
5205,
14,
468,
3379,
1427,
732,
1297,
336,
518,
628,
326,
590,
3253,
67,
529,
377,
273,
1995,
87,
67,
955,
67,
2139,
11,
738,
652,
18,
17994,
2
] |
self.config = config | def __init__(self, msg, config): """Message constructor""" self.__class__.id += 1 self.id = self.__class__.id self.messageId = msg['Message-Id'] self.date = msg['Date'] self.From = msg['From'] self.getAddressFrom = msg.getaddr('From') self.to = msg['To'] #tip because decode_header returns the exception # ValueError: too many values to unpack #performance this tip subject_parted = msg['Subject'].split(' ') subject = '' for one in subject_parted: [(s, enconding)] = decode_header(one) if (subject == ''): subject = s else: subject += ' ' + s self.subject = subject #unicode(msg['Subject'], errors='ignore') self.body = msg.fp.read() #[(self.body, enconding)] = decode_header(msg.fp.read()) self.config = config | db9d8293a00f10e50dd314daeca038a9a8b57008 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2232/db9d8293a00f10e50dd314daeca038a9a8b57008/message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1234,
16,
642,
4672,
3536,
1079,
3885,
8395,
365,
16186,
1106,
25648,
350,
1011,
404,
365,
18,
350,
273,
365,
16186,
1106,
25648,
350,
365,
18,
2150,
548,
273,
1234,
3292,
1079,
17,
548,
3546,
365,
18,
712,
273,
1234,
3292,
1626,
3546,
365,
18,
1265,
273,
1234,
3292,
1265,
3546,
365,
18,
588,
1887,
1265,
273,
1234,
18,
588,
4793,
2668,
1265,
6134,
365,
18,
869,
273,
1234,
3292,
774,
3546,
225,
468,
14587,
2724,
2495,
67,
3374,
1135,
326,
1520,
468,
565,
2068,
30,
4885,
4906,
924,
358,
6167,
468,
16092,
1359,
333,
9529,
3221,
67,
2680,
329,
273,
1234,
3292,
6638,
29489,
4939,
2668,
8624,
3221,
273,
875,
364,
1245,
316,
3221,
67,
2680,
329,
30,
306,
12,
87,
16,
570,
591,
7459,
25887,
273,
2495,
67,
3374,
12,
476,
13,
309,
261,
7857,
422,
875,
4672,
3221,
273,
272,
469,
30,
3221,
1011,
296,
296,
397,
272,
365,
18,
7857,
273,
3221,
468,
9124,
12,
3576,
3292,
6638,
17337,
1334,
2218,
6185,
6134,
225,
365,
18,
3432,
273,
1234,
18,
7944,
18,
896,
1435,
468,
63,
12,
2890,
18,
3432,
16,
570,
591,
7459,
25887,
273,
2495,
67,
3374,
12,
3576,
18,
7944,
18,
896,
10756,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1234,
16,
642,
4672,
3536,
1079,
3885,
8395,
365,
16186,
1106,
25648,
350,
1011,
404,
365,
18,
350,
273,
365,
16186,
1106,
25648,
350,
365,
18,
2150,
548,
273,
1234,
3292,
1079,
17,
548,
3546,
365,
18,
712,
273,
1234,
3292,
1626,
3546,
365,
18,
1265,
273,
1234,
3292,
1265,
3546,
365,
18,
588,
1887,
1265,
273,
1234,
18,
588,
4793,
2668,
1265,
6134,
365,
18,
869,
273,
1234,
3292,
774,
3546,
225,
468,
14587,
2724,
2495,
67,
3374,
1135,
326,
1520,
468,
565,
2068,
30,
4885,
4906,
924,
358,
6167,
468,
16092,
1359,
333,
9529,
3221,
67,
2680,
329,
273,
1234,
3292,
6638,
29489,
4939,
2668,
8624,
3221,
273,
875,
364,
2
] | |
doDebug = constricted = 0 | doDebug = constricted = emptyEditor = 0 | def sendToRunningBoa(names, host='127.0.0.1', port=50007): import socket try: if names: print 'Sent', for name in names: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, port)) # do not change files of form [prot]://[path] if string.find(name, '://') == -1: name = os.path.abspath(name) s.send(name) print name, s.close() print except socket.error: return 0 else: return 1 | f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29091,
7051,
38,
11867,
12,
1973,
16,
1479,
2218,
14260,
18,
20,
18,
20,
18,
21,
2187,
1756,
33,
25,
3784,
27,
4672,
1930,
2987,
775,
30,
309,
1257,
30,
1172,
296,
7828,
2187,
364,
508,
316,
1257,
30,
272,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
272,
18,
3612,
12443,
2564,
16,
1756,
3719,
468,
741,
486,
2549,
1390,
434,
646,
306,
11815,
65,
2207,
63,
803,
65,
309,
533,
18,
4720,
12,
529,
16,
296,
2207,
6134,
422,
300,
21,
30,
508,
273,
1140,
18,
803,
18,
5113,
803,
12,
529,
13,
272,
18,
4661,
12,
529,
13,
1172,
508,
16,
272,
18,
4412,
1435,
1172,
1335,
2987,
18,
1636,
30,
327,
374,
469,
30,
327,
404,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
29091,
7051,
38,
11867,
12,
1973,
16,
1479,
2218,
14260,
18,
20,
18,
20,
18,
21,
2187,
1756,
33,
25,
3784,
27,
4672,
1930,
2987,
775,
30,
309,
1257,
30,
1172,
296,
7828,
2187,
364,
508,
316,
1257,
30,
272,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
272,
18,
3612,
12443,
2564,
16,
1756,
3719,
468,
741,
486,
2549,
1390,
434,
646,
306,
11815,
65,
2207,
63,
803,
65,
309,
533,
18,
4720,
12,
529,
16,
296,
2207,
6134,
422,
300,
21,
30,
508,
273,
1140,
18,
803,
18,
5113,
803,
12,
529,
13,
272,
18,
4661,
12,
529,
13,
1172,
508,
16,
272,
18,
4412,
1435,
2
] |
hall=m.make('hall',type='hall',xyz=hall_xyz) | def dontrunme(): | cb794d1f5092b5f91efda32f7502ddf83476a820 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12932/cb794d1f5092b5f91efda32f7502ddf83476a820/define_world.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2727,
313,
318,
3501,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
def addfield(self, pkt, s, val): if self.is_applicable(pkt): return MACField.addfield(self, pkt, s, val) else: return s def getfield(self, pkt, s): if self.is_applicable(pkt): return MACField.getfield(self, pkt, s) else: return s,None | def addfield(self, pkt, s, val): if self.is_applicable(pkt): return MACField.addfield(self, pkt, s, val) else: return s | fdc42c04e59757fb088ee127057846d803626638 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/fdc42c04e59757fb088ee127057846d803626638/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1518,
12,
2890,
16,
11536,
16,
272,
16,
1244,
4672,
309,
365,
18,
291,
67,
438,
10120,
12,
5465,
88,
4672,
327,
14246,
974,
18,
1289,
1518,
12,
2890,
16,
11536,
16,
272,
16,
1244,
13,
469,
30,
327,
272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
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,
527,
1518,
12,
2890,
16,
11536,
16,
272,
16,
1244,
4672,
309,
365,
18,
291,
67,
438,
10120,
12,
5465,
88,
4672,
327,
14246,
974,
18,
1289,
1518,
12,
2890,
16,
11536,
16,
272,
16,
1244,
13,
469,
30,
327,
272,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
label = fullmatch.group('label') | label = fullmatch.group('label') or target | def _lhref_formatter(self, match, fullmatch): ns = fullmatch.group('lns') target = fullmatch.group('ltgt') label = fullmatch.group('label') if ns in self.link_resolvers: return self._link_resolvers[ns](self, ns, target, label) elif target[:2] == '//': return self._make_ext_link(ns+':'+target, label) else: return match | db09b7ea6dc40dcf0b61793b93d948635eb7b221 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/db09b7ea6dc40dcf0b61793b93d948635eb7b221/formatter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
80,
7547,
67,
12354,
12,
2890,
16,
845,
16,
1983,
1916,
4672,
3153,
273,
1983,
1916,
18,
1655,
2668,
2370,
87,
6134,
1018,
273,
1983,
1916,
18,
1655,
2668,
5618,
4521,
6134,
1433,
273,
1983,
1916,
18,
1655,
2668,
1925,
6134,
578,
1018,
309,
3153,
316,
365,
18,
1232,
67,
7818,
2496,
30,
327,
365,
6315,
1232,
67,
7818,
2496,
63,
2387,
29955,
2890,
16,
3153,
16,
1018,
16,
1433,
13,
1327,
1018,
10531,
22,
65,
422,
12084,
4278,
327,
365,
6315,
6540,
67,
408,
67,
1232,
12,
2387,
6797,
2497,
15,
3299,
16,
1433,
13,
469,
30,
327,
845,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
80,
7547,
67,
12354,
12,
2890,
16,
845,
16,
1983,
1916,
4672,
3153,
273,
1983,
1916,
18,
1655,
2668,
2370,
87,
6134,
1018,
273,
1983,
1916,
18,
1655,
2668,
5618,
4521,
6134,
1433,
273,
1983,
1916,
18,
1655,
2668,
1925,
6134,
578,
1018,
309,
3153,
316,
365,
18,
1232,
67,
7818,
2496,
30,
327,
365,
6315,
1232,
67,
7818,
2496,
63,
2387,
29955,
2890,
16,
3153,
16,
1018,
16,
1433,
13,
1327,
1018,
10531,
22,
65,
422,
12084,
4278,
327,
365,
6315,
6540,
67,
408,
67,
1232,
12,
2387,
6797,
2497,
15,
3299,
16,
1433,
13,
469,
30,
327,
845,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not target.startswith("http:") and target[0] != '/': | if not (":" in target[:10]) and target[0] != '/': | def link(text, target): if not target.startswith("http:") and target[0] != '/': target = defaults.checkmk_web_uri + "/" + target return "<a target=\"main\" class=link href=\"%s\">%s</a>" % (target, htmllib.attrencode(text)) | d6b4c91a8b31f13ab3cb60021ec5c2ff9507065a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/d6b4c91a8b31f13ab3cb60021ec5c2ff9507065a/sidebar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
12,
955,
16,
1018,
4672,
1377,
309,
486,
7566,
2773,
316,
1018,
10531,
2163,
5717,
471,
1018,
63,
20,
65,
480,
2023,
30,
1018,
273,
3467,
18,
1893,
24816,
67,
4875,
67,
1650,
397,
4016,
397,
1018,
327,
3532,
69,
1018,
5189,
5254,
2412,
667,
33,
1232,
3897,
5189,
9,
87,
2412,
9822,
87,
1757,
69,
2984,
738,
261,
3299,
16,
1729,
2941,
18,
4558,
1187,
710,
12,
955,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1692,
12,
955,
16,
1018,
4672,
1377,
309,
486,
7566,
2773,
316,
1018,
10531,
2163,
5717,
471,
1018,
63,
20,
65,
480,
2023,
30,
1018,
273,
3467,
18,
1893,
24816,
67,
4875,
67,
1650,
397,
4016,
397,
1018,
327,
3532,
69,
1018,
5189,
5254,
2412,
667,
33,
1232,
3897,
5189,
9,
87,
2412,
9822,
87,
1757,
69,
2984,
738,
261,
3299,
16,
1729,
2941,
18,
4558,
1187,
710,
12,
955,
3719,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
srw = codecs.StreamReaderWriter(file, info.streamreader, info.streamwriter, errors) | if isinstance(info, tuple): reader = info[2] writer = info[3] else: reader = info.streamreader writer = info.streamwriter srw = codecs.StreamReaderWriter(file, reader, writer, errors) | def _unicode_open(file, encoding, errors='strict'): info = codecs.lookup(encoding) srw = codecs.StreamReaderWriter(file, info.streamreader, info.streamwriter, errors) srw.encoding = encoding return srw | db228d7fbdd78d1de47f3ffe9c6278e0c254f955 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/94/db228d7fbdd78d1de47f3ffe9c6278e0c254f955/test_input_output.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9124,
67,
3190,
12,
768,
16,
2688,
16,
1334,
2218,
13948,
11,
4672,
1123,
273,
17437,
18,
8664,
12,
5999,
13,
309,
1549,
12,
1376,
16,
3193,
4672,
2949,
273,
1123,
63,
22,
65,
2633,
273,
1123,
63,
23,
65,
469,
30,
2949,
273,
1123,
18,
3256,
10530,
2633,
273,
1123,
18,
3256,
6299,
9133,
91,
273,
17437,
18,
31495,
2289,
12,
768,
16,
2949,
16,
2633,
16,
1334,
13,
9133,
91,
18,
5999,
273,
2688,
327,
9133,
91,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
17437,
18,
8664,
12,
5999,
13,
309,
1549,
12,
1376,
16,
3193,
4672,
2949,
273,
1123,
63,
22,
65,
2633,
273,
1123,
63,
23,
65,
469,
30,
2949,
273,
1123,
18,
3256,
10530,
2633,
273,
1123,
18,
3256,
6299,
9133,
91,
273,
17437,
18,
31495,
2289,
12,
768,
16,
2949,
16,
2633,
16,
1334,
13,
9133,
91,
18,
5999,
273,
2688,
327,
9133,
91,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
myAngle=arcsin(dY/dX)+pi | myAngle=arctan(dY/dX)+pi | def scatterPointer(A=None,B=None): """ Expects two ordered pairs as tuples (x1,y1) and (x2,y2)... Then this defines an angle. From this angle we orient a triangle point and return this as a tuple of requested size. This can be plotted by the scatter plot to point in a particular orientation. The direction right(0,0)->(1,0) is angle 0 radians, then we rotate counter clockwise from there... What is returned in a three element tuple (numsides,style,angle) which can be put into a plot call via marker=X as a **kwarg """ if A == None or B == None: return (3,0,0) if( A != type(tuple()) and len(A) != 2) \ or \ ( B != type(tuple()) and len(B) != 2): return (3,0,0) # # Calculate orientation of triangle # Ang = arcsin(dY/dX) dY=float(B[-1]-A[-1]) dX=float(B[0]-A[0]) if dY>=0 and dX>=0: myAngle=arcsin(dY/dX) elif dY>=0 and dX<0: myAngle=pi-arcsin(dY/dX) elif dY<0 and dX<0: myAngle=arcsin(dY/dX)+pi elif dY<0 and dX>0: myAngle=(2.0*pi)-arcsin(dY/dX) else: myAngle=0 return (3,0,myAngle) | 85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/85dd29f68b1a30f27a22c6fa0de5a1f96b00e3f7/followupPDSurface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14644,
4926,
12,
37,
33,
7036,
16,
38,
33,
7036,
4672,
3536,
15510,
87,
2795,
5901,
5574,
487,
10384,
261,
92,
21,
16,
93,
21,
13,
471,
261,
92,
22,
16,
93,
22,
13,
2777,
9697,
333,
11164,
392,
5291,
18,
6338,
333,
5291,
732,
7891,
279,
15002,
1634,
471,
327,
333,
487,
279,
3193,
434,
3764,
963,
18,
225,
1220,
848,
506,
3207,
2344,
635,
326,
14644,
3207,
358,
1634,
316,
279,
6826,
9820,
18,
1021,
4068,
2145,
12,
20,
16,
20,
13,
2122,
12,
21,
16,
20,
13,
353,
5291,
374,
13703,
16,
1508,
732,
8534,
3895,
23571,
628,
1915,
2777,
18734,
353,
2106,
316,
279,
8925,
930,
3193,
261,
21180,
4369,
16,
4060,
16,
4341,
13,
1492,
848,
506,
1378,
1368,
279,
3207,
745,
3970,
5373,
33,
60,
487,
279,
2826,
31029,
3536,
309,
432,
422,
599,
578,
605,
422,
599,
30,
327,
261,
23,
16,
20,
16,
20,
13,
309,
12,
432,
480,
618,
12,
8052,
10756,
471,
562,
12,
37,
13,
480,
576,
13,
521,
578,
521,
261,
605,
480,
618,
12,
8052,
10756,
471,
562,
12,
38,
13,
480,
576,
4672,
327,
261,
23,
16,
20,
16,
20,
13,
468,
468,
9029,
9820,
434,
15002,
468,
26956,
273,
21569,
267,
12,
72,
61,
19,
72,
60,
13,
302,
61,
33,
5659,
12,
38,
18919,
21,
65,
17,
37,
18919,
21,
5717,
302,
60,
33,
5659,
12,
38,
63,
20,
65,
17,
37,
63,
20,
5717,
309,
302,
61,
34,
33,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14644,
4926,
12,
37,
33,
7036,
16,
38,
33,
7036,
4672,
3536,
15510,
87,
2795,
5901,
5574,
487,
10384,
261,
92,
21,
16,
93,
21,
13,
471,
261,
92,
22,
16,
93,
22,
13,
2777,
9697,
333,
11164,
392,
5291,
18,
6338,
333,
5291,
732,
7891,
279,
15002,
1634,
471,
327,
333,
487,
279,
3193,
434,
3764,
963,
18,
225,
1220,
848,
506,
3207,
2344,
635,
326,
14644,
3207,
358,
1634,
316,
279,
6826,
9820,
18,
1021,
4068,
2145,
12,
20,
16,
20,
13,
2122,
12,
21,
16,
20,
13,
353,
5291,
374,
13703,
16,
1508,
732,
8534,
3895,
23571,
628,
1915,
2777,
18734,
353,
2106,
316,
279,
8925,
930,
3193,
261,
21180,
4369,
16,
4060,
16,
4341,
2
] |
self.capabilities = tuple(string.split(self.untagged_responses[cap][-1])) | self.capabilities = tuple(string.split(string.upper(self.untagged_responses[cap][-1]))) | def __init__(self, host = '', port = IMAP4_PORT): self.host = host self.port = port self.debug = Debug self.state = 'LOGOUT' self.literal = None # A literal argument to a command self.tagged_commands = {} # Tagged commands awaiting response self.untagged_responses = {} # {typ: [data, ...], ...} self.continuation_response = '' # Last continuation response self.tagnum = 0 | 30d9015f140da5892d740ccd86b9eb81fa96b76c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/30d9015f140da5892d740ccd86b9eb81fa96b76c/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
273,
10226,
1756,
273,
6246,
2203,
24,
67,
6354,
4672,
365,
18,
2564,
273,
1479,
365,
18,
655,
273,
1756,
365,
18,
4148,
273,
4015,
365,
18,
2019,
273,
296,
4842,
5069,
11,
365,
18,
13107,
273,
599,
202,
202,
7,
432,
7158,
1237,
358,
279,
1296,
365,
18,
23023,
67,
7847,
273,
2618,
202,
7,
30802,
4364,
4273,
310,
766,
365,
18,
318,
23023,
67,
11822,
273,
2618,
202,
7,
288,
12846,
30,
306,
892,
16,
1372,
6487,
1372,
97,
365,
18,
1213,
23946,
67,
2740,
273,
875,
202,
7,
6825,
17378,
766,
365,
18,
2692,
2107,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
4842,
5069,
11,
365,
18,
13107,
273,
599,
202,
202,
7,
432,
7158,
1237,
358,
279,
1296,
365,
18,
23023,
67,
7847,
273,
2618,
202,
7,
30802,
4364,
4273,
310,
766,
365,
18,
318,
23023,
67,
11822,
273,
2618,
202,
7,
288,
12846,
30,
306,
892,
16,
1372,
6487,
1372,
97,
365,
18,
1213,
23946,
67,
2740,
273,
875,
202,
7,
6825,
17378,
766,
365,
18,
2692,
2107,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def get_auth_token(self): token = self.connection.getAuthToken("grzywacz", "ppp") | def get_auth_token(self, jid): token = self.connection.getAuthToken(jid, self.config.secret) | def get_auth_token(self): token = self.connection.getAuthToken("grzywacz", "ppp") if token: self.token = token | 6ae69a1f0b11fce5d57fd6497d495bb8e4d0e504 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/6ae69a1f0b11fce5d57fd6497d495bb8e4d0e504/xmlrpcbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1944,
67,
2316,
12,
2890,
16,
14201,
4672,
1147,
273,
365,
18,
4071,
18,
588,
28967,
12,
18252,
16,
365,
18,
1425,
18,
5875,
13,
309,
1147,
30,
365,
18,
2316,
273,
1147,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1944,
67,
2316,
12,
2890,
16,
14201,
4672,
1147,
273,
365,
18,
4071,
18,
588,
28967,
12,
18252,
16,
365,
18,
1425,
18,
5875,
13,
309,
1147,
30,
365,
18,
2316,
273,
1147,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
protocol.ClientCreator(reactor, SOCKSv4Outgoing, self).connectTCP(server,port) | d = protocol.ClientCreator(reactor, SOCKSv4Outgoing, self).connectTCP(server,port) d.addErrback(lambda result, self=self: self.makeReply(91)) | def dataReceived(self,data): if self.otherConn: self.otherConn.write(data) return self.buf=self.buf+data if '\000' in self.buf[8:]: head,self.buf=self.buf[:8],self.buf[8:] try: version,code,port=struct.unpack("!BBH",head[:4]) except struct.error: raise RuntimeError, "struct error with head='%s' and buf='%s'"%(repr(head),repr(self.buf)) user,self.buf=string.split(self.buf,"\000",1) if head[4:7]=="\000\000\000": # domain is after server,self.buf=string.split(self.buf,'\000',1) #server=gethostbyname(server) else: server=socket.inet_ntoa(head[4:8]) assert version==4, "Bad version code: %s"%version if not self.authorize(code,server,port,user): self.makeReply(91) return if code==1: # CONNECT protocol.ClientCreator(reactor, SOCKSv4Outgoing, self).connectTCP(server,port) elif code==2: # BIND self.serv = reactor.listenTCP(0, SOCKSv4IncomingFactory(self, socket.gethostbyname(server))) kind, ourip, ourport = self.serv.getHost() self.makeReply(90, 0, ourport, ourip) else: raise RuntimeError, "Bad Connect Code: %s" % code assert self.buf=="","hmm, still stuff in buffer... '%s'" | 8fb3a3a9b2750f4ca1ac7020527e993ed51eea64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/8fb3a3a9b2750f4ca1ac7020527e993ed51eea64/socks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
8872,
12,
2890,
16,
892,
4672,
309,
365,
18,
3011,
3543,
30,
365,
18,
3011,
3543,
18,
2626,
12,
892,
13,
327,
365,
18,
4385,
33,
2890,
18,
4385,
15,
892,
309,
2337,
3784,
11,
316,
365,
18,
4385,
63,
28,
30,
14542,
910,
16,
2890,
18,
4385,
33,
2890,
18,
4385,
10531,
28,
6487,
2890,
18,
4385,
63,
28,
26894,
775,
30,
1177,
16,
710,
16,
655,
33,
1697,
18,
17309,
2932,
5,
9676,
44,
3113,
1978,
10531,
24,
5717,
1335,
1958,
18,
1636,
30,
1002,
7265,
16,
315,
1697,
555,
598,
910,
28713,
87,
11,
471,
1681,
28713,
87,
4970,
17105,
12715,
12,
1978,
3631,
12715,
12,
2890,
18,
4385,
3719,
729,
16,
2890,
18,
4385,
33,
1080,
18,
4939,
12,
2890,
18,
4385,
10837,
64,
3784,
3113,
21,
13,
309,
910,
63,
24,
30,
27,
65,
631,
12691,
3784,
64,
3784,
64,
3784,
6877,
468,
2461,
353,
1839,
1438,
16,
2890,
18,
4385,
33,
1080,
18,
4939,
12,
2890,
18,
4385,
16,
8314,
3784,
2187,
21,
13,
468,
3567,
33,
75,
546,
669,
1637,
529,
12,
3567,
13,
469,
30,
1438,
33,
7814,
18,
23864,
67,
496,
11867,
12,
1978,
63,
24,
30,
28,
5717,
1815,
1177,
631,
24,
16,
315,
6434,
1177,
981,
30,
738,
87,
28385,
1589,
309,
486,
365,
18,
22488,
12,
710,
16,
3567,
16,
655,
16,
1355,
4672,
365,
18,
6540,
7817,
12,
12416,
13,
327,
309,
981,
631,
21,
30,
468,
21593,
302,
273,
1771,
18,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
8872,
12,
2890,
16,
892,
4672,
309,
365,
18,
3011,
3543,
30,
365,
18,
3011,
3543,
18,
2626,
12,
892,
13,
327,
365,
18,
4385,
33,
2890,
18,
4385,
15,
892,
309,
2337,
3784,
11,
316,
365,
18,
4385,
63,
28,
30,
14542,
910,
16,
2890,
18,
4385,
33,
2890,
18,
4385,
10531,
28,
6487,
2890,
18,
4385,
63,
28,
26894,
775,
30,
1177,
16,
710,
16,
655,
33,
1697,
18,
17309,
2932,
5,
9676,
44,
3113,
1978,
10531,
24,
5717,
1335,
1958,
18,
1636,
30,
1002,
7265,
16,
315,
1697,
555,
598,
910,
28713,
87,
11,
471,
1681,
28713,
87,
4970,
17105,
12715,
12,
1978,
3631,
12715,
12,
2890,
18,
4385,
3719,
729,
16,
2890,
18,
2
] |
"""(Internal) Build SQL to update a RowObject. | """(Internal) Build SQL template to update a RowObject. | def buildUpdateSQL(self, tableInfo): """(Internal) Build SQL to update a RowObject. | 713b02eeb66706f2a94c6f00253fc5664457b297 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/713b02eeb66706f2a94c6f00253fc5664457b297/sqlreflector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
1891,
3997,
12,
2890,
16,
25926,
4672,
3536,
12,
3061,
13,
3998,
3063,
358,
1089,
279,
6556,
921,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
3998,
3063,
358,
1089,
279,
6556,
921,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.frames = [] | self.framefiles = [] | def __init__(self, filename, (width, height)): Layer.__init__(self) self.filename = filename self.mediafile = MediaFile(filename) self.size = (width, height) # List of filenames of individual frames self.frames = [] self.rip_frames(1, 120) | 423b4fe6c4f2620619ec0784822e87586eac07bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4675/423b4fe6c4f2620619ec0784822e87586eac07bd/layer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
16,
261,
2819,
16,
2072,
3719,
30,
12112,
16186,
2738,
972,
12,
2890,
13,
365,
18,
3459,
273,
1544,
365,
18,
5829,
768,
273,
6128,
812,
12,
3459,
13,
365,
18,
1467,
273,
261,
2819,
16,
2072,
13,
468,
987,
434,
9066,
434,
7327,
7793,
365,
18,
3789,
2354,
273,
5378,
365,
18,
21335,
67,
10278,
12,
21,
16,
15743,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1544,
16,
261,
2819,
16,
2072,
3719,
30,
12112,
16186,
2738,
972,
12,
2890,
13,
365,
18,
3459,
273,
1544,
365,
18,
5829,
768,
273,
6128,
812,
12,
3459,
13,
365,
18,
1467,
273,
261,
2819,
16,
2072,
13,
468,
987,
434,
9066,
434,
7327,
7793,
365,
18,
3789,
2354,
273,
5378,
365,
18,
21335,
67,
10278,
12,
21,
16,
15743,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
key = l % self._scramble_key + 0xF; | key = self._scramble_key&0xFF if key != 0 and key <= 0xF0: key = l % key + 0xF else: key = 0 | def read_stream(self, tag, stream): if self.stream_read: raise LRFParseError('There can be only one stream per object') if not hasattr(self, 'stream_flags'): raise LRFParseError('Stream flags not initialized') self.stream = stream.read(self.stream_size) if self.stream_flags & 0x200 !=0: l = len(self.stream); key = l % self._scramble_key + 0xF; if l > 0x400 and (isinstance(self, ImageStream) or isinstance(self, Font) or isinstance(self, SoundStream)): l = 0x400; self.stream = self.descramble_buffer(self.stream, l, key) if self.stream_flags & 0x100 !=0: decomp_size = struct.unpack("<I", self.stream[:4])[0] self.stream = zlib.decompress(self.stream[4:]) if len(self.stream) != decomp_size: raise LRFParseError("Stream decompressed size is wrong!") if stream.read(2) != '\x06\xF5': print "Warning: corrupted end-of-stream tag at %08X; skipping it"%stream.tell()-2 self.end_stream(None, None) | ba816d3efc046d3a5b6ebcb2c44b09903d438cb6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/ba816d3efc046d3a5b6ebcb2c44b09903d438cb6/objects.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3256,
12,
2890,
16,
1047,
16,
1407,
4672,
309,
365,
18,
3256,
67,
896,
30,
1002,
511,
12918,
21004,
2668,
9828,
848,
506,
1338,
1245,
1407,
1534,
733,
6134,
309,
486,
3859,
12,
2890,
16,
296,
3256,
67,
7133,
11,
4672,
1002,
511,
12918,
21004,
2668,
1228,
2943,
486,
6454,
6134,
365,
18,
3256,
273,
1407,
18,
896,
12,
2890,
18,
3256,
67,
1467,
13,
309,
365,
18,
3256,
67,
7133,
473,
374,
92,
6976,
480,
20,
30,
328,
273,
562,
12,
2890,
18,
3256,
1769,
498,
273,
365,
6315,
1017,
1940,
7119,
67,
856,
10,
20,
6356,
309,
498,
480,
374,
471,
498,
1648,
374,
16275,
20,
30,
498,
273,
328,
738,
498,
397,
374,
16275,
469,
30,
498,
273,
374,
309,
328,
405,
374,
92,
16010,
471,
261,
291,
1336,
12,
2890,
16,
23398,
13,
578,
1549,
12,
2890,
16,
10063,
13,
578,
1549,
12,
2890,
16,
348,
772,
1228,
3719,
30,
328,
273,
374,
92,
16010,
31,
365,
18,
3256,
273,
365,
18,
5569,
1940,
7119,
67,
4106,
12,
2890,
18,
3256,
16,
328,
16,
498,
13,
309,
365,
18,
3256,
67,
7133,
473,
374,
92,
6625,
480,
20,
30,
443,
2919,
67,
1467,
273,
1958,
18,
17309,
2932,
32,
45,
3113,
365,
18,
3256,
10531,
24,
5717,
63,
20,
65,
365,
18,
3256,
273,
24220,
18,
323,
14706,
12,
2890,
18,
3256,
63,
24,
30,
5717,
309,
562,
12,
2890,
18,
3256,
13,
480,
443,
2919,
67,
1467,
30,
1002,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3256,
12,
2890,
16,
1047,
16,
1407,
4672,
309,
365,
18,
3256,
67,
896,
30,
1002,
511,
12918,
21004,
2668,
9828,
848,
506,
1338,
1245,
1407,
1534,
733,
6134,
309,
486,
3859,
12,
2890,
16,
296,
3256,
67,
7133,
11,
4672,
1002,
511,
12918,
21004,
2668,
1228,
2943,
486,
6454,
6134,
365,
18,
3256,
273,
1407,
18,
896,
12,
2890,
18,
3256,
67,
1467,
13,
309,
365,
18,
3256,
67,
7133,
473,
374,
92,
6976,
480,
20,
30,
328,
273,
562,
12,
2890,
18,
3256,
1769,
498,
273,
365,
6315,
1017,
1940,
7119,
67,
856,
10,
20,
6356,
309,
498,
480,
374,
471,
498,
1648,
374,
16275,
20,
30,
498,
273,
328,
738,
498,
397,
374,
2
] |
for doc in self.valdocs: if isinstance(doc, ModuleDoc): filename = 'toc-%s' % urllib.unquote(self.url(doc)) self._write(self.write_module_toc, directory, filename, doc) | for doc in self.module_list: filename = 'toc-%s' % urllib.unquote(self.url(doc)) self._write(self.write_module_toc, directory, filename, doc) | def write(self, directory=None): """ Write the documentation to the given directory. | 896efdcbc34c9ccecca07067a434506c3fb65345 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/896efdcbc34c9ccecca07067a434506c3fb65345/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
newparams[k+p:j] = tmp[:j] | newparams[k+p:k+p+j] = tmp[:j] | def _transparams(self, params): """ Transforms params to induce stationarity/invertability. | 1605048ab16600ba699073d25d3520de0f02e555 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/1605048ab16600ba699073d25d3520de0f02e555/kalmanf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2338,
2010,
12,
2890,
16,
859,
4672,
3536,
2604,
9741,
859,
358,
1547,
3965,
13282,
20498,
19,
267,
1097,
2967,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2338,
2010,
12,
2890,
16,
859,
4672,
3536,
2604,
9741,
859,
358,
1547,
3965,
13282,
20498,
19,
267,
1097,
2967,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if config.floatX == 'float32' and config.floatX in self.dtypes: return theano._asarray(x, dtype='float32') | dtype = None if isinstance(x, numpy.float64) and 'float64' in self.dtypes: dtype = 'float64' elif isinstance(x, numpy.float32) and 'float32' in self.dtypes: dtype = 'float32' elif isinstance(x, float) and config.floatX in self.dtypes and config.floatX == 'float32': dtype = config.floatX if dtype: return theano._asarray(x, dtype=dtype) | def __call__(self, x): # change the default casting behaviour for python floats to always cast to float32 if config.floatX == 'float32' and config.floatX in self.dtypes: return theano._asarray(x, dtype='float32') for dtype in self.dtypes: x_ = theano._asarray(x, dtype=dtype) if numpy.all(x == x_): break # returns either an exact x_==x, or the last casted x_ return x_ | 2c6139c618b5bec49020df3f279df9ff11eec8d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/2c6139c618b5bec49020df3f279df9ff11eec8d4/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
4672,
468,
2549,
326,
805,
27660,
14273,
364,
5790,
19172,
358,
3712,
4812,
358,
1431,
1578,
3182,
273,
599,
309,
1549,
12,
92,
16,
3972,
18,
5659,
1105,
13,
471,
296,
5659,
1105,
11,
316,
365,
18,
72,
2352,
30,
3182,
273,
296,
5659,
1105,
11,
1327,
1549,
12,
92,
16,
3972,
18,
5659,
1578,
13,
471,
296,
5659,
1578,
11,
316,
365,
18,
72,
2352,
30,
3182,
273,
296,
5659,
1578,
11,
1327,
1549,
12,
92,
16,
1431,
13,
471,
642,
18,
5659,
60,
316,
365,
18,
72,
2352,
471,
642,
18,
5659,
60,
422,
296,
5659,
1578,
4278,
3182,
273,
642,
18,
5659,
60,
225,
309,
3182,
30,
327,
326,
31922,
6315,
345,
1126,
12,
92,
16,
3182,
33,
8972,
13,
225,
364,
3182,
316,
365,
18,
72,
2352,
30,
619,
67,
273,
326,
31922,
6315,
345,
1126,
12,
92,
16,
3182,
33,
8972,
13,
309,
3972,
18,
454,
12,
92,
422,
619,
67,
4672,
898,
468,
1135,
3344,
392,
5565,
619,
67,
631,
92,
16,
578,
326,
1142,
28192,
619,
67,
327,
619,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1991,
972,
12,
2890,
16,
619,
4672,
468,
2549,
326,
805,
27660,
14273,
364,
5790,
19172,
358,
3712,
4812,
358,
1431,
1578,
3182,
273,
599,
309,
1549,
12,
92,
16,
3972,
18,
5659,
1105,
13,
471,
296,
5659,
1105,
11,
316,
365,
18,
72,
2352,
30,
3182,
273,
296,
5659,
1105,
11,
1327,
1549,
12,
92,
16,
3972,
18,
5659,
1578,
13,
471,
296,
5659,
1578,
11,
316,
365,
18,
72,
2352,
30,
3182,
273,
296,
5659,
1578,
11,
1327,
1549,
12,
92,
16,
1431,
13,
471,
642,
18,
5659,
60,
316,
365,
18,
72,
2352,
471,
642,
18,
5659,
60,
422,
296,
5659,
1578,
4278,
3182,
273,
642,
18,
5659,
60,
225,
309,
3182,
30,
327,
2
] |
if cell.content and 'start' in cell.content: new_url = '%sstart=%s' % (url, cell.content['start']) | if cell.start: new_url = '%sstart=%s' % (url, Time.encode(cell.start)) | def render_namespace(items, times): nitems, iitems = len(items), 0 # blocks = [(nrows, ncols), ..] blocks, table, state = [], [], [] nrows = 0 for time in times[:-1]: cells = [] # add the busy cells for rowspan in state: if rowspan > 0: cells.append(Cell(Cell.busy)) else: cells.append(Cell(Cell.free, content={'start': Time.encode(time)})) # add new cells icell = 0 while iitems < nitems: start, end, item, cal = items[iitems] if start != time: break # look for a free cell while icell < len(cells): if cells[icell].type == Cell.free: break icell = icell + 1 # add cell rowspan = times.index(end) - times.index(start) cell = Cell(Cell.new, item, start, end, rowspan, None, cal) if icell >= len(cells): state.append(rowspan) cells.append(cell) else: state[icell] = rowspan cells[icell] = cell # next item iitems = iitems + 1 ncols = len(cells) # empty row? if ncols == 0: cells.append(Cell(Cell.free, content={'start': Time.encode(time)})) # next row, reduce the current rowspans nrows = nrows + 1 for i in range(ncols): rowspan = state[i] if rowspan > 0: state[i] = rowspan - 1 # a new block? if state.count(0) == ncols: state = [] blocks.append((nrows, ncols)) nrows = 0 # Add current row cells to table table.append((0, cells)) # calculate the number of columns total_ncols = mcm(map(lambda x: x[1], blocks)) # add colspan to each row and fill the incomplete rows with free cells base = 0 for nrows, ncols in blocks: if ncols == 0: colspan = total_ncols else: colspan = total_ncols/ncols irow = 0 while irow < nrows: cells = table[base + irow][1] icol = len(cells) while icol < ncols: start = Time.encode(times[base+irow]) cells.append(Cell(Cell.free, content={'start': start})) icol = icol + 1 table[base + irow] = (colspan, cells) irow = irow + 1 base = base + nrows #################################################################### # FOR EACH ROW for index, row in enumerate(table): i = 0 # FOR EACH CELL while i<len(row[1]): cell = row[1][i] ######################################################## # EXTEND FREE CELL if cell.type == Cell.free: j = i + 1 while j<len(row[1]) and row[1][j].type==Cell.free: row[1][j].type = Cell.busy j = j + 1 if j-i > 1: cell.colspan = j - i i = j ######################################################## # EXTEND NEW CELL elif cell.type == Cell.new: new_extended = [] colspan = len(row[1]) - i # MAX COLSPAN REACHED ( = 1) if colspan <= 1: break # FOR EACH LINE BELOW, USED FOR CELL TO EXTEND for n in range(cell.rowspan): if colspan <= 1: break # GET CURRENT TESTED ROW row_index = index+n irow = table[row_index] # REDUCE max colspan if necessary ilen = len(irow[1]) if ilen < colspan: colspan = ilen # TRY TO EXTEND k = 1 while k < colspan: if irow[1][i+k].type != Cell.free: colspan = k break k = k + 1 new_extended.append((row_index, i)) if colspan > 1: for row_index, k in new_extended: table[row_index][1][k].colspan = colspan for col in range(1, colspan): table[row_index][1][k+col].type = Cell.busy i = i + colspan else: i = i + 1 # end else: i = i + 1 ###################################################################### # render_namespace ###################################################################### url = ';edit_event_form?method=grid_weekly_view&' ns_rows = [] for (colspan, cells) in table: ns_cells = [] for cell in cells: # Don't add busy cells as they don't appear in template if cell.type == Cell.busy: continue if not cell.colspan: cell.colspan = colspan ns_cell = cell.to_dict() # Add start time to url used to add events new_url = None if cell.content and 'start' in cell.content: new_url = '%sstart=%s' % (url, cell.content['start']) ns_cell['newurl'] = new_url ns_cells.append(ns_cell) ns_rows.append({'cells': ns_cells, 'colspan': colspan}) return ns_rows, total_ncols | 1d613a42339f87a03d37293214879a0488e9bfef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1d613a42339f87a03d37293214879a0488e9bfef/gridlayout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
4937,
12,
3319,
16,
4124,
4672,
290,
3319,
16,
277,
3319,
273,
562,
12,
3319,
3631,
374,
468,
4398,
273,
306,
12,
82,
3870,
16,
21330,
3631,
6116,
65,
4398,
16,
1014,
16,
919,
273,
5378,
16,
5378,
16,
5378,
18871,
273,
374,
364,
813,
316,
4124,
10531,
17,
21,
14542,
5983,
273,
5378,
225,
468,
527,
326,
21697,
5983,
364,
1027,
3969,
316,
919,
30,
309,
1027,
3969,
405,
374,
30,
5983,
18,
6923,
12,
4020,
12,
4020,
18,
9274,
93,
3719,
469,
30,
5983,
18,
6923,
12,
4020,
12,
4020,
18,
9156,
16,
913,
5899,
11,
1937,
4278,
2647,
18,
3015,
12,
957,
16869,
3719,
225,
468,
527,
394,
5983,
277,
3855,
273,
374,
1323,
277,
3319,
411,
290,
3319,
30,
787,
16,
679,
16,
761,
16,
1443,
273,
1516,
63,
77,
3319,
65,
309,
787,
480,
813,
30,
898,
225,
468,
2324,
364,
279,
4843,
2484,
1323,
277,
3855,
411,
562,
12,
14741,
4672,
309,
5983,
63,
335,
1165,
8009,
723,
422,
8614,
18,
9156,
30,
898,
277,
3855,
273,
277,
3855,
397,
404,
225,
468,
527,
2484,
1027,
3969,
273,
4124,
18,
1615,
12,
409,
13,
300,
4124,
18,
1615,
12,
1937,
13,
2484,
273,
8614,
12,
4020,
18,
2704,
16,
761,
16,
787,
16,
679,
16,
1027,
3969,
16,
599,
16,
1443,
13,
309,
277,
3855,
1545,
562,
12,
14741,
4672,
919,
18,
6923,
12,
492,
3969,
13,
5983,
18,
6923,
12,
3855,
13,
469,
30,
919,
63,
335,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
4937,
12,
3319,
16,
4124,
4672,
290,
3319,
16,
277,
3319,
273,
562,
12,
3319,
3631,
374,
468,
4398,
273,
306,
12,
82,
3870,
16,
21330,
3631,
6116,
65,
4398,
16,
1014,
16,
919,
273,
5378,
16,
5378,
16,
5378,
18871,
273,
374,
364,
813,
316,
4124,
10531,
17,
21,
14542,
5983,
273,
5378,
225,
468,
527,
326,
21697,
5983,
364,
1027,
3969,
316,
919,
30,
309,
1027,
3969,
405,
374,
30,
5983,
18,
6923,
12,
4020,
12,
4020,
18,
9274,
93,
3719,
469,
30,
5983,
18,
6923,
12,
4020,
12,
4020,
18,
9156,
16,
913,
5899,
11,
1937,
4278,
2647,
18,
3015,
12,
957,
16869,
3719,
225,
468,
527,
394,
5983,
277,
3855,
273,
374,
2
] |
attr_set.appendChild(attributes) | attr_set[0].appendChild(attributes) | def set_attribute(tag,node,p,value): id = node.getAttribute("id") attr_set = node.getElementsByTagName(tag) if not attr_set: return attributes = attr_set[0].getElementsByTagName("attributes") if not attributes: attributes = doc.createElement("attributes") attr_set.appendChild(attributes) else: attributes = attributes[0] for nvp in attributes.getElementsByTagName("nvpair"): if p == nvp.getAttribute("name"): nvp.setAttribute("value",value) return attributes.appendChild(mknvpair(id,p,value)) | 5fdc739b156e47555aaa3b2bd7a94e16e62ed1c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11962/5fdc739b156e47555aaa3b2bd7a94e16e62ed1c1/hb2openais-helper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4589,
12,
2692,
16,
2159,
16,
84,
16,
1132,
4672,
612,
273,
756,
18,
588,
1499,
2932,
350,
7923,
1604,
67,
542,
273,
756,
18,
588,
3471,
10401,
12,
2692,
13,
309,
486,
1604,
67,
542,
30,
327,
1677,
273,
1604,
67,
542,
63,
20,
8009,
588,
3471,
10401,
2932,
4350,
7923,
309,
486,
1677,
30,
1677,
273,
997,
18,
2640,
1046,
2932,
4350,
7923,
1604,
67,
542,
63,
20,
8009,
6923,
1763,
12,
4350,
13,
469,
30,
1677,
273,
1677,
63,
20,
65,
364,
8779,
84,
316,
1677,
18,
588,
3471,
10401,
2932,
16588,
6017,
6,
4672,
309,
293,
422,
8779,
84,
18,
588,
1499,
2932,
529,
6,
4672,
8779,
84,
18,
542,
1499,
2932,
1132,
3113,
1132,
13,
327,
1677,
18,
6923,
1763,
12,
24816,
16588,
6017,
12,
350,
16,
84,
16,
1132,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
67,
4589,
12,
2692,
16,
2159,
16,
84,
16,
1132,
4672,
612,
273,
756,
18,
588,
1499,
2932,
350,
7923,
1604,
67,
542,
273,
756,
18,
588,
3471,
10401,
12,
2692,
13,
309,
486,
1604,
67,
542,
30,
327,
1677,
273,
1604,
67,
542,
63,
20,
8009,
588,
3471,
10401,
2932,
4350,
7923,
309,
486,
1677,
30,
1677,
273,
997,
18,
2640,
1046,
2932,
4350,
7923,
1604,
67,
542,
63,
20,
8009,
6923,
1763,
12,
4350,
13,
469,
30,
1677,
273,
1677,
63,
20,
65,
364,
8779,
84,
316,
1677,
18,
588,
3471,
10401,
2932,
16588,
6017,
6,
4672,
309,
293,
422,
8779,
84,
18,
588,
1499,
2932,
529,
6,
4672,
8779,
84,
18,
542,
1499,
2932,
2
] |
fcb(' | fcb(include_with_prefix("cmn")) | def fcb(line): print >> f, line | 46e9678f240b95e1574582bc77500e440d3d33bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/46e9678f240b95e1574582bc77500e440d3d33bf/cout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
7358,
12,
1369,
4672,
1172,
1671,
284,
16,
980,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
7358,
12,
1369,
4672,
1172,
1671,
284,
16,
980,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'win': { 'var': 0, | 'win': { 'stddev': 0, | def generateSummaryPage(self, pagename, tests, startdate, enddate): # tests { testname: { build: { date: { hour: [ (testname, itemDateTime, delta.days, buildname, hour, revision, runs, total, average) ] }}}} | 529018113dc78215bd476acf6fba265caad9be59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/529018113dc78215bd476acf6fba265caad9be59/perf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
4733,
1964,
12,
2890,
16,
4262,
1069,
16,
7434,
16,
787,
712,
16,
679,
712,
4672,
468,
7434,
288,
1842,
529,
30,
288,
1361,
30,
288,
1509,
30,
288,
6126,
30,
306,
261,
3813,
529,
16,
761,
5096,
16,
3622,
18,
9810,
16,
1361,
529,
16,
6126,
16,
6350,
16,
7597,
16,
2078,
16,
8164,
13,
308,
289,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
4262,
1069,
16,
7434,
16,
787,
712,
16,
679,
712,
4672,
468,
7434,
288,
1842,
529,
30,
288,
1361,
30,
288,
1509,
30,
288,
6126,
30,
306,
261,
3813,
529,
16,
761,
5096,
16,
3622,
18,
9810,
16,
1361,
529,
16,
6126,
16,
6350,
16,
7597,
16,
2078,
16,
8164,
13,
308,
289,
9090,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
prog=self.rulescache.getRegex(regex) if self.extremeverbosity: self._logger().debug('Attachment %s Rule %s'%(object,regex)) if prog.search( object): info=ruleset[regex] action=info[0] description=info[2] self._logger().debug('Rulematch: Attachment=%s Rule=%s Description=%s Action=%s'%(object,regex,description,action)) suspect.debug('Rulematch: Attachment=%s Rule=%s Description=%s Action=%s'%(object,regex,description,action)) if action=='deny': asciirep="".join([x for x in object if ord(x) < 128]) self._logger().info('Mail contains blocked attachment name/type %s (delete, send bounce) '%object) blockinfo="%s: %s"%(asciirep,description) suspect.tags['FiletypePlugin.errormessage']=blockinfo bounce=Bounce(self.config) bounce.send_template_file(suspect.from_address, self.blockedfiletemplate, suspect,dict(blockinfo=blockinfo)) return DELETE if action=='delete': self._logger().info('Mail contains blocked attachment name/type %s (delete, no bounce)'%object) return DELETE if action=='accept': return 'accept' | prog=self.rulescache.getRegex(regex) if self.extremeverbosity: self._logger().debug('Attachment %s Rule %s'%(object,regex)) if prog.search( object): info=ruleset[regex] action=info[0] description=info[2] self._logger().debug('Rulematch: Attachment=%s Rule=%s Description=%s Action=%s'%(object,regex,description,action)) suspect.debug('Rulematch: Attachment=%s Rule=%s Description=%s Action=%s'%(object,regex,description,action)) if action=='deny': asciirep="".join([x for x in object if ord(x) < 128]) self._logger().info('Mail contains blocked attachment name/type %s (delete, send bounce) '%object) blockinfo="%s: %s"%(asciirep,description) suspect.tags['FiletypePlugin.errormessage']=blockinfo bounce=Bounce(self.config) bounce.send_template_file(suspect.from_address, self.blockedfiletemplate, suspect,dict(blockinfo=blockinfo)) return DELETE if action=='delete': self._logger().info('Mail contains blocked attachment name/type %s (delete, no bounce)'%object) return DELETE if action=='accept': return 'accept' | def matchRules(self,ruleset,object,suspect): if ruleset==None: return DUNNO for regex in ruleset.keys(): prog=self.rulescache.getRegex(regex) if self.extremeverbosity: self._logger().debug('Attachment %s Rule %s'%(object,regex)) if prog.search( object): info=ruleset[regex] action=info[0] description=info[2] self._logger().debug('Rulematch: Attachment=%s Rule=%s Description=%s Action=%s'%(object,regex,description,action)) suspect.debug('Rulematch: Attachment=%s Rule=%s Description=%s Action=%s'%(object,regex,description,action)) if action=='deny': # remove non ascii chars asciirep="".join([x for x in object if ord(x) < 128]) self._logger().info('Mail contains blocked attachment name/type %s (delete, send bounce) '%object) blockinfo="%s: %s"%(asciirep,description) suspect.tags['FiletypePlugin.errormessage']=blockinfo bounce=Bounce(self.config) bounce.send_template_file(suspect.from_address, self.blockedfiletemplate, suspect,dict(blockinfo=blockinfo)) return DELETE if action=='delete': self._logger().info('Mail contains blocked attachment name/type %s (delete, no bounce)'%object) return DELETE if action=='accept': return 'accept' return DUNNO | 4d29772df90bb45487afb97d9c84fabc464e2256 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10919/4d29772df90bb45487afb97d9c84fabc464e2256/attachment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
845,
4478,
12,
2890,
16,
7482,
278,
16,
1612,
16,
87,
407,
1181,
4672,
309,
25303,
631,
7036,
30,
327,
463,
2124,
3417,
225,
364,
3936,
316,
25303,
18,
2452,
13332,
11243,
33,
2890,
18,
86,
332,
742,
807,
18,
588,
6628,
12,
7584,
13,
309,
365,
18,
408,
2764,
6084,
70,
8807,
30,
365,
6315,
4901,
7675,
4148,
2668,
6803,
738,
87,
6781,
738,
87,
11,
17105,
1612,
16,
7584,
3719,
309,
11243,
18,
3072,
12,
733,
4672,
1123,
33,
7482,
278,
63,
7584,
65,
1301,
33,
1376,
63,
20,
65,
2477,
33,
1376,
63,
22,
65,
365,
6315,
4901,
7675,
4148,
2668,
2175,
1916,
30,
15939,
5095,
87,
6781,
5095,
87,
6507,
5095,
87,
4382,
5095,
87,
11,
17105,
1612,
16,
7584,
16,
3384,
16,
1128,
3719,
11375,
1181,
18,
4148,
2668,
2175,
1916,
30,
15939,
5095,
87,
6781,
5095,
87,
6507,
5095,
87,
4382,
5095,
87,
11,
17105,
1612,
16,
7584,
16,
3384,
16,
1128,
3719,
309,
1301,
18920,
13002,
93,
4278,
468,
1206,
1661,
11384,
5230,
6972,
77,
577,
84,
1546,
9654,
5701,
3816,
92,
364,
619,
316,
733,
309,
4642,
12,
92,
13,
411,
8038,
5717,
365,
6315,
4901,
7675,
1376,
2668,
6759,
1914,
14547,
6042,
508,
19,
723,
738,
87,
261,
3733,
16,
1366,
324,
8386,
13,
1995,
1612,
13,
1203,
1376,
11613,
87,
30,
738,
87,
6,
17105,
3691,
77,
577,
84,
16,
3384,
13,
11375,
1181,
18,
4156,
3292,
25579,
5872,
3773,
18,
370,
535,
615,
3546,
33,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
845,
4478,
12,
2890,
16,
7482,
278,
16,
1612,
16,
87,
407,
1181,
4672,
309,
25303,
631,
7036,
30,
327,
463,
2124,
3417,
225,
364,
3936,
316,
25303,
18,
2452,
13332,
11243,
33,
2890,
18,
86,
332,
742,
807,
18,
588,
6628,
12,
7584,
13,
309,
365,
18,
408,
2764,
6084,
70,
8807,
30,
365,
6315,
4901,
7675,
4148,
2668,
6803,
738,
87,
6781,
738,
87,
11,
17105,
1612,
16,
7584,
3719,
309,
11243,
18,
3072,
12,
733,
4672,
1123,
33,
7482,
278,
63,
7584,
65,
1301,
33,
1376,
63,
20,
65,
2477,
33,
1376,
63,
22,
65,
365,
6315,
4901,
7675,
4148,
2668,
2175,
1916,
30,
15939,
5095,
87,
6781,
5095,
87,
6507,
5095,
87,
4382,
5095,
2
] |
True returns dict keyed by node labels. | True returns dict keyed by vertex labels. | def cluster_triangles(self, nbunch=None, with_labels=False): r""" Returns the number of triangles for nbunch of nodes as an ordered list. The clustering coefficient of a graph is the fraction of possible triangles that are triangles, c_i = triangles_i / (k_i*(k_i-1)/2) where k_i is the degree of node i, [1]. A coefficient for the whole graph is the average of the c_i. Transitivity is the fraction of all possible triangles which are triangles, T = 3*triangles/triads, [1]. INPUT: -- nbunch - The nodes to inspect. If nbunch=None, returns data for all nodes in the graph -- with_labels - (boolean) default False returns list as above True returns dict keyed by node labels. REFERENCE: [1] Aric Hagberg, Dan Schult and Pieter Swart. NetworkX documentation. [Online] Available: https://networkx.lanl.gov/reference/networkx/ EXAMPLES: sage: (graphs.FruchtGraph()).cluster_triangles() [1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0] sage: (graphs.FruchtGraph()).cluster_triangles(with_labels=True) {0: 1, 1: 1, 2: 0, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 0, 9: 1, 10: 1, 11: 0} sage: (graphs.FruchtGraph()).cluster_triangles(nbunch=[0,1,2]) [1, 1, 0] """ import networkx return networkx.triangles(self._nxg, nbunch, with_labels) | e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2855,
67,
16857,
12356,
12,
2890,
16,
4264,
4384,
33,
7036,
16,
598,
67,
5336,
33,
8381,
4672,
436,
8395,
2860,
326,
1300,
434,
19959,
364,
4264,
4384,
434,
2199,
487,
392,
5901,
666,
18,
225,
1021,
18743,
16554,
434,
279,
2667,
353,
326,
8330,
434,
3323,
19959,
716,
854,
19959,
16,
276,
67,
77,
273,
19959,
67,
77,
342,
261,
79,
67,
77,
21556,
79,
67,
77,
17,
21,
13176,
22,
13,
1625,
417,
67,
77,
353,
326,
10782,
434,
756,
277,
16,
306,
21,
8009,
225,
432,
16554,
364,
326,
7339,
2667,
353,
326,
8164,
434,
326,
276,
67,
77,
18,
225,
2604,
20862,
353,
326,
8330,
434,
777,
3323,
19959,
1492,
854,
19959,
16,
399,
273,
890,
14,
16857,
12356,
19,
16857,
17318,
16,
306,
21,
8009,
225,
12943,
30,
1493,
4264,
4384,
300,
1021,
2199,
358,
5334,
18,
225,
971,
4264,
4384,
33,
7036,
16,
1135,
501,
364,
777,
2199,
316,
326,
2667,
1493,
598,
67,
5336,
300,
261,
6494,
13,
805,
1083,
1135,
666,
487,
5721,
1053,
1135,
2065,
17408,
635,
5253,
3249,
18,
225,
22898,
30,
306,
21,
65,
1201,
335,
670,
346,
31317,
16,
463,
304,
348,
343,
406,
471,
13380,
847,
5434,
485,
18,
5128,
60,
7323,
18,
306,
16860,
65,
15633,
30,
2333,
2207,
5185,
92,
18,
6115,
80,
18,
75,
1527,
19,
6180,
19,
5185,
92,
19,
225,
5675,
8900,
11386,
30,
272,
410,
30,
261,
30016,
18,
7167,
2648,
88,
4137,
1435,
2934,
7967,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2855,
67,
16857,
12356,
12,
2890,
16,
4264,
4384,
33,
7036,
16,
598,
67,
5336,
33,
8381,
4672,
436,
8395,
2860,
326,
1300,
434,
19959,
364,
4264,
4384,
434,
2199,
487,
392,
5901,
666,
18,
225,
1021,
18743,
16554,
434,
279,
2667,
353,
326,
8330,
434,
3323,
19959,
716,
854,
19959,
16,
276,
67,
77,
273,
19959,
67,
77,
342,
261,
79,
67,
77,
21556,
79,
67,
77,
17,
21,
13176,
22,
13,
1625,
417,
67,
77,
353,
326,
10782,
434,
756,
277,
16,
306,
21,
8009,
225,
432,
16554,
364,
326,
7339,
2667,
353,
326,
8164,
434,
326,
276,
67,
77,
18,
225,
2604,
20862,
353,
326,
8330,
434,
777,
3323,
19959,
1492,
854,
19959,
16,
399,
2
] |
self.text(data, value) def text(self, data, value=None): """ Manage a data object's text information @param data: The current object being built. @type data: L{Object} @param value: Text content. @type value: unicode """ md = data.__metadata__ if value is None: try: return md.__xml__.text except AttributeError: return None else: | md = data.__metadata__ | def import_text(self, data, node): """ Import text nodes into L{data} @param data: The current object being built. @type data: L{Object} @param node: The current node being proecessed. @type node: L{sax.Element} """ if node.text is None: return if len(node.text): value = node.getText() value = booleans.get(value.lower(), value) self.text(data, value) | 692007d9afb0d2cc2f88cd84fc66410578df926d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5930/692007d9afb0d2cc2f88cd84fc66410578df926d/unmarshaller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
955,
12,
2890,
16,
501,
16,
756,
4672,
3536,
6164,
977,
2199,
1368,
511,
95,
892,
97,
632,
891,
501,
30,
1021,
783,
733,
3832,
6650,
18,
632,
723,
501,
30,
511,
95,
921,
97,
632,
891,
756,
30,
1021,
783,
756,
3832,
450,
8610,
730,
18,
632,
723,
756,
30,
511,
95,
87,
651,
18,
1046,
97,
3536,
309,
756,
18,
955,
353,
599,
30,
327,
309,
562,
12,
2159,
18,
955,
4672,
460,
273,
756,
18,
588,
1528,
1435,
460,
273,
31050,
18,
588,
12,
1132,
18,
8167,
9334,
460,
13,
365,
18,
955,
12,
892,
16,
460,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1930,
67,
955,
12,
2890,
16,
501,
16,
756,
4672,
3536,
6164,
977,
2199,
1368,
511,
95,
892,
97,
632,
891,
501,
30,
1021,
783,
733,
3832,
6650,
18,
632,
723,
501,
30,
511,
95,
921,
97,
632,
891,
756,
30,
1021,
783,
756,
3832,
450,
8610,
730,
18,
632,
723,
756,
30,
511,
95,
87,
651,
18,
1046,
97,
3536,
309,
756,
18,
955,
353,
599,
30,
327,
309,
562,
12,
2159,
18,
955,
4672,
460,
273,
756,
18,
588,
1528,
1435,
460,
273,
31050,
18,
588,
12,
1132,
18,
8167,
9334,
460,
13,
365,
18,
955,
12,
892,
16,
460,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return os.stat(n).st_rdev | return (devname, os.stat(n).st_rdev) | def blkdev_name_to_number(name): """Take the given textual block-device name (e.g., '/dev/sda1', 'hda') and return the device number used by the OS. """ n = expand_dev_name(name) devname = 'virtual-device' devnum = None try: return os.stat(n).st_rdev except Exception, ex: pass scsi_major = [ 8, 65, 66, 67, 68, 69, 70, 71, 128, 129, 130, 131, 132, 133, 134, 135 ] if re.match( '/dev/sd[a-z]([1-9]|1[0-5])?$', n): major = scsi_major[(ord(n[7:8]) - ord('a')) / 16] minor = ((ord(n[7:8]) - ord('a')) % 16) * 16 + int(n[8:] or 0) devnum = major * 256 + minor elif re.match( '/dev/sd[a-i][a-z]([1-9]|1[0-5])?$', n): major = scsi_major[((ord(n[7:8]) - ord('a') + 1) * 26 + (ord(n[8:9]) - ord('a'))) / 16 ] minor = (((ord(n[7:8]) - ord('a') + 1 ) * 26 + (ord(n[8:9]) - ord('a'))) % 16) * 16 + int(n[9:] or 0) devnum = major * 256 + minor elif re.match( '/dev/hd[a-t]([1-9]|[1-5][0-9]|6[0-3])?', n): ide_majors = [ 3, 22, 33, 34, 56, 57, 88, 89, 90, 91 ] major = ide_majors[(ord(n[7:8]) - ord('a')) / 2] minor = ((ord(n[7:8]) - ord('a')) % 2) * 64 + int(n[8:] or 0) devnum = major * 256 + minor elif re.match( '/dev/xvd[a-p]([1-9]|1[0-5])?$', n): devnum = (202 << 8) + ((ord(n[8:9]) - ord('a')) << 4) + int(n[9:] or 0) elif re.match('/dev/xvd[q-z]([1-9]|1[0-5])?$', n): devname = 'virtual-device-ext' devnum = (1 << 28) + ((ord(n[8:9]) - ord('a')) << 8) + int(n[9:] or 0) elif re.match('/dev/xvd[a-i][a-z]([1-9]|1[0-5])?$', n): devname = 'virtual-device-ext' devnum = (1 << 28) + (((ord(n[8:9]) - ord('a') + 1) * 26 + (ord(n[9:10]) - ord('a'))) << 8) + int(n[10:] or 0) elif re.match( '^(0x)[0-9a-fA-F]+$', name ): devnum = string.atoi(name, 16) elif re.match('^[0-9]+$', name): devnum = string.atoi(name, 10) return (devname, devnum) | aa6d3ee870ad5274751e0dc00f934a504a043457 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6195/aa6d3ee870ad5274751e0dc00f934a504a043457/blkif.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11992,
5206,
67,
529,
67,
869,
67,
2696,
12,
529,
4672,
3536,
13391,
326,
864,
25774,
1203,
17,
5964,
508,
261,
73,
18,
75,
12990,
1173,
5206,
19,
87,
2414,
21,
2187,
296,
76,
2414,
6134,
471,
327,
326,
2346,
1300,
1399,
635,
326,
5932,
18,
3536,
225,
290,
273,
4542,
67,
5206,
67,
529,
12,
529,
13,
225,
4461,
529,
273,
296,
12384,
17,
5964,
11,
4461,
2107,
273,
599,
225,
775,
30,
327,
261,
5206,
529,
16,
1140,
18,
5642,
12,
82,
2934,
334,
67,
86,
5206,
13,
1335,
1185,
16,
431,
30,
1342,
225,
888,
7722,
67,
14019,
273,
306,
1725,
16,
15892,
16,
22342,
16,
21017,
16,
23797,
16,
20963,
16,
16647,
16,
26465,
16,
8038,
16,
2593,
29,
16,
404,
5082,
16,
5958,
21,
16,
29805,
16,
30537,
16,
404,
5026,
16,
404,
4763,
308,
309,
283,
18,
1916,
12,
1173,
5206,
19,
6427,
63,
69,
17,
94,
65,
3816,
21,
17,
29,
12369,
21,
63,
20,
17,
25,
5717,
35,
8,
2187,
290,
4672,
7888,
273,
888,
7722,
67,
14019,
63,
12,
517,
12,
82,
63,
27,
30,
28,
5717,
300,
4642,
2668,
69,
26112,
342,
2872,
65,
8439,
273,
14015,
517,
12,
82,
63,
27,
30,
28,
5717,
300,
4642,
2668,
69,
26112,
738,
2872,
13,
380,
2872,
397,
509,
12,
82,
63,
28,
26894,
578,
374,
13,
4461,
2107,
273,
7888,
380,
8303,
397,
8439,
1327,
283,
18,
1916,
12,
1173,
5206,
19,
6427,
63,
69,
17,
77,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11992,
5206,
67,
529,
67,
869,
67,
2696,
12,
529,
4672,
3536,
13391,
326,
864,
25774,
1203,
17,
5964,
508,
261,
73,
18,
75,
12990,
1173,
5206,
19,
87,
2414,
21,
2187,
296,
76,
2414,
6134,
471,
327,
326,
2346,
1300,
1399,
635,
326,
5932,
18,
3536,
225,
290,
273,
4542,
67,
5206,
67,
529,
12,
529,
13,
225,
4461,
529,
273,
296,
12384,
17,
5964,
11,
4461,
2107,
273,
599,
225,
775,
30,
327,
261,
5206,
529,
16,
1140,
18,
5642,
12,
82,
2934,
334,
67,
86,
5206,
13,
1335,
1185,
16,
431,
30,
1342,
225,
888,
7722,
67,
14019,
273,
306,
1725,
16,
15892,
16,
22342,
16,
21017,
16,
23797,
16,
20963,
16,
16647,
16,
26465,
2
] |
return self.circuit_thread.is_alive() and \ self.listen_thread.is_alive() and \ self.stream_thread.is_alive() and \ self.test_thread.is_alive() | return self.circuit_thread.isAlive() and \ self.listen_thread.isAlive() and \ self.stream_thread.isAlive() and \ self.test_thread.isAlive() | def tests_running(self): """ Returns True if all threads associated with testing are alive. """ return self.circuit_thread.is_alive() and \ self.listen_thread.is_alive() and \ self.stream_thread.is_alive() and \ self.test_thread.is_alive() | a4f6ecf4da168ab2afb8f9b968abcef3a9cdd9d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/a4f6ecf4da168ab2afb8f9b968abcef3a9cdd9d8/torbel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7434,
67,
8704,
12,
2890,
4672,
3536,
2860,
1053,
309,
777,
7403,
3627,
598,
7769,
854,
13714,
18,
3536,
327,
365,
18,
24987,
67,
5930,
18,
291,
10608,
1435,
471,
521,
365,
18,
18085,
67,
5930,
18,
291,
10608,
1435,
471,
521,
365,
18,
3256,
67,
5930,
18,
291,
10608,
1435,
471,
521,
365,
18,
3813,
67,
5930,
18,
291,
10608,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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24987,
67,
5930,
18,
291,
10608,
1435,
471,
521,
365,
18,
18085,
67,
5930,
18,
291,
10608,
1435,
471,
521,
365,
18,
3256,
67,
5930,
18,
291,
10608,
1435,
471,
521,
365,
18,
3813,
67,
5930,
18,
291,
10608,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
has = len(person_role_map.select(whereclause = | has = len(person_role_map.select(whereclause = | def roles(self): """ Lists and changes the person's roles. """ | c21a2c9136cd8bc3f07470ed0a9e22791b6d4862 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12856/c21a2c9136cd8bc3f07470ed0a9e22791b6d4862/person.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4900,
12,
2890,
4672,
3536,
11592,
471,
3478,
326,
6175,
1807,
4900,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4900,
12,
2890,
4672,
3536,
11592,
471,
3478,
326,
6175,
1807,
4900,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
inc_dir = base else: inc_dir = os.path.join(base, "Include") if not os.path.exists(inc_dir): inc_dir = os.path.join(os.path.dirname(base), "Include") return inc_dir | return base else: incdir = os.path.join(get_config_var('srcdir'), 'Include') return os.path.normpath(incdir) | def get_python_inc(plat_specific=0, prefix=None): """Return the directory containing installed Python header files. If 'plat_specific' is false (the default), this is the path to the non-platform-specific header files, i.e. Python.h and so on; otherwise, this is the path to platform-specific header files (namely pyconfig.h). If 'prefix' is supplied, use it instead of sys.prefix or sys.exec_prefix -- i.e., ignore 'plat_specific'. """ if prefix is None: prefix = plat_specific and EXEC_PREFIX or PREFIX if os.name == "posix": if python_build: base = os.path.dirname(os.path.abspath(sys.executable)) if plat_specific: inc_dir = base else: inc_dir = os.path.join(base, "Include") if not os.path.exists(inc_dir): inc_dir = os.path.join(os.path.dirname(base), "Include") return inc_dir return os.path.join(prefix, "include", "python" + get_python_version()) elif os.name == "nt": return os.path.join(prefix, "include") elif os.name == "mac": if plat_specific: return os.path.join(prefix, "Mac", "Include") else: return os.path.join(prefix, "Include") elif os.name == "os2": return os.path.join(prefix, "Include") else: raise DistutilsPlatformError( "I don't know where Python installs its C header files " "on platform '%s'" % os.name) | 47dc7517cd156ad0faf4d9705c6f7439a7e68b5d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/47dc7517cd156ad0faf4d9705c6f7439a7e68b5d/sysconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8103,
67,
9523,
12,
412,
270,
67,
12524,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
5876,
6600,
1446,
1390,
18,
225,
971,
296,
412,
270,
67,
12524,
11,
353,
629,
261,
5787,
805,
3631,
333,
353,
326,
589,
358,
326,
1661,
17,
9898,
17,
12524,
1446,
1390,
16,
277,
18,
73,
18,
6600,
18,
76,
471,
1427,
603,
31,
3541,
16,
333,
353,
326,
589,
358,
4072,
17,
12524,
1446,
1390,
261,
17808,
2357,
2395,
1425,
18,
76,
2934,
225,
971,
296,
3239,
11,
353,
4580,
16,
999,
518,
3560,
434,
2589,
18,
3239,
578,
2589,
18,
4177,
67,
3239,
1493,
277,
18,
73,
12990,
2305,
296,
412,
270,
67,
12524,
10332,
3536,
309,
1633,
353,
599,
30,
1633,
273,
29838,
67,
12524,
471,
24508,
67,
6307,
578,
17154,
309,
1140,
18,
529,
422,
315,
24463,
6877,
309,
5790,
67,
3510,
30,
1026,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113,
803,
12,
9499,
18,
17751,
3719,
309,
29838,
67,
12524,
30,
327,
1026,
469,
30,
7290,
1214,
273,
1140,
18,
803,
18,
5701,
12,
588,
67,
1425,
67,
1401,
2668,
4816,
1214,
19899,
296,
8752,
6134,
327,
1140,
18,
803,
18,
7959,
803,
12,
9523,
1214,
13,
327,
1140,
18,
803,
18,
5701,
12,
3239,
16,
315,
6702,
3113,
315,
8103,
6,
397,
336,
67,
8103,
67,
1589,
10756,
1327,
1140,
18,
529,
422,
315,
496,
6877,
327,
1140,
18,
803,
18,
5701,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8103,
67,
9523,
12,
412,
270,
67,
12524,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
5876,
6600,
1446,
1390,
18,
225,
971,
296,
412,
270,
67,
12524,
11,
353,
629,
261,
5787,
805,
3631,
333,
353,
326,
589,
358,
326,
1661,
17,
9898,
17,
12524,
1446,
1390,
16,
277,
18,
73,
18,
6600,
18,
76,
471,
1427,
603,
31,
3541,
16,
333,
353,
326,
589,
358,
4072,
17,
12524,
1446,
1390,
261,
17808,
2357,
2395,
1425,
18,
76,
2934,
225,
971,
296,
3239,
11,
353,
4580,
16,
999,
518,
3560,
434,
2589,
18,
3239,
578,
2589,
18,
4177,
67,
3239,
1493,
277,
18,
73,
12990,
2305,
296,
412,
270,
67,
12524,
2
] |
Fixer ("rowenna","Speak with Rowenna",[("decided_iso_evil",0),("iso_mission3",0),("iso_mission2",1)],"bases/fixers/iso.spr","bases/fixers/iso.py") | Fixer ("rowenna","Speak with Rowenna",[("decided_iso_evil",0),("iso_mission3",0),("iso_mission2",1)],"bases/fixers/iso.spr","bases/fixers/iso.py"), Fixer ("rowenna","Speak with Rowenna",[("decided_iso_evil",0),("iso_mission3",0),("iso_mission2",-1)],"bases/fixers/iso.spr","bases/fixers/iso.py") | def drawobjs(self,room,x,y,wid,hei): Base.Texture(room,self.name,self.image,x+(wid/2),y+(hei/2)) Base.Python(room,self.name,x,y,wid,hei,self.text,self.choices,True) | 48d1c7446bcf1ad1d9765ef348c313d2d39646f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/48d1c7446bcf1ad1d9765ef348c313d2d39646f9/fixers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
18093,
12,
2890,
16,
13924,
16,
92,
16,
93,
16,
30902,
16,
580,
77,
4672,
3360,
18,
10967,
12,
13924,
16,
2890,
18,
529,
16,
2890,
18,
2730,
16,
92,
15,
12,
30902,
19,
22,
3631,
93,
15,
12,
580,
77,
19,
22,
3719,
3360,
18,
15774,
12,
13924,
16,
2890,
18,
529,
16,
92,
16,
93,
16,
30902,
16,
580,
77,
16,
2890,
18,
955,
16,
2890,
18,
11937,
16,
5510,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3724,
18093,
12,
2890,
16,
13924,
16,
92,
16,
93,
16,
30902,
16,
580,
77,
4672,
3360,
18,
10967,
12,
13924,
16,
2890,
18,
529,
16,
2890,
18,
2730,
16,
92,
15,
12,
30902,
19,
22,
3631,
93,
15,
12,
580,
77,
19,
22,
3719,
3360,
18,
15774,
12,
13924,
16,
2890,
18,
529,
16,
92,
16,
93,
16,
30902,
16,
580,
77,
16,
2890,
18,
955,
16,
2890,
18,
11937,
16,
5510,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
root = etree.SubElement(root, 'office:meta') el1 = etree.SubElement(root, 'meta:generator') | root = SubElement(root, 'office:meta') el1 = SubElement(root, 'meta:generator') | def create_meta(self): root = etree.Element('office:document-meta', attrib=META_NAMESPACE_DICT) doc = etree.ElementTree(root) root = etree.SubElement(root, 'office:meta') el1 = etree.SubElement(root, 'meta:generator') el1.text = 'Docutils/rst2odf.py/%s' % (VERSION, ) s1 = os.environ.get('USER', '') el1 = etree.SubElement(root, 'meta:initial-creator') el1.text = s1 s2 = time.strftime('%Y-%m-%dT%H:%M:%S', time.localtime()) el1 = etree.SubElement(root, 'meta:creation-date') el1.text = s2 el1 = etree.SubElement(root, 'dc:creator') el1.text = s1 el1 = etree.SubElement(root, 'dc:date') el1.text = s2 el1 = etree.SubElement(root, 'dc:language') el1.text = 'en-US' el1 = etree.SubElement(root, 'meta:editing-cycles') el1.text = '1' el1 = etree.SubElement(root, 'meta:editing-duration') el1.text = 'PT00M01S' title = self.visitor.get_title() el1 = etree.SubElement(root, 'dc:title') if title: el1.text = title else: el1.text = '[no title]' s1 = etree.tostring(doc) #doc = minidom.parseString(s1) #s1 = doc.toprettyxml(' ') return s1 | 277ba1af817dc725b8179dbbf649a815fdff5939 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/277ba1af817dc725b8179dbbf649a815fdff5939/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3901,
12,
2890,
4672,
1365,
273,
12031,
18,
1046,
2668,
19789,
30,
5457,
17,
3901,
2187,
5885,
33,
19294,
67,
11368,
67,
31456,
13,
997,
273,
12031,
18,
1046,
2471,
12,
3085,
13,
1365,
273,
5479,
12,
3085,
16,
296,
19789,
30,
3901,
6134,
415,
21,
273,
5479,
12,
3085,
16,
296,
3901,
30,
8812,
6134,
415,
21,
18,
955,
273,
296,
1759,
5471,
19,
16114,
22,
369,
74,
18,
2074,
5258,
87,
11,
738,
261,
5757,
16,
262,
272,
21,
273,
1140,
18,
28684,
18,
588,
2668,
4714,
2187,
28707,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
6769,
17,
20394,
6134,
415,
21,
18,
955,
273,
272,
21,
272,
22,
273,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
23148,
9,
44,
5319,
49,
5319,
55,
2187,
813,
18,
3729,
957,
10756,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
17169,
17,
712,
6134,
415,
21,
18,
955,
273,
272,
22,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
7201,
30,
20394,
6134,
415,
21,
18,
955,
273,
272,
21,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
7201,
30,
712,
6134,
415,
21,
18,
955,
273,
272,
22,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
7201,
30,
4923,
6134,
415,
21,
18,
955,
273,
296,
275,
17,
3378,
11,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3901,
12,
2890,
4672,
1365,
273,
12031,
18,
1046,
2668,
19789,
30,
5457,
17,
3901,
2187,
5885,
33,
19294,
67,
11368,
67,
31456,
13,
997,
273,
12031,
18,
1046,
2471,
12,
3085,
13,
1365,
273,
5479,
12,
3085,
16,
296,
19789,
30,
3901,
6134,
415,
21,
273,
5479,
12,
3085,
16,
296,
3901,
30,
8812,
6134,
415,
21,
18,
955,
273,
296,
1759,
5471,
19,
16114,
22,
369,
74,
18,
2074,
5258,
87,
11,
738,
261,
5757,
16,
262,
272,
21,
273,
1140,
18,
28684,
18,
588,
2668,
4714,
2187,
28707,
415,
21,
273,
12031,
18,
1676,
1046,
12,
3085,
16,
296,
3901,
30,
6769,
17,
20394,
6134,
415,
21,
18,
955,
273,
272,
21,
272,
2
] |
] | Extension( 'pyRXPU', uRXPLIBSOURCES, include_dirs=[RXPDIR], define_macros=[('CHAR_SIZE', 16),], library_dirs=[], libraries=LIBS, ), ], classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: ReportLab BSD derived', 'Programming Language :: Python', 'Programming Language :: C', 'Operating System :: Unix', 'Operating System :: POSIX', 'Operating System :: Microsoft :: Windows', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Text Processing :: Markup :: XML', ] | def raiseConfigError(msg): import exceptions class ConfigError(exceptions.Exception): pass raise ConfigError(msg) | 256ec0f31741d4323e9df85b73a53b374cf16545 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/256ec0f31741d4323e9df85b73a53b374cf16545/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1002,
809,
668,
12,
3576,
4672,
1930,
4798,
667,
1903,
668,
12,
11855,
18,
503,
4672,
1342,
1002,
1903,
668,
12,
3576,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1002,
809,
668,
12,
3576,
4672,
1930,
4798,
667,
1903,
668,
12,
11855,
18,
503,
4672,
1342,
1002,
1903,
668,
12,
3576,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
course.distance = randreal(course.distance) | wcourse.distance = randreal(wcourse.distance) | def warp(course, involuntary): "ove under warp drive." blooey = False; twarp = False if not involuntary: # Not WARPX entry game.ididit = False if game.damage[DWARPEN] > 10.0: scanner.chew() skip(1) prout(_("Engineer Scott- \"The warp engines are damaged, Sir.\"")) return if damaged(DWARPEN) and game.warpfac > 4.0: scanner.chew() skip(1) prout(_("Engineer Scott- \"Sorry, Captain. Until this damage")) prout(_(" is repaired, I can only give you warp 4.\"")) return # Read in course and distance if course==None: try: course = getcourse(isprobe=False) except TrekError: return # Make sure starship has enough energy for the trip # Note: this formula is slightly different from the C version, # and lets you skate a bit closer to the edge. if course.power(game.warpfac) >= game.energy: # Insufficient power for trip game.ididit = False skip(1) prout(_("Engineering to bridge--")) if not game.shldup or 0.5*course.power(game.warpfac) > game.energy: iwarp = (game.energy/(course.dist+0.05)) ** 0.333333333 if iwarp <= 0: prout(_("We can't do it, Captain. We don't have enough energy.")) else: proutn(_("We don't have enough energy, but we could do it at warp %d") % iwarp) if game.shldup: prout(",") prout(_("if you'll lower the shields.")) else: prout(".") else: prout(_("We haven't the energy to go that far with the shields up.")) return # Make sure enough time is left for the trip game.optime = course.time(game.warpfac) if game.optime >= 0.8*game.state.remtime: skip(1) prout(_("First Officer Spock- \"Captain, I compute that such")) proutn(_(" a trip would require approximately %2.0f") % (100.0*game.optime/game.state.remtime)) prout(_(" percent of our")) proutn(_(" remaining time. Are you sure this is wise?\" ")) if not ja(): game.ididit = False game.optime=0 return # Entry WARPX if game.warpfac > 6.0: # Decide if engine damage will occur # ESR: Seems wrong. Probability of damage goes *down* with distance? prob = course.distance*(6.0-game.warpfac)**2/66.666666666 if prob > randreal(): blooey = True course.distance = randreal(course.distance) # Decide if time warp will occur if 0.5*course.distance*math.pow(7.0,game.warpfac-10.0) > randreal(): twarp = True if game.idebug and game.warpfac==10 and not twarp: blooey = False proutn("=== Force time warp? ") if ja(): twarp = True if blooey or twarp: # If time warp or engine damage, check path # If it is obstructed, don't do warp or damage for m_unused in range(course.moves): course.next() w = course.sector() if not w.valid_sector(): break if game.quad[w.i][w.j] != '.': blooey = False twarp = False course.reset() # Activate Warp Engines and pay the cost imove(course, noattack=False) if game.alldone: return game.energy -= course.power(game.warpfac) if game.energy <= 0: finish(FNRG) game.optime = course.time(game.warpfac) if twarp: timwrp() if blooey: game.damage[DWARPEN] = game.damfac * randreal(1.0, 4.0) skip(1) prout(_("Engineering to bridge--")) prout(_(" Scott here. The warp engines are damaged.")) prout(_(" We'll have to reduce speed to warp 4.")) game.ididit = True return | b8ffe91a83c83c29cc1a574e3fc2d857d582df33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/b8ffe91a83c83c29cc1a574e3fc2d857d582df33/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
11441,
12,
5566,
16,
29876,
10032,
814,
4672,
315,
841,
3613,
341,
11441,
14316,
1199,
324,
383,
83,
402,
273,
1083,
31,
268,
905,
84,
273,
1083,
309,
486,
29876,
10032,
814,
30,
468,
2288,
678,
985,
52,
60,
1241,
7920,
18,
350,
350,
305,
273,
1083,
309,
7920,
18,
72,
301,
410,
63,
40,
16777,
52,
1157,
65,
405,
1728,
18,
20,
30,
7683,
18,
343,
359,
1435,
2488,
12,
21,
13,
450,
322,
24899,
2932,
4410,
264,
2850,
352,
88,
17,
1239,
1986,
341,
11441,
20504,
854,
302,
301,
11349,
16,
348,
481,
18,
8530,
3719,
327,
309,
302,
301,
11349,
12,
40,
16777,
52,
1157,
13,
471,
7920,
18,
905,
84,
11639,
405,
1059,
18,
20,
30,
7683,
18,
343,
359,
1435,
2488,
12,
21,
13,
450,
322,
24899,
2932,
4410,
264,
2850,
352,
88,
17,
1239,
28898,
16,
385,
1657,
530,
18,
30608,
333,
302,
301,
410,
6,
3719,
450,
322,
24899,
2932,
225,
353,
2071,
69,
2921,
16,
467,
848,
1338,
8492,
1846,
341,
11441,
1059,
18,
8530,
3719,
327,
468,
2720,
316,
4362,
471,
3888,
309,
4362,
631,
7036,
30,
775,
30,
4362,
273,
336,
5566,
12,
291,
27230,
33,
8381,
13,
1335,
399,
266,
79,
668,
30,
327,
468,
4344,
3071,
384,
976,
625,
711,
7304,
12929,
364,
326,
20654,
468,
3609,
30,
333,
8013,
353,
21980,
3775,
628,
326,
385,
1177,
16,
468,
471,
14557,
1846,
4343,
340,
279,
2831,
13306,
358,
326,
3591,
18,
309,
4362,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
341,
11441,
12,
5566,
16,
29876,
10032,
814,
4672,
315,
841,
3613,
341,
11441,
14316,
1199,
324,
383,
83,
402,
273,
1083,
31,
268,
905,
84,
273,
1083,
309,
486,
29876,
10032,
814,
30,
468,
2288,
678,
985,
52,
60,
1241,
7920,
18,
350,
350,
305,
273,
1083,
309,
7920,
18,
72,
301,
410,
63,
40,
16777,
52,
1157,
65,
405,
1728,
18,
20,
30,
7683,
18,
343,
359,
1435,
2488,
12,
21,
13,
450,
322,
24899,
2932,
4410,
264,
2850,
352,
88,
17,
1239,
1986,
341,
11441,
20504,
854,
302,
301,
11349,
16,
348,
481,
18,
8530,
3719,
327,
309,
302,
301,
11349,
12,
40,
16777,
52,
1157,
13,
471,
7920,
18,
905,
84,
11639,
405,
1059,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.