rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
DEFAULT_TEST_TIMEOUT_MS = 10 * 1000 | DEFAULT_TEST_TIMEOUT_MS = 6 * 1000 | def __init__(self, deferred, wontfix, fixable, fixable_count, all_fixable_count): self.deferred = deferred self.wontfix = wontfix self.fixable = fixable self.fixable_count = fixable_count self.all_fixable_count = all_fixable_count | 515da79572143ff0d03b9b2dfb236b176e5a6b79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/515da79572143ff0d03b9b2dfb236b176e5a6b79/run_webkit_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7045,
16,
341,
1580,
904,
16,
2917,
429,
16,
2917,
429,
67,
1883,
16,
777,
67,
904,
429,
67,
1883,
4672,
365,
18,
26622,
273,
7045,
365,
18,
91,
1580,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7045,
16,
341,
1580,
904,
16,
2917,
429,
16,
2917,
429,
67,
1883,
16,
777,
67,
904,
429,
67,
1883,
4672,
365,
18,
26622,
273,
7045,
365,
18,
91,
1580,
... |
def testGenerateNetFixture(self): | def testGenerateNetFixtures(self): | def testGenerateNetFixture(self): """ This isn't actually a test. It just takes advantage of the test harness to spam a bunch of messages to the supply app and spit out the data in a format that can be sucked into a fixture """ # this is the number of net reports that will be generated net_count = 0 "8005551213 > l... | da380eee6f7c5d277d18706ac990f23216dcd4f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/da380eee6f7c5d277d18706ac990f23216dcd4f5/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4625,
7308,
8585,
14960,
12,
2890,
4672,
3536,
1220,
5177,
1404,
6013,
279,
1842,
18,
225,
2597,
2537,
5530,
1261,
7445,
410,
434,
326,
1842,
366,
1303,
403,
358,
24824,
279,
25606,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4625,
7308,
8585,
14960,
12,
2890,
4672,
3536,
1220,
5177,
1404,
6013,
279,
1842,
18,
225,
2597,
2537,
5530,
1261,
7445,
410,
434,
326,
1842,
366,
1303,
403,
358,
24824,
279,
25606,
... |
sometrue = masked_unary_operation(oldnumeric.sometrue) alltrue = masked_unary_operation(oldnumeric.alltrue, 1) | def __str__ (self): return "Masked version of " + str(self.f) | 434501d7248bf5c53aa0ab8df3bfea81ca95f198 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/434501d7248bf5c53aa0ab8df3bfea81ca95f198/ma.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
261,
2890,
4672,
327,
315,
5796,
329,
1177,
434,
315,
397,
609,
12,
2890,
18,
74,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
261,
2890,
4672,
327,
315,
5796,
329,
1177,
434,
315,
397,
609,
12,
2890,
18,
74,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
module_generator = flatten([[C(i+1)]*shape[i] for i in range(len(shape))]) module_generator.reverse() | p = shape.conjugate() module_generator = flatten([[C(p[j]-i) for i in range(p[j])] for j in range(len(p))]) | def __init__(self, type, shape): | c1c98787eef589c3247e0356a728c63923fdfd86 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c1c98787eef589c3247e0356a728c63923fdfd86/tensor_product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
16,
2179,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
16,
2179,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
dispIncr.zero() | def step(self, t, dt): """ Advance to next time step. """ dispIncr = self.fields.get("dispIncr(t->t+dt)") dispIncr.zero() | a76134debbda05cdbac636849a88167aefe22bf4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8645/a76134debbda05cdbac636849a88167aefe22bf4/Implicit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
268,
16,
3681,
4672,
3536,
4052,
5882,
358,
1024,
813,
2235,
18,
3536,
16232,
382,
3353,
273,
365,
18,
2821,
18,
588,
2932,
25453,
382,
3353,
12,
88,
2122,
88,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
268,
16,
3681,
4672,
3536,
4052,
5882,
358,
1024,
813,
2235,
18,
3536,
16232,
382,
3353,
273,
365,
18,
2821,
18,
588,
2932,
25453,
382,
3353,
12,
88,
2122,
88,
15,
... | |
def load_settings(self): | def load_settings(self, retain_parent=False): | def load_settings(self): """Loads the brush settings/dynamics from disk.""" prefix = self.get_fileprefix() filename = prefix + '.myb' brushinfo_str = open(filename).read() self.brushinfo.parse(brushinfo_str) self.brushinfo.pop("parent_brush_name", None) self.remember_mtimes() self.settings_loaded = True self.persistent... | e9dfcda7c37d5fcf44ca1c92b17f4495e91160ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/e9dfcda7c37d5fcf44ca1c92b17f4495e91160ad/brushmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
4272,
12,
2890,
16,
15096,
67,
2938,
33,
8381,
4672,
3536,
7968,
326,
5186,
1218,
1947,
19,
31129,
2102,
628,
4234,
12123,
1633,
273,
365,
18,
588,
67,
768,
3239,
1435,
1544,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
4272,
12,
2890,
16,
15096,
67,
2938,
33,
8381,
4672,
3536,
7968,
326,
5186,
1218,
1947,
19,
31129,
2102,
628,
4234,
12123,
1633,
273,
365,
18,
588,
67,
768,
3239,
1435,
1544,
... |
try: key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts") except WindowsError: | keys = [] possible_keys = [ r"SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts", r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" ] for key_name in possible_keys: | def initsysfonts_win32(): import _winreg fonts = {} mods = 'demibold', 'narrow', 'light', 'unicode', 'bt', 'mt' fontdir = os.path.join(os.environ['WINDIR'], "Fonts") #find the right place in registry try: key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts") except Windo... | 9514cfca7f6ad6d57dfbfe52d7ae6bdf13d437a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1298/9514cfca7f6ad6d57dfbfe52d7ae6bdf13d437a8/sysfont.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
9499,
22052,
67,
8082,
1578,
13332,
1930,
389,
8082,
1574,
16450,
273,
2618,
15546,
273,
296,
19117,
495,
1673,
2187,
296,
82,
7815,
2187,
296,
5099,
2187,
296,
9124,
2187,
296,
2360... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
9499,
22052,
67,
8082,
1578,
13332,
1930,
389,
8082,
1574,
16450,
273,
2618,
15546,
273,
296,
19117,
495,
1673,
2187,
296,
82,
7815,
2187,
296,
5099,
2187,
296,
9124,
2187,
296,
2360... |
if game.quad[jw.x][jw.y]!=IHDOT: | if game.quad[jw.i][jw.j]!=IHDOT: | def torpedo(origin, course, dispersion, number, nburst): "Let a photon torpedo fly" shoved = False ac = course + 0.25*dispersion angle = (15.0-ac)*0.5235988 bullseye = (15.0 - course)*0.5235988 delta = coord(-math.sin(angle), math.cos(angle)) bigger = max(abs(delta.x), abs(delta.y)) delta /= bigger x = origin.x; y = or... | e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8934,
1845,
83,
12,
10012,
16,
4362,
16,
16232,
722,
16,
1300,
16,
4264,
18593,
4672,
315,
24181,
279,
24542,
265,
8934,
1845,
83,
21434,
6,
699,
9952,
273,
1083,
1721,
273,
4362,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8934,
1845,
83,
12,
10012,
16,
4362,
16,
16232,
722,
16,
1300,
16,
4264,
18593,
4672,
315,
24181,
279,
24542,
265,
8934,
1845,
83,
21434,
6,
699,
9952,
273,
1083,
1721,
273,
4362,
397,
... |
pos = player.pos pos.x = target[0] pos.y = target[1] pos.z = target[2] if len(target) > 3: pos.map = target[3] | try: m = target[3] except: m = player.pos.map pos = wolfpack.coord( target[0], target[1], target[2], m ) | def onCollide(player, item): if item.hastag('playersonly') and player.npc: return False if not item.hastag('target'): if player.socket: player.socket.sysmessage( tr('This gate leads nowhere...') ) else: console.log(LOG_ERROR, tr("NPC [%x] using gate [%x] without target.\n") % (player.serial, item.serial)) return False... | f44c4416a5cc204dd710bc9f14fc052f542b73fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f44c4416a5cc204dd710bc9f14fc052f542b73fc/gate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
914,
8130,
12,
14872,
16,
761,
4672,
309,
761,
18,
76,
689,
346,
2668,
1601,
3565,
715,
6134,
471,
7291,
18,
82,
2436,
30,
327,
1083,
225,
309,
486,
761,
18,
76,
689,
346,
2668,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
914,
8130,
12,
14872,
16,
761,
4672,
309,
761,
18,
76,
689,
346,
2668,
1601,
3565,
715,
6134,
471,
7291,
18,
82,
2436,
30,
327,
1083,
225,
309,
486,
761,
18,
76,
689,
346,
2668,... |
print "%s %8s %8s=%08x:%s" % (getClock(m), var, regname, val, out) | print "%s %8s %8s=%08x:%s%s" % (getClock(m), var, regname, val, out, pc) | def memDecode(m, reginfo): regname, bitdefs = reginfo var = m.group('var') val = int(m.group('val'), 16) changed = int(m.group('changed'), 16) notfirst = 1 if not changed: # Start of trace - show all bit defs, but don't show the # list of bits to ignore. changed = val notfirst = 0 if not bitdefs: # Only a register name... | 9de89e61a897936f4b49121046fb78ee3e5a8811 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12923/9de89e61a897936f4b49121046fb78ee3e5a8811/memalias.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1663,
6615,
12,
81,
16,
960,
1376,
4672,
960,
529,
16,
2831,
12537,
273,
960,
1376,
569,
273,
312,
18,
1655,
2668,
1401,
6134,
1244,
273,
509,
12,
81,
18,
1655,
2668,
1125,
19899,
2872... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1663,
6615,
12,
81,
16,
960,
1376,
4672,
960,
529,
16,
2831,
12537,
273,
960,
1376,
569,
273,
312,
18,
1655,
2668,
1401,
6134,
1244,
273,
509,
12,
81,
18,
1655,
2668,
1125,
19899,
2872... |
anydbm.open(dbfile, "c").close() ftype = whichdb.whichdb(findfile("foo.db")) | anydbm.open(os.path.splitext(dbfile)[0], "c").close() ftype = whichdb.whichdb(dbfile) | def test_anydbm_create(self): "verify that anydbm.open does *not* create a bsddb185 file" tmpdir = tempfile.mkdtemp() try: try: dbfile = os.path.join(tmpdir, "foo.db") anydbm.open(dbfile, "c").close() ftype = whichdb.whichdb(findfile("foo.db")) self.assertNotEqual(ftype, "bsddb185") finally: os.unlink(dbfile) finally: ... | 065f7b8626ac2cc7be26a3cc1bd5d9ba51b5125d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/065f7b8626ac2cc7be26a3cc1bd5d9ba51b5125d/test_bsddb185.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2273,
1966,
81,
67,
2640,
12,
2890,
4672,
315,
8705,
716,
1281,
1966,
81,
18,
3190,
1552,
380,
902,
14,
752,
279,
7081,
449,
70,
30489,
585,
6,
20213,
273,
13275,
18,
24816,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2273,
1966,
81,
67,
2640,
12,
2890,
4672,
315,
8705,
716,
1281,
1966,
81,
18,
3190,
1552,
380,
902,
14,
752,
279,
7081,
449,
70,
30489,
585,
6,
20213,
273,
13275,
18,
24816,
... |
startIndex = text.indexOf(self.commentStartExpression, | startIndex = self.commentStartExpression.indexIn(text, | def highlightBlock(self, text): | 4ef400c87059896564f79dd33991daa9fbb56a02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4440/4ef400c87059896564f79dd33991daa9fbb56a02/controller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8839,
1768,
12,
2890,
16,
977,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
8839,
1768,
12,
2890,
16,
977,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
sd_csx = sd_csc if a.type.format == 'csc' else sd_csr return [sd_csx(a_val,a_ind, a_ptr, a_nsparse, b)] | return [sd_csc(a_val, a_ind, a_ptr, a_nsparse, b)] if a.type.format == 'csr': a_val, a_ind, a_ptr, a_shape = csm_properties(a) return [sd_csr(a_val, a_ind, a_ptr, b)] | def local_structured_dot(node): if node.op == _structured_dot: a, b = node.inputs if a.type.format in ('csc','csr'): a_val, a_ind, a_ptr, a_shape = csm_properties(a) a_nsparse = a_shape[0] sd_csx = sd_csc if a.type.format == 'csc' else sd_csr return [sd_csx(a_val,a_ind, a_ptr, a_nsparse, b)] return False | 6134415539097024362235c8a3d821e58edcbfd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/6134415539097024362235c8a3d821e58edcbfd2/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
67,
17233,
67,
9811,
12,
2159,
4672,
309,
756,
18,
556,
422,
389,
17233,
67,
9811,
30,
279,
16,
324,
273,
756,
18,
10029,
309,
279,
18,
723,
18,
2139,
316,
7707,
71,
1017,
1702... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
67,
17233,
67,
9811,
12,
2159,
4672,
309,
756,
18,
556,
422,
389,
17233,
67,
9811,
30,
279,
16,
324,
273,
756,
18,
10029,
309,
279,
18,
723,
18,
2139,
316,
7707,
71,
1017,
1702... |
return self._executeSingleFileCatalogFunction(lfn,'getFileSize',catalogs=catalogs) else: return self._executeFileCatalogFunction(lfn,'getFileSize',catalogs=catalogs) def getCatalogReplicas(self,lfn,allStatus=False,singleFile=False,catalogs=[]): | return self._executeSingleFileCatalogFunction( lfn, 'getFileSize', catalogs=catalogs ) else: return self._executeFileCatalogFunction( lfn, 'getFileSize', catalogs=catalogs ) def getCatalogReplicas( self, lfn, allStatus=False, singleFile=False, catalogs=[] ): | def getCatalogFileSize(self,lfn,singleFile=False,catalogs=[]): """ Get the size registered for files in the FileCatalog | 9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
4392,
15100,
12,
2890,
16,
80,
4293,
16,
7526,
812,
33,
8381,
16,
2574,
287,
14072,
33,
8526,
4672,
3536,
968,
326,
963,
4104,
364,
1390,
316,
326,
1387,
9769,
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,
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,
1927,
4392,
15100,
12,
2890,
16,
80,
4293,
16,
7526,
812,
33,
8381,
16,
2574,
287,
14072,
33,
8526,
4672,
3536,
968,
326,
963,
4104,
364,
1390,
316,
326,
1387,
9769,
2,
-100,
-100,
-10... |
yr = self.__ayum.addRepository(repo.name, repo.baseurl, repo.mirrorlist) | if repo.name in repoUrls: baseurl = repoUrls[repo.name] mirrorlist = None else: baseurl = repo.baseurl mirrorlist = repo.mirrorlist yr = self.__ayum.addRepository(repo.name, baseurl, mirrorlist) | def installPackages(self): """Install packages into install_root""" | fa0d92336acdd2ac205e17098fc453fae479a22e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9342/fa0d92336acdd2ac205e17098fc453fae479a22e/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
11425,
12,
2890,
4672,
3536,
6410,
5907,
1368,
3799,
67,
3085,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
11425,
12,
2890,
4672,
3536,
6410,
5907,
1368,
3799,
67,
3085,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
else: | elif notification.data.disconnect_reason == 'user request': | def end(self): if self.greenlet is not None: api.kill(self.greenlet, api.GreenletExit()) self.greenlet = api.getcurrent() notification_center = NotificationCenter() if self._invitation is None or self._invitation.state in ('disconnecting', 'disconnected'): return self.state = 'terminating' if self._invitation.state == ... | df6bcaf5a26b18f23d0a3d9e86db3bde1cce4f9d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/df6bcaf5a26b18f23d0a3d9e86db3bde1cce4f9d/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
12,
2890,
4672,
309,
365,
18,
11571,
1810,
353,
486,
599,
30,
1536,
18,
16418,
12,
2890,
18,
11571,
1810,
16,
1536,
18,
21453,
1810,
6767,
10756,
365,
18,
11571,
1810,
273,
1536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
12,
2890,
4672,
309,
365,
18,
11571,
1810,
353,
486,
599,
30,
1536,
18,
16418,
12,
2890,
18,
11571,
1810,
16,
1536,
18,
21453,
1810,
6767,
10756,
365,
18,
11571,
1810,
273,
1536,
... |
'<div style="font-size:xx-small">Select the output format for plots.<br/>SVG works with the Adobe plugin and Firefox 1.5+.</div>', | '<div style="font-size:xx-small">Select the output format for plots.', '<br/>SVG works with the Adobe plugin and Firefox 1.5+.</div>', | def html_program_settings_table(fdict): """Used in 'Step 2: Fill out Submission Form'. Also allows the user to selected advanced options before completing submission. """ l = ['<table class="inner_table">', '<tr class="inner_title"><th>TLSMD Program Options</th></tr>', '<tr><td class="c">', '<table width="100%">', '<... | ebe7911aaa6579796c3b771f64c91ad7ae981d9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/ebe7911aaa6579796c3b771f64c91ad7ae981d9b/webtlsmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
12890,
67,
4272,
67,
2121,
12,
74,
1576,
4672,
3536,
6668,
316,
296,
4160,
576,
30,
14192,
596,
2592,
3951,
2748,
10332,
8080,
5360,
326,
729,
358,
3170,
16111,
702,
1865,
2302... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
12890,
67,
4272,
67,
2121,
12,
74,
1576,
4672,
3536,
6668,
316,
296,
4160,
576,
30,
14192,
596,
2592,
3951,
2748,
10332,
8080,
5360,
326,
729,
358,
3170,
16111,
702,
1865,
2302... |
raise CompressionError, "zlib module is not available" | raise CompressionError("zlib module is not available") | def __init__(self, name, mode, comptype, fileobj, bufsize): """Construct a _Stream object. """ self._extfileobj = True if fileobj is None: fileobj = _LowLevelFile(name, mode) self._extfileobj = False | a080e25938abc4d1161007bb915b3848123a4f64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a080e25938abc4d1161007bb915b3848123a4f64/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1965,
16,
532,
27672,
16,
17041,
16,
1681,
1467,
4672,
3536,
7249,
279,
389,
1228,
733,
18,
3536,
365,
6315,
408,
768,
2603,
273,
1053,
309,
170... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
16,
1965,
16,
532,
27672,
16,
17041,
16,
1681,
1467,
4672,
3536,
7249,
279,
389,
1228,
733,
18,
3536,
365,
6315,
408,
768,
2603,
273,
1053,
309,
170... |
msghdr += "Subject: BC Results for " + str(item.computationResult.chartImage.name) + '\n\n' | msghdr += "Subject: BC Results for " + str(item.computationResult.chartImage.name) + '\n' | def checkResults(self): ''' Refer GmailResultsFramework.checkResults for documentation ''' tags = self.grestags + " IANA" gmail_user = setting.get("username") gmail_pwd = setting.get("password") smtpserver = smtplib.SMTP("smtp.gmail.com",587) smtpserver.ehlo() smtpserver.starttls() smtpserver.ehlo() smtpserver.login(... | 9206ee111fbf04e6a9269d7b54c1e0fede9e3a88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13935/9206ee111fbf04e6a9269d7b54c1e0fede9e3a88/IANAGmailResults.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
3447,
12,
2890,
4672,
9163,
868,
586,
611,
4408,
3447,
13701,
18,
1893,
3447,
364,
7323,
9163,
225,
2342,
273,
365,
18,
75,
8792,
1341,
397,
315,
467,
1258,
37,
6,
225,
314,
4408,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
12,
2890,
4672,
9163,
868,
586,
611,
4408,
3447,
13701,
18,
1893,
3447,
364,
7323,
9163,
225,
2342,
273,
365,
18,
75,
8792,
1341,
397,
315,
467,
1258,
37,
6,
225,
314,
4408,... |
if get_verbose() >= 2: print "R[%02d].s_row %s"%(self.n,self.hex_str_vector(P)) | if get_verbose() >= 2: print "R[%02d].s_row %s"%(self.n, self.hex_str_vector(P)) | def __call__(self, P, K): r""" Encrypts the plaintext $P$ using the key $K$. | cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
453,
16,
1475,
4672,
436,
8395,
8594,
20261,
326,
11917,
271,
52,
8,
1450,
326,
498,
271,
47,
8,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
453,
16,
1475,
4672,
436,
8395,
8594,
20261,
326,
11917,
271,
52,
8,
1450,
326,
498,
271,
47,
8,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
TIOCSWINSZ = termios.TIOCSWINSZ | if 'TIOCSWINSZ' in dir(termios): TIOCSWINSZ = termios.TIOCSWINSZ else: TIOCSWINSZ = -2146929561 | def setwinsize(self, r, c): """This sets the window size of the child tty. This will cause a SIGWINCH signal to be sent to the child. This does not change the physical window size. It changes the size reported to TTY-aware applications like vi or curses -- applications that respond to the SIGWINCH signal. """ # Check f... | b8a2f7bf254f3c49f7d0a9ecee1c1c19982534ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/b8a2f7bf254f3c49f7d0a9ecee1c1c19982534ec/pexpect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
8082,
1467,
12,
2890,
16,
436,
16,
276,
4672,
3536,
2503,
1678,
326,
2742,
963,
434,
326,
1151,
21520,
18,
1220,
903,
4620,
279,
7004,
24572,
1792,
4277,
358,
506,
3271,
358,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
8082,
1467,
12,
2890,
16,
436,
16,
276,
4672,
3536,
2503,
1678,
326,
2742,
963,
434,
326,
1151,
21520,
18,
1220,
903,
4620,
279,
7004,
24572,
1792,
4277,
358,
506,
3271,
358,
326,
... |
bb.note("Cache: %s is not cached" % fn) | bb.debug(2, "Cache: %s is not cached" % fn) | def cacheValidUpdate(self, fn): """ Is the cache valid for fn? Make thorough (slower) checks including timestamps. """ # Is cache enabled? if self.cachedir in [None, '']: return False | a7a4a4ee9477259e0771629df02085aaeee84f80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/a7a4a4ee9477259e0771629df02085aaeee84f80/cache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
1556,
1891,
12,
2890,
16,
2295,
4672,
3536,
2585,
326,
1247,
923,
364,
2295,
35,
4344,
286,
280,
4966,
261,
87,
8167,
13,
4271,
6508,
11267,
18,
3536,
468,
2585,
1247,
3696,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1247,
1556,
1891,
12,
2890,
16,
2295,
4672,
3536,
2585,
326,
1247,
923,
364,
2295,
35,
4344,
286,
280,
4966,
261,
87,
8167,
13,
4271,
6508,
11267,
18,
3536,
468,
2585,
1247,
3696,
35,
... |
return reStructuredText.HTML(t,report_level=RST_REPORT_LEVEL) | return reStructuredText.HTML( t, report_level=RST_REPORT_LEVEL, initial_header_level=RST_INITIAL_HEADER_LEVEL-1 ) | def format(self, t): if reStructuredText: return reStructuredText.HTML(t,report_level=RST_REPORT_LEVEL) else: return "<pre>Error: could not import reStructuredText</pre>\n"+t | 920bc1677b9a7ee73157b5cffec45d7fedc06d34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5225/920bc1677b9a7ee73157b5cffec45d7fedc06d34/rst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
268,
4672,
309,
283,
30733,
1528,
30,
327,
283,
30733,
1528,
18,
4870,
12,
268,
16,
2605,
67,
2815,
33,
10637,
67,
22710,
67,
10398,
16,
2172,
67,
3374,
67,
2815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
268,
4672,
309,
283,
30733,
1528,
30,
327,
283,
30733,
1528,
18,
4870,
12,
268,
16,
2605,
67,
2815,
33,
10637,
67,
22710,
67,
10398,
16,
2172,
67,
3374,
67,
2815,
... |
self.action.triggerAction(message) | action.triggerAction(message) | def tailer(self): '''Stdout multicolor tailer''' message = Message(self.logcolors,self.target) self.posEnd() if self.silence: self.daemonize() try: while True: found = 0 # throttleTime is when our app # logs very fast and we want to slow # down the tailing time.sleep(self.throttleTime) for log in self.arrayLog: if self... | 56f283d5c2de71f70c3c114750edc5b014dba55e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5602/56f283d5c2de71f70c3c114750edc5b014dba55e/LogTailer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5798,
264,
12,
2890,
4672,
9163,
27334,
1778,
12463,
280,
5798,
264,
26418,
883,
273,
2350,
12,
2890,
18,
1330,
9724,
16,
2890,
18,
3299,
13,
365,
18,
917,
1638,
1435,
309,
365,
18,
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,
5798,
264,
12,
2890,
4672,
9163,
27334,
1778,
12463,
280,
5798,
264,
26418,
883,
273,
2350,
12,
2890,
18,
1330,
9724,
16,
2890,
18,
3299,
13,
365,
18,
917,
1638,
1435,
309,
365,
18,
25... |
class MozillaUpdateConfigFromChange(ShellCommand): """Configure YAML file for run_tests.py""" def __init__(self, **kwargs): self.title = "default" self.branch = "" self.currentDate = "" if 'build' in kwargs: self.title = kwargs['build'].slavename self.changes = kwargs['build'].source.changes self.buildid = self.change... | def evaluateCommand(self, cmd): superResult = ShellCommand.evaluateCommand(self, cmd) if SUCCESS != superResult: return FAILURE if None != re.search('ERROR', cmd.logs['stdio'].getText()): return FAILURE return SUCCESS | 8b5105b8fc52a98f78d160ee3e3efd78e8ede51a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/8b5105b8fc52a98f78d160ee3e3efd78e8ede51a/perfrunner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
24077,
309,
599,
480,
283,
18,
3072,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
24077,
309,
599,
480,
283,
18,
3072,
... | |
print b.getbug(public_bug) | print bz.getbugsimple(public_bug) | def selftest(user='',password=''): url = 'https://bugzilla.redhat.com/xmlrpc.cgi' public_bug = 1 private_bug = 250666 query = {'product':'Fedora', 'component':'kernel', 'version':'devel', 'long_desc':'wireless'} print "Woo, welcome to the bugzilla.py self-test." print "Using bugzilla at " + url if user and password: p... | 25a0d539f54da647e026e1c1ef394dde7713ee09 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5050/25a0d539f54da647e026e1c1ef394dde7713ee09/selftest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
365,
3813,
12,
1355,
2218,
2187,
3664,
2218,
11,
4672,
880,
273,
296,
4528,
2207,
925,
15990,
18,
1118,
11304,
18,
832,
19,
2902,
7452,
18,
19062,
11,
1071,
67,
925,
273,
404,
3238,
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,
365,
3813,
12,
1355,
2218,
2187,
3664,
2218,
11,
4672,
880,
273,
296,
4528,
2207,
925,
15990,
18,
1118,
11304,
18,
832,
19,
2902,
7452,
18,
19062,
11,
1071,
67,
925,
273,
404,
3238,
67... |
setSite( portal ) | setSite( self.portal ) | def __init__(self, PORTAL_PATH="plone" ): | 26413de3bf58b322e04902c5b9983ff26cd3a74f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8544/26413de3bf58b322e04902c5b9983ff26cd3a74f/ipy_profile_zope.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
20987,
1013,
67,
4211,
1546,
412,
476,
6,
262,
30,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
20987,
1013,
67,
4211,
1546,
412,
476,
6,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if (err.args[0]['status'] == 400 and err.args[0]['body'].find('convert') != -1): LOG.error(err) LOG.info('Is this a new-version document? gdata has a bug' + ' preventing updates on new version documents.' + ' Please follow the instructions on the wiki FAQ ' + ' to convert your document.') new_path = safe_move(path, '.'... | LOG.error(err) new_path = safe_move(path, '.') LOG.info('Moved edited document to ' + new_path) | def edit_doc(self, doc_entry_or_title, editor, file_format, folder_entry_or_path=None): """Edit a document. Keyword arguments: doc_entry_or_title: DocEntry of the existing document to edit, or title of the document to create. editor: Name of the editor to use. Should be executable from the user's working directory. fi... | c5817415ad489e20d3b70371c11d657a7e81f4ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/c5817415ad489e20d3b70371c11d657a7e81f4ca/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
2434,
12,
2890,
16,
997,
67,
4099,
67,
280,
67,
2649,
16,
4858,
16,
585,
67,
2139,
16,
3009,
67,
4099,
67,
280,
67,
803,
33,
7036,
4672,
3536,
4666,
279,
1668,
18,
225,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
2434,
12,
2890,
16,
997,
67,
4099,
67,
280,
67,
2649,
16,
4858,
16,
585,
67,
2139,
16,
3009,
67,
4099,
67,
280,
67,
803,
33,
7036,
4672,
3536,
4666,
279,
1668,
18,
225,
1... |
if self.stickyToggle: for element in self.scroller.elements: if element <> button: element.set_state(False) button.set_state(True) else: if button.state == False: self.value = None else: for element in self.scroller.elements: if element <> button: | if 1 == 2: if self.stickyToggle: for element in self.scroller.elements: if element <> button: | def toggleOn(self, button): # sticky toggle keeps the button set, no matter what if self.stickyToggle: for element in self.scroller.elements: if element <> button: element.set_state(False) # simply set the state of this button and move on button.set_state(True) else: # print button.state if button.state == False: self.... | 695ebc94fcea97afa089a3eef4f68b45fabfce6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11560/695ebc94fcea97afa089a3eef4f68b45fabfce6c/BtoRMain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10486,
1398,
12,
2890,
16,
3568,
4672,
468,
21750,
10486,
20948,
326,
3568,
444,
16,
1158,
15177,
4121,
309,
365,
18,
334,
13055,
17986,
30,
364,
930,
316,
365,
18,
1017,
1539,
18,
6274,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10486,
1398,
12,
2890,
16,
3568,
4672,
468,
21750,
10486,
20948,
326,
3568,
444,
16,
1158,
15177,
4121,
309,
365,
18,
334,
13055,
17986,
30,
364,
930,
316,
365,
18,
1017,
1539,
18,
6274,... |
if self.normalize(k) == c_key: | if normalize(k) == c_key: | def setdefault(self, key, default=None): c_key = self.normalize(key) for k, v in self._items: if self.normalize(k) == c_key: return v self._items.append((key, default)) return default | 5e878f6a6d1b899882359f21d5f274dd4b6e29f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12287/5e878f6a6d1b899882359f21d5f274dd4b6e29f4/headerdict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8745,
12,
2890,
16,
498,
16,
805,
33,
7036,
4672,
276,
67,
856,
273,
365,
18,
12237,
12,
856,
13,
364,
417,
16,
331,
316,
365,
6315,
3319,
30,
309,
3883,
12,
79,
13,
422,
276,
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,
8745,
12,
2890,
16,
498,
16,
805,
33,
7036,
4672,
276,
67,
856,
273,
365,
18,
12237,
12,
856,
13,
364,
417,
16,
331,
316,
365,
6315,
3319,
30,
309,
3883,
12,
79,
13,
422,
276,
67,
... |
def t_asm_ID(t): r'[A-Za-z_]\w*' t.type = reserved_map.get(t.value, 'ID') t.lexer.begin('params') return t def t_ANY_ID(t): r'[A-Za-z_]\w*' t.type = reserved_map.get(t.value, 'ID') return t | def t_params_COLON(t): r':' t.lexer.begin('asm') return t | bc4f464ada78a254b6da247ab0530f189270d197 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7385/bc4f464ada78a254b6da247ab0530f189270d197/micro_asm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
67,
2010,
67,
4935,
673,
12,
88,
4672,
436,
11,
2497,
268,
18,
31731,
18,
10086,
2668,
23522,
6134,
327,
268,
225,
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,
268,
67,
2010,
67,
4935,
673,
12,
88,
4672,
436,
11,
2497,
268,
18,
31731,
18,
10086,
2668,
23522,
6134,
327,
268,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
WINDOWS_MAIN_MEM = re.compile('PRS-((700/)|((6|9)00&))') WINDOWS_CARD_A_MEM = re.compile(r'PRS-((700/\S+:)|((6|9)00_))MS') WINDOWS_CARD_B_MEM = re.compile(r'PRS-((700/\S+:)|((6|9)00_))SD') | WINDOWS_MAIN_MEM = re.compile('PRS-((700[ WINDOWS_CARD_A_MEM = re.compile(r'PRS-((700[/ WINDOWS_CARD_B_MEM = re.compile(r'PRS-((700[/ | def write_card_prefix(prefix, listid): if prefix is not None and hasattr(booklists[listid], 'write'): if not os.path.exists(prefix): os.makedirs(prefix) f = open(prefix + self.__class__.CACHE_XML, 'wb') booklists[listid].write(f) f.close() | fb03cf1bf86d4c341fbb258bd263efd0c6f75a8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/fb03cf1bf86d4c341fbb258bd263efd0c6f75a8c/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
3327,
67,
3239,
12,
3239,
16,
666,
350,
4672,
309,
1633,
353,
486,
599,
471,
3859,
12,
3618,
9772,
63,
1098,
350,
6487,
296,
2626,
11,
4672,
309,
486,
1140,
18,
803,
18,
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,
1045,
67,
3327,
67,
3239,
12,
3239,
16,
666,
350,
4672,
309,
1633,
353,
486,
599,
471,
3859,
12,
3618,
9772,
63,
1098,
350,
6487,
296,
2626,
11,
4672,
309,
486,
1140,
18,
803,
18,
18... |
cur_list = skel_to_col_attr_list(self.__skeleton__[table]) | cur_list = skel_to_col_attr_list(self.__skeleton__[table_name]) | def make_primary_key(self, table, col_name): """ WORD ON THE STREET IS THAT SQLITE IS RETARDED ABOUT *ALTER TABLE* COMMANDS... SO MEANWHILE WE ACCOMPLISH THIS BY CREATING A TEMPORARY TABLE. SUGGESTIONS FOR SPEEDUP ARE WELCOME. (OR JUST SEND A PATCH...) | 85d02cb25b26fc015382d67ed0b0b5b5529e5568 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/85d02cb25b26fc015382d67ed0b0b5b5529e5568/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
8258,
67,
856,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
21464,
6229,
12786,
2347,
862,
1584,
4437,
7662,
789,
3063,
5398,
4437,
10366,
985,
7660,
10336,
5069,
380,
188... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
8258,
67,
856,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
21464,
6229,
12786,
2347,
862,
1584,
4437,
7662,
789,
3063,
5398,
4437,
10366,
985,
7660,
10336,
5069,
380,
188... |
from static_type.util.attr import issubclass for klas in namespace.itervalues(): if klas is ForwardSubStruct: continue if not issubclass( klas, base_klas): continue for k,typ in klas.StaticType.itertypes(): if isinstance( typ, SubStruct): if issubclass( typ.typ, ForwardSubStruct): ForwardSubStruct.resolve1( typ, name... | @staticmethod | def resolve( namespace, base_klas =StaticStruct, debug =False): return _resolver.resolve( namespace, base_klas=base_klas, debug=debug) | cbb8f8895794de3fc11734a53f588f20feb2a3e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10809/cbb8f8895794de3fc11734a53f588f20feb2a3e8/forward.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
1981,
16,
1026,
67,
79,
9521,
273,
5788,
3823,
16,
1198,
273,
8381,
4672,
327,
389,
14122,
18,
10828,
12,
1981,
16,
1026,
67,
79,
9521,
33,
1969,
67,
79,
9521,
16,
1198,
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,
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,
2245,
12,
1981,
16,
1026,
67,
79,
9521,
273,
5788,
3823,
16,
1198,
273,
8381,
4672,
327,
389,
14122,
18,
10828,
12,
1981,
16,
1026,
67,
79,
9521,
33,
1969,
67,
79,
9521,
16,
1198,
33... |
result.write('X-Signed-Headers: Subject,Control,Message-ID,Date,From,Sender\n') | result.write('X-Signed-Headers: Subject,Control,Message-ID,Date,From\n') | def generate_newgroup(groups, config, group=None, moderated=None, description=None, message=None, passphrase=None): """Create a new group.""" while not group: group = raw_input('Name of the newsgroup to create: ').lower() components = group.split('.') if len(components) < 2: group = None print_error('The group must hav... | b7a92e7a475b4249a82eb52e04a2c59fc090dcdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5987/b7a92e7a475b4249a82eb52e04a2c59fc090dcdf/signcontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2704,
1655,
12,
4650,
16,
642,
16,
1041,
33,
7036,
16,
681,
19007,
33,
7036,
16,
2477,
33,
7036,
16,
883,
33,
7036,
16,
15244,
33,
7036,
4672,
3536,
1684,
279,
394,
1041,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2704,
1655,
12,
4650,
16,
642,
16,
1041,
33,
7036,
16,
681,
19007,
33,
7036,
16,
2477,
33,
7036,
16,
883,
33,
7036,
16,
15244,
33,
7036,
4672,
3536,
1684,
279,
394,
1041,
1... |
def command(text=root, eventname=eventname): text.event_generate(eventname) menu.add_command(label=label, underline=underline, | def command(text=root, eventname=eventname): text.event_generate(eventname) menu.add_command(label=label, underline=underline, | def command(text=root, eventname=eventname): text.event_generate(eventname) | eeed3c0538048e69a61af7942cc5810a89f3657f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/eeed3c0538048e69a61af7942cc5810a89f3657f/macosxSupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
12,
955,
33,
3085,
16,
871,
529,
33,
2575,
529,
4672,
977,
18,
2575,
67,
7163,
12,
2575,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
12,
955,
33,
3085,
16,
871,
529,
33,
2575,
529,
4672,
977,
18,
2575,
67,
7163,
12,
2575,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
SELECT m.virus_"""+self.__vendor_name+"""_name as name, (h.virus_"""+self.__vendor_name+"""_detected + m.virus_"""+self.__vendor_name+"""_detected) AS foo | SELECT m.virus_%s_name as name, (h.virus_%s_detected + m.virus_%s_detected) AS foo | def get_key_statistics(self, end_date, report_days, host=None, user=None, email=None): if email: return None | 0732c62c3b6bc9538e81f4c0b89f9e6ccbdf83fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/0732c62c3b6bc9538e81f4c0b89f9e6ccbdf83fc/untangle_base_virus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
856,
67,
14438,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
856,
67,
14438,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
2,
-100,
-100,
-1... |
elif self.header_encoding is QP: | elif self.body_encoding is QP: | def body_encode(self, s, convert=True): """Body-encode a string and convert it to output_charset. | 3d8ba77cdf41929a252d56edfd45053965b284f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3d8ba77cdf41929a252d56edfd45053965b284f2/Charset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1417,
67,
3015,
12,
2890,
16,
272,
16,
1765,
33,
5510,
4672,
3536,
2250,
17,
3015,
279,
533,
471,
1765,
518,
358,
876,
67,
9999,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1417,
67,
3015,
12,
2890,
16,
272,
16,
1765,
33,
5510,
4672,
3536,
2250,
17,
3015,
279,
533,
471,
1765,
518,
358,
876,
67,
9999,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def run(trace, cmd): import __main__ dict = __main__.__dict__ sys.settrace(trace) try: exec cmd in dict, dict finally: sys.settrace(None) def runctx(trace, cmd, globals=None, locals=None): if globals is None: globals = {} if locals is None: locals = {} sys.settrace(trace) try: exec cmd in dict, dict finally: sys.settr... | def run(trace, cmd): import __main__ dict = __main__.__dict__ sys.settrace(trace) try: exec cmd in dict, dict finally: sys.settrace(None) | a30eacf45815c14b480972c5097677fac83ed4c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a30eacf45815c14b480972c5097677fac83ed4c0/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
5129,
16,
1797,
4672,
1930,
1001,
5254,
972,
2065,
273,
1001,
5254,
972,
16186,
1576,
972,
2589,
18,
542,
5129,
12,
5129,
13,
775,
30,
1196,
1797,
316,
2065,
16,
2065,
3095,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5129,
16,
1797,
4672,
1930,
1001,
5254,
972,
2065,
273,
1001,
5254,
972,
16186,
1576,
972,
2589,
18,
542,
5129,
12,
5129,
13,
775,
30,
1196,
1797,
316,
2065,
16,
2065,
3095,
... | |
if tb[1].endswith('already in use.'): | if str(tb[1]).endswith('already in use.'): | def installProduct(self,p,locked=0,hidden=0,swallowExceptions=0): ''' installs a product by name ''' if self.isProductInstalled(p): prod=self._getOb(p) msg='this product is already installed, please uninstall before reinstalling it' prod.log(msg) return msg portal_types=getToolByName(self,'portal_types') portal_skins... | f74d9a5b723c42ba54f3dcaa7a44d946dea54ccf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/f74d9a5b723c42ba54f3dcaa7a44d946dea54ccf/QuickInstallerTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
4133,
12,
2890,
16,
84,
16,
15091,
33,
20,
16,
6345,
33,
20,
16,
5328,
5965,
11416,
33,
20,
4672,
9163,
31011,
279,
3017,
635,
508,
9163,
225,
309,
365,
18,
291,
4133,
16747,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
4133,
12,
2890,
16,
84,
16,
15091,
33,
20,
16,
6345,
33,
20,
16,
5328,
5965,
11416,
33,
20,
4672,
9163,
31011,
279,
3017,
635,
508,
9163,
225,
309,
365,
18,
291,
4133,
16747,
1... |
def clear(self): """ clean the screen """ _debug_('clear skin (%s)' % self.type) self.screen.hide() def hide(self): | def hide(self, fade=True): | def clear(self): """ clean the screen """ _debug_('clear skin (%s)' % self.type) self.screen.hide() | e5003564ebb5e7136c0a28201f71609ff1130898 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e5003564ebb5e7136c0a28201f71609ff1130898/handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
3536,
2721,
326,
5518,
3536,
389,
4148,
67,
2668,
8507,
18705,
6142,
87,
2506,
738,
365,
18,
723,
13,
365,
18,
9252,
18,
11248,
1435,
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,
2424,
12,
2890,
4672,
3536,
2721,
326,
5518,
3536,
389,
4148,
67,
2668,
8507,
18705,
6142,
87,
2506,
738,
365,
18,
723,
13,
365,
18,
9252,
18,
11248,
1435,
2,
-100,
-100,
-100,
-100,
-... |
print '-%20.20s %20.20 %-30.30s'%(f, d[5:], s) | print '-%20.20s %20.20s %-30.30s'%(f, d[5:], s) | def _test(): import time import sys import string import os args = sys.argv[1:] if not args: for key in 'MAILDIR', 'MAIL', 'LOGNAME', 'USER': if os.environ.has_key(key): mbox = os.environ[key] break else: print "$MAIL, $LOGNAME nor $USER set -- who are you?" return else: mbox = args[0] if mbox[:1] == '+': mbox = os.en... | 6eae615ed9e4fabaf16d30e9f82b3aa285222b6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6eae615ed9e4fabaf16d30e9f82b3aa285222b6b/mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
13332,
1930,
813,
1930,
2589,
1930,
533,
1930,
1140,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
486,
833,
30,
364,
498,
316,
296,
18191,
4537,
2187,
296,
18191,
2187,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
13332,
1930,
813,
1930,
2589,
1930,
533,
1930,
1140,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
486,
833,
30,
364,
498,
316,
296,
18191,
4537,
2187,
296,
18191,
2187,... |
import init | def parse(self): import init try: main = BeginSource(self) return main except KeyboardInterrupt: raise except: reader = self.reader while reader is not None: message = reader.format_message('FATAL ERROR', 'while processing line', reader.linecount, reader.linecount) reader.show_message(message, sys.stdout) reader = read... | 8af73d5a128335cd38be5cd2ee424373ea4c87c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/8af73d5a128335cd38be5cd2ee424373ea4c87c4/parsefortran.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
775,
30,
2774,
273,
14323,
1830,
12,
2890,
13,
327,
2774,
1335,
19424,
30,
1002,
1335,
30,
2949,
273,
365,
18,
10530,
1323,
2949,
353,
486,
599,
30,
883,
273,
294... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
775,
30,
2774,
273,
14323,
1830,
12,
2890,
13,
327,
2774,
1335,
19424,
30,
1002,
1335,
30,
2949,
273,
365,
18,
10530,
1323,
2949,
353,
486,
599,
30,
883,
273,
294... | |
paths = self.get_paths_for_node(tid) | if self.is_displayed(tid): paths = self.get_paths_for_node(tid) else: paths = None | def __update_node(self,tid,inroot): if tid not in self.node_to_remove: todis = self.__is_displayed(tid) curdis = self.is_displayed(tid) if todis: #if the task was not displayed previously but now should #we add it. if not curdis: | c8281ccbb8491bf220ca0a0aec8225f670c84e9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/c8281ccbb8491bf220ca0a0aec8225f670c84e9d/filteredtree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
67,
2159,
12,
2890,
16,
18081,
16,
267,
3085,
4672,
309,
11594,
486,
316,
365,
18,
2159,
67,
869,
67,
4479,
30,
358,
2251,
273,
365,
16186,
291,
67,
5417,
329,
12,
18081,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
67,
2159,
12,
2890,
16,
18081,
16,
267,
3085,
4672,
309,
11594,
486,
316,
365,
18,
2159,
67,
869,
67,
4479,
30,
358,
2251,
273,
365,
16186,
291,
67,
5417,
329,
12,
18081,
... |
return data[:-3] + '\n' | return data.replace('\r\r\n', '\n') | def normalize_output(data): # Some operating systems do conversions on newline. We could possibly # fix that by doing the appropriate termios.tcsetattr()s. I couldn't # figure out the right combo on Tru64 and I don't have an IRIX box. # So just normalize the output and doc the problem O/Ses by allowing # certain comb... | 1d2094f5be388fde53f5eccccfa5a0a928a7f479 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1d2094f5be388fde53f5eccccfa5a0a928a7f479/test_pty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
2844,
12,
892,
4672,
468,
10548,
16929,
14908,
741,
22586,
603,
9472,
18,
225,
1660,
3377,
10016,
468,
2917,
716,
635,
9957,
326,
5505,
2481,
7441,
18,
5111,
542,
1747,
1435,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
2844,
12,
892,
4672,
468,
10548,
16929,
14908,
741,
22586,
603,
9472,
18,
225,
1660,
3377,
10016,
468,
2917,
716,
635,
9957,
326,
5505,
2481,
7441,
18,
5111,
542,
1747,
1435,
8... |
<tal:block content="structure python:here.portal_map.render_object_map(here.geo_location)"/> | <tal:block condition="python:here.prop_details('geo_location')['show']" content="structure python:here.portal_map.render_object_map(here.geo_location)"/> | def render_object_map(self, geo_location): """ Returns all the script and html required to display a map corresponding to the map engine selected in the administration area. | 16c5769765094b121a5d6e0ff4da3bd896a468e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/16c5769765094b121a5d6e0ff4da3bd896a468e1/GeoMapTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
1612,
67,
1458,
12,
2890,
16,
7856,
67,
3562,
4672,
3536,
2860,
777,
326,
2728,
471,
1729,
1931,
358,
2562,
279,
852,
4656,
358,
326,
852,
4073,
3170,
316,
326,
3981,
4218,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
67,
1612,
67,
1458,
12,
2890,
16,
7856,
67,
3562,
4672,
3536,
2860,
777,
326,
2728,
471,
1729,
1931,
358,
2562,
279,
852,
4656,
358,
326,
852,
4073,
3170,
316,
326,
3981,
4218,
5... |
(units, scale, isAfter) = timeDeltaDetails(reminder.delta) remindable.userReminderInterval = scaleTimeDelta(units, scale, not isAfter) | delta = getattr(item, pim.Remindable.userReminderInterval.name) (units, scale, isAfter) = timeDeltaDetails(delta) setattr(item, pim.Remindable.userReminderInterval.name, scaleTimeDelta(units, scale, not isAfter)) | def SetAttributeValue(self, item, attributeName, value): """ Set the value of the attribute given by the value. """ if self.ReadOnly((item, attributeName)): return | e239e2ad7d8a1a5988008c402c9d6f85f3d59c53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e239e2ad7d8a1a5988008c402c9d6f85f3d59c53/detail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
14942,
12,
2890,
16,
761,
16,
9734,
16,
460,
4672,
3536,
1000,
326,
460,
434,
326,
1566,
864,
635,
326,
460,
18,
3536,
309,
365,
18,
12066,
12443,
1726,
16,
9734,
3719,
30,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1000,
14942,
12,
2890,
16,
761,
16,
9734,
16,
460,
4672,
3536,
1000,
326,
460,
434,
326,
1566,
864,
635,
326,
460,
18,
3536,
309,
365,
18,
12066,
12443,
1726,
16,
9734,
3719,
30,
327,
... |
if (rptr->nbLongRange == 0) | if (rptr->nbLongRange == 0) { | #ifdef __cplusplus | c4b8189aa746926a31722287db10cddc8d89a315 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/c4b8189aa746926a31722287db10cddc8d89a315/genChRanges.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
1001,
71,
10103,
10103,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
1001,
71,
10103,
10103,
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,
-1... |
parser.add_option("-p", "--parse", dest="parse", help="Parse log file", default=False) | parser.add_option("-p", "--parse", action="store_true", dest="parse", help="Parse logs") parser.add_option("--no-parse", action="store_false", dest="parse", help="Do not parse logs") | def parse_options(): parser = optparse.OptionParser() parser.add_option("-u", "--url", dest="repo_url", help="Reporitory URL") parser.add_option("-r", "--reports", action="store_true", dest="reports", help="Generate reports") parser.add_option("--no-reports", action="store_false", dest="reports", help="Do not generate ... | b6ac3829b04dc48154881e58629defd67d37ee04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2516/b6ac3829b04dc48154881e58629defd67d37ee04/mpyss.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
13332,
2082,
273,
2153,
2670,
18,
1895,
2678,
1435,
2082,
18,
1289,
67,
3482,
2932,
17,
89,
3113,
5238,
718,
3113,
1570,
1546,
7422,
67,
718,
3113,
2809,
1546,
426,
3831,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2082,
273,
2153,
2670,
18,
1895,
2678,
1435,
2082,
18,
1289,
67,
3482,
2932,
17,
89,
3113,
5238,
718,
3113,
1570,
1546,
7422,
67,
718,
3113,
2809,
1546,
426,
3831,... |
A->A B->B C->F D->G E->E F->F G->G H->E I->I J->J K->K L->A M->M | A->A B->B C->F D->G E->E F->F G->G H->E I->I J->J K->K L->A M->M | ... def __str__(self): | 0665f7d932e15bc75f6d745c6e03e0762451c536 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/0665f7d932e15bc75f6d745c6e03e0762451c536/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if hdlr in self.handlers: hdlr.acquire() try: | _acquireLock() try: if hdlr in self.handlers: | def removeHandler(self, hdlr): """ Remove the specified handler from this logger. """ if hdlr in self.handlers: hdlr.acquire() try: self.handlers.remove(hdlr) finally: hdlr.release() | e02fdf8d462f4b8aa1f5ac5057891c4efdbce6d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e02fdf8d462f4b8aa1f5ac5057891c4efdbce6d1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
1503,
12,
2890,
16,
366,
5761,
86,
4672,
3536,
3581,
326,
1269,
1838,
628,
333,
1194,
18,
3536,
389,
1077,
1039,
2531,
1435,
775,
30,
309,
366,
5761,
86,
316,
365,
18,
11046,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
1503,
12,
2890,
16,
366,
5761,
86,
4672,
3536,
3581,
326,
1269,
1838,
628,
333,
1194,
18,
3536,
389,
1077,
1039,
2531,
1435,
775,
30,
309,
366,
5761,
86,
316,
365,
18,
11046,
30,... |
self.assertRaises(OSError, os.ftruncate, 10, 0) | self.assertRaises(IOError, os.ftruncate, 10, 0) | def test_ftruncate(self): if hasattr(os, "ftruncate"): self.assertRaises(OSError, os.ftruncate, 10, 0) | f2617c1f9c9aab22212820b6c18b649f7bdce366 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/f2617c1f9c9aab22212820b6c18b649f7bdce366/test_os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
74,
27201,
12,
2890,
4672,
309,
3859,
12,
538,
16,
315,
74,
27201,
6,
4672,
365,
18,
11231,
12649,
6141,
12,
4618,
668,
16,
1140,
18,
74,
27201,
16,
1728,
16,
374,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
74,
27201,
12,
2890,
4672,
309,
3859,
12,
538,
16,
315,
74,
27201,
6,
4672,
365,
18,
11231,
12649,
6141,
12,
4618,
668,
16,
1140,
18,
74,
27201,
16,
1728,
16,
374,
13,
2,
... |
if not os.path.isdir(path): | if command != 'clean' and not os.path.isdir(path): | def main(argv): try: argv = gflags.FLAGS(argv) if len(argv) != 2: _PrintUsageAndDie('Must specify a valid command') else: command = argv[1] except gflags.FlagsError, e : _PrintUsageAndDie(str(e)) package_list = gflags.FLAGS.packages.split(':') _CheckSaneArguments(package_list, command) if gflags.FLAGS.overlays: overla... | f7502a6e03df7073fc0ce17b15c7f2349175fe0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/f7502a6e03df7073fc0ce17b15c7f2349175fe0e/cros_mark_as_stable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
775,
30,
5261,
273,
314,
7133,
18,
17836,
12,
19485,
13,
309,
562,
12,
19485,
13,
480,
576,
30,
389,
5108,
5357,
1876,
23196,
2668,
10136,
4800,
279,
923,
1296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
775,
30,
5261,
273,
314,
7133,
18,
17836,
12,
19485,
13,
309,
562,
12,
19485,
13,
480,
576,
30,
389,
5108,
5357,
1876,
23196,
2668,
10136,
4800,
279,
923,
1296,
... |
if self.socket is None: | if not self.socket or self.socket == 'closed': | def send_raw(self, string): """Send raw string to the server. | 84fab4a4e45967b0b74b64432b80b0d257f625a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9915/84fab4a4e45967b0b74b64432b80b0d257f625a3/irclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1899,
12,
2890,
16,
533,
4672,
3536,
3826,
1831,
533,
358,
326,
1438,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1899,
12,
2890,
16,
533,
4672,
3536,
3826,
1831,
533,
358,
326,
1438,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
frame_opened = 0 string = _string | state.frame_opened = False return _string def transform_h2_to_sec(string, state): """ headings (1) to sections """ frame_closing = escape_resub(get_frame_closing(state)) sec_opening = r"\n\\section\2{\1}\n\n" | def transform(string): """ convert/transform one line """ global frame_opened, enum_item_level # nasty thing to do global frame_header, frame_footer, next_frame_footer preamble = "" # for enumeration/itemize environment commands # handle itemizing/enumerations p = re.compile("^([\*\#]+).*$") m = p.match(string) ... | 1947325dce6126afe82562ecb94d6cdf480ca241 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14466/1947325dce6126afe82562ecb94d6cdf480ca241/wiki2beamer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
1080,
4672,
3536,
1765,
19,
6547,
1245,
980,
3536,
2552,
2623,
67,
25304,
16,
2792,
67,
1726,
67,
2815,
565,
468,
290,
689,
93,
7757,
358,
741,
2552,
2623,
67,
3374,
16,
2623... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
1080,
4672,
3536,
1765,
19,
6547,
1245,
980,
3536,
2552,
2623,
67,
25304,
16,
2792,
67,
1726,
67,
2815,
565,
468,
290,
689,
93,
7757,
358,
741,
2552,
2623,
67,
3374,
16,
2623... |
this = apply(_quickfix.new_Currency, args) | this = _quickfix.new_Currency(*args) | def __init__(self, *args): this = apply(_quickfix.new_Currency, 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,
7623,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
7623,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
221... |
xmlrpclib.Fault(1, "%s:%s" % (sys.exc_type, sys.exc_value)) | xmlrpclib.Fault(1, "%s:%s" % (sys.exc_type, sys.exc_value)), encoding=self.encoding, allow_none=self.allow_none, | def _marshaled_dispatch(self, data, dispatch_method = None): """Dispatches an XML-RPC method from marshalled (XML) data. | 4fbf9d2e4f8201535ad2c67e404f8941b771231f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4fbf9d2e4f8201535ad2c67e404f8941b771231f/SimpleXMLRPCServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3108,
329,
67,
10739,
12,
2890,
16,
501,
16,
3435,
67,
2039,
273,
599,
4672,
3536,
5325,
281,
392,
3167,
17,
8087,
707,
628,
10893,
1259,
261,
4201,
13,
501,
18,
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,
389,
3108,
329,
67,
10739,
12,
2890,
16,
501,
16,
3435,
67,
2039,
273,
599,
4672,
3536,
5325,
281,
392,
3167,
17,
8087,
707,
628,
10893,
1259,
261,
4201,
13,
501,
18,
2,
-100,
-100,
... |
keys = ['language', 'translate_out', 'translate_in', 'debug_mode', | keys = ['language', 'translate_out', 'translate_in', 'debug_mode', 'smtp_ssl' | def die(cond, msg): if cond: print msg sys.exit(1) | 6849735d632bc3232089bcba161bf3eaa621c1e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/6849735d632bc3232089bcba161bf3eaa621c1e5/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10387,
12,
10013,
16,
1234,
4672,
309,
6941,
30,
1172,
1234,
2589,
18,
8593,
12,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
10387,
12,
10013,
16,
1234,
4672,
309,
6941,
30,
1172,
1234,
2589,
18,
8593,
12,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
returned_html = returned_html[ibegin:iend] output(returned_html, myencoding()) | output(u'Deletion failed:.') try: ibegin = data.index('<!-- start content -->') + 22 iend = data.index('<!-- end content -->') except ValueError: output(data) else: data = data[ibegin:iend] output(data) | def encode_multipart_formdata(fields): """ fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return (content_type, body) ready for httplib.HTTP instance """ BOUNDARY = '----------ThIs_Is_tHe_bouNdaRY_$' CRLF =... | 031202ea0712e4a14472a77bd1d8f72015efd1da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/031202ea0712e4a14472a77bd1d8f72015efd1da/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
67,
16404,
67,
687,
892,
12,
2821,
4672,
3536,
1466,
353,
279,
3102,
434,
261,
529,
16,
460,
13,
2186,
364,
6736,
646,
1466,
18,
1390,
353,
279,
3102,
434,
261,
529,
16,
1544,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
67,
16404,
67,
687,
892,
12,
2821,
4672,
3536,
1466,
353,
279,
3102,
434,
261,
529,
16,
460,
13,
2186,
364,
6736,
646,
1466,
18,
1390,
353,
279,
3102,
434,
261,
529,
16,
1544,
... |
self.fitContents() | if not self.pmHeightComputed: self.fitContents() | def show(self): """Show the Graphene Sheet Property Manager. """ self.setSponsor() if not self.pw or self: self.pw = self.win.activePartWindow() #@@@ ninad061206 self.pw.updatePropertyManagerTab(self) self.pw.featureManager.setCurrentIndex(self.pw.featureManager.indexOf(self)) else: self.pw.updatePropertyManagerT... | c2a5e75de397404ea709ec4ff23abf4871625cb4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/c2a5e75de397404ea709ec4ff23abf4871625cb4/PropMgrBaseClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
3536,
5706,
326,
5601,
4009,
18707,
4276,
8558,
18,
3536,
365,
18,
542,
55,
500,
2467,
1435,
309,
486,
365,
18,
14921,
578,
365,
30,
365,
18,
14921,
273,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
3536,
5706,
326,
5601,
4009,
18707,
4276,
8558,
18,
3536,
365,
18,
542,
55,
500,
2467,
1435,
309,
486,
365,
18,
14921,
578,
365,
30,
365,
18,
14921,
273,
365,
18,... |
"0123456789-_") | "0123456789_") | def _exists(fn): try: _stat(fn) except _os.error: return False else: return True | 35331346b45434a5449417caa420b8e5eb61383e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/35331346b45434a5449417caa420b8e5eb61383e/tempfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1808,
12,
4293,
4672,
775,
30,
389,
5642,
12,
4293,
13,
1335,
389,
538,
18,
1636,
30,
327,
1083,
469,
30,
327,
1053,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
1808,
12,
4293,
4672,
775,
30,
389,
5642,
12,
4293,
13,
1335,
389,
538,
18,
1636,
30,
327,
1083,
469,
30,
327,
1053,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'proposition_type' : lambda *a : 'init', 'keep_segments' : lambda *a : True, 'keep_prices' : lambda *a : True } | 'proposition_type': lambda *a: 'init', 'keep_segments': lambda *a: True, 'keep_prices': lambda *a: True } | def _default_camp_date(self, cr, uid, context={}): if 'date1' in context and context['date1']: dd = context['date1'] return dd return [] | 7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1886,
67,
71,
931,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
309,
296,
712,
21,
11,
316,
819,
471,
819,
3292,
712,
21,
3546,
30,
6957,
273,
819,
3292,
712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
1886,
67,
71,
931,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
309,
296,
712,
21,
11,
316,
819,
471,
819,
3292,
712,
21,
3546,
30,
6957,
273,
819,
3292,
712,
... |
rel_dir = destpath.replace(trimmedFSBasePath, '') | rel_dir = destpath.replace(trimmedFSBasePath, '').replace('\\','/') | def listFolderContents(self, spec=None, contentFilter=None, suppressHiddenFiles=0, REQUEST=None, RESPONSE=None): """ list content of local filesystem """ | 427351963657f6df9e3d74fe70f3dab38f6423b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/427351963657f6df9e3d74fe70f3dab38f6423b4/PloneLocalFolderNG.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
3899,
6323,
12,
2890,
16,
225,
857,
33,
7036,
16,
913,
1586,
33,
7036,
16,
12257,
9345,
2697,
33,
20,
16,
12492,
33,
7036,
16,
20645,
33,
7036,
4672,
3536,
666,
913,
434,
1191,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
666,
3899,
6323,
12,
2890,
16,
225,
857,
33,
7036,
16,
913,
1586,
33,
7036,
16,
12257,
9345,
2697,
33,
20,
16,
12492,
33,
7036,
16,
20645,
33,
7036,
4672,
3536,
666,
913,
434,
1191,
... |
node.writexml(writer) | node.writexml(writer, indent, addindent, newl) | def writexml(self, writer): writer.write('<?xml version="1.0" ?>\n') for node in self.childNodes: node.writexml(writer) | 2e6c591820a1112a2e8d88ebeec8241ccf2b5bcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2e6c591820a1112a2e8d88ebeec8241ccf2b5bcc/minidom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
338,
781,
12,
2890,
16,
2633,
4672,
2633,
18,
2626,
2668,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
692,
5333,
82,
6134,
364,
756,
316,
365,
18,
3624,
3205,
30,
756,
18,
5363,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
338,
781,
12,
2890,
16,
2633,
4672,
2633,
18,
2626,
2668,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
692,
5333,
82,
6134,
364,
756,
316,
365,
18,
3624,
3205,
30,
756,
18,
5363,
33... |
sizer_image = wx.BoxSizer(wx.HORIZONTAL) sizer_image.Add(self.image_viewer, 0, wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL) | def _init_ui(self): self.title = wx.StaticText(self, -1, _("Image"), style=wx.ALIGN_CENTER) self.subtitle = wx.StaticText(self, -1, _("Image"), style=wx.ALIGN_CENTER) self.image_viewer = wx.StaticBitmap(self, -1, size=(70, 70)) | 47febb45edce5483b68db9c0d9e0e9a439300947 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/47febb45edce5483b68db9c0d9e0e9a439300947/dicom_preview_panel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
4881,
12,
2890,
4672,
365,
18,
2649,
273,
7075,
18,
5788,
1528,
12,
2890,
16,
300,
21,
16,
389,
2932,
2040,
6,
3631,
2154,
33,
27226,
18,
26439,
67,
19835,
13,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
4881,
12,
2890,
4672,
365,
18,
2649,
273,
7075,
18,
5788,
1528,
12,
2890,
16,
300,
21,
16,
389,
2932,
2040,
6,
3631,
2154,
33,
27226,
18,
26439,
67,
19835,
13,
365,
18... | |
prop["text-align"] = tag["align"] | al = tag['align'].lower() if al in ('left', 'right', 'center', 'justify'): prop["text-align"] = al | def merge_parent_css(prop, pcss): temp = {} for key in pcss.keys(): chk = key.lower() # float should not be inherited according to the CSS spec # however we need to as we don't do alignment at a block level. # float is removed by the process_alignment function. if chk.startswith('font') or chk == 'text-align' or \ chk ... | eeab59df298c1f35d80863c5b406114dfefd590a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/eeab59df298c1f35d80863c5b406114dfefd590a/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
2938,
67,
5212,
12,
5986,
16,
293,
5212,
4672,
1906,
273,
2618,
364,
498,
316,
293,
5212,
18,
2452,
13332,
15000,
273,
498,
18,
8167,
1435,
468,
1431,
1410,
486,
506,
12078,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
2938,
67,
5212,
12,
5986,
16,
293,
5212,
4672,
1906,
273,
2618,
364,
498,
316,
293,
5212,
18,
2452,
13332,
15000,
273,
498,
18,
8167,
1435,
468,
1431,
1410,
486,
506,
12078,
... |
user, domain = sender.split("@") | user, domain = sender.rsplit("@", 1) | def check(self, data, *args, **keywords): sender = data.get('sender', '').lower() recipient = data.get('recipient', '').lower() client_name = data.get('client_name', '').lower() client_address = data.get('client_address') | e4c8602466fde25c714c7f8746a6892396a62f29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/e4c8602466fde25c714c7f8746a6892396a62f29/Greylist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
501,
16,
380,
1968,
16,
2826,
11771,
4672,
5793,
273,
501,
18,
588,
2668,
15330,
2187,
875,
2934,
8167,
1435,
8027,
273,
501,
18,
588,
2668,
20367,
2187,
875,
2934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16,
501,
16,
380,
1968,
16,
2826,
11771,
4672,
5793,
273,
501,
18,
588,
2668,
15330,
2187,
875,
2934,
8167,
1435,
8027,
273,
501,
18,
588,
2668,
20367,
2187,
875,
2934,
... |
if config.aug_pprint: pprint = pprint_with(aug_node_repr) else: pprint = pprint_with(default_node_repr) | pprint = pprint_with(default_node_repr) | def base_pprint(node, level=0, sep=' ', newline='\n', reduced_leaves=False): out = [] if level == 0: out.append('(') else: out.append( sep * level ) if node.is_leaf(): if reduced_leaves: out.append(node_repr(node)) else: out.append("(%s)" % node_repr(node)) else: # special case for nodes with all-leaf children if no... | b7744093fc508a84e302933488e904ff53030d11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8383/b7744093fc508a84e302933488e904ff53030d11/pprint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
84,
1188,
12,
2159,
16,
1801,
33,
20,
16,
5478,
2218,
282,
2265,
9472,
2218,
64,
82,
2187,
13162,
67,
298,
6606,
33,
8381,
4672,
596,
273,
5378,
309,
1801,
422,
374,
30,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
84,
1188,
12,
2159,
16,
1801,
33,
20,
16,
5478,
2218,
282,
2265,
9472,
2218,
64,
82,
2187,
13162,
67,
298,
6606,
33,
8381,
4672,
596,
273,
5378,
309,
1801,
422,
374,
30,
59... |
if hasattr(module, '__all__'): try: public_names = set([str(name) for name in module.__all__]) for name, var_doc in module_doc.variables.items(): if name in public_names: var_doc.is_public = True if not isinstance(var_doc, ModuleDoc): var_doc.is_imported = False else: var_doc.is_public = False except KeyboardInterrup... | def introspect_module(module, module_doc, module_name=None, preliminary=False): """ Add API documentation information about the module C{module} to C{module_doc}. """ module_doc.specialize_to(ModuleDoc) # Record the module's docformat if hasattr(module, '__docformat__'): module_doc.docformat = unicode(module.__docform... | d280def57e42f4d9659c49ecad82dd67326d9ec8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/d280def57e42f4d9659c49ecad82dd67326d9ec8/docintrospecter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30165,
67,
2978,
12,
2978,
16,
1605,
67,
2434,
16,
1605,
67,
529,
33,
7036,
16,
675,
7091,
2101,
33,
8381,
4672,
3536,
1436,
1491,
7323,
1779,
2973,
326,
1605,
385,
95,
2978,
97,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30165,
67,
2978,
12,
2978,
16,
1605,
67,
2434,
16,
1605,
67,
529,
33,
7036,
16,
675,
7091,
2101,
33,
8381,
4672,
3536,
1436,
1491,
7323,
1779,
2973,
326,
1605,
385,
95,
2978,
97,
358,
... | |
parts = re.split('[?]+',url) if (parts[0] == url): return url +"?page=" + str(pageNum) | if re.search('[?]',url): return url +"&page=" + str(pageNum) | def concatPage(url,pageNum): try: parts = re.split('[?]+',url) if (parts[0] == url): return url +"?page=" + str(pageNum) else: return url +"&page=" + str(pageNum) except: return url +"?page=" + str(pageNum) | 73820490b7c681857257eb5e2a48c6281bc5f9e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14804/73820490b7c681857257eb5e2a48c6281bc5f9e2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3835,
1964,
12,
718,
16,
2433,
2578,
4672,
775,
30,
309,
283,
18,
3072,
2668,
63,
35,
65,
2187,
718,
4672,
327,
880,
397,
6,
10,
2433,
1546,
397,
609,
12,
2433,
2578,
13,
469,
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,
3835,
1964,
12,
718,
16,
2433,
2578,
4672,
775,
30,
309,
283,
18,
3072,
2668,
63,
35,
65,
2187,
718,
4672,
327,
880,
397,
6,
10,
2433,
1546,
397,
609,
12,
2433,
2578,
13,
469,
30,
... |
print "Running model with mass " , ms | print "Running model with %s=%s"%(fixture["name"], str(ps)) | def massvspectrum(masses=None, nefolds=5, pivotk=N.array([1.3125e-58], ystart=None)): """Run tests for different masses, return mass used and spectrum after horizon exit""" if masses is None: masses = N.logspace(N.log10(5e-6), N.log10(7e-6)) if ystart is None: results = None for ms in masses: sim = c.FOCanonicalTwoStag... | 3cac568b2ccb95c33b67c12646cefb96cb5c9e62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7283/3cac568b2ccb95c33b67c12646cefb96cb5c9e62/findparams.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8039,
6904,
13324,
12,
10424,
281,
33,
7036,
16,
1073,
16007,
87,
33,
25,
16,
9939,
79,
33,
50,
18,
1126,
3816,
21,
18,
23,
18473,
73,
17,
8204,
6487,
677,
1937,
33,
7036,
3719,
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,
8039,
6904,
13324,
12,
10424,
281,
33,
7036,
16,
1073,
16007,
87,
33,
25,
16,
9939,
79,
33,
50,
18,
1126,
3816,
21,
18,
23,
18473,
73,
17,
8204,
6487,
677,
1937,
33,
7036,
3719,
30,
... |
sys.stdout.write("Found: %s\n",publication_directory) | sys.stdout.write("Found: %s\n" %(publication_directory)) | def __init__(self,type=None,ifo=None,time=None,snr=None,chisqr=None,mass1=None,mass2=None,mchirp=None): """ """ self.type=str(type) self.ifo=str(ifo) self.time=float(time) self.snr=float(snr) self.chisqr=float(chisqr) self.mass1=float(mass1) self.mass2=float(mass2) self.mchirp=float(mchirp) | 04ee230753c51cc2fa6261a2cf36152529f9394e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/04ee230753c51cc2fa6261a2cf36152529f9394e/makeCheckListWiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
723,
33,
7036,
16,
20299,
33,
7036,
16,
957,
33,
7036,
16,
8134,
86,
33,
7036,
16,
343,
291,
27401,
33,
7036,
16,
10424,
21,
33,
7036,
16,
10424,
22,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
723,
33,
7036,
16,
20299,
33,
7036,
16,
957,
33,
7036,
16,
8134,
86,
33,
7036,
16,
343,
291,
27401,
33,
7036,
16,
10424,
21,
33,
7036,
16,
10424,
22,
... |
if not rings.is_CyclotomicField(K) or rings.is_RationalField(K): | if not (rings.is_CyclotomicField(K) or rings.is_RationalField(K)): | def gauss_sum_numerical(self, prec=53, a=1): r""" Return a Gauss sum associated to this Dirichlet character as an approximate complex number with prec bits of precision. | 1c76f19670c28ca7fc7cc68574571a908363e62d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/1c76f19670c28ca7fc7cc68574571a908363e62d/dirichlet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
10325,
67,
1364,
67,
2107,
10882,
12,
2890,
16,
13382,
33,
8643,
16,
279,
33,
21,
4672,
436,
8395,
2000,
279,
611,
10325,
2142,
3627,
358,
333,
8446,
1354,
1810,
3351,
487,
392,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
10325,
67,
1364,
67,
2107,
10882,
12,
2890,
16,
13382,
33,
8643,
16,
279,
33,
21,
4672,
436,
8395,
2000,
279,
611,
10325,
2142,
3627,
358,
333,
8446,
1354,
1810,
3351,
487,
392,
2... |
print " else: print "log> %s" % line | def testLogin(self): # Eat output while self.nuauth.readline(): pass | 5acabbe881c45999b9a428c8af024cf970130723 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10929/5acabbe881c45999b9a428c8af024cf970130723/test_log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5358,
12,
2890,
4672,
468,
512,
270,
876,
1323,
365,
18,
13053,
1944,
18,
896,
1369,
13332,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5358,
12,
2890,
4672,
468,
512,
270,
876,
1323,
365,
18,
13053,
1944,
18,
896,
1369,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
self._writer.end_element('body') self._writer.end_element('html') | self._writer.end('body') self._writer.end('html') | def _write_end(self): self._writer.end_element('body') self._writer.end_element('html') | 9cdb508010da4366326649ba4d0a07a65263ab66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7408/9cdb508010da4366326649ba4d0a07a65263ab66/robotdiff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
409,
12,
2890,
4672,
365,
6315,
6299,
18,
409,
67,
2956,
2668,
3432,
6134,
365,
6315,
6299,
18,
409,
67,
2956,
2668,
2620,
6134,
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,
0,
0,
0,
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,
2626,
67,
409,
12,
2890,
4672,
365,
6315,
6299,
18,
409,
67,
2956,
2668,
3432,
6134,
365,
6315,
6299,
18,
409,
67,
2956,
2668,
2620,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
fullpath = path.normpath(path.join(cwd, dep)) relpath = fullpath[len(path.normpath(self.srcdir))+len(path.sep):] | relpath = relative_path(frompath, path.normpath(path.join(cwd, dep))) | def process_dependencies(self, docname, doctree): """ Process docutils-generated dependency info. """ cwd = os.getcwd() deps = doctree.settings.record_dependencies if not deps: return docdir = path.dirname(self.doc2path(docname, base=None)) for dep in deps.list: # the dependency path is relative to the working dir, so ... | c66aefe7cb4e37ae4524e8a73d9a187129b379d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/c66aefe7cb4e37ae4524e8a73d9a187129b379d7/environment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
11037,
12,
2890,
16,
997,
529,
16,
31263,
992,
4672,
3536,
4389,
997,
5471,
17,
11168,
4904,
1123,
18,
3536,
7239,
273,
1140,
18,
588,
11089,
1435,
8740,
273,
31263,
992,
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,
1207,
67,
11037,
12,
2890,
16,
997,
529,
16,
31263,
992,
4672,
3536,
4389,
997,
5471,
17,
11168,
4904,
1123,
18,
3536,
7239,
273,
1140,
18,
588,
11089,
1435,
8740,
273,
31263,
992,
18,
... |
notat = toFAN(m.getBoardAtPly(ply-1), game.getMoveAtPly(ply-1)) | notat = toFAN(game.getBoardAtPly(ply-1), game.getMoveAtPly(ply-1)) | def __addMove(self, game, ply): row, view, other = self._ply_to_row_col_other(ply) if conf.get("figuresInNotation", False): notat = toFAN(m.getBoardAtPly(ply-1), game.getMoveAtPly(ply-1)) else: notat = toSAN(game.getBoardAtPly(ply-1), game.getMoveAtPly(ply-1), localRepr=True) # Test if the row is 'filled' if len(view... | daf9bd5ad39e27129930d9516925f2e0ea9358a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5339/daf9bd5ad39e27129930d9516925f2e0ea9358a2/historyPanel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
7607,
12,
2890,
16,
7920,
16,
293,
715,
4672,
1027,
16,
1476,
16,
1308,
273,
365,
6315,
1283,
67,
869,
67,
492,
67,
1293,
67,
3011,
12,
1283,
13,
225,
309,
2195,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
7607,
12,
2890,
16,
7920,
16,
293,
715,
4672,
1027,
16,
1476,
16,
1308,
273,
365,
6315,
1283,
67,
869,
67,
492,
67,
1293,
67,
3011,
12,
1283,
13,
225,
309,
2195,
18,
588,... |
fileRecords.append((lfn,'Checksum mismatch','%s@%s' % (seChecksum,se),'','MigrationMonitoringAgent')) matchFiles.append(fileID) | fileRecords.append( ( lfn, 'Checksum mismatch', '%s@%s' % ( seChecksum, se ), '', 'MigrationMonitoringAgent' ) ) matchFiles.append( fileID ) | def __validateChecksums(self,se, migratedFileIDs,migratingFiles): """ Obtain the checksums in the catalog if not present and check against the checksum from the storage """ lfnFileID = {} checksumToObtain = [] for fileID in migratedFileIDs.keys(): if not migratingFiles[fileID]['Checksum']: lfn = migratingFiles[fileID][... | 9a22336d92a455ef5a2bab49d70e2e3a11f3d910 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9a22336d92a455ef5a2bab49d70e2e3a11f3d910/MigrationMonitoringAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5662,
10723,
87,
12,
2890,
16,
307,
16,
24741,
812,
5103,
16,
81,
2757,
1776,
2697,
4672,
3536,
24850,
326,
26829,
316,
326,
6222,
309,
486,
3430,
471,
866,
5314,
326,
6697,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5662,
10723,
87,
12,
2890,
16,
307,
16,
24741,
812,
5103,
16,
81,
2757,
1776,
2697,
4672,
3536,
24850,
326,
26829,
316,
326,
6222,
309,
486,
3430,
471,
866,
5314,
326,
6697,
628,
... |
print wrap_text_in_a_box(title='prova', body=' 123 prova.\n Vediamo come si indenta', horiz_sep='-', style_name='no_border', max_col=20, tab_num=1) | print wrap_text_in_a_box(title='prova', body=' 123 prova.\n Vediamo come si indenta', horiz_sep='-', style='no_border', max_col=20, tab_num=1) | def wrap_text_in_a_box(body='', title='', style_name='DEFAULT', **args): """Return a nicely formatted text box: e.g. ****************** ** title ** **--------------** ** body ** ****************** Indentation and newline are respected. @param body the main text @param title an optional title @param styl... | cb951b23235794474c152d16125d047c3cdbb82b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1780/cb951b23235794474c152d16125d047c3cdbb82b/textutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
955,
67,
267,
67,
69,
67,
2147,
12,
3432,
2218,
2187,
2077,
2218,
2187,
2154,
67,
529,
2218,
5280,
2187,
2826,
1968,
4672,
3536,
990,
279,
11562,
2357,
4955,
977,
3919,
30,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
955,
67,
267,
67,
69,
67,
2147,
12,
3432,
2218,
2187,
2077,
2218,
2187,
2154,
67,
529,
2218,
5280,
2187,
2826,
1968,
4672,
3536,
990,
279,
11562,
2357,
4955,
977,
3919,
30,
4... |
self.resize(100,100) | def adjustSize(self): self.ensurePolished() s = self.sizeHint() self.resize(s) def sizeHint(self): s = self.leftWidgetPart.sizeHint() if self.optimized and not self.mainArea.isHidden(): s.setWidth(s.width() + self.mainArea.sizeHint().width()) return s | def __init__(self, parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, 'k-Means Clustering') | b5200d400a472ae12720d7772ce15d5dcc3a721d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6366/b5200d400a472ae12720d7772ce15d5dcc3a721d/OWKMeans.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
79,
17,
4667,
634,
29103,
6134,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
79,
17,
4667,
634,
29103,
6134,... |
elif self.fFreeManip: | elif self.fFreeManip and not self.useSeparateScaleHandles: | def manipulateObjectTask(self, state): if self.fScaling1D: self.scale1D(state) elif self.fScaling3D: self.scale3D(state) else: # Widget takes precedence if self.constraint: type = self.constraint[2:] if base.direct.fControl and not self.currEditTypes & EDIT_TYPE_UNSCALABLE: if type == 'post': # [gjeon] non-uniform scal... | b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28286,
921,
2174,
12,
2890,
16,
919,
4672,
309,
365,
18,
74,
8471,
21,
40,
30,
365,
18,
5864,
21,
40,
12,
2019,
13,
1327,
365,
18,
74,
8471,
23,
40,
30,
365,
18,
5864,
23,
40,
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,
28286,
921,
2174,
12,
2890,
16,
919,
4672,
309,
365,
18,
74,
8471,
21,
40,
30,
365,
18,
5864,
21,
40,
12,
2019,
13,
1327,
365,
18,
74,
8471,
23,
40,
30,
365,
18,
5864,
23,
40,
12... |
missing_files = self._check_manifest() | missing_files = self.builder.check_manifest() | def package(self): bundle_zip = zipfile.ZipFile(self.package_path, 'w', zipfile.ZIP_DEFLATED) missing_files = self._check_manifest() if missing_files: logging.warn('These files are not included in the manifest ' \ 'and will not be present in the bundle:\n\n' + '\n'.join(missing_files) + '\n\nUse fix_manifest if you wa... | aecba37572ec3baab7f1e846b19e09650600ccc2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3114/aecba37572ec3baab7f1e846b19e09650600ccc2/bundlebuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2181,
12,
2890,
4672,
3440,
67,
4450,
273,
18823,
18,
29394,
12,
2890,
18,
5610,
67,
803,
16,
296,
91,
2187,
18823,
18,
13951,
67,
12904,
48,
6344,
13,
225,
3315,
67,
2354,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2181,
12,
2890,
4672,
3440,
67,
4450,
273,
18823,
18,
29394,
12,
2890,
18,
5610,
67,
803,
16,
296,
91,
2187,
18823,
18,
13951,
67,
12904,
48,
6344,
13,
225,
3315,
67,
2354,
273,
365,
... |
print 'INDENT' | def _tag_menuitem(self, cr, rec, data_node=None): rec_id = rec.getAttribute("id").encode('ascii') m_l = map(escape, escape_re.split(rec.getAttribute("name").encode('utf8'))) pid = False for idx, menu_elem in enumerate(m_l): if pid: cr.execute('select id from ir_ui_menu where parent_id=%d and name=%s', (pid, menu_elem))... | 29a1e47fb1295ff56a6f74368f7337fbbb92177b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12853/29a1e47fb1295ff56a6f74368f7337fbbb92177b/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
5414,
1726,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
350,
273,
1950,
18,
588,
1499,
2932,
350,
20387,
3015,
2668,
9184,
6134,
312,
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,
389,
2692,
67,
5414,
1726,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
350,
273,
1950,
18,
588,
1499,
2932,
350,
20387,
3015,
2668,
9184,
6134,
312,
67,
... | |
self.clientInstance.expecting_content = True | def browse(self): self.sendMessage('browse') self.clientInstance.expecting_content = True | 7de8cf50d778dc744d46dcafd41be5f30589d585 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11626/7de8cf50d778dc744d46dcafd41be5f30589d585/buzztard_storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
12,
2890,
4672,
365,
18,
4661,
1079,
2668,
25731,
6134,
365,
18,
2625,
1442,
18,
12339,
310,
67,
1745,
273,
1053,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
12,
2890,
4672,
365,
18,
4661,
1079,
2668,
25731,
6134,
365,
18,
2625,
1442,
18,
12339,
310,
67,
1745,
273,
1053,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
childUpdate=True) | childUpdate=True, connection=dbconn) | def fetchChildren(self): """Prefetch childrens' data | 1ee59885eef6a956b50aafe397aa7c7fd9291ba7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8798/1ee59885eef6a956b50aafe397aa7c7fd9291ba7/iteration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
4212,
12,
2890,
4672,
3536,
25591,
2325,
87,
11,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2158,
4212,
12,
2890,
4672,
3536,
25591,
2325,
87,
11,
501,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if args[0][-3:] != ".py": usage('the script name must have a .py suffix') | def main(): # overridable context prefix = None # settable with -p option exec_prefix = None # settable with -P option extensions = [] path = sys.path modargs = 0 debug = 1 odir = '' win = sys.platform[:3] == 'win' # modules that are imported by the Python runtime implicits = ["s... | 79038fb8fc97421b1124fbaf39b7cb73cb67856a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/79038fb8fc97421b1124fbaf39b7cb73cb67856a/freeze.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
5713,
27621,
819,
1633,
273,
599,
15604,
468,
444,
2121,
598,
300,
84,
1456,
1196,
67,
3239,
273,
599,
5375,
468,
444,
2121,
598,
300,
52,
1456,
4418,
273,
5378,
589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
5713,
27621,
819,
1633,
273,
599,
15604,
468,
444,
2121,
598,
300,
84,
1456,
1196,
67,
3239,
273,
599,
5375,
468,
444,
2121,
598,
300,
52,
1456,
4418,
273,
5378,
589,
... | |
source_factory = env.fs.Entry, multi = 1) | source_factory = env.fs.Entry ) | def copy_action_str(target, source, env): return env.subst_target_source(env['COPYSTR'], 0, target, source) | faff0834984101a38b4a4d63c58811f961ac5754 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12817/faff0834984101a38b4a4d63c58811f961ac5754/filesystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
1128,
67,
701,
12,
3299,
16,
1084,
16,
1550,
4672,
327,
1550,
18,
1717,
334,
67,
3299,
67,
3168,
12,
3074,
3292,
24875,
3902,
17337,
374,
16,
1018,
16,
1084,
13,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
1128,
67,
701,
12,
3299,
16,
1084,
16,
1550,
4672,
327,
1550,
18,
1717,
334,
67,
3299,
67,
3168,
12,
3074,
3292,
24875,
3902,
17337,
374,
16,
1018,
16,
1084,
13,
2,
-100,
-... |
Check that sigma is ``weight 1''. [This test is disabled until trac \ exactly the same answer. Currently there is some precision loss.] sage.: f = EllipticCurve([-1, 3]).padic_sigma(5, 10) sage.: g = EllipticCurve([-1*(2**4), 3*(2**6)]).padic_sigma(5, 10) sage.: t = f.parent().gen() sage.: f(2*t)/2 sage.: g (1 + O(5^10... | Check that sigma is ``weight 1''. sage: f = EllipticCurve([-1, 3]).padic_sigma(5, 10) sage: g = EllipticCurve([-1*(2**4), 3*(2**6)]).padic_sigma(5, 10) sage: t = f.parent().gen() sage: f(2*t)/2 (1 + O(5^10))*t + (4 + 3*5 + 3*5^2 + 3*5^3 + 4*5^4 + 4*5^5 + 3*5^6 + 5^7 + O(5^8))*t^3 + (3 + 3*5^2 + 5^4 + 2*5^5 + O(5^6))*t^... | def padic_sigma(self, p, N=20, E2=None, check=False, check_hypotheses=True): r""" Computes the p-adic sigma function with respect to the standard invariant differential $dx/(2y + a_1 x + a_3)$, as defined by Mazur and Tate, as a power series in the usual uniformiser $t$ at the origin. | e901b45b607d92ed1b9df94a3e96aead8ff614d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e901b45b607d92ed1b9df94a3e96aead8ff614d6/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
13201,
12,
2890,
16,
293,
16,
423,
33,
3462,
16,
512,
22,
33,
7036,
16,
866,
33,
8381,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
13201,
12,
2890,
16,
293,
16,
423,
33,
3462,
16,
512,
22,
33,
7036,
16,
866,
33,
8381,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281,
... |
o = self.model.get(oid) | o = self.objectstore.get(self.model, oid) | def invalid_get_on_delete(self): #"""Test that GET requests on delete action don't modify""" # create some data o = self.model(**self.make_model_data()) o.save() o.flush() | 285f8f164425809b5b13fb7f0e8ffbb46bc88d69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/285f8f164425809b5b13fb7f0e8ffbb46bc88d69/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2057,
67,
588,
67,
265,
67,
3733,
12,
2890,
4672,
468,
8395,
4709,
716,
4978,
3285,
603,
1430,
1301,
2727,
1404,
5612,
8395,
225,
468,
752,
2690,
501,
320,
273,
365,
18,
2284,
12,
636,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2057,
67,
588,
67,
265,
67,
3733,
12,
2890,
4672,
468,
8395,
4709,
716,
4978,
3285,
603,
1430,
1301,
2727,
1404,
5612,
8395,
225,
468,
752,
2690,
501,
320,
273,
365,
18,
2284,
12,
636,... |
if isinstance(arg1, Graph): if len(args) == 0: | import networkx if isinstance(arg1, BipartiteGraph): Graph.__init__(self, arg1, *args, **kwds) self.left, self.right = arg1.left, arg1.right elif isinstance(arg1, (networkx.XGraph, networkx.Graph)): Graph.__init__(self, arg1, *args, **kwds) if hasattr(arg1, 'node_type'): self.left = [] self.right = [] for v in arg1.no... | def __init__(self, *args, **kwds): r""" Bipartite graph. | b404ee282cda16be0b9bf0d21fd7c885e9c9f1b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b404ee282cda16be0b9bf0d21fd7c885e9c9f1b0/bipartite_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
605,
5762,
1137,
2667,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
605,
5762,
1137,
2667,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return False | return 0 | def has_strace(): """ Return True if this system has strace. """ if platform.system() == 'Windows': # even if windows has strace, it's probably a dodgy cygwin one return False try: subprocess.Popen('strace', stderr=subprocess.PIPE) return True except OSError: return False | 1d735a32a20b769bb254cbbea726636f0643db07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7381/1d735a32a20b769bb254cbbea726636f0643db07/fabricate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
701,
623,
13332,
3536,
2000,
1053,
309,
333,
2619,
711,
609,
623,
18,
3536,
309,
4072,
18,
4299,
1435,
422,
296,
10399,
4278,
468,
5456,
309,
9965,
711,
609,
623,
16,
518,
180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
623,
13332,
3536,
2000,
1053,
309,
333,
2619,
711,
609,
623,
18,
3536,
309,
4072,
18,
4299,
1435,
422,
296,
10399,
4278,
468,
5456,
309,
9965,
711,
609,
623,
16,
518,
180... |
item = RSSChannel(rssURL,None,self._container,self._kind) | item = RSSChannel(None,self._container,self._kind) item.initAttributes(rssURL) | def newItem(self,rssURL): item = RSSChannel(rssURL,None,self._container,self._kind) return item | 533c988eead9389d73263be4089bce53f5de8e84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/533c988eead9389d73263be4089bce53f5de8e84/RSSData.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26536,
12,
2890,
16,
25151,
1785,
4672,
761,
273,
31481,
2909,
12,
7036,
16,
2890,
6315,
3782,
16,
2890,
6315,
9224,
13,
761,
18,
2738,
2498,
12,
25151,
1785,
13,
327,
761,
225,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26536,
12,
2890,
16,
25151,
1785,
4672,
761,
273,
31481,
2909,
12,
7036,
16,
2890,
6315,
3782,
16,
2890,
6315,
9224,
13,
761,
18,
2738,
2498,
12,
25151,
1785,
13,
327,
761,
225,
2,
-10... |
""" | """ | def setParameter(self, parameter, value): """ Created: 18.01.2007, KP Description: Set a value for the parameter """ oldval = self.parameters.get(parameter, "ThisIsABadValueThatNoOneWillEverUse") ProcessingFilter.ProcessingFilter.setParameter(self, parameter, value) if self.initDone and value != oldval: lib.messenger.... | 6d7b572696d4ecdce2049b45a6e109836f3272c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/6d7b572696d4ecdce2049b45a6e109836f3272c9/SegmentationFilters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6690,
12,
2890,
16,
1569,
16,
460,
4672,
3536,
12953,
30,
6549,
18,
1611,
18,
6976,
27,
16,
1475,
52,
6507,
30,
1000,
279,
460,
364,
326,
1569,
3536,
225,
1592,
1125,
273,
365,
18,
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,
6690,
12,
2890,
16,
1569,
16,
460,
4672,
3536,
12953,
30,
6549,
18,
1611,
18,
6976,
27,
16,
1475,
52,
6507,
30,
1000,
279,
460,
364,
326,
1569,
3536,
225,
1592,
1125,
273,
365,
18,
3... |
test_and_expecation = line.split('=') | test_and_expectation = line.split('=') | def _GetPlatformUpdateAction(self, line, tests, platform): """Check the platform option and return the action needs to be taken. | 64e0ec0be0663c7f520c6cb9728c055edc916a89 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/64e0ec0be0663c7f520c6cb9728c055edc916a89/test_expectations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
8201,
1891,
1803,
12,
2890,
16,
980,
16,
7434,
16,
4072,
4672,
3536,
1564,
326,
4072,
1456,
471,
327,
326,
1301,
4260,
358,
506,
9830,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
8201,
1891,
1803,
12,
2890,
16,
980,
16,
7434,
16,
4072,
4672,
3536,
1564,
326,
4072,
1456,
471,
327,
326,
1301,
4260,
358,
506,
9830,
18,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
self.Logger.error("Need secondary source"); return(False); | raise pyDCPU.ModuleSetup("No secondary source."); | def setup(self): self.Logger.info("Setup Agilent 5462X Module"); if not self.Parameters.has_key('PSource'): self.Logger.error("Need primary source"); return(False); if not self.Parameters.has_key('SSource'): self.Logger.error("Need secondary source"); return(False); self.__Source = LibAgi.Source(self.Parameters['PSourc... | 2797f7cc5dfc35cdc1823b3697093c4c7e49463b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2439/2797f7cc5dfc35cdc1823b3697093c4c7e49463b/AGI54622A.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
4672,
365,
18,
3328,
18,
1376,
2932,
7365,
5495,
8125,
1381,
8749,
22,
60,
5924,
8863,
309,
486,
365,
18,
2402,
18,
5332,
67,
856,
2668,
52,
1830,
11,
4672,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
4672,
365,
18,
3328,
18,
1376,
2932,
7365,
5495,
8125,
1381,
8749,
22,
60,
5924,
8863,
309,
486,
365,
18,
2402,
18,
5332,
67,
856,
2668,
52,
1830,
11,
4672,
365,
18,
... |
def _format_version(self, raw): return "Exchange Client " + raw | def _format_version(self, unused): return "Microsoft Exchange Client" | def _format_version(self, raw): # Data is just a version string, so prepend something to it. return "Exchange Client " + raw | 5260a83e30dcebb2e7fb41f7518375c75c72150c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/5260a83e30dcebb2e7fb41f7518375c75c72150c/msgstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
67,
1589,
12,
2890,
16,
1831,
4672,
468,
1910,
353,
2537,
279,
1177,
533,
16,
1427,
8254,
5943,
358,
518,
18,
327,
315,
11688,
2445,
315,
397,
1831,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
67,
1589,
12,
2890,
16,
1831,
4672,
468,
1910,
353,
2537,
279,
1177,
533,
16,
1427,
8254,
5943,
358,
518,
18,
327,
315,
11688,
2445,
315,
397,
1831,
2,
-100,
-100,
-100,
-10... |
def optional(self, content): if content.type.optional(): return True resolver = self.marshaller.resolver ancestry = resolver.top().ancestry for a in ancestry: if a.optional(): return True return False | def append(self, parent, content): """ Append the specified L{content} to the I{parent}. @param content: The content to append. @type content: L{Object} """ object = content.value if self.optional(content) and footprint(object) == 0: return child = self.node(content) parent.append(child) for item in object: cont = Cont... | 119720611fabd315e50ed5481f636ad6ec82cfaa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5377/119720611fabd315e50ed5481f636ad6ec82cfaa/marshaller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
982,
16,
913,
4672,
3536,
6181,
326,
1269,
511,
95,
1745,
97,
358,
326,
467,
95,
2938,
5496,
632,
891,
913,
30,
1021,
913,
358,
714,
18,
632,
723,
913,
30,
511,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
982,
16,
913,
4672,
3536,
6181,
326,
1269,
511,
95,
1745,
97,
358,
326,
467,
95,
2938,
5496,
632,
891,
913,
30,
1021,
913,
358,
714,
18,
632,
723,
913,
30,
511,
... | |
del sys.modules[modname] | del sys.modules['twisted.trial.test.importErrors'] | def testImportError(self): self.failIfImportErrors = False # Add a module that fails to import if modname in sys.modules: # Previous tests might leave this hanging around in Python < 2.4. del sys.modules[modname] self.suite.addModule('twisted.trial.test.importErrors') self.suite.run() | 1ec5dc43cd8c593ffdfe932f45f26fe75f89774e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1ec5dc43cd8c593ffdfe932f45f26fe75f89774e/test_adapters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5010,
668,
12,
2890,
4672,
365,
18,
6870,
2047,
5010,
4229,
273,
1083,
468,
1436,
279,
1605,
716,
6684,
358,
1930,
309,
16037,
316,
2589,
18,
6400,
30,
468,
19369,
7434,
4825,
8851... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5010,
668,
12,
2890,
4672,
365,
18,
6870,
2047,
5010,
4229,
273,
1083,
468,
1436,
279,
1605,
716,
6684,
358,
1930,
309,
16037,
316,
2589,
18,
6400,
30,
468,
19369,
7434,
4825,
8851... |
w_result = self.code.func(%s) | try: w_result = self.code.func(%s) except KeyboardInterrupt: raise OperationError(self.space.w_KeyboardInterrupt, self.space.w_None) except MemoryError: raise OperationError(self.space.w_MemoryError, self.space.w_None) except RuntimeError, e: raise OperationError(self.space.w_RuntimeError, self.space.wrap("internal err... | def run(self): w_result = self.code.func(%s) if w_result is None: w_result = self.space.w_None return w_result | 15b15f83d32f0e2c696388d3f8406e43a7ec6b20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/15b15f83d32f0e2c696388d3f8406e43a7ec6b20/gateway.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
341,
67,
2088,
273,
365,
18,
710,
18,
644,
9275,
87,
13,
1335,
19424,
30,
1002,
4189,
668,
12,
2890,
18,
2981,
18,
91,
67,
17872,
14126,
16,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
341,
67,
2088,
273,
365,
18,
710,
18,
644,
9275,
87,
13,
1335,
19424,
30,
1002,
4189,
668,
12,
2890,
18,
2981,
18,
91,
67,
17872,
14126,
16,
365,
18,
... |
locale.setlocale(locale.LC_ALL, (self.localcontext.get('lang', 'en_US') or 'en_US') + \ '.' + encoding) | if os.name == 'nt': locale.setlocale(locale.LC_ALL, _LOCALE2WIN32.get(lang, lang) + '.' + encoding) else: locale.setlocale(locale.LC_ALL, lang + '.' + encoding) | def formatLang(self, value, digit=2, date=False): lc, encoding = locale.getdefaultlocale() if encoding == 'utf': encoding = 'UTF-8' try: locale.setlocale(locale.LC_ALL, (self.localcontext.get('lang', 'en_US') or 'en_US') + \ '.' + encoding) except Exception: netsvc.Logger().notifyChannel('report', netsvc.LOG_WARNING, '... | f083aa2b463ef466d0cb3a973d7d494a49028978 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/f083aa2b463ef466d0cb3a973d7d494a49028978/report_sxw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
7275,
12,
2890,
16,
460,
16,
8035,
33,
22,
16,
1509,
33,
8381,
4672,
9109,
16,
2688,
273,
2573,
18,
588,
1886,
6339,
1435,
309,
2688,
422,
296,
3158,
4278,
2688,
273,
296,
5159,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
7275,
12,
2890,
16,
460,
16,
8035,
33,
22,
16,
1509,
33,
8381,
4672,
9109,
16,
2688,
273,
2573,
18,
588,
1886,
6339,
1435,
309,
2688,
422,
296,
3158,
4278,
2688,
273,
296,
5159,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.