rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
"""Resets the scheme and fontset of the Tix application to newScheme and newFontSet, respectively. This affects only those widgets created after this call. Therefore, it is best to call the resetop tions command before the creation of any widgets in a Tix application. The optional parameter newScmPrio can be... | """Resets the scheme and fontset of the Tix application to newScheme and newFontSet, respectively. This affects only those widgets created after this call. Therefore, it is best to call the resetoptions command before the creation of any widgets in a Tix application. The optional parameter newScmPrio can be given to ... | def tix_resetoptions(self, newScheme, newFontSet, newScmPrio=None): """Resets the scheme and fontset of the Tix application to newScheme and newFontSet, respectively. This affects only those widgets created after this call. Therefore, it is best to call the resetop tions command before the creation of any wid... | 2c55b08db886232a6fd7f100f955f541567ab82d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c55b08db886232a6fd7f100f955f541567ab82d/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
697,
67,
6208,
2116,
12,
2890,
16,
394,
9321,
16,
394,
5711,
694,
16,
394,
1541,
81,
52,
566,
83,
33,
7036,
4672,
3536,
18900,
225,
326,
225,
4355,
471,
3512,
542,
434,
326,
399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
697,
67,
6208,
2116,
12,
2890,
16,
394,
9321,
16,
394,
5711,
694,
16,
394,
1541,
81,
52,
566,
83,
33,
7036,
4672,
3536,
18900,
225,
326,
225,
4355,
471,
3512,
542,
434,
326,
399... |
lexer.whitepace = ' \t' | lexer.whitespace = ' \t' | # Look for a machine, default, or macdef top-level keyword | 400ea8edbb598c67915c9a3ae3c994c08dd4843d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/400ea8edbb598c67915c9a3ae3c994c08dd4843d/netrc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
10176,
364,
279,
5228,
16,
805,
16,
578,
5318,
536,
1760,
17,
2815,
4932,
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,
468,
10176,
364,
279,
5228,
16,
805,
16,
578,
5318,
536,
1760,
17,
2815,
4932,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
or \"ircname\". | or \"ircname\". May be C{None}. @ivar username: Supplied to the server during login as the \"User name\". May be C{None} | def channelMode(self, user, channel, mode, *args): """ Send information about the mode of a channel. | b526efe175e1630ebc066e745717ecdeb64584ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b526efe175e1630ebc066e745717ecdeb64584ef/irc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1904,
2309,
12,
2890,
16,
729,
16,
1904,
16,
1965,
16,
380,
1968,
4672,
3536,
2479,
1779,
2973,
326,
1965,
434,
279,
1904,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1904,
2309,
12,
2890,
16,
729,
16,
1904,
16,
1965,
16,
380,
1968,
4672,
3536,
2479,
1779,
2973,
326,
1965,
434,
279,
1904,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (iters != 1) and (((iters+1) % opts.outputfreq) == 0): | if (iters != 1) and (((iters-1) % opts.outputfreq) == 0): | def run(job, args, opts): """Run Mrs PSO function This is run on the master. """ # Report parameters if not opts.quiet: from datetime import datetime date = datetime.now() print "# %s" % (versioninfo,) print "# Date run: %d-%d-%d" %(date.year, date.month, date.day) print "#" print "# ** OPTIONS **" for o in cli_parser... | a43d92fc49fe94df3a6400bd9e60c4ea95c6acba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/966/a43d92fc49fe94df3a6400bd9e60c4ea95c6acba/mrspso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
4688,
16,
833,
16,
1500,
4672,
3536,
1997,
490,
5453,
453,
3584,
445,
225,
1220,
353,
1086,
603,
326,
4171,
18,
3536,
468,
8706,
1472,
309,
486,
1500,
18,
20380,
30,
628,
331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
4688,
16,
833,
16,
1500,
4672,
3536,
1997,
490,
5453,
453,
3584,
445,
225,
1220,
353,
1086,
603,
326,
4171,
18,
3536,
468,
8706,
1472,
309,
486,
1500,
18,
20380,
30,
628,
331... |
self.p.portal.registerChecker( PublicKeyCredentialsCheckerDB(self.clientdb)) | self.p.portal.registerChecker(PublicKeyCredentialsCheckerDB(self.clientdb)) | def setUp(self): self.jobdb = JobDatabaseSQLite(test=True) self.monitordb = MonitorDatabase(test=True) self.clientdb = ClientDatabase(test=True) self.dsage_server = DSageServer(self.jobdb, self.monitordb, self.clientdb, log_level=5) self.realm = Realm(self.dsage_server) self.p = _SSHKeyPortalRoot(portal.Portal(self.rea... | c43b3d70569e5d065e709d79292048cbbe7f1b8d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c43b3d70569e5d065e709d79292048cbbe7f1b8d/test_remote.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
4688,
1966,
273,
3956,
4254,
3997,
1137,
12,
3813,
33,
5510,
13,
365,
18,
2586,
305,
517,
70,
273,
14086,
4254,
12,
3813,
33,
5510,
13,
365,
18,
2625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
4688,
1966,
273,
3956,
4254,
3997,
1137,
12,
3813,
33,
5510,
13,
365,
18,
2586,
305,
517,
70,
273,
14086,
4254,
12,
3813,
33,
5510,
13,
365,
18,
2625,
... |
def read(self, *n): | def read(self, *n): | def read(self, *n): | cada31e8208b1e7201f5afc9f9782089bec7ebe3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/cada31e8208b1e7201f5afc9f9782089bec7ebe3/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
380,
82,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
380,
82,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
+ self.setMessageFlags(md, replyvar, reply=1) | + self.setMessageFlags(md, replyvar, reply=1, routingId=routingId) | def makeReply(self, md, errfn): # TODO special cases for async ctor/dtor replies if md.decl.type.isAsync(): return [ ] | c95f27e461d64b9a59162ef066344e6890d6942d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/c95f27e461d64b9a59162ef066344e6890d6942d/lower.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
7817,
12,
2890,
16,
3481,
16,
393,
4293,
4672,
468,
2660,
4582,
6088,
364,
4326,
15120,
19,
7510,
280,
22009,
309,
3481,
18,
8840,
18,
723,
18,
291,
2771,
13332,
327,
306,
308,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
7817,
12,
2890,
16,
3481,
16,
393,
4293,
4672,
468,
2660,
4582,
6088,
364,
4326,
15120,
19,
7510,
280,
22009,
309,
3481,
18,
8840,
18,
723,
18,
291,
2771,
13332,
327,
306,
308,
2... |
<input name='word' type='text' size='30'> | <input name='word' value='' type='text' size='30'> | def __init__(self, uiPort, bayes): uiArgs = (bayes,) Listener.__init__(self, uiPort, UserInterface, uiArgs) | 687201dd0422d531b52815cedabcca48f312f1ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/687201dd0422d531b52815cedabcca48f312f1ba/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5915,
2617,
16,
324,
528,
281,
4672,
5915,
2615,
273,
261,
70,
528,
281,
16,
13,
10652,
16186,
2738,
972,
12,
2890,
16,
5915,
2617,
16,
21369,
16,
5915,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
5915,
2617,
16,
324,
528,
281,
4672,
5915,
2615,
273,
261,
70,
528,
281,
16,
13,
10652,
16186,
2738,
972,
12,
2890,
16,
5915,
2617,
16,
21369,
16,
5915,
... |
while True: if self.fsema.acquire(0): break | while self._full(): | def put(self, item, block=True, timeout=None): """Put an item into the queue. | 664649f75f8c5918ee8640798839f5366d8dc59c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/664649f75f8c5918ee8640798839f5366d8dc59c/Queue.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
12,
2890,
16,
761,
16,
1203,
33,
5510,
16,
2021,
33,
7036,
4672,
3536,
6426,
392,
761,
1368,
326,
2389,
18,
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,
1378,
12,
2890,
16,
761,
16,
1203,
33,
5510,
16,
2021,
33,
7036,
4672,
3536,
6426,
392,
761,
1368,
326,
2389,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if isinstance(feed, gspreadsheet.GSpreadsheetsCellsFeed): | if isinstance(feed, gspreadsheet.SpreadsheetsCellsFeed): | def _PrintFeed(self, feed): for i, entry in enumerate(feed.entry): if isinstance(feed, gspreadsheet.GSpreadsheetsCellsFeed): print '%s %s\n' % (entry.title.text, entry.content.text) elif isinstance(feed, gspreadsheet.GSpreadsheetsListFeed): print '%s %s %s\n' % (i, entry.title.text, entry.content.text) else: print '%s ... | 4571761cbdb123639d97ea7904dac6a2f17ec78c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/4571761cbdb123639d97ea7904dac6a2f17ec78c/spreadsheetExample.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5108,
8141,
12,
2890,
16,
4746,
4672,
364,
277,
16,
1241,
316,
4241,
12,
7848,
18,
4099,
4672,
309,
1549,
12,
7848,
16,
314,
26007,
8118,
18,
3389,
11904,
10245,
10505,
8141,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5108,
8141,
12,
2890,
16,
4746,
4672,
364,
277,
16,
1241,
316,
4241,
12,
7848,
18,
4099,
4672,
309,
1549,
12,
7848,
16,
314,
26007,
8118,
18,
3389,
11904,
10245,
10505,
8141,
4672,
... |
if var.concretetype == llmemory.WeakRefPtr: var = hop.llops.genop("cast_weakrefptr_to_ptr", [var], resulttype=WEAKREFPTR) | def push_roots(self, hop): if self.incr_stack_ptr is None: return if self.gcdata.gc.moving_gc: # moving GCs don't borrow, so the caller does not need to keep # the arguments alive livevars = [var for var in hop.livevars_after_op() if not var_ispyobj(var)] else: livevars = hop.livevars_after_op() + hop.current_op_keeps_... | 43f7e1be8a6bb24e1bf9deccdaa98eee14fd9cfc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/43f7e1be8a6bb24e1bf9deccdaa98eee14fd9cfc/framework.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
67,
22078,
12,
2890,
16,
19055,
4672,
309,
365,
18,
267,
3353,
67,
3772,
67,
6723,
353,
599,
30,
327,
309,
365,
18,
13241,
892,
18,
13241,
18,
81,
13767,
67,
13241,
30,
468,
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,
1817,
67,
22078,
12,
2890,
16,
19055,
4672,
309,
365,
18,
267,
3353,
67,
3772,
67,
6723,
353,
599,
30,
327,
309,
365,
18,
13241,
892,
18,
13241,
18,
81,
13767,
67,
13241,
30,
468,
12... | |
sim.getRNG().setSeed(12345) | sim.getRNG().set(seed=12345) | def demo(gen): return [500 + gen*10, 1000 + gen*10] | 205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21477,
12,
4507,
4672,
327,
306,
12483,
397,
3157,
14,
2163,
16,
4336,
397,
3157,
14,
2163,
65,
225,
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,
21477,
12,
4507,
4672,
327,
306,
12483,
397,
3157,
14,
2163,
16,
4336,
397,
3157,
14,
2163,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.parser.processEndTag(self.currentToken.name, self.currentToken.attributes) | self.parser.processEndTag(self.currentToken.name) | def emitCurrentToken(self): """This method is a generic handler for emitting the StartTagToken, EndTagToken, CommentToken and DoctypeToken. It also sets the state to "data" because that's what's needed after a token has been emitted. """ | ed57099a7421f1abf83dfbf943a5b8f1b1e3ec8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/ed57099a7421f1abf83dfbf943a5b8f1b1e3ec8c/tokenizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3626,
3935,
1345,
12,
2890,
4672,
3536,
2503,
707,
353,
279,
5210,
1838,
364,
3626,
1787,
326,
3603,
1805,
1345,
16,
4403,
1805,
1345,
16,
9821,
1345,
471,
2256,
12387,
1345,
18,
2597,
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,
3626,
3935,
1345,
12,
2890,
4672,
3536,
2503,
707,
353,
279,
5210,
1838,
364,
3626,
1787,
326,
3603,
1805,
1345,
16,
4403,
1805,
1345,
16,
9821,
1345,
471,
2256,
12387,
1345,
18,
2597,
2... |
this = apply(_quickfix.new_RegistAcctType, args) | this = _quickfix.new_RegistAcctType(*args) | def __init__(self, *args): this = apply(_quickfix.new_RegistAcctType, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
1617,
376,
9988,
299,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
1617,
376,
9988,
299,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1... |
name = 'visit_' + self.__class__.__name__ method = getattr(visitor, name, visitor.unknown_visit) visitor.document.reporter.debug(name, category='nodes.Node.walk') | visitor.document.reporter.debug(self.__class__.__name__, category='nodes.Node.walk') | def walk(self, visitor): """ Traverse a tree of `Node` objects, calling ``visit_...`` methods of `visitor` when entering each node. If there is no ``visit_particular_node`` method for a node of type ``particular_node``, the ``unknown_visit`` method is called. (The `walkabout()` method is similar, except it also calls ... | ee861d2a4079770aca2185bdbdcaed8b2eb1ee2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/ee861d2a4079770aca2185bdbdcaed8b2eb1ee2a/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
12,
2890,
16,
8000,
4672,
3536,
2197,
2476,
279,
2151,
434,
1375,
907,
68,
2184,
16,
4440,
12176,
11658,
67,
2777,
10335,
2590,
434,
1375,
3516,
1811,
68,
1347,
19014,
1517,
756,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
12,
2890,
16,
8000,
4672,
3536,
2197,
2476,
279,
2151,
434,
1375,
907,
68,
2184,
16,
4440,
12176,
11658,
67,
2777,
10335,
2590,
434,
1375,
3516,
1811,
68,
1347,
19014,
1517,
756,
1... |
mops.appendRapidMove(z=" | mops.appendFeedMove(z=" | def millCutPath(self, cutList, cutPath, mops, traverseZ, cutZ, feedRate): assert cutPath.hasSegments() | 99974b903bf0f2eb7e05988f24b566098e257f3c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8155/99974b903bf0f2eb7e05988f24b566098e257f3c/export_gcode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
737,
15812,
743,
12,
2890,
16,
6391,
682,
16,
6391,
743,
16,
312,
4473,
16,
10080,
62,
16,
6391,
62,
16,
4746,
4727,
4672,
1815,
6391,
743,
18,
5332,
7946,
1435,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
737,
15812,
743,
12,
2890,
16,
6391,
682,
16,
6391,
743,
16,
312,
4473,
16,
10080,
62,
16,
6391,
62,
16,
4746,
4727,
4672,
1815,
6391,
743,
18,
5332,
7946,
1435,
2,
-100,
-100,
... |
for i in self.interfaces: i.afterStoreChange() | self.blockedinterfaces = set(self.interfaces) for i in self.interfaces: i.afterStoreChange() self.blockedinterfaces.remove(i) | def afterStoreChange(self): """Called internally after the store changes, i.e., all values have changed.""" for i in self.interfaces: i.afterStoreChange() | 3dc58883b999b04d060f6f4cc98dd528cd3fb8ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/381/3dc58883b999b04d060f6f4cc98dd528cd3fb8ea/xmlstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
2257,
3043,
12,
2890,
4672,
3536,
8185,
12963,
1839,
326,
1707,
3478,
16,
277,
18,
73,
12990,
777,
924,
1240,
3550,
12123,
364,
277,
316,
365,
18,
15898,
30,
277,
18,
5205,
2257,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1839,
2257,
3043,
12,
2890,
4672,
3536,
8185,
12963,
1839,
326,
1707,
3478,
16,
277,
18,
73,
12990,
777,
924,
1240,
3550,
12123,
364,
277,
316,
365,
18,
15898,
30,
277,
18,
5205,
2257,
... |
event = self.create_event(u'%s%sfoo' % prefix) | event = self.create_event((prefix[1] % prefix[0]) + u'foo') | def test_happy_prefix_names(self): for prefix in self.happy_prefixes: event = self.create_event(u'%s%sfoo' % prefix) self.processor.process(event) self.assert_addressed(event, prefix[0], u'foo') | e1957662647e89115fe96b11e88edcaf30f01d89 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12048/e1957662647e89115fe96b11e88edcaf30f01d89/test_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
76,
438,
2074,
67,
3239,
67,
1973,
12,
2890,
4672,
364,
1633,
316,
365,
18,
76,
438,
2074,
67,
17777,
30,
871,
273,
365,
18,
2640,
67,
2575,
12443,
3239,
63,
21,
65,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
76,
438,
2074,
67,
3239,
67,
1973,
12,
2890,
4672,
364,
1633,
316,
365,
18,
76,
438,
2074,
67,
17777,
30,
871,
273,
365,
18,
2640,
67,
2575,
12443,
3239,
63,
21,
65,
738,
... |
'sale.order.line': (_get_order, ['price_unit','tax_id','discount','product_uom_qty'], 10), | 'sale.order.line': (_get_order, ['price_unit', 'tax_id', 'discount', 'product_uom_qty'], 10), | def _get_order(self, cr, uid, ids, context={}): result = {} for line in self.pool.get('sale.order.line').browse(cr, uid, ids, context=context): result[line.order_id.id] = True return result.keys() | fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
563,
273,
2618,
364,
980,
316,
365,
18,
6011,
18,
588,
2668,
87,
5349,
18,
1019,
18,
1369,
16063,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1019,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
563,
273,
2618,
364,
980,
316,
365,
18,
6011,
18,
588,
2668,
87,
5349,
18,
1019,
18,
1369,
16063,
25... |
exec 'self.' + keyvals[0] + '=' + `keyvals[1]` | if type(keyvals[1]) == str: exec 'self.' + keyvals[0] + '=' + "keyvals[1]" else: exec 'self.' + keyvals[0] + '=' + str(keyvals[1]) | def _init(self, parent): | 71277dd9de3b47e1dd5b1b9d035d52c93d6408a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8640/71277dd9de3b47e1dd5b1b9d035d52c93d6408a0/Lithomop3d_scan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
12,
2890,
16,
982,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
12,
2890,
16,
982,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
(os.getenv('HOME', ''), 'Library', 'Preferences', 'Opera Preferences 10', | (os.getenv('HOME', False), 'Library', 'Preferences', 'Opera Preferences 10', | def OperaHistoryPath(self): paths = ( (os.getenv('HOME', ''), 'Library', 'Preferences', 'Opera Preferences', 'global_history.dat'), (os.getenv('HOME', ''), 'Library', 'Preferences', 'Opera Preferences 10', 'global_history.dat'), (os.getenv('APPDATA', ''), 'Opera', 'Opera', 'global_history.dat'), (os.getenv('HOME', ''),... | 1647d5424a70f624d0cd52eb19742058f6087530 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/1647d5424a70f624d0cd52eb19742058f6087530/history_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29989,
5623,
743,
12,
2890,
4672,
2953,
273,
261,
261,
538,
18,
588,
3074,
2668,
14209,
2187,
875,
3631,
296,
9313,
2187,
296,
12377,
2187,
296,
3542,
69,
28310,
2187,
296,
6347,
67,
818... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29989,
5623,
743,
12,
2890,
4672,
2953,
273,
261,
261,
538,
18,
588,
3074,
2668,
14209,
2187,
875,
3631,
296,
9313,
2187,
296,
12377,
2187,
296,
3542,
69,
28310,
2187,
296,
6347,
67,
818... |
key, value = evaluate.equalsplit(tmp) parameters += ' ' + u'='.join([u''.join(key), quoteattr(u''.join(value))]) | tmp = u"".join(tmp) if "=" in tmp: key, value = tmp.split("=", 1) parameters += " %s=%s" % (key, quoteattr(value)) | def flatten(self, expander, variables, res): name = [] evaluate.flatten(self[0], expander, variables, name) name = u"".join(name).strip() parameters = u'' | e84d1fa118aae4360d2a325e81e7d0cbcaede7c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/e84d1fa118aae4360d2a325e81e7d0cbcaede7c7/magic_nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5341,
12,
2890,
16,
4542,
264,
16,
3152,
16,
400,
4672,
508,
273,
5378,
5956,
18,
16940,
12,
2890,
63,
20,
6487,
4542,
264,
16,
3152,
16,
508,
13,
508,
273,
582,
3660,
18,
5701,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5341,
12,
2890,
16,
4542,
264,
16,
3152,
16,
400,
4672,
508,
273,
5378,
5956,
18,
16940,
12,
2890,
63,
20,
6487,
4542,
264,
16,
3152,
16,
508,
13,
508,
273,
582,
3660,
18,
5701,
12,
... |
if self.binaryKeys: | if self.optimizeKeys: | def marshall_key(self, key): """ Marshalls a Crash key to be used in the database. | 9a9ad459c3708948326e6a88c2e71486063105f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7261/9a9ad459c3708948326e6a88c2e71486063105f6/crash.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1833,
67,
856,
12,
2890,
16,
498,
4672,
3536,
26026,
87,
279,
14998,
961,
498,
358,
506,
1399,
316,
326,
2063,
18,
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,
1833,
67,
856,
12,
2890,
16,
498,
4672,
3536,
26026,
87,
279,
14998,
961,
498,
358,
506,
1399,
316,
326,
2063,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
out.write(" (texture \"%s\")\n\n" % texture) | out.write(" (texture \"%s\")\n\n" % mesh.texture_filename) | def write(self, out): out.write(";; -*- scheme -*-\n") out.write("(windstille-model\n") out.write(" (name \"\")\n") for (texture, mesh) in self.mesh_data.iteritems(): out.write(" (mesh\n") out.write(" (name \"\")\n") out.write(" (texture \"%s\")\n\n" % texture) out.write(" (vertices\n") for v in mesh.vertic... | 7da431e8cd4fe19ba2a089583c4d1402e943c669 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4846/7da431e8cd4fe19ba2a089583c4d1402e943c669/mesh_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
596,
4672,
596,
18,
2626,
2932,
25708,
300,
14,
17,
4355,
300,
14,
6943,
82,
7923,
596,
18,
2626,
2932,
12,
10094,
334,
14120,
17,
2284,
64,
82,
7923,
596,
18,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
596,
4672,
596,
18,
2626,
2932,
25708,
300,
14,
17,
4355,
300,
14,
6943,
82,
7923,
596,
18,
2626,
2932,
12,
10094,
334,
14120,
17,
2284,
64,
82,
7923,
596,
18,
26... |
targetfile.chmod(self.options["mode"]) | os.chmod(targetfile.path, self.options["mode"]) | def _done(res): f.close() if runtime.platform.isWindows() and targetfile.exists(): os.unlink(targetfile.path) tmpfile.moveTo(targetfile) targetfile.chmod(self.options["mode"]) return None | aeb05734de0422d245c4a0b6bd91b5de59371040 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13646/aeb05734de0422d245c4a0b6bd91b5de59371040/services.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8734,
12,
455,
4672,
284,
18,
4412,
1435,
309,
3099,
18,
9898,
18,
291,
10399,
1435,
471,
1018,
768,
18,
1808,
13332,
1140,
18,
318,
1232,
12,
3299,
768,
18,
803,
13,
25613,
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,
389,
8734,
12,
455,
4672,
284,
18,
4412,
1435,
309,
3099,
18,
9898,
18,
291,
10399,
1435,
471,
1018,
768,
18,
1808,
13332,
1140,
18,
318,
1232,
12,
3299,
768,
18,
803,
13,
25613,
18,
... |
if self.reminderDialog is not None: (nextReminderTime, closeIt) = self.reminderDialog.UpdateList(pending) | reminderDialog = self.getReminderDialog(False) if reminderDialog is not None: (nextReminderTime, closeIt) = reminderDialog.UpdateList(pending) | def onCollectionChanged(self, notification): # print "*** Got reminders collection changed!" pending = self.getPendingReminders() closeIt = False if self.reminderDialog is not None: (nextReminderTime, closeIt) = self.reminderDialog.UpdateList(pending) elif len(pending) > 0: nextReminderTime = pending[0].reminderTime el... | 36eb1302fd33128c61a036a4dd87fdeb8af5c817 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/36eb1302fd33128c61a036a4dd87fdeb8af5c817/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
2532,
5033,
12,
2890,
16,
3851,
4672,
468,
1172,
315,
14465,
19578,
849,
728,
414,
1849,
3550,
4442,
4634,
273,
365,
18,
588,
8579,
1933,
728,
414,
1435,
1746,
7193,
273,
1083,
849,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2532,
5033,
12,
2890,
16,
3851,
4672,
468,
1172,
315,
14465,
19578,
849,
728,
414,
1849,
3550,
4442,
4634,
273,
365,
18,
588,
8579,
1933,
728,
414,
1435,
1746,
7193,
273,
1083,
849,... |
"""INPUT: hwv - a dominant weight in a weight lattice. L - the ambient lattice Produces the dictionary of multiplicities for the irreducible character | """ Returns the dictionary of multiplicities for the irreducible character | def irreducible_character_freudenthal(hwv, L, debug=False): """INPUT: hwv - a dominant weight in a weight lattice. L - the ambient lattice Produces the dictionary of multiplicities for the irreducible character with highest weight lamb. The weight multiplicities are computed by the Freudenthal multiplity formula. The... | af4f5f46d5016de6167398d67987ba1855db181e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/af4f5f46d5016de6167398d67987ba1855db181e/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9482,
1118,
5286,
1523,
67,
11560,
67,
74,
266,
1100,
319,
22314,
12,
20701,
90,
16,
511,
16,
1198,
33,
8381,
4672,
3536,
2860,
326,
3880,
434,
3309,
1780,
1961,
364,
326,
9482,
1118,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9482,
1118,
5286,
1523,
67,
11560,
67,
74,
266,
1100,
319,
22314,
12,
20701,
90,
16,
511,
16,
1198,
33,
8381,
4672,
3536,
2860,
326,
3880,
434,
3309,
1780,
1961,
364,
326,
9482,
1118,
... |
else | else: | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 507) else quickfix.IntField.__init__(self, 507, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
6437,
27,
13,
469,
30,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
6437,
27,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
2738... |
print 'CONNECTED' | def connected(proto): print 'CONNECTED' def trapit(what): print 'TRAPPED', what what.trap(juice.UnhandledRemoteJuiceError) Break().do(proto).addCallbacks(self.successIsFailure, trapit) print 'called Break' return Flag().do(proto) | e56dcf564dc442d95c85eb44f592b6672bad21ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8962/e56dcf564dc442d95c85eb44f592b6672bad21ad/test_q2q.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5840,
12,
9393,
4672,
1652,
23034,
305,
12,
23770,
4672,
1172,
296,
4349,
2203,
12120,
2187,
4121,
4121,
18,
27170,
12,
78,
89,
1812,
18,
26952,
5169,
46,
89,
1812,
668,
13,
17030,
7675,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5840,
12,
9393,
4672,
1652,
23034,
305,
12,
23770,
4672,
1172,
296,
4349,
2203,
12120,
2187,
4121,
4121,
18,
27170,
12,
78,
89,
1812,
18,
26952,
5169,
46,
89,
1812,
668,
13,
17030,
7675,... | |
"""Delete menu items between INDEX1 and INDEX2 (not included).""" | """Delete menu items between INDEX1 and INDEX2 (included).""" | def delete(self, index1, index2=None): """Delete menu items between INDEX1 and INDEX2 (not included).""" if index2 is None: index2 = index1 cmds = [] (num_index1, num_index2) = (self.index(index1), self.index(index2)) if (num_index1 is not None) and (num_index2 is not None): for i in range(num_index1, num_index2 + 1): ... | 348a2726826909f26c298be3e9b14cb16f3ee9ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/348a2726826909f26c298be3e9b14cb16f3ee9ae/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
770,
21,
16,
770,
22,
33,
7036,
4672,
3536,
2613,
3824,
1516,
3086,
12425,
21,
471,
12425,
22,
261,
20405,
13,
12123,
309,
770,
22,
353,
599,
30,
770,
22,
273,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
770,
21,
16,
770,
22,
33,
7036,
4672,
3536,
2613,
3824,
1516,
3086,
12425,
21,
471,
12425,
22,
261,
20405,
13,
12123,
309,
770,
22,
353,
599,
30,
770,
22,
273,
77... |
del self.buffer[-1] if not (self.buffer and self.buffer[-1][0]==STARTTAG and \ self.buffer[-1][1]=='script'): | if not (self.buffer[-2][0]==STARTTAG and \ self.buffer[-2][1]=='script'): | def jsEndElement (self, tag): """parse generated html for scripts""" if not self.buffer: print >>sys.stderr, "empty buffer on </script>" return if self.buffer[-1][0]!=DATA: print >>sys.stderr, "missing data for </script>", self.buffer[-1:] return script = self.buffer[-1][1].strip() del self.buffer[-1] if not (self.buff... | 3065d1c6c10f0c7943a3e34722dcd91e9c5a16f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/3065d1c6c10f0c7943a3e34722dcd91e9c5a16f5/Rewriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
1638,
1046,
261,
2890,
16,
1047,
4672,
3536,
2670,
4374,
1729,
364,
8873,
8395,
309,
486,
365,
18,
4106,
30,
1172,
1671,
9499,
18,
11241,
16,
315,
5531,
1613,
603,
7765,
4263,
2984... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
1638,
1046,
261,
2890,
16,
1047,
4672,
3536,
2670,
4374,
1729,
364,
8873,
8395,
309,
486,
365,
18,
4106,
30,
1172,
1671,
9499,
18,
11241,
16,
315,
5531,
1613,
603,
7765,
4263,
2984... |
def __init__(self, directory, parent, name = '', display_type = None, add_args = None): dt = display_type if display_type == 'tv': dt = 'video' elif not dt: dt = 'all' self.autovars = [ ('num_dir_items', 0), ('num_timestamp', 0), ('num_%s_items' % dt, 0)] | def __init__(self, directory, parent, name = '', display_type = None, add_args = None, create_metainfo=True): self.autovars = [ ('num_dir_items', 0) ] | def __init__(self, directory, parent, name = '', display_type = None, add_args = None): dt = display_type if display_type == 'tv': dt = 'video' elif not dt: dt = 'all' self.autovars = [ ('num_dir_items', 0), ('num_timestamp', 0), ('num_%s_items' % dt, 0)] | 6398e3de15a76a5b24fc7e42e85eaa712e2240ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/6398e3de15a76a5b24fc7e42e85eaa712e2240ea/directory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1867,
16,
982,
16,
508,
273,
10226,
2562,
67,
723,
273,
599,
16,
527,
67,
1968,
273,
599,
4672,
3681,
273,
2562,
67,
723,
309,
2562,
67,
723,
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,
1001,
2738,
972,
12,
2890,
16,
1867,
16,
982,
16,
508,
273,
10226,
2562,
67,
723,
273,
599,
16,
527,
67,
1968,
273,
599,
4672,
3681,
273,
2562,
67,
723,
309,
2562,
67,
723,
422,
296,... |
mlist = MailList.MailList(name) mlist._UpdateRecords() | def create_list(userdesc, perms, vhost, listname, desc, advertise, modlevel, inslevel, owners, members): """ Create a new list. @root """ name = vhost.lower() + VHOST_SEP + listname.lower(); if Utils.list_exists(name): return 0 owner = [] for o in owners: email = to_forlife(o)[0] if email is not None: owner.append(ema... | f72731f698b36c12306361fdd881a4a5ae9913e7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5724/f72731f698b36c12306361fdd881a4a5ae9913e7/lists.rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1098,
12,
1355,
5569,
16,
13793,
16,
16574,
16,
666,
529,
16,
3044,
16,
31553,
16,
681,
2815,
16,
2763,
2815,
16,
25937,
16,
4833,
4672,
3536,
1788,
279,
394,
666,
18,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1098,
12,
1355,
5569,
16,
13793,
16,
16574,
16,
666,
529,
16,
3044,
16,
31553,
16,
681,
2815,
16,
2763,
2815,
16,
25937,
16,
4833,
4672,
3536,
1788,
279,
394,
666,
18,
632,
... | |
self.stmt.bind(":" + pkey, pval) | try: self.stmt.bind(":" + pkey, pval) except _sqlite.ProgrammingError, e: if e.args[0] == "Bind parameter name unknown to the query": continue raise | def execute(self, SQL, *parms, **kwargs): # kwargs we won't attempt to bind to the query _nobind = ['start_transaction'] start_transaction = kwargs.get('start_transaction', True) SQL = SQL.strip() self._checkNotClosed("execute") startingTransaction = False | cd47f627e6eae0f1c22152e97bb5314238405adb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/cd47f627e6eae0f1c22152e97bb5314238405adb/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
3063,
16,
380,
29927,
16,
2826,
4333,
4672,
468,
1205,
732,
8462,
1404,
4395,
358,
1993,
358,
326,
843,
389,
82,
947,
728,
273,
10228,
1937,
67,
7958,
3546,
787,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
3063,
16,
380,
29927,
16,
2826,
4333,
4672,
468,
1205,
732,
8462,
1404,
4395,
358,
1993,
358,
326,
843,
389,
82,
947,
728,
273,
10228,
1937,
67,
7958,
3546,
787,
67... |
self.grid_view.set_width(button.index, button.allocation.width) | self.draw_line(x) self.set_column_width(button.index, x - button.allocation.x) self._do_layout() | def on_end_drag(self, button, x): try: self.grid_view.set_width(button.index, button.allocation.width) except: import traceback traceback.print_exc() self.draw_line(-100) self.last_x = None pass | ac69d9200fb82e0dbdb0425eb87f127d45de8eb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8273/ac69d9200fb82e0dbdb0425eb87f127d45de8eb1/query_view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
409,
67,
15997,
12,
2890,
16,
3568,
16,
619,
4672,
775,
30,
365,
18,
9446,
67,
1369,
12,
92,
13,
365,
18,
542,
67,
2827,
67,
2819,
12,
5391,
18,
1615,
16,
619,
300,
3568,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
409,
67,
15997,
12,
2890,
16,
3568,
16,
619,
4672,
775,
30,
365,
18,
9446,
67,
1369,
12,
92,
13,
365,
18,
542,
67,
2827,
67,
2819,
12,
5391,
18,
1615,
16,
619,
300,
3568,
... |
def CompileC(obj=0,src=0,ipath=[],opts=[]): | def CompileC(obj=0,src=0,ipath=[],opts=[],xdep=[]): | def CompileC(obj=0,src=0,ipath=[],opts=[]): global VERBOSE if ((obj==0)|(src==0)): sys.exit("syntax error in CompileC directive") ipath = [PREFIX+"/tmp"] + ipath + [PREFIX+"/include"] fullsrc = CxxFindSource(src, ipath) if (fullsrc == 0): sys.exit("Cannot find source file "+src) dep = CxxCalcDependencies(fullsrc, ipath... | a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
39,
12,
2603,
33,
20,
16,
4816,
33,
20,
16,
625,
421,
22850,
6487,
4952,
22850,
6487,
92,
15037,
33,
8526,
4672,
2552,
27857,
309,
14015,
2603,
631,
20,
14047,
12,
4816,
631,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
39,
12,
2603,
33,
20,
16,
4816,
33,
20,
16,
625,
421,
22850,
6487,
4952,
22850,
6487,
92,
15037,
33,
8526,
4672,
2552,
27857,
309,
14015,
2603,
631,
20,
14047,
12,
4816,
631,
20... |
if not os.path.exists(program): msg = redmsg("The simulator program [" + program + "] is missing. Simulation aborted.") env.history.message(cmd + msg) return -1 | if self.use_dylib_sim: self.dylib_path = os.path.dirname(program) worked = self.import_dylib_sim(self.dylib_path) if not worked: msg = redmsg("The simulator dynamic library [sim.so or sim.dylib or so, in " + self.dylib_path + "] is missing or could not be imported. Simulation aborted.") env.history.message(cmd + msg... | def set_options_errQ(self): #e maybe split further into several setup methods? #bruce 051115 removed unused 'options' arg """Set movie alist (from simaspect or entire part); debug-msg if it was already set (and always ignore old value). Figure out and set filenames, including sim executable path. All inputs and outputs... | f3729834a82fbace359ec6c263e7aa15df6e8351 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/f3729834a82fbace359ec6c263e7aa15df6e8351/runSim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2116,
67,
370,
53,
12,
2890,
4672,
468,
73,
6944,
1416,
9271,
1368,
11392,
3875,
2590,
35,
468,
2848,
3965,
15331,
2499,
3600,
3723,
10197,
296,
2116,
11,
1501,
3536,
694,
21360... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2116,
67,
370,
53,
12,
2890,
4672,
468,
73,
6944,
1416,
9271,
1368,
11392,
3875,
2590,
35,
468,
2848,
3965,
15331,
2499,
3600,
3723,
10197,
296,
2116,
11,
1501,
3536,
694,
21360... |
if invoice.state <> 'paid': | if invoice.state != 'paid': | def _invoiced(self, cursor, user, ids, name, arg, context=None): res = {} for sale in self.browse(cursor, user, ids, context=context): res[sale.id] = True for invoice in sale.invoice_ids: if invoice.state <> 'paid': res[sale.id] = False break if not sale.invoice_ids: res[sale.id] = False return res | fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16119,
72,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
400,
273,
2618,
364,
272,
5349,
316,
365,
18,
25731,
12,
9216,
16,
729,
16,
3258,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16119,
72,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
400,
273,
2618,
364,
272,
5349,
316,
365,
18,
25731,
12,
9216,
16,
729,
16,
3258,
... |
sage: D.cliques_node_clique_number() | sage: D.cliques_vertex_clique_number() | def cliques_node_clique_number(self, nodes=None, with_labels=False, cliques=None): r""" Returns a list of sizes of the largest maximal cliques containing each node. (Returns a single value if only one input node). | 139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
2159,
67,
4857,
1857,
67,
2696,
12,
2890,
16,
2199,
33,
7036,
16,
598,
67,
5336,
33,
8381,
16,
4942,
29896,
33,
7036,
4672,
436,
8395,
2860,
279,
666,
434,
8453,
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,
4942,
29896,
67,
2159,
67,
4857,
1857,
67,
2696,
12,
2890,
16,
2199,
33,
7036,
16,
598,
67,
5336,
33,
8381,
16,
4942,
29896,
33,
7036,
4672,
436,
8395,
2860,
279,
666,
434,
8453,
434,
... |
label='ok', name='fgColOkBtn', parent=self.panel3, pos=wxPoint(96, 32), size=wxSize(21, 21), style=0) | label='ok', name='fgColOkBtn', parent=self.panel3, pos=wxPoint(104, 32), size=wxSize(32, 21), style=0) | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi... | aac0471ac41eaa175cbaa05604248123746b2b22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/aac0471ac41eaa175cbaa05604248123746b2b22/STCStyleEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... |
self.title_label.y = vh | def on_resize(self, vw, vh): self.viewport_width, self.viewport_height = vw, vh | 65e9f511137b086a41a8405fe6961e5ad9de5285 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/541/65e9f511137b086a41a8405fe6961e5ad9de5285/python_interpreter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
15169,
12,
2890,
16,
331,
91,
16,
331,
76,
4672,
365,
18,
28852,
67,
2819,
16,
365,
18,
28852,
67,
4210,
273,
331,
91,
16,
331,
76,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
67,
15169,
12,
2890,
16,
331,
91,
16,
331,
76,
4672,
365,
18,
28852,
67,
2819,
16,
365,
18,
28852,
67,
4210,
273,
331,
91,
16,
331,
76,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self._global_variable_start = self._memory[0x0c] | self._global_variable_start = self.read_word(0x0c) | def __init__(self, initial_string): """Construct class based on a string that represents an initial 'snapshot' of main memory.""" if initial_string is None: raise ZMemoryBadInitialization | 2c4bd24306856d333302593d3270f26287c3ba05 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2052/2c4bd24306856d333302593d3270f26287c3ba05/zmemory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2172,
67,
1080,
4672,
3536,
7249,
667,
2511,
603,
279,
533,
716,
8686,
392,
2172,
296,
11171,
11,
434,
2774,
3778,
12123,
309,
2172,
67,
1080,
353,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2172,
67,
1080,
4672,
3536,
7249,
667,
2511,
603,
279,
533,
716,
8686,
392,
2172,
296,
11171,
11,
434,
2774,
3778,
12123,
309,
2172,
67,
1080,
353,
599,
... |
elif scheme == 'ckan' or scheme == 'db': | elif scheme in ('ckan', 'db', 'egg'): | def parse_spec(self, spec_str, all_index=False): '''Parse a a string into a `Spec`. | b8a2c6e1cce7bc1d43511c2707a35ed4a28c954b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12519/b8a2c6e1cce7bc1d43511c2707a35ed4a28c954b/spec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2793,
12,
2890,
16,
857,
67,
701,
16,
777,
67,
1615,
33,
8381,
4672,
9163,
3201,
279,
279,
533,
1368,
279,
1375,
1990,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2793,
12,
2890,
16,
857,
67,
701,
16,
777,
67,
1615,
33,
8381,
4672,
9163,
3201,
279,
279,
533,
1368,
279,
1375,
1990,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
cur.executemany('insert into booze values (%s)',largs) | cur.executemany( 'insert into %sbooze values (%%s)' % self.table_prefix, largs ) | def test_executemany(self): con = self._connect() try: cur = con.cursor() self.executeDDL1(cur) largs = [ ("Cooper's",) , ("Boag's",) ] margs = [ {'beer': "Cooper's"}, {'beer': "Boag's"} ] if self.driver.paramstyle == 'qmark': cur.executemany('insert into booze values (?)',largs) elif self.driver.paramstyle == 'numeric... | cfcc2c93bb2f3afff81cb651f606e164b84e739d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7955/cfcc2c93bb2f3afff81cb651f606e164b84e739d/dbapi20.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4177,
322,
351,
2273,
12,
2890,
4672,
356,
273,
365,
6315,
3612,
1435,
775,
30,
662,
273,
356,
18,
9216,
1435,
365,
18,
8837,
21293,
21,
12,
1397,
13,
328,
1968,
273,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4177,
322,
351,
2273,
12,
2890,
4672,
356,
273,
365,
6315,
3612,
1435,
775,
30,
662,
273,
356,
18,
9216,
1435,
365,
18,
8837,
21293,
21,
12,
1397,
13,
328,
1968,
273,
306,
... |
elif self.dicts[i]['SPol'] == 'down' or self.dicts[i]['SPol'] == 'poordown': | phase_compu += "U" elif self.dicts[i]['SPol'] == 'poorup': Sub(pick, "polarity").text = 'positive' phase_compu += "+" elif self.dicts[i]['SPol'] == 'down': | def hyp20002XML(self): """ Returns output of hypo2000 as xml file """ xml = Element("event") Sub(Sub(xml, "event_id"), "value").text = self.xmlEventID Sub(Sub(xml, "event_type"), "value").text = "manual" # we save P picks on Z-component and S picks on N-component # XXX standard values for unset keys!!!???!!!??? epidi... | a75f8f415abda37fa849d746dcf131eef65ddc52 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/a75f8f415abda37fa849d746dcf131eef65ddc52/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16117,
6976,
3103,
4201,
12,
2890,
4672,
3536,
2860,
876,
434,
16117,
83,
17172,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16117,
6976,
3103,
4201,
12,
2890,
4672,
3536,
2860,
876,
434,
16117,
83,
17172,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
67... |
print "Caught expected exception:", e | pass | def expect_parse_error(exctype, src): cf = ConfigParser.ConfigParser() sio = StringIO.StringIO(src) try: cf.readfp(sio) except exctype, e: print "Caught expected exception:", e else: print "Failed to catch expected", exctype.__name__ | 95b96d3941b739017f69b8ac695ca1ac25073a55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/95b96d3941b739017f69b8ac695ca1ac25073a55/test_cfgparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
67,
2670,
67,
1636,
12,
338,
12387,
16,
1705,
4672,
6080,
273,
25076,
18,
809,
2678,
1435,
272,
1594,
273,
15777,
18,
780,
4294,
12,
4816,
13,
775,
30,
6080,
18,
896,
7944,
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,
4489,
67,
2670,
67,
1636,
12,
338,
12387,
16,
1705,
4672,
6080,
273,
25076,
18,
809,
2678,
1435,
272,
1594,
273,
15777,
18,
780,
4294,
12,
4816,
13,
775,
30,
6080,
18,
896,
7944,
12,
... |
filter_taps = gr.firdes.low_pass(1.0, input_rate, filter_cutoff, filter_t_width, gr.firdes.WIN_HAMMING) self.filter = gr.freq_xlating_fir_filter_ccf(1, filter_taps, offset, input_rate) | filter_taps = gr.firdes.low_pass(1.0, self.input_rate, filter_cutoff, filter_t_width, gr.firdes.WIN_HAMMING) self.filter = gr.freq_xlating_fir_filter_ccf(1, filter_taps, offset, self.input_rate) self.connect(self.source, self.filter) def setup_f_flowgraph(self): self.demod = gr.quadrature_demod_cf(self.sps); gai... | def __init__(self, frame, panel, vbox, argv): stdgui.gui_flow_graph.__init__(self) | b5a766ad3cf7ace8184a93912fcda3cbfb5c1279 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10611/b5a766ad3cf7ace8184a93912fcda3cbfb5c1279/gsm_scan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2623,
16,
6594,
16,
331,
2147,
16,
5261,
4672,
2044,
20292,
18,
20292,
67,
2426,
67,
4660,
16186,
2738,
972,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
2623,
16,
6594,
16,
331,
2147,
16,
5261,
4672,
2044,
20292,
18,
20292,
67,
2426,
67,
4660,
16186,
2738,
972,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-10... |
def script_dict(): | def script_dict(fname): | def script_dict(): script = {} tog = create_toggle() script[tog] = 'javascript' script['http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'] = 'javascript' return (script, [tog]) | 2e13ec1a8bfd2a59937bc84467369dc4df31c448 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/2e13ec1a8bfd2a59937bc84467369dc4df31c448/cbcwebpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
67,
1576,
12,
12749,
4672,
2728,
273,
2618,
6316,
273,
752,
67,
14401,
1435,
2728,
63,
88,
717,
65,
273,
296,
11242,
11,
2728,
3292,
2505,
2207,
12813,
18,
9536,
18590,
18,
832,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
67,
1576,
12,
12749,
4672,
2728,
273,
2618,
6316,
273,
752,
67,
14401,
1435,
2728,
63,
88,
717,
65,
273,
296,
11242,
11,
2728,
3292,
2505,
2207,
12813,
18,
9536,
18590,
18,
832,
... |
def test_splu(self): | def test_splu_smoketest(self): | def test_splu(self): x = random.rand(self.n) lu = splu(self.A) r = self.A*lu.solve(x) assert abs(x - r).max() < 1e-13 | 660222bce6bff6655e18d16159dc219d9d461d6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/660222bce6bff6655e18d16159dc219d9d461d6e/test_linsolve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13106,
89,
67,
4808,
601,
278,
395,
12,
2890,
4672,
225,
619,
273,
2744,
18,
7884,
12,
2890,
18,
82,
13,
20072,
273,
6121,
89,
12,
2890,
18,
37,
13,
436,
273,
365,
18,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13106,
89,
67,
4808,
601,
278,
395,
12,
2890,
4672,
225,
619,
273,
2744,
18,
7884,
12,
2890,
18,
82,
13,
20072,
273,
6121,
89,
12,
2890,
18,
37,
13,
436,
273,
365,
18,
37... |
"AND (reconcile_id IS NULL) " \ | def _get_lines(self, form): res = [] account_move_line_obj = pooler.get_pool(self.cr.dbname).get('account.move.line') line_query = account_move_line_obj._query_get(self.cr, self.uid, obj='line', context={'fiscalyear': form['fiscalyear']}) cat = form['category'] self.acc_type = (cat == 'Supplier' and "('payable')") or ... | 934ff6d6df03f045c6fb000044f3884bd16ebee5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/934ff6d6df03f045c6fb000044f3884bd16ebee5/aged_trial_balance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3548,
12,
2890,
16,
646,
4672,
400,
273,
5378,
2236,
67,
8501,
67,
1369,
67,
2603,
273,
2845,
264,
18,
588,
67,
6011,
12,
2890,
18,
3353,
18,
20979,
2934,
588,
2668,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3548,
12,
2890,
16,
646,
4672,
400,
273,
5378,
2236,
67,
8501,
67,
1369,
67,
2603,
273,
2845,
264,
18,
588,
67,
6011,
12,
2890,
18,
3353,
18,
20979,
2934,
588,
2668,
46... | |
def __init__( self, path=None, checkEnv=1, minLen=3, **vars ): | def __init__( self, path=None, checkEnv=1, minLen=3, maxSub=1, absolute=1, resolveLinks=0, **vars ): | def __init__( self, path=None, checkEnv=1, minLen=3, **vars ): """ Create a new environment-dependent path from either a list of fragments and their substitution variable names or from a path or from a formatted string (not implemented). A path will be analyzed to substitute as big chunks as possible by environment var... | 3c3e49363a7a3c916b648c6154d8aef255c31d3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/3c3e49363a7a3c916b648c6154d8aef255c31d3e/LocalPath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
589,
33,
7036,
16,
866,
3491,
33,
21,
16,
1131,
2891,
33,
23,
16,
943,
1676,
33,
21,
16,
4967,
33,
21,
16,
2245,
7100,
33,
20,
16,
225,
2826,
4699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
589,
33,
7036,
16,
866,
3491,
33,
21,
16,
1131,
2891,
33,
23,
16,
943,
1676,
33,
21,
16,
4967,
33,
21,
16,
2245,
7100,
33,
20,
16,
225,
2826,
4699,
... |
time.sleep(10) | time.sleep(30) | def test_module(module_name, module_file_list): """ <Purpose> Execute all test files contained within module_file_list matching the module_name in the form of each test file name 'ut_<module_name>_<descriptor>.py' <Arguments> module_name: module name to be tested module_file_list: a list of files to be filtered by mod... | 62d38796680cf39be37739fcad4ef8a8118404d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7995/62d38796680cf39be37739fcad4ef8a8118404d5/utf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2978,
12,
2978,
67,
529,
16,
1605,
67,
768,
67,
1098,
4672,
3536,
411,
10262,
4150,
34,
7903,
777,
1842,
1390,
7542,
3470,
1605,
67,
768,
67,
1098,
3607,
326,
1605,
67,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2978,
12,
2978,
67,
529,
16,
1605,
67,
768,
67,
1098,
4672,
3536,
411,
10262,
4150,
34,
7903,
777,
1842,
1390,
7542,
3470,
1605,
67,
768,
67,
1098,
3607,
326,
1605,
67,
529,
... |
self.child = childapp.ChildApp2(arg) | self.child = childapp.ChildApp2(arg, stop_osd=0) | def restart(self): """ Restart the display. This will restart the background video to make the canvas work. """ _debug_('restart bmovl2') if self.start_video and not self.child: import childapp arg = [config.MPLAYER_CMD] + self.mplayer_args.split(' ') + \ [config.OSD_BACKGROUND_VIDEO] self.child = childapp.ChildApp2(ar... | fe60ecc836ab34b360237be67d705e8bbdae258f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/fe60ecc836ab34b360237be67d705e8bbdae258f/bmovl2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7870,
12,
2890,
4672,
3536,
20709,
326,
2562,
18,
1220,
903,
7870,
326,
5412,
6191,
358,
1221,
326,
5953,
1440,
18,
3536,
389,
4148,
67,
2668,
19164,
18829,
1527,
80,
22,
6134,
309,
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,
7870,
12,
2890,
4672,
3536,
20709,
326,
2562,
18,
1220,
903,
7870,
326,
5412,
6191,
358,
1221,
326,
5953,
1440,
18,
3536,
389,
4148,
67,
2668,
19164,
18829,
1527,
80,
22,
6134,
309,
365,... |
self._check() if not self._loaded: self._load() return self.membernames | return [tarinfo.name for tarinfo in self.getmembers()] | def getnames(self): """Return the members of the archive as a list of their names. It has the same order as the list returned by getmembers(). """ self._check() if not self._loaded: self._load() return self.membernames | d0fb0ac63c5db48d344c6e8e8dab57214f04e854 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d0fb0ac63c5db48d344c6e8e8dab57214f04e854/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1973,
12,
2890,
4672,
3536,
990,
326,
4833,
434,
326,
5052,
487,
279,
666,
434,
3675,
1257,
18,
2597,
711,
326,
1967,
1353,
487,
326,
666,
2106,
635,
336,
7640,
7675,
3536,
365,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1973,
12,
2890,
4672,
3536,
990,
326,
4833,
434,
326,
5052,
487,
279,
666,
434,
3675,
1257,
18,
2597,
711,
326,
1967,
1353,
487,
326,
666,
2106,
635,
336,
7640,
7675,
3536,
365,
6... |
else: return 0 | else: return 1 | def isLastUserTextLine(linenum): if (linenum < len(lines)): if getLineType(linenum+1) != 'usertext': return 1 else: return 0 else: return 0 | 205dc77afcd0947155f1616e31da8b63c19d81a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6154/205dc77afcd0947155f1616e31da8b63c19d81a9/otl2tags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23075,
1299,
1528,
1670,
12,
7511,
7924,
4672,
309,
261,
7511,
7924,
411,
562,
12,
3548,
3719,
30,
309,
9851,
559,
12,
7511,
7924,
15,
21,
13,
480,
296,
1355,
955,
4278,
327,
404,
469,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23075,
1299,
1528,
1670,
12,
7511,
7924,
4672,
309,
261,
7511,
7924,
411,
562,
12,
3548,
3719,
30,
309,
9851,
559,
12,
7511,
7924,
15,
21,
13,
480,
296,
1355,
955,
4278,
327,
404,
469,... |
self.parser.processStartTag(self, name) | self.parser.processStartTag(name, attributes) | def startTagOther(self, name): self.parser.switchInsertionMode("inTable") self.parser.processStartTag(self, name) | b0d0689f6cbb1bd6f3d02d0facb874bc0c678a52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/b0d0689f6cbb1bd6f3d02d0facb874bc0c678a52/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
8290,
12,
2890,
16,
508,
4672,
365,
18,
4288,
18,
9610,
29739,
2309,
2932,
267,
1388,
7923,
365,
18,
4288,
18,
2567,
30512,
12,
2890,
16,
508,
13,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
8290,
12,
2890,
16,
508,
4672,
365,
18,
4288,
18,
9610,
29739,
2309,
2932,
267,
1388,
7923,
365,
18,
4288,
18,
2567,
30512,
12,
2890,
16,
508,
13,
2,
-100,
-100,
-100,
-100,... |
'AND ( planned_date >= %s)) '\ | 'AND ( planned_date >= %s OR planned_date IS NULL)) '\ | def products_by_location(self, cursor, user, location_ids, product_ids=None, with_childs=False, skip_zero=True, context=None): """ Compute for each location and product the stock quantity in the default uom of the product. | 4ec9e17a1a2764f8ea2f273f6195da4f595db87c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/4ec9e17a1a2764f8ea2f273f6195da4f595db87c/product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10406,
67,
1637,
67,
3562,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
2232,
16,
3017,
67,
2232,
33,
7036,
16,
598,
67,
3624,
87,
33,
8381,
16,
2488,
67,
7124,
33,
5510,
16,
819,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10406,
67,
1637,
67,
3562,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
2232,
16,
3017,
67,
2232,
33,
7036,
16,
598,
67,
3624,
87,
33,
8381,
16,
2488,
67,
7124,
33,
5510,
16,
819,
33... |
new_link = self.req.lastEffectiveURL | new_link = self.req.lastEffectiveURL | def proceed(self, url, location): container_id = self.parent.url.split("/")[-1].split("id=")[-1] url = "http://relink.us/view.php?id="+container_id self.html = self.req.load(url, cookies=True) temp_links = [] | 20a3ae56f5eea95a0f9641eabb273e0410fe2309 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/20a3ae56f5eea95a0f9641eabb273e0410fe2309/RelinkUs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11247,
12,
2890,
16,
880,
16,
2117,
4672,
1478,
67,
350,
273,
365,
18,
2938,
18,
718,
18,
4939,
2932,
4898,
13,
18919,
21,
8009,
4939,
2932,
350,
1546,
13,
18919,
21,
65,
880,
273,
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,
11247,
12,
2890,
16,
880,
16,
2117,
4672,
1478,
67,
350,
273,
365,
18,
2938,
18,
718,
18,
4939,
2932,
4898,
13,
18919,
21,
8009,
4939,
2932,
350,
1546,
13,
18919,
21,
65,
880,
273,
3... |
proc = subprocess.Popen(all, stdin=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE, cwd=cwd, shell=(sys.platform=='win32'), env=clean_environ(self.environ)) stdout, stderr = proc.communicate(stdin) | if debug: proc = subprocess.Popen(all, cwd=cwd, shell=(sys.platform=='win32'), env=clean_environ(self.environ)) else: proc = subprocess.Popen(all, stdin=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE, cwd=cwd, shell=(sys.platform=='win32'), env=clean_environ(self.environ)) if debug: stdout,stderr = pr... | def run(self, script, *args, **kw): """ Run the command, with the given arguments. The ``script`` argument can have space-separated arguments, or you can use the positional arguments. | fd6372480973c7f158f15aa967a6483a10f68925 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8710/fd6372480973c7f158f15aa967a6483a10f68925/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
2728,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
1939,
326,
1296,
16,
598,
326,
864,
1775,
18,
225,
1021,
12176,
4263,
10335,
1237,
848,
1240,
3476,
17,
24622,
1775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
2890,
16,
2728,
16,
380,
1968,
16,
2826,
9987,
4672,
3536,
1939,
326,
1296,
16,
598,
326,
864,
1775,
18,
225,
1021,
12176,
4263,
10335,
1237,
848,
1240,
3476,
17,
24622,
1775,
... |
if not outfile: raise AlignerError, 'T-Coffee -output also requires -outfile' | if not outfile: raise AlignerError, 'T-Coffee -output also requires -outfile' | def coffee_align_inp( self, input, method=None, out_lib=None, output=None, outfile=None, **kw ): """ Create a single t_coffee command. @param input: list of input files @type input: [str] @param method: t_coffee method ('M' is added automatically) (default:None) @type method: str @param output: output format(s) (def... | 406e82ca95520c7badb9dbb830cadd182e043ec6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/406e82ca95520c7badb9dbb830cadd182e043ec6/Aligner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
3674,
1340,
67,
7989,
67,
31647,
12,
365,
16,
810,
16,
707,
33,
7036,
16,
596,
67,
2941,
33,
7036,
16,
876,
33,
7036,
16,
8756,
33,
7036,
16,
2826,
9987,
262,
30,
3536,
1788,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
3674,
1340,
67,
7989,
67,
31647,
12,
365,
16,
810,
16,
707,
33,
7036,
16,
596,
67,
2941,
33,
7036,
16,
876,
33,
7036,
16,
8756,
33,
7036,
16,
2826,
9987,
262,
30,
3536,
1788,
... |
def set_from_file(str): | def set_from_file(self, str): | def set_from_file(str): ''' Calls set_from_file on the gtk.Image for the tray icon ''' if not self.use_tray: return self.pic.set_from_file(str) | 264e343e30b68cf94408ea4fe36402a7fc22dda1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12280/264e343e30b68cf94408ea4fe36402a7fc22dda1/wicd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2080,
67,
768,
12,
2890,
16,
609,
4672,
9163,
23665,
444,
67,
2080,
67,
768,
603,
326,
22718,
18,
2040,
364,
326,
268,
435,
4126,
9163,
309,
486,
365,
18,
1202,
67,
313,
528... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2080,
67,
768,
12,
2890,
16,
609,
4672,
9163,
23665,
444,
67,
2080,
67,
768,
603,
326,
22718,
18,
2040,
364,
326,
268,
435,
4126,
9163,
309,
486,
365,
18,
1202,
67,
313,
528... |
help='Display program version') | help=_('Display program version')) | def parse_options(): """Parse the command line options""" usage = "usage: %prog [options]" configobj = config.Config() parser = OptionParser(usage) parser.add_option('-v', '--version', action='store_true', dest='version', help='Display program version') parser.add_option('-m', '--maximise', action='store_true', dest=... | c8a33cd91acb118383b79fea2168ab03f7c8703c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1032/c8a33cd91acb118383b79fea2168ab03f7c8703c/optionparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
13332,
3536,
3201,
326,
1296,
980,
702,
8395,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
225,
642,
2603,
273,
642,
18,
809,
1435,
2082,
273,
18862,
12,
9167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
13332,
3536,
3201,
326,
1296,
980,
702,
8395,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
225,
642,
2603,
273,
642,
18,
809,
1435,
2082,
273,
18862,
12,
9167,
... |
rate = to_currency.rate/from_currency.rate if account and (account.currency_mode=='average') and account.currency_id: q = self.pool.get('account.move.line')._query_get(cr, uid, context=context) cr.execute('select sum(debit-credit),sum(amount_currency) from account_move_line l ' \ 'where l.currency_id=%s and l.account_i... | return to_currency.rate/from_currency.rate def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None): if not from_currency_id: from_currency_id = to_currency_id if not to_currency_id: to_currency_id = from_currency_id xc = self.browse(cr, uid, [from_currency_id,to_currency_id]... | def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None, account=None, account_invert=False): if context is None: context = {} if not from_currency_id: from_currency_id = to_currency_id if not to_currency_id: to_currency_id = from_currency_id xc = self.browse(cr, uid, [from_cu... | 342857ee74d4ba849a7544c356a431377efd706c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/342857ee74d4ba849a7544c356a431377efd706c/res_currency.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
12,
2890,
16,
4422,
16,
4555,
16,
628,
67,
7095,
67,
350,
16,
358,
67,
7095,
67,
350,
16,
628,
67,
8949,
16,
3643,
33,
5510,
16,
819,
33,
7036,
16,
2236,
33,
7036,
16,
2236,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
12,
2890,
16,
4422,
16,
4555,
16,
628,
67,
7095,
67,
350,
16,
358,
67,
7095,
67,
350,
16,
628,
67,
8949,
16,
3643,
33,
5510,
16,
819,
33,
7036,
16,
2236,
33,
7036,
16,
2236,
... |
pat = re.compile('^([0-9]+) ?(.*)\n?') resp, lines = self.longcmd('XHDR ' + hdr + ' ' + str, file) | pat = re.compile(b'^([0-9]+) ?(.*)\n?') resp, lines = self.longcmd('XHDR {0} {1}'.format(hdr, str), file) | def xhdr(self, hdr, str, file=None): """Process an XHDR command (optional server extension). Arguments: - hdr: the header type (e.g. 'subject') - str: an article nr, a message id, or a range nr1-nr2 Returns: - resp: server response if successful - list: list of (nr, value) strings""" | eb96c4e975fd746fcc8b85f47c3592472b8d6b15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/eb96c4e975fd746fcc8b85f47c3592472b8d6b15/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
16587,
12,
2890,
16,
7723,
16,
609,
16,
585,
33,
7036,
4672,
3536,
2227,
392,
1139,
44,
6331,
1296,
261,
10444,
1438,
2710,
2934,
225,
13599,
30,
300,
7723,
30,
326,
1446,
618,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
16587,
12,
2890,
16,
7723,
16,
609,
16,
585,
33,
7036,
4672,
3536,
2227,
392,
1139,
44,
6331,
1296,
261,
10444,
1438,
2710,
2934,
225,
13599,
30,
300,
7723,
30,
326,
1446,
618,
26... |
this = apply(_quickfix.new_NoSettlPartyIDs, args) | this = _quickfix.new_NoSettlPartyIDs(*args) | def __init__(self, *args): this = apply(_quickfix.new_NoSettlPartyIDs, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2279,
694,
6172,
17619,
5103,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2279,
694,
6172,
17619,
5103,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
... |
if self.status[1] and not percent: | if not percent: | def SetStatus(self,message="",percent=""): """Sets self.status variable according to given message and percents""" | d0a560191412520a1799935bb425b9158c7e51a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10967/d0a560191412520a1799935bb425b9158c7e51a8/process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21753,
12,
2890,
16,
2150,
1546,
3113,
8849,
1546,
6,
4672,
3536,
2785,
365,
18,
2327,
2190,
4888,
358,
864,
883,
471,
5551,
87,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21753,
12,
2890,
16,
2150,
1546,
3113,
8849,
1546,
6,
4672,
3536,
2785,
365,
18,
2327,
2190,
4888,
358,
864,
883,
471,
5551,
87,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
else: raise e | except u2.URLError, e: if "SSL23_GET_SERVER_HELLO" in str(e): log.warning("Activating SSL workaround") CheckingHTTPSConnection.FORCE_SSL_VERSION = ssl.PROTOCOL_SSLv3 elif "ASN1_item_verify:unknown message digest algorithm" in str(e): log.warning("Turning off server certificate check to work \ around a bug in Pyt... | def do(): if self.urlopener is None: return u2.urlopen(u2request) else: return self.urlopener.open(u2request) | b059f0117349280b9b66374ea5a15d3da237258c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10685/b059f0117349280b9b66374ea5a15d3da237258c/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
13332,
309,
365,
18,
295,
16884,
708,
353,
599,
30,
327,
582,
22,
18,
295,
18589,
12,
89,
22,
2293,
13,
469,
30,
327,
365,
18,
295,
16884,
708,
18,
3190,
12,
89,
22,
2293,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
13332,
309,
365,
18,
295,
16884,
708,
353,
599,
30,
327,
582,
22,
18,
295,
18589,
12,
89,
22,
2293,
13,
469,
30,
327,
365,
18,
295,
16884,
708,
18,
3190,
12,
89,
22,
2293,
13,... |
STRING '"ABC"' (1, 4) (1, 10) | STRING '"ABC"' (1, 4) (1, 9) OP '+' (1, 10) (1, 11) STRING '"ABC"' (1, 12) (1, 17) >>> dump_tokens("x = r'abc' + r'ABC' + R'ABC' + R'ABC'") NAME 'x' (1, 0) (1, 1) OP '=' (1, 2) (1, 3) STRING "r'abc'" (1, 4) (1, 10) | ... " def y(m): # A whitespace after the colon\\n" | 1fbae9878cfa20d661d49e29e47c6085f32923a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/1fbae9878cfa20d661d49e29e47c6085f32923a3/test_tokenize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
6647,
315,
225,
1652,
677,
12,
81,
4672,
468,
432,
7983,
1839,
326,
13336,
1695,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
6647,
315,
225,
1652,
677,
12,
81,
4672,
468,
432,
7983,
1839,
326,
13336,
1695,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
raise SystemExit, "Incompatible configuration, IE cookies must use mechanize. please install and configure mechanize" | raise SystemExit( "Incompatible configuration, IE cookies must use mechanize. please install and configure mechanize") | def check(self): global mechanize if not self['global']['urllib'] and not mechanize: logStatusMsg( 'Using urllib2 instead of mechanize. setting urllib = True', 1, False) self['global']['urllib'] = True if 'saveFile' not in self['global'] or self['global']['saveFile'] == None: self['global']['saveFile'] = u'savedstate.... | 15efa811c3a3c7e375db44557ec2cc39fdd58d98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/15efa811c3a3c7e375db44557ec2cc39fdd58d98/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
2552,
1791,
7472,
554,
309,
486,
365,
3292,
6347,
21712,
718,
2941,
3546,
471,
486,
1791,
7472,
554,
30,
613,
1482,
3332,
12,
296,
7736,
11527,
22,
3560,
434,
1791,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
2552,
1791,
7472,
554,
309,
486,
365,
3292,
6347,
21712,
718,
2941,
3546,
471,
486,
1791,
7472,
554,
30,
613,
1482,
3332,
12,
296,
7736,
11527,
22,
3560,
434,
1791,
... |
self.properties = self.record_class(uid, record_properties) record = self.properties | get_datatype = self.get_datatype self.properties = record | def _load_state_from_file(self, file): # Load the records records = self.records properties = self.properties record_properties = self.record_properties | 26d99911f1b7829e3a61fce3532e97a191aa5db0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/26d99911f1b7829e3a61fce3532e97a191aa5db0/table.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
2019,
67,
2080,
67,
768,
12,
2890,
16,
585,
4672,
468,
4444,
326,
3853,
3853,
273,
365,
18,
7094,
1790,
273,
365,
18,
4738,
1409,
67,
4738,
273,
365,
18,
3366,
67,
4738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
2019,
67,
2080,
67,
768,
12,
2890,
16,
585,
4672,
468,
4444,
326,
3853,
3853,
273,
365,
18,
7094,
1790,
273,
365,
18,
4738,
1409,
67,
4738,
273,
365,
18,
3366,
67,
4738... |
self.icon.append_overlay(self.textOverlay) | self.icon.get_effects().add_overlay(self.textOverlay) | def TextOverlay(self, widget, *args, **kwargs): if widget.get_active(): self.textOverlay = awn.OverlayText() self.textOverlay.props.text = "hello" self.icon.append_overlay(self.textOverlay) elif self.textOverlay != None: self.icon.remove_overlay(self.textOverlay) self.textOverlay = None | 39d8566e3ad22d0a8dba8b48029b1cedb1ed8c3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/39d8566e3ad22d0a8dba8b48029b1cedb1ed8c3d/test-overlays.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3867,
11627,
12,
2890,
16,
3604,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
3604,
18,
588,
67,
3535,
13332,
365,
18,
955,
11627,
273,
1690,
82,
18,
11627,
1528,
1435,
365,
18,
955,
1162... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3867,
11627,
12,
2890,
16,
3604,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
3604,
18,
588,
67,
3535,
13332,
365,
18,
955,
11627,
273,
1690,
82,
18,
11627,
1528,
1435,
365,
18,
955,
1162... |
for m_unused in range(course.moves): course.next() w = course.sector() | for m_unused in range(wcourse.moves): wcourse.next() w = wcourse.sector() | def warp(course, involuntary): "ove under warp drive." blooey = False; twarp = False if not involuntary: # Not WARPX entry game.ididit = False if game.damage[DWARPEN] > 10.0: scanner.chew() skip(1) prout(_("Engineer Scott- \"The warp engines are damaged, Sir.\"")) return if damaged(DWARPEN) and game.warpfac > 4.0: scan... | b8ffe91a83c83c29cc1a574e3fc2d857d582df33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/b8ffe91a83c83c29cc1a574e3fc2d857d582df33/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
11441,
12,
5566,
16,
29876,
10032,
814,
4672,
315,
841,
3613,
341,
11441,
14316,
1199,
324,
383,
83,
402,
273,
1083,
31,
268,
905,
84,
273,
1083,
309,
486,
29876,
10032,
814,
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,
341,
11441,
12,
5566,
16,
29876,
10032,
814,
4672,
315,
841,
3613,
341,
11441,
14316,
1199,
324,
383,
83,
402,
273,
1083,
31,
268,
905,
84,
273,
1083,
309,
486,
29876,
10032,
814,
30,
... |
data = '<style:style style:name="%s" style:family="%s"/>' element = odf_create_element(data % (name.encode('utf_8'), family)) | data = u'<style:style style:name="%s" style:family="%s"/>' element = odf_create_element(data % (name, family)) | def odf_create_style(name, family, area=None, **kw): """Create a style element with the given name, related to the given family. Arguments: name -- unicode family -- 'paragraph', 'text', 'section', 'table', 'tablecolumn', 'table-row', 'table-cell', 'table-page', 'chart', 'default', 'drawing-page', 'graphic', 'presen... | 96d2f162f95ccfef7171225af9d3c7cc2ead856c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/96d2f162f95ccfef7171225af9d3c7cc2ead856c/document.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
320,
2180,
67,
2640,
67,
4060,
12,
529,
16,
6755,
16,
5091,
33,
7036,
16,
2826,
9987,
4672,
3536,
1684,
279,
2154,
930,
598,
326,
864,
508,
16,
3746,
358,
326,
864,
6755,
18,
225,
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,
320,
2180,
67,
2640,
67,
4060,
12,
529,
16,
6755,
16,
5091,
33,
7036,
16,
2826,
9987,
4672,
3536,
1684,
279,
2154,
930,
598,
326,
864,
508,
16,
3746,
358,
326,
864,
6755,
18,
225,
13... |
log.info('checking took %s seconds' % \ (float(int((time.time() - ctime) * 100)) / 100)) | log.info('checking took %2.2f seconds' % (t2 - t1)) | def __check_recordings(self): """ Check the current recordings. This includes checking conflicts, removing old entries. At the end, the timer is set for the next recording. """ notifier.removeTimer(self.check_timer) self.check_timer = None | 5421d8532f24305e08b454394e8fb3faf306197f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/5421d8532f24305e08b454394e8fb3faf306197f/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
67,
3366,
899,
12,
2890,
4672,
3536,
2073,
326,
783,
1409,
899,
18,
1220,
6104,
6728,
14450,
16,
9427,
1592,
3222,
18,
2380,
326,
679,
16,
326,
5441,
353,
444,
364,
326,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
67,
3366,
899,
12,
2890,
4672,
3536,
2073,
326,
783,
1409,
899,
18,
1220,
6104,
6728,
14450,
16,
9427,
1592,
3222,
18,
2380,
326,
679,
16,
326,
5441,
353,
444,
364,
326,
10... |
try: num_val = int(val) num_color = self.cal_sel[num_val][0] except: num_color = self.day_font_color self.DC.SetTextForeground(wx.NamedColour(num_color)) self.DC.SetFont(f) tw,th = self.DC.GetTextExtent(val) if self.num_align_horz == wx.ALIGN_CENTRE: adj_h = (self.dl_w - tw)/2 elif self.num_align_horz == wx.ALIGN_RI... | self.DrawDayText(x, y, val, f, DC) | def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
2578,
12,
2890,
4672,
284,
273,
7075,
18,
5711,
12,
2163,
16,
365,
18,
5776,
16,
7075,
18,
15480,
16,
365,
18,
16390,
13,
1377,
468,
2172,
3512,
3637,
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,
10184,
2578,
12,
2890,
4672,
284,
273,
7075,
18,
5711,
12,
2163,
16,
365,
18,
5776,
16,
7075,
18,
15480,
16,
365,
18,
16390,
13,
1377,
468,
2172,
3512,
3637,
2,
-100,
-100,
-100,
-100,... |
def main(): | def main(argv=None): if argv is None: argv = sys.argv | def main(): print "Loading app..." app = SUMIApp() print "Running main loop" app.MainLoop() | cc4862e5280b4cad787127dae3540584af491c43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2496/cc4862e5280b4cad787127dae3540584af491c43/sumigetw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
225,
1172,
315,
10515,
595,
7070,
595,
273,
22595,
45,
3371,
1435,
1172,
315,
7051,
2774,
2798,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
225,
1172,
315,
10515,
595,
7070,
595,
273,
22595,
45,
3371,
1435,
1172,
315,
7051,
2774,
2798,
6,
... |
sage: G = CyclicPermutationGroup(4) | sage: G = CyclicPermutationGroup(4) | def has_element(self, item): """ Returns boolean value of "item in self" - however *ignores* parentage. EXAMPLES:: sage: G = CyclicPermutationGroup(4) sage: gens = G.gens() sage: H = DihedralGroup(4) sage: g = G([(1,2,3,4)]); g (1,2,3,4) sage: G.has_element(g) True sage: h = H([(1,2),(3,4)]); h (1,2)(3,4) sage: G.has... | 895e1ae73086b953ed8633605c018ded03126ea2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/895e1ae73086b953ed8633605c018ded03126ea2/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
2956,
12,
2890,
16,
761,
4672,
3536,
2860,
1250,
460,
434,
315,
1726,
316,
365,
6,
300,
14025,
380,
724,
3485,
14,
982,
410,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
2956,
12,
2890,
16,
761,
4672,
3536,
2860,
1250,
460,
434,
315,
1726,
316,
365,
6,
300,
14025,
380,
724,
3485,
14,
982,
410,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
... |
def done(self): | def done (self): | def done(self): """ Thread-safe property to know whether the query is done or not """ self._lock.acquire(True) res = self._done self._lock.release() return res | d216d8a9b466ef64ff0c84deaaf05c81d82ee5b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11070/d216d8a9b466ef64ff0c84deaaf05c81d82ee5b2/youtube.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2731,
261,
2890,
4672,
3536,
4884,
17,
4626,
1272,
358,
5055,
2856,
326,
843,
353,
2731,
578,
486,
3536,
365,
6315,
739,
18,
1077,
1039,
12,
5510,
13,
400,
273,
365,
6315,
8734,
365,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2731,
261,
2890,
4672,
3536,
4884,
17,
4626,
1272,
358,
5055,
2856,
326,
843,
353,
2731,
578,
486,
3536,
365,
6315,
739,
18,
1077,
1039,
12,
5510,
13,
400,
273,
365,
6315,
8734,
365,
6... |
log.error("one = expected in '%s' argument to changeset", | log.error("one -- expected in change spec '%s'", | def parseChangeList(changeSpecList, keepExisting=False, updateByDefault=True, allowChangeSets=True): """ Takes input specifying changeSpecs, such as foo=1.1--1.2, and turns it into (name, (oldVersionSpec, oldFlavorSpec), (newVersionSpec, newFlavorSpec), isAbsolute) tuples. """ applyList = [] if isinstance(changeSpecLi... | 8f4cd8cc2d5f99be1817823977118182fcdce7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/8f4cd8cc2d5f99be1817823977118182fcdce7aa/cmdline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3043,
682,
12,
3427,
1990,
682,
16,
3455,
9895,
33,
8381,
16,
1089,
858,
1868,
33,
5510,
16,
1699,
3043,
2785,
33,
5510,
4672,
3536,
23004,
810,
13664,
2549,
15999,
16,
4123,
487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3043,
682,
12,
3427,
1990,
682,
16,
3455,
9895,
33,
8381,
16,
1089,
858,
1868,
33,
5510,
16,
1699,
3043,
2785,
33,
5510,
4672,
3536,
23004,
810,
13664,
2549,
15999,
16,
4123,
487,
... |
tmp_file.close() | _sync_close(tmp_file) | def add(self, message): """Add message and return assigned key.""" tmp_file = self._create_tmp() try: self._dump_message(message, tmp_file) finally: tmp_file.close() if isinstance(message, MaildirMessage): subdir = message.get_subdir() suffix = self.colon + message.get_info() if suffix == self.colon: suffix = '' else: ... | 8ba93340239e9367a61af33247d38c0ac2c18dd9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8ba93340239e9367a61af33247d38c0ac2c18dd9/mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
883,
4672,
3536,
986,
883,
471,
327,
6958,
498,
12123,
1853,
67,
768,
273,
365,
6315,
2640,
67,
5645,
1435,
775,
30,
365,
6315,
8481,
67,
2150,
12,
2150,
16,
1853,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
883,
4672,
3536,
986,
883,
471,
327,
6958,
498,
12123,
1853,
67,
768,
273,
365,
6315,
2640,
67,
5645,
1435,
775,
30,
365,
6315,
8481,
67,
2150,
12,
2150,
16,
1853,
... |
hns = dummy() | hns = copy.copy(_hidden_namespace) | def run( self ): hns = dummy() hns.OUTPUT = cStringIO.StringIO() sys.stdout = hns.OUTPUT try: return self.dt(self.namespace, self.namespace, hns, self.compType) finally: sys.stdout = sys.__stdout__ | a57b67c5ea145e0a94b50f976f4c35dcec31ce49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/a57b67c5ea145e0a94b50f976f4c35dcec31ce49/Executables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
365,
262,
30,
366,
2387,
273,
1610,
18,
3530,
24899,
6345,
67,
4937,
13,
366,
2387,
18,
15527,
273,
276,
780,
4294,
18,
780,
4294,
1435,
2589,
18,
10283,
273,
366,
2387,
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,
1086,
12,
365,
262,
30,
366,
2387,
273,
1610,
18,
3530,
24899,
6345,
67,
4937,
13,
366,
2387,
18,
15527,
273,
276,
780,
4294,
18,
780,
4294,
1435,
2589,
18,
10283,
273,
366,
2387,
18,
... |
check("context is either 'users' or 'global'", 'resource-lists/user/alice@example.com/index.xml') | self.check(404, 'XCAP Root', '') | def check(message, *uris): for uri in uris: r = self.client.con.request('GET', uri) self.assertEqual(r.code, 400) self.assertInBody(r, message) | a7b89ef0fff978632e12dbf35b705e289ee8830c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3446/a7b89ef0fff978632e12dbf35b705e289ee8830c/test_errors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2150,
16,
380,
23510,
4672,
364,
2003,
316,
21476,
30,
436,
273,
365,
18,
2625,
18,
591,
18,
2293,
2668,
3264,
2187,
2003,
13,
365,
18,
11231,
5812,
12,
86,
18,
710,
16,
740... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
12,
2150,
16,
380,
23510,
4672,
364,
2003,
316,
21476,
30,
436,
273,
365,
18,
2625,
18,
591,
18,
2293,
2668,
3264,
2187,
2003,
13,
365,
18,
11231,
5812,
12,
86,
18,
710,
16,
740... |
if hFileMappingObject == INVALID_HANDLE_VALUE: raise ctypes.WinError() return Handle(hFileMappingObject) | return FileMappingHandle(hFileMappingObject) | def CreateFileMappingW(hFile, lpAttributes = None, flProtect = PAGE_EXECUTE_READWRITE, dwMaximumSizeHigh = 0, dwMaximumSizeLow = 0, lpName = None): _CreateFileMappingW = windll.kernel32.CreateFileMappingW _CreateFileMappingW.argtypes = [HANDLE, LPVOID, DWORD, DWORD, DWORD, LPWSTR] _CreateFileMappingW.restype = HANDLE ... | cc47fb9e15593c438e2b218967fc7d0ec04946a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7261/cc47fb9e15593c438e2b218967fc7d0ec04946a8/kernel32.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
812,
3233,
59,
12,
76,
812,
16,
12423,
2498,
273,
599,
16,
1183,
29599,
273,
11549,
67,
15271,
9099,
67,
6949,
11677,
16,
12394,
13528,
1225,
8573,
273,
374,
16,
12394,
13528,
1225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
812,
3233,
59,
12,
76,
812,
16,
12423,
2498,
273,
599,
16,
1183,
29599,
273,
11549,
67,
15271,
9099,
67,
6949,
11677,
16,
12394,
13528,
1225,
8573,
273,
374,
16,
12394,
13528,
1225... |
page_title = m.group(1) link_text = m.group(2) | page_title = m.group('title') link_text = m.group('label') | def treat(self, refpl, disambPl): """ Parameters: disambPl - The disambiguation page or redirect we don't want anything to link on refpl - A page linking to disambPl Returns False if the user pressed q to completely quit the program. Otherwise, returns True. """ | 5ee73f68d575c81bbf2c3316270c7026d3aa2f71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/5ee73f68d575c81bbf2c3316270c7026d3aa2f71/solve_disambiguation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
12,
2890,
16,
1278,
412,
16,
1015,
2536,
1749,
4672,
3536,
7012,
30,
1015,
2536,
1749,
300,
1021,
1015,
26011,
367,
1363,
578,
3136,
732,
2727,
1404,
2545,
6967,
358,
1692,
603,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
12,
2890,
16,
1278,
412,
16,
1015,
2536,
1749,
4672,
3536,
7012,
30,
1015,
2536,
1749,
300,
1021,
1015,
26011,
367,
1363,
578,
3136,
732,
2727,
1404,
2545,
6967,
358,
1692,
603,
1... |
if but.get_active() and but.get_sensitive(): | if but.get_active(): | def get_deformation_axes(self): """Return which axes the user wants to deform along.""" for but, deform in self.deformtable: if but.get_active() and but.get_sensitive(): return np.array(deform) # No deformation chosen! oops("No deformation chosen: Please choose a deformation mode.") return False | f279a17bf375cb074bc23f77fea9ebb0cd25fd4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/f279a17bf375cb074bc23f77fea9ebb0cd25fd4d/scaling.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
536,
535,
367,
67,
10855,
12,
2890,
4672,
3536,
990,
1492,
6515,
326,
729,
14805,
358,
443,
687,
7563,
12123,
364,
1496,
16,
443,
687,
316,
365,
18,
536,
535,
2121,
30,
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,
336,
67,
536,
535,
367,
67,
10855,
12,
2890,
4672,
3536,
990,
1492,
6515,
326,
729,
14805,
358,
443,
687,
7563,
12123,
364,
1496,
16,
443,
687,
316,
365,
18,
536,
535,
2121,
30,
309,
... |
bottom = patch.get_bottom() top = patch.get_top() ex = None modified = False | def push_empty_patch(self, name): """Pushes an empty patch on the stack """ unapplied = self.get_unapplied() assert(name in unapplied) | d12b37ad2e67c914ec0d63d0877bf1ac90f7e044 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/d12b37ad2e67c914ec0d63d0877bf1ac90f7e044/stack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
67,
5531,
67,
2272,
12,
2890,
16,
508,
4672,
3536,
7621,
281,
392,
1008,
4729,
603,
326,
2110,
3536,
640,
438,
3110,
273,
365,
18,
588,
67,
318,
438,
3110,
1435,
1815,
12,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
67,
5531,
67,
2272,
12,
2890,
16,
508,
4672,
3536,
7621,
281,
392,
1008,
4729,
603,
326,
2110,
3536,
640,
438,
3110,
273,
365,
18,
588,
67,
318,
438,
3110,
1435,
1815,
12,
529,
... | |
return 0 | return ret | def refresh(ui, repo, *pats, **opts): """update the current patch If any file patterns are provided, the refreshed patch will contain only the modifications that match those patterns; the remaining modifications will remain in the working directory. """ q = repo.mq message = commands.logmessage(opts) if opts['edit']: ... | e23843faae543312210df1b6c4f498b98219bbd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/e23843faae543312210df1b6c4f498b98219bbd1/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
4881,
16,
3538,
16,
380,
84,
2323,
16,
2826,
4952,
4672,
3536,
2725,
326,
783,
4729,
225,
971,
1281,
585,
6884,
854,
2112,
16,
326,
27880,
4729,
903,
912,
1338,
326,
17953,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
4881,
16,
3538,
16,
380,
84,
2323,
16,
2826,
4952,
4672,
3536,
2725,
326,
783,
4729,
225,
971,
1281,
585,
6884,
854,
2112,
16,
326,
27880,
4729,
903,
912,
1338,
326,
17953,
7... |
authenticator=md5.new(header[0:4] + self.authenticator | authenticator=md5_constructor(header[0:4] + self.authenticator | def ReplyPacket(self): """Create a ready-to-transmit authentication reply packet | 9c034ee55a7e6e126bafe0cf166ca5cba67a6d1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12799/9c034ee55a7e6e126bafe0cf166ca5cba67a6d1e/packet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16202,
6667,
12,
2890,
4672,
3536,
1684,
279,
5695,
17,
869,
17,
2338,
1938,
5107,
4332,
4414,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16202,
6667,
12,
2890,
4672,
3536,
1684,
279,
5695,
17,
869,
17,
2338,
1938,
5107,
4332,
4414,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
newtext += '\n[[%s]]' % paginetta | newtext += '\n[[%s]]' % paginetta.encode(site.encoding()) except UnicodeEncodeError: try: newtext += '\n[[%s]]' % paginetta.encode('utf-8') except UnicodeEncodeError: newtext += '\n[[%s]]' % paginetta.encode(site.encoding()) | def add_text(page = None, addText = None, summary = None, regexSkip = None, regexSkipUrl = None, always = False, up = False, putText = True, oldTextGiven = None): if not addText: raise NoEnoughData('You have to specify what text you want to add!') if not summary: summary = wikipedia.setAction(wikipedia.translate(wikipe... | 2dc5b5885dbfd71db74a77dff20c5056f8caf092 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/2dc5b5885dbfd71db74a77dff20c5056f8caf092/add_text.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
955,
12,
2433,
273,
599,
16,
25796,
273,
599,
16,
4916,
273,
599,
16,
3936,
6368,
273,
599,
16,
3936,
6368,
1489,
273,
599,
16,
3712,
273,
1083,
16,
731,
273,
1083,
16,
1378... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
955,
12,
2433,
273,
599,
16,
25796,
273,
599,
16,
4916,
273,
599,
16,
3936,
6368,
273,
599,
16,
3936,
6368,
1489,
273,
599,
16,
3712,
273,
1083,
16,
731,
273,
1083,
16,
1378... |
fullname = os.path.join(dirname, basename) | def updatecache(filename): """Update a cache entry and return its list of lines. If something's wrong, print a message, discard the cache entry, and return an empty list.""" if cache.has_key(filename): del cache[filename] if not filename or filename[0] + filename[-1] == '<>': return [] fullname = filename try: stat = ... | 12f21ae07f56611926ec06bd92681e771d29968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/12f21ae07f56611926ec06bd92681e771d29968f/linecache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
2493,
12,
3459,
4672,
3536,
1891,
279,
1247,
1241,
471,
327,
2097,
666,
434,
2362,
18,
971,
5943,
1807,
7194,
16,
1172,
279,
883,
16,
10388,
326,
1247,
1241,
16,
471,
327,
392,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2493,
12,
3459,
4672,
3536,
1891,
279,
1247,
1241,
471,
327,
2097,
666,
434,
2362,
18,
971,
5943,
1807,
7194,
16,
1172,
279,
883,
16,
10388,
326,
1247,
1241,
16,
471,
327,
392,
1... | |
self.message[0] = unquote(values[5]) self.message[1] = unquote(values[6]) self.message[2] = unquote(values[7]) self.message[3] = unquote(values[8]) | self.message[0] = unicode(unquote(values[5])) self.message[1] = unicode(unquote(values[6])) self.message[2] = unicode(unquote(values[7])) self.message[3] = unicode(unquote(values[8])) | def __init__(self, char): if type(char) == str: values = char.split(';') self.account = unquote( values[0] ) self.serial = int(values[1]) self.name = unquote(values[2]) (x, y, z, m) = values[3].split(',') self.pos = wolfpack.coord(int(x), int(y), int(z), int(m)) self.category = unquote(values[4]) self.message = ['', ''... | 909beb9ce3ffef13a5d74bb0f124548b305f43ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/909beb9ce3ffef13a5d74bb0f124548b305f43ce/pages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1149,
4672,
309,
618,
12,
3001,
13,
422,
609,
30,
924,
273,
1149,
18,
4939,
2668,
4359,
13,
365,
18,
4631,
273,
25611,
12,
924,
63,
20,
65,
262,
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,
1001,
2738,
972,
12,
2890,
16,
1149,
4672,
309,
618,
12,
3001,
13,
422,
609,
30,
924,
273,
1149,
18,
4939,
2668,
4359,
13,
365,
18,
4631,
273,
25611,
12,
924,
63,
20,
65,
262,
365,
... |
self.fuse_args.add('allow_other') | cfargs.add('allow_other') | def main_0_1_preamble(self): | 2cd16da84d220d7eee27d43443a4a3e4de6ccb8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5459/2cd16da84d220d7eee27d43443a4a3e4de6ccb8a/fuse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
20,
67,
21,
67,
84,
793,
7119,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
20,
67,
21,
67,
84,
793,
7119,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
expectedres = "Your tasks are saved in an XML file located in \ your HOME folder" | expectedres = ("Your tasks are saved in an XML file located in " "your HOME folder") | def test_localfile_get_description(self): """Tests for localfile/get_description function : - a string is expected. """ res = localfile.get_description() expectedres = "Your tasks are saved in an XML file located in \ | 1d4793a169fe2839ad368b4b705478493c2729c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/1d4793a169fe2839ad368b4b705478493c2729c6/backends.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3729,
768,
67,
588,
67,
3384,
12,
2890,
4672,
3536,
14650,
364,
1191,
768,
19,
588,
67,
3384,
445,
294,
300,
279,
533,
353,
2665,
18,
3536,
400,
273,
1191,
768,
18,
588,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3729,
768,
67,
588,
67,
3384,
12,
2890,
4672,
3536,
14650,
364,
1191,
768,
19,
588,
67,
3384,
445,
294,
300,
279,
533,
353,
2665,
18,
3536,
400,
273,
1191,
768,
18,
588,
67... |
if len(partner.ean13) <> 13: | if len(partner.ean13) not in [13,14,8]: | def _check_ean_key(self, cr, uid, ids): for partner in self.browse(cr, uid, ids): if not partner.ean13: continue if len(partner.ean13) <> 13: return False try: int(partner.ean13) except: return False sum=0 for i in range(12): if is_pair(i): sum += int(partner.ean13[i]) else: sum += 3 * int(partner.ean13[i]) check = int... | 5b647eb30c82b1f3eed3a549ecc08069f0858647 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5b647eb30c82b1f3eed3a549ecc08069f0858647/product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
73,
304,
67,
856,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
364,
19170,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
309,
486,
19170,
18,
73,
304,
3437... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
67,
73,
304,
67,
856,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
364,
19170,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
309,
486,
19170,
18,
73,
304,
3437... |
options.configuration = "debug" | options.configuration = "Debug" | def main(): """Main function to produce new baselines.""" option_parser = optparse.OptionParser() option_parser.add_option('-v', '--verbose', action='store_true', default=False, help='include debug-level logging.') option_parser.add_option('-p', '--platforms', default='mac,win,win-xp,win-vista,linux', help=('Comma de... | a1bf07b49c820d61a4fdb370f7f33d7588b270b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/a1bf07b49c820d61a4fdb370f7f33d7588b270b3/rebaseline_chromium_webkit_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
445,
358,
11402,
394,
2580,
14567,
12123,
225,
1456,
67,
4288,
273,
2153,
2670,
18,
1895,
2678,
1435,
1456,
67,
4288,
18,
1289,
67,
3482,
2668,
17,
90,
2187,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
445,
358,
11402,
394,
2580,
14567,
12123,
225,
1456,
67,
4288,
273,
2153,
2670,
18,
1895,
2678,
1435,
1456,
67,
4288,
18,
1289,
67,
3482,
2668,
17,
90,
2187,
353... |
start = checkpt.lastDateStamp() | initDate = checkpt.lastDateStamp() start = initDate | def _sendToGratia( self, tableName, checkpt, selectCMD, makeRecord ): # Pull up the _maxSelect records that are newer than the last checkpoint | c3fe2c4a4581356ba029cdc5fda421886e221a2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/637/c3fe2c4a4581356ba029cdc5fda421886e221a2c/DCacheAggregator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
774,
43,
17048,
1155,
12,
365,
16,
4775,
16,
866,
337,
16,
2027,
19473,
16,
1221,
2115,
262,
30,
468,
14899,
731,
326,
389,
1896,
3391,
3853,
716,
854,
16069,
2353,
326,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
774,
43,
17048,
1155,
12,
365,
16,
4775,
16,
866,
337,
16,
2027,
19473,
16,
1221,
2115,
262,
30,
468,
14899,
731,
326,
389,
1896,
3391,
3853,
716,
854,
16069,
2353,
326,
114... |
for tag in headers.keys(): | for tag in self.th_seq: | def regenerate_headers(self, updated_md_len): | a00acf999e969cbf9cea842f508f580139dbe7fa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/a00acf999e969cbf9cea842f508f580139dbe7fa/topaz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20821,
67,
2485,
12,
2890,
16,
3526,
67,
1264,
67,
1897,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20821,
67,
2485,
12,
2890,
16,
3526,
67,
1264,
67,
1897,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pl2._editrestriction = True pl2._permalink = entry.revisionid pl2._userName = username pl2._ipedit = ipedit pl2._editTime = timestamp section = pl2.section() | page2._editrestriction = True page2._permalink = entry.revisionid page2._userName = username page2._ipedit = ipedit page2._editTime = timestamp section = page2.section() | def oneDone(self, entry): title = entry.title username = entry.username ipedit = entry.ipedit timestamp = entry.timestamp text = entry.text editRestriction = entry.editRestriction moveRestriction = entry.moveRestriction pl = Page(self.site, title) for pl2 in self.pages: if pl2.sectionFreeTitle() == pl.sectionFreeTitle(... | 7bae208fb5b06124e71a5603ccda36772d125b84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/7bae208fb5b06124e71a5603ccda36772d125b84/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1245,
7387,
12,
2890,
16,
1241,
4672,
2077,
273,
1241,
18,
2649,
2718,
273,
1241,
18,
5053,
277,
1845,
305,
273,
1241,
18,
625,
4619,
2858,
273,
1241,
18,
5508,
977,
273,
1241,
18,
955... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1245,
7387,
12,
2890,
16,
1241,
4672,
2077,
273,
1241,
18,
2649,
2718,
273,
1241,
18,
5053,
277,
1845,
305,
273,
1241,
18,
625,
4619,
2858,
273,
1241,
18,
5508,
977,
273,
1241,
18,
955... |
class XcfParasite(Filter): | class XcfParasiteEntry(Filter): | def readString(filter, stream, name, description): chunk = filter.read(name+"_size", "!L", description+" length") filter.read(name, "%us" % chunk.value, description) | 185f7295a822a2a1c70f47b6ce040c35b01e0e1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2280/185f7295a822a2a1c70f47b6ce040c35b01e0e1d/xcf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18646,
12,
2188,
16,
1407,
16,
508,
16,
2477,
4672,
2441,
273,
1034,
18,
896,
12,
529,
9078,
67,
1467,
3113,
17528,
48,
3113,
2477,
9078,
769,
7923,
1034,
18,
896,
12,
529,
16,
2213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18646,
12,
2188,
16,
1407,
16,
508,
16,
2477,
4672,
2441,
273,
1034,
18,
896,
12,
529,
9078,
67,
1467,
3113,
17528,
48,
3113,
2477,
9078,
769,
7923,
1034,
18,
896,
12,
529,
16,
2213,
... |
progress_callback(os.path.join(directory, 'epydoc-index.html'), None) | filename = os.path.join(directory, 'epydoc-index.html') if progress_callback: progress_callback(filename, None) | def write(self, directory=None, progress_callback=None): """ Write the documentation to the given directory. | 60b4598f963657af72659f4c3492b6028c51c37e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/60b4598f963657af72659f4c3492b6028c51c37e/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
16,
4007,
67,
3394,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1867,
33,
7036,
16,
4007,
67,
3394,
33,
7036,
4672,
3536,
2598,
326,
7323,
358,
326,
864,
1867,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.