rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
res = Response(pdf_f.read()) pdf_f.close() res.headers['Content-type']='application/octet-stream' res.headers['Content-Disposition']=( 'attachment; filename=%s.pdf' % c.invoice.id ) return res | res = Response(pdf_f.read()) pdf_f.close() res.headers['Content-type']='application/octet-stream' res.headers['Content-Disposition']=( 'attachment; filename=%s.pdf' % c.invoice.id ) return res | def pdf(self): import os, tempfile | ff36d31a2a014c3bd68fff8ac2fb7c01edd04a01 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12856/ff36d31a2a014c3bd68fff8ac2fb7c01edd04a01/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8169,
12,
2890,
4672,
1930,
1140,
16,
13275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8169,
12,
2890,
4672,
1930,
1140,
16,
13275,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
except KeyError, e: | except KeyError: | def __init__(self, request): """Constructor of the class. Initialises the necessesary values. It should never be used, use getWrapper method instead. """ self.__request = request try: self.cookies = parse_cookie(self.__request.headers_in[ "Cookie" ]) except KeyError, e: self.cookies = {} self.environ = {} self.environ[... | 26d2ecde87643091805a7b214e68c325315efc1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/26d2ecde87643091805a7b214e68c325315efc1e/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
4672,
3536,
6293,
434,
326,
667,
18,
10188,
6141,
326,
290,
3957,
281,
814,
924,
18,
2597,
1410,
5903,
506,
1399,
16,
999,
336,
3611,
707,
3560,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
4672,
3536,
6293,
434,
326,
667,
18,
10188,
6141,
326,
290,
3957,
281,
814,
924,
18,
2597,
1410,
5903,
506,
1399,
16,
999,
336,
3611,
707,
3560,
18,... |
outf.write(" (os.path.normpath(sys.executable), post_interp)) | if not sysconfig.python_build: outf.write(" (os.path.normpath(sys.executable), post_interp)) else: outf.write(" (os.path.join( sysconfig.get_config_var("BINDIR"), "python" + sysconfig.get_config_var("EXE")), post_interp)) | def copy_scripts (self): """Copy each script listed in 'self.scripts'; if it's marked as a Python script in the Unix way (first line matches 'first_line_re', ie. starts with "\#!" and contains "python"), then adjust the first line to refer to the current Python interpreter as we copy. """ self.mkpath(self.build_dir) fo... | 2366259b31ba7b9bbb910afa70e33a92b13f010a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2366259b31ba7b9bbb910afa70e33a92b13f010a/build_scripts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
12827,
261,
2890,
4672,
3536,
2951,
1517,
2728,
12889,
316,
296,
2890,
18,
12827,
13506,
309,
518,
1807,
9350,
487,
279,
6600,
2728,
316,
326,
9480,
4031,
261,
3645,
980,
1885,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
12827,
261,
2890,
4672,
3536,
2951,
1517,
2728,
12889,
316,
296,
2890,
18,
12827,
13506,
309,
518,
1807,
9350,
487,
279,
6600,
2728,
316,
326,
9480,
4031,
261,
3645,
980,
1885,
... |
dataPath = os.path.realpath( "%s/%s" % ( DIRAC.rootPath, dataPath ) ) | dataPath = os.path.realpath( "%s/%s" % ( gConfig.getValue( '/LocalSite/InstancePath', rootPath ), dataPath ) ) | def initializeTransferDBMonitoringHandler(serviceInfo): global transferDB transferDB = TransferDB() monitoringSection = PathFinder.getServiceSection("DataManagement/TransferDBMonitoring") #Get data location retDict = gConfig.getOption( "%s/DataLocation" % monitoringSection ) if not retDict[ 'OK' ]: return retDict dat... | fbaa0cc38e2ebaeb3cf9a01c58d193b76f63bf22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fbaa0cc38e2ebaeb3cf9a01c58d193b76f63bf22/TransferDBMonitoringHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
5912,
2290,
18410,
1503,
12,
3278,
966,
4672,
225,
2552,
7412,
2290,
7412,
2290,
273,
12279,
2290,
1435,
225,
16309,
5285,
273,
2666,
8441,
18,
588,
1179,
5285,
2932,
751,
10998,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
5912,
2290,
18410,
1503,
12,
3278,
966,
4672,
225,
2552,
7412,
2290,
7412,
2290,
273,
12279,
2290,
1435,
225,
16309,
5285,
273,
2666,
8441,
18,
588,
1179,
5285,
2932,
751,
10998,
19,... |
if len(args) < 3: | if len(args) < 2: | def usage(): sys.stderr.write("Usage: %s [-l INFILE] OUTFILE ACCUMDIRS...\n" % (sys.argv[0])) | 38e1644cd0bffd4c93f12a7943ec310bdd626a69 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6303/38e1644cd0bffd4c93f12a7943ec310bdd626a69/mllt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
2589,
18,
11241,
18,
2626,
2932,
5357,
30,
738,
87,
23059,
80,
2120,
3776,
65,
8210,
3776,
18816,
2799,
4537,
55,
2777,
64,
82,
6,
738,
261,
9499,
18,
19485,
63,
20,
22643... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
2589,
18,
11241,
18,
2626,
2932,
5357,
30,
738,
87,
23059,
80,
2120,
3776,
65,
8210,
3776,
18816,
2799,
4537,
55,
2777,
64,
82,
6,
738,
261,
9499,
18,
19485,
63,
20,
22643... |
if 'backends' in kwargs and kwargs['backends']: if isinstance(kwargs['backends'], BaseBackend): backends = [kwargs.pop('backends')] elif isinstance(kwargs['backends'], (str,unicode)) and kwargs['backends']: backends = [self.backend_instances[kwargs.pop('backends')]] elif isinstance(kwargs['backends'], (list,tuple)): | if 'backends' in kwargs: _backends = kwargs.pop('backends') if isinstance(_backends, BaseBackend): backends = [_backends] elif isinstance(_backends, (str,unicode)) and _backends: backends = [self.backend_instances[_backends]] elif isinstance(_backends, (list,tuple)): | def do(self, function, *args, **kwargs): """ Do calls on loaded backends with specified arguments, in separated threads. | 45ac367554eea43e14507e0538b53c2754930e4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/45ac367554eea43e14507e0538b53c2754930e4f/ouiboube.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
16,
445,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
2256,
4097,
603,
4203,
18015,
598,
1269,
1775,
16,
316,
8936,
7403,
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,
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,
741,
12,
2890,
16,
445,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
2256,
4097,
603,
4203,
18015,
598,
1269,
1775,
16,
316,
8936,
7403,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def error(msg, *args): | def error(*args): | def error(msg, *args): "Log an error" m = "error: " + msg logger.error(m, *args) hdlr.error = True | 4313555fb8857b99f7f3acf7f4aecec3c355fd11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/4313555fb8857b99f7f3acf7f4aecec3c355fd11/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
555,
30857,
1968,
4672,
315,
1343,
392,
555,
6,
312,
273,
315,
1636,
30,
315,
397,
1234,
1194,
18,
1636,
12,
81,
16,
380,
1968,
13,
366,
5761,
86,
18,
1636,
273,
1053,
225,
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,
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,
555,
30857,
1968,
4672,
315,
1343,
392,
555,
6,
312,
273,
315,
1636,
30,
315,
397,
1234,
1194,
18,
1636,
12,
81,
16,
380,
1968,
13,
366,
5761,
86,
18,
1636,
273,
1053,
225,
2,
-100,
... |
for sj in job.subjobs: sitesdict[sj.backend.site] = 1 bjsites = sitesdict.keys() | bjsites = [] if job.subjobs: for sj in job.subjobs: sitesdict[sj.backend.site] = 1 bjsites = sitesdict.keys() else: bjsites = [job.backend.site] | def master_prepare(self,app,appconfig): '''Prepare the master job''' | 474aaf9cb1de0eb1d061adeee1f49148e68469cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/474aaf9cb1de0eb1d061adeee1f49148e68469cb/AthenaPandaRTHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4171,
67,
9366,
12,
2890,
16,
2910,
16,
2910,
1425,
4672,
9163,
7543,
326,
4171,
1719,
26418,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4171,
67,
9366,
12,
2890,
16,
2910,
16,
2910,
1425,
4672,
9163,
7543,
326,
4171,
1719,
26418,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if type(obj) == types.InstanceType: | if isclassinstance(obj): | def sage_getfile(obj): r""" Get the full file name associated to obj as a string. AUTHOR: -- Nick Alexander """ # We try to extract from docstrings, because Python's inspect # will happily report compiled .so files d = inspect.getdoc(obj) pos = _extract_embedded_position(d) if pos is not None: (_, filename, _) = pos r... | de17b6b6a1224828d500587bc2bf902b42a193be /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/de17b6b6a1224828d500587bc2bf902b42a193be/sageinspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
410,
67,
588,
768,
12,
2603,
4672,
436,
8395,
968,
326,
1983,
585,
508,
3627,
358,
1081,
487,
279,
533,
18,
225,
12790,
916,
30,
1493,
423,
1200,
432,
4149,
464,
264,
3536,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
410,
67,
588,
768,
12,
2603,
4672,
436,
8395,
968,
326,
1983,
585,
508,
3627,
358,
1081,
487,
279,
533,
18,
225,
12790,
916,
30,
1493,
423,
1200,
432,
4149,
464,
264,
3536,
468,
... |
mail_msg = _("Mail %(x_url_open)s the developers%(x_url_close)s") % {'x_url_open' : | mail_msg = _("Mail %(x_url_open)sdevelopers%(x_url_close)s") % {'x_url_open' : | def tmpl_webjournal_error_box(language, title, title_msg, msg): """ returns an error box for webjournal errors. """ _ = gettext_set_language(language) title = _(title) title_msg = _(title_msg) msg = _(msg) mail_msg = _("Mail %(x_url_open)s the developers%(x_url_close)s") % {'x_url_open' : '<a href="mailto:%s">' % suppo... | 25e3889e6921bcde05623e951f65cbb8800e1823 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/25e3889e6921bcde05623e951f65cbb8800e1823/webjournal_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1814,
441,
7116,
67,
1636,
67,
2147,
12,
4923,
16,
2077,
16,
2077,
67,
3576,
16,
1234,
4672,
3536,
1135,
392,
555,
3919,
364,
732,
441,
7116,
1334,
18,
3536,
389,
273,
24972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1814,
441,
7116,
67,
1636,
67,
2147,
12,
4923,
16,
2077,
16,
2077,
67,
3576,
16,
1234,
4672,
3536,
1135,
392,
555,
3919,
364,
732,
441,
7116,
1334,
18,
3536,
389,
273,
24972... |
fcb = None | fcb = ctypes.cast(None, FREE_CALLBACK) | def registerCallback(self, callback, userdata, freecb): cb = WRITE_CALLBACK(callback) # append callback to array that has same lifetime as object so python # doesnt garbage collect it from under us self._callbacks.append(cb) fcb = None if freecb is not None: fcb = FREE_CALLBACK(freecb) self._callbacks.append(fcb) DLL.c... | 0bdeb4e669c2ff6a562cd9111a7ea6c62107e081 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/40/0bdeb4e669c2ff6a562cd9111a7ea6c62107e081/cmos.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
2428,
12,
2890,
16,
1348,
16,
21518,
16,
22010,
557,
70,
4672,
2875,
273,
20967,
67,
30312,
12,
3394,
13,
468,
714,
1348,
358,
526,
716,
711,
1967,
12486,
487,
733,
1427,
5790,
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,
1744,
2428,
12,
2890,
16,
1348,
16,
21518,
16,
22010,
557,
70,
4672,
2875,
273,
20967,
67,
30312,
12,
3394,
13,
468,
714,
1348,
358,
526,
716,
711,
1967,
12486,
487,
733,
1427,
5790,
4... |
child_stdout.close() child_stderr.close() | def executeAndGetOutput( cmd ): try: import subprocess p = subprocess.Popen( "%s" % cmd, shell = True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds = True ) outData = p.stdout.read().strip() p.wait() except ImportError: import popen2 p3 = popen2.Popen3( "%s" % cmd ) outData = p3.fromchild.read().strip() p3... | 1a7b7cca18e6d874645147d6c501823d311ed3bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/1a7b7cca18e6d874645147d6c501823d311ed3bc/dirac-pilot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
14042,
1447,
12,
1797,
262,
30,
775,
30,
1930,
6652,
293,
273,
6652,
18,
52,
3190,
12,
2213,
87,
6,
738,
1797,
16,
5972,
273,
1053,
16,
3909,
33,
1717,
2567,
18,
27602,
16,
451... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
14042,
1447,
12,
1797,
262,
30,
775,
30,
1930,
6652,
293,
273,
6652,
18,
52,
3190,
12,
2213,
87,
6,
738,
1797,
16,
5972,
273,
1053,
16,
3909,
33,
1717,
2567,
18,
27602,
16,
451... | |
def MaskBadPixels(exposure, policy, fpList, | def MaskBadPixelsFp(exposure, policy, fpList, | def MaskBadPixels(exposure, policy, fpList, interpolate = True, maskName = 'BAD', stageSig = isrLib.ISR_BADP, stageName = 'lsst.ip.isr.maskbadpixels'): # common input test metadata = exposure.getMetadata() if metadata.exists(stageSig): pexLog.Trace(stageName, 4, '%s has already been run' % (stageSig)) return... | df249f635ded5dfefd62ff151f23027f6e90fe8c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6526/df249f635ded5dfefd62ff151f23027f6e90fe8c/IsrStages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16698,
6434,
18079,
42,
84,
12,
22739,
16,
3329,
16,
4253,
682,
16,
13156,
273,
1053,
16,
3066,
461,
565,
273,
296,
16234,
2187,
6009,
8267,
565,
273,
353,
86,
5664,
18,
5127,
54,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16698,
6434,
18079,
42,
84,
12,
22739,
16,
3329,
16,
4253,
682,
16,
13156,
273,
1053,
16,
3066,
461,
565,
273,
296,
16234,
2187,
6009,
8267,
565,
273,
353,
86,
5664,
18,
5127,
54,
67,
... |
def absurl(self, baseurl, tag, key, filter=True): | def absurl(self, baseurl, tag, key, filter=True): | def absurl(self, baseurl, tag, key, filter=True): iurl = tag[key] parts = urlparse.urlsplit(iurl) if not parts.netloc and not parts.path: return None if not parts.scheme: iurl = urlparse.urljoin(baseurl, iurl, False) if not self.is_link_ok(iurl): self.log_debug('Skipping invalid link: %s', iurl) return None if filter a... | 596b52afac5365d3f7c48b017160fc09530e9c95 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/596b52afac5365d3f7c48b017160fc09530e9c95/simple.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2417,
718,
12,
2890,
16,
25427,
16,
1047,
16,
498,
16,
1034,
33,
5510,
4672,
277,
718,
273,
1047,
63,
856,
65,
2140,
273,
15185,
18,
718,
4939,
12,
77,
718,
13,
309,
486,
2140,
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,
2417,
718,
12,
2890,
16,
25427,
16,
1047,
16,
498,
16,
1034,
33,
5510,
4672,
277,
718,
273,
1047,
63,
856,
65,
2140,
273,
15185,
18,
718,
4939,
12,
77,
718,
13,
309,
486,
2140,
18,
... |
cmd = 'cd ' + dirlist[x] + '/' + nodefind + '; find . -print \ 2>&1 1>> %s' % findlog | cmd = 'cd ' + dirlist[x] + '/' + nodefind + '; \ find . -print 1>> %s 2>&1' % logfile | def check_thread(logfile): 'check_thread checks the pidlist for running tasks until the last one ' 'completes.' 'check_thread takes 1 argument:' ' logfile - logfile name' o2tf.printlog('buildkernel:check_thread: Waiting for processes to finish ' 'on thread ', logfile, 0, '') while len(pidlist) > 0: o2tf.printlog('buil... | 336103d6f01db2de18764ceaf9475f2ce0da83f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1915/336103d6f01db2de18764ceaf9475f2ce0da83f9/buildkernel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
5930,
12,
28806,
4672,
296,
1893,
67,
5930,
4271,
326,
4231,
1098,
364,
3549,
4592,
3180,
326,
1142,
1245,
296,
296,
7806,
281,
1093,
296,
1893,
67,
5930,
5530,
404,
1237,
2497,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5930,
12,
28806,
4672,
296,
1893,
67,
5930,
4271,
326,
4231,
1098,
364,
3549,
4592,
3180,
326,
1142,
1245,
296,
296,
7806,
281,
1093,
296,
1893,
67,
5930,
5530,
404,
1237,
2497,... |
return "%s (%s)" % (self.__testMethodName, _strclass(self.__class__)) | return "%s (%s)" % (self._testMethodName, _strclass(self.__class__)) | def __str__(self): return "%s (%s)" % (self.__testMethodName, _strclass(self.__class__)) | 75ecd8e0d687dfdcd2d80ec6d2e0349454779b1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/75ecd8e0d687dfdcd2d80ec6d2e0349454779b1f/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
2213,
87,
6142,
87,
2225,
738,
261,
2890,
16186,
3813,
11666,
16,
389,
701,
1106,
12,
2890,
16186,
1106,
972,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
2213,
87,
6142,
87,
2225,
738,
261,
2890,
16186,
3813,
11666,
16,
389,
701,
1106,
12,
2890,
16186,
1106,
972,
3719,
2,
-100,
-100,
-100,
-100,
-100,
... |
raise util.Abort(_(msg)) | raise util.Abort(_(str(msg))) | def getdiff(ui, repo, r, parent): '''return diff for the specified revision''' output = "" for chunk in patch.diff(repo, parent.node(), r.node()): output += chunk return output | 396721bb31c3ad01cf587ea9c909dbeb2bde4ec3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11434/396721bb31c3ad01cf587ea9c909dbeb2bde4ec3/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5413,
12,
4881,
16,
3538,
16,
436,
16,
982,
4672,
9163,
2463,
3122,
364,
326,
1269,
6350,
26418,
876,
273,
1408,
364,
2441,
316,
4729,
18,
5413,
12,
7422,
16,
982,
18,
2159,
9334,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5413,
12,
4881,
16,
3538,
16,
436,
16,
982,
4672,
9163,
2463,
3122,
364,
326,
1269,
6350,
26418,
876,
273,
1408,
364,
2441,
316,
4729,
18,
5413,
12,
7422,
16,
982,
18,
2159,
9334,... |
def sender(flag): s = socket(AF_INET, SOCK_DGRAM) if flag == '-b': s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1) mygroup = '<broadcast>' | def sender(group): group_ip = ipaddr.IP(group) s = socket.socket(_sockfam(group_ip), socket.SOCK_DGRAM) ttl_bin = struct.pack('@i', MYTTL) if group_ip.version == 4: s.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl_bin) | def main(): flags = sys.argv[1:] # if flags: sender(flags[0]) else: receiver() | b6d4a6a7599bc9ef5f4a34c031a9280a2af3c57e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/b6d4a6a7599bc9ef5f4a34c031a9280a2af3c57e/mcast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2943,
273,
2589,
18,
19485,
63,
21,
26894,
468,
309,
2943,
30,
5793,
12,
7133,
63,
20,
5717,
469,
30,
5971,
1435,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
2774,
13332,
2943,
273,
2589,
18,
19485,
63,
21,
26894,
468,
309,
2943,
30,
5793,
12,
7133,
63,
20,
5717,
469,
30,
5971,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if p_action == 'ef': | if f_action == 'ef': | def updateLayoutForms(self, portal, locator, skin_id, f_action, file_id): """ reload Naaya portal layout files""" report = {} portal_path = portal.absolute_url(1) portal_meta = portal.meta_type file_custom = [] for fid in file_id.split(','): file_custom.append(fid.strip()) | 2429ac708b8941cd1ccd196b463833c8dd1abad4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3287/2429ac708b8941cd1ccd196b463833c8dd1abad4/NaayaUpdater.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
3744,
18529,
12,
2890,
16,
11899,
16,
8871,
16,
18705,
67,
350,
16,
284,
67,
1128,
16,
585,
67,
350,
4672,
3536,
7749,
16350,
528,
69,
11899,
3511,
1390,
8395,
2605,
273,
2618,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
3744,
18529,
12,
2890,
16,
11899,
16,
8871,
16,
18705,
67,
350,
16,
284,
67,
1128,
16,
585,
67,
350,
4672,
3536,
7749,
16350,
528,
69,
11899,
3511,
1390,
8395,
2605,
273,
2618,
1... |
out += """You own following shelves:""" | out += """You own following alerts: """ | def account_list_alerts(uid, action="", id_alert=0, id_basket=0,newname=""): # set variables out = "" id_user = uid # XXX SQL_query = "SELECT distinct a.alert_name FROM query q, user_query_basket a, basket b "\ "WHERE a.id_user='%s' "\ "AND a.id_query=q.id "\ "ORDER BY a.alert_name ASC " % id_user query_result = run_... | 9151eb5c4b9ee232ddefa8c3990b076011feddf0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/9151eb5c4b9ee232ddefa8c3990b076011feddf0/webalert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2236,
67,
1098,
67,
11798,
87,
12,
1911,
16,
1301,
1546,
3113,
612,
67,
11798,
33,
20,
16,
612,
67,
26219,
33,
20,
16,
2704,
529,
1546,
6,
4672,
225,
468,
444,
3152,
596,
273,
1408,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2236,
67,
1098,
67,
11798,
87,
12,
1911,
16,
1301,
1546,
3113,
612,
67,
11798,
33,
20,
16,
612,
67,
26219,
33,
20,
16,
2704,
529,
1546,
6,
4672,
225,
468,
444,
3152,
596,
273,
1408,
... |
print """ | print """ | def usage(): | aa37b2bdfae39b7dbc77c6303652ba62381c3298 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1573/aa37b2bdfae39b7dbc77c6303652ba62381c3298/extractor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
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,
0,
0,
... | [
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
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,
-100,
-100,
... |
have_tkzgraph = not bool(os.system('kpsewhich tkz-graph.sty > /dev/null')) | have_tkzgraph = not bool(os.system('kpsewhich tkz-graph.sty &> /dev/null')) | def check_tkz_graph(): r""" Checks if the proper `\mbox{\rm\LaTeX}` packages for the ``tikzpicture`` environment are installed in the user's environment. If the requisite packages are not found on the first call to this function, warnings are printed. Thereafter, the function caches its result in the variable ``_have_... | 56113f7dfda0d951376a8bb97862e7a932900678 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/56113f7dfda0d951376a8bb97862e7a932900678/graph_latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
16099,
94,
67,
4660,
13332,
436,
8395,
13074,
309,
326,
5338,
1375,
64,
81,
2147,
23241,
8864,
64,
30745,
21575,
60,
11760,
5907,
364,
326,
12176,
88,
1766,
94,
21126,
10335,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
16099,
94,
67,
4660,
13332,
436,
8395,
13074,
309,
326,
5338,
1375,
64,
81,
2147,
23241,
8864,
64,
30745,
21575,
60,
11760,
5907,
364,
326,
12176,
88,
1766,
94,
21126,
10335,
33... |
yield self.endTag(token[1]) | if len(token) == 3: namespace, name = token[1:] else: namespace = default_namespace name= token[1] yield self.endTag(namespace, name) | def __iter__(self): for token in self.tree: type = token[0] if type == "StartTag": yield self.startTag(token[1], token[2]) elif type == "EndTag": yield self.endTag(token[1]) elif type == "EmptyTag": for token in self.emptyTag(token[1], token[2]): yield token elif type == "Comment": yield self.comment(token[1]) elif typ... | 04efd59ca7a00a5e629e57c52455c1b94758e748 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9368/04efd59ca7a00a5e629e57c52455c1b94758e748/test_serializer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
364,
1147,
316,
365,
18,
3413,
30,
618,
273,
1147,
63,
20,
65,
309,
618,
422,
315,
30512,
6877,
2824,
365,
18,
1937,
1805,
12,
2316,
63,
21,
6487,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
364,
1147,
316,
365,
18,
3413,
30,
618,
273,
1147,
63,
20,
65,
309,
618,
422,
315,
30512,
6877,
2824,
365,
18,
1937,
1805,
12,
2316,
63,
21,
6487,
11... |
'..', 'doc', 'userguide', 'userguide.css') | '..', 'doc', 'userguide', 'src', 'userguide.css') | def pygments_directive(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): try: lexer = get_lexer_by_name(arguments[0]) except ValueError: # no lexer found - use the text one instead of an exception lexer = TextLexer() # take an arbitrary option if more than one is given format... | 5df6320eefe270fd5d99705d907101703d444719 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/5df6320eefe270fd5d99705d907101703d444719/tooldoc2html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2395,
75,
1346,
67,
22347,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
775,
30,
8512,
273,
336,
67,
31731... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2395,
75,
1346,
67,
22347,
12,
529,
16,
1775,
16,
702,
16,
913,
16,
7586,
16,
913,
67,
3348,
16,
1203,
67,
955,
16,
919,
16,
919,
67,
9149,
4672,
775,
30,
8512,
273,
336,
67,
31731... |
return [ GeoNames.getGeoEntity( GeoEntity.factory( id = e['geonameId'] )) for e in jsonData['geonames'] if e ] | return filter( [ GeoNames.getGeoEntity( GeoEntity.factory( id = e['geonameId'] )) for e in jsonData['geonames'] ] ) | def getNeighbors(geo_entity): """ returns all neighbours for the given geo id (currently only implemented on a country level) @param[in] geo_entity @returns a list containing the neighbours of the given country """ | 0ae19e124cc3d855c84cc6ee7daa1f89378ba11d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6604/0ae19e124cc3d855c84cc6ee7daa1f89378ba11d/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
27053,
12,
12376,
67,
1096,
4672,
3536,
1135,
777,
27662,
364,
326,
864,
7856,
612,
261,
2972,
715,
1338,
8249,
603,
279,
5251,
1801,
13,
632,
891,
63,
267,
65,
7856,
67,
1096,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
27053,
12,
12376,
67,
1096,
4672,
3536,
1135,
777,
27662,
364,
326,
864,
7856,
612,
261,
2972,
715,
1338,
8249,
603,
279,
5251,
1801,
13,
632,
891,
63,
267,
65,
7856,
67,
1096,
63... |
dataFiles.append("/Library/Frameworks/Python.framework/Versions/2.5/lib/InsightToolkit") | dataFiles.append("/System/Library/Frameworks/Python.framework/Versions/2.5/lib/InsightToolkit") | def build(): """ Builds the appropriate command-line options Docstring: 15.06.2007 twikstro """ print "build()" excludeList = ['PyShell', 'dl', 'dotblas', 'hexdump', 'mx', 'win32com.gen_py', "pywin", "pywin.debugger", "pywin.debugger.dbgcon", "pywin.dialogs", "pywin.dialogs.list", "Tkconstants", "Tkinter", "tcl", "tcl8... | 2304b5ca46f68586c20cdd3b06c625a507db1545 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2877/2304b5ca46f68586c20cdd3b06c625a507db1545/build_app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
13332,
3536,
3998,
87,
326,
5505,
1296,
17,
1369,
702,
3521,
1080,
30,
4711,
18,
7677,
18,
6976,
27,
2339,
1766,
334,
303,
3536,
1172,
315,
3510,
10031,
4433,
682,
273,
10228,
9413... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
13332,
3536,
3998,
87,
326,
5505,
1296,
17,
1369,
702,
3521,
1080,
30,
4711,
18,
7677,
18,
6976,
27,
2339,
1766,
334,
303,
3536,
1172,
315,
3510,
10031,
4433,
682,
273,
10228,
9413... |
for x in self.cache.itervalues(): | cache = self.cache.values() for x in cache: | def getPackageData(self, id): """returns dict with package information""" pack = self.getPackage(id) if not pack: return None pack = pack.toDict()[id] data = self.db.getPackageData(id) tmplist = [] for x in self.cache.itervalues(): if int(x.toDbDict()[x.id]["package"]) == int(id): tmplist.append((str(x.id), x.toDbD... | 18439253b659e3ad9fb9edfd5cacbba116e17849 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/18439253b659e3ad9fb9edfd5cacbba116e17849/FileDatabase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11506,
751,
12,
2890,
16,
612,
4672,
3536,
6154,
2065,
598,
2181,
1779,
8395,
2298,
273,
365,
18,
588,
2261,
12,
350,
13,
225,
309,
486,
2298,
30,
327,
599,
225,
2298,
273,
2298,
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,
11506,
751,
12,
2890,
16,
612,
4672,
3536,
6154,
2065,
598,
2181,
1779,
8395,
2298,
273,
365,
18,
588,
2261,
12,
350,
13,
225,
309,
486,
2298,
30,
327,
599,
225,
2298,
273,
2298,
18,
... |
print map_ideal | def change_ring(self, k): """ Project self onto $k$ | 33594d73faaae24c418901ec6e18391de80f0fd4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/33594d73faaae24c418901ec6e18391de80f0fd4/mpolynomialsystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
67,
8022,
12,
2890,
16,
417,
4672,
3536,
5420,
365,
10170,
271,
79,
8,
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,
2549,
67,
8022,
12,
2890,
16,
417,
4672,
3536,
5420,
365,
10170,
271,
79,
8,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
if InternalParameters.autoPlay: if InternalParameters.field: InternalParameters.field.quit() | if InternalParameters.autoPlay: if InternalParameters.field: InternalParameters.field.quit() | def remote_abort(self, tableid, message, *args): """the server aborted this game""" if self.table and self.table.tableid == tableid: # translate ROBOT to Roboter: args = [m18nc('kajongg', x) for x in args] logWarning(m18n(message, *args)) if self.game: self.game.close() if InternalParameters.autoPlay: if InternalParame... | c5e6fe1853c4d47074731f129582529000d7020d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/c5e6fe1853c4d47074731f129582529000d7020d/humanclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2632,
67,
18623,
12,
2890,
16,
1014,
350,
16,
883,
16,
380,
1968,
4672,
3536,
5787,
1438,
18166,
333,
7920,
8395,
309,
365,
18,
2121,
471,
365,
18,
2121,
18,
2121,
350,
422,
1014,
350,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2632,
67,
18623,
12,
2890,
16,
1014,
350,
16,
883,
16,
380,
1968,
4672,
3536,
5787,
1438,
18166,
333,
7920,
8395,
309,
365,
18,
2121,
471,
365,
18,
2121,
18,
2121,
350,
422,
1014,
350,... |
hdrfn = self.hdrfn(name,arch) base = conf.serverhdrdir[i] log(6, 'localhdrpath= %s for %s %s' % (base + '/' + hdrfn, name, arch)) return base + '/' + hdrfn | if self.localhdrpath.has_key((name, arch)): return self.localhdrpath[(name, arch)] else: hdrfn = self.hdrfn(name,arch) if conf.serverhdrdir.has_key(i): base = conf.serverhdrdir[i] else: errorlog(0, 'asking for package %s.%s - does not exist in nevral - bailing out - check rpmdb for errors' % (name, arch)) sys.exit(1) l... | def localHdrPath(self, name, arch=None): ((e,v,r,a,l,i),state) = self._get_data(name, arch) if state == None: return None if l == 'in_rpm_db': return l hdrfn = self.hdrfn(name,arch) base = conf.serverhdrdir[i] log(6, 'localhdrpath= %s for %s %s' % (base + '/' + hdrfn, name, arch)) return base + '/' + hdrfn | e05ae855728459881925a70cde77ae8eb1f46281 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/e05ae855728459881925a70cde77ae8eb1f46281/nevral.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
14659,
743,
12,
2890,
16,
508,
16,
6637,
33,
7036,
4672,
14015,
73,
16,
90,
16,
86,
16,
69,
16,
80,
16,
77,
3631,
2019,
13,
273,
365,
6315,
588,
67,
892,
12,
529,
16,
6637,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
14659,
743,
12,
2890,
16,
508,
16,
6637,
33,
7036,
4672,
14015,
73,
16,
90,
16,
86,
16,
69,
16,
80,
16,
77,
3631,
2019,
13,
273,
365,
6315,
588,
67,
892,
12,
529,
16,
6637,
... |
except AttrinuteError: | except AttributeError: | def do_mouseDown(self, event): (what, message, when, where, modifiers) = event partcode, window = FindWindow(where) if partname.has_key(partcode): name = "do_" + partname[partcode] else: name = "do_%d" % partcode try: handler = getattr(self, name) except AttrinuteError: handler = self.do_unknownpartcode handler(partcod... | 7a58336511b8c405e01bcda0b886b19c2947189a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7a58336511b8c405e01bcda0b886b19c2947189a/FrameWork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
11697,
4164,
12,
2890,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
1087,
710,
16,
2742,
273,
4163,
3829,
12,
6051,
13,
309,
1087,
529,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
11697,
4164,
12,
2890,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
1087,
710,
16,
2742,
273,
4163,
3829,
12,
6051,
13,
309,
1087,
529,
1... |
if fstat == -1: notify(grb, dag, 'DAG exited on error') self.status = -self.status elif fstat==-2: notify(grb, dag, 'DAG file vanished!?') self.status = -6 | if fstat<0: self.status = -self.status if fstat == -1: notify(grb, dag, 'DAG exited on error') elif fstat==-2: notify(grb, dag, 'DAG file vanished!?') | def check_status(self, grb, dag): """ Updating the status for this DAG, and return the fstat value """ | f98e53d9940e2e449ad99d83fe2c177827003390 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/f98e53d9940e2e449ad99d83fe2c177827003390/pylal_exttrig_llutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2327,
12,
2890,
16,
3821,
70,
16,
22940,
4672,
3536,
27254,
1776,
326,
1267,
364,
333,
463,
1781,
16,
471,
327,
326,
284,
5642,
460,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2327,
12,
2890,
16,
3821,
70,
16,
22940,
4672,
3536,
27254,
1776,
326,
1267,
364,
333,
463,
1781,
16,
471,
327,
326,
284,
5642,
460,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
lo = lo + i * av[0] hi = hi + j * av[1] | lo = lo + long(i) * av[0] hi = hi + long(j) * av[1] | def getwidth(self): | 842e911e887411eb043a164240fdb6b694895e87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/842e911e887411eb043a164240fdb6b694895e87/sre_parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2819,
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,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2819,
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,
-1... |
line = pkt.datain.read (pkt.nbytes) | line = pkt.fromClient (pkt.nbytes) | def handleWCS (self, pkt): if (pkt.tid & IIS_READ): self.server.controller.updateProgressInfo ('Writing WCS to client...', -1) # Return the WCS for the referenced frame. if ((pkt.x & 017777) and (pkt.y & 017777)): # return IIS version number text = "version=" + str (IIS_VERSION) text = rightPad (text, SZ_OLD_WCSBUF) el... | eb163fa149dbd928a3fa7b9842edc6170373d658 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2360/eb163fa149dbd928a3fa7b9842edc6170373d658/RequestHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
59,
4596,
261,
2890,
16,
11536,
4672,
309,
261,
5465,
88,
18,
18081,
473,
467,
5127,
67,
6949,
4672,
365,
18,
3567,
18,
5723,
18,
2725,
5491,
966,
7707,
18835,
30437,
358,
1004,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
59,
4596,
261,
2890,
16,
11536,
4672,
309,
261,
5465,
88,
18,
18081,
473,
467,
5127,
67,
6949,
4672,
365,
18,
3567,
18,
5723,
18,
2725,
5491,
966,
7707,
18835,
30437,
358,
1004,
... |
self.socket.setsockopt ( | self.socket.setsockopt( | def set_reuse_addr (self): # try to re-use a server port if possible try: self.socket.setsockopt ( socket.SOL_SOCKET, socket.SO_REUSEADDR, self.socket.getsockopt (socket.SOL_SOCKET, socket.SO_REUSEADDR) | 1 ) except socket.error: pass | 52c4de7c23c31563e4f0316b68865e17bb8c0f33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/52c4de7c23c31563e4f0316b68865e17bb8c0f33/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
266,
1202,
67,
4793,
261,
2890,
4672,
468,
775,
358,
283,
17,
1202,
279,
1438,
1756,
309,
3323,
775,
30,
365,
18,
7814,
18,
4424,
27844,
12,
2987,
18,
19815,
67,
25699,
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,
444,
67,
266,
1202,
67,
4793,
261,
2890,
4672,
468,
775,
358,
283,
17,
1202,
279,
1438,
1756,
309,
3323,
775,
30,
365,
18,
7814,
18,
4424,
27844,
12,
2987,
18,
19815,
67,
25699,
16,
... |
def authorize_order(self, order_id, do_in_production=False): if do_in_production or self.is_sandbox: self.send_message(gmodel.authorize_order_t( google_order_number = order_id )) | def authorize_order(self, order_id): self.send_message(gmodel.authorize_order_t( google_order_number = order_id )) | def authorize_order(self, order_id, do_in_production=False): if do_in_production or self.is_sandbox: self.send_message(gmodel.authorize_order_t( google_order_number = order_id )) | 2dae73cb17e61665bc3a359c80357abb15f324ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10801/2dae73cb17e61665bc3a359c80357abb15f324ba/controller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12229,
67,
1019,
12,
2890,
16,
1353,
67,
350,
16,
741,
67,
267,
67,
17273,
33,
8381,
4672,
309,
741,
67,
267,
67,
17273,
578,
365,
18,
291,
67,
27004,
30,
365,
18,
4661,
67,
2150,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12229,
67,
1019,
12,
2890,
16,
1353,
67,
350,
16,
741,
67,
267,
67,
17273,
33,
8381,
4672,
309,
741,
67,
267,
67,
17273,
578,
365,
18,
291,
67,
27004,
30,
365,
18,
4661,
67,
2150,
... |
self.session.nav.SleepTimer.setSleepTime(int(self["input"].getText())) self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been activated."), MessageBox.TYPE_INFO) | if self.is_active: self.session.nav.SleepTimer.setSleepTime(int(self["input"].getText())) self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been activated."), MessageBox.TYPE_INFO) else: self.session.nav.SleepTimer.clear() self.session.openWithCallback(self.close, MessageBox, _("The sleep tim... | def select(self): self.session.nav.SleepTimer.setSleepTime(int(self["input"].getText())) self.session.openWithCallback(self.close, MessageBox, _("The sleep timer has been activated."), MessageBox.TYPE_INFO) | 2e670b5e69b463895aeab6268bf67fa35ba73c21 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/2e670b5e69b463895aeab6268bf67fa35ba73c21/SleepTimerEdit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
4672,
365,
18,
3184,
18,
11589,
18,
20768,
6777,
18,
542,
20768,
950,
12,
474,
12,
2890,
9614,
2630,
6,
8009,
588,
1528,
1435,
3719,
365,
18,
3184,
18,
3190,
1190,
2428... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
4672,
365,
18,
3184,
18,
11589,
18,
20768,
6777,
18,
542,
20768,
950,
12,
474,
12,
2890,
9614,
2630,
6,
8009,
588,
1528,
1435,
3719,
365,
18,
3184,
18,
3190,
1190,
2428... |
header.write("extern xmlChRangeGroup %sGroup;\n" % f) | header.write("XMLPUBVAR xmlChRangeGroup %sGroup;\n" % f) | typedef xmlChRangeGroup *xmlChRangeGroupPtr; | 871611bb0325095b30559ff1edc1fdaa2ad5fd2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/871611bb0325095b30559ff1edc1fdaa2ad5fd2f/genChRanges.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
618,
536,
2025,
782,
2655,
1114,
380,
2902,
782,
2655,
1114,
5263,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
618,
536,
2025,
782,
2655,
1114,
380,
2902,
782,
2655,
1114,
5263,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
this = apply(_quickfix.new_TrdType, args) | this = _quickfix.new_TrdType(*args) | def __init__(self, *args): this = apply(_quickfix.new_TrdType, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
1070,
72,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
1070,
72,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365... |
owner__isnull=True): | group_account=True): | def balance(request, group, is_admin=False): """Show balance sheet for the group""" # Balance sheet data struct accounts = { 'as': [], 'as_sum': 0, 'li': [], 'li_sum': 0, 'eq': [], 'eq_sum': 0, 'li_eq_sum': 0, } # Assets for account in group.account_set.filter(type=Account.ASSET_ACCOUNT): accounts['as'].append(accoun... | fd6d9894466b9870d6e261a8d40c67257a986188 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12178/fd6d9894466b9870d6e261a8d40c67257a986188/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11013,
12,
2293,
16,
1041,
16,
353,
67,
3666,
33,
8381,
4672,
3536,
5706,
11013,
6202,
364,
326,
1041,
8395,
225,
468,
30918,
6202,
501,
1958,
9484,
273,
288,
296,
345,
4278,
5378,
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,
11013,
12,
2293,
16,
1041,
16,
353,
67,
3666,
33,
8381,
4672,
3536,
5706,
11013,
6202,
364,
326,
1041,
8395,
225,
468,
30918,
6202,
501,
1958,
9484,
273,
288,
296,
345,
4278,
5378,
16,
... |
logger.info('NOT forcing login: %s is in page white list.', | logger.debug('NOT forcing login: %s is in page white list.', | def force_login(request, props): force_login_header = props.getProperty('force_login_header', None) if not force_login_header: return False # Note: to truly test what happens when forcing login via a header # on your local machine without any Apache setup, you should # comment out this condition: if not request.get_he... | 18aa241638e2d7d8d97916769311c2166cc29777 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10439/18aa241638e2d7d8d97916769311c2166cc29777/traversal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2944,
67,
5819,
12,
2293,
16,
3458,
4672,
2944,
67,
5819,
67,
3374,
273,
3458,
18,
588,
1396,
2668,
5734,
67,
5819,
67,
3374,
2187,
599,
13,
309,
486,
2944,
67,
5819,
67,
3374,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2944,
67,
5819,
12,
2293,
16,
3458,
4672,
2944,
67,
5819,
67,
3374,
273,
3458,
18,
588,
1396,
2668,
5734,
67,
5819,
67,
3374,
2187,
599,
13,
309,
486,
2944,
67,
5819,
67,
3374,
30,
3... |
import regsub return regsub.gsub('[^0-9a-zA-Z-_\.]', '_', name) | import re return re.sub('[^0-9a-zA-Z-_\.]', '_', name) | def NormalizeAnchor(name): import regsub return regsub.gsub('[^0-9a-zA-Z-_\.]', '_', name) | 0efad460e369a3875f52aca56f3cc6b82da39a69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/0efad460e369a3875f52aca56f3cc6b82da39a69/cvs2hist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14282,
11605,
12,
529,
4672,
1930,
283,
327,
283,
18,
1717,
2668,
5969,
20,
17,
29,
69,
17,
9600,
17,
62,
17,
67,
5834,
65,
2187,
2070,
2187,
508,
13,
225,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14282,
11605,
12,
529,
4672,
1930,
283,
327,
283,
18,
1717,
2668,
5969,
20,
17,
29,
69,
17,
9600,
17,
62,
17,
67,
5834,
65,
2187,
2070,
2187,
508,
13,
225,
2,
-100,
-100,
-100,
-100,... |
optional=['format', 'editor']), | optional=['format', 'editor', 'folder']), | def _run_delete(client, options, args): entries = client.get_doclist(options.title) client.Delete(entries, 'document', googlecl.CONFIG.getboolean('GENERAL', 'delete_by_default')) | c39b8a9627de0edfb3d799d2d03eab92d3ba2b20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/c39b8a9627de0edfb3d799d2d03eab92d3ba2b20/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
3733,
12,
2625,
16,
702,
16,
833,
4672,
3222,
273,
1004,
18,
588,
67,
2434,
1098,
12,
2116,
18,
2649,
13,
1004,
18,
2613,
12,
8219,
16,
296,
5457,
2187,
5200,
830,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
67,
3733,
12,
2625,
16,
702,
16,
833,
4672,
3222,
273,
1004,
18,
588,
67,
2434,
1098,
12,
2116,
18,
2649,
13,
1004,
18,
2613,
12,
8219,
16,
296,
5457,
2187,
5200,
830,
18,... |
title = u'Restore published shares...', helpString = u'Restore previously published shares'), | title = _(u'Restore published shares...'), helpString = _(u'Restore previously published shares')), | def makeVisibleHourMenuItems(parcel): """ Create the 'Visible Hours' submenu. Should look like: Automatic --------- 5 hours 6 hours | 0d7cec47577790ca58b99960a5bfa361e737111e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/0d7cec47577790ca58b99960a5bfa361e737111e/menus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
6207,
13433,
4599,
3126,
12,
1065,
2183,
4672,
3536,
1788,
326,
296,
6207,
670,
4390,
11,
27539,
18,
9363,
2324,
3007,
30,
225,
11809,
4941,
300,
788,
1381,
7507,
1666,
7507,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
6207,
13433,
4599,
3126,
12,
1065,
2183,
4672,
3536,
1788,
326,
296,
6207,
670,
4390,
11,
27539,
18,
9363,
2324,
3007,
30,
225,
11809,
4941,
300,
788,
1381,
7507,
1666,
7507,
2,
-1... |
self.canvasitems[1].move(0, self.sun_direction); if( (self.canvasitems[1].get_bounds()[1] > 0 and self.canvasitems[1].get_bounds()[1] < 70 ) ) : | self.sunitem.move(0, self.sun_direction); if( (self.sunitem.get_bounds()[1] > 0 and self.sunitem.get_bounds()[1] < 70 ) ) : | def move_sun(self): self.canvasitems[1].move(0, self.sun_direction); if( (self.canvasitems[1].get_bounds()[1] > 0 and self.canvasitems[1].get_bounds()[1] < 70 ) ) : self.sun_timer = gtk.timeout_add(self.timerinc, self.move_sun) else : if(self.sun_direction < 0) : # Stop the sun self.sun_timer = gtk.timeout_add(15000, s... | 690f8ac7446757307ab013b8fb8fe772b4ea0d9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/690f8ac7446757307ab013b8fb8fe772b4ea0d9d/watercycle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
16924,
12,
2890,
4672,
365,
18,
16924,
1726,
18,
8501,
12,
20,
16,
365,
18,
16924,
67,
9855,
1769,
309,
12,
261,
2890,
18,
16924,
1726,
18,
588,
67,
10576,
1435,
63,
21,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
16924,
12,
2890,
4672,
365,
18,
16924,
1726,
18,
8501,
12,
20,
16,
365,
18,
16924,
67,
9855,
1769,
309,
12,
261,
2890,
18,
16924,
1726,
18,
588,
67,
10576,
1435,
63,
21,
65... |
borrow=True)) | borrow=True), mode=mode) | def basictest(f, steps, prefix=""): dt = 0.0 for i in xrange(steps): t0 = time.time() ival = f() dt += time.time() - t0 ival = numpy.asarray(ival) if i == 0: mean = numpy.array(ival, copy=True) else: alpha = 1.0 / (1+i) mean = alpha * ival + (1-alpha)*mean assert ival.min()>0 and ival.max()<1 | 5f0a153646f4ea9d24dc458b1d1fa19b8dc3dad7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/5f0a153646f4ea9d24dc458b1d1fa19b8dc3dad7/test_rng_mrg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2580,
933,
395,
12,
74,
16,
6075,
16,
1633,
1546,
6,
4672,
3681,
273,
374,
18,
20,
364,
277,
316,
12314,
12,
8986,
4672,
268,
20,
273,
813,
18,
957,
1435,
277,
1125,
273,
284,
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,
2580,
933,
395,
12,
74,
16,
6075,
16,
1633,
1546,
6,
4672,
3681,
273,
374,
18,
20,
364,
277,
316,
12314,
12,
8986,
4672,
268,
20,
273,
813,
18,
957,
1435,
277,
1125,
273,
284,
1435,
... |
def startTagNew(self, name, other): | def startTagNew(self, name, attributes): | def startTagNew(self, name, other): """New HTML5 elements, "event-source", "section", "nav", "article", "aside", "header", "footer", "datagrid", "command" """ raise NotImplementedError | 52baa1c0197844315bed45ad5ecd5a01645b9f8c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10463/52baa1c0197844315bed45ad5ecd5a01645b9f8c/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
1908,
12,
2890,
16,
508,
16,
1677,
4672,
3536,
1908,
3982,
25,
2186,
16,
315,
2575,
17,
3168,
3113,
315,
3464,
3113,
315,
11589,
3113,
315,
11480,
3113,
315,
345,
831,
3113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
1908,
12,
2890,
16,
508,
16,
1677,
4672,
3536,
1908,
3982,
25,
2186,
16,
315,
2575,
17,
3168,
3113,
315,
3464,
3113,
315,
11589,
3113,
315,
11480,
3113,
315,
345,
831,
3113,
... |
EXAMPLE: | EXAMPLE:: | def ring(self): """ Create, return and cache a polynomial ring for S-box polynomials. | d8d819d404da04929f5525b5dd795973a8bd80ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d8d819d404da04929f5525b5dd795973a8bd80ae/sbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9221,
12,
2890,
4672,
3536,
1788,
16,
327,
471,
1247,
279,
16991,
9221,
364,
348,
17,
2147,
16991,
87,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9221,
12,
2890,
4672,
3536,
1788,
16,
327,
471,
1247,
279,
16991,
9221,
364,
348,
17,
2147,
16991,
87,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
env.Append(CXXFLAGS = [ '-O0', '-g', '-fno-inline' ], | env.Append(CXXFLAGS = [ '-O0', '-g' ], | def MakeEnvironment(): global opts, finalizers InitOpts() env = SCons.Environment.Environment(options=opts) env.Replace(**SCons.Script.SConscript.Arguments) #for opt in opts.options: # if SCons.Script.SConscript.Arguments.get(opt.key): # env[opt.key] = SCons.Script.SConscript.Arguments.get(opt.key) #if SCons.... | fed7a30eccd5690b3378ffb98226ad0f733b4525 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2548/fed7a30eccd5690b3378ffb98226ad0f733b4525/SENFSCons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
5494,
13332,
2552,
1500,
16,
727,
8426,
4378,
5476,
1435,
1550,
273,
20487,
18,
5494,
18,
5494,
12,
2116,
33,
4952,
13,
1550,
18,
5729,
12,
636,
55,
9054,
18,
3651,
18,
55,
442,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
5494,
13332,
2552,
1500,
16,
727,
8426,
4378,
5476,
1435,
1550,
273,
20487,
18,
5494,
18,
5494,
12,
2116,
33,
4952,
13,
1550,
18,
5729,
12,
636,
55,
9054,
18,
3651,
18,
55,
442,
... |
if siteFullName.find('.') != -1: grid,site,country = siteFullName.split('.') | if siteFullName.find( '.' ) != -1: grid, site, country = siteFullName.split( '.' ) | def getSiteSummaryWeb(self,selectDict, sortList, startItem, maxItems): """ Get the summary of jobs in a given status on all the sites in the standard Web form """ | 99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11021,
4733,
4079,
12,
2890,
16,
4025,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
6550,
316,
279,
864,
1267,
603,
777,
326,
9180,
316,
326,
452... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11021,
4733,
4079,
12,
2890,
16,
4025,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
6550,
316,
279,
864,
1267,
603,
777,
326,
9180,
316,
326,
452... |
DICTIONARY_TABLE = 'CEDICT' COLUMNS = ['HeadwordSimplified', 'HeadwordTraditional', 'Reading', 'Translation'] def __init__(self, headword='s', entryFactory=None, readingFormatFactory=None, translationFormatFactory=None, | def __init__(self, entryFactory=None, readingFormatStrategy=None, translationFormatStrategy=None, translationSearchStrategy=None, | def getForReading(self, readingStr, limit=None, orderBy=None): dictionaryTable = self.db.tables[self.DICTIONARY_TABLE] | 4c727813531c7579b99ed686160ec93ff63a4db2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/4c727813531c7579b99ed686160ec93ff63a4db2/dictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25761,
15714,
12,
2890,
16,
6453,
1585,
16,
1800,
33,
7036,
16,
5278,
33,
7036,
4672,
3880,
1388,
273,
365,
18,
1966,
18,
9373,
63,
2890,
18,
2565,
3106,
6043,
67,
7775,
65,
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,
25761,
15714,
12,
2890,
16,
6453,
1585,
16,
1800,
33,
7036,
16,
5278,
33,
7036,
4672,
3880,
1388,
273,
365,
18,
1966,
18,
9373,
63,
2890,
18,
2565,
3106,
6043,
67,
7775,
65,
2,
-100,
... |
if lower: data = data.lower() | def matchBytes(self, bytes, lower=False): """Look for a sequence of bytes at the start of a string. If the bytes are found return True and advance the position to the byte after the match. Otherwise return False and leave the position alone""" p = self.position data = self[p:p+len(bytes)] if lower: data = data.lower() ... | 31342ce8bac2619bff3f1a9e83226d36ace6f859 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10463/31342ce8bac2619bff3f1a9e83226d36ace6f859/inputstream.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
845,
2160,
12,
2890,
16,
1731,
16,
2612,
33,
8381,
4672,
3536,
9794,
364,
279,
3102,
434,
1731,
622,
326,
787,
434,
279,
533,
18,
971,
326,
1731,
854,
1392,
327,
1053,
471,
8312,
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,
845,
2160,
12,
2890,
16,
1731,
16,
2612,
33,
8381,
4672,
3536,
9794,
364,
279,
3102,
434,
1731,
622,
326,
787,
434,
279,
533,
18,
971,
326,
1731,
854,
1392,
327,
1053,
471,
8312,
326,
... | |
logging.error('Crash handling system disabled: %s' % e) | logging.warning('Crash handling disabled: %s', e) | def configure_crash_handler(self): """ Configure the crash handler by: * Setting up core size to unlimited * Putting an appropriate crash handler on /proc/sys/kernel/core_pattern * Create files that the crash handler will use to figure which tests are active at a given moment | ce3383ca221f3649b5e3cd4c34a48d8b82cedb70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/ce3383ca221f3649b5e3cd4c34a48d8b82cedb70/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
3353,
961,
67,
4176,
12,
2890,
4672,
3536,
11758,
326,
17053,
1838,
635,
30,
380,
13274,
731,
2922,
963,
358,
640,
21325,
380,
4399,
1787,
392,
5505,
17053,
1838,
603,
342,
938... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
3353,
961,
67,
4176,
12,
2890,
4672,
3536,
11758,
326,
17053,
1838,
635,
30,
380,
13274,
731,
2922,
963,
358,
640,
21325,
380,
4399,
1787,
392,
5505,
17053,
1838,
603,
342,
938... |
def __init__(self, server, fd): work_stream_base.__init__(self, server) | def init(self, fd): | def __init__(self, server, fd): work_stream_base.__init__(self, server) self.fd = fd | c89dfbb082f3fee0737301e8c81aaa7959b3a032 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/924/c89dfbb082f3fee0737301e8c81aaa7959b3a032/gxp_js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
5194,
4672,
365,
18,
8313,
273,
5194,
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,
1208,
12,
2890,
16,
5194,
4672,
365,
18,
8313,
273,
5194,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Take a list of string arguments parsed via pyparsing, unquote those that are quoted, and evaluate the special variables ('__*'). | Take a list of string arguments parsed via pyparsing and evaluate the special variables ('__*'). | def process_args(args, globals_dict, locals_dict): """ Take a list of string arguments parsed via pyparsing, unquote those that are quoted, and evaluate the special variables ('__*'). Return a new list. """ newargs = [] for arg in args: # strip quotes from quoted strings. # don't use string.strip, which will remove mor... | f7d081c0212bb85ca37f26e5b52fd29e5812c18b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8598/f7d081c0212bb85ca37f26e5b52fd29e5812c18b/parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
1968,
12,
1968,
16,
10941,
67,
1576,
16,
8985,
67,
1576,
4672,
3536,
17129,
279,
666,
434,
533,
1775,
2707,
3970,
18951,
297,
2470,
471,
5956,
326,
4582,
3152,
7707,
972,
4035,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1968,
12,
1968,
16,
10941,
67,
1576,
16,
8985,
67,
1576,
4672,
3536,
17129,
279,
666,
434,
533,
1775,
2707,
3970,
18951,
297,
2470,
471,
5956,
326,
4582,
3152,
7707,
972,
4035,... |
[Z * (Z *c + a * T.dot(X,Y) + b * T.dot(R,S).T)], mode='FAST_RUN') | [Z * (Z + b * T.dot(R,S).T)], mode='FAST_RUN') | def test_inplace0(): #should fail to insert gemm because gemm would create cycles X,Y,Z,a,b = T.dmatrix(), T.dmatrix(), T.dmatrix(), T.dscalar(), T.dscalar() R, S, c = T.dmatrix(), T.dmatrix(), T.dscalar() f = inplace_func([X,Y,Z,a,b, R, S, c], [Z * (Z *c + a * T.dot(X,Y) + b * T.dot(R,S).T)], mode='FAST_RUN') if (gem... | e24eb744be203df5b7d228a71085cf59c79b2182 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/e24eb744be203df5b7d228a71085cf59c79b2182/test_blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
267,
964,
20,
13332,
468,
13139,
2321,
358,
2243,
17474,
81,
2724,
17474,
81,
4102,
752,
15139,
1139,
16,
61,
16,
62,
16,
69,
16,
70,
273,
399,
18,
72,
5667,
9334,
399,
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,
1842,
67,
267,
964,
20,
13332,
468,
13139,
2321,
358,
2243,
17474,
81,
2724,
17474,
81,
4102,
752,
15139,
1139,
16,
61,
16,
62,
16,
69,
16,
70,
273,
399,
18,
72,
5667,
9334,
399,
18,... |
return S_ERROR('Failed to get DB info: %s' % res['Message']) | return S_ERROR( 'Failed to get DB info: %s' % res['Message'] ) | def export_plotView(self,paramsDict): """ Plot the view for the supplied parameters """ | 4797b8c582dfd807acec37afc8310baba2b3d395 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/4797b8c582dfd807acec37afc8310baba2b3d395/DataLoggingHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
4032,
1767,
12,
2890,
16,
2010,
5014,
4672,
3536,
225,
15211,
326,
1476,
364,
326,
4580,
1472,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
4032,
1767,
12,
2890,
16,
2010,
5014,
4672,
3536,
225,
15211,
326,
1476,
364,
326,
4580,
1472,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return False | return True | def __GetRegionLayout(self, fd): if not self.__GetHexNumber(): raise Warning("expected Region Offset At Line %d" % self.CurrentLineNumber) region = Region.region() region.Offset = self.__Token if not self.__IsToken( "|"): raise Warning("expected '|' At Line %d" % self.CurrentLineNumber) if not self.__GetHexNumber():... | a83bd801068d42d6c1460cf15ea4f6626d50d403 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/a83bd801068d42d6c1460cf15ea4f6626d50d403/FdfParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
967,
5165,
3744,
12,
2890,
16,
5194,
4672,
309,
486,
365,
16186,
967,
7037,
1854,
13332,
1002,
9728,
2932,
3825,
9164,
9874,
2380,
5377,
738,
72,
6,
738,
365,
18,
3935,
31063,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
967,
5165,
3744,
12,
2890,
16,
5194,
4672,
309,
486,
365,
16186,
967,
7037,
1854,
13332,
1002,
9728,
2932,
3825,
9164,
9874,
2380,
5377,
738,
72,
6,
738,
365,
18,
3935,
31063,
13,
... |
_tryorder = ["galeon", "skipstone", "mozilla", "netscape", | _tryorder = ["galeon", "skipstone", "mozilla-firefox", "mozilla-firebird", "mozilla", "netscape", | def open_new(self, url): self.open(url) | 50cbb7e5549d1eb9ef6b2a23d663e7be5637712a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/50cbb7e5549d1eb9ef6b2a23d663e7be5637712a/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2704,
12,
2890,
16,
880,
4672,
365,
18,
3190,
12,
718,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2704,
12,
2890,
16,
880,
4672,
365,
18,
3190,
12,
718,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for i_seq, sc in enumerate(self.dbe_xray_structure.scatterers()): if(sc.label in self.params.restraints.selection): self.restraints_selection[i_seq] = True print self.restraints_selection.count(True),self.restraints_selection.count(False) | if(self.params.restraints.selection is not None): for i_seq, sc in enumerate(self.dbe_xray_structure.scatterers()): if(sc.label in self.params.restraints.selection): self.restraints_selection[i_seq] = True | def __init__(self, geometry, atom_attributes_list, xray_structure, params = dbe_master_params.extract(), log = None): adopt_init_args(self, locals()) if(log is None): self.log = sys.stdout self.sites_cart = self.xray_structure.sites_cart() self.u_iso = self.xray_structure.extract_u_iso_or_u_equiv() self.b_iso = self... | 6508f8d0c7b819ca7c73185f4a1fefc0d4cfd4c0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/6508f8d0c7b819ca7c73185f4a1fefc0d4cfd4c0/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5316,
16,
3179,
67,
4350,
67,
1098,
16,
619,
435,
67,
7627,
16,
859,
273,
1319,
73,
67,
7525,
67,
2010,
18,
8004,
9334,
613,
565,
273,
599,
4672,
1261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5316,
16,
3179,
67,
4350,
67,
1098,
16,
619,
435,
67,
7627,
16,
859,
273,
1319,
73,
67,
7525,
67,
2010,
18,
8004,
9334,
613,
565,
273,
599,
4672,
1261,... |
eg("""canvas.ellipse(x, y, width, height, stroke=1, fill=0)""") | eg("""canvas.ellipse(x1,y1, x2,y2, stroke=1, fill=0)""") | eg(""" def __init__(self,filename, pagesize=(595.27,841.89), bottomup = 1, pageCompression=0, encoding=rl_config.defaultEncoding, verbosity=0): """) | 3b7d524b971f3099c8c24eb959e79abb468a1f6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/3b7d524b971f3099c8c24eb959e79abb468a1f6f/ch2_graphics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
9130,
2932,
3660,
565,
1652,
1001,
2738,
972,
12,
2890,
16,
3459,
16,
4689,
554,
28657,
6162,
25,
18,
5324,
16,
5193,
21,
18,
6675,
3631,
5469,
416,
273,
404,
16,
1363,
15270,
33,
20,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
9130,
2932,
3660,
565,
1652,
1001,
2738,
972,
12,
2890,
16,
3459,
16,
4689,
554,
28657,
6162,
25,
18,
5324,
16,
5193,
21,
18,
6675,
3631,
5469,
416,
273,
404,
16,
1363,
15270,
33,
20,
16,
... |
date = datetime( | date = datetime.datetime( | def add_hours(self, cursor, user, company, date, hours, context=None): day_per_week = company.hours_per_work_week / company.hours_per_work_day | 37977ffd4cba2a2b2be5d263a7cf423a44376bec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9282/37977ffd4cba2a2b2be5d263a7cf423a44376bec/work.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
16814,
12,
2890,
16,
3347,
16,
729,
16,
9395,
16,
1509,
16,
7507,
16,
819,
33,
7036,
4672,
2548,
67,
457,
67,
10741,
273,
9395,
18,
16814,
67,
457,
67,
1252,
67,
10741,
342,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
16814,
12,
2890,
16,
3347,
16,
729,
16,
9395,
16,
1509,
16,
7507,
16,
819,
33,
7036,
4672,
2548,
67,
457,
67,
10741,
273,
9395,
18,
16814,
67,
457,
67,
1252,
67,
10741,
342,... |
no_of_cols = 0 for col_id in snpData.col_id_ls: if col_id in col_id2NA_mismatch_rate and col_id2NA_mismatch_rate[col_id][1]<=max_mismatch_rate: no_of_cols += 1 | if max_mismatch_rate>=0 and max_mismatch_rate<1: col_id_wanted_set = Set() for col_id in snpData.col_id_ls: if col_id in col_id2NA_mismatch_rate and col_id2NA_mismatch_rate[col_id][1]<=max_mismatch_rate and col_id2NA_mismatch_rate[col_id][1]>=0: col_id_wanted_set.add(col_id) elif max_mismatch_rate>=1: col_id_wanted_set... | def removeColsByMismatchRate(cls, snpData, col_id2NA_mismatch_rate, max_mismatch_rate=1): """ 2008-05-19 """ sys.stderr.write("Removing cols whose mismatch_rate >%s ..."%(max_mismatch_rate)) no_of_cols = 0 #extra computing time a bit, but to save memory for col_id in snpData.col_id_ls: if col_id in col_id2NA_mismatch_r... | a0db0d6d1d040c21cd05d0fc1b5346c1ed01e4df /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/a0db0d6d1d040c21cd05d0fc1b5346c1ed01e4df/SNP.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
8011,
858,
16901,
4727,
12,
6429,
16,
28648,
751,
16,
645,
67,
350,
22,
11277,
67,
11173,
1916,
67,
5141,
16,
943,
67,
11173,
1916,
67,
5141,
33,
21,
4672,
3536,
4044,
28,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
8011,
858,
16901,
4727,
12,
6429,
16,
28648,
751,
16,
645,
67,
350,
22,
11277,
67,
11173,
1916,
67,
5141,
16,
943,
67,
11173,
1916,
67,
5141,
33,
21,
4672,
3536,
4044,
28,
17,
... |
width, height = self.guake.get_final_window_size() self.guake.window.resize(width, height) | window_rect = self.guake.get_final_window_rect() self.guake.window.resize(window_rect.width, window_rect.height) | def size_changed(self, client, connection_id, entry, data): """If the gconf var window_size be changed, this method will be called and will call the resize function in guake. """ width, height = self.guake.get_final_window_size() self.guake.window.resize(width, height) | a9c19174a0f3c1230e8b29eaaebfda077b0efbef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11147/a9c19174a0f3c1230e8b29eaaebfda077b0efbef/guake.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
963,
67,
6703,
12,
2890,
16,
1004,
16,
1459,
67,
350,
16,
1241,
16,
501,
4672,
3536,
2047,
326,
314,
3923,
569,
2742,
67,
1467,
506,
3550,
16,
333,
707,
903,
506,
2566,
471,
903,
745... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
963,
67,
6703,
12,
2890,
16,
1004,
16,
1459,
67,
350,
16,
1241,
16,
501,
4672,
3536,
2047,
326,
314,
3923,
569,
2742,
67,
1467,
506,
3550,
16,
333,
707,
903,
506,
2566,
471,
903,
745... |
print >>sys.stderr, "l1=%r, l2=%r, ignore=%r" % (l1, l2, ignore) | print >>sys.stderr, "l1=%r\nl2=%r\nignore=%r" % (l1, l2, ignore) | def assertListEq(self, l1, l2, ignore): ''' succeed iff {l1} - {ignore} == {l2} - {ignore} ''' try: for p1, p2 in (l1, l2), (l2, l1): for item in p1: ok = (item in p2) or (item in ignore) if not ok: self.fail("%r missing" % item) except: print >>sys.stderr, "l1=%r, l2=%r, ignore=%r" % (l1, l2, ignore) raise | 39e2d376cc78754548026969ed2493e4b643f498 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/39e2d376cc78754548026969ed2493e4b643f498/test_pyclbr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
682,
19508,
12,
2890,
16,
328,
21,
16,
328,
22,
16,
2305,
4672,
9163,
12897,
21437,
288,
80,
21,
97,
300,
288,
6185,
97,
422,
288,
80,
22,
97,
300,
288,
6185,
97,
9163,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
682,
19508,
12,
2890,
16,
328,
21,
16,
328,
22,
16,
2305,
4672,
9163,
12897,
21437,
288,
80,
21,
97,
300,
288,
6185,
97,
422,
288,
80,
22,
97,
300,
288,
6185,
97,
9163,
775,
... |
assert ('bz2' in sys.modules.keys(), "ERROR: module bz2 cannot be imported") | assert 'bz2' in sys.modules.keys(), "ERROR: module bz2 cannot be imported" | def openlogfile(filename): """Return a file object given a filename. Given the filename of a log file or a gzipped, zipped, or bzipped log file, this function returns a regular Python file object. Given an address starting with http://, this function retrieves the url and returns a file object using a temporary file.... | da2edf5aac3a0f7733240eb4f7360a1d36c2e6d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8167/da2edf5aac3a0f7733240eb4f7360a1d36c2e6d5/logfileparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
28806,
12,
3459,
4672,
3536,
990,
279,
585,
733,
864,
279,
1544,
18,
225,
16803,
326,
1544,
434,
279,
613,
585,
578,
279,
10331,
1845,
16,
3144,
1845,
16,
578,
324,
4450,
1845,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
28806,
12,
3459,
4672,
3536,
990,
279,
585,
733,
864,
279,
1544,
18,
225,
16803,
326,
1544,
434,
279,
613,
585,
578,
279,
10331,
1845,
16,
3144,
1845,
16,
578,
324,
4450,
1845,
6... |
def single(target_min, target_max, vector): | def single(target_min, target_max, vector, strict=False): | def single(target_min, target_max, vector): vector_min = min(vector) vector_max = max(vector) | bcea83178f616bfabced7e14dc3ec343cc0a29c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1796/bcea83178f616bfabced7e14dc3ec343cc0a29c9/charts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2202,
12,
3299,
67,
1154,
16,
1018,
67,
1896,
16,
3806,
16,
5490,
33,
8381,
4672,
3806,
67,
1154,
273,
1131,
12,
7737,
13,
3806,
67,
1896,
273,
943,
12,
7737,
13,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2202,
12,
3299,
67,
1154,
16,
1018,
67,
1896,
16,
3806,
16,
5490,
33,
8381,
4672,
3806,
67,
1154,
273,
1131,
12,
7737,
13,
3806,
67,
1896,
273,
943,
12,
7737,
13,
2,
-100,
-100,
-100... |
os.close(r) | if self.fd != r: os.close(r) | def __init__(self, map): r, self.__writefd = os.pipe() asyncore.file_dispatcher.__init__(self, r, map) | c1906eac87b13e255fad312cc15e4b78074a3e6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9502/c1906eac87b13e255fad312cc15e4b78074a3e6b/async.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
852,
4672,
436,
16,
365,
16186,
2626,
8313,
273,
1140,
18,
14772,
1435,
4326,
479,
18,
768,
67,
18495,
16186,
2738,
972,
12,
2890,
16,
436,
16,
852,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
852,
4672,
436,
16,
365,
16186,
2626,
8313,
273,
1140,
18,
14772,
1435,
4326,
479,
18,
768,
67,
18495,
16186,
2738,
972,
12,
2890,
16,
436,
16,
852,
13,
... |
log.info('generate %s' % imagefile) args = [ config.MPLAYER_CMD, videofile, imagefile ] if pos != None: args.append(str(pos)) job = (([os.environ['FREEVO_SCRIPT'], 'execute', os.path.abspath(__file__) ] + args), imagefile) _runqueue.append(job) if len(_runqueue) == 1: MplayerThumbnail(*_runqueue[0]) | for r, r_image in _runqueue: if r_image == imagefile: return log.info('generate %s' % imagefile) args = [ config.MPLAYER_CMD, videofile, imagefile ] if pos != None: args.append(str(pos)) job = (([os.environ['FREEVO_SCRIPT'], 'execute', os.path.abspath(__file__) ] + args), imagefile) _runqueue.append(job) if len(_ru... | def snapshot(videofile, imagefile=None, pos=None, update=True): """ make a snapshot of the videofile at position pos to imagefile """ global _runqueue if not imagefile: imagefile = os.path.splitext(videofile)[0] + '.jpg' if not update and os.path.isfile(imagefile) and \ os.stat(videofile)[ST_MTIME] <= os.stat(imagefil... | 60d592f15b490e8199623ca6d40476242896f11e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/60d592f15b490e8199623ca6d40476242896f11e/videothumb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4439,
12,
9115,
768,
16,
1316,
768,
33,
7036,
16,
949,
33,
7036,
16,
1089,
33,
5510,
4672,
3536,
1221,
279,
4439,
434,
326,
6191,
768,
622,
1754,
949,
358,
1316,
768,
3536,
2552,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4439,
12,
9115,
768,
16,
1316,
768,
33,
7036,
16,
949,
33,
7036,
16,
1089,
33,
5510,
4672,
3536,
1221,
279,
4439,
434,
326,
6191,
768,
622,
1754,
949,
358,
1316,
768,
3536,
2552,
389,
... |
on items.name = demand.item_id and d.startdate <= date(demand.due) and d.enddate > date(demand.due) | on x.name = demand.item_id and x.startdate <= date(demand.due) and x.enddate > date(demand.due) | def resultquery(basequery, bucket, startdate, enddate, offset=0, limit=None, sortsql='1 asc'): # Build the SQL filter basesql = basequery._get_sql_clause() | cdc3170f54826926ee38929502eb93f6afc6e6b8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8604/cdc3170f54826926ee38929502eb93f6afc6e6b8/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
563,
2271,
12,
1969,
2271,
16,
2783,
16,
787,
712,
16,
679,
712,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1524,
4669,
2218,
21,
6972,
11,
4672,
468,
3998,
326,
3063,
1034,
8337,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
563,
2271,
12,
1969,
2271,
16,
2783,
16,
787,
712,
16,
679,
712,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1524,
4669,
2218,
21,
6972,
11,
4672,
468,
3998,
326,
3063,
1034,
8337,
121... |
self.__primary = (math.fabs(self.__primary[0]), self.__primary[1], self.__primary[2]) | try: self.__primary = (math.fabs(self.__primary[0]), self.__primary[1], self.__primary[2]) except TypeError: self.__primary = (float('nan'), float('nan')) | def __init__(self,filehandle,tree, **kwargs): # do the easy part import math | 096d7ed211b6f610719a142adda996bc12692edf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/762/096d7ed211b6f610719a142adda996bc12692edf/nexus_dst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
768,
4110,
16,
3413,
16,
2826,
4333,
4672,
468,
741,
326,
12779,
1087,
1930,
4233,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
768,
4110,
16,
3413,
16,
2826,
4333,
4672,
468,
741,
326,
12779,
1087,
1930,
4233,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return self.pool.get('res.users').browse(cr, uid, uid).company_id.id | return user_company_id | def _company_default_get(self, cr, uid, object=False, context=None): """ Check if the object for this company have a default value """ if not context: context = {} proxy = self.pool.get('multi_company.default') ids = proxy.search(cr, uid, [('object_id.model', '=', object)]) for rule in proxy.browse(cr, uid, ids, contex... | 8041b935d8aad8c9f25ddef7a7681b7a2e6d1570 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/8041b935d8aad8c9f25ddef7a7681b7a2e6d1570/res_company.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16840,
67,
1886,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
733,
33,
8381,
16,
819,
33,
7036,
4672,
3536,
2073,
309,
326,
733,
364,
333,
9395,
1240,
279,
805,
460,
3536,
309,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16840,
67,
1886,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
733,
33,
8381,
16,
819,
33,
7036,
4672,
3536,
2073,
309,
326,
733,
364,
333,
9395,
1240,
279,
805,
460,
3536,
309,
48... |
songs = filter(lambda s: s.local) | songs = filter(lambda s: s.local, songs) | def __enqueue(self, item, songs): songs = filter(lambda s: s.local) if songs: added = filter(library.add_song, songs) widgets.main.playlist.enqueue(songs) if added: widgets.watcher.added(added) | 46239c9473f8e76978f417e32654ceea0a01b7fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/46239c9473f8e76978f417e32654ceea0a01b7fc/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
21798,
12,
2890,
16,
761,
16,
272,
7260,
4672,
272,
7260,
273,
1034,
12,
14661,
272,
30,
272,
18,
3729,
16,
272,
7260,
13,
309,
272,
7260,
30,
3096,
273,
1034,
12,
12083,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
21798,
12,
2890,
16,
761,
16,
272,
7260,
4672,
272,
7260,
273,
1034,
12,
14661,
272,
30,
272,
18,
3729,
16,
272,
7260,
13,
309,
272,
7260,
30,
3096,
273,
1034,
12,
12083,
18,
1... |
def has_exif_date(self): | def has_reliable_date(self): | def has_exif_date(self): return False | 9579e648e4ad1b612154d0158eb22191dd83872c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4663/9579e648e4ad1b612154d0158eb22191dd83872c/sourcetree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
266,
549,
429,
67,
712,
12,
2890,
4672,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
266,
549,
429,
67,
712,
12,
2890,
4672,
327,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
'Kruskal', 'Prim fringe', and 'Prim edge' (the last two are variants of Prim's algorithm). Defaults to 'Kruskal'. | 'Kruskal', 'Prim fringe', and 'Prim edge' (the last two are variants of Prim's algorithm). Defaults to 'Kruskal'. Currently, 'Prim fringe' ignores the labels on the edges. | def min_spanning_tree(self, weight_function=lambda e: 1, algorithm='Kruskal', starting_vertex=None ): """ Returns the edges of a minimum spanning tree, if one exists, otherwise returns False. | a89281b5d7607ed5e3c6211ab311725fad246357 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a89281b5d7607ed5e3c6211ab311725fad246357/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
67,
1752,
10903,
67,
3413,
12,
2890,
16,
3119,
67,
915,
33,
14661,
425,
30,
404,
16,
4886,
2218,
47,
8010,
79,
287,
2187,
5023,
67,
15281,
33,
7036,
262,
30,
3536,
2860,
326,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
67,
1752,
10903,
67,
3413,
12,
2890,
16,
3119,
67,
915,
33,
14661,
425,
30,
404,
16,
4886,
2218,
47,
8010,
79,
287,
2187,
5023,
67,
15281,
33,
7036,
262,
30,
3536,
2860,
326,
5... |
label=('Choose user interface language'), | label=_('Choose user interface language'), | def __init__(self, parent, startApp = None): | 0f11c770e90c7a0374162caa530fd43915eab399 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/0f11c770e90c7a0374162caa530fd43915eab399/language_dialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
787,
3371,
273,
599,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
787,
3371,
273,
599,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
"""testing variables""" | """testing variable slicing""" | def runTest(self): """testing variables""" f = Dataset(self.file, 'r') v = f.variables['data'] vu = f.variables['datau'] assert_array_equal(v[:], datarev) # test reading of slices. # negative value means count back from end. assert_array_equal(v[:-1,:-2,:-3],datarev[:-1,:-2,:-3]) # every other element (positive step) ... | 7b65748aadd266b6f5cbcd915b637f25a77aaf26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8103/7b65748aadd266b6f5cbcd915b637f25a77aaf26/tst_slicing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
4709,
12,
2890,
4672,
3536,
3813,
310,
2190,
2020,
14774,
8395,
284,
225,
273,
10778,
12,
2890,
18,
768,
16,
296,
86,
6134,
331,
273,
284,
18,
7528,
3292,
892,
3546,
331,
89,
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,
1086,
4709,
12,
2890,
4672,
3536,
3813,
310,
2190,
2020,
14774,
8395,
284,
225,
273,
10778,
12,
2890,
18,
768,
16,
296,
86,
6134,
331,
273,
284,
18,
7528,
3292,
892,
3546,
331,
89,
273... |
_attrMap = AttrMap(BASE=ETriangle0, UNWANTED=('strokeColor', 'color'), tickcolor = AttrMapValue(isColor), crosscolor = AttrMapValue(isColor), testValue = AttrMapValue(isBoolean), ) def __init__(self): self.x = 0 self.y = 0 self.size = 100 self.tickcolor = colors.green self.crosscolor = colors.red self.testValue = 1 d... | _attrMap = AttrMap(BASE=ETriangle0, UNWANTED=('strokeColor', 'color'), tickcolor = AttrMapValue(isColor), crosscolor = AttrMapValue(isColor), testValue = AttrMapValue(isBoolean), ) def __init__(self): self.x = 0 self.y = 0 self.size = 100 self.tickcolor = colors.green self.crosscolor = colors.red self.testValue = 1 d... | def draw(self): # general widget bits s = self.size # abbreviate as we will use this a lot g = shapes.Group() ew = self.exmarkWidth ae = s*0.125 #(ae = 'an eighth') | c27976c5171e645ff5be68e37e0b9fb2951cab57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/c27976c5171e645ff5be68e37e0b9fb2951cab57/signsandsymbols.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
468,
7470,
3604,
4125,
272,
273,
365,
18,
1467,
225,
468,
1223,
7379,
340,
487,
732,
903,
999,
333,
279,
17417,
314,
273,
14736,
18,
1114,
1435,
22722,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
468,
7470,
3604,
4125,
272,
273,
365,
18,
1467,
225,
468,
1223,
7379,
340,
487,
732,
903,
999,
333,
279,
17417,
314,
273,
14736,
18,
1114,
1435,
22722,
273,
365,
... |
msg('copying '+msroot+'.sd.ms to ' + | msg('copying '+sdmsfile+' to ' + | def simdata2( project=None, modifymodel=None, skymodel=None, inbright=None, indirection=None, incell=None, incenter=None, inwidth=None, # innchan=None, setpointings=None, ptgfile=None, integration=None, direction=None, mapsize=None, maptype=None, pointingspacing=None, caldirection=None, calflux=None, predict=None, refd... | 52e387b4756b7cbdfd6ca092f5ae01e7d40af507 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/52e387b4756b7cbdfd6ca092f5ae01e7d40af507/task_simdata2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3142,
892,
22,
12,
1984,
33,
7036,
16,
5612,
2284,
33,
7036,
16,
15513,
2284,
33,
7036,
16,
316,
31070,
33,
7036,
16,
1547,
2769,
33,
7036,
16,
316,
3855,
33,
7036,
16,
316,
5693,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3142,
892,
22,
12,
1984,
33,
7036,
16,
5612,
2284,
33,
7036,
16,
15513,
2284,
33,
7036,
16,
316,
31070,
33,
7036,
16,
1547,
2769,
33,
7036,
16,
316,
3855,
33,
7036,
16,
316,
5693,
33... |
self.body.append('<strong>') | self.body.append(self.starttag(node, 'strong', '')) | def visit_strong(self, node): self.body.append('<strong>') | f44e06d05093482b1070f25cc58e2f0e74149cdc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8194/f44e06d05093482b1070f25cc58e2f0e74149cdc/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
9110,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
32,
9110,
1870,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
9110,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
32,
9110,
1870,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.body.append('\n@EndList\n') self.kill_next_paragraph = True | self.body.append('\n@RawEndList\n') | def depart_definition_list(self, node): self.body.append('\n@EndList\n') self.kill_next_paragraph = True | 7123a9bf4e3df3d0330f584f8ddb098c789b0185 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/7123a9bf4e3df3d0330f584f8ddb098c789b0185/lout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
6907,
67,
1098,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
64,
82,
36,
1638,
682,
64,
82,
6134,
365,
18,
16418,
67,
4285,
67,
22445,
273,
1053,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26000,
67,
6907,
67,
1098,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
64,
82,
36,
1638,
682,
64,
82,
6134,
365,
18,
16418,
67,
4285,
67,
22445,
273,
1053,
2,
-100,
-100,... |
error = script.add_source(VTKDataSource(data=data)) | script.add_source(VTKDataSource(data=data)) | def run(self): from enthought.mayavi.sources.vtk_data_source import VTKDataSource from enthought.mayavi.filters.threshold import Threshold from enthought.mayavi.modules.surface import Surface from enthought.mayavi.modules.scalar_cut_plane import ScalarCutPlane | 893cd3d7737ec71df3c2e29a8defc6209cd8d7f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8642/893cd3d7737ec71df3c2e29a8defc6209cd8d7f8/plot_error.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
628,
3281,
15008,
9540,
18,
24877,
69,
522,
18,
10141,
18,
11734,
79,
67,
892,
67,
3168,
1930,
22944,
47,
8597,
628,
3281,
15008,
9540,
18,
24877,
69,
522,
18,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
628,
3281,
15008,
9540,
18,
24877,
69,
522,
18,
10141,
18,
11734,
79,
67,
892,
67,
3168,
1930,
22944,
47,
8597,
628,
3281,
15008,
9540,
18,
24877,
69,
522,
18,
63... |
if len(d)==1: d=d[0] else: d='' d="%s (%s)" % (d, len(c._cache)) | if len(d)==1: d = d[0] else: d='' d = "%s (%s)" % (d, len(c._cache)) | def connectionDebugInfo(self): r=[] pools,pooll=self._pools t=time() for version, (pool, allocated, lock) in pools.items(): for c in allocated: o=c._opened d=c._debug_info if d: if len(d)==1: d=d[0] else: d='' d="%s (%s)" % (d, len(c._cache)) | 3f5dc8adcf31c234935a3c71325d44bf2f319df0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/3f5dc8adcf31c234935a3c71325d44bf2f319df0/DB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
2829,
966,
12,
2890,
4672,
436,
33,
8526,
16000,
16,
6011,
80,
33,
2890,
6315,
27663,
268,
33,
957,
1435,
364,
1177,
16,
261,
6011,
16,
11977,
16,
2176,
13,
316,
16000,
18,
3319,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
2829,
966,
12,
2890,
4672,
436,
33,
8526,
16000,
16,
6011,
80,
33,
2890,
6315,
27663,
268,
33,
957,
1435,
364,
1177,
16,
261,
6011,
16,
11977,
16,
2176,
13,
316,
16000,
18,
3319,... |
document.body[i:k+1] = subst | document.body[i:k + 1] = subst | def revert_subindex(document): " Reverts \\printsubindex CommandInset types " i = find_token(document.header, '\\use_indices', 0) if i == -1: document.warning("Malformed LyX document: Missing \\use_indices.") return indices = get_value(document.header, "\\use_indices", i) i = 0 while True: i = find_token(document.body,... | bcd8b9a1f1241c461beb5db1d5a69424a9a25950 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/bcd8b9a1f1241c461beb5db1d5a69424a9a25950/lyx_2_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
1717,
1615,
12,
5457,
4672,
315,
868,
31537,
1736,
1188,
1717,
1615,
3498,
382,
542,
1953,
315,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3374,
16,
3718,
1202,
67,
6836,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
1717,
1615,
12,
5457,
4672,
315,
868,
31537,
1736,
1188,
1717,
1615,
3498,
382,
542,
1953,
315,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3374,
16,
3718,
1202,
67,
6836,
2187,
... |
dprint("before InsertStringItem") | def showItems(self, index, keyword, items): list = self.dirlevels.GetList(index) if list is None: dprint("list at position %d not found! Creating new list" % index) list = self.dirlevels.AppendList(self.mode.settings.list_width, keyword) #dprint("before DeleteAllItems") #list.DeleteAllItems() #dprint("after DeleteAllI... | be22ba258b3c5c2e34af6ac88027f14153b8e061 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/be22ba258b3c5c2e34af6ac88027f14153b8e061/mpd_major_mode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
3126,
12,
2890,
16,
770,
16,
4932,
16,
1516,
4672,
666,
273,
365,
18,
1214,
12095,
18,
967,
682,
12,
1615,
13,
309,
666,
353,
599,
30,
302,
1188,
2932,
1098,
622,
1754,
738,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
3126,
12,
2890,
16,
770,
16,
4932,
16,
1516,
4672,
666,
273,
365,
18,
1214,
12095,
18,
967,
682,
12,
1615,
13,
309,
666,
353,
599,
30,
302,
1188,
2932,
1098,
622,
1754,
738,
72... | |
return self.loader.get_source(self.filename) | source = self.loader.get_source(self.filename) | def get_source(self, impname): if self.source is not None: return self.source elif self.loader is not None: try: return self.loader.get_source(self.filename) except TemplateNotFound: pass return '' | 859efe06de590f58899eb88dbfa81ef1b1f73c58 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14446/859efe06de590f58899eb88dbfa81ef1b1f73c58/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3168,
12,
2890,
16,
1646,
529,
4672,
309,
365,
18,
3168,
353,
486,
599,
30,
327,
365,
18,
3168,
1327,
365,
18,
6714,
353,
486,
599,
30,
775,
30,
1084,
273,
365,
18,
6714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3168,
12,
2890,
16,
1646,
529,
4672,
309,
365,
18,
3168,
353,
486,
599,
30,
327,
365,
18,
3168,
1327,
365,
18,
6714,
353,
486,
599,
30,
775,
30,
1084,
273,
365,
18,
6714,
... |
{"script": "traduisons.py", "icon_resources": [(1, "traduisons_icon.ico")] | {"script": "traduisons/traduisons.py", "icon_resources": [(1, "traduisons/data/traduisons_icon.ico")] | def get_hidden_imports(self): d = build_exe.py2exe.get_hidden_imports(self) d.setdefault('gtk._gtk', []).extend([ 'cairo', 'pango', 'pangocairo', 'atk']) return d | 20aa3db18a7a1f12e09b676efe249dabf1ae261c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/20aa3db18a7a1f12e09b676efe249dabf1ae261c/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6345,
67,
21350,
12,
2890,
4672,
302,
273,
1361,
67,
14880,
18,
2074,
22,
14880,
18,
588,
67,
6345,
67,
21350,
12,
2890,
13,
302,
18,
542,
1886,
2668,
4521,
79,
6315,
4521,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6345,
67,
21350,
12,
2890,
4672,
302,
273,
1361,
67,
14880,
18,
2074,
22,
14880,
18,
588,
67,
6345,
67,
21350,
12,
2890,
13,
302,
18,
542,
1886,
2668,
4521,
79,
6315,
4521,
... |
git_udate = float(check_call_out((git_path, 'log', '-1', '--pretty=%ct'))) | git_udate = float(check_call_out((git_path, 'log', '-1', '--pretty=format:%ct'))) | def write_git_version(fileobj): """ Query git to determine current repository status and write a Python module with this information. Ex: >>> write_git_version(open("git_version.py", "w")) >>> import git_version >>> print git_version.id 1b0549019e992d0e001f3c28e8488946f825e873 """ git_path = check_call_out(('/usr/bin/... | 60b8cbbb05cab29e42eab07fcc04ec2faf96eca7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/60b8cbbb05cab29e42eab07fcc04ec2faf96eca7/determine_git_version.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
6845,
67,
1589,
12,
768,
2603,
4672,
3536,
2770,
5071,
358,
4199,
783,
3352,
1267,
471,
1045,
279,
6600,
1605,
598,
333,
1779,
18,
225,
1312,
30,
4080,
1045,
67,
6845,
67,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
6845,
67,
1589,
12,
768,
2603,
4672,
3536,
2770,
5071,
358,
4199,
783,
3352,
1267,
471,
1045,
279,
6600,
1605,
598,
333,
1779,
18,
225,
1312,
30,
4080,
1045,
67,
6845,
67,
15... |
if sys.platform.find('linux') != -1: xval1 = 155 xval2 = 250 else: xval1 = 180 xval2 = 265 self.connectButton = wx.Button(self, 10, "Start", wx.Point(xval1, 70)) wx.EVT_BUTTON(self, 10, self.ConnectSupport) self.stopButton = wx.Button(self, wx.ID_STOP, "", wx.Point(xval2, 70)) self.stopButton.Enable(False) wx.EVT_BUT... | if sys.platform.find('linux') != -1: xval1 = 155 xval2 = 250 else: xval1 = 180 xval2 = 265 self.connectButton = wx.Button(self, 10, "Start", wx.Point(xval1, 70)) wx.EVT_BUTTON(self, 10, self.ConnectSupport) self.stopButton = wx.Button(self, wx.ID_STOP, "", wx.Point(xval2, 70)) self.stopButton.Enable(False) wx.EVT_BUT... | def __init__(self, parent, id, title): """ Setup Application Window @author: Derek Buranen @author: Aaron Gerber """ if sys.platform.find('linux') != -1: width = 165 height = 350 else: height = 350 width = 145 | 7c208c280de616131da047841b9467ec2d6c656e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3659/7c208c280de616131da047841b9467ec2d6c656e/Gitso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
612,
16,
2077,
4672,
3536,
10939,
4257,
6076,
225,
632,
4161,
30,
463,
822,
79,
605,
295,
304,
275,
632,
4161,
30,
432,
297,
265,
611,
22533,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
612,
16,
2077,
4672,
3536,
10939,
4257,
6076,
225,
632,
4161,
30,
463,
822,
79,
605,
295,
304,
275,
632,
4161,
30,
432,
297,
265,
611,
22533,
... |
__p4_attrs = ('subdirs',) __p3_attrs = ('same_files', 'diff_files', 'funny_files') __p2_attrs = ('common_dirs', 'common_files', 'common_funny') __p1_attrs = ('common', 'left_only', 'right_only') __p0_attrs = ('left_list', 'right_list') def __getattr__(self, attr): if attr in self.__p4_attrs: self.phase4() elif attr in... | def phase0(self): # Compare everything except common subdirectories self.left_list = _filter(os.listdir(self.left), self.hide+self.ignore) self.right_list = _filter(os.listdir(self.right), self.hide+self.ignore) self.left_list.sort() self.right_list.sort() | 114ba69ec79c13b96191944cf6b6fc03ffabd71d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/114ba69ec79c13b96191944cf6b6fc03ffabd71d/filecmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6855,
20,
12,
2890,
4672,
468,
11051,
7756,
1335,
2975,
31220,
365,
18,
4482,
67,
1098,
273,
389,
2188,
12,
538,
18,
1098,
1214,
12,
2890,
18,
4482,
3631,
365,
18,
11248,
15,
2890,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6855,
20,
12,
2890,
4672,
468,
11051,
7756,
1335,
2975,
31220,
365,
18,
4482,
67,
1098,
273,
389,
2188,
12,
538,
18,
1098,
1214,
12,
2890,
18,
4482,
3631,
365,
18,
11248,
15,
2890,
18,... | |
self.stopflag = True time.sleep(2.5) self.queuetimer.cancel() | self.finished.set() | def stop(self): '''To exit cleanly, flush all write buffers, and stop all running timers. ''' self.stopflag = True time.sleep(2.5) self.queuetimer.cancel() self.WriteToLogFile() self.FlushLogWriteBuffers("Flushing buffers prior to exiting") self.flushtimer.cancel() self.logrotatetimer.cancel() if self.settings['E-ma... | b22b4cecb9bdecd99f5dea6b9ea6d9e7beaedc1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3638/b22b4cecb9bdecd99f5dea6b9ea6d9e7beaedc1d/logwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
9163,
774,
2427,
2721,
715,
16,
3663,
777,
1045,
9664,
16,
471,
2132,
777,
3549,
16989,
18,
9163,
565,
365,
18,
13527,
18,
542,
1435,
225,
365,
18,
3067,
774,
191... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
9163,
774,
2427,
2721,
715,
16,
3663,
777,
1045,
9664,
16,
471,
2132,
777,
3549,
16989,
18,
9163,
565,
365,
18,
13527,
18,
542,
1435,
225,
365,
18,
3067,
774,
191... |
'course' : self.course.id | 'course' : course.id | def create_new(self): #import pdb; pdb.set_trace() uni = cherrypy.session.get(UNI_PARAM,None) if uni == None: if config.MODE == "regressiontest": uni = "foo" else: return httptools.redirect("/logout") | bd620ed6e7bc94139cb8bd730d5c5775ee916a14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5854/bd620ed6e7bc94139cb8bd730d5c5775ee916a14/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2704,
12,
2890,
4672,
468,
5666,
10892,
31,
10892,
18,
542,
67,
5129,
1435,
225,
7738,
273,
462,
370,
28398,
18,
3184,
18,
588,
12,
10377,
67,
8388,
16,
7036,
13,
309,
7738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2704,
12,
2890,
4672,
468,
5666,
10892,
31,
10892,
18,
542,
67,
5129,
1435,
225,
7738,
273,
462,
370,
28398,
18,
3184,
18,
588,
12,
10377,
67,
8388,
16,
7036,
13,
309,
7738,
... |
} else if (key_unindent(e)) { //unfortunately, shift-tab needs to get caught before not-shift tab | } else if (key_unindent(e) && cell_input.selectionStart != cell_input.selectionEnd) { //unfortunately, shift-tab needs to get caught before not-shift tab | def notebook_lib(): s= r""" | e63fd463d56562d69c242e9d7b93279974eaef2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e63fd463d56562d69c242e9d7b93279974eaef2c/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
""" | """ | def __init__(self, recipe, *args, **keywords): | bbf56a2c6ce326846b9cfaed245edce8bd904567 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/bbf56a2c6ce326846b9cfaed245edce8bd904567/source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16100,
16,
380,
1968,
16,
2826,
11771,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16100,
16,
380,
1968,
16,
2826,
11771,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
settings = QSettings() data = self.folderView.model().filePath(index) folder_path = unicode(data, 'utf-8') settings.setValue("mainwindow/workingDirectory", QVariant(folder_path)) self.SearchVideos(folder_path) | now = QTime.currentTime() if now > self.timeLastSearch.addMSecs(500) : settings = QSettings() data = self.folderView.model().filePath(index) folder_path = unicode(data, 'utf-8') settings.setValue("mainwindow/workingDirectory", QVariant(folder_path)) self.SearchVideos(folder_path) self.timeLastSearch = QTime.currentTim... | def onFolderTreeClicked(self, index): if hasattr(self,"OSDBServer") and self.OSDBServer.is_connected(): if index.isValid(): settings = QSettings() data = self.folderView.model().filePath(index) folder_path = unicode(data, 'utf-8') settings.setValue("mainwindow/workingDirectory", QVariant(folder_path)) self.SearchVideos... | 26efdf7a772ec52067b0ad26977bfc9d5fb5683f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/26efdf7a772ec52067b0ad26977bfc9d5fb5683f/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3899,
2471,
27633,
12,
2890,
16,
770,
4672,
309,
3859,
12,
2890,
10837,
4618,
2290,
2081,
7923,
471,
365,
18,
4618,
2290,
2081,
18,
291,
67,
8537,
13332,
309,
770,
18,
26810,
13332,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3899,
2471,
27633,
12,
2890,
16,
770,
4672,
309,
3859,
12,
2890,
10837,
4618,
2290,
2081,
7923,
471,
365,
18,
4618,
2290,
2081,
18,
291,
67,
8537,
13332,
309,
770,
18,
26810,
13332,... |
return _dreplace(template, self.request).encode('utf8') | return _dreplace(template, self.context, self.request).encode('utf8') | def render_plaintext_letter(self): decode.processInputs(self.request) template = self.data.get('template', '') return _dreplace(template, self.request).encode('utf8') | bc34deb635115880295d5078f3fa1d1e4039c1ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10584/bc34deb635115880295d5078f3fa1d1e4039c1ba/letter_renderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
412,
10133,
67,
13449,
12,
2890,
4672,
2495,
18,
2567,
10059,
12,
2890,
18,
2293,
13,
1542,
273,
365,
18,
892,
18,
588,
2668,
3202,
2187,
28707,
327,
389,
72,
2079,
12,
3202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
412,
10133,
67,
13449,
12,
2890,
4672,
2495,
18,
2567,
10059,
12,
2890,
18,
2293,
13,
1542,
273,
365,
18,
892,
18,
588,
2668,
3202,
2187,
28707,
327,
389,
72,
2079,
12,
3202,... |
return plot(funcs, tmin, tmax, parametric=True, **kwargs) | kwargs['parametric'] = True return plot(funcs, *args, **kwargs) | def parametric_plot(funcs, tmin, tmax, **kwargs): r""" \code{parametric_plot} takes two or three functions as a list or a tuple and makes a plot with the first function giving the $x$ coordinates, the second function giving the $y$ coordinates, and the third function (if present) giving the $z$ coordinates. INPUT: fun... | 9ddbae83cb143e94497c7dcd92ec17f86c5fca65 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9ddbae83cb143e94497c7dcd92ec17f86c5fca65/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
579,
1591,
67,
4032,
12,
17728,
16,
268,
1154,
16,
28986,
16,
2826,
4333,
4672,
436,
8395,
521,
710,
95,
891,
1591,
67,
4032,
97,
5530,
2795,
578,
8925,
4186,
487,
279,
666,
578,
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,
579,
1591,
67,
4032,
12,
17728,
16,
268,
1154,
16,
28986,
16,
2826,
4333,
4672,
436,
8395,
521,
710,
95,
891,
1591,
67,
4032,
97,
5530,
2795,
578,
8925,
4186,
487,
279,
666,
578,
279,
... |
def usage(): print 'Usage: %s <JobID> [<JobID>]' % ( Script.scriptName ) DIRAC.exit( 2 ) | def usage(): print 'Usage: %s <JobID> [<JobID>]' % ( Script.scriptName ) DIRAC.exit( 2 ) | b0c1c9959c03dc740dab87b82ae22273621109fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b0c1c9959c03dc740dab87b82ae22273621109fb/dirac-admin-reset-job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
411,
2278,
734,
34,
306,
32,
2278,
734,
34,
3864,
738,
261,
7739,
18,
4263,
461,
262,
18544,
2226,
18,
8593,
12,
576,
262,
225,
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,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
411,
2278,
734,
34,
306,
32,
2278,
734,
34,
3864,
738,
261,
7739,
18,
4263,
461,
262,
18544,
2226,
18,
8593,
12,
576,
262,
225,
2,
-100,
-1... | |
print "EXP COMP RANGES",exp_comp_ranges print "MOD COMP RANGES",mod_comp_ranges | def extract_comp_data(comp_file_info): ## Read in d line dict from config file and Process data from source .csv files. exp_data = [] mod_data = [] exp_data_dict = {} mod_data_dict = {} exp_scatter_data_labels = [] mod_scatter_data_labels = [] #List of variables from configuration file column names. exp_data_filenam... | 489e23f8fbeeba33c7e996728fece1e6b33b3091 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/489e23f8fbeeba33c7e996728fece1e6b33b3091/Validation_Data_Processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
2919,
67,
892,
12,
2919,
67,
768,
67,
1376,
4672,
7541,
2720,
316,
302,
980,
2065,
628,
642,
585,
471,
4389,
501,
628,
1084,
263,
6715,
1390,
18,
225,
1329,
67,
892,
273,
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,
2608,
67,
2919,
67,
892,
12,
2919,
67,
768,
67,
1376,
4672,
7541,
2720,
316,
302,
980,
2065,
628,
642,
585,
471,
4389,
501,
628,
1084,
263,
6715,
1390,
18,
225,
1329,
67,
892,
273,
5... | |
ack = ackqueue.put | def worker(inqueue, outqueue, ackqueue, initializer=None, initargs=(), maxtasks=None): assert maxtasks is None or (type(maxtasks) == int and maxtasks > 0) pid = os.getpid() put = outqueue.put get = inqueue.get ack = ackqueue.put if hasattr(inqueue, '_writer'): inqueue._writer.close() outqueue._reader.close() if initia... | 409811c9c25cd86bffb6fbec5abbd7fce80b765f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/409811c9c25cd86bffb6fbec5abbd7fce80b765f/pool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4322,
12,
267,
4000,
16,
596,
4000,
16,
8479,
4000,
16,
12562,
33,
7036,
16,
1208,
1968,
33,
9334,
943,
9416,
33,
7036,
4672,
1815,
943,
9416,
353,
599,
578,
261,
723,
12,
1896,
9416,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4322,
12,
267,
4000,
16,
596,
4000,
16,
8479,
4000,
16,
12562,
33,
7036,
16,
1208,
1968,
33,
9334,
943,
9416,
33,
7036,
4672,
1815,
943,
9416,
353,
599,
578,
261,
723,
12,
1896,
9416,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.