rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
"-f", "./" + "reftest/components/httpd.js",
"-f", os.path.join(self.scriptDir, "reftest/components/httpd.js"),
def start(self): "Run the Refest server, returning the process ID of the server." env = self._automation.environment(xrePath = self._xrePath) env["XPCOM_DEBUG_BREAK"] = "warn" if self._automation.IS_WIN32: env["PATH"] = env["PATH"] + ";" + self._xrePath
d8153eeb556758ccf4599a5cc0eeface51ec22b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/d8153eeb556758ccf4599a5cc0eeface51ec22b1/remotereftest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 315, 1997, 326, 3941, 395, 1438, 16, 5785, 326, 1207, 1599, 434, 326, 1438, 1199, 225, 1550, 273, 365, 6315, 5854, 11978, 18, 10274, 12, 92, 266, 743, 273, 365, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 315, 1997, 326, 3941, 395, 1438, 16, 5785, 326, 1207, 1599, 434, 326, 1438, 1199, 225, 1550, 273, 365, 6315, 5854, 11978, 18, 10274, 12, 92, 266, 743, 273, 365, 63...
item = event.GetItem() itemText = self.tree.GetItemText(item)
def OnSelChanged(self, event): if self.dying: return
5a7823f5999fdcaec5b43d18c6a5f299654e5492 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/5a7823f5999fdcaec5b43d18c6a5f299654e5492/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1877, 5033, 12, 2890, 16, 871, 4672, 309, 365, 18, 72, 14946, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1877, 5033, 12, 2890, 16, 871, 4672, 309, 365, 18, 72, 14946, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
p_to = self.__emBuildEmailAddress(p_to) l_message = self.__emCreateEmail(p_content, p_to, p_from, p_subject)
p_to = self.__build_addresses(p_to) l_message = self.__create_email(p_content, p_to, p_from, p_subject)
def sendEmail(self, p_content, p_to, p_from, p_subject): #sends a generic email try: p_to = self.__emBuildEmailAddress(p_to) l_message = self.__emCreateEmail(p_content, p_to, p_from, p_subject) server = smtplib.SMTP(self.mail_server_name, self.mail_server_port) server.sendmail(p_from, p_to, l_message) server.quit() return 1 except: return 0
866e2e83d21be08185a93199e05c821a9bd88ea1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/866e2e83d21be08185a93199e05c821a9bd88ea1/EmailTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4134, 12, 2890, 16, 293, 67, 1745, 16, 293, 67, 869, 16, 293, 67, 2080, 16, 293, 67, 7857, 4672, 468, 4661, 87, 279, 5210, 2699, 775, 30, 293, 67, 869, 273, 365, 16186, 3510, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4134, 12, 2890, 16, 293, 67, 1745, 16, 293, 67, 869, 16, 293, 67, 2080, 16, 293, 67, 7857, 4672, 468, 4661, 87, 279, 5210, 2699, 775, 30, 293, 67, 869, 273, 365, 16186, 3510, ...
<unittest.TestResult run=3 errors=0 failures=3>
<unittest.TestResult run=3 errors=0 failures=2>
def test_DocFileSuite(): """We can test tests found in text files using a DocFileSuite. We create a suite by providing the names of one or more text files that include examples: >>> import unittest >>> suite = doctest.DocFileSuite('test_doctest.txt', ... 'test_doctest2.txt', ... 'test_doctest4.txt') >>> suite.run(unittest.TestResult()) <unittest.TestResult run=3 errors=0 failures=3> The test files are looked for in the directory containing the calling module. A package keyword argument can be provided to specify a different relative location. >>> import unittest >>> suite = doctest.DocFileSuite('test_doctest.txt', ... 'test_doctest2.txt', ... 'test_doctest4.txt', ... package='test') >>> suite.run(unittest.TestResult()) <unittest.TestResult run=3 errors=0 failures=3> '/' should be used as a path separator. It will be converted to a native separator at run time: >>> suite = doctest.DocFileSuite('../test/test_doctest.txt') >>> suite.run(unittest.TestResult()) <unittest.TestResult run=1 errors=0 failures=1> If DocFileSuite is used from an interactive session, then files are resolved relative to the directory of sys.argv[0]: >>> import new, os.path, test.test_doctest >>> save_argv = sys.argv >>> sys.argv = [test.test_doctest.__file__] >>> suite = doctest.DocFileSuite('test_doctest.txt', ... package=new.module('__main__')) >>> sys.argv = save_argv By setting `module_relative=False`, os-specific paths may be used (including absolute paths and paths relative to the working directory): >>> # Get the absolute path of the test package. >>> test_doctest_path = os.path.abspath(test.test_doctest.__file__) >>> test_pkg_path = os.path.split(test_doctest_path)[0] >>> # Use it to find the absolute path of test_doctest.txt. >>> test_file = os.path.join(test_pkg_path, 'test_doctest.txt') >>> suite = doctest.DocFileSuite(test_file, module_relative=False) >>> suite.run(unittest.TestResult()) <unittest.TestResult run=1 errors=0 failures=1> It is an error to specify `package` when `module_relative=False`: >>> suite = doctest.DocFileSuite(test_file, module_relative=False, ... package='test') Traceback (most recent call last): ValueError: Package may only be specified for module-relative paths. You can specify initial global variables: >>> suite = doctest.DocFileSuite('test_doctest.txt', ... 'test_doctest2.txt', ... 'test_doctest4.txt', ... globs={'favorite_color': 'blue'}) >>> suite.run(unittest.TestResult()) <unittest.TestResult run=3 errors=0 failures=2> In this case, we supplied a missing favorite color. You can provide doctest options: >>> suite = doctest.DocFileSuite('test_doctest.txt', ... 'test_doctest2.txt', ... 'test_doctest4.txt', ... optionflags=doctest.DONT_ACCEPT_BLANKLINE, ... globs={'favorite_color': 'blue'}) >>> suite.run(unittest.TestResult()) <unittest.TestResult run=3 errors=0 failures=3> And, you can provide setUp and tearDown functions: You can supply setUp and teatDoen functions: >>> def setUp(t): ... import test.test_doctest ... test.test_doctest.sillySetup = True >>> def tearDown(t): ... import test.test_doctest ... del test.test_doctest.sillySetup Here, we installed a silly variable that the test expects: >>> suite = doctest.DocFileSuite('test_doctest.txt', ... 'test_doctest2.txt', ... 'test_doctest4.txt', ... setUp=setUp, tearDown=tearDown) >>> suite.run(unittest.TestResult()) <unittest.TestResult run=3 errors=0 failures=2> But the tearDown restores sanity: >>> import test.test_doctest >>> test.test_doctest.sillySetup Traceback (most recent call last): ... AttributeError: 'module' object has no attribute 'sillySetup' The setUp and tearDown funtions are passed test objects. Here, we'll use a setUp function to set the favorite color in test_doctest.txt: >>> def setUp(test): ... test.globs['favorite_color'] = 'blue' >>> suite = doctest.DocFileSuite('test_doctest.txt', setUp=setUp) >>> suite.run(unittest.TestResult()) <unittest.TestResult run=1 errors=0 failures=0> Here, we didn't need to use a tearDown function because we modified the test globals. The test globals are automatically cleared for us after a test. Tests in a file run using `DocFileSuite` can also access the `__file__` global, which is set to the name of the file containing the tests: >>> suite = doctest.DocFileSuite('test_doctest3.txt') >>> suite.run(unittest.TestResult()) <unittest.TestResult run=1 errors=0 failures=0> If the tests contain non-ASCII characters, we have to specify which encoding the file is encoded with. We do so by using the `encoding` parameter: >>> suite = doctest.DocFileSuite('test_doctest.txt', ... 'test_doctest2.txt', ... 'test_doctest4.txt', ... encoding='utf-8') >>> suite.run(unittest.TestResult()) <unittest.TestResult run=3 errors=0 failures=2> """
52e0ffbd344513640f66899b50d386f5e487dfb1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/52e0ffbd344513640f66899b50d386f5e487dfb1/test_doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1759, 812, 13587, 13332, 3536, 3218, 848, 1842, 7434, 1392, 316, 977, 1390, 1450, 279, 3521, 812, 13587, 18, 225, 1660, 752, 279, 11371, 635, 17721, 326, 1257, 434, 1245, 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, 1842, 67, 1759, 812, 13587, 13332, 3536, 3218, 848, 1842, 7434, 1392, 316, 977, 1390, 1450, 279, 3521, 812, 13587, 18, 225, 1660, 752, 279, 11371, 635, 17721, 326, 1257, 434, 1245, 578, ...
(cssclass, vararg_name, PARAM_JOIN))
(css_class, vararg_name, PARAM_JOIN))
def _func_signature(self, fname, fdoc, link=0, cssclass="sig"): """ @return: The HTML code for the function signature of the function with the given name and documentation. @param fname: The short name of the function. @type fname: C{string} @param fdoc: The documentation for the function. @type fdoc: L{objdoc.FuncDoc} @param link: Whether to create a link from the function's name to its details description. """ str = '<code class=%s>' % cssclass if link: str += '<a href="%s">' % self._uid_to_uri(fdoc.uid()) str += '<span class=%s-name>%s</span>' % (cssclass, fname) if link: str += '</a>' PARAM_JOIN = ',\n'+' '*15 str += '(' str += self._params_to_html(fdoc.parameters(), cssclass, not link) if fdoc.vararg(): vararg_name = fdoc.vararg().name() if vararg_name != '...': vararg_name = '*%s' % vararg_name str += ('<span class=%s-vararg>%s</span>%s' % (cssclass, vararg_name, PARAM_JOIN)) if fdoc.kwarg(): str += ('<span class=%s-kwarg>**%s</span>%s' % (cssclass, fdoc.kwarg().name(), PARAM_JOIN)) if str[-1] != '(': str = str[:-len(PARAM_JOIN)]
36aef14a0edb4bd18076686105d0e4e6c7c10c23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36aef14a0edb4bd18076686105d0e4e6c7c10c23/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 8195, 12, 2890, 16, 5299, 16, 284, 2434, 16, 1692, 33, 20, 16, 2873, 1017, 459, 1546, 7340, 6, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 326, 445, 3372, 434, 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, 389, 644, 67, 8195, 12, 2890, 16, 5299, 16, 284, 2434, 16, 1692, 33, 20, 16, 2873, 1017, 459, 1546, 7340, 6, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 326, 445, 3372, 434, 326...
self.failUnlessEqual(3, getargs_l(3.14))
self.assertRaises(TypeError, getargs_l, 3.14)
def test_l(self): from _testcapi import getargs_l # l returns 'long', and does range checking (LONG_MIN ... LONG_MAX) self.failUnlessEqual(3, getargs_l(3.14)) self.failUnlessEqual(99, getargs_l(Long())) self.failUnlessEqual(99, getargs_l(Int()))
4995fad8b88b0660d17e06de8de078d7faa2ab94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4995fad8b88b0660d17e06de8de078d7faa2ab94/test_getargs2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 80, 12, 2890, 4672, 628, 389, 3813, 71, 2425, 1930, 336, 1968, 67, 80, 468, 328, 1135, 296, 5748, 2187, 471, 1552, 1048, 6728, 261, 14639, 67, 6236, 1372, 14011, 67, 6694, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 80, 12, 2890, 4672, 628, 389, 3813, 71, 2425, 1930, 336, 1968, 67, 80, 468, 328, 1135, 296, 5748, 2187, 471, 1552, 1048, 6728, 261, 14639, 67, 6236, 1372, 14011, 67, 6694, 13...
mode = self._do_get_mode(query=False) if mode not in self._modes: logging.warning(__name__ + ' : Invalid mode %s, assuming current' % mode) mode = self._do_get_mode(query=False)
mode = self.get_mode(query=False) if mode not in self._modes: logging.warning(__name__ + ' : Invalid mode %s, assuming current' % mode) mode = self.get_mode(query=False)
def _do_get_digits(self, mode=None): ''' Get digits If mode=None the current mode is assumed
e225b63fff98abc004b966fd48b18f5af744fb7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/e225b63fff98abc004b966fd48b18f5af744fb7d/Keithley_2700.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 588, 67, 16649, 12, 2890, 16, 1965, 33, 7036, 4672, 9163, 968, 6815, 971, 1965, 33, 7036, 326, 783, 1965, 353, 12034, 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, 389, 2896, 67, 588, 67, 16649, 12, 2890, 16, 1965, 33, 7036, 4672, 9163, 968, 6815, 971, 1965, 33, 7036, 326, 783, 1965, 353, 12034, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
if data: data = data + self._bufferedCharacter else: data = self._bufferedCharacter
data = self._bufferedCharacter + data
def readChunk(self, chunkSize=None): if chunkSize is None: chunkSize = self._defaultChunkSize
c9fcf443aaab7b0e004e8bb42f56679c67f7dd32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10463/c9fcf443aaab7b0e004e8bb42f56679c67f7dd32/inputstream.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 5579, 12, 2890, 16, 17791, 33, 7036, 4672, 309, 17791, 353, 599, 30, 17791, 273, 365, 6315, 1886, 26307, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 5579, 12, 2890, 16, 17791, 33, 7036, 4672, 309, 17791, 353, 599, 30, 17791, 273, 365, 6315, 1886, 26307, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.stc.SetProperty('tab.timmy.whinge.level', self.classprefs.tab_highlight_style)
self.stc.SetProperty('tab.timmy.whinge.level', str(self.classprefs.tab_highlight_style))
def setTabStyle(self): self.stc.SetIndent(self.classprefs.tab_size) self.stc.SetProperty('tab.timmy.whinge.level', self.classprefs.tab_highlight_style) self.stc.SetUseTabs(self.classprefs.use_tab_characters)
6b014b8f8d82c3b9710161ca3927349a68c99cd6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/6b014b8f8d82c3b9710161ca3927349a68c99cd6/fundamental.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 5661, 2885, 12, 2890, 4672, 365, 18, 334, 71, 18, 694, 7790, 12, 2890, 18, 1106, 1484, 2556, 18, 7032, 67, 1467, 13, 365, 18, 334, 71, 18, 694, 1396, 2668, 7032, 18, 8584, 4811,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 5661, 2885, 12, 2890, 4672, 365, 18, 334, 71, 18, 694, 7790, 12, 2890, 18, 1106, 1484, 2556, 18, 7032, 67, 1467, 13, 365, 18, 334, 71, 18, 694, 1396, 2668, 7032, 18, 8584, 4811,...
"Called when the socket is closed."
"""Called when the socket is closed."""
def handle_close(self): "Called when the socket is closed." debug("DTPHandler.handle_close()") tot_bytes = self.get_transmitted_bytes()
367a95e4363ae8b7515230480fff6ef354b95226 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/367a95e4363ae8b7515230480fff6ef354b95226/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4412, 12, 2890, 4672, 3536, 8185, 1347, 326, 2987, 353, 4375, 12123, 225, 1198, 2932, 9081, 52, 1503, 18, 4110, 67, 4412, 1435, 7923, 9997, 67, 3890, 273, 365, 18, 588, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4412, 12, 2890, 4672, 3536, 8185, 1347, 326, 2987, 353, 4375, 12123, 225, 1198, 2932, 9081, 52, 1503, 18, 4110, 67, 4412, 1435, 7923, 9997, 67, 3890, 273, 365, 18, 588, 67, 2...
def continuous(self, other): """ Return True if self and other are not disjoint. """ return not self.disjoint(other)
def __contains__(self, other): """ Return True if other is wholly contained in self. other can be another segment or an object of the same type as the bounds of self. """ if type(other) == segment: return (self[0] <= other[0]) and (self[1] >= other[1]) else: return self[0] <= other < self[1]
520d2d5c9ba3a388887bd08303f9bd636037f081 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3589/520d2d5c9ba3a388887bd08303f9bd636037f081/segments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12298, 972, 12, 2890, 16, 1308, 4672, 3536, 2000, 1053, 309, 1308, 353, 600, 355, 715, 7542, 316, 365, 18, 225, 1308, 848, 506, 4042, 3267, 578, 392, 733, 434, 326, 1967, 618, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12298, 972, 12, 2890, 16, 1308, 4672, 3536, 2000, 1053, 309, 1308, 353, 600, 355, 715, 7542, 316, 365, 18, 225, 1308, 848, 506, 4042, 3267, 578, 392, 733, 434, 326, 1967, 618, 48...
encodings_l10n(args, output, base)
encodings_l10n(input_files, output, base)
def encodings_l10n(input_files, output, base): '''Generate pot file from lib/encodings''' output = open(output, 'w') # assuming only one encodings file # Encoding utf8 utf8 "Unicode (utf8)" UTF-8 variable inputenc reg = re.compile('Encoding [\w-]+\s+[\w-]+\s+"([\w \-\(\)]+)"\s+[\w-]+\s+(fixed|variable)\s+\w+.*') input = open(input_files[0]) for lineno, line in enumerate(input.readlines()): if not line.startswith('Encoding'): continue if reg.match(line): print >> output, '#: %s:%d\nmsgid "%s"\nmsgstr ""\n' % \ (relativePath(input_files[0], base), lineno+1, reg.match(line).groups()[0]) else: print "Error: Unable to handle line:" print line # No need to abort if the parsing fails # sys.exit(1) input.close() output.close()
aea6be38bb6e77fa8bf26164e0c6e0d9f72f28be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7514/aea6be38bb6e77fa8bf26164e0c6e0d9f72f28be/lyx_pot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24118, 67, 80, 2163, 82, 12, 2630, 67, 2354, 16, 876, 16, 1026, 4672, 9163, 4625, 5974, 585, 628, 2561, 19, 1331, 369, 899, 26418, 876, 273, 1696, 12, 2844, 16, 296, 91, 6134, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24118, 67, 80, 2163, 82, 12, 2630, 67, 2354, 16, 876, 16, 1026, 4672, 9163, 4625, 5974, 585, 628, 2561, 19, 1331, 369, 899, 26418, 876, 273, 1696, 12, 2844, 16, 296, 91, 6134, 468, 1...
new_value -= float(effect_amount)
if new_value is not None: new_value -= float(effect_amount) else: raise InvalidAlterationException()
def get_altered_variable_value(self,var_key,var_val): """ Get the value of the variable after it is altered by affectVariable """ if not self.affects_var(var_key): return None #if self.strategy.instance is None: #self.log.error("Not connected to a DispersalInstance.") #return None orig_value = var_val #self.strategy.instance.get_var(var_key) # handle decrease, increase, ratio av_node = self.node.xpath("affectVariable") # should only be one affectVariable element, and only one child indicating # effect effect = av_node[0][0].tag effect_amount = av_node[0][0].text new_value = float(orig_value) if effect == "decrease": new_value -= float(effect_amount) elif effect == "increase": new_value += float(effect_amount) elif effect == "ratio": new_value *= float(effect_amount) elif effect == "value": new_value = float(effect_amount) else: self.log.error("Unknown management effect: " + effect) sys.exit(mdig.mdig_exit_codes["treatment_effect"]) return new_value
d6ce4dc2afb95167cebf8d2d7f810a25585cae89 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10332/d6ce4dc2afb95167cebf8d2d7f810a25585cae89/ManagementStrategy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 22628, 329, 67, 6105, 67, 1132, 12, 2890, 16, 1401, 67, 856, 16, 1401, 67, 1125, 4672, 3536, 968, 326, 460, 434, 326, 2190, 1839, 518, 353, 22349, 635, 13418, 3092, 3536, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22628, 329, 67, 6105, 67, 1132, 12, 2890, 16, 1401, 67, 856, 16, 1401, 67, 1125, 4672, 3536, 968, 326, 460, 434, 326, 2190, 1839, 518, 353, 22349, 635, 13418, 3092, 3536, 309,...
needle_re = re.compile(arg, re.IGNORECASE) except re.error, e: return "<strong>%s: %s</strong>" % ( _("ERROR in regex '%s'") % (arg, ), e)
needle_re = re.compile(needle, re.IGNORECASE) except re.error, err: raise ValueError("Error in regex %r: %s" % (needle, err))
def macro_TemplateList(self, arg): _ = self._ try: needle_re = re.compile(arg, re.IGNORECASE) except re.error, e: return "<strong>%s: %s</strong>" % ( _("ERROR in regex '%s'") % (arg, ), e)
cbfdb4b4469c418dfd3fc11147ccba9558dd37e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/cbfdb4b4469c418dfd3fc11147ccba9558dd37e0/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 67, 2283, 682, 12, 2890, 16, 1501, 4672, 389, 273, 365, 6315, 775, 30, 9936, 67, 266, 273, 283, 18, 11100, 12, 3175, 16, 283, 18, 20118, 13415, 13, 1335, 283, 18, 1636, 16, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11522, 67, 2283, 682, 12, 2890, 16, 1501, 4672, 389, 273, 365, 6315, 775, 30, 9936, 67, 266, 273, 283, 18, 11100, 12, 3175, 16, 283, 18, 20118, 13415, 13, 1335, 283, 18, 1636, 16, 42...
andi t3, t3, 16 or reg, reg, t3
andi t4, t3, 16, flags=(EZF,) or reg, reg, t4 mov t1, t1, t3, flags=(nCEZF,)
def macroop BSF_R_M { mov t1, t1, t0, dataSize=8 ld t1, seg, sib, disp # Determine if the input was zero, and also move it to a temp reg. and t1, t1, t1, flags=(ZF,) bri t0, label("end"), flags=(CZF,) # Zero out the result register mov reg, reg, t0 subi t2, t1, 1 xor t1, t2, t1 # Bit 6 srli t3, t1, 32, dataSize=8 andi t3, t3, 32 or reg, reg, t3 # Bit 5 srli t3, t1, 16, dataSize=8 andi t3, t3, 16 or reg, reg, t3 # Bit 4 srli t3, t1, 8, dataSize=8 andi t3, t3, 8 or reg, reg, t3 # Bit 3 srli t3, t1, 4, dataSize=8 andi t3, t3, 4 or reg, reg, t3 # Bit 2 srli t3, t1, 2, dataSize=8 andi t3, t3, 2 or reg, reg, t3 # Bit 1 srli t3, t1, 1, dataSize=8 andi t3, t3, 1 or reg, reg, t3
3e7c07fe3694f0322ad14a3f78d57cc10c7ca6f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7385/3e7c07fe3694f0322ad14a3f78d57cc10c7ca6f6/bit_scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 22395, 67, 54, 67, 49, 288, 225, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, 30216, 33, 28, 16916, 268, 21, 16, 2291, 16, 12092, 16, 16232, 225, 468, 10229, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11522, 556, 605, 22395, 67, 54, 67, 49, 288, 225, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, 30216, 33, 28, 16916, 268, 21, 16, 2291, 16, 12092, 16, 16232, 225, 468, 10229, 309, ...
parser.add_option("-f", "--filename", type="string", dest="filename", help="Name for storing the downloaded icon in case of PUT or name of icon in case of DELETE.")
parser.add_option("-f", "--filename", type="string", dest="filename", help="Name for icon to DELETE.")
def do_xcap_icon(operation, account_name, file): global xcap_client try: ConfigurationManager().start(FileBackend(os.path.expanduser('~/.sipclient/config'))) except ConfigurationError, e: raise RuntimeError("failed to load sipclient's configuration: %s\nIf an old configuration file is in place, delete it or move it and recreate the configuration using the sip_settings script." % str(e)) account_manager = AccountManager() account_manager.start() if account_name is None: account = account_manager.default_account else: possible_accounts = [account for account in account_manager.iter_accounts() if account_name in account.id and account.enabled] if len(possible_accounts) > 1: raise RuntimeError("More than one account exists which matches %s: %s" % (account_name, ", ".join(sorted(account.id for account in possible_accounts)))) if len(possible_accounts) == 0: raise RuntimeError("No enabled account which matches %s was found. Available and enabled accounts: %s" % (account_name, ", ".join(sorted(account.id for account in account_manager.get_accounts() if account.enabled)))) account = possible_accounts[0] if account is None: raise RuntimeError("unknown account %s. Available accounts: %s" % (account_name, ', '.join(account.id for account in account_manager.iter_accounts()))) elif not account.enabled: raise RuntimeError("account %s is not enabled" % account.id) elif account == BonjourAccount(): raise RuntimeError("cannot use bonjour account for XCAP dialog-rules management") elif account.xcap.xcap_root is None: raise RuntimeError("XCAP root is not defined for account %s" % account.id) elif not account.xcap.icon: raise RuntimeError("XCAP icon is not enabled for account %s" % account.id) xcap_client = XCAPClient(account.xcap.xcap_root, account.id, password=account.password, auth=None) if operation == "GET": _do_icon_get() elif operation == "PUT": _do_icon_put(file) else: _do_icon_delete()
e3640a5a094288e5ac329183e35914d748015ebf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/e3640a5a094288e5ac329183e35914d748015ebf/xcap_icon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 92, 5909, 67, 3950, 12, 7624, 16, 2236, 67, 529, 16, 585, 4672, 2552, 619, 5909, 67, 2625, 225, 775, 30, 4659, 1318, 7675, 1937, 12, 812, 7172, 12, 538, 18, 803, 18, 12320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 92, 5909, 67, 3950, 12, 7624, 16, 2236, 67, 529, 16, 585, 4672, 2552, 619, 5909, 67, 2625, 225, 775, 30, 4659, 1318, 7675, 1937, 12, 812, 7172, 12, 538, 18, 803, 18, 12320, ...
self.outputbuffer.set_text('')
self.outputbox.outputbuffer.set_text('')
def handle_debuggee_output(self, ignorelines=1): #print 'handle_output called' returnmode = 'normal' try: while True: line = self.debuggee.readline() if ignorelines > 0: #print "line ignored:", line ignorelines -= 1 continue #print(line) m = re.match('> ([<>/a-zA-Z0-9_\.]+)\(([0-9]+)\).*', line) if m: self.append_debugbuffer(line) if m.group(1) == '<string>': continue lineno = int(m.group(2)) self.lineiter = self.textbuffer.get_iter_at_line(lineno-1) self.textbuffer.place_cursor(self.lineiter) print m.group(1) elif line.startswith('-> '): print 'At line: ', line[3:] print #break elif line.startswith('(Pdb)') or line.startswith('(Epdb)'): #print 'Normal break' returnmode = 'normal' break elif line.startswith("***"): print line self.append_debugbuffer(line) elif line.startswith('#'): #self.append_debugbuffer(line[1:]) #Breakpoint 1 at /home/patrick/myprogs/epdb/example.py:8 bpsuc = re.match('#Breakpoint ([0-9]+) at ([<>/a-zA-Z0-9_\.]+):([0-9]+)', line) clbpsuc = re.match("#Deleted breakpoint ([0-9]+)", line) icm = re.match("#ic: (\d+) mode: (\w+)", line) #print "interesting line '{0}'".format(line.replace(" ", '_')) prm = re.match("#var# ([<>/a-zA-Z0-9_\. \+\-]+) \|\|\| ([<>/a-zA-Z0-9_\. ]+)\r\n", line) perrm = re.match("#varerror# ([<>/a-zA-Z0-9_\. \+\-]+)\r\n", line) resm = re.match("#resource#([<>/a-zA-Z0-9_\. \+\-]*)#([<>/a-zA-Z0-9_\. \+\-]*)#\r\n", line) resem = re.match("#resource_entry#([<>/a-zA-Z0-9_\. \+\-]*)#([<>/a-zA-Z0-9_\. \+\-]*)#([<>/a-zA-Z0-9_\. \+\-]*)#([<>/a-zA-Z0-9_\. \+\-]*)#\r\n", line) tsnapm = re.match("#tsnapshot#([<>/a-zA-Z0-9_\. \+\-]*)#([<>/a-zA-Z0-9_\. \+\-]*)#\r\n", line) if line.startswith('#*** Blank or comment'): self.breakpointsuccess = False elif line.startswith("#expect input#"): self.input_entry.set_sensitive(True) self.input_entry.grab_focus() self.modelbl.set_markup( 'Mode: <span color="red">{0}</span>'.format('INPUT')) returnmode = 'intermediate' break elif line.startswith("#show resources#"): self.resourcebox.clear_resources() elif line.startswith("#timeline_snapshots#"): self.snapshotbox.clear_snapshots() elif resm: #print "resm", resm.group(1), resm.group(2) self.resourcebox.add_resource(resm.group(1), resm.group(2)) elif resem: self.resourcebox.add_resource_entry(resem.group(1), resem.group(2), resem.group(3), resem.group(4)) elif tsnapm: print tsnapm, tsnapm.group(1), tsnapm.group(2) self.snapshotbox.add_snapshot(tsnapm.group(1), tsnapm.group(2)) elif line.startswith('#-->'): self.outputbuffer.set_text('') elif line.startswith('#->'): self.append_output(line[3:]) elif bpsuc: self.breakpointno = bpsuc.group(1) self.breakpointsuccess = True elif clbpsuc: self.clearbpsuccess = True elif line.startswith("#newtimeline successful"): self.newtimelinesuc = True elif line.startswith("#Switched to timeline"): self.timelineswitchsuc = True elif icm: ic = icm.group(1) mode = icm.group(2) self.modelbl.set_markup( 'Mode: <span color="red">{0}</span>'.format(mode)) self.iclbl.set_markup('Ic: {0}'.format(ic)) #print "New markup set", mode, ic elif prm: #print 'Got update', line var = prm.group(1) value = prm.group(2) self.varbox.update_variable(var, value) #print var, value elif perrm: #print 'Got var err update' var = perrm.group(1) #print var self.varbox.update_variable_error(var) else: 'print "OTHER LINE", line' self.append_debugbuffer(line[1:]) elif line.startswith('--Return--'): print 'Return' self.append_output(line) #dialog = RestartDlg(self) #dialog.run() elif line.startswith('The program finished and will be restarted'): print 'Finished: ', line dlg = MessageDlg(title='Restart', message='The program has finished and will be restarted now', action=self.restart) dlg.run() #break else: #print line self.append_output(line) except pexpect.TIMEOUT: print "TIMEOUT" #gtk.main_quit() self.text.scroll_mark_onscreen(self.textbuffer.get_insert()) return returnmode
17466ef0e62a97384363a1ba189f4b8c03f93b77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4616/17466ef0e62a97384363a1ba189f4b8c03f93b77/gepdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4148, 908, 73, 67, 2844, 12, 2890, 16, 2305, 3548, 33, 21, 4672, 468, 1188, 296, 4110, 67, 2844, 2566, 11, 327, 3188, 273, 296, 6130, 11, 775, 30, 1323, 1053, 30, 980, 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, 1640, 67, 4148, 908, 73, 67, 2844, 12, 2890, 16, 2305, 3548, 33, 21, 4672, 468, 1188, 296, 4110, 67, 2844, 2566, 11, 327, 3188, 273, 296, 6130, 11, 775, 30, 1323, 1053, 30, 980, 273,...
PASSWD = getpass.getpass("IMAP password for %s on %s:" % (USER, host or "localhost"))
PASSWD = getpass.getpass("IMAP password for %s on %s: " % (USER, host or "localhost"))
def print_log(): _mesg('last %d IMAP4 interactions:' % len(_cmd_log)) for secs,line in _cmd_log: _mesg(line, secs)
bd2f753da8c4902fda79f5a41d749758bc9be20a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bd2f753da8c4902fda79f5a41d749758bc9be20a/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1330, 13332, 389, 26244, 75, 2668, 2722, 738, 72, 6246, 2203, 24, 23877, 2497, 738, 562, 24899, 4172, 67, 1330, 3719, 364, 18043, 16, 1369, 316, 389, 4172, 67, 1330, 30, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1330, 13332, 389, 26244, 75, 2668, 2722, 738, 72, 6246, 2203, 24, 23877, 2497, 738, 562, 24899, 4172, 67, 1330, 3719, 364, 18043, 16, 1369, 316, 389, 4172, 67, 1330, 30, 389, ...
for path in (src_dir, os.path.join(dst_dir, os.path.pardir)):
for path in (src_dir, os.path.abspath(os.path.join(dst_dir, os.path.pardir)) ):
def read_data(path): f = open(path) data = f.read() f.close() return data
547867e13a00d4373555e4c2ad4185195f4f4af9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/547867e13a00d4373555e4c2ad4185195f4f4af9/test_shutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 892, 12, 803, 4672, 284, 273, 1696, 12, 803, 13, 501, 273, 284, 18, 896, 1435, 284, 18, 4412, 1435, 327, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 892, 12, 803, 4672, 284, 273, 1696, 12, 803, 13, 501, 273, 284, 18, 896, 1435, 284, 18, 4412, 1435, 327, 501, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'test_minimize_0005': (6.5104620456695557, 211.44434142112732),
'test_minimize_0005': (0.52356314659118652, 18.083697080612183),
def runInSandbox(self): global testTimes testTimes[self.methodname] = 0.0
e942c2abf0f816dd3a02e5a5c4c2ebbf99549d5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e942c2abf0f816dd3a02e5a5c4c2ebbf99549d5c/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 382, 17881, 12, 2890, 4672, 2552, 1842, 10694, 1842, 10694, 63, 2890, 18, 2039, 529, 65, 273, 374, 18, 20, 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, 1086, 382, 17881, 12, 2890, 4672, 2552, 1842, 10694, 1842, 10694, 63, 2890, 18, 2039, 529, 65, 273, 374, 18, 20, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
raise error, "unterminated index"
raise error, "unterminated group name"
def parse_template(source, pattern): # parse 're' replacement string into list of literals and # group references s = Tokenizer(source) p = [] a = p.append while 1: this = s.get() if this is None: break # end of replacement string if this and this[0] == "\\": if this == "\\g": name = "" if s.match("<"): while 1: char = s.get() if char is None: raise error, "unterminated index" if char == ">": break # FIXME: check for valid character name = name + char if not name: raise error, "bad index" try: index = int(name) except ValueError: try: index = pattern.groupindex[name] except KeyError: raise IndexError, "unknown index" a((MARK, index)) elif len(this) > 1 and this[1] in DIGITS: while s.next in DIGITS: this = this + s.get() a((MARK, int(this[1:]))) else: try: a(ESCAPES[this]) except KeyError: for char in this: a((LITERAL, char)) else: a((LITERAL, this)) return p
1520775383fdbae9638123a94c78a6933ee36026 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1520775383fdbae9638123a94c78a6933ee36026/sre_parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3202, 12, 3168, 16, 1936, 4672, 468, 1109, 296, 266, 11, 6060, 533, 1368, 666, 434, 18228, 471, 468, 1041, 5351, 272, 273, 26702, 12, 3168, 13, 293, 273, 5378, 279, 273, 293,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3202, 12, 3168, 16, 1936, 4672, 468, 1109, 296, 266, 11, 6060, 533, 1368, 666, 434, 18228, 471, 468, 1041, 5351, 272, 273, 26702, 12, 3168, 13, 293, 273, 5378, 279, 273, 293,...
ids = self.search(cr, user, args, limit=limit, context=context) res = self.name_get(cr, name_get_uid or user, ids, context)
access_rights_uid = name_get_uid or user ids = self._search(cr, user, args, limit=limit, context=context, access_rights_uid=access_rights_uid) res = self.name_get(cr, access_rights_uid, ids, context)
def _name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=100, name_get_uid=None): if args is None: args = [] if context is None: context = {} args = args[:] if name: args += [(self._rec_name, operator, name)] ids = self.search(cr, user, args, limit=limit, context=context) res = self.name_get(cr, name_get_uid or user, ids, context) return res
fb1b59cc7592103b77e5eba54e06b0470f245930 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/fb1b59cc7592103b77e5eba54e06b0470f245930/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 529, 67, 3072, 12, 2890, 16, 4422, 16, 729, 16, 508, 2218, 2187, 833, 33, 7036, 16, 3726, 2218, 330, 2547, 2187, 819, 33, 7036, 16, 1800, 33, 6625, 16, 508, 67, 588, 67, 1911, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 529, 67, 3072, 12, 2890, 16, 4422, 16, 729, 16, 508, 2218, 2187, 833, 33, 7036, 16, 3726, 2218, 330, 2547, 2187, 819, 33, 7036, 16, 1800, 33, 6625, 16, 508, 67, 588, 67, 1911, ...
'g0nntl', 'jcntl', 'rankntl', 'gsl', cblas(), 'ntl', 'csage']
'g0nntl', 'jcntl', 'rankntl', 'gsl', cblas(), atlas(), 'ntl', 'csage']
def cblas(): if os.environ.has_key('SAGE_CBLAS'): return os.environ['SAGE_CBLAS'] elif os.path.exists('/usr/lib/libcblas.dylib') or \ os.path.exists('/usr/lib/libcblas.so'): return 'cblas' elif os.path.exists('/usr/lib/libblas.dll.a'): # untested. return 'blas' else: # This is very slow (?), but *guaranteed* to be available. return 'gslcblas'
a09a3c693c074d39212f2c90540b0d6402fd6af2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a09a3c693c074d39212f2c90540b0d6402fd6af2/cython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 9521, 13332, 309, 1140, 18, 28684, 18, 5332, 67, 856, 2668, 55, 2833, 67, 8876, 2534, 55, 11, 4672, 327, 1140, 18, 28684, 3292, 55, 2833, 67, 8876, 2534, 55, 3546, 1327, 1140, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 9521, 13332, 309, 1140, 18, 28684, 18, 5332, 67, 856, 2668, 55, 2833, 67, 8876, 2534, 55, 11, 4672, 327, 1140, 18, 28684, 3292, 55, 2833, 67, 8876, 2534, 55, 3546, 1327, 1140, 18...
this = apply(_quickfix.new_UnderlyingProduct, args)
this = _quickfix.new_UnderlyingProduct(*args)
def __init__(self, *args): this = apply(_quickfix.new_UnderlyingProduct, 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, 14655, 6291, 4133, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 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, 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, 14655, 6291, 4133, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
if (e.errno != errno.EPERM and e.errno != errno.EACCES) \
if (e.errno not in (errno.EPERM, errno.EACCES, errno.EBADF)) \
def fsync_local(self, thunk = None): """fsync current file, run locally
4a6db7803d31249b06f8f6fcee026849dcdbd328 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8033/4a6db7803d31249b06f8f6fcee026849dcdbd328/rpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2662, 1209, 67, 3729, 12, 2890, 16, 286, 1683, 273, 599, 4672, 3536, 2556, 1209, 783, 585, 16, 1086, 13760, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2662, 1209, 67, 3729, 12, 2890, 16, 286, 1683, 273, 599, 4672, 3536, 2556, 1209, 783, 585, 16, 1086, 13760, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
uid = self.task_ts.get_value(selection_iter, 0) else : selection = self.taskdone_tview.get_selection() model, selection_iter = selection.get_selected() if selection_iter : uid = self.taskdone_ts.get_value(selection_iter, 0)
ts = tview.get_model() uid = ts.get_value(selection_iter, 0)
def get_selected_task(self) : uid = None # Get the selection in the gtk.TreeView selection = self.task_tview.get_selection() # Get the selection iter model, selection_iter = selection.get_selected() if selection_iter : uid = self.task_ts.get_value(selection_iter, 0) #maybe the selection is in the taskdone_tview ? else : selection = self.taskdone_tview.get_selection() model, selection_iter = selection.get_selected() if selection_iter : uid = self.taskdone_ts.get_value(selection_iter, 0) return uid
b8dfc67672b0b5173787ea6d49b4f30fc186fc4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/b8dfc67672b0b5173787ea6d49b4f30fc186fc4e/taskbrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8109, 67, 4146, 12, 2890, 13, 294, 4555, 273, 599, 468, 968, 326, 4421, 316, 326, 22718, 18, 2471, 1767, 4421, 273, 365, 18, 4146, 67, 88, 1945, 18, 588, 67, 10705, 1435, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8109, 67, 4146, 12, 2890, 13, 294, 4555, 273, 599, 468, 968, 326, 4421, 316, 326, 22718, 18, 2471, 1767, 4421, 273, 365, 18, 4146, 67, 88, 1945, 18, 588, 67, 10705, 1435, 46...
ZopeTestCase.installProduct('MailHost', quiet=1) ZopeTestCase.installProduct('PageTemplates', quiet=1) ZopeTestCase.installProduct('PythonScripts', quiet=1) ZopeTestCase.installProduct('ExternalMethod', quiet=1)
ZopeTestCase.installProduct('MailHost', 1) ZopeTestCase.installProduct('PageTemplates', 1) ZopeTestCase.installProduct('PythonScripts', 1) ZopeTestCase.installProduct('ExternalMethod', 1)
def dcEdit(obj): """dublin core edit (inplace) """ obj.setTitle('Test Title') obj.setDescription('Test description') # XXX more
ff9d89f26a432d62a1e362915ed8be38d46c9ac1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/ff9d89f26a432d62a1e362915ed8be38d46c9ac1/common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6744, 4666, 12, 2603, 4672, 3536, 72, 29056, 2922, 3874, 261, 267, 964, 13, 3536, 1081, 18, 542, 4247, 2668, 4709, 10984, 6134, 1081, 18, 542, 3291, 2668, 4709, 2477, 6134, 468, 11329, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6744, 4666, 12, 2603, 4672, 3536, 72, 29056, 2922, 3874, 261, 267, 964, 13, 3536, 1081, 18, 542, 4247, 2668, 4709, 10984, 6134, 1081, 18, 542, 3291, 2668, 4709, 2477, 6134, 468, 11329, 1...
self.__import_programs(ctime - 3600 * 4, ctime + 366 * 10)
self.__import_programs(ctime - 3600 * 4, ctime + 3600 * 10)
def __precache(self): ctime = int(time.time()) self.__import_programs(ctime - 3600 * 4, ctime + 366 * 10) return False
f29806184942ec04f800b8bce4da1a3a7ddafdcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/f29806184942ec04f800b8bce4da1a3a7ddafdcc/channel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1484, 2493, 12, 2890, 4672, 276, 957, 273, 509, 12, 957, 18, 957, 10756, 365, 16186, 5666, 67, 12890, 87, 12, 21261, 300, 12396, 380, 1059, 16, 276, 957, 397, 12396, 380, 1728, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1484, 2493, 12, 2890, 4672, 276, 957, 273, 509, 12, 957, 18, 957, 10756, 365, 16186, 5666, 67, 12890, 87, 12, 21261, 300, 12396, 380, 1059, 16, 276, 957, 397, 12396, 380, 1728, 1...
del self.objs[id]
del self.objs[uid]
def unregister(self, ob): uid = self.ids[ob] del self.ids[ob] del self.objs[id]
2716fce1bd8292fb886298aa26f4afc7e5bcf38b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9701/2716fce1bd8292fb886298aa26f4afc7e5bcf38b/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10232, 12, 2890, 16, 3768, 4672, 4555, 273, 365, 18, 2232, 63, 947, 65, 1464, 365, 18, 2232, 63, 947, 65, 1464, 365, 18, 18093, 63, 350, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 10232, 12, 2890, 16, 3768, 4672, 4555, 273, 365, 18, 2232, 63, 947, 65, 1464, 365, 18, 2232, 63, 947, 65, 1464, 365, 18, 18093, 63, 350, 65, 2, -100, -100, -100, -100, -100, -100, -1...
if sys.platform.lower().startswith("darwin") and os.getuid() != 0:
if sys.platform.lower().startswith("darwin") and os.geteuid() != 0:
def test_pid_0(self): # Process(0) is supposed to work on all platforms even if with # some differences p = psutil.Process(0) if sys.platform.lower().startswith("win32"): self.assertEqual(p.name, 'System Idle Process') elif sys.platform.lower().startswith("linux"): self.assertEqual(p.name, 'sched') elif sys.platform.lower().startswith("freebsd"): self.assertEqual(p.name, 'swapper') elif sys.platform.lower().startswith("darwin"): self.assertEqual(p.name, 'kernel_task')
79cb8af0971776e16e36c00eb1f530ccbe8577a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7296/79cb8af0971776e16e36c00eb1f530ccbe8577a0/test_psutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6610, 67, 20, 12, 2890, 4672, 468, 4389, 12, 20, 13, 353, 18405, 358, 1440, 603, 777, 17422, 5456, 309, 598, 468, 2690, 16440, 293, 273, 27024, 18, 2227, 12, 20, 13, 309, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6610, 67, 20, 12, 2890, 4672, 468, 4389, 12, 20, 13, 353, 18405, 358, 1440, 603, 777, 17422, 5456, 309, 598, 468, 2690, 16440, 293, 273, 27024, 18, 2227, 12, 20, 13, 309, 2...
return self.tk.call(self._w, 'info', 'hidden', entry)
return self.tk.call(self._w, 'info', 'hidden', entry)
def info_hidden(self, entry):
22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 67, 6345, 12, 2890, 16, 1241, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 67, 6345, 12, 2890, 16, 1241, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
raise
if (isinstance(msg, policy.PolicyError) and not cfg.debugRecipeExceptions): print msg sys.exit(1) else: raise
def _cookPackageObject(repos, cfg, recipeClass, sourceVersion, prep=True, macros={}, resume = None, ignoreDeps=False, logBuild=False): """Builds the package for cookPackageObject. Parameter meanings are described there. """ fullName = recipeClass.name lcache = lookaside.RepositoryCache(repos) srcdirs = [ os.path.dirname(recipeClass.filename), cfg.sourceSearchDir % {'pkgname': recipeClass.name} ] recipeObj = recipeClass(cfg, lcache, srcdirs, macros) recipeObj.populateLcache() recipeObj.isatty(sys.stdout.isatty() and sys.stdin.isatty()) builddir = util.normpath(cfg.buildPath) + "/" + recipeObj.name use.track(True) if recipeObj._trackedFlags is not None: use.setUsed(recipeObj._trackedFlags) recipeObj.setup() try: recipeObj.checkBuildRequirements(cfg, sourceVersion, ignoreDeps=ignoreDeps) except CookError: return bldInfo = buildinfo.BuildInfo(builddir) recipeObj.buildinfo = bldInfo destdir = '' maindir = '' if not resume: destdir = '' if os.path.exists(builddir): shutil.rmtree(builddir) else: try: bldInfo.read() if 'destdir' in bldInfo: destdir = bldInfo.destdir if 'maindir' in bldInfo: maindir = bldInfo.maindir except: pass util.mkdirChain(builddir + '/' + recipeObj.mainDir()) if not destdir: destdir = builddir + '/_ROOT_' util.mkdirChain(destdir) if logBuild: # turn on logging of this trove. Log is packaged as part # of :debug component logPath = destdir + recipeObj.macros.buildlogpath # during the build, keep the log file in the same dir as buildinfo. # that will make it more accessible for debugging. At the end of # the build, copy to the correct location tmpLogPath = builddir + '/' + os.path.basename(logPath) # this file alone is not enough to make us build a package recipeObj._autoCreatedFileCount += 1 util.mkdirChain(os.path.dirname(logPath)) # touch the logPath file so that the build process expects # a file there for packaging open(logPath, 'w') try: logFile = logger.startLog(tmpLogPath) except OSError, err: if err.args[0] == 'out of pty devices': log.warning('*** No ptys found -- not logging build ***') logBuild = False # don't worry about cleaning up the touched log file -- # it's in the build dir and will be erased when the build # is finished else: raise try: bldInfo.begin() bldInfo.destdir = destdir if maindir: recipeObj.mainDir(maindir) if resume is True: resume = bldInfo.lastline recipeObj.unpackSources(builddir, destdir, resume) # if we're only extracting, continue to the next recipe class. if prep: return cwd = os.getcwd() try: os.chdir(builddir + '/' + recipeObj.mainDir()) recipeObj.doBuild(builddir, resume=resume) if resume and resume != "policy" and \ recipeObj.resumeList[-1][1] != False: log.info('Finished Building %s Lines %s, Not Running Policy', recipeClass.name, resume) return log.info('Processing %s', recipeClass.name) recipeObj.doDestdirProcess() # includes policy bldInfo.stop() use.track(False) finally: os.chdir(cwd) grpName = recipeClass.name bldList = recipeObj.getPackages() if (not bldList or sum(len(x) for x in bldList) <= recipeObj._autoCreatedFileCount): # no components in packages, or no explicit files in components log.error('No files were found to add to package %s' %recipeClass.name) return except Exception, msg: if logBuild: logFile.write('%s\n' % msg) logFile.write(''.join(traceback.format_exception(*sys.exc_info()))) logFile.write('\n') logFile.close() raise if logBuild and recipeObj._autoCreatedFileCount: logFile.close() os.unlink(logPath) if cfg.noClean: # leave the easily accessible copy in place in # builddir shutil.copy2(tmpLogPath, logPath) else: os.rename(tmpLogPath, logPath) # update contents on the buildlog, since they changed buildlogpath = recipeObj.macros.buildlogpath recipeObj.autopkg.updateFileContents( recipeObj.macros.buildlogpath, logPath) recipeObj.autopkg.pathMap[buildlogpath].tags.set("buildlog") return bldList, recipeObj, builddir, destdir
ca8b9cad470ae084b9b0376c62007d926d7449a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ca8b9cad470ae084b9b0376c62007d926d7449a9/cook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 29854, 2261, 921, 12, 15564, 16, 2776, 16, 16100, 797, 16, 1084, 1444, 16, 13237, 33, 5510, 16, 24302, 28793, 10774, 273, 599, 16, 2305, 14430, 33, 8381, 16, 613, 3116, 33, 8381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29854, 2261, 921, 12, 15564, 16, 2776, 16, 16100, 797, 16, 1084, 1444, 16, 13237, 33, 5510, 16, 24302, 28793, 10774, 273, 599, 16, 2305, 14430, 33, 8381, 16, 613, 3116, 33, 8381, ...
self.popup.popup(None, None, None, evt.button, evt.time)
self.popup.popup_for_device(None, None, None, None, None, evt.button.button, evt.time)
def on_treeview_row_clicked(self, tv, evt): """ Called when the user clicked on a treeview element. """ try: if evt.button == 3: path = tv.get_path_at_pos(int(evt.x), int(evt.y)) sel = tv.get_selection() (rows, _) = sel.get_selected_rows() if path[0] not in rows[1]: sel.unselect_all() sel.select_path(path[0]) tv.grab_focus() self.popup.popup(None, None, None, evt.button, evt.time) return True coords = evt.get_coords() path, c, x, y = tv.get_path_at_pos(int(coords[0]), int(coords[1])) if (path.get_depth() == 1): if tv.row_expanded(path): tv.collapse_row(path) else: tv.expand_row(path, False) self.album_button.set_sensitive(True) except: pass
23dcebe216890665c4e48f0517fadbf00f85273d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11070/23dcebe216890665c4e48f0517fadbf00f85273d/jamendo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3413, 1945, 67, 492, 67, 7475, 329, 12, 2890, 16, 13521, 16, 6324, 4672, 3536, 11782, 1347, 326, 729, 17688, 603, 279, 2151, 1945, 930, 18, 3536, 775, 30, 309, 6324, 18, 5391,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3413, 1945, 67, 492, 67, 7475, 329, 12, 2890, 16, 13521, 16, 6324, 4672, 3536, 11782, 1347, 326, 729, 17688, 603, 279, 2151, 1945, 930, 18, 3536, 775, 30, 309, 6324, 18, 5391,...
self.shutdown()
self.expire_dcall = None self.forgetTimeouts()
def cb(msgs, ack_key): self.shutdown() del msgs[ack_key]
09029ec9c1189a2e15cc78a67656bc93d77f8785 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4752/09029ec9c1189a2e15cc78a67656bc93d77f8785/dtella_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 12, 27439, 16, 8479, 67, 856, 4672, 365, 18, 14070, 67, 72, 1991, 273, 599, 365, 18, 1884, 588, 2694, 87, 1435, 1464, 8733, 63, 484, 67, 856, 65, 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, 2875, 12, 27439, 16, 8479, 67, 856, 4672, 365, 18, 14070, 67, 72, 1991, 273, 599, 365, 18, 1884, 588, 2694, 87, 1435, 1464, 8733, 63, 484, 67, 856, 65, 2, -100, -100, -100, -100, -10...
for topic_id in topic_list:
for topic_id in topic_ids:
def moderate(request, forum_id): forum = get_object_or_404(Forum, pk=forum_id) topics = forum.topics.order_by('-sticky', '-updated').select_related() if request.user.is_superuser or request.user in forum.moderators.all(): if 'move_topics' in request.POST: topic_ids = request.POST.getlist('topic_id') return { 'categories': Category.objects.all(), 'topic_ids': topic_ids, 'exclude_forum': forum, 'TEMPLATE': 'forum/move_topic.html' } elif 'delete_topics' in request.POST: for topic_id in topic_list: topic = get_object_or_404(Topic, pk=topic_id) topic.delete() return HttpResponseRedirect(reverse('djangobb:index')) elif 'open_topics' in request.POST: for topic_id in topic_list: open_close_topic(request, topic_id) return HttpResponseRedirect(reverse('djangobb:index')) elif 'close_topics' in request.POST: for topic_id in topic_list: open_close_topic(request, topic_id) return HttpResponseRedirect(reverse('djangobb:index')) return {'forum': forum, 'topics': topics, #'sticky_topics': forum.topics.filter(sticky=True), 'paged_qs': topics, 'posts': forum.posts.count(), } else: raise Http404
7ee8d7eff12ad25a4d4e3c29889ee0c376a02d28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13701/7ee8d7eff12ad25a4d4e3c29889ee0c376a02d28/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 681, 12600, 12, 2293, 16, 11283, 67, 350, 4672, 11283, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 1290, 379, 16, 2365, 33, 11725, 67, 350, 13, 11204, 273, 11283, 18, 17905, 18, 1019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 681, 12600, 12, 2293, 16, 11283, 67, 350, 4672, 11283, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 1290, 379, 16, 2365, 33, 11725, 67, 350, 13, 11204, 273, 11283, 18, 17905, 18, 1019, ...
('E-mail 24 Address', gdata.data.OTHER_REL, None, 7),
('E-mail 24 Address', gdata.data.OTHER_REL, None, 7), ('E-mail 25 Address', gdata.data.WORK_REL, None, 8), ('E-mail 26 Address', gdata.data.HOME_REL, None, 8), ('E-mail 27 Address', gdata.data.OTHER_REL, None, 8), ('E-mail 28 Address', gdata.data.WORK_REL, None, 9), ('E-mail 29 Address', gdata.data.HOME_REL, None, 9), ('E-mail 30 Address', gdata.data.OTHER_REL, None, 9), ('E-mail 31 Address', gdata.data.WORK_REL, None, 10), ('E-mail 32 Address', gdata.data.HOME_REL, None, 10), ('E-mail 33 Address', gdata.data.OTHER_REL, None, 10),
def __init__(self): """Builds a new Outlook to GData converter.""" self.display_name_fields = ( 'First Name', 'Middle Name', 'Last Name', 'Suffix')
aa13df5ffe55022c2378f7e4f20852a5cdf74f62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11/aa13df5ffe55022c2378f7e4f20852a5cdf74f62/shared_contacts_profiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 7746, 279, 394, 2976, 7330, 358, 611, 751, 6027, 12123, 365, 18, 5417, 67, 529, 67, 2821, 273, 261, 296, 3759, 1770, 2187, 296, 21924, 1770, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 7746, 279, 394, 2976, 7330, 358, 611, 751, 6027, 12123, 365, 18, 5417, 67, 529, 67, 2821, 273, 261, 296, 3759, 1770, 2187, 296, 21924, 1770, 2187, ...
except:
except TypeError:
def span_of_basis(self, basis, base_ring=None, check=True, already_echelonized=False): r""" Return the free K-module with the given basis, where K is the base field of self or user specified base_ring.
0bd1519589af29f6c0ed25b8ffeab166b3c23c02 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0bd1519589af29f6c0ed25b8ffeab166b3c23c02/free_module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4548, 67, 792, 67, 23774, 12, 2890, 16, 10853, 16, 1026, 67, 8022, 33, 7036, 16, 866, 33, 5510, 16, 1818, 67, 8987, 292, 265, 1235, 33, 8381, 4672, 436, 8395, 2000, 326, 4843, 1475, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4548, 67, 792, 67, 23774, 12, 2890, 16, 10853, 16, 1026, 67, 8022, 33, 7036, 16, 866, 33, 5510, 16, 1818, 67, 8987, 292, 265, 1235, 33, 8381, 4672, 436, 8395, 2000, 326, 4843, 1475, ...
if hasattr(self, 'id'): id = self.id else: id = "???" if hasattr(self, 'remoteaddress'): addr = '[%s]' % (self.remoteaddress,) else: addr = '' try: r = (self._receiverthread.isAlive() and "receive-live" or "not-receiving")
try: r = (self.hasreceiver() and 'receive-live' or 'not-receiving')
def __repr__(self): """ return string representing gateway type and status. """ if hasattr(self, 'id'): id = self.id else: id = "???" if hasattr(self, 'remoteaddress'): addr = '[%s]' % (self.remoteaddress,) else: addr = '' try: r = (self._receiverthread.isAlive() and "receive-live" or "not-receiving") i = len(self._channelfactory.channels()) except AttributeError: r = "uninitialized" i = "no" return "<%s%s id=%r %s, %s active channels>" %( self.__class__.__name__, addr, id, r, i)
647c4a943e7d6c2f4b39791d4787ed60759837ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7009/647c4a943e7d6c2f4b39791d4787ed60759837ca/gateway.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3536, 327, 533, 5123, 6878, 618, 471, 1267, 18, 3536, 775, 30, 436, 273, 261, 2890, 18, 5332, 24454, 1435, 471, 296, 18149, 17, 16472, 11, 578, 296, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12715, 972, 12, 2890, 4672, 3536, 327, 533, 5123, 6878, 618, 471, 1267, 18, 3536, 775, 30, 436, 273, 261, 2890, 18, 5332, 24454, 1435, 471, 296, 18149, 17, 16472, 11, 578, 296, 9...
model = c.FONewCanonicalTwoStage(**foargs)
model = c.FOCanonicalTwoStage(**foargs)
def runfomodel(kinit, kend, deltak, filename=None, foargs=None): """Execute a FOCanonicalTwoStage model and save results. A new instance of FOCanonicalTwoStage is created, with the specified arguments. The model is run and the results are then saved into a file with the specified filename Parameters ---------- kinit : float Start of sequence of mode numbers to run in model. kend : float End of sequence of mode numbers to run in model. deltak : float Step size in sequence of mode numbers to test. filename : String, optional Name of file to save results to. File will be created in the directory specified by `RESULTSDIR` module variable. foargs : dict, optional Dictonary of arguments to be sent to first order class method. If `foargs` contains a key `k` then these mode numbers will be used instead of the sequence generated by `kinit`, `kend` and `deltak`. Returns ------- filename: String Name of the file where results have been saved. Raises ------ Exception Any exception raised during saving of code. """ if foargs is None: foargs = {} if "k" not in foargs: foargs["k"] = stb.seq(kinit, kend, deltak) if "solver" not in foargs: foargs["solver"] = "rkdriver_withks" model = c.FONewCanonicalTwoStage(**foargs) try: harness_logger.debug("Starting model run...") model.run(saveresults=False) harness_logger.debug("Model run finished.") except c.ModelError: harness_logger.exception("Something went wrong with model, quitting!") sys.exit(1) if filename is None: filename = RESULTSDIR + "fo" + time.strftime("%Y%m%d%H%M%S") + ".hf5" try: harness_logger.debug("Trying to save model data to %s...", filename) ensureresultspath(filename) model.saveallresults(filename=filename) #Success! harness_logger.info("Successfully ran and saved simulation in file %s.", filename) except Exception: harness_logger.exception("IO error, nothing saved!") #Destroy model instance to save memory harness_logger.debug("Destroying model instance...") del model return filename
ebd9d85bac542b7c56f42d5d3948546025122b9f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7283/ebd9d85bac542b7c56f42d5d3948546025122b9f/harness.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 74, 362, 1009, 12, 79, 2738, 16, 417, 409, 16, 1464, 88, 581, 16, 1544, 33, 7036, 16, 18261, 1968, 33, 7036, 4672, 3536, 5289, 279, 17634, 15512, 11710, 8755, 938, 471, 1923, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 74, 362, 1009, 12, 79, 2738, 16, 417, 409, 16, 1464, 88, 581, 16, 1544, 33, 7036, 16, 18261, 1968, 33, 7036, 4672, 3536, 5289, 279, 17634, 15512, 11710, 8755, 938, 471, 1923, 168...
def insertUnique(self, path, obj, **kw): def uniquePath(node, path): for item in path: node = node.subNodes[item] return path + [unicode(len(node.subNodes))] self.updatedDirCachePath(path) upath = uniquePath(self.dirCache, path) self.insert(upath, obj, **kw) return upath
def insertUnique(self, path, obj, treeNode = None, **kw): parentNode = self.updatedDirCachePath(path, treeNode = treeNode) uniqueName = unicode(len(parentNode.subNodes)) self.insert([uniqueName], obj, treeNode = parentNode, **kw) return path + [uniqueName]
def insertUnique(self, path, obj, **kw): def uniquePath(node, path): for item in path: node = node.subNodes[item] return path + [unicode(len(node.subNodes))] self.updatedDirCachePath(path) upath = uniquePath(self.dirCache, path) self.insert(upath, obj, **kw) return upath
055c7e9d46f869b104f4f3ac08a20c92d586f5d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/055c7e9d46f869b104f4f3ac08a20c92d586f5d4/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 6303, 12, 2890, 16, 589, 16, 1081, 16, 2826, 9987, 4672, 1652, 3089, 743, 12, 2159, 16, 589, 4672, 364, 761, 316, 589, 30, 756, 273, 756, 18, 1717, 3205, 63, 1726, 65, 327, 589...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2243, 6303, 12, 2890, 16, 589, 16, 1081, 16, 2826, 9987, 4672, 1652, 3089, 743, 12, 2159, 16, 589, 4672, 364, 761, 316, 589, 30, 756, 273, 756, 18, 1717, 3205, 63, 1726, 65, 327, 589...
from libtbx.easy_run import subprocess
if (sys.version_info[:2] < (2,6)): from libtbx.easy_run import subprocess else: import subprocess
def run_in_dir(cmd_info): d = op.dirname(cmd_info.log) os.mkdir(d) os.chdir(d) from libtbx.command_line import printenv printenv.show(out=open("os_environ_at_start", "w")) from libtbx.easy_run import subprocess log = open("log", "w") t0 = time.time() try: subprocess.Popen( args=cmd_info.cmd, shell=True, bufsize=-1, stdout=log, stderr=log, universal_newlines=True).wait() except: # intentional show_traceback(file=log) print >> log, fmt_time(t0) sys.stdout.flush()
0e0d433b852e88909eb5f8c0a5d1df6c69a75228 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/0e0d433b852e88909eb5f8c0a5d1df6c69a75228/parallel_simple.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 267, 67, 1214, 12, 4172, 67, 1376, 4672, 302, 273, 1061, 18, 12287, 12, 4172, 67, 1376, 18, 1330, 13, 1140, 18, 26686, 12, 72, 13, 1140, 18, 343, 1214, 12, 72, 13, 628, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 267, 67, 1214, 12, 4172, 67, 1376, 4672, 302, 273, 1061, 18, 12287, 12, 4172, 67, 1376, 18, 1330, 13, 1140, 18, 26686, 12, 72, 13, 1140, 18, 343, 1214, 12, 72, 13, 628, 2...
% destination) if os.path.exists(destination): base = os.path.basename(os.path.normpath(source)) destination = os.path.join(destination, base)
% dest) if os.path.exists(dest): base = os.path.basename(source) dest = os.path.join(dest, base)
def _copy_dir(self, source, destination): if not os.path.exists(source): raise DataError("Source directory '%s' does not exist" % source) if not os.path.isdir(source): raise DataError("Source directory '%s' is not a directory" % source) if os.path.exists(destination) and not os.path.isdir(destination): raise DataError("Destination '%s' exists but is not a directory" % destination) if os.path.exists(destination): base = os.path.basename(os.path.normpath(source)) destination = os.path.join(destination, base) else: parent = os.path.dirname(os.path.normpath(destination)) if not os.path.exists(parent): os.makedirs(parent) shutil.copytree(source, destination)
8394d54a14ff248630063a73df253438178dff53 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/8394d54a14ff248630063a73df253438178dff53/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 67, 1214, 12, 2890, 16, 1084, 16, 2929, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 3168, 4672, 1002, 1910, 668, 2932, 1830, 1867, 1995, 87, 11, 1552, 486, 1005, 6, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3530, 67, 1214, 12, 2890, 16, 1084, 16, 2929, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 3168, 4672, 1002, 1910, 668, 2932, 1830, 1867, 1995, 87, 11, 1552, 486, 1005, 6, 738, ...
self.fig.subplots_adjust(bottom=0.20, hspace=0.01, right=0.999, top=0.95, left=0.18)
self.fig.subplots_adjust(bottom=0.10, hspace=0.01, right=0.999, top=0.95, left=0.08)
def drawAxes(self): #XXX wanted to change to seconds on x-axis but there is one problem: # during picking it's convenient to round to the nearest sample # with float seconds on the x-axis it's not so easy anymore npts = self.streams[self.stPt][0].stats.npts smprt = self.streams[self.stPt][0].stats.sampling_rate dt = 1. / smprt self.t = np.arange(0., dt * npts, dt) #self.t = np.arange(self.streams[self.stPt][0].stats.npts) self.axs = [] self.plts = [] self.trans = [] trNum = len(self.streams[self.stPt].traces) for i in range(trNum): if i == 0: self.axs.append(self.fig.add_subplot(trNum,1,i+1)) self.trans.append(matplotlib.transforms.blended_transform_factory(self.axs[i].transData, self.axs[i].transAxes)) else: self.axs.append(self.fig.add_subplot(trNum, 1, i+1, sharex=self.axs[0], sharey=self.axs[0])) self.trans.append(matplotlib.transforms.blended_transform_factory(self.axs[i].transData, self.axs[i].transAxes)) self.axs[i].set_ylabel(self.streams[self.stPt][i].stats.station+" "+self.streams[self.stPt][i].stats.channel) self.axs[i].xaxis.set_major_formatter(FuncFormatter(formatXTicklabels)) if not self.flagSpectrogram: self.plts.append(self.axs[i].plot(self.t, self.streams[self.stPt][i].data, color='k',zorder=1000)[0]) else: spectrogram(self.streams[self.stPt][i].data, self.streams[self.stPt][i].stats.sampling_rate, axis = self.axs[i], nwin = self.streams[self.stPt][i].stats.npts * 4 / self.streams[self.stPt][i].stats.sampling_rate) self.supTit=self.fig.suptitle("%s -- %s, %s" % (self.streams[self.stPt][0].stats.starttime, self.streams[self.stPt][0].stats.endtime, self.streams[self.stPt][0].stats.station)) self.xMin, self.xMax=self.axs[0].get_xlim() self.yMin, self.yMax=self.axs[0].get_ylim() self.fig.subplots_adjust(bottom=0.20, hspace=0.01, right=0.999, top=0.95, left=0.18)
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, 3724, 26494, 12, 2890, 4672, 468, 15639, 15504, 358, 2549, 358, 3974, 603, 619, 17, 4890, 1496, 1915, 353, 1245, 6199, 30, 468, 4982, 6002, 310, 518, 1807, 26375, 358, 3643, 358, 326, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3724, 26494, 12, 2890, 4672, 468, 15639, 15504, 358, 2549, 358, 3974, 603, 619, 17, 4890, 1496, 1915, 353, 1245, 6199, 30, 468, 4982, 6002, 310, 518, 1807, 26375, 358, 3643, 358, 326, 11...
tableConstraints = soClass.createTable()
tableConstraints = soClass.createTable(applyConstraints=False)
def command(self): v = self.options.verbose created = 0 existing = 0 dbs_created = [] constraints = {} for soClass in self.classes(require_some=True): if (self.options.create_db and soClass._connection not in dbs_created): if not self.options.simulate: try: soClass._connection.createEmptyDatabase() except soClass._connection.module.ProgrammingError, e: if str(e).find('already exists') != -1: print 'Database already exists' else: raise else: print '(simulating; cannot create database)' dbs_created.append(soClass._connection) if soClass._connection not in constraints.keys(): constraints[soClass._connection] = [] exists = soClass._connection.tableExists(soClass.sqlmeta.table) if v >= 1: if exists: existing += 1 print '%s already exists.' % soClass.__name__ else: print 'Creating %s' % soClass.__name__ if v >= 2: sql, extra = soClass.createTableSQL() print sql if (not self.options.simulate and not exists): if self.options.interactive: if self.ask('Create %s' % soClass.__name__): created += 1 tableConstraints = soClass.createTable() if tableConstraints: constraints[soClass._connection].append(tableConstraints) else: print 'Cancelled' else: created += 1 tableConstraints = soClass.createTable() if tableConstraints: constraints[soClass._connection].append(tableConstraints) for connection in constraints.keys(): if v >= 2: print 'Creating constraints' for constraintList in constraints[connection]: for constraint in constraintList: if constraint: connection.query(constraint) if v >= 1: print '%i tables created (%i already exist)' % ( created, existing)
d8039ade77c5266fda2e6d6c28067691a0b9b22a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6718/d8039ade77c5266fda2e6d6c28067691a0b9b22a/command.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 12, 2890, 4672, 331, 273, 365, 18, 2116, 18, 11369, 2522, 273, 374, 2062, 273, 374, 18441, 67, 4824, 273, 5378, 6237, 273, 2618, 364, 1427, 797, 316, 365, 18, 4701, 12, 6528, 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, 1296, 12, 2890, 4672, 331, 273, 365, 18, 2116, 18, 11369, 2522, 273, 374, 2062, 273, 374, 18441, 67, 4824, 273, 5378, 6237, 273, 2618, 364, 1427, 797, 316, 365, 18, 4701, 12, 6528, 67,...
return None
return self.VERSION_NONE
def _get_base_version_of(self, current_version): versions = os.listdir(os.path.join(self.backup_path, str(self.backup_id))) versions.sort() i = versions.index(str(current_version)) - 1 if i == -1: return None else: return int(versions[i])
8f7cb719920977d35053eb02c99c72b5d9a5848a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/736/8f7cb719920977d35053eb02c99c72b5d9a5848a/plainfsbackup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1969, 67, 1589, 67, 792, 12, 2890, 16, 783, 67, 1589, 4672, 5244, 273, 1140, 18, 1098, 1214, 12, 538, 18, 803, 18, 5701, 12, 2890, 18, 9572, 67, 803, 16, 609, 12, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1969, 67, 1589, 67, 792, 12, 2890, 16, 783, 67, 1589, 4672, 5244, 273, 1140, 18, 1098, 1214, 12, 538, 18, 803, 18, 5701, 12, 2890, 18, 9572, 67, 803, 16, 609, 12, 289...
value = unicode(parsed_query[key3][0], "utf-8")
value = parsed_query[key3][0].decode("utf-8", 'replace')
def get_subscriptions_from_query(subscription_type, query): subscriptions = [] # the query string shouldn't be a unicode. if we pass it in as a # unicode then parse_qs returns unicode values which aren't # properly converted and then we end up with boxes instead of ' # and " characters. query = str(query) parsed_query = cgi.parse_qs(query) for key, value in parsed_query.items(): match = re.match(r'^url(\d+)$', key) if match: subscription = {'type': subscription_type, 'url': unicode(value[0], 'utf8')} subscriptions.append(subscription) url_id = match.group(1) for key2 in ADDITIONAL_KEYS: if '%s%s' % (key2, url_id) in parsed_query: key3 = "%s%s" % (key2, url_id) value = unicode(parsed_query[key3][0], "utf-8") if key2 == 'type': subscription['mime_type'] = value else: subscription[key2] = value return subscriptions
4c00aecba4d687f874644101679e133e8e88dff5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/4c00aecba4d687f874644101679e133e8e88dff5/subscription.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 19964, 67, 2080, 67, 2271, 12, 11185, 67, 723, 16, 843, 4672, 11912, 273, 5378, 468, 326, 843, 533, 12044, 1404, 506, 279, 5252, 18, 225, 309, 732, 1342, 518, 316, 487, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 19964, 67, 2080, 67, 2271, 12, 11185, 67, 723, 16, 843, 4672, 11912, 273, 5378, 468, 326, 843, 533, 12044, 1404, 506, 279, 5252, 18, 225, 309, 732, 1342, 518, 316, 487, 279, ...
data = wc.filter.applyfilter("", "finish", attrs)
data = wc.filter.applyfilter(data, "finish", attrs)
def process_content (self): """read and filter client request content""" data = self.read(self.bytes_remaining) if self.bytes_remaining is not None: # Just pass everything through to the server # NOTE: It's possible to have 'chunked' encoding here, # and then the current system of counting bytes remaining # won't work; we have to deal with chunks self.bytes_remaining -= len(data) is_closed = False for decoder in self.decoders: data = decoder.decode(data) if not is_closed: is_closed = decoder.closed for stage in FilterStages: attrs = wc.filter.get_filterattrs(self.url, stage, clientheaders=self.clientheaders, headers=self.headers) data = wc.filter.applyfilter(data, "filter", attrs) self.content += data underflow = self.bytes_remaining is not None and \ self.bytes_remaining < 0 if underflow: wc.log.warn(wc.LOG_PROXY, "client received %d bytes more than content-length", -self.bytes_remaining) if is_closed or self.bytes_remaining <= 0: for stage in FilterStages: attrs = wc.filter.get_filterattrs(self.url, stage, clientheaders=self.clientheaders, headers=self.headers) data = wc.filter.applyfilter("", "finish", attrs) self.content += data if self.content and not self.headers.has_key('Content-Length'): self.headers['Content-Length'] = "%d\r" % len(self.content) # We're done reading content self.state = 'receive' is_local = self.hostname in \ wc.proxy.dns_lookups.resolver.localhosts and \ self.port in (wc.configuration.config['port'], wc.configuration.config['sslport']) if is_local: is_public_doc = self.allow.public_document(self.document) if wc.configuration.config['adminuser'] and \ not wc.configuration.config['adminpass']: if is_local and is_public_doc: self.handle_local(is_public_doc=is_public_doc) else: # ignore request, must init admin password self.headers['Location'] = \ "http://%s:%d/adminpass.html\r" % \ (self.socket.getsockname()[0], wc.configuration.config['port']) self.error(302, _("Moved Temporarily")) elif is_local: # this is a direct proxy call self.handle_local(is_public_doc=is_public_doc) else: self.server_request()
0b5979499cb4681b782053f64a61e20d99ddb896 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/0b5979499cb4681b782053f64a61e20d99ddb896/HttpClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 1745, 261, 2890, 4672, 3536, 896, 471, 1034, 1004, 590, 913, 8395, 501, 273, 365, 18, 896, 12, 2890, 18, 3890, 67, 17956, 13, 309, 365, 18, 3890, 67, 17956, 353, 486, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 1745, 261, 2890, 4672, 3536, 896, 471, 1034, 1004, 590, 913, 8395, 501, 273, 365, 18, 896, 12, 2890, 18, 3890, 67, 17956, 13, 309, 365, 18, 3890, 67, 17956, 353, 486, 599, ...
self._selectedPoints[idx]['world'] = pos
self._selectedPoints[idx]['world'] = tuple(pos)
def _pointWidgetInteractionCallback(self, pw, evt_name): # we have to find pw in our list pwidgets = map(lambda i: i['point_widget'], self._selectedPoints) if pw in pwidgets: idx = pwidgets.index(pw) # toggle the selection for this point in our list self._viewFrame.spointsGrid.SelectRow(idx)
84c1eb2dd880117cbde103e9d144e516ad511eb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/84c1eb2dd880117cbde103e9d144e516ad511eb7/slice3d_vwr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1153, 4609, 17419, 2428, 12, 2890, 16, 8772, 16, 6324, 67, 529, 4672, 468, 732, 1240, 358, 1104, 8772, 316, 3134, 666, 293, 18148, 273, 852, 12, 14661, 277, 30, 277, 3292, 1153, 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, 1153, 4609, 17419, 2428, 12, 2890, 16, 8772, 16, 6324, 67, 529, 4672, 468, 732, 1240, 358, 1104, 8772, 316, 3134, 666, 293, 18148, 273, 852, 12, 14661, 277, 30, 277, 3292, 1153, 6...
print path.replace('/', '_')+': fail\n"
print path.replace('/', '_')+': fail\n'
def buildExample(path) : global failedExample,successedExample,success,compiler,logDir; os.chdir(path) err=0 if compiler == 'gnu' : err=os.system("make COMPILER=gnu > " + logDir + "/" + path.replace('/', '_')+ " 2>&1") elif compiler == 'intel' : err=os.system("make > " + logDir + "/" + path.replace('/', '_') + " 2>&1") if err==0 : logFile.write(path.replace('/', '_')+'=success\n') print path.replace('/', '_')+': success' successedExample += path.replace('/', ' - ') + '\n' else : success=0 logFile.write(path.replace('/', '_')+'=fail\n') print path.replace('/', '_')+': fail\n" failedExample += path.replace('/', ' - ') + '\n' os.chdir(cwd) return;
2e9dac8c30fe6be6c98d5b5c8baef0f2287c691f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1766/2e9dac8c30fe6be6c98d5b5c8baef0f2287c691f/examplesBuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 10908, 12, 803, 13, 294, 2552, 2535, 10908, 16, 87, 5286, 3692, 10908, 16, 4768, 16, 9576, 16, 1330, 1621, 31, 1140, 18, 343, 1214, 12, 803, 13, 393, 33, 20, 309, 5274, 422, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 10908, 12, 803, 13, 294, 2552, 2535, 10908, 16, 87, 5286, 3692, 10908, 16, 4768, 16, 9576, 16, 1330, 1621, 31, 1140, 18, 343, 1214, 12, 803, 13, 393, 33, 20, 309, 5274, 422, 29...
print conn.register_image('%s/%s.manifest.xml' % (self.vm.ec2_bucket, self.vm.hostname))
print conn.register_image('%s/%s.manifest.xml' % (self.vm.ec2_bucket, self.vm.ec2_name))
def deploy(self): if not self.vm.ec2: return False bundle_cmdline = ['ec2-bundle-image', '--image', self.vm.filesystems[0].filename, '--cert', self.vm.ec2_cert, '--privatekey', self.vm.ec2_key, '--user', self.vm.ec2_user, '--prefix', self.vm.ec2_name, '-r', ['i386', 'x86_64'][self.vm.arch == 'amd64'], '-d', self.vm.workdir, '--kernel', self.vm.ec2_kernel, '--ramdisk', self.vm.ec2_ramdisk]
b2c094d2c7156b079d302eb78ec1a5caf841bece /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1496/b2c094d2c7156b079d302eb78ec1a5caf841bece/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7286, 12, 2890, 4672, 309, 486, 365, 18, 3489, 18, 557, 22, 30, 327, 1083, 3440, 67, 4172, 1369, 273, 10228, 557, 22, 17, 9991, 17, 2730, 2187, 3534, 2730, 2187, 365, 18, 3489, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7286, 12, 2890, 4672, 309, 486, 365, 18, 3489, 18, 557, 22, 30, 327, 1083, 3440, 67, 4172, 1369, 273, 10228, 557, 22, 17, 9991, 17, 2730, 2187, 3534, 2730, 2187, 365, 18, 3489, 18, 1...
w.write(latex)
w.latex.encode('utf-8'))
def _renderMathBlahtex(latex, output_path, output_mode): if output_mode == 'mathml': cmd = 'blahtexml --texvc-compatible-commands --mathml' elif output_mode == 'png': cmd = 'blahtexml --texvc-compatible-commands --png' else: return None curdir = os.path.abspath(os.curdir) os.chdir(output_path) latex = latex.strip() r, w, e = popen2.popen3(cmd) w.write(latex) w.close() error = e.read() result = r.read() r.close() e.close() os.chdir(curdir) if result: p = ET.fromstring(result) if output_mode == 'png': r = p.getiterator('png') if r: png_fn = r[0].findtext('md5') if png_fn: png_fn = os.path.join(output_path, png_fn + '.png') if os.path.exists(png_fn): return png_fn elif output_mode == 'mathml': mathml = p.getiterator('mathml') if mathml: mathml = mathml[0] mathml.set("xmlns","http://www.w3.org/1998/Math/MathML") return mathml log.error('error converting math (blahtexml). source: %r \nerror: %r' % (latex, result)) return None
39e000d07f31dfc4f832dbc4c3d9c7754e467dce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/39e000d07f31dfc4f832dbc4c3d9c7754e467dce/math_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 10477, 4802, 30024, 338, 12, 26264, 16, 876, 67, 803, 16, 876, 67, 3188, 4672, 225, 309, 876, 67, 3188, 422, 296, 15949, 781, 4278, 1797, 273, 296, 3083, 30024, 338, 781, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5902, 10477, 4802, 30024, 338, 12, 26264, 16, 876, 67, 803, 16, 876, 67, 3188, 4672, 225, 309, 876, 67, 3188, 422, 296, 15949, 781, 4278, 1797, 273, 296, 3083, 30024, 338, 781, 14...
if arg == "--qt-version": options.qtVersion = sys.argv[i+1] elif arg == "--package-root":
if arg == "--package-root":
def main(): for i in range(0, len(sys.argv)): arg = sys.argv[i]; if arg == "--qt-version": options.qtVersion = sys.argv[i+1] elif arg == "--package-root": options.packageRoot = sys.argv[i+1] elif arg == "--qt-branch": options.qtBranch = sys.argv[i+1] elif arg == "--qt-label": options.qtLabel = sys.argv[i+1] elif arg == "--no-p4sync": options.p4Resync = False elif arg == "--verbose": pkgutil.VERBOSE = 1 elif arg == "--no-mac": options.buildMac = False elif arg == "--no-win": options.buildWindows = False elif arg == "--no-linux": options.buildLinux = False elif arg == "--no-32bit": options.build32 = False elif arg == "--no-64bit": options.build64 = False pkgutil.debug("Options:") print " - Qt Version: %s" % options.qtVersion print " - Package Root: " + options.packageRoot print " - P4 User: " + options.p4User print " - P4 Client: " + options.p4Client print " - P4 Resync: %s" % options.p4Resync print " - buildMac: %s" % options.buildMac print " - buildWindows: %s" % options.buildWindows print " - buildLinux: %s" % options.buildLinux print " - build32: %s" % options.build32 print " - build64: %s" % options.build64 if options.p4Resync: pkgutil.debug("preparing source tree...") prepareSourceTree() pkgutil.debug("setting up packages..") setupServers() for server in servers: packageAndSend(server) waitForResponse()
a550ac6ca30b5fbb8b9331a23df3c1b53749aeda /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4229/a550ac6ca30b5fbb8b9331a23df3c1b53749aeda/package_qt_builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 9499, 18, 19485, 3719, 30, 1501, 273, 2589, 18, 19485, 63, 77, 15533, 309, 1501, 422, 5238, 5610, 17, 3085, 6877, 702, 18, 5610, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 9499, 18, 19485, 3719, 30, 1501, 273, 2589, 18, 19485, 63, 77, 15533, 309, 1501, 422, 5238, 5610, 17, 3085, 6877, 702, 18, 5610, ...
lea t3, flatseg, [dsz, t3, base], dataSize=asz limm t4, "(uint64_t(-(2ULL)))" rol t4, t4, reg ldstl t1, seg, [1, t3, t7], disp sext t0, t1, reg, flags=(CF,) and t1, t1, t4 stul t1, seg, [1, t3, t7], disp
limm t4, "(uint64_t(-(2ULL)))" rol t4, t4, reg ldstl t1, seg, [dsz, t3, t7], disp sext t0, t1, reg, flags=(CF,) and t1, t1, t4 stul t1, seg, [dsz, t3, t7], disp
def macroop BTR_LOCKED_P_R { rdip t7, dataSize=asz srai t2, reg, 3, dataSize=asz srai t3, t2, ldsz, dataSize=asz lea t3, flatseg, [dsz, t3, base], dataSize=asz limm t4, "(uint64_t(-(2ULL)))" rol t4, t4, reg ldstl t1, seg, [1, t3, t7], disp sext t0, t1, reg, flags=(CF,) and t1, t1, t4 stul t1, seg, [1, t3, t7], disp
eab966aeb3b47304fc9c4d7015b223e4c88e4675 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7385/eab966aeb3b47304fc9c4d7015b223e4c88e4675/bit_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 4349, 67, 6589, 2056, 67, 52, 67, 54, 288, 9437, 625, 268, 27, 16, 30216, 33, 345, 94, 272, 354, 77, 268, 22, 16, 960, 16, 890, 16, 30216, 33, 345, 94, 272, 354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11522, 556, 605, 4349, 67, 6589, 2056, 67, 52, 67, 54, 288, 9437, 625, 268, 27, 16, 30216, 33, 345, 94, 272, 354, 77, 268, 22, 16, 960, 16, 890, 16, 30216, 33, 345, 94, 272, 354, ...
token = self.site.getToken(self, sysop = True)
def _getBlockID(self): wikipedia.output(u"Getting block id for [[User:%s]]..." % self.name)
1dca0fe426cbe0076a52cf652bf8c838530d2355 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/1dca0fe426cbe0076a52cf652bf8c838530d2355/userlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1768, 734, 12, 2890, 4672, 21137, 18, 2844, 12, 89, 6, 19213, 1203, 612, 364, 12167, 1299, 5319, 87, 13563, 7070, 738, 365, 18, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1768, 734, 12, 2890, 4672, 21137, 18, 2844, 12, 89, 6, 19213, 1203, 612, 364, 12167, 1299, 5319, 87, 13563, 7070, 738, 365, 18, 529, 13, 2, -100, -100, -100, -100, -100, -100...
inc_dir = base
inc_dir = buildir
def get_python_inc(plat_specific=0, prefix=None): """Return the directory containing installed Python header files. If 'plat_specific' is false (the default), this is the path to the non-platform-specific header files, i.e. Python.h and so on; otherwise, this is the path to platform-specific header files (namely pyconfig.h). If 'prefix' is supplied, use it instead of sys.prefix or sys.exec_prefix -- i.e., ignore 'plat_specific'. """ if prefix is None: prefix = plat_specific and EXEC_PREFIX or PREFIX if os.name == "posix": if python_build: base = os.path.dirname(os.path.abspath(sys.executable)) if plat_specific: inc_dir = base else: inc_dir = os.path.join(base, "Include") if not os.path.exists(inc_dir): inc_dir = os.path.join(os.path.dirname(base), "Include") return inc_dir return os.path.join(prefix, "include", "python" + get_python_version()) elif os.name == "nt": return os.path.join(prefix, "include") elif os.name == "mac": if plat_specific: return os.path.join(prefix, "Mac", "Include") else: return os.path.join(prefix, "Include") elif os.name == "os2": return os.path.join(prefix, "Include") else: raise DistutilsPlatformError( "I don't know where Python installs its C header files " "on platform '%s'" % os.name)
a5cd18275e333cde162281e7919adfa415b42b07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/a5cd18275e333cde162281e7919adfa415b42b07/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8103, 67, 9523, 12, 412, 270, 67, 12524, 33, 20, 16, 1633, 33, 7036, 4672, 3536, 990, 326, 1867, 4191, 5876, 6600, 1446, 1390, 18, 225, 971, 296, 412, 270, 67, 12524, 11, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8103, 67, 9523, 12, 412, 270, 67, 12524, 33, 20, 16, 1633, 33, 7036, 4672, 3536, 990, 326, 1867, 4191, 5876, 6600, 1446, 1390, 18, 225, 971, 296, 412, 270, 67, 12524, 11, 35...
tocreate[inherits][i] = values[i]
if inherits in tocreate: tocreate[inherits][i] = values[i]
def create(self, cursor, user, values, context=None): super(ModelSQL, self).create(cursor, user, values, context=context)
748ce6ee39fc7cca836fa17360abbd41762e2372 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/748ce6ee39fc7cca836fa17360abbd41762e2372/modelsql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3347, 16, 729, 16, 924, 16, 819, 33, 7036, 4672, 2240, 12, 1488, 3997, 16, 365, 2934, 2640, 12, 9216, 16, 729, 16, 924, 16, 819, 33, 2472, 13, 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, 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, 752, 12, 2890, 16, 3347, 16, 729, 16, 924, 16, 819, 33, 7036, 4672, 2240, 12, 1488, 3997, 16, 365, 2934, 2640, 12, 9216, 16, 729, 16, 924, 16, 819, 33, 2472, 13, 2, -100, -100, -10...
return True
return submit_option
def __set_submit_option__(self):
b539a73c73d4945301e6c2635eafd6fab1a0dda4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/b539a73c73d4945301e6c2635eafd6fab1a0dda4/Grid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 67, 9297, 67, 3482, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 542, 67, 9297, 67, 3482, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
rdf_url = '%s%s' % (config['rdf_packages'], pkg.name)
rdf_url = '%s%s' % (config['rdf_packages'], c.pkg.name)
def read(self, id): c.pkg = model.Package.get(id) if c.pkg is None: abort(404, gettext('Package not found')) cache_key = self._pkg_cache_key(c.pkg) etag_cache(cache_key) # used by disqus plugin c.current_package_id = c.pkg.id if config.get('rdf_packages'): accept_headers = request.headers.get('Accept', '') if 'application/rdf+xml' in accept_headers and \ not 'text/html' in accept_headers: rdf_url = '%s%s' % (config['rdf_packages'], pkg.name) redirect(rdf_url, code=303)
0794f331e75eca607a51b04d695c5f75abc933f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/0794f331e75eca607a51b04d695c5f75abc933f6/package.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 612, 4672, 276, 18, 10657, 273, 938, 18, 2261, 18, 588, 12, 350, 13, 309, 276, 18, 10657, 353, 599, 30, 6263, 12, 11746, 16, 24972, 2668, 2261, 486, 1392, 26112, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 612, 4672, 276, 18, 10657, 273, 938, 18, 2261, 18, 588, 12, 350, 13, 309, 276, 18, 10657, 353, 599, 30, 6263, 12, 11746, 16, 24972, 2668, 2261, 486, 1392, 26112, 2...
'name':'Scheduler for %s'%vals['name'],
'name': cron_name,
def create(self,cr,uid,vals,context={}): cron_vals = { 'name':'Scheduler for %s'%vals['name'], 'interval_number':1, 'interval_type':'days', 'numbercall':-1, 'doall':False, 'model':'dm.offer.step.action', 'function':'_wi_check', 'nextcall' : time.strftime('%Y-%m-%d 20:00:00'), 'args': '(%s,)'%vals['code'] } self.pool.get('ir.cron').create(cr,uid,cron_vals) return super(dm_offer_step_action,self).create(cr,uid,vals,context)
3fac47e4d8be5e96a1bc088f1e0dcbd0a5d15abb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/3fac47e4d8be5e96a1bc088f1e0dcbd0a5d15abb/offer_step.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3353, 16, 1911, 16, 4524, 16, 2472, 12938, 4672, 9998, 67, 4524, 273, 288, 296, 529, 4278, 9998, 67, 529, 16, 296, 6624, 67, 2696, 4278, 21, 16, 296, 6624, 67, 723...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 3353, 16, 1911, 16, 4524, 16, 2472, 12938, 4672, 9998, 67, 4524, 273, 288, 296, 529, 4278, 9998, 67, 529, 16, 296, 6624, 67, 2696, 4278, 21, 16, 296, 6624, 67, 723...
if s2[-2:] == "\r\n": s2 = s2[:-2] + "\n" sys.stdout.write(s2)
sys.stdout.write(s2.replace("\r\n", "\n"))
def debug(msg): pass
b1ac655d8685beaff7f9418beb37bf895c8f0065 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b1ac655d8685beaff7f9418beb37bf895c8f0065/test_pty.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 3576, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 3576, 4672, 1342, 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, -...
pythonhist = os.path.expanduser('~/.pythonhist')
pythonhist = os.path.expanduser(OPTS.hist_file)
def __init__(self, scr, interp, statusbar=None, idle=None): """Initialise the repl with, unfortunately, a curses screen passed to it. This needs to be split up so the curses crap isn't in here.
1a83de9e7aa4c63b50cf1b2f1ccd78816e12f02e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/1a83de9e7aa4c63b50cf1b2f1ccd78816e12f02e/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 11991, 16, 8174, 16, 1267, 3215, 33, 7036, 16, 12088, 33, 7036, 4672, 3536, 4435, 784, 326, 6831, 598, 16, 640, 24233, 16, 279, 30436, 5518, 2275, 358, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 11991, 16, 8174, 16, 1267, 3215, 33, 7036, 16, 12088, 33, 7036, 4672, 3536, 4435, 784, 326, 6831, 598, 16, 640, 24233, 16, 279, 30436, 5518, 2275, 358, 5...
def __init__(self, coord, xP, yP, xBin, yBin): self.xP = point['xP'] self.yP = point['yP']
def __init__(self, coord, xBin, yBin): self.xP = coord['xP'] self.yP = coord['yP']
def __init__(self, coord, xP, yP, xBin, yBin): self.xP = point['xP'] # X in pixel space self.yP = point['yP'] # Y in pixel space self.numObs = 0 # Number of observations self.xBin = xBin # The bin's location self.yBin = yBin # ^^ self.obs = [] # Array of observations self.stats = {} # self.AddObs(coord) # add the original x,y data to the list of observations for self bin avg = 0 dev = 0
f163ed20cb01d5aaad89810e0f950f775f7fbe4b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6163/f163ed20cb01d5aaad89810e0f950f775f7fbe4b/ConfDistFuncs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2745, 16, 619, 52, 16, 677, 52, 16, 619, 9913, 16, 677, 9913, 4672, 365, 18, 92, 52, 273, 1634, 3292, 92, 52, 3546, 282, 468, 1139, 316, 4957, 3476, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2745, 16, 619, 52, 16, 677, 52, 16, 619, 9913, 16, 677, 9913, 4672, 365, 18, 92, 52, 273, 1634, 3292, 92, 52, 3546, 282, 468, 1139, 316, 4957, 3476, ...
"""Monkey-patched by CMFPlacefulWorkflow to look for placeful workflow configurations. Goal: find a workflow chain in a policy Steps: 1. ask the object if it contains a policy 2. if it does, ask him for a chain 3. if there's no chain for the type the we loop on the parent 4. if the parent is the portal object or None we stop and we ask to portal_workflow Hint: If ob was a string, ask directly portal_worlfow\n\n"""
""" monkey-patched by CMFPlacefulWorkflow to look for placeful workflow configurations. """
def getChainFor(self, ob): """Monkey-patched by CMFPlacefulWorkflow to look for placeful workflow configurations. Goal: find a workflow chain in a policy Steps: 1. ask the object if it contains a policy 2. if it does, ask him for a chain 3. if there's no chain for the type the we loop on the parent 4. if the parent is the portal object or None we stop and we ask to portal_workflow Hint: If ob was a string, ask directly portal_worlfow\n\n""" cbt = self._chains_by_type if type(ob) == type(''): # We are not in an object, then we can only get default from portal_workflow portal_type = ob if cbt is not None: chain = cbt.get(portal_type, None) # Note that if chain is not in cbt or has a value of None, we use a default chain. if chain is None: chain = self.getDefaultChainFor(ob) if chain is None: # CMFCore default return () elif hasattr(aq_base(ob), '_getPortalTypeName'): portal_type = ob._getPortalTypeName() else: portal_type = None if portal_type is None or not ob: return () # Take some extra care when ob is a string is_policy_container = False objectids = [] try: objectids = ob.objectIds() except AttributeError, TypeError: pass if WorkflowPolicyConfig_id in objectids: is_policy_container = True # Inspired by implementation in CPSWorkflowTool.py of CPSCore 3.9.0 # Workflow needs to be determined by true containment not context # so we loop over the actual containers chain = None wfpolicyconfig = None current_ob = aq_inner(ob) start_here = True portal = aq_base(getToolByName(self, 'portal_url').getPortalObject()) while chain is None and current_ob is not None: if base_hasattr(current_ob, WorkflowPolicyConfig_id): wfpolicyconfig = getattr(current_ob, WorkflowPolicyConfig_id) chain = wfpolicyconfig.getPlacefulChainFor(portal_type, start_here=start_here) if chain is not None: return chain elif aq_base(current_ob) is portal: break start_here = False current_ob = aq_inner(aq_parent(current_ob)) # Note that if chain is not in cbt or has a value of None, we use a default chain. if cbt is not None: chain = cbt.get(portal_type, None) if chain is None: chain = self.getDefaultChainFor(ob) if chain is None: # CMFCore default return () return chain
2b483ef04777424d8050dd2846f158bac24fd51c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11955/2b483ef04777424d8050dd2846f158bac24fd51c/workflowtoolPatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30170, 1290, 12, 2890, 16, 3768, 4672, 3536, 6921, 856, 17, 2272, 329, 635, 385, 13542, 6029, 2706, 8484, 358, 2324, 364, 3166, 2706, 6095, 10459, 18, 3536, 2875, 88, 273, 365, 6315, 230...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30170, 1290, 12, 2890, 16, 3768, 4672, 3536, 6921, 856, 17, 2272, 329, 635, 385, 13542, 6029, 2706, 8484, 358, 2324, 364, 3166, 2706, 6095, 10459, 18, 3536, 2875, 88, 273, 365, 6315, 230...
abs_path = os.path.abspath(rel_path)
root_path = os.path.abspath(rel_path)
def main(argv): root_path = '' if len(argv) > 0: opts, args = getopt.getopt(argv, 'h', ['help']) for opt, arg in opts: if opt in ('-h', '--help'): usage() sys.exit() if len(args) == 1: rel_path = args[0] abs_path = os.path.abspath(rel_path) if not os.path.exists(abs_path): print 'ERROR: Cannot find path: ' + abs_path sys.exit() print 'Upgrading VS solution- and project-file in folder: ' + abs_path upgrade_projects(abs_path)
382ea9091c97a242f3bdead0fd6d2c89e766d104 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5344/382ea9091c97a242f3bdead0fd6d2c89e766d104/UpgradeProjects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 1365, 67, 803, 273, 875, 309, 562, 12, 19485, 13, 405, 374, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 19485, 16, 296, 76, 2187, 10228, 5201, 19486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1365, 67, 803, 273, 875, 309, 562, 12, 19485, 13, 405, 374, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 19485, 16, 296, 76, 2187, 10228, 5201, 19486, ...
self.assert_(proxy.readline() == 'o' + os.linesep)
self.assertEqual(proxy.readline(), 'o' + os.linesep)
def _test_readline(self, proxy): # Read by line proxy.seek(0) self.assert_(proxy.readline() == 'foo' + os.linesep) self.assert_(proxy.readline() == 'bar' + os.linesep) self.assert_(proxy.readline() == 'fred' + os.linesep) self.assertEqual(proxy.readline(), 'bob') proxy.seek(2) self.assert_(proxy.readline() == 'o' + os.linesep) proxy.seek(6 + 2 * len(os.linesep)) self.assert_(proxy.readline() == 'fred' + os.linesep) proxy.seek(6 + 2 * len(os.linesep)) self.assertEqual(proxy.readline(2), 'fr') self.assert_(proxy.readline(-10) == 'ed' + os.linesep)
7731c36bc6f787ca91b8429603fe004822f1f2d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/7731c36bc6f787ca91b8429603fe004822f1f2d8/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 896, 1369, 12, 2890, 16, 2889, 4672, 468, 2720, 635, 980, 2889, 18, 16508, 12, 20, 13, 365, 18, 11231, 67, 12, 5656, 18, 896, 1369, 1435, 422, 296, 11351, 11, 397, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3813, 67, 896, 1369, 12, 2890, 16, 2889, 4672, 468, 2720, 635, 980, 2889, 18, 16508, 12, 20, 13, 365, 18, 11231, 67, 12, 5656, 18, 896, 1369, 1435, 422, 296, 11351, 11, 397, 114...
pathto('_static/pygmentcs.css', 1)
pathto('_static/pygment.css', 1)
def pathto(otheruri, resource=False, baseuri=self.get_target_uri(pagename)): if not resource: otheruri = self.get_target_uri(otheruri) return relative_uri(baseuri, otheruri) or '#' else: return '/' + posixpath.join(self.app.staticdir, otheruri)
82353ffc46a8527cfa40332314f60ccff21991fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/82353ffc46a8527cfa40332314f60ccff21991fb/websupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 589, 869, 12, 3011, 1650, 16, 1058, 33, 8381, 16, 1026, 1650, 33, 2890, 18, 588, 67, 3299, 67, 1650, 12, 9095, 1069, 3719, 30, 309, 486, 1058, 30, 1308, 1650, 273, 365, 18, 588, 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, 589, 869, 12, 3011, 1650, 16, 1058, 33, 8381, 16, 1026, 1650, 33, 2890, 18, 588, 67, 3299, 67, 1650, 12, 9095, 1069, 3719, 30, 309, 486, 1058, 30, 1308, 1650, 273, 365, 18, 588, 67, ...
self.scale_min_entry.set_text( str(min_scale) ) self.scale_max_entry.set_text( str(max_scale) ) self.layer.set_property \ ('_scale_limits', str(min_scale) + ' ' + str(max_scale) ) for iSource in [0,1,2] : self.layer.min_set(iSource, min_scale) self.layer.max_set(iSource, max_scale)
self.scale_min_entry.set_text(str(min_scale)) self.scale_max_entry.set_text(str(max_scale)) self.layer.set_property('_scale_limits', '%f %f' % (min_scale, max_scale)) for source in self.sources[:-1]: source.set_scaling(min_scale, max_scale)
def scalelock_cb( self, *args ) : if( self.scalelock_is_set() ) : self.layer.set_property('_scale_lock', 'unlocked') else : self.layer.set_property('_scale_lock', 'locked' )
30093beb2981ba47380749a3f1c597965f66f39e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11090/30093beb2981ba47380749a3f1c597965f66f39e/gvrasterpropdlg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8292, 292, 975, 67, 7358, 12, 365, 16, 380, 1968, 262, 294, 309, 12, 365, 18, 87, 771, 292, 975, 67, 291, 67, 542, 1435, 262, 294, 365, 18, 6363, 18, 542, 67, 4468, 2668, 67, 5864,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8292, 292, 975, 67, 7358, 12, 365, 16, 380, 1968, 262, 294, 309, 12, 365, 18, 87, 771, 292, 975, 67, 291, 67, 542, 1435, 262, 294, 365, 18, 6363, 18, 542, 67, 4468, 2668, 67, 5864,...
assert sys.getrefcount(res) == 2 assert res == "hello"
assert_equal(sys.getrefcount(res),2) assert_equal(res,"hello")
def check_string(self,level=5): code = """ py::object val = "hello"; return_val = val; """ res = inline_tools.inline(code) assert sys.getrefcount(res) == 2 assert res == "hello"
267b08d9c3e7613c126729a179f4503c91625e9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7416/267b08d9c3e7613c126729a179f4503c91625e9c/test_scxx_object.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1080, 12, 2890, 16, 2815, 33, 25, 4672, 981, 273, 3536, 2395, 2866, 1612, 1244, 273, 315, 23711, 14432, 327, 67, 1125, 273, 1244, 31, 3536, 400, 273, 6370, 67, 6642, 18, 10047...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1080, 12, 2890, 16, 2815, 33, 25, 4672, 981, 273, 3536, 2395, 2866, 1612, 1244, 273, 315, 23711, 14432, 327, 67, 1125, 273, 1244, 31, 3536, 400, 273, 6370, 67, 6642, 18, 10047...
choices = [(_("Yes"), self.ackedDestination), (_("List of Storage Devices"),self.askDestination), (_("Cancel"),self.keyRed)]
choices = [(_("Yes"), self.ackedDestination), (_("List of Storage Devices"),self.openDeviceBrowser), (_("Cancel"),self.keyRed)]
def ackDestinationDevice(self, device_description=None): if device_description == None: dev = self.target_dir else: dev = device_description message = _("Do you want to download the image to %s ?") % (dev) choices = [(_("Yes"), self.ackedDestination), (_("List of Storage Devices"),self.askDestination), (_("Cancel"),self.keyRed)] self.session.openWithCallback(self.ackDestination_query, ChoiceBox, title=message, list=choices)
fb75a5db67a5f82d9c4976cd2d056f47376affd3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/fb75a5db67a5f82d9c4976cd2d056f47376affd3/downloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8479, 5683, 3654, 12, 2890, 16, 2346, 67, 3384, 33, 7036, 4672, 309, 2346, 67, 3384, 422, 599, 30, 4461, 273, 365, 18, 3299, 67, 1214, 469, 30, 4461, 273, 2346, 67, 3384, 883, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8479, 5683, 3654, 12, 2890, 16, 2346, 67, 3384, 33, 7036, 4672, 309, 2346, 67, 3384, 422, 599, 30, 4461, 273, 365, 18, 3299, 67, 1214, 469, 30, 4461, 273, 2346, 67, 3384, 883, 273, 3...
( ( gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL ), ( gtk.STOCK_OK, gtk.RESPONSE_CANCEL ) )
( ( gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL ), ( gtk.STOCK_OK, gtk.RESPONSE_OK ) ), gtk.RESPONSE_CANCEL
def run(self): "Displays the dialog"
529d29f6b464ac24a2ac1a234093323f5bd90913 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11787/529d29f6b464ac24a2ac1a234093323f5bd90913/dialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 315, 16900, 326, 6176, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 1086, 12, 2890, 4672, 315, 16900, 326, 6176, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.ted.WEInsert(stuff, None, None)
try: self.ted.WEInsert(stuff, None, None) finally: self._buf = ""
def flush(self): stuff = string.split(self._buf, '\n') stuff = string.join(stuff, '\r') self.setselection_at_end() self.ted.WEInsert(stuff, None, None) selstart, selend = self.getselection() self._inputstart = selstart self._buf = "" self.ted.WEClearUndo() self.updatescrollbars() if self._parentwindow.wid.GetWindowPort().QDIsPortBuffered(): self._parentwindow.wid.GetWindowPort().QDFlushPortBuffer(None)
f2defd2388ab35462f1fdf431881a489a1ad3ff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f2defd2388ab35462f1fdf431881a489a1ad3ff6/PyConsole.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 12, 2890, 4672, 10769, 273, 533, 18, 4939, 12, 2890, 6315, 4385, 16, 2337, 82, 6134, 10769, 273, 533, 18, 5701, 12, 334, 3809, 16, 2337, 86, 6134, 365, 18, 542, 10705, 67, 270, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3663, 12, 2890, 4672, 10769, 273, 533, 18, 4939, 12, 2890, 6315, 4385, 16, 2337, 82, 6134, 10769, 273, 533, 18, 5701, 12, 334, 3809, 16, 2337, 86, 6134, 365, 18, 542, 10705, 67, 270, ...
print "No calculation provided. Nothing to do!" print usage
print("No calculation provided. Nothing to do!") print(usage)
def main(): usage = """
033519f53b930217d26e15cdd9ecae808896e752 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10290/033519f53b930217d26e15cdd9ecae808896e752/gdal_calc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 4084, 273, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1652, 2774, 13332, 225, 4084, 273, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'''ARCHIVES-test,group_test,GRP-ACL-test'''],
'''ARCHIVES-test,group_test,GRP-ACL-test,gtest_267'''],
def clean_system(): """ Remove all stuff to make the system clean, testsuite-wise.""" test_message('''cleaning system from previous runs.''') # delete them first in case of a previous failed testsuite run. # don't check exit codes or such, this will be done later. for argument in ( ['user', '''toto,tutu,tata,titi,test,utilisager.normal,''' \ '''test.responsibilly,utilicateur.accentue,user_test,''' \ '''GRP-ACL-user''', '--no-archive'], ['profile', '--group=utilisagers', '--del-users', '--no-archive'], ['profile', '--group=responsibilisateurs', '--del-users', '--no-archive'], ['group', '''test_users_A,test_users_B,groupeA,B-Group_Test,''' \ '''groupe_a_skel,ACL_tests,MOD_tests,SYSTEM-test,SKEL-tests,''' \ '''ARCHIVES-test,group_test,GRP-ACL-test'''], ): execute(DEL + argument) execute([ 'sudo', 'rm', '-rf', '%s/*' % configuration.home_backup_dir, '%s/*' % configuration.home_archive_dir ]) execute(ADD + ['group', '--system', 'acl,admins,remotessh,licorn-wmi']) test_message('''system cleaned from previous testsuite runs.''')
c7a24ffc685eea186397e4d74c31926a514dc16f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/c7a24ffc685eea186397e4d74c31926a514dc16f/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 4299, 13332, 3536, 3581, 777, 10769, 358, 1221, 326, 2619, 2721, 16, 7434, 9519, 17, 2460, 12123, 225, 1842, 67, 2150, 2668, 6309, 6200, 310, 2619, 628, 2416, 7597, 1093, 11, 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, 2721, 67, 4299, 13332, 3536, 3581, 777, 10769, 358, 1221, 326, 2619, 2721, 16, 7434, 9519, 17, 2460, 12123, 225, 1842, 67, 2150, 2668, 6309, 6200, 310, 2619, 628, 2416, 7597, 1093, 11, 6...
urldata = init([], d, True) for u in urldata:
if not urls: urls = d.getVar("SRC_URI", 1).split() urldata = init(urls, d, True) for u in urls:
def go(d): """ Fetch all urls init must have previously been called """ urldata = init([], d, True) for u in urldata: ud = urldata[u] m = ud.method if ud.localfile: if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5): # File already present along with md5 stamp file # Touch md5 file to show activity try: os.utime(ud.md5, None) except: # Errors aren't fatal here pass continue lf = bb.utils.lockfile(ud.lockfile) if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5): # If someone else fetched this before we got the lock, # notice and don't try again try: os.utime(ud.md5, None) except: # Errors aren't fatal here pass bb.utils.unlockfile(lf) continue m.go(u, ud, d) if ud.localfile: if not m.forcefetch(u, ud, d): Fetch.write_md5sum(u, ud, d) bb.utils.unlockfile(lf)
011557c15734a83e8457fdabd6df5016081012c4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8123/011557c15734a83e8457fdabd6df5016081012c4/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 12, 72, 4672, 3536, 8065, 777, 6903, 1208, 1297, 1240, 7243, 2118, 2566, 3536, 309, 486, 6903, 30, 6903, 273, 302, 18, 588, 1537, 2932, 28413, 67, 3098, 3113, 404, 2934, 4939, 1435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 12, 72, 4672, 3536, 8065, 777, 6903, 1208, 1297, 1240, 7243, 2118, 2566, 3536, 309, 486, 6903, 30, 6903, 273, 302, 18, 588, 1537, 2932, 28413, 67, 3098, 3113, 404, 2934, 4939, 1435...
('Add comment line', self.OnAddCommentLine, '-', keyDefs['DashLine']),
('Add comment line', self.OnAddCommentLine, '-', keyDefs['DashLine']),
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', self.OnRunToCursor, self.runCrsBmp, ()), ('Toggle breakpoint', self.OnSetBreakPoint, self.breakBmp, keyDefs['ToggleBrk']), ('Load breakpoints', self.OnLoadBreakPoints, '-', ()), ('Save breakpoints', self.OnSaveBreakPoints, '-', ()), ('-', None, '', ()), ('+View whitespace', self.OnViewWhitespace, '-', ()), ('+View EOL characters', self.OnViewEOL, '-', ()), ('-', None, '-', ()), ('Add module info', self.OnAddModuleInfo, self.modInfoBmp, ()), ('Add comment line', self.OnAddCommentLine, '-', keyDefs['DashLine']), ('Add simple app', self.OnAddSimpleApp, '-', ()), ('Code transformation', self.OnAddClassAtCursor, '-', keyDefs['CodeXform']), ('Code completion', self.OnCompleteCode, '-', keyDefs['CodeComplete']), ('Call tips', self.OnParamTips, '-', keyDefs['CallTips']), ('-', None, '-', ()), ('Context help', self.OnContextHelp, '-', keyDefs['ContextHelp']))
ed86f61b9d55619ac440188d57acc292436b0dab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ed86f61b9d55619ac440188d57acc292436b0dab/PySourceView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 938, 4672, 279, 21, 273, 261, 2668, 17, 2187, 599, 16, 10226, 1832, 3631, 7707, 4469, 2187, 365, 18, 1398, 4469, 16, 2400, 2187, 498, 14554, 329...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 938, 4672, 279, 21, 273, 261, 2668, 17, 2187, 599, 16, 10226, 1832, 3631, 7707, 4469, 2187, 365, 18, 1398, 4469, 16, 2400, 2187, 498, 14554, 329...
_debug(1, "TIME: invocation took %.04f" % (time.time()-t0))
log.debug("TIME: invocation took %.04f" % (time.time()-t0))
def __call__(self, *args, **kwargs): t0=time.time() if self._ipc_callable == False: raise TypeError, "Object not callable" elif self._ipc_callable == None: try: getattr(self, "__call__") self._ipc_callable = True except AttributeError: self._ipc_callable = False if "__ipc_copy_result" in kwargs: log.warning("DEPRECATION WARNING: use __ipc_noproxy_result instead of __ipc_copy_result") if not kwargs.get("__ipc_noproxy_args"): args = self._ipc_client._proxy_data(args) # FIXME: should proxy kwargs, but there's a bug. #kwargs = self._ipc_client._proxy_data(kwargs) timeout = reply_cb = None if kwargs.get("__ipc_timeout"): timeout = kwargs.get("__ipc_timeout") if kwargs.get("__ipc_oneway") or kwargs.get("__ipc_async"): timeout = 0 if kwargs.get("__ipc_async"): reply_cb = kwargs["__ipc_async"] assert(callable(reply_cb)) del kwargs["__ipc_async"]
a2ef02ba6b2343fafef3eba89f609780397810ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/a2ef02ba6b2343fafef3eba89f609780397810ea/ipc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 268, 20, 33, 957, 18, 957, 1435, 309, 365, 6315, 625, 71, 67, 7293, 422, 1083, 30, 1002, 3580, 16, 315, 921, 486, 4140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16, 380, 1968, 16, 2826, 4333, 4672, 268, 20, 33, 957, 18, 957, 1435, 309, 365, 6315, 625, 71, 67, 7293, 422, 1083, 30, 1002, 3580, 16, 315, 921, 486, 4140...
@neediface
@neediface(False)
def SetDNS(self, dns1=None, dns2=None, dns3=None, dns_dom=None, search_dom=None): """ Set the DNS of the system to the specified DNS servers.
47ca18c906e4d683b6f15a7e6c3eb8390b1e7e2a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/47ca18c906e4d683b6f15a7e6c3eb8390b1e7e2a/wnettools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 11602, 12, 2890, 16, 6605, 21, 33, 7036, 16, 6605, 22, 33, 7036, 16, 6605, 23, 33, 7036, 16, 6605, 67, 9859, 33, 7036, 16, 1623, 67, 9859, 33, 7036, 4672, 3536, 1000, 326, 8858...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 11602, 12, 2890, 16, 6605, 21, 33, 7036, 16, 6605, 22, 33, 7036, 16, 6605, 23, 33, 7036, 16, 6605, 67, 9859, 33, 7036, 16, 1623, 67, 9859, 33, 7036, 4672, 3536, 1000, 326, 8858...
this = apply(_quickfix.new_TriggerOrderType, args)
this = _quickfix.new_TriggerOrderType(*args)
def __init__(self, *args): this = apply(_quickfix.new_TriggerOrderType, 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, 6518, 2448, 559, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6518, 2448, 559, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 3...
text, set (), articulators, HORIZON, depth+1
text, set (), articulators, whitespaces, HORIZON, depth+1
def pns_sat_re ( articulated, horizon, articulators, whitespaces=SAT_STRIP_UTF8, HORIZON=126, depth=0, ): "Articulate text using a simple regular expression lexer" bottom = len (articulators) # move down the stack until an articulator pattern is matched ... while True: matched = articulators[depth].findall (articulated) if matched: break depth += 1 if depth == bottom: # no match found, bottom of the stack reached. return articulated if type (matched[0]) == tuple: # validate "grouping" articulators as Public Names and add # them to the list of names articulated ... names = [ pns_model.pns_name (netstring.encode ([ s.strip (whitespaces) for s in groups ]), horizon) for groups in matched ] else: names = [] if depth + 1 == bottom: # bottom of the stack reached, simply split names.extend (articulators[depth].split (articulated)) else: # not yet at the bottom of the stack, recurse for text in articulators[depth].split (articulated): if not text.strip (whitespaces): continue name = pns_sat_re ( text, set (), articulators, HORIZON, depth+1 ) if name: names.append (name) if len (horizon) > HORIZON: break # validate the articulated name(s) as a Public Names if len (names) > 1: return pns_model.pns_name (netstring.encode (names), horizon) if len (names) > 0 and names[0]: return names[0] return ''
54032e3eec2f2c6c72f0d22e246ddc5a287be8e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/54032e3eec2f2c6c72f0d22e246ddc5a287be8e1/pns_sat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2387, 67, 12973, 67, 266, 261, 3688, 335, 11799, 16, 366, 20648, 16, 3688, 335, 332, 3062, 16, 28186, 33, 55, 789, 67, 15765, 52, 67, 5159, 28, 16, 670, 11581, 673, 33, 25452, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 293, 2387, 67, 12973, 67, 266, 261, 3688, 335, 11799, 16, 366, 20648, 16, 3688, 335, 332, 3062, 16, 28186, 33, 55, 789, 67, 15765, 52, 67, 5159, 28, 16, 670, 11581, 673, 33, 25452, 1...
[2, 3]
[2]
def supersingular_primes(self, B): """ Return a list of all supersingular primes for this elliptic curve up to and possibly including B.
2a25dab06e7e5b6aa51c0b4934a96c6417c46505 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/2a25dab06e7e5b6aa51c0b4934a96c6417c46505/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1169, 414, 17830, 67, 683, 4485, 12, 2890, 16, 605, 4672, 3536, 2000, 279, 666, 434, 777, 1169, 414, 17830, 846, 4485, 364, 333, 415, 549, 21507, 8882, 731, 358, 471, 10016, 6508, 605, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1169, 414, 17830, 67, 683, 4485, 12, 2890, 16, 605, 4672, 3536, 2000, 279, 666, 434, 777, 1169, 414, 17830, 846, 4485, 364, 333, 415, 549, 21507, 8882, 731, 358, 471, 10016, 6508, 605, ...
pos=wxPoint(88, 184), size=wxSize(80, 17), style=0)
pos=wxPoint(96, 200), size=wxSize(88, 17), style=0)
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(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
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...
extraArgs = ["-silent"])
extraArgs = ["-silent"], symbolsPath=options.symbolsPath)
def processLeakLog(): "Process the leak log." # For the time being, don't warn (nor "info") if the log file is not there. (Bug 469518) if os.path.exists(leakLogFile): leaks = open(leakLogFile, "r") # For the time being, simply copy the log. (Bug 469518) log.info(leaks.read().rstrip()) leaks.close()
e76696d7ed594b399247bd9897acb05664c3d6de /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/e76696d7ed594b399247bd9897acb05664c3d6de/runreftest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1682, 581, 1343, 13332, 315, 2227, 326, 20891, 613, 1199, 468, 2457, 326, 813, 3832, 16, 2727, 1404, 1894, 261, 29561, 315, 1376, 7923, 309, 326, 613, 585, 353, 486, 1915, 18, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1682, 581, 1343, 13332, 315, 2227, 326, 20891, 613, 1199, 468, 2457, 326, 813, 3832, 16, 2727, 1404, 1894, 261, 29561, 315, 1376, 7923, 309, 326, 613, 585, 353, 486, 1915, 18, 261,...
initial_slash = (path[0] == '/')
initial_slashes = path.startswith('/') if (initial_slashes and path.startswith('//') and not path.startswith('///')): initial_slashes = 2
def normpath(path): """Normalize path, eliminating double slashes, etc.""" if path == '': return '.' initial_slash = (path[0] == '/') comps = path.split('/') new_comps = [] for comp in comps: if comp in ('', '.'): continue if (comp != '..' or (not initial_slash and not new_comps) or (new_comps and new_comps[-1] == '..')): new_comps.append(comp) elif new_comps: new_comps.pop() comps = new_comps path = '/'.join(comps) if initial_slash: path = '/' + path return path or '.'
bf222c9f12c1078a5d41acf4f4ce77c1a976c67f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/bf222c9f12c1078a5d41acf4f4ce77c1a976c67f/posixpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20446, 12, 803, 4672, 3536, 14380, 589, 16, 19229, 267, 1776, 1645, 19034, 16, 5527, 12123, 309, 589, 422, 875, 30, 327, 2611, 2172, 67, 13675, 273, 589, 18, 17514, 1918, 2668, 2473, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20446, 12, 803, 4672, 3536, 14380, 589, 16, 19229, 267, 1776, 1645, 19034, 16, 5527, 12123, 309, 589, 422, 875, 30, 327, 2611, 2172, 67, 13675, 273, 589, 18, 17514, 1918, 2668, 2473, 13,...
print "Caffiene is now preventing powersaving modes and screensaver activation (" + probableWindowManager + ")"
print "Caffeine is now preventing powersaving modes and screensaver activation (" + probableWindowManager + ")"
def attemptToToggleSleepPrevention(): """This function may fail to peform the toggling, if it cannot find the required bus. In this case, it will return False.""" global sleepPrevented, screenSaverCookie, powerManagementCookie, timer bus = dbus.SessionBus() if sleepPrevented: ssProxy = None if 'org.gnome.ScreenSaver' in bus.list_names(): # For Gnome ssProxy = bus.get_object('org.gnome.ScreenSaver', '/org/gnome/ScreenSaver') elif 'org.freedesktop.ScreenSaver' in bus.list_names() and \ 'org.freedesktop.PowerManagement.Inhibit' in bus.list_names(): # For KDE ssProxy = bus.get_object('org.freedesktop.ScreenSaver', '/ScreenSaver') pmProxy = bus.get_object('org.freedesktop.PowerManagement.Inhibit', '/org/freedesktop/PowerManagement/Inhibit') if powerManagementCookie != None: pmProxy.UnInhibit(powerManagementCookie) else: return False if screenSaverCookie != None: ssProxy.UnInhibit(screenSaverCookie) sleepPrevented = False print "Caffiene is now dormant; powersaving is re-enabled" # If the user clicks on the full coffee-cup to disable sleep prevention, it should also # cancel the timer for timed activation. if timer != None: print "Cancelling the 'timed activation' timer (was set for " + str(timer.interval) + " seconds)" timer.cancel() timer = None else: probableWindowManager = "" ssProxy = None if 'org.gnome.ScreenSaver' in bus.list_names(): # For Gnome probableWindowManager = "Gnome" ssProxy = bus.get_object('org.gnome.ScreenSaver', '/org/gnome/ScreenSaver') elif 'org.freedesktop.ScreenSaver' in bus.list_names() and \ 'org.freedesktop.PowerManagement.Inhibit' in bus.list_names(): # For KDE probableWindowManager = "KDE" ssProxy = bus.get_object('org.freedesktop.ScreenSaver', '/ScreenSaver') pmProxy = bus.get_object('org.freedesktop.PowerManagement.Inhibit', '/org/freedesktop/PowerManagement/Inhibit') powerManagementCookie = pmProxy.Inhibit("Caffeine", "User has requested that Caffeine disable the powersaving modes") else: return False screenSaverCookie = ssProxy.Inhibit("Caffeine", "User has requested that Caffeine disable the screen saver") sleepPrevented = True print "Caffiene is now preventing powersaving modes and screensaver activation (" + probableWindowManager + ")" return True
1da1a56726ea58548f0f41a14524fbd7d1f2e84d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7152/1da1a56726ea58548f0f41a14524fbd7d1f2e84d/caffeine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 774, 17986, 20768, 1386, 11111, 13332, 3536, 2503, 445, 2026, 2321, 358, 2804, 687, 326, 6316, 75, 2456, 16, 309, 518, 2780, 1104, 326, 1931, 5766, 18, 657, 333, 648, 16, 518, 903,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4395, 774, 17986, 20768, 1386, 11111, 13332, 3536, 2503, 445, 2026, 2321, 358, 2804, 687, 326, 6316, 75, 2456, 16, 309, 518, 2780, 1104, 326, 1931, 5766, 18, 657, 333, 648, 16, 518, 903,...
% (self.lines +1, self._uri, self._why, pre, str[i-60:i], str[i:i+60], post)
% (self.lines +1, self._uri, self._why, pre, str[st:i], str[i:i+60], post)
def __str__(self):
678b792910b8f68e3258d23eb6c46e501de3e353 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/678b792910b8f68e3258d23eb6c46e501de3e353/notation3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1652, 1001, 701, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
data = ['a' * 8192] * 3
chunks = ['a' * 8192] * 3
def test_no_chunked_http_1_0(self): fd = self.connect().makefile(bufsize=1) fd.write('GET / HTTP/1.0\r\nHost: localhost\r\nConnection: close\r\n\r\n') response = read_http(fd, version='1.0') self.assertEqual(response.body, self.body()) self.assertEqual(response.headers.get('Transfer-Encoding'), None) content_length = int(response.headers.get('Content-Length')) if content_length is not None: self.assertEqual(content_length, len(self.body()))
f46c94e817809b25047b82d9e084d39f6de7048e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/f46c94e817809b25047b82d9e084d39f6de7048e/wsgi_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2135, 67, 6551, 329, 67, 2505, 67, 21, 67, 20, 12, 2890, 4672, 5194, 273, 365, 18, 3612, 7675, 6540, 768, 12, 4385, 1467, 33, 21, 13, 5194, 18, 2626, 2668, 3264, 342, 2239,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2135, 67, 6551, 329, 67, 2505, 67, 21, 67, 20, 12, 2890, 4672, 5194, 273, 365, 18, 3612, 7675, 6540, 768, 12, 4385, 1467, 33, 21, 13, 5194, 18, 2626, 2668, 3264, 342, 2239,...
code = (time.strftime('%Y-%m-%d %H:%M:%S') + '_' + str(seg_obj.code)) else: code = ''
code = time.strftime('%Y-%m-%d %H:%M:%S') + '_' + str(seg_obj.code) or ''
def check_auto_extract(self, cr, uid, ids=False, context={}): cr.commit() seg_ids = self.search(cr, uid, [('extract_date_next', '<=', time.strftime('%Y-%m-%d %H:%M:%S'))]) for seg_id in seg_ids: seg_obj = self.browse(cr, uid, [seg_id])[0] name = time.strftime('%Y-%m-%d %H:%M:%S') + ' ' + str(seg_obj.name) if seg_obj.code: code = (time.strftime('%Y-%m-%d %H:%M:%S') + '_' + str(seg_obj.code)) else: code = '' wizard_service = netsvc.LocalService("wizard") passwd = self.pool.get('res.users').browse(cr, uid, uid).password wizard_res = wizard_service.create(cr.dbname, uid, passwd, 'wizard.extract.customer') datas = {'form': {'code': code, 'name': name}, 'ids': [seg_obj.segmentation_id.id], 'report_type': 'pdf', 'model': 'dm.address.segmentation', 'id': seg_obj.segmentation_id.id} state = 'ok' res3 = wizard_service.execute(cr.dbname, uid, passwd, wizard_res , datas, state, {}) if not seg_obj.extract_unit_delay: return False ext_delay_params = {(str(seg_obj.extract_unit_delay)): seg_obj.extract_delay} for unit, value in ext_delay_params.items(): if unit == 'months': extr_next_date = datetime.datetime.strptime(seg_obj.extract_date_next, '%Y-%m-%d %H:%M:%S') + datetime.timedelta(value*365/12) else: extr_next_date = datetime.datetime.strptime(seg_obj.extract_date_next, '%Y-%m-%d %H:%M:%S') + datetime.timedelta(**ext_delay_params) self.write(cr, uid, [seg_id], {'extract_date_previous': seg_obj.extract_date_next, 'extract_date_next': extr_next_date})
ab38c6d82b2da134ccbf06fca62dc50028a3974b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/ab38c6d82b2da134ccbf06fca62dc50028a3974b/dm_extract_auto.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 6079, 67, 8004, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 33, 8381, 16, 819, 12938, 4672, 4422, 18, 7371, 1435, 2291, 67, 2232, 273, 365, 18, 3072, 12, 3353, 16, 4555, 16, 306...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 6079, 67, 8004, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 33, 8381, 16, 819, 12938, 4672, 4422, 18, 7371, 1435, 2291, 67, 2232, 273, 365, 18, 3072, 12, 3353, 16, 4555, 16, 306...
libraries = ['boost_python', 'z', 'pthread', 'ssl'] for mem in os.listdir(os.path.join(sysconfig.PREFIX, "lib")): if mem.startswith("libbost_filesystem-mt"): print "found boost_filesystem-mt"
libraries = ['z', 'pthread', 'ssl'] all_libs = os.listdir(os.path.join(sysconfig.PREFIX, "lib")) all_libs = [mem for mem in all_libs if mem.startswith("libboost")] for mem in all_libs: if mem.startswith("libboost_python-mt"): print "using boost_ptyhon-mt" libraries += ["boost_python-mt"] break else: print "using boost_python" libraries += ["boost_python"] for mem in all_libs: if mem.startswith("libboost_filesystem-mt"): print "using boost_filesystem-mt"
def get_libtorrent_extension(portable_dir): include_dirs = [os.path.join(portable_dir, x) for x in ['libtorrent/include', 'libtorrent/include/libtorrent']] extra_compile_args = ["-Wno-missing-braces", "-DHAVE_INCLUDE_LIBTORRENT_ASIO____ASIO_HPP=1", "-DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1", "-DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1", "-DHAVE_PTHREAD=1", "-DTORRENT_USE_OPENSSL=1", "-DHAVE_SSL=1", "-DNDEBUG=1", "-O2"] if is_x64(): extra_compile_args.append("-DAMD64") # check for mt libraries = ['boost_python', 'z', 'pthread', 'ssl'] for mem in os.listdir(os.path.join(sysconfig.PREFIX, "lib")): if mem.startswith("libbost_filesystem-mt"): print "found boost_filesystem-mt" libraries += ["boost_filesystem-mt"] elif mem.startswith("libboost_filesystem.so"): print "found boost_filesystem" libraries += ["boost_filesystem"] elif mem.startswith("libbost_date_time-mt.so"): print "found boost_date_time-mt" libraries += ["boost_date_time-mt"] elif mem.startswith("libboost_date_time.so"): print "found boost_date_time" libraries += ["boost_date_time"] elif mem.startswith("libbost_thread-mt"): print "found boost_thread-mt" libraries += ["boost_thread-mt"] elif mem.startswith("libboost_thread.so"): print "found boost_thread" libraries += ["boost_thread"] config_vars = sysconfig.get_config_vars() if "CFLAGS" in config_vars: if "-Wstrict-prototypes" in config_vars["CFLAGS"]: config_vars["CFLAGS"] = config_vars["CFLAGS"].replace("-Wstrict-prototypes", " ") if "OPT" in config_vars: if "-Wstrict-prototypes" in config_vars["OPT"]: config_vars["OPT"] = config_vars["OPT"].replace("-Wstrict-prototypes", " ") sources = fetch_sources(portable_dir) sources.remove(os.path.join(portable_dir, 'libtorrent/src/file_win.cpp')) return Extension("miro.libtorrent", include_dirs=include_dirs, libraries=libraries, extra_compile_args=extra_compile_args, sources=sources)
7e46bb89e55360572d14e6f48aeae6aed77f1160 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/7e46bb89e55360572d14e6f48aeae6aed77f1160/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2941, 13039, 547, 67, 6447, 12, 655, 429, 67, 1214, 4672, 2341, 67, 8291, 273, 306, 538, 18, 803, 18, 5701, 12, 655, 429, 67, 1214, 16, 619, 13, 364, 619, 316, 10228, 2941, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2941, 13039, 547, 67, 6447, 12, 655, 429, 67, 1214, 4672, 2341, 67, 8291, 273, 306, 538, 18, 803, 18, 5701, 12, 655, 429, 67, 1214, 16, 619, 13, 364, 619, 316, 10228, 2941, ...
def insert(connection, urls, preserve_ids = False, verbose = False):
def insert_from_urls(connection, urls, preserve_ids = False, verbose = False):
def insert(connection, urls, preserve_ids = False, verbose = False): """ Iterate over a sequence of URLs and parse and insert each one into the database the dbtables.DBTable class is currently connected to. """ if not preserve_ids: # enable ID remapping dbtables.idmap_create(connection) dbtables.DBTable.append = dbtables.DBTable._remapping_append else: # disable ID remapping dbtables.DBTable.append = dbtables.DBTable._append for n, url in enumerate(urls): # load document (if enabled, row IDs are reassigned on # input) if verbose: print >>sys.stderr, "%d/%d:" % (n + 1, len(urls)), xmldoc = utils.load_url(url, verbose = verbose, gz = (url or "stdin").endswith(".gz")) # update references to row IDs if not preserve_ids: update_ids(xmldoc, connection, verbose) # delete cursors xmldoc.unlink() connection.commit() dbtables.build_indexes(connection, verbose)
e316587c6b411815c95c1a79169a369a512dea0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/e316587c6b411815c95c1a79169a369a512dea0c/ligolw_sqlite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 67, 2080, 67, 10518, 12, 4071, 16, 6903, 16, 9420, 67, 2232, 273, 1083, 16, 3988, 273, 1083, 4672, 3536, 11436, 1879, 279, 3102, 434, 10414, 471, 1109, 471, 2243, 1517, 1245, 1368,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2243, 67, 2080, 67, 10518, 12, 4071, 16, 6903, 16, 9420, 67, 2232, 273, 1083, 16, 3988, 273, 1083, 4672, 3536, 11436, 1879, 279, 3102, 434, 10414, 471, 1109, 471, 2243, 1517, 1245, 1368,...
os.path.join("bin", "OddsPostProc.py")
os.path.join("bin", "OddsPostProc.py"), os.path.join("bin", "prepare_sendback.py"), os.path.join("bin", "qsub_wscan.sh"), os.path.join("bin", "qsub_wscanlite.sh"), os.path.join("bin", "virgo_qscan_in2p3.py"), os.path.join("bin", "wscan_in2p3.sh"), os.path.join("bin", "wscanlite_in2p3.sh")
def run(self): # remove the automatically generated user env scripts for script in ["pylal-user-env.sh", "pylal-user-env.csh"]: log.info("removing " + script ) try: os.unlink(os.path.join("etc", script)) except: pass
dba9872474ed08c5834f05531c25a4fd6e95911e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/dba9872474ed08c5834f05531c25a4fd6e95911e/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 1206, 326, 6635, 4374, 729, 1550, 8873, 364, 2728, 316, 8247, 2074, 80, 287, 17, 1355, 17, 3074, 18, 674, 3113, 315, 2074, 80, 287, 17, 1355, 17, 3074, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 1206, 326, 6635, 4374, 729, 1550, 8873, 364, 2728, 316, 8247, 2074, 80, 287, 17, 1355, 17, 3074, 18, 674, 3113, 315, 2074, 80, 287, 17, 1355, 17, 3074, 18, ...
author_email='zope3-dev@zope.org',
author_email='zope-dev@zope.org',
def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
c8fb7081cfbf88349b950aea611399de3c4350f4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9518/c8fb7081cfbf88349b950aea611399de3c4350f4/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, -100, -100, -100,...
new_flags.sort()
def test_flags_irrelevant(self): # check that the result (numeric result + flags raised) of an # arithmetic operation doesn't depend on the current flags
6d3ff2bc452eeec5ff97424d92c4a6cbc97e9a2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/6d3ff2bc452eeec5ff97424d92c4a6cbc97e9a2f/test_decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7133, 67, 481, 27719, 12, 2890, 4672, 468, 866, 716, 326, 563, 261, 5246, 563, 397, 2943, 11531, 13, 434, 392, 468, 30828, 1674, 3302, 1404, 2447, 603, 326, 783, 2943, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7133, 67, 481, 27719, 12, 2890, 4672, 468, 866, 716, 326, 563, 261, 5246, 563, 397, 2943, 11531, 13, 434, 392, 468, 30828, 1674, 3302, 1404, 2447, 603, 326, 783, 2943, 2, -10...
'Module for in-process debugging of wxPython and Python apps',
'Module for out-of-process debugging of Python apps',
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist) and len(args): # XXX should be able to 'debug in running Boa' _doDebug = 1 elif ('-T', '') in optlist or ('--Trace', '') in optlist: print 'Running in trace mode.' global tracefile tracefile = open('Boa.trace', 'wt') tracefile.write(os.getcwd()+'\n') trace_func(get_current_frame().f_back, 'call', None) trace_func(get_current_frame(), 'call', None) if trace_mode == 'functions': sys.setprofile(trace_func) elif trace_mode == 'lines': sys.settrace(trace_func) if len(args): # XXX Only the first file appears in the list when multiple files # XXX are drag/dropped on a Boa shortcut, why? _startupModules = args if ('-S', '') in optlist or ('--StartupFile', '') in optlist: _startupfile = startupEnv if ('-C', '') in optlist or ('--Constricted', '') in optlist: _constricted = 1 if ('-h', '') in optlist or ('--help', '') in optlist: print 'Version: %s'%__version__.version print 'Command-line usage: Boa.py [options] [file1] [file2] ...' print '-C, --Constricted:' print '\tRuns in constricted mode, overrides the Preference' print '-D, --Debug:' print '\tRuns the first filename passed on the command-line in the Debugger ' print '\ton startup' print '-T, --Trace:' print '\tRuns in traceing mode. Used for tracking down core dumps. Every ' print '\tfunction call is logged to a file which can later be parsed for ' print '\ta traceback' print '-S, --StartupFile:' print '\tExecutes the script pointed to by $BOASTARTUP or '\ '$PYTHONSTARTUP in' print '\tthe Shell namespace. The Editor object is available as sys.boa_ide.' print '\tOverrides the Preference' print '-B, --BlockHomePrefs:' print '\tPrevents the $HOME directory being used ' print '-O dirname, --OverridePrefsDirName dirname:' print '\tSpecify a different directory to load Preferences from.' print '\tDefault is .boa and is used if it exists' sys.exit() if ('-v', '') in optlist or ('--version', '') in optlist: print 'Version: %s'%__version__.version sys.exit() return _doDebug, _startupfile, _startupModules, _constricted, optlist, args
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2615, 12, 19485, 4672, 389, 2896, 2829, 273, 389, 591, 13948, 329, 273, 374, 389, 23939, 768, 273, 875, 389, 23939, 7782, 273, 1832, 1930, 336, 3838, 2153, 1098, 16, 833, 273, 336,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2615, 12, 19485, 4672, 389, 2896, 2829, 273, 389, 591, 13948, 329, 273, 374, 389, 23939, 768, 273, 875, 389, 23939, 7782, 273, 1832, 1930, 336, 3838, 2153, 1098, 16, 833, 273, 336,...
if progresscallback is None and continuecallback is None: islicesize = stepcount
if progresscallback is None and continuecallback is None: islicesize = self.stepcount
def run(self,progresscallback=None,continuecallback=None): assert self.result.returncode==0, 'Run did not initialize successfully. %s' % self.result.errormessage # Calculate the size of time batches (small enough to respond rapidly to requests # for cancellation, and to show sufficiently detailed progress - e.g. in % - # but not so small that GUI slows down due to the avalanche of progress notifications) visualres = 0.01
4019597326ae057dd78211a3008feee08a465142 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/381/4019597326ae057dd78211a3008feee08a465142/simulator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 8298, 3394, 33, 7036, 16, 17143, 3394, 33, 7036, 4672, 1815, 365, 18, 2088, 18, 2463, 710, 631, 20, 16, 296, 1997, 5061, 486, 4046, 4985, 18, 738, 87, 11, 738, 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, 1086, 12, 2890, 16, 8298, 3394, 33, 7036, 16, 17143, 3394, 33, 7036, 4672, 1815, 365, 18, 2088, 18, 2463, 710, 631, 20, 16, 296, 1997, 5061, 486, 4046, 4985, 18, 738, 87, 11, 738, 36...
""" def __init__(self, graph, channels, autoColor=True, valueUpdateInterval=50):
If valueUpdateInterval is specified, the channel values are displayed in the list and updated every valueUpdateInterval milliseconds. """ def __init__(self, graph, channels, autoColor=True, valueUpdateInterval=None):
def initGrid(self, drawable, width, height): """Draw a grid to the given drawable at the given size""" drawable.draw_rectangle(self.bgGc, gtk.TRUE, 0, 0, width, height)
59acd7101d02a60e7dcd31cf40cf07a5a2045926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/59acd7101d02a60e7dcd31cf40cf07a5a2045926/rtgraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 6313, 12, 2890, 16, 19021, 16, 1835, 16, 2072, 4672, 3536, 6493, 279, 3068, 358, 326, 864, 19021, 622, 326, 864, 963, 8395, 19021, 18, 9446, 67, 2607, 4341, 12, 2890, 18, 12370, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 6313, 12, 2890, 16, 19021, 16, 1835, 16, 2072, 4672, 3536, 6493, 279, 3068, 358, 326, 864, 19021, 622, 326, 864, 963, 8395, 19021, 18, 9446, 67, 2607, 4341, 12, 2890, 18, 12370, ...
def search_rdf(self, REQUEST=None, RESPONSE=None):
def search_rdf(self, REQUEST=None, **kwargs):
def search_rdf(self, REQUEST=None, RESPONSE=None): """ """ search_mapping = RDF_SEARCH_MAPPING search_query_mapping = RDF_SEARCH_QUERY_MAPPING
2d104647b9ff57a28d7b186e95c36b282906da16 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/2d104647b9ff57a28d7b186e95c36b282906da16/SEMIDESite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 19299, 12, 2890, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 3536, 1623, 67, 6770, 273, 13539, 67, 17251, 67, 20450, 1623, 67, 2271, 67, 6770, 273, 13539, 67, 17251, 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, 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, 1623, 67, 19299, 12, 2890, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 3536, 1623, 67, 6770, 273, 13539, 67, 17251, 67, 20450, 1623, 67, 2271, 67, 6770, 273, 13539, 67, 17251, 67, ...
FileRuleGetter(deliverance_ruleset),
FileRuleGetter(ruleset),
def make_featurelet(loader, section, theme_uri, rules): app = loader.get_app(section) app = CustomDeliveranceMiddleware( app, FileRuleGetter(deliverance_ruleset), default_theme=theme_uri) tasktracker = App(tasktracker, 'tasktracker')
1492d58426c7a258a73f391fd03c817a6a2f9ebd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12795/1492d58426c7a258a73f391fd03c817a6a2f9ebd/wsgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 7238, 1810, 12, 6714, 16, 2442, 16, 5006, 67, 1650, 16, 2931, 4672, 595, 273, 4088, 18, 588, 67, 2910, 12, 3464, 13, 225, 595, 273, 6082, 20813, 1359, 9410, 12, 595, 16, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 7238, 1810, 12, 6714, 16, 2442, 16, 5006, 67, 1650, 16, 2931, 4672, 595, 273, 4088, 18, 588, 67, 2910, 12, 3464, 13, 225, 595, 273, 6082, 20813, 1359, 9410, 12, 595, 16, 13...
return errorMsg(e.value, req, ln)
return errorMsg(e, req, c, ln)
def action(req, c=cdsname, ln=cdslang, doctype=""): # load the right message language _ = gettext_set_language(ln) nbCateg = 0 snameCateg = [] lnameCateg = [] actionShortDesc = [] indir = [] actionbutton = [] statustext = [] t = "" ln = wash_language(ln) # get user ID: try: uid = getUid(req) uid_email = get_email(uid) except Error, e: return errorMsg(e.value, req, ln) #parses database to get all data ## first, get the list of categories doctype_categs = get_categories_of_doctype(doctype) for doctype_categ in doctype_categs: nbCateg = nbCateg+1 snameCateg.append(doctype_categ[0]) lnameCateg.append(doctype_categ[1]) ## Now get the details of the document type: doctype_details = get_doctype_details(doctype) if doctype_details is None: ## Doctype doesn't exist - raise error: return errorMsg (_("Unable to find document type.") + str(doctype), req) else: docFullDesc = doctype_details[0] docShortDesc = doctype_details[1] description = doctype_details[4] ## Get the details of the actions supported by this document-type: doctype_actions = get_actions_on_submission_page_for_doctype(doctype) for doctype_action in doctype_actions: ## Get the details of this action: action_details = get_action_details(doctype_action[0]) if action_details is not None: actionShortDesc.append(doctype_action[0]) indir.append(action_details[1]) actionbutton.append(action_details[4]) statustext.append(action_details[5]) ## Send the gathered information to the template so that the doctype's ## home-page can be displayed: t = websubmit_templates.tmpl_action_page( ln=ln, uid=uid, guest=(uid_email == "" or uid_email == "guest"), pid = os.getpid(), now = time.time(), doctype = doctype, description = description, docfulldesc = docFullDesc, snameCateg = snameCateg, lnameCateg = lnameCateg, actionShortDesc = actionShortDesc, indir = indir, # actionbutton = actionbutton, statustext = statustext, ) p_navtrail = """<a href="/submit">%(submit)s</a>""" % {'submit' : _("Submit")} return page(title = docFullDesc, body=t, navtrail=p_navtrail, description="submit documents", keywords="submit", uid=uid, language=ln, req=req )
103e2ddea7827668f0b8eb09702401eb53f14008 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/103e2ddea7827668f0b8eb09702401eb53f14008/websubmit_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 3658, 16, 276, 33, 71, 2377, 529, 16, 7211, 33, 4315, 2069, 539, 16, 24909, 1546, 6, 4672, 468, 1262, 326, 2145, 883, 2653, 389, 273, 24972, 67, 542, 67, 4923, 12, 2370, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 3658, 16, 276, 33, 71, 2377, 529, 16, 7211, 33, 4315, 2069, 539, 16, 24909, 1546, 6, 4672, 468, 1262, 326, 2145, 883, 2653, 389, 273, 24972, 67, 542, 67, 4923, 12, 2370, 13...
self.verbose_logger.log(logginglevels.DEBUG_4, "unable to find newer package for %s.%s" %(confpkg.name,confpkg.arch))
self.verbose_logger.log(logginglevels.DEBUG_4, "unable to find newer package for %s" %(confpkg))
def _processConflict(self, po, conflict): """processes a Conflict dep from the resolveDeps() method""" CheckDeps = 0 conflicts = 0 errormsgs = []
96c4e680bb57aed9d76204d59ba85b7eca6dcde8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/96c4e680bb57aed9d76204d59ba85b7eca6dcde8/depsolve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 10732, 12, 2890, 16, 8275, 16, 7546, 4672, 3536, 18675, 279, 23460, 5993, 628, 326, 2245, 14430, 1435, 707, 8395, 225, 2073, 14430, 273, 374, 14450, 273, 374, 393, 535, 87, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 10732, 12, 2890, 16, 8275, 16, 7546, 4672, 3536, 18675, 279, 23460, 5993, 628, 326, 2245, 14430, 1435, 707, 8395, 225, 2073, 14430, 273, 374, 14450, 273, 374, 393, 535, 87, 56...
self.known_modifiers_mask = 0
self.unknown_combos = []
def __init__ (self, application, key): gobject.GObject.__init__ (self) threading.Thread.__init__ (self) self.setDaemon (True)
2055e1bfc264c25fe76e2c0aca8b3dfa9dc1163c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3179/2055e1bfc264c25fe76e2c0aca8b3dfa9dc1163c/globalkeybinding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 2521, 16, 498, 4672, 314, 1612, 18, 43, 921, 16186, 2738, 972, 261, 2890, 13, 17254, 18, 3830, 16186, 2738, 972, 261, 2890, 13, 365, 18, 542, 12858, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 2521, 16, 498, 4672, 314, 1612, 18, 43, 921, 16186, 2738, 972, 261, 2890, 13, 17254, 18, 3830, 16186, 2738, 972, 261, 2890, 13, 365, 18, 542, 12858, 261...