rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
self.Ttest2 = r.linear_hypothesis(self.R_Results['F'], r.c('x.5 = x.6',)) t = np.inner(self.R, self.res1.params)/\ (np.sign(np.inner(self.R, self.res1.params))*\ np.sqrt(self.Ttest2['F'][1]))
self.Ttest2 = r.linear_hypothesis(self.R_Results, 'x.5 = x.6') t = np.sign(np.inner(self.R, self.res1.params))*\ np.sqrt(self.Ttest2['F'][1])
def setup(self): if skipR: raise SkipTest, "Rpy not installed" try: r.library('car') except RPy_RException: raise SkipTest, "car library not installed for R" R = np.zeros(len(self.res1.params)) R[4:6] = [1,-1] self.R = R self.Ttest1 = self.res1.t_test(self.R) self.R_Results = RModel(self.data.endog, self.data.exog, r.l...
c944eab8d84c6cac2fb5de055fceb6bc5953418f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12658/c944eab8d84c6cac2fb5de055fceb6bc5953418f/test_regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 4672, 309, 2488, 54, 30, 1002, 6611, 4709, 16, 315, 54, 2074, 486, 5876, 6, 775, 30, 436, 18, 12083, 2668, 9815, 6134, 1335, 534, 9413, 67, 54, 503, 30, 1002, 6611, 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, 3875, 12, 2890, 4672, 309, 2488, 54, 30, 1002, 6611, 4709, 16, 315, 54, 2074, 486, 5876, 6, 775, 30, 436, 18, 12083, 2668, 9815, 6134, 1335, 534, 9413, 67, 54, 503, 30, 1002, 6611, 4...
schedIdList.append( job.runningJob['schedulerId'] )
if not schedIdList.has_key( job.runningJob['service'] ) : schedIdList[job.runningJob['service']] = [] schedIdList[job.runningJob['service']].append( job.runningJob['schedulerId'] )
def getOutput( self, obj, outdir ): """ retrieve output or just put it in the destination directory """
689e69b9c0c8dd87a02476947696c45b1a5a5800 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/689e69b9c0c8dd87a02476947696c45b1a5a5800/Scheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11062, 12, 365, 16, 1081, 16, 15398, 262, 30, 3536, 4614, 876, 578, 2537, 1378, 518, 316, 326, 2929, 1867, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11062, 12, 365, 16, 1081, 16, 15398, 262, 30, 3536, 4614, 876, 578, 2537, 1378, 518, 316, 326, 2929, 1867, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
for x in self.settings["embedded/rm"]: print "Removing "+x os.system("rm -rf "+self.settings["chroot_path"]+"/tmp/mergeroot"+x)
for x in self.settings["embedded/rm"]: print "Removing "+x os.system("rm -rf "+self.settings["chroot_path"]+"/tmp/mergeroot"+x)
def clean(self): if self.settings.has_key("embedded/rm"): if type(self.settings["embedded/rm"])==types.StringType: self.settings["embedded/rm"]=[self.settings["embedded/rm"]] print "Removing directories from image" for x in self.settings["embedded/rm"]: print "Removing "+x os.system("rm -rf "+self.settings["chroot_path...
174272f3cab1885c032298a60fea31ba7fc6d2ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/174272f3cab1885c032298a60fea31ba7fc6d2ae/targets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 12, 2890, 4672, 309, 365, 18, 4272, 18, 5332, 67, 856, 2932, 20722, 19, 8864, 6, 4672, 309, 618, 12, 2890, 18, 4272, 9614, 20722, 19, 8864, 6, 5717, 631, 2352, 18, 780, 559, 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, 2721, 12, 2890, 4672, 309, 365, 18, 4272, 18, 5332, 67, 856, 2932, 20722, 19, 8864, 6, 4672, 309, 618, 12, 2890, 18, 4272, 9614, 20722, 19, 8864, 6, 5717, 631, 2352, 18, 780, 559, 30...
def test_parse_qs():
def test_parse_querystring():
def test_parse_qs(): e = {'QUERY_STRING': 'a=1&b=2&c=3&b=4'} d = parse_qs(e) assert d == [('a', '1'), ('b', '2'), ('c', '3'), ('b', '4')] assert e['paste._cached_parse_qs'] == ( (e['QUERY_STRING'], d)) e = {'QUERY_STRING': 'a&b&c=&d=1'} d = parse_qs(e) assert d == [('a', None), ('b', None), ('c', ''), ('d', '1')]
76da4633eae92f618adf40d530f340fa27a71d98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2097/76da4633eae92f618adf40d530f340fa27a71d98/test_request_form.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2670, 67, 2271, 1080, 13332, 425, 273, 13666, 10753, 67, 5804, 4278, 296, 69, 33, 21, 10, 70, 33, 22, 10, 71, 33, 23, 10, 70, 33, 24, 11, 97, 302, 273, 1109, 67, 12926, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 67, 2271, 1080, 13332, 425, 273, 13666, 10753, 67, 5804, 4278, 296, 69, 33, 21, 10, 70, 33, 22, 10, 71, 33, 23, 10, 70, 33, 24, 11, 97, 302, 273, 1109, 67, 12926, ...
href = self.code_value(stream) if pre: href = '
def process_code_link(self, stream, pre=''): text = u''
94a11a8c56fd02fa065c3e0800df20d37aaa6cfa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/94a11a8c56fd02fa065c3e0800df20d37aaa6cfa/pmlconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 710, 67, 1232, 12, 2890, 16, 1407, 16, 675, 2218, 11, 4672, 977, 273, 582, 6309, 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, 1207, 67, 710, 67, 1232, 12, 2890, 16, 1407, 16, 675, 2218, 11, 4672, 977, 273, 582, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if err[0] == errno.EINTR:
err_type = err.message if err_type == errno.EINTR:
def _read(self): buf = '' # put in a loop so that we retry on transient errors while True: try: buf = self._ssl.read(self._bufsize) except socket.sslerror as err: if (err[0] == socket.SSL_ERROR_WANT_READ or err[0] == socket.SSL_ERROR_WANT_WRITE): continue if (err[0] == socket.SSL_ERROR_ZERO_RETURN or err[0] == socket.S...
495cdb0087a23582cf0d23523fdb2653128103b7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/495cdb0087a23582cf0d23523fdb2653128103b7/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 12, 2890, 4672, 1681, 273, 875, 468, 1378, 316, 279, 2798, 1427, 716, 732, 3300, 603, 12315, 1334, 1323, 1053, 30, 775, 30, 1681, 273, 365, 6315, 8157, 18, 896, 12, 2890, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 12, 2890, 4672, 1681, 273, 875, 468, 1378, 316, 279, 2798, 1427, 716, 732, 3300, 603, 12315, 1334, 1323, 1053, 30, 775, 30, 1681, 273, 365, 6315, 8157, 18, 896, 12, 2890, 631...
while 1 and self.__initialized: self.__connectionSemaphore.release() try: connection = self.__connectionQueue.get_nowait() connection.close() except Queue.Empty,x: self.logger.debug( 'No more connection in Queue' ) break if instances == 1: MySQLdb.server_end() instances -= 1
try: while 1 and self.__initialized: self.__connectionSemaphore.release() try: connection = self.__connectionQueue.get_nowait() connection.close() except Queue.Empty, x: self.logger.debug( 'No more connection in Queue' ) break if instances == 1: MySQLdb.server_end() instances -= 1 except: pass
def __del__( self ): global instances
0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08/MySQL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 365, 262, 30, 2552, 3884, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3771, 972, 12, 365, 262, 30, 2552, 3884, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
menuTitle = _(u'Keep "%(collection)s" out of %(kidashboardnd)s') % arguments
menuTitle = _(u'Keep "%(collection)s" out of %(dashboard)s') % arguments
def onToggleMineEventUpdateUI(self, event): selectedItem = second = None iterator = self.contents.iterSelection() try: selectedItem = iterator.next() second = iterator.next() except StopIteration: pass if selectedItem is None or second is not None: event.arguments['Enable'] = False else: collectionName = selectedItem....
f79c7acb18fce024b12771935ebf7c08664abfc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f79c7acb18fce024b12771935ebf7c08664abfc0/SideBar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 17986, 49, 558, 1133, 1891, 5370, 12, 2890, 16, 871, 4672, 3170, 1180, 273, 2205, 273, 599, 2775, 273, 365, 18, 3980, 18, 2165, 6233, 1435, 775, 30, 3170, 1180, 273, 2775, 18, 428...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17986, 49, 558, 1133, 1891, 5370, 12, 2890, 16, 871, 4672, 3170, 1180, 273, 2205, 273, 599, 2775, 273, 365, 18, 3980, 18, 2165, 6233, 1435, 775, 30, 3170, 1180, 273, 2775, 18, 428...
sage: print A
sage: A
def clear_cells(self): """ Mark every cell in self as being empty.
0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 67, 14741, 12, 2890, 4672, 3536, 6622, 3614, 2484, 316, 365, 487, 3832, 1008, 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,...
[ 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 67, 14741, 12, 2890, 4672, 3536, 6622, 3614, 2484, 316, 365, 487, 3832, 1008, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
doc_entry = client.Post(new_entry, '/feeds/documents/private/full')
folder_entries = client.get_folder(options.folder) folder_entry = client.get_single_entry(folder_entries) if folder_entry: post_uri = folder_entry.content.src else: post_uri = '/feeds/documents/private/full' doc_entry = client.Post(new_entry, post_uri)
def _run_edit(client, options, args): doc_entry = client.get_single_doc(options.title, options.folder) if not hasattr(client, 'Export'): print 'Editing documents is not supported' +\ ' for gdata-python-client < 2.0' return if not doc_entry: print 'No matching documents found! Creating it.' new_entry = gdata.docs.Docume...
c39b8a9627de0edfb3d799d2d03eab92d3ba2b20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/c39b8a9627de0edfb3d799d2d03eab92d3ba2b20/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 67, 4619, 12, 2625, 16, 702, 16, 833, 4672, 997, 67, 4099, 273, 1004, 18, 588, 67, 7526, 67, 2434, 12, 2116, 18, 2649, 16, 702, 18, 5609, 13, 309, 486, 3859, 12, 2625, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2681, 67, 4619, 12, 2625, 16, 702, 16, 833, 4672, 997, 67, 4099, 273, 1004, 18, 588, 67, 7526, 67, 2434, 12, 2116, 18, 2649, 16, 702, 18, 5609, 13, 309, 486, 3859, 12, 2625, 1...
attrNames.append('Status') attrValues.append(status)
attrNames.append( 'Status' ) attrValues.append( status )
def setJobStatus(self,jobID,status='',minor='',application='',appCounter=None): """ Set status of the job specified by its jobID """
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 23422, 12, 2890, 16, 4688, 734, 16, 2327, 2218, 2187, 17364, 2218, 2187, 3685, 2218, 2187, 2910, 4789, 33, 7036, 4672, 3536, 1000, 1267, 434, 326, 1719, 1269, 635, 2097, 28913, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 23422, 12, 2890, 16, 4688, 734, 16, 2327, 2218, 2187, 17364, 2218, 2187, 3685, 2218, 2187, 2910, 4789, 33, 7036, 4672, 3536, 1000, 1267, 434, 326, 1719, 1269, 635, 2097, 28913, 3536, ...
<p>%s</p>
%s
def termlist(self): """Term List for html doc""" c_ids, p_ids = self.vocab.azlist() tl = """<div class="termlist">""" tl = """%s<h3>Classes and Properties (full detail)</h3><div class='termdetails'><br />\n\n""" % tl # first classes, then properties eg = """<div class="specterm" id="term_%s"> <h3>%s: %s</h3> <em>%s</em...
a521a3b6e2b37f6fab70523c9010ca3760cda7ea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3661/a521a3b6e2b37f6fab70523c9010ca3760cda7ea/libvocab.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19272, 781, 376, 12, 2890, 4672, 3536, 4065, 987, 364, 1729, 997, 8395, 276, 67, 2232, 16, 293, 67, 2232, 273, 365, 18, 15913, 18, 1561, 1098, 1435, 8332, 273, 3536, 32, 2892, 667, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19272, 781, 376, 12, 2890, 4672, 3536, 4065, 987, 364, 1729, 997, 8395, 276, 67, 2232, 16, 293, 67, 2232, 273, 365, 18, 15913, 18, 1561, 1098, 1435, 8332, 273, 3536, 32, 2892, 667, 154...
focusRange = float(self.getEntryNum(self.focusRangeWdg, "Focus Range"))
focusRange = float(self.getEntryNum(self.focusRangeWdg, "Focus Range"))
def waitFocusSweep(self): """Conduct a focus sweep. Sets sr.value to True if successful. """ sr = self.sr
bdc20e03649e5a498573c69cad551b250ac0bc28 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6236/bdc20e03649e5a498573c69cad551b250ac0bc28/BaseFocusScript.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 9233, 55, 25236, 12, 2890, 4672, 3536, 442, 1828, 279, 7155, 17462, 18, 225, 11511, 9133, 18, 1132, 358, 1053, 309, 6873, 18, 3536, 9133, 273, 365, 18, 11254, 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, 0, 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, 2529, 9233, 55, 25236, 12, 2890, 4672, 3536, 442, 1828, 279, 7155, 17462, 18, 225, 11511, 9133, 18, 1132, 358, 1053, 309, 6873, 18, 3536, 9133, 273, 365, 18, 11254, 2, -100, -100, -100, ...
always = True
self.always = True
def save(self, text, page, comment, minorEdit=True, botflag=True): # only save if something was changed if text != page.get(): # Show the title of the page we're working on. # Highlight the title in purple. pywikibot.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title()) # show what was changed pywikibot....
1c05adc98f14f29e2297cfcb04c033d22613f3ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/1c05adc98f14f29e2297cfcb04c033d22613f3ca/commonscat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 977, 16, 1363, 16, 2879, 16, 8439, 4666, 33, 5510, 16, 2512, 6420, 33, 5510, 4672, 468, 1338, 1923, 309, 5943, 1703, 3550, 309, 977, 480, 1363, 18, 588, 13332, 468,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 12, 2890, 16, 977, 16, 1363, 16, 2879, 16, 8439, 4666, 33, 5510, 16, 2512, 6420, 33, 5510, 4672, 468, 1338, 1923, 309, 5943, 1703, 3550, 309, 977, 480, 1363, 18, 588, 13332, 468,...
self.assertEqual(LI.LoadImages().variable_revision_number,2,"LoadImages' version number has changed")
self.assertEqual(LI.LoadImages().variable_revision_number,3,"LoadImages' version number has changed")
def test_00_01version(self): self.assertEqual(LI.LoadImages().variable_revision_number,2,"LoadImages' version number has changed")
1842279c159b85f8be31eabf25aea8d9a9f09b54 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2870/1842279c159b85f8be31eabf25aea8d9a9f09b54/test_loadimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 713, 67, 1611, 1589, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2053, 18, 2563, 8946, 7675, 6105, 67, 13057, 67, 2696, 16, 23, 10837, 2563, 8946, 11, 1177, 1300, 711, 3550, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 713, 67, 1611, 1589, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2053, 18, 2563, 8946, 7675, 6105, 67, 13057, 67, 2696, 16, 23, 10837, 2563, 8946, 11, 1177, 1300, 711, 3550, 79...
def stringToControl(s):
def stringToControl(s, safe=False):
def stringToControl(s): try: wx.USE_UNICODE, UnicodeError except (AttributeError, NameError): return s if wx.USE_UNICODE: try: return unicode(s) except UnicodeError, err: try: spec = coding_spec(s) return s.decode(spec) except UnicodeError, err: raise Exception, 'Unable to decode unicode string, please change '\ 'the ...
2880a79b57fa42c3ae86a32a9f44503e1df55435 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2880a79b57fa42c3ae86a32a9f44503e1df55435/Utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14134, 3367, 12, 87, 16, 4183, 33, 8381, 4672, 775, 30, 7075, 18, 8001, 67, 26642, 16, 9633, 668, 1335, 261, 1499, 668, 16, 25473, 4672, 327, 272, 225, 309, 7075, 18, 8001, 67, 26642, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14134, 3367, 12, 87, 16, 4183, 33, 8381, 4672, 775, 30, 7075, 18, 8001, 67, 26642, 16, 9633, 668, 1335, 261, 1499, 668, 16, 25473, 4672, 327, 272, 225, 309, 7075, 18, 8001, 67, 26642, ...
return [x[0].explain() for x in self.usedRules]
result = [x[0].explain() for x in self.usedRules] if any(x[0].debug for x in self.usedRules): result.append(str(self)) return result
def explain(self): return [x[0].explain() for x in self.usedRules]
5c6cb8467d499ebc4f002edf9d98b275f5ff2dbc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/5c6cb8467d499ebc4f002edf9d98b275f5ff2dbc/scoringengine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19765, 12, 2890, 4672, 327, 306, 92, 63, 20, 8009, 338, 7446, 1435, 364, 619, 316, 365, 18, 3668, 4478, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19765, 12, 2890, 4672, 327, 306, 92, 63, 20, 8009, 338, 7446, 1435, 364, 619, 316, 365, 18, 3668, 4478, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
print "STATUS: Versions are the same. No upgrade necessary."
print "Status: Versions are the same. No upgrade necessary."
#print "WARNING: cannot upgrade %s. upgrade def not found. skipping" % \
af98851618b632afb0a950644c796b7c633ace40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/af98851618b632afb0a950644c796b7c633ace40/upgrade-db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 1188, 315, 9511, 30, 2780, 8400, 738, 87, 18, 8400, 1652, 486, 1392, 18, 14195, 6, 738, 521, 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, 468, 1188, 315, 9511, 30, 2780, 8400, 738, 87, 18, 8400, 1652, 486, 1392, 18, 14195, 6, 738, 521, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print(self.type + b" " + self.path.encode('utf-8') + b" " + self.version)
logger.debug(self.type + b" " + self.path.encode('utf-8') + b" " + self.version)
def print(self): print(self.type + b" " + self.path.encode('utf-8') + b" " + self.version) for i in self.headers: print(i + b":" + self.headers[i])
6503db549e45c7b35361eac9e4aa36af968eb65e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8801/6503db549e45c7b35361eac9e4aa36af968eb65e/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 12, 2890, 4672, 1194, 18, 4148, 12, 2890, 18, 723, 397, 324, 6, 315, 397, 365, 18, 803, 18, 3015, 2668, 3158, 17, 28, 6134, 397, 324, 6, 315, 397, 365, 18, 1589, 13, 364, 277...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 12, 2890, 4672, 1194, 18, 4148, 12, 2890, 18, 723, 397, 324, 6, 315, 397, 365, 18, 803, 18, 3015, 2668, 3158, 17, 28, 6134, 397, 324, 6, 315, 397, 365, 18, 1589, 13, 364, 277...
if (err[0] == socket.SSL_ERROR_ZERO_RETURN or err[0] == socket.SSL_ERROR_EOF):
if (err_type == socket.SSL_ERROR_ZERO_RETURN or err_type == socket.SSL_ERROR_EOF):
def _read(self): buf = '' # put in a loop so that we retry on transient errors while True: try: buf = self._ssl.read(self._bufsize) except socket.sslerror as err: if (err[0] == socket.SSL_ERROR_WANT_READ or err[0] == socket.SSL_ERROR_WANT_WRITE): continue if (err[0] == socket.SSL_ERROR_ZERO_RETURN or err[0] == socket.S...
80a93034fe2b56c4178335fafeb9141619e29d63 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/80a93034fe2b56c4178335fafeb9141619e29d63/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 12, 2890, 4672, 1681, 273, 875, 468, 1378, 316, 279, 2798, 1427, 716, 732, 3300, 603, 12315, 1334, 1323, 1053, 30, 775, 30, 1681, 273, 365, 6315, 8157, 18, 896, 12, 2890, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 12, 2890, 4672, 1681, 273, 875, 468, 1378, 316, 279, 2798, 1427, 716, 732, 3300, 603, 12315, 1334, 1323, 1053, 30, 775, 30, 1681, 273, 365, 6315, 8157, 18, 896, 12, 2890, 631...
rec.set({"ana_id": 1, "B01001": 12, "B01002": 123, "B01019": "Test of long station name"})
rec.set({"ana_id": 1, "B01001": 12, "B01002": 123, "B01019": "Test of long station name", "rep_cod": 1})
def setUp(self): # We want a predictable dataset random.seed(1) rattr = random.Random() rattr.seed(1)
861e944c912b0723d3932eb6c9e6cd1af1f59e5c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2863/861e944c912b0723d3932eb6c9e6cd1af1f59e5c/test-volnd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 468, 1660, 2545, 279, 7810, 429, 3709, 2744, 18, 12407, 12, 21, 13, 436, 1747, 273, 2744, 18, 8529, 1435, 436, 1747, 18, 12407, 12, 21, 13, 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, 24292, 12, 2890, 4672, 468, 1660, 2545, 279, 7810, 429, 3709, 2744, 18, 12407, 12, 21, 13, 436, 1747, 273, 2744, 18, 8529, 1435, 436, 1747, 18, 12407, 12, 21, 13, 2, -100, -100, -100, ...
elif pattern[index] == 'sS':
elif pattern[index] in 'sS':
def compile(pattern, flags=0): stack = [] index = 0 label = 0 register = 1 groupindex = {} callouts = [] while (index < len(pattern)): char = pattern[index] index = index + 1 if char == '\\': if index < len(pattern): next = pattern[index] index = index + 1 if next == 't': stack.append([Exact(chr(9))]) elif next == 'n'...
65c28b7efb290f5eadf538f14514c9a48bb0f1d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/65c28b7efb290f5eadf538f14514c9a48bb0f1d7/re.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 12, 4951, 16, 2943, 33, 20, 4672, 2110, 273, 5378, 770, 273, 374, 1433, 273, 374, 1744, 273, 404, 1041, 1615, 273, 2618, 1443, 383, 12940, 273, 5378, 1323, 261, 1615, 411, 562, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4074, 12, 4951, 16, 2943, 33, 20, 4672, 2110, 273, 5378, 770, 273, 374, 1433, 273, 374, 1744, 273, 404, 1041, 1615, 273, 2618, 1443, 383, 12940, 273, 5378, 1323, 261, 1615, 411, 562, 1...
trace = list(enumerate(t for i,t in trace))
trace = list(enumerate(t for i, t in trace))
def remake_trace(trace): trace = list(enumerate(t for i,t in trace)) tbs = make_tbs(trace) tbdict = make_tbdict(tbs) cfg = make_cfg(tbs) return trace, tbs, tbdict, cfg
63b309d6f3838e4cb5c2921faf3bb1472f46245c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4260/63b309d6f3838e4cb5c2921faf3bb1472f46245c/newslice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 849, 911, 67, 5129, 12, 5129, 4672, 2606, 273, 666, 12, 7924, 12600, 12, 88, 364, 277, 16, 268, 316, 2606, 3719, 268, 2038, 273, 1221, 67, 88, 2038, 12, 5129, 13, 8739, 1576, 273, 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, 849, 911, 67, 5129, 12, 5129, 4672, 2606, 273, 666, 12, 7924, 12600, 12, 88, 364, 277, 16, 268, 316, 2606, 3719, 268, 2038, 273, 1221, 67, 88, 2038, 12, 5129, 13, 8739, 1576, 273, 12...
[4,8,17,25,0].transpose() = [[1, -3, 0, -11, -8], * [x_0,x_1,x_2,x_3,x_4].transpose [0, 1, 0, -10, -2],
[4,8,17,25,0].transpose() = [[-1, 0, 0, -11, -8], * [x_0,x_1,x_2,x_3,x_4].transpose [0, -1, 0, -10, 0],
def GetLinearEquations(state_space_at_current_level,sigma, level): """ Output a constant vector (made up of kappa_ij 's), and a dimension*dimension matrix each row of which composes of coefficients of the unknown (which in this case is P(F|z) Input Parameters ----------------- state_space_at_current_level A list conta...
7faf202b1836f91fc50c86fe3b92f5a5d79dc08b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7945/7faf202b1836f91fc50c86fe3b92f5a5d79dc08b/cjumpchain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 15982, 13142, 1012, 12, 2019, 67, 2981, 67, 270, 67, 2972, 67, 2815, 16, 13201, 16, 1801, 4672, 3536, 3633, 279, 5381, 3806, 261, 81, 2486, 731, 434, 23125, 67, 8302, 296, 87, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 968, 15982, 13142, 1012, 12, 2019, 67, 2981, 67, 270, 67, 2972, 67, 2815, 16, 13201, 16, 1801, 4672, 3536, 3633, 279, 5381, 3806, 261, 81, 2486, 731, 434, 23125, 67, 8302, 296, 87, 363...
self.build_action_dag(job_run)
self.build_action_dag(job_run, actions)
def build_run(self, node=None): job_run = JobRun(self) job_run.node = node or self.node_pool.next()
c24c6174f0d18dcac30704bbe2b220956db34191 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14977/c24c6174f0d18dcac30704bbe2b220956db34191/job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2681, 12, 2890, 16, 756, 33, 7036, 4672, 1719, 67, 2681, 273, 3956, 1997, 12, 2890, 13, 1719, 67, 2681, 18, 2159, 273, 756, 578, 365, 18, 2159, 67, 6011, 18, 4285, 1435, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2681, 12, 2890, 16, 756, 33, 7036, 4672, 1719, 67, 2681, 273, 3956, 1997, 12, 2890, 13, 1719, 67, 2681, 18, 2159, 273, 756, 578, 365, 18, 2159, 67, 6011, 18, 4285, 1435, 2,...
c.fs.rebind(c.fs.model, data=request.params)
c.fs = c.fs.bind(data=request.params)
def edit(self, modelname, id=None): fs = self._model_fieldsets[modelname] S = self._session if id: instance = S.query(fs.model.__class__).get(id) c.fs = fs.bind(instance) else: c.fs = fs.bind(fs.model.__class__) S.save(c.fs.model) if request.method == 'POST': c.fs.rebind(c.fs.model, data=request.params) log.debug('savi...
57d929b6c07eaa54b6fed5c824506cbde1cc3d62 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13203/57d929b6c07eaa54b6fed5c824506cbde1cc3d62/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 938, 529, 16, 612, 33, 7036, 4672, 2662, 273, 365, 6315, 2284, 67, 1518, 4424, 63, 2284, 529, 65, 348, 273, 365, 6315, 3184, 309, 612, 30, 791, 273, 348, 18, 2271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3874, 12, 2890, 16, 938, 529, 16, 612, 33, 7036, 4672, 2662, 273, 365, 6315, 2284, 67, 1518, 4424, 63, 2284, 529, 65, 348, 273, 365, 6315, 3184, 309, 612, 30, 791, 273, 348, 18, 2271...
def compile_dir(dir, maxlevels=10, ddir=None, force=0, rx=None):
def compile_dir(dir, maxlevels=10, ddir=None, force=0, rx=None, quiet=0):
def compile_dir(dir, maxlevels=10, ddir=None, force=0, rx=None): """Byte-compile all modules in the given directory tree. Arguments (only dir is required): dir: the directory to byte-compile maxlevels: maximum recursion level (default 10) ddir: if given, purported directory name (this is the directory name...
0f9b0fd3c2a89f138e2ebe25a20280803a090026 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0f9b0fd3c2a89f138e2ebe25a20280803a090026/compileall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 1214, 12, 1214, 16, 943, 12095, 33, 2163, 16, 302, 1214, 33, 7036, 16, 2944, 33, 20, 16, 8581, 33, 7036, 16, 10902, 33, 20, 4672, 3536, 3216, 17, 11100, 777, 4381, 316, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4074, 67, 1214, 12, 1214, 16, 943, 12095, 33, 2163, 16, 302, 1214, 33, 7036, 16, 2944, 33, 20, 16, 8581, 33, 7036, 16, 10902, 33, 20, 4672, 3536, 3216, 17, 11100, 777, 4381, 316, 326...
expected = 'In 3.x, hex() converts the result of __index__ to hexidecimal.'
expected = 'In 3.x, hex() converts the result of __index__ to hexadecimal.'
def __oct__(self): return "07"
d5ba5fbd50df9d0e8afc19ff1ca0f0f272c8053d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/d5ba5fbd50df9d0e8afc19ff1ca0f0f272c8053d/test_py3kwarn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 13410, 972, 12, 2890, 4672, 327, 315, 8642, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 13410, 972, 12, 2890, 4672, 327, 315, 8642, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.body.append(graph.to_latex(self._directory)
self.body.append(graph.to_latex(self._directory))
def visit_dotgraph(self, node): if self._directory is None: raise SkipNode() # [xx] warning? # Generate the graph. graph = node.graph(self._docindex, self._context, self._linker) if graph is None: raise SkipNode() # Write the graph. self.body.append(graph.to_latex(self._directory) raise SkipNode()
e922205159088d5f9025bbb0e8ea54a9876db034 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11420/e922205159088d5f9025bbb0e8ea54a9876db034/restructuredtext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 9811, 4660, 12, 2890, 16, 756, 4672, 309, 365, 6315, 5149, 353, 599, 30, 1002, 6611, 907, 1435, 468, 306, 5279, 65, 3436, 35, 225, 468, 6654, 326, 2667, 18, 2667, 273, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 67, 9811, 4660, 12, 2890, 16, 756, 4672, 309, 365, 6315, 5149, 353, 599, 30, 1002, 6611, 907, 1435, 468, 306, 5279, 65, 3436, 35, 225, 468, 6654, 326, 2667, 18, 2667, 273, 756, ...
self.modified = 0 self.nocalc = 0
self.modified = False self.nocalc = False
def loadFromXML(self, template): self.initialize(1) self.OutfitName.clear() racename = '' classname = '' self.outfitlist = [] self.outfitnumbering = 1 self.currentOutfit = 0 self.itemnumbering = 1 itemdefault = self.itemattrlist.copy() for child in template.childNodes: if child.nodeType == Node.TEXT_NODE: continue if c...
cdc9cf773cf0c254cf668f14ba48aa9d538724e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6671/cdc9cf773cf0c254cf668f14ba48aa9d538724e6/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24935, 4201, 12, 2890, 16, 1542, 4672, 365, 18, 11160, 12, 21, 13, 365, 18, 1182, 7216, 461, 18, 8507, 1435, 767, 71, 1069, 273, 875, 7479, 273, 875, 365, 18, 659, 7216, 1098, 273, 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, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24935, 4201, 12, 2890, 16, 1542, 4672, 365, 18, 11160, 12, 21, 13, 365, 18, 1182, 7216, 461, 18, 8507, 1435, 767, 71, 1069, 273, 875, 7479, 273, 875, 365, 18, 659, 7216, 1098, 273, 5...
control = can_do_verif_ypin(hCard)
control = can_do_verify_ypin(hCard)
def verifypin(hCard, control=None): if None==control: control = can_do_verif_ypin(hCard) if (None == control): raise error, "Not a pinpad" hresult, response = SCardControl(hcard, control, []) if hresult!=SCARD_S_SUCCESS: raise error, 'SCardControl failed: ' + SCardGetErrorMessage(hresult) return hresult, response
425a45146d2eab532a962be88c683facd8aa2b3f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3537/425a45146d2eab532a962be88c683facd8aa2b3f/sample_pinpad.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1924, 430, 879, 267, 12, 76, 6415, 16, 3325, 33, 7036, 4672, 309, 599, 631, 7098, 30, 3325, 273, 848, 67, 2896, 67, 8705, 67, 879, 267, 12, 76, 6415, 13, 309, 261, 7036, 422, 3325, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1924, 430, 879, 267, 12, 76, 6415, 16, 3325, 33, 7036, 4672, 309, 599, 631, 7098, 30, 3325, 273, 848, 67, 2896, 67, 8705, 67, 879, 267, 12, 76, 6415, 13, 309, 261, 7036, 422, 3325, ...
pat = sre.compile('a(?:b|(c|e){1,2}?|d)+?(.)')
pat = sre.compile(r'a(?:b|(c|e){1,2}?|d)+?(.)')
def bump_num(matchobj): int_value = int(matchobj.group(0)) return str(int_value + 1)
0a2834dcd5225e58ecbabd8284a9268fcf954294 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0a2834dcd5225e58ecbabd8284a9268fcf954294/test_sre.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23559, 67, 2107, 12, 1916, 2603, 4672, 509, 67, 1132, 273, 509, 12, 1916, 2603, 18, 1655, 12, 20, 3719, 327, 609, 12, 474, 67, 1132, 397, 404, 13, 225, 2, 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, 23559, 67, 2107, 12, 1916, 2603, 4672, 509, 67, 1132, 273, 509, 12, 1916, 2603, 18, 1655, 12, 20, 3719, 327, 609, 12, 474, 67, 1132, 397, 404, 13, 225, 2, -100, -100, -100, -100, -10...
glColor3f(0.4,0.4,0)
glColor3f(1,1,0)
def draw(self): from visualizer import * glBegin(GL_LINES) glColor3f(0.4,0.4,0) for p in self.trace: glVertex2f(p.x,p.y) glEnd()
7e4ade451b85e4cd3cc83c6ea54b9246b0fcafd7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5773/7e4ade451b85e4cd3cc83c6ea54b9246b0fcafd7/rail_controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 628, 11623, 1824, 1930, 380, 5118, 8149, 12, 11261, 67, 5997, 55, 13, 5118, 2957, 23, 74, 12, 21, 16, 21, 16, 20, 13, 364, 293, 316, 365, 18, 5129, 30, 5118, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3724, 12, 2890, 4672, 628, 11623, 1824, 1930, 380, 5118, 8149, 12, 11261, 67, 5997, 55, 13, 5118, 2957, 23, 74, 12, 21, 16, 21, 16, 20, 13, 364, 293, 316, 365, 18, 5129, 30, 5118, ...
event.Skip()
def _handlerModulesListBoxMouseEvents(self, event): if not event.Dragging(): # if no dragging is taking place, let somebody else # handle this event... event.Skip() return mlb = self._modulePaletteFrame.modulesListBox
59eda2a59f19c6b32388b4fe2e620352a7076628 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/59eda2a59f19c6b32388b4fe2e620352a7076628/graphEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4176, 7782, 682, 3514, 9186, 3783, 12, 2890, 16, 871, 4672, 309, 486, 871, 18, 11728, 1998, 13332, 468, 309, 1158, 25434, 353, 13763, 3166, 16, 2231, 2690, 3432, 469, 468, 1640, 333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 4176, 7782, 682, 3514, 9186, 3783, 12, 2890, 16, 871, 4672, 309, 486, 871, 18, 11728, 1998, 13332, 468, 309, 1158, 25434, 353, 13763, 3166, 16, 2231, 2690, 3432, 469, 468, 1640, 333...
elif ext == '.yaml':
elif ext == '.yml':
def load_module_graph(cr, graph, status=None, perform_checks=True, **kwargs): # **kwargs is passed directly to convert_xml_import if not status: status = {} status = status.copy() package_todo = [] statusi = 0 pool = pooler.get_pool(cr.dbname) migrations = MigrationManager(cr, graph) has_updates = False modobj = Non...
53c50946a894d70b3047d4cce80142702f41787b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/53c50946a894d70b3047d4cce80142702f41787b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 2978, 67, 4660, 12, 3353, 16, 2667, 16, 1267, 33, 7036, 16, 3073, 67, 12366, 33, 5510, 16, 2826, 4333, 4672, 468, 2826, 4333, 353, 2275, 5122, 358, 1765, 67, 2902, 67, 5666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 67, 2978, 67, 4660, 12, 3353, 16, 2667, 16, 1267, 33, 7036, 16, 3073, 67, 12366, 33, 5510, 16, 2826, 4333, 4672, 468, 2826, 4333, 353, 2275, 5122, 358, 1765, 67, 2902, 67, 5666, ...
log.error("new file %s conflicts with file on head of branch" % realPath)
self.errors.append("new file %s conflicts with file on " + "head of branch" % realPath)
def _singlePackage(self, repos, pkgCs, changeSet, basePkg, fsPkg, root):
9e9969f45daafddcbb99e4e9dc5b3d6042825259 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/9e9969f45daafddcbb99e4e9dc5b3d6042825259/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7526, 2261, 12, 2890, 16, 13686, 16, 3475, 14272, 16, 26104, 16, 1026, 11264, 16, 2662, 11264, 16, 1365, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7526, 2261, 12, 2890, 16, 13686, 16, 3475, 14272, 16, 26104, 16, 1026, 11264, 16, 2662, 11264, 16, 1365, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
[Local data at Fractional ideal (-3*i - 2):
[Local data at Fractional ideal (2*i + 1): Reduction type: bad non-split multiplicative Local minimal model: Elliptic Curve defined by y^2 + (i+1)*x*y + y = x^3 over Number Field in i with defining polynomial x^2 + 1 Minimal discriminant valuation: 1 Conductor exponent: 1 Kodaira Symbol: I1 Tamagawa Number: 1, Local da...
def local_data(self, P=None, proof = None): r""" Local data for this elliptic curve at the prime `P`.
cf244127e9bb9f967ada740d4a81d0e96d5dcab8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/cf244127e9bb9f967ada740d4a81d0e96d5dcab8/ell_number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 892, 12, 2890, 16, 453, 33, 7036, 16, 14601, 273, 599, 4672, 436, 8395, 3566, 501, 364, 333, 415, 549, 21507, 8882, 622, 326, 17014, 1375, 52, 8338, 2, 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, 1191, 67, 892, 12, 2890, 16, 453, 33, 7036, 16, 14601, 273, 599, 4672, 436, 8395, 3566, 501, 364, 333, 415, 549, 21507, 8882, 622, 326, 17014, 1375, 52, 8338, 2, -100, -100, -100, -100...
- resp: server response if succesful
- resp: server response if successful
def group(self, name): """Process a GROUP command. Argument: - group: the group name Returns: - resp: server response if succesful - count: number of articles (string) - first: first article number (string) - last: last article number (string) - name: the group name"""
2b9ab6deeb822299ae8e193ffb4fa9d7bd4be97e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/2b9ab6deeb822299ae8e193ffb4fa9d7bd4be97e/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1041, 12, 2890, 16, 508, 4672, 3536, 2227, 279, 13839, 1296, 18, 225, 5067, 30, 300, 1041, 30, 326, 1041, 508, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 300, 1056, 30, 1300, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1041, 12, 2890, 16, 508, 4672, 3536, 2227, 279, 13839, 1296, 18, 225, 5067, 30, 300, 1041, 30, 326, 1041, 508, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 300, 1056, 30, 1300, 434, ...
"""
'''
def testSkinResource(self): self.assertEqual( queryResource('test', request, None), None)
1cfc7ddd1cac0110cca3e909215477e1c59bbca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/1cfc7ddd1cac0110cca3e909215477e1c59bbca3/test_directives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 26827, 1420, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 843, 1420, 2668, 3813, 2187, 590, 16, 599, 3631, 599, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 26827, 1420, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 843, 1420, 2668, 3813, 2187, 590, 16, 599, 3631, 599, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
'flushing')
'flushing', 'showingStill')
def push(self, value): """Push back 'value' into the iterator""" self.pushedBack.append(value)
8f9c212b3a2e0be3006d8042e7c380d06ae645ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/8f9c212b3a2e0be3006d8042e7c380d06ae645ac/manager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 12, 2890, 16, 460, 4672, 3536, 7621, 1473, 296, 1132, 11, 1368, 326, 2775, 8395, 365, 18, 6206, 329, 2711, 18, 6923, 12, 1132, 13, 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, 0, 0, 0, 0, 0, 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, 1817, 12, 2890, 16, 460, 4672, 3536, 7621, 1473, 296, 1132, 11, 1368, 326, 2775, 8395, 365, 18, 6206, 329, 2711, 18, 6923, 12, 1132, 13, 2, -100, -100, -100, -100, -100, -100, -100, -1...
print obj, dir(obj)
def _checkId(self, id, allow_dup=0): # If allow_dup is false, an error will be raised if an object # with the given id already exists. If allow_dup is true, # only check that the id string contains no illegal chars; # _checkId() will be called again later with allow_dup # set to false before the object is added. if not...
855c12810245c7d85a54d4e71fc969a41f147972 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/855c12810245c7d85a54d4e71fc969a41f147972/ObjectManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 548, 12, 2890, 16, 612, 16, 1699, 67, 26427, 33, 20, 4672, 468, 971, 1699, 67, 26427, 353, 629, 16, 392, 555, 903, 506, 11531, 309, 392, 733, 468, 598, 326, 864, 612, 1818...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 548, 12, 2890, 16, 612, 16, 1699, 67, 26427, 33, 20, 4672, 468, 971, 1699, 67, 26427, 353, 629, 16, 392, 555, 903, 506, 11531, 309, 392, 733, 468, 598, 326, 864, 612, 1818...
sage: g.coeffs()
sage: g.coefficients()
def polynomial(self, base_ring): r""" Return \code{self} as an algebraic polynomial over the given base ring, if possible.
2e32b7247af3731db881ec5bd651880a8fc8c790 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2e32b7247af3731db881ec5bd651880a8fc8c790/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16991, 12, 2890, 16, 1026, 67, 8022, 4672, 436, 8395, 2000, 521, 710, 95, 2890, 97, 487, 392, 524, 29087, 335, 16991, 1879, 326, 864, 1026, 9221, 16, 309, 3323, 18, 2, 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, 16991, 12, 2890, 16, 1026, 67, 8022, 4672, 436, 8395, 2000, 521, 710, 95, 2890, 97, 487, 392, 524, 29087, 335, 16991, 1879, 326, 864, 1026, 9221, 16, 309, 3323, 18, 2, -100, -100, -100...
data = StripLineSep(string.lstrip(data))
data = StripLineSep(data[1:])
def ParseLDIF(f,ignore_attrs=[],maxentries=0): """ Parse LDIF data read from file object f f file-object for reading LDIF input ignore_attrs list of attributes to be ignored maxentries if non-zero specifies the maximum number of entries to be read from f """ result = [] # lower-case all ignore_attrs = map(string.low...
21bfd496471feb52fb1512e489fd0ce44f7d6e67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4610/21bfd496471feb52fb1512e489fd0ce44f7d6e67/ldif.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 48, 2565, 42, 12, 74, 16, 6185, 67, 7039, 22850, 6487, 1896, 8219, 33, 20, 4672, 3536, 2884, 511, 2565, 42, 501, 855, 628, 585, 733, 284, 225, 284, 585, 17, 1612, 364, 6453, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2884, 48, 2565, 42, 12, 74, 16, 6185, 67, 7039, 22850, 6487, 1896, 8219, 33, 20, 4672, 3536, 2884, 511, 2565, 42, 501, 855, 628, 585, 733, 284, 225, 284, 585, 17, 1612, 364, 6453, 51...
def run_parallel(dbdir, cells, querydir, querysift, outputFilePaths, params, num_threads=4):
def run_parallel(dbdir, cells, querydir, querysift, outputFilePaths, params, num_threads=8):
def run_parallel(dbdir, cells, querydir, querysift, outputFilePaths, params, num_threads=4): semaphore = threading.Semaphore(num_threads) threads = [] for cell, outputFilePath in zip(cells, outputFilePaths): if not os.path.exists(outputFilePath): thread = Query(dbdir, cell, querydir, querysift, outputFilePath, params, ...
6ecc92bdac1abbbc888f8f80ee69dae1eb00f4b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10532/6ecc92bdac1abbbc888f8f80ee69dae1eb00f4b7/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 18054, 12, 1966, 1214, 16, 5983, 16, 843, 1214, 16, 843, 87, 2136, 16, 15047, 4466, 16, 859, 16, 818, 67, 12495, 33, 28, 4672, 28921, 273, 17254, 18, 13185, 18837, 12, 2107, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18054, 12, 1966, 1214, 16, 5983, 16, 843, 1214, 16, 843, 87, 2136, 16, 15047, 4466, 16, 859, 16, 818, 67, 12495, 33, 28, 4672, 28921, 273, 17254, 18, 13185, 18837, 12, 2107, ...
self.wants_agg_std_dev, self.objects_choice]
self.wants_agg_std_dev, self.wants_agg_mean_well, self.wants_agg_median_well, self.wants_agg_std_dev_well, self.objects_choice]
def visible_settings(self): needs_default_output_directory =\ (self.db_type != DB_MYSQL or self.store_csvs.value or self.save_cpa_properties.value) result = [self.db_type] if self.db_type==DB_MYSQL: if HAS_MYSQL_DB: result += [self.store_csvs] else: result += [self.mysql_not_available] if self.store_csvs.value or not H...
d6b5f5226b5e4529a78162bf31dbd49fc7b89523 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2870/d6b5f5226b5e4529a78162bf31dbd49fc7b89523/exporttodatabase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6021, 67, 4272, 12, 2890, 4672, 4260, 67, 1886, 67, 2844, 67, 5149, 273, 64, 261, 2890, 18, 1966, 67, 723, 480, 2383, 67, 22114, 3997, 578, 365, 18, 2233, 67, 6715, 87, 18, 1132, 578...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6021, 67, 4272, 12, 2890, 4672, 4260, 67, 1886, 67, 2844, 67, 5149, 273, 64, 261, 2890, 18, 1966, 67, 723, 480, 2383, 67, 22114, 3997, 578, 365, 18, 2233, 67, 6715, 87, 18, 1132, 578...
IM_lines = [unicode(line) for line in IM_lines]
IM_lines = [unicode(line, cur_encoding) for line in IM_lines]
def ConfigAvailFonts(self): """Determine fonts that are available in both wx.Python and ImageMagick.""" # Find the shared fonts between ImageMagick and wx.Python ########################################################### # IM and wx store their available fonts differently, so we need a # dictionary that maps the wx na...
679ba71ea6911c34c77dffe6e6cff17d79e61edf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4675/679ba71ea6911c34c77dffe6e6cff17d79e61edf/configs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1903, 3769, 671, 5711, 87, 12, 2890, 4672, 3536, 8519, 16450, 716, 854, 2319, 316, 3937, 7075, 18, 15774, 471, 3421, 11372, 1200, 12123, 468, 4163, 326, 5116, 16450, 3086, 3421, 11372, 120...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1903, 3769, 671, 5711, 87, 12, 2890, 4672, 3536, 8519, 16450, 716, 854, 2319, 316, 3937, 7075, 18, 15774, 471, 3421, 11372, 1200, 12123, 468, 4163, 326, 5116, 16450, 3086, 3421, 11372, 120...
if not closeScope(scopes, ' printScopeError('
if not closeScope(scopes, ' printScopeError('
#enddef - closes a scope
0102da6ad83060d3ae0feccfa3d8643ce7252178 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9355/0102da6ad83060d3ae0feccfa3d8643ce7252178/wmliterator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 409, 536, 300, 13445, 279, 2146, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 409, 536, 300, 13445, 279, 2146, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
We can also create spaces corresponding to the groups `\GammaH(N)` intermediate
We can also create spaces corresponding to the groups `\Gamma_H(N)` intermediate
def ModularForms(group = 1, weight = 2, base_ring = None, use_cache = True, prec = defaults.DEFAULT_PRECISION): r""" Create an ambient space of modular forms. INPUT: - ``group`` - A congruence subgroup or a Dirichlet character eps. - ``weight`` - int, the weight, which must be an integer = 1. - ``base_ring`` -...
85a7ba1c22c2f4ed1319f21ffb2202f6b33066a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/85a7ba1c22c2f4ed1319f21ffb2202f6b33066a8/constructor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3431, 2490, 18529, 12, 1655, 225, 273, 404, 16, 3119, 273, 576, 16, 1026, 67, 8022, 273, 599, 16, 999, 67, 2493, 273, 1053, 16, 13382, 273, 3467, 18, 5280, 67, 3670, 26913, 4672, 436, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3431, 2490, 18529, 12, 1655, 225, 273, 404, 16, 3119, 273, 576, 16, 1026, 67, 8022, 273, 599, 16, 999, 67, 2493, 273, 1053, 16, 13382, 273, 3467, 18, 5280, 67, 3670, 26913, 4672, 436, ...
def get_widget_data(self): index = self.widget.get_active() if index < 0: return Undefined else: model = self.widget.get_model() return model[index][1] def set_widget_data(self, data): try: index = self.values.index(data) except: index = -1 self.widget.set_active(index) class Display_Bool_As_Combobox(As_Combobox,...
def create_widget(self): return gtk.ComboBox()
5bbfb1b188c0bc1ccd63f8c4b180da540b762941 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2510/5bbfb1b188c0bc1ccd63f8c4b180da540b762941/checkwidgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6587, 12, 2890, 4672, 327, 22718, 18, 22199, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 752, 67, 6587, 12, 2890, 4672, 327, 22718, 18, 22199, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
order = self.pool.get('pos.order').browse(cr, uid, active_id) if order.amount_total == order.amount_paid: res['arch'] = """ <form string="Make Payment" colspan="4"> <group col="2" colspan="2"> <label string="Do you want to print the Receipt?" colspan="4"/> <separator colspan="4"/> <button icon="gtk-cancel" special="can...
try: order = self.pool.get('pos.order').browse(cr, uid, active_id) if order.amount_total == order.amount_paid: res['arch'] = """ <form string="Make Payment" colspan="4"> <group col="2" colspan="2"> <label string="Do you want to print the Receipt?" colspan="4"/> <separator colspan="4"/> <button icon="gtk-cancel" special...
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): """ Changes the view dynamically @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param context: A standard dictionary @return: New arch of view....
56ded53b7c4ecc641bb26ee15d6f0d72b900ebed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/56ded53b7c4ecc641bb26ee15d6f0d72b900ebed/pos_payment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1466, 67, 1945, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1476, 67, 350, 33, 7036, 16, 1476, 67, 723, 2218, 687, 2187, 819, 33, 7036, 16, 12748, 33, 8381, 16, 27539, 33, 8381, 4672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1466, 67, 1945, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1476, 67, 350, 33, 7036, 16, 1476, 67, 723, 2218, 687, 2187, 819, 33, 7036, 16, 12748, 33, 8381, 16, 27539, 33, 8381, 4672,...
proxies['https'] = 'http://%s' % proxyServer
proxies['https'] = 'https://%s' % proxyServer
def getproxies_registry(): """Return a dictionary of scheme -> proxy server URL mappings.
fe91c5fb4a770aec6a1bbfdd9b9f2c4fae4d9434 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/fe91c5fb4a770aec6a1bbfdd9b9f2c4fae4d9434/request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 20314, 606, 67, 9893, 13332, 3536, 990, 279, 3880, 434, 4355, 317, 2889, 1438, 1976, 7990, 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...
[ 1, 1, 1, 1, 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, 336, 20314, 606, 67, 9893, 13332, 3536, 990, 279, 3880, 434, 4355, 317, 2889, 1438, 1976, 7990, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
j_3 + abs(m_3))
j_3 + abs(m_3))
def wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculate the Wigner 3j symbol `Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3)`. INPUT: - ``j_1``, ``j_2``, ``j_3``, ``m_1``, ``m_2``, ``m_3`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculat...
7df69c5c6f107763eb9f25a2174930b0961c0f48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7df69c5c6f107763eb9f25a2174930b0961c0f48/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 23, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 23, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
pos=wxPoint(0, 0), size=wxSize(142, 99), style=0) self.staticBox1.SetConstraints(LayoutAnchors(self.staticBox1, false, true, true, false))
pos=wxPoint(0, 0), size=wxSize(157, 112), style=0) self.staticBox1.SetConstraints(LayoutAnchors(self.staticBox1, False, True, True, False))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi...
aac0471ac41eaa175cbaa05604248123746b2b22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/aac0471ac41eaa175cbaa05604248123746b2b22/STCStyleEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 16277, 87, 12, 2890, 16, 846, 496, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 612, 33, 27226, 734, 67, 882, 39, 15066, 10776...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 67, 16277, 87, 12, 2890, 16, 846, 496, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 612, 33, 27226, 734, 67, 882, 39, 15066, 10776...
distro_virt.setAttribute("value", True)
distro_virt.setAttribute("value", "1")
def _get_distro_requires(self): drs = xml.dom.minidom.parseString(self._distro_requires) # If no distro_virt is asked for default to Virt if not drs.getElementsByTagName("distro_virt"): distroRequires = self.doc.createElement("distroRequires") for dr in drs.getElementsByTagName("distroRequires"): for child in dr.childN...
892209f36b4774b95e2b60a143407bbfc6764703 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/892209f36b4774b95e2b60a143407bbfc6764703/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4413, 303, 67, 18942, 12, 2890, 4672, 5081, 87, 273, 2025, 18, 9859, 18, 1154, 350, 362, 18, 2670, 780, 12, 2890, 6315, 4413, 303, 67, 18942, 13, 468, 971, 1158, 27450, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4413, 303, 67, 18942, 12, 2890, 4672, 5081, 87, 273, 2025, 18, 9859, 18, 1154, 350, 362, 18, 2670, 780, 12, 2890, 6315, 4413, 303, 67, 18942, 13, 468, 971, 1158, 27450, ...
while len(unprocessed_pkgs) > 0: for pkg in unprocessed_pkgs.keys(): if not final_pkgobjs.has_key(pkg): final_pkgobjs[pkg] = None deplist = self.getPackageDeps(pkg) for dep in deplist: if not unprocessed_pkgs.has_key(dep) and not final_pkgobjs.has_key(dep): unprocessed_pkgs[dep] = None del unprocessed_pkgs[pkg]
moretoprocess = True while moretoprocess: for txmbr in self.tsInfo: if not final_pkgobjs.has_key(txmbr.po): final_pkgobjs[txmbr.po] = None self.getPackageDeps(txmbr.po) else: moretoprocess = False
def getPackageObjects(self): """Cycle through the list of packages, get package object matches, and resolve deps.
003ceaa7bee4cafe9e85a8ea126127235c6eb38a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8489/003ceaa7bee4cafe9e85a8ea126127235c6eb38a/gather.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11506, 4710, 12, 2890, 4672, 3536, 13279, 3059, 326, 666, 434, 5907, 16, 336, 2181, 733, 1885, 16, 471, 2245, 8740, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11506, 4710, 12, 2890, 4672, 3536, 13279, 3059, 326, 666, 434, 5907, 16, 336, 2181, 733, 1885, 16, 471, 2245, 8740, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
"Reorients the model so that it is viewed from the left side."\
"Orients the view to the Left View."\
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.default...
96ff78d555697c46c826ca601d43f083f34140a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/96ff78d555697c46c826ca601d43f083f34140a8/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, ...
LOG('MailBoxer', INFO, 'stripped, but not archiving attachment %s %s. Appeared to be part of an HTML message.' % (attachment['filename'], attachment['maintype']))
m = '%s (%s): stripped, but not archiving %s attachment '\ '%s; it appears to be part of an HTML message.' % \ (self.getProperty('title'), self.getId(), attachment['maintype'], attachment['filename']) log.info(m)
def manage_addMail(self, msg): """ Store mail & attachments in a folder and return it. """ archive = self.restrictedTraverse(self.getValueFor('storage'), default=None) if archive: mailObject = self._create_mailObject(msg, archive) ids = [] for attachment in msg.attachments: if attachment['filename'] == '' and attach...
022876f88e927316bd924ded9b9dc1cbc88f4167 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6274/022876f88e927316bd924ded9b9dc1cbc88f4167/XWFMailingList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 1289, 6759, 12, 2890, 16, 1234, 4672, 3536, 4994, 4791, 473, 10065, 316, 279, 3009, 471, 327, 518, 18, 225, 3536, 5052, 273, 365, 18, 29306, 29654, 12, 2890, 18, 24805, 1290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10680, 67, 1289, 6759, 12, 2890, 16, 1234, 4672, 3536, 4994, 4791, 473, 10065, 316, 279, 3009, 471, 327, 518, 18, 225, 3536, 5052, 273, 365, 18, 29306, 29654, 12, 2890, 18, 24805, 1290, ...
def delSliders(self): self.valFiltHigh = self.slideHigh.val self.valFiltLow = self.slideLow.val try: self.fig.delaxes(self.axHighpass) self.fig.delaxes(self.axLowpass) except: return def addSliders(self): self.axHighpass = self.fig.add_axes([0.63, 0.05, 0.30, 0.03], xscale='log') self.axLowpass = self.fig.add_axes([...
def delSliders(self): self.valFiltHigh = self.slideHigh.val self.valFiltLow = self.slideLow.val try: self.fig.delaxes(self.axHighpass) self.fig.delaxes(self.axLowpass) except: return
b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 3738, 24290, 12, 2890, 4672, 365, 18, 1125, 42, 4526, 8573, 273, 365, 18, 26371, 8573, 18, 1125, 365, 18, 1125, 42, 4526, 10520, 273, 365, 18, 26371, 10520, 18, 1125, 775, 30, 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, 1464, 3738, 24290, 12, 2890, 4672, 365, 18, 1125, 42, 4526, 8573, 273, 365, 18, 26371, 8573, 18, 1125, 365, 18, 1125, 42, 4526, 10520, 273, 365, 18, 26371, 10520, 18, 1125, 775, 30, 36...
refList = Ovf.getDict(references, None)['children'] diskList = Ovf.getDict(diskSection, None)['children']
refList = Ovf.getDict(references)['children'] diskList = Ovf.getDict(diskSection)['children']
def cleanupExtraDiskImages(dir, references, diskSection, configId=None): """ Check if any image file is referred more than once, and remove extra copies @param dir: directory path to Ovf file/disk image files @type dir: String @param configId: configuration name @type configId: String """ # Get file list from Referen...
b11918c759c74ee67c3db3b2d51ef80c2e83e7eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9789/b11918c759c74ee67c3db3b2d51ef80c2e83e7eb/OvfLibvirt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6686, 7800, 6247, 8946, 12, 1214, 16, 5351, 16, 4234, 5285, 16, 642, 548, 33, 7036, 4672, 3536, 2073, 309, 1281, 1316, 585, 353, 29230, 1898, 2353, 3647, 16, 471, 1206, 2870, 13200, 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, 6686, 7800, 6247, 8946, 12, 1214, 16, 5351, 16, 4234, 5285, 16, 642, 548, 33, 7036, 4672, 3536, 2073, 309, 1281, 1316, 585, 353, 29230, 1898, 2353, 3647, 16, 471, 1206, 2870, 13200, 225,...
return cls.query_objects(filter_data).count()
query = cls.query_objects(filter_data, initial_query=initial_query) return query.count()
def query_count(cls, filter_data): """\ Like query_objects, but retreive only the count of results. """ filter_data.pop('query_start', None) filter_data.pop('query_limit', None) return cls.query_objects(filter_data).count()
d4f598c0d25beef0d9b9a12ae00304a4088895f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/d4f598c0d25beef0d9b9a12ae00304a4088895f5/model_logic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 1883, 12, 6429, 16, 1034, 67, 892, 4672, 3536, 64, 23078, 843, 67, 6911, 16, 1496, 325, 266, 688, 1338, 326, 1056, 434, 1686, 18, 3536, 1034, 67, 892, 18, 5120, 2668, 2271, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 843, 67, 1883, 12, 6429, 16, 1034, 67, 892, 4672, 3536, 64, 23078, 843, 67, 6911, 16, 1496, 325, 266, 688, 1338, 326, 1056, 434, 1686, 18, 3536, 1034, 67, 892, 18, 5120, 2668, 2271, ...
stat_pos = PositionLabel(sb1, name = 'position', text = '', anchor = 'center', width=20, updatecb = canvas.GetCurrentPos) stat_pos.pack(side = LEFT, fill = X)
stat_pos = PositionLabel(sb1, name='position', text='', anchor='center', width=20, updatecb=canvas.GetCurrentPos) stat_pos.pack(side=LEFT, fill=X)
def build_status_bar(self): status_bar = self.status_bar canvas = self.canvas
5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2327, 67, 3215, 12, 2890, 4672, 1267, 67, 3215, 273, 365, 18, 2327, 67, 3215, 5953, 273, 365, 18, 15424, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2327, 67, 3215, 12, 2890, 4672, 1267, 67, 3215, 273, 365, 18, 2327, 67, 3215, 5953, 273, 365, 18, 15424, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'no-scan''])
'no-scan'])
def main(argv): """ The main daemon program. Keyword arguments: argv -- The arguments passed to the script. """ global child_pid do_daemonize = True redirect_stderr = True redirect_stdout = True auto_scan = True try: opts, args = getopt.getopt(sys.argv[1:], 'fenosP:', ['help', 'no-daemon', 'no-poll', 'no-stderr', 'n...
74925eaf8077cc70ef48056a2eb635fd20f392bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/353/74925eaf8077cc70ef48056a2eb635fd20f392bb/daemon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 3536, 1021, 2774, 8131, 5402, 18, 225, 18317, 1775, 30, 5261, 1493, 1021, 1775, 2275, 358, 326, 2728, 18, 225, 3536, 2552, 1151, 67, 6610, 741, 67, 21511, 554, 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, 2774, 12, 19485, 4672, 3536, 1021, 2774, 8131, 5402, 18, 225, 18317, 1775, 30, 5261, 1493, 1021, 1775, 2275, 358, 326, 2728, 18, 225, 3536, 2552, 1151, 67, 6610, 741, 67, 21511, 554, 273...
(TroveTroves.flags & %d) == 0
(TroveTroves.flags & %d) = 0
def getTrove(cu, roleIds, name, version, flavor, mkUrl = None, thisHost = None): cu.execute(""" SELECT Instances.instanceId FROM Instances JOIN Items USING (itemId) JOIN Versions ON (Instances.versionId = Versions.versionId) JOIN Flavors ON (Instances.flavorId = Flavors.flavorId) JOIN UserGroupInstancesCache AS ugi ON ...
6b71ee1c3dd15b9d027312ce72de6a987baf70b9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7641/6b71ee1c3dd15b9d027312ce72de6a987baf70b9/repquery.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3181, 303, 537, 12, 6319, 16, 2478, 2673, 16, 508, 16, 1177, 16, 19496, 16, 5028, 1489, 273, 599, 16, 333, 2594, 273, 599, 4672, 15985, 18, 8837, 2932, 3660, 9111, 18357, 18, 1336, 548...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3181, 303, 537, 12, 6319, 16, 2478, 2673, 16, 508, 16, 1177, 16, 19496, 16, 5028, 1489, 273, 599, 16, 333, 2594, 273, 599, 4672, 15985, 18, 8837, 2932, 3660, 9111, 18357, 18, 1336, 548...
print "__CALL__"
def __call__(self): #needed by configlist print "__CALL__" value = "" mPos = self.markedPos print mPos for i in self.parent.value: if value != "": #fixme no heading separator possible value += self.parent.vals[0] if mPos >= len(value) - 1: mPos += 1 diff = self.parent.vals[1] - len(str(i)) if diff > 0: #how about a...
bb3620cbe20ad4a79e40efbd81e483fa2819762b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/bb3620cbe20ad4a79e40efbd81e483fa2819762b/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 1082, 202, 7, 17471, 635, 642, 1098, 460, 273, 1408, 312, 1616, 273, 365, 18, 3355, 329, 1616, 1172, 312, 1616, 364, 277, 316, 365, 18, 2938, 18, 1132,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 1082, 202, 7, 17471, 635, 642, 1098, 460, 273, 1408, 312, 1616, 273, 365, 18, 3355, 329, 1616, 1172, 312, 1616, 364, 277, 316, 365, 18, 2938, 18, 1132,...
server = SimpleXMLRPCServer(("localhost", 8000), MathHandler)
server = MathServer(("localhost", 8000))
def export_add(self, x, y): return x + y
eca2f3e72cc54be7e8c786d52d54714d73e4aef8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/eca2f3e72cc54be7e8c786d52d54714d73e4aef8/SimpleXMLRPCServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1289, 12, 2890, 16, 619, 16, 677, 4672, 327, 619, 397, 677, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1289, 12, 2890, 16, 619, 16, 677, 4672, 327, 619, 397, 677, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return http.Response(stream=message(invalid_confirm_key, '/register'))
return HTMLResponse(stream=message(invalid_confirm_key, '/register'))
def render(self, request): if not notebook.conf()['email']: return http.Response(stream=message('The confirmation system is not active.')) key = request.args['key'][0] invalid_confirm_key = """\
86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 590, 4672, 309, 486, 14718, 18, 3923, 1435, 3292, 3652, 3546, 30, 327, 1062, 18, 1064, 12, 3256, 33, 2150, 2668, 1986, 14296, 2619, 353, 486, 2695, 1093, 3719, 498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 12, 2890, 16, 590, 4672, 309, 486, 14718, 18, 3923, 1435, 3292, 3652, 3546, 30, 327, 1062, 18, 1064, 12, 3256, 33, 2150, 2668, 1986, 14296, 2619, 353, 486, 2695, 1093, 3719, 498, ...
self.assertEqual(Counter(iter(actual_seq)), Counter(iter(expected_seq)))
self.assertEqual(Counter(actual_seq), Counter(expected_seq))
def assertCountEqual(self, actual_seq, expected_seq, msg=None): """An unordered sequence specific comparison. It asserts that actual_seq and expected_seq have the same element counts. Equivalent to::
a070c8fe77663ed0a13fa349b2a7094267f195c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/a070c8fe77663ed0a13fa349b2a7094267f195c3/case.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 1380, 5812, 12, 2890, 16, 3214, 67, 5436, 16, 2665, 67, 5436, 16, 1234, 33, 7036, 4672, 3536, 979, 29573, 3102, 2923, 5826, 18, 2597, 26124, 716, 3214, 67, 5436, 471, 2665, 67, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 1380, 5812, 12, 2890, 16, 3214, 67, 5436, 16, 2665, 67, 5436, 16, 1234, 33, 7036, 4672, 3536, 979, 29573, 3102, 2923, 5826, 18, 2597, 26124, 716, 3214, 67, 5436, 471, 2665, 67, 5...
self.assertTrue(value % 'test experiment' in str(f['title']), str(f['title'])) self.assertTrue(value % 'some university' in str(f['institution_name']))
self.assertTrue(value % 'test experiment' in str(f['title']), str(f['title'])) self.assertTrue(value % 'some university' in str(f['institution_name']))
def test_instance(self): from tardis.tardis_portal import forms from tardis.tardis_portal import models exp = self._create_experiment() f = forms.FullExperiment(instance=exp) value = "value=\"%s\"" text_area = ">%s</textarea>" self.assertTrue(value % 'test experiment' in str(f['title']), str(f['title'])) self.assertTru...
e337f225828ef0ea0deed4095e6eff02ca3384fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11933/e337f225828ef0ea0deed4095e6eff02ca3384fb/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1336, 12, 2890, 4672, 628, 268, 1060, 291, 18, 88, 1060, 291, 67, 24386, 1930, 10138, 628, 268, 1060, 291, 18, 88, 1060, 291, 67, 24386, 1930, 3679, 1329, 273, 365, 6315, 264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1336, 12, 2890, 4672, 628, 268, 1060, 291, 18, 88, 1060, 291, 67, 24386, 1930, 10138, 628, 268, 1060, 291, 18, 88, 1060, 291, 67, 24386, 1930, 3679, 1329, 273, 365, 6315, 264...
package, self,
package, self,
def bundle_requirements(self): for dest_dir in self._bundle_editable_dirs: package = os.path.basename(dest_dir) ## FIXME: svnism: for vcs_backend in vcs.backends: url = rev = None vcs_bundle_file = os.path.join( dest_dir, vcs_backend.bundle_file) if os.path.exists(vcs_bundle_file): vc_type = vcs_backend.name fp = open(...
87e0e74f63ca00031b2f851d4ce7e8f1d0f986bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/87e0e74f63ca00031b2f851d4ce7e8f1d0f986bb/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 67, 16175, 12, 2890, 4672, 364, 1570, 67, 1214, 316, 365, 6315, 9991, 67, 19653, 67, 8291, 30, 2181, 273, 1140, 18, 803, 18, 13909, 12, 10488, 67, 1214, 13, 7541, 9852, 30, 5893,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3440, 67, 16175, 12, 2890, 4672, 364, 1570, 67, 1214, 316, 365, 6315, 9991, 67, 19653, 67, 8291, 30, 2181, 273, 1140, 18, 803, 18, 13909, 12, 10488, 67, 1214, 13, 7541, 9852, 30, 5893,...
main();
main()
def main(): Comm = Epetra.PyComm(); args = sys.argv[1:] if len(args) == 0: Type = "Amesos_Lapack" else: Type = args[0]; NumGlobalRows = 10; Map = Epetra.Map(NumGlobalRows, 0, Comm); LHS_exact = Epetra.MultiVector(Map, 1); LHS = Epetra.MultiVector(Map, 1); RHS = Epetra.MultiVector(Map, 1); Matrix = Epetra.CrsMatrix(Ep...
b0de99b594baede77af9aff7c1b994a5d198a226 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1130/b0de99b594baede77af9aff7c1b994a5d198a226/exSolvers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 16854, 273, 512, 6951, 354, 18, 9413, 12136, 5621, 225, 833, 273, 2589, 18, 19485, 63, 21, 26894, 309, 562, 12, 1968, 13, 422, 374, 30, 1412, 273, 315, 9864, 281, 538, 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, 2774, 13332, 16854, 273, 512, 6951, 354, 18, 9413, 12136, 5621, 225, 833, 273, 2589, 18, 19485, 63, 21, 26894, 309, 562, 12, 1968, 13, 422, 374, 30, 1412, 273, 315, 9864, 281, 538, 67,...
cmd = 'convert %s -flatten -coalesce -strip %s.png' % (img_path, img_path)
cmd = ["convert", img_path, "-flatten", "-coalesce", "-strip", img_path+".png"]
def svg2png(self, img_path ): cmd = 'convert %s -flatten -coalesce -strip %s.png' % (img_path, img_path) try: p = subprocess.Popen(cmd, shell=True) pid, status = os.waitpid(p.pid, 0) if status != 0 : log.warning('img could not be converted. convert exited with non-zero return code:', repr(cmd)) return '' else: return ...
21ad34a04bb7dd9bdcbf6b924b3340b8a8c4a2e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/21ad34a04bb7dd9bdcbf6b924b3340b8a8c4a2e3/rlwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9804, 22, 6446, 12, 2890, 16, 3774, 67, 803, 262, 30, 1797, 273, 8247, 6283, 3113, 3774, 67, 803, 16, 3701, 16940, 3113, 3701, 2894, 24827, 3113, 225, 3701, 6406, 3113, 3774, 67, 803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9804, 22, 6446, 12, 2890, 16, 3774, 67, 803, 262, 30, 1797, 273, 8247, 6283, 3113, 3774, 67, 803, 16, 3701, 16940, 3113, 3701, 2894, 24827, 3113, 225, 3701, 6406, 3113, 3774, 67, 803, ...
print "Unexpected '%s'"%(" ".join(args)) print self.__doc__
print "Unexpected '%s'"%word self.print_syntax()
def with_build_tree(self, builder, local_pkgs, args): force = False force_head = False filename = None
5071266b53b7fa2e4320a1a23b23de497d404aee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4427/5071266b53b7fa2e4320a1a23b23de497d404aee/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 598, 67, 3510, 67, 3413, 12, 2890, 16, 2089, 16, 1191, 67, 25376, 16, 833, 4672, 2944, 273, 1083, 2944, 67, 1978, 273, 1083, 1544, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 598, 67, 3510, 67, 3413, 12, 2890, 16, 2089, 16, 1191, 67, 25376, 16, 833, 4672, 2944, 273, 1083, 2944, 67, 1978, 273, 1083, 1544, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100...
z = repr_H_mod_N_over_d[d] v = [((u*x) % N, u, d, inverse_mod(x, N)) for x in z] reduct_data += v not_yet_done = list(set(not_yet_done).difference(set([a[0] for a in v]))) not_yet_done.sort() reduct_data.sort() reduct_data = [(a,b,c) for _,a,b,c in reduct_data]
for x in repr_H_mod_N_over_d[d]: reduct_data[(u*x)%N] = (u, d, inverse_mod(x,N))
def _coset_reduction_data_first_coord(G): """ Compute data used for determining the canonical coset representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate).
ee19a19f73bdcdc6c0b1860d28d316c82faa2cd5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ee19a19f73bdcdc6c0b1860d28d316c82faa2cd5/congroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 3645, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 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, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 3645, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 6...
doday(mx.DateTime.DateTime(int(sys.argv[1]), int(sys.argv[2]), int(sys.argv[3]))
doday(mx.DateTime.DateTime(int(sys.argv[1]), int(sys.argv[2]), int(sys.argv[3])))
def doday(ts): """ Create a plot of precipitation stage4 estimates for some day """ sts = ts + mx.DateTime.RelativeDateTime(hour=1) ets = ts + mx.DateTime.RelativeDateTime(hour=0, days=1) interval = mx.DateTime.RelativeDateTime(hours=1) now = sts total = None lts = None while now < ets: fp = "/mesonet/ARCHIVE/data/%s/s...
8248e6f98d853d165b848b6f2bed8ff549df688a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11189/8248e6f98d853d165b848b6f2bed8ff549df688a/stage4_today_total.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 20136, 12, 3428, 4672, 3536, 1788, 279, 3207, 434, 675, 3449, 8773, 6009, 24, 27585, 364, 2690, 2548, 3536, 27099, 273, 3742, 397, 7938, 18, 5096, 18, 8574, 5096, 12, 12091, 33, 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, 302, 20136, 12, 3428, 4672, 3536, 1788, 279, 3207, 434, 675, 3449, 8773, 6009, 24, 27585, 364, 2690, 2548, 3536, 27099, 273, 3742, 397, 7938, 18, 5096, 18, 8574, 5096, 12, 12091, 33, 21,...
link_format= "<a href = \"%s\">%s</a>"
link_format= "<a href=\"%s\">%s</a>"
def send_to_graph(results_server, results_link, title, date, browser_config, results): tbox = title url_format = "http://%s/%s" link_format= "<a href = \"%s\">%s</a>" #value, testname, tbox, timeval, date, branch, buildid, type, data result_format = "%.2f,%s,%s,%d,%d,%s,%s,%s,%s,\n" result_format2 = "%.2f,%s,%s,%d,%d,%...
f1b8f77bc5615ce42c2b970a9041ba56c2dfd1d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/f1b8f77bc5615ce42c2b970a9041ba56c2dfd1d0/run_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 869, 67, 4660, 12, 4717, 67, 3567, 16, 1686, 67, 1232, 16, 2077, 16, 1509, 16, 4748, 67, 1425, 16, 1686, 4672, 268, 2147, 273, 2077, 880, 67, 2139, 273, 315, 2505, 23155, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 869, 67, 4660, 12, 4717, 67, 3567, 16, 1686, 67, 1232, 16, 2077, 16, 1509, 16, 4748, 67, 1425, 16, 1686, 4672, 268, 2147, 273, 2077, 880, 67, 2139, 273, 315, 2505, 23155, 8...
CreateDVDISO()
CreateDVDISO(title)
def processJob(job): """Starts processing a MythBurn job, expects XML nodes to be passed as input.""" global wantIntro, wantMainMenu, wantChapterMenu, wantDetailsPage global themeDOM, themeName, themeFonts media=job.getElementsByTagName("media") if media.length==1: themeName=job.attributes["theme"].value #Check th...
87ee8e4938a9bc41c4ba992fd57f61744dee45ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/87ee8e4938a9bc41c4ba992fd57f61744dee45ce/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2278, 12, 4688, 4672, 3536, 11203, 4929, 279, 8005, 451, 38, 321, 1719, 16, 10999, 3167, 2199, 358, 506, 2275, 487, 810, 12123, 2552, 2545, 1702, 303, 16, 2545, 6376, 4599, 16, 254...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2278, 12, 4688, 4672, 3536, 11203, 4929, 279, 8005, 451, 38, 321, 1719, 16, 10999, 3167, 2199, 358, 506, 2275, 487, 810, 12123, 2552, 2545, 1702, 303, 16, 2545, 6376, 4599, 16, 254...
logging.error("File isn't inside project base: " + l_file_path)
logging.error("File isn't inside project root: " + l_file_path)
def add_file ( self, p_file_path ):
ff552e9041f2356e9589089548cf50e78d32566e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2506/ff552e9041f2356e9589089548cf50e78d32566e/project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 768, 261, 365, 16, 293, 67, 768, 67, 803, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 527, 67, 768, 261, 365, 16, 293, 67, 768, 67, 803, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
@return: A Deferred, the callback for which will be called when the server clarifies the deletion of the group. The callback argument will be a tuple with 2 elements: the new list version (int) and the group ID (int) of the removed group.
@return: A Deferred, the callback for which will be called when the server clarifies the deletion of the group. The callback argument will be a tuple with 2 elements: the new list version (int) and the group ID (int) of the removed group.
def remListGroup(self, groupID): """ used to remove a list group.
9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 849, 682, 1114, 12, 2890, 16, 30365, 4672, 3536, 1399, 358, 1206, 279, 666, 1041, 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, ...
[ 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 849, 682, 1114, 12, 2890, 16, 30365, 4672, 3536, 1399, 358, 1206, 279, 666, 1041, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
testit('rint(0.7)', math.rint(0.7), 1) testit('rint(-0.3)', math.rint(-0.3), 0) testit('rint(2.5)', math.rint(2.5), 2) testit('rint(3.5)', math.rint(3.5), 4)
try: math.rint except AttributeError: pass else: testit('rint(0.7)', math.rint(0.7), 1) testit('rint(-0.3)', math.rint(-0.3), 0) testit('rint(2.5)', math.rint(2.5), 2) testit('rint(3.5)', math.rint(3.5), 4)
def testmodf(name, (v1, v2), (e1, e2)): if abs(v1-e1) > eps or abs(v2-e2): raise TestFailed, '%s returned %s, expected %s'%\ (name, `v1,v2`, `e1,e2`)
574d5db4b384c6ca4e47a6a6c75149c48a281dd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/574d5db4b384c6ca4e47a6a6c75149c48a281dd6/test_math.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1711, 74, 12, 529, 16, 261, 90, 21, 16, 331, 22, 3631, 261, 73, 21, 16, 425, 22, 3719, 30, 309, 2417, 12, 90, 21, 17, 73, 21, 13, 405, 7785, 578, 2417, 12, 90, 22, 17, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1711, 74, 12, 529, 16, 261, 90, 21, 16, 331, 22, 3631, 261, 73, 21, 16, 425, 22, 3719, 30, 309, 2417, 12, 90, 21, 17, 73, 21, 13, 405, 7785, 578, 2417, 12, 90, 22, 17, 73...
def get_track_by_mbid(mbid, api_key, api_secret, session_key):
def get_track_by_mbid(mbid, api_key, api_secret, session_key=""):
def get_track_by_mbid(mbid, api_key, api_secret, session_key): """Looks up a track by its MusicBrainz ID.""" params = {"mbid": unicode(mbid)} doc = _Request("track.getInfo", params, api_key, api_secret, session_key).execute(True) return Track(_extract(doc, "name", 1), _extract(doc, "name"), api_key, api_secret, sess...
8d8063afe8067477accae5bef5e470a4a3cbfa5d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9926/8d8063afe8067477accae5bef5e470a4a3cbfa5d/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4101, 67, 1637, 67, 1627, 350, 12, 1627, 350, 16, 1536, 67, 856, 16, 1536, 67, 5875, 16, 1339, 67, 856, 1546, 6, 4672, 3536, 20475, 731, 279, 3298, 635, 2097, 490, 14894, 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, 336, 67, 4101, 67, 1637, 67, 1627, 350, 12, 1627, 350, 16, 1536, 67, 856, 16, 1536, 67, 5875, 16, 1339, 67, 856, 1546, 6, 4672, 3536, 20475, 731, 279, 3298, 635, 2097, 490, 14894, 38...
assert before.time == 98 assert before.weight == 2 assert before.dist_walked == 2.0
print before assert before.time == 100 - (10/2) assert before.weight == 10/2 assert before.dist_walked == 10.0
def test_walk_back(self): s = Egress("longstreet", 2) before = s.walk_back(State(0,100),WalkOptions()) assert before.time == 98 assert before.weight == 2 assert before.dist_walked == 2.0 assert before.prev_edge_type == 12 assert before.prev_edge_name == "longstreet" assert before.num_agencies == 0
508050e46940a166eed1f6861034e5a50d05f2bf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10974/508050e46940a166eed1f6861034e5a50d05f2bf/unit_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11348, 67, 823, 12, 2890, 4672, 272, 273, 512, 2329, 2932, 5748, 22424, 3113, 576, 13, 225, 1865, 273, 272, 18, 11348, 67, 823, 12, 1119, 12, 20, 16, 6625, 3631, 9463, 1320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11348, 67, 823, 12, 2890, 4672, 272, 273, 512, 2329, 2932, 5748, 22424, 3113, 576, 13, 225, 1865, 273, 272, 18, 11348, 67, 823, 12, 1119, 12, 20, 16, 6625, 3631, 9463, 1320, ...
dll_path = os.path.join(srcdir, "PCBuild", dll_file) msilib.set_arch_from_file(dll_path)
# Target files (.def and .a) go in PCBuild directory
60bf22bf2d5248d061c52aed29d8d00f4cdcf6d7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/60bf22bf2d5248d061c52aed29d8d00f4cdcf6d7/msi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 5916, 1390, 261, 18, 536, 471, 263, 69, 13, 1960, 316, 26300, 3116, 1867, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 5916, 1390, 261, 18, 536, 471, 263, 69, 13, 1960, 316, 26300, 3116, 1867, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
f.write('<HTML>'+str(self.ReportText.text())+'</HTML>')
f.write('<HTML>'+str(self.ReportText.toHtml())+'</HTML>')
def saveToHTML(self): filename = QFileDialog.getSaveFileName('', "HTML (*.html)") if filename is not None and str(filename) != '': try: if re.compile('\.html$').search(str(filename)) is None: filename = str(filename) filename += '.html' f = open(str(filename), 'w') f.write('<HTML>'+str(self.ReportText.text())+'</HTML>'...
28de507d7877175204fe5d32b6d98c2845ccddea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/28de507d7877175204fe5d32b6d98c2845ccddea/ReportWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 774, 4870, 12, 2890, 4672, 1544, 273, 2238, 812, 6353, 18, 588, 4755, 4771, 2668, 2187, 315, 4870, 261, 11146, 2620, 2225, 13, 309, 1544, 353, 486, 599, 471, 609, 12, 3459, 13, 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, 1923, 774, 4870, 12, 2890, 4672, 1544, 273, 2238, 812, 6353, 18, 588, 4755, 4771, 2668, 2187, 315, 4870, 261, 11146, 2620, 2225, 13, 309, 1544, 353, 486, 599, 471, 609, 12, 3459, 13, 4...
def initialize(self): BaseLBFGS.initialize(self) self.Ho = 0.05
def initialize(self): BaseLBFGS.initialize(self) self.Ho = 0.05
e4186acc11663a2a2c70c16ef0b0536e66a7b908 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5735/e4186acc11663a2a2c70c16ef0b0536e66a7b908/lbfgs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for source in sources: (base, ext) = os.path.splitext(source) if ext == ".i": new_sources.append(base + target_ext) swig_sources.append(source) swig_targets[source] = new_sources[-1]
if self.swig_cpp: target_ext = '.cpp'
def swig_sources (self, sources): """Walk the list of source files in 'sources', looking for SWIG interface (.i) files. Run SWIG on all that are found, and return a modified 'sources' list with SWIG source files replaced by the generated C (or C++) files. """ new_sources = [] swig_sources = [] swig_targets = {} # X...
a3445be2469ebc765311af9285429177182b14f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/a3445be2469ebc765311af9285429177182b14f6/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 225, 3536, 9463, 326, 666, 434, 1084, 1390, 316, 296, 10141, 2187, 7849, 364, 16392, 3047, 1560, 261, 18, 77, 13, 1390, 18, 225, 1939, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 225, 3536, 9463, 326, 666, 434, 1084, 1390, 316, 296, 10141, 2187, 7849, 364, 16392, 3047, 1560, 261, 18, 77, 13, 1390, 18, 225, 1939, ...
"Called when an error has occurred" self.errors.append((test, err))
"""Called when an error has occurred. 'err' is a tuple of values as returned by sys.exc_info(). """ self.errors.append((test, self._exc_info_to_string(err)))
def addError(self, test, err): "Called when an error has occurred" self.errors.append((test, err))
9f052c82d1f48e9b8df59fbb8f8ed1fb6370440a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9f052c82d1f48e9b8df59fbb8f8ed1fb6370440a/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9501, 12, 2890, 16, 1842, 16, 393, 4672, 315, 8185, 1347, 392, 555, 711, 7841, 6, 365, 18, 4324, 18, 6923, 12443, 3813, 16, 393, 3719, 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, 0, 0, 0, 0, 0, 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, 9501, 12, 2890, 16, 1842, 16, 393, 4672, 315, 8185, 1347, 392, 555, 711, 7841, 6, 365, 18, 4324, 18, 6923, 12443, 3813, 16, 393, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100...
fr = fr.f_back
fr = fr.f_back
def getlocals(back=2): """Get the local variables some levels back (-1 is top).""" import inspect fr = inspect.currentframe() try: while fr and back!=0: fr1 = fr; fr = fr.f_back back -= 1 except: pass return fr1.f_locals
4f69430b7199d7a36568f5b8c5606ff94d204949 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7472/4f69430b7199d7a36568f5b8c5606ff94d204949/substitute.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 17977, 12, 823, 33, 22, 4672, 3536, 967, 326, 1191, 3152, 2690, 7575, 1473, 24927, 21, 353, 1760, 13, 12123, 1930, 5334, 3812, 273, 5334, 18, 2972, 3789, 1435, 775, 30, 1323, 3812, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17977, 12, 823, 33, 22, 4672, 3536, 967, 326, 1191, 3152, 2690, 7575, 1473, 24927, 21, 353, 1760, 13, 12123, 1930, 5334, 3812, 273, 5334, 18, 2972, 3789, 1435, 775, 30, 1323, 3812, ...
"""
r"""
def OctalStrings(): """ Returns the free octal string monoid on generators $\{0,1,..,7\}$. INPUT: None OUTPUT: Free octal string monoid EXAMPLES: sage: S = OctalStrings(); S Free octal string monoid sage: x = S.gens() sage: x[0] 0 sage: x[7] 7 sage: x[0] * x[3]^3 * x[5]^4 * x[6] 033355556 """ # Here we cache the oct...
ca219b0206186a194cdf8e11d2082bec654536f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/ca219b0206186a194cdf8e11d2082bec654536f8/string_monoid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29482, 287, 7957, 13332, 436, 8395, 2860, 326, 4843, 10844, 287, 533, 6921, 839, 603, 13327, 271, 64, 95, 20, 16, 21, 16, 838, 16, 27, 64, 22496, 18, 225, 12943, 30, 599, 225, 11550, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29482, 287, 7957, 13332, 436, 8395, 2860, 326, 4843, 10844, 287, 533, 6921, 839, 603, 13327, 271, 64, 95, 20, 16, 21, 16, 838, 16, 27, 64, 22496, 18, 225, 12943, 30, 599, 225, 11550, ...
raise CustomError2
raise customError2
def f(x): if x == 0: raise CustomError1 if x == 1: raise CustomError2
46ec8039da261e53e168cf43097fa982526409d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/46ec8039da261e53e168cf43097fa982526409d9/test_inline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 92, 4672, 309, 619, 422, 374, 30, 1002, 6082, 668, 21, 309, 619, 422, 404, 30, 1002, 6082, 668, 22, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 92, 4672, 309, 619, 422, 374, 30, 1002, 6082, 668, 21, 309, 619, 422, 404, 30, 1002, 6082, 668, 22, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
corresponds to the ordering of the list. However, in general there is no way to canonically list (or index) the conjugacy classes of a group. Therefore the ordering of the columns of the character table of a group is somewhat random.
corresponds to the ordering of the list. However, in general there is no way to canonically list (or index) the conjugacy classes of a group. Therefore the ordering of the columns of the character table of a group is somewhat random.
def character_table(self): r""" Returns the matrix of values of the irreducible characters of a permutation group `G` at the conjugacy classes of `G`. The columns represent the the conjugacy classes of `G` and the rows represent the different irreducible characters in the ordering given by GAP. EXAMPLES:: sage: G = P...
6ac30ecf5071d4fb909072e90d2311932d8c2165 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6ac30ecf5071d4fb909072e90d2311932d8c2165/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 434, ...
def run_once(self, qemu_path='', options='', testlist=''):
def run_once(self, options='', testlist=''):
def run_once(self, qemu_path='', options='', testlist=''): """ Passes the appropriate parameters to the testsuite.
1a117ea0f8a94f940fdea6d76a61ee0cef763c55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/1a117ea0f8a94f940fdea6d76a61ee0cef763c55/qemu_iotests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 702, 2218, 2187, 1842, 1098, 2218, 11, 4672, 3536, 10311, 281, 326, 5505, 1472, 358, 326, 7434, 9519, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 702, 2218, 2187, 1842, 1098, 2218, 11, 4672, 3536, 10311, 281, 326, 5505, 1472, 358, 326, 7434, 9519, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
this = apply(_quickfix.new_LongQty, args)
this = _quickfix.new_LongQty(*args)
def __init__(self, *args): this = apply(_quickfix.new_LongQty, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 3708, 53, 4098, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 3708, 53, 4098, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 36...
if not mysqlInstalled()['OK']: return S_ERROR( 'MySQL not properly Installed' )
result = mysqlInstalled() if not result['OK']: return result
def startMySQL(): """ Start MySQL server """ if not mysqlInstalled()['OK']: return S_ERROR( 'MySQL not properly Installed' ) return execCommand( 0, [mysqlStartupScript, 'start'] )
19ec07f0c2998016b3e98f643782f5cf2dff8b15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/19ec07f0c2998016b3e98f643782f5cf2dff8b15/InstallTools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 28723, 13332, 3536, 3603, 13485, 1438, 3536, 563, 273, 7219, 16747, 1435, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 327, 1196, 2189, 12, 374, 16, 306, 12527, 22178, 3651, 16, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 28723, 13332, 3536, 3603, 13485, 1438, 3536, 563, 273, 7219, 16747, 1435, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563, 327, 1196, 2189, 12, 374, 16, 306, 12527, 22178, 3651, 16, 2...
return
return
def __setattr__(self, attr, val): newattr = attr not in self.__dict__ try: # Is attr a generic attribute ? ret = object.__setattr__(self, attr, val) except: # Not a generic attribute: exit if it's not a valid field fielddict = self.dtype.names or {} if attr not in fielddict: exctype, value = sys.exc_info()[:2] raise ex...
c23755afc12e34291055167a63fc030669da9163 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/c23755afc12e34291055167a63fc030669da9163/tmulti.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 1604, 16, 1244, 4672, 394, 1747, 273, 1604, 486, 316, 365, 16186, 1576, 972, 775, 30, 468, 2585, 1604, 279, 5210, 1566, 692, 325, 273, 733, 16186, 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, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 12, 2890, 16, 1604, 16, 1244, 4672, 394, 1747, 273, 1604, 486, 316, 365, 16186, 1576, 972, 775, 30, 468, 2585, 1604, 279, 5210, 1566, 692, 325, 273, 733, 16186, 5...
Returns then n-th Lucas number ``of the second kind'' (this is not
Returns the n-th Lucas number ``of the second kind'' (this is not
def lucas_number2(n,P,Q): r""" Returns then n-th Lucas number ``of the second kind'' (this is not standard terminology). The Lucas sequence $L^{(2)}_n$ is defined by the initial conditions $L^{(2)}_1=2$, $L^{(2)}_2=P$ and the recurrence relation $L^{(2)}_{n+2} = P*L^{(2)}_{n+1} - Q*L^{(2)}_n$. Wraps GAP's Lucas(...)[2...
8b6cc309d81329ac887f73256610611664d8fcd5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/8b6cc309d81329ac887f73256610611664d8fcd5/combinat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 5286, 345, 67, 2696, 22, 12, 82, 16, 52, 16, 53, 4672, 436, 8395, 2860, 326, 290, 17, 451, 511, 5286, 345, 1300, 12176, 792, 326, 2205, 3846, 6309, 261, 2211, 353, 486, 4529, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 328, 5286, 345, 67, 2696, 22, 12, 82, 16, 52, 16, 53, 4672, 436, 8395, 2860, 326, 290, 17, 451, 511, 5286, 345, 1300, 12176, 792, 326, 2205, 3846, 6309, 261, 2211, 353, 486, 4529, 16...
if self.config.get('warn', 'pm_global') == '1':
try: pmglobal = self.config.get('warn', 'pm_global') except: pmglobal = '0' if pmglobal == '1':
def warnClient(self, sclient, keyword, admin=None, timer=True, data='', newDuration=None): try: duration, warning = self.getWarning(keyword) except: duration, warning = self.getWarning('generic') warning = '%s %s' % (warning, keyword)
759ad2e07d896b4368b200f2d8305d46993ba7f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/759ad2e07d896b4368b200f2d8305d46993ba7f5/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1894, 1227, 12, 2890, 16, 888, 676, 16, 4932, 16, 3981, 33, 7036, 16, 5441, 33, 5510, 16, 501, 2218, 2187, 394, 5326, 33, 7036, 4672, 775, 30, 3734, 16, 3436, 273, 365, 18, 588, 6210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1894, 1227, 12, 2890, 16, 888, 676, 16, 4932, 16, 3981, 33, 7036, 16, 5441, 33, 5510, 16, 501, 2218, 2187, 394, 5326, 33, 7036, 4672, 775, 30, 3734, 16, 3436, 273, 365, 18, 588, 6210...
group_id = self.id_get(cr, 'res.groups', group[1:])
group_id = self.id_get(cr, group[1:])
def _tag_wizard(self, cr, rec, data_node=None): string = rec.get("string",'').encode('utf8') model = rec.get("model",'').encode('utf8') name = rec.get("name",'').encode('utf8') xml_id = rec.get('id','').encode('utf8') self._test_xml_id(xml_id) multi = rec.get('multi','') and eval(rec.get('multi','False')) res = {'name'...
07a4bc7f3fdbd5f93ba4a066290ae65a3016075c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/07a4bc7f3fdbd5f93ba4a066290ae65a3016075c/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2692, 67, 31837, 12, 2890, 16, 4422, 16, 1950, 16, 501, 67, 2159, 33, 7036, 4672, 533, 273, 1950, 18, 588, 2932, 1080, 3113, 6309, 2934, 3015, 2668, 3158, 28, 6134, 938, 273, 1950...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2692, 67, 31837, 12, 2890, 16, 4422, 16, 1950, 16, 501, 67, 2159, 33, 7036, 4672, 533, 273, 1950, 18, 588, 2932, 1080, 3113, 6309, 2934, 3015, 2668, 3158, 28, 6134, 938, 273, 1950...
return S_ERROR('File does not exist at specified source site.') else: tree = self.__simple(sourceSE,targetSEs) elif re.search('DynamicThroughput',strategy): elements = strategy.split('_') if len(elements) > 1: self.sigma = float(elements[-1])
return S_ERROR( 'File does not exist at specified source site.' ) else: tree = self.__simple( sourceSE, targetSEs ) elif re.search( 'DynamicThroughput', strategy ): elements = strategy.split( '_' ) if len( elements ) > 1: self.sigma = float( elements[-1] )
def determineReplicationTree(self,sourceSE,targetSEs,replicas,size,strategy=None,sigma=None): """ """ if not strategy: strategy = self.__selectStrategy()
9005c0a96ba1bc0698c543bcb4c1886f4eeee344 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9005c0a96ba1bc0698c543bcb4c1886f4eeee344/ReplicationScheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4199, 8309, 2471, 12, 2890, 16, 3168, 1090, 16, 3299, 1090, 87, 16, 266, 10528, 16, 1467, 16, 14914, 33, 7036, 16, 13201, 33, 7036, 4672, 3536, 3536, 309, 486, 6252, 30, 6252, 273, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4199, 8309, 2471, 12, 2890, 16, 3168, 1090, 16, 3299, 1090, 87, 16, 266, 10528, 16, 1467, 16, 14914, 33, 7036, 16, 13201, 33, 7036, 4672, 3536, 3536, 309, 486, 6252, 30, 6252, 273, 365...
sage: J.basis()
sage: J.basis()
def basis(self): """ Return an immutable sequence of elements of this ideal (note: their parent is the number field) that form a basis for this ideal viewed as a ZZ-module.
5a0e2c618364767a01fc42126783eafd365abe47 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5a0e2c618364767a01fc42126783eafd365abe47/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10853, 12, 2890, 4672, 3536, 2000, 392, 11732, 3102, 434, 2186, 434, 333, 23349, 261, 7652, 30, 3675, 982, 353, 326, 1300, 652, 13, 716, 646, 279, 10853, 364, 333, 23349, 1476, 329, 487,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10853, 12, 2890, 4672, 3536, 2000, 392, 11732, 3102, 434, 2186, 434, 333, 23349, 261, 7652, 30, 3675, 982, 353, 326, 1300, 652, 13, 716, 646, 279, 10853, 364, 333, 23349, 1476, 329, 487,...
groups = self.listGroups()['Value'] for userGroup in properties[ 'Groups' ]: if not userGroup in groups: gLogger.error( "User %s group %s is not a valid group" % ( username, userGroup ) ) return S_OK( False )
def modifyUser( self, username, properties, createIfNonExistant = False ): """ Modify a user -username -properties is a dict with keys: DN Groups <extra params> Returns True/False """ if not self.__initialized: return S_ERROR( "CSAPI didn't initialize properly" ) modifiedUser = False userData = self.describeUsers( [ us...
7bdadc55ada56e9516c6dac26f50d02319542f61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/7bdadc55ada56e9516c6dac26f50d02319542f61/CSAPI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5612, 1299, 12, 365, 16, 2718, 16, 1790, 16, 752, 2047, 3989, 4786, 970, 273, 1083, 262, 30, 3536, 9518, 279, 729, 300, 5053, 300, 4738, 353, 279, 2065, 598, 1311, 30, 18001, 14712, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5612, 1299, 12, 365, 16, 2718, 16, 1790, 16, 752, 2047, 3989, 4786, 970, 273, 1083, 262, 30, 3536, 9518, 279, 729, 300, 5053, 300, 4738, 353, 279, 2065, 598, 1311, 30, 18001, 14712, 41...