rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
Win(you,1) | self.Win(self.you,1) | def loop (self): isSig=0 if (self.you.isNull()): self.Lose (1) return if (self.arrived==3): if (not self.istarget): curun=VS.getUnit(self.curiter) if (self.enemy): if (curun==self.enemy): self.enemy.setTarget(self.you) self.curiter+=1 if (you.isNull()): self.Lose(1) return if (self.enemy.isNull()): self.Win(you,1) retu... | a537f39c17600bf6b993994cfcfafc164c3f274f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/a537f39c17600bf6b993994cfcfafc164c3f274f/bounty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2798,
261,
2890,
4672,
353,
8267,
33,
20,
309,
261,
2890,
18,
19940,
18,
291,
2041,
1435,
4672,
365,
18,
1504,
307,
261,
21,
13,
327,
309,
261,
2890,
18,
5399,
2950,
631,
23,
4672,
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,
2798,
261,
2890,
4672,
353,
8267,
33,
20,
309,
261,
2890,
18,
19940,
18,
291,
2041,
1435,
4672,
365,
18,
1504,
307,
261,
21,
13,
327,
309,
261,
2890,
18,
5399,
2950,
631,
23,
4672,
3... |
icon = os.path.join('data', 'zim.png') mimedir = os.path.join(self.install_data, 'share', 'mime') for cmd in ( ('update-desktop-database',), ('update-mime-database', mimedir), ): print 'Trying: ' + ' '.join(cmd) subprocess.call(cmd) | if not self.skip_cmd: mimedir = os.path.join(self.install_data, 'share', 'mime') for cmd in ( ('update-desktop-database',), ('update-mime-database', mimedir), ): print 'Trying: ' + ' '.join(cmd) subprocess.call(cmd) | def run(self): install_class.run(self) | f114151f03f3be13b2d5f2ca07cd7deed695aff0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4103/f114151f03f3be13b2d5f2ca07cd7deed695aff0/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3799,
67,
1106,
18,
2681,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1086,
12,
2890,
4672,
3799,
67,
1106,
18,
2681,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
work_queue = WorkQueue(self, self.name) | work_queue = WorkQueue(self.name, self) | def execute(self, options, args, tool): self.options = options self.tool = tool work_queue = WorkQueue(self, self.name) work_queue.run() | 0c1b097c98db817ac403abec055b0f971890ee34 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/0c1b097c98db817ac403abec055b0f971890ee34/queues.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
702,
16,
833,
16,
5226,
4672,
365,
18,
2116,
273,
702,
365,
18,
6738,
273,
5226,
1440,
67,
4000,
273,
4147,
3183,
12,
2890,
18,
529,
16,
365,
13,
1440,
67,
4000,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
702,
16,
833,
16,
5226,
4672,
365,
18,
2116,
273,
702,
365,
18,
6738,
273,
5226,
1440,
67,
4000,
273,
4147,
3183,
12,
2890,
18,
529,
16,
365,
13,
1440,
67,
4000,
... |
self._background = self.canvas.copy_from_bbox(self.axes.bbox) self._drawPoints() | self._backgroundList = [self.canvas.copy_from_bbox(sp.bbox) for sp in self.subplotArr] for line in self._lineDict.itervalues(): line.subplot.draw_artist(line.line) for subplot in self.subplotArr: self.canvas.blit(subplot.bbox) | def _handleDrawEvent(self, event): """Handle draw event """ self._background = self.canvas.copy_from_bbox(self.axes.bbox) self._drawPoints() | 8f0db37bc375c56ac27469781575815f4f3b008d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6353/8f0db37bc375c56ac27469781575815f4f3b008d/StripChartWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
6493,
1133,
12,
2890,
16,
871,
4672,
3536,
3259,
3724,
871,
3536,
365,
6315,
9342,
682,
273,
306,
2890,
18,
15424,
18,
3530,
67,
2080,
67,
20737,
12,
1752,
18,
20737,
13,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4110,
6493,
1133,
12,
2890,
16,
871,
4672,
3536,
3259,
3724,
871,
3536,
365,
6315,
9342,
682,
273,
306,
2890,
18,
15424,
18,
3530,
67,
2080,
67,
20737,
12,
1752,
18,
20737,
13,
36... |
self.update_feed_cache( force_update = gl.update_on_startup) | def new(self): gl = gPodderLib() self.gPodder.resize( gl.main_window_width, gl.main_window_height) self.gPodder.move( gl.main_window_x, gl.main_window_y) while gtk.events_pending(): gtk.main_iteration( False) | e5c6525f9b51cdff147f0e46f17037d9df827077 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12778/e5c6525f9b51cdff147f0e46f17037d9df827077/gpodder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
4672,
5118,
273,
314,
5800,
765,
5664,
1435,
365,
18,
75,
5800,
765,
18,
15169,
12,
5118,
18,
5254,
67,
5668,
67,
2819,
16,
5118,
18,
5254,
67,
5668,
67,
4210,
13,
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,
394,
12,
2890,
4672,
5118,
273,
314,
5800,
765,
5664,
1435,
365,
18,
75,
5800,
765,
18,
15169,
12,
5118,
18,
5254,
67,
5668,
67,
2819,
16,
5118,
18,
5254,
67,
5668,
67,
4210,
13,
365... | |
self.subplot = stripChartWdg.getSubplot(subplotInd) | self.subplot = stripChartWdg.subplotArr[subplotInd] | def __init__(self, stripChartWdg, subplotInd, **kargs): """Create a line Inputs: - stripChartWdg: the StripChartWdg to which this _Line belongs - subplotInd: the index of the subplot to which this _Line belongs - doAutoscale: if True then autoscale the y axis - **kargs: keyword arguments for matplotlib Line2D, such as... | dc80d77dbf0a5170aeb2ae8bf18c4b9bdeceab8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6354/dc80d77dbf0a5170aeb2ae8bf18c4b9bdeceab8a/StripChartWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2569,
7984,
59,
72,
75,
16,
19826,
3866,
16,
2826,
79,
1968,
4672,
3536,
1684,
279,
980,
225,
24472,
30,
300,
2569,
7984,
59,
72,
75,
30,
326,
15589,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2569,
7984,
59,
72,
75,
16,
19826,
3866,
16,
2826,
79,
1968,
4672,
3536,
1684,
279,
980,
225,
24472,
30,
300,
2569,
7984,
59,
72,
75,
30,
326,
15589,
7... |
vers_minor = string.split (self.target_version, '.')[1] inifile.write ("vers_minor=%s\n" % vers_minor) | inifile.write ("target_version=%s\n" % self.target_version) | def create_inifile (self): # Create an inifile containing data describing the installation. # This could be done without creating a real file, but # a file is (at least) useful for debugging bdist_wininst. | 8a718307e8760854ee5452cdbef49b10400b0ced /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8a718307e8760854ee5452cdbef49b10400b0ced/bdist_wininst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
267,
430,
398,
261,
2890,
4672,
468,
1788,
392,
316,
430,
398,
4191,
501,
16868,
326,
13193,
18,
468,
1220,
3377,
506,
2731,
2887,
4979,
279,
2863,
585,
16,
1496,
468,
279,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
67,
267,
430,
398,
261,
2890,
4672,
468,
1788,
392,
316,
430,
398,
4191,
501,
16868,
326,
13193,
18,
468,
1220,
3377,
506,
2731,
2887,
4979,
279,
2863,
585,
16,
1496,
468,
279,
58... |
def setBotName(self, name): """Sets the bot's name. The name must be a single word!""" self._botName = string.join(name.split()) self._brain.setBotName(self._botName) | def setBotName(self, newName): "Sets the bot's name. THIS FUNCTION IS DEPRECATED -- use setBotPredicate instead" print "NOTE: Kernel.setBotName() is deprecated. Use Kernel.setBotPredicate() instead." self.setBotPredicate("name", newName) | def setBotName(self, name): """Sets the bot's name. The name must be a single word!""" # Collapse a multi-word name into a single word self._botName = string.join(name.split()) # must update the name in the brain as well self._brain.setBotName(self._botName) | cdb5ca51cf362e7f41cc166060e200bc84fcb1e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6428/cdb5ca51cf362e7f41cc166060e200bc84fcb1e8/Kernel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
6522,
461,
12,
2890,
16,
508,
4672,
3536,
2785,
326,
2512,
1807,
508,
18,
225,
1021,
508,
1297,
506,
279,
2202,
2076,
5,
8395,
468,
1558,
14820,
279,
3309,
17,
1095,
508,
1368,
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,
444,
6522,
461,
12,
2890,
16,
508,
4672,
3536,
2785,
326,
2512,
1807,
508,
18,
225,
1021,
508,
1297,
506,
279,
2202,
2076,
5,
8395,
468,
1558,
14820,
279,
3309,
17,
1095,
508,
1368,
27... |
def flimage_free_rgb(p1): """ flimage_free_rgb(p1) """ _flimage_free_rgb(p1) | def flimage_free_rgb(pImage): """ flimage_free_rgb(pImage) """ _flimage_free_rgb(pImage) | def flimage_free_rgb(p1): """ flimage_free_rgb(p1) """ _flimage_free_rgb(p1) | 8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
9156,
67,
10948,
12,
84,
2040,
4672,
3536,
1183,
2730,
67,
9156,
67,
10948,
12,
84,
2040,
13,
3536,
225,
389,
2242,
2730,
67,
9156,
67,
10948,
12,
84,
2040,
13,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
9156,
67,
10948,
12,
84,
2040,
4672,
3536,
1183,
2730,
67,
9156,
67,
10948,
12,
84,
2040,
13,
3536,
225,
389,
2242,
2730,
67,
9156,
67,
10948,
12,
84,
2040,
13,
282,
... |
if Language.objects.filter(code__in=[name, name.lower()]).count(): | if Language.objects.filter(code__iexact=name).count(): | def direct_language_match_filename(language_code, path_name): name, ext = os.path.splitext(os.path.basename(path_name)) if name == language_code or name.lower() == language_code.lower(): return True # check file doesn't match another language if Language.objects.filter(code__in=[name, name.lower()]).count(): return Fa... | 740621fb6cfa063c87ae9b67f66389b98c4e1d31 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/740621fb6cfa063c87ae9b67f66389b98c4e1d31/project_tree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2657,
67,
4923,
67,
1916,
67,
3459,
12,
4923,
67,
710,
16,
589,
67,
529,
4672,
508,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
538,
18,
803,
18,
13909,
12,
803,
67,
529,
3719... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2657,
67,
4923,
67,
1916,
67,
3459,
12,
4923,
67,
710,
16,
589,
67,
529,
4672,
508,
16,
1110,
273,
1140,
18,
803,
18,
4939,
408,
12,
538,
18,
803,
18,
13909,
12,
803,
67,
529,
3719... |
CppText += IndentText + "tt_TurtlePos[%i] = %s;\n" % (i, Arg.Elements[i].Text) | UpdateTurtle += NextIndent + "tt_TurtlePos[%i] = %s;\n" % (i, Arg.Elements[i].Text) | def GetCppBuiltInInstruction(self, pInstruct, iIndent): IndentText = " " * (iIndent * self.IndentSize) NextIndent = " " * ((iIndent+1) * self.IndentSize) NumTypeGL = self.LogoState.NumType[0] NumTypeMath = "" if self.LogoState.NumType == 'float': NumTypeMath = "f" CppText = "" # get the C++ code for each argument in th... | 150673c3dc5ab46313332bf1deae010112848af5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2419/150673c3dc5ab46313332bf1deae010112848af5/tt_cppwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
39,
11858,
16409,
382,
11983,
12,
2890,
16,
293,
382,
1697,
16,
277,
7790,
4672,
28653,
1528,
273,
315,
315,
380,
261,
77,
7790,
380,
365,
18,
7790,
1225,
13,
4804,
7790,
273,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
39,
11858,
16409,
382,
11983,
12,
2890,
16,
293,
382,
1697,
16,
277,
7790,
4672,
28653,
1528,
273,
315,
315,
380,
261,
77,
7790,
380,
365,
18,
7790,
1225,
13,
4804,
7790,
273,
315... |
yield "<h2>Older builds:</h2>" yield "<table class='real'>" yield "<thead><tr><th>Revision</th><th>Status</th></tr></thead>" yield "<tbody>" | yield "<h2>Older builds:</h2>\n" yield "<table class='real'>\n" yield "<thead><tr><th>Revision</th><th>Status</th></tr></thead>\n" yield "<tbody>\n" | def show_oldrevs(self, myself, tree, host, compiler): """show the available old revisions, if any""" old_rev_builds = self.buildfarm.builds.get_old_revs(tree, host, compiler) | 1f985416a874ef995e451af972947ff0cb24b989 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/1f985416a874ef995e451af972947ff0cb24b989/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
1673,
266,
6904,
12,
2890,
16,
3399,
2890,
16,
2151,
16,
1479,
16,
5274,
4672,
3536,
4500,
326,
2319,
1592,
18325,
16,
309,
1281,
8395,
1592,
67,
9083,
67,
27324,
225,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
1673,
266,
6904,
12,
2890,
16,
3399,
2890,
16,
2151,
16,
1479,
16,
5274,
4672,
3536,
4500,
326,
2319,
1592,
18325,
16,
309,
1281,
8395,
1592,
67,
9083,
67,
27324,
225,
273,
3... |
def _dom_node(self, dom): return dom.Text(self.data) def _rooted_dom_node(self, domroot): | def _dom_node(self, domroot): | def _dom_node(self, dom): return dom.Text(self.data) | 63986dc09bb8be7acac6756139a831ac047b912d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/63986dc09bb8be7acac6756139a831ac047b912d/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9859,
67,
2159,
12,
2890,
16,
4092,
4672,
327,
4092,
18,
1528,
12,
2890,
18,
892,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
389,
9859,
67,
2159,
12,
2890,
16,
4092,
4672,
327,
4092,
18,
1528,
12,
2890,
18,
892,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
], CONTEXT) | ], 0, None, None, CONTEXT) | def test0050char(self): ''' Test Char. ''' char1_id = self.char.create({ 'char': 'Test', }, CONTEXT) self.assert_(char1_id) | 52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
3361,
3001,
12,
2890,
4672,
9163,
7766,
3703,
18,
9163,
1149,
21,
67,
350,
273,
365,
18,
3001,
18,
2640,
12590,
296,
3001,
4278,
296,
4709,
2187,
19879,
13862,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
3361,
3001,
12,
2890,
4672,
9163,
7766,
3703,
18,
9163,
1149,
21,
67,
350,
273,
365,
18,
3001,
18,
2640,
12590,
296,
3001,
4278,
296,
4709,
2187,
19879,
13862,
13,
365,
18,
... |
else: continue min_residuals.append("%s:%s" % (chain.chain_id, min(tmp_residuals))) max_residuals.append("%s:%s" % (chain.chain_id, max(tmp_residuals))) | min_residuals.append("%s:%.2f" % (chain.chain_id, float(tmp_min))) max_residuals.append("%s:%.2f" % (chain.chain_id, float(tmp_max))) | def write_summary(self, report_dir): """Write out the TLSMD report to the given directory. """ ## create new directory and move into it old_dir = os.getcwd() if not os.path.isdir(report_dir): os.mkdir(report_dir) os.chdir(report_dir) | ec4439610fe3711d770d92b64609356c80e3f2c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/ec4439610fe3711d770d92b64609356c80e3f2c3/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
7687,
12,
2890,
16,
2605,
67,
1214,
4672,
3536,
3067,
596,
326,
8098,
6188,
2605,
358,
326,
864,
1867,
18,
3536,
7541,
752,
394,
1867,
471,
3635,
1368,
518,
1592,
67,
1214,
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,
1045,
67,
7687,
12,
2890,
16,
2605,
67,
1214,
4672,
3536,
3067,
596,
326,
8098,
6188,
2605,
358,
326,
864,
1867,
18,
3536,
7541,
752,
394,
1867,
471,
3635,
1368,
518,
1592,
67,
1214,
2... |
- ``solution_dict`` - bool (default: False); if True, return a list of dictionaries containing the solutions. | - ``solution_dict`` - bool (default: False); if True or non-zero, return a list of dictionaries containing the solutions. If there are no solutions, return an empty list (rather than a list containing an empty dictionary). Likewise, if there's only a single solution, return a list containing one dictionary with that s... | def solve(f, *args, **kwds): r""" Algebraically solve an equation or system of equations (over the complex numbers) for given variables. Inequalities and systems of inequalities are also supported. INPUT: - ``f`` - equation or system of equations (given by a list or tuple) - ``*args`` - variables to solve for. - ... | 289f5b4d9eb95aca379cac874aa709bc2e2631eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/289f5b4d9eb95aca379cac874aa709bc2e2631eb/relation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12439,
12,
74,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
2262,
29087,
6478,
12439,
392,
15778,
578,
2619,
434,
30369,
261,
1643,
326,
7233,
5600,
13,
364,
864,
3152,
18,
657,
9729... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12439,
12,
74,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
2262,
29087,
6478,
12439,
392,
15778,
578,
2619,
434,
30369,
261,
1643,
326,
7233,
5600,
13,
364,
864,
3152,
18,
657,
9729... |
def _invoice_hook(self, cursor, user, picking, invoice_id): | def _invoice_hook(self, cr, uid, picking, invoice_id): | def _invoice_hook(self, cursor, user, picking, invoice_id): '''Call after the creation of the invoice''' return | 18be8e52469417aa8e0ec02e033c0942d0ad805f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/18be8e52469417aa8e0ec02e033c0942d0ad805f/stock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16119,
67,
4476,
12,
2890,
16,
4422,
16,
4555,
16,
6002,
310,
16,
9179,
67,
350,
4672,
9163,
1477,
1839,
326,
6710,
434,
326,
9179,
26418,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16119,
67,
4476,
12,
2890,
16,
4422,
16,
4555,
16,
6002,
310,
16,
9179,
67,
350,
4672,
9163,
1477,
1839,
326,
6710,
434,
326,
9179,
26418,
327,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
] + getLocaleDataFiles(), | ] + getLocaleDataFiles()+getUserDocsDataFiles(), | def getLocaleDataFiles(): return [(os.path.dirname(f), (f,)) for f in glob("locale/*/LC_MESSAGES/*.mo")] | c8b85a39481b6ba14e578e1d77ac38a56130a760 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/c8b85a39481b6ba14e578e1d77ac38a56130a760/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9595,
751,
2697,
13332,
327,
306,
12,
538,
18,
803,
18,
12287,
12,
74,
3631,
261,
74,
16,
3719,
364,
284,
316,
4715,
2932,
6339,
19,
5549,
13394,
67,
26195,
30987,
8683,
7923,
65,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9595,
751,
2697,
13332,
327,
306,
12,
538,
18,
803,
18,
12287,
12,
74,
3631,
261,
74,
16,
3719,
364,
284,
316,
4715,
2932,
6339,
19,
5549,
13394,
67,
26195,
30987,
8683,
7923,
65,
225,... |
print "Area count: %d" % len(areas) | log.debug("Area count: %d" % len(areas)) | def parse(self): print "Parsing: %s" % self.original_file.name.val provider = self.original_file_provider data = provider.get_original_file_data(self.original_file) try: et = ElementTree(file=data) finally: data.close() root = et.getroot() areas = root.findall(self.AREA_XPATH) print "Area count: %d" % len(areas) for i,... | 2abc05f6ec4c7dd58ee9bb618f839a4be9554279 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/2abc05f6ec4c7dd58ee9bb618f839a4be9554279/populate_roi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
1172,
315,
13963,
30,
738,
87,
6,
738,
365,
18,
8830,
67,
768,
18,
529,
18,
1125,
2893,
273,
365,
18,
8830,
67,
768,
67,
6778,
501,
273,
2893,
18,
588,
67,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
1172,
315,
13963,
30,
738,
87,
6,
738,
365,
18,
8830,
67,
768,
18,
529,
18,
1125,
2893,
273,
365,
18,
8830,
67,
768,
67,
6778,
501,
273,
2893,
18,
588,
67,
88... |
eq_cycles = 25, | eq_cycles = 0, | def __init__(self, fmodels, model, target_weights, log, time_step = 0.0005, number_of_macro_cycles = 100, temperature = 300., n_steps = 10, eq_cycles = 25, b_target = 1.0, b_target_cycles = 5, tx = 2.0): fmodel = fmodels.fmodel_xray() assert fmodel.xray_structure is model.xray_structure xray_structure_last_updated = mo... | f8aeb3adb75b3cab62e66bebe7b524ba8d6a8c20 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/f8aeb3adb75b3cab62e66bebe7b524ba8d6a8c20/time_averaging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
7665,
16,
938,
16,
1018,
67,
9727,
16,
613,
16,
813,
67,
4119,
273,
374,
18,
3784,
25,
16,
1300,
67,
792,
67,
26448,
67,
23976,
273,
2130,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
7665,
16,
938,
16,
1018,
67,
9727,
16,
613,
16,
813,
67,
4119,
273,
374,
18,
3784,
25,
16,
1300,
67,
792,
67,
26448,
67,
23976,
273,
2130,
16,
1... |
return RpcResult(node=node, offline=True) | return RpcResult(node=node, offline=True, call=call) | def _ConnectNode(self, client, node): """Helper for computing one node's address. | 84b455872adb25569baae3904fec7b3c369ac9db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/84b455872adb25569baae3904fec7b3c369ac9db/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5215,
907,
12,
2890,
16,
1004,
16,
756,
4672,
3536,
2276,
364,
20303,
1245,
756,
1807,
1758,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5215,
907,
12,
2890,
16,
1004,
16,
756,
4672,
3536,
2276,
364,
20303,
1245,
756,
1807,
1758,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
text = _('The link/@rel="edit" URI must match the URI returned via the Link: HTTP header during creation.') | text = _('The link/@rel="edit" URI must match the URI returned via the Location: HTTP header during creation.') | def tostring(self): return self.context + ":" + self.text + ":" + self.extra | 62545eb4a0f245496aec57ddf77c32bdf1a873f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5012/62545eb4a0f245496aec57ddf77c32bdf1a873f9/appclienttest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26135,
12,
2890,
4672,
327,
365,
18,
2472,
397,
6153,
397,
365,
18,
955,
397,
6153,
397,
365,
18,
7763,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26135,
12,
2890,
4672,
327,
365,
18,
2472,
397,
6153,
397,
365,
18,
955,
397,
6153,
397,
365,
18,
7763,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
axe_snp_pca.title.set_text('SNP by PC1(x-axis) vs PC2(y-axis)') sys.stderr.write("Done.\n") def drawMap(self, axe_map, StrainID2PCAPosInfo, phenData, phenotype_col_index, ecotype_info): | axe_snp_pca.set_xlabel('PC1 %.2f%s'%(SNPID2PCAPosInfo.x_var*100, '%')) axe_snp_pca.set_ylabel('PC2 %.2f%s'%(SNPID2PCAPosInfo.y_var*100, '%')) sys.stderr.write("Done.\n") def drawMap(self, axe_map, StrainID2PCAPosInfo, phenData, phenotype_col_index, phenotype_method_id, ecotype_info): | def drawSNPPCA(self, axe_snp_pca, axe_snp_pca_legend, SNPID2PCAPosInfo, lowest_y_value=-0.05): """ 2008-10-07 """ sys.stderr.write("Drawing SNP PCA ...") chr_set = Set() for snp_id in SNPID2PCAPosInfo.snp_id_ls: chr, pos = snp_id.split('_') chr_set.add(chr) chr_ls = list(chr_set) chr_ls.sort() chr2fc = assignMatPlotlib... | 8b01df4ec5dda455ad1b712723f6e5a54471503a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/8b01df4ec5dda455ad1b712723f6e5a54471503a/PlotGroupOfSNPs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
13653,
52,
3513,
37,
12,
2890,
16,
1740,
73,
67,
87,
6782,
67,
2436,
69,
16,
1740,
73,
67,
87,
6782,
67,
2436,
69,
67,
16292,
16,
14204,
16522,
22,
3513,
37,
1616,
966,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
13653,
52,
3513,
37,
12,
2890,
16,
1740,
73,
67,
87,
6782,
67,
2436,
69,
16,
1740,
73,
67,
87,
6782,
67,
2436,
69,
67,
16292,
16,
14204,
16522,
22,
3513,
37,
1616,
966,
16,
1... |
| TUBE_JN_CAP | TUBE_CONTOUR_CLOSED) new_points = zeros([4*(n-2)-1,3],Float) new_colors = zeros([4*(n-2)-1,3],Float) new_radii = zeros([4*(n-2)-1],Float) | | TUBE_JN_CAP | TUBE_CONTOUR_CLOSED) new_points = [ None ] * (4*(n-2)-1) new_colors = [ None ] * (4*(n-2)-1) new_radii = [ 0.0 ] * (4*(n-2)-1) for p in range(0, (4*(n-2)-1)): new_points[p] = [ 0.0 ] * 3 new_colors[p] = [ 0.0 ] * 3 | def drawStrand(points, colors, radii, color_style, shape, arrows): """ Renders a strand shape along points array using colors and radii arrays, optionally with arrows. """ n = len(points) if n>3: # copy colors and radii colors[0] = colors[1] colors[n-1] = colors[n-2] radii[0] = radii[1] radii[n-1] = radii[n-2] # draw t... | cbc143d808cf827d03bc69ee526e2fca8459d46d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/cbc143d808cf827d03bc69ee526e2fca8459d46d/DnaCylinderChunks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
1585,
464,
12,
4139,
16,
5740,
16,
28125,
16,
2036,
67,
4060,
16,
2179,
16,
419,
3870,
4672,
3536,
534,
10130,
279,
16706,
2179,
7563,
3143,
526,
1450,
5740,
471,
28125,
5352,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
1585,
464,
12,
4139,
16,
5740,
16,
28125,
16,
2036,
67,
4060,
16,
2179,
16,
419,
3870,
4672,
3536,
534,
10130,
279,
16706,
2179,
7563,
3143,
526,
1450,
5740,
471,
28125,
5352,
16,
... |
docv = [int(part) for part in docutils.__version__.split('.')] reqv = [int(part) for part in REQUIRES['docutils'].split('.')] if docutils.__version__ < REQUIRES['docutils']: | installed = [int(part) for part in docutils.__version__.split('.')] required = [int(part) for part in REQUIRES['docutils'].split('.')] if installed < required: | def check_requirements(): # Check Python: try: from email.Utils import parseaddr except ImportError: PEP_TYPE_DISPATCH['text/plain'] = None PEP_TYPE_MESSAGES['text/plain'] = ( 'Python %s or better required for "%%(pep_type)s" PEP ' 'processing; %s present (%%(inpath)s).' % (REQUIRES['python'], sys.version.split()[0])) ... | e9a8aa624cc901c296c5d7e4fc9490ad09120ff9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/e9a8aa624cc901c296c5d7e4fc9490ad09120ff9/pep2html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
16175,
13332,
468,
2073,
6600,
30,
775,
30,
628,
2699,
18,
1989,
1930,
1109,
4793,
1335,
11308,
30,
453,
10541,
67,
2399,
67,
2565,
3118,
5858,
3292,
955,
19,
7446,
3546,
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,
866,
67,
16175,
13332,
468,
2073,
6600,
30,
775,
30,
628,
2699,
18,
1989,
1930,
1109,
4793,
1335,
11308,
30,
453,
10541,
67,
2399,
67,
2565,
3118,
5858,
3292,
955,
19,
7446,
3546,
273,
... |
def addText(self, text): self.text.append("<nobr>" + text + "</nobr>\n") | def addText(self, text, nobr = 1): if nobr: self.text.append("<nobr>" + text + "</nobr>\n") else: self.text.append(text) | def addText(self, text): self.text.append("<nobr>" + text + "</nobr>\n") self.text.ensureVisible(0, self.text.contentsHeight()) | d8d65e757e885ef1615e182a5bd52449cd54aa19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/d8d65e757e885ef1615e182a5bd52449cd54aa19/updateOrange.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25796,
12,
2890,
16,
977,
16,
290,
947,
86,
273,
404,
4672,
309,
290,
947,
86,
30,
365,
18,
955,
18,
6923,
2932,
32,
82,
947,
86,
2984,
397,
977,
397,
6823,
82,
947,
86,
5333,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25796,
12,
2890,
16,
977,
16,
290,
947,
86,
273,
404,
4672,
309,
290,
947,
86,
30,
365,
18,
955,
18,
6923,
2932,
32,
82,
947,
86,
2984,
397,
977,
397,
6823,
82,
947,
86,
5333,
82,
... |
segments = message.get_segments() | segments = [] for seg, offset in get_segments(message): segments.append(seg) | def test_parentheses1(self): text = ( '(Exception: if the Program itself is interactive but does not' ' normally print such an announcement, your work based on the' ' Program is not required to print an announcement.) ') result = [u'(Exception:', u'if the Program itself is interactive but does not normally' u' print s... | f60259a351ba0ec0893ebab283ae29d948ec283a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/f60259a351ba0ec0893ebab283ae29d948ec283a/test_i18n.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13012,
7915,
281,
21,
12,
2890,
4672,
977,
273,
261,
7747,
503,
30,
309,
326,
13586,
6174,
353,
12625,
1496,
1552,
486,
11,
296,
15849,
1172,
4123,
392,
25199,
16,
3433,
1440,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13012,
7915,
281,
21,
12,
2890,
4672,
977,
273,
261,
7747,
503,
30,
309,
326,
13586,
6174,
353,
12625,
1496,
1552,
486,
11,
296,
15849,
1172,
4123,
392,
25199,
16,
3433,
1440,
... |
raise TypeError("%s not proven to have negative stop" % s_slice) | raise TypeError("%s not proven to have non-negative stop" % s_slice) | def check_negative_slice(s_slice): if isinstance(s_slice.start, SomeInteger) and not s_slice.start.nonneg: raise TypeError("%s not proven to have negative start" % s_slice) if isinstance(s_slice.stop, SomeInteger) and not s_slice.stop.nonneg and\ getattr(s_slice.stop, 'const', 0) != -1: raise TypeError("%s not proven t... | 4871022beb11dbe007901608d82ff2256062422f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/4871022beb11dbe007901608d82ff2256062422f/binaryop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
13258,
67,
6665,
12,
87,
67,
6665,
4672,
309,
1549,
12,
87,
67,
6665,
18,
1937,
16,
10548,
4522,
13,
471,
486,
272,
67,
6665,
18,
1937,
18,
5836,
14518,
30,
1002,
3580,
2718... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13258,
67,
6665,
12,
87,
67,
6665,
4672,
309,
1549,
12,
87,
67,
6665,
18,
1937,
16,
10548,
4522,
13,
471,
486,
272,
67,
6665,
18,
1937,
18,
5836,
14518,
30,
1002,
3580,
2718... |
vals = c.pget('Unknown', flags=db.DB_LAST) | vals = self.cur.pget('Unknown', flags=db.DB_LAST) | def finish_test(self, secDB, txn=None): # 'Blues' should not be in the secondary database vals = secDB.pget('Blues', txn=txn) assert vals == None, vals | c5cf731a4deb710892c9083a468a6d173d791456 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c5cf731a4deb710892c9083a468a6d173d791456/test_associate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
67,
3813,
12,
2890,
16,
1428,
2290,
16,
7827,
33,
7036,
4672,
468,
296,
4802,
3610,
11,
1410,
486,
506,
316,
326,
9946,
2063,
5773,
273,
1428,
2290,
18,
84,
588,
2668,
4802,
3610... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
67,
3813,
12,
2890,
16,
1428,
2290,
16,
7827,
33,
7036,
4672,
468,
296,
4802,
3610,
11,
1410,
486,
506,
316,
326,
9946,
2063,
5773,
273,
1428,
2290,
18,
84,
588,
2668,
4802,
3610... |
if not isinstance(self.destination, (list, tuple)): | if self.destination and \ not isinstance(self.destination, (list, tuple)): | def _prepare(self, reply): if not reply: return by_node = flatten_reply(reply) if not isinstance(self.destination, (list, tuple)): return by_node.get(self.destination) return by_node | e9cd6b1f98d9d36cf251d75e362b167dd25887c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/e9cd6b1f98d9d36cf251d75e362b167dd25887c8/control.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9366,
12,
2890,
16,
4332,
4672,
309,
486,
4332,
30,
327,
635,
67,
2159,
273,
5341,
67,
10629,
12,
10629,
13,
309,
365,
18,
10590,
471,
521,
486,
1549,
12,
2890,
18,
10590,
16,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9366,
12,
2890,
16,
4332,
4672,
309,
486,
4332,
30,
327,
635,
67,
2159,
273,
5341,
67,
10629,
12,
10629,
13,
309,
365,
18,
10590,
471,
521,
486,
1549,
12,
2890,
18,
10590,
16,
2... |
for l in cmds.splitlines(): sys.stderr.write(str(sys.__dict__.get("ps1",ColorPrompt()))) | cmds = cmds.splitlines() cmds.append("") cmds.reverse() while 1: if cmd: sys.stderr.write(sys.__dict__.get("ps2","... ")) else: sys.stderr.write(str(sys.__dict__.get("ps1",ColorPrompt()))) l = cmds.pop() | def autorun_commands(cmds,verb=0): sv = conf.verb try: conf.verb = verb interp = ScapyAutorunInterpreter(globals()) cmd = "" for l in cmds.splitlines(): sys.stderr.write(str(sys.__dict__.get("ps1",ColorPrompt()))) print l cmd += "\n"+l if interp.runsource(cmd): sys.stderr.write(sys.__dict__.get("ps2","... ")) continue ... | 696b8de3c2847b51fc070e92cfb6ad412676dd9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/696b8de3c2847b51fc070e92cfb6ad412676dd9b/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2059,
280,
318,
67,
7847,
12,
24680,
16,
16629,
33,
20,
4672,
5893,
273,
2195,
18,
16629,
775,
30,
2195,
18,
16629,
273,
6405,
8174,
273,
2850,
438,
93,
37,
3408,
318,
30010,
12,
16227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2059,
280,
318,
67,
7847,
12,
24680,
16,
16629,
33,
20,
4672,
5893,
273,
2195,
18,
16629,
775,
30,
2195,
18,
16629,
273,
6405,
8174,
273,
2850,
438,
93,
37,
3408,
318,
30010,
12,
16227... |
return setting._refresh() | try: yield setting._refresh() except: yield self._delSetting(name) | def _refreshSetting(self, name): setting = getattr(self, name) return setting._refresh() | 375a836d99fda7e94fd3e2bc4d60708c52cfeab9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9965/375a836d99fda7e94fd3e2bc4d60708c52cfeab9/wrappers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9144,
5568,
12,
2890,
16,
508,
4672,
3637,
273,
3869,
12,
2890,
16,
508,
13,
327,
3637,
6315,
9144,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9144,
5568,
12,
2890,
16,
508,
4672,
3637,
273,
3869,
12,
2890,
16,
508,
13,
327,
3637,
6315,
9144,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for a in applets: tokens = a.split("::") if tokens[0].endswith(".desktop"): path = tokens[0] uid = tokens[1] icon, text, name = self.make_row(path) if len (text) < 2: continue; model.append([icon, path, uid, text]) else: path = tokens[0] uid = tokens[1] theme = gtk.icon_theme_get_default () icon = theme.load_icon ("sc... | for a in applets: tokens = a.split("::") if tokens[0].endswith(".desktop"): path = tokens[0] uid = tokens[1] icon, text, name = self.make_row(path) if len (text) < 2: continue; model.append([icon, path, uid, text]) else: path = tokens[0] uid = tokens[1] theme = gtk.icon_theme_get_default () icon = theme.load_icon ("sc... | def refresh_icon_list (self, applets, model): | 30bb56994f49caaea99383c3cdc7f4e2a2d375f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/30bb56994f49caaea99383c3cdc7f4e2a2d375f1/awnClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
67,
3950,
67,
1098,
261,
2890,
16,
513,
20773,
16,
938,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
67,
3950,
67,
1098,
261,
2890,
16,
513,
20773,
16,
938,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
LabelEntry.set(self, text) | Text.set(self, text) | def set(self, listvalue): """Set a value to a list, joined with spaces.""" text = ' '.join(listvalue) LabelEntry.set(self, text) | f057996c3a6de2d5fabf3ad7997bbd1f796a9e23 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4675/f057996c3a6de2d5fabf3ad7997bbd1f796a9e23/meta.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
666,
1132,
4672,
3536,
694,
279,
460,
358,
279,
666,
16,
12114,
598,
7292,
12123,
977,
273,
296,
2418,
5701,
12,
1098,
1132,
13,
5287,
1622,
18,
542,
12,
2890,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
666,
1132,
4672,
3536,
694,
279,
460,
358,
279,
666,
16,
12114,
598,
7292,
12123,
977,
273,
296,
2418,
5701,
12,
1098,
1132,
13,
5287,
1622,
18,
542,
12,
2890,
16,
... |
for hit in results.hits] | for hit in results.hits] | def xmlrpc_searchPagesEx(self, query_string, search_type, length, case, mtime, regexp): """ Searches pages for query_string - extended version for compatibility This function, in contrary to searchPages(), doesn't return HTML-formatted data. @param query_string: term to search for @param search_type: "text" or "title... | b30c5a8b9264f2be10da06019d08a57048df6de4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/b30c5a8b9264f2be10da06019d08a57048df6de4/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31811,
67,
3072,
5716,
424,
12,
2890,
16,
843,
67,
1080,
16,
1623,
67,
723,
16,
769,
16,
648,
16,
13158,
16,
7195,
4672,
3536,
5167,
281,
4689,
364,
843,
67,
1080,
300,
7021,
1177,
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,
31811,
67,
3072,
5716,
424,
12,
2890,
16,
843,
67,
1080,
16,
1623,
67,
723,
16,
769,
16,
648,
16,
13158,
16,
7195,
4672,
3536,
5167,
281,
4689,
364,
843,
67,
1080,
300,
7021,
1177,
3... |
assert_array_almost_equal(numpy.matrixmultiply(a,x),b) | assert_array_almost_equal(numpy.dot(a,x),b) | def check_simple_sym(self): a = [[2,3],[3,5]] for lower in [0,1]: for b in ([[1,0],[0,1]],[1,0]): x = solve(a,b,sym_pos=1,lower=lower) assert_array_almost_equal(numpy.matrixmultiply(a,x),b) | 9bd2ebf847b7c0e4bdf3e5d49ab67f415145df68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/9bd2ebf847b7c0e4bdf3e5d49ab67f415145df68/test_basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
9647,
67,
8117,
12,
2890,
4672,
279,
273,
12167,
22,
16,
23,
6487,
63,
23,
16,
25,
13563,
364,
2612,
316,
306,
20,
16,
21,
14542,
364,
324,
316,
23265,
63,
21,
16,
20,
648... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9647,
67,
8117,
12,
2890,
4672,
279,
273,
12167,
22,
16,
23,
6487,
63,
23,
16,
25,
13563,
364,
2612,
316,
306,
20,
16,
21,
14542,
364,
324,
316,
23265,
63,
21,
16,
20,
648... |
LINUX_INSTALLER = r''' | LINUX_INSTALLER = textwrap.dedent(r''' | def linux(self, req): data = get_linux_data(version=self.version_from_filename()) return 'linux.html', data, None | de778713335322d20d0dde0f7e7e6d1ec56b6ad4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/de778713335322d20d0dde0f7e7e6d1ec56b6ad4/download.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19725,
12,
2890,
16,
1111,
4672,
501,
273,
336,
67,
20132,
67,
892,
12,
1589,
33,
2890,
18,
1589,
67,
2080,
67,
3459,
10756,
327,
296,
20132,
18,
2620,
2187,
501,
16,
599,
225,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19725,
12,
2890,
16,
1111,
4672,
501,
273,
336,
67,
20132,
67,
892,
12,
1589,
33,
2890,
18,
1589,
67,
2080,
67,
3459,
10756,
327,
296,
20132,
18,
2620,
2187,
501,
16,
599,
225,
2,
-1... |
origin=pre.addDecodedOrigin(fname,[PythonFunction(func)],'AXON') | if isinstance(pre,NetworkArray): dim=pre._nodes[0].dimension else: dim=pre.dimension origin=pre.addDecodedOrigin(fname,[PythonFunction(func,dim)],'AXON') | def _parse_pre(self,pre,func,origin_name): if isinstance(pre,Origin): assert func==None return pre elif isinstance(pre,FunctionInput): assert func==None return pre.getOrigin('origin') elif isinstance(pre,NEFEnsemble) or (hasattr(pre,'getOrigin') and hasattr(pre,'addDecodedOrigin')): if func is not None: if origin_name ... | 90992629c069262ea3b70ae509095f8049706289 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/553/90992629c069262ea3b70ae509095f8049706289/nef.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
1484,
12,
2890,
16,
1484,
16,
644,
16,
10012,
67,
529,
4672,
309,
1549,
12,
1484,
16,
7571,
4672,
1815,
1326,
631,
7036,
327,
675,
1327,
1549,
12,
1484,
16,
2083,
1210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2670,
67,
1484,
12,
2890,
16,
1484,
16,
644,
16,
10012,
67,
529,
4672,
309,
1549,
12,
1484,
16,
7571,
4672,
1815,
1326,
631,
7036,
327,
675,
1327,
1549,
12,
1484,
16,
2083,
1210,
... |
""" | """ | def lazyload(*keys): """Return a ``MapperOption`` that will convert the property of the given name into a lazy load. Used with ``query.options()``. """ return strategies.EagerLazyOption(keys, lazy=True) | 8b169bdc1a9ad510d1fa7ac55cf02c0a00396ed8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/8b169bdc1a9ad510d1fa7ac55cf02c0a00396ed8/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7962,
945,
30857,
2452,
4672,
3536,
990,
279,
12176,
4597,
1895,
10335,
716,
903,
1765,
326,
1272,
434,
326,
864,
508,
1368,
279,
7962,
1262,
18,
225,
10286,
598,
12176,
2271,
18,
2116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7962,
945,
30857,
2452,
4672,
3536,
990,
279,
12176,
4597,
1895,
10335,
716,
903,
1765,
326,
1272,
434,
326,
864,
508,
1368,
279,
7962,
1262,
18,
225,
10286,
598,
12176,
2271,
18,
2116,
... |
if bodyupdates and stride != 0: bodyupdates.add(None) | if stride != 0: bodyupdates.addunsure(None) | def postupdates(self): bodyupdates = self.bodypostupdates() stride = self.stride() if bodyupdates and stride != 0: bodyupdates.add(None) return bodyupdates | 71e0598bb7dc6d9b90f66161eeb283e8ddccc073 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/71e0598bb7dc6d9b90f66161eeb283e8ddccc073/esotope-bfc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
14703,
12,
2890,
4672,
1417,
14703,
273,
365,
18,
70,
369,
879,
669,
14703,
1435,
11084,
273,
365,
18,
27937,
1435,
309,
11084,
480,
374,
30,
1417,
14703,
18,
1289,
318,
2055,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
14703,
12,
2890,
4672,
1417,
14703,
273,
365,
18,
70,
369,
879,
669,
14703,
1435,
11084,
273,
365,
18,
27937,
1435,
309,
11084,
480,
374,
30,
1417,
14703,
18,
1289,
318,
2055,
12,
... |
if self.request.get('SearchableText'): q = {'SearchableText':self.request.get('SearchableText')} | q.update(self.request.form) if q.has_key('sort_on'): del q['sort_on'] if q.has_key('sort_order'): del q['sort_order'] | def url(self): q = {} if self.request.get('SearchableText'): q = {'SearchableText':self.request.get('SearchableText')} if self.sortkey: q['sort_on'] = self.sortkey if self.reverse: q['sort_order'] = 'reverse' return self.request.URL + '?' + make_query(q) | 1bc203a6ee7fd6d563763f9a2e4c204b3bf9ee0f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12249/1bc203a6ee7fd6d563763f9a2e4c204b3bf9ee0f/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
12,
2890,
4672,
1043,
273,
2618,
1043,
18,
2725,
12,
2890,
18,
2293,
18,
687,
13,
309,
1043,
18,
5332,
67,
856,
2668,
3804,
67,
265,
11,
4672,
1464,
1043,
3292,
3804,
67,
265,
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,
880,
12,
2890,
4672,
1043,
273,
2618,
1043,
18,
2725,
12,
2890,
18,
2293,
18,
687,
13,
309,
1043,
18,
5332,
67,
856,
2668,
3804,
67,
265,
11,
4672,
1464,
1043,
3292,
3804,
67,
265,
3... |
if args.has_key( "skipWMSAuth" ) : self.skipWMSAuth = ( args['skipWMSAuth'].lower() == 'true' ) | self.skipWMSAuth=args.get("skipWMSAuth",0) | def __init__( self, **args ): | 4dc925f05d54039e085d650ecb265c6c90bd5ab5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/4dc925f05d54039e085d650ecb265c6c90bd5ab5/SchedulerGLiteAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
2826,
1968,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
2738,
972,
12,
365,
16,
2826,
1968,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
output=subprocess.Popen([execname+'.prediff', execname,complog,compiler], stdout=subprocess.PIPE).communicate()[0] | subprocess.Popen(['./'+execname+'.prediff', execname,complog,compiler]).wait() | def kill_proc(p, timeout): k = subprocess.Popen(['kill',str(p.pid)]) k.wait() now = time.time() end_time = now + timeout # give it a little time while end_time > now: if p.poll(): return now = time.time() # use the big hammer (and don't bother waiting) subprocess.Popen(['kill','-9', str(p.pid)]) return | 469a09fcb4fe6f256fa57e8e16e691db1d278b44 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6895/469a09fcb4fe6f256fa57e8e16e691db1d278b44/sub_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
9381,
12,
84,
16,
2021,
4672,
417,
273,
6652,
18,
52,
3190,
12,
3292,
16418,
2187,
701,
12,
84,
18,
6610,
13,
5717,
417,
18,
7048,
1435,
2037,
273,
813,
18,
957,
1435,
679,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
9381,
12,
84,
16,
2021,
4672,
417,
273,
6652,
18,
52,
3190,
12,
3292,
16418,
2187,
701,
12,
84,
18,
6610,
13,
5717,
417,
18,
7048,
1435,
2037,
273,
813,
18,
957,
1435,
679,... |
print 'Detaching image %s from loop device %s' % (self.img, self.loop) | logging.debug('Detaching image %s from loop device %s', self.img, self.loop) | def __detach_img_loop(self): """ Detaches the image file from the loopback device. """ print 'Detaching image %s from loop device %s' % (self.img, self.loop) try: cmd = 'losetup -d %s' % self.loop utils.system(cmd) except error.CmdError, e: e_msg = 'Error detaching image %s from loop device %s: %s' % \ (self.loop, e) r... | 662f76bda53f3b39610e52556ebe4e8573de519d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/662f76bda53f3b39610e52556ebe4e8573de519d/base_partition.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8238,
497,
67,
6081,
67,
6498,
12,
2890,
4672,
3536,
17867,
281,
326,
1316,
585,
628,
326,
28811,
2346,
18,
3536,
2907,
18,
4148,
2668,
17650,
310,
1316,
738,
87,
628,
2798,
2346,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8238,
497,
67,
6081,
67,
6498,
12,
2890,
4672,
3536,
17867,
281,
326,
1316,
585,
628,
326,
28811,
2346,
18,
3536,
2907,
18,
4148,
2668,
17650,
310,
1316,
738,
87,
628,
2798,
2346,
... |
assert res == (1,"hello") assert sys.getrefcount(res) == 2 | assert_equal(res,(1,"hello")) assert_equal(sys.getrefcount(res),2) | def check_std_args(self,level=5): a = foo() method = "bar2" code = """ py::tuple args(2); args[0] = 1; args[1] = "hello"; return_val = a.mcall(method,args); """ res = inline_tools.inline(code,['a','method']) assert res == (1,"hello") assert sys.getrefcount(res) == 2 | 1a2e32f8d57897230b5265290279639d73dda37e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/1a2e32f8d57897230b5265290279639d73dda37e/test_scxx_object.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5084,
67,
1968,
12,
2890,
16,
2815,
33,
25,
4672,
279,
273,
8431,
1435,
707,
273,
315,
3215,
22,
6,
981,
273,
3536,
2395,
2866,
8052,
833,
12,
22,
1769,
833,
63,
20,
65,
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,
67,
5084,
67,
1968,
12,
2890,
16,
2815,
33,
25,
4672,
279,
273,
8431,
1435,
707,
273,
315,
3215,
22,
6,
981,
273,
3536,
2395,
2866,
8052,
833,
12,
22,
1769,
833,
63,
20,
65,
2... |
if str(arg0.dtype).count('float')==1: | str_dtype = str(arg0.dtype) if str_dtype.count('float32')==1: if arg0.flags.c_contiguous==True or arg0.flags.f_contiguous==True: m=matrix(RDF,arg0.shape[0],arg0.shape[1],0) m._replace_self_with_numpy32(arg0) if arg0.flags.c_contiguous: return m else: return m.transpose() else: raise TypeError('numpy matrix must be eit... | def matrix(arg0=None, arg1=None, arg2=None, arg3=None, sparse=None): """ Create a matrix. INPUT: Supported formats 1. matrix([sparse=True]): the 0x0 matrix over ZZ 2. matrix(list_of_rows, [sparse=True]): matrix with each row constructed from the list_of_rows 3. matrix(nrows, entries, [sparse=True]): matrix with given ... | 95d38282532e391dd2680a8bf59b2110c6999282 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/95d38282532e391dd2680a8bf59b2110c6999282/constructor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3148,
12,
3175,
20,
33,
7036,
16,
1501,
21,
33,
7036,
16,
1501,
22,
33,
7036,
16,
1501,
23,
33,
7036,
16,
9387,
33,
7036,
4672,
3536,
1788,
279,
3148,
18,
225,
12943,
30,
19503,
6449... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3148,
12,
3175,
20,
33,
7036,
16,
1501,
21,
33,
7036,
16,
1501,
22,
33,
7036,
16,
1501,
23,
33,
7036,
16,
9387,
33,
7036,
4672,
3536,
1788,
279,
3148,
18,
225,
12943,
30,
19503,
6449... |
base_dir = os.path.split(path)[0] | def date_name(path): """ Takes a file specified by path and returns its name in strftime format %F_%T which is its last modified time """ # Get the modification time from the timestamp of the fill mod_time = datetime.fromtimestamp(os.stat(path).st_mtime) # Grab our parent directory base_dir = os.path.split(path)[0] # J... | 73759f96700ef26063b5541b3befb24dbe11c3aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10608/73759f96700ef26063b5541b3befb24dbe11c3aa/backup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1509,
67,
529,
12,
803,
4672,
3536,
23004,
279,
585,
1269,
635,
589,
471,
1135,
2097,
508,
316,
10405,
740,
738,
42,
10185,
56,
1492,
353,
2097,
1142,
4358,
813,
3536,
468,
968,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1509,
67,
529,
12,
803,
4672,
3536,
23004,
279,
585,
1269,
635,
589,
471,
1135,
2097,
508,
316,
10405,
740,
738,
42,
10185,
56,
1492,
353,
2097,
1142,
4358,
813,
3536,
468,
968,
326,
1... | |
base.do('python setup.py sdist register upload', cwd = tagDir) | base.do('python setup.py sdist upload', cwd = tagDir) | def createRelease(self, version, branch): logger.info('Creating release %r for %r from branch %r' %( version, self.pkg, branch)) # 0. Skip creating releases in offline mode. if self.options.offline: logger.info('Offline: Skip creating a release.') return # 1. Create Release Tag branchUrl = self.getBranchURL(branch) tag... | 7c3c5e22afeb26241999f6634657be24065e4181 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9561/7c3c5e22afeb26241999f6634657be24065e4181/package.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
7391,
12,
2890,
16,
1177,
16,
3803,
4672,
1194,
18,
1376,
2668,
11092,
3992,
738,
86,
364,
738,
86,
628,
3803,
738,
86,
11,
8975,
1177,
16,
365,
18,
10657,
16,
3803,
3719,
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,
752,
7391,
12,
2890,
16,
1177,
16,
3803,
4672,
1194,
18,
1376,
2668,
11092,
3992,
738,
86,
364,
738,
86,
628,
3803,
738,
86,
11,
8975,
1177,
16,
365,
18,
10657,
16,
3803,
3719,
468,
... |
sage: print is_disjoint(T1, T2) | sage: _, t1, t2, t3 = tau123(T1, T2) sage: U1, U2 = tau_to_bitrade(t1, t2, t3) sage: assert is_bitrade(U1, U2) sage: U1 [0 1 2 3 4] [1 2 3 4 0] [2 3 4 0 1] [3 4 0 1 2] [4 0 1 2 3] sage: U2 [4 0 1 2 3] [0 1 2 3 4] [1 2 3 4 0] [2 3 4 0 1] [3 4 0 1 2] """ c1 = t1.to_cycles() c2 = t2.to_cycles() c3 = t3.to_cycles() pt_to... | def is_disjoint(T1, T2): """ The partial latin squares T1 and T2 are disjoint if T1[r, c] != T2[r, c] or T1[r, c] == T2[r, c] == -1 for each cell [r, c]. EXAMPLES: sage: from sage.combinat.matrices.latin import is_disjoint, back_circulant, isotopism sage: is_disjoint(back_circulant(2), back_circulant(2)) False sage: ... | 9087d14f978c663baae98e9a365c4a3aa2a6f24c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9087d14f978c663baae98e9a365c4a3aa2a6f24c/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2251,
16452,
12,
56,
21,
16,
399,
22,
4672,
3536,
1021,
4702,
30486,
31206,
399,
21,
471,
399,
22,
854,
1015,
16452,
309,
399,
21,
63,
86,
16,
276,
65,
480,
399,
22,
63,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2251,
16452,
12,
56,
21,
16,
399,
22,
4672,
3536,
1021,
4702,
30486,
31206,
399,
21,
471,
399,
22,
854,
1015,
16452,
309,
399,
21,
63,
86,
16,
276,
65,
480,
399,
22,
63,
8... |
self.__untranslated += 1 | self._untranslated += 1 | def __init__(self, filepath, template): self.__filepath = filepath self.__template = template self.__count = 0 self.__translated = 0 self.__untranslated = 0 self.__fuzzy = 0 self.__porevisiondate = '' self.__potcreationdate = '' self.__translators = [] if os.access(filepath, os.R_OK): #If PO(T) file can read... reMsgI... | 569cb008f201fd5615072299951acfa2ed026f12 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5857/569cb008f201fd5615072299951acfa2ed026f12/GetTranslationsStatus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3608,
16,
1542,
4672,
365,
16186,
10561,
273,
3608,
365,
16186,
3202,
273,
1542,
365,
16186,
1883,
273,
374,
365,
16186,
22899,
273,
374,
365,
16186,
318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3608,
16,
1542,
4672,
365,
16186,
10561,
273,
3608,
365,
16186,
3202,
273,
1542,
365,
16186,
1883,
273,
374,
365,
16186,
22899,
273,
374,
365,
16186,
318,
... |
notification_center = NotificationCenter() notification_center.post_notification('BonjourAccountRegistrationDidEnd', sender=self.account, data=TimestampedNotificationData()) | NotificationCenter().post_notification('BonjourAccountRegistrationDidEnd', sender=self.account, data=TimestampedNotificationData()) | def _CH_unregister(self, command): if self._register_timer is not None: self._register_timer.cancel() self._register_timer = None old_files = [] for file in (f for f in self._files[:] if f.type=='registration'): old_files.append(file) self._files.remove(file) self._select_proc.kill(RestartSelect) for file in old_files:... | 8e35ab24bf2b7ebd86f546a9d1d49ec606190fd1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/8e35ab24bf2b7ebd86f546a9d1d49ec606190fd1/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1792,
67,
318,
4861,
12,
2890,
16,
1296,
4672,
309,
365,
6315,
4861,
67,
12542,
353,
486,
599,
30,
365,
6315,
4861,
67,
12542,
18,
10996,
1435,
365,
6315,
4861,
67,
12542,
273,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1792,
67,
318,
4861,
12,
2890,
16,
1296,
4672,
309,
365,
6315,
4861,
67,
12542,
353,
486,
599,
30,
365,
6315,
4861,
67,
12542,
18,
10996,
1435,
365,
6315,
4861,
67,
12542,
273,
59... |
StructureTest() | StructureTest(dir="minimize", test="0001") | def test_minimize_0001(self): StructureTest() | d4548954f0b2ec61c249ce8e1b4af97c07a52a78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/d4548954f0b2ec61c249ce8e1b4af97c07a52a78/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1154,
10153,
67,
13304,
12,
2890,
4672,
13348,
4709,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1842,
67,
1154,
10153,
67,
13304,
12,
2890,
4672,
13348,
4709,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
menuitem.setAttribute("acceltext", item.shortcuts[-1].XULString()) | menuitem.setAttribute("key","%s-key%d"%(item.action,len(item.shortcuts))) | def addMenubar(self, document): menubarElement = document.getElementById("titlebar-menu") | e4fb6cc8505661f93103216850cd772488489381 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/e4fb6cc8505661f93103216850cd772488489381/pybridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
49,
275,
373,
297,
12,
2890,
16,
1668,
4672,
21247,
373,
297,
1046,
273,
1668,
18,
24135,
2932,
2649,
3215,
17,
5414,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
49,
275,
373,
297,
12,
2890,
16,
1668,
4672,
21247,
373,
297,
1046,
273,
1668,
18,
24135,
2932,
2649,
3215,
17,
5414,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
bmovl plugin fro mplayer | bmovl plugin for mplayer | def update(self, rect): _debug_('update bmovl') update = self.screen.subsurface(rect) os.write(self.bmovl, 'RGBA32 %d %d %d %d %d %d\n' % \ (update.get_width(), update.get_height(), rect[0], rect[1], 0, 0)) os.write(self.bmovl, pygame.image.tostring(update, 'RGBA')) | 2ca9321fde7480a272c9cb0bc365e10c0dfdd20a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/2ca9321fde7480a272c9cb0bc365e10c0dfdd20a/bmovl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
4917,
4672,
389,
4148,
67,
2668,
2725,
18829,
1527,
80,
6134,
1089,
273,
365,
18,
9252,
18,
1717,
18266,
12,
2607,
13,
1140,
18,
2626,
12,
2890,
18,
25709,
1527,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
4917,
4672,
389,
4148,
67,
2668,
2725,
18829,
1527,
80,
6134,
1089,
273,
365,
18,
9252,
18,
1717,
18266,
12,
2607,
13,
1140,
18,
2626,
12,
2890,
18,
25709,
1527,
80... |
key, val = row.findAll(u'td') | key = row.findAll(u'th')[0] val = row.findAll(u'td')[0] | def get_quote(self, symbol): url = Yahoo._quote_url.replace(u'SYMBOL', symbol) page = geturl(url) soup = BeautifulSoup(page) company = u' '.join([unicode(item) for item in soup.find(u'h1').contents]) company = stripHTML(company) tables = soup.findAll(u'table') if not tables: raise UnknownSymbol table = tables[0] rows =... | 2d79ced007fb67a0f1fb47a406f94ca0b63e2af3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10942/2d79ced007fb67a0f1fb47a406f94ca0b63e2af3/stockquote.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6889,
12,
2890,
16,
3273,
4672,
880,
273,
1624,
9795,
5161,
6315,
6889,
67,
718,
18,
2079,
12,
89,
11,
22093,
2187,
3273,
13,
1363,
273,
336,
718,
12,
718,
13,
15418,
273,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6889,
12,
2890,
16,
3273,
4672,
880,
273,
1624,
9795,
5161,
6315,
6889,
67,
718,
18,
2079,
12,
89,
11,
22093,
2187,
3273,
13,
1363,
273,
336,
718,
12,
718,
13,
15418,
273,
2... |
'and' : '&&', 'or' : '||', '<': '<' , '>': '>' }; | ' and ' : '&&', ' or ' : '||', '<' : '<' , '>' : '>' }; | def __str__(self): return 'open: \'' + str(self.open) + '\'\nclose: \'' + str(self.close) + '\'' | 6289af17f46fb2f11aea9d918dd0880dd1e18af8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4025/6289af17f46fb2f11aea9d918dd0880dd1e18af8/ch_clean_asp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
296,
3190,
30,
225,
18665,
397,
609,
12,
2890,
18,
3190,
13,
225,
397,
2337,
8314,
82,
4412,
30,
18665,
397,
609,
12,
2890,
18,
4412,
13,
397,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
296,
3190,
30,
225,
18665,
397,
609,
12,
2890,
18,
3190,
13,
225,
397,
2337,
8314,
82,
4412,
30,
18665,
397,
609,
12,
2890,
18,
4412,
13,
397,
15... |
counter = self.hit_counter.get(uri, 0) | counter = self.hit_counter.get(method+uri, 0) | def request(self, uri, method="GET", body=None, headers=None, redirections=5): counter = self.hit_counter.get(uri, 0) counter += 1 self.hit_counter[uri] = counter headers, body = self.h.request(uri, method, body, headers, redirections) path = urlparse.urlparse(uri)[2] fname = os.path.join(self.directory, method, path.s... | 6f4d8ba6ee79dce0fbf212a157d9c51e6067a7e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5012/6f4d8ba6ee79dce0fbf212a157d9c51e6067a7e0/mockhttp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
2003,
16,
707,
1546,
3264,
3113,
1417,
33,
7036,
16,
1607,
33,
7036,
16,
19611,
87,
33,
25,
4672,
3895,
273,
365,
18,
15989,
67,
7476,
18,
588,
12,
2039,
15,
1650,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
2003,
16,
707,
1546,
3264,
3113,
1417,
33,
7036,
16,
1607,
33,
7036,
16,
19611,
87,
33,
25,
4672,
3895,
273,
365,
18,
15989,
67,
7476,
18,
588,
12,
2039,
15,
1650,... |
if string.find(line, "warning:") == -1: | if string.find(line, "pdfTeX warning") == -1: | def errors (self): """ Returns true if there was an error during the compilation. """ for line in self.lines: if line[0] == "!": # We check for the substring "warning:" because pdfTeX # sometimes issues warnings (like undefined references) in the # form of errors... | bebabe8d0cd32d7c1fa4d0ec91094782a2e99e1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/bebabe8d0cd32d7c1fa4d0ec91094782a2e99e1f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1334,
261,
2890,
4672,
3536,
2860,
638,
309,
1915,
1703,
392,
555,
4982,
326,
8916,
18,
3536,
364,
980,
316,
365,
18,
3548,
30,
309,
980,
63,
20,
65,
422,
23717,
30,
468,
1660,
866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1334,
261,
2890,
4672,
3536,
2860,
638,
309,
1915,
1703,
392,
555,
4982,
326,
8916,
18,
3536,
364,
980,
316,
365,
18,
3548,
30,
309,
980,
63,
20,
65,
422,
23717,
30,
468,
1660,
866,
... |
if info.contents.DeleteOnClose: if info.contents.IsDirectory: | if info.contents.IsDirectory: if info.contents.DeleteOnClose: | def Cleanup(self, path, info): path = normpath(path) if info.contents.DeleteOnClose: if info.contents.IsDirectory: self.fs.removedir(path) self._pending_delete.remove(path) else: (file,_,lock) = self._get_file(info.contents.Context) lock.acquire() try: file.close() self.fs.remove(path) self._pending_delete.remove(path)... | 86b05739df224b995133779248dc8dc99fc2fdbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5579/86b05739df224b995133779248dc8dc99fc2fdbe/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19968,
12,
2890,
16,
589,
16,
1123,
4672,
589,
273,
20446,
12,
803,
13,
309,
1123,
18,
3980,
18,
2520,
2853,
30,
309,
1123,
18,
3980,
18,
2613,
1398,
4605,
30,
365,
18,
2556,
18,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19968,
12,
2890,
16,
589,
16,
1123,
4672,
589,
273,
20446,
12,
803,
13,
309,
1123,
18,
3980,
18,
2520,
2853,
30,
309,
1123,
18,
3980,
18,
2613,
1398,
4605,
30,
365,
18,
2556,
18,
149... |
self.elements[key] = start, val | self.elements[tag] = start, getattr(self, key) | def __fixdict(self, dict): for key, val in dict.items(): if key[:6] == 'start_': key = key[6:] start, end = self.elements.get(key, (None, None)) if start is None: self.elements[key] = val, end elif key[:4] == 'end_': key = key[4:] start, end = self.elements.get(key, (None, None)) if end is None: self.elements[key] = st... | 85afe3cf7b6468e27cbca4451e87bfc49d31ebb0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/85afe3cf7b6468e27cbca4451e87bfc49d31ebb0/xmllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
904,
1576,
12,
2890,
16,
2065,
4672,
364,
498,
16,
1244,
316,
2065,
18,
3319,
13332,
309,
498,
10531,
26,
65,
422,
296,
1937,
67,
4278,
498,
273,
498,
63,
26,
26894,
787,
16,
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,
1001,
904,
1576,
12,
2890,
16,
2065,
4672,
364,
498,
16,
1244,
316,
2065,
18,
3319,
13332,
309,
498,
10531,
26,
65,
422,
296,
1937,
67,
4278,
498,
273,
498,
63,
26,
26894,
787,
16,
6... |
return self.text | return str(self.text) | def get_clipboard(self): """ Read text from the clipboard Usage: C{clipboard.get_clipboard()} """ self.__execAsync(self.__getClipboard) return self.text | 72bc5f905a0b411c1ba52af4c786f7196b141927 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6143/72bc5f905a0b411c1ba52af4c786f7196b141927/scripting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14161,
3752,
12,
2890,
4672,
3536,
2720,
977,
628,
326,
20304,
225,
10858,
30,
385,
95,
14161,
3752,
18,
588,
67,
14161,
3752,
17767,
3536,
365,
16186,
4177,
2771,
12,
2890,
161... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14161,
3752,
12,
2890,
4672,
3536,
2720,
977,
628,
326,
20304,
225,
10858,
30,
385,
95,
14161,
3752,
18,
588,
67,
14161,
3752,
17767,
3536,
365,
16186,
4177,
2771,
12,
2890,
161... |
self.director = re.search(r"Reie:(.*)<br",self.page) | self.director = re.search(r"Re.ie:(.*)<br",self.page) | def director(self): self.director = re.search(r"Reie:(.*)<br",self.page) if self.director: self.director = gutils.strip_tags(self.director.group(1)) else: self.director = "" | a15c986268b8505d4a169f8d3d399848647f3c0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/a15c986268b8505d4a169f8d3d399848647f3c0b/PluginMovieCSFD.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2657,
280,
12,
2890,
4672,
365,
18,
7205,
280,
273,
283,
18,
3072,
12,
86,
6,
426,
18,
1385,
30,
14361,
32,
2848,
3113,
2890,
18,
2433,
13,
309,
365,
18,
7205,
280,
30,
365,
18,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
280,
12,
2890,
4672,
365,
18,
7205,
280,
273,
283,
18,
3072,
12,
86,
6,
426,
18,
1385,
30,
14361,
32,
2848,
3113,
2890,
18,
2433,
13,
309,
365,
18,
7205,
280,
30,
365,
18,
72... |
"incoming|in": (incoming, [], 'hg incoming [SOURCE]'), | "incoming|in": (incoming, [('p', 'patch', None, 'show patch')], 'hg incoming [-p] [SOURCE]'), | def verify(ui, repo): """verify the integrity of the repository""" return repo.verify() | 5056ddad9b2862047b2be18b61c800c861a53a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/5056ddad9b2862047b2be18b61c800c861a53a38/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
4881,
16,
3538,
4672,
3536,
8705,
326,
24425,
434,
326,
3352,
8395,
327,
3538,
18,
8705,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3929,
12,
4881,
16,
3538,
4672,
3536,
8705,
326,
24425,
434,
326,
3352,
8395,
327,
3538,
18,
8705,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.robot._main_part.set_local_force( convertToVector3(ogre.Vector3, force), (0,0,0)) self.robot._main_part.torque = convertToVector3(ogre.Vector3, torque) | def applyForcesAndTorques(self, force, torque): self.robot._main_part.set_local_force( convertToVector3(ogre.Vector3, force), (0,0,0)) self.robot._main_part.torque = convertToVector3(ogre.Vector3, torque) portThruster = self.getDevice('PortThruster') starThruster = self.getDevice('StartboardThruster') foreThruster = s... | 0502a0ec3ee9e5e1dbd649fd297291ba847fa07e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10608/0502a0ec3ee9e5e1dbd649fd297291ba847fa07e/vehicle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
1290,
764,
1876,
27266,
29896,
12,
2890,
16,
2944,
16,
8934,
1857,
4672,
1756,
1315,
86,
1722,
273,
365,
18,
588,
3654,
2668,
2617,
1315,
86,
1722,
6134,
10443,
1315,
86,
1722,
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,
2230,
1290,
764,
1876,
27266,
29896,
12,
2890,
16,
2944,
16,
8934,
1857,
4672,
1756,
1315,
86,
1722,
273,
365,
18,
588,
3654,
2668,
2617,
1315,
86,
1722,
6134,
10443,
1315,
86,
1722,
273... | |
n = sage.rings.integer.Integer(n) | n = Integer(n) | def __call__(self, n, watch=False): n = sage.rings.integer.Integer(n) cmd = 'echo "%s" | %s'%(n, self.__cmd) if watch: t = tmp_filename() os.system('%s | tee %s'%(cmd, t)) ou = open(t).read() os.unlink(t) else: i,o,e = os.popen3(cmd) i.close() ou = e.read() + '\n' + o.read() if 'command not found' in ou: err = ou + '\n... | 0eca9f7c00e56c7a5534d537e9194797a26d63e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0eca9f7c00e56c7a5534d537e9194797a26d63e6/ecm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
290,
16,
4267,
33,
8381,
4672,
290,
273,
2144,
12,
82,
13,
1797,
273,
296,
12946,
2213,
87,
6,
571,
738,
87,
11,
17105,
82,
16,
365,
16186,
4172,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
290,
16,
4267,
33,
8381,
4672,
290,
273,
2144,
12,
82,
13,
1797,
273,
296,
12946,
2213,
87,
6,
571,
738,
87,
11,
17105,
82,
16,
365,
16186,
4172,
13,
... |
self._ringtone = ringtone | if self.session_manager.ringtone_config.outbound_ringtone is not None: self._ringtone = WaveFile(self.session_manager.ringtone_config.outbound_ringtone) | def new(self, callee_uri, credentials, route, audio=False, chat=False): """Creates a new SIP session to the callee with the requested stream(s). Moves the object from the NULL into the CALLING state.""" with self._lock: if self.state != "NULL": raise RuntimeError("This method can only be called while in the NULL state"... | 7f10f20e46c1546b9c40950c3ad1460884703461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/7f10f20e46c1546b9c40950c3ad1460884703461/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
14425,
67,
1650,
16,
4448,
16,
1946,
16,
7447,
33,
8381,
16,
7916,
33,
8381,
4672,
3536,
2729,
279,
394,
348,
2579,
1339,
358,
326,
14425,
598,
326,
3764,
1407,
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,
394,
12,
2890,
16,
14425,
67,
1650,
16,
4448,
16,
1946,
16,
7447,
33,
8381,
16,
7916,
33,
8381,
4672,
3536,
2729,
279,
394,
348,
2579,
1339,
358,
326,
14425,
598,
326,
3764,
1407,
12,
... |
":bar", "tracks/atom.pos.bond.df.bins", "tracks/atom.pos.bond.df.cumul.hist", "tracks/atom.pos.bond.df.cumul.hist.error", | ":bar", "tracks/atom.bond.pos.df.bins", "tracks/atom.bond.pos.df.cumul.hist", "tracks/atom.bond.pos.df.cumul.hist.error", | def test_df(self): self.from_xyz("thf01", "pos") self.from_cp2k_ener("thf01") self.execute("tr-ic-psf", ['tracks/atom.pos', 'bond', '1,2,3,4', '5,6,7,8,9,10,11,12', os.path.join(input_dir, "thf01/init.psf")]) # ordinary df, no error bars self.execute("tr-df", glob.glob("tracks/atom.pos.bond.???????.???????") + ["1.0*A"... | 180dc223c0ef9ebaa3b178bd709e0cacd8e29052 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11050/180dc223c0ef9ebaa3b178bd709e0cacd8e29052/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2180,
12,
2890,
4672,
365,
18,
2080,
67,
17177,
2932,
451,
74,
1611,
3113,
315,
917,
7923,
365,
18,
2080,
67,
4057,
22,
79,
67,
708,
2932,
451,
74,
1611,
7923,
365,
18,
883... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2180,
12,
2890,
4672,
365,
18,
2080,
67,
17177,
2932,
451,
74,
1611,
3113,
315,
917,
7923,
365,
18,
2080,
67,
4057,
22,
79,
67,
708,
2932,
451,
74,
1611,
7923,
365,
18,
883... |
self.input.append(input) | self.input = self.input + input | def update(self, input): """updates the algorithm with more hashing information.""" self.input.append(input) | 97699db37a7660cb45cb4f14d3907af22642e989 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9938/97699db37a7660cb45cb4f14d3907af22642e989/crypto.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
810,
4672,
3536,
14703,
326,
4886,
598,
1898,
24641,
1779,
12123,
365,
18,
2630,
18,
6923,
12,
2630,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
810,
4672,
3536,
14703,
326,
4886,
598,
1898,
24641,
1779,
12123,
365,
18,
2630,
18,
6923,
12,
2630,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.test_thread = threading.Thread(target = Controller.test_thread_func, args = (self,)) | log.debug("Initializing test threads.") T = threading.Thread self.test_thread = T(target = Controller.testing_thread, args = (self,)) self.circuit_thread = T(target = Controller.circuit_build_thread, args = (self,)) self.listen_thread = T(target = Controller.listen_thread, args = (self,)) self.stream_thread ... | def init_tests(self): """ Initialize testing infrastructure - sockets, etc. """ log.debug("Initializing test sockets.") for port in self.test_ports: try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.setblocking(0) sock.bind((config.test_bind_ip, port)) self.test_sockets[port] = sock except socket.error... | 921dc4f6d0461873a6adb949ad90974a0718ad25 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/921dc4f6d0461873a6adb949ad90974a0718ad25/torbel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
16341,
12,
2890,
4672,
3536,
9190,
7769,
316,
26150,
300,
16762,
16,
5527,
18,
3536,
613,
18,
4148,
2932,
29782,
1842,
16762,
1199,
13,
364,
1756,
316,
365,
18,
3813,
67,
4363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
16341,
12,
2890,
4672,
3536,
9190,
7769,
316,
26150,
300,
16762,
16,
5527,
18,
3536,
613,
18,
4148,
2932,
29782,
1842,
16762,
1199,
13,
364,
1756,
316,
365,
18,
3813,
67,
4363,... |
self["VKeyIcon"].hide() self["VirtualKB"].setEnabled(False) self["HelpWindow"].hide() | def layoutFinished(self): self["DNS1"].setText(self.primaryDNS.getText()) self["DNS2"].setText(self.secondaryDNS.getText()) if self.ipConfigEntry.getText() is not None: if self.ipConfigEntry.getText() == "0.0.0.0": self["IP"].setText(_("N/A")) else: self["IP"].setText(self.ipConfigEntry.getText()) else: self["IP"].setT... | f741c4cc282f2f99b86e6ec305604f27216087ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/f741c4cc282f2f99b86e6ec305604f27216087ba/NetworkSetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3511,
10577,
12,
2890,
4672,
365,
9614,
11602,
21,
6,
8009,
542,
1528,
12,
2890,
18,
8258,
11602,
18,
588,
1528,
10756,
365,
9614,
11602,
22,
6,
8009,
542,
1528,
12,
2890,
18,
19674,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3511,
10577,
12,
2890,
4672,
365,
9614,
11602,
21,
6,
8009,
542,
1528,
12,
2890,
18,
8258,
11602,
18,
588,
1528,
10756,
365,
9614,
11602,
22,
6,
8009,
542,
1528,
12,
2890,
18,
19674,
1... | |
import gc gc.collect() | test_support.gc_collect() | def __del__(self): Counted.counter -= 1 | 36f4733acef5aa12ca3417779ae3f11e59199f70 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/36f4733acef5aa12ca3417779ae3f11e59199f70/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
6974,
329,
18,
7476,
3947,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1001,
3771,
972,
12,
2890,
4672,
6974,
329,
18,
7476,
3947,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
r += if_platform_tagged(platform, "enable", lambda: x) | r += if_platform_tagged(platform, "enable", x) | def each_platform(closure): r = "[+ IF - enable undefined +]" for platform in GRUB_PLATFORMS: r += "\nif COND_" + platform + "\n" + closure(platform) + "endif\n" r += "[+ ELSE +]" for platform in GRUB_PLATFORMS: x = "\nif COND_" + platform + "\n" + closure(platform) + "endif\n" r += if_platform_tagged(platform, "enable... | c8d22d34fb910911782f3cb62d58a3495edc8286 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9475/c8d22d34fb910911782f3cb62d58a3495edc8286/gentpl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1517,
67,
9898,
12,
20823,
4672,
436,
273,
5158,
15,
11083,
300,
4237,
3109,
397,
4279,
364,
4072,
316,
15228,
3457,
67,
6253,
789,
4983,
55,
30,
436,
1011,
1548,
82,
430,
3492,
40,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1517,
67,
9898,
12,
20823,
4672,
436,
273,
5158,
15,
11083,
300,
4237,
3109,
397,
4279,
364,
4072,
316,
15228,
3457,
67,
6253,
789,
4983,
55,
30,
436,
1011,
1548,
82,
430,
3492,
40,
95... |
def _analytic_update(self, cr, uid, ids, context): if self.called: self.called=False return False obj_line=self.pool.get('account.analytic.line') for line in self.browse(cr, uid, ids, context): | def create_analytic_lines(self, cr, uid, ids, context={}): super(account_move_line, self).create_analytic_lines(cr, uid, ids, context) for line in self.browse(cr, uid, ids, context): | def _analytic_update(self, cr, uid, ids, context): if self.called: self.called=False return False | e130b17c9b01867760d947b06e8bdfaf0f40350a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/e130b17c9b01867760d947b06e8bdfaf0f40350a/account_analytic_plans.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
304,
7834,
335,
67,
2725,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
4672,
309,
365,
18,
11777,
30,
365,
18,
11777,
33,
8381,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
304,
7834,
335,
67,
2725,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
4672,
309,
365,
18,
11777,
30,
365,
18,
11777,
33,
8381,
327,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-... |
"lib", "python" + sys.version[:3]) | "lib", "python" + get_python_version()) | def get_python_lib(plat_specific=0, standard_lib=0, prefix=None): """Return the directory containing the Python library (standard or site additions). If 'plat_specific' is true, return the directory containing platform-specific modules, i.e. any module from a non-pure-Python module distribution; otherwise, return the ... | 0ff98b9346f77d6888c29e5c787c5b1b75023efc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0ff98b9346f77d6888c29e5c787c5b1b75023efc/sysconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8103,
67,
2941,
12,
412,
270,
67,
12524,
33,
20,
16,
4529,
67,
2941,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
326,
6600,
5313,
261,
10005,
578,
2834,
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,
336,
67,
8103,
67,
2941,
12,
412,
270,
67,
12524,
33,
20,
16,
4529,
67,
2941,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
326,
6600,
5313,
261,
10005,
578,
2834,
26... |
obj.msgid_plural = strings[msgid]["plural"] | obj.msgid_plural = polib.unescape(strings[msgid]["plural"]) | def getPotFile(self, content, variants={}): pot = self.createPoFile() strings = self.getPackageStrings(content, variants) | 3310f6c9f519924be5326f471a80702edf090ab6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/3310f6c9f519924be5326f471a80702edf090ab6/Locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
352,
812,
12,
2890,
16,
913,
16,
12935,
12938,
4672,
5974,
273,
365,
18,
2640,
29198,
812,
1435,
2064,
273,
365,
18,
588,
2261,
7957,
12,
1745,
16,
12935,
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,
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,
1689,
352,
812,
12,
2890,
16,
913,
16,
12935,
12938,
4672,
5974,
273,
365,
18,
2640,
29198,
812,
1435,
2064,
273,
365,
18,
588,
2261,
7957,
12,
1745,
16,
12935,
13,
2,
-100,
-100,
-100... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 930) else quickfix.StringField.__init__(self, 930, 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,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2468,
5082,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2468,
5082,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... |
def dvi(self, directory): self.write(directory) oldpath = os.path.abspath(os.curdir) os.chdir(directory) print 'RUNNING LaTeX' os.system('latex api.tex') os.system('makeindex api.idx') os.system('latex api.tex') os.chdir(oldpath) def write(self, directory): | self._hyperref = 1 def write(self, directory=None, progress_callback=None): """ Write the API documentation for the entire project to the given directory. @type directory: C{string} @param directory: The directory to which output should be written. If no directory is specified, output will be written to the current ... | def __init__(self, docmap, **kwargs): self._docmap = docmap | 718e913e37bd564ee3425ab6734ad7a7748f8a8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/718e913e37bd564ee3425ab6734ad7a7748f8a8a/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
997,
1458,
16,
2826,
4333,
4672,
365,
6315,
2434,
1458,
273,
997,
1458,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
997,
1458,
16,
2826,
4333,
4672,
365,
6315,
2434,
1458,
273,
997,
1458,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
eventlet.sleep(.2) | evt.wait() | def server(): # accept the connection in another greenlet sock, addr = listener.accept() | 017d7871a7559eeb90cb911e57dd5974ec41f4ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10078/017d7871a7559eeb90cb911e57dd5974ec41f4ed/greenio_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1438,
13332,
468,
2791,
326,
1459,
316,
4042,
10004,
1810,
7313,
16,
3091,
273,
2991,
18,
9436,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1438,
13332,
468,
2791,
326,
1459,
316,
4042,
10004,
1810,
7313,
16,
3091,
273,
2991,
18,
9436,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.set_macro("FrameworkSDKDir", net, "sdkinstallroot") | if version > 7.0: self.set_macro("FrameworkSDKDir", net, "sdkinstallrootv1.1") else: self.set_macro("FrameworkSDKDir", net, "sdkinstallroot") | def load_macros(self, version): vsbase = r"Software\Microsoft\VisualStudio\%s.0" % version self.set_macro("VCInstallDir", vsbase + r"\Setup\VC", "productdir") self.set_macro("VSInstallDir", vsbase + r"\Setup\VS", "productdir") net = r"Software\Microsoft\.NETFramework" self.set_macro("FrameworkDir", net, "installroot") ... | df44db67f6b366e26a94c8d66ba002a2a49d4647 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/df44db67f6b366e26a94c8d66ba002a2a49d4647/msvccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
5821,
6973,
12,
2890,
16,
1177,
4672,
6195,
1969,
273,
436,
6,
21742,
64,
22350,
64,
25780,
510,
4484,
64,
9,
87,
18,
20,
6,
738,
1177,
365,
18,
542,
67,
26448,
2932,
13464... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
5821,
6973,
12,
2890,
16,
1177,
4672,
6195,
1969,
273,
436,
6,
21742,
64,
22350,
64,
25780,
510,
4484,
64,
9,
87,
18,
20,
6,
738,
1177,
365,
18,
542,
67,
26448,
2932,
13464... |
def fl_get_browser_screenlines(ob): """ fl_get_browser_screenlines(ob) -> lines num. """ retval = _fl_get_browser_screenlines(ob) return retval _fl_set_browser_topline = cfuncproto(so_libforms, "fl_set_browser_topline", None, [cty.POINTER(FL_OBJECT), cty.c_int], | def fl_get_browser_screenlines(pObject): """ fl_get_browser_screenlines(pObject) -> lines num. """ retval = _fl_get_browser_screenlines(pObject) return retval _fl_set_browser_topline = cfuncproto(so_libforms, "fl_set_browser_topline", None, [cty.POINTER(FL_OBJECT), cty.c_int], | def fl_get_browser_screenlines(ob): """ fl_get_browser_screenlines(ob) -> lines num. """ retval = _fl_get_browser_screenlines(ob) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
11213,
67,
9252,
3548,
12,
947,
4672,
3536,
1183,
67,
588,
67,
11213,
67,
9252,
3548,
12,
947,
13,
317,
2362,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
588,
67,
11213,
67,
9252,
3548,
12,
947,
4672,
3536,
1183,
67,
588,
67,
11213,
67,
9252,
3548,
12,
947,
13,
317,
2362,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
588,
67... |
os.environ['PYTHONPATH'] = os.pathsep.join(sys.path) cmd = '%s "%s" %s' % (sys.executable, script_fn, args) | pyIntpPath = Preferences.getPythonInterpreterPath() if pyIntpPath == sys.executable: os.environ['PYTHONPATH'] = os.pathsep.join(sys.path) else: os.environ['PYTHONPATH'] = Preferences.pyPath cmd = '%s "%s" %s' % (pyIntpPath, script_fn, args) | def spawnChild(monitor, process, args=''): """Returns an xmlrpclib.Server, a connection to an xml-rpc server, and the input and error streams. """ # Start ChildProcessServerStart.py in a new process. script_fn = os.path.join(os.path.dirname(__file__), 'ChildProcessServerStart.py') os.environ['PYTHONPATH'] = os.pathsep.... | c84ecd785771d4fce7d026f3da1d50b056b28ea8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c84ecd785771d4fce7d026f3da1d50b056b28ea8/ChildProcessClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
1763,
12,
10259,
16,
1207,
16,
833,
2218,
11,
4672,
3536,
1356,
392,
2025,
13832,
830,
495,
18,
2081,
16,
279,
1459,
358,
392,
2025,
17,
7452,
1438,
16,
471,
326,
810,
471,
555,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
1763,
12,
10259,
16,
1207,
16,
833,
2218,
11,
4672,
3536,
1356,
392,
2025,
13832,
830,
495,
18,
2081,
16,
279,
1459,
358,
392,
2025,
17,
7452,
1438,
16,
471,
326,
810,
471,
555,... |
f = file(fname) | f = open(fname) | def combine(fname): f = file(fname) fi = iter(f) for line in read(fi, re.compile(r'^Remaining objects:$'), False): pass crack = re.compile(r'([a-zA-Z\d]+) \[(\d+)\] (.*)') addr2rc = {} addr2guts = {} before = 0 for line in read(fi, re.compile(r'^Remaining object addresses:$'), False): m = crack.match(line) if m: addr... | 4b28041530ce2dc8f741d544b6f86627348de3ef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/4b28041530ce2dc8f741d544b6f86627348de3ef/combinerefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8661,
12,
12749,
4672,
284,
273,
1696,
12,
12749,
13,
225,
7314,
273,
1400,
12,
74,
13,
225,
364,
980,
316,
855,
12,
22056,
16,
283,
18,
11100,
12,
86,
19856,
11429,
2184,
30,
9227,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8661,
12,
12749,
4672,
284,
273,
1696,
12,
12749,
13,
225,
7314,
273,
1400,
12,
74,
13,
225,
364,
980,
316,
855,
12,
22056,
16,
283,
18,
11100,
12,
86,
19856,
11429,
2184,
30,
9227,
... |
self._rising_setting(body, rising=True) | return self._rising_setting(body, rising=True) | def next_rising(self, body): """Find the next time at which the given body rises.""" self._rising_setting(body, rising=True) | 58aa765e5e5ff2da284b6e4f6dd1a78bd23f9a7f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10979/58aa765e5e5ff2da284b6e4f6dd1a78bd23f9a7f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
67,
86,
13734,
12,
2890,
16,
1417,
4672,
3536,
3125,
326,
1024,
813,
622,
1492,
326,
864,
1417,
436,
6141,
12123,
365,
6315,
86,
13734,
67,
8920,
12,
3432,
16,
436,
13734,
33,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
67,
86,
13734,
12,
2890,
16,
1417,
4672,
3536,
3125,
326,
1024,
813,
622,
1492,
326,
864,
1417,
436,
6141,
12123,
365,
6315,
86,
13734,
67,
8920,
12,
3432,
16,
436,
13734,
33,
55... |
for axis,group,data,subplot in mgr.subplots: | for axis,group,data,cb,subplot in mgr.subplots: | def update(G=None, x=-1, y=-1): mgr = plt.get_current_fig_manager() if G is None: for axis,group,data,subplot in mgr.subplots: if hasattr(group, 'mask'): D = np.where(group.mask,data,np.NaN) else: D = data axis.set_data(D) else: for axis,group,data,subplot in mgr.subplots: axis.set_data(np.empty_like(data)*np.NaN) if h... | e02ec6ba73972ecb234700295bf10aa4a5906799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12213/e02ec6ba73972ecb234700295bf10aa4a5906799/display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
43,
33,
7036,
16,
619,
29711,
21,
16,
677,
29711,
21,
4672,
13333,
273,
5451,
18,
588,
67,
2972,
67,
470,
67,
4181,
1435,
309,
611,
353,
599,
30,
364,
2654,
16,
1655,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
43,
33,
7036,
16,
619,
29711,
21,
16,
677,
29711,
21,
4672,
13333,
273,
5451,
18,
588,
67,
2972,
67,
470,
67,
4181,
1435,
309,
611,
353,
599,
30,
364,
2654,
16,
1655,
16,
... |
lang = gettext.translation(PACKAGE, locale_dir, languages=lang, | lang = gettext.translation(PACKAGE, locale_dir, languages=[lang], | def setlang(lang=None): "Set language" locale_dir = os.path.join(CURRENT_DIR, 'share/locale') if not os.path.isdir(locale_dir): locale_dir = os.path.join(PREFIX, 'share/locale') if not os.path.isdir(locale_dir): gettext.install(PACKAGE, unicode=1) return False if lang: encoding = locale.getdefaultlocale()[1] if encodin... | 47e98aa32344a98b529394bb7f58a68131cab4ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/47e98aa32344a98b529394bb7f58a68131cab4ac/translate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
4936,
12,
4936,
33,
7036,
4672,
315,
694,
2653,
6,
2573,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
15487,
67,
4537,
16,
296,
14419,
19,
6339,
6134,
309,
486,
1140,
18,
803,
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,
444,
4936,
12,
4936,
33,
7036,
4672,
315,
694,
2653,
6,
2573,
67,
1214,
273,
1140,
18,
803,
18,
5701,
12,
15487,
67,
4537,
16,
296,
14419,
19,
6339,
6134,
309,
486,
1140,
18,
803,
18... |
help="use libtool") | help="do not use libtool") | def _get_option_parser(): parser = optparse.OptionParser('%prog [options] sources') parser.add_option("", "--format", action="store", dest="format", default="gir", help="format to use, one of gidl, gir") parser.add_option("-i", "--include", action="append", dest="includes", default=[], help="include types for other gid... | 0057bd81165e93b1cfd2b350759766ecb9140e36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2770/0057bd81165e93b1cfd2b350759766ecb9140e36/scannermain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3482,
67,
4288,
13332,
2082,
273,
2153,
2670,
18,
1895,
2678,
29909,
14654,
306,
2116,
65,
5550,
6134,
2082,
18,
1289,
67,
3482,
2932,
3113,
5238,
2139,
3113,
1301,
1546,
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,
389,
588,
67,
3482,
67,
4288,
13332,
2082,
273,
2153,
2670,
18,
1895,
2678,
29909,
14654,
306,
2116,
65,
5550,
6134,
2082,
18,
1289,
67,
3482,
2932,
3113,
5238,
2139,
3113,
1301,
1546,
2... |
dc.SetPen(wx.Pen(penColor)) | def Draw(self, dc, boundingRect, styles, brushOffset, selected): item = self._item | 614c6e0fec5358c7acde5bbf542101668445ed6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/614c6e0fec5358c7acde5bbf542101668445ed6a/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
12,
2890,
16,
6744,
16,
7552,
6120,
16,
5687,
16,
5186,
1218,
2335,
16,
3170,
4672,
761,
273,
365,
6315,
1726,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10184,
12,
2890,
16,
6744,
16,
7552,
6120,
16,
5687,
16,
5186,
1218,
2335,
16,
3170,
4672,
761,
273,
365,
6315,
1726,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
Update the progressbar | Update the progressbar | def updateProgress(self,name,frac,fread,ftime): ''' Update the progressbar @param name: filename @param frac: Progress fracment (0 -> 1) @param fread: formated string containing BytesRead @param ftime : formated string containing remaining or elapsed time ''' pct = int( frac*100 ) print " %s : %s " % (name,pct) | bcb6ddbb4f981ed03fe8d1171e266e38b77d4fd8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/bcb6ddbb4f981ed03fe8d1171e266e38b77d4fd8/callbacks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
5491,
12,
2890,
16,
529,
16,
22187,
16,
74,
896,
16,
9982,
4672,
9163,
2315,
326,
31730,
632,
891,
508,
30,
1544,
632,
891,
12445,
30,
10980,
12445,
475,
261,
20,
317,
404,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
5491,
12,
2890,
16,
529,
16,
22187,
16,
74,
896,
16,
9982,
4672,
9163,
2315,
326,
31730,
632,
891,
508,
30,
1544,
632,
891,
12445,
30,
10980,
12445,
475,
261,
20,
317,
404,
13,
... |
except: | except TypeError: | def _an_element_impl(self): """ Returns an arbitrary element of a free module. | 7f8f223f948e12c9172b086452a98d24651686d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/7f8f223f948e12c9172b086452a98d24651686d8/free_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
304,
67,
2956,
67,
11299,
12,
2890,
4672,
3536,
2860,
392,
11078,
930,
434,
279,
4843,
1605,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
304,
67,
2956,
67,
11299,
12,
2890,
4672,
3536,
2860,
392,
11078,
930,
434,
279,
4843,
1605,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
transform_cmd = "xsltproc -v -o %s %s %s" % (self.html_file, self.xsl_file, self.xml_file) | transform_cmd = "xsltproc -o %s %s %s" % (self.html_file, self.xsl_file, self.xml_file) | def transform(self): transform_cmd = "xsltproc -v -o %s %s %s" % (self.html_file, self.xsl_file, self.xml_file) runCommand(transform_cmd) | 56d459e9f05bea1a6dd581ce0dcf014e4da8a175 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12088/56d459e9f05bea1a6dd581ce0dcf014e4da8a175/pretty_gip_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
2890,
4672,
2510,
67,
4172,
273,
315,
92,
14414,
9381,
300,
83,
738,
87,
738,
87,
738,
87,
6,
738,
261,
2890,
18,
2620,
67,
768,
16,
365,
18,
30903,
67,
768,
16,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
2890,
4672,
2510,
67,
4172,
273,
315,
92,
14414,
9381,
300,
83,
738,
87,
738,
87,
738,
87,
6,
738,
261,
2890,
18,
2620,
67,
768,
16,
365,
18,
30903,
67,
768,
16,
365,
18,... |
if self.dictOrigin['Program'] == "hyp2000" and \ 'SsynthWeight' in dict: | if 'SsynthWeight' in dict: | def dicts2XML(self): """ Returns information of all dictionaries as xml file """ xml = Element("event") Sub(Sub(xml, "event_id"), "value").text = self.dictEvent['xmlEventID'] event_type = Sub(xml, "event_type") Sub(event_type, "value").text = "manual" Sub(event_type, "user").text = self.username Sub(event_type, "publi... | 203bac7e5a7142b3cafbb4409d2dad68e568d611 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/203bac7e5a7142b3cafbb4409d2dad68e568d611/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15838,
22,
4201,
12,
2890,
4672,
3536,
2860,
1779,
434,
777,
16176,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
67,
350,
6,
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,
15838,
22,
4201,
12,
2890,
4672,
3536,
2860,
1779,
434,
777,
16176,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
67,
350,
6,
3... |
tags, notag_only = self.intended_tags | tags, notag_only = self.get_selected_tags() | def on_colorchooser_activate(self, widget): #TODO: Color chooser should be refactorized in its own class. Well, in #fact we should have a TagPropertiesEditor (like for project) Also, #color change should be immediate. There's no reason for a Ok/Cancel dialog = gtk.ColorSelectionDialog('Choose color') colorsel = dialog.... | bfe6d5b75538050c23bfc2e0d6b76f4cf341af5d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/bfe6d5b75538050c23bfc2e0d6b76f4cf341af5d/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3266,
2599,
13164,
67,
10014,
12,
2890,
16,
3604,
4672,
468,
6241,
30,
5563,
5011,
13164,
1410,
506,
26627,
1235,
316,
2097,
4953,
667,
18,
678,
1165,
16,
316,
468,
3493,
732,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3266,
2599,
13164,
67,
10014,
12,
2890,
16,
3604,
4672,
468,
6241,
30,
5563,
5011,
13164,
1410,
506,
26627,
1235,
316,
2097,
4953,
667,
18,
678,
1165,
16,
316,
468,
3493,
732,
... |
dprint(MacroFS.macros) | def unpackVersion1(self, data): macros, recent = data MacroFS.macros.update(macros) dprint(MacroFS.macros) RecentMacros.setStorage(recent) | d77726ef8abb406e3169b9a46422cfcaff76a425 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/d77726ef8abb406e3169b9a46422cfcaff76a425/macro.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
1444,
21,
12,
2890,
16,
501,
4672,
24302,
16,
8399,
273,
501,
31203,
4931,
18,
5821,
6973,
18,
2725,
12,
5821,
6973,
13,
225,
868,
2998,
9990,
6973,
18,
542,
3245,
12,
20872,
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,
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,
6167,
1444,
21,
12,
2890,
16,
501,
4672,
24302,
16,
8399,
273,
501,
31203,
4931,
18,
5821,
6973,
18,
2725,
12,
5821,
6973,
13,
225,
868,
2998,
9990,
6973,
18,
542,
3245,
12,
20872,
13,... | |
def handle_error (self): | def handle_error(self): | def handle_error (self): nil, t, v, tbinfo = compact_traceback() | f7eb0d3f501f2e379b8719bda476d318d1e79160 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f7eb0d3f501f2e379b8719bda476d318d1e79160/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1636,
12,
2890,
4672,
515,
16,
268,
16,
331,
16,
8739,
1376,
273,
6739,
67,
21696,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1636,
12,
2890,
4672,
515,
16,
268,
16,
331,
16,
8739,
1376,
273,
6739,
67,
21696,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
_("activity"): sorting.instance_activity, | def instances(instances): return NamedPager('instances', instances, tiles.instance.row, sorts={_("oldest"): sorting.entity_oldest, _("newest"): sorting.entity_newest, _("activity"): sorting.instance_activity, _("name"): sorting.delegateable_label}, default_sort=sorting.instance_activity) | f5d74e26dc7d5cc9c0cba31aa6def4c55748b8e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/f5d74e26dc7d5cc9c0cba31aa6def4c55748b8e1/pager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3884,
12,
10162,
4672,
327,
9796,
19115,
2668,
10162,
2187,
3884,
16,
12568,
18,
1336,
18,
492,
16,
18524,
5899,
67,
2932,
1673,
395,
6,
4672,
9602,
18,
1096,
67,
1673,
395,
16,
389,
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,
3884,
12,
10162,
4672,
327,
9796,
19115,
2668,
10162,
2187,
3884,
16,
12568,
18,
1336,
18,
492,
16,
18524,
5899,
67,
2932,
1673,
395,
6,
4672,
9602,
18,
1096,
67,
1673,
395,
16,
389,
2... | |
raise UserError, self.gettext(message) handler_class = self.get_handler_class(class_id) | return context.come_back(message) handler_class = get_object_class(class_id) | def new_resource(self, context): class_id = context.get_form_value('class_id') name = context.get_form_value('name') title = context.get_form_value('dc:title') | ec2f0dfc13322a39ff4dc6d7aa9b7b558a8f7d42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/ec2f0dfc13322a39ff4dc6d7aa9b7b558a8f7d42/Folder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
3146,
12,
2890,
16,
819,
4672,
667,
67,
350,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
1106,
67,
350,
6134,
508,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
529,
6134,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
3146,
12,
2890,
16,
819,
4672,
667,
67,
350,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
1106,
67,
350,
6134,
508,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
529,
6134,
2... |
result = urllib.parse.quote_plus(quote_by_default, safe=quote_by_default) | result = urllib.parse.quote_plus(quote_by_default, safe=quote_by_default) | def test_safe(self): # Test setting 'safe' parameter does what it should do quote_by_default = "<>" result = urllib.parse.quote(quote_by_default, safe=quote_by_default) self.assertEqual(quote_by_default, result, "using quote(): %r != %r" % (quote_by_default, result)) result = urllib.parse.quote_plus(quote_by_default, s... | bd87fd2ff11ac5fb522b0d7f9e61c8f7d63fc3d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/bd87fd2ff11ac5fb522b0d7f9e61c8f7d63fc3d5/test_urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4626,
12,
2890,
4672,
468,
7766,
3637,
296,
4626,
11,
1569,
1552,
4121,
518,
1410,
741,
3862,
67,
1637,
67,
1886,
273,
3532,
2984,
563,
273,
11527,
18,
2670,
18,
6889,
12,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4626,
12,
2890,
4672,
468,
7766,
3637,
296,
4626,
11,
1569,
1552,
4121,
518,
1410,
741,
3862,
67,
1637,
67,
1886,
273,
3532,
2984,
563,
273,
11527,
18,
2670,
18,
6889,
12,
68... |
ids2 = obj.pool.get(self._obj).search(cr, user, [(self._fields_id, 'in', ids)], limit=self._limit) | ids2 = obj.pool.get(self._obj).search(cr, user, [(self._fields_id, 'in', ids)], limit=self._limit, context=context) | def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None): if not context: context = {} if not values: values = {} res = {} for id in ids: res[id] = [] ids2 = obj.pool.get(self._obj).search(cr, user, [(self._fields_id, 'in', ids)], limit=self._limit) for r in obj.pool.get(self._obj)._read_flat(c... | 88085a77d4513c87fbdbb6dcacdbb382be913662 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/88085a77d4513c87fbdbb6dcacdbb382be913662/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
4422,
16,
1081,
16,
3258,
16,
508,
16,
729,
33,
7036,
16,
1384,
33,
20,
16,
819,
33,
7036,
16,
924,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4422,
16,
1081,
16,
3258,
16,
508,
16,
729,
33,
7036,
16,
1384,
33,
20,
16,
819,
33,
7036,
16,
924,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
... |
t = ns + sample._type | t = ns + str(sample._type) | def dump_list(self, obj, tag, typed = 1, ns_map = {}): if Config.debug: print "In dump_list.", "obj=", obj tag = tag or self.gentag() tag = toXMLname(tag) # convert from SOAP 1.2 XML name encoding | debc21c8553d79fe54df587093391551e5247ca6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/debc21c8553d79fe54df587093391551e5247ca6/SOAPBuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
1098,
12,
2890,
16,
1081,
16,
1047,
16,
9092,
273,
404,
16,
3153,
67,
1458,
273,
2618,
4672,
309,
1903,
18,
4148,
30,
1172,
315,
382,
4657,
67,
1098,
1199,
16,
315,
2603,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
1098,
12,
2890,
16,
1081,
16,
1047,
16,
9092,
273,
404,
16,
3153,
67,
1458,
273,
2618,
4672,
309,
1903,
18,
4148,
30,
1172,
315,
382,
4657,
67,
1098,
1199,
16,
315,
2603,
1... |
if makeBaseUnit(self, unit): | if self.makeBaseUnit(unit): | def makeBaseUnits(self): changed = False for unit in self.units.keys(): if makeBaseUnit(self, unit): changed = True break if changed: self.makeBaseUnits() return changed | 718f91cba069ab291997649266cc495656908c6d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8093/718f91cba069ab291997649266cc495656908c6d/Number.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
2171,
7537,
12,
2890,
4672,
3550,
273,
1083,
364,
2836,
316,
365,
18,
7705,
18,
2452,
13332,
309,
365,
18,
6540,
2171,
2802,
12,
4873,
4672,
3550,
273,
1053,
898,
309,
3550,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
2171,
7537,
12,
2890,
4672,
3550,
273,
1083,
364,
2836,
316,
365,
18,
7705,
18,
2452,
13332,
309,
365,
18,
6540,
2171,
2802,
12,
4873,
4672,
3550,
273,
1053,
898,
309,
3550,
30,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.