rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
self.add_argument('--page-size', metavar='WxH', dest='page_size', action='store', type=size, default=None, help='page size') | self.add_argument('--page-size', metavar='WxH', dest='page_size', action='store', type=size, default=None, help='page size (in pixels)') | def size(s): return map(int, s.split('x', 1)) | 99fcd4fa0a7e0c967b5be778338332aeaecbdd12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3685/99fcd4fa0a7e0c967b5be778338332aeaecbdd12/_hocr2djvused.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
963,
12,
87,
4672,
327,
852,
12,
474,
16,
272,
18,
4939,
2668,
92,
2187,
404,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
963,
12,
87,
4672,
327,
852,
12,
474,
16,
272,
18,
4939,
2668,
92,
2187,
404,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
req.hdf['log.changes'] = _get_changes(self.env, self.db, repos, [i['rev'] for i in info], full_messages, req) rss_href = self.env.href.log(path, rev=rev, format='rss') add_link(req, 'alternate', rss_href, 'RSS Feed', 'application/rss+xml', 'rss') if req.args.get('format') == 'rss': | changes = _get_changes(self.env, self.db, repos, [i['rev'] for i in info], full_messages, req, format == 'changelog') if format == 'rss': for cs in changes.values(): cs['message'] = util.escape(cs['message']) elif format == 'changelog': for cs in changes.values(): cs['message'] = '\n'.join(['\t' + m for m in cs['messa... | def add_page_link(what, page): args = { 'rev': rev, 'log_mode': log_mode, 'limit': limit, 'page': page, 'pages': urllib.quote_plus(' '.join(pages)), } if full_messages: args['full_messages'] = full_messages add_link(req, what, self.env.href.log(path, **args), 'Revision Log (Page %d)' % (page)) | 2182becb6f1be10d757e91db6ccf786f6c981c1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/2182becb6f1be10d757e91db6ccf786f6c981c1d/Browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2433,
67,
1232,
12,
23770,
16,
1363,
4672,
833,
273,
288,
296,
9083,
4278,
5588,
16,
296,
1330,
67,
3188,
4278,
613,
67,
3188,
16,
296,
3595,
4278,
1800,
16,
296,
2433,
4278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2433,
67,
1232,
12,
23770,
16,
1363,
4672,
833,
273,
288,
296,
9083,
4278,
5588,
16,
296,
1330,
67,
3188,
4278,
613,
67,
3188,
16,
296,
3595,
4278,
1800,
16,
296,
2433,
4278,
... |
except UnpicklingError: | except (UnpicklingError, AttributeError): | def handler(req): """ The hisparc upload handler. This handler is called by apache whenever someone requests http://peene.nikhef.nl/hisparc/*. First, we generate a dictionary of POSTed variables and try to read out the station_id, password, checksum and data. When we do a req.read(), we already read out the entire da... | aaae79cba487a7ead4425a7a2fb3e46f379048f4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11539/aaae79cba487a7ead4425a7a2fb3e46f379048f4/handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1838,
12,
3658,
4672,
3536,
1021,
18423,
1065,
71,
3617,
1838,
18,
225,
1220,
1838,
353,
2566,
635,
12291,
17334,
18626,
3285,
1062,
2207,
347,
4009,
18,
82,
1766,
580,
74,
18,
14039,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1838,
12,
3658,
4672,
3536,
1021,
18423,
1065,
71,
3617,
1838,
18,
225,
1220,
1838,
353,
2566,
635,
12291,
17334,
18626,
3285,
1062,
2207,
347,
4009,
18,
82,
1766,
580,
74,
18,
14039,
19... |
varBinds.append((snmpTrapOid.name, v2c.Null())) | varBinds.append( (snmpTrapOid.name + (0,), v2c.ObjectIdentifier(snmpTrapVal.name)) ) | def sendNotification( self, snmpEngine, notificationTarget, notificationName, additionalVarBinds=None, contextName='' ): # 3.3 ( notifyTag, notifyType ) = config.getNotificationInfo( snmpEngine, notificationTarget ) contextMibInstrumCtl = self.__context.getMibInstrum( contextName ) for targetAddrName in config.getTarge... | beac2b8a85446ea9e67020370cf82edea825ab65 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/beac2b8a85446ea9e67020370cf82edea825ab65/ntforg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4386,
12,
365,
16,
15366,
4410,
16,
3851,
2326,
16,
3851,
461,
16,
3312,
1537,
17856,
33,
7036,
16,
819,
461,
2218,
11,
262,
30,
468,
890,
18,
23,
261,
5066,
1805,
16,
5066,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4386,
12,
365,
16,
15366,
4410,
16,
3851,
2326,
16,
3851,
461,
16,
3312,
1537,
17856,
33,
7036,
16,
819,
461,
2218,
11,
262,
30,
468,
890,
18,
23,
261,
5066,
1805,
16,
5066,
55... |
print "__long__:", args | def __long__(self, *args): print "__long__:", args return 1L | d88a7f2a50eed4a8ee26d87c1ff250611b0feaed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d88a7f2a50eed4a8ee26d87c1ff250611b0feaed/test_class.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5748,
972,
12,
2890,
16,
380,
1968,
4672,
327,
404,
48,
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,
1001,
5748,
972,
12,
2890,
16,
380,
1968,
4672,
327,
404,
48,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
self.ResultFileList = self.DestFileDatabase["Static-Library-File"] | if "Static-Library-File" in self.DestFileDatabase: self.ResultFileList = self.DestFileDatabase["Static-Library-File"] | def GenerateModuleMakefile(self, File=None, MakeType=gMakeType): if MakeType in self.ModuleInfo.CustomMakefile and self.ModuleInfo.CustomMakefile[MakeType] != "": return self.GenerateCustomBuildMakefile(File, MakeType) | 77be67540d2792ae0df0dcf8cd565f60ee23bb78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/77be67540d2792ae0df0dcf8cd565f60ee23bb78/GenMake.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
3120,
6464,
768,
12,
2890,
16,
1387,
33,
7036,
16,
4344,
559,
33,
75,
6464,
559,
4672,
309,
4344,
559,
316,
365,
18,
3120,
966,
18,
3802,
6464,
768,
471,
365,
18,
3120,
966,
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,
6654,
3120,
6464,
768,
12,
2890,
16,
1387,
33,
7036,
16,
4344,
559,
33,
75,
6464,
559,
4672,
309,
4344,
559,
316,
365,
18,
3120,
966,
18,
3802,
6464,
768,
471,
365,
18,
3120,
966,
18... |
Movepages(singlePage) | Movepages(singlePage, deletedPages) | def main(): categoryName = None singlePageTitle = [] referredPageTitle = None for arg in sys.argv[1:]: arg = wikipedia.argHandler(arg, 'movepages') if arg: if arg.startswith('-cat'): if len(arg) == 4: categoryName = wikipedia.input(u'Enter the category name:') else: categoryName = arg[5:] elif arg.startswith('-ref'): ... | b0e77841b519a9c2ae7adffc79976283a997da2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/b0e77841b519a9c2ae7adffc79976283a997da2d/movepages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3150,
461,
273,
599,
2202,
1964,
4247,
273,
5378,
29230,
1964,
4247,
273,
599,
225,
364,
1501,
316,
2589,
18,
19485,
63,
21,
30,
14542,
1501,
273,
21137,
18,
3175,
1503,
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,
2774,
13332,
3150,
461,
273,
599,
2202,
1964,
4247,
273,
5378,
29230,
1964,
4247,
273,
599,
225,
364,
1501,
316,
2589,
18,
19485,
63,
21,
30,
14542,
1501,
273,
21137,
18,
3175,
1503,
12,... |
self.op = (self._removeBridge, dart.label()) | self._op = (self._removeBridge, dart.label()) | def preRemoveBridge(self, dart): self.op = (self._removeBridge, dart.label()) return True | 242031941f5d1265da84d5257d9b193749300383 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/242031941f5d1265da84d5257d9b193749300383/maputils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
3288,
13691,
12,
2890,
16,
302,
485,
4672,
365,
6315,
556,
273,
261,
2890,
6315,
4479,
13691,
16,
302,
485,
18,
1925,
10756,
327,
1053,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
3288,
13691,
12,
2890,
16,
302,
485,
4672,
365,
6315,
556,
273,
261,
2890,
6315,
4479,
13691,
16,
302,
485,
18,
1925,
10756,
327,
1053,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
except: raise ValueError, "Argument gens (= %s) is not compatible " + \ "with base_ring (= %s)." % (gens, base_ring) | except TypeError: raise ValueError, "Argument gens (= %s) is not compatible "%gens + \ "with base_ring (= %s)."%base_ring | def span(self, gens, base_ring=None, check=True, already_echelonized=False): """ Return the R-span of the given list of gens, where R = base_ring. The default R is the base ring of self. Note that this span need not be a submodule of self, nor even of the ambient space. It must, however, be contained in the ambient ve... | 0bd1519589af29f6c0ed25b8ffeab166b3c23c02 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0bd1519589af29f6c0ed25b8ffeab166b3c23c02/free_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4548,
12,
2890,
16,
314,
773,
16,
1026,
67,
8022,
33,
7036,
16,
866,
33,
5510,
16,
1818,
67,
8987,
292,
265,
1235,
33,
8381,
4672,
3536,
2000,
326,
534,
17,
3969,
434,
326,
864,
666,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4548,
12,
2890,
16,
314,
773,
16,
1026,
67,
8022,
33,
7036,
16,
866,
33,
5510,
16,
1818,
67,
8987,
292,
265,
1235,
33,
8381,
4672,
3536,
2000,
326,
534,
17,
3969,
434,
326,
864,
666,... |
"""PanedWindow - Multi-pane container widget. Panes are resizable. | """PanedWindow - Multi-pane container widget allows the user to interactively manipulate the sizes of several panes. The panes can be arranged either vertically or horizontally.The user changes the sizes of the panes by dragging the resize handle between two panes. | def enable(self, name): self.tk.call(self._w, 'enable', name) | b7b32601281f25ffed50f8187c78a3802fa14039 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b7b32601281f25ffed50f8187c78a3802fa14039/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
12,
2890,
16,
508,
4672,
365,
18,
16099,
18,
1991,
12,
2890,
6315,
91,
16,
296,
7589,
2187,
508,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
12,
2890,
16,
508,
4672,
365,
18,
16099,
18,
1991,
12,
2890,
6315,
91,
16,
296,
7589,
2187,
508,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.initScene() curAnim = avg.LinearAnim(self.__node, "x", 300, 0, 100) self.testAnimType(curAnim, "testLinearAnimC") self.initScene() | self.initScene() sameNode = Player.getElementByID("test") | def on2Start(): self.__onStopBeforeOnStart = self.__onStopCalled | 89a510197f330df72cca16279eae91e8805fb70c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7300/89a510197f330df72cca16279eae91e8805fb70c/AnimTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
22,
1685,
13332,
365,
16186,
265,
4947,
4649,
1398,
1685,
273,
365,
16186,
265,
4947,
8185,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
22,
1685,
13332,
365,
16186,
265,
4947,
4649,
1398,
1685,
273,
365,
16186,
265,
4947,
8185,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
disc("""Simple things are done simply; we use <b>$reportlab.pdfbase.ttfonts.TTFont<$</b> to create a true type | disc("""Simple things are done simply; we use <b>$reportlab.pdfbase.ttfonts.TTFont$</b> to create a true type | def findFontName(path): "Extract a font name from an AFM file." f = open(path) found = 0 while not found: line = f.readline()[:-1] if not found and line[:16] == 'StartCharMetrics': raise FontNameNotFoundError, path if line[:8] == 'FontName': fontName = line[9:] found = 1 return fontName | 0f04a2e09f2c5d801966c0a82025a5c40cadc1e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/0f04a2e09f2c5d801966c0a82025a5c40cadc1e2/ch2a_fonts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
5711,
461,
12,
803,
4672,
315,
4976,
279,
3512,
508,
628,
392,
10888,
49,
585,
1199,
225,
284,
273,
1696,
12,
803,
13,
225,
1392,
273,
374,
1323,
486,
1392,
30,
980,
273,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
5711,
461,
12,
803,
4672,
315,
4976,
279,
3512,
508,
628,
392,
10888,
49,
585,
1199,
225,
284,
273,
1696,
12,
803,
13,
225,
1392,
273,
374,
1323,
486,
1392,
30,
980,
273,
284,
... |
'WHERE ' + self.origin + ' = %s ' \ 'AND ' + self.target + ' IN (' + \ | 'WHERE "' + self.origin + '" = %s ' \ 'AND "' + self.target + '" IN (' + \ | def set(self, cursor, obj, obj_id, name, values, user=None, context=None): if not values: return obj = obj.pool.get(self._obj) for act in values: if act[0] == 'create': idnew = obj.create(cursor, user, act[1], context=context) cursor.execute('INSERT INTO "' + self._rel + '" ' \ '(' + self.origin + ', ' + self.target + ... | 2f185559132624b3c5a8bac139a4da19b7a0108c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/2f185559132624b3c5a8bac139a4da19b7a0108c/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
3347,
16,
1081,
16,
1081,
67,
350,
16,
508,
16,
924,
16,
729,
33,
7036,
16,
819,
33,
7036,
4672,
309,
486,
924,
30,
327,
1081,
273,
1081,
18,
6011,
18,
588,
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,
444,
12,
2890,
16,
3347,
16,
1081,
16,
1081,
67,
350,
16,
508,
16,
924,
16,
729,
33,
7036,
16,
819,
33,
7036,
4672,
309,
486,
924,
30,
327,
1081,
273,
1081,
18,
6011,
18,
588,
12,
... |
'szl':(CAT, u"Wyrůžńůne artikle"), | 'szl':(CAT, u"Wyrůżńůne artikle"), | def BACK(site,name): name = site.namespace(10) + ':' + name p=wikipedia.Page(site, name) return [page for page in p.getReferences(follow_redirects = False)] | 7696652d8fe28dea8c886308578a3771b6c7cfe9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/7696652d8fe28dea8c886308578a3771b6c7cfe9/featured.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15842,
12,
4256,
16,
529,
4672,
508,
273,
2834,
18,
4937,
12,
2163,
13,
397,
3921,
397,
508,
293,
33,
11999,
13744,
18,
1964,
12,
4256,
16,
508,
13,
327,
306,
2433,
364,
1363,
316,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15842,
12,
4256,
16,
529,
4672,
508,
273,
2834,
18,
4937,
12,
2163,
13,
397,
3921,
397,
508,
293,
33,
11999,
13744,
18,
1964,
12,
4256,
16,
508,
13,
327,
306,
2433,
364,
1363,
316,
2... |
print 'send update', c | log.info('send update to %s' % c) | def send_update(self): # send and updated list to the clients ret = [] for r in self.recordings: ret.append(r.short_list()) for c in self.clients: print 'send update', c self.mbus_instance.send_event(c, 'record.list.update', ret) | 9afdd7fc7ffab852f610d1710150461565095aa5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/9afdd7fc7ffab852f610d1710150461565095aa5/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
2725,
12,
2890,
4672,
468,
1366,
471,
3526,
666,
358,
326,
7712,
325,
273,
5378,
364,
436,
316,
365,
18,
3366,
899,
30,
325,
18,
6923,
12,
86,
18,
6620,
67,
1098,
10756,
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,
1366,
67,
2725,
12,
2890,
4672,
468,
1366,
471,
3526,
666,
358,
326,
7712,
325,
273,
5378,
364,
436,
316,
365,
18,
3366,
899,
30,
325,
18,
6923,
12,
86,
18,
6620,
67,
1098,
10756,
36... |
(sum(l.product_uom_qty*l.price_unit)/sum(l.product_uom_qty/u.factor)*count(l.product_id))::decimal(16,2) as price_average, | def init(self, cr): tools.drop_view_if_exists(cr, 'sale_report') cr.execute(""" create or replace view sale_report as ( select el.*, -- (select count(1) from sale_order_line where order_id = s.id) as nbr, (select 1) as nbr, s.date_order as date, s.date_confirm as date_confirm, to_char(s.date_order, 'YYYY') as year, to_... | 81a13374c7f68a790d69445bed428bc0a61d37d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/81a13374c7f68a790d69445bed428bc0a61d37d1/sale_report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
8513,
18,
7285,
67,
1945,
67,
430,
67,
1808,
12,
3353,
16,
296,
87,
5349,
67,
6006,
6134,
4422,
18,
8837,
2932,
3660,
752,
578,
1453,
1476,
272,
5349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
8513,
18,
7285,
67,
1945,
67,
430,
67,
1808,
12,
3353,
16,
296,
87,
5349,
67,
6006,
6134,
4422,
18,
8837,
2932,
3660,
752,
578,
1453,
1476,
272,
5349,
... | |
vectorPlugChild = vectorPlug.child( i ) cmds.connectControl( self.__fields[ fieldNum ], vectorPlugChild.name() ) self._addPopupMenu( parentUI = self.__fields[fieldNum], attributeName = vectorPlugChild.name() ) | vectorPlugChild = vectorPlug.child( i ) vectorPlugChildName = self.nodeName() + "." + vectorPlugChild.partialName() cmds.connectControl( self.__fields[ fieldNum ], vectorPlugChildName ) self._addPopupMenu( parentUI = self.__fields[fieldNum], attributeName = vectorPlugChildName ) | def replace( self, node, parameter ) : ParameterUI.replace( self, node, parameter ) if len(self.__fields) == self.__dim * 2: fieldNum = 0 plug = self.plug() for childIndex in range( 0, 2 ) : vectorPlug = plug.child( childIndex ) for i in range( 0, self.__dim ) : vectorPlugChild = vectorPlug.child( i ) cmds.connect... | 312604e0f337cb8e3c0059ec3e33d810869eb5dd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/312604e0f337cb8e3c0059ec3e33d810869eb5dd/ParameterUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
12,
365,
16,
756,
16,
1569,
262,
294,
225,
5498,
5370,
18,
2079,
12,
365,
16,
756,
16,
1569,
262,
225,
309,
562,
12,
2890,
16186,
2821,
13,
422,
365,
16186,
3509,
380,
576,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
12,
365,
16,
756,
16,
1569,
262,
294,
225,
5498,
5370,
18,
2079,
12,
365,
16,
756,
16,
1569,
262,
225,
309,
562,
12,
2890,
16186,
2821,
13,
422,
365,
16186,
3509,
380,
576,
30,... |
fp.write(config) | fp.write(etree.tostring(doc)) | def _writeXML(self, dbconn): doc = etree.Element('Configuration') upnpnode = doc.makeelement('UPnP') doc.append(upnpnode) | f66744df23b8306ad6e45a94f2ea74e8eeb68f8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/f66744df23b8306ad6e45a94f2ea74e8eeb68f8f/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
4201,
12,
2890,
16,
1319,
4646,
4672,
997,
273,
12031,
18,
1046,
2668,
1750,
6134,
731,
6782,
2159,
273,
997,
18,
6540,
2956,
2668,
3079,
82,
52,
6134,
997,
18,
6923,
12,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
4201,
12,
2890,
16,
1319,
4646,
4672,
997,
273,
12031,
18,
1046,
2668,
1750,
6134,
731,
6782,
2159,
273,
997,
18,
6540,
2956,
2668,
3079,
82,
52,
6134,
997,
18,
6923,
12,
41... |
self.__send(pack('!i', len(cpwd)+5) + cpwd + '\0') | self.__send(_pack('!i', len(cpwd)+5) + cpwd + '\0') | def _pkt_R(self): # # Startup Response # code = unpack('!i', self.__read_bytes(4))[0] if code == 0: self.__authenticated = 1 #print 'Authenticated!' elif code == 1: raise InterfaceError('Kerberos V4 authentication is required by server, but not supported by this client') elif code == 2: raise InterfaceError('Kerberos V... | 15a18213714dad035ac4b8cb3da491223392d5b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1238/15a18213714dad035ac4b8cb3da491223392d5b1/bpgsql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5465,
88,
67,
54,
12,
2890,
4672,
468,
468,
3603,
416,
2306,
468,
981,
273,
6167,
2668,
5,
77,
2187,
365,
16186,
896,
67,
3890,
12,
24,
3719,
63,
20,
65,
309,
981,
422,
374,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5465,
88,
67,
54,
12,
2890,
4672,
468,
468,
3603,
416,
2306,
468,
981,
273,
6167,
2668,
5,
77,
2187,
365,
16186,
896,
67,
3890,
12,
24,
3719,
63,
20,
65,
309,
981,
422,
374,
3... |
self.tk.call(self._w, 'dropsite', 'set', index) | self.tk.call(self._w, 'dropsite', 'set', index) | def dropsite_set(self, index): | 22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29535,
1137,
67,
542,
12,
2890,
16,
770,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29535,
1137,
67,
542,
12,
2890,
16,
770,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assert ap == u'/*[namespace-uri()="http://bax.com" and local-name()="foo"][1]/*[namespace-uri()="http://bax.com" and local-name()="baz"][1]' | assert ap == u'/*[namespace-uri()="http://bax.com" and local-name()="foo"]/*[namespace-uri()="http://bax.com" and local-name()="baz"]' | def test_abspath_with_default_ns(): doc = parse(XML2) baz = doc.xml_first_child.xml_first_child ap = abspath(baz) assert ap == u'/*[namespace-uri()="http://bax.com" and local-name()="foo"][1]/*[namespace-uri()="http://bax.com" and local-name()="baz"][1]' assert [baz] == list(doc.xml_select(ap)) ap = abspath(baz.xml_fol... | a2e357919857ad41e629083b96743665e09b2981 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14078/a2e357919857ad41e629083b96743665e09b2981/test_abs_path.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5113,
803,
67,
1918,
67,
1886,
67,
2387,
13332,
997,
273,
1109,
12,
4201,
22,
13,
29025,
273,
997,
18,
2902,
67,
3645,
67,
3624,
18,
2902,
67,
3645,
67,
3624,
513,
273,
948... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5113,
803,
67,
1918,
67,
1886,
67,
2387,
13332,
997,
273,
1109,
12,
4201,
22,
13,
29025,
273,
997,
18,
2902,
67,
3645,
67,
3624,
18,
2902,
67,
3645,
67,
3624,
513,
273,
948... |
attrs = dict( h.attributes.items() ) | attrs = Attrs( h ) | def handle_layout_master_set(self, set): for i in set.getElementsByTagName("fo:simple-page-master"): attrs = dict( i.attributes.items() ) self.fo_simple_page_master( attrs ) ## print "###", attrs['master-name'] # Get values for various page regions for region in i.childNodes: if region.nodeType == region.TEXT_NODE: co... | a2277304bbb73a2085be6a05d6ee61af69cb0cf8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2494/a2277304bbb73a2085be6a05d6ee61af69cb0cf8/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
6741,
67,
7525,
67,
542,
12,
2890,
16,
444,
4672,
364,
277,
316,
444,
18,
588,
3471,
10401,
2932,
617,
30,
9647,
17,
2433,
17,
7525,
6,
4672,
3422,
273,
2065,
12,
277,
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,
1640,
67,
6741,
67,
7525,
67,
542,
12,
2890,
16,
444,
4672,
364,
277,
316,
444,
18,
588,
3471,
10401,
2932,
617,
30,
9647,
17,
2433,
17,
7525,
6,
4672,
3422,
273,
2065,
12,
277,
18,
... |
for media_obj in media_obj_list: media_size = media_obj.size media_link = self.channel.url + self.media_url_dir + media_obj.file_name | for media in media_list: media_link = self.channel.url + self.media_url_dir + media.file_name | def update_rss(self, media_obj_list, rss_file): i =0 rss_item_list = [] if not os.path.exists(self.rss_dir): os.makedirs(self.rss_dir) if len(media_obj_list) == 1: sub_title = '(currently playing)' else: sub_title = '(playlist)' for media_obj in media_obj_list: media_size = media_obj.size media_link = self.channel.ur... | 787fef0709b19aa8df299b667ccf69a2ca01c4b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/787fef0709b19aa8df299b667ccf69a2ca01c4b6/deefuzz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
25151,
12,
2890,
16,
3539,
67,
2603,
67,
1098,
16,
18817,
67,
768,
4672,
277,
273,
20,
18817,
67,
1726,
67,
1098,
273,
5378,
309,
486,
1140,
18,
803,
18,
1808,
12,
2890,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
25151,
12,
2890,
16,
3539,
67,
2603,
67,
1098,
16,
18817,
67,
768,
4672,
277,
273,
20,
18817,
67,
1726,
67,
1098,
273,
5378,
309,
486,
1140,
18,
803,
18,
1808,
12,
2890,
18... |
"""Check, if write access is allowed, otherwise raise DAVError.""" | """Raise DAVError(HTTP_LOCKED), if res is locked. If depth=='infinity', we also raise when child resources are locked. """ | def _checkWritePermission(self, res, depth, environ): """Check, if write access is allowed, otherwise raise DAVError.""" lockMan = self._davProvider.lockManager if lockMan is None or res is None: return True | 6fcd0e4411764f3334770805a25ac575e92ad9b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/6fcd0e4411764f3334770805a25ac575e92ad9b9/request_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
3067,
5041,
12,
2890,
16,
400,
16,
3598,
16,
5473,
4672,
3536,
30570,
463,
5856,
668,
12,
3693,
67,
6589,
2056,
3631,
309,
400,
353,
8586,
18,
225,
971,
3598,
18920,
267,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
3067,
5041,
12,
2890,
16,
400,
16,
3598,
16,
5473,
4672,
3536,
30570,
463,
5856,
668,
12,
3693,
67,
6589,
2056,
3631,
309,
400,
353,
8586,
18,
225,
971,
3598,
18920,
267,
78... |
self.parser.setFeature(xml.sax.handler.feature_namespaces,1) | self.parser.setFeature(xml.sax.handler.feature_namespaces, 1) | def reset(self): self.pulldom = PullDOM() # This content handler relies on namespace support self.parser.setFeature(xml.sax.handler.feature_namespaces,1) self.parser.setContentHandler(self.pulldom) | 87e48ef0a12be7fca2480ca8f7557916899a9bb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/87e48ef0a12be7fca2480ca8f7557916899a9bb6/pulldom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
18,
13469,
9859,
273,
14899,
8168,
1435,
468,
1220,
913,
1838,
14719,
281,
603,
1981,
2865,
365,
18,
4288,
18,
542,
4595,
12,
2902,
18,
87,
651,
18,
4176,
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,
2715,
12,
2890,
4672,
365,
18,
13469,
9859,
273,
14899,
8168,
1435,
468,
1220,
913,
1838,
14719,
281,
603,
1981,
2865,
365,
18,
4288,
18,
542,
4595,
12,
2902,
18,
87,
651,
18,
4176,
18... |
'''for i in range(len(glX)): | for i in range(len(glX)): | def newEKF(self, glX): gX = glX '''for i in range(len(glX)): if(self.signed[i] > 0): | 34d4f09b039e70487059f0c0f57fcf51fdda7ac3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14739/34d4f09b039e70487059f0c0f57fcf51fdda7ac3/cwru_ekf_kalibrater_thrun2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
11325,
42,
12,
2890,
16,
5118,
60,
4672,
314,
60,
273,
5118,
60,
364,
277,
316,
1048,
12,
1897,
12,
7043,
60,
3719,
30,
309,
12,
2890,
18,
5679,
63,
77,
65,
405,
374,
4672,
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,
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,
394,
11325,
42,
12,
2890,
16,
5118,
60,
4672,
314,
60,
273,
5118,
60,
364,
277,
316,
1048,
12,
1897,
12,
7043,
60,
3719,
30,
309,
12,
2890,
18,
5679,
63,
77,
65,
405,
374,
4672,
2,... |
import sys | if debug_stderr: sys.stderr = debug_stderr | def __init__(self): self.preffilepath = ":Python:PythonIDE preferences" Wapplication.Application.__init__(self, 'Pide') from Carbon import AE from Carbon import AppleEvents AE.AEInstallEventHandler(AppleEvents.kCoreEventClass, AppleEvents.kAEOpenApplication, self.ignoreevent) AE.AEInstallEventHandler(AppleEvents.kCore... | 903ada48ccb8cf2b1e0ae6f853c7a0e197235dc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/903ada48ccb8cf2b1e0ae6f853c7a0e197235dc9/PythonIDEMain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
25724,
10561,
273,
6398,
15774,
30,
15774,
10385,
12750,
6,
678,
3685,
18,
3208,
16186,
2738,
972,
12,
2890,
16,
296,
52,
831,
6134,
628,
13353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
25724,
10561,
273,
6398,
15774,
30,
15774,
10385,
12750,
6,
678,
3685,
18,
3208,
16186,
2738,
972,
12,
2890,
16,
296,
52,
831,
6134,
628,
13353,... |
self.dbItem.beginChange() try: | try: if (info['status'] == 304): self.updated = True return self.dbItem.beginChange() | def updateIconCache (self, url, info): if info == None or (info['status'] != 304 and info['status'] != 200): self.errorCallback(url) return self.dbItem.beginChange() try: try: # Our cache is good. Hooray! if (info['status'] == 304): self.updated = True return | e8c7864bb546ddd367dc860c5eacea4a5fbb52c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/e8c7864bb546ddd367dc860c5eacea4a5fbb52c0/iconcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
5554,
1649,
261,
2890,
16,
880,
16,
1123,
4672,
309,
1123,
422,
599,
578,
261,
1376,
3292,
2327,
3546,
480,
27499,
471,
1123,
3292,
2327,
3546,
480,
4044,
4672,
365,
18,
1636,
2428... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5554,
1649,
261,
2890,
16,
880,
16,
1123,
4672,
309,
1123,
422,
599,
578,
261,
1376,
3292,
2327,
3546,
480,
27499,
471,
1123,
3292,
2327,
3546,
480,
4044,
4672,
365,
18,
1636,
2428... |
initOps = [initSex(sex=(Male, Female))], preOps = [parentsTagger()], | initOps = initSex(sex=(Male, Female)), duringOps = parentsTagger(), | def checkSexMode(ms): '''Check the assignment of sex to offspring''' simu = simulator( population(size=[40]), matingScheme=ms) simu.evolve(initOps = initSex(), gen=1) # return individual sex as a string return ''.join([ind.sexChar() for ind in simu.population(0).individuals()]) | 505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
55,
338,
2309,
12,
959,
4672,
9163,
1564,
326,
6661,
434,
19631,
358,
21174,
11638,
26418,
3142,
89,
273,
3142,
11775,
12,
11209,
12,
1467,
22850,
7132,
65,
3631,
312,
1776,
9321,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
55,
338,
2309,
12,
959,
4672,
9163,
1564,
326,
6661,
434,
19631,
358,
21174,
11638,
26418,
3142,
89,
273,
3142,
11775,
12,
11209,
12,
1467,
22850,
7132,
65,
3631,
312,
1776,
9321,
3... |
config.Write("SCClassLibraryPath",classLibPath) classLibPath_split = os.path.split(classLibPath) classLibParentFolder = classLibPath_split[0] os.chdir(classLibParentFolder) return True | config.Write("SCClassLibraryPath",classLibPath) classLibPath_split = os.path.split(classLibPath) classLibParentFolder = classLibPath_split[0] os.chdir(classLibParentFolder) return True | def ChangeDirToSCClassLibraryFolder(self): # first, we check if the current working folder # contains an item called 'SCClassLibrary' curPath = os.getcwd() listOfFolders = os.listdir(curPath) | 875a686f4ba7b255a5449d87dbd4a5611f7ff5e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11200/875a686f4ba7b255a5449d87dbd4a5611f7ff5e5/Psycollider.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7576,
1621,
774,
2312,
797,
9313,
3899,
12,
2890,
4672,
468,
1122,
16,
732,
866,
309,
326,
783,
5960,
3009,
468,
1914,
392,
761,
2566,
296,
2312,
797,
9313,
11,
662,
743,
273,
1140,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7576,
1621,
774,
2312,
797,
9313,
3899,
12,
2890,
4672,
468,
1122,
16,
732,
866,
309,
326,
783,
5960,
3009,
468,
1914,
392,
761,
2566,
296,
2312,
797,
9313,
11,
662,
743,
273,
1140,
18... |
rotated.lstrip('0') or '0', self._exp) | shifted.lstrip('0') or '0', self._exp) | def shift(self, other, context=None): """Returns a shifted copy of self, value-of-other times.""" if context is None: context = getcontext() | 5a366cd11fbef3870deee51cae580eb892c5dee3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/5a366cd11fbef3870deee51cae580eb892c5dee3/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4654,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
279,
21340,
1610,
434,
365,
16,
460,
17,
792,
17,
3011,
4124,
12123,
309,
819,
353,
599,
30,
819,
273,
336,
2472,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4654,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
279,
21340,
1610,
434,
365,
16,
460,
17,
792,
17,
3011,
4124,
12123,
309,
819,
353,
599,
30,
819,
273,
336,
2472,
1435,
... |
return [], [], ['"'+self.pool.get(model_name)._table+'"'] | return None | def domain_get(self, cr, uid, model_name, mode='read', context=None): """ Retrieve the domain for some /model_name/. It will locate relevant rules (for uid != 1, aka admin), and put them together into an expression. Returns (where_clause, clause_params, tables) so that an SQL query can append the where_clause, feed it... | af8e96e02948d8fa4e9386e6d64da7f5368fdac3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/af8e96e02948d8fa4e9386e6d64da7f5368fdac3/ir_rule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2461,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
938,
67,
529,
16,
1965,
2218,
896,
2187,
819,
33,
7036,
4672,
3536,
10708,
326,
2461,
364,
2690,
342,
2284,
67,
529,
15865,
2597,
903,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2461,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
938,
67,
529,
16,
1965,
2218,
896,
2187,
819,
33,
7036,
4672,
3536,
10708,
326,
2461,
364,
2690,
342,
2284,
67,
529,
15865,
2597,
903,
... |
clipboard.set_text(translated_text) clipboard.store() | if guiflag: clipboard.set_text(translated_text) clipboard.store() if unicodeflag: translated_text = translated_text.encode("utf-8") | def translate(start_text, fromLang, toLang): try: ## Open the URL, parse it with regex, convert to UTF 8, and store string. translated_text = unquotehtml(re.search(r"<div id=result_box dir=\"ltr\">(.*?)</div>",urllib2.urlopen(urllib2.Request('http://www.google.com/translate_t?', 'text=%s&sl=%s&tl=%s' % (start_text, fr... | 9bc96e7105605d67a692ac91b354609dc5f17067 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9947/9bc96e7105605d67a692ac91b354609dc5f17067/traduisons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
1937,
67,
955,
16,
628,
7275,
16,
358,
7275,
4672,
775,
30,
7541,
225,
3502,
326,
1976,
16,
1109,
518,
598,
3936,
16,
1765,
358,
6380,
1725,
16,
471,
1707,
533,
18,
9955,
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,
4204,
12,
1937,
67,
955,
16,
628,
7275,
16,
358,
7275,
4672,
775,
30,
7541,
225,
3502,
326,
1976,
16,
1109,
518,
598,
3936,
16,
1765,
358,
6380,
1725,
16,
471,
1707,
533,
18,
9955,
6... |
read_old_catalogue(inddiscadd) | self.read_old_catalogue(inddiscadd) | def read_old_catalogue(self, base): head = base | 25f0ef7dc7411ab5a651cc7127ed79f5bcd54fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3059/25f0ef7dc7411ab5a651cc7127ed79f5bcd54fc3/ADF2INF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1673,
67,
7199,
344,
12,
2890,
16,
1026,
4672,
225,
910,
273,
1026,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1673,
67,
7199,
344,
12,
2890,
16,
1026,
4672,
225,
910,
273,
1026,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.make_archive(os.path.join(self.dist_dir, archive_basename), self.format, root_dir=self.bdist_dir) | pseudoinstall_root = os.path.join(self.dist_dir, archive_basename) if not self.relative: archive_root = self.bdist_dir else: if (self.distribution.has_ext_modules() and (install.install_base != install.install_platbase)): raise DistutilsPlatformError, \ ("can't make a dumb built distribution where " "base and platbase ... | def run (self): | 50399988d4fabdc2ef47c2033590dce0fe5d1206 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/50399988d4fabdc2ef47c2033590dce0fe5d1206/bdist_dumb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
html = "%d / %d " \ | html = "%d / %d " \ | def status_html(db, status_count, shade): """ status_count: dict mapping from status (integer key) to count eg. { 'GOOD' : 4, 'FAIL' : 1 } """ if 6 in status_count.keys(): html = "%d / %d " \ %(status_count[6],sum(status_count.values())) else: html = "%d / %d " % \ (0, sum(status_count.values())) tooltip = "" for stat... | f13346537c0f3c24102f845c1cbb267f4575599a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/f13346537c0f3c24102f845c1cbb267f4575599a/display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
67,
2620,
12,
1966,
16,
1267,
67,
1883,
16,
699,
2486,
4672,
3536,
1267,
67,
1883,
30,
2065,
2874,
628,
1267,
261,
7745,
498,
13,
358,
1056,
9130,
18,
288,
296,
16387,
1212,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
67,
2620,
12,
1966,
16,
1267,
67,
1883,
16,
699,
2486,
4672,
3536,
1267,
67,
1883,
30,
2065,
2874,
628,
1267,
261,
7745,
498,
13,
358,
1056,
9130,
18,
288,
296,
16387,
1212,
11,
... |
if self.type_system == 'lltype': assert self.get_callable(cfptr.value) == dup_lltypeimpl else: assert self.get_callable(cfptr.value) == os.dup | assert self.get_callable(cfptr.value).__name__.startswith('dup') | def fn(fd): return os.dup(fd) | bc25f29e2f8660485e69259e850bdacb9c1fcaf2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/bc25f29e2f8660485e69259e850bdacb9c1fcaf2/test_rbuiltin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2295,
12,
8313,
4672,
327,
1140,
18,
26427,
12,
8313,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2295,
12,
8313,
4672,
327,
1140,
18,
26427,
12,
8313,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
rendered = tag_('changed from %(old)s to %(new)s', | rendered = tag_("changed from %(old)s to %(new)s", | def _render_property_diff(self, req, ticket, field, old, new, resource_new=None): rendered = None # per type special rendering of diffs type_ = None for f in ticket.fields: if f['name'] == field: type_ = f['type'] break if type_ == 'checkbox': rendered = new == '1' and _('set') or _('unset') elif type_ == 'textarea': i... | 8a7505f666e8590328936fd32f0bc362d6e2a6a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/8a7505f666e8590328936fd32f0bc362d6e2a6a0/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
4468,
67,
5413,
12,
2890,
16,
1111,
16,
9322,
16,
652,
16,
1592,
16,
394,
16,
1058,
67,
2704,
33,
7036,
4672,
7935,
273,
599,
468,
1534,
618,
4582,
9782,
434,
15250,
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,
389,
5902,
67,
4468,
67,
5413,
12,
2890,
16,
1111,
16,
9322,
16,
652,
16,
1592,
16,
394,
16,
1058,
67,
2704,
33,
7036,
4672,
7935,
273,
599,
468,
1534,
618,
4582,
9782,
434,
15250,
6... |
self.set(name, value, value) | if name is not None: self.set(name, value, value) | def __init__(self, name, value): Morsel.__init__(self) self.set(name, value, value) | b882d2fb9ba84317accd0c3ffdd29774fa24463f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14437/b882d2fb9ba84317accd0c3ffdd29774fa24463f/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
460,
4672,
490,
1383,
292,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
12,
529,
16,
460,
16,
460,
13,
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,
1001,
2738,
972,
12,
2890,
16,
508,
16,
460,
4672,
490,
1383,
292,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
12,
529,
16,
460,
16,
460,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
exp = [(1,100000),(1e1,100000),(1e2,100000),(1e3,100000), (5e3,50000), | exp = [(1e3,100000),(5e3,50000), \ | def exec_timeit_2vector(expr, nb_call_scal=1, fname=None, do_unalign=False, do_amd=True): time=[] exp = [(1,100000),(1e1,100000),(1e2,100000),(1e3,100000), (5e3,50000), (1e4,10000),(5e4,5000),(1e5,2000),(1e6,200),(1e7,10) ] for nb_e, nb_c in exp: time.append(timeit_2vector(nb_element=nb_e, nb_repeat=3, nb_call=nb_c*nb... | c621473e30281a9b95cfb47a4890f6eeb6b22b6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/c621473e30281a9b95cfb47a4890f6eeb6b22b6f/gen_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
67,
957,
305,
67,
22,
7737,
12,
8638,
16,
4264,
67,
1991,
67,
87,
771,
33,
21,
16,
5299,
33,
7036,
16,
741,
67,
318,
7989,
33,
8381,
16,
741,
67,
301,
72,
33,
5510,
4672,
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,
1196,
67,
957,
305,
67,
22,
7737,
12,
8638,
16,
4264,
67,
1991,
67,
87,
771,
33,
21,
16,
5299,
33,
7036,
16,
741,
67,
318,
7989,
33,
8381,
16,
741,
67,
301,
72,
33,
5510,
4672,
8... |
active_id = context and context.get('active_id') | active_id = Transaction().context.get('active_id') | def default_domain_moves(self): purchase_line_obj = self.pool.get('purchase.line') active_id = context and context.get('active_id') if not active_id: return [] | 0d62b96b66ea855244d5b5c777b82884187a55c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9276/0d62b96b66ea855244d5b5c777b82884187a55c3/purchase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
4308,
67,
81,
10829,
12,
2890,
4672,
23701,
67,
1369,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
12688,
12104,
18,
1369,
6134,
2695,
67,
350,
273,
5947,
7675,
2472,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
4308,
67,
81,
10829,
12,
2890,
4672,
23701,
67,
1369,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
12688,
12104,
18,
1369,
6134,
2695,
67,
350,
273,
5947,
7675,
2472,
18,
588,... |
params.remove(identifier) | def __clean(node, unused): """ The cleanup part which always processes one scope and cleans up params and variable definitions which are unused """ retval = False if node.type == "script" and hasattr(node, "parent"): params = getattr(node.parent, "params", None) if params: # start from back, as we can only remove par... | fa65c231e2272ad36b35b842f572a011d316c67b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/fa65c231e2272ad36b35b842f572a011d316c67b/UnusedCleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6200,
12,
2159,
16,
10197,
4672,
3536,
1021,
6686,
1087,
1492,
3712,
8488,
1245,
2146,
471,
1619,
634,
731,
859,
471,
2190,
6377,
1492,
854,
10197,
3536,
225,
5221,
273,
1083,
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,
1,
1,
1,
1,
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,
6200,
12,
2159,
16,
10197,
4672,
3536,
1021,
6686,
1087,
1492,
3712,
8488,
1245,
2146,
471,
1619,
634,
731,
859,
471,
2190,
6377,
1492,
854,
10197,
3536,
225,
5221,
273,
1083,
225,
... | |
source=None, summary=None, title=None, updated=None, text=None, extension_elements=None, extension_attributes=None): | source=None, summary=None, title=None, updated=None, extension_elements=None, extension_attributes=None, text=None): | def __init__(self, author=None, category=None, content=None, contributor=None, atom_id=None, link=None, published=None, rights=None, source=None, summary=None, title=None, updated=None, text=None, extension_elements=None, extension_attributes=None): """Constructor for atom:entry Args: author: list A list of Author ins... | 8027d2579482361244a23de84a1d170e992f1d2f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/8027d2579482361244a23de84a1d170e992f1d2f/atom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2869,
33,
7036,
16,
3150,
33,
7036,
16,
913,
33,
7036,
16,
31123,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
9487,
33,
7036,
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,
1001,
2738,
972,
12,
2890,
16,
2869,
33,
7036,
16,
3150,
33,
7036,
16,
913,
33,
7036,
16,
31123,
33,
7036,
16,
3179,
67,
350,
33,
7036,
16,
1692,
33,
7036,
16,
9487,
33,
7036,
16,
... |
self.o.assy.rotsel(q) | if self.w.moveChunksDashboard.rotateAsUnitCB.isChecked(): self.o.assy.rotsel(q) else: for mol in self.o.assy.selmols: mol.rot(q) | def leftCntlDrag(self, event): """Do an incremental trackball action on all selected chunks(s). """ ##See comments of leftDrag()--Huaicai 3/23/05 if not self.picking: return if not self.o.assy.getSelectedMovables(): return w=self.o.width+0.0 h=self.o.height+0.0 deltaMouse = V(event.pos().x() - self.o.MousePos[0], sel... | 8c3e5e91178543f05558a900fda3b5006f47f387 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8c3e5e91178543f05558a900fda3b5006f47f387/modifyMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
11750,
80,
11728,
12,
2890,
16,
871,
4672,
3536,
3244,
392,
20649,
3298,
19067,
1301,
603,
777,
3170,
6055,
12,
87,
2934,
3536,
7541,
9704,
5678,
434,
2002,
11728,
1435,
413,
44,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
11750,
80,
11728,
12,
2890,
16,
871,
4672,
3536,
3244,
392,
20649,
3298,
19067,
1301,
603,
777,
3170,
6055,
12,
87,
2934,
3536,
7541,
9704,
5678,
434,
2002,
11728,
1435,
413,
44,
1... |
from Registry import registerField registerField(StringField, title='String', description='Used for storing simple strings') registerField(FileField, title='File', description='Used for storing files') registerField(TextField, title='Text', description=('Used for storing text which can be ' 'used in transformations... | def set(self, instance, value, **kw): if isinstance(value, StringType): value = StringIO(value) image = ScalableImage(self.name, file=value, displays=self.displays) ObjectField.set(self, instance, image, **kw) | 6c49241026527d58ec33dad69b98fdf197a65ae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/6c49241026527d58ec33dad69b98fdf197a65ae4/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
791,
16,
460,
16,
2826,
9987,
4672,
309,
1549,
12,
1132,
16,
31570,
4672,
460,
273,
15777,
12,
1132,
13,
1316,
273,
348,
771,
429,
2040,
12,
2890,
18,
529,
16,
585... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
791,
16,
460,
16,
2826,
9987,
4672,
309,
1549,
12,
1132,
16,
31570,
4672,
460,
273,
15777,
12,
1132,
13,
1316,
273,
348,
771,
429,
2040,
12,
2890,
18,
529,
16,
585... | |
"""This is the complement of clip, returning a TriSurface where t<=0. | """This is the complement of clip, returning a Mesh where t<=0. | def cclip(self,t): """This is the complement of clip, returning a TriSurface where t<=0. """ return self.select(t<=0) | 1535ec04433cfb4131e357412c0648be4a5d903a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2499/1535ec04433cfb4131e357412c0648be4a5d903a/mesh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4946,
3169,
12,
2890,
16,
88,
4672,
3536,
2503,
353,
326,
17161,
434,
6807,
16,
5785,
279,
24341,
1625,
268,
32,
33,
20,
18,
225,
3536,
327,
365,
18,
4025,
12,
88,
32,
33,
20,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4946,
3169,
12,
2890,
16,
88,
4672,
3536,
2503,
353,
326,
17161,
434,
6807,
16,
5785,
279,
24341,
1625,
268,
32,
33,
20,
18,
225,
3536,
327,
365,
18,
4025,
12,
88,
32,
33,
20,
13,
... |
def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): | def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False, endpoint_tolerance=1e-5): | def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): r""" Return list of numbers \code{a, a+step, ..., a+k*step}, where \code{a+k*step < b} and \code{a+(k+1)*step > b}. This provides one way to iterate over Sage integers as opposed to Python int's. It also allows you to specify step... | 171c4a58ede7c30b3f9b3eceeec64dd0e4d6c0a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/171c4a58ede7c30b3f9b3eceeec64dd0e4d6c0a8/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
16,
2494,
67,
25456,
33,
21,
73,
17,
25,
4672,
436,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
16,
2494,
67,
25456,
33,
21,
73,
17,
25,
4672,
436,
... |
self.__login_dialog_geometry = QtCore.QRect() self.__col_dialog_geometry = QtCore.QRect() self.__main_window_geometry = QtCore.QRect() self.__user_details_geometry = QtCore.QRect() | self.__col_dialog_geometry = QtCore.QRect(100, 100, 100, 100) self.__main_window_geometry = QtCore.QRect(100, 100, 100, 100) self.__user_details_geometry = QtCore.QRect(100, 100, 100, 100) | def __init__(self, p_parent = None): # initialisiere Objekt QtCore.QObject.__init__(self, p_parent) | b7f5df494b99e39a936d0de2f1ba0d7a82606c81 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4919/b7f5df494b99e39a936d0de2f1ba0d7a82606c81/Settings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
293,
67,
2938,
273,
599,
4672,
468,
2172,
291,
77,
822,
18760,
3839,
88,
20193,
18,
53,
921,
16186,
2738,
972,
12,
2890,
16,
293,
67,
2938,
13,
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,
1001,
2738,
972,
12,
2890,
16,
293,
67,
2938,
273,
599,
4672,
468,
2172,
291,
77,
822,
18760,
3839,
88,
20193,
18,
53,
921,
16186,
2738,
972,
12,
2890,
16,
293,
67,
2938,
13,
2,
-100... |
self.depositAtomDashboard.setGeometry(QRect(0,235,19,16)) | self.depositAtomDashboard.setGeometry(QRect(973,58,19,29)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 1fffefaa2964961cbc9adc237e2fedcbaf53df97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1fffefaa2964961cbc9adc237e2fedcbaf53df97/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
station_pos=station_unit.getPosition() | station_pos=station_unit.Position() | def launch_around_station(station_name,fgname,faction,type,ai,nr_ships,nr_waves,logo=''): station_unit=unit.getUnitByFgID(station_name) if(station_unit.isNull()): sys.stderr.write("launch.py:launch_around_station did not find unit %s\n" % (station_name)) return VS.Unit() station_pos=station_unit.getPosition() rsize=sta... | 1fc5c5bd1cbfec786cf3585a8f6cb9579788cb37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/1fc5c5bd1cbfec786cf3585a8f6cb9579788cb37/launch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8037,
67,
12716,
67,
17894,
12,
17894,
67,
529,
16,
2137,
529,
16,
507,
349,
16,
723,
16,
10658,
16,
11611,
67,
3261,
87,
16,
11611,
67,
91,
6606,
16,
19882,
2218,
11,
4672,
13282,
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,
8037,
67,
12716,
67,
17894,
12,
17894,
67,
529,
16,
2137,
529,
16,
507,
349,
16,
723,
16,
10658,
16,
11611,
67,
3261,
87,
16,
11611,
67,
91,
6606,
16,
19882,
2218,
11,
4672,
13282,
6... |
"could not write to '%s': %s" % (dst, errstr)) | "could not write to '%s': %s" % (dst, e.strerror)) | def _copy_file_contents(src, dst, buffer_size=16*1024): """Copy the file 'src' to 'dst'; both must be filenames. Any error opening either file, reading from 'src', or writing to 'dst', raises DistutilsFileError. Data is read/written in chunks of 'buffer_size' bytes (default 16k). No attempt is made to handle anythin... | c981ef9dcd7d5c4df48e6ad2ca282a9e1cebf307 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/c981ef9dcd7d5c4df48e6ad2ca282a9e1cebf307/file_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
67,
768,
67,
3980,
12,
4816,
16,
3046,
16,
1613,
67,
1467,
33,
2313,
14,
2163,
3247,
4672,
3536,
2951,
326,
585,
296,
4816,
11,
358,
296,
11057,
13506,
3937,
1297,
506,
9066... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3530,
67,
768,
67,
3980,
12,
4816,
16,
3046,
16,
1613,
67,
1467,
33,
2313,
14,
2163,
3247,
4672,
3536,
2951,
326,
585,
296,
4816,
11,
358,
296,
11057,
13506,
3937,
1297,
506,
9066... |
print " <3> Key Position =", key_pos | print "Key Position =", key_pos | def comparison_plot(plot_data,d1_data,d2_data): #plot_data is a list of values from the 'd' row of the config file being processed. # Variables for plot. plot_title = plot_data['Plot_Title'] if diagnostic_level >= 3: print " <3> Plot Title:", plot_title ind_title = plot_data['Ind_Title'] dep_title = plot_data['Dep_T... | f66ca75013a32a9d59d8e58dec0baa78eda49b79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/f66ca75013a32a9d59d8e58dec0baa78eda49b79/Validation_Data_Processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5826,
67,
4032,
12,
4032,
67,
892,
16,
72,
21,
67,
892,
16,
72,
22,
67,
892,
4672,
468,
4032,
67,
892,
353,
279,
666,
434,
924,
628,
326,
296,
72,
11,
1027,
434,
326,
642,
585,
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,
5826,
67,
4032,
12,
4032,
67,
892,
16,
72,
21,
67,
892,
16,
72,
22,
67,
892,
4672,
468,
4032,
67,
892,
353,
279,
666,
434,
924,
628,
326,
296,
72,
11,
1027,
434,
326,
642,
585,
3... |
single_files(cfg, single_file) | (changed, full_path) = single_files(cfg, single_file) if changed: on_update(cfg, full_path) | def main(): global CONF_FILE, DRY_RUN, VERBOSE, QUIET, UNIX_CMD, LOGFILE, SYMLINK_MODE progname = os.path.basename(sys.argv[0]) diff_file = None single_file = None if len(sys.argv) > 1: try: opts, args = getopt.getopt(sys.argv[1:], "hc:l:d:1:fvqx", ['help', 'conf=', 'log=', 'diff=', 'single=', 'fix', 'verbose', 'qui... | 8623ba6ccdfa6c77ecb63ed34a301beee4a43256 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13401/8623ba6ccdfa6c77ecb63ed34a301beee4a43256/synctool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
18733,
67,
3776,
16,
463,
9590,
67,
15238,
16,
27857,
16,
2238,
5370,
1584,
16,
23160,
67,
19473,
16,
2018,
3776,
16,
7068,
1495,
8476,
67,
7038,
225,
11243,
529,
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,
2774,
13332,
2552,
18733,
67,
3776,
16,
463,
9590,
67,
15238,
16,
27857,
16,
2238,
5370,
1584,
16,
23160,
67,
19473,
16,
2018,
3776,
16,
7068,
1495,
8476,
67,
7038,
225,
11243,
529,
273,... |
x,y, w,h, glGetIntegerv( GL_VIEWPORT ) | x, y, w, h, glGetIntegerv( GL_VIEWPORT ) | def _setup_projection(self, glselect = False): #bruce 050608 split this out; 050615 revised docstring """Set up standard projection matrix contents using aspect, vdist, and some attributes of self. (Warning: leaves matrixmode as GL_PROJECTION.) Optional arg glselect should be False (default) or a 4-tuple (to prepare fo... | 7828cbef13f84d50298938f6ae339289db2ec006 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/7828cbef13f84d50298938f6ae339289db2ec006/ThumbView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
67,
19183,
12,
2890,
16,
5118,
4025,
273,
1083,
4672,
468,
2848,
3965,
374,
3361,
4848,
28,
1416,
333,
596,
31,
374,
3361,
26,
3600,
283,
26779,
14525,
3536,
694,
731,
4529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8401,
67,
19183,
12,
2890,
16,
5118,
4025,
273,
1083,
4672,
468,
2848,
3965,
374,
3361,
4848,
28,
1416,
333,
596,
31,
374,
3361,
26,
3600,
283,
26779,
14525,
3536,
694,
731,
4529,
... |
if self.length == 0: self.close() | def begin(self): if self.msg is not None: # we've already started reading the response return | 365193321091c47fced3c6b68a54013762064b76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/365193321091c47fced3c6b68a54013762064b76/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
12,
2890,
4672,
309,
365,
18,
3576,
353,
486,
599,
30,
468,
732,
8081,
1818,
5746,
6453,
326,
766,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
12,
2890,
4672,
309,
365,
18,
3576,
353,
486,
599,
30,
468,
732,
8081,
1818,
5746,
6453,
326,
766,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
return ["'" + prog_path+ "'"] | return [prog_path] | def python_args(self): # Find the proper executable in the current dir for f in self.launcher_alternatives: if os.path.isfile(f): prog_name = f break else: return None prog_path = abspath(prog_name) # We try to keep the same Python interpreter as currently if os.path.exists(sys.executable) and re.match(r'.*\.py[cow]?$'... | 38cfe02db70775848ebe907e8e1590f4021ed867 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/38cfe02db70775848ebe907e8e1590f4021ed867/launch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
1968,
12,
2890,
4672,
468,
4163,
326,
5338,
9070,
316,
326,
783,
1577,
364,
284,
316,
365,
18,
20738,
264,
67,
16025,
8785,
30,
309,
1140,
18,
803,
18,
291,
768,
12,
74,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
1968,
12,
2890,
4672,
468,
4163,
326,
5338,
9070,
316,
326,
783,
1577,
364,
284,
316,
365,
18,
20738,
264,
67,
16025,
8785,
30,
309,
1140,
18,
803,
18,
291,
768,
12,
74,
46... |
coldef = '150, 150, 150' | coldef = create_col(coldict['nolong']) colsign = -colsign | coldef = '150, 150, 150' | 220a011764b979db0735a926a9c357f113032bd5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/220a011764b979db0735a926a9c357f113032bd5/pylal_exttrig_llutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
645,
536,
273,
296,
23014,
16,
18478,
16,
18478,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
645,
536,
273,
296,
23014,
16,
18478,
16,
18478,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
eps -- character | $\epsilon$ -- character | def CO_delta(r,p,N,eps): """ Compute the delta function in the paper of Cohen and Oesterle on dimension formulas. INPUT: r -- positive integer p -- a prime N -- positive integer eps -- character OUTPUT: element of the base ring of the character EXAMPLES: sage: G.<eps> = DirichletGroup(7) sage: sage.modular.dims.CO_d... | 2d5430f87d71c70bab3397c63a6cf10def24c15d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2d5430f87d71c70bab3397c63a6cf10def24c15d/dims.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7910,
67,
9878,
12,
86,
16,
84,
16,
50,
16,
13058,
4672,
3536,
8155,
326,
3622,
445,
316,
326,
15181,
434,
7695,
76,
275,
471,
531,
7654,
298,
603,
4968,
646,
24857,
18,
225,
12943,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7910,
67,
9878,
12,
86,
16,
84,
16,
50,
16,
13058,
4672,
3536,
8155,
326,
3622,
445,
316,
326,
15181,
434,
7695,
76,
275,
471,
531,
7654,
298,
603,
4968,
646,
24857,
18,
225,
12943,
... |
new_parent = self.datamap.get_data(new_parent_path) self.datamap.remove_path_all(new_parent_path, lambda x: x.get_children()) if old_parent != new_parent: self.datamap.remove_path_all(old_parent_path, lambda x: x.get_children()) | new_parent = self.model.get_data(new_parent_path) | def on_drag_data_received(self, treeview, drag_context, x, y, selection_data, info, eventtime): # determine destination row dest_row = treeview.get_dest_row_at_pos(x, y) if dest_row is None: drag_context.finish(False, False, eventtime) return # process node drops if "drop_node" in drag_context.targets or \ "drop_sel... | c4350c8c0c9dd6b49b4351b5d28a8927ca61f568 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4738/c4350c8c0c9dd6b49b4351b5d28a8927ca61f568/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
15997,
67,
892,
67,
15213,
12,
2890,
16,
2151,
1945,
16,
8823,
67,
2472,
16,
619,
16,
677,
16,
4421,
67,
892,
16,
1123,
16,
871,
957,
4672,
282,
468,
4199,
2929,
1027,
1570,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15997,
67,
892,
67,
15213,
12,
2890,
16,
2151,
1945,
16,
8823,
67,
2472,
16,
619,
16,
677,
16,
4421,
67,
892,
16,
1123,
16,
871,
957,
4672,
282,
468,
4199,
2929,
1027,
1570,... |
default = "%s contains value '%s'" % (utils.seq2str2(L), str(value)) _verify_condition(L.count(value) == 0, default, msg) | default = "%s contains value '%s'" % (utils.seq2str2(L), value) _verify_condition(value not in L, default, msg) | def list_should_not_contain_value(self, L, value, msg=None): """Fails if the value is not found from L. See 'List Should Contain Value' for an explanation of 'msg'. """ default = "%s contains value '%s'" % (utils.seq2str2(L), str(value)) _verify_condition(L.count(value) == 0, default, msg) | 9e3b0b6f2f5e1229f613f2fc11d15a4072f9d6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/9e3b0b6f2f5e1229f613f2fc11d15a4072f9d6db/Collections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
13139,
67,
902,
67,
28744,
67,
1132,
12,
2890,
16,
511,
16,
460,
16,
1234,
33,
7036,
4672,
3536,
30800,
309,
326,
460,
353,
486,
1392,
628,
511,
18,
225,
2164,
296,
682,
936... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
13139,
67,
902,
67,
28744,
67,
1132,
12,
2890,
16,
511,
16,
460,
16,
1234,
33,
7036,
4672,
3536,
30800,
309,
326,
460,
353,
486,
1392,
628,
511,
18,
225,
2164,
296,
682,
936... |
elif tokens[0]=="BEGIN-VENDOR": | elif key=="BEGIN-VENDOR": | def ReadDictionary(self, file): """Parse a dictionary file | 28055ae91fba89eec0ff98a9ef844cf1923c1859 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12799/28055ae91fba89eec0ff98a9ef844cf1923c1859/dictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
10905,
12,
2890,
16,
585,
4672,
3536,
3201,
279,
3880,
585,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2720,
10905,
12,
2890,
16,
585,
4672,
3536,
3201,
279,
3880,
585,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
c.app = p.app_instance(mount_point) | c.app = project.app_instance(mount_point) | def permissions(self, repo_path=None, **kw): """Expects repo_path to be a filesystem path like '/git/p/mygreatproject/reponame.git', or '/svn/adobe/someproject/subproject/reponame/'. | 7bd0668b2de4bf83e79d30c60580e4b50ee39b9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/7bd0668b2de4bf83e79d30c60580e4b50ee39b9c/user_main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4371,
12,
2890,
16,
3538,
67,
803,
33,
7036,
16,
2826,
9987,
4672,
3536,
11988,
87,
3538,
67,
803,
358,
506,
279,
6496,
589,
3007,
1173,
6845,
19,
84,
19,
81,
4338,
6150,
4406,
19,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4371,
12,
2890,
16,
3538,
67,
803,
33,
7036,
16,
2826,
9987,
4672,
3536,
11988,
87,
3538,
67,
803,
358,
506,
279,
6496,
589,
3007,
1173,
6845,
19,
84,
19,
81,
4338,
6150,
4406,
19,
2... |
print type_id, name | def __init__(self, *args, **kwargs): super(Importer_ramAssemblyLines, self).__init__(*args, **kwargs) self.field_map = (('assembly_line_type_id', 'assemblyLineTypeID'), ('station_id', 'containerID'), ('owner_id', 'ownerID'), ('activity_id', 'activityID'), ('name', 'assemblyLineTypeID', self.get_assembly_line_type_name)... | 1bd82c29fb613460f80d0277d9ad39778f2adef5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13782/1bd82c29fb613460f80d0277d9ad39778f2adef5/station.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2240,
12,
21927,
67,
1940,
24368,
5763,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
4333,
13,
365,
18,
1518,
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,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2240,
12,
21927,
67,
1940,
24368,
5763,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
4333,
13,
365,
18,
1518,
6... | |
if os.path.isdir(FT_INC_DIR[0]): infoline(' | if isdir(FT_INC_DIR[0]): infoline(' | def libart_version(): K = ('LIBART_MAJOR_VERSION','LIBART_MINOR_VERSION','LIBART_MICRO_VERSION') D = {} for l in open(pjoin(LIBART_DIR,'configure.in'),'r').readlines(): l = l.strip().split('=') if len(l)>1 and l[0].strip() in K: D[l[0].strip()] = l[1].strip() if len(D)==3: break return (platform == 'win32' and '\\"%s\\... | dcb4863a83dff1a07b67404dd90989089cdc1127 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/dcb4863a83dff1a07b67404dd90989089cdc1127/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2561,
485,
67,
1589,
13332,
1475,
273,
7707,
14484,
4928,
67,
26976,
916,
67,
5757,
17023,
14484,
4928,
67,
6236,
916,
67,
5757,
17023,
14484,
4928,
67,
22972,
1457,
67,
5757,
6134,
463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2561,
485,
67,
1589,
13332,
1475,
273,
7707,
14484,
4928,
67,
26976,
916,
67,
5757,
17023,
14484,
4928,
67,
6236,
916,
67,
5757,
17023,
14484,
4928,
67,
22972,
1457,
67,
5757,
6134,
463,
... |
self.basector.set('\n\n%s%s.__init__(self,pname=name, **kw)' % (ID3,tpc)) | self.basector.set('\n\n%s%s.__init__(self,pname=name, aname="_%%s" %% name, **kw)' % (ID3,tpc)) | self.initdef.set('\n\n%sdef __init__(self, name=None, ns=None, **kw):' \ % ID2) | 7de92181a76b4eccc9848f94628d4fa4b0e7d896 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/7de92181a76b4eccc9848f94628d4fa4b0e7d896/wsdl2python.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
365,
18,
2738,
536,
18,
542,
2668,
64,
82,
64,
82,
9,
87,
536,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
3153,
33,
7036,
16,
2826,
9987,
13,
2497,
521,
738,
1599,
22,
13,
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,
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,
365,
18,
2738,
536,
18,
542,
2668,
64,
82,
64,
82,
9,
87,
536,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
3153,
33,
7036,
16,
2826,
9987,
13,
2497,
521,
738,
1599,
22,
13,
2,
-1... |
sage: len(L) 133 | sage: [len([g for g in L if g.order() == i]) for i in [1..7]] [1, 2, 3, 7, 13, 35, 88] | def __call__(self, vertices, property=lambda x: True, augment='edges'): """ Accesses the generator of isomorphism class representatives. Iterates over distinct, exhaustive representatives. | 69d51c88ff8c9f6e6f5f2781fbfbc5ddba07097e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69d51c88ff8c9f6e6f5f2781fbfbc5ddba07097e/graph_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
6928,
16,
1272,
33,
14661,
619,
30,
1053,
16,
18260,
2218,
8746,
11,
4672,
3536,
5016,
281,
326,
4456,
434,
353,
362,
7657,
6228,
667,
2406,
8785,
18,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
6928,
16,
1272,
33,
14661,
619,
30,
1053,
16,
18260,
2218,
8746,
11,
4672,
3536,
5016,
281,
326,
4456,
434,
353,
362,
7657,
6228,
667,
2406,
8785,
18,
30... |
rq=join(rq,'\n') | rq=join(rq,'\r\n') | def _mp_call(self,kw, type2suffix={ type(1.0): ':float', type(1): ':int', type(1L): ':long', type([]): ':list', type(()): ':tuple', } ): # Call a function using the file-upload protcol | 11b2a67e1419ea80c20f06030a12e4740918dc15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/11b2a67e1419ea80c20f06030a12e4740918dc15/Client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1291,
67,
1991,
12,
2890,
16,
9987,
16,
618,
22,
8477,
5899,
618,
12,
21,
18,
20,
4672,
4290,
5659,
2187,
618,
12,
21,
4672,
282,
4290,
474,
2187,
618,
12,
21,
48,
4672,
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,
1,
1,
1,
1,
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,
1291,
67,
1991,
12,
2890,
16,
9987,
16,
618,
22,
8477,
5899,
618,
12,
21,
18,
20,
4672,
4290,
5659,
2187,
618,
12,
21,
4672,
282,
4290,
474,
2187,
618,
12,
21,
48,
4672,
225,
... |
id='c4o4i7m2lbamc4k26sc2vokh5g%40group.calendar.google.com'): | id='python.gcal.test%40gmail.com'): | def _InsertSubscription(self, id='c4o4i7m2lbamc4k26sc2vokh5g%40group.calendar.google.com'): """Subscribes to the calendar with the specified ID.""" print 'Subscribing to the calendar with ID: %s' % id calendar = gdata.calendar.CalendarListEntry() calendar.id = atom.Id(text=id) returned_calendar = self.cal_client.Insert... | b19adbf43baef836ca864c7bef9b51035a6fc6b9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/b19adbf43baef836ca864c7bef9b51035a6fc6b9/calendarExample.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4600,
6663,
12,
2890,
16,
612,
2218,
8103,
18,
75,
771,
18,
3813,
9,
7132,
75,
4408,
18,
832,
11,
4672,
3536,
1676,
4091,
281,
358,
326,
5686,
598,
326,
1269,
1599,
12123,
1172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4600,
6663,
12,
2890,
16,
612,
2218,
8103,
18,
75,
771,
18,
3813,
9,
7132,
75,
4408,
18,
832,
11,
4672,
3536,
1676,
4091,
281,
358,
326,
5686,
598,
326,
1269,
1599,
12123,
1172,
... |
elif rebuild_archive: | elif not skip_rebuild_archive: | def CreateArchiveFile(output_dir, staging_dir, current_version, prev_version_dir, prev_version, rebuild_archive): """Creates a new installer archive file after deleting any existing old file. """ # First create an uncompressed archive file for the current build # TODO(rahulk): find a better way to locate 7za.exe lzma_e... | 8662fe3862f505c587d4e1e1489e5f4b0eef384a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/8662fe3862f505c587d4e1e1489e5f4b0eef384a/create_installer_archive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
7465,
812,
12,
2844,
67,
1214,
16,
22207,
67,
1214,
16,
783,
67,
1589,
16,
2807,
67,
1589,
67,
1214,
16,
2807,
67,
1589,
16,
13419,
67,
10686,
4672,
3536,
2729,
279,
394,
16050,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
7465,
812,
12,
2844,
67,
1214,
16,
22207,
67,
1214,
16,
783,
67,
1589,
16,
2807,
67,
1589,
67,
1214,
16,
2807,
67,
1589,
16,
13419,
67,
10686,
4672,
3536,
2729,
279,
394,
16050,
... |
r""" Triangular numbers: $a(n) = {n+1} \choose 2) = n(n+1)/2$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000217;a Triangular numbers: a(n) = C(n+1,2) = n(n+1)/2 = 0+1+2+...+n. sage: a(0) 0 sage: a(2) 3 sage: a(8) 36 sage: a(2000) 2001000 sage: a.list(9) [0, 1, 3, ... | def __init__(self): r""" Triangular numbers: $a(n) = {n+1} \choose 2) = n(n+1)/2$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000217;a Triangular numbers: a(n) = C(n+1,2) = n(n+1)/2 = 0+1+2+...+n. sage: a(0) 0 sage: a(2) 3 sage: a(8) 36 sage: a(2000) 2001000 sage: ... | def _eval(self, n): if n == 1: return 1 elif n == 2: return 3 else: return sloane.A000045(n+1) + sloane.A000045(n-1) | d2510d4232e17c9cea8d1a0271c6be68a81d317b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d2510d4232e17c9cea8d1a0271c6be68a81d317b/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
290,
422,
404,
30,
327,
404,
1327,
290,
422,
576,
30,
327,
890,
469,
30,
327,
272,
383,
8806,
18,
37,
2787,
7950,
12,
82,
15,
21,
13,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
290,
422,
404,
30,
327,
404,
1327,
290,
422,
576,
30,
327,
890,
469,
30,
327,
272,
383,
8806,
18,
37,
2787,
7950,
12,
82,
15,
21,
13,
397,
... |
SyntaxError: keyword can't be an expression (<doctest test.test_syntax[29]>, line 1) | SyntaxError: keyword can't be an expression (<doctest test.test_syntax[30]>, line 1) | >>> def f(it, *varargs): | 373f0a718c359bc9e554ec323a9d71844ee76dfc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/373f0a718c359bc9e554ec323a9d71844ee76dfc/test_syntax.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
305,
16,
380,
1401,
1968,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
305,
16,
380,
1401,
1968,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Debug(moobot.RED + "There was an error with the database"+\ | DebugErr(moobot.RED + "There was an error with the database"+\ | def doSQL(SQL): """ executes the sql statement SQL and returns a list of tuples containing the results""" #grab a DB connection to use connection_num = getAConnection() #print moobot.RED + "got connection " + moobot.NORMAL + str(connection_num) results = [] try: cur = botdbs[connection_num].cursor() cur.execute(SQL.enc... | 94fe5d48ff4a06bead3e70ec297776ffe8dc4fde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10749/94fe5d48ff4a06bead3e70ec297776ffe8dc4fde/database.mysql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
3997,
12,
3997,
4672,
3536,
11997,
326,
1847,
3021,
3063,
471,
1135,
279,
666,
434,
10384,
4191,
326,
1686,
8395,
468,
2752,
70,
279,
2383,
1459,
358,
999,
1459,
67,
2107,
273,
4506... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
3997,
12,
3997,
4672,
3536,
11997,
326,
1847,
3021,
3063,
471,
1135,
279,
666,
434,
10384,
4191,
326,
1686,
8395,
468,
2752,
70,
279,
2383,
1459,
358,
999,
1459,
67,
2107,
273,
4506... |
self.f = open(localfile, "rb+") | self.f = ThreadSafeFile(localfile, "rb+") | def __init__(self, urls, localfile, size=0, chunk_size = 262144, chunksums = {}, reporthook = None): assert isinstance(urls, dict) self.sockets = [] self.chunks = [] self.limit_per_host = LIMIT_PER_HOST self.host_limit = HOST_LIMIT self.size = int(size) self.orig_urls = urls self.urls = urls self.chunk_size = int(chun... | 87fd3da045adc4c28adc2a991b3a5a9624bdd5be /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6425/87fd3da045adc4c28adc2a991b3a5a9624bdd5be/download.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6903,
16,
1191,
768,
16,
963,
33,
20,
16,
2441,
67,
1467,
273,
576,
8898,
25339,
16,
2441,
1364,
87,
273,
10615,
2071,
7825,
1184,
273,
599,
4672,
1815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6903,
16,
1191,
768,
16,
963,
33,
20,
16,
2441,
67,
1467,
273,
576,
8898,
25339,
16,
2441,
1364,
87,
273,
10615,
2071,
7825,
1184,
273,
599,
4672,
1815,
... |
self.del_handler('en.po') | if root.exists('en.po'): root.remove('en.po') root.remove('en.po.metadata') | def update_20060602(self): # Add '.admins.users' admins = self.get_handler('admins/.users').get_usernames() self.set_handler('.admins.users', ListOfUsers(users=admins)) # Remove handlers self.del_handler('.users') self.del_handler('admins') self.del_handler('.admins.metadata') self.del_handler('reviewers') self.del_han... | 1a7b2f2341e0fe89869a6f2e96165eb0116cb46f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/1a7b2f2341e0fe89869a6f2e96165eb0116cb46f/root.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
6976,
4848,
26,
3103,
12,
2890,
4672,
468,
1436,
2418,
3666,
87,
18,
5577,
11,
31116,
273,
365,
18,
588,
67,
4176,
2668,
3666,
87,
15865,
5577,
16063,
588,
67,
1355,
1973,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
6976,
4848,
26,
3103,
12,
2890,
4672,
468,
1436,
2418,
3666,
87,
18,
5577,
11,
31116,
273,
365,
18,
588,
67,
4176,
2668,
3666,
87,
15865,
5577,
16063,
588,
67,
1355,
1973,
14... |
self.load_contact(vcard) | self.iter = iter self.vcard = load_contact(self.contactData[iter][2]) self.parse_contact() self.editButton_clicked(edit=False) | def undoButton_clicked(self, button): vcard = self.vcard self.clear() self.load_contact(vcard) | d146007907c6581d8d80f2f60d1a7f1efdee1728 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/d146007907c6581d8d80f2f60d1a7f1efdee1728/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15436,
3616,
67,
7475,
329,
12,
2890,
16,
3568,
4672,
29760,
273,
365,
18,
90,
3327,
365,
18,
8507,
1435,
365,
18,
945,
67,
8994,
12,
90,
3327,
13,
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,
15436,
3616,
67,
7475,
329,
12,
2890,
16,
3568,
4672,
29760,
273,
365,
18,
90,
3327,
365,
18,
8507,
1435,
365,
18,
945,
67,
8994,
12,
90,
3327,
13,
2,
-100,
-100,
-100,
-100,
-100,
-... |
results = lapack_routine('N', 'N', n, a, n, wr, wi, | results = lapack_routine(_N, _N, n, a, n, wr, wi, | def eigvals(a): """ Compute the eigenvalues of a general matrix. Main difference between `eigvals` and `eig`: the eigenvectors aren't returned. Parameters ---------- a : array_like, shape (M, M) A complex- or real-valued matrix whose eigenvalues will be computed. Returns ------- w : ndarray, shape (M,) The eigenvalu... | f8012ce42ee9ce709d2f4044e74e61d5d292b3cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/f8012ce42ee9ce709d2f4044e74e61d5d292b3cd/linalg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11043,
4524,
12,
69,
4672,
3536,
8155,
326,
29831,
434,
279,
7470,
3148,
18,
225,
12740,
7114,
3086,
1375,
22663,
4524,
68,
471,
1375,
22663,
68,
30,
326,
11043,
29098,
11526,
1404,
2106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11043,
4524,
12,
69,
4672,
3536,
8155,
326,
29831,
434,
279,
7470,
3148,
18,
225,
12740,
7114,
3086,
1375,
22663,
4524,
68,
471,
1375,
22663,
68,
30,
326,
11043,
29098,
11526,
1404,
2106,
... |
ignore_secondaries = bool(self.queryargs.get('ignore_secondaries', [False])[0]) | ignore_secondaries = bool(self._checkIntVariable('ignore_secondaries')) | def POST(self): """Reboot an instance. | 94cdfa4a54e627945829e3fc32188f929579069d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/94cdfa4a54e627945829e3fc32188f929579069d/rlib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
4672,
3536,
31569,
392,
791,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5485,
12,
2890,
4672,
3536,
31569,
392,
791,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
speed('fastest') | speed("fastest") fill(1) for i in range(4): circle(50,90) right(90) forward(30) right(90) color("yellow") fill(0) left(90) up() forward(30) | def demo2(): # exercises some new and improved features speed('fast') width(3) # draw a segmented half-circle setheading(towards(0,0)) x,y = position() r = (x**2+y**2)**.5/2.0 right(90) pendown = True for i in range(18): if pendown: up() pendown = False else: down() pendown = True circle(r,10) sleep(2) reset() left(9... | 2219110991cdd175e1a19d5965be9339f89d5f07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2219110991cdd175e1a19d5965be9339f89d5f07/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
22,
13332,
468,
431,
12610,
6141,
2690,
394,
471,
13069,
2155,
4467,
8632,
2668,
8076,
6134,
1835,
12,
23,
13,
225,
468,
3724,
279,
3267,
329,
8816,
17,
18970,
444,
19948,
12,
310... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
22,
13332,
468,
431,
12610,
6141,
2690,
394,
471,
13069,
2155,
4467,
8632,
2668,
8076,
6134,
1835,
12,
23,
13,
225,
468,
3724,
279,
3267,
329,
8816,
17,
18970,
444,
19948,
12,
310... |
self.sock.connect((host, port)) | try: self.sock.connect((host, port)) except socket.error: self.close() raise | def connect(self, host='localhost', port = 0): """Connect to a host on a given port. | b8282e9de8320fb190173cc702802f953206162f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b8282e9de8320fb190173cc702802f953206162f/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1479,
2218,
13014,
2187,
1756,
273,
374,
4672,
3536,
5215,
358,
279,
1479,
603,
279,
864,
1756,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3077,
12,
2890,
16,
1479,
2218,
13014,
2187,
1756,
273,
374,
4672,
3536,
5215,
358,
279,
1479,
603,
279,
864,
1756,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
collide=True, is_grasp = False, | collide=True, is_grasp = True, | def main(): rospy.init_node(node_name) # rospy.on_shutdown(die) setup_package_loc() ki = KeyboardInput() #grasp_data = collect_grasp_data(generate_models=False, skip_grasp=False) #return 0 #process_data(grasp_data) #return 0 #trim_test_data() # return 0 #split_model_data() #return 0 # print get_grasp_model(0., 0.)... | adf62e7b2cb1725833144625d553bfc8a1186987 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8117/adf62e7b2cb1725833144625d553bfc8a1186987/simple_grasp_learner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
721,
30884,
18,
2738,
67,
2159,
12,
2159,
67,
529,
13,
468,
721,
30884,
18,
265,
67,
15132,
12,
72,
1385,
13,
3875,
67,
5610,
67,
1829,
1435,
29027,
273,
16535,
1210,
1435... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
721,
30884,
18,
2738,
67,
2159,
12,
2159,
67,
529,
13,
468,
721,
30884,
18,
265,
67,
15132,
12,
72,
1385,
13,
3875,
67,
5610,
67,
1829,
1435,
29027,
273,
16535,
1210,
1435... |
$(O_K/I)^*$, which takes more time. By default flag=1 (no | `(O_K/I)^*`, which takes more time. By default flag=1 (no | def idealstar(self, flag=1): r""" Returns the finite abelian group $(O_K/I)^*$, where I is the ideal self of the number field K, and $O_K$ is the ring of integers of K. | e462b4d226d7b8f741f48ed1e071494aa5463b8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/e462b4d226d7b8f741f48ed1e071494aa5463b8a/number_field_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23349,
10983,
12,
2890,
16,
2982,
33,
21,
4672,
436,
8395,
2860,
326,
25922,
1223,
292,
2779,
1041,
27488,
51,
67,
47,
19,
45,
13,
66,
26788,
16,
1625,
467,
353,
326,
23349,
365,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23349,
10983,
12,
2890,
16,
2982,
33,
21,
4672,
436,
8395,
2860,
326,
25922,
1223,
292,
2779,
1041,
27488,
51,
67,
47,
19,
45,
13,
66,
26788,
16,
1625,
467,
353,
326,
23349,
365,
434,
... |
if self.chunked: | if self.chunked and self.code not in NO_BODY_CODES: | def finish(self): """We are finished writing data.""" if self.chunked: # write last chunk and closing CRLF self.transport.write("0\r\n\r\n") elif not self.startedWriting: # write headers self.write('') | cbc19c953c2c22d8bc4e0cdce65f758f4b49428e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/cbc19c953c2c22d8bc4e0cdce65f758f4b49428e/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
12,
2890,
4672,
3536,
3218,
854,
6708,
7410,
501,
12123,
309,
365,
18,
6551,
329,
471,
365,
18,
710,
486,
316,
3741,
67,
16691,
67,
17070,
30,
468,
1045,
1142,
2441,
471,
7647,
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,
4076,
12,
2890,
4672,
3536,
3218,
854,
6708,
7410,
501,
12123,
309,
365,
18,
6551,
329,
471,
365,
18,
710,
486,
316,
3741,
67,
16691,
67,
17070,
30,
468,
1045,
1142,
2441,
471,
7647,
2... |
wx.CallAfter(self.consolePrint,"\n"+_("Looking at ")+gpxPath+"\n") | wx.CallAfter(self.consolePrint,"\n"+_("Looking at ")+gpxPath[0]+"\n") | def gpxInspector(self,evt): """A tool to display data from a gpx file""" gpx=wx.FileDialog(self) gpx.ShowModal() gpx.SetWildcard("*.gpx") gpxPath=gpx.GetPath() self.winGpxInspector.Close() print "gpxPath=", gpxPath if gpxPath =="" or None: wx.CallAfter(self.consolePrint,"\n"+_("Select a gpx file first.")) else: myGpx=G... | 7c631d4a437aeec6bb5686132572dc6ee641112e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11453/7c631d4a437aeec6bb5686132572dc6ee641112e/gpicsync-GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4178,
92,
19443,
12,
2890,
16,
73,
11734,
4672,
3536,
37,
5226,
358,
2562,
501,
628,
279,
4178,
92,
585,
8395,
4178,
92,
33,
27226,
18,
812,
6353,
12,
2890,
13,
4178,
92,
18,
5706,
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,
4178,
92,
19443,
12,
2890,
16,
73,
11734,
4672,
3536,
37,
5226,
358,
2562,
501,
628,
279,
4178,
92,
585,
8395,
4178,
92,
33,
27226,
18,
812,
6353,
12,
2890,
13,
4178,
92,
18,
5706,
2... |
mapvalue = None | mapvalue = MISSING_CODE | def python_tabledef_code(varname, map, comments=1, key_precision=2): l = [] append = l.append append('%s = (' % varname) # Analyze map and create table dict mappings = sorted(map.items()) table = {} maxkey = 0 if 'IDENTITY' in map: for key in range(256): table[key] = (key, '') maxkey = 255 del map['IDENTITY'] for map... | 3e82c578dbe964808fc141bf8e99f9a77cdb1e37 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/3e82c578dbe964808fc141bf8e99f9a77cdb1e37/gencodec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
2121,
536,
67,
710,
12,
1401,
529,
16,
852,
16,
5678,
33,
21,
16,
498,
67,
14548,
33,
22,
4672,
225,
328,
273,
5378,
714,
273,
328,
18,
6923,
714,
29909,
87,
273,
7707,
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,
5790,
67,
2121,
536,
67,
710,
12,
1401,
529,
16,
852,
16,
5678,
33,
21,
16,
498,
67,
14548,
33,
22,
4672,
225,
328,
273,
5378,
714,
273,
328,
18,
6923,
714,
29909,
87,
273,
7707,
7... |
('(debugging menu)', noop, 'disabled'), | ('debugging menu (unsupported)', noop, 'disabled'), | def debug_menu_items(self): """#doc; as of 050416 this will be called every time the debug menu needs to be put up, so that the menu contents can be different each time (i.e. so it can be a dynamic menu) [subclasses can override this; best if they call this superclass method and modify its result, e.g. add new items at... | eda2015268ba9220b3772c54b1c4a22f44e39a16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/eda2015268ba9220b3772c54b1c4a22f44e39a16/debug.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
67,
5414,
67,
3319,
12,
2890,
4672,
3536,
7,
2434,
31,
487,
434,
15331,
3028,
2313,
333,
903,
506,
2566,
3614,
813,
326,
1198,
3824,
4260,
358,
506,
1378,
731,
16,
1427,
716,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
67,
5414,
67,
3319,
12,
2890,
4672,
3536,
7,
2434,
31,
487,
434,
15331,
3028,
2313,
333,
903,
506,
2566,
3614,
813,
326,
1198,
3824,
4260,
358,
506,
1378,
731,
16,
1427,
716,
326... |
pass | conn.close() self.log(MythLog.DATABASE, 'Closing spare database connection') | def release(self, id): try: conn = self._inuse.pop(id) self._pool.append(conn) except KeyError: pass | e3aae25f86d13b5cc7eee646bcfb6dad0228abac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/e3aae25f86d13b5cc7eee646bcfb6dad0228abac/connections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
12,
2890,
16,
612,
4672,
775,
30,
1487,
273,
365,
6315,
267,
1202,
18,
5120,
12,
350,
13,
365,
6315,
6011,
18,
6923,
12,
4646,
13,
1335,
4999,
30,
1342,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3992,
12,
2890,
16,
612,
4672,
775,
30,
1487,
273,
365,
6315,
267,
1202,
18,
5120,
12,
350,
13,
365,
6315,
6011,
18,
6923,
12,
4646,
13,
1335,
4999,
30,
1342,
2,
-100,
-100,
-100,
-1... |
def test_rsync_popen_with_path(self, source, dest): | def test_rsync_popen_with_path(self, mysetup): source, dest = mysetup.source, mysetup.dest | def test_rsync_popen_with_path(self, source, dest): hm = GatewayManager(["popen//chdir=%s" %dest] * 1) hm.makegateways() source.ensure("dir1", "dir2", "hello") l = [] hm.rsync(source, notify=lambda *args: l.append(args)) assert len(l) == 1 assert l[0] == ("rsyncrootready", hm.gateways[0].spec, source) hm.exit() dest = ... | 70b33e3b68ae8a458c00f66ff95b24c9d3d8b908 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7009/70b33e3b68ae8a458c00f66ff95b24c9d3d8b908/test_gwmanage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5453,
1209,
67,
84,
3190,
67,
1918,
67,
803,
12,
2890,
16,
3399,
8401,
4672,
1084,
16,
1570,
273,
3399,
8401,
18,
3168,
16,
3399,
8401,
18,
10488,
16349,
273,
11381,
1318,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5453,
1209,
67,
84,
3190,
67,
1918,
67,
803,
12,
2890,
16,
3399,
8401,
4672,
1084,
16,
1570,
273,
3399,
8401,
18,
3168,
16,
3399,
8401,
18,
10488,
16349,
273,
11381,
1318,
38... |
try: fmt.update(self.table.output_formats[output_format]) except AttributeError: pass | def _get_fmt(self, output_format, **fmt_dict): """Return dict, the formatting options. """ #first get the default formatting try: fmt = default_fmts[output_format].copy() except KeyError: raise ValueError('Unknown format: %s' % output_format) #second get table specific formatting (if possible) try: fmt.update(self.tabl... | efae2e5f0d449e2a63dec32a4b19f53ab9f9e3f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/efae2e5f0d449e2a63dec32a4b19f53ab9f9e3f8/table.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
8666,
12,
2890,
16,
876,
67,
2139,
16,
2826,
8666,
67,
1576,
4672,
3536,
990,
2065,
16,
326,
10407,
702,
18,
3536,
468,
3645,
336,
326,
805,
10407,
775,
30,
1325,
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,
389,
588,
67,
8666,
12,
2890,
16,
876,
67,
2139,
16,
2826,
8666,
67,
1576,
4672,
3536,
990,
2065,
16,
326,
10407,
702,
18,
3536,
468,
3645,
336,
326,
805,
10407,
775,
30,
1325,
273,
... | |
return self.__tokdict.has_key(k) | return k in self.__tokdict | def __contains__( self, k ): return self.__tokdict.has_key(k) | 33883f48f6824f787e8351de12e152523ca1309a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12364/33883f48f6824f787e8351de12e152523ca1309a/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
365,
16,
417,
262,
30,
327,
365,
16186,
17692,
1576,
18,
5332,
67,
856,
12,
79,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
365,
16,
417,
262,
30,
327,
365,
16186,
17692,
1576,
18,
5332,
67,
856,
12,
79,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if self.do_ip or self.do_bridge: | if self.do_ip or self.do_bridge or self.mac: | def BuildHooksEnv(self): """Build hooks env. | ef756965e5ebd01f36c3fa25601f67c1f7c01a59 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/ef756965e5ebd01f36c3fa25601f67c1f7c01a59/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
13620,
3491,
12,
2890,
4672,
3536,
3116,
9153,
1550,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
13620,
3491,
12,
2890,
4672,
3536,
3116,
9153,
1550,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
gradient = Gradient(rect.origin.x, rect.origin.y + 1, rect.origin.x, rect.origin.y + rect.size.height - 1) | gradient = Gradient(rect.origin.x, rect.origin.y, rect.origin.x, rect.origin.y + rect.size.height) | def drawBackgroundGradient(self, context, focused, row): if focused: start_color = (0.412, 0.584, 0.792) end_color = (0.153, 0.345, 0.62) line_color = NSColor.colorWithDeviceRed_green_blue_alpha_( 0.322, 0.506, 0.733, 1.0) else: start_color = (0.671, 0.694, 0.776) end_color = (0.447, 0.471, 0.596) line_color = NSColor.... | 03ccda07037f228e1591f2dfefe805ab23e8e245 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/03ccda07037f228e1591f2dfefe805ab23e8e245/tableview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
8199,
15651,
12,
2890,
16,
819,
16,
22397,
16,
1027,
4672,
309,
22397,
30,
787,
67,
3266,
273,
261,
20,
18,
24,
2138,
16,
374,
18,
25,
5193,
16,
374,
18,
7235,
22,
13,
679,
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,
3724,
8199,
15651,
12,
2890,
16,
819,
16,
22397,
16,
1027,
4672,
309,
22397,
30,
787,
67,
3266,
273,
261,
20,
18,
24,
2138,
16,
374,
18,
25,
5193,
16,
374,
18,
7235,
22,
13,
679,
6... |
if m.hasStereoType(['action','view','form','portlet_view', 'portlet'], umlprofile=self.uml_profile): | if m.hasStereoType(['action', 'view', 'form', 'portlet_view', 'portlet'], umlprofile=self.uml_profile): | def generateMethod(self, outfile, m, klass, mode='class'): #ignore actions and views here because they are generated separately if m.hasStereoType(['action','view','form','portlet_view', 'portlet'], umlprofile=self.uml_profile): return | 6b8384a4ce2f95fc8212385e3ca7b5aeecd8fd91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/6b8384a4ce2f95fc8212385e3ca7b5aeecd8fd91/ArchetypesGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
1305,
12,
2890,
16,
8756,
16,
312,
16,
7352,
16,
1965,
2218,
1106,
11,
4672,
468,
6185,
4209,
471,
7361,
2674,
2724,
2898,
854,
4374,
18190,
309,
312,
18,
5332,
55,
22854,
559,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
1305,
12,
2890,
16,
8756,
16,
312,
16,
7352,
16,
1965,
2218,
1106,
11,
4672,
468,
6185,
4209,
471,
7361,
2674,
2724,
2898,
854,
4374,
18190,
309,
312,
18,
5332,
55,
22854,
559,
1... |
self.tempcache.clear() | self.tempcache.clear() | def cleanup(self): # This code sometimes runs when the rest of this module # has already been deleted, so it can't use any globals # or import anything. if self.__tempfiles: for file in self.__tempfiles: try: self.__unlink(file) except: pass del self.__tempfiles[:] if self.tempcache: self.tempcache.clear() | 9223cdc5dd58ba9e3dee718e56be87cfe6050ceb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9223cdc5dd58ba9e3dee718e56be87cfe6050ceb/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
12,
2890,
4672,
468,
1220,
981,
16594,
7597,
1347,
326,
3127,
434,
333,
1605,
468,
711,
1818,
2118,
4282,
16,
1427,
518,
848,
1404,
999,
1281,
10941,
468,
578,
1930,
6967,
18,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
12,
2890,
4672,
468,
1220,
981,
16594,
7597,
1347,
326,
3127,
434,
333,
1605,
468,
711,
1818,
2118,
4282,
16,
1427,
518,
848,
1404,
999,
1281,
10941,
468,
578,
1930,
6967,
18,
309,... |
operation_options = self.gui.get_operation_options(operation) print "debug: clean_operation('%s'), options = '%s'" % (operation, operation_options) | def clean_operation(self, operation): """Perform a single cleaning operation""" if self.really_delete and backends[operation].is_running(): # TRANSLATORS: %s expands to a name such as 'Firefox' or 'System'. err = _("%s cannot be cleaned because it is currently running. Close it, and try again.") \ % backends[operation... | 3469c462d6b01f1d89240751b70b5c3849c03a03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/3469c462d6b01f1d89240751b70b5c3849c03a03/Worker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
7624,
12,
2890,
16,
1674,
4672,
3536,
4990,
279,
2202,
24225,
1674,
8395,
309,
365,
18,
266,
1230,
67,
3733,
471,
18015,
63,
7624,
8009,
291,
67,
8704,
13332,
468,
14996,
4559,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
7624,
12,
2890,
16,
1674,
4672,
3536,
4990,
279,
2202,
24225,
1674,
8395,
309,
365,
18,
266,
1230,
67,
3733,
471,
18015,
63,
7624,
8009,
291,
67,
8704,
13332,
468,
14996,
4559,... | |
errors['startDate'] = "Start date is not valid" | errors['startDate'] = _(u'error_invalid_start_date', default=u'Start date is not valid.') | def post_validate(self, REQUEST=None, errors=None): """Validates start and end date | 334d175fa990e06f03ba34d9884d450fd996bb35 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11956/334d175fa990e06f03ba34d9884d450fd996bb35/event.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
5662,
12,
2890,
16,
12492,
33,
7036,
16,
1334,
33,
7036,
4672,
3536,
9594,
787,
471,
679,
1509,
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,
1603,
67,
5662,
12,
2890,
16,
12492,
33,
7036,
16,
1334,
33,
7036,
4672,
3536,
9594,
787,
471,
679,
1509,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def test_B(): """Test that random numbers change from call to call! Also, make sure that the seeding strategy doesn't change without failing a test. | def test_B(self): """Test that random numbers change from call to call! Also, make sure that the seeding strategy doesn't change without failing a test. Random numbers can't be too random or experiments aren't repeatable. Email theano-dev before updating the `rvals` in this test. """ class B(RModule): def __init__(s... | def test_B(): """Test that random numbers change from call to call! Also, make sure that the seeding strategy doesn't change without failing a test. Random numbers can't be too random or experiments aren't repeatable. Email theano-dev before updating the `rvals` in this test. """ class B(RModule): def __init__(self)... | f5ec9504c396343c76c5b20eb2866c8f26a5f483 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/f5ec9504c396343c76c5b20eb2866c8f26a5f483/test_raw_random.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
38,
12,
2890,
4672,
3536,
4709,
716,
2744,
5600,
2549,
628,
745,
358,
745,
5,
225,
8080,
16,
1221,
3071,
716,
326,
5009,
310,
6252,
3302,
1404,
2549,
2887,
21311,
279,
1842,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
38,
12,
2890,
4672,
3536,
4709,
716,
2744,
5600,
2549,
628,
745,
358,
745,
5,
225,
8080,
16,
1221,
3071,
716,
326,
5009,
310,
6252,
3302,
1404,
2549,
2887,
21311,
279,
1842,
... |
backlinks = [] | def footnote_backrefs(self, node): if self.settings.footnote_backlinks and node.hasattr('backrefs'): backrefs = node['backrefs'] if len(backrefs) == 1: self.context.append('') self.context.append('<a class="fn-backref" href="#%s" ' 'name="%s">' % (backrefs[0], node['id'])) else: i = 1 backlinks = [] for backref in back... | b4fbd53f9f5742c22cf02f05827b620f00cca51b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/b4fbd53f9f5742c22cf02f05827b620f00cca51b/html4css1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14200,
7652,
67,
823,
9316,
12,
2890,
16,
756,
4672,
309,
365,
18,
4272,
18,
10923,
7652,
67,
823,
7135,
471,
756,
18,
5332,
1747,
2668,
823,
9316,
11,
4672,
1473,
9316,
273,
756,
3292... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14200,
7652,
67,
823,
9316,
12,
2890,
16,
756,
4672,
309,
365,
18,
4272,
18,
10923,
7652,
67,
823,
7135,
471,
756,
18,
5332,
1747,
2668,
823,
9316,
11,
4672,
1473,
9316,
273,
756,
3292... | |
req = "\x04\x01" + struct.pack(">H",destport).decode() + ipaddr | req = "\x04\x01" + self.__decode(struct.pack(">H",destport)) + ipaddr | def __negotiatesocks4(self,destaddr,destport): """__negotiatesocks4(self,destaddr,destport) Negotiates a connection through a SOCKS4 server. """ # Check if the destination address provided is an IP address rmtrslv = False try: ipaddr = socket.inet_aton(destaddr) except socket.error: # It's a DNS name. Check where it sh... | 68a7f45c672c819937cd4b768ba99a202efeaac2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9386/68a7f45c672c819937cd4b768ba99a202efeaac2/socks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
14518,
352,
16020,
20641,
24,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
24,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14518,
352,
16020,
20641,
24,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
24,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
1... |
key = event.KeyCode() | key = event.GetKeyCode() | def OnKeyPressed(self, event): key = event.KeyCode() if key == 13: if self.defaultActionIdx != -1: self.actions[self.defaultActionIdx][1](event) event.Skip() | 557479112d432fc5c084250d84f9f48e044a1619 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/557479112d432fc5c084250d84f9f48e044a1619/EditorViews.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
653,
24624,
12,
2890,
16,
871,
4672,
498,
273,
871,
18,
967,
653,
1085,
1435,
309,
498,
422,
5958,
30,
309,
365,
18,
1886,
1803,
4223,
480,
300,
21,
30,
365,
18,
4905,
63,
2890... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2755,
653,
24624,
12,
2890,
16,
871,
4672,
498,
273,
871,
18,
967,
653,
1085,
1435,
309,
498,
422,
5958,
30,
309,
365,
18,
1886,
1803,
4223,
480,
300,
21,
30,
365,
18,
4905,
63,
2890... |
\code{list_of_pairs} is a list of pairs (fcn,I), where fcn is | \code{list_of_pairs} is a list of pairs (I, fcn), where fcn is | def __init__(self, list_of_pairs): r""" \code{list_of_pairs} is a list of pairs (fcn,I), where fcn is a SAGE function (such as a polynomial over RR, or functions using the lambda notation), and I is an interval such as I = (1,3). Two consecutive intervals must share a common endpoint. | 558a8e3b934e1d8eec83a9166a84ace28b80acea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/558a8e3b934e1d8eec83a9166a84ace28b80acea/piecewise.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
666,
67,
792,
67,
11545,
4672,
436,
8395,
521,
710,
95,
1098,
67,
792,
67,
11545,
97,
353,
279,
666,
434,
5574,
261,
45,
16,
8036,
82,
3631,
1625,
8036... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
666,
67,
792,
67,
11545,
4672,
436,
8395,
521,
710,
95,
1098,
67,
792,
67,
11545,
97,
353,
279,
666,
434,
5574,
261,
45,
16,
8036,
82,
3631,
1625,
8036... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.