rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if not swig_sources: | for source in sources: (base, ext) = os.path.splitext(source) if ext == ".i": new_sources.append(base + target_ext) swig_sources.append(source) swig_targets[source] = new_sources[-1] else: new_sources.append(source) if not swig_sources: return new_sources swig = self.find_swig() swig_cmd = [swig, "-python", "-ISWIG"]... | def swig_sources (self, sources): """Walk the list of source files in 'sources', looking for SWIG interface (.i) files. Run SWIG on all that are found, and return a modified 'sources' list with SWIG source files replaced by the generated C (or C++) files. """ new_sources = [] swig_sources = [] swig_targets = {} # X... | 792d215f022fc86e5b15c34c904b2f0ac7c51fb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/792d215f022fc86e5b15c34c904b2f0ac7c51fb7/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1352,
360,
67,
10141,
261,
2890,
16,
5550,
4672,
225,
3536,
9463,
326,
666,
434,
1084,
1390,
316,
296,
10141,
2187,
7849,
364,
16392,
3047,
1560,
261,
18,
77,
13,
1390,
18,
225,
1939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1352,
360,
67,
10141,
261,
2890,
16,
5550,
4672,
225,
3536,
9463,
326,
666,
434,
1084,
1390,
316,
296,
10141,
2187,
7849,
364,
16392,
3047,
1560,
261,
18,
77,
13,
1390,
18,
225,
1939,
... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 896) else quickfix.IntField.__init__(self, 896, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
10525,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
10525,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,... |
output = [s.event_name, str(s.strm_id), str(s.bytes_read), str(s.bytes_written)] | output = [s.event_name, str(s.strm_id), str(s.bytes_written), str(s.bytes_read)] | def stream_bw_event(self, s): output = [s.event_name, str(s.strm_id), str(s.bytes_read), str(s.bytes_written)] plog("DEBUG", " ".join(output)) if not s.strm_id in self.streams: plog("WARN", "BW event for unknown stream id: "+str(s.strm_id)) else: self.streams[s.strm_id].bytes_read += s.bytes_read self.streams[s.strm_id... | 11e3110fbb15cb6fa2284e788f706027d61f86e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3224/11e3110fbb15cb6fa2284e788f706027d61f86e9/PathSupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1407,
67,
70,
91,
67,
2575,
12,
2890,
16,
272,
4672,
876,
273,
306,
87,
18,
2575,
67,
529,
16,
609,
12,
87,
18,
701,
81,
67,
350,
3631,
609,
12,
87,
18,
3890,
67,
9748,
3631,
609... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1407,
67,
70,
91,
67,
2575,
12,
2890,
16,
272,
4672,
876,
273,
306,
87,
18,
2575,
67,
529,
16,
609,
12,
87,
18,
701,
81,
67,
350,
3631,
609,
12,
87,
18,
3890,
67,
9748,
3631,
609... |
positive integer $n$ such that $g^n = 1$. | positive integer $n$ such that $g^n = 1$, or +Infinity if no such integer exists. | def order(self): """ Return the order of this group element, which is the smallest positive integer $n$ such that $g^n = 1$. | 065765e298ccc1907599a7c932285299b2975238 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/065765e298ccc1907599a7c932285299b2975238/matrix_group_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
4672,
3536,
2000,
326,
1353,
434,
333,
1041,
930,
16,
1492,
353,
326,
13541,
6895,
3571,
271,
82,
8,
4123,
716,
271,
75,
66,
82,
273,
404,
8,
18,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
4672,
3536,
2000,
326,
1353,
434,
333,
1041,
930,
16,
1492,
353,
326,
13541,
6895,
3571,
271,
82,
8,
4123,
716,
271,
75,
66,
82,
273,
404,
8,
18,
2,
-100,
-100,
-100,... |
self._original_cell = self._indxr_input_cell | original_cell = self._indxr_input_cell | def _index(self): '''Actually do the autoindexing using the data prepared by the previous method.''' | 593ac857ce364f13af0bf573ec558dba451df672 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/593ac857ce364f13af0bf573ec558dba451df672/XDSIndexer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1615,
12,
2890,
4672,
9163,
2459,
3452,
741,
326,
2059,
885,
561,
310,
1450,
326,
501,
8208,
635,
326,
2416,
707,
1093,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1615,
12,
2890,
4672,
9163,
2459,
3452,
741,
326,
2059,
885,
561,
310,
1450,
326,
501,
8208,
635,
326,
2416,
707,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
queue = None sendDelay = 0 | _queue = None _queueEmptying = None | def irc_unknown(self, prefix, command, params): """Implement me!""" raise NotImplementedError | 5c7ccb39b148939a0f7b7f3aeb2619e173f82209 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/5c7ccb39b148939a0f7b7f3aeb2619e173f82209/irc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
1310,
67,
8172,
12,
2890,
16,
1633,
16,
1296,
16,
859,
4672,
3536,
5726,
1791,
5,
8395,
1002,
11206,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
1310,
67,
8172,
12,
2890,
16,
1633,
16,
1296,
16,
859,
4672,
3536,
5726,
1791,
5,
8395,
1002,
11206,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if parcel.displayName == 'Test': | if parcel.displayName == _('Test'): | def OnTest3 (self, event): for parcel in self.model.URLTree: """ Each parcel must have an attribute which is the displayName. """ assert (hasattr (parcel, 'displayName')) if parcel.displayName == 'Test': parcel.SynchronizeView () return | 20123d38704b5b225b766def44b0ab1c8a5a79da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/20123d38704b5b225b766def44b0ab1c8a5a79da/Application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4709,
23,
261,
2890,
16,
871,
4672,
364,
779,
2183,
316,
365,
18,
2284,
18,
1785,
2471,
30,
3536,
8315,
779,
2183,
1297,
1240,
392,
1566,
1492,
353,
326,
16218,
18,
3536,
1815,
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,
2755,
4709,
23,
261,
2890,
16,
871,
4672,
364,
779,
2183,
316,
365,
18,
2284,
18,
1785,
2471,
30,
3536,
8315,
779,
2183,
1297,
1240,
392,
1566,
1492,
353,
326,
16218,
18,
3536,
1815,
2... |
self.check_sizeof(float(0), h + 8) | self.check_sizeof(float(0), size(h + 'd')) | def method(): pass | 9cbed723c019f67adc5f76d1f21ed8d14c9df22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/9cbed723c019f67adc5f76d1f21ed8d14c9df22c/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
raise SkipTest( 'test is broken, relies on order of test execution and numeric ids') accepted = support.add_comment('Accepted Comment', node_id=3, | session = Session() nodes = session.query(Node).all() node = nodes[7] session.close() accepted = support.add_comment('Accepted Comment', node_id=node.id, | def test_moderation(support): raise SkipTest( 'test is broken, relies on order of test execution and numeric ids') accepted = support.add_comment('Accepted Comment', node_id=3, displayed=False) rejected = support.add_comment('Rejected comment', node_id=3, displayed=False) # Make sure the moderation_callback is called. ... | fd10895e5a3e5b2d5c80db0fb9d544607eb1ed5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/fd10895e5a3e5b2d5c80db0fb9d544607eb1ed5d/test_websupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1711,
7067,
12,
13261,
4672,
1339,
273,
3877,
1435,
2199,
273,
1339,
18,
2271,
12,
907,
2934,
454,
1435,
756,
273,
2199,
63,
27,
65,
1339,
18,
4412,
1435,
8494,
273,
2865,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1711,
7067,
12,
13261,
4672,
1339,
273,
3877,
1435,
2199,
273,
1339,
18,
2271,
12,
907,
2934,
454,
1435,
756,
273,
2199,
63,
27,
65,
1339,
18,
4412,
1435,
8494,
273,
2865,
18... |
except (SystemExit, KeyboardInterrupt): raise except: | except KeyError: | def _createItemsForParsed(self, parsed): # This is a HACK for Yahoo! search which doesn't provide # enclosures for entry in parsed['entries']: if 'enclosures' not in entry: try: url = entry['link'] except (SystemExit, KeyboardInterrupt): raise except: continue mimetype = filetypes.guess_mime_type(url) if mimetype is no... | d907ac681fe4e19428a72f31465787e3d8bd0863 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/d907ac681fe4e19428a72f31465787e3d8bd0863/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
3126,
1290,
11257,
12,
2890,
16,
2707,
4672,
468,
1220,
353,
279,
670,
3649,
364,
1624,
9795,
5161,
5,
1623,
1492,
3302,
1404,
5615,
468,
2446,
383,
8421,
364,
1241,
316,
2707... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2640,
3126,
1290,
11257,
12,
2890,
16,
2707,
4672,
468,
1220,
353,
279,
670,
3649,
364,
1624,
9795,
5161,
5,
1623,
1492,
3302,
1404,
5615,
468,
2446,
383,
8421,
364,
1241,
316,
2707... |
return handler.main(StringIO(message)) | ret = handler.main(StringIO(message)) self.db = handler.db return ret | def _handle_mail(self, message): handler = self.instance.MailGW(self.instance, self.db) handler.trapExceptions = 0 return handler.main(StringIO(message)) | 9667ad9adbe4135e6b6c3a5026d7157b4c3a4383 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/9667ad9adbe4135e6b6c3a5026d7157b4c3a4383/test_mailgw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
4408,
12,
2890,
16,
883,
4672,
1838,
273,
365,
18,
1336,
18,
6759,
30947,
12,
2890,
18,
1336,
16,
365,
18,
1966,
13,
1838,
18,
27170,
11416,
273,
374,
325,
273,
1838,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4110,
67,
4408,
12,
2890,
16,
883,
4672,
1838,
273,
365,
18,
1336,
18,
6759,
30947,
12,
2890,
18,
1336,
16,
365,
18,
1966,
13,
1838,
18,
27170,
11416,
273,
374,
325,
273,
1838,
... |
deps = tags = recurse = showTroveFlags = showAllTroves = True | deps = recurse = showTroveFlags = showAllTroves = True | def displayChangeSet(db, cs, troveSpecs, cfg, # trove options info = False, digSigs = False, deps = False, showBuildReqs = False, all = False, # file options ls = False, lsl = False, ids = False, sha1s = False, tags = False, fileDeps = False, fileVersions = False, # collection options showTroves = False, recurse = None... | 0bc435f0ac3ac18fa0c6982931c2e3c4b857b049 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/0bc435f0ac3ac18fa0c6982931c2e3c4b857b049/showchangeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
21565,
12,
1966,
16,
2873,
16,
23432,
537,
15999,
16,
2776,
16,
468,
23432,
537,
702,
1123,
273,
1083,
16,
3097,
8267,
87,
273,
1083,
16,
8740,
273,
1083,
16,
2405,
3116,
6113,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
21565,
12,
1966,
16,
2873,
16,
23432,
537,
15999,
16,
2776,
16,
468,
23432,
537,
702,
1123,
273,
1083,
16,
3097,
8267,
87,
273,
1083,
16,
8740,
273,
1083,
16,
2405,
3116,
6113,
8... |
return ( dObjects, iIndex ) | return ( dObjects, iIndex + 1 ) | def decodeDict( sStream, iIndex ): dObjects = {} iIndex += 1 while sStream[ iIndex ] != "e": uKey, iIndex = decode( sStream, iIndex ) uValue, iIndex = decode( sStream, iIndex ) dObjects[ uKey ] = uValue return ( dObjects, iIndex ) | 4f684f0312f071cbdff13f4cfbde4d033c0e3fc9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/4f684f0312f071cbdff13f4cfbde4d033c0e3fc9/DEncode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
5014,
12,
272,
1228,
16,
22696,
262,
30,
302,
4710,
273,
2618,
22696,
1011,
404,
1323,
272,
1228,
63,
22696,
308,
480,
315,
73,
6877,
582,
653,
16,
22696,
273,
2495,
12,
272,
122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
5014,
12,
272,
1228,
16,
22696,
262,
30,
302,
4710,
273,
2618,
22696,
1011,
404,
1323,
272,
1228,
63,
22696,
308,
480,
315,
73,
6877,
582,
653,
16,
22696,
273,
2495,
12,
272,
122... |
content.append(Choice()) | content.append(Choice(self)) | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) content = [] | 6d624a54ef4e80f277c247ef300c646e01f4568e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/6d624a54ef4e80f277c247ef300c646e01f4568e/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
913,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
913,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 694) else quickfix.IntField.__init__(self, 694, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
11290,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
11290,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,... |
if profilename == "": | profilename = profilename.strip() if not profilename: | def write_script_ent(prof, script): if not self.config.has_option(prof, script): self.config.set(prof, script, None) | 3feadb9a3890ec19aa11c2e19ce093f7039feeda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/3feadb9a3890ec19aa11c2e19ce093f7039feeda/wicd-daemon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4263,
67,
319,
12,
16121,
16,
2728,
4672,
309,
486,
365,
18,
1425,
18,
5332,
67,
3482,
12,
16121,
16,
2728,
4672,
365,
18,
1425,
18,
542,
12,
16121,
16,
2728,
16,
599,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4263,
67,
319,
12,
16121,
16,
2728,
4672,
309,
486,
365,
18,
1425,
18,
5332,
67,
3482,
12,
16121,
16,
2728,
4672,
365,
18,
1425,
18,
542,
12,
16121,
16,
2728,
16,
599,
13,
... |
try: CopyLog(logfile, log) except: pass log.write(separator) | for line in open(logfile, 'r'): log.write(line) else: log.write("chandler.log [%s] not found\n" % logfile) log.write(separator) | def dumpTestLogs(log, logfile): if logfile: log.write("chandler.log: [%s]\n" % logfile) try: CopyLog(logfile, log) except: pass log.write(separator) | 18b5a7cc16e1be8fff4b3db47ea67852322bf85b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/18b5a7cc16e1be8fff4b3db47ea67852322bf85b/newchandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
4709,
7777,
12,
1330,
16,
15204,
4672,
309,
15204,
30,
613,
18,
2626,
2932,
343,
464,
749,
18,
1330,
30,
9799,
87,
13944,
82,
6,
738,
15204,
13,
364,
980,
316,
1696,
12,
28806,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
4709,
7777,
12,
1330,
16,
15204,
4672,
309,
15204,
30,
613,
18,
2626,
2932,
343,
464,
749,
18,
1330,
30,
9799,
87,
13944,
82,
6,
738,
15204,
13,
364,
980,
316,
1696,
12,
28806,
... |
""" | """ | def flimage_jpeg_options(pImageJpegOption): """ flimage_jpeg_options(pImageJpegOption) """ _flimage_jpeg_options(pImageJpegOption) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
14423,
67,
2116,
12,
84,
2040,
46,
9001,
1895,
4672,
3536,
1183,
2730,
67,
14423,
67,
2116,
12,
84,
2040,
46,
9001,
1895,
13,
3536,
225,
389,
2242,
2730,
67,
14423,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
14423,
67,
2116,
12,
84,
2040,
46,
9001,
1895,
4672,
3536,
1183,
2730,
67,
14423,
67,
2116,
12,
84,
2040,
46,
9001,
1895,
13,
3536,
225,
389,
2242,
2730,
67,
14423,
67,... |
if 'CPUConsumed' == name and value > lastCPUTime: lastCPUTime = value if 'WallClockTime' == name and value > lastWallTime: lastWallTime = value | if 'CPUConsumed' == name: try: value = int( float( value ) ) if value > lastCPUTime: lastCPUTime = value except: pass if 'WallClockTime' == name: try: value = int( float( value ) ) if value > lastWallTime: lastWallTime = value except: pass | def sendAccounting( self, jobID ): """Send WMS accounting data for the given job """ | 0aa7925d5cd233676fbaf63b5dc6b9d2579f5b78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0aa7925d5cd233676fbaf63b5dc6b9d2579f5b78/StalledJobAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
3032,
310,
12,
365,
16,
28913,
262,
30,
3536,
3826,
678,
3537,
2236,
310,
501,
364,
326,
864,
1719,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
3032,
310,
12,
365,
16,
28913,
262,
30,
3536,
3826,
678,
3537,
2236,
310,
501,
364,
326,
864,
1719,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.tipsR = [ex.name for ex in data] self.rowCategories = [(ex.name, ex[-1].native()) for ex in data] | if not hasNameAttribute: self.tipsR = [ex['text'].value[:20] for ex in data] self.rowCategories = [(ex['text'].value[:20], ex[-1].native()) for ex in data] else: self.tipsR = [ex.name for ex in data] self.rowCategories = [(ex.name, ex[-1].native()) for ex in data] | def updateTables(self): if self.textData: if textCorpusModul: data = (self.attrRow == 'document' and [self.data] or [CategoryDocument(self.data).dataCD])[0] else: data = self.data metas = data.domain.getmetas() lenMetas = len(metas) caList = [] for ex in data: cur = [0] * lenMetas for i, m in zip(range(lenMetas), metas... | b63a63ff8ff51961066e2dd9046a5f670eabd2b6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/b63a63ff8ff51961066e2dd9046a5f670eabd2b6/OWCorrAnalysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
6905,
12,
2890,
4672,
309,
365,
18,
955,
751,
30,
309,
977,
6217,
9861,
1739,
332,
30,
501,
273,
261,
2890,
18,
1747,
1999,
422,
296,
5457,
11,
471,
306,
2890,
18,
892,
65,
578... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
6905,
12,
2890,
4672,
309,
365,
18,
955,
751,
30,
309,
977,
6217,
9861,
1739,
332,
30,
501,
273,
261,
2890,
18,
1747,
1999,
422,
296,
5457,
11,
471,
306,
2890,
18,
892,
65,
578... |
def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ | def get_valueOf_(self): return self.valueOf_ | 9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1132,
951,
67,
12,
2890,
4672,
327,
365,
18,
1132,
951,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1132,
951,
67,
12,
2890,
4672,
327,
365,
18,
1132,
951,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
sage: q.time() | sage: q.time() | def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ i = out.find('FACTORS:') if i == -1: return [], ''... | 789f3da181b973e90eeb134c2b3ae867a96b6654 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/789f3da181b973e90eeb134c2b3ae867a96b6654/qsieve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434... |
return fields[0]+localeconv()['decimal_point']+fields[1] | res = fields[0]+localeconv()['decimal_point']+fields[1] | def format(f,val,grouping=0): """Formats a value in the same way that the % formatting would use, but takes the current locale into account. Grouping is applied if the third parameter is true.""" result = f % val fields = string.split(result, ".") if grouping: fields[0]=_group(fields[0]) if len(fields)==2: return field... | db786876b6c5ab24c1cd7427fd077545dbb72fee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/db786876b6c5ab24c1cd7427fd077545dbb72fee/locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
74,
16,
1125,
16,
25592,
33,
20,
4672,
3536,
8976,
279,
460,
316,
326,
1967,
4031,
716,
326,
738,
10407,
4102,
999,
16,
1496,
5530,
326,
783,
2573,
1368,
2236,
18,
3756,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
74,
16,
1125,
16,
25592,
33,
20,
4672,
3536,
8976,
279,
460,
316,
326,
1967,
4031,
716,
326,
738,
10407,
4102,
999,
16,
1496,
5530,
326,
783,
2573,
1368,
2236,
18,
3756,
310,
... |
path = line.split('\t')[-1] time = line.split('\t')[0] type = line.split('\t')[1] ifo = line.split('\t')[2] qscanList.append([path,time,type,ifo]) | path_output = line.split('\t')[-1] time_output = line.split('\t')[0] type_output = line.split('\t')[1] ifo_output = line.split('\t')[2] qscanList.append([path_output,time_output,type_output,ifo_output]) | def getPathFromCache(fileName,type,ifo=None,time=None): qscanList = [] cacheList = listFromFile(fileName) if len(cacheList) == 0: return qscanList for line in cacheList: test_line = True if not re.search(type,line.split('\t')[1]): test_line = False if ifo: if not ifo == line.split('\t')[2]: test_line = False else: pass... | cf9b1c0ecf255e4ecd5c171e017afe344d76c1fc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/cf9b1c0ecf255e4ecd5c171e017afe344d76c1fc/fu_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4339,
19800,
12,
17812,
16,
723,
16,
20299,
33,
7036,
16,
957,
33,
7036,
4672,
1043,
9871,
682,
273,
5378,
1247,
682,
273,
666,
13087,
12,
17812,
13,
309,
562,
12,
2493,
682,
13,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4339,
19800,
12,
17812,
16,
723,
16,
20299,
33,
7036,
16,
957,
33,
7036,
4672,
1043,
9871,
682,
273,
5378,
1247,
682,
273,
666,
13087,
12,
17812,
13,
309,
562,
12,
2493,
682,
13,
422,
... |
if not dir: self.dir = [os.getcwd()] | self.dir = [os.getcwd()]+dir | def __init__(self, tools=[], dir=[]): | c6118951fa4e3b9a7e8d33b2a9b5074cdd427304 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6794/c6118951fa4e3b9a7e8d33b2a9b5074cdd427304/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8513,
22850,
6487,
1577,
33,
8526,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8513,
22850,
6487,
1577,
33,
8526,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if type(info[key]) is unicode: | if isinstance(info[key], str): | def get_info(self, encoding, errors): """Return the TarInfo's attributes as a dictionary. """ info = { "name": normpath(self.name), "mode": self.mode & 07777, "uid": self.uid, "gid": self.gid, "size": self.size, "mtime": self.mtime, "chksum": self.chksum, "type": self.type, "linkname": no... | bac5eebcc791669601dcaf151d7a3f96c89c4133 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/bac5eebcc791669601dcaf151d7a3f96c89c4133/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
2890,
16,
2688,
16,
1334,
4672,
3536,
990,
326,
20334,
966,
1807,
1677,
487,
279,
3880,
18,
3536,
1123,
273,
288,
315,
529,
6877,
377,
20446,
12,
2890,
18,
529,
3631... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1376,
12,
2890,
16,
2688,
16,
1334,
4672,
3536,
990,
326,
20334,
966,
1807,
1677,
487,
279,
3880,
18,
3536,
1123,
273,
288,
315,
529,
6877,
377,
20446,
12,
2890,
18,
529,
3631... |
class FdfParser : | class FdfParser: | def __init__(self, filename): try: fsock = open(filename, "rb", 0) try: self.FileLinesList = [] self.FileLinesList = fsock.readlines() finally: fsock.close() | 2f743f829e2c9e634d3e62f83c6af106a22f6583 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/2f743f829e2c9e634d3e62f83c6af106a22f6583/FdfParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
4672,
775,
30,
2662,
975,
273,
1696,
12,
3459,
16,
315,
6731,
3113,
374,
13,
775,
30,
365,
18,
812,
5763,
682,
273,
5378,
365,
18,
812,
5763,
682... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1544,
4672,
775,
30,
2662,
975,
273,
1696,
12,
3459,
16,
315,
6731,
3113,
374,
13,
775,
30,
365,
18,
812,
5763,
682,
273,
5378,
365,
18,
812,
5763,
682... |
a = splitnewlines(a, keepends=True) | a = splitnewlines(a) | def unidiff(a, ad, b, bd, fn, r=None, text=False, showfunc=False, ignorews=False): if not a and not b: return "" epoch = util.datestr((0, 0)) if not text and (util.binary(a) or util.binary(b)): l = ['Binary file %s has changed\n' % fn] elif not a: b = splitnewlines(b, keepends=True) if a is None: l1 = "--- %s\t%s\n" ... | e99d580fc3edff0d8d094225a948cd03287d7622 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/e99d580fc3edff0d8d094225a948cd03287d7622/mdiff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
350,
3048,
12,
69,
16,
1261,
16,
324,
16,
13837,
16,
2295,
16,
436,
33,
7036,
16,
977,
33,
8381,
16,
2405,
644,
33,
8381,
16,
2305,
4749,
33,
8381,
4672,
225,
309,
486,
279,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
350,
3048,
12,
69,
16,
1261,
16,
324,
16,
13837,
16,
2295,
16,
436,
33,
7036,
16,
977,
33,
8381,
16,
2405,
644,
33,
8381,
16,
2305,
4749,
33,
8381,
4672,
225,
309,
486,
279,
4... |
memcache.add('show_user:%s' % email, ret, cache_timeout) | ret = ('<a href="/user/%(key)s" onMouseOver="M_showUserInfoPopup(this)">' '%(key)s</a>' % {'key': cgi.escape(user_key)}) memcache.add('show_user:%s' % email, ret, 300) | def show_user(email, arg=None, autoescape=None, memcache_results=None): """Render a link to the user's dashboard, with text being the nickname.""" if isinstance(email, users.User): email = email.email() if not arg: user = users.get_current_user() if user is not None and email == user.email(): return 'me' ret = None if... | 19b3d737ff7c4d7ae891275966d796d7506780f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/476/19b3d737ff7c4d7ae891275966d796d7506780f7/library.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
1355,
12,
3652,
16,
1501,
33,
7036,
16,
3656,
6939,
33,
7036,
16,
20549,
67,
4717,
33,
7036,
4672,
3536,
3420,
279,
1692,
358,
326,
729,
1807,
11825,
16,
598,
977,
3832,
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,
2405,
67,
1355,
12,
3652,
16,
1501,
33,
7036,
16,
3656,
6939,
33,
7036,
16,
20549,
67,
4717,
33,
7036,
4672,
3536,
3420,
279,
1692,
358,
326,
729,
1807,
11825,
16,
598,
977,
3832,
326,... |
return obj.find(cr,uid) | return obj.find(cr,uid,exception=False) | def _calc_context(key,obj): if key==0: return obj.find(cr,uid) else: obj_key=obj.browse(cr,uid,obj.find(cr,uid)) if isinstance(obj_key,list): obj_key=obj_key[0] key_ids=obj.search(cr,uid,[('date_stop','<',obj_key.date_start)]) if len(key_ids)<abs(key): return False return key_ids[key] | e5ca26aa41487d8878e798f2fd30f8421c9802bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/e5ca26aa41487d8878e798f2fd30f8421c9802bc/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12448,
67,
2472,
12,
856,
16,
2603,
4672,
309,
498,
631,
20,
30,
327,
1081,
18,
4720,
12,
3353,
16,
1911,
16,
4064,
33,
8381,
13,
469,
30,
1081,
67,
856,
33,
2603,
18,
25731,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12448,
67,
2472,
12,
856,
16,
2603,
4672,
309,
498,
631,
20,
30,
327,
1081,
18,
4720,
12,
3353,
16,
1911,
16,
4064,
33,
8381,
13,
469,
30,
1081,
67,
856,
33,
2603,
18,
25731,
... |
if self.type() == 'module': | elif self.type() == 'module': | def _sage_(self, R=None): """ Coerces self to SAGE. """ if self.type()=='poly': return self.sage_poly(R) if self.type() == 'module': return self.sage_matrix(R,sparse=True) if self.type() == 'matrix': return self.sage_matrix(R,sparse=False) if self.type() == 'list': return [ f._sage_(R) for f in self ] | d4e7b9609291ed79acc2fd37bcca0aec4fe0cc71 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d4e7b9609291ed79acc2fd37bcca0aec4fe0cc71/singular.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
87,
410,
67,
12,
2890,
16,
534,
33,
7036,
4672,
3536,
7695,
264,
764,
365,
358,
348,
2833,
18,
3536,
309,
365,
18,
723,
1435,
18920,
16353,
4278,
327,
365,
18,
87,
410,
67,
1635... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
87,
410,
67,
12,
2890,
16,
534,
33,
7036,
4672,
3536,
7695,
264,
764,
365,
358,
348,
2833,
18,
3536,
309,
365,
18,
723,
1435,
18920,
16353,
4278,
327,
365,
18,
87,
410,
67,
1635... |
session = request.get('SESSION', None) | session = request.get('SESSION', {}) | def __call__(self): context = aq_inner(self.context) request = aq_inner(self.request) session = request.get('SESSION', None) # use self.rootpath or rootpath in request or session to change browser root self.rootpath = request.get('rootpath', self.rootpath) # use self.browse=False (or browse=False in request) to disall... | bcf41b5563214235a1cdabba6fb6e60243487091 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/bcf41b5563214235a1cdabba6fb6e60243487091/finder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
225,
819,
273,
279,
85,
67,
7872,
12,
2890,
18,
2472,
13,
590,
273,
279,
85,
67,
7872,
12,
2890,
18,
2293,
13,
1339,
273,
590,
18,
588,
2668,
7042,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
225,
819,
273,
279,
85,
67,
7872,
12,
2890,
18,
2472,
13,
590,
273,
279,
85,
67,
7872,
12,
2890,
18,
2293,
13,
1339,
273,
590,
18,
588,
2668,
7042,
... |
def show(self): | def show(self, color=None): if not self.__master: from Tkinter import Tk self.__master = Tk() | def show(self): if not self.__pw: self.__pw, self.__sb = \ Main.build(master = self.__master, initialcolor = self.__initialcolor, initfile = self.__initfile, ignore = self.__ignore) Main.run(self.__pw, self.__sb) rgbtuple = self.__sb.current_rgb() self.__pw.withdraw() # check to see if the cancel button was pushed if s... | ee22b4b2157dec6c104cfea17f304073fb74fd5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ee22b4b2157dec6c104cfea17f304073fb74fd5a/pyColorChooser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
2036,
33,
7036,
4672,
309,
486,
365,
16186,
7525,
30,
628,
399,
79,
2761,
1930,
399,
79,
365,
16186,
7525,
273,
399,
79,
1435,
309,
486,
365,
16186,
14921,
30,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
2036,
33,
7036,
4672,
309,
486,
365,
16186,
7525,
30,
628,
399,
79,
2761,
1930,
399,
79,
365,
16186,
7525,
273,
399,
79,
1435,
309,
486,
365,
16186,
14921,
30,
365,... |
self.call(["/sbin/restorecon", "-l", "-v", "-r", "-F", "-e", "/proc", "-e", "/sys", "-e", "/dev", "-e", "/selinux", "/"]) | self.call(["/sbin/restorecon", "-l", "-r", "-F", "-e", "/proc", "-e", "/sys", "-e", "/dev", "-e", "/selinux", "/"]) | def relabel(self, ksselinux): # touch some files which get unhappy if they're not labeled correctly for fn in ("/etc/modprobe.conf", "/etc/resolv.conf"): path = self.path(fn) f = file(path, "w+") os.chmod(path, 0644) f.close() | e08034c7738a22edaddbdddf3f8d63991cafb2b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9342/e08034c7738a22edaddbdddf3f8d63991cafb2b6/kickstart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1279,
873,
12,
2890,
16,
417,
1049,
292,
9534,
4672,
468,
6920,
2690,
1390,
1492,
336,
640,
76,
438,
2074,
309,
2898,
4565,
486,
23585,
8783,
364,
2295,
316,
7566,
19,
14175,
19,
1711,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1279,
873,
12,
2890,
16,
417,
1049,
292,
9534,
4672,
468,
6920,
2690,
1390,
1492,
336,
640,
76,
438,
2074,
309,
2898,
4565,
486,
23585,
8783,
364,
2295,
316,
7566,
19,
14175,
19,
1711,
... |
], CONTEXT) | ], 0, None, None, CONTEXT) | def test0030float(self): ''' Test Float. ''' float1_id = self.float.create({ 'float': 1.1, }, CONTEXT) self.assert_(float1_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,
5082,
5659,
12,
2890,
4672,
9163,
7766,
5450,
18,
9163,
1431,
21,
67,
350,
273,
365,
18,
5659,
18,
2640,
12590,
296,
5659,
4278,
404,
18,
21,
16,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
5082,
5659,
12,
2890,
4672,
9163,
7766,
5450,
18,
9163,
1431,
21,
67,
350,
273,
365,
18,
5659,
18,
2640,
12590,
296,
5659,
4278,
404,
18,
21,
16,
19879,
13862,
13,
365,
18,
... |
filename = open_file() | filename = save_file() | def _new_data_file_event_fired(self): filename = open_file() if filename != '': try: f=open(filename, 'w') self.data_file = filename self.all_data=DATA_STRING f.close() except: pass | e900edb0d9e70ce8b13711213f6436bcfca62735 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1832/e900edb0d9e70ce8b13711213f6436bcfca62735/yasso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2704,
67,
892,
67,
768,
67,
2575,
67,
74,
2921,
12,
2890,
4672,
1544,
273,
1923,
67,
768,
1435,
309,
1544,
480,
875,
30,
775,
30,
284,
33,
3190,
12,
3459,
16,
296,
91,
6134,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2704,
67,
892,
67,
768,
67,
2575,
67,
74,
2921,
12,
2890,
4672,
1544,
273,
1923,
67,
768,
1435,
309,
1544,
480,
875,
30,
775,
30,
284,
33,
3190,
12,
3459,
16,
296,
91,
6134,
3... |
pass | try: return self.stream.write(s.encode('utf8')) except: pass | def log(self,message): s=u'\r\n'+self.getPrefix()+DamnUnicode(message.strip()) try: print s, except: try: print s.encode('utf8'), except: print 'Cannot echo log string; invalid characters and/or non-tolerant output?' if self.stream is not None: try: return self.stream.write(s) except: pass | 0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
16,
2150,
4672,
272,
33,
89,
8314,
86,
64,
82,
11,
15,
2890,
18,
588,
2244,
1435,
15,
40,
301,
82,
16532,
12,
2150,
18,
6406,
10756,
775,
30,
1172,
272,
16,
1335,
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,
613,
12,
2890,
16,
2150,
4672,
272,
33,
89,
8314,
86,
64,
82,
11,
15,
2890,
18,
588,
2244,
1435,
15,
40,
301,
82,
16532,
12,
2150,
18,
6406,
10756,
775,
30,
1172,
272,
16,
1335,
30... |
@type {param}: L{Param} | @type param: L{Param} | def remove_shared_descr_param(self, param): """ Remove a parameter from the list of C{Param}s that share the description given by this parameter. @type {param}: L{Param} @see: L{shared_descr_params} """ self._shared_descr_params.remove(param) param._listed_under = None | 51eb4ba3b8382947fd5b6d33919cb02ce1327f88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/51eb4ba3b8382947fd5b6d33919cb02ce1327f88/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
11574,
67,
28313,
67,
891,
12,
2890,
16,
579,
4672,
3536,
3581,
279,
1569,
628,
326,
666,
434,
385,
95,
786,
97,
87,
716,
7433,
326,
2477,
864,
635,
333,
1569,
18,
632,
723... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
11574,
67,
28313,
67,
891,
12,
2890,
16,
579,
4672,
3536,
3581,
279,
1569,
628,
326,
666,
434,
385,
95,
786,
97,
87,
716,
7433,
326,
2477,
864,
635,
333,
1569,
18,
632,
723... |
domain="[('type', '!=', 'view'), ('company', '=', company)]", | domain="[('type.code', '!=', 'view'), ('company', '=', company)]", | def __init__(self): super(Column, self).__init__() self._order.insert(0, ('sequence', 'ASC')) | f654c6ff36c2fee5d645f7e7bd89af9bdfbbbd53 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/f654c6ff36c2fee5d645f7e7bd89af9bdfbbbd53/journal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
1494,
16,
365,
2934,
972,
2738,
972,
1435,
365,
6315,
1019,
18,
6387,
12,
20,
16,
7707,
6178,
2187,
296,
8633,
26112,
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,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
1494,
16,
365,
2934,
972,
2738,
972,
1435,
365,
6315,
1019,
18,
6387,
12,
20,
16,
7707,
6178,
2187,
296,
8633,
26112,
2,
-100,
-100,
-100,
-1... |
if (v.value not in val_set and | if (v.value not in (None, UNKNOWN) and v.value not in val_set and | def contained_valdocs(*root): "Does not include imports" val_queue = list(root) val_set = Set(root) while val_queue: val_doc = val_queue.pop() val_set.add(val_doc) val_queue.extend([v.value for v in val_doc.vardoc_links() if (v.value not in val_set and v.is_imported != True)]) return val_set | 4619052b1d29098e6bf58e8d04232bb5ce28f306 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/4619052b1d29098e6bf58e8d04232bb5ce28f306/apidoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7542,
67,
1125,
8532,
30857,
3085,
4672,
315,
10154,
486,
2341,
10095,
6,
1244,
67,
4000,
273,
666,
12,
3085,
13,
1244,
67,
542,
273,
1000,
12,
3085,
13,
1323,
1244,
67,
4000,
30,
1244... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7542,
67,
1125,
8532,
30857,
3085,
4672,
315,
10154,
486,
2341,
10095,
6,
1244,
67,
4000,
273,
666,
12,
3085,
13,
1244,
67,
542,
273,
1000,
12,
3085,
13,
1323,
1244,
67,
4000,
30,
1244... |
TargetAdd('p3dpython.exe', input='p3dpython_p3dpython_composite1.obj') TargetAdd('p3dpython.exe', input='p3dpython_p3dPythonMain.obj') TargetAdd('p3dpython.exe', input=COMMON_PANDA_LIBS) TargetAdd('p3dpython.exe', opts=['PYTHON', 'TINYXML', 'WINUSER']) | TargetAdd('p3dpythonw.exe', input='p3dpython_p3dpython_composite1.obj') TargetAdd('p3dpythonw.exe', input='p3dpython_p3dPythonMain.obj') TargetAdd('p3dpythonw.exe', input=COMMON_PANDA_LIBS) TargetAdd('p3dpythonw.exe', opts=['PYTHON', 'TINYXML', 'WINUSER']) | pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n" | 6135b2910a6aadb89e843456eae6dda0ebc8b353 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/6135b2910a6aadb89e843456eae6dda0ebc8b353/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
293,
464,
842,
722,
67,
76,
1011,
1548,
82,
7,
318,
536,
225,
453,
4307,
37,
67,
3932,
1653,
39,
6365,
67,
5757,
64,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
True returns a dictionary keyed by node labels | True returns a dictionary keyed by vertex labels | def cliques_number_of(self, nodes=None, cliques=None, with_labels=False): """ Returns a list of the number of maximal cliques containing each node. (Returns a single value if only one input node). Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an undirected graph. (See e... | a520fa15cff86fbbd1335f8b6f9d36203c74d574 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a520fa15cff86fbbd1335f8b6f9d36203c74d574/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
2696,
67,
792,
12,
2890,
16,
2199,
33,
7036,
16,
4942,
29896,
33,
7036,
16,
598,
67,
5336,
33,
8381,
4672,
3536,
2860,
279,
666,
434,
326,
1300,
434,
943,
2840,
4942,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
2696,
67,
792,
12,
2890,
16,
2199,
33,
7036,
16,
4942,
29896,
33,
7036,
16,
598,
67,
5336,
33,
8381,
4672,
3536,
2860,
279,
666,
434,
326,
1300,
434,
943,
2840,
4942,
... |
mi.title = os.path.splitext(os.path.basename(htmlfile))[0] | if htmlfile: mi.title = os.path.splitext(os.path.basename(htmlfile))[0] else: mi.title = _('Unknown') | def merge_metadata(htmlfile, opf, opts): ''' Merge metadata from various sources. ''' if opf: mi = MetaInformation(opf) elif htmlfile: try: mi = get_metadata(open(htmlfile, 'rb'), 'html') except: mi = MetaInformation(None, None) if opts.from_opf is not None and os.access(opts.from_opf, os.R_OK): mi.smart_update(OPF(o... | e4387cf30819ed9b174e71359dc1919aa7872624 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/e4387cf30819ed9b174e71359dc1919aa7872624/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
4165,
12,
2620,
768,
16,
1061,
74,
16,
1500,
4672,
9163,
8964,
1982,
628,
11191,
5550,
18,
9163,
309,
1061,
74,
30,
12837,
273,
6565,
5369,
12,
556,
74,
13,
1327,
1729,
768,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
4165,
12,
2620,
768,
16,
1061,
74,
16,
1500,
4672,
9163,
8964,
1982,
628,
11191,
5550,
18,
9163,
309,
1061,
74,
30,
12837,
273,
6565,
5369,
12,
556,
74,
13,
1327,
1729,
768,
... |
return Factorization([(p,-e) for p,e in self], cr=self._cr()) | """ Return the formal inverse of the factors in the factorization. EXAMPLES: sage: F = factor(2006); F 2 * 17 * 59 sage: F^-1 2^-1 * 17^-1 * 59^-1 sage: R.<x,y> = FreeAlgebra(QQ, 2) sage: F = Factorization([(x,3), (y, 2), (x,1)], 2); F (2) * x^3 * y^2 * x sage: F^-1 (1/2) * x^-1 * y^-2 * x^-3 """ return Factorization... | def __invert__(self): return Factorization([(p,-e) for p,e in self], cr=self._cr()) | 7b30ddb30ae1a435bd7243058fc57880a92701a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b30ddb30ae1a435bd7243058fc57880a92701a4/factorization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
267,
1097,
972,
12,
2890,
4672,
327,
26400,
1588,
3816,
12,
84,
16,
17,
73,
13,
364,
293,
16,
73,
316,
365,
6487,
4422,
33,
2890,
6315,
3353,
10756,
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,
267,
1097,
972,
12,
2890,
4672,
327,
26400,
1588,
3816,
12,
84,
16,
17,
73,
13,
364,
293,
16,
73,
316,
365,
6487,
4422,
33,
2890,
6315,
3353,
10756,
2,
-100,
-100,
-100,
-100,
... |
tag_re = re.compile('(<.*?>)', re.DOTALL) | tag_re = re.compile(r'(<>|<[^!].*?>|<!\[CDATA\[|\]\]>)', re.DOTALL | re.MULTILINE) | def get_words(s): return set([ word for word in lower(unicode(strip_tags_re.sub('', unicode(s))) ).translate(punct_map).split() if word not in stop_words]) | 6d70cee8d6a96a1a832c46035c213430e3cca9a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10695/6d70cee8d6a96a1a832c46035c213430e3cca9a4/normalize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3753,
12,
87,
4672,
327,
444,
3816,
2076,
364,
2076,
316,
2612,
12,
9124,
12,
6406,
67,
4156,
67,
266,
18,
1717,
2668,
2187,
5252,
12,
87,
20349,
262,
18,
13929,
12,
84,
693... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3753,
12,
87,
4672,
327,
444,
3816,
2076,
364,
2076,
316,
2612,
12,
9124,
12,
6406,
67,
4156,
67,
266,
18,
1717,
2668,
2187,
5252,
12,
87,
20349,
262,
18,
13929,
12,
84,
693... |
cfm4 = v*ach*(4./50)**n | cfm4 = v*ach/60*(4./50)**n | def ach_to_ela(ach): v = 2016*10 # volume n = 0.67 cfm4 = v*ach*(4./50)**n cmps = cfm4/35.3147/60 # cubic meters per second at 4 Pa # leakage area, sq meters, assume discharge coefficient is 1 sm = cmps * sqrt(1.2/2/4)/1 ela = sm * (100/2.54)**2 return ela | 47f9d218b4515e737e128196b242438ab452f2d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12160/47f9d218b4515e737e128196b242438ab452f2d6/gensim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
279,
343,
67,
869,
67,
292,
69,
12,
497,
4672,
331,
273,
12659,
14,
2163,
468,
3940,
290,
273,
374,
18,
9599,
6080,
81,
24,
273,
331,
14,
497,
19,
4848,
21556,
24,
18,
19,
3361,
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,
279,
343,
67,
869,
67,
292,
69,
12,
497,
4672,
331,
273,
12659,
14,
2163,
468,
3940,
290,
273,
374,
18,
9599,
6080,
81,
24,
273,
331,
14,
497,
19,
4848,
21556,
24,
18,
19,
3361,
13... |
""" for mem in self._chain: | This is guaranteed to be adjusted by every link in the chain. @param data: data is a tuple--refer to the callback chain documentation for what it might hold @type data: tuple of stuff @returns: the transformed tuple @rtype: varies """ chain = self.__getchain__() for mem in chain: | def executeTransform(self, data): """ Executes a callback chain on a given piece of data. This data could be a string or an object. Consult the documentation for the specific callback chain you're executing. | cf7a64bc603b16ba3481a3e7713cb93b6cbe9c56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/cf7a64bc603b16ba3481a3e7713cb93b6cbe9c56/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
4059,
12,
2890,
16,
501,
4672,
3536,
3889,
993,
279,
1348,
2687,
603,
279,
864,
11151,
434,
501,
18,
225,
1220,
501,
3377,
506,
279,
533,
578,
392,
733,
18,
225,
11020,
406,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
4059,
12,
2890,
16,
501,
4672,
3536,
3889,
993,
279,
1348,
2687,
603,
279,
864,
11151,
434,
501,
18,
225,
1220,
501,
3377,
506,
279,
533,
578,
392,
733,
18,
225,
11020,
406,
326,... |
incr.y = xi + 0.5 incr.x = xj + 0.5 | dsect.y = xi dsect.x = xj | def getcd(isprobe, akey): # get course and distance irowq=game.quadrant.x; icolq=game.quadrant.y; key=0 navmode = "unspecified" itemp = "curt" incr = coord() iprompt = False # Get course direction and distance. If user types bad values, return # with DIREC = -1.0. game.direc = -1.0 if game.landed and not isprobe: pro... | b1c9c5334f08ac7846e441ce750b7e9ad119b37d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/b1c9c5334f08ac7846e441ce750b7e9ad119b37d/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4315,
12,
291,
27230,
16,
279,
856,
4672,
468,
336,
4362,
471,
3888,
277,
492,
85,
33,
13957,
18,
21733,
6890,
18,
92,
31,
277,
1293,
85,
33,
13957,
18,
21733,
6890,
18,
93,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4315,
12,
291,
27230,
16,
279,
856,
4672,
468,
336,
4362,
471,
3888,
277,
492,
85,
33,
13957,
18,
21733,
6890,
18,
92,
31,
277,
1293,
85,
33,
13957,
18,
21733,
6890,
18,
93,
31,... |
sage: q | sage: q | def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ i = out.find('FACTORS:') if i == -1: return [], ''... | 3daadd3d4571d1c2bd81a25e15749b148b7c0bc6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/3daadd3d4571d1c2bd81a25e15749b148b7c0bc6/qsieve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434... |
raise Socks5AuthError,((3,_socks5autherrors[3])) | raise Socks5AuthError((3,_socks5autherrors[3])) | def __negotiatesocks5(self,destaddr,destport): """__negotiatesocks5(self,destaddr,destport) Negotiates a connection through a SOCKS5 server. """ # First we'll send the authentication packages we support. if (self.__proxy[4]!=None) and (self.__proxy[5]!=None): # The username/password details were supplied to the # setpr... | b2ddf409815564ff2aef6a6dcddee52f011d5b06 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9386/b2ddf409815564ff2aef6a6dcddee52f011d5b06/socks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
4672,
3536,
972,
14518,
352,
16020,
20641,
25,
12,
2890,
16,
10488,
4793,
16,
10488,
655,
13,
423,
27445,
1... |
exp.add(sw) | exp.add_widget(sw, False) | def main(klass): w = gtk.Window() vbox = gtk.VBox() sw = gtk.ScrolledWindow() sw.add(gtk.TextView()) sw.set_size_request(400, 400) exp = klass("miao") exp.add(sw) vbox.pack_start(exp, False, False) sw = gtk.ScrolledWindow() sw.add(gtk.TextView()) exp = klass("miao") exp.add(sw) vbox.pack_start(exp) vbox.pack_star... | da768c9b8873665bf193190ab828897badf72809 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11468/da768c9b8873665bf193190ab828897badf72809/Expander.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
22626,
4672,
341,
273,
22718,
18,
3829,
1435,
331,
2147,
273,
22718,
18,
58,
3514,
1435,
225,
1352,
273,
22718,
18,
1541,
25054,
3829,
1435,
1352,
18,
1289,
12,
4521,
79,
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,
2774,
12,
22626,
4672,
341,
273,
22718,
18,
3829,
1435,
331,
2147,
273,
22718,
18,
58,
3514,
1435,
225,
1352,
273,
22718,
18,
1541,
25054,
3829,
1435,
1352,
18,
1289,
12,
4521,
79,
18,
... |
for source in acl_tool.getSources(): if not isinstance(source, plugLDAPUserFolder): continue acl_folder = source.getUserFolder() individual_users = source.getUsersRoles(acl_folder).keys() | for source_id in self.sources.keys(): source = self.sources[source_id]['source'] individual_users = self.sources[source_id]['user_roles'].keys() | def get_users(self): if not hasattr(self, '_v_external_user_cache'): self._v_external_user_cache = {} cache = self._v_external_user_cache users = [] | 7526a52095140d7fa1a40058dd637668575d6ce0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/7526a52095140d7fa1a40058dd637668575d6ce0/directory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5577,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
90,
67,
9375,
67,
1355,
67,
2493,
11,
4672,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
273,
2618,
1247,
273,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5577,
12,
2890,
4672,
309,
486,
3859,
12,
2890,
16,
2070,
90,
67,
9375,
67,
1355,
67,
2493,
11,
4672,
365,
6315,
90,
67,
9375,
67,
1355,
67,
2493,
273,
2618,
1247,
273,
365,... |
self.current_stage_tick += 1 | if self.current_stage_tick < self.current_stage_max: self.current_stage_tick += 1 | def tick(self): self.current_stage_tick += 1 # Calc how far through this stage. this_prop = float(self.current_stage_tick) / self.current_stage_max # How far through the total. stage_name, start, end = self._get_current_stage() # Calc the perc of the total control. stage_name, start, prop = self._get_current_stage() to... | 8b6ce200a1840f7275d1a77fb99d11f2f7f1b057 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/8b6ce200a1840f7275d1a77fb99d11f2f7f1b057/async_processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4024,
12,
2890,
4672,
309,
365,
18,
2972,
67,
12869,
67,
6470,
411,
365,
18,
2972,
67,
12869,
67,
1896,
30,
225,
365,
18,
2972,
67,
12869,
67,
6470,
1011,
404,
468,
29128,
3661,
10247,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4024,
12,
2890,
4672,
309,
365,
18,
2972,
67,
12869,
67,
6470,
411,
365,
18,
2972,
67,
12869,
67,
1896,
30,
225,
365,
18,
2972,
67,
12869,
67,
6470,
1011,
404,
468,
29128,
3661,
10247,... |
cursor.executemany("INSERT INTO session_attribute " " (sid,authenticated,name,value) " " VALUES (%s,%s,%s,%s)", attrs) | cursor.executemany(""" INSERT INTO session_attribute (sid,authenticated,name,value) VALUES (%s,%s,%s,%s) """, attrs) | def delete_session_cookie(db): cursor = db.cursor() if self._new: self.last_visit = now self._new = False # The session might already exist even if _new is True since # it could have been created by a concurrent request (#3563). try: cursor.execute("INSERT INTO session " " (sid,last_visit,authenticated)" " VALUES (%s,%... | c9cd2abe472fbff336262b87b60cf1276cdfdeca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/c9cd2abe472fbff336262b87b60cf1276cdfdeca/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
3184,
67,
8417,
12,
1966,
4672,
3347,
273,
1319,
18,
9216,
1435,
309,
365,
6315,
2704,
30,
365,
18,
2722,
67,
11658,
273,
2037,
365,
6315,
2704,
273,
1083,
468,
1021,
1339,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
3184,
67,
8417,
12,
1966,
4672,
3347,
273,
1319,
18,
9216,
1435,
309,
365,
6315,
2704,
30,
365,
18,
2722,
67,
11658,
273,
2037,
365,
6315,
2704,
273,
1083,
468,
1021,
1339,
4... |
index_terms, index_links = self._extract_term_index() if index_terms: header = (self._start_of('Term Index') + self._table_header('Term Index', 'index')) | index = self._extract_term_index() if index: header = self._table_header('Term Index', 'index') | def _write_indices(self, public, private): """ Write the index to the given file-like object. I write directly to the file (unlike most other pages, which are converted to strings, and then written) because the index page can be quite large. For example, for the Python standard library, the index page is over 1.5mb. ... | 21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
6836,
12,
2890,
16,
1071,
16,
3238,
4672,
3536,
2598,
326,
770,
358,
326,
864,
585,
17,
5625,
733,
18,
225,
467,
1045,
5122,
358,
326,
585,
261,
318,
5625,
4486,
1308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2626,
67,
6836,
12,
2890,
16,
1071,
16,
3238,
4672,
3536,
2598,
326,
770,
358,
326,
864,
585,
17,
5625,
733,
18,
225,
467,
1045,
5122,
358,
326,
585,
261,
318,
5625,
4486,
1308,
... |
REQUEST.RESPONSE.redirect(section.absolute_url()) | REQUEST.RESPONSE.redirect(section.absolute_url() + '/edit_html') REQUEST.RESPONSE.redirect( "%s/edit_html (section.absolute_url(), self.get_anchor()) ) | def split_body(self, body_0=None, body_1=None, REQUEST=None): """ """ if REQUEST and REQUEST.REQUEST_METHOD != 'POST': return self._split_content_html(self, REQUEST) | 842e6a6c3a148165b1ba92041deab557295824bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/842e6a6c3a148165b1ba92041deab557295824bd/Paragraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
67,
3432,
12,
2890,
16,
1417,
67,
20,
33,
7036,
16,
1417,
67,
21,
33,
7036,
16,
12492,
33,
7036,
4672,
3536,
3536,
309,
12492,
471,
12492,
18,
5519,
67,
5327,
480,
296,
3798,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
67,
3432,
12,
2890,
16,
1417,
67,
20,
33,
7036,
16,
1417,
67,
21,
33,
7036,
16,
12492,
33,
7036,
4672,
3536,
3536,
309,
12492,
471,
12492,
18,
5519,
67,
5327,
480,
296,
3798,
4... |
fillColorLozengeType = 'SelectedGradientLeft' | fillColorLozengeType = 'UnselectedGradientRight' | def DrawCollectionSwatches(self, dc, topLeft, bottomRight, vertical=True): """ topLeft and bottomRight must be vectors (lists which can be added and subtracted like vectors) """ app_ns = schema.ns('osaf.app', self.item.itsView) sidebarCollections = app_ns.sidebarCollection allCollection = schema.ns('osaf.pim', self.ite... | 736c9d2ceba4eb9a5afd4b47c50283ddb21fd42a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/736c9d2ceba4eb9a5afd4b47c50283ddb21fd42a/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
2532,
6050,
505,
281,
12,
2890,
16,
6744,
16,
1760,
3910,
16,
5469,
4726,
16,
9768,
33,
5510,
4672,
3536,
1760,
3910,
471,
5469,
4726,
1297,
506,
10046,
261,
9772,
1492,
848,
506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
2532,
6050,
505,
281,
12,
2890,
16,
6744,
16,
1760,
3910,
16,
5469,
4726,
16,
9768,
33,
5510,
4672,
3536,
1760,
3910,
471,
5469,
4726,
1297,
506,
10046,
261,
9772,
1492,
848,
506,... |
changed = False if self.replace and namespace != 14: newTitle = self.PickTarget(False, title, err[1]) if newTitle: src = wikipedia.Page(self.site, title) src.move( newTitle, u'mixed case rename') changed = True if not changed: self.WikiLog(u"* " + err[0]) printed = True | if page['ns'] == 14: self.WikiLog(u"* Move category content: " + err[0]) else: changed = False if self.replace: newTitle = self.PickTarget(False, title, err[1]) if newTitle: src = wikipedia.Page(self.site, title) src.move( newTitle, u'mixed case rename') changed = True if not changed: self.WikiLog(u"* " + err[0]) prin... | def Run(self): try: count = 0 for namespace in self.namespaces: self.params['apnamespace'] = namespace self.apfrom = self.apfrom title = None while True: # Get data self.params['apfrom'] = self.apfrom data = query.GetData(self.site.lang, self.params, self.verbose) try: self.apfrom = data['query']['allpages']['next'] e... | d7ae8d783a650481e56e5f8027b09cf5b7a199dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/d7ae8d783a650481e56e5f8027b09cf5b7a199dc/casechecker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
12,
2890,
4672,
775,
30,
1056,
273,
374,
364,
1981,
316,
365,
18,
16078,
30,
365,
18,
2010,
3292,
438,
4937,
3546,
273,
1981,
365,
18,
438,
2080,
273,
365,
18,
438,
2080,
2077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
12,
2890,
4672,
775,
30,
1056,
273,
374,
364,
1981,
316,
365,
18,
16078,
30,
365,
18,
2010,
3292,
438,
4937,
3546,
273,
1981,
365,
18,
438,
2080,
273,
365,
18,
438,
2080,
2077,
... |
def __init__(self, text=None, extension_elements=None, extension_attributes=None): | def __init__(self, extension_elements=None, extension_attributes=None, text=None): | def __init__(self, text=None, extension_elements=None, extension_attributes=None): self.text = text self.extension_elements = extension_elements or [] self.extension_attributes = extension_attributes or {} | 0e09c4b085d770feafeab06d3d4b0c70de27aee9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/0e09c4b085d770feafeab06d3d4b0c70de27aee9/gdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
365,
18,
955,
273,
977,
365,
18,
6447,
67,
6274,
273,
2710,
67,
6274,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
365,
18,
955,
273,
977,
365,
18,
6447,
67,
6274,
273,
2710,
67,
6274,
... |
SyntaxError: 'return' with argument inside generator (<doctest test.test_generators.__test__.syntax[0]>, line 2) | SyntaxError: 'return' with argument inside generator (<doctest test.test_generators.__test__.syntax[0]>, line 3) | >>> def f(): | 28a84d25dec125aee43f67de6ecc4350d2c32d13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/28a84d25dec125aee43f67de6ecc4350d2c32d13/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
13332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.send_header("Content-type", 'image/text') | self.send_header("Content-type", 'text/plain') | def send_head(self): self.send_response(200) if self.path[-4:] == '.png': self.send_header("Content-type", 'image/png') elif self.path[-4:] == '.txt': self.send_header("Content-type", 'image/text') elif self.path[-5:] == '.sobj': self.send_header("Content-type", 'application/sobj') else: self.send_header("Content-type"... | de748b8873772578453cd61c4e08bb9df0670b50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/de748b8873772578453cd61c4e08bb9df0670b50/server1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1978,
12,
2890,
4672,
365,
18,
4661,
67,
2740,
12,
6976,
13,
309,
365,
18,
803,
18919,
24,
26894,
422,
2418,
6446,
4278,
365,
18,
4661,
67,
3374,
2932,
1350,
17,
723,
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,
1366,
67,
1978,
12,
2890,
4672,
365,
18,
4661,
67,
2740,
12,
6976,
13,
309,
365,
18,
803,
18919,
24,
26894,
422,
2418,
6446,
4278,
365,
18,
4661,
67,
3374,
2932,
1350,
17,
723,
3113,
... |
def onchange_partner_id(self, cr, uid, ids, part, event_id, email=False): | def onchange_partner_id(self, cr, uid, ids, part, event_id): | def onchange_partner_id(self, cr, uid, ids, part, event_id, email=False):#override function for partner name. data={} data['badge_partner']=data['partner_address_id']=data['partner_invoice_id']=data['email_from']=data['badge_title']=data['badge_name']=False if not part: return {'value':data} | 0950bacc7dc49c68a2af5495c90616869db012de /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/0950bacc7dc49c68a2af5495c90616869db012de/event.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1087,
16,
871,
67,
350,
16,
2699,
33,
8381,
4672,
7,
10601,
445,
364,
19170,
508,
18,
501,
12938,
501,
3292... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1087,
16,
871,
67,
350,
16,
2699,
33,
8381,
4672,
7,
10601,
445,
364,
19170,
508,
18,
501,
12938,
501,
3292... |
if self.ui.configbool('notify', 'test', True): | if self.test: | def fix_sender(sender): '''try to make message have proper sender.''' | fe4d7ee89491fa2e41d35f218205af0fd40dd232 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/fe4d7ee89491fa2e41d35f218205af0fd40dd232/notify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
15330,
12,
15330,
4672,
9163,
698,
358,
1221,
883,
1240,
5338,
5793,
1093,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
15330,
12,
15330,
4672,
9163,
698,
358,
1221,
883,
1240,
5338,
5793,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
y = self.n % 100000 return x * 1000000000 + slidenum * 100000 + y SnglInspiralID = ilwd.get_ilwdchar_class(u"sngl_inspiral", u"event_id") | return SnglInspiralID(x * 1000000000 + row.get_slidenum() * 100000 + y) | def new(self, row): self.n += 1 x, slidenum, y = row.get_id_parts() x = 100000000 + (self.n // 100000) y = self.n % 100000 return x * 1000000000 + slidenum * 100000 + y | be9b9739ea2d69dc22f3fd6b1ea85de9590ee4f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3589/be9b9739ea2d69dc22f3fd6b1ea85de9590ee4f2/lsctables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
1027,
4672,
365,
18,
82,
1011,
404,
619,
16,
2020,
350,
7924,
16,
677,
273,
1027,
18,
588,
67,
350,
67,
6019,
1435,
619,
273,
2130,
9449,
397,
261,
2890,
18,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
1027,
4672,
365,
18,
82,
1011,
404,
619,
16,
2020,
350,
7924,
16,
677,
273,
1027,
18,
588,
67,
350,
67,
6019,
1435,
619,
273,
2130,
9449,
397,
261,
2890,
18,
82,
... |
return "".join(["'",self.value, "'\n"]) | return "".join([" \"",self.value, "\"\n"]) | def _printNode(self): return "".join(["'",self.value, "'\n"]) | 8ef6b38c10a7b3aa507d2e8ae3e7fe155e46b6ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/8ef6b38c10a7b3aa507d2e8ae3e7fe155e46b6ae/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
907,
12,
2890,
4672,
327,
1408,
18,
5701,
3816,
5187,
3113,
2890,
18,
1132,
16,
2491,
64,
82,
6,
5717,
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,
389,
1188,
907,
12,
2890,
4672,
327,
1408,
18,
5701,
3816,
5187,
3113,
2890,
18,
1132,
16,
2491,
64,
82,
6,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
title=u"Repeat every", | title=_("Repeat every"), | def __init__(self, context, request): self.context = context self.request = request | dbb6cf63d16957869e0222e8920e738b557b5d51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/dbb6cf63d16957869e0222e8920e738b557b5d51/cal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
819,
16,
590,
4672,
365,
18,
2472,
273,
819,
365,
18,
2293,
273,
590,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
819,
16,
590,
4672,
365,
18,
2472,
273,
819,
365,
18,
2293,
273,
590,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
cls.dprint("scanning %s" % mode) | def scanProtocol(cls, plugins, url): """Scan for url protocol match. Determine if the protocol is enough to specify the major mode. This generally happens only when the major mode is a client of a specific server and not a generic editor. (E.g. MPDMode) | fd1f7a2be2dd8408fb50e87e8b5014a7df86d065 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/fd1f7a2be2dd8408fb50e87e8b5014a7df86d065/major.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
5752,
12,
6429,
16,
4799,
16,
880,
4672,
3536,
7972,
364,
880,
1771,
845,
18,
225,
10229,
309,
326,
1771,
353,
7304,
358,
4800,
326,
7888,
1965,
18,
1220,
19190,
10555,
1338,
1347,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
5752,
12,
6429,
16,
4799,
16,
880,
4672,
3536,
7972,
364,
880,
1771,
845,
18,
225,
10229,
309,
326,
1771,
353,
7304,
358,
4800,
326,
7888,
1965,
18,
1220,
19190,
10555,
1338,
1347,... | |
return ("0" * width) + str(int) | return ("0" * (width - len(str(int))) ) + str(int) | def zeroPad(self, int, width = 1): """ Pads an integer 'int' with zeroes, up to width 'width'. Returns a string. """ if int < 10 ** width: return ("0" * width) + str(int) else: return str(int) | 23a1159f09573f9636edd443ad06eec78544c41f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10139/23a1159f09573f9636edd443ad06eec78544c41f/logging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3634,
14878,
12,
2890,
16,
509,
16,
1835,
273,
404,
4672,
3536,
453,
17318,
392,
3571,
296,
474,
11,
598,
3634,
281,
16,
731,
358,
1835,
296,
2819,
10332,
2860,
279,
533,
18,
3536,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3634,
14878,
12,
2890,
16,
509,
16,
1835,
273,
404,
4672,
3536,
453,
17318,
392,
3571,
296,
474,
11,
598,
3634,
281,
16,
731,
358,
1835,
296,
2819,
10332,
2860,
279,
533,
18,
3536,
309... |
if self.title_prefix: return self.title_prefix + ' ' + self['title'] | if self['title_prefix']: return self['title_prefix'] + ' ' + self['title'] | def get_title(self): if self.title_prefix: return self.title_prefix + ' ' + self['title'] else: return self['title'] | c32af9bb5fe112b6226d957e11908424adf37524 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/c32af9bb5fe112b6226d957e11908424adf37524/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2649,
12,
2890,
4672,
309,
365,
3292,
2649,
67,
3239,
3546,
30,
327,
365,
3292,
2649,
67,
3239,
3546,
397,
296,
296,
397,
365,
3292,
2649,
3546,
469,
30,
327,
365,
3292,
2649,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2649,
12,
2890,
4672,
309,
365,
3292,
2649,
67,
3239,
3546,
30,
327,
365,
3292,
2649,
67,
3239,
3546,
397,
296,
296,
397,
365,
3292,
2649,
3546,
469,
30,
327,
365,
3292,
2649,... |
sage: R.set_default_prec(prec) | sage: R.<q> = QQ[['q']] sage: R.set_default_prec(5) sage: f = 1 + q + q^2 + O(q^50) sage: f/10 1/10 + 1/10*q + 1/10*q^2 + O(q^50) sage: f/(10+q) 1/10 + 9/100*q + 91/1000*q^2 - 91/10000*q^3 + 91/100000*q^4 + O(q^5) | def __invert__(self): """ Inverse of the power series, which we assume to have nonzero constant term so that the inverse is again a power series. | 40f3d9145118e324dcadda3d7dfd8365723ad073 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/40f3d9145118e324dcadda3d7dfd8365723ad073/power_series_ring_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
267,
1097,
972,
12,
2890,
4672,
3536,
657,
2476,
434,
326,
7212,
4166,
16,
1492,
732,
6750,
358,
1240,
16966,
5381,
2481,
1427,
716,
326,
8322,
353,
3382,
279,
7212,
4166,
18,
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,
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,
267,
1097,
972,
12,
2890,
4672,
3536,
657,
2476,
434,
326,
7212,
4166,
16,
1492,
732,
6750,
358,
1240,
16966,
5381,
2481,
1427,
716,
326,
8322,
353,
3382,
279,
7212,
4166,
18,
2,
... |
''' else: raise Exception, "Unknown vmType in hints: %s"%vmType cfgstr = """ disk=['tap:qcow:%s,xvda1,w'] vif = [ 'mac=%s' ] | device_model='/usr/lib/xen/bin/qemu-dm' sdl=0 vnc=1 vnclisten='0.0.0.0' vncdisplay=%i vncpasswd='' stdvga=0 serial='pty' usbdevice='tablet' shadow_memory=8 disk=['tap:qcow:%s,hda,w'] vif = [ 'type=ioemu,bridge=xenbr0,mac=%s' ] | def createXenConfig(self, vmName, image, macAddr, memory, cores, hints): fn = os.path.join("/tmp", vmName) vmType = hints.get('vmtype', self.defaultVmType) print 'starting vm with type: ', vmType bootstr = '' if vmType == 'pvgrub': # FIXME: untested, requires Xen 3.3 bootstr = ''' | dc2625d190a002385b816fa7373a198643dabce1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5161/dc2625d190a002385b816fa7373a198643dabce1/xenpv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
60,
275,
809,
12,
2890,
16,
4268,
461,
16,
1316,
16,
5318,
3178,
16,
3778,
16,
15355,
16,
13442,
4672,
2295,
273,
1140,
18,
803,
18,
5701,
2932,
19,
5645,
3113,
4268,
461,
13,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
60,
275,
809,
12,
2890,
16,
4268,
461,
16,
1316,
16,
5318,
3178,
16,
3778,
16,
15355,
16,
13442,
4672,
2295,
273,
1140,
18,
803,
18,
5701,
2932,
19,
5645,
3113,
4268,
461,
13,
4... |
ranlist=Numeric.floor(self.get_random_list(self.pointcount)*self.pointcount).astype(Numeric.Int) | ranlist=Numeric.floor(self.get_random_list(self.pointcount)*self.pointcount).astype(numeric_int) | def resample(self): "resample() randomly draws a set of points equal in size to the original set from the cached data for bootstrapping" assert hasattr(self, "saved_xarray"), "resampling not set up yet. Call setup_resampling() first." ranlist=Numeric.floor(self.get_random_list(self.pointcount)*self.pointcount).astype(... | 99ba19a1da6da5ace4f1a73e8ad0eb199155c09d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6028/99ba19a1da6da5ace4f1a73e8ad0eb199155c09d/fitting_toolkit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19220,
12,
2890,
4672,
315,
455,
1511,
1435,
20153,
30013,
279,
444,
434,
3143,
3959,
316,
963,
358,
326,
2282,
444,
628,
326,
3472,
501,
364,
7065,
1382,
6,
1815,
3859,
12,
2890,
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,
19220,
12,
2890,
4672,
315,
455,
1511,
1435,
20153,
30013,
279,
444,
434,
3143,
3959,
316,
963,
358,
326,
2282,
444,
628,
326,
3472,
501,
364,
7065,
1382,
6,
1815,
3859,
12,
2890,
16,
... |
return ','.join([x.strip().lower() for x in b]) | return ','.join([x.strip() for x in b]) | def conv(astr): b = astr.split(',') return ','.join([x.strip().lower() for x in b]) | f42b743431beed95b0b354e091133b66aecd50f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/f42b743431beed95b0b354e091133b66aecd50f0/from_template.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6292,
12,
345,
313,
4672,
324,
273,
487,
313,
18,
4939,
12,
2187,
6134,
327,
3316,
18,
5701,
3816,
92,
18,
6406,
1435,
364,
619,
316,
324,
5717,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6292,
12,
345,
313,
4672,
324,
273,
487,
313,
18,
4939,
12,
2187,
6134,
327,
3316,
18,
5701,
3816,
92,
18,
6406,
1435,
364,
619,
316,
324,
5717,
225,
2,
-100,
-100,
-100,
-100,
-100,
... |
''' ''' | """Show state properties ZMI form.""" | def manage_properties(self, REQUEST, manage_tabs_message=None): ''' ''' return self._properties_form(REQUEST, management_view='Properties', manage_tabs_message=manage_tabs_message, ) | 5e0af64cf3211c0187684bc75a3a6a665ab16b8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/5e0af64cf3211c0187684bc75a3a6a665ab16b8f/States.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
4738,
12,
2890,
16,
12492,
16,
10680,
67,
16056,
67,
2150,
33,
7036,
4672,
3536,
5706,
919,
1790,
2285,
7492,
646,
12123,
327,
365,
6315,
4738,
67,
687,
12,
5519,
16,
11803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
4738,
12,
2890,
16,
12492,
16,
10680,
67,
16056,
67,
2150,
33,
7036,
4672,
3536,
5706,
919,
1790,
2285,
7492,
646,
12123,
327,
365,
6315,
4738,
67,
687,
12,
5519,
16,
11803,
... |
global DEBUG | def poll (timeout=0.0, map=None): global DEBUG if map is None: map = socket_map if map: r = []; w = []; e = [] for fd, obj in map.items(): if obj.readable(): r.append (fd) if obj.writable(): w.append (fd) r,w,e = select.select (r,w,e, timeout) if DEBUG: print r,w,e for fd in r: try: obj = map[fd] except KeyError: con... | 54a6e305b3233526fb3f9f3687bf5baf0d7c53f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/54a6e305b3233526fb3f9f3687bf5baf0d7c53f7/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
309,
852,
353,
599,
30,
852,
273,
2987,
67,
1458,
309,
852,
30,
436,
273,
5378,
31,
341,
273,
5378,
31,
425,
273,
5378,
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,
7672,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
309,
852,
353,
599,
30,
852,
273,
2987,
67,
1458,
309,
852,
30,
436,
273,
5378,
31,
341,
273,
5378,
31,
425,
273,
5378,
36... | |
headers = [], functions = [], types = [], libs = [], | headers = [], functions = [], declarations = [], types = [], libs = [], | def createConfigFile(conf, config_file, config_pre = '', config_post = '', headers = [], functions = [], types = [], libs = [], custom_tests = [], extra_items = []): ''' create a configuration file, with options config_file: which file to create config_pre: first part of the config file config_post: last part of the co... | 3dc11ec08e7b5a25e2e24586fec7f2c480af0a69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/3dc11ec08e7b5a25e2e24586fec7f2c480af0a69/scons_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
13705,
12,
3923,
16,
642,
67,
768,
16,
642,
67,
1484,
273,
10226,
642,
67,
2767,
273,
10226,
1607,
273,
5378,
16,
4186,
273,
5378,
16,
12312,
273,
5378,
16,
1953,
273,
5378,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
13705,
12,
3923,
16,
642,
67,
768,
16,
642,
67,
1484,
273,
10226,
642,
67,
2767,
273,
10226,
1607,
273,
5378,
16,
4186,
273,
5378,
16,
12312,
273,
5378,
16,
1953,
273,
5378,
16,
... |
elif sys.platform == "linux2": | elif sys.platform == "linux2" or sys.platform == "freebsd4" or sys.platform == "freebsd5": | def checkMySQL(options): if sys.platform == "win32": MySQL_LIBSEARCHPATH = [ sys.prefix + "\Libs\mysqlclient*.lib" ] MySQL_INCSEARCHPATH = [ sys.prefix + "\include\mysql.h" ] elif sys.platform == "linux2": MySQL_LIBSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.so", \ "/usr/local/lib/mysql/libmysqlclient*.so", \ "/us... | d980221e60ef0a27e1c9e50d015876701de198d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d980221e60ef0a27e1c9e50d015876701de198d2/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
28723,
12,
2116,
4672,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
5664,
87,
64,
12527,
2625,
11146,
2941,
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,
866,
28723,
12,
2116,
4672,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
13485,
67,
14484,
17251,
4211,
273,
306,
2589,
18,
3239,
397,
1548,
5664,
87,
64,
12527,
2625,
11146,
2941,
6... |
return 1 | return True | def response( char, args, target ): if not char.socket.hastag( 'peacemaking_instrument' ): return 0 # you can only target chars if not target.char: return 1 instrument = wolfpack.finditem( char.socket.gettag( 'peacemaking_instrument' ) ) if not instrument: return 0 if skills.skilltable[ PEACEMAKING ][ skills.UNHIDE ] ... | ad2fb5c1af41304c615892963957d7cff3e3439e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/ad2fb5c1af41304c615892963957d7cff3e3439e/peacemaking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
1149,
16,
833,
16,
1018,
262,
30,
309,
486,
1149,
18,
7814,
18,
76,
689,
346,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
30,
327,
374,
468,
1846,
848,
1338,
1018,
5230,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
1149,
16,
833,
16,
1018,
262,
30,
309,
486,
1149,
18,
7814,
18,
76,
689,
346,
12,
296,
347,
623,
19718,
67,
22818,
11,
262,
30,
327,
374,
468,
1846,
848,
1338,
1018,
5230,
... |
job_file.write("alarm(%s)\n\n" % (timeout)) | job_file.write("alarm(%s)\n\n" % (job.timeout)) | def write_job_file(self, job): """ Writes out the job file to be executed to disk. """ parsed_file = preparse_file(job.code, magic=True, do_time=False, ignore_prompts=False) | b466d7c5d4d984a2d52e1276e93598fcbc20a9d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b466d7c5d4d984a2d52e1276e93598fcbc20a9d1/dsage_worker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4688,
67,
768,
12,
2890,
16,
1719,
4672,
3536,
30053,
596,
326,
1719,
585,
358,
506,
7120,
358,
4234,
18,
225,
3536,
225,
2707,
67,
768,
273,
675,
2670,
67,
768,
12,
4688,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4688,
67,
768,
12,
2890,
16,
1719,
4672,
3536,
30053,
596,
326,
1719,
585,
358,
506,
7120,
358,
4234,
18,
225,
3536,
225,
2707,
67,
768,
273,
675,
2670,
67,
768,
12,
4688,
... |
return "Name: {0} - Type: {1}".format(self.name, self.type) | return u"Name: {0} - Type: {1}".format(self.name, self.type) | def __unicode__(self): return "Name: {0} - Type: {1}".format(self.name, self.type) | e0c246b75fbd7beea69fbdb5057dc22d60db6a17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7374/e0c246b75fbd7beea69fbdb5057dc22d60db6a17/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
315,
461,
30,
288,
20,
97,
300,
1412,
30,
288,
21,
1532,
18,
2139,
12,
2890,
18,
529,
16,
365,
18,
723,
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,
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,
9124,
972,
12,
2890,
4672,
327,
315,
461,
30,
288,
20,
97,
300,
1412,
30,
288,
21,
1532,
18,
2139,
12,
2890,
18,
529,
16,
365,
18,
723,
13,
2,
-100,
-100,
-100,
-100,
-100,
-... |
if not node: raise ValueError | if not node: raise ValueError | def makepatch(patch, idx, total): desc = [] node = None body = '' for line in patch: if line.startswith('#'): if line.startswith('# Node ID'): node = line.split()[-1] continue if (line.startswith('diff -r') or line.startswith('diff --git')): break desc.append(line) if not node: raise ValueError | 181795b80d1b0b85309defa117d6bb0e2048791c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/181795b80d1b0b85309defa117d6bb0e2048791c/patchbomb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
881,
505,
12,
2272,
16,
2067,
16,
2078,
4672,
3044,
273,
5378,
756,
273,
599,
1417,
273,
875,
364,
980,
316,
4729,
30,
309,
980,
18,
17514,
1918,
2668,
10038,
4672,
309,
980,
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,
29796,
881,
505,
12,
2272,
16,
2067,
16,
2078,
4672,
3044,
273,
5378,
756,
273,
599,
1417,
273,
875,
364,
980,
316,
4729,
30,
309,
980,
18,
17514,
1918,
2668,
10038,
4672,
309,
980,
18... |
ki[0, q] = s0 + sum([ kj[0,t] for t in range(q+1) ]) ki[1, q] = s1 + sum([ kj[1,t] for t in range(q+1) ]) | ki[0, q] = s0 + sum([ kj[0, t] for t in range(q+1) ]) ki[1, q] = s1 + sum([ kj[1, t] for t in range(q+1) ]) | def key_schedule(self, kj, i): """ Return $k_i$ for a given $i$ and $k_j$ with $j = i-1$. TESTS: sage: sr = mq.SR(10,4,4,8, star=True, allow_zero_inversions=True) sage: ki = sr.state_array() sage: for i in range(10): ... ki = sr.key_schedule(ki,i+1) sage: print sr.hex_str_matrix(ki) B4 3E 23 6F EF 92 E9 8F 5B E2 51 1... | e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
12,
2890,
16,
417,
78,
16,
277,
4672,
3536,
2000,
271,
79,
67,
77,
8,
364,
279,
864,
271,
77,
8,
471,
271,
79,
67,
78,
8,
598,
271,
78,
273,
277,
17,
21,
8,
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,
498,
67,
10676,
12,
2890,
16,
417,
78,
16,
277,
4672,
3536,
2000,
271,
79,
67,
77,
8,
364,
279,
864,
271,
77,
8,
471,
271,
79,
67,
78,
8,
598,
271,
78,
273,
277,
17,
21,
8,
18,... |
else: self._storeObject(object) | def accept(self, event, object, method, extraArgs=[], persistent=1): """ accept(self, string, DirectObject, Function, List, Boolean) | 2deb24b2331562a15f2b9d663a1784141f12c11e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/2deb24b2331562a15f2b9d663a1784141f12c11e/Messenger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
16,
871,
16,
733,
16,
707,
16,
2870,
2615,
22850,
6487,
9195,
33,
21,
4672,
3536,
2791,
12,
2890,
16,
533,
16,
9908,
921,
16,
4284,
16,
987,
16,
3411,
13,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
16,
871,
16,
733,
16,
707,
16,
2870,
2615,
22850,
6487,
9195,
33,
21,
4672,
3536,
2791,
12,
2890,
16,
533,
16,
9908,
921,
16,
4284,
16,
987,
16,
3411,
13,
2,
-100,
... | |
for i in xrange(9): try: os.unlink(dbpath + "__db.00%d" % i) except OSError: pass | unlinkRpmdbCache(dbpath) | def openDB4(self): import bsddb dbpath = self.buildroot + self.rpmdbpath makeDirs(dbpath) for i in xrange(9): try: os.unlink(dbpath + "__db.00%d" % i) except OSError: pass flag = "c" self.basenames_db = bsddb.hashopen(dbpath + "Basenames", flag) self.conflictname_db = bsddb.hashopen(dbpath + "Conflictname", flag) self.... | e88bd7c78ae123c185f17919515d68d29510e836 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/e88bd7c78ae123c185f17919515d68d29510e836/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
2290,
24,
12,
2890,
4672,
1930,
7081,
449,
70,
1319,
803,
273,
365,
18,
3510,
3085,
397,
365,
18,
13832,
27574,
803,
1221,
9872,
12,
1966,
803,
13,
8255,
54,
84,
27574,
1649,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
2290,
24,
12,
2890,
4672,
1930,
7081,
449,
70,
1319,
803,
273,
365,
18,
3510,
3085,
397,
365,
18,
13832,
27574,
803,
1221,
9872,
12,
1966,
803,
13,
8255,
54,
84,
27574,
1649,
12,... |
sage: sr = mq.SR(1,1,1,4) | sage: sr = mq.SR(1, 1, 1, 4) | def lin_matrix(self, length = None): """ Return the Lin matrix. | cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4739,
67,
5667,
12,
2890,
16,
769,
273,
599,
4672,
3536,
2000,
326,
27865,
3148,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4739,
67,
5667,
12,
2890,
16,
769,
273,
599,
4672,
3536,
2000,
326,
27865,
3148,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
supernova(False) | supernova(game.quadrant) | def nova(nov): "Star goes nova." course = (0.0, 10.5, 12.0, 1.5, 9.0, 0.0, 3.0, 7.5, 6.0, 4.5) newc = coord(); neighbor = coord(); bump = coord(0, 0) if withprob(0.05): # Wow! We've supernova'ed supernova(False, nov) return # handle initial nova game.quad[nov.i][nov.j] = IHDOT prout(crmena(False, IHSTAR, "sector", nov)... | 9166a6df132fa18c32881b2019e1fcc41716a3ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/9166a6df132fa18c32881b2019e1fcc41716a3ab/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1158,
15304,
12,
82,
1527,
4672,
315,
18379,
13998,
1158,
15304,
1199,
4362,
273,
261,
20,
18,
20,
16,
1728,
18,
25,
16,
2593,
18,
20,
16,
404,
18,
25,
16,
2468,
18,
20,
16,
374,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1158,
15304,
12,
82,
1527,
4672,
315,
18379,
13998,
1158,
15304,
1199,
4362,
273,
261,
20,
18,
20,
16,
1728,
18,
25,
16,
2593,
18,
20,
16,
404,
18,
25,
16,
2468,
18,
20,
16,
374,
1... |
"", zerolagSuffix, slideSuffix, slideSuffix, cacheFile, "") | "", zerolagSuffix, slideSuffix, slideSuffix, cacheFile, "", ifos=ifos) | def zeroSlidePlots(dag, plotDir, config, logPath, zerolagSuffix, slideSuffix, cacheFile, doDagCategories, parentDags = None, vetoParentDags = None, vetoCat = 3): """ set up plots for zero lag and time slides dag = the dag plotDir = directory in to set up plots config = config file logPath = location where ... | fc357fee84a913444239d3b3d8829e5f036f7cd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/fc357fee84a913444239d3b3d8829e5f036f7cd4/inspiralutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3634,
21068,
29311,
12,
30204,
16,
3207,
1621,
16,
642,
16,
613,
743,
16,
24910,
355,
346,
5791,
16,
12701,
5791,
16,
18748,
16,
741,
40,
346,
10487,
16,
982,
40,
1341,
273,
599,
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,
3634,
21068,
29311,
12,
30204,
16,
3207,
1621,
16,
642,
16,
613,
743,
16,
24910,
355,
346,
5791,
16,
12701,
5791,
16,
18748,
16,
741,
40,
346,
10487,
16,
982,
40,
1341,
273,
599,
16,
... |
'Records' : convertedData } ) | 'Records' : finalData } ) | def getGroupedInstanceHistory( self, groupField = False, selDict = {}, fields2Get = False ): validDataFields = [ 'Load', 'Jobs', 'TransferredFiles', 'TransferredBytes' ] validGroupFields = [ 'VMInstanceID', 'Status' ] allValidFields = VirtualMachineDB.tablesDesc[ 'vm_History' ][ 'Fields' ] if not fields2Get: fields2Get... | f1bfe9d817250e42a6946b23b5b1c644c9519f56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12038/f1bfe9d817250e42a6946b23b5b1c644c9519f56/VirtualMachineDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11751,
329,
1442,
5623,
12,
365,
16,
1041,
974,
273,
1083,
16,
357,
5014,
273,
10615,
1466,
22,
967,
273,
1083,
262,
30,
923,
751,
2314,
273,
306,
296,
2563,
2187,
296,
7276,
2187,
296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11751,
329,
1442,
5623,
12,
365,
16,
1041,
974,
273,
1083,
16,
357,
5014,
273,
10615,
1466,
22,
967,
273,
1083,
262,
30,
923,
751,
2314,
273,
306,
296,
2563,
2187,
296,
7276,
2187,
296... |
print "templates/" + plugin_name + "/BaseProcessing.hxx" print "Output file write error." | print "tOutput file write error. File: templates/" + plugin_name + "/BaseProcessing.hxx" | def add_include( class_name ): return "#include <CLAM/" + class_name + ".hxx>\n" | f68b41981bf4ca00e6a611001345eecbc636154e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1456/f68b41981bf4ca00e6a611001345eecbc636154e/TemplateGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
6702,
12,
667,
67,
529,
262,
30,
327,
6619,
6702,
411,
5017,
2192,
4898,
397,
667,
67,
529,
397,
3552,
76,
5279,
5333,
82,
6,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
6702,
12,
667,
67,
529,
262,
30,
327,
6619,
6702,
411,
5017,
2192,
4898,
397,
667,
67,
529,
397,
3552,
76,
5279,
5333,
82,
6,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.new = None | self.new = None self.modified = 0 self.pastable = None | def Enter(self): # bruce 040922 split setMode into Enter and init_gui (fyi) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) basicMode.Enter(self) self.o.assy.unpickatoms() self.o.assy.unpickparts() self.saveDisp = self.o.display self.o.setDisplay(diTUBES) self.o.assy.selwhat = 0 self.new = None self.o.selatom = None ... | 8f5d5b3814fbc29f18c022b0ff494ab349927e2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8f5d5b3814fbc29f18c022b0ff494ab349927e2b/depositMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15439,
12,
2890,
4672,
468,
5186,
3965,
16486,
5908,
3787,
1416,
444,
2309,
1368,
15439,
471,
1208,
67,
20292,
261,
74,
93,
77,
13,
5118,
4802,
409,
2622,
12,
11261,
67,
28413,
67,
26313... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15439,
12,
2890,
4672,
468,
5186,
3965,
16486,
5908,
3787,
1416,
444,
2309,
1368,
15439,
471,
1208,
67,
20292,
261,
74,
93,
77,
13,
5118,
4802,
409,
2622,
12,
11261,
67,
28413,
67,
26313... |
tools.convert_csv_import(cr, m, filename, tools.file_open(opj(m, filename)).read(), idref, mode=mode) | tools.convert_csv_import(cr, m, os.path.basename(filename), tools.file_open(opj(m, filename)).read(), idref, mode=mode) | def load_module_graph(cr, graph, status={}): package_todo = [] statusi = 0 for package in graph: status['progress'] = (float(statusi)+0.1)/len(graph) m = package.name logger.notifyChannel('init', netsvc.LOG_INFO, 'addon:%s' % m) sys.stdout.flush() pool = pooler.get_pool(cr.dbname) modules = pool.instanciate(m) cr.execu... | 0885c78c252480725da037a5c8d159516b0aa751 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/0885c78c252480725da037a5c8d159516b0aa751/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
67,
4660,
12,
3353,
16,
2667,
16,
1267,
12938,
4672,
2181,
67,
9012,
273,
5378,
1267,
77,
273,
374,
364,
2181,
316,
2667,
30,
1267,
3292,
8298,
3546,
273,
261,
5659,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
67,
4660,
12,
3353,
16,
2667,
16,
1267,
12938,
4672,
2181,
67,
9012,
273,
5378,
1267,
77,
273,
374,
364,
2181,
316,
2667,
30,
1267,
3292,
8298,
3546,
273,
261,
5659,
12... |
unless(storage.is_connected()) | require(storage.is_connected()) | def checkTimeoutProvokingConflicts(self): eq = self.assertEqual raises = self.assertRaises unless = self.failUnless self._storage = storage = self.openClientStorage() # Assert that the zeo cache is empty unless(not list(storage._cache.contents())) # Create the object oid = storage.new_oid() obj = MinPO(7) # We need to ... | 4659d8eb20fb53ceb449f9082c96342b24dfed27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/4659d8eb20fb53ceb449f9082c96342b24dfed27/ConnectionTests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
2694,
626,
90,
601,
310,
30897,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
14183,
273,
365,
18,
11231,
12649,
6141,
3308,
273,
365,
18,
6870,
984,
2656,
365,
6315,
5697,
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,
866,
2694,
626,
90,
601,
310,
30897,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
14183,
273,
365,
18,
11231,
12649,
6141,
3308,
273,
365,
18,
6870,
984,
2656,
365,
6315,
5697,
273,
... |
compare_title = "%0.1f%%" % [x.get('diff') for x in ns_summary if x['ip'] == best_ns.ip][0] | compare_title = 'N/A' compare_subtitle = '' elif len(ns_record['durations'][0]) >= MIN_RELEVANT_COUNT: compare_reference = ns_record compare_title = "%0.1f%%" % ns_summary[0]['diff'] | def CreateReport(self, format='ascii', output_fp=None, csv_path=None): # First generate all of the charts necessary. if format == 'ascii': lowest_latency = self._LowestLatencyAsciiChart() mean_duration = self._MeanRequestAsciiChart() else: lowest_latency = None mean_duration = None | acd7f6e8e8dab899104a9e6fa17649296d41db99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/acd7f6e8e8dab899104a9e6fa17649296d41db99/reporter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
4820,
12,
2890,
16,
740,
2218,
9184,
2187,
876,
67,
7944,
33,
7036,
16,
6101,
67,
803,
33,
7036,
4672,
225,
468,
5783,
2103,
777,
434,
326,
23194,
4573,
18,
309,
740,
422,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
4820,
12,
2890,
16,
740,
2218,
9184,
2187,
876,
67,
7944,
33,
7036,
16,
6101,
67,
803,
33,
7036,
4672,
225,
468,
5783,
2103,
777,
434,
326,
23194,
4573,
18,
309,
740,
422,
296,
... |
for dep in prj.source_libs_deps + prj.source_bundles_deps: depresult = dep.build() env.Depends(result, depresult) | for dep_result in dep_results: env.Depends(result, dep_result) | def result(self, deps_results=True): """Returns the SCons targets for this project. | e840cef0761ef8196a32c8b2021abe860191f350 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8002/e840cef0761ef8196a32c8b2021abe860191f350/project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
563,
12,
2890,
16,
8740,
67,
4717,
33,
5510,
4672,
3536,
1356,
326,
20487,
5774,
364,
333,
1984,
18,
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,
563,
12,
2890,
16,
8740,
67,
4717,
33,
5510,
4672,
3536,
1356,
326,
20487,
5774,
364,
333,
1984,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
saturate up to, and that prime is `\leq` ``max_prime``. | saturate up to, and that prime might be smaller than ``max_prime``. | def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. | 9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5942,
295,
340,
12,
2890,
16,
943,
67,
16382,
29711,
21,
16,
14800,
67,
683,
4485,
67,
3700,
33,
8381,
4672,
436,
8395,
25793,
295,
340,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5942,
295,
340,
12,
2890,
16,
943,
67,
16382,
29711,
21,
16,
14800,
67,
683,
4485,
67,
3700,
33,
8381,
4672,
436,
8395,
25793,
295,
340,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
... |
self.pool.get(object)._store_set_values(cr, uid, ids, field, context) | ids = self.pool.get(object).search(cr, uid, [('id','in', ids)], context=context) if ids: self.pool.get(object)._store_set_values(cr, uid, ids, field, context) | def unlink(self, cr, uid, ids, context=None): if not context: context = {} if not ids: return True if isinstance(ids, (int, long)): ids = [ids] | f8f691f6edf9caaf85a7799e5a0dd79cc2f12713 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/f8f691f6edf9caaf85a7799e5a0dd79cc2f12713/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
3258,
30,
327,
1053,
309,
1549,
12,
2232,
16,
261,
474,
16,
1525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
309,
486,
3258,
30,
327,
1053,
309,
1549,
12,
2232,
16,
261,
474,
16,
1525,
... |
flavor = ?""", name, str(version), flavor.freeze()) | %s""" % flavorStr, [trove._TROVEINFO_TAG_TAINTED, name, str(version)] + flavorArgs) | def troveIsTainted(self, name, version, flavor): cu = self.db.cursor() | bc257c2c1472e7acbd7988c9dbf623050a3b5d41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/bc257c2c1472e7acbd7988c9dbf623050a3b5d41/sqldb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23432,
537,
2520,
29048,
329,
12,
2890,
16,
508,
16,
1177,
16,
19496,
4672,
15985,
273,
365,
18,
1966,
18,
9216,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23432,
537,
2520,
29048,
329,
12,
2890,
16,
508,
16,
1177,
16,
19496,
4672,
15985,
273,
365,
18,
1966,
18,
9216,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
for episode in episodes: episode.has_screen = True episode.files = File.find().filter_by(episode = episode.id).all() episode.preview = get_preview(Preview.find().\ filter_by(episode = episode.id).all(), episode.files) | def datenspur(web, id, mode): try: # FIXME wrap db queries into one episodes = Episode.find().filter(Episode.category.endswith(id)).\ order_by(Episode.date).all() episodes.reverse() comments_count = [ Comment.find().filter_by(episode = e.id).count() for e in episodes ] ratings = [ do_the_ratings(0, 0, Rating.find().\ f... | 6ca5e224867b1acd386b087721ec31a655f42874 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11349/6ca5e224867b1acd386b087721ec31a655f42874/routes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1150,
773,
12688,
12,
4875,
16,
612,
16,
1965,
4672,
775,
30,
468,
9852,
2193,
1319,
6218,
1368,
1245,
5529,
27134,
273,
512,
84,
11802,
18,
4720,
7675,
2188,
12,
18918,
11802,
18,
4743,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1150,
773,
12688,
12,
4875,
16,
612,
16,
1965,
4672,
775,
30,
468,
9852,
2193,
1319,
6218,
1368,
1245,
5529,
27134,
273,
512,
84,
11802,
18,
4720,
7675,
2188,
12,
18918,
11802,
18,
4743,... | |
def __del__(self): self.close() | def __del__(self): self.close() | 4ab0830431443d93b512facc592cad2f9ac6ca25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/4ab0830431443d93b512facc592cad2f9ac6ca25/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
365,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
365,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
items.append((info.spamcount, word)) | items.append((info.spamcount, word, info)) | def FindTopWords(bayes, num, get_spam): items = [] try: bayes.db # bsddb style extractor = DBExtractor except AttributeError: extractor = DictExtractor for word, info in extractor(bayes): if ":" in word: continue if get_spam: if info.hamcount==0: items.append((info.spamcount, word)) else: if info.spamcount==0: items.a... | 1906eaa7cce41636b5054be689664fc95342a8ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/1906eaa7cce41636b5054be689664fc95342a8ca/tester.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
3401,
7363,
12,
70,
528,
281,
16,
818,
16,
336,
67,
1752,
301,
4672,
1516,
273,
5378,
775,
30,
324,
528,
281,
18,
1966,
468,
7081,
449,
70,
2154,
14031,
273,
2383,
10958,
1335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4163,
3401,
7363,
12,
70,
528,
281,
16,
818,
16,
336,
67,
1752,
301,
4672,
1516,
273,
5378,
775,
30,
324,
528,
281,
18,
1966,
468,
7081,
449,
70,
2154,
14031,
273,
2383,
10958,
1335,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.