rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
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, 631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 631...
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 ti...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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,...
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, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 5...
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.SILE...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, 16, 819, 33, 7036, 4672, 1930, 2395, 9811, 3303, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4936, 6134, 6095, 67, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 26...
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/2006/12029/490cbf56868a5118b635128d808b569527adaab6/ConfigParser.py
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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...
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 i...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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 mo...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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 = s...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 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, ...
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, 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...
[ 1, 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...
[ 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, ...
'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 = SubEleme...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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,...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 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...
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....
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, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 2...
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, 4672, 888, 18, 6858, 67, 2848, 310, 67, 267, 12, 29, 713, 16, 11631, 16, 890, 2643, 16, 890, 2643, 13, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 2...
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, 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, 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, 0, 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,...
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'...
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(...
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, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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...
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.fakturaFaktamotta...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
- 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`` a...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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 syste...
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, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 48...
), '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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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,...
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, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 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, 21...
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 == ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, 4094, 18, 5414, 40, 23623, 18, 7607, 6688, 12, 4119, 380, 365, 18, 1132, 13, 9130, 18, 2575, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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/97c61d46ffa3a56afbbfc60ea92128dc456f4592/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 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, ...
[ 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, 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...
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))...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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, ...
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 = X50...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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...
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) # a...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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,...
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{Stran...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 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, ...
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/7542/8a2941c44a3bfedcce91fdcf464b283b2fd76160/mcpu.py
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, -100, -100, -100, -100, -100, -100, -100, -1...
>>> 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(...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 3...
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 ...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 3...
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...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 3...
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...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 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,...
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.Regis...
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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1...
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.b...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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 ...
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, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 13...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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,...
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, 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(Va...
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...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, ...
""" 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, 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...
[ 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, -10...
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, 195...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 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, 195...
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, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 5...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -10...
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 ("Canc...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 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,...
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 (...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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,...
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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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 co...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 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, ...
"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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 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...
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) ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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.tit...
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, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 12...
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 mou...
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, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 4...
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_a...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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 ret...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 3...
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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 1...
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, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 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...
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_o...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 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...
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, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, ...
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 ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, er...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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...
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, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, 32...
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. ' '\nOthe...
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, 'Notif...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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,...
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.7...
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, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 4...
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 = Non...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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__, al...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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 con...
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, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 43...
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, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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 = floa...
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.Des...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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 c2pfuncparam...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
"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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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.curren...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 3...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -...
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) ) sa...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 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, 1...
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 trans...
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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, 1...
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, ""...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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 %...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 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,...
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, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 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, 36...
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'...
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 i...
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, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 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, 7...
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, 515...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 515...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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,...
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.StaticT...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
- ``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, ...
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, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 12...
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 leav...
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, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 2...