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
|
|---|---|---|---|---|---|---|
data = self.tagByName(tag)
|
data = self.hdr[tag]
|
def listTagByName(self, tag): """take a tag that should be a list and make sure it is one""" lst = [] data = self.tagByName(tag) if data is None: pass if type(data) is types.ListType: lst.extend(data) else: lst.append(data) return lst
|
72df9f312b4eb58908e08ce23106dc063ee9e2f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9557/72df9f312b4eb58908e08ce23106dc063ee9e2f3/dumpMetadata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
1805,
5911,
12,
2890,
16,
1047,
4672,
3536,
22188,
279,
1047,
716,
1410,
506,
279,
666,
471,
1221,
3071,
518,
353,
1245,
8395,
9441,
273,
5378,
501,
273,
365,
18,
16587,
63,
2692,
65,
309,
501,
353,
599,
30,
1342,
309,
618,
12,
892,
13,
353,
1953,
18,
19366,
30,
9441,
18,
14313,
12,
892,
13,
469,
30,
9441,
18,
6923,
12,
892,
13,
327,
9441,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
18,
16587,
63,
2692,
65,
309,
501,
353,
599,
30,
1342,
309,
618,
12,
892,
13,
353,
1953,
18,
19366,
30,
9441,
18,
14313,
12,
892,
13,
469,
30,
9441,
18,
6923,
12,
892,
13,
327,
9441,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.warn('Server returned error %d: %s', e.code, e.msg)
|
log.warning('Server returned error %d: %s', e.code, e.msg)
|
def request(self, method, url, body=None, headers=None): log.debug('Sending %s request to %r', body and 'POST' or 'GET', url) req = urllib2.Request(url, body, headers or {}) try: return self.opener.open(req) except urllib2.HTTPError, e: if e.code >= 300: log.warn('Server returned error %d: %s', e.code, e.msg) raise return e
|
e4122dbc45005358a1a0af81fd884741e494cf6f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/e4122dbc45005358a1a0af81fd884741e494cf6f/slave.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
707,
16,
880,
16,
1417,
33,
7036,
16,
1607,
33,
7036,
4672,
613,
18,
4148,
2668,
16322,
738,
87,
590,
358,
738,
86,
2187,
1417,
471,
296,
3798,
11,
578,
296,
3264,
2187,
880,
13,
1111,
273,
11527,
22,
18,
691,
12,
718,
16,
1417,
16,
1607,
578,
2618,
13,
775,
30,
327,
365,
18,
25098,
18,
3190,
12,
3658,
13,
1335,
11527,
22,
18,
3693,
668,
16,
425,
30,
309,
425,
18,
710,
1545,
11631,
30,
613,
18,
8551,
2668,
2081,
2106,
555,
738,
72,
30,
738,
87,
2187,
425,
18,
710,
16,
425,
18,
3576,
13,
1002,
327,
425,
2,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
590,
12,
2890,
16,
707,
16,
880,
16,
1417,
33,
7036,
16,
1607,
33,
7036,
4672,
613,
18,
4148,
2668,
16322,
738,
87,
590,
358,
738,
86,
2187,
1417,
471,
296,
3798,
11,
578,
296,
3264,
2187,
880,
13,
1111,
273,
11527,
22,
18,
691,
12,
718,
16,
1417,
16,
1607,
578,
2618,
13,
775,
30,
327,
365,
18,
25098,
18,
3190,
12,
3658,
13,
1335,
11527,
22,
18,
3693,
668,
16,
425,
30,
309,
425,
18,
710,
1545,
11631,
30,
613,
18,
8551,
2668,
2081,
2106,
555,
738,
72,
30,
738,
87,
2187,
425,
18,
710,
16,
425,
18,
3576,
13,
1002,
327,
425,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sprite = property(_get_sprite, _set_sprite, None,
|
sprite = property(_get_sprite, _set_sprite, None,
|
def _set_sprite(self, sprite): self.add_internal(sprite) sprite.add_internal(self) return sprite
|
d9760f3e4782abb02dd98080337626eefdad67ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d9760f3e4782abb02dd98080337626eefdad67ee/sprite.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
1752,
796,
12,
2890,
16,
16839,
4672,
365,
18,
1289,
67,
7236,
12,
1752,
796,
13,
16839,
18,
1289,
67,
7236,
12,
2890,
13,
327,
16839,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
542,
67,
1752,
796,
12,
2890,
16,
16839,
4672,
365,
18,
1289,
67,
7236,
12,
1752,
796,
13,
16839,
18,
1289,
67,
7236,
12,
2890,
13,
327,
16839,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
parser.add_option("-p", "--port", dest="port", help="port, a number (default 0) or a device name (deprecated option)", default=None) parser.add_option("-b", "--baud", dest="baudrate", action="store", type='int', help="set baudrate, default 9600", default=9600) parser.add_option("", "--parity", dest="parity", action="store", help="set parity, one of [N, E, O], default=N", default='N') parser.add_option("", "--rtscts", dest="rtscts", action="store_true", help="enable RTS/CTS flow control (default off)", default=False) parser.add_option("", "--xonxoff", dest="xonxoff", action="store_true", help="enable software flow control (default off)", default=False) parser.add_option("", "--cr", dest="cr", action="store_true", help="do not send CR+LF, send CR only", default=False) parser.add_option("", "--lf", dest="lf", action="store_true", help="do not send CR+LF, send LF only", default=False) parser.add_option("", "--rts", dest="rts_state", action="store", type='int', help="set initial RTS line state (possible values: 0, 1)", default=None) parser.add_option("", "--dtr", dest="dtr_state", action="store", type='int', help="set initial DTR line state (possible values: 0, 1)", default=None) parser.add_option("-q", "--quiet", dest="quiet", action="store_true", help="suppress non error messages", default=False) parser.add_option("-P", "--localport", dest="local_port", action="store", type='int', help="local TCP port", default=7777)
|
parser.add_option("-q", "--quiet", dest = "quiet", action = "store_true", help = "suppress non error messages", default = False ) parser.add_option("--spy", dest = "spy", action = "store_true", help = "peek at the communication and print all data to the console", default = False ) group = optparse.OptionGroup(parser, "Serial Port", "Serial port settings" ) parser.add_option_group(group) group.add_option("-p", "--port", dest = "port", help = "port, a number (default 0) or a device name", default = None ) group.add_option("-b", "--baud", dest = "baudrate", action = "store", type = 'int', help = "set baud rate, default: %default", default = 9600 ) group.add_option("", "--parity", dest = "parity", action = "store", help = "set parity, one of [N, E, O], default=%default", default = 'N' ) group.add_option("--rtscts", dest = "rtscts", action = "store_true", help = "enable RTS/CTS flow control (default off)", default = False ) group.add_option("--xonxoff", dest = "xonxoff", action = "store_true", help = "enable software flow control (default off)", default = False ) group.add_option("--rts", dest = "rts_state", action = "store", type = 'int', help = "set initial RTS line state (possible values: 0, 1)", default = None ) group.add_option("--dtr", dest = "dtr_state", action = "store", type = 'int', help = "set initial DTR line state (possible values: 0, 1)", default = None ) group = optparse.OptionGroup(parser, "Network settings", "Network configuration." ) parser.add_option_group(group) group.add_option("-P", "--localport", dest = "local_port", action = "store", type = 'int', help = "local TCP port", default = 7777 ) group = optparse.OptionGroup(parser, "Newline Settings", "Convert newlines between network and serial port. Conversion is normally disabled and can be enabled by --convert." ) parser.add_option_group(group) group.add_option("-c", "--convert", dest = "convert", action = "store_true", help = "enable newline conversion (default off)", default = False ) group.add_option("--net-nl", dest = "net_newline", action = "store", help = "type of newlines that are expected on the network (default: %default)", default = "LF" ) group.add_option("--ser-nl", dest = "ser_newline", action = "store", help = "type of newlines that are expected on the serial port (default: %default)", default = "CR+LF" )
|
def stop(self): """Stop copying""" if self.alive: self.alive = False self.thread_read.join()
|
eb345d44f6beabbef6486a85e9864003536e9fc3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/eb345d44f6beabbef6486a85e9864003536e9fc3/tcp_serial_redirect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
3536,
4947,
8933,
8395,
309,
365,
18,
11462,
30,
365,
18,
11462,
273,
1083,
365,
18,
5930,
67,
896,
18,
5701,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2132,
12,
2890,
4672,
3536,
4947,
8933,
8395,
309,
365,
18,
11462,
30,
365,
18,
11462,
273,
1083,
365,
18,
5930,
67,
896,
18,
5701,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print s
|
def doc_underline(self, s, expr=re.compile("_([%s0-9\s\.,\?\/]+)_" % letters).search):
|
b96890a7acf64d38af9140fbb7265781e506fd56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b96890a7acf64d38af9140fbb7265781e506fd56/ClassicDocumentClass.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
67,
9341,
1369,
12,
2890,
16,
272,
16,
3065,
33,
266,
18,
11100,
2932,
67,
3816,
9,
87,
20,
17,
29,
64,
87,
5834,
17211,
35,
6700,
7941,
9548,
738,
13768,
2934,
3072,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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2932,
67,
3816,
9,
87,
20,
17,
29,
64,
87,
5834,
17211,
35,
6700,
7941,
9548,
738,
13768,
2934,
3072,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
if localhost_(host):
|
if not localhost_(host):
|
def start_backend(backend, host=None, port=None, adaptor=ControllerAdaptor_Backend_JSON, byef=None): conf = config.get_conf('beah-backend') host = host or conf.get('DEFAULT', 'INTERFACE') port = port or conf.get('DEFAULT', 'PORT') if os.name == 'posix': socket = conf.get('DEFAULT', 'SOCKET') # 0. check SOCKET_OPT (socket given on command line) if config.parse_bool(conf.get('DEFAULT', 'SOCKET_OPT')) and socket != '': port = '' # 1. check INTERFACE - if not empty nor localhost: must use TCP if localhost_(host): socket = '' # 2. check PORT_OPT (port given on command line) if config.parse_bool(conf.get('DEFAULT', 'PORT_OPT')) and port != '': socket = '' else: socket = '' logging.getLogger('backend').setLevel(str2log_level(conf.get('DEFAULT', 'LOG'))) backend_factory = BackendFactory(backend, adaptor, byef) if socket != '': return reactor.connectUNIX(socket, backend_factory) elif port != '': return reactor.connectTCP(host, int(port), backend_factory) else: raise exceptions.Exception('Either socket or port must be configured.')
|
ee7ff8f9c4e01355955f5d5ecf93c3c85818326c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13148/ee7ff8f9c4e01355955f5d5ecf93c3c85818326c/twbackend.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
9993,
12,
9993,
16,
1479,
33,
7036,
16,
1756,
33,
7036,
16,
9087,
33,
2933,
29888,
67,
7172,
67,
2986,
16,
635,
10241,
33,
7036,
4672,
2195,
273,
642,
18,
588,
67,
3923,
2668,
2196,
9795,
17,
9993,
6134,
1479,
273,
1479,
578,
2195,
18,
588,
2668,
5280,
2187,
296,
18865,
6134,
1756,
273,
1756,
578,
2195,
18,
588,
2668,
5280,
2187,
296,
6354,
6134,
309,
1140,
18,
529,
422,
296,
24463,
4278,
2987,
273,
2195,
18,
588,
2668,
5280,
2187,
296,
25699,
6134,
468,
374,
18,
866,
7460,
14984,
67,
15620,
261,
7814,
864,
603,
1296,
980,
13,
309,
642,
18,
2670,
67,
6430,
12,
3923,
18,
588,
2668,
5280,
2187,
296,
25699,
67,
15620,
26112,
471,
2987,
480,
875,
30,
1756,
273,
875,
468,
404,
18,
866,
11391,
11300,
300,
309,
486,
1008,
12517,
17365,
30,
1297,
999,
9911,
309,
486,
17365,
67,
12,
2564,
4672,
2987,
273,
875,
468,
576,
18,
866,
20987,
67,
15620,
261,
655,
864,
603,
1296,
980,
13,
309,
642,
18,
2670,
67,
6430,
12,
3923,
18,
588,
2668,
5280,
2187,
296,
6354,
67,
15620,
26112,
471,
1756,
480,
875,
30,
2987,
273,
875,
469,
30,
2987,
273,
875,
2907,
18,
588,
3328,
2668,
9993,
16063,
542,
2355,
12,
701,
22,
1330,
67,
2815,
12,
3923,
18,
588,
2668,
5280,
2187,
296,
4842,
11,
20349,
4221,
67,
6848,
273,
11736,
1733,
12,
9993,
16,
9087,
16,
635,
10241,
13,
309,
2987,
480,
875,
30,
327,
19178,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9993,
12,
9993,
16,
1479,
33,
7036,
16,
1756,
33,
7036,
16,
9087,
33,
2933,
29888,
67,
7172,
67,
2986,
16,
635,
10241,
33,
7036,
4672,
2195,
273,
642,
18,
588,
67,
3923,
2668,
2196,
9795,
17,
9993,
6134,
1479,
273,
1479,
578,
2195,
18,
588,
2668,
5280,
2187,
296,
18865,
6134,
1756,
273,
1756,
578,
2195,
18,
588,
2668,
5280,
2187,
296,
6354,
6134,
309,
1140,
18,
529,
422,
296,
24463,
4278,
2987,
273,
2195,
18,
588,
2668,
5280,
2187,
296,
25699,
6134,
468,
374,
18,
866,
7460,
14984,
67,
15620,
261,
7814,
864,
603,
1296,
980,
13,
309,
642,
18,
2670,
67,
6430,
12,
3923,
18,
588,
2668,
5280,
2187,
296,
25699,
67,
15620,
2
] |
def reduce(self, f): """ Reduce an element modulo a standard basis for this ideal. This returns 0 if and only if the element is in this ideal. EXAMPLES: sage: R.<x,y> = PolynomialRing(QQ, 2) sage: I = (x^3 + y, y)*R sage: I.reduce(y) 0 sage: I.reduce(x^3) 0 sage: I.reduce(x - y) x sage: I = (y^2 - (x^3 + x))*R sage: I.reduce(x^3) y^2 - x sage: I.reduce(x^6) y^4 - 2*x*y^2 + x^2 sage: (y^2 - x)^2 y^4 - 2*x*y^2 + x^2 NOTE: Requires computation of a Groebner basis, which is a very expensive operation. """ if self.base_ring() == sage.rings.integer_ring.ZZ: return self._reduce_using_macaulay2(f) try: singular = self._singular_groebner_basis().parent() except (AttributeError, RuntimeError): singular = self._singular_groebner_basis().parent() f = self.ring()(f) g = singular(f) try: self.ring()._singular_(singular).set_ring() h = g.reduce(self._singular_groebner_basis()) except TypeError: return f try: return self.ring()(h) except (TypeError, RuntimeError): return self.ring()(h[1])
|
def reduce(self, f): """ Reduce an element modulo a standard basis for this ideal. This returns 0 if and only if the element is in this ideal. EXAMPLES: sage: R.<x,y> = PolynomialRing(QQ, 2) sage: I = (x^3 + y, y)*R sage: I.reduce(y) 0 sage: I.reduce(x^3) 0 sage: I.reduce(x - y) x
|
fa1155290f53e6aac94382b88d596576b7a8b37f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/fa1155290f53e6aac94382b88d596576b7a8b37f/multi_polynomial_ideal.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5459,
12,
2890,
16,
284,
4672,
3536,
24614,
392,
930,
26109,
279,
4529,
10853,
364,
333,
23349,
18,
1220,
1135,
374,
309,
471,
1338,
309,
326,
930,
353,
316,
333,
23349,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
534,
22782,
92,
16,
93,
34,
273,
6730,
13602,
10369,
12,
53,
53,
16,
576,
13,
272,
410,
30,
467,
273,
261,
92,
66,
23,
397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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5459,
12,
2890,
16,
284,
4672,
3536,
24614,
392,
930,
26109,
279,
4529,
10853,
364,
333,
23349,
18,
1220,
1135,
374,
309,
471,
1338,
309,
326,
930,
353,
316,
333,
23349,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
534,
22782,
92,
16,
93,
34,
273,
6730,
13602,
10369,
12,
53,
53,
16,
576,
13,
272,
410,
30,
467,
273,
261,
92,
66,
23,
397,
677,
16,
677,
17653,
54,
272,
410,
30,
467,
18,
12498,
12,
93,
13,
374,
272,
410,
30,
467,
18,
12498,
12,
92,
66,
23,
13,
374,
272,
410,
30,
467,
18,
12498,
12,
92,
300,
677,
13,
619,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
['editable', 'dropdown', 'fancy', 'options'], cnf, kw)
|
['editable', 'dropdown', 'fancy', 'options'], cnf, kw)
|
def __init__ (self, master=None, cnf={}, **kw): TixWidget.__init__(self, master, 'tixComboBox', ['editable', 'dropdown', 'fancy', 'options'], cnf, kw) self.subwidget_list['label'] = _dummyLabel(self, 'label') self.subwidget_list['entry'] = _dummyEntry(self, 'entry') self.subwidget_list['arrow'] = _dummyButton(self, 'arrow') self.subwidget_list['slistbox'] = _dummyScrolledListBox(self, 'slistbox') try: self.subwidget_list['tick'] = _dummyButton(self, 'tick') self.subwidget_list['cross'] = _dummyButton(self, 'cross') except TypeError: # unavailable when -fancy not specified pass
|
9805b7904bac823d0eef38bb7e401191c68a5598 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9805b7904bac823d0eef38bb7e401191c68a5598/Tix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
4171,
33,
7036,
16,
23118,
28793,
2826,
9987,
4672,
399,
697,
4609,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
296,
88,
697,
22199,
2187,
10228,
19653,
2187,
296,
18787,
2187,
296,
74,
12514,
2187,
296,
2116,
17337,
23118,
16,
5323,
13,
365,
18,
1717,
6587,
67,
1098,
3292,
1925,
3546,
273,
389,
21050,
2224,
12,
2890,
16,
296,
1925,
6134,
365,
18,
1717,
6587,
67,
1098,
3292,
4099,
3546,
273,
389,
21050,
1622,
12,
2890,
16,
296,
4099,
6134,
365,
18,
1717,
6587,
67,
1098,
3292,
7815,
3546,
273,
389,
21050,
3616,
12,
2890,
16,
296,
7815,
6134,
365,
18,
1717,
6587,
67,
1098,
3292,
87,
1098,
2147,
3546,
273,
389,
21050,
1541,
25054,
682,
3514,
12,
2890,
16,
296,
87,
1098,
2147,
6134,
775,
30,
365,
18,
1717,
6587,
67,
1098,
3292,
6470,
3546,
273,
389,
21050,
3616,
12,
2890,
16,
296,
6470,
6134,
365,
18,
1717,
6587,
67,
1098,
3292,
14653,
3546,
273,
389,
21050,
3616,
12,
2890,
16,
296,
14653,
6134,
1335,
3580,
30,
468,
15781,
1347,
300,
74,
12514,
486,
1269,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
261,
2890,
16,
4171,
33,
7036,
16,
23118,
28793,
2826,
9987,
4672,
399,
697,
4609,
16186,
2738,
972,
12,
2890,
16,
4171,
16,
296,
88,
697,
22199,
2187,
10228,
19653,
2187,
296,
18787,
2187,
296,
74,
12514,
2187,
296,
2116,
17337,
23118,
16,
5323,
13,
365,
18,
1717,
6587,
67,
1098,
3292,
1925,
3546,
273,
389,
21050,
2224,
12,
2890,
16,
296,
1925,
6134,
365,
18,
1717,
6587,
67,
1098,
3292,
4099,
3546,
273,
389,
21050,
1622,
12,
2890,
16,
296,
4099,
6134,
365,
18,
1717,
6587,
67,
1098,
3292,
7815,
3546,
273,
389,
21050,
3616,
12,
2890,
16,
296,
7815,
6134,
365,
18,
1717,
6587,
67,
1098,
3292,
87,
1098,
2147,
3546,
273,
389,
2
] |
return self._bind(('bind', 'all'), sequence, func, add)
|
return self._bind(('bind', 'all'), sequence, func, add, 0)
|
def bind_all(self, sequence=None, func=None, add=None): return self._bind(('bind', 'all'), sequence, func, add)
|
48044b41c45fe4093db593d53822db0a1eb635ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/48044b41c45fe4093db593d53822db0a1eb635ae/Tkinter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
67,
454,
12,
2890,
16,
3102,
33,
7036,
16,
1326,
33,
7036,
16,
527,
33,
7036,
4672,
327,
365,
6315,
4376,
12,
2668,
4376,
2187,
296,
454,
19899,
3102,
16,
1326,
16,
527,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
33,
7036,
4672,
327,
365,
6315,
4376,
12,
2668,
4376,
2187,
296,
454,
19899,
3102,
16,
1326,
16,
527,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
index = model.get_path(selected)[0] if index > 0: selection.select_path(index - 1)
|
if selected is None: selection.select_path(model[-1].path) else: index = model.get_path(selected)[0] if index > 0: selection.select_path(index - 1)
|
def __key_press_event_cb(self, entry, event): keyname = gtk.gdk.keyval_name(event.keyval)
|
054e27672d643e40e7c64e89e16e0cf2dbe6b8ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6905/054e27672d643e40e7c64e89e16e0cf2dbe6b8ec/webtoolbar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
856,
67,
1028,
67,
2575,
67,
7358,
12,
2890,
16,
1241,
16,
871,
4672,
27567,
273,
22718,
18,
75,
2883,
18,
856,
1125,
67,
529,
12,
2575,
18,
856,
1125,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
856,
67,
1028,
67,
2575,
67,
7358,
12,
2890,
16,
1241,
16,
871,
4672,
27567,
273,
22718,
18,
75,
2883,
18,
856,
1125,
67,
529,
12,
2575,
18,
856,
1125,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
globals_ = {"__name__" : "__main__"}
|
globals_ = {"__name__" : "__main__", "__file__" : filename}
|
def _runscript(self, filename): # Start with fresh empty copy of globals and locals and tell the script # that it's being run as __main__ to avoid scripts being able to access # the pdb.py namespace. globals_ = {"__name__" : "__main__"} locals_ = globals_
|
50bbcc27e3e0e1bacb39eb9f553bcd68f9ef077a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/50bbcc27e3e0e1bacb39eb9f553bcd68f9ef077a/pdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
4263,
12,
2890,
16,
1544,
4672,
468,
3603,
598,
12186,
1008,
1610,
434,
10941,
471,
8985,
471,
9276,
326,
2728,
468,
716,
518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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2681,
4263,
12,
2890,
16,
1544,
4672,
468,
3603,
598,
12186,
1008,
1610,
434,
10941,
471,
8985,
471,
9276,
326,
2728,
468,
716,
518,
1807,
3832,
1086,
487,
1001,
5254,
972,
358,
4543,
8873,
3832,
7752,
358,
2006,
468,
326,
10892,
18,
2074,
1981,
18,
10941,
67,
273,
12528,
972,
529,
14437,
294,
10425,
5254,
972,
3113,
10425,
768,
14437,
294,
1544,
97,
8985,
67,
273,
10941,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
except 'Cancelled':
|
except Editor.CancelClose:
|
def checkUnsavedChanges(self): model = self.model ctx = model.editor.brm_context
|
f38ae34b27142df1ab47d55449c9b0bc0711c659 /local1/tlutelli/issta_data/temp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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
866,
984,
14077,
7173,
12,
2890,
4672,
938,
273,
365,
18,
2284,
1103,
273,
938,
18,
9177,
18,
2848,
81,
67,
2472,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'editable': self.is_admin() or ( message.get_property('owner') == username),
|
'editable': ac.is_allowed_to_edit_post(user, message),
|
def get_message_namespace(self): context = get_context() user = context.user username = user and user.name namespace = []
|
3b838d86710a06bfa99bd20af2526ac017d5816d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/3b838d86710a06bfa99bd20af2526ac017d5816d/forum.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2150,
67,
4937,
12,
2890,
4672,
819,
273,
336,
67,
2472,
1435,
729,
273,
819,
18,
1355,
2718,
273,
729,
471,
729,
18,
529,
1981,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2150,
67,
4937,
12,
2890,
4672,
819,
273,
336,
67,
2472,
1435,
729,
273,
819,
18,
1355,
2718,
273,
729,
471,
729,
18,
529,
1981,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bytesused = bytes - self.bytes
|
bytesused = usedbytes - self.bytes
|
def update(self, runningmaxrate, runningmaxi2rate, usedbytes, usedi2bytes, data): """ Update byte counts and check if byte limits have been exceeded. """ # Query Node Manager for max rate overrides self.updateSliceAttributes(data) # Prepare message parameters from the template message = "" params = {'slice': self.name, 'hostname': socket.gethostname(), 'since': time.asctime(time.gmtime(self.time)) + " GMT", 'until': time.asctime(time.gmtime(self.time + period)) + " GMT", 'date': time.asctime(time.gmtime()) + " GMT", 'period': format_period(period)}
|
31d539b2c9da0ba5674fe97271ea96648dbf4254 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6995/31d539b2c9da0ba5674fe97271ea96648dbf4254/bwmon.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
3549,
1896,
5141,
16,
3549,
1896,
77,
22,
5141,
16,
1399,
3890,
16,
1399,
77,
22,
3890,
16,
501,
4672,
3536,
2315,
1160,
6880,
471,
866,
309,
1160,
8181,
1240,
2118,
12428,
18,
3536,
225,
468,
2770,
2029,
8558,
364,
943,
4993,
9515,
365,
18,
2725,
5959,
2498,
12,
892,
13,
225,
468,
7730,
883,
1472,
628,
326,
1542,
883,
273,
1408,
859,
273,
13666,
6665,
4278,
365,
18,
529,
16,
296,
10358,
4278,
2987,
18,
75,
546,
669,
529,
9334,
296,
9256,
4278,
813,
18,
345,
21261,
12,
957,
18,
75,
10838,
12,
2890,
18,
957,
3719,
397,
315,
21706,
3113,
296,
12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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1089,
12,
2890,
16,
3549,
1896,
5141,
16,
3549,
1896,
77,
22,
5141,
16,
1399,
3890,
16,
1399,
77,
22,
3890,
16,
501,
4672,
3536,
2315,
1160,
6880,
471,
866,
309,
1160,
8181,
1240,
2118,
12428,
18,
3536,
225,
468,
2770,
2029,
8558,
364,
943,
4993,
9515,
365,
18,
2725,
5959,
2498,
12,
892,
13,
225,
468,
7730,
883,
1472,
628,
326,
1542,
883,
273,
1408,
859,
273,
13666,
6665,
4278,
365,
18,
529,
16,
296,
10358,
4278,
2987,
18,
75,
546,
669,
529,
9334,
296,
9256,
4278,
813,
18,
345,
21261,
12,
957,
18,
75,
10838,
12,
2890,
18,
957,
3719,
397,
315,
21706,
3113,
296,
12198,
4278,
813,
18,
345,
21261,
12,
957,
18,
75,
10838,
2
] |
bv = np.exp(bv)
|
bv = np.exp(bv/tau)
|
def calc_prob(self, tree, parent=None): '''walking a tree bottom-up based on dictionary ''' endog = self.endog datadict = self.datadict paramsind = self.paramsind branchsum = self.branchsum
|
5d98bc468e3710982597f592fba7bbd160e84d5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/5d98bc468e3710982597f592fba7bbd160e84d5e/treewalkerclass.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
7748,
12,
2890,
16,
2151,
16,
982,
33,
7036,
4672,
9163,
11348,
310,
279,
2151,
5469,
17,
416,
2511,
603,
3880,
9163,
679,
717,
273,
365,
18,
409,
717,
22034,
933,
273,
365,
18,
3404,
361,
933,
859,
728,
273,
365,
18,
2010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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7029,
67,
7748,
12,
2890,
16,
2151,
16,
982,
33,
7036,
4672,
9163,
11348,
310,
279,
2151,
5469,
17,
416,
2511,
603,
3880,
9163,
679,
717,
273,
365,
18,
409,
717,
22034,
933,
273,
365,
18,
3404,
361,
933,
859,
728,
273,
365,
18,
2010,
728,
3803,
1364,
273,
365,
18,
7500,
1364,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
s = dumps(body)
|
s = Pickle.dumps(body)
|
def respond(self, body): _log("responding with: %s" % body) #_log("objects: %s" % self._objects) s = dumps(body) _log(`s`) str_ = _write_lp_hunk(self._out, s)
|
06157e647a2b7a7c67b08f34b60343d00b355e39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10078/06157e647a2b7a7c67b08f34b60343d00b355e39/saranwrap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6846,
12,
2890,
16,
1417,
4672,
389,
1330,
2932,
17863,
310,
598,
30,
738,
87,
6,
738,
1417,
13,
468,
67,
1330,
2932,
6911,
30,
738,
87,
6,
738,
365,
6315,
6911,
13,
272,
273,
23038,
298,
18,
13302,
1121,
12,
3432,
13,
389,
1330,
12,
68,
87,
24065,
609,
67,
273,
389,
2626,
67,
9953,
67,
76,
1683,
12,
2890,
6315,
659,
16,
272,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6846,
12,
2890,
16,
1417,
4672,
389,
1330,
2932,
17863,
310,
598,
30,
738,
87,
6,
738,
1417,
13,
468,
67,
1330,
2932,
6911,
30,
738,
87,
6,
738,
365,
6315,
6911,
13,
272,
273,
23038,
298,
18,
13302,
1121,
12,
3432,
13,
389,
1330,
12,
68,
87,
24065,
609,
67,
273,
389,
2626,
67,
9953,
67,
76,
1683,
12,
2890,
6315,
659,
16,
272,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return urlparse.urlsplit(urllib.unquote(uri))[2]
|
uri = urllib.unquote(uri) if sys.platform == "win32": path = urlparse.urlsplit(uri)[2] while path.startswith("/"): path = path[1:] return path.replace("/", "\\") return urlparse.urlsplit(uri)[2]
|
def uri_to_path(uri): """Convert URI to local filepath.""" return urlparse.urlsplit(urllib.unquote(uri))[2]
|
813a57068b972428378dd306b7e1e6002fbedabe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12852/813a57068b972428378dd306b7e1e6002fbedabe/util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2003,
67,
869,
67,
803,
12,
1650,
4672,
3536,
2723,
3699,
358,
1191,
3608,
12123,
225,
2003,
273,
11527,
18,
318,
6889,
12,
1650,
13,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
589,
273,
15185,
18,
718,
4939,
12,
1650,
25146,
22,
65,
1323,
589,
18,
17514,
1918,
2932,
4898,
4672,
589,
273,
589,
63,
21,
26894,
327,
589,
18,
2079,
2932,
19,
3113,
14520,
13,
327,
15185,
18,
718,
4939,
12,
1650,
25146,
22,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2003,
67,
869,
67,
803,
12,
1650,
4672,
3536,
2723,
3699,
358,
1191,
3608,
12123,
225,
2003,
273,
11527,
18,
318,
6889,
12,
1650,
13,
309,
2589,
18,
9898,
422,
315,
8082,
1578,
6877,
589,
273,
15185,
18,
718,
4939,
12,
1650,
25146,
22,
65,
1323,
589,
18,
17514,
1918,
2932,
4898,
4672,
589,
273,
589,
63,
21,
26894,
327,
589,
18,
2079,
2932,
19,
3113,
14520,
13,
327,
15185,
18,
718,
4939,
12,
1650,
25146,
22,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
content_type = '<meta http-equiv="Content-Type" content="text/html; ' \ 'charset=%s" />\n' generator = '<meta name="generator" content="Docutils %s: ' \ 'http://docutils.sourceforge.net/" />\n'
|
content_type = ('<meta http-equiv="Content-Type" content="text/html; ' 'charset=%s" />\n') generator = ('<meta name="generator" content="Docutils %s: ' 'http://docutils.sourceforge.net/" />\n')
|
def translate(self): visitor = self.translator_class(self.document) self.document.walkabout(visitor) self.output = visitor.astext() self.head_prefix = visitor.head_prefix self.stylesheet = visitor.stylesheet self.head = visitor.head self.body_prefix = visitor.body_prefix self.body_pre_docinfo = visitor.body_pre_docinfo self.docinfo = visitor.docinfo self.body = visitor.body self.body_suffix = visitor.body_suffix
|
bebc1f6e9186fbf4927031f5a062b9d823df3d58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/bebc1f6e9186fbf4927031f5a062b9d823df3d58/html4css1.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
2890,
4672,
8000,
273,
365,
18,
17879,
67,
1106,
12,
2890,
18,
5457,
13,
365,
18,
5457,
18,
11348,
21071,
12,
3516,
1811,
13,
365,
18,
2844,
273,
8000,
18,
689,
408,
1435,
365,
18,
1978,
67,
3239,
273,
8000,
18,
1978,
67,
3239,
365,
18,
19403,
273,
8000,
18,
19403,
365,
18,
1978,
273,
8000,
18,
1978,
365,
18,
3432,
67,
3239,
273,
8000,
18,
3432,
67,
3239,
365,
18,
3432,
67,
1484,
67,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4204,
12,
2890,
4672,
8000,
273,
365,
18,
17879,
67,
1106,
12,
2890,
18,
5457,
13,
365,
18,
5457,
18,
11348,
21071,
12,
3516,
1811,
13,
365,
18,
2844,
273,
8000,
18,
689,
408,
1435,
365,
18,
1978,
67,
3239,
273,
8000,
18,
1978,
67,
3239,
365,
18,
19403,
273,
8000,
18,
19403,
365,
18,
1978,
273,
8000,
18,
1978,
365,
18,
3432,
67,
3239,
273,
8000,
18,
3432,
67,
3239,
365,
18,
3432,
67,
1484,
67,
2434,
1376,
273,
8000,
18,
3432,
67,
1484,
67,
2434,
1376,
365,
18,
2434,
1376,
273,
8000,
18,
2434,
1376,
365,
18,
3432,
273,
8000,
18,
3432,
365,
18,
3432,
67,
8477,
273,
8000,
18,
3432,
67,
8477,
2,
-100,
-100,
-100
] |
self.length = max(self.all_streams[i].length, self.length)
|
def __init__(self, file): core.AVContainer.__init__(self) self.samplerate = 1 self.all_streams = [] # used to add meta data to streams self.all_header = []
|
7972f89a7eb825c3cdf75800bafaab2e58fdbe07 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11721/7972f89a7eb825c3cdf75800bafaab2e58fdbe07/ogm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
585,
4672,
2922,
18,
5856,
2170,
16186,
2738,
972,
12,
2890,
13,
365,
18,
87,
10463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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
585,
4672,
2922,
18,
5856,
2170,
16186,
2738,
972,
12,
2890,
13,
365,
18,
87,
10463,
340,
225,
273,
404,
365,
18,
454,
67,
16320,
273,
5378,
6647,
468,
1399,
358,
527,
2191,
501,
358,
8205,
365,
18,
454,
67,
3374,
225,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
assert dt2.col1.hour == _now.hour assert dt2.col1.minute == _now.minute assert dt2.col1.second == int(_now.second)
|
if getConnection().dbName == "sqlite": assert dt2.col2.hour == _now.hour assert dt2.col2.minute == _now.minute assert dt2.col2.second == int(_now.second) else: assert dt2.col2.hour == 0 assert dt2.col2.minute == 0 assert dt2.col2.second == 0
|
def test_mxDateTime(): setupClass(DateTime2) _now = now() dt2 = DateTime2(col1=_now, col2=_now, col3=Time(_now.hour, _now.minute, int(_now.second)))
|
ecffe5efe59d4903cb6a1b35d94fe76fe0c77403 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/ecffe5efe59d4903cb6a1b35d94fe76fe0c77403/test_datetime.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11023,
5096,
13332,
3875,
797,
12,
5096,
22,
13,
389,
3338,
273,
2037,
1435,
3681,
22,
273,
3716,
22,
12,
1293,
21,
33,
67,
3338,
16,
645,
22,
33,
67,
3338,
16,
645,
23,
33,
950,
24899,
3338,
18,
12091,
16,
389,
3338,
18,
17637,
16,
509,
24899,
3338,
18,
8538,
20349,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11023,
5096,
13332,
3875,
797,
12,
5096,
22,
13,
389,
3338,
273,
2037,
1435,
3681,
22,
273,
3716,
22,
12,
1293,
21,
33,
67,
3338,
16,
645,
22,
33,
67,
3338,
16,
645,
23,
33,
950,
24899,
3338,
18,
12091,
16,
389,
3338,
18,
17637,
16,
509,
24899,
3338,
18,
8538,
20349,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def run_script(self, event=None):
|
def debug_module_event(self, event): import Debugger debugger = Debugger.Debugger(self) self.run_module_event(event, debugger) def close_debugger(self):
|
def run_script(self, event=None): pass
|
fa33935d8c7da182d7f2ddc8a19b8d44abfb9ef5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/fa33935d8c7da182d7f2ddc8a19b8d44abfb9ef5/ScriptBinding.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
67,
2978,
67,
2575,
12,
2890,
16,
871,
4672,
1930,
28645,
19977,
273,
28645,
18,
24113,
12,
2890,
13,
365,
18,
2681,
67,
2978,
67,
2575,
12,
2575,
16,
19977,
13,
225,
1652,
1746,
67,
4148,
693,
12,
2890,
4672,
282,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
1198,
67,
2978,
67,
2575,
12,
2890,
16,
871,
4672,
1930,
28645,
19977,
273,
28645,
18,
24113,
12,
2890,
13,
365,
18,
2681,
67,
2978,
67,
2575,
12,
2575,
16,
19977,
13,
225,
1652,
1746,
67,
4148,
693,
12,
2890,
4672,
282,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print(to_read, repr(current))
|
def read(self, n=None): """Read n bytes.
|
adda9f8d3eb78914205afd83d8611b5ce0db2212 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/adda9f8d3eb78914205afd83d8611b5ce0db2212/io.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
290,
33,
7036,
4672,
3536,
1994,
290,
1731,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
290,
33,
7036,
4672,
3536,
1994,
290,
1731,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
def scan_all(self, msg, *args):
|
def scan_all(self, msg=None, *args):
|
def scan_all(self, msg, *args): if self.index_url not in self.fetched_urls: if msg: self.warn(msg,*args) self.warn( "Scanning index of all packages (this may take a while)" ) self.scan_url(self.index_url)
|
3b744fcb3f0c9e96ff06a2bfaffb93b90b7230df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/3b744fcb3f0c9e96ff06a2bfaffb93b90b7230df/package_index.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
67,
454,
12,
2890,
16,
1234,
33,
7036,
16,
380,
1968,
4672,
309,
365,
18,
1615,
67,
718,
486,
316,
365,
18,
5754,
329,
67,
10518,
30,
309,
1234,
30,
365,
18,
8935,
12,
3576,
16,
14,
1968,
13,
365,
18,
8935,
12,
315,
1541,
10903,
770,
434,
777,
5907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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4135,
67,
454,
12,
2890,
16,
1234,
33,
7036,
16,
380,
1968,
4672,
309,
365,
18,
1615,
67,
718,
486,
316,
365,
18,
5754,
329,
67,
10518,
30,
309,
1234,
30,
365,
18,
8935,
12,
3576,
16,
14,
1968,
13,
365,
18,
8935,
12,
315,
1541,
10903,
770,
434,
777,
5907,
261,
2211,
2026,
4862,
279,
1323,
2225,
262,
365,
18,
9871,
67,
718,
12,
2890,
18,
1615,
67,
718,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (sld.lower() in ( "co", "ac", "com", "edu", "org", "net", "gov", "mil", "int") and len(tld) == 2):
|
if sld.lower() in ("co", "ac", "com", "edu", "org", "net", "gov", "mil", "int", "aero", "biz", "cat", "coop", "info", "jobs", "mobi", "museum", "name", "pro", "travel", "eu") and len(tld) == 2:
|
def set_ok_domain(self, cookie, request): if self.is_blocked(cookie.domain): debug(" domain %s is in user block-list", cookie.domain) return False if self.is_not_allowed(cookie.domain): debug(" domain %s is not in user allow-list", cookie.domain) return False if cookie.domain_specified: req_host, erhn = eff_request_host(request) domain = cookie.domain if self.strict_domain and (domain.count(".") >= 2): i = domain.rfind(".") j = domain.rfind(".", 0, i) if j == 0: # domain like .foo.bar tld = domain[i+1:] sld = domain[j+1:i] if (sld.lower() in ( "co", "ac", "com", "edu", "org", "net", "gov", "mil", "int") and len(tld) == 2): # domain like .co.uk debug(" country-code second level domain %s", domain) return False if domain.startswith("."): undotted_domain = domain[1:] else: undotted_domain = domain embedded_dots = (undotted_domain.find(".") >= 0) if not embedded_dots and domain != ".local": debug(" non-local domain %s contains no embedded dot", domain) return False if cookie.version == 0: if (not erhn.endswith(domain) and (not erhn.startswith(".") and not ("."+erhn).endswith(domain))): debug(" effective request-host %s (even with added " "initial dot) does not end end with %s", erhn, domain) return False if (cookie.version > 0 or (self.strict_ns_domain & self.DomainRFC2965Match)): if not domain_match(erhn, domain): debug(" effective request-host %s does not domain-match " "%s", erhn, domain) return False if (cookie.version > 0 or (self.strict_ns_domain & self.DomainStrictNoDots)): host_prefix = req_host[:-len(domain)] if (host_prefix.find(".") >= 0 and not IPV4_RE.search(req_host)): debug(" host prefix %s for domain %s contains a dot", host_prefix, domain) return False return True
|
1e879308bfb03d591e93b12c868d61a3d266619b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1e879308bfb03d591e93b12c868d61a3d266619b/cookielib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
601,
67,
4308,
12,
2890,
16,
3878,
16,
590,
4672,
309,
365,
18,
291,
67,
23156,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
316,
729,
1203,
17,
1098,
3113,
3878,
18,
4308,
13,
327,
1083,
309,
365,
18,
291,
67,
902,
67,
8151,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
486,
316,
729,
1699,
17,
1098,
3113,
3878,
18,
4308,
13,
327,
1083,
309,
3878,
18,
4308,
67,
13827,
30,
1111,
67,
2564,
16,
6445,
76,
82,
273,
16419,
67,
2293,
67,
2564,
12,
2293,
13,
2461,
273,
3878,
18,
4308,
309,
365,
18,
13948,
67,
4308,
471,
261,
4308,
18,
1883,
2932,
1199,
13,
1545,
576,
4672,
277,
273,
2461,
18,
86,
4720,
2932,
1199,
13,
525,
273,
2461,
18,
86,
4720,
2932,
1199,
16,
374,
16,
277,
13,
309,
525,
422,
374,
30,
225,
468,
2461,
3007,
263,
11351,
18,
3215,
23373,
273,
2461,
63,
77,
15,
21,
26894,
272,
1236,
273,
2461,
63,
78,
15,
21,
30,
77,
65,
309,
272,
1236,
18,
8167,
1435,
316,
7566,
2894,
3113,
315,
1077,
3113,
315,
832,
3113,
315,
28049,
3113,
315,
3341,
3113,
315,
2758,
3113,
315,
75,
1527,
3113,
315,
81,
330,
3113,
315,
474,
3113,
315,
69,
2439,
3113,
315,
70,
452,
3113,
315,
2574,
3113,
315,
2894,
556,
3113,
315,
1376,
3113,
315,
10088,
3113,
315,
81,
30875,
3113,
315,
81,
1202,
379,
3113,
315,
529,
3113,
315,
685,
3113,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
601,
67,
4308,
12,
2890,
16,
3878,
16,
590,
4672,
309,
365,
18,
291,
67,
23156,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
316,
729,
1203,
17,
1098,
3113,
3878,
18,
4308,
13,
327,
1083,
309,
365,
18,
291,
67,
902,
67,
8151,
12,
8417,
18,
4308,
4672,
1198,
2932,
282,
2461,
738,
87,
353,
486,
316,
729,
1699,
17,
1098,
3113,
3878,
18,
4308,
13,
327,
1083,
309,
3878,
18,
4308,
67,
13827,
30,
1111,
67,
2564,
16,
6445,
76,
82,
273,
16419,
67,
2293,
67,
2564,
12,
2293,
13,
2461,
273,
3878,
18,
4308,
309,
365,
18,
13948,
67,
4308,
471,
261,
4308,
18,
1883,
2932,
1199,
13,
1545,
2
] |
f=file.readline()
|
f=(file.readline()).strip()
|
def __init__(self,config,roster): self.descr="pop/imap Mail Notifier" self.author="Sebastian Moors" self.version="0.1" self.commands={} self.commands["unregister"]="turn off notification"
|
4fa1341c16afd46f07d442cbac339585a5fb4020 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2269/4fa1341c16afd46f07d442cbac339585a5fb4020/mail_notify.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1425,
16,
303,
8190,
4672,
365,
18,
28313,
1546,
5120,
19,
12161,
11542,
2288,
1251,
6,
365,
18,
4161,
1546,
1761,
70,
689,
2779,
14987,
1383,
6,
365,
18,
1589,
1546,
20,
18,
21,
6,
365,
18,
7847,
12938,
365,
18,
7847,
9614,
318,
4861,
11929,
1546,
20922,
3397,
3851,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
raise ValueError, 'new property "%s": %s not a %s'%(
|
raise IndexError, 'new property "%s": %s not a %s'%(
|
def create(self, **propvalues): """Create a new node of this class and return its id.
|
f585d0fd8b97406c94bbd0235dd528198f965caf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f585d0fd8b97406c94bbd0235dd528198f965caf/hyperdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
2826,
5986,
2372,
4672,
3536,
1684,
279,
394,
756,
434,
333,
667,
471,
327,
2097,
612,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
752,
12,
2890,
16,
2826,
5986,
2372,
4672,
3536,
1684,
279,
394,
756,
434,
333,
667,
471,
327,
2097,
612,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
elif type(val) == type(True) and types.IntType in p['allowedTypes']:
|
elif type(val) == bool and int in p['allowedTypes']:
|
def _getParamValue(p, val, options): ''' try to get a value from value, raise exception if error happens. ''' if p['gui_type'] == 'separator': raise exceptions.ValueError('Cannot get a value for separator') # if we are giving a unicode string, convert! if type(val) == types.UnicodeType: val = str(val) # remove quotes from string? if p.has_key('allowedTypes') and type('') in p['allowedTypes'] and type('') == type(val): for quote in ['"', "'", '"""', "'''"]: if val.startswith(quote) and val.endswith(quote): val = val[len(quote):-len(quote)] break if (not p.has_key('allowedTypes')) or type(val) in p['allowedTypes']: if not _validate(val, p, options): raise exceptions.ValueError("Value '%s' is not allowed for parameter %s" % \ (str(val), p['name'])) return val # handle another 'auto-boolean' case elif p['gui_type'] == 'boolean': if val in ['1', 'true', 'True']: return True elif val in ['0', 'false', 'False']: return False else: raise exceptions.ValueError('Expect 0/1, true/false for boolean values for parameter %s ' % p['name']) # other wise, need conversion if type(val) in [types.StringType, types.UnicodeType]: try: val = eval(val) except: # may be we have a list of string? items = val.split(',') if len(items) > 1: # is actually a list val = [] for i in items: val.append(i.strip()) # evaluated type is OK now. if type(val) in p['allowedTypes']: if not _validate(val, p, options): raise exceptions.ValueError("Default value '" + str(val) + "' for option '" + p['name'] + "' does not pass validation.") return val elif types.ListType in p['allowedTypes'] or types.TupleType in p['allowedTypes']: if not _validate(val, p, options): raise exceptions.ValueError("Value "+str([val])+' does not pass validation') return [val] elif type(val) == type(True) and types.IntType in p['allowedTypes']: # compatibility problem return val elif type(val) == types.UnicodeType and types.StringType in p['allowedTypes']: return str(val) else: raise exceptions.ValueError('Type of input parameter "' + str(val) + '" is disallowed for option ' + p['name']) print p, val
|
0808dd362a5f2dd5d90d950500fd972461718062 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/0808dd362a5f2dd5d90d950500fd972461718062/simuOpt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
786,
620,
12,
84,
16,
1244,
16,
702,
4672,
9163,
775,
358,
336,
279,
460,
628,
460,
16,
1002,
1520,
309,
555,
10555,
18,
9163,
309,
293,
3292,
20292,
67,
723,
3546,
422,
296,
11287,
4278,
1002,
4798,
18,
23610,
2668,
4515,
336,
279,
460,
364,
4182,
6134,
468,
309,
732,
854,
21057,
279,
5252,
533,
16,
1765,
5,
309,
618,
12,
1125,
13,
422,
1953,
18,
16532,
559,
30,
1244,
273,
609,
12,
1125,
13,
468,
1206,
10681,
628,
533,
35,
309,
293,
18,
5332,
67,
856,
2668,
8151,
2016,
6134,
471,
618,
2668,
6134,
316,
293,
3292,
8151,
2016,
3546,
471,
618,
2668,
6134,
422,
618,
12,
1125,
4672,
364,
3862,
316,
306,
4970,
2187,
2491,
3113,
2119,
3660,
2187,
2491,
11,
4970,
14542,
309,
1244,
18,
17514,
1918,
12,
6889,
13,
471,
1244,
18,
5839,
1918,
12,
6889,
4672,
1244,
273,
1244,
63,
1897,
12,
6889,
4672,
17,
1897,
12,
6889,
25887,
898,
309,
261,
902,
293,
18,
5332,
67,
856,
2668,
8151,
2016,
26112,
578,
618,
12,
1125,
13,
316,
293,
3292,
8151,
2016,
3546,
30,
309,
486,
389,
5662,
12,
1125,
16,
293,
16,
702,
4672,
1002,
4798,
18,
23610,
2932,
620,
1995,
87,
11,
353,
486,
2935,
364,
1569,
738,
87,
6,
738,
521,
261,
701,
12,
1125,
3631,
293,
3292,
529,
3546,
3719,
327,
1244,
468,
1640,
4042,
296,
6079,
17,
6494,
11,
648,
1327,
293,
3292,
20292,
67,
723,
3546,
422,
296,
6494,
4278,
309,
1244,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
786,
620,
12,
84,
16,
1244,
16,
702,
4672,
9163,
775,
358,
336,
279,
460,
628,
460,
16,
1002,
1520,
309,
555,
10555,
18,
9163,
309,
293,
3292,
20292,
67,
723,
3546,
422,
296,
11287,
4278,
1002,
4798,
18,
23610,
2668,
4515,
336,
279,
460,
364,
4182,
6134,
468,
309,
732,
854,
21057,
279,
5252,
533,
16,
1765,
5,
309,
618,
12,
1125,
13,
422,
1953,
18,
16532,
559,
30,
1244,
273,
609,
12,
1125,
13,
468,
1206,
10681,
628,
533,
35,
309,
293,
18,
5332,
67,
856,
2668,
8151,
2016,
6134,
471,
618,
2668,
6134,
316,
293,
3292,
8151,
2016,
3546,
471,
618,
2668,
6134,
422,
618,
12,
1125,
4672,
364,
3862,
316,
306,
4970,
2
] |
def __parse_timestamp(self, timestamp_str): timestamp = datetime(*time.strptime(timestamp_str[0:19], '%Y-%m-%d %H:%M:%S')[0:6])
|
def _get_repo_path(self, path, basedir=None): parts = [self.repository.path.strip("/")] if basedir: parts.append(basedir.strip("/")) parts.append(path.strip("/")) return "/".join(parts) def _revision_timestamp_to_local(self, timestamp_str): """When using a date to ask bzr for a file revision, it expects the date to be in local time. So, this function converts a timestamp from a bzr diff file to local time. """ timestamp = datetime(*time.strptime(timestamp_str[0:19], BZRTool.DIFF_TIMESTAMP_FORMAT)[0:6])
|
def __parse_timestamp(self, timestamp_str): # The timestamp format is: YYYY-MM-DD HH:MM:SS +HHMM timestamp = datetime(*time.strptime(timestamp_str[0:19], '%Y-%m-%d %H:%M:%S')[0:6])
|
93014d9144d249956356c8503d567a6b3a46409b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/93014d9144d249956356c8503d567a6b3a46409b/bzr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
67,
5508,
12,
2890,
16,
2858,
67,
701,
4672,
468,
1021,
2858,
740,
353,
30,
26699,
17,
8206,
17,
5698,
20842,
30,
8206,
30,
1260,
397,
17500,
8206,
2858,
273,
3314,
30857,
957,
18,
701,
10650,
12,
5508,
67,
701,
63,
20,
30,
3657,
6487,
1995,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6134,
63,
20,
30,
26,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2670,
67,
5508,
12,
2890,
16,
2858,
67,
701,
4672,
468,
1021,
2858,
740,
353,
30,
26699,
17,
8206,
17,
5698,
20842,
30,
8206,
30,
1260,
397,
17500,
8206,
2858,
273,
3314,
30857,
957,
18,
701,
10650,
12,
5508,
67,
701,
63,
20,
30,
3657,
6487,
1995,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6134,
63,
20,
30,
26,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
if (res.find('tp') > -1) or (res == 'tdhmtl'):
|
else:
|
def send_to_csv(csv_file, results): import csv for res in results: browser_dump, counter_dump = results[res] writer = csv.writer(open(csv_file + '_' + res, "wb")) if res == 'ts': i = 0 writer.writerow(['i', 'val']) for val in browser_dump: writer.writerow([i, val]) i += 1 if (res.find('tp') > -1) or (res == 'tdhmtl'): writer.writerow(['i', 'page', 'median', 'mean', 'min' , 'max', 'runs']) for bd in browser_dump: bd.rstrip('\n') page_results = bd.splitlines() i = 0 for mypage in page_results[2:]: r = mypage.split(';') if r[1].find('/') > -1 : page = r[1].split('/')[1] else: page = r[1] writer.writerow([i, page, r[2], r[3], r[4], r[5], '|'.join(r[6:])]) i += 1 for cd in counter_dump: for count_type in cd: writer = csv.writer(open(csv_file + '_' + res + '_' + count_type, "wb")) writer.writerow(['i', 'value']) i = 0 for val in cd[count_type]: writer.writerow([i, val]) i += 1
|
9bb9f870fe7337e8a9b9500bc9342ab9e1fde678 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12156/9bb9f870fe7337e8a9b9500bc9342ab9e1fde678/run_tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
869,
67,
6715,
12,
6715,
67,
768,
16,
1686,
4672,
1930,
6101,
364,
400,
316,
1686,
30,
4748,
67,
8481,
16,
3895,
67,
8481,
273,
1686,
63,
455,
65,
2633,
273,
6101,
18,
6299,
12,
3190,
12,
6715,
67,
768,
397,
4427,
397,
225,
400,
16,
315,
9464,
6,
3719,
309,
400,
422,
296,
3428,
4278,
277,
273,
374,
2633,
18,
6299,
543,
12,
3292,
77,
2187,
296,
1125,
19486,
364,
1244,
316,
4748,
67,
8481,
30,
2633,
18,
6299,
543,
3816,
77,
16,
1244,
5717,
277,
1011,
404,
469,
30,
2633,
18,
6299,
543,
12,
3292,
77,
2187,
296,
2433,
2187,
296,
22410,
2187,
296,
7079,
2187,
296,
1154,
11,
269,
296,
1896,
2187,
296,
20152,
19486,
364,
13837,
316,
4748,
67,
8481,
30,
13837,
18,
86,
6406,
2668,
64,
82,
6134,
1363,
67,
4717,
273,
13837,
18,
4939,
3548,
1435,
277,
273,
374,
364,
312,
879,
410,
316,
1363,
67,
4717,
63,
22,
30,
14542,
436,
273,
312,
879,
410,
18,
4939,
2668,
4359,
13,
309,
436,
63,
21,
8009,
4720,
2668,
2473,
13,
405,
300,
21,
294,
1363,
273,
436,
63,
21,
8009,
4939,
2668,
2473,
25146,
21,
65,
469,
30,
1363,
273,
436,
63,
21,
65,
2633,
18,
6299,
543,
3816,
77,
16,
1363,
16,
436,
63,
22,
6487,
436,
63,
23,
6487,
436,
63,
24,
6487,
436,
63,
25,
6487,
8030,
18,
5701,
12,
86,
63,
26,
30,
5717,
5717,
277,
1011,
404,
364,
7976,
316,
3895,
67,
8481,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
869,
67,
6715,
12,
6715,
67,
768,
16,
1686,
4672,
1930,
6101,
364,
400,
316,
1686,
30,
4748,
67,
8481,
16,
3895,
67,
8481,
273,
1686,
63,
455,
65,
2633,
273,
6101,
18,
6299,
12,
3190,
12,
6715,
67,
768,
397,
4427,
397,
225,
400,
16,
315,
9464,
6,
3719,
309,
400,
422,
296,
3428,
4278,
277,
273,
374,
2633,
18,
6299,
543,
12,
3292,
77,
2187,
296,
1125,
19486,
364,
1244,
316,
4748,
67,
8481,
30,
2633,
18,
6299,
543,
3816,
77,
16,
1244,
5717,
277,
1011,
404,
469,
30,
2633,
18,
6299,
543,
12,
3292,
77,
2187,
296,
2433,
2187,
296,
22410,
2187,
296,
7079,
2187,
296,
1154,
11,
269,
296,
1896,
2187,
296,
2
] |
msg_order = 'EWRCIF' def cmp_func(msgid1, msgid2): """comparison function for two message identifiers""" if msgid1[0] != msgid2[0]: return cmp(msg_order.index(msgid1[0]), msg_order.index(msgid2[0])) else: return cmp(msgid1, msgid2) msgids.sort(cmp_func) return msgids
|
msgs = {} for msg in msgids: msgs.setdefault(msg[0], []).append(msg) result = [] for m_id in _MSG_ORDER: if m_id in msgs: result.extend( sorted(msgs[m_id]) ) return result
|
def sort_msgs(msgids): """sort message identifiers according to their category first""" msg_order = 'EWRCIF' def cmp_func(msgid1, msgid2): """comparison function for two message identifiers""" if msgid1[0] != msgid2[0]: return cmp(msg_order.index(msgid1[0]), msg_order.index(msgid2[0])) else: return cmp(msgid1, msgid2) msgids.sort(cmp_func) return msgids
|
1e44813300c240910bb62b09de8763b79444a2b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/928/1e44813300c240910bb62b09de8763b79444a2b9/utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
67,
27439,
12,
3576,
2232,
4672,
3536,
3804,
883,
9863,
4888,
358,
3675,
3150,
1122,
8395,
8733,
273,
2618,
364,
1234,
316,
1234,
2232,
30,
8733,
18,
542,
1886,
12,
3576,
63,
20,
6487,
5378,
2934,
6923,
12,
3576,
13,
563,
273,
5378,
364,
312,
67,
350,
316,
389,
11210,
67,
7954,
30,
309,
312,
67,
350,
316,
8733,
30,
563,
18,
14313,
12,
3115,
12,
27439,
63,
81,
67,
350,
5717,
262,
327,
563,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1524,
67,
27439,
12,
3576,
2232,
4672,
3536,
3804,
883,
9863,
4888,
358,
3675,
3150,
1122,
8395,
8733,
273,
2618,
364,
1234,
316,
1234,
2232,
30,
8733,
18,
542,
1886,
12,
3576,
63,
20,
6487,
5378,
2934,
6923,
12,
3576,
13,
563,
273,
5378,
364,
312,
67,
350,
316,
389,
11210,
67,
7954,
30,
309,
312,
67,
350,
316,
8733,
30,
563,
18,
14313,
12,
3115,
12,
27439,
63,
81,
67,
350,
5717,
262,
327,
563,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sdef.setPermission('View', 0, ['Employee', 'Manager', 'Owner'])
|
sdef.setPermission('View', 0, ['Customer', 'Employee', 'Manager', 'Owner'])
|
sdef = wf.states['completed']
|
34206f5ad1ed487e33085809d8972f361246c0dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10431/34206f5ad1ed487e33085809d8972f361246c0dd/eXtreme_task_workflow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
536,
273,
11578,
18,
7992,
3292,
13615,
3546,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
272,
536,
273,
11578,
18,
7992,
3292,
13615,
3546,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
pickled objects between 32 and 64 bit machines.
|
pickled objects between 32 and 64 bit machines. With the transition to numpy, this may not be needed any longer.
|
def iterkeys(self): return self.__iter__()
|
446cace5df3b2a7b51998a15a2eb302188cc3e78 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31664,
12,
2890,
4672,
327,
365,
16186,
2165,
972,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
P1 = P[0]; P2 = P[1]
|
P1 = P[0] P2 = P[1] if is_Integer(P1) and is_Integer(P2): R = PolynomialRing(self.value_ring(), 'x') P1 = R(P1) P2 = R(P2) return JacobianMorphism_divisor_class_field(self, tuple([P1,P2])) if is_Integer(P1) and is_Polynomial(P2): R = PolynomialRing(self.value_ring(), 'x') P1 = R(P1) return JacobianMorphism_divisor_class_field(self, tuple([P1,P2])) if is_Integer(P2) and is_Polynomial(P1): R = PolynomialRing(self.value_ring(), 'x') P2 = R(P2) return JacobianMorphism_divisor_class_field(self, tuple([P1,P2]))
|
def __call__(self, P): r""" Returns a rational point P in the abstract Homset J(K), given: 0. A point P in J = Jac(C), returning P; 1. A point P on the curve C such that J = Jac(C), where C is an odd degree model, returning [P - oo]; 2. A pair of points (P, Q) on the curve C such that J = Jac(C), returning [P-Q]; 2. A list of polynomials (a,b) such that `b^2 + h*b - f = 0 mod a`, returning [(a(x),y-b(x))]. EXAMPLES:: sage: P.<x> = PolynomialRing(QQ) sage: f = x^5 - x + 1; h = x sage: C = HyperellipticCurve(f,h,'u,v') sage: P = C(0,1,1) sage: J = C.jacobian() sage: Q = J(QQ)(P) sage: for i in range(6): i*Q (1) (u, v - 1) (u^2, v + u - 1) (u^2, v + 1) (u, v + 1) (1) """ if isinstance(P,(int,long,Integer)) and P == 0: R = PolynomialRing(self.value_ring(), 'x') return JacobianMorphism_divisor_class_field(self, (R(1),R(0))) elif isinstance(P,(list,tuple)): if len(P) == 1 and P[0] == 0: R = PolynomialRing(self.value_ring(), 'x') return JacobianMorphism_divisor_class_field(self, (R(1),R(0))) elif len(P) == 2: P1 = P[0]; P2 = P[1] if is_Polynomial(P1) and is_Polynomial(P2): return JacobianMorphism_divisor_class_field(self, tuple(P)) if is_SchemeMorphism(P1) and is_SchemeMorphism(P2): return self(P1) - self(P2) raise TypeError, "Argument P (= %s) must have length 2."%P elif isinstance(P,JacobianMorphism_divisor_class_field) and self == P.parent(): return P elif is_SchemeMorphism(P): x0 = P[0]; y0 = P[1] R, x = PolynomialRing(self.value_ring(), 'x').objgen() return self((x-x0,R(y0))) raise TypeError, "Argument P (= %s) does not determine a divisor class"%P
|
b145a02af12fbf8d66f63a5059612d089cce212b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b145a02af12fbf8d66f63a5059612d089cce212b/jacobian_homset.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
453,
4672,
436,
8395,
2860,
279,
436,
8371,
1634,
453,
316,
326,
8770,
670,
362,
542,
804,
12,
47,
3631,
864,
30,
225,
374,
18,
432,
1634,
453,
316,
804,
273,
804,
1077,
12,
39,
3631,
5785,
453,
31,
404,
18,
432,
1634,
453,
603,
326,
8882,
385,
4123,
716,
804,
273,
804,
1077,
12,
39,
3631,
1625,
385,
353,
392,
14800,
10782,
938,
16,
5785,
306,
52,
300,
320,
83,
15533,
576,
18,
432,
3082,
434,
3143,
261,
52,
16,
2238,
13,
603,
326,
8882,
385,
4123,
716,
804,
273,
804,
1077,
12,
39,
3631,
5785,
306,
52,
17,
53,
15533,
576,
18,
432,
666,
434,
16991,
87,
261,
69,
16,
70,
13,
4123,
716,
1375,
70,
66,
22,
397,
366,
14,
70,
300,
284,
273,
374,
681,
279,
9191,
5785,
306,
12,
69,
12,
92,
3631,
93,
17,
70,
12,
92,
3719,
8009,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
453,
22782,
92,
34,
273,
6730,
13602,
10369,
12,
53,
53,
13,
272,
410,
30,
284,
273,
619,
66,
25,
300,
619,
397,
404,
31,
366,
273,
619,
272,
410,
30,
385,
273,
18274,
292,
549,
21507,
9423,
12,
74,
16,
76,
11189,
89,
16,
90,
6134,
272,
410,
30,
453,
273,
385,
12,
20,
16,
21,
16,
21,
13,
272,
410,
30,
804,
273,
385,
18,
31390,
26968,
1435,
272,
410,
30,
2238,
273,
804,
12,
53,
53,
21433,
52,
13,
272,
410,
30,
364,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
453,
4672,
436,
8395,
2860,
279,
436,
8371,
1634,
453,
316,
326,
8770,
670,
362,
542,
804,
12,
47,
3631,
864,
30,
225,
374,
18,
432,
1634,
453,
316,
804,
273,
804,
1077,
12,
39,
3631,
5785,
453,
31,
404,
18,
432,
1634,
453,
603,
326,
8882,
385,
4123,
716,
804,
273,
804,
1077,
12,
39,
3631,
1625,
385,
353,
392,
14800,
10782,
938,
16,
5785,
306,
52,
300,
320,
83,
15533,
576,
18,
432,
3082,
434,
3143,
261,
52,
16,
2238,
13,
603,
326,
8882,
385,
4123,
716,
804,
273,
804,
1077,
12,
39,
3631,
5785,
306,
52,
17,
53,
15533,
576,
18,
432,
666,
434,
16991,
87,
261,
69,
16,
2
] |
for name in cookies.iterkeys(): expired = ('%session_id=""; Path=/; Expires=Sun, 10-May-1971 11:59:00 GMT') result.append(('Set-Cookie', expired)) environ['FAS_LOGIN_INFO'] = None
|
fas_cache.remove_value(key=session_id + "_identity") expired = ('tg-visit=""; Path=/; Expires=Sun, 10-May-1971 11:59:00 GMT') result.append(('Set-Cookie', expired)) environ['FAS_LOGIN_INFO'] = None
|
def forget(self, environ, identity): # return a expires Set-Cookie header req = webob.Request(environ) linfo = environ.get('FAS_LOGIN_INFO') if isinstance(linfo, tuple): session_id = linfo[0] result = [] for name in cookies.iterkeys(): expired = ('%session_id=""; Path=/; Expires=Sun, 10-May-1971 11:59:00 GMT') result.append(('Set-Cookie', expired)) environ['FAS_LOGIN_INFO'] = None return result return None
|
03e67b90bbaae67d8cfa8c3c3ab5ec3c3405fbdd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12732/03e67b90bbaae67d8cfa8c3c3ab5ec3c3405fbdd/faswhoplugin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13776,
12,
2890,
16,
5473,
16,
4215,
4672,
468,
327,
279,
7368,
1000,
17,
6151,
1446,
1111,
273,
3311,
947,
18,
691,
12,
28684,
13,
225,
328,
1376,
273,
5473,
18,
588,
2668,
2046,
55,
67,
19022,
67,
5923,
6134,
309,
1549,
12,
80,
1376,
16,
3193,
4672,
1339,
67,
350,
273,
328,
1376,
63,
20,
65,
563,
273,
5378,
284,
345,
67,
2493,
18,
4479,
67,
1132,
12,
856,
33,
3184,
67,
350,
397,
4192,
10781,
7923,
7708,
273,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13776,
12,
2890,
16,
5473,
16,
4215,
4672,
468,
327,
279,
7368,
1000,
17,
6151,
1446,
1111,
273,
3311,
947,
18,
691,
12,
28684,
13,
225,
328,
1376,
273,
5473,
18,
588,
2668,
2046,
55,
67,
19022,
67,
5923,
6134,
309,
1549,
12,
80,
1376,
16,
3193,
4672,
1339,
67,
350,
273,
328,
1376,
63,
20,
65,
563,
273,
5378,
284,
345,
67,
2493,
18,
4479,
67,
1132,
12,
856,
33,
3184,
67,
350,
397,
4192,
10781,
7923,
7708,
273,
7707,
88,
75,
17,
11658,
1546,
14432,
2666,
33,
19,
31,
22109,
33,
29636,
16,
1728,
17,
49,
528,
17,
3657,
11212,
4648,
30,
6162,
30,
713,
21706,
6134,
563,
18,
6923,
12,
2668,
694,
17,
6151,
2187,
2
] |
sage: EllipticCurve([1,2,3,4,5]) Elliptic Curve defined by y^2 + x*y + 3*y = x^3 + 2*x^2 + 4*x + 5 over Rational Field
|
sage: E=EllipticCurve([1,2,3,4,5]); E._repr_() 'Elliptic Curve defined by y^2 + x*y + 3*y = x^3 + 2*x^2 + 4*x + 5 over Rational Field'
|
def _repr_(self): """ String representation of elliptic curve.
|
89c2370a6c124c1bf3f51b0d97beaaae4ef2736c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/89c2370a6c124c1bf3f51b0d97beaaae4ef2736c/ell_generic.py
|
[
1,
8585,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12715,
67,
12,
2890,
4672,
3536,
514,
4335,
434,
415,
549,
21507,
8882,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sockobj.send("%9f "%getruntime())
|
sockobj.send("%9f "%getruntime() + " "*90)
|
def sendforever(sockobj): while True: # send a message that is around 100 bytes sockobj.send("%9f "%getruntime())
|
8a08d7e4395befd31dafe0fe61aaf23545dbdffb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7272/8a08d7e4395befd31dafe0fe61aaf23545dbdffb/ut_repytests_testtcpbuffersize.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
1405,
502,
12,
15031,
2603,
4672,
1323,
1053,
30,
468,
1366,
279,
883,
716,
353,
6740,
2130,
1731,
7313,
2603,
18,
4661,
27188,
29,
74,
2213,
588,
9448,
1435,
397,
315,
15902,
9349,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
1405,
502,
12,
15031,
2603,
4672,
1323,
1053,
30,
468,
1366,
279,
883,
716,
353,
6740,
2130,
1731,
7313,
2603,
18,
4661,
27188,
29,
74,
2213,
588,
9448,
1435,
397,
315,
15902,
9349,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
return relfn
|
return relfn, outfn
|
def render_dot(self, code, options, format, prefix='graphviz'): """ Render graphviz code into a PNG or PDF output file. """ hashkey = code.encode('utf-8') + str(options) + \ str(self.builder.config.graphviz_dot_args) fname = '%s-%s.%s' % (prefix, sha(hashkey).hexdigest(), format) if hasattr(self.builder, 'imgpath'): # HTML relfn = posixpath.join(self.builder.imgpath, fname) outfn = path.join(self.builder.outdir, '_images', fname) else: # LaTeX relfn = fname outfn = path.join(self.builder.outdir, fname) if path.isfile(outfn): return relfn if hasattr(self.builder, '_graphviz_warned_dot') or \ hasattr(self.builder, '_graphviz_warned_ps2pdf'): return None ensuredir(path.dirname(outfn)) dot_args = [self.builder.config.graphviz_dot] dot_args.extend(self.builder.config.graphviz_dot_args) dot_args.extend(options) dot_args.extend(['-T' + format, '-o' + outfn]) if format == 'png': dot_args.extend(['-Tcmapx', '-o%s.map' % outfn]) try: p = Popen(dot_args, stdout=PIPE, stdin=PIPE, stderr=PIPE) except OSError, err: if err.errno != 2: # No such file or directory raise self.builder.warn('dot command %r cannot be run (needed for graphviz ' 'output), check the graphviz_dot setting' % self.builder.config.graphviz_dot) self.builder._graphviz_warned_dot = True return None # graphviz expects UTF-8 by default if isinstance(code, unicode): code = code.encode('utf-8') stdout, stderr = p.communicate(code) if p.returncode != 0: raise GraphvizError('dot exited with error:\n[stderr]\n%s\n' '[stdout]\n%s' % (stderr, stdout)) return relfn
|
44f4a5746e6c9428042cfa9be47841aa23775b1a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/44f4a5746e6c9428042cfa9be47841aa23775b1a/graphviz.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
9811,
12,
2890,
16,
981,
16,
702,
16,
740,
16,
1633,
2218,
4660,
23167,
11,
4672,
3536,
6987,
2667,
23167,
981,
1368,
279,
22476,
578,
12667,
876,
585,
18,
3536,
1651,
856,
273,
981,
18,
3015,
2668,
3158,
17,
28,
6134,
397,
609,
12,
2116,
13,
397,
521,
609,
12,
2890,
18,
9574,
18,
1425,
18,
4660,
23167,
67,
9811,
67,
1968,
13,
5299,
273,
1995,
87,
6456,
87,
7866,
87,
11,
738,
261,
3239,
16,
6056,
12,
2816,
856,
2934,
7118,
10171,
9334,
740,
13,
309,
3859,
12,
2890,
18,
9574,
16,
296,
6081,
803,
11,
4672,
468,
3982,
1279,
4293,
273,
16366,
803,
18,
5701,
12,
2890,
18,
9574,
18,
6081,
803,
16,
5299,
13,
596,
4293,
273,
589,
18,
5701,
12,
2890,
18,
9574,
18,
659,
1214,
16,
2070,
7369,
2187,
5299,
13,
469,
30,
468,
21072,
21575,
60,
1279,
4293,
273,
5299,
596,
4293,
273,
589,
18,
5701,
12,
2890,
18,
9574,
18,
659,
1214,
16,
5299,
13,
225,
309,
589,
18,
291,
768,
12,
659,
4293,
4672,
327,
1279,
4293,
16,
596,
4293,
225,
309,
3859,
12,
2890,
18,
9574,
16,
2070,
4660,
23167,
67,
8935,
329,
67,
9811,
6134,
578,
521,
3859,
12,
2890,
18,
9574,
16,
2070,
4660,
23167,
67,
8935,
329,
67,
1121,
22,
7699,
11,
4672,
327,
599,
225,
3387,
1214,
12,
803,
18,
12287,
12,
659,
4293,
3719,
225,
3928,
67,
1968,
273,
306,
2890,
18,
9574,
18,
1425,
18,
4660,
23167,
67,
9811,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
9811,
12,
2890,
16,
981,
16,
702,
16,
740,
16,
1633,
2218,
4660,
23167,
11,
4672,
3536,
6987,
2667,
23167,
981,
1368,
279,
22476,
578,
12667,
876,
585,
18,
3536,
1651,
856,
273,
981,
18,
3015,
2668,
3158,
17,
28,
6134,
397,
609,
12,
2116,
13,
397,
521,
609,
12,
2890,
18,
9574,
18,
1425,
18,
4660,
23167,
67,
9811,
67,
1968,
13,
5299,
273,
1995,
87,
6456,
87,
7866,
87,
11,
738,
261,
3239,
16,
6056,
12,
2816,
856,
2934,
7118,
10171,
9334,
740,
13,
309,
3859,
12,
2890,
18,
9574,
16,
296,
6081,
803,
11,
4672,
468,
3982,
1279,
4293,
273,
16366,
803,
18,
5701,
12,
2890,
18,
9574,
18,
6081,
803,
16,
5299,
2
] |
for line in csv.reader(data.splitlines(), dialect):
|
for line in reader:
|
def parse(data, schema=None): encoding = Text.guess_encoding(data) dialect = csv.Sniffer().sniff(data[:1000]) if schema is None: for line in csv.reader(data.splitlines(), dialect): yield [ unicode(x, encoding) for x in line ] else: for line in csv.reader(data.splitlines(), dialect): yield [ schema[i].decode(value) for i, value in enumerate(line) ]
|
d7d66783028d89ac24e4e2e007a313c18f639940 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/d7d66783028d89ac24e4e2e007a313c18f639940/CSV.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
892,
16,
1963,
33,
7036,
4672,
2688,
273,
3867,
18,
20885,
67,
5999,
12,
892,
13,
10864,
273,
6101,
18,
23179,
7675,
8134,
3048,
12,
892,
10531,
18088,
5717,
309,
1963,
353,
599,
30,
364,
980,
316,
2949,
30,
2824,
306,
5252,
12,
92,
16,
2688,
13,
364,
619,
316,
980,
308,
469,
30,
364,
980,
316,
2949,
30,
2824,
306,
1963,
63,
77,
8009,
3922,
12,
1132,
13,
364,
277,
16,
460,
316,
4241,
12,
1369,
13,
308,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
12,
892,
10531,
18088,
5717,
309,
1963,
353,
599,
30,
364,
980,
316,
2949,
30,
2824,
306,
5252,
12,
92,
16,
2688,
13,
364,
619,
316,
980,
308,
469,
30,
364,
980,
316,
2949,
30,
2824,
306,
1963,
63,
77,
8009,
3922,
12,
1132,
13,
364,
277,
16,
460,
316,
4241,
12,
1369,
13,
308,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if self.filterbox_visible: return
|
def unbold_boldrow(self, row): if row > -1: if self.filterbox_visible: return try: self.currentdata[row][1] = make_unbold(self.currentdata[row][1]) except: pass
|
9e75aaec26e295cc58718bdda26c4e6b1a17b8af /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/9e75aaec26e295cc58718bdda26c4e6b1a17b8af/sonata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
16390,
67,
16390,
492,
12,
2890,
16,
1027,
4672,
309,
1027,
405,
300,
21,
30,
775,
30,
365,
18,
2972,
892,
63,
492,
6362,
21,
65,
273,
1221,
67,
318,
16390,
12,
2890,
18,
2972,
892,
63,
492,
6362,
21,
5717,
1335,
30,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
16390,
67,
16390,
492,
12,
2890,
16,
1027,
4672,
309,
1027,
405,
300,
21,
30,
775,
30,
365,
18,
2972,
892,
63,
492,
6362,
21,
65,
273,
1221,
67,
318,
16390,
12,
2890,
18,
2972,
892,
63,
492,
6362,
21,
5717,
1335,
30,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
14: I INT 3 17: I INT 4
|
14: L LONG 3 17: L LONG 4
|
def __init__(self, value): self.value = value
|
da655ae2fffed9301dcf15e87dc40e6e96778321 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/da655ae2fffed9301dcf15e87dc40e6e96778321/pickletools.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
460,
4672,
365,
18,
1132,
273,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
460,
4672,
365,
18,
1132,
273,
460,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fctx = webutil.filectx(web.repo, req) style = web.config('web', 'pygments_style', 'colorful') highlight.pygmentize('annotateline', fctx, style, tmpl)
|
mt = ''.join(tmpl('mimetype', encoding=web.encoding)) if 'html' in mt: fctx = webutil.filectx(web.repo, req) style = web.config('web', 'pygments_style', 'colorful') highlight.pygmentize('annotateline', fctx, style, tmpl)
|
def annotate_highlight(web, req, tmpl): fctx = webutil.filectx(web.repo, req) style = web.config('web', 'pygments_style', 'colorful') highlight.pygmentize('annotateline', fctx, style, tmpl) return web_annotate(web, req, tmpl)
|
751c1c85c60bad0528dca314d18ceee869e169e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/751c1c85c60bad0528dca314d18ceee869e169e8/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13795,
67,
15978,
12,
4875,
16,
1111,
16,
10720,
4672,
5874,
273,
875,
18,
5701,
12,
24717,
2668,
22571,
2187,
2688,
33,
4875,
18,
5999,
3719,
309,
296,
2620,
11,
316,
5874,
30,
284,
5900,
273,
3311,
1367,
18,
768,
5900,
12,
4875,
18,
7422,
16,
1111,
13,
2154,
273,
3311,
18,
1425,
2668,
4875,
2187,
296,
2074,
75,
1346,
67,
4060,
2187,
296,
3266,
2706,
6134,
8839,
18,
2074,
75,
475,
554,
2668,
18338,
270,
3027,
2187,
284,
5900,
16,
2154,
16,
10720,
13,
327,
3311,
67,
18338,
340,
12,
4875,
16,
1111,
16,
10720,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13795,
67,
15978,
12,
4875,
16,
1111,
16,
10720,
4672,
5874,
273,
875,
18,
5701,
12,
24717,
2668,
22571,
2187,
2688,
33,
4875,
18,
5999,
3719,
309,
296,
2620,
11,
316,
5874,
30,
284,
5900,
273,
3311,
1367,
18,
768,
5900,
12,
4875,
18,
7422,
16,
1111,
13,
2154,
273,
3311,
18,
1425,
2668,
4875,
2187,
296,
2074,
75,
1346,
67,
4060,
2187,
296,
3266,
2706,
6134,
8839,
18,
2074,
75,
475,
554,
2668,
18338,
270,
3027,
2187,
284,
5900,
16,
2154,
16,
10720,
13,
327,
3311,
67,
18338,
340,
12,
4875,
16,
1111,
16,
10720,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( PyString_Check(args) ) { OSStatus err;
|
if ( PyString_Check(v) ) {
|
#ifdef WITHOUT_FRAMEWORKS
|
ed72372f98f302b76be5a6f80831018829fd5b2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ed72372f98f302b76be5a6f80831018829fd5b2a/filesupport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
13601,
5069,
67,
15072,
10566,
55,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
13601,
5069,
67,
15072,
10566,
55,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
capture=False, oneline=False): """Perform a command pipeline, with optional input/output filenames."""
|
capture=False, oneline=False, hide_stderr=False): """ Perform a command pipeline, with optional input/output filenames. hide_stderr Don't allow output of stderr (default False) """
|
def RunPipe(self, pipeline, infile=None, outfile=None, capture=False, oneline=False): """Perform a command pipeline, with optional input/output filenames."""
|
d73ec0e2a82d0924131576dc827f976c3a5121a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/d73ec0e2a82d0924131576dc827f976c3a5121a8/cros_image_to_target.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
11546,
12,
2890,
16,
5873,
16,
14568,
33,
7036,
16,
8756,
33,
7036,
16,
7477,
33,
8381,
16,
603,
3027,
33,
8381,
4672,
3536,
4990,
279,
1296,
5873,
16,
598,
3129,
810,
19,
2844,
9066,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
11546,
12,
2890,
16,
5873,
16,
14568,
33,
7036,
16,
8756,
33,
7036,
16,
7477,
33,
8381,
16,
603,
3027,
33,
8381,
4672,
3536,
4990,
279,
1296,
5873,
16,
598,
3129,
810,
19,
2844,
9066,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
if i >= self._measurement.npoints:
|
if i >= self._npoints:
|
def next(self): i = self._next_index if i >= self._measurement.npoints: raise StopIteration() elif i >= self._measurement.acquired: # expected the datapoint, but not yet acquired return None
|
736ba30206d85991426732fa429bb11e8a4ae744 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14949/736ba30206d85991426732fa429bb11e8a4ae744/pptaskmanager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
4672,
277,
273,
365,
6315,
4285,
67,
1615,
309,
277,
1545,
365,
6315,
82,
4139,
30,
1002,
16179,
1435,
1327,
277,
1545,
365,
6315,
16944,
18,
1077,
1402,
30,
468,
2665,
326,
25252,
16,
1496,
486,
4671,
20598,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1024,
12,
2890,
4672,
277,
273,
365,
6315,
4285,
67,
1615,
309,
277,
1545,
365,
6315,
82,
4139,
30,
1002,
16179,
1435,
1327,
277,
1545,
365,
6315,
16944,
18,
1077,
1402,
30,
468,
2665,
326,
25252,
16,
1496,
486,
4671,
20598,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.info( "using bucket's region (%s) to connect to AWS" % self._aws_region)
|
log.info("using scratch bucket's region (%s) to connect to AWS" % self._aws_region)
|
def _fix_s3_scratch_and_log_uri_opts(self): """Fill in s3_scratch_uri and s3_log_uri (in self._opts) if they aren't already set. """ # set s3_scratch_uri if not self._opts['s3_scratch_uri']: s3_conn = self.make_s3_conn() buckets = s3_conn.get_all_buckets() mrjob_buckets = [b for b in buckets if b.name.startswith('mrjob-')] if mrjob_buckets: scratch_bucket = mrjob_buckets[0] scratch_bucket_name = scratch_bucket.name # if we're not using an ancient version of boto, set region # based on the bucket's region if (not self._aws_region and hasattr(scratch_bucket, 'get_location')): self._aws_region = scratch_bucket.get_location() if self._aws_region: log.info( "using bucket's region (%s) to connect to AWS" % self._aws_region) else: # need to create a bucket scratch_bucket_name = 'mrjob-%016x' % random.randint(0, 2**64-1) log.info('creating bucket %s to use as scratch space') s3_conn.create_bucket(scratch_bucket_name, location=(self._aws_region or '')) self._opts['s3_scratch_uri'] = 's3://%s/tmp/' % scratch_bucket_name log.info('using %s as our scratch dir on S3' % self._opts['s3_scratch_uri'])
|
64f0ed09a1cc0ec105770a045e3cb70d03183c8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14504/64f0ed09a1cc0ec105770a045e3cb70d03183c8f/emr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
67,
87,
23,
67,
24638,
505,
67,
464,
67,
1330,
67,
1650,
67,
4952,
12,
2890,
4672,
3536,
8026,
316,
272,
23,
67,
24638,
505,
67,
1650,
471,
272,
23,
67,
1330,
67,
1650,
261,
267,
365,
6315,
4952,
13,
309,
2898,
11526,
1404,
1818,
444,
18,
3536,
468,
444,
272,
23,
67,
24638,
505,
67,
1650,
309,
486,
365,
6315,
4952,
3292,
87,
23,
67,
24638,
505,
67,
1650,
3546,
30,
272,
23,
67,
4646,
273,
365,
18,
6540,
67,
87,
23,
67,
4646,
1435,
9169,
273,
272,
23,
67,
4646,
18,
588,
67,
454,
67,
20700,
1435,
9752,
4688,
67,
20700,
273,
306,
70,
364,
324,
316,
9169,
309,
324,
18,
529,
18,
17514,
1918,
2668,
21387,
4688,
17,
6134,
65,
309,
9752,
4688,
67,
20700,
30,
15289,
67,
7242,
273,
9752,
4688,
67,
20700,
63,
20,
65,
15289,
67,
7242,
67,
529,
273,
15289,
67,
7242,
18,
529,
468,
309,
732,
4565,
486,
1450,
392,
392,
71,
1979,
1177,
434,
17228,
16,
444,
3020,
468,
2511,
603,
326,
2783,
1807,
3020,
309,
261,
902,
365,
6315,
6850,
67,
6858,
471,
3859,
12,
24638,
505,
67,
7242,
16,
296,
588,
67,
3562,
26112,
30,
365,
6315,
6850,
67,
6858,
273,
15289,
67,
7242,
18,
588,
67,
3562,
1435,
309,
365,
6315,
6850,
67,
6858,
30,
613,
18,
1376,
2932,
9940,
15289,
2783,
1807,
3020,
6142,
87,
13,
358,
3077,
358,
3279,
6,
738,
365,
6315,
6850,
67,
6858,
13,
469,
30,
468,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
904,
67,
87,
23,
67,
24638,
505,
67,
464,
67,
1330,
67,
1650,
67,
4952,
12,
2890,
4672,
3536,
8026,
316,
272,
23,
67,
24638,
505,
67,
1650,
471,
272,
23,
67,
1330,
67,
1650,
261,
267,
365,
6315,
4952,
13,
309,
2898,
11526,
1404,
1818,
444,
18,
3536,
468,
444,
272,
23,
67,
24638,
505,
67,
1650,
309,
486,
365,
6315,
4952,
3292,
87,
23,
67,
24638,
505,
67,
1650,
3546,
30,
272,
23,
67,
4646,
273,
365,
18,
6540,
67,
87,
23,
67,
4646,
1435,
9169,
273,
272,
23,
67,
4646,
18,
588,
67,
454,
67,
20700,
1435,
9752,
4688,
67,
20700,
273,
306,
70,
364,
324,
316,
9169,
309,
324,
18,
529,
18,
17514,
2
] |
parser.setFeature(sax.handler.feature_namespaces, 1)
|
parser.setFeature(sax.handler.feature_namespace_prefixes, 1)
|
def make_parser(cls): parser = sax.make_parser() parser.setFeature(sax.handler.feature_namespaces, 1)
|
231f1a85e05dfa330ede4fe14491d4c33f9faa34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3446/231f1a85e05dfa330ede4fe14491d4c33f9faa34/element.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
4288,
12,
6429,
4672,
2082,
273,
20319,
18,
6540,
67,
4288,
1435,
2082,
18,
542,
4595,
12,
87,
651,
18,
4176,
18,
7238,
67,
16078,
16,
404,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
4288,
12,
6429,
4672,
2082,
273,
20319,
18,
6540,
67,
4288,
1435,
2082,
18,
542,
4595,
12,
87,
651,
18,
4176,
18,
7238,
67,
16078,
16,
404,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
randomize = 1
|
randomize = True
|
def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, exclude=0, single=0, randomize=0, fromfile=None, findleaks=0, use_resources=None): """Execute a test suite. This also parses command-line options and modifies its behavior accordingly. tests -- a list of strings containing test names (optional) testdir -- the directory in which to look for tests (optional) Users other than the Python test suite will certainly want to specify testdir; if it's omitted, the directory containing the Python test suite is searched for. If the tests argument is omitted, the tests listed on the command-line will be used. If that's empty, too, then all *.py files beginning with test_ will be used. The other default arguments (verbose, quiet, generate, exclude, single, randomize, findleaks, and use_resources) allow programmers calling main() directly to set the values that would normally be set by flags on the command line. """ test_support.record_original_stdout(sys.stdout) try: opts, args = getopt.getopt(sys.argv[1:], 'hvgqxsrf:lu:t:', ['help', 'verbose', 'quiet', 'generate', 'exclude', 'single', 'random', 'fromfile', 'findleaks', 'use=', 'threshold=']) except getopt.error, msg: usage(2, msg) # Defaults if use_resources is None: use_resources = [] for o, a in opts: if o in ('-h', '--help'): usage(0) elif o in ('-v', '--verbose'): verbose += 1 elif o in ('-q', '--quiet'): quiet = 1; verbose = 0 elif o in ('-g', '--generate'): generate = 1 elif o in ('-x', '--exclude'): exclude = 1 elif o in ('-s', '--single'): single = 1 elif o in ('-r', '--randomize'): randomize = 1 elif o in ('-f', '--fromfile'): fromfile = a elif o in ('-l', '--findleaks'): findleaks = 1 elif o in ('-t', '--threshold'): import gc gc.set_threshold(int(a)) elif o in ('-u', '--use'): u = [x.lower() for x in a.split(',')] for r in u: if r == 'all': use_resources[:] = RESOURCE_NAMES continue remove = False if r[0] == '-': remove = True r = r[1:] if r not in RESOURCE_NAMES: usage(1, 'Invalid -u/--use option: ' + a) if remove: if r in use_resources: use_resources.remove(r) elif r not in use_resources: use_resources.append(r) if generate and verbose: usage(2, "-g and -v don't go together!") if single and fromfile: usage(2, "-s and -f don't go together!") good = [] bad = [] skipped = [] resource_denieds = [] if findleaks: try: import gc except ImportError: print 'No GC available, disabling findleaks.' findleaks = 0 else: # Uncomment the line below to report garbage that is not # freeable by reference counting alone. By default only # garbage that is not collectable by the GC is reported. #gc.set_debug(gc.DEBUG_SAVEALL) found_garbage = [] if single: from tempfile import gettempdir filename = os.path.join(gettempdir(), 'pynexttest') try: fp = open(filename, 'r') next = fp.read().strip() tests = [next] fp.close() except IOError: pass if fromfile: tests = [] fp = open(fromfile) for line in fp: guts = line.split() # assuming no test has whitespace in its name if guts and not guts[0].startswith('#'): tests.extend(guts) fp.close() # Strip .py extensions. if args: args = map(removepy, args) if tests: tests = map(removepy, tests) stdtests = STDTESTS[:] nottests = NOTTESTS[:] if exclude: for arg in args: if arg in stdtests: stdtests.remove(arg) nottests[:0] = args args = [] tests = tests or args or findtests(testdir, stdtests, nottests) if single: tests = tests[:1] if randomize: random.shuffle(tests) test_support.verbose = verbose # Tell tests to be moderately quiet test_support.use_resources = use_resources save_modules = sys.modules.keys() for test in tests: if not quiet: print test sys.stdout.flush() ok = runtest(test, generate, verbose, quiet, testdir) if ok > 0: good.append(test) elif ok == 0: bad.append(test) else: skipped.append(test) if ok == -2: resource_denieds.append(test) if findleaks: gc.collect() if gc.garbage: print "Warning: test created", len(gc.garbage), print "uncollectable object(s)." # move the uncollectable objects somewhere so we don't see # them again found_garbage.extend(gc.garbage) del gc.garbage[:] # Unload the newly imported modules (best effort finalization) for module in sys.modules.keys(): if module not in save_modules and module.startswith("test."): test_support.unload(module) # The lists won't be sorted if running with -r good.sort() bad.sort() skipped.sort() if good and not quiet: if not bad and not skipped and len(good) > 1: print "All", print count(len(good), "test"), "OK." if verbose: print "CAUTION: stdout isn't compared in verbose mode:" print "a test that passes in verbose mode may fail without it." if bad: print count(len(bad), "test"), "failed:" printlist(bad) if skipped and not quiet: print count(len(skipped), "test"), "skipped:" printlist(skipped) e = _ExpectedSkips() plat = sys.platform if e.isvalid(): surprise = set(skipped) - e.getexpected() - set(resource_denieds) if surprise: print count(len(surprise), "skip"), \ "unexpected on", plat + ":" printlist(surprise) else: print "Those skips are all expected on", plat + "." else: print "Ask someone to teach regrtest.py about which tests are" print "expected to get skipped on", plat + "." if single: alltests = findtests(testdir, stdtests, nottests) for i in range(len(alltests)): if tests[0] == alltests[i]: if i == len(alltests) - 1: os.unlink(filename) else: fp = open(filename, 'w') fp.write(alltests[i+1] + '\n') fp.close() break else: os.unlink(filename) sys.exit(len(bad) > 0)
|
3b6d025d9bc6a0109e9a2ebd28a4864e8007193a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3b6d025d9bc6a0109e9a2ebd28a4864e8007193a/regrtest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
16341,
33,
7036,
16,
1842,
1214,
33,
7036,
16,
3988,
33,
20,
16,
10902,
33,
20,
16,
2103,
33,
20,
16,
4433,
33,
20,
16,
2202,
33,
20,
16,
2744,
554,
33,
20,
16,
628,
768,
33,
7036,
16,
1104,
298,
581,
87,
33,
20,
16,
999,
67,
4683,
33,
7036,
4672,
3536,
5289,
279,
1842,
11371,
18,
225,
1220,
2546,
8940,
1296,
17,
1369,
702,
471,
23934,
2097,
6885,
15905,
18,
225,
7434,
1493,
279,
666,
434,
2064,
4191,
1842,
1257,
261,
10444,
13,
1842,
1214,
1493,
326,
1867,
316,
1492,
358,
2324,
364,
7434,
261,
10444,
13,
225,
12109,
1308,
2353,
326,
6600,
1842,
11371,
903,
8626,
715,
2545,
358,
4800,
1842,
1214,
31,
309,
518,
1807,
16195,
16,
326,
1867,
4191,
326,
6600,
1842,
11371,
353,
19242,
364,
18,
225,
971,
326,
7434,
1237,
353,
16195,
16,
326,
7434,
12889,
603,
326,
1296,
17,
1369,
903,
506,
1399,
18,
225,
971,
716,
1807,
1008,
16,
4885,
16,
1508,
777,
380,
18,
2074,
1390,
8435,
598,
1842,
67,
903,
506,
1399,
18,
225,
1021,
1308,
805,
1775,
261,
11369,
16,
10902,
16,
2103,
16,
4433,
16,
2202,
16,
2744,
554,
16,
1104,
298,
581,
87,
16,
471,
999,
67,
4683,
13,
1699,
5402,
81,
414,
4440,
2774,
1435,
5122,
358,
444,
326,
924,
716,
4102,
15849,
506,
444,
635,
2943,
603,
326,
1296,
980,
18,
225,
3536,
225,
1842,
67,
13261,
18,
3366,
67,
8830,
67,
10283,
12,
9499,
18,
10283,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
16341,
33,
7036,
16,
1842,
1214,
33,
7036,
16,
3988,
33,
20,
16,
10902,
33,
20,
16,
2103,
33,
20,
16,
4433,
33,
20,
16,
2202,
33,
20,
16,
2744,
554,
33,
20,
16,
628,
768,
33,
7036,
16,
1104,
298,
581,
87,
33,
20,
16,
999,
67,
4683,
33,
7036,
4672,
3536,
5289,
279,
1842,
11371,
18,
225,
1220,
2546,
8940,
1296,
17,
1369,
702,
471,
23934,
2097,
6885,
15905,
18,
225,
7434,
1493,
279,
666,
434,
2064,
4191,
1842,
1257,
261,
10444,
13,
1842,
1214,
1493,
326,
1867,
316,
1492,
358,
2324,
364,
7434,
261,
10444,
13,
225,
12109,
1308,
2353,
326,
6600,
1842,
11371,
903,
8626,
715,
2545,
358,
4800,
1842,
1214,
31,
2
] |
classifier_trainer, inverted_index=None):
|
classifier_trainer, occurances=None):
|
def _train_aux_classifier(i, auxtask, original_instances, dim, classifier_trainer, inverted_index=None): """Trains a single auxiliary classifier. Parameters ---------- i : int The index of the auxiliary task. auxtask : tuple of ints The auxiliary task. original_instances : array, dtype=bolt.sparsedtype The unlabeled instances. dim : int The dimensionality of the feature space. classifier_trainer : AuxTrainer The concrete trainer for the auxiliary classifiers. inverted_index : dict The inverted index - if any. Returns ------- i : int The index of the auxtask. sparse_w : (array, array) The sparse representation of the weight vector; the first array holds the indizes of the non zero features and the second array holds the values. """ instances = original_instances if inverted_index is None: util.mask(instances, auxtask) labels = util.autolabel(instances, auxtask) else: occurances = inverted_index[j] util.mask(instances[occurances], auxtask) labels = np.ones((instances.shape[0],), dtype=np.float32) labels *= -1.0 labels[occurances] = 1.0 dataset = bolt.io.MemoryDataset(dim, instances, labels) w = classifier_trainer.train_classifier(dataset) return i, (w.nonzero()[0], w[w.nonzero()[0]])
|
4b78ae8cd751ab726b00e2c00898db7709780673 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14494/4b78ae8cd751ab726b00e2c00898db7709780673/auxstrategy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9754,
67,
18196,
67,
1106,
1251,
12,
77,
16,
9397,
4146,
16,
2282,
67,
10162,
16,
2464,
16,
14622,
67,
313,
1521,
16,
3334,
6872,
33,
7036,
4672,
3536,
1609,
2679,
279,
2202,
9397,
20606,
14622,
18,
225,
7012,
12181,
277,
294,
509,
1021,
770,
434,
326,
9397,
20606,
1562,
18,
9397,
4146,
294,
3193,
434,
15542,
1021,
9397,
20606,
1562,
18,
2282,
67,
10162,
294,
526,
16,
3182,
33,
70,
4397,
18,
87,
10817,
723,
1021,
640,
1925,
329,
3884,
18,
2464,
294,
509,
1021,
29912,
434,
326,
2572,
3476,
18,
14622,
67,
313,
1521,
294,
432,
2616,
1609,
14522,
1021,
12220,
28974,
364,
326,
9397,
20606,
667,
3383,
18,
18150,
67,
1615,
294,
2065,
1021,
18150,
770,
300,
309,
1281,
18,
225,
2860,
18365,
277,
294,
509,
1021,
770,
434,
326,
9397,
4146,
18,
9387,
67,
91,
294,
261,
1126,
16,
526,
13,
1021,
9387,
4335,
434,
326,
3119,
3806,
31,
326,
1122,
526,
14798,
326,
1547,
3128,
434,
326,
1661,
3634,
4467,
471,
326,
2205,
526,
14798,
326,
924,
18,
3536,
3884,
273,
2282,
67,
10162,
309,
18150,
67,
1615,
353,
599,
30,
1709,
18,
4455,
12,
10162,
16,
9397,
4146,
13,
3249,
273,
1709,
18,
5854,
355,
873,
12,
10162,
16,
9397,
4146,
13,
469,
30,
3334,
6872,
273,
18150,
67,
1615,
63,
78,
65,
1709,
18,
4455,
12,
10162,
63,
26635,
6872,
6487,
9397,
4146,
13,
3249,
273,
1130,
18,
5322,
12443,
10162,
18,
4867,
63,
20,
6487,
3631,
3182,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9754,
67,
18196,
67,
1106,
1251,
12,
77,
16,
9397,
4146,
16,
2282,
67,
10162,
16,
2464,
16,
14622,
67,
313,
1521,
16,
3334,
6872,
33,
7036,
4672,
3536,
1609,
2679,
279,
2202,
9397,
20606,
14622,
18,
225,
7012,
12181,
277,
294,
509,
1021,
770,
434,
326,
9397,
20606,
1562,
18,
9397,
4146,
294,
3193,
434,
15542,
1021,
9397,
20606,
1562,
18,
2282,
67,
10162,
294,
526,
16,
3182,
33,
70,
4397,
18,
87,
10817,
723,
1021,
640,
1925,
329,
3884,
18,
2464,
294,
509,
1021,
29912,
434,
326,
2572,
3476,
18,
14622,
67,
313,
1521,
294,
432,
2616,
1609,
14522,
1021,
12220,
28974,
364,
326,
9397,
20606,
667,
3383,
18,
18150,
67,
1615,
294,
2065,
1021,
2
] |
link = Column(RDUnicode(128))
|
link = Column(UnicodeText)
|
def annotated_insert(insert, compiler, **kw): if getattr(insert.table, 'insert_prefix', None): insert = insert.prefix_with('%s' % insert.table.insert_prefix) return compiler.visit_insert(insert, **kw)
|
0bc551d9f76b222f8a66c5c6a76841382c25cea1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12761/0bc551d9f76b222f8a66c5c6a76841382c25cea1/history.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10529,
67,
6387,
12,
6387,
16,
5274,
16,
2826,
9987,
4672,
309,
3869,
12,
6387,
18,
2121,
16,
296,
6387,
67,
3239,
2187,
599,
4672,
2243,
273,
2243,
18,
3239,
67,
1918,
29909,
87,
11,
738,
2243,
18,
2121,
18,
6387,
67,
3239,
13,
327,
5274,
18,
11658,
67,
6387,
12,
6387,
16,
2826,
9987,
13,
225,
2,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10529,
67,
6387,
12,
6387,
16,
5274,
16,
2826,
9987,
4672,
309,
3869,
12,
6387,
18,
2121,
16,
296,
6387,
67,
3239,
2187,
599,
4672,
2243,
273,
2243,
18,
3239,
67,
1918,
29909,
87,
11,
738,
2243,
18,
2121,
18,
6387,
67,
3239,
13,
327,
5274,
18,
11658,
67,
6387,
12,
6387,
16,
2826,
9987,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: return self.getAttributeValue('superKinds', _attrDict=self._references) except AttributeError: raise ValueError, 'No superKind for %s' %(self.itsPath)
|
superKinds = self.getAttributeValue('superKinds', default=None, _attrDict=self._references) if not superKinds: self.getRepository().logger.warn('No superKinds for %s', self.itsPath) return [ self._kind.itsParent['Item'] ] return superKinds
|
def _getSuperKinds(self):
|
e9c3af0e5cef2cfc193a64d98208aeee729836e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
588,
8051,
5677,
87,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
cols = string.split(self._chomp(string.rstrip(line)), ';') for i in range(len(cols)): cols[i] = string.lstrip(cols[i])
|
cols = self._chomp(line.rstrip()).split(';') cols = [col.lstrip() for col in cols]
|
def database_cross_reference(self, line): # From CLD1_HUMAN, Release 39: # DR EMBL; [snip]; -. [EMBL / GenBank / DDBJ] [CoDingSequence] # DR PRODOM [Domain structure / List of seq. sharing at least 1 domai # DR SWISS-2DPAGE; GET REGION ON 2D PAGE. line = line[5:] # Remove the comments at the end of the line i = string.find(line, '[') if i >= 0: line = line[:i] cols = string.split(self._chomp(string.rstrip(line)), ';') for i in range(len(cols)): cols[i] = string.lstrip(cols[i]) self.data.cross_references.append(tuple(cols))
|
ade8039411341728bf4bd4dc20b4f5d9433c8f82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/ade8039411341728bf4bd4dc20b4f5d9433c8f82/SProt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2063,
67,
14653,
67,
6180,
12,
2890,
16,
980,
4672,
468,
6338,
385,
12069,
21,
67,
44,
2799,
1258,
16,
10819,
16977,
30,
468,
16801,
282,
7141,
14618,
31,
306,
8134,
625,
15533,
300,
18,
306,
3375,
14618,
342,
10938,
16040,
342,
463,
2290,
46,
65,
306,
4249,
40,
310,
4021,
65,
468,
16801,
282,
11770,
1212,
1872,
306,
3748,
3695,
342,
987,
434,
3833,
18,
21001,
622,
4520,
404,
4092,
10658,
468,
16801,
282,
16392,
25689,
17,
22,
8640,
2833,
31,
4978,
11980,
1146,
6229,
576,
40,
11549,
18,
980,
273,
980,
63,
25,
26894,
468,
3581,
326,
5678,
622,
326,
679,
434,
326,
980,
277,
273,
533,
18,
4720,
12,
1369,
16,
8375,
13,
309,
277,
1545,
374,
30,
980,
273,
980,
10531,
77,
65,
5347,
273,
365,
6315,
343,
20667,
12,
1369,
18,
86,
6406,
1435,
2934,
4939,
2668,
4359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
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,
2063,
67,
14653,
67,
6180,
12,
2890,
16,
980,
4672,
468,
6338,
385,
12069,
21,
67,
44,
2799,
1258,
16,
10819,
16977,
30,
468,
16801,
282,
7141,
14618,
31,
306,
8134,
625,
15533,
300,
18,
306,
3375,
14618,
342,
10938,
16040,
342,
463,
2290,
46,
65,
306,
4249,
40,
310,
4021,
65,
468,
16801,
282,
11770,
1212,
1872,
306,
3748,
3695,
342,
987,
434,
3833,
18,
21001,
622,
4520,
404,
4092,
10658,
468,
16801,
282,
16392,
25689,
17,
22,
8640,
2833,
31,
4978,
11980,
1146,
6229,
576,
40,
11549,
18,
980,
273,
980,
63,
25,
26894,
468,
3581,
326,
5678,
622,
326,
679,
434,
326,
980,
277,
273,
533,
18,
4720,
12,
1369,
16,
8375,
13,
309,
277,
2
] |
p1 = plot(list11,list12,linestyle='None', marker='o',\
|
p1 = pylab.plot(list11,list12,linestyle='None', marker='o',\
|
def makeScatteredPlot(chan,opts,distribution,list11=None,list12=None,list21=None,list22=None,list31=None,list32=None,figNumber=None): p1 = None p2 = None p3 = None parameter = distribution.split('-')[0] figure(figNumber) ax = subplot(111) ax.set_xscale('log') ax.set_yscale('log') if list11 and list12: p1 = plot(list11,list12,linestyle='None', marker='o',\ markerfacecolor='k', markeredgecolor='k',\ markersize=4, markeredgewidth=0) if list21 and list22: p2 = plot(list21,list22,linestyle='None', marker='v',\ markerfacecolor='r', markeredgecolor='r',\ markersize=4, markeredgewidth=0) if list31 and list32: p3 = plot(list31,list32,linestyle='None', marker='s',\ markerfacecolor='r', markeredgecolor='r',\ markersize=8, markeredgewidth=0) grid() xlabel('Z in ' + chan,size='x-large') ylabel('Z in ' + opts.ref_channel,size='x-large') title('Scattered plot of significance for channel: ' + chan) if p1 and p2 and p3: legend((p1,p2,p3),('background','foreground','candidate'),loc = 'upper right') lim = max(max(list11),max(list12),max(list21),max(list22),max(list31),max(list32)) if p1 and p2 and not p3: legend((p1,p2),('background','foreground'),loc = 'upper right') lim = max(max(list11),max(list12),max(list21),max(list22)) if p1 and not p2 and p3: legend((p1,p3),('background','candidate'),loc = 'upper right') lim = max(max(list11),max(list12),max(list31),max(list32)) if p1 and not p2 and not p3:
|
3a58220c8f9b9cb9764dcae94b5a4569bed72c68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/3a58220c8f9b9cb9764dcae94b5a4569bed72c68/analyseQscan.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1541,
9293,
329,
11532,
12,
7472,
16,
4952,
16,
16279,
16,
1098,
2499,
33,
7036,
16,
1098,
2138,
33,
7036,
16,
1098,
5340,
33,
7036,
16,
1098,
3787,
33,
7036,
16,
1098,
6938,
33,
7036,
16,
1098,
1578,
33,
7036,
16,
470,
1854,
33,
7036,
4672,
293,
21,
273,
599,
293,
22,
273,
599,
293,
23,
273,
599,
1569,
273,
7006,
18,
4939,
2668,
17,
6134,
63,
20,
65,
7837,
12,
470,
1854,
13,
225,
1740,
273,
19826,
12,
20227,
13,
1740,
18,
542,
67,
92,
5864,
2668,
1330,
6134,
1740,
18,
542,
67,
1900,
1869,
2668,
1330,
6134,
225,
309,
666,
2499,
471,
666,
2138,
30,
293,
21,
273,
2395,
7411,
18,
4032,
12,
1098,
2499,
16,
1098,
2138,
16,
7511,
19706,
2218,
7036,
2187,
5373,
2218,
83,
2187,
64,
5373,
865,
3266,
2218,
79,
2187,
5373,
329,
75,
25028,
2218,
79,
2187,
64,
11754,
554,
33,
24,
16,
5373,
329,
75,
14434,
33,
20,
13,
225,
309,
666,
5340,
471,
666,
3787,
30,
293,
22,
273,
3207,
12,
1098,
5340,
16,
1098,
3787,
16,
7511,
19706,
2218,
7036,
2187,
5373,
2218,
90,
2187,
64,
5373,
865,
3266,
2218,
86,
2187,
5373,
329,
75,
25028,
2218,
86,
2187,
64,
11754,
554,
33,
24,
16,
5373,
329,
75,
14434,
33,
20,
13,
225,
309,
666,
6938,
471,
666,
1578,
30,
293,
23,
273,
3207,
12,
1098,
6938,
16,
1098,
1578,
16,
7511,
19706,
2218,
7036,
2187,
5373,
2218,
87,
2187,
64,
5373,
865,
3266,
2218,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1541,
9293,
329,
11532,
12,
7472,
16,
4952,
16,
16279,
16,
1098,
2499,
33,
7036,
16,
1098,
2138,
33,
7036,
16,
1098,
5340,
33,
7036,
16,
1098,
3787,
33,
7036,
16,
1098,
6938,
33,
7036,
16,
1098,
1578,
33,
7036,
16,
470,
1854,
33,
7036,
4672,
293,
21,
273,
599,
293,
22,
273,
599,
293,
23,
273,
599,
1569,
273,
7006,
18,
4939,
2668,
17,
6134,
63,
20,
65,
7837,
12,
470,
1854,
13,
225,
1740,
273,
19826,
12,
20227,
13,
1740,
18,
542,
67,
92,
5864,
2668,
1330,
6134,
1740,
18,
542,
67,
1900,
1869,
2668,
1330,
6134,
225,
309,
666,
2499,
471,
666,
2138,
30,
293,
21,
273,
2395,
7411,
18,
4032,
12,
1098,
2499,
2
] |
/.../RunPython .../application/tests/TestCrypto.py -v
|
/.../RunPython application/tests/TestCrypto.py -v
|
def main(options): """ >>> options = parseOptions() >>> options.dryrun = True >>> options.verbose = True >>> main(options) False Try and run a test that does not exist >>> options.single = 'TestFoo.py' >>> main(options) Test(s) not found False Try different single tests single unit test: >>> options.single = 'TestCrypto' >>> main(options) /.../RunPython .../application/tests/TestCrypto.py -v - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + False unit test and functional test: >>> options.single = 'TestCrypto,TestSharing' >>> main(options) /.../RunChandler --create --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --chandlerTests=TestSharing -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /.../RunPython .../application/tests/TestCrypto.py -v - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + False unit, functional and two perf tests, one of which is a startup test: >>> options.single = 'TestCrypto,TestSharing,PerfImportCalendar,startup_large' >>> main(options) /.../RunChandler --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --catsPerfLog=.../test_profile/time.log --scriptFile=.../tools/QATestScripts/Performance/PerfImportCalendar.py --create PerfImportCalendar.py | 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /.../RunChandler --create --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --chandlerTests=TestSharing -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /.../RunPython .../application/tests/TestCrypto.py -v - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + Creating repository for startup time tests /.../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --scriptFile=.../tools/QATestScripts/Performance/quit.py --restore=.../test_profile/__repository__.001 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + Startup_with_large_calendar /usr/bin/time --format=%e -o .../test_profile/time.log .../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --scriptFile=.../tools/QATestScripts/Performance/end.py 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + ... False Try and specify an invalid mode >>> options.single = '' >>> options.mode = 'foo' >>> main(options) foo removed from mode list False Run unit tests with --dryrun >>> options.mode = None >>> options.unit = True >>> main(options) /.../RunPython... .../tests/TestReferenceAttributes.py -v ... /.../RunPython... .../projects/Chandler-EVDBPlugin/setup.py test -v ... False Run unitSuite with --dryrun >>> options.mode = None >>> options.unit = False >>> options.unitSuite = True >>> main(options) /.../RunPython .../tools/run_tests.py -v application i18n osaf repository - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + False Run functional tests with --dryrun >>> options.unit = False >>> options.unitSuite = False >>> options.funcSuite = True >>> main(options) /.../RunChandler... --create --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --scriptFile=.../tools/cats/Functional/FunctionalTestSuite.py -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + False Run functional tests each in its on process >>> options.funcSuite = False >>> options.func = True >>> main(options) /.../RunChandler... --create --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --chandlerTests=TestCreateAccounts -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + ... False Run performance tests with --dryrun >>> options.func = False >>> options.perf = True >>> options.profile = False >>> main(options) /.../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --catsPerfLog=.../test_profile/time.log --scriptFile=.../tools/QATestScripts/Performance/PerfImportCalendar.py --create PerfImportCalendar.py | 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + ... /.../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --catsPerfLog=.../test_profile/time.log --scriptFile=.../tools/QATestScripts/Performance/PerfLargeDataResizeCalendar.py --restore=.../test_profile/__repository__.001 PerfLargeDataResizeCalendar.py | 0.00 ... Creating repository for startup time tests /.../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --scriptFile=.../tools/QATestScripts/Performance/quit.py --create - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + Startup /usr/bin/time --format=%e -o .../test_profile/time.log .../RunChandler... --catch=tests --profileDir=.../test_profile --parcelPath=.../tools/QATestScripts/DataFiles --scriptFile=.../tools/QATestScripts/Performance/end.py 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + ... False """ checkOptions(options) if options.mode is None: options.modes = modes = ['release', 'debug'] # silently clear any missing modes if default list is specified for mode in modes: if not os.path.isdir(os.path.join(options.chandlerBin, mode)): options.modes.remove(mode) else: options.mode = options.mode.strip().lower() options.modes = [ options.mode ] # complain about any missing modes if mode was explicitly stated if not os.path.isdir(os.path.join(options.chandlerBin, options.mode)): options.modes.remove(options.mode) log('%s removed from mode list' % options.mode) failed = False try: # Empty the log file so that we won't be confused by old results later f = open(os.path.join(options.profileDir, 'chandler.log'), 'w') f.close() except IOError: pass # Remove old perf log files (we leave the the latest) for f in glob.glob(os.path.join(options.profileDir, '*.log.*')): try: os.remove(f) except OSError: pass if options.single: failed = runSingles(options) else: if options.unit: failed = runUnitTests(options) if not failed or options.noStop: if runPluginTests(options): failed = True if options.unitSuite and (not failed or options.noStop): if runUnitSuite(options): failed = True if options.funcSuite and (not failed or options.noStop): if runFuncTest(options): failed = True if options.func and (not failed or options.noStop): if runFuncTestsSingly(options): failed = True if options.recorded and (not failed or options.noStop): if runRecordedScripts(options): failed = True if options.perf and (not failed or options.noStop): if runPerfTests(options): failed = True if len(failedTests) > 0: log('+-' * 32) log('The following tests failed:') log('\n'.join(failedTests)) log('') return failed
|
ad17cec5f290a1afe127c78e0b20723aa8b8bf15 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/ad17cec5f290a1afe127c78e0b20723aa8b8bf15/rt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
4672,
3536,
4080,
702,
273,
1109,
1320,
1435,
4080,
702,
18,
25011,
2681,
225,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
2774,
12,
2116,
13,
1083,
225,
6161,
471,
1086,
279,
1842,
716,
1552,
486,
1005,
225,
4080,
702,
18,
7526,
273,
296,
4709,
42,
5161,
18,
2074,
11,
4080,
2774,
12,
2116,
13,
7766,
12,
87,
13,
486,
1392,
1083,
225,
6161,
3775,
2202,
7434,
225,
2202,
2836,
1842,
30,
225,
4080,
702,
18,
7526,
273,
296,
4709,
18048,
11,
4080,
2774,
12,
2116,
13,
342,
2777,
19,
1997,
15774,
2521,
19,
16341,
19,
4709,
18048,
18,
2074,
300,
90,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
1083,
225,
2836,
1842,
471,
18699,
1842,
30,
225,
4080,
702,
18,
7526,
273,
296,
4709,
18048,
16,
4709,
22897,
11,
4080,
2774,
12,
2116,
13,
342,
2777,
19,
1997,
782,
464,
749,
1493,
2640,
1493,
14683,
33,
16341,
1493,
5040,
1621,
33,
2777,
19,
3813,
67,
5040,
1493,
1065,
2183,
743,
33,
2777,
19,
6642,
19,
53,
789,
395,
15041,
19,
751,
2697,
1493,
343,
464,
749,
14650,
33,
4709,
22897,
300,
40,
22,
300,
49,
20,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
342,
2777,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
4672,
3536,
4080,
702,
273,
1109,
1320,
1435,
4080,
702,
18,
25011,
2681,
225,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
2774,
12,
2116,
13,
1083,
225,
6161,
471,
1086,
279,
1842,
716,
1552,
486,
1005,
225,
4080,
702,
18,
7526,
273,
296,
4709,
42,
5161,
18,
2074,
11,
4080,
2774,
12,
2116,
13,
7766,
12,
87,
13,
486,
1392,
1083,
225,
6161,
3775,
2202,
7434,
225,
2202,
2836,
1842,
30,
225,
4080,
702,
18,
7526,
273,
296,
4709,
18048,
11,
4080,
2774,
12,
2116,
13,
342,
2777,
19,
1997,
15774,
2521,
19,
16341,
19,
4709,
18048,
18,
2074,
300,
90,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
2
] |
Rredir = re.compile('\<li\>\<a href=".+?" title=(.*?)">')
|
Rredir = re.compile('\<li\>\<a href=".+?" title="(.*?)">')
|
def retrieve_double_redirects(self): if self.source == None: mysite = wikipedia.getSite() # retrieve information from the live wiki's maintenance page host = mysite.hostname() # double redirect maintenance page's URL url = mysite.double_redirects_address(default_limit = False) print 'Retrieving special page...' maintenance_txt, charset = wikipedia.getUrl(host, url, mysite) # regular expression which finds redirects which point to another redirect inside the HTML Rredir = re.compile('\<li\>\<a href=".+?" title=(.*?)">') redir_names = Rredir.findall(maintenance_txt) print 'Retrieved %d redirects from special page.\n' % len(redir_names) for redir_name in redir_names: yield redir_name else: dict = self.get_redirects_from_dump() num = 0 for (key, value) in dict.iteritems(): num += 1 # check if the value - that is, the redirect target - is a # redirect as well if num>self.restart and dict.has_key(value): print 'Checking redirect %s/%s' % (num, len(dict)) yield key
|
b608ccb963afca2b0416c86c43858ffda9d7a31e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/b608ccb963afca2b0416c86c43858ffda9d7a31e/redirect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4614,
67,
9056,
67,
22715,
12,
2890,
4672,
309,
365,
18,
3168,
422,
599,
30,
312,
1900,
1137,
273,
21137,
18,
588,
4956,
1435,
468,
4614,
1779,
628,
326,
8429,
9050,
1807,
18388,
1363,
1479,
273,
312,
1900,
1137,
18,
10358,
1435,
468,
1645,
3136,
18388,
1363,
1807,
1976,
880,
273,
312,
1900,
1137,
18,
9056,
67,
22715,
67,
2867,
12,
1886,
67,
3595,
273,
1083,
13,
225,
1172,
296,
3848,
6282,
4582,
1363,
7821,
18388,
67,
5830,
16,
4856,
273,
21137,
18,
588,
1489,
12,
2564,
16,
880,
16,
312,
1900,
1137,
13,
225,
468,
6736,
2652,
1492,
13094,
18064,
1492,
1634,
358,
4042,
3136,
4832,
326,
3982,
534,
1118,
481,
273,
283,
18,
11100,
2668,
64,
32,
549,
64,
5333,
32,
69,
3897,
1546,
15591,
7225,
2077,
1546,
7444,
35,
2225,
1870,
13,
283,
1214,
67,
1973,
273,
534,
1118,
481,
18,
4720,
454,
12,
29715,
67,
5830,
13,
1172,
296,
3848,
2155,
738,
72,
18064,
628,
4582,
1363,
8403,
82,
11,
738,
562,
12,
1118,
481,
67,
1973,
13,
364,
283,
1214,
67,
529,
316,
283,
1214,
67,
1973,
30,
2824,
283,
1214,
67,
529,
469,
30,
2065,
273,
365,
18,
588,
67,
22715,
67,
2080,
67,
8481,
1435,
818,
273,
374,
364,
261,
856,
16,
460,
13,
316,
2065,
18,
2165,
3319,
13332,
818,
1011,
404,
468,
866,
309,
326,
460,
300,
716,
353,
16,
326,
3136,
1018,
300,
353,
279,
468,
3136,
487,
5492,
309,
818,
34,
2890,
18,
19164,
471,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4614,
67,
9056,
67,
22715,
12,
2890,
4672,
309,
365,
18,
3168,
422,
599,
30,
312,
1900,
1137,
273,
21137,
18,
588,
4956,
1435,
468,
4614,
1779,
628,
326,
8429,
9050,
1807,
18388,
1363,
1479,
273,
312,
1900,
1137,
18,
10358,
1435,
468,
1645,
3136,
18388,
1363,
1807,
1976,
880,
273,
312,
1900,
1137,
18,
9056,
67,
22715,
67,
2867,
12,
1886,
67,
3595,
273,
1083,
13,
225,
1172,
296,
3848,
6282,
4582,
1363,
7821,
18388,
67,
5830,
16,
4856,
273,
21137,
18,
588,
1489,
12,
2564,
16,
880,
16,
312,
1900,
1137,
13,
225,
468,
6736,
2652,
1492,
13094,
18064,
1492,
1634,
358,
4042,
3136,
4832,
326,
3982,
534,
1118,
481,
273,
283,
18,
11100,
2668,
64,
2
] |
(x, y, z) -- offset of map top left from origin in pixels cells -- array [x][y] of Cell instances
|
(origin_x, origin_y, origin_z) -- offset of map top left from origin in pixels cells -- array [i][j] of Cell instances
|
def get_virtual_coordinates(self, x, y): '''Translate window-space coordinates to pixel coordinates in the layer's space. This will include any transformation from the director and viewport translation. ''' x, y = director.get_virtual_coordinates(x, y) return x+self.viewport_x, y+self.viewport_y
|
ae46287e32a1e7a487f4f47ee34d687ee3d6604c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/ae46287e32a1e7a487f4f47ee34d687ee3d6604c/tiles.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12384,
67,
16941,
12,
2890,
16,
619,
16,
677,
4672,
9163,
12818,
2742,
17,
2981,
5513,
358,
4957,
5513,
316,
326,
3018,
1807,
3476,
18,
1220,
903,
2341,
1281,
8620,
628,
326,
2657,
280,
471,
10482,
4794,
18,
9163,
619,
16,
677,
273,
2657,
280,
18,
588,
67,
12384,
67,
16941,
12,
92,
16,
677,
13,
327,
619,
15,
2890,
18,
28852,
67,
92,
16,
677,
15,
2890,
18,
28852,
67,
93,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12384,
67,
16941,
12,
2890,
16,
619,
16,
677,
4672,
9163,
12818,
2742,
17,
2981,
5513,
358,
4957,
5513,
316,
326,
3018,
1807,
3476,
18,
1220,
903,
2341,
1281,
8620,
628,
326,
2657,
280,
471,
10482,
4794,
18,
9163,
619,
16,
677,
273,
2657,
280,
18,
588,
67,
12384,
67,
16941,
12,
92,
16,
677,
13,
327,
619,
15,
2890,
18,
28852,
67,
92,
16,
677,
15,
2890,
18,
28852,
67,
93,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Multiplicative Abelian Group isomorphic to Z x C64, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [b*c, d]
|
Multiplicative Abelian Group isomorphic to C64 x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C30 x C64 x C729 generated by [b*c, d]
|
def __init__(self, ambient, gens, names="f"): """
|
b65442735772ceff5c9acdb22a37ed84013525ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/b65442735772ceff5c9acdb22a37ed84013525ec/abelian_group.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.output_write("recur: [%s] %s %d/%d\n" % (",".join(selected), "", len(packages), len(extra)))
|
self.output_write("recur: [%s] %s %d/%d\n" % ("", ",".join(selected), len(packages), len(extra)))
|
def iter_packages(self, packages, selected, hint=False): """Iter on the list of actions and apply them one-by-one
|
ab0576817151497fdda52a6927ea2e47cb997bd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/ab0576817151497fdda52a6927ea2e47cb997bd6/britney.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
3170,
16,
7380,
33,
8381,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
3170,
16,
7380,
33,
8381,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return anc[0].getPublishURL() + "
|
return anc[0].getPublishURL() + "
|
def getPublishURL(self): anc = self.findAncestors(DocPage) if len(anc) == 0: return None return anc[0].getPublishURL() + "#" + self.id + ".html"
|
b3fec8010c2cc71148f7fef05ae41ff75a97aea2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10467/b3fec8010c2cc71148f7fef05ae41ff75a97aea2/webdoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27480,
1785,
12,
2890,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27480,
1785,
12,
2890,
4672,
392,
71,
273,
365,
18,
4720,
28304,
12,
1759,
1964,
13,
309,
562,
12,
19292,
13,
422,
374,
30,
327,
599,
327,
392,
71,
63,
20,
8009,
588,
6024,
1785,
1435,
397,
13092,
397,
365,
18,
350,
397,
3552,
2620,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
primes up to bound.
|
primes up to ``bound``.
|
def saturate(self, bound=-1): """ Compute the saturation of the Mordell-Weil group at all primes up to bound.
|
9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5942,
295,
340,
12,
2890,
16,
2489,
29711,
21,
4672,
3536,
8155,
326,
22824,
434,
326,
490,
517,
1165,
17,
3218,
330,
1041,
622,
777,
846,
4485,
731,
358,
2489,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5942,
295,
340,
12,
2890,
16,
2489,
29711,
21,
4672,
3536,
8155,
326,
22824,
434,
326,
490,
517,
1165,
17,
3218,
330,
1041,
622,
777,
846,
4485,
731,
358,
2489,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
wikipedia.output(u'Page %s is a disambiguation page' % page.title())
|
wikipedia.output(u'Page %s is a disambiguation page' % page.aslink())
|
def run(self): """ Starts the robot. """ # Run the generator which will yield Pages which might need to be # checked. for page in self.generator: try: # Load the page's text from the wiki original_text = page.get() except wikipedia.NoPage: wikipedia.output(u'Page %s not found' % page.title()) continue except wikipedia.IsRedirectPage: original_text = page.get(get_redirect=True)
|
df982418feb2fee96037cb0fe13fcf2215c639bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/df982418feb2fee96037cb0fe13fcf2215c639bd/copyright.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
30620,
326,
14386,
18,
3536,
468,
1939,
326,
4456,
1492,
903,
2824,
22648,
1492,
4825,
1608,
358,
506,
468,
5950,
18,
364,
1363,
316,
365,
18,
8812,
30,
775,
30,
468,
4444,
326,
1363,
1807,
977,
628,
326,
9050,
2282,
67,
955,
273,
1363,
18,
588,
1435,
1335,
21137,
18,
2279,
1964,
30,
21137,
18,
2844,
12,
89,
11,
1964,
738,
87,
486,
1392,
11,
738,
1363,
18,
2649,
10756,
1324,
1335,
21137,
18,
2520,
5961,
1964,
30,
2282,
67,
955,
273,
1363,
18,
588,
12,
588,
67,
7590,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
3536,
30620,
326,
14386,
18,
3536,
468,
1939,
326,
4456,
1492,
903,
2824,
22648,
1492,
4825,
1608,
358,
506,
468,
5950,
18,
364,
1363,
316,
365,
18,
8812,
30,
775,
30,
468,
4444,
326,
1363,
1807,
977,
628,
326,
9050,
2282,
67,
955,
273,
1363,
18,
588,
1435,
1335,
21137,
18,
2279,
1964,
30,
21137,
18,
2844,
12,
89,
11,
1964,
738,
87,
486,
1392,
11,
738,
1363,
18,
2649,
10756,
1324,
1335,
21137,
18,
2520,
5961,
1964,
30,
2282,
67,
955,
273,
1363,
18,
588,
12,
588,
67,
7590,
33,
5510,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
bt.clicked = (my_list_show_it, it1)
|
bt.callback_clicked_add(my_list_show_it, it1)
|
def list_clicked(obj, event, *args, **kargs): win = elementary.Window("list", elementary.ELM_WIN_BASIC) win.title_set("List") win.autodel_set(True) bg = elementary.Background(win) win.resize_object_add(bg) bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bg.show() li = elementary.List(win) win.resize_object_add(li) li.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) ic = elementary.Icon(win) ic.file_set('images/logo_small.png') ic.scale_set(1, 1) it1 = li.item_append("Hello", ic) ic = elementary.Icon(win) ic.file_set('images/logo_small.png') ic.scale_set(0, 0) li.item_append("Hello", ic) ic = elementary.Icon(win) ic.standard_set("edit") ic.scale_set(0, 0) li.item_append(".", ic) ic = elementary.Icon(win) ic.standard_set("delete") ic.scale_set(0, 0) ic2 = elementary.Icon(win) ic2.standard_set("clock") ic2.scale_set(0, 0) it2 = li.item_append("How", ic, ic2) bx = elementary.Box(win) bx.horizontal_set(True) ic = elementary.Icon(win) ic.file_set('images/logo_small.png') ic.scale_set(0, 0) ic.size_hint_align_set(0.5, 0.5) bx.pack_end(ic) ic.show() ic = elementary.Icon(win) ic.file_set('images/logo_small.png') ic.scale_set(0, 0) ic.size_hint_align_set(0.5, 0.0) bx.pack_end(ic) ic.show() ic = elementary.Icon(win) ic.file_set('images/logo_small.png') ic.scale_set(0, 0) ic.size_hint_align_set(0.0, evas.EVAS_HINT_EXPAND) bx.pack_end(ic) ic.show() li.item_append("are") li.item_append("you") it3 = li.item_append("doing") li.item_append("out") li.item_append("there") li.item_append("today") li.item_append("?") it4 = li.item_append("Here") li.item_append("are") li.item_append("some") li.item_append("more") li.item_append("items") li.item_append("Is this label long enough?") it5 = li.item_append("Maybe this one is even longer so we can test long long items.") li.go() li.show() tb2 = elementary.Table(win) tb2.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) win.resize_object_add(tb2) bt = elementary.Button(win) bt.label_set("Hello") bt.clicked = (my_list_show_it, it1) bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bt.size_hint_align_set(0.9, 0.5) tb2.pack(bt, 0, 0, 1, 1); bt.show() bt = elementary.Button(win) bt.label_set("How") bt.clicked = (my_list_show_it, it2) bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bt.size_hint_align_set(0.9, 0.5) tb2.pack(bt, 0, 1, 1, 1); bt.show() bt = elementary.Button(win) bt.label_set("doing") bt.clicked = (my_list_show_it, it3) bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bt.size_hint_align_set(0.9, 0.5) tb2.pack(bt, 0, 2, 1, 1); bt.show() bt = elementary.Button(win) bt.label_set("Here") bt.clicked = (my_list_show_it, it4) bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bt.size_hint_align_set(0.9, 0.5) tb2.pack(bt, 0, 3, 1, 1); bt.show() bt = elementary.Button(win) bt.label_set("Maybe this...") bt.clicked = (my_list_show_it, it5) bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bt.size_hint_align_set(0.9, 0.5) tb2.pack(bt, 0, 4, 1, 1); bt.show() tb2.show() win.resize(320, 320) win.show()
|
ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
7475,
329,
12,
2603,
16,
871,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
1098,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
682,
7923,
5657,
18,
5854,
1009,
67,
542,
12,
5510,
13,
225,
7611,
273,
930,
814,
18,
8199,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
12370,
13,
7611,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
7611,
18,
4500,
1435,
225,
4501,
273,
930,
814,
18,
682,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
549,
13,
4501,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
225,
13579,
273,
930,
814,
18,
5554,
12,
8082,
13,
13579,
18,
768,
67,
542,
2668,
7369,
19,
19882,
67,
12019,
18,
6446,
6134,
13579,
18,
5864,
67,
542,
12,
21,
16,
404,
13,
518,
21,
273,
4501,
18,
1726,
67,
6923,
2932,
18601,
3113,
13579,
13,
13579,
273,
930,
814,
18,
5554,
12,
8082,
13,
13579,
18,
768,
67,
542,
2668,
7369,
19,
19882,
67,
12019,
18,
6446,
6134,
13579,
18,
5864,
67,
542,
12,
20,
16,
374,
13,
4501,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
7475,
329,
12,
2603,
16,
871,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
1098,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
682,
7923,
5657,
18,
5854,
1009,
67,
542,
12,
5510,
13,
225,
7611,
273,
930,
814,
18,
8199,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
12370,
13,
7611,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
7611,
18,
4500,
1435,
225,
4501,
273,
930,
814,
18,
682,
12,
2
] |
event=buttonPressed)
|
event=buttonPressed, stretchFactor=0.0, minimumSize=SizeType(30, 17))
|
def makeMarkupBar(parcel, oldVersion): """ Build the markup bar. """ # Each button just sends this event to itself. buttonPressed = BlockEvent.template('ButtonPressed', 'SendToSender').install(parcel) # The buttons. mailMessageButton = \ MailMessageButtonBlock.template('MailMessageButton', title=messages.STAMP_MAIL, buttonKind="Stamp", icon="MarkupMail", helpString=messages.STAMP_MAIL_HELP, event=buttonPressed) taskStamp = \ TaskStampBlock.template('TaskStamp', title=messages.STAMP_TASK, buttonKind="Stamp", icon="MarkupTask", helpString=messages.STAMP_TASK_HELP, event=buttonPressed) calendarStamp = \ CalendarStampBlock.template('CalendarStamp', title=messages.STAMP_CALENDAR, buttonKind="Stamp", icon="MarkupEvent", helpString=messages.STAMP_CALENDAR_HELP, event=buttonPressed) privateSwitchButton = \ PrivateSwitchButtonBlock.template('PrivateSwitchButton', title=messages.PRIVATE, buttonKind="Stamp", icon="MarkupPrivate", helpString=messages.PRIVATE, event=buttonPressed) readOnlyIcon = \ ReadOnlyIconBlock.template('ReadOnlyIcon', title=messages.READONLY, buttonKind="Stamp", icon="MarkupReadOnly", helpString=messages.READONLY, event=buttonPressed) markupBar = ControlBlocks.ContentItemDetail.template('MarkupBar', childrenBlocks=[mailMessageButton, taskStamp, calendarStamp, privateSwitchButton, readOnlyIcon], position=0.0, toolSize=SizeType(30, 17), separatorWidth=16, stretchFactor=0.0).install(parcel)
|
99083d473c3626e88e77945ee9f465a9ba596960 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/99083d473c3626e88e77945ee9f465a9ba596960/detailblocks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
13111,
5190,
12,
1065,
2183,
16,
1592,
1444,
4672,
3536,
3998,
326,
9813,
4653,
18,
3536,
225,
468,
8315,
3568,
2537,
9573,
333,
871,
358,
6174,
18,
3568,
24624,
273,
3914,
1133,
18,
3202,
2668,
3616,
24624,
2187,
296,
3826,
774,
12021,
16063,
5425,
12,
1065,
2183,
13,
225,
468,
1021,
9502,
18,
4791,
1079,
3616,
273,
521,
11542,
1079,
3616,
1768,
18,
3202,
2668,
6759,
1079,
3616,
2187,
2077,
33,
6833,
18,
12192,
67,
18191,
16,
3568,
5677,
1546,
8860,
3113,
4126,
1546,
13111,
6759,
3113,
2809,
780,
33,
6833,
18,
12192,
67,
18191,
67,
27396,
16,
871,
33,
5391,
24624,
16,
31435,
6837,
33,
20,
18,
20,
16,
5224,
1225,
33,
1225,
559,
12,
5082,
16,
8043,
3719,
225,
1562,
8860,
273,
521,
3837,
8860,
1768,
18,
3202,
2668,
2174,
8860,
2187,
2077,
33,
6833,
18,
12192,
67,
15580,
16,
3568,
5677,
1546,
8860,
3113,
4126,
1546,
13111,
2174,
3113,
2809,
780,
33,
6833,
18,
12192,
67,
15580,
67,
27396,
16,
871,
33,
5391,
24624,
16,
31435,
6837,
33,
20,
18,
20,
16,
5224,
1225,
33,
1225,
559,
12,
5082,
16,
8043,
3719,
225,
5686,
8860,
273,
521,
5542,
8860,
1768,
18,
3202,
2668,
7335,
8860,
2187,
2077,
33,
6833,
18,
12192,
67,
12983,
29154,
16,
3568,
5677,
1546,
8860,
3113,
4126,
1546,
13111,
1133,
3113,
2809,
780,
33,
6833,
18,
12192,
67,
12983,
29154,
67,
27396,
16,
871,
33,
5391,
24624,
16,
31435,
6837,
33,
20,
18,
20,
16,
5224,
1225,
33,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13111,
5190,
12,
1065,
2183,
16,
1592,
1444,
4672,
3536,
3998,
326,
9813,
4653,
18,
3536,
225,
468,
8315,
3568,
2537,
9573,
333,
871,
358,
6174,
18,
3568,
24624,
273,
3914,
1133,
18,
3202,
2668,
3616,
24624,
2187,
296,
3826,
774,
12021,
16063,
5425,
12,
1065,
2183,
13,
225,
468,
1021,
9502,
18,
4791,
1079,
3616,
273,
521,
11542,
1079,
3616,
1768,
18,
3202,
2668,
6759,
1079,
3616,
2187,
2077,
33,
6833,
18,
12192,
67,
18191,
16,
3568,
5677,
1546,
8860,
3113,
4126,
1546,
13111,
6759,
3113,
2809,
780,
33,
6833,
18,
12192,
67,
18191,
67,
27396,
16,
871,
33,
5391,
24624,
16,
31435,
6837,
33,
20,
18,
20,
16,
5224,
1225,
33,
1225,
559,
12,
5082,
2
] |
(tred, tgreen, tblue) = map(ord, PILImage.palette.data[transparency:transparency+3])
|
palette = PILImage.palette try: palette = palette.palette except: palette = palette.data (tred, tgreen, tblue) = map(ord, palette[transparency:transparency+3])
|
def _checkTransparency(self,PILImage): if self.mask=='auto': if PILImage.info.has_key("transparency") : transparency = PILImage.info["transparency"] * 3 (tred, tgreen, tblue) = map(ord, PILImage.palette.data[transparency:transparency+3]) self.mask = (tred, tred, tgreen, tgreen, tblue, tblue) else: self.mask = None elif hasattr(self.mask,'rgb'): self.mask = self.mask.rgb()+self.mask.rgb()
|
ac46cc9741821f75ae93c3dc546594d4a16dd322 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/ac46cc9741821f75ae93c3dc546594d4a16dd322/pdfdoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
1429,
18258,
12,
2890,
16,
1102,
48,
2040,
4672,
309,
365,
18,
4455,
18920,
6079,
4278,
309,
29407,
2040,
18,
1376,
18,
5332,
67,
856,
2932,
2338,
18258,
7923,
294,
27472,
273,
29407,
2040,
18,
1376,
9614,
2338,
18258,
11929,
380,
890,
12127,
273,
29407,
2040,
18,
26474,
775,
30,
12127,
273,
12127,
18,
26474,
1335,
30,
12127,
273,
12127,
18,
892,
261,
88,
1118,
16,
268,
11571,
16,
10142,
344,
13,
273,
852,
12,
517,
16,
12127,
63,
2338,
18258,
30,
2338,
18258,
15,
23,
5717,
365,
18,
4455,
273,
261,
88,
1118,
16,
268,
1118,
16,
268,
11571,
16,
268,
11571,
16,
10142,
344,
16,
10142,
344,
13,
469,
30,
365,
18,
4455,
273,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1893,
1429,
18258,
12,
2890,
16,
1102,
48,
2040,
4672,
309,
365,
18,
4455,
18920,
6079,
4278,
309,
29407,
2040,
18,
1376,
18,
5332,
67,
856,
2932,
2338,
18258,
7923,
294,
27472,
273,
29407,
2040,
18,
1376,
9614,
2338,
18258,
11929,
380,
890,
12127,
273,
29407,
2040,
18,
26474,
775,
30,
12127,
273,
12127,
18,
26474,
1335,
30,
12127,
273,
12127,
18,
892,
261,
88,
1118,
16,
268,
11571,
16,
10142,
344,
13,
273,
852,
12,
517,
16,
12127,
63,
2338,
18258,
30,
2338,
18258,
15,
23,
5717,
365,
18,
4455,
273,
261,
88,
1118,
16,
268,
1118,
16,
268,
11571,
16,
268,
11571,
16,
10142,
344,
16,
10142,
344,
13,
469,
30,
365,
18,
4455,
273,
2
] |
if not value in potential_integraters
|
if not value in potential_integraters:
|
def check(key, value): '''Check that this thing is allowed to have this value.''' # this should be current! allowed_indexers = ['mosflm', 'labelit'] allowed_integraters = ['mosflm'] allowed_scalers = ['ccp4'] potential_indexers = ['mosflm', 'labelit', 'xds'] potential_integraters = ['mosflm', 'xds'] potential_scalers = ['ccp4', 'xscale'] if key == 'indexer': if not value in potential_indexers raise RuntimeError, 'indexer %s unknown' % value if not value in allowed_indexers: raise RuntimeError, 'indexer %s not supported yet' % value if key == 'integrater': if not value in potential_integraters raise RuntimeError, 'integrater %s unknown' % value if not value in allowed_integraters: raise RuntimeError, 'integrater %s not supported yet' % value if key == 'scaler': if not value in potential_scalers raise RuntimeError, 'scaler %s unknown' % value if not value in allowed_scalers: raise RuntimeError, 'scaler %s not supported yet' % value return
|
2e0fbec6b47e70d5033d2ecf0df4712ebbc0b9f3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/2e0fbec6b47e70d5033d2ecf0df4712ebbc0b9f3/PipelineSelection.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
856,
16,
460,
4672,
9163,
1564,
716,
333,
7757,
353,
2935,
358,
1240,
333,
460,
1093,
6309,
225,
468,
333,
1410,
506,
783,
5,
225,
2935,
67,
1615,
414,
273,
10228,
26719,
2242,
81,
2187,
296,
1925,
305,
3546,
2935,
67,
14970,
17048,
414,
273,
10228,
26719,
2242,
81,
3546,
2935,
67,
87,
771,
414,
273,
10228,
952,
84,
24,
3546,
225,
8555,
67,
1615,
414,
273,
10228,
26719,
2242,
81,
2187,
296,
1925,
305,
2187,
296,
92,
2377,
3546,
8555,
67,
14970,
17048,
414,
273,
10228,
26719,
2242,
81,
2187,
296,
92,
2377,
3546,
8555,
67,
87,
771,
414,
273,
10228,
952,
84,
24,
2187,
296,
92,
5864,
3546,
225,
309,
498,
422,
296,
24541,
4278,
309,
486,
460,
316,
8555,
67,
1615,
414,
1002,
7265,
16,
296,
24541,
738,
87,
5917,
11,
738,
460,
309,
486,
460,
316,
2935,
67,
1615,
414,
30,
1002,
7265,
16,
296,
24541,
738,
87,
486,
3260,
4671,
11,
738,
460,
225,
309,
498,
422,
296,
27423,
2045,
4278,
309,
486,
460,
316,
8555,
67,
14970,
17048,
414,
30,
1002,
7265,
16,
296,
27423,
2045,
738,
87,
5917,
11,
738,
460,
309,
486,
460,
316,
2935,
67,
14970,
17048,
414,
30,
1002,
7265,
16,
296,
27423,
2045,
738,
87,
486,
3260,
4671,
11,
738,
460,
225,
309,
498,
422,
296,
87,
13501,
4278,
309,
486,
460,
316,
8555,
67,
87,
771,
414,
1002,
7265,
16,
296,
87,
13501,
738,
87,
5917,
11,
738,
460,
309,
486,
460,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
856,
16,
460,
4672,
9163,
1564,
716,
333,
7757,
353,
2935,
358,
1240,
333,
460,
1093,
6309,
225,
468,
333,
1410,
506,
783,
5,
225,
2935,
67,
1615,
414,
273,
10228,
26719,
2242,
81,
2187,
296,
1925,
305,
3546,
2935,
67,
14970,
17048,
414,
273,
10228,
26719,
2242,
81,
3546,
2935,
67,
87,
771,
414,
273,
10228,
952,
84,
24,
3546,
225,
8555,
67,
1615,
414,
273,
10228,
26719,
2242,
81,
2187,
296,
1925,
305,
2187,
296,
92,
2377,
3546,
8555,
67,
14970,
17048,
414,
273,
10228,
26719,
2242,
81,
2187,
296,
92,
2377,
3546,
8555,
67,
87,
771,
414,
273,
10228,
952,
84,
24,
2187,
296,
92,
5864,
3546,
225,
309,
498,
422,
296,
24541,
2
] |
assert gc.collect() == 1
|
if gc.collect() != 1: raise TestFailed
|
def test_dict(): d = {} d[1] = d gc.collect() del d assert gc.collect() == 1
|
419afec2d7b22fe8cf5fdba072bbc63384a4dad6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/419afec2d7b22fe8cf5fdba072bbc63384a4dad6/test_gc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1576,
13332,
302,
273,
2618,
302,
63,
21,
65,
273,
302,
8859,
18,
14676,
1435,
1464,
302,
309,
8859,
18,
14676,
1435,
480,
404,
30,
1002,
7766,
2925,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"expires": str(int(timestamp)) + "000",
|
"expiry": timestamp,
|
def setUp(self): self.driver.get("http://localhost:%d/simpleTest.html" % self.webserver.port) timestamp = time.mktime(datetime.datetime.now().timetuple()) + 100 self.COOKIE_A = {"name": "foo", "value": "bar", "expires": str(int(timestamp)) + "000", "domain": "localhost", "path": "/", "secure": False}
|
c2b80fc54019bf6742076f687673211ea8fa2110 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3504/c2b80fc54019bf6742076f687673211ea8fa2110/cookie_tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
7407,
18,
588,
2932,
2505,
2207,
13014,
5319,
72,
19,
9647,
4709,
18,
2620,
6,
738,
365,
18,
1814,
2266,
502,
18,
655,
13,
2858,
273,
813,
18,
24816,
957,
12,
6585,
18,
6585,
18,
3338,
7675,
8584,
278,
2268,
10756,
397,
2130,
365,
18,
13584,
67,
37,
273,
12528,
529,
6877,
315,
11351,
3113,
315,
1132,
6877,
315,
3215,
3113,
315,
22409,
6877,
2858,
16,
315,
4308,
6877,
315,
13014,
3113,
315,
803,
6877,
2206,
3113,
315,
8869,
6877,
1083,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24292,
12,
2890,
4672,
365,
18,
7407,
18,
588,
2932,
2505,
2207,
13014,
5319,
72,
19,
9647,
4709,
18,
2620,
6,
738,
365,
18,
1814,
2266,
502,
18,
655,
13,
2858,
273,
813,
18,
24816,
957,
12,
6585,
18,
6585,
18,
3338,
7675,
8584,
278,
2268,
10756,
397,
2130,
365,
18,
13584,
67,
37,
273,
12528,
529,
6877,
315,
11351,
3113,
315,
1132,
6877,
315,
3215,
3113,
315,
22409,
6877,
2858,
16,
315,
4308,
6877,
315,
13014,
3113,
315,
803,
6877,
2206,
3113,
315,
8869,
6877,
1083,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.singleSpecName = os.path.basename( self.specFiles[self.mainJobSpecName])
|
self.singleJobDir = os.path.basename( self.specFiles[self.mainJobSpecName] )
|
def doSubmit(self): """r __doSubmit__
|
ff6a7293226c1c67657bcd81e072168fa6b68dbc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/ff6a7293226c1c67657bcd81e072168fa6b68dbc/BossLiteBulkInterface.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
11620,
12,
2890,
4672,
3536,
86,
1001,
2896,
11620,
972,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
741,
11620,
12,
2890,
4672,
3536,
86,
1001,
2896,
11620,
972,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def app_wrapper(*args):
|
def wsgiapp_wrapper(*args):
|
def app_wrapper(*args): # we get 3 args when this is a method, two when it is # a function :( if len(args) == 3: environ = args[1] start_response = args[2] args = [args[0]] else: environ, start_response = args args = [] def application(environ, start_response): form = wsgilib.parse_formvars(environ) headers = wsgilib.ResponseHeaderDict( {'content-type': 'text/html', 'status': '200 OK'}) form['environ'] = environ form['headers'] = headers res = func(*args, **form) status = headers.pop('status') start_response(status, headers.headeritems()) return [res] app = httpexceptions.middleware(application) app = simplecatcher(app) return app(environ, start_response)
|
d0441ff28d999e1ade91f96ba9f46dc821fc0f2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/d0441ff28d999e1ade91f96ba9f46dc821fc0f2d/middleware.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
17537,
2910,
67,
8376,
30857,
1968,
4672,
468,
732,
336,
890,
833,
1347,
333,
353,
279,
707,
16,
2795,
1347,
518,
353,
468,
279,
445,
294,
12,
309,
562,
12,
1968,
13,
422,
890,
30,
5473,
273,
833,
63,
21,
65,
787,
67,
2740,
273,
833,
63,
22,
65,
833,
273,
306,
1968,
63,
20,
13563,
469,
30,
5473,
16,
787,
67,
2740,
273,
833,
833,
273,
5378,
1652,
2521,
12,
28684,
16,
787,
67,
2740,
4672,
646,
273,
341,
1055,
330,
495,
18,
2670,
67,
687,
4699,
12,
28684,
13,
1607,
273,
341,
1055,
330,
495,
18,
1064,
1864,
5014,
12,
13666,
1745,
17,
723,
4278,
296,
955,
19,
2620,
2187,
296,
2327,
4278,
296,
6976,
7791,
11,
6792,
646,
3292,
28684,
3546,
273,
5473,
646,
3292,
2485,
3546,
273,
1607,
400,
273,
1326,
30857,
1968,
16,
2826,
687,
13,
1267,
273,
1607,
18,
5120,
2668,
2327,
6134,
787,
67,
2740,
12,
2327,
16,
1607,
18,
3374,
3319,
10756,
327,
306,
455,
65,
595,
273,
1062,
11855,
18,
17352,
12,
3685,
13,
595,
273,
4143,
14683,
264,
12,
2910,
13,
327,
595,
12,
28684,
16,
787,
67,
2740,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
17537,
2910,
67,
8376,
30857,
1968,
4672,
468,
732,
336,
890,
833,
1347,
333,
353,
279,
707,
16,
2795,
1347,
518,
353,
468,
279,
445,
294,
12,
309,
562,
12,
1968,
13,
422,
890,
30,
5473,
273,
833,
63,
21,
65,
787,
67,
2740,
273,
833,
63,
22,
65,
833,
273,
306,
1968,
63,
20,
13563,
469,
30,
5473,
16,
787,
67,
2740,
273,
833,
833,
273,
5378,
1652,
2521,
12,
28684,
16,
787,
67,
2740,
4672,
646,
273,
341,
1055,
330,
495,
18,
2670,
67,
687,
4699,
12,
28684,
13,
1607,
273,
341,
1055,
330,
495,
18,
1064,
1864,
5014,
12,
13666,
1745,
17,
723,
4278,
296,
955,
19,
2620,
2187,
296,
2327,
4278,
296,
6976,
2
] |
return unicodify(inspect.cleandoc('\n'+source))
|
cleandoc = getattr(inspect, 'cleandoc', lambda s: s) return unicodify(cleandoc('\n'+source))
|
def get_func_doc(self, expr): """Get a string describing the arguments for the given object""" try: obj = eval(expr, self.locs) except Exception: return None if isinstance(obj, (types.BuiltinFunctionType, types.BuiltinMethodType)): # These don't have source code, and using pydoc will only # add something like "execfile(...)" before the doc. doc = inspect.getdoc(obj) if doc is None: return None return unicodify(doc) # Check if obj.__doc__ is not in the code (was added after definition). # If so, return pydoc's documentation. # This test is CPython-specific. Another approach would be to look for # the string in the source code. co_consts = getattr(getattr(obj, 'func_code', None), 'co_consts', None) __doc__ = getattr(obj, '__doc__', None) if co_consts is not None and __doc__ is not None: if __doc__ not in co_consts: # Return pydoc's documentation return unicodify(textdoc.document(obj).strip()) try: source = inspect.getsource(obj) except (TypeError, IOError): # If can't get the source, return pydoc's documentation return unicodify(textdoc.document(obj).strip()) else: # If we can get the source, return it. # cleandoc removes extra indentation. # We add a newline because it ignores indentation of first line... return unicodify(inspect.cleandoc('\n'+source))
|
9c423a83d7a834eb3b8efd7e84254effddf384e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10932/9c423a83d7a834eb3b8efd7e84254effddf384e1/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
644,
67,
2434,
12,
2890,
16,
3065,
4672,
3536,
967,
279,
533,
16868,
326,
1775,
364,
326,
864,
733,
8395,
775,
30,
1081,
273,
5302,
12,
8638,
16,
365,
18,
24323,
13,
1335,
1185,
30,
327,
599,
309,
1549,
12,
2603,
16,
261,
2352,
18,
28032,
2083,
559,
16,
1953,
18,
28032,
21988,
3719,
30,
468,
8646,
2727,
1404,
1240,
1084,
981,
16,
471,
1450,
2395,
2434,
903,
1338,
468,
527,
5943,
3007,
315,
4177,
768,
6173,
1865,
326,
997,
18,
997,
273,
5334,
18,
588,
2434,
12,
2603,
13,
309,
997,
353,
599,
30,
327,
599,
327,
640,
335,
369,
1164,
12,
2434,
13,
225,
468,
2073,
309,
1081,
16186,
2434,
972,
353,
486,
316,
326,
981,
261,
17416,
3096,
1839,
2379,
2934,
468,
971,
1427,
16,
327,
2395,
2434,
1807,
7323,
18,
468,
1220,
1842,
353,
5181,
18490,
17,
12524,
18,
432,
24413,
17504,
4102,
506,
358,
2324,
364,
468,
326,
533,
316,
326,
1084,
981,
18,
1825,
67,
10248,
87,
273,
3869,
12,
588,
1747,
12,
2603,
16,
296,
644,
67,
710,
2187,
599,
3631,
296,
2894,
67,
10248,
87,
2187,
599,
13,
1001,
2434,
972,
273,
3869,
12,
2603,
16,
4940,
2434,
972,
2187,
599,
13,
309,
1825,
67,
10248,
87,
353,
486,
599,
471,
1001,
2434,
972,
353,
486,
599,
30,
309,
1001,
2434,
972,
486,
316,
1825,
67,
10248,
87,
30,
468,
2000,
2395,
2434,
1807,
7323,
327,
640,
335,
369,
1164,
12,
955,
2434,
18,
5457,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
644,
67,
2434,
12,
2890,
16,
3065,
4672,
3536,
967,
279,
533,
16868,
326,
1775,
364,
326,
864,
733,
8395,
775,
30,
1081,
273,
5302,
12,
8638,
16,
365,
18,
24323,
13,
1335,
1185,
30,
327,
599,
309,
1549,
12,
2603,
16,
261,
2352,
18,
28032,
2083,
559,
16,
1953,
18,
28032,
21988,
3719,
30,
468,
8646,
2727,
1404,
1240,
1084,
981,
16,
471,
1450,
2395,
2434,
903,
1338,
468,
527,
5943,
3007,
315,
4177,
768,
6173,
1865,
326,
997,
18,
997,
273,
5334,
18,
588,
2434,
12,
2603,
13,
309,
997,
353,
599,
30,
327,
599,
327,
640,
335,
369,
1164,
12,
2434,
13,
225,
468,
2073,
309,
1081,
16186,
2434,
972,
353,
486,
316,
2
] |
if type(value) == type(()): print _('WARNING: invalid date tuple %r')%(value,) value = date.Date( "2000-1-1" )
|
def import_journals(self, entries): """Import a class's journal.
|
4426ce452779f55c9e0c3a81c4d7ffa0c4aaba6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1906/4426ce452779f55c9e0c3a81c4d7ffa0c4aaba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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1930,
67,
78,
6561,
1031,
12,
2890,
16,
3222,
4672,
3536,
5010,
279,
667,
1807,
13001,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
return
|
continue
|
def icc_loop(self):
|
d2b4e35268e9124a91610c2380794e3dd2865307 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/425/d2b4e35268e9124a91610c2380794e3dd2865307/ICC.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
952,
67,
6498,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
952,
67,
6498,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
elif self.is_on_path("lisp"): if self.is_on_path("cmuclinvoke.sh"):
|
elif is_on_path("lisp"): if is_on_path("cmuclinvoke.sh"):
|
def cl_detect(self): if self.is_on_path("clisp"): return "clisp" elif self.is_on_path("lisp"): if self.is_on_path("cmuclinvoke.sh"): return "cmuclinvoke.sh" return None
|
71ec8a3aa31e4b1ed4d108f6b77bdf63b2eccc07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/71ec8a3aa31e4b1ed4d108f6b77bdf63b2eccc07/test_cltrans.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
927,
67,
16518,
12,
2890,
4672,
309,
365,
18,
291,
67,
265,
67,
803,
2932,
830,
23831,
6,
4672,
327,
315,
830,
23831,
6,
1327,
353,
67,
265,
67,
803,
2932,
80,
23831,
6,
4672,
309,
353,
67,
265,
67,
803,
2932,
7670,
89,
830,
14407,
18,
674,
6,
4672,
327,
315,
7670,
89,
830,
14407,
18,
674,
6,
327,
599,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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291,
67,
265,
67,
803,
2932,
830,
23831,
6,
4672,
327,
315,
830,
23831,
6,
1327,
353,
67,
265,
67,
803,
2932,
80,
23831,
6,
4672,
309,
353,
67,
265,
67,
803,
2932,
7670,
89,
830,
14407,
18,
674,
6,
4672,
327,
315,
7670,
89,
830,
14407,
18,
674,
6,
327,
599,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
precisedate = parse_date(req.args.get('from'), req.tz) fromdate = precisedate
|
reqfromdate = req.args['from'].strip() if reqfromdate: precisedate = parse_date(reqfromdate, req.tz) fromdate = precisedate
|
def process_request(self, req): req.perm.assert_permission('TIMELINE_VIEW')
|
5c9a5a59611df77ad19300315c791ed4aa1b3552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/5c9a5a59611df77ad19300315c791ed4aa1b3552/web_ui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
1111,
18,
12160,
18,
11231,
67,
9827,
2668,
4684,
5997,
67,
12145,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
1111,
18,
12160,
18,
11231,
67,
9827,
2668,
4684,
5997,
67,
12145,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
del self._index2containerName2len
|
del self._index2containerId2len
|
def destroy(self): if self._checkContainersJob is not None: jobMgr.remove(self._checkContainersJob) self._checkContainersJob = None del self._id2ref del self._index2containerName2len del self._index2delay
|
88950518abcce43f6828c7e417218c4bdb6988d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/88950518abcce43f6828c7e417218c4bdb6988d8/ContainerLeakDetector.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
4672,
309,
365,
6315,
1893,
11177,
2278,
353,
486,
599,
30,
1719,
9455,
18,
4479,
12,
2890,
6315,
1893,
11177,
2278,
13,
365,
6315,
1893,
11177,
2278,
273,
599,
1464,
365,
6315,
350,
22,
1734,
1464,
365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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
309,
365,
6315,
1893,
11177,
2278,
353,
486,
599,
30,
1719,
9455,
18,
4479,
12,
2890,
6315,
1893,
11177,
2278,
13,
365,
6315,
1893,
11177,
2278,
273,
599,
1464,
365,
6315,
350,
22,
1734,
1464,
365,
6315,
1615,
22,
3782,
548,
22,
1897,
1464,
365,
6315,
1615,
22,
10790,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def tmp_name(prefix = "/tmp/pyprofgen-"): return "%s%u-%f" % (prefix, os.getpid(), time.time());
|
def debug(msg): global debug_mode; if debug_mode: sys.stdout.write("debug: %s\n" % msg); sys.stdout.flush();
|
913058b8bcaf7a6f82df1787a1aaeef563acb694 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9791/913058b8bcaf7a6f82df1787a1aaeef563acb694/pyprofgen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
12,
3576,
4672,
2552,
1198,
67,
3188,
31,
309,
1198,
67,
3188,
30,
2589,
18,
10283,
18,
2626,
2932,
4148,
30,
738,
87,
64,
82,
6,
738,
1234,
1769,
2589,
18,
10283,
18,
11330,
5621,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1198,
12,
3576,
4672,
2552,
1198,
67,
3188,
31,
309,
1198,
67,
3188,
30,
2589,
18,
10283,
18,
2626,
2932,
4148,
30,
738,
87,
64,
82,
6,
738,
1234,
1769,
2589,
18,
10283,
18,
11330,
5621,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
|
ids = self.search(cr, user, [('name',operator,name)]+ args,
|
ids = self.search(cr, user, [('name', operator, name)] + args,
|
def name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=80): if not args: args=[] if not context: context={} ids = self.search(cr, user, [('code','=',name)]+ args, limit=limit, context=context) if not ids: ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit, context=context) return self.name_get(cr, user, ids, context)
|
17619200a7b1afb251d9d07ba3f901dcc8fe0b6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/17619200a7b1afb251d9d07ba3f901dcc8fe0b6b/country.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
3072,
12,
2890,
16,
4422,
16,
729,
16,
508,
2218,
2187,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
3672,
4672,
309,
486,
833,
30,
833,
33,
8526,
309,
486,
819,
30,
819,
12938,
3258,
273,
365,
18,
3072,
12,
3353,
16,
729,
16,
306,
2668,
710,
17023,
33,
2187,
529,
13,
3737,
833,
16,
1800,
33,
3595,
16,
819,
33,
2472,
13,
309,
486,
3258,
30,
3258,
273,
365,
18,
3072,
12,
3353,
16,
729,
16,
306,
2668,
529,
2187,
3726,
16,
508,
25887,
397,
833,
16,
1800,
33,
3595,
16,
819,
33,
2472,
13,
327,
365,
18,
529,
67,
588,
12,
3353,
16,
729,
16,
3258,
16,
819,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
3672,
4672,
309,
486,
833,
30,
833,
33,
8526,
309,
486,
819,
30,
819,
12938,
3258,
273,
365,
18,
3072,
12,
3353,
16,
729,
16,
306,
2668,
710,
17023,
33,
2187,
529,
13,
3737,
833,
16,
1800,
33,
3595,
16,
819,
33,
2472,
13,
309,
486,
3258,
30,
3258,
273,
365,
18,
3072,
12,
3353,
16,
729,
16,
306,
2668,
529,
2187,
3726,
16,
508,
25887,
397,
833,
16,
1800,
33,
3595,
16,
819,
33,
2472,
13,
327,
365,
18,
529,
67,
588,
12,
3353,
16,
729,
16,
3258,
16,
2
] |
author = Category.query.filter_by(username=author).first(True)
|
author = User.query.filter_by(username=author).first(True)
|
def atom_feed(req, author=None, year=None, month=None, day=None, category=None, tag=None, post=None): """Renders an atom feed requested. :URL endpoint: ``blog/atom_feed`` """ feed = AtomFeed(req.app.cfg['blog_title'], feed_url=req.url, url=req.app.cfg['blog_url'], subtitle=req.app.cfg['blog_tagline']) # the feed only contains published items query = Post.query.published() # feed for a category if category is not None: category = Category.query.filter_by(slug=category).first(True) query = query.filter(Post.categories.contains(category)) # feed for a tag if tag is not None: tag = Tag.query.filter_by(slug=tag).first(True) query = query.filter(Post.tags.contains(tag)) # feed for an author if author is not None: author = Category.query.filter_by(username=author).first(True) query = query.filter(Post.author == author) # feed for dates if year is not None: query = query.for_index().date_filter(year, month, day) # if no post slug is given we filter the posts by the cretereons # provided and pass them to the feed builder. This will only return # a feed for posts with a content type listed in `index_content_types` if post is None: for post in query.for_index().order_by(Post.pub_date.desc()) \ .limit(15).all(): links = [link.as_dict() for link in post.links] feed.add(post.title, unicode(post.body), content_type='html', author=post.author.display_name, links=links, url=url_for(post, _external=True), id=post.uid, updated=post.last_update, published=post.pub_date) # otherwise we create a feed for all the comments of a post. # the function is called this way by `dispatch_content_type`. else: comment_num = 1 for comment in post.comments: if not comment.visible: continue uid = build_tag_uri(req.app, comment.pub_date, 'comment', comment.id) title = _(u'Comment %(num)d on %(post)s') % { 'num': comment_num, 'post': post.title } author = {'name': comment.author} if comment.www: author['uri'] = comment.www feed.add(title, unicode(comment.body), content_type='html', author=author, url=url_for(comment, _external=True), id=uid, updated=comment.pub_date) comment_num += 1 return feed.get_response()
|
f3d8abd271e052adfc5b57a933cc1227296086ea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/f3d8abd271e052adfc5b57a933cc1227296086ea/blog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3179,
67,
7848,
12,
3658,
16,
2869,
33,
7036,
16,
3286,
33,
7036,
16,
3138,
33,
7036,
16,
2548,
33,
7036,
16,
3150,
33,
7036,
16,
1047,
33,
7036,
16,
1603,
33,
7036,
4672,
3536,
10900,
392,
3179,
4746,
3764,
18,
225,
294,
1785,
2494,
30,
12176,
11439,
19,
7466,
67,
7848,
10335,
3536,
4746,
273,
7149,
8141,
12,
3658,
18,
2910,
18,
7066,
3292,
11439,
67,
2649,
17337,
4746,
67,
718,
33,
3658,
18,
718,
16,
880,
33,
3658,
18,
2910,
18,
7066,
3292,
11439,
67,
718,
17337,
20281,
33,
3658,
18,
2910,
18,
7066,
3292,
11439,
67,
2692,
1369,
19486,
225,
468,
326,
4746,
1338,
1914,
9487,
1516,
843,
273,
5616,
18,
2271,
18,
12614,
1435,
225,
468,
4746,
364,
279,
3150,
309,
3150,
353,
486,
599,
30,
3150,
273,
9856,
18,
2271,
18,
2188,
67,
1637,
12,
6436,
33,
4743,
2934,
3645,
12,
5510,
13,
843,
273,
843,
18,
2188,
12,
3349,
18,
8995,
18,
12298,
12,
4743,
3719,
225,
468,
4746,
364,
279,
1047,
309,
1047,
353,
486,
599,
30,
1047,
273,
4034,
18,
2271,
18,
2188,
67,
1637,
12,
6436,
33,
2692,
2934,
3645,
12,
5510,
13,
843,
273,
843,
18,
2188,
12,
3349,
18,
4156,
18,
12298,
12,
2692,
3719,
225,
468,
4746,
364,
392,
2869,
309,
2869,
353,
486,
599,
30,
2869,
273,
2177,
18,
2271,
18,
2188,
67,
1637,
12,
5053,
33,
4161,
2934,
3645,
12,
5510,
13,
843,
273,
843,
18,
2188,
12,
3349,
18,
4161,
422,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3179,
67,
7848,
12,
3658,
16,
2869,
33,
7036,
16,
3286,
33,
7036,
16,
3138,
33,
7036,
16,
2548,
33,
7036,
16,
3150,
33,
7036,
16,
1047,
33,
7036,
16,
1603,
33,
7036,
4672,
3536,
10900,
392,
3179,
4746,
3764,
18,
225,
294,
1785,
2494,
30,
12176,
11439,
19,
7466,
67,
7848,
10335,
3536,
4746,
273,
7149,
8141,
12,
3658,
18,
2910,
18,
7066,
3292,
11439,
67,
2649,
17337,
4746,
67,
718,
33,
3658,
18,
718,
16,
880,
33,
3658,
18,
2910,
18,
7066,
3292,
11439,
67,
718,
17337,
20281,
33,
3658,
18,
2910,
18,
7066,
3292,
11439,
67,
2692,
1369,
19486,
225,
468,
326,
4746,
1338,
1914,
9487,
1516,
843,
273,
5616,
18,
2271,
18,
12614,
1435,
2
] |
_debug("return unrolled batch (%i) and kern code (%i)", self.unroll_batch, self.unroll_kern)
|
_debug("return unrolled batch (%s) and kern code (%s)", str(self.unroll_batch), str(self.unroll_kern))
|
def c_code(self, node, name, (img2d, filtersflipped), (z, ), sub): if node.inputs[0].type.dtype != node.inputs[1].type.dtype: raise NotImplementedError() assert node.inputs[0].type.dtype == node.inputs[1].type.dtype d=locals() d.update(sub)
|
72850dde93f556743a720fbdf1991c880ca92ae2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/72850dde93f556743a720fbdf1991c880ca92ae2/conv.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
710,
12,
2890,
16,
756,
16,
508,
16,
261,
6081,
22,
72,
16,
3415,
12357,
1845,
3631,
261,
94,
16,
262,
16,
720,
4672,
309,
756,
18,
10029,
63,
20,
8009,
723,
18,
8972,
480,
756,
18,
10029,
63,
21,
8009,
723,
18,
8972,
30,
1002,
11206,
1435,
1815,
756,
18,
10029,
63,
20,
8009,
723,
18,
8972,
422,
756,
18,
10029,
63,
21,
8009,
723,
18,
8972,
302,
33,
17977,
1435,
302,
18,
2725,
12,
1717,
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,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
276,
67,
710,
12,
2890,
16,
756,
16,
508,
16,
261,
6081,
22,
72,
16,
3415,
12357,
1845,
3631,
261,
94,
16,
262,
16,
720,
4672,
309,
756,
18,
10029,
63,
20,
8009,
723,
18,
8972,
480,
756,
18,
10029,
63,
21,
8009,
723,
18,
8972,
30,
1002,
11206,
1435,
1815,
756,
18,
10029,
63,
20,
8009,
723,
18,
8972,
422,
756,
18,
10029,
63,
21,
8009,
723,
18,
8972,
302,
33,
17977,
1435,
302,
18,
2725,
12,
1717,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
piecehash = sha.new()
|
piecehash = hashlib.sha1()
|
def scan_file(self, filename, use_chunks=True, max_chunks=255, chunk_size=256, progresslistener=None): print "\nScanning file..." # Filename and size self.filename = os.path.basename(filename) self.size = int(os.stat(filename).st_size) # Calculate piece length if use_chunks: minlength = chunk_size*1024 self.piecelength = 1024 while self.size / self.piecelength > max_chunks or self.piecelength < minlength: self.piecelength *= 2 print "Using piecelength", self.piecelength, "(" + str(self.piecelength / 1024) + " KiB)" numpieces = self.size / self.piecelength if numpieces < 2: use_chunks = False # Hashes fp = open(filename, "rb")
|
cedf2d3fa50ba7140bc823ffa4ba7db6a4c37228 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/cedf2d3fa50ba7140bc823ffa4ba7db6a4c37228/metalinkc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
67,
768,
12,
2890,
16,
1544,
16,
999,
67,
14691,
33,
5510,
16,
943,
67,
14691,
33,
10395,
16,
2441,
67,
1467,
33,
5034,
16,
4007,
12757,
33,
7036,
4672,
1172,
1548,
82,
1541,
10903,
585,
7070,
468,
16671,
471,
963,
365,
18,
3459,
273,
1140,
18,
803,
18,
13909,
12,
3459,
13,
365,
18,
1467,
273,
509,
12,
538,
18,
5642,
12,
3459,
2934,
334,
67,
1467,
13,
468,
9029,
11151,
769,
309,
999,
67,
14691,
30,
1131,
2469,
273,
2441,
67,
1467,
14,
2163,
3247,
365,
18,
7259,
557,
292,
1288,
273,
6250,
1323,
365,
18,
1467,
342,
365,
18,
7259,
557,
292,
1288,
405,
943,
67,
14691,
578,
365,
18,
7259,
557,
292,
1288,
411,
1131,
2469,
30,
365,
18,
7259,
557,
292,
1288,
6413,
576,
1172,
315,
7736,
4790,
557,
292,
1288,
3113,
365,
18,
7259,
557,
292,
1288,
16,
12452,
397,
609,
12,
2890,
18,
7259,
557,
292,
1288,
342,
6250,
13,
397,
315,
1475,
17632,
2225,
818,
31016,
273,
365,
18,
1467,
342,
365,
18,
7259,
557,
292,
1288,
309,
818,
31016,
411,
576,
30,
999,
67,
14691,
273,
1083,
468,
2474,
281,
4253,
273,
1696,
12,
3459,
16,
315,
6731,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
67,
768,
12,
2890,
16,
1544,
16,
999,
67,
14691,
33,
5510,
16,
943,
67,
14691,
33,
10395,
16,
2441,
67,
1467,
33,
5034,
16,
4007,
12757,
33,
7036,
4672,
1172,
1548,
82,
1541,
10903,
585,
7070,
468,
16671,
471,
963,
365,
18,
3459,
273,
1140,
18,
803,
18,
13909,
12,
3459,
13,
365,
18,
1467,
273,
509,
12,
538,
18,
5642,
12,
3459,
2934,
334,
67,
1467,
13,
468,
9029,
11151,
769,
309,
999,
67,
14691,
30,
1131,
2469,
273,
2441,
67,
1467,
14,
2163,
3247,
365,
18,
7259,
557,
292,
1288,
273,
6250,
1323,
365,
18,
1467,
342,
365,
18,
7259,
557,
292,
1288,
405,
943,
67,
14691,
578,
365,
18,
7259,
557,
292,
1288,
2
] |
resp = self.getresp() if resp[:3] not in LONGRESP: raise NNTPReplyError(resp) list = [] while 1: line = self.getline() if line == '.': break if line[:2] == '..': line = line[1:] list.append(line)
|
openedFile = None try: if isinstance(fileHandle, types.StringType): openedFile = fileHandle = open(fileHandle, "w") resp = self.getresp() if resp[:3] not in LONGRESP: raise NNTPReplyError(resp) list = [] while 1: line = self.getline() if line == '.': break if line[:2] == '..': line = line[1:] if fileHandle: fileHandle.write(line + "\n") else: list.append(line) finally: if openedFile: openedFile.close()
|
def getlongresp(self): """Internal: get a response plus following text from the server. Raise various errors if the response indicates an error.""" resp = self.getresp() if resp[:3] not in LONGRESP: raise NNTPReplyError(resp) list = [] while 1: line = self.getline() if line == '.': break if line[:2] == '..': line = line[1:] list.append(line) return resp, list
|
d1d584f4e820dc893175cdde74b901b6808ed3ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d1d584f4e820dc893175cdde74b901b6808ed3ab/nntplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5748,
12243,
12,
2890,
4672,
3536,
3061,
30,
336,
279,
766,
8737,
3751,
977,
628,
326,
1438,
18,
20539,
11191,
1334,
309,
326,
766,
8527,
392,
555,
12123,
225,
10191,
812,
273,
599,
775,
30,
225,
309,
1549,
12,
768,
3259,
16,
1953,
18,
780,
559,
4672,
10191,
812,
273,
26662,
273,
1696,
12,
768,
3259,
16,
315,
91,
7923,
225,
1718,
273,
365,
18,
588,
12243,
1435,
309,
1718,
10531,
23,
65,
486,
316,
14011,
862,
3118,
30,
1002,
423,
1784,
52,
7817,
668,
12,
12243,
13,
666,
273,
5378,
1323,
404,
30,
980,
273,
365,
18,
588,
1369,
1435,
309,
980,
422,
2611,
30,
898,
309,
980,
10531,
22,
65,
422,
11597,
4278,
980,
273,
980,
63,
21,
26894,
309,
26662,
30,
26662,
18,
2626,
12,
1369,
397,
1548,
82,
7923,
469,
30,
666,
18,
6923,
12,
1369,
13,
3095,
30,
225,
309,
10191,
812,
30,
10191,
812,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5748,
12243,
12,
2890,
4672,
3536,
3061,
30,
336,
279,
766,
8737,
3751,
977,
628,
326,
1438,
18,
20539,
11191,
1334,
309,
326,
766,
8527,
392,
555,
12123,
225,
10191,
812,
273,
599,
775,
30,
225,
309,
1549,
12,
768,
3259,
16,
1953,
18,
780,
559,
4672,
10191,
812,
273,
26662,
273,
1696,
12,
768,
3259,
16,
315,
91,
7923,
225,
1718,
273,
365,
18,
588,
12243,
1435,
309,
1718,
10531,
23,
65,
486,
316,
14011,
862,
3118,
30,
1002,
423,
1784,
52,
7817,
668,
12,
12243,
13,
666,
273,
5378,
1323,
404,
30,
980,
273,
365,
18,
588,
1369,
1435,
309,
980,
422,
2611,
30,
898,
309,
980,
10531,
22,
65,
422,
11597,
4278,
980,
273,
2
] |
raise TestFailed("errors occurred in %s.%s" % (testclass.__module__, testclass.__name__))
|
if testclass is None: msg = "errors occurred; run in verbose mode for details" else: msg = "errors occurred in %s.%s" \ % (testclass.__module__, testclass.__name__) raise TestFailed(msg)
|
def run_suite(suite): """Run tests from a unittest.TestSuite-derived class.""" if verbose: runner = unittest.TextTestRunner(sys.stdout, verbosity=2) else: runner = BasicTestRunner() result = runner.run(suite) if not result.wasSuccessful(): if len(result.errors) == 1 and not result.failures: err = result.errors[0][1] elif len(result.failures) == 1 and not result.errors: err = result.failures[0][1] else: raise TestFailed("errors occurred in %s.%s" % (testclass.__module__, testclass.__name__)) raise TestFailed(err)
|
8fea2d0c8308553826f6b3c1cec7c70704d9f28d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8fea2d0c8308553826f6b3c1cec7c70704d9f28d/test_support.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
30676,
12,
30676,
4672,
3536,
1997,
7434,
628,
279,
2836,
3813,
18,
4709,
13587,
17,
765,
2950,
667,
12123,
309,
3988,
30,
8419,
273,
2836,
3813,
18,
1528,
4709,
9709,
12,
9499,
18,
10283,
16,
11561,
33,
22,
13,
469,
30,
8419,
273,
7651,
4709,
9709,
1435,
225,
563,
273,
8419,
18,
2681,
12,
30676,
13,
309,
486,
563,
18,
17416,
14277,
13332,
309,
562,
12,
2088,
18,
4324,
13,
422,
404,
471,
486,
563,
18,
26268,
30,
393,
273,
563,
18,
4324,
63,
20,
6362,
21,
65,
1327,
562,
12,
2088,
18,
26268,
13,
422,
404,
471,
486,
563,
18,
4324,
30,
393,
273,
563,
18,
26268,
63,
20,
6362,
21,
65,
469,
30,
309,
1842,
1106,
353,
599,
30,
1234,
273,
315,
4324,
7841,
31,
1086,
316,
3988,
1965,
364,
3189,
6,
469,
30,
1234,
273,
315,
4324,
7841,
316,
738,
87,
7866,
87,
6,
521,
738,
261,
3813,
1106,
16186,
2978,
972,
16,
1842,
1106,
16186,
529,
972,
13,
1002,
7766,
2925,
12,
3576,
13,
1002,
7766,
2925,
12,
370,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1086,
67,
30676,
12,
30676,
4672,
3536,
1997,
7434,
628,
279,
2836,
3813,
18,
4709,
13587,
17,
765,
2950,
667,
12123,
309,
3988,
30,
8419,
273,
2836,
3813,
18,
1528,
4709,
9709,
12,
9499,
18,
10283,
16,
11561,
33,
22,
13,
469,
30,
8419,
273,
7651,
4709,
9709,
1435,
225,
563,
273,
8419,
18,
2681,
12,
30676,
13,
309,
486,
563,
18,
17416,
14277,
13332,
309,
562,
12,
2088,
18,
4324,
13,
422,
404,
471,
486,
563,
18,
26268,
30,
393,
273,
563,
18,
4324,
63,
20,
6362,
21,
65,
1327,
562,
12,
2088,
18,
26268,
13,
422,
404,
471,
486,
563,
18,
4324,
30,
393,
273,
563,
18,
26268,
63,
20,
6362,
21,
65,
469,
30,
309,
2
] |
diff = xs1.delta_sites_cart_measure(xs0) assert approx_equal(diff, diff_ref, eps=rnd_delta)
|
mscd = xray.meaningful_site_cart_differences(xs1=xs1, xs2=xs0) assert approx_equal(mscd.max_absolute(), diff_ref, eps=rnd_delta)
|
def exercise_delta_sites_cart_measure(): rnd_delta = 1e-3 for hall_symbol, continuously_shift in [ ('P 2yb', lambda x,y,z: (x , y+0.7, z) ), ('P -2x', lambda x,y,z: (x , y+0.9, z-0.7)), ('P 1' , lambda x,y,z: (x+0.1, y+0.2, z+0.9)), ]: xs0 = random_structure.xray_structure( sgtbx.space_group_info('hall: %s' % hall_symbol), use_u_iso=False, use_u_aniso=True, n_scatterers=5, elements="random") xs1 = xs0.deep_copy_scatterers() delta = flex.vec3_double() for sc in xs1.scatterers(): x, y, z = continuously_shift(*sc.site) dx, dy, dz = [ random.uniform(-rnd_delta, rnd_delta) for i in xrange(3) ] delta.append((dx, dy, dz)) sc.site = (x + dx, y + dy, z + dz) delta = flex.vec3_double([ xs0.unit_cell().orthogonalize(d) for d in delta ]) diff_ref = flex.max_absolute(delta.as_double()) diff = xs1.delta_sites_cart_measure(xs0) assert approx_equal(diff, diff_ref, eps=rnd_delta)
|
7614a2f6049b9d73f02017019214d6503589dca0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/7614a2f6049b9d73f02017019214d6503589dca0/tst_xray.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
9878,
67,
12180,
67,
11848,
67,
10772,
13332,
20391,
67,
9878,
273,
404,
73,
17,
23,
364,
366,
454,
67,
7175,
16,
17235,
715,
67,
4012,
316,
306,
7707,
52,
576,
93,
70,
2187,
3195,
619,
16,
93,
16,
94,
30,
261,
92,
565,
269,
677,
15,
20,
18,
27,
16,
998,
13,
565,
262,
16,
7707,
52,
300,
22,
92,
2187,
3195,
619,
16,
93,
16,
94,
30,
261,
92,
565,
269,
677,
15,
20,
18,
29,
16,
998,
17,
20,
18,
27,
13,
3631,
7707,
52,
404,
11,
225,
269,
3195,
619,
16,
93,
16,
94,
30,
261,
92,
15,
20,
18,
21,
16,
677,
15,
20,
18,
22,
16,
998,
15,
20,
18,
29,
13,
3631,
308,
30,
9280,
20,
273,
2744,
67,
7627,
18,
92,
435,
67,
7627,
12,
272,
4521,
70,
92,
18,
2981,
67,
1655,
67,
1376,
2668,
76,
454,
30,
738,
87,
11,
738,
366,
454,
67,
7175,
3631,
999,
67,
89,
67,
9699,
33,
8381,
16,
999,
67,
89,
67,
304,
9699,
33,
5510,
16,
290,
67,
31320,
414,
33,
25,
16,
2186,
1546,
9188,
7923,
9280,
21,
273,
9280,
20,
18,
16589,
67,
3530,
67,
31320,
414,
1435,
3622,
273,
16600,
18,
8799,
23,
67,
9056,
1435,
364,
888,
316,
9280,
21,
18,
31320,
414,
13332,
619,
16,
677,
16,
998,
273,
17235,
715,
67,
4012,
30857,
1017,
18,
4256,
13,
6633,
16,
7732,
16,
24855,
273,
306,
2744,
18,
24120,
19236,
86,
4880,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9878,
67,
12180,
67,
11848,
67,
10772,
13332,
20391,
67,
9878,
273,
404,
73,
17,
23,
364,
366,
454,
67,
7175,
16,
17235,
715,
67,
4012,
316,
306,
7707,
52,
576,
93,
70,
2187,
3195,
619,
16,
93,
16,
94,
30,
261,
92,
565,
269,
677,
15,
20,
18,
27,
16,
998,
13,
565,
262,
16,
7707,
52,
300,
22,
92,
2187,
3195,
619,
16,
93,
16,
94,
30,
261,
92,
565,
269,
677,
15,
20,
18,
29,
16,
998,
17,
20,
18,
27,
13,
3631,
7707,
52,
404,
11,
225,
269,
3195,
619,
16,
93,
16,
94,
30,
261,
92,
15,
20,
18,
21,
16,
677,
15,
20,
18,
22,
16,
998,
15,
20,
18,
2
] |
extra = 10
|
extra = int(10 + 2*prec**0.3)
|
def sqrt_fixed2(y, prec): """ This function is essentially equivalent to sqrt_fixed (see its documentation), but uses an asymptotically faster algorithm. Instead of using Newton's method to calculate sqrt(y) directly, we calculate 1/sqrt(y) with Newton's method and multiply by y to obtain sqrt(y). The Newton iteration for 1/sqrt(y) is r n / 2 \ r = ---- * | 3 - y * r |. n+1 2 \ n / This is slightly slower at low precision levels since it requires three multiplications in each step, as opposed to the single division in the Newton iteration for sqrt(y). However, since Python uses Karatsuba algorithm for multiplication, three multiplications can be performed much more quickly than a single division at high precision levels. """ # XXX r = to_float(from_man_exp(y, -prec, 64, round_floor)) ** -0.5 r = int(r * 2**50) # r = invsqrt_initial(y, prec) extra = 10 prevp = 50 for p in giant_steps(50, prec+extra): # This is even messier than in sqrt_fixed. As many shifts as possible # have been combined together for optimal speed, at a slight expense # of legibility. # Compute r**2 at precision p. r2 = rshift(r*r, 2*prevp - p) # A = r, converted from precision prevp to p A = lshift(r, p-prevp) # S = y * r2, computed at precision p. We shift y by '-prec' to # account for its initial precision, and by 'p' for the fixed-point # multiplication S = (lshift(y, p-prec) * r2) >> p # B = (3-S) and finally the outer product, both done at precision p B = (3<<p) - S r = (A*B) >> (p+1) prevp = p # Finally, sqrt(y) = y * (1/sqrt(y)) r = (r * y) >> prec return r >> extra
|
6126580b4c100568377d1463a6b8d6a791d5dc9d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/6126580b4c100568377d1463a6b8d6a791d5dc9d/lib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5700,
67,
12429,
22,
12,
93,
16,
13382,
4672,
3536,
1220,
445,
353,
18518,
11220,
7680,
358,
5700,
67,
12429,
261,
5946,
2097,
7323,
3631,
1496,
4692,
392,
26202,
337,
352,
6478,
12063,
4886,
18,
225,
17561,
434,
1450,
1166,
1917,
1807,
707,
358,
4604,
5700,
12,
93,
13,
5122,
16,
732,
4604,
404,
19,
24492,
12,
93,
13,
598,
1166,
1917,
1807,
707,
471,
10194,
635,
677,
358,
7161,
5700,
12,
93,
2934,
1021,
1166,
1917,
6532,
364,
404,
19,
24492,
12,
93,
13,
353,
225,
436,
290,
1377,
342,
5411,
576,
521,
436,
565,
273,
225,
27927,
225,
380,
225,
571,
890,
225,
300,
677,
380,
436,
282,
571,
18,
290,
15,
21,
1377,
576,
1377,
521,
6647,
290,
225,
342,
225,
1220,
353,
21980,
27926,
622,
4587,
6039,
7575,
3241,
518,
4991,
8925,
23066,
87,
316,
1517,
2235,
16,
487,
1061,
7423,
358,
326,
2202,
16536,
316,
326,
1166,
1917,
6532,
364,
5700,
12,
93,
2934,
225,
10724,
16,
3241,
6600,
4692,
1475,
297,
270,
1717,
69,
4886,
364,
23066,
16,
8925,
23066,
87,
848,
506,
9591,
9816,
1898,
23459,
2353,
279,
2202,
16536,
622,
3551,
6039,
7575,
18,
3536,
225,
468,
11329,
436,
273,
358,
67,
5659,
12,
2080,
67,
4728,
67,
2749,
12,
93,
16,
300,
4036,
16,
5178,
16,
3643,
67,
74,
5807,
3719,
2826,
300,
20,
18,
25,
436,
273,
509,
12,
86,
380,
576,
636,
3361,
13,
468,
436,
273,
2198,
24492,
67,
6769,
12,
93,
16,
13382,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5700,
67,
12429,
22,
12,
93,
16,
13382,
4672,
3536,
1220,
445,
353,
18518,
11220,
7680,
358,
5700,
67,
12429,
261,
5946,
2097,
7323,
3631,
1496,
4692,
392,
26202,
337,
352,
6478,
12063,
4886,
18,
225,
17561,
434,
1450,
1166,
1917,
1807,
707,
358,
4604,
5700,
12,
93,
13,
5122,
16,
732,
4604,
404,
19,
24492,
12,
93,
13,
598,
1166,
1917,
1807,
707,
471,
10194,
635,
677,
358,
7161,
5700,
12,
93,
2934,
1021,
1166,
1917,
6532,
364,
404,
19,
24492,
12,
93,
13,
353,
225,
436,
290,
1377,
342,
5411,
576,
521,
436,
565,
273,
225,
27927,
225,
380,
225,
571,
890,
225,
300,
677,
380,
436,
282,
571,
18,
290,
15,
21,
1377,
576,
1377,
2
] |
cookie = load_cookie(environ.get('HTTP_COOKIE', ''))
|
cookie = parse_cookie(environ.get('HTTP_COOKIE', ''))
|
def __call__(self, environ, start_response): cookie = load_cookie(environ.get('HTTP_COOKIE', '')) sid = cookie.get(self.cookie_name, None) if sid is None: session = self.store.new() else: session = self.store.get(sid) environ[self.environ_key] = session
|
4b016ae094c105b438360ded48d635e97787985f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14437/4b016ae094c105b438360ded48d635e97787985f/sessions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
3878,
273,
1109,
67,
8417,
12,
28684,
18,
588,
2668,
3693,
67,
13584,
2187,
875,
3719,
7348,
273,
3878,
18,
588,
12,
2890,
18,
8417,
67,
529,
16,
599,
13,
309,
7348,
353,
599,
30,
1339,
273,
365,
18,
2233,
18,
2704,
1435,
469,
30,
1339,
273,
365,
18,
2233,
18,
588,
12,
7453,
13,
5473,
63,
2890,
18,
28684,
67,
856,
65,
273,
1339,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
3878,
273,
1109,
67,
8417,
12,
28684,
18,
588,
2668,
3693,
67,
13584,
2187,
875,
3719,
7348,
273,
3878,
18,
588,
12,
2890,
18,
8417,
67,
529,
16,
599,
13,
309,
7348,
353,
599,
30,
1339,
273,
365,
18,
2233,
18,
2704,
1435,
469,
30,
1339,
273,
365,
18,
2233,
18,
588,
12,
7453,
13,
5473,
63,
2890,
18,
28684,
67,
856,
65,
273,
1339,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
test_crasher()
|
def test_crasher(): assertRaises(MemoryError, struct.pack, "357913941c", "a")
|
328c643bcbff5f980e37afe420cecca76472cb9e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/328c643bcbff5f980e37afe420cecca76472cb9e/test_struct.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3353,
961,
264,
13332,
1815,
12649,
6141,
12,
6031,
668,
16,
1958,
18,
2920,
16,
315,
4763,
7235,
24347,
9803,
71,
3113,
315,
69,
7923,
225,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3353,
961,
264,
13332,
1815,
12649,
6141,
12,
6031,
668,
16,
1958,
18,
2920,
16,
315,
4763,
7235,
24347,
9803,
71,
3113,
315,
69,
7923,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self.url_appcast = appcastfmt % ('_unofficial')
|
url_type = '_unofficial' self.url_appcast = appcast_fmt % ('_unofficial',appcast_arch)
|
def _action( self ): appcastfmt = 'http://handbrake.fr/appcast%s.xml'
|
bbd91a17561ba59890c60bed3dd6ab1b6b1ae1a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13161/bbd91a17561ba59890c60bed3dd6ab1b6b1ae1a0/configure.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1128,
12,
365,
262,
30,
595,
4155,
8666,
273,
296,
2505,
2207,
2349,
15397,
4491,
18,
4840,
19,
438,
2436,
689,
9,
87,
18,
2902,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
s = """ include "cdefs.pxi" """ + s
|
s = """\ninclude "cdefs.pxi"\n""" + s
|
def pyx_preparse(s): r""" Preparse a Pyx file * include cdefs.pxi, interrupt.pxi, stdsage.pxi * parse clang pragma (c or c++) * parse clib pragma (additional libraries to link in) * parse cinclude (additional include directories) The pragmas: \begin{description} \item[clang] may be either c or c++ indicating whether a C or C++ compiler should be used \item[clib] additional libraries to be linked in, the space separated list is split and passed to distutils. \item[cinclude] additional directories to search for header files. The space separated list is split and passed to distutils. \end{description} EXAMPLE: sage: from sage.misc.cython import pyx_preparse sage: pyx_preparse("") ('\ninclude "interrupt.pxi" # ctrl-c interrupt block support\ninclude "stdsage.pxi" # ctrl-c interrupt block support\n\ninclude "cdefs.pxi"\n', ['mpfr', 'gmp', 'gmpxx', 'stdc++', 'pari', 'm', 'curvesntl', 'g0nntl', 'jcntl', 'rankntl', 'gsl', 'cblas', 'atlas', 'ntl', 'csage'], ['.../local/include/csage/', '.../local/include/', '.../local/include/python2.5/', '.../devel/sage/sage/ext/', '.../devel/sage/', '.../devel/sage/sage/gsl/'], 'c', []) sage: s, libs, inc, lang, f = pyx_preparse("# clang c++\n #clib foo\n # cinclude bar\n") sage: lang 'c++' sage: libs ['foo', 'mpfr', 'gmp', 'gmpxx', 'stdc++', 'pari', 'm', 'curvesntl', 'g0nntl', 'jcntl', 'rankntl', 'gsl', 'cblas', 'atlas', 'ntl', 'csage'] sage: inc ['bar', '.../local/include/csage/', '.../local/include/', '.../local/include/python2.5/', '.../devel/sage/sage/ext/', '.../devel/sage/', '.../devel/sage/sage/gsl/'] """ lang = parse_keywords('clang', s) if lang[0]: lang = lang[0][0] else: lang = "c" v, s = parse_keywords('clib', s) libs = v + standard_libs additional_source_files, s = parse_keywords('cfile', s) v, s = parse_keywords('cinclude', s) inc = [environ_parse(x.replace('"','').replace("'","")) for x in v] + include_dirs s = """
|
23b6f378898290e649fe110303ee89875dd9097a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/23b6f378898290e649fe110303ee89875dd9097a/cython.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2395,
92,
67,
1484,
2670,
12,
87,
4672,
436,
8395,
2962,
2670,
279,
4707,
92,
585,
380,
2341,
276,
12537,
18,
4430,
77,
16,
13123,
18,
4430,
77,
16,
2044,
87,
410,
18,
4430,
77,
380,
1109,
927,
539,
10878,
261,
71,
578,
276,
27245,
380,
1109,
927,
495,
10878,
261,
13996,
14732,
358,
1692,
316,
13,
380,
1109,
276,
6702,
261,
13996,
2341,
6402,
13,
225,
1021,
846,
346,
15260,
30,
521,
10086,
95,
3384,
97,
521,
1726,
63,
830,
539,
65,
2026,
506,
3344,
276,
578,
276,
9904,
11193,
2856,
279,
385,
578,
385,
9904,
5274,
1410,
506,
1399,
225,
521,
1726,
63,
830,
495,
65,
3312,
14732,
358,
506,
8459,
316,
16,
326,
3476,
8936,
666,
353,
1416,
471,
2275,
358,
2411,
5471,
18,
225,
521,
1726,
63,
71,
6702,
65,
3312,
6402,
358,
1623,
364,
1446,
1390,
18,
1021,
3476,
8936,
666,
353,
1416,
471,
2275,
358,
2411,
5471,
18,
521,
409,
95,
3384,
97,
225,
5675,
21373,
30,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
2431,
3041,
1930,
2395,
92,
67,
1484,
2670,
272,
410,
30,
2395,
92,
67,
1484,
2670,
2932,
7923,
7707,
64,
82,
6702,
315,
31847,
18,
4430,
77,
6,
225,
468,
6414,
17,
71,
13123,
1203,
2865,
64,
82,
6702,
315,
334,
2377,
410,
18,
4430,
77,
6,
225,
468,
6414,
17,
71,
13123,
1203,
2865,
64,
82,
64,
82,
6702,
315,
71,
12537,
18,
4430,
77,
12691,
82,
2187,
10228,
1291,
4840,
2187,
296,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2395,
92,
67,
1484,
2670,
12,
87,
4672,
436,
8395,
2962,
2670,
279,
4707,
92,
585,
380,
2341,
276,
12537,
18,
4430,
77,
16,
13123,
18,
4430,
77,
16,
2044,
87,
410,
18,
4430,
77,
380,
1109,
927,
539,
10878,
261,
71,
578,
276,
27245,
380,
1109,
927,
495,
10878,
261,
13996,
14732,
358,
1692,
316,
13,
380,
1109,
276,
6702,
261,
13996,
2341,
6402,
13,
225,
1021,
846,
346,
15260,
30,
521,
10086,
95,
3384,
97,
521,
1726,
63,
830,
539,
65,
2026,
506,
3344,
276,
578,
276,
9904,
11193,
2856,
279,
385,
578,
385,
9904,
5274,
1410,
506,
1399,
225,
521,
1726,
63,
830,
495,
65,
3312,
14732,
358,
506,
8459,
316,
16,
326,
3476,
8936,
2
] |
if filter: os.unlink(patchfile)
|
def applyone(self, repo, node, cl, patchfile, merge=False, log=False, filter=None): '''apply the patch in patchfile to the repository as a transplant''' (manifest, user, (time, timezone), files, message) = cl[:5] date = "%d %d" % (time, timezone) extra = {'transplant_source': node} if filter: (user, date, message) = self.filter(filter, cl, patchfile)
|
829df4d88dd2c9616dc211083b7b3169a4601b2b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/829df4d88dd2c9616dc211083b7b3169a4601b2b/transplant.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
476,
12,
2890,
16,
3538,
16,
756,
16,
927,
16,
4729,
768,
16,
2691,
33,
8381,
16,
613,
33,
8381,
16,
1034,
33,
7036,
4672,
9163,
9010,
326,
4729,
316,
4729,
768,
358,
326,
3352,
487,
279,
906,
412,
970,
26418,
261,
14357,
16,
729,
16,
261,
957,
16,
6371,
3631,
1390,
16,
883,
13,
273,
927,
10531,
25,
65,
1509,
273,
2213,
72,
738,
72,
6,
738,
261,
957,
16,
6371,
13,
2870,
273,
13666,
2338,
412,
970,
67,
3168,
4278,
756,
97,
309,
1034,
30,
261,
1355,
16,
1509,
16,
883,
13,
273,
365,
18,
2188,
12,
2188,
16,
927,
16,
4729,
768,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
970,
26418,
261,
14357,
16,
729,
16,
261,
957,
16,
6371,
3631,
1390,
16,
883,
13,
273,
927,
10531,
25,
65,
1509,
273,
2213,
72,
738,
72,
6,
738,
261,
957,
16,
6371,
13,
2870,
273,
13666,
2338,
412,
970,
67,
3168,
4278,
756,
97,
309,
1034,
30,
261,
1355,
16,
1509,
16,
883,
13,
273,
365,
18,
2188,
12,
2188,
16,
927,
16,
4729,
768,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
resp = self._get_line()[:-2]
|
resp = self._get_line()
|
def _get_response(self):
|
a470565476fb5e33733d1be0bbc4cb80f186235a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a470565476fb5e33733d1be0bbc4cb80f186235a/imaplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2740,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MovePYDs('pyRXPU.pyd',)
|
if buildU: MovePYDs('pyRXPU.pyd',)
|
def MovePYDs(*F): for x in sys.argv: if x[:18]=='--install-platlib=': return src = sys.exec_prefix dst = os.path.join(src,'DLLs') if sys.hexversion>=0x20200a0: src = os.path.join(src,'Lib','site-packages') for f in F: dstf = os.path.join(dst,f) if os.path.isfile(dstf): os.remove(dstf) srcf = os.path.join(src,f) os.rename(srcf,dstf) print 'Renaming %s to %s' % (srcf, dstf)
|
84fcc30d62ed1830eab153f30eae2e683c3579dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/84fcc30d62ed1830eab153f30eae2e683c3579dc/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9933,
16235,
22831,
30857,
42,
4672,
364,
619,
316,
2589,
18,
19485,
30,
309,
619,
10531,
2643,
65,
18920,
413,
5425,
17,
412,
270,
2941,
2218,
30,
327,
1705,
273,
2589,
18,
4177,
67,
3239,
3046,
273,
1140,
18,
803,
18,
5701,
12,
4816,
11189,
40,
4503,
87,
6134,
309,
2589,
18,
7118,
1589,
34,
33,
20,
92,
18212,
713,
69,
20,
30,
1705,
273,
1140,
18,
803,
18,
5701,
12,
4816,
11189,
5664,
17023,
4256,
17,
10308,
6134,
364,
284,
316,
478,
30,
3046,
74,
273,
1140,
18,
803,
18,
5701,
12,
11057,
16,
74,
13,
309,
1140,
18,
803,
18,
291,
768,
12,
11057,
74,
4672,
1140,
18,
4479,
12,
11057,
74,
13,
1705,
74,
273,
1140,
18,
803,
18,
5701,
12,
4816,
16,
74,
13,
1140,
18,
18539,
12,
4816,
74,
16,
11057,
74,
13,
1172,
296,
16290,
7772,
738,
87,
358,
738,
87,
11,
738,
261,
4816,
74,
16,
3046,
74,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9933,
16235,
22831,
30857,
42,
4672,
364,
619,
316,
2589,
18,
19485,
30,
309,
619,
10531,
2643,
65,
18920,
413,
5425,
17,
412,
270,
2941,
2218,
30,
327,
1705,
273,
2589,
18,
4177,
67,
3239,
3046,
273,
1140,
18,
803,
18,
5701,
12,
4816,
11189,
40,
4503,
87,
6134,
309,
2589,
18,
7118,
1589,
34,
33,
20,
92,
18212,
713,
69,
20,
30,
1705,
273,
1140,
18,
803,
18,
5701,
12,
4816,
11189,
5664,
17023,
4256,
17,
10308,
6134,
364,
284,
316,
478,
30,
3046,
74,
273,
1140,
18,
803,
18,
5701,
12,
11057,
16,
74,
13,
309,
1140,
18,
803,
18,
291,
768,
12,
11057,
74,
4672,
1140,
18,
4479,
12,
11057,
74,
13,
1705,
74,
273,
2
] |
if os.path.splitdrive(uri)[0] != u'': uri = u'file:' + urllib.pathname2url(uri)
|
def toUri(self): uri = self.value() #if os.path.abspath(uri): if os.path.splitdrive(uri)[0] != u'': uri = u'file:' + urllib.pathname2url(uri) uri = posifyPath(uri) return uri
|
6c19a0fe131d9af57eccbb1dba943d266fb804b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/6c19a0fe131d9af57eccbb1dba943d266fb804b1/Path.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
358,
3006,
12,
2890,
4672,
2003,
273,
365,
18,
1132,
1435,
468,
430,
1140,
18,
803,
18,
5113,
803,
12,
1650,
4672,
1650,
273,
949,
1164,
743,
12,
1650,
13,
327,
2003,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self._suspended.add(ch)
|
self._suspended.add((ch, why))
|
def _suspend(self): r'''Suspend the running tasklet until awoken. ''' ch = stackless.channel() self._suspended.add(ch) ch.receive() assert ch not in self._suspended del ch
|
9cbfe581718d0c6f7da76396dc9d54a675eb371d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10902/9cbfe581718d0c6f7da76396dc9d54a675eb371d/model.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
87,
18815,
12,
2890,
4672,
436,
26418,
55,
18815,
326,
3549,
1562,
1810,
3180,
1690,
969,
18,
9163,
462,
273,
2110,
2656,
18,
4327,
1435,
365,
6315,
87,
22942,
18,
1289,
12443,
343,
16,
11598,
3719,
462,
18,
18149,
1435,
1815,
462,
486,
316,
365,
6315,
87,
22942,
1464,
462,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
87,
18815,
12,
2890,
4672,
436,
26418,
55,
18815,
326,
3549,
1562,
1810,
3180,
1690,
969,
18,
9163,
462,
273,
2110,
2656,
18,
4327,
1435,
365,
6315,
87,
22942,
18,
1289,
12443,
343,
16,
11598,
3719,
462,
18,
18149,
1435,
1815,
462,
486,
316,
365,
6315,
87,
22942,
1464,
462,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
os.path.join("bin", "KW_veto_calc"),
|
os.path.join("bin", "KW_veto_calc"),
|
def run(self): # remove the automatically generated user env scripts for script in ["pylal-user-env.sh", "pylal-user-env.csh"]: log.info("removing " + script ) try: os.unlink(os.path.join("etc", script)) except: pass
|
bcb90cae6607140da1a5438dff867e4a1731aa08 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/bcb90cae6607140da1a5438dff867e4a1731aa08/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
1206,
326,
6635,
4374,
729,
1550,
8873,
364,
2728,
316,
8247,
2074,
80,
287,
17,
1355,
17,
3074,
18,
674,
3113,
315,
2074,
80,
287,
17,
1355,
17,
3074,
18,
71,
674,
11929,
30,
613,
18,
1376,
2932,
2764,
13767,
315,
397,
2728,
262,
775,
30,
1140,
18,
318,
1232,
12,
538,
18,
803,
18,
5701,
2932,
14175,
3113,
2728,
3719,
1335,
30,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
6635,
4374,
729,
1550,
8873,
364,
2728,
316,
8247,
2074,
80,
287,
17,
1355,
17,
3074,
18,
674,
3113,
315,
2074,
80,
287,
17,
1355,
17,
3074,
18,
71,
674,
11929,
30,
613,
18,
1376,
2932,
2764,
13767,
315,
397,
2728,
262,
775,
30,
1140,
18,
318,
1232,
12,
538,
18,
803,
18,
5701,
2932,
14175,
3113,
2728,
3719,
1335,
30,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
device_rp = subdir.append("aux") if device_rp.lstat(): assert device_rp.lstat()
|
try: device_rp = subdir.append("aux") if device_rp.lstat(): log.Log("escape_dos_devices required by filesystem at %s" \ % (subdir.path), 4) self.escape_dos_devices = 1 else: log.Log("escape_dos_devices not required by filesystem at %s" \ % (subdir.path), 4) self.escape_dos_devices = 0 except(OSError):
|
def set_escape_dos_devices(self, subdir): """If special file aux can be stat'd, escape special files""" device_rp = subdir.append("aux") if device_rp.lstat(): assert device_rp.lstat() log.Log("escape_dos_devices required by filesystem at %s" \ % (subdir.path), 4) self.escape_dos_devices = 1 else: assert not device_rp.lstat() log.Log("escape_dos_devices not required by filesystem at %s" \ % (subdir.path), 4) self.escape_dos_devices = 0
|
a40e2326baba295220c0e2038a7cf425fc8fb30d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6202/a40e2326baba295220c0e2038a7cf425fc8fb30d/fs_abilities.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6939,
67,
19219,
67,
12506,
12,
2890,
16,
16921,
4672,
3536,
2047,
4582,
585,
9397,
848,
506,
610,
14271,
16,
4114,
4582,
1390,
8395,
775,
30,
2346,
67,
13832,
273,
16921,
18,
6923,
2932,
18196,
7923,
309,
2346,
67,
13832,
18,
80,
5642,
13332,
613,
18,
1343,
2932,
6939,
67,
19219,
67,
12506,
1931,
635,
6496,
622,
738,
87,
6,
521,
738,
261,
1717,
1214,
18,
803,
3631,
1059,
13,
365,
18,
6939,
67,
19219,
67,
12506,
273,
404,
469,
30,
613,
18,
1343,
2932,
6939,
67,
19219,
67,
12506,
486,
1931,
635,
6496,
622,
738,
87,
6,
521,
738,
261,
1717,
1214,
18,
803,
3631,
1059,
13,
365,
18,
6939,
67,
19219,
67,
12506,
273,
374,
1335,
12,
4618,
668,
4672,
613,
18,
1343,
2932,
6939,
67,
19219,
67,
12506,
1931,
635,
6496,
622,
738,
87,
6,
521,
738,
261,
1717,
1214,
18,
803,
3631,
1059,
13,
365,
18,
6939,
67,
19219,
67,
12506,
273,
404,
469,
30,
1815,
486,
2346,
67,
13832,
18,
80,
5642,
1435,
613,
18,
1343,
2932,
6939,
67,
19219,
67,
12506,
486,
1931,
635,
6496,
622,
738,
87,
6,
521,
738,
261,
1717,
1214,
18,
803,
3631,
1059,
13,
365,
18,
6939,
67,
19219,
67,
12506,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6939,
67,
19219,
67,
12506,
12,
2890,
16,
16921,
4672,
3536,
2047,
4582,
585,
9397,
848,
506,
610,
14271,
16,
4114,
4582,
1390,
8395,
775,
30,
2346,
67,
13832,
273,
16921,
18,
6923,
2932,
18196,
7923,
309,
2346,
67,
13832,
18,
80,
5642,
13332,
613,
18,
1343,
2932,
6939,
67,
19219,
67,
12506,
1931,
635,
6496,
622,
738,
87,
6,
521,
738,
261,
1717,
1214,
18,
803,
3631,
1059,
13,
365,
18,
6939,
67,
19219,
67,
12506,
273,
404,
469,
30,
613,
18,
1343,
2932,
6939,
67,
19219,
67,
12506,
486,
1931,
635,
6496,
622,
738,
87,
6,
521,
738,
261,
1717,
1214,
18,
803,
3631,
1059,
13,
365,
18,
6939,
67,
19219,
67,
12506,
273,
2
] |
htmlfile.write('<td width=30%><img width=100% src="skymap.png"></td>') htmlfile.write('<td width=30%><img width=100% src="m2dist.png"></td>')
|
if opts.skyres is not None: htmlfile.write('<td width=30%><img width=100% src="skymap.png"></td>') else: htmlfile.write('<td width=30%><img width=100% src="psiiota.png"></td>') htmlfile.write('<td width=30%><img width=100% src="Diota.png"></td>')
|
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/yax.ptp()
|
4bf8ce2fee099e595f21068917fe233b6f4eb8cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/4bf8ce2fee099e595f21068917fe233b6f4eb8cd/OddsPostProc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
22,
40,
8111,
12,
92,
3404,
16,
93,
3404,
16,
50,
92,
16,
50,
93,
4672,
619,
651,
33,
80,
15738,
12,
1154,
12,
92,
3404,
3631,
1896,
12,
92,
3404,
3631,
50,
92,
13,
677,
651,
33,
80,
15738,
12,
1154,
12,
93,
3404,
3631,
1896,
12,
93,
3404,
3631,
50,
93,
13,
619,
16,
93,
33,
15974,
18,
15557,
5222,
12,
92,
651,
16,
93,
651,
13,
10747,
33,
1126,
3816,
92,
3404,
16,
93,
3404,
5717,
417,
323,
33,
5296,
18,
79,
323,
18,
75,
12086,
67,
79,
323,
12,
87,
931,
13,
3068,
67,
9076,
273,
3972,
18,
6923,
12,
92,
18,
1955,
1273,
19236,
21,
16,
21,
3631,
93,
18,
1955,
1273,
19236,
21,
16,
21,
3631,
4890,
33,
21,
13,
998,
273,
417,
323,
12,
5222,
67,
9076,
18,
56,
13,
998,
273,
998,
18,
1955,
1273,
12,
50,
92,
16,
50,
93,
13,
30869,
33,
92,
651,
18,
337,
84,
1435,
19,
93,
651,
18,
337,
84,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
16,
93,
3404,
16,
50,
92,
16,
50,
93,
4672,
619,
651,
33,
80,
15738,
12,
1154,
12,
92,
3404,
3631,
1896,
12,
92,
3404,
3631,
50,
92,
13,
677,
651,
33,
80,
15738,
12,
1154,
12,
93,
3404,
3631,
1896,
12,
93,
3404,
3631,
50,
93,
13,
619,
16,
93,
33,
15974,
18,
15557,
5222,
12,
92,
651,
16,
93,
651,
13,
10747,
33,
1126,
3816,
92,
3404,
16,
93,
3404,
5717,
417,
323,
33,
5296,
18,
79,
323,
18,
75,
12086,
67,
79,
323,
12,
87,
931,
13,
3068,
67,
9076,
273,
3972,
18,
6923,
12,
92,
18,
1955,
1273,
19236,
21,
16,
21,
3631,
93,
18,
1955,
1273,
2
] |
def get_data(self, form):
|
def get_data(self, data):
|
def get_data(self, form): cr, uid = self.cr, self.uid db_pool = pooler.get_pool(self.cr.dbname)
|
23f3f286dd55d8bb58aa9afdf315b22bfafe76e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/23f3f286dd55d8bb58aa9afdf315b22bfafe76e0/report_pl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
12,
2890,
16,
501,
4672,
4422,
16,
4555,
273,
365,
18,
3353,
16,
365,
18,
1911,
1319,
67,
6011,
273,
2845,
264,
18,
588,
67,
6011,
12,
2890,
18,
3353,
18,
20979,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
12,
2890,
16,
501,
4672,
4422,
16,
4555,
273,
365,
18,
3353,
16,
365,
18,
1911,
1319,
67,
6011,
273,
2845,
264,
18,
588,
67,
6011,
12,
2890,
18,
3353,
18,
20979,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.request.response.setHeader('Content-Type',
|
self.request.response.setHeader('Content-Type',
|
def __call__(self): properties = component.getUtility(IPropertiesTool) charset = properties.site_properties.getProperty('default_charset', 'utf-8').upper() self.request.response.setHeader('Content-Type', 'text/csv; charset=%s' % charset) self.request.response.setHeader('Content-disposition', 'attachment; filename=subscribers_%s_%s.csv' % (self.context.id, datetime.date.today().strftime("%Y%m%d"))) res = cStringIO.StringIO() writer = csv.writer(res, dialect=csv.excel, delimiter=csv_delimiter) for format in self.context.composers.keys(): for subscription in tuple(self.context.subscriptions.query(format=format)): row = [] for item in field.Fields(self.context.composers[format].schema).keys(): v = subscription.composer_data.get(item) or '' row.append(v.encode(charset))
|
6a225131d5814f4fcaf8f720f43c7e7816ee8a6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9843/6a225131d5814f4fcaf8f720f43c7e7816ee8a6b/channel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
1790,
273,
1794,
18,
588,
6497,
12,
45,
2297,
6364,
13,
4856,
273,
1790,
18,
4256,
67,
4738,
18,
588,
1396,
2668,
1886,
67,
9999,
2187,
296,
3158,
17,
28,
16063,
5797,
1435,
365,
18,
2293,
18,
2740,
18,
542,
1864,
2668,
1350,
17,
559,
2187,
296,
955,
19,
6715,
31,
4856,
5095,
87,
11,
738,
4856,
13,
365,
18,
2293,
18,
2740,
18,
542,
1864,
2668,
1350,
17,
31231,
2187,
296,
11461,
31,
1544,
33,
1717,
17769,
10185,
87,
10185,
87,
18,
6715,
11,
738,
261,
2890,
18,
2472,
18,
350,
16,
3314,
18,
712,
18,
30064,
7675,
701,
9982,
27188,
61,
9,
81,
9,
72,
6,
20349,
400,
273,
276,
780,
4294,
18,
780,
4294,
1435,
2633,
273,
6101,
18,
6299,
12,
455,
16,
10864,
33,
6715,
18,
24121,
16,
5654,
33,
6715,
67,
15751,
13,
364,
740,
316,
365,
18,
2472,
18,
832,
917,
414,
18,
2452,
13332,
364,
4915,
316,
3193,
12,
2890,
18,
2472,
18,
19964,
18,
2271,
12,
2139,
33,
2139,
3719,
30,
1027,
273,
5378,
364,
761,
316,
652,
18,
2314,
12,
2890,
18,
2472,
18,
832,
917,
414,
63,
2139,
8009,
4821,
2934,
2452,
13332,
331,
273,
4915,
18,
15720,
67,
892,
18,
588,
12,
1726,
13,
578,
875,
1027,
18,
6923,
12,
90,
18,
3015,
12,
9999,
3719,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
1790,
273,
1794,
18,
588,
6497,
12,
45,
2297,
6364,
13,
4856,
273,
1790,
18,
4256,
67,
4738,
18,
588,
1396,
2668,
1886,
67,
9999,
2187,
296,
3158,
17,
28,
16063,
5797,
1435,
365,
18,
2293,
18,
2740,
18,
542,
1864,
2668,
1350,
17,
559,
2187,
296,
955,
19,
6715,
31,
4856,
5095,
87,
11,
738,
4856,
13,
365,
18,
2293,
18,
2740,
18,
542,
1864,
2668,
1350,
17,
31231,
2187,
296,
11461,
31,
1544,
33,
1717,
17769,
10185,
87,
10185,
87,
18,
6715,
11,
738,
261,
2890,
18,
2472,
18,
350,
16,
3314,
18,
712,
18,
30064,
7675,
701,
9982,
27188,
61,
9,
81,
9,
72,
6,
20349,
400,
273,
276,
2
] |
anchor=NSEW (or subset) - position anchor according to given direction
|
anchor=NSEW (or subset) - position anchor according to given direction
|
def place_configure(self, cnf={}, **kw): """Place a widget in the parent widget. Use as options: in=master - master relative to which the widget is placed. x=amount - locate anchor of this widget at position x of master y=amount - locate anchor of this widget at position y of master relx=amount - locate anchor of this widget between 0.0 and 1.0 relative to width of master (1.0 is right edge) rely=amount - locate anchor of this widget between 0.0 and 1.0 relative to height of master (1.0 is bottom edge) anchor=NSEW (or subset) - position anchor according to given direction width=amount - width of this widget in pixel height=amount - height of this widget in pixel relwidth=amount - width of this widget between 0.0 and 1.0 relative to width of master (1.0 is the same width as the master) relheight=amount - height of this widget between 0.0 and 1.0 relative to height of master (1.0 is the same height as the master) bordermode="inside" or "outside" - whether to take border width of master widget into account """ for k in ['in_']: if kw.has_key(k): kw[k[:-1]] = kw[k] del kw[k] self.tk.call( ('place', 'configure', self._w) + self._options(cnf, kw))
|
604f95edacc880af4fb9513d8bd9b523258c8994 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/604f95edacc880af4fb9513d8bd9b523258c8994/Tkinter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3166,
67,
14895,
12,
2890,
16,
23118,
28793,
2826,
9987,
4672,
3536,
6029,
279,
3604,
316,
326,
982,
3604,
18,
2672,
487,
702,
30,
316,
33,
7525,
300,
4171,
3632,
358,
1492,
326,
3604,
353,
15235,
18,
619,
33,
8949,
300,
10627,
6984,
434,
333,
3604,
622,
1754,
619,
434,
4171,
677,
33,
8949,
300,
10627,
6984,
434,
333,
3604,
622,
1754,
677,
434,
4171,
1279,
92,
33,
8949,
300,
10627,
6984,
434,
333,
3604,
3086,
374,
18,
20,
471,
404,
18,
20,
3632,
358,
1835,
434,
4171,
261,
21,
18,
20,
353,
2145,
3591,
13,
21187,
33,
8949,
300,
10627,
6984,
434,
333,
3604,
3086,
374,
18,
20,
471,
404,
18,
20,
3632,
358,
2072,
434,
4171,
261,
21,
18,
20,
353,
5469,
3591,
13,
6984,
33,
50,
1090,
59,
261,
280,
7931,
13,
300,
1754,
6984,
4888,
358,
864,
4068,
1835,
33,
8949,
300,
1835,
434,
333,
3604,
316,
4957,
2072,
33,
8949,
300,
2072,
434,
333,
3604,
316,
4957,
1279,
2819,
33,
8949,
300,
1835,
434,
333,
3604,
3086,
374,
18,
20,
471,
404,
18,
20,
3632,
358,
1835,
434,
4171,
261,
21,
18,
20,
353,
326,
1967,
1835,
487,
326,
4171,
13,
1279,
4210,
33,
8949,
300,
2072,
434,
333,
3604,
3086,
374,
18,
20,
471,
404,
18,
20,
3632,
358,
2072,
434,
4171,
261,
21,
18,
20,
353,
326,
1967,
2072,
487,
326,
4171,
13,
5795,
3188,
1546,
28091,
6,
578,
315,
659,
5564,
6,
300,
2856,
358,
4862,
5795,
1835,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3166,
67,
14895,
12,
2890,
16,
23118,
28793,
2826,
9987,
4672,
3536,
6029,
279,
3604,
316,
326,
982,
3604,
18,
2672,
487,
702,
30,
316,
33,
7525,
300,
4171,
3632,
358,
1492,
326,
3604,
353,
15235,
18,
619,
33,
8949,
300,
10627,
6984,
434,
333,
3604,
622,
1754,
619,
434,
4171,
677,
33,
8949,
300,
10627,
6984,
434,
333,
3604,
622,
1754,
677,
434,
4171,
1279,
92,
33,
8949,
300,
10627,
6984,
434,
333,
3604,
3086,
374,
18,
20,
471,
404,
18,
20,
3632,
358,
1835,
434,
4171,
261,
21,
18,
20,
353,
2145,
3591,
13,
21187,
33,
8949,
300,
10627,
6984,
434,
333,
3604,
3086,
374,
18,
20,
471,
404,
18,
20,
3632,
358,
2072,
434,
4171,
2
] |
result=templates.Template.check_vars(self, vars, cmd)
|
result=super(StandardHosting, self).check_vars(vars, cmd)
|
def check_vars(self, vars, cmd): result=templates.Template.check_vars(self, vars, cmd)
|
cbaa4df97e31752d5bcf8def48beebbffe2737eb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11358/cbaa4df97e31752d5bcf8def48beebbffe2737eb/hosting.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
4699,
12,
2890,
16,
4153,
16,
1797,
4672,
563,
33,
8502,
18,
2283,
18,
1893,
67,
4699,
12,
2890,
16,
4153,
16,
1797,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
866,
67,
4699,
12,
2890,
16,
4153,
16,
1797,
4672,
563,
33,
8502,
18,
2283,
18,
1893,
67,
4699,
12,
2890,
16,
4153,
16,
1797,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
REFERENCE: - [1] Sampo Niskanen and Patric R. J. Östergård, "Cliquer User's Guide, Version 1.0," Communications Laboratory, Helsinki University of Technology, Espoo, Finland, Tech. Rep. T48, 2003. - [2] Coen Bron and Joep Kerbosch. (1973). Algorithm 457: Finding All Cliques of an Undirected Graph. Commun. ACM. v 16. n 9. pages 575-577. ACM Press. [Online] Available: http://www.ram.org/computing/rambin/rambin.html
|
ALGORITHM: This function is based on Cliquer [NisOst2003]_ and [BroKer1973]_.
|
def clique_number(self, algorithm="cliquer", cliques=None): """ Returns the order of the largest clique of the graph (the clique number).
|
ff0c9f33534c3168fbe7c717cbfddb40743165ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ff0c9f33534c3168fbe7c717cbfddb40743165ac/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31380,
67,
2696,
12,
2890,
16,
4886,
1546,
4857,
25734,
3113,
4942,
29896,
33,
7036,
4672,
3536,
2860,
326,
1353,
434,
326,
12756,
31380,
434,
326,
2667,
261,
5787,
31380,
1300,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31380,
67,
2696,
12,
2890,
16,
4886,
1546,
4857,
25734,
3113,
4942,
29896,
33,
7036,
4672,
3536,
2860,
326,
1353,
434,
326,
12756,
31380,
434,
326,
2667,
261,
5787,
31380,
1300,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.