rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
self.ignore_local_hold = True | def _NH_SIPApplicationGotInput(self, notification): engine = Engine() notification_center = NotificationCenter() settings = SIPSimpleSettings() if notification.data.input == '\x04': if self.active_session is not None: self.output.put('Ending audio session...\n') self.active_session.end() elif self.outgoing_session is not None: self.output.put('Cancelling audio session...\n') self.outgoing_session.end() else: self.stop() elif notification.data.input == '?': self.print_help() elif notification.data.input in ('y', 'n') and self.incoming_sessions: session = self.incoming_sessions.pop(0) if notification.data.input == 'y': session.accept([stream for stream in session.proposed_streams if isinstance(stream, AudioStream)]) else: session.reject() elif notification.data.input == 'm': self.voice_conference_bridge.muted = not self.voice_conference_bridge.muted self.output.put('The microphone is now %s\n' % ('muted' if self.voice_conference_bridge.muted else 'unmuted')) elif notification.data.input == 'h': if self.active_session is not None: self.output.put('Ending audio session...\n') self.active_session.end() elif self.outgoing_session is not None: self.output.put('Cancelling audio session...\n') self.outgoing_session.end() elif notification.data.input == ' ': if self.active_session is not None: if self.active_session.on_hold: self.active_session.unhold() else: self.active_session.hold() elif notification.data.input in ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '*', '#', 'A', 'B', 'C', 'D'): if self.active_session is not None: try: audio_stream = self.active_session.streams[0] except IndexError: pass else: audio_stream.send_dtmf(notification.data.input) if self.voice_tone_generator is None: self.voice_tone_generator = ToneGenerator(self.voice_conference_bridge) self.voice_tone_generator.start() self.voice_conference_bridge.connect_slots(self.voice_tone_generator.slot, 0) notification_center.add_observer(self, sender=self.voice_tone_generator) self.voice_tone_generator.play_dtmf(notification.data.input) elif notification.data.input in ('\x1b[A', '\x1b[D') and len(self.started_sessions) > 0: # UP and LEFT if self.active_session is None: self.active_session = self.started_sessions[0] self.active_session.unhold() self.ignore_local_unhold = True elif len(self.started_sessions) > 1: self.active_session.hold() self.active_session = self.started_sessions[self.started_sessions.index(self.active_session)-1] self.active_session.unhold() self.ignore_local_hold = True self.ignore_local_unhold = True else: return identity = str(self.active_session.remote_identity.uri) if self.active_session.remote_identity.display_name: identity = '"%s" <%s>' % (self.active_session.remote_identity.display_name, identity) self.output.put('Active audio session: "%s" (%d/%d)\n' % (identity, self.started_sessions.index(self.active_session)+1, len(self.started_sessions))) elif notification.data.input in ('\x1b[B', '\x1b[C') and len(self.started_sessions) > 0: # DOWN and RIGHT if self.active_session is None: self.active_session = self.started_sessions[0] self.active_session.unhold() self.ignore_local_unhold = True elif len(self.started_sessions) > 1: self.active_session.hold() self.active_session = self.started_sessions[(self.started_sessions.index(self.active_session)+1) % len(self.started_sessions)] self.active_session.unhold() self.ignore_local_hold = True self.ignore_local_unhold = True else: return identity = str(self.active_session.remote_identity.uri) if self.active_session.remote_identity.display_name: identity = '"%s" <%s>' % (self.active_session.remote_identity.display_name, identity) self.output.put('Active audio session: "%s" (%d/%d)\n' % (identity, self.started_sessions.index(self.active_session)+1, len(self.started_sessions))) elif notification.data.input in ('<', ','): new_tail_length = self.voice_conference_bridge.ec_tail_length - 10 if new_tail_length < 0: new_tail_length = 0 if new_tail_length != self.voice_conference_bridge.ec_tail_length: self.voice_conference_bridge.set_sound_devices(self.voice_conference_bridge.input_device, self.voice_conference_bridge.output_device, new_tail_length) self.output.put('Set echo cancellation tail length to %d ms\n' % self.voice_conference_bridge.ec_tail_length) elif notification.data.input in ('>', '.'): new_tail_length = self.voice_conference_bridge.ec_tail_length + 10 if new_tail_length > 500: new_tail_length = 500 if new_tail_length != self.voice_conference_bridge.ec_tail_length: self.voice_conference_bridge.set_sound_devices(self.voice_conference_bridge.input_device, self.voice_conference_bridge.output_device, new_tail_length) self.output.put('Set echo cancellation tail length to %d ms\n' % self.voice_conference_bridge.ec_tail_length) elif notification.data.input == 'r': if self.active_session is None or not self.active_session.streams: return session = self.active_session audio_stream = self.active_session.streams[0] if audio_stream.recording_active: audio_stream.stop_recording() else: audio_stream.start_recording() elif notification.data.input == 'p': if self.rtp_statistics is None: self.rtp_statistics = RTPStatisticsThread(self) self.rtp_statistics.start() self.output.put('Output of RTP statistics on console is now activated\n') else: self.rtp_statistics.stop() self.rtp_statistics = None self.output.put('Output of RTP statistics on console is now dectivated\n') elif notification.data.input == 'j': self.logger.pjsip_to_stdout = not self.logger.pjsip_to_stdout engine.log_level = settings.logs.pjsip_level if (self.logger.pjsip_to_stdout or settings.logs.trace_pjsip) else 0 self.output.put('PJSIP tracing to console is now %s\n' % ('activated' if self.logger.pjsip_to_stdout else 'deactivated')) elif notification.data.input == 'n': self.logger.notifications_to_stdout = not self.logger.notifications_to_stdout self.output.put('Notification tracing to console is now %s.\n' % ('activated' if self.logger.notifications_to_stdout else 'deactivated')) elif notification.data.input == 's': self.logger.sip_to_stdout = not self.logger.sip_to_stdout engine.trace_sip = self.logger.sip_to_stdout or settings.logs.trace_sip self.output.put('SIP tracing to console is now %s\n' % ('activated' if self.logger.sip_to_stdout else 'deactivated')) | 4de651b3cfcbef33d807eb78f194261b199e86a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/4de651b3cfcbef33d807eb78f194261b199e86a3/sip_audio_session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
50,
44,
67,
17739,
3208,
15617,
1210,
12,
2890,
16,
3851,
4672,
4073,
273,
10507,
1435,
3851,
67,
5693,
273,
8050,
8449,
1435,
1947,
273,
348,
2579,
5784,
2628,
1435,
309,
3851,
18,
892,
18,
2630,
422,
2337,
92,
3028,
4278,
309,
365,
18,
3535,
67,
3184,
353,
486,
599,
30,
365,
18,
2844,
18,
458,
2668,
25674,
7447,
1339,
2777,
64,
82,
6134,
365,
18,
3535,
67,
3184,
18,
409,
1435,
1327,
365,
18,
31891,
67,
3184,
353,
486,
599,
30,
365,
18,
2844,
18,
458,
2668,
2568,
3855,
310,
7447,
1339,
2777,
64,
82,
6134,
365,
18,
31891,
67,
3184,
18,
409,
1435,
469,
30,
365,
18,
5681,
1435,
1327,
3851,
18,
892,
18,
2630,
422,
13023,
4278,
365,
18,
1188,
67,
5201,
1435,
1327,
3851,
18,
892,
18,
2630,
316,
7707,
93,
2187,
296,
82,
6134,
471,
365,
18,
31033,
67,
16794,
30,
1339,
273,
365,
18,
31033,
67,
16794,
18,
5120,
12,
20,
13,
309,
3851,
18,
892,
18,
2630,
422,
296,
93,
4278,
1339,
18,
9436,
3816,
3256,
364,
1407,
316,
1339,
18,
685,
7423,
67,
16320,
309,
1549,
12,
3256,
16,
15045,
1228,
13,
5717,
469,
30,
1339,
18,
24163,
1435,
1327,
3851,
18,
892,
18,
2630,
422,
296,
81,
4278,
365,
18,
25993,
67,
591,
1134,
67,
18337,
18,
81,
4817,
273,
486,
365,
18,
25993,
67,
591,
1134,
67,
18337,
18,
81,
4817,
365,
18,
2844,
18,
458,
2668,
1986,
6481,
10540,
353,
2037,
738,
87,
64,
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,
50,
44,
67,
17739,
3208,
15617,
1210,
12,
2890,
16,
3851,
4672,
4073,
273,
10507,
1435,
3851,
67,
5693,
273,
8050,
8449,
1435,
1947,
273,
348,
2579,
5784,
2628,
1435,
309,
3851,
18,
892,
18,
2630,
422,
2337,
92,
3028,
4278,
309,
365,
18,
3535,
67,
3184,
353,
486,
599,
30,
365,
18,
2844,
18,
458,
2668,
25674,
7447,
1339,
2777,
64,
82,
6134,
365,
18,
3535,
67,
3184,
18,
409,
1435,
1327,
365,
18,
31891,
67,
3184,
353,
486,
599,
30,
365,
18,
2844,
18,
458,
2668,
2568,
3855,
310,
7447,
1339,
2777,
64,
82,
6134,
365,
18,
31891,
67,
3184,
18,
409,
1435,
469,
30,
365,
18,
5681,
1435,
1327,
3851,
18,
892,
18,
2630,
2
] |
|
"Number", | "Number", "Boolean", | def isBadGlobal(self, identifier): return identifier in Lint.DEPRECATED_IDENTIFIER | 03dc001d2fddbdf69ae330008d879ce56a5a2389 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/03dc001d2fddbdf69ae330008d879ce56a5a2389/ecmalint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
6434,
5160,
12,
2890,
16,
2756,
4672,
327,
2756,
316,
511,
474,
18,
17575,
67,
16606,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
6434,
5160,
12,
2890,
16,
2756,
4672,
327,
2756,
316,
511,
474,
18,
17575,
67,
16606,
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
] |
if data == u'': | if data == u'' or self.site().mediawiki_message('pagemovedsub') in data: | def move(self, newtitle, reason=None, movetalkpage=True, sysop=False, throttle=True, deleteAndMove=False, safe=True): """Move this page to new title given by newtitle. If safe, don't try to move and delete if not directly requested.""" # Login try: self.get() except: pass sysop = self._getActionUser(action = 'move', restriction = self.moveRestriction, sysop = False) if deleteAndMove: sysop = self._getActionUser(action = 'delete', restriction = '', sysop = True) | 63b8223a15903ead17ecae4b0795cf5d1a4c4438 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/63b8223a15903ead17ecae4b0795cf5d1a4c4438/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
12,
2890,
16,
394,
2649,
16,
3971,
33,
7036,
16,
5730,
278,
2960,
2433,
33,
5510,
16,
2589,
556,
33,
8381,
16,
18304,
33,
5510,
16,
1430,
1876,
7607,
33,
8381,
16,
4183,
33,
5510,
4672,
3536,
7607,
333,
1363,
358,
394,
2077,
864,
635,
394,
2649,
18,
971,
4183,
16,
2727,
1404,
775,
358,
3635,
471,
1430,
309,
486,
5122,
3764,
12123,
468,
11744,
775,
30,
365,
18,
588,
1435,
1335,
30,
1342,
2589,
556,
273,
365,
6315,
588,
1803,
1299,
12,
1128,
273,
296,
8501,
2187,
9318,
273,
365,
18,
8501,
11670,
16,
2589,
556,
273,
1083,
13,
309,
1430,
1876,
7607,
30,
2589,
556,
273,
365,
6315,
588,
1803,
1299,
12,
1128,
273,
296,
3733,
2187,
9318,
273,
10226,
2589,
556,
273,
1053,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
12,
2890,
16,
394,
2649,
16,
3971,
33,
7036,
16,
5730,
278,
2960,
2433,
33,
5510,
16,
2589,
556,
33,
8381,
16,
18304,
33,
5510,
16,
1430,
1876,
7607,
33,
8381,
16,
4183,
33,
5510,
4672,
3536,
7607,
333,
1363,
358,
394,
2077,
864,
635,
394,
2649,
18,
971,
4183,
16,
2727,
1404,
775,
358,
3635,
471,
1430,
309,
486,
5122,
3764,
12123,
468,
11744,
775,
30,
365,
18,
588,
1435,
1335,
30,
1342,
2589,
556,
273,
365,
6315,
588,
1803,
1299,
12,
1128,
273,
296,
8501,
2187,
9318,
273,
365,
18,
8501,
11670,
16,
2589,
556,
273,
1083,
13,
309,
1430,
1876,
7607,
30,
2589,
556,
273,
365,
6315,
588,
1803,
1299,
12,
1128,
273,
296,
2
] |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 527) else quickfix.StringField.__init__(self, 527, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
5324,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
5324,
16,
501,
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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381,
5324,
16,
501,
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
] |
return str(sum) | return sum | def infer_next_version(last_version, increment): """ Given a simple application version (as a StrictVersion), and an increment (1.0, 0.1, or 0.0.1), guess the next version. >>> VersionManagement.infer_next_version('3.2', '0.0.1') '3.2.1' >>> VersionManagement.infer_next_version(StrictVersion('3.2'), '0.0.1') '3.2.1' >>> VersionManagement.infer_next_version('3.2.3', '0.1') '3.3' >>> VersionManagement.infer_next_version('3.1.2', '1.0') '4.0' Subversions never increment parent versions >>> VersionManagement.infer_next_version('3.0.9', '0.0.1') '3.0.10' If it's a prerelease version, just remove the prerelease. >>> VersionManagement.infer_next_version('3.1a1', '0.0.1') '3.1' """ last_version = SummableVersion(str(last_version)) if last_version.prerelease: last_version.prerelease = None return str(last_version) increment = SummableVersion(increment) sum = last_version + increment sum.reset_less_significant(increment) return str(sum) | e305d484aa2294b4f486a574edcd9ecbe9dea495 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/833/e305d484aa2294b4f486a574edcd9ecbe9dea495/hgtools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12455,
67,
4285,
67,
1589,
12,
2722,
67,
1589,
16,
5504,
4672,
3536,
16803,
279,
4143,
2521,
1177,
261,
345,
279,
22307,
1444,
3631,
471,
392,
5504,
261,
21,
18,
20,
16,
374,
18,
21,
16,
578,
374,
18,
20,
18,
21,
3631,
7274,
326,
1024,
1177,
18,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
18,
22,
2187,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
22,
18,
21,
11,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
12,
14809,
1444,
2668,
23,
18,
22,
19899,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
22,
18,
21,
11,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
18,
22,
18,
23,
2187,
296,
20,
18,
21,
6134,
296,
23,
18,
23,
11,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
18,
21,
18,
22,
2187,
296,
21,
18,
20,
6134,
296,
24,
18,
20,
11,
225,
2592,
10169,
5903,
5504,
982,
5244,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
18,
20,
18,
29,
2187,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
20,
18,
2163,
11,
225,
971,
518,
1807,
279,
846,
30464,
1177,
16,
2537,
1206,
326,
846,
30464,
18,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
18,
21,
69,
21,
2187,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
21,
11,
3536,
1142,
67,
1589,
273,
9352,
81,
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,
12455,
67,
4285,
67,
1589,
12,
2722,
67,
1589,
16,
5504,
4672,
3536,
16803,
279,
4143,
2521,
1177,
261,
345,
279,
22307,
1444,
3631,
471,
392,
5504,
261,
21,
18,
20,
16,
374,
18,
21,
16,
578,
374,
18,
20,
18,
21,
3631,
7274,
326,
1024,
1177,
18,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
18,
22,
2187,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
22,
18,
21,
11,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
12,
14809,
1444,
2668,
23,
18,
22,
19899,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
22,
18,
21,
11,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
2
] |
self.item = itemOrEvent.itsItem | self.event = EventStamp(itemOrEvent) | def __init__(self, bounds, itemOrEvent): """ @param bounds: the bounds of the item as drawn on the canvas. @type bounds: wx.Rect @param item: the item drawn on the canvas in these bounds @type itemOrEvent: C{Item} or C{EventStamp} """ # @@@ scaffolding: resize bounds is the lower 5 pixels self._bounds = bounds if isinstance(itemOrEvent, EventStamp): self.item = itemOrEvent.itsItem else: self.item = itemOrEvent | 5a6cfd73a83ed3405c85525a218a1ad115e358e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5a6cfd73a83ed3405c85525a218a1ad115e358e0/CollectionCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4972,
16,
761,
1162,
1133,
4672,
3536,
632,
891,
4972,
30,
326,
4972,
434,
326,
761,
487,
19377,
603,
326,
5953,
18,
632,
723,
4972,
30,
7075,
18,
6120,
632,
891,
761,
30,
326,
761,
19377,
603,
326,
5953,
316,
4259,
4972,
632,
723,
761,
1162,
1133,
30,
385,
95,
1180,
97,
578,
385,
95,
1133,
8860,
97,
3536,
225,
468,
22175,
36,
20992,
310,
30,
7041,
4972,
353,
326,
2612,
1381,
8948,
365,
6315,
10576,
273,
4972,
309,
1549,
12,
1726,
1162,
1133,
16,
2587,
8860,
4672,
365,
18,
2575,
273,
2587,
8860,
12,
1726,
1162,
1133,
13,
469,
30,
365,
18,
1726,
273,
761,
1162,
1133,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4972,
16,
761,
1162,
1133,
4672,
3536,
632,
891,
4972,
30,
326,
4972,
434,
326,
761,
487,
19377,
603,
326,
5953,
18,
632,
723,
4972,
30,
7075,
18,
6120,
632,
891,
761,
30,
326,
761,
19377,
603,
326,
5953,
316,
4259,
4972,
632,
723,
761,
1162,
1133,
30,
385,
95,
1180,
97,
578,
385,
95,
1133,
8860,
97,
3536,
225,
468,
22175,
36,
20992,
310,
30,
7041,
4972,
353,
326,
2612,
1381,
8948,
365,
6315,
10576,
273,
4972,
309,
1549,
12,
1726,
1162,
1133,
16,
2587,
8860,
4672,
365,
18,
2575,
273,
2587,
8860,
12,
1726,
1162,
1133,
13,
469,
30,
365,
18,
1726,
273,
761,
1162,
1133,
2,
-100,
-100,
-100,
-100
] |
self.addHost(host, descriptiveName, mirrors) def addHost(self, host, descriptiveName = None, mirrors = None): | self.addHost(host, downloadUrl = downloadUrl, descriptiveName = descriptiveName, mirrors = mirrors) def addHost(self, host, downloadUrl = None, descriptiveName = None, mirrors = None): | def setHost(self, host, descriptiveName = None, mirrors = None): """ Specifies the URL that will ultimately host these contents. """ | d358a8d67ff3bd18e20575701cbe9cf362d7362d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/d358a8d67ff3bd18e20575701cbe9cf362d7362d/Packager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2594,
12,
2890,
16,
1479,
16,
302,
31812,
461,
273,
599,
16,
312,
27026,
273,
599,
4672,
3536,
4185,
5032,
326,
1976,
716,
903,
225,
406,
381,
5173,
1479,
4259,
2939,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
16,
312,
27026,
273,
599,
4672,
3536,
4185,
5032,
326,
1976,
716,
903,
225,
406,
381,
5173,
1479,
4259,
2939,
18,
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
] |
page.write("|| || %s ||" % (f.replace('range_summary.txt',''),) ) | page.write("|| || || || || %s ||" % (f.replace('range_summary.txt','').replace(base_name, ""),) ) | def parse_command_line(): parser = OptionParser(version = "%prog CVS $Id$", usage = "%prog [options] [file ...]", description = "%prog computes mass/mass upperlimit") parser.add_option("--webserver", help = "Set the webserver path. Required. Example https://ldas-jobs.ligo.caltech.edu/~channa/highmass_months_23-24_summary_page") parser.add_option("--open-box", action = "store_true", help = "Produce open box page") parser.add_option("--output-name-tag", default = "", metavar = "name", help = "Set the basename for image search") opts, filenames = parser.parse_args() if not opts.webserver: print >>sys.stderr, "must specify a webserver" sys.exit(1) return opts, filenames | e7764ccb15e454456204ecdbbb20b2c9bc1d4e17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e7764ccb15e454456204ecdbbb20b2c9bc1d4e17/make_summary_page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3076,
67,
1369,
13332,
2082,
273,
18862,
12,
1589,
273,
2213,
14654,
385,
14640,
271,
548,
8,
3113,
4084,
273,
2213,
14654,
306,
2116,
65,
306,
768,
1372,
65,
3113,
2477,
273,
2213,
14654,
15881,
8039,
19,
10424,
3854,
3595,
7923,
2082,
18,
1289,
67,
3482,
2932,
413,
1814,
2266,
502,
3113,
2809,
273,
315,
694,
326,
732,
2266,
502,
589,
18,
225,
10647,
18,
225,
5090,
2333,
2207,
1236,
345,
17,
10088,
18,
80,
17626,
18,
771,
28012,
18,
28049,
19,
98,
343,
1072,
69,
19,
8766,
10424,
67,
27584,
67,
4366,
17,
3247,
67,
7687,
67,
2433,
7923,
2082,
18,
1289,
67,
3482,
2932,
413,
3190,
17,
2147,
3113,
1301,
273,
315,
2233,
67,
3767,
3113,
2809,
273,
315,
25884,
1696,
3919,
1363,
7923,
2082,
18,
1289,
67,
3482,
2932,
413,
2844,
17,
529,
17,
2692,
3113,
805,
273,
23453,
15050,
273,
315,
529,
3113,
2809,
273,
315,
694,
326,
4882,
364,
1316,
1623,
7923,
1500,
16,
9066,
273,
2082,
18,
2670,
67,
1968,
1435,
225,
309,
486,
1500,
18,
1814,
2266,
502,
30,
1172,
1671,
9499,
18,
11241,
16,
315,
11926,
4800,
279,
732,
2266,
502,
6,
2589,
18,
8593,
12,
21,
13,
327,
1500,
16,
9066,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3076,
67,
1369,
13332,
2082,
273,
18862,
12,
1589,
273,
2213,
14654,
385,
14640,
271,
548,
8,
3113,
4084,
273,
2213,
14654,
306,
2116,
65,
306,
768,
1372,
65,
3113,
2477,
273,
2213,
14654,
15881,
8039,
19,
10424,
3854,
3595,
7923,
2082,
18,
1289,
67,
3482,
2932,
413,
1814,
2266,
502,
3113,
2809,
273,
315,
694,
326,
732,
2266,
502,
589,
18,
225,
10647,
18,
225,
5090,
2333,
2207,
1236,
345,
17,
10088,
18,
80,
17626,
18,
771,
28012,
18,
28049,
19,
98,
343,
1072,
69,
19,
8766,
10424,
67,
27584,
67,
4366,
17,
3247,
67,
7687,
67,
2433,
7923,
2082,
18,
1289,
67,
3482,
2932,
413,
3190,
17,
2147,
3113,
1301,
273,
315,
2233,
67,
2
] |
CRLF = '\r\n' | CRLF = b'\r\n' | def __init__(self, *args): Exception.__init__(self, *args) try: self.response = args[0] except IndexError: self.response = 'No response given' | eb96c4e975fd746fcc8b85f47c3592472b8d6b15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/eb96c4e975fd746fcc8b85f47c3592472b8d6b15/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
1185,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
775,
30,
365,
18,
2740,
273,
833,
63,
20,
65,
1335,
10195,
30,
365,
18,
2740,
273,
296,
2279,
766,
864,
11,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
1185,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
775,
30,
365,
18,
2740,
273,
833,
63,
20,
65,
1335,
10195,
30,
365,
18,
2740,
273,
296,
2279,
766,
864,
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
] |
def to_str(self, encoding=None): | def to_str(self, encoding='UTF-8'): | def to_str(self, encoding=None): messages = self.state.messages message_ids = messages.keys() message_ids.sort() messages = [ messages[x].to_str() for x in message_ids ] return '\n'.join(messages) | 3dca643585e4656477668283622453425eeb4794 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/3dca643585e4656477668283622453425eeb4794/PO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
701,
12,
2890,
16,
2688,
2218,
5159,
17,
28,
11,
4672,
2743,
273,
365,
18,
2019,
18,
6833,
883,
67,
2232,
273,
2743,
18,
2452,
1435,
883,
67,
2232,
18,
3804,
1435,
2743,
273,
306,
2743,
63,
92,
8009,
869,
67,
701,
1435,
364,
619,
316,
883,
67,
2232,
308,
327,
2337,
82,
10332,
5701,
12,
6833,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
67,
701,
12,
2890,
16,
2688,
2218,
5159,
17,
28,
11,
4672,
2743,
273,
365,
18,
2019,
18,
6833,
883,
67,
2232,
273,
2743,
18,
2452,
1435,
883,
67,
2232,
18,
3804,
1435,
2743,
273,
306,
2743,
63,
92,
8009,
869,
67,
701,
1435,
364,
619,
316,
883,
67,
2232,
308,
327,
2337,
82,
10332,
5701,
12,
6833,
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
] |
logfile, 0, '') | logfile, 0, '') | def ClearDir(DEBUGON, logfile, dirl): 'Clear the node directories under dirlist' nodelist = [] dirlist=dirl.split(',') dirlen=len(dirlist) nodename = str(socket.gethostname()) if DEBUGON: printlog('o2tf.ClearDir: logfile = (%s)' % logfile, logfile, 0, '') printlog('o2tf.ClearDir: dirlist = (%s)' % dirlist, logfile, 0, '') | 657bfc37c22ea26052b0df161170cb3df469efec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1915/657bfc37c22ea26052b0df161170cb3df469efec/o2tf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10121,
1621,
12,
9394,
673,
16,
15204,
16,
1577,
80,
4672,
296,
9094,
326,
756,
6402,
3613,
1577,
1098,
11,
30068,
273,
5378,
1577,
1098,
33,
1214,
80,
18,
4939,
12,
2187,
6134,
1577,
1897,
33,
1897,
12,
1214,
1098,
13,
14003,
1069,
273,
609,
12,
7814,
18,
75,
546,
669,
529,
10756,
309,
6369,
673,
30,
1172,
1330,
2668,
83,
22,
6632,
18,
9094,
1621,
30,
15204,
273,
6142,
87,
2506,
738,
15204,
16,
15204,
16,
374,
16,
28707,
1172,
1330,
2668,
83,
22,
6632,
18,
9094,
1621,
30,
1577,
1098,
273,
6142,
87,
2506,
738,
1577,
1098,
16,
15204,
16,
374,
16,
28707,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10121,
1621,
12,
9394,
673,
16,
15204,
16,
1577,
80,
4672,
296,
9094,
326,
756,
6402,
3613,
1577,
1098,
11,
30068,
273,
5378,
1577,
1098,
33,
1214,
80,
18,
4939,
12,
2187,
6134,
1577,
1897,
33,
1897,
12,
1214,
1098,
13,
14003,
1069,
273,
609,
12,
7814,
18,
75,
546,
669,
529,
10756,
309,
6369,
673,
30,
1172,
1330,
2668,
83,
22,
6632,
18,
9094,
1621,
30,
15204,
273,
6142,
87,
2506,
738,
15204,
16,
15204,
16,
374,
16,
28707,
1172,
1330,
2668,
83,
22,
6632,
18,
9094,
1621,
30,
1577,
1098,
273,
6142,
87,
2506,
738,
1577,
1098,
16,
15204,
16,
374,
16,
28707,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
profile=Profiler, | profile=profile, | def apply_jit(translator, backend_name="auto", **kwds): from pypy.jit.metainterp.simple_optimize import Optimizer if 'CPUClass' not in kwds: from pypy.jit.backend.detect_cpu import getcpuclass kwds['CPUClass'] = getcpuclass(backend_name) warmrunnerdesc = WarmRunnerDesc(translator, translate_support_code=True, listops=True, optimizer=Optimizer, profile=Profiler, **kwds) warmrunnerdesc.finish() translator.warmrunnerdesc = warmrunnerdesc # for later debugging | 97ca17da2166200ce398417d051dc1714e104d1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/97ca17da2166200ce398417d051dc1714e104d1c/warmspot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
78,
305,
12,
17879,
16,
4221,
67,
529,
1546,
6079,
3113,
2826,
25577,
4672,
628,
18951,
93,
18,
78,
305,
18,
10578,
11606,
84,
18,
9647,
67,
29155,
1930,
19615,
1824,
309,
296,
15222,
797,
11,
486,
316,
17149,
30,
628,
18951,
93,
18,
78,
305,
18,
9993,
18,
16518,
67,
11447,
1930,
336,
11447,
1106,
17149,
3292,
15222,
797,
3546,
273,
336,
11447,
1106,
12,
9993,
67,
529,
13,
22975,
18156,
5569,
273,
678,
4610,
9709,
4217,
12,
17879,
16,
4204,
67,
13261,
67,
710,
33,
5510,
16,
666,
4473,
33,
5510,
16,
13066,
33,
29789,
16,
3042,
33,
5040,
16,
2826,
25577,
13,
22975,
18156,
5569,
18,
13749,
1435,
8333,
18,
13113,
18156,
5569,
273,
22975,
18156,
5569,
565,
468,
364,
5137,
10450,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
78,
305,
12,
17879,
16,
4221,
67,
529,
1546,
6079,
3113,
2826,
25577,
4672,
628,
18951,
93,
18,
78,
305,
18,
10578,
11606,
84,
18,
9647,
67,
29155,
1930,
19615,
1824,
309,
296,
15222,
797,
11,
486,
316,
17149,
30,
628,
18951,
93,
18,
78,
305,
18,
9993,
18,
16518,
67,
11447,
1930,
336,
11447,
1106,
17149,
3292,
15222,
797,
3546,
273,
336,
11447,
1106,
12,
9993,
67,
529,
13,
22975,
18156,
5569,
273,
678,
4610,
9709,
4217,
12,
17879,
16,
4204,
67,
13261,
67,
710,
33,
5510,
16,
666,
4473,
33,
5510,
16,
13066,
33,
29789,
16,
3042,
33,
5040,
16,
2826,
25577,
13,
22975,
18156,
5569,
18,
13749,
1435,
8333,
18,
13113,
18156,
5569,
2
] |
access(path, mode) | access(path, os.R_OK|os.W_OK|os.X_OK) | def mkdir(path, mode=0777): filename = posixpath.basename(path) dirname = posixpath.dirname(path) f = _findFileFromPath(dirname) try: access(path, mode) except OSError, e: if e.errno != errno.ENOENT: raise if not isinstance(f, FakeDir): raise OSError(errno.ENOTDIR, '') if f.name in f.getChildren(): raise OSError(errno.EEXIST, '') f.linkChild(filename, FakeDir(filename, mode=mode)) | 754ae64ac3d42c03c45da2920fdd1d027194154d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/754ae64ac3d42c03c45da2920fdd1d027194154d/os_mock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6535,
12,
803,
16,
1965,
33,
20,
14509,
4672,
1544,
273,
16366,
803,
18,
13909,
12,
803,
13,
4283,
225,
273,
16366,
803,
18,
12287,
12,
803,
13,
284,
3639,
273,
389,
4720,
812,
23064,
12,
12287,
13,
225,
775,
30,
2006,
12,
803,
16,
1140,
18,
54,
67,
3141,
96,
538,
18,
59,
67,
3141,
96,
538,
18,
60,
67,
3141,
13,
1335,
10002,
16,
425,
30,
309,
425,
18,
19088,
480,
8402,
18,
1157,
51,
2222,
30,
1002,
225,
309,
486,
1549,
12,
74,
16,
11551,
1621,
4672,
1002,
10002,
12,
19088,
18,
1157,
1974,
4537,
16,
28707,
225,
309,
284,
18,
529,
316,
284,
18,
588,
4212,
13332,
1002,
10002,
12,
19088,
18,
41,
11838,
16,
28707,
225,
284,
18,
1232,
1763,
12,
3459,
16,
11551,
1621,
12,
3459,
16,
1965,
33,
3188,
3719,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6535,
12,
803,
16,
1965,
33,
20,
14509,
4672,
1544,
273,
16366,
803,
18,
13909,
12,
803,
13,
4283,
225,
273,
16366,
803,
18,
12287,
12,
803,
13,
284,
3639,
273,
389,
4720,
812,
23064,
12,
12287,
13,
225,
775,
30,
2006,
12,
803,
16,
1140,
18,
54,
67,
3141,
96,
538,
18,
59,
67,
3141,
96,
538,
18,
60,
67,
3141,
13,
1335,
10002,
16,
425,
30,
309,
425,
18,
19088,
480,
8402,
18,
1157,
51,
2222,
30,
1002,
225,
309,
486,
1549,
12,
74,
16,
11551,
1621,
4672,
1002,
10002,
12,
19088,
18,
1157,
1974,
4537,
16,
28707,
225,
309,
284,
18,
529,
316,
284,
18,
588,
4212,
13332,
1002,
10002,
12,
19088,
18,
41,
11838,
2
] |
if port not in sysdesc.keys() or port not in portdesc.keys() \ or port not in mgmtip.keys(): | if port not in sysdesc.keys() or port not in portdesc.keys(): | def fileIntoDb(txn, sysname, sysdesc, portdesc, mgmtip, ip): txn.execute("DELETE FROM lldp WHERE equipment=%(ip)s", {'ip': str(ip)}) for port in sysname.keys(): if port not in sysdesc.keys() or port not in portdesc.keys() \ or port not in mgmtip.keys(): continue txn.execute("INSERT INTO lldp VALUES (%(ip)s, " "%(port)s, %(mgmtip)s, %(portdesc)s, " "%(sysname)s, %(sysdesc)s)", {'ip': str(ip), 'port': port, 'mgmtip': mgmtip[port], 'portdesc': portdesc[port], 'sysname': sysname[port], 'sysdesc': sysdesc[port]}) | d6c8d6680cb496fea1bab4808c1bbb9bdfb78878 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13050/d6c8d6680cb496fea1bab4808c1bbb9bdfb78878/lldp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
5952,
4331,
12,
24790,
16,
2589,
529,
16,
2589,
5569,
16,
1756,
5569,
16,
29919,
625,
16,
2359,
4672,
7827,
18,
8837,
2932,
6460,
4571,
328,
18503,
4852,
1298,
11568,
5095,
12,
625,
13,
87,
3113,
13666,
625,
4278,
609,
12,
625,
13,
6792,
364,
1756,
316,
2589,
529,
18,
2452,
13332,
309,
1756,
486,
316,
2589,
5569,
18,
2452,
1435,
578,
1756,
486,
316,
1756,
5569,
18,
2452,
13332,
1324,
7827,
18,
8837,
2932,
11356,
12421,
328,
18503,
13477,
6142,
12,
625,
13,
87,
16,
315,
22061,
655,
13,
87,
16,
8975,
9319,
625,
13,
87,
16,
8975,
655,
5569,
13,
87,
16,
315,
22061,
9499,
529,
13,
87,
16,
8975,
9499,
5569,
13,
87,
2225,
16,
13666,
625,
4278,
609,
12,
625,
3631,
296,
655,
4278,
1756,
16,
296,
9319,
625,
4278,
29919,
625,
63,
655,
6487,
296,
655,
5569,
4278,
1756,
5569,
63,
655,
6487,
296,
9499,
529,
4278,
2589,
529,
63,
655,
6487,
296,
9499,
5569,
4278,
2589,
5569,
63,
655,
65,
6792,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
5952,
4331,
12,
24790,
16,
2589,
529,
16,
2589,
5569,
16,
1756,
5569,
16,
29919,
625,
16,
2359,
4672,
7827,
18,
8837,
2932,
6460,
4571,
328,
18503,
4852,
1298,
11568,
5095,
12,
625,
13,
87,
3113,
13666,
625,
4278,
609,
12,
625,
13,
6792,
364,
1756,
316,
2589,
529,
18,
2452,
13332,
309,
1756,
486,
316,
2589,
5569,
18,
2452,
1435,
578,
1756,
486,
316,
1756,
5569,
18,
2452,
13332,
1324,
7827,
18,
8837,
2932,
11356,
12421,
328,
18503,
13477,
6142,
12,
625,
13,
87,
16,
315,
22061,
655,
13,
87,
16,
8975,
9319,
625,
13,
87,
16,
8975,
655,
5569,
13,
87,
16,
315,
22061,
9499,
529,
13,
87,
16,
8975,
9499,
5569,
13,
87,
2225,
2
] |
if self.requred is not None: showIndent(outfile, level) outfile.write('requred=%s,\n' % self.requred) | if self.required is not None: showIndent(outfile, level) outfile.write('required=%s,\n' % self.required) | def exportLiteralChildren(self, outfile, level, name_): if self.ip_address is not None: showIndent(outfile, level) outfile.write('ip_address=%s,\n' % quote_python(self.ip_address).encode(ExternalEncoding)) if self.ipv6_address is not None: showIndent(outfile, level) outfile.write('ipv6_address=%s,\n' % quote_python(self.ipv6_address).encode(ExternalEncoding)) if self.dns_name is not None: showIndent(outfile, level) outfile.write('dns_name=%s,\n' % quote_python(self.dns_name).encode(ExternalEncoding)) if self.device_name is not None: showIndent(outfile, level) outfile.write('device_name=%s,\n' % quote_python(self.device_name).encode(ExternalEncoding)) if self.netmask is not None: showIndent(outfile, level) outfile.write('netmask=%s,\n' % quote_python(self.netmask).encode(ExternalEncoding)) if self.port_type is not None: showIndent(outfile, level) outfile.write('port_type=%s,\n' % quote_python(self.port_type).encode(ExternalEncoding)) if self.active is not None: showIndent(outfile, level) outfile.write('active=%s,\n' % self.active) if self.requred is not None: showIndent(outfile, level) outfile.write('requred=%s,\n' % self.requred) | 91b7fa5f4789cd99e181dad4d2401509c907da8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7635/91b7fa5f4789cd99e181dad4d2401509c907da8c/generateds_system_1_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
6177,
4212,
12,
2890,
16,
8756,
16,
1801,
16,
508,
67,
4672,
309,
365,
18,
625,
67,
2867,
353,
486,
599,
30,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
625,
67,
2867,
5095,
87,
17211,
82,
11,
738,
3862,
67,
8103,
12,
2890,
18,
625,
67,
2867,
2934,
3015,
12,
6841,
4705,
3719,
309,
365,
18,
10834,
26,
67,
2867,
353,
486,
599,
30,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
10834,
26,
67,
2867,
5095,
87,
17211,
82,
11,
738,
3862,
67,
8103,
12,
2890,
18,
10834,
26,
67,
2867,
2934,
3015,
12,
6841,
4705,
3719,
309,
365,
18,
14926,
67,
529,
353,
486,
599,
30,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
14926,
67,
529,
5095,
87,
17211,
82,
11,
738,
3862,
67,
8103,
12,
2890,
18,
14926,
67,
529,
2934,
3015,
12,
6841,
4705,
3719,
309,
365,
18,
5964,
67,
529,
353,
486,
599,
30,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
5964,
67,
529,
5095,
87,
17211,
82,
11,
738,
3862,
67,
8103,
12,
2890,
18,
5964,
67,
529,
2934,
3015,
12,
6841,
4705,
3719,
309,
365,
18,
2758,
4455,
353,
486,
599,
30,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
2758,
4455,
5095,
87,
17211,
82,
11,
738,
3862,
67,
8103,
12,
2890,
18,
2758,
4455,
2934,
3015,
12,
6841,
4705,
3719,
309,
365,
18,
655,
67,
723,
353,
486,
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,
3359,
6177,
4212,
12,
2890,
16,
8756,
16,
1801,
16,
508,
67,
4672,
309,
365,
18,
625,
67,
2867,
353,
486,
599,
30,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
625,
67,
2867,
5095,
87,
17211,
82,
11,
738,
3862,
67,
8103,
12,
2890,
18,
625,
67,
2867,
2934,
3015,
12,
6841,
4705,
3719,
309,
365,
18,
10834,
26,
67,
2867,
353,
486,
599,
30,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668,
10834,
26,
67,
2867,
5095,
87,
17211,
82,
11,
738,
3862,
67,
8103,
12,
2890,
18,
10834,
26,
67,
2867,
2934,
3015,
12,
6841,
4705,
3719,
309,
365,
18,
14926,
67,
529,
353,
486,
599,
30,
2405,
7790,
2
] |
tmp_conditions[tag2] = weather_dom.getElementsByTagName(tag)[0].getElementsByTagName(tag2)[0].getAttribute('data') | try: tmp_conditions[tag2] = weather_dom.getElementsByTagName(tag)[0].getElementsByTagName(tag2)[0].getAttribute('data') except IndexError: pass | def get_weather_from_google(location_id, hl = ''): """ Fetches weather report from Google Parameters location_id: a zip code (10001); city name, state (weather=woodland,PA); city name, country (weather=london,england); latitude/longitude(weather=,,,30670000,104019996) or possibly other. hl: the language parameter (language code). Default value is empty string, in this case Google will use English. Returns: weather_data: a dictionary of weather data that exists in XML feed. """ url = GOOGLE_WEATHER_URL % (location_id, hl) handler = urllib2.urlopen(url) content_type = handler.info().dict['content-type'] charset = re.search('charset\=(.*)',content_type).group(1) if not charset: charset = 'utf-8' if charset.lower() != 'utf-8': xml_response = handler.read().decode(charset).encode('utf-8') else: xml_response = handler.read() dom = minidom.parseString(xml_response) handler.close() weather_data = {} weather_dom = dom.getElementsByTagName('weather')[0] data_structure = { 'forecast_information': ('city', 'postal_code', 'latitude_e6', 'longitude_e6', 'forecast_date', 'current_date_time', 'unit_system'), 'current_conditions': ('condition','temp_f', 'temp_c', 'humidity', 'wind_condition', 'icon') } for (tag, list_of_tags2) in data_structure.iteritems(): tmp_conditions = {} for tag2 in list_of_tags2: tmp_conditions[tag2] = weather_dom.getElementsByTagName(tag)[0].getElementsByTagName(tag2)[0].getAttribute('data') weather_data[tag] = tmp_conditions forecast_conditions = ('day_of_week', 'low', 'high', 'icon', 'condition') forecasts = [] for forecast in dom.getElementsByTagName('forecast_conditions'): tmp_forecast = {} for tag in forecast_conditions: tmp_forecast[tag] = forecast.getElementsByTagName(tag)[0].getAttribute('data') forecasts.append(tmp_forecast) weather_data['forecasts'] = forecasts dom.unlink() return weather_data | 8a36cd3ce67008012cab4acb7a51bbd7cee3b8a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1185/8a36cd3ce67008012cab4acb7a51bbd7cee3b8a5/pywapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1814,
4806,
67,
2080,
67,
9536,
12,
3562,
67,
350,
16,
16043,
273,
875,
4672,
3536,
8065,
281,
21534,
2605,
628,
6124,
225,
7012,
2117,
67,
350,
30,
279,
3144,
981,
261,
6625,
1611,
1769,
12797,
508,
16,
919,
261,
1814,
4806,
33,
91,
4773,
15733,
16,
4066,
1769,
12797,
508,
16,
5251,
261,
1814,
4806,
33,
80,
1434,
265,
16,
275,
7043,
464,
1769,
8904,
19,
16867,
12,
1814,
4806,
33,
16408,
16,
5082,
9599,
2787,
16,
21869,
1611,
2733,
10525,
13,
578,
10016,
1308,
18,
16043,
30,
326,
2653,
1569,
261,
4923,
981,
2934,
2989,
460,
353,
1008,
533,
16,
316,
333,
648,
6124,
903,
999,
24151,
18,
225,
2860,
30,
21534,
67,
892,
30,
279,
3880,
434,
21534,
501,
716,
1704,
316,
3167,
4746,
18,
3536,
225,
880,
273,
12389,
13369,
900,
67,
6950,
3275,
654,
67,
1785,
738,
261,
3562,
67,
350,
16,
16043,
13,
1838,
273,
11527,
22,
18,
295,
18589,
12,
718,
13,
913,
67,
723,
273,
1838,
18,
1376,
7675,
1576,
3292,
1745,
17,
723,
3546,
4856,
273,
283,
18,
3072,
2668,
9999,
64,
33,
14361,
2187,
1745,
67,
723,
2934,
1655,
12,
21,
13,
309,
486,
4856,
30,
4856,
273,
296,
3158,
17,
28,
11,
309,
4856,
18,
8167,
1435,
480,
296,
3158,
17,
28,
4278,
2025,
67,
2740,
273,
1838,
18,
896,
7675,
3922,
12,
9999,
2934,
3015,
2668,
3158,
17,
28,
6134,
469,
30,
2025,
67,
2740,
273,
1838,
18,
896,
1435,
4092,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1814,
4806,
67,
2080,
67,
9536,
12,
3562,
67,
350,
16,
16043,
273,
875,
4672,
3536,
8065,
281,
21534,
2605,
628,
6124,
225,
7012,
2117,
67,
350,
30,
279,
3144,
981,
261,
6625,
1611,
1769,
12797,
508,
16,
919,
261,
1814,
4806,
33,
91,
4773,
15733,
16,
4066,
1769,
12797,
508,
16,
5251,
261,
1814,
4806,
33,
80,
1434,
265,
16,
275,
7043,
464,
1769,
8904,
19,
16867,
12,
1814,
4806,
33,
16408,
16,
5082,
9599,
2787,
16,
21869,
1611,
2733,
10525,
13,
578,
10016,
1308,
18,
16043,
30,
326,
2653,
1569,
261,
4923,
981,
2934,
2989,
460,
353,
1008,
533,
16,
316,
333,
648,
6124,
903,
999,
24151,
18,
225,
2860,
30,
21534,
67,
892,
2
] |
intermediate_path = os.path.join(build_path, 'obj', 'global_intermediate', path_components[1]) | intermediate_path = os.path.join(build_path, 'obj', 'global_intermediate', path_components[1]) | def total_split(path): components = [] while path: head, tail = os.path.split(path) if not tail: break components.append(tail) path = head return list(reversed(components)) | 650f43b727fd8956874de00f3fde5294046d753c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6097/650f43b727fd8956874de00f3fde5294046d753c/clobber_generated_headers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2078,
67,
4939,
12,
803,
4672,
4085,
273,
5378,
1323,
589,
30,
910,
16,
5798,
273,
1140,
18,
803,
18,
4939,
12,
803,
13,
309,
486,
5798,
30,
898,
4085,
18,
6923,
12,
13101,
13,
589,
273,
910,
327,
666,
12,
266,
7548,
12,
8119,
3719,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2078,
67,
4939,
12,
803,
4672,
4085,
273,
5378,
1323,
589,
30,
910,
16,
5798,
273,
1140,
18,
803,
18,
4939,
12,
803,
13,
309,
486,
5798,
30,
898,
4085,
18,
6923,
12,
13101,
13,
589,
273,
910,
327,
666,
12,
266,
7548,
12,
8119,
3719,
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
] |
start += stop | start += step | def frange(start, stop, step): while start <= stop: yield start start += stop | 8783c37ca945fe2c656d1d7d62ed7a3ea7ff0047 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8783c37ca945fe2c656d1d7d62ed7a3ea7ff0047/test_colorsys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
3676,
12,
1937,
16,
2132,
16,
2235,
4672,
1323,
787,
1648,
2132,
30,
2824,
787,
787,
1011,
2235,
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,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
3676,
12,
1937,
16,
2132,
16,
2235,
4672,
1323,
787,
1648,
2132,
30,
2824,
787,
787,
1011,
2235,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
padding = byte_count % 8 | padding = 8 - (byte_count % 8) | def _make_tag(base_dt, val, mdtype, sde=False): ''' Makes a simple matlab tag, full or sde ''' base_dt = np.dtype(base_dt) bo = boc.to_numpy_code(base_dt.byteorder) byte_count = base_dt.itemsize if not sde: udt = bo + 'u4' padding = byte_count % 8 all_dt = [('mdtype', udt), ('byte_count', udt), ('val', base_dt)] if padding: all_dt.append(('padding', 'u1', padding)) else: # is sde udt = bo + 'u2' padding = 4-byte_count if bo == boc.native_code: all_dt = [('mdtype', udt), ('byte_count', udt), ('val', base_dt)] else: all_dt = [('byte_count', udt), ('mdtype', udt), ('val', base_dt)] if padding: all_dt.append(('padding', 'u1', padding)) tag = np.zeros((1,), dtype=all_dt) tag['mdtype'] = mdtype tag['byte_count'] = byte_count tag['val'] = val return tag | f3e91385dab23e611bac0b3051058c7c87899297 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/f3e91385dab23e611bac0b3051058c7c87899297/test_mio5_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
2692,
12,
1969,
67,
7510,
16,
1244,
16,
3481,
723,
16,
272,
323,
33,
8381,
4672,
9163,
490,
3223,
279,
4143,
4834,
7411,
1047,
16,
1983,
578,
272,
323,
9163,
1026,
67,
7510,
273,
1130,
18,
8972,
12,
1969,
67,
7510,
13,
800,
273,
324,
504,
18,
869,
67,
15974,
67,
710,
12,
1969,
67,
7510,
18,
7229,
1019,
13,
1160,
67,
1883,
273,
1026,
67,
7510,
18,
1726,
1467,
309,
486,
272,
323,
30,
582,
7510,
273,
800,
397,
296,
89,
24,
11,
4992,
273,
1725,
300,
261,
7229,
67,
1883,
738,
1725,
13,
777,
67,
7510,
273,
306,
2668,
1264,
723,
2187,
582,
7510,
3631,
7707,
7229,
67,
1883,
2187,
582,
7510,
3631,
7707,
1125,
2187,
1026,
67,
7510,
25887,
309,
4992,
30,
777,
67,
7510,
18,
6923,
12,
2668,
9598,
2187,
296,
89,
21,
2187,
4992,
3719,
469,
30,
468,
353,
272,
323,
582,
7510,
273,
800,
397,
296,
89,
22,
11,
4992,
273,
1059,
17,
7229,
67,
1883,
309,
800,
422,
324,
504,
18,
13635,
67,
710,
30,
777,
67,
7510,
273,
306,
2668,
1264,
723,
2187,
582,
7510,
3631,
7707,
7229,
67,
1883,
2187,
582,
7510,
3631,
7707,
1125,
2187,
1026,
67,
7510,
25887,
469,
30,
777,
67,
7510,
273,
306,
2668,
7229,
67,
1883,
2187,
582,
7510,
3631,
7707,
1264,
723,
2187,
582,
7510,
3631,
7707,
1125,
2187,
1026,
67,
7510,
25887,
309,
4992,
30,
777,
67,
7510,
18,
6923,
12,
2668,
9598,
2187,
296,
89,
21,
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,
6540,
67,
2692,
12,
1969,
67,
7510,
16,
1244,
16,
3481,
723,
16,
272,
323,
33,
8381,
4672,
9163,
490,
3223,
279,
4143,
4834,
7411,
1047,
16,
1983,
578,
272,
323,
9163,
1026,
67,
7510,
273,
1130,
18,
8972,
12,
1969,
67,
7510,
13,
800,
273,
324,
504,
18,
869,
67,
15974,
67,
710,
12,
1969,
67,
7510,
18,
7229,
1019,
13,
1160,
67,
1883,
273,
1026,
67,
7510,
18,
1726,
1467,
309,
486,
272,
323,
30,
582,
7510,
273,
800,
397,
296,
89,
24,
11,
4992,
273,
1725,
300,
261,
7229,
67,
1883,
738,
1725,
13,
777,
67,
7510,
273,
306,
2668,
1264,
723,
2187,
582,
7510,
3631,
7707,
7229,
67,
1883,
2187,
582,
7510,
3631,
2
] |
PangoGravity = enum_anon_2 enum_anon_3 = c_int | PangoGravity = enum_anon_3 enum_anon_4 = c_int | def load_lib(name): libname = ctypes.util.find_library(name) if not libname: raise OSError("Could not find library '%s'" % name) else: return CDLL(libname) | 92bb4862df49194567fad21ea00d921ffc62dd6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/92bb4862df49194567fad21ea00d921ffc62dd6a/pango.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2941,
12,
529,
4672,
2561,
529,
273,
6983,
18,
1367,
18,
4720,
67,
12083,
12,
529,
13,
309,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,
508,
13,
469,
30,
327,
21508,
4503,
12,
2941,
529,
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,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| [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2941,
12,
529,
4672,
2561,
529,
273,
6983,
18,
1367,
18,
4720,
67,
12083,
12,
529,
13,
309,
486,
2561,
529,
30,
1002,
10002,
2932,
4445,
486,
1104,
5313,
1995,
87,
4970,
738,
508,
13,
469,
30,
327,
21508,
4503,
12,
2941,
529,
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
] |
return [myroot+x[len(cpref)+1:],x[len(cpref):]] | return [root+x[len(cpref)+1:],x[len(cpref):]] | def pathstrip(x,myroot,mystart): cpref=os.path.commonprefix([x,mystart]) return [myroot+x[len(cpref)+1:],x[len(cpref):]] | 37ec033936cd148abafc52a24966a719023ae65c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2807/37ec033936cd148abafc52a24966a719023ae65c/portage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
589,
6406,
12,
92,
16,
4811,
3085,
16,
81,
1094,
485,
4672,
276,
25724,
33,
538,
18,
803,
18,
6054,
3239,
3816,
92,
16,
81,
1094,
485,
5717,
327,
306,
3085,
15,
92,
63,
1897,
12,
71,
25724,
27921,
21,
30,
6487,
92,
63,
1897,
12,
71,
25724,
4672,
13563,
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,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
589,
6406,
12,
92,
16,
4811,
3085,
16,
81,
1094,
485,
4672,
276,
25724,
33,
538,
18,
803,
18,
6054,
3239,
3816,
92,
16,
81,
1094,
485,
5717,
327,
306,
3085,
15,
92,
63,
1897,
12,
71,
25724,
27921,
21,
30,
6487,
92,
63,
1897,
12,
71,
25724,
4672,
13563,
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
] |
self.prev_state = False | self.prev_state = False self.connecting = False self.screen_locked = False self.connecting = False | def __init__(self): self.size = ui.get_cols_rows() # Happy screen saying that you can't do anything because we're scanning # for networks. :-) # Will need a translation sooner or later self.screen_locker = urwid.Filler(urwid.Text(('important',"Scanning networks... stand by..."), align='center')) self.TITLE = 'Wicd Curses Interface' | b1475ce12c0b990f7b6a595934f0c2377bb8c973 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12280/b1475ce12c0b990f7b6a595934f0c2377bb8c973/wicd-curses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
1467,
273,
5915,
18,
588,
67,
6842,
67,
3870,
1435,
468,
670,
438,
2074,
5518,
12532,
310,
716,
1846,
848,
1404,
741,
6967,
2724,
732,
4565,
21138,
468,
364,
13884,
18,
225,
294,
17,
13,
468,
9980,
1608,
279,
4794,
17136,
264,
578,
5137,
365,
18,
9252,
67,
739,
264,
273,
8896,
30902,
18,
8026,
264,
12,
295,
30902,
18,
1528,
12,
2668,
23221,
2187,
6,
1541,
10903,
13884,
2777,
12842,
635,
7070,
3631,
5689,
2218,
5693,
26112,
365,
18,
14123,
273,
296,
59,
335,
72,
7251,
2420,
6682,
11,
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,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
1467,
273,
5915,
18,
588,
67,
6842,
67,
3870,
1435,
468,
670,
438,
2074,
5518,
12532,
310,
716,
1846,
848,
1404,
741,
6967,
2724,
732,
4565,
21138,
468,
364,
13884,
18,
225,
294,
17,
13,
468,
9980,
1608,
279,
4794,
17136,
264,
578,
5137,
365,
18,
9252,
67,
739,
264,
273,
8896,
30902,
18,
8026,
264,
12,
295,
30902,
18,
1528,
12,
2668,
23221,
2187,
6,
1541,
10903,
13884,
2777,
12842,
635,
7070,
3631,
5689,
2218,
5693,
26112,
365,
18,
14123,
273,
296,
59,
335,
72,
7251,
2420,
6682,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
[z.hide() for z in self.combos.values()] [z.hide() for z in self.labels.values()] self.vbox = QVBoxLayout() | vbox = self.layout() for box, control in self._hboxes: box.removeWidget(control) sip.delete(control) QApplication.processEvents() if not box.count(): vbox.removeItem(box) sip.delete(box) QApplication.processEvents() else: vbox = QVBoxLayout() | def setCombos(self, rowtags): """Creates a vertical column of comboboxes. tags are tags is usual in the (tag, backgroundvalue) case[should be enumerable]. rows are a dictionary with each key being a list of the indexes of tags that should be one one row. | eaf5b9a5cde30821a958027e79b819458d28cba1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3907/eaf5b9a5cde30821a958027e79b819458d28cba1/tagpanel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
11328,
538,
12,
2890,
16,
1027,
4156,
4672,
3536,
2729,
279,
9768,
1057,
434,
3894,
27570,
281,
18,
2342,
854,
2342,
353,
25669,
316,
326,
261,
2692,
16,
5412,
1132,
13,
648,
63,
13139,
506,
14873,
8009,
2595,
854,
279,
3880,
598,
1517,
498,
3832,
279,
666,
434,
326,
5596,
434,
2342,
716,
1410,
506,
1245,
1245,
1027,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
11328,
538,
12,
2890,
16,
1027,
4156,
4672,
3536,
2729,
279,
9768,
1057,
434,
3894,
27570,
281,
18,
2342,
854,
2342,
353,
25669,
316,
326,
261,
2692,
16,
5412,
1132,
13,
648,
63,
13139,
506,
14873,
8009,
2595,
854,
279,
3880,
598,
1517,
498,
3832,
279,
666,
434,
326,
5596,
434,
2342,
716,
1410,
506,
1245,
1245,
1027,
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
] |
lldb.SBDebugger.SetAsync(True) self.m_commandInterpreter = lldb.SBDebugger.GetCommandInterpreter() | debugger = lldb.SBDebugger.Create() debugger.SetAsync(True) self.m_commandInterpreter = debugger.GetCommandInterpreter() | def setUp(self): lldb.SBDebugger.SetAsync(True) self.m_commandInterpreter = lldb.SBDebugger.GetCommandInterpreter() if not self.m_commandInterpreter: print "Couldn't get the command interpreter" sys.exit(-1) | dcd61ebcc31338d250754072628f30427184ff35 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11986/dcd61ebcc31338d250754072628f30427184ff35/tester.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
19977,
273,
328,
1236,
70,
18,
14541,
24113,
18,
1684,
1435,
19977,
18,
694,
2771,
12,
5510,
13,
365,
18,
81,
67,
3076,
30010,
273,
19977,
18,
967,
2189,
30010,
1435,
309,
486,
365,
18,
81,
67,
3076,
30010,
30,
1172,
315,
16342,
1404,
336,
326,
1296,
16048,
6,
2589,
18,
8593,
19236,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
19977,
273,
328,
1236,
70,
18,
14541,
24113,
18,
1684,
1435,
19977,
18,
694,
2771,
12,
5510,
13,
365,
18,
81,
67,
3076,
30010,
273,
19977,
18,
967,
2189,
30010,
1435,
309,
486,
365,
18,
81,
67,
3076,
30010,
30,
1172,
315,
16342,
1404,
336,
326,
1296,
16048,
6,
2589,
18,
8593,
19236,
21,
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
] |
options.remoteLogFile = automation._devicemanager.getDeviceRoot() + '/' + options.remoteLogFile productRoot = options.remoteTestRoot + "/" + automation._product options.utilityPath = productRoot + "/bin" | options.remoteLogFile = options.remoteTestRoot + '/' + options.remoteLogFile | def verifyRemoteOptions(self, options, automation): options.remoteTestRoot = automation._devicemanager.getDeviceRoot() | 95b7f818a0a6821c503ec87238bb52c73e146dff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/95b7f818a0a6821c503ec87238bb52c73e146dff/runtestsremote.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
5169,
1320,
12,
2890,
16,
702,
16,
17539,
4672,
702,
18,
7222,
4709,
2375,
273,
17539,
6315,
5964,
4181,
18,
588,
3654,
2375,
1435,
2,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
5169,
1320,
12,
2890,
16,
702,
16,
17539,
4672,
702,
18,
7222,
4709,
2375,
273,
17539,
6315,
5964,
4181,
18,
588,
3654,
2375,
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
] |
importer = TimetableCSVImporter(self.context, charset) | root = removeSecurityProxy(self.context) importer = TimetableCSVImporter(root, charset) | def update(self): if "UPDATE_SUBMIT" not in self.request: return | 092ad3279e5593aeb564008edcbaf16c8eaacf27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/092ad3279e5593aeb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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
309,
315,
8217,
67,
8362,
6068,
6,
486,
316,
365,
18,
2293,
30,
327,
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
] |
return _compile(pattern, 0).findall(string, maxsplit) | return _compile(pattern, 0).findall(string) | def findall(pattern, string, maxsplit=0): """Return a list of all non-overlapping matches in the string. If one or more groups are present in the pattern, return a list of groups; this will be a list of tuples if the pattern has more than one group. Empty matches are included in the result.""" return _compile(pattern, 0).findall(string, maxsplit) | e06cbb8c56d76d5f845c4809a22fcdf99063496c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e06cbb8c56d76d5f845c4809a22fcdf99063496c/sre.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11842,
12,
4951,
16,
533,
16,
943,
4939,
33,
20,
4672,
3536,
990,
279,
666,
434,
777,
1661,
17,
17946,
1382,
1885,
316,
326,
533,
18,
225,
971,
1245,
578,
1898,
3252,
854,
3430,
316,
326,
1936,
16,
327,
279,
666,
434,
3252,
31,
333,
903,
506,
279,
666,
434,
10384,
309,
326,
1936,
711,
1898,
2353,
1245,
1041,
18,
225,
8953,
1885,
854,
5849,
316,
326,
563,
12123,
327,
389,
11100,
12,
4951,
16,
374,
2934,
4720,
454,
12,
1080,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11842,
12,
4951,
16,
533,
16,
943,
4939,
33,
20,
4672,
3536,
990,
279,
666,
434,
777,
1661,
17,
17946,
1382,
1885,
316,
326,
533,
18,
225,
971,
1245,
578,
1898,
3252,
854,
3430,
316,
326,
1936,
16,
327,
279,
666,
434,
3252,
31,
333,
903,
506,
279,
666,
434,
10384,
309,
326,
1936,
711,
1898,
2353,
1245,
1041,
18,
225,
8953,
1885,
854,
5849,
316,
326,
563,
12123,
327,
389,
11100,
12,
4951,
16,
374,
2934,
4720,
454,
12,
1080,
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
] |
this = apply(_quickfix.new_ExpireTime, args) | this = _quickfix.new_ExpireTime(*args) | def __init__(self, *args): this = apply(_quickfix.new_ExpireTime, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
17033,
950,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
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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738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
17033,
950,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
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
] |
cr.sql_log=1 | def __init__(self, cr, uid, name, context): super(general_ledger, self).__init__(cr, uid, name, context=context) cr.sql_log=1 self.date_borne = {} self.query = "" self.child_ids = "" self.tot_currency = 0.0 self.period_sql = "" self.sold_accounts = {} self.localcontext.update( { 'time': time, 'lines': self.lines, 'sum_debit_account': self._sum_debit_account, 'sum_credit_account': self._sum_credit_account, 'sum_solde_account': self._sum_solde_account, 'sum_debit': self._sum_debit, 'sum_credit': self._sum_credit, 'sum_solde': self._sum_solde, 'get_children_accounts': self.get_children_accounts, 'sum_currency_amount_account': self._sum_currency_amount_account }) self.context = context | 84830accf59d5cada276919684fe767f46a1eb70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/84830accf59d5cada276919684fe767f46a1eb70/general_ledger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4422,
16,
4555,
16,
508,
16,
819,
4672,
2240,
12,
12259,
67,
1259,
693,
16,
365,
2934,
972,
2738,
972,
12,
3353,
16,
4555,
16,
508,
16,
819,
33,
2472,
13,
365,
18,
712,
67,
70,
280,
4644,
273,
2618,
365,
18,
2271,
273,
1408,
365,
18,
3624,
67,
2232,
273,
1408,
365,
18,
3307,
67,
7095,
273,
374,
18,
20,
365,
18,
6908,
67,
4669,
273,
1408,
365,
18,
87,
1673,
67,
13739,
273,
2618,
365,
18,
3729,
2472,
18,
2725,
12,
288,
296,
957,
4278,
813,
16,
296,
3548,
4278,
365,
18,
3548,
16,
296,
1364,
67,
323,
3682,
67,
4631,
4278,
365,
6315,
1364,
67,
323,
3682,
67,
4631,
16,
296,
1364,
67,
20688,
67,
4631,
4278,
365,
6315,
1364,
67,
20688,
67,
4631,
16,
296,
1364,
67,
18281,
323,
67,
4631,
4278,
365,
6315,
1364,
67,
18281,
323,
67,
4631,
16,
296,
1364,
67,
323,
3682,
4278,
365,
6315,
1364,
67,
323,
3682,
16,
296,
1364,
67,
20688,
4278,
365,
6315,
1364,
67,
20688,
16,
296,
1364,
67,
18281,
323,
4278,
365,
6315,
1364,
67,
18281,
323,
16,
296,
588,
67,
5906,
67,
13739,
4278,
365,
18,
588,
67,
5906,
67,
13739,
16,
296,
1364,
67,
7095,
67,
8949,
67,
4631,
4278,
365,
6315,
1364,
67,
7095,
67,
8949,
67,
4631,
289,
13,
365,
18,
2472,
273,
819,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4422,
16,
4555,
16,
508,
16,
819,
4672,
2240,
12,
12259,
67,
1259,
693,
16,
365,
2934,
972,
2738,
972,
12,
3353,
16,
4555,
16,
508,
16,
819,
33,
2472,
13,
365,
18,
712,
67,
70,
280,
4644,
273,
2618,
365,
18,
2271,
273,
1408,
365,
18,
3624,
67,
2232,
273,
1408,
365,
18,
3307,
67,
7095,
273,
374,
18,
20,
365,
18,
6908,
67,
4669,
273,
1408,
365,
18,
87,
1673,
67,
13739,
273,
2618,
365,
18,
3729,
2472,
18,
2725,
12,
288,
296,
957,
4278,
813,
16,
296,
3548,
4278,
365,
18,
3548,
16,
296,
1364,
67,
323,
3682,
67,
4631,
4278,
365,
6315,
1364,
67,
323,
3682,
67,
4631,
2
] |
|
import AppleScript_Suite import AppleScript_Suite | def select(self, _object, _attributes={}, **_arguments): """select: Select the specified object(s) Required argument: the object to select Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'misc' _subcode = 'slct' | ead4c80ac2380eb0380e66e9d59ad2c359ef38f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ead4c80ac2380eb0380e66e9d59ad2c359ef38f2/Standard_Suite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
389,
1612,
16,
389,
4350,
28793,
2826,
67,
7099,
4672,
3536,
4025,
30,
6766,
326,
1269,
733,
12,
87,
13,
10647,
1237,
30,
326,
733,
358,
2027,
18317,
1237,
389,
4350,
30,
1716,
1802,
1133,
1566,
3880,
3536,
389,
710,
273,
296,
23667,
11,
389,
1717,
710,
273,
296,
2069,
299,
11,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
389,
1612,
16,
389,
4350,
28793,
2826,
67,
7099,
4672,
3536,
4025,
30,
6766,
326,
1269,
733,
12,
87,
13,
10647,
1237,
30,
326,
733,
358,
2027,
18317,
1237,
389,
4350,
30,
1716,
1802,
1133,
1566,
3880,
3536,
389,
710,
273,
296,
23667,
11,
389,
1717,
710,
273,
296,
2069,
299,
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
] |
|
attrs={'InheritedPropertySheets': ';'.join(vsprops_dirs), 'ConfigurationType': config_type}, tools=tool_list) | attrs=prepared_attrs, tools=tool_list) | def _GenerateProject(vcproj_filename, build_file, spec): """Generates a vcproj file. Arguments: vcproj_filename: Filename of the vcproj file to generate. build_file: Filename of the .gyp file that the vcproj file comes from. spec: The target dictionary containing the properties of the target. """ print 'Generating %s' % vcproj_filename p = MSVSProject.Writer(vcproj_filename) p.Create(spec['target_name']) # Get directory project file is in. gyp_dir = os.path.split(vcproj_filename)[0] # Pick target configuration type. config_type = { 'executable': '1', 'shared_library': '2', 'static_library': '4', 'none': '10', }[spec['type']] for c in spec['configurations']: # Process each configuration. vsprops_dirs = c.get('msvs_props', []) vsprops_dirs = [_FixPath(i) for i in vsprops_dirs] # Prepare the list of tools as a dictionary. tools = { 'VCPreBuildEventTool': {}, 'VCCustomBuildTool': {}, 'VCXMLDataGeneratorTool': {}, 'VCWebServiceProxyGeneratorTool': {}, 'VCMIDLTool': {}, 'VCCLCompilerTool': {}, 'VCManagedResourceCompilerTool': {}, 'VCResourceCompilerTool': {}, 'VCPreLinkEventTool': {}, 'VCLibrarianTool': {}, 'VCALinkTool': {}, 'VCXDCMakeTool': {}, 'VCBscMakeTool': {}, 'VCFxCopTool': {}, 'VCPostBuildEventTool': {}, } # Add in msvs_settings. for tool in c.get('msvs_settings', {}): options = c['msvs_settings'][tool] for option in options: _ToolAppend(tools, tool, option, options[option]) # Add in includes. include_dirs = c.get('include_dirs', []) include_dirs = [_FixPath(i) for i in include_dirs] _ToolAppend(tools, 'VCCLCompilerTool', 'AdditionalIncludeDirectories', include_dirs) # Add defines. defines = c.get('defines', []) _ToolAppend(tools, 'VCCLCompilerTool', 'PreprocessorDefinitions', defines) # Add disabled warnings. disabled_warnings = [str(i) for i in c.get('msvs_disabled_warnings', [])] _ToolAppend(tools, 'VCCLCompilerTool', 'DisableSpecificWarnings', disabled_warnings) # Add Pre-build. prebuild = c.get('msvs_prebuild') _ToolAppend(tools, 'VCPreBuildEvenTool', 'CommandLine', prebuild) # Add Post-build. postbuild = c.get('msvs_postbuild') _ToolAppend(tools, 'VCPostBuildEvenTool', 'CommandLine', prebuild) # Convert tools to expected form. tool_list = [] for tool, options in tools.iteritems(): # Collapse options with lists. options_fixed = {} for option, value in options.iteritems(): if type(value) == list: options_fixed[option] = ';'.join(value) else: options_fixed[option] = value # Add in this tool. tool_list.append(MSVSProject.Tool(tool, options_fixed)) # Add in this configuration. p.AddConfig('|'.join([c['configuration_name'], c.get('configuration_platform', 'Win32')]), attrs={'InheritedPropertySheets': ';'.join(vsprops_dirs), 'ConfigurationType': config_type}, tools=tool_list) # Prepare list of sources. sources = spec['sources'] # Add in the gyp file. sources.append(os.path.split(build_file)[1]) # Convert to folders and the right slashes. sources = [_FixPath(i) for i in sources] sources = [i.split('\\') for i in sources] sources = _SourceInFolders(sources) # Add in files. p.AddFiles(sources) # Write it out. p.Write() # Return the guid so we can refer to it elsewhere. return p.guid | c45d824546f40fc52eb1c053326ef499067ff864 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/c45d824546f40fc52eb1c053326ef499067ff864/msvs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4625,
4109,
12,
4227,
17995,
67,
3459,
16,
1361,
67,
768,
16,
857,
4672,
3536,
6653,
279,
12802,
17995,
585,
18,
225,
13599,
30,
12802,
17995,
67,
3459,
30,
16671,
434,
326,
12802,
17995,
585,
358,
2103,
18,
1361,
67,
768,
30,
16671,
434,
326,
263,
75,
879,
585,
716,
326,
12802,
17995,
585,
14535,
628,
18,
857,
30,
1021,
1018,
3880,
4191,
326,
1790,
434,
326,
1018,
18,
3536,
1172,
296,
21755,
738,
87,
11,
738,
12802,
17995,
67,
3459,
225,
293,
273,
9238,
14640,
4109,
18,
2289,
12,
4227,
17995,
67,
3459,
13,
293,
18,
1684,
12,
2793,
3292,
3299,
67,
529,
19486,
225,
468,
968,
1867,
1984,
585,
353,
316,
18,
314,
879,
67,
1214,
273,
1140,
18,
803,
18,
4939,
12,
4227,
17995,
67,
3459,
25146,
20,
65,
225,
468,
23038,
1018,
1664,
618,
18,
642,
67,
723,
273,
288,
296,
17751,
4278,
296,
21,
2187,
296,
11574,
67,
12083,
4278,
296,
22,
2187,
296,
3845,
67,
12083,
4278,
296,
24,
2187,
296,
6102,
4278,
296,
2163,
2187,
289,
63,
2793,
3292,
723,
3546,
65,
225,
364,
276,
316,
857,
3292,
25856,
3546,
30,
468,
4389,
1517,
1664,
18,
6195,
9693,
67,
8291,
273,
276,
18,
588,
2668,
959,
6904,
67,
9693,
2187,
5378,
13,
6195,
9693,
67,
8291,
273,
306,
67,
8585,
743,
12,
77,
13,
364,
277,
316,
6195,
9693,
67,
8291,
65,
225,
468,
7730,
326,
666,
434,
8513,
487,
279,
3880,
18,
8513,
273,
288,
296,
13464,
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,
4625,
4109,
12,
4227,
17995,
67,
3459,
16,
1361,
67,
768,
16,
857,
4672,
3536,
6653,
279,
12802,
17995,
585,
18,
225,
13599,
30,
12802,
17995,
67,
3459,
30,
16671,
434,
326,
12802,
17995,
585,
358,
2103,
18,
1361,
67,
768,
30,
16671,
434,
326,
263,
75,
879,
585,
716,
326,
12802,
17995,
585,
14535,
628,
18,
857,
30,
1021,
1018,
3880,
4191,
326,
1790,
434,
326,
1018,
18,
3536,
1172,
296,
21755,
738,
87,
11,
738,
12802,
17995,
67,
3459,
225,
293,
273,
9238,
14640,
4109,
18,
2289,
12,
4227,
17995,
67,
3459,
13,
293,
18,
1684,
12,
2793,
3292,
3299,
67,
529,
19486,
225,
468,
968,
1867,
1984,
585,
353,
316,
18,
314,
879,
67,
2
] |
self.log_pos, items = elog.news(self.log_pos) | old_pos = self.log_pos new_pos, items = elog.news(old_pos) | def refresh(self, request): """ Refresh the cache - if anything has changed in the wiki, we see it in the edit-log and either delete cached data for the changed items (for 'meta') or the complete cache ('pagelists'). @param request: the request object """ from MoinMoin.logfile import editlog elog = editlog.EditLog(request) self.log_pos, items = elog.news(self.log_pos) if items: if self.name == 'meta': for item in items: logging.debug("cache: removing %r" % item) try: del self.cache[item] except: pass elif self.name == 'pagelists': logging.debug("cache: clearing pagelist cache") self.cache = {} | 5d664d4fb5ff8a1d0545e5fdcac83c266b64a658 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/5d664d4fb5ff8a1d0545e5fdcac83c266b64a658/Page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
16,
590,
4672,
3536,
14179,
326,
1247,
300,
309,
6967,
711,
3550,
316,
326,
9050,
16,
732,
2621,
518,
316,
326,
3874,
17,
1330,
471,
3344,
1430,
3472,
501,
364,
326,
3550,
1516,
261,
1884,
296,
3901,
6134,
578,
326,
3912,
1247,
7707,
9095,
292,
1486,
16063,
632,
891,
590,
30,
326,
590,
733,
3536,
628,
490,
885,
49,
885,
18,
28806,
1930,
3874,
1330,
415,
717,
273,
3874,
1330,
18,
4666,
1343,
12,
2293,
13,
1592,
67,
917,
273,
365,
18,
1330,
67,
917,
394,
67,
917,
16,
1516,
273,
415,
717,
18,
18443,
12,
1673,
67,
917,
13,
309,
1516,
30,
309,
365,
18,
529,
422,
296,
3901,
4278,
364,
761,
316,
1516,
30,
2907,
18,
4148,
2932,
2493,
30,
9427,
738,
86,
6,
738,
761,
13,
775,
30,
1464,
365,
18,
2493,
63,
1726,
65,
1335,
30,
1342,
1327,
365,
18,
529,
422,
296,
9095,
292,
1486,
4278,
2907,
18,
4148,
2932,
2493,
30,
29820,
4262,
5449,
1247,
7923,
365,
18,
2493,
273,
2618,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
16,
590,
4672,
3536,
14179,
326,
1247,
300,
309,
6967,
711,
3550,
316,
326,
9050,
16,
732,
2621,
518,
316,
326,
3874,
17,
1330,
471,
3344,
1430,
3472,
501,
364,
326,
3550,
1516,
261,
1884,
296,
3901,
6134,
578,
326,
3912,
1247,
7707,
9095,
292,
1486,
16063,
632,
891,
590,
30,
326,
590,
733,
3536,
628,
490,
885,
49,
885,
18,
28806,
1930,
3874,
1330,
415,
717,
273,
3874,
1330,
18,
4666,
1343,
12,
2293,
13,
1592,
67,
917,
273,
365,
18,
1330,
67,
917,
394,
67,
917,
16,
1516,
273,
415,
717,
18,
18443,
12,
1673,
67,
917,
13,
309,
1516,
30,
309,
365,
18,
529,
422,
296,
3901,
4278,
364,
761,
316,
1516,
2
] |
def box_horiz_clicked(obj, it, *args, **kwargs): | def box_horiz_clicked(obj, it): | def box_horiz_clicked(obj, it, *args, **kwargs): win = elementary.Window("box-horiz", elementary.ELM_WIN_BASIC) win.title_set("Box Horiz") 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() bx = elementary.Box(win) bx.horizontal_set(True) win.resize_object_add(bx) bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bx.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.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() 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,
3919,
67,
76,
5331,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
2147,
17,
76,
5331,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
3514,
670,
5331,
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,
24356,
273,
930,
814,
18,
3514,
12,
8082,
13,
24356,
18,
18396,
67,
542,
12,
5510,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
70,
92,
13,
24356,
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,
24356,
18,
4500,
1435,
225,
13579,
273,
930,
814,
18,
5554,
12,
8082,
13,
13579,
18,
768,
67,
542,
2932,
7369,
19,
19882,
67,
12019,
18,
6446,
7923,
13579,
18,
5864,
67,
542,
12,
20,
16,
374,
13,
13579,
18,
1467,
67,
11317,
67,
7989,
67,
542,
12,
20,
18,
25,
16,
374,
18,
25,
13,
24356,
18,
2920,
67,
409,
12,
335,
13,
13579,
18,
4500,
1435,
225,
13579,
273,
930,
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,
3919,
67,
76,
5331,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
2147,
17,
76,
5331,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
3514,
670,
5331,
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,
24356,
273,
930,
814,
18,
3514,
2
] |
def cvs_checkout(d,u): | def cvs_checkout(d): | def cvs_checkout(d,u): recursive_rmdir(d) cvs = find_exe('cvs') if cvs is None: print "Can't find cvs anywhere on the path" os.exit(1) have_tmp = os.path.isdir(_tmp) os.makedirs(d) os.environ['HOME']=d os.environ['CVSROOT']=':pserver:[email protected]:/cvsroot/reportlab' os.chdir(d) f = open(os.path.join(d,'.cvspass'),'w') f.write(_cvspass+'\n') f.close() i=os.popen(cvs+' -z7 -d:pserver:[email protected]:/cvsroot/reportlab co reportlab','r') print i.read() i = i.close() if i is not None: print 'there was an error during the download phase' sys.exit(1) | 427f1fdf43e35da9bb79e9430d26de850890d6fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/427f1fdf43e35da9bb79e9430d26de850890d6fc/cvs_check.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
6904,
67,
17300,
12,
72,
4672,
5904,
67,
8864,
1214,
12,
72,
13,
225,
276,
6904,
273,
1104,
67,
14880,
2668,
71,
6904,
6134,
309,
276,
6904,
353,
599,
30,
1172,
315,
2568,
1404,
1104,
276,
6904,
25651,
603,
326,
589,
6,
1140,
18,
8593,
12,
21,
13,
225,
1240,
67,
5645,
273,
1140,
18,
803,
18,
291,
1214,
24899,
5645,
13,
1140,
18,
81,
9477,
10539,
12,
72,
13,
1140,
18,
28684,
3292,
14209,
3546,
33,
72,
1140,
18,
28684,
3292,
39,
14640,
9185,
3546,
2218,
30,
84,
3567,
30,
19070,
36,
71,
6904,
18,
6006,
7411,
18,
3168,
1884,
908,
18,
2758,
27824,
71,
6904,
3085,
19,
6006,
7411,
11,
1140,
18,
343,
1214,
12,
72,
13,
284,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
72,
16,
10332,
19774,
1752,
428,
19899,
11,
91,
6134,
284,
18,
2626,
24899,
19774,
1752,
428,
6797,
64,
82,
6134,
284,
18,
4412,
1435,
277,
33,
538,
18,
84,
3190,
12,
71,
6904,
6797,
300,
94,
27,
300,
72,
30,
84,
3567,
30,
19070,
36,
71,
6904,
18,
6006,
7411,
18,
3168,
1884,
908,
18,
2758,
27824,
71,
6904,
3085,
19,
6006,
7411,
1825,
2605,
7411,
17023,
86,
6134,
1172,
277,
18,
896,
1435,
277,
273,
277,
18,
4412,
1435,
309,
277,
353,
486,
599,
30,
1172,
296,
18664,
1703,
392,
555,
4982,
326,
4224,
6855,
11,
2589,
18,
8593,
12,
21,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
6904,
67,
17300,
12,
72,
4672,
5904,
67,
8864,
1214,
12,
72,
13,
225,
276,
6904,
273,
1104,
67,
14880,
2668,
71,
6904,
6134,
309,
276,
6904,
353,
599,
30,
1172,
315,
2568,
1404,
1104,
276,
6904,
25651,
603,
326,
589,
6,
1140,
18,
8593,
12,
21,
13,
225,
1240,
67,
5645,
273,
1140,
18,
803,
18,
291,
1214,
24899,
5645,
13,
1140,
18,
81,
9477,
10539,
12,
72,
13,
1140,
18,
28684,
3292,
14209,
3546,
33,
72,
1140,
18,
28684,
3292,
39,
14640,
9185,
3546,
2218,
30,
84,
3567,
30,
19070,
36,
71,
6904,
18,
6006,
7411,
18,
3168,
1884,
908,
18,
2758,
27824,
71,
6904,
3085,
19,
6006,
7411,
11,
1140,
18,
343,
1214,
12,
2
] |
global_state.long_retval = fn3() | global_state.retval_long = fn3() | def call_function(fn, signature): if signature == 'void': fn2 = llmemory.cast_adr_to_ptr(fn, void_void_func) fn2() elif signature == 'long': fn3 = llmemory.cast_adr_to_ptr(fn, long_void_func) global_state.long_retval = fn3() elif signature == 'longlong': fn3 = llmemory.cast_adr_to_ptr(fn, longlong_void_func) global_state.longlong_retval = fn3() elif signature == 'float': fn3 = llmemory.cast_adr_to_ptr(fn, float_void_func) global_state.float_retval = fn3() elif signature == 'pointer': fn5 = llmemory.cast_adr_to_ptr(fn, pointer_void_func) global_state.pointer_retval = fn5() | 6328ace28f89b7bee84ea7d543431ab9813def20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/6328ace28f89b7bee84ea7d543431ab9813def20/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
915,
12,
4293,
16,
3372,
4672,
309,
3372,
422,
296,
6459,
4278,
2295,
22,
273,
6579,
7858,
18,
4155,
67,
361,
86,
67,
869,
67,
6723,
12,
4293,
16,
918,
67,
6459,
67,
644,
13,
2295,
22,
1435,
1327,
3372,
422,
296,
5748,
4278,
2295,
23,
273,
6579,
7858,
18,
4155,
67,
361,
86,
67,
869,
67,
6723,
12,
4293,
16,
1525,
67,
6459,
67,
644,
13,
2552,
67,
2019,
18,
18341,
67,
5748,
273,
2295,
23,
1435,
1327,
3372,
422,
296,
5748,
5748,
4278,
2295,
23,
273,
6579,
7858,
18,
4155,
67,
361,
86,
67,
869,
67,
6723,
12,
4293,
16,
1525,
5748,
67,
6459,
67,
644,
13,
2552,
67,
2019,
18,
5748,
5748,
67,
18341,
273,
2295,
23,
1435,
1327,
3372,
422,
296,
5659,
4278,
2295,
23,
273,
6579,
7858,
18,
4155,
67,
361,
86,
67,
869,
67,
6723,
12,
4293,
16,
1431,
67,
6459,
67,
644,
13,
2552,
67,
2019,
18,
5659,
67,
18341,
273,
2295,
23,
1435,
1327,
3372,
422,
296,
10437,
4278,
2295,
25,
273,
6579,
7858,
18,
4155,
67,
361,
86,
67,
869,
67,
6723,
12,
4293,
16,
4407,
67,
6459,
67,
644,
13,
2552,
67,
2019,
18,
10437,
67,
18341,
273,
2295,
25,
1435,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
915,
12,
4293,
16,
3372,
4672,
309,
3372,
422,
296,
6459,
4278,
2295,
22,
273,
6579,
7858,
18,
4155,
67,
361,
86,
67,
869,
67,
6723,
12,
4293,
16,
918,
67,
6459,
67,
644,
13,
2295,
22,
1435,
1327,
3372,
422,
296,
5748,
4278,
2295,
23,
273,
6579,
7858,
18,
4155,
67,
361,
86,
67,
869,
67,
6723,
12,
4293,
16,
1525,
67,
6459,
67,
644,
13,
2552,
67,
2019,
18,
18341,
67,
5748,
273,
2295,
23,
1435,
1327,
3372,
422,
296,
5748,
5748,
4278,
2295,
23,
273,
6579,
7858,
18,
4155,
67,
361,
86,
67,
869,
67,
6723,
12,
4293,
16,
1525,
5748,
67,
6459,
67,
644,
13,
2552,
67,
2019,
18,
5748,
5748,
67,
2
] |
found_lib = ",".join(found_libs) + " (static)" return found_lib | return found_libs | def find_static_library(func): "Given a symbol, return the most likely static library it's from." found_lib = None dbpath = None for dp in database_search_path: if os.path.exists(os.path.join(dp, "staticdb.sqlite")): dbpath = dp break if dbpath: staticdb = sqlite3.connect(os.path.join(dbpath, "staticdb.sqlite")) cursor = staticdb.cursor() cursor.execute("SELECT library FROM static WHERE symbol=?", (func,)) results = cursor.fetchall() if len(results) == 1: found_lib = results[0][0] + " (static)" elif len(results) > 1: found_libs = [ x[0] for x in results ] found_lib = ",".join(found_libs) + " (static)" return found_lib | 060a70993f5e772c2507bcc6b5c2f8c71f8415a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4228/060a70993f5e772c2507bcc6b5c2f8c71f8415a3/readelf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
3845,
67,
12083,
12,
644,
4672,
315,
6083,
279,
3273,
16,
327,
326,
4486,
10374,
760,
5313,
518,
1807,
628,
1199,
225,
1392,
67,
2941,
273,
599,
1319,
803,
273,
599,
364,
9986,
316,
2063,
67,
3072,
67,
803,
30,
309,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
9295,
16,
315,
3845,
1966,
18,
19460,
6,
3719,
30,
1319,
803,
273,
9986,
898,
225,
309,
1319,
803,
30,
760,
1966,
273,
16184,
23,
18,
3612,
12,
538,
18,
803,
18,
5701,
12,
1966,
803,
16,
315,
3845,
1966,
18,
19460,
6,
3719,
3347,
273,
760,
1966,
18,
9216,
1435,
3347,
18,
8837,
2932,
4803,
5313,
4571,
760,
4852,
3273,
17282,
3113,
261,
644,
16,
3719,
1686,
273,
3347,
18,
5754,
454,
1435,
309,
562,
12,
4717,
13,
422,
404,
30,
1392,
67,
2941,
273,
1686,
63,
20,
6362,
20,
65,
397,
315,
261,
3845,
2225,
1327,
562,
12,
4717,
13,
405,
404,
30,
1392,
67,
21571,
273,
306,
619,
63,
20,
65,
364,
619,
316,
1686,
308,
225,
327,
1392,
67,
21571,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
3845,
67,
12083,
12,
644,
4672,
315,
6083,
279,
3273,
16,
327,
326,
4486,
10374,
760,
5313,
518,
1807,
628,
1199,
225,
1392,
67,
2941,
273,
599,
1319,
803,
273,
599,
364,
9986,
316,
2063,
67,
3072,
67,
803,
30,
309,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
5701,
12,
9295,
16,
315,
3845,
1966,
18,
19460,
6,
3719,
30,
1319,
803,
273,
9986,
898,
225,
309,
1319,
803,
30,
760,
1966,
273,
16184,
23,
18,
3612,
12,
538,
18,
803,
18,
5701,
12,
1966,
803,
16,
315,
3845,
1966,
18,
19460,
6,
3719,
3347,
273,
760,
1966,
18,
9216,
1435,
3347,
18,
8837,
2932,
4803,
5313,
4571,
760,
4852,
3273,
17282,
3113,
2
] |
if not data.has_key("ID_FS_LABEL"): | if not data.has_key("ID_FS_LABEL") and data["ID_FS_LABEL"] == "": | def update_usb(self, *args): #print_debug ("update_usb()") data=args[0] action=data['ACTION'] if not data.has_key("ID_FS_LABEL"): # don't update if we have disk (only partititions) return device="/dev/%s" %data['DEVPATH'].split('/')[2] if( len( data['DEVPATH'].split('/') ) ) > 3: devid=data['DEVPATH'].split('/')[3] else: devid=data['DEVPATH'].split('/')[2] if action == "umount": self.show_notification ( _("USB device %s umounted. You can extract it.") %(devid) ) if action == "mount": self.show_notification ( _("USB device %s mounted. Ready for use.") %(devid) ) usb_status=self.xmlrpc.GetDevicesInfo(device, mode="--getstatus").replace('\n','') if usb_status == "0": ismounted=False n=1 else: ismounted=True n=2 print_debug ("update_usb() usb devid=%s ismounted=%s" %(devid, ismounted) ) #self.systray.items["usb_"%devid][1]="usb%s.png"%n self.systray.update_status("usb_%s"%devid, "usb_%s_mount"%devid, not ismounted) self.systray.update_status("usb_%s"%devid, "usb_%s_umount"%devid, ismounted) | 9f2bd954c7cd211cd7514541876c26374d194e23 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13520/9f2bd954c7cd211cd7514541876c26374d194e23/tcos-devices-ng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
25525,
12,
2890,
16,
380,
1968,
4672,
468,
1188,
67,
4148,
7566,
2725,
67,
25525,
1435,
7923,
501,
33,
1968,
63,
20,
65,
1301,
33,
892,
3292,
12249,
3546,
225,
309,
486,
501,
18,
5332,
67,
856,
2932,
734,
67,
4931,
67,
13545,
7923,
471,
501,
9614,
734,
67,
4931,
67,
13545,
11929,
422,
1408,
30,
468,
2727,
1404,
1089,
309,
732,
1240,
4234,
261,
3700,
1087,
305,
5029,
13,
327,
225,
2346,
1546,
19,
5206,
5258,
87,
6,
738,
892,
3292,
15301,
4211,
29489,
4939,
2668,
2473,
25146,
22,
65,
225,
309,
12,
562,
12,
501,
3292,
15301,
4211,
29489,
4939,
2668,
2473,
13,
262,
262,
405,
890,
30,
443,
1246,
33,
892,
3292,
15301,
4211,
29489,
4939,
2668,
2473,
25146,
23,
65,
469,
30,
443,
1246,
33,
892,
3292,
15301,
4211,
29489,
4939,
2668,
2473,
25146,
22,
65,
225,
309,
1301,
422,
225,
315,
379,
592,
6877,
365,
18,
4500,
67,
9927,
261,
225,
389,
2932,
24128,
2346,
738,
87,
9570,
592,
329,
18,
4554,
848,
2608,
518,
1199,
13,
8975,
323,
1246,
13,
225,
262,
225,
309,
1301,
422,
225,
315,
4778,
6877,
365,
18,
4500,
67,
9927,
261,
225,
389,
2932,
24128,
2346,
738,
87,
20919,
18,
26732,
364,
999,
1199,
13,
8975,
323,
1246,
13,
225,
262,
225,
31261,
67,
2327,
33,
2890,
18,
2902,
7452,
18,
967,
10053,
966,
12,
5964,
16,
1965,
1546,
413,
588,
2327,
20387,
2079,
2668,
64,
82,
17023,
6134,
309,
31261,
67,
2327,
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,
1089,
67,
25525,
12,
2890,
16,
380,
1968,
4672,
468,
1188,
67,
4148,
7566,
2725,
67,
25525,
1435,
7923,
501,
33,
1968,
63,
20,
65,
1301,
33,
892,
3292,
12249,
3546,
225,
309,
486,
501,
18,
5332,
67,
856,
2932,
734,
67,
4931,
67,
13545,
7923,
471,
501,
9614,
734,
67,
4931,
67,
13545,
11929,
422,
1408,
30,
468,
2727,
1404,
1089,
309,
732,
1240,
4234,
261,
3700,
1087,
305,
5029,
13,
327,
225,
2346,
1546,
19,
5206,
5258,
87,
6,
738,
892,
3292,
15301,
4211,
29489,
4939,
2668,
2473,
25146,
22,
65,
225,
309,
12,
562,
12,
501,
3292,
15301,
4211,
29489,
4939,
2668,
2473,
13,
262,
262,
405,
890,
30,
443,
1246,
33,
892,
3292,
15301,
2
] |
if (a1 < 0): | if a1 < 0: | def wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculate the Wigner 3j symbol `Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3)`. INPUT: - ``j_1``, ``j_2``, ``j_3``, ``m_1``, ``m_2``, ``m_3`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number times the square root of a rational number (if prec=None), or real number if a precision is given EXAMPLES:: sage: wigner_3j(2, 6, 4, 0, 0, 0) sqrt(5/143) sage: wigner_3j(2, 6, 4, 0, 0, 1) 0 sage: wigner_3j(0.5, 0.5, 1, 0.5, -0.5, 0) sqrt(1/6) sage: wigner_3j(40, 100, 60, -10, 60, -50) 95608/18702538494885*sqrt(21082735836735314343364163310/220491455010479533763) sage: wigner_3j(2500, 2500, 5000, 2488, 2400, -4888, prec=64) 7.60424456883448589e-12 It is an error to have arguments that are not integer or half integer values:: sage: wigner_3j(2.1, 6, 4, 0, 0, 0) Traceback (most recent call last): ... ValueError: j values must be integer or half integer sage: wigner_3j(2, 6, 4, 1, 0, -1.1) Traceback (most recent call last): ... ValueError: m values must be integer or half integer NOTES: The Wigner 3j symbol obeys the following symmetry rules: - invariant under any permutation of the columns (with the exception of a sign change where `J:=j_1+j_2+j_3`): .. math:: Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3) =Wigner3j(j_3,j_1,j_2,m_3,m_1,m_2) =Wigner3j(j_2,j_3,j_1,m_2,m_3,m_1) =(-1)^J Wigner3j(j_3,j_2,j_1,m_3,m_2,m_1) =(-1)^J Wigner3j(j_1,j_3,j_2,m_1,m_3,m_2) =(-1)^J Wigner3j(j_2,j_1,j_3,m_2,m_1,m_3) - invariant under space inflection, i. e. .. math:: Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3) =(-1)^J Wigner3j(j_1,j_2,j_3,-m_1,-m_2,-m_3) - symmetric with respect to the 72 additional symmetries based on the work by [Regge58] - zero for `j_1`, `j_2`, `j_3` not fulfilling triangle relation - zero for `m_1+m_2+m_3\neq 0` - zero for violating any one of the conditions `j_1\ge|m_1|`, `j_2\ge|m_2|`, `j_3\ge|m_3|` ALGORITHM: This function uses the algorithm of [Edmonds74] to calculate the value of the 3j symbol exactly. Note that the formula contains alternating sums over large factorials and is therefore unsuitable for finite precision arithmetic and only useful for a computer algebra system [Rasch03]. REFERENCES: - [Regge58] 'Symmetry Properties of Clebsch-Gordan Coefficients', T. Regge, Nuovo Cimento, Volume 10, pp. 544 (1958) - [Edmonds74] 'Angular Momentum in Quantum Mechanics', A. R. Edmonds, Princeton University Press (1974) - [Rasch03] 'Efficient Storage Scheme for Pre-calculated Wigner 3j, 6j and Gaunt Coefficients', J. Rasch and A. C. H. Yu, SIAM J. Sci. Comput. Volume 25, Issue 4, pp. 1416-1428 (2003) AUTHORS: - Jens Rasch (2009-03-24): initial version """ if int(j_1 * 2) != j_1 * 2 or int(j_2 * 2) != j_2 * 2 or \ int(j_3 * 2) != j_3 * 2: raise ValueError("j values must be integer or half integer") if int(m_1 * 2) != m_1 * 2 or int(m_2 * 2) != m_2 * 2 or \ int(m_3 * 2) != m_3 * 2: raise ValueError("m values must be integer or half integer") if (m_1 + m_2 + m_3 <> 0): return 0 prefid = Integer((-1) ** (int(j_1 - j_2 - m_3))) m_3 = -m_3 a1 = j_1 + j_2 - j_3 if (a1 < 0): return 0 a2 = j_1 - j_2 + j_3 if (a2 < 0): return 0 a3 = -j_1 + j_2 + j_3 if (a3 < 0): return 0 if (abs(m_1) > j_1) or (abs(m_2) > j_2) or (abs(m_3) > j_3): return 0 maxfact = max(j_1 + j_2 + j_3 + 1, j_1 + abs(m_1), j_2 + abs(m_2), \ j_3 + abs(m_3)) _calc_factlist(maxfact) argsqrt = Integer(_Factlist[int(j_1 + j_2 - j_3)] * \ _Factlist[int(j_1 - j_2 + j_3)] * \ _Factlist[int(-j_1 + j_2 + j_3)] * \ _Factlist[int(j_1 - m_1)] * \ _Factlist[int(j_1 + m_1)] * \ _Factlist[int(j_2 - m_2)] * \ _Factlist[int(j_2 + m_2)] * \ _Factlist[int(j_3 - m_3)] * \ _Factlist[int(j_3 + m_3)]) / \ _Factlist[int(j_1 + j_2 + j_3 + 1)] ressqrt = argsqrt.sqrt(prec) if type(ressqrt) is ComplexNumber: ressqrt = ressqrt.real() imin = max(-j_3 + j_1 + m_2, -j_3 + j_2 - m_1, 0) imax = min(j_2 + m_2, j_1 - m_1, j_1 + j_2 - j_3) sumres = 0 for ii in range(imin, imax + 1): den = _Factlist[ii] * \ _Factlist[int(ii + j_3 - j_1 - m_2)] * \ _Factlist[int(j_2 + m_2 - ii)] * \ _Factlist[int(j_1 - ii - m_1)] * \ _Factlist[int(ii + j_3 - j_2 + m_1)] * \ _Factlist[int(j_1 + j_2 - j_3 - ii)] sumres = sumres + Integer((-1) ** ii) / den res = ressqrt * sumres * prefid return res | 88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/88e8ded3e4e8fadbc380d719dcf3bdc6eab9d557/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
23,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
312,
67,
21,
16,
312,
67,
22,
16,
312,
67,
23,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,
678,
724,
264,
890,
78,
3273,
1375,
59,
724,
264,
23,
78,
12,
78,
67,
21,
16,
78,
67,
22,
16,
78,
67,
23,
16,
81,
67,
21,
16,
81,
67,
22,
16,
81,
67,
23,
13,
8338,
225,
12943,
30,
225,
300,
225,
12176,
78,
67,
21,
68,
9191,
12176,
78,
67,
22,
68,
9191,
12176,
78,
67,
23,
68,
9191,
12176,
81,
67,
21,
68,
9191,
12176,
81,
67,
22,
68,
9191,
12176,
81,
67,
23,
10335,
300,
3571,
578,
8816,
3571,
225,
300,
225,
12176,
4036,
10335,
300,
6039,
16,
805,
30,
599,
18,
1186,
1246,
310,
279,
6039,
848,
302,
354,
334,
6478,
8632,
731,
326,
11096,
18,
225,
11550,
30,
225,
436,
8371,
1300,
4124,
326,
8576,
1365,
434,
279,
436,
8371,
1300,
261,
430,
13382,
33,
7036,
3631,
578,
2863,
1300,
309,
279,
6039,
353,
864,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
341,
724,
264,
67,
23,
78,
12,
22,
16,
1666,
16,
1059,
16,
374,
16,
374,
16,
374,
13,
5700,
12,
25,
19,
28643,
13,
225,
272,
410,
30,
341,
724,
264,
67,
23,
78,
12,
22,
16,
1666,
16,
1059,
16,
374,
16,
374,
16,
404,
13,
374,
225,
272,
410,
30,
341,
724,
264,
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,
341,
724,
264,
67,
23,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
312,
67,
21,
16,
312,
67,
22,
16,
312,
67,
23,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,
678,
724,
264,
890,
78,
3273,
1375,
59,
724,
264,
23,
78,
12,
78,
67,
21,
16,
78,
67,
22,
16,
78,
67,
23,
16,
81,
67,
21,
16,
81,
67,
22,
16,
81,
67,
23,
13,
8338,
225,
12943,
30,
225,
300,
225,
12176,
78,
67,
21,
68,
9191,
12176,
78,
67,
22,
68,
9191,
12176,
78,
67,
23,
68,
9191,
12176,
81,
67,
21,
68,
9191,
12176,
81,
67,
22,
68,
9191,
12176,
81,
67,
23,
10335,
2
] |
print (('<br><a href="?removepage=%s">' % self.page_name) + | print (('<br><a href="%s?removepage=%s">' % (base, self.page_name)) + | def send_footer(self, versioned, mod_string=None, page_path=None, unmodified=False): | f8595ddfe1a99f0daf81474c72c391eda99fcb64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4007/f8595ddfe1a99f0daf81474c72c391eda99fcb64/piki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
14723,
12,
2890,
16,
17083,
16,
681,
67,
1080,
33,
7036,
16,
1363,
67,
803,
33,
7036,
16,
30481,
33,
8381,
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,
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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
] |
if r.dirstate[name] == 'r': r.undelete([name]) r.copy(patch, name) r.remove([patch], False) | if r.dirstate[patch] == 'a': r.dirstate.forget(patch) r.dirstate.add(name) else: if r.dirstate[name] == 'r': r.undelete([name]) r.copy(patch, name) r.remove([patch], False) | def rename(ui, repo, patch, name=None, **opts): """rename a patch With one argument, renames the current patch to PATCH1. With two arguments, renames PATCH1 to PATCH2.""" q = repo.mq if not name: name = patch patch = None if patch: patch = q.lookup(patch) else: if not q.applied: ui.write(_('No patches applied\n')) return patch = q.lookup('qtip') absdest = q.join(name) if os.path.isdir(absdest): name = normname(os.path.join(name, os.path.basename(patch))) absdest = q.join(name) if os.path.exists(absdest): raise util.Abort(_('%s already exists') % absdest) if name in q.series: raise util.Abort(_('A patch named %s already exists in the series file') % name) if ui.verbose: ui.write('Renaming %s to %s\n' % (patch, name)) i = q.find_series(patch) guards = q.guard_re.findall(q.full_series[i]) q.full_series[i] = name + ''.join([' #' + g for g in guards]) q.parse_series() q.series_dirty = 1 info = q.isapplied(patch) if info: q.applied[info[0]] = statusentry(info[1], name) q.applied_dirty = 1 util.rename(q.join(patch), absdest) r = q.qrepo() if r: wlock = r.wlock() try: if r.dirstate[name] == 'r': r.undelete([name]) r.copy(patch, name) r.remove([patch], False) finally: del wlock q.save_dirty() | 11326a9e5b925312dad514dbfe39f6ac9ee2a555 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/11326a9e5b925312dad514dbfe39f6ac9ee2a555/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
4881,
16,
3538,
16,
4729,
16,
508,
33,
7036,
16,
2826,
4952,
4672,
3536,
18539,
279,
4729,
225,
3423,
1245,
1237,
16,
1654,
753,
326,
783,
4729,
358,
21298,
21,
18,
3423,
2795,
1775,
16,
1654,
753,
21298,
21,
358,
21298,
22,
12123,
225,
1043,
273,
3538,
18,
11636,
225,
309,
486,
508,
30,
508,
273,
4729,
4729,
273,
599,
225,
309,
4729,
30,
4729,
273,
1043,
18,
8664,
12,
2272,
13,
469,
30,
309,
486,
1043,
18,
438,
3110,
30,
5915,
18,
2626,
24899,
2668,
2279,
16482,
6754,
64,
82,
26112,
327,
4729,
273,
1043,
18,
8664,
2668,
85,
14587,
6134,
2417,
10488,
273,
1043,
18,
5701,
12,
529,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
5113,
10488,
4672,
508,
273,
4651,
529,
12,
538,
18,
803,
18,
5701,
12,
529,
16,
1140,
18,
803,
18,
13909,
12,
2272,
20349,
2417,
10488,
273,
1043,
18,
5701,
12,
529,
13,
309,
1140,
18,
803,
18,
1808,
12,
5113,
10488,
4672,
1002,
1709,
18,
13572,
24899,
29909,
87,
1818,
1704,
6134,
738,
2417,
10488,
13,
225,
309,
508,
316,
1043,
18,
10222,
30,
1002,
1709,
18,
13572,
24899,
2668,
37,
4729,
4141,
738,
87,
1818,
1704,
316,
326,
4166,
585,
6134,
738,
508,
13,
225,
309,
5915,
18,
11369,
30,
5915,
18,
2626,
2668,
16290,
7772,
738,
87,
358,
738,
87,
64,
82,
11,
738,
261,
2272,
16,
508,
3719,
277,
273,
1043,
18,
4720,
67,
10222,
12,
2272,
13,
11026,
87,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6472,
12,
4881,
16,
3538,
16,
4729,
16,
508,
33,
7036,
16,
2826,
4952,
4672,
3536,
18539,
279,
4729,
225,
3423,
1245,
1237,
16,
1654,
753,
326,
783,
4729,
358,
21298,
21,
18,
3423,
2795,
1775,
16,
1654,
753,
21298,
21,
358,
21298,
22,
12123,
225,
1043,
273,
3538,
18,
11636,
225,
309,
486,
508,
30,
508,
273,
4729,
4729,
273,
599,
225,
309,
4729,
30,
4729,
273,
1043,
18,
8664,
12,
2272,
13,
469,
30,
309,
486,
1043,
18,
438,
3110,
30,
5915,
18,
2626,
24899,
2668,
2279,
16482,
6754,
64,
82,
26112,
327,
4729,
273,
1043,
18,
8664,
2668,
85,
14587,
6134,
2417,
10488,
273,
1043,
18,
5701,
12,
529,
13,
309,
1140,
18,
803,
18,
2
] |
file.write("tube1(" + povpoint(a1pos) + "," + stringVec(color1) + "," + povpoint(c1) + "," + povpoint(c2) + "," + povpoint(a2pos) + "," + stringVec(color2) + ")\n") | file.write("tube1(" + povpoint(a1pos) + "," + stringVec(color1) + "," + povpoint(c1) + "," + povpoint(c2) + "," + povpoint(a2pos) + "," + stringVec(color2) + ")\n") return | def writepov(self, file, dispdef, col): ##Huaicai 1/15/05: It seems the attributes from __setup__update() is not correct, ## at least for pov file writing, so compute it here locally. To fix bug 346,347 disp=max(self.atom1.display, self.atom2.display) if disp == diDEFAULT: disp = dispdef color1 = col or self.atom1.element.color color2 = col or self.atom2.element.color a1pos = self.atom1.posn() a2pos = self.atom2.posn() vec = a2pos - a1pos leng = 0.98 * vlen(vec) vec = norm(vec) # (note: as of 041217 rcovalent is always a number; it's 0.0 for Helium, # etc, so the entire bond is drawn as if "too long".) rcov1 = self.atom1.atomtype.rcovalent rcov2 = self.atom2.atomtype.rcovalent c1 = a1pos + vec*rcov1 c2 = a2pos - vec*rcov2 toolong = (leng > rcov1 + rcov2) center = (c1 + c2) / 2.0 # before 041112 this was None when self.toolong if disp<0: disp= dispdef if disp == diLINES: file.write("line(" + povpoint(a1pos) + "," + povpoint(a2pos) + ")\n") if disp == diCPK: file.write("bond(" + povpoint(a1pos) + "," + povpoint(a2pos) + ")\n") if disp == diTUBES: ##Huaicai: If rcovalent is close to 0, like singlets, avoid 0 length ## cylinder written to a pov file DELTA = 1.0E-5 isSingleCylinder = False if self.atom1.atomtype.rcovalent < DELTA: col = color2 isSingleCylinder = True if self.atom2.atomtype.rcovalent < DELTA: col = color1 isSingleCylinder = True if isSingleCylinder: file.write("tube3(" + povpoint(a1pos) + ", " + povpoint(a2pos) + ", " + stringVec(col) + ")\n") else: if not self.toolong: file.write("tube2(" + povpoint(a1pos) + "," + stringVec(color1) + "," + povpoint(center) + "," + povpoint(a2pos) + "," + stringVec(color2) + ")\n") else: file.write("tube1(" + povpoint(a1pos) + "," + stringVec(color1) + "," + povpoint(c1) + "," + povpoint(c2) + "," + povpoint(a2pos) + "," + stringVec(color2) + ")\n") | 8458fbfe4c9e599a4e7092a28b468082d5fe6e91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8458fbfe4c9e599a4e7092a28b468082d5fe6e91/bonds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
84,
1527,
12,
2890,
16,
585,
16,
16232,
536,
16,
645,
4672,
7541,
44,
11886,
335,
10658,
404,
19,
3600,
19,
6260,
30,
2597,
12001,
326,
1677,
628,
1001,
8401,
972,
2725,
1435,
353,
486,
3434,
16,
7541,
622,
4520,
364,
293,
1527,
585,
7410,
16,
1427,
3671,
518,
2674,
13760,
18,
2974,
2917,
7934,
890,
8749,
16,
5026,
27,
16232,
33,
1896,
12,
2890,
18,
7466,
21,
18,
5417,
16,
365,
18,
7466,
22,
18,
5417,
13,
309,
16232,
422,
4314,
5280,
30,
16232,
273,
16232,
536,
2036,
21,
273,
645,
578,
365,
18,
7466,
21,
18,
2956,
18,
3266,
2036,
22,
273,
645,
578,
365,
18,
7466,
22,
18,
2956,
18,
3266,
225,
279,
21,
917,
273,
365,
18,
7466,
21,
18,
917,
82,
1435,
279,
22,
917,
273,
365,
18,
7466,
22,
18,
917,
82,
1435,
225,
7062,
273,
279,
22,
917,
300,
279,
21,
917,
562,
75,
273,
374,
18,
10689,
380,
331,
1897,
12,
8799,
13,
7062,
273,
4651,
12,
8799,
13,
468,
261,
7652,
30,
487,
434,
16486,
2138,
4033,
436,
2894,
1125,
319,
353,
3712,
279,
1300,
31,
518,
1807,
374,
18,
20,
364,
670,
292,
5077,
16,
468,
225,
5527,
16,
1427,
326,
7278,
8427,
353,
19377,
487,
309,
315,
16431,
1525,
9654,
13,
4519,
1527,
21,
273,
365,
18,
7466,
21,
18,
7466,
723,
18,
1310,
10866,
319,
4519,
1527,
22,
273,
365,
18,
7466,
22,
18,
7466,
723,
18,
1310,
10866,
319,
276,
21,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
84,
1527,
12,
2890,
16,
585,
16,
16232,
536,
16,
645,
4672,
7541,
44,
11886,
335,
10658,
404,
19,
3600,
19,
6260,
30,
2597,
12001,
326,
1677,
628,
1001,
8401,
972,
2725,
1435,
353,
486,
3434,
16,
7541,
622,
4520,
364,
293,
1527,
585,
7410,
16,
1427,
3671,
518,
2674,
13760,
18,
2974,
2917,
7934,
890,
8749,
16,
5026,
27,
16232,
33,
1896,
12,
2890,
18,
7466,
21,
18,
5417,
16,
365,
18,
7466,
22,
18,
5417,
13,
309,
16232,
422,
4314,
5280,
30,
16232,
273,
16232,
536,
2036,
21,
273,
645,
578,
365,
18,
7466,
21,
18,
2956,
18,
3266,
2036,
22,
273,
645,
578,
365,
18,
7466,
22,
18,
2956,
18,
3266,
225,
279,
21,
2
] |
can be introduced when needed. - The "right area" contains the 3D Graphics Area (i.e. glpane) displaying the current part. | can be added as needed. - The "right area" contains the Graphics Area (i.e. glpane) displaying the current model. | def removeTab(self, index): res = QTabWidget.removeTab(self, index) # note: AFAIK, res is always None if index != -1: # -1 happens! glpane = self._glpane glpane.gl_update_confcorner() # fix bug 2522 (try 2) return res | 78cee7d87681716c89c16ba27c2643c4f3449af4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/78cee7d87681716c89c16ba27c2643c4f3449af4/Ui_PartWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
5661,
12,
2890,
16,
770,
4672,
400,
273,
2238,
5661,
4609,
18,
4479,
5661,
12,
2890,
16,
770,
13,
468,
4721,
30,
432,
2046,
45,
47,
16,
400,
353,
3712,
599,
309,
770,
480,
300,
21,
30,
468,
300,
21,
10555,
5,
5118,
29009,
273,
365,
6315,
7043,
29009,
5118,
29009,
18,
7043,
67,
2725,
67,
3923,
30519,
1435,
468,
2917,
7934,
6969,
3787,
261,
698,
576,
13,
327,
400,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
5661,
12,
2890,
16,
770,
4672,
400,
273,
2238,
5661,
4609,
18,
4479,
5661,
12,
2890,
16,
770,
13,
468,
4721,
30,
432,
2046,
45,
47,
16,
400,
353,
3712,
599,
309,
770,
480,
300,
21,
30,
468,
300,
21,
10555,
5,
5118,
29009,
273,
365,
6315,
7043,
29009,
5118,
29009,
18,
7043,
67,
2725,
67,
3923,
30519,
1435,
468,
2917,
7934,
6969,
3787,
261,
698,
576,
13,
327,
400,
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
] |
typ, dat = apply(eval('M.%s' % cmd), args) | typ, dat = apply(getattr(M, cmd), args) | def run(cmd, args): _mesg('%s %s' % (cmd, args)) typ, dat = apply(eval('M.%s' % cmd), args) _mesg('%s => %s %s' % (cmd, typ, dat)) return dat | ed860500914c98bc53bdadf292c180ffad9bec09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ed860500914c98bc53bdadf292c180ffad9bec09/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
4172,
16,
833,
4672,
389,
26244,
75,
29909,
87,
738,
87,
11,
738,
261,
4172,
16,
833,
3719,
3815,
16,
1150,
273,
2230,
12,
588,
1747,
12,
49,
16,
1797,
3631,
833,
13,
389,
26244,
75,
29909,
87,
516,
738,
87,
738,
87,
11,
738,
261,
4172,
16,
3815,
16,
1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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
4172,
16,
833,
4672,
389,
26244,
75,
29909,
87,
738,
87,
11,
738,
261,
4172,
16,
833,
3719,
3815,
16,
1150,
273,
2230,
12,
588,
1747,
12,
49,
16,
1797,
3631,
833,
13,
389,
26244,
75,
29909,
87,
516,
738,
87,
738,
87,
11,
738,
261,
4172,
16,
3815,
16,
1150,
3719,
327,
1150,
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
] |
raise OSError(errno.EACCES) | def access(self, uid, fusepath, mode): ''' Test for access to a path. | 61ffff4136623d619714904364429f1bc9e485f4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/61ffff4136623d619714904364429f1bc9e485f4/cachemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2006,
12,
2890,
16,
4555,
16,
19552,
803,
16,
1965,
4672,
9163,
7766,
364,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2006,
12,
2890,
16,
4555,
16,
19552,
803,
16,
1965,
4672,
9163,
7766,
364,
2006,
358,
279,
589,
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
] |
|
print "[AutoBackup] main", kwargs | def main(session, **kwargs): print "[AutoBackup] main", kwargs session.openWithCallback(doneConfiguring, Config) | a3d8f2c4f33c23ce60252053d181d4d05f4273b0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12173/a3d8f2c4f33c23ce60252053d181d4d05f4273b0/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3184,
16,
2826,
4333,
4672,
1339,
18,
3190,
1190,
2428,
12,
8734,
809,
4017,
16,
1903,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3184,
16,
2826,
4333,
4672,
1339,
18,
3190,
1190,
2428,
12,
8734,
809,
4017,
16,
1903,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
""" This class represents a basic MSN contact list. @ivar contacts: The forward list (users on my list) @type contacts: dict (mapping user handles to MSNContact objects) @ivar authorizedContacts: Contacts that I have allowed to be notified when my state changes (allow list) @type authorizedContacts: dict (mapping user handles to MSNContact objects) @ivar reverseContacts: Contacts who have added me to their list @type reverseContacts: dict (mapping user handles to MSNContact objects) @ivar blockedContacts: Contacts not allowed to see state changes nor talk to me @type blockedContacts: dict (mapping user handles to MSNContact objects) @ivar version: The current contact list version (used for list syncing) @ivar groups: a mapping of group ids to group names (groups can only exist on the forward list) @type groups: dict B{Note}: This is used only for storage and doesn't effect the server's contact list. | """ This class represents a basic MSN contact list. @ivar contacts: All contacts on my various lists @type contacts: dict (mapping user handles to MSNContact objects) @ivar version: The current contact list version (used for list syncing) @ivar groups: a mapping of group ids to group names (groups can only exist on the forward list) @type groups: dict B{Note}: This is used only for storage and doesn't effect the server's contact list. | def setPhone(self, phoneType, value): """ set phone numbers/values for this specific user .. for phoneType check the *_PHONE constants and HAS_PAGER """ | 9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
9451,
12,
2890,
16,
7353,
559,
16,
460,
4672,
3536,
444,
7353,
5600,
19,
2372,
364,
333,
2923,
729,
6116,
364,
7353,
559,
866,
326,
380,
67,
8939,
5998,
6810,
471,
21641,
67,
52,
16302,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
9451,
12,
2890,
16,
7353,
559,
16,
460,
4672,
3536,
444,
7353,
5600,
19,
2372,
364,
333,
2923,
729,
6116,
364,
7353,
559,
866,
326,
380,
67,
8939,
5998,
6810,
471,
21641,
67,
52,
16302,
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
] |
def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None, account=None, account_invert=False): | def _get_conversion_rate(self, cr, uid, from_currency, to_currency, context=None): | def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None, account=None, account_invert=False): if context is None: context = {} if not from_currency_id: from_currency_id = to_currency_id if not to_currency_id: to_currency_id = from_currency_id xc = self.browse(cr, uid, [from_currency_id,to_currency_id], context=context) from_currency = (xc[0].id == from_currency_id and xc[0]) or xc[1] to_currency = (xc[0].id == to_currency_id and xc[0]) or xc[1] if from_currency['rate'] == 0 or to_currency['rate'] == 0: date = context.get('date', time.strftime('%Y-%m-%d')) if from_currency['rate'] == 0: currency_symbol = from_currency.symbol else: currency_symbol = to_currency.symbol raise osv.except_osv(_('Error'), _('No rate found \n' \ 'for the currency: %s \n' \ 'at the date: %s') % (currency_symbol, date)) rate = to_currency.rate/from_currency.rate if account and (account.currency_mode=='average') and account.currency_id: q = self.pool.get('account.move.line')._query_get(cr, uid, context=context) cr.execute('select sum(debit-credit),sum(amount_currency) from account_move_line l ' \ 'where l.currency_id=%s and l.account_id=%s and '+q, (account.currency_id.id,account.id,)) tot1,tot2 = cr.fetchone() if tot2 and not account_invert: rate = float(tot1)/float(tot2) elif tot1 and account_invert: rate = float(tot2)/float(tot1) if to_currency_id==from_currency_id: if round: return self.round(cr, uid, to_currency, from_amount) else: return from_amount else: if round: return self.round(cr, uid, to_currency, from_amount * rate) else: return (from_amount * rate) | 342857ee74d4ba849a7544c356a431377efd706c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/342857ee74d4ba849a7544c356a431377efd706c/res_currency.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
20990,
67,
5141,
12,
2890,
16,
4422,
16,
4555,
16,
628,
67,
7095,
16,
358,
67,
7095,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
309,
486,
628,
67,
7095,
67,
350,
30,
628,
67,
7095,
67,
350,
273,
358,
67,
7095,
67,
350,
309,
486,
358,
67,
7095,
67,
350,
30,
358,
67,
7095,
67,
350,
273,
628,
67,
7095,
67,
350,
15192,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
306,
2080,
67,
7095,
67,
350,
16,
869,
67,
7095,
67,
350,
6487,
819,
33,
2472,
13,
628,
67,
7095,
273,
261,
6511,
63,
20,
8009,
350,
422,
628,
67,
7095,
67,
350,
471,
15192,
63,
20,
5717,
578,
15192,
63,
21,
65,
358,
67,
7095,
273,
261,
6511,
63,
20,
8009,
350,
422,
358,
67,
7095,
67,
350,
471,
15192,
63,
20,
5717,
578,
15192,
63,
21,
65,
309,
628,
67,
7095,
3292,
5141,
3546,
422,
374,
578,
358,
67,
7095,
3292,
5141,
3546,
422,
374,
30,
1509,
273,
819,
18,
588,
2668,
712,
2187,
813,
18,
701,
9982,
29909,
61,
6456,
81,
6456,
72,
26112,
309,
628,
67,
7095,
3292,
5141,
3546,
422,
374,
30,
5462,
67,
7175,
273,
628,
67,
7095,
18,
7175,
469,
30,
5462,
67,
7175,
273,
358,
67,
7095,
18,
7175,
1002,
1140,
90,
18,
14137,
67,
538,
90,
24899,
2668,
668,
19899,
389,
2668,
2279,
4993,
1392,
521,
82,
11,
521,
296,
1884,
326,
5462,
30,
738,
87,
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,
67,
20990,
67,
5141,
12,
2890,
16,
4422,
16,
4555,
16,
628,
67,
7095,
16,
358,
67,
7095,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
309,
486,
628,
67,
7095,
67,
350,
30,
628,
67,
7095,
67,
350,
273,
358,
67,
7095,
67,
350,
309,
486,
358,
67,
7095,
67,
350,
30,
358,
67,
7095,
67,
350,
273,
628,
67,
7095,
67,
350,
15192,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
306,
2080,
67,
7095,
67,
350,
16,
869,
67,
7095,
67,
350,
6487,
819,
33,
2472,
13,
628,
67,
7095,
273,
261,
6511,
63,
20,
8009,
350,
422,
628,
67,
7095,
67,
350,
471,
15192,
63,
20,
2
] |
distElement=ET.SubElement(doElement,'distribution',{'distributionFormat':fileClass.format.name,'distributionAccess':'OnlineFileHTTP'}) | if fileClass.format : distElement=ET.SubElement(doElement,'distribution',{'distributionFormat':fileClass.format.name,'distributionAccess':'OnlineFileHTTP'}) else : distElement=ET.SubElement(doElement,'distribution',{'distributionFormat':'','distributionAccess':'OnlineFileHTTP'}) | def add_dataobject(self,fileClass,rootElement): | e213a239dbfaa1ed272a94ec9f19a6327611644c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7019/e213a239dbfaa1ed272a94ec9f19a6327611644c/Translator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
892,
1612,
12,
2890,
16,
768,
797,
16,
3085,
1046,
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,
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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,
527,
67,
892,
1612,
12,
2890,
16,
768,
797,
16,
3085,
1046,
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
] |
self.bary.SetControlValue(vy) | if vy == None: self.bary.HiliteControl(255) self.bary_enabled = 0 else: if not self.bary_enabled: self.bary_enabled = 1 if self.activated: self.bary.HiliteControl(0) self.bary.SetControlValue(vy) def scalebarvalue(self, absmin, absmax, curmin, curmax): if curmin <= absmin and curmax >= absmax: return None if curmin <= absmin: return 0 if curmax >= absmax: return 32767 perc = float(curmin-absmin)/float(absmax-absmin) return int(perc*32767) | def updatescrollbars(self): SetPort(self.wid) vx, vy = self.getscrollbarvalues() if self.barx: self.barx.SetControlValue(vx) if self.bary: self.bary.SetControlValue(vy) | 3a0a0cb6a1371459e2660311fc8c04740045404b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3a0a0cb6a1371459e2660311fc8c04740045404b/FrameWork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2166,
270,
742,
2693,
13518,
12,
2890,
4672,
1000,
2617,
12,
2890,
18,
30902,
13,
17911,
16,
24993,
273,
365,
18,
588,
12033,
3215,
2372,
1435,
309,
365,
18,
3215,
92,
30,
365,
18,
3215,
92,
18,
694,
3367,
620,
12,
26982,
13,
309,
365,
18,
70,
814,
30,
309,
24993,
422,
599,
30,
365,
18,
70,
814,
18,
44,
330,
1137,
3367,
12,
10395,
13,
365,
18,
70,
814,
67,
5745,
273,
374,
469,
30,
309,
486,
365,
18,
70,
814,
67,
5745,
30,
365,
18,
70,
814,
67,
5745,
273,
404,
309,
365,
18,
18836,
30,
365,
18,
70,
814,
18,
44,
330,
1137,
3367,
12,
20,
13,
365,
18,
70,
814,
18,
694,
3367,
620,
12,
29139,
13,
565,
1652,
3159,
3215,
1132,
12,
2890,
16,
2417,
1154,
16,
2417,
1896,
16,
662,
1154,
16,
662,
1896,
4672,
309,
662,
1154,
1648,
2417,
1154,
471,
662,
1896,
1545,
2417,
1896,
30,
327,
599,
309,
662,
1154,
1648,
2417,
1154,
30,
327,
374,
309,
662,
1896,
1545,
2417,
1896,
30,
327,
29317,
27,
26514,
273,
1431,
12,
1397,
1154,
17,
5113,
1154,
13176,
5659,
12,
5113,
1896,
17,
5113,
1154,
13,
327,
509,
12,
457,
71,
14,
1578,
6669,
27,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2166,
270,
742,
2693,
13518,
12,
2890,
4672,
1000,
2617,
12,
2890,
18,
30902,
13,
17911,
16,
24993,
273,
365,
18,
588,
12033,
3215,
2372,
1435,
309,
365,
18,
3215,
92,
30,
365,
18,
3215,
92,
18,
694,
3367,
620,
12,
26982,
13,
309,
365,
18,
70,
814,
30,
309,
24993,
422,
599,
30,
365,
18,
70,
814,
18,
44,
330,
1137,
3367,
12,
10395,
13,
365,
18,
70,
814,
67,
5745,
273,
374,
469,
30,
309,
486,
365,
18,
70,
814,
67,
5745,
30,
365,
18,
70,
814,
67,
5745,
273,
404,
309,
365,
18,
18836,
30,
365,
18,
70,
814,
18,
44,
330,
1137,
3367,
12,
20,
13,
365,
18,
70,
814,
18,
694,
3367,
620,
2
] |
self.ctrl = None | def setup_part2(self): | c191e46f6f99b698570b6b14c9f46f8aedd7e024 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11626/c191e46f6f99b698570b6b14c9f46f8aedd7e024/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2680,
22,
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,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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
] |
|
print 'mouseDown: out of range' | def mouseDown(self, event): event_coords = event.x, event.y xcell, ycell = event.x / self.xsize - 1, 7 - (event.y / self.ysize - 1) loc = self.getLoc(event.x, event.y) if loc: piece = self.board[loc] print loc, piece if piece == None: print 'mouseDown: empty' self.selected = None elif piece.ishybrid(): img1, img2 = self.boardDrawn[loc] # check event.y more precisely threshold = (event.y - (7-ycell+1)*self.ysize) assert 0 <= threshold <= self.ysize threshold *= 3 if threshold < self.ysize: # upper chosen print 'mouseDown: upper' self.selected = (loc, piece.p2, ((img2, sub2(self.upperField(loc), event_coords)), )) elif threshold > 2*self.ysize: # lower chosen print 'mouseDown: lower' self.selected = (loc, piece.p1, ((img1, sub2(self.lowerField(loc), event_coords)), )) else: # both chosen print 'mouseDown: both' self.selected = (loc, piece, ((img1, sub2(self.lowerField(loc), event_coords)), (img2, sub2(self.upperField(loc), event_coords)))) else: # not hybrid print 'mouseDown: not hybrid' (img, ) = self.boardDrawn[loc] self.selected = (loc, piece, ((img, sub2(self.centerField(loc), event_coords)), )) else: print 'mouseDown: out of range' self.selected = None | 62c88dc184b9451cbab757871822ad8127d8ecc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5164/62c88dc184b9451cbab757871822ad8127d8ecc6/gboard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
4164,
12,
2890,
16,
871,
4672,
871,
67,
9076,
273,
871,
18,
92,
16,
871,
18,
93,
619,
3855,
16,
677,
3855,
273,
871,
18,
92,
342,
365,
18,
92,
1467,
300,
404,
16,
2371,
300,
261,
2575,
18,
93,
342,
365,
18,
93,
1467,
300,
404,
13,
1515,
273,
365,
18,
588,
1333,
12,
2575,
18,
92,
16,
871,
18,
93,
13,
309,
1515,
30,
11151,
273,
365,
18,
3752,
63,
1829,
65,
1172,
1515,
16,
11151,
309,
11151,
422,
599,
30,
1172,
296,
11697,
4164,
30,
1008,
11,
365,
18,
8109,
273,
599,
1327,
11151,
18,
1468,
93,
14400,
13332,
3774,
21,
16,
3774,
22,
273,
365,
18,
3752,
6493,
82,
63,
1829,
65,
468,
866,
871,
18,
93,
1898,
13382,
291,
2357,
5573,
273,
261,
2575,
18,
93,
300,
261,
27,
17,
93,
3855,
15,
21,
17653,
2890,
18,
93,
1467,
13,
1815,
374,
1648,
5573,
1648,
365,
18,
93,
1467,
5573,
6413,
890,
309,
5573,
411,
365,
18,
93,
1467,
30,
468,
3854,
10447,
1172,
296,
11697,
4164,
30,
3854,
11,
365,
18,
8109,
273,
261,
1829,
16,
11151,
18,
84,
22,
16,
14015,
6081,
22,
16,
720,
22,
12,
2890,
18,
5797,
974,
12,
1829,
3631,
871,
67,
9076,
13,
3631,
8623,
1327,
5573,
405,
576,
14,
2890,
18,
93,
1467,
30,
468,
2612,
10447,
1172,
296,
11697,
4164,
30,
2612,
11,
365,
18,
8109,
273,
261,
1829,
16,
11151,
18,
84,
21,
16,
14015,
6081,
21,
16,
720,
22,
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,
7644,
4164,
12,
2890,
16,
871,
4672,
871,
67,
9076,
273,
871,
18,
92,
16,
871,
18,
93,
619,
3855,
16,
677,
3855,
273,
871,
18,
92,
342,
365,
18,
92,
1467,
300,
404,
16,
2371,
300,
261,
2575,
18,
93,
342,
365,
18,
93,
1467,
300,
404,
13,
1515,
273,
365,
18,
588,
1333,
12,
2575,
18,
92,
16,
871,
18,
93,
13,
309,
1515,
30,
11151,
273,
365,
18,
3752,
63,
1829,
65,
1172,
1515,
16,
11151,
309,
11151,
422,
599,
30,
1172,
296,
11697,
4164,
30,
1008,
11,
365,
18,
8109,
273,
599,
1327,
11151,
18,
1468,
93,
14400,
13332,
3774,
21,
16,
3774,
22,
273,
365,
18,
3752,
6493,
82,
63,
1829,
65,
468,
2
] |
|
return 1 | wrappers[wrap] = wrap return wrappers | def try_connecting(self): """Try connecting to all self.addrlist addresses. | 353aeeac980bd27a7a227b1ce012b2f7b49ce0a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/353aeeac980bd27a7a227b1ce012b2f7b49ce0a6/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
67,
3612,
310,
12,
2890,
4672,
3536,
7833,
14244,
358,
777,
365,
18,
4793,
1098,
6138,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
775,
67,
3612,
310,
12,
2890,
4672,
3536,
7833,
14244,
358,
777,
365,
18,
4793,
1098,
6138,
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
] |
global stdscr | def idle(caller): """This is called once every iteration through the getkey() loop (currently in the Repl class, see the get_line() method). The statusbar check needs to go here to take care of timed messages and the resize handlers need to be here to make sure it happens conveniently.""" global stdscr if importcompletion.find_coroutine() or caller.paste_mode: stdscr.nodelay(True) key = stdscr.getch() stdscr.nodelay(False) curses.ungetch(key) caller.statusbar.check() caller.check() if DO_RESIZE: do_resize(caller) | 3707a623652dac451d86faed72821fdf6e3b5267 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/3707a623652dac451d86faed72821fdf6e3b5267/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12088,
12,
16140,
4672,
3536,
2503,
353,
2566,
3647,
3614,
6532,
3059,
326,
336,
856,
1435,
2798,
261,
2972,
715,
316,
326,
868,
412,
667,
16,
2621,
326,
336,
67,
1369,
1435,
707,
2934,
1021,
1267,
3215,
866,
4260,
358,
1960,
2674,
358,
4862,
7671,
434,
7491,
2743,
471,
326,
7041,
4919,
1608,
358,
506,
2674,
358,
1221,
3071,
518,
10555,
26375,
715,
12123,
225,
309,
1930,
11469,
18,
4720,
67,
3850,
8983,
1435,
578,
4894,
18,
29795,
67,
3188,
30,
2044,
24638,
18,
82,
1009,
528,
12,
5510,
13,
498,
273,
2044,
24638,
18,
588,
343,
1435,
2044,
24638,
18,
82,
1009,
528,
12,
8381,
13,
30436,
18,
318,
588,
343,
12,
856,
13,
4894,
18,
2327,
3215,
18,
1893,
1435,
4894,
18,
1893,
1435,
225,
309,
5467,
67,
862,
4574,
30,
741,
67,
15169,
12,
16140,
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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326,
981,
30,
1652,
12088,
12,
16140,
4672,
3536,
2503,
353,
2566,
3647,
3614,
6532,
3059,
326,
336,
856,
1435,
2798,
261,
2972,
715,
316,
326,
868,
412,
667,
16,
2621,
326,
336,
67,
1369,
1435,
707,
2934,
1021,
1267,
3215,
866,
4260,
358,
1960,
2674,
358,
4862,
7671,
434,
7491,
2743,
471,
326,
7041,
4919,
1608,
358,
506,
2674,
358,
1221,
3071,
518,
10555,
26375,
715,
12123,
225,
309,
1930,
11469,
18,
4720,
67,
3850,
8983,
1435,
578,
4894,
18,
29795,
67,
3188,
30,
2044,
24638,
18,
82,
1009,
528,
12,
5510,
13,
498,
273,
2044,
24638,
18,
588,
343,
1435,
2044,
24638,
18,
82,
1009,
528,
12,
8381,
13,
30436,
18,
318,
588,
343,
12,
856,
13,
4894,
18,
2327,
2
] |
|
return basename + '-' + str(self.get_start()) + '-' + \ str(self.get_end() - self.get_start()) + '.xml' | return basename + '-' + str(int(self.get_start())) + '-' + \ str(int(self.get_end()) - int(self.get_start())) + '.xml' | def get_output(self): """ Returns the file name of output from the power code. This must be kept synchronized with the name of the output file in power.c. """ if not self.get_start() or not self.get_end() or not self.get_ifo(): raise PowerError, "Start time, end time or ifo has not been set" | 9e8ad39725d7892a4d6817dfa760d1febdfa6c12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/9e8ad39725d7892a4d6817dfa760d1febdfa6c12/power.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2844,
12,
2890,
4672,
3536,
2860,
326,
585,
508,
434,
876,
628,
326,
7212,
981,
18,
1220,
1297,
506,
16555,
3852,
598,
326,
508,
434,
326,
876,
585,
316,
7212,
18,
71,
18,
3536,
309,
486,
365,
18,
588,
67,
1937,
1435,
578,
486,
365,
18,
588,
67,
409,
1435,
578,
486,
365,
18,
588,
67,
20299,
13332,
1002,
23783,
668,
16,
315,
1685,
813,
16,
679,
813,
578,
21479,
711,
486,
2118,
444,
6,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2844,
12,
2890,
4672,
3536,
2860,
326,
585,
508,
434,
876,
628,
326,
7212,
981,
18,
1220,
1297,
506,
16555,
3852,
598,
326,
508,
434,
326,
876,
585,
316,
7212,
18,
71,
18,
3536,
309,
486,
365,
18,
588,
67,
1937,
1435,
578,
486,
365,
18,
588,
67,
409,
1435,
578,
486,
365,
18,
588,
67,
20299,
13332,
1002,
23783,
668,
16,
315,
1685,
813,
16,
679,
813,
578,
21479,
711,
486,
2118,
444,
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
] |
print "Received raw msg", repr(message) | def RecvDump(self, mcl, message): print "Received raw msg", repr(message) return True | b9525ce84ef4e735fe0f3992cbf1baa6453b4604 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/b9525ce84ef4e735fe0f3992cbf1baa6453b4604/test2_csp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30938,
10628,
12,
2890,
16,
312,
830,
16,
883,
4672,
225,
327,
1053,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30938,
10628,
12,
2890,
16,
312,
830,
16,
883,
4672,
225,
327,
1053,
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
] |
|
self.bgfilechooser.connect('update-preview', self.update_preview_cb, | self.bgfilechooser.connect('update-preview', self.update_preview, | def __init__(self): """Setup the preferences dialog interface, loading images, adding filters to file choosers and connecting some signals. """ super(PrefsDialog, self).__init__(gladefile('prefs.glade'), root='config-window') self.add_callbacks(PrefsCallbacks()) | de00492a8254b0d7a402011a0823338d7843934d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11147/de00492a8254b0d7a402011a0823338d7843934d/prefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
7365,
326,
12750,
6176,
1560,
16,
7153,
4602,
16,
6534,
3415,
358,
585,
24784,
414,
471,
14244,
2690,
11505,
18,
3536,
2240,
12,
1386,
2556,
6353,
16,
365,
2934,
972,
2738,
972,
12,
7043,
69,
536,
398,
2668,
1484,
2556,
18,
7043,
2486,
19899,
1365,
2218,
1425,
17,
5668,
6134,
365,
18,
1289,
67,
13316,
12,
1386,
2556,
10617,
10756,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
7365,
326,
12750,
6176,
1560,
16,
7153,
4602,
16,
6534,
3415,
358,
585,
24784,
414,
471,
14244,
2690,
11505,
18,
3536,
2240,
12,
1386,
2556,
6353,
16,
365,
2934,
972,
2738,
972,
12,
7043,
69,
536,
398,
2668,
1484,
2556,
18,
7043,
2486,
19899,
1365,
2218,
1425,
17,
5668,
6134,
365,
18,
1289,
67,
13316,
12,
1386,
2556,
10617,
10756,
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
] |
def full_division_polynomial(self, m): """ Return the m-th bivariate division polynomial in x and y. For the usual division polynomial only in x, see the | def full_division_polynomial(self, m, use_divpoly=True): """ Return the $m$-th bivariate division polynomial in $x$ and $y$. When $m$ is odd this is exactly the same as the usual $m$th division polynomial. For the usual division polynomial only in $x$, see the | def full_division_polynomial(self, m): """ Return the m-th bivariate division polynomial in x and y. | 84dad5dfc790d5dacf9589fdd0cfafb884726e83 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/84dad5dfc790d5dacf9589fdd0cfafb884726e83/ell_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1983,
67,
2892,
1951,
67,
3915,
13602,
12,
2890,
16,
312,
4672,
3536,
2000,
326,
312,
17,
451,
324,
27693,
16536,
16991,
316,
619,
471,
677,
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,
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
16991,
316,
619,
471,
677,
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
] |
-95 -1 -2 | -95 -1 -2 | def _sage_(self, R=None): """ Coerces self to Sage. EXAMPLES:: sage: R = singular.ring(0, '(x,y,z)', 'dp') sage: A = singular.matrix(2,2) sage: A._sage_(ZZ) [0 0] [0 0] sage: A = random_matrix(ZZ,3,3); A [ -8 2 1] [ -1 2 1] [-95 -1 -2] sage: As = singular(A); As -8 2 1 -1 2 1 -95 -1 -2 sage: As._sage_() [ -8 2 1] [ -1 2 1] [-95 -1 -2] """ typ = self.type() if typ=='poly': return self.sage_poly(R) elif typ == 'module': return self.sage_matrix(R,sparse=True) elif typ == 'matrix': return self.sage_matrix(R,sparse=False) elif typ == 'list': return [ f._sage_(R) for f in self ] elif typ == 'intvec': from sage.modules.free_module_element import vector return vector([sage.rings.integer.Integer(str(e)) for e in self]) elif typ == 'intmat': from sage.matrix.constructor import matrix from sage.rings.integer_ring import ZZ A = matrix(ZZ, int(self.nrows()), int(self.ncols())) for i in xrange(A.nrows()): for j in xrange(A.ncols()): A[i,j] = sage.rings.integer.Integer(str(self[i+1,j+1])) return A else: raise NotImplementedError, "Coercion of this datatype not implemented yet" | 3ee840bb85a9af7b362b61a4824618e7b23da870 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/3ee840bb85a9af7b362b61a4824618e7b23da870/singular.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
87,
410,
67,
12,
2890,
16,
534,
33,
7036,
4672,
3536,
7695,
264,
764,
365,
358,
348,
410,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
534,
273,
10048,
18,
8022,
12,
20,
16,
7747,
92,
16,
93,
16,
94,
13,
2187,
296,
9295,
6134,
272,
410,
30,
432,
273,
10048,
18,
5667,
12,
22,
16,
22,
13,
272,
410,
30,
432,
6315,
87,
410,
67,
12,
27096,
13,
306,
20,
374,
65,
306,
20,
374,
65,
272,
410,
30,
432,
273,
2744,
67,
5667,
12,
27096,
16,
23,
16,
23,
1769,
432,
306,
300,
28,
282,
576,
282,
404,
65,
306,
300,
21,
282,
576,
282,
404,
65,
23059,
8778,
225,
300,
21,
225,
300,
22,
65,
272,
410,
30,
2970,
273,
10048,
12,
37,
1769,
2970,
300,
28,
377,
576,
377,
404,
300,
21,
377,
576,
377,
404,
300,
8778,
282,
300,
21,
565,
300,
22,
272,
410,
30,
2970,
6315,
87,
410,
67,
1435,
306,
300,
28,
282,
576,
282,
404,
65,
306,
300,
21,
282,
576,
282,
404,
65,
23059,
8778,
225,
300,
21,
225,
300,
22,
65,
3536,
3815,
273,
365,
18,
723,
1435,
309,
3815,
18920,
16353,
4278,
327,
365,
18,
87,
410,
67,
16353,
12,
54,
13,
1327,
3815,
422,
296,
2978,
4278,
327,
365,
18,
87,
410,
67,
5667,
12,
54,
16,
17472,
33,
5510,
13,
1327,
3815,
422,
296,
5667,
4278,
327,
365,
18,
87,
410,
67,
5667,
12,
54,
16,
17472,
33,
8381,
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,
87,
410,
67,
12,
2890,
16,
534,
33,
7036,
4672,
3536,
7695,
264,
764,
365,
358,
348,
410,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
534,
273,
10048,
18,
8022,
12,
20,
16,
7747,
92,
16,
93,
16,
94,
13,
2187,
296,
9295,
6134,
272,
410,
30,
432,
273,
10048,
18,
5667,
12,
22,
16,
22,
13,
272,
410,
30,
432,
6315,
87,
410,
67,
12,
27096,
13,
306,
20,
374,
65,
306,
20,
374,
65,
272,
410,
30,
432,
273,
2744,
67,
5667,
12,
27096,
16,
23,
16,
23,
1769,
432,
306,
300,
28,
282,
576,
282,
404,
65,
306,
300,
21,
282,
576,
282,
404,
65,
23059,
8778,
225,
300,
21,
225,
2
] |
spg._centrosymmetric = bool(f.readline().split()[1]) | spg._centrosymmetric = bool(int(f.readline().split()[1])) | def _read_datafile_entry(spg, no, symbol, setting, f): """Read space group data from f to spg.""" spg._no = no spg._symbol = symbol.strip() spg._setting = setting spg._centrosymmetric = bool(f.readline().split()[1]) # primitive vectors f.readline() spg._scaled_primitive_cell = np.array([map(float, f.readline().split()) for i in range(3)], dtype=np.float) # primitive reciprocal vectors f.readline() spg._reciprocal_cell = np.array([map(int, f.readline().split()) for i in range(3)], dtype=np.int) # subtranslations spg._nsubtrans = int(f.readline().split()[0]) spg._subtrans = np.array([map(float, f.readline().split()) for i in range(spg._nsubtrans)], dtype=np.float) # symmetry operations nsym = int(f.readline().split()[0]) symop = np.array([map(float, f.readline().split()) for i in range(nsym)], dtype=np.float) spg._nsymop = nsym spg._rotations = np.array(symop[:,:9].reshape((nsym,3,3)), dtype=np.int) spg._translations = symop[:,9:] | e077cbffee982a865e77ef6db689443d53849dbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/e077cbffee982a865e77ef6db689443d53849dbf/spacegroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
892,
768,
67,
4099,
12,
1752,
75,
16,
1158,
16,
3273,
16,
3637,
16,
284,
4672,
3536,
1994,
3476,
1041,
501,
628,
284,
358,
1694,
75,
12123,
1694,
75,
6315,
2135,
273,
1158,
1694,
75,
6315,
7175,
273,
3273,
18,
6406,
1435,
1694,
75,
6315,
8920,
273,
3637,
1694,
75,
6315,
2998,
6973,
2942,
6899,
273,
1426,
12,
474,
12,
74,
18,
896,
1369,
7675,
4939,
1435,
63,
21,
22643,
468,
8225,
10046,
284,
18,
896,
1369,
1435,
1694,
75,
6315,
20665,
67,
683,
5025,
67,
3855,
273,
1130,
18,
1126,
3816,
1458,
12,
5659,
16,
284,
18,
896,
1369,
7675,
4939,
10756,
364,
277,
316,
1048,
12,
23,
13,
6487,
3182,
33,
6782,
18,
5659,
13,
468,
8225,
5863,
30101,
10046,
284,
18,
896,
1369,
1435,
1694,
75,
6315,
266,
3449,
30101,
67,
3855,
273,
1130,
18,
1126,
3816,
1458,
12,
474,
16,
284,
18,
896,
1369,
7675,
4939,
10756,
364,
277,
316,
1048,
12,
23,
13,
6487,
3182,
33,
6782,
18,
474,
13,
468,
720,
13457,
1694,
75,
6315,
82,
1717,
2338,
273,
509,
12,
74,
18,
896,
1369,
7675,
4939,
1435,
63,
20,
5717,
1694,
75,
6315,
1717,
2338,
273,
1130,
18,
1126,
3816,
1458,
12,
5659,
16,
284,
18,
896,
1369,
7675,
4939,
10756,
364,
277,
316,
1048,
12,
1752,
75,
6315,
82,
1717,
2338,
13,
6487,
3182,
33,
6782,
18,
5659,
13,
468,
26144,
5295,
3153,
2942,
273,
509,
12,
74,
18,
896,
1369,
7675,
4939,
1435,
63,
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,
896,
67,
892,
768,
67,
4099,
12,
1752,
75,
16,
1158,
16,
3273,
16,
3637,
16,
284,
4672,
3536,
1994,
3476,
1041,
501,
628,
284,
358,
1694,
75,
12123,
1694,
75,
6315,
2135,
273,
1158,
1694,
75,
6315,
7175,
273,
3273,
18,
6406,
1435,
1694,
75,
6315,
8920,
273,
3637,
1694,
75,
6315,
2998,
6973,
2942,
6899,
273,
1426,
12,
474,
12,
74,
18,
896,
1369,
7675,
4939,
1435,
63,
21,
22643,
468,
8225,
10046,
284,
18,
896,
1369,
1435,
1694,
75,
6315,
20665,
67,
683,
5025,
67,
3855,
273,
1130,
18,
1126,
3816,
1458,
12,
5659,
16,
284,
18,
896,
1369,
7675,
4939,
10756,
364,
277,
316,
1048,
12,
23,
13,
6487,
3182,
33,
6782,
18,
2
] |
CoincDatabaseConnection.commit() | def append(self, row): self.cursor.execute("INSERT INTO coinc_event VALUES (?, ?, ?, ?)", (lsctables.ILWDID(row.coinc_def_id), lsctables.ILWDID(row.time_slide_id), row.nevents, lsctables.ILWDID(row.coinc_event_id))) CoincDatabaseConnection.commit() | d54fb732022835e478a56be4372e71bb33d3cede /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3592/d54fb732022835e478a56be4372e71bb33d3cede/SnglBurstUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
1027,
4672,
365,
18,
9216,
18,
8837,
2932,
11356,
12421,
13170,
71,
67,
2575,
13477,
13590,
16,
20033,
20033,
692,
2225,
16,
261,
3251,
299,
1538,
18,
2627,
16006,
734,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
1027,
4672,
365,
18,
9216,
18,
8837,
2932,
11356,
12421,
13170,
71,
67,
2575,
13477,
13590,
16,
20033,
20033,
692,
2225,
16,
261,
3251,
299,
1538,
18,
2627,
16006,
734,
12,
492,
18,
12645,
71,
67,
536,
67,
350,
3631,
7180,
299,
1538,
18,
2627,
16006,
734,
12,
492,
18,
957,
67,
26371,
67,
350,
3631,
1027,
18,
82,
5989,
16,
7180,
299,
1538,
18,
2627,
16006,
734,
12,
492,
18,
12645,
71,
67,
2575,
67,
350,
20349,
28932,
71,
4254,
1952,
18,
7371,
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
] |
|
tend = toff + tlen if mend < len(buf) and tend < len(buf): | toff &= MASK tend = toff + (tlen & MASK) if mend < buflen and tend < buflen: | def _parse(self, fp): """Override this method to support alternative .mo formats.""" unpack = struct.unpack filename = getattr(fp, 'name', '') # Parse the .mo file header, which consists of 5 little endian 32 # bit words. self._catalog = catalog = {} buf = fp.read() # Are we big endian or little endian? magic = unpack('<i', buf[:4])[0] if magic == self.LE_MAGIC: version, msgcount, masteridx, transidx = unpack('<4i', buf[4:20]) ii = '<ii' elif magic == self.BE_MAGIC: version, msgcount, masteridx, transidx = unpack('>4i', buf[4:20]) ii = '>ii' else: raise IOError(0, 'Bad magic number', filename) # # Now put all messages from the .mo file buffer into the catalog # dictionary. for i in xrange(0, msgcount): mlen, moff = unpack(ii, buf[masteridx:masteridx+8]) mend = moff + mlen tlen, toff = unpack(ii, buf[transidx:transidx+8]) tend = toff + tlen if mend < len(buf) and tend < len(buf): tmsg = buf[toff:tend] catalog[buf[moff:mend]] = tmsg else: raise IOError(0, 'File is corrupt', filename) # See if we're looking at GNU .mo conventions for metadata if mlen == 0 and tmsg.lower().startswith('project-id-version:'): # Catalog description for item in tmsg.split('\n'): item = item.strip() if not item: continue k, v = item.split(':', 1) k = k.strip().lower() v = v.strip() self._info[k] = v if k == 'content-type': self._charset = v.split('charset=')[1] # advance to next entry in the seek tables masteridx += 8 transidx += 8 | e7680dc2d35b27df2d3b024c61357b06f19ba8f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e7680dc2d35b27df2d3b024c61357b06f19ba8f6/gettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
2890,
16,
4253,
4672,
3536,
6618,
333,
707,
358,
2865,
10355,
263,
8683,
6449,
12123,
6167,
273,
1958,
18,
17309,
1544,
273,
3869,
12,
7944,
16,
296,
529,
2187,
28707,
468,
2884,
326,
263,
8683,
585,
1446,
16,
1492,
20915,
434,
1381,
12720,
14759,
3847,
468,
2831,
4511,
18,
365,
6315,
7199,
273,
6222,
273,
2618,
1681,
273,
4253,
18,
896,
1435,
468,
12520,
732,
5446,
14759,
578,
12720,
14759,
35,
8146,
273,
6167,
2668,
32,
77,
2187,
1681,
10531,
24,
5717,
63,
20,
65,
309,
8146,
422,
365,
18,
900,
67,
49,
22247,
30,
1177,
16,
1234,
1883,
16,
4171,
3465,
16,
906,
3465,
273,
6167,
2668,
32,
24,
77,
2187,
1681,
63,
24,
30,
3462,
5717,
6072,
273,
2368,
2835,
11,
1327,
8146,
422,
365,
18,
5948,
67,
49,
22247,
30,
1177,
16,
1234,
1883,
16,
4171,
3465,
16,
906,
3465,
273,
6167,
2668,
34,
24,
77,
2187,
1681,
63,
24,
30,
3462,
5717,
6072,
273,
11279,
2835,
11,
469,
30,
1002,
8340,
12,
20,
16,
296,
6434,
8146,
1300,
2187,
1544,
13,
468,
468,
4494,
1378,
777,
2743,
628,
326,
263,
8683,
585,
1613,
1368,
326,
6222,
468,
3880,
18,
364,
277,
316,
12314,
12,
20,
16,
1234,
1883,
4672,
312,
1897,
16,
312,
3674,
273,
6167,
12,
2835,
16,
1681,
63,
7525,
3465,
30,
7525,
3465,
15,
28,
5717,
312,
409,
273,
312,
3674,
397,
312,
1897,
268,
1897,
16,
358,
1403,
273,
6167,
12,
2835,
16,
1681,
63,
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,
2670,
12,
2890,
16,
4253,
4672,
3536,
6618,
333,
707,
358,
2865,
10355,
263,
8683,
6449,
12123,
6167,
273,
1958,
18,
17309,
1544,
273,
3869,
12,
7944,
16,
296,
529,
2187,
28707,
468,
2884,
326,
263,
8683,
585,
1446,
16,
1492,
20915,
434,
1381,
12720,
14759,
3847,
468,
2831,
4511,
18,
365,
6315,
7199,
273,
6222,
273,
2618,
1681,
273,
4253,
18,
896,
1435,
468,
12520,
732,
5446,
14759,
578,
12720,
14759,
35,
8146,
273,
6167,
2668,
32,
77,
2187,
1681,
10531,
24,
5717,
63,
20,
65,
309,
8146,
422,
365,
18,
900,
67,
49,
22247,
30,
1177,
16,
1234,
1883,
16,
4171,
3465,
16,
906,
3465,
273,
6167,
2668,
32,
24,
77,
2187,
1681,
63,
24,
2
] |
def collect_link(self, link): rv = self.collected_links.get(link) if rv is None: self.collected_links[link] = rv = len(self.collected_links) + 1 return rv | def collect_link(self, link): rv = self.collected_links.get(link) if rv is None: self.collected_links[link] = rv = len(self.collected_links) + 1 return rv | 6ce8d3660b7cb8ebd5dc9b1be5e810f62dbf72d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/6ce8d3660b7cb8ebd5dc9b1be5e810f62dbf72d3/zeml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
67,
1232,
12,
2890,
16,
1692,
4672,
5633,
273,
365,
18,
14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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
67,
1232,
12,
2890,
16,
1692,
4672,
5633,
273,
365,
18,
14676,
329,
67,
7135,
18,
588,
12,
1232,
13,
309,
5633,
353,
599,
30,
365,
18,
14676,
329,
67,
7135,
63,
1232,
65,
273,
5633,
273,
562,
12,
2890,
18,
14676,
329,
67,
7135,
13,
397,
404,
327,
5633,
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
] |
|
if label.strip() != ''] | if label.strip()] | def _generate_toc(self): """Generate key-to-(start, stop) table of contents.""" starts, stops = [], [] self._file.seek(0) next_pos = 0 label_lists = [] while True: line_pos = next_pos line = self._file.readline() next_pos = self._file.tell() if line == '\037\014' + os.linesep: if len(stops) < len(starts): stops.append(line_pos - len(os.linesep)) starts.append(next_pos) labels = [label.strip() for label in self._file.readline()[1:].split(',') if label.strip() != ''] label_lists.append(labels) elif line == '\037' or line == '\037' + os.linesep: if len(stops) < len(starts): stops.append(line_pos - len(os.linesep)) elif line == '': stops.append(line_pos - len(os.linesep)) break self._toc = dict(enumerate(zip(starts, stops))) self._labels = dict(enumerate(label_lists)) self._next_key = len(self._toc) self._file.seek(0, 2) self._file_length = self._file.tell() | 3ae5cf1ce9baf6330ccf73291ebfeaee2c111013 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3ae5cf1ce9baf6330ccf73291ebfeaee2c111013/mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
1391,
12,
2890,
4672,
3536,
4625,
498,
17,
869,
17,
12,
1937,
16,
2132,
13,
1014,
434,
2939,
12123,
2542,
16,
12349,
273,
5378,
16,
5378,
365,
6315,
768,
18,
16508,
12,
20,
13,
1024,
67,
917,
273,
374,
1433,
67,
9772,
273,
5378,
1323,
1053,
30,
980,
67,
917,
273,
1024,
67,
917,
980,
273,
365,
6315,
768,
18,
896,
1369,
1435,
1024,
67,
917,
273,
365,
6315,
768,
18,
88,
1165,
1435,
309,
980,
422,
2337,
4630,
27,
64,
1611,
24,
11,
397,
1140,
18,
3548,
881,
30,
309,
562,
12,
334,
4473,
13,
411,
562,
12,
17514,
4672,
12349,
18,
6923,
12,
1369,
67,
917,
300,
562,
12,
538,
18,
3548,
881,
3719,
2542,
18,
6923,
12,
4285,
67,
917,
13,
3249,
273,
306,
1925,
18,
6406,
1435,
364,
1433,
316,
365,
6315,
768,
18,
896,
1369,
1435,
63,
21,
30,
8009,
4939,
12,
2187,
6134,
309,
1433,
18,
6406,
1435,
65,
1433,
67,
9772,
18,
6923,
12,
5336,
13,
1327,
980,
422,
2337,
4630,
27,
11,
578,
980,
422,
2337,
4630,
27,
11,
397,
1140,
18,
3548,
881,
30,
309,
562,
12,
334,
4473,
13,
411,
562,
12,
17514,
4672,
12349,
18,
6923,
12,
1369,
67,
917,
300,
562,
12,
538,
18,
3548,
881,
3719,
1327,
980,
422,
875,
30,
12349,
18,
6923,
12,
1369,
67,
917,
300,
562,
12,
538,
18,
3548,
881,
3719,
898,
365,
6315,
1391,
273,
2065,
12,
7924,
12600,
12,
4450,
12,
17514,
16,
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,
7163,
67,
1391,
12,
2890,
4672,
3536,
4625,
498,
17,
869,
17,
12,
1937,
16,
2132,
13,
1014,
434,
2939,
12123,
2542,
16,
12349,
273,
5378,
16,
5378,
365,
6315,
768,
18,
16508,
12,
20,
13,
1024,
67,
917,
273,
374,
1433,
67,
9772,
273,
5378,
1323,
1053,
30,
980,
67,
917,
273,
1024,
67,
917,
980,
273,
365,
6315,
768,
18,
896,
1369,
1435,
1024,
67,
917,
273,
365,
6315,
768,
18,
88,
1165,
1435,
309,
980,
422,
2337,
4630,
27,
64,
1611,
24,
11,
397,
1140,
18,
3548,
881,
30,
309,
562,
12,
334,
4473,
13,
411,
562,
12,
17514,
4672,
12349,
18,
6923,
12,
1369,
67,
917,
300,
562,
12,
538,
18,
3548,
881,
2
] |
tree = self.parseQueryEx(query) | tree = self.parseQuery(query) | def parseQueryEx(self, query): tree = self.parseQueryEx(query) ignored = self.getIgnored() return tree, ignored | 98607a5c90ddf186bbecc81dbf61abc7d7fa43d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/98607a5c90ddf186bbecc81dbf61abc7d7fa43d1/QueryParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1138,
424,
12,
2890,
16,
843,
4672,
2151,
273,
365,
18,
2670,
1138,
12,
2271,
13,
5455,
273,
365,
18,
588,
15596,
1435,
327,
2151,
16,
5455,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1138,
424,
12,
2890,
16,
843,
4672,
2151,
273,
365,
18,
2670,
1138,
12,
2271,
13,
5455,
273,
365,
18,
588,
15596,
1435,
327,
2151,
16,
5455,
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
] |
AP_MPMQ_DYNAMIC = 2 | AP_MPMQ_DYNAMIC = 2 | def init(): """ This function is called by the server at startup time """ return CallBack() | 3de9a0d15ba9eb7275476985ecfc3381876d7703 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002/3de9a0d15ba9eb7275476985ecfc3381876d7703/apache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
13332,
3536,
1220,
445,
353,
2566,
635,
326,
1438,
622,
11850,
813,
3536,
225,
327,
3049,
2711,
1435,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
13332,
3536,
1220,
445,
353,
2566,
635,
326,
1438,
622,
11850,
813,
3536,
225,
327,
3049,
2711,
1435,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.announce ("making hard links in %s..." % base_dir) | try: link = os.link msg = "making hard links in %s..." % base_dir except AttributeError: link = 0 msg = "copying files to %s..." % base_dir self.announce (msg) | def make_release_tree (self, base_dir, files): | 46b36026f18d396818890c08e0a6580f4cb2e817 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/46b36026f18d396818890c08e0a6580f4cb2e817/dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9340,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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9340,
67,
3413,
261,
2890,
16,
1026,
67,
1214,
16,
1390,
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
] |
CompileLink(opts=LINKOPTS, dll='libpanda.dll', obj=OBJFILES, xdep=[ | CompileLink(opts=OPTS, dll='libpanda.dll', obj=OBJFILES, xdep=[ | if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n" | e594b1b5a2c778da65602d37638829ada0570895 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/e594b1b5a2c778da65602d37638829ada0570895/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(typ, [data]) = <instance>.list(user, password) """ typ, dat = self._simple_command('LOGIN', user, password) | (typ, [data]) = <instance>.login(user, password) NB: 'password' will be quoted. """ typ, dat = self._simple_command('LOGIN', user, self._quote(password)) | def login(self, user, password): """Identify client using plaintext password. | 8c0622114bc95f9f5b85a8a7e4ed8619bf3ff024 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8c0622114bc95f9f5b85a8a7e4ed8619bf3ff024/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
2890,
16,
729,
16,
2201,
4672,
3536,
25787,
1004,
1450,
11917,
2201,
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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,
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
] |
if not self._prog_running: if self.opts.progress_obj: size = self.size + self._reget_length self.opts.progress_obj.start(self._prog_reportname, urllib.unquote(self.url), self._prog_basename, size=size, text=self.opts.text) self._prog_running = True self.opts.progress_obj.update(self._amount_read) self._amount_read += len(buf) self.fo.write(buf) return len(buf) | try: if not self._prog_running: if self.opts.progress_obj: size = self.size + self._reget_length self.opts.progress_obj.start(self._prog_reportname, urllib.unquote(self.url), self._prog_basename, size=size, text=self.opts.text) self._prog_running = True self.opts.progress_obj.update(self._amount_read) self._amount_read += len(buf) self.fo.write(buf) return len(buf) except KeyboardInterrupt: return pycurl.READFUNC_ABORT | def _retrieve(self, buf): if not self._prog_running: if self.opts.progress_obj: size = self.size + self._reget_length self.opts.progress_obj.start(self._prog_reportname, urllib.unquote(self.url), self._prog_basename, size=size, text=self.opts.text) self._prog_running = True self.opts.progress_obj.update(self._amount_read) | 3957ce44ad7d224da3073f20e65de0209ff07b5e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7001/3957ce44ad7d224da3073f20e65de0209ff07b5e/grabber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
17466,
12,
2890,
16,
1681,
4672,
309,
486,
365,
6315,
14654,
67,
8704,
30,
309,
365,
18,
4952,
18,
8298,
67,
2603,
30,
963,
225,
273,
365,
18,
1467,
397,
365,
6315,
266,
588,
67,
2469,
365,
18,
4952,
18,
8298,
67,
2603,
18,
1937,
12,
2890,
6315,
14654,
67,
6006,
529,
16,
11527,
18,
318,
6889,
12,
2890,
18,
718,
3631,
365,
6315,
14654,
67,
13909,
16,
963,
33,
1467,
16,
977,
33,
2890,
18,
4952,
18,
955,
13,
365,
6315,
14654,
67,
8704,
273,
1053,
365,
18,
4952,
18,
8298,
67,
2603,
18,
2725,
12,
2890,
6315,
8949,
67,
896,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
17466,
12,
2890,
16,
1681,
4672,
309,
486,
365,
6315,
14654,
67,
8704,
30,
309,
365,
18,
4952,
18,
8298,
67,
2603,
30,
963,
225,
273,
365,
18,
1467,
397,
365,
6315,
266,
588,
67,
2469,
365,
18,
4952,
18,
8298,
67,
2603,
18,
1937,
12,
2890,
6315,
14654,
67,
6006,
529,
16,
11527,
18,
318,
6889,
12,
2890,
18,
718,
3631,
365,
6315,
14654,
67,
13909,
16,
963,
33,
1467,
16,
977,
33,
2890,
18,
4952,
18,
955,
13,
365,
6315,
14654,
67,
8704,
273,
1053,
365,
18,
4952,
18,
8298,
67,
2603,
18,
2725,
12,
2890,
6315,
8949,
67,
896,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
else: load.append(entry) if not "auto-use" in metaIgnore: for entry in autoRun: if entry in metaOptional: pass elif entry in load: pass elif entry in run: | else: load.append(entry) if not "auto-use" in metaIgnore: for entry in autoRun: if entry in metaOptional: pass elif entry in load: pass elif entry in run: if verbose: | def getDeps(id, variants): global classes global verbose variantsId = generateVariantCombinationId(variants) cache = readCache(id, "deps" + variantsId, classes[id]["path"]) if cache != None: return cache # Notes: # load time = before class = require # runtime = after class = use if verbose: print " - Gathering dependencies: %s" % id load = [] run = [] # Read meta data meta = getMeta(id) metaLoad = meta["loadtimeDeps"] metaRun = meta["runtimeDeps"] metaOptional = meta["optionalDeps"] metaIgnore = meta["ignoreDeps"] # Process meta data load.extend(metaLoad) run.extend(metaRun) # Read content data (autoLoad, autoRun) = _analyzeClassDeps(id, variants) # Process content data if verbose: if not "auto-require" in metaIgnore: for entry in autoLoad: if entry in metaOptional: pass elif entry in load: print " - #require(%s) is auto-detected" % entry else: load.append(entry) if not "auto-use" in metaIgnore: for entry in autoRun: if entry in metaOptional: pass elif entry in load: pass elif entry in run: print " - #use(%s) is auto-detected" % entry else: run.append(entry) # Build data structure deps = { "load" : load, "run" : run } writeCache(id, "deps" + variantsId, deps) return deps | bc669da719dd71d9d390244fa8e3131d0eaee369 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/bc669da719dd71d9d390244fa8e3131d0eaee369/generator2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
14430,
12,
350,
16,
12935,
4672,
2552,
3318,
2552,
3988,
225,
12935,
548,
273,
2103,
9356,
26062,
548,
12,
15886,
13,
225,
1247,
273,
855,
1649,
12,
350,
16,
315,
14877,
6,
397,
12935,
548,
16,
3318,
63,
350,
6362,
6,
803,
6,
5717,
309,
1247,
480,
599,
30,
327,
1247,
225,
468,
29584,
30,
468,
1262,
813,
273,
1865,
667,
273,
2583,
468,
3099,
273,
1839,
667,
273,
999,
225,
309,
3988,
30,
1172,
315,
225,
300,
25868,
310,
5030,
30,
738,
87,
6,
738,
612,
225,
1262,
273,
5378,
1086,
273,
5378,
225,
468,
2720,
2191,
501,
2191,
273,
11312,
12,
350,
13,
2191,
2563,
273,
2191,
9614,
945,
957,
14430,
11929,
2191,
1997,
273,
2191,
9614,
9448,
14430,
11929,
2191,
6542,
273,
2191,
9614,
10444,
14430,
11929,
2191,
3777,
273,
2191,
9614,
6185,
14430,
11929,
225,
468,
4389,
2191,
501,
1262,
18,
14313,
12,
3901,
2563,
13,
1086,
18,
14313,
12,
3901,
1997,
13,
225,
468,
2720,
913,
501,
261,
6079,
2563,
16,
3656,
1997,
13,
273,
389,
304,
9508,
797,
14430,
12,
350,
16,
12935,
13,
225,
468,
4389,
913,
501,
309,
3988,
30,
309,
486,
315,
6079,
17,
6528,
6,
316,
2191,
3777,
30,
364,
1241,
316,
3656,
2563,
30,
309,
1241,
316,
2191,
6542,
30,
1342,
1327,
1241,
316,
1262,
30,
1172,
315,
225,
300,
468,
6528,
9275,
87,
13,
353,
3656,
17,
8238,
828,
6,
738,
1241,
469,
30,
1262,
18,
6923,
12,
4099,
13,
225,
309,
486,
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,
14430,
12,
350,
16,
12935,
4672,
2552,
3318,
2552,
3988,
225,
12935,
548,
273,
2103,
9356,
26062,
548,
12,
15886,
13,
225,
1247,
273,
855,
1649,
12,
350,
16,
315,
14877,
6,
397,
12935,
548,
16,
3318,
63,
350,
6362,
6,
803,
6,
5717,
309,
1247,
480,
599,
30,
327,
1247,
225,
468,
29584,
30,
468,
1262,
813,
273,
1865,
667,
273,
2583,
468,
3099,
273,
1839,
667,
273,
999,
225,
309,
3988,
30,
1172,
315,
225,
300,
25868,
310,
5030,
30,
738,
87,
6,
738,
612,
225,
1262,
273,
5378,
1086,
273,
5378,
225,
468,
2720,
2191,
501,
2191,
273,
11312,
12,
350,
13,
2191,
2563,
273,
2191,
9614,
945,
957,
14430,
11929,
2191,
1997,
273,
2
] |
sage: extract_numeric_literals("[1.sqrt(), 1.2.sqrt(), 1r, 1.2r, R.1, (1..5)]")[0] '[_sage_const_1 .sqrt(), _sage_const_1p2 .sqrt(), 1r, 1.2r, R.1, (_sage_const_1 .._sage_const_5 )]' | sage: extract_numeric_literals("[1.sqrt(), 1.2.sqrt(), 1r, 1.2r, R.1, R0.1, (1..5)]")[0] '[_sage_const_1 .sqrt(), _sage_const_1p2 .sqrt(), 1r, 1.2r, R.1, R0.1, (_sage_const_1 .._sage_const_5 )]' | def extract_numeric_literals(code): """ To eliminate the re-parsing and creation of numeric literals (e.g. during every iteration of a loop) we wish to pull them out and assign them to global variables. This function takes a block of code and returns a new block of code with literals replaced by variable names, as well as a dictionary of what variables need to be created. EXAMPLES: sage: from sage.misc.preparser import extract_numeric_literals sage: code, nums = extract_numeric_literals("1.2 + 5") sage: print code _sage_const_1p2 + _sage_const_5 sage: print nums {'_sage_const_1p2': "RealNumber('1.2')", '_sage_const_5': 'Integer(5)'} sage: extract_numeric_literals("[1, 1.1, 1e1, -1e-1, 1.]")[0] '[_sage_const_1 , _sage_const_1p1 , _sage_const_1e1 , -_sage_const_1en1 , _sage_const_1p ]' sage: extract_numeric_literals("[1.sqrt(), 1.2.sqrt(), 1r, 1.2r, R.1, (1..5)]")[0] '[_sage_const_1 .sqrt(), _sage_const_1p2 .sqrt(), 1r, 1.2r, R.1, (_sage_const_1 .._sage_const_5 )]' """ literals = {} last = 0 new_code = [] dec_num = r"\b\d+\b" hex_num = r"\b0x[0-9a-fA-F]\b" # This is slightly annoying as floating point numbers may start # with a decimal point, but if they do the \b will not match. float_num = r"((\b\d+([.]\d*)?)|([.]\d+))([eE][-+]?\d+)?\b" all_num = r"(%s)|(%s)|(%s)" % (float_num, dec_num, hex_num) for m in re.finditer(all_num, code): num, start, end = m.group(), m.start(), m.end() # The Sage preparser does extra things with numbers, which we need to handle here. if '.' in num: if start > 0 and num[0] == '.': if code[start-1] == '.': # handle Ellipsis start += 1 num = num[1:] elif re.match(r'[a-zA-Z\])]', code[start-1]): # handle R.0 continue elif end < len(code) and num[-1] == '.': if re.match('[a-zA-Z]', code[end]): # handle 4.sqrt() end -= 1 num = num[:-1] elif re.match(r'\d', code[end]): # handle 4.0r continue elif end < len(code) and code[end] == '.': # \b does not match after the . # two dots in a row would be an ellipsis if end+1 == len(code) or code[end+1] != '.': end += 1 num += '.' if '.' in num or 'e' in num or 'E' in num: num_name = numeric_literal_prefix + num.replace('.', 'p').replace('-', 'n').replace('+', '') num_make = "RealNumber('%s')" % num else: num_name = numeric_literal_prefix + num num_make = "Integer(%s)" % num literals[num_name] = num_make new_code.append(code[last:start]) new_code.append(num_name+' ') last = end new_code.append(code[last:]) return ''.join(new_code), literals | 8ba549800a576297df93ab13c207fd071c3115d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/8ba549800a576297df93ab13c207fd071c3115d8/preparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5246,
67,
80,
11235,
12,
710,
4672,
3536,
2974,
29529,
326,
283,
17,
24979,
471,
6710,
434,
6389,
18228,
261,
73,
18,
75,
18,
4982,
3614,
6532,
434,
279,
2798,
13,
732,
14302,
358,
6892,
2182,
596,
471,
2683,
2182,
358,
2552,
3152,
18,
225,
1220,
445,
5530,
279,
1203,
434,
981,
471,
1135,
279,
394,
1203,
434,
981,
598,
18228,
8089,
635,
2190,
1257,
16,
487,
5492,
487,
279,
3880,
434,
4121,
3152,
1608,
358,
506,
2522,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
1484,
4288,
1930,
2608,
67,
5246,
67,
80,
11235,
272,
410,
30,
981,
16,
21060,
273,
2608,
67,
5246,
67,
80,
11235,
2932,
21,
18,
22,
397,
1381,
7923,
272,
410,
30,
1172,
981,
389,
87,
410,
67,
10248,
67,
21,
84,
22,
225,
397,
389,
87,
410,
67,
10248,
67,
25,
272,
410,
30,
1172,
21060,
13666,
67,
87,
410,
67,
10248,
67,
21,
84,
22,
4278,
315,
6955,
1854,
2668,
21,
18,
22,
23291,
16,
2070,
87,
410,
67,
10248,
67,
25,
4278,
296,
4522,
12,
25,
2506,
97,
225,
272,
410,
30,
2608,
67,
5246,
67,
80,
11235,
2932,
63,
21,
16,
404,
18,
21,
16,
404,
73,
21,
16,
300,
21,
73,
17,
21,
16,
404,
18,
4279,
25146,
20,
65,
5271,
67,
87,
410,
67,
10248,
67,
21,
269,
389,
87,
410,
67,
10248,
67,
21,
84,
21,
269,
389,
87,
410,
67,
10248,
67,
21,
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,
2608,
67,
5246,
67,
80,
11235,
12,
710,
4672,
3536,
2974,
29529,
326,
283,
17,
24979,
471,
6710,
434,
6389,
18228,
261,
73,
18,
75,
18,
4982,
3614,
6532,
434,
279,
2798,
13,
732,
14302,
358,
6892,
2182,
596,
471,
2683,
2182,
358,
2552,
3152,
18,
225,
1220,
445,
5530,
279,
1203,
434,
981,
471,
1135,
279,
394,
1203,
434,
981,
598,
18228,
8089,
635,
2190,
1257,
16,
487,
5492,
487,
279,
3880,
434,
4121,
3152,
1608,
358,
506,
2522,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
1484,
4288,
1930,
2608,
67,
5246,
67,
80,
11235,
272,
410,
30,
981,
16,
21060,
273,
2608,
67,
5246,
67,
80,
11235,
2932,
2
] |
self._debug("put on buffer") | debug(FILTER, "%s put rule %r on buffer", self, rule.title) | def _filterStartElement (self, tag, attrs): """filter the start element according to filter rules""" rulelist = [] filtered = False item = [STARTTAG, tag, attrs] for rule in self.rules: if rule.match_tag(tag) and rule.match_attrs(attrs): self._debug("matched rule %r on tag %r", rule.title, tag) if rule.start_sufficient: item = rule.filter_tag(tag, attrs) filtered = True if item[0]==STARTTAG and item[1]==tag: foo,tag,attrs = item # give'em a chance to replace more than one attribute continue else: break else: self._debug("put on buffer") rulelist.append(rule) if rulelist: # remember buffer position for end tag matching pos = len(self.htmlparser.tagbuf) self.rulestack.append((pos, rulelist)) self.stackcount.append([tag, 1]) if filtered: # put filtered item on tag buffer self.htmlparser.tagbuf.append(item) elif self.javascript: # if it's not yet filtered, try filter javascript self._jsStartElement(tag, attrs) else: # put original item on tag buffer self.htmlparser.tagbuf.append(item) | 4a1c178ba0dd448a42795b2c19afac8cb1126130 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/4a1c178ba0dd448a42795b2c19afac8cb1126130/HtmlFilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2188,
1685,
1046,
261,
2890,
16,
1047,
16,
3422,
4672,
3536,
2188,
326,
787,
930,
4888,
358,
1034,
2931,
8395,
436,
332,
5449,
273,
5378,
5105,
273,
1083,
761,
273,
306,
20943,
1470,
1781,
16,
1047,
16,
3422,
65,
364,
1720,
316,
365,
18,
7482,
30,
309,
1720,
18,
1916,
67,
2692,
12,
2692,
13,
471,
1720,
18,
1916,
67,
7039,
12,
7039,
4672,
365,
6315,
4148,
2932,
11073,
1720,
738,
86,
603,
1047,
738,
86,
3113,
1720,
18,
2649,
16,
1047,
13,
309,
1720,
18,
1937,
67,
87,
11339,
30,
761,
273,
1720,
18,
2188,
67,
2692,
12,
2692,
16,
3422,
13,
5105,
273,
1053,
309,
761,
63,
20,
65,
631,
20943,
1470,
1781,
471,
761,
63,
21,
65,
631,
2692,
30,
8431,
16,
2692,
16,
7039,
273,
761,
468,
8492,
11,
351,
279,
17920,
358,
1453,
1898,
2353,
1245,
1566,
1324,
469,
30,
898,
469,
30,
1198,
12,
11126,
16,
2213,
87,
1378,
1720,
738,
86,
603,
1613,
3113,
365,
16,
1720,
18,
2649,
13,
436,
332,
5449,
18,
6923,
12,
5345,
13,
309,
436,
332,
5449,
30,
468,
11586,
1613,
1754,
364,
679,
1047,
3607,
949,
273,
562,
12,
2890,
18,
2620,
4288,
18,
2692,
4385,
13,
365,
18,
86,
332,
395,
484,
18,
6923,
12443,
917,
16,
436,
332,
5449,
3719,
365,
18,
3772,
1883,
18,
6923,
3816,
2692,
16,
404,
5717,
309,
5105,
30,
468,
1378,
5105,
761,
603,
1047,
1613,
365,
18,
2620,
4288,
18,
2692,
4385,
18,
6923,
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,
2188,
1685,
1046,
261,
2890,
16,
1047,
16,
3422,
4672,
3536,
2188,
326,
787,
930,
4888,
358,
1034,
2931,
8395,
436,
332,
5449,
273,
5378,
5105,
273,
1083,
761,
273,
306,
20943,
1470,
1781,
16,
1047,
16,
3422,
65,
364,
1720,
316,
365,
18,
7482,
30,
309,
1720,
18,
1916,
67,
2692,
12,
2692,
13,
471,
1720,
18,
1916,
67,
7039,
12,
7039,
4672,
365,
6315,
4148,
2932,
11073,
1720,
738,
86,
603,
1047,
738,
86,
3113,
1720,
18,
2649,
16,
1047,
13,
309,
1720,
18,
1937,
67,
87,
11339,
30,
761,
273,
1720,
18,
2188,
67,
2692,
12,
2692,
16,
3422,
13,
5105,
273,
1053,
309,
761,
63,
20,
65,
631,
20943,
1470,
1781,
471,
761,
2
] |
url="http://www.megaupload.com/?d="+code req = urllib2.Request(url) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') req.add_header('Cookie', 'l=es; user='+user) try: response = urllib2.urlopen(req) except: req = urllib2.Request(url.replace(" ","%20")) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') response = urllib2.urlopen(req) data=response.read() response.close() | logger.info("getmegauploadvideo0") req = urllib2.Request("http://www.megaupload.com/?d="+code) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') req.add_header('Cookie', 'l=es; user='+user) try: opener = urllib2.build_opener(SmartRedirectHandler()) response = opener.open(req) except ImportError, inst: status,location=inst logger.info(str(status) + " " + location) mediaurl = location else: data=response.read() response.close() | def getmegauploadvideo(code,user): url="http://www.megaupload.com/?d="+code req = urllib2.Request(url) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') req.add_header('Cookie', 'l=es; user='+user) try: response = urllib2.urlopen(req) except: req = urllib2.Request(url.replace(" ","%20")) req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3') response = urllib2.urlopen(req) data=response.read() response.close() #if DEBUG: # xbmc.output("[megaupload.py] data=#"+data+"#") patronvideos = '<div class="down_ad_pad1">[^<]+<a href="([^"]+)"' matches = re.compile(patronvideos,re.DOTALL).findall(data) scrapertools.printMatches(matches) mediaurl = "" if len(matches)>0: mediaurl = matches[0] return mediaurl | 51e0a90cf7253c7095d450fc2d77d5624ead14e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2004/51e0a90cf7253c7095d450fc2d77d5624ead14e7/megaupload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
81,
11061,
6327,
9115,
12,
710,
16,
1355,
4672,
880,
1546,
2505,
2207,
5591,
18,
81,
11061,
6327,
18,
832,
23239,
72,
1546,
15,
710,
1111,
273,
11527,
22,
18,
691,
12,
718,
13,
1111,
18,
1289,
67,
3374,
2668,
1299,
17,
3630,
2187,
296,
49,
11142,
10745,
19,
25,
18,
20,
261,
10399,
31,
587,
31,
8202,
20064,
1381,
18,
21,
31,
570,
17,
5887,
31,
5633,
30,
21,
18,
29,
18,
20,
18,
23,
13,
611,
31319,
19,
6976,
3672,
29,
3247,
4033,
22950,
19,
23,
18,
20,
18,
23,
6134,
1111,
18,
1289,
67,
3374,
2668,
6151,
2187,
296,
80,
33,
281,
31,
729,
2218,
15,
1355,
13,
775,
30,
766,
273,
11527,
22,
18,
295,
18589,
12,
3658,
13,
1335,
30,
1111,
273,
11527,
22,
18,
691,
12,
718,
18,
2079,
2932,
5753,
9,
3462,
6,
3719,
1111,
18,
1289,
67,
3374,
2668,
1299,
17,
3630,
2187,
296,
49,
11142,
10745,
19,
25,
18,
20,
261,
10399,
31,
587,
31,
8202,
20064,
1381,
18,
21,
31,
570,
17,
5887,
31,
5633,
30,
21,
18,
29,
18,
20,
18,
23,
13,
611,
31319,
19,
6976,
3672,
29,
3247,
4033,
22950,
19,
23,
18,
20,
18,
23,
6134,
766,
273,
11527,
22,
18,
295,
18589,
12,
3658,
13,
501,
33,
2740,
18,
896,
1435,
766,
18,
4412,
1435,
468,
430,
6369,
30,
468,
565,
15970,
13952,
18,
2844,
2932,
63,
81,
11061,
6327,
18,
2074,
65,
501,
33,
17133,
15,
892,
9078,
7,
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,
81,
11061,
6327,
9115,
12,
710,
16,
1355,
4672,
880,
1546,
2505,
2207,
5591,
18,
81,
11061,
6327,
18,
832,
23239,
72,
1546,
15,
710,
1111,
273,
11527,
22,
18,
691,
12,
718,
13,
1111,
18,
1289,
67,
3374,
2668,
1299,
17,
3630,
2187,
296,
49,
11142,
10745,
19,
25,
18,
20,
261,
10399,
31,
587,
31,
8202,
20064,
1381,
18,
21,
31,
570,
17,
5887,
31,
5633,
30,
21,
18,
29,
18,
20,
18,
23,
13,
611,
31319,
19,
6976,
3672,
29,
3247,
4033,
22950,
19,
23,
18,
20,
18,
23,
6134,
1111,
18,
1289,
67,
3374,
2668,
6151,
2187,
296,
80,
33,
281,
31,
729,
2218,
15,
1355,
13,
775,
30,
766,
273,
11527,
22,
2
] |
elif isinstance(pos, SeqFeature.AfterPosition) : return "<%i" % (pos.position + offset) | def _insdc_feature_position_string(pos, offset=0): """Build a GenBank/EMBL position string (PRIVATE). Use offset=1 to add one to convert a start position from python counting. """ if isinstance(pos, SeqFeature.ExactPosition) : return "%i" % (pos.position+offset) elif isinstance(pos, SeqFeature.WithinPosition) : return "(%i.%i)" % (pos.position + offset, pos.position + pos.extension + offset) elif isinstance(pos, SeqFeature.BetweenPosition) : return "(%i^%i)" % (pos.position + offset, pos.position + pos.extension + offset) elif isinstance(pos, SeqFeature.BeforePosition) : return ">%i" % (pos.position + offset) elif isinstance(pos, SeqFeature.AfterPosition) : return "<%i" % (pos.position + offset) elif isinstance(pos, SeqFeature.OneOfPosition): return "one-of(%s)" \ % ",".join([_insdc_feature_position_string(p,offset) \ for p in pos.position_choices]) elif isinstance(pos, SeqFeature.AbstractPosition) : raise NotImplementedError("Please report this as a bug in Biopython.") else : raise ValueError("Expected a SeqFeature position object.") | 1199bb09b08000bea42c30a71c6bf55ceedda60e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/1199bb09b08000bea42c30a71c6bf55ceedda60e/InsdcIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2679,
7201,
67,
7238,
67,
3276,
67,
1080,
12,
917,
16,
1384,
33,
20,
4672,
3536,
3116,
279,
10938,
16040,
19,
3375,
14618,
1754,
533,
261,
20055,
2934,
225,
2672,
1384,
33,
21,
358,
527,
1245,
358,
1765,
279,
787,
1754,
628,
5790,
22075,
18,
3536,
309,
1549,
12,
917,
16,
14367,
4595,
18,
14332,
2555,
13,
294,
327,
2213,
77,
6,
738,
261,
917,
18,
3276,
15,
3348,
13,
1327,
1549,
12,
917,
16,
14367,
4595,
18,
18949,
2555,
13,
294,
327,
7751,
9,
77,
7866,
77,
2225,
738,
261,
917,
18,
3276,
397,
1384,
16,
949,
18,
3276,
397,
949,
18,
6447,
397,
1384,
13,
1327,
1549,
12,
917,
16,
14367,
4595,
18,
11831,
2555,
13,
294,
327,
7751,
9,
77,
66,
9,
77,
2225,
738,
261,
917,
18,
3276,
397,
1384,
16,
949,
18,
3276,
397,
949,
18,
6447,
397,
1384,
13,
1327,
1549,
12,
917,
16,
14367,
4595,
18,
4649,
2555,
13,
294,
327,
315,
9822,
77,
6,
738,
261,
917,
18,
3276,
397,
1384,
13,
1327,
1549,
12,
917,
16,
14367,
4595,
18,
3335,
951,
2555,
4672,
327,
315,
476,
17,
792,
9275,
87,
2225,
521,
738,
5753,
18,
5701,
3816,
67,
2679,
7201,
67,
7238,
67,
3276,
67,
1080,
12,
84,
16,
3348,
13,
521,
364,
293,
316,
949,
18,
3276,
67,
11937,
5717,
1327,
1549,
12,
917,
16,
14367,
4595,
18,
7469,
2555,
13,
294,
1002,
11206,
2932,
8496,
2605,
333,
487,
279,
7934,
316,
16682,
1101,
3041,
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,
2679,
7201,
67,
7238,
67,
3276,
67,
1080,
12,
917,
16,
1384,
33,
20,
4672,
3536,
3116,
279,
10938,
16040,
19,
3375,
14618,
1754,
533,
261,
20055,
2934,
225,
2672,
1384,
33,
21,
358,
527,
1245,
358,
1765,
279,
787,
1754,
628,
5790,
22075,
18,
3536,
309,
1549,
12,
917,
16,
14367,
4595,
18,
14332,
2555,
13,
294,
327,
2213,
77,
6,
738,
261,
917,
18,
3276,
15,
3348,
13,
1327,
1549,
12,
917,
16,
14367,
4595,
18,
18949,
2555,
13,
294,
327,
7751,
9,
77,
7866,
77,
2225,
738,
261,
917,
18,
3276,
397,
1384,
16,
949,
18,
3276,
397,
949,
18,
6447,
397,
1384,
13,
1327,
1549,
12,
917,
16,
14367,
4595,
18,
11831,
2555,
2
] |
|
""" | """ | def flimage_color_to_pixel(pImage, p2, p3, p4, p5): """ flimage_color_to_pixel(pImage, p2, p3, p4, p5) -> num. """ retval = _flimage_color_to_pixel(pImage, p2, p3, p4, p5) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
3266,
67,
869,
67,
11743,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
4672,
3536,
1183,
2730,
67,
3266,
67,
869,
67,
11743,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
3266,
67,
869,
67,
11743,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
13,
327,
5221,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
3266,
67,
869,
67,
11743,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
4672,
3536,
1183,
2730,
67,
3266,
67,
869,
67,
11743,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
3266,
67,
869,
67,
11743,
12,
84,
2040,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
13,
327,
5221,
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
] |
cmd += [ options.params ] | cmd += [options.params] | def runRecordedScripts(options): """ Run recorded script tests >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> options.modes = ['release', 'debug'] >>> runRecordedScripts(options) /.../RunPython... Chandler.py --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --recordedTest=... - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + ... """ failed = False testlist = [] for item in glob.glob(os.path.join('tools', 'cats', 'recorded_scripts', '*.py')): testlist.append(os.path.split(item)[1][:-3]) for mode in options.modes: for test in testlist: cmd = [ options.runpython[mode], 'Chandler.py', '--create', '--catch=tests', '--profileDir=%s' % options.profileDir, '--parcelPath=%s' % options.parcelPath, '--recordedTest=%s' % test, ] if options.params: cmd += [ options.params ] if options.verbose: log(' '.join(cmd)) if options.dryrun: result = 0 else: result = build_lib.runCommand(cmd, timeout=1200) if result != 0: log('***Error exit code=%d' % result) failed = True failedTests.append('recordedTest %s' % test) if not options.noStop: break log('- + ' * 15) return failed | 64e3ec7e167097dc0b4afb4eadc40bc6adec660f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/64e3ec7e167097dc0b4afb4eadc40bc6adec660f/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
426,
3850,
785,
15041,
12,
2116,
4672,
3536,
1939,
16421,
2728,
7434,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
4080,
702,
18,
25011,
2681,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
702,
18,
19282,
273,
10228,
9340,
2187,
296,
4148,
3546,
4080,
1086,
426,
3850,
785,
15041,
12,
2116,
13,
342,
2777,
19,
1997,
15774,
2777,
1680,
464,
749,
18,
2074,
1493,
2640,
1493,
14683,
33,
16341,
1493,
5040,
1621,
33,
3813,
67,
5040,
1493,
1065,
2183,
743,
33,
6642,
19,
24750,
19,
751,
2697,
1493,
266,
3850,
785,
4709,
33,
2777,
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,
1372,
3536,
2535,
273,
1083,
1842,
1098,
273,
5378,
225,
364,
761,
316,
4715,
18,
10581,
12,
538,
18,
803,
18,
5701,
2668,
6642,
2187,
296,
24750,
2187,
296,
266,
3850,
785,
67,
12827,
2187,
19962,
2074,
26112,
30,
1842,
1098,
18,
6923,
12,
538,
18,
803,
18,
4939,
12,
1726,
25146,
21,
6362,
30,
17,
23,
5717,
282,
364,
1965,
316,
702,
18,
19282,
30,
364,
1842,
316,
1842,
1098,
30,
1797,
225,
273,
306,
702,
18,
2681,
8103,
63,
3188,
6487,
296,
782,
464,
749,
18,
2074,
2187,
3534,
2640,
2187,
3534,
14683,
33,
16341,
2187,
3534,
5040,
1621,
5095,
87,
11,
738,
702,
18,
5040,
1621,
16,
3534,
1065,
2183,
743,
5095,
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,
1086,
426,
3850,
785,
15041,
12,
2116,
4672,
3536,
1939,
16421,
2728,
7434,
225,
4080,
702,
273,
1109,
1320,
1435,
4080,
866,
1320,
12,
2116,
13,
4080,
702,
18,
25011,
2681,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
702,
18,
19282,
273,
10228,
9340,
2187,
296,
4148,
3546,
4080,
1086,
426,
3850,
785,
15041,
12,
2116,
13,
342,
2777,
19,
1997,
15774,
2777,
1680,
464,
749,
18,
2074,
1493,
2640,
1493,
14683,
33,
16341,
1493,
5040,
1621,
33,
3813,
67,
5040,
1493,
1065,
2183,
743,
33,
6642,
19,
24750,
19,
751,
2697,
1493,
266,
3850,
785,
4709,
33,
2777,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
397,
300,
2
] |
return psfClumpX, psfClumpY, psfClumpIxx, psfClumIxy, psfClumpIyy | return psfClumpX, psfClumpY, psfClumpIxx, psfClumpIxy, psfClumpIyy | def getClump(self): psfImage = self.getImage() # # Embed psfImage into a larger image so we can smooth when measuring it # width, height = psfImage.getWidth(), psfImage.getHeight() largeImg = psfImage.Factory(2*width, 2*height) largeImg.set(0) | f568a7c046ec92f1eff985cacbfb715f5536b0db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6523/f568a7c046ec92f1eff985cacbfb715f5536b0db/PsfShapeHistogram.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13674,
2801,
12,
2890,
4672,
28687,
2040,
273,
365,
18,
588,
2040,
1435,
468,
468,
14564,
28687,
2040,
1368,
279,
10974,
1316,
1427,
732,
848,
11957,
1347,
10017,
4017,
518,
468,
1835,
16,
2072,
273,
28687,
2040,
18,
588,
2384,
9334,
28687,
2040,
18,
588,
2686,
1435,
7876,
12804,
273,
28687,
2040,
18,
1733,
12,
22,
14,
2819,
16,
576,
14,
4210,
13,
7876,
12804,
18,
542,
12,
20,
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,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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,
13674,
2801,
12,
2890,
4672,
28687,
2040,
273,
365,
18,
588,
2040,
1435,
468,
468,
14564,
28687,
2040,
1368,
279,
10974,
1316,
1427,
732,
848,
11957,
1347,
10017,
4017,
518,
468,
1835,
16,
2072,
273,
28687,
2040,
18,
588,
2384,
9334,
28687,
2040,
18,
588,
2686,
1435,
7876,
12804,
273,
28687,
2040,
18,
1733,
12,
22,
14,
2819,
16,
576,
14,
4210,
13,
7876,
12804,
18,
542,
12,
20,
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
] |
def _printResponseJava(resp, response): | def _printResponseJava(self, resp, response): | def _printResponseJava(resp, response): resp.setContentType("text/xml") toClient = resp.getWriter() toClient.println(re.sub(EMPTYPARAMREGEX,"",response)) | c8e008fe10897ecc71f80fe5c7aeb349dd59ee4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10967/c8e008fe10897ecc71f80fe5c7aeb349dd59ee4f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
1064,
5852,
12,
2890,
16,
1718,
16,
766,
4672,
1718,
18,
542,
8046,
2932,
955,
19,
2902,
7923,
358,
1227,
273,
1718,
18,
588,
2289,
1435,
358,
1227,
18,
8222,
12,
266,
18,
1717,
12,
13625,
8388,
12472,
10837,
3113,
2740,
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,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
1064,
5852,
12,
2890,
16,
1718,
16,
766,
4672,
1718,
18,
542,
8046,
2932,
955,
19,
2902,
7923,
358,
1227,
273,
1718,
18,
588,
2289,
1435,
358,
1227,
18,
8222,
12,
266,
18,
1717,
12,
13625,
8388,
12472,
10837,
3113,
2740,
3719,
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
] |
try: stream = HTMLInputStream("tests/utf-8-bom.html") c = stream.readChar() while c: line, col = stream.position() if c == u"\n": print "Line %s, Column %s: Line Feed" % (line, col) else: print "Line %s, Column %s: %s" % (line, col, c.encode('utf-8')) c = stream.readChar() print "EOF" except IOError: print "The file does not exist." | stream = HTMLInputStream("../tests/utf-8-bom.html") c = stream.char() while c: line, col = stream.position() if c == u"\n": print "Line %s, Column %s: Line Feed" % (line, col) else: print "Line %s, Column %s: %s" % (line, col, c.encode('utf-8')) c = stream.char() print "EOF" | def charsUntil(self, characters, opposite = False): """ Returns a string of characters from the stream up to but not including any character in characters or EOF. characters can be any container that supports the in method being called on it. """ charStack = [self.char()] | e26a37dce0f0e9cd42b27902ca48f17ab506eaf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/e26a37dce0f0e9cd42b27902ca48f17ab506eaf1/inputstream.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5230,
9716,
12,
2890,
16,
3949,
16,
20759,
273,
1083,
4672,
3536,
2860,
279,
533,
434,
3949,
628,
326,
1407,
731,
358,
1496,
486,
6508,
1281,
3351,
316,
3949,
578,
6431,
18,
3949,
848,
506,
1281,
1478,
716,
6146,
326,
316,
707,
3832,
2566,
603,
518,
18,
3536,
1149,
2624,
273,
306,
2890,
18,
3001,
1435,
65,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5230,
9716,
12,
2890,
16,
3949,
16,
20759,
273,
1083,
4672,
3536,
2860,
279,
533,
434,
3949,
628,
326,
1407,
731,
358,
1496,
486,
6508,
1281,
3351,
316,
3949,
578,
6431,
18,
3949,
848,
506,
1281,
1478,
716,
6146,
326,
316,
707,
3832,
2566,
603,
518,
18,
3536,
1149,
2624,
273,
306,
2890,
18,
3001,
1435,
65,
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
] |
ce.setProxy(self.proxy) | ce.setProxy( self.proxy ) | def submitJobs(self): """ Go through defined computing elements and submit jobs if necessary """ for queue in self.queueDict: ce = self.queueDict[queue]['CE'] ceName = self.queueDict[queue]['CEName'] queueName = self.queueDict[queue]['QueueName'] if 'CPUTime' in self.queueDict[queue]['ParametersDict'] : queueCPUTime = int(self.queueDict[queue]['ParametersDict']['CPUTime']) else: return S_ERROR('CPU time limit is not specified for queue %s' % queue) | fecf3d418a4e3a08002c58982e809e7e4b152546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fecf3d418a4e3a08002c58982e809e7e4b152546/SiteDirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
7276,
12,
2890,
4672,
3536,
4220,
3059,
2553,
20303,
2186,
471,
4879,
6550,
309,
4573,
3536,
225,
364,
2389,
316,
365,
18,
4000,
5014,
30,
5898,
273,
365,
18,
4000,
5014,
63,
4000,
23962,
1441,
3546,
5898,
461,
273,
365,
18,
4000,
5014,
63,
4000,
23962,
1441,
461,
3546,
17489,
273,
365,
18,
4000,
5014,
63,
4000,
23962,
30975,
3546,
225,
309,
296,
15222,
950,
11,
316,
365,
18,
4000,
5014,
63,
4000,
23962,
2402,
5014,
3546,
294,
2389,
15222,
950,
273,
509,
12,
2890,
18,
4000,
5014,
63,
4000,
23962,
2402,
5014,
21712,
15222,
950,
19486,
469,
30,
327,
348,
67,
3589,
2668,
15222,
813,
1800,
353,
486,
1269,
364,
2389,
738,
87,
11,
738,
2389,
13,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
7276,
12,
2890,
4672,
3536,
4220,
3059,
2553,
20303,
2186,
471,
4879,
6550,
309,
4573,
3536,
225,
364,
2389,
316,
365,
18,
4000,
5014,
30,
5898,
273,
365,
18,
4000,
5014,
63,
4000,
23962,
1441,
3546,
5898,
461,
273,
365,
18,
4000,
5014,
63,
4000,
23962,
1441,
461,
3546,
17489,
273,
365,
18,
4000,
5014,
63,
4000,
23962,
30975,
3546,
225,
309,
296,
15222,
950,
11,
316,
365,
18,
4000,
5014,
63,
4000,
23962,
2402,
5014,
3546,
294,
2389,
15222,
950,
273,
509,
12,
2890,
18,
4000,
5014,
63,
4000,
23962,
2402,
5014,
21712,
15222,
950,
19486,
469,
30,
327,
348,
67,
3589,
2668,
15222,
813,
1800,
353,
486,
1269,
364,
2389,
738,
87,
11,
738,
2389,
2
] |
Return True if this group is nilpotent. | Return ``True`` if this group is nilpotent. | def is_nilpotent(self): """ Return True if this group is nilpotent. EXAMPLES:: sage: G = PermutationGroup(['(1,2,3)(4,5)', '(1,2,3,4,5)']) sage: G.is_nilpotent() False sage: G = PermutationGroup(['(1,2,3)(4,5)']) sage: G.is_nilpotent() True """ return self._gap_().IsNilpotent().bool() | 1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
20154,
13130,
319,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
515,
13130,
319,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
12,
3292,
12,
21,
16,
22,
16,
23,
21433,
24,
16,
25,
13,
2187,
7747,
21,
16,
22,
16,
23,
16,
24,
16,
25,
2506,
5717,
272,
410,
30,
611,
18,
291,
67,
20154,
13130,
319,
1435,
1083,
272,
410,
30,
611,
273,
13813,
9245,
1114,
12,
3292,
12,
21,
16,
22,
16,
23,
21433,
24,
16,
25,
2506,
5717,
272,
410,
30,
611,
18,
291,
67,
20154,
13130,
319,
1435,
1053,
3536,
327,
365,
6315,
14048,
67,
7675,
2520,
12616,
13130,
319,
7675,
6430,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
20154,
13130,
319,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
515,
13130,
319,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
12,
3292,
12,
21,
16,
22,
16,
23,
21433,
24,
16,
25,
13,
2187,
7747,
21,
16,
22,
16,
23,
16,
24,
16,
25,
2506,
5717,
272,
410,
30,
611,
18,
291,
67,
20154,
13130,
319,
1435,
1083,
272,
410,
30,
611,
273,
13813,
9245,
1114,
12,
3292,
12,
21,
16,
22,
16,
23,
21433,
24,
16,
25,
2506,
5717,
272,
410,
30,
611,
18,
291,
67,
20154,
13130,
319,
1435,
1053,
3536,
327,
365,
6315,
14048,
67,
7675,
2520,
12616,
13130,
319,
2
] |
return ('enum', self.original) | return ('enum', self.values) | def toTuple(self): return ('enum', self.original) | f803947528fb6dc602fee30101646b2cc605160f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/f803947528fb6dc602fee30101646b2cc605160f/typemap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
9038,
12,
2890,
4672,
327,
7707,
7924,
2187,
365,
18,
8830,
13,
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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
9038,
12,
2890,
4672,
327,
7707,
7924,
2187,
365,
18,
8830,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._ascending = False | if sort_key == "name": self._ascending = True else: self._ascending = False | def _on_button_clicked(self, button, sort_key): if self._current_sort_key == sort_key: self._ascending = not self._ascending else: self._ascending = False old_button = self._button_map[self._current_sort_key] old_button.set_sort_state(SortBarButton.SORT_NONE) self._current_sort_key = sort_key if self._ascending: button.set_sort_state(SortBarButton.SORT_UP) else: button.set_sort_state(SortBarButton.SORT_DOWN) self.emit('sort-changed', self._current_sort_key, self._ascending) | 11228f89651758128ea9912b6ea0fcd86754daad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/11228f89651758128ea9912b6ea0fcd86754daad/itemlistwidgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
5391,
67,
7475,
329,
12,
2890,
16,
3568,
16,
1524,
67,
856,
4672,
309,
365,
6315,
2972,
67,
3804,
67,
856,
422,
1524,
67,
856,
30,
365,
6315,
3691,
2846,
273,
486,
365,
6315,
3691,
2846,
469,
30,
225,
309,
1524,
67,
856,
422,
315,
529,
6877,
365,
6315,
3691,
2846,
273,
1053,
469,
30,
365,
6315,
3691,
2846,
273,
1083,
1592,
67,
5391,
273,
365,
6315,
5391,
67,
1458,
63,
2890,
6315,
2972,
67,
3804,
67,
856,
65,
1592,
67,
5391,
18,
542,
67,
3804,
67,
2019,
12,
4416,
5190,
3616,
18,
23988,
67,
9826,
13,
365,
6315,
2972,
67,
3804,
67,
856,
273,
1524,
67,
856,
309,
365,
6315,
3691,
2846,
30,
3568,
18,
542,
67,
3804,
67,
2019,
12,
4416,
5190,
3616,
18,
23988,
67,
3079,
13,
469,
30,
3568,
18,
542,
67,
3804,
67,
2019,
12,
4416,
5190,
3616,
18,
23988,
67,
12711,
13,
365,
18,
18356,
2668,
3804,
17,
6703,
2187,
365,
6315,
2972,
67,
3804,
67,
856,
16,
365,
6315,
3691,
2846,
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,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
225,
309,
1524,
67,
856,
422,
315,
529,
6877,
365,
6315,
3691,
2846,
273,
1053,
469,
30,
365,
6315,
3691,
2846,
273,
1083,
1592,
67,
5391,
273,
365,
6315,
5391,
67,
1458,
63,
2890,
6315,
2972,
67,
3804,
67,
856,
65,
1592,
67,
5391,
18,
542,
67,
3804,
67,
2019,
12,
4416,
5190,
3616,
18,
23988,
67,
9826,
13,
365,
6315,
2972,
67,
3804,
67,
856,
273,
1524,
67,
856,
309,
365,
6315,
3691,
2846,
30,
3568,
2
] |
self.current_entry.msgid = self.current_token[7:-1] | self.current_entry.msgid = self._unquote_msg(self.current_token[7:-1]) | def handle_mi(self): """Handle a msgid.""" if self.current_state in ['MC', 'MS', 'MX']: _listappend(self.instance, self.current_entry) self.current_entry = POEntry() self.current_entry.obsolete = self.entry_obsolete self.current_entry.msgid = self.current_token[7:-1] return True | 56ac94824c255ef3d4d9dbfd4ffed5d8fc5d55f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/56ac94824c255ef3d4d9dbfd4ffed5d8fc5d55f7/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9197,
12,
2890,
4672,
3536,
3259,
279,
24389,
12123,
309,
365,
18,
2972,
67,
2019,
316,
10228,
20022,
2187,
296,
3537,
2187,
296,
13874,
3546,
30,
389,
1098,
6923,
12,
2890,
18,
1336,
16,
365,
18,
2972,
67,
4099,
13,
365,
18,
2972,
67,
4099,
273,
13803,
1622,
1435,
365,
18,
2972,
67,
4099,
18,
10992,
19513,
273,
365,
18,
4099,
67,
10992,
19513,
365,
18,
2972,
67,
4099,
18,
3576,
350,
273,
365,
6315,
318,
6889,
67,
3576,
12,
2890,
18,
2972,
67,
2316,
63,
27,
30,
17,
21,
5717,
327,
1053,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9197,
12,
2890,
4672,
3536,
3259,
279,
24389,
12123,
309,
365,
18,
2972,
67,
2019,
316,
10228,
20022,
2187,
296,
3537,
2187,
296,
13874,
3546,
30,
389,
1098,
6923,
12,
2890,
18,
1336,
16,
365,
18,
2972,
67,
4099,
13,
365,
18,
2972,
67,
4099,
273,
13803,
1622,
1435,
365,
18,
2972,
67,
4099,
18,
10992,
19513,
273,
365,
18,
4099,
67,
10992,
19513,
365,
18,
2972,
67,
4099,
18,
3576,
350,
273,
365,
6315,
318,
6889,
67,
3576,
12,
2890,
18,
2972,
67,
2316,
63,
27,
30,
17,
21,
5717,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
while self.updater.isAlive(): self.updater.stop = True | while self.thread.isAlive(): self.thread.stop = True | def shutdown(self): while self.updater.isAlive(): self.updater.stop = True time.sleep(0.1) | 1131e2e1366358f81403edeb62c1f67a0bcd18f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/1131e2e1366358f81403edeb62c1f67a0bcd18f3/rasterwand.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
4672,
1323,
365,
18,
5930,
18,
291,
10608,
13332,
365,
18,
5930,
18,
5681,
273,
1053,
813,
18,
19607,
12,
20,
18,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
4672,
1323,
365,
18,
5930,
18,
291,
10608,
13332,
365,
18,
5930,
18,
5681,
273,
1053,
813,
18,
19607,
12,
20,
18,
21,
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
] |
return retval | def parse_EqualsMINUS(self, context, operands): retval = self.parse_EQUALS(context, operands) if context.currentRecord.target != None: context.currentRecord.target = ~context.currentRecord.target context.currentRecord.complete = True return retval | 0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f/directive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
8867,
6236,
3378,
12,
2890,
16,
819,
16,
14883,
4672,
5221,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
8867,
6236,
3378,
12,
2890,
16,
819,
16,
14883,
4672,
5221,
273,
365,
18,
2670,
67,
12853,
55,
12,
2472,
16,
14883,
13,
309,
819,
18,
2972,
2115,
18,
3299,
480,
599,
30,
819,
18,
2972,
2115,
18,
3299,
273,
4871,
2472,
18,
2972,
2115,
18,
3299,
819,
18,
2972,
2115,
18,
6226,
273,
1053,
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
] |
|
logging.warn('UPDATE invalid question %s' % remote_ip) | logging.warn('UPDATE invalid question from %s' % remote_ip) | def handle_update(self, msg): """Process an update message.""" | 2b2b5839b23008a8980ab8eeeca606297c51c416 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4157/2b2b5839b23008a8980ab8eeeca606297c51c416/route53d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2725,
12,
2890,
16,
1234,
4672,
3536,
2227,
392,
1089,
883,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1640,
67,
2725,
12,
2890,
16,
1234,
4672,
3536,
2227,
392,
1089,
883,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
status += """<b><span class="warning">ERROR 4:Restricted</span></b>""" | status += """<b><span class="warning">4:Restricted</span></b>""" | def perform_validateconf(colID, ln, confirm=0, callback='yes'): """Validation of the configuration of the collections""" subtitle = """<a name="11"></a>Collections Status""" output = "" colID = int(colID) col_dict = dict(get_def_name('', "collection")) collections = run_sql("SELECT id, name, dbquery, restricted FROM collection ORDER BY id") header = ['Id', 'Name', 'Query', 'Subcollections', 'Restricted', 'I8N','Status'] rnk_list = get_def_name('', "rnkMETHOD") actions = [] for (id, name, dbquery, restricted) in collections: reg_sons = len(get_col_tree(id, 'r')) vir_sons = len(get_col_tree(id, 'v')) status = "" langs = run_sql("SELECT ln from collectionname where id_collection=%s" % id) i8n = "" if len(langs) > 0: for lang in langs: i8n += "%s, " % lang else: i8n = """<b><span class="info">None</span></b>""" if (reg_sons > 1 and dbquery) or dbquery=="": status = """<b><span class="warning">ERROR 1:Query</span></b>""" elif dbquery is None and reg_sons == 1: status = """<b><span class="warning">ERROR 2:Query</span></b>""" elif dbquery == "" and reg_sons == 1: status = """<b><span class="warning">ERROR 3:Query</span></b>""" if (reg_sons > 1 or vir_sons > 1): subs = """<b><span class="info">Yes</span></b>""" else: subs = """<b><span class="info">No</span></b>""" if dbquery is None: dbquery = """<b><span class="info">No</span></b>""" if restricted == "": restricted = "" if status: status += """<b><span class="warning">,4:Restricted</span></b>""" else: status += """<b><span class="warning">ERROR 4:Restricted</span></b>""" elif restricted is None: restricted = """<b><span class="info">No</span></b>""" if status == "": status = """<b><span class="info">OK</span></b>""" actions.append([id, """<a href="%s/admin/websearch/websearchadmin.py/editcollection?colID=%s&ln=%s">%s</a>""" % (weburl, id, ln, name), dbquery, subs, restricted, i8n, status]) output += tupletotable(header=header, tuple=actions) try: body = [output, extra] except NameError: body = [output] if callback: return perform_index(colID, ln, "perform_validateconf", addadminbox(subtitle, body)) else: return addadminbox(subtitle, body) | 31263b92d0781de306d2784945c4ebefc2a5f3ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/31263b92d0781de306d2784945c4ebefc2a5f3ac/websearchadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
5662,
3923,
12,
1293,
734,
16,
7211,
16,
6932,
33,
20,
16,
1348,
2218,
9707,
11,
4672,
3536,
4354,
434,
326,
1664,
434,
326,
6980,
8395,
225,
20281,
273,
3536,
32,
69,
508,
1546,
2499,
13762,
69,
34,
15150,
2685,
8395,
876,
225,
273,
1408,
225,
645,
734,
273,
509,
12,
1293,
734,
13,
645,
67,
1576,
273,
2065,
12,
588,
67,
536,
67,
529,
2668,
2187,
315,
5548,
6,
3719,
6980,
273,
1086,
67,
4669,
2932,
4803,
612,
16,
508,
16,
1319,
2271,
16,
15693,
4571,
1849,
10205,
6953,
612,
7923,
225,
1446,
273,
10228,
548,
2187,
296,
461,
2187,
296,
1138,
2187,
296,
1676,
19246,
2187,
296,
18784,
2187,
296,
45,
28,
50,
17023,
1482,
3546,
20594,
79,
67,
1098,
273,
336,
67,
536,
67,
529,
2668,
2187,
315,
27639,
79,
5327,
7923,
4209,
273,
5378,
225,
364,
261,
350,
16,
508,
16,
1319,
2271,
16,
15693,
13,
316,
6980,
30,
960,
67,
816,
87,
273,
562,
12,
588,
67,
1293,
67,
3413,
12,
350,
16,
296,
86,
26112,
16831,
67,
816,
87,
273,
562,
12,
588,
67,
1293,
67,
3413,
12,
350,
16,
296,
90,
26112,
1267,
273,
1408,
26467,
273,
1086,
67,
4669,
2932,
4803,
7211,
628,
1849,
529,
1625,
612,
67,
5548,
5095,
87,
6,
738,
612,
13,
277,
28,
82,
273,
1408,
282,
309,
562,
12,
4936,
87,
13,
405,
374,
30,
364,
3303,
316,
26467,
30,
277,
28,
82,
1011,
2213,
87,
16,
315,
738,
3303,
469,
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,
3073,
67,
5662,
3923,
12,
1293,
734,
16,
7211,
16,
6932,
33,
20,
16,
1348,
2218,
9707,
11,
4672,
3536,
4354,
434,
326,
1664,
434,
326,
6980,
8395,
225,
20281,
273,
3536,
32,
69,
508,
1546,
2499,
13762,
69,
34,
15150,
2685,
8395,
876,
225,
273,
1408,
225,
645,
734,
273,
509,
12,
1293,
734,
13,
645,
67,
1576,
273,
2065,
12,
588,
67,
536,
67,
529,
2668,
2187,
315,
5548,
6,
3719,
6980,
273,
1086,
67,
4669,
2932,
4803,
612,
16,
508,
16,
1319,
2271,
16,
15693,
4571,
1849,
10205,
6953,
612,
7923,
225,
1446,
273,
10228,
548,
2187,
296,
461,
2187,
296,
1138,
2187,
296,
1676,
19246,
2187,
296,
18784,
2187,
296,
45,
28,
50,
17023,
2
] |
env.history.message("Cancelled.") | env.history.message(cmd + "Cancelled.") | def load_espimage_file(self, choose_new_image = False, parent = None): '''Load the ESP (.png) image file pointed to by self.espimage_file. If the file does not exist, or if choose_new_image is True, the user will be prompted to choose a new image, and if the file chooser dialog is not cancelled, the new image will be loaded and its pathname stored in self.espimage_file. Return value is None if user cancels the file chooser, but is self.espimage_file (which has just been reloaded, and a history message emitted, whether or not it was newly chosen) in all other cases. If self.espimage_file is changed (to a different value), this marks assy as changed. ''' #bruce 060207 revised docstring. I suspect this routine has several distinct # purposes which should not be so intimately mixed (i.e. it should be several # routines). Nothing presently uses the return value. | 8b2cc1226ce2066eacb9e0ecaa85df6e4ffcc317 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8b2cc1226ce2066eacb9e0ecaa85df6e4ffcc317/jigs_planes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
281,
84,
2730,
67,
768,
12,
2890,
16,
9876,
67,
2704,
67,
2730,
273,
1083,
16,
982,
273,
599,
4672,
9163,
2563,
326,
512,
3118,
261,
18,
6446,
13,
1316,
585,
25874,
358,
635,
365,
18,
281,
84,
2730,
67,
768,
18,
971,
326,
585,
1552,
486,
1005,
16,
578,
309,
9876,
67,
2704,
67,
2730,
353,
1053,
16,
326,
729,
903,
506,
6866,
329,
358,
9876,
279,
394,
1316,
16,
471,
309,
326,
585,
5011,
13164,
6176,
353,
486,
13927,
16,
326,
394,
1316,
903,
506,
4203,
471,
2097,
9806,
4041,
316,
365,
18,
281,
84,
2730,
67,
768,
18,
2000,
460,
353,
599,
309,
729,
3755,
87,
326,
585,
5011,
13164,
16,
1496,
353,
365,
18,
281,
84,
2730,
67,
768,
261,
12784,
711,
2537,
2118,
283,
4230,
16,
471,
279,
4927,
883,
17826,
16,
2856,
578,
486,
518,
1703,
10894,
10447,
13,
316,
777,
1308,
6088,
18,
971,
365,
18,
281,
84,
2730,
67,
768,
353,
3550,
261,
869,
279,
3775,
460,
3631,
333,
13999,
1551,
93,
487,
3550,
18,
9163,
468,
2848,
3965,
13026,
3103,
8642,
283,
26779,
14525,
18,
467,
11375,
1181,
333,
12245,
711,
11392,
10217,
468,
13694,
1492,
1410,
486,
506,
1427,
509,
381,
5173,
7826,
261,
77,
18,
73,
18,
518,
1410,
506,
11392,
468,
28580,
2934,
13389,
3430,
715,
4692,
326,
327,
460,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
281,
84,
2730,
67,
768,
12,
2890,
16,
9876,
67,
2704,
67,
2730,
273,
1083,
16,
982,
273,
599,
4672,
9163,
2563,
326,
512,
3118,
261,
18,
6446,
13,
1316,
585,
25874,
358,
635,
365,
18,
281,
84,
2730,
67,
768,
18,
971,
326,
585,
1552,
486,
1005,
16,
578,
309,
9876,
67,
2704,
67,
2730,
353,
1053,
16,
326,
729,
903,
506,
6866,
329,
358,
9876,
279,
394,
1316,
16,
471,
309,
326,
585,
5011,
13164,
6176,
353,
486,
13927,
16,
326,
394,
1316,
903,
506,
4203,
471,
2097,
9806,
4041,
316,
365,
18,
281,
84,
2730,
67,
768,
18,
2000,
460,
353,
599,
309,
729,
3755,
87,
326,
585,
5011,
13164,
16,
1496,
353,
2
] |
print "TODO: add monitor window for given memory address range" | print "TODO: add register / memory address range monitor window" | def monitor_cb(self, widget): print "TODO: add monitor window for given memory address range" | a839da0699cb05f1e3add20b29be66d8dc90680a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/a839da0699cb05f1e3add20b29be66d8dc90680a/debugui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6438,
67,
7358,
12,
2890,
16,
3604,
4672,
1172,
315,
6241,
30,
527,
6438,
2742,
364,
864,
3778,
1758,
1048,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6438,
67,
7358,
12,
2890,
16,
3604,
4672,
1172,
315,
6241,
30,
527,
6438,
2742,
364,
864,
3778,
1758,
1048,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
M = self._bsgs(E(0),1,ub) | M = self._bsgs(E(0),lb,ub) | def order(self): """ Return the order of this point on the elliptic curve. If the point has infinite order, returns 0. | 495bfd3531d90bd2d48aa6748ef9dbf178438963 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/495bfd3531d90bd2d48aa6748ef9dbf178438963/ell_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
4672,
3536,
2000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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
12,
2890,
4672,
3536,
2000,
326,
1353,
434,
333,
1634,
603,
326,
415,
549,
21507,
8882,
18,
971,
326,
1634,
711,
14853,
1353,
16,
1135,
374,
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
] |
self.add(self.text) class DailyDoubleOverlay(clutter.Box): """ """ def __init__(self): """ """ super(DailyDoubleOverlay, self).__init__(clutter.BinLayout( clutter.BIN_ALIGNMENT_CENTER, clutter.BIN_ALIGNMENT_CENTER)) self.set_color(config.square_background_color) self.text = Text(config.player_overlay_font, 'Daily\nDouble') | def set_text(self, text): """ """ self.remove(self.text) self.text = Text(config.player_overlay_font, text) self.add(self.text) | 8ee11e0cc92310df1931380e880ca1b02cf41ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10391/8ee11e0cc92310df1931380e880ca1b02cf41ee9/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
955,
12,
2890,
16,
977,
4672,
3536,
3536,
365,
18,
4479,
12,
2890,
18,
955,
13,
365,
18,
955,
273,
3867,
12,
1425,
18,
14872,
67,
17312,
67,
5776,
16,
977,
13,
365,
18,
1289,
12,
2890,
18,
955,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
955,
12,
2890,
16,
977,
4672,
3536,
3536,
365,
18,
4479,
12,
2890,
18,
955,
13,
365,
18,
955,
273,
3867,
12,
1425,
18,
14872,
67,
17312,
67,
5776,
16,
977,
13,
365,
18,
1289,
12,
2890,
18,
955,
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
] |
|
statDict['Mode'] = S_IMODE(stat[ST_MODE]) | statDict['Mode'] = S_IMODE( stat[ST_MODE] ) | def __parse_stat(self,stat): statDict = {'File':False,'Directory':False} if S_ISREG(stat[ST_MODE]): statDict['File'] = True statDict['Size'] = stat[ST_SIZE] if S_ISDIR(stat[ST_MODE]): statDict['Directory'] = True statDict['Mode'] = S_IMODE(stat[ST_MODE]) return statDict | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
67,
5642,
12,
2890,
16,
5642,
4672,
610,
5014,
273,
13666,
812,
4278,
8381,
11189,
2853,
4278,
8381,
97,
309,
348,
67,
5127,
5937,
12,
5642,
63,
882,
67,
7038,
65,
4672,
610,
5014,
3292,
812,
3546,
273,
1053,
610,
5014,
3292,
1225,
3546,
273,
610,
63,
882,
67,
4574,
65,
309,
348,
67,
5127,
4537,
12,
5642,
63,
882,
67,
7038,
65,
4672,
610,
5014,
3292,
2853,
3546,
273,
1053,
610,
5014,
3292,
2309,
3546,
273,
348,
67,
3445,
2712,
12,
610,
63,
882,
67,
7038,
65,
262,
327,
610,
5014,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2670,
67,
5642,
12,
2890,
16,
5642,
4672,
610,
5014,
273,
13666,
812,
4278,
8381,
11189,
2853,
4278,
8381,
97,
309,
348,
67,
5127,
5937,
12,
5642,
63,
882,
67,
7038,
65,
4672,
610,
5014,
3292,
812,
3546,
273,
1053,
610,
5014,
3292,
1225,
3546,
273,
610,
63,
882,
67,
4574,
65,
309,
348,
67,
5127,
4537,
12,
5642,
63,
882,
67,
7038,
65,
4672,
610,
5014,
3292,
2853,
3546,
273,
1053,
610,
5014,
3292,
2309,
3546,
273,
348,
67,
3445,
2712,
12,
610,
63,
882,
67,
7038,
65,
262,
327,
610,
5014,
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
] |
older_than = self.last_record, limit = lines_needed, | older_than = older_than, limit = lines_needed, | def fill_top_underflow(self, lines_needed): if not self.archive: return record_iter = self.archive.get_records('chat', self.conversation.peer, older_than = self.last_record, limit = lines_needed, order = Archive.REVERSE_CHRONOLOGICAL) records = list(record_iter) if not records: return records.reverse() self.last_record = records[0][0] logger.debug("Got {0} records:".format(len(records))) for record_id, record in records: logger.debug("Record {0!r}: {1!r}".format(record_id, record)) fparams = dict(self.conversation.fparams) if record.direction == "in": fparams["jid"] = record.peer theme_fmt = "chat.peer" else: fparams["jid"] = record.peer theme_fmt = "chat.me" if record.timestamp: fparams["timestamp"] = record.timestamp if record.body.startswith(u"/me "): fparams["msg"] = record.body[4:] self.append_themed("chat.action", fparams) return fparams["msg"] = record.body self.append_themed(theme_fmt, fparams) | cbe980e9ae95dc080883f1dc3ca6ec2ad98f19b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12768/cbe980e9ae95dc080883f1dc3ca6ec2ad98f19b9/chat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
67,
3669,
67,
9341,
2426,
12,
2890,
16,
2362,
67,
17471,
4672,
309,
486,
365,
18,
10686,
30,
327,
1409,
67,
2165,
273,
365,
18,
10686,
18,
588,
67,
7094,
2668,
10880,
2187,
365,
18,
25131,
18,
12210,
16,
12156,
67,
23483,
273,
12156,
67,
23483,
16,
1800,
273,
2362,
67,
17471,
16,
1353,
273,
13124,
18,
862,
28489,
67,
1792,
19359,
51,
29249,
13,
3853,
273,
666,
12,
3366,
67,
2165,
13,
309,
486,
3853,
30,
327,
3853,
18,
9845,
1435,
365,
18,
2722,
67,
3366,
273,
3853,
63,
20,
6362,
20,
65,
1194,
18,
4148,
2932,
15617,
288,
20,
97,
3853,
2773,
18,
2139,
12,
1897,
12,
7094,
20349,
364,
1409,
67,
350,
16,
1409,
316,
3853,
30,
1194,
18,
4148,
2932,
2115,
288,
20,
5,
86,
6713,
288,
21,
5,
86,
1532,
18,
2139,
12,
3366,
67,
350,
16,
1409,
3719,
284,
2010,
273,
2065,
12,
2890,
18,
25131,
18,
74,
2010,
13,
309,
1409,
18,
9855,
422,
315,
267,
6877,
284,
2010,
9614,
18252,
11929,
273,
1409,
18,
12210,
5006,
67,
8666,
273,
315,
10880,
18,
12210,
6,
469,
30,
284,
2010,
9614,
18252,
11929,
273,
1409,
18,
12210,
5006,
67,
8666,
273,
315,
10880,
18,
3501,
6,
309,
1409,
18,
5508,
30,
284,
2010,
9614,
5508,
11929,
273,
1409,
18,
5508,
309,
1409,
18,
3432,
18,
17514,
1918,
12,
89,
6,
19,
3501,
315,
4672,
284,
2010,
9614,
3576,
11929,
273,
1409,
18,
3432,
63,
24,
26894,
365,
18,
6923,
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,
3636,
67,
3669,
67,
9341,
2426,
12,
2890,
16,
2362,
67,
17471,
4672,
309,
486,
365,
18,
10686,
30,
327,
1409,
67,
2165,
273,
365,
18,
10686,
18,
588,
67,
7094,
2668,
10880,
2187,
365,
18,
25131,
18,
12210,
16,
12156,
67,
23483,
273,
12156,
67,
23483,
16,
1800,
273,
2362,
67,
17471,
16,
1353,
273,
13124,
18,
862,
28489,
67,
1792,
19359,
51,
29249,
13,
3853,
273,
666,
12,
3366,
67,
2165,
13,
309,
486,
3853,
30,
327,
3853,
18,
9845,
1435,
365,
18,
2722,
67,
3366,
273,
3853,
63,
20,
6362,
20,
65,
1194,
18,
4148,
2932,
15617,
288,
20,
97,
3853,
2773,
18,
2139,
12,
1897,
12,
7094,
20349,
364,
1409,
67,
350,
16,
1409,
2
] |
self.read(name) def guess_type(self, url, strict=1): | self.read(name, strict) def add_type(self, type, ext, strict=True): """Add a mapping between a type and and extension. When the extension is already known, the new type will replace the old one. When the type is already known the extension will be added to the list of known extensions. If strict is true, information will be added to list of standard types, else to the list of non-standard types. """ self.types_map[strict][ext] = type exts = self.types_map_inv[strict].setdefault(type, []) if ext not in exts: exts.append(ext) def guess_type(self, url, strict=True): | def __init__(self, filenames=()): if not inited: init() self.encodings_map = encodings_map.copy() self.suffix_map = suffix_map.copy() self.types_map = types_map.copy() self.common_types = common_types.copy() for name in filenames: self.read(name) | 5ccaf8f1298628bea5a4c7442413f2901914f1bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5ccaf8f1298628bea5a4c7442413f2901914f1bc/mimetypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9066,
33,
1435,
4672,
309,
486,
1208,
329,
30,
1208,
1435,
365,
18,
1331,
369,
899,
67,
1458,
273,
24118,
67,
1458,
18,
3530,
1435,
365,
18,
8477,
67,
1458,
273,
3758,
67,
1458,
18,
3530,
1435,
365,
18,
2352,
67,
1458,
273,
1953,
67,
1458,
18,
3530,
1435,
365,
18,
6054,
67,
2352,
273,
2975,
67,
2352,
18,
3530,
1435,
364,
508,
316,
9066,
30,
365,
18,
896,
12,
529,
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,
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,
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,
9066,
33,
1435,
4672,
309,
486,
1208,
329,
30,
1208,
1435,
365,
18,
1331,
369,
899,
67,
1458,
273,
24118,
67,
1458,
18,
3530,
1435,
365,
18,
8477,
67,
1458,
273,
3758,
67,
1458,
18,
3530,
1435,
365,
18,
2352,
67,
1458,
273,
1953,
67,
1458,
18,
3530,
1435,
365,
18,
6054,
67,
2352,
273,
2975,
67,
2352,
18,
3530,
1435,
364,
508,
316,
9066,
30,
365,
18,
896,
12,
529,
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
] |
raise CompilerNotFound('f90') | raise CompilerNotFound('f77') | def set_exe(exe_key, f77=None, f90=None): cmd = self.executables.get(exe_key, None) if not cmd: return None # Note that we get cmd[0] here if the environment doesn't # have anything set exe_from_environ = getattr(self.command_vars, exe_key) if not exe_from_environ: possibles = [f90, f77] + self.possible_executables else: possibles = [exe_from_environ] + self.possible_executables | 888d6eddcb686d7b4b502b34be35be9acec84f6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/888d6eddcb686d7b4b502b34be35be9acec84f6b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
14880,
12,
14880,
67,
856,
16,
284,
4700,
33,
7036,
16,
284,
9349,
33,
7036,
4672,
1797,
273,
365,
18,
4177,
322,
1538,
18,
588,
12,
14880,
67,
856,
16,
599,
13,
309,
486,
1797,
30,
327,
599,
468,
3609,
716,
732,
336,
1797,
63,
20,
65,
2674,
309,
326,
3330,
3302,
1404,
468,
1240,
6967,
444,
15073,
67,
2080,
67,
28684,
273,
3869,
12,
2890,
18,
3076,
67,
4699,
16,
15073,
67,
856,
13,
309,
486,
15073,
67,
2080,
67,
28684,
30,
949,
6044,
1040,
273,
306,
74,
9349,
16,
284,
4700,
65,
397,
365,
18,
12708,
67,
4177,
322,
1538,
469,
30,
949,
6044,
1040,
273,
306,
14880,
67,
2080,
67,
28684,
65,
397,
365,
18,
12708,
67,
4177,
322,
1538,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
14880,
12,
14880,
67,
856,
16,
284,
4700,
33,
7036,
16,
284,
9349,
33,
7036,
4672,
1797,
273,
365,
18,
4177,
322,
1538,
18,
588,
12,
14880,
67,
856,
16,
599,
13,
309,
486,
1797,
30,
327,
599,
468,
3609,
716,
732,
336,
1797,
63,
20,
65,
2674,
309,
326,
3330,
3302,
1404,
468,
1240,
6967,
444,
15073,
67,
2080,
67,
28684,
273,
3869,
12,
2890,
18,
3076,
67,
4699,
16,
15073,
67,
856,
13,
309,
486,
15073,
67,
2080,
67,
28684,
30,
949,
6044,
1040,
273,
306,
74,
9349,
16,
284,
4700,
65,
397,
365,
18,
12708,
67,
4177,
322,
1538,
469,
30,
949,
6044,
1040,
273,
306,
14880,
67,
2080,
67,
28684,
65,
397,
2
] |
raise etree.ParserError( "No elements found") | raise etree.ParserError('No elements found') | def fragment_fromstring(html, create_parent=False, base_url=None, parser=None, **kw): """ Parses a single HTML element; it is an error if there is more than one element, or if anything but whitespace precedes or follows the element. If create_parent is true (or is a tag name) then a parent node will be created to encapsulate the HTML in a single element. base_url will set the document's base_url attribute (and the tree's docinfo.URL) """ if parser is None: parser = html_parser if create_parent: if not isinstance(create_parent, basestring): create_parent = 'div' return fragment_fromstring('<%s>%s</%s>' % ( create_parent, html, create_parent), parser=parser, base_url=base_url, **kw) elements = fragments_fromstring(html, parser=parser, no_leading_text=True, base_url=base_url, **kw) if not elements: raise etree.ParserError( "No elements found") if len(elements) > 1: raise etree.ParserError( "Multiple elements found (%s)" % ', '.join([_element_name(e) for e in elements])) el = elements[0] if el.tail and el.tail.strip(): raise etree.ParserError( "Element followed by text: %r" % el.tail) el.tail = None return el | ec3013fdafd39099b2c04b21ec7fd0eeea5ac0b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13107/ec3013fdafd39099b2c04b21ec7fd0eeea5ac0b9/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5481,
67,
2080,
1080,
12,
2620,
16,
752,
67,
2938,
33,
8381,
16,
1026,
67,
718,
33,
7036,
16,
2082,
33,
7036,
16,
2826,
9987,
4672,
3536,
2280,
2420,
279,
2202,
3982,
930,
31,
518,
353,
392,
555,
309,
1915,
353,
1898,
2353,
1245,
930,
16,
578,
309,
6967,
1496,
7983,
10575,
281,
578,
13040,
326,
930,
18,
225,
971,
752,
67,
2938,
353,
638,
261,
280,
353,
279,
1047,
508,
13,
1508,
279,
982,
756,
903,
506,
2522,
358,
22106,
6243,
326,
3982,
316,
279,
2202,
930,
18,
225,
1026,
67,
718,
903,
444,
326,
1668,
1807,
1026,
67,
718,
1566,
261,
464,
326,
2151,
1807,
997,
1376,
18,
1785,
13,
3536,
309,
2082,
353,
599,
30,
2082,
273,
1729,
67,
4288,
309,
752,
67,
2938,
30,
309,
486,
1549,
12,
2640,
67,
2938,
16,
10699,
4672,
752,
67,
2938,
273,
296,
2892,
11,
327,
5481,
67,
2080,
1080,
2668,
32,
9,
87,
9822,
87,
1757,
9,
87,
1870,
738,
261,
752,
67,
2938,
16,
1729,
16,
752,
67,
2938,
3631,
2082,
33,
4288,
16,
1026,
67,
718,
33,
1969,
67,
718,
16,
2826,
9987,
13,
2186,
273,
14656,
67,
2080,
1080,
12,
2620,
16,
2082,
33,
4288,
16,
1158,
67,
27200,
67,
955,
33,
5510,
16,
1026,
67,
718,
33,
1969,
67,
718,
16,
2826,
9987,
13,
309,
486,
2186,
30,
1002,
12031,
18,
2678,
668,
2668,
2279,
2186,
1392,
6134,
309,
562,
12,
6274,
13,
405,
404,
30,
1002,
12031,
18,
2678,
668,
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,
5481,
67,
2080,
1080,
12,
2620,
16,
752,
67,
2938,
33,
8381,
16,
1026,
67,
718,
33,
7036,
16,
2082,
33,
7036,
16,
2826,
9987,
4672,
3536,
2280,
2420,
279,
2202,
3982,
930,
31,
518,
353,
392,
555,
309,
1915,
353,
1898,
2353,
1245,
930,
16,
578,
309,
6967,
1496,
7983,
10575,
281,
578,
13040,
326,
930,
18,
225,
971,
752,
67,
2938,
353,
638,
261,
280,
353,
279,
1047,
508,
13,
1508,
279,
982,
756,
903,
506,
2522,
358,
22106,
6243,
326,
3982,
316,
279,
2202,
930,
18,
225,
1026,
67,
718,
903,
444,
326,
1668,
1807,
1026,
67,
718,
1566,
261,
464,
326,
2151,
1807,
997,
1376,
18,
1785,
13,
3536,
309,
2082,
353,
599,
30,
2
] |
if not self._ShouldHandleRequest("/echoheader"): | """The only difference between this function and the EchoHeaderOverride""" """function is in the parameter being passed to the helper function""" return self.EchoHeaderHelper("/echoheader") def EchoHeaderOverride(self): """This handler echoes back the value of a specific request header.""" """The UrlRequest unit tests also execute for ChromeFrame which uses""" """IE to issue HTTP requests using the host network stack.""" """The Accept and Charset tests which expect the server to echo back""" """the corresponding headers fail here as IE returns cached responses""" """The EchoHeaderOverride parameter is an easy way to ensure that IE""" """treats this request as a new request and does not cache it.""" return self.EchoHeaderHelper("/echoheaderoverride") def EchoHeaderHelper(self, echo_header): """This function echoes back the value of the request header passed in.""" if not self._ShouldHandleRequest(echo_header): | def EchoHeader(self): """This handler echoes back the value of a specific request header.""" | eb834fb878a343d3ff67ba087e783a6e796d6fd5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/eb834fb878a343d3ff67ba087e783a6e796d6fd5/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28995,
1864,
12,
2890,
4672,
3536,
2503,
1838,
3376,
281,
1473,
326,
460,
434,
279,
2923,
590,
1446,
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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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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28995,
1864,
12,
2890,
4672,
3536,
2503,
1838,
3376,
281,
1473,
326,
460,
434,
279,
2923,
590,
1446,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
names = [displayName, str(date)] node.AddChildNode(child, names, hasKids) | def _addChildNode(self, node, child, hasKids): displayName = child.getAttributeValue('displayName', default='<Untitled>') date = child.getAttributeValue('date', default='') if date != '': date = date.Format('%B %d, %Y %I:%M %p') names = [displayName, str(date)] node.AddChildNode(child, names, hasKids) | 9287e63e372ccc5efb65d33b97dc49a8f000ba71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9287e63e372ccc5efb65d33b97dc49a8f000ba71/blocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
25550,
12,
2890,
16,
756,
16,
1151,
16,
711,
47,
2232,
4672,
16218,
273,
1151,
18,
588,
14942,
2668,
5417,
461,
2187,
805,
2218,
32,
57,
496,
305,
1259,
1870,
13,
1509,
273,
1151,
18,
588,
14942,
2668,
712,
2187,
805,
2218,
6134,
309,
1509,
480,
875,
30,
1509,
273,
1509,
18,
1630,
29909,
38,
738,
72,
16,
738,
61,
565,
738,
45,
5319,
49,
738,
84,
6134,
1257,
273,
306,
5417,
461,
16,
609,
12,
712,
25887,
756,
18,
986,
25550,
12,
3624,
16,
1257,
16,
711,
47,
2232,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
25550,
12,
2890,
16,
756,
16,
1151,
16,
711,
47,
2232,
4672,
16218,
273,
1151,
18,
588,
14942,
2668,
5417,
461,
2187,
805,
2218,
32,
57,
496,
305,
1259,
1870,
13,
1509,
273,
1151,
18,
588,
14942,
2668,
712,
2187,
805,
2218,
6134,
309,
1509,
480,
875,
30,
1509,
273,
1509,
18,
1630,
29909,
38,
738,
72,
16,
738,
61,
565,
738,
45,
5319,
49,
738,
84,
6134,
1257,
273,
306,
5417,
461,
16,
609,
12,
712,
25887,
756,
18,
986,
25550,
12,
3624,
16,
1257,
16,
711,
47,
2232,
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
] |
|
if i < (self.k0 + 2) or not self.cons(i) or self.cons(i-1) or not self.cons(i-2): | if i == 1: return (not self.cons(0) and self.cons(1)) if i == 0 or not self.cons(i) or self.cons(i-1) or not self.cons(i-2): | def cvc(self, i): """cvc(i) is TRUE <=> i-2,i-1,i has the form consonant - vowel - consonant and also if the second c is not w,x or y. this is used when trying to restore an e at the end of a short e.g. | 8345d263907db865fc1212b587728d28e3c3f5d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11001/8345d263907db865fc1212b587728d28e3c3f5d3/porter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
4227,
12,
2890,
16,
277,
4672,
3536,
71,
4227,
12,
77,
13,
353,
5383,
1648,
34,
277,
17,
22,
16,
77,
17,
21,
16,
77,
711,
326,
646,
356,
30835,
300,
30636,
300,
356,
30835,
471,
2546,
309,
326,
2205,
276,
353,
486,
341,
16,
92,
578,
677,
18,
333,
353,
1399,
1347,
8374,
358,
5217,
392,
425,
622,
326,
679,
434,
279,
3025,
225,
425,
18,
75,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
4227,
12,
2890,
16,
277,
4672,
3536,
71,
4227,
12,
77,
13,
353,
5383,
1648,
34,
277,
17,
22,
16,
77,
17,
21,
16,
77,
711,
326,
646,
356,
30835,
300,
30636,
300,
356,
30835,
471,
2546,
309,
326,
2205,
276,
353,
486,
341,
16,
92,
578,
677,
18,
333,
353,
1399,
1347,
8374,
358,
5217,
392,
425,
622,
326,
679,
434,
279,
3025,
225,
425,
18,
75,
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
] |
Subsets and Splits