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
headlines.extend([ que.question.uniq_name for que in event.game.questionforgame_set.manall() ])
headlines.extend([ que.question.uniq_name for que in event.game.questionforgame_set.all() ])
def show_applied_people(request, eventid, slotted=False, cvsexport=False): event = Event.objects.get(id=eventid) regs = Registration.objects.filter(event=event).order_by(u"player") people = [ reg.player for reg in regs ] people.sort(lambda x,y: cmp(x.surname, y.surname)) headlines = [ u"Příjmení", u"Jméno", u"Přezdívka", u"Telefon", u"Email", u"Rok narození"] + [ que.question.uniq_name for que in event.question.all() ] if event.game is not None: headlines.extend([ que.question.uniq_name for que in event.game.questionforgame_set.manall() ]) if slotted and event.type == "multi": slots = MultiGameSlot.objects.filter(event=event) headlines.extend([ slot.name for slot in slots ]) else: slots=[] cells = [] for player in people: row = [ player.surname, player.name, player.nick] row += [ player.phone, player.user.email, player.year_of_birth] reg = Registration.objects.get(player=player, event=event) for question in [ que.question for que in event.question.all()]: answers = reg.answers.filter(question=question) row += [ u",".join( [ ans.answer for ans in answers ]) ] if event.game is not None: for question in [ que.question for que in event.game.questionforgame_set.all()]: answers = reg.answers.filter(question=question) row += [ ",".join( [ ans.answer for ans in answers ]) ] for slot in slots: game = slot.getGameForPlayer(player) if game: row.append(game.game.name) else: row.append("--nic---") cells.append(row) if cvsexport: cells = [headlines] + cells print cells return HttpResponse("\n".join([",".join([ u'"%s"' % elm for elm in row]) for row in cells ]), mimetype="text/plain") return render_to_response('admin/eventpeople.html', {'menuitems' : createMenuItems(), 'title' : u"Lidé přihlášení na %s" % event.name, 'user' : request.user, 'cells' : cells, 'headers' : headlines, 'event' : event}, )
cab65551718ccd37eb97e28a1568bbc2007db812 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7994/cab65551718ccd37eb97e28a1568bbc2007db812/events_views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 438, 3110, 67, 28035, 12, 2293, 16, 871, 350, 16, 4694, 2344, 33, 8381, 16, 8951, 20909, 655, 33, 8381, 4672, 871, 273, 2587, 18, 6911, 18, 588, 12, 350, 33, 2575, 350, 13, 17518, 273, 19304, 18, 6911, 18, 2188, 12, 2575, 33, 2575, 2934, 1019, 67, 1637, 12, 89, 6, 14872, 7923, 16951, 273, 306, 960, 18, 14872, 364, 960, 316, 17518, 308, 16951, 18, 3804, 12, 14661, 619, 16, 93, 30, 9411, 12, 92, 18, 87, 12866, 16, 677, 18, 87, 12866, 3719, 225, 910, 3548, 273, 306, 582, 6, 52, 134, 252, 132, 260, 78, 27617, 132, 260, 3113, 582, 6, 46, 81, 132, 107, 2135, 3113, 582, 6, 52, 134, 252, 6664, 72, 132, 260, 90, 7282, 3113, 582, 6, 56, 6516, 74, 265, 3113, 582, 6, 4134, 3113, 582, 6, 54, 601, 290, 14349, 8396, 132, 260, 11929, 397, 306, 6597, 18, 4173, 18, 31649, 67, 529, 364, 6597, 316, 871, 18, 4173, 18, 454, 1435, 308, 309, 871, 18, 13957, 353, 486, 599, 30, 910, 3548, 18, 14313, 3816, 6597, 18, 4173, 18, 31649, 67, 529, 364, 6597, 316, 871, 18, 13957, 18, 4173, 1884, 13957, 67, 542, 18, 454, 1435, 308, 13, 309, 4694, 2344, 471, 871, 18, 723, 422, 315, 7027, 6877, 12169, 273, 5991, 12496, 8764, 18, 6911, 18, 2188, 12, 2575, 33, 2575, 13, 910, 3548, 18, 14313, 3816, 4694, 18, 529, 364, 4694, 316, 12169, 308, 13, 469, 30, 12169, 33, 8526, 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, 2405, 67, 438, 3110, 67, 28035, 12, 2293, 16, 871, 350, 16, 4694, 2344, 33, 8381, 16, 8951, 20909, 655, 33, 8381, 4672, 871, 273, 2587, 18, 6911, 18, 588, 12, 350, 33, 2575, 350, 13, 17518, 273, 19304, 18, 6911, 18, 2188, 12, 2575, 33, 2575, 2934, 1019, 67, 1637, 12, 89, 6, 14872, 7923, 16951, 273, 306, 960, 18, 14872, 364, 960, 316, 17518, 308, 16951, 18, 3804, 12, 14661, 619, 16, 93, 30, 9411, 12, 92, 18, 87, 12866, 16, 677, 18, 87, 12866, 3719, 225, 910, 3548, 273, 306, 582, 6, 52, 134, 252, 132, 260, 78, 27617, 132, 260, 3113, 582, 6, 46, 81, 132, 107, 2135, 3113, 582, 6, 52, 134, 252, 2 ]
seg_str = seg_str.strip() for var in vars_dict: regex = re.compile("`"+var) replacement = vars_dict.get(var)[0] seg_str = regex.sub(replacement,seg_str)
pp_seg_str = pp_seg_str.strip() pp_seg_str_lines = pp_seg_str.split("\n") new_pp_seg_str_lines = [] pp_print_regex = re.compile("print\(") for line in pp_seg_str_lines: if not pp_print_regex.search(line): i = 0 for pp_var in pp_vars_dict: pp_regex = re.compile("`"+pp_var) pp_replacement = pp_vars_dict.get(pp_var)[0] line = pp_regex.sub(pp_replacement, line) new_pp_seg_str_lines.append(line) pp_seg_str = "\n".join(new_pp_seg_str_lines)
def parsePreSeg(seg_str,vars_dict): # Strip whitespace seg_str = seg_str.strip() # Replace any defined variables using regex search & replace for var in vars_dict: regex = re.compile("`"+var) replacement = vars_dict.get(var)[0] seg_str = regex.sub(replacement,seg_str) # Get rid of carriage return regex = re.compile(".\n") regex2 = re.compile("\r") seg_str = regex.sub("\n",seg_str) seg_str = regex2.sub("",seg_str) # Replace "print(" with "pbuffer(" regex = re.compile("print\(") seg_str = regex.sub("pbuffer(False,",seg_str) # Execute the segment try: exec(seg_str) except: print "Error executing the following code:\n" + seg_str sys.exit(1)
bc7caa6020ce9c0d3efd9e0dbbc8e121c4373dda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3352/bc7caa6020ce9c0d3efd9e0dbbc8e121c4373dda/preprocessor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1386, 3289, 12, 5680, 67, 701, 16, 4699, 67, 1576, 4672, 225, 468, 15589, 7983, 2291, 67, 701, 273, 2291, 67, 701, 18, 6406, 1435, 225, 468, 6910, 1281, 2553, 3152, 1450, 3936, 1623, 473, 1453, 364, 569, 316, 4153, 67, 1576, 30, 3936, 273, 283, 18, 11100, 2932, 17039, 15, 1401, 13, 6060, 273, 4153, 67, 1576, 18, 588, 12, 1401, 25146, 20, 65, 2291, 67, 701, 273, 3936, 18, 1717, 12, 24394, 16, 5680, 67, 701, 13, 225, 468, 968, 10911, 434, 5926, 27935, 327, 3936, 273, 283, 18, 11100, 2932, 8403, 82, 7923, 3936, 22, 273, 283, 18, 11100, 31458, 86, 7923, 2291, 67, 701, 273, 3936, 18, 1717, 31458, 82, 3113, 5680, 67, 701, 13, 2291, 67, 701, 273, 3936, 22, 18, 1717, 2932, 3113, 5680, 67, 701, 13, 225, 468, 6910, 315, 1188, 2932, 598, 315, 84, 4106, 2932, 3936, 273, 283, 18, 11100, 2932, 1188, 64, 2932, 13, 2291, 67, 701, 273, 3936, 18, 1717, 2932, 84, 4106, 12, 8381, 16, 3113, 5680, 67, 701, 13, 225, 468, 7903, 326, 3267, 775, 30, 1196, 12, 5680, 67, 701, 13, 1335, 30, 1172, 315, 668, 11274, 326, 3751, 981, 5581, 82, 6, 397, 2291, 67, 701, 2589, 18, 8593, 12, 21, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1386, 3289, 12, 5680, 67, 701, 16, 4699, 67, 1576, 4672, 225, 468, 15589, 7983, 2291, 67, 701, 273, 2291, 67, 701, 18, 6406, 1435, 225, 468, 6910, 1281, 2553, 3152, 1450, 3936, 1623, 473, 1453, 364, 569, 316, 4153, 67, 1576, 30, 3936, 273, 283, 18, 11100, 2932, 17039, 15, 1401, 13, 6060, 273, 4153, 67, 1576, 18, 588, 12, 1401, 25146, 20, 65, 2291, 67, 701, 273, 3936, 18, 1717, 12, 24394, 16, 5680, 67, 701, 13, 225, 468, 968, 10911, 434, 5926, 27935, 327, 3936, 273, 283, 18, 11100, 2932, 8403, 82, 7923, 3936, 22, 273, 283, 18, 11100, 31458, 86, 7923, 2291, 67, 701, 273, 3936, 18, 1717, 31458, 82, 3113, 5680, 67, 2 ]
author = sanitize_file_name(authors.split(',')[0][:self.PATH_LIMIT]).decode(filesystem_encoding) title = sanitize_file_name(self.title(id, index_is_id=True)[:self.PATH_LIMIT]).decode(filesystem_encoding)
author = sanitize_file_name(authors.split(',')[0][:self.PATH_LIMIT]).decode(filesystem_encoding, 'ignore') title = sanitize_file_name(self.title(id, index_is_id=True)[:self.PATH_LIMIT]).decode(filesystem_encoding, 'ignore')
def construct_path_name(self, id): ''' Construct the directory name for this book based on its metadata. ''' authors = self.authors(id, index_is_id=True) if not authors: authors = _('Unknown') author = sanitize_file_name(authors.split(',')[0][:self.PATH_LIMIT]).decode(filesystem_encoding) title = sanitize_file_name(self.title(id, index_is_id=True)[:self.PATH_LIMIT]).decode(filesystem_encoding) path = author + '/' + title + ' (%d)'%id return path
39e94cdc1118237941ec8b128658e4a5b2c74614 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/39e94cdc1118237941ec8b128658e4a5b2c74614/database2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4872, 67, 803, 67, 529, 12, 2890, 16, 612, 4672, 9163, 14291, 326, 1867, 508, 364, 333, 6978, 2511, 603, 2097, 1982, 18, 9163, 14494, 273, 365, 18, 19368, 12, 350, 16, 770, 67, 291, 67, 350, 33, 5510, 13, 309, 486, 14494, 30, 14494, 273, 389, 2668, 4874, 6134, 2869, 273, 8881, 67, 768, 67, 529, 12, 19368, 18, 4939, 12, 2187, 6134, 63, 20, 6362, 30, 2890, 18, 4211, 67, 8283, 65, 2934, 3922, 12, 17846, 67, 5999, 16, 296, 6185, 6134, 2077, 225, 273, 8881, 67, 768, 67, 529, 12, 2890, 18, 2649, 12, 350, 16, 770, 67, 291, 67, 350, 33, 5510, 13, 10531, 2890, 18, 4211, 67, 8283, 65, 2934, 3922, 12, 17846, 67, 5999, 16, 296, 6185, 6134, 589, 282, 273, 2869, 397, 2023, 397, 2077, 397, 296, 6142, 72, 2506, 9, 350, 327, 589, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4872, 67, 803, 67, 529, 12, 2890, 16, 612, 4672, 9163, 14291, 326, 1867, 508, 364, 333, 6978, 2511, 603, 2097, 1982, 18, 9163, 14494, 273, 365, 18, 19368, 12, 350, 16, 770, 67, 291, 67, 350, 33, 5510, 13, 309, 486, 14494, 30, 14494, 273, 389, 2668, 4874, 6134, 2869, 273, 8881, 67, 768, 67, 529, 12, 19368, 18, 4939, 12, 2187, 6134, 63, 20, 6362, 30, 2890, 18, 4211, 67, 8283, 65, 2934, 3922, 12, 17846, 67, 5999, 16, 296, 6185, 6134, 2077, 225, 273, 8881, 67, 768, 67, 529, 12, 2890, 18, 2649, 12, 350, 16, 770, 67, 291, 67, 350, 33, 5510, 13, 10531, 2890, 18, 4211, 67, 8283, 65, 2934, 3922, 12, 17846, 2 ]
plain_href = req.href.browser(node.path, rev=use_rev,
plain_href = req.href.browser(node.path, rev=rev,
def get_mime_type(content=None): mime_type = node.content_type if not mime_type or mime_type == 'application/octet-stream': mime_type = get_mimetype(node.name, content) or \ mime_type or 'text/plain' return mime_type
2520034890636ae992a119fd22202c074b4735a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/2520034890636ae992a119fd22202c074b4735a7/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11757, 67, 723, 12, 1745, 33, 7036, 4672, 4892, 67, 723, 273, 756, 18, 1745, 67, 723, 309, 486, 4892, 67, 723, 578, 4892, 67, 723, 422, 296, 3685, 19, 17909, 17, 3256, 4278, 4892, 67, 723, 273, 336, 67, 22571, 12, 2159, 18, 529, 16, 913, 13, 578, 521, 4892, 67, 723, 578, 296, 955, 19, 7446, 11, 327, 4892, 67, 723, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 4672, 4892, 67, 723, 273, 756, 18, 1745, 67, 723, 309, 486, 4892, 67, 723, 578, 4892, 67, 723, 422, 296, 3685, 19, 17909, 17, 3256, 4278, 4892, 67, 723, 273, 336, 67, 22571, 12, 2159, 18, 529, 16, 913, 13, 578, 521, 4892, 67, 723, 578, 296, 955, 19, 7446, 11, 327, 4892, 67, 723, 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 ]
self.setVolume('outspdif', -a0)
self.setVolume('outspdif', a0)
def setVolumeSPDIFOut(self,a0): self.setVolume('outspdif', -a0)
4e960f4e5280d7ae4d0e3f99bb73ac0fdab4c9e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11526/4e960f4e5280d7ae4d0e3f99bb73ac0fdab4c9e8/mixer_phase24.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 4545, 3118, 2565, 42, 1182, 12, 2890, 16, 69, 20, 4672, 365, 18, 542, 4545, 2668, 659, 1752, 11593, 2187, 300, 69, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 4545, 3118, 2565, 42, 1182, 12, 2890, 16, 69, 20, 4672, 365, 18, 542, 4545, 2668, 659, 1752, 11593, 2187, 300, 69, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
c.drawImage('pythonpowered.gif', 3*inch, 1.2*inch, w, h, mask=myMask)
c.drawImage(gif, 3*inch, 1.2*inch, w, h, mask=myMask)
def makeDocument(filename, pageCallBack=None): #the extra arg is a hack added later, so other #tests can get hold of the canvas just before it is #saved global titlelist, closeit titlelist = [] closeit = 0 c = canvas.Canvas(filename) c.setPageCompression(0) c.setPageCallBack(pageCallBack) framePageForm(c) # define the frame form c.showOutline() framePage(c, 'PDFgen graphics API test script') makesubsection(c, "PDFgen", 10*inch) t = c.beginText(inch, 10*inch) t.setFont('Times-Roman', 10) drawCrossHairs(c, t.getX(),t.getY()) t.textLines("""
b4dc02db9b5691ba384e69ee2eb2525c4c1d354f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b4dc02db9b5691ba384e69ee2eb2525c4c1d354f/test_pdfgen_general.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2519, 12, 3459, 16, 1363, 30008, 33, 7036, 4672, 468, 5787, 2870, 1501, 353, 279, 11769, 3096, 5137, 16, 1427, 1308, 468, 16341, 848, 336, 6887, 434, 326, 5953, 2537, 1865, 518, 353, 468, 14077, 2552, 268, 305, 80, 5449, 16, 1746, 305, 268, 305, 80, 5449, 273, 5378, 1746, 305, 273, 374, 225, 276, 273, 5953, 18, 12971, 12, 3459, 13, 276, 18, 542, 1964, 15270, 12, 20, 13, 276, 18, 542, 1964, 30008, 12, 2433, 30008, 13, 2623, 1964, 1204, 12, 71, 13, 468, 4426, 326, 2623, 646, 276, 18, 4500, 21805, 1435, 225, 2623, 1964, 12, 71, 16, 296, 17508, 4507, 17313, 1491, 1842, 2728, 6134, 7297, 373, 3464, 12, 71, 16, 315, 17508, 4507, 3113, 1728, 14, 267, 343, 13, 225, 268, 273, 276, 18, 10086, 1528, 12, 267, 343, 16, 1728, 14, 267, 343, 13, 268, 18, 542, 5711, 2668, 10694, 17, 54, 362, 304, 2187, 1728, 13, 3724, 13941, 44, 1826, 87, 12, 71, 16, 268, 18, 588, 60, 9334, 88, 18, 588, 61, 10756, 268, 18, 955, 5763, 2932, 3660, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2519, 12, 3459, 16, 1363, 30008, 33, 7036, 4672, 468, 5787, 2870, 1501, 353, 279, 11769, 3096, 5137, 16, 1427, 1308, 468, 16341, 848, 336, 6887, 434, 326, 5953, 2537, 1865, 518, 353, 468, 14077, 2552, 268, 305, 80, 5449, 16, 1746, 305, 268, 305, 80, 5449, 273, 5378, 1746, 305, 273, 374, 225, 276, 273, 5953, 18, 12971, 12, 3459, 13, 276, 18, 542, 1964, 15270, 12, 20, 13, 276, 18, 542, 1964, 30008, 12, 2433, 30008, 13, 2623, 1964, 1204, 12, 71, 13, 468, 4426, 326, 2623, 646, 276, 18, 4500, 21805, 1435, 225, 2623, 1964, 12, 71, 16, 296, 17508, 4507, 17313, 1491, 1842, 2728, 6134, 7297, 373, 3464, 12, 71, 16, 315, 17508, 2 ]
parent = elementsToTreeItems[parent] if parent else self.treeRoot item = self.tree.AppendItem(parent, element.text)
if parent: parent = elementsToTreeItems.get(parent) item = self.tree.AppendItem(parent or self.treeRoot, element.text)
def updateFilter(self, newElementType=False): # If this is a new element type, use the element nearest the cursor. # Otherwise, use the currently selected element. defaultElement = self._initialElement if newElementType else self.tree.GetItemPyData(self.tree.GetSelection()) # Clear the tree. self.tree.DeleteChildren(self.treeRoot)
7ec157fb17fb043c15a2071861f60ec4a01386cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9340/7ec157fb17fb043c15a2071861f60ec4a01386cb/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1586, 12, 2890, 16, 394, 17481, 33, 8381, 4672, 468, 971, 333, 353, 279, 394, 930, 618, 16, 999, 326, 930, 11431, 326, 3347, 18, 468, 5272, 16, 999, 326, 4551, 3170, 930, 18, 805, 1046, 273, 365, 6315, 6769, 1046, 309, 394, 17481, 469, 365, 18, 3413, 18, 967, 1180, 9413, 751, 12, 2890, 18, 3413, 18, 967, 6233, 10756, 468, 10121, 326, 2151, 18, 365, 18, 3413, 18, 2613, 4212, 12, 2890, 18, 3413, 2375, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1586, 12, 2890, 16, 394, 17481, 33, 8381, 4672, 468, 971, 333, 353, 279, 394, 930, 618, 16, 999, 326, 930, 11431, 326, 3347, 18, 468, 5272, 16, 999, 326, 4551, 3170, 930, 18, 805, 1046, 273, 365, 6315, 6769, 1046, 309, 394, 17481, 469, 365, 18, 3413, 18, 967, 1180, 9413, 751, 12, 2890, 18, 3413, 18, 967, 6233, 10756, 468, 10121, 326, 2151, 18, 365, 18, 3413, 18, 2613, 4212, 12, 2890, 18, 3413, 2375, 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 ]
self.show(name, title, text)
self.show(name, title, text, edit=0)
def do_edit(self):
1a24a0c287de2f2aca6781bfdb3a921702e881ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1a24a0c287de2f2aca6781bfdb3a921702e881ff/faqmain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 4619, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 4619, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
parts = [] for content, attrs in records: attrlist = [] for key, value in attrs.iteritems(): attrlist.append('%s="%s"' % (key, value)) attrstr = ' '.join(attrlist) record_str = ('<record %s>' '<content encoding="base64binary">%s</content>' '</record>') % (attrstr, base64.encodestring(content)) parts.append(record_str)
parts = [self.generateFeedRecord(attrs, None, content) for content, attrs in records]
def sendMultiContentFeed(self, records, feed_type='incremental'): """Sends a content feed to the GSA, containing multiple records.
34af3fc9369639f45a1144d4c6264b77845a50ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6393/34af3fc9369639f45a1144d4c6264b77845a50ed/connectormanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 5002, 1350, 8141, 12, 2890, 16, 3853, 16, 4746, 67, 723, 2218, 15016, 287, 11, 4672, 3536, 10501, 279, 913, 4746, 358, 326, 611, 5233, 16, 4191, 3229, 3853, 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,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, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 5002, 1350, 8141, 12, 2890, 16, 3853, 16, 4746, 67, 723, 2218, 15016, 287, 11, 4672, 3536, 10501, 279, 913, 4746, 358, 326, 611, 5233, 16, 4191, 3229, 3853, 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 ]
if (self.use_proxy): cnxn_point = self.proxy
if (self.use_proxy): cnxn_point = self.proxy
def make_http_connection(self):
2fe74a95373a426e5d7017f280b8f32e8a3fcd03 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1098/2fe74a95373a426e5d7017f280b8f32e8a3fcd03/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2505, 67, 4071, 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, 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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, 1221, 67, 2505, 67, 4071, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print r
def __call(self, name, args, kw, ns = None, sa = None, hd = None, ma = None):
065e7c22efd194cd6a17d02522ce0bffa825769d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/065e7c22efd194cd6a17d02522ce0bffa825769d/Client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 12, 2890, 16, 508, 16, 833, 16, 5323, 16, 3153, 273, 599, 16, 7864, 273, 599, 16, 15921, 273, 599, 16, 10843, 273, 599, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 12, 2890, 16, 508, 16, 833, 16, 5323, 16, 3153, 273, 599, 16, 7864, 273, 599, 16, 15921, 273, 599, 16, 10843, 273, 599, 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 ]
condition = Condition()
fromGtkThread = type(currentThread()) == _MainThread if not fromGtkThread: condition = Condition()
def __init__ (self, gamemodel): gobject.GObject.__init__(self) # # Initialize tab label # tabhbox = gtk.HBox() tabhbox.set_spacing(4) tabhbox.pack_start(createImage(light_off), expand=False) close_button = gtk.Button() close_button.set_property("can-focus", False) close_button.add(createImage(gtk_close)) close_button.set_relief(gtk.RELIEF_NONE) close_button.set_size_request(19,18) close_button.connect("clicked", lambda w: self.emit("closed")) tabhbox.pack_end(close_button, expand=False) tabhbox.pack_end(gtk.Label("")) tabhbox.show_all() # Gtk doesn't show tab labels when the rest is # show_all'ed # # Initialize center # mvbox = gtk.VBox() headchild = gtk.HSeparator() global head2mainDic head2mainDic[headchild] = self align = createAlignment (3, 2, 4, 2) hbox = gtk.HBox() hbox.set_spacing(4) lvbox = gtk.VBox() lvbox.set_spacing(4) # # Initialize left center - clock and board # ccalign = createAlignment(0,0,0,0) cclock = ChessClock() ccalign.add(cclock) ccalign.set_size_request(-1, 32) board = BoardControl(gamemodel) lvbox.pack_start(ccalign, expand=False) lvbox.pack_start(board) # # Initialize right box # rvbox = gtk.VBox() rvbox.set_spacing(4) top_align = createAlignment(0,0,0,0) top_align.set_size_request(-1, 32) side_top_hbox = gtk.HBox() toggle_combox = ToggleComboBox() side_closebut = gtk.Button() side_closebut.add(createImage(gtk_close20)) side_closebut.connect("clicked", lambda w: show_side_panel(False)) side_closebut.set_relief(gtk.RELIEF_NONE) side_top_hbox.pack_start(toggle_combox) side_top_hbox.pack_start(side_closebut, expand=False) top_align.add(side_top_hbox) side_book = gtk.Notebook() side_book.set_show_border(False) side_book.set_show_tabs(False) rvbox.pack_start(top_align, expand=False) rvbox.pack_start(side_book) hbox.pack_start(lvbox) hbox.pack_start(rvbox, expand=False) align.add(hbox) # # Initialize statusbar # stat_hbox = gtk.HBox() page_vbox = gtk.VBox() page_vbox.set_spacing(1) sep = gtk.HSeparator() page_hbox = gtk.HBox() startbut = gtk.Button() startbut.add(createImage(media_previous)) startbut.set_relief(gtk.RELIEF_NONE) backbut = gtk.Button() backbut.add(createImage(media_rewind)) backbut.set_relief(gtk.RELIEF_NONE) forwbut = gtk.Button() forwbut.add(createImage(media_forward)) forwbut.set_relief(gtk.RELIEF_NONE) endbut = gtk.Button() endbut.add(createImage(media_next)) endbut.set_relief(gtk.RELIEF_NONE) startbut.connect("clicked", lambda w: board.view.showFirst()) backbut.connect("clicked", lambda w: board.view.showPrevious()) forwbut.connect("clicked", lambda w: board.view.showNext()) endbut.connect("clicked", lambda w: board.view.showLast()) page_hbox.pack_start(startbut) page_hbox.pack_start(backbut) page_hbox.pack_start(forwbut) page_hbox.pack_start(endbut) page_vbox.pack_start(sep) page_vbox.pack_start(page_hbox) statusbar = gtk.Statusbar() stat_hbox.pack_start(page_vbox, expand=False) stat_hbox.pack_start(statusbar) mvbox.pack_start(align) mvbox.pack_start(stat_hbox, expand=False) # # Name most common variables # self.widgets = w = {} w["board"] = board w["ccalign"] = ccalign w["cclock"] = cclock w["sidepanel"] = rvbox w["statusbar"] = statusbar w["tabhbox"] = tabhbox w["close_button"] = close_button w["mvbox"] = mvbox w["headchild"] = headchild w["tabhbox"] = tabhbox # # Add sidepanels # condition = Condition() def func (): start = 0 path = prefix("sidepanel") pf = "Panel.py" panels = [f[:-3] for f in os.listdir(path) if f.endswith(pf)] panels = \ [imp.load_module(f,*imp.find_module(f,[path])) for f in panels] for panel in panels: toggle_combox.addItem(panel.__title__) s = panel.Sidepanel() num = side_book.append_page(s.load(self)) if hasattr(panel, "__active__") and panel.__active__: start = num toggle_combox.connect("changed", lambda w,i: side_book.set_current_page(i)) side_book.set_current_page(start) toggle_combox.active = start condition.acquire() condition.notify() condition.release() gobject.idle_add(func, priority=gobject.PRIORITY_HIGH) condition.acquire() condition.wait()
ffaca10d02791d7862dda229bf9e6fc663b2f4a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/ffaca10d02791d7862dda229bf9e6fc663b2f4a2/gamewidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 7920, 2284, 4672, 314, 1612, 18, 43, 921, 16186, 2738, 972, 12, 2890, 13, 225, 468, 468, 9190, 3246, 1433, 468, 225, 3246, 76, 2147, 273, 22718, 18, 44, 3514, 1435, 3246, 76, 2147, 18, 542, 67, 14080, 12, 24, 13, 3246, 76, 2147, 18, 2920, 67, 1937, 12, 2640, 2040, 12, 5099, 67, 3674, 3631, 4542, 33, 8381, 13, 225, 1746, 67, 5391, 273, 22718, 18, 3616, 1435, 1746, 67, 5391, 18, 542, 67, 4468, 2932, 4169, 17, 13923, 3113, 1083, 13, 1746, 67, 5391, 18, 1289, 12, 2640, 2040, 12, 4521, 79, 67, 4412, 3719, 1746, 67, 5391, 18, 542, 67, 266, 549, 10241, 12, 4521, 79, 18, 862, 2053, 26897, 67, 9826, 13, 1746, 67, 5391, 18, 542, 67, 1467, 67, 2293, 12, 3657, 16, 2643, 13, 1746, 67, 5391, 18, 3612, 2932, 7475, 329, 3113, 3195, 341, 30, 365, 18, 18356, 2932, 12204, 6, 3719, 225, 3246, 76, 2147, 18, 2920, 67, 409, 12, 4412, 67, 5391, 16, 4542, 33, 8381, 13, 3246, 76, 2147, 18, 2920, 67, 409, 12, 4521, 79, 18, 2224, 2932, 6, 3719, 3246, 76, 2147, 18, 4500, 67, 454, 1435, 468, 22132, 3302, 1404, 2405, 3246, 3249, 1347, 326, 3127, 353, 468, 2405, 67, 454, 11, 329, 225, 468, 468, 9190, 4617, 468, 225, 7701, 2147, 273, 22718, 18, 58, 3514, 1435, 910, 3624, 273, 22718, 18, 44, 6581, 1435, 2552, 910, 22, 5254, 40, 335, 910, 22, 5254, 40, 335, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 7920, 2284, 4672, 314, 1612, 18, 43, 921, 16186, 2738, 972, 12, 2890, 13, 225, 468, 468, 9190, 3246, 1433, 468, 225, 3246, 76, 2147, 273, 22718, 18, 44, 3514, 1435, 3246, 76, 2147, 18, 542, 67, 14080, 12, 24, 13, 3246, 76, 2147, 18, 2920, 67, 1937, 12, 2640, 2040, 12, 5099, 67, 3674, 3631, 4542, 33, 8381, 13, 225, 1746, 67, 5391, 273, 22718, 18, 3616, 1435, 1746, 67, 5391, 18, 542, 67, 4468, 2932, 4169, 17, 13923, 3113, 1083, 13, 1746, 67, 5391, 18, 1289, 12, 2640, 2040, 12, 4521, 79, 67, 4412, 3719, 1746, 67, 5391, 18, 542, 67, 266, 549, 10241, 12, 4521, 79, 18, 862, 2053, 2 ]
def fl_set_chart_lcolor(ob, lcol): """ fl_set_chart_lcolor(ob, lcol) """ _fl_set_chart_lcolor(ob, lcol) _fl_set_chart_baseline = cfuncproto(so_libforms, "fl_set_chart_baseline", None, [cty.POINTER(FL_OBJECT), cty.c_int],
def fl_set_chart_lcolor(pObject, lcol): """ fl_set_chart_lcolor(pObject, lcol) """ _fl_set_chart_lcolor(pObject, lcol) _fl_set_chart_baseline = cfuncproto(so_libforms, "fl_set_chart_baseline", None, [cty.POINTER(FL_OBJECT), cty.c_int],
def fl_set_chart_lcolor(ob, lcol): """ fl_set_chart_lcolor(ob, lcol) """ _fl_set_chart_lcolor(ob, lcol)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 11563, 67, 80, 3266, 12, 947, 16, 328, 1293, 4672, 3536, 1183, 67, 542, 67, 11563, 67, 80, 3266, 12, 947, 16, 328, 1293, 13, 3536, 225, 389, 2242, 67, 542, 67, 11563, 67, 80, 3266, 12, 947, 16, 328, 1293, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
entryDate = entry.getDate() if not entry.isSnapshotIncrement(): entryDate = self._getFirstBackupAfterDate(entry.getDate())
def getDirEntries(self): """ returns dictionary of dir entries, keyed by dir name """ entriesDict = {}
d700d883f756d8320453492b61364b69cf6919ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2223/d700d883f756d8320453492b61364b69cf6919ad/librdiff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26505, 5400, 12, 2890, 4672, 3536, 1135, 3880, 434, 1577, 3222, 16, 17408, 635, 1577, 508, 3536, 3222, 5014, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26505, 5400, 12, 2890, 4672, 3536, 1135, 3880, 434, 1577, 3222, 16, 17408, 635, 1577, 508, 3536, 3222, 5014, 273, 2618, 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 ]
self.ElemInfoSolid['fptrBmatrix'] = lm3d.bmatrixn self.ElemInfoSolid['fptrGetShape'] = lm3d.getshapn
self.elemInfoSolid['fptrBmatrix'] = lm3d.bmatrixn self.elemInfoSolid['fptrGetShape'] = lm3d.getshapn
def getdef(self, elemTypeInt, quadratureOrderInt): """Gets dimension and quadrature info, depending on the global quadrature order setting."""
434cb9a616d7418807b0ac6af3c81881e5d8d66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/434cb9a616d7418807b0ac6af3c81881e5d8d66c/ElemDefSolid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 536, 12, 2890, 16, 3659, 559, 1702, 16, 9474, 86, 1231, 2448, 1702, 4672, 3536, 3002, 4968, 471, 9474, 86, 1231, 1123, 16, 8353, 603, 326, 2552, 9474, 86, 1231, 1353, 3637, 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, 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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 ]
mx[i] = data.getFloat64() my[i] = data.getFloat64()
if (mode == MODE_4P): mx[i] = data.getFloat64() my[i] = data.getFloat64() elif (mode==MODE_2P): mx[3] = mx[2] = data.getFloat64() my[3] = my[2] = data.getFloat64()
def setOpponentMove(data, sender=0): global mx, my mx[i] = data.getFloat64() my[i] = data.getFloat64()
73d04275d5aecffbeaa4958b270fc22e07a236dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12834/73d04275d5aecffbeaa4958b270fc22e07a236dc/kickern.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3817, 1029, 7607, 12, 892, 16, 5793, 33, 20, 4672, 2552, 7938, 16, 3399, 309, 261, 3188, 422, 11741, 67, 24, 52, 4672, 7938, 63, 77, 65, 273, 501, 18, 588, 4723, 1105, 1435, 3399, 63, 77, 65, 273, 501, 18, 588, 4723, 1105, 1435, 1327, 261, 3188, 631, 7038, 67, 22, 52, 4672, 7938, 63, 23, 65, 273, 7938, 63, 22, 65, 273, 501, 18, 588, 4723, 1105, 1435, 3399, 63, 23, 65, 273, 3399, 63, 22, 65, 273, 501, 18, 588, 4723, 1105, 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, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3817, 1029, 7607, 12, 892, 16, 5793, 33, 20, 4672, 2552, 7938, 16, 3399, 309, 261, 3188, 422, 11741, 67, 24, 52, 4672, 7938, 63, 77, 65, 273, 501, 18, 588, 4723, 1105, 1435, 3399, 63, 77, 65, 273, 501, 18, 588, 4723, 1105, 1435, 1327, 261, 3188, 631, 7038, 67, 22, 52, 4672, 7938, 63, 23, 65, 273, 7938, 63, 22, 65, 273, 501, 18, 588, 4723, 1105, 1435, 3399, 63, 23, 65, 273, 3399, 63, 22, 65, 273, 501, 18, 588, 4723, 1105, 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 ]
if self.bCreating: return 0
if self.bCreating: return 0
def NeedRecreateWindow(self): if self.bCreating: return 0 try: cb = win32ui.GetMainFrame().GetControlBar(ID_DOCKED_INTERACTIVE_CONTROLBAR) return not cb.IsWindowVisible() except win32ui.error: return 0 # We are dieing!
08bc97485c777d09802af59a0e004dba1a41d34a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/08bc97485c777d09802af59a0e004dba1a41d34a/interact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12324, 426, 2640, 3829, 12, 2890, 4672, 309, 365, 18, 70, 11092, 30, 327, 374, 775, 30, 2875, 273, 5657, 1578, 4881, 18, 967, 6376, 3219, 7675, 967, 3367, 5190, 12, 734, 67, 3191, 3507, 2056, 67, 9125, 13301, 67, 6067, 1457, 12995, 985, 13, 327, 486, 2875, 18, 2520, 3829, 6207, 1435, 1335, 5657, 1578, 4881, 18, 1636, 30, 327, 374, 468, 1660, 854, 10387, 310, 5, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12324, 426, 2640, 3829, 12, 2890, 4672, 309, 365, 18, 70, 11092, 30, 327, 374, 775, 30, 2875, 273, 5657, 1578, 4881, 18, 967, 6376, 3219, 7675, 967, 3367, 5190, 12, 734, 67, 3191, 3507, 2056, 67, 9125, 13301, 67, 6067, 1457, 12995, 985, 13, 327, 486, 2875, 18, 2520, 3829, 6207, 1435, 1335, 5657, 1578, 4881, 18, 1636, 30, 327, 374, 468, 1660, 854, 10387, 310, 5, 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 ]
try: raise except (rpki.async.ExitNow, SystemExit): raise except Exception, edata:
etype, edata = sys.exc_info()[:2] if etype in (SystemExit, rpki.async.ExitNow): raise edata else:
def handle_error(self): http_stream.handle_error(self) self.queue.detach(self) try: raise except (rpki.async.ExitNow, SystemExit): raise except Exception, edata: self.queue.return_result(edata)
e43c0c6116f9131646b5df0aa1ec03d6478ef9cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/119/e43c0c6116f9131646b5df0aa1ec03d6478ef9cc/https.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1636, 12, 2890, 4672, 1062, 67, 3256, 18, 4110, 67, 1636, 12, 2890, 13, 365, 18, 4000, 18, 8238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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, 1640, 67, 1636, 12, 2890, 4672, 1062, 67, 3256, 18, 4110, 67, 1636, 12, 2890, 13, 365, 18, 4000, 18, 8238, 497, 12, 2890, 13, 24700, 16, 1675, 396, 273, 2589, 18, 10075, 67, 1376, 1435, 10531, 22, 65, 309, 24700, 316, 261, 22729, 16, 436, 5465, 77, 18, 3810, 18, 6767, 8674, 4672, 1002, 1675, 396, 469, 30, 365, 18, 4000, 18, 2463, 67, 2088, 12, 329, 396, 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 create_plot(tempo_results, xkey, ykey, postfit=True, prefit=False, \ interactive=True, mark_peri=False, show_legend=True):
def create_plot():
def create_plot(tempo_results, xkey, ykey, postfit=True, prefit=False, \ interactive=True, mark_peri=False, show_legend=True): # Set up the plot fig = plt.figure(figsize=(11,8.5)) plot_data(tempo_results, xkey, ykey, postfit, prefit, \ interactive, mark_peri, show_legend) # Register event callbacks function and show the plot cid_keypress = fig.canvas.mpl_connect('key_press_event', keypress) cid_pick = fig.canvas.mpl_connect('pick_event', pick) if interactive: plt.ion() plt.show() else: # Save figure and quit savefigure() quit()
0e6f18e4ccc8ea5b1b47bf4feab12a06fb0177b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3485/0e6f18e4ccc8ea5b1b47bf4feab12a06fb0177b6/pyplotres.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4032, 13332, 468, 1000, 731, 326, 3207, 4291, 273, 5451, 18, 19675, 12, 470, 1467, 28657, 2499, 16, 28, 18, 25, 3719, 225, 3207, 67, 892, 12, 874, 1631, 67, 4717, 16, 619, 856, 16, 677, 856, 16, 1603, 7216, 16, 675, 7216, 16, 521, 12625, 16, 2267, 67, 457, 77, 16, 2405, 67, 16292, 13, 225, 468, 5433, 871, 6689, 445, 471, 2405, 326, 3207, 7504, 67, 856, 1028, 273, 4291, 18, 15424, 18, 10514, 67, 3612, 2668, 856, 67, 1028, 67, 2575, 2187, 498, 1028, 13, 7504, 67, 11503, 273, 4291, 18, 15424, 18, 10514, 67, 3612, 2668, 11503, 67, 2575, 2187, 6002, 13, 309, 12625, 30, 5451, 18, 285, 1435, 5451, 18, 4500, 1435, 469, 30, 468, 7074, 7837, 471, 9706, 1923, 19675, 1435, 9706, 1435, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 7216, 16, 521, 12625, 16, 2267, 67, 457, 77, 16, 2405, 67, 16292, 13, 225, 468, 5433, 871, 6689, 445, 471, 2405, 326, 3207, 7504, 67, 856, 1028, 273, 4291, 18, 15424, 18, 10514, 67, 3612, 2668, 856, 67, 1028, 67, 2575, 2187, 498, 1028, 13, 7504, 67, 11503, 273, 4291, 18, 15424, 18, 10514, 67, 3612, 2668, 11503, 67, 2575, 2187, 6002, 13, 309, 12625, 30, 5451, 18, 285, 1435, 5451, 18, 4500, 2 ]
def noop(*args,**kws): pass
def noop(*args, **kws): pass
def noop(*args,**kws): pass
849f3d3344b63fffc1cf4b1f1ed5eb69fa683482 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11221/849f3d3344b63fffc1cf4b1f1ed5eb69fa683482/constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17065, 30857, 1968, 16, 2826, 79, 4749, 4672, 1342, 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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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._old_module_ids.remove(mId)
def delete_selected_items(self): selectedItems = self.selectedItems() if len(selectedItems)>0:
88aeefa371329e2d3ec0d78d76071429806ef0c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/88aeefa371329e2d3ec0d78d76071429806ef0c5/pipeline_view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 8109, 67, 3319, 12, 2890, 4672, 3170, 3126, 273, 365, 18, 8109, 3126, 1435, 309, 562, 12, 8109, 3126, 13, 34, 20, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1430, 67, 8109, 67, 3319, 12, 2890, 4672, 3170, 3126, 273, 365, 18, 8109, 3126, 1435, 309, 562, 12, 8109, 3126, 13, 34, 20, 30, 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 ]
Note that the construction should be done using arc::
Note that the construction should be done using ``arc``::
def is_cyclic_ordered(x1,x2,x3): return ( (x1 < x2 and x2 < x3) or (x2 < x3 and x3 < x1) or (x3 < x1 and x1 < x2))
e24dd3c62ad1f440792ccb94718bf5873e280f2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/e24dd3c62ad1f440792ccb94718bf5873e280f2a/arc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2431, 18964, 67, 9885, 12, 92, 21, 16, 92, 22, 16, 92, 23, 4672, 327, 261, 261, 92, 21, 411, 619, 22, 471, 619, 22, 411, 619, 23, 13, 578, 261, 92, 22, 411, 619, 23, 471, 619, 23, 411, 619, 21, 13, 578, 261, 92, 23, 411, 619, 21, 471, 619, 21, 411, 619, 22, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2431, 18964, 67, 9885, 12, 92, 21, 16, 92, 22, 16, 92, 23, 4672, 327, 261, 261, 92, 21, 411, 619, 22, 471, 619, 22, 411, 619, 23, 13, 578, 261, 92, 22, 411, 619, 23, 471, 619, 23, 411, 619, 21, 13, 578, 261, 92, 23, 411, 619, 21, 471, 619, 21, 411, 619, 22, 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 ]
newfunc.__doc__ += func.__doc__
if func.__doc__ is not None: newfunc.__doc__ += func.__doc__
def newfunc (*args, **kwargs): """ Execute function synchronized. """ lock.acquire(True) # blocking try: return func(*args, **kwargs) finally: lock.release()
b786bca2bd1448c567a75ba57e788bfda734efe5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/b786bca2bd1448c567a75ba57e788bfda734efe5/decorators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 644, 261, 14, 1968, 16, 2826, 4333, 4672, 3536, 7903, 445, 3852, 18, 3536, 2176, 18, 1077, 1039, 12, 5510, 13, 468, 9445, 775, 30, 327, 1326, 30857, 1968, 16, 2826, 4333, 13, 3095, 30, 2176, 18, 9340, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 644, 261, 14, 1968, 16, 2826, 4333, 4672, 3536, 7903, 445, 3852, 18, 3536, 2176, 18, 1077, 1039, 12, 5510, 13, 468, 9445, 775, 30, 327, 1326, 30857, 1968, 16, 2826, 4333, 13, 3095, 30, 2176, 18, 9340, 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 ]
twisted_error(self, failure)
self.twisted_error(failure)
def error(failure): # Code 6 means "moderated", which isn't an error if failure.value.code != 6: twisted_error(self, failure)
11c7a7ead45e06146e9276d29968d64c3f97ff78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11023/11c7a7ead45e06146e9276d29968d64c3f97ff78/postr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 12251, 4672, 468, 3356, 1666, 4696, 315, 1711, 19007, 3113, 1492, 5177, 1404, 392, 555, 309, 5166, 18, 1132, 18, 710, 480, 1666, 30, 2339, 25444, 67, 1636, 12, 2890, 16, 5166, 13, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 12251, 4672, 468, 3356, 1666, 4696, 315, 1711, 19007, 3113, 1492, 5177, 1404, 392, 555, 309, 5166, 18, 1132, 18, 710, 480, 1666, 30, 2339, 25444, 67, 1636, 12, 2890, 16, 5166, 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 ]
'__module__', '__name__']: return 0
'__module__', '__name__', '__slots__']: return 0
def visiblename(name, all=None): """Decide whether to show documentation on a variable.""" # Certain special names are redundant. if name in ['__builtins__', '__doc__', '__file__', '__path__', '__module__', '__name__']: return 0 # Private names are hidden, but special names are displayed. if name.startswith('__') and name.endswith('__'): return 1 if all is not None: # only document that which the programmer exported in __all__ return name in all else: return not name.startswith('_')
41b8b8a0df4f3e404b0e2be71e8c5ba7ae6ac80c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/41b8b8a0df4f3e404b0e2be71e8c5ba7ae6ac80c/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2281, 495, 14724, 12, 529, 16, 777, 33, 7036, 4672, 3536, 1799, 831, 2856, 358, 2405, 7323, 603, 279, 2190, 12123, 468, 11921, 530, 4582, 1257, 854, 19530, 18, 309, 508, 316, 10228, 972, 12406, 2679, 972, 2187, 4940, 2434, 972, 2187, 4940, 768, 972, 2187, 4940, 803, 972, 2187, 4940, 2978, 972, 2187, 4940, 529, 972, 2187, 4940, 18875, 972, 3546, 30, 327, 374, 468, 8726, 1257, 854, 5949, 16, 1496, 4582, 1257, 854, 10453, 18, 309, 508, 18, 17514, 1918, 2668, 972, 6134, 471, 508, 18, 5839, 1918, 2668, 7250, 4672, 327, 404, 309, 777, 353, 486, 599, 30, 468, 1338, 1668, 716, 1492, 326, 5402, 6592, 11518, 316, 1001, 454, 972, 327, 508, 316, 777, 469, 30, 327, 486, 508, 18, 17514, 1918, 2668, 4623, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2281, 495, 14724, 12, 529, 16, 777, 33, 7036, 4672, 3536, 1799, 831, 2856, 358, 2405, 7323, 603, 279, 2190, 12123, 468, 11921, 530, 4582, 1257, 854, 19530, 18, 309, 508, 316, 10228, 972, 12406, 2679, 972, 2187, 4940, 2434, 972, 2187, 4940, 768, 972, 2187, 4940, 803, 972, 2187, 4940, 2978, 972, 2187, 4940, 529, 972, 2187, 4940, 18875, 972, 3546, 30, 327, 374, 468, 8726, 1257, 854, 5949, 16, 1496, 4582, 1257, 854, 10453, 18, 309, 508, 18, 17514, 1918, 2668, 972, 6134, 471, 508, 18, 5839, 1918, 2668, 7250, 4672, 327, 404, 309, 777, 353, 486, 599, 30, 468, 1338, 1668, 716, 1492, 326, 5402, 6592, 11518, 316, 1001, 454, 972, 327, 508, 316, 777, 2 ]
(type=C{int}) - C{variable_tooltip_linelength}: The maximum line length
@type variable_tooltip_linelength: C{int} @keyword variable_tooltip_linelength: The maximum line length
def __init__(self, docmap, **kwargs): """ Construct a new HTML formatter, using the given documentation map. @param docmap: The documentation to output. @type docmap: L{DocMap} @param kwargs: Keyword arguments: - C{prj_name}: The name of the project. Defaults to none. (type=C{string}) - C{prj_url}: The target for the project hopeage link on the navigation bar. If C{prj_url} is not specified, then no hyperlink is created. (type=C{string}) - C{prj_link}: The label for the project link on the navigation bar. This link can contain arbitrary HTML code (e.g. images). By default, a label is constructed from C{prj_name}. (type=C{string}) - C{top}: The top page for the documentation. This is the default page shown main frame, when frames are enabled. C{top} can be a URL, the name of a module, the name of a class, or one of the special strings C{"trees.html"}, C{"indices.html"}, or C{"help.html"}. By default, the top-level package or module is used, if there is one; otherwise, C{"trees"} is used. (type=C{string}) - C{css}: The CSS stylesheet file. If C{css} is a file name, then the specified file's conents will be used. Otherwise, if C{css} is the name of a CSS stylesheet in L{epydoc.css}, then that stylesheet will be used. Otherwise, an error is reported. If no stylesheet is specified, then the default stylesheet is used. (type=C{string}) - C{private_css}: The CSS stylesheet file for the private API documentation. If C{css} is a file name, then the specified file's conents will be used. Otherwise, if C{css} is the name of a CSS stylesheet in L{epydoc.css}, then that stylesheet will be used. Otherwise, an error is reported. If no stylesheet is specified, then the private API documentation will use the same stylesheet as the public API documentation. (type=C{string}) - C{help}: The name of the help file. If no help file is specified, then the default help file will be used. (type=C{string}) - C{private}: Whether to create documentation for private objects. By default, private objects are documented. (type=C{boolean}) - C{frames}: Whether to create a frames-based table of contents. By default, it is produced. (type=C{boolean}) - C{show_imports}: Whether or not to display lists of imported functions and classes. By default, they are not shown. (type=C{boolean}) - C{index_parameters}: Whether or not to include function parameters in the identifier index. By default, they are not included. (type=C{boolean}) - C{variable_maxlines}: The maximum number of lines that should be displayed for the value of a variable in the variable details section. By default, 8 lines are displayed. (type=C{int}) - C{variable_linelength}: The maximum line length used for displaying the values of variables in the variable details sections. If a line is longer than this length, then it will be wrapped to the next line. The default line length is 70 characters. (type=C{int}) - C{variable_summary_linelength}: The maximum line length used for displaying the values of variables in the summary section. If a line is longer than this length, then it will be truncated. The default is 40 characters. (type=C{int}) - C{variable_tooltip_linelength}: The maximum line length used for tooltips for the values of variables. If a line is longer than this length, then it will be truncated. The default is 600 characters. (type=C{int}) - C{inheritance}: How inherited objects should be displayed. If C{inheritance='grouped'}, then inherited objects are gathered into groups; if C{inheritance='listed'}, then inherited objects are listed in a short list at the end of their group; if C{inheritance='included'}, then inherited objects are mixed in with non-inherited objects. The default is 'grouped'. (type=C{string}) """ self._docmap = docmap
dad6dd09c82d3878a78d977cc13da79d4420db2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/dad6dd09c82d3878a78d977cc13da79d4420db2b/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 997, 1458, 16, 2826, 4333, 4672, 3536, 14291, 279, 394, 3982, 4453, 16, 1450, 326, 864, 7323, 852, 18, 632, 891, 997, 1458, 30, 1021, 7323, 358, 876, 18, 632, 723, 997, 1458, 30, 511, 95, 1759, 863, 97, 632, 891, 1205, 30, 18317, 1775, 30, 300, 385, 95, 683, 78, 67, 529, 6713, 1021, 508, 434, 326, 1984, 18, 225, 14159, 358, 6555, 18, 225, 261, 723, 33, 39, 95, 1080, 6792, 300, 385, 95, 683, 78, 67, 718, 6713, 1021, 1018, 364, 326, 1984, 27370, 410, 1692, 603, 326, 10394, 4653, 18, 225, 971, 385, 95, 683, 78, 67, 718, 97, 353, 486, 1269, 16, 1508, 1158, 9512, 1232, 353, 2522, 18, 225, 261, 723, 33, 39, 95, 1080, 6792, 300, 385, 95, 683, 78, 67, 1232, 6713, 1021, 1433, 364, 326, 1984, 1692, 603, 326, 10394, 4653, 18, 225, 1220, 1692, 848, 912, 11078, 3982, 981, 261, 73, 18, 75, 18, 4602, 2934, 225, 2525, 805, 16, 279, 1433, 353, 15688, 628, 385, 95, 683, 78, 67, 529, 5496, 225, 261, 723, 33, 39, 95, 1080, 6792, 300, 385, 95, 3669, 6713, 1021, 1760, 1363, 364, 326, 7323, 18, 225, 1220, 353, 326, 805, 1363, 12188, 2774, 2623, 16, 1347, 7793, 854, 3696, 18, 225, 385, 95, 3669, 97, 848, 506, 279, 1976, 16, 326, 508, 434, 279, 1605, 16, 326, 508, 434, 279, 667, 16, 578, 1245, 434, 326, 4582, 2064, 385, 16711, 17204, 18, 2620, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 997, 1458, 16, 2826, 4333, 4672, 3536, 14291, 279, 394, 3982, 4453, 16, 1450, 326, 864, 7323, 852, 18, 632, 891, 997, 1458, 30, 1021, 7323, 358, 876, 18, 632, 723, 997, 1458, 30, 511, 95, 1759, 863, 97, 632, 891, 1205, 30, 18317, 1775, 30, 300, 385, 95, 683, 78, 67, 529, 6713, 1021, 508, 434, 326, 1984, 18, 225, 14159, 358, 6555, 18, 225, 261, 723, 33, 39, 95, 1080, 6792, 300, 385, 95, 683, 78, 67, 718, 6713, 1021, 1018, 364, 326, 1984, 27370, 410, 1692, 603, 326, 10394, 4653, 18, 225, 971, 385, 95, 683, 78, 67, 718, 97, 353, 486, 1269, 16, 1508, 1158, 9512, 1232, 353, 2 ]
else:
elif e.code == 408 or 500 <= e.code <= 599:
def _CH_subscribe(self, command): if self.state in ('stopping', 'stopped'): return notification_center = NotificationCenter() settings = SIPSimpleSettings() if self.subscription_timer is not None and self.subscription_timer.active(): self.subscription_timer.cancel() self.subscription_timer = None if self.subscription is not None: notification_center.remove_observer(self, sender=self.subscription) self.subscription.end() self.subscription = None try: if not self.account.xcap.use_xcap_diff: raise SubscriptionError(error='xcap-diff is disabled', timeout=120) if self.account.sip.outbound_proxy is not None: uri = SIPURI(host=self.account.sip.outbound_proxy.host, port=self.account.sip.outbound_proxy.port, parameters={'transport': self.account.sip.outbound_proxy.transport}) else: uri = SIPURI(host=self.account.id.domain) lookup = DNSLookup() try: routes = lookup.lookup_sip_proxy(uri, settings.sip.transport_list).wait() except DNSLookupError, e: timeout = random.uniform(15, 30) raise SubscriptionError(error='DNS lookup failed: %s' % e, timeout=timeout)
cfb3c7036c1d64cd5aa5992a6217d658b75bf517 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/cfb3c7036c1d64cd5aa5992a6217d658b75bf517/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1792, 67, 9174, 12, 2890, 16, 1296, 4672, 309, 365, 18, 2019, 316, 7707, 5681, 1382, 2187, 296, 24228, 11, 4672, 327, 3851, 67, 5693, 273, 8050, 8449, 1435, 1947, 273, 348, 2579, 5784, 2628, 1435, 309, 365, 18, 11185, 67, 12542, 353, 486, 599, 471, 365, 18, 11185, 67, 12542, 18, 3535, 13332, 365, 18, 11185, 67, 12542, 18, 10996, 1435, 365, 18, 11185, 67, 12542, 273, 599, 309, 365, 18, 11185, 353, 486, 599, 30, 3851, 67, 5693, 18, 4479, 67, 30971, 12, 2890, 16, 5793, 33, 2890, 18, 11185, 13, 365, 18, 11185, 18, 409, 1435, 365, 18, 11185, 273, 599, 775, 30, 309, 486, 365, 18, 4631, 18, 92, 5909, 18, 1202, 67, 92, 5909, 67, 5413, 30, 1002, 12132, 668, 12, 1636, 2218, 92, 5909, 17, 5413, 353, 5673, 2187, 2021, 33, 22343, 13, 309, 365, 18, 4631, 18, 28477, 18, 659, 3653, 67, 5656, 353, 486, 599, 30, 2003, 273, 348, 2579, 3098, 12, 2564, 33, 2890, 18, 4631, 18, 28477, 18, 659, 3653, 67, 5656, 18, 2564, 16, 1756, 33, 2890, 18, 4631, 18, 28477, 18, 659, 3653, 67, 5656, 18, 655, 16, 1472, 5899, 11, 13049, 4278, 365, 18, 4631, 18, 28477, 18, 659, 3653, 67, 5656, 18, 13049, 6792, 1327, 425, 18, 710, 422, 1059, 6840, 578, 6604, 1648, 425, 18, 710, 1648, 1381, 2733, 30, 2003, 273, 348, 2579, 3098, 12, 2564, 33, 2890, 18, 4631, 18, 350, 18, 4308, 13, 3689, 273, 8858, 6609, 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, 1792, 67, 9174, 12, 2890, 16, 1296, 4672, 309, 365, 18, 2019, 316, 7707, 5681, 1382, 2187, 296, 24228, 11, 4672, 327, 3851, 67, 5693, 273, 8050, 8449, 1435, 1947, 273, 348, 2579, 5784, 2628, 1435, 309, 365, 18, 11185, 67, 12542, 353, 486, 599, 471, 365, 18, 11185, 67, 12542, 18, 3535, 13332, 365, 18, 11185, 67, 12542, 18, 10996, 1435, 365, 18, 11185, 67, 12542, 273, 599, 309, 365, 18, 11185, 353, 486, 599, 30, 3851, 67, 5693, 18, 4479, 67, 30971, 12, 2890, 16, 5793, 33, 2890, 18, 11185, 13, 365, 18, 11185, 18, 409, 1435, 365, 18, 11185, 273, 599, 775, 30, 309, 486, 365, 18, 4631, 18, 92, 5909, 18, 1202, 67, 2 ]
"Diffs",
"patches",
def main(): import sys, getopt, time, string, socket try: opts, args = getopt.getopt(sys.argv[1:], "d:i:h:l:u:r:Rt:DL:", ["date", "indent", "hostname", "length", "user", "rlog_options", #### not yet supported "Recursive", #### not yet supported "tabwidth", "Diffs", #### not yet supported "Logfile"]) except getopt.error, msg: sys.stdout = sys.stderr print msg print "Usage: Options:" print "[-h hostname] [-i indent] [-l length] [-R]" print "[-r rlog_option] [-d rcs date]\n[-t tabwidth] [-u 'login<TAB>fullname<TAB>mailaddr']..." sys.exit(2) # Set up defaults for all of the command line options. cvsrepository=GetCVSRepository() if not cvsrepository: print "cvs2log.py must be executed in a working CVS directory" sys.exit(2) indent=8 hostname=socket.gethostbyaddr(socket.gethostname())[1][0] length=63 user=0 recursive=0 tabwidth=8 rlog_options=0 logfile=None date_option = "" diffs=1 # override defaults if specified on the command line for o, a in opts: if o == '-h' : hostname = a elif o == '-i' : indent = a elif o == '-l' : length = a elif o == '-t' : tabwidth = a elif o == '-u' : user = a elif o == '-r' : rlog_options = a elif o == '-R' : recursive = 1 elif o == '-d' : date_option = "-d " + "'" + a + "'" elif o == '-D' : diffs = 0 elif o == '-L' : logfile = a else: print "getopt should have failed already" # set up the cvs log command arguments. If a logfile is specified # we get all dates later than the logfile. if logfile: date_option = "'" + "-d>" + time.asctime(LastLogDate2CtimeTuple(logfile)) + "'" log_date_command= 'cvs -d ' + GetCVSRepository() + ' -Q log -N ' + date_option # build the logs. log = BuildLog(log_date_command) # chronologically reversed. We reverse everything in the list as # well. log.sort() log.reverse() # Pass through the logs creating new entries based on changing # authors, dates and descriptions. last_date = None last_author = None entry_dict = {} for date, author, description, rcs_file, revision in log: if author != last_author or date != last_date: # clear out any old revisions, descriptions, and filenames # that belong with the last log. if entry_dict: print ChangeLogFileRevDesc(entry_dict, indent, length) # clear the entry log for the next group of changes # if we have a new author or date we print a date, time, # author, and email address. entry_dict = {} print ChangeLogDateNameHeader(date, author, hostname, tabwidth) # build string from description list so we can use it as a key # for the entry dictionary description_data = indent * ' ' for line in description: description_data = description_data + line + indent * ' ' # put the revisions and rcs files in decription-keyed # dictionary. if entry_dict.has_key(description_data): entry_dict[description_data].append(revision, rcs_file) else: entry_dict[description_data] = [(revision, rcs_file)] last_author = author last_date = date last_description = description # print the last entry if there is one (i.e. the last two entries # have the same author and date) if entry_dict: print ChangeLogFileRevDesc(entry_dict, indent, length)
42ecb661e06383ac8af5bf242e802c26a1bbfe5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/42ecb661e06383ac8af5bf242e802c26a1bbfe5f/cvs2log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 2589, 16, 336, 3838, 16, 813, 16, 533, 16, 2987, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 72, 30, 77, 30, 76, 30, 80, 30, 89, 30, 86, 30, 54, 88, 30, 8914, 2773, 16, 8247, 712, 3113, 315, 9355, 3113, 315, 10358, 3113, 315, 2469, 3113, 315, 1355, 3113, 315, 86, 1330, 67, 2116, 3113, 11849, 7, 486, 4671, 3260, 315, 10483, 3113, 565, 11849, 7, 486, 4671, 3260, 315, 7032, 2819, 3113, 315, 30278, 3113, 3639, 11849, 7, 486, 4671, 3260, 315, 1343, 768, 6, 5717, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 2589, 18, 10283, 273, 2589, 18, 11241, 1172, 1234, 1172, 315, 5357, 30, 5087, 2773, 1172, 5158, 17, 76, 5199, 65, 23059, 77, 3504, 65, 23059, 80, 769, 65, 23059, 54, 4279, 1172, 5158, 17, 86, 436, 1330, 67, 3482, 65, 23059, 72, 436, 2143, 1509, 13944, 82, 18919, 88, 3246, 2819, 65, 23059, 89, 296, 5819, 32, 28899, 34, 21885, 32, 28899, 34, 4408, 4793, 3546, 7070, 2589, 18, 8593, 12, 22, 13, 225, 468, 1000, 731, 3467, 364, 777, 434, 326, 1296, 980, 702, 18, 276, 6904, 9071, 33, 967, 39, 14640, 3305, 1435, 309, 486, 276, 6904, 9071, 30, 1172, 315, 71, 6904, 22, 1330, 18, 2074, 1297, 506, 7120, 316, 279, 5960, 385, 14640, 1867, 6, 2589, 18, 8593, 12, 22, 13, 3504, 33, 28, 5199, 33, 7814, 18, 75, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 2589, 16, 336, 3838, 16, 813, 16, 533, 16, 2987, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 72, 30, 77, 30, 76, 30, 80, 30, 89, 30, 86, 30, 54, 88, 30, 8914, 2773, 16, 8247, 712, 3113, 315, 9355, 3113, 315, 10358, 3113, 315, 2469, 3113, 315, 1355, 3113, 315, 86, 1330, 67, 2116, 3113, 11849, 7, 486, 4671, 3260, 315, 10483, 3113, 565, 11849, 7, 486, 4671, 3260, 315, 7032, 2819, 3113, 315, 30278, 3113, 3639, 11849, 7, 486, 4671, 3260, 315, 1343, 768, 6, 5717, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 2589, 18, 10283, 273, 2589, 18, 2 ]
LibName("OPENGL", "opengl32.lib") LibName("OPENGL", "glu32.lib")
LibName("GL", "opengl32.lib") LibName("GL", "glu32.lib") LibName("GLES", "libgles_cm.lib") LibName("GLES2", "libGLESv2.lib") LibName("EGL", "libEGL.lib")
def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR,VERSION global COMPRESSOR,THREADCOUNT,OSXTARGET,HOST_URL,DEBVERSION,RPMRELEASE longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","outputdir=","override=", "static","host=","debversion=","rpmrelease="] anything = 0 optimize = "" for pkg in PkgListGet(): longopts.append("no-"+pkg.lower()) for pkg in PkgListGet(): longopts.append("use-"+pkg.lower()) try: opts, extras = getopt.getopt(args, "", longopts) for option,value in opts: if (option=="--help"): raise "usage" elif (option=="--optimize"): optimize=value elif (option=="--installer"): INSTALLER=1 elif (option=="--verbose"): SetVerbose(True) elif (option=="--distributor"): DISTRIBUTOR=value elif (option=="--rtdist"): RTDIST=1 elif (option=="--runtime"): RUNTIME=1 elif (option=="--genman"): GENMAN=1 elif (option=="--everything"): PkgEnableAll() elif (option=="--nothing"): PkgDisableAll() elif (option=="--threads"): THREADCOUNT=int(value) elif (option=="--outputdir"): SetOutputDir(value.strip()) elif (option=="--osxtarget"): OSXTARGET=value.strip() elif (option=="--nocolor"): DisableColors() elif (option=="--version"): VERSION=value if (len(VERSION.split(".")) != 3): raise "usage" elif (option=="--lzma"): COMPRESSOR="lzma" elif (option=="--override"): AddOverride(value.strip()) elif (option=="--static"): SetLinkAllStatic(True) elif (option=="--host"): HOST_URL=value elif (option=="--debversion"): DEBVERSION=value elif (option=="--rpmrelease"): RPMRELEASE=value else: for pkg in PkgListGet(): if (option=="--use-"+pkg.lower()): PkgEnable(pkg) break for pkg in PkgListGet(): if (option=="--no-"+pkg.lower()): PkgDisable(pkg) break if (option=="--everything" or option.startswith("--use-") or option=="--nothing" or option.startswith("--no-")): anything = 1 except: usage(0) if (anything==0): usage(0) if (RTDIST and RUNTIME): usage("Options --runtime and --rtdist cannot be specified at the same time!") if (optimize=="" and (RTDIST or RUNTIME)): optimize = "4" elif (optimize==""): optimize = "3" if (OSXTARGET != None and OSXTARGET.strip() == ""): OSXTARGET = None elif (OSXTARGET != None): OSXTARGET = OSXTARGET.strip() if (len(OSXTARGET) != 4 or not OSXTARGET.startswith("10.")): usage("Invalid setting for OSXTARGET") try: OSXTARGET = "10.%d" % int(OSXTARGET[-1]) except: usage("Invalid setting for OSXTARGET") try: SetOptimize(int(optimize)) assert GetOptimize() in [1, 2, 3, 4] except: usage("Invalid setting for OPTIMIZE")
397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4952, 12, 1968, 4672, 2552, 22880, 4685, 654, 16, 12185, 2565, 882, 16, 54, 25375, 16, 16652, 9560, 16, 2565, 27424, 1693, 916, 16, 5757, 2552, 5423, 22526, 916, 16, 21730, 7240, 16, 4618, 3983, 10987, 16, 8908, 67, 1785, 16, 1639, 38, 5757, 16, 54, 12728, 30762, 1525, 4952, 273, 306, 315, 5201, 15937, 2251, 19293, 1546, 10837, 11369, 15937, 9448, 15937, 538, 92, 3299, 1546, 16, 315, 29155, 1546, 10837, 20434, 4274, 15937, 30874, 15937, 20163, 15937, 3797, 4413, 15937, 31470, 355, 280, 3113, 315, 1589, 1546, 10837, 80, 94, 2540, 15937, 2135, 17, 8103, 15937, 12495, 1546, 10837, 2844, 1214, 1546, 10837, 10601, 1546, 16, 315, 3845, 15937, 2564, 1546, 10837, 31888, 1589, 1546, 10837, 86, 7755, 9340, 1546, 65, 6967, 273, 374, 10979, 273, 1408, 364, 3475, 316, 453, 14931, 682, 967, 13332, 1525, 4952, 18, 6923, 2932, 2135, 10951, 15, 10657, 18, 8167, 10756, 364, 3475, 316, 453, 14931, 682, 967, 13332, 1525, 4952, 18, 6923, 2932, 1202, 10951, 15, 10657, 18, 8167, 10756, 775, 30, 1500, 16, 11875, 273, 336, 3838, 18, 588, 3838, 12, 1968, 16, 23453, 1525, 4952, 13, 364, 1456, 16, 1132, 316, 1500, 30, 309, 261, 3482, 31713, 413, 5201, 6, 4672, 1002, 315, 9167, 6, 1327, 261, 3482, 31713, 413, 29155, 6, 4672, 10979, 33, 1132, 1327, 261, 3482, 31713, 413, 20163, 6, 4672, 22880, 4685, 654, 33, 21, 1327, 261, 3482, 31713, 413, 11369, 6, 4672, 1000, 14489, 12, 5510, 13, 1327, 261, 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, 1109, 4952, 12, 1968, 4672, 2552, 22880, 4685, 654, 16, 12185, 2565, 882, 16, 54, 25375, 16, 16652, 9560, 16, 2565, 27424, 1693, 916, 16, 5757, 2552, 5423, 22526, 916, 16, 21730, 7240, 16, 4618, 3983, 10987, 16, 8908, 67, 1785, 16, 1639, 38, 5757, 16, 54, 12728, 30762, 1525, 4952, 273, 306, 315, 5201, 15937, 2251, 19293, 1546, 10837, 11369, 15937, 9448, 15937, 538, 92, 3299, 1546, 16, 315, 29155, 1546, 10837, 20434, 4274, 15937, 30874, 15937, 20163, 15937, 3797, 4413, 15937, 31470, 355, 280, 3113, 315, 1589, 1546, 10837, 80, 94, 2540, 15937, 2135, 17, 8103, 15937, 12495, 1546, 10837, 2844, 1214, 1546, 10837, 10601, 1546, 16, 315, 3845, 15937, 2564, 1546, 10837, 31888, 1589, 1546, 2 ]
zip(line[::2], line[1::2])]
zip(rest[::2], rest[1::2])]
def read_obstacles(self): self.expect('begin')
bb94029b5f93b7e2ef96527c237138829463ecdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/bb94029b5f93b7e2ef96527c237138829463ecdf/bzrc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 947, 334, 69, 9558, 12, 2890, 4672, 365, 18, 12339, 2668, 10086, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 947, 334, 69, 9558, 12, 2890, 4672, 365, 18, 12339, 2668, 10086, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ctx = SSL.Context() ctx.set_verify(SSL.verify_peer | SSL.verify_fail_if_no_peer_cert, 9, self.verify_cb_exception) s = SSL.Connection(ctx) self.assertRaises(SSL.SSLError, s.connect, self.srv_addr) s.close() self.stop_server(pid)
try: ctx = SSL.Context() ctx.set_verify(SSL.verify_peer | SSL.verify_fail_if_no_peer_cert, 9, self.verify_cb_exception) s = SSL.Connection(ctx) self.assertRaises(SSL.SSLError, s.connect, self.srv_addr) s.close() finally: self.stop_server(pid)
def test_verify_cb_exception(self): pid = self.start_server(self.args) ctx = SSL.Context() ctx.set_verify(SSL.verify_peer | SSL.verify_fail_if_no_peer_cert, 9, self.verify_cb_exception) s = SSL.Connection(ctx) self.assertRaises(SSL.SSLError, s.connect, self.srv_addr) s.close() self.stop_server(pid)
6d956155dfc0f9670dea38b076c5bfe3b3bf8e6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/6d956155dfc0f9670dea38b076c5bfe3b3bf8e6a/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8705, 67, 7358, 67, 4064, 12, 2890, 4672, 4231, 273, 365, 18, 1937, 67, 3567, 12, 2890, 18, 1968, 13, 1103, 273, 7419, 18, 1042, 1435, 1103, 18, 542, 67, 8705, 12, 6745, 18, 8705, 67, 12210, 571, 7419, 18, 8705, 67, 6870, 67, 430, 67, 2135, 67, 12210, 67, 7593, 16, 2468, 16, 365, 18, 8705, 67, 7358, 67, 4064, 13, 272, 273, 7419, 18, 1952, 12, 5900, 13, 365, 18, 11231, 12649, 6141, 12, 6745, 18, 6745, 668, 16, 272, 18, 3612, 16, 365, 18, 20818, 67, 4793, 13, 272, 18, 4412, 1435, 365, 18, 5681, 67, 3567, 12, 6610, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8705, 67, 7358, 67, 4064, 12, 2890, 4672, 4231, 273, 365, 18, 1937, 67, 3567, 12, 2890, 18, 1968, 13, 1103, 273, 7419, 18, 1042, 1435, 1103, 18, 542, 67, 8705, 12, 6745, 18, 8705, 67, 12210, 571, 7419, 18, 8705, 67, 6870, 67, 430, 67, 2135, 67, 12210, 67, 7593, 16, 2468, 16, 365, 18, 8705, 67, 7358, 67, 4064, 13, 272, 273, 7419, 18, 1952, 12, 5900, 13, 365, 18, 11231, 12649, 6141, 12, 6745, 18, 6745, 668, 16, 272, 18, 3612, 16, 365, 18, 20818, 67, 4793, 13, 272, 18, 4412, 1435, 365, 18, 5681, 67, 3567, 12, 6610, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
osm = self.main.osm
def handlePrivMsg(self, ad, data, cb): # Common code for handling private messages (PM, CA, CP)
670afcc3701bc402aa5fdbec44ae13728772f1df /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8524/670afcc3701bc402aa5fdbec44ae13728772f1df/dtella_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 15475, 3332, 12, 2890, 16, 1261, 16, 501, 16, 2875, 4672, 468, 5658, 981, 364, 5057, 3238, 2743, 261, 12728, 16, 6425, 16, 5181, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 15475, 3332, 12, 2890, 16, 1261, 16, 501, 16, 2875, 4672, 468, 5658, 981, 364, 5057, 3238, 2743, 261, 12728, 16, 6425, 16, 5181, 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 ]
if not InventoryCreator().locationExists(self.config.default_entity): self.logger.error("Default entity '%s' does not exist in database" % self.config.default_entity) return False
def initialise(self, config): self.logger = logging.getLogger() self.xmlmapping = config.ocsmapping try: OcsMapping().initialize(self.xmlmapping) except IOError, e: self.logger.error(e) return False try: InventoryCreator().activate(config) except Exception, e : self.logger.error(e) return False if not InventoryCreator().db_check(): return False self.config = config # Initialize the computer to entity mapping if self.config.entities_rules_file: try: InventoryCreator().rules = EntitiesRules(self.config.entities_rules_file) except Exception, e: self.logger.error(e) return False else: InventoryCreator().rules = DefaultEntityRules(self.config.default_entity) # Check that the default assigned entity exists if not InventoryCreator().locationExists(self.config.default_entity): self.logger.error("Default entity '%s' does not exist in database" % self.config.default_entity) return False self.bind = config.bind self.port = int(config.port) return True
2a8c666200c87b141a03940a22d894581bc7a527 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5988/2a8c666200c87b141a03940a22d894581bc7a527/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21301, 12, 2890, 16, 642, 4672, 365, 18, 4901, 273, 2907, 18, 588, 3328, 1435, 365, 18, 2902, 6770, 273, 642, 18, 22280, 6770, 775, 30, 531, 2143, 3233, 7675, 11160, 12, 2890, 18, 2902, 6770, 13, 1335, 8340, 16, 425, 30, 365, 18, 4901, 18, 1636, 12, 73, 13, 327, 1083, 775, 30, 24835, 10636, 7675, 10014, 12, 1425, 13, 1335, 1185, 16, 425, 294, 365, 18, 4901, 18, 1636, 12, 73, 13, 327, 1083, 309, 486, 24835, 10636, 7675, 1966, 67, 1893, 13332, 327, 1083, 365, 18, 1425, 273, 642, 468, 9190, 326, 26579, 358, 1522, 2874, 309, 365, 18, 1425, 18, 9996, 67, 7482, 67, 768, 30, 775, 30, 24835, 10636, 7675, 7482, 273, 16216, 4478, 12, 2890, 18, 1425, 18, 9996, 67, 7482, 67, 768, 13, 1335, 1185, 16, 425, 30, 365, 18, 4901, 18, 1636, 12, 73, 13, 327, 1083, 469, 30, 24835, 10636, 7675, 7482, 273, 2989, 1943, 4478, 12, 2890, 18, 1425, 18, 1886, 67, 1096, 13, 468, 2073, 716, 326, 805, 6958, 1522, 1704, 365, 18, 4376, 273, 642, 18, 4376, 365, 18, 655, 273, 509, 12, 1425, 18, 655, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21301, 12, 2890, 16, 642, 4672, 365, 18, 4901, 273, 2907, 18, 588, 3328, 1435, 365, 18, 2902, 6770, 273, 642, 18, 22280, 6770, 775, 30, 531, 2143, 3233, 7675, 11160, 12, 2890, 18, 2902, 6770, 13, 1335, 8340, 16, 425, 30, 365, 18, 4901, 18, 1636, 12, 73, 13, 327, 1083, 775, 30, 24835, 10636, 7675, 10014, 12, 1425, 13, 1335, 1185, 16, 425, 294, 365, 18, 4901, 18, 1636, 12, 73, 13, 327, 1083, 309, 486, 24835, 10636, 7675, 1966, 67, 1893, 13332, 327, 1083, 365, 18, 1425, 273, 642, 468, 9190, 326, 26579, 358, 1522, 2874, 309, 365, 18, 1425, 18, 9996, 67, 7482, 67, 768, 30, 775, 30, 24835, 10636, 7675, 7482, 273, 16216, 2 ]
........
--------
def remap_image(image, parm_vector, resample='linear'): """ remaped_image = remap_image(image, parm_vector, resample='linear') rotates and translates image using the 3 angles and 3 translations in the 6-dim parm_vector. The mapping is stored in the 4x4 M_inverse matrix from the get_inverse_mapping method. Parameters .......... image : {dictionary} image is the source image to be remapped. it is a dictionary with the data as an ndarray in the ['data'] component. parm_vector : {ndarray} parm_vector is the 6-dimensional vector (3 angles, 3 translations) generated from the registration. resample : {'linear', 'cubic'}, optional Returns ....... remaped_image : {dictionary} Examples ........ image = fmri_series[i] x[0:6] = measures[i]['align_rotate'][0:6] # overwrite the fMRI volume with the aligned volume fmri_series[i] = remap_image(image, x, resample='cubic') """ # # remap imageG to coordinates of imageF (creates imageG') # use the 6 dim parm_vector (3 angles, 3 translations) to remap # M_inverse = get_inverse_mappings(parm_vector) (layers, rows, cols) = image['data'].shape # allocate the zero image remaped_image = N.zeros(layers*rows*cols, dtype=N.uint8).reshape(layers, rows, cols) remaped_image = {'data' : remaped_image, 'mat' : image['mat'], 'dim' : image['dim'], 'fwhm' : image['fwhm']} imdata = build_structs() if resample == 'linear': # trilinear interpolation mapping. R.register_linear_resample(image['data'], remaped_image['data'], M_inverse, imdata['step']) elif resample == 'cubic': # tricubic convolve interpolation mapping. R.register_cubic_resample(image['data'], remaped_image['data'], M_inverse, imdata['step']) return remaped_image
de681f926e982b0212f2f58bf637917926737f89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/de681f926e982b0212f2f58bf637917926737f89/_registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21674, 67, 2730, 12, 2730, 16, 19924, 67, 7737, 16, 19220, 2218, 12379, 11, 4672, 3536, 849, 5994, 67, 2730, 273, 21674, 67, 2730, 12, 2730, 16, 19924, 67, 7737, 16, 19220, 2218, 12379, 6134, 225, 4168, 815, 471, 2162, 815, 1316, 1450, 326, 890, 15479, 471, 890, 7863, 316, 326, 1666, 17, 3509, 19924, 67, 7737, 18, 1021, 2874, 353, 4041, 316, 326, 1059, 92, 24, 490, 67, 22552, 3148, 628, 326, 336, 67, 22552, 67, 6770, 707, 18, 225, 7012, 6116, 788, 1316, 294, 288, 15556, 97, 1316, 353, 326, 1084, 1316, 358, 506, 21674, 1845, 18, 518, 353, 279, 3880, 598, 326, 501, 487, 392, 8304, 316, 326, 10228, 892, 3546, 1794, 18, 225, 19924, 67, 7737, 294, 288, 25681, 97, 19924, 67, 7737, 353, 326, 1666, 17, 31236, 3806, 261, 23, 15479, 16, 890, 7863, 13, 4374, 628, 326, 7914, 18, 225, 19220, 294, 13666, 12379, 2187, 296, 71, 17616, 11, 5779, 3129, 282, 2860, 1372, 6265, 849, 5994, 67, 2730, 294, 288, 15556, 97, 225, 19830, 27093, 1316, 273, 10940, 566, 67, 10222, 63, 77, 65, 619, 63, 20, 30, 26, 65, 273, 22692, 63, 77, 23962, 7989, 67, 20342, 3546, 63, 20, 30, 26, 65, 468, 6156, 326, 284, 49, 2259, 3940, 598, 326, 13939, 3940, 10940, 566, 67, 10222, 63, 77, 65, 273, 21674, 67, 2730, 12, 2730, 16, 619, 16, 19220, 2218, 71, 17616, 6134, 225, 3536, 225, 468, 468, 21674, 1316, 43, 358, 5513, 434, 1316, 42, 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, 21674, 67, 2730, 12, 2730, 16, 19924, 67, 7737, 16, 19220, 2218, 12379, 11, 4672, 3536, 849, 5994, 67, 2730, 273, 21674, 67, 2730, 12, 2730, 16, 19924, 67, 7737, 16, 19220, 2218, 12379, 6134, 225, 4168, 815, 471, 2162, 815, 1316, 1450, 326, 890, 15479, 471, 890, 7863, 316, 326, 1666, 17, 3509, 19924, 67, 7737, 18, 1021, 2874, 353, 4041, 316, 326, 1059, 92, 24, 490, 67, 22552, 3148, 628, 326, 336, 67, 22552, 67, 6770, 707, 18, 225, 7012, 6116, 788, 1316, 294, 288, 15556, 97, 1316, 353, 326, 1084, 1316, 358, 506, 21674, 1845, 18, 518, 353, 279, 3880, 598, 326, 501, 487, 392, 8304, 316, 326, 10228, 892, 3546, 1794, 18, 225, 19924, 2 ]
self._font = None self.font = pygame.font.Font(None, 32) self._fixSize()
try: self._font = None self.font = pygame.font.Font(None, 32) self._fixSize() except: pass
def __init__(self, *options): """Initialise the EzMenu! options should be a sequence of lists in the format of [option_name, option_function] """ KezMenuEffectAble.__init__(self) self.options = [{'label': x[0], 'callable': x[1]} for x in options] self.x = 0 self.y = 0 self.screen_topleft_offset = (0,0) self.option = 0 self.width = 0 self.height = 0 self.color = (0, 0, 0, 0) self.focus_color = (255, 0, 0, 255) self.mouse_enabled = True self.mouse_focus = False # The 2 lines below seem stupid, but for effects I can need different font for every line. self._font = None self.font = pygame.font.Font(None, 32) self._fixSize()
9bd3b9496657fa1794a84a06cbac34df43971e92 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9102/9bd3b9496657fa1794a84a06cbac34df43971e92/kezmenu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 2116, 4672, 3536, 4435, 784, 326, 512, 94, 4599, 5, 702, 1410, 506, 279, 3102, 434, 6035, 316, 326, 740, 434, 306, 3482, 67, 529, 16, 1456, 67, 915, 65, 3536, 1475, 6664, 4599, 12477, 5895, 298, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2116, 273, 20031, 11, 1925, 4278, 619, 63, 20, 6487, 296, 7293, 4278, 619, 63, 21, 18322, 364, 619, 316, 702, 65, 365, 18, 92, 273, 374, 365, 18, 93, 273, 374, 365, 18, 9252, 67, 3669, 4482, 67, 3348, 273, 261, 20, 16, 20, 13, 365, 18, 3482, 273, 374, 365, 18, 2819, 273, 374, 365, 18, 4210, 273, 374, 365, 18, 3266, 273, 261, 20, 16, 374, 16, 374, 16, 374, 13, 365, 18, 13923, 67, 3266, 273, 261, 10395, 16, 374, 16, 374, 16, 4561, 13, 365, 18, 11697, 67, 5745, 273, 1053, 365, 18, 11697, 67, 13923, 273, 1083, 468, 1021, 576, 2362, 5712, 19264, 384, 416, 350, 16, 1496, 364, 16605, 467, 848, 1608, 3775, 3512, 364, 3614, 980, 18, 365, 6315, 5776, 273, 599, 365, 18, 5776, 273, 2395, 13957, 18, 5776, 18, 5711, 12, 7036, 16, 3847, 13, 365, 6315, 904, 1225, 1435, 2, 0, 0, 0, 0, 0, 0, 0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, 529, 16, 1456, 67, 915, 65, 3536, 1475, 6664, 4599, 12477, 5895, 298, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2116, 273, 20031, 11, 1925, 4278, 619, 63, 20, 6487, 296, 7293, 4278, 619, 63, 21, 18322, 364, 619, 316, 702, 65, 365, 18, 92, 273, 374, 365, 18, 93, 273, 374, 365, 18, 9252, 67, 3669, 4482, 67, 3348, 273, 261, 20, 16, 20, 13, 365, 18, 3482, 273, 374, 365, 18, 2819, 273, 374, 365, 18, 4210, 273, 374, 365, 18, 3266, 273, 261, 2 ]
if _debug: sys.stderr.write('xml parsing failed\n') feedparser.bozo = 1 feedparser.bozo_exception = feedparser.exc or e if feedparser.bozo:
if _debug: import traceback traceback.print_stack() traceback.print_exc() sys.stderr.write('xml parsing failed\n')
def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, referrer=None): """Parse a feed from a URL, file, stream, or string""" result = FeedParserDict() f = _open_resource(url_file_stream_or_string, etag=etag, modified=modified, agent=agent, referrer=referrer) data = f.read() if hasattr(f, "headers"): if gzip and f.headers.get('content-encoding', '') == 'gzip': try: data = gzip.GzipFile(fileobj=_StringIO(data)).read() except: # some feeds claim to be gzipped but they're not, so we get garbage data = '' if hasattr(f, "info"): info = f.info() result["etag"] = info.getheader("ETag") last_modified = info.getheader("Last-Modified") if last_modified: result["modified"] = _parse_date(last_modified) if hasattr(f, "url"): result["url"] = f.url result["status"] = 200 # default, may be overridden later if hasattr(f, "status"): result["status"] = f.status if hasattr(f, "headers"): result["headers"] = f.headers.dict f.close() if result.get("status", 0) == 304: result['feed'] = FeedParserDict() result['entries'] = [] result['debug_message'] = "The feed has not changed since you last checked, so the server sent no data. This is a feature, not a bug!" return result result['encoding'], http_encoding, xml_encoding = _getCharacterEncoding(result.get("headers", {}), data) result['version'], data = _stripDoctype(data) baseuri = result.get('headers', {}).get('content-location', result.get('url')) # try true XML parser first if not _XML_AVAILABLE: if _debug: sys.stderr.write('no xml libraries available\n') use_strict_parser = _XML_AVAILABLE if use_strict_parser: if _debug: sys.stderr.write('using xml library\n') result['bozo'] = 0 feedparser = _StrictFeedParser(baseuri, result['encoding']) if _debug and _debug_never_use_libxml2: sys.stderr.write('not using libxml2 (even if available)\n') additional_parsers = [] else: additional_parsers = ["drv_libxml2"] saxparser = xml.sax.make_parser(additional_parsers) saxparser.setFeature(xml.sax.handler.feature_namespaces, 1) saxparser.setContentHandler(feedparser) saxparser.setErrorHandler(feedparser) try: saxparser.setDTDHandler(feedparser) except xml.sax.SAXNotSupportedException: # libxml2 driver does not support DTDHandler if _debug: sys.stderr.write('using an xml library that does not support DTDHandler (not a big deal)\n') try: saxparser.setEntityResolver(feedparser) except xml.sax.SAXNotSupportedException: # libxml2 driver does not support EntityResolver if _debug: sys.stderr.write('using an xml library that does not support EntityResolver (not a big deal)\n') encoding_set = (result['encoding'] == xml_encoding) if not encoding_set: bozo_exception = None proposed_encodings = [result['encoding'], xml_encoding, 'utf-8', 'iso-8859-1', 'windows-1252'] tried_encodings = [] for proposed_encoding in proposed_encodings: if proposed_encodings in tried_encodings: continue tried_encodings.append(proposed_encoding) try: data = _changeEncodingDeclaration(data, proposed_encoding) except Exception, bozo_exception: if _debug: sys.stderr.write('character encoding is wrong\n') else: if proposed_encoding != result['encoding']: try: raise CharacterEncodingOverride, "document declared as %s, but parsed as %s" % (result['encoding'], proposed_encoding) except CharacterEncodingOverride, bozo_exception: result['bozo'] = 1 result['bozo_exception'] = bozo_exception result['encoding'] = proposed_encoding encoding_set = 1 break if not encoding_set: result['bozo'] = 1 result['bozo_exception'] = bozo_exception use_strict_parser = 0 if use_strict_parser: source = xml.sax.xmlreader.InputSource() source.setByteStream(_StringIO(data)) if hasattr(saxparser, '_ns_stack'): # work around bug in built-in SAX parser (doesn't recognize xml: namespace) # PyXML doesn't have this problem, and it doesn't have _ns_stack either saxparser._ns_stack.append({'http://www.w3.org/XML/1998/namespace':'xml'}) try: saxparser.parse(source) except Exception, e: if _debug: sys.stderr.write('xml parsing failed\n') feedparser.bozo = 1 feedparser.bozo_exception = feedparser.exc or e if feedparser.bozo: # feed is not well-formed XML, fall back on regex-based parser result['bozo'] = 1 result['bozo_exception'] = feedparser.bozo_exception use_strict_parser = 0 if not use_strict_parser: if _debug: sys.stderr.write('using regexes, now you have two problems\n') feedparser = _LooseFeedParser(baseuri, result['encoding']) feedparser.feed(data) result['feed'] = feedparser.feeddata result['entries'] = feedparser.entries result['version'] = result['version'] or feedparser.version return result
99200d105c483d0627b0c87195d2d3372fe4ba91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/99200d105c483d0627b0c87195d2d3372fe4ba91/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 33, 7036, 16, 4358, 33, 7036, 16, 4040, 33, 7036, 16, 14502, 33, 7036, 4672, 3536, 3201, 279, 4746, 628, 279, 1976, 16, 585, 16, 1407, 16, 578, 533, 8395, 563, 273, 14013, 2678, 5014, 1435, 284, 273, 389, 3190, 67, 3146, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 33, 20788, 16, 4358, 33, 7342, 16, 4040, 33, 5629, 16, 14502, 33, 1734, 11110, 13, 501, 273, 284, 18, 896, 1435, 309, 3859, 12, 74, 16, 315, 2485, 6, 4672, 309, 10331, 471, 284, 18, 2485, 18, 588, 2668, 1745, 17, 5999, 2187, 28707, 422, 296, 17380, 4278, 775, 30, 501, 273, 10331, 18, 27825, 812, 12, 768, 2603, 33, 67, 780, 4294, 12, 892, 13, 2934, 896, 1435, 1335, 30, 468, 2690, 27684, 7516, 358, 506, 10331, 1845, 1496, 2898, 4565, 486, 16, 1427, 732, 336, 15340, 501, 273, 875, 309, 3859, 12, 74, 16, 315, 1376, 6, 4672, 1123, 273, 284, 18, 1376, 1435, 563, 9614, 20788, 11929, 273, 1123, 18, 75, 546, 18105, 2932, 22560, 7923, 1142, 67, 7342, 273, 1123, 18, 75, 546, 18105, 2932, 3024, 17, 4575, 7923, 309, 1142, 67, 7342, 30, 563, 9614, 7342, 11929, 273, 389, 2670, 67, 712, 12, 2722, 67, 7342, 13, 309, 3859, 12, 74, 16, 315, 718, 6, 4672, 563, 9614, 718, 11929, 273, 284, 18, 718, 563, 9614, 2327, 11929, 273, 4044, 468, 805, 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, 1109, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 33, 7036, 16, 4358, 33, 7036, 16, 4040, 33, 7036, 16, 14502, 33, 7036, 4672, 3536, 3201, 279, 4746, 628, 279, 1976, 16, 585, 16, 1407, 16, 578, 533, 8395, 563, 273, 14013, 2678, 5014, 1435, 284, 273, 389, 3190, 67, 3146, 12, 718, 67, 768, 67, 3256, 67, 280, 67, 1080, 16, 13655, 33, 20788, 16, 4358, 33, 7342, 16, 4040, 33, 5629, 16, 14502, 33, 1734, 11110, 13, 501, 273, 284, 18, 896, 1435, 309, 3859, 12, 74, 16, 315, 2485, 6, 4672, 309, 10331, 471, 284, 18, 2485, 18, 588, 2668, 1745, 17, 5999, 2187, 28707, 422, 296, 17380, 4278, 775, 30, 2 ]
found=methoddef.search(line) if found: typename, cname, methodname, argkw, doc = found.group("typename", "cname", "methodname", "argkw", "doc")
else: found=methoddef.search(line) if found: typename, cname, methodname, argkw, doc = found.group("typename", "cname", "methodname", "argkw", "doc") if typename:
def detectMethods(line, classdefs): # The below if is to avoid methods, like, for instance, map's clear to be recognized # also as a special method. Special methods never include PYARGS... if line.find("PYARGS")<0: found=specialmethoddef.search(line) if found: typename, methodname = found.group("typename", "methodname") addClassDef(classdefs, typename, parsedFile) classdefs[typename].specialmethods[methodname]=1 found=methoddef.search(line) if found: typename, cname, methodname, argkw, doc = found.group("typename", "cname", "methodname", "argkw", "doc") if not classdefs.has_key(typename) and "_" in typename: com = typename.split("_") if len(com)==2 and classdefs.has_key(com[0]): typename = com[0] cname = com[1] + "_" + cname if not methodname: methodname = cname addClassDef(classdefs, typename, parsedFile) classdefs[typename].methods[methodname]=MethodDefinition(argkw=argkw, arguments=doc, cname=cname) return 1
9ef61b5fe23b958aa80a57e1aa7994be56216f18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/9ef61b5fe23b958aa80a57e1aa7994be56216f18/pyxtract.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 4712, 12, 1369, 16, 667, 12537, 4672, 468, 1021, 5712, 309, 353, 358, 4543, 2590, 16, 3007, 16, 364, 791, 16, 852, 1807, 2424, 358, 506, 16332, 468, 2546, 487, 279, 4582, 707, 18, 13409, 2590, 5903, 2341, 12191, 22439, 2777, 309, 980, 18, 4720, 2932, 16235, 22439, 7923, 32, 20, 30, 1392, 33, 9371, 2039, 536, 18, 3072, 12, 1369, 13, 309, 1392, 30, 26735, 16, 707, 529, 273, 1392, 18, 1655, 2932, 12846, 1069, 3113, 315, 2039, 529, 7923, 9058, 3262, 12, 1106, 12537, 16, 26735, 16, 2707, 812, 13, 667, 12537, 63, 12846, 1069, 8009, 9371, 5163, 63, 2039, 529, 65, 33, 21, 225, 469, 30, 1392, 33, 2039, 536, 18, 3072, 12, 1369, 13, 309, 1392, 30, 26735, 16, 18290, 16, 707, 529, 16, 1501, 9987, 16, 997, 273, 1392, 18, 1655, 2932, 12846, 1069, 3113, 315, 71, 529, 3113, 315, 2039, 529, 3113, 315, 3175, 9987, 3113, 315, 2434, 7923, 225, 309, 26735, 30, 309, 486, 667, 12537, 18, 5332, 67, 856, 12, 12846, 1069, 13, 471, 8802, 316, 26735, 30, 532, 273, 26735, 18, 4939, 2932, 67, 7923, 309, 562, 12, 832, 13, 631, 22, 471, 667, 12537, 18, 5332, 67, 856, 12, 832, 63, 20, 65, 4672, 26735, 273, 532, 63, 20, 65, 18290, 273, 532, 63, 21, 65, 397, 8802, 397, 18290, 225, 309, 486, 707, 529, 30, 707, 529, 273, 18290, 225, 9058, 3262, 12, 1106, 12537, 16, 26735, 16, 2707, 812, 13, 667, 12537, 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, 5966, 4712, 12, 1369, 16, 667, 12537, 4672, 468, 1021, 5712, 309, 353, 358, 4543, 2590, 16, 3007, 16, 364, 791, 16, 852, 1807, 2424, 358, 506, 16332, 468, 2546, 487, 279, 4582, 707, 18, 13409, 2590, 5903, 2341, 12191, 22439, 2777, 309, 980, 18, 4720, 2932, 16235, 22439, 7923, 32, 20, 30, 1392, 33, 9371, 2039, 536, 18, 3072, 12, 1369, 13, 309, 1392, 30, 26735, 16, 707, 529, 273, 1392, 18, 1655, 2932, 12846, 1069, 3113, 315, 2039, 529, 7923, 9058, 3262, 12, 1106, 12537, 16, 26735, 16, 2707, 812, 13, 667, 12537, 63, 12846, 1069, 8009, 9371, 5163, 63, 2039, 529, 65, 33, 21, 225, 469, 30, 1392, 33, 2039, 536, 18, 3072, 12, 1369, 2 ]
if secret_key:
if secret_key is not None:
def get_credentials(self, access_key=None, secret_key=None): access_key_name, secret_key_name = self.CredentialMap[self.name] if access_key: self.access_key = access_key elif os.environ.has_key(access_key_name.upper()): self.access_key = os.environ[access_key_name.upper()] elif config.has_option('Credentials', access_key_name): self.access_key = config.get('Credentials', access_key_name)
bbb705d7cc200745e811b0e946e6fceb0cbb333e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/bbb705d7cc200745e811b0e946e6fceb0cbb333e/provider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11687, 12, 2890, 16, 2006, 67, 856, 33, 7036, 16, 4001, 67, 856, 33, 7036, 4672, 2006, 67, 856, 67, 529, 16, 4001, 67, 856, 67, 529, 273, 365, 18, 8605, 863, 63, 2890, 18, 529, 65, 309, 2006, 67, 856, 30, 365, 18, 3860, 67, 856, 273, 2006, 67, 856, 1327, 1140, 18, 28684, 18, 5332, 67, 856, 12, 3860, 67, 856, 67, 529, 18, 5797, 1435, 4672, 365, 18, 3860, 67, 856, 273, 1140, 18, 28684, 63, 3860, 67, 856, 67, 529, 18, 5797, 1435, 65, 1327, 642, 18, 5332, 67, 3482, 2668, 6163, 2187, 2006, 67, 856, 67, 529, 4672, 365, 18, 3860, 67, 856, 273, 642, 18, 588, 2668, 6163, 2187, 2006, 67, 856, 67, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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1140, 18, 28684, 18, 5332, 67, 856, 12, 3860, 67, 856, 67, 529, 18, 5797, 1435, 4672, 365, 18, 3860, 67, 856, 273, 1140, 18, 28684, 63, 3860, 67, 856, 67, 529, 18, 5797, 1435, 65, 1327, 642, 18, 5332, 67, 3482, 2668, 6163, 2187, 2006, 67, 856, 67, 529, 4672, 365, 18, 3860, 67, 856, 273, 642, 18, 588, 2668, 6163, 2187, 2006, 2 ]
self.config= dict (block_size=4096)
self.config= dict ( block_size=4096, in_format=u'%(poster)s: [ found_format=u'[
def init(self, config): self.register (self.events.PUBLIC_MESSAGE, self.message) self.config= dict (block_size=4096) self.config.update (config) self.logger.debug (self.config) self.titleFound= False self.magic= magic.open (magic.MAGIC_MIME) self.magic.load ()
b095e4bb603035f9ad42ee452d8fa5b96db33b12 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5759/b095e4bb603035f9ad42ee452d8fa5b96db33b12/url.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 642, 4672, 365, 18, 4861, 261, 2890, 18, 5989, 18, 14939, 67, 8723, 16, 365, 18, 2150, 13, 365, 18, 1425, 33, 2065, 261, 1203, 67, 1467, 33, 24, 5908, 26, 16, 316, 67, 2139, 33, 89, 11, 17105, 2767, 264, 13, 87, 30, 306, 1392, 67, 2139, 33, 89, 11, 63, 365, 18, 1425, 18, 2725, 261, 1425, 13, 365, 18, 4901, 18, 4148, 261, 2890, 18, 1425, 13, 365, 18, 2649, 2043, 33, 1083, 365, 18, 11179, 33, 8146, 18, 3190, 261, 11179, 18, 49, 22247, 67, 18178, 13, 365, 18, 11179, 18, 945, 1832, 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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0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 642, 4672, 365, 18, 4861, 261, 2890, 18, 5989, 18, 14939, 67, 8723, 16, 365, 18, 2150, 13, 365, 18, 1425, 33, 2065, 261, 1203, 67, 1467, 33, 24, 5908, 26, 16, 316, 67, 2139, 33, 89, 11, 17105, 2767, 264, 13, 87, 30, 306, 1392, 67, 2139, 33, 89, 11, 63, 365, 18, 1425, 18, 2725, 261, 1425, 13, 365, 18, 4901, 18, 4148, 261, 2890, 18, 1425, 13, 365, 18, 2649, 2043, 33, 1083, 365, 18, 11179, 33, 8146, 18, 3190, 261, 11179, 18, 49, 22247, 67, 18178, 13, 365, 18, 11179, 18, 945, 1832, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
out += '<small class="detailedRecordActions">%s:</small> ' % descr
out += '<div><small class="detailedRecordActions">%s:</small> ' % descr
def format(bfo, style, separator='; ', show_icons='no'): """ This is the format for formatting fulltext links in the mini panel. @param separator the separator between urls. @param style CSS class of the link @param show_icons if 'yes', print icons for fulltexts """ _ = gettext_set_language(bfo.lang) out = '' # Retrieve files (parsed_urls, old_versions, additionals) = get_files(bfo) main_urls = parsed_urls['main_urls'] others_urls = parsed_urls['others_urls'] if parsed_urls.has_key('cern_urls'): cern_urls = parsed_urls['cern_urls'] # Prepare style if style != "": style = 'class="'+style+'"' # Build urls list. # Escape special chars for <a> tag value. additional_str = '' if additionals: additional_str = separator + '<small>(<a '+style+' href="'+CFG_SITE_URL+'/record/'+str(bfo.recID)+'/files/">%s</a>)</small>' % _("additional files") versions_str = '' if old_versions: versions_str = separator + '<small>(<a '+style+' href="'+CFG_SITE_URL+'/record/'+str(bfo.recID)+'/files/">%s</a>)</small>' % _("older versions") if main_urls: # Put a big file icon if only one file if len(main_urls.keys()) == 1 and len(main_urls.items()[0][1]) == 1 and \ (not CFG_CERN_SITE or len(cern_urls) == 0) and len(others_urls) == 0 and \ show_icons.lower() == 'yes': file_icon = '<img style="border:none" src="%s/img/file-icon-text-34x48.gif" alt="%s" /><br />' % (CFG_SITE_URL, _("Download fulltext")) elif show_icons.lower() == 'yes': file_icon = '<img style="border:none" src="%s/img/file-icon-text-12x16.gif" alt="%s"/>' % (CFG_SITE_URL, _("Download fulltext")) else: file_icon = '' last_name = "" for descr, urls in main_urls.items(): out += '<small class="detailedRecordActions">%s:</small> ' % descr url_list = [] urls.sort(lambda (url1, name1, format1), (url2, name2, format2): url1 < url2 and -1 or url1 > url2 and 1 or 0) for url, name, format in urls: if not name == last_name and len(main_urls) > 1: print_name = "<em>%s</em> - " % name else: print_name = "" last_name = name url_list.append(print_name + '<a '+style+' href="'+escape(url)+'">'+file_icon+format.upper()+'</a>') out += separator + separator.join(url_list) + \ additional_str + versions_str + '</div>' if CFG_CERN_SITE and cern_urls: # Put a big file icon if only one file if len(main_urls.keys()) == 0 and \ len(cern_urls) == 1 and len(others_urls) == 0 and \ show_icons.lower() == 'yes': file_icon = '<img style="border:none" src="%s/img/file-icon-text-34x48.gif" alt="%s" /><br />' % (CFG_SITE_URL, _("Download fulltext")) elif show_icons.lower() == 'yes': file_icon = '<img style="border:none" src="%s/img/file-icon-text-12x16.gif" alt="%s"/>' % (CFG_SITE_URL, _("Download fulltext")) else: file_icon = '' link_word = len(cern_urls) == 1 and _('link') or _('links') out += '<small class="detailedRecordActions">(%s)</small><br />' % _("CERN %(link_or_links)s" % {'link_or_links' : link_word}) url_list = [] for url, descr in cern_urls: url_list.append('<a '+style+' href="'+escape(url)+'">'+file_icon+escape(str(descr))+'</a>') out += separator.join(url_list) if others_urls: # Put a big file icon if only one file if len(main_urls.keys()) == 0 and \ (not CFG_CERN_SITE or len(cern_urls) == 0) and len(others_urls) == 1 and \ show_icons.lower() == 'yes': file_icon = '<img style="border:none" src="%s/img/file-icon-text-34x48.gif" alt="%s" /><br />' % (CFG_SITE_URL, _("Download fulltext")) elif show_icons.lower() == 'yes': file_icon = '<img style="border:none" src="%s/img/file-icon-text-12x16.gif" alt="%s"/>' % (CFG_SITE_URL, _("Download fulltext")) else: file_icon = '' link_word = len(others_urls) == 1 and _('link') or _('links') out += '<small class="detailedRecordActions">(%s)</small>%s' % (_("external %(link_or_links)s") % {'link_or_links' : link_word}, separator) url_list = [] for url, descr in others_urls: url_list.append('<a '+style+' href="'+escape(url)+'">'+file_icon+escape(str(descr))+'</a>') out += '<small>' + separator.join(url_list) + '</small>' if out.endswith('<br />'): out = out[:-len('<br />')] return out
a1fa94e81816e504670fd6ec9041803fedcc4874 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2763/a1fa94e81816e504670fd6ec9041803fedcc4874/bfe_fulltext_mini.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 70, 617, 16, 2154, 16, 4182, 2218, 31, 2265, 2405, 67, 14516, 2218, 2135, 11, 4672, 3536, 1220, 353, 326, 740, 364, 10407, 1983, 955, 4716, 316, 326, 21959, 6594, 18, 632, 891, 4182, 326, 4182, 3086, 6903, 18, 632, 891, 2154, 6765, 667, 434, 326, 1692, 632, 891, 2405, 67, 14516, 309, 296, 9707, 2187, 1172, 17455, 364, 1983, 26256, 3536, 389, 273, 24972, 67, 542, 67, 4923, 12, 70, 617, 18, 4936, 13, 596, 273, 875, 225, 468, 10708, 1390, 261, 10817, 67, 10518, 16, 1592, 67, 10169, 16, 2719, 1031, 13, 273, 336, 67, 2354, 12, 70, 617, 13, 225, 2774, 67, 10518, 273, 2707, 67, 10518, 3292, 5254, 67, 10518, 3546, 10654, 67, 10518, 273, 2707, 67, 10518, 3292, 28197, 67, 10518, 3546, 309, 2707, 67, 10518, 18, 5332, 67, 856, 2668, 14770, 67, 10518, 11, 4672, 276, 8865, 67, 10518, 273, 2707, 67, 10518, 3292, 14770, 67, 10518, 3546, 225, 468, 7730, 2154, 309, 2154, 480, 1408, 30, 2154, 273, 296, 1106, 5300, 15, 4060, 15, 4970, 11, 225, 468, 3998, 6903, 666, 18, 468, 18025, 4582, 5230, 364, 411, 69, 34, 1047, 460, 18, 225, 3312, 67, 701, 273, 875, 309, 2719, 1031, 30, 3312, 67, 701, 273, 4182, 397, 2368, 12019, 34, 12, 32, 69, 15126, 4060, 6797, 3897, 5300, 15, 19727, 67, 20609, 67, 1785, 6797, 19, 3366, 2473, 15, 701, 12, 70, 617, 18, 3927, 734, 13, 6797, 19, 2354, 4898, 9822, 87, 1757, 69, 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, 740, 12, 70, 617, 16, 2154, 16, 4182, 2218, 31, 2265, 2405, 67, 14516, 2218, 2135, 11, 4672, 3536, 1220, 353, 326, 740, 364, 10407, 1983, 955, 4716, 316, 326, 21959, 6594, 18, 632, 891, 4182, 326, 4182, 3086, 6903, 18, 632, 891, 2154, 6765, 667, 434, 326, 1692, 632, 891, 2405, 67, 14516, 309, 296, 9707, 2187, 1172, 17455, 364, 1983, 26256, 3536, 389, 273, 24972, 67, 542, 67, 4923, 12, 70, 617, 18, 4936, 13, 596, 273, 875, 225, 468, 10708, 1390, 261, 10817, 67, 10518, 16, 1592, 67, 10169, 16, 2719, 1031, 13, 273, 336, 67, 2354, 12, 70, 617, 13, 225, 2774, 67, 10518, 273, 2707, 67, 10518, 3292, 5254, 67, 10518, 3546, 10654, 2 ]
Paragraph:[Paragraph]}
Paragraph:[Paragraph] }
def __init__(self, tree, save_reports=False, nesting_strictness='loose'): """Init with parsetree.
853dc8d05b40aa3df5d186ebf0b6b5b8c087eb3c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/853dc8d05b40aa3df5d186ebf0b6b5b8c087eb3c/treecleaner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2151, 16, 1923, 67, 20195, 33, 8381, 16, 17174, 67, 13948, 4496, 2218, 383, 2584, 11, 4672, 3536, 2570, 598, 779, 542, 992, 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, 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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, 1001, 2738, 972, 12, 2890, 16, 2151, 16, 1923, 67, 20195, 33, 8381, 16, 17174, 67, 13948, 4496, 2218, 383, 2584, 11, 4672, 3536, 2570, 598, 779, 542, 992, 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 ]
self.file.close() self.sock.close()
self.shutdown()
def logout(self): """Shutdown connection to server.
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, 12735, 12, 2890, 4672, 3536, 10961, 1459, 358, 1438, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12735, 12, 2890, 4672, 3536, 10961, 1459, 358, 1438, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
bob = D20Character( "Bob", race, { 'STR': 13, 'DEX':15, 'CON':12, 'INT':10, 'WIS':8, 'CHA':18, 'HEIGHT':72, 'WEIGHT':221, 'WIDTH':24, 'DEPTH':12 } )
bob = D20Character( "Bob", race, { 'STR': 150, 'DEX':15, 'CON':12, 'INT':10, 'WIS':8, 'CHA':18, 'HEIGHT':72, 'WEIGHT':221, 'WIDTH':24, 'DEPTH':12 } )
def getLevel( self ): charlevelnum = 1 try: for level in self.levels[ 'RACE' ].values( ): if level.enabled: charlevelnum += 1 except KeyError: pass return charlevelnum
207ed87faf315ab793ddacf4ee0ecdc556ae8941 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2289/207ed87faf315ab793ddacf4ee0ecdc556ae8941/d20rep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17236, 12, 365, 262, 30, 1149, 2815, 2107,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17236, 12, 365, 262, 30, 1149, 2815, 2107, 273, 404, 775, 30, 364, 1801, 316, 365, 18, 12095, 63, 296, 9254, 11, 308, 18, 2372, 12, 262, 30, 309, 1801, 18, 5745, 30, 1149, 2815, 2107, 1011, 404, 1335, 4999, 30, 1342, 327, 1149, 2815, 2107, 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 ]
'miro.compiled_templates', 'miro.compiled_templates.unittest',
def setup_distribution(self): self.distribution.app = ['Miro.py'] self.distribution.ext_modules = list() self.distribution.ext_modules.append(self.get_idletime_ext()) self.distribution.ext_modules.append(self.get_keychain_ext()) self.distribution.ext_modules.append(self.get_qtcomp_ext()) self.distribution.ext_modules.append(self.get_database_ext()) self.distribution.ext_modules.append(self.get_sorts_ext()) self.distribution.ext_modules.append(self.get_fasttypes_ext()) self.distribution.ext_modules.append(self.get_libtorrent_ext())
300896b73fbf67a5781ad4266f7594d526dbcce7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/300896b73fbf67a5781ad4266f7594d526dbcce7/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 16279, 12, 2890, 4672, 365, 18, 16279, 18, 2910, 273, 10228, 49, 11373, 18, 2074, 3546, 365, 18, 16279, 18, 408, 67, 6400, 273, 666, 1435, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 350, 1810, 494, 67, 408, 10756, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 856, 5639, 67, 408, 10756, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 23311, 2919, 67, 408, 10756, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 6231, 67, 408, 10756, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 3804, 87, 67, 408, 10756, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 8076, 2352, 67, 408, 10756, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 2941, 13039, 547, 67, 408, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 16279, 12, 2890, 4672, 365, 18, 16279, 18, 2910, 273, 10228, 49, 11373, 18, 2074, 3546, 365, 18, 16279, 18, 408, 67, 6400, 273, 666, 1435, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 350, 1810, 494, 67, 408, 10756, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 856, 5639, 67, 408, 10756, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 23311, 2919, 67, 408, 10756, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 6231, 67, 408, 10756, 365, 18, 16279, 18, 408, 67, 6400, 18, 6923, 12, 2890, 18, 588, 67, 2 ]
if qt: img = QImage(10, 10, QImage.Format_ARGB32_Premultiplied) try: if not img.loadFromData(raw): continue except: continue width, height = img.width(), img.height() else: f = cStringIO.StringIO(raw) try: im = PILImage.open(f) except IOError: continue width, height = im.size
try: img = Image() img.load(raw) except: continue width, height = img.size
def rescale(self, qt=True): from PyQt4.Qt import QImage, Qt from calibre.gui2 import pixmap_to_data try: from PIL import Image as PILImage PILImage except ImportError: import Image as PILImage
19d3a38ee969834ef92e91c2e51fc7c01f1857e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/19d3a38ee969834ef92e91c2e51fc7c01f1857e2/rescale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30323, 12, 2890, 16, 25672, 33, 5510, 4672, 628, 4707, 23310, 24, 18, 23310, 1930, 2238, 2040, 16, 7354, 628, 26139, 266, 18, 20292, 22, 1930, 11871, 1458, 67, 869, 67, 892, 775, 30, 628, 29407, 1930, 3421, 487, 29407, 2040, 29407, 2040, 1335, 11308, 30, 1930, 3421, 487, 29407, 2040, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30323, 12, 2890, 16, 25672, 33, 5510, 4672, 628, 4707, 23310, 24, 18, 23310, 1930, 2238, 2040, 16, 7354, 628, 26139, 266, 18, 20292, 22, 1930, 11871, 1458, 67, 869, 67, 892, 775, 30, 628, 29407, 1930, 3421, 487, 29407, 2040, 29407, 2040, 1335, 11308, 30, 1930, 3421, 487, 29407, 2040, 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 ]
dat=N.array(res[1])
def __read_param(self): ''' Read params.log file and write corresponding data Should only be called by __init__''' if self.__creating: fpar=param_file(self.datadir+'params.log',precision=self.precision) while True: (descr,res)=fpar.readline() if descr=='i': sec='init' elif descr=='r': if sec=='init': sec='run' firstrun=True else: firstrun=False elif descr=='d': self.param[sec].attrs['date']=res elif descr=='t' and sec=='run': if firstrun: self.param['run'].create_dataset('timerun',(1,),data=res,maxshape=(None,)) else: append(self.param['run/timerun'],res) elif descr=='&': if sec=='run' and firstrun==False: subsec=self.param[sec+'/'+res] else: subsec=self.param[sec].create_group(res) elif descr=='p': if sec=='run': if firstrun==False: append(subsec[res[0]],res[1]) else: dat=N.array(res[1]) try: subsec.create_dataset(res[0],data=dat.reshape([1]+list(dat.shape)),maxshape=tuple([None]+list(dat.shape))) except ValueError: print "Warning! Multiple presence of "+res[0]+" in params.log run parameters" subsec[res[0]][0]=res[1] else: try: subsec.create_dataset(res[0],data=res[1]) except ValueError: print "Warning! Multiple presence of "+res[0]+" in params.log init parameters" subsec[res[0]][0]=res[1] elif descr=='e': break del(fpar)
bf1a599ad9cde581f4679533ab3c54c55f5e9732 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1377/bf1a599ad9cde581f4679533ab3c54c55f5e9732/hdf5.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 896, 67, 891, 12, 2890, 4672, 9163, 2720, 859, 18, 1330, 585, 471, 1045, 4656, 501, 9363, 1338, 506, 2566, 635, 1001, 2738, 972, 26418, 309, 365, 16186, 23799, 30, 284, 1065, 33, 891, 67, 768, 12, 2890, 18, 3404, 361, 481, 6797, 2010, 18, 1330, 2187, 14548, 33, 2890, 18, 14548, 13, 1323, 1053, 30, 261, 28313, 16, 455, 13, 33, 74, 1065, 18, 896, 1369, 1435, 309, 18426, 18920, 77, 4278, 1428, 2218, 2738, 11, 1327, 18426, 18920, 86, 4278, 309, 1428, 18920, 2738, 4278, 1428, 2218, 2681, 11, 284, 481, 701, 318, 33, 5510, 469, 30, 284, 481, 701, 318, 33, 8381, 1327, 18426, 18920, 72, 4278, 365, 18, 891, 63, 3321, 8009, 7039, 3292, 712, 3546, 33, 455, 1327, 18426, 18920, 88, 11, 471, 1428, 18920, 2681, 4278, 309, 284, 481, 701, 318, 30, 365, 18, 891, 3292, 2681, 29489, 2640, 67, 8682, 2668, 12542, 318, 2187, 12, 21, 16, 3631, 892, 33, 455, 16, 1896, 4867, 28657, 7036, 16, 3719, 469, 30, 714, 12, 2890, 18, 891, 3292, 2681, 19, 12542, 318, 17337, 455, 13, 1327, 18426, 18920, 10, 4278, 309, 1428, 18920, 2681, 11, 471, 284, 481, 701, 318, 631, 8381, 30, 720, 3321, 33, 2890, 18, 891, 63, 3321, 6797, 2473, 15, 455, 65, 469, 30, 720, 3321, 33, 2890, 18, 891, 63, 3321, 8009, 2640, 67, 1655, 12, 455, 13, 1327, 18426, 18920, 84, 4278, 309, 1428, 18920, 2681, 4278, 309, 284, 481, 701, 318, 631, 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, 1001, 896, 67, 891, 12, 2890, 4672, 9163, 2720, 859, 18, 1330, 585, 471, 1045, 4656, 501, 9363, 1338, 506, 2566, 635, 1001, 2738, 972, 26418, 309, 365, 16186, 23799, 30, 284, 1065, 33, 891, 67, 768, 12, 2890, 18, 3404, 361, 481, 6797, 2010, 18, 1330, 2187, 14548, 33, 2890, 18, 14548, 13, 1323, 1053, 30, 261, 28313, 16, 455, 13, 33, 74, 1065, 18, 896, 1369, 1435, 309, 18426, 18920, 77, 4278, 1428, 2218, 2738, 11, 1327, 18426, 18920, 86, 4278, 309, 1428, 18920, 2738, 4278, 1428, 2218, 2681, 11, 284, 481, 701, 318, 33, 5510, 469, 30, 284, 481, 701, 318, 33, 8381, 1327, 18426, 18920, 72, 4278, 365, 18, 891, 63, 3321, 8009, 7039, 2 ]
method_id.append(struct.pack('>q', hash(func_code.co_consts)))
method_id.append(struct.pack('>q', hash(func_code.co_consts[1:])))
def generate_webmethod_etag(context, item, registration, wrapper): if item is not None: # locate web method's descriptor filter_class = wrapper.__class__ while wrapper.__class__.__module__ == filter_class.__module__: wrapper = wrapper.decorator
1692745fd9975a8e1a00c7f44871a075546ae2ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2504/1692745fd9975a8e1a00c7f44871a075546ae2ed/caching.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 4875, 2039, 67, 20788, 12, 2472, 16, 761, 16, 7914, 16, 4053, 4672, 309, 761, 353, 486, 599, 30, 468, 10627, 3311, 707, 1807, 4950, 1034, 67, 1106, 273, 4053, 16186, 1106, 972, 1323, 4053, 16186, 1106, 972, 16186, 2978, 972, 422, 1034, 67, 1106, 16186, 2978, 972, 30, 4053, 273, 4053, 18, 19142, 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,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, 4875, 2039, 67, 20788, 12, 2472, 16, 761, 16, 7914, 16, 4053, 4672, 309, 761, 353, 486, 599, 30, 468, 10627, 3311, 707, 1807, 4950, 1034, 67, 1106, 273, 4053, 16186, 1106, 972, 1323, 4053, 16186, 1106, 972, 16186, 2978, 972, 422, 1034, 67, 1106, 16186, 2978, 972, 30, 4053, 273, 4053, 18, 19142, 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 ]
setupTools(self)
if not reinstall: setupTools(self)
def install(self, out=None): if out is None: out = StringIO() setupTools(self) installSubSkin(self, skin_name, out) # Install configlet cptool = getToolByName(self, 'portal_controlpanel') try: cptool.unregisterConfiglet(placeful_prefs_configlet['id']) except: pass try: cptool.registerConfiglet(**placeful_prefs_configlet) except: pass return out.getvalue()
d54a8672d097321fe2dab06540f1857807371573 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11955/d54a8672d097321fe2dab06540f1857807371573/Install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 16, 596, 33, 7036, 4672, 309, 596, 353, 599, 30, 596, 273, 15777, 1435, 225, 309, 486, 283, 5425, 30, 3875, 10348, 12, 2890, 13, 225, 3799, 1676, 26827, 12, 2890, 16, 18705, 67, 529, 16, 596, 13, 225, 468, 10284, 642, 1810, 29141, 1371, 273, 336, 6364, 5911, 12, 2890, 16, 296, 24386, 67, 7098, 13916, 6134, 775, 30, 29141, 1371, 18, 318, 4861, 809, 1810, 12, 964, 2706, 67, 1484, 2556, 67, 1425, 1810, 3292, 350, 19486, 1335, 30, 1342, 775, 30, 29141, 1371, 18, 4861, 809, 1810, 12, 636, 964, 2706, 67, 1484, 2556, 67, 1425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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 16, 596, 33, 7036, 4672, 309, 596, 353, 599, 30, 596, 273, 15777, 1435, 225, 309, 486, 283, 5425, 30, 3875, 10348, 12, 2890, 13, 225, 3799, 1676, 26827, 12, 2890, 16, 18705, 67, 529, 16, 596, 13, 225, 468, 10284, 642, 1810, 29141, 1371, 273, 336, 6364, 5911, 12, 2890, 16, 296, 24386, 67, 7098, 13916, 6134, 775, 30, 29141, 1371, 18, 318, 4861, 809, 1810, 12, 964, 2706, 67, 1484, 2556, 67, 1425, 1810, 3292, 350, 19486, 1335, 30, 1342, 775, 30, 29141, 1371, 18, 4861, 809, 1810, 12, 636, 964, 2706, 67, 1484, 2556, 67, 1425, 1810, 13, 1335, 30, 1342, 327, 596, 18, 588, 1132, 1435, 282, 2, -100, -100, -100, -100 ]
return httptools.redirect("/ecomap/" + str(self.ecomap.id) + "/")
return httptools.redirect("/ecomap/" + str(ecomap.id) + "/")
def edit(self,name="",description=""): es = EcomapSchema() try: d = es.to_python({'name' : name, 'description' : description, 'owner' : self.ecomap.ownerID}) self.ecomap.name = d['name'] self.ecomap.description = d['description'] self.ecomap.modified = DateTime.now() cherrypy.session['message'] = "changes saved" return httptools.redirect("/ecomap/" + str(self.ecomap.id) + "/")
bd620ed6e7bc94139cb8bd730d5c5775ee916a14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5854/bd620ed6e7bc94139cb8bd730d5c5775ee916a14/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 529, 1546, 3113, 3384, 1546, 6, 4672, 5001, 273, 512, 832, 438, 3078, 1435, 775, 30, 302, 273, 5001, 18, 869, 67, 8103, 12590, 11, 529, 11, 294, 508, 16, 296, 3384, 11, 294, 2477, 16, 296, 8443, 11, 294, 365, 18, 30433, 438, 18, 8443, 734, 6792, 365, 18, 30433, 438, 18, 529, 273, 302, 3292, 529, 3546, 365, 18, 30433, 438, 18, 3384, 273, 302, 3292, 3384, 3546, 365, 18, 30433, 438, 18, 7342, 273, 3716, 18, 3338, 1435, 462, 370, 28398, 18, 3184, 3292, 2150, 3546, 273, 315, 6329, 5198, 6, 327, 15851, 337, 8192, 18, 7590, 2932, 19, 30433, 438, 4898, 397, 609, 12, 2890, 18, 30433, 438, 18, 350, 13, 397, 4016, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 529, 1546, 3113, 3384, 1546, 6, 4672, 5001, 273, 512, 832, 438, 3078, 1435, 775, 30, 302, 273, 5001, 18, 869, 67, 8103, 12590, 11, 529, 11, 294, 508, 16, 296, 3384, 11, 294, 2477, 16, 296, 8443, 11, 294, 365, 18, 30433, 438, 18, 8443, 734, 6792, 365, 18, 30433, 438, 18, 529, 273, 302, 3292, 529, 3546, 365, 18, 30433, 438, 18, 3384, 273, 302, 3292, 3384, 3546, 365, 18, 30433, 438, 18, 7342, 273, 3716, 18, 3338, 1435, 462, 370, 28398, 18, 3184, 3292, 2150, 3546, 273, 315, 6329, 5198, 6, 327, 15851, 337, 8192, 18, 7590, 2932, 19, 30433, 438, 4898, 397, 609, 12, 2890, 18, 30433, 438, 18, 350, 2 ]
def __init__(self, address, callback):
def __init__(self, port, callback): self.address = ('127.0.0.1', port) self.url = 'http://127.0.0.1:%d/' % port
def __init__(self, address, callback): self.callback = callback self.base.__init__(self, address, self.handler)
bb384e153d6614fce08e58bada5e06402dc8b3e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bb384e153d6614fce08e58bada5e06402dc8b3e4/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1756, 16, 1348, 4672, 365, 18, 2867, 273, 7707, 14260, 18, 20, 18, 20, 18, 21, 2187, 1756, 13, 365, 18, 718, 273, 296, 2505, 2207, 14260, 18, 20, 18, 20, 18, 21, 5319, 72, 2473, 738, 1756, 365, 18, 3394, 273, 1348, 365, 18, 1969, 16186, 2738, 972, 12, 2890, 16, 1758, 16, 365, 18, 4176, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1756, 16, 1348, 4672, 365, 18, 2867, 273, 7707, 14260, 18, 20, 18, 20, 18, 21, 2187, 1756, 13, 365, 18, 718, 273, 296, 2505, 2207, 14260, 18, 20, 18, 20, 18, 21, 5319, 72, 2473, 738, 1756, 365, 18, 3394, 273, 1348, 365, 18, 1969, 16186, 2738, 972, 12, 2890, 16, 1758, 16, 365, 18, 4176, 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 ]
try:
def __repr__ (self): try: status = [self.__class__.__module__+"."+self.__class__.__name__] if self.accepting and self.addr: status.append ('listening') elif self.connected: status.append ('connected') if self.addr: if type(self.addr) == types.TupleType: status.append ('%s:%d' % self.addr) else: status.append (self.addr) return '<%s at %#x>' % (' '.join (status), id (self)) except: pass
8c78ff4da0a516b57cb5882531d99104f951b057 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8c78ff4da0a516b57cb5882531d99104f951b057/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 261, 2890, 4672, 1267, 273, 306, 2890, 16186, 1106, 972, 16186, 2978, 972, 9078, 1199, 15, 2890, 16186, 1106, 972, 16186, 529, 972, 65, 309, 365, 18, 9436, 310, 471, 365, 18, 4793, 30, 1267, 18, 6923, 7707, 18085, 310, 6134, 1327, 365, 18, 8537, 30, 1267, 18, 6923, 7707, 8537, 6134, 309, 365, 18, 4793, 30, 309, 618, 12, 2890, 18, 4793, 13, 422, 1953, 18, 9038, 559, 30, 1267, 18, 6923, 7707, 9, 87, 5319, 72, 11, 738, 365, 18, 4793, 13, 469, 30, 1267, 18, 6923, 261, 2890, 18, 4793, 13, 327, 2368, 9, 87, 622, 738, 7, 92, 1870, 738, 7707, 2418, 5701, 261, 2327, 3631, 612, 261, 2890, 3719, 1335, 30, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 309, 365, 18, 9436, 310, 471, 365, 18, 4793, 30, 1267, 18, 6923, 7707, 18085, 310, 6134, 1327, 365, 18, 8537, 30, 1267, 18, 6923, 7707, 8537, 6134, 309, 365, 18, 4793, 30, 309, 618, 12, 2890, 18, 4793, 13, 422, 1953, 18, 9038, 559, 30, 1267, 18, 6923, 7707, 9, 87, 5319, 72, 11, 738, 365, 18, 4793, 13, 469, 30, 1267, 18, 6923, 261, 2890, 18, 4793, 13, 327, 2368, 9, 87, 622, 738, 7, 92, 1870, 738, 7707, 2418, 5701, 261, 2327, 3631, 612, 261, 2890, 3719, 1335, 2 ]
self.atoms = list(atomlist) for atm in atomlist:
self.atoms = list(atomList) for atm in atomList:
def setAtoms(self, atomList): """ Set the jig's atoms to the atoms in the parameter atomList. If this jig already has atoms, it first removes its reference. It also makes sure that this jig is not already in the atom.jigs (a list that each individual atom in the atomList maintains) @param atomList: List of atoms to which this jig needs to be attached. @type atomList: list @see: L{self._remove_all_atoms} @see: L{RotaryMotorEditController._modifyStructure} for an example use @see: L{self.setShaft} """ # [as of 050415 (and long before) this is only used for # motors; __init__ does same thing for other jigs] if self.atoms: # intended to fix bug 2561 more safely than the prior change [bruce 071010] self._remove_all_atoms() self.atoms = list(atomlist) # copy the list for atm in atomlist: if self in atm.jigs: print "bug: %r is already in %r.jigs, just before we want" \ " to add it" % (self, atm) else: atm.jigs.append(self) #k not sure if following is needed -- bruce 060322 _changed_structure_Atoms[atm.key] = atm return
3265b3295e69ff7a5be5d40da77184cbde1f99a3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/3265b3295e69ff7a5be5d40da77184cbde1f99a3/jigs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 14280, 12, 2890, 16, 3179, 682, 4672, 3536, 1000, 326, 525, 360, 1807, 9006, 358, 326, 9006, 316, 326, 1569, 3179, 682, 18, 971, 333, 525, 360, 1818, 711, 9006, 16, 518, 1122, 7157, 2097, 2114, 18, 2597, 2546, 7297, 3071, 716, 333, 525, 360, 353, 486, 1818, 316, 326, 3179, 18, 78, 360, 87, 261, 69, 666, 716, 1517, 7327, 3179, 316, 326, 3179, 682, 11566, 4167, 13, 632, 891, 3179, 682, 30, 987, 434, 9006, 358, 1492, 333, 525, 360, 4260, 358, 506, 7495, 18, 632, 723, 225, 3179, 682, 30, 666, 632, 5946, 30, 511, 95, 2890, 6315, 4479, 67, 454, 67, 14937, 97, 632, 5946, 30, 511, 95, 8570, 814, 24749, 280, 4666, 2933, 6315, 17042, 6999, 97, 364, 392, 3454, 999, 632, 5946, 30, 511, 95, 2890, 18, 542, 20375, 1222, 97, 3536, 468, 306, 345, 434, 15331, 3028, 3600, 261, 464, 1525, 1865, 13, 333, 353, 1338, 1399, 364, 468, 11310, 1383, 31, 1001, 2738, 972, 1552, 1967, 7757, 364, 1308, 525, 360, 87, 65, 309, 365, 18, 14937, 30, 468, 12613, 358, 2917, 7934, 8303, 21, 1898, 15303, 2353, 326, 6432, 2549, 306, 2848, 3965, 10934, 15168, 20, 65, 365, 6315, 4479, 67, 454, 67, 14937, 1435, 365, 18, 14937, 273, 666, 12, 7466, 1098, 13, 468, 1610, 326, 666, 364, 622, 81, 316, 3179, 1098, 30, 309, 365, 316, 622, 81, 18, 78, 360, 87, 30, 1172, 315, 925, 30, 738, 86, 353, 1818, 316, 738, 86, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 14280, 12, 2890, 16, 3179, 682, 4672, 3536, 1000, 326, 525, 360, 1807, 9006, 358, 326, 9006, 316, 326, 1569, 3179, 682, 18, 971, 333, 525, 360, 1818, 711, 9006, 16, 518, 1122, 7157, 2097, 2114, 18, 2597, 2546, 7297, 3071, 716, 333, 525, 360, 353, 486, 1818, 316, 326, 3179, 18, 78, 360, 87, 261, 69, 666, 716, 1517, 7327, 3179, 316, 326, 3179, 682, 11566, 4167, 13, 632, 891, 3179, 682, 30, 987, 434, 9006, 358, 1492, 333, 525, 360, 4260, 358, 506, 7495, 18, 632, 723, 225, 3179, 682, 30, 666, 632, 5946, 30, 511, 95, 2890, 6315, 4479, 67, 454, 67, 14937, 97, 632, 5946, 30, 511, 95, 8570, 814, 24749, 280, 4666, 2 ]
tab = gtk.Label(label)
tab = gtk.HBox(False, 0) tab.set_border_width(2) labelbox = gtk.Label(label) tab.pack_end(labelbox, True, True, 3) image = gtk.Image() icon = settings.get("icon", "") if os.path.exists(icon): (labelx, labely) = labelbox.size_request() pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.realpath(icon)) icon_width = pixbuf.get_width() icon_height = pixbuf.get_height() if (icon_height > labely): icon_aspectratio = float(icon_width) / icon_height icon_height = labely icon_width = int(icon_aspectratio * icon_height) scaled_buf = pixbuf.scale_simple(icon_width,icon_height,gtk.gdk.INTERP_BILINEAR) image.set_from_pixbuf(scaled_buf) tab.pack_start(image, False, False, 3) image.show() labelbox.show()
def build(self, items):
42a457cb6cc9f762725598ee1c6614908be15aec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5768/42a457cb6cc9f762725598ee1c6614908be15aec/ConfigDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 1516, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1361, 12, 2890, 16, 1516, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"email-from=","rotate","verbose","stats","sort"])
"email-from=","rotate","verbose","stats","sort", "debug"])
def main(): # The defaults logfile = "/var/log/syslog" configfile = "/etc/box/bbackupd.conf" email_to = None email_from = "report@boxbackup" rotate = False verbose = False stats = False sort = False # Parse the options try: opts, args = getopt.getopt(sys.argv[1:], "osrvhl:c:t:f:", ["help", "logfile=", "configfile=","email-to=", "email-from=","rotate","verbose","stats","sort"]) except getopt.GetoptError: usage() return for opt, arg in opts: if(opt in ("--logfile","-l")): logfile = arg elif(opt in ("--configfile", "-c")): configfile = arg elif(opt in ("--email-to", "-t")): email_to = arg elif(opt in ("--email-from", "-f")): email_from = arg elif(opt in ("--rotate", "-r")): rotate = True elif(opt in ("--verbose", "-v")): verbose = True elif(opt in ("--stats", "-s")): stats = True elif(opt in ("--sort", "-o")): sort = True elif(opt in ("--help", "-h")): usage() return # Run the reporter bbr = BoxBackupReporter(configfile, logfile, email_to, email_from, rotate, verbose, stats, sort) try: bbr.run() bbr.deliver() except BoxBackupReporter.BoxBackupReporterError, error_msg: print error_msg
601d178ad8d63fc13ab2f6ac5f533a7c3a13077d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4252/601d178ad8d63fc13ab2f6ac5f533a7c3a13077d/bbreporter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 1021, 3467, 15204, 273, 2206, 1401, 19, 1330, 19, 9499, 1330, 6, 642, 768, 273, 2206, 14175, 19, 2147, 19, 70, 823, 5533, 18, 3923, 6, 2699, 67, 869, 273, 599, 2699, 67, 2080, 273, 315, 6006, 36, 2147, 9572, 6, 8534, 273, 1083, 3988, 273, 1083, 3177, 273, 1083, 1524, 273, 1083, 225, 468, 2884, 326, 702, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 538, 4962, 25356, 30, 71, 30, 88, 30, 74, 2773, 16, 8247, 5201, 3113, 315, 28806, 1546, 16, 315, 1425, 768, 1546, 10837, 3652, 17, 869, 1546, 16, 315, 3652, 17, 2080, 1546, 10837, 20342, 15937, 11369, 15937, 5296, 15937, 3804, 3113, 315, 4148, 6, 5717, 1335, 336, 3838, 18, 967, 3838, 668, 30, 4084, 1435, 327, 225, 364, 2153, 16, 1501, 316, 1500, 30, 309, 12, 3838, 316, 7566, 413, 28806, 15937, 17, 80, 6, 3719, 30, 15204, 273, 1501, 1327, 12, 3838, 316, 7566, 413, 1425, 768, 3113, 3701, 71, 6, 3719, 30, 642, 768, 273, 1501, 1327, 12, 3838, 316, 7566, 413, 3652, 17, 869, 3113, 3701, 88, 6, 3719, 30, 2699, 67, 869, 273, 1501, 1327, 12, 3838, 316, 7566, 413, 3652, 17, 2080, 3113, 3701, 74, 6, 3719, 30, 2699, 67, 2080, 273, 1501, 1327, 12, 3838, 316, 7566, 413, 20342, 3113, 3701, 86, 6, 3719, 30, 8534, 273, 1053, 1327, 12, 3838, 316, 7566, 413, 11369, 3113, 3701, 90, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 1021, 3467, 15204, 273, 2206, 1401, 19, 1330, 19, 9499, 1330, 6, 642, 768, 273, 2206, 14175, 19, 2147, 19, 70, 823, 5533, 18, 3923, 6, 2699, 67, 869, 273, 599, 2699, 67, 2080, 273, 315, 6006, 36, 2147, 9572, 6, 8534, 273, 1083, 3988, 273, 1083, 3177, 273, 1083, 1524, 273, 1083, 225, 468, 2884, 326, 702, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 538, 4962, 25356, 30, 71, 30, 88, 30, 74, 2773, 16, 8247, 5201, 3113, 315, 28806, 1546, 16, 315, 1425, 768, 1546, 10837, 3652, 17, 869, 1546, 16, 315, 3652, 17, 2080, 1546, 10837, 20342, 15937, 11369, 2 ]
fashion_help_wizard('fashion.help.wizard')
fashion_help_wizard('fashion.help.wizard')
def field_value(f): res=data['form'][f] if isinstance(res, list): if len(res): res=res[0][2] else: res=False return res
b487e7b94b0afc52953a6eecd307f6353774256a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/b487e7b94b0afc52953a6eecd307f6353774256a/fashion_help_wizard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 67, 1132, 12, 74, 4672, 400, 33, 892, 3292, 687, 3546, 63, 74, 65, 309, 1549, 12, 455, 16, 666, 4672, 309, 562, 12, 455, 4672, 400, 33, 455, 63, 20, 6362, 22, 65, 469, 30, 400, 33, 8381, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 652, 67, 1132, 12, 74, 4672, 400, 33, 892, 3292, 687, 3546, 63, 74, 65, 309, 1549, 12, 455, 16, 666, 4672, 309, 562, 12, 455, 4672, 400, 33, 455, 63, 20, 6362, 22, 65, 469, 30, 400, 33, 8381, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
os.system('foobnix --stop')
thread.start_new_thread(os.system,("foobnix --stop",))
def on_mediakey(comes_from, what): """ gets called when multimedia keys are pressed down. """ if what in ['Stop', 'Play', 'Next', 'Previous']: if what == 'Stop': os.system('foobnix --stop') elif what == 'Play': os.system('foobnix --play') elif what == 'Next': os.system('foobnix --next') elif what == 'Previous': os.system('foobnix --prev') else: print ('Got a multimedia key...')
486ba87cdfca52d09c74ac28da083e37ee35da92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/486ba87cdfca52d09c74ac28da083e37ee35da92/foobnix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5660, 581, 402, 12, 10127, 67, 2080, 16, 4121, 4672, 3536, 5571, 2566, 1347, 1778, 381, 1980, 1311, 854, 19504, 2588, 18, 3536, 309, 4121, 316, 10228, 4947, 2187, 296, 11765, 2187, 296, 2134, 2187, 296, 8351, 3546, 30, 309, 4121, 422, 296, 4947, 4278, 2650, 18, 1937, 67, 2704, 67, 5930, 12, 538, 18, 4299, 16, 2932, 617, 947, 82, 697, 1493, 5681, 3113, 3719, 1327, 4121, 422, 296, 11765, 4278, 1140, 18, 4299, 2668, 617, 947, 82, 697, 1493, 1601, 6134, 1327, 4121, 422, 296, 2134, 4278, 1140, 18, 4299, 2668, 617, 947, 82, 697, 1493, 4285, 6134, 1327, 4121, 422, 296, 8351, 4278, 1140, 18, 4299, 2668, 617, 947, 82, 697, 1493, 10001, 6134, 469, 30, 1172, 7707, 15617, 279, 1778, 381, 1980, 498, 7821, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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228, 4947, 2187, 296, 11765, 2187, 296, 2134, 2187, 296, 8351, 3546, 30, 309, 4121, 422, 296, 4947, 4278, 2650, 18, 1937, 67, 2704, 67, 5930, 12, 538, 18, 4299, 16, 2932, 617, 947, 82, 697, 1493, 5681, 3113, 3719, 1327, 4121, 422, 296, 11765, 4278, 1140, 18, 4299, 2668, 617, 947, 82, 697, 1493, 1601, 6134, 1327, 4121, 422, 296, 2134, 4278, 1140, 18, 4299, 2668, 617, 947, 82, 697, 1493, 4285, 6134, 1327, 4121, 422, 296, 8351, 4278, 1140, 18, 4299, 2668, 617, 947, 82, 697, 1493, 10001, 2 ]
str = str % tuple([__fix_arg(a) for a in args])
cmd = cmd % tuple([_fix_arg(a) for a in args])
def _execute(self, str, *args): if args: argtype = type(args[0]) if argtype in [types.TupleType, types.DictType]: args = args[0] # ignore any other args else: argtype = types.TupleType
a0e4a88c1bf0f58a9f00b2a09f3a7f9510e22ed1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1238/a0e4a88c1bf0f58a9f00b2a09f3a7f9510e22ed1/bpgsql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 12, 2890, 16, 609, 16, 380, 1968, 4672, 309, 833, 30, 1501, 723, 273, 618, 12, 1968, 63, 20, 5717, 309, 1501, 723, 316, 306, 2352, 18, 9038, 559, 16, 1953, 18, 5014, 559, 14542, 833, 273, 833, 63, 20, 65, 468, 2305, 1281, 1308, 833, 469, 30, 1501, 723, 273, 1953, 18, 9038, 559, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 12, 2890, 16, 609, 16, 380, 1968, 4672, 309, 833, 30, 1501, 723, 273, 618, 12, 1968, 63, 20, 5717, 309, 1501, 723, 316, 306, 2352, 18, 9038, 559, 16, 1953, 18, 5014, 559, 14542, 833, 273, 833, 63, 20, 65, 468, 2305, 1281, 1308, 833, 469, 30, 1501, 723, 273, 1953, 18, 9038, 559, 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 ]
print " %s trained." % (num_spam_trained)
print "\n %s trained." % (num_spam_trained)
def Train(self): if options["globals", "verbose"]: t = time.time()
5a4e609987efb116d678d8ab51380afe0d8b948e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/5a4e609987efb116d678d8ab51380afe0d8b948e/sb_imapfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2197, 267, 12, 2890, 4672, 309, 702, 9614, 16227, 3113, 315, 11369, 11929, 30, 268, 273, 813, 18, 957, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2197, 267, 12, 2890, 4672, 309, 702, 9614, 16227, 3113, 315, 11369, 11929, 30, 268, 273, 813, 18, 957, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print productid, c.getProduct().getHash()
def filter_entitlements_by_products(self, products): matched_data_dict = {} for c in self.entitlement_directory.list(): print "cert", c for product in products: productid = product.getProduct().getHash() print productid, c.getProduct().getHash() if productid == c.getProduct().getHash(): matched_data_dict[c.serialNumber()] = c return matched_data_dict
80ba406f4eadd2bf1f4dc8fd08f1b4dbfc2bfa09 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/80ba406f4eadd2bf1f4dc8fd08f1b4dbfc2bfa09/managerlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 67, 319, 19025, 87, 67, 1637, 67, 18736, 12, 2890, 16, 10406, 4672, 4847, 67, 892, 67, 1576, 273, 2618, 364, 276, 316, 365, 18, 319, 19025, 67, 5149, 18, 1098, 13332, 1172, 315, 7593, 3113, 276, 364, 3017, 316, 10406, 30, 3017, 350, 273, 3017, 18, 588, 4133, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 67, 319, 19025, 87, 67, 1637, 67, 18736, 12, 2890, 16, 10406, 4672, 4847, 67, 892, 67, 1576, 273, 2618, 364, 276, 316, 365, 18, 319, 19025, 67, 5149, 18, 1098, 13332, 1172, 315, 7593, 3113, 276, 364, 3017, 316, 10406, 30, 3017, 350, 273, 3017, 18, 588, 4133, 7675, 588, 2310, 1435, 309, 3017, 350, 422, 276, 18, 588, 4133, 7675, 588, 2310, 13332, 4847, 67, 892, 67, 1576, 63, 71, 18, 8818, 1854, 1435, 65, 273, 276, 327, 4847, 67, 892, 67, 1576, 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 ]
print "Filtering took", time.time() - t, "seconds."
if count is not None: print "\nClassified %s ham, %s spam, and %s unsure." % \ (count["ham"], count["spam"], count["unsure"]) print "Classifying took", time.time() - t, "seconds."
def Filter(self): if options["globals", "verbose"]: t = time.time()
ab09767a7ff8193e46555737b7617a814f80264c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/ab09767a7ff8193e46555737b7617a814f80264c/imapfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4008, 12, 2890, 4672, 309, 702, 9614, 16227, 3113, 315, 11369, 11929, 30, 268, 273, 813, 18, 957, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if robustlist and robustify: for mname in robustlist: m=classdict.get(mname) if m and isinstance(m, types.FunctionType): classdict[mname]=robustify(m)
for mname in robustlist: m=classdict.get(mname) if not m: for b in bases: if hasattr(b, mname): m=getattr(b, mname) break if m: classdict[mname]=_robustify(m) else: print type(m)
def __new__(self, classname, bases, classdict): robustlist=classdict.get('robust') robustify=classdict.get('robustify') if robustlist and robustify: for mname in robustlist: m=classdict.get(mname) if m and isinstance(m, types.FunctionType): classdict[mname]=robustify(m) return type.__new__(self, classname, bases, classdict)
f4eb437d00a665f662ae25d75ce8531afedea6b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/f4eb437d00a665f662ae25d75ce8531afedea6b7/ftpfs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 2890, 16, 7479, 16, 8337, 16, 667, 1576, 4672, 27920, 1098, 33, 1106, 1576, 18, 588, 2668, 303, 70, 641, 6134, 27920, 1164, 33, 1106, 1576, 18, 588, 2668, 303, 70, 641, 1164, 6134, 225, 364, 312, 529, 316, 27920, 1098, 30, 312, 33, 1106, 1576, 18, 588, 12, 81, 529, 13, 309, 486, 312, 30, 364, 324, 316, 8337, 30, 309, 3859, 12, 70, 16, 312, 529, 4672, 312, 33, 588, 1747, 12, 70, 16, 312, 529, 13, 898, 225, 309, 312, 30, 667, 1576, 63, 81, 529, 65, 33, 67, 303, 70, 641, 1164, 12, 81, 13, 469, 30, 1172, 618, 12, 81, 13, 327, 618, 16186, 2704, 972, 12, 2890, 16, 7479, 16, 8337, 16, 667, 1576, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2704, 972, 12, 2890, 16, 7479, 16, 8337, 16, 667, 1576, 4672, 27920, 1098, 33, 1106, 1576, 18, 588, 2668, 303, 70, 641, 6134, 27920, 1164, 33, 1106, 1576, 18, 588, 2668, 303, 70, 641, 1164, 6134, 225, 364, 312, 529, 316, 27920, 1098, 30, 312, 33, 1106, 1576, 18, 588, 12, 81, 529, 13, 309, 486, 312, 30, 364, 324, 316, 8337, 30, 309, 3859, 12, 70, 16, 312, 529, 4672, 312, 33, 588, 1747, 12, 70, 16, 312, 529, 13, 898, 225, 309, 312, 30, 667, 1576, 63, 81, 529, 65, 33, 67, 303, 70, 641, 1164, 12, 81, 13, 469, 30, 1172, 618, 12, 81, 13, 327, 618, 16186, 2704, 972, 12, 2890, 16, 2 ]
self.roomsmodel.prepend([room, num, 10000 + num])
self.roomsmodel.prepend([room, num, 1])
def SetPrivateRooms(self, rooms=[]): for room in rooms: if room[0] not in self.PrivateRooms.keys(): self.PrivateRooms[room[0]] = {"users": [], "joined": room[1], "operators": [], "owned":True, "operator":False} iter = self.roomsmodel.get_iter_root() while iter is not None: room = self.roomsmodel.get_value(iter, 0) lastiter = iter iter = self.roomsmodel.iter_next(iter) if self.IsPrivateRoomOwned(room) or self.IsPrivateRoomMember(room): self.roomsmodel.remove(lastiter) for room in self.PrivateRooms: num = self.PrivateRooms[room]["joined"] if self.IsPrivateRoomOwned(room): self.roomsmodel.prepend([room, num, 20000 + num]) elif self.IsPrivateRoomMember(room): self.roomsmodel.prepend([room, num, 10000 + num])
bd22d9a79d709d993463602575ff87e47daaa60e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/bd22d9a79d709d993463602575ff87e47daaa60e/chatrooms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 6014, 13646, 87, 12, 2890, 16, 26450, 33, 8526, 4672, 364, 7725, 316, 26450, 30, 309, 7725, 63, 20, 65, 486, 316, 365, 18, 6014, 13646, 87, 18, 2452, 13332, 365, 18, 6014, 13646, 87, 63, 13924, 63, 20, 13563, 273, 12528, 5577, 6877, 5378, 16, 315, 5701, 329, 6877, 7725, 63, 21, 6487, 315, 30659, 6877, 5378, 16, 315, 995, 329, 6877, 5510, 16, 315, 9497, 6877, 8381, 97, 1400, 273, 365, 18, 13924, 87, 2284, 18, 588, 67, 2165, 67, 3085, 1435, 1323, 1400, 353, 486, 599, 30, 7725, 273, 365, 18, 13924, 87, 2284, 18, 588, 67, 1132, 12, 2165, 16, 374, 13, 225, 1142, 2165, 273, 1400, 1400, 273, 365, 18, 13924, 87, 2284, 18, 2165, 67, 4285, 12, 2165, 13, 309, 365, 18, 2520, 6014, 13646, 5460, 329, 12, 13924, 13, 578, 365, 18, 2520, 6014, 13646, 4419, 12, 13924, 4672, 365, 18, 13924, 87, 2284, 18, 4479, 12, 2722, 2165, 13, 364, 7725, 316, 365, 18, 6014, 13646, 87, 30, 818, 273, 365, 18, 6014, 13646, 87, 63, 13924, 6362, 6, 5701, 329, 11929, 309, 365, 18, 2520, 6014, 13646, 5460, 329, 12, 13924, 4672, 365, 18, 13924, 87, 2284, 18, 23100, 3816, 13924, 16, 818, 16, 576, 2787, 397, 818, 5717, 1327, 365, 18, 2520, 6014, 13646, 4419, 12, 13924, 4672, 365, 18, 13924, 87, 2284, 18, 23100, 3816, 13924, 16, 818, 16, 404, 5717, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 6014, 13646, 87, 12, 2890, 16, 26450, 33, 8526, 4672, 364, 7725, 316, 26450, 30, 309, 7725, 63, 20, 65, 486, 316, 365, 18, 6014, 13646, 87, 18, 2452, 13332, 365, 18, 6014, 13646, 87, 63, 13924, 63, 20, 13563, 273, 12528, 5577, 6877, 5378, 16, 315, 5701, 329, 6877, 7725, 63, 21, 6487, 315, 30659, 6877, 5378, 16, 315, 995, 329, 6877, 5510, 16, 315, 9497, 6877, 8381, 97, 1400, 273, 365, 18, 13924, 87, 2284, 18, 588, 67, 2165, 67, 3085, 1435, 1323, 1400, 353, 486, 599, 30, 7725, 273, 365, 18, 13924, 87, 2284, 18, 588, 67, 1132, 12, 2165, 16, 374, 13, 225, 1142, 2165, 273, 1400, 1400, 273, 365, 18, 13924, 87, 2 ]
if wid:
if KILLUNKNOWNWINDOWS and wid:
def do_updateEvt(self, event): (what, message, when, where, modifiers) = event wid = Win.WhichWindow(message) if wid and self._windows.has_key(wid): window = self._windows[wid] window.do_rawupdate(wid, event) else: if wid: wid.HideWindow() import sys sys.stderr.write("XXX killed unknown (crashed?) Python window.\n") else: MacOS.HandleEvent(event)
3c8223171f480f081f5718acc3d6edf3b516752c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3c8223171f480f081f5718acc3d6edf3b516752c/Wapplication.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2725, 30990, 12, 2890, 16, 871, 4672, 261, 23770, 16, 883, 16, 1347, 16, 1625, 16, 10429, 13, 273, 871, 15481, 273, 21628, 18, 2888, 1354, 3829, 12, 2150, 13, 309, 15481, 471, 365, 6315, 13226, 18, 5332, 67, 856, 12, 30902, 4672, 2742, 273, 365, 6315, 13226, 63, 30902, 65, 2742, 18, 2896, 67, 1899, 2725, 12, 30902, 16, 871, 13, 469, 30, 309, 1475, 15125, 14737, 31874, 471, 15481, 30, 15481, 18, 15690, 3829, 1435, 1930, 2589, 2589, 18, 11241, 18, 2626, 2932, 15639, 24859, 5917, 261, 3353, 13912, 8535, 6600, 2742, 8403, 82, 7923, 469, 30, 13217, 4618, 18, 3259, 1133, 12, 2575, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2725, 30990, 12, 2890, 16, 871, 4672, 261, 23770, 16, 883, 16, 1347, 16, 1625, 16, 10429, 13, 273, 871, 15481, 273, 21628, 18, 2888, 1354, 3829, 12, 2150, 13, 309, 15481, 471, 365, 6315, 13226, 18, 5332, 67, 856, 12, 30902, 4672, 2742, 273, 365, 6315, 13226, 63, 30902, 65, 2742, 18, 2896, 67, 1899, 2725, 12, 30902, 16, 871, 13, 469, 30, 309, 1475, 15125, 14737, 31874, 471, 15481, 30, 15481, 18, 15690, 3829, 1435, 1930, 2589, 2589, 18, 11241, 18, 2626, 2932, 15639, 24859, 5917, 261, 3353, 13912, 8535, 6600, 2742, 8403, 82, 7923, 469, 30, 13217, 4618, 18, 3259, 1133, 12, 2575, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
(PF_STRING, "save_path", "The path to export the HTML to", os.getcwd()),
(PF_DIRNAME, "save_path", "The path to export the HTML to", os.getcwd()),
def parse_urls (self): """ This will parse any url targets in the href="XX" fields of the given file and return then as a list """ import re url_list = [] try: html_file = open (self.filename) #Regular expression to pick everything up to the next doublequote #character after finding the sequence 'href="'. The found sequences #will be returned as a list by the "findall" method. expr = re.compile (r"""href\=\"([^\"]*?)\"""") url_list = expr.findall (html_file.read (2 ** 18)) html_file.close() except: #silently ignore any errors parsing this. The file being #ovewriten may not be a file genrated by py-slice. pass return url_list
3f1dd8ace4366c5288589187bd8690b2ec8356e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/3f1dd8ace4366c5288589187bd8690b2ec8356e4/py-slice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 10518, 261, 2890, 4672, 3536, 1220, 903, 1109, 1281, 880, 5774, 316, 326, 3897, 1546, 5619, 6, 1466, 434, 326, 864, 585, 471, 327, 1508, 487, 279, 666, 3536, 1930, 283, 880, 67, 1098, 273, 5378, 775, 30, 1729, 67, 768, 273, 1696, 261, 2890, 18, 3459, 13, 225, 468, 17974, 2652, 358, 225, 6002, 7756, 731, 358, 326, 1024, 1645, 6889, 468, 11560, 1839, 13727, 225, 326, 3102, 296, 7547, 5300, 18, 1021, 1392, 8463, 468, 20194, 506, 2106, 487, 225, 279, 666, 635, 326, 315, 4720, 454, 6, 707, 18, 3065, 273, 283, 18, 11100, 261, 86, 8395, 7547, 64, 5189, 8178, 2412, 5772, 8535, 2412, 3660, 7923, 880, 67, 1098, 273, 3065, 18, 4720, 454, 261, 2620, 67, 768, 18, 896, 261, 22, 2826, 6549, 3719, 1729, 67, 768, 18, 4412, 1435, 225, 1335, 30, 468, 21862, 715, 2305, 1281, 1334, 5811, 333, 18, 1021, 585, 3832, 468, 1527, 359, 583, 275, 225, 2026, 486, 506, 279, 225, 585, 3157, 86, 690, 635, 2395, 17, 6665, 18, 1342, 225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, 1652, 1109, 67, 10518, 261, 2890, 4672, 3536, 1220, 903, 1109, 1281, 880, 5774, 316, 326, 3897, 1546, 5619, 6, 1466, 434, 326, 864, 585, 471, 327, 1508, 487, 279, 666, 3536, 1930, 283, 880, 67, 1098, 273, 5378, 775, 30, 1729, 67, 768, 273, 1696, 261, 2890, 18, 3459, 13, 225, 468, 17974, 2652, 358, 225, 6002, 7756, 731, 358, 326, 1024, 1645, 6889, 468, 11560, 1839, 13727, 225, 326, 3102, 296, 7547, 5300, 18, 1021, 1392, 8463, 468, 20194, 506, 2106, 487, 225, 279, 666, 635, 326, 315, 4720, 454, 6, 707, 18, 3065, 273, 283, 18, 11100, 261, 86, 8395, 7547, 64, 5189, 8178, 2412, 5772, 8535, 2412, 3660, 7923, 880, 67, 1098, 273, 3065, 18, 2 ]
dead_pids = set( self.get_process_ids() )
dead_pids = set( self.__processDict.keys() )
def scan_processes_and_threads(self): """ Populates the snapshot with running processes and threads. """ our_pid = win32.GetProcessId( win32.GetCurrentProcess() ) dead_pids = set( self.get_process_ids() ) found_tids = set()
d871788990d36af2a5520f8918a87b71c5035ab2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/d871788990d36af2a5520f8918a87b71c5035ab2/system.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 18675, 67, 464, 67, 12495, 12, 2890, 4672, 3536, 10264, 17099, 326, 4439, 598, 3549, 8488, 471, 7403, 18, 3536, 3134, 67, 6610, 565, 273, 5657, 1578, 18, 967, 2227, 548, 12, 5657, 1578, 18, 967, 3935, 2227, 1435, 262, 225, 8363, 67, 84, 2232, 225, 273, 444, 12, 365, 16186, 2567, 5014, 18, 2452, 1435, 262, 1392, 67, 88, 2232, 273, 444, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 18675, 67, 464, 67, 12495, 12, 2890, 4672, 3536, 10264, 17099, 326, 4439, 598, 3549, 8488, 471, 7403, 18, 3536, 3134, 67, 6610, 565, 273, 5657, 1578, 18, 967, 2227, 548, 12, 5657, 1578, 18, 967, 3935, 2227, 1435, 262, 225, 8363, 67, 84, 2232, 225, 273, 444, 12, 365, 16186, 2567, 5014, 18, 2452, 1435, 262, 1392, 67, 88, 2232, 273, 444, 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 ]
if message.startswith("SHOWSTOPBUTTON: "):
if message.startswith(u"SHOWSTOPBUTTON: "):
def processSocketMsg(self, message): if message.startswith("ACTIVATE: "): NSApp.activateIgnoringOtherApps_(True) return "" if message.startswith("HIDE: "): self.window.orderOut_(self) return "" if message.startswith("SHOW: "): self.window.orderFront_(self) return "" if message.startswith("TITLE: "): self.window.setTitle_(message[7:]) return "" if message.startswith("MESSAGE: "): self.messageFld.setStringValue_(message[9:]) return "" if message.startswith("DETAIL: "): self.detailFld.setStringValue_(message[8:]) return "" if message.startswith("PERCENT: "): self.setPercentageDone(message[9:]) return "" if message.startswith("GETSTOPBUTTONSTATE: "): return "%s\n" % self.stopBtnState if message.startswith("HIDESTOPBUTTON: "): self.stopBtn.setHidden_(True) return "" if message.startswith("SHOWSTOPBUTTON: "): self.stopBtn.setHidden_(False) return "" if message.startswith("ENABLESTOPBUTTON: "): self.stopBtn.setEnabled_(True) return "" if message.startswith("DISABLESTOPBUTTON: "): self.stopBtn.setEnabled_(False) return "" if message.startswith("RESTARTALERT: "): self.doRestartAlert() while 1: if self.restartAlertDismissed: break return "1\n"
54e92711e9eb2572d70240c4a8cff7dd10c36120 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6241/54e92711e9eb2572d70240c4a8cff7dd10c36120/MSController.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 4534, 3332, 12, 2890, 16, 883, 4672, 309, 883, 18, 17514, 1918, 2932, 22271, 1777, 30, 315, 4672, 11472, 3371, 18, 10014, 21702, 8290, 16339, 67, 12, 5510, 13, 327, 1408, 309, 883, 18, 17514, 1918, 2932, 44, 10385, 30, 315, 4672, 365, 18, 5668, 18, 1019, 1182, 67, 12, 2890, 13, 327, 1408, 309, 883, 18, 17514, 1918, 2932, 16677, 30, 315, 4672, 365, 18, 5668, 18, 1019, 9580, 67, 12, 2890, 13, 327, 1408, 309, 883, 18, 17514, 1918, 2932, 14123, 30, 315, 4672, 365, 18, 5668, 18, 542, 4247, 67, 12, 2150, 63, 27, 30, 5717, 327, 1408, 309, 883, 18, 17514, 1918, 2932, 8723, 30, 315, 4672, 365, 18, 2150, 7667, 18, 542, 19733, 67, 12, 2150, 63, 29, 30, 5717, 327, 1408, 309, 883, 18, 17514, 1918, 2932, 40, 19810, 30, 315, 4672, 365, 18, 8992, 7667, 18, 542, 19733, 67, 12, 2150, 63, 28, 30, 5717, 327, 1408, 309, 883, 18, 17514, 1918, 2932, 3194, 19666, 30, 315, 4672, 365, 18, 542, 16397, 7387, 12, 2150, 63, 29, 30, 5717, 327, 1408, 309, 883, 18, 17514, 1918, 2932, 3264, 17513, 20068, 7998, 30, 315, 4672, 327, 2213, 87, 64, 82, 6, 738, 365, 18, 5681, 20541, 1119, 309, 883, 18, 17514, 1918, 2932, 44, 10385, 17513, 20068, 30, 315, 4672, 365, 18, 5681, 20541, 18, 542, 9345, 67, 12, 5510, 13, 327, 1408, 309, 883, 18, 17514, 1918, 12, 89, 6, 16677, 17513, 20068, 30, 315, 4672, 365, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 4534, 3332, 12, 2890, 16, 883, 4672, 309, 883, 18, 17514, 1918, 2932, 22271, 1777, 30, 315, 4672, 11472, 3371, 18, 10014, 21702, 8290, 16339, 67, 12, 5510, 13, 327, 1408, 309, 883, 18, 17514, 1918, 2932, 44, 10385, 30, 315, 4672, 365, 18, 5668, 18, 1019, 1182, 67, 12, 2890, 13, 327, 1408, 309, 883, 18, 17514, 1918, 2932, 16677, 30, 315, 4672, 365, 18, 5668, 18, 1019, 9580, 67, 12, 2890, 13, 327, 1408, 309, 883, 18, 17514, 1918, 2932, 14123, 30, 315, 4672, 365, 18, 5668, 18, 542, 4247, 67, 12, 2150, 63, 27, 30, 5717, 327, 1408, 309, 883, 18, 17514, 1918, 2932, 8723, 30, 315, 4672, 365, 18, 2150, 7667, 18, 542, 2 ]
'their own execution. A call to this function wont prevent a '
'their own execution. A call to this function won\'t prevent a '
def viewpermission(context, request): return result
e835cc22e93fb722d75b567f9092cd8133297539 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14321/e835cc22e93fb722d75b567f9092cd8133297539/testing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 9827, 12, 2472, 16, 590, 4672, 327, 563, 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, 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590, 4672, 327, 563, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def referrersStr(self, numEach=3):
def printReferrers(self, numEach=3):
def referrersStr(self, numEach=3): """referrers of the first few of each type of object""" s = '' counts = list(set(self._count2types.keys())) counts.sort() counts.reverse() for count in counts: types = makeList(self._count2types[count]) for typ in types: s += '\n\nTYPE: %s' % typ for i in xrange(min(numEach,len(self._type2objs[typ]))): obj = self._type2objs[typ][i] s += '\nOBJ: %s\n' % safeRepr(obj) referrers = gc.get_referrers(obj) s += '%s REFERRERS:\n' % len(referrers) if len(referrers): s += getNumberedTypedString(referrers, maxLen=80, numPrefix='REF') else: s += '<No Referrers>' return s
2f68815351a8c1fda94205efb8571c23be860b44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/2f68815351a8c1fda94205efb8571c23be860b44/ObjectPool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 1957, 370, 414, 12, 2890, 16, 818, 3442, 33, 23, 4672, 3536, 1734, 370, 414, 434, 326, 1122, 11315, 434, 1517, 618, 434, 733, 8395, 272, 273, 875, 6880, 273, 666, 12, 542, 12, 2890, 6315, 1883, 22, 2352, 18, 2452, 1435, 3719, 6880, 18, 3804, 1435, 6880, 18, 9845, 1435, 364, 1056, 316, 6880, 30, 1953, 273, 1221, 682, 12, 2890, 6315, 1883, 22, 2352, 63, 1883, 5717, 364, 3815, 316, 1953, 30, 272, 1011, 2337, 82, 64, 82, 2399, 30, 738, 87, 11, 738, 3815, 364, 277, 316, 12314, 12, 1154, 12, 2107, 3442, 16, 1897, 12, 2890, 6315, 723, 22, 18093, 63, 12846, 22643, 4672, 1081, 273, 365, 6315, 723, 22, 18093, 63, 12846, 6362, 77, 65, 272, 1011, 2337, 82, 24547, 30, 738, 87, 64, 82, 11, 738, 4183, 426, 683, 12, 2603, 13, 1278, 370, 414, 273, 8859, 18, 588, 67, 1734, 370, 414, 12, 2603, 13, 272, 1011, 1995, 87, 2438, 6553, 54, 11367, 5581, 82, 11, 738, 562, 12, 1734, 370, 414, 13, 309, 562, 12, 1734, 370, 414, 4672, 272, 1011, 18491, 329, 11985, 780, 12, 1734, 370, 414, 16, 29618, 33, 3672, 16, 818, 2244, 2218, 10771, 6134, 469, 30, 272, 1011, 2368, 2279, 3941, 370, 414, 1870, 327, 272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 1957, 370, 414, 12, 2890, 16, 818, 3442, 33, 23, 4672, 3536, 1734, 370, 414, 434, 326, 1122, 11315, 434, 1517, 618, 434, 733, 8395, 272, 273, 875, 6880, 273, 666, 12, 542, 12, 2890, 6315, 1883, 22, 2352, 18, 2452, 1435, 3719, 6880, 18, 3804, 1435, 6880, 18, 9845, 1435, 364, 1056, 316, 6880, 30, 1953, 273, 1221, 682, 12, 2890, 6315, 1883, 22, 2352, 63, 1883, 5717, 364, 3815, 316, 1953, 30, 272, 1011, 2337, 82, 64, 82, 2399, 30, 738, 87, 11, 738, 3815, 364, 277, 316, 12314, 12, 1154, 12, 2107, 3442, 16, 1897, 12, 2890, 6315, 723, 22, 18093, 63, 12846, 22643, 4672, 1081, 273, 365, 6315, 723, 22, 18093, 63, 12846, 2 ]
ipctx.set(0)
idle.set(1)
def openfile(event=NONE): global mrudir,fileopened,nopen,tw nopen=1 #Work-around for "click feedthrough" bug upload.set(0) try: os.chdir(mrudir) except: pass fname=askopenfilename(filetypes=[("Wave files","*.wav *.WAV")]) if fname: w.getfile(fname,len(fname)) mrudir=os.path.dirname(fname) fileopened=os.path.basename(fname) i1=fileopened.find('.') t=fileopened[i1-4:i1] t=t[0:2] + ':' + t[2:4] n=len(tw) if n>12: tw=tw[:n-1] tw=[t,] + tw os.chdir(appdir) ipctx.set(0)
da08b4dbc3df64eaf704085c9e6e6d31a04809e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2394/da08b4dbc3df64eaf704085c9e6e6d31a04809e4/wspr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 768, 12, 2575, 33, 9826, 4672, 2552, 9752, 1100, 481, 16, 768, 25304, 16, 82, 3190, 16, 11246, 290, 3190, 33, 21, 7682, 468, 2421, 17, 12716, 364, 315, 7475, 4746, 10064, 6, 7934, 3617, 18, 542, 12, 20, 13, 775, 30, 1140, 18, 343, 1214, 12, 21387, 1100, 481, 13, 1335, 30, 1342, 5299, 33, 835, 3190, 3459, 12, 7540, 15180, 22850, 2932, 22368, 1390, 15937, 11146, 24801, 380, 18, 59, 5856, 7923, 5717, 309, 5299, 30, 341, 18, 588, 768, 12, 12749, 16, 1897, 12, 12749, 3719, 9752, 1100, 481, 33, 538, 18, 803, 18, 12287, 12, 12749, 13, 585, 25304, 33, 538, 18, 803, 18, 13909, 12, 12749, 13, 277, 21, 33, 768, 25304, 18, 4720, 2668, 1093, 13, 268, 33, 768, 25304, 63, 77, 21, 17, 24, 30, 77, 21, 65, 268, 33, 88, 63, 20, 30, 22, 65, 397, 3921, 397, 268, 63, 22, 30, 24, 65, 290, 33, 1897, 12, 11246, 13, 309, 290, 34, 2138, 30, 2339, 33, 11246, 10531, 82, 17, 21, 65, 2339, 22850, 88, 16, 65, 397, 2339, 1140, 18, 343, 1214, 12, 2910, 1214, 13, 12088, 18, 542, 12, 21, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 768, 12, 2575, 33, 9826, 4672, 2552, 9752, 1100, 481, 16, 768, 25304, 16, 82, 3190, 16, 11246, 290, 3190, 33, 21, 7682, 468, 2421, 17, 12716, 364, 315, 7475, 4746, 10064, 6, 7934, 3617, 18, 542, 12, 20, 13, 775, 30, 1140, 18, 343, 1214, 12, 21387, 1100, 481, 13, 1335, 30, 1342, 5299, 33, 835, 3190, 3459, 12, 7540, 15180, 22850, 2932, 22368, 1390, 15937, 11146, 24801, 380, 18, 59, 5856, 7923, 5717, 309, 5299, 30, 341, 18, 588, 768, 12, 12749, 16, 1897, 12, 12749, 3719, 9752, 1100, 481, 33, 538, 18, 803, 18, 12287, 12, 12749, 13, 585, 25304, 33, 538, 18, 803, 18, 13909, 12, 12749, 13, 277, 21, 33, 768, 25304, 2 ]
ERROR_TOKEN = 'Invalid proxy token request'
def callBack(self, threadedJob, submitResult): if not submitResult['OK']: self.log.error( submitResult['Message'] )
6271afc9c4bbb66e2201ad46655c110521589002 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/6271afc9c4bbb66e2201ad46655c110521589002/TaskQueueDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 2711, 12, 2890, 16, 286, 20528, 2278, 16, 4879, 1253, 4672, 309, 486, 4879, 1253, 3292, 3141, 3546, 30, 365, 18, 1330, 18, 1636, 12, 4879, 1253, 3292, 1079, 3546, 262, 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,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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 ]
-x^6 - (x^8/2)
-x^6 - x^8/2
def taylor(self, v, a, n): """ Expands self in a truncated Taylor or Laurent series in the variable v around the point a, containing terms through $(x - a)^n$.
4abaf2c6ed0ea24bec64bbddc272c657c3f1ea05 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4abaf2c6ed0ea24bec64bbddc272c657c3f1ea05/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 528, 80, 280, 12, 2890, 16, 331, 16, 279, 16, 290, 4672, 3536, 7784, 5708, 365, 316, 279, 15282, 399, 528, 80, 280, 578, 511, 8377, 547, 4166, 316, 326, 2190, 331, 6740, 326, 1634, 279, 16, 4191, 6548, 3059, 27488, 92, 300, 279, 13, 66, 82, 8, 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,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, 16, 331, 16, 279, 16, 290, 4672, 3536, 7784, 5708, 365, 316, 279, 15282, 399, 528, 80, 280, 578, 511, 8377, 547, 4166, 316, 326, 2190, 331, 6740, 326, 1634, 279, 16, 4191, 6548, 3059, 27488, 92, 300, 279, 13, 66, 82, 8, 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 ]
data = '%s\n%s\n%s\n' % (w.backto(), __groups_actions(), w.menu(uri))
data = w.page_body_start(uri, http_user, ctxtnav, title, False)
def delete(uri, http_user, name, sure = False, no_archive = False, yes = None): """ Remove group and archive (or not) group shared dir. """ del yes title = _("Remove group %s") % name data = '%s\n%s\n%s\n' % (w.backto(), __groups_actions(), w.menu(uri)) groups.reload() if groups.is_system_group(name): return w.page(title, w.error(_("Failed to remove group"), [ _("alter system group.") ], _("insufficient permissions to perform operation."))) if not sure: data += w.question(_("Are you sure you want to remove group <strong>%s</strong>?") % name, _("""Group shared data will be archived in directory %s, and accessible to members of group %s for eventual recovery. However, you can decideto remove them permanently.""") % (configuration.home_archive_dir, configuration.defaults.admin_group), yes_values = [ _("Remove") + ' >>', "/groups/delete/%s/sure" % name, _("R") ], no_values = [ '<< ' + _("Cancel"), "/groups/list", _("N") ], form_options = w.checkbox("no_archive", "True", _("Definitely remove group shared data."), checked = False) ) return w.page(title, data) else: # we are sure, do it ! command = [ 'sudo', 'del', 'group', '--quiet', '--no-colors', '--name', name ] if no_archive: command.extend(['--no-archive']) return w.page(title, data + w.run(command, uri, successfull_redirect = "/groups/list", err_msg = _("Failed to remove group <strong>%s</strong>!") % name))
e74a9415e90d5a3af83e10abed2f1876ae4e528a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/e74a9415e90d5a3af83e10abed2f1876ae4e528a/groups.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 1650, 16, 1062, 67, 1355, 16, 508, 16, 3071, 273, 1083, 16, 1158, 67, 10686, 273, 1083, 16, 12465, 273, 599, 4672, 3536, 3581, 1041, 471, 5052, 261, 280, 486, 13, 1041, 5116, 1577, 18, 3536, 225, 1464, 12465, 225, 2077, 273, 389, 2932, 3288, 1041, 738, 87, 7923, 738, 508, 501, 225, 273, 341, 18, 2433, 67, 3432, 67, 1937, 12, 1650, 16, 1062, 67, 1355, 16, 1103, 5088, 842, 16, 2077, 16, 1083, 13, 225, 3252, 18, 17517, 1435, 225, 309, 3252, 18, 291, 67, 4299, 67, 1655, 12, 529, 4672, 327, 341, 18, 2433, 12, 2649, 16, 341, 18, 1636, 24899, 2932, 2925, 358, 1206, 1041, 6, 3631, 306, 389, 2932, 22628, 2619, 1041, 1199, 13, 308, 16, 389, 2932, 2679, 11339, 4371, 358, 3073, 1674, 1199, 20349, 225, 309, 486, 3071, 30, 501, 1011, 341, 18, 4173, 24899, 2932, 4704, 1846, 3071, 1846, 2545, 358, 1206, 1041, 411, 9110, 9822, 87, 1757, 9110, 34, 7225, 13, 738, 508, 16, 389, 2932, 3660, 1114, 5116, 501, 903, 506, 23276, 316, 1867, 738, 87, 16, 471, 12718, 358, 4833, 434, 1041, 738, 87, 364, 871, 1462, 11044, 18, 10724, 16, 1846, 848, 2109, 350, 11453, 1206, 2182, 16866, 715, 12123, 13, 738, 261, 7025, 18, 8712, 67, 10686, 67, 1214, 16, 1664, 18, 7606, 18, 3666, 67, 1655, 3631, 12465, 67, 2372, 282, 273, 306, 389, 2932, 3288, 7923, 397, 296, 1671, 2187, 2206, 4650, 19, 3733, 5258, 87, 19, 2055, 6, 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, 1430, 12, 1650, 16, 1062, 67, 1355, 16, 508, 16, 3071, 273, 1083, 16, 1158, 67, 10686, 273, 1083, 16, 12465, 273, 599, 4672, 3536, 3581, 1041, 471, 5052, 261, 280, 486, 13, 1041, 5116, 1577, 18, 3536, 225, 1464, 12465, 225, 2077, 273, 389, 2932, 3288, 1041, 738, 87, 7923, 738, 508, 501, 225, 273, 341, 18, 2433, 67, 3432, 67, 1937, 12, 1650, 16, 1062, 67, 1355, 16, 1103, 5088, 842, 16, 2077, 16, 1083, 13, 225, 3252, 18, 17517, 1435, 225, 309, 3252, 18, 291, 67, 4299, 67, 1655, 12, 529, 4672, 327, 341, 18, 2433, 12, 2649, 16, 341, 18, 1636, 24899, 2932, 2925, 358, 1206, 1041, 6, 3631, 306, 389, 2932, 22628, 2619, 2 ]
LINE_LEN = 30 csym_split_rxx = re.compile ("^(.{,%d}[<,:])(.*)$" % LINE_LEN)
def split_to_ints (l): v = l.split () try: v = [ my_int (x) for x in v] except ValueError: v = None return v
28008532aef10b3cdeb86e9d6e2ab1cf4b2e7903 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11834/28008532aef10b3cdeb86e9d6e2ab1cf4b2e7903/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 869, 67, 28142, 261, 80, 4672, 331, 273, 328, 18, 4939, 1832, 775, 30, 331, 273, 306, 3399, 67, 474, 261, 92, 13, 364, 619, 316, 331, 65, 1335, 2068, 30, 331, 273, 599, 327, 331, 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, 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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 ]
self.failUnlessEqual(3, getargs_I(3.14))
self.assertRaises(TypeError, getargs_I, 3.14)
def test_I(self): from _testcapi import getargs_I # I returns 'unsigned int', no range checking self.failUnlessEqual(3, getargs_I(3.14)) self.failUnlessEqual(99, getargs_I(Long())) self.failUnlessEqual(99, getargs_I(Int()))
2eaa053bbac0422f04c5d83e555aac57c3253ce5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2eaa053bbac0422f04c5d83e555aac57c3253ce5/test_getargs2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 45, 12, 2890, 4672, 628, 389, 3813, 71, 2425, 1930, 336, 1968, 67, 45, 468, 467, 1135, 296, 22297, 509, 2187, 1158, 1048, 6728, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 336, 1968, 67, 45, 16, 890, 18, 3461, 13, 365, 18, 6870, 984, 2656, 5812, 12, 2733, 16, 336, 1968, 67, 45, 12, 3708, 1435, 3719, 365, 18, 6870, 984, 2656, 5812, 12, 2733, 16, 336, 1968, 67, 45, 12, 1702, 1435, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 45, 12, 2890, 4672, 628, 389, 3813, 71, 2425, 1930, 336, 1968, 67, 45, 468, 467, 1135, 296, 22297, 509, 2187, 1158, 1048, 6728, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 336, 1968, 67, 45, 16, 890, 18, 3461, 13, 365, 18, 6870, 984, 2656, 5812, 12, 2733, 16, 336, 1968, 67, 45, 12, 3708, 1435, 3719, 365, 18, 6870, 984, 2656, 5812, 12, 2733, 16, 336, 1968, 67, 45, 12, 1702, 1435, 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 ]
def initialize_prebuilt_instance(self, value, classdef, result):
def initialize_prebuilt_data(self, value, classdef, result):
def initialize_prebuilt_instance(self, value, classdef, result): if self.classdef is not None: # recursively build the parent part of the instance self.rbase.initialize_prebuilt_instance(value, classdef, result.super) # then add instance attributes from this level for name, (mangled_name, r) in self.fields.items(): if r.lowleveltype is Void: llattrvalue = None elif name == '_hash_cache_': # hash() support llattrvalue = hash(value) else: try: attrvalue = getattr(value, name) except AttributeError: attrvalue = self.classdef.classdesc.read_attribute(name, None) if attrvalue is None: warning("prebuilt instance %r has no attribute %r" % ( value, name)) llattrvalue = r.lowleveltype._defl() else: llattrvalue = r.convert_desc_or_const(attrvalue) else: llattrvalue = r.convert_const(attrvalue) setattr(result, mangled_name, llattrvalue) else: # OBJECT part rclass = getclassrepr(self.rtyper, classdef) result.typeptr = rclass.getvtable()
c2dde63a9e37a14bcd5720a1028bc8d3b45baebd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/c2dde63a9e37a14bcd5720a1028bc8d3b45baebd/rclass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 67, 1484, 12406, 67, 892, 12, 2890, 16, 460, 16, 667, 536, 16, 563, 4672, 309, 365, 18, 1106, 536, 353, 486, 599, 30, 468, 8536, 1361, 326, 982, 1087, 434, 326, 791, 365, 18, 86, 1969, 18, 11160, 67, 1484, 12406, 67, 1336, 12, 1132, 16, 667, 536, 16, 563, 18, 9565, 13, 468, 1508, 527, 791, 1677, 628, 333, 1801, 364, 508, 16, 261, 81, 539, 1259, 67, 529, 16, 436, 13, 316, 365, 18, 2821, 18, 3319, 13332, 309, 436, 18, 821, 2815, 723, 353, 6988, 30, 6579, 1747, 1132, 273, 599, 1327, 508, 422, 2070, 2816, 67, 2493, 67, 4278, 468, 1651, 1435, 2865, 6579, 1747, 1132, 273, 1651, 12, 1132, 13, 469, 30, 775, 30, 1604, 1132, 273, 3869, 12, 1132, 16, 508, 13, 1335, 6394, 30, 1604, 1132, 273, 365, 18, 1106, 536, 18, 1106, 5569, 18, 896, 67, 4589, 12, 529, 16, 599, 13, 309, 1604, 1132, 353, 599, 30, 3436, 2932, 1484, 12406, 791, 738, 86, 711, 1158, 1566, 738, 86, 6, 738, 261, 460, 16, 508, 3719, 6579, 1747, 1132, 273, 436, 18, 821, 2815, 723, 6315, 536, 80, 1435, 469, 30, 6579, 1747, 1132, 273, 436, 18, 6283, 67, 5569, 67, 280, 67, 10248, 12, 1747, 1132, 13, 469, 30, 6579, 1747, 1132, 273, 436, 18, 6283, 67, 10248, 12, 1747, 1132, 13, 9241, 12, 2088, 16, 29674, 1259, 67, 529, 16, 6579, 1747, 1132, 13, 469, 30, 468, 12166, 1087, 436, 1106, 273, 336, 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, 4046, 67, 1484, 12406, 67, 892, 12, 2890, 16, 460, 16, 667, 536, 16, 563, 4672, 309, 365, 18, 1106, 536, 353, 486, 599, 30, 468, 8536, 1361, 326, 982, 1087, 434, 326, 791, 365, 18, 86, 1969, 18, 11160, 67, 1484, 12406, 67, 1336, 12, 1132, 16, 667, 536, 16, 563, 18, 9565, 13, 468, 1508, 527, 791, 1677, 628, 333, 1801, 364, 508, 16, 261, 81, 539, 1259, 67, 529, 16, 436, 13, 316, 365, 18, 2821, 18, 3319, 13332, 309, 436, 18, 821, 2815, 723, 353, 6988, 30, 6579, 1747, 1132, 273, 599, 1327, 508, 422, 2070, 2816, 67, 2493, 67, 4278, 468, 1651, 1435, 2865, 6579, 1747, 1132, 273, 1651, 12, 1132, 13, 469, 2 ]
area_colored.__init__( self)
meta_enabled.__init__( self, standard=paper.standard)
def __init__( self, paper, xy=(), package=None): meta_enabled.__init__( self, standard=paper.standard) point_drawable.__init__( self) with_font.__init__( self) area_colored.__init__( self)
c4b458dc1f3f8bed2dec89722d1450f999527868 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4298/c4b458dc1f3f8bed2dec89722d1450f999527868/classes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 15181, 16, 7668, 33, 9334, 2181, 33, 7036, 4672, 2191, 67, 5745, 16186, 2738, 972, 12, 365, 16, 4529, 33, 27400, 18, 10005, 13, 1634, 67, 9446, 429, 16186, 2738, 972, 12, 365, 13, 598, 67, 5776, 16186, 2738, 972, 12, 365, 13, 5091, 67, 1293, 7653, 16186, 2738, 972, 12, 365, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 15181, 16, 7668, 33, 9334, 2181, 33, 7036, 4672, 2191, 67, 5745, 16186, 2738, 972, 12, 365, 16, 4529, 33, 27400, 18, 10005, 13, 1634, 67, 9446, 429, 16186, 2738, 972, 12, 365, 13, 598, 67, 5776, 16186, 2738, 972, 12, 365, 13, 5091, 67, 1293, 7653, 16186, 2738, 972, 12, 365, 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 ]
self.assertEqual(fdata.encode(), open(writtenfile, "rb").read())
with open(writtenfile, "rb") as f: self.assertEqual(fdata.encode(), f.read())
def test_extract(self): with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp: for fpath, fdata in SMALL_TEST_DATA: zipfp.writestr(fpath, fdata)
df64e4ebf884a9041c9514c1c88905dd4793c799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/df64e4ebf884a9041c9514c1c88905dd4793c799/test_zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8004, 12, 2890, 4672, 598, 18823, 18, 29394, 12, 16961, 19793, 22, 16, 315, 91, 3113, 18823, 18, 13951, 67, 31487, 5879, 13, 487, 3144, 7944, 30, 364, 13543, 16, 284, 892, 316, 17918, 67, 16961, 67, 4883, 30, 3144, 7944, 18, 13284, 313, 12, 28900, 16, 284, 892, 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, 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, 315, 91, 3113, 18823, 18, 13951, 67, 31487, 5879, 13, 487, 3144, 7944, 30, 364, 13543, 16, 284, 892, 316, 17918, 67, 16961, 67, 4883, 30, 3144, 7944, 18, 13284, 313, 12, 28900, 16, 284, 892, 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 ]
'')), (None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>)), (None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>)), (None, <function provideInterface>, ('', <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>)))
''), {}), (None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>), {}), (None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>), {}), (None, <function provideInterface>, ('', <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), {}))
def test_w_for_factory(): """ >>> context = Context() >>> addMenuItem(context, for_=IX, factory="x.y.z", title="Add an X", ... permission="zope.ManageContent", description="blah blah", ... filter="context/foo") >>> context ((None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>)), (('adapter', (<InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>, 'Add an X'), <function handler>, ('registerAdapter', <zope.app.publisher.browser.menumeta.MenuItemFactory object>, (<InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>, <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>), <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>, 'Add an X', '')), (None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.interfaces.browser.AddMenu>)), (None, <function provideInterface>, ('', <InterfaceClass zope.app.publisher.browser.tests.test_addMenuItem.IX>)), (None, <function provideInterface>, ('', <InterfaceClass zope.publisher.interfaces.browser.IDefaultBrowserLayer>))) """
a9a3a1a5c0e09bd96df2bc32787c0f82fca1e8b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9523/a9a3a1a5c0e09bd96df2bc32787c0f82fca1e8b4/test_addMenuItem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 91, 67, 1884, 67, 6848, 13332, 3536, 4080, 819, 273, 1772, 1435, 4080, 527, 12958, 12, 2472, 16, 364, 67, 33, 12507, 16, 3272, 1546, 92, 18, 93, 18, 94, 3113, 2077, 1546, 986, 392, 1139, 3113, 1372, 2398, 4132, 1546, 94, 1306, 18, 21258, 1350, 3113, 2477, 1546, 3083, 9795, 2811, 9795, 3113, 1372, 2398, 1034, 1546, 2472, 19, 11351, 7923, 4080, 819, 14015, 7036, 16, 411, 915, 5615, 1358, 20401, 7707, 2187, 411, 1358, 797, 998, 1306, 18, 2910, 18, 26018, 18, 11213, 18, 16341, 18, 3813, 67, 1289, 12958, 18, 12507, 23429, 3631, 261, 2668, 10204, 2187, 261, 32, 1358, 797, 998, 1306, 18, 2910, 18, 26018, 18, 11213, 18, 16341, 18, 3813, 67, 1289, 12958, 18, 12507, 20401, 411, 1358, 797, 998, 1306, 18, 26018, 18, 15898, 18, 11213, 18, 734, 73, 643, 9132, 4576, 34, 3631, 411, 1358, 797, 998, 1306, 18, 2910, 18, 26018, 18, 15898, 18, 11213, 18, 986, 4599, 20401, 296, 986, 392, 1139, 19899, 411, 915, 1838, 20401, 7707, 4861, 4216, 2187, 411, 94, 1306, 18, 2910, 18, 26018, 18, 11213, 18, 81, 7924, 1066, 18, 12958, 1733, 733, 20401, 261, 32, 1358, 797, 998, 1306, 18, 2910, 18, 26018, 18, 11213, 18, 16341, 18, 3813, 67, 1289, 12958, 18, 12507, 20401, 411, 1358, 797, 998, 1306, 18, 26018, 18, 15898, 18, 11213, 18, 734, 73, 643, 9132, 4576, 34, 3631, 411, 1358, 797, 998, 1306, 18, 2910, 18, 26018, 18, 15898, 18, 11213, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 91, 67, 1884, 67, 6848, 13332, 3536, 4080, 819, 273, 1772, 1435, 4080, 527, 12958, 12, 2472, 16, 364, 67, 33, 12507, 16, 3272, 1546, 92, 18, 93, 18, 94, 3113, 2077, 1546, 986, 392, 1139, 3113, 1372, 2398, 4132, 1546, 94, 1306, 18, 21258, 1350, 3113, 2477, 1546, 3083, 9795, 2811, 9795, 3113, 1372, 2398, 1034, 1546, 2472, 19, 11351, 7923, 4080, 819, 14015, 7036, 16, 411, 915, 5615, 1358, 20401, 7707, 2187, 411, 1358, 797, 998, 1306, 18, 2910, 18, 26018, 18, 11213, 18, 16341, 18, 3813, 67, 1289, 12958, 18, 12507, 23429, 3631, 261, 2668, 10204, 2187, 261, 32, 1358, 797, 998, 1306, 18, 2910, 18, 26018, 18, 11213, 18, 16341, 18, 3813, 2 ]
clients.append(ClientLoop(b, ["perftest", "--count", "100", "--port", b.port()])) clients.append(ClientLoop(b, ["qpid-queue-stats", "-a", "localhost:%s" %(b.port())])) endtime = time.time() + self.duration()
start_clients(b) start_mclients(b)
def stop(self): self.lock.acquire() try: self.stopped = True try: self.process.terminate() except: pass finally: self.lock.release() StoppableThread.stop(self)
471f6b95e932010ab57c2f72ffbc859215d82ad5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/198/471f6b95e932010ab57c2f72ffbc859215d82ad5/cluster_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 365, 18, 739, 18, 1077, 1039, 1435, 775, 30, 365, 18, 24228, 273, 1053, 775, 30, 365, 18, 2567, 18, 30017, 1435, 1335, 30, 1342, 3095, 30, 365, 18, 739, 18, 9340, 1435, 5131, 19586, 3830, 18, 5681, 12, 2890, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 365, 18, 739, 18, 1077, 1039, 1435, 775, 30, 365, 18, 24228, 273, 1053, 775, 30, 365, 18, 2567, 18, 30017, 1435, 1335, 30, 1342, 3095, 30, 365, 18, 739, 18, 9340, 1435, 5131, 19586, 3830, 18, 5681, 12, 2890, 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 ]
tree = get_param(form, "tree")
def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ)
6df5ccdcda4ca562343909bddd8871a4d7ca7829 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/6df5ccdcda4ca562343909bddd8871a4d7ca7829/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 646, 273, 276, 10052, 18, 974, 3245, 12, 7944, 33, 28684, 3292, 28539, 18, 2630, 17337, 5473, 33, 28684, 13, 2295, 67, 529, 273, 336, 67, 891, 12, 687, 16, 296, 915, 6134, 578, 875, 3399, 2890, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 646, 273, 276, 10052, 18, 974, 3245, 12, 7944, 33, 28684, 3292, 28539, 18, 2630, 17337, 5473, 33, 28684, 13, 2295, 67, 529, 273, 336, 67, 891, 12, 687, 16, 296, 915, 6134, 578, 875, 3399, 2890, 273, 341, 1055, 577, 74, 18, 1367, 18, 3685, 67, 1650, 12, 28684, 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 ]
item = UnpackTVItem(buf_item)
item = UnpackTVITEM(buf_item)
def UnpackTVDISPINFO(lparam): format = "iii40s" buf = win32gui.PyMakeBuffer(struct.calcsize(format), lparam) hwndFrom, id, code, buf_item = struct.unpack(format, buf) item = UnpackTVItem(buf_item) return hwndFrom, id, code, item
d8663568c16982b373a9214ab96c701db890d557 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/d8663568c16982b373a9214ab96c701db890d557/win32gui_struct.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25411, 15579, 2565, 3118, 5923, 12, 80, 891, 4672, 740, 273, 315, 2835, 77, 7132, 87, 6, 1681, 273, 5657, 1578, 20292, 18, 9413, 6464, 1892, 12, 1697, 18, 12448, 1467, 12, 2139, 3631, 328, 891, 13, 16139, 4880, 1265, 16, 612, 16, 981, 16, 1681, 67, 1726, 273, 1958, 18, 17309, 12, 2139, 16, 1681, 13, 761, 273, 25411, 15579, 12674, 12, 4385, 67, 1726, 13, 327, 16139, 4880, 1265, 16, 612, 16, 981, 16, 761, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25411, 15579, 2565, 3118, 5923, 12, 80, 891, 4672, 740, 273, 315, 2835, 77, 7132, 87, 6, 1681, 273, 5657, 1578, 20292, 18, 9413, 6464, 1892, 12, 1697, 18, 12448, 1467, 12, 2139, 3631, 328, 891, 13, 16139, 4880, 1265, 16, 612, 16, 981, 16, 1681, 67, 1726, 273, 1958, 18, 17309, 12, 2139, 16, 1681, 13, 761, 273, 25411, 15579, 12674, 12, 4385, 67, 1726, 13, 327, 16139, 4880, 1265, 16, 612, 16, 981, 16, 761, 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 ]
uris = self.client.get_list(defs.WINMAN, defs.LAUNCHERS, awn.CONFIG_LIST_STRING)
uris = self.last_uris[:]
def remove(self, button): selection = self.treeview.get_selection() (model, iter) = selection.get_selected() uri = model.get_value(iter, 2) if os.path.exists(uri): uris = self.client.get_list(defs.WINMAN, defs.LAUNCHERS, awn.CONFIG_LIST_STRING) uris.remove(uri) if uri.startswith(defs.HOME_LAUNCHERS_DIR): os.remove(uri) self.refresh_tree(uris)
fde67393cc0a1f2025885afdc17b1209dff21c81 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/fde67393cc0a1f2025885afdc17b1209dff21c81/awnLauncher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 16, 3568, 4672, 4421, 273, 365, 18, 3413, 1945, 18, 588, 67, 10705, 1435, 261, 2284, 16, 1400, 13, 273, 4421, 18, 588, 67, 8109, 1435, 2003, 273, 938, 18, 588, 67, 1132, 12, 2165, 16, 576, 13, 309, 1140, 18, 803, 18, 1808, 12, 1650, 4672, 21476, 273, 365, 18, 2722, 67, 23510, 10531, 65, 21476, 18, 4479, 12, 1650, 13, 309, 2003, 18, 17514, 1918, 12, 12537, 18, 14209, 67, 2534, 2124, 1792, 11367, 67, 4537, 4672, 1140, 18, 4479, 12, 1650, 13, 365, 18, 9144, 67, 3413, 12, 23510, 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,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1140, 18, 803, 18, 1808, 12, 1650, 4672, 21476, 273, 365, 18, 2722, 67, 23510, 10531, 65, 21476, 18, 4479, 12, 1650, 13, 309, 2003, 18, 17514, 1918, 12, 12537, 18, 14209, 67, 2534, 2124, 1792, 11367, 67, 4537, 4672, 1140, 18, 4479, 12, 1650, 13, 365, 18, 9144, 67, 3413, 12, 23510, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for line in lines: if not line.startswith('--- '): continue words = line.split(None, 2) filename, fromrev = words[1], 'old' groups, blocks = None, None
try:
def htmlify(match): div, mod = divmod(len(match.group(0)), 2) return div * '&nbsp; ' + mod * '&nbsp;'
1da914240b7dd02e7a4e49314577f2adecb40058 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/1da914240b7dd02e7a4e49314577f2adecb40058/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 1164, 12, 1916, 4672, 3739, 16, 681, 273, 26105, 12, 1897, 12, 1916, 18, 1655, 12, 20, 13, 3631, 576, 13, 327, 3739, 380, 5183, 10600, 31, 296, 397, 681, 380, 5183, 10600, 4359, 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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 316, 326, 981, 30, 1652, 1729, 1164, 12, 1916, 4672, 3739, 16, 681, 273, 26105, 12, 1897, 12, 1916, 18, 1655, 12, 20, 13, 3631, 576, 13, 327, 3739, 380, 5183, 10600, 31, 296, 397, 681, 380, 5183, 10600, 4359, 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 ]
module = MacModule(MODNAME, MODPREFIX, includestuff, finalstuff, initstuff)
module = MacModule(MODNAME, MODPREFIX, includestuff, finalstuff, initstuff, longname=LONGMODNAME)
def parseArgumentList(self, args): args0, arg1, argsrest = args[:1], args[1], args[2:] t0, n0, m0 = arg1 args = args0 + argsrest if m0 != InMode: raise ValueError, "method's 'self' must be 'InMode'" self.itself = Variable(t0, "_self->ob_itself", SelfMode) FunctionGenerator.parseArgumentList(self, args) self.argumentList.insert(2, self.itself)
0d3945c1b6ce8c3d7027bc8f9a84299861cf9b01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0d3945c1b6ce8c3d7027bc8f9a84299861cf9b01/filesupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1379, 682, 12, 2890, 16, 833, 4672, 833, 20, 16, 1501, 21, 16, 833, 8792, 273, 833, 10531, 21, 6487, 833, 63, 21, 6487, 833, 63, 22, 26894, 268, 20, 16, 290, 20, 16, 312, 20, 273, 1501, 21, 833, 273, 833, 20, 397, 833, 8792, 309, 312, 20, 480, 657, 2309, 30, 1002, 2068, 16, 315, 2039, 1807, 296, 2890, 11, 1297, 506, 296, 382, 2309, 4970, 365, 18, 1282, 19079, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1379, 682, 12, 2890, 16, 833, 4672, 833, 20, 16, 1501, 21, 16, 833, 8792, 273, 833, 10531, 21, 6487, 833, 63, 21, 6487, 833, 63, 22, 26894, 268, 20, 16, 290, 20, 16, 312, 20, 273, 1501, 21, 833, 273, 833, 20, 397, 833, 8792, 309, 312, 20, 480, 657, 2309, 30, 1002, 2068, 16, 315, 2039, 1807, 296, 2890, 11, 1297, 506, 296, 382, 2309, 4970, 365, 18, 1282, 19079, 273, 7110, 12, 88, 20, 16, 4192, 2890, 2122, 947, 67, 1282, 19079, 3113, 18954, 2309, 13, 4284, 3908, 18, 2670, 1379, 682, 12, 2890, 16, 833, 13, 365, 18, 3446, 682, 18, 6387, 12, 22, 16, 365, 18, 1282, 19079, 13, 2, -100, -100, -100 ]
ET.SubElement(root, 'upnp:album').text = self.album
ET.SubElement(root, qname('album',UPNP_NS)).text = self.album
def toElement(self,**kwargs):
e9c4345533fd24eede4febe6e6cd4c5c3b16e15c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/e9c4345533fd24eede4febe6e6cd4c5c3b16e15c/DIDLLite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 1046, 12, 2890, 16, 636, 4333, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 1046, 12, 2890, 16, 636, 4333, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
env1.eval("spy=function(){return spy;}")
env1.eval("spy=function(){return spy;}")
def _testSecurityChecks(self): with JSContext() as env1: env1.securityToken = "foo" # Create a function in env1. env1.eval("spy=function(){return spy;}")
550f86f8e1997ee990877076421feaf1936da8eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5451/550f86f8e1997ee990877076421feaf1936da8eb/PyV8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 4368, 4081, 12, 2890, 4672, 598, 6756, 1042, 1435, 487, 1550, 21, 30, 1550, 21, 18, 7462, 1345, 273, 315, 11351, 6, 225, 468, 1788, 279, 445, 316, 1550, 21, 18, 1550, 21, 18, 8622, 2932, 30884, 33, 915, 1435, 95, 2463, 21459, 31, 1532, 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 ]
self._node_link_func(start_node, end_node)
self._node_link_func(self._node_link_source_node, node)
def _start_pos(): return widget.rect().center
9ec353080379e33e6ff3e4de6b6753ac7e750aed /local1/tlutelli/issta_data/temp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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 917, 13332, 327, 3604, 18, 2607, 7675, 5693, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertIs(self.client.sock.context, ctx)
self.assertIs(sock.context, ctx)
def test_context(self): self.client.quit() ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1) self.assertRaises(ValueError, ftplib.FTP_TLS, keyfile=CERTFILE, context=ctx) self.assertRaises(ValueError, ftplib.FTP_TLS, certfile=CERTFILE, context=ctx) self.assertRaises(ValueError, ftplib.FTP_TLS, certfile=CERTFILE, keyfile=CERTFILE, context=ctx)
c319c3018bce0664b4786deaea1c338bb7984a72 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/c319c3018bce0664b4786deaea1c338bb7984a72/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2472, 12, 2890, 4672, 365, 18, 2625, 18, 27176, 1435, 1103, 273, 5832, 18, 6745, 1042, 12, 8157, 18, 16850, 67, 9905, 90, 21, 13, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 11038, 6673, 18, 17104, 67, 9905, 16, 28632, 33, 22367, 3776, 16, 819, 33, 5900, 13, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 11038, 6673, 18, 17104, 67, 9905, 16, 3320, 768, 33, 22367, 3776, 16, 819, 33, 5900, 13, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 11038, 6673, 18, 17104, 67, 9905, 16, 3320, 768, 33, 22367, 3776, 16, 28632, 33, 22367, 3776, 16, 819, 33, 5900, 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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 18, 17104, 67, 9905, 16, 28632, 33, 22367, 3776, 16, 819, 33, 5900, 13, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 11038, 6673, 18, 17104, 67, 9905, 16, 3320, 768, 33, 22367, 3776, 16, 819, 33, 5900, 13, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 11038, 6673, 18, 17104, 67, 9905, 16, 3320, 768, 33, 22367, 3776, 16, 28632, 33, 22367, 3776, 16, 819, 33, 5900, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assert len(rpmdeps) == len(rpmvers)
if len(rpmdeps) != len(rpmvers): rpmvers = itertools.repeat(None, len(rpmdeps))
def _getDepsetFromHeader(self, tags): if isinstance(tags, tuple): assert len(tags) == 2 rpmdeps = self.get(tags[0], []) rpmvers = self.get(tags[1], []) assert len(rpmdeps) == len(rpmvers) else: rpmdeps = self.get(tags, []) rpmvers = itertools.repeat(None, len(rpmdeps))
020ee30503785b8a7b7e6d6e42d6025fb8726be9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8747/020ee30503785b8a7b7e6d6e42d6025fb8726be9/rpmhelper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 16316, 542, 1265, 1864, 12, 2890, 16, 2342, 4672, 309, 1549, 12, 4156, 16, 3193, 4672, 1815, 562, 12, 4156, 13, 422, 576, 25228, 14877, 273, 365, 18, 588, 12, 4156, 63, 20, 6487, 5378, 13, 25228, 2496, 273, 365, 18, 588, 12, 4156, 63, 21, 6487, 5378, 13, 309, 562, 12, 86, 7755, 14877, 13, 480, 562, 12, 86, 7755, 2496, 4672, 25228, 2496, 273, 13315, 18, 9374, 12, 7036, 16, 562, 12, 86, 7755, 14877, 3719, 469, 30, 25228, 14877, 273, 365, 18, 588, 12, 4156, 16, 5378, 13, 25228, 2496, 273, 13315, 18, 9374, 12, 7036, 16, 562, 12, 86, 7755, 14877, 3719, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 16316, 542, 1265, 1864, 12, 2890, 16, 2342, 4672, 309, 1549, 12, 4156, 16, 3193, 4672, 1815, 562, 12, 4156, 13, 422, 576, 25228, 14877, 273, 365, 18, 588, 12, 4156, 63, 20, 6487, 5378, 13, 25228, 2496, 273, 365, 18, 588, 12, 4156, 63, 21, 6487, 5378, 13, 309, 562, 12, 86, 7755, 14877, 13, 480, 562, 12, 86, 7755, 2496, 4672, 25228, 2496, 273, 13315, 18, 9374, 12, 7036, 16, 562, 12, 86, 7755, 14877, 3719, 469, 30, 25228, 14877, 273, 365, 18, 588, 12, 4156, 16, 5378, 13, 25228, 2496, 273, 13315, 18, 9374, 12, 7036, 16, 562, 12, 86, 7755, 14877, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
curs.execute(query, (one_day, ed))
if host: curs.execute(query, (one_day, ed, host)) elif user: curs.execute(query, (one_day, ed, user)) else: curs.execute(query, (one_day, ed))
def get_key_statistics(self, end_date, report_days, host=None, user=None, email=None): if email: return None
23256af1e8e77c746a31d94ef7f2cab0675707b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/23256af1e8e77c746a31d94ef7f2cab0675707b6/untangle_base_webfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 856, 67, 14438, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 856, 67, 14438, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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: self.assertTrue(csv.get_dialect(name).delimiter, '\t') got_dialects = csv.list_dialects() got_dialects.sort() self.assertEqual(expected_dialects, got_dialects) finally: csv.unregister_dialect(name)
self.addCleanup(csv.unregister_dialect, name) self.assertEqual(csv.get_dialect(name).delimiter, '\t') got_dialects = sorted(csv.list_dialects()) self.assertEqual(expected_dialects, got_dialects)
def test_registry(self): class myexceltsv(csv.excel): delimiter = "\t" name = "myexceltsv" expected_dialects = csv.list_dialects() + [name] expected_dialects.sort() csv.register_dialect(name, myexceltsv) try: self.assertTrue(csv.get_dialect(name).delimiter, '\t') got_dialects = csv.list_dialects() got_dialects.sort() self.assertEqual(expected_dialects, got_dialects) finally: csv.unregister_dialect(name)
e5b892f80f6f75773644e0c6f233e77cdb777c1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/e5b892f80f6f75773644e0c6f233e77cdb777c1c/test_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9893, 12, 2890, 4672, 667, 3399, 24121, 25338, 12, 6715, 18, 24121, 4672, 5654, 273, 1548, 88, 6, 508, 273, 315, 4811, 24121, 25338, 6, 2665, 67, 25909, 386, 87, 273, 6101, 18, 1098, 67, 25909, 386, 87, 1435, 397, 306, 529, 65, 2665, 67, 25909, 386, 87, 18, 3804, 1435, 6101, 18, 4861, 67, 25909, 386, 12, 529, 16, 3399, 24121, 25338, 13, 775, 30, 365, 18, 11231, 5510, 12, 6715, 18, 588, 67, 25909, 386, 12, 529, 2934, 15751, 16, 2337, 88, 6134, 2363, 67, 25909, 386, 87, 273, 6101, 18, 1098, 67, 25909, 386, 87, 1435, 2363, 67, 25909, 386, 87, 18, 3804, 1435, 365, 18, 11231, 5812, 12, 3825, 67, 25909, 386, 87, 16, 2363, 67, 25909, 386, 87, 13, 3095, 30, 6101, 18, 318, 4861, 67, 25909, 386, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1842, 67, 9893, 12, 2890, 4672, 667, 3399, 24121, 25338, 12, 6715, 18, 24121, 4672, 5654, 273, 1548, 88, 6, 508, 273, 315, 4811, 24121, 25338, 6, 2665, 67, 25909, 386, 87, 273, 6101, 18, 1098, 67, 25909, 386, 87, 1435, 397, 306, 529, 65, 2665, 67, 25909, 386, 87, 18, 3804, 1435, 6101, 18, 4861, 67, 25909, 386, 12, 529, 16, 3399, 24121, 25338, 13, 775, 30, 365, 18, 11231, 5510, 12, 6715, 18, 588, 67, 25909, 386, 12, 529, 2934, 15751, 16, 2337, 88, 6134, 2363, 67, 25909, 386, 87, 273, 6101, 18, 1098, 67, 25909, 386, 87, 1435, 2363, 67, 25909, 386, 87, 18, 3804, 1435, 365, 18, 11231, 5812, 12, 3825, 67, 25909, 386, 2 ]
data = DAV_NotFound
pass
def get_data(self, cursor, user, uri, context=None, cache=None): from DAV.errors import DAV_NotFound attachment_obj = self.pool.get('ir.attachment') report_obj = self.pool.get('ir.action.report')
993ff2d321de105954db9e2ba9648c6707becb87 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/993ff2d321de105954db9e2ba9648c6707becb87/webdav.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 892, 12, 2890, 16, 3347, 16, 729, 16, 2003, 16, 819, 33, 7036, 16, 1247, 33, 7036, 4672, 628, 463, 5856, 18, 4324, 1930, 463, 5856, 67, 2768, 6042, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 11461, 6134, 2605, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 1128, 18, 6006, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 6042, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 11461, 6134, 2605, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 1128, 18, 6006, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sys.stdout.write("Connection closed.\r\n")
sys.stdout.write("Connection closed.\r")
def xmpp_message(self, con, event): type = event.getType() fromjid = event.getFrom().getStripped() if type in ['message', 'chat', None] and fromjid == self.remotejid: if event.getBody() == '!EX': sys.stdout.write("Connection closed.\r\n") sys.exit(0) if not self.hasresponded: sys.stdout.write("Sysop has responded.\r\n") self.hasresponded = True sys.stdout.write(event.getBody() + '\r\n')
dc14f2283f43a8418f2c4f7f0bd9fa7e12949100 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14053/dc14f2283f43a8418f2c4f7f0bd9fa7e12949100/ax25xmpp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 24109, 67, 2150, 12, 2890, 16, 356, 16, 871, 4672, 618, 273, 871, 18, 588, 559, 1435, 628, 18252, 273, 871, 18, 588, 1265, 7675, 588, 16632, 1845, 1435, 309, 618, 316, 10228, 2150, 2187, 296, 10880, 2187, 599, 65, 471, 628, 18252, 422, 365, 18, 7222, 18252, 30, 309, 871, 18, 588, 2250, 1435, 422, 11817, 2294, 4278, 2589, 18, 10283, 18, 2626, 2932, 1952, 4375, 8403, 86, 7923, 2589, 18, 8593, 12, 20, 13, 309, 486, 365, 18, 5332, 455, 500, 785, 30, 2589, 18, 10283, 18, 2626, 2932, 12712, 556, 711, 7899, 785, 8403, 86, 64, 82, 7923, 365, 18, 5332, 455, 500, 785, 273, 1053, 2589, 18, 10283, 18, 2626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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 24109, 67, 2150, 12, 2890, 16, 356, 16, 871, 4672, 618, 273, 871, 18, 588, 559, 1435, 628, 18252, 273, 871, 18, 588, 1265, 7675, 588, 16632, 1845, 1435, 309, 618, 316, 10228, 2150, 2187, 296, 10880, 2187, 599, 65, 471, 628, 18252, 422, 365, 18, 7222, 18252, 30, 309, 871, 18, 588, 2250, 1435, 422, 11817, 2294, 4278, 2589, 18, 10283, 18, 2626, 2932, 1952, 4375, 8403, 86, 7923, 2589, 18, 8593, 12, 20, 13, 309, 486, 365, 18, 5332, 455, 500, 785, 30, 2589, 18, 10283, 18, 2626, 2932, 12712, 556, 711, 7899, 785, 8403, 86, 64, 82, 7923, 365, 18, 5332, 455, 500, 785, 273, 1053, 2589, 18, 10283, 18, 2626, 12, 2575, 18, 2 ]
Y = numpy.zeros(N).astype('i')
Y = numpy.zeros(N, 'i')
def raw_reduce(x, buffer, op, source, vanilla=0): pypar.reduce(x, op, source, buffer=buffer, vanilla=0)
e32b193ad1bee5688c8c7ac138abfcba2d3b57c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9158/e32b193ad1bee5688c8c7ac138abfcba2d3b57c2/test_pypar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1831, 67, 12498, 12, 92, 16, 1613, 16, 1061, 16, 1084, 16, 331, 26476, 33, 20, 4672, 18951, 297, 18, 12498, 12, 92, 16, 1061, 16, 1084, 16, 1613, 33, 4106, 16, 331, 26476, 33, 20, 13, 2868, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1831, 67, 12498, 12, 92, 16, 1613, 16, 1061, 16, 1084, 16, 331, 26476, 33, 20, 4672, 18951, 297, 18, 12498, 12, 92, 16, 1061, 16, 1084, 16, 1613, 33, 4106, 16, 331, 26476, 33, 20, 13, 2868, 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 ]
raise SMTPRecipientsRefused(string.join( map(lambda x:"%s: %s" % (x[0], x[1][1]), senderrs.items()), '; ')) code=self.data(msg) if code <>250 :
raise SMTPRecipientsRefused(senderrs) (code,resp)=self.data(msg) if code <> 250:
def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction.
53ecf9d0a34d0a10b05db7f05f9837e5aa9ed6d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/53ecf9d0a34d0a10b05db7f05f9837e5aa9ed6d9/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2492, 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 ]
sage: B.det() 5 sage: B.trace() 123 sage: EllipticCurve([-1, 1/4]).ap(5) -2
sage: B.det() 5 sage: B.trace() 123 sage: EllipticCurve([-1, 1/4]).ap(5) -2
def matrix_of_frobenius(Q, p, M, trace=None, compute_exact_forms=False): """ Computes the matrix of Frobenius on Monsky-Washnitzer cohomology, with respect to the basis $(dx/y, x dx/y)$. INPUT: Q -- cubic polynomial $Q(x) = x^3 + ax + b$ defining an elliptic curve E by $y^2 = Q(x)$. The coefficient ring of Q should be a $\Z/(p^M)\Z$-algebra in which the matrix of frobenius will be constructed. p -- prime >= 5 for which E has good reduction M -- integer >= 2; $p$-adic precision of the coefficient ring trace -- (optional) the trace of the matrix, if known in advance. This is easy to compute because it's just the $a_p$ of the curve. If the trace is supplied, matrix_of_frobenius will use it to speed the computation (i.e. we know the determinant is $p$, so we have two conditions, so really only column of the matrix needs to be computed. It's actually a little more complicated than that, but that's the basic idea.) If trace=None, then both columns will be computed independently, and you can get a strong indication of correctness by verifying the trace afterwards. WARNING: -- THE RESULT WILL NOT NECESSARILY BE CORRECT TO M p-ADIC DIGITS. If you want prec digits of precision, you need to use the function adjusted_prec(), and then you need to reduce the answer mod p^prec at the end. OUTPUT: 2x2 matrix of frobenius on Monsky-Washnitzer cohomology, with entries in the coefficient ring of Q. EXAMPLES: A simple example: sage: p = 5 sage: prec = 3 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: M 5 sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 - x + R(1/4), p, M) sage: A [3090 187] [2945 408] But the result is only accurate to prec digits: sage: B = A.change_ring(Integers(p**prec)) sage: B [90 62] [70 33] Check trace (123 = -2 mod 125) and determinant: sage: B.det() 5 sage: B.trace() 123 sage: EllipticCurve([-1, 1/4]).ap(5) -2 Try using the trace to speed up the calculation: sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 - x + R(1/4), ... p, M, -2) sage: A [2715 187] [1445 408] Hmmm... it looks different, but that's because the trace of our first answer was only -2 modulo $5^3$, not -2 modulo $5^5$. So the right answer is: sage: A.change_ring(Integers(p**prec)) [90 62] [70 33] Check it works with only one digit of precision: sage: p = 5 sage: prec = 1 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 - x + R(1/4), p, M) sage: A.change_ring(Integers(p)) [0 2] [0 3] Here's an example that's particularly badly conditioned for using the trace trick: sage: p = 11 sage: prec = 3 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 + 7*x + 8, p, M) sage: A.change_ring(Integers(p**prec)) [1144 176] [ 847 185] The problem here is that the top-right entry is divisible by 11, and the bottom-left entry is divisible by $11^2$. So when you apply the trace trick, neither $F(dx/y)$ nor $F(x dx/y)$ is enough to compute the whole matrix to the desired precision, even if you try increasing the target precision by one. Nevertheless, \code{matrix_of_frobenius} knows how to get the right answer by evaluating $F((x+1) dx/y)$ instead: sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 + 7*x + 8, p, M, -2) sage: A.change_ring(Integers(p**prec)) [1144 176] [ 847 185] The running time is about \code{O(p * prec**2)} (times some logarithmic factors), so it's feasible to run on fairly large primes, or precision (or both?!?!): sage: p = 10007 sage: prec = 2 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius( # long time ... x^3 - x + R(1/4), p, M) # long time sage: B = A.change_ring(Integers(p**prec)); B # long time [74311982 57996908] [95877067 25828133] sage: B.det() # long time 10007 sage: B.trace() # long time 66 sage: EllipticCurve([-1, 1/4]).ap(10007) # long time 66 sage: p = 5 sage: prec = 300 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius( # long time ... x^3 - x + R(1/4), p, M) # long time sage: B = A.change_ring(Integers(p**prec)) # long time sage: B.det() # long time 5 sage: -B.trace() # long time 2 sage: EllipticCurve([-1, 1/4]).ap(5) # long time -2 Let's check consistency of the results for a range of precisions: sage: p = 5 sage: max_prec = 60 sage: M = monsky_washnitzer.adjusted_prec(p, max_prec) sage: R.<x> = PolynomialRing(Integers(p**M)) sage: A = monsky_washnitzer.matrix_of_frobenius(x^3 - x + R(1/4), p, M) # long time sage: A = A.change_ring(Integers(p**max_prec)) # long time sage: result = [] # long time sage: for prec in range(1, max_prec): # long time ... M = monsky_washnitzer.adjusted_prec(p, prec) # long time ... R.<x> = PolynomialRing(Integers(p^M),'x') # long time ... B = monsky_washnitzer.matrix_of_frobenius( # long time ... x^3 - x + R(1/4), p, M) # long time ... B = B.change_ring(Integers(p**prec)) # long time ... result.append(B == A.change_ring( # long time ... Integers(p**prec))) # long time sage: result == [True] * (max_prec - 1) # long time True The remaining examples discuss what happens when you take the coefficient ring to be a power series ring; i.e. in effect you're looking at a family of curves. The code does in fact work... sage: p = 11 sage: prec = 3 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: S.<t> = PowerSeriesRing(Integers(p**M), default_prec=4) sage: a = 7 + t + 3*t^2 sage: b = 8 - 6*t + 17*t^2 sage: R.<x> = PolynomialRing(S) sage: Q = x**3 + a*x + b sage: A = monsky_washnitzer.matrix_of_frobenius(Q, p, M) # long time sage: B = A.change_ring(PowerSeriesRing(Integers(p**prec), 't', default_prec=4)) # long time sage: B # long time [1144 + 264*t + 841*t^2 + 1025*t^3 + O(t^4) 176 + 1052*t + 216*t^2 + 523*t^3 + O(t^4)] [ 847 + 668*t + 81*t^2 + 424*t^3 + O(t^4) 185 + 341*t + 171*t^2 + 642*t^3 + O(t^4)] The trace trick should work for power series rings too, even in the badly- conditioned case. Unfortunately I don't know how to compute the trace in advance, so I'm not sure exactly how this would help. Also, I suspect the running time will be dominated by the expansion, so the trace trick won't really speed things up anyway. Another problem is that the determinant is not always p: sage: B.det() # long time 11 + 484*t^2 + 451*t^3 + O(t^4) However, it appears that the determinant always has the property that if you substitute t -> 11t, you do get the constant series p (mod p**prec). Similarly for the trace. And since the parameter only really makes sense when it's divisible by p anyway, perhaps this isn't a problem after all. """ M = int(M) if M < 2: raise ValueError, "M (=%s) must be at least 2" % M base_ring = Q.base_ring() # Expand out frobenius of dx/y and x dx/y. # (You can substitute frobenius_expansion_by_series here, that will work # as well. See its docstring for some performance notes.) F0, F1, offset = frobenius_expansion_by_newton(Q, p, M) #F0, F1, offset = frobenius_expansion_by_series(Q, p, M) if compute_exact_forms: # we need to do all the work to get the exact expressions f such that F(x^i dx/y) = df + \sum a_i x^i dx/y F0_coeffs = transpose_list(F0.coeffs()) F0_reduced, f_0 = reduce_all(Q, p, F0_coeffs, offset, True) F1_coeffs = transpose_list(F1.coeffs()) F1_reduced, f_1 = reduce_all(Q, p, F1_coeffs, offset, True) elif M == 2: # This implies that only one digit of precision is valid, so we only need # to reduce the second column. Also, the trace doesn't help at all. F0_reduced = [ base_ring(0), base_ring(0) ] F1_coeffs = transpose_list(F1.coeffs()) F1_reduced = reduce_all(Q, p, F1_coeffs, offset) elif trace is None: # No trace provided, just reduce F(dx/y) and F(x dx/y) separately. F0_coeffs = transpose_list(F0.coeffs()) F0_reduced = reduce_all(Q, p, F0_coeffs, offset) F1_coeffs = transpose_list(F1.coeffs()) F1_reduced = reduce_all(Q, p, F1_coeffs, offset) else: # Trace has been provided. # In most cases this can be used to quickly compute F(dx/y) from # F(x dx/y). However, if we're unlucky, the (dx/y)-component of # F(x dx/y) (i.e. the top-right corner of the matrix) may be divisible # by p, in which case there isn't enough information to get the # (x dx/y)-component of F(dx/y) to the desired precision. When this # happens, it turns out that F((x+1) dx/y) always *does* give enough # information (together with the trace) to get both columns to the # desired precision. # First however we need a quick way of telling whether the top-right # corner is divisible by p, i.e. we want to compute the second column # of the matrix mod p. We could do this by just running the entire # algorithm with M = 2 (which assures precision 1). Luckily, we've # already done most of the work by computing F1 to high precision; so # all we need to do is extract the coefficients that would correspond # to the first term of the series, and run the reduction on them. # todo: actually we only need to do this reduction step mod p^2, not # mod p^M, which is what the code currently does. If the base ring # is Integers(p^M), then it's easy. Otherwise it's tricky to construct # the right ring, I don't know how to do it. F1_coeffs = transpose_list(F1.coeffs()) F1_modp_coeffs = F1_coeffs[int((M-2)*p):] # make a copy, because reduce_all will destroy the coefficients: F1_modp_coeffs = [[cell for cell in row] for row in F1_modp_coeffs] F1_modp_offset = offset - (M-2)*p F1_modp_reduced = reduce_all(Q, p, F1_modp_coeffs, F1_modp_offset) if F1_modp_reduced[0].is_unit(): # If the first entry is invertible mod p, then F(x dx/y) is sufficient # to get the whole matrix. F1_reduced = reduce_all(Q, p, F1_coeffs, offset) F0_reduced = [ base_ring(trace) - F1_reduced[1], None ] # using that the determinant is p: F0_reduced[1] = (F0_reduced[0] * F1_reduced[1] - base_ring(p)) \ / F1_reduced[0] else: # If the first entry is zero mod p, then F((x+1) dx/y) will be sufficient # to get the whole matrix. (Here we are using the fact that the second # entry *cannot* be zero mod p. This is guaranteed by some results in # section 3.2 of ``Computation of p-adic Heights and Log Convergence'' # by Mazur, Stein, Tate. But let's quickly check it anyway :-)) assert F1_modp_reduced[1].is_unit(), \ "Hey that's impossible! The second entry in the second column " \ "should be invertible mod p!" G0_coeffs = transpose_list( (F0 + F1).coeffs()) G0_reduced = reduce_all(Q, p, G0_coeffs, offset) # Now G0_reduced expresses F((x+1) dx/y) in terms of dx/y and x dx/y. # Re-express this in terms of (x+1) dx/y and x dx/y. H0_reduced = [ G0_reduced[0], G0_reduced[1] - G0_reduced[0] ] # The thing we're about to divide by better be a unit. assert H0_reduced[1].is_unit(), \ "Hey that's impossible! The second entry in this column " \ "should be invertible mod p!" # Figure out the second column using the trace... H1_reduced = [ None, base_ring(trace) - H0_reduced[0] ] # ... and using that the determinant is p: H1_reduced[0] = (H0_reduced[0] * H1_reduced[1] - base_ring(p)) \ / H0_reduced[1] # Finally, change back to the usual basis (dx/y, x dx/y) F1_reduced = [ H1_reduced[0], \ H1_reduced[0] + H1_reduced[1] ] F0_reduced = [ H0_reduced[0] - F1_reduced[0], H0_reduced[0] + H0_reduced[1] - F1_reduced[1] ] # One more sanity check: our final result should be congruent mod p # to the approximation we used earlier. assert not ( (F1_reduced[0] - F1_modp_reduced[0]).is_unit() or \ (F1_reduced[1] - F1_modp_reduced[1]).is_unit() or \ F0_reduced[0].is_unit() or F0_reduced[1].is_unit()), \ "Hey that's impossible! The output matrix is not congruent mod p " \ "to the approximation found earlier!" if compute_exact_forms: return matrix(base_ring, 2, 2, [F0_reduced[0], F1_reduced[0], F0_reduced[1], F1_reduced[1]]), f_0, f_1 else: return matrix(base_ring, 2, 2, [F0_reduced[0], F1_reduced[0], F0_reduced[1], F1_reduced[1]])
894b878ec3bbe6ef06c36aa7cf3e8cd6f2838986 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/894b878ec3bbe6ef06c36aa7cf3e8cd6f2838986/monsky_washnitzer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3148, 67, 792, 67, 74, 303, 19425, 8384, 12, 53, 16, 293, 16, 490, 16, 2606, 33, 7036, 16, 3671, 67, 17165, 67, 9741, 33, 8381, 4672, 3536, 14169, 281, 326, 3148, 434, 478, 303, 19425, 8384, 603, 490, 7008, 18465, 17, 59, 961, 82, 305, 24355, 1825, 17125, 4676, 16, 598, 8762, 358, 326, 10853, 27488, 13437, 19, 93, 16, 619, 6633, 19, 93, 21877, 18, 225, 12943, 30, 2238, 1493, 31247, 16991, 271, 53, 12, 92, 13, 273, 619, 66, 23, 397, 1740, 397, 324, 8, 9364, 392, 415, 549, 21507, 8882, 512, 635, 271, 93, 66, 22, 273, 2238, 12, 92, 21877, 18, 1021, 16554, 9221, 434, 2238, 1410, 506, 279, 271, 64, 62, 19, 12, 84, 66, 49, 5153, 62, 8, 17, 287, 29087, 316, 1492, 326, 3148, 434, 284, 303, 19425, 8384, 903, 506, 15688, 18, 293, 1493, 17014, 1545, 1381, 364, 1492, 512, 711, 7494, 20176, 490, 1493, 3571, 1545, 576, 31, 271, 84, 8, 17, 20333, 6039, 434, 326, 16554, 9221, 2606, 1493, 261, 10444, 13, 326, 2606, 434, 326, 3148, 16, 309, 4846, 316, 8312, 18, 1220, 353, 12779, 358, 3671, 2724, 518, 1807, 2537, 326, 271, 69, 67, 84, 8, 434, 326, 8882, 18, 971, 326, 2606, 353, 4580, 16, 3148, 67, 792, 67, 74, 303, 19425, 8384, 903, 999, 518, 358, 8632, 326, 16039, 261, 77, 18, 73, 18, 732, 5055, 326, 6328, 970, 353, 271, 84, 8, 16, 1427, 732, 1240, 2795, 4636, 16, 1427, 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, 3148, 67, 792, 67, 74, 303, 19425, 8384, 12, 53, 16, 293, 16, 490, 16, 2606, 33, 7036, 16, 3671, 67, 17165, 67, 9741, 33, 8381, 4672, 3536, 14169, 281, 326, 3148, 434, 478, 303, 19425, 8384, 603, 490, 7008, 18465, 17, 59, 961, 82, 305, 24355, 1825, 17125, 4676, 16, 598, 8762, 358, 326, 10853, 27488, 13437, 19, 93, 16, 619, 6633, 19, 93, 21877, 18, 225, 12943, 30, 2238, 1493, 31247, 16991, 271, 53, 12, 92, 13, 273, 619, 66, 23, 397, 1740, 397, 324, 8, 9364, 392, 415, 549, 21507, 8882, 512, 635, 271, 93, 66, 22, 273, 2238, 12, 92, 21877, 18, 1021, 16554, 9221, 434, 2238, 1410, 506, 279, 271, 64, 62, 19, 2 ]
clientbit = 1 serverbit = 1 c1 = (clientbit << 1) + serverbit basiccommand = self.command_move
def domove(self, frompos, topos): #(x, y) = frompos (x2, y2) = topos
c79d18b86f21957cf4bae5c10e626824ad3d923e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3479/c79d18b86f21957cf4bae5c10e626824ad3d923e/net_go.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4092, 841, 12, 2890, 16, 628, 917, 16, 358, 917, 4672, 468, 12, 92, 16, 677, 13, 273, 628, 917, 261, 92, 22, 16, 677, 22, 13, 273, 358, 917, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4092, 841, 12, 2890, 16, 628, 917, 16, 358, 917, 4672, 468, 12, 92, 16, 677, 13, 273, 628, 917, 261, 92, 22, 16, 677, 22, 13, 273, 358, 917, 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 ]
debug(" domain %s is not in user allow-list", cookie.domain)
_debug(" domain %s is not in user allow-list", cookie.domain)
def set_ok_domain(self, cookie, request): if self.is_blocked(cookie.domain): debug(" domain %s is in user block-list", cookie.domain) return False if self.is_not_allowed(cookie.domain): debug(" domain %s is not in user allow-list", cookie.domain) return False if cookie.domain_specified: req_host, erhn = eff_request_host(request) domain = cookie.domain if self.strict_domain and (domain.count(".") >= 2): # XXX This should probably be compared with the Konqueror # (kcookiejar.cpp) and Mozilla implementations, but it's a # losing battle. i = domain.rfind(".") j = domain.rfind(".", 0, i) if j == 0: # domain like .foo.bar tld = domain[i+1:] sld = domain[j+1:i] if sld.lower() in ("co", "ac", "com", "edu", "org", "net", "gov", "mil", "int", "aero", "biz", "cat", "coop", "info", "jobs", "mobi", "museum", "name", "pro", "travel", "eu") and len(tld) == 2: # domain like .co.uk debug(" country-code second level domain %s", domain) return False if domain.startswith("."): undotted_domain = domain[1:] else: undotted_domain = domain embedded_dots = (undotted_domain.find(".") >= 0) if not embedded_dots and domain != ".local": debug(" non-local domain %s contains no embedded dot", domain) return False if cookie.version == 0: if (not erhn.endswith(domain) and (not erhn.startswith(".") and not ("."+erhn).endswith(domain))): debug(" effective request-host %s (even with added " "initial dot) does not end end with %s", erhn, domain) return False if (cookie.version > 0 or (self.strict_ns_domain & self.DomainRFC2965Match)): if not domain_match(erhn, domain): debug(" effective request-host %s does not domain-match " "%s", erhn, domain) return False if (cookie.version > 0 or (self.strict_ns_domain & self.DomainStrictNoDots)): host_prefix = req_host[:-len(domain)] if (host_prefix.find(".") >= 0 and not IPV4_RE.search(req_host)): debug(" host prefix %s for domain %s contains a dot", host_prefix, domain) return False return True
15f04d8bbaf4e2b7d0d25228ce9bc84f1e501e81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/15f04d8bbaf4e2b7d0d25228ce9bc84f1e501e81/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 67, 4308, 12, 2890, 16, 3878, 16, 590, 4672, 309, 365, 18, 291, 67, 23156, 12, 8417, 18, 4308, 4672, 1198, 2932, 282, 2461, 738, 87, 353, 316, 729, 1203, 17, 1098, 3113, 3878, 18, 4308, 13, 327, 1083, 309, 365, 18, 291, 67, 902, 67, 8151, 12, 8417, 18, 4308, 4672, 389, 4148, 2932, 282, 2461, 738, 87, 353, 486, 316, 729, 1699, 17, 1098, 3113, 3878, 18, 4308, 13, 327, 1083, 309, 3878, 18, 4308, 67, 13827, 30, 1111, 67, 2564, 16, 6445, 76, 82, 273, 16419, 67, 2293, 67, 2564, 12, 2293, 13, 2461, 273, 3878, 18, 4308, 309, 365, 18, 13948, 67, 4308, 471, 261, 4308, 18, 1883, 2932, 1199, 13, 1545, 576, 4672, 468, 11329, 1220, 1410, 8656, 506, 15843, 598, 326, 1475, 265, 25734, 280, 468, 261, 79, 8417, 11930, 18, 4057, 84, 13, 471, 19058, 10745, 16164, 16, 1496, 518, 1807, 279, 468, 437, 2470, 324, 4558, 298, 18, 277, 273, 2461, 18, 86, 4720, 2932, 1199, 13, 525, 273, 2461, 18, 86, 4720, 2932, 1199, 16, 374, 16, 277, 13, 309, 525, 422, 374, 30, 225, 468, 2461, 3007, 263, 11351, 18, 3215, 23373, 273, 2461, 63, 77, 15, 21, 26894, 272, 1236, 273, 2461, 63, 78, 15, 21, 30, 77, 65, 309, 272, 1236, 18, 8167, 1435, 316, 7566, 2894, 3113, 315, 1077, 3113, 315, 832, 3113, 315, 28049, 3113, 315, 3341, 3113, 315, 2758, 3113, 315, 75, 1527, 3113, 315, 81, 330, 3113, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 67, 4308, 12, 2890, 16, 3878, 16, 590, 4672, 309, 365, 18, 291, 67, 23156, 12, 8417, 18, 4308, 4672, 1198, 2932, 282, 2461, 738, 87, 353, 316, 729, 1203, 17, 1098, 3113, 3878, 18, 4308, 13, 327, 1083, 309, 365, 18, 291, 67, 902, 67, 8151, 12, 8417, 18, 4308, 4672, 389, 4148, 2932, 282, 2461, 738, 87, 353, 486, 316, 729, 1699, 17, 1098, 3113, 3878, 18, 4308, 13, 327, 1083, 309, 3878, 18, 4308, 67, 13827, 30, 1111, 67, 2564, 16, 6445, 76, 82, 273, 16419, 67, 2293, 67, 2564, 12, 2293, 13, 2461, 273, 3878, 18, 4308, 309, 365, 18, 13948, 67, 4308, 471, 261, 4308, 18, 1883, 2932, 1199, 13, 2 ]
filter = self.distance_array()[R + max] < self.couplingradius
filter = self.distance_array()[R + max] < self.couplingradius
def get_hamiltonian_kpoint(self, kpt_c, calc): """Get Hamiltonian at some new arbitrary k-vector
21695c1ef91b5e7baceceb881c3e64b616c594fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/21695c1ef91b5e7baceceb881c3e64b616c594fb/wannier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 76, 11580, 1917, 2779, 67, 79, 1153, 12, 2890, 16, 417, 337, 67, 71, 16, 7029, 4672, 3536, 967, 670, 11580, 1917, 2779, 622, 2690, 394, 11078, 417, 17, 7737, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 76, 11580, 1917, 2779, 67, 79, 1153, 12, 2890, 16, 417, 337, 67, 71, 16, 7029, 4672, 3536, 967, 670, 11580, 1917, 2779, 622, 2690, 394, 11078, 417, 17, 7737, 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 ]
except connection.RestlibException, e: log.error(failed_msg % e.msg) errorWindow(constants.REGISTER_ERROR % linkify(e.msg)) self.close_window() return False
def register(self, testing=None): self.uname = registration_xml.get_widget("account_login") self.passwd = registration_xml.get_widget("account_password") self.consumer_name = registration_xml.get_widget("consumer_name")
af52eb1799948d327d20a1871e4beb16c2b3230d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/af52eb1799948d327d20a1871e4beb16c2b3230d/managergui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 2890, 16, 7769, 33, 7036, 4672, 365, 18, 318, 339, 273, 7914, 67, 2902, 18, 588, 67, 6587, 2932, 4631, 67, 5819, 7923, 365, 18, 24002, 273, 7914, 67, 2902, 18, 588, 67, 6587,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 2890, 16, 7769, 33, 7036, 4672, 365, 18, 318, 339, 273, 7914, 67, 2902, 18, 588, 67, 6587, 2932, 4631, 67, 5819, 7923, 365, 18, 24002, 273, 7914, 67, 2902, 18, 588, 67, 6587, 2932, 4631, 67, 3664, 7923, 365, 18, 13230, 67, 529, 273, 7914, 67, 2902, 18, 588, 67, 6587, 2932, 13230, 67, 529, 7923, 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 ]