rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
self.ui.debug(_("Requested URL: '%s'\n") % cu) | self.ui.debug(_("requested URL: '%s'\n") % cu) | def do_cmd(self, cmd, **args): data = args.pop('data', None) headers = args.pop('headers', {}) self.ui.debug(_("sending %s command\n") % cmd) q = {"cmd": cmd} q.update(args) qs = '?%s' % urllib.urlencode(q) cu = "%s%s" % (self._url, qs) try: if data: self.ui.debug(_("sending %s bytes\n") % len(data)) resp = self.urlope... | 8c7638eb769a264de5aa678aa555444ecc592642 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/8c7638eb769a264de5aa678aa555444ecc592642/httprepo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
4172,
12,
2890,
16,
1797,
16,
2826,
1968,
4672,
501,
273,
833,
18,
5120,
2668,
892,
2187,
599,
13,
1607,
273,
833,
18,
5120,
2668,
2485,
2187,
2618,
13,
365,
18,
4881,
18,
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,
4172,
12,
2890,
16,
1797,
16,
2826,
1968,
4672,
501,
273,
833,
18,
5120,
2668,
892,
2187,
599,
13,
1607,
273,
833,
18,
5120,
2668,
2485,
2187,
2618,
13,
365,
18,
4881,
18,
4... |
model_key = path.pop(0) | model_key = None if (len(path) > 0): model_key = path.pop(0) | def put(self, *_): """Does a REST put. '/<type>/<key>' -> completely replaces Model instance, returns key as plain text (200, 400, 404) """ | 41deca51c679b8c217a848d4f87c1446bde1c497 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4753/41deca51c679b8c217a848d4f87c1446bde1c497/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
12,
2890,
16,
380,
67,
4672,
3536,
10154,
279,
8392,
1378,
18,
225,
26800,
723,
16893,
32,
856,
1870,
317,
14416,
12878,
3164,
791,
16,
1135,
498,
487,
7351,
977,
261,
6976,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
12,
2890,
16,
380,
67,
4672,
3536,
10154,
279,
8392,
1378,
18,
225,
26800,
723,
16893,
32,
856,
1870,
317,
14416,
12878,
3164,
791,
16,
1135,
498,
487,
7351,
977,
261,
6976,
16,
... |
return "unknown extension for archive file: %s" % filename cmd = cmd % self.archiveFilename if self._cmd(output, "/", cmd): return "unpack command failed" | return "%s: unknown extension for archive file: %s" % (self.fullname(), filename) self.basename = filename[:-len(ext)] install_renames = [] for k, newloc in self._db.preferences.installLocations: if not newloc: continue if k == "--install-lib": oldloc = DEFAULT_INSTALLDIR else: return "%s: Don't know installLocation %... | def installPackageOnly(self, output=None): """Install a single source package. If output is given it should be a file-like object and it will receive a log of what happened.""" print 'PimpPackage_binary installPackageOnly' msgs = [] if self._dict.has_key('Pre-install-command'): msg.append("%s: Pre-install-command ign... | a57befcef5b0ba55fc6941f6703163ed733a3f07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a57befcef5b0ba55fc6941f6703163ed733a3f07/pimp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
2261,
3386,
12,
2890,
16,
876,
33,
7036,
4672,
3536,
6410,
279,
2202,
1084,
2181,
18,
225,
971,
876,
353,
864,
518,
1410,
506,
279,
585,
17,
5625,
733,
471,
518,
903,
6798,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
2261,
3386,
12,
2890,
16,
876,
33,
7036,
4672,
3536,
6410,
279,
2202,
1084,
2181,
18,
225,
971,
876,
353,
864,
518,
1410,
506,
279,
585,
17,
5625,
733,
471,
518,
903,
6798,
279,
... |
u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=60) | u = _urlopen_with_retry(self.FTP_HOST, timeout=60) | def test_ftp_Value(self): u = urllib2.urlopen("ftp://ftp.mirror.nl/pub/mirror/gnu/", timeout=60) self.assertEqual(u.fp.fp._sock.gettimeout(), 60) | 769d0eefd75e5d921806caf75450c7c3a706bd1c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/769d0eefd75e5d921806caf75450c7c3a706bd1c/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11727,
67,
620,
12,
2890,
4672,
582,
273,
389,
295,
18589,
67,
1918,
67,
9620,
12,
2890,
18,
17104,
67,
8908,
16,
2021,
33,
4848,
13,
365,
18,
11231,
5812,
12,
89,
18,
7944... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
11727,
67,
620,
12,
2890,
4672,
582,
273,
389,
295,
18589,
67,
1918,
67,
9620,
12,
2890,
18,
17104,
67,
8908,
16,
2021,
33,
4848,
13,
365,
18,
11231,
5812,
12,
89,
18,
7944... |
dev.nonblock() | def getdev(): dev = ossaudiodev.open('rw') dev.speed(8000) dev.nonblock() ch = dev.channels(1) dev.setfmt(ossaudiodev.AFMT_S16_LE) return dev | 184985df2fd5fa0595464e1e777b4d2dffc1a140 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/184985df2fd5fa0595464e1e777b4d2dffc1a140/aufile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5206,
13332,
4461,
273,
320,
1049,
24901,
77,
390,
90,
18,
3190,
2668,
21878,
6134,
4461,
18,
13871,
12,
26021,
13,
225,
462,
273,
4461,
18,
9114,
12,
21,
13,
4461,
18,
542,
8666,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5206,
13332,
4461,
273,
320,
1049,
24901,
77,
390,
90,
18,
3190,
2668,
21878,
6134,
4461,
18,
13871,
12,
26021,
13,
225,
462,
273,
4461,
18,
9114,
12,
21,
13,
4461,
18,
542,
8666,... | |
msg = common().get_server_environment() + msg | msg = common().exp_get_server_environment() + msg | def notifyChannel(self, name, level, msg): from service.web_services import common | b098c935e9401773c0b24680c089349afd6d2e04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/b098c935e9401773c0b24680c089349afd6d2e04/netsvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
2909,
12,
2890,
16,
508,
16,
1801,
16,
1234,
4672,
628,
1156,
18,
4875,
67,
8387,
1930,
2975,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
2909,
12,
2890,
16,
508,
16,
1801,
16,
1234,
4672,
628,
1156,
18,
4875,
67,
8387,
1930,
2975,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if not p: p = os.curdir | def loadTestModules(path, name='', packages=None): """ Return a test suite composed of all the tests from modules in a directory. Search for modules in directory `path`, beginning with `name`. If `packages` is true, search subdirectories (also beginning with `name`) recursively. Subdirectories must be Python packages... | ca105f19099ee47179d80ae4e8fd445ad5a5b3fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/ca105f19099ee47179d80ae4e8fd445ad5a5b3fb/package_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
4709,
7782,
12,
803,
16,
508,
2218,
2187,
5907,
33,
7036,
4672,
3536,
2000,
279,
1842,
11371,
18673,
434,
777,
326,
7434,
628,
4381,
316,
279,
1867,
18,
225,
5167,
364,
4381,
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,
1262,
4709,
7782,
12,
803,
16,
508,
2218,
2187,
5907,
33,
7036,
4672,
3536,
2000,
279,
1842,
11371,
18673,
434,
777,
326,
7434,
628,
4381,
316,
279,
1867,
18,
225,
5167,
364,
4381,
316,
... | |
if needs_add: | if not alreadyInCart: | def add_item(self, chosen_item, number_added, details={}): needs_add = False try: item_to_modify = self.cartitem_set.filter(product__id = chosen_item.id)[0] # Custom Products will not be added, they will each get their own line item #TODO: More sophisticated checks to make sure the options really are different if 'Cu... | 9bd62fbbd8b6dddb3550bd7c908245de0e7753ad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13656/9bd62fbbd8b6dddb3550bd7c908245de0e7753ad/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1726,
12,
2890,
16,
10447,
67,
1726,
16,
1300,
67,
9665,
16,
3189,
12938,
4672,
4260,
67,
1289,
273,
1083,
225,
775,
30,
761,
67,
869,
67,
17042,
273,
225,
365,
18,
11848,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1726,
12,
2890,
16,
10447,
67,
1726,
16,
1300,
67,
9665,
16,
3189,
12938,
4672,
4260,
67,
1289,
273,
1083,
225,
775,
30,
761,
67,
869,
67,
17042,
273,
225,
365,
18,
11848,
1... |
AUTHOR: John Cremona | def invertible_residues(self, reduce=True): """ Returns a iterator through a list of invertible residues modulo this integral ideal. | 0eb4070e28a5423ec6b12fc4236fdfa03b4e3060 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/0eb4070e28a5423ec6b12fc4236fdfa03b4e3060/number_field_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9848,
1523,
67,
15567,
3610,
12,
2890,
16,
5459,
33,
5510,
4672,
3536,
2860,
279,
2775,
3059,
279,
666,
434,
9848,
1523,
25435,
26109,
333,
21423,
23349,
18,
2,
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,
9848,
1523,
67,
15567,
3610,
12,
2890,
16,
5459,
33,
5510,
4672,
3536,
2860,
279,
2775,
3059,
279,
666,
434,
9848,
1523,
25435,
26109,
333,
21423,
23349,
18,
2,
-100,
-100,
-100,
-100,
-... | |
self.addText("<hr>\nUpdating files...") | self.addText("<hr>Updating files...") | def executeUpdate(self): self.addText("Starting updating new files") self.addText("Reading file status from server") | a02e8d7153f2c4738602d3234a7588184bd80c5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/a02e8d7153f2c4738602d3234a7588184bd80c5f/updateOrange.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17521,
12,
2890,
4672,
365,
18,
1289,
1528,
2932,
11715,
9702,
394,
1390,
7923,
365,
18,
1289,
1528,
2932,
15714,
585,
1267,
628,
1438,
7923,
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,
0,
0,
0,
0,
0,
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,
17521,
12,
2890,
4672,
365,
18,
1289,
1528,
2932,
11715,
9702,
394,
1390,
7923,
365,
18,
1289,
1528,
2932,
15714,
585,
1267,
628,
1438,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
- ``name`` -- string | - ``name`` -- string | def str_to_unit(name): """ Create the symbolic unit with given name. A symbolic unit is a class that derives from symbolic expression, and has a specialized docstring. INPUT: - ``name`` -- string OUTPUT: - UnitExpression EXAMPLES:: sage: sage.symbolic.units.str_to_unit('acre') acre sage: type(sage.symbolic.unit... | ed891e5784edd8a5e4d544f1ef837edc82b93924 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ed891e5784edd8a5e4d544f1ef837edc82b93924/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
869,
67,
4873,
12,
529,
4672,
3536,
1788,
326,
16754,
2836,
598,
864,
508,
18,
225,
432,
16754,
2836,
353,
279,
667,
716,
4854,
3606,
628,
16754,
2652,
16,
471,
711,
279,
2915... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
869,
67,
4873,
12,
529,
4672,
3536,
1788,
326,
16754,
2836,
598,
864,
508,
18,
225,
432,
16754,
2836,
353,
279,
667,
716,
4854,
3606,
628,
16754,
2652,
16,
471,
711,
279,
2915... |
return (csbi.wAttributes & 0x0007) | return (csbi.wAttributes & 0x000f) | def getDefaultTextColorInWindows(): """ This method determines the default text color and saves its color code inside the variable windowsColors['default']. Based on MIT-licensed code by Andre Burgaud published at http://starship.python.net/crew/theller/wiki/ColorConsole """ if sys.platform != 'win32' or not ctypes_fo... | b7bcd582b078dc832b008f393761201136d10e4e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/b7bcd582b078dc832b008f393761201136d10e4e/terminal_interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4829,
31061,
382,
10399,
13332,
3536,
1220,
707,
12949,
326,
805,
977,
2036,
471,
14649,
2097,
2036,
981,
4832,
326,
2190,
9965,
12570,
3292,
1886,
29489,
225,
25935,
603,
490,
1285,
17,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4829,
31061,
382,
10399,
13332,
3536,
1220,
707,
12949,
326,
805,
977,
2036,
471,
14649,
2097,
2036,
981,
4832,
326,
2190,
9965,
12570,
3292,
1886,
29489,
225,
25935,
603,
490,
1285,
17,
8... |
@return: (string) the reference line in which any recognised URLs have been tagged. """ | @return: (tuple) - containing 2 items: + the line after URLs have been recognised and removed; + a list of 2-item tuples where each tuple represents a recognised URL and its description: [(url, url-description), (url, url-description), ... ] @Exceptions raised: + an IndexError if there is a problem with the number of U... | def identify_and_tag_URLs(line): """Given a reference line, identify URLs in the line and tag them between <cds.URL> tags. URLs are identified in 2 forms: + Raw: http //cdsware.cern.ch/ + HTML marked-up: <a href="http //cdsware.cern.ch/">CERN Document Server Software Consortium</a> These URLs are considered to have 2 c... | 2d59c329303d08c7f68b0f31c1734d909a7d8679 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/2d59c329303d08c7f68b0f31c1734d909a7d8679/refextract.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9786,
67,
464,
67,
2692,
67,
15749,
12,
1369,
4672,
3536,
6083,
279,
2114,
980,
16,
9786,
10414,
316,
326,
980,
471,
1047,
2182,
3086,
411,
71,
2377,
18,
1785,
34,
2342,
18,
10414,
854... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9786,
67,
464,
67,
2692,
67,
15749,
12,
1369,
4672,
3536,
6083,
279,
2114,
980,
16,
9786,
10414,
316,
326,
980,
471,
1047,
2182,
3086,
411,
71,
2377,
18,
1785,
34,
2342,
18,
10414,
854... |
return r" + %s" % b | if c is not None: return r" + %s +" % b else: return r" + %s" % b | def repl(m): (a,b) = m.groups() if (a and a in vars and isinstance(vars[a], str)): return r"%s + " % a elif (b and b in vars and isinstance(vars[b], str)): return r" + %s" % b else: return m.group() | c000c43e5224b1b8cbc84e9e417780c4181666bc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5005/c000c43e5224b1b8cbc84e9e417780c4181666bc/preprocessor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6831,
12,
81,
4672,
261,
69,
16,
70,
13,
273,
312,
18,
4650,
1435,
309,
261,
69,
471,
279,
316,
4153,
471,
1549,
12,
4699,
63,
69,
6487,
609,
3719,
30,
327,
436,
28385,
87,
397,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6831,
12,
81,
4672,
261,
69,
16,
70,
13,
273,
312,
18,
4650,
1435,
309,
261,
69,
471,
279,
316,
4153,
471,
1549,
12,
4699,
63,
69,
6487,
609,
3719,
30,
327,
436,
28385,
87,
397,
31... |
raise("No work to do") | raise RuntimeError("No work to do") | def __init__(self, ui, really_delete, operations): """Create a Worker | 8cee626fd4b1aa2c23cf1632d9985dfb6628dbcc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/8cee626fd4b1aa2c23cf1632d9985dfb6628dbcc/Worker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5915,
16,
8654,
67,
3733,
16,
5295,
4672,
3536,
1684,
279,
11016,
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,
1001,
2738,
972,
12,
2890,
16,
5915,
16,
8654,
67,
3733,
16,
5295,
4672,
3536,
1684,
279,
11016,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
n = self._convert_other(n) if n._isinfinity() or n.adjusted() > 8: return context._raise_error(InvalidOperation, 'x ** INF') ans = self._check_nans(n, context) if ans: return ans if not n._isinfinity() and not n._isinteger(): | if self._is_special or n._is_special or n.adjusted() > 8: if n._isinfinity() or n.adjusted() > 8: return context._raise_error(InvalidOperation, 'x ** INF') ans = self._check_nans(n, context) if ans: return ans if not n._isinteger(): | def __pow__(self, n, modulo = None, context=None): """Return self ** n (mod modulo) | 636a6b100fe6083388bc5315758326078abe65b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/636a6b100fe6083388bc5315758326078abe65b4/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23509,
972,
12,
2890,
16,
290,
16,
26109,
273,
599,
16,
819,
33,
7036,
4672,
3536,
990,
365,
2826,
290,
261,
1711,
26109,
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,
0,
0,
0,
0,
0,
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,
23509,
972,
12,
2890,
16,
290,
16,
26109,
273,
599,
16,
819,
33,
7036,
4672,
3536,
990,
365,
2826,
290,
261,
1711,
26109,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self["actions"] = ActionMap(["SetupActions"], | self["actions"] = ActionMap(["SetupActions", "SatlistShortcutAction"], | def __init__(self, session, slotid): Screen.__init__(self, session) self.list = [ ] | 0d6eafb15604b8044bfaad3cc844b561f14cfbe1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/0d6eafb15604b8044bfaad3cc844b561f14cfbe1/Satconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
16,
4694,
350,
4672,
10146,
16186,
2738,
972,
12,
2890,
16,
1339,
13,
365,
18,
1098,
273,
306,
308,
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,
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,
1339,
16,
4694,
350,
4672,
10146,
16186,
2738,
972,
12,
2890,
16,
1339,
13,
365,
18,
1098,
273,
306,
308,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
while url[-1] in ");:,.?": | while url[-1] in ");:,.?'\"": | def translate(self, text): | 6245eb2d27f293881257f927c77ba0f68974b7b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6245eb2d27f293881257f927c77ba0f68974b7b1/faqmain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
2890,
16,
977,
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,
... | [
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,
4204,
12,
2890,
16,
977,
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... |
serviceType="Foo" component=" zope.app.component.tests.service.fooService" permission="zope.Public" /> """ | serviceType="Foo" component="zope.app.component.tests.service.fooService" permission="zope.Public" /> ''' | def testPublicProtectedServiceConfig(self): self.assertRaises(ComponentLookupError, getService, "Foo") | f3220b3768925f7acfef6df62db125eae9ecb495 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9537/f3220b3768925f7acfef6df62db125eae9ecb495/test_servicedirective.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4782,
15933,
1179,
809,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
1841,
6609,
668,
16,
6373,
16,
315,
42,
5161,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4782,
15933,
1179,
809,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
1841,
6609,
668,
16,
6373,
16,
315,
42,
5161,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
p, v = _loada(oid, index, file) | p, v, nv = _loada(oid, index, file) | def pack(self, t, referencesf): """Copy data from the current database file to a packed file Non-current records from transactions with time-stamp strings less than packtss are ommitted. As are all undone records. Also, data back pointers that point before packtss are resolved and the associated data are copied, sinc... | 3dc5f44ee6e70343dff189bf1cbf55c6b0274821 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/3dc5f44ee6e70343dff189bf1cbf55c6b0274821/FileStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
12,
2890,
16,
268,
16,
5351,
74,
4672,
3536,
2951,
501,
628,
326,
783,
2063,
585,
358,
279,
12456,
585,
225,
3858,
17,
2972,
3853,
628,
8938,
598,
813,
17,
14317,
2064,
5242,
235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
12,
2890,
16,
268,
16,
5351,
74,
4672,
3536,
2951,
501,
628,
326,
783,
2063,
585,
358,
279,
12456,
585,
225,
3858,
17,
2972,
3853,
628,
8938,
598,
813,
17,
14317,
2064,
5242,
235... |
self.body.append('\\textbf{\\large '+ self.language.labels[name] + '}\n'); | if name: self.body.append('\\textbf{\\large '+ self.language.labels[name] + '}\n'); | def visit_admonition(self, node, name): self.body.append('\\begin{center}\\begin{sffamily}\n') self.body.append('\\fbox{\\parbox{\\admonitionwidth}{\n') self.body.append('\\textbf{\\large '+ self.language.labels[name] + '}\n'); self.body.append('\\vspace{2mm}\n') | 8b5bf758f1bc30137cc4e548f5fd8e129819b722 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/8b5bf758f1bc30137cc4e548f5fd8e129819b722/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
361,
2586,
608,
12,
2890,
16,
756,
16,
508,
4672,
365,
18,
3432,
18,
6923,
2668,
1695,
10086,
95,
5693,
97,
1695,
10086,
95,
87,
1403,
3954,
6280,
82,
6134,
365,
18,
3432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
361,
2586,
608,
12,
2890,
16,
756,
16,
508,
4672,
365,
18,
3432,
18,
6923,
2668,
1695,
10086,
95,
5693,
97,
1695,
10086,
95,
87,
1403,
3954,
6280,
82,
6134,
365,
18,
3432,
... |
self._log(Logger.WARNING, 0, 0, format, *args) def warningln(self, format, *args): self._log(Logger.WARNING, 1, 0, format, *args) | """ Warning log. """ self._log(self.WARNING, 0, 0, format, *args) def warningLn(self, format, *args): """ Warning log with newline. """ self._log(self.WARNING, 1, 0, format, *args) | def warning(self, format, *args): self._log(Logger.WARNING, 0, 0, format, *args) | 3d7d63966162f8881fad278dc8cc728a7e5a1f77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/3d7d63966162f8881fad278dc8cc728a7e5a1f77/logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3436,
12,
2890,
16,
740,
16,
380,
1968,
4672,
365,
6315,
1330,
12,
3328,
18,
9511,
16,
374,
16,
374,
16,
740,
16,
380,
1968,
13,
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,
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,
3436,
12,
2890,
16,
740,
16,
380,
1968,
4672,
365,
6315,
1330,
12,
3328,
18,
9511,
16,
374,
16,
374,
16,
740,
16,
380,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground) | def __init__(self, parent, name): """ | 22c04600c6ce4bce1ec7c599d9c1a16dbc1eb0c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/22c04600c6ce4bce1ec7c599d9c1a16dbc1eb0c3/CollectionCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
508,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
508,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if isinstance(formats, sb.dtype): descr = formats | if dtype is not None: descr = sb.dtype(dtype) | def fromrecords(recList, dtype=None, shape=None, formats=None, names=None, titles=None, aligned=0, byteorder=None): """ create a recarray from a list of records in text form The data in the same field can be heterogeneous, they will be promoted to the highest data type. This method is intended for creating smaller re... | e43820609750d9035623af82e11cf7501bf9cc4c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/e43820609750d9035623af82e11cf7501bf9cc4c/records.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
7094,
12,
3927,
682,
16,
3182,
33,
7036,
16,
2179,
33,
7036,
16,
6449,
33,
7036,
16,
1257,
33,
7036,
16,
14693,
33,
7036,
16,
13939,
33,
20,
16,
1160,
1019,
33,
7036,
4672,
3536... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
7094,
12,
3927,
682,
16,
3182,
33,
7036,
16,
2179,
33,
7036,
16,
6449,
33,
7036,
16,
1257,
33,
7036,
16,
14693,
33,
7036,
16,
13939,
33,
20,
16,
1160,
1019,
33,
7036,
4672,
3536... |
if isCurrent(s1, species1) and isCurrent(s2, species2): goodSymbols.append(markerSymbol) else: badSymbols.append(markerSymbol) | if isAllCaps(s2): species2 = 2 else: species2 = 1 if isCurrent(s1, species1) and isCurrent(s2, species2): goodSymbols.append(markerSymbol) else: badSymbols.append(markerSymbol) except: pass | def isCurrent(symbol, species = 1): ok = 0 results = db.sql('select symbol, _Marker_Status_key from MRK_Marker ' + \ 'where _Species_key = %d ' % (species) + \ 'and symbol = "%s"' % (symbol), 'auto') for r in results: if r['symbol'] == symbol and r['_Marker_Status_key'] in [-2,1,3]: ok = 1 return ok | 6bf7dac4b6bb2870b265f5fee854fae3744ce725 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/340/6bf7dac4b6bb2870b265f5fee854fae3744ce725/MRK_NomenTransgene.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25694,
12,
7175,
16,
12891,
273,
404,
4672,
225,
1529,
273,
374,
1686,
273,
1319,
18,
4669,
2668,
4025,
3273,
16,
389,
7078,
67,
1482,
67,
856,
628,
490,
54,
47,
67,
7078,
296,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25694,
12,
7175,
16,
12891,
273,
404,
4672,
225,
1529,
273,
374,
1686,
273,
1319,
18,
4669,
2668,
4025,
3273,
16,
389,
7078,
67,
1482,
67,
856,
628,
490,
54,
47,
67,
7078,
296,
397,
... |
''' Display the status (probably a computed field based on tasks: "Scan scheduled", "Scan in progress" ''' return self.STATUS_TABLE[task.status] | return self.STATUS_TABLE[self.status] | def status_string(self): ''' Display the status (probably a computed field based on tasks: "Scan scheduled", "Scan in progress" ''' return self.STATUS_TABLE[task.status] | b769a4b550a5cd2aeeb89df1127633daa9e75c49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10197/b769a4b550a5cd2aeeb89df1127633daa9e75c49/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
67,
1080,
12,
2890,
4672,
9163,
9311,
326,
1267,
261,
7748,
6906,
279,
8470,
652,
2511,
603,
4592,
30,
315,
7972,
9755,
3113,
315,
7972,
316,
4007,
6,
9163,
327,
365,
18,
8608,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
67,
1080,
12,
2890,
4672,
9163,
9311,
326,
1267,
261,
7748,
6906,
279,
8470,
652,
2511,
603,
4592,
30,
315,
7972,
9755,
3113,
315,
7972,
316,
4007,
6,
9163,
327,
365,
18,
8608,
6... |
def frequency_to_energy(obj,**kwargs): | def frequency_to_energy(obj, **kwargs): | def frequency_to_energy(obj,**kwargs): """ This function converts a primary axis of a SOM or SO from frequency to energy. The frequency axis for a SOM must be in units of THz. The primary axis of a SO is assumed to be in units of THz. A tuple of [frequency, frequency_err2] (assumed to be in units of THz) can be convert... | a236c851290ad512721cd258e386f61f2599d46c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/a236c851290ad512721cd258e386f61f2599d46c/hlr_frequency_to_energy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8670,
67,
869,
67,
15358,
12,
2603,
16,
2826,
4333,
4672,
3536,
1220,
445,
7759,
279,
3354,
2654,
434,
279,
348,
1872,
578,
7460,
628,
8670,
358,
12929,
18,
1021,
8670,
2654,
364,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8670,
67,
869,
67,
15358,
12,
2603,
16,
2826,
4333,
4672,
3536,
1220,
445,
7759,
279,
3354,
2654,
434,
279,
348,
1872,
578,
7460,
628,
8670,
358,
12929,
18,
1021,
8670,
2654,
364,
279,
... |
ticket, time.strftime('%s'), author, 'comment', '', '{{{\n%s\n}}}' % (value.encode('utf-8'), )) | ticket, time.strftime('%s'), author, 'comment', '', comment) | def addTicketComment(self, ticket, time, author, value): c = self.db().cursor() c.execute("""INSERT INTO ticket_change (ticket, time, author, field, oldvalue, newvalue) VALUES (%s, %s, %s, %s, %s, %s)""", ticket, time.strftime('%s'), author, 'comment', '', '{{{\n%s\n}}}' % (value.encode('utf-8'), )) self.db().co... | 278262b3815812ba5a808f31a44ab5da9fcaadf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/278262b3815812ba5a808f31a44ab5da9fcaadf9/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
13614,
4469,
12,
2890,
16,
9322,
16,
813,
16,
2869,
16,
460,
4672,
276,
273,
365,
18,
1966,
7675,
9216,
1435,
276,
18,
8837,
2932,
3660,
11356,
12421,
9322,
67,
3427,
261,
16282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
13614,
4469,
12,
2890,
16,
9322,
16,
813,
16,
2869,
16,
460,
4672,
276,
273,
365,
18,
1966,
7675,
9216,
1435,
276,
18,
8837,
2932,
3660,
11356,
12421,
9322,
67,
3427,
261,
16282,
... |
for n in self.villagers: | for n in self.live_players: | def do_command(self, e, cmd, from_private): """This is the function called whenever someone sends a public or private message addressed to the bot. (e.g. "bot: blah"). Parse the CMD, execute it, then reply either to public channel or via /msg, based on how the command was received. E is the original event, and FROM_P... | def2232932aeb9014b792331b24dbd7058c9d788 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3953/def2232932aeb9014b792331b24dbd7058c9d788/wolfbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3076,
12,
2890,
16,
425,
16,
1797,
16,
628,
67,
1152,
4672,
3536,
2503,
353,
326,
445,
2566,
17334,
18626,
9573,
279,
1071,
578,
3238,
883,
527,
4638,
358,
326,
2512,
18,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3076,
12,
2890,
16,
425,
16,
1797,
16,
628,
67,
1152,
4672,
3536,
2503,
353,
326,
445,
2566,
17334,
18626,
9573,
279,
1071,
578,
3238,
883,
527,
4638,
358,
326,
2512,
18,
261,... |
if (n < 0) or (ftol <= 0) or (xtol <= 0) or (gtol <= 0) | if (n < 0) or (ftol <= 0) or (xtol <= 0) or (gtol <= 0) \ | def iterfunct(myfunct, p, iter, fnorm, functkw=None, parinfo=None, quiet=0, dof=None, [iterkw keywords here]) | 92adc32a35faec42a9dc5f570b76056f1d809f12 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/682/92adc32a35faec42a9dc5f570b76056f1d809f12/mpfit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
74,
6931,
12,
4811,
74,
6931,
16,
293,
16,
1400,
16,
2295,
535,
16,
12882,
9987,
33,
7036,
16,
779,
1376,
33,
7036,
16,
10902,
33,
20,
16,
741,
74,
33,
7036,
16,
306,
2165,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
74,
6931,
12,
4811,
74,
6931,
16,
293,
16,
1400,
16,
2295,
535,
16,
12882,
9987,
33,
7036,
16,
779,
1376,
33,
7036,
16,
10902,
33,
20,
16,
741,
74,
33,
7036,
16,
306,
2165,
9... |
function doclink(id, name, targets) { | function doclink(id, name, targets_id) { | def _colorize_re(tree, noparen=0): """ Recursively descend the given regexp parse tree to produce the HTML code for a colorized version of the regexp. @param tree: The regexp parse tree for the regexp that should be colorized. @type tree: L{sre_parse.SubPattern} @param noparen: If true, then don't include parenthases ... | cd4d6e5fbca5f698866ebe3598f5c2ca592983e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/cd4d6e5fbca5f698866ebe3598f5c2ca592983e0/html_colorize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3266,
554,
67,
266,
12,
3413,
16,
28797,
7892,
33,
20,
4672,
3536,
31362,
10653,
326,
864,
7195,
1109,
2151,
358,
11402,
326,
3982,
981,
364,
279,
2036,
1235,
1177,
434,
326,
7195,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3266,
554,
67,
266,
12,
3413,
16,
28797,
7892,
33,
20,
4672,
3536,
31362,
10653,
326,
864,
7195,
1109,
2151,
358,
11402,
326,
3982,
981,
364,
279,
2036,
1235,
1177,
434,
326,
7195,
... |
vs = [edge.v for edge in adj.query (node] | vs = [edge.v for edge in adj.query (node)] | def successor(self, graphs, nodes): immediate_successors = [] for node in nodes: # FIXME: need to find the graph which holds this node vs = [edge.v for edge in adj.query (node] immediate_successors.append(vs) return comb (items) | 62367e649288438494f47e756f90e34c0fa08929 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/62367e649288438494f47e756f90e34c0fa08929/shuffle-interpolate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19532,
12,
2890,
16,
19422,
16,
2199,
4672,
14483,
67,
4768,
1383,
273,
5378,
364,
756,
316,
2199,
30,
468,
9852,
30,
1608,
358,
1104,
326,
2667,
1492,
14798,
333,
756,
6195,
273,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19532,
12,
2890,
16,
19422,
16,
2199,
4672,
14483,
67,
4768,
1383,
273,
5378,
364,
756,
316,
2199,
30,
468,
9852,
30,
1608,
358,
1104,
326,
2667,
1492,
14798,
333,
756,
6195,
273,
306,
... |
def __init__(self, base_url, default_db_name=None): | def __init__(self, base_url, default_db_name=None, default_prefix=None): | def __init__(self, base_url, default_db_name=None): """Create a client. Doesn't make a connection to anything until it's used. | 36ca7b1cf17e73057f1931aa2bf8ea3eb80eb241 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9909/36ca7b1cf17e73057f1931aa2bf8ea3eb80eb241/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1026,
67,
718,
16,
805,
67,
1966,
67,
529,
33,
7036,
16,
805,
67,
3239,
33,
7036,
4672,
3536,
1684,
279,
1004,
18,
225,
9637,
82,
1404,
1221,
279,
1459... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1026,
67,
718,
16,
805,
67,
1966,
67,
529,
33,
7036,
16,
805,
67,
3239,
33,
7036,
4672,
3536,
1684,
279,
1004,
18,
225,
9637,
82,
1404,
1221,
279,
1459... |
["nonexistent", "-c", 'import sys; print "executable=%r" % sys.executable'], | ["nonexistent", "-c", 'import sys; print repr(sys.executable)'], | def test_executable(self): # Issue #7774: Ensure that sys.executable is an empty string if argv[0] # has been set to an non existent program name and Python is unable to # retrieve the real program name import subprocess p = subprocess.Popen( ["nonexistent", "-c", 'import sys; print "executable=%r" % sys.executable'], ... | e8031cf7770a5de71b647e250142d0c4df662d72 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/e8031cf7770a5de71b647e250142d0c4df662d72/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17751,
12,
2890,
4672,
468,
11820,
468,
4700,
5608,
30,
7693,
716,
2589,
18,
17751,
353,
392,
1008,
533,
309,
5261,
63,
20,
65,
468,
711,
2118,
444,
358,
392,
1661,
30364,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17751,
12,
2890,
4672,
468,
11820,
468,
4700,
5608,
30,
7693,
716,
2589,
18,
17751,
353,
392,
1008,
533,
309,
5261,
63,
20,
65,
468,
711,
2118,
444,
358,
392,
1661,
30364,
54... |
def get_ext_libname (self, ext_name): ext_path = string.split (ext_name, '.') if os.name == 'nt' and self.debug: return apply (os.path.join, ext_path) + '_d.lib' return apply (os.path.join, ext_path) + '.lib' | def get_ext_libname (self, ext_name): # create a filename for the (unneeded) lib-file. # extensions in debug_mode are named 'module_d.pyd' under windows ext_path = string.split (ext_name, '.') if os.name == 'nt' and self.debug: return apply (os.path.join, ext_path) + '_d.lib' return apply (os.path.join, ext_path) + '.l... | cc8645477b0232e960a3a8ec3e63808ea6618bfd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/cc8645477b0232e960a3a8ec3e63808ea6618bfd/build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
408,
67,
2941,
529,
261,
2890,
16,
1110,
67,
529,
4672,
468,
752,
279,
1544,
364,
326,
261,
318,
17471,
13,
2561,
17,
768,
18,
468,
4418,
316,
1198,
67,
3188,
854,
4141,
296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
408,
67,
2941,
529,
261,
2890,
16,
1110,
67,
529,
4672,
468,
752,
279,
1544,
364,
326,
261,
318,
17471,
13,
2561,
17,
768,
18,
468,
4418,
316,
1198,
67,
3188,
854,
4141,
296... | |
rec_pro_id = self.pool.get('ir.property').search(cr,uid,[('name','=','property_account_receivable'),('company_id','=',company_id)]) | rec_pro_id = property_obj.search(cr,uid,[('name','=','property_account_receivable'),('company_id','=',company_id)]) | def onchange_partner_id(self, cr, uid, ids, type, partner_id,\ date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False): invoice_addr_id = False contact_addr_id = False partner_payment_term = False acc_id = False bank_id = False fiscal_position = False | 9d3752728703af0f57a66468fda2058d9e5cfcdc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9d3752728703af0f57a66468fda2058d9e5cfcdc/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
618,
16,
19170,
67,
350,
17211,
1509,
67,
16119,
33,
8381,
16,
5184,
67,
6408,
33,
8381,
16,
19170,
67,
105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
618,
16,
19170,
67,
350,
17211,
1509,
67,
16119,
33,
8381,
16,
5184,
67,
6408,
33,
8381,
16,
19170,
67,
105... |
return node.children[0] | return optimize(node.children[0]) | def optimize(node): if isinstance(node, basestring): return node if type(node) is Node and len(node.children)==1: return node.children[0] for i, x in enumerate(node.children): node.children[i] = optimize(x) return node | 5f7c743c6a226b4924826ee74d314e8ac340329e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12391/5f7c743c6a226b4924826ee74d314e8ac340329e/expander.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10979,
12,
2159,
4672,
309,
1549,
12,
2159,
16,
10699,
4672,
327,
756,
309,
618,
12,
2159,
13,
353,
2029,
471,
562,
12,
2159,
18,
5906,
13,
631,
21,
30,
327,
10979,
12,
2159,
18,
590... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10979,
12,
2159,
4672,
309,
1549,
12,
2159,
16,
10699,
4672,
327,
756,
309,
618,
12,
2159,
13,
353,
2029,
471,
562,
12,
2159,
18,
5906,
13,
631,
21,
30,
327,
10979,
12,
2159,
18,
590... |
trailing_chars = m.group(3) | if m.group('section') == None: section = '' else: section = m.group('section') trailing_chars = m.group('linktrail') | def treat(self, refpl, disambPl): """ Parameters: disambPl - The disambiguation page or redirect we don't want anything to link on refpl - A page linking to disambPl Returns False if the user pressed q to completely quit the program. Otherwise, returns True. """ | 5ee73f68d575c81bbf2c3316270c7026d3aa2f71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/5ee73f68d575c81bbf2c3316270c7026d3aa2f71/solve_disambiguation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
12,
2890,
16,
1278,
412,
16,
1015,
2536,
1749,
4672,
3536,
7012,
30,
1015,
2536,
1749,
300,
1021,
1015,
26011,
367,
1363,
578,
3136,
732,
2727,
1404,
2545,
6967,
358,
1692,
603,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
12,
2890,
16,
1278,
412,
16,
1015,
2536,
1749,
4672,
3536,
7012,
30,
1015,
2536,
1749,
300,
1021,
1015,
26011,
367,
1363,
578,
3136,
732,
2727,
1404,
2545,
6967,
358,
1692,
603,
1... |
<S-F11>from dbcook.util.attr import setattr_kargs | from dbcook.util.attr import setattr_kargs | def str1( me): return reflector.obj2str( me, Base, builder.column4ID.name) | 88be630ccf236fba82a8058b0656010220a9e9d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10808/88be630ccf236fba82a8058b0656010220a9e9d0/sa2static.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
21,
12,
1791,
4672,
327,
17576,
18,
2603,
22,
701,
12,
1791,
16,
3360,
16,
2089,
18,
2827,
24,
734,
18,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
609,
21,
12,
1791,
4672,
327,
17576,
18,
2603,
22,
701,
12,
1791,
16,
3360,
16,
2089,
18,
2827,
24,
734,
18,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
term = str_to_unicode(term) | def _score_terms(self, terms_list): """ Scores the terms given in terms_list, which is a list of tuples (terms, coeff, split, ivtidx), where terms is the string or sequence of terms to be scored, coeff is the weight to give each term in this part (1.0 is normal), split is the function or regular expression used to spli... | e9426547ca9af32665d63969a6426b781cf7f925 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11722/e9426547ca9af32665d63969a6426b781cf7f925/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6355,
67,
10112,
12,
2890,
16,
6548,
67,
1098,
4672,
3536,
2850,
3485,
326,
6548,
864,
316,
6548,
67,
1098,
16,
1492,
353,
279,
666,
434,
10384,
261,
10112,
16,
11943,
16,
1416,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6355,
67,
10112,
12,
2890,
16,
6548,
67,
1098,
4672,
3536,
2850,
3485,
326,
6548,
864,
316,
6548,
67,
1098,
16,
1492,
353,
279,
666,
434,
10384,
261,
10112,
16,
11943,
16,
1416,
1... | |
sage: J.ramified_at((2, 5, 29), 3, 'c') | sage: J.ramified_at((2, 5, 29), 3, 'c') | def ramified_at(self, S, d=None, var='a'): """ Return all fields in the database of degree d ramified exactly at the primes in S. The fields are ordered by degree and discriminant. | 1822bf3778d542e3c382a7e7396a00e29989e196 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1822bf3778d542e3c382a7e7396a00e29989e196/jones.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24975,
939,
67,
270,
12,
2890,
16,
348,
16,
302,
33,
7036,
16,
569,
2218,
69,
11,
4672,
3536,
2000,
777,
1466,
316,
326,
2063,
434,
10782,
302,
24975,
939,
8950,
622,
326,
846,
4485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24975,
939,
67,
270,
12,
2890,
16,
348,
16,
302,
33,
7036,
16,
569,
2218,
69,
11,
4672,
3536,
2000,
777,
1466,
316,
326,
2063,
434,
10782,
302,
24975,
939,
8950,
622,
326,
846,
4485,
... |
$q$-expansion of this expression to be zero is a system of v + k linear equations in d**2 coefficients, where k is the number of nonzero negative coefficients that can appear. | $q$-expansion of this expression to be zero is a system of $v + k$ linear equations in $d**2$ coefficients, where $k$ is the number of nonzero negative coefficients that can appear. | def eta_poly_relations(eta_elements, degree, labels=['x1','x2'], verbose=False): r""" Find polynomial relations between eta products. INPUTS: -- eta_elements (list): a list of EtaGroupElement objects. Not implemented unless this list has precisely two elements. -- degree (integer): the maximal degree of polynomial to ... | 1f3a538d6f6f09006ed698b975e492622ef875e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1f3a538d6f6f09006ed698b975e492622ef875e5/etaproducts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14251,
67,
16353,
67,
15018,
12,
1066,
67,
6274,
16,
10782,
16,
3249,
33,
3292,
92,
21,
17023,
92,
22,
17337,
3988,
33,
8381,
4672,
436,
8395,
4163,
16991,
7467,
3086,
14251,
10406,
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,
14251,
67,
16353,
67,
15018,
12,
1066,
67,
6274,
16,
10782,
16,
3249,
33,
3292,
92,
21,
17023,
92,
22,
17337,
3988,
33,
8381,
4672,
436,
8395,
4163,
16991,
7467,
3086,
14251,
10406,
18,
... |
args = (self._modules, self._getopts(), self._progress, self._cancel) | args = (opts, self._progress, self._cancel) self._messages['state'] = 'normal' self._messages.delete('0.0', 'end') self._messages['state'] = 'disabled' self._errpipe.clear() for m in sys.modules.keys(): if m not in self._old_modules: del sys.modules[m] reset_uid_cache() | def _go(self, *e): if len(self._modules) == 0: self._top.bell() return | 19275515c1011eb2ed1be810d73cf19c849a3b63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/19275515c1011eb2ed1be810d73cf19c849a3b63/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3240,
12,
2890,
16,
380,
73,
4672,
309,
562,
12,
2890,
6315,
6400,
13,
422,
374,
30,
365,
6315,
3669,
18,
70,
1165,
1435,
327,
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,
389,
3240,
12,
2890,
16,
380,
73,
4672,
309,
562,
12,
2890,
6315,
6400,
13,
422,
374,
30,
365,
6315,
3669,
18,
70,
1165,
1435,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
""" face._interior_points = Sequence([], int, check=False) face._boundary_points = Sequence(face.points()[:face.nvertices()], int, | Vertices don't have boundary:: sage: f = c.faces(dim=0)[0] sage: c._face_split_points(f) sage: len(f._interior_points) 1 sage: len(f._boundary_points) 0 """ if face.npoints() == 1: face._interior_points = face.points() face._boundary_points = Sequence([], int, check=False) else: face._interior_points = Sequence([], i... | def _face_split_points(self, face): r""" Compute and cache boundary and interior lattice points of ``face``. TESTS:: sage: c = lattice_polytope.octahedron(3).polar() sage: f = c.facets()[0] sage: v = f.__dict__.pop("_interior_points", None) sage: f.__dict__.has_key("_interior_points") False sage: v = f.__dict__.pop("... | 362861a9882309446c4c349c7d2c29aee884e521 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/362861a9882309446c4c349c7d2c29aee884e521/lattice_polytope.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
865,
67,
4939,
67,
4139,
12,
2890,
16,
7945,
4672,
436,
8395,
8155,
471,
1247,
7679,
471,
26230,
16690,
3143,
434,
12176,
865,
68,
8338,
225,
22130,
55,
2866,
225,
272,
410,
30,
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,
865,
67,
4939,
67,
4139,
12,
2890,
16,
7945,
4672,
436,
8395,
8155,
471,
1247,
7679,
471,
26230,
16690,
3143,
434,
12176,
865,
68,
8338,
225,
22130,
55,
2866,
225,
272,
410,
30,
2... |
sigmas=self.sigmas()) | sigmas=self.sigmas()).set_observation_type(self) | def as_non_anomalous_array(self): return array( miller_set=self.as_non_anomalous_set(), data=self.data(), sigmas=self.sigmas()) | d67b15e3df8d9a6dab2ccaef656ce8d2c1c3aedf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/d67b15e3df8d9a6dab2ccaef656ce8d2c1c3aedf/miller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
5836,
67,
304,
362,
287,
1481,
67,
1126,
12,
2890,
4672,
327,
526,
12,
312,
24462,
67,
542,
33,
2890,
18,
345,
67,
5836,
67,
304,
362,
287,
1481,
67,
542,
9334,
501,
33,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
5836,
67,
304,
362,
287,
1481,
67,
1126,
12,
2890,
4672,
327,
526,
12,
312,
24462,
67,
542,
33,
2890,
18,
345,
67,
5836,
67,
304,
362,
287,
1481,
67,
542,
9334,
501,
33,
2... |
def visit_citation(self, node): self.body.append(self.starttag(node, 'table', CLASS='citation', frame="void", rules="none")) self.footnote_backrefs(node) def depart_citation(self, node): self.body.append('</td></tr>\n' '</tbody>\n</table>\n') def visit_citation_reference(self, node): href = '' if node.has_key('refid'... | def visit_citation(self, node): self.body.append(self.starttag(node, 'table', CLASS='citation', frame="void", rules="none")) self.footnote_backrefs(node) | 6375238ab8247c4cfacf9efad70324a50b6c7ce8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/6375238ab8247c4cfacf9efad70324a50b6c7ce8/OOwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
71,
8773,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
1937,
2692,
12,
2159,
16,
296,
2121,
2187,
7383,
2218,
71,
8773,
2187,
2623,
1546,
6459,
3113,
2931,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
71,
8773,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
1937,
2692,
12,
2159,
16,
296,
2121,
2187,
7383,
2218,
71,
8773,
2187,
2623,
1546,
6459,
3113,
2931,... | |
reader = csv.reader(open("map.csv")) | reader = csv.reader(open(find_resource("map.csv"))) | def xtestx_gratuitous_loop(self): #don't actually run with the test suite g = Graph() reader = csv.reader(open("map.csv")) for wayid, fromv, tov, length in reader: g.add_vertex( fromv ) g.add_vertex( tov ) g.add_edge( fromv, tov, Street( wayid, float(length) ) ) v85thStreet = "53184534" vBeaconAve = "53072051" n = ... | b8c859cb5e608e0077f1e0de11e18e0c0eeaef31 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10974/b8c859cb5e608e0077f1e0de11e18e0c0eeaef31/unit_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
3813,
92,
67,
3197,
270,
14945,
1481,
67,
6498,
12,
2890,
4672,
468,
19752,
1404,
6013,
1086,
598,
326,
1842,
11371,
314,
273,
5601,
1435,
225,
2949,
273,
6101,
18,
10530,
12,
3190,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
3813,
92,
67,
3197,
270,
14945,
1481,
67,
6498,
12,
2890,
4672,
468,
19752,
1404,
6013,
1086,
598,
326,
1842,
11371,
314,
273,
5601,
1435,
225,
2949,
273,
6101,
18,
10530,
12,
3190,... |
path = getPythonPath(cls) | unwrapped_cls = removeAllProxies(cls) path = getPythonPath(unwrapped_cls) | def _listClasses(self, classes): """Prepare a list of classes for presentation. | 0f038087d7b94249d67e38ea0a9ca5357c53b81c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9672/0f038087d7b94249d67e38ea0a9ca5357c53b81c/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1098,
4818,
12,
2890,
16,
3318,
4672,
3536,
7543,
279,
666,
434,
3318,
364,
22525,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1098,
4818,
12,
2890,
16,
3318,
4672,
3536,
7543,
279,
666,
434,
3318,
364,
22525,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if not query and event.public and not self.allow_public: | if not query and event.public and not self.public_browse: | def mlia(self, event, site, query): if not query and event.public and not self.allow_public: event.addresponse(u'Sorry, not in public. PM me') return | c65f3d04c87eb7759428b069709c115dafa11f3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/c65f3d04c87eb7759428b069709c115dafa11f3e/lookup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
549,
69,
12,
2890,
16,
871,
16,
2834,
16,
843,
4672,
309,
486,
843,
471,
871,
18,
482,
471,
486,
365,
18,
482,
67,
25731,
30,
871,
18,
1289,
2740,
12,
89,
11,
28898,
16,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
549,
69,
12,
2890,
16,
871,
16,
2834,
16,
843,
4672,
309,
486,
843,
471,
871,
18,
482,
471,
486,
365,
18,
482,
67,
25731,
30,
871,
18,
1289,
2740,
12,
89,
11,
28898,
16,
486,
... |
pid = self._vte.fork_command(sys.executable, ["python", "/tmp/pippy.py"]) | pid = self._vte.fork_command("/bin/sh", ["/bin/sh", "-c", "python /tmp/pippy.py; sleep 1"]) | def gobutton_cb(self, button): #self._vte.reset(True, True) self._vte.feed("\x1B[H\x1B[J") # FIXME: We're losing an odd race here # gtk.main_iteration(block=False) start, end = self.text_buffer.get_bounds() text = self.text_buffer.get_text(start, end) | 1bb3a0f7cc86a6ee693486dcf566f146ffb307f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7610/1bb3a0f7cc86a6ee693486dcf566f146ffb307f0/activity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20062,
2644,
67,
7358,
12,
2890,
16,
3568,
4672,
468,
2890,
6315,
90,
736,
18,
6208,
12,
5510,
16,
1053,
13,
365,
6315,
90,
736,
18,
7848,
31458,
92,
21,
38,
63,
44,
64,
92,
21,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20062,
2644,
67,
7358,
12,
2890,
16,
3568,
4672,
468,
2890,
6315,
90,
736,
18,
6208,
12,
5510,
16,
1053,
13,
365,
6315,
90,
736,
18,
7848,
31458,
92,
21,
38,
63,
44,
64,
92,
21,
38... |
class Indexable(object): def __init__(self, value): self._value = value def __index__(self): return self._value | def __long__(self): return -163L | fdaaa9c9d8a768c324a49250c91295ebce6b201a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/fdaaa9c9d8a768c324a49250c91295ebce6b201a/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5748,
972,
12,
2890,
4672,
327,
300,
30886,
48,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5748,
972,
12,
2890,
4672,
327,
300,
30886,
48,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
cmd = "upx --best -q %s" % cachedfile | cmd = "upx --best -q \"%s\"" % cachedfile | def checkCache(fnm, strip, upx): if not strip and not upx: return fnm if strip: strip = 1 else: strip = 0 if upx: upx = 1 else: upx = 0 cachedir = os.path.join(HOMEPATH, 'bincache%d%d' % (strip, upx)) if not os.path.exists(cachedir): os.makedirs(cachedir) basenm = os.path.basename(fnm) cachedfile = os.path.join(cached... | e48fc19ac5fb3b2d4ac894ea589726ebf3f01744 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11925/e48fc19ac5fb3b2d4ac894ea589726ebf3f01744/Build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1649,
12,
4293,
81,
16,
2569,
16,
731,
92,
4672,
309,
486,
2569,
471,
486,
731,
92,
30,
327,
2295,
81,
309,
2569,
30,
2569,
273,
404,
469,
30,
2569,
273,
374,
309,
731,
92,
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,
866,
1649,
12,
4293,
81,
16,
2569,
16,
731,
92,
4672,
309,
486,
2569,
471,
486,
731,
92,
30,
327,
2295,
81,
309,
2569,
30,
2569,
273,
404,
469,
30,
2569,
273,
374,
309,
731,
92,
30... |
return [(k, Utils.unquote(v)) for k, v in params] | return [(k, _unquotevalue(v)) for k, v in params] | def get_params(self, failobj=None, header='content-type', unquote=1): """Return the message's Content-Type: parameters, as a list. | 2b38db29aa43883c826e63f6d3cea879a2714ae9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2b38db29aa43883c826e63f6d3cea879a2714ae9/Message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2010,
12,
2890,
16,
2321,
2603,
33,
7036,
16,
1446,
2218,
1745,
17,
723,
2187,
25611,
33,
21,
4672,
3536,
990,
326,
883,
1807,
3697,
17,
559,
30,
1472,
16,
487,
279,
666,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2010,
12,
2890,
16,
2321,
2603,
33,
7036,
16,
1446,
2218,
1745,
17,
723,
2187,
25611,
33,
21,
4672,
3536,
990,
326,
883,
1807,
3697,
17,
559,
30,
1472,
16,
487,
279,
666,
18... |
sernaDoc.getDsi().getProperty("xml-catalogs").setString(catalogFiles) | sernaDoc.getDsi().getProperty("xml-catalogs").setString(catalogFiles.__str__()) | def executeUiEvent(self, evName, cmd): if "PublishCommandEvent" != evName: return | bd9daf021b03ca39874631d231dcd226c6be566a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1517/bd9daf021b03ca39874631d231dcd226c6be566a/PublishingPlugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
13943,
1133,
12,
2890,
16,
2113,
461,
16,
1797,
4672,
309,
315,
6024,
2189,
1133,
6,
480,
2113,
461,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1836,
13943,
1133,
12,
2890,
16,
2113,
461,
16,
1797,
4672,
309,
315,
6024,
2189,
1133,
6,
480,
2113,
461,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def _create_gnulong(self, name, type): """Write a GNU longname/longlink member to the TarFile. It consists of an extended tar header, with the length of the longname as size, followed by data blocks, which contain the longname as a null terminated string. """ name += NUL tarinfo = TarInfo() tarinfo.name = "././@LongL... | def __iter__(self): """Provide an iterator object. """ if self._loaded: return iter(self.members) else: return TarIter(self) | 90ce5908d2ea58a840421d27e19e71de9322dfc5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/90ce5908d2ea58a840421d27e19e71de9322dfc5/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
20632,
392,
2775,
733,
18,
3536,
309,
365,
6315,
4230,
30,
327,
1400,
12,
2890,
18,
7640,
13,
469,
30,
327,
20334,
2360,
12,
2890,
13,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
20632,
392,
2775,
733,
18,
3536,
309,
365,
6315,
4230,
30,
327,
1400,
12,
2890,
18,
7640,
13,
469,
30,
327,
20334,
2360,
12,
2890,
13,
2,
-100,
... | |
figure(**self.get_input("figure")) | fig = figure(**self.get_input("figure")) | def __call__(self, inputs): from pylab import figure, plot, show, clf, xlabel, ylabel, hold, title, grid, Line2D, legend, axes xinputs = self.get_input("x") yinputs = self.get_input("y") clf() #figure(**self.get_input('figure')) kwds = {} kwds['markersize']=self.get_input("markersize") kwds['marker']=markers[self.get_... | 7f5159a2a9b1babcf93cb84bae707d2f701bdc7e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4914/7f5159a2a9b1babcf93cb84bae707d2f701bdc7e/py_pylab.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
4540,
4672,
628,
2395,
7411,
1930,
7837,
16,
3207,
16,
2405,
16,
29576,
16,
16576,
16,
16305,
16,
6887,
16,
2077,
16,
3068,
16,
5377,
22,
40,
16,
7241,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4540,
4672,
628,
2395,
7411,
1930,
7837,
16,
3207,
16,
2405,
16,
29576,
16,
16576,
16,
16305,
16,
6887,
16,
2077,
16,
3068,
16,
5377,
22,
40,
16,
7241,
... |
See also: L{pb.getObjectAt} | def jellyFor(self, jellier): """(internal) | 93b16006ea29c9a777e50fdbec80b7b6f4790900 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12595/93b16006ea29c9a777e50fdbec80b7b6f4790900/flavors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
525,
292,
715,
1290,
12,
2890,
16,
525,
292,
9800,
4672,
3536,
12,
7236,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
525,
292,
715,
1290,
12,
2890,
16,
525,
292,
9800,
4672,
3536,
12,
7236,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
yield check_complex_value, ncu._arg, np.inf, 1, np.PZERO, 0, False yield check_complex_value, ncu._arg, np.inf, -1, np.NZERO, 0, False | yield check_real_value, ncu._arg, np.inf, 1, np.PZERO, False yield check_real_value, ncu._arg, np.inf, -1, np.NZERO, False | def test_special_values(self): # carg(-np.inf +- yi) returns +-pi for finite y > 0 yield check_complex_value, ncu._arg, -np.inf, 1, np.pi, 0, False yield check_complex_value, ncu._arg, -np.inf, -1, -np.pi, 0, False | 4ad98c9779aec020b8ca848c891ecf5576ed9721 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/4ad98c9779aec020b8ca848c891ecf5576ed9721/test_umath_complex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9371,
67,
2372,
12,
2890,
4672,
468,
276,
3175,
19236,
6782,
18,
10625,
397,
17,
16805,
13,
1135,
397,
17,
7259,
364,
25922,
677,
405,
374,
2824,
866,
67,
14259,
67,
1132,
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,
1842,
67,
9371,
67,
2372,
12,
2890,
4672,
468,
276,
3175,
19236,
6782,
18,
10625,
397,
17,
16805,
13,
1135,
397,
17,
7259,
364,
25922,
677,
405,
374,
2824,
866,
67,
14259,
67,
1132,
16... |
pattern_re = translate_pattern (pattern, anchor, prefix) | pattern_re = translate_pattern (pattern, anchor, prefix, is_regex) | def select_pattern (self, files, pattern, anchor=1, prefix=None): """Select strings (presumably filenames) from 'files' that match 'pattern', a Unix-style wildcard (glob) pattern. Patterns are not quite the same as implemented by the 'fnmatch' module: '*' and '?' match non-special characters, where "special" is platfo... | 9bc00f1c0e17e7b69de2601020168d0adb220113 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9bc00f1c0e17e7b69de2601020168d0adb220113/sdist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
4951,
261,
2890,
16,
1390,
16,
1936,
16,
6984,
33,
21,
16,
1633,
33,
7036,
4672,
3536,
3391,
2064,
261,
12202,
379,
6906,
9066,
13,
628,
296,
2354,
11,
716,
845,
296,
4951,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
4951,
261,
2890,
16,
1390,
16,
1936,
16,
6984,
33,
21,
16,
1633,
33,
7036,
4672,
3536,
3391,
2064,
261,
12202,
379,
6906,
9066,
13,
628,
296,
2354,
11,
716,
845,
296,
4951,
... |
elif n == 21: | elif number == 21: | def number_mayan(self, n): x = 42.5 x1, x2, xc, x3, x4 = x + 5, x + 15, x + 20, x + 25, x + 35 y = 60 y1s, y5s, y10s, y20s = y, y - 10, y - 20, y - 40 if n == 5: svg_string = self._svg_bar(x, y1s) elif n == 7: svg_string = self._svg_bar(x, y1s) svg_string += self._svg_circle(x2, y5s, 3) svg_string += self._svg_circle(x... | 3abdde2d4415b99e072401aa95cc310d13046e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/3abdde2d4415b99e072401aa95cc310d13046e05/gencards.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1300,
67,
24877,
304,
12,
2890,
16,
290,
4672,
619,
273,
14856,
18,
25,
619,
21,
16,
619,
22,
16,
15192,
16,
619,
23,
16,
619,
24,
273,
619,
397,
1381,
16,
619,
397,
4711,
16,
619,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1300,
67,
24877,
304,
12,
2890,
16,
290,
4672,
619,
273,
14856,
18,
25,
619,
21,
16,
619,
22,
16,
15192,
16,
619,
23,
16,
619,
24,
273,
619,
397,
1381,
16,
619,
397,
4711,
16,
619,... |
print name | self.debug(name) | def handler(self, **args): import database from irclib import Event, nm_to_n # Set the target as either the person or the channel target = self.return_to_sender(args) orig_msg = args["text"] # Strip bot name orig_msg = orig_msg.split()[1:] # Now determine if we need to list karma or increment/decrement it, # which w... | 0d0f57b5157c5f2aa1e6d686476fd6fff274efa7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10749/0d0f57b5157c5f2aa1e6d686476fd6fff274efa7/karma.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1838,
12,
2890,
16,
2826,
1968,
4672,
1930,
2063,
628,
9482,
830,
495,
1930,
2587,
16,
8442,
67,
869,
67,
82,
225,
468,
1000,
326,
1018,
487,
3344,
326,
6175,
578,
326,
1904,
1018,
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,
1838,
12,
2890,
16,
2826,
1968,
4672,
1930,
2063,
628,
9482,
830,
495,
1930,
2587,
16,
8442,
67,
869,
67,
82,
225,
468,
1000,
326,
1018,
487,
3344,
326,
6175,
578,
326,
1904,
1018,
273... |
name = models.CharField(max_length=256, unique=True) | name = models.CharField(max_length=255, unique=True) | def get_md5(self): pwd = Md5Password.objects.get(user=self) return pwd.password | 9d960ff8063d10ec192ed766b5ee0d774af80b40 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6447/9d960ff8063d10ec192ed766b5ee0d774af80b40/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1264,
25,
12,
2890,
4672,
14720,
273,
490,
72,
25,
3913,
18,
6911,
18,
588,
12,
1355,
33,
2890,
13,
327,
14720,
18,
3664,
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,
336,
67,
1264,
25,
12,
2890,
4672,
14720,
273,
490,
72,
25,
3913,
18,
6911,
18,
588,
12,
1355,
33,
2890,
13,
327,
14720,
18,
3664,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return unpack('!i', r)[0] | return _unpack('!i', r)[0] | def tell(self): r = self.__client._lo_funcall('lo_tell', self.__fd) return unpack('!i', r)[0] | 15a18213714dad035ac4b8cb3da491223392d5b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1238/15a18213714dad035ac4b8cb3da491223392d5b1/bpgsql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9276,
12,
2890,
4672,
436,
273,
365,
16186,
2625,
6315,
383,
67,
644,
454,
2668,
383,
67,
88,
1165,
2187,
365,
16186,
8313,
13,
327,
6167,
2668,
5,
77,
2187,
436,
25146,
20,
65,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9276,
12,
2890,
4672,
436,
273,
365,
16186,
2625,
6315,
383,
67,
644,
454,
2668,
383,
67,
88,
1165,
2187,
365,
16186,
8313,
13,
327,
6167,
2668,
5,
77,
2187,
436,
25146,
20,
65,
2,
-... |
script = '<div><script>jmol_applet(%s, "%s");</script></div>' % (size, url) | script = '<div><script>jmol_applet(%s, "%s?%d");</script></div>' % (size, url, self.version()) | def files_html(self, out): dir = self.directory() D = os.listdir(dir) D.sort() if len(D) == 0: return '' images = [] files = [] # The question mark trick here is so that images will be reloaded when # the async request requests the output text for a computation. # This is inspired by http://www.irt.org/script/416.htm/... | ca3522dde7576e04ad6bab23bea40fcd1b90b5de /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/ca3522dde7576e04ad6bab23bea40fcd1b90b5de/cell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1390,
67,
2620,
12,
2890,
16,
596,
4672,
1577,
273,
365,
18,
5149,
1435,
463,
273,
1140,
18,
1098,
1214,
12,
1214,
13,
463,
18,
3804,
1435,
309,
562,
12,
40,
13,
422,
374,
30,
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,
1390,
67,
2620,
12,
2890,
16,
596,
4672,
1577,
273,
365,
18,
5149,
1435,
463,
273,
1140,
18,
1098,
1214,
12,
1214,
13,
463,
18,
3804,
1435,
309,
562,
12,
40,
13,
422,
374,
30,
327,
... |
if not os.path.exists (path_to_check): | if ("" != path_to_check) and (not os.path.exists (path_to_check)): | def invokeEditor (editor, filename): """Invoke an editor via spawnlp. """ # We need to make any missing subdirectories in the path. path_to_check = os.path.dirname (filename) should_edit = True if not os.path.exists (path_to_check): try: os.makedirs (os.path.dirname (filename)) except: # Something bad happened; probab... | fba8e5b20d8e58b47dea08dff7c47e98a3daff1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/fba8e5b20d8e58b47dea08dff7c47e98a3daff1b/hylt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
6946,
261,
9177,
16,
1544,
4672,
3536,
10969,
392,
4858,
3970,
12560,
9953,
18,
3536,
225,
468,
1660,
1608,
358,
1221,
1281,
3315,
31220,
316,
326,
589,
18,
589,
67,
869,
67,
1893,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
6946,
261,
9177,
16,
1544,
4672,
3536,
10969,
392,
4858,
3970,
12560,
9953,
18,
3536,
225,
468,
1660,
1608,
358,
1221,
1281,
3315,
31220,
316,
326,
589,
18,
589,
67,
869,
67,
1893,... |
if line_type > 1: glDisable (GL_LINE_STIPPLE) | def drawGPGrid(color, line_type, w, h, uw, uh, up, right): '''Draw grid lines for a Grid Plane, where: color = grid line color line_type is: 0=None, 1=Solid, 2=Dashed" or 3=Dotted w = width h = height uw = width spacing between grid lines uh = height spacing between grid lines ''' from prefs_constants import NO_LINE, ... | 155944f9191ffcaa1060e15600f0ffda64e3f4ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/155944f9191ffcaa1060e15600f0ffda64e3f4ca/drawer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
9681,
6313,
12,
3266,
16,
980,
67,
723,
16,
341,
16,
366,
16,
582,
91,
16,
582,
76,
16,
731,
16,
2145,
4672,
9163,
6493,
3068,
2362,
364,
279,
7145,
3008,
8806,
16,
1625,
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,
3724,
9681,
6313,
12,
3266,
16,
980,
67,
723,
16,
341,
16,
366,
16,
582,
91,
16,
582,
76,
16,
731,
16,
2145,
4672,
9163,
6493,
3068,
2362,
364,
279,
7145,
3008,
8806,
16,
1625,
30,
... | |
gLogger.error(errStr,storageElement) | gLogger.error( errStr, storageElement ) | def execute(self): | 00d8a55a0d409a04efa1a3f677ff9c2bc47dd619 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/00d8a55a0d409a04efa1a3f677ff9c2bc47dd619/SEvsLFCAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
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,
1836,
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,
-... |
if snp2_index is None and snp2_index==snp1_index: | if snp2_index is None or snp2_index==snp1_index: | def computing_node_handler(self, communicator, data, param_obj): """ 2009-1-22 modified from MpiInterGeneSNPPairAsso.computing_node_handler() """ node_rank = communicator.rank sys.stderr.write("Node no.%s working...\n"%node_rank) data = cPickle.loads(data) result_ls = [] snpData = param_obj.snpData no_of_phenotypes = p... | a722cb2896727781d51a831300a0970ff2770af1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/a722cb2896727781d51a831300a0970ff2770af1/MpiInterSNPPairAsso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20303,
67,
2159,
67,
4176,
12,
2890,
16,
8391,
8844,
16,
501,
16,
579,
67,
2603,
4672,
3536,
4044,
29,
17,
21,
17,
3787,
4358,
628,
490,
7259,
2465,
24442,
13653,
52,
4154,
2610,
83,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20303,
67,
2159,
67,
4176,
12,
2890,
16,
8391,
8844,
16,
501,
16,
579,
67,
2603,
4672,
3536,
4044,
29,
17,
21,
17,
3787,
4358,
628,
490,
7259,
2465,
24442,
13653,
52,
4154,
2610,
83,
... |
length = l.length | length = l.ll_length() | def ll_delitem(func, l, i): length = l.length if i < 0: i += length if func is dum_checkidx and (i < 0 or i >= length): raise IndexError ll_delitem_nonneg(dum_nocheck, l, i) | afabe8603c579750f81fa9c16896184dfa4a53b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/afabe8603c579750f81fa9c16896184dfa4a53b8/rlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6579,
67,
3771,
1726,
12,
644,
16,
328,
16,
277,
4672,
769,
273,
328,
18,
2906,
67,
2469,
1435,
309,
277,
411,
374,
30,
277,
1011,
769,
309,
1326,
353,
4569,
67,
1893,
3465,
471,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6579,
67,
3771,
1726,
12,
644,
16,
328,
16,
277,
4672,
769,
273,
328,
18,
2906,
67,
2469,
1435,
309,
277,
411,
374,
30,
277,
1011,
769,
309,
1326,
353,
4569,
67,
1893,
3465,
471,
261... |
else | else: | def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 28) else quickfix.CharField.__init__(self, 28, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
9131,
13,
469,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
972,
12,
2890,
16,
9131,
13,
469,
30,
9549,
904,
18,
2156,
974,
16186,
2738,
97... |
self.imputer = None | self.imputer = orange.ImputerConstructor_model(self.model or orange.MajorityLearner()) | def constructImputer(self, *a): if self.grandTreatment == 0: self.imputer = orange.ImputerConstructor_average(imputeClass = self.imputeClass) elif self.grandTreatment == 1: # not implemented yet self.imputer = None elif self.grandTreatment == 2: self.imputer = orange.ImputerConstructor_random(imputeClass = self.imputeC... | c851d11d09284089edf54d1ccc2d14f74a5be5e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/c851d11d09284089edf54d1ccc2d14f74a5be5e7/OWImputer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4872,
1170,
458,
264,
12,
2890,
16,
380,
69,
4672,
309,
365,
18,
3197,
464,
56,
6150,
475,
422,
374,
30,
365,
18,
381,
458,
264,
273,
578,
726,
18,
1170,
458,
264,
6293,
67,
15621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4872,
1170,
458,
264,
12,
2890,
16,
380,
69,
4672,
309,
365,
18,
3197,
464,
56,
6150,
475,
422,
374,
30,
365,
18,
381,
458,
264,
273,
578,
726,
18,
1170,
458,
264,
6293,
67,
15621,
... |
"append": Meth([ITEMTYPE], Void), "getitem": Meth([Signed], ITEMTYPE), "setitem": Meth([Signed, ITEMTYPE], Void), | "append": Meth([self.ITEMTYPE_T], Void), "getitem": Meth([Signed], self.ITEMTYPE_T), "setitem": Meth([Signed, self.ITEMTYPE_T], Void), | def __init__(self, ITEMTYPE): self._ITEMTYPE = ITEMTYPE self._null = _null_list(self) | 0b0ab89cf0b3d6dacc65ed030f583f369c2753be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/0b0ab89cf0b3d6dacc65ed030f583f369c2753be/ootype.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
25504,
2399,
4672,
365,
6315,
12674,
2399,
273,
25504,
2399,
365,
6315,
2011,
273,
389,
2011,
67,
1098,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
25504,
2399,
4672,
365,
6315,
12674,
2399,
273,
25504,
2399,
365,
6315,
2011,
273,
389,
2011,
67,
1098,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
tokens = queueToAllowedSites(self.site) | tokens = convertQueueNameToDQ2Names(self.site) | def list_ddm_sites(self,allowTape=False): from pandatools import Client refreshPandaSpecs() | 0f7dd4dd84d0c66c035d8408d494339ece96a78e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/0f7dd4dd84d0c66c035d8408d494339ece96a78e/Panda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
449,
81,
67,
12180,
12,
2890,
16,
5965,
30421,
33,
8381,
4672,
628,
293,
464,
270,
8192,
1930,
2445,
4460,
52,
464,
69,
15999,
1435,
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,
666,
67,
449,
81,
67,
12180,
12,
2890,
16,
5965,
30421,
33,
8381,
4672,
628,
293,
464,
270,
8192,
1930,
2445,
4460,
52,
464,
69,
15999,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if len(self._modules) == 0: self._top.bell() | if len(self._module_list.get(0,'end')) == 0: self._root.bell() | def _go(self, *e): if len(self._modules) == 0: self._top.bell() return | 4cf6d74130c32443c10897614b39d1c2c512796c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/4cf6d74130c32443c10897614b39d1c2c512796c/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3240,
12,
2890,
16,
380,
73,
4672,
309,
562,
12,
2890,
6315,
2978,
67,
1098,
18,
588,
12,
20,
11189,
409,
26112,
422,
374,
30,
365,
6315,
3085,
18,
70,
1165,
1435,
327,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3240,
12,
2890,
16,
380,
73,
4672,
309,
562,
12,
2890,
6315,
2978,
67,
1098,
18,
588,
12,
20,
11189,
409,
26112,
422,
374,
30,
365,
6315,
3085,
18,
70,
1165,
1435,
327,
2,
-100,... |
if crc32 != self.crc: | if crc32%0x100000000L != self.crc%0x100000000L: | def _read_eof(self): # We've read to the end of the file, so we have to rewind in order # to reread the 8 bytes containing the CRC and the file size. # We check the that the computed CRC and size of the # uncompressed data matches the stored values. self.fileobj.seek(-8, 1) crc32 = read32(self.fileobj) isize = read32(s... | 5551de93c2edfb805a173e207b3be8b5c4451bd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5551de93c2edfb805a173e207b3be8b5c4451bd2/gzip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
9339,
12,
2890,
4672,
468,
1660,
8081,
855,
358,
326,
679,
434,
326,
585,
16,
1427,
732,
1240,
358,
12881,
316,
1353,
468,
358,
436,
264,
684,
326,
1725,
1731,
4191,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
9339,
12,
2890,
4672,
468,
1660,
8081,
855,
358,
326,
679,
434,
326,
585,
16,
1427,
732,
1240,
358,
12881,
316,
1353,
468,
358,
436,
264,
684,
326,
1725,
1731,
4191,
326,... |
raise xml.dom.NamespaceErr("illegal use of prefix without namespaces") | raise xml.dom.NamespaceErr( "illegal use of prefix without namespaces") element = doc.createElementNS(namespaceURI, qualifiedName) doc.appendChild(element) | def createDocument(self, namespaceURI, qualifiedName, doctype): if doctype and doctype.parentNode is not None: raise xml.dom.WrongDocumentErr("doctype object owned by another DOM tree") doc = Document() if doctype is None: doctype = self.createDocumentType(qualifiedName, None, None) if qualifiedName: prefix, localname ... | 3d9b92654f18f440a68a8e80ed41265487140c54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3d9b92654f18f440a68a8e80ed41265487140c54/minidom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27569,
12,
2890,
16,
19421,
16,
24133,
16,
24909,
4672,
309,
24909,
471,
24909,
18,
2938,
907,
353,
486,
599,
30,
1002,
2025,
18,
9859,
18,
13634,
2519,
2524,
2932,
2896,
12387,
733,
161... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27569,
12,
2890,
16,
19421,
16,
24133,
16,
24909,
4672,
309,
24909,
471,
24909,
18,
2938,
907,
353,
486,
599,
30,
1002,
2025,
18,
9859,
18,
13634,
2519,
2524,
2932,
2896,
12387,
733,
161... |
if self.debug > 0: print 'EXCEPTION HAPPENED in delete_NCATTR' | if self.debug > 0: print 'TypeError EXCEPTION HAPPENED in delete_NCATTR, you can ignore this message.' print 'variable name: %s' % v | def delete_ncattdimvar(self,ncf,ncattrs=[],ncdims=[],ncvars=[]): ''' helper function to delete attributes, dimensions and variables in a netcdffile | 30fa6bed16a71a1f43102500bbe18e03f7aafe66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/30fa6bed16a71a1f43102500bbe18e03f7aafe66/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
82,
2574,
88,
3509,
1401,
12,
2890,
16,
82,
8522,
16,
14202,
7039,
22850,
6487,
14202,
8550,
22850,
6487,
14202,
4699,
33,
8526,
4672,
9163,
4222,
445,
358,
1430,
1677,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
82,
2574,
88,
3509,
1401,
12,
2890,
16,
82,
8522,
16,
14202,
7039,
22850,
6487,
14202,
8550,
22850,
6487,
14202,
4699,
33,
8526,
4672,
9163,
4222,
445,
358,
1430,
1677,
16,
576... |
env = env['ENV'] | env = environment | def CMake(target, source, env): assert len(source) == 1 cmake_prj_path = find_cmake_path(source[0].get_abspath()) cmake_build_path = target[0].get_abspath() env.Execute(SCons.Script.Mkdir(cmake_build_path)) cmd = [ env.WhereIs('cmake', path=os.environ['PATH']) ] cmd.append(cmake_prj_path) cmd.append(env.subst('$... | b20733ace5c32e8e493dea871bd36d46d76421a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8002/b20733ace5c32e8e493dea871bd36d46d76421a8/cmake.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
385,
6464,
12,
3299,
16,
1084,
16,
1550,
4672,
1815,
562,
12,
3168,
13,
422,
404,
225,
5003,
911,
67,
683,
78,
67,
803,
282,
273,
1104,
67,
71,
6540,
67,
803,
12,
3168,
63,
20,
800... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
385,
6464,
12,
3299,
16,
1084,
16,
1550,
4672,
1815,
562,
12,
3168,
13,
422,
404,
225,
5003,
911,
67,
683,
78,
67,
803,
282,
273,
1104,
67,
71,
6540,
67,
803,
12,
3168,
63,
20,
800... |
for hardlinks in devinode.values(): | for hardlinks in devinode.itervalues(): | def readPayload(self, func, filenames=None, extract=None): self.__openFd(96 + self.sigdatasize + self.hdrdatasize) devinode = {} # this will contain possibly hardlinked files filenamehash = {} # full filename of all files if filenames == None: filenames = self.getFilenames() if filenames: fileinfo = zip(filenames, ... | f728062394d146a49b4554ad764c9bfacddf1565 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/f728062394d146a49b4554ad764c9bfacddf1565/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
6110,
12,
2890,
16,
1326,
16,
9066,
33,
7036,
16,
2608,
33,
7036,
4672,
365,
16186,
3190,
27263,
12,
10525,
397,
365,
18,
7340,
13178,
554,
397,
365,
18,
16587,
13178,
554,
13,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
6110,
12,
2890,
16,
1326,
16,
9066,
33,
7036,
16,
2608,
33,
7036,
4672,
365,
16186,
3190,
27263,
12,
10525,
397,
365,
18,
7340,
13178,
554,
397,
365,
18,
16587,
13178,
554,
13,
44... |
self.cookieCutterToolbar.setGeometry(QRect(0,0,532,29)) | self.cookieCutterToolbar.setGeometry(QRect(0,0,533,29)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 85a9a33737cb03ea81f35e97e98d59f2314cc01d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/85a9a33737cb03ea81f35e97e98d59f2314cc01d/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
_one_of = _has | def _has_any( op, values1, values2 ): for v in values2.GetList( op, values1 ): if v in values1: return 1 return 0 | 1afeb62010e6e221e256dafff674f7c94958fce2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5931/1afeb62010e6e221e256dafff674f7c94958fce2/options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
377,
389,
5332,
67,
2273,
12,
1061,
16,
924,
21,
16,
924,
22,
262,
30,
225,
364,
331,
316,
924,
22,
18,
967,
682,
12,
1061,
16,
924,
21,
262,
30,
309,
331,
316,
924,
21,
30,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
377,
389,
5332,
67,
2273,
12,
1061,
16,
924,
21,
16,
924,
22,
262,
30,
225,
364,
331,
316,
924,
22,
18,
967,
682,
12,
1061,
16,
924,
21,
262,
30,
309,
331,
316,
924,
21,
30,
327,... | |
finally: warnings.filters[:] = save_warnings_filters[:] | else: raise TestFailed, "%s%s did not raise error" % ( func.__name__, args) deprecated_err = with_warning_restore(deprecated_err) | def deprecated_err(func, *args): # The `warnings` module doesn't have an advertised way to restore # its filter list. Cheat. save_warnings_filters = warnings.filters[:] # Grrr, we need this function to warn every time. Without removing # the warningregistry, running test_tarfile then test_struct would fail # on 64-bi... | 3b5b6b5c2bc506e16c67bad1e5fd46ca4e8b3a82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3b5b6b5c2bc506e16c67bad1e5fd46ca4e8b3a82/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6849,
67,
370,
12,
644,
16,
380,
1968,
4672,
468,
1021,
1375,
12103,
68,
1605,
3302,
1404,
1240,
392,
16738,
5918,
4031,
358,
5217,
468,
2097,
1034,
666,
18,
225,
22682,
270,
18,
1923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6849,
67,
370,
12,
644,
16,
380,
1968,
4672,
468,
1021,
1375,
12103,
68,
1605,
3302,
1404,
1240,
392,
16738,
5918,
4031,
358,
5217,
468,
2097,
1034,
666,
18,
225,
22682,
270,
18,
1923,
... |
if type(to_addrs) == types.StringType: | if isinstance(to_addrs, types.StringTypes): | def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction. | cc3c42daea05d8618e7274c76411c4d55b1070ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cc3c42daea05d8618e7274c76411c4d55b1070ac/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4408,
12,
2890,
16,
628,
67,
4793,
16,
358,
67,
23305,
16,
1234,
16,
4791,
67,
2116,
22850,
6487,
4519,
337,
67,
2116,
33,
8526,
4672,
3536,
2503,
1296,
11199,
392,
7278,
4791,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4408,
12,
2890,
16,
628,
67,
4793,
16,
358,
67,
23305,
16,
1234,
16,
4791,
67,
2116,
22850,
6487,
4519,
337,
67,
2116,
33,
8526,
4672,
3536,
2503,
1296,
11199,
392,
7278,
4791,
2... |
return self.reader.next() | data = self.reader.next() data, bytesencoded = self.encode(data, self.errors) return data | def next(self): | c5238b82887c9f0507632aec206739c3bb7a1caf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c5238b82887c9f0507632aec206739c3bb7a1caf/codecs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
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,
1024,
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,
-... |
match = re.findall("\S*\.\w*\.\w*", text) | match = re.findall("(?:(?:\w|-)+\.){2,}\w+", text) | def textToDns(text): """ Search for possible DNS in an arbitrary text. """ match = re.findall("\S*\.\w*\.\w*", text) if match: return match else: return [] | 16d8c7f600e3e7c43308aa1a53c18dbbb0ac5ab3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12786/16d8c7f600e3e7c43308aa1a53c18dbbb0ac5ab3/dns.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
774,
18600,
12,
955,
4672,
3536,
5167,
364,
3323,
8858,
316,
392,
11078,
977,
18,
3536,
845,
273,
283,
18,
4720,
454,
2932,
6503,
15599,
91,
24718,
27921,
5834,
15329,
22,
16,
6280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
774,
18600,
12,
955,
4672,
3536,
5167,
364,
3323,
8858,
316,
392,
11078,
977,
18,
3536,
845,
273,
283,
18,
4720,
454,
2932,
6503,
15599,
91,
24718,
27921,
5834,
15329,
22,
16,
6280,... |
KML.addMultipleScaledStyles(('%s-green' % sectionTag[section], '%s-red' % sectionTag[section], '%s-gray' % sectionTag[section]), scaleData, '.png') | KML.addMultipleScaledStyles(iconPath, ('%s-green' % sectionTag[section], '%s-red' % sectionTag[section], '%s-gray' % sectionTag[section]), scaleData, '.png') | def generateKML(self, section, filePath, fileCache, sectionDict): gLogger.verbose('KML generation request received. Section: %s' % section) scaleData = {'T0' : 1, 'T1' : 0.9, 'T2' : 0.6} KML = KMLData() #fileName = '' sectionFile = sectionDict['kml'] sectionTag = sectionDict['png'] ############################## if... | 19bb449f53bc66989e38b20303ed8b8cb2d85e73 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/19bb449f53bc66989e38b20303ed8b8cb2d85e73/Mapping.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
47,
1495,
12,
2890,
16,
2442,
16,
4612,
16,
585,
1649,
16,
2442,
5014,
4672,
225,
314,
3328,
18,
11369,
2668,
47,
1495,
9377,
590,
5079,
18,
10092,
30,
738,
87,
11,
738,
2442,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
47,
1495,
12,
2890,
16,
2442,
16,
4612,
16,
585,
1649,
16,
2442,
5014,
4672,
225,
314,
3328,
18,
11369,
2668,
47,
1495,
9377,
590,
5079,
18,
10092,
30,
738,
87,
11,
738,
2442,
... |
if self.DEBUG: print "clearjunk removing word %r: %r" % (w, r) | def clearjunk(self, oldesttime): """Forget useless wordinfo records. This can shrink the database size. | 2c426ea6372a3122ac1b7e4fb2584d944ec1e395 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/2c426ea6372a3122ac1b7e4fb2584d944ec1e395/classifier.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
78,
1683,
12,
2890,
16,
17067,
957,
4672,
3536,
1290,
588,
26967,
2076,
1376,
3853,
18,
225,
1220,
848,
17697,
326,
2063,
963,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
78,
1683,
12,
2890,
16,
17067,
957,
4672,
3536,
1290,
588,
26967,
2076,
1376,
3853,
18,
225,
1220,
848,
17697,
326,
2063,
963,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
def sizeAllocateCb(self, widget, allocation): if not self.videoWin: return self.xlock.acquire() self.videoWin.move_resize(0, 0, allocation.width, allocation.height) self.xlock.release() | def prepareWindowCb(self, bus, message): if not message.structure.has_name('prepare-xwindow-id'): return None | df60b4f9844d03743fe59fc739547c98777f8bcf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/df60b4f9844d03743fe59fc739547c98777f8bcf/videowidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
3829,
15237,
12,
2890,
16,
5766,
16,
883,
4672,
309,
486,
883,
18,
7627,
18,
5332,
67,
529,
2668,
9366,
17,
92,
5668,
17,
350,
11,
4672,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
3829,
15237,
12,
2890,
16,
5766,
16,
883,
4672,
309,
486,
883,
18,
7627,
18,
5332,
67,
529,
2668,
9366,
17,
92,
5668,
17,
350,
11,
4672,
327,
599,
2,
-100,
-100,
-100,
-100,
-1... | |
spacerItem36 = QtGui.QSpacerItem(20,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) self.hboxlayout37.addItem(spacerItem36) self.lighting_restore_defaults_btn = QtGui.QPushButton(self.TabPage3) self.lighting_restore_defaults_btn.setAutoDefault(False) self.lighting_restore_defaults_btn.setObjectName("lighting... | self.light_combobox = QtGui.QComboBox(self.groupBox8_2) self.light_combobox.setObjectName("light_combobox") self.hboxlayout37.addWidget(self.light_combobox) spacerItem38 = QtGui.QSpacerItem(60,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum) self.hboxlayout37.addItem(spacerItem38) self.vboxlayout25.addLayout(... | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,917,661).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 752b48c67dcf97437d2cb83fa267b09487665da0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/752b48c67dcf97437d2cb83fa267b09487665da0/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
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,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
print 'edit_meta', keypage, key,oldval, newval | def process_editform(request, pagename, mtcontents): for keypage, key, vals in mtcontents: if not vals: continue try: newval = request.form[keypage + '!' + key][0] except KeyError: request.write(u"<p>Value for %s (for page %s) not supplied" % (keypage, key)) oldval = vals[0] assert isinstance(newval, unicode), newval i... | d0e59d39084f47083d8bf5990fb25780450e3431 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/d0e59d39084f47083d8bf5990fb25780450e3431/MetaTableEdit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
4619,
687,
12,
2293,
16,
4262,
1069,
16,
5874,
3980,
4672,
364,
498,
2433,
16,
498,
16,
5773,
316,
5874,
3980,
30,
309,
486,
5773,
30,
1324,
775,
30,
394,
1125,
273,
590,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4619,
687,
12,
2293,
16,
4262,
1069,
16,
5874,
3980,
4672,
364,
498,
2433,
16,
498,
16,
5773,
316,
5874,
3980,
30,
309,
486,
5773,
30,
1324,
775,
30,
394,
1125,
273,
590,
1... | |
if VERBOSE: print "\n m = re.match (ver_regex, line) | for line in lines: line = line.strip () if VERBOSE: print "\n m = re.match (ver_regex, line) if m: version = m.group (1) if not compare_version (version, req_version): raise break | def check_program (name, prog, ver_regex, req_version, failifnot = False): check_started ("Checking for " + name + " >= " + req_version) rc = False version = None try: fd = os.popen (prog + " 2>&1") line = fd.readline ().strip () fd.close () if VERBOSE: print "\n# '" + prog + "' returned '" + line + "'" m = re.match ... | d1d05a728990bf02584bb70d0eca5637dcaae898 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2556/d1d05a728990bf02584bb70d0eca5637dcaae898/tibs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
12890,
261,
529,
16,
11243,
16,
1924,
67,
7584,
16,
1111,
67,
1589,
16,
2321,
430,
902,
273,
1083,
4672,
866,
67,
14561,
7566,
14294,
364,
315,
397,
508,
397,
315,
1545,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
12890,
261,
529,
16,
11243,
16,
1924,
67,
7584,
16,
1111,
67,
1589,
16,
2321,
430,
902,
273,
1083,
4672,
866,
67,
14561,
7566,
14294,
364,
315,
397,
508,
397,
315,
1545,
315,
... |
infix = self._elements[token][2] | if len(e) < 3 or not e[2]: raise error.ParseError("not an infix: %s" % token, pos) infix = e[2] | def _parse(self, bind=0): token, value, pos = self._advance() # handle prefix rules on current token prefix = self._elements[token][1] if not prefix: raise error.ParseError("not a prefix: %s" % token, pos) if len(prefix) == 1: expr = (prefix[0], value) else: if len(prefix) > 2 and prefix[2] == self.current[0]: self._ma... | 21df34a1e0048ddfd144d620933908d1554b4d5c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/21df34a1e0048ddfd144d620933908d1554b4d5c/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
2890,
16,
1993,
33,
20,
4672,
1147,
16,
460,
16,
949,
273,
365,
6315,
361,
5882,
1435,
468,
1640,
1633,
2931,
603,
783,
1147,
1633,
273,
365,
6315,
6274,
63,
2316,
6362,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
2890,
16,
1993,
33,
20,
4672,
1147,
16,
460,
16,
949,
273,
365,
6315,
361,
5882,
1435,
468,
1640,
1633,
2931,
603,
783,
1147,
1633,
273,
365,
6315,
6274,
63,
2316,
6362,... |
self.ssock.setblocking(True) | self.ssock.settimeout(1) | def initialize(self, force = False): # Remove socket if os.path.exists(SSocket.SOCKET_FILE): logSys.error("Fail2ban seems to be already running") if force: logSys.warn("Forcing execution of the server") os.remove(SSocket.SOCKET_FILE) else: raise SSocketErrorException("Server already running") # Create an INET, STREAMin... | b80c7767b8a353d7097cdd292bb71bf5aa951697 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12786/b80c7767b8a353d7097cdd292bb71bf5aa951697/ssocket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
16,
2944,
273,
1083,
4672,
468,
3581,
2987,
309,
1140,
18,
803,
18,
1808,
12,
1260,
1861,
18,
25699,
67,
3776,
4672,
613,
12712,
18,
1636,
2932,
3754,
22,
21515,
12001,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
16,
2944,
273,
1083,
4672,
468,
3581,
2987,
309,
1140,
18,
803,
18,
1808,
12,
1260,
1861,
18,
25699,
67,
3776,
4672,
613,
12712,
18,
1636,
2932,
3754,
22,
21515,
12001,
... |
bjam[ 'build_cmd' ] = bjam[ 'build_cmd' ] % bjam_toolset build_if_needed( bjam ) if not os.path.exists( process_jam_log[ 'path' ] ): if pjl_toolset is None: if toolsets is not None: pjl_toolset = string.split( toolsets, ',' )[0] else: if sys.platform == 'win32': pjl_toolset = 'vc7.1' else: pjl_to... | build_if_needed( bjam, bjam_toolset, toolsets ) build_if_needed( process_jam_log, pjl_toolset, toolsets ) | def setup( comment , toolsets , bjam_toolset , pjl_toolset , monitored , proxy , args , **unused ): import_utils() if os.path.exists( patch_boost_name ): log( 'Found patch file "%s". Executing it.' % patch_boost_name ) utils.system( [ patch_boost_name ] ) bjam[ 'build_cmd' ] = bjam[ 'build_cmd' ] % bjam_toolset build... | 721f3c1635a59f0437a667ea20d069673fc24247 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7959/721f3c1635a59f0437a667ea20d069673fc24247/regression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2879,
269,
5226,
4424,
269,
324,
78,
301,
67,
6738,
542,
269,
293,
78,
80,
67,
6738,
542,
269,
28651,
269,
2889,
269,
833,
269,
2826,
14375,
262,
30,
1930,
67,
5471,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2879,
269,
5226,
4424,
269,
324,
78,
301,
67,
6738,
542,
269,
293,
78,
80,
67,
6738,
542,
269,
28651,
269,
2889,
269,
833,
269,
2826,
14375,
262,
30,
1930,
67,
5471,
1435,
... |
print _(' Description: %s') % to_unicode_maybe(group.descriptionByLang(mylang)) | print _(' Description: %s') % to_unicode(group.descriptionByLang(mylang)) | def displayPkgsInGroups(self, group): mylang = get_my_lang_code() print _('\nGroup: %s') % group.nameByLang(mylang) if group.descriptionByLang(mylang) != "": print _(' Description: %s') % to_unicode_maybe(group.descriptionByLang(mylang)) if len(group.mandatory_packages) > 0: print _(' Mandatory Packages:') for item in ... | 01c63334866e2adda4141cfed007322c39bbed03 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/01c63334866e2adda4141cfed007322c39bbed03/output.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
7789,
564,
382,
3621,
12,
2890,
16,
1041,
4672,
3399,
4936,
273,
336,
67,
4811,
67,
4936,
67,
710,
1435,
1172,
389,
2668,
64,
82,
1114,
30,
738,
87,
6134,
738,
1041,
18,
529,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
7789,
564,
382,
3621,
12,
2890,
16,
1041,
4672,
3399,
4936,
273,
336,
67,
4811,
67,
4936,
67,
710,
1435,
1172,
389,
2668,
64,
82,
1114,
30,
738,
87,
6134,
738,
1041,
18,
529,
8... |
callback = request.build_absolute_uri(reverse('publicauth-complete', args=[self.provider])) url = self.__get_url( token = Token.from_string( content ), http_url=self.AUTHORIZE_URL, parameters = dict( oauth_callback = callback )) | url = self.__get_url( token = Token.from_string( content ), http_url=self.AUTHORIZE_URL,) | def begin(self, request, data): """ Try to get Request Token from OAuth Provider and redirect user to provider's site for approval. """ url = self.__get_url( http_url=self.REQUEST_TOKEN_URL ) | b859793d4f348a3d707d3638e1148d0373a8e090 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13853/b859793d4f348a3d707d3638e1148d0373a8e090/oauth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
12,
2890,
16,
590,
16,
501,
4672,
3536,
6161,
358,
336,
1567,
3155,
628,
7270,
7561,
471,
3136,
729,
358,
2893,
1807,
2834,
364,
23556,
18,
3536,
880,
273,
365,
16186,
588,
67,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
12,
2890,
16,
590,
16,
501,
4672,
3536,
6161,
358,
336,
1567,
3155,
628,
7270,
7561,
471,
3136,
729,
358,
2893,
1807,
2834,
364,
23556,
18,
3536,
880,
273,
365,
16186,
588,
67,
7... |
unknown,delim = struct.unpack('Ic',ins.read(5)) | def load(self,path): """Extract info from save file.""" ins = path.open('rb') try: #--Header ins.seek(11) # FO3SAVEGAME headerSize, = struct.unpack('I',ins.read(4)) unknown,delim = struct.unpack('Ic',ins.read(5)) ssWidth,delim1,ssHeight,delim2,ssDepth,delim3 = struct.unpack('=IcIcIc',ins.read(15)) #--Name, nickname, le... | 6a02625d5f2d736dbd19ab9b5f1a55b0691055f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6682/6a02625d5f2d736dbd19ab9b5f1a55b0691055f7/bosh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
803,
4672,
3536,
4976,
1123,
628,
1923,
585,
12123,
2763,
273,
589,
18,
3190,
2668,
6731,
6134,
775,
30,
468,
413,
1864,
2763,
18,
16508,
12,
2499,
13,
468,
17634,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
803,
4672,
3536,
4976,
1123,
628,
1923,
585,
12123,
2763,
273,
589,
18,
3190,
2668,
6731,
6134,
775,
30,
468,
413,
1864,
2763,
18,
16508,
12,
2499,
13,
468,
17634,
... | |
start = start != '' and start or 0 | def get_index_from_list(self, L, value, start=0, end=None): """Returns the index of the first occurrence of the value on the list. | 2f5075140c0afeaf5bda26b5924aceb3478d1a14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/2f5075140c0afeaf5bda26b5924aceb3478d1a14/Collections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1615,
67,
2080,
67,
1098,
12,
2890,
16,
511,
16,
460,
16,
787,
33,
20,
16,
679,
33,
7036,
4672,
3536,
1356,
326,
770,
434,
326,
1122,
13083,
434,
326,
460,
603,
326,
666,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1615,
67,
2080,
67,
1098,
12,
2890,
16,
511,
16,
460,
16,
787,
33,
20,
16,
679,
33,
7036,
4672,
3536,
1356,
326,
770,
434,
326,
1122,
13083,
434,
326,
460,
603,
326,
666,
... | |
return alpha2, fc, 0 | return alpha2, fc, 0, phi_a2 | def line_search_BFGS(f, xk, pk, gfk, args=(), c1=1e-4, alpha0=1): """Minimize over alpha, the function f(xk+alpha pk) Uses the interpolation algorithm (Armiijo backtracking) as suggested by Wright and Nocedal in 'Numerical Optimization', 1999, pg. 56-57 Outputs: (alpha, fc, gc) """ fc = 0 phi0 = apply(f,(xk,)+args) ... | d00f433519cbe9ce0d4306fb9512ac79d655e1fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/d00f433519cbe9ce0d4306fb9512ac79d655e1fc/optimize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
67,
3072,
67,
15259,
16113,
12,
74,
16,
619,
79,
16,
2365,
16,
13828,
79,
16,
833,
33,
9334,
276,
21,
33,
21,
73,
17,
24,
16,
4190,
20,
33,
21,
4672,
3536,
2930,
10153,
1879,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
67,
3072,
67,
15259,
16113,
12,
74,
16,
619,
79,
16,
2365,
16,
13828,
79,
16,
833,
33,
9334,
276,
21,
33,
21,
73,
17,
24,
16,
4190,
20,
33,
21,
4672,
3536,
2930,
10153,
1879,
... |
return | return OK | def onUse( char, item ): socket = char.socket # Potions need to be on your body to use them, or in arms reach. if item.getoutmostchar() != char: char.message( "This potion is out of your reach..." ) return # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return OOPS else: potiontype = item.gettag( ... | 1dbb4f996db2ee1cdf189b46c7eeed3786d7b16c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/1dbb4f996db2ee1cdf189b46c7eeed3786d7b16c/potions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3727,
12,
1149,
16,
761,
262,
30,
2987,
273,
1149,
18,
7814,
468,
23435,
1115,
1608,
358,
506,
603,
3433,
1417,
358,
999,
2182,
16,
578,
316,
419,
959,
9287,
18,
309,
761,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3727,
12,
1149,
16,
761,
262,
30,
2987,
273,
1149,
18,
7814,
468,
23435,
1115,
1608,
358,
506,
603,
3433,
1417,
358,
999,
2182,
16,
578,
316,
419,
959,
9287,
18,
309,
761,
18,
5... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.