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
routingOvershoot = 10
routingOvershoot = 5
def update_geometry(self): self._line_source.SetPoint1(self.src) self._line_source.SetPoint2(self.dst) self._line_source.Update()
cb9aec24470b9b2d0518d5fdb549fb0cc596454a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4494/cb9aec24470b9b2d0518d5fdb549fb0cc596454a/devide_canvas_object.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 14330, 12, 2890, 4672, 365, 6315, 1369, 67, 3168, 18, 694, 2148, 21, 12, 2890, 18, 4816, 13, 365, 6315, 1369, 67, 3168, 18, 694, 2148, 22, 12, 2890, 18, 11057, 13, 365, 6315, 1369, 67, 3168, 18, 1891, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 ]
l = Link(title=u'מסמך הצעת החוק באתר הכנסת', url=v.full_text_url, content_type=ContentType.objects.get_for_model(v), object_pk=v.id)
l = Link(title=u'מסמך הצעת החוק באתר הכנסת', url=v.full_text_url, content_type=ContentType.objects.get_for_model(v), object_pk=str(v.id))
def update_votes(self): """This function updates votes data online, without saving to files.""" current_max_src_id = Vote.objects.aggregate(Max('src_id'))['src_id__max'] if current_max_src_id == None: # the db contains no votes, meaning its empty print "DB is empty. --update can only be used to update, not for first time loading. \ntry --all, or get some data using initial_data.json\n" return vote_id = current_max_src_id+1 # first vote to look for is the max_src_id we have plus 1 limit_src_id = vote_id + 20 # look for next 20 votes. if results are found, this value will be incremented. while vote_id < limit_src_id: (page, vote_src_url) = self.read_votes_page(vote_id) title = self.get_page_title(page) if(title == """הצבעות במליאה-חיפוש"""): # found no vote with this id logger.debug("no vote found at id %d" % vote_id) else: limit_src_id = vote_id + 20 # results found, so we'll look for at least 20 more votes (vote_label, vote_meeting_num, vote_num, date) = self.get_vote_data(page) #(vote_id, vote_src_url, vote_label, vote_meeting_num, vote_num, vote_time_string, count_for, count_against, count_abstain, count_no_vote) = line.split('\t') #f2.write("%d\t%s\t%s\t%s\t%s\t%s\t%d\t%d\t%d\t%d\n" % (id, src_url, name, meeting_num, vote_num, date)) logger.debug("downloaded data with vote id %d" % vote_id) vote_time_string = date.replace('&nbsp;',' ') for i in self.heb_months: if i in vote_time_string: month = self.heb_months.index(i)+1 day = re.search("""(\d\d?)""", vote_time_string).group(1) year = re.search("""(\d\d\d\d)""", vote_time_string).group(1) vote_hm = datetime.datetime.strptime ( vote_time_string.split(' ')[-1], "%H:%M" ) vote_date = datetime.date(int(year),int(month),int(day)) vote_time = datetime.datetime(int(year), int(month), int(day), vote_hm.hour, vote_hm.minute) #vote_label_for_search = self.get_search_string(vote_label)
4f8b077920069cfd9afe1afd7ef49e0aa5b8d64b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1866/4f8b077920069cfd9afe1afd7ef49e0aa5b8d64b/syncdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 27800, 12, 2890, 4672, 3536, 2503, 445, 4533, 19588, 501, 12365, 16, 2887, 12392, 358, 1390, 12123, 783, 67, 1896, 67, 4816, 67, 350, 273, 27540, 18, 6911, 18, 18573, 12, 2747, 2668, 4816, 67, 350, 26112, 3292, 4816, 67, 350, 972, 1896, 3546, 309, 783, 67, 1896, 67, 4816, 67, 350, 422, 599, 30, 468, 326, 1319, 1914, 1158, 19588, 16, 12256, 2097, 1008, 1172, 315, 2290, 353, 1008, 18, 1493, 2725, 848, 1338, 506, 1399, 358, 1089, 16, 486, 364, 1122, 813, 7153, 18, 521, 82, 698, 1493, 454, 16, 578, 336, 2690, 501, 1450, 2172, 67, 892, 18, 1977, 64, 82, 6, 327, 12501, 67, 350, 273, 783, 67, 1896, 67, 4816, 67, 350, 15, 21, 468, 1122, 12501, 358, 2324, 364, 353, 326, 943, 67, 4816, 67, 350, 732, 1240, 8737, 404, 1800, 67, 4816, 67, 350, 273, 12501, 67, 350, 397, 4200, 468, 2324, 364, 1024, 4200, 19588, 18, 309, 1686, 854, 1392, 16, 333, 460, 903, 506, 28859, 18, 1323, 12501, 67, 350, 411, 1800, 67, 4816, 67, 350, 30, 261, 2433, 16, 12501, 67, 4816, 67, 718, 13, 273, 365, 18, 896, 67, 27800, 67, 2433, 12, 25911, 67, 350, 13, 2077, 273, 365, 18, 588, 67, 2433, 67, 2649, 12, 2433, 13, 309, 12, 2649, 422, 3536, 152, 247, 152, 104, 152, 244, 152, 100, 152, 248, 152, 108, 225, 152, 244, 152, 257, 152, 255, 152, 252, 152, 243, 152, 247, 17, 152, 250, 152, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 27800, 12, 2890, 4672, 3536, 2503, 445, 4533, 19588, 501, 12365, 16, 2887, 12392, 358, 1390, 12123, 783, 67, 1896, 67, 4816, 67, 350, 273, 27540, 18, 6911, 18, 18573, 12, 2747, 2668, 4816, 67, 350, 26112, 3292, 4816, 67, 350, 972, 1896, 3546, 309, 783, 67, 1896, 67, 4816, 67, 350, 422, 599, 30, 468, 326, 1319, 1914, 1158, 19588, 16, 12256, 2097, 1008, 1172, 315, 2290, 353, 1008, 18, 1493, 2725, 848, 1338, 506, 1399, 358, 1089, 16, 486, 364, 1122, 813, 7153, 18, 521, 82, 698, 1493, 454, 16, 578, 336, 2690, 501, 1450, 2172, 67, 892, 18, 1977, 64, 82, 6, 327, 12501, 67, 350, 273, 783, 67, 1896, 67, 4816, 67, 2 ]
name, type, language = FileName.decode(name)
short_name, type, language = FileName.decode(name)
def upload_file(self, context): file = context.get_form_value('file') if file is None: raise UserError, self.gettext(u'The file must be entered')
386290306876d60b3dc2d3ac2edfdbbb74e6ee7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/386290306876d60b3dc2d3ac2edfdbbb74e6ee7f/Folder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3617, 67, 768, 12, 2890, 16, 819, 4672, 585, 273, 819, 18, 588, 67, 687, 67, 1132, 2668, 768, 6134, 309, 585, 353, 599, 30, 1002, 2177, 668, 16, 365, 18, 29967, 12, 89, 11, 1986, 585, 1297, 506, 16219, 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, 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 12, 2890, 16, 819, 4672, 585, 273, 819, 18, 588, 67, 687, 67, 1132, 2668, 768, 6134, 309, 585, 353, 599, 30, 1002, 2177, 668, 16, 365, 18, 29967, 12, 89, 11, 1986, 585, 1297, 506, 16219, 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 ]
def Update(self):
def MoveTo(self, dest): if self.previous_folder is not None: self.previous_folder = self.folder_name self.folder_name = dest def Save(self):
def Update(self): # we can't actually update the message with IMAP # so what we do is create a new message and delete the old one response = imap.append(self.folder_name, None, self.extractTime(), self.get_payload()) response = imap.select(self.folder_name, False) response = imap.uid("STORE", self.getId(), "+FLAGS.SILENT", "(\\Deleted)") # we need to update the uid, as it will have changed response = imap.uid("SEARCH", "(TEXT)", self.get_payload()) self.changeId(response[1][0])
2457cec0eaf41f9285d252974e2f4c340ddc6ed2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/2457cec0eaf41f9285d252974e2f4c340ddc6ed2/imapfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9933, 774, 12, 2890, 16, 1570, 4672, 565, 309, 365, 18, 11515, 67, 5609, 353, 486, 599, 30, 365, 18, 11515, 67, 5609, 273, 365, 18, 5609, 67, 529, 365, 18, 5609, 67, 529, 273, 1570, 225, 1652, 7074, 12, 2890, 4672, 468, 732, 848, 1404, 6013, 1089, 326, 883, 598, 6246, 2203, 468, 1427, 4121, 732, 741, 353, 752, 279, 394, 883, 471, 1430, 326, 1592, 1245, 766, 273, 20226, 18, 6923, 12, 2890, 18, 5609, 67, 529, 16, 599, 16, 365, 18, 8004, 950, 9334, 365, 18, 588, 67, 7648, 10756, 766, 273, 20226, 18, 4025, 12, 2890, 18, 5609, 67, 529, 16, 1083, 13, 766, 273, 20226, 18, 1911, 2932, 13651, 3113, 365, 18, 26321, 9334, 13773, 17836, 18, 2320, 900, 1784, 3113, 7751, 1695, 7977, 2225, 13, 468, 732, 1608, 358, 1089, 326, 4555, 16, 487, 518, 903, 1240, 3550, 766, 273, 20226, 18, 1911, 2932, 17251, 3113, 7751, 5151, 2225, 16, 365, 18, 588, 67, 7648, 10756, 365, 18, 3427, 548, 12, 2740, 63, 21, 6362, 20, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9933, 774, 12, 2890, 16, 1570, 4672, 565, 309, 365, 18, 11515, 67, 5609, 353, 486, 599, 30, 365, 18, 11515, 67, 5609, 273, 365, 18, 5609, 67, 529, 365, 18, 5609, 67, 529, 273, 1570, 225, 1652, 7074, 12, 2890, 4672, 468, 732, 848, 1404, 6013, 1089, 326, 883, 598, 6246, 2203, 468, 1427, 4121, 732, 741, 353, 752, 279, 394, 883, 471, 1430, 326, 1592, 1245, 766, 273, 20226, 18, 6923, 12, 2890, 18, 5609, 67, 529, 16, 599, 16, 365, 18, 8004, 950, 9334, 365, 18, 588, 67, 7648, 10756, 766, 273, 20226, 18, 4025, 12, 2890, 18, 5609, 67, 529, 16, 1083, 13, 766, 273, 20226, 18, 1911, 2932, 13651, 3113, 365, 18, 26321, 2 ]
raise Exception('Error', 'No workflow instance defined!')
instance_obj.raise_user_error(cursor, 'no_instance_defined', context=context)
def execute(self, cursor, user, ids, datas, context=None): import pydot lang_obj = self.pool.get('ir.lang') workflow_obj = self.pool.get('workflow') instance_obj = self.pool.get('workflow.instance')
be0b7cdedd0596d75057c7435a420818ad4fbed3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/be0b7cdedd0596d75057c7435a420818ad4fbed3/workflow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 5386, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 5386, 16, 819, 33, 7036, 4672, 1930, 2395, 9811, 3303, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4936, 6134, 6095, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 13815, 6134, 791, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 13815, 18, 1336, 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 ]
cursect[self.optionxform(optname)] = optval
optname = self.optionxform(optname) cursect[optname] = optval
def __read(self, fp, fpname): """Parse a sectioned setup file.
490cbf56868a5118b635128d808b569527adaab6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 896, 12, 2890, 16, 4253, 16, 4253, 529, 4672, 3536, 3201, 279, 2442, 329, 3875, 585, 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 ]
print 'realizando calculo compra:' subtot = scl_obj.invoice_price_unit*q_mov
subtot = scl_obj.invoice_line_id.price_subtotal
def compute_compra(self, cr, uid, ids, scl_obj, q_mov,tot,prom,q_des): subtot = 0.0 print 'q mov: ',q_mov print 'qda antes: ',q_des print 'subtotal antes: ',subtot print 'total antes: ',tot print 'avg antes: ',prom q_des+=q_mov print 'realizando calculo compra:' subtot = scl_obj.invoice_price_unit*q_mov tot += subtot if q_des > 0: prom = tot/q_des else: prom = 0 print 'subtotal despues: ',subtot print 'total despues: ',tot print 'avg despues: ',prom print 'qda despues:',q_des res = (q_des,subtot,tot,prom) return res
62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 2919, 354, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 31648, 67, 2603, 16, 1043, 67, 81, 1527, 16, 3307, 16, 17401, 16, 85, 67, 5489, 4672, 720, 3307, 273, 374, 18, 20, 1172, 296, 85, 5730, 30, 2265, 85, 67, 81, 1527, 1172, 296, 85, 2414, 392, 1078, 30, 2265, 85, 67, 5489, 1172, 296, 1717, 4963, 392, 1078, 30, 2265, 1717, 3307, 1172, 296, 4963, 392, 1078, 30, 2265, 3307, 1172, 296, 14141, 392, 1078, 30, 2265, 17401, 1043, 67, 5489, 15, 33, 85, 67, 81, 1527, 225, 720, 3307, 273, 31648, 67, 2603, 18, 16119, 67, 1369, 67, 350, 18, 8694, 67, 1717, 4963, 225, 9997, 1011, 720, 3307, 309, 1043, 67, 5489, 405, 374, 30, 3012, 273, 9997, 19, 85, 67, 5489, 469, 30, 3012, 273, 374, 225, 1172, 296, 1717, 4963, 2832, 84, 3610, 30, 2265, 1717, 3307, 1172, 296, 4963, 2832, 84, 3610, 30, 2265, 3307, 1172, 296, 14141, 2832, 84, 3610, 30, 2265, 17401, 1172, 296, 85, 2414, 2832, 84, 3610, 30, 2187, 85, 67, 5489, 400, 273, 261, 85, 67, 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 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 31648, 67, 2603, 16, 1043, 67, 81, 1527, 16, 3307, 16, 17401, 16, 85, 67, 5489, 4672, 720, 3307, 273, 374, 18, 20, 1172, 296, 85, 5730, 30, 2265, 85, 67, 81, 1527, 1172, 296, 85, 2414, 392, 1078, 30, 2265, 85, 67, 5489, 1172, 296, 1717, 4963, 392, 1078, 30, 2265, 1717, 3307, 1172, 296, 4963, 392, 1078, 30, 2265, 3307, 1172, 296, 14141, 392, 1078, 30, 2265, 17401, 1043, 67, 5489, 15, 33, 85, 67, 81, 1527, 225, 720, 3307, 273, 31648, 67, 2603, 18, 16119, 67, 1369, 67, 350, 18, 8694, 67, 1717, 4963, 225, 9997, 1011, 720, 3307, 309, 1043, 67, 2 ]
if autocreated in x.group('reason'):
if autocreated in x.group('reason') and not sul:
def parselog(wsite, raw, talk, number): """ The function to load the users (only users who have a certain number of edits) """ someone_found = False autocreated = wsite.mediawiki_message('newuserlog-autocreate-entry') # I search with a regex how many user have not the talk page # and i put them in a list (i find it more easy and secure). # XXX: That's the regex, if there are problems, take a look here. reg = u'\(<a href=\"' + re.escape(wsite.path()) reg += u'\?title=%s(?P<user>.*?)&(?:amp;|)action=(?:edit|editredlink|edit&amp;redlink=1)\"' % talk reg += u'.*?\) (?P<reason>.*?) . </li>' p = re.compile(reg, re.UNICODE) for x in p.finditer(raw): someone_found = True username = x.group('user') #skip autocreated users (SUL) if autocreated in x.group('reason'): wikipedia.output(u'%s has been created automatically, skipping...' % username) continue userpage = wikipedia.Page(wsite, username) # Defing the contrib's page of the user. pathWiki = wsite.family.nicepath(wsite.lang) con = '%sSpecial:Contributions/%s' % (pathWiki, userpage.urlname()) # Getting the contribs... contribs = wsite.getUrl(con) #FIXME: It counts the first 50 edits # if number > 50, it won't work # (not *so* useful, it should be enough). contribnum = contribs.count('<li>') if contribnum >= number: wikipedia.output(u'%s has enough edits to be welcomed' % userpage.titleWithoutNamespace() ) # The user must be welcomed, return his data. yield ([username, contribnum]) elif contribnum < number: if contribnum == 0: wikipedia.output(u'%s has no contributions.' % userpage.titleWithoutNamespace() ) else: wikipedia.output(u'%s has only %s contributions.' % (userpage.titleWithoutNamespace(), str(contribnum)) ) # That user mustn't be welcomed. continue if someone_found: wikipedia.output(u'There is nobody to be welcomed...') else: wikipedia.output(u'\nLoaded all users...')
98559af7589cd73fd27133fc330012830680fcc0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/98559af7589cd73fd27133fc330012830680fcc0/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 12, 91, 4256, 16, 1831, 16, 26591, 16, 1300, 4672, 3536, 1021, 445, 358, 1262, 326, 3677, 261, 3700, 3677, 10354, 1240, 279, 8626, 1300, 434, 24450, 13, 3536, 18626, 67, 7015, 273, 1083, 23173, 266, 690, 273, 341, 4256, 18, 5829, 13044, 67, 2150, 2668, 2704, 1355, 1330, 17, 5854, 504, 602, 17, 4099, 6134, 225, 468, 467, 1623, 598, 279, 3936, 3661, 4906, 729, 1240, 486, 326, 26591, 1363, 468, 471, 277, 1378, 2182, 316, 279, 666, 261, 77, 1104, 518, 1898, 12779, 471, 8177, 2934, 225, 468, 11329, 30, 12466, 1807, 326, 3936, 16, 309, 1915, 854, 9688, 16, 4862, 279, 2324, 2674, 18, 225, 960, 273, 225, 582, 8314, 12, 32, 69, 3897, 5189, 11, 397, 283, 18, 6939, 12, 91, 4256, 18, 803, 10756, 960, 1011, 582, 8314, 35, 2649, 5095, 87, 3680, 52, 32, 1355, 34, 4509, 8535, 10, 6503, 931, 31, 96, 13, 1128, 33, 6503, 4619, 96, 4619, 1118, 1232, 96, 4619, 10, 931, 31, 1118, 1232, 33, 21, 13, 2412, 11, 738, 26591, 960, 1011, 582, 11, 4509, 10936, 13, 13590, 52, 32, 10579, 34, 4509, 8535, 263, 7765, 549, 1870, 293, 273, 283, 18, 11100, 12, 1574, 16, 283, 18, 26642, 13, 225, 364, 619, 316, 293, 18, 4720, 2165, 12, 1899, 4672, 18626, 67, 7015, 273, 1053, 2718, 273, 619, 18, 1655, 2668, 1355, 6134, 468, 7457, 23173, 266, 690, 3677, 261, 55, 1506, 13, 309, 23173, 266, 690, 316, 619, 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, 779, 1786, 717, 12, 91, 4256, 16, 1831, 16, 26591, 16, 1300, 4672, 3536, 1021, 445, 358, 1262, 326, 3677, 261, 3700, 3677, 10354, 1240, 279, 8626, 1300, 434, 24450, 13, 3536, 18626, 67, 7015, 273, 1083, 23173, 266, 690, 273, 341, 4256, 18, 5829, 13044, 67, 2150, 2668, 2704, 1355, 1330, 17, 5854, 504, 602, 17, 4099, 6134, 225, 468, 467, 1623, 598, 279, 3936, 3661, 4906, 729, 1240, 486, 326, 26591, 1363, 468, 471, 277, 1378, 2182, 316, 279, 666, 261, 77, 1104, 518, 1898, 12779, 471, 8177, 2934, 225, 468, 11329, 30, 12466, 1807, 326, 3936, 16, 309, 1915, 854, 9688, 16, 4862, 279, 2324, 2674, 18, 225, 960, 273, 225, 582, 8314, 12, 32, 2 ]
skt = self.createInternetSocket()
skt = self.createInternetSocket()
def startListening(self): """Create and bind my socket, and begin listening on it. This is called on unserialization, and must be called after creating a server to begin listening on the specified port. """ log.msg("%s starting on %s"%(self.factory.__class__, self.port)) if type(self.port) == types.StringType: skt = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) skt.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) skt.bind(self.port) self.unixsocket = 1 else: skt = self.createInternetSocket() skt.bind( ('',self.port) ) skt.listen(5) self.connected = 1 self.socket = skt self.fileno = self.socket.fileno self.startReading()
d1a8ab80a43e219665b56f58cabfb23e37a69094 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/d1a8ab80a43e219665b56f58cabfb23e37a69094/tcp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 31594, 12, 2890, 4672, 3536, 1684, 471, 1993, 3399, 2987, 16, 471, 2376, 13895, 603, 518, 18, 225, 1220, 353, 2566, 603, 640, 8818, 1588, 16, 471, 1297, 506, 2566, 1839, 4979, 279, 1438, 358, 2376, 13895, 603, 326, 1269, 1756, 18, 3536, 613, 18, 3576, 27188, 87, 5023, 603, 738, 87, 6, 17105, 2890, 18, 6848, 16186, 1106, 972, 16, 365, 18, 655, 3719, 309, 618, 12, 2890, 18, 655, 13, 422, 1953, 18, 780, 559, 30, 4343, 88, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 10377, 60, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 4343, 88, 18, 4424, 27844, 12, 7814, 18, 19815, 67, 25699, 16, 2987, 18, 3584, 67, 862, 8001, 14142, 16, 404, 13, 4343, 88, 18, 4376, 12, 2890, 18, 655, 13, 365, 18, 21136, 7814, 273, 404, 469, 30, 4343, 88, 273, 365, 18, 2640, 26562, 4534, 1435, 4343, 88, 18, 4376, 12, 7707, 2187, 2890, 18, 655, 13, 262, 4343, 88, 18, 18085, 12, 25, 13, 365, 18, 8537, 273, 404, 365, 18, 7814, 273, 4343, 88, 365, 18, 7540, 5764, 273, 365, 18, 7814, 18, 7540, 5764, 365, 18, 1937, 15714, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 31594, 12, 2890, 4672, 3536, 1684, 471, 1993, 3399, 2987, 16, 471, 2376, 13895, 603, 518, 18, 225, 1220, 353, 2566, 603, 640, 8818, 1588, 16, 471, 1297, 506, 2566, 1839, 4979, 279, 1438, 358, 2376, 13895, 603, 326, 1269, 1756, 18, 3536, 613, 18, 3576, 27188, 87, 5023, 603, 738, 87, 6, 17105, 2890, 18, 6848, 16186, 1106, 972, 16, 365, 18, 655, 3719, 309, 618, 12, 2890, 18, 655, 13, 422, 1953, 18, 780, 559, 30, 4343, 88, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 10377, 60, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 4343, 88, 18, 4424, 27844, 12, 7814, 18, 19815, 67, 25699, 16, 2987, 18, 3584, 67, 862, 8001, 2 ]
assert form
if form is None: if len(self._browser._forms) == 1: form = self._browser._forms[0] else: raise Exception("more than one form; you must select one (use 'fv') before submitting")
def submit(self, fieldname): form = self._browser.form assert form
7c8bddcd22933c1446b6453e1110bff4c8f56bd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8598/7c8bddcd22933c1446b6453e1110bff4c8f56bd1/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 12, 2890, 16, 14680, 4672, 646, 273, 365, 6315, 11213, 18, 687, 1815, 646,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 12, 2890, 16, 14680, 4672, 646, 273, 365, 6315, 11213, 18, 687, 1815, 646, 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 ]
'text:anchor-type': 'paragraph',
def generate_image(self, node, source, destination, current_element): #ipshell('At generate_image') self.image_style_count += 1 style_name = 'rstframestyle%d' % self.image_style_count # Add the style. attrib = { 'style:name': style_name, 'style:family': 'graphic', 'style:parent-style-name': 'Graphics', } el1 = SubElement(self.automatic_styles, 'style:style', attrib=attrib, nsdict=SNSD) halign = 'center' valign = 'top' if 'align' in node.attributes: align = node.attributes['align'].split() for val in align: if val in ('left', 'center', 'right'): halign = val elif val in ('top', 'middle', 'bottom'): valign = val attrib = { 'style:vertical-pos': 'top', 'style:vertical-rel': 'paragraph', 'style:horizontal-pos': halign, 'style:vertical-pos': valign, 'style:horizontal-rel': 'paragraph', 'style:mirror': 'none', 'fo:clip': 'rect(0cm 0cm 0cm 0cm)', 'draw:luminance': '0%', 'draw:contrast': '0%', 'draw:red': '0%', 'draw:green': '0%', 'draw:blue': '0%', 'draw:gamma': '100%', 'draw:color-inversion': 'false', 'draw:image-opacity': '100%', 'draw:color-mode': 'standard', } #ipshell('At generate_image') # If we are inside a table, add a no-wrap style. if self.is_in_table(node): attrib['style:wrap'] = 'none' el2 = SubElement(el1, 'style:graphic-properties', attrib=attrib, nsdict=SNSD) # Add the content. #el = SubElement(current_element, 'text:p', # attrib={'text:style-name': 'rststyle-textbody'}) attrib={ 'draw:style-name': style_name, 'draw:name': 'graphics2', 'text:anchor-type': 'paragraph', #'svg:width': '%fcm' % (width, ), #'svg:height': '%fcm' % (height, ), 'draw:z-index': '1', } if 'scale' in node.attributes: try: scale = int(node.attributes['scale']) if scale < 1 or scale > 100: raise ValueError scale = scale * 0.01 except ValueError, e: print 'Error: Invalid scale for image: "%s"' % ( node.attributes['scale'], ) else: scale = 1.0 if 'width' in node.attributes: try: width = int(node.attributes['width']) width = width * (35.278 / 1000.0) width *= scale attrib['svg:width'] = '%.2fcm' % (width, ) except ValueError, e: print 'Error: Invalid width for image: "%s"' % ( node.attributes['width'], ) if 'height' in node.attributes: try: height = int(node.attributes['height']) height = height * (35.278 / 1000.0) height *= scale attrib['svg:height'] = '%.2fcm' % (height, ) except ValueError, e: print 'Error: Invalid height for image: "%s"' % ( node.attributes['height'], ) el1 = SubElement(current_element, 'draw:frame', attrib=attrib) el2 = SubElement(el1, 'draw:image', attrib={ 'xlink:href': '%s' % (destination, ), 'xlink:type': 'simple', 'xlink:show': 'embed', 'xlink:actuate': 'onLoad', }) return el1
16a1da5b8978aa5951807aabf717773a8e3331f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1278/16a1da5b8978aa5951807aabf717773a8e3331f4/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2730, 12, 2890, 16, 756, 16, 1084, 16, 2929, 16, 783, 67, 2956, 4672, 468, 625, 10304, 2668, 861, 2103, 67, 2730, 6134, 365, 18, 2730, 67, 4060, 67, 1883, 1011, 404, 2154, 67, 529, 273, 296, 16114, 74, 1940, 19706, 9, 72, 11, 738, 365, 18, 2730, 67, 4060, 67, 1883, 468, 1436, 326, 2154, 18, 5885, 273, 288, 296, 4060, 30, 529, 4278, 2154, 67, 529, 16, 296, 4060, 30, 9309, 4278, 296, 4660, 335, 2187, 296, 4060, 30, 2938, 17, 4060, 17, 529, 4278, 296, 17558, 2187, 289, 415, 21, 273, 5479, 12, 2890, 18, 5854, 4941, 67, 10218, 16, 296, 4060, 30, 4060, 2187, 5885, 33, 14588, 16, 3153, 1576, 33, 55, 3156, 40, 13, 366, 7989, 273, 296, 5693, 11, 1244, 724, 273, 296, 3669, 11, 309, 296, 7989, 11, 316, 756, 18, 4350, 30, 5689, 273, 756, 18, 4350, 3292, 7989, 29489, 4939, 1435, 364, 1244, 316, 5689, 30, 309, 1244, 316, 7707, 4482, 2187, 296, 5693, 2187, 296, 4083, 11, 4672, 366, 7989, 273, 1244, 1327, 1244, 316, 7707, 3669, 2187, 296, 18661, 2187, 296, 9176, 11, 4672, 1244, 724, 273, 1244, 5885, 273, 288, 296, 4060, 30, 17824, 17, 917, 4278, 296, 3669, 2187, 296, 4060, 30, 17824, 17, 2878, 4278, 296, 22445, 2187, 296, 4060, 30, 18396, 17, 917, 4278, 366, 7989, 16, 296, 4060, 30, 17824, 17, 917, 4278, 1244, 724, 16, 296, 4060, 30, 18396, 17, 2878, 4278, 296, 22445, 2187, 296, 4060, 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, 2103, 67, 2730, 12, 2890, 16, 756, 16, 1084, 16, 2929, 16, 783, 67, 2956, 4672, 468, 625, 10304, 2668, 861, 2103, 67, 2730, 6134, 365, 18, 2730, 67, 4060, 67, 1883, 1011, 404, 2154, 67, 529, 273, 296, 16114, 74, 1940, 19706, 9, 72, 11, 738, 365, 18, 2730, 67, 4060, 67, 1883, 468, 1436, 326, 2154, 18, 5885, 273, 288, 296, 4060, 30, 529, 4278, 2154, 67, 529, 16, 296, 4060, 30, 9309, 4278, 296, 4660, 335, 2187, 296, 4060, 30, 2938, 17, 4060, 17, 529, 4278, 296, 17558, 2187, 289, 415, 21, 273, 5479, 12, 2890, 18, 5854, 4941, 67, 10218, 16, 296, 4060, 30, 4060, 2187, 5885, 33, 14588, 16, 3153, 1576, 33, 55, 2 ]
return PyInt_FromLong(b);
return PyLong_FromLong(b);
def visitModule(self, mod): self.emit("""
1f4fa86a2bb17c7df98c7079180833cca294eddd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/1f4fa86a2bb17c7df98c7079180833cca294eddd/asdl_c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 3120, 12, 2890, 16, 681, 4672, 365, 18, 18356, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3757, 3120, 12, 2890, 16, 681, 4672, 365, 18, 18356, 2932, 3660, 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 ]
for m in mods:
for m in sorted(sums.keys()):
def write_results(self, show_missing=True, summary=False, coverdir=None): """ @param coverdir """ if self.calledfuncs: print() print("functions called:") calls = self.calledfuncs.keys() calls.sort() for filename, modulename, funcname in calls: print(("filename: %s, modulename: %s, funcname: %s" % (filename, modulename, funcname)))
3dc222f58de2ae0cdba007fd713907180e209b50 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/3dc222f58de2ae0cdba007fd713907180e209b50/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4717, 12, 2890, 16, 2405, 67, 7337, 33, 5510, 16, 4916, 33, 8381, 16, 5590, 1214, 33, 7036, 4672, 3536, 632, 891, 5590, 1214, 3536, 309, 365, 18, 11777, 17728, 30, 1172, 1435, 1172, 2932, 10722, 2566, 2773, 13, 4097, 273, 365, 18, 11777, 17728, 18, 2452, 1435, 4097, 18, 3804, 1435, 364, 1544, 16, 31961, 16, 1326, 529, 316, 4097, 30, 1172, 12, 2932, 3459, 30, 738, 87, 16, 31961, 30, 738, 87, 16, 1326, 529, 30, 738, 87, 6, 738, 261, 3459, 16, 31961, 16, 1326, 529, 20349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4717, 12, 2890, 16, 2405, 67, 7337, 33, 5510, 16, 4916, 33, 8381, 16, 5590, 1214, 33, 7036, 4672, 3536, 632, 891, 5590, 1214, 3536, 309, 365, 18, 11777, 17728, 30, 1172, 1435, 1172, 2932, 10722, 2566, 2773, 13, 4097, 273, 365, 18, 11777, 17728, 18, 2452, 1435, 4097, 18, 3804, 1435, 364, 1544, 16, 31961, 16, 1326, 529, 316, 4097, 30, 1172, 12, 2932, 3459, 30, 738, 87, 16, 31961, 30, 738, 87, 16, 1326, 529, 30, 738, 87, 6, 738, 261, 3459, 16, 31961, 16, 1326, 529, 20349, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.windows.get_widget('bookmarks').show()
def __init__(self, view, showMethodTree = False, showObjectTree = False, showMethodInteraction = False): self.view = view self.session = view.session self.showMethodTree = showMethodTree self.showObjectTree = showObjectTree self.showMethodInteraction = showMethodInteraction self.windows = gtk.glade.XML(os.path.join(os.path.split(gnomoire.__file__)[0], "_gnomoire", "gnomoire.glade"))
362cf162cc77612b0a9065a579a6bdd0bbad56d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/362cf162cc77612b0a9065a579a6bdd0bbad56d2/gnomoire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1476, 16, 2405, 1305, 2471, 273, 1083, 16, 2405, 921, 2471, 273, 1083, 16, 2405, 1305, 17419, 273, 1083, 4672, 365, 18, 1945, 273, 1476, 365, 18, 3184, 273, 1476, 18, 3184, 365, 18, 4500, 1305, 2471, 273, 2405, 1305, 2471, 365, 18, 4500, 921, 2471, 273, 2405, 921, 2471, 365, 18, 4500, 1305, 17419, 273, 2405, 1305, 17419, 365, 18, 13226, 273, 22718, 18, 7043, 2486, 18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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, 1001, 2738, 972, 12, 2890, 16, 1476, 16, 2405, 1305, 2471, 273, 1083, 16, 2405, 921, 2471, 273, 1083, 16, 2405, 1305, 17419, 273, 1083, 4672, 365, 18, 1945, 273, 1476, 365, 18, 3184, 273, 1476, 18, 3184, 365, 18, 4500, 1305, 2471, 273, 2405, 1305, 2471, 365, 18, 4500, 921, 2471, 273, 2405, 921, 2471, 365, 18, 4500, 1305, 17419, 273, 2405, 1305, 17419, 365, 18, 13226, 273, 22718, 18, 7043, 2486, 18, 4201, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 4939, 12, 1600, 362, 19847, 16186, 768, 972, 25146, 20, 6487, 4192, 1600, 362, 19847, 3113, 315, 1600, 362, 19847, 18, 7043, 2486, 6, 3719, 2, -100, -100, -100, -100, -100, -100, -100 ]
def my_scroller_go_900_300(bt, sc, *args, **kwargs):
def my_scroller_go_900_300(bt, sc):
def my_scroller_go_900_300(bt, sc, *args, **kwargs): sc.region_bring_in(900, 300, 318, 318)
ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 67, 1017, 1539, 67, 3240, 67, 29, 713, 67, 19249, 12, 23602, 16, 888, 4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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 67, 1017, 1539, 67, 3240, 67, 29, 713, 67, 19249, 12, 23602, 16, 888, 4672, 888, 18, 6858, 67, 2848, 310, 67, 267, 12, 29, 713, 16, 11631, 16, 890, 2643, 16, 890, 2643, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def orderby_2(self):
def order_by_2(self):
def orderby_2(self): return Query(self.R1) \ .orderby(lambda n: n) \ .tolist()
f134b825431ac82f3dbba76e7a945a0e195d27cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14315/f134b825431ac82f3dbba76e7a945a0e195d27cf/pyquery.py
[ 1, 8585, 326,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1353, 67, 1637, 67, 22, 12, 2890, 4672, 327, 2770, 12, 2890, 18, 54, 21, 13, 521, 263, 25896, 12, 14661, 290, 30, 290, 13, 521, 263, 3490, 376, 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 ]
msg['From'] = context.get('email_from', smtp_server.from_email)
print "::context.get('email_from', smtp_server.from_email):::",context.get('email_from', smtp_server.from_email) print "::TOOOLL::",tools.config['email_from'] if context.get('email_from', smtp_server.from_email): msg['From'] = context.get('email_from', smtp_server.from_email) elif tools.config['email_from']: msg['From'] = tools.config['email_from'] else: raise osv.except_osv(_('Error'), _("Please specify server option --email-from !")) print "::<ES::",msg['From']
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(); files += [report_file] except Exception,e: continue return files
5a558b6b1034593b8c71deeda96db7e8dd5329c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5a558b6b1034593b8c71deeda96db7e8dd5329c3/smtpclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4820, 12, 3353, 16, 4555, 16, 2605, 16, 3258, 16, 508, 33, 8381, 4672, 1390, 273, 5378, 364, 612, 316, 3258, 30, 775, 30, 1156, 273, 21954, 4227, 18, 25635, 12, 6006, 13, 261, 2088, 16, 740, 13, 273, 1156, 18, 2640, 12, 3353, 16, 4555, 16, 306, 350, 6487, 10615, 2618, 13, 309, 486, 508, 30, 2605, 67, 768, 273, 1173, 5645, 19, 20195, 11, 15, 609, 12, 350, 13, 397, 2418, 7699, 11, 469, 30, 2605, 67, 768, 273, 508, 225, 4253, 273, 1696, 12, 6006, 67, 768, 11189, 9464, 15, 6134, 4253, 18, 2626, 12, 2088, 1769, 4253, 18, 4412, 5621, 1390, 1011, 306, 6006, 67, 768, 65, 1335, 1185, 16, 73, 30, 1324, 327, 1390, 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,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390, 273, 5378, 364, 612, 316, 3258, 30, 775, 30, 1156, 273, 21954, 4227, 18, 25635, 12, 6006, 13, 261, 2088, 16, 740, 13, 273, 1156, 18, 2640, 12, 3353, 16, 4555, 16, 306, 350, 6487, 10615, 2618, 13, 309, 486, 508, 30, 2605, 67, 768, 273, 1173, 5645, 19, 20195, 11, 15, 609, 12, 350, 13, 397, 2418, 7699, 11, 469, 30, 2605, 67, 768, 273, 508, 225, 4253, 273, 1696, 12, 6006, 67, 768, 11189, 9464, 15, 6134, 4253, 18, 2626, 12, 2088, 1769, 4253, 18, 4412, 5621, 1390, 1011, 306, 6006, 67, 768, 65, 1335, 1185, 16, 73, 30, 1324, 2 ]
def get_history( klas, query, obj_id,
get_history( klas, query, obj_id,
def get_history( klas, query, obj_id, #one or None or list/tuple timeFrom, timeTo, lastver_only_if_same_time =True, times_only =False, order_by_time_then_obj =False, with_disabled =False, **setup_kargs):
0fb92a565349623415ef0fae2cfa4ab7c1f0d6c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10808/0fb92a565349623415ef0fae2cfa4ab7c1f0d6c3/timed_sa.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 336, 67, 8189, 12, 417, 9521, 16, 843, 16, 1081, 67, 350, 16, 282, 468, 476, 578, 599, 578, 666, 19, 8052, 813, 1265, 16, 23813, 16, 1142, 502, 67, 3700, 67, 430, 67, 14307, 67, 957, 273, 5510, 16, 4124, 67, 3700, 273, 8381, 16, 1353, 67, 1637, 67, 957, 67, 15991, 67, 2603, 273, 8381, 16, 598, 67, 9278, 273, 8381, 16, 2826, 8401, 67, 79, 1968, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 336, 67, 8189, 12, 417, 9521, 16, 843, 16, 1081, 67, 350, 16, 282, 468, 476, 578, 599, 578, 666, 19, 8052, 813, 1265, 16, 23813, 16, 1142, 502, 67, 3700, 67, 430, 67, 14307, 67, 957, 273, 5510, 16, 4124, 67, 3700, 273, 8381, 16, 1353, 67, 1637, 67, 957, 67, 15991, 67, 2603, 273, 8381, 16, 598, 67, 9278, 273, 8381, 16, 2826, 8401, 67, 79, 1968, 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 ]
kunde = self.gui.fakturaFaktamottaker.itemData(self.gui.fakturaFaktaMottaker.currentIndex()).toPyObject()
kunde = self.gui.fakturaFaktaMottaker.itemData(self.gui.fakturaFaktaMottaker.currentIndex()).toPyObject()
def leggTilFaktura(self): #legg inn faktura i registeret #er all nødvendig info samlet inn? if not len(unicode(self.gui.fakturaFaktaTekst.toPlainText())) and \ not self.JaNei(u"Vil du virkelig legge inn fakturaen uten fakturatekst?"): self.gui.fakturaFaktaTekst.setFocus() return False kunde = self.gui.fakturaFaktamottaker.itemData(self.gui.fakturaFaktaMottaker.currentIndex()).toPyObject() d = self.gui.fakturaFaktaDato.date() dato = mktime((d.year(),d.month(),d.day(),11,59,0,0,0,0)) # på midten av dagen (11:59) for å kunne betale fakturaen senere laget samme dag f = self.faktura.nyOrdre(kunde, ordredato=dato) f.tekst = unicode(self.gui.fakturaFaktaTekst.toPlainText()) #finn varene som er i fakturaen varer = {} for i in range(self.gui.fakturaVareliste.rowCount()): # gå gjennom alle rader v = {'id': None, 'ant': 0, 'pris': 0.0, 'mva': 0} _tekst = unicode(self.gui.fakturaVareliste.cellWidget(i, 0).currentText()).strip() v['ant'] = self.gui.fakturaVareliste.cellWidget(i, 1).value() _enhet = unicode(self.gui.fakturaVareliste.cellWidget(i, 1).suffix()).strip() v['pris'] = float(self.gui.fakturaVareliste.cellWidget(i, 2).value()) v['mva'] = int(self.gui.fakturaVareliste.cellWidget(i, 3).value()) # sjekk at alt er riktig if not v['ant'] > 0: self.alert(u'Antallet %s kan ikke være null (i rad %s) ' % (_tekst, i+1)) return False if not v['pris'] > 0.0: self.alert(u'Prisen kan ikke være null (i rad %s) ' % (i+1)) return False # hvilken vare er dette? vare = self.faktura.finnVareEllerLagNy(_tekst, v['pris'], v['mva'], _enhet) debug("fant vare i fakturaen:", unicode(v), unicode(vare)) # er dette en duplikatoppføring? if varer.has_key(vare.ID) and varer[v['id']]['mva'] == v['mva'] \ and varer[v['id']]['pris'] == v['pris']: # den samme varen, med samme pris og mva, er lagt inn tidligere if self.JaNei(u'Du har lagt inn %s mer enn én gang. Vil du slå sammen oppføringene?' % _tekst): varer[v['id']]['ant'] += v['ant'] #legg varen til den interne listen (for duplikatokontroll) varer[v['id']] = v #legg varen til fakturaen f.leggTilVare(vare, v['ant'], v['pris'], v['mva'])
f32d417f3275e9f998df35234eaed7cdc0c3dbe1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3611/f32d417f3275e9f998df35234eaed7cdc0c3dbe1/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4553, 75, 56, 330, 42, 581, 88, 21401, 12, 2890, 4672, 468, 1935, 75, 316, 82, 284, 581, 88, 21401, 277, 1744, 278, 468, 264, 777, 290, 132, 121, 15679, 409, 360, 1123, 16260, 1810, 316, 82, 35, 309, 486, 562, 12, 9124, 12, 2890, 18, 20292, 18, 507, 8629, 21401, 42, 581, 2351, 56, 3839, 334, 18, 869, 13360, 1528, 1435, 3719, 471, 521, 486, 365, 18, 46, 6491, 73, 77, 12, 89, 6, 58, 330, 9978, 16831, 79, 292, 360, 4553, 908, 316, 82, 284, 581, 88, 21401, 275, 5218, 275, 284, 581, 25271, 340, 79, 334, 7225, 4672, 365, 18, 20292, 18, 507, 8629, 21401, 42, 581, 2351, 56, 3839, 334, 18, 542, 9233, 1435, 327, 1083, 417, 318, 323, 273, 365, 18, 20292, 18, 507, 8629, 21401, 42, 581, 2351, 24749, 88, 6388, 18, 1726, 751, 12, 2890, 18, 20292, 18, 507, 8629, 21401, 42, 581, 2351, 24749, 88, 6388, 18, 2972, 1016, 1435, 2934, 869, 9413, 921, 1435, 302, 273, 365, 18, 20292, 18, 507, 8629, 21401, 42, 581, 2351, 5139, 83, 18, 712, 1435, 1150, 83, 273, 21977, 12443, 72, 18, 6874, 9334, 72, 18, 7496, 9334, 72, 18, 2881, 9334, 2499, 16, 6162, 16, 20, 16, 20, 16, 20, 16, 20, 3719, 468, 293, 132, 103, 7501, 2253, 1712, 22940, 275, 261, 2499, 30, 6162, 13, 364, 225, 132, 103, 417, 318, 4644, 2701, 5349, 284, 581, 88, 21401, 275, 272, 708, 73, 17241, 278, 16260, 3501, 22940, 284, 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, 4553, 75, 56, 330, 42, 581, 88, 21401, 12, 2890, 4672, 468, 1935, 75, 316, 82, 284, 581, 88, 21401, 277, 1744, 278, 468, 264, 777, 290, 132, 121, 15679, 409, 360, 1123, 16260, 1810, 316, 82, 35, 309, 486, 562, 12, 9124, 12, 2890, 18, 20292, 18, 507, 8629, 21401, 42, 581, 2351, 56, 3839, 334, 18, 869, 13360, 1528, 1435, 3719, 471, 521, 486, 365, 18, 46, 6491, 73, 77, 12, 89, 6, 58, 330, 9978, 16831, 79, 292, 360, 4553, 908, 316, 82, 284, 581, 88, 21401, 275, 5218, 275, 284, 581, 25271, 340, 79, 334, 7225, 4672, 365, 18, 20292, 18, 507, 8629, 21401, 42, 581, 2351, 56, 3839, 334, 18, 542, 9233, 1435, 2 ]
- is isomorphic to self, - is invariant in the isomorphism class.
- is isomorphic to self, - is invariant in the isomorphism class.
def canonical_label(self, partition=None, certify=False, verbosity=0, edge_labels=False): """ Returns the unique graph on \{0,1,...,n-1\} ( n = self.order() ) which - is isomorphic to self, - is invariant in the isomorphism class. In other words, given two graphs ``G`` and ``H`` which are isomorphic, suppose ``G_c`` and ``H_c`` are the graphs returned by ``canonical_label``. Then the following hold: - ``G_c == H_c`` - ``G_c.adjacency_matrix() == H_c.adjacency_matrix()`` - ``G_c.graph6_string() == H_c.graph6_string()`` INPUT: - ``partition`` - if given, the canonical label with respect to this set partition will be computed. The default is the unit set partition. - ``certify`` - if True, a dictionary mapping from the (di)graph to its canonical label will be given. - ``verbosity`` - gets passed to nice: prints helpful output. - ``edge_labels`` - default False, otherwise allows only permutations respecting edge labels. EXAMPLES:: sage: D = graphs.DodecahedralGraph() sage: E = D.canonical_label(); E Dodecahedron: Graph on 20 vertices sage: D.canonical_label(certify=True) (Dodecahedron: Graph on 20 vertices, {0: 0, 1: 19, 2: 16, 3: 15, 4: 9, 5: 1, 6: 10, 7: 8, 8: 14, 9: 12, 10: 17, 11: 11, 12: 5, 13: 6, 14: 2, 15: 4, 16: 3, 17: 7, 18: 13, 19: 18}) sage: D.is_isomorphic(E) True Multigraphs:: sage: G = Graph(multiedges=True,sparse=True) sage: G.add_edge((0,1)) sage: G.add_edge((0,1)) sage: G.add_edge((0,1)) sage: G.canonical_label() Multi-graph on 2 vertices sage: Graph('A?', implementation='c_graph').canonical_label() Graph on 2 vertices
c157f6bdbb7e44efe2b0f726c6a5f48795fff6b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c157f6bdbb7e44efe2b0f726c6a5f48795fff6b6/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7378, 67, 1925, 12, 2890, 16, 3590, 33, 7036, 16, 3320, 1164, 33, 8381, 16, 11561, 33, 20, 16, 3591, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 3089, 2667, 603, 521, 95, 20, 16, 21, 16, 2777, 16, 82, 17, 21, 64, 97, 261, 290, 273, 365, 18, 1019, 1435, 262, 1492, 225, 300, 353, 353, 362, 18435, 358, 365, 16, 225, 300, 353, 22514, 316, 326, 353, 362, 7657, 6228, 667, 18, 225, 657, 1308, 4511, 16, 864, 2795, 19422, 12176, 43, 10335, 471, 12176, 44, 10335, 1492, 854, 353, 362, 18435, 16, 1169, 4150, 12176, 43, 67, 71, 10335, 471, 12176, 44, 67, 71, 10335, 854, 326, 19422, 2106, 635, 12176, 18288, 67, 1925, 68, 8338, 9697, 326, 3751, 6887, 30, 300, 12176, 43, 67, 71, 422, 670, 67, 71, 10335, 300, 12176, 43, 67, 71, 18, 13829, 1077, 2075, 67, 5667, 1435, 422, 670, 67, 71, 18, 13829, 1077, 2075, 67, 5667, 1435, 10335, 300, 12176, 43, 67, 71, 18, 4660, 26, 67, 1080, 1435, 422, 670, 67, 71, 18, 4660, 26, 67, 1080, 1435, 10335, 225, 12943, 30, 225, 300, 225, 12176, 10534, 10335, 300, 309, 864, 16, 326, 7378, 1433, 598, 8762, 358, 333, 444, 3590, 903, 506, 8470, 18, 1021, 805, 353, 326, 2836, 444, 3590, 18, 225, 300, 225, 12176, 7593, 1164, 10335, 300, 309, 1053, 16, 279, 3880, 2874, 628, 326, 261, 3211, 13, 4660, 358, 2097, 7378, 1433, 903, 506, 864, 18, 225, 300, 225, 12176, 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, 7378, 67, 1925, 12, 2890, 16, 3590, 33, 7036, 16, 3320, 1164, 33, 8381, 16, 11561, 33, 20, 16, 3591, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 3089, 2667, 603, 521, 95, 20, 16, 21, 16, 2777, 16, 82, 17, 21, 64, 97, 261, 290, 273, 365, 18, 1019, 1435, 262, 1492, 225, 300, 353, 353, 362, 18435, 358, 365, 16, 225, 300, 353, 22514, 316, 326, 353, 362, 7657, 6228, 667, 18, 225, 657, 1308, 4511, 16, 864, 2795, 19422, 12176, 43, 10335, 471, 12176, 44, 10335, 1492, 854, 353, 362, 18435, 16, 1169, 4150, 12176, 43, 67, 71, 10335, 471, 12176, 44, 67, 71, 10335, 854, 326, 19422, 2106, 635, 12176, 18288, 67, 1925, 68, 2 ]
By default, the diff control lines (those with *** or ---) are
By default, the diff control lines (those with ---, +++, or @@) are
def unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n'): r""" Compare two sequences of lines; generate the delta as a unified diff. Unified diffs are a compact way of showing line changes and a few lines of context. The number of context lines is set by 'n' which defaults to three. By default, the diff control lines (those with *** or ---) are created with a trailing newline. This is helpful so that inputs created from file.readlines() result in diffs that are suitable for file.writelines() since both the inputs and outputs have trailing newlines. For inputs that do not have trailing newlines, set the lineterm argument to "" so that the output will be uniformly newline free. The unidiff format normally has a header for filenames and modification times. Any or all of these may be specified using strings for 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'. The modification times are normally expressed in the format returned by time.ctime(). Example: >>> for line in unified_diff('one two three four'.split(), ... 'zero one tree four'.split(), 'Original', 'Current', ... 'Sat Jan 26 23:30:50 1991', 'Fri Jun 06 10:20:52 2003', ... lineterm=''): ... print line --- Original Sat Jan 26 23:30:50 1991 +++ Current Fri Jun 06 10:20:52 2003 @@ -1,4 +1,4 @@ +zero one -two -three +tree four """ started = False for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n): if not started: yield '--- %s %s%s' % (fromfile, fromfiledate, lineterm) yield '+++ %s %s%s' % (tofile, tofiledate, lineterm) started = True i1, i2, j1, j2 = group[0][1], group[-1][2], group[0][3], group[-1][4] yield "@@ -%d,%d +%d,%d @@%s" % (i1+1, i2-i1, j1+1, j2-j1, lineterm) for tag, i1, i2, j1, j2 in group: if tag == 'equal': for line in a[i1:i2]: yield ' ' + line continue if tag == 'replace' or tag == 'delete': for line in a[i1:i2]: yield '-' + line if tag == 'replace' or tag == 'insert': for line in b[j1:j2]: yield '+' + line
96f750098bec0878a49a31d422414badd77e4142 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/96f750098bec0878a49a31d422414badd77e4142/difflib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27136, 67, 5413, 12, 69, 16, 324, 16, 628, 768, 2218, 2187, 358, 768, 2218, 2187, 628, 768, 712, 2218, 2187, 358, 768, 712, 2218, 2187, 290, 33, 23, 16, 4739, 847, 81, 2218, 64, 82, 11, 4672, 436, 8395, 11051, 2795, 8463, 434, 2362, 31, 2103, 326, 3622, 487, 279, 27136, 3122, 18, 225, 1351, 939, 15250, 854, 279, 6739, 4031, 434, 17253, 980, 3478, 471, 279, 11315, 2362, 434, 819, 18, 225, 1021, 1300, 434, 819, 2362, 353, 444, 635, 296, 82, 11, 1492, 3467, 358, 8925, 18, 225, 2525, 805, 16, 326, 3122, 3325, 2362, 261, 451, 2584, 598, 9948, 16, 965, 15, 16, 578, 22175, 13, 854, 2522, 598, 279, 7341, 9472, 18, 225, 1220, 353, 28063, 1427, 716, 4540, 2522, 628, 585, 18, 896, 3548, 1435, 563, 316, 15250, 716, 854, 10631, 364, 585, 18, 5363, 14567, 1435, 3241, 3937, 326, 4540, 471, 6729, 1240, 7341, 19181, 18, 225, 2457, 4540, 716, 741, 486, 1240, 7341, 19181, 16, 444, 326, 4739, 847, 81, 1237, 358, 1408, 1427, 716, 326, 876, 903, 506, 10823, 715, 9472, 4843, 18, 225, 1021, 640, 350, 3048, 740, 15849, 711, 279, 1446, 364, 9066, 471, 11544, 4124, 18, 225, 5502, 578, 777, 434, 4259, 2026, 506, 1269, 1450, 2064, 364, 296, 2080, 768, 2187, 296, 869, 768, 2187, 296, 2080, 768, 712, 2187, 471, 296, 869, 768, 712, 10332, 225, 1021, 11544, 4124, 854, 15849, 26863, 316, 326, 740, 2106, 635, 813, 18, 21261, 7675, 225, 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, 27136, 67, 5413, 12, 69, 16, 324, 16, 628, 768, 2218, 2187, 358, 768, 2218, 2187, 628, 768, 712, 2218, 2187, 358, 768, 712, 2218, 2187, 290, 33, 23, 16, 4739, 847, 81, 2218, 64, 82, 11, 4672, 436, 8395, 11051, 2795, 8463, 434, 2362, 31, 2103, 326, 3622, 487, 279, 27136, 3122, 18, 225, 1351, 939, 15250, 854, 279, 6739, 4031, 434, 17253, 980, 3478, 471, 279, 11315, 2362, 434, 819, 18, 225, 1021, 1300, 434, 819, 2362, 353, 444, 635, 296, 82, 11, 1492, 3467, 358, 8925, 18, 225, 2525, 805, 16, 326, 3122, 3325, 2362, 261, 451, 2584, 598, 9948, 16, 965, 15, 16, 578, 22175, 13, 854, 2522, 598, 279, 7341, 9472, 18, 225, 2 ]
timestamp = int(nanoseconds/100) + 0x01b21dd213814000L if timestamp <= _last_timestamp:
timestamp = int(nanoseconds//100) + 0x01b21dd213814000L if _last_timestamp is not None and timestamp <= _last_timestamp:
def uuid1(node=None, clock_seq=None): """Generate a UUID from a host ID, sequence number, and the current time. If 'node' is not given, getnode() is used to obtain the hardware address. If 'clock_seq' is given, it is used as the sequence number; otherwise a random 14-bit sequence number is chosen.""" # When the system provides a version-1 UUID generator, use it (but don't # use UuidCreate here because its UUIDs don't conform to RFC 4122). if _uuid_generate_time and node is clock_seq is None: _buffer = ctypes.create_string_buffer(16) _uuid_generate_time(_buffer) return UUID(bytes=_buffer.raw) global _last_timestamp import time nanoseconds = int(time.time() * 1e9) # 0x01b21dd213814000 is the number of 100-ns intervals between the # UUID epoch 1582-10-15 00:00:00 and the Unix epoch 1970-01-01 00:00:00. timestamp = int(nanoseconds/100) + 0x01b21dd213814000L if timestamp <= _last_timestamp: timestamp = _last_timestamp + 1 _last_timestamp = timestamp if clock_seq is None: import random clock_seq = random.randrange(1<<14L) # instead of stable storage time_low = timestamp & 0xffffffffL time_mid = (timestamp >> 32L) & 0xffffL time_hi_version = (timestamp >> 48L) & 0x0fffL clock_seq_low = clock_seq & 0xffL clock_seq_hi_variant = (clock_seq >> 8L) & 0x3fL if node is None: node = getnode() return UUID(fields=(time_low, time_mid, time_hi_version, clock_seq_hi_variant, clock_seq_low, node), version=1)
c03b0902232bff782fa915f4b77ac26b8b0d289e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/c03b0902232bff782fa915f4b77ac26b8b0d289e/uuid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3822, 21, 12, 2159, 33, 7036, 16, 7268, 67, 5436, 33, 7036, 4672, 3536, 4625, 279, 5866, 628, 279, 1479, 1599, 16, 3102, 1300, 16, 471, 326, 783, 813, 18, 971, 296, 2159, 11, 353, 486, 864, 16, 336, 2159, 1435, 353, 1399, 358, 7161, 326, 16251, 1758, 18, 225, 971, 296, 18517, 67, 5436, 11, 353, 864, 16, 518, 353, 1399, 487, 326, 3102, 1300, 31, 3541, 279, 2744, 5045, 17, 3682, 3102, 1300, 353, 10447, 12123, 225, 468, 5203, 326, 2619, 8121, 279, 1177, 17, 21, 5866, 4456, 16, 999, 518, 261, 12885, 2727, 1404, 468, 999, 29339, 1684, 2674, 2724, 2097, 5866, 87, 2727, 1404, 20156, 358, 8372, 1059, 22266, 2934, 309, 389, 7080, 67, 7163, 67, 957, 471, 756, 353, 7268, 67, 5436, 353, 599, 30, 389, 4106, 273, 6983, 18, 2640, 67, 1080, 67, 4106, 12, 2313, 13, 389, 7080, 67, 7163, 67, 957, 24899, 4106, 13, 327, 5866, 12, 3890, 33, 67, 4106, 18, 1899, 13, 225, 2552, 389, 2722, 67, 5508, 1930, 813, 6468, 23272, 273, 509, 12, 957, 18, 957, 1435, 380, 404, 73, 29, 13, 468, 374, 92, 1611, 70, 5340, 449, 22, 26645, 3461, 3784, 353, 326, 1300, 434, 2130, 17, 2387, 10389, 3086, 326, 468, 5866, 7632, 4711, 11149, 17, 2163, 17, 3600, 9631, 30, 713, 30, 713, 471, 326, 9480, 7632, 5342, 7301, 17, 1611, 17, 1611, 9631, 30, 713, 30, 713, 18, 2858, 273, 509, 12, 13569, 23272, 759, 6625, 13, 397, 374, 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, 3822, 21, 12, 2159, 33, 7036, 16, 7268, 67, 5436, 33, 7036, 4672, 3536, 4625, 279, 5866, 628, 279, 1479, 1599, 16, 3102, 1300, 16, 471, 326, 783, 813, 18, 971, 296, 2159, 11, 353, 486, 864, 16, 336, 2159, 1435, 353, 1399, 358, 7161, 326, 16251, 1758, 18, 225, 971, 296, 18517, 67, 5436, 11, 353, 864, 16, 518, 353, 1399, 487, 326, 3102, 1300, 31, 3541, 279, 2744, 5045, 17, 3682, 3102, 1300, 353, 10447, 12123, 225, 468, 5203, 326, 2619, 8121, 279, 1177, 17, 21, 5866, 4456, 16, 999, 518, 261, 12885, 2727, 1404, 468, 999, 29339, 1684, 2674, 2724, 2097, 5866, 87, 2727, 1404, 20156, 358, 8372, 1059, 22266, 2934, 309, 389, 7080, 67, 2 ]
), 'incs': ('db.h',)},
)},
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
c6b4ea30c40d923a15612c5713674d94e2efc1fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c6b4ea30c40d923a15612c5713674d94e2efc1fe/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 2941, 6134, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 6702, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 6702, 6134, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 2941, 6134, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 6702, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 6702, 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 ]
self.scheduleUpdateEvents(INITIAL_FEED_UPDATE_DELAY)
if not config.get(prefs.CHECK_CHANNELS_EVERY_X_MN) == -1: self.scheduleUpdateEvents(INITIAL_FEED_UPDATE_DELAY)
def onRestore(self): """Called by pickle during deserialization """ #FIXME: the update dies if all of the items aren't restored, so we # wait a little while before we start the update FeedImpl.onRestore(self) self.download = None self.scheduleUpdateEvents(INITIAL_FEED_UPDATE_DELAY)
0216056b71399ee456718d72ce62236bdd72b9db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/0216056b71399ee456718d72ce62236bdd72b9db/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 10874, 12, 2890, 4672, 3536, 8185, 635, 13379, 4982, 20750, 3536, 468, 25810, 30, 326, 1089, 27890, 309, 777, 434, 326, 1516, 11526, 1404, 18751, 16, 1427, 732, 468, 2529, 279, 12720, 1323, 1865, 732, 787, 326, 1089, 14013, 2828, 18, 265, 10874, 12, 2890, 13, 365, 18, 7813, 273, 599, 365, 18, 10676, 1891, 3783, 12, 28497, 67, 29195, 67, 8217, 67, 26101, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 10874, 12, 2890, 4672, 3536, 8185, 635, 13379, 4982, 20750, 3536, 468, 25810, 30, 326, 1089, 27890, 309, 777, 434, 326, 1516, 11526, 1404, 18751, 16, 1427, 732, 468, 2529, 279, 12720, 1323, 1865, 732, 787, 326, 1089, 14013, 2828, 18, 265, 10874, 12, 2890, 13, 365, 18, 7813, 273, 599, 365, 18, 10676, 1891, 3783, 12, 28497, 67, 29195, 67, 8217, 67, 26101, 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 ]
signal.alarm(3)
signal_alarm(3)
def test_main(): if imp.lock_held(): # If the import lock is held, the threads will hang raise TestSkipped("can't run when import lock is held") test.test_support.run_unittest(SocketServerTest)
f28896d0bb8a1550dae5b025d0397d38b143eb65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/f28896d0bb8a1550dae5b025d0397d38b143eb65/test_socketserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 309, 1646, 18, 739, 67, 76, 488, 13332, 468, 971, 326, 1930, 2176, 353, 15770, 16, 326, 7403, 903, 25733, 1002, 7766, 16425, 2932, 4169, 1404, 1086, 1347, 1930, 2176, 353, 15770, 7923, 225, 1842, 18, 3813, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 4534, 2081, 4709, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 309, 1646, 18, 739, 67, 76, 488, 13332, 468, 971, 326, 1930, 2176, 353, 15770, 16, 326, 7403, 903, 25733, 1002, 7766, 16425, 2932, 4169, 1404, 1086, 1347, 1930, 2176, 353, 15770, 7923, 225, 1842, 18, 3813, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 4534, 2081, 4709, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._doSave()
def onReview(self, **params): """Present a list of message for (re)training.""" # Train/discard sumbitted messages. self._writePreamble("Review") id = '' numTrained = 0 numDeferred = 0 if params.get('go') != 'Refresh': for key, value in params.items(): if key.startswith('classify:'): id = key.split(':')[2] if value == 'spam': targetCorpus = state.spamCorpus elif value == 'ham': targetCorpus = state.hamCorpus elif value == 'discard': targetCorpus = None try: state.unknownCorpus.removeMessage(\ state.unknownCorpus[id]) except KeyError: pass # Must be a reload. else: # defer targetCorpus = None numDeferred += 1 if targetCorpus: sourceCorpus = None if state.unknownCorpus.get(id) is not None: sourceCorpus = state.unknownCorpus elif state.hamCorpus.get(id) is not None: sourceCorpus = state.hamCorpus elif state.spamCorpus.get(id) is not None: sourceCorpus = state.spamCorpus if sourceCorpus is not None: try: targetCorpus.takeMessage(id, sourceCorpus) if numTrained == 0: self.write("<p><b>Training... ") self.flush() numTrained += 1 except KeyError: pass # Must be a reload.
f85c2e0a459e15aa51a6d3c8e0d4b68bf77cdfd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/f85c2e0a459e15aa51a6d3c8e0d4b68bf77cdfd3/ProxyUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 9159, 12, 2890, 16, 2826, 2010, 4672, 3536, 6351, 279, 666, 434, 883, 364, 261, 266, 13, 17584, 12123, 468, 2197, 267, 19, 31992, 2142, 3682, 2344, 2743, 18, 365, 6315, 2626, 52, 793, 7119, 2932, 9159, 7923, 612, 273, 875, 818, 1609, 1920, 273, 374, 818, 16886, 273, 374, 309, 859, 18, 588, 2668, 3240, 6134, 480, 296, 8323, 4278, 364, 498, 16, 460, 316, 859, 18, 3319, 13332, 309, 498, 18, 17514, 1918, 2668, 1106, 1164, 2497, 4672, 612, 273, 498, 18, 4939, 2668, 2497, 25146, 22, 65, 309, 460, 422, 296, 1752, 301, 4278, 1018, 6217, 9861, 273, 919, 18, 1752, 301, 6217, 9861, 1327, 460, 422, 296, 31698, 4278, 1018, 6217, 9861, 273, 919, 18, 31698, 6217, 9861, 1327, 460, 422, 296, 31992, 4278, 1018, 6217, 9861, 273, 599, 775, 30, 919, 18, 8172, 6217, 9861, 18, 4479, 1079, 4713, 919, 18, 8172, 6217, 9861, 63, 350, 5717, 1335, 4999, 30, 1342, 225, 468, 6753, 506, 279, 7749, 18, 469, 30, 468, 2220, 1018, 6217, 9861, 273, 599, 818, 16886, 1011, 404, 309, 1018, 6217, 9861, 30, 1084, 6217, 9861, 273, 599, 309, 919, 18, 8172, 6217, 9861, 18, 588, 12, 350, 13, 353, 486, 599, 30, 1084, 6217, 9861, 273, 919, 18, 8172, 6217, 9861, 1327, 919, 18, 31698, 6217, 9861, 18, 588, 12, 350, 13, 353, 486, 599, 30, 1084, 6217, 9861, 273, 919, 18, 31698, 6217, 9861, 1327, 919, 18, 1752, 301, 6217, 9861, 18, 588, 12, 350, 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, 603, 9159, 12, 2890, 16, 2826, 2010, 4672, 3536, 6351, 279, 666, 434, 883, 364, 261, 266, 13, 17584, 12123, 468, 2197, 267, 19, 31992, 2142, 3682, 2344, 2743, 18, 365, 6315, 2626, 52, 793, 7119, 2932, 9159, 7923, 612, 273, 875, 818, 1609, 1920, 273, 374, 818, 16886, 273, 374, 309, 859, 18, 588, 2668, 3240, 6134, 480, 296, 8323, 4278, 364, 498, 16, 460, 316, 859, 18, 3319, 13332, 309, 498, 18, 17514, 1918, 2668, 1106, 1164, 2497, 4672, 612, 273, 498, 18, 4939, 2668, 2497, 25146, 22, 65, 309, 460, 422, 296, 1752, 301, 4278, 1018, 6217, 9861, 273, 919, 18, 1752, 301, 6217, 9861, 1327, 460, 422, 296, 31698, 4278, 1018, 6217, 9861, 273, 2 ]
self.plugin.menuDlg.CursorUpDown(self.value)
self.plugin.menuDlg.MoveCursor(step * self.value)
def __call__(self): if self.plugin.menuDlg: self.plugin.menuDlg.CursorUpDown(self.value) eg.event.skipEvent = True
77c0859df3ec68b9dbca47a4fb4d9d3998be7f95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8076/77c0859df3ec68b9dbca47a4fb4d9d3998be7f95/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 309, 365, 18, 4094, 18, 5414, 40, 23623, 30, 365, 18, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 309, 365, 18, 4094, 18, 5414, 40, 23623, 30, 365, 18, 4094, 18, 5414, 40, 23623, 18, 7607, 6688, 12, 4119, 380, 365, 18, 1132, 13, 9130, 18, 2575, 18, 7457, 1133, 273, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.op.node_name == self.cfg.GetMasterNode(): raise errors.OpPrereqError("The master node has to be a" " master candidate, online and not drained")
def CheckPrereq(self): """Check prerequisites.
97c61d46ffa3a56afbbfc60ea92128dc456f4592 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/97c61d46ffa3a56afbbfc60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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 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 ]
d = self.fd.read(BUFFER_SIZE)
d = self.read(BUFFER_SIZE)
def readuntil(self, terminator, size=None): buf, self.recvbuffer = self.recvbuffer, '' checked = 0 if size is None: while True: found = buf.find(terminator, checked) if found != -1: found += len(terminator) chunk, self.recvbuffer = buf[:found], buf[found:] return chunk checked = max(0, len(buf) - (len(terminator) - 1)) d = self.fd.read(BUFFER_SIZE) if not d: break buf += d return buf while len(buf) < size: found = buf.find(terminator, checked) if found != -1: found += len(terminator) chunk, self.recvbuffer = buf[:found], buf[found:] return chunk checked = len(buf) d = self.fd.read(BUFFER_SIZE) if not d: break buf += d chunk, self.recvbuffer = buf[:size], buf[size:] return chunk
2466add6fa7d086c6a6fc3b9e6e0c8c3585ea2d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10078/2466add6fa7d086c6a6fc3b9e6e0c8c3585ea2d0/greenio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12198, 12, 2890, 16, 24965, 16, 963, 33, 7036, 4672, 1681, 16, 365, 18, 18334, 4106, 273, 365, 18, 18334, 4106, 16, 875, 5950, 273, 374, 309, 963, 353, 599, 30, 1323, 1053, 30, 1392, 273, 1681, 18, 4720, 12, 9505, 639, 16, 5950, 13, 309, 1392, 480, 300, 21, 30, 1392, 1011, 562, 12, 9505, 639, 13, 2441, 16, 365, 18, 18334, 4106, 273, 1681, 10531, 7015, 6487, 1681, 63, 7015, 26894, 327, 2441, 5950, 273, 943, 12, 20, 16, 562, 12, 4385, 13, 300, 261, 1897, 12, 9505, 639, 13, 300, 404, 3719, 302, 273, 365, 18, 896, 12, 11302, 67, 4574, 13, 309, 486, 302, 30, 898, 1681, 1011, 302, 327, 1681, 1323, 562, 12, 4385, 13, 411, 963, 30, 1392, 273, 1681, 18, 4720, 12, 9505, 639, 16, 5950, 13, 309, 1392, 480, 300, 21, 30, 1392, 1011, 562, 12, 9505, 639, 13, 2441, 16, 365, 18, 18334, 4106, 273, 1681, 10531, 7015, 6487, 1681, 63, 7015, 26894, 327, 2441, 5950, 273, 562, 12, 4385, 13, 302, 273, 365, 18, 896, 12, 11302, 67, 4574, 13, 309,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12, 2890, 16, 24965, 16, 963, 33, 7036, 4672, 1681, 16, 365, 18, 18334, 4106, 273, 365, 18, 18334, 4106, 16, 875, 5950, 273, 374, 309, 963, 353, 599, 30, 1323, 1053, 30, 1392, 273, 1681, 18, 4720, 12, 9505, 639, 16, 5950, 13, 309, 1392, 480, 300, 21, 30, 1392, 1011, 562, 12, 9505, 639, 13, 2441, 16, 365, 18, 18334, 4106, 273, 1681, 10531, 7015, 6487, 1681, 63, 7015, 26894, 327, 2441, 5950, 273, 943, 12, 20, 16, 562, 12, 4385, 13, 300, 261, 1897, 12, 9505, 639, 13, 300, 404, 3719, 302, 273, 365, 18, 896, 12, 11302, 67, 4574, 13, 309, 486, 302, 30, 898, 1681, 1011, 302, 327, 1681, 1323, 562, 2 ]
stripehead = 'print "'
stripehead = '_res = _res + "'
def flatten(self, stripeset, depth=0, context="show"): """Converts a stripe or stripeset into a string"""
8c93e382b626c0486b37cfec0506f7e5eeed2350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/8c93e382b626c0486b37cfec0506f7e5eeed2350/PyGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 16, 2569, 281, 278, 16, 3598, 33, 20, 16, 819, 1546, 4500, 6, 4672, 3536, 5692, 279, 14268, 578, 2569, 281, 278, 1368, 279, 533, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 16, 2569, 281, 278, 16, 3598, 33, 20, 16, 819, 1546, 4500, 6, 4672, 3536, 5692, 279, 14268, 578, 2569, 281, 278, 1368, 279, 533, 8395, 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 ]
sage: L.axes_range(xmin=-1) sage: L.get_axes_range()
sage: L.set_axes_range(xmin=-1) sage: L._get_axes_range_dict()
def get_axes_range(self): """ EXAMPLES: sage: L = line([(1,2), (3,-4), (2, 5), (1,2)]) sage: L.get_axes_range() {} sage: L.axes_range(xmin=-1) sage: L.get_axes_range() {'xmin': -1.0} """ try: return self.__axes_range except AttributeError: self.__axes_range = {} return self.__axes_range
acd1446765c851ba4fd5c80c2948dac5c51da03b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/acd1446765c851ba4fd5c80c2948dac5c51da03b/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10855, 67, 3676, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 511, 273, 980, 3816, 12, 21, 16, 22, 3631, 261, 23, 16, 17, 24, 3631, 261, 22, 16, 1381, 3631, 261, 21, 16, 22, 13, 5717, 272, 410, 30, 511, 18, 588, 67, 10855, 67, 3676, 1435, 2618, 272, 410, 30, 511, 18, 542, 67, 10855, 67, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10855, 67, 3676, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 511, 273, 980, 3816, 12, 21, 16, 22, 3631, 261, 23, 16, 17, 24, 3631, 261, 22, 16, 1381, 3631, 261, 21, 16, 22, 13, 5717, 272, 410, 30, 511, 18, 588, 67, 10855, 67, 3676, 1435, 2618, 272, 410, 30, 511, 18, 542, 67, 10855, 67, 3676, 12, 92, 1154, 29711, 21, 13, 272, 410, 30, 511, 6315, 588, 67, 10855, 67, 3676, 67, 1576, 1435, 13666, 92, 1154, 4278, 300, 21, 18, 20, 97, 3536, 775, 30, 327, 365, 16186, 10855, 67, 3676, 1335, 6394, 30, 365, 16186, 10855, 67, 3676, 273, 2618, 327, 365, 16186, 10855, 67, 3676, 2, -100 ]
req.set_pubkey(EVP.PKey(req.get_pubkey()))
def makeRequest(pkey): req = X509.Request() # Seems to default to 0, but we can now set it as well, so just API test req.set_version(req.get_version()) req.set_pubkey(pkey) req.set_pubkey(EVP.PKey(req.get_pubkey()))# Just a test of the API name = X509.X509_Name() name.CN = 'My CA, Inc.' req.set_subject(name) ext1 = X509.new_extension('subjectAltName', 'DNS:foobar.example.com') ext2 = X509.new_extension('nsComment', 'Hello there') extstack = X509.X509_Extension_Stack() extstack.push(ext1) extstack.push(ext2) assert(extstack[1].get_name() == 'nsComment') req.add_extensions(extstack) req.sign(pkey, 'sha1') return req
ed8163f1abab23bdc7992542079012d453a7afb8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10522/ed8163f1abab23bdc7992542079012d453a7afb8/ca.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23009, 12, 84, 856, 4672, 1111, 273, 1139, 5995, 18, 691, 1435, 468, 3265, 7424, 358, 805, 358, 374, 16, 1496, 732, 848, 2037, 444, 518, 487, 5492, 16, 1427, 2537, 1491, 1842, 1111, 18, 542, 67, 1589, 12, 3658, 18, 588, 67, 1589, 10756, 1111, 18, 542, 67, 23428, 12, 84, 856, 13, 1111, 18, 542, 67, 23428, 12, 24427, 52, 18, 52, 653, 12, 3658, 18, 588, 67, 23428, 1435, 3719, 7, 12526, 279, 1842, 434, 326, 1491, 508, 273, 1139, 5995, 18, 60, 5995, 67, 461, 1435, 508, 18, 12821, 273, 296, 12062, 6425, 16, 15090, 1093, 1111, 18, 542, 67, 7857, 12, 529, 13, 1110, 21, 273, 1139, 5995, 18, 2704, 67, 6447, 2668, 7857, 10655, 461, 2187, 296, 11602, 30, 617, 947, 297, 18, 8236, 18, 832, 6134, 1110, 22, 273, 1139, 5995, 18, 2704, 67, 6447, 2668, 2387, 4469, 2187, 296, 18601, 1915, 6134, 1110, 3772, 273, 1139, 5995, 18, 60, 5995, 67, 3625, 67, 2624, 1435, 1110, 3772, 18, 6206, 12, 408, 21, 13, 1110, 3772, 18, 6206, 12, 408, 22, 13, 225, 1815, 12, 408, 3772, 63, 21, 8009, 588, 67, 529, 1435, 422, 296, 2387, 4469, 6134, 225, 1111, 18, 1289, 67, 9489, 12, 408, 3772, 13, 1111, 18, 2977, 12, 84, 856, 16, 296, 7819, 21, 6134, 327, 1111, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23009, 12, 84, 856, 4672, 1111, 273, 1139, 5995, 18, 691, 1435, 468, 3265, 7424, 358, 805, 358, 374, 16, 1496, 732, 848, 2037, 444, 518, 487, 5492, 16, 1427, 2537, 1491, 1842, 1111, 18, 542, 67, 1589, 12, 3658, 18, 588, 67, 1589, 10756, 1111, 18, 542, 67, 23428, 12, 84, 856, 13, 1111, 18, 542, 67, 23428, 12, 24427, 52, 18, 52, 653, 12, 3658, 18, 588, 67, 23428, 1435, 3719, 7, 12526, 279, 1842, 434, 326, 1491, 508, 273, 1139, 5995, 18, 60, 5995, 67, 461, 1435, 508, 18, 12821, 273, 296, 12062, 6425, 16, 15090, 1093, 1111, 18, 542, 67, 7857, 12, 529, 13, 1110, 21, 273, 1139, 5995, 18, 2704, 67, 6447, 2668, 2 ]
overlap1 = overlap_length/(qc_stop-qc_start) overlap2 = overlap_length/(segment_stop_pos-segment_start_pos)
overlap1 = overlap_length/(segment_stop_pos-segment_start_pos) overlap2 = overlap_length/(qc_stop-qc_start)
def get_overlap_ratio(span1_ls, span2_ls): """ 2009-12-13 calculate the two overlap ratios for two segments """ segment_start_pos, segment_stop_pos = span1_ls qc_start, qc_stop = span2_ls overlap_length = max(0, segment_stop_pos - qc_start) - max(0, segment_stop_pos - qc_stop) - max(0, segment_start_pos - qc_start) # accomodates 6 scenarios overlap_length = float(overlap_length) overlap1 = overlap_length/(qc_stop-qc_start) overlap2 = overlap_length/(segment_stop_pos-segment_start_pos) return overlap1, overlap2
36dbdbb0f24610384d1c8a154afacd3e1e038e88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9645/36dbdbb0f24610384d1c8a154afacd3e1e038e88/CNV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 17946, 67, 9847, 12, 3969, 21, 67, 3251, 16, 4548, 22, 67, 3251, 4672, 3536, 4044, 29, 17, 2138, 17, 3437, 4604, 326, 2795, 7227, 25706, 364, 2795, 5155, 3536, 3267, 67, 1937, 67, 917, 16, 3267, 67, 5681, 67, 917, 273, 4548, 21, 67, 3251, 29032, 67, 1937, 16, 29032, 67, 5681, 273, 4548, 22, 67, 3251, 7227, 67, 2469, 273, 943, 12, 20, 16, 3267, 67, 5681, 67, 917, 300, 29032, 67, 1937, 13, 300, 943, 12, 20, 16, 3267, 67, 5681, 67, 917, 300, 29032, 67, 5681, 13, 300, 943, 12, 20, 16, 3267, 67, 1937, 67, 917, 300, 29032, 67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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 17946, 67, 9847, 12, 3969, 21, 67, 3251, 16, 4548, 22, 67, 3251, 4672, 3536, 4044, 29, 17, 2138, 17, 3437, 4604, 326, 2795, 7227, 25706, 364, 2795, 5155, 3536, 3267, 67, 1937, 67, 917, 16, 3267, 67, 5681, 67, 917, 273, 4548, 21, 67, 3251, 29032, 67, 1937, 16, 29032, 67, 5681, 273, 4548, 22, 67, 3251, 7227, 67, 2469, 273, 943, 12, 20, 16, 3267, 67, 5681, 67, 917, 300, 29032, 67, 1937, 13, 300, 943, 12, 20, 16, 3267, 67, 5681, 67, 917, 300, 29032, 67, 5681, 13, 300, 943, 12, 20, 16, 3267, 67, 1937, 67, 917, 300, 29032, 67, 1937, 13, 202, 7, 28217, 369, 815, 1666, 22456, 7227, 67, 2469, 2 ]
axisChunk.setDisplay(diTUBES)
axisChunk.setDisplay(diTUBES) return
def _regroup(self, dnaGroup): """ Regroups I{dnaGroup} into group containing three chunks: I{StrandA}, I{StrandB} and I{Axis} of the DNA duplex. @param dnaGroup: The DNA group which contains the base-pair chunks of the duplex. @type dnaGroup: L{Group} @return: The new DNA group that contains the three chunks I{StrandA}, I{StrandB} and I{Axis}. @rtype: L{Group} """ #@ To do: Add support for PAM5 models. Mark 2007-10-18 _strandA_list = [] _strandB_list = [] _axis_list = [] # Build strand and chunk atom lists. for m in dnaGroup.members: for atom in m.atoms.values(): if atom.element.symbol in ('Ss3'): if atom.dnaBaseName == 'a': _strandA_list.append(atom) elif atom.dnaBaseName == 'b': _strandB_list.append(atom) else: msg = "Ss3 atom not assigned to strand 'a' or 'b'." raise PluginBug(msg) elif atom.element.symbol in ('Ax3', 'Ae3'): _axis_list.append(atom) # Create strand and axis chunks from atom lists and add # them to the dnaGroup. strandAChunk = \ self.assy.makeChunkFromAtomList(_strandA_list, name = gensym("Strand"), group = dnaGroup, color = darkred)
442d6c0f6bde83bd71a4c00c2bcf046e85b228d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/442d6c0f6bde83bd71a4c00c2bcf046e85b228d6/DnaDuplex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1574, 656, 12, 2890, 16, 31702, 1114, 4672, 3536, 868, 4650, 467, 95, 5176, 69, 1114, 97, 1368, 1041, 4191, 8925, 6055, 30, 467, 95, 1585, 464, 37, 5779, 467, 95, 1585, 464, 38, 97, 471, 467, 95, 6558, 97, 434, 326, 463, 11277, 302, 2268, 92, 18, 225, 632, 891, 31702, 1114, 30, 1021, 463, 11277, 1041, 1492, 1914, 326, 1026, 17, 6017, 6055, 434, 326, 302, 2268, 92, 18, 632, 723, 225, 31702, 1114, 30, 511, 95, 1114, 97, 225, 632, 2463, 30, 1021, 394, 463, 11277, 1041, 716, 1914, 326, 8925, 6055, 467, 95, 1585, 464, 37, 5779, 467, 95, 1585, 464, 38, 97, 471, 467, 95, 6558, 5496, 632, 86, 723, 30, 225, 511, 95, 1114, 97, 3536, 468, 36, 2974, 741, 30, 1436, 2865, 364, 453, 2192, 25, 3679, 18, 6622, 4044, 27, 17, 2163, 17, 2643, 225, 389, 701, 464, 37, 67, 1098, 225, 273, 225, 5378, 389, 701, 464, 38, 67, 1098, 225, 273, 225, 5378, 389, 4890, 67, 1098, 377, 273, 225, 5378, 225, 468, 3998, 16706, 471, 2441, 3179, 6035, 18, 364, 312, 316, 31702, 1114, 18, 7640, 30, 364, 3179, 316, 312, 18, 14937, 18, 2372, 13332, 309, 3179, 18, 2956, 18, 7175, 316, 7707, 55, 87, 23, 11, 4672, 309, 3179, 18, 5176, 69, 29907, 422, 296, 69, 4278, 389, 701, 464, 37, 67, 1098, 18, 6923, 12, 7466, 13, 1327, 3179, 18, 5176, 69, 29907, 422, 296, 70, 4278, 389, 701, 464, 38, 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, 1574, 656, 12, 2890, 16, 31702, 1114, 4672, 3536, 868, 4650, 467, 95, 5176, 69, 1114, 97, 1368, 1041, 4191, 8925, 6055, 30, 467, 95, 1585, 464, 37, 5779, 467, 95, 1585, 464, 38, 97, 471, 467, 95, 6558, 97, 434, 326, 463, 11277, 302, 2268, 92, 18, 225, 632, 891, 31702, 1114, 30, 1021, 463, 11277, 1041, 1492, 1914, 326, 1026, 17, 6017, 6055, 434, 326, 302, 2268, 92, 18, 632, 723, 225, 31702, 1114, 30, 511, 95, 1114, 97, 225, 632, 2463, 30, 1021, 394, 463, 11277, 1041, 716, 1914, 326, 8925, 6055, 467, 95, 1585, 464, 37, 5779, 467, 95, 1585, 464, 38, 97, 471, 467, 95, 6558, 5496, 632, 86, 723, 30, 225, 2 ]
for filename in FileUtilities.children_in_directory(dirname, False):
for filename in children_in_directory(dirname, False):
def list_files(self): dirs = [ "~/.beagle/Indexes", "~/.beagle/Log", "~/.beagle/TextCache" ] for dirname in dirs: dirname = os.path.expanduser(dirname) for filename in FileUtilities.children_in_directory(dirname, False): if os.path.lexists(filename): yield filename
905c2a6f962a355b11ab87c2064796c54c6c1af5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/905c2a6f962a355b11ab87c2064796c54c6c1af5/CleanerBackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2354, 12, 2890, 4672, 7717, 273, 306, 19910, 15865, 2196, 346, 298, 19, 8639, 3113, 19910, 15865, 2196, 346, 298, 19, 1343, 3113, 19910, 15865, 2196, 346, 298, 19, 1528, 1649, 6, 308, 364, 4283, 316, 7717, 30, 4283, 273, 1140, 18, 803, 18, 12320, 1355, 12, 12287, 13, 364, 1544, 316, 2325, 67, 267, 67, 5149, 12, 12287, 16, 1083, 4672, 309, 1140, 18, 803, 18, 4149, 1486, 12, 3459, 4672, 2824, 1544, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2354, 12, 2890, 4672, 7717, 273, 306, 19910, 15865, 2196, 346, 298, 19, 8639, 3113, 19910, 15865, 2196, 346, 298, 19, 1343, 3113, 19910, 15865, 2196, 346, 298, 19, 1528, 1649, 6, 308, 364, 4283, 316, 7717, 30, 4283, 273, 1140, 18, 803, 18, 12320, 1355, 12, 12287, 13, 364, 1544, 316, 2325, 67, 267, 67, 5149, 12, 12287, 16, 1083, 4672, 309, 1140, 18, 803, 18, 4149, 1486, 12, 3459, 4672, 2824, 1544, 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 ]
def __elt2sum(self, elt):
def _elt2sum(self, elt):
def __elt2sum(self, elt): return "%s ==> %s" % (elt[0].summary(),elt[1].summary())
654a380b6e2c5d80ae90c72b299ab9bb8e222f10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/654a380b6e2c5d80ae90c72b299ab9bb8e222f10/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 20224, 22, 1364, 12, 2890, 16, 11572, 4672, 327, 2213, 87, 422, 34, 738, 87, 6, 738, 261, 20224, 63, 20, 8009, 7687, 9334, 20224, 63, 21, 8009, 7687, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 20224, 22, 1364, 12, 2890, 16, 11572, 4672, 327, 2213, 87, 422, 34, 738, 87, 6, 738, 261, 20224, 63, 20, 8009, 7687, 9334, 20224, 63, 21, 8009, 7687, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
family in (socket.AF_INET, socket.AF_UNIX)
family in SOCKET_FAMILIES
def __init__ ( self, timeout=3, precision=1, family=socket.AF_INET ): "initialize a new client cache" assert ( type (timeout) == int and timeout > 0 and type (precision) == int and precision > 0 and family in (socket.AF_INET, socket.AF_UNIX) ) self.client_managed = {} self.client_timeout = timeout self.client_precision = precision self.client_family = family resolved (self) inactive (self, timeout)
c1f1e25a68598cfdc87894169f65ceeeba9069c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/c1f1e25a68598cfdc87894169f65ceeeba9069c6/async_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 365, 16, 2021, 33, 23, 16, 6039, 33, 21, 16, 6755, 33, 7814, 18, 6799, 67, 18819, 262, 30, 315, 11160, 279, 394, 1004, 1247, 6, 1815, 261, 618, 261, 4538, 13, 422, 509, 471, 2021, 405, 374, 471, 618, 261, 14548, 13, 422, 509, 471, 6039, 405, 374, 471, 6755, 316, 7460, 14984, 67, 2046, 7492, 2053, 3991, 262, 365, 18, 2625, 67, 19360, 273, 2618, 365, 18, 2625, 67, 4538, 273, 2021, 365, 18, 2625, 67, 14548, 273, 6039, 365, 18, 2625, 67, 9309, 273, 6755, 4640, 261, 2890, 13, 16838, 261, 2890, 16, 2021, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 365, 16, 2021, 33, 23, 16, 6039, 33, 21, 16, 6755, 33, 7814, 18, 6799, 67, 18819, 262, 30, 315, 11160, 279, 394, 1004, 1247, 6, 1815, 261, 618, 261, 4538, 13, 422, 509, 471, 2021, 405, 374, 471, 618, 261, 14548, 13, 422, 509, 471, 6039, 405, 374, 471, 6755, 316, 7460, 14984, 67, 2046, 7492, 2053, 3991, 262, 365, 18, 2625, 67, 19360, 273, 2618, 365, 18, 2625, 67, 4538, 273, 2021, 365, 18, 2625, 67, 14548, 273, 6039, 365, 18, 2625, 67, 9309, 273, 6755, 4640, 261, 2890, 13, 16838, 261, 2890, 16, 2021, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
result = self._ExecLU(lu)
result = self._LockAndExecLU(lu, level + 1)
def _LockAndExecLU(self, lu, level): """Execute a Logical Unit, with the needed locks.
8a2941c44a3bfedcce91fdcf464b283b2fd76160 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2531, 1876, 1905, 11778, 12, 2890, 16, 20072, 16, 1801, 4672, 3536, 5289, 279, 17085, 8380, 16, 598, 326, 3577, 13046, 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 ]
if request.user.profile.isReciever or request.user.profile.superUser:
if request.user.profile.isReciever or request.user.profile.superUser or request.user.profile.compasUser:
def waybill_reception(request,wb_code): # get the LTI info current_wb = Waybill.objects.get(id=wb_code) current_lti = current_wb.ltiNumber if request.user.profile.isReciever or request.user.profile.superUser: pass else: return HttpResponseRedirect(reverse(waybill_view ,args=[wb_code]))
92e96020064c3be89aa6dbc96e6ccc610135a94f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12559/92e96020064c3be89aa6dbc96e6ccc610135a94f/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4031, 17240, 67, 266, 472, 12, 2293, 16, 9464, 67, 710, 4672, 468, 336, 326, 11807, 45, 1123, 783, 67, 9464, 273, 678, 528, 17240, 18, 6911, 18, 588, 12, 350, 33, 9464, 67, 710, 13, 783, 67, 19737, 273, 783, 67, 9464, 18, 19737, 1854, 309, 225, 590, 18, 1355, 18, 5040, 18, 291, 5650, 1385, 502, 578, 590, 18, 1355, 18, 5040, 18, 9565, 1299, 578, 590, 18, 1355, 18, 5040, 18, 2919, 345, 1299, 30, 1342, 469, 30, 327, 31780, 12, 9845, 12, 1888, 17240, 67, 1945, 269, 1968, 22850, 9464, 67, 710, 22643, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4031, 17240, 67, 266, 472, 12, 2293, 16, 9464, 67, 710, 4672, 468, 336, 326, 11807, 45, 1123, 783, 67, 9464, 273, 678, 528, 17240, 18, 6911, 18, 588, 12, 350, 33, 9464, 67, 710, 13, 783, 67, 19737, 273, 783, 67, 9464, 18, 19737, 1854, 309, 225, 590, 18, 1355, 18, 5040, 18, 291, 5650, 1385, 502, 578, 590, 18, 1355, 18, 5040, 18, 9565, 1299, 578, 590, 18, 1355, 18, 5040, 18, 2919, 345, 1299, 30, 1342, 469, 30, 327, 31780, 12, 9845, 12, 1888, 17240, 67, 1945, 269, 1968, 22850, 9464, 67, 710, 22643, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
version=VERSION,
version=_read('VERSION.txt').strip(),
def _package_doc(name): f = open(os.path.join(package, name)) return f.read()
fc89af934cd6711865a9e8e9e8b793496e41cb24 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1858/fc89af934cd6711865a9e8e9e8b793496e41cb24/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5610, 67, 2434, 12, 529, 4672, 284, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 5610, 16, 508, 3719, 327, 284, 18, 896, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
>>> extract_domain('http://test.example.com:8000/')
>>> extract_domain('https://test.example.com:8000/')
def extract_domain(url): """ Extract the domain name from a http:// URL, without www prefix. >>> extract_domain('http://browsershots.org/submit/') 'browsershots.org' >>> extract_domain('http://www.google.com') 'google.com' >>> extract_domain('http://test.example.com:8000/') 'test.example.com' """ match = re_url.match(url) if match is None: raise ValueError(url) return match.group(2)
392c1d5f2726cc9d5429dc414cf5b3653f8e40ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3111/392c1d5f2726cc9d5429dc414cf5b3653f8e40ae/submitjobs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 4308, 12, 718, 4672, 3536, 8152, 326, 2461, 508, 628, 279, 1062, 2207, 1976, 16, 2887, 8765, 1633, 18, 225, 4080, 2608, 67, 4308, 2668, 2505, 2207, 70, 13221, 76, 6968, 18, 3341, 19, 9297, 2473, 13, 296, 70, 13221, 76, 6968, 18, 3341, 11, 4080, 2608, 67, 4308, 2668, 2505, 2207, 5591, 18, 9536, 18, 832, 6134, 296, 9536, 18, 832, 11, 4080, 2608, 67, 4308, 2668, 4528, 2207, 3813, 18, 8236, 18, 832, 30, 26021, 2473, 13, 296, 3813, 18, 8236, 18, 832, 11, 3536, 845, 273, 283, 67, 718, 18, 1916, 12, 718, 13, 309, 845, 353, 599, 30, 1002, 2068, 12, 718, 13, 327, 845, 18, 1655, 12, 22, 13, 282, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 4308, 12, 718, 4672, 3536, 8152, 326, 2461, 508, 628, 279, 1062, 2207, 1976, 16, 2887, 8765, 1633, 18, 225, 4080, 2608, 67, 4308, 2668, 2505, 2207, 70, 13221, 76, 6968, 18, 3341, 19, 9297, 2473, 13, 296, 70, 13221, 76, 6968, 18, 3341, 11, 4080, 2608, 67, 4308, 2668, 2505, 2207, 5591, 18, 9536, 18, 832, 6134, 296, 9536, 18, 832, 11, 4080, 2608, 67, 4308, 2668, 4528, 2207, 3813, 18, 8236, 18, 832, 30, 26021, 2473, 13, 296, 3813, 18, 8236, 18, 832, 11, 3536, 845, 273, 283, 67, 718, 18, 1916, 12, 718, 13, 309, 845, 353, 599, 30, 1002, 2068, 12, 718, 13, 327, 845, 18, 1655, 12, 22, 13, 282, 2, -100 ]
w1.y = int(scanner.real-0.5)
w1.j = int(scanner.real-0.5)
def eta(): "Use computer to get estimated time of arrival for a warp jump." w1 = coord(); w2 = coord() prompt = False if damaged(DCOMPTR): prout(_("COMPUTER DAMAGED, USE A POCKET CALCULATOR.")) skip(1) return if scanner.next() != IHREAL: prompt = True scanner.chew() proutn(_("Destination quadrant and/or sector? ")) if scanner.next()!=IHREAL: huh() return w1.y = int(scanner.real-0.5) if scanner.next() != IHREAL: huh() return w1.x = int(scanner.real-0.5) if scanner.next() == IHREAL: w2.y = int(scanner.real-0.5) if scanner.next() != IHREAL: huh() return w2.x = int(scanner.real-0.5) else: if game.quadrant.y>w1.x: w2.x = 0 else: w2.x=QUADSIZE-1 if game.quadrant.x>w1.y: w2.y = 0 else: w2.y=QUADSIZE-1 if not VALID_QUADRANT(w1.x, w1.y) or not VALID_SECTOR(w2.x, w2.y): huh() return game.dist = math.sqrt((w1.y-game.quadrant.y+0.1*(w2.y-game.sector.y))**2+ (w1.x-game.quadrant.x+0.1*(w2.x-game.sector.x))**2) wfl = False if prompt: prout(_("Answer \"no\" if you don't know the value:")) while True: scanner.chew() proutn(_("Time or arrival date? ")) if scanner.next()==IHREAL: ttime = scanner.real if ttime > game.state.date: ttime -= game.state.date # Actually a star date twarp=(math.floor(math.sqrt((10.0*game.dist)/ttime)*10.0)+1.0)/10.0 if ttime <= 1e-10 or twarp > 10: prout(_("We'll never make it, sir.")) scanner.chew() return if twarp < 1.0: twarp = 1.0 break scanner.chew() proutn(_("Warp factor? ")) if scanner.next()== IHREAL: wfl = True twarp = scanner.real if twarp<1.0 or twarp > 10.0: huh() return break prout(_("Captain, certainly you can give me one of these.")) while True: scanner.chew() ttime = (10.0*game.dist)/twarp**2 tpower = game.dist*twarp*twarp*twarp*(game.shldup+1) if tpower >= game.energy: prout(_("Insufficient energy, sir.")) if not game.shldup or tpower > game.energy*2.0: if not wfl: return proutn(_("New warp factor to try? ")) if scanner.next() == IHREAL: wfl = True twarp = scanner.real if twarp<1.0 or twarp > 10.0: huh() return continue else: scanner.chew() skip(1) return prout(_("But if you lower your shields,")) proutn(_("remaining")) tpower /= 2 else: proutn(_("Remaining")) prout(_(" energy will be %.2f.") % (game.energy-tpower)) if wfl: prout(_("And we will arrive at stardate %.2f.") % (game.state.date+ttime)) elif twarp==1.0: prout(_("Any warp speed is adequate.")) else: prout(_("Minimum warp needed is %.2f,") % (twarp)) prout(_("and we will arrive at stardate %.2f.") % (game.state.date+ttime)) if game.state.remtime < ttime: prout(_("Unfortunately, the Federation will be destroyed by then.")) if twarp > 6.0: prout(_("You'll be taking risks at that speed, Captain")) if (game.isatb==1 and game.state.kscmdr == w1 and \ scheduled(FSCDBAS)< ttime+game.state.date) or \ (scheduled(FCDBAS)<ttime+game.state.date and game.battle == w1): prout(_("The starbase there will be destroyed by then.")) proutn(_("New warp factor to try? ")) if scanner.next() == IHREAL: wfl = True twarp = scanner.real if twarp<1.0 or twarp > 10.0: huh() return else: scanner.chew() skip(1) return
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14251, 13332, 315, 3727, 26579, 358, 336, 13137, 813, 434, 2454, 5162, 364, 279, 341, 11441, 11833, 1199, 341, 21, 273, 2745, 5621, 341, 22, 273, 2745, 1435, 6866, 273, 1083, 309, 302, 301, 11349, 12, 40, 4208, 1856, 54, 4672, 450, 322, 24899, 2932, 4208, 4762, 654, 463, 2192, 29693, 16, 14988, 432, 13803, 14984, 385, 1013, 39, 1506, 3575, 1199, 3719, 2488, 12, 21, 13, 327, 309, 7683, 18, 4285, 1435, 480, 467, 44, 31052, 30, 6866, 273, 1053, 7683, 18, 343, 359, 1435, 450, 322, 82, 24899, 2932, 5683, 9474, 6890, 471, 19, 280, 16323, 35, 315, 3719, 309, 7683, 18, 4285, 1435, 5, 33, 45, 44, 31052, 30, 366, 89, 76, 1435, 327, 341, 21, 18, 78, 273, 509, 12, 26842, 18, 7688, 17, 20, 18, 25, 13, 309, 7683, 18, 4285, 1435, 480, 467, 44, 31052, 30, 366, 89, 76, 1435, 327, 341, 21, 18, 92, 273, 509, 12, 26842, 18, 7688, 17, 20, 18, 25, 13, 309, 7683, 18, 4285, 1435, 422, 467, 44, 31052, 30, 341, 22, 18, 93, 273, 509, 12, 26842, 18, 7688, 17, 20, 18, 25, 13, 309, 7683, 18, 4285, 1435, 480, 467, 44, 31052, 30, 366, 89, 76, 1435, 327, 341, 22, 18, 92, 273, 509, 12, 26842, 18, 7688, 17, 20, 18, 25, 13, 469, 30, 309, 7920, 18, 21733, 6890, 18, 93, 34, 91, 21, 18, 92, 30, 341, 22, 18, 92, 273, 374, 469, 30, 341, 22, 18, 92, 33, 3500, 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, 14251, 13332, 315, 3727, 26579, 358, 336, 13137, 813, 434, 2454, 5162, 364, 279, 341, 11441, 11833, 1199, 341, 21, 273, 2745, 5621, 341, 22, 273, 2745, 1435, 6866, 273, 1083, 309, 302, 301, 11349, 12, 40, 4208, 1856, 54, 4672, 450, 322, 24899, 2932, 4208, 4762, 654, 463, 2192, 29693, 16, 14988, 432, 13803, 14984, 385, 1013, 39, 1506, 3575, 1199, 3719, 2488, 12, 21, 13, 327, 309, 7683, 18, 4285, 1435, 480, 467, 44, 31052, 30, 6866, 273, 1053, 7683, 18, 343, 359, 1435, 450, 322, 82, 24899, 2932, 5683, 9474, 6890, 471, 19, 280, 16323, 35, 315, 3719, 309, 7683, 18, 4285, 1435, 5, 33, 45, 44, 31052, 30, 366, 89, 76, 1435, 327, 341, 2 ]
author = '; '.join( '%s: %s' % (auth_types.get(a.type,_("Written By")),
author = '; '.join(u'%s: %s' % (auth_types.get(a.type,_("Written By")),
def footer_text(self): 'Draw text on the footer.' jn = ['"%s"' % self.pres.title] # TODO List only translators for the current translation. author = '; '.join( '%s: %s' % (auth_types.get(a.type,_("Written By")), str(a)) for a in self.pres.song.props.authors ) if len(author) > 0: jn.append(author) if len(self.pres.song.props.copyright): jn.append(u"Copyright \xA9 %s" % self.pres.song.props.copyright) if config.get("general", "ccli"): jn.append("Song CCLI ID# %s; CCLI# %s" % (self.pres.song.props.ccli_no, config.get("general", "ccli"))) return '\n'.join(jn)
c95c03f7408131d71f160678499c0203d85ca976 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5029/c95c03f7408131d71f160678499c0203d85ca976/lyric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9860, 67, 955, 12, 2890, 4672, 296, 6493, 977, 603, 326, 9860, 1093, 525, 82, 273, 306, 4970, 9, 87, 5187, 738, 365, 18, 12202, 18, 2649, 65, 468, 2660, 987, 1338, 2162, 3062, 364, 326, 783, 4794, 18, 2869, 273, 12386, 225, 2418, 5701, 12, 89, 11, 9, 87, 30, 738, 87, 11, 738, 261, 1944, 67, 2352, 18, 588, 12, 69, 18, 723, 16, 67, 2932, 12643, 2525, 7923, 3631, 609, 12, 69, 3719, 364, 279, 316, 365, 18, 12202, 18, 816, 75, 18, 9693, 18, 19368, 262, 309, 562, 12, 4161, 13, 405, 374, 30, 525, 82, 18, 6923, 12, 4161, 13, 309, 562, 12, 2890, 18, 12202, 18, 816, 75, 18, 9693, 18, 29187, 4672, 525, 82, 18, 6923, 12, 89, 6, 2951, 4083, 521, 21703, 29, 738, 87, 6, 738, 365, 18, 12202, 18, 816, 75, 18, 9693, 18, 29187, 13, 309, 642, 18, 588, 2932, 12259, 3113, 315, 952, 549, 6, 4672, 525, 82, 18, 6923, 2932, 55, 932, 385, 7697, 1599, 7, 738, 87, 31, 385, 7697, 7, 738, 87, 6, 738, 261, 2890, 18, 12202, 18, 816, 75, 18, 9693, 18, 952, 549, 67, 2135, 16, 642, 18, 588, 2932, 12259, 3113, 315, 952, 549, 6, 20349, 327, 2337, 82, 10332, 5701, 12, 78, 82, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9860, 67, 955, 12, 2890, 4672, 296, 6493, 977, 603, 326, 9860, 1093, 525, 82, 273, 306, 4970, 9, 87, 5187, 738, 365, 18, 12202, 18, 2649, 65, 468, 2660, 987, 1338, 2162, 3062, 364, 326, 783, 4794, 18, 2869, 273, 12386, 225, 2418, 5701, 12, 89, 11, 9, 87, 30, 738, 87, 11, 738, 261, 1944, 67, 2352, 18, 588, 12, 69, 18, 723, 16, 67, 2932, 12643, 2525, 7923, 3631, 609, 12, 69, 3719, 364, 279, 316, 365, 18, 12202, 18, 816, 75, 18, 9693, 18, 19368, 262, 309, 562, 12, 4161, 13, 405, 374, 30, 525, 82, 18, 6923, 12, 4161, 13, 309, 562, 12, 2890, 18, 12202, 18, 816, 75, 18, 9693, 18, 29187, 2 ]
print " -l level The number of levels to split down to. The default is 1" print " -v Print version (RCS) information." print " -H Show the file syntax help."
print " -l level The number of levels to split down to. The default is 1" print " -t Include a title line (the parerent heading) in split files" print " -v Print version (RCS) information." print " -h Show help."
def showUsage(): print print "Usage:" print "otlsplit.py [options] inputfile > outputfile" print "Options" print " -l level The number of levels to split down to. The default is 1" print " -v Print version (RCS) information." print " -H Show the file syntax help." print "output is on STDOUT" print
581fae94c33a0ebec2164ced61d2e1d794676fb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6154/581fae94c33a0ebec2164ced61d2e1d794676fb4/otlsplit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 5357, 13332, 1172, 1172, 315, 5357, 2773, 1172, 315, 352, 3251, 1127, 18, 2074, 306, 2116, 65, 810, 768, 405, 876, 768, 6, 1172, 315, 1320, 6, 1172, 315, 565, 300, 80, 1801, 225, 1021, 1300, 434, 7575, 358, 1416, 2588, 358, 18, 1021, 805, 353, 404, 6, 1172, 315, 565, 300, 88, 3639, 12672, 279, 2077, 980, 261, 5787, 779, 264, 319, 11053, 13, 316, 1416, 1390, 6, 1172, 315, 565, 300, 90, 3639, 3038, 1177, 261, 54, 4596, 13, 1779, 1199, 1172, 315, 565, 300, 76, 3639, 9674, 2809, 1199, 1172, 315, 2844, 353, 603, 19331, 6, 1172, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 5357, 13332, 1172, 1172, 315, 5357, 2773, 1172, 315, 352, 3251, 1127, 18, 2074, 306, 2116, 65, 810, 768, 405, 876, 768, 6, 1172, 315, 1320, 6, 1172, 315, 565, 300, 80, 1801, 225, 1021, 1300, 434, 7575, 358, 1416, 2588, 358, 18, 1021, 805, 353, 404, 6, 1172, 315, 565, 300, 88, 3639, 12672, 279, 2077, 980, 261, 5787, 779, 264, 319, 11053, 13, 316, 1416, 1390, 6, 1172, 315, 565, 300, 90, 3639, 3038, 1177, 261, 54, 4596, 13, 1779, 1199, 1172, 315, 565, 300, 76, 3639, 9674, 2809, 1199, 1172, 315, 2844, 353, 603, 19331, 6, 1172, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._owner.DEBUG(DBG_SASL,'I can only use PLAIN mecanism for now.','error')
self._owner.DEBUG(DBG_SASL,'I can only use DIGEST-MD5 and PLAIN mecanisms.','error')
def FeaturesHandler(self,conn,feats): if not feats.getTag('mechanisms',namespace=NS_SASL): self.startsasl='failure' self._owner.DEBUG(DBG_SASL,'SASL not supported by server','error') return mecs=[] for mec in feats.getTag('mechanisms',namespace=NS_SASL).getTags('mechanism'): mecs.append(mec.getData()) self._owner.RegisterHandler('challenge',self.SASLHandler) self._owner.RegisterHandler('failure',self.SASLHandler) self._owner.RegisterHandler('success',self.SASLHandler) if "DIGEST-MD5" in mecs: node=Node('auth',attrs={'xmlns':NS_SASL,'mechanism':'DIGEST-MD5'}) elif "PLAIN" in mecs: sasl_data='%s\x00%s\x00%s'%(self.username+'@'+self._owner.Server,self.username,self.password) node=Node('auth',attrs={'xmlns':NS_SASL,'mechanism':'PLAIN'},payload=[base64.encodestring(sasl_data)]) else: self.startsasl='failure' self._owner.DEBUG(DBG_SASL,'I can only use PLAIN mecanism for now.','error') return self.startsasl='in-process' self._owner.send(node.__str__())
1f61c2bacb9952fa16f5f3b5288f9ea05e3b0612 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/1f61c2bacb9952fa16f5f3b5288f9ea05e3b0612/auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28920, 1503, 12, 2890, 16, 4646, 16, 29428, 4672, 309, 486, 1656, 2323, 18, 588, 1805, 2668, 3501, 28757, 2187, 4937, 33, 3156, 67, 55, 3033, 48, 4672, 365, 18, 17514, 345, 80, 2218, 12251, 11, 365, 6315, 8443, 18, 9394, 12, 2290, 43, 67, 55, 3033, 48, 11189, 55, 3033, 48, 486, 3260, 635, 1438, 17023, 1636, 6134, 327, 312, 557, 87, 33, 8526, 364, 312, 557, 316, 1656, 2323, 18, 588, 1805, 2668, 3501, 28757, 2187, 4937, 33, 3156, 67, 55, 3033, 48, 2934, 588, 3453, 2668, 3501, 10641, 11, 4672, 312, 557, 87, 18, 6923, 12, 81, 557, 18, 588, 751, 10756, 365, 6315, 8443, 18, 3996, 1503, 2668, 25092, 2187, 2890, 18, 55, 3033, 48, 1503, 13, 365, 6315, 8443, 18, 3996, 1503, 2668, 12251, 2187, 2890, 18, 55, 3033, 48, 1503, 13, 365, 6315, 8443, 18, 3996, 1503, 2668, 4768, 2187, 2890, 18, 55, 3033, 48, 1503, 13, 309, 315, 2565, 27332, 17, 6188, 25, 6, 316, 312, 557, 87, 30, 756, 33, 907, 2668, 1944, 2187, 7039, 5899, 11, 16741, 4278, 3156, 67, 55, 3033, 48, 11189, 3501, 10641, 11, 2497, 2565, 27332, 17, 6188, 25, 11, 6792, 1327, 315, 26549, 6, 316, 312, 557, 87, 30, 16375, 80, 67, 892, 28713, 87, 64, 92, 713, 9, 87, 64, 92, 713, 9, 87, 11, 17105, 2890, 18, 5053, 6797, 20887, 15, 2890, 6315, 8443, 18, 2081, 16, 2890, 18, 5053, 16, 2890, 18, 3664, 13, 756, 33, 907, 2668, 1944, 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, 28920, 1503, 12, 2890, 16, 4646, 16, 29428, 4672, 309, 486, 1656, 2323, 18, 588, 1805, 2668, 3501, 28757, 2187, 4937, 33, 3156, 67, 55, 3033, 48, 4672, 365, 18, 17514, 345, 80, 2218, 12251, 11, 365, 6315, 8443, 18, 9394, 12, 2290, 43, 67, 55, 3033, 48, 11189, 55, 3033, 48, 486, 3260, 635, 1438, 17023, 1636, 6134, 327, 312, 557, 87, 33, 8526, 364, 312, 557, 316, 1656, 2323, 18, 588, 1805, 2668, 3501, 28757, 2187, 4937, 33, 3156, 67, 55, 3033, 48, 2934, 588, 3453, 2668, 3501, 10641, 11, 4672, 312, 557, 87, 18, 6923, 12, 81, 557, 18, 588, 751, 10756, 365, 6315, 8443, 18, 3996, 1503, 2668, 25092, 2187, 2890, 18, 55, 3033, 2 ]
job.barrier(client_tag, 'start', 30).rendevous(*all)
job.barrier(client_tag, 'start', 600).rendevous(*all)
def execute(self, server_ip, client_ip, role, script='snapshot_script', args=''): server_tag = server_ip + '#netperf-server' client_tag = client_ip + '#netperf-client' all = [server_tag, client_tag] job = self.job if (role == 'server'): self.server_start() try: job.barrier(server_tag, 'start', 30).rendevous(*all) job.barrier(server_tag, 'stop', 3600).rendevous(*all) finally: self.server_stop() elif (role == 'client'): os.environ['NETPERF_CMD'] = self.client_path job.barrier(client_tag, 'start', 30).rendevous(*all) self.client(script, server_ip, args) job.barrier(client_tag, 'stop', 30).rendevous(*all) else: raise UnhandledError('invalid role specified')
cb3e941c74181e5f09860b38a37d8a70772bd94f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/cb3e941c74181e5f09860b38a37d8a70772bd94f/netperf2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 1438, 67, 625, 16, 1004, 67, 625, 16, 2478, 16, 2728, 2218, 11171, 67, 4263, 2187, 833, 2218, 11, 4672, 1438, 67, 2692, 273, 1438, 67, 625, 397, 2946, 2758, 19825, 17, 3567, 11, 1004, 67, 2692, 273, 1004, 67, 625, 397, 2946, 2758, 19825, 17, 2625, 11, 777, 273, 306, 3567, 67, 2692, 16, 1004, 67, 2692, 65, 1719, 273, 365, 18, 4688, 309, 261, 4615, 422, 296, 3567, 11, 4672, 365, 18, 3567, 67, 1937, 1435, 775, 30, 1719, 18, 3215, 10342, 12, 3567, 67, 2692, 16, 296, 1937, 2187, 5196, 2934, 1187, 5206, 1481, 30857, 454, 13, 1719, 18, 3215, 10342, 12, 3567, 67, 2692, 16, 296, 5681, 2187, 12396, 2934, 1187, 5206, 1481, 30857, 454, 13, 3095, 30, 365, 18, 3567, 67, 5681, 1435, 1327, 261, 4615, 422, 296, 2625, 11, 4672, 1140, 18, 28684, 3292, 14843, 3194, 42, 67, 19473, 3546, 273, 365, 18, 2625, 67, 803, 1719, 18, 3215, 10342, 12, 2625, 67, 2692, 16, 296, 1937, 2187, 14707, 2934, 1187, 5206, 1481, 30857, 454, 13, 365, 18, 2625, 12, 4263, 16, 1438, 67, 625, 16, 833, 13, 1719, 18, 3215, 10342, 12, 2625, 67, 2692, 16, 296, 5681, 2187, 225, 5196, 2934, 1187, 5206, 1481, 30857, 454, 13, 469, 30, 1002, 1351, 14387, 668, 2668, 5387, 2478, 1269, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 1438, 67, 625, 16, 1004, 67, 625, 16, 2478, 16, 2728, 2218, 11171, 67, 4263, 2187, 833, 2218, 11, 4672, 1438, 67, 2692, 273, 1438, 67, 625, 397, 2946, 2758, 19825, 17, 3567, 11, 1004, 67, 2692, 273, 1004, 67, 625, 397, 2946, 2758, 19825, 17, 2625, 11, 777, 273, 306, 3567, 67, 2692, 16, 1004, 67, 2692, 65, 1719, 273, 365, 18, 4688, 309, 261, 4615, 422, 296, 3567, 11, 4672, 365, 18, 3567, 67, 1937, 1435, 775, 30, 1719, 18, 3215, 10342, 12, 3567, 67, 2692, 16, 296, 1937, 2187, 5196, 2934, 1187, 5206, 1481, 30857, 454, 13, 1719, 18, 3215, 10342, 12, 3567, 67, 2692, 16, 296, 5681, 2187, 12396, 2934, 2 ]
if r.getheader('set-cookie'):
if r.getheader('set-cookie'):
def retry_using_http_NTLM_auth(self, req, auth_header_field, realm, headers): user, pw = self.passwd.find_user_password(realm, req.get_full_url()) if pw is not None: # ntlm secures a socket, so we must use the same socket for the complete handshake headers = dict(req.headers) headers.update(req.unredirected_hdrs) auth = 'NTLM %s' % ntlm.create_NTLM_NEGOTIATE_MESSAGE(user) if req.headers.get(self.auth_header, None) == auth: return None headers[self.auth_header] = auth host = req.get_host() if not host: raise urllib2.URLError('no host given') h = None if req.get_full_url().startswith('https://'): h = httplib.HTTPSConnection(host) # will parse host:port else: h = httplib.HTTPConnection(host) # will parse host:port # we must keep the connection because NTLM authenticates the connection, not single requests headers["Connection"] = "Keep-Alive" headers = dict((name.title(), val) for name, val in headers.items()) h.request(req.get_method(), req.get_selector(), req.data, headers) r = h.getresponse() r.begin() r._safe_read(int(r.getheader('content-length'))) if r.getheader('set-cookie'): # this is important for some web applications that store authentication-related info in cookies (it took a long time to figure out) headers['Cookie'] = r.getheader('set-cookie') r.fp = None # remove the reference to the socket, so that it can not be closed by the response object (we want to keep the socket open) auth_header_value = r.getheader(auth_header_field, None) (ServerChallenge, NegotiateFlags) = ntlm.parse_NTLM_CHALLENGE_MESSAGE(auth_header_value[5:]) user_parts = user.split('\\', 1) DomainName = user_parts[0].upper() UserName = user_parts[1] auth = 'NTLM %s' % ntlm.create_NTLM_AUTHENTICATE_MESSAGE(ServerChallenge, UserName, DomainName, pw, NegotiateFlags) headers[self.auth_header] = auth headers["Connection"] = "Close" headers = dict((name.title(), val) for name, val in headers.items()) try: h.request(req.get_method(), req.get_selector(), req.data, headers) # none of the configured handlers are triggered, for example redirect-responses are not handled! response = h.getresponse() def notimplemented(): raise NotImplementedError response.readline = notimplemented return addinfourl(response, response.msg, req.get_full_url()) except socket.error, err: raise urllib2.URLError(err) else: return None
a61436c9461dc3272553b77cbad149fc9725a302 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6089/a61436c9461dc3272553b77cbad149fc9725a302/HTTPNtlmAuthHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3300, 67, 9940, 67, 2505, 67, 1784, 17063, 67, 1944, 12, 2890, 16, 1111, 16, 1357, 67, 3374, 67, 1518, 16, 11319, 16, 1607, 4672, 729, 16, 8772, 273, 365, 18, 24002, 18, 4720, 67, 1355, 67, 3664, 12, 24056, 16, 1111, 18, 588, 67, 2854, 67, 718, 10756, 309, 8772, 353, 486, 599, 30, 468, 290, 6172, 81, 1428, 1823, 279, 2987, 16, 1427, 732, 1297, 999, 326, 1967, 2987, 364, 326, 3912, 11942, 1607, 273, 2065, 12, 3658, 18, 2485, 13, 1607, 18, 2725, 12, 3658, 18, 318, 7590, 329, 67, 16587, 87, 13, 1357, 273, 296, 1784, 17063, 738, 87, 11, 738, 290, 6172, 81, 18, 2640, 67, 1784, 17063, 67, 5407, 43, 1974, 45, 1777, 67, 8723, 12, 1355, 13, 309, 1111, 18, 2485, 18, 588, 12, 2890, 18, 1944, 67, 3374, 16, 599, 13, 422, 1357, 30, 327, 599, 1607, 63, 2890, 18, 1944, 67, 3374, 65, 273, 1357, 225, 1479, 273, 1111, 18, 588, 67, 2564, 1435, 309, 486, 1479, 30, 1002, 11527, 22, 18, 1785, 668, 2668, 2135, 1479, 864, 6134, 366, 273, 599, 309, 1111, 18, 588, 67, 2854, 67, 718, 7675, 17514, 1918, 2668, 4528, 8931, 4672, 366, 273, 15851, 6673, 18, 18657, 1952, 12, 2564, 13, 468, 903, 1109, 1479, 30, 655, 469, 30, 366, 273, 15851, 6673, 18, 3693, 1952, 12, 2564, 13, 468, 903, 1109, 1479, 30, 655, 468, 732, 1297, 3455, 326, 1459, 2724, 423, 5967, 49, 21784, 815, 326, 1459, 16, 486, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3300, 67, 9940, 67, 2505, 67, 1784, 17063, 67, 1944, 12, 2890, 16, 1111, 16, 1357, 67, 3374, 67, 1518, 16, 11319, 16, 1607, 4672, 729, 16, 8772, 273, 365, 18, 24002, 18, 4720, 67, 1355, 67, 3664, 12, 24056, 16, 1111, 18, 588, 67, 2854, 67, 718, 10756, 309, 8772, 353, 486, 599, 30, 468, 290, 6172, 81, 1428, 1823, 279, 2987, 16, 1427, 732, 1297, 999, 326, 1967, 2987, 364, 326, 3912, 11942, 1607, 273, 2065, 12, 3658, 18, 2485, 13, 1607, 18, 2725, 12, 3658, 18, 318, 7590, 329, 67, 16587, 87, 13, 1357, 273, 296, 1784, 17063, 738, 87, 11, 738, 290, 6172, 81, 18, 2640, 67, 1784, 17063, 67, 5407, 43, 1974, 45, 2 ]
0.70710678118654752440084436210459 - 0.70710678118654752440084436210459*I
0.70710678118654752440084436210 - 0.70710678118654752440084436210*I
def square_root(self): """ Return square root, which is a complex number.
193380da4580283517e8b5d85f0bf8d1c6d47fce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/193380da4580283517e8b5d85f0bf8d1c6d47fce/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8576, 67, 3085, 12, 2890, 4672, 3536, 2000, 8576, 1365, 16, 1492, 353, 279, 7233, 1300, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8576, 67, 3085, 12, 2890, 4672, 3536, 2000, 8576, 1365, 16, 1492, 353, 279, 7233, 1300, 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 ]
self.handleSphereRadius1 = atm1.drawing_radius()
self.handleSphereRadius1 = max(1.005*atm1.drawing_radius(), 1.005*HANDLE_RADIUS_DEFAULT_VALUE)
def _determine_resize_handle_radius(self): """ Finds out the sphere radius to use for the resize handles, based on atom /chunk or glpane display (whichever decides the display of the end atoms. The default value is 1.2.
a3b7d560ad0c29e7773cebd84c609502b0820ed6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/a3b7d560ad0c29e7773cebd84c609502b0820ed6/DnaSegment_EditCommand.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 24661, 67, 15169, 67, 4110, 67, 11282, 12, 2890, 4672, 3536, 4163, 87, 596, 326, 20041, 5725, 358, 999, 364, 326, 7041, 7372, 16, 2511, 603, 3179, 342, 6551, 578, 5118, 29009, 2562, 261, 3350, 335, 580, 502, 2109, 4369, 326, 2562, 434, 326, 679, 9006, 18, 225, 1021, 805, 225, 460, 353, 404, 18, 22, 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, 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 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 24661, 67, 15169, 67, 4110, 67, 11282, 12, 2890, 4672, 3536, 4163, 87, 596, 326, 20041, 5725, 358, 999, 364, 326, 7041, 7372, 16, 2511, 603, 3179, 342, 6551, 578, 5118, 29009, 2562, 261, 3350, 335, 580, 502, 2109, 4369, 326, 2562, 434, 326, 679, 9006, 18, 225, 1021, 805, 225, 460, 353, 404, 18, 22, 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 ]
self.assertRaises(ValueError, bytearray, [-1]) self.assertRaises(ValueError, bytearray, [-sys.maxsize]) self.assertRaises(ValueError, bytearray, [-sys.maxsize-1]) self.assertRaises(ValueError, bytearray, [-sys.maxsize-2]) self.assertRaises(ValueError, bytearray, [-10**100]) self.assertRaises(ValueError, bytearray, [256]) self.assertRaises(ValueError, bytearray, [257]) self.assertRaises(ValueError, bytearray, [sys.maxsize]) self.assertRaises(ValueError, bytearray, [sys.maxsize+1]) self.assertRaises(ValueError, bytearray, [10**100]) def test_repr_str(self): warnings.simplefilter('ignore', BytesWarning) for f in str, repr: self.assertEqual(f(bytearray()), "bytearray(b'')") self.assertEqual(f(bytearray([0])), "bytearray(b'\\x00')") self.assertEqual(f(bytearray([0, 1, 254, 255])), "bytearray(b'\\x00\\x01\\xfe\\xff')") self.assertEqual(f(b"abc"), "b'abc'") self.assertEqual(f(b"'"), '''b"'"''') self.assertEqual(f(b"'\""), r"""b'\'"'""")
self.assertRaises(ValueError, self.type2test, [-1]) self.assertRaises(ValueError, self.type2test, [-sys.maxsize]) self.assertRaises(ValueError, self.type2test, [-sys.maxsize-1]) self.assertRaises(ValueError, self.type2test, [-sys.maxsize-2]) self.assertRaises(ValueError, self.type2test, [-10**100]) self.assertRaises(ValueError, self.type2test, [256]) self.assertRaises(ValueError, self.type2test, [257]) self.assertRaises(ValueError, self.type2test, [sys.maxsize]) self.assertRaises(ValueError, self.type2test, [sys.maxsize+1]) self.assertRaises(ValueError, self.type2test, [10**100])
def test_constructor_value_errors(self): self.assertRaises(ValueError, bytearray, [-1]) self.assertRaises(ValueError, bytearray, [-sys.maxsize]) self.assertRaises(ValueError, bytearray, [-sys.maxsize-1]) self.assertRaises(ValueError, bytearray, [-sys.maxsize-2]) self.assertRaises(ValueError, bytearray, [-10**100]) self.assertRaises(ValueError, bytearray, [256]) self.assertRaises(ValueError, bytearray, [257]) self.assertRaises(ValueError, bytearray, [sys.maxsize]) self.assertRaises(ValueError, bytearray, [sys.maxsize+1]) self.assertRaises(ValueError, bytearray, [10**100])
510711d598f1432afb021a01c2457b14334c6157 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/510711d598f1432afb021a01c2457b14334c6157/test_bytes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12316, 67, 1132, 67, 4324, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 23059, 21, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 23059, 9499, 18, 1896, 1467, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 23059, 9499, 18, 1896, 1467, 17, 21, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 23059, 9499, 18, 1896, 1467, 17, 22, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 23059, 2163, 636, 6625, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 306, 5034, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 306, 2947, 27, 5717, 365, 18, 11231, 12649, 6141, 12, 23610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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12316, 67, 1132, 67, 4324, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 23059, 21, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 23059, 9499, 18, 1896, 1467, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 23059, 9499, 18, 1896, 1467, 17, 21, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 23059, 9499, 18, 1896, 1467, 17, 22, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 23059, 2163, 636, 6625, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 306, 5034, 5717, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 14552, 16, 306, 2947, 27, 5717, 365, 2 ]
self.assertTrue(user_site.startswith(site.USER_BASE))
self.assertTrue(user_site.startswith(site.USER_BASE), user_site)
def test_getusersitepackages(self): site.USER_SITE = None site.USER_BASE = None user_site = site.getusersitepackages()
c866588d2bb7dde3fc14ec64c6fe3ce476a08353 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/c866588d2bb7dde3fc14ec64c6fe3ce476a08353/test_site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 5577, 305, 881, 484, 1023, 12, 2890, 4672, 2834, 18, 4714, 67, 20609, 273, 599, 2834, 18, 4714, 67, 8369, 273, 599, 729, 67, 4256, 273, 2834, 18, 588, 5577, 305, 881, 484, 1023, 1435, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 5577, 305, 881, 484, 1023, 12, 2890, 4672, 2834, 18, 4714, 67, 20609, 273, 599, 2834, 18, 4714, 67, 8369, 273, 599, 729, 67, 4256, 273, 2834, 18, 588, 5577, 305, 881, 484, 1023, 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 ]
""" if _debug: print "\t%s: Called setTitle() in Plot()" % rendererName
@type title: string """ if _debug: print "\t%s: Called Plot.setTitle()" % rendererName
def setTitle(self,title): """ Set the plot title
705588e48e70a8dec0e8286968b0077d85e8602e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/705588e48e70a8dec0e8286968b0077d85e8602e/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14109, 12, 2890, 16, 2649, 4672, 3536, 1000, 326, 3207, 2077, 2, 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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14109, 12, 2890, 16, 2649, 4672, 3536, 1000, 326, 3207, 2077, 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 ]
raise TTFError, 'Not a TrueType font'
raise TTFError("Not a TrueType font: can't read version") if version == 0x4F54544F: raise TTFError, 'OpenType fonts with PostScript outlines are not supported' if version != 0x00010000 and version != 0x74727565 and version!=0x74746366: raise TTFError('Not a TrueType font: version=0x%8.8X' % version)
def __init__(self, file, validate=0): """Loads and parses a TrueType font file. file can be a filename or a file object. If validate is set to a false values, skips checksum validation. This can save time, especially if the font is large. """
59077d27ebd48aa73fb5f623d12e1991aef4a60d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/59077d27ebd48aa73fb5f623d12e1991aef4a60d/ttfonts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 585, 16, 1954, 33, 20, 4672, 3536, 7968, 471, 8940, 279, 1053, 559, 3512, 585, 18, 225, 585, 848, 506, 279, 1544, 578, 279, 585, 733, 18, 225, 971, 1954, 353, 444, 358, 279, 629, 924, 16, 24646, 6697, 3379, 18, 225, 1220, 848, 1923, 813, 16, 29440, 309, 326, 3512, 353, 7876, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 585, 16, 1954, 33, 20, 4672, 3536, 7968, 471, 8940, 279, 1053, 559, 3512, 585, 18, 225, 585, 848, 506, 279, 1544, 578, 279, 585, 733, 18, 225, 971, 1954, 353, 444, 358, 279, 629, 924, 16, 24646, 6697, 3379, 18, 225, 1220, 848, 1923, 813, 16, 29440, 309, 326, 3512, 353, 7876, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
49
14
def min_spanning_tree(self, weight_function=lambda e: 1, algorithm='Kruskal', starting_vertex=None ): """ Returns the edges of a minimum spanning tree, if one exists, otherwise returns False.
ba77682fec95ae8e4e7909d908eb8fc4fb23dae6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ba77682fec95ae8e4e7909d908eb8fc4fb23dae6/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 67, 1752, 10903, 67, 3413, 12, 2890, 16, 3119, 67, 915, 33, 14661, 425, 30, 404, 16, 4886, 2218, 47, 8010, 79, 287, 2187, 5023, 67, 15281, 33, 7036, 262, 30, 3536, 2860, 326, 5231, 434, 279, 5224, 1694, 10903, 2151, 16, 309, 1245, 1704, 16, 3541, 1135, 1083, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 67, 1752, 10903, 67, 3413, 12, 2890, 16, 3119, 67, 915, 33, 14661, 425, 30, 404, 16, 4886, 2218, 47, 8010, 79, 287, 2187, 5023, 67, 15281, 33, 7036, 262, 30, 3536, 2860, 326, 5231, 434, 279, 5224, 1694, 10903, 2151, 16, 309, 1245, 1704, 16, 3541, 1135, 1083, 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 ]
choosen = random.randrange(0,nb_songs)
def get_next_song_index(self):
66aa8642ecce594529f135cb7af68caa6e79d05f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6855/66aa8642ecce594529f135cb7af68caa6e79d05f/mpdrandomd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 816, 75, 67, 1615, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 816, 75, 67, 1615, 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 ]
cancel = GtkButton ("Cancel")
cancel = gtk.Button ("Cancel")
def __init__ (self, title, callback): GtkDialog.__init__ (self) self.set_transient_for (mainWindow) self.set_title (title) self.callback = callback ok = GtkButton ("OK") ok.set_flags (CAN_DEFAULT) ok.connect ("clicked", self.okSignal) ok.show() self.action_area.pack_start (ok, TRUE, FALSE, 10) cancel = GtkButton ("Cancel") cancel.set_flags (CAN_DEFAULT) cancel.connect ("clicked", self.cancelSignal) cancel.show() self.action_area.pack_start (cancel, TRUE, FALSE, 10) ok.grab_default() self.set_modal (TRUE)
ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/ec17e2ee5c945ddc11ff8bcc0cdc586ae535e76d/driconf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 2077, 16, 1348, 4672, 22132, 6353, 16186, 2738, 972, 261, 2890, 13, 365, 18, 542, 67, 22670, 67, 1884, 261, 5254, 3829, 13, 365, 18, 542, 67, 2649, 261, 2649, 13, 365, 18, 3394, 273, 1348, 1529, 273, 22132, 3616, 7566, 3141, 7923, 1529, 18, 542, 67, 7133, 261, 39, 1258, 67, 5280, 13, 1529, 18, 3612, 7566, 7475, 329, 3113, 365, 18, 601, 11208, 13, 1529, 18, 4500, 1435, 365, 18, 1128, 67, 5036, 18, 2920, 67, 1937, 261, 601, 16, 5383, 16, 4934, 16, 1728, 13, 3755, 273, 22718, 18, 3616, 7566, 6691, 7923, 3755, 18, 542, 67, 7133, 261, 39, 1258, 67, 5280, 13, 3755, 18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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 2077, 16, 1348, 4672, 22132, 6353, 16186, 2738, 972, 261, 2890, 13, 365, 18, 542, 67, 22670, 67, 1884, 261, 5254, 3829, 13, 365, 18, 542, 67, 2649, 261, 2649, 13, 365, 18, 3394, 273, 1348, 1529, 273, 22132, 3616, 7566, 3141, 7923, 1529, 18, 542, 67, 7133, 261, 39, 1258, 67, 5280, 13, 1529, 18, 3612, 7566, 7475, 329, 3113, 365, 18, 601, 11208, 13, 1529, 18, 4500, 1435, 365, 18, 1128, 67, 5036, 18, 2920, 67, 1937, 261, 601, 16, 5383, 16, 4934, 16, 1728, 13, 3755, 273, 22718, 18, 3616, 7566, 6691, 7923, 3755, 18, 542, 67, 7133, 261, 39, 1258, 67, 5280, 13, 3755, 18, 3612, 7566, 7475, 2 ]
specified DateTime or time module style time.""" try: return (self._d >= t._d)
specified DateTime or time module style time. Revised to give more correct results through comparison of long integer milliseconds. """ try: return (self.millis() >= t.millis())
def greaterThanEqualTo(self,t): """Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time greater than or equal to the specified DateTime or time module style time.""" try: return (self._d >= t._d) except: return (self._t >= t)
befc802c3f8f99550f565b61586bed86f5a03c2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/befc802c3f8f99550f565b61586bed86f5a03c2d/DateTime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6802, 9516, 5812, 774, 12, 2890, 16, 88, 4672, 3536, 8583, 333, 3716, 733, 358, 4042, 3716, 733, 4869, 279, 13861, 1634, 1300, 4123, 487, 716, 1492, 353, 2106, 635, 326, 5790, 813, 1605, 18, 2860, 638, 309, 326, 733, 8686, 279, 1509, 19, 957, 6802, 2353, 578, 3959, 358, 326, 1269, 3716, 578, 813, 1605, 2154, 813, 18, 868, 26779, 358, 8492, 1898, 3434, 1686, 3059, 5826, 434, 1525, 3571, 10993, 18, 3536, 775, 30, 565, 327, 261, 2890, 18, 81, 3503, 1435, 1545, 268, 18, 81, 3503, 10756, 1335, 30, 327, 261, 2890, 6315, 88, 1545, 268, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6802, 9516, 5812, 774, 12, 2890, 16, 88, 4672, 3536, 8583, 333, 3716, 733, 358, 4042, 3716, 733, 4869, 279, 13861, 1634, 1300, 4123, 487, 716, 1492, 353, 2106, 635, 326, 5790, 813, 1605, 18, 2860, 638, 309, 326, 733, 8686, 279, 1509, 19, 957, 6802, 2353, 578, 3959, 358, 326, 1269, 3716, 578, 813, 1605, 2154, 813, 18, 868, 26779, 358, 8492, 1898, 3434, 1686, 3059, 5826, 434, 1525, 3571, 10993, 18, 3536, 775, 30, 565, 327, 261, 2890, 18, 81, 3503, 1435, 1545, 268, 18, 81, 3503, 10756, 1335, 30, 327, 261, 2890, 6315, 88, 1545, 268, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Invert.png\"><br> "\ "Inverts the atoms of the selected chunks.</p>"
modifyInvertActionText =\ "<u><b>Invert</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/Tools/Build Tools/Invert.png\"><br> "\ "Inverts the atoms of the selected chunks.</p>"
def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their own widgets, usually in a method called add_whats_this_text(), not in this file. """ # # File Toolbar # # Open File fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)<br> "\ "<p><img source=\"ui/actions/File/Open.png\"><br> "\ "Opens a new file."\ "</p>" win.fileOpenAction.setWhatsThis( fileOpenText ) # Import File fileImportText = "<u><b>Import File</b></u><br>"\ "Inserts a file of any chemical file format supported by "\ "<b>Openbabel</b> into the current Part" win.fileImportAction.setWhatsThis(fileImportText) #Export File fileExportText = "<u><b>Export File</b></u><br>"\ "Save the current Part in any chemical file format supported by "\ "<b>Openbabel</b>. Note that exclusive features of NanoEngineer-1 "\ "are not saved to the exported file" win.fileExportAction.setWhatsThis(fileExportText) # Save File fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)<br> "\ "<p><img source=\"ui/actions//Save.png\"><br> "\ "Saves the current file."\ "</p>" win.fileSaveAction.setWhatsThis( fileSaveText ) # # Edit Toolbar # # Make Checkpoint ### editMakeCheckpointText = \ "<u><b>Make Checkpoint</b></u>"\ "<p>"\ "<img source=\"ui/actions/Edit/Make_CheckPoint.png\"><br> "\ "Make Undo checkpoint."\ "</p>" win.editMakeCheckpointAction.setWhatsThis( editMakeCheckpointText ) # Automatic Checkpointing ### [minor changes, bruce 060319] editAutoCheckpointingText = \ "<u><b>Automatic Checkpointing</b></u>"\ "<p>"\ "Enables/Disables <b>Automatic Checkpointing</b>. When enabled, "\ "the program maintains the Undo stack automatically. When disabled, "\ "the user is required to manually create Undo checkpoints using the "\ "<b>Make Checkpoint</b> button: "\ "</p>"\ "<p><img source=\"ui/actions/Edit/Make_CheckPoint.png\">"\ "</p>"\ "<p><b>Automatic Checkpointing</b> can impact program performance. "\ "By disabling Automatic Checkpointing, the program will run faster. "\ "</p>"\ "<p><b><i>Remember that you must make your own Undo checkpoints "\ "manually when Automatic Checkpointing is disabled.</i></b>"\ "</p>" win.editAutoCheckpointingAction.setWhatsThis( editAutoCheckpointingText ) # Clear Undo Stack ### [minor changes, bruce 060319] editClearUndoStackText = "<u><b>Clear Undo Stack</b></u>"\ "<p>Clears all checkpoints on the Undo and Redo stacks, freeing up memory."\ "</p>" win.editClearUndoStackAction.setWhatsThis( editClearUndoStackText ) # Undo editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)<br> "\ "<p><img source=\"ui/actions/Undo.png\"><br> "\ "Reverses the last edit or command which changed structure or selection. "\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Undo "\ "only works if you got this popup from the Edit menu item for Undo, "\ "not from the Undo toolbutton."\ "</font>"\ "</p>" #bruce 060317 revised this text to reflect what it does in A7; 060320 added 1421-not-fixed warning win.editUndoAction.setWhatsThis( editUndoText ) win.editUndoText = editUndoText #bruce 060317 to help fix bug 1421 in Undo whatsthis wiki help link # Redo from PlatformDependent import is_macintosh if is_macintosh(): redo_accel = "(Ctrl + Shift + Z)" # note: this is further modified (Ctrl -> Cmd) by other code # changing this is partly redundant with code in undo*.py, but as of 060317 it's desirable in editRedoText too else: redo_accel = "(Ctrl + Y)" editRedoText = "<u><b>Redo</b></u> %s<br> "\ "<p><img source=\"ui/actions/Edit/Redo.png\"> <br>"\ "Restores a change which was undone using the Undo command."\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Redo "\ "only works if you got this popup from the Edit menu item for Redo, "\ "not from the Redo toolbutton."\ "</font>"\ "</p>" % redo_accel #bruce 060317 revised this text to be more accurate, and split out redo_accel; 060320 added 1421-not-fixed warning win.editRedoAction.setWhatsThis( editRedoText ) win.editRedoText = editRedoText #bruce 060317 to help fix bug 1421 in Redo whatsthis wiki help link # Cut editCutText = "<u><b>Cut</b></u> (Ctrl + X)<br> "\ "<p><img source=\"ui/actions/Edit/Cut.png\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" win.editCutAction.setWhatsThis( editCutText ) # Copy editCopyText = "<u><b>Copy</b></u> (Ctrl + C)<br> "\ "<p><img source=\"ui/actions/Edit/Copy.png\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" win.editCopyAction.setWhatsThis( editCopyText ) # Paste editPasteText = "<u><b>Paste</b></u> (Ctrl + V)<br> "\ "<p><img source=\"ui/actions/Edit/Paste_On.png\"><br> "\ "<b>Paste</b> places the user in <b>Build</b> mode where copied chunks on "\ "the clipboard can be pasted into the model by double clicking in empty space. "\ "If the current clipboard chunk has a <b><i>hotspot</i></b>, it can be bonded to "\ "another chunk by single clicking on one of the chunk's bondpoints."\ "</p>"\ "<p>A <b><i>Hotspot</i></b> is a green bondpoint on a clipboard chunk indicating "\ "it will be the active bondpoint which will connect to another chunk's bondpoint. "\ "To specify a hotspot on the clipboard chunk, click on one of its bondpoints in the "\ "<b><i>MMKit's Thumbview</i></b>."\ "</p>" win.editPasteAction.setWhatsThis( editPasteText ) # Delete editDeleteText = "<u><b>Delete</b></u> (DEL)<br> "\ "<p><img source=\"ui/actions/Delete.png\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects may be permanently lost, or they might be recoverable using Undo.</p>" #bruce 060212 revised above text (and fixed spelling error); should be revised again before A7 release win.editDeleteAction.setWhatsThis( editDeleteText ) #Preferences Dialog editPrefsText = "<u><b>Preferences Dialog</b></u>"\ "<p>Allows you to edit various user preferences "\ "such as changing atom, bond display properties,"\ "lighting, background color, window position and"\ "size, plugins etc. </p>" win.editPrefsAction.setWhatsThis( editPrefsText ) # # View Toolbar # # Home View setViewHomeActionText = \ "<u><b>Home</b></u> (Home)<br>"\ "<p>"\ "<img source=\"ui/actions/View/Modify/Home.png\"><br>"\ "When you create a new model, it appears in a "\ "default view orientation (FRONT view). When you "\ "open an existing model, it appears in the "\ "orientation it was last saved. You can change the "\ "default orientation by selecting <b>Set Home View "\ "to Current View</b> from the <b>View</b> menu."\ "</p>" win.setViewHomeAction.setWhatsThis( setViewHomeActionText ) # Fit to Window setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom_To_Fit.png\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" win.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) # Recenter setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Recenter.png\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" win.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) # Zoom Tool setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom.png\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" win.zoomToolAction.setWhatsThis( setzoomToolActionText ) # Pan Tool setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Pan.png\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" win.panToolAction.setWhatsThis( setpanToolActionText ) # Rotate Tool setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Rotate.png\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" win.rotateToolAction.setWhatsThis( setrotateToolActionText ) # Orthographic Projection setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p>Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" win.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) # Perspective Projection setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p>Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" win.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) # Normal To viewNormalToActionText = "<u><b>Set View Normal To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Normal_To.png/\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" win.viewNormalToAction.setWhatsThis( viewNormalToActionText ) # Parallel To viewParallelToActionText = "<u><b>Set View Parallel To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Parallel_To.png\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" win.viewParallelToAction.setWhatsThis( viewParallelToActionText ) # Save Named View saveNamedViewActionText = "<u><b>Save Named View</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Save_Named_View.png\"><br> "\ "Saves the current view as a custom <b>named view</b> and places it in the Model Tree.</p>" \ "<p>The view can be restored by selecting <b>Change View</b> from its context menu in the Model Tree."\ "</p>" win.saveNamedViewAction.setWhatsThis( saveNamedViewActionText ) # Front View viewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"ui/actions/View/Front.png\"><br> "\ "Orients the view to the Front View."\ "</p>" win.viewFrontAction.setWhatsThis( viewFrontActionText ) # Back View viewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"ui/actions/View/Back.png\"><br> "\ "Orients the view to the Back View."\ "</p>" win.viewBackAction.setWhatsThis( viewBackActionText ) # Top View viewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"ui/actions/View/Top.png\"><br> "\ "Orients the view to the Top View."\ "</p>" win.viewTopAction.setWhatsThis( viewTopActionText ) # Bottom View viewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"ui/actions/View/Bottom.png\"><br> "\ "Orients the view to the Bottom View."\ "</p>" win.viewBottomAction.setWhatsThis( viewBottomActionText ) # Left View viewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"ui/actions/View/Left.png\"><br> "\ "Orients the view to the Left View."\ "</p>" win.viewLeftAction.setWhatsThis( viewLeftActionText ) # Right View viewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"ui/actions/View/Right.png\"><br> "\ "Orients the view to the Right View."\ "</p>" win.viewRightAction.setWhatsThis( viewRightActionText ) #Isometric View viewIsometricActionText = "<u><b>IsometricView</b></u><br>"\ "<p><img source=\"ui/actions/View/Isometric.png\"><br> "\ "Orients the view to the Isometric View."\ "</p>" win.viewIsometricAction.setWhatsThis( viewIsometricActionText ) # Rotate View 180 viewRotate180ActionText = "<u><b>Rotate View 180</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_180.png.png\"><br> "\ "Rotates the view 180 degrees."\ "</p>" win.viewRotate180Action.setWhatsThis( viewRotate180ActionText ) # Rotate View +90 viewRotatePlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_+90.png\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotatePlus90Action.setWhatsThis( viewRotatePlus90ActionText ) # Rotate View -90 viewRotateMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_-90.png\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotateMinus90Action.setWhatsThis( viewRotateMinus90ActionText ) # QuteMol viewQuteMolActionText = \ "<u><b>QuteMol</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/QuteMol.png\"><br> "\ "Starts QuteMol and loads a PDB file of the current model."\ "</p>" \ "QuteMol must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewQuteMolAction.setWhatsThis( viewQuteMolActionText ) # POV-Ray (was Raytrace Scene) viewRaytraceSceneActionText = "<u><b>POV-Ray</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Raytrace_Scene.png\"><br> "\ "Raytrace the current scene using POV-Ray. "\ "</p>" \ "POV-Ray must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewRaytraceSceneAction.setWhatsThis( viewRaytraceSceneActionText ) # # Grids Toolbar # # Surface 100 orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface100.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" win.orient100Action.setWhatsThis(orient100ActionText ) # Surface 110 orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface110.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" win.orient110Action.setWhatsThis(orient110ActionText ) # Surface 111 orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface111.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" win.orient111Action.setWhatsThis(orient111ActionText ) # # Insert toolbar # # Graphene insertGrapheneActionText = \ "<u><b>Build Graphene</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Graphene.png\"><br> "\ "Inserts a 2D sheet of graphene in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertGrapheneAction.setWhatsThis(insertGrapheneActionText ) # Build Nanotube insertNanotubeActionText = \ "<u><b>Build Nanotube</b></u>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Nanotube.png\"> <br>"\ "Inserts a carbon or boron nitride nanotube in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertNanotubeAction.setWhatsThis(insertNanotubeActionText ) # Build DNA buildDnaActionText = \ "<u><b>Build DNA</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/DNA.png\"><br> "\ "Inserts DNA in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.buildDnaAction.setWhatsThis(buildDnaActionText ) # POV-Ray Scene insertPovraySceneActionText = "<u><b>Insert POV-Ray Scene</b></u><br>"\ "<p><img source=\"ui/actions/POV-Ray_Scene.png\"><br> "\ "Inserts a POV-Ray Scene file based on the current model and viewpoint. "\ "</p>" win.insertPovraySceneAction.setWhatsThis(insertPovraySceneActionText ) # Comment insertCommentActionText = "<u><b>Insert Comment</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Comment.png\"><br> "\ "Inserts a comment in the current part. "\ "</p>" win.insertCommentAction.setWhatsThis(insertCommentActionText ) # # Display toolbar # # Display Default dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Default.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>Modes</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" win.dispDefaultAction.setWhatsThis(dispDefaultActionText ) # Display Invisible dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Invisible.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispInvisAction.setWhatsThis(dispInvisActionText ) # Display Lines dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Lines.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispLinesAction.setWhatsThis(dispLinesActionText ) # Display Tubes dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Tubes.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispTubesAction.setWhatsThis(dispTubesActionText ) # Display Ball and Stick dispBallActionText = "<u><b>Display Ball and Stick</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Ball_and_Stick.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Ball and Stick</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Ball and Stick</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres and cylinders can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" win.dispBallAction.setWhatsThis(dispBallActionText ) # Display CPK # [bruce extended and slightly corrected text, 060307] dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/CPK.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode. Atoms are rendered as spheres with "\ "a size equal to 0.78 of their VdW radius, corresponding "\ "to a contact force of approximately 0.1 nN with neighboring "\ "nonbonded atoms. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" win.dispCPKAction.setWhatsThis(dispCPKActionText ) # Display Cylinder dispCylinderActionText = "<u><b>Display Cylinder</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Cylinder.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Cylinder</b> mode. Chunks are rendered as cylinders."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Cylinder</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispCylinderAction.setWhatsThis(dispCylinderActionText ) # Display Surface dispSurfaceActionText = "<u><b>Display Surface</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Surface.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Surface</b> mode. Chunks are rendered as a smooth surface."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Surface</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispSurfaceAction.setWhatsThis(dispSurfaceActionText ) #Reset Chunk Color dispResetChunkColorText = "<u><b>Reset Chunk Color</b></u><br>"\ "Resets the user defined chunk color and renders the atoms " \ "(in the chunk) with their own element colors" win.dispResetChunkColorAction.setWhatsThis(dispResetChunkColorText ) #Reset Atoms Display dispResetAtomsDisplayText = "<u><b>Reset Atoms Display</b></u><br>"\ "Renders the selected atoms (or the atoms in the"\ "selected chunks) with the same display style as "\ "that of their parent chunk" win.dispResetAtomsDisplayAction.setWhatsThis(dispResetAtomsDisplayText) #Show Invisible Atoms dispShowInvisAtomsText = "<u><b>Show Invisible Atoms</b></u><br>"\ "Renders the selected atoms (or the atoms in the selected "\ "chunks) with the same display style as their parent chunk. "\ "However, if the parent chunk is set as invisible, this feature " \ "will not work. " win.dispShowInvisAtomsAction.setWhatsThis(dispShowInvisAtomsText) #Element Color Settings Dialog dispElementColorSettingsText = "<u><b>Element Color Settings Dialog</b></u><br>"\ "Element colors can be manually changed " \ "using this dialog. Also, the user can load"\ "or save the element colors" win.dispElementColorSettingsAction.setWhatsThis(dispElementColorSettingsText) # # Select toolbar # # Select All selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_All.png\"><br> "\ "When in <b>Build</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" win.selectAllAction.setWhatsThis(selectAllActionText ) # Select None selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_None.png\"><br> "\ "Unselects everything currently selected.</p>" win.selectNoneAction.setWhatsThis(selectNoneActionText ) # InvertSelection selectInvertActionText = "<u><b>Invert Selection</b></u> (Ctrl + Shift + I)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Invert.png\"><br> "\ "Inverts the current selection.</p>" win.selectInvertAction.setWhatsThis(selectInvertActionText ) # Select Connected selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Connected.png\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>You can also select all connected atoms by double clicking on an atom or bond "\ "while in <b>Build</b> mode.</p>" win.selectConnectedAction.setWhatsThis(selectConnectedActionText ) # Select Doubly selectDoublyActionText = "<u><b>Select Doubly</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Doubly.png\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection."\ "</p>" win.selectDoublyAction.setWhatsThis(selectDoublyActionText ) # Expand Selection selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Expand.png\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" win.selectExpandAction.setWhatsThis(selectExpandActionText ) # Contract Selection selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Contract.png\"><br> "\ "Deselects any atom that is a neighbor of a non-picked atom or has a bondpoint."\ "</p>" win.selectContractAction.setWhatsThis(selectContractActionText ) # # Modify Toolbar # # Adjust Selection modifyAdjustSelActionText = "<u><b>Adjust Selection</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_Selection.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the selection</i>) to make the geometry more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustSelAction.setWhatsThis(modifyAdjustSelActionText ) # Adjust All modifyAdjustAllActionText = "<u><b>Adjust All</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_All.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the entire part</i>) to make the geometry of the part more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustAllAction.setWhatsThis(modifyAdjustAllActionText ) # Hydrogenate modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> <br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Hydrogenate.png\"><br> "\ "Adds hydrogen atoms to all the bondpoints in the selection.</p>" win.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) # Dehydrogenate modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Dehydrogenate.png\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" win.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) # Passivate modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)<br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Passivate.png\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" win.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) # Stretch modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Stretch.png\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" win.modifyStretchAction.setWhatsThis(modifyStretchActionText ) # Delete Bonds modifyDeleteBondsActionText = "<u><b>Cut Bonds</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Delete_Bonds.png\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" win.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) # Separate/New Chunk modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Separate.png\"><br> "\ "Creates a new chunk(s) from the currently selected atoms. "\ "If the selected atoms belong to different chunks, multiple new "\ "chunks are created.</p>" win.modifySeparateAction.setWhatsThis(modifySeparateActionText ) # New Chunk makeChunkFromSelectedAtomsActionText = "<u><b>New Chunk</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/New_Chunk.png\"><br> "\ "Creates a new chunk from the currently selected atoms. "\ "All atoms end up in a single chunk.</p>" win.makeChunkFromSelectedAtomsAction.setWhatsThis(makeChunkFromSelectedAtomsActionText ) # Merge Chunks modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Merge.png\"><br> "\ "Merges two or more chunks into a single chunk.</p>" win.modifyMergeAction.setWhatsThis(modifyMergeActionText ) # Invert Chunks modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Invert.png\"><br> "\ "Inverts the atoms of the selected chunks.</p>" win.modifyInvertAction.setWhatsThis(modifyInvertActionText ) # Mirror Selected Chunks #Note that the the feature name is intentionally kept "Mirror" instead of "Mirror Chunks" because # in future we will support mirrroing atoms as well. -- ninad060814 modifyMirrorActionText = "<u><b>Mirror</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Mirror.png\"><br> "\ "Mirrors the selected <b> chunks </b> about a reference Grid Plane.<br>"\ "<font color=\"#808080\">Note: In this version, it doesn't mirror jigs or individual atoms.</font> </p>" win.modifyMirrorAction.setWhatsThis(modifyMirrorActionText ) # Align to Common Axis modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/AlignToCommonAxis.png\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" win. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) #Center on Common Axis modifyCenterCommonAxisActionText= "<u><b>Center On Common Axis</b></u><br>"\ "<p><b> Moves</b> all selected chunks to the center of the <b> first </b> selected chunk "\ "and also <b>aligns</b> them to the axis of the first one ."\ "You must select two or more chunks before using this feature. </p>" win.modifyCenterCommonAxisAction.setWhatsThis(modifyCenterCommonAxisActionText) # # Tools Toolbar # # Select Chunks toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/63.png\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" win. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) # Move Chunks toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/64.png\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" win. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) # Build Atoms toolsDepositAtomActionText = \ "<u><b>Build Atoms</b></u><!-- [[Feature:Build Atoms]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Atoms.png\"><br> "\ "<b>Build Atoms</b> allows you to build structures one atom at a time or by depositing objects "\ "that are on the paste clipboard. You can also insert structures from the "\ "NanoEngineer-1 Parts Library.</p>"\ "<p>It is also possible to change bond types between atoms using the <b>Bond Tool</b> or by "\ "simply dragging and dropping one bondpoint onto another."\ "</p>" win. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) # Build Crystal (was Cookie Cutter Mode) toolsCookieCutActionText = "<u><b>Build Crystal</b></u><!-- [[Feature:Build Crystal]] --><br>"\ "<p><><img source=\"ui/actions/Tools/Build Structures/Cookie_Cutter.png\"><br> "\ "<b>Build Crystal</b> provides tools for cutting out multi-layered shapes from "\ "slabs of diamond or lonsdaleite lattice.</p>" win. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) # Tools > Extrude toolsExtrudeActionText = "<u><b>Extrude</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\"ui/actions/Insert/Features/Extrude.png\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" win. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) # Fuse Chunks Mode toolsFuseChunksActionText = "<u><b>Fuse Chunks Mode</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Fuse.png\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two fusing options are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing bondpoints "\ "of two or more chunks. Bondpoints are highlighted and lines are drawn (and undrawn) as chunks "\ "are dragged to indicate bonding relationships between bondpoints. Bondpoints with "\ "multiple bonding relationships are highlighted in magenta to indicate that they cannot "\ "make bonds.<br><br>"\ "<b>Fuse Atoms</b> fuses pairs of overlapping atoms between chunks. The set of overlapping "\ "atoms in the selected chunk(s) are highlighted in green while the set of atoms that will be deleted "\ "in non-selected chunks are highlighted in dark red. It is possible that deleted atoms will not fuse "\ "properly, leaving bondpoints on the selected chunk(s) atoms. This is a bug. To help "\ "minimize this problem, try to get the bonds of overlapping atoms oriented similarly.<br>"\ "</p>" win.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) # # Simulator Toolbar # # Minimize Energy simMinimizeEnergyActionText = "<u><b>Minimize Energy</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Minimize_Energy.png\"><br> "\ "The potential energy of a chemical structure is a function of the relative positions of its atoms. " \ "To obtain this energy with complete accuracy involves a lot of computer time spent on quantum " \ "mechanical calculations, which cannot be practically done on a desktop computer. "\ "To get an approximate potential energy without all that, we represent the energy as a series of " \ "terms involving geometric properties of the structure: lengths of chemical bonds, angles between " \ "pairs and triples of chemical bonds, etc. </p>" \ "<p>" \ "As is generally the case with physical systems, the gradient of the potential energy represents " \ "the forces acting on various particles. The atoms want to move in the direction that most reduces " \ "the potential energy. Energy minimization is a process of adjusting the atom positions to try to find " \ "a global minimum of the potential energy. Each atom contributes three variables (its x, y, and z " \ "coordinates) so the search space is multi-dimensional. The global minimum is the configuration " \ "that the atoms will settle into if lowered to zero Kelvin. </p>" win. simMinimizeEnergyAction.setWhatsThis( simMinimizeEnergyActionText ) # Run Dynamics (was NanoDynamics-1). Mark 060807. simSetupActionText = "<u><b>Run Dynamics</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Run_Dynamics.png\"><br> "\ "This is the interface to the NanoEngineer-1 molecular dynamics simulator. "\ "Enter the parameters of the simulation and click <b>Run Simulation</b>."\ "The simulator creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model.</p>" win. simSetupAction.setWhatsThis( simSetupActionText ) # Play Movie (was Movie Player) Mark 060807. simMoviePlayerActionText = "<u><b>Play Movie</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Play_Movie.png\"><br> "\ "Plays the most recent trajectory (movie) file created by the NanoEngineer-1 molecular dynamics simulator."\ "To create a movie file, select <b>Run Dynamics</b>.</p>" win. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) # Make Graphs (was Plot Tool) Mark 060807. simPlotToolActionText = "<u><b>Make Graphs</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Make_Graphs.png\"><br> "\ "Make a graph of a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "<b>Measure Distance:</b> distance(angstroms)<br>"\ "<b>Measure Angle:</b> angle (degrees)<br>"\ "<b>Measure Dihedral:</b> dihedral(degrees)<br>"\ "</p>" win. simPlotToolAction.setWhatsThis( simPlotToolActionText ) # # Dashboard Buttons # # Done toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Done.png\"><br> "\ "Completes the current operation and enters the default mode."\ "</p>" win. toolsDoneAction.setWhatsThis( toolsDoneActionText ) # Cancel toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Cancel.png\"><br> "\ "Cancels the current operation and enters the default mode."\ "</p>" win. toolsCancelAction.setWhatsThis( toolsCancelActionText ) # Back up toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "Undoes the previous operation."\ "</p>" win. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) # Start Over toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" win.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) # Add Layers ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/addlayer.png\"><br> "\ "Adds a new layer of diamond lattice to the existing layer."\ "</p>" win.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) # # Jigs # # Anchor jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Anchor.png\"><br> "\ "Attaches an <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation."\ "</p>"\ "<p>To create an Anchor, enter <b>Build</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom."\ "</p>" win.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) # Rotary Motor jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Rotary_Motor.png\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor."\ "</p>"\ "<p>To create a Rotary Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsMotorAction.setWhatsThis(jigsMotorActionText ) # Linear Motor jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Linear_Motor.png\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor."\ "</p>"\ "<p>To create a Linear Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) # Thermostat jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Thermostat.png\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin)."\ "</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run."\ "</p>"\ "<p>To create a Langevin Thermostat, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom."\ "</p>" win.jigsStatAction.setWhatsThis(jigsStatActionText ) # Thermometer jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Thermometer.png\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run."\ "</p>"\ "<p>To create a Thermometer, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom."\ "</p>" win.jigsThermoAction.setWhatsThis(jigsThermoActionText ) # ESP Image jigsESPImageActionText = "<u><b>ESP Image</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/ESP_Image.png\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential."\ "</p>"\ "<p>To create an ESP Image, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" win.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) # Atom Set jigsAtomSetActionText = "<u><b>Atom Set</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Atom_Set.png\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later."\ "</p>"\ "<p>To create an Atom Set, enter <b>Build</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection."\ "</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" win.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) # Measure Distance jigsDistanceActionText = "<u><b>Measure Distance Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Distance.png\"><br> "\ "A <b>Measure Distance Jig</b> functions as a dimension to display the "\ "distance between two atoms."\ "</p>"\ "<p>To create the Measure Distance Jig, enter <b>Build</b> mode, "\ "select two atoms and then select this jig. The Measure Distance Jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei."\ "</p>"\ "<p>The Measure Distance Jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) # Measure Angle jigsAngleActionText = "<u><b>Measure Angle Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Angle.png\"><br> "\ "A <b>Measure Angle Jig</b> functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle Jig, enter <b>Build</b> mode, "\ "select three atoms and then select this jig. The Measure Angle Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms."\ "</p>"\ "<p>The Measure Angle Jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsAngleAction.setWhatsThis(jigsAngleActionText ) # Measure Dihedral jigsDihedralActionText = "<u><b>Measure Dihedral Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Dihedral.png\"><br> "\ "A <b>Measure Dihedral Jig</b> functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral Jig, enter <b>Build</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value."\ "</p>"\ "<p>The Measure Dihedral Jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) # GAMESS Jig jigsGamessActionText = "<u><b>GAMESS Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Gamess.png\"><br> "\ "A <b>GAMESS Jig</b> is used to tag a set of atoms for running a GAMESS "\ "calculation. <b>Energy</b> and <b>Geometry Optimization</b> calculations are supported."\ "</p>"\ "<p>To create the GAMESS Jig, enter <b>Build</b> mode, "\ "select the atoms to tag and then select this jig. The GAMESS Jig is drawn as a "\ "set of magenta wireframe boxes around each atom."\ "</p>" win.jigsGamessAction.setWhatsThis(jigsGamessActionText ) # Grid Plane Jig jigsGridPlaneActionText = "<u><b>Grid Plane</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Reference Geometry/Grid_Plane.png\"><br> "\ "A <b>Grid Plane</b> jig is a rectanglar plane that can display a square or SiC grid "\ "within its boundary. It is often used as an aid in constructing large lattice "\ "structures made of silicon carbide (SiC). It is also used as a visual aid in estimating "\ "distances between atoms and/or other structures."\ "</p>"\ "<p>To create the Grid Plane jig, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. "\ "</p>"\ "<p>The Grid Plane jig is drawn as a rectanglar plane with a grid."\ "</p>" win.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText ) # # Help Toolbar # # What's This helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"ui/actions/Help/WhatsThis.png\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" win.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) win.helpMouseControlsAction.setWhatsThis('Displays help for mouse controls') win.helpKeyboardShortcutsAction.setWhatsThis('Displays help for keyboard shortcuts')
596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, 471, 21374, 263, 225, 632, 891, 5657, 30, 12901, 21, 1807, 2774, 5668, 733, 18, 632, 723, 225, 5657, 30, 587, 95, 38, 95, 53, 6376, 3829, 97, 32, 2505, 2207, 2434, 18, 88, 2693, 28012, 18, 832, 19, 24, 19, 85, 5254, 5668, 18, 2620, 26114, 225, 632, 7652, 30, 4276, 490, 11113, 4800, 315, 23801, 1807, 1220, 6, 977, 364, 3675, 4953, 10965, 16, 11234, 316, 279, 707, 2566, 527, 67, 3350, 2323, 67, 2211, 67, 955, 9334, 486, 316, 333, 585, 18, 3536, 225, 468, 468, 1387, 13288, 3215, 468, 225, 468, 3502, 1387, 585, 3678, 1528, 273, 3532, 89, 4438, 70, 34, 3678, 1387, 1757, 70, 4695, 89, 34, 565, 261, 12418, 397, 531, 13, 32, 2848, 34, 1548, 3532, 84, 4438, 6081, 1084, 5189, 4881, 19, 4905, 19, 812, 19, 3678, 18, 6446, 2412, 4438, 2848, 34, 1548, 315, 17778, 279, 394, 585, 1199, 64, 6823, 84, 2984, 225, 5657, 18, 768, 3678, 1803, 18, 542, 2888, 2323, 2503, 12, 585, 3678, 1528, 262, 468, 6164, 1387, 225, 585, 5010, 1528, 273, 3532, 89, 4438, 70, 34, 5010, 1387, 1757, 70, 4695, 89, 4438, 2848, 2984, 64, 315, 14214, 279, 585, 434, 1281, 19028, 1706, 585, 740, 3260, 635, 1548, 3532, 70, 34, 3678, 70, 873, 1757, 70, 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, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, 471, 21374, 263, 225, 632, 891, 5657, 30, 12901, 21, 1807, 2774, 5668, 733, 18, 632, 723, 225, 5657, 30, 587, 95, 38, 95, 53, 6376, 3829, 97, 32, 2505, 2207, 2434, 18, 88, 2693, 28012, 18, 832, 19, 24, 19, 85, 5254, 5668, 18, 2620, 26114, 225, 632, 7652, 30, 4276, 490, 11113, 4800, 315, 23801, 1807, 1220, 6, 977, 364, 3675, 4953, 10965, 16, 11234, 316, 279, 707, 2566, 527, 67, 3350, 2323, 67, 2211, 67, 955, 9334, 486, 316, 333, 585, 18, 2 ]
result.append((value[0],value[1])) else: raise TypeError, "Object type not recognized by result_insert"\ +" function." def get_length(obj1,obj2=None):
result.append((value[0], value[1])) else: raise TypeError("Object type not recognized by result_insert "\ +"function.") def get_length(obj1, obj2=None):
def result_insert(result,descr,value,map_so,axis="y",pap=0,xvals=None): """ This function takes value and puts it into the result in an appropriate fashion. The description is used for decision making. Parameters: ---------- -> result is a SOM, SO, list or tuple -> descr is the object descriptor -> value is a tuple containing information to be place in result directly or an object that will be placed into result -> map_so is a SO that has information that will be mapped to a SO if result is either a SOM or a SO -> axis (OPTIONAL) is the axis to grab the value from -> pap (OPTIONAL) is the primary axis position. This is used to pull the value from the correct primary axis position. -> xvals (OPTIONAL) is a list of x-axes that are not provided by either value or map_so Returns: ------- <- A SOM, SO, list or tuple with the provided information inserted """ if descr == None: result_type = get_type(result) else: result_type = descr if (result_type == SOM_type): if map_so != None: so = SOM.SO(map_so.dim()) if axis.lower() == "y": result_insert(so,None,value,map_so,axis,pap,xvals) result.append(so) elif axis.lower() == "x": result_insert(so,None,value,map_so,axis,pap,xvals) result.append(so) elif axis.lower() == "all": if map_so != None: result_insert(so,None,value,map_so,axis,pap,xvals) result.append(so) else: result.append(value) elif (result_type == SO_type): if axis.lower() == "y": result.y = value[0] result.var_y = value[1] result.id = map_so.id result.axis = map_so.axis elif axis.lower() == "x": result.id = map_so.id result.y = map_so.y result.var_y = map_so.var_y for i in range(map_so.dim()): if i == pap: result.axis[pap].val = value[0] if map_so.axis[pap].var != None: result.axis[pap].var = value[1] else: result.axis[i].val = map_so.axis[i].val if map_so.axis[i].var != None: result.axis[i].var = map_so.axis[i].var elif axis.lower() == "all": if map_so != None: result.id = map_so.id result.y = value[0] result.var_y = value[1] axis_number = 0 for i in range(len(xvals)): if i % 2 == 0: result.axis[axis_number].val = xvals[i] else: # Assumes x data given as (x1, x2, x3, ...) if map_so.axis[axis_number].var == None: axis_number += 1 result.axis[axis_number].val = xvals[i] axis_number += 1 # Assumes x data given as (x1, ex1, x2, ex2, ...) else: result.axis[axis_number].var = xvals[i] axis_number += 1 else: result.id = value.id result.y = value.y result.var_y = value.var_y result.axis = value.axis elif (result_type == num_type): result.append(value[0]) result.append(value[1]) # Note: the following call does not do what is expected. The result # object returns from this function as a list and not as the expected # tuple. The way to correct this is to return the result object # directly. This will result in a major feature change for many # functions, so it should go into the ITC2 release. result = tuple(result) elif (result_type == list_type): if axis.lower() == "all": result.append(tuple(value)) else: result.append((value[0],value[1])) else: raise TypeError, "Object type not recognized by result_insert"\ +" function."
1a7152ef8214e57cb269e9232349874b9d88a4cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/1a7152ef8214e57cb269e9232349874b9d88a4cc/hlr_data_helper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 563, 67, 6387, 12, 2088, 16, 28313, 16, 1132, 16, 1458, 67, 2048, 16, 4890, 1546, 93, 3113, 84, 438, 33, 20, 16, 92, 4524, 33, 7036, 4672, 3536, 1220, 445, 5530, 460, 471, 8200, 518, 1368, 326, 563, 316, 392, 5505, 30957, 18, 1021, 2477, 353, 1399, 364, 14604, 10480, 18, 225, 7012, 30, 12181, 317, 563, 353, 279, 348, 1872, 16, 7460, 16, 666, 578, 3193, 317, 18426, 353, 326, 733, 4950, 317, 460, 353, 279, 3193, 4191, 1779, 358, 506, 3166, 316, 563, 5122, 578, 392, 733, 716, 903, 506, 15235, 1368, 563, 317, 852, 67, 2048, 353, 279, 7460, 716, 711, 1779, 716, 903, 506, 5525, 358, 279, 7460, 309, 563, 353, 3344, 279, 348, 1872, 578, 279, 7460, 317, 2654, 261, 14165, 13, 353, 326, 2654, 358, 11086, 326, 460, 628, 317, 293, 438, 261, 14165, 13, 353, 326, 3354, 2654, 1754, 18, 1220, 353, 1399, 358, 6892, 326, 460, 628, 326, 3434, 3354, 2654, 1754, 18, 317, 619, 4524, 261, 14165, 13, 353, 279, 666, 434, 619, 17, 10855, 716, 854, 486, 2112, 635, 3344, 460, 578, 852, 67, 2048, 225, 2860, 30, 18365, 3290, 432, 348, 1872, 16, 7460, 16, 666, 578, 3193, 598, 326, 2112, 1779, 9564, 3536, 225, 309, 18426, 422, 599, 30, 563, 67, 723, 273, 336, 67, 723, 12, 2088, 13, 469, 30, 563, 67, 723, 273, 18426, 225, 309, 261, 2088, 67, 723, 422, 348, 1872, 67, 723, 4672, 309, 852, 67, 2048, 480, 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, 563, 67, 6387, 12, 2088, 16, 28313, 16, 1132, 16, 1458, 67, 2048, 16, 4890, 1546, 93, 3113, 84, 438, 33, 20, 16, 92, 4524, 33, 7036, 4672, 3536, 1220, 445, 5530, 460, 471, 8200, 518, 1368, 326, 563, 316, 392, 5505, 30957, 18, 1021, 2477, 353, 1399, 364, 14604, 10480, 18, 225, 7012, 30, 12181, 317, 563, 353, 279, 348, 1872, 16, 7460, 16, 666, 578, 3193, 317, 18426, 353, 326, 733, 4950, 317, 460, 353, 279, 3193, 4191, 1779, 358, 506, 3166, 316, 563, 5122, 578, 392, 733, 716, 903, 506, 15235, 1368, 563, 317, 852, 67, 2048, 353, 279, 7460, 716, 711, 1779, 716, 903, 506, 5525, 358, 279, 7460, 309, 563, 353, 3344, 279, 2 ]
except Exception:
except Exception, e: log.debug(u"Error determining title for %s: %s", url, unicode(e))
def _get_title(self, url): "Gets the title of a page" try: headers = {'User-Agent': 'Mozilla/5.0'} etree = get_html_parse_tree(url, None, headers, 'etree') title = etree.findtext('head/title') return title except Exception: return url
e845ec7ffbf7c24d924abf7c4fee9d7a39f73304 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/e845ec7ffbf7c24d924abf7c4fee9d7a39f73304/url.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2649, 12, 2890, 16, 880, 4672, 315, 3002, 326, 2077, 434, 279, 1363, 6, 775, 30, 1607, 273, 13666, 1299, 17, 3630, 4278, 296, 49, 11142, 10745, 19, 25, 18, 20, 11, 97, 12031, 273, 336, 67, 2620, 67, 2670, 67, 3413, 12, 718, 16, 599, 16, 1607, 16, 296, 31303, 6134, 2077, 273, 12031, 18, 4720, 955, 2668, 1978, 19, 2649, 6134, 327, 2077, 1335, 1185, 16, 425, 30, 613, 18, 4148, 12, 89, 6, 668, 23789, 2077, 364, 738, 87, 30, 738, 87, 3113, 880, 16, 5252, 12, 73, 3719, 327, 880, 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,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 389, 588, 67, 2649, 12, 2890, 16, 880, 4672, 315, 3002, 326, 2077, 434, 279, 1363, 6, 775, 30, 1607, 273, 13666, 1299, 17, 3630, 4278, 296, 49, 11142, 10745, 19, 25, 18, 20, 11, 97, 12031, 273, 336, 67, 2620, 67, 2670, 67, 3413, 12, 718, 16, 599, 16, 1607, 16, 296, 31303, 6134, 2077, 273, 12031, 18, 4720, 955, 2668, 1978, 19, 2649, 6134, 327, 2077, 1335, 1185, 16, 425, 30, 613, 18, 4148, 12, 89, 6, 668, 23789, 2077, 364, 738, 87, 30, 738, 87, 3113, 880, 16, 5252, 12, 73, 3719, 327, 880, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"builder class for generic x86 (486+)"
"builder class for generic x86 (386+)"
def __init__(self,myspec): builder.generic.__init__(self,myspec) self.settings["mainarch"]="x86" self.settings["CHROOT"]="chroot"
2102ee19a45c8b67c976993619f5aed52420e6ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/2102ee19a45c8b67c976993619f5aed52420e6ff/x86.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 81, 1900, 705, 4672, 2089, 18, 13540, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 5254, 991, 11929, 1546, 92, 5292, 6, 365, 18, 4272, 9614, 1792, 9185, 11929, 1546, 343, 3085, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 81, 1900, 705, 4672, 2089, 18, 13540, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 5254, 991, 11929, 1546, 92, 5292, 6, 365, 18, 4272, 9614, 1792, 9185, 11929, 1546, 343, 3085, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (l > i and interfaces[i].providedBy(args[i])) or type(args[i]) is interfaces[-1]:
if (l > i and interfaces[i].providedBy(args[i])) or interfaces[-1].providedBy(args[i]):
def check_args(self, *args, **kw): for i in range(len(args)): if (l > i and interfaces[i].providedBy(args[i])) or type(args[i]) is interfaces[-1]: continue raise TypeError, 'got %s, expecting %s' %(args[i], types[i]) func(self, *args, **kw)
69b68c36e369199e91b5a26596a3534dd3e7ad6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/69b68c36e369199e91b5a26596a3534dd3e7ad6e/WSresource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1968, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 364, 277, 316, 1048, 12, 1897, 12, 1968, 3719, 30, 309, 261, 80, 405, 277, 471, 7349, 63, 77, 8009, 29206, 858, 12, 1968, 63, 77, 22643, 578, 7349, 18919, 21, 8009, 29206, 858, 12, 1968, 63, 77, 65, 4672, 1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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1968, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 4672, 364, 277, 316, 1048, 12, 1897, 12, 1968, 3719, 30, 309, 261, 80, 405, 277, 471, 7349, 63, 77, 8009, 29206, 858, 12, 1968, 63, 77, 22643, 578, 7349, 18919, 21, 8009, 29206, 858, 12, 1968, 63, 77, 65, 4672, 1324, 1002, 3580, 16, 296, 13212, 738, 87, 16, 17012, 738, 87, 11, 8975, 1968, 63, 77, 6487, 1953, 63, 77, 5717, 1326, 12, 2890, 16, 380, 1968, 16, 2826, 9987, 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 ]
first = num[0] if num else denum[0] one = N.asarray(first).dtype.type(1)
if out_type is None: first = num[0] if num else denum[0] one = N.asarray(first).dtype.type(1) else: one = N.asarray(1, dtype=out_type.dtype)
def mul_calculate(num, denum, aslist=False): if not num and not denum: # Smallest 1 possible. return [] if aslist else N.int8(1) # Make sure we do not accidently upcast data types. first = num[0] if num else denum[0] one = N.asarray(first).dtype.type(1) v = reduce(N.multiply, num, one) / reduce(N.multiply, denum, one) if aslist: if N.all(v == 1): return [] else: return [v] return v
c378c6284b9f6eecf736beb8e9e9eae62deea536 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/c378c6284b9f6eecf736beb8e9e9eae62deea536/opt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14064, 67, 11162, 12, 2107, 16, 5545, 379, 16, 487, 1098, 33, 8381, 4672, 309, 486, 818, 471, 486, 5545, 379, 30, 468, 9425, 454, 395, 404, 3323, 18, 327, 5378, 309, 487, 1098, 469, 423, 18, 474, 28, 12, 21, 13, 468, 4344, 3071, 732, 741, 486, 25961, 715, 731, 4155, 501, 1953, 18, 309, 596, 67, 723, 353, 599, 30, 225, 1122, 273, 818, 63, 20, 65, 309, 818, 469, 5545, 379, 63, 20, 65, 1245, 273, 423, 18, 345, 1126, 12, 3645, 2934, 8972, 18, 723, 12, 21, 13, 469, 30, 1245, 273, 423, 18, 345, 1126, 12, 21, 16, 3182, 33, 659, 67, 723, 18, 8972, 13, 331, 273, 5459, 12, 50, 18, 7027, 1283, 16, 818, 16, 1245, 13, 342, 5459, 12, 50, 18, 7027, 1283, 16, 5545, 379, 16, 1245, 13, 309, 487, 1098, 30, 309, 423, 18, 454, 12, 90, 422, 404, 4672, 327, 5378, 469, 30, 327, 306, 90, 65, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14064, 67, 11162, 12, 2107, 16, 5545, 379, 16, 487, 1098, 33, 8381, 4672, 309, 486, 818, 471, 486, 5545, 379, 30, 468, 9425, 454, 395, 404, 3323, 18, 327, 5378, 309, 487, 1098, 469, 423, 18, 474, 28, 12, 21, 13, 468, 4344, 3071, 732, 741, 486, 25961, 715, 731, 4155, 501, 1953, 18, 309, 596, 67, 723, 353, 599, 30, 225, 1122, 273, 818, 63, 20, 65, 309, 818, 469, 5545, 379, 63, 20, 65, 1245, 273, 423, 18, 345, 1126, 12, 3645, 2934, 8972, 18, 723, 12, 21, 13, 469, 30, 1245, 273, 423, 18, 345, 1126, 12, 21, 16, 3182, 33, 659, 67, 723, 18, 8972, 13, 331, 273, 5459, 12, 50, 18, 7027, 2 ]
if wikipedia.Page(wikipedia.getSite(), u"Template:Db-r1").exists():
if wikipedia.Page(wikipedia.getSite(), u"Template:Db-r1").exists():
def fix_double_redirects(self): mysite = wikipedia.getSite() for redir_name in self.generator.retrieve_double_redirects(): redir = wikipedia.Page(mysite, redir_name) # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % redir.title()) newRedir = redir redirList = [] # bookkeeping to detect loops while True: redirList.append(u'%s:%s' % (newRedir.site().lang, newRedir.sectionFreeTitle())) try: targetPage = newRedir.getRedirectTarget() except wikipedia.IsNotRedirectPage: if len(redirList) == 1: wikipedia.output(u'Skipping: Page %s is not a redirect.' % redir.aslink()) break #do nothing elif len(redirList) == 2: wikipedia.output( u'Skipping: Redirect target %s is not a redirect.' % redir.aslink()) break # do nothing except wikipedia.SectionError: wikipedia.output( u'Warning: Redirect target section %s doesn\'t exist.' % newRedir.aslink()) except wikipedia.BadTitle, e: # str(e) is in the format 'BadTitle: [[Foo]]' wikipedia.output( u'Warning: Redirect target %s is not a valid page title.' % str(e)[10:]) except wikipedia.NoPage: if len(redirList) == 1: wikipedia.output(u'Skipping: Page %s does not exist.' % redir.aslink()) break else: wikipedia.output( u"Warning: Redirect target %s doesn't exist." % newRedir.aslink()) else: wikipedia.output( u' Links to: %s.' % targetPage.aslink()) if targetPage.site() != mysite: wikipedia.output( u'Warning: redirect target (%s) is on a different site.' % (targetPage.aslink())) if self.always: break # skip if automatic # watch out for redirect loops if redirList.count(u'%s:%s' % (targetPage.site().lang, targetPage.sectionFreeTitle()) ) > 0: wikipedia.output( u'Warning: Redirect target %s forms a redirect loop.' % targetPage.aslink())
c21389ed05da2b0b84a5956d09694d05ba8580ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/c21389ed05da2b0b84a5956d09694d05ba8580ce/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 9056, 67, 22715, 12, 2890, 4672, 312, 1900, 1137, 273, 21137, 18, 588, 4956, 1435, 364, 283, 1214, 67, 529, 316, 365, 18, 8812, 18, 17466, 67, 9056, 67, 22715, 13332, 283, 1214, 273, 21137, 18, 1964, 12, 81, 1900, 1137, 16, 283, 1214, 67, 529, 13, 468, 9674, 326, 2077, 434, 326, 1363, 732, 4565, 5960, 603, 18, 468, 31386, 326, 2077, 316, 5405, 1802, 18, 21137, 18, 2844, 12, 89, 12691, 82, 64, 82, 23012, 521, 4630, 95, 5099, 12688, 1802, 97, 9, 87, 64, 4630, 95, 1886, 97, 14360, 6, 738, 283, 1214, 18, 2649, 10756, 394, 3715, 481, 273, 283, 1214, 283, 1214, 682, 273, 5378, 225, 468, 6978, 10102, 310, 358, 5966, 14075, 1323, 1053, 30, 283, 1214, 682, 18, 6923, 12, 89, 11, 9, 87, 5319, 87, 11, 738, 261, 2704, 3715, 481, 18, 4256, 7675, 4936, 16, 394, 3715, 481, 18, 3464, 9194, 4247, 1435, 3719, 775, 30, 1018, 1964, 273, 394, 3715, 481, 18, 588, 5961, 2326, 1435, 1335, 21137, 18, 28041, 5961, 1964, 30, 309, 562, 12, 1118, 481, 682, 13, 422, 404, 30, 21137, 18, 2844, 12, 89, 11, 16877, 30, 3460, 738, 87, 353, 486, 279, 3136, 1093, 738, 283, 1214, 18, 345, 1232, 10756, 898, 225, 468, 2896, 5083, 1327, 562, 12, 1118, 481, 682, 13, 422, 576, 30, 21137, 18, 2844, 12, 582, 11, 16877, 30, 9942, 1018, 738, 87, 353, 486, 279, 3136, 1093, 738, 283, 1214, 18, 345, 1232, 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, 2917, 67, 9056, 67, 22715, 12, 2890, 4672, 312, 1900, 1137, 273, 21137, 18, 588, 4956, 1435, 364, 283, 1214, 67, 529, 316, 365, 18, 8812, 18, 17466, 67, 9056, 67, 22715, 13332, 283, 1214, 273, 21137, 18, 1964, 12, 81, 1900, 1137, 16, 283, 1214, 67, 529, 13, 468, 9674, 326, 2077, 434, 326, 1363, 732, 4565, 5960, 603, 18, 468, 31386, 326, 2077, 316, 5405, 1802, 18, 21137, 18, 2844, 12, 89, 12691, 82, 64, 82, 23012, 521, 4630, 95, 5099, 12688, 1802, 97, 9, 87, 64, 4630, 95, 1886, 97, 14360, 6, 738, 283, 1214, 18, 2649, 10756, 394, 3715, 481, 273, 283, 1214, 283, 1214, 682, 273, 5378, 225, 468, 6978, 10102, 310, 358, 2 ]
self._current_body = None elif event.type == MOUSEMOTION and event.buttons[0]:
self._current_body = bodylist[0] elif event.type == MOUSEBUTTONUP: if event.button == 1:
def handleToolEvent(self,event): #look for default events, and if none are handled then try the custom events if not super(GrabTool,self).handleEvents(event): # we handle two types of "grab" depending on simulation running or not if event.type == MOUSEBUTTONDOWN: if event.button == 1: # grab the first object at the mouse pointer bodylist = self.game.world.get_bodies_at_pos(event.pos, include_static=False) if bodylist and len(bodylist) > 0: if self.game.world.run_physics: self.game.world.add.mouseJoint(bodylist[0], event.pos) else: self._current_body = bodylist[0] elif event.type == MOUSEBUTTONUP: # let it go if event.button == 1: if self.game.world.run_physics: self.game.world.add.remove_mouseJoint() else: self._current_body = None elif event.type == MOUSEMOTION and event.buttons[0]: # move it around if self.game.world.run_physics: # use box2D mouse motion self.game.world.mouse_move(event.pos) else: # position directly (if we have a current body) if self._current_body is not None: x, y = self.game.world.to_world(event.pos) x /= self.game.world.ppm y /= self.game.world.ppm self._current_body.position = (x, y)
9167e5a85dc90b86f593eab2860735e79955c88d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7607/9167e5a85dc90b86f593eab2860735e79955c88d/tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 6364, 1133, 12, 2890, 16, 2575, 4672, 468, 7330, 364, 805, 2641, 16, 471, 309, 6555, 854, 7681, 1508, 775, 326, 1679, 2641, 309, 486, 2240, 12, 14571, 70, 6364, 16, 2890, 2934, 4110, 3783, 12, 2575, 4672, 468, 732, 1640, 2795, 1953, 434, 315, 2752, 70, 6, 8353, 603, 14754, 3549, 578, 486, 309, 871, 18, 723, 422, 16070, 8001, 20068, 12711, 30, 309, 871, 18, 5391, 422, 404, 30, 468, 11086, 326, 1122, 733, 622, 326, 7644, 4407, 1417, 1098, 273, 365, 18, 13957, 18, 18179, 18, 588, 67, 70, 18134, 67, 270, 67, 917, 12, 2575, 18, 917, 16, 2341, 67, 3845, 33, 8381, 13, 309, 1417, 1098, 471, 562, 12, 3432, 1098, 13, 405, 374, 30, 309, 365, 18, 13957, 18, 18179, 18, 2681, 67, 844, 1900, 2102, 30, 365, 18, 13957, 18, 18179, 18, 1289, 18, 11697, 21574, 12, 3432, 1098, 63, 20, 6487, 871, 18, 917, 13, 469, 30, 365, 6315, 2972, 67, 3432, 273, 1417, 1098, 63, 20, 65, 1327, 871, 18, 723, 422, 16070, 8001, 20068, 3079, 30, 468, 2231, 518, 1960, 309, 871, 18, 5391, 422, 404, 30, 309, 365, 18, 13957, 18, 18179, 18, 2681, 67, 844, 1900, 2102, 30, 365, 18, 13957, 18, 18179, 18, 1289, 18, 4479, 67, 11697, 21574, 1435, 469, 30, 365, 6315, 2972, 67, 3432, 273, 599, 1327, 871, 18, 723, 422, 16070, 8001, 49, 1974, 1146, 471, 871, 18, 16016, 63, 20, 14542, 468, 3635, 518, 6740, 309, 365, 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, 1640, 6364, 1133, 12, 2890, 16, 2575, 4672, 468, 7330, 364, 805, 2641, 16, 471, 309, 6555, 854, 7681, 1508, 775, 326, 1679, 2641, 309, 486, 2240, 12, 14571, 70, 6364, 16, 2890, 2934, 4110, 3783, 12, 2575, 4672, 468, 732, 1640, 2795, 1953, 434, 315, 2752, 70, 6, 8353, 603, 14754, 3549, 578, 486, 309, 871, 18, 723, 422, 16070, 8001, 20068, 12711, 30, 309, 871, 18, 5391, 422, 404, 30, 468, 11086, 326, 1122, 733, 622, 326, 7644, 4407, 1417, 1098, 273, 365, 18, 13957, 18, 18179, 18, 588, 67, 70, 18134, 67, 270, 67, 917, 12, 2575, 18, 917, 16, 2341, 67, 3845, 33, 8381, 13, 309, 1417, 1098, 471, 562, 12, 3432, 1098, 13, 2 ]
lines = string.split(lines,'\r')
if lines: lines = string.split(lines[0],'\r')
def parseAFMFile(afmFileName): """Quick and dirty - gives back a top-level dictionary with top-level items, and a 'widths' key containing a dictionary of glyph names and widths. Just enough needed for embedding. A better parser would accept options for what data you wwanted, and preserve the order.""" lines = open_and_readlines(afmFileName, 'r') if len(lines)<=1: #likely to be a MAC file lines = string.split(lines,'\r') if len(lines)<=1: raise ValueError, 'AFM file %s hasn\'t enough data' % afmFileName topLevel = {} glyphLevel = [] lines = map(string.strip, lines) #pass 1 - get the widths inMetrics = 0 # os 'TOP', or 'CHARMETRICS' for line in lines: if line[0:16] == 'StartCharMetrics': inMetrics = 1 elif line[0:14] == 'EndCharMetrics': inMetrics = 0 elif inMetrics: chunks = string.split(line, ';') chunks = map(string.strip, chunks) cidChunk, widthChunk, nameChunk = chunks[0:3] # character ID l, r = string.split(cidChunk) assert l == 'C', 'bad line in font file %s' % line cid = string.atoi(r) # width l, r = string.split(widthChunk) assert l == 'WX', 'bad line in font file %s' % line width = string.atoi(r) # name l, r = string.split(nameChunk) assert l == 'N', 'bad line in font file %s' % line name = r glyphLevel.append((cid, width, name)) # pass 2 font info inHeader = 0 for line in lines: if line[0:16] == 'StartFontMetrics': inHeader = 1 if line[0:16] == 'StartCharMetrics': inHeader = 0 elif inHeader: if line[0:7] == 'Comment': pass try: left, right = string.split(line,' ',1) except: raise ValueError, "Header information error in afm %s: line='%s'" % (afmFileName, line) try: right = string.atoi(right) except: pass topLevel[left] = right return (topLevel, glyphLevel)
187c4b97bd91a954a724165d1563ca5d7ebcf81f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/187c4b97bd91a954a724165d1563ca5d7ebcf81f/pdfmetrics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 6799, 49, 812, 12, 1727, 81, 4771, 4672, 3536, 13663, 471, 9603, 300, 14758, 1473, 279, 1760, 17, 2815, 3880, 598, 1760, 17, 2815, 1516, 16, 471, 279, 296, 17043, 11, 498, 4191, 279, 3880, 434, 9440, 1257, 471, 15801, 18, 225, 12526, 7304, 3577, 364, 15853, 18, 225, 432, 7844, 2082, 4102, 2791, 702, 364, 4121, 501, 1846, 341, 25861, 16, 471, 9420, 326, 1353, 12123, 225, 2362, 273, 1696, 67, 464, 67, 896, 3548, 12, 1727, 81, 4771, 16, 296, 86, 6134, 309, 562, 12, 3548, 13, 32, 33, 21, 30, 468, 24178, 358, 506, 279, 14246, 585, 309, 2362, 30, 2362, 273, 533, 18, 4939, 12, 3548, 63, 20, 6487, 8314, 86, 6134, 309, 562, 12, 3548, 13, 32, 33, 21, 30, 1002, 2068, 16, 296, 6799, 49, 585, 738, 87, 13342, 3730, 88, 7304, 501, 11, 738, 10073, 81, 4771, 21289, 273, 2618, 9440, 2355, 273, 5378, 225, 2362, 273, 852, 12, 1080, 18, 6406, 16, 2362, 13, 468, 5466, 404, 300, 336, 326, 15801, 316, 5653, 273, 374, 225, 468, 1140, 296, 10462, 2187, 578, 296, 7305, 23081, 4596, 11, 364, 980, 316, 2362, 30, 309, 980, 63, 20, 30, 2313, 65, 422, 296, 1685, 2156, 5653, 4278, 316, 5653, 273, 404, 1327, 980, 63, 20, 30, 3461, 65, 422, 296, 1638, 2156, 5653, 4278, 316, 5653, 273, 374, 1327, 316, 5653, 30, 6055, 273, 533, 18, 4939, 12, 1369, 16, 7554, 13, 6055, 273, 852, 12, 1080, 18, 6406, 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, 6799, 49, 812, 12, 1727, 81, 4771, 4672, 3536, 13663, 471, 9603, 300, 14758, 1473, 279, 1760, 17, 2815, 3880, 598, 1760, 17, 2815, 1516, 16, 471, 279, 296, 17043, 11, 498, 4191, 279, 3880, 434, 9440, 1257, 471, 15801, 18, 225, 12526, 7304, 3577, 364, 15853, 18, 225, 432, 7844, 2082, 4102, 2791, 702, 364, 4121, 501, 1846, 341, 25861, 16, 471, 9420, 326, 1353, 12123, 225, 2362, 273, 1696, 67, 464, 67, 896, 3548, 12, 1727, 81, 4771, 16, 296, 86, 6134, 309, 562, 12, 3548, 13, 32, 33, 21, 30, 468, 24178, 358, 506, 279, 14246, 585, 309, 2362, 30, 2362, 273, 533, 18, 4939, 12, 3548, 63, 20, 6487, 8314, 86, 6134, 309, 2 ]
dict = {}
r=[]
def parse_qs(qs, keep_blank_values=0, strict_parsing=0): """Parse a query given as a string argument. Arguments: qs: URL-encoded query string to be parsed keep_blank_values: flag indicating whether blank values in URL encoded queries should be treated as blank strings. A true value inicates that blanks should be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included. strict_parsing: flag indicating what to do with parsing errors. If false (the default), errors are silently ignored. If true, errors raise a ValueError exception. """ name_value_pairs = string.splitfields(qs, '&') dict = {} for name_value in name_value_pairs: nv = string.splitfields(name_value, '=') if len(nv) != 2: if strict_parsing: raise ValueError, "bad query field: %s" % `name_value` continue name = urllib.unquote(string.replace(nv[0], '+', ' ')) value = urllib.unquote(string.replace(nv[1], '+', ' ')) if len(value) or keep_blank_values: if dict.has_key (name): dict[name].append(value) else: dict[name] = [value] return dict
206977e1f914ee36b2d87d56d426fbc08b93f0ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/206977e1f914ee36b2d87d56d426fbc08b93f0ad/cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 12926, 12, 12926, 16, 3455, 67, 12111, 67, 2372, 33, 20, 16, 5490, 67, 24979, 33, 20, 4672, 3536, 3201, 279, 843, 864, 487, 279, 533, 1237, 18, 225, 13599, 30, 225, 8719, 30, 1976, 17, 10787, 843, 533, 358, 506, 2707, 225, 3455, 67, 12111, 67, 2372, 30, 2982, 11193, 2856, 7052, 924, 316, 1976, 3749, 6218, 1410, 506, 13974, 487, 7052, 2064, 18, 432, 638, 460, 316, 8242, 716, 7052, 87, 1410, 506, 25227, 487, 7052, 2064, 18, 225, 1021, 805, 629, 460, 8527, 716, 7052, 924, 854, 358, 506, 5455, 471, 13974, 487, 309, 2898, 4591, 486, 5849, 18, 225, 5490, 67, 24979, 30, 2982, 11193, 4121, 358, 741, 598, 5811, 1334, 18, 971, 629, 261, 5787, 805, 3631, 1334, 854, 22274, 5455, 18, 971, 638, 16, 1334, 1002, 279, 2068, 1520, 18, 3536, 508, 67, 1132, 67, 11545, 273, 533, 18, 4939, 2821, 12, 12926, 16, 5183, 6134, 436, 33, 8526, 364, 508, 67, 1132, 316, 508, 67, 1132, 67, 11545, 30, 8779, 273, 533, 18, 4939, 2821, 12, 529, 67, 1132, 16, 5214, 13, 309, 562, 12, 16588, 13, 480, 576, 30, 309, 5490, 67, 24979, 30, 1002, 2068, 16, 315, 8759, 843, 652, 30, 738, 87, 6, 738, 1375, 529, 67, 1132, 68, 1324, 508, 273, 11527, 18, 318, 6889, 12, 1080, 18, 2079, 12, 16588, 63, 20, 6487, 15126, 2187, 296, 296, 3719, 460, 273, 11527, 18, 318, 6889, 12, 1080, 18, 2079, 12, 16588, 63, 21, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 12926, 12, 12926, 16, 3455, 67, 12111, 67, 2372, 33, 20, 16, 5490, 67, 24979, 33, 20, 4672, 3536, 3201, 279, 843, 864, 487, 279, 533, 1237, 18, 225, 13599, 30, 225, 8719, 30, 1976, 17, 10787, 843, 533, 358, 506, 2707, 225, 3455, 67, 12111, 67, 2372, 30, 2982, 11193, 2856, 7052, 924, 316, 1976, 3749, 6218, 1410, 506, 13974, 487, 7052, 2064, 18, 432, 638, 460, 316, 8242, 716, 7052, 87, 1410, 506, 25227, 487, 7052, 2064, 18, 225, 1021, 805, 629, 460, 8527, 716, 7052, 924, 854, 358, 506, 5455, 471, 13974, 487, 309, 2898, 4591, 486, 5849, 18, 225, 5490, 67, 24979, 30, 2982, 11193, 4121, 358, 741, 598, 5811, 1334, 18, 2 ]
print "High Level Event:", self.printevent(event)
if DEBUG: print "High Level Event:", self.printevent(event)
def do_kHighLevelEvent(self, event): (what, message, when, where, modifiers) = event print "High Level Event:", self.printevent(event) try: AEProcessAppleEvent(event) except: print "AEProcessAppleEvent error:" traceback.print_exc()
7a58336511b8c405e01bcda0b886b19c2947189a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7a58336511b8c405e01bcda0b886b19c2947189a/FrameWork.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 79, 8573, 2355, 1133, 12, 2890, 16, 871, 4672, 261, 23770, 16, 883, 16, 1347, 16, 1625, 16, 10429, 13, 273, 871, 309, 6369, 30, 1172, 315, 8573, 4557, 2587, 2773, 16, 365, 18, 1188, 2575, 12, 2575, 13, 775, 30, 432, 41, 2227, 1294, 1802, 1133, 12, 2575, 13, 1335, 30, 1172, 315, 16985, 2227, 1294, 1802, 1133, 555, 2773, 10820, 18, 1188, 67, 10075, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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273, 871, 309, 6369, 30, 1172, 315, 8573, 4557, 2587, 2773, 16, 365, 18, 1188, 2575, 12, 2575, 13, 775, 30, 432, 41, 2227, 1294, 1802, 1133, 12, 2575, 13, 1335, 30, 1172, 315, 16985, 2227, 1294, 1802, 1133, 555, 2773, 10820, 18, 1188, 67, 10075, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def rmatvec(self, other, conjugate=True): return _cs_matrix._rmatvec(self, other, self.shape[1], self.shape[0], cscmux, conjugate=conjugate)
def rmatvec(self, other, conjugate=True): return _cs_matrix._rmatvec(self, other, self.shape[1], self.shape[0], cscmux, conjugate=conjugate)
63436f1eaac6f7f7255d56a7f00c1c8c502822ea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/63436f1eaac6f7f7255d56a7f00c1c8c502822ea/sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6692, 270, 8799, 12, 2890, 16, 1308, 16, 10550, 31529, 33, 5510, 4672, 327, 389, 2143, 67, 5667, 6315, 86, 7373, 8799, 12, 2890, 16, 1308, 16, 365, 18, 4867, 63, 21, 6487, 365, 18, 4867, 63, 20, 6487, 276, 1017, 81, 2616, 16, 10550, 31529, 33, 591, 78, 31529, 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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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, 6692, 270, 8799, 12, 2890, 16, 1308, 16, 10550, 31529, 33, 5510, 4672, 327, 389, 2143, 67, 5667, 6315, 86, 7373, 8799, 12, 2890, 16, 1308, 16, 365, 18, 4867, 63, 21, 6487, 365, 18, 4867, 63, 20, 6487, 276, 1017, 81, 2616, 16, 10550, 31529, 33, 591, 78, 31529, 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 ]
debug("extract_cookies: %s", response.info())
_debug("extract_cookies: %s", response.info())
def extract_cookies(self, response, request): """Extract cookies from response, where allowable given the request.""" debug("extract_cookies: %s", response.info()) self._cookies_lock.acquire() self._policy._now = self._now = int(time.time())
7fde00696ae6c872310a407df8b8923ab907f247 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7fde00696ae6c872310a407df8b8923ab907f247/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 16240, 12, 2890, 16, 766, 16, 590, 4672, 3536, 4976, 7237, 628, 766, 16, 1625, 30727, 864, 326, 590, 12123, 389, 4148, 2932, 8004, 67, 16240, 30, 738, 87, 3113, 766, 18, 1376, 10756, 365, 6315, 16240, 67, 739, 18, 1077, 1039, 1435, 365, 6315, 5086, 6315, 3338, 273, 365, 6315, 3338, 273, 509, 12, 957, 18, 957, 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, 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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, 2608, 67, 16240, 12, 2890, 16, 766, 16, 590, 4672, 3536, 4976, 7237, 628, 766, 16, 1625, 30727, 864, 326, 590, 12123, 389, 4148, 2932, 8004, 67, 16240, 30, 738, 87, 3113, 766, 18, 1376, 10756, 365, 6315, 16240, 67, 739, 18, 1077, 1039, 1435, 365, 6315, 5086, 6315, 3338, 273, 365, 6315, 3338, 273, 509, 12, 957, 18, 957, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def set_address_criteria(self, cr, uid, id, context={}): query_obj = self.browse(cr, uid, id).query_criteria_ids
def set_address_criteria(self, cr, uid, ids, context={}): if isinstance(ids, (int, long)): ids = [ids] segment_obj = self.browse(cr, uid, ids) query_obj = segment_obj[0].query_criteria_ids
def set_address_criteria(self, cr, uid, id, context={}): query_obj = self.browse(cr, uid, id).query_criteria_ids rpa_where = [] so_where = [] for q_obj in query_obj: value = getattr(q_obj, 'value_'+q_obj.field_type) where = '' print "q_obj.field_id.model_id", q_obj.field_id.model_id tn = ''.join(map(lambda x: x[0], q_obj.field_id.model_id.model.split('.'))) if q_obj.field_type == 'boolean': where = "%s.%s %s %s"% (tn, q_obj.field_id.name, q_obj.operator.code, value) elif q_obj.field_type == 'date': where = "%s.%s %s '%s'"% (tn, q_obj.field_id.name, q_obj.operator.code, value) elif q_obj.field_type == 'char': where = "%s.%s %s '%s'"% (tn, q_obj.field_id.name, q_obj.operator.code,'%'+value+'%') elif q_obj.field_type == 'integer': where = "%s.%s %s %f"% (tn, q_obj.field_id.name, q_obj.operator.code, value) if where and q_obj.field_id.model_id.model == 'res.partner.address': rpa_where.append(where) elif where and q_obj.field_id.model_id.model == 'sale.order': so_where.append(where) if so_where: rpa_where.append('partner_id in (select partner_id from sale_order \ where %s )'%' and '.join(so_where)) if rpa_where: sql_query = """select distinct rpa.id\n from res_partner_address rpa\ \n where %s"""% (' and '.join(rpa_where)) else: sql_query = """ select distinct rpa.name \nfrom res_partner_address rpa """ return sql_query
5ae7d1bd9b11ddff10e3d042def67609fc9879de /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/5ae7d1bd9b11ddff10e3d042def67609fc9879de/dm_extract_sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2867, 67, 9714, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 309, 1549, 12, 2232, 16, 261, 474, 16, 1525, 3719, 30, 3258, 273, 306, 2232, 65, 3267, 67, 2603, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 13, 843, 67, 2603, 273, 3267, 67, 2603, 63, 20, 8009, 2271, 67, 9714, 67, 2232, 8715, 69, 67, 6051, 273, 5378, 1427, 67, 6051, 273, 5378, 364, 1043, 67, 2603, 316, 843, 67, 2603, 30, 460, 273, 3869, 12, 85, 67, 2603, 16, 296, 1132, 4623, 15, 85, 67, 2603, 18, 1518, 67, 723, 13, 1625, 273, 875, 1172, 315, 85, 67, 2603, 18, 1518, 67, 350, 18, 2284, 67, 350, 3113, 1043, 67, 2603, 18, 1518, 67, 350, 18, 2284, 67, 350, 16002, 273, 875, 18, 5701, 12, 1458, 12, 14661, 619, 30, 619, 63, 20, 6487, 1043, 67, 2603, 18, 1518, 67, 350, 18, 2284, 67, 350, 18, 2284, 18, 4939, 2668, 1093, 20349, 309, 1043, 67, 2603, 18, 1518, 67, 723, 422, 296, 6494, 4278, 1625, 273, 2213, 87, 7866, 87, 738, 87, 738, 87, 28385, 261, 5088, 16, 1043, 67, 2603, 18, 1518, 67, 350, 18, 529, 16, 1043, 67, 2603, 18, 9497, 18, 710, 16, 460, 13, 1327, 1043, 67, 2603, 18, 1518, 67, 723, 422, 296, 712, 4278, 1625, 273, 2213, 87, 7866, 87, 738, 87, 1995, 87, 4970, 9, 261, 5088, 16, 1043, 67, 2603, 18, 1518, 67, 350, 18, 529, 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, 444, 67, 2867, 67, 9714, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 309, 1549, 12, 2232, 16, 261, 474, 16, 1525, 3719, 30, 3258, 273, 306, 2232, 65, 3267, 67, 2603, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 13, 843, 67, 2603, 273, 3267, 67, 2603, 63, 20, 8009, 2271, 67, 9714, 67, 2232, 8715, 69, 67, 6051, 273, 5378, 1427, 67, 6051, 273, 5378, 364, 1043, 67, 2603, 316, 843, 67, 2603, 30, 460, 273, 3869, 12, 85, 67, 2603, 16, 296, 1132, 4623, 15, 85, 67, 2603, 18, 1518, 67, 723, 13, 1625, 273, 875, 1172, 315, 85, 67, 2603, 18, 1518, 67, 350, 18, 2284, 67, 350, 2 ]
try: return power_series_ring.PowerSeriesRing(Zmod(other))(self) except TypeError: raise ZeroDivisionError raise NotImplementedError, "Mod on power series ring not defined."
return power_series_ring.PowerSeriesRing(IntegerModRing(other), self.variable())(self) raise NotImplementedError, "Mod on power series ring elements not defined except modulo an integer."
def __mod__(self, other): if isinstance(other,(int,Integer,long)): try: return power_series_ring.PowerSeriesRing(Zmod(other))(self) except TypeError: raise ZeroDivisionError raise NotImplementedError, "Mod on power series ring not defined."
2b9cbf610045b23e81c82fdc056213534115455f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/2b9cbf610045b23e81c82fdc056213534115455f/power_series_ring_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1711, 972, 12, 2890, 16, 1308, 4672, 309, 1549, 12, 3011, 16, 12, 474, 16, 4522, 16, 5748, 3719, 30, 327, 7212, 67, 10222, 67, 8022, 18, 13788, 6485, 10369, 12, 4522, 1739, 10369, 12,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1711, 972, 12, 2890, 16, 1308, 4672, 309, 1549, 12, 3011, 16, 12, 474, 16, 4522, 16, 5748, 3719, 30, 327, 7212, 67, 10222, 67, 8022, 18, 13788, 6485, 10369, 12, 4522, 1739, 10369, 12, 3011, 3631, 365, 18, 6105, 10756, 12, 2890, 13, 1002, 11206, 16, 315, 1739, 603, 7212, 4166, 9221, 2186, 486, 2553, 1335, 26109, 392, 3571, 1199, 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 ]
print e.value()
print e
def makeResultSet(resultSet): results = [Result(d.name, value, d.units) for value, d in zip(resultSet, test.getResultDescs())] return ResultSet(resultName, results)
162ce3f85eda0fdd436b8b6ebcdfc806bf7b5fb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2798/162ce3f85eda0fdd436b8b6ebcdfc806bf7b5fb8/glscry.py
[ 1, 8585, 326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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 13198, 12, 2088, 694, 4672, 1686, 273, 306, 1253, 12, 72, 18, 529, 16, 460, 16, 302, 18, 7705, 13, 364, 460, 16, 302, 316, 3144, 12, 2088, 694, 16, 1842, 18, 588, 1253, 4217, 87, 10756, 65, 327, 10842, 12, 2088, 461, 16, 1686, 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 ]
anchor=NSEW (or subset) - position anchor according to given direction
anchor=NSEW (or subset) - position anchor according to given direction
def place_configure(self, cnf={}, **kw): """Place a widget in the parent widget. Use as options: in=master - master relative to which the widget is placed. x=amount - locate anchor of this widget at position x of master y=amount - locate anchor of this widget at position y of master relx=amount - locate anchor of this widget between 0.0 and 1.0 relative to width of master (1.0 is right edge) rely=amount - locate anchor of this widget between 0.0 and 1.0 relative to height of master (1.0 is bottom edge) anchor=NSEW (or subset) - position anchor according to given direction width=amount - width of this widget in pixel height=amount - height of this widget in pixel relwidth=amount - width of this widget between 0.0 and 1.0 relative to width of master (1.0 is the same width as the master) relheight=amount - height of this widget between 0.0 and 1.0 relative to height of master (1.0 is the same height as the master) bordermode="inside" or "outside" - whether to take border width of master widget into account """ for k in ['in_']: if kw.has_key(k): kw[k[:-1]] = kw[k] del kw[k] self.tk.call( ('place', 'configure', self._w) + self._options(cnf, kw))
069bdf28db168b026afad890b8cba94a181b3155 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/069bdf28db168b026afad890b8cba94a181b3155/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 67, 14895, 12, 2890, 16, 23118, 28793, 2826, 9987, 4672, 3536, 6029, 279, 3604, 316, 326, 982, 3604, 18, 2672, 487, 702, 30, 316, 33, 7525, 300, 4171, 3632, 358, 1492, 326, 3604, 353, 15235, 18, 619, 33, 8949, 300, 10627, 6984, 434, 333, 3604, 622, 1754, 619, 434, 4171, 677, 33, 8949, 300, 10627, 6984, 434, 333, 3604, 622, 1754, 677, 434, 4171, 1279, 92, 33, 8949, 300, 10627, 6984, 434, 333, 3604, 3086, 374, 18, 20, 471, 404, 18, 20, 3632, 358, 1835, 434, 4171, 261, 21, 18, 20, 353, 2145, 3591, 13, 21187, 33, 8949, 300, 10627, 6984, 434, 333, 3604, 3086, 374, 18, 20, 471, 404, 18, 20, 3632, 358, 2072, 434, 4171, 261, 21, 18, 20, 353, 5469, 3591, 13, 6984, 33, 50, 1090, 59, 261, 280, 7931, 13, 300, 1754, 6984, 4888, 358, 864, 4068, 1835, 33, 8949, 300, 1835, 434, 333, 3604, 316, 4957, 2072, 33, 8949, 300, 2072, 434, 333, 3604, 316, 4957, 1279, 2819, 33, 8949, 300, 1835, 434, 333, 3604, 3086, 374, 18, 20, 471, 404, 18, 20, 3632, 358, 1835, 434, 4171, 261, 21, 18, 20, 353, 326, 1967, 1835, 487, 326, 4171, 13, 1279, 4210, 33, 8949, 300, 2072, 434, 333, 3604, 3086, 374, 18, 20, 471, 404, 18, 20, 3632, 358, 2072, 434, 4171, 261, 21, 18, 20, 353, 326, 1967, 2072, 487, 326, 4171, 13, 5795, 3188, 1546, 28091, 6, 578, 315, 659, 5564, 6, 300, 2856, 358, 4862, 5795, 1835, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 67, 14895, 12, 2890, 16, 23118, 28793, 2826, 9987, 4672, 3536, 6029, 279, 3604, 316, 326, 982, 3604, 18, 2672, 487, 702, 30, 316, 33, 7525, 300, 4171, 3632, 358, 1492, 326, 3604, 353, 15235, 18, 619, 33, 8949, 300, 10627, 6984, 434, 333, 3604, 622, 1754, 619, 434, 4171, 677, 33, 8949, 300, 10627, 6984, 434, 333, 3604, 622, 1754, 677, 434, 4171, 1279, 92, 33, 8949, 300, 10627, 6984, 434, 333, 3604, 3086, 374, 18, 20, 471, 404, 18, 20, 3632, 358, 1835, 434, 4171, 261, 21, 18, 20, 353, 2145, 3591, 13, 21187, 33, 8949, 300, 10627, 6984, 434, 333, 3604, 3086, 374, 18, 20, 471, 404, 18, 20, 3632, 358, 2072, 434, 4171, 2 ]
if obj.writable():
if is_w:
def poll(timeout=0.0, map=None): if map is None: map = socket_map if map: r = []; w = []; e = [] for fd, obj in map.items(): e.append(fd) if obj.readable(): r.append(fd) if obj.writable(): w.append(fd) if [] == r == w == e: time.sleep(timeout) else: try: r, w, e = select.select(r, w, e, timeout) except select.error, err: if err[0] != EINTR: raise else: return for fd in r: obj = map.get(fd) if obj is None: continue read(obj) for fd in w: obj = map.get(fd) if obj is None: continue write(obj) for fd in e: obj = map.get(fd) if obj is None: continue _exception(obj)
b72dfd021786314c06962be0ab872dc5d8117bd0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b72dfd021786314c06962be0ab872dc5d8117bd0/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 12, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 309, 852, 353, 599, 30, 852, 273, 2987, 67, 1458, 309, 852, 30, 436, 273, 5378, 31, 341, 273, 5378, 31, 425, 273, 5378, 364, 5194, 16, 1081, 316, 852, 18, 3319, 13332, 425, 18, 6923, 12, 8313, 13, 309, 1081, 18, 11018, 13332, 436, 18, 6923, 12, 8313, 13, 309, 353, 67, 91, 30, 341, 18, 6923, 12, 8313, 13, 309, 5378, 422, 436, 422, 341, 422, 425, 30, 813, 18, 19607, 12, 4538, 13, 469, 30, 775, 30, 436, 16, 341, 16, 425, 273, 2027, 18, 4025, 12, 86, 16, 341, 16, 425, 16, 2021, 13, 1335, 2027, 18, 1636, 16, 393, 30, 309, 393, 63, 20, 65, 480, 512, 3217, 54, 30, 1002, 469, 30, 327, 225, 364, 5194, 316, 436, 30, 1081, 273, 852, 18, 588, 12, 8313, 13, 309, 1081, 353, 599, 30, 1324, 855, 12, 2603, 13, 225, 364, 5194, 316, 341, 30, 1081, 273, 852, 18, 588, 12, 8313, 13, 309, 1081, 353, 599, 30, 1324, 1045, 12, 2603, 13, 225, 364, 5194, 316, 425, 30, 1081, 273, 852, 18, 588, 12, 8313, 13, 309, 1081, 353, 599, 30, 1324, 389, 4064, 12, 2603, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 12, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 309, 852, 353, 599, 30, 852, 273, 2987, 67, 1458, 309, 852, 30, 436, 273, 5378, 31, 341, 273, 5378, 31, 425, 273, 5378, 364, 5194, 16, 1081, 316, 852, 18, 3319, 13332, 425, 18, 6923, 12, 8313, 13, 309, 1081, 18, 11018, 13332, 436, 18, 6923, 12, 8313, 13, 309, 353, 67, 91, 30, 341, 18, 6923, 12, 8313, 13, 309, 5378, 422, 436, 422, 341, 422, 425, 30, 813, 18, 19607, 12, 4538, 13, 469, 30, 775, 30, 436, 16, 341, 16, 425, 273, 2027, 18, 4025, 12, 86, 16, 341, 16, 425, 16, 2021, 13, 1335, 2027, 18, 1636, 16, 393, 30, 309, 2 ]
def getbyname(self, name, multiple_choises=0):
def getbyname(self, name, multiple_choises=False):
def getbyname(self, name, multiple_choises=0): """ Get a plugin by it's name """ if self.names.has_key(name): return self.names[name] if multiple_choises: return [] return None
bcd8fb866f8ce8aca49182be7d7b66361121f572 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/bcd8fb866f8ce8aca49182be7d7b66361121f572/plugin_loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1637, 529, 12, 2890, 16, 508, 16, 3229, 67, 2599, 6141, 33, 8381, 4672, 3536, 968, 279, 1909, 635, 518, 1807, 508, 3536, 309, 365, 18, 1973, 18, 5332, 67, 856, 12, 529, 4672, 327, 365, 18, 1973, 63, 529, 65, 309, 3229, 67, 2599, 6141, 30, 327, 5378, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1637, 529, 12, 2890, 16, 508, 16, 3229, 67, 2599, 6141, 33, 8381, 4672, 3536, 968, 279, 1909, 635, 518, 1807, 508, 3536, 309, 365, 18, 1973, 18, 5332, 67, 856, 12, 529, 4672, 327, 365, 18, 1973, 63, 529, 65, 309, 3229, 67, 2599, 6141, 30, 327, 5378, 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 ]
self.add_msg('\nPlease notify the developers of this problem (this will transmit '
self.add_msg('\nIf the messages displayed above indicate a missing dependency (e.g. no C compiler ' "or a library that isn't available through Zero Install) then install it using your " 'normal package manager and click on Build again. Note that for libraries you often ' 'need the -dev version of the package. ' '\nOtherwise, please notify the developers of this problem (this will transmit '
def build_failed(): self.add_msg('\nPlease notify the developers of this problem (this will transmit ' 'the contents of the build/build-failure.log file):') end = self.buffer.get_end_iter() anchor = self.buffer.create_child_anchor(end) align = gtk.Alignment(0.0, 0.0, 1.0, 1.0) button = ButtonMixed(gtk.STOCK_YES, 'Notify developers') align.add(button) align.set_padding(8, 8, 8, 8) align.show_all() self.tv.add_child_at_anchor(align, anchor) self.add_msg('\n') def report_bug(button): def done_notify(): self.add_msg("\nReport sent. Thank you! (note: you won't get a reply, as " "no contact details were sent; write to the project's mailing " "list if you want to discuss the problem)") self.run_command((sys.executable, main_path, 'report-bug'), done_notify) button.connect('clicked', report_bug)
1c8b3fd5cd328eedb80e77dba4d2e51eaf265d8f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11549/1c8b3fd5cd328eedb80e77dba4d2e51eaf265d8f/gui_support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 7307, 13332, 365, 18, 1289, 67, 3576, 2668, 64, 82, 2047, 326, 2743, 10453, 5721, 10768, 279, 3315, 4904, 261, 73, 18, 75, 18, 1158, 385, 5274, 296, 315, 280, 279, 5313, 716, 5177, 1404, 2319, 3059, 12744, 10284, 13, 1508, 3799, 518, 1450, 3433, 315, 296, 6130, 2181, 3301, 471, 4682, 603, 3998, 3382, 18, 3609, 716, 364, 14732, 1846, 16337, 296, 296, 14891, 326, 300, 5206, 1177, 434, 326, 2181, 18, 296, 2337, 82, 8290, 2460, 16, 9582, 5066, 326, 21701, 434, 333, 6199, 261, 2211, 903, 23323, 296, 296, 5787, 2939, 434, 326, 1361, 19, 3510, 17, 12251, 18, 1330, 585, 13, 2497, 13, 679, 273, 365, 18, 4106, 18, 588, 67, 409, 67, 2165, 1435, 6984, 273, 365, 18, 4106, 18, 2640, 67, 3624, 67, 16215, 12, 409, 13, 5689, 273, 22718, 18, 11535, 12, 20, 18, 20, 16, 374, 18, 20, 16, 404, 18, 20, 16, 404, 18, 20, 13, 3568, 273, 12569, 19846, 12, 4521, 79, 18, 31487, 3507, 67, 29081, 16, 296, 9168, 21701, 6134, 5689, 18, 1289, 12, 5391, 13, 5689, 18, 542, 67, 9598, 12, 28, 16, 1725, 16, 1725, 16, 1725, 13, 5689, 18, 4500, 67, 454, 1435, 365, 18, 24161, 18, 1289, 67, 3624, 67, 270, 67, 16215, 12, 7989, 16, 6984, 13, 365, 18, 1289, 67, 3576, 2668, 64, 82, 6134, 1652, 2605, 67, 925, 12, 5391, 4672, 1652, 2731, 67, 12336, 13332, 365, 18, 1289, 67, 3576, 31458, 82, 4820, 3271, 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, 1361, 67, 7307, 13332, 365, 18, 1289, 67, 3576, 2668, 64, 82, 2047, 326, 2743, 10453, 5721, 10768, 279, 3315, 4904, 261, 73, 18, 75, 18, 1158, 385, 5274, 296, 315, 280, 279, 5313, 716, 5177, 1404, 2319, 3059, 12744, 10284, 13, 1508, 3799, 518, 1450, 3433, 315, 296, 6130, 2181, 3301, 471, 4682, 603, 3998, 3382, 18, 3609, 716, 364, 14732, 1846, 16337, 296, 296, 14891, 326, 300, 5206, 1177, 434, 326, 2181, 18, 296, 2337, 82, 8290, 2460, 16, 9582, 5066, 326, 21701, 434, 333, 6199, 261, 2211, 903, 23323, 296, 296, 5787, 2939, 434, 326, 1361, 19, 3510, 17, 12251, 18, 1330, 585, 13, 2497, 13, 679, 273, 365, 18, 4106, 18, 588, 67, 409, 2 ]
return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m))))
return eval(maxima.eval("jacobi_sn(%s,%s)"%(float(x),float(m))))
def jacobi(sym,x,m): r""" Here sym = "pq", where p,q in {c,d,n,s}. This returns the value of the Jacobi function pq(x,m), as described in the documentation for SAGE's "special" module. There are a total of 12 functions described by this. EXAMPLES: sage: jacobi("sn",1,1) 0.76159415595576485 sage: jacobi("cd",1,1/2) 0.72400972165937116 sage: jacobi("cn",1,1/2);jacobi("dn",1,1/2);jacobi("cn",1,1/2)/jacobi("dn",1,1/2) 0.59597656767214113 0.82316100163159622 0.72400972165937116 sage: jsn = lambda x: jacobi("sn",x,1) sage: P= plot(jsn,0,1) Now to view this, just type show(P). """ #R = x.parent() #y = R.gen() if sym=="dc": return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m)))) if sym=="nc": return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m)))) if sym=="sc": return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m)))) if sym=="cd": return eval(maxima.eval("jacobi_cd(%s,%s)"%(RR(x),RR(m)))) if sym=="nd": return eval(maxima.eval("jacobi_nd(%s,%s)"%(RR(x),RR(m)))) if sym=="sd": return eval(maxima.eval("jacobi_sd(%s,%s)"%(RR(x),RR(m)))) if sym=="cn": return eval(maxima.eval("jacobi_cn(%s,%s)"%(RR(x),RR(m)))) if sym=="dn": return eval(maxima.eval("jacobi_dn(%s,%s)"%(RR(x),RR(m)))) if sym=="sn": return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m)))) if sym=="cs": return eval(maxima.eval("jacobi_cs(%s,%s)"%(RR(x),RR(m)))) if sym=="ds": return eval(maxima.eval("jacobi_ds(%s,%s)"%(RR(x),RR(m)))) if sym=="ns": return eval(maxima.eval("jacobi_ns(%s,%s)"%(RR(x),RR(m)))) return 1
58182f025c83380408aaf42e8d8809df714f6650 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/58182f025c83380408aaf42e8d8809df714f6650/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20138, 30875, 12, 8117, 16, 92, 16, 81, 4672, 436, 8395, 13743, 5382, 273, 315, 84, 85, 3113, 1625, 293, 16, 85, 316, 288, 71, 16, 72, 16, 82, 16, 87, 5496, 1220, 1135, 326, 460, 434, 326, 804, 1077, 30875, 445, 14619, 12, 92, 16, 81, 3631, 487, 11893, 316, 326, 7323, 364, 348, 2833, 1807, 315, 9371, 6, 1605, 18, 6149, 854, 279, 2078, 434, 2593, 4186, 11893, 635, 333, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 20138, 30875, 2932, 8134, 3113, 21, 16, 21, 13, 374, 18, 6669, 24872, 9803, 2539, 29, 2539, 27, 1105, 7140, 272, 410, 30, 20138, 30875, 2932, 4315, 3113, 21, 16, 21, 19, 22, 13, 374, 18, 27, 3247, 713, 29, 9060, 2313, 6162, 6418, 20562, 272, 410, 30, 20138, 30875, 2932, 10305, 3113, 21, 16, 21, 19, 22, 1769, 31390, 30875, 2932, 5176, 3113, 21, 16, 21, 19, 22, 1769, 31390, 30875, 2932, 10305, 3113, 21, 16, 21, 19, 22, 13176, 31390, 30875, 2932, 5176, 3113, 21, 16, 21, 19, 22, 13, 374, 18, 6162, 6162, 6669, 4313, 6669, 9060, 3461, 23379, 374, 18, 28, 4366, 2313, 6625, 30886, 3600, 10525, 3787, 374, 18, 27, 3247, 713, 29, 9060, 2313, 6162, 6418, 20562, 272, 410, 30, 3828, 82, 273, 3195, 619, 30, 20138, 30875, 2932, 8134, 3113, 92, 16, 21, 13, 272, 410, 30, 453, 33, 3207, 12, 2924, 82, 16, 20, 16, 21, 13, 225, 4494, 358, 1476, 333, 16, 2537, 618, 2405, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20138, 30875, 12, 8117, 16, 92, 16, 81, 4672, 436, 8395, 13743, 5382, 273, 315, 84, 85, 3113, 1625, 293, 16, 85, 316, 288, 71, 16, 72, 16, 82, 16, 87, 5496, 1220, 1135, 326, 460, 434, 326, 804, 1077, 30875, 445, 14619, 12, 92, 16, 81, 3631, 487, 11893, 316, 326, 7323, 364, 348, 2833, 1807, 315, 9371, 6, 1605, 18, 6149, 854, 279, 2078, 434, 2593, 4186, 11893, 635, 333, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 20138, 30875, 2932, 8134, 3113, 21, 16, 21, 13, 374, 18, 6669, 24872, 9803, 2539, 29, 2539, 27, 1105, 7140, 272, 410, 30, 20138, 30875, 2932, 4315, 3113, 21, 16, 21, 19, 22, 13, 374, 18, 27, 2 ]
title = urllib.unquote(unfutz_article_title(d[links.ARTICLE_LINK_PREFIX]))
title = unfutz_article_title(uu_decode(d[links.ARTICLE_LINK_PREFIX]))
def GET(self, d, extras): try: title = urllib.unquote(unfutz_article_title(d[links.ARTICLE_LINK_PREFIX])) revision = None try: revision = int(d[links.REVISIONS_SUFFIX]) if revision == 0: raise ValueError() except (KeyError, ValueError): raise control.BadRequestError() dbcon = get_dbcon() cur = dbcon.cursor() rows = None
c20910ec4f439658dea2e31f54612c49e9e584ea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8158/c20910ec4f439658dea2e31f54612c49e9e584ea/gliki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 16, 302, 16, 11875, 4672, 775, 30, 2077, 273, 640, 74, 322, 94, 67, 11480, 67, 2649, 12, 24286, 67, 3922, 12, 72, 63, 7135, 18, 4928, 2871, 900, 67, 10554, 67, 6307, 22643, 6350, 273, 599, 775, 30, 6350, 273, 509, 12, 72, 63, 7135, 18, 862, 25216, 55, 67, 14964, 5717, 309, 6350, 422, 374, 30, 1002, 2068, 1435, 1335, 261, 653, 668, 16, 2068, 4672, 1002, 3325, 18, 13403, 668, 1435, 1319, 591, 273, 336, 67, 1966, 591, 1435, 662, 273, 1319, 591, 18, 9216, 1435, 2595, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4978, 12, 2890, 16, 302, 16, 11875, 4672, 775, 30, 2077, 273, 640, 74, 322, 94, 67, 11480, 67, 2649, 12, 24286, 67, 3922, 12, 72, 63, 7135, 18, 4928, 2871, 900, 67, 10554, 67, 6307, 22643, 6350, 273, 599, 775, 30, 6350, 273, 509, 12, 72, 63, 7135, 18, 862, 25216, 55, 67, 14964, 5717, 309, 6350, 422, 374, 30, 1002, 2068, 1435, 1335, 261, 653, 668, 16, 2068, 4672, 1002, 3325, 18, 13403, 668, 1435, 1319, 591, 273, 336, 67, 1966, 591, 1435, 662, 273, 1319, 591, 18, 9216, 1435, 2595, 273, 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 ]
key = KEYBASE + '-'.join(key)
key = self.KEYBASE + '-'.join(key)
def getContentKey(self): """Create a unique string to identify the content for a cookie key, hopefully this will work in zope 2 and 3.""" key = getattr(self, '_key_cache', None) if key: return key key = [] if not hasattr(self.context, '__parent__'): subloc = None else: subloc = ISublocations(self.context.__parent__, alternative=None)
bfd1cc6a88046e3896cc63052bb79e35d9205767 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/bfd1cc6a88046e3896cc63052bb79e35d9205767/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5154, 653, 12, 2890, 4672, 3536, 1684, 279, 3089, 533, 358, 9786, 326, 913, 364, 279, 3878, 498, 16, 27370, 4095, 333, 903, 1440, 316, 998, 1306, 576, 471, 890, 12123, 498, 273, 3869, 12, 2890, 16, 2070, 856, 67, 2493, 2187, 599, 13, 309, 498, 30, 327, 498, 498, 273, 5378, 309, 486, 3859, 12, 2890, 18, 2472, 16, 4940, 2938, 7250, 4672, 720, 1829, 273, 599, 469, 30, 720, 1829, 273, 467, 1676, 12352, 12, 2890, 18, 2472, 16186, 2938, 972, 16, 10355, 33, 7036, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5154, 653, 12, 2890, 4672, 3536, 1684, 279, 3089, 533, 358, 9786, 326, 913, 364, 279, 3878, 498, 16, 27370, 4095, 333, 903, 1440, 316, 998, 1306, 576, 471, 890, 12123, 498, 273, 3869, 12, 2890, 16, 2070, 856, 67, 2493, 2187, 599, 13, 309, 498, 30, 327, 498, 498, 273, 5378, 309, 486, 3859, 12, 2890, 18, 2472, 16, 4940, 2938, 7250, 4672, 720, 1829, 273, 599, 469, 30, 720, 1829, 273, 467, 1676, 12352, 12, 2890, 18, 2472, 16186, 2938, 972, 16, 10355, 33, 7036, 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 ]
f(data)
try: f(data) except Exception, e: reqId = struct.unpack('!L', data[:4])[0] self._ebStatus(failure.Failure(e), reqId)
def dataReceived(self, data): self.buf += data while len(self.buf) > 5: length, kind = struct.unpack('!LB', self.buf[:5]) if len(self.buf) < 4 + length: return data, self.buf = self.buf[5:4+length], self.buf[4+length:] packetType = self.packetTypes.get(kind, None) if not packetType: print 'no packet type for', kind continue f = getattr(self, 'packet_%s' % packetType, None) if not f: print 'not implemented', packetType reqId = struct.unpack('!L', data[:4])[0] self._sendStatus(reqId, FX_OP_UNSUPPORTED, "don't understand %s" % packetType) #XXX not implemented continue f(data)
1791e9978562ff3700d3947b8ea8c78efd467fa8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1791e9978562ff3700d3947b8ea8c78efd467fa8/filetransfer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 8872, 12, 2890, 16, 501, 4672, 365, 18, 4385, 1011, 501, 1323, 562, 12, 2890, 18, 4385, 13, 405, 1381, 30, 769, 16, 3846, 273, 1958, 18, 17309, 2668, 5, 12995, 2187, 365, 18, 4385, 10531, 25, 5717, 309, 562, 12, 2890, 18, 4385, 13, 411, 1059, 397, 769, 30, 327, 501, 16, 365, 18, 4385, 273, 365, 18, 4385, 63, 25, 30, 24, 15, 2469, 6487, 365, 18, 4385, 63, 24, 15, 2469, 26894, 4414, 559, 273, 365, 18, 11482, 2016, 18, 588, 12, 9224, 16, 599, 13, 309, 486, 4414, 559, 30, 1172, 296, 2135, 4414, 618, 364, 2187, 3846, 1324, 284, 273, 3869, 12, 2890, 16, 296, 11482, 10185, 87, 11, 738, 4414, 559, 16, 599, 13, 309, 486, 284, 30, 1172, 296, 902, 8249, 2187, 4414, 559, 1111, 548, 273, 1958, 18, 17309, 2668, 5, 48, 2187, 501, 10531, 24, 5717, 63, 20, 65, 365, 6315, 4661, 1482, 12, 3658, 548, 16, 478, 60, 67, 3665, 67, 2124, 21134, 16, 315, 19752, 1404, 22413, 738, 87, 6, 738, 4414, 559, 13, 468, 15639, 486, 8249, 1324, 284, 12, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 8872, 12, 2890, 16, 501, 4672, 365, 18, 4385, 1011, 501, 1323, 562, 12, 2890, 18, 4385, 13, 405, 1381, 30, 769, 16, 3846, 273, 1958, 18, 17309, 2668, 5, 12995, 2187, 365, 18, 4385, 10531, 25, 5717, 309, 562, 12, 2890, 18, 4385, 13, 411, 1059, 397, 769, 30, 327, 501, 16, 365, 18, 4385, 273, 365, 18, 4385, 63, 25, 30, 24, 15, 2469, 6487, 365, 18, 4385, 63, 24, 15, 2469, 26894, 4414, 559, 273, 365, 18, 11482, 2016, 18, 588, 12, 9224, 16, 599, 13, 309, 486, 4414, 559, 30, 1172, 296, 2135, 4414, 618, 364, 2187, 3846, 1324, 284, 273, 3869, 12, 2890, 16, 296, 11482, 10185, 87, 11, 738, 4414, 559, 2 ]
stx, sty, stp, gx, fx, gy, fy= self.update (stx, fxm, gxm, sty, fym, gym, stp, fm, gm, self.bracket, stmin, stmax) fx = fxm + stx * gtest fy = fym + sty * gtest gx = gxm + gtest gy = gym + gtest else: stx, sty, stp, gx, fx, gy, fy= self.update(stx, fx, gx, sty, fy, gy, stp, f, g, self.bracket, stmin, stmax)
stx, sty, stp, gx, fx, gy, fy= self.update(stx, fx, gx, sty, fy, gy, stp, f, g, stmin, stmax)
def step(self, stp, f, g, c1, c2, xtol, isave, dsave): if self.task[:5] == 'START':
1c02d760af7f75164dd6997d5c3ec377890b85f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/1c02d760af7f75164dd6997d5c3ec377890b85f1/linesearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 2890, 16, 384, 84, 16, 284, 16, 314, 16, 276, 21, 16, 276, 22, 16, 619, 3490, 16, 353, 836, 16, 3780, 836, 4672, 309, 365, 18, 4146, 10531, 25, 65, 422, 296, 7570, 4278, 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 ]
orientation = self.getOrientationFor(o)
imageInfos = self.getImageInfos(o) orientation = imageInfos[0] width = imageInfos[1] height = imageInfos[2] min, max = 70, 100 if orientation == 'portrait' : ratio = float(width)/float(height) if height > max : width = int(ratio *max) height = max if width > min : width = min height = int(min/ratio) else : ratio = float(height)/float(width) if width > max : height = int(ratio *max) width = max if height > min : height = min width = int(min/ratio)
def finderResults (self) : """ return results to select """ context = aq_inner(self.context) cat = self.catalog query = self.finderQuery() brains = cat(**query) results = [] for b in brains : r = {} r['uid'] = b.UID r['url'] = b.getURL() r['path'] = b.getPath r['title'] = b.pretty_title_or_id() r['description'] = b.Description r['state_class'] = 'state-%s' %b.review_state r['is_folderish'] = b.is_folderish or False r['size'] = b.getObjSize r['type'] = b.portal_type r['blacklisted'] = False if r['type'] in self.imagestypes : o = b.getObject() orientation = self.getOrientationFor(o) thumb = '%s/image_thumb' %r['url'] icon = '%s/image_listing' %r['url'] r['is_image'] = True r['preview_url'] = '%s/image?isImage=1' %r['url'] r['url'] = '%s/image' %r['url'] r['container_class'] = 'imageContainer' else : orientation = 'small' thumb = icon = b.getIcon r['is_image'] = False r['container_class'] = 'fileContainer' if self.typeview == 'image' : r['orientation_class'] = orientation r['thumb'] = thumb else : r['orientation_class'] = '%s_icon' %orientation r['thumb'] = icon
534114a306f814244a5d46f68fa18fc4178e2aec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9052/534114a306f814244a5d46f68fa18fc4178e2aec/finder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7532, 3447, 261, 2890, 13, 294, 3536, 327, 1686, 358, 2027, 3536, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 6573, 273, 365, 18, 7199, 843, 273, 365, 18, 15356, 1138, 1435, 16430, 2679, 273, 6573, 12, 636, 2271, 13, 1686, 273, 5378, 364, 324, 316, 16430, 2679, 294, 436, 273, 2618, 436, 3292, 1911, 3546, 273, 324, 18, 3060, 436, 3292, 718, 3546, 273, 324, 18, 588, 1785, 1435, 436, 3292, 803, 3546, 273, 324, 18, 588, 743, 436, 3292, 2649, 3546, 273, 324, 18, 19073, 67, 2649, 67, 280, 67, 350, 1435, 436, 3292, 3384, 3546, 273, 324, 18, 3291, 436, 3292, 2019, 67, 1106, 3546, 273, 296, 2019, 6456, 87, 11, 738, 70, 18, 16041, 67, 2019, 436, 3292, 291, 67, 5609, 1468, 3546, 273, 324, 18, 291, 67, 5609, 1468, 578, 1083, 436, 3292, 1467, 3546, 273, 324, 18, 588, 2675, 1225, 436, 3292, 723, 3546, 273, 324, 18, 24386, 67, 723, 436, 3292, 11223, 18647, 3546, 273, 1083, 309, 436, 3292, 723, 3546, 316, 365, 18, 15374, 395, 989, 294, 320, 273, 324, 18, 588, 921, 1435, 1316, 7655, 273, 365, 18, 588, 2040, 7655, 12, 83, 13, 9820, 273, 1316, 7655, 63, 20, 65, 1835, 273, 1316, 7655, 63, 21, 65, 2072, 273, 1316, 7655, 63, 22, 65, 1131, 16, 943, 273, 16647, 16, 2130, 309, 9820, 422, 296, 3831, 22513, 11, 294, 7169, 273, 1431, 12, 2819, 13176, 5659, 12, 4210, 13, 309, 2072, 405, 943, 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, 7532, 3447, 261, 2890, 13, 294, 3536, 327, 1686, 358, 2027, 3536, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 6573, 273, 365, 18, 7199, 843, 273, 365, 18, 15356, 1138, 1435, 16430, 2679, 273, 6573, 12, 636, 2271, 13, 1686, 273, 5378, 364, 324, 316, 16430, 2679, 294, 436, 273, 2618, 436, 3292, 1911, 3546, 273, 324, 18, 3060, 436, 3292, 718, 3546, 273, 324, 18, 588, 1785, 1435, 436, 3292, 803, 3546, 273, 324, 18, 588, 743, 436, 3292, 2649, 3546, 273, 324, 18, 19073, 67, 2649, 67, 280, 67, 350, 1435, 436, 3292, 3384, 3546, 273, 324, 18, 3291, 436, 3292, 2019, 67, 1106, 3546, 273, 296, 2019, 6456, 87, 11, 738, 2 ]
print classname, "warning", fn["name"], "parameter is overridden const but was not originally var"
print classname, "warning", fn["name"], "parameter is overridden 'const' but was not originally 'var'"
def func_cb(varname, fn): global classname global cclassconstructparams global c2pfuncparamoverride global pextratypes global c2pcallbackpointers global preturntransformers global poverridearraytypes global wrapperpointerprefix global wrapperprefix global pstringtype global interfaceprefix if fn["name"] in c2pfuncparamoverride: overridep = c2pfuncparamoverride[fn["name"]] else: overridep = None if varname == "poverrideornot": if fn["name"].endswith("_sink"): return "override;" elif fn["name"] == "gtk_object_destroy": return "virtual;" return "" if varname == "pclassifier": if isMemberFN(fn) or isInterfaceImplementationFN(fn): return "" else: if isInInterfaceMode(): return "//class" else: return "class" if varname == "preturntransformer": ret = func_cb("preturn", fn) if ret in preturntransformers: return preturntransformers[ret] if ret == "Single": return "" # workaround, fixme Lowlevel return ret if varname == "preturn": if fn["return"] == "gchar**": preturn = arrayTypeOf(pstringtype) else: preturn = c2ptype(fn["return"]) if preturn != None: if preturn.startswith("var "): preturn = preturn[4:] if isFNListReturnOverride(fn): preturn = getFNListReturnOverride(fn)["preturn"] # support ICloneable interface by modding the return type to ICloneable # function Clone: ICloneable; ## TODO parent supports ICloneable ? if fn["name"] == ("%s_copy" % uscclassname): assert(len(fn["args"]) == 1) rover = getFNListReturnOverride(fn) if rover != None and "kind" in rover and rover["kind"] == "interface": preturn = "ICloneable" else: print classname, "warning", fn["name"], "missing interface return override" return preturn if varname == "preturnerrorcode": if isFNListReturnOverride(fn): return getFNListReturnOverride(fn)["errorcode"] else: print classname, "warning", "no known error code for", fn["name"], "; Hint: use 'errorcode' return override" return "?" if varname == "preturnitemrawtype": if not isFNListReturnOverride(fn): print classname, "error", "no list return overide for", fn["name"], "(preturnitemrawtype)" arritemt = getFNListReturnOverride(fn)["arritemt"] if arritemt.startswith(interfaceprefix): nativetype = wrapperpointerprefix + arritemt[len(interfaceprefix):] elif arritemt == "TGtkAccelGroupEntry": # var ? nativetype = wrapperpointerprefix + arritemt[1:] # cough. #print "nativetype", nativetype elif arritemt == pstringtype: #"UTF8String": # or so try: nativetype = getFNListReturnOverride(fn)["arritemraw"] except: nativetype = "PChar" print classname, "warning, no nativetype for return value of function ", fn["name"], "assuming PChar" #"PChar" if nativetype == "?": print classname, "error", fn["name"], "have", nativetype, "for", arritemt else: print classname, "error, cannot find nativetype for ", arritemt, "for function", fn["name"] #print "native", nativetype return nativetype if varname == "wrapperexpectedtype": arritemt = getFNListReturnOverride(fn)["arritemt"] if arritemt.startswith(interfaceprefix): return wrapperpointerprefix + "GObject" # FIXME others if classname == "GtkAccelGroup" and arritemt == "TGtkAccelGroupEntry": #print arritemt #== "GtkAccelGroupEntry*" and #print "YES" return "gtkAccelGroupEntryFromPointer" #if classname == "GtkAccelGroup": # FIXME do that somewhere else (*fromcarray) # if arritemt.startswith(classprefix): # return wrapperpointerprefix + arritemt[len(classprefix):] return "" if varname == "preturnitemtype": if (c2pfnname(fn["name"]) == "Clone"): arritemt = interfaceprefix + "Cloneable" else: arritemt = getFNListReturnOverride(fn)["arritemt"] if isInterface(arritemt): needInterface(arritemt) needImplementationUnitForClass(implementationClassForInterface(arritemt)) return arritemt if varname == "preturnitemtypeas": res = func_cb("preturnitemtype", fn) if isInterface(res) or isImplementationClass(res): return " as %s" % res else: return "" if varname == "preturnlistfinalizer": return getFNListReturnOverride(fn)["pendfree"] if varname == "preturnperitempreaction": try: return getFNListReturnOverride(fn)["pforeach"] except: print classname, "error", fn["name"], "pforeach not found in config" raise return pforeach if varname == "pfreeforeachitem": return getFNListReturnOverride(fn)["pforeachfree"] if varname == "preturnitemclassname": return getFNListReturnOverride(fn)["pclassconstruct"] if varname == "pfunction": return c2pfnname(fn["name"]) if varname == "cfunction": return fn["name"] if varname == "pfunctionparams": a = [] args = fn["args"] invalidlist = getInvalidArgs(fn, args) ixo = 0 if isMemberFN(fn) or isInterfaceImplementationFN(fn): #if len(args) > 0 and args[0][0].lower() == classname.lower() + "*": args = args[1:] # skip instance param ixo = -1 if len(args) > 0 and args[-1][0] == "GError**": args = args[:-1] #print args[0][0] ix = 1-ixo for argtyp, argname in args: canvar = False fnover = getFNListParamOverride(fn, ix) adefault = getFNListParamDefault(fn, ix) ptypeover = None if fnover != None and len(fnover) > 0: c = fnover[0] try: t = fnover[1] it = c2ptype(t) #if isEnum(it): if it.startswith("T"): # FIXME! after conv it = it[1:] except: t = None it = None if c == "type": ptypeover = t if c == "varany": ptypeover = "var " if c == "forceinstring": # for "gchar*" instead of "const gchar*" bug (gtk_paint_shadow_gap) ptypeover = pstringtype if c == "pointer": #print "pointer", fn ptypeover = "Pointer" if c == "ccallback": # TODO pass if c == "userdata": ptypeover = "Pointer" # fixme argname = "userdata" if c == "tvarargs": ptypeover = "const TVarrecArray" argname = "avarargs" if c == "varargs": ptypeover = "array of const" argname = "avarargs" if c == "array": ptypeover = "T%sArray" % it if c == "carray": ptypeover = "T%sArray" % it if c == "varcarray": ptypeover = "var T%sArray" % it if c == "const": ptype = c2ptype(argtyp, False, canvar) if ptype.startswith("var "): ptypeover = "const " + ptype[4:] else: print classname, "warning", fn["name"], "parameter is overridden const but was not originally var" if c == "out": ptype = c2ptype(argtyp, False, canvar) if ptype.startswith("var "): ptypeover = "out " + ptype[4:] else: print classname, "warning", fn["name"], "parameter is overridden const but was not originally var" if ptypeover != None: ptype = ptypeover else: try: ptype = c2ptype(argtyp, False, canvar) except: print classname, "info: while doing", fn raise pname = argname if ptype == None: print classname, "info: while doing", fn # TODO var if ptype == "TGTypeArray": ptype = "ugtypes.TGTypeArray" # weird workaround #elif ptype == "TGIntArray": # pargtyp = "ugtype.TGIntArray", # weird workaround if ptype != None and ptype.startswith("var "): ptype = ptype[4:] if ptype == "": a.append("var %s" % pname) else: a.append("var %s: %s" % (pname, ptype)) elif ptype != None and ptype.startswith("const "): ptype = ptype[6:] a.append("const %s: %s" % (pname, ptype)) elif ptype != None and ptype.startswith("out "): ptype = ptype[4:] a.append("out %s: %s" % (pname, ptype)) else: a.append("%s: %s" % (pname, ptype)) if isDebug() and ptypeover != None: print "overridden", a if adefault != None: a[-1] = a[-1] + " = " + adefault ix = ix + 1 offs = - ixo for item in invalidlist: ix = item - offs try: a = a[:ix] + a[ix+1:] except: print "??!" pass offs = offs + 1 return ";".join(a) if varname == "cfunctioncallparams": a = getCfunctioncallparams(fn) # TODO @ return ",".join(a) print varname return None
18da3727386bfab1a4356cdae87ddce393e0db6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2589/18da3727386bfab1a4356cdae87ddce393e0db6e/tool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 67, 7358, 12, 1401, 529, 16, 2295, 4672, 2552, 7479, 2552, 15964, 10062, 2010, 2552, 276, 22, 84, 644, 891, 10601, 2552, 293, 14523, 13373, 2552, 276, 22, 84, 3394, 10437, 87, 2552, 675, 20922, 6547, 414, 2552, 8275, 1197, 1126, 2352, 2552, 4053, 10437, 3239, 2552, 4053, 3239, 2552, 293, 1080, 723, 2552, 1560, 3239, 309, 2295, 9614, 529, 11929, 316, 276, 22, 84, 644, 891, 10601, 30, 3849, 84, 273, 276, 22, 84, 644, 891, 10601, 63, 4293, 9614, 529, 11929, 65, 469, 30, 3849, 84, 273, 599, 225, 309, 15434, 422, 315, 1631, 1197, 280, 902, 6877, 309, 2295, 9614, 529, 6, 8009, 5839, 1918, 2932, 67, 17074, 6, 4672, 327, 315, 10601, 4868, 1327, 2295, 9614, 529, 11929, 422, 315, 4521, 79, 67, 1612, 67, 11662, 6877, 327, 315, 12384, 4868, 225, 327, 1408, 225, 309, 15434, 422, 315, 84, 1106, 1251, 6877, 309, 353, 4419, 19793, 12, 4293, 13, 578, 21456, 13621, 19793, 12, 4293, 4672, 327, 1408, 469, 30, 309, 8048, 1358, 2309, 13332, 327, 16177, 1106, 6, 469, 30, 327, 315, 1106, 6, 225, 309, 15434, 422, 315, 84, 2463, 21523, 6877, 325, 273, 1326, 67, 7358, 2932, 84, 2463, 3113, 2295, 13, 225, 309, 325, 316, 675, 20922, 6547, 414, 30, 327, 675, 20922, 6547, 414, 63, 1349, 65, 225, 309, 325, 422, 315, 5281, 6877, 327, 1408, 468, 18975, 16, 2917, 3501, 23629, 2815, 225, 327, 325, 225, 309, 15434, 422, 315, 84, 2463, 6877, 309, 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, 1326, 67, 7358, 12, 1401, 529, 16, 2295, 4672, 2552, 7479, 2552, 15964, 10062, 2010, 2552, 276, 22, 84, 644, 891, 10601, 2552, 293, 14523, 13373, 2552, 276, 22, 84, 3394, 10437, 87, 2552, 675, 20922, 6547, 414, 2552, 8275, 1197, 1126, 2352, 2552, 4053, 10437, 3239, 2552, 4053, 3239, 2552, 293, 1080, 723, 2552, 1560, 3239, 309, 2295, 9614, 529, 11929, 316, 276, 22, 84, 644, 891, 10601, 30, 3849, 84, 273, 276, 22, 84, 644, 891, 10601, 63, 4293, 9614, 529, 11929, 65, 469, 30, 3849, 84, 273, 599, 225, 309, 15434, 422, 315, 1631, 1197, 280, 902, 6877, 309, 2295, 9614, 529, 6, 8009, 5839, 1918, 2932, 67, 17074, 6, 4672, 327, 315, 10601, 4868, 2 ]
"Sanity check failed: Your certificate was not properly signed.")
"Certificate public and private keys do not match.")
def _setPrivateKey(self, privateKey): if not privateKey.matches(self.getPublicKey()): raise VerifyError( "Sanity check failed: Your certificate was not properly signed.") self.privateKey = privateKey return self
a4db3d8f643778f09b0cfd0bcf514061a1d0f572 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12595/a4db3d8f643778f09b0cfd0bcf514061a1d0f572/_sslverify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 10824, 12, 2890, 16, 11896, 4672, 309, 486, 11896, 18, 8436, 12, 2890, 18, 588, 9632, 1435, 4672, 1002, 8553, 668, 12, 315, 4719, 1071, 471, 3238, 1311, 741, 486, 845, 1199, 13, 365, 18, 1152, 653, 273, 11896, 327, 365, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 10824, 12, 2890, 16, 11896, 4672, 309, 486, 11896, 18, 8436, 12, 2890, 18, 588, 9632, 1435, 4672, 1002, 8553, 668, 12, 315, 4719, 1071, 471, 3238, 1311, 741, 486, 845, 1199, 13, 365, 18, 1152, 653, 273, 11896, 327, 365, 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 ]
self.current.freeze_child_notify()
def update_playlist(self): if self.conn: try: prev_songs = self.songs except: prev_songs = None self.songs = self.conn.do.playlistinfo() all_files_unchanged = self.playlist_files_unchanged(prev_songs) self.total_time = 0 if not all_files_unchanged: self.currentdata.clear() self.current.freeze_child_notify() self.current.set_model(None) for i in range(len(self.songs)): track = self.songs[i] item = self.parse_formatting(self.currentformat, track, True) # Check if the item is one of the user's streams; if so, # we want to display the stream name: for j in range(len(self.stream_uris)): if track.file == self.stream_uris[j]: item = escape_html(self.stream_names[j]) try: self.total_time = self.total_time + int(track.time) except: pass if all_files_unchanged: self.currentdata[i] = [int(track.id), item] else: self.currentdata.append([int(track.id), item]) if not all_files_unchanged: if self.status.state in ['play', 'pause']: currsong = int(self.songinfo.pos) self.currentdata[currsong][1] = make_bold(self.currentdata[currsong][1]) self.keep_song_visible_in_list() self.prev_boldrow = currsong self.current.set_model(self.currentdata) self.current.thaw_child_notify() self.update_statusbar() self.change_cursor(None)
27f1f2ad79f83b91d8810b1edb2b6dd839d8471c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/27f1f2ad79f83b91d8810b1edb2b6dd839d8471c/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1601, 1098, 12, 2890, 4672, 309, 365, 18, 4646, 30, 775, 30, 2807, 67, 816, 564, 273, 365, 18, 816, 564, 1335, 30, 2807, 67, 816, 564, 273, 599, 365, 18, 816, 564, 273, 365, 18, 4646, 18, 2896, 18, 1601, 1098, 1376, 1435, 777, 67, 2354, 67, 4384, 2330, 273, 365, 18, 1601, 1098, 67, 2354, 67, 4384, 2330, 12, 10001, 67, 816, 564, 13, 365, 18, 4963, 67, 957, 273, 374, 309, 486, 777, 67, 2354, 67, 4384, 2330, 30, 365, 18, 2972, 892, 18, 8507, 1435, 365, 18, 2972, 18, 542, 67, 2284, 12, 7036, 13, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 816, 564, 3719, 30, 3298, 273, 365, 18, 816, 564, 63, 77, 65, 761, 273, 365, 18, 2670, 67, 2139, 1787, 12, 2890, 18, 2972, 2139, 16, 3298, 16, 1053, 13, 468, 2073, 309, 326, 761, 353, 1245, 434, 326, 729, 1807, 8205, 31, 309, 1427, 16, 468, 732, 2545, 358, 2562, 326, 1407, 508, 30, 364, 525, 316, 1048, 12, 1897, 12, 2890, 18, 3256, 67, 23510, 3719, 30, 309, 3298, 18, 768, 422, 365, 18, 3256, 67, 23510, 63, 78, 14542, 761, 273, 4114, 67, 2620, 12, 2890, 18, 3256, 67, 1973, 63, 78, 5717, 775, 30, 365, 18, 4963, 67, 957, 273, 365, 18, 4963, 67, 957, 397, 509, 12, 4101, 18, 957, 13, 1335, 30, 1342, 309, 777, 67, 2354, 67, 4384, 2330, 30, 365, 18, 2972, 892, 63, 77, 65, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1601, 1098, 12, 2890, 4672, 309, 365, 18, 4646, 30, 775, 30, 2807, 67, 816, 564, 273, 365, 18, 816, 564, 1335, 30, 2807, 67, 816, 564, 273, 599, 365, 18, 816, 564, 273, 365, 18, 4646, 18, 2896, 18, 1601, 1098, 1376, 1435, 777, 67, 2354, 67, 4384, 2330, 273, 365, 18, 1601, 1098, 67, 2354, 67, 4384, 2330, 12, 10001, 67, 816, 564, 13, 365, 18, 4963, 67, 957, 273, 374, 309, 486, 777, 67, 2354, 67, 4384, 2330, 30, 365, 18, 2972, 892, 18, 8507, 1435, 365, 18, 2972, 18, 542, 67, 2284, 12, 7036, 13, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 816, 564, 3719, 30, 3298, 273, 365, 18, 2 ]
file = open(filename, 'rb') if (file == None): return None try: mdsum = hashlib.md5() except: return None while 1: data = file.read(1024) if not data: break mdsum.update(data) file.close() hexval = mdsum.hexdigest() if (self.debug >= 3): print "local hash returned: '" + hexval + "'" return hexval
file = open(filename, 'rb') if (file == None): return None try: mdsum = hashlib.md5() except: return None while 1: data = file.read(1024) if not data: break mdsum.update(data) file.close() hexval = mdsum.hexdigest() if (self.debug >= 3): print "local hash returned: '" + hexval + "'" return hexval
def getLocalHash(self, filename): file = open(filename, 'rb') if (file == None): return None
6d855d666bf8a81ed9b14d5d4659023ea46c184a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/6d855d666bf8a81ed9b14d5d4659023ea46c184a/devicemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6993, 2310, 12, 2890, 16, 1544, 4672, 585, 273, 1696, 12, 3459, 16, 296, 6731, 6134, 309, 261, 768, 422, 599, 4672, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6993, 2310, 12, 2890, 16, 1544, 4672, 585, 273, 1696, 12, 3459, 16, 296, 6731, 6134, 309, 261, 768, 422, 599, 4672, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: print is_bitrade(T1, T2)
sage: is_bitrade(T1, T2)
def beta3(rce, T1, T2): """ Find the unique (r, c, x) in T2 such that (r, c, e) is in T1. INPUT: rce -- tuple (or list) (r, c, e) in T1 T1, T2 -- latin bitrade OUTPUT: (r, c, x) in T2. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: T1 = back_circulant(5) sage: x = isotopism( (0,1,2,3,4) ) sage: y = isotopism(5) # identity sage: z = isotopism(5) # identity sage: T2 = T1.apply_isotopism(x, y, z) sage: print is_bitrade(T1, T2) True sage: print beta3([0, 0, 0], T1, T2) (0, 0, 4) """ r = rce[0] c = rce[1] e = rce[2] assert T1[r, c] == e assert e >= 0 # fixme this range could be iffy if we # work with latin bitrade rectangles... for x in range(T1.nrows()): if T2[r, c] == x: return (r, c, x) raise PairNotBitrade
9087d14f978c663baae98e9a365c4a3aa2a6f24c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9087d14f978c663baae98e9a365c4a3aa2a6f24c/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6796, 23, 12, 86, 311, 16, 399, 21, 16, 399, 22, 4672, 3536, 4163, 326, 3089, 261, 86, 16, 276, 16, 619, 13, 316, 399, 22, 4123, 716, 261, 86, 16, 276, 16, 425, 13, 353, 316, 399, 21, 18, 225, 12943, 30, 436, 311, 1493, 1377, 3193, 261, 280, 666, 13, 261, 86, 16, 276, 16, 425, 13, 316, 399, 21, 399, 21, 16, 399, 22, 1493, 282, 30486, 2831, 354, 323, 225, 11550, 30, 261, 86, 16, 276, 16, 619, 13, 316, 399, 22, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 628, 272, 410, 18, 832, 4757, 270, 18, 7373, 12660, 18, 26578, 1930, 380, 272, 410, 30, 399, 21, 273, 1473, 67, 11614, 1934, 970, 12, 25, 13, 272, 410, 30, 619, 273, 29677, 556, 6228, 12, 261, 20, 16, 21, 16, 22, 16, 23, 16, 24, 13, 262, 272, 410, 30, 677, 273, 29677, 556, 6228, 12, 25, 13, 468, 4215, 272, 410, 30, 998, 273, 29677, 556, 6228, 12, 25, 13, 468, 4215, 272, 410, 30, 399, 22, 273, 399, 21, 18, 9010, 67, 17693, 556, 6228, 12, 92, 16, 677, 16, 998, 13, 272, 410, 30, 353, 67, 3682, 354, 323, 12, 56, 21, 16, 399, 22, 13, 1053, 272, 410, 30, 1172, 6796, 23, 3816, 20, 16, 374, 16, 374, 6487, 399, 21, 16, 399, 22, 13, 261, 20, 16, 374, 16, 1059, 13, 3536, 225, 436, 273, 436, 311, 63, 20, 65, 276, 273, 436, 311, 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, 6796, 23, 12, 86, 311, 16, 399, 21, 16, 399, 22, 4672, 3536, 4163, 326, 3089, 261, 86, 16, 276, 16, 619, 13, 316, 399, 22, 4123, 716, 261, 86, 16, 276, 16, 425, 13, 353, 316, 399, 21, 18, 225, 12943, 30, 436, 311, 1493, 1377, 3193, 261, 280, 666, 13, 261, 86, 16, 276, 16, 425, 13, 316, 399, 21, 399, 21, 16, 399, 22, 1493, 282, 30486, 2831, 354, 323, 225, 11550, 30, 261, 86, 16, 276, 16, 619, 13, 316, 399, 22, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 628, 272, 410, 18, 832, 4757, 270, 18, 7373, 12660, 18, 26578, 1930, 380, 272, 410, 30, 399, 21, 273, 1473, 67, 11614, 2 ]
Controls: left and right arrows to show the sorting column, r to invert the
Controls: left and right arrows to change the sorting column, r to invert the
def run_iotop(win, options): taskstats_connection = TaskStatsNetlink(options) process_list = ProcessList(taskstats_connection, options) ui = IOTopUI(win, process_list, options) ui.run()
65cd5458e154b60ed77e90ba2f101d523148890d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10607/65cd5458e154b60ed77e90ba2f101d523148890d/iotop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 77, 352, 556, 12, 8082, 16, 702, 4672, 1562, 5296, 67, 4071, 273, 3837, 4195, 7308, 1232, 12, 2116, 13, 1207, 67, 1098, 273, 4389, 682, 12, 4146, 5296, 67, 4071, 16, 702, 13, 5915, 273, 1665, 3401, 5370, 12, 8082, 16, 1207, 67, 1098, 16, 702, 13, 5915, 18, 2681, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 77, 352, 556, 12, 8082, 16, 702, 4672, 1562, 5296, 67, 4071, 273, 3837, 4195, 7308, 1232, 12, 2116, 13, 1207, 67, 1098, 273, 4389, 682, 12, 4146, 5296, 67, 4071, 16, 702, 13, 5915, 273, 1665, 3401, 5370, 12, 8082, 16, 1207, 67, 1098, 16, 702, 13, 5915, 18, 2681, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def BUGtestExceptionInSubTpcBegin(self): """ bug, we short circuit on notifying objects in previous subtransactions of the transaction outcome untested but this probably also applies to error in tpc_finish, as the error has to do with not checking the implicit sub transaction commit done when closing the outer transaction. trace: nosub1 calling method tpc_begin sub2 calling method tpc_begin sub2 calling method commit nosub1 calling method tpc_finish sub2 calling method tpc_finish sub3 calling method tpc_begin sub3 calling method commit sub1 calling method tpc_begin sub1 calling method abort sub1 calling method tpc_abort sub3 calling method tpc_abort """ self.nosub1.modify(tracing='nosub1') self.sub2._p_jar = SubTransactionJar(tracing='sub2') self.sub2.modify(nojar=1) get_transaction().commit(1) self.sub3.modify(tracing='sub3') self.sub1._p_jar = SubTransactionJar(tracing='sub1', errors='tpc_begin') self.sub1.modify(nojar=1) try: get_transaction().commit() except TestTxnException: pass
def testExceptionInSubAbortSub(self): self.sub1._p_jar = SubTransactionJar(errors='commit_sub') self.sub1.modify(nojar=1) get_transaction().commit(1)
16b081c875873c122c85de967c55b72ebc57ffee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/16b081c875873c122c85de967c55b72ebc57ffee/testTransaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 503, 382, 1676, 13572, 1676, 12, 2890, 4672, 365, 18, 1717, 21, 6315, 84, 67, 11930, 273, 2592, 3342, 10813, 12, 4324, 2218, 7371, 67, 1717, 6134, 365, 18, 1717, 21, 18, 17042, 12, 2135, 11930, 33, 21, 13, 336, 67, 7958, 7675, 7371, 12, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 503, 382, 1676, 13572, 1676, 12, 2890, 4672, 365, 18, 1717, 21, 6315, 84, 67, 11930, 273, 2592, 3342, 10813, 12, 4324, 2218, 7371, 67, 1717, 6134, 365, 18, 1717, 21, 18, 17042, 12, 2135, 11930, 33, 21, 13, 336, 67, 7958, 7675, 7371, 12, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
write_log(3, "Incoming call: " + call_name(call_id)) py_pjsua.call_answer(call_id, 200, "", None)
write_log(3, "*** Incoming call: " + call_name(call_id) + "***") write_log(3, "*** Press a to answer or h to hangup ***");
def on_incoming_call(acc_id, call_id, rdata): global g_current_call if g_current_call != py_pjsua.PJSUA_INVALID_ID: py_pjsua.call_answer(call_id, 486, "", None) return g_current_call = call_id ci = py_pjsua.call_get_info(call_id) write_log(3, "Incoming call: " + call_name(call_id)) py_pjsua.call_answer(call_id, 200, "", None)
5c9aeadb11f3b2a00f4fc7d5ab63a9562b269d04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1549/5c9aeadb11f3b2a00f4fc7d5ab63a9562b269d04/pjsua_app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 31033, 67, 1991, 12, 8981, 67, 350, 16, 745, 67, 350, 16, 24291, 4672, 2552, 314, 67, 2972, 67, 1991, 309, 314, 67, 2972, 67, 1991, 480, 2395, 67, 84, 2924, 11886, 18, 52, 6479, 28203, 67, 9347, 67, 734, 30, 2395, 67, 84, 2924, 11886, 18, 1991, 67, 13490, 12, 1991, 67, 350, 16, 1059, 5292, 16, 23453, 599, 13, 327, 314, 67, 2972, 67, 1991, 273, 745, 67, 350, 9039, 273, 2395, 67, 84, 2924, 11886, 18, 1991, 67, 588, 67, 1376, 12, 1991, 67, 350, 13, 1045, 67, 1330, 12, 23, 16, 315, 14465, 26437, 745, 30, 315, 397, 745, 67, 529, 12, 1991, 67, 350, 13, 397, 28078, 7388, 13, 1045, 67, 1330, 12, 23, 16, 315, 14465, 29806, 279, 358, 5803, 578, 366, 358, 25733, 416, 225, 18852, 8863, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 31033, 67, 1991, 12, 8981, 67, 350, 16, 745, 67, 350, 16, 24291, 4672, 2552, 314, 67, 2972, 67, 1991, 309, 314, 67, 2972, 67, 1991, 480, 2395, 67, 84, 2924, 11886, 18, 52, 6479, 28203, 67, 9347, 67, 734, 30, 2395, 67, 84, 2924, 11886, 18, 1991, 67, 13490, 12, 1991, 67, 350, 16, 1059, 5292, 16, 23453, 599, 13, 327, 314, 67, 2972, 67, 1991, 273, 745, 67, 350, 9039, 273, 2395, 67, 84, 2924, 11886, 18, 1991, 67, 588, 67, 1376, 12, 1991, 67, 350, 13, 1045, 67, 1330, 12, 23, 16, 315, 14465, 26437, 745, 30, 315, 397, 745, 67, 529, 12, 1991, 67, 350, 13, 397, 28078, 7388, 13, 1045, 67, 2 ]
self.interpret_raises(NotImplementedError, f, [7])
self.interpret_raises(KeyError, f, [7])
def f(n): if n > 3: o = A() else: o = B() try: o.m() except NotImplementedError: pass return B().m()
8f9b6e710a25b172bcfdc69cf0bd9320373a7669 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/8f9b6e710a25b172bcfdc69cf0bd9320373a7669/test_rpbc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 82, 4672, 309, 290, 405, 890, 30, 320, 273, 432, 1435, 469, 30, 320, 273, 605, 1435, 775, 30, 320, 18, 81, 1435, 1335, 11206, 30, 1342, 327, 605, 7675, 81, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 82, 4672, 309, 290, 405, 890, 30, 320, 273, 432, 1435, 469, 30, 320, 273, 605, 1435, 775, 30, 320, 18, 81, 1435, 1335, 11206, 30, 1342, 327, 605, 7675, 81, 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 ]
raise TryError('Could not chown directory', err)
pass
def makeDirsOnCluster(cluster, dirNames): """ Creates a series of directories on a cluster """ for d in dirNames: runSystemInstanceEx(cluster.master, 'mkdir -p ' + d, None, errorPrintS, user=cluster.config('ssh.user'), options=cluster.config('ssh.options'), log=True) try: runSystemInstanceEx(cluster.master, 'chown -R %s %s' % (cluster.config('vappio.user'), d), None, errorPrintS, user=cluster.config('ssh.user'), options=cluster.config('ssh.options'), log=True) except ProgramRunError, err: raise TryError('Could not chown directory', err)
c2f09d7a2ecb3abec89723deb3601d86d6641cec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5741/c2f09d7a2ecb3abec89723deb3601d86d6641cec/transfer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 9872, 1398, 3629, 12, 7967, 16, 1577, 1557, 4672, 3536, 10210, 279, 4166, 434, 6402, 603, 279, 2855, 3536, 364, 302, 316, 1577, 1557, 30, 1086, 3163, 1442, 424, 12, 7967, 18, 7525, 16, 296, 26686, 300, 84, 296, 397, 302, 16, 599, 16, 555, 5108, 55, 16, 729, 33, 7967, 18, 1425, 2668, 10975, 18, 1355, 19899, 702, 33, 7967, 18, 1425, 2668, 10975, 18, 2116, 19899, 613, 33, 5510, 13, 775, 30, 1086, 3163, 1442, 424, 12, 7967, 18, 7525, 16, 296, 343, 995, 300, 54, 738, 87, 738, 87, 11, 738, 261, 7967, 18, 1425, 2668, 90, 2910, 1594, 18, 1355, 19899, 302, 3631, 599, 16, 555, 5108, 55, 16, 729, 33, 7967, 18, 1425, 2668, 10975, 18, 1355, 19899, 702, 33, 7967, 18, 1425, 2668, 10975, 18, 2116, 19899, 613, 33, 5510, 13, 1335, 13586, 1997, 668, 16, 393, 30, 1342, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 9872, 1398, 3629, 12, 7967, 16, 1577, 1557, 4672, 3536, 10210, 279, 4166, 434, 6402, 603, 279, 2855, 3536, 364, 302, 316, 1577, 1557, 30, 1086, 3163, 1442, 424, 12, 7967, 18, 7525, 16, 296, 26686, 300, 84, 296, 397, 302, 16, 599, 16, 555, 5108, 55, 16, 729, 33, 7967, 18, 1425, 2668, 10975, 18, 1355, 19899, 702, 33, 7967, 18, 1425, 2668, 10975, 18, 2116, 19899, 613, 33, 5510, 13, 775, 30, 1086, 3163, 1442, 424, 12, 7967, 18, 7525, 16, 296, 343, 995, 300, 54, 738, 87, 738, 87, 11, 738, 261, 7967, 18, 1425, 2668, 90, 2910, 1594, 18, 1355, 19899, 302, 3631, 599, 16, 555, 5108, 55, 16, 729, 33, 7967, 18, 2 ]
if self.getBoard()[cord] != None:
if self.getBoard()[cord] != None and \ self.getBoard()[cord].color == self.getBoard().color:
def isSelectable (self, cord): if not BoardState.isSelectable(self, cord): return False # Unselect us, or select something else if self.getBoard()[cord] != None: return True return self.validate(self.view.selected, cord)
1a428c75005442c53bb941796ad2696118687437 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/1a428c75005442c53bb941796ad2696118687437/BoardControl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 31544, 261, 2890, 16, 276, 517, 4672, 309, 486, 17980, 1060, 1119, 18, 291, 31544, 12, 2890, 16, 276, 517, 4672, 327, 1083, 468, 1351, 4025, 584, 16, 578, 2027, 5943, 469, 309, 365, 18, 588, 22233, 1435, 63, 901, 65, 480, 599, 471, 521, 365, 18, 588, 22233, 1435, 63, 901, 8009, 3266, 422, 365, 18, 588, 22233, 7675, 3266, 30, 327, 1053, 327, 365, 18, 5662, 12, 2890, 18, 1945, 18, 8109, 16, 276, 517, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 31544, 261, 2890, 16, 276, 517, 4672, 309, 486, 17980, 1060, 1119, 18, 291, 31544, 12, 2890, 16, 276, 517, 4672, 327, 1083, 468, 1351, 4025, 584, 16, 578, 2027, 5943, 469, 309, 365, 18, 588, 22233, 1435, 63, 901, 65, 480, 599, 471, 521, 365, 18, 588, 22233, 1435, 63, 901, 8009, 3266, 422, 365, 18, 588, 22233, 7675, 3266, 30, 327, 1053, 327, 365, 18, 5662, 12, 2890, 18, 1945, 18, 8109, 16, 276, 517, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
break self.logger.info("Creating attribute mosyms[[]]") self.mosyms=[[]]
else: self.logger.info("Creating attribute mosyms[[]]") self.mosyms=[[]] self.logger.info("Creating attribute moenergies[[]]") self.moenergies=[[]] homoA=None while len(line)>3: info=line.split() self.mosyms[0].append('A') self.moenergies[0].append(utils.convertor(float(info[2]),'hartree','eV')) if info[1]=='0.000' and not hasattr(self,'homos'): self.logger.info("Creating attribute homos[]") self.homos=[len(self.moenergies[0])-2] line=inputfile.next() temp=Numeric.array(self.moenergies,"f") self.moenergies=temp self.homos=Numeric.array(self.homos,"i") if line[1:29]=='Orbital Energies, both Spins' and not hasattr(self,"mosyms") and nosymflag and unrestrictedflag: print "got inside" self.logger.info("Creating attribute mosymms[[]]") self.mosyms=[[],[]]
def parse(self,fupdate=0.05,cupdate=0.002): """Extract information from the logfile.""" inputfile = open(self.filename,"r") if self.progress: inputfile.seek(0,2) #go to end of file nstep=inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep=0 # Used to avoid extracting the final geometry twice in a GeoOpt NOTFOUND, GETLAST, NOMORE = range(3) finalgeometry= NOTFOUND # Used for calculating the scftarget (variables names taken from the ADF manual) accint = SCFconv = sconv2 = None # keep track of nosym case to parse Energies since it doens't have an all Irreps section nosymflag = False
fecb70315b792e0c22b7c0e49115750ae41e2c05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/fecb70315b792e0c22b7c0e49115750ae41e2c05/adfparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 74, 2725, 33, 20, 18, 6260, 16, 71, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 10837, 86, 7923, 225, 309, 365, 18, 8298, 30, 225, 810, 768, 18, 16508, 12, 20, 16, 22, 13, 468, 3240, 358, 679, 434, 585, 290, 4119, 33, 2630, 768, 18, 88, 1165, 1435, 810, 768, 18, 16508, 12, 20, 13, 365, 18, 8298, 18, 11160, 12, 82, 4119, 13, 1592, 4119, 33, 20, 225, 468, 10286, 358, 4543, 27117, 326, 727, 5316, 13605, 316, 279, 9385, 6179, 4269, 9294, 16, 4978, 14378, 16, 423, 1872, 8607, 273, 1048, 12, 23, 13, 727, 14330, 33, 4269, 9294, 225, 468, 10286, 364, 21046, 326, 888, 1222, 826, 261, 7528, 1257, 9830, 628, 326, 432, 4577, 11297, 13, 4078, 474, 273, 8795, 42, 4896, 273, 272, 4896, 22, 273, 599, 225, 468, 3455, 3298, 434, 26628, 2942, 648, 358, 1109, 512, 1224, 20921, 3241, 518, 741, 773, 1404, 1240, 392, 777, 467, 86, 266, 1121, 2442, 26628, 2942, 6420, 273, 1083, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 74, 2725, 33, 20, 18, 6260, 16, 71, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 10837, 86, 7923, 225, 309, 365, 18, 8298, 30, 225, 810, 768, 18, 16508, 12, 20, 16, 22, 13, 468, 3240, 358, 679, 434, 585, 290, 4119, 33, 2630, 768, 18, 88, 1165, 1435, 810, 768, 18, 16508, 12, 20, 13, 365, 18, 8298, 18, 11160, 12, 82, 4119, 13, 1592, 4119, 33, 20, 225, 468, 10286, 358, 4543, 27117, 326, 727, 5316, 13605, 316, 279, 9385, 6179, 4269, 9294, 16, 4978, 14378, 16, 423, 1872, 8607, 273, 1048, 12, 23, 13, 727, 14330, 33, 2 ]
if conf.RENDER_SKIP: png_path = "" pml_path = "" console.stdoutln("NOTE: Skipping Raster3D section") else: try: pml_path, png_path = self.raster3d_render_tls_graph_path(chain, cpartition) except: console.stdoutln(" Warning: failure in raster3d_render_tls_graph_path") pml_path = "" png_path = "" pass
def html_tls_graph_path(self, chain, ntls): """Generates the HTML table describing the path (set of tls groups) for the given number of segments(h, or ntls) """ cpartition = chain.partition_collection.get_chain_partition(ntls) if cpartition == None: return None
81092918682cb3b404793cc6abd4020f9621498a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10674/81092918682cb3b404793cc6abd4020f9621498a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 17116, 67, 4660, 67, 803, 12, 2890, 16, 2687, 16, 9513, 3251, 4672, 3536, 6653, 326, 3982, 1014, 16868, 326, 589, 261, 542, 434, 6871, 3252, 13, 364, 326, 864, 1300, 434, 5155, 12, 76, 16, 578, 9513, 3251, 13, 3536, 276, 10534, 273, 2687, 18, 10534, 67, 5548, 18, 588, 67, 5639, 67, 10534, 12, 496, 3251, 13, 309, 276, 10534, 422, 599, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1729, 67, 17116, 67, 4660, 67, 803, 12, 2890, 16, 2687, 16, 9513, 3251, 4672, 3536, 6653, 326, 3982, 1014, 16868, 326, 589, 261, 542, 434, 6871, 3252, 13, 364, 326, 864, 1300, 434, 5155, 12, 76, 16, 578, 9513, 3251, 13, 3536, 276, 10534, 273, 2687, 18, 10534, 67, 5548, 18, 588, 67, 5639, 67, 10534, 12, 496, 3251, 13, 309, 276, 10534, 422, 599, 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 ]
def n_array_proxy_func(prefix, func, classnam): return eval('lambda self, *args: n_array_proxy(poldekmod.%s%s(self, *args), %s)' % (prefix, func, classnam));
def n_array_proxy_func(prefix, func, classnam, link_fn = None): return eval('lambda self, *args: n_array_proxy(poldekmod.%s%s(self, *args), %s, %s)' % (prefix, func, classnam, link_fn));
def n_array_proxy_func(prefix, func, classnam): return eval('lambda self, *args: n_array_proxy(poldekmod.%s%s(self, *args), %s)' % (prefix, func, classnam));
9d09e62c7b9ed4ac0e9a2a5888b2791a3bcdf82c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1047/9d09e62c7b9ed4ac0e9a2a5888b2791a3bcdf82c/poldek.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 67, 1126, 67, 5656, 67, 644, 12, 3239, 16, 1326, 16, 667, 17808, 16, 1692, 67, 4293, 273, 599, 4672, 327, 5302, 2668, 14661, 365, 16, 380, 1968, 30, 290, 67, 1126, 67, 5656, 12, 3915, 323, 79, 1711, 7866, 87, 9, 87, 12, 2890, 16, 380, 1968, 3631, 738, 87, 16, 738, 87, 2506, 738, 261, 3239, 16, 1326, 16, 667, 17808, 16, 1692, 67, 4293, 10019, 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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, 290, 67, 1126, 67, 5656, 67, 644, 12, 3239, 16, 1326, 16, 667, 17808, 16, 1692, 67, 4293, 273, 599, 4672, 327, 5302, 2668, 14661, 365, 16, 380, 1968, 30, 290, 67, 1126, 67, 5656, 12, 3915, 323, 79, 1711, 7866, 87, 9, 87, 12, 2890, 16, 380, 1968, 3631, 738, 87, 16, 738, 87, 2506, 738, 261, 3239, 16, 1326, 16, 667, 17808, 16, 1692, 67, 4293, 10019, 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 ]
if opt.has_key('description'): self.entryWidgets[g].SetToolTipString(_prettyDesc(opt['description']))
def createDialog(self): self.app = wx.PySimpleApp(0) self.dlg = wx.Dialog(parent=None, id=-1, title = self.title) self.entryWidgets = [None]*len(self.options) self.labelWidgets = [None]*len(self.options) # # the main window box = wx.BoxSizer(wx.VERTICAL) # do not use a very long description please topLabel = wx.StaticText(parent=self.dlg, id=-1, label='\n' + self.description) box.Add(topLabel, 0, wx.EXPAND | wx.LEFT | wx.ALIGN_CENTER, 50) topLabel.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.NORMAL)) # add a box for all ... paraBox = wx.FlexGridSizer(cols = self.nCol) for col in range(self.nCol): paraBox.AddGrowableCol(col) # # add several FlexGridSizer gridBox = [] for col in range(self.nCol): gridBox.append(wx.FlexGridSizer(cols=2, vgap=2, hgap=5)) gridBox[-1].AddGrowableCol(0) gridBox[-1].AddGrowableCol(1) paraBox.Add(gridBox[-1], 1, wx.EXPAND | wx.ALL, 10) box.Add(paraBox, 1, wx.EXPAND | wx.ALL, 5) # count numbers of valid parameters.. # chooseFrom count as many numRows = self.getNumOfRows() rowIndex = 0 # all entries for g,opt in enumerate(self.options): if not (opt.has_key('label') or opt.has_key('separator')): continue colIndex = rowIndex / numRows if opt.has_key('separator'): self.labelWidgets[g] = wx.StaticText(parent=self.dlg, id=-1, label=opt['separator']) self.labelWidgets[g].SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD)) gridBox[colIndex].Add(self.labelWidgets[g], 0, wx.ALIGN_LEFT ) # no entry widget self.entryWidgets[g] = None # add an empty string to the right... it would be good to extend. gridBox[colIndex].Add(wx.StaticText(parent=self.dlg, id=-1, label=''), 1, wx.ALIGN_LEFT ) rowIndex += 1 continue value = self.options[g]['value'] if value is None: value = self.options[g]['default'] # label self.labelWidgets[g] = wx.StaticText(parent=self.dlg, id=-1, label=opt['label']) gridBox[colIndex].Add(self.labelWidgets[g], 0, wx.ALIGN_LEFT ) # use different entry method for different types if opt.has_key('chooseOneOf'): # single choice self.entryWidgets[g] = wx.Choice(parent=self.dlg, id=g, choices = [str(x) for x in opt['chooseOneOf']]) if opt.has_key('description'): self.entryWidgets[g].SetToolTipString(_prettyDesc(opt['description'])) gridBox[colIndex].Add(self.entryWidgets[g], 1, wx.EXPAND ) # if an value is given through command line argument or configuration file if value is not None: try: self.entryWidgets[g].SetSelection(opt['chooseOneOf'].index(value)) except: raise ValueError('Value: %s is not one of %s.' % (str(value), str(opt['chooseOneOf']))) rowIndex += 1 elif opt.has_key('chooseFrom'): # multiple choice # the height is a little bit too much... self.entryWidgets[g] = wx.CheckListBox(parent=self.dlg, id=g, choices = [str(x) for x in opt['chooseFrom']]) if opt.has_key('description'): self.entryWidgets[g].SetToolTipString(_prettyDesc(opt['description'])) if value is not None: if type(value) in [types.ListType, types.TupleType]: for val in value: self.entryWidgets[g].Check(opt['chooseFrom'].index(val)) else: self.entryWidgets[g].Check(opt['chooseFrom'].index(value)) gridBox[colIndex].Add(self.entryWidgets[g], 1, wx.EXPAND) rowIndex += len(opt['chooseFrom']) elif (opt.has_key('arg') and opt['arg'][-1] != ':') or \ (opt.has_key('longarg') and opt['longarg'][-1] != '='): # true or false self.entryWidgets[g] = wx.CheckBox(parent=self.dlg, id=g, label = 'Yes / No') if opt.has_key('description'): self.entryWidgets[g].SetToolTipString(_prettyDesc(opt['description'])) if value is not None: self.entryWidgets[g].SetValue(value) gridBox[colIndex].Add(self.entryWidgets[g], 1, wx.EXPAND) rowIndex += 1 else: # an edit box # put default value into the entryWidget txt = '' if value is not None: txt = _prettyString(value) self.entryWidgets[g] = wx.TextCtrl(parent=self.dlg, id=g, value=txt) if opt.has_key('description'): self.entryWidgets[g].SetToolTipString(_prettyDesc(opt['description'])) gridBox[colIndex].Add(self.entryWidgets[g], 1, wx.EXPAND ) rowIndex += 1 # help button buttonBox = wx.GridSizer(cols=3) self.addButton(wx.ID_HELP, 'Help', self.onHelp, self.dlg, buttonBox) self.addButton(wx.ID_CANCEL, 'Cancel', self.onCancel, self.dlg, buttonBox) self.addButton(wx.ID_OK, 'OK', self.onOK, self.dlg, buttonBox) box.Add(buttonBox, 0, wx.ALL | wx.EXPAND, 20) self.dlg.SetSizerAndFit(box) self.dlg.Layout() # set focus to the first un-none entry for g in range(len(self.options)): if self.entryWidgets[g] is not None: self.entryWidgets[g].SetFocus() break
7333f327e6523fb0ff4bb4c13990f922bbf43728 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/7333f327e6523fb0ff4bb4c13990f922bbf43728/simuOpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6353, 12, 2890, 4672, 365, 18, 2910, 273, 7075, 18, 9413, 5784, 3371, 12, 20, 13, 365, 18, 5761, 75, 273, 7075, 18, 6353, 12, 2938, 33, 7036, 16, 612, 29711, 21, 16, 2077, 273, 365, 18, 2649, 13, 365, 18, 4099, 16166, 273, 306, 7036, 5772, 1897, 12, 2890, 18, 2116, 13, 365, 18, 1925, 16166, 273, 306, 7036, 5772, 1897, 12, 2890, 18, 2116, 13, 468, 468, 326, 2774, 2742, 3919, 273, 7075, 18, 3514, 20512, 12, 27226, 18, 21654, 10109, 13, 468, 741, 486, 999, 279, 8572, 1525, 2477, 9582, 1760, 2224, 273, 7075, 18, 5788, 1528, 12, 2938, 33, 2890, 18, 5761, 75, 16, 612, 29711, 21, 16, 1433, 2218, 64, 82, 11, 397, 365, 18, 3384, 13, 3919, 18, 986, 12, 3669, 2224, 16, 374, 16, 7075, 18, 16109, 4307, 571, 7075, 18, 10066, 571, 7075, 18, 26439, 67, 19835, 16, 6437, 13, 1760, 2224, 18, 694, 5711, 12, 27226, 18, 5711, 12, 2138, 16, 7075, 18, 18746, 25689, 16, 7075, 18, 15480, 16, 7075, 18, 15480, 3719, 468, 527, 279, 3919, 364, 777, 1372, 12602, 3514, 273, 7075, 18, 19667, 6313, 20512, 12, 6842, 273, 365, 18, 82, 914, 13, 364, 645, 316, 1048, 12, 2890, 18, 82, 914, 4672, 12602, 3514, 18, 986, 30948, 429, 914, 12, 1293, 13, 468, 468, 527, 11392, 25361, 6313, 20512, 3068, 3514, 273, 5378, 364, 645, 316, 1048, 12, 2890, 18, 82, 914, 4672, 3068, 3514, 18, 6923, 12, 27226, 18, 19667, 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, 752, 6353, 12, 2890, 4672, 365, 18, 2910, 273, 7075, 18, 9413, 5784, 3371, 12, 20, 13, 365, 18, 5761, 75, 273, 7075, 18, 6353, 12, 2938, 33, 7036, 16, 612, 29711, 21, 16, 2077, 273, 365, 18, 2649, 13, 365, 18, 4099, 16166, 273, 306, 7036, 5772, 1897, 12, 2890, 18, 2116, 13, 365, 18, 1925, 16166, 273, 306, 7036, 5772, 1897, 12, 2890, 18, 2116, 13, 468, 468, 326, 2774, 2742, 3919, 273, 7075, 18, 3514, 20512, 12, 27226, 18, 21654, 10109, 13, 468, 741, 486, 999, 279, 8572, 1525, 2477, 9582, 1760, 2224, 273, 7075, 18, 5788, 1528, 12, 2938, 33, 2890, 18, 5761, 75, 16, 612, 29711, 21, 16, 1433, 2218, 64, 82, 11, 2 ]
- ``m``, ``n`` - two moduli, or None.
- ``m``, ``n`` - (default: ``None``) two moduli, or ``None``.
def crt(a,b,m=None,n=None): r""" Returns a solution to a Chinese Remainder Theorem problem. INPUT: - ``a``, ``b`` - two residues (elements of some ring for which extended gcd is available), or two lists, one of residues and one of moduli. - ``m``, ``n`` - two moduli, or None. OUTPUT: If ``m``, ``n`` are not None, returns a solution `x` to the simultaneous congruences `x\equiv a \bmod m` and `x\equiv b \bmod n`, if one exists; which is if and only if `a\equiv b\pmod{\gcd(m,n)}` by the Chinese Remainder Theorem. The solution `x` is only well-defined modulo lcm`(m,n)`. If ``a`` and ``b`` are lists, returns a simultaneous solution to the congruences `x\equiv a_i\pmod{b_i}`, if one exists. EXAMPLES:: sage: crt(2, 1, 3, 5) 11 sage: crt(13,20,100,301) 28013 You can also use upper case:: sage: c = CRT(2,3, 3, 5); c 8 sage: c % 3 == 2 True sage: c % 5 == 3 True Note that this also works for polynomial rings:: sage: K.<a> = NumberField(x^3 - 7) sage: R.<y> = K[] sage: f = y^2 + 3 sage: g = y^3 - 5 sage: CRT(1,3,f,g) -3/26*y^4 + 5/26*y^3 + 15/26*y + 53/26 sage: CRT(1,a,f,g) (-3/52*a + 3/52)*y^4 + (5/52*a - 5/52)*y^3 + (15/52*a - 15/52)*y + 27/52*a + 25/52 You can also do this for any number of moduli:: sage: K.<a> = NumberField(x^3 - 7) sage: R.<x> = K[] sage: CRT([], []) 0 sage: CRT([a], [x]) a sage: f = x^2 + 3 sage: g = x^3 - 5 sage: h = x^5 + x^2 - 9 sage: k = CRT([1, a, 3], [f, g, h]); k (127/26988*a - 5807/386828)*x^9 + (45/8996*a - 33677/1160484)*x^8 + (2/173*a - 6/173)*x^7 + (133/6747*a - 5373/96707)*x^6 + (-6/2249*a + 18584/290121)*x^5 + (-277/8996*a + 38847/386828)*x^4 + (-135/4498*a + 42673/193414)*x^3 + (-1005/8996*a + 470245/1160484)*x^2 + (-1215/8996*a + 141165/386828)*x + 621/8996*a + 836445/386828 sage: k.mod(f) 1 sage: k.mod(g) a sage: k.mod(h) 3 If the moduli are not coprime, a solution may not exist:: sage: crt(4,8,8,12) 20 sage: crt(4,6,8,12) Traceback (most recent call last): ... ValueError: No solution to crt problem since gcd(8,12) does not divide 4-6 sage: x = polygen(QQ) sage: crt(2,3,x-1,x+1) -1/2*x + 5/2 sage: crt(2,x,x^2-1,x^2+1) -1/2*x^3 + x^2 + 1/2*x + 1 sage: crt(2,x,x^2-1,x^3-1) Traceback (most recent call last): ... ValueError: No solution to crt problem since gcd(x^2 - 1,x^3 - 1) does not divide 2-x """ if isinstance(a,list): return CRT_list(a,b) g, alpha, beta = XGCD(m,n) q,r = (b-a).quo_rem(g) if r!=0: raise ValueError, "No solution to crt problem since gcd(%s,%s) does not divide %s-%s"%(m,n,a,b) return (a+q*alpha*m) % lcm(m,n)
d8fdbadcb2a43ad96e022918c9d2579d5b5df41a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d8fdbadcb2a43ad96e022918c9d2579d5b5df41a/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30677, 12, 69, 16, 70, 16, 81, 33, 7036, 16, 82, 33, 7036, 4672, 436, 8395, 2860, 279, 6959, 358, 279, 1680, 25331, 2663, 25407, 1021, 479, 81, 6199, 18, 225, 12943, 30, 225, 300, 12176, 69, 68, 9191, 12176, 70, 10335, 300, 2795, 25435, 261, 6274, 434, 2690, 9221, 364, 1492, 7021, 14876, 353, 2319, 3631, 578, 2795, 6035, 16, 1245, 434, 25435, 471, 1245, 434, 13340, 77, 18, 225, 300, 12176, 81, 68, 9191, 12176, 82, 10335, 300, 261, 1886, 30, 12176, 7036, 10335, 13, 2795, 13340, 77, 16, 578, 12176, 7036, 68, 8338, 225, 11550, 30, 225, 971, 12176, 81, 68, 9191, 12176, 82, 10335, 854, 486, 599, 16, 1135, 279, 6959, 1375, 92, 68, 358, 326, 27504, 356, 3197, 89, 2369, 1375, 92, 64, 14298, 427, 279, 521, 70, 1711, 312, 68, 471, 1375, 92, 64, 14298, 427, 324, 521, 70, 1711, 290, 9191, 309, 1245, 1704, 31, 1492, 353, 309, 471, 1338, 309, 1375, 69, 64, 14298, 427, 324, 64, 84, 1711, 23241, 75, 4315, 12, 81, 16, 82, 13, 11760, 635, 326, 1680, 25331, 2663, 25407, 1021, 479, 81, 18, 1021, 6959, 1375, 92, 68, 353, 1338, 5492, 17, 2178, 26109, 328, 7670, 68, 12, 81, 16, 82, 13, 8338, 225, 971, 12176, 69, 10335, 471, 12176, 70, 10335, 854, 6035, 16, 1135, 279, 27504, 6959, 358, 326, 356, 3197, 89, 2369, 1375, 92, 64, 14298, 427, 279, 67, 77, 64, 84, 1711, 95, 70, 67, 77, 97, 9191, 309, 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, 30677, 12, 69, 16, 70, 16, 81, 33, 7036, 16, 82, 33, 7036, 4672, 436, 8395, 2860, 279, 6959, 358, 279, 1680, 25331, 2663, 25407, 1021, 479, 81, 6199, 18, 225, 12943, 30, 225, 300, 12176, 69, 68, 9191, 12176, 70, 10335, 300, 2795, 25435, 261, 6274, 434, 2690, 9221, 364, 1492, 7021, 14876, 353, 2319, 3631, 578, 2795, 6035, 16, 1245, 434, 25435, 471, 1245, 434, 13340, 77, 18, 225, 300, 12176, 81, 68, 9191, 12176, 82, 10335, 300, 261, 1886, 30, 12176, 7036, 10335, 13, 2795, 13340, 77, 16, 578, 12176, 7036, 68, 8338, 225, 11550, 30, 225, 971, 12176, 81, 68, 9191, 12176, 82, 10335, 854, 486, 599, 16, 1135, 279, 6959, 1375, 92, 68, 2 ]
self.say_public("%s left while nobody was looking! I've removed this person from the game.." %(nick))
self.say_public("%s left while nobody was looking!" %(nick))
def _removeUser(self, nick): if(self.live_players): if nick in self.live_players: self.say_public("%s left while nobody was looking! I've removed this person from the game.." %(nick)) if(nick in self.live_players): self.live_players.remove(nick) if(nick in self.wolves): self.wolves.remove(nick) self.say_public("%s leaves a trail of wiry hairs in his wake..."%(nick)) if(nick in self.villagers): self.villagers.remove(nick) self.say_public("%s was a quiet, normal sort of feller. Kept to himself...."%(nick)) if(nick == self.seer): self.say_public("%s was blessed with unusual insight into lycanthropism."%(nick))
970324441f83f848aee177c07ff73ee5b1cf261e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3953/970324441f83f848aee177c07ff73ee5b1cf261e/wolfbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 1299, 12, 2890, 16, 10909, 4672, 309, 12, 2890, 18, 16472, 67, 1601, 414, 4672, 309, 10909, 316, 365, 18, 16472, 67, 1601, 414, 30, 365, 18, 87, 528, 67, 482, 27188, 87, 2002, 1323, 290, 947, 973, 1703, 7849, 4442, 8975, 17091, 3719, 309, 12, 17091, 316, 365, 18, 16472, 67, 1601, 414, 4672, 365, 18, 16472, 67, 1601, 414, 18, 4479, 12, 17091, 13, 309, 12, 17091, 316, 365, 18, 91, 355, 3324, 4672, 365, 18, 91, 355, 3324, 18, 4479, 12, 17091, 13, 365, 18, 87, 528, 67, 482, 27188, 87, 15559, 279, 15569, 434, 341, 6913, 366, 1826, 87, 316, 18423, 19891, 7070, 17105, 17091, 3719, 309, 12, 17091, 316, 365, 18, 90, 737, 346, 414, 4672, 365, 18, 90, 737, 346, 414, 18, 4479, 12, 17091, 13, 365, 18, 87, 528, 67, 482, 27188, 87, 1703, 279, 10902, 16, 2212, 1524, 434, 284, 292, 749, 18, 1475, 73, 337, 358, 366, 381, 2890, 6265, 6, 17105, 17091, 3719, 309, 12, 17091, 422, 365, 18, 307, 264, 4672, 365, 18, 87, 528, 67, 482, 27188, 87, 1703, 324, 1040, 730, 598, 640, 407, 1462, 2763, 750, 1368, 18519, 4169, 451, 1764, 6228, 1199, 17105, 17091, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 1299, 12, 2890, 16, 10909, 4672, 309, 12, 2890, 18, 16472, 67, 1601, 414, 4672, 309, 10909, 316, 365, 18, 16472, 67, 1601, 414, 30, 365, 18, 87, 528, 67, 482, 27188, 87, 2002, 1323, 290, 947, 973, 1703, 7849, 4442, 8975, 17091, 3719, 309, 12, 17091, 316, 365, 18, 16472, 67, 1601, 414, 4672, 365, 18, 16472, 67, 1601, 414, 18, 4479, 12, 17091, 13, 309, 12, 17091, 316, 365, 18, 91, 355, 3324, 4672, 365, 18, 91, 355, 3324, 18, 4479, 12, 17091, 13, 365, 18, 87, 528, 67, 482, 27188, 87, 15559, 279, 15569, 434, 341, 6913, 366, 1826, 87, 316, 18423, 19891, 7070, 17105, 17091, 3719, 309, 12, 17091, 316, 365, 18, 2 ]