rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
return | return True | def destroy(self, event, data=None): cancel = self.autosave_image() if cancel == True: return self.stop_now = True self.closing_app = True self.save_settings() return False | d58c579809d9403dea67a165875ccd600372f4f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d58c579809d9403dea67a165875ccd600372f4f3/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
16,
871,
16,
501,
33,
7036,
4672,
3755,
273,
365,
18,
21996,
836,
67,
2730,
1435,
309,
3755,
422,
1053,
30,
327,
1053,
365,
18,
5681,
67,
3338,
273,
1053,
365,
18,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
16,
871,
16,
501,
33,
7036,
4672,
3755,
273,
365,
18,
21996,
836,
67,
2730,
1435,
309,
3755,
422,
1053,
30,
327,
1053,
365,
18,
5681,
67,
3338,
273,
1053,
365,
18,
19... |
quadrant = extractTopLeftQuadrant(parser.pixelExpr) | quadrant = normalizeWeights(extractTopLeftQuadrant(parser.pixelExpr)) | def findRelevantEdges(): for parserClass in (Parser2x, Parser3x, Parser4x): parser = parserClass() quadrant = extractTopLeftQuadrant(parser.pixelExpr) quadrantWidth = (parser.zoom + 1) / 2 assert quadrantWidth ** 2 == len(quadrant[0]) subPixelOutput = [[] for _ in xrange(quadrantWidth * 10)] for subPixel in xrange(quad... | 9d8d24bc0ffcd6d02533b0e4fe6227648409bde9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5450/9d8d24bc0ffcd6d02533b0e4fe6227648409bde9/hq-analyze.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
17018,
7445,
10697,
13332,
364,
2082,
797,
316,
261,
2678,
22,
92,
16,
6783,
23,
92,
16,
6783,
24,
92,
4672,
2082,
273,
2082,
797,
1435,
9474,
6890,
273,
3883,
16595,
12,
8004,
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,
1104,
17018,
7445,
10697,
13332,
364,
2082,
797,
316,
261,
2678,
22,
92,
16,
6783,
23,
92,
16,
6783,
24,
92,
4672,
2082,
273,
2082,
797,
1435,
9474,
6890,
273,
3883,
16595,
12,
8004,
3... |
self.assertEqual(self.execute('QUIT', 0), | self.assertEqual(self.execute('QUIT', 0).rstrip(), | def testQUIT(self): self.assertEqual(self.execute('QUIT', 0), status_messages['GOODBYE']) self.assertEqual(self.execute('QUIT', 1), status_messages['GOODBYE']) | 90d04321f031c84ce099735d79abab9afd55bb34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9635/90d04321f031c84ce099735d79abab9afd55bb34/test_ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3500,
1285,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
8837,
2668,
3500,
1285,
2187,
374,
2934,
86,
6406,
9334,
1267,
67,
6833,
3292,
16387,
1212,
6486,
41,
19486,
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,
1842,
3500,
1285,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
8837,
2668,
3500,
1285,
2187,
374,
2934,
86,
6406,
9334,
1267,
67,
6833,
3292,
16387,
1212,
6486,
41,
19486,
365,
18... |
raise my_error, 'Protocol family not supported' | raise my_error, 'Protocol family %d not supported' % type | def socket(family, type, *which): if family <> AF_INET: raise my_error, 'Protocol family not supported' if type == SOCK_DGRAM: return _udpsocket() elif type == SOCK_STREAM: return _tcpsocket() raise my_error, 'Protocol type not supported' | cd259d0b401f8cdd859bd55167610230d9a44f5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cd259d0b401f8cdd859bd55167610230d9a44f5d/socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2987,
12,
9309,
16,
618,
16,
380,
12784,
4672,
309,
6755,
2813,
10888,
67,
18819,
30,
1002,
3399,
67,
1636,
16,
296,
5752,
6755,
738,
72,
486,
3260,
11,
738,
618,
309,
618,
422,
20834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2987,
12,
9309,
16,
618,
16,
380,
12784,
4672,
309,
6755,
2813,
10888,
67,
18819,
30,
1002,
3399,
67,
1636,
16,
296,
5752,
6755,
738,
72,
486,
3260,
11,
738,
618,
309,
618,
422,
20834,... |
if game.alldone or game.state.galaxy[game.quadrant.x][game.quadrant.y].supernova: | if game.alldone or game.state.galaxy[game.quadrant.i][game.quadrant.j].supernova: | def photon(): "Launch photon torpedo." course = [] game.ididit = False if damaged(DPHOTON): prout(_("Photon tubes damaged.")) scanner.chew() return if game.torps == 0: prout(_("No torpedoes left.")) scanner.chew() return # First, get torpedo count while True: scanner.next() if scanner.token == IHALPHA: huh() return eli... | 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,
24542,
265,
13332,
315,
9569,
24542,
265,
8934,
1845,
83,
1199,
4362,
273,
5378,
7920,
18,
350,
350,
305,
273,
1083,
309,
302,
301,
11349,
12,
8640,
44,
1974,
673,
4672,
450,
322,
24899,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24542,
265,
13332,
315,
9569,
24542,
265,
8934,
1845,
83,
1199,
4362,
273,
5378,
7920,
18,
350,
350,
305,
273,
1083,
309,
302,
301,
11349,
12,
8640,
44,
1974,
673,
4672,
450,
322,
24899,... |
t += " && e.c" | v+=2 | def js_test(self): t = "(((e.k == %s) || (e.m == %s))"%(self.key, self.key) if self.alt: t += " && e.a" if self.ctrl: t += " && e.c" if self.shift: t += " && e.s" t+= ")" return t | 33fe3359559b65e1a1b5f80d29cf224d5b5c62ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/33fe3359559b65e1a1b5f80d29cf224d5b5c62ae/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
67,
3813,
12,
2890,
4672,
268,
273,
7751,
12443,
73,
18,
79,
422,
738,
87,
13,
747,
261,
73,
18,
81,
422,
738,
87,
30743,
17105,
2890,
18,
856,
16,
365,
18,
856,
13,
309,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3828,
67,
3813,
12,
2890,
4672,
268,
273,
7751,
12443,
73,
18,
79,
422,
738,
87,
13,
747,
261,
73,
18,
81,
422,
738,
87,
30743,
17105,
2890,
18,
856,
16,
365,
18,
856,
13,
309,
365... |
logger.Error("Can't find this device-visible name '%s'" % swap_disk) | logging.error("Can't find this device-visible name '%s'", swap_disk) | def RunRenameInstance(instance, old_name, os_disk, swap_disk): """Run the OS rename script for an instance. Args: instance: the instance object old_name: the old name of the instance os_disk: the instance-visible name of the os device swap_disk: the instance-visible name of the swap device """ inst_os = OSFromDisk(in... | 18682bca5711b7b492aeb3cd3a550087f1413e0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/18682bca5711b7b492aeb3cd3a550087f1413e0b/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
16019,
1442,
12,
1336,
16,
1592,
67,
529,
16,
1140,
67,
10863,
16,
7720,
67,
10863,
4672,
3536,
1997,
326,
5932,
6472,
2728,
364,
392,
791,
18,
225,
6634,
30,
791,
30,
326,
791,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
16019,
1442,
12,
1336,
16,
1592,
67,
529,
16,
1140,
67,
10863,
16,
7720,
67,
10863,
4672,
3536,
1997,
326,
5932,
6472,
2728,
364,
392,
791,
18,
225,
6634,
30,
791,
30,
326,
791,
... |
if flagbackup: backup_flags(fglocal, modestr) | def flagdata2(vis = None, flagbackup = None, selectdata = None, spw = None, field = None, antenna = None, uvrange = None, timerange = None, correlation = None, scan = None, feed = None, array = None, manualflag = None, mf_spw = None, mf_field = None, mf_antenna = None, mf_uvrange = None, mf_timerange = None, mf_scan = ... | fc3c0946280ba76baefcfcd0c6a29563cbc6bb53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/fc3c0946280ba76baefcfcd0c6a29563cbc6bb53/task_flagdata2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2982,
892,
22,
12,
3516,
273,
599,
16,
2982,
9572,
273,
599,
16,
2027,
892,
273,
599,
16,
1694,
91,
273,
599,
16,
652,
273,
599,
16,
392,
2253,
6582,
273,
599,
16,
14303,
3676,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2982,
892,
22,
12,
3516,
273,
599,
16,
2982,
9572,
273,
599,
16,
2027,
892,
273,
599,
16,
1694,
91,
273,
599,
16,
652,
273,
599,
16,
392,
2253,
6582,
273,
599,
16,
14303,
3676,
273,
... | |
'traverse=('a','b')) => http://e.com/1/2/a/b | traverse=('a','b')) => http://e.com/1/2/a/b | def route_url(route_name, request, *elements, **kw): """Generates a fully qualified URL for a named :mod:`pyramid` :term:`route configuration`. Use the route's ``name`` as the first positional argument. Use a request object as the second positional argument. Additional positional arguments are appended to the URL as... | 820bd95aa720a5769f3a86a755a0eb22d8725489 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/820bd95aa720a5769f3a86a755a0eb22d8725489/url.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1946,
67,
718,
12,
5547,
67,
529,
16,
590,
16,
380,
6274,
16,
2826,
9987,
4672,
3536,
6653,
279,
7418,
9348,
1976,
364,
279,
4141,
294,
1711,
28288,
2074,
23083,
68,
294,
6408,
28288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1946,
67,
718,
12,
5547,
67,
529,
16,
590,
16,
380,
6274,
16,
2826,
9987,
4672,
3536,
6653,
279,
7418,
9348,
1976,
364,
279,
4141,
294,
1711,
28288,
2074,
23083,
68,
294,
6408,
28288,
... |
""" Function used to get HTML text from every reachable URL """ try: request = urllib2.Request(url) user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7' request.add_header("User-Agent", user_agent) response = urllib2.urlopen(request) text = response.read() response.clo... | """ Function used to get HTML text from every reachable URL """ try: request = urllib2.Request(url) user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7' request.add_header("User-Agent", user_agent) response = urllib2.urlopen(request) text = response.read() response.clo... | def pageText(url): """ Function used to get HTML text from every reachable URL """ # When the page is not a wiki-page (as for untagged generator) you need that function try: request = urllib2.Request(url) user_agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7' request.add_... | 81fef4c88acffaa26df691b3ebff2e48e9a2bdc9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/81fef4c88acffaa26df691b3ebff2e48e9a2bdc9/checkimages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1363,
1528,
12,
718,
4672,
3536,
4284,
1399,
358,
336,
3982,
977,
628,
3614,
19234,
1976,
3536,
468,
5203,
326,
1363,
353,
486,
279,
9050,
17,
2433,
261,
345,
364,
640,
23023,
4456,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1363,
1528,
12,
718,
4672,
3536,
4284,
1399,
358,
336,
3982,
977,
628,
3614,
19234,
1976,
3536,
468,
5203,
326,
1363,
353,
486,
279,
9050,
17,
2433,
261,
345,
364,
640,
23023,
4456,
13,
... |
self.active_str = "inactive" | self.active_str = "inactive(" + str(rv) + ")" | def __init__(self, domain, d, cnum): self.d = d self.cnum = cnum self.ui = d.ui self.name = d.name + "(" + str(cnum) + ")" self.ports = { } self.domain_id = domain.get_id() | 2c9eb58b2276d8fa9f55e366827b9728cf8ccc3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/2c9eb58b2276d8fa9f55e366827b9728cf8ccc3d/_conn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2461,
16,
302,
16,
276,
2107,
4672,
365,
18,
72,
273,
302,
365,
18,
71,
2107,
273,
276,
2107,
365,
18,
4881,
273,
302,
18,
4881,
365,
18,
529,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2461,
16,
302,
16,
276,
2107,
4672,
365,
18,
72,
273,
302,
365,
18,
71,
2107,
273,
276,
2107,
365,
18,
4881,
273,
302,
18,
4881,
365,
18,
529,
273,
3... |
if self.get_integrater_sweep_name(): | if self.get_integrater_sweep_name() and False: | def _mosflm_parallel_integrate(self): '''Perform the integration as before, but this time as a number of parallel Mosflm jobs (hence, in separate directories) and including a step of pre-refinement of the mosaic spread and missets. This will all be kind of explicit and hence probably messy!''' | 5e89e7cbba0c99f7c7e3b34e61d7bf113349ae64 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3290/5e89e7cbba0c99f7c7e3b34e61d7bf113349ae64/Mosflm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26719,
2242,
81,
67,
18054,
67,
14970,
5141,
12,
2890,
4672,
9163,
4990,
326,
12040,
487,
1865,
16,
1496,
333,
813,
487,
279,
1300,
434,
7230,
490,
538,
2242,
81,
6550,
261,
76,
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,
389,
26719,
2242,
81,
67,
18054,
67,
14970,
5141,
12,
2890,
4672,
9163,
4990,
326,
12040,
487,
1865,
16,
1496,
333,
813,
487,
279,
1300,
434,
7230,
490,
538,
2242,
81,
6550,
261,
76,
8... |
use_file = kwargs["use_file"] | make_fixed = kwargs["make_fixed"] | def create_Qvec_vs_E_dgs(som, E_i, conf, **kwargs): """ This function starts with the energy transfer axis from DGS reduction and turns this into a 4D spectra with Qx, Qy, Qz and Et axes. @param som: The input object with initial IGS wavelength axis @type som: C{SOM.SOM} @param E_i: The initial energy for the given d... | 4f6f991d4e0737a54f256be9990afb7edc3c631f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/763/4f6f991d4e0737a54f256be9990afb7edc3c631f/hlr_create_Qvec_vs_E_dgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
53,
8799,
67,
6904,
67,
41,
67,
72,
564,
12,
87,
362,
16,
512,
67,
77,
16,
2195,
16,
2826,
4333,
4672,
3536,
1220,
445,
2542,
598,
326,
12929,
7412,
2654,
628,
463,
16113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
53,
8799,
67,
6904,
67,
41,
67,
72,
564,
12,
87,
362,
16,
512,
67,
77,
16,
2195,
16,
2826,
4333,
4672,
3536,
1220,
445,
2542,
598,
326,
12929,
7412,
2654,
628,
463,
16113,
... |
try: print "%s(%d): %s" % (bname, lineno, context[lineindex],), except IndexError: pass | if context is not None: try: print "%s(%d): %s" % (bname, lineno, context[lineindex],), except IndexError: pass else: print "%s(???): ???" % bname | def localtrace_trace(self, frame, why, arg): if why == 'line': # XXX shouldn't do the count increment when arg is exception? But be careful to return self.localtrace when arg is exception! ? --Zooko 2001-10-14 # record the file name and line number of every trace # XXX I wish inspect offered me an optimized `getfilen... | ccc00e1965dca9a316526c530a63c552b35a2864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ccc00e1965dca9a316526c530a63c552b35a2864/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
5129,
67,
5129,
12,
2890,
16,
2623,
16,
11598,
16,
1501,
4672,
309,
11598,
422,
296,
1369,
4278,
468,
11329,
12044,
1404,
741,
326,
1056,
5504,
1347,
1501,
353,
1520,
35,
225,
1248... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5129,
67,
5129,
12,
2890,
16,
2623,
16,
11598,
16,
1501,
4672,
309,
11598,
422,
296,
1369,
4278,
468,
11329,
12044,
1404,
741,
326,
1056,
5504,
1347,
1501,
353,
1520,
35,
225,
1248... |
date = value self.SetVisibleDateAndNotify(date, False) | self.SetVisibleDateAndNotify(value, False) | def OnClick(self, event): (region, value) = self.HitTest(event.GetPosition()) | 6a76d2ed4b2f496d2c521b05ffea8dfc3c148248 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6a76d2ed4b2f496d2c521b05ffea8dfc3c148248/minical.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
6563,
12,
2890,
16,
871,
4672,
261,
6858,
16,
460,
13,
273,
365,
18,
13616,
4709,
12,
2575,
18,
967,
2555,
10756,
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,
2755,
6563,
12,
2890,
16,
871,
4672,
261,
6858,
16,
460,
13,
273,
365,
18,
13616,
4709,
12,
2575,
18,
967,
2555,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
""" If there is a half bond, change it to full bond. Otherwise, create a new full bond. <which_in>: the atom which exists before. """ foundHalfBond = False if bonds.has_key(key): values = bonds[key] for ii in range(len(values)): if type(values[ii]) == type((1,1)) and values[ii][0] == value: values[ii] = value foundHa... | """ If there is a half bond, change it to full bond. Otherwise, create a new full bond. <which_in>: the atom which exists before. """ foundHalfBond = False if bonds.has_key(key): values = bonds[key] for ii in range(len(values)): if type(values[ii]) == type((1, 1)) and values[ii][0] == value: values[ii] = value foundHa... | def _changeHf2FullBond(self, bonds, key, value, which_in): # TODO: fix indent levels. """ If there is a half bond, change it to full bond. Otherwise, create a new full bond. <which_in>: the atom which exists before. """ foundHalfBond = False if bonds.has_key(key): values = bonds[key] for ii in range(len(values)): if t... | be7153ce421a674e97de640e3063c3bb1bccf4a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/be7153ce421a674e97de640e3063c3bb1bccf4a9/shape.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3427,
44,
74,
22,
5080,
9807,
12,
2890,
16,
15692,
16,
498,
16,
460,
16,
1492,
67,
267,
4672,
468,
2660,
30,
2917,
3504,
7575,
18,
3536,
971,
1915,
353,
279,
8816,
8427,
16,
254... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3427,
44,
74,
22,
5080,
9807,
12,
2890,
16,
15692,
16,
498,
16,
460,
16,
1492,
67,
267,
4672,
468,
2660,
30,
2917,
3504,
7575,
18,
3536,
971,
1915,
353,
279,
8816,
8427,
16,
254... |
del self.editor | def updateNameFromTransport(self): if self.transport: self.filename = self.transport.getURI() | def destroy(self): | e211e0e3a9754bf1a25efe30b88e63fb5604bb3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e211e0e3a9754bf1a25efe30b88e63fb5604bb3f/EditorModels.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
expected_path, params['destination_path'])) | expected_path, params['destination_path'])) | def test(self): """Process self.configfile.""" os.chdir(DocutilsTestSupport.testroot) # Keyword parameters for publish_file: namespace = {} # Initialize 'settings_overrides' for test settings scripts, # and disable configuration files: namespace['settings_overrides'] = {'_disable_config': 1} # Read the variables set in... | 5690ba80aba07ac143dda20b2648e944ffb97805 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5620/5690ba80aba07ac143dda20b2648e944ffb97805/test_functional.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
2890,
4672,
3536,
2227,
365,
18,
1425,
768,
12123,
1140,
18,
343,
1214,
12,
1759,
5471,
4709,
6289,
18,
3813,
3085,
13,
468,
18317,
1472,
364,
3808,
67,
768,
30,
1981,
273,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
2890,
4672,
3536,
2227,
365,
18,
1425,
768,
12123,
1140,
18,
343,
1214,
12,
1759,
5471,
4709,
6289,
18,
3813,
3085,
13,
468,
18317,
1472,
364,
3808,
67,
768,
30,
1981,
273,
2... |
c.Run() | def call_hooks_runner(self, node_list, hpath, phase, env): """Call the hooks runner. | ecfe94918845683627f97b646872fde40247176b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/ecfe94918845683627f97b646872fde40247176b/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
10468,
67,
18156,
12,
2890,
16,
756,
67,
1098,
16,
366,
803,
16,
6855,
16,
1550,
4672,
3536,
1477,
326,
9153,
8419,
18,
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,
745,
67,
10468,
67,
18156,
12,
2890,
16,
756,
67,
1098,
16,
366,
803,
16,
6855,
16,
1550,
4672,
3536,
1477,
326,
9153,
8419,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
if self.debug >= 2: print >>sys.stderr, " + Running action [%s]" % action.func_name | self.debug(2, " + Running action [%s]" % action.func_name) | def run_condition(self, cond, *args, **kargs): newstate = cond(self,*args, **kargs) if newstate is not None: if self.debug >= 2: print >>sys.stderr, "%s [%s] taken to state [%s]" % (cond.atmt_type, cond.atmt_condname, newstate) for action in self.actions[cond.atmt_condname]: if self.debug >= 2: print >>sys.stderr, " ... | e317d2d22c1e4dfdb0e7e1931d53d122598d79fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7311/e317d2d22c1e4dfdb0e7e1931d53d122598d79fb/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
4175,
12,
2890,
16,
6941,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
394,
2019,
273,
6941,
12,
2890,
16,
14,
1968,
16,
2826,
79,
1968,
13,
309,
394,
2019,
353,
486,
599,
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,
1086,
67,
4175,
12,
2890,
16,
6941,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
394,
2019,
273,
6941,
12,
2890,
16,
14,
1968,
16,
2826,
79,
1968,
13,
309,
394,
2019,
353,
486,
599,
30,
... |
['d'] | 'd' >>> nth('abcde', 9) is None True | >>> def unique_justseen(iterable, key=None): | f4656b57a3007dc4e59e235b23f4cf74a178b794 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/f4656b57a3007dc4e59e235b23f4cf74a178b794/test_itertools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
3089,
67,
3732,
15156,
12,
15364,
16,
498,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
3089,
67,
3732,
15156,
12,
15364,
16,
498,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if mod == -1 and len(self.line) == 0: self.close() pos = self.pos + mod chars = uchars(self.line) self.line = ''.join(chars[0:pos] + chars[pos+1:]) self.move(right=mod) | if mod == -1 and self.pos == 0: if not self.line: self.close() return uc = uchars(self.line) upos = len(uchars(self.line[:self.pos])) + mod left_part = ''.join(uc[:upos]) self.pos = len(left_part) self.line = left_part + ''.join(uc[upos+1:]) | def delete(self, mod): self.tab_deque = None if mod == -1 and len(self.line) == 0: self.close() pos = self.pos + mod | 3ac9d6c841c47cebaab028557a217911d6cecd0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/3ac9d6c841c47cebaab028557a217911d6cecd0e/console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
681,
4672,
365,
18,
7032,
67,
323,
1857,
273,
599,
309,
681,
422,
300,
21,
471,
562,
12,
2890,
18,
1369,
13,
422,
374,
30,
365,
18,
4412,
1435,
949,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
681,
4672,
365,
18,
7032,
67,
323,
1857,
273,
599,
309,
681,
422,
300,
21,
471,
562,
12,
2890,
18,
1369,
13,
422,
374,
30,
365,
18,
4412,
1435,
949,
273,
365,
1... |
TIME_ZONE = 'America/Chicago' | if 'TZ' not in os.environ: TIME_ZONE = 'Etc/GMT%+d' % (time.altzone / 3600) else: TIME_ZONE = os.environ['TZ'] | def get_project_root(): project_root_paths = [ ".", "..", "/opt/linuxfoundation" ] for path in project_root_paths: if os.path.exists(os.path.join(path, "bin/readelf.py")): return path # Shouldn't get here unless we can't find the path. raise RuntimeError, "could not find the project path" | 1825ffd7b380ba9f949d9d09be5daf7ab6cd21cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4228/1825ffd7b380ba9f949d9d09be5daf7ab6cd21cd/settings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4406,
67,
3085,
13332,
1984,
67,
3085,
67,
4481,
273,
306,
4585,
16,
315,
838,
3113,
2206,
3838,
19,
20132,
30493,
6,
308,
364,
589,
316,
1984,
67,
3085,
67,
4481,
30,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4406,
67,
3085,
13332,
1984,
67,
3085,
67,
4481,
273,
306,
4585,
16,
315,
838,
3113,
2206,
3838,
19,
20132,
30493,
6,
308,
364,
589,
316,
1984,
67,
3085,
67,
4481,
30,
309,
... |
headers = {'ETag':self.md5} | headers = {'Content-MD5':self.base64md5} | def send_file(self, fp): http_conn = self.bucket.connection.connection headers = {'ETag':self.md5} if self.content_type: headers['Content-Type'] = self.content_type headers['Content-Length'] = self.size final_headers = boto.connection.merge_meta(headers, {}); path = '/%s/%s' % (self.bucket.name, urllib.quote_plus(self.... | 29ab651891c9f8fdde31ccacbfd835fcdd45c775 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1098/29ab651891c9f8fdde31ccacbfd835fcdd45c775/key.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
768,
12,
2890,
16,
4253,
4672,
1062,
67,
4646,
273,
365,
18,
7242,
18,
4071,
18,
4071,
1607,
273,
13666,
1350,
17,
6188,
25,
4278,
2890,
18,
1969,
1105,
1264,
25,
97,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
768,
12,
2890,
16,
4253,
4672,
1062,
67,
4646,
273,
365,
18,
7242,
18,
4071,
18,
4071,
1607,
273,
13666,
1350,
17,
6188,
25,
4278,
2890,
18,
1969,
1105,
1264,
25,
97,
309,
... |
arcoefs = params[k:k+p] macoefs = params[k+p:] | newparams = start_params.copy() arcoefs = newparams[k:k+p] macoefs = newparams[k+p:] | def _invtransparams(self, params): """ Inverse of the Jones reparameterization """ p,q,k = self.p, self.q, self.k arcoefs = params[k:k+p] macoefs = params[k+p:] # AR coeffs if p != 0: tmp = arcoefs.copy() newparams = arcoefs.copy() for j in range(p-1,0,-1): a = newparams[j] for k in range(j): tmp[k] = (newparams[k] + a... | 1605048ab16600ba699073d25d3520de0f02e555 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/1605048ab16600ba699073d25d3520de0f02e555/kalmanf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5768,
2338,
2010,
12,
2890,
16,
859,
4672,
3536,
657,
2476,
434,
326,
804,
5322,
283,
6775,
1588,
3536,
293,
16,
85,
16,
79,
273,
365,
18,
84,
16,
365,
18,
85,
16,
365,
18,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5768,
2338,
2010,
12,
2890,
16,
859,
4672,
3536,
657,
2476,
434,
326,
804,
5322,
283,
6775,
1588,
3536,
293,
16,
85,
16,
79,
273,
365,
18,
84,
16,
365,
18,
85,
16,
365,
18,
79... |
<<<<<<< .mine | def outer(a, b): "maskedarray version of the numpy function." fa = filled(a, 0).ravel() fb = filled(b, 0).ravel() d = np.outer(fa, fb) ma = getmask(a) mb = getmask(b) if ma is nomask and mb is nomask: return masked_array(d) ma = getmaskarray(a) mb = getmaskarray(b) m = make_mask(1-np.outer(1-ma, 1-mb), copy=0) return m... | edc1465f70cf97c06c374b77747d8485fbc8ca24 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/edc1465f70cf97c06c374b77747d8485fbc8ca24/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6390,
12,
69,
16,
324,
4672,
315,
23455,
1126,
1177,
434,
326,
3972,
445,
1199,
11087,
273,
6300,
12,
69,
16,
374,
2934,
354,
941,
1435,
12754,
273,
6300,
12,
70,
16,
374,
2934,
354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6390,
12,
69,
16,
324,
4672,
315,
23455,
1126,
1177,
434,
326,
3972,
445,
1199,
11087,
273,
6300,
12,
69,
16,
374,
2934,
354,
941,
1435,
12754,
273,
6300,
12,
70,
16,
374,
2934,
354,
... | |
if 0: tempnode = NodePath(PandaNode("temp node")) tempnode.setAttrib(LightRampAttrib.makeSingleThreshold(0.5, 0.4)) tempnode.setShaderAuto() base.cam.node().setInitialState(tempnode.getState()) self.filters = CommonFilters(base.win, base.cam) self.separation = 0.5 filterok = self.filters.setCartoonInk(separation=self.... | def show(self): if 0: tempnode = NodePath(PandaNode("temp node")) tempnode.setAttrib(LightRampAttrib.makeSingleThreshold(0.5, 0.4)) tempnode.setShaderAuto() base.cam.node().setInitialState(tempnode.getState()) self.filters = CommonFilters(base.win, base.cam) self.separation = 0.5 # Pixels filterok = self.filters.setCa... | 0148cb9d545388dfde9673a0adca0dbe2c9a532c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7999/0148cb9d545388dfde9673a0adca0dbe2c9a532c/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
309,
374,
30,
1906,
2159,
273,
2029,
743,
12,
52,
464,
69,
907,
2932,
5814,
756,
6,
3719,
1906,
2159,
18,
542,
12399,
12,
12128,
54,
931,
12399,
18,
6540,
5281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
309,
374,
30,
1906,
2159,
273,
2029,
743,
12,
52,
464,
69,
907,
2932,
5814,
756,
6,
3719,
1906,
2159,
18,
542,
12399,
12,
12128,
54,
931,
12399,
18,
6540,
5281,
... | |
return self.fs.build_dir_target_climb(self.dir, [self.name]) | return self.fs.build_dir_target_climb(self, self.dir, [self.name]) | def alter_targets(self): """Return any corresponding targets in a build directory. """ if self.is_derived(): return [], None return self.fs.build_dir_target_climb(self.dir, [self.name]) | 0fb2725cb416499104457b42c93917efe477f6a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7126/0fb2725cb416499104457b42c93917efe477f6a6/FS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10182,
67,
11358,
12,
2890,
4672,
3536,
990,
1281,
4656,
5774,
316,
279,
1361,
1867,
18,
3536,
309,
365,
18,
291,
67,
765,
2950,
13332,
327,
5378,
16,
599,
327,
365,
18,
2556,
18,
3510... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10182,
67,
11358,
12,
2890,
4672,
3536,
990,
1281,
4656,
5774,
316,
279,
1361,
1867,
18,
3536,
309,
365,
18,
291,
67,
765,
2950,
13332,
327,
5378,
16,
599,
327,
365,
18,
2556,
18,
3510... |
d_search = rec.get("search",'') | d_search = rec.get("search",'').encode('utf-8') | def _tag_delete(self, cr, rec, data_node=None): d_model = rec.get("model",'') d_search = rec.get("search",'') d_id = rec.get("id",'') ids = [] if d_search: ids = self.pool.get(d_model).search(cr, self.uid, unsafe_eval(d_search)) if d_id: try: ids.append(self.id_get(cr, d_model, d_id)) except: # d_id cannot be found. do... | 1dde0f53daa37992cefe2ea79d4fd07111e0d96e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1dde0f53daa37992cefe2ea79d4fd07111e0d96e/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
3733,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
302,
67,
2284,
273,
1950,
18,
588,
2932,
2284,
3113,
11,
6134,
302,
67,
3072,
273,
1950,
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,
389,
2692,
67,
3733,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
302,
67,
2284,
273,
1950,
18,
588,
2932,
2284,
3113,
11,
6134,
302,
67,
3072,
273,
1950,
18,
588... |
self.panel4 = wxPanel(id=wxID_STCSTYLEEDITDLGPANEL4, name='panel4', parent=self, pos=wxPoint(330, 56), size=wxSize(114, 104), style=wxTAB_TRAVERSAL) | self.panel4 = wx.Panel(id=wxID_STCSTYLEEDITDLGPANEL4, name='panel4', parent=self, pos=wx.Point(364, 56), size=wx.Size(114, 120), style=wx.TAB_TRAVERSAL) | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... |
def _get__JABRelations(self): | def _getJABRelationFirstTarget(self, key): | def _get__JABRelations(self): rs = self.jabContext.getAccessibleRelationSet() return rs.relations[:rs.relationCount] | 54708189be66ab71d02edb73600305e6da0cddb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/54708189be66ab71d02edb73600305e6da0cddb1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
46,
2090,
3963,
3759,
2326,
12,
2890,
16,
498,
4672,
3597,
273,
365,
18,
78,
378,
1042,
18,
588,
10451,
3963,
694,
1435,
327,
3597,
18,
15018,
10531,
5453,
18,
5488,
1380,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
46,
2090,
3963,
3759,
2326,
12,
2890,
16,
498,
4672,
3597,
273,
365,
18,
78,
378,
1042,
18,
588,
10451,
3963,
694,
1435,
327,
3597,
18,
15018,
10531,
5453,
18,
5488,
1380,
65... |
-x^6 - (x^8/2) | -x^6 - x^8/2 | def taylor(self, v, a, n): """ Expands self in a truncated Taylor or Laurent series in the variable v around the point a, containing terms through $(x - a)^n$. | 0f3b3d44db8e1b86009e89bdac564fa5d50b9989 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0f3b3d44db8e1b86009e89bdac564fa5d50b9989/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
528,
80,
280,
12,
2890,
16,
331,
16,
279,
16,
290,
4672,
3536,
7784,
5708,
365,
316,
279,
15282,
399,
528,
80,
280,
578,
511,
8377,
547,
4166,
316,
326,
2190,
331,
6740,
326,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
528,
80,
280,
12,
2890,
16,
331,
16,
279,
16,
290,
4672,
3536,
7784,
5708,
365,
316,
279,
15282,
399,
528,
80,
280,
578,
511,
8377,
547,
4166,
316,
326,
2190,
331,
6740,
326,
16... |
CopyAllFiles("built/bin/", STDTHIRDPARTY + pkg.lower() + "/bin/") | CopyAllFiles(PREFIX+"/bin/", STDTHIRDPARTY + pkg.lower() + "/bin/") | if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n" | 4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
options, args = parser.parse_args() if options.doctest: import doctest return doctest.testmod() | options, args = parser.parse_args(arglist) | def _main(): """ Parse command line options and run checks on Python source. """ global options usage = "%prog [options] input ..." parser = OptionParser(usage) parser.add_option('-v', '--verbose', default=0, action='count', help="print status messages, or debug with -vv") parser.add_option('-q', '--quiet', default=0, ... | b69e50e89584add8ba3cde2f8eea42330b1cdbc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3111/b69e50e89584add8ba3cde2f8eea42330b1cdbc3/pep8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5254,
13332,
3536,
2884,
1296,
980,
702,
471,
1086,
4271,
603,
6600,
1084,
18,
3536,
2552,
702,
4084,
273,
2213,
14654,
306,
2116,
65,
810,
18483,
2082,
273,
18862,
12,
9167,
13,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5254,
13332,
3536,
2884,
1296,
980,
702,
471,
1086,
4271,
603,
6600,
1084,
18,
3536,
2552,
702,
4084,
273,
2213,
14654,
306,
2116,
65,
810,
18483,
2082,
273,
18862,
12,
9167,
13,
20... |
sage: b.flow(('00',1),('00',2)) | sage: b.flow(('00',1),('00',2)) | def flow(self, x, y, value_only=True, integer=False, use_edge_labels=True, vertex_bound=False, solver=None, verbose=0): r""" Returns a maximum flow in the graph from ``x`` to ``y`` represented by an optimal valuation of the edges. For more information, see the `Wikipedia article on maximum flow <http://en.wikipedia.org... | 1b1e9fa38a9074f82933aa4bcd32aa9ddb2cd120 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1b1e9fa38a9074f82933aa4bcd32aa9ddb2cd120/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4693,
12,
2890,
16,
619,
16,
677,
16,
460,
67,
3700,
33,
5510,
16,
3571,
33,
8381,
16,
999,
67,
7126,
67,
5336,
33,
5510,
16,
5253,
67,
3653,
33,
8381,
16,
12776,
33,
7036,
16,
398... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4693,
12,
2890,
16,
619,
16,
677,
16,
460,
67,
3700,
33,
5510,
16,
3571,
33,
8381,
16,
999,
67,
7126,
67,
5336,
33,
5510,
16,
5253,
67,
3653,
33,
8381,
16,
12776,
33,
7036,
16,
398... |
def _CollectFvMapBuffer (self, MapBuffer, Wa): | def _CollectFvMapBuffer (self, MapBuffer, Wa, ModuleList): | def _CollectFvMapBuffer (self, MapBuffer, Wa): if self.Fdf != '': # First get the XIP base address for FV map file. for FvName in Wa.FdfProfile.FvDict.keys(): FvMapBuffer = os.path.join(Wa.FvDir, FvName + '.Fv.map') if not os.path.exists(FvMapBuffer): continue FvMap = open (FvMapBuffer, 'r') #skip FV size information F... | 9ff69f35c75043c955fc92ca465db39f6bf1ead5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/9ff69f35c75043c955fc92ca465db39f6bf1ead5/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10808,
42,
90,
863,
1892,
261,
2890,
16,
1635,
1892,
16,
678,
69,
16,
5924,
682,
4672,
309,
365,
18,
42,
2180,
480,
875,
30,
468,
5783,
336,
326,
1139,
2579,
1026,
1758,
364,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10808,
42,
90,
863,
1892,
261,
2890,
16,
1635,
1892,
16,
678,
69,
16,
5924,
682,
4672,
309,
365,
18,
42,
2180,
480,
875,
30,
468,
5783,
336,
326,
1139,
2579,
1026,
1758,
364,
47... |
options.rpmmacros.append("_with_%s 0" % option) | options.rpmmacros.append("_without_%s 1" % option) | def set_config_opts_per_cmdline(config_opts, options, args): "takes processed cmdline args and sets config options." # do some other options and stuff if options.arch: config_opts['target_arch'] = options.arch if not options.clean: config_opts['clean'] = options.clean for option in options.rpmwith: options.rpmmacros.a... | c0a22a6db5a1adc491acbafdb95ff6b436c58991 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/c0a22a6db5a1adc491acbafdb95ff6b436c58991/mock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1425,
67,
4952,
67,
457,
67,
4172,
1369,
12,
1425,
67,
4952,
16,
702,
16,
833,
4672,
315,
88,
3223,
5204,
22877,
833,
471,
1678,
642,
702,
1199,
468,
741,
2690,
1308,
702,
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,
444,
67,
1425,
67,
4952,
67,
457,
67,
4172,
1369,
12,
1425,
67,
4952,
16,
702,
16,
833,
4672,
315,
88,
3223,
5204,
22877,
833,
471,
1678,
642,
702,
1199,
468,
741,
2690,
1308,
702,
4... |
return Node(from_object=n, do_not_copy=1) | if n is None: return None; else: return Node(from_object=n, do_not_copy=1) | def get_binding_value_by_name(self, name): """Get the value of a variable binding by variable name""" if not self.is_bindings(): raise RedlandError("Query result is not in variable bindings format") n=Redland.librdf_query_results_get_binding_value_by_name(self._results, name) return Node(from_object=n, do_not_copy=1) | df097e214e4c2474e61f136d2dfd373932210a98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/df097e214e4c2474e61f136d2dfd373932210a98/RDF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7374,
67,
1132,
67,
1637,
67,
529,
12,
2890,
16,
508,
4672,
3536,
967,
326,
460,
434,
279,
2190,
5085,
635,
2190,
508,
8395,
309,
486,
365,
18,
291,
67,
15863,
13332,
1002,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7374,
67,
1132,
67,
1637,
67,
529,
12,
2890,
16,
508,
4672,
3536,
967,
326,
460,
434,
279,
2190,
5085,
635,
2190,
508,
8395,
309,
486,
365,
18,
291,
67,
15863,
13332,
1002,
... |
self.assert_(proxy.readline(-10) == 'ed' + os.linesep) | self.assertEqual(proxy.readline(-10), 'ed' + os.linesep) | def _test_readline(self, proxy): # Read by line proxy.seek(0) self.assert_(proxy.readline() == 'foo' + os.linesep) self.assert_(proxy.readline() == 'bar' + os.linesep) self.assert_(proxy.readline() == 'fred' + os.linesep) self.assertEqual(proxy.readline(), 'bob') proxy.seek(2) self.assert_(proxy.readline() == 'o' + os.... | 7731c36bc6f787ca91b8429603fe004822f1f2d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/7731c36bc6f787ca91b8429603fe004822f1f2d8/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
896,
1369,
12,
2890,
16,
2889,
4672,
468,
2720,
635,
980,
2889,
18,
16508,
12,
20,
13,
365,
18,
11231,
67,
12,
5656,
18,
896,
1369,
1435,
422,
296,
11351,
11,
397,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
896,
1369,
12,
2890,
16,
2889,
4672,
468,
2720,
635,
980,
2889,
18,
16508,
12,
20,
13,
365,
18,
11231,
67,
12,
5656,
18,
896,
1369,
1435,
422,
296,
11351,
11,
397,
114... |
sys.stderr.write(level + ": " + log | "\n") | sys.stderr.write(level + ": " + log + "\n") | def log(self, level, log): sys.stderr.write(level + ": " + log | "\n") | 5c410e59b5c32d3361d2dc12ddcef99ae76d3d7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/5c410e59b5c32d3361d2dc12ddcef99ae76d3d7e/openipmigui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
16,
1801,
16,
613,
4672,
2589,
18,
11241,
18,
2626,
12,
2815,
397,
6398,
315,
397,
613,
571,
1548,
82,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2890,
16,
1801,
16,
613,
4672,
2589,
18,
11241,
18,
2626,
12,
2815,
397,
6398,
315,
397,
613,
571,
1548,
82,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.classdef = '\n\n%sclass %s:' % (ID1, tp.getName()) self.initdef = '\n%s self.initdef += '\n%s self.initdef += '\n%spass\n' % ID2 | self.classdef.set('\n\n%sclass %s:' % (ID1, tp.getName())) self.classvar.set('\n%s self.classvar.write('\n%s self.classvar.write('\n%spass\n' % ID2) | def _fromAttribute(self, tp): | e2d87b566667969a1290b56d51a1ba4563446870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/e2d87b566667969a1290b56d51a1ba4563446870/wsdl2python.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2080,
1499,
12,
2890,
16,
8071,
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,
1652,
389,
2080,
1499,
12,
2890,
16,
8071,
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... |
y, m, d = int(value[:4]), int(value[4:6]), int(value[6:8]) value = datetime.date(y, m, d) | value = value.strip() if len(value) == int(size): y, m, d = int(value[:4]), int(value[4:6]), int(value[6:8]) value = datetime.date(y, m, d) | def dbfreader(f): """ Returns an iterator over records in a Xbase DBF file. The first row returned contains the field names. The second row contains field specs: (type, size, decimal places). Subsequent rows contain the data records. If a record is marked as deleted, it is skipped. File should be opened for binary re... | 234d4e0e3402a2c9cc227ee1386eed6f350877e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1821/234d4e0e3402a2c9cc227ee1386eed6f350877e0/dbfUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
74,
10530,
12,
74,
4672,
3536,
2860,
392,
2775,
1879,
3853,
316,
279,
24108,
2383,
42,
585,
18,
225,
1021,
1122,
1027,
2106,
1914,
326,
652,
1257,
18,
1021,
2205,
1027,
1914,
652,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
74,
10530,
12,
74,
4672,
3536,
2860,
392,
2775,
1879,
3853,
316,
279,
24108,
2383,
42,
585,
18,
225,
1021,
1122,
1027,
2106,
1914,
326,
652,
1257,
18,
1021,
2205,
1027,
1914,
652,
... |
return type(a) is numpy.ndarray and type(b) is numpy.ndarray \ and (a.shape == b.shape) and numpy.allclose(a, b) | if type(a) is numpy.ndarray and type(b) is numpy.ndarray: if a.shape != b.shape: return False if a.shape == (): ones = numpy.ones(2) return numpy.allclose(ones * a, ones*b) else: return numpy.allclose(a,b) return False | def values_eq_approx(self, a, b): return type(a) is numpy.ndarray and type(b) is numpy.ndarray \ and (a.shape == b.shape) and numpy.allclose(a, b) | 0592a02e5b70fffe878322cf50d19b161ec13c5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/0592a02e5b70fffe878322cf50d19b161ec13c5c/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
924,
67,
11253,
67,
26742,
12,
2890,
16,
279,
16,
324,
4672,
327,
618,
12,
69,
13,
353,
3972,
18,
25681,
471,
618,
12,
70,
13,
353,
3972,
18,
25681,
521,
471,
261,
69,
18,
4867,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
924,
67,
11253,
67,
26742,
12,
2890,
16,
279,
16,
324,
4672,
327,
618,
12,
69,
13,
353,
3972,
18,
25681,
471,
618,
12,
70,
13,
353,
3972,
18,
25681,
521,
471,
261,
69,
18,
4867,
42... |
width_units = models.CharField(_("Width units"), max_length=3, choices=dimension_units(), null=True, blank=True, validator_list=[width_validator]) | width_units = models.CharField(_("Width units"), max_length=3, choices=dimension_units, null=True, blank=True, default=default_dimension_unit, validator_list=[width_validator]) | def active(self): return self.filter(active=True) | f11002c782ba8f417d2af8a4d0b18a7becbcb0e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13656/f11002c782ba8f417d2af8a4d0b18a7becbcb0e0/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2695,
12,
2890,
4672,
327,
365,
18,
2188,
12,
3535,
33,
5510,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2695,
12,
2890,
4672,
327,
365,
18,
2188,
12,
3535,
33,
5510,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
play=False, stop=True, loop=False, quality=('high', 'low', 'medium'), op=True, repeat=False, autostart=False, align=('middle', 'top', 'bottom'), hidden=False, | play=False, stop=True, loop=False, quality=(u'high', u'low', u'medium'), op=True, repeat=False, autostart=False, align=(u'middle', u'top', u'bottom'), hidden=False, | def macro_EmbedObject(macro, target=None, pagename=None, width=wikiutil.UnitArgument('0px', float, ['px', 'em', 'mm', '%%']), height=wikiutil.UnitArgument('0px', float, ['px', 'em', 'mm', '%%']), alt=u'', play=False, stop=True, loop=False, quality=('high', 'low', 'medium'), op=True, repeat=False, autostart=False, align... | 462f4c9b254353893006424eb4004cb9cf09c37b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/462f4c9b254353893006424eb4004cb9cf09c37b/EmbedObject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
67,
9538,
921,
12,
26448,
16,
1018,
33,
7036,
16,
4262,
1069,
33,
7036,
16,
1835,
33,
13044,
1367,
18,
2802,
1379,
2668,
20,
4430,
2187,
1431,
16,
10228,
4430,
2187,
296,
351,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
67,
9538,
921,
12,
26448,
16,
1018,
33,
7036,
16,
4262,
1069,
33,
7036,
16,
1835,
33,
13044,
1367,
18,
2802,
1379,
2668,
20,
4430,
2187,
1431,
16,
10228,
4430,
2187,
296,
351,
2... |
def __init__(self, pValue, pType, pMethod, widget_type, parent=None): """ QParameterQuery(pValue: str, pType: str, parent: QWidget, pMethod: int) -> QParameterQuery | def __init__(self, param, parent=None): """ QParameterQuery(param: ModuleParam) -> QParameterQuery | def __init__(self, pValue, pType, pMethod, widget_type, parent=None): """ QParameterQuery(pValue: str, pType: str, parent: QWidget, pMethod: int) -> QParameterQuery Construct the widget layout """ QtGui.QWidget.__init__(self, parent) self.value = pValue self.type = pType layout = QtGui.QHBoxLayout() layout.setSpacing... | badb3e82d63bc53883daa3ae8605b5a599c3639c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/badb3e82d63bc53883daa3ae8605b5a599c3639c/query_tab.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
579,
16,
982,
33,
7036,
4672,
3536,
2238,
1662,
1138,
12,
891,
30,
5924,
786,
13,
317,
2238,
1662,
1138,
14291,
326,
3604,
3511,
225,
3536,
23425,
18,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
579,
16,
982,
33,
7036,
4672,
3536,
2238,
1662,
1138,
12,
891,
30,
5924,
786,
13,
317,
2238,
1662,
1138,
14291,
326,
3604,
3511,
225,
3536,
23425,
18,
53... |
except (KeyboardInterrupt, SystemExit): | except sysex: | def _executetask(self, item): """ execute channel/source items. """ channel, (source, outid, errid) = item try: loc = { 'channel' : channel, '__name__': '__channelexec__'} #open("task.py", 'w').write(source) self._trace("execution starts:", repr(source)[:50]) close = self._local_redirect_thread_output(outid, errid) try... | a5bfb8e501203c8e51497d9683602631bf98cb56 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7009/a5bfb8e501203c8e51497d9683602631bf98cb56/gateway_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4177,
322,
278,
835,
12,
2890,
16,
761,
4672,
3536,
1836,
1904,
19,
3168,
1516,
18,
3536,
1904,
16,
261,
3168,
16,
596,
350,
16,
393,
350,
13,
273,
761,
775,
30,
1515,
273,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4177,
322,
278,
835,
12,
2890,
16,
761,
4672,
3536,
1836,
1904,
19,
3168,
1516,
18,
3536,
1904,
16,
261,
3168,
16,
596,
350,
16,
393,
350,
13,
273,
761,
775,
30,
1515,
273,
288,... |
def testSSLconnect(self): | def test_connect(self): | def testSSLconnect(self): if not test_support.is_resource_enabled('network'): return s = ssl.wrap_socket(socket.socket(socket.AF_INET), cert_reqs=ssl.CERT_NONE) s.connect(("svn.python.org", 443)) c = s.getpeercert() if c: self.fail("Peer cert %s shouldn't be here!") s.close() | 3945c867d60b1d53299799dd09b6753dcd0a9546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/3945c867d60b1d53299799dd09b6753dcd0a9546/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3612,
12,
2890,
4672,
309,
486,
1842,
67,
13261,
18,
291,
67,
3146,
67,
5745,
2668,
5185,
11,
4672,
327,
272,
273,
5832,
18,
4113,
67,
7814,
12,
7814,
18,
7814,
12,
7814,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3612,
12,
2890,
4672,
309,
486,
1842,
67,
13261,
18,
291,
67,
3146,
67,
5745,
2668,
5185,
11,
4672,
327,
272,
273,
5832,
18,
4113,
67,
7814,
12,
7814,
18,
7814,
12,
7814,
1... |
for fd in range(0, maxfd): try: os.close(fd) except OSError: pass | def quit_sage(verbose=True): """ If you use SAGE in library mode, you should call this function when your application quits. It makes sure any child processes are also killed, etc. """ if verbose: t1 = cputime(_cpu_time_) t1m = int(t1/60); t1s=t1-t1m*60 t2 = walltime(_wall_time_) t2m = int(t2/60); t2s=t2-t2m*60 print ... | 850ed059b068072a18c7492a9293c940b95bde7c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/850ed059b068072a18c7492a9293c940b95bde7c/all.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9706,
67,
87,
410,
12,
11369,
33,
5510,
4672,
3536,
971,
1846,
999,
348,
2833,
316,
5313,
1965,
16,
1846,
1410,
745,
333,
445,
1347,
3433,
2521,
719,
1282,
18,
225,
2597,
7297,
3071,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9706,
67,
87,
410,
12,
11369,
33,
5510,
4672,
3536,
971,
1846,
999,
348,
2833,
316,
5313,
1965,
16,
1846,
1410,
745,
333,
445,
1347,
3433,
2521,
719,
1282,
18,
225,
2597,
7297,
3071,
1... | |
m = pdb.hierarchy_v2.model(id="1") | m = pdb.hierarchy_v2.model(id="17") | def exercise_model(): m = pdb.hierarchy_v2.model() assert m.id == "" m = pdb.hierarchy_v2.model(id="42") assert m.id == "42" m.id = "-23" assert m.id == "-23" # m = pdb.hierarchy_v2.model(id="1") assert m.parent() is None m.pre_allocate_chains(number_of_additional_chains=2) assert m.chains_size() == 0 assert len(m.chai... | 940080cbd3c3a6ff185b58b3489dd494c6a92409 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/940080cbd3c3a6ff185b58b3489dd494c6a92409/tst_hierarchy_v2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
2284,
13332,
312,
273,
10892,
18,
17937,
67,
90,
22,
18,
2284,
1435,
1815,
312,
18,
350,
422,
1408,
312,
273,
10892,
18,
17937,
67,
90,
22,
18,
2284,
12,
350,
1546,
9452,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
2284,
13332,
312,
273,
10892,
18,
17937,
67,
90,
22,
18,
2284,
1435,
1815,
312,
18,
350,
422,
1408,
312,
273,
10892,
18,
17937,
67,
90,
22,
18,
2284,
12,
350,
1546,
9452,
... |
'-framework', 'InterfaceBuilder', | '-framework', 'InterfaceBuilder', | def IfFrameWork(name, packages, extensions, headername=None): """ Return the packages and extensions if the framework exists, or two empty lists if not. """ | c7327c87d5a2f44301555206c46d8ef6ed97cf84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/c7327c87d5a2f44301555206c46d8ef6ed97cf84/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
971,
3219,
2421,
12,
529,
16,
5907,
16,
4418,
16,
1446,
529,
33,
7036,
4672,
3536,
2000,
326,
5907,
471,
4418,
309,
326,
8257,
1704,
16,
578,
2795,
1008,
6035,
309,
486,
18,
3536,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
971,
3219,
2421,
12,
529,
16,
5907,
16,
4418,
16,
1446,
529,
33,
7036,
4672,
3536,
2000,
326,
5907,
471,
4418,
309,
326,
8257,
1704,
16,
578,
2795,
1008,
6035,
309,
486,
18,
3536,
2,
... |
node_text = node.astext().replace('\n', ' ') self.wikiparser.raw = '[%s %s]' % (target, node_text) self.wikiparser.format(self.formatter) | if target.startswith('inline:'): self.wikiparser.raw = target self.wikiparser.format(self.formatter) else: node_text = node.astext().replace('\n', ' ') self.wikiparser.raw = '[%s %s]' % (target, node_text) self.wikiparser.format(self.formatter) | def visit_reference(self, node): target = None if 'refuri' in node.attributes: if (node['refuri'].find('wiki:') != -1) or \ (node['refuri'].find('attachment:') != -1): target = node['refuri'] elif ('name' in node.attributes and fully_normalize_name(node['name']) == node['refuri']): target = ':%s:' % (node['name']) # Th... | c9655705a93f1df5d7b80440a5e3fd18916989bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/c9655705a93f1df5d7b80440a5e3fd18916989bc/rst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
6180,
12,
2890,
16,
756,
4672,
1018,
273,
599,
309,
296,
1734,
1650,
11,
316,
756,
18,
4350,
30,
309,
261,
2159,
3292,
1734,
1650,
29489,
4720,
2668,
13044,
2497,
13,
480,
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,
3757,
67,
6180,
12,
2890,
16,
756,
4672,
1018,
273,
599,
309,
296,
1734,
1650,
11,
316,
756,
18,
4350,
30,
309,
261,
2159,
3292,
1734,
1650,
29489,
4720,
2668,
13044,
2497,
13,
480,
30... |
if len(sys.argv) > 1 and sys.argv[1] == "clean": clean() else: update_all() | #def inner(): #child = subprocess.Popen(args, stdout=subprocess.PIPE) #DEP_PREFIX = "Note: including file:" #retval = [] #with open(output, "wb") as dfp: #for line in child.stdout: #if line.startswith(DEP_PREFIX): #dfp.write(line[len(DEP_PREFIX):].lstrip()) #assert child.wait() == 0 | 53358696c5adf2983d191f059a1cd57fb464959c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4811/53358696c5adf2983d191f059a1cd57fb464959c/make.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
3443,
13332,
468,
3624,
273,
6652,
18,
52,
3190,
12,
1968,
16,
3909,
33,
1717,
2567,
18,
27602,
13,
468,
1639,
52,
67,
6307,
273,
315,
8067,
30,
6508,
585,
2773,
468,
18341,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
3443,
13332,
468,
3624,
273,
6652,
18,
52,
3190,
12,
1968,
16,
3909,
33,
1717,
2567,
18,
27602,
13,
468,
1639,
52,
67,
6307,
273,
315,
8067,
30,
6508,
585,
2773,
468,
18341,
273,
... | |
inspect.classify_class_attrs(object)) | classify_class_attrs(object)) | def spilldata(msg, attrs, predicate): ok, attrs = _split_list(attrs, predicate) if ok: hr.maybe() push(msg) for name, kind, homecls, value in ok: if callable(value) or inspect.isdatadescriptor(value): doc = getattr(value, "__doc__", None) else: doc = None push(self.docother(getattr(object, name), name, mod, 70, doc) + ... | 9ddb3005986dae244935c670cdd58cc08b09f752 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9ddb3005986dae244935c670cdd58cc08b09f752/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1694,
737,
892,
12,
3576,
16,
3422,
16,
5641,
4672,
1529,
16,
3422,
273,
389,
4939,
67,
1098,
12,
7039,
16,
5641,
13,
309,
1529,
30,
15407,
18,
19133,
1435,
1817,
12,
3576,
13,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1694,
737,
892,
12,
3576,
16,
3422,
16,
5641,
4672,
1529,
16,
3422,
273,
389,
4939,
67,
1098,
12,
7039,
16,
5641,
13,
309,
1529,
30,
15407,
18,
19133,
1435,
1817,
12,
3576,
13,
364,
... |
ed_glob.ID_PREF_AALIAS]: | ed_glob.ID_PREF_AALIAS]: | def OnUpdateEditor(self, evt): """Update any open text controls to reflect the changes made in this panel from the checkboxes and choice controls. @param evt: Event that called this handler | e6337bb83e55919f36734d7fceb2690efb1a5728 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/e6337bb83e55919f36734d7fceb2690efb1a5728/prefdlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
1891,
6946,
12,
2890,
16,
6324,
4672,
3536,
1891,
1281,
1696,
977,
11022,
358,
3037,
326,
3478,
7165,
316,
333,
6594,
628,
326,
11832,
281,
471,
6023,
11022,
18,
632,
891,
6324,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
1891,
6946,
12,
2890,
16,
6324,
4672,
3536,
1891,
1281,
1696,
977,
11022,
358,
3037,
326,
3478,
7165,
316,
333,
6594,
628,
326,
11832,
281,
471,
6023,
11022,
18,
632,
891,
6324,
30... |
return port and ("%s %s %s") % (args, pflag, port) or args | return port and ("%s %s %s" % (args, pflag, port)) or args | def sshargs(sshcmd, host, user, port): '''Build argument list for ssh or Plink''' pflag = 'plink' in sshcmd.lower() and '-P' or '-p' args = user and ("%s@%s" % (user, host)) or host return port and ("%s %s %s") % (args, pflag, port) or args | 19c1d588ac10b8d0c4a722638082998515cd7b52 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/19c1d588ac10b8d0c4a722638082998515cd7b52/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7056,
1968,
12,
10975,
4172,
16,
1479,
16,
729,
16,
1756,
4672,
9163,
3116,
1237,
666,
364,
7056,
578,
453,
1232,
26418,
293,
6420,
273,
296,
20157,
11,
316,
7056,
4172,
18,
8167,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7056,
1968,
12,
10975,
4172,
16,
1479,
16,
729,
16,
1756,
4672,
9163,
3116,
1237,
666,
364,
7056,
578,
453,
1232,
26418,
293,
6420,
273,
296,
20157,
11,
316,
7056,
4172,
18,
8167,
1435,
... |
if DEBUG: print >>sys.stderr,"DenySeeding to t4t peer: ",self.download_state.get_download().get_dest_files() | if DEBUG: if not self.t4t_eligible: print >>sys.stderr,"DenySeeding to t4t peer: ",self.download_state.get_download().get_dest_files() | def is_conn_eligible(self, conn): if conn.use_g2g: self.g2g_eligible = self.g2g_policy.apply(conn, self.download_state, self.storage) if DEBUG: print >>sys.stderr,"DenySeeding to g2g peer: ",self.download_state.get_download().get_dest_files() | 4989c503eec8351e86456eb91048dabc86e37d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/4989c503eec8351e86456eb91048dabc86e37d9d/SeedingManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
4646,
67,
292,
16057,
12,
2890,
16,
1487,
4672,
309,
1487,
18,
1202,
67,
75,
22,
75,
30,
365,
18,
75,
22,
75,
67,
292,
16057,
273,
365,
18,
75,
22,
75,
67,
5086,
18,
901... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
4646,
67,
292,
16057,
12,
2890,
16,
1487,
4672,
309,
1487,
18,
1202,
67,
75,
22,
75,
30,
365,
18,
75,
22,
75,
67,
292,
16057,
273,
365,
18,
75,
22,
75,
67,
5086,
18,
901... |
print_test('log') | print 'log' | def testfrexp(name, (mant, exp), (emant, eexp)): if abs(mant-emant) > eps or exp <> eexp: raise TestFailed, '%s returned %s, expected %s'%\ (name, `mant, exp`, `emant,eexp`) | 8c8ac34babc99b5c0ebbd8bdade89f73afabedc0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/8c8ac34babc99b5c0ebbd8bdade89f73afabedc0/test_math.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
74,
266,
23829,
12,
529,
16,
261,
81,
970,
16,
1329,
3631,
261,
351,
970,
16,
425,
2749,
3719,
30,
309,
2417,
12,
81,
970,
17,
351,
970,
13,
405,
7785,
578,
1329,
2813,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
74,
266,
23829,
12,
529,
16,
261,
81,
970,
16,
1329,
3631,
261,
351,
970,
16,
425,
2749,
3719,
30,
309,
2417,
12,
81,
970,
17,
351,
970,
13,
405,
7785,
578,
1329,
2813,
425,
... |
return header + str(root) | return header + str(root) + '\n' | def vcdimager_xml(disc): """Return the vcdimager XML string for the given Disc. """ assert isinstance(disc, Disc) # XML header (will be added later) header = '<?xml version="1.0"?>\n' header += '<!DOCTYPE videocd PUBLIC "-//GNU/DTD VideoCD//EN"\n' header += ' "http://www.gnu.org/software/vcdimager/videocd.dtd">\n' # R... | 2337717119f11b713e56550fca0ca14eabf780e3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4675/2337717119f11b713e56550fca0ca14eabf780e3/author.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12802,
3509,
6817,
67,
2902,
12,
2251,
71,
4672,
3536,
990,
326,
12802,
3509,
6817,
3167,
533,
364,
326,
864,
3035,
71,
18,
3536,
1815,
1549,
12,
2251,
71,
16,
3035,
71,
13,
468,
3167,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12802,
3509,
6817,
67,
2902,
12,
2251,
71,
4672,
3536,
990,
326,
12802,
3509,
6817,
3167,
533,
364,
326,
864,
3035,
71,
18,
3536,
1815,
1549,
12,
2251,
71,
16,
3035,
71,
13,
468,
3167,... |
(svd,(S,),dict(overwrite_a=True)), | (eigvals,(S,),dict(overwrite_a=True)), (lu,(S,),dict(overwrite_a=True)), (lu_factor,(S,),dict(overwrite_a=True)), (svd,(M,),dict(overwrite_a=True)), (svd,(R,),dict(overwrite_a=True)), (cholesky,(M,),dict(overwrite_a=True)), | def test_lapack_misaligned(): M = np.eye(10,dtype=float) R = np.arange(100) R.shape = 10,10 S = np.arange(20000,dtype=np.uint8) S = np.frombuffer(S.data, offset=4, count=100, dtype=np.float) S.shape = 10, 10 v = np.ones(3,dtype=float) for (func, args, kwargs) in [ #(eig,(S,),dict(overwrite_a=True)), #(eigvals,(S,),dict... | a98cc121feb9473ebb48e711bc5a7b06895204aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/a98cc121feb9473ebb48e711bc5a7b06895204aa/test_decomp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3762,
484,
67,
11173,
20677,
13332,
490,
273,
1130,
18,
402,
73,
12,
2163,
16,
8972,
33,
5659,
13,
534,
273,
1130,
18,
297,
726,
12,
6625,
13,
534,
18,
4867,
273,
1728,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3762,
484,
67,
11173,
20677,
13332,
490,
273,
1130,
18,
402,
73,
12,
2163,
16,
8972,
33,
5659,
13,
534,
273,
1130,
18,
297,
726,
12,
6625,
13,
534,
18,
4867,
273,
1728,
16,... |
arg_list.insert(0, program_file) arg_string = " ".join(arg_list) | arg_string = program_file if arg_list is not None: arg_string += " " + " ".join(arg_list) | def start_vessel(vesselhandle, identity, program_file, arg_list=[]): """ <Purpose> Start a program running on a vessel. <Arguments> vesselhandle The vesselhandle of the vessel that is to be started. identity The identity of either the owner or a user of the vessel. program_file The name of the file that already exists ... | 48f8ad1ef313b494df87c214cd92ed8c805ea148 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/48f8ad1ef313b494df87c214cd92ed8c805ea148/experimentlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
90,
403,
292,
12,
90,
403,
292,
4110,
16,
4215,
16,
5402,
67,
768,
16,
1501,
67,
1098,
33,
8526,
4672,
3536,
411,
10262,
4150,
34,
3603,
279,
5402,
3549,
603,
279,
331,
403,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
90,
403,
292,
12,
90,
403,
292,
4110,
16,
4215,
16,
5402,
67,
768,
16,
1501,
67,
1098,
33,
8526,
4672,
3536,
411,
10262,
4150,
34,
3603,
279,
5402,
3549,
603,
279,
331,
403,... |
return getText | return getText | def pre_put_convert(self, site, getText): if site.lang == 'eo': | d80769d86c1fc35eac60949d3ec116329b831997 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/d80769d86c1fc35eac60949d3ec116329b831997/wikipedia_family.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
67,
458,
67,
6283,
12,
2890,
16,
2834,
16,
6701,
4672,
309,
2834,
18,
4936,
422,
296,
4361,
4278,
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,
675,
67,
458,
67,
6283,
12,
2890,
16,
2834,
16,
6701,
4672,
309,
2834,
18,
4936,
422,
296,
4361,
4278,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.log.info( "pilotOptions: ", ' '.join(pilotOptions)) | self.log.verbose( "pilotOptions: ", ' '.join(pilotOptions)) | def __getPilotOptions(self,queue,pilotsToSubmit): """ Prepare pilot options """ queueDict = self.queueDict[queue]['ParametersDict'] print queueDict vo = gConfig.getValue( "/DIRAC/VirtualOrganization", "unknown" ) if vo == 'unknown': self.log.error('Virtual Organization is not defined in the configuration') return No... | de53db04094ffe536f00b063457d17fbef5ab7b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/de53db04094ffe536f00b063457d17fbef5ab7b7/SiteDirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
52,
22797,
1320,
12,
2890,
16,
4000,
16,
84,
330,
6968,
774,
11620,
4672,
3536,
7730,
293,
22797,
702,
3536,
225,
2389,
5014,
273,
365,
18,
4000,
5014,
63,
4000,
23962,
2402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
52,
22797,
1320,
12,
2890,
16,
4000,
16,
84,
330,
6968,
774,
11620,
4672,
3536,
7730,
293,
22797,
702,
3536,
225,
2389,
5014,
273,
365,
18,
4000,
5014,
63,
4000,
23962,
2402,
... |
errmsg = self.IRC_Message("433 :Nickname is already in use") errmsg.prefix = self.hostname if(connection.user and connection.user.nick): errmsg.params = [connection.user.nick, nick] else: errmsg.params = ["*", nick] connection.send(errmsg.toString()) | self.sendReply(connection, 433, [nick]) | def checkClientNick(self, connection, nick): if(self.findUser(nick)): # check that nobody's taken the nick already errmsg = self.IRC_Message("433 :Nickname is already in use") errmsg.prefix = self.hostname if(connection.user and connection.user.nick): errmsg.params = [connection.user.nick, nick] else: errmsg.params = [... | 724a21974ae22aa9b9f53297c4a06e4d6f587959 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11670/724a21974ae22aa9b9f53297c4a06e4d6f587959/IRC_Server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
1227,
29756,
12,
2890,
16,
1459,
16,
10909,
4672,
309,
12,
2890,
18,
4720,
1299,
12,
17091,
3719,
30,
468,
866,
716,
290,
947,
973,
1807,
9830,
326,
10909,
1818,
365,
18,
4661,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1227,
29756,
12,
2890,
16,
1459,
16,
10909,
4672,
309,
12,
2890,
18,
4720,
1299,
12,
17091,
3719,
30,
468,
866,
716,
290,
947,
973,
1807,
9830,
326,
10909,
1818,
365,
18,
4661,
78... |
"news:[-A-Z\^_a-z{|}~!" | """news:[-A-Z\^_a-z{|}~!" | def update_url_matches(self, posix = True): """Update the regexps used to match URLs""" userchars = "-A-Za-z0-9" passchars = "-A-Za-z0-9,?;.:/!%$^*&~\"#'" hostchars = "-A-Za-z0-9" pathchars = "-A-Za-z0-9_$.+!*(),;:@&=?/~#%'\"" schemes = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)" user = "[" + userchars... | 47eed40bdb8964ef6fbea0aad675f775dd3770ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1032/47eed40bdb8964ef6fbea0aad675f775dd3770ba/terminal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
718,
67,
8436,
12,
2890,
16,
16366,
273,
1053,
4672,
3536,
1891,
326,
3936,
1121,
1399,
358,
845,
10414,
8395,
729,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
6,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
718,
67,
8436,
12,
2890,
16,
16366,
273,
1053,
4672,
3536,
1891,
326,
3936,
1121,
1399,
358,
845,
10414,
8395,
729,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
6,
1... |
'{inbound} method %s()", not found' % (action) | '{inbound} method %s()", not found' % action | def inbound(cls, action): """ Find the handler B{inbound} method for the specified I{action}. @param action: The I{action} part of an event subject. @type action: str @return: The handler instance method. @rtype: instancemethod """ mutex.acquire() try: method = cls.inbounds.get(action) if method is None: raise Exceptio... | e019d45771f02e3ce7f00bacfd4d1da7861f8f32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/e019d45771f02e3ce7f00bacfd4d1da7861f8f32/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13357,
12,
6429,
16,
1301,
4672,
3536,
4163,
326,
1838,
605,
95,
267,
3653,
97,
707,
364,
326,
1269,
467,
95,
1128,
5496,
632,
891,
1301,
30,
1021,
467,
95,
1128,
97,
1087,
434,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13357,
12,
6429,
16,
1301,
4672,
3536,
4163,
326,
1838,
605,
95,
267,
3653,
97,
707,
364,
326,
1269,
467,
95,
1128,
5496,
632,
891,
1301,
30,
1021,
467,
95,
1128,
97,
1087,
434,
392,
... |
def HoldSubscription(self, addr, password, digest): | def HoldSubscription(self, addr, password, digest, lang): | def HoldSubscription(self, addr, password, digest): # assure that the database is open for writing self.__opendb() # get the next unique id id = self.__request_id() assert not self.__db.has_key(id) # # save the information to the request database. for held subscription # entries, each record in the database will be one... | 5748676a683311882b8786486ba29efe68b3fdcf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/5748676a683311882b8786486ba29efe68b3fdcf/ListAdmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
670,
1673,
6663,
12,
2890,
16,
3091,
16,
2201,
16,
5403,
16,
3303,
4672,
468,
1551,
594,
716,
326,
2063,
353,
1696,
364,
7410,
365,
16186,
556,
409,
70,
1435,
468,
336,
326,
1024,
3089... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
670,
1673,
6663,
12,
2890,
16,
3091,
16,
2201,
16,
5403,
16,
3303,
4672,
468,
1551,
594,
716,
326,
2063,
353,
1696,
364,
7410,
365,
16186,
556,
409,
70,
1435,
468,
336,
326,
1024,
3089... |
if auth: h.putheader('Authorization: Basic %s' % auth) | if auth: h.putheader('Authorization', 'Basic %s' % auth) | def open_http(self, url): import httplib if type(url) is type(""): host, selector = splithost(url) user_passwd, host = splituser(host) else: host, selector = url urltype, rest = splittype(selector) if string.lower(urltype) == 'http': realhost, rest = splithost(rest) user_passwd, realhost = splituser(realhost) if user_p... | c5d7e80739fdaed472955ca2d3d4933c27ab879b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c5d7e80739fdaed472955ca2d3d4933c27ab879b/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2505,
12,
2890,
16,
880,
4672,
1930,
15851,
6673,
309,
618,
12,
718,
13,
353,
618,
2932,
6,
4672,
1479,
16,
3451,
273,
6121,
483,
669,
12,
718,
13,
729,
67,
24002,
16,
1479... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2505,
12,
2890,
16,
880,
4672,
1930,
15851,
6673,
309,
618,
12,
718,
13,
353,
618,
2932,
6,
4672,
1479,
16,
3451,
273,
6121,
483,
669,
12,
718,
13,
729,
67,
24002,
16,
1479... |
if 'receipts' in pl: receipts = pl['receipts'] for item in receipts: if 'packageid' in item: if munkicommon.getInstalledPackageVersion(item['packageid']): return True | def evidenceThisIsInstalled(pl): """ Checks to see if there is evidence that the item described by pl (any version) is currently installed. If any tests pass, the item might be installed. So this isn't the same as isInstalled() """ global pkgdata # first check our pkgdata if pl['name'] in pkgdata['installed_names']: re... | 6ca682ec52a2a3b804566ebaf67e1666efdd5a94 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6241/6ca682ec52a2a3b804566ebaf67e1666efdd5a94/updatecheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14481,
2503,
2520,
16747,
12,
412,
4672,
3536,
13074,
358,
2621,
309,
1915,
353,
14481,
716,
326,
761,
11893,
635,
886,
261,
2273,
1177,
13,
353,
4551,
5876,
18,
971,
1281,
7434,
1342,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14481,
2503,
2520,
16747,
12,
412,
4672,
3536,
13074,
358,
2621,
309,
1915,
353,
14481,
716,
326,
761,
11893,
635,
886,
261,
2273,
1177,
13,
353,
4551,
5876,
18,
971,
1281,
7434,
1342,
1... | |
self._cont_handler.endElement(name, name) | self._cont_handler.endElement(name) | def end_element(self, name): self._cont_handler.endElement(name, name) | 0a3b4342d197874aa0d7e20bc27c568b6acaf892 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0a3b4342d197874aa0d7e20bc27c568b6acaf892/expatreader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
2956,
12,
2890,
16,
508,
4672,
365,
6315,
1213,
67,
4176,
18,
409,
1046,
12,
529,
16,
508,
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,
679,
67,
2956,
12,
2890,
16,
508,
4672,
365,
6315,
1213,
67,
4176,
18,
409,
1046,
12,
529,
16,
508,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return_to = ''.join([request.getBaseURL(), '?', qstr]) | return_to = '%s/%s' % (request.getBaseURL(), request.page.url(request, qstr)) | def _handle_oidreturn(self): request = self.request _ = request.getText | 468cca9007e8b454e71e4d780a2503d3dbee35cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/468cca9007e8b454e71e4d780a2503d3dbee35cc/oid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
839,
2463,
12,
2890,
4672,
590,
273,
365,
18,
2293,
389,
273,
590,
18,
588,
1528,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
839,
2463,
12,
2890,
4672,
590,
273,
365,
18,
2293,
389,
273,
590,
18,
588,
1528,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if share.active and not share.hidden and (share.contents not in sharedCollections): | if (share.active and not share.hidden and share.contents is not None and share.contents not in sharedCollections): | def syncAll(view, updateCallback=None): """ Synchronize all active shares. @param view: The repository view object @type view: L{repository.persistence.RepositoryView} """ sharedCollections = [] for share in Share.iterItems(view): if share.active and not share.hidden and (share.contents not in sharedCollections): sha... | ce14c0d7ba81a9d473299a3691531c22b2458115 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/ce14c0d7ba81a9d473299a3691531c22b2458115/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
1595,
12,
1945,
16,
1089,
2428,
33,
7036,
4672,
3536,
26535,
554,
777,
2695,
24123,
18,
225,
632,
891,
1476,
30,
1021,
3352,
1476,
733,
632,
723,
1476,
30,
511,
95,
9071,
18,
248... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
1595,
12,
1945,
16,
1089,
2428,
33,
7036,
4672,
3536,
26535,
554,
777,
2695,
24123,
18,
225,
632,
891,
1476,
30,
1021,
3352,
1476,
733,
632,
723,
1476,
30,
511,
95,
9071,
18,
248... |
print >>fp, " {%d, %d, %d, %d, %d}," % item | print >>fp, " {%d, %d, %d, %d, %d, %d}," % item | def makeunicodedata(unicode, trace): dummy = (0, 0, 0, 0, 0) table = [dummy] cache = {0: dummy} index = [0] * len(unicode.chars) FILE = "Modules/unicodedata_db.h" print "--- Preparing", FILE, "..." # 1) database properties for char in unicode.chars: record = unicode.table[char] if record: # extract database proper... | e988e286b2831382deb7c69b26c74ed185f51696 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/e988e286b2831382deb7c69b26c74ed185f51696/makeunicodedata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
9124,
892,
12,
9124,
16,
2606,
4672,
225,
9609,
273,
261,
20,
16,
374,
16,
374,
16,
374,
16,
374,
13,
1014,
273,
306,
21050,
65,
1247,
273,
288,
20,
30,
9609,
97,
770,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
9124,
892,
12,
9124,
16,
2606,
4672,
225,
9609,
273,
261,
20,
16,
374,
16,
374,
16,
374,
16,
374,
13,
1014,
273,
306,
21050,
65,
1247,
273,
288,
20,
30,
9609,
97,
770,
273,
3... |
msgs.insert(0, (msg, subj)) | msgs.insert(0, (msg, subj, ds)) | def getpatchmsgs(patches, patchnames=None): jumbo = [] msgs = [] | 9da6032086f09e0116442acbe6e7d1fe447e0b5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/9da6032086f09e0116442acbe6e7d1fe447e0b5e/patchbomb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2272,
27439,
12,
30278,
16,
4729,
1973,
33,
7036,
4672,
525,
379,
1075,
273,
5378,
8733,
273,
5378,
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,
336,
2272,
27439,
12,
30278,
16,
4729,
1973,
33,
7036,
4672,
525,
379,
1075,
273,
5378,
8733,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
args.append("""'-' %s title "%s" """ % (dataSetOptions,file)) | args.append("""'-' %s title "%s" """ % (dataSetOptions, file)) | def plot(files): """given a list of files, create gnu-plot file""" import cStringIO, os cmd = cStringIO.StringIO() cmd.write(globalOptions) args = [] for file in files: args.append("""'-' %s title "%s" """ % (dataSetOptions,file)) cmd.write('plot %s\n' % ",".join(args)) for file in files: outputHist(loadHist(file),cmd)... | 61be7c7eb961f3886d6a32614d9b0537cf84e62a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/61be7c7eb961f3886d6a32614d9b0537cf84e62a/HistToGNU.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2354,
4672,
3536,
10822,
279,
666,
434,
1390,
16,
752,
314,
13053,
17,
4032,
585,
8395,
1930,
276,
780,
4294,
16,
1140,
1797,
273,
276,
780,
4294,
18,
780,
4294,
1435,
1797,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2354,
4672,
3536,
10822,
279,
666,
434,
1390,
16,
752,
314,
13053,
17,
4032,
585,
8395,
1930,
276,
780,
4294,
16,
1140,
1797,
273,
276,
780,
4294,
18,
780,
4294,
1435,
1797,
... |
def flimage_flip(p1, p2): """ flimage_flip(p1, p2) -> num. """ retval = _flimage_flip(p1, p2) | def flimage_flip(pImage, p2): """ flimage_flip(pImage, p2) -> num. """ retval = _flimage_flip(pImage, p2) | def flimage_flip(p1, p2): """ flimage_flip(p1, p2) -> num. """ retval = _flimage_flip(p1, p2) return retval | 8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
12357,
12,
84,
2040,
16,
293,
22,
4672,
3536,
1183,
2730,
67,
12357,
12,
84,
2040,
16,
293,
22,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
12357,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
12357,
12,
84,
2040,
16,
293,
22,
4672,
3536,
1183,
2730,
67,
12357,
12,
84,
2040,
16,
293,
22,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
12357,
12... |
if filter: filelist = [f for f in filelist if f.lower().endswith(filter)] | accepted = [] if extensions: for f in filelist: for extension in extensions: if f.lower().endswith(extension): accepted.append(f) filelist = accepted | def add_uris(self, uris, base=None, filter=None): files = [] self.window.set_status(_('Adding files...')) | a6ab25e2a6e3a996db50986725aba976da466d0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2369/a6ab25e2a6e3a996db50986725aba976da466d0c/soundconverter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
23510,
12,
2890,
16,
21476,
16,
1026,
33,
7036,
16,
1034,
33,
7036,
4672,
1390,
273,
5378,
365,
18,
5668,
18,
542,
67,
2327,
24899,
2668,
13962,
1390,
7821,
3719,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
23510,
12,
2890,
16,
21476,
16,
1026,
33,
7036,
16,
1034,
33,
7036,
4672,
1390,
273,
5378,
365,
18,
5668,
18,
542,
67,
2327,
24899,
2668,
13962,
1390,
7821,
3719,
2,
-100,
-10... |
changelog = changelog.replace('"', '\\"') | def _commit(self,root, date, author, remark, changelog=None, entries=None): """ Commit the changeset. """ | b2f9902b127996b2c171f1afba402b14e4a52a50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/b2f9902b127996b2c171f1afba402b14e4a52a50/monotone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7371,
12,
2890,
16,
3085,
16,
1509,
16,
2869,
16,
849,
1313,
16,
21182,
33,
7036,
16,
3222,
33,
7036,
4672,
3536,
10269,
326,
22463,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7371,
12,
2890,
16,
3085,
16,
1509,
16,
2869,
16,
849,
1313,
16,
21182,
33,
7036,
16,
3222,
33,
7036,
4672,
3536,
10269,
326,
22463,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-10... | |
focus_dir = self.backup.parent_backup_dir +'/'+ self.selected_backup + self.cur_dir | focus_dir = self.backup.parent_backup_dir +'/'+ self.selected_backup.strftime(BACKUP_DIR_DATE_FORMAT) + self.cur_dir | def refresh_file_list(self): self.xml.get_widget('pardir_button').set_sensitive( self.cur_dir != '/' ) self.file_list.clear() if self.selected_backup: focus_dir = self.backup.parent_backup_dir +'/'+ self.selected_backup + self.cur_dir else: focus_dir = self.cur_dir try: dirs = dircache.listdir(focus_dir) #dircache.anno... | 3db7c1e976e2fa26d38634f2440987cd2ca7b94c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/317/3db7c1e976e2fa26d38634f2440987cd2ca7b94c/flyback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
67,
768,
67,
1098,
12,
2890,
4672,
365,
18,
2902,
18,
588,
67,
6587,
2668,
84,
1060,
481,
67,
5391,
16063,
542,
67,
23481,
12,
365,
18,
1397,
67,
1214,
480,
2023,
262,
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,
4460,
67,
768,
67,
1098,
12,
2890,
4672,
365,
18,
2902,
18,
588,
67,
6587,
2668,
84,
1060,
481,
67,
5391,
16063,
542,
67,
23481,
12,
365,
18,
1397,
67,
1214,
480,
2023,
262,
365,
18,... |
header.write(pack('>I', 0xFDE9)) header.write(iana2mobi(str(self._oeb.metadata.language[0]))) | header.write(pack('>I', 0x4e4)) header.write(pack('>I', 0xFFFFFFFF)) | def _generate_index(self): self._oeb.log('Generating INDX ...') self._primary_index_record = None | e60d72753e507ac400e19bdec4907d52940848e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/e60d72753e507ac400e19bdec4907d52940848e6/writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
1615,
12,
2890,
4672,
365,
6315,
15548,
70,
18,
1330,
2668,
21755,
2120,
28826,
1372,
6134,
365,
6315,
8258,
67,
1615,
67,
3366,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
1615,
12,
2890,
4672,
365,
6315,
15548,
70,
18,
1330,
2668,
21755,
2120,
28826,
1372,
6134,
365,
6315,
8258,
67,
1615,
67,
3366,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,... |
command = splitCommand[0].upper() args = splitCommand[1:] rawResponse, isClosing, timedOut = self.readResponse(command, args) | self.command = splitCommand[0].upper() self.args = splitCommand[1:] self.startTime = time.time() self.request = '' def onResponse(self): | def found_terminator(self): """Asynchat override.""" # Send the request to the server and read the reply. if self.request.strip().upper() == 'KILL': self.serverSocket.sendall('QUIT\r\n') self.send("+OK, dying.\r\n") self.shutdown(2) self.close() raise SystemExit self.serverSocket.sendall(self.request + '\r\n') if self.... | 959f6c8f86abe1ad21eb4ad3e6c79f2ae1aaf183 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/959f6c8f86abe1ad21eb4ad3e6c79f2ae1aaf183/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1392,
67,
9505,
639,
12,
2890,
4672,
3536,
1463,
2515,
270,
3849,
12123,
468,
2479,
326,
590,
358,
326,
1438,
471,
855,
326,
4332,
18,
309,
365,
18,
2293,
18,
6406,
7675,
5797,
1435,
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,
1392,
67,
9505,
639,
12,
2890,
4672,
3536,
1463,
2515,
270,
3849,
12123,
468,
2479,
326,
590,
358,
326,
1438,
471,
855,
326,
4332,
18,
309,
365,
18,
2293,
18,
6406,
7675,
5797,
1435,
4... |
if self.debug > 0: print 'atoms tested equal' | log.debug('atoms tested equal') | def calculation_required(self, atoms=None, quantities=None): ''' determines if a calculation is needed. | e111e7f7da49e775bf6f578ffb8369e435e7a68c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/e111e7f7da49e775bf6f578ffb8369e435e7a68c/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11096,
67,
4718,
12,
2890,
16,
9006,
33,
7036,
16,
10251,
1961,
33,
7036,
4672,
9163,
12949,
309,
279,
11096,
353,
3577,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
11096,
67,
4718,
12,
2890,
16,
9006,
33,
7036,
16,
10251,
1961,
33,
7036,
4672,
9163,
12949,
309,
279,
11096,
353,
3577,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
(datetime.datetime.today() - datetime.timedelta(days=10)): | (datetime.datetime.today() - datetime.timedelta(days=10)) and \ self.resources.people > 70000: | def doturn(self, report): replinestart = "Planet: " + str(self.name) + " (" + str(self.id) + ") " print "------" print "planet doturn -- " + self.name + " pop: " + str(self.resources.people) # first build on upgrades for upgrade in self.upgradeslist(PlanetUpgrade.BUILDING): for commodity in upgrade.instrumentality.requ... | 60033963597f85b0bea4f8ca7d2f68f301a8b478 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2020/60033963597f85b0bea4f8ca7d2f68f301a8b478/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3928,
321,
12,
2890,
16,
2605,
4672,
6831,
267,
27893,
273,
315,
5365,
278,
30,
315,
397,
609,
12,
2890,
18,
529,
13,
397,
315,
7566,
397,
609,
12,
2890,
18,
350,
13,
397,
9369,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3928,
321,
12,
2890,
16,
2605,
4672,
6831,
267,
27893,
273,
315,
5365,
278,
30,
315,
397,
609,
12,
2890,
18,
529,
13,
397,
315,
7566,
397,
609,
12,
2890,
18,
350,
13,
397,
9369,
315,... |
By default, smtplib.SMTP_PORT is used. | By default, smtplib.SMTP_PORT is used. An SMTPConnectError is raised if the specified `host' doesn't respond correctly. | def __init__(self, host = '', port = 0): """Initialize a new instance. | 053a07b597f875016b8bc478c8a905c8baf4efe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/053a07b597f875016b8bc478c8a905c8baf4efe4/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
273,
10226,
1756,
273,
374,
4672,
3536,
7520,
279,
394,
791,
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,
1479,
273,
10226,
1756,
273,
374,
4672,
3536,
7520,
279,
394,
791,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
logging.error("fail to process debug event") | logging.error("fail to process debug event") | def processDebugEvent(self, event): try: logging.debug("receive debug event: %s", repr(event)) self.events.append(repr(event)) except: logging.error("fail to process debug event") logging.debug(traceback.extract_stack()) | d76ea3f452d147f051e65b20fdab9b87a8b84413 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2065/d76ea3f452d147f051e65b20fdab9b87a8b84413/PyV8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
2829,
1133,
12,
2890,
16,
871,
4672,
775,
30,
2907,
18,
4148,
2932,
18149,
1198,
871,
30,
738,
87,
3113,
8480,
12,
2575,
3719,
225,
365,
18,
5989,
18,
6923,
12,
12715,
12,
2575,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2829,
1133,
12,
2890,
16,
871,
4672,
775,
30,
2907,
18,
4148,
2932,
18149,
1198,
871,
30,
738,
87,
3113,
8480,
12,
2575,
3719,
225,
365,
18,
5989,
18,
6923,
12,
12715,
12,
2575,
... |
self.open_logs() | def __init__(self, properties={}): self.open_logs() try: self._setup_vars_from_std_env(os.environ) RequestBase.__init__(self, properties) | 19486cc3a3d251476ad672e29ff87a94ecaa40b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/19486cc3a3d251476ad672e29ff87a94ecaa40b4/request.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1790,
12938,
4672,
775,
30,
365,
6315,
8401,
67,
4699,
67,
2080,
67,
5084,
67,
3074,
12,
538,
18,
28684,
13,
1567,
2171,
16186,
2738,
972,
12,
2890,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1790,
12938,
4672,
775,
30,
365,
6315,
8401,
67,
4699,
67,
2080,
67,
5084,
67,
3074,
12,
538,
18,
28684,
13,
1567,
2171,
16186,
2738,
972,
12,
2890,
16,
... | |
if item.shape[1] == 1: newitems.append(Data(item, with='lines')) | dim = len(item.shape) if dim == 1: newitems.append(Data(item[:, Numeric.NewAxis], with='lines')) elif dim == 2: if item.shape[1] == 1: newitems.append(Data(item, with='lines')) else: tempf = TempArrayFile(item) for col in range(1, item.shape[1]): newitems.append(File(tempf, using=(1,col+1), with='lines')) | def plot(*items, **kw): """plot data using gnuplot. This command is roughly compatible with old Gnuplot plot command. It is provided for backwards compatibility only. It is recommended that you use the new object-oriented Gnuplot interface, which is much more flexible. It can only plot Numeric array data. In this r... | 9eafec99a80900ab19e4d7d48efe76f5cca1671f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9569/9eafec99a80900ab19e4d7d48efe76f5cca1671f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
30857,
3319,
16,
2826,
9987,
4672,
3536,
4032,
501,
1450,
314,
13053,
4032,
18,
225,
1220,
1296,
353,
23909,
715,
7318,
598,
1592,
611,
13053,
4032,
3207,
1296,
18,
2597,
353,
2112,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
30857,
3319,
16,
2826,
9987,
4672,
3536,
4032,
501,
1450,
314,
13053,
4032,
18,
225,
1220,
1296,
353,
23909,
715,
7318,
598,
1592,
611,
13053,
4032,
3207,
1296,
18,
2597,
353,
2112,
... |
return R('1.61803398874989484820458683436563811772030917980576286213544862') def _mpfr_(self,R): return (R(1)+R(5).sqrt())*R(0.5) | """ EXAMPLES: sage: golden_ratio._real_rqdf_(RQDF) 1.618033988749894848204586834365638117720309179805762862135448623 sage: RQDF(golden_ratio) 1.618033988749894848204586834365638117720309179805762862135448623 """ return (R(1)+R(5).sqrt())/R(2) def _mpfr_(self,R): """ EXAMPLES: sage: golden_ratio._mpfr_(RealField(100)) ... | def _real_rqdf_(self, R): return R('1.61803398874989484820458683436563811772030917980576286213544862') | 19a060960af30f38e4cdacf2929902a69a7a25bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/19a060960af30f38e4cdacf2929902a69a7a25bc/constants.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7688,
67,
86,
85,
2180,
67,
12,
2890,
16,
534,
4672,
327,
534,
2668,
21,
18,
26,
2643,
15265,
29,
5482,
5608,
29,
6675,
24,
5193,
11149,
3028,
25,
5292,
28,
5026,
5718,
4313,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7688,
67,
86,
85,
2180,
67,
12,
2890,
16,
534,
4672,
327,
534,
2668,
21,
18,
26,
2643,
15265,
29,
5482,
5608,
29,
6675,
24,
5193,
11149,
3028,
25,
5292,
28,
5026,
5718,
4313,
74... |
return "(regexp%s %r %r)" % (props(), n.value["regexp"], | return "(REGEXP%s %r %r)" % (props(), n.value["regexp"], | def props(): if c["include_props"]: props_to_include = [x for x in ("lineno", "start", "end", "readOnly") if hasattr(n, x)] if len(props_to_include) > 0: s = " (@" for prop in props_to_include: s += " (%s %s)" % (prop, getattr(n, prop)) return s +")" return "" | df699fbcef0551b57fbcf593691a41515ef3b880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4710/df699fbcef0551b57fbcf593691a41515ef3b880/sexp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3458,
13332,
309,
276,
9614,
6702,
67,
9693,
11929,
30,
3458,
67,
869,
67,
6702,
273,
306,
92,
364,
619,
316,
7566,
17782,
3113,
315,
1937,
3113,
315,
409,
3113,
315,
896,
3386,
7923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3458,
13332,
309,
276,
9614,
6702,
67,
9693,
11929,
30,
3458,
67,
869,
67,
6702,
273,
306,
92,
364,
619,
316,
7566,
17782,
3113,
315,
1937,
3113,
315,
409,
3113,
315,
896,
3386,
7923,
... |
filename -- duh | filename -- a string | def show(self, table_name, max_field_size=20): """ show and entire table from the database TODO ROBERT: - same as the show function in query: throw in if clause and decomment - also, do you know of any quick fix for the truncated output issue in notebook? EXAMPLES: sage: DB = SQLDatabase() sage: DB.create_table('simo... | 5ddf79d83938a9c0191ec3af2f60e264a74ecef9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5ddf79d83938a9c0191ec3af2f60e264a74ecef9/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
1014,
67,
529,
16,
943,
67,
1518,
67,
1467,
33,
3462,
4672,
3536,
2405,
471,
7278,
1014,
628,
326,
2063,
225,
2660,
534,
5704,
11539,
30,
300,
1967,
487,
326,
2405,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
1014,
67,
529,
16,
943,
67,
1518,
67,
1467,
33,
3462,
4672,
3536,
2405,
471,
7278,
1014,
628,
326,
2063,
225,
2660,
534,
5704,
11539,
30,
300,
1967,
487,
326,
2405,... |
offset = float(re.search("offset (.*),", o).group(1))*1000000 if (abs(offset) < offset): stat = DiagnosticStatus(0,"NTP offset from: "+ hostname + " to: " +ntp_hostname, "Acceptable synchronization", [DiagnosticValue(offset,"offset (us)")],[]) print offset | measured_offset = float(re.search("offset (.*),", o).group(1))*1000000 if (abs(measured_offset) < offset): stat = DiagnosticStatus(0,"NTP offset from: "+ hostname + " to: " +ntp_hostname, "Acceptable synchronization", [DiagnosticValue(measured_offset,"offset (us)")],[]) print measured_offset | def ntp_monitor(ntp_hostname, offset=500): pub = rospy.Publisher("/diagnostics", DiagnosticMessage) rospy.init_node(NAME, anonymous=True) hostname = socket.gethostbyaddr(socket.gethostname())[0] while not rospy.is_shutdown(): try: p = Popen(["ntpdate", "-q", ntp_hostname], stdout=PIPE, stdin=PIPE, stderr=PIPE) res = ... | 3c38479a69a65cfdf28f0eb6c974cd2aa5335465 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10233/3c38479a69a65cfdf28f0eb6c974cd2aa5335465/ntp_monitor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30254,
67,
10259,
12,
496,
84,
67,
10358,
16,
1384,
33,
12483,
4672,
5634,
273,
721,
30884,
18,
15960,
2932,
19,
12264,
13936,
3113,
21450,
1079,
13,
721,
30884,
18,
2738,
67,
2159,
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,
30254,
67,
10259,
12,
496,
84,
67,
10358,
16,
1384,
33,
12483,
4672,
5634,
273,
721,
30884,
18,
15960,
2932,
19,
12264,
13936,
3113,
21450,
1079,
13,
721,
30884,
18,
2738,
67,
2159,
12,
... |
def _test_urls(self, urls, handlers): | def _test_urls(self, urls, handlers, urlopen=_urlopen_with_retry): | def _test_urls(self, urls, handlers): import socket import time import logging debug = logging.getLogger("test_urllib2").debug | 6534a4ed2b25b245b424847a6f61ed4524fa5f72 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/6534a4ed2b25b245b424847a6f61ed4524fa5f72/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
16,
19613,
33,
67,
295,
18589,
67,
1918,
67,
9620,
4672,
1930,
2987,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
16,
19613,
33,
67,
295,
18589,
67,
1918,
67,
9620,
4672,
1930,
2987,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
38... |
if not ea1: ea1 = idaapi.cvar.inf.minEA if not ea2: ea2 = idaapi.cvar.inf.maxEA | if ea1 is None: ea1 = idaapi.cvar.inf.minEA if ea2 is None: ea2 = idaapi.cvar.inf.maxEA | def refresh(self, ea1=None, ea2=None): """Refreshes the strings list""" if not ea1: ea1 = idaapi.cvar.inf.minEA if not ea2: ea2 = idaapi.cvar.inf.maxEA idaapi.refresh_strlist(ea1, ea2) self.size = idaapi.get_strlist_qty() | 388bab7d9c5e054bae2bffa62a30746c15934d0b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6984/388bab7d9c5e054bae2bffa62a30746c15934d0b/idautils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
16,
24164,
21,
33,
7036,
16,
24164,
22,
33,
7036,
4672,
3536,
8323,
281,
326,
2064,
666,
8395,
309,
24164,
21,
353,
599,
30,
24164,
21,
273,
612,
69,
2425,
18,
71,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
16,
24164,
21,
33,
7036,
16,
24164,
22,
33,
7036,
4672,
3536,
8323,
281,
326,
2064,
666,
8395,
309,
24164,
21,
353,
599,
30,
24164,
21,
273,
612,
69,
2425,
18,
71,
14... |
self.assertEqual(os.path.join(base, 'site1'), | self.assertEqual(os.path.realpath(os.path.join(base, 'site1')), | def test_inherit_multiple(self): base = os.path.dirname(self.filename) relsite1 = os.path.join('sub1', 'trac-site1.ini') site1 = os.path.join(base, relsite1) relsite2 = os.path.join('sub2', 'trac-site2.ini') site2 = os.path.join(base, relsite2) os.mkdir(os.path.dirname(site1)) create_file(site1, '[a]\noption1 = x\n' '[... | c51b5d8d3f5708f9fc63173f475f84ad6fdbf3c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/c51b5d8d3f5708f9fc63173f475f84ad6fdbf3c6/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6018,
67,
9622,
12,
2890,
4672,
1026,
273,
1140,
18,
803,
18,
12287,
12,
2890,
18,
3459,
13,
1279,
4256,
21,
273,
1140,
18,
803,
18,
5701,
2668,
1717,
21,
2187,
296,
313,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6018,
67,
9622,
12,
2890,
4672,
1026,
273,
1140,
18,
803,
18,
12287,
12,
2890,
18,
3459,
13,
1279,
4256,
21,
273,
1140,
18,
803,
18,
5701,
2668,
1717,
21,
2187,
296,
313,
1... |
QMAKESEARCHPATH.append( os.path.join(dir, QMAKE_EXECUTABLE) ) | QMAKESEARCHPATH.append( os.path.join( dir, QMAKE_EXECUTABLE ) ) | def checkQt(): if sys.platform == "win32": QMAKE_EXECUTABLE = "qmake.exe" else: QMAKE_EXECUTABLE = "qmake" sys.stdout.write( "Checking QTDIR enviroment variable..." ) if ( os.environ.has_key("QTDIR") and os.path.exists( os.environ["QTDIR"] ) ): sys.stdout.write( green("ok\n") ) else: sys.stdout.write( red("failed") +... | d980221e60ef0a27e1c9e50d015876701de198d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d980221e60ef0a27e1c9e50d015876701de198d2/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
23310,
13332,
225,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
2238,
5535,
6859,
67,
15271,
1693,
2782,
273,
315,
85,
6540,
18,
14880,
6,
469,
30,
2238,
5535,
6859,
67,
15271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23310,
13332,
225,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
2238,
5535,
6859,
67,
15271,
1693,
2782,
273,
315,
85,
6540,
18,
14880,
6,
469,
30,
2238,
5535,
6859,
67,
15271,
... |
self.assertRaises(Exception, self.CheckTree()) | self.CheckTree() | def reorder(parent_id=False): record_ids = self.mptt.search([ ('parent', '=', parent_id), ], CONTEXT) if not record_ids: return i = len(record_ids) for record_id in record_ids: self.mptt.write(record_id, { 'sequence': i, }, CONTEXT) i -= 1 self.assertRaises(Exception, self.CheckTree()) i = 0 for record_id in record_ids... | 4eb41eb13692d42bf9b2de715e54289debf04e4c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/4eb41eb13692d42bf9b2de715e54289debf04e4c/test_tryton.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19427,
12,
2938,
67,
350,
33,
8381,
4672,
1409,
67,
2232,
273,
365,
18,
81,
337,
88,
18,
3072,
3816,
7707,
2938,
2187,
15196,
2187,
982,
67,
350,
3631,
308,
16,
13862,
13,
309,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19427,
12,
2938,
67,
350,
33,
8381,
4672,
1409,
67,
2232,
273,
365,
18,
81,
337,
88,
18,
3072,
3816,
7707,
2938,
2187,
15196,
2187,
982,
67,
350,
3631,
308,
16,
13862,
13,
309,
486,
... |
v = SR.var(unit_to_type[str(unit)]) if unit_derivations.has_key(str(v)): base = unit_derivations_expr(v) for i in base.variables(): base = base.subs({i:SR.var(value_to_unit[str(i)]['1'])}) return base*sage_eval(unitdict[str(v)][str(unit)]) else: base = SR.var(value_to_unit[str(v)]['1'])*sage_eval(unitdict[str(v)][str(u... | v = SR.var(unit_to_type[str(unit)]) if unit_derivations.has_key(str(v)): base = unit_derivations_expr(v) for i in base.variables(): base = base.subs({i:SR.var(value_to_unit[str(i)]['1'])}) return base*sage_eval(unitdict[str(v)][str(unit)]) else: base = SR.var(value_to_unit[str(v)]['1'])*sage_eval(unitdict[str(v)][str(u... | def base_units(unit): """ Converts unit to base SI units. INPUT: - ``unit`` OUTPUT: - `symbolic expression` EXAMPLES:: sage: sage.symbolic.units.base_units(units.length.foot) 381/1250*meter If unit is already a base unit, it just returns that unit:: sage: sage.symbolic.units.base_units(units.length.meter) meter... | 04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
7705,
12,
4873,
4672,
3536,
20377,
2836,
358,
1026,
5705,
4971,
18,
225,
12943,
30,
225,
300,
12176,
4873,
10335,
225,
11550,
30,
225,
300,
1375,
9009,
12164,
2652,
68,
225,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7705,
12,
4873,
4672,
3536,
20377,
2836,
358,
1026,
5705,
4971,
18,
225,
12943,
30,
225,
300,
12176,
4873,
10335,
225,
11550,
30,
225,
300,
1375,
9009,
12164,
2652,
68,
225,
56... |
'price': -1 * i_line.product_id.product_tmpl_id.standard_price * i_line.quantity, | 'price': -1 * get_price(cr, uid, inv, company_currency, i_line), | def move_line_get(self, cr, uid, invoice_id, context=None): res = super(account_invoice_line,self).move_line_get(cr, uid, invoice_id, context=context) inv = self.pool.get('account.invoice').browse(cr, uid, invoice_id, context=context) if inv.type in ('out_invoice','out_refund'): for i_line in inv.invoice_line: if i_lin... | 01152d412373ef527cbc9fdfa88601c98d6c6e0f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/01152d412373ef527cbc9fdfa88601c98d6c6e0f/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
67,
1369,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
9179,
67,
350,
16,
819,
33,
7036,
4672,
400,
273,
2240,
12,
4631,
67,
16119,
67,
1369,
16,
2890,
2934,
8501,
67,
1369,
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,
3635,
67,
1369,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
9179,
67,
350,
16,
819,
33,
7036,
4672,
400,
273,
2240,
12,
4631,
67,
16119,
67,
1369,
16,
2890,
2934,
8501,
67,
1369,
67,
... |
print "returning empty" | def xhtmlify(data, addTopTags=False, filterFontTags=False): """Returns XHTMLified version of HTML document""" x = XHTMLifier() ret = x.convert(data, addTopTags, filterFontTags) # if we got a bad return, try it again without filtering font # tags if ret is None and filterFontTags: print "trying filterfonttags=false" x ... | 3f5337dfc8155a978e9a6fa0c492aa35baaf8d0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/3f5337dfc8155a978e9a6fa0c492aa35baaf8d0b/xhtmltools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
2620,
1164,
12,
892,
16,
527,
3401,
3453,
33,
8381,
16,
1034,
5711,
3453,
33,
8381,
4672,
3536,
1356,
30551,
939,
1177,
434,
3982,
1668,
8395,
619,
273,
30551,
1251,
1435,
325,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
2620,
1164,
12,
892,
16,
527,
3401,
3453,
33,
8381,
16,
1034,
5711,
3453,
33,
8381,
4672,
3536,
1356,
30551,
939,
1177,
434,
3982,
1668,
8395,
619,
273,
30551,
1251,
1435,
325,
273,... | |
return ' & '.join([a.replace('&', '&&') for a in authors]) | if authors is not None: return ' & '.join([a.replace('&', '&&') for a in authors]) else: return '' | def authors_to_string(authors): return ' & '.join([a.replace('&', '&&') for a in authors]) | 1556b1497a0763effb4464f31ad37e989e139876 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/1556b1497a0763effb4464f31ad37e989e139876/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14494,
67,
869,
67,
1080,
12,
19368,
4672,
309,
14494,
353,
486,
599,
30,
327,
296,
473,
2418,
5701,
3816,
69,
18,
2079,
2668,
10,
2187,
5183,
10,
6134,
364,
279,
316,
14494,
5717,
469... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14494,
67,
869,
67,
1080,
12,
19368,
4672,
309,
14494,
353,
486,
599,
30,
327,
296,
473,
2418,
5701,
3816,
69,
18,
2079,
2668,
10,
2187,
5183,
10,
6134,
364,
279,
316,
14494,
5717,
469... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.