rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
invokeLog(cmd, buildLogFile)
invokeLog(cmd, buildLogFile)
def buildAll(self, buildConf): for target in buildConf['targets']: # Prepare log file if ('buildLogDir' in buildConf): if not os.path.isdir(buildConf['buildLogDir']): os.mkdir(buildConf['buildLogDir']) buildLog = os.path.join(buildConf['buildLogDir'], target + '_' + self.startTimeString + '.log') self.log("Opening buil...
d8067347d13e3b8bd01934f64c3a0e3a3c28c6a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/d8067347d13e3b8bd01934f64c3a0e3a3c28c6a8/qxtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1595, 12, 2890, 16, 1361, 3976, 4672, 364, 1018, 316, 1361, 3976, 3292, 11358, 3546, 30, 468, 7730, 613, 585, 309, 7707, 3510, 1343, 1621, 11, 316, 1361, 3976, 4672, 309, 486, 1140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1595, 12, 2890, 16, 1361, 3976, 4672, 364, 1018, 316, 1361, 3976, 3292, 11358, 3546, 30, 468, 7730, 613, 585, 309, 7707, 3510, 1343, 1621, 11, 316, 1361, 3976, 4672, 309, 486, 1140...
if sources and sources.first() is not source:
if sources: if sources.first() is source: return
def _setSource(self, source): sources = self.sources if sources and sources.first() is not source: sources.clear() if source is not None: sources.append(source)
a949e2974de9beced59ba528542b688306a3c9fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/a949e2974de9beced59ba528542b688306a3c9fb/collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 1830, 12, 2890, 16, 1084, 4672, 5550, 273, 365, 18, 10141, 309, 5550, 30, 309, 5550, 18, 3645, 1435, 353, 1084, 30, 327, 5550, 18, 8507, 1435, 309, 1084, 353, 486, 599, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 1830, 12, 2890, 16, 1084, 4672, 5550, 273, 365, 18, 10141, 309, 5550, 30, 309, 5550, 18, 3645, 1435, 353, 1084, 30, 327, 5550, 18, 8507, 1435, 309, 1084, 353, 486, 599, 30, ...
algebra system [Rasch03].
algebra system [Rasch03]_.
def wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculate the Wigner 3j symbol `Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3)`. INPUT: - ``j_1``, ``j_2``, ``j_3``, ``m_1``, ``m_2``, ``m_3`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculat...
c6a90d820f57455b2ff6063db98cb5e6f7a11f83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c6a90d820f57455b2ff6063db98cb5e6f7a11f83/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 23, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 23, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
conflict2 = [ x for x in \ otherTrove.getNewFileList() if x[0] == pathId]
files = (otherTrove.getNewFileList() + otherTrove.getChangedFileList()) conflict2 = [ x for x in files if x[0] == pathId]
def merge(self, otherCs): self.files.update(otherCs.files)
d21e30ea1c8ab0bf7c0468473633e966b49d9cbc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/d21e30ea1c8ab0bf7c0468473633e966b49d9cbc/changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 12, 2890, 16, 1308, 14272, 4672, 365, 18, 2354, 18, 2725, 12, 3011, 14272, 18, 2354, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 12, 2890, 16, 1308, 14272, 4672, 365, 18, 2354, 18, 2725, 12, 3011, 14272, 18, 2354, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return mask_and_ovr(1)
return mask_and_ovr(1, 'NEAREST')
def mask_15(): return mask_and_ovr(1)
a1e29113b3fa9b8b0a8e8b23a259621ad0ad11df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/a1e29113b3fa9b8b0a8e8b23a259621ad0ad11df/mask.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3066, 67, 3600, 13332, 327, 3066, 67, 464, 67, 1527, 86, 12, 21, 16, 296, 5407, 9332, 882, 6134, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3066, 67, 3600, 13332, 327, 3066, 67, 464, 67, 1527, 86, 12, 21, 16, 296, 5407, 9332, 882, 6134, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
"""Test 'frame variable this' aand 'expr this' when stopped inside a constructor."""
"""Test 'frame variable this' and 'expr this' when stopped inside a constructor."""
def test_with_dwarf_and_expr_parser(self): """Test 'frame variable this' aand 'expr this' when stopped inside a constructor.""" self.buildDwarf() self.class_types_expr_parser()
e334b352f1685142edd6a84f5444cd83ab12c008 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11986/e334b352f1685142edd6a84f5444cd83ab12c008/TestClassTypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1918, 67, 72, 905, 74, 67, 464, 67, 8638, 67, 4288, 12, 2890, 4672, 3536, 4709, 296, 3789, 2190, 333, 11, 471, 296, 8638, 333, 11, 1347, 9627, 4832, 279, 3885, 12123, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1918, 67, 72, 905, 74, 67, 464, 67, 8638, 67, 4288, 12, 2890, 4672, 3536, 4709, 296, 3789, 2190, 333, 11, 471, 296, 8638, 333, 11, 1347, 9627, 4832, 279, 3885, 12123, 365, ...
self.rgb_mul_sliders = NSliderBlock(3, [(0, 1000, 500, 'R'), (0, 1000, 500, 'G'), (0, 1000, 500, 'B')],
self.rgb_mul_sliders = NSliderBlock(3, [(0, 1000, 500, 'R', .002), (0, 1000, 500, 'G', .002), (0, 1000, 500, 'B', .002)],
def __init__(self, img, callback): QWidget.__init__(self)
186eee357ab9a9a1d91f0651f6a9efcffa5aff79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12573/186eee357ab9a9a1d91f0651f6a9efcffa5aff79/qt_plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3774, 16, 1348, 4672, 2238, 4609, 16186, 2738, 972, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3774, 16, 1348, 4672, 2238, 4609, 16186, 2738, 972, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if a.index(-2,-10) != 0: raise TestFailed, 'list index, negative start argument'
if a.index(0,-4) != 2: raise TestFailed, 'list index, -start argument' if a.index(-2,-10) != 0: raise TestFailed, 'list index, very -start argument'
def __getitem__(self, key): return str(key) + '!!!'
2743d87d7934535f16a0ea062a28c21ea18e5a24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2743d87d7934535f16a0ea062a28c21ea18e5a24/test_types.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 327, 609, 12, 856, 13, 397, 296, 8548, 5124, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 327, 609, 12, 856, 13, 397, 296, 8548, 5124, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
sys.last_type and sys.last_value. The return value is a list of
sys.exc_info()[0] and sys.exc_info()[1]. The return value is a list of
def format_exception_only(etype, value): """Format the exception part of a traceback. The arguments are the exception type and value such as given by sys.last_type and sys.last_value. The return value is a list of strings, each ending in a newline. Normally, the list contains a single string; however, for SyntaxError...
85e1478ca412f93e584046b44633283f6241df84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/85e1478ca412f93e584046b44633283f6241df84/traceback.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 4064, 67, 3700, 12, 5872, 16, 460, 4672, 3536, 1630, 326, 1520, 1087, 434, 279, 10820, 18, 225, 1021, 1775, 854, 326, 1520, 618, 471, 460, 4123, 487, 864, 635, 2589, 18, 10075...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 4064, 67, 3700, 12, 5872, 16, 460, 4672, 3536, 1630, 326, 1520, 1087, 434, 279, 10820, 18, 225, 1021, 1775, 854, 326, 1520, 618, 471, 460, 4123, 487, 864, 635, 2589, 18, 10075...
"""
"""
def fl_glwincreate(config, context, w, h): """ fl_glwincreate(config, context, w, h) -> window """ retval = _fl_glwincreate(config, context, w, h) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 7043, 8082, 2640, 12, 1425, 16, 819, 16, 341, 16, 366, 4672, 3536, 1183, 67, 7043, 8082, 2640, 12, 1425, 16, 819, 16, 341, 16, 366, 13, 317, 2742, 3536, 225, 5221, 273, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 7043, 8082, 2640, 12, 1425, 16, 819, 16, 341, 16, 366, 4672, 3536, 1183, 67, 7043, 8082, 2640, 12, 1425, 16, 819, 16, 341, 16, 366, 13, 317, 2742, 3536, 225, 5221, 273, 389...
items = (posixpath.join(path, name) for name in obj[path].iternames())
items = (posixpath.join(path, name) for name in obj[path].iterkeys())
def h5py_item_completer(context, command): """Compute possible item matches for dict-like objects""" base, item = re_item_match.split(command)[1:4:2] # we don't want to call any functions, but I couldn't find a robust regex # that filtered them without unintended side effects. So keys containing # "(" will not comple...
ff9d4ad29621aa11221063764752bb9fe757ad51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10380/ff9d4ad29621aa11221063764752bb9fe757ad51/_ipy_completer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 25, 2074, 67, 1726, 67, 832, 17754, 12, 2472, 16, 1296, 4672, 3536, 7018, 3323, 761, 1885, 364, 2065, 17, 5625, 2184, 8395, 225, 1026, 16, 761, 273, 283, 67, 1726, 67, 1916, 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, 366, 25, 2074, 67, 1726, 67, 832, 17754, 12, 2472, 16, 1296, 4672, 3536, 7018, 3323, 761, 1885, 364, 2065, 17, 5625, 2184, 8395, 225, 1026, 16, 761, 273, 283, 67, 1726, 67, 1916, 18, ...
sage: [24157817, 39088169, 63245986] sage: fibs = fibonacci_range(10, 100)
[14930352, 24157817, 39088169, 63245986] sage: fibs = [i for i in fibonacci_range(10, 100)]
def fibonacci_range(start, stop, algorithm='pari'): r""" Returns an iterator over all of the Fibonacci numbers in the given range from \code{f_n = start} to \code{f_n = stop} EXAMPLES: sage: fibs_in_some_range = [i for i in fibonacci_range(10^7, 10^8)] sage: len(fibs_in_some_range) 3 sage: fibs_in_some_range sage: [2...
52003a02ffe89f107e5076d5270f4e9656e76a90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/52003a02ffe89f107e5076d5270f4e9656e76a90/combinat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 495, 265, 8981, 77, 67, 3676, 12, 1937, 16, 2132, 16, 4886, 2218, 1065, 77, 11, 4672, 436, 8395, 2860, 392, 2775, 1879, 777, 434, 326, 478, 495, 265, 8981, 77, 5600, 316, 326, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 495, 265, 8981, 77, 67, 3676, 12, 1937, 16, 2132, 16, 4886, 2218, 1065, 77, 11, 4672, 436, 8395, 2860, 392, 2775, 1879, 777, 434, 326, 478, 495, 265, 8981, 77, 5600, 316, 326, 8...
import mox as Mox
import pymox.mox as Mox
def OnTestsLoad(): import sys old_path = sys.path global mox try: directory, _file = os.path.split(__file__) sys.path.append(os.path.abspath(os.path.join(directory, 'pymox'))) sys.path.append(os.path.abspath(os.path.join(directory, '..'))) try: import mox as Mox mox = Mox except ImportError: print "Trying to automatica...
5602ca4770ac930c207dacfe7034207ada347b2c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/5602ca4770ac930c207dacfe7034207ada347b2c/super_mox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 14650, 2563, 13332, 1930, 2589, 1592, 67, 803, 273, 2589, 18, 803, 2552, 312, 2409, 775, 30, 1867, 16, 389, 768, 273, 1140, 18, 803, 18, 4939, 12, 972, 768, 972, 13, 2589, 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, 2755, 14650, 2563, 13332, 1930, 2589, 1592, 67, 803, 273, 2589, 18, 803, 2552, 312, 2409, 775, 30, 1867, 16, 389, 768, 273, 1140, 18, 803, 18, 4939, 12, 972, 768, 972, 13, 2589, 18, ...
self.max_login_attempts[1] = 0
self.attempted_logins = 0
def ftp_PASS(self, line): # TODO - brute force protection: 'freeze'/'sleep' (without blocking the main loop) # PI for a certain amount of time if authentication fails. if not self.username: self.respond("503 Login with USER first") return if self.username == 'anonymous': line = '' if self.authorizer.has_user(self....
038a954425a48feb99b246b07f88389b6f601664 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/038a954425a48feb99b246b07f88389b6f601664/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 10884, 12, 2890, 16, 980, 4672, 468, 2660, 300, 5186, 624, 2944, 17862, 30, 296, 29631, 11, 2473, 19607, 11, 261, 13299, 9445, 326, 2774, 2798, 13, 468, 282, 7024, 364, 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, 13487, 67, 10884, 12, 2890, 16, 980, 4672, 468, 2660, 300, 5186, 624, 2944, 17862, 30, 296, 29631, 11, 2473, 19607, 11, 261, 13299, 9445, 326, 2774, 2798, 13, 468, 282, 7024, 364, 279, ...
print response
def testPostTVRobustness(self): """ Test that bad json TV syntax fails gracefully, i.e. doesn't kill the server! """ data = """{ "type":"ConceptNode", "name":"SimpleTVMutations", "truthvalue": {"simple": {"str":0.5, "count":10}} }""" import random r = random.Random() for i in range(0,40): data_copy = list(data) data_co...
128d92bce497367c7c6ac10d31f07b5bf9b24ef3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10249/128d92bce497367c7c6ac10d31f07b5bf9b24ef3/REST_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3349, 56, 10986, 947, 641, 4496, 12, 2890, 4672, 3536, 7766, 716, 5570, 1163, 399, 58, 6279, 6684, 25063, 16, 277, 18, 73, 18, 3302, 1404, 8673, 326, 1438, 5, 3536, 501, 273, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3349, 56, 10986, 947, 641, 4496, 12, 2890, 4672, 3536, 7766, 716, 5570, 1163, 399, 58, 6279, 6684, 25063, 16, 277, 18, 73, 18, 3302, 1404, 8673, 326, 1438, 5, 3536, 501, 273, 353...
self.command_show("busy "+args)
self.command_show("busy "+arg)
def command_busy(self, arg): """ /busy [msg] """ self.command_show("busy "+args)
32398ba5863d84dead3df954f2f1b6d4fcd49022 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/32398ba5863d84dead3df954f2f1b6d4fcd49022/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 9274, 93, 12, 2890, 16, 1501, 4672, 3536, 342, 9274, 93, 306, 3576, 65, 3536, 365, 18, 3076, 67, 4500, 2932, 9274, 93, 13773, 1968, 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, 1296, 67, 9274, 93, 12, 2890, 16, 1501, 4672, 3536, 342, 9274, 93, 306, 3576, 65, 3536, 365, 18, 3076, 67, 4500, 2932, 9274, 93, 13773, 1968, 13, 2, -100, -100, -100, -100, -100, -100,...
(cr, uid, {'date_create':time.strftime('%Y-%m-%d %H:%M:%S'),'server_id' : ids[0],'name':_('Please verify Email Server, without verification you can not send Email(s).')}) raise osv.except_osv(_('Server Error!'), _('Please verify Email Server, without verification you can not send Email(s).'))
(cr, uid, {'date_create':time.strftime('%Y-%m-%d %H:%M:%S'),'server_id' : ids[0], 'name':_(error_msg[msg])}) raise osv.except_osv(_('Server Error!'), _(error_msg[msg]))
def test_verify_email(self, cr, uid, ids, toemail, test=False, code=False): serverid = ids[0] self.open_connection(cr, uid, ids, serverid)
f0013a2bab5b38545f27bdafa1ba5cf23c99024c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/f0013a2bab5b38545f27bdafa1ba5cf23c99024c/smtpclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8705, 67, 3652, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 358, 3652, 16, 1842, 33, 8381, 16, 981, 33, 8381, 4672, 225, 1438, 350, 273, 3258, 63, 20, 65, 365, 18, 3190, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8705, 67, 3652, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 358, 3652, 16, 1842, 33, 8381, 16, 981, 33, 8381, 4672, 225, 1438, 350, 273, 3258, 63, 20, 65, 365, 18, 3190, ...
libraries=['gmp'])
libraries=['mpfr','gmp'])
def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False
d185300fa94d4993679d9ffe751236586d2d8ea0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d185300fa94d4993679d9ffe751236586d2d8ea0/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2704, 264, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2704, 264, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16,...
self.close()
self.handle_close()
def handle_read(self): try: self.data = self.data + self.recv(8192) except: print """
9eb36b0ba14388c68d42a46c215a4db9e14b59c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10401/9eb36b0ba14388c68d42a46c215a4db9e14b59c4/myth_py_wii.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 896, 12, 2890, 4672, 775, 30, 365, 18, 892, 273, 365, 18, 892, 397, 365, 18, 18334, 12, 28, 15561, 13, 1335, 30, 1172, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 896, 12, 2890, 4672, 775, 30, 365, 18, 892, 273, 365, 18, 892, 397, 365, 18, 18334, 12, 28, 15561, 13, 1335, 30, 1172, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -1...
self.body.append(node.astext())
self.body.extend(['\n', node.astext(), '\n'])
def visit_raw(self, node): if node.get('format') == 'lout': self.body.append(node.astext()) # Keep non-Lout raw text out of output: raise nodes.SkipNode
544440c7f6145f4088ce7ce07b13fae4e87b8570 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/544440c7f6145f4088ce7ce07b13fae4e87b8570/lout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 1899, 12, 2890, 16, 756, 4672, 309, 756, 18, 588, 2668, 2139, 6134, 422, 296, 14533, 4278, 365, 18, 3432, 18, 14313, 12, 3292, 64, 82, 2187, 756, 18, 689, 408, 9334, 2337, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 1899, 12, 2890, 16, 756, 4672, 309, 756, 18, 588, 2668, 2139, 6134, 422, 296, 14533, 4278, 365, 18, 3432, 18, 14313, 12, 3292, 64, 82, 2187, 756, 18, 689, 408, 9334, 2337, ...
def task(ident): global running rmutex.acquire() delay = random.random() * numtasks * 0.02 rmutex.release() if verbose: print 'task', ident, 'will run for', round(delay, 2), 'sec' time.sleep(delay) if verbose: print 'task', ident, 'done' mutex.acquire() running = running - 1 if running == 0: done.release() mutex.releas...
if __name__ == "__main__": test_main()
def task(ident): global running rmutex.acquire() delay = random.random() * numtasks * 0.02 rmutex.release() if verbose: print 'task', ident, 'will run for', round(delay, 2), 'sec' time.sleep(delay) if verbose: print 'task', ident, 'done' mutex.acquire() running = running - 1 if running == 0: done.release() mutex.releas...
215803e429bc0013d0a60bea8cf8ad8506a32290 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/215803e429bc0013d0a60bea8cf8ad8506a32290/test_thread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1562, 12, 6392, 4672, 2552, 3549, 6692, 322, 338, 18, 1077, 1039, 1435, 4624, 273, 2744, 18, 9188, 1435, 380, 818, 9416, 380, 374, 18, 3103, 6692, 322, 338, 18, 9340, 1435, 309, 3988, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1562, 12, 6392, 4672, 2552, 3549, 6692, 322, 338, 18, 1077, 1039, 1435, 4624, 273, 2744, 18, 9188, 1435, 380, 818, 9416, 380, 374, 18, 3103, 6692, 322, 338, 18, 9340, 1435, 309, 3988, ...
"""connect to a BuildBot buildslave using pb. makes use of the value set in L{twisted.trial.itrial.IReporter.args}
"""connect to a BuildBot buildslave using pb. makes use of the value set in L{twisted.trial.itrial.IReporter.args}
def connectToSlave(self): """connect to a BuildBot buildslave using pb. makes use of the value set in L{twisted.trial.itrial.IReporter.args} """
0890a2331ecc0224902839aa0bfb229eaa875f68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/0890a2331ecc0224902839aa0bfb229eaa875f68/itrial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 774, 20302, 12, 2890, 4672, 3536, 3612, 358, 279, 3998, 6522, 1361, 27352, 1450, 6386, 18, 7297, 999, 434, 326, 460, 444, 316, 511, 95, 11246, 25444, 18, 17493, 18, 305, 566, 287, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3077, 774, 20302, 12, 2890, 4672, 3536, 3612, 358, 279, 3998, 6522, 1361, 27352, 1450, 6386, 18, 7297, 999, 434, 326, 460, 444, 316, 511, 95, 11246, 25444, 18, 17493, 18, 305, 566, 287, ...
pass
self.body.append(self.context.pop())
def depart_image(self, node): pass
8dadf098d728a635e638201f889811c930dc9e5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/8dadf098d728a635e638201f889811c930dc9e5f/html4css1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 2730, 12, 2890, 16, 756, 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...
[ 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, 26000, 67, 2730, 12, 2890, 16, 756, 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,...
["$D/regression/tst_grouped_data", "P31"],
["$D/regression/tst_grouped_data.py", "P31"],
def run(): tst_list = ( "$D/regression/tst_adp_aniso_restraints.py", "$D/math/boost_python/tst_math.py", "$D/xray/boost_python/tst_f_model.py", "$D/array_family/boost_python/tst_flex.py", "$D/uctbx/boost_python/tst_uctbx.py", "$D/uctbx/boost_python/tst_crystal_orientation.py", "$D/sgtbx/boost_python/tst_sgtbx.py", "$D/...
94558eb7bfe36edb120e31758f9b924dbafb2812 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/94558eb7bfe36edb120e31758f9b924dbafb2812/run_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 268, 334, 67, 1098, 273, 261, 4662, 40, 19, 1574, 16345, 19, 88, 334, 67, 361, 84, 67, 304, 9699, 67, 455, 313, 1598, 87, 18, 2074, 3113, 4662, 40, 19, 15949, 19, 25018,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13332, 268, 334, 67, 1098, 273, 261, 4662, 40, 19, 1574, 16345, 19, 88, 334, 67, 361, 84, 67, 304, 9699, 67, 455, 313, 1598, 87, 18, 2074, 3113, 4662, 40, 19, 15949, 19, 25018,...
nodcoord = [] for n in nodes: nodcoord.append( self.Coord[n] ) nodcoord = N.array(nodcoord)
nodcoord = N.array([self.Coord[n] for n in nodes])
def getElement(self, elename): """Create an element instance from the connectivity information (the Element class holds a list of nodes) |elem| is the name (i.e. the number) of the element (This used to be ElementFactory) """ # test whether the element already exists, shortcut if exists try: return self.elementCache[el...
7d8f9cb4320fdd8fc9b604d50de630c5126d68f5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7248/7d8f9cb4320fdd8fc9b604d50de630c5126d68f5/FEval.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7426, 12, 2890, 16, 415, 1069, 4672, 3536, 1684, 392, 930, 791, 628, 326, 20301, 1779, 261, 5787, 3010, 667, 14798, 279, 666, 434, 2199, 13, 571, 10037, 96, 353, 326, 508, 261, 77, 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, 7426, 12, 2890, 16, 415, 1069, 4672, 3536, 1684, 392, 930, 791, 628, 326, 20301, 1779, 261, 5787, 3010, 667, 14798, 279, 666, 434, 2199, 13, 571, 10037, 96, 353, 326, 508, 261, 77, 18,...
if not self._reading and cursor.atBlockEnd() and not \ cursor.hasSelection():
if not self._reading and self._in_buffer(position) and \ cursor.atBlockEnd() and not cursor.hasSelection():
def _event_filter_console_keypress(self, event): """ Filter key events for the underlying text widget to create a console-like interface. """ intercepted = False cursor = self._control.textCursor() position = cursor.position() key = event.key() ctrl_down = self._control_key_down(event.modifiers()) alt_down = event.modi...
4212c3a5a35f1a8330abc93ed6ed15b0e6ceb3a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4217/4212c3a5a35f1a8330abc93ed6ed15b0e6ceb3a1/console_widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2575, 67, 2188, 67, 8698, 67, 856, 1028, 12, 2890, 16, 871, 4672, 3536, 4008, 498, 2641, 364, 326, 6808, 977, 3604, 358, 752, 279, 2983, 17, 5625, 1560, 18, 3536, 10883, 329, 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, 389, 2575, 67, 2188, 67, 8698, 67, 856, 1028, 12, 2890, 16, 871, 4672, 3536, 4008, 498, 2641, 364, 326, 6808, 977, 3604, 358, 752, 279, 2983, 17, 5625, 1560, 18, 3536, 10883, 329, 273,...
self.debug_building_ = "--debug-building" in bjam.variable("ARV")
self.debug_building_ = "--debug-building" in bjam.variable("ARGV")
def __init__ (self): # All targets that are currently being built. # Only the key is id (target), the value is the actual object. self.targets_being_built_ = {}
58f1d1f5fe34dac0e92592136b060c6929c5a0ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9981/58f1d1f5fe34dac0e92592136b060c6929c5a0ce/targets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 4672, 468, 4826, 5774, 716, 854, 4551, 3832, 6650, 18, 468, 5098, 326, 498, 353, 612, 261, 3299, 3631, 326, 460, 353, 326, 3214, 733, 18, 365, 18, 11358, 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, 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, 4672, 468, 4826, 5774, 716, 854, 4551, 3832, 6650, 18, 468, 5098, 326, 498, 353, 612, 261, 3299, 3631, 326, 460, 353, 326, 3214, 733, 18, 365, 18, 11358, 67...
request.theme.add_msg('<strong>%s</strong><br>%s' % (
request.theme.add_msg('<strong>%s</strong><br>' % (
def send_page(self, **keywords): """ Output the formatted page.
06a4349c3d48a551cc02c2bfe66bcd631ddce69e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/06a4349c3d48a551cc02c2bfe66bcd631ddce69e/Page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 2433, 12, 2890, 16, 2826, 11771, 4672, 3536, 3633, 326, 4955, 1363, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 1366, 67, 2433, 12, 2890, 16, 2826, 11771, 4672, 3536, 3633, 326, 4955, 1363, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def process(item_id, source, metadata)
def process(item_id, source, metadata):
def process(item_id, source, metadata) """Perform the exporting process and return the absolute path to the resulting file.
c9754e05637fe8ae6727d4e5be1958891d33a3c4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12043/c9754e05637fe8ae6727d4e5be1958891d33a3c4/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 1726, 67, 350, 16, 1084, 16, 1982, 4672, 3536, 4990, 326, 3359, 310, 1207, 471, 327, 326, 4967, 589, 358, 326, 8156, 585, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 1726, 67, 350, 16, 1084, 16, 1982, 4672, 3536, 4990, 326, 3359, 310, 1207, 471, 327, 326, 4967, 589, 358, 326, 8156, 585, 18, 2, -100, -100, -100, -100, -100, -100, -100, -10...
media.item = DirItem(media.mountdir, None)
media.item = DirItem(media.mountdir, None, create_metainfo=False)
def identify(self, media): """ magic! Try to find out as much as possible about the disc in the rom drive: title, image, play options, ... """ # Check drive status (tray pos, disc ready) try: CDSL_CURRENT = ( (int ) ( ~ 0 >> 1 ) ) fd = os.open(media.devicename, os.O_RDONLY | os.O_NONBLOCK) if os.uname()[0] == 'FreeBSD'...
afbf6bc3c449611dfdd9884985752e4ec42387fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/afbf6bc3c449611dfdd9884985752e4ec42387fc/rom_drives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9786, 12, 2890, 16, 3539, 4672, 3536, 8146, 5, 6161, 358, 1104, 596, 487, 9816, 487, 3323, 2973, 326, 19169, 316, 326, 24137, 14316, 30, 2077, 16, 1316, 16, 6599, 702, 16, 1372, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9786, 12, 2890, 16, 3539, 4672, 3536, 8146, 5, 6161, 358, 1104, 596, 487, 9816, 487, 3323, 2973, 326, 19169, 316, 326, 24137, 14316, 30, 2077, 16, 1316, 16, 6599, 702, 16, 1372, 3536, ...
maintainer="Zope Corporation",
maintainer="Zope Foundation and Contributors",
def read_file(*path): base_dir = os.path.dirname(__file__) file_path = (base_dir, ) + tuple(path) return file(os.path.join(*file_path)).read()
16d64841c93a69cae03b19fca5c30829be71f6db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10048/16d64841c93a69cae03b19fca5c30829be71f6db/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 768, 30857, 803, 4672, 1026, 67, 1214, 273, 1140, 18, 803, 18, 12287, 12, 972, 768, 972, 13, 585, 67, 803, 273, 261, 1969, 67, 1214, 16, 262, 397, 3193, 12, 803, 13, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 768, 30857, 803, 4672, 1026, 67, 1214, 273, 1140, 18, 803, 18, 12287, 12, 972, 768, 972, 13, 585, 67, 803, 273, 261, 1969, 67, 1214, 16, 262, 397, 3193, 12, 803, 13, 327, ...
connect_ring(r, z, ring, prev_r, prev_z, prev_ring, ring_marker) prev_ring = ring prev_r, prev_z = r, z if closure == EXT_CLOSE_IN_Z: add_polygons([tuple(prev_ring[::-1])], plus_z_closure_marker)
connect_ring(i, i+1, ring_marker)
def connect_ring(r, z, ring, prev_r, prev_z, prev_ring, marker): if _is_same_float(z, prev_z): assert not _is_same_float(r, prev_r) # we're moving purely outward--this doesn't need fans, only plane # surfaces. Special casing this leads to more freedom for TetGen # and hence better meshes.
3ced297c55913885e4b6094b0c0e25c20e66ad10 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11985/3ced297c55913885e4b6094b0c0e25c20e66ad10/tet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 8022, 12, 86, 16, 998, 16, 9221, 16, 2807, 67, 86, 16, 2807, 67, 94, 16, 2807, 67, 8022, 16, 5373, 4672, 309, 389, 291, 67, 14307, 67, 5659, 12, 94, 16, 2807, 67, 94, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 8022, 12, 86, 16, 998, 16, 9221, 16, 2807, 67, 86, 16, 2807, 67, 94, 16, 2807, 67, 8022, 16, 5373, 4672, 309, 389, 291, 67, 14307, 67, 5659, 12, 94, 16, 2807, 67, 94, 4...
if results_for_opft_item._nbhits == 0:
if results_for_opft_item._nbhits == 0:
def search_pattern(req, p=None, f=None, colls=[], m=None, hit_hints=0): """Searches for pattern 'p' and field 'f' and returns dict of recIDs HitLists per each collection in 'colls'. - Optionally, the function accepts the match type argument 'm'. If it is set (e.g. from advanced search interface), then it performs this ...
c8bc8e9e8dcaad50892504a6b2ad935d0e8bb72d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c8bc8e9e8dcaad50892504a6b2ad935d0e8bb72d/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 645, 3251, 22850, 6487, 312, 33, 7036, 16, 6800, 67, 24598, 33, 20, 4672, 3536, 16294, 364, 1936, 296, 84, 11, 471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 645, 3251, 22850, 6487, 312, 33, 7036, 16, 6800, 67, 24598, 33, 20, 4672, 3536, 16294, 364, 1936, 296, 84, 11, 471...
self.removeTransformationOutput(transDict['TransformationID'])
self.removeTransformationOutput( transDict['TransformationID'] )
def execute( self ): """ The TransformationCleaningAgent execution method. """ self.enableFlag = self.am_getOption('EnableFlag','True') if not self.enableFlag == 'True': self.log.info( 'TransformationCleaningAgent is disabled by configuration option %s/EnableFlag' % ( self.section ) ) return S_OK( 'Disabled via CS flag...
c3853ad0438058db66814335a87076cdaecd2d33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c3853ad0438058db66814335a87076cdaecd2d33/TransformationCleaningAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 365, 262, 30, 3536, 1021, 21274, 7605, 310, 3630, 4588, 707, 18, 3536, 365, 18, 7589, 4678, 273, 365, 18, 301, 67, 588, 1895, 2668, 8317, 4678, 17023, 5510, 6134, 309, 486, 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, 1836, 12, 365, 262, 30, 3536, 1021, 21274, 7605, 310, 3630, 4588, 707, 18, 3536, 365, 18, 7589, 4678, 273, 365, 18, 301, 67, 588, 1895, 2668, 8317, 4678, 17023, 5510, 6134, 309, 486, 3...
for database, cursor in self.connections:
for _database, _cursor in self.connections:
def __init__(self, limit = 100, sql_host = 'sql', sql_user = '', sql_pass = '', sql_host_prefix = 'sql-s', no_db = False, use_autoconn = False, http_retry_timeout = 30, http_max_retries = -1, http_callback = lambda *args: None, mysql_retry_timeout = 60, mysql_max_retries = -1, mysql_callback = lambda *args: None): s...
718de7551540bbee157bf8fd61d53394e444d520 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/718de7551540bbee157bf8fd61d53394e444d520/checkusage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1800, 273, 2130, 16, 1847, 67, 2564, 273, 296, 4669, 2187, 1847, 67, 1355, 273, 10226, 1847, 67, 5466, 273, 10226, 1847, 67, 2564, 67, 3239, 273, 296, 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, 1001, 2738, 972, 12, 2890, 16, 1800, 273, 2130, 16, 1847, 67, 2564, 273, 296, 4669, 2187, 1847, 67, 1355, 273, 10226, 1847, 67, 5466, 273, 10226, 1847, 67, 2564, 67, 3239, 273, 296, 46...
Gathers self.content-length worth of data
Gathers self.content-length worth of data in attach_buffer
def rawDataReceived(self, data): """ Called when data is received in raw data mode Gathers self.content-length worth of data Returns what it doesn't use """ if self.length is not None: self.attach_buffer.write(data) buff_len = self.attach_buffer.tell() if buff_len >= self.length: data = self.attach_buffer.getvalue() da...
382ee43230b4edd23aa42a717e9fc5a3d328e8bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7045/382ee43230b4edd23aa42a717e9fc5a3d328e8bc/rtsp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16503, 8872, 12, 2890, 16, 501, 4672, 3536, 11782, 1347, 501, 353, 5079, 316, 1831, 501, 1965, 611, 29722, 365, 18, 1745, 17, 2469, 26247, 434, 501, 316, 3306, 67, 4106, 2860, 4121, 518,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16503, 8872, 12, 2890, 16, 501, 4672, 3536, 11782, 1347, 501, 353, 5079, 316, 1831, 501, 1965, 611, 29722, 365, 18, 1745, 17, 2469, 26247, 434, 501, 316, 3306, 67, 4106, 2860, 4121, 518,...
print _("beta version in use:"), CURRENT_VERSION
print _("beta version %s in use:") % CURRENT_VERSION
def check_update(self): """checks newst version """ newst_version = urllib2.urlopen("http://pyload.nady.biz/files/version.txt").readline().strip() if CURRENT_VERSION < newst_version: print _("new update on pyload.de.rw:"), newst_version #newer version out elif CURRENT_VERSION == newst_version: print _("newst update in ...
8b1e215d8c26e02670fa809868120dcccb9db446 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/8b1e215d8c26e02670fa809868120dcccb9db446/Core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2725, 12, 2890, 4672, 3536, 12366, 394, 334, 1177, 3536, 394, 334, 67, 1589, 273, 11527, 22, 18, 295, 18589, 2932, 2505, 2207, 2074, 945, 18, 82, 361, 93, 18, 70, 452, 19, 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, 866, 67, 2725, 12, 2890, 4672, 3536, 12366, 394, 334, 1177, 3536, 394, 334, 67, 1589, 273, 11527, 22, 18, 295, 18589, 2932, 2505, 2207, 2074, 945, 18, 82, 361, 93, 18, 70, 452, 19, 2...
jigsAngleActionText = "<u><b>Measure Angle</b></u></b></p><br>"\
jigsAngleActionText = "<u><b>Measure Angle Jig</b></u></b></p><br>"\
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.default...
c9a25d437341caa5f0c88a4ab02c54ebb7627482 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c9a25d437341caa5f0c88a4ab02c54ebb7627482/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, ...
'********************************************************
********************************************************
def initializeConfig(self, cfg=None): if cfg is None: cfg = self.handle.getConfig() ui = self.handle.ui ui.write('''\
97264c405a2c2d9bf329ebcf3d9753a3c1f48507 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8748/97264c405a2c2d9bf329ebcf3d9753a3c1f48507/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 809, 12, 2890, 16, 2776, 33, 7036, 4672, 309, 2776, 353, 599, 30, 2776, 273, 365, 18, 4110, 18, 588, 809, 1435, 5915, 273, 365, 18, 4110, 18, 4881, 5915, 18, 2626, 2668, 6309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 809, 12, 2890, 16, 2776, 33, 7036, 4672, 309, 2776, 353, 599, 30, 2776, 273, 365, 18, 4110, 18, 588, 809, 1435, 5915, 273, 365, 18, 4110, 18, 4881, 5915, 18, 2626, 2668, 6309, ...
if url:
if url is not None:
def load_url(url, verbose = False, gz = False, xmldoc = None): """ This function has the same behaviour as load_filename() but accepts a URL instead of a filename. Any source from which Python's urllib2 library can read data is acceptable. stdin is parsed if the URL is None. If the optional xmldoc argument is provid...
7567ffee48a6f61868139e76e9072ef48d505add /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3589/7567ffee48a6f61868139e76e9072ef48d505add/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 718, 12, 718, 16, 3988, 273, 1083, 16, 14136, 273, 1083, 16, 2025, 2434, 273, 599, 4672, 3536, 1220, 445, 711, 326, 1967, 14273, 487, 1262, 67, 3459, 1435, 1496, 8104, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 718, 12, 718, 16, 3988, 273, 1083, 16, 14136, 273, 1083, 16, 2025, 2434, 273, 599, 4672, 3536, 1220, 445, 711, 326, 1967, 14273, 487, 1262, 67, 3459, 1435, 1496, 8104, 279, 1...
def readinto(self, b: bytes) -> int: """readinto(b: bytes) -> int. Read up to len(b) bytes into b.
def readinto(self, b: bytearray) -> int: """readinto(b: bytearray) -> int. Read up to len(b) bytes into b.
def readinto(self, b: bytes) -> int: """readinto(b: bytes) -> int. Read up to len(b) bytes into b.
35d42ead6ae06a4bd274751bbe03afa806ff8a26 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/35d42ead6ae06a4bd274751bbe03afa806ff8a26/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 18591, 12, 2890, 16, 324, 30, 1731, 13, 317, 509, 30, 3536, 896, 18591, 12, 70, 30, 1731, 13, 317, 509, 18, 225, 2720, 731, 358, 562, 12, 70, 13, 1731, 1368, 324, 18, 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, 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, 855, 18591, 12, 2890, 16, 324, 30, 1731, 13, 317, 509, 30, 3536, 896, 18591, 12, 70, 30, 1731, 13, 317, 509, 18, 225, 2720, 731, 358, 562, 12, 70, 13, 1731, 1368, 324, 18, 2, -100,...
self.__grid.RefreshTable()
self.__grid.FullRefresh()
def __init__(self, parent, title, testProcedure, tuples, animateAll, feelingViewerPath, pythonPath, preferences): wx.Dialog.__init__(self, parent, wx.ID_ANY, title, style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.CLIP_CHILDREN) sizer = wx.BoxSizer(wx.HORIZONTAL) self.__grid...
cf8f8788a56009d8e5bb8dea8dc09844cd516ad4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11176/cf8f8788a56009d8e5bb8dea8dc09844cd516ad4/FExecutionDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 2077, 16, 1842, 17213, 16, 10384, 16, 14671, 1595, 16, 1656, 292, 310, 18415, 743, 16, 5790, 743, 16, 12750, 4672, 7075, 18, 6353, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2077, 16, 1842, 17213, 16, 10384, 16, 14671, 1595, 16, 1656, 292, 310, 18415, 743, 16, 5790, 743, 16, 12750, 4672, 7075, 18, 6353, 16186, 2738, ...
return redirect_to_url(req, target, apache.HTTP_MOVED_PERMANENTLY)
return redirect_to_url(req, target)
def legacy_collection(self, req, form): """Collection URL backward compatibility handling.""" accepted_args = dict(legacy_collection_default_urlargd) accepted_args.update({'referer' : (str, ''), 'realm' : (str, '')}) argd = wash_urlargd(form, accepted_args)
b0a53870704df5df168e98715f470029e877ff44 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/b0a53870704df5df168e98715f470029e877ff44/websearch_webinterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8866, 67, 5548, 12, 2890, 16, 1111, 16, 646, 4672, 3536, 2532, 1976, 12555, 8926, 5057, 12123, 8494, 67, 1968, 273, 2065, 12, 17386, 67, 5548, 67, 1886, 67, 718, 3175, 72, 13, 8494, 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, 8866, 67, 5548, 12, 2890, 16, 1111, 16, 646, 4672, 3536, 2532, 1976, 12555, 8926, 5057, 12123, 8494, 67, 1968, 273, 2065, 12, 17386, 67, 5548, 67, 1886, 67, 718, 3175, 72, 13, 8494, 67...
self.fileSize = size
self.fileSize = fmtsize(size)
def chooseFile(self, default, size, saveas, dir): self.file = default self.fileSize = size if saveas == '': saveas = default self.downloadTo = abspath(saveas) return saveas
475bc2502a2632d7599dddb0ed5ed686f6cf773d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/475bc2502a2632d7599dddb0ed5ed686f6cf773d/btdownloadcurses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 812, 12, 2890, 16, 805, 16, 963, 16, 1923, 345, 16, 1577, 4672, 365, 18, 768, 273, 805, 365, 18, 768, 1225, 273, 1325, 1467, 12, 1467, 13, 309, 1923, 345, 422, 875, 30, 1923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 812, 12, 2890, 16, 805, 16, 963, 16, 1923, 345, 16, 1577, 4672, 365, 18, 768, 273, 805, 365, 18, 768, 1225, 273, 1325, 1467, 12, 1467, 13, 309, 1923, 345, 422, 875, 30, 1923, ...
self.displayed_name=filename
self.displayed_name=os.path.split(filename)[1] self.displayed_name = gnomevfs.unescape_string_for_display(self.displayed_name)
def __init__(self, filename="", displayed_name="", expected_hash="", size=0): if displayed_name: self.displayed_name=displayed_name else: self.displayed_name=filename self.filename=filename # the Hash loaded from file self.expected_hash=expected_hash # the Hash calculated self.real_hash="" # the file size self.size=siz...
65876d1e2138464085ca6544043de6d507359d13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2200/65876d1e2138464085ca6544043de6d507359d13/parano.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 1546, 3113, 10453, 67, 529, 1546, 3113, 2665, 67, 2816, 1546, 3113, 963, 33, 20, 4672, 309, 10453, 67, 529, 30, 365, 18, 5417, 329, 67, 529, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1544, 1546, 3113, 10453, 67, 529, 1546, 3113, 2665, 67, 2816, 1546, 3113, 963, 33, 20, 4672, 309, 10453, 67, 529, 30, 365, 18, 5417, 329, 67, 529, 33, ...
self.AppendUnique(CPPPATH=blitz_generated)
self.AppendUnique(CPPPATH = [blitz_generated] )
def __init__(self, **kwargs): SConsEnvironment.__init__(self, **kwargs) self.Decider('MD5-timestamp') self["ENV"] = os.environ win32 = self["PLATFORM"] == "win32" # Print statements if not os.environ.has_key("VERBOSE"): self.Replace(CXXCOMSTR = "Compiling $TARGET") self.Replace(LINKCOMSTR = "Linking $TARGET") self.R...
17c29d206f4a125b1e99b596a1e2ac07aaa1c464 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/17c29d206f4a125b1e99b596a1e2ac07aaa1c464/blitz_tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 4333, 4672, 20487, 5494, 16186, 2738, 972, 12, 2890, 16, 2826, 4333, 13, 365, 18, 1799, 3585, 2668, 6188, 25, 17, 5508, 6134, 365, 9614, 11986, 11929...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2826, 4333, 4672, 20487, 5494, 16186, 2738, 972, 12, 2890, 16, 2826, 4333, 13, 365, 18, 1799, 3585, 2668, 6188, 25, 17, 5508, 6134, 365, 9614, 11986, 11929...
gclient_scm.CreateSCM(
gclient.gclient_scm.CreateSCM(
def OptIsRev333(options): return OptIsRev(options, 333)
90ba161b70b445eba62b2a376e4fa2f508854e13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/90ba161b70b445eba62b2a376e4fa2f508854e13/gclient_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12056, 2520, 10070, 3707, 23, 12, 2116, 4672, 327, 12056, 2520, 10070, 12, 2116, 16, 890, 3707, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12056, 2520, 10070, 3707, 23, 12, 2116, 4672, 327, 12056, 2520, 10070, 12, 2116, 16, 890, 3707, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
" return JSVAL_VOID;\n",
" return 0;\n",
def writeTraceableArgumentConversion(f, member, i, name, type, haveCcx, rvdeclared): argVal = "_arg%d" % i params = { 'name': name, 'argVal': argVal } typeName = getBuiltinOrNativeTypeName(type) if typeName is not None: template = traceableArgumentConversionTemplates.get(typeName) if template is not None: f.write(sub...
2fa0c6b4d6c84eedf3bba5ad940113fd4dff1584 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/2fa0c6b4d6c84eedf3bba5ad940113fd4dff1584/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 3448, 429, 1379, 6814, 12, 74, 16, 3140, 16, 277, 16, 508, 16, 618, 16, 1240, 39, 71, 92, 16, 5633, 16571, 4672, 1501, 3053, 273, 4192, 3175, 9, 72, 6, 738, 277, 225, 859, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 3448, 429, 1379, 6814, 12, 74, 16, 3140, 16, 277, 16, 508, 16, 618, 16, 1240, 39, 71, 92, 16, 5633, 16571, 4672, 1501, 3053, 273, 4192, 3175, 9, 72, 6, 738, 277, 225, 859, 27...
return self.graph( data, file, plot_type = 'BarGraph', statistics_line=True, *args, **kw ) def lineGraph(self, data, file, *args, **kw ): return self.graph( data, file, plot_type = 'LineGraph', statistics_line=True, *args, **kw )
return self.graph( data, file, plot_type = 'BarGraph', statistics_line = True, *args, **kw ) def lineGraph( self, data, file, *args, **kw ): return self.graph( data, file, plot_type = 'LineGraph', statistics_line = True, *args, **kw )
def barGraph( self, data, file, *args, **kw ): return self.graph( data, file, plot_type = 'BarGraph', statistics_line=True, *args, **kw )
b29a492313d58334c8d949840590cb63407c88cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b29a492313d58334c8d949840590cb63407c88cf/PlottingClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4653, 4137, 12, 365, 16, 501, 16, 585, 16, 380, 1968, 16, 2826, 9987, 262, 30, 327, 365, 18, 4660, 12, 501, 16, 585, 16, 3207, 67, 723, 273, 296, 5190, 4137, 2187, 7691, 67, 1369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4653, 4137, 12, 365, 16, 501, 16, 585, 16, 380, 1968, 16, 2826, 9987, 262, 30, 327, 365, 18, 4660, 12, 501, 16, 585, 16, 3207, 67, 723, 273, 296, 5190, 4137, 2187, 7691, 67, 1369, ...
gr = grLoad
def usingDeps(logConf, dset): grLoad = graph.digraph() grLoad.add_nodes(self._classList)
cc63842e2c36d25c959121cbb39df1cd38f7ab50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/cc63842e2c36d25c959121cbb39df1cd38f7ab50/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1450, 14430, 12, 1330, 3976, 16, 23626, 4672, 3821, 2563, 273, 2667, 18, 5606, 1483, 1435, 3821, 2563, 18, 1289, 67, 4690, 12, 2890, 6315, 1106, 682, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 1450, 14430, 12, 1330, 3976, 16, 23626, 4672, 3821, 2563, 273, 2667, 18, 5606, 1483, 1435, 3821, 2563, 18, 1289, 67, 4690, 12, 2890, 6315, 1106, 682, 13, 2, -100, -100, -100, -100, -100,...
Return True if d can be used as a vector for self.
Return ``True`` if ``d`` can be used as a vector for ``self``.
def is_vector(self, d): """ Return True if d can be used as a vector for self. EXAMPLE:: sage: sr = mq.SR() sage: sr SR(1,1,1,4) sage: k = sr.base_ring() sage: A = Matrix(k, 1, 1, [k.gen()]) sage: B = sr.vector(A) sage: sr.is_vector(A) False sage: sr.is_vector(B) True """ return is_Matrix(d) and \ d.nrows() == self.r...
64b5e0e9186de5235119791631990329cc9aecfa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/64b5e0e9186de5235119791631990329cc9aecfa/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 7737, 12, 2890, 16, 302, 4672, 3536, 2000, 12176, 5510, 10335, 309, 12176, 72, 10335, 848, 506, 1399, 487, 279, 3806, 364, 12176, 2890, 68, 8338, 225, 5675, 21373, 2866, 225, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 7737, 12, 2890, 16, 302, 4672, 3536, 2000, 12176, 5510, 10335, 309, 12176, 72, 10335, 848, 506, 1399, 487, 279, 3806, 364, 12176, 2890, 68, 8338, 225, 5675, 21373, 2866, 225, 27...
space()
if node.hasComplexChildren(): line() else: space()
def compileNode(node): if node.type in [ "commentsBefore", "commentsAfter" ]: return if node.get("breakBefore", False) and not node.isFirstChild(True): sep() if node.getChild("commentsBefore", False) != None: commentCounter = 0 commentsBefore = node.getChild("commentsBefore") isFirst = node.isFirstChild() previo...
9cf07c1c2688fd9e673e7730f281973f5d893b41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/9cf07c1c2688fd9e673e7730f281973f5d893b41/prettyprint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 907, 12, 2159, 4672, 225, 309, 756, 18, 723, 316, 306, 315, 9231, 4649, 3113, 315, 9231, 4436, 6, 308, 30, 327, 565, 309, 756, 18, 588, 2932, 8820, 4649, 3113, 1083, 13, 471, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 907, 12, 2159, 4672, 225, 309, 756, 18, 723, 316, 306, 315, 9231, 4649, 3113, 315, 9231, 4436, 6, 308, 30, 327, 565, 309, 756, 18, 588, 2932, 8820, 4649, 3113, 1083, 13, 471, 4...
self.params['map_path'] = '/usr/local/share/pyx12/map' self.params['pickle_path'] = '/usr/local/share/pyx12/map'
def __init__(self, *config_files): ParamsBase.__init__(self) self.params['map_path'] = '/usr/local/share/pyx12/map' self.params['pickle_path'] = '/usr/local/share/pyx12/map' for filename in config_files: self.logger.debug('Read param file: %s' % (filename)) self._read_config_file(filename)
6a42b4e6040291085c65f8bf1e9c02996cfce05c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11528/6a42b4e6040291085c65f8bf1e9c02996cfce05c/params.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1425, 67, 2354, 4672, 8861, 2171, 16186, 2738, 972, 12, 2890, 13, 565, 364, 1544, 316, 642, 67, 2354, 30, 365, 18, 4901, 18, 4148, 2668, 1994, 579, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1425, 67, 2354, 4672, 8861, 2171, 16186, 2738, 972, 12, 2890, 13, 565, 364, 1544, 316, 642, 67, 2354, 30, 365, 18, 4901, 18, 4148, 2668, 1994, 579, ...
sage: ap = r.available_packages() sage: ap[:3] ['aaMI', 'abind', 'AcceptanceSampling']
sage: ap = r.available_packages() sage: len(ap) > 20 True
def available_packages(self): """ Returns a list of all available R package names.
cc0ae2fe046cb29c675913dd00183435eaa1f913 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/cc0ae2fe046cb29c675913dd00183435eaa1f913/r.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2319, 67, 10308, 12, 2890, 4672, 3536, 2860, 279, 666, 434, 777, 2319, 534, 2181, 1257, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2319, 67, 10308, 12, 2890, 4672, 3536, 2860, 279, 666, 434, 777, 2319, 534, 2181, 1257, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
task = self._install(pkg, cs, lk, None, pruneweight, depth) for res in task: yield res
task = trans.TaskInstall(self, pkg, cs, lk, None, pruneweight, self._yieldweight) for res in task: yield res; pruneweight=min(pruneweight,self._pruneweight); task.setWeights(pruneweight, self._yieldweight)
def _upgrade(self, pkgs, changeset, locked, pending, pruneweight, depth=0): depth += 1 trace(2, depth, "_upgrade(%s)", (pkgs))
c2ff0e2fa3473e5898baf091e7a39f94abf28732 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/c2ff0e2fa3473e5898baf091e7a39f94abf28732/transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15097, 12, 2890, 16, 16922, 16, 22463, 16, 8586, 16, 4634, 16, 846, 318, 359, 1274, 16, 3598, 33, 20, 4672, 3598, 1011, 404, 2606, 12, 22, 16, 3598, 16, 4192, 15097, 9275, 87, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15097, 12, 2890, 16, 16922, 16, 22463, 16, 8586, 16, 4634, 16, 846, 318, 359, 1274, 16, 3598, 33, 20, 4672, 3598, 1011, 404, 2606, 12, 22, 16, 3598, 16, 4192, 15097, 9275, 87, 2...
print tmpnoloc if tmploc is not None and tmpnoloc is not None: if tmploc.rating is None: tmploc.rating = tmpnoloc.rating if tmploc.comments is not None: tmploc.comments = tmpnoloc.comments if tmploc.tags is None: tmploc.tags = tmpnoloc.tags
if tmpnoloc is not None: if tmploc.rating is None: tmploc.rating = tmpnoloc.rating if tmploc.comments is not None: tmploc.comments = tmpnoloc.comments if tmploc.tags is None: tmploc.tags = tmpnoloc.tags
def fetch(self): if not self.isbn: return try: lang = get_lang() lang = lang[:2] if re.match(r'(fr.*|de.*)', lang) else 'all' if lang == 'all': self.results = get_social_metadata(self.title, self.book_author, self.publisher, self.isbn, verbose=self.verbose, lang='all')[0] else: tmploc = ThreadwithResults(AmazonError, s...
5c89b576e31b85e17cf14e85a72b1b876f87579c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/5c89b576e31b85e17cf14e85a72b1b876f87579c/amazonbis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 12, 2890, 4672, 309, 486, 365, 18, 291, 13392, 30, 327, 775, 30, 3303, 273, 336, 67, 4936, 1435, 3303, 273, 3303, 10531, 22, 65, 309, 283, 18, 1916, 12, 86, 11, 12, 4840, 4509,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2158, 12, 2890, 4672, 309, 486, 365, 18, 291, 13392, 30, 327, 775, 30, 3303, 273, 336, 67, 4936, 1435, 3303, 273, 3303, 10531, 22, 65, 309, 283, 18, 1916, 12, 86, 11, 12, 4840, 4509,...
self.show()
if debug_pref("MT debug: show after replace", Choice_boolean_True, non_debug = True, prefs_key = True): self.show()
def expand_if_open(item): if item is rootItem: return node = item.node open = node.openable() and node.open index = self.qtmodel.indexdict[item] self.setExpanded( index, open )
09f4b2b5afd4e506347273952e6321d8037ddbc7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/09f4b2b5afd4e506347273952e6321d8037ddbc7/modelTreeGui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 67, 430, 67, 3190, 12, 1726, 4672, 309, 761, 353, 1365, 1180, 30, 327, 756, 273, 761, 18, 2159, 1696, 273, 756, 18, 3190, 429, 1435, 471, 756, 18, 3190, 770, 273, 365, 18, 2331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 67, 430, 67, 3190, 12, 1726, 4672, 309, 761, 353, 1365, 1180, 30, 327, 756, 273, 761, 18, 2159, 1696, 273, 756, 18, 3190, 429, 1435, 471, 756, 18, 3190, 770, 273, 365, 18, 2331...
webcommands.changeset = webcommands.rev = kwweb_changeset webcommands.filediff = webcommands.diff = kwweb_filediff
def kwweb_filediff(web, req, tmpl): try: _kwtemplater.matcher = util.never except AttributeError: pass return web.filediff(tmpl, web.filectx(req))
fccc3b48cb568f0d49fe72ea7746183f3e259c3d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/fccc3b48cb568f0d49fe72ea7746183f3e259c3d/keyword.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5323, 4875, 67, 768, 5413, 12, 4875, 16, 1111, 16, 10720, 4672, 775, 30, 389, 9987, 27380, 2045, 18, 22761, 273, 1709, 18, 4644, 502, 1335, 6394, 30, 1342, 327, 3311, 18, 768, 5413, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5323, 4875, 67, 768, 5413, 12, 4875, 16, 1111, 16, 10720, 4672, 775, 30, 389, 9987, 27380, 2045, 18, 22761, 273, 1709, 18, 4644, 502, 1335, 6394, 30, 1342, 327, 3311, 18, 768, 5413, 12...
err("%s already ran %s" % (semname,freq),log)
msg="%s already ran %s" % (semname,freq) sys.stderr.write("%\n" % msg) log.debug(msg)
def main(): # expect to be called with # <freq> <semaphore-name> <module-name> args if len(sys.argv) < 4: Usage(sys.stderr) sys.exit(1) (freq,semname,modname)=sys.argv[1:4] run_args=sys.argv[4:] cloudinit.logging_set_from_cfg_file() log = logging.getLogger() log.info("cloud-init-run-module %s" % sys.argv[1:]) cloud...
ed3f86d5e459b9a76f73630e8072578cfe9d8fc3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10142/ed3f86d5e459b9a76f73630e8072578cfe9d8fc3/cloud-init-run-module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 4489, 358, 506, 2566, 598, 468, 282, 411, 10212, 34, 411, 307, 1458, 76, 479, 17, 529, 34, 411, 2978, 17, 529, 34, 833, 309, 562, 12, 9499, 18, 19485, 13, 411, 1059...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 4489, 358, 506, 2566, 598, 468, 282, 411, 10212, 34, 411, 307, 1458, 76, 479, 17, 529, 34, 411, 2978, 17, 529, 34, 833, 309, 562, 12, 9499, 18, 19485, 13, 411, 1059...
parser.add_option("-d", "--maildir", dest="mailbox", help="mailbox (this or mailbox is required)")
parser.add_option("-d", "--maildir", dest="maildir", help="mailbox (this or mailbox is required)")
def main(mb, smtp_server): # do the work count = 0 errors = 0 msg = mb.next() count = count + 1 while msg is not None: document = msg.fp.read() headers = msg.__str__( ) # remove Delivered-To headers new_headers = "" for line in headers.splitlines(True): if not line.startswith("Delivered-To"): new_headers += line fullm...
47f9937a256c6e75556efbedc3e9246548bfd067 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11912/47f9937a256c6e75556efbedc3e9246548bfd067/resend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1627, 16, 17660, 67, 3567, 4672, 468, 741, 326, 1440, 1056, 273, 374, 1334, 273, 374, 1234, 273, 4903, 18, 4285, 1435, 1056, 273, 1056, 397, 404, 1323, 1234, 353, 486, 599, 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, 2774, 12, 1627, 16, 17660, 67, 3567, 4672, 468, 741, 326, 1440, 1056, 273, 374, 1334, 273, 374, 1234, 273, 4903, 18, 4285, 1435, 1056, 273, 1056, 397, 404, 1323, 1234, 353, 486, 599, 3...
data = DoxyfileParse(source[0].get_contents(), str(source[0].dir))
data = DoxyfileParse(source[0].abspath)
def DoxyEmitter(source, target, env): """Doxygen Doxyfile emitter""" # possible output formats and their default values and output locations output_formats = { "HTML": ("YES", "html"), "LATEX": ("YES", "latex"), "RTF": ("NO", "rtf"), "MAN": ("YES", "man"), "XML": ("NO", "xml"), } data = DoxyfileParse(source[0].get_con...
1be18a2af8b3880d492f80349c68c4d9cf1ae16a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2548/1be18a2af8b3880d492f80349c68c4d9cf1ae16a/Doxygen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 1698, 13476, 12, 3168, 16, 1018, 16, 1550, 4672, 3536, 3244, 1698, 4507, 2256, 1698, 768, 11520, 8395, 468, 3323, 876, 6449, 471, 3675, 805, 924, 471, 876, 7838, 876, 67, 11962, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2256, 1698, 13476, 12, 3168, 16, 1018, 16, 1550, 4672, 3536, 3244, 1698, 4507, 2256, 1698, 768, 11520, 8395, 468, 3323, 876, 6449, 471, 3675, 805, 924, 471, 876, 7838, 876, 67, 11962, 27...
print >> sys.stderr, " <labFile> An annotation file from wave surfer" print >> sys.stderr, " <attributeName> Attribute name for the segmentation" print >> sys.stderr, " <labelFilter> A regular expresion to filter segments by label (default: all segments)" print >> sys.stderr, " <childScope> If defined th...
print >> sys.stderr, " <labFileList> A list of annotation files from wave surfer ('-' means stdin)" print >> sys.stderr, " <segmentationAttr> Attribute name for the segmentation" print >> sys.stderr, " <labelFilter> A regular expresion to filter segments by label (default: all segments)" print >> sys.stder...
def Lab2Plot(labfile, output, attributeName, filter, childScope, labelAttribute): print >> output, '<?xml version="1.0" encoding="UTF-8" standalone="no" ?>' print >> output, '<DescriptorsPool>' print >> output, '\t<ScopePool name="Song" size="1">' tokens = list() labelFilter = re.compile(filter) for line in labfile: se...
f646eda301256e171621c2f85311c090f7b0abda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1456/f646eda301256e171621c2f85311c090f7b0abda/Lab2Pools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 511, 378, 22, 11532, 12, 7411, 768, 16, 876, 16, 9734, 16, 1034, 16, 1151, 3876, 16, 1433, 1499, 4672, 1172, 1671, 876, 16, 16617, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 5159, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 511, 378, 22, 11532, 12, 7411, 768, 16, 876, 16, 9734, 16, 1034, 16, 1151, 3876, 16, 1433, 1499, 4672, 1172, 1671, 876, 16, 16617, 2902, 1177, 1546, 21, 18, 20, 6, 2688, 1546, 5159, ...
if not field.store: if not field._fnct_search: self.__exp[i] = self.__DUMMY_LEAF else: subexp = field.search(cr, uid, table, left, [self.__exp[i]], context=context) self.__exp[i] = '&' self.__exp.insert(i + 1, self.__DUMMY_LEAF) for j, se in enumerate(subexp): self.__exp.insert(i + 2 + j, se)
if not field._fnct_search: self.__exp[i] = self.__DUMMY_LEAF else: subexp = field.search(cr, uid, table, left, [self.__exp[i]], context=context) self.__exp[i] = '&' self.__exp.insert(i + 1, self.__DUMMY_LEAF) for j, se in enumerate(subexp): self.__exp.insert(i + 2 + j, se)
def rg(ids, table, parent): if not ids: return [] ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context) return ids + rg(ids2, table, parent)
9148fc2662f99d7578a9688919567b94ee89e42d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9148fc2662f99d7578a9688919567b94ee89e42d/expression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14524, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14524, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819...
'user_id': fields.many2one('res.users', 'User Ref.', required=True, ondelete='cascade'), 'resource': fields.char('Resource Name', size=64, required=True) }
'user_id': fields.many2one('res.users', 'User Ref.', required=True, ondelete='cascade', select=True), 'resource': fields.char('Resource Name', size=64, required=True, select=True) } def _auto_init(self, cr, context=None): super(view_sc, self)._auto_init(cr, context) cr.execute('SELECT indexname FROM pg_indexes WHERE i...
def graph_get(self, cr, uid, id, model, node_obj, conn_obj, src_node, des_node,label,scale,context={}): if not label: label = [] nodes=[] nodes_name=[] transitions=[] start=[] tres={} labels={} no_ancester=[] blank_nodes = []
aeed07950ceb164ca8508db93d9c69a9556242bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/aeed07950ceb164ca8508db93d9c69a9556242bb/ir_ui_view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2667, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 938, 16, 756, 67, 2603, 16, 1487, 67, 2603, 16, 1705, 67, 2159, 16, 2832, 67, 2159, 16, 1925, 16, 5864, 16, 2472, 12938, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2667, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 938, 16, 756, 67, 2603, 16, 1487, 67, 2603, 16, 1705, 67, 2159, 16, 2832, 67, 2159, 16, 1925, 16, 5864, 16, 2472, 12938, 4...
lst = [self.path.find_or_declare(f) for f in self.env[CFG_FILES]]
lst = [self.root.find_or_declare(f) for f in self.env[CFG_FILES]]
def clean(self): """clean the data and some files in the build dir .. well, TODO""" Logs.debug('build: clean called')
edc70fa0fc080134b05b7749702338716e436f3b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/edc70fa0fc080134b05b7749702338716e436f3b/Build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 12, 2890, 4672, 3536, 6200, 326, 501, 471, 2690, 1390, 316, 326, 1361, 1577, 6116, 5492, 16, 2660, 8395, 20238, 18, 4148, 2668, 3510, 30, 2721, 2566, 6134, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 2721, 12, 2890, 4672, 3536, 6200, 326, 501, 471, 2690, 1390, 316, 326, 1361, 1577, 6116, 5492, 16, 2660, 8395, 20238, 18, 4148, 2668, 3510, 30, 2721, 2566, 6134, 2, -100, -100, -100, -10...
return 1
def create_list(userdesc, perms, vhost, listname, desc, advertise, modlevel, inslevel, owners, members): """ Create a new list. @root """ name = vhost.lower() + VHOST_SEP + listname.lower(); if Utils.list_exists(name): return 0 owner = [] for o in owners: email = to_forlife(o)[0] if email is not None: owner.append(ema...
f72731f698b36c12306361fdd881a4a5ae9913e7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5724/f72731f698b36c12306361fdd881a4a5ae9913e7/lists.rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1098, 12, 1355, 5569, 16, 13793, 16, 16574, 16, 666, 529, 16, 3044, 16, 31553, 16, 681, 2815, 16, 2763, 2815, 16, 25937, 16, 4833, 4672, 3536, 1788, 279, 394, 666, 18, 632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 1098, 12, 1355, 5569, 16, 13793, 16, 16574, 16, 666, 529, 16, 3044, 16, 31553, 16, 681, 2815, 16, 2763, 2815, 16, 25937, 16, 4833, 4672, 3536, 1788, 279, 394, 666, 18, 632, ...
query = session.query(hebergementTable).join('province').join('proprio')
query = session.query(hebergementTable).join('province').join('proprio').outerjoin('reservations')
def action_search(self, action, data): wrapper = getSAWrapper('gites_wallons') session = wrapper.session hebergementTable = wrapper.getMapper('hebergement') proprioTable = wrapper.getMapper('proprio') provincesTable = wrapper.getMapper('province') episTable = wrapper.getMapper('link_hebergement_epis') hebergementType =...
522b4ac0479a0aef812d94a8bba993770536d0d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10188/522b4ac0479a0aef812d94a8bba993770536d0d9/SearchHebergement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 3072, 12, 2890, 16, 1301, 16, 501, 4672, 4053, 273, 1322, 37, 3611, 2668, 75, 2997, 67, 8019, 7008, 6134, 1339, 273, 4053, 18, 3184, 3904, 31317, 820, 1388, 273, 4053, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 3072, 12, 2890, 16, 1301, 16, 501, 4672, 4053, 273, 1322, 37, 3611, 2668, 75, 2997, 67, 8019, 7008, 6134, 1339, 273, 4053, 18, 3184, 3904, 31317, 820, 1388, 273, 4053, 18, 58...
print "*"*100 print "Testing ufunc" if ufunc(6): print "Succes" else: print "Fail!"
def matmul(niter=2): for m in range(2,niter+2): for n in range(2,niter+2): for k in range(2,niter+2): Asrc = random_list([k,m]) Bsrc = random_list([m,k]) Ad = np.array(Asrc, dtype=float, dist=True) Af = np.array(Asrc, dtype=float, dist=False) Bd = np.array(Bsrc, dtype=float, dist=True) Bf = np.array(Bsrc, dtype=float, ...
61a38fb6c72a4c2407ae89e3c9c936f06e59866b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4342/61a38fb6c72a4c2407ae89e3c9c936f06e59866b/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30805, 12, 82, 2165, 33, 22, 4672, 364, 312, 316, 1048, 12, 22, 16, 82, 2165, 15, 22, 4672, 364, 290, 316, 1048, 12, 22, 16, 82, 2165, 15, 22, 4672, 364, 417, 316, 1048, 12, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30805, 12, 82, 2165, 33, 22, 4672, 364, 312, 316, 1048, 12, 22, 16, 82, 2165, 15, 22, 4672, 364, 290, 316, 1048, 12, 22, 16, 82, 2165, 15, 22, 4672, 364, 417, 316, 1048, 12, 22, ...
return event.Continue
if self.default_action: possible_actions = [self.default_action] else: return event.Continue
def find_method(self, servlet, ret_value): possible_actions = [] for name, value in servlet.fields.items(): if name == self.action_name: possible_actions.append(value) elif name.startswith(self.action_name): possible_actions.append(name[len(self.action_name):]) if not possible_actions: return event.Continue if len(poss...
70f1fa9f5e88aa9083802b7f575bcf9862da06dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/70f1fa9f5e88aa9083802b7f575bcf9862da06dc/dispatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 2039, 12, 2890, 16, 8100, 16, 325, 67, 1132, 4672, 3323, 67, 4905, 273, 5378, 364, 508, 16, 460, 316, 8100, 18, 2821, 18, 3319, 13332, 309, 508, 422, 365, 18, 1128, 67, 529...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 67, 2039, 12, 2890, 16, 8100, 16, 325, 67, 1132, 4672, 3323, 67, 4905, 273, 5378, 364, 508, 16, 460, 316, 8100, 18, 2821, 18, 3319, 13332, 309, 508, 422, 365, 18, 1128, 67, 529...
print "WARNING: error parsing context menu request (%s)" % data
def handleContextMenuSelect(self, id, area, viewName): try: obj = db.getObjectByID(int(id)) except: print "WARNING: error parsing context menu request (%s)" % data traceback.print_exc() else: view = self.templateHandle.getTemplateVariable(viewName) if not controller.selection.isSelected(area, view, int(id)): self.handl...
125d838aa3a93711d0a4eeaea06c947da09403bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/125d838aa3a93711d0a4eeaea06c947da09403bd/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 27315, 3391, 12, 2890, 16, 612, 16, 5091, 16, 22244, 4672, 775, 30, 1081, 273, 1319, 18, 588, 921, 13331, 12, 474, 12, 350, 3719, 1335, 30, 10820, 18, 1188, 67, 10075, 1435, 469,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 27315, 3391, 12, 2890, 16, 612, 16, 5091, 16, 22244, 4672, 775, 30, 1081, 273, 1319, 18, 588, 921, 13331, 12, 474, 12, 350, 3719, 1335, 30, 10820, 18, 1188, 67, 10075, 1435, 469,...
titles.append(line.strip())
line = line.strip() line = re.sub(r'^"|"$', '', line) line = line.replace('""', '"') titles.append(line)
def get_titles(): f = urllib.urlopen('http://localhost:%d/gateway.cgi/csv/changes/title' % port) titles = [] for line in f: titles.append(line.strip()) return titles
5e7eba015f0536b0d7924b5b217a312503c5247d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11510/5e7eba015f0536b0d7924b5b217a312503c5247d/mksuggest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 17643, 13332, 284, 273, 11527, 18, 295, 18589, 2668, 2505, 2207, 13014, 5319, 72, 19, 11127, 18, 19062, 19, 6715, 19, 6329, 19, 2649, 11, 738, 1756, 13, 14693, 273, 5378, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 17643, 13332, 284, 273, 11527, 18, 295, 18589, 2668, 2505, 2207, 13014, 5319, 72, 19, 11127, 18, 19062, 19, 6715, 19, 6329, 19, 2649, 11, 738, 1756, 13, 14693, 273, 5378, 364, ...
if o == "-d":
if o == '-c': cmd = a if o == '-d':
def main(): debug = 0 try: opts, args = getopt.getopt(sys.argv[1:], "d") except getopt.error, msg: sys.stderr.write("Error: %s\n" % str(msg)) sys.exit(2) for o, a in opts: if o == "-d": debug = 1 global flist, root root = Tk() fixwordbreaks(root) root.withdraw() flist = PyShellFileList(root) if args: for filename in sy...
df95520d5088c816678f35b469940b23a88a32a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/df95520d5088c816678f35b469940b23a88a32a8/PyShell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1198, 273, 374, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 72, 7923, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1198, 273, 374, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 72, 7923, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 258...
ceUniqueID = self.am_getOption('CEUniqueID','Torque')
ceUniqueID = self.am_getOption( 'CEUniqueID', 'Torque' )
def initialize(self,loops=0): """Sets default parameters and creates CE instance """ self.maxcount = loops
364464017f61dc703439c7a2235a47d4ba35aafe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/364464017f61dc703439c7a2235a47d4ba35aafe/DiracSiteAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 383, 4473, 33, 20, 4672, 3536, 2785, 805, 1472, 471, 3414, 29538, 791, 3536, 365, 18, 1896, 1883, 273, 14075, 2, 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, 4046, 12, 2890, 16, 383, 4473, 33, 20, 4672, 3536, 2785, 805, 1472, 471, 3414, 29538, 791, 3536, 365, 18, 1896, 1883, 273, 14075, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
<?php echo date("m.d.y"); ?>
<?php echo date("m.d.y"); ?>
def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '/images/pointer.png' ), A( _N['home'], href=makeURL( '', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '/images/englishlogo.png' ), A( 'English', href='%(BASE)s' )]), P ( contents = [ Img( src = '/images/g...
846194f3836b7e3473a516c54c1f17757297aebf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4747/846194f3836b7e3473a516c54c1f17757297aebf/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, ...
cacheId = "lib-%s" % key
cacheId = "lib-%s" % self._config.absPath(lib["manifest"])
def mostRecentlyChangedIn(lib): # this should go into another class youngFiles = {} # for each interesting library part for category in ["class", "translation", "resource"]: catPath = os.path.normpath(os.path.join(lib["path"], lib[category])) # find youngest file file, mtime = filetool.findYoungest(catPath) youngFiles...
6ecd689f56bf3697526f91c2ba2898e6b0ec03ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/6ecd689f56bf3697526f91c2ba2898e6b0ec03ce/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4486, 17076, 715, 5033, 382, 12, 2941, 4672, 225, 468, 333, 1410, 1960, 1368, 4042, 667, 677, 465, 75, 2697, 273, 2618, 468, 364, 1517, 26122, 5313, 1087, 364, 3150, 316, 8247, 1106, 311...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4486, 17076, 715, 5033, 382, 12, 2941, 4672, 225, 468, 333, 1410, 1960, 1368, 4042, 667, 677, 465, 75, 2697, 273, 2618, 468, 364, 1517, 26122, 5313, 1087, 364, 3150, 316, 8247, 1106, 311...
'object=%s' % self.object), 'end=%s' % self.end), 'encoding=%s' % self.encoding), 'args=%s' % self.args), 'start=%s' % self.start), 'reason=%s' % self.reason),
'object=%s' % self.object, 'end=%s' % self.end, 'encoding=%s' % self.encoding, 'args=%s' % self.args, 'start=%s' % self.start, 'reason=%s' % self.reason,
def __str__(self): # this is a bad hack, please supply an implementation res = ' '.join([ 'object=%s' % self.object), 'end=%s' % self.end), 'encoding=%s' % self.encoding), 'args=%s' % self.args), 'start=%s' % self.start), 'reason=%s' % self.reason), ]) return res
7d942c2f4a7e8f483ad5b90e36ffc05a872090d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/7d942c2f4a7e8f483ad5b90e36ffc05a872090d2/exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 468, 333, 353, 279, 5570, 11769, 16, 9582, 14467, 392, 4471, 400, 273, 296, 2418, 5701, 3816, 296, 1612, 5095, 87, 11, 738, 365, 18, 1612, 16, 296, 409,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 701, 972, 12, 2890, 4672, 468, 333, 353, 279, 5570, 11769, 16, 9582, 14467, 392, 4471, 400, 273, 296, 2418, 5701, 3816, 296, 1612, 5095, 87, 11, 738, 365, 18, 1612, 16, 296, 409,...
stdout = util.popen(cmd)
stdout = util.popen(cmd, mode='rb')
def getfile(self, name, rev): cmd = 'p4 -G print "%s#%s"' % (self.depotname[name], rev) stdout = util.popen(cmd)
375dde695f0bc234cd11a2e547d43ce0077e5add /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/375dde695f0bc234cd11a2e547d43ce0077e5add/p4.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 768, 12, 2890, 16, 508, 16, 5588, 4672, 1797, 273, 296, 84, 24, 300, 43, 1172, 2213, 87, 7, 9, 87, 5187, 738, 261, 2890, 18, 323, 13130, 529, 63, 529, 6487, 5588, 13, 3909, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 768, 12, 2890, 16, 508, 16, 5588, 4672, 1797, 273, 296, 84, 24, 300, 43, 1172, 2213, 87, 7, 9, 87, 5187, 738, 261, 2890, 18, 323, 13130, 529, 63, 529, 6487, 5588, 13, 3909, 27...
if putlock is not None: try: putlock.release() except ValueError: pass
def on_state_change(task): state, args = task try: state_handlers[state](*args) except KeyError: debug("Unknown job state: %s (args=%s)" % (state, args))
a0626c9d702519e6880d3d1da18871f7403b808f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/a0626c9d702519e6880d3d1da18871f7403b808f/pool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2019, 67, 3427, 12, 4146, 4672, 919, 16, 833, 273, 1562, 775, 30, 919, 67, 11046, 63, 2019, 29955, 14, 1968, 13, 1335, 4999, 30, 1198, 2932, 4874, 1719, 919, 30, 738, 87, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2019, 67, 3427, 12, 4146, 4672, 919, 16, 833, 273, 1562, 775, 30, 919, 67, 11046, 63, 2019, 29955, 14, 1968, 13, 1335, 4999, 30, 1198, 2932, 4874, 1719, 919, 30, 738, 87, 26...
</n:p>
</n:div>
def format(self, args): log = XML.dig(args.message.xml, "message", "body", "commit", "log") if log: return Util.extractSummary(log)
3ca8bf1f567841c65bf98a27376d9f66a0a956ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/3ca8bf1f567841c65bf98a27376d9f66a0a956ba/Commit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 12, 2890, 16, 833, 4672, 613, 273, 3167, 18, 5606, 12, 1968, 18, 2150, 18, 2902, 16, 315, 2150, 3113, 315, 3432, 3113, 315, 7371, 3113, 315, 1330, 7923, 309, 613, 30, 327, 3564, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 740, 12, 2890, 16, 833, 4672, 613, 273, 3167, 18, 5606, 12, 1968, 18, 2150, 18, 2902, 16, 315, 2150, 3113, 315, 3432, 3113, 315, 7371, 3113, 315, 1330, 7923, 309, 613, 30, 327, 3564, ...
self._addCommand((op, (sc, sr), (ec, er), weight, color))
self._addCommand((c[0],)+((sc, sr), (ec, er))+c[3:])
def _cr_1_1(self,n,repeatRows, cmds): for op, (sc, sr), (ec, er), weight, color in cmds: if sr>=0 and sr>=repeatRows and sr<n and er>=0 and er<n: continue if sr>=repeatRows and sr<n: sr=repeatRows elif sr>=repeatRows and sr>=n: sr=sr+repeatRows-n if er>=repeatRows and er<n: er=repeatRows elif er>=repeatRows and er>=n: ...
11eb40f3a3d8b8d0f34ebf418a68ac6839a1a3b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/11eb40f3a3d8b8d0f34ebf418a68ac6839a1a3b0/tables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3353, 67, 21, 67, 21, 12, 2890, 16, 82, 16, 9374, 4300, 16, 13446, 4672, 364, 1061, 16, 261, 1017, 16, 9133, 3631, 261, 557, 16, 6445, 3631, 3119, 16, 2036, 316, 13446, 30, 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, 389, 3353, 67, 21, 67, 21, 12, 2890, 16, 82, 16, 9374, 4300, 16, 13446, 4672, 364, 1061, 16, 261, 1017, 16, 9133, 3631, 261, 557, 16, 6445, 3631, 3119, 16, 2036, 316, 13446, 30, 309,...
return time(hour=int(h), minute=int(m), second=int(float(s)), microsecond=int(modf(float(s))[0]*1000000)) except:
h, m, s = int(h), int(m), float(s) return time(hour=h, minute=m, second=int(s), microsecond=int(math.modf(s)[0] * 1000000)) except ValueError:
def Time_or_None(s): from math import modf try: h, m, s = s.split(':') return time(hour=int(h), minute=int(m), second=int(float(s)), microsecond=int(modf(float(s))[0]*1000000)) except: return None
d57be3fb50892ee155eb1bc9066cbcf3f02e4bf8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10477/d57be3fb50892ee155eb1bc9066cbcf3f02e4bf8/times.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2647, 67, 280, 67, 7036, 12, 87, 4672, 628, 4233, 1930, 681, 74, 775, 30, 366, 16, 312, 16, 272, 273, 272, 18, 4939, 2668, 2497, 13, 366, 16, 312, 16, 272, 273, 509, 12, 76, 3631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2647, 67, 280, 67, 7036, 12, 87, 4672, 628, 4233, 1930, 681, 74, 775, 30, 366, 16, 312, 16, 272, 273, 272, 18, 4939, 2668, 2497, 13, 366, 16, 312, 16, 272, 273, 509, 12, 76, 3631, ...
if (api_port, main_port) != (api_host, api_port):
if (main_host, main_port) != (api_host, api_port):
def run(self): if not self._bound_socket: self._bound_socket = eventlet.listen((self.config.interface, self.config.port)) eventlet.spawn(eventlet.wsgi.server, self._bound_socket, self._root_wsgi_app, log=EmptyLogShim()) # We can't get the main interface host, port from config, in case it # was passed in directly to th...
7d9044cf32f3429bc5b4d095c42576776e7928c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13219/7d9044cf32f3429bc5b4d095c42576776e7928c6/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 486, 365, 6315, 3653, 67, 7814, 30, 365, 6315, 3653, 67, 7814, 273, 871, 1810, 18, 18085, 12443, 2890, 18, 1425, 18, 5831, 16, 365, 18, 1425, 18, 655, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 486, 365, 6315, 3653, 67, 7814, 30, 365, 6315, 3653, 67, 7814, 273, 871, 1810, 18, 18085, 12443, 2890, 18, 1425, 18, 5831, 16, 365, 18, 1425, 18, 655, 3719, ...
e = start_dir if start_tail: e = e.Entry(start_tail[0]) targets.append(e) continue
return [orig], fmt % str(orig)
def build_dir_target_climb(self, dir, tail): """Create targets in corresponding build directories
913e7dcaa17f6f9aeee5e94ed8200c2df7f3389b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12817/913e7dcaa17f6f9aeee5e94ed8200c2df7f3389b/FS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 1214, 67, 3299, 67, 830, 381, 70, 12, 2890, 16, 1577, 16, 5798, 4672, 3536, 1684, 5774, 316, 4656, 1361, 6402, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 1214, 67, 3299, 67, 830, 381, 70, 12, 2890, 16, 1577, 16, 5798, 4672, 3536, 1684, 5774, 316, 4656, 1361, 6402, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
p = preparse(source)
if len(cmds): cmd_seq = cmds + '\n_sage_eval_returnval_ = ' + source if preparse: cmd_seq = preparser.preparse_file(cmd_seq) else: if preparse: source = preparser.preparse(source)
def sage_eval(source, locals={}): r""" Obtain a \SAGE object from the input string by evaluate it using SAGE. This means calling eval after preparsing and with globals equal to everything included in the scope of \code{from sage.all import *}.). If the object has an _sage_ method it is called and the value is returne...
1b4ae08b7fd14b38a52e7d5db5cbe13f4bdbe525 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1b4ae08b7fd14b38a52e7d5db5cbe13f4bdbe525/sage_eval.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 410, 67, 8622, 12, 3168, 16, 8985, 12938, 4672, 436, 8395, 24850, 279, 521, 55, 2833, 733, 628, 326, 810, 533, 635, 5956, 518, 1450, 348, 2833, 18, 225, 1220, 4696, 4440, 5302, 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, 272, 410, 67, 8622, 12, 3168, 16, 8985, 12938, 4672, 436, 8395, 24850, 279, 521, 55, 2833, 733, 628, 326, 810, 533, 635, 5956, 518, 1450, 348, 2833, 18, 225, 1220, 4696, 4440, 5302, 18...
if context.get('contact_display', 'contact')=='partner':
if context.get('contact_display', 'contact')=='partner' and r['partner_id']:
def name_get(self, cr, user, ids, context={}): if not len(ids): return [] res = [] for r in self.read(cr, user, ids, ['name','zip','city','partner_id', 'street']): if context.get('contact_display', 'contact')=='partner': res.append((r['id'], r['partner_id'][1])) else: addr = r['name'] or '' if r['name'] and (r['zip'] o...
0d8dcf48159c429f594e72e8630633bbc9c2823b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0d8dcf48159c429f594e72e8630633bbc9c2823b/partner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 588, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 819, 12938, 4672, 309, 486, 562, 12, 2232, 4672, 327, 5378, 400, 273, 5378, 364, 436, 316, 365, 18, 896, 12, 3353, 16, 729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 508, 67, 588, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 819, 12938, 4672, 309, 486, 562, 12, 2232, 4672, 327, 5378, 400, 273, 5378, 364, 436, 316, 365, 18, 896, 12, 3353, 16, 729, ...
"%s://hg.mozilla.org/releases/mozilla-1.9.1/" % match.group(1) )
SWITCH_MOZILLA_REPO_REPLACE % match.group(1) )
def move_to_stable(): """Backup (unused anymore) trunk checkout of Mozilla. Also switch checkout to MOZILLA_BASE_REV of Mozilla 1.9.1. """ # Do nothing if this function was already successfully run. # Shortcut: checking file existence is enough. if os.path.exists(TREE_STATE_FILE): return mozilla_path = os.path.join(...
cfa7c7ed5429e1717a50dc19064e911fb4d4d70f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11044/cfa7c7ed5429e1717a50dc19064e911fb4d4d70f/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 67, 869, 67, 15021, 13332, 3536, 6248, 261, 14375, 16828, 13, 25917, 13926, 434, 19058, 10745, 18, 225, 8080, 1620, 13926, 358, 16070, 62, 2627, 2534, 67, 8369, 67, 862, 58, 434, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 67, 869, 67, 15021, 13332, 3536, 6248, 261, 14375, 16828, 13, 25917, 13926, 434, 19058, 10745, 18, 225, 8080, 1620, 13926, 358, 16070, 62, 2627, 2534, 67, 8369, 67, 862, 58, 434, 1...
return self._executeSingleStorageElementFunction(storageElementName,physicalFile,'replicateFile',argsDict={sourceSize:size}) else: return self._executeStorageElementFunction(storageElementName,physicalFile,'replicateFile',argsDict={sourceSize:size})
return self._executeSingleStorageElementFunction(storageElementName,physicalFile,'replicateFile',argsDict={'sourceSize':size}) else: return self._executeStorageElementFunction(storageElementName,physicalFile,'replicateFile',argsDict={'sourceSize':size})
def replicateStorageFile(self,physicalFile,size,storageElementName,singleFile=False): """ Replicate a physical file to a storage element
66f736a181ac902d787b307be6f96aaa5f86ab96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/66f736a181ac902d787b307be6f96aaa5f86ab96/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28476, 3245, 812, 12, 2890, 16, 20441, 812, 16, 1467, 16, 5697, 30584, 16, 7526, 812, 33, 8381, 4672, 3536, 868, 1780, 340, 279, 11640, 585, 358, 279, 2502, 930, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28476, 3245, 812, 12, 2890, 16, 20441, 812, 16, 1467, 16, 5697, 30584, 16, 7526, 812, 33, 8381, 4672, 3536, 868, 1780, 340, 279, 11640, 585, 358, 279, 2502, 930, 2, -100, -100, -100, -...
shortened = string.lstrip(data)
shortened = data.lstrip()
def skip_leading_nodes(children, start=0): """Return index into children of a node at which paragraph building should begin or a recursive call to fixup_paras_helper() should be made (for subsections, etc.). When the return value >= len(children), we've built all the paras we can from this list of children. """ i = le...
3c171d1b9f1420a6bbce02f1511ffb6b621863ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3c171d1b9f1420a6bbce02f1511ffb6b621863ef/docfixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2488, 67, 27200, 67, 4690, 12, 5906, 16, 787, 33, 20, 4672, 3536, 990, 770, 1368, 2325, 434, 279, 756, 622, 1492, 10190, 10504, 1410, 2376, 578, 279, 5904, 745, 358, 2917, 416, 67, 106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2488, 67, 27200, 67, 4690, 12, 5906, 16, 787, 33, 20, 4672, 3536, 990, 770, 1368, 2325, 434, 279, 756, 622, 1492, 10190, 10504, 1410, 2376, 578, 279, 5904, 745, 358, 2917, 416, 67, 106...
result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank_id)
result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank_id, company_id)
def onchange_partner_id(self, cr, uid, ids, type, partner_id, date_invoice=False, payment_term=False, partner_bank_id=False): # Copy partner data to invoice, also the new field payment_type result = super(account_invoice, self).onchange_partner_id(cr, uid, ids, type, partner_id, date_invoice, payment_term, partner_bank...
5e7f5fe46874a6afd43dc6097ccec8e9823dc6b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/5e7f5fe46874a6afd43dc6097ccec8e9823dc6b2/account_invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 31993, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 19170, 67, 350, 16, 1509, 67, 16119, 33, 8381, 16, 5184, 67, 6408, 33, 8381, 16, 19170, 67, 10546,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3427, 67, 31993, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 19170, 67, 350, 16, 1509, 67, 16119, 33, 8381, 16, 5184, 67, 6408, 33, 8381, 16, 19170, 67, 10546,...
print 'debug handleCleanerLabel=', self.cleaner.name
def handleCleanerLabel(self, label): self.cleaner.name = _(getText(label.childNodes)) print 'debug handleCleanerLabel=', self.cleaner.name
e1fc33677a1647dbce770100c3a593e4e505209f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/e1fc33677a1647dbce770100c3a593e4e505209f/CleanerML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 7605, 264, 2224, 12, 2890, 16, 1433, 4672, 365, 18, 6200, 264, 18, 529, 273, 389, 12, 588, 1528, 12, 1925, 18, 3624, 3205, 3719, 1172, 296, 4148, 1640, 7605, 264, 2224, 33, 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, 1640, 7605, 264, 2224, 12, 2890, 16, 1433, 4672, 365, 18, 6200, 264, 18, 529, 273, 389, 12, 588, 1528, 12, 1925, 18, 3624, 3205, 3719, 1172, 296, 4148, 1640, 7605, 264, 2224, 33, 2187,...
if nickmask == cfg.dc_to_irc_prefix + '*':
LOG.info("TKL: Adding Qline: %s" % nickmask) nick_re = wild_to_regex(nickmask) if nick_re.match(cfg.dc_to_irc_prefix): LOG.error("DC nick prefix is Q-lined! Terminating.") self.transport.loseConnection() reactor.stop()
def handleCmd_TKL(self, prefix, args):
a9a25212b38d59aa435d8c12f638e176c64c36b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8524/a9a25212b38d59aa435d8c12f638e176c64c36b9/bridge_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 5931, 67, 56, 47, 48, 12, 2890, 16, 1633, 16, 833, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 5931, 67, 56, 47, 48, 12, 2890, 16, 1633, 16, 833, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
serverParamsTest(CERTFILE, ssl.PROTOCOL_TLSv1, ssl.CERT_NONE, CERTFILE, CERTFILE, ssl.PROTOCOL_TLSv1, chatty=True, connectionchatty=True) def testReadCert(self):
server_params_test(CERTFILE, ssl.PROTOCOL_TLSv1, ssl.CERT_NONE, CERTFILE, CERTFILE, ssl.PROTOCOL_TLSv1, chatty=True, connectionchatty=True) def test_getpeercert(self):
def testEcho (self):
3945c867d60b1d53299799dd09b6753dcd0a9546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/3945c867d60b1d53299799dd09b6753dcd0a9546/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 19704, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 1842, 19704, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
""" default function to retrieve the name of the action from a form
"""Default function to retrieve the name of the action from a form
def _get_action(self, resource, context): """ default function to retrieve the name of the action from a form """ for name in context.get_form_keys(): if name.startswith(';'): # Browsers send the mouse coordinates with image submits if name.endswith(('.x', '.y')): name = name[:-2] action = 'action_%s' % name[1:] # Save...
7940eee6ad823100eebfdd9b1ec4baddc4c015db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/7940eee6ad823100eebfdd9b1ec4baddc4c015db/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1128, 12, 2890, 16, 1058, 16, 819, 4672, 3536, 1868, 445, 358, 4614, 326, 508, 434, 326, 1301, 628, 279, 646, 3536, 364, 508, 316, 819, 18, 588, 67, 687, 67, 2452, 1333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1128, 12, 2890, 16, 1058, 16, 819, 4672, 3536, 1868, 445, 358, 4614, 326, 508, 434, 326, 1301, 628, 279, 646, 3536, 364, 508, 316, 819, 18, 588, 67, 687, 67, 2452, 1333...
if self.interface: try: self.change_status(self.accounts, '') except dbus.DBusException: pass
if self.current != '': self.change_status(self.accounts, '')
def quit(self): if self.interface: try: self.change_status(self.accounts, '') except dbus.DBusException: pass
eeca23ef0331d7060f02026bc5e835bb87421c48 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4764/eeca23ef0331d7060f02026bc5e835bb87421c48/gajim_status.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9706, 12, 2890, 4672, 309, 365, 18, 5831, 30, 775, 30, 365, 18, 3427, 67, 2327, 12, 2890, 18, 13739, 16, 28707, 1335, 21866, 18, 2290, 407, 503, 30, 1342, 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, 9706, 12, 2890, 4672, 309, 365, 18, 5831, 30, 775, 30, 365, 18, 3427, 67, 2327, 12, 2890, 18, 13739, 16, 28707, 1335, 21866, 18, 2290, 407, 503, 30, 1342, 2, -100, -100, -100, -100, ...
arr_geo_types.extend( arrStakeholders.split(',') ); arr_geo_types.extend( arrSupplyChains.split(',') ); landscape_types = arrLandscapeTypes.split(','); administrative_levels = arrAdministrativeLevels.split(',');
if arrStakeholders: arr_geo_types.extend( arrStakeholders.split(',') ); if arrSupplyChains: arr_geo_types.extend( arrSupplyChains.split(',') ); landscape_types = [] if arrLandscapeTypes: landscape_types = arrLandscapeTypes.split(','); else: landscape_types = [''] administrative_levels = [] if arrAdministrativeLevel...
def search_geopoints_frontpage(self, arrStakeholders='', arrSupplyChains='', arrAdministrativeLevels='', arrLandscapeTypes='', path='', geo_types=None, geo_query=None, REQUEST=None): """ """ arr_geo_types = [] arr_geo_types.extend( arrStakeholders.split(',') ); arr_geo_types.extend( arrSupplyChains.split(',') );
d9cf3fcd5b650aba728da7d88d9dc5b3926f0577 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/d9cf3fcd5b650aba728da7d88d9dc5b3926f0577/GeoMapTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 908, 556, 763, 87, 67, 10211, 2433, 12, 2890, 16, 2454, 510, 911, 9000, 2218, 2187, 2454, 3088, 1283, 15945, 2218, 2187, 2454, 4446, 3337, 1535, 12240, 2218, 2187, 2454, 29398, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1623, 67, 908, 556, 763, 87, 67, 10211, 2433, 12, 2890, 16, 2454, 510, 911, 9000, 2218, 2187, 2454, 3088, 1283, 15945, 2218, 2187, 2454, 4446, 3337, 1535, 12240, 2218, 2187, 2454, 29398, ...
action="store", type="str", default=None)
action="store", type="string", default=None)
def parseOptions(): parser = OptionParser(usage="%prog [options] list|xml|delete") common = OptionGroup(parser, "Options") common.add_option("--quiet", help="Be quiet", action="store_true", default=False) parser.add_option_group(common) common = OptionGroup(parser, "Filter") # Filter on IP common.add_option("-s", "-...
306bc1c760f323751680387b5619bfcb236a084a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12504/306bc1c760f323751680387b5619bfcb236a084a/conntrack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1320, 13332, 2082, 273, 18862, 12, 9167, 11613, 14654, 306, 2116, 65, 666, 96, 2902, 96, 3733, 7923, 225, 2975, 273, 2698, 1114, 12, 4288, 16, 315, 1320, 7923, 2975, 18, 1289, 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, 1109, 1320, 13332, 2082, 273, 18862, 12, 9167, 11613, 14654, 306, 2116, 65, 666, 96, 2902, 96, 3733, 7923, 225, 2975, 273, 2698, 1114, 12, 4288, 16, 315, 1320, 7923, 2975, 18, 1289, 67, ...
SetEnvironmentVariable("CM3_INSTALL", ConvertPath(InstallRoot)); ConfigFile = os.environ.get("M3CONFIG") if not ConfigFile: ConfigFile = GetConfigForDistribution(Config) SetEnvironmentVariable("M3CONFIG", ConvertPath(ConfigFile)) NativeRoot = Root Root = ConvertPath(Root).replace("\\", "\\\\") SetEnvironmentVariable("C...
SetEnvironmentVariable("CM3_INSTALL", ConvertPath(InstallRoot)) SetEnvironmentVariable("M3CONFIG", ConvertPath(os.environ.get("M3CONFIG") or GetConfigForDistribution(Config))) SetEnvironmentVariable("CM3_ROOT", ConvertPath(Root).replace("\\", "\\\\"))
def ConvertPath(a): # This isn't "roundtrip", this is one (or both) is a nop. return ConvertFromCygwinPath(ConvertToCygwinPath(a))
33f4f17d3e22c6aec6479ea2e15029c60cebdadc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/33f4f17d3e22c6aec6479ea2e15029c60cebdadc/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4037, 743, 12, 69, 4672, 468, 1220, 5177, 1404, 315, 2260, 25125, 3113, 333, 353, 1245, 261, 280, 3937, 13, 353, 279, 28797, 18, 327, 4037, 1265, 39, 4338, 8082, 743, 12, 2723, 774, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4037, 743, 12, 69, 4672, 468, 1220, 5177, 1404, 315, 2260, 25125, 3113, 333, 353, 1245, 261, 280, 3937, 13, 353, 279, 28797, 18, 327, 4037, 1265, 39, 4338, 8082, 743, 12, 2723, 774, 39...
gtk.glade.bindtextdomain(invest.defs.GETTEXT_PACKAGE, invest.defs.GNOMELOCALEDIR) gtk.glade.textdomain(invest.defs.GETTEXT_PACKAGE)
def _check(path): return exists(path) and isdir(path) and isfile(path+"/ChangeLog")
2d7da6b3f82afec820eeba808f0cbcf56bfe4009 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11078/2d7da6b3f82afec820eeba808f0cbcf56bfe4009/invest-applet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 12, 803, 4672, 327, 1704, 12, 803, 13, 471, 9783, 12, 803, 13, 471, 8814, 12, 803, 9078, 19, 3043, 1343, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 1893, 12, 803, 4672, 327, 1704, 12, 803, 13, 471, 9783, 12, 803, 13, 471, 8814, 12, 803, 9078, 19, 3043, 1343, 7923, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
" from results dir...")
" from debug dir...")
def postprocess(test, params, env): """ Postprocess all VMs and images according to the instructions in params. @param test: An Autotest test object. @param params: Dict containing all VM and image parameters. @param env: The environment (a dict-like object). """ process(test, params, env, postprocess_image, postproce...
9ec4dcdc62be4630a92d2be1a5f3ea107213ad8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/9ec4dcdc62be4630a92d2be1a5f3ea107213ad8a/kvm_preprocessing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 2567, 12, 3813, 16, 859, 16, 1550, 4672, 3536, 5616, 2567, 777, 776, 6947, 471, 4602, 4888, 358, 326, 12509, 316, 859, 18, 225, 632, 891, 1842, 30, 1922, 11809, 352, 395, 1842, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 2567, 12, 3813, 16, 859, 16, 1550, 4672, 3536, 5616, 2567, 777, 776, 6947, 471, 4602, 4888, 358, 326, 12509, 316, 859, 18, 225, 632, 891, 1842, 30, 1922, 11809, 352, 395, 1842, 7...
for key, value in kwargs.items():
field_ids = [ob.prop_name() for ob in context._get_schema().objectValues() if ob.visible] for key in field_ids:
def updateSessionFrom(self, REQUEST=None, **kwargs): """Update session from a given language""" # Update kwargs from request if not REQUEST: return parents = REQUEST.get('PARENTS', None) if not parents: return
ae25a76f946d99a7a759709483a5cb5737fdcd5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/ae25a76f946d99a7a759709483a5cb5737fdcd5d/NyFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2157, 1265, 12, 2890, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 1891, 1339, 628, 279, 864, 2653, 8395, 468, 2315, 1205, 628, 590, 309, 486, 12492, 30, 327, 6298, 273, 12492,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2157, 1265, 12, 2890, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 1891, 1339, 628, 279, 864, 2653, 8395, 468, 2315, 1205, 628, 590, 309, 486, 12492, 30, 327, 6298, 273, 12492,...