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 |
|---|---|---|---|---|---|---|
self.assertEquals(work_item, "work_item") | self.test.assertEquals(work_item, "work_item") | def should_proceed_with_work_item(self, work_item): self.callbacks.append("should_proceed_with_work_item") self.assertEquals(work_item, "work_item") return (True, "waiting_message", 42) | 2ab6dd9042cc607541b00e081f35dd79a297dbd0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/2ab6dd9042cc607541b00e081f35dd79a297dbd0/workqueue_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1410,
67,
685,
5288,
67,
1918,
67,
1252,
67,
1726,
12,
2890,
16,
1440,
67,
1726,
4672,
365,
18,
13316,
18,
6923,
2932,
13139,
67,
685,
5288,
67,
1918,
67,
1252,
67,
1726,
7923,
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,
1410,
67,
685,
5288,
67,
1918,
67,
1252,
67,
1726,
12,
2890,
16,
1440,
67,
1726,
4672,
365,
18,
13316,
18,
6923,
2932,
13139,
67,
685,
5288,
67,
1918,
67,
1252,
67,
1726,
7923,
365,
... |
'The generated source will be invalid outside the Designer' ' and should be fixed before executing.') | 'The generated source will be invalid outside the ' 'Designer and should be fixed before executing.') | def writeCollectionItems(self, output, stripFrmId=''): CollectionDTC.writeCollectionItems(self, output, stripFrmId) warn = 0 for constr in self.textConstrLst: if constr.params[0] == 'None': wxLogWarning('No control/sizer for sizer item of %s'%( self.parentCompanion.name)) warn = 1 if warn: wxLogWarning('None values are... | f1282503f876232c6a9f48c3d5b7a52bbc481a8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f1282503f876232c6a9f48c3d5b7a52bbc481a8d/SizerCompanions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
2532,
3126,
12,
2890,
16,
876,
16,
2569,
7167,
81,
548,
2218,
11,
4672,
2200,
9081,
39,
18,
2626,
2532,
3126,
12,
2890,
16,
876,
16,
2569,
7167,
81,
548,
13,
1894,
273,
374,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
2532,
3126,
12,
2890,
16,
876,
16,
2569,
7167,
81,
548,
2218,
11,
4672,
2200,
9081,
39,
18,
2626,
2532,
3126,
12,
2890,
16,
876,
16,
2569,
7167,
81,
548,
13,
1894,
273,
374,
36... |
try: sql = 'SELECT username FROM %susers WHERE username LIKE %%s' % cfg.database.prefix | if not filter: filter = '%' try: sql = 'SELECT user_id, username FROM %susers WHERE (user_type = 0 OR user_type = 3) AND username LIKE %%s' % cfg.database.prefix | def getRegisteredUsers(self, filter, current = None): """ Returns a list of usernames in the phpBB3 database which contain filter as a substring. """ try: sql = 'SELECT username FROM %susers WHERE username LIKE %%s' % cfg.database.prefix cur = threadDB.execute(sql, filter) except threadDbException: return [] | 9f36caa421806530adcbe0a45cf04a0e8eb4d8ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13030/9f36caa421806530adcbe0a45cf04a0e8eb4d8ff/phpBB3auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
10868,
6588,
12,
2890,
16,
1034,
16,
783,
273,
599,
4672,
3536,
2860,
279,
666,
434,
27675,
316,
326,
3863,
9676,
23,
2063,
1492,
912,
1034,
487,
279,
3019,
18,
3536,
225,
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,
336,
10868,
6588,
12,
2890,
16,
1034,
16,
783,
273,
599,
4672,
3536,
2860,
279,
666,
434,
27675,
316,
326,
3863,
9676,
23,
2063,
1492,
912,
1034,
487,
279,
3019,
18,
3536,
225,
309,
48... |
rect = components.entity('Red Rect', clock, location=(300, 100), motion=components.motion(velocity=(3,-0.5)), graphics=components.graphics((255, 0, 0), (20, 20))) player = components.entity('White Rect', clock, keyboard, location=(0, 0), motion=components.motion([0, 0], [0, 0]), graphics=components.graphics((128, 128, ... | rect = entity('Red Rect', clock, location=(300, 100), motion=motion(velocity=(3,-0.5)), graphics=graphics((255, 0, 0), (20, 20))) player = entity('White Rect', clock, keyboard, location=(425, 300), motion=motion([0, 0], [0, 0]), graphics=graphics((128, 128, 128), (10, 10))) | def main(): clock = events.dispatcher('Clock') keyboard = events.dispatcher('Keyboard') rect = components.entity('Red Rect', clock, location=(300, 100), motion=components.motion(velocity=(3,-0.5)), graphics=components.graphics((255, 0, 0), (20, 20))) player = components.entity('White Rect', clock, keyboard, location=(0... | 119cfe026c332e53b422ce373082a2b100697643 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13911/119cfe026c332e53b422ce373082a2b100697643/orbitals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
7268,
273,
2641,
18,
18495,
2668,
14027,
6134,
16263,
273,
2641,
18,
18495,
2668,
17872,
6134,
4917,
273,
1522,
2668,
3715,
9315,
2187,
7268,
16,
2117,
28657,
19249,
16,
2130,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
7268,
273,
2641,
18,
18495,
2668,
14027,
6134,
16263,
273,
2641,
18,
18495,
2668,
17872,
6134,
4917,
273,
1522,
2668,
3715,
9315,
2187,
7268,
16,
2117,
28657,
19249,
16,
2130,
... |
if len(prev_misc_txt) > 0: count_misc += 1 | def convert_processed_reference_line_to_marc_xml(line): """Given a processed reference line, convert it to MARC XML. @param line: (string) - the processed reference line, in which the recognised citations have been tagged. @return: (tuple) - + xml_line (string) - the reference line with all of its identified citations ... | 6258c992576ce615917d5d2bfa3f925bb23de3b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/6258c992576ce615917d5d2bfa3f925bb23de3b5/refextract.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
11005,
67,
6180,
67,
1369,
67,
869,
67,
3684,
71,
67,
2902,
12,
1369,
4672,
3536,
6083,
279,
5204,
2114,
980,
16,
1765,
518,
358,
490,
27206,
3167,
18,
632,
891,
980,
30,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
11005,
67,
6180,
67,
1369,
67,
869,
67,
3684,
71,
67,
2902,
12,
1369,
4672,
3536,
6083,
279,
5204,
2114,
980,
16,
1765,
518,
358,
490,
27206,
3167,
18,
632,
891,
980,
30,
2... | |
raise "could not import pylab" | raise ImportError, "could not import pylab" | def main(): parser = OptionParser( usage = usage ) parser.add_option( "-c", "--compare", action = "store_true", dest = "compare", default = False, help = "compare with default scipy.sparse solver [default: %default]" ) parser.add_option( "-p", "--plot", action = "store_true", dest = "plot", default = False, help = "plo... | cecc9fce65da8b1cada916c7bd787391a1165b6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/cecc9fce65da8b1cada916c7bd787391a1165b6b/test_umfpack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
12,
4084,
273,
4084,
262,
2082,
18,
1289,
67,
3482,
12,
3701,
71,
3113,
5238,
9877,
3113,
1301,
273,
315,
2233,
67,
3767,
3113,
1570,
273,
315,
9877,
3113,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2082,
273,
18862,
12,
4084,
273,
4084,
262,
2082,
18,
1289,
67,
3482,
12,
3701,
71,
3113,
5238,
9877,
3113,
1301,
273,
315,
2233,
67,
3767,
3113,
1570,
273,
315,
9877,
3113,... |
assert dt - dt1 == 3000000.0, (dt, dt1) | assert dt - dt1 == 3000000.0, (dt - dt1) | def testY10KDate(self): '''Comparison of a Y10K date and a Y2K date''' dt = DateTime('10213/09/21') dt1 = DateTime(2000, 1, 1) assert dt - dt1 == 3000000.0, (dt, dt1) | d41ce08c13b2fb3bce1812416c489841c0d38031 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/d41ce08c13b2fb3bce1812416c489841c0d38031/testDateTime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
61,
2163,
47,
1626,
12,
2890,
4672,
9163,
16059,
434,
279,
1624,
2163,
47,
1509,
471,
279,
1624,
22,
47,
1509,
26418,
3681,
273,
3716,
2668,
20481,
3437,
19,
5908,
19,
5340,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
61,
2163,
47,
1626,
12,
2890,
4672,
9163,
16059,
434,
279,
1624,
2163,
47,
1509,
471,
279,
1624,
22,
47,
1509,
26418,
3681,
273,
3716,
2668,
20481,
3437,
19,
5908,
19,
5340,
6134,
... |
self._preprocess(body, headers, lang) | self._preprocess(body, headers, include_dirs, lang) | def try_cpp (self, body=None, headers=None, include_dirs=None, lang="c"): """Construct a source file from 'body' (a string containing lines of C/C++ code) and 'headers' (a list of header files to include) and run it through the preprocessor. Return true if the preprocessor succeeded, false if there were any errors. ('... | 57e7661ae761a48e4f9827701bb2df3fb3dc94f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/57e7661ae761a48e4f9827701bb2df3fb3dc94f4/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
67,
4057,
84,
261,
2890,
16,
1417,
33,
7036,
16,
1607,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
3303,
1546,
71,
6,
4672,
3536,
7249,
279,
1084,
585,
628,
296,
3432,
11,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
67,
4057,
84,
261,
2890,
16,
1417,
33,
7036,
16,
1607,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
3303,
1546,
71,
6,
4672,
3536,
7249,
279,
1084,
585,
628,
296,
3432,
11,
261,
... |
test_hooks = get_test_hooks(test_files, cfg) | test_hooks = get_test_hooks(test_files, cfg, tracer=tracer) | def main(argv): """Main program.""" # Environment if sys.version_info < (2, 3): print >> sys.stderr, '%s: need Python 2.3 or later' % argv[0] print >> sys.stderr, 'your python is %s' % sys.version return 1 # Defaults cfg = Options() cfg.basedir = os.path.join(os.path.dirname(argv[0]), 'src') cfg.basedir = os.path.abs... | d17dbf391666aabed86a5c23a7a5a4545107f4ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/d17dbf391666aabed86a5c23a7a5a4545107f4ae/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
3536,
6376,
5402,
12123,
225,
468,
7518,
309,
2589,
18,
1589,
67,
1376,
411,
261,
22,
16,
890,
4672,
1172,
1671,
2589,
18,
11241,
16,
1995,
87,
30,
1608,
6600,
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,
2774,
12,
19485,
4672,
3536,
6376,
5402,
12123,
225,
468,
7518,
309,
2589,
18,
1589,
67,
1376,
411,
261,
22,
16,
890,
4672,
1172,
1671,
2589,
18,
11241,
16,
1995,
87,
30,
1608,
6600,
5... |
self._debug(NIGHTMARE, "flushbuf") | def flushbuf (self): """clear and return the output buffer""" self._debug(NIGHTMARE, "flushbuf") data = self.outbuf.getvalue() self.outbuf.close() self.outbuf = StringIO() return data | 5827a6b2fdf9c1202486a8f36e257a6eab010228 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/5827a6b2fdf9c1202486a8f36e257a6eab010228/HtmlParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3663,
4385,
261,
2890,
4672,
3536,
8507,
471,
327,
326,
876,
1613,
8395,
225,
501,
273,
365,
18,
659,
4385,
18,
588,
1132,
1435,
365,
18,
659,
4385,
18,
4412,
1435,
365,
18,
659,
4385,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3663,
4385,
261,
2890,
4672,
3536,
8507,
471,
327,
326,
876,
1613,
8395,
225,
501,
273,
365,
18,
659,
4385,
18,
588,
1132,
1435,
365,
18,
659,
4385,
18,
4412,
1435,
365,
18,
659,
4385,... | |
updateUsedSE.append(lfnFilesIDs[lfn]) | updateUsedSE.append( lfnFilesIDs[lfn] ) | def setFileUsedSEForTransformation(self,transName,usedSE,lfns,connection=False): """ Set the UsedSE for supplied files and the Status = 'Processed' """ res = self._getConnectionTransID(connection,transName) if not res['OK']: return res connection = res['Value']['Connection'] transID = res['Value']['TransformationID'] r... | 9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19658,
6668,
1090,
1290,
15292,
12,
2890,
16,
2338,
461,
16,
3668,
1090,
16,
20850,
2387,
16,
4071,
33,
8381,
4672,
3536,
1000,
326,
10286,
1090,
364,
4580,
1390,
471,
326,
2685,
273,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19658,
6668,
1090,
1290,
15292,
12,
2890,
16,
2338,
461,
16,
3668,
1090,
16,
20850,
2387,
16,
4071,
33,
8381,
4672,
3536,
1000,
326,
10286,
1090,
364,
4580,
1390,
471,
326,
2685,
273,
29... |
if self.network is not None: | if self.network is not None and 'network' not in already_processed: already_processed.append('network') | def exportAttributes(self, outfile, level, namespace_='', name_='TreeAndNetworkSet'): super(TreeAndNetworkSet, self).exportAttributes(outfile, level, namespace_, name_='TreeAndNetworkSet') if self.tree is not None: outfile.write(' tree=%s' % (self.gds_format_string(quote_attrib(self.tree).encode(ExternalEncoding), inpu... | 10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
2498,
12,
2890,
16,
8756,
16,
1801,
16,
1981,
67,
2218,
2187,
508,
67,
2218,
2471,
1876,
3906,
694,
11,
4672,
2240,
12,
2471,
1876,
3906,
694,
16,
365,
2934,
6530,
2498,
12,
2605... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
2498,
12,
2890,
16,
8756,
16,
1801,
16,
1981,
67,
2218,
2187,
508,
67,
2218,
2471,
1876,
3906,
694,
11,
4672,
2240,
12,
2471,
1876,
3906,
694,
16,
365,
2934,
6530,
2498,
12,
2605... |
firstafter = 0 try: while s2[firstafter-1] == oldtext[firstafter-1]: firstafter -= 1 except IndexError: pass | firstafter = s2.find(marker) + len(marker) | def replaceLanguageLinks(oldtext, new, site = None): """Replace the interwiki language links given in the wikitext given in oldtext by the new links given in new. 'new' should be a dictionary with the language names as keys, and Page objects as values. """ if site == None: site = getSite() s = interwikiFormat(new, ins... | a6a278e6989b765ab6289378bf9f5195c3b634e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/a6a278e6989b765ab6289378bf9f5195c3b634e1/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
3779,
7100,
12,
1673,
955,
16,
394,
16,
2834,
273,
599,
4672,
3536,
5729,
326,
1554,
13044,
2653,
4716,
864,
316,
326,
341,
1766,
305,
408,
864,
316,
1592,
955,
635,
326,
394,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
3779,
7100,
12,
1673,
955,
16,
394,
16,
2834,
273,
599,
4672,
3536,
5729,
326,
1554,
13044,
2653,
4716,
864,
316,
326,
341,
1766,
305,
408,
864,
316,
1592,
955,
635,
326,
394,
47... |
""" An in-memory filesystem. MemoryFS objects are very fast, but non-permantent. They are useful for creating a directory structure prior to writing it somewhere permanent. | """An in-memory filesystem. | def __str__(self): return "%s: %s" % (self.name, self.desc_contents()) | 364bba5e2048a0bd501bc9ddbb5724d8cf8b5d3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5578/364bba5e2048a0bd501bc9ddbb5724d8cf8b5d3c/memoryfs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
2213,
87,
30,
738,
87,
6,
738,
261,
2890,
18,
529,
16,
365,
18,
5569,
67,
3980,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
2213,
87,
30,
738,
87,
6,
738,
261,
2890,
18,
529,
16,
365,
18,
5569,
67,
3980,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
sys.exit (0) | sys.exit (0) | def resolved (request): model = list (request.dns_question) if request.dns_resources == None: model.append ('') elif len (request.dns_resources) > 1: model.append (netstring.encode ( request.dns_resources )) elif request.dns_resources: model.append (request.dns_resources[0]) else: model.append ('') model.append (reques... | 79906933ee4150b4a6dc21c74f2849f7ab831a23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/79906933ee4150b4a6dc21c74f2849f7ab831a23/dns_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4640,
261,
2293,
4672,
938,
273,
666,
261,
2293,
18,
14926,
67,
4173,
13,
309,
590,
18,
14926,
67,
4683,
422,
599,
30,
938,
18,
6923,
7707,
6134,
1327,
562,
261,
2293,
18,
14926,
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,
4640,
261,
2293,
4672,
938,
273,
666,
261,
2293,
18,
14926,
67,
4173,
13,
309,
590,
18,
14926,
67,
4683,
422,
599,
30,
938,
18,
6923,
7707,
6134,
1327,
562,
261,
2293,
18,
14926,
67,
... |
if line.startswith("/me"): | if line.startswith("* "): | def _append(buffer, text, tag): iter = buffer.get_end_iter() if tag is not None: buffer.insert_with_tags(iter, text, tag) else: buffer.insert(iter, text) | 4cc26d5df3e4c1fe20b6e8a1191c259119492ee0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/4cc26d5df3e4c1fe20b6e8a1191c259119492ee0/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
12,
4106,
16,
977,
16,
1047,
4672,
1400,
273,
1613,
18,
588,
67,
409,
67,
2165,
1435,
309,
1047,
353,
486,
599,
30,
1613,
18,
6387,
67,
1918,
67,
4156,
12,
2165,
16,
977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
12,
4106,
16,
977,
16,
1047,
4672,
1400,
273,
1613,
18,
588,
67,
409,
67,
2165,
1435,
309,
1047,
353,
486,
599,
30,
1613,
18,
6387,
67,
1918,
67,
4156,
12,
2165,
16,
977,
... |
license = "Commercial", license = "GPL", | def run (self): res = build_scripts.run(self) for script in self.scripts: filename = os.path.basename(script) if filename.endswith('.py'): path = os.path.join(self.build_dir, filename) print 'renaming %s -> %s' % (path, path[:-3]) os.rename(path, path[:-3]) | fc2df9ebcf81f75b17d6436529dfbc3ae583cc03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/fc2df9ebcf81f75b17d6436529dfbc3ae583cc03/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
2890,
4672,
400,
273,
1361,
67,
12827,
18,
2681,
12,
2890,
13,
364,
2728,
316,
365,
18,
12827,
30,
1544,
273,
1140,
18,
803,
18,
13909,
12,
4263,
13,
309,
1544,
18,
5839,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
2890,
4672,
400,
273,
1361,
67,
12827,
18,
2681,
12,
2890,
13,
364,
2728,
316,
365,
18,
12827,
30,
1544,
273,
1140,
18,
803,
18,
13909,
12,
4263,
13,
309,
1544,
18,
5839,
... | |
except AttributeError: return ln(x) / ln(base) | except (AttributeError, TypeError): return log(x) / log(base) | def log(x, base=None): """ Return the logarithm of x to the given base. Calls the ``log`` method of the object x when computing the logarithm, thus allowing use of logarithm on any object containing a ``log`` method. In other words, log works on more than just real numbers. EXAMPLES:: sage: log(e^2) 2 sage: log(1024... | ba84b82b30350f19e34aeb09e240c292fef9d64d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ba84b82b30350f19e34aeb09e240c292fef9d64d/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
92,
16,
1026,
33,
7036,
4672,
3536,
2000,
326,
613,
31249,
434,
619,
358,
326,
864,
1026,
18,
225,
23665,
326,
12176,
1330,
10335,
707,
434,
326,
733,
619,
1347,
20303,
326,
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,
613,
12,
92,
16,
1026,
33,
7036,
4672,
3536,
2000,
326,
613,
31249,
434,
619,
358,
326,
864,
1026,
18,
225,
23665,
326,
12176,
1330,
10335,
707,
434,
326,
733,
619,
1347,
20303,
326,
6... |
unittest.TextTestRunner().run(makeSuite()) | if '-debug' in sys.argv: run() else: unittest.TextTestRunner().run(makeSuite()) | def makeSuite(): suite = unittest.TestSuite() suite.addTest(PlatypusTestCase('test1')) return suite | d4416166c810994c9fddb52037b50adb50274eaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/d4416166c810994c9fddb52037b50adb50274eaf/test_platypus_general.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
13587,
13332,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
11371,
18,
1289,
4709,
12,
1749,
270,
879,
407,
4709,
2449,
2668,
3813,
21,
26112,
327,
11371,
282,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
13587,
13332,
11371,
273,
2836,
3813,
18,
4709,
13587,
1435,
11371,
18,
1289,
4709,
12,
1749,
270,
879,
407,
4709,
2449,
2668,
3813,
21,
26112,
327,
11371,
282,
2,
-100,
-100,
-100,
... |
raise ValueError, "file is closed" | raise ValueError("file is closed") | def _readsparse(self, size=None): """Read operation for sparse files. """ if self.closed: raise ValueError, "file is closed" | 9d576e732e0c14bd37ecb65d8001d6f596cc8566 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9d576e732e0c14bd37ecb65d8001d6f596cc8566/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11904,
2670,
12,
2890,
16,
963,
33,
7036,
4672,
3536,
1994,
1674,
364,
9387,
1390,
18,
3536,
309,
365,
18,
12204,
30,
1002,
2068,
16,
315,
768,
353,
4375,
6,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11904,
2670,
12,
2890,
16,
963,
33,
7036,
4672,
3536,
1994,
1674,
364,
9387,
1390,
18,
3536,
309,
365,
18,
12204,
30,
1002,
2068,
16,
315,
768,
353,
4375,
6,
2,
-100,
-100,
-100,
... |
app.Control_Panel.initialize_cache() | def initialize(app): # Initialize the application # Initialize the cache: app.Control_Panel.initialize_cache() # The following items marked b/c are backward compatibility hacks # which make sure that expected system objects are added to the # bobobase. This is required because the bobobase in use may pre- # date the ... | 46b57e43ac861f750a8afcf7711068b942d66d2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/46b57e43ac861f750a8afcf7711068b942d66d2d/Application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2910,
4672,
468,
9190,
326,
2521,
225,
468,
9190,
326,
1247,
27363,
1021,
3751,
1516,
9350,
324,
19,
71,
854,
12555,
8926,
11769,
87,
468,
1492,
1221,
3071,
716,
2665,
2619,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2910,
4672,
468,
9190,
326,
2521,
225,
468,
9190,
326,
1247,
27363,
1021,
3751,
1516,
9350,
324,
19,
71,
854,
12555,
8926,
11769,
87,
468,
1492,
1221,
3071,
716,
2665,
2619,
21... | |
x = self._padx / 2 + pos_x * self._col_size -self._curx y = self._pady / 2 + pos_y * self._row_size -self._cury | x = pos_x * self._col_size -self._x0 y = pos_y * self._row_size -self._y0 | def _render_child(self, item_num, pos_x, pos_y): """ Render one child """ if item_num < 0 or item_num >= len(self._items): self._rendered[(pos_x, pos_y)] = None return x = self._padx / 2 + pos_x * self._col_size -self._curx y = self._pady / 2 + pos_y * self._row_size -self._cury context = copy.copy(self.get_context()) ... | 7b14a2b208acc2ce1dd643af75f0c785a0bc8172 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11702/7b14a2b208acc2ce1dd643af75f0c785a0bc8172/grid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
3624,
12,
2890,
16,
761,
67,
2107,
16,
949,
67,
92,
16,
949,
67,
93,
4672,
3536,
6987,
1245,
1151,
3536,
309,
761,
67,
2107,
411,
374,
578,
761,
67,
2107,
1545,
562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
3624,
12,
2890,
16,
761,
67,
2107,
16,
949,
67,
92,
16,
949,
67,
93,
4672,
3536,
6987,
1245,
1151,
3536,
309,
761,
67,
2107,
411,
374,
578,
761,
67,
2107,
1545,
562,
... |
location_id='', channel_id='EHE', phase='P', | location_id='', channel_id='EHZ', phase='P', | def xcorrEvents(starttime, endtime, network_id='*', station_id='*', location_id='', channel_id='EHE', phase='P', time_window=(-1, 6), winlen=10.0): """ """ # get all events between start and end time client = Client("http://admin:admin@teide.geophysik.uni-muenchen.de:8080") event_list = client.event.getList(datetime=(s... | c74c4adfcca12112b384a200797a406509801751 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/c74c4adfcca12112b384a200797a406509801751/eventcluster.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
17515,
3783,
12,
1937,
957,
16,
31361,
16,
2483,
67,
350,
2218,
14,
2187,
13282,
67,
350,
2218,
14,
2187,
2117,
67,
350,
2218,
2187,
1904,
67,
350,
2218,
41,
44,
62,
2187,
6855,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
17515,
3783,
12,
1937,
957,
16,
31361,
16,
2483,
67,
350,
2218,
14,
2187,
13282,
67,
350,
2218,
14,
2187,
2117,
67,
350,
2218,
2187,
1904,
67,
350,
2218,
41,
44,
62,
2187,
6855,
... |
[[1.1892071150027208 .. 1.1892071150027213], [-1.1892071150027213 .. -1.1892071150027208], [1.1892071150027208 .. 1.1892071150027213]*I, [-1.1892071150027213 .. -1.1892071150027208]*I] | [[1.1892071150027208 .. 1.1892071150027213], [-1.1892071150027213 .. -1.18920711500272...], [1.1892071150027208 .. 1.1892071150027213]*I, [-1.1892071150027213 .. -1.1892071150027208]*I] | def complex_roots(self, prec, multiplicity): """ EXAMPLES: sage: x = polygen(ZZ) sage: cp = AA.common_polynomial(x^4 - 2) sage: cp.complex_roots(30, 1) [[1.1892071150027208 .. 1.1892071150027213], [-1.1892071150027213 .. -1.1892071150027208], [1.1892071150027208 .. 1.1892071150027213]*I, [-1.1892071150027213 .. -1.1892... | 3a112463dd73fe17c9981e7c7a7e1a276b6d47ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/3a112463dd73fe17c9981e7c7a7e1a276b6d47ec/qqbar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7233,
67,
22078,
12,
2890,
16,
13382,
16,
3309,
20458,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
619,
273,
2952,
4338,
275,
12,
27096,
13,
272,
410,
30,
3283,
273,
27343,
18,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7233,
67,
22078,
12,
2890,
16,
13382,
16,
3309,
20458,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
619,
273,
2952,
4338,
275,
12,
27096,
13,
272,
410,
30,
3283,
273,
27343,
18,
60... |
log( 'Cannot instantiate episode: %s. Skipping.', entry.get( 'id', '(no id available)'), sender = channel) | log( 'Cannot instantiate episode: %s. Skipping.', entry.get( 'id', '(no id available)'), sender = channel, traceback=True) | def get_by_url(cls, url, force_update=False, offline=False, default_title=None): if isinstance( url, unicode): url = url.encode('utf-8') | 75a41b62a3796f40b3e271f0adf15d717416627c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12778/75a41b62a3796f40b3e271f0adf15d717416627c/libpodcasts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1637,
67,
718,
12,
6429,
16,
880,
16,
2944,
67,
2725,
33,
8381,
16,
13493,
33,
8381,
16,
805,
67,
2649,
33,
7036,
4672,
309,
1549,
12,
880,
16,
5252,
4672,
880,
273,
880,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1637,
67,
718,
12,
6429,
16,
880,
16,
2944,
67,
2725,
33,
8381,
16,
13493,
33,
8381,
16,
805,
67,
2649,
33,
7036,
4672,
309,
1549,
12,
880,
16,
5252,
4672,
880,
273,
880,
... |
gPeiCoreEntryPointString = """ | gPeiCoreEntryPointPrototype = """ | #ifndef _AUTOGENH_${Guid} | c0df5fc3f54d659cf283e68f6c5e03b271e178cb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/c0df5fc3f54d659cf283e68f6c5e03b271e178cb/GenC.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
82,
536,
389,
18909,
16652,
44,
67,
18498,
22549,
97,
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,
468,
430,
82,
536,
389,
18909,
16652,
44,
67,
18498,
22549,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
axvline(x=-percentiles[0], ymin=0, ymax=max(histoList), color='g', label='50th percentile', linewidth=2, linestyle='--') axvline(x=-percentiles[1], ymin=0, ymax=max(histoList), color='m', label='95th percentile', linewidth=2, linestyle='--') axvline(x=-percentiles[2], ymin=0, ymax=max(histoList), color='r', label='99th... | pylab.axvline(x=-percentiles[0], ymin=0, ymax=max(histoList), color='g', label='50th percentile', linewidth=2, linestyle='--') pylab.axvline(x=-percentiles[1], ymin=0, ymax=max(histoList), color='m', label='95th percentile', linewidth=2, linestyle='--') pylab.axvline(x=-percentiles[2], ymin=0, ymax=max(histoList), colo... | def plotHistogram(chan,opts,distribution,histoList,binList,figNumber,percentiles=None,candidate=None,candidateRank=None): parameter = distribution.split('-')[0] step = binList[1] - binList[0] counter = sum(histoList) xlimInf = min(binList) if candidate and not parameter == 'dt': xlimSup = max(max(binList),candidate ... | fd13c4566cb6da062a6e5ba73e68bd260af90c85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/fd13c4566cb6da062a6e5ba73e68bd260af90c85/analyseQscan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12874,
12,
7472,
16,
4952,
16,
16279,
16,
11488,
83,
682,
16,
4757,
682,
16,
470,
1854,
16,
8849,
1449,
33,
7036,
16,
19188,
33,
7036,
16,
19188,
12925,
33,
7036,
4672,
225,
1569... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12874,
12,
7472,
16,
4952,
16,
16279,
16,
11488,
83,
682,
16,
4757,
682,
16,
470,
1854,
16,
8849,
1449,
33,
7036,
16,
19188,
33,
7036,
16,
19188,
12925,
33,
7036,
4672,
225,
1569... |
for l in text[1:]: lines.append (big_indent + l) | def generate_help (self, header=None): """Generate help text (a list of strings, one per suggested line of output) from the option table for this FancyGetopt object.""" | 249dde1d04aa8acf8fb0b98afc3edd19986effc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/249dde1d04aa8acf8fb0b98afc3edd19986effc3/fancy_getopt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
5201,
261,
2890,
16,
1446,
33,
7036,
4672,
3536,
4625,
2809,
977,
261,
69,
666,
434,
2064,
16,
1245,
1534,
22168,
980,
434,
876,
13,
628,
326,
1456,
1014,
364,
333,
478,
1251... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
5201,
261,
2890,
16,
1446,
33,
7036,
4672,
3536,
4625,
2809,
977,
261,
69,
666,
434,
2064,
16,
1245,
1534,
22168,
980,
434,
876,
13,
628,
326,
1456,
1014,
364,
333,
478,
1251... | |
aws_key = '1XHSE4FQJ0RK0X3S9WR2' | def got_error(self, failure, url): print "got_error", failure, url | 54a4f7f3e20b1ce78e86f8022714fea950bff832 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11626/54a4f7f3e20b1ce78e86f8022714fea950bff832/covers_by_amazon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
67,
1636,
12,
2890,
16,
5166,
16,
880,
4672,
1172,
315,
13212,
67,
1636,
3113,
5166,
16,
880,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
67,
1636,
12,
2890,
16,
5166,
16,
880,
4672,
1172,
315,
13212,
67,
1636,
3113,
5166,
16,
880,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
self.setupJob(self.__prog__,dir=dir,tag_base=tag_base) | self.name = os.path.split(self.__executable.rstrip('/'))[1] self.setupJob(name=self.name,dir=dir,tag_base=tag_base) | def __init__(self, options, cp, dir='',tag_base='SKY_PLOT'): """ """ self.__prog__ = 'pylal_skyPlotJob' self.__executable = string.strip(cp.get('fu-condor','pylal_skyPlotJob')) self.__universe = "vanilla" pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) self.add_condor_cmd('getenv','True') self.se... | 4f059de02ba49cc10932529819f1976c7ed0ae64 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/4f059de02ba49cc10932529819f1976c7ed0ae64/stfu_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
3283,
16,
1577,
2218,
2187,
2692,
67,
1969,
2218,
11129,
61,
67,
20485,
56,
11,
4672,
3536,
3536,
365,
16186,
14654,
972,
273,
296,
2074,
80,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
3283,
16,
1577,
2218,
2187,
2692,
67,
1969,
2218,
11129,
61,
67,
20485,
56,
11,
4672,
3536,
3536,
365,
16186,
14654,
972,
273,
296,
2074,
80,
28... |
addtobook(char, cont, item) | return addtobook(char, cont, item) | def onDropOnItem( cont, item ): # Who is dragging us? char = item.container if not char.ischar(): return False addtobook(char, cont, item) | 22abf4139be11b00975b36579077a864900b0bc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/22abf4139be11b00975b36579077a864900b0bc9/scroll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
7544,
1398,
1180,
12,
466,
16,
761,
262,
30,
468,
3497,
83,
353,
25434,
584,
35,
1149,
273,
761,
18,
3782,
225,
309,
486,
1149,
18,
291,
3001,
13332,
327,
1083,
327,
527,
869,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
7544,
1398,
1180,
12,
466,
16,
761,
262,
30,
468,
3497,
83,
353,
25434,
584,
35,
1149,
273,
761,
18,
3782,
225,
309,
486,
1149,
18,
291,
3001,
13332,
327,
1083,
327,
527,
869,
3... |
'tashi-%i-%i.qcow' %(instanceId, disknum)) | 'tashi-%i-%i.%s' %(instanceId, disknum, disktype)) | def transientDisk(self, instanceId, disknum): newdisk = os.path.join(self.transientDir, 'tashi-%i-%i.qcow' %(instanceId, disknum)) return newdisk | 787afd97a19dbc056f066117a0e80a968ac780eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5161/787afd97a19dbc056f066117a0e80a968ac780eb/xenpv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12315,
6247,
12,
2890,
16,
17608,
16,
4234,
2107,
4672,
394,
10863,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
22670,
1621,
16,
296,
88,
961,
77,
6456,
77,
6456,
77,
7866,
87,
11,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12315,
6247,
12,
2890,
16,
17608,
16,
4234,
2107,
4672,
394,
10863,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
22670,
1621,
16,
296,
88,
961,
77,
6456,
77,
6456,
77,
7866,
87,
11,
8... |
self.CondPrint('verbose', "Need to remove packages:", self.pkgwork['remove']) self.CondPrint('verbose', "Need to remove services:", self.extra_services) | self.CondPrint('verbose', "Need to remove packages:" % self.pkgwork['remove']) self.CondPrint('verbose', "Need to remove services:" % self.extra_services) | def HandleExtra(self): '''Deal with extra configuration detected''' if self.setup['remove'] in ['all', 'packages']: self.CondPrint('verbose', "Removing packages:", self.pkgwork['remove']) system("apt-get remove %s" % " ".join(self.pkgwork['remove'])) else: self.CondPrint('verbose', "Need to remove packages:", self.pkgw... | 1fb3bac2de5ee20e046b5aeb20fc37f1377b3f2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/1fb3bac2de5ee20e046b5aeb20fc37f1377b3f2b/Debian.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
7800,
12,
2890,
4672,
9163,
758,
287,
598,
2870,
1664,
8316,
26418,
309,
365,
18,
8401,
3292,
4479,
3546,
316,
10228,
454,
2187,
296,
10308,
3546,
30,
365,
18,
12441,
5108,
2668,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
7800,
12,
2890,
4672,
9163,
758,
287,
598,
2870,
1664,
8316,
26418,
309,
365,
18,
8401,
3292,
4479,
3546,
316,
10228,
454,
2187,
296,
10308,
3546,
30,
365,
18,
12441,
5108,
2668,
1... |
return db_type | self.__class__._db_type = db_type | def determine_db_type(self, path): ''' determine which DB wrote the class file ''' db_type = '' if os.path.exists(path): db_type = whichdb.whichdb(path) if not db_type: raise hyperdb.DatabaseError, "Couldn't identify database type" elif os.path.exists(path+'.db'): # if the path ends in '.db', it's a dbm database, wheth... | 3ead45221cfcc20c56df38cbb14e9d9c64243a54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/3ead45221cfcc20c56df38cbb14e9d9c64243a54/sessions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
67,
1966,
67,
723,
12,
2890,
16,
589,
4672,
9163,
4199,
1492,
2383,
341,
21436,
326,
667,
585,
9163,
1319,
67,
723,
273,
875,
309,
1140,
18,
803,
18,
1808,
12,
803,
4672,
1319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4199,
67,
1966,
67,
723,
12,
2890,
16,
589,
4672,
9163,
4199,
1492,
2383,
341,
21436,
326,
667,
585,
9163,
1319,
67,
723,
273,
875,
309,
1140,
18,
803,
18,
1808,
12,
803,
4672,
1319,
... |
self._serial = serial.Serial("/dev/%s" % device,getConfig("serial_baudrate"), getConfig("serial_line_timeout")) | log(Log.Info, "serial", "Trying /dev/%s" % device) self._serial = serial.Serial("/dev/%s" % device,getConfig("serial_baudrate"), timeout=getConfig("serial_line_timeout")) | def __init__(self): attempts = 0 devices = ["ttyUSB0", "ttyUSB1", "ttyS0", "ttyS1"] while attempts < 5 * len(devices): for device in devices: try: self._serial = serial.Serial("/dev/%s" % device,getConfig("serial_baudrate"), getConfig("serial_line_timeout")) log(Log.Info, "serial", "Using /dev/%s for serial communicati... | 7ab1ee95b6f1543db6c17a8f554dda76d2d57e04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12317/7ab1ee95b6f1543db6c17a8f554dda76d2d57e04/Serial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
7531,
273,
374,
7166,
273,
8247,
5512,
24128,
20,
3113,
315,
5512,
24128,
21,
3113,
315,
5512,
55,
20,
3113,
315,
5512,
55,
21,
11929,
1323,
7531,
411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
7531,
273,
374,
7166,
273,
8247,
5512,
24128,
20,
3113,
315,
5512,
24128,
21,
3113,
315,
5512,
55,
20,
3113,
315,
5512,
55,
21,
11929,
1323,
7531,
411,
... |
if job.is_example: | if job.is_example or job.is_pyexample: | def run_tests(): # # Run waf to make sure that everything is built, configured and ready to go # unless we are explicitly told not to. We want to be careful about causing # our users pain while waiting for extraneous stuff to compile and link, so # we allow users that know what they''re doing to not invoke waf at all.... | 36d879aed9338f58c9b0dbcf5d40deebf5c2009c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12851/36d879aed9338f58c9b0dbcf5d40deebf5c2009c/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
13332,
468,
468,
1939,
24103,
358,
1221,
3071,
716,
7756,
353,
6650,
16,
4351,
471,
5695,
358,
1960,
468,
3308,
732,
854,
8122,
268,
1673,
486,
358,
18,
225,
1660,
2545,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
16341,
13332,
468,
468,
1939,
24103,
358,
1221,
3071,
716,
7756,
353,
6650,
16,
4351,
471,
5695,
358,
1960,
468,
3308,
732,
854,
8122,
268,
1673,
486,
358,
18,
225,
1660,
2545,... |
this = apply(_quickfix.new_CollStatus, args) | this = _quickfix.new_CollStatus(*args) | def __init__(self, *args): this = apply(_quickfix.new_CollStatus, 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,
13535,
1482,
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,
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,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
13535,
1482,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
... |
mixer.setLineinVolume(90) | mixer.setLineinVolume( config.TV_IN_VOLUME ) mixer.setIgainVolume( config.TV_IN_VOLUME ) | def Play(self, mode, tuner_channel=None): | 288493038f35f8d2cf5f29dd7706d18eb5ab81b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/288493038f35f8d2cf5f29dd7706d18eb5ab81b7/v4l1tv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19592,
12,
2890,
16,
1965,
16,
268,
29640,
67,
4327,
33,
7036,
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,
19592,
12,
2890,
16,
1965,
16,
268,
29640,
67,
4327,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
compiz_call('water/allscreens/point','activate','root',self.root_xid,'x',x,'y',y) | try: compiz_call('water/allscreens/point','activate','root',self.root_xid,'x',x,'y',y) except: pass | def attention_effect (self): self.attention_effect_running = True if self.needs_attention: if settings["groupbutton_attention_notification_type"] == 'compwater': x,y = self.button.window.get_origin() alloc = self.button.get_allocation() x = x + alloc.x + alloc.width/2 y = y + alloc.y + alloc.height/2 compiz_call('water... | 36703b1b4800fdeeaa6229ba131abda703f851d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7075/36703b1b4800fdeeaa6229ba131abda703f851d3/dockbarx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17278,
67,
13867,
261,
2890,
4672,
365,
18,
17899,
67,
13867,
67,
8704,
273,
1053,
309,
365,
18,
20600,
67,
17899,
30,
309,
1947,
9614,
1655,
5391,
67,
17899,
67,
9927,
67,
723,
11929,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17278,
67,
13867,
261,
2890,
4672,
365,
18,
17899,
67,
13867,
67,
8704,
273,
1053,
309,
365,
18,
20600,
67,
17899,
30,
309,
1947,
9614,
1655,
5391,
67,
17899,
67,
9927,
67,
723,
11929,
... |
], CONTEXT) | ], 0, None, None, CONTEXT) | def test0050char(self): ''' Test Char. ''' char1_id = self.char.create({ 'char': 'Test', }, CONTEXT) self.assert_(char1_id) | 52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
3361,
3001,
12,
2890,
4672,
9163,
7766,
3703,
18,
9163,
1149,
21,
67,
350,
273,
365,
18,
3001,
18,
2640,
12590,
296,
3001,
4278,
296,
4709,
2187,
19879,
13862,
13,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
3361,
3001,
12,
2890,
4672,
9163,
7766,
3703,
18,
9163,
1149,
21,
67,
350,
273,
365,
18,
3001,
18,
2640,
12590,
296,
3001,
4278,
296,
4709,
2187,
19879,
13862,
13,
365,
18,
... |
app({"SERVER_NAME":"127.0.0.1", "SERVER_PORT":"8080", "REQUEST_METHOD":"GET", | app({"REQUEST_METHOD":"GET", | def test_folder_on_zope_side(self): factory = RewriteFactory({}, host="www.example.com", port="80", internalpath="/foo") r = response() app = factory(PathAssertionEndpoint("/VirtualHostBase/http/www.example.com:80/foo/VirtualHostRoot/", self)) app({"SERVER_NAME":"127.0.0.1", "SERVER_PORT":"8080", "REQUEST_METHOD":"GET"... | 737aa73e6c7065d1ef223f0d88d6a6f7c9c0d5d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9186/737aa73e6c7065d1ef223f0d88d6a6f7c9c0d5d2/test_url.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5609,
67,
265,
67,
94,
1306,
67,
5564,
12,
2890,
4672,
3272,
273,
17851,
1733,
23506,
16,
1479,
1546,
5591,
18,
8236,
18,
832,
3113,
1756,
1546,
3672,
3113,
2713,
803,
1546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5609,
67,
265,
67,
94,
1306,
67,
5564,
12,
2890,
4672,
3272,
273,
17851,
1733,
23506,
16,
1479,
1546,
5591,
18,
8236,
18,
832,
3113,
1756,
1546,
3672,
3113,
2713,
803,
1546,
... |
self.AddError(_("No one can subscribe to the digest of this list!")) | self.AddError( _("No one can subscribe to the digest of this list!")) | def ProcessSubscribeCmd(self, args, cmd, mail): """Parse subscription request and send confirmation request.""" | bfed9ae359e2eea17ad856f6284f7870ede7b63f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/bfed9ae359e2eea17ad856f6284f7870ede7b63f/MailCommandHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
16352,
5931,
12,
2890,
16,
833,
16,
1797,
16,
4791,
4672,
3536,
3201,
4915,
590,
471,
1366,
14296,
590,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4389,
16352,
5931,
12,
2890,
16,
833,
16,
1797,
16,
4791,
4672,
3536,
3201,
4915,
590,
471,
1366,
14296,
590,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
res = self._getConnectionTransID(connection,transName) if not res['OK']: return res connection = res['Value']['Connection'] transID = res['Value']['TransformationID'] req = "INSERT INTO TransformationLog (TransformationID,Message,Author,MessageDate) VALUES (%s,'%s','%s',UTC_TIMESTAMP());" % (transID,message,authorDN) r... | res = self._getConnectionTransID( connection, transName ) if not res['OK']: return res connection = res['Value']['Connection'] transID = res['Value']['TransformationID'] req = "INSERT INTO TransformationLog (TransformationID,Message,Author,MessageDate) VALUES (%s,'%s','%s',UTC_TIMESTAMP());" % ( transID, message, autho... | def __updateTransformationLogging(self,transName,message,authorDN,connection=False): """ Update the Transformation log table with any modifications """ if not authorDN: res = getProxyInfo(False,False) if res['OK']: authorDN = res['Value']['identity'] res = self._getConnectionTransID(connection,transName) if not res['OK... | 9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
15292,
7735,
12,
2890,
16,
2338,
461,
16,
2150,
16,
4161,
8609,
16,
4071,
33,
8381,
4672,
3536,
2315,
326,
21274,
613,
1014,
598,
1281,
17953,
3536,
309,
486,
2869,
8609,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
15292,
7735,
12,
2890,
16,
2338,
461,
16,
2150,
16,
4161,
8609,
16,
4071,
33,
8381,
4672,
3536,
2315,
326,
21274,
613,
1014,
598,
1281,
17953,
3536,
309,
486,
2869,
8609,
30,... |
self._DocumentStateChanged() return rc | def OnOpenDocument(self, name): rc = ParentEditorDocument.OnOpenDocument(self, name) | 0c9ebab2188c71a606f27405886771ad61f42c35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/0c9ebab2188c71a606f27405886771ad61f42c35/document.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3678,
2519,
12,
2890,
16,
508,
4672,
4519,
273,
9520,
6946,
2519,
18,
1398,
3678,
2519,
12,
2890,
16,
508,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3678,
2519,
12,
2890,
16,
508,
4672,
4519,
273,
9520,
6946,
2519,
18,
1398,
3678,
2519,
12,
2890,
16,
508,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
P.imshow(panel,interpolation='nearest',cmap=P.cm.gray) P.plot([ref_pos[1],target_pos[1]],[ref_pos[0],target_pos[0]],'r-o') for rf in reference_frames: ref_pos = rf['source'].info['position'] P.plot([ref_pos[1]],[ref_img.shape[0] - ref_pos[0]],'-wo') P.rcParams['figure.figsize'] = (3.24,3.24) P.axis('off') P.box('off') ... | def _lpt_peak(pos,frame,bmf,window_shape,fft_shape): corr = lpt_corr([bmf['source'].info['reference']],frame,bmf,[pos],window_shape,fft_shape) return corr[0] | cc3c399ed2f306cdf02d244f317c4793f63d5a0c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12843/cc3c399ed2f306cdf02d244f317c4793f63d5a0c/logpolar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
80,
337,
67,
10244,
12,
917,
16,
3789,
16,
70,
16126,
16,
5668,
67,
4867,
16,
25174,
67,
4867,
4672,
19480,
273,
328,
337,
67,
17515,
3816,
70,
16126,
3292,
3168,
29489,
1376,
329... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
80,
337,
67,
10244,
12,
917,
16,
3789,
16,
70,
16126,
16,
5668,
67,
4867,
16,
25174,
67,
4867,
4672,
19480,
273,
328,
337,
67,
17515,
3816,
70,
16126,
3292,
3168,
29489,
1376,
329... | |
sage: ct1 = CartanType(['A',1],['B',2]) sage: ct2 = CartanType(['B',2],['A',1]) sage: ct3 = CartanType(['A',4]) sage: ct = [ct1, ct2, ct3] sage: [[x.__cmp__(y) for x in ct] for y in ct] [[0, 1, -1], [-1, 0, -1], [1, 1, 0]] sage: sorted(ct) [['A', 4], A1xB2, B2xA1] | sage: ct1 = CartanType(['B',2]).dual() sage: ct2 = CartanType(['B',2]).dual() sage: ct3 = CartanType(['D',4]).dual() sage: ct1 == ct2 True sage: ct1 == ct3 False | def __cmp__(self, other): """ EXAMPLES: sage: ct1 = CartanType(['A',1],['B',2]) sage: ct2 = CartanType(['B',2],['A',1]) sage: ct3 = CartanType(['A',4]) sage: ct = [ct1, ct2, ct3] sage: [[x.__cmp__(y) for x in ct] for y in ct] [[0, 1, -1], [-1, 0, -1], [1, 1, 0]] sage: sorted(ct) [['A', 4], A1xB2, B2xA1] """ if other.__... | cd1dea0f711f2dc4d912fdde719819a16da8a0fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/cd1dea0f711f2dc4d912fdde719819a16da8a0fa/type_dual.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
5691,
21,
273,
17695,
304,
559,
12,
3292,
38,
2187,
22,
65,
2934,
72,
1462,
1435,
272,
410,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
1308,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
5691,
21,
273,
17695,
304,
559,
12,
3292,
38,
2187,
22,
65,
2934,
72,
1462,
1435,
272,
410,
30,
... |
return self.run_command('git svn dcommit') | return self.run_command(['git', 'svn', 'dcommit']) | def push_local_commits_to_server(self): if self.dryrun: return "Dry run, no remote commit." return self.run_command('git svn dcommit') | 47776b014bbf74781b60545bb5f16d07a3aa548e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/47776b014bbf74781b60545bb5f16d07a3aa548e/scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
67,
3729,
67,
27000,
67,
869,
67,
3567,
12,
2890,
4672,
309,
365,
18,
25011,
2681,
30,
327,
315,
40,
1176,
1086,
16,
1158,
2632,
3294,
1199,
327,
365,
18,
2681,
67,
3076,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
67,
3729,
67,
27000,
67,
869,
67,
3567,
12,
2890,
4672,
309,
365,
18,
25011,
2681,
30,
327,
315,
40,
1176,
1086,
16,
1158,
2632,
3294,
1199,
327,
365,
18,
2681,
67,
3076,
2668,
... |
'certificate': terp.get('certificate', ''), | 'certificate': terp.get('certificate'), | def update_list(self, cr, uid, context={}): robj = self.pool.get('ir.module.repository') res = [0, 0] # [update, add] | 7a39d075905015df8a4effc2b0457c1deea774a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/7a39d075905015df8a4effc2b0457c1deea774a3/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1098,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
721,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
9071,
6134,
400,
273,
306,
20,
16,
374,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1098,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
721,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
9071,
6134,
400,
273,
306,
20,
16,
374,
65,
468,
... |
return os.fstat(data_or_fp.fileno().st_size) | return os.fstat(data_or_fp.fileno()).st_size | def get_content_length(data_or_fp): """Try to get the content length from the given string or file pointer. If the length can't be determined the return value is None. """ try: return len(data_or_fp) except TypeError: try: return os.fstat(data_or_fp.fileno().st_size) except (AttributeError, OSError): pass | be56c20361f5e73dd6ce37ccbb8b064682ccd908 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/be56c20361f5e73dd6ce37ccbb8b064682ccd908/net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1745,
67,
2469,
12,
892,
67,
280,
67,
7944,
4672,
3536,
7833,
358,
336,
326,
913,
769,
628,
326,
864,
533,
578,
585,
4407,
18,
225,
971,
326,
769,
848,
1404,
506,
11383,
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,
336,
67,
1745,
67,
2469,
12,
892,
67,
280,
67,
7944,
4672,
3536,
7833,
358,
336,
326,
913,
769,
628,
326,
864,
533,
578,
585,
4407,
18,
225,
971,
326,
769,
848,
1404,
506,
11383,
326... |
def findall(pattern, string, maxsplit=0): | def findall(pattern, string): | def findall(pattern, string, maxsplit=0): """Return a list of all non-overlapping matches in the string. If one or more groups are present in the pattern, return a list of groups; this will be a list of tuples if the pattern has more than one group. Empty matches are included in the result.""" return _compile(pattern... | f1056bcc31c4324f75316a57e0a45a15cda57be6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f1056bcc31c4324f75316a57e0a45a15cda57be6/sre.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11842,
12,
4951,
16,
533,
4672,
3536,
990,
279,
666,
434,
777,
1661,
17,
17946,
1382,
1885,
316,
326,
533,
18,
225,
971,
1245,
578,
1898,
3252,
854,
3430,
316,
326,
1936,
16,
327,
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,
11842,
12,
4951,
16,
533,
4672,
3536,
990,
279,
666,
434,
777,
1661,
17,
17946,
1382,
1885,
316,
326,
533,
18,
225,
971,
1245,
578,
1898,
3252,
854,
3430,
316,
326,
1936,
16,
327,
279,... |
command = 'INSERT INTO Files (name, size, mtime, type) ' + \ | command = 'REPLACE INTO Files (name, size, mtime, type) ' + \ | def walk(top, path, cursor, xdb, indexer, lang): ''' recursive folder walk''' global langmap dirpath = os.path.join(top, path) if path != '.': command = 'INSERT INTO Files (name, size, mtime, type) ' + \ 'values (\'%s\', NULL, NULL, \'dir\') ' % ("/" + path) try: cursor.execute(command) except sqlite3.Error, msg: pri... | 738cf53013d62cf9f83f8233bdcc76672264d8a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8874/738cf53013d62cf9f83f8233bdcc76672264d8a1/indexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
12,
3669,
16,
589,
16,
3347,
16,
619,
1966,
16,
12635,
16,
3303,
4672,
9163,
5904,
3009,
5442,
26418,
225,
2552,
3303,
1458,
17803,
273,
1140,
18,
803,
18,
5701,
12,
3669,
16,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
12,
3669,
16,
589,
16,
3347,
16,
619,
1966,
16,
12635,
16,
3303,
4672,
9163,
5904,
3009,
5442,
26418,
225,
2552,
3303,
1458,
17803,
273,
1140,
18,
803,
18,
5701,
12,
3669,
16,
58... |
cf_name = 'config files %s' % ', '.join(options.configfiles | cf_name = 'config files %s' % ', '.join(options.configfiles) | def parse_arguments(): # Construct the option parser. usage = '%prog ACTION [options] NAMES...' version = "Epydoc, version %s" % epydoc.__version__ optparser = OptionParser(usage=usage, version=version) action_group = OptionGroup(optparser, 'Actions') options_group = OptionGroup(optparser, 'Options') # Add options -- ... | 5817516e8b44ee5cc092727e2126d52183c5541e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5817516e8b44ee5cc092727e2126d52183c5541e/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7099,
13332,
468,
14291,
326,
1456,
2082,
18,
4084,
273,
1995,
14654,
11385,
306,
2116,
65,
6048,
55,
7821,
1177,
273,
315,
41,
2074,
2434,
16,
1177,
738,
87,
6,
738,
425,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7099,
13332,
468,
14291,
326,
1456,
2082,
18,
4084,
273,
1995,
14654,
11385,
306,
2116,
65,
6048,
55,
7821,
1177,
273,
315,
41,
2074,
2434,
16,
1177,
738,
87,
6,
738,
425,
20... |
sharedItem.sharedIn.remove(self) | self.items.remove(item) | def removeSharedItem(self, item): """ Remove an item from the share's sharedIn refcoll, unstamping if the last share for this item """ if not pim.has_stamp(item, SharedItem): return sharedItem = SharedItem(item) logger.info("Removing item %s from sharedIn", item.itsUUID) sharedItem.sharedIn.remove(self) if not sharedIt... | a1839f3348df6bebbd146f3cbe8acd158244820b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/a1839f3348df6bebbd146f3cbe8acd158244820b/shares.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
7887,
1180,
12,
2890,
16,
761,
4672,
3536,
3581,
392,
761,
628,
326,
7433,
1807,
5116,
382,
1278,
12910,
16,
640,
14317,
310,
309,
326,
1142,
7433,
364,
333,
761,
3536,
309,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
7887,
1180,
12,
2890,
16,
761,
4672,
3536,
3581,
392,
761,
628,
326,
7433,
1807,
5116,
382,
1278,
12910,
16,
640,
14317,
310,
309,
326,
1142,
7433,
364,
333,
761,
3536,
309,
486,
... |
def getSuggestionListFile(word, filename): try: f = file(filename, 'r') except IOError: return [] pattern = sre.compile(word+r'.*?\b') matches = [] for line in f.readlines(): for match in pattern.findall(line): if match != word and match not in matches: matches.append(match) matches.sort() return matches def complete(... | if __name__ == '__main__': unittest.main() | def getSuggestionListFile(word, filename): try: f = file(filename, 'r') except IOError: return [] pattern = sre.compile(word+r'.*?\b') matches = [] for line in f.readlines(): for match in pattern.findall(line): if match != word and match not in matches: matches.append(match) matches.sort() return matches | c4bbd78983b64186544bb9ad103e27aa675bbc54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12650/c4bbd78983b64186544bb9ad103e27aa675bbc54/pythonCompletionTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
21166,
682,
812,
12,
1095,
16,
1544,
4672,
775,
30,
284,
273,
585,
12,
3459,
16,
296,
86,
6134,
1335,
8340,
30,
327,
5378,
1936,
273,
272,
266,
18,
11100,
12,
1095,
15,
86,
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,
1322,
21166,
682,
812,
12,
1095,
16,
1544,
4672,
775,
30,
284,
273,
585,
12,
3459,
16,
296,
86,
6134,
1335,
8340,
30,
327,
5378,
1936,
273,
272,
266,
18,
11100,
12,
1095,
15,
86,
11,... |
savefig(figName) | savefig(outputPath +"/" + figName) | def plotsnrchisq(gpsTime,frameFile,outputPath,inspProcParams,tableFileName,imgFile,page): rsqThreshold = 0; for row in inspProcParams: if row.param == "--channel-name": chanStringBase = row.value ifoName = str(row.value).split(":",1) if row.param == "--segment-length": segLen = eval(row.value) if row.param == "--samp... | 39bcfbf97ed7af5cc4c26a9666f90e8181718403 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/39bcfbf97ed7af5cc4c26a9666f90e8181718403/plotsnrchisq_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
8134,
86,
343,
291,
85,
12,
75,
1121,
950,
16,
3789,
812,
16,
2844,
743,
16,
267,
1752,
15417,
1370,
16,
2121,
4771,
16,
6081,
812,
16,
2433,
4672,
225,
3597,
85,
7614,
273,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
8134,
86,
343,
291,
85,
12,
75,
1121,
950,
16,
3789,
812,
16,
2844,
743,
16,
267,
1752,
15417,
1370,
16,
2121,
4771,
16,
6081,
812,
16,
2433,
4672,
225,
3597,
85,
7614,
273,
37... |
EventsPerJob = self.eventsPerJob) | EventsPerJob = self.eventsPerJob, Sites = self.sites) | def handleInput(self, payload): logging.info("RequestFeeder: Handling %s" % payload) | a9bc2e8296b8d648a4627bd6e23ba4f1469517f3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/a9bc2e8296b8d648a4627bd6e23ba4f1469517f3/RequestFeeder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1210,
12,
2890,
16,
2385,
4672,
2907,
18,
1376,
2932,
691,
8141,
264,
30,
2841,
2456,
738,
87,
6,
738,
2385,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1210,
12,
2890,
16,
2385,
4672,
2907,
18,
1376,
2932,
691,
8141,
264,
30,
2841,
2456,
738,
87,
6,
738,
2385,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if not option == None: | if not option == None: | def convert_bibitem(document): """ Convert | 9285259c560f5233584134ed83d267f93a4cb6de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/9285259c560f5233584134ed83d267f93a4cb6de/lyx_1_5.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
70,
495,
1726,
12,
5457,
4672,
3536,
4037,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
70,
495,
1726,
12,
5457,
4672,
3536,
4037,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/* Automatically generated. Do not edit! */ | /* Automatically generated by ext/gen_interpreters.py. Do not edit! */ | def get_interpreter(self): r""" Returns the code for the C interpreter. | 89c8332de5c914b500ffb00940fc8eebaae69cfa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/89c8332de5c914b500ffb00940fc8eebaae69cfa/gen_interpreters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2761,
11599,
12,
2890,
4672,
436,
8395,
2860,
326,
981,
364,
326,
385,
16048,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2761,
11599,
12,
2890,
4672,
436,
8395,
2860,
326,
981,
364,
326,
385,
16048,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Should only be called by __init__''' if self.__creating: fpar=file(self.datadir+'dim.dat') | Should only be called by set_param''' if self.__updating: print "Reading dim.dat...", fpar=file(self.datadir+'dim.dat') | def __read_dim(self): ''' Read dim.dat file and write corresponding data Should only be called by __init__''' if self.__creating: fpar=file(self.datadir+'dim.dat') line=fpar.readline().split() if len(line) == 6: mx,my,mz,mvar,maux,mglobal = tuple(map(int,line)) else: mx,my,mz,mvar,maux = tuple(map(int,line)) mglobal = ... | bf1a599ad9cde581f4679533ab3c54c55f5e9732 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1377/bf1a599ad9cde581f4679533ab3c54c55f5e9732/hdf5.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
896,
67,
3509,
12,
2890,
4672,
9163,
2720,
2464,
18,
3404,
585,
471,
1045,
4656,
501,
9363,
1338,
506,
2566,
635,
444,
67,
891,
26418,
309,
365,
16186,
5533,
1776,
30,
1172,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
896,
67,
3509,
12,
2890,
4672,
9163,
2720,
2464,
18,
3404,
585,
471,
1045,
4656,
501,
9363,
1338,
506,
2566,
635,
444,
67,
891,
26418,
309,
365,
16186,
5533,
1776,
30,
1172,
315,
... |
realname = self.real_name subject = _('%(realname)s subscription notification') | lang = self.preferred_language otrans = i18n.get_translation() i18n.set_language(lang) try: realname = self.real_name subject = _('%(realname)s subscription notification') finally: i18n.set_translation(otrans) if isinstance(name, UnicodeType): name = name.encode(Utils.GetCharSet(lang), 'replace') | def ApprovedAddMember(self, userdesc, ack=None, admin_notif=None, text=''): """Add a member right now. | 9b9452df1e362c046abba939ef1a76aeac33e0bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/9b9452df1e362c046abba939ef1a76aeac33e0bf/MailList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1716,
685,
2155,
986,
4419,
12,
2890,
16,
729,
5569,
16,
8479,
33,
7036,
16,
3981,
67,
902,
430,
33,
7036,
16,
977,
2218,
11,
4672,
3536,
986,
279,
3140,
2145,
2037,
18,
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,
1716,
685,
2155,
986,
4419,
12,
2890,
16,
729,
5569,
16,
8479,
33,
7036,
16,
3981,
67,
902,
430,
33,
7036,
16,
977,
2218,
11,
4672,
3536,
986,
279,
3140,
2145,
2037,
18,
2,
-100,
-10... |
stdout_thread.setDaemon(True) | stdout_thread.set_daemon(True) | def _communicate(self, input): stdout = None # Return stderr = None # Return | 2d9a086410546ef86358220eab652e03cd5ae5ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/2d9a086410546ef86358220eab652e03cd5ae5ab/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5702,
318,
2659,
12,
2890,
16,
810,
4672,
3909,
273,
599,
468,
2000,
4514,
273,
599,
468,
2000,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5702,
318,
2659,
12,
2890,
16,
810,
4672,
3909,
273,
599,
468,
2000,
4514,
273,
599,
468,
2000,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
del self.canvas | def render(self, out): self.canvas = canvas.Canvas(out) el = self.dom.documentElement.getElementsByTagName('docinit') if el: self.docinit(el) | 4160b63de7ca732ce2ad7f4dc47049ae073a97d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/4160b63de7ca732ce2ad7f4dc47049ae073a97d0/trml2pdf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
596,
4672,
365,
18,
15424,
273,
5953,
18,
12971,
12,
659,
13,
415,
273,
365,
18,
9859,
18,
5457,
1046,
18,
588,
3471,
10401,
2668,
2434,
2738,
6134,
309,
415,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
596,
4672,
365,
18,
15424,
273,
5953,
18,
12971,
12,
659,
13,
415,
273,
365,
18,
9859,
18,
5457,
1046,
18,
588,
3471,
10401,
2668,
2434,
2738,
6134,
309,
415,
30,
... | |
value = hlr_utils.get_value(obj,i,o_descr,axis,axis_pos) error = hlr_utils.get_err2(obj,i,o_descr,axis,axis_pos) | value = hlr_utils.get_value(obj, i, o_descr, axis, axis_pos) error = hlr_utils.get_err2(obj, i, o_descr, axis, axis_pos) | def integrate_axis(obj, **kwargs): """ This function takes a SOM or a SO and integrates the given axis. The function assumes that the incoming data is in the histogram form. Parameters: ---------- -> obj is a SOM or a SO -> kwargs is a list of key word arguments that the function accepts: start=<index of starting bin>... | 6fe6bd8f1c3a8e6b1bc8ec8a02a774c1f6891ea9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/6fe6bd8f1c3a8e6b1bc8ec8a02a774c1f6891ea9/hlr_integrate_axis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23367,
67,
4890,
12,
2603,
16,
2826,
4333,
4672,
3536,
1220,
445,
5530,
279,
348,
1872,
578,
279,
7460,
471,
11301,
815,
326,
864,
2654,
18,
1021,
445,
13041,
716,
326,
6935,
501,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23367,
67,
4890,
12,
2603,
16,
2826,
4333,
4672,
3536,
1220,
445,
5530,
279,
348,
1872,
578,
279,
7460,
471,
11301,
815,
326,
864,
2654,
18,
1021,
445,
13041,
716,
326,
6935,
501,
353,
... |
len(dist) and reduce(lambda x, y: x+':'+y, [self.precFrmt % (x/a) for x in dist]) or "NA", len(dist) and reduce(lambda x, y: x+':'+y, ["%d" % int(x) for x in dist]) or "NA" | len(dist) and reduce(lambda x, y: x+':'+y, [self.precFrmt % (x/a) for x in dist]) or "N/A", len(dist) and reduce(lambda x, y: x+':'+y, ["%d" % int(x) for x in dist]) or "N/A" | def walkupdate(listviewitem): node = self.nodeClassDict[listviewitem] if not node: return ncl = node.nodeClassifier dist = node.distribution a = dist.abs if a < 1e-20: a = 1 try: p_majclass = f % float(dist[int(ncl.defaultVal)]/a) except: p_majclass = "NA" try: p_tarclass = f % float(dist[self.targetClass]/a) except: p... | a03f0b6c1a8d75124def713bfd07fcb763e1111e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/a03f0b6c1a8d75124def713bfd07fcb763e1111e/OWClassificationTreeViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
2725,
12,
1098,
1945,
1726,
4672,
756,
273,
365,
18,
2159,
797,
5014,
63,
1098,
1945,
1726,
65,
309,
486,
756,
30,
327,
290,
830,
273,
756,
18,
2159,
13860,
2411,
273,
756,
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,
5442,
2725,
12,
1098,
1945,
1726,
4672,
756,
273,
365,
18,
2159,
797,
5014,
63,
1098,
1945,
1726,
65,
309,
486,
756,
30,
327,
290,
830,
273,
756,
18,
2159,
13860,
2411,
273,
756,
18,
... |
f.write(" JSBool ok = xpc_qsXPCOMObjectToJsval(lccx, result, " "xpc_qsGetWrapperCache(result), &NS_GET_IID(%s), " "&interfaces[k_%s], &vp.array[0]);" "\n" % (type.name, type.name)) | f.write(" JSBool ok = xpc_qsXPCOMObjectToJsval(lccx, " "ToSupports(result), xpc_qsGetWrapperCache(result), " "&NS_GET_IID(%s), &interfaces[k_%s], &vp.array[0]);\n" % (type.name, type.name)) | def writeTraceableResultConv(f, type): typeName = getBuiltinOrNativeTypeName(type) if typeName is not None: template = traceableResultConvTemplates.get(typeName) if template is not None: values = { 'errorStr': getFailureString( getTraceInfoDefaultReturn(type), 2) } f.write(substitute(template, values)) return # else fa... | 43dac8594b9299b7acacc614359a2709d44ce5a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/43dac8594b9299b7acacc614359a2709d44ce5a7/qsgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
3448,
429,
1253,
17467,
12,
74,
16,
618,
4672,
8173,
273,
2882,
4853,
267,
1162,
9220,
7947,
12,
723,
13,
309,
8173,
353,
486,
599,
30,
1542,
273,
2606,
429,
1253,
17467,
8218,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3448,
429,
1253,
17467,
12,
74,
16,
618,
4672,
8173,
273,
2882,
4853,
267,
1162,
9220,
7947,
12,
723,
13,
309,
8173,
353,
486,
599,
30,
1542,
273,
2606,
429,
1253,
17467,
8218,
1... |
local_ip = host.outgoing_ip_for(self._invitation.sdp.proposed_remote.connection.address) | sdp_connection = self._invitation.sdp.proposed_remote.connection or (media.connection for media in self._invitation.sdp.proposed_remote.media if media.connection is not None).next() local_ip = host.outgoing_ip_for(sdp_connection.address) | def accept(self, streams): self.greenlet = api.getcurrent() notification_center = NotificationCenter() settings = SIPSimpleSettings() | c7153664b7a4229923981a500a921de0796d12c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/c7153664b7a4229923981a500a921de0796d12c9/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
16,
8205,
4672,
365,
18,
11571,
1810,
273,
1536,
18,
588,
2972,
1435,
3851,
67,
5693,
273,
8050,
8449,
1435,
1947,
273,
348,
2579,
5784,
2628,
1435,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2791,
12,
2890,
16,
8205,
4672,
365,
18,
11571,
1810,
273,
1536,
18,
588,
2972,
1435,
3851,
67,
5693,
273,
8050,
8449,
1435,
1947,
273,
348,
2579,
5784,
2628,
1435,
2,
-100,
-100,
-100,
... |
pep = pepAln.values()[0] | def findFourFold(aln): """Returns index of all columns in alignment that are completely fourfold degenerate Assumes that columns are already filtered for aligned codons """ # create peptide alignment pepAln = mapalign(aln, valfunc=translate) # find peptide conservation pepcons = [] for i in xrange(pepAln.alignlen())... | 4e78a3e6dda4524245bc076287f770f0548defe5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8482/4e78a3e6dda4524245bc076287f770f0548defe5/alignlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
42,
477,
15592,
12,
30907,
4672,
3536,
1356,
770,
434,
777,
2168,
316,
8710,
716,
854,
14416,
12792,
16007,
443,
7163,
225,
25374,
716,
2168,
854,
1818,
5105,
364,
13939,
11012,
7008... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
42,
477,
15592,
12,
30907,
4672,
3536,
1356,
770,
434,
777,
2168,
316,
8710,
716,
854,
14416,
12792,
16007,
443,
7163,
225,
25374,
716,
2168,
854,
1818,
5105,
364,
13939,
11012,
7008... | |
return {'value': result['value'], 'warning':warning} | return {'value': result.get('value',{}), 'warning':warning} | def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False): warning = {} if not product: return {'value': {'th_weight' : 0, 'product_packaging': False,... | 436cfd6954d5ed8e538ae3c4c141e9cf56f75bae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/436cfd6954d5ed8e538ae3c4c141e9cf56f75bae/warning.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
20,
16,
582,
362,
33,
8381,
16,
26667,
67,
89,
538,
33,
20,
16,
582,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
33,
20,
16,
582,
362,
33,
8381,
16,
26667,
67,
89,
538,
33,
20,
16,
582,
... |
%%%%displayAuth(request)%%%% | %%%%displayFooter(request)%%%% | def process(self,write,request,day,month,year,title,data): | b508ccb48d151365a9e848f61248f21f87fc5e1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b508ccb48d151365a9e848f61248f21f87fc5e1d/cal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
16,
2626,
16,
2293,
16,
2881,
16,
7496,
16,
6874,
16,
2649,
16,
892,
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,
... | [
1,
1,
1,
1,
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,
1207,
12,
2890,
16,
2626,
16,
2293,
16,
2881,
16,
7496,
16,
6874,
16,
2649,
16,
892,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sage: p = SQLQuery(DB, {'table_name':'simon', 'display_cols':'b2', 'dillhole':['b2','=', 0]}) | sage: p = SQLQuery(DB, {'table_name':'simon', 'display_cols':'b2', 'expression':['b2','=', 0]}) | def delete_rows(self, query): """ DOCSTRING COMMENTS: - Query must have no join statements (you can only delete from one table at a time) (This might be an interesting TODO later, ie: another function that creates multiple delete statements from a query with joins... I don't think it's really necessary at this time th... | 5ddf79d83938a9c0191ec3af2f60e264a74ecef9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5ddf79d83938a9c0191ec3af2f60e264a74ecef9/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
3870,
12,
2890,
16,
843,
4672,
3536,
5467,
39,
5804,
19400,
55,
30,
300,
2770,
1297,
1240,
1158,
1233,
6317,
261,
19940,
848,
1338,
1430,
628,
1245,
1014,
622,
279,
813,
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,
1430,
67,
3870,
12,
2890,
16,
843,
4672,
3536,
5467,
39,
5804,
19400,
55,
30,
300,
2770,
1297,
1240,
1158,
1233,
6317,
261,
19940,
848,
1338,
1430,
628,
1245,
1014,
622,
279,
813,
13,
... |
if self.editRestriction: self.site().forceLogin(sysop=True) else: self.site().forceLogin() username = self.site()._loggedInAs | try: if self.editRestriction: self.site().forceLogin(sysop=True) else: self.site().forceLogin() username = self.site()._loggedInAs except NoUsername: username = None | def botMayEdit(self): """ True if page doesn't contain {{bots}} or {{nobots}} or contains them and active bot is allowed or not allowed to edit said page | aede702039b6b257c4543b5b8de34b122c544a1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/aede702039b6b257c4543b5b8de34b122c544a1d/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2512,
49,
528,
4666,
12,
2890,
4672,
3536,
1053,
309,
1363,
3302,
1404,
912,
10179,
4819,
87,
9090,
578,
10179,
82,
947,
6968,
9090,
578,
1914,
2182,
471,
2695,
2512,
353,
2935,
578,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2512,
49,
528,
4666,
12,
2890,
4672,
3536,
1053,
309,
1363,
3302,
1404,
912,
10179,
4819,
87,
9090,
578,
10179,
82,
947,
6968,
9090,
578,
1914,
2182,
471,
2695,
2512,
353,
2935,
578,
486... |
def load_filename(filename, verbose = False, gz = False, xmldoc = None, contenthandler = None): | def load_filename(filename, verbose = False, gz = None, xmldoc = None, contenthandler = None): | def load_filename(filename, verbose = False, gz = False, xmldoc = None, contenthandler = None): """ Parse the contents of the file identified by filename, and return the contents as a LIGO Light Weight document tree. Helpful verbosity messages are printed to stderr if verbose is True, and the file is gzip decompressed... | 4eab7f4d4ad91c4a7aa23e82dcbb61b7895f83ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/4eab7f4d4ad91c4a7aa23e82dcbb61b7895f83ed/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
3459,
12,
3459,
16,
3988,
273,
1083,
16,
14136,
273,
599,
16,
2025,
2434,
273,
599,
16,
913,
4176,
273,
599,
4672,
3536,
2884,
326,
2939,
434,
326,
585,
9283,
635,
1544,
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,
1262,
67,
3459,
12,
3459,
16,
3988,
273,
1083,
16,
14136,
273,
599,
16,
2025,
2434,
273,
599,
16,
913,
4176,
273,
599,
4672,
3536,
2884,
326,
2939,
434,
326,
585,
9283,
635,
1544,
16,
... |
"""QueuePage | """Returns a list of chain IDs and their sizes. | def chain_size_string(self, jdict): """QueuePage """ if jdict.has_key("chains") == False: return "---" | ebe7911aaa6579796c3b771f64c91ad7ae981d9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/ebe7911aaa6579796c3b771f64c91ad7ae981d9b/webtlsmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2687,
67,
1467,
67,
1080,
12,
2890,
16,
525,
1576,
4672,
3536,
1356,
279,
666,
434,
2687,
7115,
471,
3675,
8453,
18,
3536,
309,
525,
1576,
18,
5332,
67,
856,
2932,
23060,
7923,
422,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2687,
67,
1467,
67,
1080,
12,
2890,
16,
525,
1576,
4672,
3536,
1356,
279,
666,
434,
2687,
7115,
471,
3675,
8453,
18,
3536,
309,
525,
1576,
18,
5332,
67,
856,
2932,
23060,
7923,
422,
10... |
new_crypted = crypt.crypt(password, original_crypted[:2]) | new_crypted = crypt.crypt(password, original_crypted) | def authenticate(self, username, password): try: passwd = nis.match(username, 'passwd').split(':') original_crypted = passwd[1] new_crypted = crypt.crypt(password, original_crypted[:2]) | bf6d9112e6782ddb4649c9091a2d4ae426785ce3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/bf6d9112e6782ddb4649c9091a2d4ae426785ce3/backends.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8929,
12,
2890,
16,
2718,
16,
2201,
4672,
775,
30,
19093,
273,
290,
291,
18,
1916,
12,
5053,
16,
296,
24002,
16063,
4939,
2668,
2497,
13,
2282,
67,
71,
4567,
273,
19093,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8929,
12,
2890,
16,
2718,
16,
2201,
4672,
775,
30,
19093,
273,
290,
291,
18,
1916,
12,
5053,
16,
296,
24002,
16063,
4939,
2668,
2497,
13,
2282,
67,
71,
4567,
273,
19093,
63,
21,
65,
... |
def hover2_bt_clicked(obj, event, *args, **kargs): pass def hover2_clicked(obj, event, *args, **kargs): | def hover2_clicked(obj, i, *args, **kwargs): | def hover2_bt_clicked(obj, event, *args, **kargs): pass | dff3caa2ec713908f112c4970120d3d880226170 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/dff3caa2ec713908f112c4970120d3d880226170/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15758,
22,
67,
23602,
67,
7475,
329,
12,
2603,
16,
871,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15758,
22,
67,
23602,
67,
7475,
329,
12,
2603,
16,
871,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
(panda_config.glite_source,panda_config.native_python,panda_config.lfcClient_dir, | (panda_config.glite_source,panda_config.native_python32,panda_config.lfcClient_dir, | def _getPFNFromLFC(lfns,dq2url,guids,storageName): _log.debug('_getPFNFromLFC') outStr = '' # check paramter if guids == [] or storageName == [] or (len(lfns) != len(guids)): return outStr # extract LFC host lfcHost = re.sub('[/:]',' ',dq2url).split()[1] # loop over all LFNs iLFN = 0 nLFN = 50 strLFNs = '' strGUIDs = '... | 37701f29dea9eb875a3436cfc7fb9717f1665cf8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7525/37701f29dea9eb875a3436cfc7fb9717f1665cf8/broker_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
52,
19793,
1265,
48,
4488,
12,
20850,
2387,
16,
72,
85,
22,
718,
16,
14066,
87,
16,
5697,
461,
4672,
389,
1330,
18,
4148,
2668,
67,
588,
52,
19793,
1265,
48,
4488,
6134,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
52,
19793,
1265,
48,
4488,
12,
20850,
2387,
16,
72,
85,
22,
718,
16,
14066,
87,
16,
5697,
461,
4672,
389,
1330,
18,
4148,
2668,
67,
588,
52,
19793,
1265,
48,
4488,
6134,
59... |
d = (minimaMap(p)-p).magnitude() if (d < mindist): mindist = d setattr(edge, self.attrName, mindist) | near = minimaMap(p, mindist2) if near: mindist2 = (near-p).squaredMagnitude() setattr(edge, self.attrName, math.sqrt(mindist2)) | def __init__(self, map, bi): DynamicEdgeStatistics.__init__(self, map) self.attrName = _makeAttrName("minDist_"+bi.name) minimaMap = PositionedMap() minima=localMinmax(bi.gm,True,False,False) for y in range(minima.height()): for x in range(minima.width()): if minima[x,y]<0: minimaMap.insert(Vector2(x,y), Vector2(x,y)) ... | 8925518c2ae9f74de3b734317beccbc4670dbd43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10394/8925518c2ae9f74de3b734317beccbc4670dbd43/statistics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
852,
16,
10054,
4672,
12208,
6098,
8569,
16186,
2738,
972,
12,
2890,
16,
852,
13,
365,
18,
1747,
461,
273,
389,
6540,
28973,
2932,
1154,
5133,
9548,
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,
1001,
2738,
972,
12,
2890,
16,
852,
16,
10054,
4672,
12208,
6098,
8569,
16186,
2738,
972,
12,
2890,
16,
852,
13,
365,
18,
1747,
461,
273,
389,
6540,
28973,
2932,
1154,
5133,
9548,
15,
... |
result = DIRAC.gConfig.getSections( '/Resources/Sites/LCG' ) | gridCfgPath = cfgPath( 'Resources', 'Sites', grid ) result = DIRAC.gConfig.getSections( gridCfgPath ) | def usage(): print 'Usage: %s < ce name> [< ce name>]' % ( Script.scriptName ) DIRAC.exit( 2 ) | 096c758e5e556790bf90e5743318f77f9fc92894 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/096c758e5e556790bf90e5743318f77f9fc92894/dirac-admin-ce-info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
411,
5898,
508,
34,
306,
32,
5898,
508,
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,
5898,
508,
34,
306,
32,
5898,
508,
34,
3864,
738,
261,
7739,
18,
4263,
461,
262,
18544,
2226,
18,
8593,
12,
576,
262,
225,
2,
-100,
-1... |
def GetString(ea, len, type): | def GetString(ea, length, strtype): | def GetString(ea, len, type): """ Get string contents @param ea: linear address @param len: string length. -1 means to calculate the max string length @param type: the string type (one of ASCSTR_... constants) return: string contents or empty string """ if len == -1: strlen = idaapi.get_max_ascii_length(ea, type) else... | 4f22943d42ee1d5013421d280b3bd776bee83fb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3410/4f22943d42ee1d5013421d280b3bd776bee83fb9/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18921,
12,
24852,
16,
769,
16,
609,
723,
4672,
3536,
968,
533,
2939,
632,
891,
24164,
30,
9103,
1758,
632,
891,
562,
30,
533,
769,
18,
300,
21,
4696,
358,
4604,
326,
943,
533,
769,
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,
18921,
12,
24852,
16,
769,
16,
609,
723,
4672,
3536,
968,
533,
2939,
632,
891,
24164,
30,
9103,
1758,
632,
891,
562,
30,
533,
769,
18,
300,
21,
4696,
358,
4604,
326,
943,
533,
769,
6... |
objs.extend(list(ctype.objects.all().order_by('-content_object__creation_date')[:N])) | objs.extend(list(ctype.objects.all()[:N])) | def items(self): N = cyc_settings.CYCLOPE_RSS_LIMIT objs = [] for ctype in sites.site.base_content_types.keys(): objs.extend(list(ctype.objects.all().order_by('-content_object__creation_date')[:N])) return sorted(objs, key=lambda x: x.creation_date, reverse = True)[:N] | 503668a169932bfdaf40f2ea61eb7710d6f24638 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/797/503668a169932bfdaf40f2ea61eb7710d6f24638/feeds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1516,
12,
2890,
4672,
423,
273,
6143,
71,
67,
4272,
18,
16068,
22693,
1423,
67,
31211,
67,
8283,
12721,
273,
5378,
364,
11920,
316,
9180,
18,
4256,
18,
1969,
67,
1745,
67,
2352,
18,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1516,
12,
2890,
4672,
423,
273,
6143,
71,
67,
4272,
18,
16068,
22693,
1423,
67,
31211,
67,
8283,
12721,
273,
5378,
364,
11920,
316,
9180,
18,
4256,
18,
1969,
67,
1745,
67,
2352,
18,
24... |
exercise_threading() exercise_process() | from libtbx import thread_utils thread_utils.exercise_threading() thread_utils.exercise_process() | def _target_function06 (args, kwds, connection) : for i in xrange(1000) : print i time.sleep(1) | 87aa46994d8d95744d69de303382b8021d70b4a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/87aa46994d8d95744d69de303382b8021d70b4a8/thread_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3299,
67,
915,
7677,
261,
1968,
16,
17149,
16,
1459,
13,
294,
364,
277,
316,
12314,
12,
18088,
13,
294,
1172,
277,
813,
18,
19607,
12,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3299,
67,
915,
7677,
261,
1968,
16,
17149,
16,
1459,
13,
294,
364,
277,
316,
12314,
12,
18088,
13,
294,
1172,
277,
813,
18,
19607,
12,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-... |
jump(4) """ self.optimize_loop(ops, expected) | jump() """ expected = """ [] jump() """ self.optimize_loop(ops, expected, preamble) | def test_bound_lt_noopt(self): ops = """ [i0] i1 = int_lt(i0, 4) guard_false(i1) [] i2 = int_lt(i0, 5) guard_true(i2) [] jump(i0) """ expected = """ [i0] i1 = int_lt(i0, 4) guard_false(i1) [] i2 = int_lt(i0, 5) guard_true(i2) [] jump(4) """ self.optimize_loop(ops, expected) | c1c567f913716b04331394b638b204be95cb1dc4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/c1c567f913716b04331394b638b204be95cb1dc4/test_optimizeopt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3653,
67,
5618,
67,
2135,
3838,
12,
2890,
4672,
6727,
273,
3536,
306,
77,
20,
65,
277,
21,
273,
509,
67,
5618,
12,
77,
20,
16,
1059,
13,
11026,
67,
5743,
12,
77,
21,
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,
1842,
67,
3653,
67,
5618,
67,
2135,
3838,
12,
2890,
4672,
6727,
273,
3536,
306,
77,
20,
65,
277,
21,
273,
509,
67,
5618,
12,
77,
20,
16,
1059,
13,
11026,
67,
5743,
12,
77,
21,
13,
... |
mod_data.append([[x[0] / 60, x[1]] for x in mod_data_seconds]) | mod_data.append([[x[0] / X_Scale_Factor, x[1]] for x in mod_data_seconds]) | 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... | 87973d23d22db6216de05fd97372ac9cd7fd65c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/87973d23d22db6216de05fd97372ac9cd7fd65c3/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... |
wikipedia.output(e.message) | wikipedia.output(e) | def treat(self, page): try: oldText = page.get() for match in self.isbnR.finditer(oldText): code = match.group('code') try: getIsbn(code) except InvalidIsbnException, e: wikipedia.output(e.message) | 21455d9df1f37faf79cf851734d7df4a4a94ce8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/21455d9df1f37faf79cf851734d7df4a4a94ce8a/isbn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
12,
2890,
16,
1363,
4672,
775,
30,
1592,
1528,
273,
1363,
18,
588,
1435,
364,
845,
316,
365,
18,
291,
13392,
54,
18,
4720,
2165,
12,
1673,
1528,
4672,
981,
273,
845,
18,
1655,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
12,
2890,
16,
1363,
4672,
775,
30,
1592,
1528,
273,
1363,
18,
588,
1435,
364,
845,
316,
365,
18,
291,
13392,
54,
18,
4720,
2165,
12,
1673,
1528,
4672,
981,
273,
845,
18,
1655,
... |
return self.pool.get("res.partner.bank").browse(cr,uid,bid) | return self.pool.get("res.partner.bank").browse(self.cr,self.uid,bid) | def _bank_get(self, bid): return self.pool.get("res.partner.bank").browse(cr,uid,bid) | ad1032e992df2270077592ddb081acb2b4e6cdcd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/ad1032e992df2270077592ddb081acb2b4e6cdcd/bvr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10546,
67,
588,
12,
2890,
16,
9949,
4672,
327,
365,
18,
6011,
18,
588,
2932,
455,
18,
31993,
18,
10546,
20387,
25731,
12,
3353,
16,
1911,
16,
19773,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10546,
67,
588,
12,
2890,
16,
9949,
4672,
327,
365,
18,
6011,
18,
588,
2932,
455,
18,
31993,
18,
10546,
20387,
25731,
12,
3353,
16,
1911,
16,
19773,
13,
2,
-100,
-100,
-100,
-100,... |
kupu_tool.deleteResourceTypes([COMPOSABLE]) out.write("Composable Resource deleted in Kupu Library Tool") | try: kupu_tool.deleteResourceTypes([COMPOSABLE]) out.write("Composable Resource deleted in Kupu Library Tool") except KeyError: pass | def uninstall_kupu_resource(self, out): if hasattr(self, KUPU_TOOL_ID): kupu_tool = getattr(self, KUPU_TOOL_ID) kupu_tool.deleteResourceTypes([COMPOSABLE]) out.write("Composable Resource deleted in Kupu Library Tool") else: out.write("Kupu Library Tool not available") | ea182cd2e1484471730629e4b4e4000ce4ac18ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/ea182cd2e1484471730629e4b4e4000ce4ac18ca/Install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16577,
67,
79,
416,
89,
67,
3146,
12,
2890,
16,
596,
4672,
309,
3859,
12,
2890,
16,
1475,
3079,
57,
67,
26263,
67,
734,
4672,
417,
416,
89,
67,
6738,
273,
3869,
12,
2890,
16,
1475,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16577,
67,
79,
416,
89,
67,
3146,
12,
2890,
16,
596,
4672,
309,
3859,
12,
2890,
16,
1475,
3079,
57,
67,
26263,
67,
734,
4672,
417,
416,
89,
67,
6738,
273,
3869,
12,
2890,
16,
1475,
... |
if not os.path.isdir(directory): os.mkdir(directory) | if os.path.isdir(directory): shutil.rmtree(directory, True) os.makedirs(directory) | def createBertosProject(project_info): directory = project_info.info("PROJECT_PATH") sources_dir = project_info.info("SOURCES_PATH") if not os.path.isdir(directory): os.mkdir(directory) f = open(directory + "/project.bertos", "w") f.write(pickle.dumps(project_info)) f.close() # Destination source dir srcdir = directory... | 5bd2e00f5d77f8354649b1a8c434de9cf44b7d25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9114/5bd2e00f5d77f8354649b1a8c434de9cf44b7d25/bertos_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
38,
1051,
538,
4109,
12,
4406,
67,
1376,
4672,
1867,
273,
1984,
67,
1376,
18,
1376,
2932,
17147,
67,
4211,
7923,
5550,
67,
1214,
273,
1984,
67,
1376,
18,
1376,
2932,
6537,
55,
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,
752,
38,
1051,
538,
4109,
12,
4406,
67,
1376,
4672,
1867,
273,
1984,
67,
1376,
18,
1376,
2932,
17147,
67,
4211,
7923,
5550,
67,
1214,
273,
1984,
67,
1376,
18,
1376,
2932,
6537,
55,
67,... |
""" if name[0] != 'X' or not name in self.capabilities: raise self.error('unknown extension command: %s' % name) | Returns response appropriate to extension command `name'. """ name = name.upper() if not Commands.has_key(name): Commands[name] = (self.state,) | def xatom(self, name, *args): """Allow simple extension commands notified by server in CAPABILITY response. | ed860500914c98bc53bdadf292c180ffad9bec09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ed860500914c98bc53bdadf292c180ffad9bec09/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
7466,
12,
2890,
16,
508,
16,
380,
1968,
4672,
3536,
7009,
4143,
2710,
4364,
18791,
635,
1438,
316,
29720,
22879,
766,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
619,
7466,
12,
2890,
16,
508,
16,
380,
1968,
4672,
3536,
7009,
4143,
2710,
4364,
18791,
635,
1438,
316,
29720,
22879,
766,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
(self._bymonthday and ii.mdaymask[i] not in self._bymonthday) or (self._byweekday and ii.wdaymask[i] not in self._byweekday) or | (self._byweekday and ii.wdaymask[i] not in self._byweekday) or | def _iter(self): year, month, day, hour, minute, second, weekday, yearday, _ = \ self._dtstart.timetuple() | b3c88411265904f5f13de2fe4210eefdaea843f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/b3c88411265904f5f13de2fe4210eefdaea843f5/rrule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2165,
12,
2890,
4672,
3286,
16,
3138,
16,
2548,
16,
6126,
16,
8044,
16,
2205,
16,
7560,
16,
677,
73,
1060,
528,
16,
389,
273,
521,
365,
6315,
7510,
1937,
18,
8584,
278,
2268,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2165,
12,
2890,
4672,
3286,
16,
3138,
16,
2548,
16,
6126,
16,
8044,
16,
2205,
16,
7560,
16,
677,
73,
1060,
528,
16,
389,
273,
521,
365,
6315,
7510,
1937,
18,
8584,
278,
2268,
14... |
if auth_code and user_info['email'] == 'guest' and not user_info['apache_user']: | if auth_code: | def __call__(self, req, form): """ Perform a search. """ argd = wash_search_urlargd(form) | 19aa8278e54f656b5935dcde0aca0276789f8fe4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/19aa8278e54f656b5935dcde0aca0276789f8fe4/websearch_webinterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1111,
16,
646,
4672,
3536,
11217,
279,
1623,
18,
3536,
1501,
72,
273,
341,
961,
67,
3072,
67,
718,
3175,
72,
12,
687,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1111,
16,
646,
4672,
3536,
11217,
279,
1623,
18,
3536,
1501,
72,
273,
341,
961,
67,
3072,
67,
718,
3175,
72,
12,
687,
13,
2,
-100,
-100,
-100,
-100,
-1... |
print _('You must specify an id') | print >>sys.stderr, _('You must specify an id') | def command_show_metadata(args, dbpath): parser = get_parser(_( | aab8744748b031f43fe9148ccb2cdc2e9db72d82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/aab8744748b031f43fe9148ccb2cdc2e9db72d82/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
4500,
67,
4165,
12,
1968,
16,
1319,
803,
4672,
2082,
273,
336,
67,
4288,
24899,
12,
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,
1296,
67,
4500,
67,
4165,
12,
1968,
16,
1319,
803,
4672,
2082,
273,
336,
67,
4288,
24899,
12,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For `Ooc`<http://ooc-lang.org/>_ source code | For `Ooc <http://ooc-lang.org/>`_ source code | # ``cdef foo from "header"``, or ``for foo from 0 < i < 10`` | e90acdda0abc938e1808f67b91c2aa64dd3e18b5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6148/e90acdda0abc938e1808f67b91c2aa64dd3e18b5/compiled.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
12176,
71,
536,
8431,
628,
315,
3374,
8366,
9191,
578,
12176,
1884,
8431,
628,
374,
411,
277,
411,
1728,
10335,
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,
468,
12176,
71,
536,
8431,
628,
315,
3374,
8366,
9191,
578,
12176,
1884,
8431,
628,
374,
411,
277,
411,
1728,
10335,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if widget is self.pres and (self._background or self._black or self._logo) or not slide: | if widget is self.pres and (self._background or self._black or self._logo) \ or not slide: | def _draw(self, widget): 'Render `widget`.' if not widget.window or not widget.window.is_viewable(): return False ccontext = widget.window.cairo_create() screenW, screenH = widget.window.get_size() if widget is self.preview and self.pres.window and self.pres.window.is_viewable(): #Scale if the presentation window size... | 8c3f40684164811288ce61ed77b3443a149b13bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5029/8c3f40684164811288ce61ed77b3443a149b13bb/screen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
12,
2890,
16,
3604,
4672,
296,
3420,
1375,
6587,
68,
1093,
309,
486,
3604,
18,
5668,
578,
486,
3604,
18,
5668,
18,
291,
67,
1945,
429,
13332,
327,
1083,
225,
276,
2472,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
12,
2890,
16,
3604,
4672,
296,
3420,
1375,
6587,
68,
1093,
309,
486,
3604,
18,
5668,
578,
486,
3604,
18,
5668,
18,
291,
67,
1945,
429,
13332,
327,
1083,
225,
276,
2472,
273,... |
if line['partner_id'] == 0: nb_err+=1 err_log += '\nThe bank account %s is not defined for the partner %s.'%(cntry_number,contry_name) | def _coda_parsing(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) codafile = data['form']['coda'] jur_id = data['form']['journal_id'] def_pay_acc = data['form']['def_payable'] def_rec_acc = data['form']['def_receivable'] str_log = "" err_log = "Errors:\n------\n" nb_err=0 std_log='' str_log1 = "Coda F... | 2b8aba5dfb833d1f9a101218c2280e6361bd57e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/2b8aba5dfb833d1f9a101218c2280e6361bd57e2/coda_import.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1559,
69,
67,
24979,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
11012,
69,
768,
273,
501,
3292,
687,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1559,
69,
67,
24979,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
11012,
69,
768,
273,
501,
3292,
687,... | |
if self.ceParameters.has_key('AdminCommands'): commands = self.ceParameters['AdminCommands'].split(';') | if self.ceParameters.has_key( 'AdminCommands' ): commands = self.ceParameters['AdminCommands'].split( ';' ) | def submitJob(self,executableFile,jdl,proxy,localID): """ Method to submit job, should be overridden in sub-class. """ | 05f4284330e23d8d74d0844cee3520964f66a942 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/05f4284330e23d8d74d0844cee3520964f66a942/TorqueComputingElement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
2278,
12,
2890,
16,
17751,
812,
16,
78,
5761,
16,
5656,
16,
3729,
734,
4672,
3536,
2985,
358,
4879,
1719,
16,
1410,
506,
11000,
316,
720,
17,
1106,
18,
3536,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
2278,
12,
2890,
16,
17751,
812,
16,
78,
5761,
16,
5656,
16,
3729,
734,
4672,
3536,
2985,
358,
4879,
1719,
16,
1410,
506,
11000,
316,
720,
17,
1106,
18,
3536,
2,
-100,
-100,
-100,... |
out(' <p class="varlist">' '<span class="varlist-header">Inherited ' 'from <code>%s</code></span>:\n' % | out(' <p class="indent-wrapped-lines">' '<b>Inherited from <code>%s</code></b>:\n' % | def write_inheritance_list(self, out, doc, listed_inh_vars): out(' <tr>\n <td colspan="2" class="summary">\n') for base in doc.mro(): if base not in listed_inh_vars: continue public_vars = [v for v in listed_inh_vars[base] if v.is_public] private_vars = [v for v in listed_inh_vars[base] if not v.is_public] if publi... | ead96d86090e18fdeec64a06319b925d20efd2b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ead96d86090e18fdeec64a06319b925d20efd2b2/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
6018,
1359,
67,
1098,
12,
2890,
16,
596,
16,
997,
16,
12889,
67,
267,
76,
67,
4699,
4672,
596,
2668,
225,
411,
313,
5333,
82,
565,
411,
4465,
20856,
1546,
22,
6,
667,
1546,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6018,
1359,
67,
1098,
12,
2890,
16,
596,
16,
997,
16,
12889,
67,
267,
76,
67,
4699,
4672,
596,
2668,
225,
411,
313,
5333,
82,
565,
411,
4465,
20856,
1546,
22,
6,
667,
1546,... |
writePCDataElement("para", "You can start %s by opening a terminal and typing the <command>%s</command> command."%(taggedAppName, appName)) | writePCDataElement("para", "You can start %s by opening a terminal and typing the <command>%s</command> command."%(taggedAppName, cgi.escape(appName))) | def generateUnhelpfulHelp(appName): try: app = root.application(appName) except SearchError: run(appName) print '<?xml version="1.0"?>' print '<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">' print '<article>' taggedAppName = '<application>%s<... | d24d70c5da5bade6842d9a7b40f56bcefda90a90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10139/d24d70c5da5bade6842d9a7b40f56bcefda90a90/no-help-at-all.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
984,
5201,
2706,
6696,
12,
2910,
461,
4672,
775,
30,
595,
273,
1365,
18,
3685,
12,
2910,
461,
13,
1335,
5167,
668,
30,
1086,
12,
2910,
461,
13,
1172,
16617,
2902,
1177,
1546,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
984,
5201,
2706,
6696,
12,
2910,
461,
4672,
775,
30,
595,
273,
1365,
18,
3685,
12,
2910,
461,
13,
1335,
5167,
668,
30,
1086,
12,
2910,
461,
13,
1172,
16617,
2902,
1177,
1546,
21,... |
sys.stderr.write( "module name in title doesn't match" " <declaremodule>; no <short-synopsis>\n") | ewrite("module name in title doesn't match" " <declaremodule/>; no <short-synopsis/>\n") | def create_module_info(doc, section): # Heavy. node = extract_first_element(section, "modulesynopsis") if node is None: return node._node.name = "synopsis" lastchild = node.childNodes[-1] if lastchild.nodeType == TEXT \ and lastchild.data[-1:] == ".": lastchild.data = lastchild.data[:-1] modauthor = extract_first_eleme... | 304ebb260c7d5886ccb4a4738c3e4f83f60820f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/304ebb260c7d5886ccb4a4738c3e4f83f60820f6/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2978,
67,
1376,
12,
2434,
16,
2442,
4672,
468,
8264,
23935,
18,
756,
273,
2608,
67,
3645,
67,
2956,
12,
3464,
16,
315,
6400,
878,
29522,
7923,
309,
756,
353,
599,
30,
327,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2978,
67,
1376,
12,
2434,
16,
2442,
4672,
468,
8264,
23935,
18,
756,
273,
2608,
67,
3645,
67,
2956,
12,
3464,
16,
315,
6400,
878,
29522,
7923,
309,
756,
353,
599,
30,
327,
7... |
def trait_names(self, verbose=True, use_disk_cache=True): try: return self.__trait_names except AttributeError: import sage.misc.persist if use_disk_cache: try: self.__trait_names = sage.misc.persist.load(COMMANDS_CACHE) return self.__trait_names except IOError: pass if verbose: print "\nBuilding Axiom command completi... | def trait_names(self, verbose=True, use_disk_cache=True): try: return self.__trait_names except AttributeError: import sage.misc.persist if use_disk_cache: try: self.__trait_names = sage.misc.persist.load(COMMANDS_CACHE) return self.__trait_names except IOError: pass if verbose: print "\nBuilding Axiom command completi... | 6d26ee404de5ca55a472c0aa9236698863e1dee9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/6d26ee404de5ca55a472c0aa9236698863e1dee9/axiom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13517,
67,
1973,
12,
2890,
16,
3988,
33,
5510,
16,
999,
67,
10863,
67,
2493,
33,
5510,
4672,
775,
30,
327,
365,
16186,
22513,
67,
1973,
1335,
6394,
30,
1930,
272,
410,
18,
23667,
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,
13517,
67,
1973,
12,
2890,
16,
3988,
33,
5510,
16,
999,
67,
10863,
67,
2493,
33,
5510,
4672,
775,
30,
327,
365,
16186,
22513,
67,
1973,
1335,
6394,
30,
1930,
272,
410,
18,
23667,
18,
... | |
msg = 'Exception caught in send():' + str(e) + '\n' | msg = 'Exception caught in send(): %s' % str(e) | def send(self, text): '''This sends a string to the child process. ''' ### Add code so that an empty string will send an EOF. ### This emulates the symantics of Libes Expect. ### Hmmm... how do I send an EOF? ###C if ((m = write(pty, *buf, p - *buf)) < 0) ###C return (errno == EWOULDBLOCK) ? n : -1; | a6436229531e4cc3cceb58c0322f4ecc258e53d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/a6436229531e4cc3cceb58c0322f4ecc258e53d4/pexpect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
977,
4672,
9163,
2503,
9573,
279,
533,
358,
326,
1151,
1207,
18,
9163,
11849,
1436,
981,
1427,
716,
392,
1008,
533,
903,
1366,
392,
6431,
18,
11849,
1220,
801,
17099,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
977,
4672,
9163,
2503,
9573,
279,
533,
358,
326,
1151,
1207,
18,
9163,
11849,
1436,
981,
1427,
716,
392,
1008,
533,
903,
1366,
392,
6431,
18,
11849,
1220,
801,
17099,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.