rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
i += 1 | i += 1 | def _get_categories(self, products,form): cat_ids=[] res=[] self.pricelist = form['price_list'] self._set_quantity(form) pool = pooler.get_pool(self.cr.dbname) pro_ids=[] for product in products: pro_ids.append(product.id) if product.categ_id.id not in cat_ids: cat_ids.append(product.categ_id.id) cats = pool.get('produ... | aa7b817b4222f234e8e037c630dd89e3baba3594 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/aa7b817b4222f234e8e037c630dd89e3baba3594/product_pricelist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
8995,
12,
2890,
16,
10406,
16,
687,
4672,
6573,
67,
2232,
33,
8526,
400,
33,
8526,
365,
18,
683,
335,
5449,
273,
646,
3292,
8694,
67,
1098,
3546,
365,
6315,
542,
67,
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,
389,
588,
67,
8995,
12,
2890,
16,
10406,
16,
687,
4672,
6573,
67,
2232,
33,
8526,
400,
33,
8526,
365,
18,
683,
335,
5449,
273,
646,
3292,
8694,
67,
1098,
3546,
365,
6315,
542,
67,
16... |
scanhdlr.set_exit_node("$"+current_exit.idhex) | scanhdlr.set_exit_node("$"+current_exit_idhex) | def main(argv): # make sure we have something to test for if len(argv) < 2: print '' print 'Please provide at least one test option:' print '--pernode <n>' print '--resume [<n>]' print '--rescan [<n>]' print '--ssl' print '--http' print '--html' | 31ef876320f86b9a4a86e18c29a48abb1b3d4aac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/31ef876320f86b9a4a86e18c29a48abb1b3d4aac/soat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
468,
1221,
3071,
732,
1240,
5943,
358,
1842,
364,
309,
562,
12,
19485,
13,
411,
576,
30,
1172,
875,
1172,
296,
8496,
5615,
622,
4520,
1245,
1842,
1456,
2497,
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,
2774,
12,
19485,
4672,
468,
1221,
3071,
732,
1240,
5943,
358,
1842,
364,
309,
562,
12,
19485,
13,
411,
576,
30,
1172,
875,
1172,
296,
8496,
5615,
622,
4520,
1245,
1842,
1456,
2497,
1172,... |
self.assertEqual(dir(None), dir(Ellipsis)) | self.assertEqual(dir(NotImplemented), dir(Ellipsis)) if test_support.check_impl_detail(): self.assertEqual(dir(None), dir(Ellipsis)) | def getdict(self): return "Not a dict!" | 4a0d8c36fabcd955e24a465c9276c005529fa702 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/4a0d8c36fabcd955e24a465c9276c005529fa702/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1576,
12,
2890,
4672,
327,
315,
1248,
279,
2065,
4442,
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,
336,
1576,
12,
2890,
4672,
327,
315,
1248,
279,
2065,
4442,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
year_start = period_break(dates,'year') | year_start = period_break(dates_,'year') | def first_label(label_flags): if label_flags[0] == 0: return label_flags[1] else: return label_flags[0] | aabea5e0836589442e382fbe7be9145dfcf8a139 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/aabea5e0836589442e382fbe7be9145dfcf8a139/plotlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1122,
67,
1925,
12,
1925,
67,
7133,
4672,
309,
1433,
67,
7133,
63,
20,
65,
422,
374,
30,
327,
1433,
67,
7133,
63,
21,
65,
469,
30,
327,
1433,
67,
7133,
63,
20,
65,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1122,
67,
1925,
12,
1925,
67,
7133,
4672,
309,
1433,
67,
7133,
63,
20,
65,
422,
374,
30,
327,
1433,
67,
7133,
63,
21,
65,
469,
30,
327,
1433,
67,
7133,
63,
20,
65,
2,
-100,
-100,
... |
sendCodec = Codec(self._broker.conn.spec) | sendCodec = Codec() | def _sendMethodRequest(self, name, args, kwargs, synchronous=False, timeWait=None): for method in self._schema.getMethods(): if name == method.name: aIdx = 0 sendCodec = Codec(self._broker.conn.spec) seq = self._session.seqMgr._reserve((method, synchronous)) self._broker._setHeader(sendCodec, 'M', seq) self._objectId.e... | 72fcb9ecf5a97a16c1b91f83696f84b81cf029f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/197/72fcb9ecf5a97a16c1b91f83696f84b81cf029f5/console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
1305,
691,
12,
2890,
16,
508,
16,
833,
16,
1205,
16,
12209,
33,
8381,
16,
813,
5480,
33,
7036,
4672,
364,
707,
316,
365,
6315,
4821,
18,
588,
4712,
13332,
309,
508,
422,
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,
389,
4661,
1305,
691,
12,
2890,
16,
508,
16,
833,
16,
1205,
16,
12209,
33,
8381,
16,
813,
5480,
33,
7036,
4672,
364,
707,
316,
365,
6315,
4821,
18,
588,
4712,
13332,
309,
508,
422,
7... |
if applied == []: self.__set_current(None) else: self.__set_current(applied[-1]) | def pop_patch(self, name, keep = False): """Pops the top patch from the stack """ applied = self.get_applied() applied.reverse() assert(name in applied) | 532cdf94f80be6fb95682d9673c12a1d1aecf9a0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/532cdf94f80be6fb95682d9673c12a1d1aecf9a0/stack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
67,
2272,
12,
2890,
16,
508,
16,
3455,
273,
1083,
4672,
3536,
52,
4473,
326,
1760,
4729,
628,
326,
2110,
3536,
6754,
273,
365,
18,
588,
67,
438,
3110,
1435,
6754,
18,
9845,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
67,
2272,
12,
2890,
16,
508,
16,
3455,
273,
1083,
4672,
3536,
52,
4473,
326,
1760,
4729,
628,
326,
2110,
3536,
6754,
273,
365,
18,
588,
67,
438,
3110,
1435,
6754,
18,
9845,
1435,... | |
encoding='utf-8', mimeType='text/plain', compression='bz2'): | encoding='utf-8', mimetype='text/plain', compression='bz2'): | def makeValue(self, data, encoding='utf-8', mimeType='text/plain', compression='bz2'): | e7a849e8a8ae37385f9a390a1a584eaa150b512f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e7a849e8a8ae37385f9a390a1a584eaa150b512f/Types.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
620,
12,
2890,
16,
501,
16,
2688,
2218,
3158,
17,
28,
2187,
10707,
2218,
955,
19,
7446,
2187,
9154,
2218,
25292,
22,
11,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
1221,
620,
12,
2890,
16,
501,
16,
2688,
2218,
3158,
17,
28,
2187,
10707,
2218,
955,
19,
7446,
2187,
9154,
2218,
25292,
22,
11,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
doc = Request(self, 'user.getLovedTracks', self.api_key, params).execute() | doc = _Request(self, 'user.getLovedTracks', self.api_key, params).execute() | def getLovedTracks(self): """Returns the last 50 tracks loved by this user. """ params = self._getParams() doc = Request(self, 'user.getLovedTracks', self.api_key, params).execute() if not doc: return None list = [] for track in doc.getElementsByTagName('track'): title = self._extract(track, 'name', 0) artist = sel... | 903c9b1622fe56617e5099f20abdc69f2090f8e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/903c9b1622fe56617e5099f20abdc69f2090f8e0/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1504,
2155,
22138,
12,
2890,
4672,
3536,
1356,
326,
1142,
6437,
13933,
437,
2155,
635,
333,
729,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
997,
273,
389,
691,
12,
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,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1504,
2155,
22138,
12,
2890,
4672,
3536,
1356,
326,
1142,
6437,
13933,
437,
2155,
635,
333,
729,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
997,
273,
389,
691,
12,
2890,
... |
else: return | else: return | def open(self, version='', transaction=None, temporary=0, force=None, waitflag=1, mvcc=True, txn_mgr=None, synch=True): """Return a database Connection for use by application code. | 3f5dc8adcf31c234935a3c71325d44bf2f319df0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/3f5dc8adcf31c234935a3c71325d44bf2f319df0/DB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
1177,
2218,
2187,
2492,
33,
7036,
16,
6269,
33,
20,
16,
2944,
33,
7036,
16,
2529,
6420,
33,
21,
16,
7701,
952,
33,
5510,
16,
7827,
67,
13552,
33,
7036,
16,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
1177,
2218,
2187,
2492,
33,
7036,
16,
6269,
33,
20,
16,
2944,
33,
7036,
16,
2529,
6420,
33,
21,
16,
7701,
952,
33,
5510,
16,
7827,
67,
13552,
33,
7036,
16,
272,
... |
class SubversionTests(unittest.TestCase): | class SubversionTests(DjangoTestCase): | def testBadRoot(self): """Testing a bad CVSROOT""" file = 'test/testfile' rev = Revision('1.1') badrepo = Repository(name='CVS', path=self.cvs_repo_path + '2', tool=Tool.objects.get(name='CVS')) badtool = badrepo.get_scmtool() | 464956886f1e828de795677bd4bb7f27108f35f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1600/464956886f1e828de795677bd4bb7f27108f35f5/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6434,
2375,
12,
2890,
4672,
3536,
22218,
279,
5570,
385,
14640,
9185,
8395,
585,
273,
296,
3813,
19,
3813,
768,
11,
5588,
273,
13132,
2668,
21,
18,
21,
6134,
5570,
7422,
273,
6281,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6434,
2375,
12,
2890,
4672,
3536,
22218,
279,
5570,
385,
14640,
9185,
8395,
585,
273,
296,
3813,
19,
3813,
768,
11,
5588,
273,
13132,
2668,
21,
18,
21,
6134,
5570,
7422,
273,
6281,... |
count = self.SendMessage(win32defines.TTM_GETTOOLCOUNT, 0, 0) | count = self.SendMessage(win32defines.TTM_GETTOOLCOUNT) | def _PlayWithToolTipControls(self): "Just playing for now!" # get the number of tooltips associated with the control count = self.SendMessage(win32defines.TTM_GETTOOLCOUNT, 0, 0) | d79966405191de9504cf064467476aa5b42db4be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/d79966405191de9504cf064467476aa5b42db4be/common_controls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11765,
1190,
29250,
16795,
12,
2890,
4672,
315,
19642,
23982,
364,
2037,
4442,
468,
336,
326,
1300,
434,
358,
4397,
7146,
3627,
598,
326,
3325,
1056,
273,
365,
18,
3826,
1079,
12,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11765,
1190,
29250,
16795,
12,
2890,
4672,
315,
19642,
23982,
364,
2037,
4442,
468,
336,
326,
1300,
434,
358,
4397,
7146,
3627,
598,
326,
3325,
1056,
273,
365,
18,
3826,
1079,
12,
8... |
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=None) self.assertEqual(u.fp.fp._sock.gettimeout(), 60) | u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=None) self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60) | def test_ftp_NoneWithdefault(self): prev = socket.getdefaulttimeout() socket.setdefaulttimeout(60) try: u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=None) self.assertEqual(u.fp.fp._sock.gettimeout(), 60) finally: socket.setdefaulttimeout(prev) | 51b2a8d774e7420ac15a785d34fb4344035675fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/51b2a8d774e7420ac15a785d34fb4344035675fd/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11727,
67,
7036,
1190,
1886,
12,
2890,
4672,
2807,
273,
2987,
18,
588,
1886,
4538,
1435,
2987,
18,
542,
1886,
4538,
12,
4848,
13,
775,
30,
582,
273,
11527,
22,
18,
295,
18589... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11727,
67,
7036,
1190,
1886,
12,
2890,
4672,
2807,
273,
2987,
18,
588,
1886,
4538,
1435,
2987,
18,
542,
1886,
4538,
12,
4848,
13,
775,
30,
582,
273,
11527,
22,
18,
295,
18589... |
cur=self.conn.cursor() cur.execute('select max(rowid) from %s' % name) return int(cur.fetchone()[0]) | return self.conn.db.sqlite_last_insert_rowid() | def getAutoIncrement(self, name): cur=self.conn.cursor() cur.execute('select max(rowid) from %s' % name) return int(cur.fetchone()[0]) | 691b93bb7906a934fb49f635dbc273f56a1fb8fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/691b93bb7906a934fb49f635dbc273f56a1fb8fb/sqliteconn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26707,
10798,
12,
2890,
16,
508,
4672,
327,
365,
18,
4646,
18,
1966,
18,
19460,
67,
2722,
67,
6387,
67,
492,
350,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26707,
10798,
12,
2890,
16,
508,
4672,
327,
365,
18,
4646,
18,
1966,
18,
19460,
67,
2722,
67,
6387,
67,
492,
350,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
code = re.sub(r'U\+([0-9A-F]{2})([0-9A-F]{2}\b)',r'\1\t\2',items[0]).split('\t') | code = r1.sub(r'\1\t\2',items[0]).split('\t') | def process_readings(self, source, fout): oucode = 0 | 9145b8e82b3e4a975e637a96d80862a186515a18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10700/9145b8e82b3e4a975e637a96d80862a186515a18/unihan_conv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
896,
899,
12,
2890,
16,
1084,
16,
17382,
4672,
16694,
710,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
1207,
67,
896,
899,
12,
2890,
16,
1084,
16,
17382,
4672,
16694,
710,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
django.core.management.syncdb (verbosity = 1, interactive = False) | try: django.core.management.syncdb (verbosity = 1, interactive = False) except TypeError: django.core.management.syncdb () | def syncdb (db): from django.conf import settings (old_ENGINE, old_NAME, old_USER, old_PASSWORD, old_HOST, old_PORT) = (settings.DATABASE_ENGINE, settings.DATABASE_NAME, settings.DATABASE_USER, settings.DATABASE_PASSWORD, settings.DATABASE_HOST, settings.DATABASE_PORT) settings.DATABASE_ENGINE = 'postgresql' settings.... | fb7ea3774dc6679ccd05f2af1884e825373a2afc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7253/fb7ea3774dc6679ccd05f2af1884e825373a2afc/djschemadiff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
1966,
261,
1966,
4672,
628,
13710,
18,
3923,
1930,
1947,
261,
1673,
67,
28980,
16,
1592,
67,
1985,
16,
1592,
67,
4714,
16,
1592,
67,
13784,
16,
1592,
67,
8908,
16,
1592,
67,
6354... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
1966,
261,
1966,
4672,
628,
13710,
18,
3923,
1930,
1947,
261,
1673,
67,
28980,
16,
1592,
67,
1985,
16,
1592,
67,
4714,
16,
1592,
67,
13784,
16,
1592,
67,
8908,
16,
1592,
67,
6354... |
included = os.path.basename(fname)[:-2] + '_INCLUDED' pattern = ' if re.search(pattern, contents) == None: | if not found: | """All .h files must have #ifdef <file>_INCLUDED protection.""" | bce6219e2ec841edbfb80ef3b8a94d78c446a2c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/bce6219e2ec841edbfb80ef3b8a94d78c446a2c2/check_source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3536,
1595,
263,
76,
1390,
1297,
1240,
468,
430,
536,
411,
768,
34,
67,
706,
11686,
7660,
17862,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3536,
1595,
263,
76,
1390,
1297,
1240,
468,
430,
536,
411,
768,
34,
67,
706,
11686,
7660,
17862,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() ] PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ] | PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() + os.path.sep + "Python.h" ] if distutils.sysconfig.get_config_vars().has_key("DESTSHARED"): PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ] else: PYTHONLIBSEARCHPATH = [] | def checkPython(options): PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() ] PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ] PYTHONLIBSTATICSEARCHPATH = [] if sys.platform == "win32": PYTHONLIBSEARCHPATH += [ sys.prefix + "\Libs\python*.lib" ] PYTHO... | 6106b53503aa0c7e3a80d7e5eabafcff4a569afd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/6106b53503aa0c7e3a80d7e5eabafcff4a569afd/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
15774,
12,
2116,
4672,
12191,
20131,
23213,
17251,
4211,
273,
306,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
8103,
67,
9523,
1435,
397,
1140,
18,
803,
18,
10814,
397,
315,
15774,
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,
866,
15774,
12,
2116,
4672,
12191,
20131,
23213,
17251,
4211,
273,
306,
2411,
5471,
18,
9499,
1425,
18,
588,
67,
8103,
67,
9523,
1435,
397,
1140,
18,
803,
18,
10814,
397,
315,
15774,
18,... |
op1.int.reverse() op2.int.reverse() | def __add__(self, other, context=None): """Returns self + other. | 55342e783760513207a56d5a31fa49e579a96cd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/55342e783760513207a56d5a31fa49e579a96cd3/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
365,
397,
1308,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
1356,
365,
397,
1308,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
retcode = 0 | retcode = subprocess.call(["svn", "update", tmpdir]) | def scrape(): new = True try: os.mkdir(tmpdir) except OSError, what: if what.errno != errno.EEXIST: raise new = False if os.stat(tmpdir).st_uid != os.getuid(): raise MetasploitScrapingError("suspicious permissions for " + tmpdir) if new: retcode = subprocess.call(["svn", "co", exploits_svn_url, tmpdir]) else: retcode =... | 8ce56d42c506b2bf394c584ac50dae84c31f1bb5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/8ce56d42c506b2bf394c584ac50dae84c31f1bb5/metasploitsvn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
888,
25360,
13332,
394,
273,
1053,
775,
30,
1140,
18,
26686,
12,
5645,
1214,
13,
1335,
10002,
16,
4121,
30,
309,
4121,
18,
19088,
480,
8402,
18,
41,
11838,
30,
1002,
394,
273,
1083,
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,
888,
25360,
13332,
394,
273,
1053,
775,
30,
1140,
18,
26686,
12,
5645,
1214,
13,
1335,
10002,
16,
4121,
30,
309,
4121,
18,
19088,
480,
8402,
18,
41,
11838,
30,
1002,
394,
273,
1083,
30... |
raise MunkiDownloadError("No installer_item_location in item info.") | raise MunkiDownloadError("No %s in item info." % download_item_key) | def download_installeritem(item_pl): """Downloads a installer item. Raises an error if there are issues...""" location = item_pl.get('installer_item_location') if not location: raise MunkiDownloadError("No installer_item_location in item info.") ManagedInstallDir = munkicommon.pref('ManagedInstallDir') downloadbaseurl... | 7233ea384c0d8f73c40e1623556e9fc24f98637e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/7233ea384c0d8f73c40e1623556e9fc24f98637e/updatecheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
20163,
1726,
12,
1726,
67,
412,
4672,
3536,
22141,
279,
16050,
761,
18,
20497,
392,
555,
309,
1915,
854,
8296,
7070,
3660,
2117,
273,
761,
67,
412,
18,
588,
2668,
20163,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
20163,
1726,
12,
1726,
67,
412,
4672,
3536,
22141,
279,
16050,
761,
18,
20497,
392,
555,
309,
1915,
854,
8296,
7070,
3660,
2117,
273,
761,
67,
412,
18,
588,
2668,
20163,
67,
... |
if hasattr(ob, '__call__'): return 1 else: return isinstance(ob, types.ClassType) | return hasattr(ob, '__call__') or isinstance(ob, types.ClassType) | def safe_callable(ob): # Works with ExtensionClasses and Acquisition. if hasattr(ob, '__class__'): if hasattr(ob, '__call__'): return 1 else: return isinstance(ob, types.ClassType) else: return callable(ob) | 8430ae6c5d023444299a01fa4d815c7986f5ea7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8430ae6c5d023444299a01fa4d815c7986f5ea7b/Catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4183,
67,
7293,
12,
947,
4672,
468,
4147,
87,
598,
10021,
4818,
471,
12848,
22094,
18,
309,
3859,
12,
947,
16,
4940,
1106,
7250,
4672,
327,
3859,
12,
947,
16,
4940,
1991,
972,
6134,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4183,
67,
7293,
12,
947,
4672,
468,
4147,
87,
598,
10021,
4818,
471,
12848,
22094,
18,
309,
3859,
12,
947,
16,
4940,
1106,
7250,
4672,
327,
3859,
12,
947,
16,
4940,
1991,
972,
6134,
57... |
print "NOTE: Ignoring %s, using %s"%(new[zh].asasciilink(),pl.asasciilink()) | print "NOTE: Ignoring %s, using %s"%(new['zh'].asasciilink(),pl.asasciilink()) | def treesearch(pl): arr = {pl:None} # First make one step based on the language itself try: n = treestep(arr, pl, abort_on_redirect = 1) except wikipedia.IsRedirectPage: print "Is redirect page" return if n == 0 and not arr[pl]: print "Mother doesn't exist" return if untranslated: if len(arr) > 1: print "Already has tr... | 6ac2f9e153e8dbe360021e0a957614ba7b896fe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/6ac2f9e153e8dbe360021e0a957614ba7b896fe4/treelang.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9787,
3392,
991,
12,
412,
4672,
2454,
273,
288,
412,
30,
7036,
97,
468,
5783,
1221,
1245,
2235,
2511,
603,
326,
2653,
6174,
775,
30,
290,
273,
9787,
395,
881,
12,
5399,
16,
886,
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,
9787,
3392,
991,
12,
412,
4672,
2454,
273,
288,
412,
30,
7036,
97,
468,
5783,
1221,
1245,
2235,
2511,
603,
326,
2653,
6174,
775,
30,
290,
273,
9787,
395,
881,
12,
5399,
16,
886,
16,
... |
def find_library_file (self, dirs, lib): | def find_library_file (self, dirs, lib, debug=0): if debug: try_names = [lib + "_d", lib] else: try_names = [lib] | def find_library_file (self, dirs, lib): | e9adda1548c31c130ad38e398f08e61b00a3094b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e9adda1548c31c130ad38e398f08e61b00a3094b/msvccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12083,
67,
768,
261,
2890,
16,
7717,
16,
2561,
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,
... | [
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,
1104,
67,
12083,
67,
768,
261,
2890,
16,
7717,
16,
2561,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for a in pkg_resources.iter_entry_points( 'paste.global_paster_command', 'create') | for a in pkg_resources.iter_entry_points( 'paste.global_paster_command', 'create') | def webbuilder_process(context, request): valid_actions = ['submit_cgwbDownload', 'submit_cgwbGenerate'] errors = [] output_dir_prefix = None params = dict(request.params) actions = [action for action in request.params if re.match('^submit_', action)] noecho = [params.pop(action) for action in actions] configuration = ... | fe40ea8d2e545a7ce0b7a084f40e2f92abd0203c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13230/fe40ea8d2e545a7ce0b7a084f40e2f92abd0203c/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3311,
9574,
67,
2567,
12,
2472,
16,
590,
4672,
923,
67,
4905,
273,
10228,
9297,
67,
26275,
9464,
7109,
2187,
296,
9297,
67,
26275,
9464,
4625,
3546,
1334,
273,
5378,
876,
67,
1214,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3311,
9574,
67,
2567,
12,
2472,
16,
590,
4672,
923,
67,
4905,
273,
10228,
9297,
67,
26275,
9464,
7109,
2187,
296,
9297,
67,
26275,
9464,
4625,
3546,
1334,
273,
5378,
876,
67,
1214,
67,
... |
This is the message given by the server in responce to the | This is the message given by the server in response to the | def quotedata(data): """Quote data for email. Double leading '.', and change Unix newline '\n', or Mac '\r' into Internet CRLF end-of-line. """ return re.sub(r'(?m)^\.', '..', re.sub(r'(?:\r\n|\n|\r(?!\n))', CRLF, data)) | 38138a69a9ce81026584c5df54a7d656104103d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/38138a69a9ce81026584c5df54a7d656104103d9/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9298,
396,
12,
892,
4672,
3536,
10257,
501,
364,
2699,
18,
225,
3698,
7676,
2611,
16,
471,
2549,
9480,
9472,
2337,
82,
2187,
578,
13217,
2337,
86,
11,
1368,
21352,
21791,
679,
17,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9298,
396,
12,
892,
4672,
3536,
10257,
501,
364,
2699,
18,
225,
3698,
7676,
2611,
16,
471,
2549,
9480,
9472,
2337,
82,
2187,
578,
13217,
2337,
86,
11,
1368,
21352,
21791,
679,
17,
792,
... |
struct = 3 elif self.radioButton2.GetValue(): | def GetValues(self): if self.radioButton1.GetValue(): struct = 1 elif self.radioButton3.GetValue(): struct = 3 elif self.radioButton2.GetValue(): struct = 7 name = self.IndexName.GetValue() index = eval(self.Index.GetValue()) number = eval(self.Number.GetValue()) return index, name, struct, number | f10f1674cce933505ba0bf578b3a0b475804a5a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11017/f10f1674cce933505ba0bf578b3a0b475804a5a7/objdictedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1972,
12,
2890,
4672,
309,
365,
18,
17006,
3616,
21,
18,
967,
620,
13332,
1958,
273,
404,
1327,
365,
18,
17006,
3616,
23,
18,
967,
620,
13332,
1958,
273,
2371,
508,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1972,
12,
2890,
4672,
309,
365,
18,
17006,
3616,
21,
18,
967,
620,
13332,
1958,
273,
404,
1327,
365,
18,
17006,
3616,
23,
18,
967,
620,
13332,
1958,
273,
2371,
508,
273,
365,
18,
... | |
instance = h24.CreatFromDOM(dom.documentElement) | instance = h24.CreateFromDOM(dom.documentElement) | def test_h24 (self): xml = '<h24></h24>' dom = minidom.parseString(xml) instance = h24.CreateFromDOM(dom.documentElement) print instance print instance.toxml() self.assertRaises(MissingContentError, h24.CreateFromDOM, dom.documentElement) for num_elt in range(0, 5): xml = '<h24>%s</h24>' % (''.join(num_elt * ['<elt/>'... | 432bc85cfb05f93ce4273c510cca99b7d9fab4f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/432bc85cfb05f93ce4273c510cca99b7d9fab4f9/test-particle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
76,
3247,
261,
2890,
4672,
2025,
273,
2368,
76,
3247,
4695,
76,
3247,
1870,
4092,
273,
1131,
350,
362,
18,
2670,
780,
12,
2902,
13,
791,
273,
366,
3247,
18,
1684,
1265,
8168,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
76,
3247,
261,
2890,
4672,
2025,
273,
2368,
76,
3247,
4695,
76,
3247,
1870,
4092,
273,
1131,
350,
362,
18,
2670,
780,
12,
2902,
13,
791,
273,
366,
3247,
18,
1684,
1265,
8168,... |
if exclude_quote: | if remove_quote: | def remove_wikicode(text, re_dotall = False, debug = False): if not text: return "" if debug: write_log(text+'\n', "copyright/wikicode.txt") text = re.sub('(?i)</?(p|u|i|b|em|div|span|font|small|big|code|tt).*?>', '', text) text = re.sub('(?i)<(/\s*)?br(\s*/)?>', '', text) text = re.sub('<!--.*?-->', '', text) text ... | e8580311da32621d1a5295ed08c368281d379fc5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/e8580311da32621d1a5295ed08c368281d379fc5/copyright.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
11999,
3487,
12,
955,
16,
283,
67,
9811,
454,
273,
1083,
16,
1198,
273,
1083,
4672,
309,
486,
977,
30,
327,
1408,
225,
309,
1198,
30,
1045,
67,
1330,
12,
955,
6797,
64,
82,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
11999,
3487,
12,
955,
16,
283,
67,
9811,
454,
273,
1083,
16,
1198,
273,
1083,
4672,
309,
486,
977,
30,
327,
1408,
225,
309,
1198,
30,
1045,
67,
1330,
12,
955,
6797,
64,
82,... |
log.msg("stun policy says yes, use STUN") | log.msg("stun policy says yes, use STUN", system='sip') | def setLocalIP(self, dest): """ Try and determine the local IP address to use. We use a ConnectedDatagramProtocol in the (faint?) hope that on a machine with multiple interfaces, we'll get the right one """ # XXX Allow over-riding from shtoom.stun import StunHook, getPolicy global _CACHED_LOCAL_IP host, port = dest get... | 151c9fcc2f2d80d0ff28dab85b0bcc585be354f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/151c9fcc2f2d80d0ff28dab85b0bcc585be354f9/sip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27970,
2579,
12,
2890,
16,
1570,
4672,
3536,
6161,
471,
4199,
326,
1191,
2971,
1758,
358,
999,
18,
1660,
999,
279,
6683,
828,
5139,
17049,
5752,
316,
326,
261,
507,
474,
8535,
27370,
716... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27970,
2579,
12,
2890,
16,
1570,
4672,
3536,
6161,
471,
4199,
326,
1191,
2971,
1758,
358,
999,
18,
1660,
999,
279,
6683,
828,
5139,
17049,
5752,
316,
326,
261,
507,
474,
8535,
27370,
716... |
pass | pass | def setinputsizes(self, sizes): | 34c41b6b2a05b0c448580a7fb8f0602d4ac4c768 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8941/34c41b6b2a05b0c448580a7fb8f0602d4ac4c768/informixdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
10029,
3128,
12,
2890,
16,
8453,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
10029,
3128,
12,
2890,
16,
8453,
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,
-10... |
1.00000000000000 | 0.999999999999998 | def sha_an_numerical(self, prec = 53, use_database=False, regproof=False): """ Return the numerical analytic order of Sha, which is a floating point number in all cases. | 0b6a7ae551afb09f819f164f6839d54ba267e0ef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0b6a7ae551afb09f819f164f6839d54ba267e0ef/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6056,
67,
304,
67,
2107,
10882,
12,
2890,
16,
13382,
273,
15935,
16,
999,
67,
6231,
33,
8381,
16,
960,
24207,
33,
8381,
4672,
3536,
2000,
326,
17409,
392,
7834,
335,
1353,
434,
2638,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6056,
67,
304,
67,
2107,
10882,
12,
2890,
16,
13382,
273,
15935,
16,
999,
67,
6231,
33,
8381,
16,
960,
24207,
33,
8381,
4672,
3536,
2000,
326,
17409,
392,
7834,
335,
1353,
434,
2638,
6... |
return Crystals_of_letters_type_A_element(self, value); class Letters(Element): r""" A generic class for letters | return Crystal_of_letters_type_A_element(self, value); class Letter(Element): r""" A class for letters TEST: sage: from sage.combinat.crystals import Letter sage: parent1 = 1 sage: parent2 = 2 sage: l11 = Letter(parent1, 1) sage: l12 = Letter(parent1, 2) sage: l21 = Letter(parent2, 1) sage: l22 = Letter(parent2, 2) s... | def __call__(self, value): return Crystals_of_letters_type_A_element(self, value); | e2abaca418af8cb3ca8128b0fd154aed4615a689 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e2abaca418af8cb3ca8128b0fd154aed4615a689/crystals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
460,
4672,
327,
14998,
1094,
1031,
67,
792,
67,
26054,
67,
723,
67,
37,
67,
2956,
12,
2890,
16,
460,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
1991,
972,
12,
2890,
16,
460,
4672,
327,
14998,
1094,
1031,
67,
792,
67,
26054,
67,
723,
67,
37,
67,
2956,
12,
2890,
16,
460,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
window.do_itemhit(item, event) | self._windows[window].do_itemhit(item, event) | def do_dialogevent(self, event): gotone, window, item = DialogSelect(event) if gotone: if self._windows.has_key(window): window.do_itemhit(item, event) else: print 'Dialog event for unknown dialog' | 5c3cd713b4dd144a6d58c2949a533a6da58c1cf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5c3cd713b4dd144a6d58c2949a533a6da58c1cf1/FrameWork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
12730,
2575,
12,
2890,
16,
871,
4672,
2363,
476,
16,
2742,
16,
761,
273,
17242,
3391,
12,
2575,
13,
309,
2363,
476,
30,
309,
365,
6315,
13226,
18,
5332,
67,
856,
12,
5668,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
12730,
2575,
12,
2890,
16,
871,
4672,
2363,
476,
16,
2742,
16,
761,
273,
17242,
3391,
12,
2575,
13,
309,
2363,
476,
30,
309,
365,
6315,
13226,
18,
5332,
67,
856,
12,
5668,
4... |
print >>self, self.WARN, self.msg, | print >>self, BasicLogger.WARN, self.msg, | def warning(self, msg, *args): if self.level < 1: return print >>self, self.WARN, self.msg, print >>self, msg %args | 0e572c485ebb264ee85b8afc2865034ce368ae54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/0e572c485ebb264ee85b8afc2865034ce368ae54/logging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3436,
12,
2890,
16,
1234,
16,
380,
1968,
4672,
309,
365,
18,
2815,
411,
404,
30,
327,
1172,
1671,
2890,
16,
7651,
3328,
18,
27999,
16,
365,
18,
3576,
16,
1172,
1671,
2890,
16,
1234,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3436,
12,
2890,
16,
1234,
16,
380,
1968,
4672,
309,
365,
18,
2815,
411,
404,
30,
327,
1172,
1671,
2890,
16,
7651,
3328,
18,
27999,
16,
365,
18,
3576,
16,
1172,
1671,
2890,
16,
1234,
... |
def exception_handler(etype, value, tb): | def exception_handler(self, etype, value, tb): | def exception_handler(etype, value, tb): get_flowcontrol().measurement_end() raise etype, value, tb | 0d70cf91480ed1fe1cfdf6e8d9207b886b2509dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/0d70cf91480ed1fe1cfdf6e8d9207b886b2509dc/qtflow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1520,
67,
4176,
12,
2890,
16,
24700,
16,
460,
16,
8739,
4672,
336,
67,
2426,
7098,
7675,
16944,
67,
409,
1435,
1002,
24700,
16,
460,
16,
8739,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1520,
67,
4176,
12,
2890,
16,
24700,
16,
460,
16,
8739,
4672,
336,
67,
2426,
7098,
7675,
16944,
67,
409,
1435,
1002,
24700,
16,
460,
16,
8739,
282,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
def value_setter(self, newvalue): | def value(self, newvalue): | def value_setter(self, newvalue): return | 4e17a7d82e2bac201ec6a68b68f6234bfd884c24 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1534/4e17a7d82e2bac201ec6a68b68f6234bfd884c24/abc_abstractproperty_rw_deco.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
460,
12,
2890,
16,
394,
1132,
4672,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
460,
12,
2890,
16,
394,
1132,
4672,
327,
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,
... |
""" | """ | def _set_status(self, value): self._status = value | 8b169bdc1a9ad510d1fa7ac55cf02c0a00396ed8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/8b169bdc1a9ad510d1fa7ac55cf02c0a00396ed8/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
2327,
12,
2890,
16,
460,
4672,
365,
6315,
2327,
273,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
2327,
12,
2890,
16,
460,
4672,
365,
6315,
2327,
273,
460,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
str += "<br>Using tree: %s, branch %s" % (self.tree, self.branch) | str += "<br>Using tree: %s, branch %s, hostname %s" % (self.tree, self.branch, self.machine) | def describe(self): str = "" str += "Getting changes from the Tinderbox service running at %s " \ % self.tinderboxURL str += "<br>Using tree: %s, branch %s" % (self.tree, self.branch) return str | 3431613a58fcc2f2a4363847cc084921453783e7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13067/3431613a58fcc2f2a4363847cc084921453783e7/tinderboxpoller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6401,
12,
2890,
4672,
609,
273,
1408,
609,
1011,
315,
19213,
3478,
628,
326,
399,
14055,
2147,
1156,
3549,
622,
738,
87,
315,
521,
738,
365,
18,
88,
14055,
2147,
1785,
609,
1011,
3532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6401,
12,
2890,
4672,
609,
273,
1408,
609,
1011,
315,
19213,
3478,
628,
326,
399,
14055,
2147,
1156,
3549,
622,
738,
87,
315,
521,
738,
365,
18,
88,
14055,
2147,
1785,
609,
1011,
3532,
... |
fileName = "default_name" | fileName = "BK_default_name" | def download(self): lhcbGroup = credentials.getSelectedGroup() if lhcbGroup == "visitor": c.result = {"success":"false","error":"You are not authorised"} return c.result cl = LHCB_BKKDBClient(getRPCClient('Bookkeeping/BookkeepingManager')) req = () if request.params.has_key("root") and len(request.params["root"]) > 0: ... | b1793c46ebc44dfbd4a938440592a639a54d7aab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12767/b1793c46ebc44dfbd4a938440592a639a54d7aab/BK.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
12,
2890,
4672,
29143,
7358,
1114,
273,
4448,
18,
588,
7416,
1114,
1435,
309,
29143,
7358,
1114,
422,
315,
3516,
1811,
6877,
276,
18,
2088,
273,
12528,
4768,
15563,
5743,
15937,
1636... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
12,
2890,
4672,
29143,
7358,
1114,
273,
4448,
18,
588,
7416,
1114,
1435,
309,
29143,
7358,
1114,
422,
315,
3516,
1811,
6877,
276,
18,
2088,
273,
12528,
4768,
15563,
5743,
15937,
1636... |
self.change = {'cash': self.data[5], 'percent': self.data[6]} self.volume = {'total': self.data[7], 'daily': self.data[8]} self.value = {'total': float(self.last_price ) * float(self.volume['total']), 'bid': self.data[9], 'ask': self.data[10], 'p_close': self.data[11], 'l_close': self.data[12]} self.range = {'d... | print "Day range (real-time): %s" % Stock.realtime['day_range'] print "Market Capitalization: %s" % Stock.realtime['capital'] print | def __init__(self, symbol): """ Download stock's attributes and attribute them to this object. * Basic attributes: | 2bc56260e439cbf4ac58fccaf7d6d4f92d32f2b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2318/2bc56260e439cbf4ac58fccaf7d6d4f92d32f2b3/YahooFinance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3273,
4672,
3536,
13059,
12480,
1807,
1677,
471,
1566,
2182,
358,
333,
733,
18,
225,
380,
7651,
1677,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3273,
4672,
3536,
13059,
12480,
1807,
1677,
471,
1566,
2182,
358,
333,
733,
18,
225,
380,
7651,
1677,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
line = [ '"%s"' % x.encode(encoding) for x in line ] | line = [ '"%s"' % x.encode(encoding).replace('"', '""') for x in line ] | def to_str(self, encoding='UTF-8'): lines = [] # When schema or columns (or both) are None there is plain # string to string conversion if self.schema and self.columns: for line in self.state.lines: line = [ '"%s"' % self.schema[self.columns[i]].encode(value) for i, value in enumerate(line) ] lines.append(','.join(line... | 626f975eddd0c0b2fe69070c72791e25362c7b6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/626f975eddd0c0b2fe69070c72791e25362c7b6b/itools_csv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
701,
12,
2890,
16,
2688,
2218,
5159,
17,
28,
11,
4672,
2362,
273,
5378,
468,
5203,
1963,
578,
2168,
261,
280,
3937,
13,
854,
599,
1915,
353,
7351,
468,
533,
358,
533,
4105,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
701,
12,
2890,
16,
2688,
2218,
5159,
17,
28,
11,
4672,
2362,
273,
5378,
468,
5203,
1963,
578,
2168,
261,
280,
3937,
13,
854,
599,
1915,
353,
7351,
468,
533,
358,
533,
4105,
... |
bg,fg=divmod(q,256) | if color: bg,fg=divmod(q,256) else: bg,fg=0,7 | def dumphtml(self): h=self.height w=self.width r="" span="" span_bg=-1 span_fg=-1 for i in range(h*w): q,c=divmod(self.scr[i],256) bg,fg=divmod(q,256) if i==self.cy*w+self.cx: bg=1 fg=7 if (bg!=span_bg or fg!=span_fg or i==h*w-1): if len(span): r+='<span class="f%d b%d">%s</span>'%(span_fg,span_bg,cgi.escape(span.trans... | 9006feef9ed1aece90fd903313a881c66d0a3c47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13009/9006feef9ed1aece90fd903313a881c66d0a3c47/ajaxterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
2620,
12,
2890,
4672,
366,
33,
2890,
18,
4210,
341,
33,
2890,
18,
2819,
436,
1546,
6,
4548,
1546,
6,
4548,
67,
12370,
29711,
21,
4548,
67,
2137,
29711,
21,
364,
277,
316,
1048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
2620,
12,
2890,
4672,
366,
33,
2890,
18,
4210,
341,
33,
2890,
18,
2819,
436,
1546,
6,
4548,
1546,
6,
4548,
67,
12370,
29711,
21,
4548,
67,
2137,
29711,
21,
364,
277,
316,
1048,
... |
p = "Hello, World" | p = b"Hello, World" | def test_memmove(self): # large buffers apparently increase the chance that the memory # is allocated in high address space. a = create_string_buffer(1000000) p = "Hello, World" result = memmove(a, p, len(p)) self.failUnlessEqual(a.value, "Hello, World") | d68d131d29380af5a4adffb791b80049dc737c13 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/d68d131d29380af5a4adffb791b80049dc737c13/test_memfunctions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3917,
8501,
12,
2890,
4672,
468,
7876,
9664,
29614,
715,
10929,
326,
17920,
716,
326,
3778,
468,
353,
11977,
316,
3551,
1758,
3476,
18,
279,
273,
752,
67,
1080,
67,
4106,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3917,
8501,
12,
2890,
4672,
468,
7876,
9664,
29614,
715,
10929,
326,
17920,
716,
326,
3778,
468,
353,
11977,
316,
3551,
1758,
3476,
18,
279,
273,
752,
67,
1080,
67,
4106,
12,
... |
self.nat_discovery() | self._lock.acquire() self._running = True self._lock.release() try: self.nat_discovery() finally: self._lock.acquire() self._running = False self._lock.release() | def run(self): self.nat_discovery() | 698c4e731a473819061b683aa113c7cd992f5d04 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9686/698c4e731a473819061b683aa113c7cd992f5d04/NatCheckMsgHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
18757,
67,
22268,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
18757,
67,
22268,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
else: conn, cursor = self.open() | def open_for_store(self): """Open and initialize a connection for storing objects. | 148069014ce5c26f86993f308add743510824dbf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10510/148069014ce5c26f86993f308add743510824dbf/oracle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
1884,
67,
2233,
12,
2890,
4672,
3536,
3678,
471,
4046,
279,
1459,
364,
15729,
2184,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
1884,
67,
2233,
12,
2890,
4672,
3536,
3678,
471,
4046,
279,
1459,
364,
15729,
2184,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
"--expose-debug-as debugContext", | "--expose-debug-as", "debugContext", | def RunTests(build_dir=None): '''This is just a simple wrapper for running the test through v8_shell_sample. Since v8_shell_sample always returns 0 whether the test passes or fails, buildbot looks at stdout to test for failure. ''' script_dir = google.path_utils.ScriptDir() chrome_dir = google.path_utils.FindUpward(scr... | 12a489db6a540afb6726d00248de914abb33d654 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/12a489db6a540afb6726d00248de914abb33d654/debugger_unittests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
14650,
12,
3510,
67,
1214,
33,
7036,
4672,
9163,
2503,
353,
2537,
279,
4143,
4053,
364,
3549,
326,
1842,
3059,
331,
28,
67,
10304,
67,
6358,
18,
7897,
331,
28,
67,
10304,
67,
635... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
14650,
12,
3510,
67,
1214,
33,
7036,
4672,
9163,
2503,
353,
2537,
279,
4143,
4053,
364,
3549,
326,
1842,
3059,
331,
28,
67,
10304,
67,
6358,
18,
7897,
331,
28,
67,
10304,
67,
635... |
unicode_comment_pattern = re.compile(r'( |\n|^).. ') | unicode_comment_pattern = re.compile(r'( |\n|^)\.\. ') | def unicode_directive(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): r""" Convert Unicode character codes (numbers) to characters. Codes may be decimal numbers, hexadecimal numbers (prefixed by ``0x``, ``x``, ``\x``, ``U+``, ``u``, or ``\u``; e.g. ``U+262E``), or XML-styl... | 56f60cbe4b1a38b544fd6580ce68e75fa4e4d65e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/56f60cbe4b1a38b544fd6580ce68e75fa4e4d65e/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5252,
67,
22347,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
436,
8395,
4037,
9633,
3351,
6198,
261,
13851,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5252,
67,
22347,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
436,
8395,
4037,
9633,
3351,
6198,
261,
13851,... |
if exists("%s-prev"%dir_path): | if p.isdir("%s-prev"%dir_path): | def _mkdir_keep_prev(dir_path): if exists("%s-prev"%dir_path): local("rm -rf %s-prev"%dir_path) if exists("%s"%dir_path): local("mv %s %s-prev"%(dir_path, dir_path)) local("mkdir -p %s"%dir_path) | 23265700124e040af26c9d5696cf20f1c85a41a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12422/23265700124e040af26c9d5696cf20f1c85a41a4/demodata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26686,
67,
10102,
67,
10001,
12,
1214,
67,
803,
4672,
309,
293,
18,
291,
1214,
27188,
87,
17,
10001,
28385,
1214,
67,
803,
4672,
1191,
2932,
8864,
300,
5809,
738,
87,
17,
10001,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26686,
67,
10102,
67,
10001,
12,
1214,
67,
803,
4672,
309,
293,
18,
291,
1214,
27188,
87,
17,
10001,
28385,
1214,
67,
803,
4672,
1191,
2932,
8864,
300,
5809,
738,
87,
17,
10001,
2... |
state = "active" | state = _("active") | def run(self): | d62eb7fc2f8da5cc0b33e5d1229c2a062b1c701d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/61/d62eb7fc2f8da5cc0b33e5d1229c2a062b1c701d/proximity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
message = 'Revert "%s"\n\nThis reverts commit %s.\n' \ % (subject, commit.get_id_hash()) | body = '' message = 'Revert "%s"\n\nThis reverts commit %s.\n\n%s\n' \ % (subject, commit.get_id_hash(), body) | def __pick_commit(commit_id, patchname, options): """Pick a commit id. """ commit = git.Commit(commit_id) if options.name: patchname = options.name elif patchname and options.revert: patchname = 'revert-' + patchname if patchname: patchname = find_patch_name(patchname, crt_series.patch_exists) if options.parent: pare... | 1666c983e2260a60f9f6318a03e8cbb1cd320cba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12366/1666c983e2260a60f9f6318a03e8cbb1cd320cba/pick.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11503,
67,
7371,
12,
7371,
67,
350,
16,
4729,
529,
16,
702,
4672,
3536,
17968,
279,
3294,
612,
18,
3536,
3294,
273,
5071,
18,
5580,
12,
7371,
67,
350,
13,
225,
309,
702,
18,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11503,
67,
7371,
12,
7371,
67,
350,
16,
4729,
529,
16,
702,
4672,
3536,
17968,
279,
3294,
612,
18,
3536,
3294,
273,
5071,
18,
5580,
12,
7371,
67,
350,
13,
225,
309,
702,
18,
52... |
return "ExperimentConfiguration %s for %s" % (self.name, self.experiment_metadata) | return u"ExperimentConfiguration %s for %s" % (self.name, self.experiment_metadata) | def __unicode__(self): return "ExperimentConfiguration %s for %s" % (self.name, self.experiment_metadata) | e0c246b75fbd7beea69fbdb5057dc22d60db6a17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7374/e0c246b75fbd7beea69fbdb5057dc22d60db6a17/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
315,
22338,
1750,
738,
87,
364,
738,
87,
6,
738,
261,
2890,
18,
529,
16,
365,
18,
18142,
67,
4165,
13,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
315,
22338,
1750,
738,
87,
364,
738,
87,
6,
738,
261,
2890,
18,
529,
16,
365,
18,
18142,
67,
4165,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.listMatch[jobRequirements] = {'LastListMatch': now} | def submitPilot(self, jobDict, director): """ Submit pilot for the given job, this is done from the Thread Pool job """ try: job = jobDict['JobID'] ret = jobDB.getJobAttribute(job, 'Status') if ret['OK'] and not ret['Value'] == MAJOR_WAIT: self.log.warn( 'Job is no longer in %s Status:' % MAJOR_WAIT, job ) return S_ERR... | d109b88106e7666d141cb418ec5b6770850724aa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/d109b88106e7666d141cb418ec5b6770850724aa/Director.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
52,
22797,
12,
2890,
16,
1719,
5014,
16,
2657,
280,
4672,
3536,
17320,
293,
22797,
364,
326,
864,
1719,
16,
333,
353,
2731,
628,
326,
4884,
8828,
1719,
3536,
775,
30,
1719,
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,
4879,
52,
22797,
12,
2890,
16,
1719,
5014,
16,
2657,
280,
4672,
3536,
17320,
293,
22797,
364,
326,
864,
1719,
16,
333,
353,
2731,
628,
326,
4884,
8828,
1719,
3536,
775,
30,
1719,
273,
... | |
'L,TimeDateStamp', 'L,PointerToSymbolTable', 'L,NumberOfSymbols', 'H,SizeOfOptionalHeader', | 'I,TimeDateStamp', 'I,PointerToSymbolTable', 'I,NumberOfSymbols', 'H,SizeOfOptionalHeader', | def __init__(self, **args): for key, value in args.items(): setattr(self, key, value) | d0ca75794f69f1d09fd6d31d40ba2f1e9b3b7fb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/213/d0ca75794f69f1d09fd6d31d40ba2f1e9b3b7fb4/pefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
1968,
4672,
364,
498,
16,
460,
316,
833,
18,
3319,
13332,
9241,
12,
2890,
16,
498,
16,
460,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
1968,
4672,
364,
498,
16,
460,
316,
833,
18,
3319,
13332,
9241,
12,
2890,
16,
498,
16,
460,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if 'extraCredentials' in credDict : if type( credDict[ 'extraCredentials' ] ) not in ( types.StringType, types.UnicodeType ): self.__authLogger.warn( "The credentials seem to be forwarded by a host, but it is not a trusted one" ) | if 'extraCredentials' in credDict and not 'group' in credDict: credDict[ 'group' ] = credDict[ 'extraCredentials' ] if 'DN' in credDict: if credDict[ 'group' ] == self.__hostsGroup: if not self.getHostNickName( credDict ): self.__authLogger.warn( "Host is invalid" ) | def authQuery( self, methodQuery, credDict ): """ Check if the query is authorized for a credentials dictionary | 0dafdb1dfadfa20ea51341368a5cdf30a132733c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/0dafdb1dfadfa20ea51341368a5cdf30a132733c/AuthManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1357,
1138,
12,
365,
16,
707,
1138,
16,
6197,
5014,
262,
30,
3536,
2073,
309,
326,
843,
353,
10799,
364,
279,
4448,
3880,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1357,
1138,
12,
365,
16,
707,
1138,
16,
6197,
5014,
262,
30,
3536,
2073,
309,
326,
843,
353,
10799,
364,
279,
4448,
3880,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.outer_state.openBracket() | def parseToken(self, token): # This is an anonymous class if and only if the next # non-whitespace token is a bracket if token == '\n': return self if token == '{': self.outer_state.openBracket() self.outer_state.addAnonClass() elif token == '}': self.outer_state.closeBracket() elif token in ['"', "'"]: return IgnoreSt... | 8bafac57fb9af3eec6fb2ed77be499c561049f35 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7126/8bafac57fb9af3eec6fb2ed77be499c561049f35/JavaCommon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1345,
12,
2890,
16,
1147,
4672,
468,
1220,
353,
392,
13236,
667,
309,
471,
1338,
309,
326,
1024,
468,
1661,
17,
18777,
1147,
353,
279,
9843,
309,
1147,
422,
2337,
82,
4278,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1345,
12,
2890,
16,
1147,
4672,
468,
1220,
353,
392,
13236,
667,
309,
471,
1338,
309,
326,
1024,
468,
1661,
17,
18777,
1147,
353,
279,
9843,
309,
1147,
422,
2337,
82,
4278,
327,
... | |
except LookupCanceled(): | except LookupCanceled: | def update_completion_worker(self): while True: start_word, to_select = self.update_completion_q.get() self.update_completion_t0 = time.time() try: lang_word_list = self.do_lookup(start_word, to_select) except LookupCanceled(): pass else: gobject.idle_add(self.update_completion_callback, lang_word_list, to_select, star... | a02fdbce87b3eaeebe5fd2ba19e0ba63975467eb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/a02fdbce87b3eaeebe5fd2ba19e0ba63975467eb/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
11469,
67,
10124,
12,
2890,
4672,
1323,
1053,
30,
787,
67,
1095,
16,
358,
67,
4025,
273,
365,
18,
2725,
67,
11469,
67,
85,
18,
588,
1435,
365,
18,
2725,
67,
11469,
67,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
11469,
67,
10124,
12,
2890,
4672,
1323,
1053,
30,
787,
67,
1095,
16,
358,
67,
4025,
273,
365,
18,
2725,
67,
11469,
67,
85,
18,
588,
1435,
365,
18,
2725,
67,
11469,
67,
88,
... |
'start=%s' % self.start), 'reason=%s' % self.reason), 'args=%s' % self.args), 'end=%s' % self.end), 'object=%s' % self.object), | 'start=%s' % self.start, 'reason=%s' % self.reason, 'args=%s' % self.args, 'end=%s' % self.end, 'object=%s' % self.object, | def __str__(self): # this is a bad hack, please supply an implementation res = ' '.join([ 'start=%s' % self.start), 'reason=%s' % self.reason), 'args=%s' % self.args), 'end=%s' % self.end), 'object=%s' % self.object), ]) return res | 7d942c2f4a7e8f483ad5b90e36ffc05a872090d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/7d942c2f4a7e8f483ad5b90e36ffc05a872090d2/exceptions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
468,
333,
353,
279,
5570,
11769,
16,
9582,
14467,
392,
4471,
400,
273,
296,
2418,
5701,
3816,
296,
1937,
5095,
87,
11,
738,
365,
18,
1937,
16,
296,
1057... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
972,
12,
2890,
4672,
468,
333,
353,
279,
5570,
11769,
16,
9582,
14467,
392,
4471,
400,
273,
296,
2418,
5701,
3816,
296,
1937,
5095,
87,
11,
738,
365,
18,
1937,
16,
296,
1057... |
bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) | bosh.dirs['Custom1'], Image(r'images/custom1.png'), _(bosh.inisettings['custom1txt']))) | def InitStatusBar(): """Initialize status bar links.""" #--Bash Status/LinkBar #BashStatusBar.buttons.append(App_Fallout3()) BashStatusBar.buttons.append(Fose_Button()) BashStatusBar.buttons.append(AutoQuit_Button()) BashStatusBar.buttons.append( Fallout3_Button( bosh.dirs['app'].join('Fallout3.exe'), Image(r'images/fa... | 3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4378,
1482,
5190,
13332,
3536,
7520,
1267,
4653,
4716,
12123,
468,
413,
38,
961,
2685,
19,
2098,
5190,
468,
38,
961,
1482,
5190,
18,
16016,
18,
6923,
12,
3371,
67,
42,
287,
14533,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4378,
1482,
5190,
13332,
3536,
7520,
1267,
4653,
4716,
12123,
468,
413,
38,
961,
2685,
19,
2098,
5190,
468,
38,
961,
1482,
5190,
18,
16016,
18,
6923,
12,
3371,
67,
42,
287,
14533,
23,
... |
self.log_info ('sending %s' % repr(data)) | self.log_info('sending %s' % repr(data)) | def send (self, data): if self.debug: self.log_info ('sending %s' % repr(data)) self.out_buffer = self.out_buffer + data self.initiate_send() | 52c4de7c23c31563e4f0316b68865e17bb8c0f33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/52c4de7c23c31563e4f0316b68865e17bb8c0f33/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
261,
2890,
16,
501,
4672,
309,
365,
18,
4148,
30,
365,
18,
1330,
67,
1376,
2668,
87,
2846,
738,
87,
11,
738,
8480,
12,
892,
3719,
365,
18,
659,
67,
4106,
273,
365,
18,
659,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
261,
2890,
16,
501,
4672,
309,
365,
18,
4148,
30,
365,
18,
1330,
67,
1376,
2668,
87,
2846,
738,
87,
11,
738,
8480,
12,
892,
3719,
365,
18,
659,
67,
4106,
273,
365,
18,
659,
6... |
sage: LCM([1,2,3,4,5/3]) | sage: LCM([1,2,3,4,5]) | def lcm(a, b=None, integer=False): """ The least common multiple of a and b, or if a is a list and b is omitted the least common multiple of all elements of v. NOTE: Use integer=True to make this vastly faster if you are working with lists of integers. INPUT: a -- number b -- number (optional) integer -- (default: Fa... | bdc03f71082d359479de239409797484223e36e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/bdc03f71082d359479de239409797484223e36e0/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
7670,
12,
69,
16,
324,
33,
7036,
16,
3571,
33,
8381,
4672,
3536,
1021,
4520,
2975,
3229,
434,
279,
471,
324,
16,
578,
309,
279,
353,
279,
666,
471,
324,
353,
16195,
326,
4520,
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,
328,
7670,
12,
69,
16,
324,
33,
7036,
16,
3571,
33,
8381,
4672,
3536,
1021,
4520,
2975,
3229,
434,
279,
471,
324,
16,
578,
309,
279,
353,
279,
666,
471,
324,
353,
16195,
326,
4520,
2... |
rsp = self.apiPost("reviewrequests/%s/draft" % review_request.id) self.assertEqual(rsp['stat'], 'ok') | rsp = self.apiPost("reviewrequests/%s/reviews" % review_request.id) self.assertEqual(rsp['stat'], 'ok') self.assertTrue('review' in rsp) review_id = rsp['review']['id'] | def test_get_review_screenshot_comments(self): """Testing the GET reviewrequests/<id>/reviews/draft/screenshot-comments API""" screenshot_comment_text = "Test screenshot comment" x, y, w, h = 2, 2, 10, 10 | 6f62171a9876a999f22f6ebd5ed31ea85071c2f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/6f62171a9876a999f22f6ebd5ed31ea85071c2f8/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
16041,
67,
29435,
67,
9231,
12,
2890,
4672,
3536,
22218,
326,
4978,
10725,
11420,
28177,
350,
16893,
266,
7061,
19,
17153,
19,
29435,
17,
9231,
1491,
8395,
17179,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
16041,
67,
29435,
67,
9231,
12,
2890,
4672,
3536,
22218,
326,
4978,
10725,
11420,
28177,
350,
16893,
266,
7061,
19,
17153,
19,
29435,
17,
9231,
1491,
8395,
17179,
67,
... |
x509 = store.get_current_cert() | pem = store.get_current_cert().as_pem() | def verifyCallback(self, ok, store): # Returning 1 means any error is ignored and SSL checking continues log.debug('TwistedProtocolWrapper.verifyCallback') global trusted_until_shutdown_site_certs, \ trusted_until_shutdown_invalid_site_certs, \ unknown_issuer if not ok: try: err = store.get_error() x509 = store.get_c... | 89df4286345b6769b8583f5b9eb368a23770c242 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/89df4286345b6769b8583f5b9eb368a23770c242/ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
2428,
12,
2890,
16,
1529,
16,
1707,
4672,
468,
2000,
310,
404,
4696,
1281,
555,
353,
5455,
471,
7419,
6728,
29359,
613,
18,
4148,
2668,
23539,
25444,
5752,
3611,
18,
8705,
2428,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
2428,
12,
2890,
16,
1529,
16,
1707,
4672,
468,
2000,
310,
404,
4696,
1281,
555,
353,
5455,
471,
7419,
6728,
29359,
613,
18,
4148,
2668,
23539,
25444,
5752,
3611,
18,
8705,
2428,
61... |
return self.search_package_directories(qualified_name, pyx_suffixes, pos) | print "Pyrex.Compiler.Main.find_pyx_file:", qualified_name, pos result = self.search_package_directories(qualified_name, pyx_suffixes, pos) print "Pyrex.Compiler.Main.find_pyx_file: result =", result return result | def find_pyx_file(self, qualified_name, pos): # Search include path for the .pyx file corresponding to the # given fully-qualified module name, as for find_pxd_file(). return self.search_package_directories(qualified_name, pyx_suffixes, pos) | 664108392cf067623c44e45621a7e50e7fdc07c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2099/664108392cf067623c44e45621a7e50e7fdc07c6/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2074,
92,
67,
768,
12,
2890,
16,
9348,
67,
529,
16,
949,
4672,
468,
225,
5167,
2341,
589,
364,
326,
263,
2074,
92,
585,
4656,
358,
326,
468,
225,
864,
7418,
17,
19724,
1605... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
2074,
92,
67,
768,
12,
2890,
16,
9348,
67,
529,
16,
949,
4672,
468,
225,
5167,
2341,
589,
364,
326,
263,
2074,
92,
585,
4656,
358,
326,
468,
225,
864,
7418,
17,
19724,
1605... |
tempdata = tempdata.encode(self.setup['encoding']) | try: tempdata = tempdata.encode(self.setup['encoding']) except UnicodeEncodeError, e: self.logger.error("Error encoding file %s:\n %s" % \ (entry.get('name'), e)) return False | def VerifyConfigFile(self, entry, _): '''Install ConfigFile Entry''' # configfile verify is permissions check + content check permissionStatus = self.VerifyDirectory(entry, _) tbin = False if entry.get('encoding', 'ascii') == 'base64': tempdata = binascii.a2b_base64(entry.text) tbin = True elif entry.get('empty', 'fals... | f940deb8419060c6a5685ad460efa232ba1a8aad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/f940deb8419060c6a5685ad460efa232ba1a8aad/POSIX.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8553,
13705,
12,
2890,
16,
1241,
16,
389,
4672,
9163,
6410,
31988,
3841,
26418,
468,
642,
768,
3929,
353,
4371,
866,
397,
913,
866,
4132,
1482,
273,
365,
18,
8097,
2853,
12,
4099,
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,
8553,
13705,
12,
2890,
16,
1241,
16,
389,
4672,
9163,
6410,
31988,
3841,
26418,
468,
642,
768,
3929,
353,
4371,
866,
397,
913,
866,
4132,
1482,
273,
365,
18,
8097,
2853,
12,
4099,
16,
... |
res = run_sql(query, (recID, str(digit1)+str(digit2))) | res = run_sql(query, (recID, str(digit1)+str(digit2)+'%')) | def print_record(recID, format='hb', ot='', ln=CFG_SITE_LANG, decompress=zlib.decompress, search_pattern=None, user_info=None, verbose=0): """Prints record 'recID' formatted accoding to 'format'.""" _ = gettext_set_language(ln) out = "" # sanity check: record_exist_p = record_exists(recID) if record_exist_p == 0: # ... | b0a7a42e5f62a4288226e4e7ee86b0635ca9725d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/b0a7a42e5f62a4288226e4e7ee86b0635ca9725d/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
3366,
12,
3927,
734,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
7211,
33,
19727,
67,
20609,
67,
10571,
16,
16824,
33,
94,
2941,
18,
323,
14706,
16,
1623,
67,
4951,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
3366,
12,
3927,
734,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
7211,
33,
19727,
67,
20609,
67,
10571,
16,
16824,
33,
94,
2941,
18,
323,
14706,
16,
1623,
67,
4951,
33,
... |
buildno = int(buildno) | def _sys_version(): """ Returns a parsed version of Python's sys.version as tuple (version, buildno, builddate, compiler) referring to the Python version, build number, build date/time as string and the compiler identification string. Note that unlike the Python sys.version, the returned value for the Python version ... | edc8c8b0f98d7d995167ee059f8b3e1fe33dc85f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/edc8c8b0f98d7d995167ee059f8b3e1fe33dc85f/platform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9499,
67,
1589,
13332,
225,
3536,
2860,
279,
2707,
1177,
434,
6600,
1807,
2589,
18,
1589,
487,
3193,
261,
1589,
16,
1361,
2135,
16,
25666,
330,
449,
340,
16,
5274,
13,
1278,
20245,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9499,
67,
1589,
13332,
225,
3536,
2860,
279,
2707,
1177,
434,
6600,
1807,
2589,
18,
1589,
487,
3193,
261,
1589,
16,
1361,
2135,
16,
25666,
330,
449,
340,
16,
5274,
13,
1278,
20245,
... | |
self.root = None | self.root = self.prefix = None | def initialize_options(self): self.zip_ok = None self.install_dir = self.script_dir = self.exclude_scripts = None self.index_url = None self.find_links = None self.build_directory = None self.args = None self.optimize = self.record = None self.upgrade = self.always_copy = self.multi_version = None self.editable = self.... | ee68f241feb1442ac6f1288cb945258b7ed0e70a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/495/ee68f241feb1442ac6f1288cb945258b7ed0e70a/easy_install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
67,
2116,
12,
2890,
4672,
365,
18,
4450,
67,
601,
273,
599,
365,
18,
5425,
67,
1214,
273,
365,
18,
4263,
67,
1214,
273,
365,
18,
10157,
67,
12827,
273,
599,
365,
18,
1615,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
67,
2116,
12,
2890,
4672,
365,
18,
4450,
67,
601,
273,
599,
365,
18,
5425,
67,
1214,
273,
365,
18,
4263,
67,
1214,
273,
365,
18,
10157,
67,
12827,
273,
599,
365,
18,
1615,
67,
... |
c_call = c_call + " %s->%s = xmlStrdup(%s);\n" % (args[0][0], | c_call = c_call + " %s->%s = xmlStrdup((const xmlChar *)%s);\n" % (args[0][0], | def print_function_wrapper(name, output, export, include): global py_types global unknown_types global functions global skipped_modules try: (desc, ret, args, file) = functions[name] except: print "failed to get function %s infos" return if skipped_modules.has_key(file): return 0 if skip_function(name) == 1: return 0... | d2379010b1aa04ff87876d5b6dfd42ce2e12928f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/d2379010b1aa04ff87876d5b6dfd42ce2e12928f/generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
915,
67,
8376,
12,
529,
16,
876,
16,
3359,
16,
2341,
4672,
2552,
2395,
67,
2352,
2552,
5917,
67,
2352,
2552,
4186,
2552,
9700,
67,
6400,
225,
775,
30,
261,
5569,
16,
325,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
915,
67,
8376,
12,
529,
16,
876,
16,
3359,
16,
2341,
4672,
2552,
2395,
67,
2352,
2552,
5917,
67,
2352,
2552,
4186,
2552,
9700,
67,
6400,
225,
775,
30,
261,
5569,
16,
325,
1... |
print "open", askopenfilename(filetypes=[("all filez", "*")]).encode(enc) | print "open", askopenfilename(filetypes=[("all files", "*")]).encode(enc) | def askdirectory (**options): "Ask for a directory, and return the file name" return Directory(**options).show() | 74c94771d2936383f0e28e732dfaf5b272657cc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/74c94771d2936383f0e28e732dfaf5b272657cc8/tkFileDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6827,
5149,
261,
636,
2116,
4672,
315,
23663,
364,
279,
1867,
16,
471,
327,
326,
585,
508,
6,
327,
8930,
12,
636,
2116,
2934,
4500,
1435,
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,
6827,
5149,
261,
636,
2116,
4672,
315,
23663,
364,
279,
1867,
16,
471,
327,
326,
585,
508,
6,
327,
8930,
12,
636,
2116,
2934,
4500,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
'staff': u.status==STAFF, | 'administrateur': u.status>COACH, | def liste_echeances(request, **kwargs): """View: list of echeances of this administrator's groups or users. Filters on group and cours.""" # préparation des paramètres # les clés de ce dictionnaire *doivent* être des chaînes params = dict(request.GET.items()) for key, value in params.items(): if not isinstance(key, s... | 5622003147f995391ac97c1031fcc18f24ef8d30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11552/5622003147f995391ac97c1031fcc18f24ef8d30/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31614,
67,
8987,
73,
6872,
12,
2293,
16,
2826,
4333,
4672,
3536,
1767,
30,
666,
434,
425,
18706,
6872,
434,
333,
22330,
1807,
3252,
578,
3677,
18,
225,
14475,
603,
1041,
471,
276,
4390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31614,
67,
8987,
73,
6872,
12,
2293,
16,
2826,
4333,
4672,
3536,
1767,
30,
666,
434,
425,
18706,
6872,
434,
333,
22330,
1807,
3252,
578,
3677,
18,
225,
14475,
603,
1041,
471,
276,
4390,
... |
dc.SetPen(drawingPen) | def Draw(self, dc, boundingRect, styles, bitmapBrush): item = self._item | eb038a8d592a9472b37a26775af15c1eb21b246f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/eb038a8d592a9472b37a26775af15c1eb21b246f/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
12,
2890,
16,
6744,
16,
7552,
6120,
16,
5687,
16,
9389,
19114,
1218,
4672,
761,
273,
365,
6315,
1726,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
12,
2890,
16,
6744,
16,
7552,
6120,
16,
5687,
16,
9389,
19114,
1218,
4672,
761,
273,
365,
6315,
1726,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
for n in xrange(0, len(nodes)): p = gv.getv(nodes[n], "pos") | for n, n_gv in nodes.iteritems(): p = gv.getv(n_gv, "pos") | def graph_draw(g, pos=None, size=(15, 15), pin=False, layout= "neato", maxiter=None, ratio= "fill", overlap="prism", sep=None, splines=False, vsize=0.1, penwidth=1.0, elen=None, gprops={}, vprops={}, eprops={}, vcolor=None, ecolor=None, vcmap=matplotlib.cm.jet, vnorm=True, ecmap=matplotlib.cm.jet, enorm=True, output= "... | 19b68a13db29808d40d53cad6e35f01a3e20fe34 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3516/19b68a13db29808d40d53cad6e35f01a3e20fe34/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2667,
67,
9446,
12,
75,
16,
949,
33,
7036,
16,
963,
28657,
3600,
16,
4711,
3631,
7092,
33,
8381,
16,
3511,
33,
315,
4644,
31093,
3113,
25743,
33,
7036,
16,
7169,
33,
315,
5935,
3113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2667,
67,
9446,
12,
75,
16,
949,
33,
7036,
16,
963,
28657,
3600,
16,
4711,
3631,
7092,
33,
8381,
16,
3511,
33,
315,
4644,
31093,
3113,
25743,
33,
7036,
16,
7169,
33,
315,
5935,
3113,
... |
self.thread_count = MAX_SANE_THREAD_COUNT | self.thread_count = thread_count | def __init__(self): self._ips = set() self.thread_count = MAX_SANE_THREAD_COUNT super(NameServers, self).__init__() | 1430af6a930a8f31d1cf827010d7c93e35ea3017 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/1430af6a930a8f31d1cf827010d7c93e35ea3017/nameserver_list.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
6315,
7146,
273,
444,
1435,
365,
18,
5930,
67,
1883,
273,
2650,
67,
1883,
2240,
12,
461,
11913,
16,
365,
2934,
972,
2738,
972,
1435,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
6315,
7146,
273,
444,
1435,
365,
18,
5930,
67,
1883,
273,
2650,
67,
1883,
2240,
12,
461,
11913,
16,
365,
2934,
972,
2738,
972,
1435,
2,
-100,
-100... |
lines = [s.replace('\t', SPACE8) for s in text.split('\n')] | lines = [s.replace('\t', SPACE8) for s in text.splitlines()] | def _split_header(self, text): maxheaderlen = self.__maxheaderlen # Find out whether any lines in the header are really longer than # maxheaderlen characters wide. There could be continuation lines # that actually shorten it. Also, replace hard tabs with 8 spaces. lines = [s.replace('\t', SPACE8) for s in text.split(... | 9c54d8a782b36e843b35e10a09a65914f90f8757 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9c54d8a782b36e843b35e10a09a65914f90f8757/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4939,
67,
3374,
12,
2890,
16,
977,
4672,
943,
3374,
1897,
273,
365,
16186,
1896,
3374,
1897,
468,
4163,
596,
2856,
1281,
2362,
316,
326,
1446,
854,
8654,
7144,
2353,
468,
943,
3374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4939,
67,
3374,
12,
2890,
16,
977,
4672,
943,
3374,
1897,
273,
365,
16186,
1896,
3374,
1897,
468,
4163,
596,
2856,
1281,
2362,
316,
326,
1446,
854,
8654,
7144,
2353,
468,
943,
3374,... |
self.out.append(r'\DUfootnotemark{%s}{%s}{' % | self.out.append(r'\DUfootnotemark{%s}{%s}{' % | def visit_footnote_reference(self, node): href = '' if 'refid' in node: href = node['refid'] elif 'refname' in node: href = self.document.nameids[node['refname']] # if self.use_latex_footnotes: # TODO: insert footnote content at (or near) this place # print "footnote-ref to", node['refid'] # footnotes = (self.document.... | d1a332cc00a1b10df4c2b8fa6efdd3ca79dbf763 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/d1a332cc00a1b10df4c2b8fa6efdd3ca79dbf763/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
10923,
7652,
67,
6180,
12,
2890,
16,
756,
4672,
3897,
273,
875,
309,
296,
1734,
350,
11,
316,
756,
30,
3897,
273,
756,
3292,
1734,
350,
3546,
1327,
296,
1734,
529,
11,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
10923,
7652,
67,
6180,
12,
2890,
16,
756,
4672,
3897,
273,
875,
309,
296,
1734,
350,
11,
316,
756,
30,
3897,
273,
756,
3292,
1734,
350,
3546,
1327,
296,
1734,
529,
11,
316,
... |
if (len(flagrow) == 0) and (not clip): if (len(maskflag) == 0): raise Exception, 'maskflag is undefined' masks = s.create_mask(maskflag) | def sdflag(sdfile, antenna, scanlist, field, iflist, pollist, maskflag, flagrow, clip, clipminmax, clipoutside, flagmode, outfile, outform, overwrite, plotlevel): casalog.origin('sdflag') ### ### Now the actual task code ### try: myp=None if sdfile=='': raise Exception, 'sdfile is undefined' filename = os.path.expan... | 15d1302fcdfcb9607e06e0aa60d7ec0f82aa04c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/15d1302fcdfcb9607e06e0aa60d7ec0f82aa04c9/task_sdflag.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31789,
22532,
12,
6427,
768,
16,
392,
2253,
6582,
16,
4135,
1098,
16,
652,
16,
309,
1098,
16,
2952,
1098,
16,
3066,
6420,
16,
2982,
492,
16,
6807,
16,
6807,
1154,
1896,
16,
6807,
659,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31789,
22532,
12,
6427,
768,
16,
392,
2253,
6582,
16,
4135,
1098,
16,
652,
16,
309,
1098,
16,
2952,
1098,
16,
3066,
6420,
16,
2982,
492,
16,
6807,
16,
6807,
1154,
1896,
16,
6807,
659,
... | |
if Config != "NT386": | if Config != "NT386" and not Target.endswith("_NT"): | def _CopyCompiler(From, To): CreateDirectory(To) from_cm3 = os.path.join(From, "cm3") from_cm3exe = os.path.join(From, "cm3.exe") from_cm3cg = os.path.join(From, "cm3cg") from_cm3cgexe = os.path.join(From, "cm3cg.exe") if (Config != "NT386" and not FileExists(from_cm3) and not FileExists(from_cm3exe) and not FileExi... | 14e6facff06b2fc91279af79db1d8f8435565022 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/14e6facff06b2fc91279af79db1d8f8435565022/pylib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2951,
9213,
12,
1265,
16,
2974,
4672,
225,
1788,
2853,
12,
774,
13,
225,
628,
67,
7670,
23,
273,
1140,
18,
803,
18,
5701,
12,
1265,
16,
315,
7670,
23,
7923,
628,
67,
7670,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2951,
9213,
12,
1265,
16,
2974,
4672,
225,
1788,
2853,
12,
774,
13,
225,
628,
67,
7670,
23,
273,
1140,
18,
803,
18,
5701,
12,
1265,
16,
315,
7670,
23,
7923,
628,
67,
7670,
23,
... |
return self._decomp.Decompress(len(data) / self._nchannels, | return self._decomp.Decompress(len(data) // self._nchannels, | def _decomp_data(self, data): import cl dummy = self._decomp.SetParam(cl.FRAME_BUFFER_SIZE, len(data) * 2) return self._decomp.Decompress(len(data) / self._nchannels, data) | bca7b4894a1e338b53bc65b01a09484e5f2da318 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/bca7b4894a1e338b53bc65b01a09484e5f2da318/aifc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
323,
2919,
67,
892,
12,
2890,
16,
501,
4672,
1930,
927,
9609,
273,
365,
6315,
323,
2919,
18,
694,
786,
12,
830,
18,
15072,
67,
11302,
67,
4574,
16,
562,
12,
892,
13,
380,
576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
323,
2919,
67,
892,
12,
2890,
16,
501,
4672,
1930,
927,
9609,
273,
365,
6315,
323,
2919,
18,
694,
786,
12,
830,
18,
15072,
67,
11302,
67,
4574,
16,
562,
12,
892,
13,
380,
576,
... |
elif flags & Client._FLAG_PICKLE: | elif flags & Client._FLAG_SERIALIZED: | def _recv_value(self, server, flags, rlen): rlen += 2 # include \r\n buf = server.recv(rlen) if len(buf) != rlen: raise _Error("received %d bytes when expecting %d" % (len(buf), rlen)) | e5ed3a4ffff0eaa456d776e74df6c63995141ed2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/e5ed3a4ffff0eaa456d776e74df6c63995141ed2/memcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18334,
67,
1132,
12,
2890,
16,
1438,
16,
2943,
16,
436,
1897,
4672,
436,
1897,
1011,
576,
468,
2341,
521,
86,
64,
82,
1681,
273,
1438,
18,
18334,
12,
1321,
275,
13,
309,
562,
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,
389,
18334,
67,
1132,
12,
2890,
16,
1438,
16,
2943,
16,
436,
1897,
4672,
436,
1897,
1011,
576,
468,
2341,
521,
86,
64,
82,
1681,
273,
1438,
18,
18334,
12,
1321,
275,
13,
309,
562,
12... |
uri = req.uri if uri == '/': path = [''] else: uri = re_slashes.sub('/', uri) path = uri[1:].split('/') return root._traverse(req, path) except TraversalError: | if re_bibdoc_uri.match(req.uri): allowed_methods = ("GET", "POST", "HEAD", "OPTIONS") else: allowed_methods = ("GET", "POST", "OPTIONS") req.allow_methods(allowed_methods) if req.method not in allowed_methods: raise apache.SERVER_RETURN, apache.HTTP_METHOD_NOT_ALLOWED if req.method == 'OPTIONS': req.headers_out['Allow... | def _handler(req): """ This handler is invoked by mod_python with the apache request.""" | 60e09ca1bba94cdd1e4efbf4a45ba163ebdd84f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2111/60e09ca1bba94cdd1e4efbf4a45ba163ebdd84f0/webinterface_handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4176,
12,
3658,
4672,
3536,
1220,
1838,
353,
8187,
635,
681,
67,
8103,
598,
326,
12291,
590,
12123,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4176,
12,
3658,
4672,
3536,
1220,
1838,
353,
8187,
635,
681,
67,
8103,
598,
326,
12291,
590,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"""SMTP 'verify' command. Checks for address validity.""" | """SMTP 'verify' command -- checks for address validity.""" | def expn(self, address): """SMTP 'verify' command. Checks for address validity.""" self.putcmd("expn", quoteaddr(address)) return self.getreply() | 58a0b3fcac35fd85d6794fbcb62a4f4925cb00da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/58a0b3fcac35fd85d6794fbcb62a4f4925cb00da/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1329,
82,
12,
2890,
16,
1758,
4672,
3536,
55,
14636,
296,
8705,
11,
1296,
1493,
4271,
364,
1758,
13800,
12123,
365,
18,
458,
4172,
2932,
2749,
82,
3113,
4914,
684,
3069,
12,
2867,
3719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1329,
82,
12,
2890,
16,
1758,
4672,
3536,
55,
14636,
296,
8705,
11,
1296,
1493,
4271,
364,
1758,
13800,
12123,
365,
18,
458,
4172,
2932,
2749,
82,
3113,
4914,
684,
3069,
12,
2867,
3719,
... |
return self.cache.setdefault(args,self.func(*args)) | if not args in self.cache: self.cache[args] = self.func(*args) return self.cache[args] | def __call__(self, *args): try: return self.cache.setdefault(args,self.func(*args)) except TypeError: # uncachable -- for instance, passing a list as an argument. # Better to not cache than to blow up entirely. return self.func(*args) | bd341109a466cb120a2ee3494d6276ae7cea8cd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10307/bd341109a466cb120a2ee3494d6276ae7cea8cd7/tracer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
4672,
775,
30,
309,
486,
833,
316,
365,
18,
2493,
30,
365,
18,
2493,
63,
1968,
65,
273,
365,
18,
644,
30857,
1968,
13,
327,
365,
18,
2493,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
4672,
775,
30,
309,
486,
833,
316,
365,
18,
2493,
30,
365,
18,
2493,
63,
1968,
65,
273,
365,
18,
644,
30857,
1968,
13,
327,
365,
18,
2493,
... |
userDefaultsFile = resolvePath("~/.grid-control.conf", check = False) | userDefaultsFile = utils.resolvePath("~/.grid-control.conf", check = False) | def parseFileInt(fn): try: parser.readfp(open(fn, 'r')) except IOError: raise ConfigError("Error while reading configuration file '%s'!" % fn) except cp.Error: print "Configuration file `%s' contains an error:" % fn raise | 545a17b18e0b5208d69b9ae3f55d6501cf3e90a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8443/545a17b18e0b5208d69b9ae3f55d6501cf3e90a0/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31986,
1702,
12,
4293,
4672,
775,
30,
2082,
18,
896,
7944,
12,
3190,
12,
4293,
16,
296,
86,
26112,
1335,
8340,
30,
1002,
1903,
668,
2932,
668,
1323,
6453,
1664,
585,
1995,
87,
11,
4442... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31986,
1702,
12,
4293,
4672,
775,
30,
2082,
18,
896,
7944,
12,
3190,
12,
4293,
16,
296,
86,
26112,
1335,
8340,
30,
1002,
1903,
668,
2932,
668,
1323,
6453,
1664,
585,
1995,
87,
11,
4442... |
parser.set_defaults(dpi=96,quiet=False,sources={},animate=None,output=None,expressions=[],lastsource=None,id=()) | parser.set_defaults(dpi=96,quiet=False,sources={},animate=None,output=None,expressions=[],lastsource=None,id=[]) | def newexpression(option, opt_str, value, parser): if parser.values.lastsource is None: raise optparse.OptionValueError('%s must be preceded by a -s/--source option.' % option) if not isinstance(value,tuple): value = (None,value) parser.values.expressions.append((value[0],parser.values.lastsource,value[1])) | 4e2feb7d61fc667b6752e77b007b7f6c16ba25cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/383/4e2feb7d61fc667b6752e77b007b7f6c16ba25cb/multiplot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
8692,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
4672,
309,
2082,
18,
2372,
18,
2722,
3168,
353,
599,
30,
1002,
2153,
2670,
18,
13366,
668,
29909,
87,
1297,
506,
29953,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
8692,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
4672,
309,
2082,
18,
2372,
18,
2722,
3168,
353,
599,
30,
1002,
2153,
2670,
18,
13366,
668,
29909,
87,
1297,
506,
29953,
635,
... |
if plugin.closeWaitActive : | if plugin.closeWaitActive and plugin.eventHandlingIsAlive : | def run(self) : if self.watchDogTime == 0 : return False plugin = self.plugin CoInitialize() | 73adb38badb3754f4a03bf320c9c362e091da22a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/73adb38badb3754f4a03bf320c9c362e091da22a/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
13,
294,
309,
365,
18,
7585,
40,
717,
950,
422,
374,
294,
327,
1083,
1909,
273,
365,
18,
4094,
7695,
7520,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
13,
294,
309,
365,
18,
7585,
40,
717,
950,
422,
374,
294,
327,
1083,
1909,
273,
365,
18,
4094,
7695,
7520,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
label1 = gtk.Label("\t\tRecording is finished.\nrecordMyDesktop has exited with status %d\nDescription:%s\n"%(status,self.exit_status[int(status)])) | label1 = gtk.Label("\t\t"+_("Recording is finished.\nrecordMyDesktop has exited with status")+ ": %d\n"%(status)+_("Description")+":%s\n"%(self.exit_status[int(status)])) | def __exit_status_dialog(self,status): dialog = gtk.Dialog(title=None, parent=None, flags=0, buttons=None) label1=None try: label1 = gtk.Label("\t\tRecording is finished.\nrecordMyDesktop has exited with status %d\nDescription:%s\n"%(status,self.exit_status[int(status)])) except: label1 = gtk.Label("\t\tRecording is fi... | 575d85d8c50e1f5700bfbc519eaa7fe92903e36f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9403/575d85d8c50e1f5700bfbc519eaa7fe92903e36f/rmdTrayIcon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8593,
67,
2327,
67,
12730,
12,
2890,
16,
2327,
4672,
6176,
273,
22718,
18,
6353,
12,
2649,
33,
7036,
16,
982,
33,
7036,
16,
2943,
33,
20,
16,
9502,
33,
7036,
13,
1433,
21,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8593,
67,
2327,
67,
12730,
12,
2890,
16,
2327,
4672,
6176,
273,
22718,
18,
6353,
12,
2649,
33,
7036,
16,
982,
33,
7036,
16,
2943,
33,
20,
16,
9502,
33,
7036,
13,
1433,
21,
33,
... |
self.assertEqual(hash(desc.summary), 4980424973015496725) | self.assertEqual(hash(desc.summary), 588429333) | def testChangeset(self): """Testing PerforceTool.get_changeset""" | 99d9ebb5cebb8bbb44232b44aafe778f866d1580 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/99d9ebb5cebb8bbb44232b44aafe778f866d1580/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
29743,
12,
2890,
4672,
3536,
22218,
5722,
5734,
6364,
18,
588,
67,
6329,
278,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
29743,
12,
2890,
4672,
3536,
22218,
5722,
5734,
6364,
18,
588,
67,
6329,
278,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
value &= 0xFFFFFFFF | value &= 0xFFFFFFFF | def SetRegValue(value, name): """ Set register value @param name: the register name @param value: new register value @note: The debugger should be running It is not necessary to use this function to set register values. A register name in the left side of an assignment will do too. """ rv = idaapi.regval_t() if type(... | 14fac67483b08dd1be32c0afae368de44b30373e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6984/14fac67483b08dd1be32c0afae368de44b30373e/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1617,
620,
12,
1132,
16,
508,
4672,
3536,
1000,
1744,
460,
225,
632,
891,
508,
30,
326,
1744,
508,
632,
891,
460,
30,
394,
1744,
460,
225,
632,
7652,
30,
1021,
19977,
1410,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1617,
620,
12,
1132,
16,
508,
4672,
3536,
1000,
1744,
460,
225,
632,
891,
508,
30,
326,
1744,
508,
632,
891,
460,
30,
394,
1744,
460,
225,
632,
7652,
30,
1021,
19977,
1410,
506,
... |
height as the master) bordermode="inside" or "outside" - whether to take border width of master widget into account """ for k in ['in_']: if k in kw: kw[k[:-1]] = kw[k] del kw[k] | height as the master) bordermode="inside" or "outside" - whether to take border width of master widget into account """ | def place_configure(self, cnf={}, **kw): """Place a widget in the parent widget. Use as options: in=master - master relative to which the widget is placed. x=amount - locate anchor of this widget at position x of master y=amount - locate anchor of this widget at position y of master relx=amount - locate anchor of this ... | 27856c1fab2add060e43569aba04994d8d21c029 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/27856c1fab2add060e43569aba04994d8d21c029/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3166,
67,
14895,
12,
2890,
16,
23118,
28793,
2826,
9987,
4672,
3536,
6029,
279,
3604,
316,
326,
982,
3604,
18,
2672,
487,
702,
30,
316,
33,
7525,
300,
4171,
3632,
358,
1492,
326,
3604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3166,
67,
14895,
12,
2890,
16,
23118,
28793,
2826,
9987,
4672,
3536,
6029,
279,
3604,
316,
326,
982,
3604,
18,
2672,
487,
702,
30,
316,
33,
7525,
300,
4171,
3632,
358,
1492,
326,
3604,
... |
assert res == (a == "hello") | assert_equal(res,(a == "hello")) | def check_char(self,level=5): a = "hello" res = inline_tools.inline('return_val = (a == "hello");',['a']) assert res == (a == "hello") | 267b08d9c3e7613c126729a179f4503c91625e9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7416/267b08d9c3e7613c126729a179f4503c91625e9c/test_scxx_object.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3001,
12,
2890,
16,
2815,
33,
25,
4672,
279,
273,
315,
23711,
6,
400,
273,
6370,
67,
6642,
18,
10047,
2668,
2463,
67,
1125,
273,
261,
69,
422,
315,
23711,
8863,
2187,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3001,
12,
2890,
16,
2815,
33,
25,
4672,
279,
273,
315,
23711,
6,
400,
273,
6370,
67,
6642,
18,
10047,
2668,
2463,
67,
1125,
273,
261,
69,
422,
315,
23711,
8863,
2187,
3292,
... |
Let `M=` ``self.lattice().dual()`` be the lattice dual to the | Let `M=` ``self.dual_lattice()`` be the lattice dual to the | def orthogonal_sublattice(self, *args, **kwds): r""" The sublattice (in the dual lattice) orthogonal to the sublattice spanned by the cone. Let `M=` ``self.lattice().dual()`` be the lattice dual to the ambient lattice of the given cone `\sigma`. Then, in the notation of [Fulton]_, this method returns the sublattice | 80a9bb2c425ebeec4f69e966b1ed7b66d21d86f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/80a9bb2c425ebeec4f69e966b1ed7b66d21d86f7/cone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16208,
28396,
67,
87,
440,
24966,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
1021,
17809,
24966,
261,
267,
326,
24557,
16690,
13,
16208,
28396,
358,
326,
17809,
24966,
1694... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16208,
28396,
67,
87,
440,
24966,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
1021,
17809,
24966,
261,
267,
326,
24557,
16690,
13,
16208,
28396,
358,
326,
17809,
24966,
1694... |
(?P<title>[^[]+)? | (?P<title>[^[]+)? | def as_attachment(self): """Return this message as an attachment.""" return (self.getname(), self.gettype(), self.getbody()) | 5007a594beb2621dd1ac05e40b59df6d65936de3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/5007a594beb2621dd1ac05e40b59df6d65936de3/mailgw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
11461,
12,
2890,
4672,
3536,
990,
333,
883,
487,
392,
6042,
12123,
327,
261,
2890,
18,
588,
529,
9334,
365,
18,
588,
723,
9334,
365,
18,
588,
3432,
10756,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
11461,
12,
2890,
4672,
3536,
990,
333,
883,
487,
392,
6042,
12123,
327,
261,
2890,
18,
588,
529,
9334,
365,
18,
588,
723,
9334,
365,
18,
588,
3432,
10756,
2,
-100,
-100,
-100,... |
print >> DEBUGSTREAM, 'we got some refusals' | print >> DEBUGSTREAM, 'we got some refusals:', refused | def process_message(self, peer, mailfrom, rcpttos, data): lines = data.split('\n') # Look for the last header i = 0 for line in lines: if not line: break i += 1 lines.insert(i, 'X-Peer: %s' % peer[0]) data = NEWLINE.join(lines) refused = self._deliver(mailfrom, rcpttos, data) # TBD: what to do with refused addresses? p... | be3e352be45b63d1168727d245f93e7eecbfdba4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/be3e352be45b63d1168727d245f93e7eecbfdba4/smtpd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2150,
12,
2890,
16,
4261,
16,
4791,
2080,
16,
4519,
337,
14627,
16,
501,
4672,
2362,
273,
501,
18,
4939,
2668,
64,
82,
6134,
468,
10176,
364,
326,
1142,
1446,
277,
273,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2150,
12,
2890,
16,
4261,
16,
4791,
2080,
16,
4519,
337,
14627,
16,
501,
4672,
2362,
273,
501,
18,
4939,
2668,
64,
82,
6134,
468,
10176,
364,
326,
1142,
1446,
277,
273,
374,
... |
self.tag = tag | self._revspec = None self.revspec = (tag, revspec) def get_revspec(self): return self._revspec def set_revspec(self, (tag, revspec)): if revspec: self._revspec = ['-r%s' % revspec] elif tag: logging.info('tag ' + _('attribute is deprecated. Use revspec instead.')) self._revspec = ['-rtag:%s' % tag] elif self.config.s... | def __init__(self, repository, module_href, checkoutdir, tag): Branch.__init__(self, repository, module_href, checkoutdir) self.tag = tag | 6bb6439fa76a3dadc9bdb5c0828322c6c7dd6015 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4596/6bb6439fa76a3dadc9bdb5c0828322c6c7dd6015/bzr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3352,
16,
1605,
67,
7547,
16,
13926,
1214,
16,
1047,
4672,
15449,
16186,
2738,
972,
12,
2890,
16,
3352,
16,
1605,
67,
7547,
16,
13926,
1214,
13,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3352,
16,
1605,
67,
7547,
16,
13926,
1214,
16,
1047,
4672,
15449,
16186,
2738,
972,
12,
2890,
16,
3352,
16,
1605,
67,
7547,
16,
13926,
1214,
13,
365,
18,... |
print "Couldn't find msvc 9.0 compiler installation directory!" | print "Couldn't find msvc compiler installation directory!" | def get_msvs8_install_dirs(version = None, vs8suite = None): """ Get installed locations for various msvc-related products, like the .NET SDK and the Platform SDK. """ if not SCons.Util.can_read_reg: return {} if not version: versions = get_visualstudio_versions() if versions: version = versions[0] #use highest versi... | b0f2ea3adf6bc7a051d46942cf2c0e96c1cbe2bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6357/b0f2ea3adf6bc7a051d46942cf2c0e96c1cbe2bf/msvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
959,
6904,
28,
67,
5425,
67,
8291,
12,
1589,
273,
599,
16,
6195,
28,
30676,
273,
599,
4672,
3536,
968,
5876,
7838,
364,
11191,
4086,
4227,
17,
9243,
10406,
16,
3007,
326,
263,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
959,
6904,
28,
67,
5425,
67,
8291,
12,
1589,
273,
599,
16,
6195,
28,
30676,
273,
599,
4672,
3536,
968,
5876,
7838,
364,
11191,
4086,
4227,
17,
9243,
10406,
16,
3007,
326,
263,... |
def get(self, zstr, no_abbrev=False): | def get(self, zstr, allow_abbreviations=True): | def get(self, zstr, no_abbrev=False): state = { 'curr_alpha': 0, 'prev_alpha': 0, 'zscii': [], 'allow_abbreviations': no_abbrev, } | be9765d04303c4e0433ce98a269ff5a061cf5c2d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2052/be9765d04303c4e0433ce98a269ff5a061cf5c2d/zstring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
998,
701,
16,
1699,
67,
378,
7379,
1012,
33,
5510,
4672,
919,
273,
288,
296,
17016,
67,
5429,
4278,
374,
16,
296,
10001,
67,
5429,
4278,
374,
16,
296,
94,
1017,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
998,
701,
16,
1699,
67,
378,
7379,
1012,
33,
5510,
4672,
919,
273,
288,
296,
17016,
67,
5429,
4278,
374,
16,
296,
10001,
67,
5429,
4278,
374,
16,
296,
94,
1017,
28... |
site.lookupFunctionName (p) | site.lookupFunctionName (p, inln) | def lookupFunctionNames (self): | 16c76ad61122d4de2a1adf56a24d755d2c6f00b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11834/16c76ad61122d4de2a1adf56a24d755d2c6f00b3/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
2083,
1557,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3689,
2083,
1557,
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,
... |
if local: globals().update( locals() ) | def test_ExampleMaster(self): | 132c02d8264e957001d16b0a1459aa51f23e5916 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/132c02d8264e957001d16b0a1459aa51f23e5916/ExampleMaster.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
10908,
7786,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
10908,
7786,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
for user, authenticated, pages in cursor.execute(sql).fetchall(): | cursor.execute(sql) results = cursor.fetchall() if not results: return 'admin_user_notifications.html', {'wpages': notified_users, 'wikiurl':req.href.wiki()} for user, authenticated, pages in results: | def _do_users(self, req, cat, page, path_info): sql = "SELECT sid,authenticated,value " + \ "FROM session_attribute WHERE name = 'watched_pages';" db = self.env.get_db_cnx() cursor = db.cursor() notified_users = [] for user, authenticated, pages in cursor.execute(sql).fetchall(): attrs = {} attrs['sid'] = user attrs['a... | a94e4a8b2e95643a9de35c9b9264b0fc945a3e86 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9414/a94e4a8b2e95643a9de35c9b9264b0fc945a3e86/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
5577,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
589,
67,
1376,
4672,
1847,
273,
315,
4803,
7348,
16,
14454,
16,
1132,
315,
397,
521,
315,
11249,
1339,
67,
4589,
4852,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2896,
67,
5577,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
589,
67,
1376,
4672,
1847,
273,
315,
4803,
7348,
16,
14454,
16,
1132,
315,
397,
521,
315,
11249,
1339,
67,
4589,
4852,
... |
self._x, self._y = 0,0 self._sx, self._sy = 0,0 self._ax, self._ay = 0, 0 | self._x, self._y = 0,0 self._sx, self._sy = 0,0 self._ax, self._ay = 0, 0 self._tx, _ty = 0,0 | def __init__(self, name=None): self.name = name if name else "Unitled %s"%self.__name__ self._motion_queue = [] #actor's deltas for moving on the screen in the near-future self.action = None self.actions = {} self._alpha = 255 self._alpha_target = 255 self.font_speech = None self._x, self._y = 0,0 # place in... | 84c2c9bf76da2251a32e2f767e2d3a2d4532345f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14331/84c2c9bf76da2251a32e2f767e2d3a2d4532345f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
4672,
365,
18,
529,
273,
508,
309,
508,
469,
315,
2802,
1259,
738,
87,
28385,
2890,
16186,
529,
972,
365,
6315,
81,
8240,
67,
4000,
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,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
4672,
365,
18,
529,
273,
508,
309,
508,
469,
315,
2802,
1259,
738,
87,
28385,
2890,
16186,
529,
972,
365,
6315,
81,
8240,
67,
4000,
273,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.