rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
gauss.SetInput(imagedata) | gauss.SetInput(clip.GetOutput()) | def BuildEditedImage(imagedata, points): """ Editing the original image in accordance with the edit points in the editor, it is necessary to generate the vtkPolyData via vtkContourFilter """ for point in points: x, y, z = point colour = points[point] imagedata.SetScalarComponentFromDouble(x, y, z, 0, colour) imagedata.... | 9e6e2b60849cc23faa6fec135ab36b97af686474 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/9e6e2b60849cc23faa6fec135ab36b97af686474/imagedata_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
4666,
329,
2040,
12,
381,
11349,
396,
16,
3143,
4672,
3536,
15328,
310,
326,
2282,
1316,
316,
1721,
29342,
598,
326,
3874,
3143,
316,
326,
4858,
16,
518,
353,
4573,
358,
2103,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
4666,
329,
2040,
12,
381,
11349,
396,
16,
3143,
4672,
3536,
15328,
310,
326,
2282,
1316,
316,
1721,
29342,
598,
326,
3874,
3143,
316,
326,
4858,
16,
518,
353,
4573,
358,
2103,
326,... |
select min(hrt.id) as id, l.date::date as name, hrt.sheet_id as sheet_id, sum(l.unit_amount) as total_timesheet, 0.0 as total_attendance from hr_analytic_timesheet hrt left join account_analytic_line l on (l.id = hrt.line_id) group by l.date::date, hrt.sheet_id ) union ( select -min(a.id) as id, a.name::date as name, a... | SELECT MAX(id) as id, name, sheet_id, SUM(total_timesheet) as total_timesheet, CASE WHEN SUM(total_attendance) < 0 THEN (SUM(total_attendance) + CASE WHEN current_date <> name THEN 1440 ELSE (EXTRACT(hour FROM current_time) * 60) + EXTRACT(minute FROM current_time) END ) ELSE SUM(total_attendance) END /60 as total_att... | def init(self, cr): cr.execute("""create or replace view hr_timesheet_sheet_sheet_day as SELECT MAX(id) as id, name, sheet_id, SUM(total_timesheet) as total_timesheet, CASE WHEN SUM(total_attendance) < 0 THEN (SUM(total_attendance) + CASE WHEN current_date <> name THEN 1440 ELSE (EXTRACT(hour FROM current_time) * 60) +... | 89b312484b12c368ce1d36532f97989773d6b2f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/89b312484b12c368ce1d36532f97989773d6b2f2/hr_timesheet_sheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
4422,
18,
8837,
2932,
3660,
2640,
578,
1453,
1476,
15407,
67,
8293,
2963,
67,
8118,
67,
8118,
67,
2881,
487,
9111,
4552,
12,
350,
13,
487,
612,
16,
508,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
4422,
18,
8837,
2932,
3660,
2640,
578,
1453,
1476,
15407,
67,
8293,
2963,
67,
8118,
67,
8118,
67,
2881,
487,
9111,
4552,
12,
350,
13,
487,
612,
16,
508,... |
def __init__(self): | def __init__(self, url=""): | def __init__(self): cp = config() self.xml_file = getTempFilename() self.xsl_file = os.path.expandvars(cp_get(cp, "gip", "pretty_gip_xsl", "$GIP_LOCATION/templates/pretty_gip_info.xsl")) self.html_file = os.path.expandvars(cp_get(cp, "gip", "pretty_gip_html", "$VDT_LOCATION/apache/htdocs/pretty_gip_info.html")) self.do... | fb367b6d1622b9e4151697d07ba739634657ef9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12088/fb367b6d1622b9e4151697d07ba739634657ef9d/pretty_gip_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
880,
1546,
6,
4672,
3283,
273,
642,
1435,
365,
18,
2902,
67,
768,
273,
28988,
5359,
1435,
365,
18,
30903,
67,
768,
273,
1140,
18,
803,
18,
12320,
4699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
880,
1546,
6,
4672,
3283,
273,
642,
1435,
365,
18,
2902,
67,
768,
273,
28988,
5359,
1435,
365,
18,
30903,
67,
768,
273,
1140,
18,
803,
18,
12320,
4699,
... |
gLogger.exception(errStr,'',str(x)) | gLogger.exception(errStr) | def pfnunparse(pfnDict): """ This method takes a dictionary containing a the pfn attributes and contructs it """ #gLogger.debug("Pfn.pfnunparse: Attempting to un-parse pfnDict.") try: # All files must have a path and a filename. Or else... # fullPath = '/some/path/to/a/file.file' fullPath = "%s/%s" % (pfnDict['Path'],p... | fc5f50842408c7266069c82c4694cc5b2493a3ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fc5f50842408c7266069c82c4694cc5b2493a3ce/Pfn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
4293,
318,
2670,
12,
84,
4293,
5014,
4672,
3536,
1220,
707,
5530,
279,
3880,
4191,
279,
326,
293,
4293,
1677,
471,
356,
8813,
87,
518,
3536,
468,
75,
3328,
18,
4148,
2932,
52,
429... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
293,
4293,
318,
2670,
12,
84,
4293,
5014,
4672,
3536,
1220,
707,
5530,
279,
3880,
4191,
279,
326,
293,
4293,
1677,
471,
356,
8813,
87,
518,
3536,
468,
75,
3328,
18,
4148,
2932,
52,
429... |
if name.endswith('.py') or name.endswith('.h') or name.endswith('.hh') or name.endswith('.c') or name.endswith('.cc') or | if name.endswith('.py') or \ name.endswith('.h') or name.endswith('.hh') or \ name.endswith('.c') or name.endswith('.cc') or \ | def copy_license_to_files(license_content): """Copy license header to every .py, .cc or .h files""" # get the project name if not configurationhandler.project_config: configurationhandler.loadConfig() project_name = configurationhandler.project_config['project'] # open each python file and main bin file for root, dir... | 72085da42ef6f092ab7ab27495d1d0eb78d662a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/290/72085da42ef6f092ab7ab27495d1d0eb78d662a2/license.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
12687,
67,
869,
67,
2354,
12,
12687,
67,
1745,
4672,
3536,
2951,
8630,
1446,
358,
3614,
263,
2074,
16,
263,
952,
578,
263,
76,
1390,
8395,
225,
468,
336,
326,
1984,
508,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
12687,
67,
869,
67,
2354,
12,
12687,
67,
1745,
4672,
3536,
2951,
8630,
1446,
358,
3614,
263,
2074,
16,
263,
952,
578,
263,
76,
1390,
8395,
225,
468,
336,
326,
1984,
508,
309,... |
'selector': ' }]) | 'selector': ' ]) | def test_replaceFilteredRulesForm(self): view = self.view commands = view.getCommands() res = view.replaceFilteredRulesForm(ruleType='state-enabled') self.assertEquals(res, [ {'selectorType': '', 'params': {'html': u'<![CDATA[\n<form style="display: inline" method="POST" id="rules_table_form" action="http://nohost/plon... | 8e10635eb95b61dcecc555114726969d7c40cc1b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12184/8e10635eb95b61dcecc555114726969d7c40cc1b/test_kss.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2079,
14478,
4478,
1204,
12,
2890,
4672,
1476,
273,
365,
18,
1945,
4364,
273,
1476,
18,
588,
9127,
1435,
400,
273,
1476,
18,
2079,
14478,
4478,
1204,
12,
5345,
559,
2218,
2019,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2079,
14478,
4478,
1204,
12,
2890,
4672,
1476,
273,
365,
18,
1945,
4364,
273,
1476,
18,
588,
9127,
1435,
400,
273,
1476,
18,
2079,
14478,
4478,
1204,
12,
5345,
559,
2218,
2019,... |
for instr in self.project.instruments: if not instr.isVisible: toolbutt = gtk.ToolButton() imgsize = gtk.icon_size_lookup(gtk.ICON_SIZE_MENU)[0] pixbuf = instr.pixbuf.scale_simple(imgsize, imgsize, gtk.gdk.INTERP_BILINEAR) image = gtk.Image() image.set_from_pixbuf(pixbuf) toolbutt.set_label(instr.name) toolbutt.set_i... | minimisedInstrs = [x for x in self.project.instruments if not x.isVisible] for instr in minimisedInstrs: toolbutt = gtk.ToolButton() imgsize = gtk.icon_size_lookup(gtk.ICON_SIZE_MENU)[0] pixbuf = instr.pixbuf.scale_simple(imgsize, imgsize, gtk.gdk.INTERP_BILINEAR) image = gtk.Image() image.set_from_pixbuf(pixbuf) too... | def Update(self): """ Updates the mix view when requested by OnStateChanged or __init__ Returns: False -- indicates the GTK signal to: 1) continue propagating the regular signal. 2) stop calling the callback on a timeout_add. """ if self.Updating: return self.Updating = True self.projectview.Update() # remove all th... | 48fa5ad9ed2b02b3f606cc7155b0cd3339a354ee /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10033/48fa5ad9ed2b02b3f606cc7155b0cd3339a354ee/CompactMixView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
12,
2890,
4672,
3536,
15419,
326,
6843,
1476,
1347,
3764,
635,
2755,
1119,
5033,
578,
1001,
2738,
972,
225,
2860,
30,
1083,
1493,
8527,
326,
19688,
47,
4277,
358,
30,
404,
13,
1324... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2315,
12,
2890,
4672,
3536,
15419,
326,
6843,
1476,
1347,
3764,
635,
2755,
1119,
5033,
578,
1001,
2738,
972,
225,
2860,
30,
1083,
1493,
8527,
326,
19688,
47,
4277,
358,
30,
404,
13,
1324... |
formatter = logging.Formatter(fmt=FMT, datefmt=DATEFMT) log = logging.getLogger('mailman') handler = logging.StreamHandler() handler.setFormatter(formatter) log.addHandler(handler) log.setLevel(logging.INFO) | logging.basicConfig(format=FMT, datefmt=DATEFMT, level=logging.INFO) cp = ReallySafeConfigParser() if config.LOG_CONFIG_FILE: cp.read(config.LOG_CONFIG_FILE) | def initialize(propagate=False): # XXX Don't call logging.basicConfig() because in Python 2.3, it adds a # handler to the root logger that we don't want. When Python 2.4 is the # minimum requirement, we can use basicConfig() with keyword arguments. # # The current set of Mailman logs are: # # debug - Only used... | 6362c6e0a021eb5939d14b8ae4a2ed7b80371580 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2120/6362c6e0a021eb5939d14b8ae4a2ed7b80371580/loginit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
5986,
346,
340,
33,
8381,
4672,
468,
11329,
7615,
1404,
745,
2907,
18,
13240,
809,
1435,
2724,
316,
6600,
576,
18,
23,
16,
518,
4831,
279,
468,
1838,
358,
326,
1365,
1194,
71... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
12,
5986,
346,
340,
33,
8381,
4672,
468,
11329,
7615,
1404,
745,
2907,
18,
13240,
809,
1435,
2724,
316,
6600,
576,
18,
23,
16,
518,
4831,
279,
468,
1838,
358,
326,
1365,
1194,
71... |
return self._dict.__contains__(el) | raise NotImplementedError("Please use a subclass that implements the __contains__ method") | def __contains__(self, el): #{{{ | 5692ed97988b844b3fc73c0ff916ecbd137ea54b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2635/5692ed97988b844b3fc73c0ff916ecbd137ea54b/mappingset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
415,
4672,
3735,
12187,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
415,
4672,
3735,
12187,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
'web' | 'browser' | 'device' | 'broker' | 'web' | 'browser' | 'agency' | 'broker' | def isRunning(self, part): """Called to test the web presence or browser is running. | 89c26ae85ea06431a8c3e18f173500e3bf7a509d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12466/89c26ae85ea06431a8c3e18f173500e3bf7a509d/manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19858,
12,
2890,
16,
1087,
4672,
3536,
8185,
358,
1842,
326,
3311,
9805,
578,
4748,
353,
3549,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19858,
12,
2890,
16,
1087,
4672,
3536,
8185,
358,
1842,
326,
3311,
9805,
578,
4748,
353,
3549,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
except KeyError: raise KeyError, name + " is not a valid option." | except KeyError: raise AttributeError, name + " is not a valid option." | def __setattr__(self, name, value): try: if _Config.defaults[name] != value or _Config.options.get(name, _Config.invalidValue) != value: if "Dir" in name: _Config.__createDir(value) _Config.options[name] = value except KeyError: raise KeyError, name + " is not a valid option." | dac7e4d0e824051ef6794eb34c3098a347d61893 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10139/dac7e4d0e824051ef6794eb34c3098a347d61893/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
4672,
775,
30,
309,
389,
809,
18,
7606,
63,
529,
65,
480,
460,
578,
389,
809,
18,
2116,
18,
588,
12,
529,
16,
389,
809,
18,
5387,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
4672,
775,
30,
309,
389,
809,
18,
7606,
63,
529,
65,
480,
460,
578,
389,
809,
18,
2116,
18,
588,
12,
529,
16,
389,
809,
18,
5387,
... |
'PCBuild')) | 'PC', 'VS7.1')) | def finalize_options (self): from distutils import sysconfig | 3af3ecca92ca7b10b2c53c51166101267975f029 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/3af3ecca92ca7b10b2c53c51166101267975f029/build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
67,
2116,
261,
2890,
4672,
628,
2411,
5471,
1930,
2589,
1425,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
261,
2890,
4672,
628,
2411,
5471,
1930,
2589,
1425,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
out += """<br><span class="moreinfo"><a class="moreinfo" href="%s/search.py?id=%s">Detailed record</a></span>""" \ | out += """<br><span class="moreinfo"><a class="moreinfo" href="%s/search.py?recid=%s">Detailed record</a></span>""" \ | def print_record(recID, format='hb', ot='', decompress=zlib.decompress): "Prints record 'recID' formatted accoding to 'format'." out = "" # sanity check: if not record_exists(recID): return out # print record opening tags, if needed: if format == "marcxml" or format == "oai_dc": out += " <record>\n" out += " <head... | 535ed6a8d836745c0ddd7f1016fbe145d7c7bebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/535ed6a8d836745c0ddd7f1016fbe145d7c7bebd/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
3366,
12,
3927,
734,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
16824,
33,
94,
2941,
18,
323,
14706,
4672,
315,
15402,
1409,
296,
3927,
734,
11,
4955,
4078,
4751,
358,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
3366,
12,
3927,
734,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
16824,
33,
94,
2941,
18,
323,
14706,
4672,
315,
15402,
1409,
296,
3927,
734,
11,
4955,
4078,
4751,
358,
2... |
start = page_num * rows - 10 | start = rows * (page_num - 1) | def __init__(self, query): self.query = query.copy() | 7233a25d6e71372cbd851c5184c11474966dfc5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6299/7233a25d6e71372cbd851c5184c11474966dfc5d/index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
843,
4672,
365,
18,
2271,
273,
843,
18,
3530,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
843,
4672,
365,
18,
2271,
273,
843,
18,
3530,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.client.voidresp() | self.assertEqual(self.client.voidresp(), "226 transfer complete") | def test_data_connection(self): # clear text sock = self.client.transfercmd('list') self.assertNotIsInstance(sock, ssl.SSLSocket) sock.close() self.client.voidresp() | 1ad61af58377105e51758ab67f7315199e5d6064 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/1ad61af58377105e51758ab67f7315199e5d6064/test_ftplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
892,
67,
4071,
12,
2890,
4672,
468,
2424,
977,
7313,
273,
365,
18,
2625,
18,
13866,
4172,
2668,
1098,
6134,
365,
18,
11231,
1248,
2520,
1442,
12,
15031,
16,
5832,
18,
1260,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
892,
67,
4071,
12,
2890,
4672,
468,
2424,
977,
7313,
273,
365,
18,
2625,
18,
13866,
4172,
2668,
1098,
6134,
365,
18,
11231,
1248,
2520,
1442,
12,
15031,
16,
5832,
18,
1260,
2... |
if not self._isDeadEnd(attr): | if not self._isDeadEnd(attr, key): | def run(self): taskMgr.doMethodLater(self._nextCheckDelay, self._checkForLeaks, self.getCheckTaskName()) | 88950518abcce43f6828c7e417218c4bdb6988d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/88950518abcce43f6828c7e417218c4bdb6988d8/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1562,
9455,
18,
2896,
1305,
20607,
12,
2890,
6315,
4285,
1564,
6763,
16,
365,
6315,
1893,
1290,
1682,
581,
87,
16,
365,
18,
588,
1564,
2174,
461,
10756,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1562,
9455,
18,
2896,
1305,
20607,
12,
2890,
6315,
4285,
1564,
6763,
16,
365,
6315,
1893,
1290,
1682,
581,
87,
16,
365,
18,
588,
1564,
2174,
461,
10756,
2,
-100,
... |
self.fp += 1 | self.fn += 1 | def CalculateStats(self): self.Reset() for msg in msginfoDB.db: self.total += 1 m = self.__empty_msg() m.id = msg msginfoDB._getState(m) if m.c == 's': self.cls_spam += 1 if m.t == 0: self.fn += 1 elif m.c == 'h': self.cls_ham += 1 if m.t == 1: self.fp += 1 elif m.c == 'u': self.cls_unsure += 1 if m.t == 0: self.trn_un... | ec75a1d02f7509b75c9d531bbde8028fafb82d32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/ec75a1d02f7509b75c9d531bbde8028fafb82d32/Stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9029,
4195,
12,
2890,
4672,
365,
18,
7013,
1435,
364,
1234,
316,
1234,
1376,
2290,
18,
1966,
30,
365,
18,
4963,
1011,
404,
312,
273,
365,
16186,
5531,
67,
3576,
1435,
312,
18,
350,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9029,
4195,
12,
2890,
4672,
365,
18,
7013,
1435,
364,
1234,
316,
1234,
1376,
2290,
18,
1966,
30,
365,
18,
4963,
1011,
404,
312,
273,
365,
16186,
5531,
67,
3576,
1435,
312,
18,
350,
273... |
def __call__(self, *args): | def __call__(self, *args, **kwds): | def __call__(self, *args): indent = debugindent[self.log] if debugmidline[self.log]: self.log.write("\n") | 6c6061998291b28c44abf45ac6261f9b6292f500 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10452/6c6061998291b28c44abf45ac6261f9b6292f500/x88.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
3504,
273,
1198,
9355,
63,
2890,
18,
1330,
65,
309,
1198,
13138,
1369,
63,
2890,
18,
1330,
14542,
365,
18,
1330,
18,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
3504,
273,
1198,
9355,
63,
2890,
18,
1330,
65,
309,
1198,
13138,
1369,
63,
2890,
18,
1330,
14542,
365,
18,
1330,
18,
26... |
command = [lambda:app.htmlapp.addAndSelectFeed(url), "Open HTTP URL"] | messages.NewChannel(url).send_to_backend() | def openURL_withReplyEvent_(self, event, replyEvent): keyDirectObject = struct.unpack(">i", "----")[0] url = event.paramDescriptorForKeyword_(keyDirectObject).stringValue().decode('utf8') | 018bbc7d1624aa1bbb3fadb11711c555376ee49b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/018bbc7d1624aa1bbb3fadb11711c555376ee49b/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
1785,
67,
1918,
7817,
1133,
67,
12,
2890,
16,
871,
16,
4332,
1133,
4672,
498,
5368,
921,
273,
1958,
18,
17309,
2932,
34,
77,
3113,
315,
553,
7923,
63,
20,
65,
880,
273,
871,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
1785,
67,
1918,
7817,
1133,
67,
12,
2890,
16,
871,
16,
4332,
1133,
4672,
498,
5368,
921,
273,
1958,
18,
17309,
2932,
34,
77,
3113,
315,
553,
7923,
63,
20,
65,
880,
273,
871,
18... |
TargetAdd('mayacopy'+VNUM+'-wrapped.exe', input=COMMON_EGG2X_LIBS_PYSTUB) | if sys.platform == "win32": TargetAdd('mayacopy'+VNUM+'-wrapped.exe', input=COMMON_EGG2X_LIBS_PYSTUB) else: TargetAdd('mayacopy'+VNUM+'-wrapped.exe', input=COMMON_EGG2X_LIBS) | def CreatePandaVersionFiles(): version1=int(VERSION.split(".")[0]) version2=int(VERSION.split(".")[1]) version3=int(VERSION.split(".")[2]) nversion=version1*1000000+version2*1000+version3 pandaversion_h = PANDAVERSION_H.replace("VERSION1",str(version1)) pandaversion_h = pandaversion_h.replace("VERSION2",str(version2))... | 363855b1b43c4ed8ea04da225cb9e53b61c3b55b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/363855b1b43c4ed8ea04da225cb9e53b61c3b55b/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
52,
464,
69,
1444,
2697,
13332,
1177,
21,
33,
474,
12,
5757,
18,
4939,
2932,
1199,
25146,
20,
5717,
1177,
22,
33,
474,
12,
5757,
18,
4939,
2932,
1199,
25146,
21,
5717,
1177,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
52,
464,
69,
1444,
2697,
13332,
1177,
21,
33,
474,
12,
5757,
18,
4939,
2932,
1199,
25146,
20,
5717,
1177,
22,
33,
474,
12,
5757,
18,
4939,
2932,
1199,
25146,
21,
5717,
1177,
23,
... |
(weburl, url_args, results_in_Home._nbhits), "") | (weburl, url_args, results_in_Home._nbhits)) | def search_pattern(req, p=None, f=None, colls=[], m=None, hit_hints=0): """Searches for pattern 'p' and field 'f' and returns dict of recIDs HitLists per each collection in 'colls'. - Optionally, the function accepts the match type argument 'm'. If it is set (e.g. from advanced search interface), then it performs this ... | c8bc8e9e8dcaad50892504a6b2ad935d0e8bb72d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c8bc8e9e8dcaad50892504a6b2ad935d0e8bb72d/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
4951,
12,
3658,
16,
293,
33,
7036,
16,
284,
33,
7036,
16,
645,
3251,
22850,
6487,
312,
33,
7036,
16,
6800,
67,
24598,
33,
20,
4672,
3536,
16294,
364,
1936,
296,
84,
11,
471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
4951,
12,
3658,
16,
293,
33,
7036,
16,
284,
33,
7036,
16,
645,
3251,
22850,
6487,
312,
33,
7036,
16,
6800,
67,
24598,
33,
20,
4672,
3536,
16294,
364,
1936,
296,
84,
11,
471... |
sage: sr = mq.SR(2,1,2,8,gf2=True) | sage: sr = mq.SR(2, 1, 2, 8, gf2=True) | def sub_bytes(self, d): """ Perform the non-linear transform on d. | 26b5b14a2a46b23848ccefac3b41425cf353e86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/26b5b14a2a46b23848ccefac3b41425cf353e86a/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
67,
3890,
12,
2890,
16,
302,
4672,
3536,
11217,
326,
1661,
17,
12379,
2510,
603,
302,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
67,
3890,
12,
2890,
16,
302,
4672,
3536,
11217,
326,
1661,
17,
12379,
2510,
603,
302,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
| QtCore.Qt.ItemIsEnabled)) | | QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsUserCheckable)) | def __init__(self, bookmark, parent, labelList): """ QBookmarkTreeWidgetItem(bookmark: Bookmark, parent: QTreeWidgetItem labelList: QStringList) -> QBookmarkTreeWidget Create a new tree widget item with a specific parent and labels | 0894a6c25e7078774573a34b285f23a303f54a9a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/0894a6c25e7078774573a34b285f23a303f54a9a/bookmark_panel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13696,
16,
982,
16,
1433,
682,
4672,
3536,
2238,
22966,
2471,
4609,
1180,
12,
3618,
3355,
30,
20258,
3355,
16,
982,
30,
2238,
2471,
4609,
1180,
1433,
682,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13696,
16,
982,
16,
1433,
682,
4672,
3536,
2238,
22966,
2471,
4609,
1180,
12,
3618,
3355,
30,
20258,
3355,
16,
982,
30,
2238,
2471,
4609,
1180,
1433,
682,
... |
array.array.__init__(typecode) | array.array.__init__(self, typecode) | def __init__(self, typecode, newarg=None): array.array.__init__(typecode) | 8fb9c56a93e0cfc376598f7cb8597424279a4c40 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/8fb9c56a93e0cfc376598f7cb8597424279a4c40/test_array.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
710,
16,
394,
3175,
33,
7036,
4672,
526,
18,
1126,
16186,
2738,
972,
12,
723,
710,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
710,
16,
394,
3175,
33,
7036,
4672,
526,
18,
1126,
16186,
2738,
972,
12,
723,
710,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
cmd='"%s" -b "%s" %s -s "%s" "%s"' % (munger,bindir, mungeropts,refBrain,image) | cmd='"%s" -b "%s" %s -s "%s" .' % (munger,bindir, mungeropts,refBrain) | def findExecutable(execname,msg=''): ''' @return full path to a command using the shell's which function ''' execpath=subprocess.Popen(["which", execname], stdout=subprocess.PIPE).communicate()[0].rstrip() if execpath == '' : if msg == '' : msg="Locate the program "+execname newpath = easygui.fileopenbox(msg=msg) retur... | 4949a6e52733dd60f71681ba83e60f83ba4df96a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14871/4949a6e52733dd60f71681ba83e60f83ba4df96a/callmungereasygui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
17709,
12,
4177,
529,
16,
3576,
2218,
11,
4672,
9163,
632,
2463,
1983,
589,
358,
279,
1296,
1450,
326,
5972,
1807,
1492,
445,
9163,
1196,
803,
33,
1717,
2567,
18,
52,
3190,
3816,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
17709,
12,
4177,
529,
16,
3576,
2218,
11,
4672,
9163,
632,
2463,
1983,
589,
358,
279,
1296,
1450,
326,
5972,
1807,
1492,
445,
9163,
1196,
803,
33,
1717,
2567,
18,
52,
3190,
3816,
... |
Instances.flavorId == Flavors.flavorId | Instances.flavorId = Flavors.flavorId | def resolve(self, label, depSetList): """ Determine troves that provide the given dependencies, restricting by label and limiting to latest version for each (name, flavor) pair. """ selectTemplate = """SELECT depNum, Items.item, Versions.version, Nodes.timeStamps, flavor FROM (%s) INNER JOIN Instances ON provInstanceId... | c3870e643626054f9dc7fe38751e71be00f92f1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c3870e643626054f9dc7fe38751e71be00f92f1b/deptable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
2890,
16,
1433,
16,
5993,
694,
682,
4672,
3536,
10229,
23432,
3324,
716,
5615,
326,
864,
5030,
16,
13108,
310,
635,
1433,
471,
1800,
310,
358,
4891,
1177,
364,
1517,
261,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
2890,
16,
1433,
16,
5993,
694,
682,
4672,
3536,
10229,
23432,
3324,
716,
5615,
326,
864,
5030,
16,
13108,
310,
635,
1433,
471,
1800,
310,
358,
4891,
1177,
364,
1517,
261,
529,
... |
autoconnect.connect('toggled', self.prefs_config_widget_active, | autoconnect.connect('toggled', self._config_widget_active, | def mpd_tab(self): """Construct and layout the MPD tab""" mpdlabel = ui.label(markup='<b>' + _('MPD Connection') + '</b>', y=1) mpd_frame = gtk.Frame() mpd_frame.set_label_widget(mpdlabel) mpd_frame.set_shadow_type(gtk.SHADOW_NONE) controlbox = gtk.HBox() profiles = ui.combo() add_profile = ui.button(img=ui.image(stock... | 7d41f2105c0d58643150b6472b6b9676150f38e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7d41f2105c0d58643150b6472b6b9676150f38e3/preferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6749,
72,
67,
7032,
12,
2890,
4672,
3536,
7249,
471,
3511,
326,
13480,
40,
3246,
8395,
6749,
72,
1925,
273,
5915,
18,
1925,
12,
15056,
2218,
32,
70,
1870,
397,
389,
2668,
4566,
40,
405... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6749,
72,
67,
7032,
12,
2890,
4672,
3536,
7249,
471,
3511,
326,
13480,
40,
3246,
8395,
6749,
72,
1925,
273,
5915,
18,
1925,
12,
15056,
2218,
32,
70,
1870,
397,
389,
2668,
4566,
40,
405... |
self.assert_(proxy.readlines(4 + len(os.linesep)) == | self.assertEqual(proxy.readlines(4 + len(os.linesep)), | def _test_readlines(self, proxy): # Read multiple lines proxy.seek(0) self.assert_(proxy.readlines() == ['foo' + os.linesep, 'bar' + os.linesep, 'fred' + os.linesep, 'bob']) proxy.seek(0) self.assert_(proxy.readlines(2) == ['foo' + os.linesep]) proxy.seek(3 + len(os.linesep)) self.assert_(proxy.readlines(4 + len(os.lin... | 9d1fae6c21b9661e8074aa8a166635ba69122b4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9d1fae6c21b9661e8074aa8a166635ba69122b4b/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
896,
3548,
12,
2890,
16,
2889,
4672,
468,
2720,
3229,
2362,
2889,
18,
16508,
12,
20,
13,
365,
18,
11231,
67,
12,
5656,
18,
896,
3548,
1435,
422,
10228,
11351,
11,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3813,
67,
896,
3548,
12,
2890,
16,
2889,
4672,
468,
2720,
3229,
2362,
2889,
18,
16508,
12,
20,
13,
365,
18,
11231,
67,
12,
5656,
18,
896,
3548,
1435,
422,
10228,
11351,
11,
397,
... |
parser = _MOFileParser(fpath) | parser = _MOFileParser(fpath, enc) | def mofile(fpath, **kwargs): """ Convenience function that parse the mo file *fpath* and return a MOFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the mo file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgettext to generate the po file th... | dda4d3f6263a4b81a841864a82766d4573d9eb92 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/dda4d3f6263a4b81a841864a82766d4573d9eb92/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7344,
768,
12,
28900,
16,
2826,
4333,
4672,
3536,
735,
9080,
445,
716,
1109,
326,
7344,
585,
380,
28900,
14,
471,
327,
279,
16070,
812,
791,
18,
225,
2826,
8736,
1775,
636,
30,
300,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7344,
768,
12,
28900,
16,
2826,
4333,
4672,
3536,
735,
9080,
445,
716,
1109,
326,
7344,
585,
380,
28900,
14,
471,
327,
279,
16070,
812,
791,
18,
225,
2826,
8736,
1775,
636,
30,
300,
38... |
return importer.import_file(filename, finfo, fqname) | return importFunc(filename, finfo, fqname) | def _import_pathname(self, pathname, fqname): if _os_path_isdir(pathname): result = self._import_pathname(_os_path_join(pathname, '__init__'), fqname) if result: values = result[2] values['__pkgdir__'] = pathname values['__path__'] = [ pathname ] return 1, result[1], values return None | 16abaf4fd2ed34d4b3b71d740cdef6686032295c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/16abaf4fd2ed34d4b3b71d740cdef6686032295c/imputil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5666,
67,
28336,
12,
2890,
16,
9806,
16,
8508,
529,
4672,
309,
389,
538,
67,
803,
67,
291,
1214,
12,
28336,
4672,
563,
273,
365,
6315,
5666,
67,
28336,
24899,
538,
67,
803,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5666,
67,
28336,
12,
2890,
16,
9806,
16,
8508,
529,
4672,
309,
389,
538,
67,
803,
67,
291,
1214,
12,
28336,
4672,
563,
273,
365,
6315,
5666,
67,
28336,
24899,
538,
67,
803,
67,
... |
def response (dialog, response): resfunc(dialog, response) d.hide() d.connect("response", response) | def response (dialog, response, responsecb): responsecb(dialog, response) dialog.hide() d.connect("response", response, responsecb) | def response (dialog, response): resfunc(dialog, response) d.hide() | f9f75be5e90c57a67878c17a201267ee91112ea7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5339/f9f75be5e90c57a67878c17a201267ee91112ea7/Human.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
261,
12730,
16,
766,
4672,
400,
644,
12,
12730,
16,
766,
13,
302,
18,
11248,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
261,
12730,
16,
766,
4672,
400,
644,
12,
12730,
16,
766,
13,
302,
18,
11248,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
atoms = traj[0] r_old = atoms.get_positions() f_old = atoms.get_forces() | r_old = None f_old = None | def replay_trajectory(self, traj): """Initialize hessian from old trajectory.""" if isinstance(traj, str): from ase.io.trajectory import PickleTrajectory traj = PickleTrajectory(traj, 'r') atoms = traj[0] r_old = atoms.get_positions() f_old = atoms.get_forces() for i in range(0, len(traj) - 1): r = traj[i].get_position... | e4186acc11663a2a2c70c16ef0b0536e66a7b908 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5735/e4186acc11663a2a2c70c16ef0b0536e66a7b908/lbfgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16033,
67,
2033,
19528,
12,
2890,
16,
1284,
78,
4672,
3536,
7520,
366,
20529,
628,
1592,
27016,
12123,
309,
1549,
12,
30514,
16,
609,
4672,
628,
26561,
18,
1594,
18,
2033,
19528,
1930,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16033,
67,
2033,
19528,
12,
2890,
16,
1284,
78,
4672,
3536,
7520,
366,
20529,
628,
1592,
27016,
12123,
309,
1549,
12,
30514,
16,
609,
4672,
628,
26561,
18,
1594,
18,
2033,
19528,
1930,
2... |
instr.SetLevel(DbToFloat(st["decay"][0])) | instr.SetLevel(DbToFloat(struct["decay"][0])) | def __PipelineBusLevelCb(self, bus, message): """ Handler for GStreamer bus messages about the currently reported level for the project or any of the instruments. """ st = message.structure if st and st.get_name() == "level": if not message.src is self.levelElement: for instr in self.instruments: if message.src is ins... | e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8798,
7086,
2355,
15237,
12,
2890,
16,
5766,
16,
883,
4672,
3536,
4663,
364,
611,
1228,
264,
5766,
2743,
2973,
326,
4551,
14010,
1801,
364,
326,
1984,
578,
1281,
434,
326,
29555,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8798,
7086,
2355,
15237,
12,
2890,
16,
5766,
16,
883,
4672,
3536,
4663,
364,
611,
1228,
264,
5766,
2743,
2973,
326,
4551,
14010,
1801,
364,
326,
1984,
578,
1281,
434,
326,
29555,
1... |
def base_test_rects(self,rects): gc = agg.GraphicsContextArray((100,100)) | def base_rects(self,rects): gc = agg.GraphicsContextArray((100, 100)) | def base_test_rects(self,rects): gc = agg.GraphicsContextArray((100,100)) gc.rects(rects) actual = gc._get_path()._vertices() desired = array(((1.0,1.0,agg.path_cmd_move_to, agg.path_flags_none), (1.0,2.0,agg.path_cmd_line_to, agg.path_flags_none), (2.0,2.0,agg.path_cmd_line_to, agg.path_flags_none), (2.0,1.0,agg.path_... | e47282ce7056af747cbd7b863b37854c3c1dd9d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/e47282ce7056af747cbd7b863b37854c3c1dd9d6/graphics_context_test_case.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
2607,
87,
12,
2890,
16,
2607,
87,
4672,
8859,
273,
10421,
18,
17558,
1042,
1076,
12443,
6625,
16,
2130,
3719,
8859,
18,
2607,
87,
12,
2607,
87,
13,
3214,
273,
8859,
6315,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
2607,
87,
12,
2890,
16,
2607,
87,
4672,
8859,
273,
10421,
18,
17558,
1042,
1076,
12443,
6625,
16,
2130,
3719,
8859,
18,
2607,
87,
12,
2607,
87,
13,
3214,
273,
8859,
6315,
588... |
startup_pipe.write(struct.pack('@H', listen_port)) | startup_pipe.write(struct.pack('=L', server_data_len)) startup_pipe.write(server_data_json) | def main(options, args): logfile = open('testserver.log', 'w') sys.stdout = FileMultiplexer(sys.stdout, logfile) sys.stderr = FileMultiplexer(sys.stderr, logfile) port = options.port if options.server_type == SERVER_HTTP: if options.cert: # let's make sure the cert file exists. if not os.path.isfile(options.cert): pr... | d38dc438a2d6467e58b52213517566bd3f66d280 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/d38dc438a2d6467e58b52213517566bd3f66d280/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
15204,
273,
1696,
2668,
3813,
3567,
18,
1330,
2187,
296,
91,
6134,
2589,
18,
10283,
273,
1387,
8438,
92,
264,
12,
9499,
18,
10283,
16,
15204,
13,
2589,
1... |
else: db_field = db_values[key] | def import_record(self, cursor, user, model, module, values, fs_id): | d0801dc2816f0701c191a2942109935a99cf02f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/d0801dc2816f0701c191a2942109935a99cf02f6/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
3366,
12,
2890,
16,
3347,
16,
729,
16,
938,
16,
1605,
16,
924,
16,
2662,
67,
350,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
3366,
12,
2890,
16,
3347,
16,
729,
16,
938,
16,
1605,
16,
924,
16,
2662,
67,
350,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
register() | def unregister(): bpy.types.VIEW3D_MT_edit_mesh_faces.remove(menu_func) | 3c99606547c1cbdf8a00d81348e24eebea18f852 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11963/3c99606547c1cbdf8a00d81348e24eebea18f852/mesh_bridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10232,
13332,
324,
2074,
18,
2352,
18,
12145,
23,
40,
67,
6152,
67,
4619,
67,
15557,
67,
4601,
18,
4479,
12,
5414,
67,
644,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10232,
13332,
324,
2074,
18,
2352,
18,
12145,
23,
40,
67,
6152,
67,
4619,
67,
15557,
67,
4601,
18,
4479,
12,
5414,
67,
644,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
gLogger.info("StageRequest__issuePrestageRequests: %.2f GB used at %s (limit %2.f GB)" % ((usedSpace)/(1000*1000*1000.0),storageElement,totalSpace/(1000*1000*1000.0))) | gLogger.info( "StageRequest__issuePrestageRequests: %.2f GB used at %s (limit %2.f GB)" % ( ( usedSpace ) / ( 1000 * 1000 * 1000.0 ), storageElement, totalSpace / ( 1000 * 1000 * 1000.0 ) ) ) | def __issuePrestageRequests(self,storageElement,seReplicaIDs,allReplicaInfo): # First select which files can be eligible for prestaging based on the available space usedSpace = 0 if self.storageElementUsage.has_key(storageElement): usedSpace = self.storageElementUsage[storageElement]['TotalSize'] totalSpace = gConfig.g... | 87d9e4a612b5cfd0ddcec58ce5dded533250cdc2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/87d9e4a612b5cfd0ddcec58ce5dded533250cdc2/StageRequestAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
13882,
1386,
12869,
6421,
12,
2890,
16,
5697,
1046,
16,
307,
14222,
5103,
16,
454,
14222,
966,
4672,
468,
5783,
2027,
1492,
1390,
848,
506,
21351,
364,
675,
334,
5755,
2511,
603,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
13882,
1386,
12869,
6421,
12,
2890,
16,
5697,
1046,
16,
307,
14222,
5103,
16,
454,
14222,
966,
4672,
468,
5783,
2027,
1492,
1390,
848,
506,
21351,
364,
675,
334,
5755,
2511,
603,
3... |
def __init__(self, host='', port=None): | def __init__(self, host='', port=None, strict=None): | def __init__(self, host='', port=None): "Provide a default host, since the superclass requires one." | 10fb0cd552742f705321830d292919646e739dd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/10fb0cd552742f705321830d292919646e739dd2/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
2218,
2187,
1756,
33,
7036,
16,
5490,
33,
7036,
4672,
315,
20632,
279,
805,
1479,
16,
3241,
326,
12098,
4991,
1245,
1199,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
1479,
2218,
2187,
1756,
33,
7036,
16,
5490,
33,
7036,
4672,
315,
20632,
279,
805,
1479,
16,
3241,
326,
12098,
4991,
1245,
1199,
2,
-100,
-100,
-100,
-100,
... |
if argv == NULL or argc <= 0: | if argv == NULL or argc.value <= 0: | def CommandLineToArgvW(lpCmdLine): if lpCmdLine is None: lpCmdLine = NULL if lpCmdLine != NULL: lpCmdLine = ctypes.byref(lpCmdLine) argc = ctypes.c_int(0) argv = ctypes.windll.shell32.CommandLineToArgvW(lpCmdLine, ctypes.byref(argc)) if argv == NULL or argc <= 0: ctypes.WinError() try: vptr = ctypes.c_void_p(argv) aptr... | f8e3dd04a34c34d1ca65f7d41b1dd4657ede074a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/f8e3dd04a34c34d1ca65f7d41b1dd4657ede074a/win32.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15893,
774,
4117,
90,
59,
12,
9953,
5931,
1670,
4672,
309,
12423,
5931,
1670,
353,
599,
30,
12423,
5931,
1670,
273,
3206,
309,
12423,
5931,
1670,
480,
3206,
30,
12423,
5931,
1670,
273,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15893,
774,
4117,
90,
59,
12,
9953,
5931,
1670,
4672,
309,
12423,
5931,
1670,
353,
599,
30,
12423,
5931,
1670,
273,
3206,
309,
12423,
5931,
1670,
480,
3206,
30,
12423,
5931,
1670,
273,
6... |
else | else: | def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 160) else quickfix.CharField.__init__(self, 160, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
25430,
13,
469,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
25430,
13,
469,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
9... |
line = """ <b id=\"performer87403420\"> mi123sdf ФЫВАв serdce Trofim)<\/b><span><b id=\"performer87403420""" print line print re.findall("<b id=\"performer([0-9]*)\">([А-ЯA-Z0-9 ()]*)<", line, re.IGNORECASE) line = """nbsp;<\/span><span id=\"title76067271\">SHtil& <a href="javascript: showLyrics(87919392,3966457);">Кт... | def s(self, value): if value: return value else: return "" | 76c1c68376b93417f6050ff4ff45ffdeb906acbb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/76c1c68376b93417f6050ff4ff45ffdeb906acbb/vk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
12,
2890,
16,
460,
4672,
309,
460,
30,
327,
460,
469,
30,
327,
1408,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
272,
12,
2890,
16,
460,
4672,
309,
460,
30,
327,
460,
469,
30,
327,
1408,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
for category, books in collections.items(): | for category, lpaths in collections.items(): books = lpaths.values() | def get_collections(self, collection_attributes): from calibre.devices.usbms.driver import debug_print debug_print('Starting get_collections:', prefs['manage_device_metadata']) debug_print('Renaming rules:', tweaks['sony_collection_renaming_rules']) | bcd1d79352d584b33c4d09cb755712aadd3f1139 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/bcd1d79352d584b33c4d09cb755712aadd3f1139/books.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
19246,
12,
2890,
16,
1849,
67,
4350,
4672,
628,
26139,
266,
18,
12506,
18,
25525,
959,
18,
7407,
1930,
1198,
67,
1188,
1198,
67,
1188,
2668,
11715,
336,
67,
19246,
30,
2187,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
19246,
12,
2890,
16,
1849,
67,
4350,
4672,
628,
26139,
266,
18,
12506,
18,
25525,
959,
18,
7407,
1930,
1198,
67,
1188,
1198,
67,
1188,
2668,
11715,
336,
67,
19246,
30,
2187,
1... |
def export(ctxt, url, path=None, revision=None): | def export(ctxt, url, path=None, revision=None, dir_='.'): | def export(ctxt, url, path=None, revision=None): """Perform an export from a Subversion repository. :param ctxt: the build context :type ctxt: `Context` :param url: the URL of the repository :param path: the path inside the repository :param revision: the revision to check out """ args = ['export', '--force'] if revis... | 2a5426b22bc673bd28d3b309ee85369a57b71992 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/2a5426b22bc673bd28d3b309ee85369a57b71992/svntools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
20364,
16,
880,
16,
589,
33,
7036,
16,
6350,
33,
7036,
16,
1577,
67,
2218,
1093,
4672,
3536,
4990,
392,
3359,
628,
279,
2592,
1589,
3352,
18,
225,
294,
891,
14286,
30,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
20364,
16,
880,
16,
589,
33,
7036,
16,
6350,
33,
7036,
16,
1577,
67,
2218,
1093,
4672,
3536,
4990,
392,
3359,
628,
279,
2592,
1589,
3352,
18,
225,
294,
891,
14286,
30,
326,
... |
print "X", csum, self.repomd[dbtype]["checksum"] | def getDbFile(self, dbtype): cachebase = os.path.join(self.config.cachedir, self.reponame) cachepath = os.path.join(self.config.cachedir, self.reponame, "sqlite") | c8d839853a18f3e88789cf6df994a51661f98ef1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/c8d839853a18f3e88789cf6df994a51661f98ef1/sqlitedb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11188,
812,
12,
2890,
16,
1319,
723,
4672,
1247,
1969,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
1425,
18,
7097,
481,
16,
365,
18,
266,
500,
339,
13,
1247,
803,
273,
1140,
18,
803,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11188,
812,
12,
2890,
16,
1319,
723,
4672,
1247,
1969,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
1425,
18,
7097,
481,
16,
365,
18,
266,
500,
339,
13,
1247,
803,
273,
1140,
18,
803,... | |
raise ValueError, "Baudrate must be a integer number" | raise ValueError, "Baudrate must be a integer number, not %r" % a | def usage(): print >>sys.stderr, """USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: port, a number, defualt = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow control (... | b786cd543c0d1d1d0891ed88728d89d9950c58cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/b786cd543c0d1d1d0891ed88728d89d9950c58cb/miniterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
1671,
9499,
18,
11241,
16,
3536,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4084,
13332,
1172,
1671,
9499,
18,
11241,
16,
3536,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... |
('debug', '', '$(MAKE) CFLAGS="-g -DRPY_ASSERT" $(TARGET)'), ('debug_exc', '', '$(MAKE) CFLAGS="-g -DRPY_ASSERT -DDO_LOG_EXC" $(TARGET)'), ('debug_mem', '', '$(MAKE) CFLAGS="-g -DRPY_ASSERT -DTRIVIAL_MALLOC_DEBUG" $(TARGET)'), ('no_obmalloc', '', '$(MAKE) CFLAGS="-g -DRPY_ASSERT -DNO_OBMALLOC" $(TARGET)'), ('linuxmemch... | ('debug', '', '$(MAKE) CFLAGS="-g -O1 -DRPY_ASSERT" $(TARGET)'), ('debug_exc', '', '$(MAKE) CFLAGS="-g -O1 -DRPY_ASSERT -DDO_LOG_EXC" $(TARGET)'), ('debug_mem', '', '$(MAKE) CFLAGS="-g -O1 -DRPY_ASSERT -DTRIVIAL_MALLOC_DEBUG" $(TARGET)'), ('no_obmalloc', '', '$(MAKE) CFLAGS="-g -O1 -DRPY_ASSERT -DNO_OBMALLOC" $(TARGET)... | def gen_makefile(self, targetdir): cfiles = [self.c_source_filename] + self.extrafiles mk = self.translator.platform.gen_makefile(cfiles, self.eci, path=targetdir) if self.has_profopt(): profopt = self.config.translation.profopt mk.definition('ABS_TARGET', '$(shell python -c "import sys,os; print os.path.abspath(sys.ar... | 7ae6d32c762b310bca1b737c842a7b90adceca1e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/7ae6d32c762b310bca1b737c842a7b90adceca1e/genc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
6540,
768,
12,
2890,
16,
1018,
1214,
4672,
276,
2354,
273,
306,
2890,
18,
71,
67,
3168,
67,
3459,
65,
397,
365,
18,
14523,
1727,
1449,
5028,
273,
365,
18,
17879,
18,
9898,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3157,
67,
6540,
768,
12,
2890,
16,
1018,
1214,
4672,
276,
2354,
273,
306,
2890,
18,
71,
67,
3168,
67,
3459,
65,
397,
365,
18,
14523,
1727,
1449,
5028,
273,
365,
18,
17879,
18,
9898,
... |
- ``pr2`` - the projection of D onto other (giving a | - ``pr2`` - the projection of ``D`` onto ``other`` (giving a | def direct_product(self,other,maps=True): """ Wraps GAP's DirectProduct, Embedding, and Projection. Sage calls GAP's DirectProduct, which chooses an efficient representation for the direct product. The direct product of permutation groups will be a permutation group again. For a direct product D, the GAP operation Emb... | f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2657,
67,
5896,
12,
2890,
16,
3011,
16,
10711,
33,
5510,
4672,
3536,
678,
7506,
611,
2203,
1807,
9908,
4133,
16,
14564,
7459,
16,
471,
21288,
18,
225,
348,
410,
4097,
611,
2203,
1807,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2657,
67,
5896,
12,
2890,
16,
3011,
16,
10711,
33,
5510,
4672,
3536,
678,
7506,
611,
2203,
1807,
9908,
4133,
16,
14564,
7459,
16,
471,
21288,
18,
225,
348,
410,
4097,
611,
2203,
1807,
... |
key_left | key_left: | def kbPatch(exe): """Patch the Robot Odyssey engine's keyboard decoder.""" # Robot Odyssey has a bug that makes it rather difficult to play # on an AT keyboard, particularly one without a numeric keypad: # While the AT-style ("gray") arrow keys do work for basic # movement, the game can't detect shift-arrow combinatio... | 759308781d42ac356f2dd3c5f6dc2d3cd3ef278d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6757/759308781d42ac356f2dd3c5f6dc2d3cd3ef278d/robot_odyssey_patcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9182,
7332,
12,
14880,
4672,
3536,
7332,
326,
19686,
352,
531,
72,
1900,
307,
93,
4073,
1807,
16263,
8320,
12123,
225,
468,
19686,
352,
531,
72,
1900,
307,
93,
711,
279,
7934,
716,
7297,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9182,
7332,
12,
14880,
4672,
3536,
7332,
326,
19686,
352,
531,
72,
1900,
307,
93,
4073,
1807,
16263,
8320,
12123,
225,
468,
19686,
352,
531,
72,
1900,
307,
93,
711,
279,
7934,
716,
7297,... |
[(fn, ft) for fn, ft in self.__config if hasattr(ft, 'store')]) | [(fn, ft) for fn, ft in self._config if hasattr(ft, 'store')]) | def external(self): return FieldDescriptions( [(fn, ft) for fn, ft in self.__config if hasattr(ft, 'store')]) | f56713a386bf1305fbef61fa0979f6dcca2aaf28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/f56713a386bf1305fbef61fa0979f6dcca2aaf28/qFieldTypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3903,
12,
2890,
4672,
327,
2286,
16844,
12,
306,
12,
4293,
16,
11038,
13,
364,
2295,
16,
11038,
316,
365,
16186,
1425,
309,
3859,
12,
1222,
16,
296,
2233,
6134,
5717,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3903,
12,
2890,
4672,
327,
2286,
16844,
12,
306,
12,
4293,
16,
11038,
13,
364,
2295,
16,
11038,
316,
365,
16186,
1425,
309,
3859,
12,
1222,
16,
296,
2233,
6134,
5717,
2,
-100,
-100,
-1... |
color = convertColor(color) | def addCanvasLine(canvas,p1,p2,color=(0,0,0),color2=None,**kwargs): canvas.ctx.set_line_width(kwargs.get('linewidth',1)) if color2 and color2!=color: mp = (p1[0]+p2[0])/2.,(p1[1]+p2[1])/2. color = convertColor(color) canvas.ctx.set_source_rgb(*color) _doLine(canvas,p1,mp,**kwargs) canvas.ctx.stroke() color2 = convertCo... | 5ba093eaf3549394b8a19230b1d78201ff272742 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9195/5ba093eaf3549394b8a19230b1d78201ff272742/cairoCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12971,
1670,
12,
15424,
16,
84,
21,
16,
84,
22,
16,
3266,
28657,
20,
16,
20,
16,
20,
3631,
3266,
22,
33,
7036,
16,
636,
4333,
4672,
5953,
18,
5900,
18,
542,
67,
1369,
67,
2819... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12971,
1670,
12,
15424,
16,
84,
21,
16,
84,
22,
16,
3266,
28657,
20,
16,
20,
16,
20,
3631,
3266,
22,
33,
7036,
16,
636,
4333,
4672,
5953,
18,
5900,
18,
542,
67,
1369,
67,
2819... | |
global recVal for irec,rec in enumerate(userrec): if (mode == 'e'): timeflag = 1 else: timeflag = (rec[1] == time) if ((rec[0]=='ber') and timeflag and (elem == rec[2])): match=re.search(rec[3]+'\s*(([-]*\d+(\.\d+)?(e[+-]\d+)?)\s*)+', line) if match: recVal[irec]=re.split('\s+',match.group(0))[rec[4]] | global recVal for irec,rec in enumerate(userrec): if (mode == 'e'): timeflag = 1 else: timeflag = (rec[1] == time) if ((rec[0]=='ber') and timeflag and (elem == rec[2])): match=re.search(rec[3]+'\s*(([-]*\d+(\.\d+)?(e[+-]\d+)?)\s*)+', line) if match: recVal[irec]=re.split('\s+',match.group(0))[rec[4]] | def check_beam_rec (time, elem, kwd, value, line): global recVal for irec,rec in enumerate(userrec): if (mode == 'e'): timeflag = 1 else: timeflag = (rec[1] == time) if ((rec[0]=='ber') and timeflag and (elem == rec[2])): | aa37b2bdfae39b7dbc77c6303652ba62381c3298 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1573/aa37b2bdfae39b7dbc77c6303652ba62381c3298/extractor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
27385,
67,
3927,
261,
957,
16,
3659,
16,
417,
3623,
16,
460,
16,
980,
4672,
2552,
1950,
3053,
364,
277,
3927,
16,
3927,
316,
4241,
12,
1355,
3927,
4672,
309,
261,
3188,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
27385,
67,
3927,
261,
957,
16,
3659,
16,
417,
3623,
16,
460,
16,
980,
4672,
2552,
1950,
3053,
364,
277,
3927,
16,
3927,
316,
4241,
12,
1355,
3927,
4672,
309,
261,
3188,
422,
... |
errorpage = 'errors/program/deadline-%s.html' % tl | def _checkDeadline_helper(method, extension, moduleObj, request, tl, *args, **kwargs): errorpage = 'errors/program/deadline-%s.html' % tl from esp.users.models import UserBit from esp.datatree.models import DataTree, GetNode, QTree, get_lowest_parent, StringToPerm, PermToString if tl != 'learn' and tl != 'teach': retur... | 3151647c33a72b7e9d269dc739d0262bdddebf66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/3151647c33a72b7e9d269dc739d0262bdddebf66/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
15839,
67,
4759,
12,
2039,
16,
2710,
16,
1605,
2675,
16,
590,
16,
8332,
16,
380,
1968,
16,
2826,
4333,
4672,
628,
5001,
84,
18,
5577,
18,
7665,
1930,
2177,
5775,
628,
5001,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
15839,
67,
4759,
12,
2039,
16,
2710,
16,
1605,
2675,
16,
590,
16,
8332,
16,
380,
1968,
16,
2826,
4333,
4672,
628,
5001,
84,
18,
5577,
18,
7665,
1930,
2177,
5775,
628,
5001,
... | |
"""Register a callback to be called if our broker gets disconnected.""" | """Remove a callback that was registered with notifyOnDisconnect.""" | def dontNotifyOnDisconnect(self, callback): """Register a callback to be called if our broker gets disconnected.""" self.disconnectCallbacks.remove(callback) if not self.disconnectCallbacks: self.broker.dontNotifyOnDisconnect(self._disconnected) | 1a93ab3e183ef6bc5d75ed809d92737628e44232 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1a93ab3e183ef6bc5d75ed809d92737628e44232/pb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14046,
9168,
1398,
18895,
12,
2890,
16,
1348,
4672,
3536,
3288,
279,
1348,
716,
1703,
4104,
598,
5066,
1398,
18895,
12123,
365,
18,
20177,
10617,
18,
4479,
12,
3394,
13,
309,
486,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14046,
9168,
1398,
18895,
12,
2890,
16,
1348,
4672,
3536,
3288,
279,
1348,
716,
1703,
4104,
598,
5066,
1398,
18895,
12123,
365,
18,
20177,
10617,
18,
4479,
12,
3394,
13,
309,
486,
365,
1... |
file_bug(package) | try: file_bug(package) except Exception, e: print >>sys.stderr, "W: Unable to file bug: %s" % str(e) | def main(): unstable = get_sources(DEBIAN_MIRROR, "unstable", "main") main = get_sources(UBUNTU_MIRROR, UBUNTU_DIST, "main") universe = get_sources(UBUNTU_MIRROR, UBUNTU_DIST, "universe") jobs = get_joblist() for package, component in jobs: try: print print " * Processing %s" % package (debian_info, debian_ver, ubunt... | 8bed164f055fec6895de44d822e2dedca830e4fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1955/8bed164f055fec6895de44d822e2dedca830e4fe/hi_mom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
640,
15021,
273,
336,
67,
10141,
12,
1639,
38,
21634,
67,
7492,
54,
2784,
16,
315,
318,
15021,
3113,
315,
5254,
7923,
2774,
273,
336,
67,
10141,
12,
57,
3000,
1784,
57,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
640,
15021,
273,
336,
67,
10141,
12,
1639,
38,
21634,
67,
7492,
54,
2784,
16,
315,
318,
15021,
3113,
315,
5254,
7923,
2774,
273,
336,
67,
10141,
12,
57,
3000,
1784,
57,
67... |
replyto = [] | new = [] | def process(mlist, msg, msgdata): # Set the "X-Ack: no" header if noack flag is set. if msgdata.get('noack'): del msg['x-ack'] msg['X-Ack'] = 'no' # Because we're going to modify various important headers in the email # message, we want to save some of the information in the msgdata # dictionary for later. Specificall... | 4e77bf18241f861b81a669919aec923f2ee0783c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/4e77bf18241f861b81a669919aec923f2ee0783c/CookHeaders.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
781,
376,
16,
1234,
16,
1234,
892,
4672,
468,
1000,
326,
315,
60,
17,
11931,
30,
1158,
6,
1446,
309,
1158,
484,
2982,
353,
444,
18,
309,
1234,
892,
18,
588,
2668,
2135,
484... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
781,
376,
16,
1234,
16,
1234,
892,
4672,
468,
1000,
326,
315,
60,
17,
11931,
30,
1158,
6,
1446,
309,
1158,
484,
2982,
353,
444,
18,
309,
1234,
892,
18,
588,
2668,
2135,
484... |
cmd.append('cc_opt_path=%s' % self.scons_compiler_path) | cmd.append('cc_opt_path=%s' % self.scons_compiler_path) | def _call_scons(self, scons_exec, sconscript, pkg_name, bootstrapping): # XXX: when a scons script is missing, scons only prints warnings, and # does not return a failure (status is 0). We have to detect this from # distutils (this cannot work for recursive scons builds...) | 2f6604a638ca0c96f426a2010a0dc8e6e6e2c93f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/2f6604a638ca0c96f426a2010a0dc8e6e6e2c93f/scons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
67,
87,
8559,
12,
2890,
16,
272,
8559,
67,
4177,
16,
272,
591,
4263,
16,
3475,
67,
529,
16,
7065,
1382,
4672,
468,
11329,
30,
1347,
279,
272,
8559,
2728,
353,
3315,
16,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
67,
87,
8559,
12,
2890,
16,
272,
8559,
67,
4177,
16,
272,
591,
4263,
16,
3475,
67,
529,
16,
7065,
1382,
4672,
468,
11329,
30,
1347,
279,
272,
8559,
2728,
353,
3315,
16,
27... |
else | else: | def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 412) else quickfix.DoubleField.__init__(self, 412, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
2138,
13,
469,
30,
9549,
904,
18,
5265,
974,
16186,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
2138,
13,
469,
30,
9549,
904,
18,
5265,
974,
16186,
27... |
pats.append("crmd:.* Performing .* op=%s_start_0" % rsc.id) pats.append("crmd:.* LRM operation %s_start_0.*complete" % rsc.id) | if rsc.unique == "1": pats.append("crmd:.* Performing .* op=%s_start_0" % self.rid) pats.append("crmd:.* LRM operation %s_start_0.*complete" % self.rid) else: pats.append("crmd:.* Performing .* op=.*_start_0") pats.append("crmd:.* LRM operation .*_start_0.*complete") | def __call__(self, node): '''Perform the 'ResourceRecover' test. ''' self.incr("calls") ret = self.startall(None) if not ret: return self.failure("Setup failed") | fea71c03fd94c7f2539f0239b9e93f4c9acf7622 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11962/fea71c03fd94c7f2539f0239b9e93f4c9acf7622/CTStests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
756,
4672,
9163,
4990,
326,
296,
1420,
27622,
11,
1842,
18,
9163,
365,
18,
267,
3353,
2932,
12550,
7923,
225,
325,
273,
365,
18,
1937,
454,
12,
7036,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
756,
4672,
9163,
4990,
326,
296,
1420,
27622,
11,
1842,
18,
9163,
365,
18,
267,
3353,
2932,
12550,
7923,
225,
325,
273,
365,
18,
1937,
454,
12,
7036,
13,... |
return app.TemplateDisplay(templateName, frameHint=frame, | return app.TemplateDisplay(templateName,'default', frameHint=frame, | def _chooseDisplayForCurrentTab(self): tls = self.tabListSelection frame = app.controller.frame | 3d3d914638b70870936979775d185bb3389964d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/3d3d914638b70870936979775d185bb3389964d1/selection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
25777,
4236,
1290,
3935,
5661,
12,
2890,
4672,
6871,
273,
365,
18,
7032,
682,
6233,
2623,
273,
595,
18,
5723,
18,
3789,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
25777,
4236,
1290,
3935,
5661,
12,
2890,
4672,
6871,
273,
365,
18,
7032,
682,
6233,
2623,
273,
595,
18,
5723,
18,
3789,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
lis.append( (key, self[key]) ) | result.append((key, self[key])) | def items( self ): lis = [] for key in self.keys(): try: lis.append( (key, self[key]) ) except IndexError: lis.append( (key, self.dict[key]) ) return lis | 06dfcf61676c7c31e2c2232d65d1d5286aee095d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/06dfcf61676c7c31e2c2232d65d1d5286aee095d/cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1516,
12,
365,
262,
30,
328,
291,
273,
5378,
364,
498,
316,
365,
18,
2452,
13332,
775,
30,
563,
18,
6923,
12443,
856,
16,
365,
63,
856,
22643,
1335,
10195,
30,
328,
291,
18,
6923,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1516,
12,
365,
262,
30,
328,
291,
273,
5378,
364,
498,
316,
365,
18,
2452,
13332,
775,
30,
563,
18,
6923,
12443,
856,
16,
365,
63,
856,
22643,
1335,
10195,
30,
328,
291,
18,
6923,
12... |
def cmd_ping(self,*befehl): | def cmd_ping(self,befehl): | def cmd_ping(self,*befehl): '''antwortet mit pong''' if befehl['ziel'].startswith('#'): self.msg(befehl['ziel'],'Pong') else: self.notice(befehl['quelle']['nickname'],'Pong') | 97fd12deea4b6666c5a17c647308be3fd93ec7f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2469/97fd12deea4b6666c5a17c647308be3fd93ec7f8/ircbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
1382,
12,
2890,
16,
2196,
3030,
25356,
4672,
9163,
970,
91,
499,
278,
20310,
26856,
26418,
309,
506,
3030,
25356,
3292,
94,
77,
292,
29489,
17514,
1918,
2668,
10038,
4672,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
1382,
12,
2890,
16,
2196,
3030,
25356,
4672,
9163,
970,
91,
499,
278,
20310,
26856,
26418,
309,
506,
3030,
25356,
3292,
94,
77,
292,
29489,
17514,
1918,
2668,
10038,
4672,
365,
... |
context.addcomment_form = point_addcomment_form(_("Add comment")) | context.addcomment_form = point_addcomment_form(_("Comment")) | def GET(self, topic_id, point_id): i = web.input(page="1", order="", search="", search_tags="") page = int(i.page) | e7aa1fa24b87fada7d3a35c3629db1cb8648f271 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4231/e7aa1fa24b87fada7d3a35c3629db1cb8648f271/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
16,
3958,
67,
350,
16,
1634,
67,
350,
4672,
277,
273,
3311,
18,
2630,
12,
2433,
1546,
21,
3113,
1353,
1546,
3113,
1623,
1546,
3113,
1623,
67,
4156,
1546,
7923,
1363,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
16,
3958,
67,
350,
16,
1634,
67,
350,
4672,
277,
273,
3311,
18,
2630,
12,
2433,
1546,
21,
3113,
1353,
1546,
3113,
1623,
1546,
3113,
1623,
67,
4156,
1546,
7923,
1363,
27... |
elts[i].style.display = ((cmd=="hide private")?"none":"block"); | elts[i].style.display = ((cmd && cmd.substr(0,4)=="hide")?"none":"block"); | def write_javascript(self, directory): jsfile = open(os.path.join(directory, 'epydoc.js'), 'w') print >> jsfile, self.TOGGLE_PRIVATE_JS print >> jsfile, self.GET_COOKIE_JS print >> jsfile, self.SET_FRAME_JS print >> jsfile, self.HIDE_PRIVATE_JS print >> jsfile, self.TOGGLE_CALLGRAPH_JS print >> jsfile, html_colorize.PY... | efa53d0cb5b90524e3e4219b8789997f18e8c97c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/efa53d0cb5b90524e3e4219b8789997f18e8c97c/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
11242,
12,
2890,
16,
1867,
4672,
3828,
768,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
5149,
16,
296,
881,
93,
2434,
18,
2924,
19899,
296,
91,
6134,
1172,
1671,
3828,
768,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11242,
12,
2890,
16,
1867,
4672,
3828,
768,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
5149,
16,
296,
881,
93,
2434,
18,
2924,
19899,
296,
91,
6134,
1172,
1671,
3828,
768,
... |
def __init__(self, instance, isOpen, wxId, children, isMarked): | def __init__(self, instance, isOpen, children, isMarked): | def __init__(self, instance, isOpen, wxId, children, isMarked): self.instance = instance self.isOpen = isOpen self.wxId = wxId self.children = children self.isMarked = isMarked | 82c260c08c708f9d5a0dc6654ed0e3fb25467109 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/82c260c08c708f9d5a0dc6654ed0e3fb25467109/SideBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
791,
16,
16633,
16,
2325,
16,
353,
21486,
4672,
365,
18,
1336,
273,
791,
365,
18,
291,
3678,
273,
16633,
365,
18,
91,
24514,
273,
7075,
548,
365,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
791,
16,
16633,
16,
2325,
16,
353,
21486,
4672,
365,
18,
1336,
273,
791,
365,
18,
291,
3678,
273,
16633,
365,
18,
91,
24514,
273,
7075,
548,
365,
18,
5... |
nanny.tattle_quantity('netrecv',0) nanny.tattle_quantity('netsend',0) | if self.on_loopback: nanny.tattle_quantity('looprecv',0) else: nanny.tattle_quantity('netrecv',0) | def getconnection(self): """ <Purpose> Accepts an incoming connection to a listening TCP socket. | cdc73d35527f2e8ba9aecc2ad1a44f2831f9c68c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/cdc73d35527f2e8ba9aecc2ad1a44f2831f9c68c/emulcomm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4071,
12,
2890,
4672,
3536,
411,
10262,
4150,
34,
27158,
392,
6935,
1459,
358,
279,
13895,
9911,
2987,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4071,
12,
2890,
4672,
3536,
411,
10262,
4150,
34,
27158,
392,
6935,
1459,
358,
279,
13895,
9911,
2987,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return YES | return self.continueTracking_at_inView_(at, at, view) | def startTrackingAt_inView_(self, at, view): wrappermap.wrapper(view).emit('pressed') return YES | 775d91fa8a6d565abfc39a35c76374ff4ed670e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/775d91fa8a6d565abfc39a35c76374ff4ed670e1/customcontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12642,
861,
67,
267,
1767,
67,
12,
2890,
16,
622,
16,
1476,
4672,
4053,
1458,
18,
8376,
12,
1945,
2934,
18356,
2668,
10906,
6134,
327,
1624,
3991,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
12642,
861,
67,
267,
1767,
67,
12,
2890,
16,
622,
16,
1476,
4672,
4053,
1458,
18,
8376,
12,
1945,
2934,
18356,
2668,
10906,
6134,
327,
1624,
3991,
2,
-100,
-100,
-100,
-100,
-100,
... |
@classmethod def to_binary_characters(cls, elem): | def binary_characters(self, elem): | def to_annotation(cls, elem): return Tree.Annotation( desc=collapse_wspace(get_child_text(elem, 'desc')), confidence=get_child_as(elem, 'confidence', cls.to_confidence), properties=get_children_as(elem, 'property', cls.to_property), uri=get_child_as(elem, 'uri', cls.to_uri), **elem.attrib) | 5f38465441061de22d67bc9df2281f70d7ac37ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/5f38465441061de22d67bc9df2281f70d7ac37ce/PhyloXMLIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
11495,
12,
6429,
16,
3659,
4672,
327,
4902,
18,
3257,
12,
3044,
33,
21405,
67,
91,
2981,
12,
588,
67,
3624,
67,
955,
12,
10037,
16,
296,
5569,
6134,
3631,
15588,
33,
588,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
11495,
12,
6429,
16,
3659,
4672,
327,
4902,
18,
3257,
12,
3044,
33,
21405,
67,
91,
2981,
12,
588,
67,
3624,
67,
955,
12,
10037,
16,
296,
5569,
6134,
3631,
15588,
33,
588,
67... |
"""Start a new project.""" | """ Starts a new project. Parameters: widget -- reserved for GTK callbacks, don't use it explicitly. """ | def OnNewProject(self, widget): """Start a new project.""" # hide the welcome dislog and call OnNewProject() from JokosherApp self.window.hide() self.mainwindow.OnNewProject(self, self.OnDialogClose) | fdad701ef3921349b1a997410400939cb276664e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/fdad701ef3921349b1a997410400939cb276664e/WelcomeDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
1908,
4109,
12,
2890,
16,
3604,
4672,
3536,
1685,
279,
394,
1984,
12123,
225,
468,
6853,
326,
28329,
1015,
1330,
471,
745,
2755,
1908,
4109,
1435,
628,
804,
601,
538,
1614,
3371,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
1908,
4109,
12,
2890,
16,
3604,
4672,
3536,
1685,
279,
394,
1984,
12123,
225,
468,
6853,
326,
28329,
1015,
1330,
471,
745,
2755,
1908,
4109,
1435,
628,
804,
601,
538,
1614,
3371,
3... |
if not self.f_strings: for k, v in theme_map.iteritems(): self.f_strings[k] = '\x01%s' % (color_scheme[v],) if k is Parenthesis: self.f_strings[k] += 'I' | self.f_strings = {} for k, v in theme_map.iteritems(): self.f_strings[k] = '\x01%s' % (color_scheme[v],) if k is Parenthesis: self.f_strings[k] += 'I' | def __init__(self, color_scheme, **options): if not self.f_strings: for k, v in theme_map.iteritems(): self.f_strings[k] = '\x01%s' % (color_scheme[v],) if k is Parenthesis: # FIXME: Find a way to make this the inverse of the current # background colour self.f_strings[k] += 'I' Formatter.__init__(self, **options) | a800103ef826f859cbc45f2d13e76a3017da5bce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6932/a800103ef826f859cbc45f2d13e76a3017da5bce/formatter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2036,
67,
9068,
16,
2826,
2116,
4672,
309,
486,
365,
18,
74,
67,
10219,
30,
364,
417,
16,
331,
316,
5006,
67,
1458,
18,
2165,
3319,
13332,
365,
18,
74,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2036,
67,
9068,
16,
2826,
2116,
4672,
309,
486,
365,
18,
74,
67,
10219,
30,
364,
417,
16,
331,
316,
5006,
67,
1458,
18,
2165,
3319,
13332,
365,
18,
74,... |
if line.find("rpm --query --queryformat") != -1 or \ line.find("rpm --eval") != -1: | if (line.find("rpm --query --queryformat") != -1 or line.find("rpm --eval") != -1): | def checkScripts(repo): comment = re.compile("^\s*#") for rpm in repo: for s in ("postin", "postun", "prein", "preun", "verifyscript"): data = rpm[s] if data == None: continue if data.find("RPM") != -1: for line in data.split("\n"): if line.find("RPM") == -1 or comment.match(line): continue # ignore RPM_INSTALL_PREFIX ... | 427871e48b993cbe1bec0e26f0693386c8014c95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/427871e48b993cbe1bec0e26f0693386c8014c95/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
15041,
12,
7422,
4672,
2879,
273,
283,
18,
11100,
2932,
17134,
87,
14,
7,
7923,
364,
25228,
316,
3538,
30,
364,
272,
316,
7566,
2767,
267,
3113,
315,
2767,
318,
3113,
315,
1484,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
15041,
12,
7422,
4672,
2879,
273,
283,
18,
11100,
2932,
17134,
87,
14,
7,
7923,
364,
25228,
316,
3538,
30,
364,
272,
316,
7566,
2767,
267,
3113,
315,
2767,
318,
3113,
315,
1484,
2... |
F = derivative(f) J1 = derivative(L) J2 = derivative(F) | F = Derivative(f, w) J1 = Derivative(L, w) J2 = Derivative(F, w) | def test_something(self): element = FiniteElement("CG", "triangle", 1) v = TestFunction(element) u = TrialFunction(element) w = Function(element, "w") f = (f**2/2)*dx L = f*v*dx a = u*v*dx F = derivative(f) J1 = derivative(L) J2 = derivative(F) # TODO: Apply algorithms of various kinds and verify that (a, J1, J2) ar... | 5d5fe4ad61ac58457519c7014bcc4f09b9bf3b43 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/624/5d5fe4ad61ac58457519c7014bcc4f09b9bf3b43/mass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
30289,
12,
2890,
4672,
930,
273,
9458,
1137,
1046,
2932,
20585,
3113,
315,
16857,
4341,
3113,
404,
13,
225,
331,
273,
7766,
2083,
12,
2956,
13,
582,
273,
10000,
287,
2083,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
30289,
12,
2890,
4672,
930,
273,
9458,
1137,
1046,
2932,
20585,
3113,
315,
16857,
4341,
3113,
404,
13,
225,
331,
273,
7766,
2083,
12,
2956,
13,
582,
273,
10000,
287,
2083,
12,
... |
def get_wave_function_array(self, n=0, k=0, s=0): | def get_number_of_grid_points(self): return self.get_pseudo_wave_function(0, 0, 0).shape def get_pseudo_wave_function(self, n=0, k=0, s=0): | def get_wave_function_array(self, n=0, k=0, s=0): return npy.array(self.calc.GetWaveFunctionArray(n, k, s)) | 00836fe7ba7dc98ee8997299b7e06ef0e82cd0bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/00836fe7ba7dc98ee8997299b7e06ef0e82cd0bc/old.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2696,
67,
792,
67,
5222,
67,
4139,
12,
2890,
4672,
327,
365,
18,
588,
67,
26023,
67,
17838,
67,
915,
12,
20,
16,
374,
16,
374,
2934,
4867,
225,
1652,
336,
67,
26023,
67,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2696,
67,
792,
67,
5222,
67,
4139,
12,
2890,
4672,
327,
365,
18,
588,
67,
26023,
67,
17838,
67,
915,
12,
20,
16,
374,
16,
374,
2934,
4867,
225,
1652,
336,
67,
26023,
67,
1... |
c.ConnectNode(node) | self._ConnectNode(c, node) | def call_instance_migrate(self, node, instance, target, live): """Migrate an instance. | 253482126e14ec90848550d2d2005740e45f62a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/253482126e14ec90848550d2d2005740e45f62a8/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
1336,
67,
22083,
12,
2890,
16,
756,
16,
791,
16,
1018,
16,
8429,
4672,
3536,
19594,
392,
791,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
1336,
67,
22083,
12,
2890,
16,
756,
16,
791,
16,
1018,
16,
8429,
4672,
3536,
19594,
392,
791,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
t = type(value) if not isinstance(t, StringType): if not isinstance(t, TupleType): | if not isinstance(value, StringType): if not isinstance(value, TupleType): | def __init__(self, value=0): t = type(value) if not isinstance(t, StringType): if not isinstance(t, TupleType): if value == 0: value = time.time() value = time.localtime(value) value = time.strftime("%Y%m%dT%H:%M:%S", value) self.value = value | 1e52682c3ad78f3d799a9ea36bd493b18b540454 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1e52682c3ad78f3d799a9ea36bd493b18b540454/xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
460,
33,
20,
4672,
309,
486,
1549,
12,
1132,
16,
31570,
4672,
309,
486,
1549,
12,
1132,
16,
7257,
559,
4672,
309,
460,
422,
374,
30,
460,
273,
813,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
460,
33,
20,
4672,
309,
486,
1549,
12,
1132,
16,
31570,
4672,
309,
486,
1549,
12,
1132,
16,
7257,
559,
4672,
309,
460,
422,
374,
30,
460,
273,
813,
18,... |
if outfileString: | if outfileString: | def preparejob(self,jobconfig,master_input_sandbox,subjob): """Prepare NG job description file xrsl""" | ad984b56cdc008f13cd574a924fd1ecab2076a7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/ad984b56cdc008f13cd574a924fd1ecab2076a7d/NG.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
4688,
12,
2890,
16,
4688,
1425,
16,
7525,
67,
2630,
67,
27004,
16,
1717,
4688,
4672,
3536,
7543,
423,
43,
1719,
2477,
585,
20912,
2069,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
2911,
4688,
12,
2890,
16,
4688,
1425,
16,
7525,
67,
2630,
67,
27004,
16,
1717,
4688,
4672,
3536,
7543,
423,
43,
1719,
2477,
585,
20912,
2069,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.rapi.add_package_to_group(repo["id"], pkggroup["id"], | self.rapi.add_packages_to_group(repo["id"], pkggroup["id"], | def test_repo_package_groups(self): repo = self.rapi.create('some-id','some name', \ 'i386', 'yum:http://example.com') pkggroup = self.rapi.create_packagegroup(repo["id"], 'test-group-id', 'test-group-name', 'test-group-description') package = self.create_package('test_repo_packages') self.rapi.add_package(repo["id"], ... | e32e8c48a6204869bda9fd0125e2ed702367775f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/e32e8c48a6204869bda9fd0125e2ed702367775f/test_api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7422,
67,
5610,
67,
4650,
12,
2890,
4672,
3538,
273,
365,
18,
1266,
77,
18,
2640,
2668,
19068,
17,
350,
17023,
19068,
508,
2187,
521,
296,
77,
23,
5292,
2187,
296,
93,
379,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7422,
67,
5610,
67,
4650,
12,
2890,
4672,
3538,
273,
365,
18,
1266,
77,
18,
2640,
2668,
19068,
17,
350,
17023,
19068,
508,
2187,
521,
296,
77,
23,
5292,
2187,
296,
93,
379,
... |
[-30*c^4 + 100/7*c^3 - 5/14*c^2 - 5/14*c, -2*b^2 - b*c + 1/2*b, a + 2*b + 2*c - 1, 7/125*b + 42/25*c^3 - 79/125*c^2 + 3/125*c, a^2 - a + 2*b^2 + 2*c^2, -5*b*c + 1/2*b - 6*c^2 + 2*c, 2*a*b + 2*b*c - b] | [-30*c^4 + 100/7*c^3 - 5/14*c^2 - 5/14*c, -2*b^2 - b*c + 1/2*b, -7/125*b - 42/25*c^3 + 79/125*c^2 - 3/125*c, a + 2*b + 2*c - 1, a^2 - a + 2*b^2 + 2*c^2, -5*b*c + 1/2*b - 6*c^2 + 2*c, 2*a*b + 2*b*c - b] | def groebner_basis(self, algorithm=None): """ Return a Groebner basis of this ideal. | 8d84fbe9023a763c603bcc7cc5df51fa93bf2688 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8d84fbe9023a763c603bcc7cc5df51fa93bf2688/multi_polynomial_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
303,
24008,
1224,
67,
23774,
12,
2890,
16,
4886,
33,
7036,
4672,
3536,
2000,
279,
611,
303,
24008,
1224,
10853,
434,
333,
23349,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
314,
303,
24008,
1224,
67,
23774,
12,
2890,
16,
4886,
33,
7036,
4672,
3536,
2000,
279,
611,
303,
24008,
1224,
10853,
434,
333,
23349,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
class WebTLSMDDaemon(object): def __init__(self, db_file): | class WebTLSMDDaemon(): def __init__(self): | def Refmac5RefinementPrep(job_id, struct_id, chain_ntls, wilson): """Called with a list of tuples (job_id, struct_id, [chain_id, ntls], wilson). Generates PDB and TLSIN files for refinement with REFMAC5 + PHENIX. Returns a single string if there is an error, otherwise a dictionary of results is returned. """ try: struc... | 57a414db198f444674182632ac07084d877a9036 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/57a414db198f444674182632ac07084d877a9036/webtlsmdd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3941,
5821,
25,
426,
926,
820,
15543,
12,
4688,
67,
350,
16,
1958,
67,
350,
16,
2687,
67,
496,
3251,
16,
341,
330,
816,
4672,
3536,
8185,
598,
279,
666,
434,
10384,
261,
4688,
67,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3941,
5821,
25,
426,
926,
820,
15543,
12,
4688,
67,
350,
16,
1958,
67,
350,
16,
2687,
67,
496,
3251,
16,
341,
330,
816,
4672,
3536,
8185,
598,
279,
666,
434,
10384,
261,
4688,
67,
35... |
return 2 | return "OK, python was compiled with GCC" | def check_config_h(): """Checks if the GCC compiler is mentioned in config.h. If it is not, compiling probably doesn't work. """ # return values # 2: OK, python was compiled with GCC # 1: OK, python's config.h mentions __GCC__ # 0: uncertain, because we couldn't check it # -1: probably not OK, because we didn't fou... | 0d0aad695df507bf98088a926c2198f62de27cd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0d0aad695df507bf98088a926c2198f62de27cd2/cygwinccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1425,
67,
76,
13332,
3536,
4081,
309,
326,
611,
6743,
5274,
353,
27635,
316,
642,
18,
76,
18,
225,
971,
518,
353,
486,
16,
1161,
4973,
8656,
3302,
1404,
1440,
18,
3536,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1425,
67,
76,
13332,
3536,
4081,
309,
326,
611,
6743,
5274,
353,
27635,
316,
642,
18,
76,
18,
225,
971,
518,
353,
486,
16,
1161,
4973,
8656,
3302,
1404,
1440,
18,
3536,
468,
... |
def call_bibupload(marcxmlfile, mode = ["-r", "-i"], oai_src_id = -1): | def call_bibupload(marcxmlfile, mode = None, oai_src_id = -1): | def call_bibupload(marcxmlfile, mode = ["-r", "-i"], oai_src_id = -1): """Call bibupload in insert mode on MARCXMLFILE.""" if os.path.exists(marcxmlfile): try: args = mode args.append(marcxmlfile) task_id = task_low_level_submission_tuple("bibupload", "oaiharvest", tuple(args)) create_bibharvest_log(task_id, oai_src_i... | 50a211189b9fc6758f487b882d8934f5f7a25be9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/50a211189b9fc6758f487b882d8934f5f7a25be9/oaiharvestlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1652,
745,
67,
70,
495,
6327,
12,
3684,
71,
2902,
768,
16,
1965,
273,
599,
16,
225,
320,
10658,
67,
4816,
67,
350,
273,
300,
21,
4672,
3536,
1477,
25581,
6327,
316,
2243,
1965,
603,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
745,
67,
70,
495,
6327,
12,
3684,
71,
2902,
768,
16,
1965,
273,
599,
16,
225,
320,
10658,
67,
4816,
67,
350,
273,
300,
21,
4672,
3536,
1477,
25581,
6327,
316,
2243,
1965,
603,
4... |
return self.get(newsite, type) | return self.get(newsite, type, key = key) | def get(self, site, key, type): # This can probably also provide something for # localised settings, but then it first needs to # check whether the page is sysop only. self.lock.acquire() try: if type not in self.summaries: self.summaries[type] = {} if key in self.summaries[type]: if (time.time() - self.summaries[type]... | f813f152a1f3070df23aa21124a6a674f0e823d7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/f813f152a1f3070df23aa21124a6a674f0e823d7/delinker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
2834,
16,
498,
16,
618,
4672,
468,
1220,
848,
8656,
2546,
5615,
5943,
364,
468,
1191,
5918,
1947,
16,
1496,
1508,
518,
1122,
4260,
358,
468,
866,
2856,
326,
1363,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
2834,
16,
498,
16,
618,
4672,
468,
1220,
848,
8656,
2546,
5615,
5943,
364,
468,
1191,
5918,
1947,
16,
1496,
1508,
518,
1122,
4260,
358,
468,
866,
2856,
326,
1363,
35... |
def LOG(severity,*args): zLOG.LOG('ZWiki',severity,' '.join(map(str,args))) | def LOG(severity,*args): zLOG.LOG('ZWiki',severity,' '.join(map(str,*args))) | def LOG(severity,*args): zLOG.LOG('ZWiki',severity,' '.join(map(str,args))) | 0de317591e874983afe8e74608a250564dac7ed6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5225/0de317591e874983afe8e74608a250564dac7ed6/Utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2018,
12,
27341,
16,
14,
1968,
4672,
998,
4842,
18,
4842,
2668,
62,
25438,
2187,
27341,
11189,
2418,
5701,
12,
1458,
12,
701,
16,
1968,
20349,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2018,
12,
27341,
16,
14,
1968,
4672,
998,
4842,
18,
4842,
2668,
62,
25438,
2187,
27341,
11189,
2418,
5701,
12,
1458,
12,
701,
16,
1968,
20349,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if regexp.match(str(song_info[i+1]).lower()): | mpdh.conout(unicode(song_info[i+1]).lower()) if regexp.match(unicode(song_info[i+1]).lower()): | def searchfilter_loop(self): while self.filterbox_visible: # copy the last command or pattern safely self.filterbox_cond.acquire() try: while(self.filterbox_cmd_buf == '$$$DONE###'): self.filterbox_cond.wait() todo = self.filterbox_cmd_buf self.filterbox_cond.release() except: todo = self.filterbox_cmd_buf pass self.cu... | c855d56ed39764d70d6569e06061a748e58d665a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/c855d56ed39764d70d6569e06061a748e58d665a/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
2188,
67,
6498,
12,
2890,
4672,
1323,
365,
18,
2188,
2147,
67,
8613,
30,
468,
1610,
326,
1142,
1296,
578,
1936,
15303,
365,
18,
2188,
2147,
67,
10013,
18,
1077,
1039,
1435,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
2188,
67,
6498,
12,
2890,
4672,
1323,
365,
18,
2188,
2147,
67,
8613,
30,
468,
1610,
326,
1142,
1296,
578,
1936,
15303,
365,
18,
2188,
2147,
67,
10013,
18,
1077,
1039,
1435,
775,
... |
if isinstance(ret, (int)): | if isinstance(ret, (int, long)): | def get_option(self, section, option, default="__None__"): """ Wrapper around ConfigParser.get. Automatically adds any missing sections, adds the ability to write a default value, and if one is provided prints if the default or a previously saved value is returned. """ if not self.has_section(section): if default != ... | 35ec07e0968ab7f9b9dde542874aa40c65e2543b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/35ec07e0968ab7f9b9dde542874aa40c65e2543b/configmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3482,
12,
2890,
16,
2442,
16,
1456,
16,
805,
1546,
972,
7036,
14437,
4672,
3536,
18735,
6740,
25076,
18,
588,
18,
225,
11809,
20271,
4831,
1281,
3315,
7178,
16,
4831,
326,
7123,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3482,
12,
2890,
16,
2442,
16,
1456,
16,
805,
1546,
972,
7036,
14437,
4672,
3536,
18735,
6740,
25076,
18,
588,
18,
225,
11809,
20271,
4831,
1281,
3315,
7178,
16,
4831,
326,
7123,... |
class VideoSequnce(VideoItem): | class VideoSequence(VideoItem): | def paint(self, painter, option, widget): rect = painter.transform().mapRect(self.boundingRect()) clip_rect = painter.transform().mapRect(option.exposedRect) | 18af821113608605aa54c6fd64266cf8faca44b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10170/18af821113608605aa54c6fd64266cf8faca44b3/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
12,
2890,
16,
21295,
16,
1456,
16,
3604,
4672,
4917,
273,
21295,
18,
6547,
7675,
1458,
6120,
12,
2890,
18,
3653,
310,
6120,
10756,
6807,
67,
2607,
273,
21295,
18,
6547,
7675,
1458... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
12,
2890,
16,
21295,
16,
1456,
16,
3604,
4672,
4917,
273,
21295,
18,
6547,
7675,
1458,
6120,
12,
2890,
18,
3653,
310,
6120,
10756,
6807,
67,
2607,
273,
21295,
18,
6547,
7675,
1458... |
'name': line.acc_no.bank and line.acc_no.bank.name+' '+tmp or tmp, | 'name': tmp, | def execute(self, cr, uid, ids, context=None): obj_multi = self.browse(cr, uid, ids[0]) obj_acc = self.pool.get('account.account') obj_acc_tax = self.pool.get('account.tax') obj_journal = self.pool.get('account.journal') obj_sequence = self.pool.get('ir.sequence') obj_acc_template = self.pool.get('account.account.templ... | 115dac5e71e2ad517251d87ca3ae088e104b5297 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/115dac5e71e2ad517251d87ca3ae088e104b5297/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1081,
67,
7027,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
63,
20,
5717,
1081,
67,
8981,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1081,
67,
7027,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
63,
20,
5717,
1081,
67,
8981,
273,
365,
18,
... |
return ('%s=%s'%(k,smart_str(v)) for k,v in self.items() if v) | return ('%s=%s'%(k,smart_str(v)) for k,v in sorted(self.items()) if v) | def _parts(self): return ('%s=%s'%(k,smart_str(v)) for k,v in self.items() if v) | 7b83f3cd5967aac87ad52fb0237444820ed00ad6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3687/7b83f3cd5967aac87ad52fb0237444820ed00ad6/GChart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6019,
12,
2890,
4672,
327,
7707,
9,
87,
5095,
87,
11,
17105,
79,
16,
26416,
67,
701,
12,
90,
3719,
364,
417,
16,
90,
316,
365,
18,
3319,
1435,
309,
331,
13,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6019,
12,
2890,
4672,
327,
7707,
9,
87,
5095,
87,
11,
17105,
79,
16,
26416,
67,
701,
12,
90,
3719,
364,
417,
16,
90,
316,
365,
18,
3319,
1435,
309,
331,
13,
2,
-100,
-100,
-10... |
associate_partners_list = [] query="SELECT DISTINCT associate_member FROM res_partner" cr.execute(query) for p in cr.fetchall(): if p[0] and p[0] != partner_data.id: associate_partners_list.append(p[0]) if associate_partners_list != []: res_state = self._membership_state(cr, uid, associate_partners_list, name, args, co... | res_state = self._membership_state(cr, uid, [partner_data.associate_member.id], name, args, context) | def _membership_state(self, cr, uid, ids, name, args, context=None): res = {} for id in ids: res[id] = 'none' today = time.strftime('%Y-%m-%d') for id in ids: partner_data = self.browse(cr,uid,id) if partner_data.membership_cancel and today > partner_data.membership_cancel: res[id] = 'canceled' continue if partner_data... | 02614834338c6f545319904a339ed8cab0466c60 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/02614834338c6f545319904a339ed8cab0466c60/membership.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19679,
67,
2019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
400,
273,
2618,
364,
612,
316,
3258,
30,
400,
63,
350,
65,
273,
296,
6102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19679,
67,
2019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
400,
273,
2618,
364,
612,
316,
3258,
30,
400,
63,
350,
65,
273,
296,
6102,
... |
any_ones, = [k for k in cto if k[u'name'] == u'any'] | any_one = starting_query.get_facet_options(u'project', [u''])[0] | def test_contribution_type_options_are_reasonable(self): GET_data = {} starting_query = mysite.search.controllers.Query.create_from_GET_data( GET_data) cto = starting_query.get_facet_options(u'project', [u'thingamajig', u'thingamabob', u'']) jig_ones, = [k for k in cto if k[u'name'] == u'thingamajig'] any_ones, = [k fo... | ddec2c8b83da5e6f19b27037a478e02155986ec0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/ddec2c8b83da5e6f19b27037a478e02155986ec0/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
591,
4027,
67,
723,
67,
2116,
67,
834,
67,
10579,
429,
12,
2890,
4672,
4978,
67,
892,
273,
2618,
5023,
67,
2271,
273,
312,
1900,
1137,
18,
3072,
18,
20171,
18,
1138,
18,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
591,
4027,
67,
723,
67,
2116,
67,
834,
67,
10579,
429,
12,
2890,
4672,
4978,
67,
892,
273,
2618,
5023,
67,
2271,
273,
312,
1900,
1137,
18,
3072,
18,
20171,
18,
1138,
18,
26... |
for menu in ['add', 'replace', 'add2', 'replace2', 'tag']: | for menu in ['add', 'replace', 'playafter', 'tag']: | def update_menu_visibility(self, show_songinfo_only=False): if show_songinfo_only or not self.expanded: for menu in ['add', 'replace', 'add2', 'replace2', 'rename', 'rm', 'pl', \ 'remove', 'clear', 'update', 'new', 'edit', 'sort', 'tag']: self.UIManager.get_widget('/mainmenu/' + menu + 'menu/').hide() return elif self.... | b33877e05a3757e7c9cef00e0e41779cddbb5424 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/b33877e05a3757e7c9cef00e0e41779cddbb5424/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5414,
67,
14422,
12,
2890,
16,
2405,
67,
816,
75,
1376,
67,
3700,
33,
8381,
4672,
309,
2405,
67,
816,
75,
1376,
67,
3700,
578,
486,
365,
18,
17336,
30,
364,
3824,
316,
1022... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5414,
67,
14422,
12,
2890,
16,
2405,
67,
816,
75,
1376,
67,
3700,
33,
8381,
4672,
309,
2405,
67,
816,
75,
1376,
67,
3700,
578,
486,
365,
18,
17336,
30,
364,
3824,
316,
1022... |
if self.__version == 7: key = (r"%s\7.0\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories" % (self.__root,)) | if self.__version >= 7: key = (r"%s\%0.1f\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories" % (self.__root, self.__version)) | def get_msvc_paths(self, path, platform='x86'): """Get a list of devstudio directories (include, lib or path). | 89ddf73fbbc39e1209c66ea797dbe4e4fb5ee74f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/89ddf73fbbc39e1209c66ea797dbe4e4fb5ee74f/msvccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
959,
4227,
67,
4481,
12,
2890,
16,
589,
16,
4072,
2218,
92,
5292,
11,
4672,
3536,
967,
279,
666,
434,
4461,
334,
4484,
6402,
261,
6702,
16,
2561,
578,
589,
2934,
2,
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,
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,
959,
4227,
67,
4481,
12,
2890,
16,
589,
16,
4072,
2218,
92,
5292,
11,
4672,
3536,
967,
279,
666,
434,
4461,
334,
4484,
6402,
261,
6702,
16,
2561,
578,
589,
2934,
2,
-100,
-1... |
"""Generate one ServerSection for each BotAllocator we have, sorted by hostname""" allocators = self.botNet.servers.values() allocators.sort(lambda a,b: cmp(a.host, b.host)) return [ServerSection(a) for a in allocators] | servers = self.botNet.servers.keys() servers.sort(lambda a,b: cmp(str(a), str(b))) return [ServerSection(self.botNet, s) for s in servers] | def render_mainColumn(self, context): """Generate one ServerSection for each BotAllocator we have, sorted by hostname""" allocators = self.botNet.servers.values() allocators.sort(lambda a,b: cmp(a.host, b.host)) return [ServerSection(a) for a in allocators] | ef55162408018d84e44ed59d4f844d9bca1a2968 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/ef55162408018d84e44ed59d4f844d9bca1a2968/BotStatus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
5254,
1494,
12,
2890,
16,
819,
4672,
3536,
4625,
1245,
3224,
5285,
364,
1517,
15039,
21156,
732,
1240,
16,
3115,
635,
5199,
8395,
4767,
3062,
273,
365,
18,
4819,
7308,
18,
1424... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5254,
1494,
12,
2890,
16,
819,
4672,
3536,
4625,
1245,
3224,
5285,
364,
1517,
15039,
21156,
732,
1240,
16,
3115,
635,
5199,
8395,
4767,
3062,
273,
365,
18,
4819,
7308,
18,
1424... |
dump_re = re.compile(r'^\* Dumped revision (\d+)\.$') | dump_re = re.compile(r'^\* Dumped revision (\d+)\.\r?$') | def copy_repos(src_path, dst_path, head_revision, ignore_uuid = 0): "Copy the repository SRC_PATH, with head revision HEAD_REVISION, to DST_PATH" # A BDB hot-backup procedure would be more efficient, but that would # require access to the BDB tools, and this doesn't. Print a fake # pipe command so that the displayed ... | 1a34cd94a352df88ae4ca1fd135f94bbd1e49233 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1387/1a34cd94a352df88ae4ca1fd135f94bbd1e49233/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
15564,
12,
4816,
67,
803,
16,
3046,
67,
803,
16,
910,
67,
13057,
16,
2305,
67,
7080,
273,
374,
4672,
315,
2951,
326,
3352,
348,
11529,
67,
4211,
16,
598,
910,
6350,
14792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
15564,
12,
4816,
67,
803,
16,
3046,
67,
803,
16,
910,
67,
13057,
16,
2305,
67,
7080,
273,
374,
4672,
315,
2951,
326,
3352,
348,
11529,
67,
4211,
16,
598,
910,
6350,
14792,
... |
print ('Tagged object %s with %s' | print('Tagged object %s with %s' | def execute_tag_command(objs, db, tags, options): tags = form_tag_value_pairs(tags) actions = { 'id': db.tag_object_by_id, 'about': db.tag_object_by_about, } for obj in objs: description = describe_by_mode(obj.specifier, obj.mode) for tag in tags: o = actions[obj.mode](obj.specifier, tag.name, tag.value) if o == 0: if ... | e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
2692,
67,
3076,
12,
18093,
16,
1319,
16,
2342,
16,
702,
4672,
2342,
273,
646,
67,
2692,
67,
1132,
67,
11545,
12,
4156,
13,
4209,
273,
288,
296,
350,
4278,
1319,
18,
2692,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
2692,
67,
3076,
12,
18093,
16,
1319,
16,
2342,
16,
702,
4672,
2342,
273,
646,
67,
2692,
67,
1132,
67,
11545,
12,
4156,
13,
4209,
273,
288,
296,
350,
4278,
1319,
18,
2692,
6... |
def check_antialias(self): | def test_antialias(self): | def check_antialias(self): gc = agg.GraphicsContextArray((200,50),pix_format = "bgra32") gc.set_antialias(1) f = Font(MODERN) gc.set_font(f) gc.show_text("hello") save(gc,test_name()+'.bmp') | 1d96ab014629902ff0c3275273182d01de39da50 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/1d96ab014629902ff0c3275273182d01de39da50/image_test_case.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
970,
649,
1795,
12,
2890,
4672,
8859,
273,
10421,
18,
17558,
1042,
1076,
12443,
6976,
16,
3361,
3631,
14861,
67,
2139,
273,
315,
70,
2752,
1578,
7923,
8859,
18,
542,
67,
970,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
970,
649,
1795,
12,
2890,
4672,
8859,
273,
10421,
18,
17558,
1042,
1076,
12443,
6976,
16,
3361,
3631,
14861,
67,
2139,
273,
315,
70,
2752,
1578,
7923,
8859,
18,
542,
67,
970,
... |
def WriteValidationCode(self, file): """overridden from Argument.""" file.Write(" if (%s < 0) {\n" % self.name) file.Write(" SetGLError(GL_INVALID_VALUE);\n") file.Write(" return error::kNoError;\n") file.Write(" }\n") def WriteClientSideValidationCode(self, file): """overridden from Argument.""" file.Write(" ... | def WriteValidationCode(self, file): """overridden from Argument.""" file.Write(" if (%s < 0) {\n" % self.name) file.Write(" SetGLError(GL_INVALID_VALUE);\n") file.Write(" return error::kNoError;\n") file.Write(" }\n") | 85c6d6739a81098c35cb35c3430f038ed4f5ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/85c6d6739a81098c35cb35c3430f038ed4f5ddab/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
4354,
1085,
12,
2890,
16,
585,
4672,
3536,
83,
1107,
2794,
628,
5067,
12123,
585,
18,
3067,
2932,
225,
309,
6142,
87,
411,
374,
13,
18890,
82,
6,
738,
365,
18,
529,
13,
585,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
4354,
1085,
12,
2890,
16,
585,
4672,
3536,
83,
1107,
2794,
628,
5067,
12123,
585,
18,
3067,
2932,
225,
309,
6142,
87,
411,
374,
13,
18890,
82,
6,
738,
365,
18,
529,
13,
585,
18... | |
print "Could not connect to database: %s"%e | print "Database error: %s"%e | def lint_sql(self): if not fuglu.extensions.sql.ENABLED: print "Vacation requires the fuglu sql extension to be enabled" return False try: dbsession=fuglu.extensions.sql.get_session(self.config.get(self.section,'dbconnectstring')) bind=dbsession.get_bind(Vacation) bind.connect() except Exception,e: print "Could not co... | 625be998c0f2f44a38d5c1d262fbfb9ae2f9da91 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10919/625be998c0f2f44a38d5c1d262fbfb9ae2f9da91/vacation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19477,
67,
4669,
12,
2890,
4672,
309,
486,
284,
637,
28832,
18,
9489,
18,
4669,
18,
13560,
30,
1172,
315,
58,
1077,
367,
4991,
326,
284,
637,
28832,
1847,
2710,
358,
506,
3696,
6,
327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19477,
67,
4669,
12,
2890,
4672,
309,
486,
284,
637,
28832,
18,
9489,
18,
4669,
18,
13560,
30,
1172,
315,
58,
1077,
367,
4991,
326,
284,
637,
28832,
1847,
2710,
358,
506,
3696,
6,
327,... |
missingsub = [name for name in missing if "." in name] missing = [name for name in missing if "." not in name] | if self.maybeMissingModules: maybe = self.maybeMissingModules else: maybe = [name for name in missing if "." in name] missing = [name for name in missing if "." not in name] | def reportMissing(self): missing = [name for name in self.missingModules if name not in MAYMISS_MODULES] missingsub = [name for name in missing if "." in name] missing = [name for name in missing if "." not in name] missing.sort() missingsub.sort() if missing: self.message("Warning: couldn't find the following modules:... | 74bdca8a207af74796b7e4a117886be92818f6cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/74bdca8a207af74796b7e4a117886be92818f6cb/bundlebuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
4841,
12,
2890,
4672,
3315,
273,
306,
529,
364,
508,
316,
365,
18,
7337,
7782,
309,
508,
486,
316,
490,
5255,
7492,
1260,
67,
12194,
55,
65,
309,
365,
18,
19133,
4841,
7782,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
4841,
12,
2890,
4672,
3315,
273,
306,
529,
364,
508,
316,
365,
18,
7337,
7782,
309,
508,
486,
316,
490,
5255,
7492,
1260,
67,
12194,
55,
65,
309,
365,
18,
19133,
4841,
7782,
30,
... |
job.set_shell_command("examples/%s" % test) | job.set_shell_command(test) | def run_tests(): # # Run waf to make sure that everything is built, configured and ready to go # unless we are explicitly told not to. We want to be careful about causing # our users pain while waiting for extraneous stuff to compile and link, so # we allow users that know what they''re doing to not invoke waf at all.... | c925b2a08945bb817c600805907ee7e110c7a67a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11087/c925b2a08945bb817c600805907ee7e110c7a67a/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
13332,
468,
468,
1939,
24103,
358,
1221,
3071,
716,
7756,
353,
6650,
16,
4351,
471,
5695,
358,
1960,
468,
3308,
732,
854,
8122,
268,
1673,
486,
358,
18,
225,
1660,
2545,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
13332,
468,
468,
1939,
24103,
358,
1221,
3071,
716,
7756,
353,
6650,
16,
4351,
471,
5695,
358,
1960,
468,
3308,
732,
854,
8122,
268,
1673,
486,
358,
18,
225,
1660,
2545,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.